617951271719a11685daf038ef068fd16348bd90
[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-18 10:02+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:1603
872 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
873 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1623
874 #: ../src/guestfs-actions.pod:1627 ../src/guestfs-actions.pod:1631
875 #: ../src/guestfs-actions.pod:1641 ../src/guestfs-actions.pod:1645
876 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1787
877 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1796
878 #: ../src/guestfs-actions.pod:1801 ../src/guestfs-actions.pod:1862
879 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1871
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:1074 ../fish/guestfish-actions.pod:1078
886 #: ../fish/guestfish-actions.pod:1082 ../fish/guestfish-actions.pod:1086
887 #: ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098
888 #: ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1112
889 #: ../fish/guestfish-actions.pod:1116 ../fish/guestfish-actions.pod:1120
890 #: ../fish/guestfish-actions.pod:1210 ../fish/guestfish-actions.pod:1214
891 #: ../fish/guestfish-actions.pod:1219 ../fish/guestfish-actions.pod:1224
892 #: ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270
893 #: ../fish/guestfish-actions.pod:1275 ../tools/virt-win-reg.pl:195
894 #: ../tools/virt-win-reg.pl:200 ../tools/virt-win-reg.pl:206
895 #: ../tools/virt-win-reg.pl:708 ../tools/virt-win-reg.pl:714
896 #: ../tools/virt-win-reg.pl:720
897 msgid "*"
898 msgstr ""
899
900 #. type: textblock
901 #: ../src/guestfs.pod:390
902 msgid ""
903 "The kernel version that the command runs under will be different from what "
904 "it expects."
905 msgstr ""
906
907 #. type: textblock
908 #: ../src/guestfs.pod:395
909 msgid ""
910 "If the command needs to communicate with daemons, then most likely they "
911 "won't be running."
912 msgstr ""
913
914 #. type: textblock
915 #: ../src/guestfs.pod:400
916 msgid "The command will be running in limited memory."
917 msgstr ""
918
919 #. type: textblock
920 #: ../src/guestfs.pod:404
921 msgid ""
922 "The network may not be available unless you enable it (see L</"
923 "guestfs_set_network>)."
924 msgstr ""
925
926 #. type: textblock
927 #: ../src/guestfs.pod:409
928 msgid "Only supports Linux guests (not Windows, BSD, etc)."
929 msgstr ""
930
931 #. type: textblock
932 #: ../src/guestfs.pod:413
933 msgid ""
934 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
935 msgstr ""
936
937 #. type: textblock
938 #: ../src/guestfs.pod:418
939 msgid ""
940 "For SELinux guests, you may need to enable SELinux and load policy first.  "
941 "See L</SELINUX> in this manpage."
942 msgstr ""
943
944 #. type: textblock
945 #: ../src/guestfs.pod:423
946 msgid ""
947 "I<Security:> It is not safe to run commands from untrusted, possibly "
948 "malicious guests.  These commands may attempt to exploit your program by "
949 "sending unexpected output.  They could also try to exploit the Linux kernel "
950 "or qemu provided by the libguestfs appliance.  They could use the network "
951 "provided by the libguestfs appliance to bypass ordinary network partitions "
952 "and firewalls.  They could use the elevated privileges or different SELinux "
953 "context of your program to their advantage."
954 msgstr ""
955
956 #. type: textblock
957 #: ../src/guestfs.pod:432
958 msgid ""
959 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
960 "(a script which runs when the guest next boots normally), and to have this "
961 "script run the commands you want in the normal context of the running guest, "
962 "network security and so on.  For information about other security issues, "
963 "see L</SECURITY>."
964 msgstr ""
965
966 #. type: textblock
967 #: ../src/guestfs.pod:440
968 msgid ""
969 "The two main API calls to run commands are L</guestfs_command> and L</"
970 "guestfs_sh> (there are also variations)."
971 msgstr ""
972
973 #. type: textblock
974 #: ../src/guestfs.pod:443
975 msgid ""
976 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
977 "shell globs, redirections, etc will work."
978 msgstr ""
979
980 #. type: =head2
981 #: ../src/guestfs.pod:446
982 msgid "CONFIGURATION FILES"
983 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
984
985 #. type: textblock
986 #: ../src/guestfs.pod:448
987 msgid ""
988 "To read and write configuration files in Linux guest filesystems, we "
989 "strongly recommend using Augeas.  For example, Augeas understands how to "
990 "read and write, say, a Linux shadow password file or X.org configuration "
991 "file, and so avoids you having to write that code."
992 msgstr ""
993
994 #. type: textblock
995 #: ../src/guestfs.pod:453
996 msgid ""
997 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
998 "document Augeas itself here because there is excellent documentation on the "
999 "L<http://augeas.net/> website."
1000 msgstr ""
1001
1002 #. type: textblock
1003 #: ../src/guestfs.pod:457
1004 msgid ""
1005 "If you don't want to use Augeas (you fool!) then try calling L</"
1006 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1007 "over."
1008 msgstr ""
1009
1010 #. type: =head2
1011 #: ../src/guestfs.pod:461
1012 msgid "SELINUX"
1013 msgstr "SELINUX"
1014
1015 #. type: textblock
1016 #: ../src/guestfs.pod:463
1017 msgid ""
1018 "We support SELinux guests.  To ensure that labeling happens correctly in "
1019 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1020 msgstr ""
1021
1022 #. type: =item
1023 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395
1024 #: ../src/guestfs.pod:2426
1025 msgid "1."
1026 msgstr ""
1027
1028 #. type: textblock
1029 #: ../src/guestfs.pod:471
1030 msgid "Before launching, do:"
1031 msgstr ""
1032
1033 #. type: verbatim
1034 #: ../src/guestfs.pod:473
1035 #, no-wrap
1036 msgid ""
1037 " guestfs_set_selinux (g, 1);\n"
1038 "\n"
1039 msgstr ""
1040
1041 #. type: =item
1042 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399
1043 #: ../src/guestfs.pod:2451
1044 msgid "2."
1045 msgstr ""
1046
1047 #. type: textblock
1048 #: ../src/guestfs.pod:477
1049 msgid ""
1050 "After mounting the guest's filesystem(s), load the policy.  This is best "
1051 "done by running the L<load_policy(8)> command in the guest itself:"
1052 msgstr ""
1053
1054 #. type: verbatim
1055 #: ../src/guestfs.pod:481
1056 #, no-wrap
1057 msgid ""
1058 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1059 "\n"
1060 msgstr ""
1061
1062 #. type: textblock
1063 #: ../src/guestfs.pod:483
1064 msgid ""
1065 "(Older versions of C<load_policy> require you to specify the name of the "
1066 "policy file)."
1067 msgstr ""
1068
1069 #. type: =item
1070 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
1071 msgid "3."
1072 msgstr ""
1073
1074 #. type: textblock
1075 #: ../src/guestfs.pod:488
1076 msgid ""
1077 "Optionally, set the security context for the API.  The correct security "
1078 "context to use can only be known by inspecting the guest.  As an example:"
1079 msgstr ""
1080
1081 #. type: verbatim
1082 #: ../src/guestfs.pod:492
1083 #, no-wrap
1084 msgid ""
1085 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1086 "\n"
1087 msgstr ""
1088
1089 #. type: textblock
1090 #: ../src/guestfs.pod:496
1091 msgid "This will work for running commands and editing existing files."
1092 msgstr ""
1093
1094 #. type: textblock
1095 #: ../src/guestfs.pod:498
1096 msgid ""
1097 "When new files are created, you may need to label them explicitly, for "
1098 "example by running the external command C<restorecon pathname>."
1099 msgstr ""
1100
1101 #. type: =head2
1102 #: ../src/guestfs.pod:502
1103 msgid "UMASK"
1104 msgstr ""
1105
1106 #. type: textblock
1107 #: ../src/guestfs.pod:504
1108 msgid ""
1109 "Certain calls are affected by the current file mode creation mask (the "
1110 "\"umask\").  In particular ones which create files or directories, such as "
1111 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1112 "either the default mode that the file is created with or modifies the mode "
1113 "that you supply."
1114 msgstr ""
1115
1116 #. type: textblock
1117 #: ../src/guestfs.pod:510
1118 msgid ""
1119 "The default umask is C<022>, so files are created with modes such as C<0644> "
1120 "and directories with C<0755>."
1121 msgstr ""
1122
1123 #. type: textblock
1124 #: ../src/guestfs.pod:513
1125 msgid ""
1126 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1127 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1128 "guestfs_chmod> after creating each file or directory."
1129 msgstr ""
1130
1131 #. type: textblock
1132 #: ../src/guestfs.pod:517
1133 msgid "For more information about umask, see L<umask(2)>."
1134 msgstr ""
1135
1136 #. type: =head1
1137 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:767
1138 msgid "ENCRYPTED DISKS"
1139 msgstr ""
1140
1141 #. type: textblock
1142 #: ../src/guestfs.pod:521
1143 msgid ""
1144 "Libguestfs allows you to access Linux guests which have been encrypted using "
1145 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1146 "standard.  This includes nearly all whole disk encryption systems used by "
1147 "modern Linux guests."
1148 msgstr ""
1149
1150 #. type: textblock
1151 #: ../src/guestfs.pod:527
1152 msgid ""
1153 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1154 "returns the string C<crypto_LUKS>)."
1155 msgstr ""
1156
1157 #. type: textblock
1158 #: ../src/guestfs.pod:530
1159 msgid ""
1160 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1161 "will require the passphrase!"
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../src/guestfs.pod:533
1166 msgid ""
1167 "Opening a LUKS device creates a new device mapper device called C</dev/"
1168 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1169 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1170 "from and encrypted to the underlying block device respectively."
1171 msgstr ""
1172
1173 #. type: textblock
1174 #: ../src/guestfs.pod:539
1175 msgid ""
1176 "LVM volume groups on the device can be made visible by calling L</"
1177 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1178 "(s) can now be mounted in the usual way."
1179 msgstr ""
1180
1181 #. type: textblock
1182 #: ../src/guestfs.pod:543
1183 msgid ""
1184 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1185 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1186 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1187 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1188 "underlying encrypted block device)."
1189 msgstr ""
1190
1191 #. type: =head2
1192 #: ../src/guestfs.pod:550
1193 msgid "INSPECTION"
1194 msgstr "ПЕРЕВІРКА"
1195
1196 #. type: textblock
1197 #: ../src/guestfs.pod:552
1198 msgid ""
1199 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1200 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1201 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1202 "version 1.5.3 the most frequently used part of this library has been "
1203 "rewritten in C and moved into the core code)."
1204 msgstr ""
1205
1206 #. type: textblock
1207 #: ../src/guestfs.pod:559
1208 msgid ""
1209 "Add all disks belonging to the unknown virtual machine and call L</"
1210 "guestfs_launch> in the usual way."
1211 msgstr ""
1212
1213 #. type: textblock
1214 #: ../src/guestfs.pod:562
1215 msgid ""
1216 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1217 "and certain heuristics, and returns a list of operating systems that were "
1218 "found.  An empty list means none were found.  A single element is the root "
1219 "filesystem of the operating system.  For dual- or multi-boot guests, "
1220 "multiple roots can be returned, each one corresponding to a separate "
1221 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1222 "world of virtualization, but since this scenario can happen, we have built "
1223 "libguestfs to deal with it.)"
1224 msgstr ""
1225
1226 #. type: textblock
1227 #: ../src/guestfs.pod:571
1228 msgid ""
1229 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1230 "to get additional details about that operating system.  For example, call L</"
1231 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1232 "Windows and Linux-based operating systems respectively."
1233 msgstr ""
1234
1235 #. type: textblock
1236 #: ../src/guestfs.pod:577
1237 msgid ""
1238 "Un*x-like and Linux-based operating systems usually consist of several "
1239 "filesystems which are mounted at boot time (for example, a separate boot "
1240 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1241 "filesystems correspond to mount points.  Call "
1242 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1243 "hash table like this example:"
1244 msgstr ""
1245
1246 #. type: verbatim
1247 #: ../src/guestfs.pod:584
1248 #, no-wrap
1249 msgid ""
1250 " /boot => /dev/sda1\n"
1251 " /     => /dev/vg_guest/lv_root\n"
1252 " /usr  => /dev/vg_guest/lv_usr\n"
1253 "\n"
1254 msgstr ""
1255
1256 #. type: textblock
1257 #: ../src/guestfs.pod:588
1258 msgid ""
1259 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1260 "filesystems as suggested."
1261 msgstr ""
1262
1263 #. type: textblock
1264 #: ../src/guestfs.pod:591
1265 msgid ""
1266 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1267 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1268 msgstr ""
1269
1270 #. type: textblock
1271 #: ../src/guestfs.pod:595
1272 msgid ""
1273 "Inspection currently only works for some common operating systems.  "
1274 "Contributors are welcome to send patches for other operating systems that we "
1275 "currently cannot detect."
1276 msgstr ""
1277
1278 #. type: textblock
1279 #: ../src/guestfs.pod:599
1280 msgid ""
1281 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1282 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1283 "encrypted devices."
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../src/guestfs.pod:603
1288 msgid ""
1289 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1290 "inspection and caches the results in the guest handle.  Subsequent calls to "
1291 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1292 "read the disks.  If you change the content of the guest disks, you can redo "
1293 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1294 "guestfs_inspect_list_applications> works a little differently from the other "
1295 "calls and does read the disks.  See documentation for that function for "
1296 "details)."
1297 msgstr ""
1298
1299 #. type: =head3
1300 #: ../src/guestfs.pod:612
1301 msgid "INSPECTING INSTALL DISKS"
1302 msgstr ""
1303
1304 #. type: textblock
1305 #: ../src/guestfs.pod:614
1306 msgid ""
1307 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1308 "CDs and more."
1309 msgstr ""
1310
1311 #. type: textblock
1312 #: ../src/guestfs.pod:617
1313 msgid ""
1314 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1315 "system, which currently can be C<installed> (a regular operating system) or "
1316 "C<installer> (some sort of install disk)."
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../src/guestfs.pod:621
1321 msgid ""
1322 "Further information is available about the operating system that can be "
1323 "installed using the regular inspection APIs like L</"
1324 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1325 msgstr ""
1326
1327 #. type: textblock
1328 #: ../src/guestfs.pod:626
1329 msgid ""
1330 "Some additional information specific to installer disks is also available "
1331 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1332 "guestfs_inspect_is_multipart> calls."
1333 msgstr ""
1334
1335 #. type: =head2
1336 #: ../src/guestfs.pod:631
1337 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1338 msgstr ""
1339
1340 #. type: textblock
1341 #: ../src/guestfs.pod:633
1342 msgid ""
1343 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1344 "ntfs-3g.org/> driver."
1345 msgstr ""
1346
1347 #. type: =head3
1348 #: ../src/guestfs.pod:636
1349 msgid "DRIVE LETTERS AND PATHS"
1350 msgstr ""
1351
1352 #. type: textblock
1353 #: ../src/guestfs.pod:638
1354 msgid ""
1355 "DOS and Windows still use drive letters, and the filesystems are always "
1356 "treated as case insensitive by Windows itself, and therefore you might find "
1357 "a Windows configuration file referring to a path like C<c:\\windows"
1358 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1359 "might be referred to as C</WINDOWS/System32>."
1360 msgstr ""
1361
1362 #. type: textblock
1363 #: ../src/guestfs.pod:644
1364 msgid ""
1365 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1366 "L</guestfs_inspect_get_drive_mappings>)"
1367 msgstr ""
1368
1369 #. type: textblock
1370 #: ../src/guestfs.pod:647
1371 msgid ""
1372 "Dealing with separator characters (backslash vs forward slash) is outside "
1373 "the scope of libguestfs, but usually a simple character replacement will "
1374 "work."
1375 msgstr ""
1376
1377 #. type: textblock
1378 #: ../src/guestfs.pod:651
1379 msgid ""
1380 "To resolve the case insensitivity of paths, call L</"
1381 "guestfs_case_sensitive_path>."
1382 msgstr ""
1383
1384 #. type: =head3
1385 #: ../src/guestfs.pod:654
1386 msgid "ACCESSING THE WINDOWS REGISTRY"
1387 msgstr ""
1388
1389 #. type: textblock
1390 #: ../src/guestfs.pod:656
1391 msgid ""
1392 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1393 "files, through the library C<hivex> which is part of the libguestfs project "
1394 "although ships as a separate tarball.  You have to locate and download the "
1395 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1396 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1397 "reg(1)> for more help on this issue."
1398 msgstr ""
1399
1400 #. type: =head3
1401 #: ../src/guestfs.pod:664
1402 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1403 msgstr ""
1404
1405 #. type: textblock
1406 #: ../src/guestfs.pod:666
1407 msgid ""
1408 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1409 "provide something which looks like a Linux symlink.  The way it tries to do "
1410 "the rewriting is described here:"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../src/guestfs.pod:670
1415 msgid ""
1416 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1417 "symbolic-links/>"
1418 msgstr ""
1419 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1420 "symbolic-links/>"
1421
1422 #. type: textblock
1423 #: ../src/guestfs.pod:672
1424 msgid ""
1425 "The essential problem is that ntfs-3g simply does not have enough "
1426 "information to do a correct job.  NTFS links can contain drive letters and "
1427 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1428 "It is almost certainly the case that libguestfs callers should ignore what "
1429 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1430 msgstr ""
1431
1432 #. type: textblock
1433 #: ../src/guestfs.pod:679
1434 msgid ""
1435 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1436 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1437 "attribute, and read the raw reparse data from that (you can find the format "
1438 "documented in various places around the web)."
1439 msgstr ""
1440
1441 #. type: =head3
1442 #: ../src/guestfs.pod:684
1443 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1444 msgstr ""
1445
1446 #. type: textblock
1447 #: ../src/guestfs.pod:686
1448 msgid ""
1449 "There are other useful extended attributes that can be read from ntfs-3g "
1450 "filesystems (using L</guestfs_getxattr>).  See:"
1451 msgstr ""
1452
1453 #. type: textblock
1454 #: ../src/guestfs.pod:689
1455 msgid ""
1456 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1457 msgstr ""
1458 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1459
1460 #. type: =head2
1461 #: ../src/guestfs.pod:691
1462 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1463 msgstr ""
1464
1465 #. type: textblock
1466 #: ../src/guestfs.pod:693
1467 msgid ""
1468 "Although we don't want to discourage you from using the C API, we will "
1469 "mention here that the same API is also available in other languages."
1470 msgstr ""
1471
1472 #. type: textblock
1473 #: ../src/guestfs.pod:696
1474 msgid ""
1475 "The API is broadly identical in all supported languages.  This means that "
1476 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1477 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1478 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1479 "each language."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../src/guestfs.pod:702
1484 msgid ""
1485 "Error messages are automatically transformed into exceptions if the language "
1486 "supports it."
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../src/guestfs.pod:705
1491 msgid ""
1492 "We don't try to \"object orientify\" parts of the API in OO languages, "
1493 "although contributors are welcome to write higher level APIs above what we "
1494 "provide in their favourite languages if they wish."
1495 msgstr ""
1496
1497 #. type: =item
1498 #: ../src/guestfs.pod:711
1499 msgid "B<C++>"
1500 msgstr "B<C++>"
1501
1502 #. type: textblock
1503 #: ../src/guestfs.pod:713
1504 msgid ""
1505 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1506 "identical to the C API.  C++ classes and exceptions are not used."
1507 msgstr ""
1508
1509 #. type: =item
1510 #: ../src/guestfs.pod:717
1511 msgid "B<C#>"
1512 msgstr "B<C#>"
1513
1514 #. type: textblock
1515 #: ../src/guestfs.pod:719
1516 msgid ""
1517 "The C# bindings are highly experimental.  Please read the warnings at the "
1518 "top of C<csharp/Libguestfs.cs>."
1519 msgstr ""
1520
1521 #. type: =item
1522 #: ../src/guestfs.pod:722
1523 msgid "B<Haskell>"
1524 msgstr "B<Haskell>"
1525
1526 #. type: textblock
1527 #: ../src/guestfs.pod:724
1528 msgid ""
1529 "This is the only language binding that is working but incomplete.  Only "
1530 "calls which return simple integers have been bound in Haskell, and we are "
1531 "looking for help to complete this binding."
1532 msgstr ""
1533
1534 #. type: =item
1535 #: ../src/guestfs.pod:728
1536 msgid "B<Java>"
1537 msgstr "B<Java>"
1538
1539 #. type: textblock
1540 #: ../src/guestfs.pod:730
1541 msgid ""
1542 "Full documentation is contained in the Javadoc which is distributed with "
1543 "libguestfs."
1544 msgstr ""
1545
1546 #. type: =item
1547 #: ../src/guestfs.pod:733
1548 msgid "B<OCaml>"
1549 msgstr "B<OCaml>"
1550
1551 #. type: textblock
1552 #: ../src/guestfs.pod:735
1553 msgid "See L<guestfs-ocaml(3)>."
1554 msgstr "Див. L<guestfs-ocaml(3)>."
1555
1556 #. type: =item
1557 #: ../src/guestfs.pod:737
1558 msgid "B<Perl>"
1559 msgstr "B<Perl>"
1560
1561 #. type: textblock
1562 #: ../src/guestfs.pod:739
1563 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1564 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
1565
1566 #. type: =item
1567 #: ../src/guestfs.pod:741
1568 msgid "B<PHP>"
1569 msgstr "B<PHP>"
1570
1571 #. type: textblock
1572 #: ../src/guestfs.pod:743
1573 msgid ""
1574 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1575 "the php-libguestfs package for your distribution."
1576 msgstr ""
1577
1578 #. type: textblock
1579 #: ../src/guestfs.pod:746
1580 msgid "The PHP binding only works correctly on 64 bit machines."
1581 msgstr ""
1582
1583 #. type: =item
1584 #: ../src/guestfs.pod:748
1585 msgid "B<Python>"
1586 msgstr "B<Python>"
1587
1588 #. type: textblock
1589 #: ../src/guestfs.pod:750
1590 msgid "See L<guestfs-python(3)>."
1591 msgstr "Див. L<guestfs-python(3)>."
1592
1593 #. type: =item
1594 #: ../src/guestfs.pod:752
1595 msgid "B<Ruby>"
1596 msgstr "B<Ruby>"
1597
1598 #. type: textblock
1599 #: ../src/guestfs.pod:754
1600 msgid "See L<guestfs-ruby(3)>."
1601 msgstr "Див. L<guestfs-ruby(3)>."
1602
1603 #. type: =item
1604 #: ../src/guestfs.pod:756
1605 msgid "B<shell scripts>"
1606 msgstr "B<скрипти оболонки>"
1607
1608 #. type: textblock
1609 #: ../src/guestfs.pod:758
1610 msgid "See L<guestfish(1)>."
1611 msgstr "Див. L<guestfish(1)>."
1612
1613 #. type: =head2
1614 #: ../src/guestfs.pod:762
1615 msgid "LIBGUESTFS GOTCHAS"
1616 msgstr ""
1617
1618 #. type: textblock
1619 #: ../src/guestfs.pod:764
1620 msgid ""
1621 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1622 "system [...] that works in the way it is documented but is counterintuitive "
1623 "and almost invites mistakes.\""
1624 msgstr ""
1625
1626 #. type: textblock
1627 #: ../src/guestfs.pod:768
1628 msgid ""
1629 "Since we developed libguestfs and the associated tools, there are several "
1630 "things we would have designed differently, but are now stuck with for "
1631 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1632 "release, you can expect these to change.  Beware of them."
1633 msgstr ""
1634
1635 #. type: =item
1636 #: ../src/guestfs.pod:776
1637 msgid "Autosync / forgetting to sync."
1638 msgstr ""
1639
1640 #. type: textblock
1641 #: ../src/guestfs.pod:778
1642 msgid ""
1643 "I<Update:> Autosync is enabled by default for all API users starting from "
1644 "libguestfs 1.5.24.  This section only applies to older versions."
1645 msgstr ""
1646
1647 #. type: textblock
1648 #: ../src/guestfs.pod:781
1649 msgid ""
1650 "When modifying a filesystem from C or another language, you B<must> unmount "
1651 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1652 "libguestfs handle.  You can also call:"
1653 msgstr ""
1654
1655 #. type: verbatim
1656 #: ../src/guestfs.pod:785
1657 #, no-wrap
1658 msgid ""
1659 " guestfs_set_autosync (g, 1);\n"
1660 "\n"
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../src/guestfs.pod:787
1665 msgid ""
1666 "to have the unmount/sync done automatically for you when the handle 'g' is "
1667 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1668 msgstr ""
1669
1670 #. type: textblock
1671 #: ../src/guestfs.pod:791
1672 msgid ""
1673 "If you forget to do this, then it is entirely possible that your changes "
1674 "won't be written out, or will be partially written, or (very rarely) that "
1675 "you'll get disk corruption."
1676 msgstr ""
1677
1678 #. type: textblock
1679 #: ../src/guestfs.pod:795
1680 msgid ""
1681 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1682 "guestfish scripts that forget to sync will work just fine, which can make "
1683 "this very puzzling if you are trying to debug a problem."
1684 msgstr ""
1685
1686 #. type: =item
1687 #: ../src/guestfs.pod:799
1688 msgid "Mount option C<-o sync> should not be the default."
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../src/guestfs.pod:801
1693 msgid ""
1694 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1695 "However C<-o sync> does not add any reliability benefit, but does have a "
1696 "very large performance impact."
1697 msgstr ""
1698
1699 #. type: textblock
1700 #: ../src/guestfs.pod:805
1701 msgid ""
1702 "The work around is to use L</guestfs_mount_options> and set the mount "
1703 "options that you actually want to use."
1704 msgstr ""
1705
1706 #. type: =item
1707 #: ../src/guestfs.pod:808
1708 msgid "Read-only should be the default."
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../src/guestfs.pod:810
1713 msgid ""
1714 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1715 "specify I<--rw> if you want to make changes to the image."
1716 msgstr ""
1717
1718 #. type: textblock
1719 #: ../src/guestfs.pod:813
1720 msgid "This would reduce the potential to corrupt live VM images."
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../src/guestfs.pod:815
1725 msgid ""
1726 "Note that many filesystems change the disk when you just mount and unmount, "
1727 "even if you didn't perform any writes.  You need to use L</"
1728 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1729 msgstr ""
1730
1731 #. type: =item
1732 #: ../src/guestfs.pod:819
1733 msgid "guestfish command line is hard to use."
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../src/guestfs.pod:821
1738 msgid ""
1739 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1740 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1741 "exist, so it fails.  In earlier versions of guestfish the error message was "
1742 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1743 "we should have used C<guestfish -c command> to run commands."
1744 msgstr ""
1745
1746 #. type: =item
1747 #: ../src/guestfs.pod:828
1748 msgid "guestfish megabyte modifiers don't work right on all commands"
1749 msgstr ""
1750
1751 #. type: textblock
1752 #: ../src/guestfs.pod:830
1753 msgid ""
1754 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1755 "other modifiers).  What guestfish actually does is to multiply the number "
1756 "part by the modifier part and pass the result to the C API.  However this "
1757 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1758 "expecting some other unit (eg. megabytes)."
1759 msgstr ""
1760
1761 #. type: textblock
1762 #: ../src/guestfs.pod:837
1763 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1764 msgstr ""
1765
1766 #. type: verbatim
1767 #: ../src/guestfs.pod:839
1768 #, no-wrap
1769 msgid ""
1770 " lvcreate LV VG 100M\n"
1771 "\n"
1772 msgstr ""
1773
1774 #. type: textblock
1775 #: ../src/guestfs.pod:841
1776 msgid ""
1777 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1778 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1779 "megabytes * megabytes) logical volume.  The error message you get from this "
1780 "is also a little obscure."
1781 msgstr ""
1782
1783 #. type: textblock
1784 #: ../src/guestfs.pod:846
1785 msgid ""
1786 "This could be fixed in the generator by specially marking parameters and "
1787 "return values which take bytes or other units."
1788 msgstr ""
1789
1790 #. type: =item
1791 #: ../src/guestfs.pod:849
1792 msgid "Ambiguity between devices and paths"
1793 msgstr ""
1794
1795 #. type: textblock
1796 #: ../src/guestfs.pod:851
1797 msgid ""
1798 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1799 "sdb2>) and a similar pathname.  A file might just happen to be called "
1800 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1801 msgstr ""
1802
1803 #. type: textblock
1804 #: ../src/guestfs.pod:856
1805 msgid ""
1806 "In the current API we usually resolve this ambiguity by having two separate "
1807 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1808 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1809 "detecting if the path supplied begins with C</dev/>."
1810 msgstr ""
1811
1812 #. type: textblock
1813 #: ../src/guestfs.pod:862
1814 msgid ""
1815 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1816 "make paths/devices into structured names.  One way to do this would be to "
1817 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1818 "aspect of grub.  Another way would be to use a structured type, equivalent "
1819 "to this OCaml type:"
1820 msgstr ""
1821
1822 #. type: verbatim
1823 #: ../src/guestfs.pod:868
1824 #, no-wrap
1825 msgid ""
1826 " type path = Path of string | Device of int | Partition of int * int\n"
1827 "\n"
1828 msgstr ""
1829
1830 #. type: textblock
1831 #: ../src/guestfs.pod:870
1832 msgid "which would allow you to pass arguments like:"
1833 msgstr ""
1834
1835 #. type: verbatim
1836 #: ../src/guestfs.pod:872
1837 #, no-wrap
1838 msgid ""
1839 " Path \"/foo/bar\"\n"
1840 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1841 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1842 " Path \"/dev/sdb2\"    (* not a device *)\n"
1843 "\n"
1844 msgstr ""
1845
1846 #. type: textblock
1847 #: ../src/guestfs.pod:877
1848 msgid ""
1849 "As you can see there are still problems to resolve even with this "
1850 "representation.  Also consider how it might work in guestfish."
1851 msgstr ""
1852
1853 #. type: =head2
1854 #: ../src/guestfs.pod:882
1855 msgid "KEYS AND PASSPHRASES"
1856 msgstr ""
1857
1858 #. type: textblock
1859 #: ../src/guestfs.pod:884
1860 msgid ""
1861 "Certain libguestfs calls take a parameter that contains sensitive key "
1862 "material, passed in as a C string."
1863 msgstr ""
1864
1865 #. type: textblock
1866 #: ../src/guestfs.pod:887
1867 msgid ""
1868 "In the future we would hope to change the libguestfs implementation so that "
1869 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1870 "swap.  However this is I<not> done at the moment, because of the complexity "
1871 "of such an implementation."
1872 msgstr ""
1873
1874 #. type: textblock
1875 #: ../src/guestfs.pod:892
1876 msgid ""
1877 "Therefore you should be aware that any key parameter you pass to libguestfs "
1878 "might end up being written out to the swap partition.  If this is a concern, "
1879 "scrub the swap partition or don't use libguestfs on encrypted devices."
1880 msgstr ""
1881
1882 #. type: =head2
1883 #: ../src/guestfs.pod:897
1884 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1885 msgstr ""
1886
1887 #. type: textblock
1888 #: ../src/guestfs.pod:899
1889 msgid ""
1890 "All high-level libguestfs actions are synchronous.  If you want to use "
1891 "libguestfs asynchronously then you must create a thread."
1892 msgstr ""
1893
1894 #. type: textblock
1895 #: ../src/guestfs.pod:902
1896 msgid ""
1897 "Only use the handle from a single thread.  Either use the handle exclusively "
1898 "from one thread, or provide your own mutex so that two threads cannot issue "
1899 "calls on the same handle at the same time."
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../src/guestfs.pod:906
1904 msgid ""
1905 "See the graphical program guestfs-browser for one possible architecture for "
1906 "multithreaded programs using libvirt and libguestfs."
1907 msgstr ""
1908
1909 #. type: =head2
1910 #: ../src/guestfs.pod:909
1911 msgid "PATH"
1912 msgstr "ШЛЯХ"
1913
1914 #. type: textblock
1915 #: ../src/guestfs.pod:911
1916 msgid ""
1917 "Libguestfs needs a supermin appliance, which it finds by looking along an "
1918 "internal path."
1919 msgstr ""
1920
1921 #. type: textblock
1922 #: ../src/guestfs.pod:914
1923 msgid ""
1924 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1925 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1926 msgstr ""
1927
1928 #. type: textblock
1929 #: ../src/guestfs.pod:917
1930 msgid ""
1931 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1932 "to change the directories that libguestfs will search in.  The value is a "
1933 "colon-separated list of paths.  The current directory is I<not> searched "
1934 "unless the path contains an empty element or C<.>.  For example "
1935 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1936 "then C</usr/lib/guestfs>."
1937 msgstr ""
1938
1939 #. type: =head2
1940 #: ../src/guestfs.pod:924
1941 msgid "QEMU WRAPPERS"
1942 msgstr ""
1943
1944 #. type: textblock
1945 #: ../src/guestfs.pod:926
1946 msgid ""
1947 "If you want to compile your own qemu, run qemu from a non-standard location, "
1948 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1949 "around qemu."
1950 msgstr ""
1951
1952 #. type: textblock
1953 #: ../src/guestfs.pod:930
1954 msgid ""
1955 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1956 "last command in the shell script (so that qemu replaces the shell and "
1957 "becomes the direct child of the libguestfs-using program).  If you don't do "
1958 "this, then the qemu process won't be cleaned up correctly."
1959 msgstr ""
1960
1961 #. type: textblock
1962 #: ../src/guestfs.pod:935
1963 msgid ""
1964 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1965 "source:"
1966 msgstr ""
1967
1968 #. type: verbatim
1969 #: ../src/guestfs.pod:938
1970 #, no-wrap
1971 msgid ""
1972 " #!/bin/sh -\n"
1973 " qemudir=/home/rjones/d/qemu\n"
1974 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1975 "\n"
1976 msgstr ""
1977
1978 #. type: textblock
1979 #: ../src/guestfs.pod:942
1980 msgid ""
1981 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1982 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1983 "example:"
1984 msgstr ""
1985
1986 #. type: verbatim
1987 #: ../src/guestfs.pod:946
1988 #, no-wrap
1989 msgid ""
1990 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1991 "\n"
1992 msgstr ""
1993
1994 #. type: textblock
1995 #: ../src/guestfs.pod:948
1996 msgid ""
1997 "Note that libguestfs also calls qemu with the -help and -version options in "
1998 "order to determine features."
1999 msgstr ""
2000
2001 #. type: =head2
2002 #: ../src/guestfs.pod:951
2003 msgid "ATTACHING TO RUNNING DAEMONS"
2004 msgstr ""
2005
2006 #. type: textblock
2007 #: ../src/guestfs.pod:953
2008 msgid ""
2009 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2010 "babies.  Use with caution."
2011 msgstr ""
2012
2013 #. type: textblock
2014 #: ../src/guestfs.pod:956
2015 msgid ""
2016 "I<Note (2):> This section explains how to attach to a running daemon from a "
2017 "low level perspective.  For most users, simply using virt tools such as "
2018 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2019 msgstr ""
2020
2021 #. type: =head3
2022 #: ../src/guestfs.pod:960
2023 msgid "Using guestfs_set_attach_method"
2024 msgstr ""
2025
2026 #. type: textblock
2027 #: ../src/guestfs.pod:962
2028 msgid ""
2029 "By calling L</guestfs_set_attach_method> you can change how the library "
2030 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2031 "ARCHITECTURE> for some background)."
2032 msgstr ""
2033
2034 #. type: textblock
2035 #: ../src/guestfs.pod:966
2036 msgid ""
2037 "The normal attach method is C<appliance>, where a small appliance is created "
2038 "containing the daemon, and then the library connects to this."
2039 msgstr ""
2040
2041 #. type: textblock
2042 #: ../src/guestfs.pod:969
2043 msgid ""
2044 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2045 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2046 "daemon over the Unix domain socket."
2047 msgstr ""
2048
2049 #. type: textblock
2050 #: ../src/guestfs.pod:973
2051 msgid ""
2052 "The normal use for this is to connect to a running virtual machine that "
2053 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2054 "files inside the live virtual machine."
2055 msgstr ""
2056
2057 #. type: =head3
2058 #: ../src/guestfs.pod:977
2059 msgid "Using guestfs_add_domain with live flag"
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../src/guestfs.pod:979
2064 msgid ""
2065 "L</guestfs_add_domain> provides some help for getting the correct attach "
2066 "method.  If you pass the C<live> option to this function, then (if the "
2067 "virtual machine is running) it will examine the libvirt XML looking for a "
2068 "virtio-serial channel to connect to:"
2069 msgstr ""
2070
2071 #. type: verbatim
2072 #: ../src/guestfs.pod:985
2073 #, no-wrap
2074 msgid ""
2075 " <domain>\n"
2076 "   ...\n"
2077 "   <devices>\n"
2078 "     ...\n"
2079 "     <channel type='unix'>\n"
2080 "       <source mode='bind' path='/path/to/socket'/>\n"
2081 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2082 "     </channel>\n"
2083 "     ...\n"
2084 "   </devices>\n"
2085 " </domain>\n"
2086 "\n"
2087 msgstr ""
2088
2089 #. type: textblock
2090 #: ../src/guestfs.pod:997
2091 msgid ""
2092 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2093 "method to C<unix:/path/to/socket>."
2094 msgstr ""
2095
2096 #. type: textblock
2097 #: ../src/guestfs.pod:1000
2098 msgid ""
2099 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2100 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2101 "to attach to and modify live virtual machines."
2102 msgstr ""
2103
2104 #. type: textblock
2105 #: ../src/guestfs.pod:1004
2106 msgid ""
2107 "The virtual machine needs to have been set up beforehand so that it has the "
2108 "virtio-serial channel and so that guestfsd is running inside it."
2109 msgstr ""
2110
2111 #. type: =head2
2112 #: ../src/guestfs.pod:1008
2113 msgid "ABI GUARANTEE"
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../src/guestfs.pod:1010
2118 msgid ""
2119 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2120 "actions as outlined in this section.  Although we will deprecate some "
2121 "actions, for example if they get replaced by newer calls, we will keep the "
2122 "old actions forever.  This allows you the developer to program in confidence "
2123 "against the libguestfs API."
2124 msgstr ""
2125
2126 #. type: =head2
2127 #: ../src/guestfs.pod:1016
2128 msgid "BLOCK DEVICE NAMING"
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../src/guestfs.pod:1018
2133 msgid ""
2134 "In the kernel there is now quite a profusion of schemata for naming block "
2135 "devices (in this context, by I<block device> I mean a physical or virtual "
2136 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2137 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2138 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2139 "for the old IDE driver (particularly for SATA devices) those devices also "
2140 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2141 "paravirtualized drivers.  This has created several different naming systems, "
2142 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2143 msgstr ""
2144
2145 #. type: textblock
2146 #: ../src/guestfs.pod:1030
2147 msgid ""
2148 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2149 "Linux kernel to access block devices.  We can run a variety of appliances "
2150 "based on a variety of Linux kernels."
2151 msgstr ""
2152
2153 #. type: textblock
2154 #: ../src/guestfs.pod:1034
2155 msgid ""
2156 "This causes a problem for libguestfs because many API calls use device or "
2157 "partition names.  Working scripts and the recipe (example) scripts that we "
2158 "make available over the internet could fail if the naming scheme changes."
2159 msgstr ""
2160
2161 #. type: textblock
2162 #: ../src/guestfs.pod:1039
2163 msgid ""
2164 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2165 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2166 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2167 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2168 msgstr ""
2169
2170 #. type: textblock
2171 #: ../src/guestfs.pod:1045
2172 msgid ""
2173 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2174 "L</guestfs_list_partitions> and similar calls return the true names of the "
2175 "devices and partitions as known to the appliance."
2176 msgstr ""
2177
2178 #. type: =head3
2179 #: ../src/guestfs.pod:1050
2180 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2181 msgstr ""
2182
2183 #. type: textblock
2184 #: ../src/guestfs.pod:1052
2185 msgid ""
2186 "Usually this translation is transparent.  However in some (very rare)  cases "
2187 "you may need to know the exact algorithm.  Such cases include where you use "
2188 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2189 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2190 msgstr ""
2191
2192 #. type: textblock
2193 #: ../src/guestfs.pod:1058
2194 msgid ""
2195 "The algorithm is applied only to I<parameters> which are known to be either "
2196 "device or partition names.  Return values from functions such as L</"
2197 "guestfs_list_devices> are never changed."
2198 msgstr ""
2199
2200 #. type: textblock
2201 #: ../src/guestfs.pod:1066
2202 msgid "Is the string a parameter which is a device or partition name?"
2203 msgstr ""
2204
2205 #. type: textblock
2206 #: ../src/guestfs.pod:1070
2207 msgid "Does the string begin with C</dev/sd>?"
2208 msgstr ""
2209
2210 #. type: textblock
2211 #: ../src/guestfs.pod:1074
2212 msgid ""
2213 "Does the named device exist? If so, we use that device.  However if I<not> "
2214 "then we continue with this algorithm."
2215 msgstr ""
2216
2217 #. type: textblock
2218 #: ../src/guestfs.pod:1079
2219 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2220 msgstr ""
2221
2222 #. type: textblock
2223 #: ../src/guestfs.pod:1081
2224 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2225 msgstr ""
2226
2227 #. type: textblock
2228 #: ../src/guestfs.pod:1083
2229 msgid "If that named device exists, use it.  If not, continue."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../src/guestfs.pod:1087
2234 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../src/guestfs.pod:1089
2239 msgid "If that named device exists, use it.  If not, return an error."
2240 msgstr ""
2241
2242 #. type: =head3
2243 #: ../src/guestfs.pod:1093
2244 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../src/guestfs.pod:1095
2249 msgid ""
2250 "Although the standard naming scheme and automatic translation is useful for "
2251 "simple programs and guestfish scripts, for larger programs it is best not to "
2252 "rely on this mechanism."
2253 msgstr ""
2254
2255 #. type: textblock
2256 #: ../src/guestfs.pod:1099
2257 msgid ""
2258 "Where possible for maximum future portability programs using libguestfs "
2259 "should use these future-proof techniques:"
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../src/guestfs.pod:1106
2264 msgid ""
2265 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2266 "device names, and then use those names directly."
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../src/guestfs.pod:1109
2271 msgid ""
2272 "Since those device names exist by definition, they will never be translated."
2273 msgstr ""
2274
2275 #. type: textblock
2276 #: ../src/guestfs.pod:1114
2277 msgid ""
2278 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2279 "filesystem labels."
2280 msgstr ""
2281
2282 #. type: =head1
2283 #: ../src/guestfs.pod:1119
2284 msgid "SECURITY"
2285 msgstr "БЕЗПЕКА"
2286
2287 #. type: textblock
2288 #: ../src/guestfs.pod:1121
2289 msgid ""
2290 "This section discusses security implications of using libguestfs, "
2291 "particularly with untrusted or malicious guests or disk images."
2292 msgstr ""
2293
2294 #. type: =head2
2295 #: ../src/guestfs.pod:1124
2296 msgid "GENERAL SECURITY CONSIDERATIONS"
2297 msgstr ""
2298
2299 #. type: textblock
2300 #: ../src/guestfs.pod:1126
2301 msgid ""
2302 "Be careful with any files or data that you download from a guest (by "
2303 "\"download\" we mean not just the L</guestfs_download> command but any "
2304 "command that reads files, filenames, directories or anything else from a "
2305 "disk image).  An attacker could manipulate the data to fool your program "
2306 "into doing the wrong thing.  Consider cases such as:"
2307 msgstr ""
2308
2309 #. type: textblock
2310 #: ../src/guestfs.pod:1136
2311 msgid "the data (file etc) not being present"
2312 msgstr ""
2313
2314 #. type: textblock
2315 #: ../src/guestfs.pod:1140
2316 msgid "being present but empty"
2317 msgstr ""
2318
2319 #. type: textblock
2320 #: ../src/guestfs.pod:1144
2321 msgid "being much larger than normal"
2322 msgstr ""
2323
2324 #. type: textblock
2325 #: ../src/guestfs.pod:1148
2326 msgid "containing arbitrary 8 bit data"
2327 msgstr ""
2328
2329 #. type: textblock
2330 #: ../src/guestfs.pod:1152
2331 msgid "being in an unexpected character encoding"
2332 msgstr ""
2333
2334 #. type: textblock
2335 #: ../src/guestfs.pod:1156
2336 msgid "containing homoglyphs."
2337 msgstr ""
2338
2339 #. type: =head2
2340 #: ../src/guestfs.pod:1160
2341 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2342 msgstr ""
2343
2344 #. type: textblock
2345 #: ../src/guestfs.pod:1162
2346 msgid ""
2347 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2348 "(VFS) module can sometimes be escalated into exploits by deliberately "
2349 "creating a malicious, malformed filesystem.  These exploits are very severe "
2350 "for two reasons.  Firstly there are very many filesystem drivers in the "
2351 "kernel, and many of them are infrequently used and not much developer "
2352 "attention has been paid to the code.  Linux userspace helps potential "
2353 "crackers by detecting the filesystem type and automatically choosing the "
2354 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2355 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2356 "exploit (worse in some ways), giving immediate and total access to the "
2357 "system right down to the hardware level."
2358 msgstr ""
2359
2360 #. type: textblock
2361 #: ../src/guestfs.pod:1175
2362 msgid ""
2363 "That explains why you should never mount a filesystem from an untrusted "
2364 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2365 "inside a qemu virtual machine, usually running as a non-root user.  The "
2366 "attacker would need to write a filesystem which first exploited the kernel, "
2367 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2368 "the libguestfs protocol, and finally to be as serious as the host kernel "
2369 "exploit it would need to escalate its privileges to root.  This multi-step "
2370 "escalation, performed by a static piece of data, is thought to be extremely "
2371 "hard to do, although we never say 'never' about security issues."
2372 msgstr ""
2373
2374 #. type: textblock
2375 #: ../src/guestfs.pod:1186
2376 msgid ""
2377 "In any case callers can reduce the attack surface by forcing the filesystem "
2378 "type when mounting (use L</guestfs_mount_vfs>)."
2379 msgstr ""
2380
2381 #. type: =head2
2382 #: ../src/guestfs.pod:1189
2383 msgid "PROTOCOL SECURITY"
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../src/guestfs.pod:1191
2388 msgid ""
2389 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2390 "defined upper message size.  However a program that uses libguestfs must "
2391 "also take care - for example you can write a program that downloads a binary "
2392 "from a disk image and executes it locally, and no amount of protocol "
2393 "security will save you from the consequences."
2394 msgstr ""
2395
2396 #. type: =head2
2397 #: ../src/guestfs.pod:1197
2398 msgid "INSPECTION SECURITY"
2399 msgstr ""
2400
2401 #. type: textblock
2402 #: ../src/guestfs.pod:1199
2403 msgid ""
2404 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2405 "directly from the guest, and these could contain any 8 bit data.  Callers "
2406 "should be careful to escape these before printing them to a structured file "
2407 "(for example, use HTML escaping if creating a web page)."
2408 msgstr ""
2409
2410 #. type: textblock
2411 #: ../src/guestfs.pod:1205
2412 msgid ""
2413 "Guest configuration may be altered in unusual ways by the administrator of "
2414 "the virtual machine, and may not reflect reality (particularly for untrusted "
2415 "or actively malicious guests).  For example we parse the hostname from "
2416 "configuration files like C</etc/sysconfig/network> that we find in the "
2417 "guest, but the guest administrator can easily manipulate these files to "
2418 "provide the wrong hostname."
2419 msgstr ""
2420
2421 #. type: textblock
2422 #: ../src/guestfs.pod:1213
2423 msgid ""
2424 "The inspection API parses guest configuration using two external libraries: "
2425 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2426 "designed to be robust in the face of malicious data, although denial of "
2427 "service attacks are still possible, for example with oversized configuration "
2428 "files."
2429 msgstr ""
2430
2431 #. type: =head2
2432 #: ../src/guestfs.pod:1219
2433 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2434 msgstr ""
2435
2436 #. type: textblock
2437 #: ../src/guestfs.pod:1221
2438 msgid ""
2439 "Be very cautious about running commands from the guest.  By running a "
2440 "command in the guest, you are giving CPU time to a binary that you do not "
2441 "control, under the same user account as the library, albeit wrapped in qemu "
2442 "virtualization.  More information and alternatives can be found in the "
2443 "section L</RUNNING COMMANDS>."
2444 msgstr ""
2445
2446 #. type: =head2
2447 #: ../src/guestfs.pod:1227
2448 msgid "CVE-2010-3851"
2449 msgstr "CVE-2010-3851"
2450
2451 #. type: textblock
2452 #: ../src/guestfs.pod:1229
2453 msgid "https://bugzilla.redhat.com/642934"
2454 msgstr "https://bugzilla.redhat.com/642934"
2455
2456 #. type: textblock
2457 #: ../src/guestfs.pod:1231
2458 msgid ""
2459 "This security bug concerns the automatic disk format detection that qemu "
2460 "does on disk images."
2461 msgstr ""
2462
2463 #. type: textblock
2464 #: ../src/guestfs.pod:1234
2465 msgid ""
2466 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2467 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2468 "for one of the known headers, and if none is found then assuming the disk "
2469 "image must be raw."
2470 msgstr ""
2471
2472 #. type: textblock
2473 #: ../src/guestfs.pod:1239
2474 msgid ""
2475 "This allows a guest which has been given a raw disk image to write some "
2476 "other header.  At next boot (or when the disk image is accessed by "
2477 "libguestfs) qemu would do autodetection and think the disk image format was, "
2478 "say, qcow2 based on the header written by the guest."
2479 msgstr ""
2480
2481 #. type: textblock
2482 #: ../src/guestfs.pod:1244
2483 msgid ""
2484 "This in itself would not be a problem, but qcow2 offers many features, one "
2485 "of which is to allow a disk image to refer to another image (called the "
2486 "\"backing disk\").  It does this by placing the path to the backing disk "
2487 "into the qcow2 header.  This path is not validated and could point to any "
2488 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2489 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2490 "control of the attacker."
2491 msgstr ""
2492
2493 #. type: textblock
2494 #: ../src/guestfs.pod:1252
2495 msgid ""
2496 "In libguestfs this is rather hard to exploit except under two circumstances:"
2497 msgstr ""
2498
2499 #. type: textblock
2500 #: ../src/guestfs.pod:1259
2501 msgid "You have enabled the network or have opened the disk in write mode."
2502 msgstr ""
2503
2504 #. type: textblock
2505 #: ../src/guestfs.pod:1263
2506 msgid ""
2507 "You are also running untrusted code from the guest (see L</RUNNING "
2508 "COMMANDS>)."
2509 msgstr ""
2510
2511 #. type: textblock
2512 #: ../src/guestfs.pod:1268
2513 msgid ""
2514 "The way to avoid this is to specify the expected disk format when adding "
2515 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2516 "should always do this if the disk is raw format, and it's a good idea for "
2517 "other cases too."
2518 msgstr ""
2519
2520 #. type: textblock
2521 #: ../src/guestfs.pod:1273
2522 msgid ""
2523 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2524 "format is fetched from libvirt and passed through."
2525 msgstr ""
2526
2527 #. type: textblock
2528 #: ../src/guestfs.pod:1276
2529 msgid ""
2530 "For libguestfs tools, use the I<--format> command line parameter as "
2531 "appropriate."
2532 msgstr ""
2533
2534 #. type: =head1
2535 #: ../src/guestfs.pod:1279
2536 msgid "CONNECTION MANAGEMENT"
2537 msgstr ""
2538
2539 #. type: =head2
2540 #: ../src/guestfs.pod:1281
2541 msgid "guestfs_h *"
2542 msgstr ""
2543
2544 #. type: textblock
2545 #: ../src/guestfs.pod:1283
2546 msgid ""
2547 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2548 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2549 "handle and release all resources used."
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../src/guestfs.pod:1287
2554 msgid ""
2555 "For information on using multiple handles and threads, see the section L</"
2556 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2557 msgstr ""
2558
2559 #. type: =head2
2560 #: ../src/guestfs.pod:1290
2561 msgid "guestfs_create"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../src/guestfs.pod:1292
2566 #, no-wrap
2567 msgid ""
2568 " guestfs_h *guestfs_create (void);\n"
2569 "\n"
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../src/guestfs.pod:1294
2574 msgid "Create a connection handle."
2575 msgstr ""
2576
2577 #. type: textblock
2578 #: ../src/guestfs.pod:1296
2579 msgid ""
2580 "On success this returns a non-NULL pointer to a handle.  On error it returns "
2581 "NULL."
2582 msgstr ""
2583
2584 #. type: textblock
2585 #: ../src/guestfs.pod:1299
2586 msgid ""
2587 "You have to \"configure\" the handle after creating it.  This includes "
2588 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
2589 "handle at least once."
2590 msgstr ""
2591
2592 #. type: textblock
2593 #: ../src/guestfs.pod:1303
2594 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2595 msgstr ""
2596
2597 #. type: textblock
2598 #: ../src/guestfs.pod:1305
2599 msgid ""
2600 "You may also want to configure error handling for the handle.  See the L</"
2601 "ERROR HANDLING> section below."
2602 msgstr ""
2603
2604 #. type: =head2
2605 #: ../src/guestfs.pod:1308
2606 msgid "guestfs_close"
2607 msgstr ""
2608
2609 #. type: verbatim
2610 #: ../src/guestfs.pod:1310
2611 #, no-wrap
2612 msgid ""
2613 " void guestfs_close (guestfs_h *g);\n"
2614 "\n"
2615 msgstr ""
2616
2617 #. type: textblock
2618 #: ../src/guestfs.pod:1312
2619 msgid "This closes the connection handle and frees up all resources used."
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../src/guestfs.pod:1314
2624 msgid ""
2625 "If autosync was set on the handle and the handle was launched, then this "
2626 "implicitly calls various functions to unmount filesystems and sync the "
2627 "disk.  See L</guestfs_set_autosync> for more details."
2628 msgstr ""
2629
2630 #. type: textblock
2631 #: ../src/guestfs.pod:1318
2632 msgid "If a close callback was set on the handle, then it is called."
2633 msgstr ""
2634
2635 #. type: =head1
2636 #: ../src/guestfs.pod:1320
2637 msgid "ERROR HANDLING"
2638 msgstr "ОБРОБКА ПОМИЛОК"
2639
2640 #. type: textblock
2641 #: ../src/guestfs.pod:1322
2642 msgid ""
2643 "API functions can return errors.  For example, almost all functions that "
2644 "return C<int> will return C<-1> to indicate an error."
2645 msgstr ""
2646
2647 #. type: textblock
2648 #: ../src/guestfs.pod:1325
2649 msgid ""
2650 "Additional information is available for errors: an error message string and "
2651 "optionally an error number (errno) if the thing that failed was a system "
2652 "call."
2653 msgstr ""
2654
2655 #. type: textblock
2656 #: ../src/guestfs.pod:1329
2657 msgid ""
2658 "You can get at the additional information about the last error on the handle "
2659 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2660 "up an error handler with L</guestfs_set_error_handler>."
2661 msgstr ""
2662
2663 #. type: textblock
2664 #: ../src/guestfs.pod:1334
2665 msgid ""
2666 "When the handle is created, a default error handler is installed which "
2667 "prints the error message string to C<stderr>.  For small short-running "
2668 "command line programs it is sufficient to do:"
2669 msgstr ""
2670
2671 #. type: verbatim
2672 #: ../src/guestfs.pod:1338
2673 #, no-wrap
2674 msgid ""
2675 " if (guestfs_launch (g) == -1)\n"
2676 "   exit (EXIT_FAILURE);\n"
2677 "\n"
2678 msgstr ""
2679
2680 #. type: textblock
2681 #: ../src/guestfs.pod:1341
2682 msgid ""
2683 "since the default error handler will ensure that an error message has been "
2684 "printed to C<stderr> before the program exits."
2685 msgstr ""
2686
2687 #. type: textblock
2688 #: ../src/guestfs.pod:1344
2689 msgid ""
2690 "For other programs the caller will almost certainly want to install an "
2691 "alternate error handler or do error handling in-line like this:"
2692 msgstr ""
2693
2694 #. type: verbatim
2695 #: ../src/guestfs.pod:1347
2696 #, no-wrap
2697 msgid ""
2698 " g = guestfs_create ();\n"
2699 " \n"
2700 msgstr ""
2701
2702 #. type: verbatim
2703 #: ../src/guestfs.pod:1349
2704 #, no-wrap
2705 msgid ""
2706 " /* This disables the default behaviour of printing errors\n"
2707 "    on stderr. */\n"
2708 " guestfs_set_error_handler (g, NULL, NULL);\n"
2709 " \n"
2710 msgstr ""
2711
2712 #. type: verbatim
2713 #: ../src/guestfs.pod:1353
2714 #, no-wrap
2715 msgid ""
2716 " if (guestfs_launch (g) == -1) {\n"
2717 "   /* Examine the error message and print it etc. */\n"
2718 "   char *msg = guestfs_last_error (g);\n"
2719 "   int errnum = guestfs_last_errno (g);\n"
2720 "   fprintf (stderr, \"%s\\n\", msg);\n"
2721 "   /* ... */\n"
2722 "  }\n"
2723 "\n"
2724 msgstr ""
2725
2726 #. type: textblock
2727 #: ../src/guestfs.pod:1361
2728 msgid ""
2729 "Out of memory errors are handled differently.  The default action is to call "
2730 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2731 "guestfs_set_out_of_memory_handler>."
2732 msgstr ""
2733
2734 #. type: textblock
2735 #: ../src/guestfs.pod:1365
2736 msgid ""
2737 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2738 "because there is no handle if this happens there is no way to get additional "
2739 "error information.  However L</guestfs_create> is supposed to be a "
2740 "lightweight operation which can only fail because of insufficient memory (it "
2741 "returns NULL in this case)."
2742 msgstr ""
2743
2744 #. type: =head2
2745 #: ../src/guestfs.pod:1371
2746 msgid "guestfs_last_error"
2747 msgstr ""
2748
2749 #. type: verbatim
2750 #: ../src/guestfs.pod:1373
2751 #, no-wrap
2752 msgid ""
2753 " const char *guestfs_last_error (guestfs_h *g);\n"
2754 "\n"
2755 msgstr ""
2756
2757 #. type: textblock
2758 #: ../src/guestfs.pod:1375
2759 msgid ""
2760 "This returns the last error message that happened on C<g>.  If there has not "
2761 "been an error since the handle was created, then this returns C<NULL>."
2762 msgstr ""
2763
2764 #. type: textblock
2765 #: ../src/guestfs.pod:1379
2766 msgid ""
2767 "The lifetime of the returned string is until the next error occurs, or L</"
2768 "guestfs_close> is called."
2769 msgstr ""
2770
2771 #. type: =head2
2772 #: ../src/guestfs.pod:1382
2773 msgid "guestfs_last_errno"
2774 msgstr ""
2775
2776 #. type: verbatim
2777 #: ../src/guestfs.pod:1384
2778 #, no-wrap
2779 msgid ""
2780 " int guestfs_last_errno (guestfs_h *g);\n"
2781 "\n"
2782 msgstr ""
2783
2784 #. type: textblock
2785 #: ../src/guestfs.pod:1386
2786 msgid "This returns the last error number (errno) that happened on C<g>."
2787 msgstr ""
2788
2789 #. type: textblock
2790 #: ../src/guestfs.pod:1388
2791 msgid "If successful, an errno integer not equal to zero is returned."
2792 msgstr ""
2793
2794 #. type: textblock
2795 #: ../src/guestfs.pod:1390
2796 msgid ""
2797 "If no error, this returns 0.  This call can return 0 in three situations:"
2798 msgstr ""
2799
2800 #. type: textblock
2801 #: ../src/guestfs.pod:1397
2802 msgid "There has not been any error on the handle."
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../src/guestfs.pod:1401
2807 msgid ""
2808 "There has been an error but the errno was meaningless.  This corresponds to "
2809 "the case where the error did not come from a failed system call, but for "
2810 "some other reason."
2811 msgstr ""
2812
2813 #. type: textblock
2814 #: ../src/guestfs.pod:1407
2815 msgid ""
2816 "There was an error from a failed system call, but for some reason the errno "
2817 "was not captured and returned.  This usually indicates a bug in libguestfs."
2818 msgstr ""
2819
2820 #. type: textblock
2821 #: ../src/guestfs.pod:1413
2822 msgid ""
2823 "Libguestfs tries to convert the errno from inside the applicance into a "
2824 "corresponding errno for the caller (not entirely trivial: the appliance "
2825 "might be running a completely different operating system from the library "
2826 "and error numbers are not standardized across Un*xen).  If this could not be "
2827 "done, then the error is translated to C<EINVAL>.  In practice this should "
2828 "only happen in very rare circumstances."
2829 msgstr ""
2830
2831 #. type: =head2
2832 #: ../src/guestfs.pod:1421
2833 msgid "guestfs_set_error_handler"
2834 msgstr ""
2835
2836 #. type: verbatim
2837 #: ../src/guestfs.pod:1423
2838 #, no-wrap
2839 msgid ""
2840 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2841 "                                           void *opaque,\n"
2842 "                                           const char *msg);\n"
2843 " void guestfs_set_error_handler (guestfs_h *g,\n"
2844 "                                 guestfs_error_handler_cb cb,\n"
2845 "                                 void *opaque);\n"
2846 "\n"
2847 msgstr ""
2848
2849 #. type: textblock
2850 #: ../src/guestfs.pod:1430
2851 msgid ""
2852 "The callback C<cb> will be called if there is an error.  The parameters "
2853 "passed to the callback are an opaque data pointer and the error message "
2854 "string."
2855 msgstr ""
2856
2857 #. type: textblock
2858 #: ../src/guestfs.pod:1434
2859 msgid ""
2860 "C<errno> is not passed to the callback.  To get that the callback must call "
2861 "L</guestfs_last_errno>."
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../src/guestfs.pod:1437
2866 msgid ""
2867 "Note that the message string C<msg> is freed as soon as the callback "
2868 "function returns, so if you want to stash it somewhere you must make your "
2869 "own copy."
2870 msgstr ""
2871
2872 #. type: textblock
2873 #: ../src/guestfs.pod:1441
2874 msgid "The default handler prints messages on C<stderr>."
2875 msgstr ""
2876
2877 #. type: textblock
2878 #: ../src/guestfs.pod:1443
2879 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2880 msgstr ""
2881
2882 #. type: =head2
2883 #: ../src/guestfs.pod:1445
2884 msgid "guestfs_get_error_handler"
2885 msgstr ""
2886
2887 #. type: verbatim
2888 #: ../src/guestfs.pod:1447
2889 #, no-wrap
2890 msgid ""
2891 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2892 "                                                     void **opaque_rtn);\n"
2893 "\n"
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../src/guestfs.pod:1450
2898 msgid "Returns the current error handler callback."
2899 msgstr ""
2900
2901 #. type: =head2
2902 #: ../src/guestfs.pod:1452
2903 msgid "guestfs_set_out_of_memory_handler"
2904 msgstr ""
2905
2906 #. type: verbatim
2907 #: ../src/guestfs.pod:1454
2908 #, no-wrap
2909 msgid ""
2910 " typedef void (*guestfs_abort_cb) (void);\n"
2911 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2912 "                                        guestfs_abort_cb);\n"
2913 "\n"
2914 msgstr ""
2915
2916 #. type: textblock
2917 #: ../src/guestfs.pod:1458
2918 msgid ""
2919 "The callback C<cb> will be called if there is an out of memory situation.  "
2920 "I<Note this callback must not return>."
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../src/guestfs.pod:1461
2925 msgid "The default is to call L<abort(3)>."
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../src/guestfs.pod:1463
2930 msgid ""
2931 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2932 msgstr ""
2933
2934 #. type: =head2
2935 #: ../src/guestfs.pod:1466
2936 msgid "guestfs_get_out_of_memory_handler"
2937 msgstr ""
2938
2939 #. type: verbatim
2940 #: ../src/guestfs.pod:1468
2941 #, no-wrap
2942 msgid ""
2943 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2944 "\n"
2945 msgstr ""
2946
2947 #. type: textblock
2948 #: ../src/guestfs.pod:1470
2949 msgid "This returns the current out of memory handler."
2950 msgstr ""
2951
2952 #. type: =head1
2953 #: ../src/guestfs.pod:1472
2954 msgid "API CALLS"
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1010
2959 msgid "@ACTIONS@"
2960 msgstr "@ACTIONS@"
2961
2962 #. type: =head1
2963 #: ../src/guestfs.pod:1476
2964 msgid "STRUCTURES"
2965 msgstr "СТРУКТУРИ"
2966
2967 #. type: textblock
2968 #: ../src/guestfs.pod:1478
2969 msgid "@STRUCTS@"
2970 msgstr "@STRUCTS@"
2971
2972 #. type: =head1
2973 #: ../src/guestfs.pod:1480
2974 msgid "AVAILABILITY"
2975 msgstr ""
2976
2977 #. type: =head2
2978 #: ../src/guestfs.pod:1482
2979 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2980 msgstr ""
2981
2982 #. type: textblock
2983 #: ../src/guestfs.pod:1484
2984 msgid ""
2985 "Using L</guestfs_available> you can test availability of the following "
2986 "groups of functions.  This test queries the appliance to see if the "
2987 "appliance you are currently using supports the functionality."
2988 msgstr ""
2989
2990 #. type: textblock
2991 #: ../src/guestfs.pod:1489
2992 msgid "@AVAILABILITY@"
2993 msgstr ""
2994
2995 #. type: =head2
2996 #: ../src/guestfs.pod:1491
2997 msgid "GUESTFISH supported COMMAND"
2998 msgstr ""
2999
3000 #. type: textblock
3001 #: ../src/guestfs.pod:1493
3002 msgid ""
3003 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3004 "prints out the available groups and whether they are supported by this build "
3005 "of libguestfs.  Note however that you have to do C<run> first."
3006 msgstr ""
3007
3008 #. type: =head2
3009 #: ../src/guestfs.pod:1498
3010 msgid "SINGLE CALLS AT COMPILE TIME"
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../src/guestfs.pod:1500
3015 msgid ""
3016 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3017 "function, such as:"
3018 msgstr ""
3019
3020 #. type: verbatim
3021 #: ../src/guestfs.pod:1503
3022 #, no-wrap
3023 msgid ""
3024 " #define LIBGUESTFS_HAVE_DD 1\n"
3025 "\n"
3026 msgstr ""
3027
3028 #. type: textblock
3029 #: ../src/guestfs.pod:1505
3030 msgid "if L</guestfs_dd> is available."
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../src/guestfs.pod:1507
3035 msgid ""
3036 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3037 "function is available at compile time, we recommended using build tools such "
3038 "as autoconf or cmake.  For example in autotools you could use:"
3039 msgstr ""
3040
3041 #. type: verbatim
3042 #: ../src/guestfs.pod:1512
3043 #, no-wrap
3044 msgid ""
3045 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3046 " AC_CHECK_FUNCS([guestfs_dd])\n"
3047 "\n"
3048 msgstr ""
3049
3050 #. type: textblock
3051 #: ../src/guestfs.pod:1515
3052 msgid ""
3053 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3054 "in your program."
3055 msgstr ""
3056
3057 #. type: =head2
3058 #: ../src/guestfs.pod:1518
3059 msgid "SINGLE CALLS AT RUN TIME"
3060 msgstr ""
3061
3062 #. type: textblock
3063 #: ../src/guestfs.pod:1520
3064 msgid ""
3065 "Testing at compile time doesn't guarantee that a function really exists in "
3066 "the library.  The reason is that you might be dynamically linked against a "
3067 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3068 "This situation unfortunately results in a segmentation fault, which is a "
3069 "shortcoming of the C dynamic linking system itself."
3070 msgstr ""
3071
3072 #. type: textblock
3073 #: ../src/guestfs.pod:1527
3074 msgid ""
3075 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3076 "in this example program (note that you still need the compile time check as "
3077 "well):"
3078 msgstr ""
3079
3080 #. type: verbatim
3081 #: ../src/guestfs.pod:1531
3082 #, no-wrap
3083 msgid ""
3084 " #include <stdio.h>\n"
3085 " #include <stdlib.h>\n"
3086 " #include <unistd.h>\n"
3087 " #include <dlfcn.h>\n"
3088 " #include <guestfs.h>\n"
3089 " \n"
3090 msgstr ""
3091
3092 #. type: verbatim
3093 #: ../src/guestfs.pod:1537
3094 #, no-wrap
3095 msgid ""
3096 " main ()\n"
3097 " {\n"
3098 " #ifdef LIBGUESTFS_HAVE_DD\n"
3099 "   void *dl;\n"
3100 "   int has_function;\n"
3101 " \n"
3102 msgstr ""
3103
3104 #. type: verbatim
3105 #: ../src/guestfs.pod:1543
3106 #, no-wrap
3107 msgid ""
3108 "   /* Test if the function guestfs_dd is really available. */\n"
3109 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3110 "   if (!dl) {\n"
3111 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3112 "     exit (EXIT_FAILURE);\n"
3113 "   }\n"
3114 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3115 "   dlclose (dl);\n"
3116 " \n"
3117 msgstr ""
3118
3119 #. type: verbatim
3120 #: ../src/guestfs.pod:1552
3121 #, no-wrap
3122 msgid ""
3123 "   if (!has_function)\n"
3124 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3125 "   else {\n"
3126 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3127 "     /* Now it's safe to call\n"
3128 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3129 "     */\n"
3130 "   }\n"
3131 " #else\n"
3132 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3133 " #endif\n"
3134 "  }\n"
3135 "\n"
3136 msgstr ""
3137
3138 #. type: textblock
3139 #: ../src/guestfs.pod:1565
3140 msgid ""
3141 "You may think the above is an awful lot of hassle, and it is.  There are "
3142 "other ways outside of the C linking system to ensure that this kind of "
3143 "incompatibility never arises, such as using package versioning:"
3144 msgstr ""
3145
3146 #. type: verbatim
3147 #: ../src/guestfs.pod:1570
3148 #, no-wrap
3149 msgid ""
3150 " Requires: libguestfs >= 1.0.80\n"
3151 "\n"
3152 msgstr ""
3153
3154 #. type: =head1
3155 #: ../src/guestfs.pod:1572
3156 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3157 msgstr ""
3158
3159 #. type: textblock
3160 #: ../src/guestfs.pod:1574
3161 msgid ""
3162 "A recent feature of the API is the introduction of calls which take optional "
3163 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3164 "takes variable arguments (ie. C<...>), as in this example:"
3165 msgstr ""
3166
3167 #. type: verbatim
3168 #: ../src/guestfs.pod:1579
3169 #, no-wrap
3170 msgid ""
3171 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3172 "\n"
3173 msgstr ""
3174
3175 #. type: textblock
3176 #: ../src/guestfs.pod:1581
3177 msgid ""
3178 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3179 "call with no optional arguments specified:"
3180 msgstr ""
3181
3182 #. type: verbatim
3183 #: ../src/guestfs.pod:1584
3184 #, no-wrap
3185 msgid ""
3186 " guestfs_add_drive_opts (g, filename, -1);\n"
3187 "\n"
3188 msgstr ""
3189
3190 #. type: textblock
3191 #: ../src/guestfs.pod:1586
3192 msgid "With a single optional argument:"
3193 msgstr ""
3194
3195 #. type: verbatim
3196 #: ../src/guestfs.pod:1588
3197 #, no-wrap
3198 msgid ""
3199 " guestfs_add_drive_opts (g, filename,\n"
3200 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3201 "                         -1);\n"
3202 "\n"
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../src/guestfs.pod:1592
3207 msgid "With two:"
3208 msgstr ""
3209
3210 #. type: verbatim
3211 #: ../src/guestfs.pod:1594
3212 #, no-wrap
3213 msgid ""
3214 " guestfs_add_drive_opts (g, filename,\n"
3215 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3216 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3217 "                         -1);\n"
3218 "\n"
3219 msgstr ""
3220
3221 #. type: textblock
3222 #: ../src/guestfs.pod:1599
3223 msgid ""
3224 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3225 "happen!"
3226 msgstr ""
3227
3228 #. type: =head2
3229 #: ../src/guestfs.pod:1602
3230 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3231 msgstr ""
3232
3233 #. type: textblock
3234 #: ../src/guestfs.pod:1604
3235 msgid ""
3236 "The second variant has the same name with the suffix C<_va>, which works the "
3237 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3238 "example function, this is declared:"
3239 msgstr ""
3240
3241 #. type: verbatim
3242 #: ../src/guestfs.pod:1608
3243 #, no-wrap
3244 msgid ""
3245 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3246 "                                va_list args);\n"
3247 "\n"
3248 msgstr ""
3249
3250 #. type: =head2
3251 #: ../src/guestfs.pod:1611
3252 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3253 msgstr ""
3254
3255 #. type: textblock
3256 #: ../src/guestfs.pod:1613
3257 msgid ""
3258 "The third variant is useful where you need to construct these calls.  You "
3259 "pass in a structure where you fill in the optional fields.  The structure "
3260 "has a bitmask as the first element which you must set to indicate which "
3261 "fields you have filled in.  For our example function the structure and call "
3262 "are declared:"
3263 msgstr ""
3264
3265 #. type: verbatim
3266 #: ../src/guestfs.pod:1619
3267 #, no-wrap
3268 msgid ""
3269 " struct guestfs_add_drive_opts_argv {\n"
3270 "   uint64_t bitmask;\n"
3271 "   int readonly;\n"
3272 "   const char *format;\n"
3273 "   /* ... */\n"
3274 " };\n"
3275 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3276 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3277 "\n"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../src/guestfs.pod:1628
3282 msgid "You could call it like this:"
3283 msgstr ""
3284
3285 #. type: verbatim
3286 #: ../src/guestfs.pod:1630
3287 #, no-wrap
3288 msgid ""
3289 " struct guestfs_add_drive_opts_argv optargs = {\n"
3290 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3291 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3292 "   .readonly = 1,\n"
3293 "   .format = \"qcow2\"\n"
3294 " };\n"
3295 " \n"
3296 msgstr ""
3297
3298 #. type: verbatim
3299 #: ../src/guestfs.pod:1637
3300 #, no-wrap
3301 msgid ""
3302 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3303 "\n"
3304 msgstr ""
3305
3306 #. type: textblock
3307 #: ../src/guestfs.pod:1639 ../src/guestfs-actions.pod:11
3308 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:9
3309 #: ../fish/guestfish-actions.pod:1262 ../tools/virt-win-reg.pl:704
3310 msgid "Notes:"
3311 msgstr "Нотатки:"
3312
3313 #. type: textblock
3314 #: ../src/guestfs.pod:1645
3315 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3316 msgstr ""
3317
3318 #. type: textblock
3319 #: ../src/guestfs.pod:1650
3320 msgid "You do not need to fill in all fields of the structure."
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../src/guestfs.pod:1654
3325 msgid ""
3326 "There must be a one-to-one correspondence between fields of the structure "
3327 "that are filled in, and bits set in the bitmask."
3328 msgstr ""
3329
3330 #. type: =head2
3331 #: ../src/guestfs.pod:1659
3332 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../src/guestfs.pod:1661
3337 msgid ""
3338 "In other languages, optional arguments are expressed in the way that is "
3339 "natural for that language.  We refer you to the language-specific "
3340 "documentation for more details on that."
3341 msgstr ""
3342
3343 #. type: textblock
3344 #: ../src/guestfs.pod:1665
3345 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3346 msgstr ""
3347
3348 #. type: =head2
3349 #: ../src/guestfs.pod:1667
3350 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3351 msgstr ""
3352
3353 #. type: textblock
3354 #: ../src/guestfs.pod:1669
3355 msgid ""
3356 "B<Note:> This section documents the generic event mechanism introduced in "
3357 "libguestfs 1.10, which you should use in new code if possible.  The old "
3358 "functions C<guestfs_set_log_message_callback>, "
3359 "C<guestfs_set_subprocess_quit_callback>, "
3360 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3361 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3362 "page.  Because of the ABI guarantee, the old functions continue to work."
3363 msgstr ""
3364
3365 #. type: textblock
3366 #: ../src/guestfs.pod:1678
3367 msgid ""
3368 "Handles generate events when certain things happen, such as log messages "
3369 "being generated, progress messages during long-running operations, or the "
3370 "handle being closed.  The API calls described below let you register a "
3371 "callback to be called when events happen.  You can register multiple "
3372 "callbacks (for the same, different or overlapping sets of events), and "
3373 "individually remove callbacks.  If callbacks are not removed, then they "
3374 "remain in force until the handle is closed."
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../src/guestfs.pod:1686
3379 msgid ""
3380 "In the current implementation, events are only generated synchronously: that "
3381 "means that events (and hence callbacks) can only happen while you are in the "
3382 "middle of making another libguestfs call.  The callback is called in the "
3383 "same thread."
3384 msgstr ""
3385
3386 #. type: textblock
3387 #: ../src/guestfs.pod:1691
3388 msgid ""
3389 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3390 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3391 msgstr ""
3392
3393 #. type: =head3
3394 #: ../src/guestfs.pod:1695
3395 msgid "CLASSES OF EVENTS"
3396 msgstr ""
3397
3398 #. type: =item
3399 #: ../src/guestfs.pod:1699
3400 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3401 msgstr ""
3402
3403 #. type: textblock
3404 #: ../src/guestfs.pod:1702
3405 msgid ""
3406 "The callback function will be called while the handle is being closed "
3407 "(synchronously from L</guestfs_close>)."
3408 msgstr ""
3409
3410 #. type: textblock
3411 #: ../src/guestfs.pod:1705
3412 msgid ""
3413 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3414 "handles that are open when the program exits.  This means that this callback "
3415 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3416 "problems in higher-level languages (eg. if your HLL interpreter has already "
3417 "been cleaned up by the time this is called, and if your callback then jumps "
3418 "into some HLL function)."
3419 msgstr ""
3420
3421 #. type: textblock
3422 #: ../src/guestfs.pod:1712
3423 msgid ""
3424 "If no callback is registered: the handle is closed without any callback "
3425 "being invoked."
3426 msgstr ""
3427
3428 #. type: =item
3429 #: ../src/guestfs.pod:1715
3430 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../src/guestfs.pod:1718
3435 msgid ""
3436 "The callback function will be called when the child process quits, either "
3437 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3438 "corresponds to a transition from any state to the CONFIG state)."
3439 msgstr ""
3440
3441 #. type: textblock
3442 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3443 msgid "If no callback is registered: the event is ignored."
3444 msgstr ""
3445
3446 #. type: =item
3447 #: ../src/guestfs.pod:1724
3448 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3449 msgstr ""
3450
3451 #. type: textblock
3452 #: ../src/guestfs.pod:1727
3453 msgid ""
3454 "The callback function will be called when the child process becomes ready "
3455 "first time after it has been launched.  (This corresponds to a transition "
3456 "from LAUNCHING to the READY state)."
3457 msgstr ""
3458
3459 #. type: =item
3460 #: ../src/guestfs.pod:1733
3461 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3462 msgstr ""
3463
3464 #. type: textblock
3465 #: ../src/guestfs.pod:1736
3466 msgid ""
3467 "Some long-running operations can generate progress messages.  If this "
3468 "callback is registered, then it will be called each time a progress message "
3469 "is generated (usually two seconds after the operation started, and three "
3470 "times per second thereafter until it completes, although the frequency may "
3471 "change in future versions)."
3472 msgstr ""
3473
3474 #. type: textblock
3475 #: ../src/guestfs.pod:1742
3476 msgid ""
3477 "The callback receives in the payload four unsigned 64 bit numbers which are "
3478 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3479 msgstr ""
3480
3481 #. type: textblock
3482 #: ../src/guestfs.pod:1745
3483 msgid ""
3484 "The units of C<total> are not defined, although for some operations C<total> "
3485 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3486 "or megabytes), and C<position> may be the portion which has been transferred."
3487 msgstr ""
3488
3489 #. type: textblock
3490 #: ../src/guestfs.pod:1750
3491 msgid "The only defined and stable parts of the API are:"
3492 msgstr ""
3493
3494 #. type: textblock
3495 #: ../src/guestfs.pod:1756
3496 msgid ""
3497 "The callback can display to the user some type of progress bar or indicator "
3498 "which shows the ratio of C<position>:C<total>."
3499 msgstr ""
3500
3501 #. type: textblock
3502 #: ../src/guestfs.pod:1761
3503 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3504 msgstr ""
3505
3506 #. type: textblock
3507 #: ../src/guestfs.pod:1765
3508 msgid ""
3509 "If any progress notification is sent during a call, then a final progress "
3510 "notification is always sent when C<position> = C<total> (I<unless> the call "
3511 "fails with an error)."
3512 msgstr ""
3513
3514 #. type: textblock
3515 #: ../src/guestfs.pod:1769
3516 msgid ""
3517 "This is to simplify caller code, so callers can easily set the progress "
3518 "indicator to \"100%\" at the end of the operation, without requiring special "
3519 "code to detect this case."
3520 msgstr ""
3521
3522 #. type: textblock
3523 #: ../src/guestfs.pod:1775
3524 msgid ""
3525 "For some calls we are unable to estimate the progress of the call, but we "
3526 "can still generate progress messages to indicate activity.  This is known as "
3527 "\"pulse mode\", and is directly supported by certain progress bar "
3528 "implementations (eg. GtkProgressBar)."
3529 msgstr ""
3530
3531 #. type: textblock
3532 #: ../src/guestfs.pod:1780
3533 msgid ""
3534 "For these calls, zero or more progress messages are generated with "
3535 "C<position = 0> and C<total = 1>, followed by a final message with "
3536 "C<position = total = 1>."
3537 msgstr ""
3538
3539 #. type: textblock
3540 #: ../src/guestfs.pod:1784
3541 msgid ""
3542 "As noted above, if the call fails with an error then the final message may "
3543 "not be generated."
3544 msgstr ""
3545
3546 #. type: textblock
3547 #: ../src/guestfs.pod:1789
3548 msgid ""
3549 "The callback also receives the procedure number (C<proc_nr>) and serial "
3550 "number (C<serial>) of the call.  These are only useful for debugging "
3551 "protocol issues, and the callback can normally ignore them.  The callback "
3552 "may want to print these numbers in error messages or debugging messages."
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../src/guestfs.pod:1795
3557 msgid "If no callback is registered: progress messages are discarded."
3558 msgstr ""
3559
3560 #. type: =item
3561 #: ../src/guestfs.pod:1797
3562 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3563 msgstr ""
3564
3565 #. type: textblock
3566 #: ../src/guestfs.pod:1800
3567 msgid ""
3568 "The callback function is called whenever a log message is generated by qemu, "
3569 "the appliance kernel, guestfsd (daemon), or utility programs."
3570 msgstr ""
3571
3572 #. type: textblock
3573 #: ../src/guestfs.pod:1803
3574 msgid ""
3575 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3576 "guestfs_launch>) then additional debug messages are generated."
3577 msgstr ""
3578
3579 #. type: textblock
3580 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
3581 msgid ""
3582 "If no callback is registered: the messages are discarded unless the verbose "
3583 "flag is set in which case they are sent to stderr.  You can override the "
3584 "printing of verbose messages to stderr by setting up a callback."
3585 msgstr ""
3586
3587 #. type: =item
3588 #: ../src/guestfs.pod:1811
3589 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3590 msgstr ""
3591
3592 #. type: textblock
3593 #: ../src/guestfs.pod:1814
3594 msgid ""
3595 "The callback function is called whenever a log message is generated by the "
3596 "library part of libguestfs."
3597 msgstr ""
3598
3599 #. type: textblock
3600 #: ../src/guestfs.pod:1817
3601 msgid ""
3602 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3603 "messages are generated."
3604 msgstr ""
3605
3606 #. type: =item
3607 #: ../src/guestfs.pod:1825
3608 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3609 msgstr ""
3610
3611 #. type: textblock
3612 #: ../src/guestfs.pod:1828
3613 msgid ""
3614 "The callback function is called whenever a trace message is generated.  This "
3615 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3616 msgstr ""
3617
3618 #. type: textblock
3619 #: ../src/guestfs.pod:1831
3620 msgid ""
3621 "If no callback is registered: the messages are sent to stderr.  You can "
3622 "override the printing of trace messages to stderr by setting up a callback."
3623 msgstr ""
3624
3625 #. type: =head3
3626 #: ../src/guestfs.pod:1837
3627 msgid "guestfs_set_event_callback"
3628 msgstr ""
3629
3630 #. type: verbatim
3631 #: ../src/guestfs.pod:1839
3632 #, no-wrap
3633 msgid ""
3634 " int guestfs_set_event_callback (guestfs_h *g,\n"
3635 "                                 guestfs_event_callback cb,\n"
3636 "                                 uint64_t event_bitmask,\n"
3637 "                                 int flags,\n"
3638 "                                 void *opaque);\n"
3639 "\n"
3640 msgstr ""
3641
3642 #. type: textblock
3643 #: ../src/guestfs.pod:1845
3644 msgid ""
3645 "This function registers a callback (C<cb>) for all event classes in the "
3646 "C<event_bitmask>."
3647 msgstr ""
3648
3649 #. type: textblock
3650 #: ../src/guestfs.pod:1848
3651 msgid ""
3652 "For example, to register for all log message events, you could call this "
3653 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
3654 "To register a single callback for all possible classes of events, use "
3655 "C<GUESTFS_EVENT_ALL>."
3656 msgstr ""
3657
3658 #. type: textblock
3659 #: ../src/guestfs.pod:1854
3660 msgid "C<flags> should always be passed as 0."
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../src/guestfs.pod:1856
3665 msgid ""
3666 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
3667 "it for any purpose."
3668 msgstr ""
3669
3670 #. type: textblock
3671 #: ../src/guestfs.pod:1859
3672 msgid ""
3673 "The return value is the event handle (an integer) which you can use to "
3674 "delete the callback (see below)."
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../src/guestfs.pod:1862
3679 msgid ""
3680 "If there is an error, this function returns C<-1>, and sets the error in the "
3681 "handle in the usual way (see L</guestfs_last_error> etc.)"
3682 msgstr ""
3683
3684 #. type: textblock
3685 #: ../src/guestfs.pod:1865
3686 msgid ""
3687 "Callbacks remain in effect until they are deleted, or until the handle is "
3688 "closed."
3689 msgstr ""
3690
3691 #. type: textblock
3692 #: ../src/guestfs.pod:1868
3693 msgid ""
3694 "In the case where multiple callbacks are registered for a particular event "
3695 "class, all of the callbacks are called.  The order in which multiple "
3696 "callbacks are called is not defined."
3697 msgstr ""
3698
3699 #. type: =head3
3700 #: ../src/guestfs.pod:1872
3701 msgid "guestfs_delete_event_callback"
3702 msgstr ""
3703
3704 #. type: verbatim
3705 #: ../src/guestfs.pod:1874
3706 #, no-wrap
3707 msgid ""
3708 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
3709 "\n"
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../src/guestfs.pod:1876
3714 msgid ""
3715 "Delete a callback that was previously registered.  C<event_handle> should be "
3716 "the integer that was returned by a previous call to "
3717 "C<guestfs_set_event_callback> on the same handle."
3718 msgstr ""
3719
3720 #. type: =head3
3721 #: ../src/guestfs.pod:1880
3722 msgid "guestfs_event_callback"
3723 msgstr ""
3724
3725 #. type: verbatim
3726 #: ../src/guestfs.pod:1882
3727 #, no-wrap
3728 msgid ""
3729 " typedef void (*guestfs_event_callback) (\n"
3730 "                  guestfs_h *g,\n"
3731 "                  void *opaque,\n"
3732 "                  uint64_t event,\n"
3733 "                  int event_handle,\n"
3734 "                  int flags,\n"
3735 "                  const char *buf, size_t buf_len,\n"
3736 "                  const uint64_t *array, size_t array_len);\n"
3737 "\n"
3738 msgstr ""
3739
3740 #. type: textblock
3741 #: ../src/guestfs.pod:1891
3742 msgid ""
3743 "This is the type of the event callback function that you have to provide."
3744 msgstr ""
3745
3746 #. type: textblock
3747 #: ../src/guestfs.pod:1894
3748 msgid ""
3749 "The basic parameters are: the handle (C<g>), the opaque user pointer "
3750 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
3751 "handle, and C<flags> which in the current API you should ignore."
3752 msgstr ""
3753
3754 #. type: textblock
3755 #: ../src/guestfs.pod:1898
3756 msgid ""
3757 "The remaining parameters contain the event payload (if any).  Each event may "
3758 "contain a payload, which usually relates to the event class, but for future "
3759 "proofing your code should be written to handle any payload for any event "
3760 "class."
3761 msgstr ""
3762
3763 #. type: textblock
3764 #: ../src/guestfs.pod:1903
3765 msgid ""
3766 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
3767 "there is no message buffer).  Note that this message buffer can contain "
3768 "arbitrary 8 bit data, including NUL bytes."
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../src/guestfs.pod:1907
3773 msgid ""
3774 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
3775 "moment this is only used for progress messages."
3776 msgstr ""
3777
3778 #. type: =head3
3779 #: ../src/guestfs.pod:1910
3780 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3781 msgstr ""
3782
3783 #. type: textblock
3784 #: ../src/guestfs.pod:1912
3785 msgid ""
3786 "One motivation for the generic event API was to allow GUI programs to "
3787 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
3788 "unconditionally to C<stderr>."
3789 msgstr ""
3790
3791 #. type: textblock
3792 #: ../src/guestfs.pod:1916
3793 msgid ""
3794 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
3795 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
3796 "messages are not events; you must capture error messages separately)."
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../src/guestfs.pod:1921
3801 msgid ""
3802 "Programs have to set up a callback to capture the classes of events of "
3803 "interest:"
3804 msgstr ""
3805
3806 #. type: verbatim
3807 #: ../src/guestfs.pod:1924
3808 #, no-wrap
3809 msgid ""
3810 " int eh =\n"
3811 "   guestfs_set_event_callback\n"
3812 "     (g, message_callback,\n"
3813 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
3814 "      GUESTFS_EVENT_TRACE,\n"
3815 "      0, NULL) == -1)\n"
3816 " if (eh == -1) {\n"
3817 "   // handle error in the usual way\n"
3818 " }\n"
3819 "\n"
3820 msgstr ""
3821
3822 #. type: textblock
3823 #: ../src/guestfs.pod:1934
3824 msgid ""
3825 "The callback can then direct messages to the appropriate place.  In this "
3826 "example, messages are directed to syslog:"
3827 msgstr ""
3828
3829 #. type: verbatim
3830 #: ../src/guestfs.pod:1937
3831 #, no-wrap
3832 msgid ""
3833 " static void\n"
3834 " message_callback (\n"
3835 "         guestfs_h *g,\n"
3836 "         void *opaque,\n"
3837 "         uint64_t event,\n"
3838 "         int event_handle,\n"
3839 "         int flags,\n"
3840 "         const char *buf, size_t buf_len,\n"
3841 "         const uint64_t *array, size_t array_len)\n"
3842 " {\n"
3843 "   const int priority = LOG_USER|LOG_INFO;\n"
3844 "   if (buf_len > 0)\n"
3845 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
3846 " }\n"
3847 "\n"
3848 msgstr ""
3849
3850 #. type: =head1
3851 #: ../src/guestfs.pod:1952
3852 msgid "PRIVATE DATA AREA"
3853 msgstr ""
3854
3855 #. type: textblock
3856 #: ../src/guestfs.pod:1954
3857 msgid ""
3858 "You can attach named pieces of private data to the libguestfs handle, fetch "
3859 "them by name, and walk over them, for the lifetime of the handle.  This is "
3860 "called the private data area and is only available from the C API."
3861 msgstr ""
3862
3863 #. type: textblock
3864 #: ../src/guestfs.pod:1959
3865 msgid "To attach a named piece of data, use the following call:"
3866 msgstr ""
3867
3868 #. type: verbatim
3869 #: ../src/guestfs.pod:1961
3870 #, no-wrap
3871 msgid ""
3872 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3873 "\n"
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../src/guestfs.pod:1963
3878 msgid ""
3879 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3880 "pointer (which can be C<NULL>).  Any previous item with the same key is "
3881 "overwritten."
3882 msgstr ""
3883
3884 #. type: textblock
3885 #: ../src/guestfs.pod:1967
3886 msgid ""
3887 "You can use any C<key> you want, but your key should I<not> start with an "
3888 "underscore character.  Keys beginning with an underscore character are "
3889 "reserved for internal libguestfs purposes (eg. for implementing language "
3890 "bindings).  It is recommended that you prefix the key with some unique "
3891 "string to avoid collisions with other users."
3892 msgstr ""
3893
3894 #. type: textblock
3895 #: ../src/guestfs.pod:1973
3896 msgid "To retrieve the pointer, use:"
3897 msgstr ""
3898
3899 #. type: verbatim
3900 #: ../src/guestfs.pod:1975
3901 #, no-wrap
3902 msgid ""
3903 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3904 "\n"
3905 msgstr ""
3906
3907 #. type: textblock
3908 #: ../src/guestfs.pod:1977
3909 msgid ""
3910 "This function returns C<NULL> if either no data is found associated with "
3911 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3912 "C<NULL>."
3913 msgstr ""
3914
3915 #. type: textblock
3916 #: ../src/guestfs.pod:1981
3917 msgid ""
3918 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3919 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3920 "all.  In particular, libguestfs does I<not> try to free the data when the "
3921 "handle is closed.  If the data must be freed, then the caller must either "
3922 "free it before calling L</guestfs_close> or must set up a close callback to "
3923 "do it (see L</GUESTFS_EVENT_CLOSE>)."
3924 msgstr ""
3925
3926 #. type: textblock
3927 #: ../src/guestfs.pod:1988
3928 msgid "To walk over all entries, use these two functions:"
3929 msgstr ""
3930
3931 #. type: verbatim
3932 #: ../src/guestfs.pod:1990
3933 #, no-wrap
3934 msgid ""
3935 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
3936 "\n"
3937 msgstr ""
3938
3939 #. type: verbatim
3940 #: ../src/guestfs.pod:1992
3941 #, no-wrap
3942 msgid ""
3943 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
3944 "\n"
3945 msgstr ""
3946
3947 #. type: textblock
3948 #: ../src/guestfs.pod:1994
3949 msgid ""
3950 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
3951 "not have any particular meaning -- keys are not returned in any defined "
3952 "order).  A pointer to the key is returned in C<*key_rtn> and the "
3953 "corresponding data pointer is returned from the function.  C<NULL> is "
3954 "returned if there are no keys stored in the handle."
3955 msgstr ""
3956
3957 #. type: textblock
3958 #: ../src/guestfs.pod:2000
3959 msgid ""
3960 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
3961 "value of this function is also C<NULL> is there are no further entries to "
3962 "return."
3963 msgstr ""
3964
3965 #. type: textblock
3966 #: ../src/guestfs.pod:2004
3967 msgid "Notes about walking over entries:"
3968 msgstr ""
3969
3970 #. type: textblock
3971 #: ../src/guestfs.pod:2010
3972 msgid ""
3973 "You must not call C<guestfs_set_private> while walking over the entries."
3974 msgstr ""
3975
3976 #. type: textblock
3977 #: ../src/guestfs.pod:2015
3978 msgid ""
3979 "The handle maintains an internal iterator which is reset when you call "
3980 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
3981 "call C<guestfs_set_private>."
3982 msgstr ""
3983
3984 #. type: textblock
3985 #: ../src/guestfs.pod:2021
3986 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
3987 msgstr ""
3988
3989 #. type: verbatim
3990 #: ../src/guestfs.pod:2023
3991 #, no-wrap
3992 msgid ""
3993 " guestfs_set_private (g, key, NULL);\n"
3994 "\n"
3995 msgstr ""
3996
3997 #. type: textblock
3998 #: ../src/guestfs.pod:2025
3999 msgid "then that C<key> is not returned when walking."
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../src/guestfs.pod:2029
4004 msgid ""
4005 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4006 "C<guestfs_next_private> or C<guestfs_set_private>."
4007 msgstr ""
4008
4009 #. type: textblock
4010 #: ../src/guestfs.pod:2035
4011 msgid ""
4012 "The following example code shows how to print all keys and data pointers "
4013 "that are associated with the handle C<g>:"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../src/guestfs.pod:2038
4018 #, no-wrap
4019 msgid ""
4020 " const char *key;\n"
4021 " void *data = guestfs_first_private (g, &key);\n"
4022 " while (data != NULL)\n"
4023 "   {\n"
4024 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4025 "     data = guestfs_next_private (g, &key);\n"
4026 "   }\n"
4027 "\n"
4028 msgstr ""
4029
4030 #. type: textblock
4031 #: ../src/guestfs.pod:2046
4032 msgid ""
4033 "More commonly you are only interested in keys that begin with an application-"
4034 "specific prefix C<foo_>.  Modify the loop like so:"
4035 msgstr ""
4036
4037 #. type: verbatim
4038 #: ../src/guestfs.pod:2049
4039 #, no-wrap
4040 msgid ""
4041 " const char *key;\n"
4042 " void *data = guestfs_first_private (g, &key);\n"
4043 " while (data != NULL)\n"
4044 "   {\n"
4045 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4046 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4047 "     data = guestfs_next_private (g, &key);\n"
4048 "   }\n"
4049 "\n"
4050 msgstr ""
4051
4052 #. type: textblock
4053 #: ../src/guestfs.pod:2058
4054 msgid ""
4055 "If you need to modify keys while walking, then you have to jump back to the "
4056 "beginning of the loop.  For example, to delete all keys prefixed with "
4057 "C<foo_>:"
4058 msgstr ""
4059
4060 #. type: verbatim
4061 #: ../src/guestfs.pod:2062
4062 #, no-wrap
4063 msgid ""
4064 "  const char *key;\n"
4065 "  void *data;\n"
4066 " again:\n"
4067 "  data = guestfs_first_private (g, &key);\n"
4068 "  while (data != NULL)\n"
4069 "    {\n"
4070 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4071 "        {\n"
4072 "          guestfs_set_private (g, key, NULL);\n"
4073 "          /* note that 'key' pointer is now invalid, and so is\n"
4074 "             the internal iterator */\n"
4075 "          goto again;\n"
4076 "        }\n"
4077 "      data = guestfs_next_private (g, &key);\n"
4078 "    }\n"
4079 "\n"
4080 msgstr ""
4081
4082 #. type: textblock
4083 #: ../src/guestfs.pod:2078
4084 msgid ""
4085 "Note that the above loop is guaranteed to terminate because the keys are "
4086 "being deleted, but other manipulations of keys within the loop might not "
4087 "terminate unless you also maintain an indication of which keys have been "
4088 "visited."
4089 msgstr ""
4090
4091 #. type: =end
4092 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2088
4093 msgid "html"
4094 msgstr "html"
4095
4096 #. type: textblock
4097 #: ../src/guestfs.pod:2085
4098 msgid ""
4099 "<!-- old anchor for the next section --> <a name="
4100 "\"state_machine_and_low_level_event_api\"/>"
4101 msgstr ""
4102 "<!-- old anchor for the next section --> <a name="
4103 "\"state_machine_and_low_level_event_api\"/>"
4104
4105 #. type: =head1
4106 #: ../src/guestfs.pod:2090
4107 msgid "ARCHITECTURE"
4108 msgstr "АРХІТЕКТУРА"
4109
4110 #. type: textblock
4111 #: ../src/guestfs.pod:2092
4112 msgid ""
4113 "Internally, libguestfs is implemented by running an appliance (a special "
4114 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4115 "process of the main program."
4116 msgstr ""
4117
4118 #. type: verbatim
4119 #: ../src/guestfs.pod:2096
4120 #, no-wrap
4121 msgid ""
4122 "  ___________________\n"
4123 " /                   \\\n"
4124 " | main program      |\n"
4125 " |                   |\n"
4126 " |                   |           child process / appliance\n"
4127 " |                   |           __________________________\n"
4128 " |                   |          / qemu                     \\\n"
4129 " +-------------------+   RPC    |      +-----------------+ |\n"
4130 " | libguestfs     <--------------------> guestfsd        | |\n"
4131 " |                   |          |      +-----------------+ |\n"
4132 " \\___________________/          |      | Linux kernel    | |\n"
4133 "                                |      +--^--------------+ |\n"
4134 "                                \\_________|________________/\n"
4135 "                                          |\n"
4136 "                                   _______v______\n"
4137 "                                  /              \\\n"
4138 "                                  | Device or    |\n"
4139 "                                  | disk image   |\n"
4140 "                                  \\______________/\n"
4141 "\n"
4142 msgstr ""
4143
4144 #. type: textblock
4145 #: ../src/guestfs.pod:2116
4146 msgid ""
4147 "The library, linked to the main program, creates the child process and hence "
4148 "the appliance in the L</guestfs_launch> function."
4149 msgstr ""
4150
4151 #. type: textblock
4152 #: ../src/guestfs.pod:2119
4153 msgid ""
4154 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4155 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4156 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4157 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4158 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4159 "attached to the qemu process which translates device access by the "
4160 "appliance's Linux kernel into accesses to the image."
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../src/guestfs.pod:2128
4165 msgid ""
4166 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4167 "Although the disk image you are attached to might also be used by some "
4168 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4169 "care if both libguestfs's qemu process and your virtual machine are trying "
4170 "to update the disk image at the same time, since these usually results in "
4171 "massive disk corruption)."
4172 msgstr ""
4173
4174 #. type: =head1
4175 #: ../src/guestfs.pod:2135
4176 msgid "STATE MACHINE"
4177 msgstr "СКІНЧЕННИЙ АВТОМАТ"
4178
4179 #. type: textblock
4180 #: ../src/guestfs.pod:2137
4181 msgid "libguestfs uses a state machine to model the child process:"
4182 msgstr ""
4183
4184 #. type: verbatim
4185 #: ../src/guestfs.pod:2139
4186 #, no-wrap
4187 msgid ""
4188 "                         |\n"
4189 "                    guestfs_create\n"
4190 "                         |\n"
4191 "                         |\n"
4192 "                     ____V_____\n"
4193 "                    /          \\\n"
4194 "                    |  CONFIG  |\n"
4195 "                    \\__________/\n"
4196 "                     ^ ^   ^  \\\n"
4197 "                    /  |    \\  \\ guestfs_launch\n"
4198 "                   /   |    _\\__V______\n"
4199 "                  /    |   /           \\\n"
4200 "                 /     |   | LAUNCHING |\n"
4201 "                /      |   \\___________/\n"
4202 "               /       |       /\n"
4203 "              /        |  guestfs_launch\n"
4204 "             /         |     /\n"
4205 "    ______  /        __|____V\n"
4206 "   /      \\ ------> /        \\\n"
4207 "   | BUSY |         | READY  |\n"
4208 "   \\______/ <------ \\________/\n"
4209 "\n"
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../src/guestfs.pod:2161
4214 msgid ""
4215 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4216 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4217 "(3) alternating between READY and BUSY as commands are issued to, and "
4218 "carried out by, the child process."
4219 msgstr ""
4220
4221 #. type: textblock
4222 #: ../src/guestfs.pod:2166
4223 msgid ""
4224 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4225 "asynchronously at any time (eg. due to some internal error), and that causes "
4226 "the state to transition back to CONFIG."
4227 msgstr ""
4228
4229 #. type: textblock
4230 #: ../src/guestfs.pod:2170
4231 msgid ""
4232 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4233 "issued when in the CONFIG state."
4234 msgstr ""
4235
4236 #. type: textblock
4237 #: ../src/guestfs.pod:2173
4238 msgid ""
4239 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4240 "L</guestfs_launch> blocks until the child process is READY to accept "
4241 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4242 "moves the state from CONFIG to LAUNCHING while it is running."
4243 msgstr ""
4244
4245 #. type: textblock
4246 #: ../src/guestfs.pod:2179
4247 msgid ""
4248 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4249 "state.  These API calls block waiting for the command to be carried out (ie. "
4250 "the state to transition to BUSY and then back to READY).  There are no non-"
4251 "blocking versions, and no way to issue more than one command per handle at "
4252 "the same time."
4253 msgstr ""
4254
4255 #. type: textblock
4256 #: ../src/guestfs.pod:2185
4257 msgid ""
4258 "Finally, the child process sends asynchronous messages back to the main "
4259 "program, such as kernel log messages.  You can register a callback to "
4260 "receive these messages."
4261 msgstr ""
4262
4263 #. type: =head1
4264 #: ../src/guestfs.pod:2189
4265 msgid "INTERNALS"
4266 msgstr ""
4267
4268 #. type: =head2
4269 #: ../src/guestfs.pod:2191
4270 msgid "COMMUNICATION PROTOCOL"
4271 msgstr ""
4272
4273 #. type: textblock
4274 #: ../src/guestfs.pod:2193
4275 msgid ""
4276 "Don't rely on using this protocol directly.  This section documents how it "
4277 "currently works, but it may change at any time."
4278 msgstr ""
4279
4280 #. type: textblock
4281 #: ../src/guestfs.pod:2196
4282 msgid ""
4283 "The protocol used to talk between the library and the daemon running inside "
4284 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4285 "1014, RFC 1832, RFC 4506)."
4286 msgstr ""
4287
4288 #. type: textblock
4289 #: ../src/guestfs.pod:2200
4290 msgid ""
4291 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4292 "this file is automatically generated)."
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../src/guestfs.pod:2203
4297 msgid ""
4298 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4299 "and C<FileOut> parameters, which are handled with very simple request/reply "
4300 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4301 "parameters, which use the same request and reply messages, but they may also "
4302 "be followed by files sent using a chunked encoding."
4303 msgstr ""
4304
4305 #. type: =head3
4306 #: ../src/guestfs.pod:2210
4307 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../src/guestfs.pod:2212
4312 msgid "For ordinary functions, the request message is:"
4313 msgstr ""
4314
4315 #. type: verbatim
4316 #: ../src/guestfs.pod:2214
4317 #, no-wrap
4318 msgid ""
4319 " total length (header + arguments,\n"
4320 "      but not including the length word itself)\n"
4321 " struct guestfs_message_header (encoded as XDR)\n"
4322 " struct guestfs_<foo>_args (encoded as XDR)\n"
4323 "\n"
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../src/guestfs.pod:2219
4328 msgid ""
4329 "The total length field allows the daemon to allocate a fixed size buffer "
4330 "into which it slurps the rest of the message.  As a result, the total length "
4331 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4332 "effective size of any request is limited to somewhere under this size."
4333 msgstr ""
4334
4335 #. type: textblock
4336 #: ../src/guestfs.pod:2225
4337 msgid ""
4338 "Note also that many functions don't take any arguments, in which case the "
4339 "C<guestfs_I<foo>_args> is completely omitted."
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../src/guestfs.pod:2228
4344 msgid ""
4345 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4346 "receiver knows what type of args structure to expect, or none at all."
4347 msgstr ""
4348
4349 #. type: textblock
4350 #: ../src/guestfs.pod:2232
4351 msgid ""
4352 "For functions that take optional arguments, the optional arguments are "
4353 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4354 "arguments.  A bitmask in the header indicates which optional arguments are "
4355 "meaningful.  The bitmask is also checked to see if it contains bits set "
4356 "which the daemon does not know about (eg. if more optional arguments were "
4357 "added in a later version of the library), and this causes the call to be "
4358 "rejected."
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../src/guestfs.pod:2240
4363 msgid "The reply message for ordinary functions is:"
4364 msgstr ""
4365
4366 #. type: verbatim
4367 #: ../src/guestfs.pod:2242
4368 #, no-wrap
4369 msgid ""
4370 " total length (header + ret,\n"
4371 "      but not including the length word itself)\n"
4372 " struct guestfs_message_header (encoded as XDR)\n"
4373 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4374 "\n"
4375 msgstr ""
4376
4377 #. type: textblock
4378 #: ../src/guestfs.pod:2247
4379 msgid ""
4380 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4381 "functions that return no formal return values."
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../src/guestfs.pod:2250
4386 msgid ""
4387 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4388 msgstr ""
4389
4390 #. type: textblock
4391 #: ../src/guestfs.pod:2253
4392 msgid ""
4393 "In the case of an error, a flag is set in the header, and the reply message "
4394 "is slightly changed:"
4395 msgstr ""
4396
4397 #. type: verbatim
4398 #: ../src/guestfs.pod:2256
4399 #, no-wrap
4400 msgid ""
4401 " total length (header + error,\n"
4402 "      but not including the length word itself)\n"
4403 " struct guestfs_message_header (encoded as XDR)\n"
4404 " struct guestfs_message_error (encoded as XDR)\n"
4405 "\n"
4406 msgstr ""
4407
4408 #. type: textblock
4409 #: ../src/guestfs.pod:2261
4410 msgid ""
4411 "The C<guestfs_message_error> structure contains the error message as a "
4412 "string."
4413 msgstr ""
4414
4415 #. type: =head3
4416 #: ../src/guestfs.pod:2264
4417 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4418 msgstr ""
4419
4420 #. type: textblock
4421 #: ../src/guestfs.pod:2266
4422 msgid ""
4423 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4424 "The normal request message is sent (see above).  However this is followed by "
4425 "a sequence of file chunks."
4426 msgstr ""
4427
4428 #. type: verbatim
4429 #: ../src/guestfs.pod:2270
4430 #, no-wrap
4431 msgid ""
4432 " total length (header + arguments,\n"
4433 "      but not including the length word itself,\n"
4434 "      and not including the chunks)\n"
4435 " struct guestfs_message_header (encoded as XDR)\n"
4436 " struct guestfs_<foo>_args (encoded as XDR)\n"
4437 " sequence of chunks for FileIn param #0\n"
4438 " sequence of chunks for FileIn param #1 etc.\n"
4439 "\n"
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../src/guestfs.pod:2278
4444 msgid "The \"sequence of chunks\" is:"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../src/guestfs.pod:2280
4449 #, no-wrap
4450 msgid ""
4451 " length of chunk (not including length word itself)\n"
4452 " struct guestfs_chunk (encoded as XDR)\n"
4453 " length of chunk\n"
4454 " struct guestfs_chunk (encoded as XDR)\n"
4455 "   ...\n"
4456 " length of chunk\n"
4457 " struct guestfs_chunk (with data.data_len == 0)\n"
4458 "\n"
4459 msgstr ""
4460
4461 #. type: textblock
4462 #: ../src/guestfs.pod:2288
4463 msgid ""
4464 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4465 "is set in the final chunk to indicate either successful completion or early "
4466 "cancellation."
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../src/guestfs.pod:2292
4471 msgid ""
4472 "At time of writing there are no functions that have more than one FileIn "
4473 "parameter.  However this is (theoretically) supported, by sending the "
4474 "sequence of chunks for each FileIn parameter one after another (from left to "
4475 "right)."
4476 msgstr ""
4477
4478 #. type: textblock
4479 #: ../src/guestfs.pod:2297
4480 msgid ""
4481 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4482 "transfer.  The library does this by sending a chunk with a special flag set "
4483 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4484 "RPC, does I<not> send any reply, and goes back to reading the next request."
4485 msgstr ""
4486
4487 #. type: textblock
4488 #: ../src/guestfs.pod:2303
4489 msgid ""
4490 "The daemon may also cancel.  It does this by writing a special word "
4491 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4492 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4493 "cancel chunk).  The special word is chosen so that even if cancellation "
4494 "happens right at the end of the transfer (after the library has finished "
4495 "writing and has started listening for the reply), the \"spurious\" cancel "
4496 "flag will not be confused with the reply message."
4497 msgstr ""
4498
4499 #. type: textblock
4500 #: ../src/guestfs.pod:2312
4501 msgid ""
4502 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4503 "limit), and also files where the size is not known in advance (eg. from "
4504 "pipes or sockets).  However the chunks are rather small "
4505 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4506 "to keep much in memory."
4507 msgstr ""
4508
4509 #. type: =head3
4510 #: ../src/guestfs.pod:2318
4511 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4512 msgstr ""
4513
4514 #. type: textblock
4515 #: ../src/guestfs.pod:2320
4516 msgid ""
4517 "The protocol for FileOut parameters is exactly the same as for FileIn "
4518 "parameters, but with the roles of daemon and library reversed."
4519 msgstr ""
4520
4521 #. type: verbatim
4522 #: ../src/guestfs.pod:2323
4523 #, no-wrap
4524 msgid ""
4525 " total length (header + ret,\n"
4526 "      but not including the length word itself,\n"
4527 "      and not including the chunks)\n"
4528 " struct guestfs_message_header (encoded as XDR)\n"
4529 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4530 " sequence of chunks for FileOut param #0\n"
4531 " sequence of chunks for FileOut param #1 etc.\n"
4532 "\n"
4533 msgstr ""
4534
4535 #. type: =head3
4536 #: ../src/guestfs.pod:2331
4537 msgid "INITIAL MESSAGE"
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../src/guestfs.pod:2333
4542 msgid ""
4543 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4544 "which indicates that the guest and daemon is alive.  This is what L</"
4545 "guestfs_launch> waits for."
4546 msgstr ""
4547
4548 #. type: =head3
4549 #: ../src/guestfs.pod:2337
4550 msgid "PROGRESS NOTIFICATION MESSAGES"
4551 msgstr ""
4552
4553 #. type: textblock
4554 #: ../src/guestfs.pod:2339
4555 msgid ""
4556 "The daemon may send progress notification messages at any time.  These are "
4557 "distinguished by the normal length word being replaced by "
4558 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4559 msgstr ""
4560
4561 #. type: textblock
4562 #: ../src/guestfs.pod:2343
4563 msgid ""
4564 "The library turns them into progress callbacks (see L</"
4565 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
4566 "if not."
4567 msgstr ""
4568
4569 #. type: textblock
4570 #: ../src/guestfs.pod:2347
4571 msgid ""
4572 "The daemon self-limits the frequency of progress messages it sends (see "
4573 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4574 "messages."
4575 msgstr ""
4576
4577 #. type: =head1
4578 #: ../src/guestfs.pod:2351
4579 msgid "LIBGUESTFS VERSION NUMBERS"
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../src/guestfs.pod:2353
4584 msgid ""
4585 "Since April 2010, libguestfs has started to make separate development and "
4586 "stable releases, along with corresponding branches in our git repository.  "
4587 "These separate releases can be identified by version number:"
4588 msgstr ""
4589
4590 #. type: verbatim
4591 #: ../src/guestfs.pod:2358
4592 #, no-wrap
4593 msgid ""
4594 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4595 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4596 "       |\n"
4597 "       v\n"
4598 " 1  .  3  .  5\n"
4599 " ^           ^\n"
4600 " |           |\n"
4601 " |           `-------- sub-version\n"
4602 " |\n"
4603 " `------ always '1' because we don't change the ABI\n"
4604 "\n"
4605 msgstr ""
4606
4607 #. type: textblock
4608 #: ../src/guestfs.pod:2369
4609 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../src/guestfs.pod:2371
4614 msgid ""
4615 "As time passes we cherry pick fixes from the development branch and backport "
4616 "those into the stable branch, the effect being that the stable branch should "
4617 "get more stable and less buggy over time.  So the stable releases are ideal "
4618 "for people who don't need new features but would just like the software to "
4619 "work."
4620 msgstr ""
4621
4622 #. type: textblock
4623 #: ../src/guestfs.pod:2377
4624 msgid "Our criteria for backporting changes are:"
4625 msgstr ""
4626
4627 #. type: textblock
4628 #: ../src/guestfs.pod:2383
4629 msgid ""
4630 "Documentation changes which don't affect any code are backported unless the "
4631 "documentation refers to a future feature which is not in stable."
4632 msgstr ""
4633
4634 #. type: textblock
4635 #: ../src/guestfs.pod:2389
4636 msgid ""
4637 "Bug fixes which are not controversial, fix obvious problems, and have been "
4638 "well tested are backported."
4639 msgstr ""
4640
4641 #. type: textblock
4642 #: ../src/guestfs.pod:2394
4643 msgid ""
4644 "Simple rearrangements of code which shouldn't affect how it works get "
4645 "backported.  This is so that the code in the two branches doesn't get too "
4646 "far out of step, allowing us to backport future fixes more easily."
4647 msgstr ""
4648
4649 #. type: textblock
4650 #: ../src/guestfs.pod:2400
4651 msgid ""
4652 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4653 "exceptional case: the new feature is required in order to implement an "
4654 "important bug fix."
4655 msgstr ""
4656
4657 #. type: textblock
4658 #: ../src/guestfs.pod:2406
4659 msgid ""
4660 "A new stable branch starts when we think the new features in development are "
4661 "substantial and compelling enough over the current stable branch to warrant "
4662 "it.  When that happens we create new stable and development versions 1.N.0 "
4663 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4664 "stable at this point, but by backporting fixes from development, that branch "
4665 "will stabilize over time."
4666 msgstr ""
4667
4668 #. type: =head1
4669 #: ../src/guestfs.pod:2414
4670 msgid "EXTENDING LIBGUESTFS"
4671 msgstr ""
4672
4673 #. type: =head2
4674 #: ../src/guestfs.pod:2416
4675 msgid "ADDING A NEW API ACTION"
4676 msgstr ""
4677
4678 #. type: textblock
4679 #: ../src/guestfs.pod:2418
4680 msgid ""
4681 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4682 "documentation) are generated, and this makes it easy to extend the "
4683 "libguestfs API."
4684 msgstr ""
4685
4686 #. type: textblock
4687 #: ../src/guestfs.pod:2422
4688 msgid "To add a new API action there are two changes:"
4689 msgstr ""
4690
4691 #. type: textblock
4692 #: ../src/guestfs.pod:2428
4693 msgid ""
4694 "You need to add a description of the call (name, parameters, return type, "
4695 "tests, documentation) to C<generator/generator_actions.ml>."
4696 msgstr ""
4697
4698 #. type: textblock
4699 #: ../src/guestfs.pod:2431
4700 msgid ""
4701 "There are two sorts of API action, depending on whether the call goes "
4702 "through to the daemon in the appliance, or is serviced entirely by the "
4703 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4704 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4705 "an example of the latter, since a trace flag is maintained in the handle and "
4706 "all tracing is done on the library side."
4707 msgstr ""
4708
4709 #. type: textblock
4710 #: ../src/guestfs.pod:2439
4711 msgid ""
4712 "Most new actions are of the first type, and get added to the "
4713 "C<daemon_functions> list.  Each function has a unique procedure number used "
4714 "in the RPC protocol which is assigned to that action when we publish "
4715 "libguestfs and cannot be reused.  Take the latest procedure number and "
4716 "increment it."
4717 msgstr ""
4718
4719 #. type: textblock
4720 #: ../src/guestfs.pod:2445
4721 msgid ""
4722 "For library-only actions of the second type, add to the "
4723 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4724 "library and do not travel over the RPC mechanism to the daemon, these "
4725 "functions do not need a procedure number, and so the procedure number is set "
4726 "to C<-1>."
4727 msgstr ""
4728
4729 #. type: textblock
4730 #: ../src/guestfs.pod:2453
4731 msgid "Implement the action (in C):"
4732 msgstr ""
4733
4734 #. type: textblock
4735 #: ../src/guestfs.pod:2455
4736 msgid ""
4737 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4738 "C<daemon/> directory."
4739 msgstr ""
4740
4741 #. type: textblock
4742 #: ../src/guestfs.pod:2458
4743 msgid ""
4744 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4745 "(note: double underscore) in the C<src/> directory."
4746 msgstr ""
4747
4748 #. type: textblock
4749 #: ../src/guestfs.pod:2461
4750 msgid "In either case, use another function as an example of what to do."
4751 msgstr ""
4752
4753 #. type: textblock
4754 #: ../src/guestfs.pod:2465
4755 msgid "After making these changes, use C<make> to compile."
4756 msgstr ""
4757
4758 #. type: textblock
4759 #: ../src/guestfs.pod:2467
4760 msgid ""
4761 "Note that you don't need to implement the RPC, language bindings, manual "
4762 "pages or anything else.  It's all automatically generated from the OCaml "
4763 "description."
4764 msgstr ""
4765
4766 #. type: =head2
4767 #: ../src/guestfs.pod:2471
4768 msgid "ADDING TESTS FOR AN API ACTION"
4769 msgstr ""
4770
4771 #. type: textblock
4772 #: ../src/guestfs.pod:2473
4773 msgid ""
4774 "You can supply zero or as many tests as you want per API call.  The tests "
4775 "can either be added as part of the API description (C<generator/"
4776 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
4777 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
4778 "slower, so if possible use the first method."
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../src/guestfs.pod:2479
4783 msgid ""
4784 "The following describes the test environment used when you add an API test "
4785 "in C<generator_actions.ml>."
4786 msgstr ""
4787
4788 #. type: textblock
4789 #: ../src/guestfs.pod:2482
4790 msgid "The test environment has 4 block devices:"
4791 msgstr ""
4792
4793 #. type: =item
4794 #: ../src/guestfs.pod:2486
4795 msgid "C</dev/sda> 500MB"
4796 msgstr ""
4797
4798 #. type: textblock
4799 #: ../src/guestfs.pod:2488
4800 msgid "General block device for testing."
4801 msgstr ""
4802
4803 #. type: =item
4804 #: ../src/guestfs.pod:2490
4805 msgid "C</dev/sdb> 50MB"
4806 msgstr ""
4807
4808 #. type: textblock
4809 #: ../src/guestfs.pod:2492
4810 msgid ""
4811 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4812 "operations."
4813 msgstr ""
4814
4815 #. type: =item
4816 #: ../src/guestfs.pod:2495
4817 msgid "C</dev/sdc> 10MB"
4818 msgstr ""
4819
4820 #. type: textblock
4821 #: ../src/guestfs.pod:2497
4822 msgid "Used in a few tests where two block devices are needed."
4823 msgstr ""
4824
4825 #. type: =item
4826 #: ../src/guestfs.pod:2499
4827 msgid "C</dev/sdd>"
4828 msgstr "C</dev/sdd>"
4829
4830 #. type: textblock
4831 #: ../src/guestfs.pod:2501
4832 msgid "ISO with fixed content (see C<images/test.iso>)."
4833 msgstr ""
4834
4835 #. type: textblock
4836 #: ../src/guestfs.pod:2505
4837 msgid ""
4838 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4839 "appliance and block devices are reused between tests.  So don't try testing "
4840 "L</guestfs_kill_subprocess> :-x"
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../src/guestfs.pod:2509
4845 msgid ""
4846 "Each test starts with an initial scenario, selected using one of the "
4847 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4848 "initialize the disks mentioned above in a particular way as documented in "
4849 "C<generator_types.ml>.  You should not assume anything about the previous "
4850 "contents of other disks that are not initialized."
4851 msgstr ""
4852
4853 #. type: textblock
4854 #: ../src/guestfs.pod:2515
4855 msgid ""
4856 "You can add a prerequisite clause to any individual test.  This is a run-"
4857 "time check, which, if it fails, causes the test to be skipped.  Useful if "
4858 "testing a command which might not work on all variations of libguestfs "
4859 "builds.  A test that has prerequisite of C<Always> means to run "
4860 "unconditionally."
4861 msgstr ""
4862
4863 #. type: textblock
4864 #: ../src/guestfs.pod:2521
4865 msgid ""
4866 "In addition, packagers can skip individual tests by setting environment "
4867 "variables before running C<make check>."
4868 msgstr ""
4869
4870 #. type: verbatim
4871 #: ../src/guestfs.pod:2524
4872 #, no-wrap
4873 msgid ""
4874 " SKIP_TEST_<CMD>_<NUM>=1\n"
4875 "\n"
4876 msgstr ""
4877
4878 #. type: textblock
4879 #: ../src/guestfs.pod:2526
4880 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4881 msgstr ""
4882
4883 #. type: textblock
4884 #: ../src/guestfs.pod:2528
4885 msgid "or:"
4886 msgstr "або:"
4887
4888 #. type: verbatim
4889 #: ../src/guestfs.pod:2530
4890 #, no-wrap
4891 msgid ""
4892 " SKIP_TEST_<CMD>=1\n"
4893 "\n"
4894 msgstr ""
4895
4896 #. type: textblock
4897 #: ../src/guestfs.pod:2532
4898 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../src/guestfs.pod:2534
4903 msgid "Packagers can run only certain tests by setting for example:"
4904 msgstr ""
4905
4906 #. type: verbatim
4907 #: ../src/guestfs.pod:2536
4908 #, no-wrap
4909 msgid ""
4910 " TEST_ONLY=\"vfs_type zerofree\"\n"
4911 "\n"
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../src/guestfs.pod:2538
4916 msgid ""
4917 "See C<capitests/tests.c> for more details of how these environment variables "
4918 "work."
4919 msgstr ""
4920
4921 #. type: =head2
4922 #: ../src/guestfs.pod:2541
4923 msgid "DEBUGGING NEW API ACTIONS"
4924 msgstr ""
4925
4926 #. type: textblock
4927 #: ../src/guestfs.pod:2543
4928 msgid "Test new actions work before submitting them."
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../src/guestfs.pod:2545
4933 msgid "You can use guestfish to try out new commands."
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../src/guestfs.pod:2547
4938 msgid ""
4939 "Debugging the daemon is a problem because it runs inside a minimal "
4940 "environment.  However you can fprintf messages in the daemon to stderr, and "
4941 "they will show up if you use C<guestfish -v>."
4942 msgstr ""
4943
4944 #. type: =head2
4945 #: ../src/guestfs.pod:2551
4946 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../src/guestfs.pod:2553
4951 msgid ""
4952 "Our C source code generally adheres to some basic code-formatting "
4953 "conventions.  The existing code base is not totally consistent on this "
4954 "front, but we do prefer that contributed code be formatted similarly.  In "
4955 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4956 "indentation level, and other than that, follow the K&R style."
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../src/guestfs.pod:2559
4961 msgid ""
4962 "If you use Emacs, add the following to one of one of your start-up files (e."
4963 "g., ~/.emacs), to help ensure that you get indentation right:"
4964 msgstr ""
4965
4966 #. type: verbatim
4967 #: ../src/guestfs.pod:2562
4968 #, no-wrap
4969 msgid ""
4970 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4971 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4972 " (add-hook 'find-file-hook\n"
4973 "     '(lambda () (if (and buffer-file-name\n"
4974 "                          (string-match \"/libguestfs\\\\>\"\n"
4975 "                              (buffer-file-name))\n"
4976 "                          (not (string-equal mode-name \"Change Log\"))\n"
4977 "                          (not (string-equal mode-name \"Makefile\")))\n"
4978 "                     (setq indent-tabs-mode nil))))\n"
4979 " \n"
4980 msgstr ""
4981
4982 #. type: verbatim
4983 #: ../src/guestfs.pod:2572
4984 #, no-wrap
4985 msgid ""
4986 " ;;; When editing C sources in libguestfs, use this style.\n"
4987 " (defun libguestfs-c-mode ()\n"
4988 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4989 "   (interactive)\n"
4990 "   (c-set-style \"K&R\")\n"
4991 "   (setq c-indent-level 2)\n"
4992 "   (setq c-basic-offset 2))\n"
4993 " (add-hook 'c-mode-hook\n"
4994 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4995 "                               (buffer-file-name))\n"
4996 "                           (libguestfs-c-mode))))\n"
4997 "\n"
4998 msgstr ""
4999
5000 #. type: textblock
5001 #: ../src/guestfs.pod:2584
5002 msgid "Enable warnings when compiling (and fix any problems this finds):"
5003 msgstr ""
5004
5005 #. type: verbatim
5006 #: ../src/guestfs.pod:2587
5007 #, no-wrap
5008 msgid ""
5009 " ./configure --enable-gcc-warnings\n"
5010 "\n"
5011 msgstr ""
5012
5013 #. type: textblock
5014 #: ../src/guestfs.pod:2589
5015 msgid "Useful targets are:"
5016 msgstr ""
5017
5018 #. type: verbatim
5019 #: ../src/guestfs.pod:2591
5020 #, no-wrap
5021 msgid ""
5022 " make syntax-check  # checks the syntax of the C code\n"
5023 " make check         # runs the test suite\n"
5024 "\n"
5025 msgstr ""
5026
5027 #. type: =head2
5028 #: ../src/guestfs.pod:2594
5029 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5030 msgstr ""
5031
5032 #. type: textblock
5033 #: ../src/guestfs.pod:2596
5034 msgid ""
5035 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5036 "which are used to do shell quoting."
5037 msgstr ""
5038
5039 #. type: =item
5040 #: ../src/guestfs.pod:2601
5041 msgid "%Q"
5042 msgstr "%Q"
5043
5044 #. type: textblock
5045 #: ../src/guestfs.pod:2603
5046 msgid ""
5047 "Simple shell quoted string.  Any spaces or other shell characters are "
5048 "escaped for you."
5049 msgstr ""
5050
5051 #. type: =item
5052 #: ../src/guestfs.pod:2606
5053 msgid "%R"
5054 msgstr "%R"
5055
5056 #. type: textblock
5057 #: ../src/guestfs.pod:2608
5058 msgid ""
5059 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5060 "the sysroot."
5061 msgstr ""
5062
5063 #. type: textblock
5064 #: ../src/guestfs.pod:2613 ../fish/guestfish.pod:242 ../fish/guestfish.pod:615
5065 msgid "For example:"
5066 msgstr "Приклад:"
5067
5068 #. type: verbatim
5069 #: ../src/guestfs.pod:2615
5070 #, no-wrap
5071 msgid ""
5072 " asprintf (&cmd, \"cat %R\", path);\n"
5073 "\n"
5074 msgstr ""
5075
5076 #. type: textblock
5077 #: ../src/guestfs.pod:2617
5078 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5079 msgstr ""
5080
5081 #. type: textblock
5082 #: ../src/guestfs.pod:2619
5083 msgid ""
5084 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5085 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5086 "they are not passed via the shell (instead, straight to exec).  You probably "
5087 "want to use the C<sysroot_path()> function however."
5088 msgstr ""
5089
5090 #. type: =head2
5091 #: ../src/guestfs.pod:2625
5092 msgid "SUBMITTING YOUR NEW API ACTIONS"
5093 msgstr ""
5094
5095 #. type: textblock
5096 #: ../src/guestfs.pod:2627
5097 msgid ""
5098 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5099 "libguestfs> and CC to L<rjones@redhat.com>."
5100 msgstr ""
5101
5102 #. type: =head2
5103 #: ../src/guestfs.pod:2631
5104 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5105 msgstr ""
5106
5107 #. type: textblock
5108 #: ../src/guestfs.pod:2633
5109 msgid "We support i18n (gettext anyhow) in the library."
5110 msgstr ""
5111
5112 #. type: textblock
5113 #: ../src/guestfs.pod:2635
5114 msgid ""
5115 "However many messages come from the daemon, and we don't translate those at "
5116 "the moment.  One reason is that the appliance generally has all locale files "
5117 "removed from it, because they take up a lot of space.  So we'd have to readd "
5118 "some of those, as well as copying our PO files into the appliance."
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../src/guestfs.pod:2641
5123 msgid ""
5124 "Debugging messages are never translated, since they are intended for the "
5125 "programmers."
5126 msgstr ""
5127
5128 #. type: =head2
5129 #: ../src/guestfs.pod:2644
5130 msgid "SOURCE CODE SUBDIRECTORIES"
5131 msgstr ""
5132
5133 #. type: =item
5134 #: ../src/guestfs.pod:2648 ../src/guestfs-actions.pod:5847
5135 #: ../fish/guestfish-actions.pod:3932
5136 msgid "C<appliance>"
5137 msgstr "C<appliance>"
5138
5139 #. type: textblock
5140 #: ../src/guestfs.pod:2650
5141 msgid "The libguestfs appliance, build scripts and so on."
5142 msgstr ""
5143
5144 #. type: =item
5145 #: ../src/guestfs.pod:2652
5146 msgid "C<capitests>"
5147 msgstr "C<capitests>"
5148
5149 #. type: textblock
5150 #: ../src/guestfs.pod:2654
5151 msgid "Automated tests of the C API."
5152 msgstr ""
5153
5154 #. type: =item
5155 #: ../src/guestfs.pod:2656
5156 msgid "C<cat>"
5157 msgstr "C<cat>"
5158
5159 #. type: textblock
5160 #: ../src/guestfs.pod:2658
5161 msgid ""
5162 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5163 "documentation."
5164 msgstr ""
5165
5166 #. type: =item
5167 #: ../src/guestfs.pod:2661
5168 msgid "C<contrib>"
5169 msgstr "C<contrib>"
5170
5171 #. type: textblock
5172 #: ../src/guestfs.pod:2663
5173 msgid "Outside contributions, experimental parts."
5174 msgstr ""
5175
5176 #. type: =item
5177 #: ../src/guestfs.pod:2665
5178 msgid "C<daemon>"
5179 msgstr "C<daemon>"
5180
5181 #. type: textblock
5182 #: ../src/guestfs.pod:2667
5183 msgid ""
5184 "The daemon that runs inside the libguestfs appliance and carries out actions."
5185 msgstr ""
5186
5187 #. type: =item
5188 #: ../src/guestfs.pod:2670
5189 msgid "C<df>"
5190 msgstr "C<df>"
5191
5192 #. type: textblock
5193 #: ../src/guestfs.pod:2672
5194 msgid "L<virt-df(1)> command and documentation."
5195 msgstr ""
5196
5197 #. type: =item
5198 #: ../src/guestfs.pod:2674
5199 msgid "C<edit>"
5200 msgstr ""
5201
5202 #. type: textblock
5203 #: ../src/guestfs.pod:2676
5204 msgid "L<virt-edit(1)> command and documentation."
5205 msgstr ""
5206
5207 #. type: =item
5208 #: ../src/guestfs.pod:2678
5209 msgid "C<examples>"
5210 msgstr "C<examples>"
5211
5212 #. type: textblock
5213 #: ../src/guestfs.pod:2680
5214 msgid "C API example code."
5215 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
5216
5217 #. type: =item
5218 #: ../src/guestfs.pod:2682
5219 msgid "C<fish>"
5220 msgstr "C<fish>"
5221
5222 #. type: textblock
5223 #: ../src/guestfs.pod:2684
5224 msgid ""
5225 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5226 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5227 "L<virt-tar-out(1)>."
5228 msgstr ""
5229
5230 #. type: =item
5231 #: ../src/guestfs.pod:2688
5232 msgid "C<fuse>"
5233 msgstr "C<fuse>"
5234
5235 #. type: textblock
5236 #: ../src/guestfs.pod:2690
5237 msgid ""
5238 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5239 msgstr ""
5240
5241 #. type: =item
5242 #: ../src/guestfs.pod:2692
5243 msgid "C<generator>"
5244 msgstr "C<generator>"
5245
5246 #. type: textblock
5247 #: ../src/guestfs.pod:2694
5248 msgid ""
5249 "The crucially important generator, used to automatically generate large "
5250 "amounts of boilerplate C code for things like RPC and bindings."
5251 msgstr ""
5252
5253 #. type: =item
5254 #: ../src/guestfs.pod:2697
5255 msgid "C<images>"
5256 msgstr "C<images>"
5257
5258 #. type: textblock
5259 #: ../src/guestfs.pod:2699
5260 msgid "Files used by the test suite."
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../src/guestfs.pod:2701
5265 msgid "Some \"phony\" guest images which we test against."
5266 msgstr ""
5267
5268 #. type: =item
5269 #: ../src/guestfs.pod:2703
5270 msgid "C<inspector>"
5271 msgstr "C<inspector>"
5272
5273 #. type: textblock
5274 #: ../src/guestfs.pod:2705
5275 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5276 msgstr ""
5277
5278 #. type: =item
5279 #: ../src/guestfs.pod:2707
5280 msgid "C<logo>"
5281 msgstr "C<logo>"
5282
5283 #. type: textblock
5284 #: ../src/guestfs.pod:2709
5285 msgid "Logo used on the website.  The fish is called Arthur by the way."
5286 msgstr ""
5287
5288 #. type: =item
5289 #: ../src/guestfs.pod:2711
5290 msgid "C<m4>"
5291 msgstr "C<m4>"
5292
5293 #. type: textblock
5294 #: ../src/guestfs.pod:2713
5295 msgid "M4 macros used by autoconf."
5296 msgstr ""
5297
5298 #. type: =item
5299 #: ../src/guestfs.pod:2715
5300 msgid "C<po>"
5301 msgstr "C<po>"
5302
5303 #. type: textblock
5304 #: ../src/guestfs.pod:2717
5305 msgid "Translations of simple gettext strings."
5306 msgstr "Переклади простих рядків gettext."
5307
5308 #. type: =item
5309 #: ../src/guestfs.pod:2719
5310 msgid "C<po-docs>"
5311 msgstr "C<po-docs>"
5312
5313 #. type: textblock
5314 #: ../src/guestfs.pod:2721
5315 msgid ""
5316 "The build infrastructure and PO files for translations of manpages and POD "
5317 "files.  Eventually this will be combined with the C<po> directory, but that "
5318 "is rather complicated."
5319 msgstr ""
5320
5321 #. type: =item
5322 #: ../src/guestfs.pod:2725
5323 msgid "C<regressions>"
5324 msgstr "C<regressions>"
5325
5326 #. type: textblock
5327 #: ../src/guestfs.pod:2727
5328 msgid "Regression tests."
5329 msgstr "Тести на регресії."
5330
5331 #. type: =item
5332 #: ../src/guestfs.pod:2729
5333 msgid "C<rescue>"
5334 msgstr "C<rescue>"
5335
5336 #. type: textblock
5337 #: ../src/guestfs.pod:2731
5338 msgid "L<virt-rescue(1)> command and documentation."
5339 msgstr ""
5340
5341 #. type: =item
5342 #: ../src/guestfs.pod:2733
5343 msgid "C<src>"
5344 msgstr "C<src>"
5345
5346 #. type: textblock
5347 #: ../src/guestfs.pod:2735
5348 msgid "Source code to the C library."
5349 msgstr ""
5350
5351 #. type: =item
5352 #: ../src/guestfs.pod:2737
5353 msgid "C<tools>"
5354 msgstr "C<tools>"
5355
5356 #. type: textblock
5357 #: ../src/guestfs.pod:2739
5358 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5359 msgstr ""
5360
5361 #. type: =item
5362 #: ../src/guestfs.pod:2741
5363 msgid "C<test-tool>"
5364 msgstr "C<test-tool>"
5365
5366 #. type: textblock
5367 #: ../src/guestfs.pod:2743
5368 msgid ""
5369 "Test tool for end users to test if their qemu/kernel combination will work "
5370 "with libguestfs."
5371 msgstr ""
5372
5373 #. type: =item
5374 #: ../src/guestfs.pod:2746
5375 msgid "C<csharp>"
5376 msgstr "C<csharp>"
5377
5378 #. type: =item
5379 #: ../src/guestfs.pod:2748
5380 msgid "C<haskell>"
5381 msgstr "C<haskell>"
5382
5383 #. type: =item
5384 #: ../src/guestfs.pod:2750
5385 msgid "C<java>"
5386 msgstr "C<java>"
5387
5388 #. type: =item
5389 #: ../src/guestfs.pod:2752
5390 msgid "C<ocaml>"
5391 msgstr "C<ocaml>"
5392
5393 #. type: =item
5394 #: ../src/guestfs.pod:2754
5395 msgid "C<php>"
5396 msgstr "C<php>"
5397
5398 #. type: =item
5399 #: ../src/guestfs.pod:2756
5400 msgid "C<perl>"
5401 msgstr "C<perl>"
5402
5403 #. type: =item
5404 #: ../src/guestfs.pod:2758
5405 msgid "C<python>"
5406 msgstr "C<python>"
5407
5408 #. type: =item
5409 #: ../src/guestfs.pod:2760
5410 msgid "C<ruby>"
5411 msgstr "C<ruby>"
5412
5413 #. type: textblock
5414 #: ../src/guestfs.pod:2762
5415 msgid "Language bindings."
5416 msgstr "Прив’язки до мов програмування."
5417
5418 #. type: =head1
5419 #: ../src/guestfs.pod:2766
5420 msgid "LIMITS"
5421 msgstr ""
5422
5423 #. type: =head2
5424 #: ../src/guestfs.pod:2768
5425 msgid "PROTOCOL LIMITS"
5426 msgstr ""
5427
5428 #. type: textblock
5429 #: ../src/guestfs.pod:2770
5430 msgid ""
5431 "Internally libguestfs uses a message-based protocol to pass API calls and "
5432 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5433 "plenty more detail about this).  The maximum message size used by the "
5434 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5435 "aware of this limit.  The API calls which may be affected are individually "
5436 "documented, with a link back to this section of the documentation."
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../src/guestfs.pod:2778
5441 msgid ""
5442 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5443 "a simple string.  Because this string is at some point internally encoded as "
5444 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5445 "the requested file is larger than this then you will get an error."
5446 msgstr ""
5447
5448 #. type: textblock
5449 #: ../src/guestfs.pod:2784
5450 msgid ""
5451 "In order to transfer large files into and out of the guest filesystem, you "
5452 "need to use particular calls that support this.  The sections L</UPLOADING> "
5453 "and L</DOWNLOADING> document how to do this."
5454 msgstr ""
5455
5456 #. type: textblock
5457 #: ../src/guestfs.pod:2788
5458 msgid ""
5459 "You might also consider mounting the disk image using our FUSE filesystem "
5460 "support (L<guestmount(1)>)."
5461 msgstr ""
5462
5463 #. type: =head2
5464 #: ../src/guestfs.pod:2791
5465 msgid "MAXIMUM NUMBER OF DISKS"
5466 msgstr ""
5467
5468 #. type: textblock
5469 #: ../src/guestfs.pod:2793
5470 msgid "When using virtio disks (the default) the current limit is B<25> disks."
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../src/guestfs.pod:2796
5475 msgid ""
5476 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
5477 "slots.  However febootstrap only understands disks with names C</dev/vda> "
5478 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5479 "purposes."
5480 msgstr ""
5481
5482 #. type: textblock
5483 #: ../src/guestfs.pod:2801
5484 msgid ""
5485 "We are working to substantially raise this limit in future versions but it "
5486 "requires complex changes to qemu."
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../src/guestfs.pod:2804
5491 msgid ""
5492 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5493 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5494 "requires changes to qemu."
5495 msgstr ""
5496
5497 #. type: =head2
5498 #: ../src/guestfs.pod:2808
5499 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5500 msgstr ""
5501
5502 #. type: textblock
5503 #: ../src/guestfs.pod:2810
5504 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5505 msgstr ""
5506
5507 #. type: textblock
5508 #: ../src/guestfs.pod:2812
5509 msgid ""
5510 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
5511 "vda>, and C</dev/vda1> through C</dev/vda15>)."
5512 msgstr ""
5513
5514 #. type: textblock
5515 #: ../src/guestfs.pod:2815
5516 msgid ""
5517 "If you attach a disk with more than 15 partitions, the extra partitions are "
5518 "ignored by libguestfs."
5519 msgstr ""
5520
5521 #. type: =head2
5522 #: ../src/guestfs.pod:2818
5523 msgid "MAXIMUM SIZE OF A DISK"
5524 msgstr ""
5525
5526 #. type: textblock
5527 #: ../src/guestfs.pod:2820
5528 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../src/guestfs.pod:2822
5533 msgid ""
5534 "We have tested block devices up to 1 exabyte (2**60 or "
5535 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5536 "filesystem."
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../src/guestfs.pod:2826
5541 msgid ""
5542 "Although libguestfs probably does not impose any limit, the underlying host "
5543 "storage will.  If you store disk images on a host ext4 filesystem, then the "
5544 "maximum size will be limited by the maximum ext4 file size (currently 16 "
5545 "TB).  If you store disk images as host logical volumes then you are limited "
5546 "by the maximum size of an LV."
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../src/guestfs.pod:2832
5551 msgid ""
5552 "For the hugest disk image files, we recommend using XFS on the host for "
5553 "storage."
5554 msgstr ""
5555
5556 #. type: =head2
5557 #: ../src/guestfs.pod:2835
5558 msgid "MAXIMUM SIZE OF A PARTITION"
5559 msgstr ""
5560
5561 #. type: textblock
5562 #: ../src/guestfs.pod:2837
5563 msgid ""
5564 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
5565 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
5566 "address a partition located beyond 2 TB on the disk."
5567 msgstr ""
5568
5569 #. type: textblock
5570 #: ../src/guestfs.pod:2841
5571 msgid ""
5572 "It is recommended that you use GPT partitions on disks which are larger than "
5573 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
5574 "which are theoretically larger than the largest disk we could support."
5575 msgstr ""
5576
5577 #. type: =head2
5578 #: ../src/guestfs.pod:2846
5579 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
5580 msgstr ""
5581
5582 #. type: textblock
5583 #: ../src/guestfs.pod:2848
5584 msgid ""
5585 "This depends on the filesystem type.  libguestfs itself does not impose any "
5586 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
5587 "what these limits are."
5588 msgstr ""
5589
5590 #. type: =head2
5591 #: ../src/guestfs.pod:2852
5592 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
5593 msgstr ""
5594
5595 #. type: textblock
5596 #: ../src/guestfs.pod:2854
5597 msgid ""
5598 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
5599 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
5600 "uploads and downloads."
5601 msgstr ""
5602
5603 #. type: =head2
5604 #: ../src/guestfs.pod:2858
5605 #, fuzzy
5606 #| msgid "INSPECTION"
5607 msgid "INSPECTION LIMITS"
5608 msgstr "ПЕРЕВІРКА"
5609
5610 #. type: textblock
5611 #: ../src/guestfs.pod:2860
5612 msgid ""
5613 "The inspection code has several arbitrary limits on things like the size of "
5614 "Windows Registry hive it will read, and the length of product name.  These "
5615 "are intended to stop a malicious guest from consuming arbitrary amounts of "
5616 "memory and disk space on the host, and should not be reached in practice.  "
5617 "See the source code for more information."
5618 msgstr ""
5619
5620 #. type: =head1
5621 #: ../src/guestfs.pod:2866 ../fish/guestfish.pod:1017
5622 #: ../test-tool/libguestfs-test-tool.pod:82
5623 msgid "ENVIRONMENT VARIABLES"
5624 msgstr "ЗМІННІ СЕРЕДОВИЩА"
5625
5626 #. type: =item
5627 #: ../src/guestfs.pod:2870 ../fish/guestfish.pod:1043
5628 msgid "LIBGUESTFS_APPEND"
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../src/guestfs.pod:2872 ../fish/guestfish.pod:1045
5633 msgid "Pass additional options to the guest kernel."
5634 msgstr ""
5635
5636 #. type: =item
5637 #: ../src/guestfs.pod:2874 ../fish/guestfish.pod:1047
5638 msgid "LIBGUESTFS_DEBUG"
5639 msgstr ""
5640
5641 #. type: textblock
5642 #: ../src/guestfs.pod:2876
5643 msgid ""
5644 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5645 "effect as calling C<guestfs_set_verbose (g, 1)>."
5646 msgstr ""
5647
5648 #. type: =item
5649 #: ../src/guestfs.pod:2879 ../fish/guestfish.pod:1052
5650 msgid "LIBGUESTFS_MEMSIZE"
5651 msgstr ""
5652
5653 #. type: textblock
5654 #: ../src/guestfs.pod:2881 ../fish/guestfish.pod:1054
5655 msgid ""
5656 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5657 msgstr ""
5658
5659 #. type: verbatim
5660 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1057
5661 #, no-wrap
5662 msgid ""
5663 " LIBGUESTFS_MEMSIZE=700\n"
5664 "\n"
5665 msgstr ""
5666
5667 #. type: =item
5668 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1059
5669 msgid "LIBGUESTFS_PATH"
5670 msgstr ""
5671
5672 #. type: textblock
5673 #: ../src/guestfs.pod:2888
5674 msgid ""
5675 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5676 "the discussion of paths in section L</PATH> above."
5677 msgstr ""
5678
5679 #. type: =item
5680 #: ../src/guestfs.pod:2891 ../fish/guestfish.pod:1064
5681 msgid "LIBGUESTFS_QEMU"
5682 msgstr ""
5683
5684 #. type: textblock
5685 #: ../src/guestfs.pod:2893 ../fish/guestfish.pod:1066
5686 msgid ""
5687 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5688 "which was found at compile time by the configure script is used."
5689 msgstr ""
5690
5691 #. type: textblock
5692 #: ../src/guestfs.pod:2897
5693 msgid "See also L</QEMU WRAPPERS> above."
5694 msgstr ""
5695
5696 #. type: =item
5697 #: ../src/guestfs.pod:2899 ../fish/guestfish.pod:1070
5698 msgid "LIBGUESTFS_TRACE"
5699 msgstr ""
5700
5701 #. type: textblock
5702 #: ../src/guestfs.pod:2901
5703 msgid ""
5704 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5705 "effect as calling C<guestfs_set_trace (g, 1)>."
5706 msgstr ""
5707
5708 #. type: =item
5709 #: ../src/guestfs.pod:2904 ../fish/guestfish.pod:1079
5710 msgid "TMPDIR"
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../src/guestfs.pod:2906 ../fish/guestfish.pod:1081
5715 msgid ""
5716 "Location of temporary directory, defaults to C</tmp> except for the cached "
5717 "supermin appliance which defaults to C</var/tmp>."
5718 msgstr ""
5719
5720 #. type: textblock
5721 #: ../src/guestfs.pod:2909 ../fish/guestfish.pod:1084
5722 msgid ""
5723 "If libguestfs was compiled to use the supermin appliance then the real "
5724 "appliance is cached in this directory, shared between all handles belonging "
5725 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5726 "use in case C</var/tmp> is not large enough."
5727 msgstr ""
5728
5729 #. type: =head1
5730 #: ../src/guestfs.pod:2917 ../fish/guestfish.pod:1151
5731 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:279
5732 #: ../tools/virt-win-reg.pl:744 ../tools/virt-list-filesystems.pl:189
5733 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
5734 #: ../tools/virt-list-partitions.pl:257
5735 msgid "SEE ALSO"
5736 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
5737
5738 #. type: textblock
5739 #: ../src/guestfs.pod:2919
5740 msgid ""
5741 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
5742 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
5743 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
5744 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
5745 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
5746 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
5747 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
5748 msgstr ""
5749
5750 #. type: textblock
5751 #: ../src/guestfs.pod:2946
5752 msgid ""
5753 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
5754 "(8)>, L<disktype(1)>."
5755 msgstr ""
5756
5757 #. type: =head1
5758 #: ../src/guestfs.pod:2953 ../tools/virt-win-reg.pl:759
5759 #: ../tools/virt-make-fs.pl:553
5760 msgid "BUGS"
5761 msgstr "ВАДИ"
5762
5763 #. type: textblock
5764 #: ../src/guestfs.pod:2955
5765 msgid "To get a list of bugs against libguestfs use this link:"
5766 msgstr ""
5767 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
5768 "посиланням:"
5769
5770 #. type: textblock
5771 #: ../src/guestfs.pod:2957
5772 msgid ""
5773 "L<https://bugzilla.redhat.com/buglist.cgi?"
5774 "component=libguestfs&product=Virtualization+Tools>"
5775 msgstr ""
5776 "L<https://bugzilla.redhat.com/buglist.cgi?"
5777 "component=libguestfs&product=Virtualization+Tools>"
5778
5779 #. type: textblock
5780 #: ../src/guestfs.pod:2959
5781 msgid "To report a new bug against libguestfs use this link:"
5782 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
5783
5784 #. type: textblock
5785 #: ../src/guestfs.pod:2961
5786 msgid ""
5787 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5788 "component=libguestfs&product=Virtualization+Tools>"
5789 msgstr ""
5790 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5791 "component=libguestfs&product=Virtualization+Tools>"
5792
5793 #. type: textblock
5794 #: ../src/guestfs.pod:2963
5795 msgid "When reporting a bug, please check:"
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../src/guestfs.pod:2969
5800 msgid "That the bug hasn't been reported already."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../src/guestfs.pod:2973
5805 msgid "That you are testing a recent version."
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../src/guestfs.pod:2977
5810 msgid "Describe the bug accurately, and give a way to reproduce it."
5811 msgstr ""
5812
5813 #. type: textblock
5814 #: ../src/guestfs.pod:2981
5815 msgid ""
5816 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5817 "bug report."
5818 msgstr ""
5819
5820 #. type: =head1
5821 #: ../src/guestfs.pod:2986 ../fish/guestfish.pod:1174
5822 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:290
5823 msgid "AUTHORS"
5824 msgstr "АВТОРИ"
5825
5826 #. type: textblock
5827 #: ../src/guestfs.pod:2988 ../fish/guestfish.pod:1176
5828 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:292
5829 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5830 msgstr ""
5831
5832 #. type: =head1
5833 #: ../src/guestfs.pod:2990 ../fish/guestfish.pod:1178
5834 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:294
5835 #: ../tools/virt-win-reg.pl:774 ../tools/virt-list-filesystems.pl:206
5836 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
5837 #: ../tools/virt-list-partitions.pl:273
5838 msgid "COPYRIGHT"
5839 msgstr "АВТОРСЬКІ ПРАВА"
5840
5841 #. type: textblock
5842 #: ../src/guestfs.pod:2992 ../fish/guestfish.pod:1180
5843 #: ../test-tool/libguestfs-test-tool.pod:99
5844 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../src/guestfs.pod:2995
5849 msgid ""
5850 "This library is free software; you can redistribute it and/or modify it "
5851 "under the terms of the GNU Lesser General Public License as published by the "
5852 "Free Software Foundation; either version 2 of the License, or (at your "
5853 "option) any later version."
5854 msgstr ""
5855
5856 #. type: textblock
5857 #: ../src/guestfs.pod:3000
5858 msgid ""
5859 "This library is distributed in the hope that it will be useful, but WITHOUT "
5860 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5861 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5862 "for more details."
5863 msgstr ""
5864
5865 #. type: textblock
5866 #: ../src/guestfs.pod:3005
5867 msgid ""
5868 "You should have received a copy of the GNU Lesser General Public License "
5869 "along with this library; if not, write to the Free Software Foundation, "
5870 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5871 msgstr ""
5872
5873 #. type: =head2
5874 #: ../src/guestfs-actions.pod:1
5875 msgid "guestfs_add_cdrom"
5876 msgstr ""
5877
5878 #. type: verbatim
5879 #: ../src/guestfs-actions.pod:3
5880 #, no-wrap
5881 msgid ""
5882 " int\n"
5883 " guestfs_add_cdrom (guestfs_h *g,\n"
5884 "                    const char *filename);\n"
5885 "\n"
5886 msgstr ""
5887
5888 #. type: textblock
5889 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5890 msgid "This function adds a virtual CD-ROM disk image to the guest."
5891 msgstr ""
5892
5893 #. type: textblock
5894 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5895 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../src/guestfs-actions.pod:17
5900 msgid ""
5901 "This call checks for the existence of C<filename>.  This stops you from "
5902 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5903 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5904 "instead."
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../src/guestfs-actions.pod:24
5909 msgid ""
5910 "If you just want to add an ISO file (often you use this as an efficient way "
5911 "to transfer large files into the guest), then you should probably use "
5912 "C<guestfs_add_drive_ro> instead."
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
5917 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
5918 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
5919 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
5920 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
5921 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
5922 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
5923 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
5924 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
5925 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
5926 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
5927 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1002
5928 #: ../src/guestfs-actions.pod:1020 ../src/guestfs-actions.pod:1104
5929 #: ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1141
5930 #: ../src/guestfs-actions.pod:1155 ../src/guestfs-actions.pod:1175
5931 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1276
5932 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1343
5933 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1483
5934 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:1720
5935 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:2269
5936 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2474
5937 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:3485
5938 #: ../src/guestfs-actions.pod:3500 ../src/guestfs-actions.pod:3525
5939 #: ../src/guestfs-actions.pod:3680 ../src/guestfs-actions.pod:3694
5940 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3721
5941 #: ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3772
5942 #: ../src/guestfs-actions.pod:3844 ../src/guestfs-actions.pod:3864
5943 #: ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3904
5944 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:3959
5945 #: ../src/guestfs-actions.pod:3978 ../src/guestfs-actions.pod:3997
5946 #: ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4044
5947 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4096
5948 #: ../src/guestfs-actions.pod:4109 ../src/guestfs-actions.pod:4124
5949 #: ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4234
5950 #: ../src/guestfs-actions.pod:4254 ../src/guestfs-actions.pod:4267
5951 #: ../src/guestfs-actions.pod:4318 ../src/guestfs-actions.pod:4336
5952 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4370
5953 #: ../src/guestfs-actions.pod:4384 ../src/guestfs-actions.pod:4398
5954 #: ../src/guestfs-actions.pod:4415 ../src/guestfs-actions.pod:4430
5955 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4508
5956 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4612
5957 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4650
5958 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4679
5959 #: ../src/guestfs-actions.pod:4692 ../src/guestfs-actions.pod:4707
5960 #: ../src/guestfs-actions.pod:4722 ../src/guestfs-actions.pod:4757
5961 #: ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:4799
5962 #: ../src/guestfs-actions.pod:4813 ../src/guestfs-actions.pod:4830
5963 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4916
5964 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:4958
5965 #: ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:4993
5966 #: ../src/guestfs-actions.pod:5127 ../src/guestfs-actions.pod:5184
5967 #: ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5224
5968 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5322
5969 #: ../src/guestfs-actions.pod:5339 ../src/guestfs-actions.pod:5352
5970 #: ../src/guestfs-actions.pod:5366 ../src/guestfs-actions.pod:5655
5971 #: ../src/guestfs-actions.pod:5674 ../src/guestfs-actions.pod:5693
5972 #: ../src/guestfs-actions.pod:5705 ../src/guestfs-actions.pod:5717
5973 #: ../src/guestfs-actions.pod:5731 ../src/guestfs-actions.pod:5743
5974 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5773
5975 #: ../src/guestfs-actions.pod:5794 ../src/guestfs-actions.pod:5813
5976 #: ../src/guestfs-actions.pod:5832 ../src/guestfs-actions.pod:5862
5977 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:5901
5978 #: ../src/guestfs-actions.pod:5919 ../src/guestfs-actions.pod:5938
5979 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:5978
5980 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6023
5981 #: ../src/guestfs-actions.pod:6047 ../src/guestfs-actions.pod:6066
5982 #: ../src/guestfs-actions.pod:6090 ../src/guestfs-actions.pod:6109
5983 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6143
5984 #: ../src/guestfs-actions.pod:6180 ../src/guestfs-actions.pod:6210
5985 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6365
5986 #: ../src/guestfs-actions.pod:6486 ../src/guestfs-actions.pod:6498
5987 #: ../src/guestfs-actions.pod:6511 ../src/guestfs-actions.pod:6524
5988 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6559
5989 #: ../src/guestfs-actions.pod:6572 ../src/guestfs-actions.pod:6585
5990 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6659
5991 #: ../src/guestfs-actions.pod:6676 ../src/guestfs-actions.pod:6692
5992 #: ../src/guestfs-actions.pod:6708 ../src/guestfs-actions.pod:6725
5993 #: ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6758
5994 #: ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6808
5995 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6862
5996 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:6914
5997 #: ../src/guestfs-actions.pod:6950 ../src/guestfs-actions.pod:7069
5998 #: ../src/guestfs-actions.pod:7087 ../src/guestfs-actions.pod:7101
5999 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7169
6000 #: ../src/guestfs-actions.pod:7214 ../src/guestfs-actions.pod:7247
6001 #: ../src/guestfs-actions.pod:7308 ../src/guestfs-actions.pod:7334
6002 #: ../src/guestfs-actions.pod:7401 ../src/guestfs-actions.pod:7420
6003 #: ../src/guestfs-actions.pod:7449
6004 msgid "This function returns 0 on success or -1 on error."
6005 msgstr ""
6006
6007 #. type: textblock
6008 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6009 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6010 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6011 msgid ""
6012 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6013 "instead."
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6018 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1454
6019 #: ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:1968
6020 #: ../src/guestfs-actions.pod:4455 ../src/guestfs-actions.pod:4762
6021 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6218
6022 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6310
6023 #: ../src/guestfs-actions.pod:7252 ../src/guestfs-actions.pod:7342
6024 #: ../src/guestfs-actions.pod:7512 ../fish/guestfish-actions.pod:31
6025 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6026 #: ../fish/guestfish-actions.pod:961 ../fish/guestfish-actions.pod:1321
6027 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:3025
6028 #: ../fish/guestfish-actions.pod:3222 ../fish/guestfish-actions.pod:4194
6029 #: ../fish/guestfish-actions.pod:4217 ../fish/guestfish-actions.pod:4239
6030 #: ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4918
6031 #: ../fish/guestfish-actions.pod:5016
6032 msgid ""
6033 "Deprecated functions will not be removed from the API, but the fact that "
6034 "they are deprecated indicates that there are problems with correct use of "
6035 "these functions."
6036 msgstr ""
6037
6038 #. type: textblock
6039 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6040 #: ../src/guestfs-actions.pod:1106 ../src/guestfs-actions.pod:1919
6041 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2120
6042 #: ../src/guestfs-actions.pod:3487 ../src/guestfs-actions.pod:3507
6043 #: ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:5880
6044 #: ../src/guestfs-actions.pod:5997 ../src/guestfs-actions.pod:6111
6045 #: ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:6727
6046 #: ../src/guestfs-actions.pod:7256
6047 msgid "(Added in 0.3)"
6048 msgstr ""
6049
6050 #. type: =head2
6051 #: ../src/guestfs-actions.pod:41
6052 msgid "guestfs_add_domain"
6053 msgstr ""
6054
6055 #. type: verbatim
6056 #: ../src/guestfs-actions.pod:43
6057 #, no-wrap
6058 msgid ""
6059 " int\n"
6060 " guestfs_add_domain (guestfs_h *g,\n"
6061 "                     const char *dom,\n"
6062 "                     ...);\n"
6063 "\n"
6064 msgstr ""
6065
6066 #. type: textblock
6067 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6068 #: ../src/guestfs-actions.pod:4469
6069 msgid ""
6070 "You may supply a list of optional arguments to this call.  Use zero or more "
6071 "of the following pairs of parameters, and terminate the list with C<-1> on "
6072 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6073 msgstr ""
6074
6075 #. type: verbatim
6076 #: ../src/guestfs-actions.pod:53
6077 #, no-wrap
6078 msgid ""
6079 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6080 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6081 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6082 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6083 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6084 "\n"
6085 msgstr ""
6086
6087 #. type: textblock
6088 #: ../src/guestfs-actions.pod:59
6089 msgid ""
6090 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6091 "It works by connecting to libvirt, requesting the domain and domain XML from "
6092 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6093 "one."
6094 msgstr ""
6095
6096 #. type: textblock
6097 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6098 msgid ""
6099 "The number of disks added is returned.  This operation is atomic: if an "
6100 "error is returned, then no disks are added."
6101 msgstr ""
6102
6103 #. type: textblock
6104 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6105 msgid ""
6106 "This function does some minimal checks to make sure the libvirt domain is "
6107 "not running (unless C<readonly> is true).  In a future version we will try "
6108 "to acquire the libvirt lock on each disk."
6109 msgstr ""
6110
6111 #. type: textblock
6112 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6113 msgid ""
6114 "Disks must be accessible locally.  This often means that adding disks from a "
6115 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6116 "unless those disks are accessible via the same device path locally too."
6117 msgstr ""
6118
6119 #. type: textblock
6120 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6121 msgid ""
6122 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6123 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6124 "libvirt URI (or one set through an environment variable, see the libvirt "
6125 "documentation for full details)."
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6130 msgid ""
6131 "The optional C<live> flag controls whether this call will try to connect to "
6132 "a running virtual machine C<guestfsd> process if it sees a suitable "
6133 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6134 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6135 "DAEMONS> for more information."
6136 msgstr ""
6137
6138 #. type: textblock
6139 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6140 msgid ""
6141 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6142 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6143 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6144 "as usual."
6145 msgstr ""
6146
6147 #. type: textblock
6148 #: ../src/guestfs-actions.pod:94
6149 msgid ""
6150 "The other optional parameters are passed directly through to "
6151 "C<guestfs_add_drive_opts>."
6152 msgstr ""
6153
6154 #. type: textblock
6155 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6156 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6157 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6158 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1321
6159 #: ../src/guestfs-actions.pod:1677 ../src/guestfs-actions.pod:1880
6160 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2029
6161 #: ../src/guestfs-actions.pod:2084 ../src/guestfs-actions.pod:2107
6162 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:2783
6163 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:4902
6164 #: ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5436
6165 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:6835
6166 #: ../src/guestfs-actions.pod:7267 ../src/guestfs-actions.pod:7280
6167 #: ../src/guestfs-actions.pod:7293
6168 msgid "On error this function returns -1."
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../src/guestfs-actions.pod:99
6173 msgid "(Added in 1.7.4)"
6174 msgstr ""
6175
6176 #. type: =head2
6177 #: ../src/guestfs-actions.pod:101
6178 msgid "guestfs_add_domain_va"
6179 msgstr ""
6180
6181 #. type: verbatim
6182 #: ../src/guestfs-actions.pod:103
6183 #, no-wrap
6184 msgid ""
6185 " int\n"
6186 " guestfs_add_domain_va (guestfs_h *g,\n"
6187 "                        const char *dom,\n"
6188 "                        va_list args);\n"
6189 "\n"
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../src/guestfs-actions.pod:108
6194 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6195 msgstr ""
6196
6197 #. type: textblock
6198 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6199 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6200 #: ../src/guestfs-actions.pod:4522 ../src/guestfs-actions.pod:4534
6201 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6202 msgstr ""
6203
6204 #. type: =head2
6205 #: ../src/guestfs-actions.pod:112
6206 msgid "guestfs_add_domain_argv"
6207 msgstr ""
6208
6209 #. type: verbatim
6210 #: ../src/guestfs-actions.pod:114
6211 #, no-wrap
6212 msgid ""
6213 " int\n"
6214 " guestfs_add_domain_argv (guestfs_h *g,\n"
6215 "                          const char *dom,\n"
6216 "                          const struct guestfs_add_domain_argv *optargs);\n"
6217 "\n"
6218 msgstr ""
6219
6220 #. type: textblock
6221 #: ../src/guestfs-actions.pod:119
6222 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6223 msgstr ""
6224
6225 #. type: =head2
6226 #: ../src/guestfs-actions.pod:123
6227 msgid "guestfs_add_drive"
6228 msgstr ""
6229
6230 #. type: verbatim
6231 #: ../src/guestfs-actions.pod:125
6232 #, no-wrap
6233 msgid ""
6234 " int\n"
6235 " guestfs_add_drive (guestfs_h *g,\n"
6236 "                    const char *filename);\n"
6237 "\n"
6238 msgstr ""
6239
6240 #. type: textblock
6241 #: ../src/guestfs-actions.pod:129
6242 msgid ""
6243 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6244 "optional parameters, so the disk is added writable, with the format being "
6245 "detected automatically."
6246 msgstr ""
6247
6248 #. type: textblock
6249 #: ../src/guestfs-actions.pod:133
6250 msgid ""
6251 "Automatic detection of the format opens you up to a potential security hole "
6252 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6253 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6254 "you should think about replacing calls to this function with calls to "
6255 "C<guestfs_add_drive_opts>, and specifying the format."
6256 msgstr ""
6257
6258 #. type: =head2
6259 #: ../src/guestfs-actions.pod:144
6260 msgid "guestfs_add_drive_opts"
6261 msgstr ""
6262
6263 #. type: verbatim
6264 #: ../src/guestfs-actions.pod:146
6265 #, no-wrap
6266 msgid ""
6267 " int\n"
6268 " guestfs_add_drive_opts (guestfs_h *g,\n"
6269 "                         const char *filename,\n"
6270 "                         ...);\n"
6271 "\n"
6272 msgstr ""
6273
6274 #. type: verbatim
6275 #: ../src/guestfs-actions.pod:156
6276 #, no-wrap
6277 msgid ""
6278 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6279 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6280 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6281 "\n"
6282 msgstr ""
6283
6284 #. type: textblock
6285 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6286 msgid ""
6287 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6288 "The first time you call this function, the disk appears as C</dev/sda>, the "
6289 "second time as C</dev/sdb>, and so on."
6290 msgstr ""
6291
6292 #. type: textblock
6293 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6294 msgid ""
6295 "You don't necessarily need to be root when using libguestfs.  However you "
6296 "obviously do need sufficient permissions to access the filename for whatever "
6297 "operations you want to perform (ie. read access if you just want to read the "
6298 "image or write access if you want to modify the image)."
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6303 msgid "This call checks that C<filename> exists."
6304 msgstr ""
6305
6306 #. type: textblock
6307 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4480
6308 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3036
6309 msgid "The optional arguments are:"
6310 msgstr ""
6311
6312 #. type: =item
6313 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6314 msgid "C<readonly>"
6315 msgstr "C<readonly>"
6316
6317 #. type: textblock
6318 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6319 msgid ""
6320 "If true then the image is treated as read-only.  Writes are still allowed, "
6321 "but they are stored in a temporary snapshot overlay which is discarded at "
6322 "the end.  The disk that you add is not modified."
6323 msgstr ""
6324
6325 #. type: =item
6326 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6327 msgid "C<format>"
6328 msgstr "C<format>"
6329
6330 #. type: textblock
6331 #: ../src/guestfs-actions.pod:185
6332 msgid ""
6333 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6334 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6335 "Possible formats include C<raw> and C<qcow2>."
6336 msgstr ""
6337
6338 #. type: textblock
6339 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6340 msgid ""
6341 "Automatic detection of the format opens you up to a potential security hole "
6342 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6343 "RHBZ#642934.  Specifying the format closes this security hole."
6344 msgstr ""
6345
6346 #. type: =item
6347 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6348 msgid "C<iface>"
6349 msgstr "C<iface>"
6350
6351 #. type: textblock
6352 #: ../src/guestfs-actions.pod:196
6353 msgid ""
6354 "This rarely-used option lets you emulate the behaviour of the deprecated "
6355 "C<guestfs_add_drive_with_if> call (q.v.)"
6356 msgstr ""
6357
6358 #. type: textblock
6359 #: ../src/guestfs-actions.pod:203
6360 msgid "(Added in 1.5.23)"
6361 msgstr ""
6362
6363 #. type: =head2
6364 #: ../src/guestfs-actions.pod:205
6365 msgid "guestfs_add_drive_opts_va"
6366 msgstr ""
6367
6368 #. type: verbatim
6369 #: ../src/guestfs-actions.pod:207
6370 #, no-wrap
6371 msgid ""
6372 " int\n"
6373 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6374 "                            const char *filename,\n"
6375 "                            va_list args);\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../src/guestfs-actions.pod:212
6381 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6382 msgstr ""
6383
6384 #. type: =head2
6385 #: ../src/guestfs-actions.pod:216
6386 msgid "guestfs_add_drive_opts_argv"
6387 msgstr ""
6388
6389 #. type: verbatim
6390 #: ../src/guestfs-actions.pod:218
6391 #, no-wrap
6392 msgid ""
6393 " int\n"
6394 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6395 "                              const char *filename,\n"
6396 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6397 "\n"
6398 msgstr ""
6399
6400 #. type: textblock
6401 #: ../src/guestfs-actions.pod:223
6402 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6403 msgstr ""
6404
6405 #. type: =head2
6406 #: ../src/guestfs-actions.pod:227
6407 msgid "guestfs_add_drive_ro"
6408 msgstr ""
6409
6410 #. type: verbatim
6411 #: ../src/guestfs-actions.pod:229
6412 #, no-wrap
6413 msgid ""
6414 " int\n"
6415 " guestfs_add_drive_ro (guestfs_h *g,\n"
6416 "                       const char *filename);\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../src/guestfs-actions.pod:233
6422 msgid ""
6423 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6424 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6425 "disk is added read-only, with the format being detected automatically."
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../src/guestfs-actions.pod:240
6430 msgid "(Added in 1.0.38)"
6431 msgstr ""
6432
6433 #. type: =head2
6434 #: ../src/guestfs-actions.pod:242
6435 msgid "guestfs_add_drive_ro_with_if"
6436 msgstr ""
6437
6438 #. type: verbatim
6439 #: ../src/guestfs-actions.pod:244
6440 #, no-wrap
6441 msgid ""
6442 " int\n"
6443 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6444 "                               const char *filename,\n"
6445 "                               const char *iface);\n"
6446 "\n"
6447 msgstr ""
6448
6449 #. type: textblock
6450 #: ../src/guestfs-actions.pod:249
6451 msgid ""
6452 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6453 "QEMU interface emulation to use at run time."
6454 msgstr ""
6455
6456 #. type: textblock
6457 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
6458 #: ../src/guestfs-actions.pod:2359
6459 msgid "(Added in 1.0.84)"
6460 msgstr ""
6461
6462 #. type: =head2
6463 #: ../src/guestfs-actions.pod:263
6464 msgid "guestfs_add_drive_with_if"
6465 msgstr ""
6466
6467 #. type: verbatim
6468 #: ../src/guestfs-actions.pod:265
6469 #, no-wrap
6470 msgid ""
6471 " int\n"
6472 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6473 "                            const char *filename,\n"
6474 "                            const char *iface);\n"
6475 "\n"
6476 msgstr ""
6477
6478 #. type: textblock
6479 #: ../src/guestfs-actions.pod:270
6480 msgid ""
6481 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6482 "QEMU interface emulation to use at run time."
6483 msgstr ""
6484
6485 #. type: =head2
6486 #: ../src/guestfs-actions.pod:284
6487 msgid "guestfs_aug_clear"
6488 msgstr ""
6489
6490 #. type: verbatim
6491 #: ../src/guestfs-actions.pod:286
6492 #, no-wrap
6493 msgid ""
6494 " int\n"
6495 " guestfs_aug_clear (guestfs_h *g,\n"
6496 "                    const char *augpath);\n"
6497 "\n"
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
6502 msgid ""
6503 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6504 "L<augtool(1)> C<clear> command."
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2109
6509 msgid "(Added in 1.3.4)"
6510 msgstr ""
6511
6512 #. type: =head2
6513 #: ../src/guestfs-actions.pod:297
6514 msgid "guestfs_aug_close"
6515 msgstr ""
6516
6517 #. type: verbatim
6518 #: ../src/guestfs-actions.pod:299
6519 #, no-wrap
6520 msgid ""
6521 " int\n"
6522 " guestfs_aug_close (guestfs_h *g);\n"
6523 "\n"
6524 msgstr ""
6525
6526 #. type: textblock
6527 #: ../src/guestfs-actions.pod:302
6528 msgid ""
6529 "Close the current Augeas handle and free up any resources used by it.  After "
6530 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6531 "any other Augeas functions."
6532 msgstr ""
6533
6534 #. type: textblock
6535 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
6536 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
6537 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
6538 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
6539 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
6540 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
6541 #: ../src/guestfs-actions.pod:5513
6542 msgid "(Added in 0.7)"
6543 msgstr ""
6544
6545 #. type: =head2
6546 #: ../src/guestfs-actions.pod:311
6547 msgid "guestfs_aug_defnode"
6548 msgstr ""
6549
6550 #. type: verbatim
6551 #: ../src/guestfs-actions.pod:313
6552 #, no-wrap
6553 msgid ""
6554 " struct guestfs_int_bool *\n"
6555 " guestfs_aug_defnode (guestfs_h *g,\n"
6556 "                      const char *name,\n"
6557 "                      const char *expr,\n"
6558 "                      const char *val);\n"
6559 "\n"
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
6564 msgid ""
6565 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6566 msgstr ""
6567
6568 #. type: textblock
6569 #: ../src/guestfs-actions.pod:322
6570 msgid ""
6571 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6572 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6573 "containing that single node."
6574 msgstr ""
6575
6576 #. type: textblock
6577 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
6578 msgid ""
6579 "On success this returns a pair containing the number of nodes in the "
6580 "nodeset, and a boolean flag if a node was created."
6581 msgstr ""
6582
6583 #. type: textblock
6584 #: ../src/guestfs-actions.pod:330
6585 msgid ""
6586 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6587 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6588 msgstr ""
6589
6590 #. type: =head2
6591 #: ../src/guestfs-actions.pod:336
6592 msgid "guestfs_aug_defvar"
6593 msgstr ""
6594
6595 #. type: verbatim
6596 #: ../src/guestfs-actions.pod:338
6597 #, no-wrap
6598 msgid ""
6599 " int\n"
6600 " guestfs_aug_defvar (guestfs_h *g,\n"
6601 "                     const char *name,\n"
6602 "                     const char *expr);\n"
6603 "\n"
6604 msgstr ""
6605
6606 #. type: textblock
6607 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
6608 msgid ""
6609 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6610 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
6615 msgid ""
6616 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6617 "evaluates to something which is not a nodeset."
6618 msgstr ""
6619
6620 #. type: =head2
6621 #: ../src/guestfs-actions.pod:354
6622 msgid "guestfs_aug_get"
6623 msgstr ""
6624
6625 #. type: verbatim
6626 #: ../src/guestfs-actions.pod:356
6627 #, no-wrap
6628 msgid ""
6629 " char *\n"
6630 " guestfs_aug_get (guestfs_h *g,\n"
6631 "                  const char *augpath);\n"
6632 "\n"
6633 msgstr ""
6634
6635 #. type: textblock
6636 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
6637 msgid ""
6638 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6639 "node, the C<value> is returned."
6640 msgstr ""
6641
6642 #. type: textblock
6643 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:863
6644 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:941
6645 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:1060
6646 #: ../src/guestfs-actions.pod:1190 ../src/guestfs-actions.pod:1207
6647 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1360
6648 #: ../src/guestfs-actions.pod:1548 ../src/guestfs-actions.pod:1660
6649 #: ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:1840
6650 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:1941
6651 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2132
6652 #: ../src/guestfs-actions.pod:2324 ../src/guestfs-actions.pod:2531
6653 #: ../src/guestfs-actions.pod:2624 ../src/guestfs-actions.pod:2735
6654 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2875
6655 #: ../src/guestfs-actions.pod:2906 ../src/guestfs-actions.pod:2930
6656 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:3027
6657 #: ../src/guestfs-actions.pod:3050 ../src/guestfs-actions.pod:3071
6658 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:4016
6659 #: ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4296
6660 #: ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5241
6661 #: ../src/guestfs-actions.pod:5411 ../src/guestfs-actions.pod:5589
6662 #: ../src/guestfs-actions.pod:5638 ../src/guestfs-actions.pod:6271
6663 #: ../src/guestfs-actions.pod:6287 ../src/guestfs-actions.pod:6304
6664 #: ../src/guestfs-actions.pod:6335 ../src/guestfs-actions.pod:7009
6665 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7046
6666 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7506
6667 msgid ""
6668 "This function returns a string, or NULL on error.  I<The caller must free "
6669 "the returned string after use>."
6670 msgstr ""
6671
6672 #. type: =head2
6673 #: ../src/guestfs-actions.pod:368
6674 msgid "guestfs_aug_init"
6675 msgstr ""
6676
6677 #. type: verbatim
6678 #: ../src/guestfs-actions.pod:370
6679 #, no-wrap
6680 msgid ""
6681 " int\n"
6682 " guestfs_aug_init (guestfs_h *g,\n"
6683 "                   const char *root,\n"
6684 "                   int flags);\n"
6685 "\n"
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
6690 msgid ""
6691 "Create a new Augeas handle for editing configuration files.  If there was "
6692 "any previous Augeas handle associated with this guestfs session, then it is "
6693 "closed."
6694 msgstr ""
6695
6696 #. type: textblock
6697 #: ../src/guestfs-actions.pod:379
6698 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6699 msgstr ""
6700
6701 #. type: textblock
6702 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
6703 msgid ""
6704 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6705 msgstr ""
6706
6707 #. type: textblock
6708 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
6709 msgid ""
6710 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6711 "logical I<or> of the following integers:"
6712 msgstr ""
6713
6714 #. type: =item
6715 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
6716 msgid "C<AUG_SAVE_BACKUP> = 1"
6717 msgstr "C<AUG_SAVE_BACKUP> = 1"
6718
6719 #. type: textblock
6720 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
6721 msgid "Keep the original file with a C<.augsave> extension."
6722 msgstr ""
6723
6724 #. type: =item
6725 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
6726 msgid "C<AUG_SAVE_NEWFILE> = 2"
6727 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6728
6729 #. type: textblock
6730 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
6731 msgid ""
6732 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6733 "original.  Overrides C<AUG_SAVE_BACKUP>."
6734 msgstr ""
6735
6736 #. type: =item
6737 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
6738 msgid "C<AUG_TYPE_CHECK> = 4"
6739 msgstr "C<AUG_TYPE_CHECK> = 4"
6740
6741 #. type: textblock
6742 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
6743 msgid "Typecheck lenses (can be expensive)."
6744 msgstr ""
6745
6746 #. type: =item
6747 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
6748 msgid "C<AUG_NO_STDINC> = 8"
6749 msgstr "C<AUG_NO_STDINC> = 8"
6750
6751 #. type: textblock
6752 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
6753 msgid "Do not use standard load path for modules."
6754 msgstr ""
6755
6756 #. type: =item
6757 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
6758 msgid "C<AUG_SAVE_NOOP> = 16"
6759 msgstr "C<AUG_SAVE_NOOP> = 16"
6760
6761 #. type: textblock
6762 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
6763 msgid "Make save a no-op, just record what would have been changed."
6764 msgstr ""
6765
6766 #. type: =item
6767 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
6768 msgid "C<AUG_NO_LOAD> = 32"
6769 msgstr "C<AUG_NO_LOAD> = 32"
6770
6771 #. type: textblock
6772 #: ../src/guestfs-actions.pod:414
6773 msgid "Do not load the tree in C<guestfs_aug_init>."
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../src/guestfs-actions.pod:418
6778 msgid "To close the handle, you can call C<guestfs_aug_close>."
6779 msgstr ""
6780
6781 #. type: textblock
6782 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
6783 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6784 msgstr ""
6785
6786 #. type: =head2
6787 #: ../src/guestfs-actions.pod:426
6788 msgid "guestfs_aug_insert"
6789 msgstr ""
6790
6791 #. type: verbatim
6792 #: ../src/guestfs-actions.pod:428
6793 #, no-wrap
6794 msgid ""
6795 " int\n"
6796 " guestfs_aug_insert (guestfs_h *g,\n"
6797 "                     const char *augpath,\n"
6798 "                     const char *label,\n"
6799 "                     int before);\n"
6800 "\n"
6801 msgstr ""
6802
6803 #. type: textblock
6804 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
6805 msgid ""
6806 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6807 "or after C<path> (depending on the boolean flag C<before>)."
6808 msgstr ""
6809
6810 #. type: textblock
6811 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
6812 msgid ""
6813 "C<path> must match exactly one existing node in the tree, and C<label> must "
6814 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6815 msgstr ""
6816
6817 #. type: =head2
6818 #: ../src/guestfs-actions.pod:446
6819 msgid "guestfs_aug_load"
6820 msgstr ""
6821
6822 #. type: verbatim
6823 #: ../src/guestfs-actions.pod:448
6824 #, no-wrap
6825 msgid ""
6826 " int\n"
6827 " guestfs_aug_load (guestfs_h *g);\n"
6828 "\n"
6829 msgstr ""
6830
6831 #. type: textblock
6832 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
6833 msgid "Load files into the tree."
6834 msgstr "Завантажити файли до ієрархії."
6835
6836 #. type: textblock
6837 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
6838 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6839 msgstr ""
6840
6841 #. type: =head2
6842 #: ../src/guestfs-actions.pod:460
6843 msgid "guestfs_aug_ls"
6844 msgstr ""
6845
6846 #. type: verbatim
6847 #: ../src/guestfs-actions.pod:462
6848 #, no-wrap
6849 msgid ""
6850 " char **\n"
6851 " guestfs_aug_ls (guestfs_h *g,\n"
6852 "                 const char *augpath);\n"
6853 "\n"
6854 msgstr ""
6855
6856 #. type: textblock
6857 #: ../src/guestfs-actions.pod:466
6858 msgid ""
6859 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6860 "sorting the resulting nodes into alphabetical order."
6861 msgstr ""
6862
6863 #. type: textblock
6864 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
6865 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1079
6866 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1394
6867 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1516
6868 #: ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:2204
6869 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2239
6870 #: ../src/guestfs-actions.pod:2282 ../src/guestfs-actions.pod:2306
6871 #: ../src/guestfs-actions.pod:2377 ../src/guestfs-actions.pod:2426
6872 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2984
6873 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3586
6874 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3753
6875 #: ../src/guestfs-actions.pod:4158 ../src/guestfs-actions.pod:4863
6876 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5509
6877 #: ../src/guestfs-actions.pod:5623 ../src/guestfs-actions.pod:6351
6878 #: ../src/guestfs-actions.pod:6412 ../src/guestfs-actions.pod:6467
6879 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:6637
6880 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7139
6881 #: ../src/guestfs-actions.pod:7186 ../src/guestfs-actions.pod:7358
6882 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7463
6883 #: ../src/guestfs-actions.pod:7482 ../src/guestfs-actions.pod:7528
6884 #: ../src/guestfs-actions.pod:7547
6885 msgid ""
6886 "This function returns a NULL-terminated array of strings (like L<environ(3)"
6887 ">), or NULL if there was an error.  I<The caller must free the strings and "
6888 "the array after use>."
6889 msgstr ""
6890
6891 #. type: textblock
6892 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1004
6893 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1432
6894 #: ../src/guestfs-actions.pod:3351 ../src/guestfs-actions.pod:3382
6895 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4049
6896 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4269
6897 #: ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:4867
6898 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5719
6899 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5745
6900 #: ../src/guestfs-actions.pod:6192 ../src/guestfs-actions.pod:6851
6901 #: ../src/guestfs-actions.pod:6864 ../src/guestfs-actions.pod:7103
6902 #: ../src/guestfs-actions.pod:7346
6903 msgid "(Added in 0.8)"
6904 msgstr ""
6905
6906 #. type: =head2
6907 #: ../src/guestfs-actions.pod:475
6908 msgid "guestfs_aug_match"
6909 msgstr ""
6910
6911 #. type: verbatim
6912 #: ../src/guestfs-actions.pod:477
6913 #, no-wrap
6914 msgid ""
6915 " char **\n"
6916 " guestfs_aug_match (guestfs_h *g,\n"
6917 "                    const char *augpath);\n"
6918 "\n"
6919 msgstr ""
6920
6921 #. type: textblock
6922 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
6923 msgid ""
6924 "Returns a list of paths which match the path expression C<path>.  The "
6925 "returned paths are sufficiently qualified so that they match exactly one "
6926 "node in the current tree."
6927 msgstr ""
6928
6929 #. type: =head2
6930 #: ../src/guestfs-actions.pod:491
6931 msgid "guestfs_aug_mv"
6932 msgstr ""
6933
6934 #. type: verbatim
6935 #: ../src/guestfs-actions.pod:493
6936 #, no-wrap
6937 msgid ""
6938 " int\n"
6939 " guestfs_aug_mv (guestfs_h *g,\n"
6940 "                 const char *src,\n"
6941 "                 const char *dest);\n"
6942 "\n"
6943 msgstr ""
6944
6945 #. type: textblock
6946 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
6947 msgid ""
6948 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6949 "C<dest> is overwritten if it exists."
6950 msgstr ""
6951
6952 #. type: =head2
6953 #: ../src/guestfs-actions.pod:505
6954 msgid "guestfs_aug_rm"
6955 msgstr ""
6956
6957 #. type: verbatim
6958 #: ../src/guestfs-actions.pod:507
6959 #, no-wrap
6960 msgid ""
6961 " int\n"
6962 " guestfs_aug_rm (guestfs_h *g,\n"
6963 "                 const char *augpath);\n"
6964 "\n"
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
6969 msgid "Remove C<path> and all of its children."
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
6974 msgid "On success this returns the number of entries which were removed."
6975 msgstr ""
6976
6977 #. type: =head2
6978 #: ../src/guestfs-actions.pod:519
6979 msgid "guestfs_aug_save"
6980 msgstr ""
6981
6982 #. type: verbatim
6983 #: ../src/guestfs-actions.pod:521
6984 #, no-wrap
6985 msgid ""
6986 " int\n"
6987 " guestfs_aug_save (guestfs_h *g);\n"
6988 "\n"
6989 msgstr ""
6990
6991 #. type: textblock
6992 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
6993 msgid "This writes all pending changes to disk."
6994 msgstr ""
6995
6996 #. type: textblock
6997 #: ../src/guestfs-actions.pod:526
6998 msgid ""
6999 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7000 "are saved."
7001 msgstr ""
7002
7003 #. type: =head2
7004 #: ../src/guestfs-actions.pod:533
7005 msgid "guestfs_aug_set"
7006 msgstr ""
7007
7008 #. type: verbatim
7009 #: ../src/guestfs-actions.pod:535
7010 #, no-wrap
7011 msgid ""
7012 " int\n"
7013 " guestfs_aug_set (guestfs_h *g,\n"
7014 "                  const char *augpath,\n"
7015 "                  const char *val);\n"
7016 "\n"
7017 msgstr ""
7018
7019 #. type: textblock
7020 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7021 msgid "Set the value associated with C<path> to C<val>."
7022 msgstr ""
7023
7024 #. type: textblock
7025 #: ../src/guestfs-actions.pod:542
7026 msgid ""
7027 "In the Augeas API, it is possible to clear a node by setting the value to "
7028 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7029 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7030 msgstr ""
7031
7032 #. type: =head2
7033 #: ../src/guestfs-actions.pod:551
7034 msgid "guestfs_available"
7035 msgstr ""
7036
7037 #. type: verbatim
7038 #: ../src/guestfs-actions.pod:553
7039 #, no-wrap
7040 msgid ""
7041 " int\n"
7042 " guestfs_available (guestfs_h *g,\n"
7043 "                    char *const *groups);\n"
7044 "\n"
7045 msgstr ""
7046
7047 #. type: textblock
7048 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7049 msgid ""
7050 "This command is used to check the availability of some groups of "
7051 "functionality in the appliance, which not all builds of the libguestfs "
7052 "appliance will be able to provide."
7053 msgstr ""
7054
7055 #. type: textblock
7056 #: ../src/guestfs-actions.pod:561
7057 msgid ""
7058 "The libguestfs groups, and the functions that those groups correspond to, "
7059 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7060 "runtime by calling C<guestfs_available_all_groups>."
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7065 msgid ""
7066 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7067 "\"]> would check for the availability of the Linux inotify functions and "
7068 "Augeas (configuration file editing) functions."
7069 msgstr ""
7070
7071 #. type: textblock
7072 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7073 msgid "The command returns no error if I<all> requested groups are available."
7074 msgstr ""
7075
7076 #. type: textblock
7077 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7078 msgid ""
7079 "It fails with an error if one or more of the requested groups is unavailable "
7080 "in the appliance."
7081 msgstr ""
7082
7083 #. type: textblock
7084 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7085 msgid ""
7086 "If an unknown group name is included in the list of groups then an error is "
7087 "always returned."
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7092 msgid "I<Notes:>"
7093 msgstr "I<Нотатки:>"
7094
7095 #. type: textblock
7096 #: ../src/guestfs-actions.pod:585
7097 msgid "You must call C<guestfs_launch> before calling this function."
7098 msgstr ""
7099
7100 #. type: textblock
7101 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7102 msgid ""
7103 "The reason is because we don't know what groups are supported by the "
7104 "appliance/daemon until it is running and can be queried."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7109 msgid ""
7110 "If a group of functions is available, this does not necessarily mean that "
7111 "they will work.  You still have to check for errors when calling individual "
7112 "API functions even if they are available."
7113 msgstr ""
7114
7115 #. type: textblock
7116 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7117 msgid ""
7118 "It is usually the job of distro packagers to build complete functionality "
7119 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7120 "with all requirements satisfied, will support everything."
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../src/guestfs-actions.pod:607
7125 msgid ""
7126 "This call was added in version C<1.0.80>.  In previous versions of "
7127 "libguestfs all you could do would be to speculatively execute a command to "
7128 "find out if the daemon implemented it.  See also C<guestfs_version>."
7129 msgstr ""
7130
7131 #. type: textblock
7132 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1177
7133 msgid "(Added in 1.0.80)"
7134 msgstr ""
7135
7136 #. type: =head2
7137 #: ../src/guestfs-actions.pod:618
7138 msgid "guestfs_available_all_groups"
7139 msgstr ""
7140
7141 #. type: verbatim
7142 #: ../src/guestfs-actions.pod:620
7143 #, no-wrap
7144 msgid ""
7145 " char **\n"
7146 " guestfs_available_all_groups (guestfs_h *g);\n"
7147 "\n"
7148 msgstr ""
7149
7150 #. type: textblock
7151 #: ../src/guestfs-actions.pod:623
7152 msgid ""
7153 "This command returns a list of all optional groups that this daemon knows "
7154 "about.  Note this returns both supported and unsupported groups.  To find "
7155 "out which ones the daemon can actually support you have to call "
7156 "C<guestfs_available> on each member of the returned list."
7157 msgstr ""
7158
7159 #. type: textblock
7160 #: ../src/guestfs-actions.pod:629
7161 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7162 msgstr ""
7163
7164 #. type: textblock
7165 #: ../src/guestfs-actions.pod:635
7166 msgid "(Added in 1.3.15)"
7167 msgstr ""
7168
7169 #. type: =head2
7170 #: ../src/guestfs-actions.pod:637
7171 msgid "guestfs_base64_in"
7172 msgstr ""
7173
7174 #. type: verbatim
7175 #: ../src/guestfs-actions.pod:639
7176 #, no-wrap
7177 msgid ""
7178 " int\n"
7179 " guestfs_base64_in (guestfs_h *g,\n"
7180 "                    const char *base64file,\n"
7181 "                    const char *filename);\n"
7182 "\n"
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7187 msgid ""
7188 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7189 msgstr ""
7190
7191 #. type: textblock
7192 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7193 msgid "(Added in 1.3.5)"
7194 msgstr ""
7195
7196 #. type: =head2
7197 #: ../src/guestfs-actions.pod:651
7198 msgid "guestfs_base64_out"
7199 msgstr ""
7200
7201 #. type: verbatim
7202 #: ../src/guestfs-actions.pod:653
7203 #, no-wrap
7204 msgid ""
7205 " int\n"
7206 " guestfs_base64_out (guestfs_h *g,\n"
7207 "                     const char *filename,\n"
7208 "                     const char *base64file);\n"
7209 "\n"
7210 msgstr ""
7211
7212 #. type: textblock
7213 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7214 msgid ""
7215 "This command downloads the contents of C<filename>, writing it out to local "
7216 "file C<base64file> encoded as base64."
7217 msgstr ""
7218
7219 #. type: =head2
7220 #: ../src/guestfs-actions.pod:665
7221 msgid "guestfs_blockdev_flushbufs"
7222 msgstr ""
7223
7224 #. type: verbatim
7225 #: ../src/guestfs-actions.pod:667
7226 #, no-wrap
7227 msgid ""
7228 " int\n"
7229 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7230 "                             const char *device);\n"
7231 "\n"
7232 msgstr ""
7233
7234 #. type: textblock
7235 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7236 msgid ""
7237 "This tells the kernel to flush internal buffers associated with C<device>."
7238 msgstr ""
7239
7240 #. type: textblock
7241 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7242 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7243 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7244 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7245 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7246 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7247 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7248 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7249 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7250 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7251 msgid "This uses the L<blockdev(8)> command."
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7256 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7257 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7258 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7259 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7260 msgid "(Added in 0.9.3)"
7261 msgstr ""
7262
7263 #. type: =head2
7264 #: ../src/guestfs-actions.pod:680
7265 msgid "guestfs_blockdev_getbsz"
7266 msgstr ""
7267
7268 #. type: verbatim
7269 #: ../src/guestfs-actions.pod:682
7270 #, no-wrap
7271 msgid ""
7272 " int\n"
7273 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7274 "                          const char *device);\n"
7275 "\n"
7276 msgstr ""
7277
7278 #. type: textblock
7279 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7280 msgid "This returns the block size of a device."
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7285 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7286 msgid ""
7287 "(Note this is different from both I<size in blocks> and I<filesystem block "
7288 "size>)."
7289 msgstr ""
7290
7291 #. type: =head2
7292 #: ../src/guestfs-actions.pod:697
7293 msgid "guestfs_blockdev_getro"
7294 msgstr ""
7295
7296 #. type: verbatim
7297 #: ../src/guestfs-actions.pod:699
7298 #, no-wrap
7299 msgid ""
7300 " int\n"
7301 " guestfs_blockdev_getro (guestfs_h *g,\n"
7302 "                         const char *device);\n"
7303 "\n"
7304 msgstr ""
7305
7306 #. type: textblock
7307 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7308 msgid ""
7309 "Returns a boolean indicating if the block device is read-only (true if read-"
7310 "only, false if not)."
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1415
7315 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1917
7316 #: ../src/guestfs-actions.pod:1928 ../src/guestfs-actions.pod:2000
7317 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2070
7318 #: ../src/guestfs-actions.pod:2095 ../src/guestfs-actions.pod:2118
7319 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3108
7320 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3290
7321 #: ../src/guestfs-actions.pod:3304 ../src/guestfs-actions.pod:3319
7322 #: ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3349
7323 #: ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:3380
7324 #: ../src/guestfs-actions.pod:3394 ../src/guestfs-actions.pod:3407
7325 #: ../src/guestfs-actions.pod:3421 ../src/guestfs-actions.pod:3436
7326 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3464
7327 #: ../src/guestfs-actions.pod:3476 ../src/guestfs-actions.pod:5012
7328 msgid "This function returns a C truth value on success or -1 on error."
7329 msgstr ""
7330
7331 #. type: =head2
7332 #: ../src/guestfs-actions.pod:712
7333 msgid "guestfs_blockdev_getsize64"
7334 msgstr ""
7335
7336 #. type: verbatim
7337 #: ../src/guestfs-actions.pod:714
7338 #, no-wrap
7339 msgid ""
7340 " int64_t\n"
7341 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7342 "                             const char *device);\n"
7343 "\n"
7344 msgstr ""
7345
7346 #. type: textblock
7347 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
7348 msgid "This returns the size of the device in bytes."
7349 msgstr ""
7350
7351 #. type: textblock
7352 #: ../src/guestfs-actions.pod:720
7353 msgid "See also C<guestfs_blockdev_getsz>."
7354 msgstr ""
7355
7356 #. type: =head2
7357 #: ../src/guestfs-actions.pod:728
7358 msgid "guestfs_blockdev_getss"
7359 msgstr ""
7360
7361 #. type: verbatim
7362 #: ../src/guestfs-actions.pod:730
7363 #, no-wrap
7364 msgid ""
7365 " int\n"
7366 " guestfs_blockdev_getss (guestfs_h *g,\n"
7367 "                         const char *device);\n"
7368 "\n"
7369 msgstr ""
7370
7371 #. type: textblock
7372 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
7373 msgid ""
7374 "This returns the size of sectors on a block device.  Usually 512, but can be "
7375 "larger for modern devices."
7376 msgstr ""
7377
7378 #. type: textblock
7379 #: ../src/guestfs-actions.pod:737
7380 msgid ""
7381 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7382 "that)."
7383 msgstr ""
7384
7385 #. type: =head2
7386 #: ../src/guestfs-actions.pod:746
7387 msgid "guestfs_blockdev_getsz"
7388 msgstr ""
7389
7390 #. type: verbatim
7391 #: ../src/guestfs-actions.pod:748
7392 #, no-wrap
7393 msgid ""
7394 " int64_t\n"
7395 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7396 "                         const char *device);\n"
7397 "\n"
7398 msgstr ""
7399
7400 #. type: textblock
7401 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
7402 msgid ""
7403 "This returns the size of the device in units of 512-byte sectors (even if "
7404 "the sectorsize isn't 512 bytes ... weird)."
7405 msgstr ""
7406
7407 #. type: textblock
7408 #: ../src/guestfs-actions.pod:755
7409 msgid ""
7410 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7411 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7412 msgstr ""
7413
7414 #. type: =head2
7415 #: ../src/guestfs-actions.pod:765
7416 msgid "guestfs_blockdev_rereadpt"
7417 msgstr ""
7418
7419 #. type: verbatim
7420 #: ../src/guestfs-actions.pod:767
7421 #, no-wrap
7422 msgid ""
7423 " int\n"
7424 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7425 "                            const char *device);\n"
7426 "\n"
7427 msgstr ""
7428
7429 #. type: textblock
7430 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
7431 msgid "Reread the partition table on C<device>."
7432 msgstr ""
7433
7434 #. type: =head2
7435 #: ../src/guestfs-actions.pod:779
7436 msgid "guestfs_blockdev_setbsz"
7437 msgstr ""
7438
7439 #. type: verbatim
7440 #: ../src/guestfs-actions.pod:781
7441 #, no-wrap
7442 msgid ""
7443 " int\n"
7444 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7445 "                          const char *device,\n"
7446 "                          int blocksize);\n"
7447 "\n"
7448 msgstr ""
7449
7450 #. type: textblock
7451 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
7452 msgid "This sets the block size of a device."
7453 msgstr ""
7454
7455 #. type: =head2
7456 #: ../src/guestfs-actions.pod:797
7457 msgid "guestfs_blockdev_setro"
7458 msgstr ""
7459
7460 #. type: verbatim
7461 #: ../src/guestfs-actions.pod:799
7462 #, no-wrap
7463 msgid ""
7464 " int\n"
7465 " guestfs_blockdev_setro (guestfs_h *g,\n"
7466 "                         const char *device);\n"
7467 "\n"
7468 msgstr ""
7469
7470 #. type: textblock
7471 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
7472 msgid "Sets the block device named C<device> to read-only."
7473 msgstr ""
7474
7475 #. type: =head2
7476 #: ../src/guestfs-actions.pod:811
7477 msgid "guestfs_blockdev_setrw"
7478 msgstr ""
7479
7480 #. type: verbatim
7481 #: ../src/guestfs-actions.pod:813
7482 #, no-wrap
7483 msgid ""
7484 " int\n"
7485 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7486 "                         const char *device);\n"
7487 "\n"
7488 msgstr ""
7489
7490 #. type: textblock
7491 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
7492 msgid "Sets the block device named C<device> to read-write."
7493 msgstr ""
7494
7495 #. type: =head2
7496 #: ../src/guestfs-actions.pod:825
7497 msgid "guestfs_case_sensitive_path"
7498 msgstr ""
7499
7500 #. type: verbatim
7501 #: ../src/guestfs-actions.pod:827
7502 #, no-wrap
7503 msgid ""
7504 " char *\n"
7505 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7506 "                              const char *path);\n"
7507 "\n"
7508 msgstr ""
7509
7510 #. type: textblock
7511 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:549
7512 msgid ""
7513 "This can be used to resolve case insensitive paths on a filesystem which is "
7514 "case sensitive.  The use case is to resolve paths which you have read from "
7515 "Windows configuration files or the Windows Registry, to the true path."
7516 msgstr ""
7517
7518 #. type: textblock
7519 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:554
7520 msgid ""
7521 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7522 "(and probably others), which is that although the underlying filesystem is "
7523 "case-insensitive, the driver exports the filesystem to Linux as case-"
7524 "sensitive."
7525 msgstr ""
7526
7527 #. type: textblock
7528 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:559
7529 msgid ""
7530 "One consequence of this is that special directories such as C<c:\\windows> "
7531 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7532 "precise details of how they were created.  In Windows itself this would not "
7533 "be a problem."
7534 msgstr ""
7535
7536 #. type: textblock
7537 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:565
7538 msgid ""
7539 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7540 "#posixfilenames1>"
7541 msgstr ""
7542
7543 #. type: textblock
7544 #: ../src/guestfs-actions.pod:850 ../fish/guestfish-actions.pod:568
7545 msgid ""
7546 "This function resolves the true case of each element in the path and returns "
7547 "the case-sensitive path."
7548 msgstr ""
7549
7550 #. type: textblock
7551 #: ../src/guestfs-actions.pod:853
7552 msgid ""
7553 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
7554 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7555 "how the directories were originally created under Windows)."
7556 msgstr ""
7557
7558 #. type: textblock
7559 #: ../src/guestfs-actions.pod:858 ../fish/guestfish-actions.pod:576
7560 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7561 msgstr ""
7562
7563 #. type: textblock
7564 #: ../src/guestfs-actions.pod:861
7565 msgid "See also C<guestfs_realpath>."
7566 msgstr ""
7567
7568 #. type: textblock
7569 #: ../src/guestfs-actions.pod:866 ../src/guestfs-actions.pod:7031
7570 msgid "(Added in 1.0.75)"
7571 msgstr ""
7572
7573 #. type: =head2
7574 #: ../src/guestfs-actions.pod:868
7575 msgid "guestfs_cat"
7576 msgstr ""
7577
7578 #. type: verbatim
7579 #: ../src/guestfs-actions.pod:870
7580 #, no-wrap
7581 msgid ""
7582 " char *\n"
7583 " guestfs_cat (guestfs_h *g,\n"
7584 "              const char *path);\n"
7585 "\n"
7586 msgstr ""
7587
7588 #. type: textblock
7589 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:5499
7590 #: ../fish/guestfish-actions.pod:585 ../fish/guestfish-actions.pod:3691
7591 msgid "Return the contents of the file named C<path>."
7592 msgstr ""
7593
7594 #. type: textblock
7595 #: ../src/guestfs-actions.pod:876
7596 msgid ""
7597 "Note that this function cannot correctly handle binary files (specifically, "
7598 "files containing C<\\0> character which is treated as end of string).  For "
7599 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7600 "functions which have a more complex interface."
7601 msgstr ""
7602
7603 #. type: textblock
7604 #: ../src/guestfs-actions.pod:884 ../src/guestfs-actions.pod:1063
7605 #: ../src/guestfs-actions.pod:1083 ../src/guestfs-actions.pod:1379
7606 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1501
7607 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1766
7608 #: ../src/guestfs-actions.pod:2224 ../src/guestfs-actions.pod:2243
7609 #: ../src/guestfs-actions.pod:2286 ../src/guestfs-actions.pod:2310
7610 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:2356
7611 #: ../src/guestfs-actions.pod:5281 ../src/guestfs-actions.pod:5307
7612 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5464
7613 #: ../src/guestfs-actions.pod:5488 ../src/guestfs-actions.pod:6416
7614 #: ../src/guestfs-actions.pod:6471 ../src/guestfs-actions.pod:6617
7615 #: ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:7310
7616 #: ../src/guestfs-actions.pod:7336 ../src/guestfs-actions.pod:7362
7617 #: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7467
7618 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7532
7619 #: ../src/guestfs-actions.pod:7551 ../fish/guestfish-actions.pod:592
7620 #: ../fish/guestfish-actions.pod:727 ../fish/guestfish-actions.pod:739
7621 #: ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:925
7622 #: ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1002
7623 #: ../fish/guestfish-actions.pod:1194 ../fish/guestfish-actions.pod:1495
7624 #: ../fish/guestfish-actions.pod:1505 ../fish/guestfish-actions.pod:1533
7625 #: ../fish/guestfish-actions.pod:1548 ../fish/guestfish-actions.pod:1558
7626 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:3561
7627 #: ../fish/guestfish-actions.pod:3576 ../fish/guestfish-actions.pod:3652
7628 #: ../fish/guestfish-actions.pod:3669 ../fish/guestfish-actions.pod:3684
7629 #: ../fish/guestfish-actions.pod:4338 ../fish/guestfish-actions.pod:4384
7630 #: ../fish/guestfish-actions.pod:4469 ../fish/guestfish-actions.pod:4484
7631 #: ../fish/guestfish-actions.pod:4894 ../fish/guestfish-actions.pod:4912
7632 #: ../fish/guestfish-actions.pod:4929 ../fish/guestfish-actions.pod:4939
7633 #: ../fish/guestfish-actions.pod:4988 ../fish/guestfish-actions.pod:4998
7634 #: ../fish/guestfish-actions.pod:5027 ../fish/guestfish-actions.pod:5037
7635 msgid ""
7636 "Because of the message protocol, there is a transfer limit of somewhere "
7637 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7638 msgstr ""
7639
7640 #. type: textblock
7641 #: ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:3590
7642 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3669
7643 #: ../src/guestfs-actions.pod:3757 ../src/guestfs-actions.pod:4162
7644 #: ../src/guestfs-actions.pod:4176 ../src/guestfs-actions.pod:5387
7645 #: ../src/guestfs-actions.pod:5401 ../src/guestfs-actions.pod:7190
7646 #: ../src/guestfs-actions.pod:7204
7647 msgid "(Added in 0.4)"
7648 msgstr ""
7649
7650 #. type: =head2
7651 #: ../src/guestfs-actions.pod:889
7652 msgid "guestfs_checksum"
7653 msgstr ""
7654
7655 #. type: verbatim
7656 #: ../src/guestfs-actions.pod:891
7657 #, no-wrap
7658 msgid ""
7659 " char *\n"
7660 " guestfs_checksum (guestfs_h *g,\n"
7661 "                   const char *csumtype,\n"
7662 "                   const char *path);\n"
7663 "\n"
7664 msgstr ""
7665
7666 #. type: textblock
7667 #: ../src/guestfs-actions.pod:896 ../fish/guestfish-actions.pod:599
7668 msgid ""
7669 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7670 msgstr ""
7671
7672 #. type: textblock
7673 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:602
7674 msgid ""
7675 "The type of checksum to compute is given by the C<csumtype> parameter which "
7676 "must have one of the following values:"
7677 msgstr ""
7678
7679 #. type: =item
7680 #: ../src/guestfs-actions.pod:904 ../fish/guestfish-actions.pod:607
7681 msgid "C<crc>"
7682 msgstr "C<crc>"
7683
7684 #. type: textblock
7685 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:609
7686 msgid ""
7687 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7688 "C<cksum> command."
7689 msgstr ""
7690
7691 #. type: =item
7692 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:612
7693 msgid "C<md5>"
7694 msgstr "C<md5>"
7695
7696 #. type: textblock
7697 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:614
7698 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7699 msgstr ""
7700
7701 #. type: =item
7702 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:616
7703 msgid "C<sha1>"
7704 msgstr "C<sha1>"
7705
7706 #. type: textblock
7707 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:618
7708 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7709 msgstr ""
7710
7711 #. type: =item
7712 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:620
7713 msgid "C<sha224>"
7714 msgstr "C<sha224>"
7715
7716 #. type: textblock
7717 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:622
7718 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7719 msgstr ""
7720
7721 #. type: =item
7722 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:624
7723 msgid "C<sha256>"
7724 msgstr "C<sha256>"
7725
7726 #. type: textblock
7727 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:626
7728 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7729 msgstr ""
7730
7731 #. type: =item
7732 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:628
7733 msgid "C<sha384>"
7734 msgstr "C<sha384>"
7735
7736 #. type: textblock
7737 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:630
7738 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7739 msgstr ""
7740
7741 #. type: =item
7742 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:632
7743 msgid "C<sha512>"
7744 msgstr "C<sha512>"
7745
7746 #. type: textblock
7747 #: ../src/guestfs-actions.pod:931 ../fish/guestfish-actions.pod:634
7748 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7749 msgstr ""
7750
7751 #. type: textblock
7752 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:638
7753 msgid "The checksum is returned as a printable string."
7754 msgstr ""
7755
7756 #. type: textblock
7757 #: ../src/guestfs-actions.pod:937
7758 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7759 msgstr ""
7760
7761 #. type: textblock
7762 #: ../src/guestfs-actions.pod:939
7763 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7764 msgstr ""
7765
7766 #. type: textblock
7767 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:1252
7768 #: ../src/guestfs-actions.pod:2086 ../src/guestfs-actions.pod:3306
7769 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3396
7770 #: ../src/guestfs-actions.pod:3423 ../src/guestfs-actions.pod:6887
7771 msgid "(Added in 1.0.2)"
7772 msgstr ""
7773
7774 #. type: =head2
7775 #: ../src/guestfs-actions.pod:946
7776 msgid "guestfs_checksum_device"
7777 msgstr ""
7778
7779 #. type: verbatim
7780 #: ../src/guestfs-actions.pod:948
7781 #, no-wrap
7782 msgid ""
7783 " char *\n"
7784 " guestfs_checksum_device (guestfs_h *g,\n"
7785 "                          const char *csumtype,\n"
7786 "                          const char *device);\n"
7787 "\n"
7788 msgstr ""
7789
7790 #. type: textblock
7791 #: ../src/guestfs-actions.pod:953
7792 msgid ""
7793 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7794 "device named C<device>.  For the types of checksums supported see the "
7795 "C<guestfs_checksum> command."
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../src/guestfs-actions.pod:960 ../src/guestfs-actions.pod:4918
7800 #: ../src/guestfs-actions.pod:4977 ../src/guestfs-actions.pod:5014
7801 #: ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:5208
7802 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6810
7803 #: ../src/guestfs-actions.pod:7216
7804 msgid "(Added in 1.3.2)"
7805 msgstr ""
7806
7807 #. type: =head2
7808 #: ../src/guestfs-actions.pod:962
7809 msgid "guestfs_checksums_out"
7810 msgstr ""
7811
7812 #. type: verbatim
7813 #: ../src/guestfs-actions.pod:964
7814 #, no-wrap
7815 msgid ""
7816 " int\n"
7817 " guestfs_checksums_out (guestfs_h *g,\n"
7818 "                        const char *csumtype,\n"
7819 "                        const char *directory,\n"
7820 "                        const char *sumsfile);\n"
7821 "\n"
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:656
7826 msgid ""
7827 "This command computes the checksums of all regular files in C<directory> and "
7828 "then emits a list of those checksums to the local output file C<sumsfile>."
7829 msgstr ""
7830
7831 #. type: textblock
7832 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:660
7833 msgid ""
7834 "This can be used for verifying the integrity of a virtual machine.  However "
7835 "to be properly secure you should pay attention to the output of the checksum "
7836 "command (it uses the ones from GNU coreutils).  In particular when the "
7837 "filename is not printable, coreutils uses a special backslash syntax.  For "
7838 "more information, see the GNU coreutils info file."
7839 msgstr ""
7840
7841 #. type: textblock
7842 #: ../src/guestfs-actions.pod:984
7843 msgid "(Added in 1.3.7)"
7844 msgstr ""
7845
7846 #. type: =head2
7847 #: ../src/guestfs-actions.pod:986
7848 msgid "guestfs_chmod"
7849 msgstr ""
7850
7851 #. type: verbatim
7852 #: ../src/guestfs-actions.pod:988
7853 #, no-wrap
7854 msgid ""
7855 " int\n"
7856 " guestfs_chmod (guestfs_h *g,\n"
7857 "                int mode,\n"
7858 "                const char *path);\n"
7859 "\n"
7860 msgstr ""
7861
7862 #. type: textblock
7863 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:674
7864 msgid ""
7865 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7866 "supported."
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../src/guestfs-actions.pod:996 ../fish/guestfish-actions.pod:677
7871 msgid ""
7872 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7873 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7874 "C<700>."
7875 msgstr ""
7876
7877 #. type: textblock
7878 #: ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:4413
7879 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:4629
7880 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:681
7881 #: ../fish/guestfish-actions.pod:3000 ../fish/guestfish-actions.pod:3129
7882 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3149
7883 msgid "The mode actually set is affected by the umask."
7884 msgstr ""
7885
7886 #. type: =head2
7887 #: ../src/guestfs-actions.pod:1006
7888 msgid "guestfs_chown"
7889 msgstr ""
7890
7891 #. type: verbatim
7892 #: ../src/guestfs-actions.pod:1008
7893 #, no-wrap
7894 msgid ""
7895 " int\n"
7896 " guestfs_chown (guestfs_h *g,\n"
7897 "                int owner,\n"
7898 "                int group,\n"
7899 "                const char *path);\n"
7900 "\n"
7901 msgstr ""
7902
7903 #. type: textblock
7904 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:687
7905 msgid "Change the file owner to C<owner> and group to C<group>."
7906 msgstr ""
7907
7908 #. type: textblock
7909 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:3521
7910 #: ../fish/guestfish-actions.pod:689 ../fish/guestfish-actions.pod:2458
7911 msgid ""
7912 "Only numeric uid and gid are supported.  If you want to use names, you will "
7913 "need to locate and parse the password file yourself (Augeas support makes "
7914 "this relatively easy)."
7915 msgstr ""
7916
7917 #. type: =head2
7918 #: ../src/guestfs-actions.pod:1024
7919 msgid "guestfs_command"
7920 msgstr ""
7921
7922 #. type: verbatim
7923 #: ../src/guestfs-actions.pod:1026
7924 #, no-wrap
7925 msgid ""
7926 " char *\n"
7927 " guestfs_command (guestfs_h *g,\n"
7928 "                  char *const *arguments);\n"
7929 "\n"
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:697
7934 msgid ""
7935 "This call runs a command from the guest filesystem.  The filesystem must be "
7936 "mounted, and must contain a compatible operating system (ie. something "
7937 "Linux, with the same or compatible processor architecture)."
7938 msgstr ""
7939
7940 #. type: textblock
7941 #: ../src/guestfs-actions.pod:1035
7942 msgid ""
7943 "The single parameter is an argv-style list of arguments.  The first element "
7944 "is the name of the program to run.  Subsequent elements are parameters.  The "
7945 "list must be non-empty (ie. must contain a program name).  Note that the "
7946 "command runs directly, and is I<not> invoked via the shell (see "
7947 "C<guestfs_sh>)."
7948 msgstr ""
7949
7950 #. type: textblock
7951 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:709
7952 msgid "The return value is anything printed to I<stdout> by the command."
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../src/guestfs-actions.pod:1045 ../fish/guestfish-actions.pod:712
7957 msgid ""
7958 "If the command returns a non-zero exit status, then this function returns an "
7959 "error message.  The error message string is the content of I<stderr> from "
7960 "the command."
7961 msgstr ""
7962
7963 #. type: textblock
7964 #: ../src/guestfs-actions.pod:1049 ../fish/guestfish-actions.pod:716
7965 msgid ""
7966 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7967 "bin>.  If you require a program from another location, you should provide "
7968 "the full path in the first parameter."
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../src/guestfs-actions.pod:1054 ../fish/guestfish-actions.pod:721
7973 msgid ""
7974 "Shared libraries and data files required by the program must be available on "
7975 "filesystems which are mounted in the correct places.  It is the caller's "
7976 "responsibility to ensure all filesystems that are needed are mounted at the "
7977 "right locations."
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1086
7982 #: ../src/guestfs-actions.pod:1551
7983 msgid "(Added in 0.9.1)"
7984 msgstr ""
7985
7986 #. type: =head2
7987 #: ../src/guestfs-actions.pod:1068
7988 msgid "guestfs_command_lines"
7989 msgstr ""
7990
7991 #. type: verbatim
7992 #: ../src/guestfs-actions.pod:1070
7993 #, no-wrap
7994 msgid ""
7995 " char **\n"
7996 " guestfs_command_lines (guestfs_h *g,\n"
7997 "                        char *const *arguments);\n"
7998 "\n"
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../src/guestfs-actions.pod:1074
8003 msgid ""
8004 "This is the same as C<guestfs_command>, but splits the result into a list of "
8005 "lines."
8006 msgstr ""
8007
8008 #. type: textblock
8009 #: ../src/guestfs-actions.pod:1077
8010 msgid "See also: C<guestfs_sh_lines>"
8011 msgstr ""
8012
8013 #. type: =head2
8014 #: ../src/guestfs-actions.pod:1088
8015 msgid "guestfs_config"
8016 msgstr ""
8017
8018 #. type: verbatim
8019 #: ../src/guestfs-actions.pod:1090
8020 #, no-wrap
8021 msgid ""
8022 " int\n"
8023 " guestfs_config (guestfs_h *g,\n"
8024 "                 const char *qemuparam,\n"
8025 "                 const char *qemuvalue);\n"
8026 "\n"
8027 msgstr ""
8028
8029 #. type: textblock
8030 #: ../src/guestfs-actions.pod:1095 ../fish/guestfish-actions.pod:746
8031 msgid ""
8032 "This can be used to add arbitrary qemu command line parameters of the form "
8033 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8034 "setting some parameters which would interfere with parameters that we use."
8035 msgstr ""
8036
8037 #. type: textblock
8038 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:751
8039 msgid "The first character of C<param> string must be a C<-> (dash)."
8040 msgstr ""
8041
8042 #. type: textblock
8043 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:753
8044 msgid "C<value> can be NULL."
8045 msgstr ""
8046
8047 #. type: =head2
8048 #: ../src/guestfs-actions.pod:1108
8049 msgid "guestfs_copy_size"
8050 msgstr ""
8051
8052 #. type: verbatim
8053 #: ../src/guestfs-actions.pod:1110
8054 #, no-wrap
8055 msgid ""
8056 " int\n"
8057 " guestfs_copy_size (guestfs_h *g,\n"
8058 "                    const char *src,\n"
8059 "                    const char *dest,\n"
8060 "                    int64_t size);\n"
8061 "\n"
8062 msgstr ""
8063
8064 #. type: textblock
8065 #: ../src/guestfs-actions.pod:1116 ../fish/guestfish-actions.pod:759
8066 msgid ""
8067 "This command copies exactly C<size> bytes from one source device or file "
8068 "C<src> to another destination device or file C<dest>."
8069 msgstr ""
8070
8071 #. type: textblock
8072 #: ../src/guestfs-actions.pod:1119 ../fish/guestfish-actions.pod:762
8073 msgid ""
8074 "Note this will fail if the source is too short or if the destination is not "
8075 "large enough."
8076 msgstr ""
8077
8078 #. type: textblock
8079 #: ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1247
8080 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1323
8081 #: ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1722
8082 #: ../src/guestfs-actions.pod:3502 ../src/guestfs-actions.pod:6882
8083 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7403
8084 #: ../src/guestfs-actions.pod:7422
8085 msgid ""
8086 "This long-running command can generate progress notification messages so "
8087 "that the caller can display a progress bar or indicator.  To receive these "
8088 "messages, the caller must register a progress event callback.  See L<guestfs"
8089 "(3)/GUESTFS_EVENT_PROGRESS>."
8090 msgstr ""
8091
8092 #. type: textblock
8093 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:4189
8094 #: ../src/guestfs-actions.pod:5414 ../src/guestfs-actions.pod:7123
8095 #: ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7229
8096 msgid "(Added in 1.0.87)"
8097 msgstr ""
8098
8099 #. type: =head2
8100 #: ../src/guestfs-actions.pod:1131
8101 msgid "guestfs_cp"
8102 msgstr ""
8103
8104 #. type: verbatim
8105 #: ../src/guestfs-actions.pod:1133
8106 #, no-wrap
8107 msgid ""
8108 " int\n"
8109 " guestfs_cp (guestfs_h *g,\n"
8110 "             const char *src,\n"
8111 "             const char *dest);\n"
8112 "\n"
8113 msgstr ""
8114
8115 #. type: textblock
8116 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:769
8117 msgid ""
8118 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8119 "destination filename or destination directory."
8120 msgstr ""
8121
8122 #. type: textblock
8123 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1157
8124 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1303
8125 #: ../src/guestfs-actions.pod:1417 ../src/guestfs-actions.pod:4881
8126 #: ../src/guestfs-actions.pod:5258
8127 msgid "(Added in 1.0.18)"
8128 msgstr ""
8129
8130 #. type: =head2
8131 #: ../src/guestfs-actions.pod:1145
8132 msgid "guestfs_cp_a"
8133 msgstr ""
8134
8135 #. type: verbatim
8136 #: ../src/guestfs-actions.pod:1147
8137 #, no-wrap
8138 msgid ""
8139 " int\n"
8140 " guestfs_cp_a (guestfs_h *g,\n"
8141 "               const char *src,\n"
8142 "               const char *dest);\n"
8143 "\n"
8144 msgstr ""
8145
8146 #. type: textblock
8147 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:776
8148 msgid ""
8149 "This copies a file or directory from C<src> to C<dest> recursively using the "
8150 "C<cp -a> command."
8151 msgstr ""
8152
8153 #. type: =head2
8154 #: ../src/guestfs-actions.pod:1159
8155 msgid "guestfs_dd"
8156 msgstr ""
8157
8158 #. type: verbatim
8159 #: ../src/guestfs-actions.pod:1161
8160 #, no-wrap
8161 msgid ""
8162 " int\n"
8163 " guestfs_dd (guestfs_h *g,\n"
8164 "             const char *src,\n"
8165 "             const char *dest);\n"
8166 "\n"
8167 msgstr ""
8168
8169 #. type: textblock
8170 #: ../src/guestfs-actions.pod:1166 ../fish/guestfish-actions.pod:783
8171 msgid ""
8172 "This command copies from one source device or file C<src> to another "
8173 "destination device or file C<dest>.  Normally you would use this to copy to "
8174 "or from a device or partition, for example to duplicate a filesystem."
8175 msgstr ""
8176
8177 #. type: textblock
8178 #: ../src/guestfs-actions.pod:1171
8179 msgid ""
8180 "If the destination is a device, it must be as large or larger than the "
8181 "source file or device, otherwise the copy will fail.  This command cannot do "
8182 "partial copies (see C<guestfs_copy_size>)."
8183 msgstr ""
8184
8185 #. type: =head2
8186 #: ../src/guestfs-actions.pod:1179
8187 msgid "guestfs_df"
8188 msgstr ""
8189
8190 #. type: verbatim
8191 #: ../src/guestfs-actions.pod:1181
8192 #, no-wrap
8193 msgid ""
8194 " char *\n"
8195 " guestfs_df (guestfs_h *g);\n"
8196 "\n"
8197 msgstr ""
8198
8199 #. type: textblock
8200 #: ../src/guestfs-actions.pod:1184 ../fish/guestfish-actions.pod:796
8201 msgid "This command runs the C<df> command to report disk space used."
8202 msgstr ""
8203
8204 #. type: textblock
8205 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1203
8206 msgid ""
8207 "This command is mostly useful for interactive sessions.  It is I<not> "
8208 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8209 "from programs."
8210 msgstr ""
8211
8212 #. type: textblock
8213 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1210
8214 #: ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:2289
8215 #: ../src/guestfs-actions.pod:2313 ../src/guestfs-actions.pod:2381
8216 #: ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:4781
8217 #: ../src/guestfs-actions.pod:6620 ../src/guestfs-actions.pod:6644
8218 #: ../src/guestfs-actions.pod:7269 ../src/guestfs-actions.pod:7282
8219 #: ../src/guestfs-actions.pod:7295
8220 msgid "(Added in 1.0.54)"
8221 msgstr ""
8222
8223 #. type: =head2
8224 #: ../src/guestfs-actions.pod:1195
8225 msgid "guestfs_df_h"
8226 msgstr ""
8227
8228 #. type: verbatim
8229 #: ../src/guestfs-actions.pod:1197
8230 #, no-wrap
8231 msgid ""
8232 " char *\n"
8233 " guestfs_df_h (guestfs_h *g);\n"
8234 "\n"
8235 msgstr ""
8236
8237 #. type: textblock
8238 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:806
8239 msgid ""
8240 "This command runs the C<df -h> command to report disk space used in human-"
8241 "readable format."
8242 msgstr ""
8243
8244 #. type: =head2
8245 #: ../src/guestfs-actions.pod:1212
8246 msgid "guestfs_dmesg"
8247 msgstr ""
8248
8249 #. type: verbatim
8250 #: ../src/guestfs-actions.pod:1214
8251 #, no-wrap
8252 msgid ""
8253 " char *\n"
8254 " guestfs_dmesg (guestfs_h *g);\n"
8255 "\n"
8256 msgstr ""
8257
8258 #. type: textblock
8259 #: ../src/guestfs-actions.pod:1217 ../fish/guestfish-actions.pod:817
8260 msgid ""
8261 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8262 "This is sometimes useful for extended debugging of problems."
8263 msgstr ""
8264
8265 #. type: textblock
8266 #: ../src/guestfs-actions.pod:1221
8267 msgid ""
8268 "Another way to get the same information is to enable verbose messages with "
8269 "C<guestfs_set_verbose> or by setting the environment variable "
8270 "C<LIBGUESTFS_DEBUG=1> before running the program."
8271 msgstr ""
8272
8273 #. type: =head2
8274 #: ../src/guestfs-actions.pod:1231
8275 msgid "guestfs_download"
8276 msgstr ""
8277
8278 #. type: verbatim
8279 #: ../src/guestfs-actions.pod:1233
8280 #, no-wrap
8281 msgid ""
8282 " int\n"
8283 " guestfs_download (guestfs_h *g,\n"
8284 "                   const char *remotefilename,\n"
8285 "                   const char *filename);\n"
8286 "\n"
8287 msgstr ""
8288
8289 #. type: textblock
8290 #: ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:1263
8291 #: ../fish/guestfish-actions.pod:830 ../fish/guestfish-actions.pod:843
8292 msgid ""
8293 "Download file C<remotefilename> and save it as C<filename> on the local "
8294 "machine."
8295 msgstr ""
8296
8297 #. type: textblock
8298 #: ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:6876
8299 #: ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:4642
8300 msgid "C<filename> can also be a named pipe."
8301 msgstr ""
8302
8303 #. type: textblock
8304 #: ../src/guestfs-actions.pod:1243
8305 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8306 msgstr ""
8307
8308 #. type: =head2
8309 #: ../src/guestfs-actions.pod:1254
8310 msgid "guestfs_download_offset"
8311 msgstr ""
8312
8313 #. type: verbatim
8314 #: ../src/guestfs-actions.pod:1256
8315 #, no-wrap
8316 msgid ""
8317 " int\n"
8318 " guestfs_download_offset (guestfs_h *g,\n"
8319 "                          const char *remotefilename,\n"
8320 "                          const char *filename,\n"
8321 "                          int64_t offset,\n"
8322 "                          int64_t size);\n"
8323 "\n"
8324 msgstr ""
8325
8326 #. type: textblock
8327 #: ../src/guestfs-actions.pod:1266 ../fish/guestfish-actions.pod:846
8328 msgid ""
8329 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8330 "region must be within the file or device)."
8331 msgstr ""
8332
8333 #. type: textblock
8334 #: ../src/guestfs-actions.pod:1269
8335 msgid ""
8336 "Note that there is no limit on the amount of data that can be downloaded "
8337 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8338 "full amount unless an error occurs."
8339 msgstr ""
8340
8341 #. type: textblock
8342 #: ../src/guestfs-actions.pod:1274
8343 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8344 msgstr ""
8345
8346 #. type: textblock
8347 #: ../src/guestfs-actions.pod:1283 ../src/guestfs-actions.pod:6921
8348 msgid "(Added in 1.5.17)"
8349 msgstr ""
8350
8351 #. type: =head2
8352 #: ../src/guestfs-actions.pod:1285
8353 msgid "guestfs_drop_caches"
8354 msgstr ""
8355
8356 #. type: verbatim
8357 #: ../src/guestfs-actions.pod:1287
8358 #, no-wrap
8359 msgid ""
8360 " int\n"
8361 " guestfs_drop_caches (guestfs_h *g,\n"
8362 "                      int whattodrop);\n"
8363 "\n"
8364 msgstr ""
8365
8366 #. type: textblock
8367 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:862
8368 msgid ""
8369 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8370 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8371 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8372 msgstr ""
8373
8374 #. type: textblock
8375 #: ../src/guestfs-actions.pod:1296 ../fish/guestfish-actions.pod:867
8376 msgid "Setting C<whattodrop> to 3 should drop everything."
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../src/guestfs-actions.pod:1298 ../fish/guestfish-actions.pod:869
8381 msgid ""
8382 "This automatically calls L<sync(2)> before the operation, so that the "
8383 "maximum guest memory is freed."
8384 msgstr ""
8385
8386 #. type: =head2
8387 #: ../src/guestfs-actions.pod:1305
8388 msgid "guestfs_du"
8389 msgstr ""
8390
8391 #. type: verbatim
8392 #: ../src/guestfs-actions.pod:1307
8393 #, no-wrap
8394 msgid ""
8395 " int64_t\n"
8396 " guestfs_du (guestfs_h *g,\n"
8397 "             const char *path);\n"
8398 "\n"
8399 msgstr ""
8400
8401 #. type: textblock
8402 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:876
8403 msgid ""
8404 "This command runs the C<du -s> command to estimate file space usage for "
8405 "C<path>."
8406 msgstr ""
8407
8408 #. type: textblock
8409 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:879
8410 msgid ""
8411 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8412 "estimate includes the contents of the directory and all subdirectories "
8413 "(recursively)."
8414 msgstr ""
8415
8416 #. type: textblock
8417 #: ../src/guestfs-actions.pod:1318 ../fish/guestfish-actions.pod:883
8418 msgid ""
8419 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8420 msgstr ""
8421
8422 #. type: =head2
8423 #: ../src/guestfs-actions.pod:1330
8424 msgid "guestfs_e2fsck_f"
8425 msgstr ""
8426
8427 #. type: verbatim
8428 #: ../src/guestfs-actions.pod:1332
8429 #, no-wrap
8430 msgid ""
8431 " int\n"
8432 " guestfs_e2fsck_f (guestfs_h *g,\n"
8433 "                   const char *device);\n"
8434 "\n"
8435 msgstr ""
8436
8437 #. type: textblock
8438 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:890
8439 msgid ""
8440 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8441 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8442 "clean (I<-f>)."
8443 msgstr ""
8444
8445 #. type: textblock
8446 #: ../src/guestfs-actions.pod:1340
8447 msgid ""
8448 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8449 "Normally you should use C<guestfs_fsck>."
8450 msgstr ""
8451
8452 #. type: textblock
8453 #: ../src/guestfs-actions.pod:1345
8454 msgid "(Added in 1.0.29)"
8455 msgstr ""
8456
8457 #. type: =head2
8458 #: ../src/guestfs-actions.pod:1347
8459 msgid "guestfs_echo_daemon"
8460 msgstr ""
8461
8462 #. type: verbatim
8463 #: ../src/guestfs-actions.pod:1349
8464 #, no-wrap
8465 msgid ""
8466 " char *\n"
8467 " guestfs_echo_daemon (guestfs_h *g,\n"
8468 "                      char *const *words);\n"
8469 "\n"
8470 msgstr ""
8471
8472 #. type: textblock
8473 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:901
8474 msgid ""
8475 "This command concatenates the list of C<words> passed with single spaces "
8476 "between them and returns the resulting string."
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../src/guestfs-actions.pod:1356 ../fish/guestfish-actions.pod:904
8481 msgid "You can use this command to test the connection through to the daemon."
8482 msgstr ""
8483
8484 #. type: textblock
8485 #: ../src/guestfs-actions.pod:1358
8486 msgid "See also C<guestfs_ping_daemon>."
8487 msgstr ""
8488
8489 #. type: textblock
8490 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:2097
8491 #: ../src/guestfs-actions.pod:6092
8492 msgid "(Added in 1.0.69)"
8493 msgstr ""
8494
8495 #. type: =head2
8496 #: ../src/guestfs-actions.pod:1365
8497 msgid "guestfs_egrep"
8498 msgstr ""
8499
8500 #. type: verbatim
8501 #: ../src/guestfs-actions.pod:1367
8502 #, no-wrap
8503 msgid ""
8504 " char **\n"
8505 " guestfs_egrep (guestfs_h *g,\n"
8506 "                const char *regex,\n"
8507 "                const char *path);\n"
8508 "\n"
8509 msgstr ""
8510
8511 #. type: textblock
8512 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
8513 msgid ""
8514 "This calls the external C<egrep> program and returns the matching lines."
8515 msgstr ""
8516
8517 #. type: textblock
8518 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401
8519 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1504
8520 #: ../src/guestfs-actions.pod:1523 ../src/guestfs-actions.pod:2227
8521 #: ../src/guestfs-actions.pod:2246 ../src/guestfs-actions.pod:2402
8522 #: ../src/guestfs-actions.pod:2415 ../src/guestfs-actions.pod:2430
8523 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2498
8524 #: ../src/guestfs-actions.pod:2511 ../src/guestfs-actions.pod:3682
8525 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3709
8526 #: ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:4709
8527 #: ../src/guestfs-actions.pod:5592 ../src/guestfs-actions.pod:5641
8528 #: ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6500
8529 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6526
8530 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6561
8531 #: ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:6587
8532 #: ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:7384
8533 #: ../src/guestfs-actions.pod:7470 ../src/guestfs-actions.pod:7489
8534 #: ../src/guestfs-actions.pod:7535 ../src/guestfs-actions.pod:7554
8535 msgid "(Added in 1.0.66)"
8536 msgstr ""
8537
8538 #. type: =head2
8539 #: ../src/guestfs-actions.pod:1384
8540 msgid "guestfs_egrepi"
8541 msgstr ""
8542
8543 #. type: verbatim
8544 #: ../src/guestfs-actions.pod:1386
8545 #, no-wrap
8546 msgid ""
8547 " char **\n"
8548 " guestfs_egrepi (guestfs_h *g,\n"
8549 "                 const char *regex,\n"
8550 "                 const char *path);\n"
8551 "\n"
8552 msgstr ""
8553
8554 #. type: textblock
8555 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
8556 msgid ""
8557 "This calls the external C<egrep -i> program and returns the matching lines."
8558 msgstr ""
8559
8560 #. type: =head2
8561 #: ../src/guestfs-actions.pod:1403
8562 msgid "guestfs_equal"
8563 msgstr ""
8564
8565 #. type: verbatim
8566 #: ../src/guestfs-actions.pod:1405
8567 #, no-wrap
8568 msgid ""
8569 " int\n"
8570 " guestfs_equal (guestfs_h *g,\n"
8571 "                const char *file1,\n"
8572 "                const char *file2);\n"
8573 "\n"
8574 msgstr ""
8575
8576 #. type: textblock
8577 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:932
8578 msgid ""
8579 "This compares the two files C<file1> and C<file2> and returns true if their "
8580 "content is exactly equal, or false otherwise."
8581 msgstr ""
8582
8583 #. type: textblock
8584 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:935
8585 msgid "The external L<cmp(1)> program is used for the comparison."
8586 msgstr ""
8587
8588 #. type: =head2
8589 #: ../src/guestfs-actions.pod:1419
8590 msgid "guestfs_exists"
8591 msgstr ""
8592
8593 #. type: verbatim
8594 #: ../src/guestfs-actions.pod:1421
8595 #, no-wrap
8596 msgid ""
8597 " int\n"
8598 " guestfs_exists (guestfs_h *g,\n"
8599 "                 const char *path);\n"
8600 "\n"
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:941
8605 msgid ""
8606 "This returns C<true> if and only if there is a file, directory (or anything) "
8607 "with the given C<path> name."
8608 msgstr ""
8609
8610 #. type: textblock
8611 #: ../src/guestfs-actions.pod:1428
8612 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8613 msgstr ""
8614
8615 #. type: =head2
8616 #: ../src/guestfs-actions.pod:1434
8617 msgid "guestfs_fallocate"
8618 msgstr ""
8619
8620 #. type: verbatim
8621 #: ../src/guestfs-actions.pod:1436
8622 #, no-wrap
8623 msgid ""
8624 " int\n"
8625 " guestfs_fallocate (guestfs_h *g,\n"
8626 "                    const char *path,\n"
8627 "                    int len);\n"
8628 "\n"
8629 msgstr ""
8630
8631 #. type: textblock
8632 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1467
8633 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:969
8634 msgid ""
8635 "This command preallocates a file (containing zero bytes) named C<path> of "
8636 "size C<len> bytes.  If the file exists already, it is overwritten."
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:954
8641 msgid ""
8642 "Do not confuse this with the guestfish-specific C<alloc> command which "
8643 "allocates a file in the host and attaches it as a device."
8644 msgstr ""
8645
8646 #. type: textblock
8647 #: ../src/guestfs-actions.pod:1451 ../fish/guestfish-actions.pod:958
8648 msgid ""
8649 "This function is deprecated.  In new code, use the C<fallocate64> call "
8650 "instead."
8651 msgstr ""
8652
8653 #. type: =head2
8654 #: ../src/guestfs-actions.pod:1460
8655 msgid "guestfs_fallocate64"
8656 msgstr ""
8657
8658 #. type: verbatim
8659 #: ../src/guestfs-actions.pod:1462
8660 #, no-wrap
8661 msgid ""
8662 " int\n"
8663 " guestfs_fallocate64 (guestfs_h *g,\n"
8664 "                      const char *path,\n"
8665 "                      int64_t len);\n"
8666 "\n"
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../src/guestfs-actions.pod:1471
8671 msgid ""
8672 "Note that this call allocates disk blocks for the file.  To create a sparse "
8673 "file use C<guestfs_truncate_size> instead."
8674 msgstr ""
8675
8676 #. type: textblock
8677 #: ../src/guestfs-actions.pod:1474
8678 msgid ""
8679 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8680 "oversight it only allowed 30 bit lengths to be specified, effectively "
8681 "limiting the maximum size of files created through that call to 1GB."
8682 msgstr ""
8683
8684 #. type: textblock
8685 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:981
8686 msgid ""
8687 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8688 "commands which create a file in the host and attach it as a device."
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../src/guestfs-actions.pod:1485
8693 msgid "(Added in 1.3.17)"
8694 msgstr ""
8695
8696 #. type: =head2
8697 #: ../src/guestfs-actions.pod:1487
8698 msgid "guestfs_fgrep"
8699 msgstr ""
8700
8701 #. type: verbatim
8702 #: ../src/guestfs-actions.pod:1489
8703 #, no-wrap
8704 msgid ""
8705 " char **\n"
8706 " guestfs_fgrep (guestfs_h *g,\n"
8707 "                const char *pattern,\n"
8708 "                const char *path);\n"
8709 "\n"
8710 msgstr ""
8711
8712 #. type: textblock
8713 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
8714 msgid ""
8715 "This calls the external C<fgrep> program and returns the matching lines."
8716 msgstr ""
8717
8718 #. type: =head2
8719 #: ../src/guestfs-actions.pod:1506
8720 msgid "guestfs_fgrepi"
8721 msgstr ""
8722
8723 #. type: verbatim
8724 #: ../src/guestfs-actions.pod:1508
8725 #, no-wrap
8726 msgid ""
8727 " char **\n"
8728 " guestfs_fgrepi (guestfs_h *g,\n"
8729 "                 const char *pattern,\n"
8730 "                 const char *path);\n"
8731 "\n"
8732 msgstr ""
8733
8734 #. type: textblock
8735 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:999
8736 msgid ""
8737 "This calls the external C<fgrep -i> program and returns the matching lines."
8738 msgstr ""
8739
8740 #. type: =head2
8741 #: ../src/guestfs-actions.pod:1525
8742 msgid "guestfs_file"
8743 msgstr ""
8744
8745 #. type: verbatim
8746 #: ../src/guestfs-actions.pod:1527
8747 #, no-wrap
8748 msgid ""
8749 " char *\n"
8750 " guestfs_file (guestfs_h *g,\n"
8751 "               const char *path);\n"
8752 "\n"
8753 msgstr ""
8754
8755 #. type: textblock
8756 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1009
8757 msgid ""
8758 "This call uses the standard L<file(1)> command to determine the type or "
8759 "contents of the file."
8760 msgstr ""
8761
8762 #. type: textblock
8763 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1012
8764 msgid ""
8765 "This call will also transparently look inside various types of compressed "
8766 "file."
8767 msgstr ""
8768
8769 #. type: textblock
8770 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1015
8771 msgid ""
8772 "The exact command which runs is C<file -zb path>.  Note in particular that "
8773 "the filename is not prepended to the output (the I<-b> option)."
8774 msgstr ""
8775
8776 #. type: textblock
8777 #: ../src/guestfs-actions.pod:1541 ../fish/guestfish-actions.pod:1019
8778 msgid ""
8779 "The output depends on the output of the underlying L<file(1)> command and it "
8780 "can change in future in ways beyond our control.  In other words, the output "
8781 "is not guaranteed by the ABI."
8782 msgstr ""
8783
8784 #. type: textblock
8785 #: ../src/guestfs-actions.pod:1545
8786 msgid ""
8787 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
8788 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
8789 msgstr ""
8790
8791 #. type: =head2
8792 #: ../src/guestfs-actions.pod:1553
8793 msgid "guestfs_file_architecture"
8794 msgstr ""
8795
8796 #. type: verbatim
8797 #: ../src/guestfs-actions.pod:1555
8798 #, no-wrap
8799 msgid ""
8800 " char *\n"
8801 " guestfs_file_architecture (guestfs_h *g,\n"
8802 "                            const char *filename);\n"
8803 "\n"
8804 msgstr ""
8805
8806 #. type: textblock
8807 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1030
8808 msgid ""
8809 "This detects the architecture of the binary C<filename>, and returns it if "
8810 "known."
8811 msgstr ""
8812
8813 #. type: textblock
8814 #: ../src/guestfs-actions.pod:1562 ../fish/guestfish-actions.pod:1033
8815 msgid "Currently defined architectures are:"
8816 msgstr ""
8817
8818 #. type: =item
8819 #: ../src/guestfs-actions.pod:1566 ../fish/guestfish-actions.pod:1037
8820 msgid "\"i386\""
8821 msgstr "\"i386\""
8822
8823 #. type: textblock
8824 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1039
8825 msgid ""
8826 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8827 "irrespective of the precise processor requirements of the binary."
8828 msgstr ""
8829
8830 #. type: =item
8831 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1042
8832 msgid "\"x86_64\""
8833 msgstr "\"x86_64\""
8834
8835 #. type: textblock
8836 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1044
8837 msgid "64 bit x86-64."
8838 msgstr ""
8839
8840 #. type: =item
8841 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1046
8842 msgid "\"sparc\""
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1048
8847 msgid "32 bit SPARC."
8848 msgstr ""
8849
8850 #. type: =item
8851 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1050
8852 msgid "\"sparc64\""
8853 msgstr ""
8854
8855 #. type: textblock
8856 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1052
8857 msgid "64 bit SPARC V9 and above."
8858 msgstr ""
8859
8860 #. type: =item
8861 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1054
8862 msgid "\"ia64\""
8863 msgstr "\"ia64\""
8864
8865 #. type: textblock
8866 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1056
8867 msgid "Intel Itanium."
8868 msgstr "Intel Itanium."
8869
8870 #. type: =item
8871 #: ../src/guestfs-actions.pod:1587 ../fish/guestfish-actions.pod:1058
8872 msgid "\"ppc\""
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1060
8877 msgid "32 bit Power PC."
8878 msgstr ""
8879
8880 #. type: =item
8881 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1062
8882 msgid "\"ppc64\""
8883 msgstr ""
8884
8885 #. type: textblock
8886 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1064
8887 msgid "64 bit Power PC."
8888 msgstr ""
8889
8890 #. type: textblock
8891 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1068
8892 msgid "Libguestfs may return other architecture strings in future."
8893 msgstr ""
8894
8895 #. type: textblock
8896 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1070
8897 msgid "The function works on at least the following types of files:"
8898 msgstr ""
8899
8900 #. type: textblock
8901 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1076
8902 msgid "many types of Un*x and Linux binary"
8903 msgstr ""
8904
8905 #. type: textblock
8906 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1080
8907 msgid "many types of Un*x and Linux shared library"
8908 msgstr ""
8909
8910 #. type: textblock
8911 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1084
8912 msgid "Windows Win32 and Win64 binaries"
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1088
8917 msgid "Windows Win32 and Win64 DLLs"
8918 msgstr ""
8919
8920 #. type: textblock
8921 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1090
8922 msgid "Win32 binaries and DLLs return C<i386>."
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1092
8927 msgid "Win64 binaries and DLLs return C<x86_64>."
8928 msgstr ""
8929
8930 #. type: textblock
8931 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1096
8932 msgid "Linux kernel modules"
8933 msgstr ""
8934
8935 #. type: textblock
8936 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1100
8937 msgid "Linux new-style initrd images"
8938 msgstr ""
8939
8940 #. type: textblock
8941 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1104
8942 msgid "some non-x86 Linux vmlinuz kernels"
8943 msgstr ""
8944
8945 #. type: textblock
8946 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1108
8947 msgid "What it can't do currently:"
8948 msgstr ""
8949
8950 #. type: textblock
8951 #: ../src/guestfs-actions.pod:1643 ../fish/guestfish-actions.pod:1114
8952 msgid "static libraries (libfoo.a)"
8953 msgstr ""
8954
8955 #. type: textblock
8956 #: ../src/guestfs-actions.pod:1647 ../fish/guestfish-actions.pod:1118
8957 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8958 msgstr ""
8959
8960 #. type: textblock
8961 #: ../src/guestfs-actions.pod:1651 ../fish/guestfish-actions.pod:1122
8962 msgid "x86 Linux vmlinuz kernels"
8963 msgstr ""
8964
8965 #. type: textblock
8966 #: ../src/guestfs-actions.pod:1653 ../fish/guestfish-actions.pod:1124
8967 msgid ""
8968 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8969 "compressed code, and are horribly hard to unpack.  If you want to find the "
8970 "architecture of a kernel, use the architecture of the associated initrd or "
8971 "kernel module(s) instead."
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1826
8976 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2534
8977 #: ../src/guestfs-actions.pod:2627 ../src/guestfs-actions.pod:2697
8978 #: ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2806
8979 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2933
8980 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3277
8981 #: ../src/guestfs-actions.pod:3409
8982 msgid "(Added in 1.5.3)"
8983 msgstr ""
8984
8985 #. type: =head2
8986 #: ../src/guestfs-actions.pod:1665
8987 msgid "guestfs_filesize"
8988 msgstr ""
8989
8990 #. type: verbatim
8991 #: ../src/guestfs-actions.pod:1667
8992 #, no-wrap
8993 msgid ""
8994 " int64_t\n"
8995 " guestfs_filesize (guestfs_h *g,\n"
8996 "                   const char *file);\n"
8997 "\n"
8998 msgstr ""
8999
9000 #. type: textblock
9001 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1135
9002 msgid "This command returns the size of C<file> in bytes."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../src/guestfs-actions.pod:1673
9007 msgid ""
9008 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9009 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9010 "devices, use C<guestfs_blockdev_getsize64>."
9011 msgstr ""
9012
9013 #. type: textblock
9014 #: ../src/guestfs-actions.pod:1679
9015 msgid "(Added in 1.0.82)"
9016 msgstr ""
9017
9018 #. type: =head2
9019 #: ../src/guestfs-actions.pod:1681
9020 msgid "guestfs_fill"
9021 msgstr ""
9022
9023 #. type: verbatim
9024 #: ../src/guestfs-actions.pod:1683
9025 #, no-wrap
9026 msgid ""
9027 " int\n"
9028 " guestfs_fill (guestfs_h *g,\n"
9029 "               int c,\n"
9030 "               int len,\n"
9031 "               const char *path);\n"
9032 "\n"
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../src/guestfs-actions.pod:1689 ../fish/guestfish-actions.pod:1145
9037 msgid ""
9038 "This command creates a new file called C<path>.  The initial content of the "
9039 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9040 "[0..255]>."
9041 msgstr ""
9042
9043 #. type: textblock
9044 #: ../src/guestfs-actions.pod:1693
9045 msgid ""
9046 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9047 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9048 "bytes use C<guestfs_fill_pattern>."
9049 msgstr ""
9050
9051 #. type: textblock
9052 #: ../src/guestfs-actions.pod:1705
9053 msgid "(Added in 1.0.79)"
9054 msgstr ""
9055
9056 #. type: =head2
9057 #: ../src/guestfs-actions.pod:1707
9058 msgid "guestfs_fill_pattern"
9059 msgstr ""
9060
9061 #. type: verbatim
9062 #: ../src/guestfs-actions.pod:1709
9063 #, no-wrap
9064 msgid ""
9065 " int\n"
9066 " guestfs_fill_pattern (guestfs_h *g,\n"
9067 "                       const char *pattern,\n"
9068 "                       int len,\n"
9069 "                       const char *path);\n"
9070 "\n"
9071 msgstr ""
9072
9073 #. type: textblock
9074 #: ../src/guestfs-actions.pod:1715
9075 msgid ""
9076 "This function is like C<guestfs_fill> except that it creates a new file of "
9077 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9078 "pattern is truncated if necessary to ensure the length of the file is "
9079 "exactly C<len> bytes."
9080 msgstr ""
9081
9082 #. type: textblock
9083 #: ../src/guestfs-actions.pod:1727
9084 msgid "(Added in 1.3.12)"
9085 msgstr ""
9086
9087 #. type: =head2
9088 #: ../src/guestfs-actions.pod:1729
9089 msgid "guestfs_find"
9090 msgstr ""
9091
9092 #. type: verbatim
9093 #: ../src/guestfs-actions.pod:1731
9094 #, no-wrap
9095 msgid ""
9096 " char **\n"
9097 " guestfs_find (guestfs_h *g,\n"
9098 "               const char *directory);\n"
9099 "\n"
9100 msgstr ""
9101
9102 #. type: textblock
9103 #: ../src/guestfs-actions.pod:1735 ../fish/guestfish-actions.pod:1167
9104 msgid ""
9105 "This command lists out all files and directories, recursively, starting at "
9106 "C<directory>.  It is essentially equivalent to running the shell command "
9107 "C<find directory -print> but some post-processing happens on the output, "
9108 "described below."
9109 msgstr ""
9110
9111 #. type: textblock
9112 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1172
9113 msgid ""
9114 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9115 "structure was:"
9116 msgstr ""
9117
9118 #. type: verbatim
9119 #: ../src/guestfs-actions.pod:1743 ../fish/guestfish-actions.pod:1175
9120 #, no-wrap
9121 msgid ""
9122 " /tmp/a\n"
9123 " /tmp/b\n"
9124 " /tmp/c/d\n"
9125 "\n"
9126 msgstr ""
9127
9128 #. type: textblock
9129 #: ../src/guestfs-actions.pod:1747
9130 msgid ""
9131 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9132 msgstr ""
9133
9134 #. type: verbatim
9135 #: ../src/guestfs-actions.pod:1750 ../fish/guestfish-actions.pod:1182
9136 #, no-wrap
9137 msgid ""
9138 " a\n"
9139 " b\n"
9140 " c\n"
9141 " c/d\n"
9142 "\n"
9143 msgstr ""
9144
9145 #. type: textblock
9146 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1187
9147 msgid "If C<directory> is not a directory, then this command returns an error."
9148 msgstr ""
9149
9150 #. type: textblock
9151 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1190
9152 msgid "The returned list is sorted."
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../src/guestfs-actions.pod:1760
9157 msgid "See also C<guestfs_find0>."
9158 msgstr ""
9159
9160 #. type: textblock
9161 #: ../src/guestfs-actions.pod:1769 ../src/guestfs-actions.pod:4126
9162 #: ../src/guestfs-actions.pod:5676
9163 msgid "(Added in 1.0.27)"
9164 msgstr ""
9165
9166 #. type: =head2
9167 #: ../src/guestfs-actions.pod:1771
9168 msgid "guestfs_find0"
9169 msgstr ""
9170
9171 #. type: verbatim
9172 #: ../src/guestfs-actions.pod:1773
9173 #, no-wrap
9174 msgid ""
9175 " int\n"
9176 " guestfs_find0 (guestfs_h *g,\n"
9177 "                const char *directory,\n"
9178 "                const char *files);\n"
9179 "\n"
9180 msgstr ""
9181
9182 #. type: textblock
9183 #: ../src/guestfs-actions.pod:1778 ../fish/guestfish-actions.pod:1201
9184 msgid ""
9185 "This command lists out all files and directories, recursively, starting at "
9186 "C<directory>, placing the resulting list in the external file called "
9187 "C<files>."
9188 msgstr ""
9189
9190 #. type: textblock
9191 #: ../src/guestfs-actions.pod:1782
9192 msgid ""
9193 "This command works the same way as C<guestfs_find> with the following "
9194 "exceptions:"
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1212
9199 msgid "The resulting list is written to an external file."
9200 msgstr ""
9201
9202 #. type: textblock
9203 #: ../src/guestfs-actions.pod:1793 ../fish/guestfish-actions.pod:1216
9204 msgid ""
9205 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9206 "L<find(1)> option I<-print0>."
9207 msgstr ""
9208
9209 #. type: textblock
9210 #: ../src/guestfs-actions.pod:1798 ../fish/guestfish-actions.pod:1221
9211 msgid "This command is not limited in the number of names that it can return."
9212 msgstr ""
9213
9214 #. type: textblock
9215 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1226
9216 msgid "The result list is not sorted."
9217 msgstr ""
9218
9219 #. type: textblock
9220 #: ../src/guestfs-actions.pod:1809
9221 msgid "(Added in 1.0.74)"
9222 msgstr ""
9223
9224 #. type: =head2
9225 #: ../src/guestfs-actions.pod:1811
9226 msgid "guestfs_findfs_label"
9227 msgstr ""
9228
9229 #. type: verbatim
9230 #: ../src/guestfs-actions.pod:1813
9231 #, no-wrap
9232 msgid ""
9233 " char *\n"
9234 " guestfs_findfs_label (guestfs_h *g,\n"
9235 "                       const char *label);\n"
9236 "\n"
9237 msgstr ""
9238
9239 #. type: textblock
9240 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1236
9241 msgid ""
9242 "This command searches the filesystems and returns the one which has the "
9243 "given label.  An error is returned if no such filesystem can be found."
9244 msgstr ""
9245
9246 #. type: textblock
9247 #: ../src/guestfs-actions.pod:1821
9248 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9249 msgstr ""
9250
9251 #. type: =head2
9252 #: ../src/guestfs-actions.pod:1828
9253 msgid "guestfs_findfs_uuid"
9254 msgstr ""
9255
9256 #. type: verbatim
9257 #: ../src/guestfs-actions.pod:1830
9258 #, no-wrap
9259 msgid ""
9260 " char *\n"
9261 " guestfs_findfs_uuid (guestfs_h *g,\n"
9262 "                      const char *uuid);\n"
9263 "\n"
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../src/guestfs-actions.pod:1834 ../fish/guestfish-actions.pod:1246
9268 msgid ""
9269 "This command searches the filesystems and returns the one which has the "
9270 "given UUID.  An error is returned if no such filesystem can be found."
9271 msgstr ""
9272
9273 #. type: textblock
9274 #: ../src/guestfs-actions.pod:1838
9275 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9276 msgstr ""
9277
9278 #. type: =head2
9279 #: ../src/guestfs-actions.pod:1845
9280 msgid "guestfs_fsck"
9281 msgstr ""
9282
9283 #. type: verbatim
9284 #: ../src/guestfs-actions.pod:1847
9285 #, no-wrap
9286 msgid ""
9287 " int\n"
9288 " guestfs_fsck (guestfs_h *g,\n"
9289 "               const char *fstype,\n"
9290 "               const char *device);\n"
9291 "\n"
9292 msgstr ""
9293
9294 #. type: textblock
9295 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1256
9296 msgid ""
9297 "This runs the filesystem checker (fsck) on C<device> which should have "
9298 "filesystem type C<fstype>."
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:1259
9303 msgid ""
9304 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9305 "codes from C<fsck>."
9306 msgstr ""
9307
9308 #. type: textblock
9309 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1268
9310 msgid "Multiple status codes can be summed together."
9311 msgstr ""
9312
9313 #. type: textblock
9314 #: ../src/guestfs-actions.pod:1868 ../fish/guestfish-actions.pod:1272
9315 msgid ""
9316 "A non-zero return code can mean \"success\", for example if errors have been "
9317 "corrected on the filesystem."
9318 msgstr ""
9319
9320 #. type: textblock
9321 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1277
9322 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9323 msgstr ""
9324
9325 #. type: textblock
9326 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1282
9327 msgid ""
9328 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:7408
9333 msgid "(Added in 1.0.16)"
9334 msgstr ""
9335
9336 #. type: =head2
9337 #: ../src/guestfs-actions.pod:1884
9338 msgid "guestfs_get_append"
9339 msgstr ""
9340
9341 #. type: verbatim
9342 #: ../src/guestfs-actions.pod:1886
9343 #, no-wrap
9344 msgid ""
9345 " const char *\n"
9346 " guestfs_get_append (guestfs_h *g);\n"
9347 "\n"
9348 msgstr ""
9349
9350 #. type: textblock
9351 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
9352 msgid ""
9353 "Return the additional kernel options which are added to the guest kernel "
9354 "command line."
9355 msgstr ""
9356
9357 #. type: textblock
9358 #: ../src/guestfs-actions.pod:1892 ../fish/guestfish-actions.pod:1291
9359 msgid "If C<NULL> then no options are added."
9360 msgstr ""
9361
9362 #. type: textblock
9363 #: ../src/guestfs-actions.pod:1894
9364 msgid ""
9365 "This function returns a string which may be NULL.  There is no way to return "
9366 "an error from this function.  The string is owned by the guest handle and "
9367 "must I<not> be freed."
9368 msgstr ""
9369
9370 #. type: textblock
9371 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:5354
9372 #: ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:6255
9373 #: ../src/guestfs-actions.pod:6274 ../src/guestfs-actions.pod:6290
9374 #: ../src/guestfs-actions.pod:6314 ../src/guestfs-actions.pod:7071
9375 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7451
9376 msgid "(Added in 1.0.26)"
9377 msgstr ""
9378
9379 #. type: =head2
9380 #: ../src/guestfs-actions.pod:1900
9381 msgid "guestfs_get_attach_method"
9382 msgstr ""
9383
9384 #. type: verbatim
9385 #: ../src/guestfs-actions.pod:1902
9386 #, no-wrap
9387 msgid ""
9388 " char *\n"
9389 " guestfs_get_attach_method (guestfs_h *g);\n"
9390 "\n"
9391 msgstr ""
9392
9393 #. type: textblock
9394 #: ../src/guestfs-actions.pod:1905
9395 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
9396 msgstr ""
9397
9398 #. type: =head2
9399 #: ../src/guestfs-actions.pod:1910
9400 msgid "guestfs_get_autosync"
9401 msgstr ""
9402
9403 #. type: verbatim
9404 #: ../src/guestfs-actions.pod:1912
9405 #, no-wrap
9406 msgid ""
9407 " int\n"
9408 " guestfs_get_autosync (guestfs_h *g);\n"
9409 "\n"
9410 msgstr ""
9411
9412 #. type: textblock
9413 #: ../src/guestfs-actions.pod:1915 ../fish/guestfish-actions.pod:1303
9414 msgid "Get the autosync flag."
9415 msgstr ""
9416
9417 #. type: =head2
9418 #: ../src/guestfs-actions.pod:1921
9419 msgid "guestfs_get_direct"
9420 msgstr ""
9421
9422 #. type: verbatim
9423 #: ../src/guestfs-actions.pod:1923
9424 #, no-wrap
9425 msgid ""
9426 " int\n"
9427 " guestfs_get_direct (guestfs_h *g);\n"
9428 "\n"
9429 msgstr ""
9430
9431 #. type: textblock
9432 #: ../src/guestfs-actions.pod:1926 ../fish/guestfish-actions.pod:1309
9433 msgid "Return the direct appliance mode flag."
9434 msgstr ""
9435
9436 #. type: textblock
9437 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:5903
9438 msgid "(Added in 1.0.72)"
9439 msgstr ""
9440
9441 #. type: =head2
9442 #: ../src/guestfs-actions.pod:1932
9443 msgid "guestfs_get_e2label"
9444 msgstr ""
9445
9446 #. type: verbatim
9447 #: ../src/guestfs-actions.pod:1934
9448 #, no-wrap
9449 msgid ""
9450 " char *\n"
9451 " guestfs_get_e2label (guestfs_h *g,\n"
9452 "                      const char *device);\n"
9453 "\n"
9454 msgstr ""
9455
9456 #. type: textblock
9457 #: ../src/guestfs-actions.pod:1938 ../fish/guestfish-actions.pod:1315
9458 msgid ""
9459 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9460 msgstr ""
9461
9462 #. type: textblock
9463 #: ../src/guestfs-actions.pod:1944 ../fish/guestfish-actions.pod:1318
9464 msgid ""
9465 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
9466 msgstr ""
9467
9468 #. type: textblock
9469 #: ../src/guestfs-actions.pod:1951 ../src/guestfs-actions.pod:1972
9470 #: ../src/guestfs-actions.pod:5921 ../src/guestfs-actions.pod:5940
9471 msgid "(Added in 1.0.15)"
9472 msgstr ""
9473
9474 #. type: =head2
9475 #: ../src/guestfs-actions.pod:1953
9476 msgid "guestfs_get_e2uuid"
9477 msgstr ""
9478
9479 #. type: verbatim
9480 #: ../src/guestfs-actions.pod:1955
9481 #, no-wrap
9482 msgid ""
9483 " char *\n"
9484 " guestfs_get_e2uuid (guestfs_h *g,\n"
9485 "                     const char *device);\n"
9486 "\n"
9487 msgstr ""
9488
9489 #. type: textblock
9490 #: ../src/guestfs-actions.pod:1959 ../fish/guestfish-actions.pod:1329
9491 msgid ""
9492 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../src/guestfs-actions.pod:1965 ../fish/guestfish-actions.pod:1332
9497 msgid ""
9498 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9499 msgstr ""
9500
9501 #. type: =head2
9502 #: ../src/guestfs-actions.pod:1974
9503 msgid "guestfs_get_memsize"
9504 msgstr ""
9505
9506 #. type: verbatim
9507 #: ../src/guestfs-actions.pod:1976
9508 #, no-wrap
9509 msgid ""
9510 " int\n"
9511 " guestfs_get_memsize (guestfs_h *g);\n"
9512 "\n"
9513 msgstr ""
9514
9515 #. type: textblock
9516 #: ../src/guestfs-actions.pod:1979 ../fish/guestfish-actions.pod:1343
9517 msgid ""
9518 "This gets the memory size in megabytes allocated to the qemu subprocess."
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../src/guestfs-actions.pod:1982
9523 msgid ""
9524 "If C<guestfs_set_memsize> was not called on this handle, and if "
9525 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9526 "value for memsize."
9527 msgstr ""
9528
9529 #. type: textblock
9530 #: ../src/guestfs-actions.pod:1986 ../src/guestfs-actions.pod:2067
9531 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6063
9532 #: ../fish/guestfish-actions.pod:1350 ../fish/guestfish-actions.pod:1401
9533 #: ../fish/guestfish-actions.pod:4017 ../fish/guestfish-actions.pod:4104
9534 msgid ""
9535 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9536 msgstr ""
9537
9538 #. type: textblock
9539 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:4417
9540 #: ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4633
9541 #: ../src/guestfs-actions.pod:4652 ../src/guestfs-actions.pod:4664
9542 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4694
9543 #: ../src/guestfs-actions.pod:5579 ../src/guestfs-actions.pod:5961
9544 #: ../src/guestfs-actions.pod:6222 ../src/guestfs-actions.pod:6837
9545 msgid "(Added in 1.0.55)"
9546 msgstr ""
9547
9548 #. type: =head2
9549 #: ../src/guestfs-actions.pod:1993
9550 msgid "guestfs_get_network"
9551 msgstr ""
9552
9553 #. type: verbatim
9554 #: ../src/guestfs-actions.pod:1995
9555 #, no-wrap
9556 msgid ""
9557 " int\n"
9558 " guestfs_get_network (guestfs_h *g);\n"
9559 "\n"
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1357
9564 msgid "This returns the enable network flag."
9565 msgstr ""
9566
9567 #. type: textblock
9568 #: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:5980
9569 msgid "(Added in 1.5.4)"
9570 msgstr ""
9571
9572 #. type: =head2
9573 #: ../src/guestfs-actions.pod:2004
9574 msgid "guestfs_get_path"
9575 msgstr ""
9576
9577 #. type: verbatim
9578 #: ../src/guestfs-actions.pod:2006
9579 #, no-wrap
9580 msgid ""
9581 " const char *\n"
9582 " guestfs_get_path (guestfs_h *g);\n"
9583 "\n"
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../src/guestfs-actions.pod:2009 ../fish/guestfish-actions.pod:1363
9588 msgid "Return the current search path."
9589 msgstr ""
9590
9591 #. type: textblock
9592 #: ../src/guestfs-actions.pod:2011 ../fish/guestfish-actions.pod:1365
9593 msgid ""
9594 "This is always non-NULL.  If it wasn't set already, then this will return "
9595 "the default path."
9596 msgstr ""
9597
9598 #. type: textblock
9599 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2043
9600 msgid ""
9601 "This function returns a string, or NULL on error.  The string is owned by "
9602 "the guest handle and must I<not> be freed."
9603 msgstr ""
9604
9605 #. type: =head2
9606 #: ../src/guestfs-actions.pod:2019
9607 msgid "guestfs_get_pid"
9608 msgstr ""
9609
9610 #. type: verbatim
9611 #: ../src/guestfs-actions.pod:2021
9612 #, no-wrap
9613 msgid ""
9614 " int\n"
9615 " guestfs_get_pid (guestfs_h *g);\n"
9616 "\n"
9617 msgstr ""
9618
9619 #. type: textblock
9620 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1374
9621 msgid ""
9622 "Return the process ID of the qemu subprocess.  If there is no qemu "
9623 "subprocess, then this will return an error."
9624 msgstr ""
9625
9626 #. type: textblock
9627 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
9628 msgid "This is an internal call used for debugging and testing."
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../src/guestfs-actions.pod:2031
9633 msgid "(Added in 1.0.56)"
9634 msgstr ""
9635
9636 #. type: =head2
9637 #: ../src/guestfs-actions.pod:2033
9638 msgid "guestfs_get_qemu"
9639 msgstr ""
9640
9641 #. type: verbatim
9642 #: ../src/guestfs-actions.pod:2035
9643 #, no-wrap
9644 msgid ""
9645 " const char *\n"
9646 " guestfs_get_qemu (guestfs_h *g);\n"
9647 "\n"
9648 msgstr ""
9649
9650 #. type: textblock
9651 #: ../src/guestfs-actions.pod:2038 ../fish/guestfish-actions.pod:1383
9652 msgid "Return the current qemu binary."
9653 msgstr ""
9654
9655 #. type: textblock
9656 #: ../src/guestfs-actions.pod:2040 ../fish/guestfish-actions.pod:1385
9657 msgid ""
9658 "This is always non-NULL.  If it wasn't set already, then this will return "
9659 "the default qemu binary name."
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:6025
9664 msgid "(Added in 1.0.6)"
9665 msgstr ""
9666
9667 #. type: =head2
9668 #: ../src/guestfs-actions.pod:2048
9669 msgid "guestfs_get_recovery_proc"
9670 msgstr ""
9671
9672 #. type: verbatim
9673 #: ../src/guestfs-actions.pod:2050
9674 #, no-wrap
9675 msgid ""
9676 " int\n"
9677 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9678 "\n"
9679 msgstr ""
9680
9681 #. type: textblock
9682 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1392
9683 msgid "Return the recovery process enabled flag."
9684 msgstr ""
9685
9686 #. type: textblock
9687 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:3527
9688 #: ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:4224
9689 #: ../src/guestfs-actions.pod:4256 ../src/guestfs-actions.pod:5284
9690 #: ../src/guestfs-actions.pod:5627 ../src/guestfs-actions.pod:6049
9691 #: ../src/guestfs-actions.pod:6740 ../src/guestfs-actions.pod:6760
9692 #: ../src/guestfs-actions.pod:6952
9693 msgid "(Added in 1.0.77)"
9694 msgstr ""
9695
9696 #. type: =head2
9697 #: ../src/guestfs-actions.pod:2059
9698 msgid "guestfs_get_selinux"
9699 msgstr ""
9700
9701 #. type: verbatim
9702 #: ../src/guestfs-actions.pod:2061
9703 #, no-wrap
9704 msgid ""
9705 " int\n"
9706 " guestfs_get_selinux (guestfs_h *g);\n"
9707 "\n"
9708 msgstr ""
9709
9710 #. type: textblock
9711 #: ../src/guestfs-actions.pod:2064
9712 msgid ""
9713 "This returns the current setting of the selinux flag which is passed to the "
9714 "appliance at boot time.  See C<guestfs_set_selinux>."
9715 msgstr ""
9716
9717 #. type: textblock
9718 #: ../src/guestfs-actions.pod:2072 ../src/guestfs-actions.pod:2135
9719 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6126
9720 msgid "(Added in 1.0.67)"
9721 msgstr ""
9722
9723 #. type: =head2
9724 #: ../src/guestfs-actions.pod:2074
9725 msgid "guestfs_get_state"
9726 msgstr ""
9727
9728 #. type: verbatim
9729 #: ../src/guestfs-actions.pod:2076
9730 #, no-wrap
9731 msgid ""
9732 " int\n"
9733 " guestfs_get_state (guestfs_h *g);\n"
9734 "\n"
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../src/guestfs-actions.pod:2079 ../fish/guestfish-actions.pod:1408
9739 msgid ""
9740 "This returns the current state as an opaque integer.  This is only useful "
9741 "for printing debug and internal error messages."
9742 msgstr ""
9743
9744 #. type: textblock
9745 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:3302
9746 #: ../src/guestfs-actions.pod:3331 ../src/guestfs-actions.pod:3392
9747 #: ../src/guestfs-actions.pod:3419 ../fish/guestfish-actions.pod:1411
9748 #: ../fish/guestfish-actions.pod:2325 ../fish/guestfish-actions.pod:2343
9749 #: ../fish/guestfish-actions.pod:2381 ../fish/guestfish-actions.pod:2397
9750 msgid "For more information on states, see L<guestfs(3)>."
9751 msgstr ""
9752
9753 #. type: =head2
9754 #: ../src/guestfs-actions.pod:2088
9755 msgid "guestfs_get_trace"
9756 msgstr ""
9757
9758 #. type: verbatim
9759 #: ../src/guestfs-actions.pod:2090
9760 #, no-wrap
9761 msgid ""
9762 " int\n"
9763 " guestfs_get_trace (guestfs_h *g);\n"
9764 "\n"
9765 msgstr ""
9766
9767 #. type: textblock
9768 #: ../src/guestfs-actions.pod:2093 ../fish/guestfish-actions.pod:1417
9769 msgid "Return the command trace flag."
9770 msgstr ""
9771
9772 #. type: =head2
9773 #: ../src/guestfs-actions.pod:2099
9774 msgid "guestfs_get_umask"
9775 msgstr ""
9776
9777 #. type: verbatim
9778 #: ../src/guestfs-actions.pod:2101
9779 #, no-wrap
9780 msgid ""
9781 " int\n"
9782 " guestfs_get_umask (guestfs_h *g);\n"
9783 "\n"
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../src/guestfs-actions.pod:2104
9788 msgid ""
9789 "Return the current umask.  By default the umask is C<022> unless it has been "
9790 "set by calling C<guestfs_umask>."
9791 msgstr ""
9792
9793 #. type: =head2
9794 #: ../src/guestfs-actions.pod:2111
9795 msgid "guestfs_get_verbose"
9796 msgstr ""
9797
9798 #. type: verbatim
9799 #: ../src/guestfs-actions.pod:2113
9800 #, no-wrap
9801 msgid ""
9802 " int\n"
9803 " guestfs_get_verbose (guestfs_h *g);\n"
9804 "\n"
9805 msgstr ""
9806
9807 #. type: textblock
9808 #: ../src/guestfs-actions.pod:2116 ../fish/guestfish-actions.pod:1430
9809 msgid "This returns the verbose messages flag."
9810 msgstr ""
9811
9812 #. type: =head2
9813 #: ../src/guestfs-actions.pod:2122
9814 msgid "guestfs_getcon"
9815 msgstr ""
9816
9817 #. type: verbatim
9818 #: ../src/guestfs-actions.pod:2124
9819 #, no-wrap
9820 msgid ""
9821 " char *\n"
9822 " guestfs_getcon (guestfs_h *g);\n"
9823 "\n"
9824 msgstr ""
9825
9826 #. type: textblock
9827 #: ../src/guestfs-actions.pod:2127 ../fish/guestfish-actions.pod:1436
9828 msgid "This gets the SELinux security context of the daemon."
9829 msgstr ""
9830
9831 #. type: textblock
9832 #: ../src/guestfs-actions.pod:2129
9833 msgid ""
9834 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
9835 msgstr ""
9836
9837 #. type: =head2
9838 #: ../src/guestfs-actions.pod:2137
9839 msgid "guestfs_getxattr"
9840 msgstr ""
9841
9842 #. type: verbatim
9843 #: ../src/guestfs-actions.pod:2139
9844 #, no-wrap
9845 msgid ""
9846 " char *\n"
9847 " guestfs_getxattr (guestfs_h *g,\n"
9848 "                   const char *path,\n"
9849 "                   const char *name,\n"
9850 "                   size_t *size_r);\n"
9851 "\n"
9852 msgstr ""
9853
9854 #. type: textblock
9855 #: ../src/guestfs-actions.pod:2145
9856 msgid ""
9857 "Get a single extended attribute from file C<path> named C<name>.  This call "
9858 "follows symlinks.  If you want to lookup an extended attribute for the "
9859 "symlink itself, use C<guestfs_lgetxattr>."
9860 msgstr ""
9861
9862 #. type: textblock
9863 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:3541
9864 msgid ""
9865 "Normally it is better to get all extended attributes from a file in one go "
9866 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
9867 "implementations are buggy and do not provide a way to list out attributes.  "
9868 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
9869 "extended attributes you want in advance and call this function."
9870 msgstr ""
9871
9872 #. type: textblock
9873 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:3548
9874 #: ../fish/guestfish-actions.pod:1456 ../fish/guestfish-actions.pod:2477
9875 msgid ""
9876 "Extended attribute values are blobs of binary data.  If there is no extended "
9877 "attribute named C<name>, this returns an error."
9878 msgstr ""
9879
9880 #. type: textblock
9881 #: ../src/guestfs-actions.pod:2159
9882 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
9883 msgstr ""
9884
9885 #. type: textblock
9886 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2352
9887 #: ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:5277
9888 #: ../src/guestfs-actions.pod:5303 ../src/guestfs-actions.pod:5484
9889 msgid ""
9890 "This function returns a buffer, or NULL on error.  The size of the returned "
9891 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
9892 "after use>."
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:3557
9897 msgid "(Added in 1.7.24)"
9898 msgstr ""
9899
9900 #. type: =head2
9901 #: ../src/guestfs-actions.pod:2167
9902 msgid "guestfs_getxattrs"
9903 msgstr ""
9904
9905 #. type: verbatim
9906 #: ../src/guestfs-actions.pod:2169
9907 #, no-wrap
9908 msgid ""
9909 " struct guestfs_xattr_list *\n"
9910 " guestfs_getxattrs (guestfs_h *g,\n"
9911 "                    const char *path);\n"
9912 "\n"
9913 msgstr ""
9914
9915 #. type: textblock
9916 #: ../src/guestfs-actions.pod:2173 ../fish/guestfish-actions.pod:1465
9917 msgid ""
9918 "This call lists the extended attributes of the file or directory C<path>."
9919 msgstr ""
9920
9921 #. type: textblock
9922 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1468
9923 msgid ""
9924 "At the system call level, this is a combination of the L<listxattr(2)> and "
9925 "L<getxattr(2)> calls."
9926 msgstr ""
9927
9928 #. type: textblock
9929 #: ../src/guestfs-actions.pod:2179
9930 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
9931 msgstr ""
9932
9933 #. type: textblock
9934 #: ../src/guestfs-actions.pod:2181 ../src/guestfs-actions.pod:3569
9935 #: ../src/guestfs-actions.pod:4220
9936 msgid ""
9937 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
9938 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
9939 msgstr ""
9940
9941 #. type: textblock
9942 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:3573
9943 #: ../src/guestfs-actions.pod:3738 ../src/guestfs-actions.pod:3774
9944 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:6145
9945 #: ../src/guestfs-actions.pod:7516
9946 msgid "(Added in 1.0.59)"
9947 msgstr ""
9948
9949 #. type: =head2
9950 #: ../src/guestfs-actions.pod:2187
9951 msgid "guestfs_glob_expand"
9952 msgstr ""
9953
9954 #. type: verbatim
9955 #: ../src/guestfs-actions.pod:2189
9956 #, no-wrap
9957 msgid ""
9958 " char **\n"
9959 " guestfs_glob_expand (guestfs_h *g,\n"
9960 "                      const char *pattern);\n"
9961 "\n"
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../src/guestfs-actions.pod:2193 ../fish/guestfish-actions.pod:1477
9966 msgid ""
9967 "This command searches for all the pathnames matching C<pattern> according to "
9968 "the wildcard expansion rules used by the shell."
9969 msgstr ""
9970
9971 #. type: textblock
9972 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1481
9973 msgid ""
9974 "If no paths match, then this returns an empty list (note: not an error)."
9975 msgstr ""
9976
9977 #. type: textblock
9978 #: ../src/guestfs-actions.pod:2200 ../fish/guestfish-actions.pod:1484
9979 msgid ""
9980 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9981 "GLOB_BRACE>.  See that manual page for more details."
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../src/guestfs-actions.pod:2208 ../src/guestfs-actions.pod:6338
9986 #: ../src/guestfs-actions.pod:6355
9987 msgid "(Added in 1.0.50)"
9988 msgstr ""
9989
9990 #. type: =head2
9991 #: ../src/guestfs-actions.pod:2210
9992 msgid "guestfs_grep"
9993 msgstr ""
9994
9995 #. type: verbatim
9996 #: ../src/guestfs-actions.pod:2212
9997 #, no-wrap
9998 msgid ""
9999 " char **\n"
10000 " guestfs_grep (guestfs_h *g,\n"
10001 "               const char *regex,\n"
10002 "               const char *path);\n"
10003 "\n"
10004 msgstr ""
10005
10006 #. type: textblock
10007 #: ../src/guestfs-actions.pod:2217 ../fish/guestfish-actions.pod:1492
10008 msgid "This calls the external C<grep> program and returns the matching lines."
10009 msgstr ""
10010
10011 #. type: =head2
10012 #: ../src/guestfs-actions.pod:2229
10013 msgid "guestfs_grepi"
10014 msgstr ""
10015
10016 #. type: verbatim
10017 #: ../src/guestfs-actions.pod:2231
10018 #, no-wrap
10019 msgid ""
10020 " char **\n"
10021 " guestfs_grepi (guestfs_h *g,\n"
10022 "                const char *regex,\n"
10023 "                const char *path);\n"
10024 "\n"
10025 msgstr ""
10026
10027 #. type: textblock
10028 #: ../src/guestfs-actions.pod:2236 ../fish/guestfish-actions.pod:1502
10029 msgid ""
10030 "This calls the external C<grep -i> program and returns the matching lines."
10031 msgstr ""
10032
10033 #. type: =head2
10034 #: ../src/guestfs-actions.pod:2248
10035 msgid "guestfs_grub_install"
10036 msgstr ""
10037
10038 #. type: verbatim
10039 #: ../src/guestfs-actions.pod:2250
10040 #, no-wrap
10041 msgid ""
10042 " int\n"
10043 " guestfs_grub_install (guestfs_h *g,\n"
10044 "                       const char *root,\n"
10045 "                       const char *device);\n"
10046 "\n"
10047 msgstr ""
10048
10049 #. type: textblock
10050 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1512
10051 msgid ""
10052 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10053 "the root directory being C<root>."
10054 msgstr ""
10055
10056 #. type: textblock
10057 #: ../src/guestfs-actions.pod:2258 ../fish/guestfish-actions.pod:1515
10058 msgid ""
10059 "Note: If grub-install reports the error \"No suitable drive was found in the "
10060 "generated device map.\" it may be that you need to create a C</boot/grub/"
10061 "device.map> file first that contains the mapping between grub device names "
10062 "and Linux device names.  It is usually sufficient to create a file "
10063 "containing:"
10064 msgstr ""
10065
10066 #. type: verbatim
10067 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
10068 #, no-wrap
10069 msgid ""
10070 " (hd0) /dev/vda\n"
10071 "\n"
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1524
10076 msgid "replacing C</dev/vda> with the name of the installation device."
10077 msgstr ""
10078
10079 #. type: textblock
10080 #: ../src/guestfs-actions.pod:2271
10081 msgid "(Added in 1.0.17)"
10082 msgstr ""
10083
10084 #. type: =head2
10085 #: ../src/guestfs-actions.pod:2273
10086 msgid "guestfs_head"
10087 msgstr ""
10088
10089 #. type: verbatim
10090 #: ../src/guestfs-actions.pod:2275
10091 #, no-wrap
10092 msgid ""
10093 " char **\n"
10094 " guestfs_head (guestfs_h *g,\n"
10095 "               const char *path);\n"
10096 "\n"
10097 msgstr ""
10098
10099 #. type: textblock
10100 #: ../src/guestfs-actions.pod:2279 ../fish/guestfish-actions.pod:1530
10101 msgid ""
10102 "This command returns up to the first 10 lines of a file as a list of strings."
10103 msgstr ""
10104
10105 #. type: =head2
10106 #: ../src/guestfs-actions.pod:2291
10107 msgid "guestfs_head_n"
10108 msgstr ""
10109
10110 #. type: verbatim
10111 #: ../src/guestfs-actions.pod:2293
10112 #, no-wrap
10113 msgid ""
10114 " char **\n"
10115 " guestfs_head_n (guestfs_h *g,\n"
10116 "                 int nrlines,\n"
10117 "                 const char *path);\n"
10118 "\n"
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1540
10123 msgid ""
10124 "If the parameter C<nrlines> is a positive number, this returns the first "
10125 "C<nrlines> lines of the file C<path>."
10126 msgstr ""
10127
10128 #. type: textblock
10129 #: ../src/guestfs-actions.pod:2301 ../fish/guestfish-actions.pod:1543
10130 msgid ""
10131 "If the parameter C<nrlines> is a negative number, this returns lines from "
10132 "the file C<path>, excluding the last C<nrlines> lines."
10133 msgstr ""
10134
10135 #. type: textblock
10136 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6635
10137 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:4482
10138 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10139 msgstr ""
10140
10141 #. type: =head2
10142 #: ../src/guestfs-actions.pod:2315
10143 msgid "guestfs_hexdump"
10144 msgstr ""
10145
10146 #. type: verbatim
10147 #: ../src/guestfs-actions.pod:2317
10148 #, no-wrap
10149 msgid ""
10150 " char *\n"
10151 " guestfs_hexdump (guestfs_h *g,\n"
10152 "                  const char *path);\n"
10153 "\n"
10154 msgstr ""
10155
10156 #. type: textblock
10157 #: ../src/guestfs-actions.pod:2321 ../fish/guestfish-actions.pod:1555
10158 msgid ""
10159 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10160 "readable, canonical hex dump of the file."
10161 msgstr ""
10162
10163 #. type: textblock
10164 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:6419
10165 #: ../src/guestfs-actions.pod:6474
10166 msgid "(Added in 1.0.22)"
10167 msgstr ""
10168
10169 #. type: =head2
10170 #: ../src/guestfs-actions.pod:2332
10171 msgid "guestfs_initrd_cat"
10172 msgstr ""
10173
10174 #. type: verbatim
10175 #: ../src/guestfs-actions.pod:2334
10176 #, no-wrap
10177 msgid ""
10178 " char *\n"
10179 " guestfs_initrd_cat (guestfs_h *g,\n"
10180 "                     const char *initrdpath,\n"
10181 "                     const char *filename,\n"
10182 "                     size_t *size_r);\n"
10183 "\n"
10184 msgstr ""
10185
10186 #. type: textblock
10187 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1565
10188 msgid ""
10189 "This command unpacks the file C<filename> from the initrd file called "
10190 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10191 "character."
10192 msgstr ""
10193
10194 #. type: textblock
10195 #: ../src/guestfs-actions.pod:2344 ../fish/guestfish-actions.pod:1569
10196 msgid ""
10197 "For example, in guestfish you could use the following command to examine the "
10198 "boot script (usually called C</init>)  contained in a Linux initrd or "
10199 "initramfs image:"
10200 msgstr ""
10201
10202 #. type: verbatim
10203 #: ../src/guestfs-actions.pod:2348 ../fish/guestfish-actions.pod:1573
10204 #, no-wrap
10205 msgid ""
10206 " initrd-cat /boot/initrd-<version>.img init\n"
10207 "\n"
10208 msgstr ""
10209
10210 #. type: textblock
10211 #: ../src/guestfs-actions.pod:2350
10212 msgid "See also C<guestfs_initrd_list>."
10213 msgstr ""
10214
10215 #. type: =head2
10216 #: ../src/guestfs-actions.pod:2361
10217 msgid "guestfs_initrd_list"
10218 msgstr ""
10219
10220 #. type: verbatim
10221 #: ../src/guestfs-actions.pod:2363
10222 #, no-wrap
10223 msgid ""
10224 " char **\n"
10225 " guestfs_initrd_list (guestfs_h *g,\n"
10226 "                      const char *path);\n"
10227 "\n"
10228 msgstr ""
10229
10230 #. type: textblock
10231 #: ../src/guestfs-actions.pod:2367 ../fish/guestfish-actions.pod:1584
10232 msgid "This command lists out files contained in an initrd."
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../src/guestfs-actions.pod:2369 ../fish/guestfish-actions.pod:1586
10237 msgid ""
10238 "The files are listed without any initial C</> character.  The files are "
10239 "listed in the order they appear (not necessarily alphabetical).  Directory "
10240 "names are listed as separate items."
10241 msgstr ""
10242
10243 #. type: textblock
10244 #: ../src/guestfs-actions.pod:2373 ../fish/guestfish-actions.pod:1590
10245 msgid ""
10246 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10247 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10248 "files)."
10249 msgstr ""
10250
10251 #. type: =head2
10252 #: ../src/guestfs-actions.pod:2383
10253 msgid "guestfs_inotify_add_watch"
10254 msgstr ""
10255
10256 #. type: verbatim
10257 #: ../src/guestfs-actions.pod:2385
10258 #, no-wrap
10259 msgid ""
10260 " int64_t\n"
10261 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10262 "                            const char *path,\n"
10263 "                            int mask);\n"
10264 "\n"
10265 msgstr ""
10266
10267 #. type: textblock
10268 #: ../src/guestfs-actions.pod:2390 ../fish/guestfish-actions.pod:1598
10269 msgid "Watch C<path> for the events listed in C<mask>."
10270 msgstr ""
10271
10272 #. type: textblock
10273 #: ../src/guestfs-actions.pod:2392 ../fish/guestfish-actions.pod:1600
10274 msgid ""
10275 "Note that if C<path> is a directory then events within that directory are "
10276 "watched, but this does I<not> happen recursively (in subdirectories)."
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../src/guestfs-actions.pod:2396 ../fish/guestfish-actions.pod:1604
10281 msgid ""
10282 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10283 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10284 msgstr ""
10285
10286 #. type: =head2
10287 #: ../src/guestfs-actions.pod:2404
10288 msgid "guestfs_inotify_close"
10289 msgstr ""
10290
10291 #. type: verbatim
10292 #: ../src/guestfs-actions.pod:2406
10293 #, no-wrap
10294 msgid ""
10295 " int\n"
10296 " guestfs_inotify_close (guestfs_h *g);\n"
10297 "\n"
10298 msgstr ""
10299
10300 #. type: textblock
10301 #: ../src/guestfs-actions.pod:2409 ../fish/guestfish-actions.pod:1612
10302 msgid ""
10303 "This closes the inotify handle which was previously opened by inotify_init.  "
10304 "It removes all watches, throws away any pending events, and deallocates all "
10305 "resources."
10306 msgstr ""
10307
10308 #. type: =head2
10309 #: ../src/guestfs-actions.pod:2417
10310 msgid "guestfs_inotify_files"
10311 msgstr ""
10312
10313 #. type: verbatim
10314 #: ../src/guestfs-actions.pod:2419
10315 #, no-wrap
10316 msgid ""
10317 " char **\n"
10318 " guestfs_inotify_files (guestfs_h *g);\n"
10319 "\n"
10320 msgstr ""
10321
10322 #. type: textblock
10323 #: ../src/guestfs-actions.pod:2422
10324 msgid ""
10325 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10326 "returns a list of pathnames of objects that were touched.  The returned "
10327 "pathnames are sorted and deduplicated."
10328 msgstr ""
10329
10330 #. type: =head2
10331 #: ../src/guestfs-actions.pod:2432
10332 msgid "guestfs_inotify_init"
10333 msgstr ""
10334
10335 #. type: verbatim
10336 #: ../src/guestfs-actions.pod:2434
10337 #, no-wrap
10338 msgid ""
10339 " int\n"
10340 " guestfs_inotify_init (guestfs_h *g,\n"
10341 "                       int maxevents);\n"
10342 "\n"
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../src/guestfs-actions.pod:2438 ../fish/guestfish-actions.pod:1628
10347 msgid ""
10348 "This command creates a new inotify handle.  The inotify subsystem can be "
10349 "used to notify events which happen to objects in the guest filesystem."
10350 msgstr ""
10351
10352 #. type: textblock
10353 #: ../src/guestfs-actions.pod:2442
10354 msgid ""
10355 "C<maxevents> is the maximum number of events which will be queued up between "
10356 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10357 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10358 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10359 "throws away events, but records the fact that it threw them away by setting "
10360 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10361 "C<guestfs_inotify_read>)."
10362 msgstr ""
10363
10364 #. type: textblock
10365 #: ../src/guestfs-actions.pod:2452
10366 msgid ""
10367 "Before any events are generated, you have to add some watches to the "
10368 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10369 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10370 msgstr ""
10371
10372 #. type: textblock
10373 #: ../src/guestfs-actions.pod:2458
10374 msgid ""
10375 "Queued up events should be read periodically by calling "
10376 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10377 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10378 "often enough then you risk the internal queue overflowing."
10379 msgstr ""
10380
10381 #. type: textblock
10382 #: ../src/guestfs-actions.pod:2465
10383 msgid ""
10384 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10385 "This also removes any watches automatically."
10386 msgstr ""
10387
10388 #. type: textblock
10389 #: ../src/guestfs-actions.pod:2469 ../fish/guestfish-actions.pod:1659
10390 msgid ""
10391 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10392 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10393 "that there is one global inotify handle per libguestfs instance."
10394 msgstr ""
10395
10396 #. type: =head2
10397 #: ../src/guestfs-actions.pod:2478
10398 msgid "guestfs_inotify_read"
10399 msgstr ""
10400
10401 #. type: verbatim
10402 #: ../src/guestfs-actions.pod:2480
10403 #, no-wrap
10404 msgid ""
10405 " struct guestfs_inotify_event_list *\n"
10406 " guestfs_inotify_read (guestfs_h *g);\n"
10407 "\n"
10408 msgstr ""
10409
10410 #. type: textblock
10411 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1668
10412 msgid ""
10413 "Return the complete queue of events that have happened since the previous "
10414 "read call."
10415 msgstr ""
10416
10417 #. type: textblock
10418 #: ../src/guestfs-actions.pod:2486 ../fish/guestfish-actions.pod:1671
10419 msgid "If no events have happened, this returns an empty list."
10420 msgstr ""
10421
10422 #. type: textblock
10423 #: ../src/guestfs-actions.pod:2488 ../fish/guestfish-actions.pod:1673
10424 msgid ""
10425 "I<Note>: In order to make sure that all events have been read, you must call "
10426 "this function repeatedly until it returns an empty list.  The reason is that "
10427 "the call will read events up to the maximum appliance-to-host message size "
10428 "and leave remaining events in the queue."
10429 msgstr ""
10430
10431 #. type: textblock
10432 #: ../src/guestfs-actions.pod:2494
10433 msgid ""
10434 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10435 "there was an error.  I<The caller must call "
10436 "C<guestfs_free_inotify_event_list> after use>."
10437 msgstr ""
10438
10439 #. type: =head2
10440 #: ../src/guestfs-actions.pod:2500
10441 msgid "guestfs_inotify_rm_watch"
10442 msgstr ""
10443
10444 #. type: verbatim
10445 #: ../src/guestfs-actions.pod:2502
10446 #, no-wrap
10447 msgid ""
10448 " int\n"
10449 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10450 "                           int wd);\n"
10451 "\n"
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../src/guestfs-actions.pod:2506
10456 msgid ""
10457 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
10458 msgstr ""
10459
10460 #. type: =head2
10461 #: ../src/guestfs-actions.pod:2513
10462 msgid "guestfs_inspect_get_arch"
10463 msgstr ""
10464
10465 #. type: verbatim
10466 #: ../src/guestfs-actions.pod:2515
10467 #, no-wrap
10468 msgid ""
10469 " char *\n"
10470 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10471 "                           const char *root);\n"
10472 "\n"
10473 msgstr ""
10474
10475 #. type: textblock
10476 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:2542
10477 #: ../src/guestfs-actions.pod:2635 ../src/guestfs-actions.pod:2679
10478 #: ../src/guestfs-actions.pod:2705 ../src/guestfs-actions.pod:2744
10479 #: ../src/guestfs-actions.pod:2766 ../src/guestfs-actions.pod:2793
10480 #: ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:2857
10481 #: ../src/guestfs-actions.pod:2886 ../src/guestfs-actions.pod:2917
10482 #: ../src/guestfs-actions.pod:2941 ../src/guestfs-actions.pod:2996
10483 #: ../src/guestfs-actions.pod:3038 ../src/guestfs-actions.pod:3059
10484 #: ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3099
10485 #: ../src/guestfs-actions.pod:3116 ../src/guestfs-actions.pod:3135
10486 msgid ""
10487 "This function should only be called with a root device string as returned by "
10488 "C<guestfs_inspect_os>."
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../src/guestfs-actions.pod:2522
10493 msgid ""
10494 "This returns the architecture of the inspected operating system.  The "
10495 "possible return values are listed under C<guestfs_file_architecture>."
10496 msgstr ""
10497
10498 #. type: textblock
10499 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1697
10500 msgid ""
10501 "If the architecture could not be determined, then the string C<unknown> is "
10502 "returned."
10503 msgstr ""
10504
10505 #. type: textblock
10506 #: ../src/guestfs-actions.pod:2529 ../src/guestfs-actions.pod:2622
10507 #: ../src/guestfs-actions.pod:2733 ../src/guestfs-actions.pod:2753
10508 #: ../src/guestfs-actions.pod:2781 ../src/guestfs-actions.pod:2873
10509 #: ../src/guestfs-actions.pod:2904 ../src/guestfs-actions.pod:2928
10510 #: ../src/guestfs-actions.pod:2982 ../src/guestfs-actions.pod:3025
10511 #: ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3069
10512 #: ../src/guestfs-actions.pod:3089 ../src/guestfs-actions.pod:3106
10513 #: ../src/guestfs-actions.pod:3125 ../src/guestfs-actions.pod:3228
10514 #: ../src/guestfs-actions.pod:3269 ../fish/guestfish-actions.pod:1700
10515 #: ../fish/guestfish-actions.pod:1786 ../fish/guestfish-actions.pod:1874
10516 #: ../fish/guestfish-actions.pod:1889 ../fish/guestfish-actions.pod:1910
10517 #: ../fish/guestfish-actions.pod:1980 ../fish/guestfish-actions.pod:2004
10518 #: ../fish/guestfish-actions.pod:2021 ../fish/guestfish-actions.pod:2064
10519 #: ../fish/guestfish-actions.pod:2099 ../fish/guestfish-actions.pod:2115
10520 #: ../fish/guestfish-actions.pod:2131 ../fish/guestfish-actions.pod:2144
10521 #: ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2172
10522 #: ../fish/guestfish-actions.pod:2271 ../fish/guestfish-actions.pod:2305
10523 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10524 msgstr ""
10525
10526 #. type: =head2
10527 #: ../src/guestfs-actions.pod:2536
10528 msgid "guestfs_inspect_get_distro"
10529 msgstr ""
10530
10531 #. type: verbatim
10532 #: ../src/guestfs-actions.pod:2538
10533 #, no-wrap
10534 msgid ""
10535 " char *\n"
10536 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10537 "                             const char *root);\n"
10538 "\n"
10539 msgstr ""
10540
10541 #. type: textblock
10542 #: ../src/guestfs-actions.pod:2545 ../fish/guestfish-actions.pod:1709
10543 msgid ""
10544 "This returns the distro (distribution) of the inspected operating system."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1712
10549 msgid "Currently defined distros are:"
10550 msgstr ""
10551
10552 #. type: =item
10553 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1716
10554 msgid "\"archlinux\""
10555 msgstr "\"archlinux\""
10556
10557 #. type: textblock
10558 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1718
10559 msgid "Arch Linux."
10560 msgstr "Arch Linux."
10561
10562 #. type: =item
10563 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1720
10564 #, fuzzy
10565 #| msgid "\"gentoo\""
10566 msgid "\"centos\""
10567 msgstr "\"gentoo\""
10568
10569 #. type: textblock
10570 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1722
10571 msgid "CentOS."
10572 msgstr ""
10573
10574 #. type: =item
10575 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1724
10576 msgid "\"debian\""
10577 msgstr "\"debian\""
10578
10579 #. type: textblock
10580 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1726
10581 msgid "Debian."
10582 msgstr "Debian."
10583
10584 #. type: =item
10585 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1728
10586 msgid "\"fedora\""
10587 msgstr "\"fedora\""
10588
10589 #. type: textblock
10590 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1730
10591 msgid "Fedora."
10592 msgstr "Fedora."
10593
10594 #. type: =item
10595 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1732
10596 msgid "\"gentoo\""
10597 msgstr "\"gentoo\""
10598
10599 #. type: textblock
10600 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1734
10601 msgid "Gentoo."
10602 msgstr "Gentoo."
10603
10604 #. type: =item
10605 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1736
10606 msgid "\"linuxmint\""
10607 msgstr "\"linuxmint\""
10608
10609 #. type: textblock
10610 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:1738
10611 msgid "Linux Mint."
10612 msgstr "Linux Mint."
10613
10614 #. type: =item
10615 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1740
10616 msgid "\"mandriva\""
10617 msgstr "\"mandriva\""
10618
10619 #. type: textblock
10620 #: ../src/guestfs-actions.pod:2578 ../fish/guestfish-actions.pod:1742
10621 msgid "Mandriva."
10622 msgstr "Mandriva."
10623
10624 #. type: =item
10625 #: ../src/guestfs-actions.pod:2580 ../fish/guestfish-actions.pod:1744
10626 msgid "\"meego\""
10627 msgstr "\"meego\""
10628
10629 #. type: textblock
10630 #: ../src/guestfs-actions.pod:2582 ../fish/guestfish-actions.pod:1746
10631 msgid "MeeGo."
10632 msgstr "MeeGo."
10633
10634 #. type: =item
10635 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:1748
10636 msgid "\"pardus\""
10637 msgstr "\"pardus\""
10638
10639 #. type: textblock
10640 #: ../src/guestfs-actions.pod:2586 ../fish/guestfish-actions.pod:1750
10641 msgid "Pardus."
10642 msgstr "Pardus."
10643
10644 #. type: =item
10645 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1752
10646 msgid "\"redhat-based\""
10647 msgstr "\"redhat-based\""
10648
10649 #. type: textblock
10650 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:1754
10651 msgid "Some Red Hat-derived distro."
10652 msgstr "Дистрибутив, що походить від Red Hat."
10653
10654 #. type: =item
10655 #: ../src/guestfs-actions.pod:2592 ../fish/guestfish-actions.pod:1756
10656 msgid "\"rhel\""
10657 msgstr "\"rhel\""
10658
10659 #. type: textblock
10660 #: ../src/guestfs-actions.pod:2594 ../fish/guestfish-actions.pod:1758
10661 #, fuzzy
10662 #| msgid "Red Hat Enterprise Linux and some derivatives."
10663 msgid "Red Hat Enterprise Linux."
10664 msgstr "Red Hat Enterprise Linux та деякі з похідних дистрибутивів."
10665
10666 #. type: =item
10667 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1760
10668 msgid "\"scientificlinux\""
10669 msgstr ""
10670
10671 #. type: textblock
10672 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1762
10673 msgid "Scientific Linux."
10674 msgstr ""
10675
10676 #. type: =item
10677 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1764
10678 msgid "\"slackware\""
10679 msgstr ""
10680
10681 #. type: textblock
10682 #: ../src/guestfs-actions.pod:2602 ../fish/guestfish-actions.pod:1766
10683 msgid "Slackware."
10684 msgstr ""
10685
10686 #. type: =item
10687 #: ../src/guestfs-actions.pod:2604 ../fish/guestfish-actions.pod:1768
10688 msgid "\"ubuntu\""
10689 msgstr "\"ubuntu\""
10690
10691 #. type: textblock
10692 #: ../src/guestfs-actions.pod:2606 ../fish/guestfish-actions.pod:1770
10693 msgid "Ubuntu."
10694 msgstr "Ubuntu."
10695
10696 #. type: =item
10697 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2724
10698 #: ../src/guestfs-actions.pod:3016 ../fish/guestfish-actions.pod:1772
10699 #: ../fish/guestfish-actions.pod:1865 ../fish/guestfish-actions.pod:2090
10700 msgid "\"unknown\""
10701 msgstr "\"unknown\""
10702
10703 #. type: textblock
10704 #: ../src/guestfs-actions.pod:2610 ../fish/guestfish-actions.pod:1774
10705 msgid "The distro could not be determined."
10706 msgstr "Дистрибутив, тип якого не вдалося визначити."
10707
10708 #. type: =item
10709 #: ../src/guestfs-actions.pod:2612 ../src/guestfs-actions.pod:3008
10710 #: ../fish/guestfish-actions.pod:1776 ../fish/guestfish-actions.pod:2082
10711 msgid "\"windows\""
10712 msgstr "\"windows\""
10713
10714 #. type: textblock
10715 #: ../src/guestfs-actions.pod:2614 ../fish/guestfish-actions.pod:1778
10716 msgid ""
10717 "Windows does not have distributions.  This string is returned if the OS type "
10718 "is Windows."
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../src/guestfs-actions.pod:2619 ../src/guestfs-actions.pod:2730
10723 #: ../src/guestfs-actions.pod:3022 ../fish/guestfish-actions.pod:1783
10724 #: ../fish/guestfish-actions.pod:1871 ../fish/guestfish-actions.pod:2096
10725 msgid ""
10726 "Future versions of libguestfs may return other strings here.  The caller "
10727 "should be prepared to handle any string."
10728 msgstr ""
10729
10730 #. type: =head2
10731 #: ../src/guestfs-actions.pod:2629
10732 msgid "guestfs_inspect_get_drive_mappings"
10733 msgstr ""
10734
10735 #. type: verbatim
10736 #: ../src/guestfs-actions.pod:2631
10737 #, no-wrap
10738 msgid ""
10739 " char **\n"
10740 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
10741 "                                     const char *root);\n"
10742 "\n"
10743 msgstr ""
10744
10745 #. type: textblock
10746 #: ../src/guestfs-actions.pod:2638 ../fish/guestfish-actions.pod:1795
10747 msgid ""
10748 "This call is useful for Windows which uses a primitive system of assigning "
10749 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10750 "Windows Registry to find out how disks/partitions are mapped to drive "
10751 "letters, and returns a hash table as in the example below:"
10752 msgstr ""
10753
10754 #. type: verbatim
10755 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1801
10756 #, no-wrap
10757 msgid ""
10758 " C      =>     /dev/vda2\n"
10759 " E      =>     /dev/vdb1\n"
10760 " F      =>     /dev/vdc1\n"
10761 "\n"
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1805
10766 msgid ""
10767 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10768 "and just contains the drive letter, without the customary colon separator "
10769 "character."
10770 msgstr ""
10771
10772 #. type: textblock
10773 #: ../src/guestfs-actions.pod:2652 ../fish/guestfish-actions.pod:1809
10774 msgid ""
10775 "In future we may support other operating systems that also used drive "
10776 "letters, but the keys for those might not be case insensitive and might be "
10777 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10778 "C<h1> etc."
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../src/guestfs-actions.pod:2657 ../fish/guestfish-actions.pod:1814
10783 msgid ""
10784 "For Windows guests, currently only hard drive mappings are returned.  "
10785 "Removable disks (eg. DVD-ROMs) are ignored."
10786 msgstr ""
10787
10788 #. type: textblock
10789 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:1817
10790 msgid ""
10791 "For guests that do not use drive mappings, or if the drive mappings could "
10792 "not be determined, this returns an empty hash table."
10793 msgstr ""
10794
10795 #. type: textblock
10796 #: ../src/guestfs-actions.pod:2663
10797 msgid ""
10798 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10799 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../src/guestfs-actions.pod:2667 ../src/guestfs-actions.pod:2843
10804 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:4843
10805 #: ../src/guestfs-actions.pod:6776
10806 msgid ""
10807 "This function returns a NULL-terminated array of strings, or NULL if there "
10808 "was an error.  The array of strings will always have length C<2n+1>, where "
10809 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
10810 "caller must free the strings and the array after use>."
10811 msgstr ""
10812
10813 #. type: =head2
10814 #: ../src/guestfs-actions.pod:2673
10815 msgid "guestfs_inspect_get_filesystems"
10816 msgstr ""
10817
10818 #. type: verbatim
10819 #: ../src/guestfs-actions.pod:2675
10820 #, no-wrap
10821 msgid ""
10822 " char **\n"
10823 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
10824 "                                  const char *root);\n"
10825 "\n"
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../src/guestfs-actions.pod:2682 ../fish/guestfish-actions.pod:1831
10830 msgid ""
10831 "This returns a list of all the filesystems that we think are associated with "
10832 "this operating system.  This includes the root filesystem, other ordinary "
10833 "filesystems, and non-mounted devices like swap partitions."
10834 msgstr ""
10835
10836 #. type: textblock
10837 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:1836
10838 msgid ""
10839 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10840 "to be shared between operating systems."
10841 msgstr ""
10842
10843 #. type: textblock
10844 #: ../src/guestfs-actions.pod:2690
10845 msgid ""
10846 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10847 "C<guestfs_inspect_get_mountpoints>."
10848 msgstr ""
10849
10850 #. type: =head2
10851 #: ../src/guestfs-actions.pod:2699
10852 msgid "guestfs_inspect_get_format"
10853 msgstr ""
10854
10855 #. type: verbatim
10856 #: ../src/guestfs-actions.pod:2701
10857 #, no-wrap
10858 msgid ""
10859 " char *\n"
10860 " guestfs_inspect_get_format (guestfs_h *g,\n"
10861 "                             const char *root);\n"
10862 "\n"
10863 msgstr ""
10864
10865 #. type: textblock
10866 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:1849
10867 msgid ""
10868 "This returns the format of the inspected operating system.  You can use it "
10869 "to detect install images, live CDs and similar."
10870 msgstr ""
10871
10872 #. type: textblock
10873 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
10874 msgid "Currently defined formats are:"
10875 msgstr ""
10876
10877 #. type: =item
10878 #: ../src/guestfs-actions.pod:2715 ../fish/guestfish-actions.pod:1856
10879 msgid "\"installed\""
10880 msgstr "\"installed\""
10881
10882 #. type: textblock
10883 #: ../src/guestfs-actions.pod:2717 ../fish/guestfish-actions.pod:1858
10884 msgid "This is an installed operating system."
10885 msgstr "Це встановлена операційна система."
10886
10887 #. type: =item
10888 #: ../src/guestfs-actions.pod:2719 ../fish/guestfish-actions.pod:1860
10889 msgid "\"installer\""
10890 msgstr ""
10891
10892 #. type: textblock
10893 #: ../src/guestfs-actions.pod:2721 ../fish/guestfish-actions.pod:1862
10894 msgid ""
10895 "The disk image being inspected is not an installed operating system, but a "
10896 "I<bootable> install disk, live CD, or similar."
10897 msgstr ""
10898
10899 #. type: textblock
10900 #: ../src/guestfs-actions.pod:2726 ../fish/guestfish-actions.pod:1867
10901 msgid "The format of this disk image is not known."
10902 msgstr ""
10903
10904 #. type: =head2
10905 #: ../src/guestfs-actions.pod:2738
10906 msgid "guestfs_inspect_get_hostname"
10907 msgstr ""
10908
10909 #. type: verbatim
10910 #: ../src/guestfs-actions.pod:2740
10911 #, no-wrap
10912 msgid ""
10913 " char *\n"
10914 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
10915 "                               const char *root);\n"
10916 "\n"
10917 msgstr ""
10918
10919 #. type: textblock
10920 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1883
10921 msgid ""
10922 "This function returns the hostname of the operating system as found by "
10923 "inspection of the guest's configuration files."
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../src/guestfs-actions.pod:2750 ../fish/guestfish-actions.pod:1886
10928 msgid ""
10929 "If the hostname could not be determined, then the string C<unknown> is "
10930 "returned."
10931 msgstr ""
10932
10933 #. type: textblock
10934 #: ../src/guestfs-actions.pod:2758
10935 msgid "(Added in 1.7.9)"
10936 msgstr ""
10937
10938 #. type: =head2
10939 #: ../src/guestfs-actions.pod:2760
10940 msgid "guestfs_inspect_get_major_version"
10941 msgstr ""
10942
10943 #. type: verbatim
10944 #: ../src/guestfs-actions.pod:2762
10945 #, no-wrap
10946 msgid ""
10947 " int\n"
10948 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
10949 "                                    const char *root);\n"
10950 "\n"
10951 msgstr ""
10952
10953 #. type: textblock
10954 #: ../src/guestfs-actions.pod:2769 ../fish/guestfish-actions.pod:1898
10955 msgid ""
10956 "This returns the major version number of the inspected operating system."
10957 msgstr ""
10958
10959 #. type: textblock
10960 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1901
10961 msgid ""
10962 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10963 "popular public names used by the operating system.  Notably the operating "
10964 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10965 "1).  You can find out the real versions corresponding to releases of Windows "
10966 "by consulting Wikipedia or MSDN."
10967 msgstr ""
10968
10969 #. type: textblock
10970 #: ../src/guestfs-actions.pod:2779 ../src/guestfs-actions.pod:2799
10971 #: ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1922
10972 msgid "If the version could not be determined, then C<0> is returned."
10973 msgstr ""
10974
10975 #. type: =head2
10976 #: ../src/guestfs-actions.pod:2787
10977 msgid "guestfs_inspect_get_minor_version"
10978 msgstr ""
10979
10980 #. type: verbatim
10981 #: ../src/guestfs-actions.pod:2789
10982 #, no-wrap
10983 msgid ""
10984 " int\n"
10985 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
10986 "                                    const char *root);\n"
10987 "\n"
10988 msgstr ""
10989
10990 #. type: textblock
10991 #: ../src/guestfs-actions.pod:2796 ../fish/guestfish-actions.pod:1919
10992 msgid ""
10993 "This returns the minor version number of the inspected operating system."
10994 msgstr ""
10995
10996 #. type: textblock
10997 #: ../src/guestfs-actions.pod:2801
10998 msgid ""
10999 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11000 "C<guestfs_inspect_get_major_version>."
11001 msgstr ""
11002
11003 #. type: =head2
11004 #: ../src/guestfs-actions.pod:2808
11005 msgid "guestfs_inspect_get_mountpoints"
11006 msgstr ""
11007
11008 #. type: verbatim
11009 #: ../src/guestfs-actions.pod:2810
11010 #, no-wrap
11011 msgid ""
11012 " char **\n"
11013 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11014 "                                  const char *root);\n"
11015 "\n"
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../src/guestfs-actions.pod:2817 ../fish/guestfish-actions.pod:1934
11020 msgid ""
11021 "This returns a hash of where we think the filesystems associated with this "
11022 "operating system should be mounted.  Callers should note that this is at "
11023 "best an educated guess made by reading configuration files such as C</etc/"
11024 "fstab>.  I<In particular note> that this may return filesystems which are "
11025 "non-existent or not mountable and callers should be prepared to handle or "
11026 "ignore failures if they try to mount them."
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../src/guestfs-actions.pod:2826 ../fish/guestfish-actions.pod:1943
11031 msgid ""
11032 "Each element in the returned hashtable has a key which is the path of the "
11033 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11034 "mounted there (eg. C</dev/sda1>)."
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../src/guestfs-actions.pod:2831 ../fish/guestfish-actions.pod:1948
11039 msgid ""
11040 "Non-mounted devices such as swap devices are I<not> returned in this list."
11041 msgstr ""
11042
11043 #. type: textblock
11044 #: ../src/guestfs-actions.pod:2834
11045 msgid ""
11046 "For operating systems like Windows which still use drive letters, this call "
11047 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11048 "information about the mapping of drive letters to partitions, see "
11049 "C<guestfs_inspect_get_drive_mappings>."
11050 msgstr ""
11051
11052 #. type: textblock
11053 #: ../src/guestfs-actions.pod:2840
11054 msgid ""
11055 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11056 "C<guestfs_inspect_get_filesystems>."
11057 msgstr ""
11058
11059 #. type: =head2
11060 #: ../src/guestfs-actions.pod:2851
11061 msgid "guestfs_inspect_get_package_format"
11062 msgstr ""
11063
11064 #. type: verbatim
11065 #: ../src/guestfs-actions.pod:2853
11066 #, no-wrap
11067 msgid ""
11068 " char *\n"
11069 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11070 "                                     const char *root);\n"
11071 "\n"
11072 msgstr ""
11073
11074 #. type: textblock
11075 #: ../src/guestfs-actions.pod:2860
11076 msgid ""
11077 "This function and C<guestfs_inspect_get_package_management> return the "
11078 "package format and package management tool used by the inspected operating "
11079 "system.  For example for Fedora these functions would return C<rpm> (package "
11080 "format) and C<yum> (package management)."
11081 msgstr ""
11082
11083 #. type: textblock
11084 #: ../src/guestfs-actions.pod:2866 ../fish/guestfish-actions.pod:1973
11085 msgid ""
11086 "This returns the string C<unknown> if we could not determine the package "
11087 "format I<or> if the operating system does not have a real packaging system "
11088 "(eg. Windows)."
11089 msgstr ""
11090
11091 #. type: textblock
11092 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:1977
11093 msgid ""
11094 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11095 "Future versions of libguestfs may return other strings."
11096 msgstr ""
11097
11098 #. type: textblock
11099 #: ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:2909
11100 msgid "(Added in 1.7.5)"
11101 msgstr ""
11102
11103 #. type: =head2
11104 #: ../src/guestfs-actions.pod:2880
11105 msgid "guestfs_inspect_get_package_management"
11106 msgstr ""
11107
11108 #. type: verbatim
11109 #: ../src/guestfs-actions.pod:2882
11110 #, no-wrap
11111 msgid ""
11112 " char *\n"
11113 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11114 "                                         const char *root);\n"
11115 "\n"
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../src/guestfs-actions.pod:2889
11120 msgid ""
11121 "C<guestfs_inspect_get_package_format> and this function return the package "
11122 "format and package management tool used by the inspected operating system.  "
11123 "For example for Fedora these functions would return C<rpm> (package format) "
11124 "and C<yum> (package management)."
11125 msgstr ""
11126
11127 #. type: textblock
11128 #: ../src/guestfs-actions.pod:2895 ../fish/guestfish-actions.pod:1995
11129 msgid ""
11130 "This returns the string C<unknown> if we could not determine the package "
11131 "management tool I<or> if the operating system does not have a real packaging "
11132 "system (eg. Windows)."
11133 msgstr ""
11134
11135 #. type: textblock
11136 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1999
11137 msgid ""
11138 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11139 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11140 "libguestfs may return other strings."
11141 msgstr ""
11142
11143 #. type: =head2
11144 #: ../src/guestfs-actions.pod:2911
11145 msgid "guestfs_inspect_get_product_name"
11146 msgstr ""
11147
11148 #. type: verbatim
11149 #: ../src/guestfs-actions.pod:2913
11150 #, no-wrap
11151 msgid ""
11152 " char *\n"
11153 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11154 "                                   const char *root);\n"
11155 "\n"
11156 msgstr ""
11157
11158 #. type: textblock
11159 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2013
11160 msgid ""
11161 "This returns the product name of the inspected operating system.  The "
11162 "product name is generally some freeform string which can be displayed to the "
11163 "user, but should not be parsed by programs."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2018
11168 msgid ""
11169 "If the product name could not be determined, then the string C<unknown> is "
11170 "returned."
11171 msgstr ""
11172
11173 #. type: =head2
11174 #: ../src/guestfs-actions.pod:2935
11175 msgid "guestfs_inspect_get_product_variant"
11176 msgstr ""
11177
11178 #. type: verbatim
11179 #: ../src/guestfs-actions.pod:2937
11180 #, no-wrap
11181 msgid ""
11182 " char *\n"
11183 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
11184 "                                      const char *root);\n"
11185 "\n"
11186 msgstr ""
11187
11188 #. type: textblock
11189 #: ../src/guestfs-actions.pod:2944 ../fish/guestfish-actions.pod:2030
11190 #, fuzzy
11191 #| msgid "This is an installed operating system."
11192 msgid "This returns the product variant of the inspected operating system."
11193 msgstr "Це встановлена операційна система."
11194
11195 #. type: textblock
11196 #: ../src/guestfs-actions.pod:2947 ../fish/guestfish-actions.pod:2033
11197 msgid ""
11198 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11199 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11200 "is usually a string such as C<Client> or C<Server> (other values are "
11201 "possible).  This can be used to distinguish consumer and enterprise versions "
11202 "of Windows that have the same version number (for example, Windows 7 and "
11203 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11204 "the latter is C<Server>)."
11205 msgstr ""
11206
11207 #. type: textblock
11208 #: ../src/guestfs-actions.pod:2956 ../fish/guestfish-actions.pod:2042
11209 msgid ""
11210 "For enterprise Linux guests, in future we intend this to return the product "
11211 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11212 "implemented at present."
11213 msgstr ""
11214
11215 #. type: textblock
11216 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2046
11217 msgid ""
11218 "If the product variant could not be determined, then the string C<unknown> "
11219 "is returned."
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../src/guestfs-actions.pod:2963
11224 msgid ""
11225 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11226 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
11227 msgstr ""
11228
11229 #. type: =head2
11230 #: ../src/guestfs-actions.pod:2970
11231 msgid "guestfs_inspect_get_roots"
11232 msgstr ""
11233
11234 #. type: verbatim
11235 #: ../src/guestfs-actions.pod:2972
11236 #, no-wrap
11237 msgid ""
11238 " char **\n"
11239 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11240 "\n"
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../src/guestfs-actions.pod:2975
11245 msgid ""
11246 "This function is a convenient way to get the list of root devices, as "
11247 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11248 "the whole inspection process."
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../src/guestfs-actions.pod:2979
11253 msgid ""
11254 "This returns an empty list if either no root devices were found or the "
11255 "caller has not called C<guestfs_inspect_os>."
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../src/guestfs-actions.pod:2988
11260 msgid "(Added in 1.7.3)"
11261 msgstr ""
11262
11263 #. type: =head2
11264 #: ../src/guestfs-actions.pod:2990
11265 msgid "guestfs_inspect_get_type"
11266 msgstr ""
11267
11268 #. type: verbatim
11269 #: ../src/guestfs-actions.pod:2992
11270 #, no-wrap
11271 msgid ""
11272 " char *\n"
11273 " guestfs_inspect_get_type (guestfs_h *g,\n"
11274 "                           const char *root);\n"
11275 "\n"
11276 msgstr ""
11277
11278 #. type: textblock
11279 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2073
11280 msgid ""
11281 "This returns the type of the inspected operating system.  Currently defined "
11282 "types are:"
11283 msgstr ""
11284
11285 #. type: =item
11286 #: ../src/guestfs-actions.pod:3004 ../fish/guestfish-actions.pod:2078
11287 msgid "\"linux\""
11288 msgstr "\"linux\""
11289
11290 #. type: textblock
11291 #: ../src/guestfs-actions.pod:3006 ../fish/guestfish-actions.pod:2080
11292 msgid "Any Linux-based operating system."
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../src/guestfs-actions.pod:3010 ../fish/guestfish-actions.pod:2084
11297 msgid "Any Microsoft Windows operating system."
11298 msgstr ""
11299
11300 #. type: =item
11301 #: ../src/guestfs-actions.pod:3012 ../fish/guestfish-actions.pod:2086
11302 msgid "\"freebsd\""
11303 msgstr "\"freebsd\""
11304
11305 #. type: textblock
11306 #: ../src/guestfs-actions.pod:3014 ../fish/guestfish-actions.pod:2088
11307 msgid "FreeBSD."
11308 msgstr "FreeBSD."
11309
11310 #. type: textblock
11311 #: ../src/guestfs-actions.pod:3018 ../fish/guestfish-actions.pod:2092
11312 msgid "The operating system type could not be determined."
11313 msgstr ""
11314
11315 #. type: =head2
11316 #: ../src/guestfs-actions.pod:3032
11317 msgid "guestfs_inspect_get_windows_current_control_set"
11318 msgstr ""
11319
11320 #. type: verbatim
11321 #: ../src/guestfs-actions.pod:3034
11322 #, no-wrap
11323 msgid ""
11324 " char *\n"
11325 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
11326 "                                                  const char *root);\n"
11327 "\n"
11328 msgstr ""
11329
11330 #. type: textblock
11331 #: ../src/guestfs-actions.pod:3041 ../fish/guestfish-actions.pod:2108
11332 msgid ""
11333 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11334 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11335 msgstr ""
11336
11337 #. type: textblock
11338 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2111
11339 msgid ""
11340 "This call assumes that the guest is Windows and that the Registry could be "
11341 "examined by inspection.  If this is not the case then an error is returned."
11342 msgstr ""
11343
11344 #. type: =head2
11345 #: ../src/guestfs-actions.pod:3053
11346 msgid "guestfs_inspect_get_windows_systemroot"
11347 msgstr ""
11348
11349 #. type: verbatim
11350 #: ../src/guestfs-actions.pod:3055
11351 #, no-wrap
11352 msgid ""
11353 " char *\n"
11354 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11355 "                                         const char *root);\n"
11356 "\n"
11357 msgstr ""
11358
11359 #. type: textblock
11360 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2124
11361 msgid ""
11362 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11363 "is a directory path such as C</WINDOWS>."
11364 msgstr ""
11365
11366 #. type: textblock
11367 #: ../src/guestfs-actions.pod:3065 ../fish/guestfish-actions.pod:2127
11368 msgid ""
11369 "This call assumes that the guest is Windows and that the systemroot could be "
11370 "determined by inspection.  If this is not the case then an error is returned."
11371 msgstr ""
11372
11373 #. type: textblock
11374 #: ../src/guestfs-actions.pod:3074
11375 msgid "(Added in 1.5.25)"
11376 msgstr ""
11377
11378 #. type: =head2
11379 #: ../src/guestfs-actions.pod:3076
11380 msgid "guestfs_inspect_is_live"
11381 msgstr ""
11382
11383 #. type: verbatim
11384 #: ../src/guestfs-actions.pod:3078
11385 #, no-wrap
11386 msgid ""
11387 " int\n"
11388 " guestfs_inspect_is_live (guestfs_h *g,\n"
11389 "                          const char *root);\n"
11390 "\n"
11391 msgstr ""
11392
11393 #. type: textblock
11394 #: ../src/guestfs-actions.pod:3085
11395 msgid ""
11396 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11397 "disk), then this returns true if a live image was detected on the disk."
11398 msgstr ""
11399
11400 #. type: =head2
11401 #: ../src/guestfs-actions.pod:3093
11402 msgid "guestfs_inspect_is_multipart"
11403 msgstr ""
11404
11405 #. type: verbatim
11406 #: ../src/guestfs-actions.pod:3095
11407 #, no-wrap
11408 msgid ""
11409 " int\n"
11410 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11411 "                               const char *root);\n"
11412 "\n"
11413 msgstr ""
11414
11415 #. type: textblock
11416 #: ../src/guestfs-actions.pod:3102
11417 msgid ""
11418 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11419 "disk), then this returns true if the disk is part of a set."
11420 msgstr ""
11421
11422 #. type: =head2
11423 #: ../src/guestfs-actions.pod:3110
11424 msgid "guestfs_inspect_is_netinst"
11425 msgstr ""
11426
11427 #. type: verbatim
11428 #: ../src/guestfs-actions.pod:3112
11429 #, no-wrap
11430 msgid ""
11431 " int\n"
11432 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
11433 "                             const char *root);\n"
11434 "\n"
11435 msgstr ""
11436
11437 #. type: textblock
11438 #: ../src/guestfs-actions.pod:3119
11439 msgid ""
11440 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11441 "disk), then this returns true if the disk is a network installer, ie. not a "
11442 "self-contained install CD but one which is likely to require network access "
11443 "to complete the install."
11444 msgstr ""
11445
11446 #. type: =head2
11447 #: ../src/guestfs-actions.pod:3129
11448 msgid "guestfs_inspect_list_applications"
11449 msgstr ""
11450
11451 #. type: verbatim
11452 #: ../src/guestfs-actions.pod:3131
11453 #, no-wrap
11454 msgid ""
11455 " struct guestfs_application_list *\n"
11456 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11457 "                                    const char *root);\n"
11458 "\n"
11459 msgstr ""
11460
11461 #. type: textblock
11462 #: ../src/guestfs-actions.pod:3138 ../fish/guestfish-actions.pod:2181
11463 msgid "Return the list of applications installed in the operating system."
11464 msgstr ""
11465
11466 #. type: textblock
11467 #: ../src/guestfs-actions.pod:3140
11468 msgid ""
11469 "I<Note:> This call works differently from other parts of the inspection "
11470 "API.  You have to call C<guestfs_inspect_os>, then "
11471 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11472 "this.  Listing applications is a significantly more difficult operation "
11473 "which requires access to the full filesystem.  Also note that unlike the "
11474 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11475 "the libguestfs handle, this call actually reads parts of the mounted "
11476 "filesystems during the call."
11477 msgstr ""
11478
11479 #. type: textblock
11480 #: ../src/guestfs-actions.pod:3150 ../fish/guestfish-actions.pod:2193
11481 msgid ""
11482 "This returns an empty list if the inspection code was not able to determine "
11483 "the list of applications."
11484 msgstr ""
11485
11486 #. type: textblock
11487 #: ../src/guestfs-actions.pod:3153 ../fish/guestfish-actions.pod:2196
11488 msgid "The application structure contains the following fields:"
11489 msgstr ""
11490
11491 #. type: =item
11492 #: ../src/guestfs-actions.pod:3157 ../fish/guestfish-actions.pod:2200
11493 msgid "C<app_name>"
11494 msgstr "C<app_name>"
11495
11496 #. type: textblock
11497 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2202
11498 msgid ""
11499 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11500 "guests, this is the package name."
11501 msgstr ""
11502
11503 #. type: =item
11504 #: ../src/guestfs-actions.pod:3162 ../fish/guestfish-actions.pod:2205
11505 msgid "C<app_display_name>"
11506 msgstr "C<app_display_name>"
11507
11508 #. type: textblock
11509 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2207
11510 msgid ""
11511 "The display name of the application, sometimes localized to the install "
11512 "language of the guest operating system."
11513 msgstr ""
11514
11515 #. type: textblock
11516 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2210
11517 msgid ""
11518 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11519 "to display something can use C<app_name> instead."
11520 msgstr ""
11521
11522 #. type: =item
11523 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2213
11524 msgid "C<app_epoch>"
11525 msgstr "C<app_epoch>"
11526
11527 #. type: textblock
11528 #: ../src/guestfs-actions.pod:3172 ../fish/guestfish-actions.pod:2215
11529 msgid ""
11530 "For package managers which use epochs, this contains the epoch of the "
11531 "package (an integer).  If unavailable, this is returned as C<0>."
11532 msgstr ""
11533
11534 #. type: =item
11535 #: ../src/guestfs-actions.pod:3175 ../fish/guestfish-actions.pod:2218
11536 msgid "C<app_version>"
11537 msgstr "C<app_version>"
11538
11539 #. type: textblock
11540 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2220
11541 msgid ""
11542 "The version string of the application or package.  If unavailable this is "
11543 "returned as an empty string C<\"\">."
11544 msgstr ""
11545
11546 #. type: =item
11547 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2223
11548 msgid "C<app_release>"
11549 msgstr "C<app_release>"
11550
11551 #. type: textblock
11552 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2225
11553 msgid ""
11554 "The release string of the application or package, for package managers that "
11555 "use this.  If unavailable this is returned as an empty string C<\"\">."
11556 msgstr ""
11557
11558 #. type: =item
11559 #: ../src/guestfs-actions.pod:3186 ../fish/guestfish-actions.pod:2229
11560 msgid "C<app_install_path>"
11561 msgstr "C<app_install_path>"
11562
11563 #. type: textblock
11564 #: ../src/guestfs-actions.pod:3188 ../fish/guestfish-actions.pod:2231
11565 msgid ""
11566 "The installation path of the application (on operating systems such as "
11567 "Windows which use installation paths).  This path is in the format used by "
11568 "the guest operating system, it is not a libguestfs path."
11569 msgstr ""
11570
11571 #. type: textblock
11572 #: ../src/guestfs-actions.pod:3193 ../fish/guestfish-actions.pod:2236
11573 msgid "If unavailable this is returned as an empty string C<\"\">."
11574 msgstr ""
11575
11576 #. type: =item
11577 #: ../src/guestfs-actions.pod:3195 ../fish/guestfish-actions.pod:2238
11578 msgid "C<app_trans_path>"
11579 msgstr "C<app_trans_path>"
11580
11581 #. type: textblock
11582 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2240
11583 msgid ""
11584 "The install path translated into a libguestfs path.  If unavailable this is "
11585 "returned as an empty string C<\"\">."
11586 msgstr ""
11587
11588 #. type: =item
11589 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2243
11590 msgid "C<app_publisher>"
11591 msgstr "C<app_publisher>"
11592
11593 #. type: textblock
11594 #: ../src/guestfs-actions.pod:3202 ../fish/guestfish-actions.pod:2245
11595 msgid ""
11596 "The name of the publisher of the application, for package managers that use "
11597 "this.  If unavailable this is returned as an empty string C<\"\">."
11598 msgstr ""
11599
11600 #. type: =item
11601 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2249
11602 msgid "C<app_url>"
11603 msgstr "C<app_url>"
11604
11605 #. type: textblock
11606 #: ../src/guestfs-actions.pod:3208 ../fish/guestfish-actions.pod:2251
11607 msgid ""
11608 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11609 "returned as an empty string C<\"\">."
11610 msgstr ""
11611
11612 #. type: =item
11613 #: ../src/guestfs-actions.pod:3211 ../fish/guestfish-actions.pod:2254
11614 msgid "C<app_source_package>"
11615 msgstr ""
11616
11617 #. type: textblock
11618 #: ../src/guestfs-actions.pod:3213 ../fish/guestfish-actions.pod:2256
11619 msgid ""
11620 "For packaging systems which support this, the name of the source package.  "
11621 "If unavailable this is returned as an empty string C<\"\">."
11622 msgstr ""
11623
11624 #. type: =item
11625 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2259
11626 msgid "C<app_summary>"
11627 msgstr ""
11628
11629 #. type: textblock
11630 #: ../src/guestfs-actions.pod:3218 ../fish/guestfish-actions.pod:2261
11631 msgid ""
11632 "A short (usually one line) description of the application or package.  If "
11633 "unavailable this is returned as an empty string C<\"\">."
11634 msgstr ""
11635
11636 #. type: =item
11637 #: ../src/guestfs-actions.pod:3221 ../fish/guestfish-actions.pod:2264
11638 msgid "C<app_description>"
11639 msgstr ""
11640
11641 #. type: textblock
11642 #: ../src/guestfs-actions.pod:3223 ../fish/guestfish-actions.pod:2266
11643 msgid ""
11644 "A longer description of the application or package.  If unavailable this is "
11645 "returned as an empty string C<\"\">."
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../src/guestfs-actions.pod:3230
11650 msgid ""
11651 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11652 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11653 "after use>."
11654 msgstr ""
11655
11656 #. type: textblock
11657 #: ../src/guestfs-actions.pod:3234
11658 msgid "(Added in 1.7.8)"
11659 msgstr ""
11660
11661 #. type: =head2
11662 #: ../src/guestfs-actions.pod:3236
11663 msgid "guestfs_inspect_os"
11664 msgstr ""
11665
11666 #. type: verbatim
11667 #: ../src/guestfs-actions.pod:3238
11668 #, no-wrap
11669 msgid ""
11670 " char **\n"
11671 " guestfs_inspect_os (guestfs_h *g);\n"
11672 "\n"
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../src/guestfs-actions.pod:3241 ../fish/guestfish-actions.pod:2277
11677 msgid ""
11678 "This function uses other libguestfs functions and certain heuristics to "
11679 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11680 "for operating systems."
11681 msgstr ""
11682
11683 #. type: textblock
11684 #: ../src/guestfs-actions.pod:3245 ../fish/guestfish-actions.pod:2281
11685 msgid "The list returned is empty if no operating systems were found."
11686 msgstr ""
11687
11688 #. type: textblock
11689 #: ../src/guestfs-actions.pod:3247 ../fish/guestfish-actions.pod:2283
11690 msgid ""
11691 "If one operating system was found, then this returns a list with a single "
11692 "element, which is the name of the root filesystem of this operating system.  "
11693 "It is also possible for this function to return a list containing more than "
11694 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11695 "element being the root filesystem of one of the operating systems."
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../src/guestfs-actions.pod:3254
11700 msgid ""
11701 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11702 "functions in order to query further information about each operating system, "
11703 "such as the name and version."
11704 msgstr ""
11705
11706 #. type: textblock
11707 #: ../src/guestfs-actions.pod:3259
11708 msgid ""
11709 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11710 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11711 "the contents.  This should be called with no disks currently mounted.  The "
11712 "function may also use Augeas, so any existing Augeas handle will be closed."
11713 msgstr ""
11714
11715 #. type: textblock
11716 #: ../src/guestfs-actions.pod:3265 ../fish/guestfish-actions.pod:2301
11717 msgid ""
11718 "This function cannot decrypt encrypted disks.  The caller must do that first "
11719 "(supplying the necessary keys) if the disk is encrypted."
11720 msgstr ""
11721
11722 #. type: textblock
11723 #: ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3584
11724 #: ../src/guestfs-actions.pod:3646
11725 msgid "See also C<guestfs_list_filesystems>."
11726 msgstr ""
11727
11728 #. type: =head2
11729 #: ../src/guestfs-actions.pod:3279
11730 msgid "guestfs_is_blockdev"
11731 msgstr ""
11732
11733 #. type: verbatim
11734 #: ../src/guestfs-actions.pod:3281
11735 #, no-wrap
11736 msgid ""
11737 " int\n"
11738 " guestfs_is_blockdev (guestfs_h *g,\n"
11739 "                      const char *path);\n"
11740 "\n"
11741 msgstr ""
11742
11743 #. type: textblock
11744 #: ../src/guestfs-actions.pod:3285 ../fish/guestfish-actions.pod:2313
11745 msgid ""
11746 "This returns C<true> if and only if there is a block device with the given "
11747 "C<path> name."
11748 msgstr ""
11749
11750 #. type: textblock
11751 #: ../src/guestfs-actions.pod:3288 ../src/guestfs-actions.pod:3317
11752 #: ../src/guestfs-actions.pod:3347 ../src/guestfs-actions.pod:3362
11753 #: ../src/guestfs-actions.pod:3378 ../src/guestfs-actions.pod:3434
11754 #: ../src/guestfs-actions.pod:3449
11755 msgid "See also C<guestfs_stat>."
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../src/guestfs-actions.pod:3292 ../src/guestfs-actions.pod:3321
11760 #: ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3438
11761 #: ../src/guestfs-actions.pod:3453
11762 msgid "(Added in 1.5.10)"
11763 msgstr ""
11764
11765 #. type: =head2
11766 #: ../src/guestfs-actions.pod:3294
11767 msgid "guestfs_is_busy"
11768 msgstr ""
11769
11770 #. type: verbatim
11771 #: ../src/guestfs-actions.pod:3296
11772 #, no-wrap
11773 msgid ""
11774 " int\n"
11775 " guestfs_is_busy (guestfs_h *g);\n"
11776 "\n"
11777 msgstr ""
11778
11779 #. type: textblock
11780 #: ../src/guestfs-actions.pod:3299 ../fish/guestfish-actions.pod:2322
11781 msgid ""
11782 "This returns true iff this handle is busy processing a command (in the "
11783 "C<BUSY> state)."
11784 msgstr ""
11785
11786 #. type: =head2
11787 #: ../src/guestfs-actions.pod:3308
11788 msgid "guestfs_is_chardev"
11789 msgstr ""
11790
11791 #. type: verbatim
11792 #: ../src/guestfs-actions.pod:3310
11793 #, no-wrap
11794 msgid ""
11795 " int\n"
11796 " guestfs_is_chardev (guestfs_h *g,\n"
11797 "                     const char *path);\n"
11798 "\n"
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../src/guestfs-actions.pod:3314 ../fish/guestfish-actions.pod:2331
11803 msgid ""
11804 "This returns C<true> if and only if there is a character device with the "
11805 "given C<path> name."
11806 msgstr ""
11807
11808 #. type: =head2
11809 #: ../src/guestfs-actions.pod:3323
11810 msgid "guestfs_is_config"
11811 msgstr ""
11812
11813 #. type: verbatim
11814 #: ../src/guestfs-actions.pod:3325
11815 #, no-wrap
11816 msgid ""
11817 " int\n"
11818 " guestfs_is_config (guestfs_h *g);\n"
11819 "\n"
11820 msgstr ""
11821
11822 #. type: textblock
11823 #: ../src/guestfs-actions.pod:3328 ../fish/guestfish-actions.pod:2340
11824 msgid ""
11825 "This returns true iff this handle is being configured (in the C<CONFIG> "
11826 "state)."
11827 msgstr ""
11828
11829 #. type: =head2
11830 #: ../src/guestfs-actions.pod:3337
11831 msgid "guestfs_is_dir"
11832 msgstr ""
11833
11834 #. type: verbatim
11835 #: ../src/guestfs-actions.pod:3339
11836 #, no-wrap
11837 msgid ""
11838 " int\n"
11839 " guestfs_is_dir (guestfs_h *g,\n"
11840 "                 const char *path);\n"
11841 "\n"
11842 msgstr ""
11843
11844 #. type: textblock
11845 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2349
11846 msgid ""
11847 "This returns C<true> if and only if there is a directory with the given "
11848 "C<path> name.  Note that it returns false for other objects like files."
11849 msgstr ""
11850
11851 #. type: =head2
11852 #: ../src/guestfs-actions.pod:3353
11853 msgid "guestfs_is_fifo"
11854 msgstr ""
11855
11856 #. type: verbatim
11857 #: ../src/guestfs-actions.pod:3355
11858 #, no-wrap
11859 msgid ""
11860 " int\n"
11861 " guestfs_is_fifo (guestfs_h *g,\n"
11862 "                  const char *path);\n"
11863 "\n"
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../src/guestfs-actions.pod:3359 ../fish/guestfish-actions.pod:2359
11868 msgid ""
11869 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11870 "given C<path> name."
11871 msgstr ""
11872
11873 #. type: =head2
11874 #: ../src/guestfs-actions.pod:3368
11875 msgid "guestfs_is_file"
11876 msgstr ""
11877
11878 #. type: verbatim
11879 #: ../src/guestfs-actions.pod:3370
11880 #, no-wrap
11881 msgid ""
11882 " int\n"
11883 " guestfs_is_file (guestfs_h *g,\n"
11884 "                  const char *path);\n"
11885 "\n"
11886 msgstr ""
11887
11888 #. type: textblock
11889 #: ../src/guestfs-actions.pod:3374 ../fish/guestfish-actions.pod:2368
11890 msgid ""
11891 "This returns C<true> if and only if there is a regular file with the given "
11892 "C<path> name.  Note that it returns false for other objects like directories."
11893 msgstr ""
11894
11895 #. type: =head2
11896 #: ../src/guestfs-actions.pod:3384
11897 msgid "guestfs_is_launching"
11898 msgstr ""
11899
11900 #. type: verbatim
11901 #: ../src/guestfs-actions.pod:3386
11902 #, no-wrap
11903 msgid ""
11904 " int\n"
11905 " guestfs_is_launching (guestfs_h *g);\n"
11906 "\n"
11907 msgstr ""
11908
11909 #. type: textblock
11910 #: ../src/guestfs-actions.pod:3389 ../fish/guestfish-actions.pod:2378
11911 msgid ""
11912 "This returns true iff this handle is launching the subprocess (in the "
11913 "C<LAUNCHING> state)."
11914 msgstr ""
11915
11916 #. type: =head2
11917 #: ../src/guestfs-actions.pod:3398
11918 msgid "guestfs_is_lv"
11919 msgstr ""
11920
11921 #. type: verbatim
11922 #: ../src/guestfs-actions.pod:3400
11923 #, no-wrap
11924 msgid ""
11925 " int\n"
11926 " guestfs_is_lv (guestfs_h *g,\n"
11927 "                const char *device);\n"
11928 "\n"
11929 msgstr ""
11930
11931 #. type: textblock
11932 #: ../src/guestfs-actions.pod:3404 ../fish/guestfish-actions.pod:2387
11933 msgid ""
11934 "This command tests whether C<device> is a logical volume, and returns true "
11935 "iff this is the case."
11936 msgstr ""
11937
11938 #. type: =head2
11939 #: ../src/guestfs-actions.pod:3411
11940 msgid "guestfs_is_ready"
11941 msgstr ""
11942
11943 #. type: verbatim
11944 #: ../src/guestfs-actions.pod:3413
11945 #, no-wrap
11946 msgid ""
11947 " int\n"
11948 " guestfs_is_ready (guestfs_h *g);\n"
11949 "\n"
11950 msgstr ""
11951
11952 #. type: textblock
11953 #: ../src/guestfs-actions.pod:3416 ../fish/guestfish-actions.pod:2394
11954 msgid ""
11955 "This returns true iff this handle is ready to accept commands (in the "
11956 "C<READY> state)."
11957 msgstr ""
11958
11959 #. type: =head2
11960 #: ../src/guestfs-actions.pod:3425
11961 msgid "guestfs_is_socket"
11962 msgstr ""
11963
11964 #. type: verbatim
11965 #: ../src/guestfs-actions.pod:3427
11966 #, no-wrap
11967 msgid ""
11968 " int\n"
11969 " guestfs_is_socket (guestfs_h *g,\n"
11970 "                    const char *path);\n"
11971 "\n"
11972 msgstr ""
11973
11974 #. type: textblock
11975 #: ../src/guestfs-actions.pod:3431 ../fish/guestfish-actions.pod:2403
11976 msgid ""
11977 "This returns C<true> if and only if there is a Unix domain socket with the "
11978 "given C<path> name."
11979 msgstr ""
11980
11981 #. type: =head2
11982 #: ../src/guestfs-actions.pod:3440
11983 msgid "guestfs_is_symlink"
11984 msgstr ""
11985
11986 #. type: verbatim
11987 #: ../src/guestfs-actions.pod:3442
11988 #, no-wrap
11989 msgid ""
11990 " int\n"
11991 " guestfs_is_symlink (guestfs_h *g,\n"
11992 "                     const char *path);\n"
11993 "\n"
11994 msgstr ""
11995
11996 #. type: textblock
11997 #: ../src/guestfs-actions.pod:3446 ../fish/guestfish-actions.pod:2412
11998 msgid ""
11999 "This returns C<true> if and only if there is a symbolic link with the given "
12000 "C<path> name."
12001 msgstr ""
12002
12003 #. type: =head2
12004 #: ../src/guestfs-actions.pod:3455
12005 msgid "guestfs_is_zero"
12006 msgstr ""
12007
12008 #. type: verbatim
12009 #: ../src/guestfs-actions.pod:3457
12010 #, no-wrap
12011 msgid ""
12012 " int\n"
12013 " guestfs_is_zero (guestfs_h *g,\n"
12014 "                  const char *path);\n"
12015 "\n"
12016 msgstr ""
12017
12018 #. type: textblock
12019 #: ../src/guestfs-actions.pod:3461 ../fish/guestfish-actions.pod:2421
12020 msgid ""
12021 "This returns true iff the file exists and the file is empty or it contains "
12022 "all zero bytes."
12023 msgstr ""
12024
12025 #. type: =head2
12026 #: ../src/guestfs-actions.pod:3466
12027 msgid "guestfs_is_zero_device"
12028 msgstr ""
12029
12030 #. type: verbatim
12031 #: ../src/guestfs-actions.pod:3468
12032 #, no-wrap
12033 msgid ""
12034 " int\n"
12035 " guestfs_is_zero_device (guestfs_h *g,\n"
12036 "                         const char *device);\n"
12037 "\n"
12038 msgstr ""
12039
12040 #. type: textblock
12041 #: ../src/guestfs-actions.pod:3472 ../fish/guestfish-actions.pod:2428
12042 msgid "This returns true iff the device exists and contains all zero bytes."
12043 msgstr ""
12044
12045 #. type: textblock
12046 #: ../src/guestfs-actions.pod:3474 ../fish/guestfish-actions.pod:2430
12047 msgid "Note that for large devices this can take a long time to run."
12048 msgstr ""
12049
12050 #. type: =head2
12051 #: ../src/guestfs-actions.pod:3478
12052 msgid "guestfs_kill_subprocess"
12053 msgstr ""
12054
12055 #. type: verbatim
12056 #: ../src/guestfs-actions.pod:3480
12057 #, no-wrap
12058 msgid ""
12059 " int\n"
12060 " guestfs_kill_subprocess (guestfs_h *g);\n"
12061 "\n"
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../src/guestfs-actions.pod:3483 ../fish/guestfish-actions.pod:2436
12066 msgid "This kills the qemu subprocess.  You should never need to call this."
12067 msgstr ""
12068
12069 #. type: =head2
12070 #: ../src/guestfs-actions.pod:3489
12071 msgid "guestfs_launch"
12072 msgstr ""
12073
12074 #. type: verbatim
12075 #: ../src/guestfs-actions.pod:3491
12076 #, no-wrap
12077 msgid ""
12078 " int\n"
12079 " guestfs_launch (guestfs_h *g);\n"
12080 "\n"
12081 msgstr ""
12082
12083 #. type: textblock
12084 #: ../src/guestfs-actions.pod:3494 ../fish/guestfish-actions.pod:2444
12085 msgid ""
12086 "Internally libguestfs is implemented by running a virtual machine using "
12087 "L<qemu(1)>."
12088 msgstr ""
12089
12090 #. type: textblock
12091 #: ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2447
12092 msgid ""
12093 "You should call this after configuring the handle (eg. adding drives) but "
12094 "before performing any actions."
12095 msgstr ""
12096
12097 #. type: =head2
12098 #: ../src/guestfs-actions.pod:3509
12099 msgid "guestfs_lchown"
12100 msgstr ""
12101
12102 #. type: verbatim
12103 #: ../src/guestfs-actions.pod:3511
12104 #, no-wrap
12105 msgid ""
12106 " int\n"
12107 " guestfs_lchown (guestfs_h *g,\n"
12108 "                 int owner,\n"
12109 "                 int group,\n"
12110 "                 const char *path);\n"
12111 "\n"
12112 msgstr ""
12113
12114 #. type: textblock
12115 #: ../src/guestfs-actions.pod:3517
12116 msgid ""
12117 "Change the file owner to C<owner> and group to C<group>.  This is like "
12118 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12119 "changed, not the target."
12120 msgstr ""
12121
12122 #. type: =head2
12123 #: ../src/guestfs-actions.pod:3529
12124 msgid "guestfs_lgetxattr"
12125 msgstr ""
12126
12127 #. type: verbatim
12128 #: ../src/guestfs-actions.pod:3531
12129 #, no-wrap
12130 msgid ""
12131 " char *\n"
12132 " guestfs_lgetxattr (guestfs_h *g,\n"
12133 "                    const char *path,\n"
12134 "                    const char *name,\n"
12135 "                    size_t *size_r);\n"
12136 "\n"
12137 msgstr ""
12138
12139 #. type: textblock
12140 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2466
12141 msgid ""
12142 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12143 "is a symlink, then this call returns an extended attribute from the symlink."
12144 msgstr ""
12145
12146 #. type: textblock
12147 #: ../src/guestfs-actions.pod:3551
12148 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12149 msgstr ""
12150
12151 #. type: =head2
12152 #: ../src/guestfs-actions.pod:3559
12153 msgid "guestfs_lgetxattrs"
12154 msgstr ""
12155
12156 #. type: verbatim
12157 #: ../src/guestfs-actions.pod:3561
12158 #, no-wrap
12159 msgid ""
12160 " struct guestfs_xattr_list *\n"
12161 " guestfs_lgetxattrs (guestfs_h *g,\n"
12162 "                     const char *path);\n"
12163 "\n"
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../src/guestfs-actions.pod:3565
12168 msgid ""
12169 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12170 "then it returns the extended attributes of the link itself."
12171 msgstr ""
12172
12173 #. type: =head2
12174 #: ../src/guestfs-actions.pod:3575
12175 msgid "guestfs_list_devices"
12176 msgstr ""
12177
12178 #. type: verbatim
12179 #: ../src/guestfs-actions.pod:3577
12180 #, no-wrap
12181 msgid ""
12182 " char **\n"
12183 " guestfs_list_devices (guestfs_h *g);\n"
12184 "\n"
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../src/guestfs-actions.pod:3580 ../fish/guestfish-actions.pod:2494
12189 msgid "List all the block devices."
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../src/guestfs-actions.pod:3582 ../fish/guestfish-actions.pod:2496
12194 msgid "The full block device names are returned, eg. C</dev/sda>."
12195 msgstr ""
12196
12197 #. type: =head2
12198 #: ../src/guestfs-actions.pod:3592
12199 msgid "guestfs_list_filesystems"
12200 msgstr ""
12201
12202 #. type: verbatim
12203 #: ../src/guestfs-actions.pod:3594
12204 #, no-wrap
12205 msgid ""
12206 " char **\n"
12207 " guestfs_list_filesystems (guestfs_h *g);\n"
12208 "\n"
12209 msgstr ""
12210
12211 #. type: textblock
12212 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2504
12213 msgid ""
12214 "This inspection command looks for filesystems on partitions, block devices "
12215 "and logical volumes, returning a list of devices containing filesystems and "
12216 "their type."
12217 msgstr ""
12218
12219 #. type: textblock
12220 #: ../src/guestfs-actions.pod:3601 ../fish/guestfish-actions.pod:2508
12221 msgid ""
12222 "The return value is a hash, where the keys are the devices containing "
12223 "filesystems, and the values are the filesystem types.  For example:"
12224 msgstr ""
12225
12226 #. type: verbatim
12227 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2512
12228 #, no-wrap
12229 msgid ""
12230 " \"/dev/sda1\" => \"ntfs\"\n"
12231 " \"/dev/sda2\" => \"ext2\"\n"
12232 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12233 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12234 "\n"
12235 msgstr ""
12236
12237 #. type: textblock
12238 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2517
12239 msgid ""
12240 "The value can have the special value \"unknown\", meaning the content of the "
12241 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12242 msgstr ""
12243
12244 #. type: textblock
12245 #: ../src/guestfs-actions.pod:3614
12246 msgid ""
12247 "This command runs other libguestfs commands, which might include "
12248 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12249 "soon after launch and only when nothing is mounted."
12250 msgstr ""
12251
12252 #. type: textblock
12253 #: ../src/guestfs-actions.pod:3618
12254 msgid ""
12255 "Not all of the filesystems returned will be mountable.  In particular, swap "
12256 "partitions are returned in the list.  Also this command does not check that "
12257 "each filesystem found is valid and mountable, and some filesystems might be "
12258 "mountable but require special options.  Filesystems may not all belong to a "
12259 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
12260 msgstr ""
12261
12262 #. type: textblock
12263 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:5244
12264 msgid "(Added in 1.5.15)"
12265 msgstr ""
12266
12267 #. type: =head2
12268 #: ../src/guestfs-actions.pod:3634
12269 msgid "guestfs_list_partitions"
12270 msgstr ""
12271
12272 #. type: verbatim
12273 #: ../src/guestfs-actions.pod:3636
12274 #, no-wrap
12275 msgid ""
12276 " char **\n"
12277 " guestfs_list_partitions (guestfs_h *g);\n"
12278 "\n"
12279 msgstr ""
12280
12281 #. type: textblock
12282 #: ../src/guestfs-actions.pod:3639 ../fish/guestfish-actions.pod:2537
12283 msgid "List all the partitions detected on all block devices."
12284 msgstr ""
12285
12286 #. type: textblock
12287 #: ../src/guestfs-actions.pod:3641 ../fish/guestfish-actions.pod:2539
12288 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12289 msgstr ""
12290
12291 #. type: textblock
12292 #: ../src/guestfs-actions.pod:3643
12293 msgid ""
12294 "This does not return logical volumes.  For that you will need to call "
12295 "C<guestfs_lvs>."
12296 msgstr ""
12297
12298 #. type: =head2
12299 #: ../src/guestfs-actions.pod:3654
12300 msgid "guestfs_ll"
12301 msgstr ""
12302
12303 #. type: verbatim
12304 #: ../src/guestfs-actions.pod:3656
12305 #, no-wrap
12306 msgid ""
12307 " char *\n"
12308 " guestfs_ll (guestfs_h *g,\n"
12309 "             const char *directory);\n"
12310 "\n"
12311 msgstr ""
12312
12313 #. type: textblock
12314 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2550
12315 msgid ""
12316 "List the files in C<directory> (relative to the root directory, there is no "
12317 "cwd) in the format of 'ls -la'."
12318 msgstr ""
12319
12320 #. type: textblock
12321 #: ../src/guestfs-actions.pod:3663 ../fish/guestfish-actions.pod:2553
12322 msgid ""
12323 "This command is mostly useful for interactive sessions.  It is I<not> "
12324 "intended that you try to parse the output string."
12325 msgstr ""
12326
12327 #. type: =head2
12328 #: ../src/guestfs-actions.pod:3671
12329 msgid "guestfs_ln"
12330 msgstr ""
12331
12332 #. type: verbatim
12333 #: ../src/guestfs-actions.pod:3673
12334 #, no-wrap
12335 msgid ""
12336 " int\n"
12337 " guestfs_ln (guestfs_h *g,\n"
12338 "             const char *target,\n"
12339 "             const char *linkname);\n"
12340 "\n"
12341 msgstr ""
12342
12343 #. type: textblock
12344 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2560
12345 msgid "This command creates a hard link using the C<ln> command."
12346 msgstr ""
12347
12348 #. type: =head2
12349 #: ../src/guestfs-actions.pod:3684
12350 msgid "guestfs_ln_f"
12351 msgstr ""
12352
12353 #. type: verbatim
12354 #: ../src/guestfs-actions.pod:3686
12355 #, no-wrap
12356 msgid ""
12357 " int\n"
12358 " guestfs_ln_f (guestfs_h *g,\n"
12359 "               const char *target,\n"
12360 "               const char *linkname);\n"
12361 "\n"
12362 msgstr ""
12363
12364 #. type: textblock
12365 #: ../src/guestfs-actions.pod:3691 ../fish/guestfish-actions.pod:2566
12366 msgid ""
12367 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12368 "option removes the link (C<linkname>) if it exists already."
12369 msgstr ""
12370
12371 #. type: =head2
12372 #: ../src/guestfs-actions.pod:3698
12373 msgid "guestfs_ln_s"
12374 msgstr ""
12375
12376 #. type: verbatim
12377 #: ../src/guestfs-actions.pod:3700
12378 #, no-wrap
12379 msgid ""
12380 " int\n"
12381 " guestfs_ln_s (guestfs_h *g,\n"
12382 "               const char *target,\n"
12383 "               const char *linkname);\n"
12384 "\n"
12385 msgstr ""
12386
12387 #. type: textblock
12388 #: ../src/guestfs-actions.pod:3705 ../fish/guestfish-actions.pod:2573
12389 msgid "This command creates a symbolic link using the C<ln -s> command."
12390 msgstr ""
12391
12392 #. type: =head2
12393 #: ../src/guestfs-actions.pod:3711
12394 msgid "guestfs_ln_sf"
12395 msgstr ""
12396
12397 #. type: verbatim
12398 #: ../src/guestfs-actions.pod:3713
12399 #, no-wrap
12400 msgid ""
12401 " int\n"
12402 " guestfs_ln_sf (guestfs_h *g,\n"
12403 "                const char *target,\n"
12404 "                const char *linkname);\n"
12405 "\n"
12406 msgstr ""
12407
12408 #. type: textblock
12409 #: ../src/guestfs-actions.pod:3718 ../fish/guestfish-actions.pod:2579
12410 msgid ""
12411 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12412 "option removes the link (C<linkname>) if it exists already."
12413 msgstr ""
12414
12415 #. type: =head2
12416 #: ../src/guestfs-actions.pod:3725
12417 msgid "guestfs_lremovexattr"
12418 msgstr ""
12419
12420 #. type: verbatim
12421 #: ../src/guestfs-actions.pod:3727
12422 #, no-wrap
12423 msgid ""
12424 " int\n"
12425 " guestfs_lremovexattr (guestfs_h *g,\n"
12426 "                       const char *xattr,\n"
12427 "                       const char *path);\n"
12428 "\n"
12429 msgstr ""
12430
12431 #. type: textblock
12432 #: ../src/guestfs-actions.pod:3732
12433 msgid ""
12434 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12435 "link, then it removes an extended attribute of the link itself."
12436 msgstr ""
12437
12438 #. type: =head2
12439 #: ../src/guestfs-actions.pod:3740
12440 msgid "guestfs_ls"
12441 msgstr ""
12442
12443 #. type: verbatim
12444 #: ../src/guestfs-actions.pod:3742
12445 #, no-wrap
12446 msgid ""
12447 " char **\n"
12448 " guestfs_ls (guestfs_h *g,\n"
12449 "             const char *directory);\n"
12450 "\n"
12451 msgstr ""
12452
12453 #. type: textblock
12454 #: ../src/guestfs-actions.pod:3746 ../fish/guestfish-actions.pod:2594
12455 msgid ""
12456 "List the files in C<directory> (relative to the root directory, there is no "
12457 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12458 msgstr ""
12459
12460 #. type: textblock
12461 #: ../src/guestfs-actions.pod:3750
12462 msgid ""
12463 "This command is mostly useful for interactive sessions.  Programs should "
12464 "probably use C<guestfs_readdir> instead."
12465 msgstr ""
12466
12467 #. type: =head2
12468 #: ../src/guestfs-actions.pod:3759
12469 msgid "guestfs_lsetxattr"
12470 msgstr ""
12471
12472 #. type: verbatim
12473 #: ../src/guestfs-actions.pod:3761
12474 #, no-wrap
12475 msgid ""
12476 " int\n"
12477 " guestfs_lsetxattr (guestfs_h *g,\n"
12478 "                    const char *xattr,\n"
12479 "                    const char *val,\n"
12480 "                    int vallen,\n"
12481 "                    const char *path);\n"
12482 "\n"
12483 msgstr ""
12484
12485 #. type: textblock
12486 #: ../src/guestfs-actions.pod:3768
12487 msgid ""
12488 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12489 "then it sets an extended attribute of the link itself."
12490 msgstr ""
12491
12492 #. type: =head2
12493 #: ../src/guestfs-actions.pod:3776
12494 msgid "guestfs_lstat"
12495 msgstr ""
12496
12497 #. type: verbatim
12498 #: ../src/guestfs-actions.pod:3778
12499 #, no-wrap
12500 msgid ""
12501 " struct guestfs_stat *\n"
12502 " guestfs_lstat (guestfs_h *g,\n"
12503 "                const char *path);\n"
12504 "\n"
12505 msgstr ""
12506
12507 #. type: textblock
12508 #: ../src/guestfs-actions.pod:3782 ../src/guestfs-actions.pod:6375
12509 #: ../fish/guestfish-actions.pod:2613 ../fish/guestfish-actions.pod:4317
12510 msgid "Returns file information for the given C<path>."
12511 msgstr ""
12512
12513 #. type: textblock
12514 #: ../src/guestfs-actions.pod:3784
12515 msgid ""
12516 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12517 "link, then the link is stat-ed, not the file it refers to."
12518 msgstr ""
12519
12520 #. type: textblock
12521 #: ../src/guestfs-actions.pod:3788 ../fish/guestfish-actions.pod:2619
12522 msgid "This is the same as the C<lstat(2)> system call."
12523 msgstr ""
12524
12525 #. type: textblock
12526 #: ../src/guestfs-actions.pod:3790 ../src/guestfs-actions.pod:6379
12527 msgid ""
12528 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12529 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12530 msgstr ""
12531
12532 #. type: textblock
12533 #: ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:6383
12534 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6782
12535 msgid "(Added in 0.9.2)"
12536 msgstr ""
12537
12538 #. type: =head2
12539 #: ../src/guestfs-actions.pod:3796
12540 msgid "guestfs_lstatlist"
12541 msgstr ""
12542
12543 #. type: verbatim
12544 #: ../src/guestfs-actions.pod:3798
12545 #, no-wrap
12546 msgid ""
12547 " struct guestfs_stat_list *\n"
12548 " guestfs_lstatlist (guestfs_h *g,\n"
12549 "                    const char *path,\n"
12550 "                    char *const *names);\n"
12551 "\n"
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../src/guestfs-actions.pod:3803
12556 msgid ""
12557 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12558 "files, where all files are in the directory C<path>.  C<names> is the list "
12559 "of files from this directory."
12560 msgstr ""
12561
12562 #. type: textblock
12563 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2629
12564 msgid ""
12565 "On return you get a list of stat structs, with a one-to-one correspondence "
12566 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12567 "then the C<ino> field of that structure is set to C<-1>."
12568 msgstr ""
12569
12570 #. type: textblock
12571 #: ../src/guestfs-actions.pod:3812
12572 msgid ""
12573 "This call is intended for programs that want to efficiently list a directory "
12574 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12575 "for a similarly efficient call for getting extended attributes.  Very long "
12576 "directory listings might cause the protocol message size to be exceeded, "
12577 "causing this call to fail.  The caller must split up such requests into "
12578 "smaller groups of names."
12579 msgstr ""
12580
12581 #. type: textblock
12582 #: ../src/guestfs-actions.pod:3820
12583 msgid ""
12584 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12585 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12586 msgstr ""
12587
12588 #. type: =head2
12589 #: ../src/guestfs-actions.pod:3826
12590 msgid "guestfs_luks_add_key"
12591 msgstr ""
12592
12593 #. type: verbatim
12594 #: ../src/guestfs-actions.pod:3828
12595 #, no-wrap
12596 msgid ""
12597 " int\n"
12598 " guestfs_luks_add_key (guestfs_h *g,\n"
12599 "                       const char *device,\n"
12600 "                       const char *key,\n"
12601 "                       const char *newkey,\n"
12602 "                       int keyslot);\n"
12603 "\n"
12604 msgstr ""
12605
12606 #. type: textblock
12607 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2646
12608 msgid ""
12609 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12610 "existing key, and is used to access the device.  C<newkey> is the new key to "
12611 "add.  C<keyslot> is the key slot that will be replaced."
12612 msgstr ""
12613
12614 #. type: textblock
12615 #: ../src/guestfs-actions.pod:3840
12616 msgid ""
12617 "Note that if C<keyslot> already contains a key, then this command will "
12618 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12619 msgstr ""
12620
12621 #. type: textblock
12622 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:3886
12623 #: ../src/guestfs-actions.pod:3909 ../src/guestfs-actions.pod:3929
12624 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3980
12625 msgid ""
12626 "This function takes a key or passphrase parameter which could contain "
12627 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12628 "information."
12629 msgstr ""
12630
12631 #. type: textblock
12632 #: ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:3890
12633 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3933
12634 msgid "(Added in 1.5.2)"
12635 msgstr ""
12636
12637 #. type: =head2
12638 #: ../src/guestfs-actions.pod:3852
12639 msgid "guestfs_luks_close"
12640 msgstr ""
12641
12642 #. type: verbatim
12643 #: ../src/guestfs-actions.pod:3854
12644 #, no-wrap
12645 msgid ""
12646 " int\n"
12647 " guestfs_luks_close (guestfs_h *g,\n"
12648 "                     const char *device);\n"
12649 "\n"
12650 msgstr ""
12651
12652 #. type: textblock
12653 #: ../src/guestfs-actions.pod:3858
12654 msgid ""
12655 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
12656 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
12657 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12658 "underlying block device."
12659 msgstr ""
12660
12661 #. type: textblock
12662 #: ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3965
12663 #: ../src/guestfs-actions.pod:3984 ../src/guestfs-actions.pod:4034
12664 #: ../src/guestfs-actions.pod:4082
12665 msgid "(Added in 1.5.1)"
12666 msgstr ""
12667
12668 #. type: =head2
12669 #: ../src/guestfs-actions.pod:3868
12670 msgid "guestfs_luks_format"
12671 msgstr ""
12672
12673 #. type: verbatim
12674 #: ../src/guestfs-actions.pod:3870
12675 #, no-wrap
12676 msgid ""
12677 " int\n"
12678 " guestfs_luks_format (guestfs_h *g,\n"
12679 "                      const char *device,\n"
12680 "                      const char *key,\n"
12681 "                      int keyslot);\n"
12682 "\n"
12683 msgstr ""
12684
12685 #. type: textblock
12686 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2672
12687 msgid ""
12688 "This command erases existing data on C<device> and formats the device as a "
12689 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12690 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12691 msgstr ""
12692
12693 #. type: textblock
12694 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3906
12695 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4995
12696 #: ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:6182
12697 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6245
12698 #: ../src/guestfs-actions.pod:7427 ../fish/guestfish-actions.pod:2680
12699 #: ../fish/guestfish-actions.pod:2693 ../fish/guestfish-actions.pod:2777
12700 #: ../fish/guestfish-actions.pod:3358 ../fish/guestfish-actions.pod:3878
12701 #: ../fish/guestfish-actions.pod:4188 ../fish/guestfish-actions.pod:4211
12702 #: ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4963
12703 msgid ""
12704 "B<This command is dangerous.  Without careful use you can easily destroy all "
12705 "your data>."
12706 msgstr ""
12707
12708 #. type: =head2
12709 #: ../src/guestfs-actions.pod:3892
12710 msgid "guestfs_luks_format_cipher"
12711 msgstr ""
12712
12713 #. type: verbatim
12714 #: ../src/guestfs-actions.pod:3894
12715 #, no-wrap
12716 msgid ""
12717 " int\n"
12718 " guestfs_luks_format_cipher (guestfs_h *g,\n"
12719 "                             const char *device,\n"
12720 "                             const char *key,\n"
12721 "                             int keyslot,\n"
12722 "                             const char *cipher);\n"
12723 "\n"
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../src/guestfs-actions.pod:3901
12728 msgid ""
12729 "This command is the same as C<guestfs_luks_format> but it also allows you to "
12730 "set the C<cipher> used."
12731 msgstr ""
12732
12733 #. type: =head2
12734 #: ../src/guestfs-actions.pod:3915
12735 msgid "guestfs_luks_kill_slot"
12736 msgstr ""
12737
12738 #. type: verbatim
12739 #: ../src/guestfs-actions.pod:3917
12740 #, no-wrap
12741 msgid ""
12742 " int\n"
12743 " guestfs_luks_kill_slot (guestfs_h *g,\n"
12744 "                         const char *device,\n"
12745 "                         const char *key,\n"
12746 "                         int keyslot);\n"
12747 "\n"
12748 msgstr ""
12749
12750 #. type: textblock
12751 #: ../src/guestfs-actions.pod:3923 ../fish/guestfish-actions.pod:2700
12752 msgid ""
12753 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12754 "device C<device>.  C<key> must be one of the I<other> keys."
12755 msgstr ""
12756
12757 #. type: =head2
12758 #: ../src/guestfs-actions.pod:3935
12759 msgid "guestfs_luks_open"
12760 msgstr ""
12761
12762 #. type: verbatim
12763 #: ../src/guestfs-actions.pod:3937
12764 #, no-wrap
12765 msgid ""
12766 " int\n"
12767 " guestfs_luks_open (guestfs_h *g,\n"
12768 "                    const char *device,\n"
12769 "                    const char *key,\n"
12770 "                    const char *mapname);\n"
12771 "\n"
12772 msgstr ""
12773
12774 #. type: textblock
12775 #: ../src/guestfs-actions.pod:3943 ../fish/guestfish-actions.pod:2711
12776 msgid ""
12777 "This command opens a block device which has been encrypted according to the "
12778 "Linux Unified Key Setup (LUKS) standard."
12779 msgstr ""
12780
12781 #. type: textblock
12782 #: ../src/guestfs-actions.pod:3946 ../fish/guestfish-actions.pod:2714
12783 msgid "C<device> is the encrypted block device or partition."
12784 msgstr ""
12785
12786 #. type: textblock
12787 #: ../src/guestfs-actions.pod:3948 ../fish/guestfish-actions.pod:2716
12788 msgid ""
12789 "The caller must supply one of the keys associated with the LUKS block "
12790 "device, in the C<key> parameter."
12791 msgstr ""
12792
12793 #. type: textblock
12794 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2719
12795 msgid ""
12796 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12797 "writes to this block device are decrypted from and encrypted to the "
12798 "underlying C<device> respectively."
12799 msgstr ""
12800
12801 #. type: textblock
12802 #: ../src/guestfs-actions.pod:3955
12803 msgid ""
12804 "If this block device contains LVM volume groups, then calling "
12805 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
12806 "visible."
12807 msgstr ""
12808
12809 #. type: =head2
12810 #: ../src/guestfs-actions.pod:3967
12811 msgid "guestfs_luks_open_ro"
12812 msgstr ""
12813
12814 #. type: verbatim
12815 #: ../src/guestfs-actions.pod:3969
12816 #, no-wrap
12817 msgid ""
12818 " int\n"
12819 " guestfs_luks_open_ro (guestfs_h *g,\n"
12820 "                       const char *device,\n"
12821 "                       const char *key,\n"
12822 "                       const char *mapname);\n"
12823 "\n"
12824 msgstr ""
12825
12826 #. type: textblock
12827 #: ../src/guestfs-actions.pod:3975
12828 msgid ""
12829 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
12830 "created."
12831 msgstr ""
12832
12833 #. type: =head2
12834 #: ../src/guestfs-actions.pod:3986
12835 msgid "guestfs_lvcreate"
12836 msgstr ""
12837
12838 #. type: verbatim
12839 #: ../src/guestfs-actions.pod:3988
12840 #, no-wrap
12841 msgid ""
12842 " int\n"
12843 " guestfs_lvcreate (guestfs_h *g,\n"
12844 "                   const char *logvol,\n"
12845 "                   const char *volgroup,\n"
12846 "                   int mbytes);\n"
12847 "\n"
12848 msgstr ""
12849
12850 #. type: textblock
12851 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2744
12852 msgid ""
12853 "This creates an LVM logical volume called C<logvol> on the volume group "
12854 "C<volgroup>, with C<size> megabytes."
12855 msgstr ""
12856
12857 #. type: =head2
12858 #: ../src/guestfs-actions.pod:4001
12859 msgid "guestfs_lvm_canonical_lv_name"
12860 msgstr ""
12861
12862 #. type: verbatim
12863 #: ../src/guestfs-actions.pod:4003
12864 #, no-wrap
12865 msgid ""
12866 " char *\n"
12867 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
12868 "                                const char *lvname);\n"
12869 "\n"
12870 msgstr ""
12871
12872 #. type: textblock
12873 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2751
12874 msgid ""
12875 "This converts alternative naming schemes for LVs that you might find to the "
12876 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12877 "LV>."
12878 msgstr ""
12879
12880 #. type: textblock
12881 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2755
12882 msgid ""
12883 "This command returns an error if the C<lvname> parameter does not refer to a "
12884 "logical volume."
12885 msgstr ""
12886
12887 #. type: textblock
12888 #: ../src/guestfs-actions.pod:4014
12889 msgid "See also C<guestfs_is_lv>."
12890 msgstr ""
12891
12892 #. type: textblock
12893 #: ../src/guestfs-actions.pod:4019
12894 msgid "(Added in 1.5.24)"
12895 msgstr ""
12896
12897 #. type: =head2
12898 #: ../src/guestfs-actions.pod:4021
12899 msgid "guestfs_lvm_clear_filter"
12900 msgstr ""
12901
12902 #. type: verbatim
12903 #: ../src/guestfs-actions.pod:4023
12904 #, no-wrap
12905 msgid ""
12906 " int\n"
12907 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
12908 "\n"
12909 msgstr ""
12910
12911 #. type: textblock
12912 #: ../src/guestfs-actions.pod:4026
12913 msgid ""
12914 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
12915 "see every block device."
12916 msgstr ""
12917
12918 #. type: textblock
12919 #: ../src/guestfs-actions.pod:4029 ../src/guestfs-actions.pod:4071
12920 #: ../fish/guestfish-actions.pod:2767 ../fish/guestfish-actions.pod:2798
12921 msgid ""
12922 "This command also clears the LVM cache and performs a volume group scan."
12923 msgstr ""
12924
12925 #. type: =head2
12926 #: ../src/guestfs-actions.pod:4036
12927 msgid "guestfs_lvm_remove_all"
12928 msgstr ""
12929
12930 #. type: verbatim
12931 #: ../src/guestfs-actions.pod:4038
12932 #, no-wrap
12933 msgid ""
12934 " int\n"
12935 " guestfs_lvm_remove_all (guestfs_h *g);\n"
12936 "\n"
12937 msgstr ""
12938
12939 #. type: textblock
12940 #: ../src/guestfs-actions.pod:4041 ../fish/guestfish-actions.pod:2774
12941 msgid ""
12942 "This command removes all LVM logical volumes, volume groups and physical "
12943 "volumes."
12944 msgstr ""
12945
12946 #. type: =head2
12947 #: ../src/guestfs-actions.pod:4051
12948 msgid "guestfs_lvm_set_filter"
12949 msgstr ""
12950
12951 #. type: verbatim
12952 #: ../src/guestfs-actions.pod:4053
12953 #, no-wrap
12954 msgid ""
12955 " int\n"
12956 " guestfs_lvm_set_filter (guestfs_h *g,\n"
12957 "                         char *const *devices);\n"
12958 "\n"
12959 msgstr ""
12960
12961 #. type: textblock
12962 #: ../src/guestfs-actions.pod:4057 ../fish/guestfish-actions.pod:2784
12963 msgid ""
12964 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12965 "block devices in the list C<devices>, and will ignore all other attached "
12966 "block devices."
12967 msgstr ""
12968
12969 #. type: textblock
12970 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2788
12971 msgid ""
12972 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12973 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12974 "there are two types of duplication possible: either cloned PVs/VGs which "
12975 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12976 "same name.  In normal operation you cannot create this situation, but you "
12977 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12978 "inside the LVM metadata."
12979 msgstr ""
12980
12981 #. type: textblock
12982 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:2801
12983 msgid "You can filter whole block devices or individual partitions."
12984 msgstr ""
12985
12986 #. type: textblock
12987 #: ../src/guestfs-actions.pod:4076 ../fish/guestfish-actions.pod:2803
12988 msgid ""
12989 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12990 "filesystem), even if you are not filtering out that VG."
12991 msgstr ""
12992
12993 #. type: =head2
12994 #: ../src/guestfs-actions.pod:4084
12995 msgid "guestfs_lvremove"
12996 msgstr ""
12997
12998 #. type: verbatim
12999 #: ../src/guestfs-actions.pod:4086
13000 #, no-wrap
13001 msgid ""
13002 " int\n"
13003 " guestfs_lvremove (guestfs_h *g,\n"
13004 "                   const char *device);\n"
13005 "\n"
13006 msgstr ""
13007
13008 #. type: textblock
13009 #: ../src/guestfs-actions.pod:4090 ../fish/guestfish-actions.pod:2811
13010 msgid ""
13011 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13012 "LV, such as C</dev/VG/LV>."
13013 msgstr ""
13014
13015 #. type: textblock
13016 #: ../src/guestfs-actions.pod:4093 ../fish/guestfish-actions.pod:2814
13017 msgid ""
13018 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13019 "dev/VG>."
13020 msgstr ""
13021
13022 #. type: textblock
13023 #: ../src/guestfs-actions.pod:4098 ../src/guestfs-actions.pod:5341
13024 #: ../src/guestfs-actions.pod:7158
13025 msgid "(Added in 1.0.13)"
13026 msgstr ""
13027
13028 #. type: =head2
13029 #: ../src/guestfs-actions.pod:4100
13030 msgid "guestfs_lvrename"
13031 msgstr ""
13032
13033 #. type: verbatim
13034 #: ../src/guestfs-actions.pod:4102
13035 #, no-wrap
13036 msgid ""
13037 " int\n"
13038 " guestfs_lvrename (guestfs_h *g,\n"
13039 "                   const char *logvol,\n"
13040 "                   const char *newlogvol);\n"
13041 "\n"
13042 msgstr ""
13043
13044 #. type: textblock
13045 #: ../src/guestfs-actions.pod:4107 ../fish/guestfish-actions.pod:2821
13046 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:7171
13051 msgid "(Added in 1.0.83)"
13052 msgstr ""
13053
13054 #. type: =head2
13055 #: ../src/guestfs-actions.pod:4113
13056 msgid "guestfs_lvresize"
13057 msgstr ""
13058
13059 #. type: verbatim
13060 #: ../src/guestfs-actions.pod:4115
13061 #, no-wrap
13062 msgid ""
13063 " int\n"
13064 " guestfs_lvresize (guestfs_h *g,\n"
13065 "                   const char *device,\n"
13066 "                   int mbytes);\n"
13067 "\n"
13068 msgstr ""
13069
13070 #. type: textblock
13071 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:2827
13072 msgid ""
13073 "This resizes (expands or shrinks) an existing LVM logical volume to "
13074 "C<mbytes>.  When reducing, data in the reduced part is lost."
13075 msgstr ""
13076
13077 #. type: =head2
13078 #: ../src/guestfs-actions.pod:4128
13079 msgid "guestfs_lvresize_free"
13080 msgstr ""
13081
13082 #. type: verbatim
13083 #: ../src/guestfs-actions.pod:4130
13084 #, no-wrap
13085 msgid ""
13086 " int\n"
13087 " guestfs_lvresize_free (guestfs_h *g,\n"
13088 "                        const char *lv,\n"
13089 "                        int percent);\n"
13090 "\n"
13091 msgstr ""
13092
13093 #. type: textblock
13094 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2835
13095 msgid ""
13096 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13097 "remaining free space in the volume group.  Commonly you would call this with "
13098 "pc = 100 which expands the logical volume as much as possible, using all "
13099 "remaining free space in the volume group."
13100 msgstr ""
13101
13102 #. type: textblock
13103 #: ../src/guestfs-actions.pod:4143
13104 msgid "(Added in 1.3.3)"
13105 msgstr ""
13106
13107 #. type: =head2
13108 #: ../src/guestfs-actions.pod:4145
13109 msgid "guestfs_lvs"
13110 msgstr ""
13111
13112 #. type: verbatim
13113 #: ../src/guestfs-actions.pod:4147
13114 #, no-wrap
13115 msgid ""
13116 " char **\n"
13117 " guestfs_lvs (guestfs_h *g);\n"
13118 "\n"
13119 msgstr ""
13120
13121 #. type: textblock
13122 #: ../src/guestfs-actions.pod:4150 ../fish/guestfish-actions.pod:2845
13123 msgid ""
13124 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13125 "(8)> command."
13126 msgstr ""
13127
13128 #. type: textblock
13129 #: ../src/guestfs-actions.pod:4153 ../fish/guestfish-actions.pod:2848
13130 msgid ""
13131 "This returns a list of the logical volume device names (eg. C</dev/"
13132 "VolGroup00/LogVol00>)."
13133 msgstr ""
13134
13135 #. type: textblock
13136 #: ../src/guestfs-actions.pod:4156
13137 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13138 msgstr ""
13139
13140 #. type: =head2
13141 #: ../src/guestfs-actions.pod:4164
13142 msgid "guestfs_lvs_full"
13143 msgstr ""
13144
13145 #. type: verbatim
13146 #: ../src/guestfs-actions.pod:4166
13147 #, no-wrap
13148 msgid ""
13149 " struct guestfs_lvm_lv_list *\n"
13150 " guestfs_lvs_full (guestfs_h *g);\n"
13151 "\n"
13152 msgstr ""
13153
13154 #. type: textblock
13155 #: ../src/guestfs-actions.pod:4169 ../fish/guestfish-actions.pod:2857
13156 msgid ""
13157 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13158 "(8)> command.  The \"full\" version includes all fields."
13159 msgstr ""
13160
13161 #. type: textblock
13162 #: ../src/guestfs-actions.pod:4172
13163 msgid ""
13164 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13165 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
13166 msgstr ""
13167
13168 #. type: =head2
13169 #: ../src/guestfs-actions.pod:4178
13170 msgid "guestfs_lvuuid"
13171 msgstr ""
13172
13173 #. type: verbatim
13174 #: ../src/guestfs-actions.pod:4180
13175 #, no-wrap
13176 msgid ""
13177 " char *\n"
13178 " guestfs_lvuuid (guestfs_h *g,\n"
13179 "                 const char *device);\n"
13180 "\n"
13181 msgstr ""
13182
13183 #. type: textblock
13184 #: ../src/guestfs-actions.pod:4184 ../fish/guestfish-actions.pod:2864
13185 msgid "This command returns the UUID of the LVM LV C<device>."
13186 msgstr ""
13187
13188 #. type: =head2
13189 #: ../src/guestfs-actions.pod:4191
13190 msgid "guestfs_lxattrlist"
13191 msgstr ""
13192
13193 #. type: verbatim
13194 #: ../src/guestfs-actions.pod:4193
13195 #, no-wrap
13196 msgid ""
13197 " struct guestfs_xattr_list *\n"
13198 " guestfs_lxattrlist (guestfs_h *g,\n"
13199 "                     const char *path,\n"
13200 "                     char *const *names);\n"
13201 "\n"
13202 msgstr ""
13203
13204 #. type: textblock
13205 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:2870
13206 msgid ""
13207 "This call allows you to get the extended attributes of multiple files, where "
13208 "all files are in the directory C<path>.  C<names> is the list of files from "
13209 "this directory."
13210 msgstr ""
13211
13212 #. type: textblock
13213 #: ../src/guestfs-actions.pod:4202 ../fish/guestfish-actions.pod:2874
13214 msgid ""
13215 "On return you get a flat list of xattr structs which must be interpreted "
13216 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13217 "C<attrval> in this struct is zero-length to indicate there was an error "
13218 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13219 "number (the number of following attributes for this file, which could be C<"
13220 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13221 "for the first named file.  This repeats for the second and subsequent files."
13222 msgstr ""
13223
13224 #. type: textblock
13225 #: ../src/guestfs-actions.pod:4212
13226 msgid ""
13227 "This call is intended for programs that want to efficiently list a directory "
13228 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
13229 "a similarly efficient call for getting standard stats.  Very long directory "
13230 "listings might cause the protocol message size to be exceeded, causing this "
13231 "call to fail.  The caller must split up such requests into smaller groups of "
13232 "names."
13233 msgstr ""
13234
13235 #. type: =head2
13236 #: ../src/guestfs-actions.pod:4226
13237 msgid "guestfs_mkdir"
13238 msgstr ""
13239
13240 #. type: verbatim
13241 #: ../src/guestfs-actions.pod:4228
13242 #, no-wrap
13243 msgid ""
13244 " int\n"
13245 " guestfs_mkdir (guestfs_h *g,\n"
13246 "                const char *path);\n"
13247 "\n"
13248 msgstr ""
13249
13250 #. type: textblock
13251 #: ../src/guestfs-actions.pod:4232 ../fish/guestfish-actions.pod:2896
13252 msgid "Create a directory named C<path>."
13253 msgstr ""
13254
13255 #. type: =head2
13256 #: ../src/guestfs-actions.pod:4238
13257 msgid "guestfs_mkdir_mode"
13258 msgstr ""
13259
13260 #. type: verbatim
13261 #: ../src/guestfs-actions.pod:4240
13262 #, no-wrap
13263 msgid ""
13264 " int\n"
13265 " guestfs_mkdir_mode (guestfs_h *g,\n"
13266 "                     const char *path,\n"
13267 "                     int mode);\n"
13268 "\n"
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../src/guestfs-actions.pod:4245 ../fish/guestfish-actions.pod:2902
13273 msgid ""
13274 "This command creates a directory, setting the initial permissions of the "
13275 "directory to C<mode>."
13276 msgstr ""
13277
13278 #. type: textblock
13279 #: ../src/guestfs-actions.pod:4248 ../fish/guestfish-actions.pod:2905
13280 msgid ""
13281 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13282 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13283 "other ways."
13284 msgstr ""
13285
13286 #. type: textblock
13287 #: ../src/guestfs-actions.pod:4252
13288 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13289 msgstr ""
13290
13291 #. type: =head2
13292 #: ../src/guestfs-actions.pod:4258
13293 msgid "guestfs_mkdir_p"
13294 msgstr ""
13295
13296 #. type: verbatim
13297 #: ../src/guestfs-actions.pod:4260
13298 #, no-wrap
13299 msgid ""
13300 " int\n"
13301 " guestfs_mkdir_p (guestfs_h *g,\n"
13302 "                  const char *path);\n"
13303 "\n"
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2915
13308 msgid ""
13309 "Create a directory named C<path>, creating any parent directories as "
13310 "necessary.  This is like the C<mkdir -p> shell command."
13311 msgstr ""
13312
13313 #. type: =head2
13314 #: ../src/guestfs-actions.pod:4271
13315 msgid "guestfs_mkdtemp"
13316 msgstr ""
13317
13318 #. type: verbatim
13319 #: ../src/guestfs-actions.pod:4273
13320 #, no-wrap
13321 msgid ""
13322 " char *\n"
13323 " guestfs_mkdtemp (guestfs_h *g,\n"
13324 "                  const char *template);\n"
13325 "\n"
13326 msgstr ""
13327
13328 #. type: textblock
13329 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:2922
13330 msgid ""
13331 "This command creates a temporary directory.  The C<template> parameter "
13332 "should be a full pathname for the temporary directory name with the final "
13333 "six characters being \"XXXXXX\"."
13334 msgstr ""
13335
13336 #. type: textblock
13337 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2927
13338 msgid ""
13339 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13340 "being suitable for Windows filesystems."
13341 msgstr ""
13342
13343 #. type: textblock
13344 #: ../src/guestfs-actions.pod:4285 ../fish/guestfish-actions.pod:2930
13345 msgid "The name of the temporary directory that was created is returned."
13346 msgstr ""
13347
13348 #. type: textblock
13349 #: ../src/guestfs-actions.pod:4288 ../fish/guestfish-actions.pod:2933
13350 msgid "The temporary directory is created with mode 0700 and is owned by root."
13351 msgstr ""
13352
13353 #. type: textblock
13354 #: ../src/guestfs-actions.pod:4291 ../fish/guestfish-actions.pod:2936
13355 msgid ""
13356 "The caller is responsible for deleting the temporary directory and its "
13357 "contents after use."
13358 msgstr ""
13359
13360 #. type: textblock
13361 #: ../src/guestfs-actions.pod:4294 ../fish/guestfish-actions.pod:2939
13362 msgid "See also: L<mkdtemp(3)>"
13363 msgstr ""
13364
13365 #. type: =head2
13366 #: ../src/guestfs-actions.pod:4301
13367 msgid "guestfs_mke2fs_J"
13368 msgstr ""
13369
13370 #. type: verbatim
13371 #: ../src/guestfs-actions.pod:4303
13372 #, no-wrap
13373 msgid ""
13374 " int\n"
13375 " guestfs_mke2fs_J (guestfs_h *g,\n"
13376 "                   const char *fstype,\n"
13377 "                   int blocksize,\n"
13378 "                   const char *device,\n"
13379 "                   const char *journal);\n"
13380 "\n"
13381 msgstr ""
13382
13383 #. type: textblock
13384 #: ../src/guestfs-actions.pod:4310 ../fish/guestfish-actions.pod:2945
13385 msgid ""
13386 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13387 "C<journal>.  It is equivalent to the command:"
13388 msgstr ""
13389
13390 #. type: verbatim
13391 #: ../src/guestfs-actions.pod:4314 ../fish/guestfish-actions.pod:2949
13392 #, no-wrap
13393 msgid ""
13394 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13395 "\n"
13396 msgstr ""
13397
13398 #. type: textblock
13399 #: ../src/guestfs-actions.pod:4316
13400 msgid "See also C<guestfs_mke2journal>."
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4338
13405 #: ../src/guestfs-actions.pod:4356 ../src/guestfs-actions.pod:4372
13406 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4400
13407 #: ../src/guestfs-actions.pod:4459 ../src/guestfs-actions.pod:4724
13408 msgid "(Added in 1.0.68)"
13409 msgstr ""
13410
13411 #. type: =head2
13412 #: ../src/guestfs-actions.pod:4322
13413 msgid "guestfs_mke2fs_JL"
13414 msgstr ""
13415
13416 #. type: verbatim
13417 #: ../src/guestfs-actions.pod:4324
13418 #, no-wrap
13419 msgid ""
13420 " int\n"
13421 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13422 "                    const char *fstype,\n"
13423 "                    int blocksize,\n"
13424 "                    const char *device,\n"
13425 "                    const char *label);\n"
13426 "\n"
13427 msgstr ""
13428
13429 #. type: textblock
13430 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2957
13431 msgid ""
13432 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13433 "the journal labeled C<label>."
13434 msgstr ""
13435
13436 #. type: textblock
13437 #: ../src/guestfs-actions.pod:4334
13438 msgid "See also C<guestfs_mke2journal_L>."
13439 msgstr ""
13440
13441 #. type: =head2
13442 #: ../src/guestfs-actions.pod:4340
13443 msgid "guestfs_mke2fs_JU"
13444 msgstr ""
13445
13446 #. type: verbatim
13447 #: ../src/guestfs-actions.pod:4342
13448 #, no-wrap
13449 msgid ""
13450 " int\n"
13451 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13452 "                    const char *fstype,\n"
13453 "                    int blocksize,\n"
13454 "                    const char *device,\n"
13455 "                    const char *uuid);\n"
13456 "\n"
13457 msgstr ""
13458
13459 #. type: textblock
13460 #: ../src/guestfs-actions.pod:4349 ../fish/guestfish-actions.pod:2966
13461 msgid ""
13462 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13463 "the journal with UUID C<uuid>."
13464 msgstr ""
13465
13466 #. type: textblock
13467 #: ../src/guestfs-actions.pod:4352
13468 msgid "See also C<guestfs_mke2journal_U>."
13469 msgstr ""
13470
13471 #. type: =head2
13472 #: ../src/guestfs-actions.pod:4358
13473 msgid "guestfs_mke2journal"
13474 msgstr ""
13475
13476 #. type: verbatim
13477 #: ../src/guestfs-actions.pod:4360
13478 #, no-wrap
13479 msgid ""
13480 " int\n"
13481 " guestfs_mke2journal (guestfs_h *g,\n"
13482 "                      int blocksize,\n"
13483 "                      const char *device);\n"
13484 "\n"
13485 msgstr ""
13486
13487 #. type: textblock
13488 #: ../src/guestfs-actions.pod:4365 ../fish/guestfish-actions.pod:2975
13489 msgid ""
13490 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13491 "command:"
13492 msgstr ""
13493
13494 #. type: verbatim
13495 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2978
13496 #, no-wrap
13497 msgid ""
13498 " mke2fs -O journal_dev -b blocksize device\n"
13499 "\n"
13500 msgstr ""
13501
13502 #. type: =head2
13503 #: ../src/guestfs-actions.pod:4374
13504 msgid "guestfs_mke2journal_L"
13505 msgstr ""
13506
13507 #. type: verbatim
13508 #: ../src/guestfs-actions.pod:4376
13509 #, no-wrap
13510 msgid ""
13511 " int\n"
13512 " guestfs_mke2journal_L (guestfs_h *g,\n"
13513 "                        int blocksize,\n"
13514 "                        const char *label,\n"
13515 "                        const char *device);\n"
13516 "\n"
13517 msgstr ""
13518
13519 #. type: textblock
13520 #: ../src/guestfs-actions.pod:4382 ../fish/guestfish-actions.pod:2984
13521 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13522 msgstr ""
13523
13524 #. type: =head2
13525 #: ../src/guestfs-actions.pod:4388
13526 msgid "guestfs_mke2journal_U"
13527 msgstr ""
13528
13529 #. type: verbatim
13530 #: ../src/guestfs-actions.pod:4390
13531 #, no-wrap
13532 msgid ""
13533 " int\n"
13534 " guestfs_mke2journal_U (guestfs_h *g,\n"
13535 "                        int blocksize,\n"
13536 "                        const char *uuid,\n"
13537 "                        const char *device);\n"
13538 "\n"
13539 msgstr ""
13540
13541 #. type: textblock
13542 #: ../src/guestfs-actions.pod:4396 ../fish/guestfish-actions.pod:2990
13543 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13544 msgstr ""
13545
13546 #. type: =head2
13547 #: ../src/guestfs-actions.pod:4402
13548 msgid "guestfs_mkfifo"
13549 msgstr ""
13550
13551 #. type: verbatim
13552 #: ../src/guestfs-actions.pod:4404
13553 #, no-wrap
13554 msgid ""
13555 " int\n"
13556 " guestfs_mkfifo (guestfs_h *g,\n"
13557 "                 int mode,\n"
13558 "                 const char *path);\n"
13559 "\n"
13560 msgstr ""
13561
13562 #. type: textblock
13563 #: ../src/guestfs-actions.pod:4409
13564 msgid ""
13565 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13566 "is just a convenient wrapper around C<guestfs_mknod>."
13567 msgstr ""
13568
13569 #. type: =head2
13570 #: ../src/guestfs-actions.pod:4419
13571 msgid "guestfs_mkfs"
13572 msgstr ""
13573
13574 #. type: verbatim
13575 #: ../src/guestfs-actions.pod:4421
13576 #, no-wrap
13577 msgid ""
13578 " int\n"
13579 " guestfs_mkfs (guestfs_h *g,\n"
13580 "               const char *fstype,\n"
13581 "               const char *device);\n"
13582 "\n"
13583 msgstr ""
13584
13585 #. type: textblock
13586 #: ../src/guestfs-actions.pod:4426 ../fish/guestfish-actions.pod:3006
13587 msgid ""
13588 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13589 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13590 msgstr ""
13591
13592 #. type: =head2
13593 #: ../src/guestfs-actions.pod:4434
13594 msgid "guestfs_mkfs_b"
13595 msgstr ""
13596
13597 #. type: verbatim
13598 #: ../src/guestfs-actions.pod:4436
13599 #, no-wrap
13600 msgid ""
13601 " int\n"
13602 " guestfs_mkfs_b (guestfs_h *g,\n"
13603 "                 const char *fstype,\n"
13604 "                 int blocksize,\n"
13605 "                 const char *device);\n"
13606 "\n"
13607 msgstr ""
13608
13609 #. type: textblock
13610 #: ../src/guestfs-actions.pod:4442
13611 msgid ""
13612 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
13613 "block size of the resulting filesystem.  Supported block sizes depend on the "
13614 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13615 msgstr ""
13616
13617 #. type: textblock
13618 #: ../src/guestfs-actions.pod:4447 ../src/guestfs-actions.pod:4490
13619 #: ../fish/guestfish-actions.pod:3019 ../fish/guestfish-actions.pod:3046
13620 msgid ""
13621 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13622 "cluster size."
13623 msgstr ""
13624
13625 #. type: textblock
13626 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:3022
13627 msgid ""
13628 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
13629 msgstr ""
13630
13631 #. type: =head2
13632 #: ../src/guestfs-actions.pod:4461
13633 msgid "guestfs_mkfs_opts"
13634 msgstr ""
13635
13636 #. type: verbatim
13637 #: ../src/guestfs-actions.pod:4463
13638 #, no-wrap
13639 msgid ""
13640 " int\n"
13641 " guestfs_mkfs_opts (guestfs_h *g,\n"
13642 "                    const char *fstype,\n"
13643 "                    const char *device,\n"
13644 "                    ...);\n"
13645 "\n"
13646 msgstr ""
13647
13648 #. type: verbatim
13649 #: ../src/guestfs-actions.pod:4474
13650 #, no-wrap
13651 msgid ""
13652 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
13653 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
13654 "\n"
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3033
13659 msgid ""
13660 "This function creates a filesystem on C<device>.  The filesystem type is "
13661 "C<fstype>, for example C<ext3>."
13662 msgstr ""
13663
13664 #. type: =item
13665 #: ../src/guestfs-actions.pod:4484 ../fish/guestfish-actions.pod:3040
13666 msgid "C<blocksize>"
13667 msgstr ""
13668
13669 #. type: textblock
13670 #: ../src/guestfs-actions.pod:4486 ../fish/guestfish-actions.pod:3042
13671 msgid ""
13672 "The filesystem block size.  Supported block sizes depend on the filesystem "
13673 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13674 "filesystems."
13675 msgstr ""
13676
13677 #. type: textblock
13678 #: ../src/guestfs-actions.pod:4493 ../fish/guestfish-actions.pod:3049
13679 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13680 msgstr ""
13681
13682 #. type: =item
13683 #: ../src/guestfs-actions.pod:4495 ../fish/guestfish-actions.pod:3051
13684 msgid "C<features>"
13685 msgstr ""
13686
13687 #. type: textblock
13688 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:3053
13689 msgid "This passes the I<-O> parameter to the external mkfs program."
13690 msgstr ""
13691
13692 #. type: textblock
13693 #: ../src/guestfs-actions.pod:4499 ../fish/guestfish-actions.pod:3055
13694 msgid ""
13695 "For certain filesystem types, this allows extra filesystem features to be "
13696 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13697 msgstr ""
13698
13699 #. type: textblock
13700 #: ../src/guestfs-actions.pod:4503 ../fish/guestfish-actions.pod:3059
13701 msgid ""
13702 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13703 "type."
13704 msgstr ""
13705
13706 #. type: textblock
13707 #: ../src/guestfs-actions.pod:4510
13708 msgid "(Added in 1.7.19)"
13709 msgstr ""
13710
13711 #. type: =head2
13712 #: ../src/guestfs-actions.pod:4512
13713 msgid "guestfs_mkfs_opts_va"
13714 msgstr ""
13715
13716 #. type: verbatim
13717 #: ../src/guestfs-actions.pod:4514
13718 #, no-wrap
13719 msgid ""
13720 " int\n"
13721 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
13722 "                       const char *fstype,\n"
13723 "                       const char *device,\n"
13724 "                       va_list args);\n"
13725 "\n"
13726 msgstr ""
13727
13728 #. type: textblock
13729 #: ../src/guestfs-actions.pod:4520
13730 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
13731 msgstr ""
13732
13733 #. type: =head2
13734 #: ../src/guestfs-actions.pod:4524
13735 msgid "guestfs_mkfs_opts_argv"
13736 msgstr ""
13737
13738 #. type: verbatim
13739 #: ../src/guestfs-actions.pod:4526
13740 #, no-wrap
13741 msgid ""
13742 " int\n"
13743 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
13744 "                         const char *fstype,\n"
13745 "                         const char *device,\n"
13746 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
13747 "\n"
13748 msgstr ""
13749
13750 #. type: textblock
13751 #: ../src/guestfs-actions.pod:4532
13752 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
13753 msgstr ""
13754
13755 #. type: =head2
13756 #: ../src/guestfs-actions.pod:4536
13757 msgid "guestfs_mkmountpoint"
13758 msgstr ""
13759
13760 #. type: verbatim
13761 #: ../src/guestfs-actions.pod:4538
13762 #, no-wrap
13763 msgid ""
13764 " int\n"
13765 " guestfs_mkmountpoint (guestfs_h *g,\n"
13766 "                       const char *exemptpath);\n"
13767 "\n"
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../src/guestfs-actions.pod:4542
13772 msgid ""
13773 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
13774 "that can be used to create extra mountpoints before mounting the first "
13775 "filesystem."
13776 msgstr ""
13777
13778 #. type: textblock
13779 #: ../src/guestfs-actions.pod:4546 ../fish/guestfish-actions.pod:3074
13780 msgid ""
13781 "These calls are I<only> necessary in some very limited circumstances, mainly "
13782 "the case where you want to mount a mix of unrelated and/or read-only "
13783 "filesystems together."
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../src/guestfs-actions.pod:4550 ../fish/guestfish-actions.pod:3078
13788 msgid ""
13789 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13790 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13791 "inside that.  You can unpack this as follows in guestfish:"
13792 msgstr ""
13793
13794 #. type: verbatim
13795 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3083
13796 #, no-wrap
13797 msgid ""
13798 " add-ro Fedora-11-i686-Live.iso\n"
13799 " run\n"
13800 " mkmountpoint /cd\n"
13801 " mkmountpoint /sqsh\n"
13802 " mkmountpoint /ext3fs\n"
13803 " mount /dev/sda /cd\n"
13804 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13805 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13806 "\n"
13807 msgstr ""
13808
13809 #. type: textblock
13810 #: ../src/guestfs-actions.pod:4564 ../fish/guestfish-actions.pod:3092
13811 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13812 msgstr ""
13813
13814 #. type: textblock
13815 #: ../src/guestfs-actions.pod:4566
13816 msgid ""
13817 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
13818 "may get unexpected errors if you try to mix these calls.  It is safest to "
13819 "manually unmount filesystems and remove mountpoints after use."
13820 msgstr ""
13821
13822 #. type: textblock
13823 #: ../src/guestfs-actions.pod:4570
13824 msgid ""
13825 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
13826 "first, so for this to work for manual mountpoints, you must ensure that the "
13827 "innermost mountpoints have the longest pathnames, as in the example code "
13828 "above."
13829 msgstr ""
13830
13831 #. type: textblock
13832 #: ../src/guestfs-actions.pod:4575 ../fish/guestfish-actions.pod:3103
13833 msgid ""
13834 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13835 msgstr ""
13836
13837 #. type: textblock
13838 #: ../src/guestfs-actions.pod:4577
13839 msgid ""
13840 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
13841 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
13842 "can also trigger these issues."
13843 msgstr ""
13844
13845 #. type: textblock
13846 #: ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:4849
13847 #: ../src/guestfs-actions.pod:5759
13848 msgid "(Added in 1.0.62)"
13849 msgstr ""
13850
13851 #. type: =head2
13852 #: ../src/guestfs-actions.pod:4585
13853 msgid "guestfs_mknod"
13854 msgstr ""
13855
13856 #. type: verbatim
13857 #: ../src/guestfs-actions.pod:4587
13858 #, no-wrap
13859 msgid ""
13860 " int\n"
13861 " guestfs_mknod (guestfs_h *g,\n"
13862 "                int mode,\n"
13863 "                int devmajor,\n"
13864 "                int devminor,\n"
13865 "                const char *path);\n"
13866 "\n"
13867 msgstr ""
13868
13869 #. type: textblock
13870 #: ../src/guestfs-actions.pod:4594 ../fish/guestfish-actions.pod:3113
13871 msgid ""
13872 "This call creates block or character special devices, or named pipes (FIFOs)."
13873 msgstr ""
13874
13875 #. type: textblock
13876 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3116
13877 msgid ""
13878 "The C<mode> parameter should be the mode, using the standard constants.  "
13879 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13880 "used when creating block and character special devices."
13881 msgstr ""
13882
13883 #. type: textblock
13884 #: ../src/guestfs-actions.pod:4602
13885 msgid ""
13886 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13887 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13888 "regular file).  These constants are available in the standard Linux header "
13889 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
13890 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
13891 "the appropriate constant for you."
13892 msgstr ""
13893
13894 #. type: =head2
13895 #: ../src/guestfs-actions.pod:4616
13896 msgid "guestfs_mknod_b"
13897 msgstr ""
13898
13899 #. type: verbatim
13900 #: ../src/guestfs-actions.pod:4618
13901 #, no-wrap
13902 msgid ""
13903 " int\n"
13904 " guestfs_mknod_b (guestfs_h *g,\n"
13905 "                  int mode,\n"
13906 "                  int devmajor,\n"
13907 "                  int devminor,\n"
13908 "                  const char *path);\n"
13909 "\n"
13910 msgstr ""
13911
13912 #. type: textblock
13913 #: ../src/guestfs-actions.pod:4625
13914 msgid ""
13915 "This call creates a block device node called C<path> with mode C<mode> and "
13916 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13917 "wrapper around C<guestfs_mknod>."
13918 msgstr ""
13919
13920 #. type: =head2
13921 #: ../src/guestfs-actions.pod:4635
13922 msgid "guestfs_mknod_c"
13923 msgstr ""
13924
13925 #. type: verbatim
13926 #: ../src/guestfs-actions.pod:4637
13927 #, no-wrap
13928 msgid ""
13929 " int\n"
13930 " guestfs_mknod_c (guestfs_h *g,\n"
13931 "                  int mode,\n"
13932 "                  int devmajor,\n"
13933 "                  int devminor,\n"
13934 "                  const char *path);\n"
13935 "\n"
13936 msgstr ""
13937
13938 #. type: textblock
13939 #: ../src/guestfs-actions.pod:4644
13940 msgid ""
13941 "This call creates a char device node called C<path> with mode C<mode> and "
13942 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13943 "wrapper around C<guestfs_mknod>."
13944 msgstr ""
13945
13946 #. type: =head2
13947 #: ../src/guestfs-actions.pod:4654
13948 msgid "guestfs_mkswap"
13949 msgstr ""
13950
13951 #. type: verbatim
13952 #: ../src/guestfs-actions.pod:4656
13953 #, no-wrap
13954 msgid ""
13955 " int\n"
13956 " guestfs_mkswap (guestfs_h *g,\n"
13957 "                 const char *device);\n"
13958 "\n"
13959 msgstr ""
13960
13961 #. type: textblock
13962 #: ../src/guestfs-actions.pod:4660 ../fish/guestfish-actions.pod:3155
13963 msgid "Create a swap partition on C<device>."
13964 msgstr ""
13965
13966 #. type: =head2
13967 #: ../src/guestfs-actions.pod:4666
13968 msgid "guestfs_mkswap_L"
13969 msgstr ""
13970
13971 #. type: verbatim
13972 #: ../src/guestfs-actions.pod:4668
13973 #, no-wrap
13974 msgid ""
13975 " int\n"
13976 " guestfs_mkswap_L (guestfs_h *g,\n"
13977 "                   const char *label,\n"
13978 "                   const char *device);\n"
13979 "\n"
13980 msgstr ""
13981
13982 #. type: textblock
13983 #: ../src/guestfs-actions.pod:4673 ../fish/guestfish-actions.pod:3161
13984 msgid "Create a swap partition on C<device> with label C<label>."
13985 msgstr ""
13986
13987 #. type: textblock
13988 #: ../src/guestfs-actions.pod:4675 ../fish/guestfish-actions.pod:3163
13989 msgid ""
13990 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13991 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13992 "or swap tools."
13993 msgstr ""
13994
13995 #. type: =head2
13996 #: ../src/guestfs-actions.pod:4683
13997 msgid "guestfs_mkswap_U"
13998 msgstr ""
13999
14000 #. type: verbatim
14001 #: ../src/guestfs-actions.pod:4685
14002 #, no-wrap
14003 msgid ""
14004 " int\n"
14005 " guestfs_mkswap_U (guestfs_h *g,\n"
14006 "                   const char *uuid,\n"
14007 "                   const char *device);\n"
14008 "\n"
14009 msgstr ""
14010
14011 #. type: textblock
14012 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3171
14013 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14014 msgstr ""
14015
14016 #. type: =head2
14017 #: ../src/guestfs-actions.pod:4696
14018 msgid "guestfs_mkswap_file"
14019 msgstr ""
14020
14021 #. type: verbatim
14022 #: ../src/guestfs-actions.pod:4698
14023 #, no-wrap
14024 msgid ""
14025 " int\n"
14026 " guestfs_mkswap_file (guestfs_h *g,\n"
14027 "                      const char *path);\n"
14028 "\n"
14029 msgstr ""
14030
14031 #. type: textblock
14032 #: ../src/guestfs-actions.pod:4702 ../fish/guestfish-actions.pod:3177
14033 msgid "Create a swap file."
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../src/guestfs-actions.pod:4704
14038 msgid ""
14039 "This command just writes a swap file signature to an existing file.  To "
14040 "create the file itself, use something like C<guestfs_fallocate>."
14041 msgstr ""
14042
14043 #. type: =head2
14044 #: ../src/guestfs-actions.pod:4711
14045 msgid "guestfs_modprobe"
14046 msgstr ""
14047
14048 #. type: verbatim
14049 #: ../src/guestfs-actions.pod:4713
14050 #, no-wrap
14051 msgid ""
14052 " int\n"
14053 " guestfs_modprobe (guestfs_h *g,\n"
14054 "                   const char *modulename);\n"
14055 "\n"
14056 msgstr ""
14057
14058 #. type: textblock
14059 #: ../src/guestfs-actions.pod:4717 ../fish/guestfish-actions.pod:3186
14060 msgid "This loads a kernel module in the appliance."
14061 msgstr ""
14062
14063 #. type: textblock
14064 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3188
14065 msgid ""
14066 "The kernel module must have been whitelisted when libguestfs was built (see "
14067 "C<appliance/kmod.whitelist.in> in the source)."
14068 msgstr ""
14069
14070 #. type: =head2
14071 #: ../src/guestfs-actions.pod:4726
14072 msgid "guestfs_mount"
14073 msgstr ""
14074
14075 #. type: verbatim
14076 #: ../src/guestfs-actions.pod:4728
14077 #, no-wrap
14078 msgid ""
14079 " int\n"
14080 " guestfs_mount (guestfs_h *g,\n"
14081 "                const char *device,\n"
14082 "                const char *mountpoint);\n"
14083 "\n"
14084 msgstr ""
14085
14086 #. type: textblock
14087 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3195
14088 msgid ""
14089 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14090 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14091 "those block devices contain partitions, they will have the usual names (eg. "
14092 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14093 msgstr ""
14094
14095 #. type: textblock
14096 #: ../src/guestfs-actions.pod:4739 ../fish/guestfish-actions.pod:3201
14097 msgid ""
14098 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14099 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14100 "mounted on directories which already exist."
14101 msgstr ""
14102
14103 #. type: textblock
14104 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3206
14105 msgid ""
14106 "The mounted filesystem is writable, if we have sufficient permissions on the "
14107 "underlying device."
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../src/guestfs-actions.pod:4747
14112 msgid ""
14113 "B<Important note:> When you use this call, the filesystem options C<sync> "
14114 "and C<noatime> are set implicitly.  This was originally done because we "
14115 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14116 "very large negative performance impact and negligible effect on "
14117 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14118 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14119 "(use an empty string for the first parameter if you don't want any options)."
14120 msgstr ""
14121
14122 #. type: textblock
14123 #: ../src/guestfs-actions.pod:4759 ../fish/guestfish-actions.pod:3219
14124 msgid ""
14125 "This function is deprecated.  In new code, use the C<mount_options> call "
14126 "instead."
14127 msgstr ""
14128
14129 #. type: =head2
14130 #: ../src/guestfs-actions.pod:4768
14131 msgid "guestfs_mount_loop"
14132 msgstr ""
14133
14134 #. type: verbatim
14135 #: ../src/guestfs-actions.pod:4770
14136 #, no-wrap
14137 msgid ""
14138 " int\n"
14139 " guestfs_mount_loop (guestfs_h *g,\n"
14140 "                     const char *file,\n"
14141 "                     const char *mountpoint);\n"
14142 "\n"
14143 msgstr ""
14144
14145 #. type: textblock
14146 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3230
14147 msgid ""
14148 "This command lets you mount C<file> (a filesystem image in a file) on a "
14149 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14150 "mountpoint>."
14151 msgstr ""
14152
14153 #. type: =head2
14154 #: ../src/guestfs-actions.pod:4783
14155 msgid "guestfs_mount_options"
14156 msgstr ""
14157
14158 #. type: verbatim
14159 #: ../src/guestfs-actions.pod:4785
14160 #, no-wrap
14161 msgid ""
14162 " int\n"
14163 " guestfs_mount_options (guestfs_h *g,\n"
14164 "                        const char *options,\n"
14165 "                        const char *device,\n"
14166 "                        const char *mountpoint);\n"
14167 "\n"
14168 msgstr ""
14169
14170 #. type: textblock
14171 #: ../src/guestfs-actions.pod:4791
14172 msgid ""
14173 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14174 "the mount options as for the L<mount(8)> I<-o> flag."
14175 msgstr ""
14176
14177 #. type: textblock
14178 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3242
14179 msgid ""
14180 "If the C<options> parameter is an empty string, then no options are passed "
14181 "(all options default to whatever the filesystem uses)."
14182 msgstr ""
14183
14184 #. type: textblock
14185 #: ../src/guestfs-actions.pod:4801 ../src/guestfs-actions.pod:4815
14186 #: ../src/guestfs-actions.pod:4832
14187 msgid "(Added in 1.0.10)"
14188 msgstr ""
14189
14190 #. type: =head2
14191 #: ../src/guestfs-actions.pod:4803
14192 msgid "guestfs_mount_ro"
14193 msgstr ""
14194
14195 #. type: verbatim
14196 #: ../src/guestfs-actions.pod:4805
14197 #, no-wrap
14198 msgid ""
14199 " int\n"
14200 " guestfs_mount_ro (guestfs_h *g,\n"
14201 "                   const char *device,\n"
14202 "                   const char *mountpoint);\n"
14203 "\n"
14204 msgstr ""
14205
14206 #. type: textblock
14207 #: ../src/guestfs-actions.pod:4810
14208 msgid ""
14209 "This is the same as the C<guestfs_mount> command, but it mounts the "
14210 "filesystem with the read-only (I<-o ro>) flag."
14211 msgstr ""
14212
14213 #. type: =head2
14214 #: ../src/guestfs-actions.pod:4817
14215 msgid "guestfs_mount_vfs"
14216 msgstr ""
14217
14218 #. type: verbatim
14219 #: ../src/guestfs-actions.pod:4819
14220 #, no-wrap
14221 msgid ""
14222 " int\n"
14223 " guestfs_mount_vfs (guestfs_h *g,\n"
14224 "                    const char *options,\n"
14225 "                    const char *vfstype,\n"
14226 "                    const char *device,\n"
14227 "                    const char *mountpoint);\n"
14228 "\n"
14229 msgstr ""
14230
14231 #. type: textblock
14232 #: ../src/guestfs-actions.pod:4826
14233 msgid ""
14234 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14235 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
14236 "t> flags."
14237 msgstr ""
14238
14239 #. type: =head2
14240 #: ../src/guestfs-actions.pod:4834
14241 msgid "guestfs_mountpoints"
14242 msgstr ""
14243
14244 #. type: verbatim
14245 #: ../src/guestfs-actions.pod:4836
14246 #, no-wrap
14247 msgid ""
14248 " char **\n"
14249 " guestfs_mountpoints (guestfs_h *g);\n"
14250 "\n"
14251 msgstr ""
14252
14253 #. type: textblock
14254 #: ../src/guestfs-actions.pod:4839
14255 msgid ""
14256 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14257 "devices.  This one returns a hash table (map) of device name to directory "
14258 "where the device is mounted."
14259 msgstr ""
14260
14261 #. type: =head2
14262 #: ../src/guestfs-actions.pod:4851
14263 msgid "guestfs_mounts"
14264 msgstr ""
14265
14266 #. type: verbatim
14267 #: ../src/guestfs-actions.pod:4853
14268 #, no-wrap
14269 msgid ""
14270 " char **\n"
14271 " guestfs_mounts (guestfs_h *g);\n"
14272 "\n"
14273 msgstr ""
14274
14275 #. type: textblock
14276 #: ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:3273
14277 msgid ""
14278 "This returns the list of currently mounted filesystems.  It returns the list "
14279 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14280 msgstr ""
14281
14282 #. type: textblock
14283 #: ../src/guestfs-actions.pod:4859 ../fish/guestfish-actions.pod:3276
14284 msgid "Some internal mounts are not shown."
14285 msgstr ""
14286
14287 #. type: textblock
14288 #: ../src/guestfs-actions.pod:4861
14289 msgid "See also: C<guestfs_mountpoints>"
14290 msgstr ""
14291
14292 #. type: =head2
14293 #: ../src/guestfs-actions.pod:4869
14294 msgid "guestfs_mv"
14295 msgstr ""
14296
14297 #. type: verbatim
14298 #: ../src/guestfs-actions.pod:4871
14299 #, no-wrap
14300 msgid ""
14301 " int\n"
14302 " guestfs_mv (guestfs_h *g,\n"
14303 "             const char *src,\n"
14304 "             const char *dest);\n"
14305 "\n"
14306 msgstr ""
14307
14308 #. type: textblock
14309 #: ../src/guestfs-actions.pod:4876 ../fish/guestfish-actions.pod:3284
14310 msgid ""
14311 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14312 "destination filename or destination directory."
14313 msgstr ""
14314
14315 #. type: =head2
14316 #: ../src/guestfs-actions.pod:4883
14317 msgid "guestfs_ntfs_3g_probe"
14318 msgstr ""
14319
14320 #. type: verbatim
14321 #: ../src/guestfs-actions.pod:4885
14322 #, no-wrap
14323 msgid ""
14324 " int\n"
14325 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14326 "                        int rw,\n"
14327 "                        const char *device);\n"
14328 "\n"
14329 msgstr ""
14330
14331 #. type: textblock
14332 #: ../src/guestfs-actions.pod:4890 ../fish/guestfish-actions.pod:3291
14333 msgid ""
14334 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14335 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14336 "write, and some cannot be mounted at all)."
14337 msgstr ""
14338
14339 #. type: textblock
14340 #: ../src/guestfs-actions.pod:4894 ../fish/guestfish-actions.pod:3295
14341 msgid ""
14342 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14343 "can be mounted read-write.  Set it to false if you want to test if the "
14344 "volume can be mounted read-only."
14345 msgstr ""
14346
14347 #. type: textblock
14348 #: ../src/guestfs-actions.pod:4898 ../fish/guestfish-actions.pod:3299
14349 msgid ""
14350 "The return value is an integer which C<0> if the operation would succeed, or "
14351 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14352 msgstr ""
14353
14354 #. type: textblock
14355 #: ../src/guestfs-actions.pod:4904
14356 msgid "(Added in 1.0.43)"
14357 msgstr ""
14358
14359 #. type: =head2
14360 #: ../src/guestfs-actions.pod:4906
14361 msgid "guestfs_ntfsresize"
14362 msgstr ""
14363
14364 #. type: verbatim
14365 #: ../src/guestfs-actions.pod:4908
14366 #, no-wrap
14367 msgid ""
14368 " int\n"
14369 " guestfs_ntfsresize (guestfs_h *g,\n"
14370 "                     const char *device);\n"
14371 "\n"
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3307
14376 msgid ""
14377 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14378 "size of the underlying device.  See also L<ntfsresize(8)>."
14379 msgstr ""
14380
14381 #. type: =head2
14382 #: ../src/guestfs-actions.pod:4920
14383 msgid "guestfs_ntfsresize_size"
14384 msgstr ""
14385
14386 #. type: verbatim
14387 #: ../src/guestfs-actions.pod:4922
14388 #, no-wrap
14389 msgid ""
14390 " int\n"
14391 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14392 "                          const char *device,\n"
14393 "                          int64_t size);\n"
14394 "\n"
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../src/guestfs-actions.pod:4927
14399 msgid ""
14400 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14401 "to specify the new size (in bytes) explicitly."
14402 msgstr ""
14403
14404 #. type: textblock
14405 #: ../src/guestfs-actions.pod:4932 ../src/guestfs-actions.pod:5368
14406 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5707
14407 #: ../src/guestfs-actions.pod:7313
14408 msgid "(Added in 1.3.14)"
14409 msgstr ""
14410
14411 #. type: =head2
14412 #: ../src/guestfs-actions.pod:4934
14413 msgid "guestfs_part_add"
14414 msgstr ""
14415
14416 #. type: verbatim
14417 #: ../src/guestfs-actions.pod:4936
14418 #, no-wrap
14419 msgid ""
14420 " int\n"
14421 " guestfs_part_add (guestfs_h *g,\n"
14422 "                   const char *device,\n"
14423 "                   const char *prlogex,\n"
14424 "                   int64_t startsect,\n"
14425 "                   int64_t endsect);\n"
14426 "\n"
14427 msgstr ""
14428
14429 #. type: textblock
14430 #: ../src/guestfs-actions.pod:4943
14431 msgid ""
14432 "This command adds a partition to C<device>.  If there is no partition table "
14433 "on the device, call C<guestfs_part_init> first."
14434 msgstr ""
14435
14436 #. type: textblock
14437 #: ../src/guestfs-actions.pod:4946 ../fish/guestfish-actions.pod:3325
14438 msgid ""
14439 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14440 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14441 "C<logical>) and C<e> (or C<extended>) partition types."
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3330
14446 msgid ""
14447 "C<startsect> and C<endsect> are the start and end of the partition in "
14448 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14449 "from the end of the disk (C<-1> is the last sector)."
14450 msgstr ""
14451
14452 #. type: textblock
14453 #: ../src/guestfs-actions.pod:4955
14454 msgid ""
14455 "Creating a partition which covers the whole disk is not so easy.  Use "
14456 "C<guestfs_part_disk> to do that."
14457 msgstr ""
14458
14459 #. type: textblock
14460 #: ../src/guestfs-actions.pod:4960 ../src/guestfs-actions.pod:4998
14461 #: ../src/guestfs-actions.pod:5051 ../src/guestfs-actions.pod:5129
14462 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5186
14463 #: ../src/guestfs-actions.pod:5226
14464 msgid "(Added in 1.0.78)"
14465 msgstr ""
14466
14467 #. type: =head2
14468 #: ../src/guestfs-actions.pod:4962
14469 msgid "guestfs_part_del"
14470 msgstr ""
14471
14472 #. type: verbatim
14473 #: ../src/guestfs-actions.pod:4964
14474 #, no-wrap
14475 msgid ""
14476 " int\n"
14477 " guestfs_part_del (guestfs_h *g,\n"
14478 "                   const char *device,\n"
14479 "                   int partnum);\n"
14480 "\n"
14481 msgstr ""
14482
14483 #. type: textblock
14484 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3341
14485 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14486 msgstr ""
14487
14488 #. type: textblock
14489 #: ../src/guestfs-actions.pod:4971 ../fish/guestfish-actions.pod:3343
14490 msgid ""
14491 "Note that in the case of MBR partitioning, deleting an extended partition "
14492 "also deletes any logical partitions it contains."
14493 msgstr ""
14494
14495 #. type: =head2
14496 #: ../src/guestfs-actions.pod:4979
14497 msgid "guestfs_part_disk"
14498 msgstr ""
14499
14500 #. type: verbatim
14501 #: ../src/guestfs-actions.pod:4981
14502 #, no-wrap
14503 msgid ""
14504 " int\n"
14505 " guestfs_part_disk (guestfs_h *g,\n"
14506 "                    const char *device,\n"
14507 "                    const char *parttype);\n"
14508 "\n"
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../src/guestfs-actions.pod:4986
14513 msgid ""
14514 "This command is simply a combination of C<guestfs_part_init> followed by "
14515 "C<guestfs_part_add> to create a single primary partition covering the whole "
14516 "disk."
14517 msgstr ""
14518
14519 #. type: textblock
14520 #: ../src/guestfs-actions.pod:4990
14521 msgid ""
14522 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14523 "possible values are described in C<guestfs_part_init>."
14524 msgstr ""
14525
14526 #. type: =head2
14527 #: ../src/guestfs-actions.pod:5000
14528 msgid "guestfs_part_get_bootable"
14529 msgstr ""
14530
14531 #. type: verbatim
14532 #: ../src/guestfs-actions.pod:5002
14533 #, no-wrap
14534 msgid ""
14535 " int\n"
14536 " guestfs_part_get_bootable (guestfs_h *g,\n"
14537 "                            const char *device,\n"
14538 "                            int partnum);\n"
14539 "\n"
14540 msgstr ""
14541
14542 #. type: textblock
14543 #: ../src/guestfs-actions.pod:5007 ../fish/guestfish-actions.pod:3365
14544 msgid ""
14545 "This command returns true if the partition C<partnum> on C<device> has the "
14546 "bootable flag set."
14547 msgstr ""
14548
14549 #. type: textblock
14550 #: ../src/guestfs-actions.pod:5010
14551 msgid "See also C<guestfs_part_set_bootable>."
14552 msgstr ""
14553
14554 #. type: =head2
14555 #: ../src/guestfs-actions.pod:5016
14556 msgid "guestfs_part_get_mbr_id"
14557 msgstr ""
14558
14559 #. type: verbatim
14560 #: ../src/guestfs-actions.pod:5018
14561 #, no-wrap
14562 msgid ""
14563 " int\n"
14564 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
14565 "                          const char *device,\n"
14566 "                          int partnum);\n"
14567 "\n"
14568 msgstr ""
14569
14570 #. type: textblock
14571 #: ../src/guestfs-actions.pod:5023 ../fish/guestfish-actions.pod:3374
14572 msgid ""
14573 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14574 "partition C<partnum>."
14575 msgstr ""
14576
14577 #. type: textblock
14578 #: ../src/guestfs-actions.pod:5026 ../src/guestfs-actions.pod:5202
14579 msgid ""
14580 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14581 "undefined results for other partition table types (see "
14582 "C<guestfs_part_get_parttype>)."
14583 msgstr ""
14584
14585 #. type: =head2
14586 #: ../src/guestfs-actions.pod:5034
14587 msgid "guestfs_part_get_parttype"
14588 msgstr ""
14589
14590 #. type: verbatim
14591 #: ../src/guestfs-actions.pod:5036
14592 #, no-wrap
14593 msgid ""
14594 " char *\n"
14595 " guestfs_part_get_parttype (guestfs_h *g,\n"
14596 "                            const char *device);\n"
14597 "\n"
14598 msgstr ""
14599
14600 #. type: textblock
14601 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3385
14602 msgid ""
14603 "This command examines the partition table on C<device> and returns the "
14604 "partition table type (format) being used."
14605 msgstr ""
14606
14607 #. type: textblock
14608 #: ../src/guestfs-actions.pod:5043
14609 msgid ""
14610 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14611 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14612 "possible, although unusual.  See C<guestfs_part_init> for a full list."
14613 msgstr ""
14614
14615 #. type: =head2
14616 #: ../src/guestfs-actions.pod:5053
14617 msgid "guestfs_part_init"
14618 msgstr ""
14619
14620 #. type: verbatim
14621 #: ../src/guestfs-actions.pod:5055
14622 #, no-wrap
14623 msgid ""
14624 " int\n"
14625 " guestfs_part_init (guestfs_h *g,\n"
14626 "                    const char *device,\n"
14627 "                    const char *parttype);\n"
14628 "\n"
14629 msgstr ""
14630
14631 #. type: textblock
14632 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3397
14633 msgid ""
14634 "This creates an empty partition table on C<device> of one of the partition "
14635 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14636 "(for large disks)."
14637 msgstr ""
14638
14639 #. type: textblock
14640 #: ../src/guestfs-actions.pod:5064
14641 msgid ""
14642 "Initially there are no partitions.  Following this, you should call "
14643 "C<guestfs_part_add> for each partition required."
14644 msgstr ""
14645
14646 #. type: textblock
14647 #: ../src/guestfs-actions.pod:5067 ../fish/guestfish-actions.pod:3404
14648 msgid "Possible values for C<parttype> are:"
14649 msgstr ""
14650
14651 #. type: =item
14652 #: ../src/guestfs-actions.pod:5071 ../fish/guestfish-actions.pod:3408
14653 msgid "B<efi> | B<gpt>"
14654 msgstr ""
14655
14656 #. type: textblock
14657 #: ../src/guestfs-actions.pod:5073 ../fish/guestfish-actions.pod:3410
14658 msgid "Intel EFI / GPT partition table."
14659 msgstr ""
14660
14661 #. type: textblock
14662 #: ../src/guestfs-actions.pod:5075 ../fish/guestfish-actions.pod:3412
14663 msgid ""
14664 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14665 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14666 "the C<mbr> format."
14667 msgstr ""
14668
14669 #. type: =item
14670 #: ../src/guestfs-actions.pod:5079 ../fish/guestfish-actions.pod:3416
14671 msgid "B<mbr> | B<msdos>"
14672 msgstr ""
14673
14674 #. type: textblock
14675 #: ../src/guestfs-actions.pod:5081 ../fish/guestfish-actions.pod:3418
14676 msgid ""
14677 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14678 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14679 "TB.  For large disks we recommend using C<gpt>."
14680 msgstr ""
14681
14682 #. type: textblock
14683 #: ../src/guestfs-actions.pod:5088 ../fish/guestfish-actions.pod:3425
14684 msgid ""
14685 "Other partition table types that may work but are not supported include:"
14686 msgstr ""
14687
14688 #. type: =item
14689 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3430
14690 msgid "B<aix>"
14691 msgstr ""
14692
14693 #. type: textblock
14694 #: ../src/guestfs-actions.pod:5095 ../fish/guestfish-actions.pod:3432
14695 msgid "AIX disk labels."
14696 msgstr ""
14697
14698 #. type: =item
14699 #: ../src/guestfs-actions.pod:5097 ../fish/guestfish-actions.pod:3434
14700 msgid "B<amiga> | B<rdb>"
14701 msgstr ""
14702
14703 #. type: textblock
14704 #: ../src/guestfs-actions.pod:5099 ../fish/guestfish-actions.pod:3436
14705 msgid "Amiga \"Rigid Disk Block\" format."
14706 msgstr ""
14707
14708 #. type: =item
14709 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3438
14710 msgid "B<bsd>"
14711 msgstr ""
14712
14713 #. type: textblock
14714 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3440
14715 msgid "BSD disk labels."
14716 msgstr ""
14717
14718 #. type: =item
14719 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3442
14720 msgid "B<dasd>"
14721 msgstr ""
14722
14723 #. type: textblock
14724 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3444
14725 msgid "DASD, used on IBM mainframes."
14726 msgstr ""
14727
14728 #. type: =item
14729 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3446
14730 msgid "B<dvh>"
14731 msgstr ""
14732
14733 #. type: textblock
14734 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3448
14735 msgid "MIPS/SGI volumes."
14736 msgstr ""
14737
14738 #. type: =item
14739 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3450
14740 msgid "B<mac>"
14741 msgstr ""
14742
14743 #. type: textblock
14744 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3452
14745 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14746 msgstr ""
14747
14748 #. type: =item
14749 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3454
14750 msgid "B<pc98>"
14751 msgstr ""
14752
14753 #. type: textblock
14754 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3456
14755 msgid "NEC PC-98 format, common in Japan apparently."
14756 msgstr ""
14757
14758 #. type: =item
14759 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3458
14760 msgid "B<sun>"
14761 msgstr ""
14762
14763 #. type: textblock
14764 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3460
14765 msgid "Sun disk labels."
14766 msgstr ""
14767
14768 #. type: =head2
14769 #: ../src/guestfs-actions.pod:5131
14770 msgid "guestfs_part_list"
14771 msgstr ""
14772
14773 #. type: verbatim
14774 #: ../src/guestfs-actions.pod:5133
14775 #, no-wrap
14776 msgid ""
14777 " struct guestfs_partition_list *\n"
14778 " guestfs_part_list (guestfs_h *g,\n"
14779 "                    const char *device);\n"
14780 "\n"
14781 msgstr ""
14782
14783 #. type: textblock
14784 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3468
14785 msgid ""
14786 "This command parses the partition table on C<device> and returns the list of "
14787 "partitions found."
14788 msgstr ""
14789
14790 #. type: textblock
14791 #: ../src/guestfs-actions.pod:5140 ../fish/guestfish-actions.pod:3471
14792 msgid "The fields in the returned structure are:"
14793 msgstr ""
14794
14795 #. type: =item
14796 #: ../src/guestfs-actions.pod:5144 ../fish/guestfish-actions.pod:3475
14797 msgid "B<part_num>"
14798 msgstr ""
14799
14800 #. type: textblock
14801 #: ../src/guestfs-actions.pod:5146 ../fish/guestfish-actions.pod:3477
14802 msgid "Partition number, counting from 1."
14803 msgstr ""
14804
14805 #. type: =item
14806 #: ../src/guestfs-actions.pod:5148 ../fish/guestfish-actions.pod:3479
14807 msgid "B<part_start>"
14808 msgstr ""
14809
14810 #. type: textblock
14811 #: ../src/guestfs-actions.pod:5150
14812 msgid ""
14813 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14814 "the device's sector size, see C<guestfs_blockdev_getss>."
14815 msgstr ""
14816
14817 #. type: =item
14818 #: ../src/guestfs-actions.pod:5153 ../fish/guestfish-actions.pod:3484
14819 msgid "B<part_end>"
14820 msgstr ""
14821
14822 #. type: textblock
14823 #: ../src/guestfs-actions.pod:5155 ../fish/guestfish-actions.pod:3486
14824 msgid "End of the partition in bytes."
14825 msgstr ""
14826
14827 #. type: =item
14828 #: ../src/guestfs-actions.pod:5157 ../fish/guestfish-actions.pod:3488
14829 msgid "B<part_size>"
14830 msgstr ""
14831
14832 #. type: textblock
14833 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3490
14834 msgid "Size of the partition in bytes."
14835 msgstr ""
14836
14837 #. type: textblock
14838 #: ../src/guestfs-actions.pod:5163
14839 msgid ""
14840 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
14841 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
14842 "use>."
14843 msgstr ""
14844
14845 #. type: =head2
14846 #: ../src/guestfs-actions.pod:5169
14847 msgid "guestfs_part_set_bootable"
14848 msgstr ""
14849
14850 #. type: verbatim
14851 #: ../src/guestfs-actions.pod:5171
14852 #, no-wrap
14853 msgid ""
14854 " int\n"
14855 " guestfs_part_set_bootable (guestfs_h *g,\n"
14856 "                            const char *device,\n"
14857 "                            int partnum,\n"
14858 "                            int bootable);\n"
14859 "\n"
14860 msgstr ""
14861
14862 #. type: textblock
14863 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:3498
14864 msgid ""
14865 "This sets the bootable flag on partition numbered C<partnum> on device "
14866 "C<device>.  Note that partitions are numbered from 1."
14867 msgstr ""
14868
14869 #. type: textblock
14870 #: ../src/guestfs-actions.pod:5180 ../fish/guestfish-actions.pod:3501
14871 msgid ""
14872 "The bootable flag is used by some operating systems (notably Windows) to "
14873 "determine which partition to boot from.  It is by no means universally "
14874 "recognized."
14875 msgstr ""
14876
14877 #. type: =head2
14878 #: ../src/guestfs-actions.pod:5188
14879 msgid "guestfs_part_set_mbr_id"
14880 msgstr ""
14881
14882 #. type: verbatim
14883 #: ../src/guestfs-actions.pod:5190
14884 #, no-wrap
14885 msgid ""
14886 " int\n"
14887 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
14888 "                          const char *device,\n"
14889 "                          int partnum,\n"
14890 "                          int idbyte);\n"
14891 "\n"
14892 msgstr ""
14893
14894 #. type: textblock
14895 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:3509
14896 msgid ""
14897 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14898 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14899 "documentation are in fact hexadecimal numbers, but usually documented "
14900 "without any leading \"0x\" which might be confusing."
14901 msgstr ""
14902
14903 #. type: =head2
14904 #: ../src/guestfs-actions.pod:5210
14905 msgid "guestfs_part_set_name"
14906 msgstr ""
14907
14908 #. type: verbatim
14909 #: ../src/guestfs-actions.pod:5212
14910 #, no-wrap
14911 msgid ""
14912 " int\n"
14913 " guestfs_part_set_name (guestfs_h *g,\n"
14914 "                        const char *device,\n"
14915 "                        int partnum,\n"
14916 "                        const char *name);\n"
14917 "\n"
14918 msgstr ""
14919
14920 #. type: textblock
14921 #: ../src/guestfs-actions.pod:5218 ../fish/guestfish-actions.pod:3523
14922 msgid ""
14923 "This sets the partition name on partition numbered C<partnum> on device "
14924 "C<device>.  Note that partitions are numbered from 1."
14925 msgstr ""
14926
14927 #. type: textblock
14928 #: ../src/guestfs-actions.pod:5221 ../fish/guestfish-actions.pod:3526
14929 msgid ""
14930 "The partition name can only be set on certain types of partition table.  "
14931 "This works on C<gpt> but not on C<mbr> partitions."
14932 msgstr ""
14933
14934 #. type: =head2
14935 #: ../src/guestfs-actions.pod:5228
14936 msgid "guestfs_part_to_dev"
14937 msgstr ""
14938
14939 #. type: verbatim
14940 #: ../src/guestfs-actions.pod:5230
14941 #, no-wrap
14942 msgid ""
14943 " char *\n"
14944 " guestfs_part_to_dev (guestfs_h *g,\n"
14945 "                      const char *partition);\n"
14946 "\n"
14947 msgstr ""
14948
14949 #. type: textblock
14950 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:3533
14951 msgid ""
14952 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14953 "partition number, returning the device name (eg. \"/dev/sdb\")."
14954 msgstr ""
14955
14956 #. type: textblock
14957 #: ../src/guestfs-actions.pod:5238
14958 msgid ""
14959 "The named partition must exist, for example as a string returned from "
14960 "C<guestfs_list_partitions>."
14961 msgstr ""
14962
14963 #. type: =head2
14964 #: ../src/guestfs-actions.pod:5246
14965 msgid "guestfs_ping_daemon"
14966 msgstr ""
14967
14968 #. type: verbatim
14969 #: ../src/guestfs-actions.pod:5248
14970 #, no-wrap
14971 msgid ""
14972 " int\n"
14973 " guestfs_ping_daemon (guestfs_h *g);\n"
14974 "\n"
14975 msgstr ""
14976
14977 #. type: textblock
14978 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3544
14979 msgid ""
14980 "This is a test probe into the guestfs daemon running inside the qemu "
14981 "subprocess.  Calling this function checks that the daemon responds to the "
14982 "ping message, without affecting the daemon or attached block device(s) in "
14983 "any other way."
14984 msgstr ""
14985
14986 #. type: =head2
14987 #: ../src/guestfs-actions.pod:5260
14988 msgid "guestfs_pread"
14989 msgstr ""
14990
14991 #. type: verbatim
14992 #: ../src/guestfs-actions.pod:5262
14993 #, no-wrap
14994 msgid ""
14995 " char *\n"
14996 " guestfs_pread (guestfs_h *g,\n"
14997 "                const char *path,\n"
14998 "                int count,\n"
14999 "                int64_t offset,\n"
15000 "                size_t *size_r);\n"
15001 "\n"
15002 msgstr ""
15003
15004 #. type: textblock
15005 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3553
15006 msgid ""
15007 "This command lets you read part of a file.  It reads C<count> bytes of the "
15008 "file, starting at C<offset>, from file C<path>."
15009 msgstr ""
15010
15011 #. type: textblock
15012 #: ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5298
15013 #: ../fish/guestfish-actions.pod:3556 ../fish/guestfish-actions.pod:3571
15014 msgid ""
15015 "This may read fewer bytes than requested.  For further details see the "
15016 "L<pread(2)> system call."
15017 msgstr ""
15018
15019 #. type: textblock
15020 #: ../src/guestfs-actions.pod:5275
15021 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
15022 msgstr ""
15023
15024 #. type: =head2
15025 #: ../src/guestfs-actions.pod:5286
15026 msgid "guestfs_pread_device"
15027 msgstr ""
15028
15029 #. type: verbatim
15030 #: ../src/guestfs-actions.pod:5288
15031 #, no-wrap
15032 msgid ""
15033 " char *\n"
15034 " guestfs_pread_device (guestfs_h *g,\n"
15035 "                       const char *device,\n"
15036 "                       int count,\n"
15037 "                       int64_t offset,\n"
15038 "                       size_t *size_r);\n"
15039 "\n"
15040 msgstr ""
15041
15042 #. type: textblock
15043 #: ../src/guestfs-actions.pod:5295 ../fish/guestfish-actions.pod:3568
15044 msgid ""
15045 "This command lets you read part of a file.  It reads C<count> bytes of "
15046 "C<device>, starting at C<offset>."
15047 msgstr ""
15048
15049 #. type: textblock
15050 #: ../src/guestfs-actions.pod:5301
15051 msgid "See also C<guestfs_pread>."
15052 msgstr ""
15053
15054 #. type: textblock
15055 #: ../src/guestfs-actions.pod:5310
15056 msgid "(Added in 1.5.21)"
15057 msgstr ""
15058
15059 #. type: =head2
15060 #: ../src/guestfs-actions.pod:5312
15061 msgid "guestfs_pvcreate"
15062 msgstr ""
15063
15064 #. type: verbatim
15065 #: ../src/guestfs-actions.pod:5314
15066 #, no-wrap
15067 msgid ""
15068 " int\n"
15069 " guestfs_pvcreate (guestfs_h *g,\n"
15070 "                   const char *device);\n"
15071 "\n"
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../src/guestfs-actions.pod:5318 ../fish/guestfish-actions.pod:3583
15076 msgid ""
15077 "This creates an LVM physical volume on the named C<device>, where C<device> "
15078 "should usually be a partition name such as C</dev/sda1>."
15079 msgstr ""
15080
15081 #. type: =head2
15082 #: ../src/guestfs-actions.pod:5326
15083 msgid "guestfs_pvremove"
15084 msgstr ""
15085
15086 #. type: verbatim
15087 #: ../src/guestfs-actions.pod:5328
15088 #, no-wrap
15089 msgid ""
15090 " int\n"
15091 " guestfs_pvremove (guestfs_h *g,\n"
15092 "                   const char *device);\n"
15093 "\n"
15094 msgstr ""
15095
15096 #. type: textblock
15097 #: ../src/guestfs-actions.pod:5332 ../fish/guestfish-actions.pod:3591
15098 msgid ""
15099 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15100 "it."
15101 msgstr ""
15102
15103 #. type: textblock
15104 #: ../src/guestfs-actions.pod:5335 ../fish/guestfish-actions.pod:3594
15105 msgid ""
15106 "The implementation uses the C<pvremove> command which refuses to wipe "
15107 "physical volumes that contain any volume groups, so you have to remove those "
15108 "first."
15109 msgstr ""
15110
15111 #. type: =head2
15112 #: ../src/guestfs-actions.pod:5343
15113 msgid "guestfs_pvresize"
15114 msgstr ""
15115
15116 #. type: verbatim
15117 #: ../src/guestfs-actions.pod:5345
15118 #, no-wrap
15119 msgid ""
15120 " int\n"
15121 " guestfs_pvresize (guestfs_h *g,\n"
15122 "                   const char *device);\n"
15123 "\n"
15124 msgstr ""
15125
15126 #. type: textblock
15127 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:3602
15128 msgid ""
15129 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15130 "the new size of the underlying device."
15131 msgstr ""
15132
15133 #. type: =head2
15134 #: ../src/guestfs-actions.pod:5356
15135 msgid "guestfs_pvresize_size"
15136 msgstr ""
15137
15138 #. type: verbatim
15139 #: ../src/guestfs-actions.pod:5358
15140 #, no-wrap
15141 msgid ""
15142 " int\n"
15143 " guestfs_pvresize_size (guestfs_h *g,\n"
15144 "                        const char *device,\n"
15145 "                        int64_t size);\n"
15146 "\n"
15147 msgstr ""
15148
15149 #. type: textblock
15150 #: ../src/guestfs-actions.pod:5363
15151 msgid ""
15152 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15153 "specify the new size (in bytes) explicitly."
15154 msgstr ""
15155
15156 #. type: =head2
15157 #: ../src/guestfs-actions.pod:5370
15158 msgid "guestfs_pvs"
15159 msgstr ""
15160
15161 #. type: verbatim
15162 #: ../src/guestfs-actions.pod:5372
15163 #, no-wrap
15164 msgid ""
15165 " char **\n"
15166 " guestfs_pvs (guestfs_h *g);\n"
15167 "\n"
15168 msgstr ""
15169
15170 #. type: textblock
15171 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3616
15172 msgid ""
15173 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15174 "(8)> command."
15175 msgstr ""
15176
15177 #. type: textblock
15178 #: ../src/guestfs-actions.pod:5378 ../fish/guestfish-actions.pod:3619
15179 msgid ""
15180 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15181 "sda2>)."
15182 msgstr ""
15183
15184 #. type: textblock
15185 #: ../src/guestfs-actions.pod:5381
15186 msgid "See also C<guestfs_pvs_full>."
15187 msgstr ""
15188
15189 #. type: =head2
15190 #: ../src/guestfs-actions.pod:5389
15191 msgid "guestfs_pvs_full"
15192 msgstr ""
15193
15194 #. type: verbatim
15195 #: ../src/guestfs-actions.pod:5391
15196 #, no-wrap
15197 msgid ""
15198 " struct guestfs_lvm_pv_list *\n"
15199 " guestfs_pvs_full (guestfs_h *g);\n"
15200 "\n"
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:3628
15205 msgid ""
15206 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15207 "(8)> command.  The \"full\" version includes all fields."
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../src/guestfs-actions.pod:5397
15212 msgid ""
15213 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15214 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
15215 msgstr ""
15216
15217 #. type: =head2
15218 #: ../src/guestfs-actions.pod:5403
15219 msgid "guestfs_pvuuid"
15220 msgstr ""
15221
15222 #. type: verbatim
15223 #: ../src/guestfs-actions.pod:5405
15224 #, no-wrap
15225 msgid ""
15226 " char *\n"
15227 " guestfs_pvuuid (guestfs_h *g,\n"
15228 "                 const char *device);\n"
15229 "\n"
15230 msgstr ""
15231
15232 #. type: textblock
15233 #: ../src/guestfs-actions.pod:5409 ../fish/guestfish-actions.pod:3635
15234 msgid "This command returns the UUID of the LVM PV C<device>."
15235 msgstr ""
15236
15237 #. type: =head2
15238 #: ../src/guestfs-actions.pod:5416
15239 msgid "guestfs_pwrite"
15240 msgstr ""
15241
15242 #. type: verbatim
15243 #: ../src/guestfs-actions.pod:5418
15244 #, no-wrap
15245 msgid ""
15246 " int\n"
15247 " guestfs_pwrite (guestfs_h *g,\n"
15248 "                 const char *path,\n"
15249 "                 const char *content,\n"
15250 "                 size_t content_size,\n"
15251 "                 int64_t offset);\n"
15252 "\n"
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../src/guestfs-actions.pod:5425 ../fish/guestfish-actions.pod:3641
15257 msgid ""
15258 "This command writes to part of a file.  It writes the data buffer C<content> "
15259 "to the file C<path> starting at offset C<offset>."
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3644
15264 msgid ""
15265 "This command implements the L<pwrite(2)> system call, and like that system "
15266 "call it may not write the full data requested.  The return value is the "
15267 "number of bytes that were actually written to the file.  This could even be "
15268 "0, although short writes are unlikely for regular files in ordinary "
15269 "circumstances."
15270 msgstr ""
15271
15272 #. type: textblock
15273 #: ../src/guestfs-actions.pod:5434
15274 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15275 msgstr ""
15276
15277 #. type: =head2
15278 #: ../src/guestfs-actions.pod:5443
15279 msgid "guestfs_pwrite_device"
15280 msgstr ""
15281
15282 #. type: verbatim
15283 #: ../src/guestfs-actions.pod:5445
15284 #, no-wrap
15285 msgid ""
15286 " int\n"
15287 " guestfs_pwrite_device (guestfs_h *g,\n"
15288 "                        const char *device,\n"
15289 "                        const char *content,\n"
15290 "                        size_t content_size,\n"
15291 "                        int64_t offset);\n"
15292 "\n"
15293 msgstr ""
15294
15295 #. type: textblock
15296 #: ../src/guestfs-actions.pod:5452 ../fish/guestfish-actions.pod:3659
15297 msgid ""
15298 "This command writes to part of a device.  It writes the data buffer "
15299 "C<content> to C<device> starting at offset C<offset>."
15300 msgstr ""
15301
15302 #. type: textblock
15303 #: ../src/guestfs-actions.pod:5455 ../fish/guestfish-actions.pod:3662
15304 msgid ""
15305 "This command implements the L<pwrite(2)> system call, and like that system "
15306 "call it may not write the full data requested (although short writes to disk "
15307 "devices and partitions are probably impossible with standard Linux kernels)."
15308 msgstr ""
15309
15310 #. type: textblock
15311 #: ../src/guestfs-actions.pod:5460
15312 msgid "See also C<guestfs_pwrite>."
15313 msgstr ""
15314
15315 #. type: textblock
15316 #: ../src/guestfs-actions.pod:5467
15317 msgid "(Added in 1.5.20)"
15318 msgstr ""
15319
15320 #. type: =head2
15321 #: ../src/guestfs-actions.pod:5469
15322 msgid "guestfs_read_file"
15323 msgstr ""
15324
15325 #. type: verbatim
15326 #: ../src/guestfs-actions.pod:5471
15327 #, no-wrap
15328 msgid ""
15329 " char *\n"
15330 " guestfs_read_file (guestfs_h *g,\n"
15331 "                    const char *path,\n"
15332 "                    size_t *size_r);\n"
15333 "\n"
15334 msgstr ""
15335
15336 #. type: textblock
15337 #: ../src/guestfs-actions.pod:5476 ../fish/guestfish-actions.pod:3676
15338 msgid "This calls returns the contents of the file C<path> as a buffer."
15339 msgstr ""
15340
15341 #. type: textblock
15342 #: ../src/guestfs-actions.pod:5479
15343 msgid ""
15344 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
15345 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
15346 "function is limited in the total size of file that can be handled."
15347 msgstr ""
15348
15349 #. type: textblock
15350 #: ../src/guestfs-actions.pod:5491
15351 msgid "(Added in 1.0.63)"
15352 msgstr ""
15353
15354 #. type: =head2
15355 #: ../src/guestfs-actions.pod:5493
15356 msgid "guestfs_read_lines"
15357 msgstr ""
15358
15359 #. type: verbatim
15360 #: ../src/guestfs-actions.pod:5495
15361 #, no-wrap
15362 msgid ""
15363 " char **\n"
15364 " guestfs_read_lines (guestfs_h *g,\n"
15365 "                     const char *path);\n"
15366 "\n"
15367 msgstr ""
15368
15369 #. type: textblock
15370 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:3693
15371 msgid ""
15372 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15373 "C<CRLF> character sequences are I<not> returned."
15374 msgstr ""
15375
15376 #. type: textblock
15377 #: ../src/guestfs-actions.pod:5504
15378 msgid ""
15379 "Note that this function cannot correctly handle binary files (specifically, "
15380 "files containing C<\\0> character which is treated as end of line).  For "
15381 "those you need to use the C<guestfs_read_file> function which has a more "
15382 "complex interface."
15383 msgstr ""
15384
15385 #. type: =head2
15386 #: ../src/guestfs-actions.pod:5515
15387 msgid "guestfs_readdir"
15388 msgstr ""
15389
15390 #. type: verbatim
15391 #: ../src/guestfs-actions.pod:5517
15392 #, no-wrap
15393 msgid ""
15394 " struct guestfs_dirent_list *\n"
15395 " guestfs_readdir (guestfs_h *g,\n"
15396 "                  const char *dir);\n"
15397 "\n"
15398 msgstr ""
15399
15400 #. type: textblock
15401 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3705
15402 msgid "This returns the list of directory entries in directory C<dir>."
15403 msgstr ""
15404
15405 #. type: textblock
15406 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3707
15407 msgid ""
15408 "All entries in the directory are returned, including C<.> and C<..>.  The "
15409 "entries are I<not> sorted, but returned in the same order as the underlying "
15410 "filesystem."
15411 msgstr ""
15412
15413 #. type: textblock
15414 #: ../src/guestfs-actions.pod:5527 ../fish/guestfish-actions.pod:3711
15415 msgid ""
15416 "Also this call returns basic file type information about each file.  The "
15417 "C<ftyp> field will contain one of the following characters:"
15418 msgstr ""
15419
15420 #. type: =item
15421 #: ../src/guestfs-actions.pod:5532 ../fish/guestfish-actions.pod:3716
15422 msgid "'b'"
15423 msgstr ""
15424
15425 #. type: textblock
15426 #: ../src/guestfs-actions.pod:5534 ../fish/guestfish-actions.pod:3718
15427 msgid "Block special"
15428 msgstr ""
15429
15430 #. type: =item
15431 #: ../src/guestfs-actions.pod:5536 ../fish/guestfish-actions.pod:3720
15432 msgid "'c'"
15433 msgstr ""
15434
15435 #. type: textblock
15436 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3722
15437 msgid "Char special"
15438 msgstr ""
15439
15440 #. type: =item
15441 #: ../src/guestfs-actions.pod:5540 ../fish/guestfish-actions.pod:3724
15442 msgid "'d'"
15443 msgstr ""
15444
15445 #. type: textblock
15446 #: ../src/guestfs-actions.pod:5542 ../fish/guestfish-actions.pod:3726
15447 msgid "Directory"
15448 msgstr ""
15449
15450 #. type: =item
15451 #: ../src/guestfs-actions.pod:5544 ../fish/guestfish-actions.pod:3728
15452 msgid "'f'"
15453 msgstr ""
15454
15455 #. type: textblock
15456 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:3730
15457 msgid "FIFO (named pipe)"
15458 msgstr ""
15459
15460 #. type: =item
15461 #: ../src/guestfs-actions.pod:5548 ../fish/guestfish-actions.pod:3732
15462 msgid "'l'"
15463 msgstr ""
15464
15465 #. type: textblock
15466 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3734
15467 msgid "Symbolic link"
15468 msgstr ""
15469
15470 #. type: =item
15471 #: ../src/guestfs-actions.pod:5552 ../fish/guestfish-actions.pod:3736
15472 msgid "'r'"
15473 msgstr ""
15474
15475 #. type: textblock
15476 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:3738
15477 msgid "Regular file"
15478 msgstr ""
15479
15480 #. type: =item
15481 #: ../src/guestfs-actions.pod:5556 ../fish/guestfish-actions.pod:3740
15482 msgid "'s'"
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3742
15487 msgid "Socket"
15488 msgstr ""
15489
15490 #. type: =item
15491 #: ../src/guestfs-actions.pod:5560 ../fish/guestfish-actions.pod:3744
15492 msgid "'u'"
15493 msgstr ""
15494
15495 #. type: textblock
15496 #: ../src/guestfs-actions.pod:5562 ../fish/guestfish-actions.pod:3746
15497 msgid "Unknown file type"
15498 msgstr ""
15499
15500 #. type: =item
15501 #: ../src/guestfs-actions.pod:5564 ../fish/guestfish-actions.pod:3748
15502 msgid "'?'"
15503 msgstr ""
15504
15505 #. type: textblock
15506 #: ../src/guestfs-actions.pod:5566 ../fish/guestfish-actions.pod:3750
15507 msgid ""
15508 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../src/guestfs-actions.pod:5571
15513 msgid ""
15514 "This function is primarily intended for use by programs.  To get a simple "
15515 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
15516 "consumption, use C<guestfs_ll>."
15517 msgstr ""
15518
15519 #. type: textblock
15520 #: ../src/guestfs-actions.pod:5575
15521 msgid ""
15522 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
15523 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
15524 msgstr ""
15525
15526 #. type: =head2
15527 #: ../src/guestfs-actions.pod:5581
15528 msgid "guestfs_readlink"
15529 msgstr ""
15530
15531 #. type: verbatim
15532 #: ../src/guestfs-actions.pod:5583
15533 #, no-wrap
15534 msgid ""
15535 " char *\n"
15536 " guestfs_readlink (guestfs_h *g,\n"
15537 "                   const char *path);\n"
15538 "\n"
15539 msgstr ""
15540
15541 #. type: textblock
15542 #: ../src/guestfs-actions.pod:5587 ../fish/guestfish-actions.pod:3763
15543 msgid "This command reads the target of a symbolic link."
15544 msgstr ""
15545
15546 #. type: =head2
15547 #: ../src/guestfs-actions.pod:5594
15548 msgid "guestfs_readlinklist"
15549 msgstr ""
15550
15551 #. type: verbatim
15552 #: ../src/guestfs-actions.pod:5596
15553 #, no-wrap
15554 msgid ""
15555 " char **\n"
15556 " guestfs_readlinklist (guestfs_h *g,\n"
15557 "                       const char *path,\n"
15558 "                       char *const *names);\n"
15559 "\n"
15560 msgstr ""
15561
15562 #. type: textblock
15563 #: ../src/guestfs-actions.pod:5601 ../fish/guestfish-actions.pod:3769
15564 msgid ""
15565 "This call allows you to do a C<readlink> operation on multiple files, where "
15566 "all files are in the directory C<path>.  C<names> is the list of files from "
15567 "this directory."
15568 msgstr ""
15569
15570 #. type: textblock
15571 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:3773
15572 msgid ""
15573 "On return you get a list of strings, with a one-to-one correspondence to the "
15574 "C<names> list.  Each string is the value of the symbolic link."
15575 msgstr ""
15576
15577 #. type: textblock
15578 #: ../src/guestfs-actions.pod:5609 ../fish/guestfish-actions.pod:3777
15579 msgid ""
15580 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15581 "result string is the empty string C<\"\">.  However the whole operation is "
15582 "completed even if there were C<readlink(2)> errors, and so you can call this "
15583 "function with names where you don't know if they are symbolic links already "
15584 "(albeit slightly less efficient)."
15585 msgstr ""
15586
15587 #. type: textblock
15588 #: ../src/guestfs-actions.pod:5616 ../fish/guestfish-actions.pod:3784
15589 msgid ""
15590 "This call is intended for programs that want to efficiently list a directory "
15591 "contents without making many round-trips.  Very long directory listings "
15592 "might cause the protocol message size to be exceeded, causing this call to "
15593 "fail.  The caller must split up such requests into smaller groups of names."
15594 msgstr ""
15595
15596 #. type: =head2
15597 #: ../src/guestfs-actions.pod:5629
15598 msgid "guestfs_realpath"
15599 msgstr ""
15600
15601 #. type: verbatim
15602 #: ../src/guestfs-actions.pod:5631
15603 #, no-wrap
15604 msgid ""
15605 " char *\n"
15606 " guestfs_realpath (guestfs_h *g,\n"
15607 "                   const char *path);\n"
15608 "\n"
15609 msgstr ""
15610
15611 #. type: textblock
15612 #: ../src/guestfs-actions.pod:5635 ../fish/guestfish-actions.pod:3795
15613 msgid ""
15614 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15615 "has no C<.>, C<..> or symbolic link path elements."
15616 msgstr ""
15617
15618 #. type: =head2
15619 #: ../src/guestfs-actions.pod:5643
15620 msgid "guestfs_removexattr"
15621 msgstr ""
15622
15623 #. type: verbatim
15624 #: ../src/guestfs-actions.pod:5645
15625 #, no-wrap
15626 msgid ""
15627 " int\n"
15628 " guestfs_removexattr (guestfs_h *g,\n"
15629 "                      const char *xattr,\n"
15630 "                      const char *path);\n"
15631 "\n"
15632 msgstr ""
15633
15634 #. type: textblock
15635 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3802
15636 msgid ""
15637 "This call removes the extended attribute named C<xattr> of the file C<path>."
15638 msgstr ""
15639
15640 #. type: textblock
15641 #: ../src/guestfs-actions.pod:5653
15642 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
15643 msgstr ""
15644
15645 #. type: =head2
15646 #: ../src/guestfs-actions.pod:5659
15647 msgid "guestfs_resize2fs"
15648 msgstr ""
15649
15650 #. type: verbatim
15651 #: ../src/guestfs-actions.pod:5661
15652 #, no-wrap
15653 msgid ""
15654 " int\n"
15655 " guestfs_resize2fs (guestfs_h *g,\n"
15656 "                    const char *device);\n"
15657 "\n"
15658 msgstr ""
15659
15660 #. type: textblock
15661 #: ../src/guestfs-actions.pod:5665 ../fish/guestfish-actions.pod:3811
15662 msgid ""
15663 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15664 "underlying device."
15665 msgstr ""
15666
15667 #. type: textblock
15668 #: ../src/guestfs-actions.pod:5668
15669 msgid ""
15670 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
15671 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
15672 "sometimes gives an error about this and sometimes not.  In any case, it is "
15673 "always safe to call C<guestfs_e2fsck_f> before calling this function."
15674 msgstr ""
15675
15676 #. type: =head2
15677 #: ../src/guestfs-actions.pod:5678
15678 msgid "guestfs_resize2fs_M"
15679 msgstr ""
15680
15681 #. type: verbatim
15682 #: ../src/guestfs-actions.pod:5680
15683 #, no-wrap
15684 msgid ""
15685 " int\n"
15686 " guestfs_resize2fs_M (guestfs_h *g,\n"
15687 "                      const char *device);\n"
15688 "\n"
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../src/guestfs-actions.pod:5684
15693 msgid ""
15694 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
15695 "resized to its minimum size.  This works like the I<-M> option to the "
15696 "C<resize2fs> command."
15697 msgstr ""
15698
15699 #. type: textblock
15700 #: ../src/guestfs-actions.pod:5688
15701 msgid ""
15702 "To get the resulting size of the filesystem you should call "
15703 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
15704 "These two numbers, multiplied together, give the resulting size of the "
15705 "minimal filesystem in bytes."
15706 msgstr ""
15707
15708 #. type: =head2
15709 #: ../src/guestfs-actions.pod:5695
15710 msgid "guestfs_resize2fs_size"
15711 msgstr ""
15712
15713 #. type: verbatim
15714 #: ../src/guestfs-actions.pod:5697
15715 #, no-wrap
15716 msgid ""
15717 " int\n"
15718 " guestfs_resize2fs_size (guestfs_h *g,\n"
15719 "                         const char *device,\n"
15720 "                         int64_t size);\n"
15721 "\n"
15722 msgstr ""
15723
15724 #. type: textblock
15725 #: ../src/guestfs-actions.pod:5702
15726 msgid ""
15727 "This command is the same as C<guestfs_resize2fs> except that it allows you "
15728 "to specify the new size (in bytes) explicitly."
15729 msgstr ""
15730
15731 #. type: =head2
15732 #: ../src/guestfs-actions.pod:5709
15733 msgid "guestfs_rm"
15734 msgstr ""
15735
15736 #. type: verbatim
15737 #: ../src/guestfs-actions.pod:5711
15738 #, no-wrap
15739 msgid ""
15740 " int\n"
15741 " guestfs_rm (guestfs_h *g,\n"
15742 "             const char *path);\n"
15743 "\n"
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../src/guestfs-actions.pod:5715 ../fish/guestfish-actions.pod:3844
15748 msgid "Remove the single file C<path>."
15749 msgstr ""
15750
15751 #. type: =head2
15752 #: ../src/guestfs-actions.pod:5721
15753 msgid "guestfs_rm_rf"
15754 msgstr ""
15755
15756 #. type: verbatim
15757 #: ../src/guestfs-actions.pod:5723
15758 #, no-wrap
15759 msgid ""
15760 " int\n"
15761 " guestfs_rm_rf (guestfs_h *g,\n"
15762 "                const char *path);\n"
15763 "\n"
15764 msgstr ""
15765
15766 #. type: textblock
15767 #: ../src/guestfs-actions.pod:5727 ../fish/guestfish-actions.pod:3850
15768 msgid ""
15769 "Remove the file or directory C<path>, recursively removing the contents if "
15770 "its a directory.  This is like the C<rm -rf> shell command."
15771 msgstr ""
15772
15773 #. type: =head2
15774 #: ../src/guestfs-actions.pod:5735
15775 msgid "guestfs_rmdir"
15776 msgstr ""
15777
15778 #. type: verbatim
15779 #: ../src/guestfs-actions.pod:5737
15780 #, no-wrap
15781 msgid ""
15782 " int\n"
15783 " guestfs_rmdir (guestfs_h *g,\n"
15784 "                const char *path);\n"
15785 "\n"
15786 msgstr ""
15787
15788 #. type: textblock
15789 #: ../src/guestfs-actions.pod:5741 ../fish/guestfish-actions.pod:3858
15790 msgid "Remove the single directory C<path>."
15791 msgstr ""
15792
15793 #. type: =head2
15794 #: ../src/guestfs-actions.pod:5747
15795 msgid "guestfs_rmmountpoint"
15796 msgstr ""
15797
15798 #. type: verbatim
15799 #: ../src/guestfs-actions.pod:5749
15800 #, no-wrap
15801 msgid ""
15802 " int\n"
15803 " guestfs_rmmountpoint (guestfs_h *g,\n"
15804 "                       const char *exemptpath);\n"
15805 "\n"
15806 msgstr ""
15807
15808 #. type: textblock
15809 #: ../src/guestfs-actions.pod:5753
15810 msgid ""
15811 "This calls removes a mountpoint that was previously created with "
15812 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
15813 msgstr ""
15814
15815 #. type: =head2
15816 #: ../src/guestfs-actions.pod:5761
15817 msgid "guestfs_scrub_device"
15818 msgstr ""
15819
15820 #. type: verbatim
15821 #: ../src/guestfs-actions.pod:5763
15822 #, no-wrap
15823 msgid ""
15824 " int\n"
15825 " guestfs_scrub_device (guestfs_h *g,\n"
15826 "                       const char *device);\n"
15827 "\n"
15828 msgstr ""
15829
15830 #. type: textblock
15831 #: ../src/guestfs-actions.pod:5767 ../fish/guestfish-actions.pod:3872
15832 msgid ""
15833 "This command writes patterns over C<device> to make data retrieval more "
15834 "difficult."
15835 msgstr ""
15836
15837 #. type: textblock
15838 #: ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5791
15839 #: ../src/guestfs-actions.pod:5810 ../fish/guestfish-actions.pod:3875
15840 #: ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3903
15841 msgid ""
15842 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15843 "more details."
15844 msgstr ""
15845
15846 #. type: textblock
15847 #: ../src/guestfs-actions.pod:5778 ../src/guestfs-actions.pod:5796
15848 #: ../src/guestfs-actions.pod:5815
15849 msgid "(Added in 1.0.52)"
15850 msgstr ""
15851
15852 #. type: =head2
15853 #: ../src/guestfs-actions.pod:5780
15854 msgid "guestfs_scrub_file"
15855 msgstr ""
15856
15857 #. type: verbatim
15858 #: ../src/guestfs-actions.pod:5782
15859 #, no-wrap
15860 msgid ""
15861 " int\n"
15862 " guestfs_scrub_file (guestfs_h *g,\n"
15863 "                     const char *file);\n"
15864 "\n"
15865 msgstr ""
15866
15867 #. type: textblock
15868 #: ../src/guestfs-actions.pod:5786 ../fish/guestfish-actions.pod:3885
15869 msgid ""
15870 "This command writes patterns over a file to make data retrieval more "
15871 "difficult."
15872 msgstr ""
15873
15874 #. type: textblock
15875 #: ../src/guestfs-actions.pod:5789 ../fish/guestfish-actions.pod:3888
15876 msgid "The file is I<removed> after scrubbing."
15877 msgstr ""
15878
15879 #. type: =head2
15880 #: ../src/guestfs-actions.pod:5798
15881 msgid "guestfs_scrub_freespace"
15882 msgstr ""
15883
15884 #. type: verbatim
15885 #: ../src/guestfs-actions.pod:5800
15886 #, no-wrap
15887 msgid ""
15888 " int\n"
15889 " guestfs_scrub_freespace (guestfs_h *g,\n"
15890 "                          const char *dir);\n"
15891 "\n"
15892 msgstr ""
15893
15894 #. type: textblock
15895 #: ../src/guestfs-actions.pod:5804
15896 msgid ""
15897 "This command creates the directory C<dir> and then fills it with files until "
15898 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
15899 "and deletes them.  The intention is to scrub any free space on the partition "
15900 "containing C<dir>."
15901 msgstr ""
15902
15903 #. type: =head2
15904 #: ../src/guestfs-actions.pod:5817
15905 msgid "guestfs_set_append"
15906 msgstr ""
15907
15908 #. type: verbatim
15909 #: ../src/guestfs-actions.pod:5819
15910 #, no-wrap
15911 msgid ""
15912 " int\n"
15913 " guestfs_set_append (guestfs_h *g,\n"
15914 "                     const char *append);\n"
15915 "\n"
15916 msgstr ""
15917
15918 #. type: textblock
15919 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3912
15920 msgid ""
15921 "This function is used to add additional options to the guest kernel command "
15922 "line."
15923 msgstr ""
15924
15925 #. type: textblock
15926 #: ../src/guestfs-actions.pod:5826 ../fish/guestfish-actions.pod:3915
15927 msgid ""
15928 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15929 "environment variable."
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../src/guestfs-actions.pod:5829 ../fish/guestfish-actions.pod:3918
15934 msgid ""
15935 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15936 "(libguestfs always adds a few of its own)."
15937 msgstr ""
15938
15939 #. type: =head2
15940 #: ../src/guestfs-actions.pod:5836
15941 msgid "guestfs_set_attach_method"
15942 msgstr ""
15943
15944 #. type: verbatim
15945 #: ../src/guestfs-actions.pod:5838
15946 #, no-wrap
15947 msgid ""
15948 " int\n"
15949 " guestfs_set_attach_method (guestfs_h *g,\n"
15950 "                            const char *attachmethod);\n"
15951 "\n"
15952 msgstr ""
15953
15954 #. type: textblock
15955 #: ../src/guestfs-actions.pod:5842 ../fish/guestfish-actions.pod:3927
15956 msgid ""
15957 "Set the method that libguestfs uses to connect to the back end guestfsd "
15958 "daemon.  Possible methods are:"
15959 msgstr ""
15960
15961 #. type: textblock
15962 #: ../src/guestfs-actions.pod:5849 ../fish/guestfish-actions.pod:3934
15963 msgid ""
15964 "Launch an appliance and connect to it.  This is the ordinary method and the "
15965 "default."
15966 msgstr ""
15967
15968 #. type: =item
15969 #: ../src/guestfs-actions.pod:5852 ../fish/guestfish-actions.pod:3937
15970 msgid "C<unix:I<path>>"
15971 msgstr ""
15972
15973 #. type: textblock
15974 #: ../src/guestfs-actions.pod:5854 ../fish/guestfish-actions.pod:3939
15975 msgid "Connect to the Unix domain socket I<path>."
15976 msgstr ""
15977
15978 #. type: textblock
15979 #: ../src/guestfs-actions.pod:5856 ../fish/guestfish-actions.pod:3941
15980 msgid ""
15981 "This method lets you connect to an existing daemon or (using virtio-serial) "
15982 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15983 "RUNNING DAEMONS>."
15984 msgstr ""
15985
15986 #. type: =head2
15987 #: ../src/guestfs-actions.pod:5864
15988 msgid "guestfs_set_autosync"
15989 msgstr ""
15990
15991 #. type: verbatim
15992 #: ../src/guestfs-actions.pod:5866
15993 #, no-wrap
15994 msgid ""
15995 " int\n"
15996 " guestfs_set_autosync (guestfs_h *g,\n"
15997 "                       int autosync);\n"
15998 "\n"
15999 msgstr ""
16000
16001 #. type: textblock
16002 #: ../src/guestfs-actions.pod:5870 ../fish/guestfish-actions.pod:3953
16003 msgid ""
16004 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16005 "effort attempt to make filesystems consistent and synchronized when the "
16006 "handle is closed (also if the program exits without closing handles)."
16007 msgstr ""
16008
16009 #. type: textblock
16010 #: ../src/guestfs-actions.pod:5875 ../fish/guestfish-actions.pod:3958
16011 msgid ""
16012 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16013 "disabled by default)."
16014 msgstr ""
16015
16016 #. type: =head2
16017 #: ../src/guestfs-actions.pod:5882
16018 msgid "guestfs_set_direct"
16019 msgstr ""
16020
16021 #. type: verbatim
16022 #: ../src/guestfs-actions.pod:5884
16023 #, no-wrap
16024 msgid ""
16025 " int\n"
16026 " guestfs_set_direct (guestfs_h *g,\n"
16027 "                     int direct);\n"
16028 "\n"
16029 msgstr ""
16030
16031 #. type: textblock
16032 #: ../src/guestfs-actions.pod:5888 ../fish/guestfish-actions.pod:3967
16033 msgid ""
16034 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16035 "passed directly through to the appliance once it is launched."
16036 msgstr ""
16037
16038 #. type: textblock
16039 #: ../src/guestfs-actions.pod:5892
16040 msgid ""
16041 "One consequence of this is that log messages aren't caught by the library "
16042 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
16043 "stdout."
16044 msgstr ""
16045
16046 #. type: textblock
16047 #: ../src/guestfs-actions.pod:5896 ../fish/guestfish-actions.pod:3975
16048 msgid "You probably don't want to use this unless you know what you are doing."
16049 msgstr ""
16050
16051 #. type: textblock
16052 #: ../src/guestfs-actions.pod:5899 ../fish/guestfish-actions.pod:3978
16053 msgid "The default is disabled."
16054 msgstr ""
16055
16056 #. type: =head2
16057 #: ../src/guestfs-actions.pod:5905
16058 msgid "guestfs_set_e2label"
16059 msgstr ""
16060
16061 #. type: verbatim
16062 #: ../src/guestfs-actions.pod:5907
16063 #, no-wrap
16064 msgid ""
16065 " int\n"
16066 " guestfs_set_e2label (guestfs_h *g,\n"
16067 "                      const char *device,\n"
16068 "                      const char *label);\n"
16069 "\n"
16070 msgstr ""
16071
16072 #. type: textblock
16073 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3984
16074 msgid ""
16075 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16076 "C<label>.  Filesystem labels are limited to 16 characters."
16077 msgstr ""
16078
16079 #. type: textblock
16080 #: ../src/guestfs-actions.pod:5916
16081 msgid ""
16082 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16083 "the existing label on a filesystem."
16084 msgstr ""
16085
16086 #. type: =head2
16087 #: ../src/guestfs-actions.pod:5923
16088 msgid "guestfs_set_e2uuid"
16089 msgstr ""
16090
16091 #. type: verbatim
16092 #: ../src/guestfs-actions.pod:5925
16093 #, no-wrap
16094 msgid ""
16095 " int\n"
16096 " guestfs_set_e2uuid (guestfs_h *g,\n"
16097 "                     const char *device,\n"
16098 "                     const char *uuid);\n"
16099 "\n"
16100 msgstr ""
16101
16102 #. type: textblock
16103 #: ../src/guestfs-actions.pod:5930 ../fish/guestfish-actions.pod:3995
16104 msgid ""
16105 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16106 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16107 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../src/guestfs-actions.pod:5935
16112 msgid ""
16113 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16114 "the existing UUID of a filesystem."
16115 msgstr ""
16116
16117 #. type: =head2
16118 #: ../src/guestfs-actions.pod:5942
16119 msgid "guestfs_set_memsize"
16120 msgstr ""
16121
16122 #. type: verbatim
16123 #: ../src/guestfs-actions.pod:5944
16124 #, no-wrap
16125 msgid ""
16126 " int\n"
16127 " guestfs_set_memsize (guestfs_h *g,\n"
16128 "                      int memsize);\n"
16129 "\n"
16130 msgstr ""
16131
16132 #. type: textblock
16133 #: ../src/guestfs-actions.pod:5948
16134 msgid ""
16135 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16136 "This only has any effect if called before C<guestfs_launch>."
16137 msgstr ""
16138
16139 #. type: textblock
16140 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:4013
16141 msgid ""
16142 "You can also change this by setting the environment variable "
16143 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16144 msgstr ""
16145
16146 #. type: =head2
16147 #: ../src/guestfs-actions.pod:5963
16148 msgid "guestfs_set_network"
16149 msgstr ""
16150
16151 #. type: verbatim
16152 #: ../src/guestfs-actions.pod:5965
16153 #, no-wrap
16154 msgid ""
16155 " int\n"
16156 " guestfs_set_network (guestfs_h *g,\n"
16157 "                      int network);\n"
16158 "\n"
16159 msgstr ""
16160
16161 #. type: textblock
16162 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:4026
16163 msgid ""
16164 "If C<network> is true, then the network is enabled in the libguestfs "
16165 "appliance.  The default is false."
16166 msgstr ""
16167
16168 #. type: textblock
16169 #: ../src/guestfs-actions.pod:5972 ../fish/guestfish-actions.pod:4029
16170 msgid ""
16171 "This affects whether commands are able to access the network (see L<guestfs"
16172 "(3)/RUNNING COMMANDS>)."
16173 msgstr ""
16174
16175 #. type: textblock
16176 #: ../src/guestfs-actions.pod:5975
16177 msgid ""
16178 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16179 "effect."
16180 msgstr ""
16181
16182 #. type: =head2
16183 #: ../src/guestfs-actions.pod:5982
16184 msgid "guestfs_set_path"
16185 msgstr ""
16186
16187 #. type: verbatim
16188 #: ../src/guestfs-actions.pod:5984
16189 #, no-wrap
16190 msgid ""
16191 " int\n"
16192 " guestfs_set_path (guestfs_h *g,\n"
16193 "                   const char *searchpath);\n"
16194 "\n"
16195 msgstr ""
16196
16197 #. type: textblock
16198 #: ../src/guestfs-actions.pod:5988 ../fish/guestfish-actions.pod:4041
16199 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16200 msgstr ""
16201
16202 #. type: textblock
16203 #: ../src/guestfs-actions.pod:5990 ../fish/guestfish-actions.pod:4043
16204 msgid ""
16205 "The default is C<$libdir/guestfs> unless overridden by setting "
16206 "C<LIBGUESTFS_PATH> environment variable."
16207 msgstr ""
16208
16209 #. type: textblock
16210 #: ../src/guestfs-actions.pod:5993 ../fish/guestfish-actions.pod:4046
16211 msgid "Setting C<path> to C<NULL> restores the default path."
16212 msgstr ""
16213
16214 #. type: =head2
16215 #: ../src/guestfs-actions.pod:5999
16216 msgid "guestfs_set_qemu"
16217 msgstr ""
16218
16219 #. type: verbatim
16220 #: ../src/guestfs-actions.pod:6001
16221 #, no-wrap
16222 msgid ""
16223 " int\n"
16224 " guestfs_set_qemu (guestfs_h *g,\n"
16225 "                   const char *qemu);\n"
16226 "\n"
16227 msgstr ""
16228
16229 #. type: textblock
16230 #: ../src/guestfs-actions.pod:6005 ../fish/guestfish-actions.pod:4054
16231 msgid "Set the qemu binary that we will use."
16232 msgstr ""
16233
16234 #. type: textblock
16235 #: ../src/guestfs-actions.pod:6007 ../fish/guestfish-actions.pod:4056
16236 msgid ""
16237 "The default is chosen when the library was compiled by the configure script."
16238 msgstr ""
16239
16240 #. type: textblock
16241 #: ../src/guestfs-actions.pod:6010 ../fish/guestfish-actions.pod:4059
16242 msgid ""
16243 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16244 "variable."
16245 msgstr ""
16246
16247 #. type: textblock
16248 #: ../src/guestfs-actions.pod:6013 ../fish/guestfish-actions.pod:4062
16249 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16250 msgstr ""
16251
16252 #. type: textblock
16253 #: ../src/guestfs-actions.pod:6015 ../fish/guestfish-actions.pod:4064
16254 msgid ""
16255 "Note that you should call this function as early as possible after creating "
16256 "the handle.  This is because some pre-launch operations depend on testing "
16257 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16258 "don't retest features, and so you might see inconsistent results.  Using the "
16259 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16260 "the qemu binary at the same time as the handle is created."
16261 msgstr ""
16262
16263 #. type: =head2
16264 #: ../src/guestfs-actions.pod:6027
16265 msgid "guestfs_set_recovery_proc"
16266 msgstr ""
16267
16268 #. type: verbatim
16269 #: ../src/guestfs-actions.pod:6029
16270 #, no-wrap
16271 msgid ""
16272 " int\n"
16273 " guestfs_set_recovery_proc (guestfs_h *g,\n"
16274 "                            int recoveryproc);\n"
16275 "\n"
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../src/guestfs-actions.pod:6033
16280 msgid ""
16281 "If this is called with the parameter C<false> then C<guestfs_launch> does "
16282 "not create a recovery process.  The purpose of the recovery process is to "
16283 "stop runaway qemu processes in the case where the main program aborts "
16284 "abruptly."
16285 msgstr ""
16286
16287 #. type: textblock
16288 #: ../src/guestfs-actions.pod:6038
16289 msgid ""
16290 "This only has any effect if called before C<guestfs_launch>, and the default "
16291 "is true."
16292 msgstr ""
16293
16294 #. type: textblock
16295 #: ../src/guestfs-actions.pod:6041 ../fish/guestfish-actions.pod:4086
16296 msgid ""
16297 "About the only time when you would want to disable this is if the main "
16298 "process will fork itself into the background (\"daemonize\" itself).  In "
16299 "this case the recovery process thinks that the main program has disappeared "
16300 "and so kills qemu, which is not very helpful."
16301 msgstr ""
16302
16303 #. type: =head2
16304 #: ../src/guestfs-actions.pod:6051
16305 msgid "guestfs_set_selinux"
16306 msgstr ""
16307
16308 #. type: verbatim
16309 #: ../src/guestfs-actions.pod:6053
16310 #, no-wrap
16311 msgid ""
16312 " int\n"
16313 " guestfs_set_selinux (guestfs_h *g,\n"
16314 "                      int selinux);\n"
16315 "\n"
16316 msgstr ""
16317
16318 #. type: textblock
16319 #: ../src/guestfs-actions.pod:6057 ../fish/guestfish-actions.pod:4098
16320 msgid ""
16321 "This sets the selinux flag that is passed to the appliance at boot time.  "
16322 "The default is C<selinux=0> (disabled)."
16323 msgstr ""
16324
16325 #. type: textblock
16326 #: ../src/guestfs-actions.pod:6060 ../fish/guestfish-actions.pod:4101
16327 msgid ""
16328 "Note that if SELinux is enabled, it is always in Permissive mode "
16329 "(C<enforcing=0>)."
16330 msgstr ""
16331
16332 #. type: =head2
16333 #: ../src/guestfs-actions.pod:6070
16334 msgid "guestfs_set_trace"
16335 msgstr ""
16336
16337 #. type: verbatim
16338 #: ../src/guestfs-actions.pod:6072
16339 #, no-wrap
16340 msgid ""
16341 " int\n"
16342 " guestfs_set_trace (guestfs_h *g,\n"
16343 "                    int trace);\n"
16344 "\n"
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../src/guestfs-actions.pod:6076 ../fish/guestfish-actions.pod:4113
16349 msgid ""
16350 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16351 "return values are traced."
16352 msgstr ""
16353
16354 #. type: textblock
16355 #: ../src/guestfs-actions.pod:6079 ../fish/guestfish-actions.pod:4116
16356 msgid ""
16357 "If you want to trace C API calls into libguestfs (and other libraries) then "
16358 "possibly a better way is to use the external ltrace(1) command."
16359 msgstr ""
16360
16361 #. type: textblock
16362 #: ../src/guestfs-actions.pod:6083 ../fish/guestfish-actions.pod:4120
16363 msgid ""
16364 "Command traces are disabled unless the environment variable "
16365 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16366 msgstr ""
16367
16368 #. type: textblock
16369 #: ../src/guestfs-actions.pod:6086
16370 msgid ""
16371 "Trace messages are normally sent to C<stderr>, unless you register a "
16372 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16373 msgstr ""
16374
16375 #. type: =head2
16376 #: ../src/guestfs-actions.pod:6094
16377 msgid "guestfs_set_verbose"
16378 msgstr ""
16379
16380 #. type: verbatim
16381 #: ../src/guestfs-actions.pod:6096
16382 #, no-wrap
16383 msgid ""
16384 " int\n"
16385 " guestfs_set_verbose (guestfs_h *g,\n"
16386 "                      int verbose);\n"
16387 "\n"
16388 msgstr ""
16389
16390 #. type: textblock
16391 #: ../src/guestfs-actions.pod:6100 ../fish/guestfish-actions.pod:4133
16392 msgid "If C<verbose> is true, this turns on verbose messages."
16393 msgstr ""
16394
16395 #. type: textblock
16396 #: ../src/guestfs-actions.pod:6102 ../fish/guestfish-actions.pod:4135
16397 msgid ""
16398 "Verbose messages are disabled unless the environment variable "
16399 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16400 msgstr ""
16401
16402 #. type: textblock
16403 #: ../src/guestfs-actions.pod:6105
16404 msgid ""
16405 "Verbose messages are normally sent to C<stderr>, unless you register a "
16406 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16407 msgstr ""
16408
16409 #. type: =head2
16410 #: ../src/guestfs-actions.pod:6113
16411 msgid "guestfs_setcon"
16412 msgstr ""
16413
16414 #. type: verbatim
16415 #: ../src/guestfs-actions.pod:6115
16416 #, no-wrap
16417 msgid ""
16418 " int\n"
16419 " guestfs_setcon (guestfs_h *g,\n"
16420 "                 const char *context);\n"
16421 "\n"
16422 msgstr ""
16423
16424 #. type: textblock
16425 #: ../src/guestfs-actions.pod:6119 ../fish/guestfish-actions.pod:4146
16426 msgid ""
16427 "This sets the SELinux security context of the daemon to the string "
16428 "C<context>."
16429 msgstr ""
16430
16431 #. type: textblock
16432 #: ../src/guestfs-actions.pod:6122 ../fish/guestfish-actions.pod:4149
16433 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16434 msgstr ""
16435
16436 #. type: =head2
16437 #: ../src/guestfs-actions.pod:6128
16438 msgid "guestfs_setxattr"
16439 msgstr ""
16440
16441 #. type: verbatim
16442 #: ../src/guestfs-actions.pod:6130
16443 #, no-wrap
16444 msgid ""
16445 " int\n"
16446 " guestfs_setxattr (guestfs_h *g,\n"
16447 "                   const char *xattr,\n"
16448 "                   const char *val,\n"
16449 "                   int vallen,\n"
16450 "                   const char *path);\n"
16451 "\n"
16452 msgstr ""
16453
16454 #. type: textblock
16455 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4155
16456 msgid ""
16457 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16458 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../src/guestfs-actions.pod:6141
16463 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
16464 msgstr ""
16465
16466 #. type: =head2
16467 #: ../src/guestfs-actions.pod:6147
16468 msgid "guestfs_sfdisk"
16469 msgstr ""
16470
16471 #. type: verbatim
16472 #: ../src/guestfs-actions.pod:6149
16473 #, no-wrap
16474 msgid ""
16475 " int\n"
16476 " guestfs_sfdisk (guestfs_h *g,\n"
16477 "                 const char *device,\n"
16478 "                 int cyls,\n"
16479 "                 int heads,\n"
16480 "                 int sectors,\n"
16481 "                 char *const *lines);\n"
16482 "\n"
16483 msgstr ""
16484
16485 #. type: textblock
16486 #: ../src/guestfs-actions.pod:6157 ../fish/guestfish-actions.pod:4165
16487 msgid ""
16488 "This is a direct interface to the L<sfdisk(8)> program for creating "
16489 "partitions on block devices."
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../src/guestfs-actions.pod:6160 ../fish/guestfish-actions.pod:4168
16494 msgid "C<device> should be a block device, for example C</dev/sda>."
16495 msgstr ""
16496
16497 #. type: textblock
16498 #: ../src/guestfs-actions.pod:6162 ../fish/guestfish-actions.pod:4170
16499 msgid ""
16500 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16501 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16502 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16503 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16504 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16505 "the kernel) cannot work out the right geometry and you will need to tell it."
16506 msgstr ""
16507
16508 #. type: textblock
16509 #: ../src/guestfs-actions.pod:6170 ../fish/guestfish-actions.pod:4178
16510 msgid ""
16511 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16512 "refer to the L<sfdisk(8)> manpage."
16513 msgstr ""
16514
16515 #. type: textblock
16516 #: ../src/guestfs-actions.pod:6173 ../fish/guestfish-actions.pod:4181
16517 msgid ""
16518 "To create a single partition occupying the whole disk, you would pass "
16519 "C<lines> as a single element list, when the single element being the string "
16520 "C<,> (comma)."
16521 msgstr ""
16522
16523 #. type: textblock
16524 #: ../src/guestfs-actions.pod:6177
16525 msgid ""
16526 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
16527 msgstr ""
16528
16529 #. type: textblock
16530 #: ../src/guestfs-actions.pod:6185 ../src/guestfs-actions.pod:6215
16531 #: ../src/guestfs-actions.pod:6248 ../fish/guestfish-actions.pod:4191
16532 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4236
16533 msgid ""
16534 "This function is deprecated.  In new code, use the C<part_add> call instead."
16535 msgstr ""
16536
16537 #. type: =head2
16538 #: ../src/guestfs-actions.pod:6194
16539 msgid "guestfs_sfdiskM"
16540 msgstr ""
16541
16542 #. type: verbatim
16543 #: ../src/guestfs-actions.pod:6196
16544 #, no-wrap
16545 msgid ""
16546 " int\n"
16547 " guestfs_sfdiskM (guestfs_h *g,\n"
16548 "                  const char *device,\n"
16549 "                  char *const *lines);\n"
16550 "\n"
16551 msgstr ""
16552
16553 #. type: textblock
16554 #: ../src/guestfs-actions.pod:6201
16555 msgid ""
16556 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
16557 "partition sizes are specified in megabytes only (rounded to the nearest "
16558 "cylinder) and you don't need to specify the cyls, heads and sectors "
16559 "parameters which were rarely if ever used anyway."
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../src/guestfs-actions.pod:6207
16564 msgid ""
16565 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
16566 "C<guestfs_part_disk>"
16567 msgstr ""
16568
16569 #. type: =head2
16570 #: ../src/guestfs-actions.pod:6224
16571 msgid "guestfs_sfdisk_N"
16572 msgstr ""
16573
16574 #. type: verbatim
16575 #: ../src/guestfs-actions.pod:6226
16576 #, no-wrap
16577 msgid ""
16578 " int\n"
16579 " guestfs_sfdisk_N (guestfs_h *g,\n"
16580 "                   const char *device,\n"
16581 "                   int partnum,\n"
16582 "                   int cyls,\n"
16583 "                   int heads,\n"
16584 "                   int sectors,\n"
16585 "                   const char *line);\n"
16586 "\n"
16587 msgstr ""
16588
16589 #. type: textblock
16590 #: ../src/guestfs-actions.pod:6235 ../fish/guestfish-actions.pod:4225
16591 msgid ""
16592 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16593 "(note: C<n> counts from 1)."
16594 msgstr ""
16595
16596 #. type: textblock
16597 #: ../src/guestfs-actions.pod:6238
16598 msgid ""
16599 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
16600 "for the cyls/heads/sectors parameters."
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../src/guestfs-actions.pod:6241
16605 msgid "See also: C<guestfs_part_add>"
16606 msgstr ""
16607
16608 #. type: =head2
16609 #: ../src/guestfs-actions.pod:6257
16610 msgid "guestfs_sfdisk_disk_geometry"
16611 msgstr ""
16612
16613 #. type: verbatim
16614 #: ../src/guestfs-actions.pod:6259
16615 #, no-wrap
16616 msgid ""
16617 " char *\n"
16618 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
16619 "                               const char *device);\n"
16620 "\n"
16621 msgstr ""
16622
16623 #. type: textblock
16624 #: ../src/guestfs-actions.pod:6263
16625 msgid ""
16626 "This displays the disk geometry of C<device> read from the partition table.  "
16627 "Especially in the case where the underlying block device has been resized, "
16628 "this can be different from the kernel's idea of the geometry (see "
16629 "C<guestfs_sfdisk_kernel_geometry>)."
16630 msgstr ""
16631
16632 #. type: textblock
16633 #: ../src/guestfs-actions.pod:6268 ../src/guestfs-actions.pod:6284
16634 #: ../fish/guestfish-actions.pod:4252 ../fish/guestfish-actions.pod:4261
16635 msgid "The result is in human-readable format, and not designed to be parsed."
16636 msgstr ""
16637
16638 #. type: =head2
16639 #: ../src/guestfs-actions.pod:6276
16640 msgid "guestfs_sfdisk_kernel_geometry"
16641 msgstr ""
16642
16643 #. type: verbatim
16644 #: ../src/guestfs-actions.pod:6278
16645 #, no-wrap
16646 msgid ""
16647 " char *\n"
16648 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
16649 "                                 const char *device);\n"
16650 "\n"
16651 msgstr ""
16652
16653 #. type: textblock
16654 #: ../src/guestfs-actions.pod:6282 ../fish/guestfish-actions.pod:4259
16655 msgid "This displays the kernel's idea of the geometry of C<device>."
16656 msgstr ""
16657
16658 #. type: =head2
16659 #: ../src/guestfs-actions.pod:6292
16660 msgid "guestfs_sfdisk_l"
16661 msgstr ""
16662
16663 #. type: verbatim
16664 #: ../src/guestfs-actions.pod:6294
16665 #, no-wrap
16666 msgid ""
16667 " char *\n"
16668 " guestfs_sfdisk_l (guestfs_h *g,\n"
16669 "                   const char *device);\n"
16670 "\n"
16671 msgstr ""
16672
16673 #. type: textblock
16674 #: ../src/guestfs-actions.pod:6298 ../fish/guestfish-actions.pod:4268
16675 msgid ""
16676 "This displays the partition table on C<device>, in the human-readable output "
16677 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16678 msgstr ""
16679
16680 #. type: textblock
16681 #: ../src/guestfs-actions.pod:6302
16682 msgid "See also: C<guestfs_part_list>"
16683 msgstr ""
16684
16685 #. type: textblock
16686 #: ../src/guestfs-actions.pod:6307 ../fish/guestfish-actions.pod:4274
16687 msgid ""
16688 "This function is deprecated.  In new code, use the C<part_list> call instead."
16689 msgstr ""
16690
16691 #. type: =head2
16692 #: ../src/guestfs-actions.pod:6316
16693 msgid "guestfs_sh"
16694 msgstr ""
16695
16696 #. type: verbatim
16697 #: ../src/guestfs-actions.pod:6318
16698 #, no-wrap
16699 msgid ""
16700 " char *\n"
16701 " guestfs_sh (guestfs_h *g,\n"
16702 "             const char *command);\n"
16703 "\n"
16704 msgstr ""
16705
16706 #. type: textblock
16707 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4285
16708 msgid ""
16709 "This call runs a command from the guest filesystem via the guest's C</bin/"
16710 "sh>."
16711 msgstr ""
16712
16713 #. type: textblock
16714 #: ../src/guestfs-actions.pod:6325
16715 msgid "This is like C<guestfs_command>, but passes the command to:"
16716 msgstr ""
16717
16718 #. type: verbatim
16719 #: ../src/guestfs-actions.pod:6327 ../fish/guestfish-actions.pod:4290
16720 #, no-wrap
16721 msgid ""
16722 " /bin/sh -c \"command\"\n"
16723 "\n"
16724 msgstr ""
16725
16726 #. type: textblock
16727 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4292
16728 msgid ""
16729 "Depending on the guest's shell, this usually results in wildcards being "
16730 "expanded, shell expressions being interpolated and so on."
16731 msgstr ""
16732
16733 #. type: textblock
16734 #: ../src/guestfs-actions.pod:6333
16735 msgid "All the provisos about C<guestfs_command> apply to this call."
16736 msgstr ""
16737
16738 #. type: =head2
16739 #: ../src/guestfs-actions.pod:6340
16740 msgid "guestfs_sh_lines"
16741 msgstr ""
16742
16743 #. type: verbatim
16744 #: ../src/guestfs-actions.pod:6342
16745 #, no-wrap
16746 msgid ""
16747 " char **\n"
16748 " guestfs_sh_lines (guestfs_h *g,\n"
16749 "                   const char *command);\n"
16750 "\n"
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../src/guestfs-actions.pod:6346
16755 msgid ""
16756 "This is the same as C<guestfs_sh>, but splits the result into a list of "
16757 "lines."
16758 msgstr ""
16759
16760 #. type: textblock
16761 #: ../src/guestfs-actions.pod:6349
16762 msgid "See also: C<guestfs_command_lines>"
16763 msgstr ""
16764
16765 #. type: =head2
16766 #: ../src/guestfs-actions.pod:6357
16767 msgid "guestfs_sleep"
16768 msgstr ""
16769
16770 #. type: verbatim
16771 #: ../src/guestfs-actions.pod:6359
16772 #, no-wrap
16773 msgid ""
16774 " int\n"
16775 " guestfs_sleep (guestfs_h *g,\n"
16776 "                int secs);\n"
16777 "\n"
16778 msgstr ""
16779
16780 #. type: textblock
16781 #: ../src/guestfs-actions.pod:6363 ../fish/guestfish-actions.pod:4311
16782 msgid "Sleep for C<secs> seconds."
16783 msgstr ""
16784
16785 #. type: textblock
16786 #: ../src/guestfs-actions.pod:6367
16787 msgid "(Added in 1.0.41)"
16788 msgstr ""
16789
16790 #. type: =head2
16791 #: ../src/guestfs-actions.pod:6369 ../src/guestfs-structs.pod:109
16792 msgid "guestfs_stat"
16793 msgstr ""
16794
16795 #. type: verbatim
16796 #: ../src/guestfs-actions.pod:6371
16797 #, no-wrap
16798 msgid ""
16799 " struct guestfs_stat *\n"
16800 " guestfs_stat (guestfs_h *g,\n"
16801 "               const char *path);\n"
16802 "\n"
16803 msgstr ""
16804
16805 #. type: textblock
16806 #: ../src/guestfs-actions.pod:6377 ../fish/guestfish-actions.pod:4319
16807 msgid "This is the same as the C<stat(2)> system call."
16808 msgstr ""
16809
16810 #. type: =head2
16811 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-structs.pod:135
16812 msgid "guestfs_statvfs"
16813 msgstr ""
16814
16815 #. type: verbatim
16816 #: ../src/guestfs-actions.pod:6387
16817 #, no-wrap
16818 msgid ""
16819 " struct guestfs_statvfs *\n"
16820 " guestfs_statvfs (guestfs_h *g,\n"
16821 "                  const char *path);\n"
16822 "\n"
16823 msgstr ""
16824
16825 #. type: textblock
16826 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4325
16827 msgid ""
16828 "Returns file system statistics for any mounted file system.  C<path> should "
16829 "be a file or directory in the mounted file system (typically it is the mount "
16830 "point itself, but it doesn't need to be)."
16831 msgstr ""
16832
16833 #. type: textblock
16834 #: ../src/guestfs-actions.pod:6395 ../fish/guestfish-actions.pod:4329
16835 msgid "This is the same as the C<statvfs(2)> system call."
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../src/guestfs-actions.pod:6397
16840 msgid ""
16841 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
16842 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
16843 msgstr ""
16844
16845 #. type: =head2
16846 #: ../src/guestfs-actions.pod:6403
16847 msgid "guestfs_strings"
16848 msgstr ""
16849
16850 #. type: verbatim
16851 #: ../src/guestfs-actions.pod:6405
16852 #, no-wrap
16853 msgid ""
16854 " char **\n"
16855 " guestfs_strings (guestfs_h *g,\n"
16856 "                  const char *path);\n"
16857 "\n"
16858 msgstr ""
16859
16860 #. type: textblock
16861 #: ../src/guestfs-actions.pod:6409 ../fish/guestfish-actions.pod:4335
16862 msgid ""
16863 "This runs the L<strings(1)> command on a file and returns the list of "
16864 "printable strings found."
16865 msgstr ""
16866
16867 #. type: =head2
16868 #: ../src/guestfs-actions.pod:6421
16869 msgid "guestfs_strings_e"
16870 msgstr ""
16871
16872 #. type: verbatim
16873 #: ../src/guestfs-actions.pod:6423
16874 #, no-wrap
16875 msgid ""
16876 " char **\n"
16877 " guestfs_strings_e (guestfs_h *g,\n"
16878 "                    const char *encoding,\n"
16879 "                    const char *path);\n"
16880 "\n"
16881 msgstr ""
16882
16883 #. type: textblock
16884 #: ../src/guestfs-actions.pod:6428
16885 msgid ""
16886 "This is like the C<guestfs_strings> command, but allows you to specify the "
16887 "encoding of strings that are looked for in the source file C<path>."
16888 msgstr ""
16889
16890 #. type: textblock
16891 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4349
16892 msgid "Allowed encodings are:"
16893 msgstr ""
16894
16895 #. type: =item
16896 #: ../src/guestfs-actions.pod:6436 ../fish/guestfish-actions.pod:4353
16897 msgid "s"
16898 msgstr ""
16899
16900 #. type: textblock
16901 #: ../src/guestfs-actions.pod:6438
16902 msgid ""
16903 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16904 "ISO-8859-X (this is what C<guestfs_strings> uses)."
16905 msgstr ""
16906
16907 #. type: =item
16908 #: ../src/guestfs-actions.pod:6441 ../fish/guestfish-actions.pod:4358
16909 msgid "S"
16910 msgstr ""
16911
16912 #. type: textblock
16913 #: ../src/guestfs-actions.pod:6443 ../fish/guestfish-actions.pod:4360
16914 msgid "Single 8-bit-byte characters."
16915 msgstr ""
16916
16917 #. type: =item
16918 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4362
16919 msgid "b"
16920 msgstr ""
16921
16922 #. type: textblock
16923 #: ../src/guestfs-actions.pod:6447 ../fish/guestfish-actions.pod:4364
16924 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16925 msgstr ""
16926
16927 #. type: =item
16928 #: ../src/guestfs-actions.pod:6450 ../fish/guestfish-actions.pod:4367
16929 msgid "l (lower case letter L)"
16930 msgstr ""
16931
16932 #. type: textblock
16933 #: ../src/guestfs-actions.pod:6452 ../fish/guestfish-actions.pod:4369
16934 msgid ""
16935 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16936 "examining binaries in Windows guests."
16937 msgstr ""
16938
16939 #. type: =item
16940 #: ../src/guestfs-actions.pod:6455 ../fish/guestfish-actions.pod:4372
16941 msgid "B"
16942 msgstr ""
16943
16944 #. type: textblock
16945 #: ../src/guestfs-actions.pod:6457 ../fish/guestfish-actions.pod:4374
16946 msgid "32-bit big endian such as UCS-4BE."
16947 msgstr ""
16948
16949 #. type: =item
16950 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4376
16951 msgid "L"
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../src/guestfs-actions.pod:6461 ../fish/guestfish-actions.pod:4378
16956 msgid "32-bit little endian such as UCS-4LE."
16957 msgstr ""
16958
16959 #. type: textblock
16960 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4382
16961 msgid "The returned strings are transcoded to UTF-8."
16962 msgstr ""
16963
16964 #. type: =head2
16965 #: ../src/guestfs-actions.pod:6476
16966 msgid "guestfs_swapoff_device"
16967 msgstr ""
16968
16969 #. type: verbatim
16970 #: ../src/guestfs-actions.pod:6478
16971 #, no-wrap
16972 msgid ""
16973 " int\n"
16974 " guestfs_swapoff_device (guestfs_h *g,\n"
16975 "                         const char *device);\n"
16976 "\n"
16977 msgstr ""
16978
16979 #. type: textblock
16980 #: ../src/guestfs-actions.pod:6482
16981 msgid ""
16982 "This command disables the libguestfs appliance swap device or partition "
16983 "named C<device>.  See C<guestfs_swapon_device>."
16984 msgstr ""
16985
16986 #. type: =head2
16987 #: ../src/guestfs-actions.pod:6490
16988 msgid "guestfs_swapoff_file"
16989 msgstr ""
16990
16991 #. type: verbatim
16992 #: ../src/guestfs-actions.pod:6492
16993 #, no-wrap
16994 msgid ""
16995 " int\n"
16996 " guestfs_swapoff_file (guestfs_h *g,\n"
16997 "                       const char *file);\n"
16998 "\n"
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../src/guestfs-actions.pod:6496 ../fish/guestfish-actions.pod:4399
17003 msgid "This command disables the libguestfs appliance swap on file."
17004 msgstr ""
17005
17006 #. type: =head2
17007 #: ../src/guestfs-actions.pod:6502
17008 msgid "guestfs_swapoff_label"
17009 msgstr ""
17010
17011 #. type: verbatim
17012 #: ../src/guestfs-actions.pod:6504
17013 #, no-wrap
17014 msgid ""
17015 " int\n"
17016 " guestfs_swapoff_label (guestfs_h *g,\n"
17017 "                        const char *label);\n"
17018 "\n"
17019 msgstr ""
17020
17021 #. type: textblock
17022 #: ../src/guestfs-actions.pod:6508 ../fish/guestfish-actions.pod:4405
17023 msgid ""
17024 "This command disables the libguestfs appliance swap on labeled swap "
17025 "partition."
17026 msgstr ""
17027
17028 #. type: =head2
17029 #: ../src/guestfs-actions.pod:6515
17030 msgid "guestfs_swapoff_uuid"
17031 msgstr ""
17032
17033 #. type: verbatim
17034 #: ../src/guestfs-actions.pod:6517
17035 #, no-wrap
17036 msgid ""
17037 " int\n"
17038 " guestfs_swapoff_uuid (guestfs_h *g,\n"
17039 "                       const char *uuid);\n"
17040 "\n"
17041 msgstr ""
17042
17043 #. type: textblock
17044 #: ../src/guestfs-actions.pod:6521 ../fish/guestfish-actions.pod:4412
17045 msgid ""
17046 "This command disables the libguestfs appliance swap partition with the given "
17047 "UUID."
17048 msgstr ""
17049
17050 #. type: =head2
17051 #: ../src/guestfs-actions.pod:6528
17052 msgid "guestfs_swapon_device"
17053 msgstr ""
17054
17055 #. type: verbatim
17056 #: ../src/guestfs-actions.pod:6530
17057 #, no-wrap
17058 msgid ""
17059 " int\n"
17060 " guestfs_swapon_device (guestfs_h *g,\n"
17061 "                        const char *device);\n"
17062 "\n"
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../src/guestfs-actions.pod:6534
17067 msgid ""
17068 "This command enables the libguestfs appliance to use the swap device or "
17069 "partition named C<device>.  The increased memory is made available for all "
17070 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
17071 msgstr ""
17072
17073 #. type: textblock
17074 #: ../src/guestfs-actions.pod:6539 ../fish/guestfish-actions.pod:4424
17075 msgid ""
17076 "Note that you should not swap to existing guest swap partitions unless you "
17077 "know what you are doing.  They may contain hibernation information, or other "
17078 "information that the guest doesn't want you to trash.  You also risk leaking "
17079 "information about the host to the guest this way.  Instead, attach a new "
17080 "host device to the guest and swap on that."
17081 msgstr ""
17082
17083 #. type: =head2
17084 #: ../src/guestfs-actions.pod:6550
17085 msgid "guestfs_swapon_file"
17086 msgstr ""
17087
17088 #. type: verbatim
17089 #: ../src/guestfs-actions.pod:6552
17090 #, no-wrap
17091 msgid ""
17092 " int\n"
17093 " guestfs_swapon_file (guestfs_h *g,\n"
17094 "                      const char *file);\n"
17095 "\n"
17096 msgstr ""
17097
17098 #. type: textblock
17099 #: ../src/guestfs-actions.pod:6556
17100 msgid ""
17101 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17102 "notes."
17103 msgstr ""
17104
17105 #. type: =head2
17106 #: ../src/guestfs-actions.pod:6563
17107 msgid "guestfs_swapon_label"
17108 msgstr ""
17109
17110 #. type: verbatim
17111 #: ../src/guestfs-actions.pod:6565
17112 #, no-wrap
17113 msgid ""
17114 " int\n"
17115 " guestfs_swapon_label (guestfs_h *g,\n"
17116 "                       const char *label);\n"
17117 "\n"
17118 msgstr ""
17119
17120 #. type: textblock
17121 #: ../src/guestfs-actions.pod:6569
17122 msgid ""
17123 "This command enables swap to a labeled swap partition.  See "
17124 "C<guestfs_swapon_device> for other notes."
17125 msgstr ""
17126
17127 #. type: =head2
17128 #: ../src/guestfs-actions.pod:6576
17129 msgid "guestfs_swapon_uuid"
17130 msgstr ""
17131
17132 #. type: verbatim
17133 #: ../src/guestfs-actions.pod:6578
17134 #, no-wrap
17135 msgid ""
17136 " int\n"
17137 " guestfs_swapon_uuid (guestfs_h *g,\n"
17138 "                      const char *uuid);\n"
17139 "\n"
17140 msgstr ""
17141
17142 #. type: textblock
17143 #: ../src/guestfs-actions.pod:6582
17144 msgid ""
17145 "This command enables swap to a swap partition with the given UUID.  See "
17146 "C<guestfs_swapon_device> for other notes."
17147 msgstr ""
17148
17149 #. type: =head2
17150 #: ../src/guestfs-actions.pod:6589
17151 msgid "guestfs_sync"
17152 msgstr ""
17153
17154 #. type: verbatim
17155 #: ../src/guestfs-actions.pod:6591
17156 #, no-wrap
17157 msgid ""
17158 " int\n"
17159 " guestfs_sync (guestfs_h *g);\n"
17160 "\n"
17161 msgstr ""
17162
17163 #. type: textblock
17164 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4456
17165 msgid ""
17166 "This syncs the disk, so that any writes are flushed through to the "
17167 "underlying disk image."
17168 msgstr ""
17169
17170 #. type: textblock
17171 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4459
17172 msgid ""
17173 "You should always call this if you have modified a disk image, before "
17174 "closing the handle."
17175 msgstr ""
17176
17177 #. type: =head2
17178 #: ../src/guestfs-actions.pod:6604
17179 msgid "guestfs_tail"
17180 msgstr ""
17181
17182 #. type: verbatim
17183 #: ../src/guestfs-actions.pod:6606
17184 #, no-wrap
17185 msgid ""
17186 " char **\n"
17187 " guestfs_tail (guestfs_h *g,\n"
17188 "               const char *path);\n"
17189 "\n"
17190 msgstr ""
17191
17192 #. type: textblock
17193 #: ../src/guestfs-actions.pod:6610 ../fish/guestfish-actions.pod:4466
17194 msgid ""
17195 "This command returns up to the last 10 lines of a file as a list of strings."
17196 msgstr ""
17197
17198 #. type: =head2
17199 #: ../src/guestfs-actions.pod:6622
17200 msgid "guestfs_tail_n"
17201 msgstr ""
17202
17203 #. type: verbatim
17204 #: ../src/guestfs-actions.pod:6624
17205 #, no-wrap
17206 msgid ""
17207 " char **\n"
17208 " guestfs_tail_n (guestfs_h *g,\n"
17209 "                 int nrlines,\n"
17210 "                 const char *path);\n"
17211 "\n"
17212 msgstr ""
17213
17214 #. type: textblock
17215 #: ../src/guestfs-actions.pod:6629 ../fish/guestfish-actions.pod:4476
17216 msgid ""
17217 "If the parameter C<nrlines> is a positive number, this returns the last "
17218 "C<nrlines> lines of the file C<path>."
17219 msgstr ""
17220
17221 #. type: textblock
17222 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4479
17223 msgid ""
17224 "If the parameter C<nrlines> is a negative number, this returns lines from "
17225 "the file C<path>, starting with the C<-nrlines>th line."
17226 msgstr ""
17227
17228 #. type: =head2
17229 #: ../src/guestfs-actions.pod:6646
17230 msgid "guestfs_tar_in"
17231 msgstr ""
17232
17233 #. type: verbatim
17234 #: ../src/guestfs-actions.pod:6648
17235 #, no-wrap
17236 msgid ""
17237 " int\n"
17238 " guestfs_tar_in (guestfs_h *g,\n"
17239 "                 const char *tarfile,\n"
17240 "                 const char *directory);\n"
17241 "\n"
17242 msgstr ""
17243
17244 #. type: textblock
17245 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4491
17246 msgid ""
17247 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17248 "tar file) into C<directory>."
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../src/guestfs-actions.pod:6656
17253 msgid ""
17254 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
17255 msgstr ""
17256
17257 #. type: textblock
17258 #: ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6678
17259 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6710
17260 msgid "(Added in 1.0.3)"
17261 msgstr ""
17262
17263 #. type: =head2
17264 #: ../src/guestfs-actions.pod:6663
17265 msgid "guestfs_tar_out"
17266 msgstr ""
17267
17268 #. type: verbatim
17269 #: ../src/guestfs-actions.pod:6665
17270 #, no-wrap
17271 msgid ""
17272 " int\n"
17273 " guestfs_tar_out (guestfs_h *g,\n"
17274 "                  const char *directory,\n"
17275 "                  const char *tarfile);\n"
17276 "\n"
17277 msgstr ""
17278
17279 #. type: textblock
17280 #: ../src/guestfs-actions.pod:6670 ../fish/guestfish-actions.pod:4503
17281 msgid ""
17282 "This command packs the contents of C<directory> and downloads it to local "
17283 "file C<tarfile>."
17284 msgstr ""
17285
17286 #. type: textblock
17287 #: ../src/guestfs-actions.pod:6673
17288 msgid ""
17289 "To download a compressed tarball, use C<guestfs_tgz_out> or "
17290 "C<guestfs_txz_out>."
17291 msgstr ""
17292
17293 #. type: =head2
17294 #: ../src/guestfs-actions.pod:6680
17295 msgid "guestfs_tgz_in"
17296 msgstr ""
17297
17298 #. type: verbatim
17299 #: ../src/guestfs-actions.pod:6682
17300 #, no-wrap
17301 msgid ""
17302 " int\n"
17303 " guestfs_tgz_in (guestfs_h *g,\n"
17304 "                 const char *tarball,\n"
17305 "                 const char *directory);\n"
17306 "\n"
17307 msgstr ""
17308
17309 #. type: textblock
17310 #: ../src/guestfs-actions.pod:6687 ../fish/guestfish-actions.pod:4515
17311 msgid ""
17312 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17313 "tar file) into C<directory>."
17314 msgstr ""
17315
17316 #. type: textblock
17317 #: ../src/guestfs-actions.pod:6690
17318 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
17319 msgstr ""
17320
17321 #. type: =head2
17322 #: ../src/guestfs-actions.pod:6696
17323 msgid "guestfs_tgz_out"
17324 msgstr ""
17325
17326 #. type: verbatim
17327 #: ../src/guestfs-actions.pod:6698
17328 #, no-wrap
17329 msgid ""
17330 " int\n"
17331 " guestfs_tgz_out (guestfs_h *g,\n"
17332 "                  const char *directory,\n"
17333 "                  const char *tarball);\n"
17334 "\n"
17335 msgstr ""
17336
17337 #. type: textblock
17338 #: ../src/guestfs-actions.pod:6703 ../fish/guestfish-actions.pod:4526
17339 msgid ""
17340 "This command packs the contents of C<directory> and downloads it to local "
17341 "file C<tarball>."
17342 msgstr ""
17343
17344 #. type: textblock
17345 #: ../src/guestfs-actions.pod:6706
17346 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
17347 msgstr ""
17348
17349 #. type: =head2
17350 #: ../src/guestfs-actions.pod:6712
17351 msgid "guestfs_touch"
17352 msgstr ""
17353
17354 #. type: verbatim
17355 #: ../src/guestfs-actions.pod:6714
17356 #, no-wrap
17357 msgid ""
17358 " int\n"
17359 " guestfs_touch (guestfs_h *g,\n"
17360 "                const char *path);\n"
17361 "\n"
17362 msgstr ""
17363
17364 #. type: textblock
17365 #: ../src/guestfs-actions.pod:6718 ../fish/guestfish-actions.pod:4537
17366 msgid ""
17367 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17368 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17369 "length file."
17370 msgstr ""
17371
17372 #. type: textblock
17373 #: ../src/guestfs-actions.pod:6722 ../fish/guestfish-actions.pod:4541
17374 msgid ""
17375 "This command only works on regular files, and will fail on other file types "
17376 "such as directories, symbolic links, block special etc."
17377 msgstr ""
17378
17379 #. type: =head2
17380 #: ../src/guestfs-actions.pod:6729
17381 msgid "guestfs_truncate"
17382 msgstr ""
17383
17384 #. type: verbatim
17385 #: ../src/guestfs-actions.pod:6731
17386 #, no-wrap
17387 msgid ""
17388 " int\n"
17389 " guestfs_truncate (guestfs_h *g,\n"
17390 "                   const char *path);\n"
17391 "\n"
17392 msgstr ""
17393
17394 #. type: textblock
17395 #: ../src/guestfs-actions.pod:6735 ../fish/guestfish-actions.pod:4548
17396 msgid ""
17397 "This command truncates C<path> to a zero-length file.  The file must exist "
17398 "already."
17399 msgstr ""
17400
17401 #. type: =head2
17402 #: ../src/guestfs-actions.pod:6742
17403 msgid "guestfs_truncate_size"
17404 msgstr ""
17405
17406 #. type: verbatim
17407 #: ../src/guestfs-actions.pod:6744
17408 #, no-wrap
17409 msgid ""
17410 " int\n"
17411 " guestfs_truncate_size (guestfs_h *g,\n"
17412 "                        const char *path,\n"
17413 "                        int64_t size);\n"
17414 "\n"
17415 msgstr ""
17416
17417 #. type: textblock
17418 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4555
17419 msgid ""
17420 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17421 "already."
17422 msgstr ""
17423
17424 #. type: textblock
17425 #: ../src/guestfs-actions.pod:6752
17426 msgid ""
17427 "If the current file size is less than C<size> then the file is extended to "
17428 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17429 "blocks are not allocated for the file until you write to it).  To create a "
17430 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
17431 msgstr ""
17432
17433 #. type: =head2
17434 #: ../src/guestfs-actions.pod:6762
17435 msgid "guestfs_tune2fs_l"
17436 msgstr ""
17437
17438 #. type: verbatim
17439 #: ../src/guestfs-actions.pod:6764
17440 #, no-wrap
17441 msgid ""
17442 " char **\n"
17443 " guestfs_tune2fs_l (guestfs_h *g,\n"
17444 "                    const char *device);\n"
17445 "\n"
17446 msgstr ""
17447
17448 #. type: textblock
17449 #: ../src/guestfs-actions.pod:6768 ../fish/guestfish-actions.pod:4568
17450 msgid ""
17451 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17452 "C<device>."
17453 msgstr ""
17454
17455 #. type: textblock
17456 #: ../src/guestfs-actions.pod:6771 ../fish/guestfish-actions.pod:4571
17457 msgid ""
17458 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17459 "for more details.  The list of fields returned isn't clearly defined, and "
17460 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17461 "and the filesystem itself."
17462 msgstr ""
17463
17464 #. type: =head2
17465 #: ../src/guestfs-actions.pod:6784
17466 msgid "guestfs_txz_in"
17467 msgstr ""
17468
17469 #. type: verbatim
17470 #: ../src/guestfs-actions.pod:6786
17471 #, no-wrap
17472 msgid ""
17473 " int\n"
17474 " guestfs_txz_in (guestfs_h *g,\n"
17475 "                 const char *tarball,\n"
17476 "                 const char *directory);\n"
17477 "\n"
17478 msgstr ""
17479
17480 #. type: textblock
17481 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4580
17482 msgid ""
17483 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17484 "tar file) into C<directory>."
17485 msgstr ""
17486
17487 #. type: =head2
17488 #: ../src/guestfs-actions.pod:6798
17489 msgid "guestfs_txz_out"
17490 msgstr ""
17491
17492 #. type: verbatim
17493 #: ../src/guestfs-actions.pod:6800
17494 #, no-wrap
17495 msgid ""
17496 " int\n"
17497 " guestfs_txz_out (guestfs_h *g,\n"
17498 "                  const char *directory,\n"
17499 "                  const char *tarball);\n"
17500 "\n"
17501 msgstr ""
17502
17503 #. type: textblock
17504 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4589
17505 msgid ""
17506 "This command packs the contents of C<directory> and downloads it to local "
17507 "file C<tarball> (as an xz compressed tar archive)."
17508 msgstr ""
17509
17510 #. type: =head2
17511 #: ../src/guestfs-actions.pod:6812
17512 msgid "guestfs_umask"
17513 msgstr ""
17514
17515 #. type: verbatim
17516 #: ../src/guestfs-actions.pod:6814
17517 #, no-wrap
17518 msgid ""
17519 " int\n"
17520 " guestfs_umask (guestfs_h *g,\n"
17521 "                int mask);\n"
17522 "\n"
17523 msgstr ""
17524
17525 #. type: textblock
17526 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4598
17527 msgid ""
17528 "This function sets the mask used for creating new files and device nodes to "
17529 "C<mask & 0777>."
17530 msgstr ""
17531
17532 #. type: textblock
17533 #: ../src/guestfs-actions.pod:6821 ../fish/guestfish-actions.pod:4601
17534 msgid ""
17535 "Typical umask values would be C<022> which creates new files with "
17536 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17537 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17538 msgstr ""
17539
17540 #. type: textblock
17541 #: ../src/guestfs-actions.pod:6826 ../fish/guestfish-actions.pod:4606
17542 msgid ""
17543 "The default umask is C<022>.  This is important because it means that "
17544 "directories and device nodes will be created with C<0644> or C<0755> mode "
17545 "even if you specify C<0777>."
17546 msgstr ""
17547
17548 #. type: textblock
17549 #: ../src/guestfs-actions.pod:6830
17550 msgid ""
17551 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
17552 "C<guestfs_mkdir>."
17553 msgstr ""
17554
17555 #. type: textblock
17556 #: ../src/guestfs-actions.pod:6833 ../fish/guestfish-actions.pod:4613
17557 msgid "This call returns the previous umask."
17558 msgstr ""
17559
17560 #. type: =head2
17561 #: ../src/guestfs-actions.pod:6839
17562 msgid "guestfs_umount"
17563 msgstr ""
17564
17565 #. type: verbatim
17566 #: ../src/guestfs-actions.pod:6841
17567 #, no-wrap
17568 msgid ""
17569 " int\n"
17570 " guestfs_umount (guestfs_h *g,\n"
17571 "                 const char *pathordevice);\n"
17572 "\n"
17573 msgstr ""
17574
17575 #. type: textblock
17576 #: ../src/guestfs-actions.pod:6845 ../fish/guestfish-actions.pod:4621
17577 msgid ""
17578 "This unmounts the given filesystem.  The filesystem may be specified either "
17579 "by its mountpoint (path) or the device which contains the filesystem."
17580 msgstr ""
17581
17582 #. type: =head2
17583 #: ../src/guestfs-actions.pod:6853
17584 msgid "guestfs_umount_all"
17585 msgstr ""
17586
17587 #. type: verbatim
17588 #: ../src/guestfs-actions.pod:6855
17589 #, no-wrap
17590 msgid ""
17591 " int\n"
17592 " guestfs_umount_all (guestfs_h *g);\n"
17593 "\n"
17594 msgstr ""
17595
17596 #. type: textblock
17597 #: ../src/guestfs-actions.pod:6858 ../fish/guestfish-actions.pod:4631
17598 msgid "This unmounts all mounted filesystems."
17599 msgstr ""
17600
17601 #. type: textblock
17602 #: ../src/guestfs-actions.pod:6860 ../fish/guestfish-actions.pod:4633
17603 msgid "Some internal mounts are not unmounted by this call."
17604 msgstr ""
17605
17606 #. type: =head2
17607 #: ../src/guestfs-actions.pod:6866
17608 msgid "guestfs_upload"
17609 msgstr ""
17610
17611 #. type: verbatim
17612 #: ../src/guestfs-actions.pod:6868
17613 #, no-wrap
17614 msgid ""
17615 " int\n"
17616 " guestfs_upload (guestfs_h *g,\n"
17617 "                 const char *filename,\n"
17618 "                 const char *remotefilename);\n"
17619 "\n"
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../src/guestfs-actions.pod:6873 ../src/guestfs-actions.pod:6897
17624 #: ../fish/guestfish-actions.pod:4639 ../fish/guestfish-actions.pod:4652
17625 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17626 msgstr ""
17627
17628 #. type: textblock
17629 #: ../src/guestfs-actions.pod:6878
17630 msgid "See also C<guestfs_download>."
17631 msgstr ""
17632
17633 #. type: =head2
17634 #: ../src/guestfs-actions.pod:6889
17635 msgid "guestfs_upload_offset"
17636 msgstr ""
17637
17638 #. type: verbatim
17639 #: ../src/guestfs-actions.pod:6891
17640 #, no-wrap
17641 msgid ""
17642 " int\n"
17643 " guestfs_upload_offset (guestfs_h *g,\n"
17644 "                        const char *filename,\n"
17645 "                        const char *remotefilename,\n"
17646 "                        int64_t offset);\n"
17647 "\n"
17648 msgstr ""
17649
17650 #. type: textblock
17651 #: ../src/guestfs-actions.pod:6900 ../fish/guestfish-actions.pod:4655
17652 msgid ""
17653 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17654 "The intention is to overwrite parts of existing files or devices, although "
17655 "if a non-existant file is specified then it is created with a \"hole\" "
17656 "before C<offset>.  The size of the data written is implicit in the size of "
17657 "the source C<filename>."
17658 msgstr ""
17659
17660 #. type: textblock
17661 #: ../src/guestfs-actions.pod:6907
17662 msgid ""
17663 "Note that there is no limit on the amount of data that can be uploaded with "
17664 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
17665 "full amount unless an error occurs."
17666 msgstr ""
17667
17668 #. type: textblock
17669 #: ../src/guestfs-actions.pod:6912
17670 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
17671 msgstr ""
17672
17673 #. type: =head2
17674 #: ../src/guestfs-actions.pod:6923
17675 msgid "guestfs_utimens"
17676 msgstr ""
17677
17678 #. type: verbatim
17679 #: ../src/guestfs-actions.pod:6925
17680 #, no-wrap
17681 msgid ""
17682 " int\n"
17683 " guestfs_utimens (guestfs_h *g,\n"
17684 "                  const char *path,\n"
17685 "                  int64_t atsecs,\n"
17686 "                  int64_t atnsecs,\n"
17687 "                  int64_t mtsecs,\n"
17688 "                  int64_t mtnsecs);\n"
17689 "\n"
17690 msgstr ""
17691
17692 #. type: textblock
17693 #: ../src/guestfs-actions.pod:6933 ../fish/guestfish-actions.pod:4675
17694 msgid "This command sets the timestamps of a file with nanosecond precision."
17695 msgstr ""
17696
17697 #. type: textblock
17698 #: ../src/guestfs-actions.pod:6936 ../fish/guestfish-actions.pod:4678
17699 msgid ""
17700 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17701 "from the epoch."
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../src/guestfs-actions.pod:6939 ../fish/guestfish-actions.pod:4681
17706 msgid ""
17707 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17708 "nanoseconds from the epoch."
17709 msgstr ""
17710
17711 #. type: textblock
17712 #: ../src/guestfs-actions.pod:6942 ../fish/guestfish-actions.pod:4684
17713 msgid ""
17714 "If the C<*nsecs> field contains the special value C<-1> then the "
17715 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17716 "ignored in this case)."
17717 msgstr ""
17718
17719 #. type: textblock
17720 #: ../src/guestfs-actions.pod:6946 ../fish/guestfish-actions.pod:4688
17721 msgid ""
17722 "If the C<*nsecs> field contains the special value C<-2> then the "
17723 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17724 "in this case)."
17725 msgstr ""
17726
17727 #. type: =head2
17728 #: ../src/guestfs-actions.pod:6954 ../src/guestfs-structs.pod:175
17729 msgid "guestfs_version"
17730 msgstr ""
17731
17732 #. type: verbatim
17733 #: ../src/guestfs-actions.pod:6956
17734 #, no-wrap
17735 msgid ""
17736 " struct guestfs_version *\n"
17737 " guestfs_version (guestfs_h *g);\n"
17738 "\n"
17739 msgstr ""
17740
17741 #. type: textblock
17742 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4696
17743 msgid ""
17744 "Return the libguestfs version number that the program is linked against."
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4699
17749 msgid ""
17750 "Note that because of dynamic linking this is not necessarily the version of "
17751 "libguestfs that you compiled against.  You can compile the program, and then "
17752 "at runtime dynamically link against a completely different C<libguestfs.so> "
17753 "library."
17754 msgstr ""
17755
17756 #. type: textblock
17757 #: ../src/guestfs-actions.pod:6967 ../fish/guestfish-actions.pod:4704
17758 msgid ""
17759 "This call was added in version C<1.0.58>.  In previous versions of "
17760 "libguestfs there was no way to get the version number.  From C code you can "
17761 "use dynamic linker functions to find out if this symbol exists (if it "
17762 "doesn't, then it's an earlier version)."
17763 msgstr ""
17764
17765 #. type: textblock
17766 #: ../src/guestfs-actions.pod:6973 ../fish/guestfish-actions.pod:4710
17767 msgid ""
17768 "The call returns a structure with four elements.  The first three (C<major>, "
17769 "C<minor> and C<release>) are numbers and correspond to the usual version "
17770 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17771 "but may be used for distro-specific information."
17772 msgstr ""
17773
17774 #. type: textblock
17775 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4716
17776 msgid ""
17777 "To construct the original version string: C<$major.$minor.$release$extra>"
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../src/guestfs-actions.pod:6982 ../fish/guestfish-actions.pod:4719
17782 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17783 msgstr ""
17784
17785 #. type: textblock
17786 #: ../src/guestfs-actions.pod:6984
17787 msgid ""
17788 "I<Note:> Don't use this call to test for availability of features.  In "
17789 "enterprise distributions we backport features from later versions into "
17790 "earlier versions, making this an unreliable way to test for features.  Use "
17791 "C<guestfs_available> instead."
17792 msgstr ""
17793
17794 #. type: textblock
17795 #: ../src/guestfs-actions.pod:6990
17796 msgid ""
17797 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
17798 "error.  I<The caller must call C<guestfs_free_version> after use>."
17799 msgstr ""
17800
17801 #. type: textblock
17802 #: ../src/guestfs-actions.pod:6994
17803 msgid "(Added in 1.0.58)"
17804 msgstr ""
17805
17806 #. type: =head2
17807 #: ../src/guestfs-actions.pod:6996
17808 msgid "guestfs_vfs_label"
17809 msgstr ""
17810
17811 #. type: verbatim
17812 #: ../src/guestfs-actions.pod:6998
17813 #, no-wrap
17814 msgid ""
17815 " char *\n"
17816 " guestfs_vfs_label (guestfs_h *g,\n"
17817 "                    const char *device);\n"
17818 "\n"
17819 msgstr ""
17820
17821 #. type: textblock
17822 #: ../src/guestfs-actions.pod:7002 ../fish/guestfish-actions.pod:4731
17823 msgid "This returns the filesystem label of the filesystem on C<device>."
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../src/guestfs-actions.pod:7005 ../fish/guestfish-actions.pod:4734
17828 msgid "If the filesystem is unlabeled, this returns the empty string."
17829 msgstr ""
17830
17831 #. type: textblock
17832 #: ../src/guestfs-actions.pod:7007
17833 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
17834 msgstr ""
17835
17836 #. type: textblock
17837 #: ../src/guestfs-actions.pod:7012 ../src/guestfs-actions.pod:7049
17838 msgid "(Added in 1.3.18)"
17839 msgstr ""
17840
17841 #. type: =head2
17842 #: ../src/guestfs-actions.pod:7014
17843 msgid "guestfs_vfs_type"
17844 msgstr ""
17845
17846 #. type: verbatim
17847 #: ../src/guestfs-actions.pod:7016
17848 #, no-wrap
17849 msgid ""
17850 " char *\n"
17851 " guestfs_vfs_type (guestfs_h *g,\n"
17852 "                   const char *device);\n"
17853 "\n"
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../src/guestfs-actions.pod:7020 ../fish/guestfish-actions.pod:4742
17858 msgid ""
17859 "This command gets the filesystem type corresponding to the filesystem on "
17860 "C<device>."
17861 msgstr ""
17862
17863 #. type: textblock
17864 #: ../src/guestfs-actions.pod:7023 ../fish/guestfish-actions.pod:4745
17865 msgid ""
17866 "For most filesystems, the result is the name of the Linux VFS module which "
17867 "would be used to mount this filesystem if you mounted it without specifying "
17868 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17869 msgstr ""
17870
17871 #. type: =head2
17872 #: ../src/guestfs-actions.pod:7033
17873 msgid "guestfs_vfs_uuid"
17874 msgstr ""
17875
17876 #. type: verbatim
17877 #: ../src/guestfs-actions.pod:7035
17878 #, no-wrap
17879 msgid ""
17880 " char *\n"
17881 " guestfs_vfs_uuid (guestfs_h *g,\n"
17882 "                   const char *device);\n"
17883 "\n"
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../src/guestfs-actions.pod:7039 ../fish/guestfish-actions.pod:4754
17888 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17889 msgstr ""
17890
17891 #. type: textblock
17892 #: ../src/guestfs-actions.pod:7042 ../fish/guestfish-actions.pod:4757
17893 msgid "If the filesystem does not have a UUID, this returns the empty string."
17894 msgstr ""
17895
17896 #. type: textblock
17897 #: ../src/guestfs-actions.pod:7044
17898 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
17899 msgstr ""
17900
17901 #. type: =head2
17902 #: ../src/guestfs-actions.pod:7051
17903 msgid "guestfs_vg_activate"
17904 msgstr ""
17905
17906 #. type: verbatim
17907 #: ../src/guestfs-actions.pod:7053
17908 #, no-wrap
17909 msgid ""
17910 " int\n"
17911 " guestfs_vg_activate (guestfs_h *g,\n"
17912 "                      int activate,\n"
17913 "                      char *const *volgroups);\n"
17914 "\n"
17915 msgstr ""
17916
17917 #. type: textblock
17918 #: ../src/guestfs-actions.pod:7058 ../fish/guestfish-actions.pod:4765
17919 msgid ""
17920 "This command activates or (if C<activate> is false) deactivates all logical "
17921 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
17922 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
17923 "deactivated, then those devices disappear."
17924 msgstr ""
17925
17926 #. type: textblock
17927 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4771
17928 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17929 msgstr ""
17930
17931 #. type: textblock
17932 #: ../src/guestfs-actions.pod:7066 ../fish/guestfish-actions.pod:4773
17933 msgid ""
17934 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17935 "activated or deactivated."
17936 msgstr ""
17937
17938 #. type: =head2
17939 #: ../src/guestfs-actions.pod:7073
17940 msgid "guestfs_vg_activate_all"
17941 msgstr ""
17942
17943 #. type: verbatim
17944 #: ../src/guestfs-actions.pod:7075
17945 #, no-wrap
17946 msgid ""
17947 " int\n"
17948 " guestfs_vg_activate_all (guestfs_h *g,\n"
17949 "                          int activate);\n"
17950 "\n"
17951 msgstr ""
17952
17953 #. type: textblock
17954 #: ../src/guestfs-actions.pod:7079 ../fish/guestfish-actions.pod:4780
17955 msgid ""
17956 "This command activates or (if C<activate> is false) deactivates all logical "
17957 "volumes in all volume groups.  If activated, then they are made known to the "
17958 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
17959 "those devices disappear."
17960 msgstr ""
17961
17962 #. type: textblock
17963 #: ../src/guestfs-actions.pod:7085 ../fish/guestfish-actions.pod:4786
17964 msgid "This command is the same as running C<vgchange -a y|n>"
17965 msgstr ""
17966
17967 #. type: =head2
17968 #: ../src/guestfs-actions.pod:7091
17969 msgid "guestfs_vgcreate"
17970 msgstr ""
17971
17972 #. type: verbatim
17973 #: ../src/guestfs-actions.pod:7093
17974 #, no-wrap
17975 msgid ""
17976 " int\n"
17977 " guestfs_vgcreate (guestfs_h *g,\n"
17978 "                   const char *volgroup,\n"
17979 "                   char *const *physvols);\n"
17980 "\n"
17981 msgstr ""
17982
17983 #. type: textblock
17984 #: ../src/guestfs-actions.pod:7098 ../fish/guestfish-actions.pod:4792
17985 msgid ""
17986 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17987 "of physical volumes C<physvols>."
17988 msgstr ""
17989
17990 #. type: =head2
17991 #: ../src/guestfs-actions.pod:7105
17992 msgid "guestfs_vglvuuids"
17993 msgstr ""
17994
17995 #. type: verbatim
17996 #: ../src/guestfs-actions.pod:7107
17997 #, no-wrap
17998 msgid ""
17999 " char **\n"
18000 " guestfs_vglvuuids (guestfs_h *g,\n"
18001 "                    const char *vgname);\n"
18002 "\n"
18003 msgstr ""
18004
18005 #. type: textblock
18006 #: ../src/guestfs-actions.pod:7111 ../fish/guestfish-actions.pod:4799
18007 msgid ""
18008 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18009 "volumes created in this volume group."
18010 msgstr ""
18011
18012 #. type: textblock
18013 #: ../src/guestfs-actions.pod:7114
18014 msgid ""
18015 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
18016 "associate logical volumes and volume groups."
18017 msgstr ""
18018
18019 #. type: textblock
18020 #: ../src/guestfs-actions.pod:7117
18021 msgid "See also C<guestfs_vgpvuuids>."
18022 msgstr ""
18023
18024 #. type: =head2
18025 #: ../src/guestfs-actions.pod:7125
18026 msgid "guestfs_vgpvuuids"
18027 msgstr ""
18028
18029 #. type: verbatim
18030 #: ../src/guestfs-actions.pod:7127
18031 #, no-wrap
18032 msgid ""
18033 " char **\n"
18034 " guestfs_vgpvuuids (guestfs_h *g,\n"
18035 "                    const char *vgname);\n"
18036 "\n"
18037 msgstr ""
18038
18039 #. type: textblock
18040 #: ../src/guestfs-actions.pod:7131 ../fish/guestfish-actions.pod:4811
18041 msgid ""
18042 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18043 "volumes that this volume group resides on."
18044 msgstr ""
18045
18046 #. type: textblock
18047 #: ../src/guestfs-actions.pod:7134
18048 msgid ""
18049 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
18050 "associate physical volumes and volume groups."
18051 msgstr ""
18052
18053 #. type: textblock
18054 #: ../src/guestfs-actions.pod:7137
18055 msgid "See also C<guestfs_vglvuuids>."
18056 msgstr ""
18057
18058 #. type: =head2
18059 #: ../src/guestfs-actions.pod:7145
18060 msgid "guestfs_vgremove"
18061 msgstr ""
18062
18063 #. type: verbatim
18064 #: ../src/guestfs-actions.pod:7147
18065 #, no-wrap
18066 msgid ""
18067 " int\n"
18068 " guestfs_vgremove (guestfs_h *g,\n"
18069 "                   const char *vgname);\n"
18070 "\n"
18071 msgstr ""
18072
18073 #. type: textblock
18074 #: ../src/guestfs-actions.pod:7151 ../fish/guestfish-actions.pod:4823
18075 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18076 msgstr ""
18077
18078 #. type: textblock
18079 #: ../src/guestfs-actions.pod:7153 ../fish/guestfish-actions.pod:4825
18080 msgid ""
18081 "This also forcibly removes all logical volumes in the volume group (if any)."
18082 msgstr ""
18083
18084 #. type: =head2
18085 #: ../src/guestfs-actions.pod:7160
18086 msgid "guestfs_vgrename"
18087 msgstr ""
18088
18089 #. type: verbatim
18090 #: ../src/guestfs-actions.pod:7162
18091 #, no-wrap
18092 msgid ""
18093 " int\n"
18094 " guestfs_vgrename (guestfs_h *g,\n"
18095 "                   const char *volgroup,\n"
18096 "                   const char *newvolgroup);\n"
18097 "\n"
18098 msgstr ""
18099
18100 #. type: textblock
18101 #: ../src/guestfs-actions.pod:7167 ../fish/guestfish-actions.pod:4832
18102 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18103 msgstr ""
18104
18105 #. type: =head2
18106 #: ../src/guestfs-actions.pod:7173
18107 msgid "guestfs_vgs"
18108 msgstr ""
18109
18110 #. type: verbatim
18111 #: ../src/guestfs-actions.pod:7175
18112 #, no-wrap
18113 msgid ""
18114 " char **\n"
18115 " guestfs_vgs (guestfs_h *g);\n"
18116 "\n"
18117 msgstr ""
18118
18119 #. type: textblock
18120 #: ../src/guestfs-actions.pod:7178 ../fish/guestfish-actions.pod:4838
18121 msgid ""
18122 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18123 "> command."
18124 msgstr ""
18125
18126 #. type: textblock
18127 #: ../src/guestfs-actions.pod:7181 ../fish/guestfish-actions.pod:4841
18128 msgid ""
18129 "This returns a list of just the volume group names that were detected (eg. "
18130 "C<VolGroup00>)."
18131 msgstr ""
18132
18133 #. type: textblock
18134 #: ../src/guestfs-actions.pod:7184
18135 msgid "See also C<guestfs_vgs_full>."
18136 msgstr ""
18137
18138 #. type: =head2
18139 #: ../src/guestfs-actions.pod:7192
18140 msgid "guestfs_vgs_full"
18141 msgstr ""
18142
18143 #. type: verbatim
18144 #: ../src/guestfs-actions.pod:7194
18145 #, no-wrap
18146 msgid ""
18147 " struct guestfs_lvm_vg_list *\n"
18148 " guestfs_vgs_full (guestfs_h *g);\n"
18149 "\n"
18150 msgstr ""
18151
18152 #. type: textblock
18153 #: ../src/guestfs-actions.pod:7197 ../fish/guestfish-actions.pod:4850
18154 msgid ""
18155 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18156 "> command.  The \"full\" version includes all fields."
18157 msgstr ""
18158
18159 #. type: textblock
18160 #: ../src/guestfs-actions.pod:7200
18161 msgid ""
18162 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
18163 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
18164 msgstr ""
18165
18166 #. type: =head2
18167 #: ../src/guestfs-actions.pod:7206
18168 msgid "guestfs_vgscan"
18169 msgstr ""
18170
18171 #. type: verbatim
18172 #: ../src/guestfs-actions.pod:7208
18173 #, no-wrap
18174 msgid ""
18175 " int\n"
18176 " guestfs_vgscan (guestfs_h *g);\n"
18177 "\n"
18178 msgstr ""
18179
18180 #. type: textblock
18181 #: ../src/guestfs-actions.pod:7211 ../fish/guestfish-actions.pod:4857
18182 msgid ""
18183 "This rescans all block devices and rebuilds the list of LVM physical "
18184 "volumes, volume groups and logical volumes."
18185 msgstr ""
18186
18187 #. type: =head2
18188 #: ../src/guestfs-actions.pod:7218
18189 msgid "guestfs_vguuid"
18190 msgstr ""
18191
18192 #. type: verbatim
18193 #: ../src/guestfs-actions.pod:7220
18194 #, no-wrap
18195 msgid ""
18196 " char *\n"
18197 " guestfs_vguuid (guestfs_h *g,\n"
18198 "                 const char *vgname);\n"
18199 "\n"
18200 msgstr ""
18201
18202 #. type: textblock
18203 #: ../src/guestfs-actions.pod:7224 ../fish/guestfish-actions.pod:4864
18204 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18205 msgstr ""
18206
18207 #. type: =head2
18208 #: ../src/guestfs-actions.pod:7231
18209 msgid "guestfs_wait_ready"
18210 msgstr ""
18211
18212 #. type: verbatim
18213 #: ../src/guestfs-actions.pod:7233
18214 #, no-wrap
18215 msgid ""
18216 " int\n"
18217 " guestfs_wait_ready (guestfs_h *g);\n"
18218 "\n"
18219 msgstr ""
18220
18221 #. type: textblock
18222 #: ../src/guestfs-actions.pod:7236
18223 msgid "This function is a no op."
18224 msgstr ""
18225
18226 #. type: textblock
18227 #: ../src/guestfs-actions.pod:7238
18228 msgid ""
18229 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
18230 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
18231 "is no longer necessary because C<guestfs_launch> now does the waiting."
18232 msgstr ""
18233
18234 #. type: textblock
18235 #: ../src/guestfs-actions.pod:7243
18236 msgid ""
18237 "If you see any calls to this function in code then you can just remove them, "
18238 "unless you want to retain compatibility with older versions of the API."
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../src/guestfs-actions.pod:7249
18243 msgid ""
18244 "This function is deprecated.  In new code, use the C<launch> call instead."
18245 msgstr ""
18246
18247 #. type: =head2
18248 #: ../src/guestfs-actions.pod:7258
18249 msgid "guestfs_wc_c"
18250 msgstr ""
18251
18252 #. type: verbatim
18253 #: ../src/guestfs-actions.pod:7260
18254 #, no-wrap
18255 msgid ""
18256 " int\n"
18257 " guestfs_wc_c (guestfs_h *g,\n"
18258 "               const char *path);\n"
18259 "\n"
18260 msgstr ""
18261
18262 #. type: textblock
18263 #: ../src/guestfs-actions.pod:7264 ../fish/guestfish-actions.pod:4870
18264 msgid ""
18265 "This command counts the characters in a file, using the C<wc -c> external "
18266 "command."
18267 msgstr ""
18268
18269 #. type: =head2
18270 #: ../src/guestfs-actions.pod:7271
18271 msgid "guestfs_wc_l"
18272 msgstr ""
18273
18274 #. type: verbatim
18275 #: ../src/guestfs-actions.pod:7273
18276 #, no-wrap
18277 msgid ""
18278 " int\n"
18279 " guestfs_wc_l (guestfs_h *g,\n"
18280 "               const char *path);\n"
18281 "\n"
18282 msgstr ""
18283
18284 #. type: textblock
18285 #: ../src/guestfs-actions.pod:7277 ../fish/guestfish-actions.pod:4877
18286 msgid ""
18287 "This command counts the lines in a file, using the C<wc -l> external command."
18288 msgstr ""
18289
18290 #. type: =head2
18291 #: ../src/guestfs-actions.pod:7284
18292 msgid "guestfs_wc_w"
18293 msgstr ""
18294
18295 #. type: verbatim
18296 #: ../src/guestfs-actions.pod:7286
18297 #, no-wrap
18298 msgid ""
18299 " int\n"
18300 " guestfs_wc_w (guestfs_h *g,\n"
18301 "               const char *path);\n"
18302 "\n"
18303 msgstr ""
18304
18305 #. type: textblock
18306 #: ../src/guestfs-actions.pod:7290 ../fish/guestfish-actions.pod:4884
18307 msgid ""
18308 "This command counts the words in a file, using the C<wc -w> external command."
18309 msgstr ""
18310
18311 #. type: =head2
18312 #: ../src/guestfs-actions.pod:7297
18313 msgid "guestfs_write"
18314 msgstr ""
18315
18316 #. type: verbatim
18317 #: ../src/guestfs-actions.pod:7299
18318 #, no-wrap
18319 msgid ""
18320 " int\n"
18321 " guestfs_write (guestfs_h *g,\n"
18322 "                const char *path,\n"
18323 "                const char *content,\n"
18324 "                size_t content_size);\n"
18325 "\n"
18326 msgstr ""
18327
18328 #. type: textblock
18329 #: ../src/guestfs-actions.pod:7305 ../fish/guestfish-actions.pod:4891
18330 msgid ""
18331 "This call creates a file called C<path>.  The content of the file is the "
18332 "string C<content> (which can contain any 8 bit data)."
18333 msgstr ""
18334
18335 #. type: =head2
18336 #: ../src/guestfs-actions.pod:7315
18337 msgid "guestfs_write_file"
18338 msgstr ""
18339
18340 #. type: verbatim
18341 #: ../src/guestfs-actions.pod:7317
18342 #, no-wrap
18343 msgid ""
18344 " int\n"
18345 " guestfs_write_file (guestfs_h *g,\n"
18346 "                     const char *path,\n"
18347 "                     const char *content,\n"
18348 "                     int size);\n"
18349 "\n"
18350 msgstr ""
18351
18352 #. type: textblock
18353 #: ../src/guestfs-actions.pod:7323 ../fish/guestfish-actions.pod:4901
18354 msgid ""
18355 "This call creates a file called C<path>.  The contents of the file is the "
18356 "string C<content> (which can contain any 8 bit data), with length C<size>."
18357 msgstr ""
18358
18359 #. type: textblock
18360 #: ../src/guestfs-actions.pod:7327 ../fish/guestfish-actions.pod:4905
18361 msgid ""
18362 "As a special case, if C<size> is C<0> then the length is calculated using "
18363 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18364 msgstr ""
18365
18366 #. type: textblock
18367 #: ../src/guestfs-actions.pod:7331 ../fish/guestfish-actions.pod:4909
18368 msgid ""
18369 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18370 "I<not> work, even if the length is specified."
18371 msgstr ""
18372
18373 #. type: textblock
18374 #: ../src/guestfs-actions.pod:7339 ../fish/guestfish-actions.pod:4915
18375 msgid ""
18376 "This function is deprecated.  In new code, use the C<write> call instead."
18377 msgstr ""
18378
18379 #. type: =head2
18380 #: ../src/guestfs-actions.pod:7348
18381 msgid "guestfs_zegrep"
18382 msgstr ""
18383
18384 #. type: verbatim
18385 #: ../src/guestfs-actions.pod:7350
18386 #, no-wrap
18387 msgid ""
18388 " char **\n"
18389 " guestfs_zegrep (guestfs_h *g,\n"
18390 "                 const char *regex,\n"
18391 "                 const char *path);\n"
18392 "\n"
18393 msgstr ""
18394
18395 #. type: textblock
18396 #: ../src/guestfs-actions.pod:7355 ../fish/guestfish-actions.pod:4926
18397 msgid ""
18398 "This calls the external C<zegrep> program and returns the matching lines."
18399 msgstr ""
18400
18401 #. type: =head2
18402 #: ../src/guestfs-actions.pod:7367
18403 msgid "guestfs_zegrepi"
18404 msgstr ""
18405
18406 #. type: verbatim
18407 #: ../src/guestfs-actions.pod:7369
18408 #, no-wrap
18409 msgid ""
18410 " char **\n"
18411 " guestfs_zegrepi (guestfs_h *g,\n"
18412 "                  const char *regex,\n"
18413 "                  const char *path);\n"
18414 "\n"
18415 msgstr ""
18416
18417 #. type: textblock
18418 #: ../src/guestfs-actions.pod:7374 ../fish/guestfish-actions.pod:4936
18419 msgid ""
18420 "This calls the external C<zegrep -i> program and returns the matching lines."
18421 msgstr ""
18422
18423 #. type: =head2
18424 #: ../src/guestfs-actions.pod:7386
18425 msgid "guestfs_zero"
18426 msgstr ""
18427
18428 #. type: verbatim
18429 #: ../src/guestfs-actions.pod:7388
18430 #, no-wrap
18431 msgid ""
18432 " int\n"
18433 " guestfs_zero (guestfs_h *g,\n"
18434 "               const char *device);\n"
18435 "\n"
18436 msgstr ""
18437
18438 #. type: textblock
18439 #: ../src/guestfs-actions.pod:7392 ../fish/guestfish-actions.pod:4946
18440 msgid "This command writes zeroes over the first few blocks of C<device>."
18441 msgstr ""
18442
18443 #. type: textblock
18444 #: ../src/guestfs-actions.pod:7394 ../fish/guestfish-actions.pod:4948
18445 msgid ""
18446 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18447 "securely wipe the device).  It should be sufficient to remove any partition "
18448 "tables, filesystem superblocks and so on."
18449 msgstr ""
18450
18451 #. type: textblock
18452 #: ../src/guestfs-actions.pod:7398
18453 msgid ""
18454 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
18455 "C<guestfs_is_zero_device>"
18456 msgstr ""
18457
18458 #. type: =head2
18459 #: ../src/guestfs-actions.pod:7410
18460 msgid "guestfs_zero_device"
18461 msgstr ""
18462
18463 #. type: verbatim
18464 #: ../src/guestfs-actions.pod:7412
18465 #, no-wrap
18466 msgid ""
18467 " int\n"
18468 " guestfs_zero_device (guestfs_h *g,\n"
18469 "                      const char *device);\n"
18470 "\n"
18471 msgstr ""
18472
18473 #. type: textblock
18474 #: ../src/guestfs-actions.pod:7416
18475 msgid ""
18476 "This command writes zeroes over the entire C<device>.  Compare with "
18477 "C<guestfs_zero> which just zeroes the first few blocks of a device."
18478 msgstr ""
18479
18480 #. type: textblock
18481 #: ../src/guestfs-actions.pod:7430
18482 msgid "(Added in 1.3.1)"
18483 msgstr ""
18484
18485 #. type: =head2
18486 #: ../src/guestfs-actions.pod:7432
18487 msgid "guestfs_zerofree"
18488 msgstr ""
18489
18490 #. type: verbatim
18491 #: ../src/guestfs-actions.pod:7434
18492 #, no-wrap
18493 msgid ""
18494 " int\n"
18495 " guestfs_zerofree (guestfs_h *g,\n"
18496 "                   const char *device);\n"
18497 "\n"
18498 msgstr ""
18499
18500 #. type: textblock
18501 #: ../src/guestfs-actions.pod:7438 ../fish/guestfish-actions.pod:4970
18502 msgid ""
18503 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18504 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18505 "possible to compress the filesystem more effectively."
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../src/guestfs-actions.pod:7443 ../fish/guestfish-actions.pod:4975
18510 msgid "You should B<not> run this program if the filesystem is mounted."
18511 msgstr ""
18512
18513 #. type: textblock
18514 #: ../src/guestfs-actions.pod:7446 ../fish/guestfish-actions.pod:4978
18515 msgid ""
18516 "It is possible that using this program can damage the filesystem or data on "
18517 "the filesystem."
18518 msgstr ""
18519
18520 #. type: =head2
18521 #: ../src/guestfs-actions.pod:7453
18522 msgid "guestfs_zfgrep"
18523 msgstr ""
18524
18525 #. type: verbatim
18526 #: ../src/guestfs-actions.pod:7455
18527 #, no-wrap
18528 msgid ""
18529 " char **\n"
18530 " guestfs_zfgrep (guestfs_h *g,\n"
18531 "                 const char *pattern,\n"
18532 "                 const char *path);\n"
18533 "\n"
18534 msgstr ""
18535
18536 #. type: textblock
18537 #: ../src/guestfs-actions.pod:7460 ../fish/guestfish-actions.pod:4985
18538 msgid ""
18539 "This calls the external C<zfgrep> program and returns the matching lines."
18540 msgstr ""
18541
18542 #. type: =head2
18543 #: ../src/guestfs-actions.pod:7472
18544 msgid "guestfs_zfgrepi"
18545 msgstr ""
18546
18547 #. type: verbatim
18548 #: ../src/guestfs-actions.pod:7474
18549 #, no-wrap
18550 msgid ""
18551 " char **\n"
18552 " guestfs_zfgrepi (guestfs_h *g,\n"
18553 "                  const char *pattern,\n"
18554 "                  const char *path);\n"
18555 "\n"
18556 msgstr ""
18557
18558 #. type: textblock
18559 #: ../src/guestfs-actions.pod:7479 ../fish/guestfish-actions.pod:4995
18560 msgid ""
18561 "This calls the external C<zfgrep -i> program and returns the matching lines."
18562 msgstr ""
18563
18564 #. type: =head2
18565 #: ../src/guestfs-actions.pod:7491
18566 msgid "guestfs_zfile"
18567 msgstr ""
18568
18569 #. type: verbatim
18570 #: ../src/guestfs-actions.pod:7493
18571 #, no-wrap
18572 msgid ""
18573 " char *\n"
18574 " guestfs_zfile (guestfs_h *g,\n"
18575 "                const char *meth,\n"
18576 "                const char *path);\n"
18577 "\n"
18578 msgstr ""
18579
18580 #. type: textblock
18581 #: ../src/guestfs-actions.pod:7498 ../fish/guestfish-actions.pod:5005
18582 msgid ""
18583 "This command runs C<file> after first decompressing C<path> using C<method>."
18584 msgstr ""
18585
18586 #. type: textblock
18587 #: ../src/guestfs-actions.pod:7501 ../fish/guestfish-actions.pod:5008
18588 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18589 msgstr ""
18590
18591 #. type: textblock
18592 #: ../src/guestfs-actions.pod:7503
18593 msgid ""
18594 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
18595 "files."
18596 msgstr ""
18597
18598 #. type: textblock
18599 #: ../src/guestfs-actions.pod:7509 ../fish/guestfish-actions.pod:5013
18600 msgid ""
18601 "This function is deprecated.  In new code, use the C<file> call instead."
18602 msgstr ""
18603
18604 #. type: =head2
18605 #: ../src/guestfs-actions.pod:7518
18606 msgid "guestfs_zgrep"
18607 msgstr ""
18608
18609 #. type: verbatim
18610 #: ../src/guestfs-actions.pod:7520
18611 #, no-wrap
18612 msgid ""
18613 " char **\n"
18614 " guestfs_zgrep (guestfs_h *g,\n"
18615 "                const char *regex,\n"
18616 "                const char *path);\n"
18617 "\n"
18618 msgstr ""
18619
18620 #. type: textblock
18621 #: ../src/guestfs-actions.pod:7525 ../fish/guestfish-actions.pod:5024
18622 msgid ""
18623 "This calls the external C<zgrep> program and returns the matching lines."
18624 msgstr ""
18625
18626 #. type: =head2
18627 #: ../src/guestfs-actions.pod:7537
18628 msgid "guestfs_zgrepi"
18629 msgstr ""
18630
18631 #. type: verbatim
18632 #: ../src/guestfs-actions.pod:7539
18633 #, no-wrap
18634 msgid ""
18635 " char **\n"
18636 " guestfs_zgrepi (guestfs_h *g,\n"
18637 "                 const char *regex,\n"
18638 "                 const char *path);\n"
18639 "\n"
18640 msgstr ""
18641
18642 #. type: textblock
18643 #: ../src/guestfs-actions.pod:7544 ../fish/guestfish-actions.pod:5034
18644 msgid ""
18645 "This calls the external C<zgrep -i> program and returns the matching lines."
18646 msgstr ""
18647
18648 #. type: =item
18649 #: ../src/guestfs-availability.pod:3
18650 msgid "B<augeas>"
18651 msgstr ""
18652
18653 #. type: textblock
18654 #: ../src/guestfs-availability.pod:5
18655 msgid ""
18656 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
18657 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
18658 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
18659 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
18660 "L</guestfs_aug_save> L</guestfs_aug_set>"
18661 msgstr ""
18662
18663 #. type: =item
18664 #: ../src/guestfs-availability.pod:21
18665 msgid "B<inotify>"
18666 msgstr ""
18667
18668 #. type: textblock
18669 #: ../src/guestfs-availability.pod:23
18670 msgid ""
18671 "The following functions: L</guestfs_inotify_add_watch> L</"
18672 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
18673 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
18674 msgstr ""
18675
18676 #. type: =item
18677 #: ../src/guestfs-availability.pod:31
18678 msgid "B<linuxfsuuid>"
18679 msgstr ""
18680
18681 #. type: textblock
18682 #: ../src/guestfs-availability.pod:33
18683 msgid ""
18684 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
18685 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
18686 msgstr ""
18687
18688 #. type: =item
18689 #: ../src/guestfs-availability.pod:40
18690 msgid "B<linuxmodules>"
18691 msgstr ""
18692
18693 #. type: textblock
18694 #: ../src/guestfs-availability.pod:42
18695 msgid "The following functions: L</guestfs_modprobe>"
18696 msgstr ""
18697
18698 #. type: =item
18699 #: ../src/guestfs-availability.pod:45
18700 msgid "B<linuxxattrs>"
18701 msgstr ""
18702
18703 #. type: textblock
18704 #: ../src/guestfs-availability.pod:47
18705 msgid ""
18706 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
18707 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
18708 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
18709 "guestfs_setxattr>"
18710 msgstr ""
18711
18712 #. type: =item
18713 #: ../src/guestfs-availability.pod:58
18714 msgid "B<luks>"
18715 msgstr ""
18716
18717 #. type: textblock
18718 #: ../src/guestfs-availability.pod:60
18719 msgid ""
18720 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
18721 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
18722 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
18723 msgstr ""
18724
18725 #. type: =item
18726 #: ../src/guestfs-availability.pod:69
18727 msgid "B<lvm2>"
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../src/guestfs-availability.pod:71
18732 msgid ""
18733 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
18734 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
18735 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
18736 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
18737 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
18738 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
18739 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
18740 msgstr ""
18741
18742 #. type: =item
18743 #: ../src/guestfs-availability.pod:94
18744 msgid "B<mknod>"
18745 msgstr ""
18746
18747 #. type: textblock
18748 #: ../src/guestfs-availability.pod:96
18749 msgid ""
18750 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
18751 "guestfs_mknod_b> L</guestfs_mknod_c>"
18752 msgstr ""
18753
18754 #. type: =item
18755 #: ../src/guestfs-availability.pod:102
18756 msgid "B<ntfs3g>"
18757 msgstr ""
18758
18759 #. type: textblock
18760 #: ../src/guestfs-availability.pod:104
18761 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
18762 msgstr ""
18763
18764 #. type: =item
18765 #: ../src/guestfs-availability.pod:107
18766 msgid "B<ntfsprogs>"
18767 msgstr ""
18768
18769 #. type: textblock
18770 #: ../src/guestfs-availability.pod:109
18771 msgid ""
18772 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
18773 msgstr ""
18774
18775 #. type: =item
18776 #: ../src/guestfs-availability.pod:113
18777 msgid "B<realpath>"
18778 msgstr ""
18779
18780 #. type: textblock
18781 #: ../src/guestfs-availability.pod:115
18782 msgid "The following functions: L</guestfs_realpath>"
18783 msgstr ""
18784
18785 #. type: =item
18786 #: ../src/guestfs-availability.pod:118
18787 msgid "B<scrub>"
18788 msgstr ""
18789
18790 #. type: textblock
18791 #: ../src/guestfs-availability.pod:120
18792 msgid ""
18793 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
18794 "guestfs_scrub_freespace>"
18795 msgstr ""
18796
18797 #. type: =item
18798 #: ../src/guestfs-availability.pod:125
18799 msgid "B<selinux>"
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../src/guestfs-availability.pod:127
18804 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
18805 msgstr ""
18806
18807 #. type: =item
18808 #: ../src/guestfs-availability.pod:131
18809 msgid "B<xz>"
18810 msgstr ""
18811
18812 #. type: textblock
18813 #: ../src/guestfs-availability.pod:133
18814 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
18815 msgstr ""
18816
18817 #. type: =item
18818 #: ../src/guestfs-availability.pod:137
18819 msgid "B<zerofree>"
18820 msgstr ""
18821
18822 #. type: textblock
18823 #: ../src/guestfs-availability.pod:139
18824 msgid "The following functions: L</guestfs_zerofree>"
18825 msgstr ""
18826
18827 #. type: =head2
18828 #: ../src/guestfs-structs.pod:1
18829 msgid "guestfs_int_bool"
18830 msgstr ""
18831
18832 #. type: verbatim
18833 #: ../src/guestfs-structs.pod:3
18834 #, no-wrap
18835 msgid ""
18836 " struct guestfs_int_bool {\n"
18837 "   int32_t i;\n"
18838 "   int32_t b;\n"
18839 " };\n"
18840 " \n"
18841 msgstr ""
18842
18843 #. type: verbatim
18844 #: ../src/guestfs-structs.pod:8
18845 #, no-wrap
18846 msgid ""
18847 " struct guestfs_int_bool_list {\n"
18848 "   uint32_t len; /* Number of elements in list. */\n"
18849 "   struct guestfs_int_bool *val; /* Elements. */\n"
18850 " };\n"
18851 " \n"
18852 msgstr ""
18853
18854 #. type: verbatim
18855 #: ../src/guestfs-structs.pod:13
18856 #, no-wrap
18857 msgid ""
18858 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
18859 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
18860 "\n"
18861 msgstr ""
18862
18863 #. type: =head2
18864 #: ../src/guestfs-structs.pod:16
18865 msgid "guestfs_lvm_pv"
18866 msgstr ""
18867
18868 #. type: verbatim
18869 #: ../src/guestfs-structs.pod:18
18870 #, no-wrap
18871 msgid ""
18872 " struct guestfs_lvm_pv {\n"
18873 "   char *pv_name;\n"
18874 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18875 "   char pv_uuid[32];\n"
18876 "   char *pv_fmt;\n"
18877 "   uint64_t pv_size;\n"
18878 "   uint64_t dev_size;\n"
18879 "   uint64_t pv_free;\n"
18880 "   uint64_t pv_used;\n"
18881 "   char *pv_attr;\n"
18882 "   int64_t pv_pe_count;\n"
18883 "   int64_t pv_pe_alloc_count;\n"
18884 "   char *pv_tags;\n"
18885 "   uint64_t pe_start;\n"
18886 "   int64_t pv_mda_count;\n"
18887 "   uint64_t pv_mda_free;\n"
18888 " };\n"
18889 " \n"
18890 msgstr ""
18891
18892 #. type: verbatim
18893 #: ../src/guestfs-structs.pod:36
18894 #, no-wrap
18895 msgid ""
18896 " struct guestfs_lvm_pv_list {\n"
18897 "   uint32_t len; /* Number of elements in list. */\n"
18898 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
18899 " };\n"
18900 " \n"
18901 msgstr ""
18902
18903 #. type: verbatim
18904 #: ../src/guestfs-structs.pod:41
18905 #, no-wrap
18906 msgid ""
18907 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
18908 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
18909 "\n"
18910 msgstr ""
18911
18912 #. type: =head2
18913 #: ../src/guestfs-structs.pod:44
18914 msgid "guestfs_lvm_vg"
18915 msgstr ""
18916
18917 #. type: verbatim
18918 #: ../src/guestfs-structs.pod:46
18919 #, no-wrap
18920 msgid ""
18921 " struct guestfs_lvm_vg {\n"
18922 "   char *vg_name;\n"
18923 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18924 "   char vg_uuid[32];\n"
18925 "   char *vg_fmt;\n"
18926 "   char *vg_attr;\n"
18927 "   uint64_t vg_size;\n"
18928 "   uint64_t vg_free;\n"
18929 "   char *vg_sysid;\n"
18930 "   uint64_t vg_extent_size;\n"
18931 "   int64_t vg_extent_count;\n"
18932 "   int64_t vg_free_count;\n"
18933 "   int64_t max_lv;\n"
18934 "   int64_t max_pv;\n"
18935 "   int64_t pv_count;\n"
18936 "   int64_t lv_count;\n"
18937 "   int64_t snap_count;\n"
18938 "   int64_t vg_seqno;\n"
18939 "   char *vg_tags;\n"
18940 "   int64_t vg_mda_count;\n"
18941 "   uint64_t vg_mda_free;\n"
18942 " };\n"
18943 " \n"
18944 msgstr ""
18945
18946 #. type: verbatim
18947 #: ../src/guestfs-structs.pod:69
18948 #, no-wrap
18949 msgid ""
18950 " struct guestfs_lvm_vg_list {\n"
18951 "   uint32_t len; /* Number of elements in list. */\n"
18952 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
18953 " };\n"
18954 " \n"
18955 msgstr ""
18956
18957 #. type: verbatim
18958 #: ../src/guestfs-structs.pod:74
18959 #, no-wrap
18960 msgid ""
18961 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
18962 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
18963 "\n"
18964 msgstr ""
18965
18966 #. type: =head2
18967 #: ../src/guestfs-structs.pod:77
18968 msgid "guestfs_lvm_lv"
18969 msgstr ""
18970
18971 #. type: verbatim
18972 #: ../src/guestfs-structs.pod:79
18973 #, no-wrap
18974 msgid ""
18975 " struct guestfs_lvm_lv {\n"
18976 "   char *lv_name;\n"
18977 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18978 "   char lv_uuid[32];\n"
18979 "   char *lv_attr;\n"
18980 "   int64_t lv_major;\n"
18981 "   int64_t lv_minor;\n"
18982 "   int64_t lv_kernel_major;\n"
18983 "   int64_t lv_kernel_minor;\n"
18984 "   uint64_t lv_size;\n"
18985 "   int64_t seg_count;\n"
18986 "   char *origin;\n"
18987 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18988 "   float snap_percent;\n"
18989 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18990 "   float copy_percent;\n"
18991 "   char *move_pv;\n"
18992 "   char *lv_tags;\n"
18993 "   char *mirror_log;\n"
18994 "   char *modules;\n"
18995 " };\n"
18996 " \n"
18997 msgstr ""
18998
18999 #. type: verbatim
19000 #: ../src/guestfs-structs.pod:101
19001 #, no-wrap
19002 msgid ""
19003 " struct guestfs_lvm_lv_list {\n"
19004 "   uint32_t len; /* Number of elements in list. */\n"
19005 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
19006 " };\n"
19007 " \n"
19008 msgstr ""
19009
19010 #. type: verbatim
19011 #: ../src/guestfs-structs.pod:106
19012 #, no-wrap
19013 msgid ""
19014 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
19015 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
19016 "\n"
19017 msgstr ""
19018
19019 #. type: verbatim
19020 #: ../src/guestfs-structs.pod:111
19021 #, no-wrap
19022 msgid ""
19023 " struct guestfs_stat {\n"
19024 "   int64_t dev;\n"
19025 "   int64_t ino;\n"
19026 "   int64_t mode;\n"
19027 "   int64_t nlink;\n"
19028 "   int64_t uid;\n"
19029 "   int64_t gid;\n"
19030 "   int64_t rdev;\n"
19031 "   int64_t size;\n"
19032 "   int64_t blksize;\n"
19033 "   int64_t blocks;\n"
19034 "   int64_t atime;\n"
19035 "   int64_t mtime;\n"
19036 "   int64_t ctime;\n"
19037 " };\n"
19038 " \n"
19039 msgstr ""
19040
19041 #. type: verbatim
19042 #: ../src/guestfs-structs.pod:127
19043 #, no-wrap
19044 msgid ""
19045 " struct guestfs_stat_list {\n"
19046 "   uint32_t len; /* Number of elements in list. */\n"
19047 "   struct guestfs_stat *val; /* Elements. */\n"
19048 " };\n"
19049 " \n"
19050 msgstr ""
19051
19052 #. type: verbatim
19053 #: ../src/guestfs-structs.pod:132
19054 #, no-wrap
19055 msgid ""
19056 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
19057 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
19058 "\n"
19059 msgstr ""
19060
19061 #. type: verbatim
19062 #: ../src/guestfs-structs.pod:137
19063 #, no-wrap
19064 msgid ""
19065 " struct guestfs_statvfs {\n"
19066 "   int64_t bsize;\n"
19067 "   int64_t frsize;\n"
19068 "   int64_t blocks;\n"
19069 "   int64_t bfree;\n"
19070 "   int64_t bavail;\n"
19071 "   int64_t files;\n"
19072 "   int64_t ffree;\n"
19073 "   int64_t favail;\n"
19074 "   int64_t fsid;\n"
19075 "   int64_t flag;\n"
19076 "   int64_t namemax;\n"
19077 " };\n"
19078 " \n"
19079 msgstr ""
19080
19081 #. type: verbatim
19082 #: ../src/guestfs-structs.pod:151
19083 #, no-wrap
19084 msgid ""
19085 " struct guestfs_statvfs_list {\n"
19086 "   uint32_t len; /* Number of elements in list. */\n"
19087 "   struct guestfs_statvfs *val; /* Elements. */\n"
19088 " };\n"
19089 " \n"
19090 msgstr ""
19091
19092 #. type: verbatim
19093 #: ../src/guestfs-structs.pod:156
19094 #, no-wrap
19095 msgid ""
19096 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
19097 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
19098 "\n"
19099 msgstr ""
19100
19101 #. type: =head2
19102 #: ../src/guestfs-structs.pod:159
19103 msgid "guestfs_dirent"
19104 msgstr ""
19105
19106 #. type: verbatim
19107 #: ../src/guestfs-structs.pod:161
19108 #, no-wrap
19109 msgid ""
19110 " struct guestfs_dirent {\n"
19111 "   int64_t ino;\n"
19112 "   char ftyp;\n"
19113 "   char *name;\n"
19114 " };\n"
19115 " \n"
19116 msgstr ""
19117
19118 #. type: verbatim
19119 #: ../src/guestfs-structs.pod:167
19120 #, no-wrap
19121 msgid ""
19122 " struct guestfs_dirent_list {\n"
19123 "   uint32_t len; /* Number of elements in list. */\n"
19124 "   struct guestfs_dirent *val; /* Elements. */\n"
19125 " };\n"
19126 " \n"
19127 msgstr ""
19128
19129 #. type: verbatim
19130 #: ../src/guestfs-structs.pod:172
19131 #, no-wrap
19132 msgid ""
19133 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
19134 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
19135 "\n"
19136 msgstr ""
19137
19138 #. type: verbatim
19139 #: ../src/guestfs-structs.pod:177
19140 #, no-wrap
19141 msgid ""
19142 " struct guestfs_version {\n"
19143 "   int64_t major;\n"
19144 "   int64_t minor;\n"
19145 "   int64_t release;\n"
19146 "   char *extra;\n"
19147 " };\n"
19148 " \n"
19149 msgstr ""
19150
19151 #. type: verbatim
19152 #: ../src/guestfs-structs.pod:184
19153 #, no-wrap
19154 msgid ""
19155 " struct guestfs_version_list {\n"
19156 "   uint32_t len; /* Number of elements in list. */\n"
19157 "   struct guestfs_version *val; /* Elements. */\n"
19158 " };\n"
19159 " \n"
19160 msgstr ""
19161
19162 #. type: verbatim
19163 #: ../src/guestfs-structs.pod:189
19164 #, no-wrap
19165 msgid ""
19166 " void guestfs_free_version (struct guestfs_free_version *);\n"
19167 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
19168 "\n"
19169 msgstr ""
19170
19171 #. type: =head2
19172 #: ../src/guestfs-structs.pod:192
19173 msgid "guestfs_xattr"
19174 msgstr ""
19175
19176 #. type: verbatim
19177 #: ../src/guestfs-structs.pod:194
19178 #, no-wrap
19179 msgid ""
19180 " struct guestfs_xattr {\n"
19181 "   char *attrname;\n"
19182 "   /* The next two fields describe a byte array. */\n"
19183 "   uint32_t attrval_len;\n"
19184 "   char *attrval;\n"
19185 " };\n"
19186 " \n"
19187 msgstr ""
19188
19189 #. type: verbatim
19190 #: ../src/guestfs-structs.pod:201
19191 #, no-wrap
19192 msgid ""
19193 " struct guestfs_xattr_list {\n"
19194 "   uint32_t len; /* Number of elements in list. */\n"
19195 "   struct guestfs_xattr *val; /* Elements. */\n"
19196 " };\n"
19197 " \n"
19198 msgstr ""
19199
19200 #. type: verbatim
19201 #: ../src/guestfs-structs.pod:206
19202 #, no-wrap
19203 msgid ""
19204 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
19205 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
19206 "\n"
19207 msgstr ""
19208
19209 #. type: =head2
19210 #: ../src/guestfs-structs.pod:209
19211 msgid "guestfs_inotify_event"
19212 msgstr ""
19213
19214 #. type: verbatim
19215 #: ../src/guestfs-structs.pod:211
19216 #, no-wrap
19217 msgid ""
19218 " struct guestfs_inotify_event {\n"
19219 "   int64_t in_wd;\n"
19220 "   uint32_t in_mask;\n"
19221 "   uint32_t in_cookie;\n"
19222 "   char *in_name;\n"
19223 " };\n"
19224 " \n"
19225 msgstr ""
19226
19227 #. type: verbatim
19228 #: ../src/guestfs-structs.pod:218
19229 #, no-wrap
19230 msgid ""
19231 " struct guestfs_inotify_event_list {\n"
19232 "   uint32_t len; /* Number of elements in list. */\n"
19233 "   struct guestfs_inotify_event *val; /* Elements. */\n"
19234 " };\n"
19235 " \n"
19236 msgstr ""
19237
19238 #. type: verbatim
19239 #: ../src/guestfs-structs.pod:223
19240 #, no-wrap
19241 msgid ""
19242 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
19243 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
19244 "\n"
19245 msgstr ""
19246
19247 #. type: =head2
19248 #: ../src/guestfs-structs.pod:226
19249 msgid "guestfs_partition"
19250 msgstr ""
19251
19252 #. type: verbatim
19253 #: ../src/guestfs-structs.pod:228
19254 #, no-wrap
19255 msgid ""
19256 " struct guestfs_partition {\n"
19257 "   int32_t part_num;\n"
19258 "   uint64_t part_start;\n"
19259 "   uint64_t part_end;\n"
19260 "   uint64_t part_size;\n"
19261 " };\n"
19262 " \n"
19263 msgstr ""
19264
19265 #. type: verbatim
19266 #: ../src/guestfs-structs.pod:235
19267 #, no-wrap
19268 msgid ""
19269 " struct guestfs_partition_list {\n"
19270 "   uint32_t len; /* Number of elements in list. */\n"
19271 "   struct guestfs_partition *val; /* Elements. */\n"
19272 " };\n"
19273 " \n"
19274 msgstr ""
19275
19276 #. type: verbatim
19277 #: ../src/guestfs-structs.pod:240
19278 #, no-wrap
19279 msgid ""
19280 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
19281 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
19282 "\n"
19283 msgstr ""
19284
19285 #. type: =head2
19286 #: ../src/guestfs-structs.pod:243
19287 msgid "guestfs_application"
19288 msgstr ""
19289
19290 #. type: verbatim
19291 #: ../src/guestfs-structs.pod:245
19292 #, no-wrap
19293 msgid ""
19294 " struct guestfs_application {\n"
19295 "   char *app_name;\n"
19296 "   char *app_display_name;\n"
19297 "   int32_t app_epoch;\n"
19298 "   char *app_version;\n"
19299 "   char *app_release;\n"
19300 "   char *app_install_path;\n"
19301 "   char *app_trans_path;\n"
19302 "   char *app_publisher;\n"
19303 "   char *app_url;\n"
19304 "   char *app_source_package;\n"
19305 "   char *app_summary;\n"
19306 "   char *app_description;\n"
19307 " };\n"
19308 " \n"
19309 msgstr ""
19310
19311 #. type: verbatim
19312 #: ../src/guestfs-structs.pod:260
19313 #, no-wrap
19314 msgid ""
19315 " struct guestfs_application_list {\n"
19316 "   uint32_t len; /* Number of elements in list. */\n"
19317 "   struct guestfs_application *val; /* Elements. */\n"
19318 " };\n"
19319 " \n"
19320 msgstr ""
19321
19322 #. type: verbatim
19323 #: ../src/guestfs-structs.pod:265
19324 #, no-wrap
19325 msgid ""
19326 " void guestfs_free_application (struct guestfs_free_application *);\n"
19327 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
19328 "\n"
19329 msgstr ""
19330
19331 #. type: textblock
19332 #: ../fish/guestfish.pod:5
19333 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19334 msgstr ""
19335
19336 #. type: verbatim
19337 #: ../fish/guestfish.pod:9
19338 #, no-wrap
19339 msgid ""
19340 " guestfish [--options] [commands]\n"
19341 "\n"
19342 msgstr ""
19343
19344 #. type: verbatim
19345 #: ../fish/guestfish.pod:11
19346 #, no-wrap
19347 msgid ""
19348 " guestfish\n"
19349 "\n"
19350 msgstr ""
19351
19352 #. type: verbatim
19353 #: ../fish/guestfish.pod:13
19354 #, no-wrap
19355 msgid ""
19356 " guestfish [--ro|--rw] -a disk.img\n"
19357 "\n"
19358 msgstr ""
19359
19360 #. type: verbatim
19361 #: ../fish/guestfish.pod:15
19362 #, no-wrap
19363 msgid ""
19364 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19365 "\n"
19366 msgstr ""
19367
19368 #. type: verbatim
19369 #: ../fish/guestfish.pod:17
19370 #, no-wrap
19371 msgid ""
19372 " guestfish -d libvirt-domain\n"
19373 "\n"
19374 msgstr ""
19375
19376 #. type: verbatim
19377 #: ../fish/guestfish.pod:19
19378 #, no-wrap
19379 msgid ""
19380 " guestfish [--ro|--rw] -a disk.img -i\n"
19381 "\n"
19382 msgstr ""
19383
19384 #. type: verbatim
19385 #: ../fish/guestfish.pod:21
19386 #, no-wrap
19387 msgid ""
19388 " guestfish -d libvirt-domain -i\n"
19389 "\n"
19390 msgstr ""
19391
19392 #. type: =head1
19393 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
19394 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
19395 msgid "WARNING"
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../fish/guestfish.pod:25
19400 msgid ""
19401 "Using guestfish in read/write mode on live virtual machines can be "
19402 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19403 "option to use guestfish safely if the disk image or virtual machine might be "
19404 "live."
19405 msgstr ""
19406
19407 #. type: textblock
19408 #: ../fish/guestfish.pod:32
19409 msgid ""
19410 "Guestfish is a shell and command-line tool for examining and modifying "
19411 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19412 "functionality of the guestfs API, see L<guestfs(3)>."
19413 msgstr ""
19414
19415 #. type: textblock
19416 #: ../fish/guestfish.pod:36
19417 msgid ""
19418 "Guestfish gives you structured access to the libguestfs API, from shell "
19419 "scripts or the command line or interactively.  If you want to rescue a "
19420 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19421 "command."
19422 msgstr ""
19423
19424 #. type: =head1
19425 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:949
19426 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
19427 msgid "EXAMPLES"
19428 msgstr ""
19429
19430 #. type: =head2
19431 #: ../fish/guestfish.pod:43
19432 msgid "As an interactive shell"
19433 msgstr ""
19434
19435 #. type: verbatim
19436 #: ../fish/guestfish.pod:45
19437 #, no-wrap
19438 msgid ""
19439 " $ guestfish\n"
19440 " \n"
19441 msgstr ""
19442
19443 #. type: verbatim
19444 #: ../fish/guestfish.pod:47
19445 #, no-wrap
19446 msgid ""
19447 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19448 " editing virtual machine filesystems.\n"
19449 " \n"
19450 msgstr ""
19451
19452 #. type: verbatim
19453 #: ../fish/guestfish.pod:50
19454 #, no-wrap
19455 msgid ""
19456 " Type: 'help' for a list of commands\n"
19457 "       'man' to read the manual\n"
19458 "       'quit' to quit the shell\n"
19459 " \n"
19460 msgstr ""
19461
19462 #. type: verbatim
19463 #: ../fish/guestfish.pod:54
19464 #, no-wrap
19465 msgid ""
19466 " ><fs> add-ro disk.img\n"
19467 " ><fs> run\n"
19468 " ><fs> list-filesystems\n"
19469 " /dev/sda1: ext4\n"
19470 " /dev/vg_guest/lv_root: ext4\n"
19471 " /dev/vg_guest/lv_swap: swap\n"
19472 " ><fs> mount /dev/vg_guest/lv_root /\n"
19473 " ><fs> cat /etc/fstab\n"
19474 " # /etc/fstab\n"
19475 " # Created by anaconda\n"
19476 " [...]\n"
19477 " ><fs> exit\n"
19478 "\n"
19479 msgstr ""
19480
19481 #. type: =head2
19482 #: ../fish/guestfish.pod:67
19483 msgid "From shell scripts"
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fish/guestfish.pod:69
19488 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19489 msgstr ""
19490
19491 #. type: verbatim
19492 #: ../fish/guestfish.pod:71
19493 #, no-wrap
19494 msgid ""
19495 " guestfish <<_EOF_\n"
19496 " add disk.img\n"
19497 " run\n"
19498 " mount /dev/vg_guest/lv_root /\n"
19499 " write /etc/motd \"Welcome, new users\"\n"
19500 " _EOF_\n"
19501 "\n"
19502 msgstr ""
19503
19504 #. type: textblock
19505 #: ../fish/guestfish.pod:78
19506 msgid "List the LVM logical volumes in a disk image:"
19507 msgstr ""
19508
19509 #. type: verbatim
19510 #: ../fish/guestfish.pod:80
19511 #, no-wrap
19512 msgid ""
19513 " guestfish -a disk.img --ro <<_EOF_\n"
19514 " run\n"
19515 " lvs\n"
19516 " _EOF_\n"
19517 "\n"
19518 msgstr ""
19519
19520 #. type: textblock
19521 #: ../fish/guestfish.pod:85
19522 msgid "List all the filesystems in a disk image:"
19523 msgstr ""
19524
19525 #. type: verbatim
19526 #: ../fish/guestfish.pod:87
19527 #, no-wrap
19528 msgid ""
19529 " guestfish -a disk.img --ro <<_EOF_\n"
19530 " run\n"
19531 " list-filesystems\n"
19532 " _EOF_\n"
19533 "\n"
19534 msgstr ""
19535
19536 #. type: =head2
19537 #: ../fish/guestfish.pod:92
19538 msgid "On one command line"
19539 msgstr ""
19540
19541 #. type: textblock
19542 #: ../fish/guestfish.pod:94
19543 msgid "Update C</etc/resolv.conf> in a guest:"
19544 msgstr ""
19545
19546 #. type: verbatim
19547 #: ../fish/guestfish.pod:96
19548 #, no-wrap
19549 msgid ""
19550 " guestfish \\\n"
19551 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19552 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19553 "\n"
19554 msgstr ""
19555
19556 #. type: textblock
19557 #: ../fish/guestfish.pod:100
19558 msgid "Edit C</boot/grub/grub.conf> interactively:"
19559 msgstr ""
19560
19561 #. type: verbatim
19562 #: ../fish/guestfish.pod:102
19563 #, no-wrap
19564 msgid ""
19565 " guestfish --rw --add disk.img \\\n"
19566 "   --mount /dev/vg_guest/lv_root \\\n"
19567 "   --mount /dev/sda1:/boot \\\n"
19568 "   edit /boot/grub/grub.conf\n"
19569 "\n"
19570 msgstr ""
19571
19572 #. type: =head2
19573 #: ../fish/guestfish.pod:107
19574 msgid "Mount disks automatically"
19575 msgstr ""
19576
19577 #. type: textblock
19578 #: ../fish/guestfish.pod:109
19579 msgid ""
19580 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19581 msgstr ""
19582
19583 #. type: verbatim
19584 #: ../fish/guestfish.pod:112
19585 #, no-wrap
19586 msgid ""
19587 " guestfish --ro -a disk.img -i cat /etc/group\n"
19588 "\n"
19589 msgstr ""
19590
19591 #. type: verbatim
19592 #: ../fish/guestfish.pod:114
19593 #, no-wrap
19594 msgid ""
19595 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19596 "\n"
19597 msgstr ""
19598
19599 #. type: textblock
19600 #: ../fish/guestfish.pod:116
19601 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19602 msgstr ""
19603
19604 #. type: verbatim
19605 #: ../fish/guestfish.pod:118
19606 #, no-wrap
19607 msgid ""
19608 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19609 "\n"
19610 msgstr ""
19611
19612 #. type: =head2
19613 #: ../fish/guestfish.pod:120
19614 msgid "As a script interpreter"
19615 msgstr ""
19616
19617 #. type: textblock
19618 #: ../fish/guestfish.pod:122
19619 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19620 msgstr ""
19621
19622 #. type: verbatim
19623 #: ../fish/guestfish.pod:124
19624 #, no-wrap
19625 msgid ""
19626 " #!/usr/bin/guestfish -f\n"
19627 " sparse test1.img 100M\n"
19628 " run\n"
19629 " part-disk /dev/sda mbr\n"
19630 " mkfs ext2 /dev/sda1\n"
19631 "\n"
19632 msgstr ""
19633
19634 #. type: =head2
19635 #: ../fish/guestfish.pod:130
19636 msgid "Start with a prepared disk"
19637 msgstr ""
19638
19639 #. type: textblock
19640 #: ../fish/guestfish.pod:132
19641 msgid ""
19642 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19643 "single ext2-formatted partition:"
19644 msgstr ""
19645
19646 #. type: verbatim
19647 #: ../fish/guestfish.pod:135
19648 #, no-wrap
19649 msgid ""
19650 " guestfish -N fs\n"
19651 "\n"
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../fish/guestfish.pod:137
19656 msgid "To list what is available do:"
19657 msgstr ""
19658
19659 #. type: verbatim
19660 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:940
19661 #, no-wrap
19662 msgid ""
19663 " guestfish -N help | less\n"
19664 "\n"
19665 msgstr ""
19666
19667 #. type: =head2
19668 #: ../fish/guestfish.pod:141
19669 msgid "Remote control"
19670 msgstr ""
19671
19672 #. type: verbatim
19673 #: ../fish/guestfish.pod:143
19674 #, no-wrap
19675 msgid ""
19676 " eval \"`guestfish --listen`\"\n"
19677 " guestfish --remote add-ro disk.img\n"
19678 " guestfish --remote run\n"
19679 " guestfish --remote lvs\n"
19680 "\n"
19681 msgstr ""
19682
19683 #. type: =head1
19684 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
19685 #: ../fuse/guestmount.pod:83 ../tools/virt-win-reg.pl:96
19686 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
19687 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
19688 msgid "OPTIONS"
19689 msgstr ""
19690
19691 #. type: =item
19692 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:143
19693 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
19694 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
19695 #: ../tools/virt-list-partitions.pl:62
19696 msgid "B<--help>"
19697 msgstr ""
19698
19699 #. type: textblock
19700 #: ../fish/guestfish.pod:154
19701 msgid "Displays general help on options."
19702 msgstr ""
19703
19704 #. type: =item
19705 #: ../fish/guestfish.pod:156
19706 msgid "B<-h>"
19707 msgstr ""
19708
19709 #. type: =item
19710 #: ../fish/guestfish.pod:158
19711 msgid "B<--cmd-help>"
19712 msgstr ""
19713
19714 #. type: textblock
19715 #: ../fish/guestfish.pod:160
19716 msgid "Lists all available guestfish commands."
19717 msgstr ""
19718
19719 #. type: =item
19720 #: ../fish/guestfish.pod:162
19721 msgid "B<-h cmd>"
19722 msgstr ""
19723
19724 #. type: =item
19725 #: ../fish/guestfish.pod:164
19726 msgid "B<--cmd-help cmd>"
19727 msgstr ""
19728
19729 #. type: textblock
19730 #: ../fish/guestfish.pod:166
19731 msgid "Displays detailed help on a single command C<cmd>."
19732 msgstr ""
19733
19734 #. type: =item
19735 #: ../fish/guestfish.pod:168
19736 msgid "B<-a image>"
19737 msgstr ""
19738
19739 #. type: =item
19740 #: ../fish/guestfish.pod:170
19741 msgid "B<--add image>"
19742 msgstr ""
19743
19744 #. type: textblock
19745 #: ../fish/guestfish.pod:172
19746 msgid "Add a block device or virtual machine image to the shell."
19747 msgstr ""
19748
19749 #. type: textblock
19750 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
19751 msgid ""
19752 "The format of the disk image is auto-detected.  To override this and force a "
19753 "particular format use the I<--format=..> option."
19754 msgstr ""
19755
19756 #. type: textblock
19757 #: ../fish/guestfish.pod:177
19758 msgid ""
19759 "Using this flag is mostly equivalent to using the C<add> command, with "
19760 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19761 "the I<--format=...> flag was given."
19762 msgstr ""
19763
19764 #. type: =item
19765 #: ../fish/guestfish.pod:181
19766 msgid "B<-c URI>"
19767 msgstr ""
19768
19769 #. type: =item
19770 #: ../fish/guestfish.pod:183
19771 msgid "B<--connect URI>"
19772 msgstr ""
19773
19774 #. type: textblock
19775 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
19776 msgid ""
19777 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19778 "URI to use.  The default is to use the default libvirt connection."
19779 msgstr ""
19780
19781 #. type: =item
19782 #: ../fish/guestfish.pod:189
19783 msgid "B<--csh>"
19784 msgstr ""
19785
19786 #. type: textblock
19787 #: ../fish/guestfish.pod:191
19788 msgid ""
19789 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19790 "section L</REMOTE CONTROL AND CSH> below."
19791 msgstr ""
19792
19793 #. type: =item
19794 #: ../fish/guestfish.pod:194
19795 msgid "B<-d libvirt-domain>"
19796 msgstr ""
19797
19798 #. type: =item
19799 #: ../fish/guestfish.pod:196
19800 msgid "B<--domain libvirt-domain>"
19801 msgstr ""
19802
19803 #. type: textblock
19804 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
19805 msgid ""
19806 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19807 "used, then any libvirt domain can be used.  However in write mode, only "
19808 "libvirt domains which are shut down can be named here."
19809 msgstr ""
19810
19811 #. type: textblock
19812 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
19813 msgid "Domain UUIDs can be used instead of names."
19814 msgstr ""
19815
19816 #. type: textblock
19817 #: ../fish/guestfish.pod:204
19818 msgid ""
19819 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19820 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19821 "if the I<--format:...> flag was given."
19822 msgstr ""
19823
19824 #. type: =item
19825 #: ../fish/guestfish.pod:208
19826 msgid "B<-D>"
19827 msgstr ""
19828
19829 #. type: =item
19830 #: ../fish/guestfish.pod:210
19831 msgid "B<--no-dest-paths>"
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../fish/guestfish.pod:212
19836 msgid ""
19837 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19838 "to hit the tab key to complete paths on the guest filesystem, but this "
19839 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19840 "allow this feature to be disabled."
19841 msgstr ""
19842
19843 #. type: =item
19844 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
19845 msgid "B<--echo-keys>"
19846 msgstr ""
19847
19848 #. type: textblock
19849 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
19850 msgid ""
19851 "When prompting for keys and passphrases, guestfish normally turns echoing "
19852 "off so you cannot see what you are typing.  If you are not worried about "
19853 "Tempest attacks and there is no one else in the room you can specify this "
19854 "flag to see what you are typing."
19855 msgstr ""
19856
19857 #. type: =item
19858 #: ../fish/guestfish.pod:224
19859 msgid "B<-f file>"
19860 msgstr ""
19861
19862 #. type: =item
19863 #: ../fish/guestfish.pod:226
19864 msgid "B<--file file>"
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../fish/guestfish.pod:228
19869 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19870 msgstr ""
19871
19872 #. type: verbatim
19873 #: ../fish/guestfish.pod:231
19874 #, no-wrap
19875 msgid ""
19876 " #!/usr/bin/guestfish -f\n"
19877 "\n"
19878 msgstr ""
19879
19880 #. type: =item
19881 #: ../fish/guestfish.pod:233
19882 msgid "B<--format=raw|qcow2|..>"
19883 msgstr ""
19884
19885 #. type: =item
19886 #: ../fish/guestfish.pod:235
19887 msgid "B<--format>"
19888 msgstr ""
19889
19890 #. type: textblock
19891 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
19892 msgid ""
19893 "The default for the I<-a> option is to auto-detect the format of the disk "
19894 "image.  Using this forces the disk format for I<-a> options which follow on "
19895 "the command line.  Using I<--format> with no argument switches back to auto-"
19896 "detection for subsequent I<-a> options."
19897 msgstr ""
19898
19899 #. type: verbatim
19900 #: ../fish/guestfish.pod:244
19901 #, no-wrap
19902 msgid ""
19903 " guestfish --format=raw -a disk.img\n"
19904 "\n"
19905 msgstr ""
19906
19907 #. type: textblock
19908 #: ../fish/guestfish.pod:246
19909 msgid "forces raw format (no auto-detection) for C<disk.img>."
19910 msgstr ""
19911
19912 #. type: verbatim
19913 #: ../fish/guestfish.pod:248
19914 #, no-wrap
19915 msgid ""
19916 " guestfish --format=raw -a disk.img --format -a another.img\n"
19917 "\n"
19918 msgstr ""
19919
19920 #. type: textblock
19921 #: ../fish/guestfish.pod:250
19922 msgid ""
19923 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
19924 "detection for C<another.img>."
19925 msgstr ""
19926
19927 #. type: textblock
19928 #: ../fish/guestfish.pod:253
19929 msgid ""
19930 "If you have untrusted raw-format guest disk images, you should use this "
19931 "option to specify the disk format.  This avoids a possible security problem "
19932 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19933 msgstr ""
19934
19935 #. type: =item
19936 #: ../fish/guestfish.pod:258
19937 msgid "B<-i>"
19938 msgstr ""
19939
19940 #. type: =item
19941 #: ../fish/guestfish.pod:260
19942 msgid "B<--inspector>"
19943 msgstr ""
19944
19945 #. type: textblock
19946 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
19947 msgid ""
19948 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19949 "system and mount filesystems as they would be mounted on the real virtual "
19950 "machine."
19951 msgstr ""
19952
19953 #. type: textblock
19954 #: ../fish/guestfish.pod:266
19955 msgid "Typical usage is either:"
19956 msgstr ""
19957
19958 #. type: verbatim
19959 #: ../fish/guestfish.pod:268
19960 #, no-wrap
19961 msgid ""
19962 " guestfish -d myguest -i\n"
19963 "\n"
19964 msgstr ""
19965
19966 #. type: textblock
19967 #: ../fish/guestfish.pod:270
19968 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19969 msgstr ""
19970
19971 #. type: verbatim
19972 #: ../fish/guestfish.pod:272
19973 #, no-wrap
19974 msgid ""
19975 " guestfish --ro -d myguest -i\n"
19976 "\n"
19977 msgstr ""
19978
19979 #. type: textblock
19980 #: ../fish/guestfish.pod:274
19981 msgid "(for active domains, readonly), or specify the block device directly:"
19982 msgstr ""
19983
19984 #. type: verbatim
19985 #: ../fish/guestfish.pod:276
19986 #, no-wrap
19987 msgid ""
19988 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19989 "\n"
19990 msgstr ""
19991
19992 #. type: textblock
19993 #: ../fish/guestfish.pod:278
19994 msgid ""
19995 "Note that the command line syntax changed slightly over older versions of "
19996 "guestfish.  You can still use the old syntax:"
19997 msgstr ""
19998
19999 #. type: verbatim
20000 #: ../fish/guestfish.pod:281
20001 #, no-wrap
20002 msgid ""
20003 " guestfish [--ro] -i disk.img\n"
20004 "\n"
20005 msgstr ""
20006
20007 #. type: verbatim
20008 #: ../fish/guestfish.pod:283
20009 #, no-wrap
20010 msgid ""
20011 " guestfish [--ro] -i libvirt-domain\n"
20012 "\n"
20013 msgstr ""
20014
20015 #. type: textblock
20016 #: ../fish/guestfish.pod:285
20017 msgid ""
20018 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20019 "then using other commands to mount the filesystems that were found."
20020 msgstr ""
20021
20022 #. type: =item
20023 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
20024 msgid "B<--keys-from-stdin>"
20025 msgstr ""
20026
20027 #. type: textblock
20028 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
20029 msgid ""
20030 "Read key or passphrase parameters from stdin.  The default is to try to read "
20031 "passphrases from the user by opening C</dev/tty>."
20032 msgstr ""
20033
20034 #. type: =item
20035 #: ../fish/guestfish.pod:294
20036 msgid "B<--listen>"
20037 msgstr ""
20038
20039 #. type: textblock
20040 #: ../fish/guestfish.pod:296
20041 msgid ""
20042 "Fork into the background and listen for remote commands.  See section L</"
20043 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20044 msgstr ""
20045
20046 #. type: =item
20047 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
20048 msgid "B<--live>"
20049 msgstr ""
20050
20051 #. type: textblock
20052 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
20053 msgid ""
20054 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
20055 "ATTACHING TO RUNNING DAEMONS>)."
20056 msgstr ""
20057
20058 #. type: =item
20059 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
20060 msgid "B<-m dev[:mountpoint[:options]]>"
20061 msgstr ""
20062
20063 #. type: =item
20064 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
20065 msgid "B<--mount dev[:mountpoint[:options]]>"
20066 msgstr ""
20067
20068 #. type: textblock
20069 #: ../fish/guestfish.pod:308
20070 msgid "Mount the named partition or logical volume on the given mountpoint."
20071 msgstr ""
20072
20073 #. type: textblock
20074 #: ../fish/guestfish.pod:310
20075 msgid "If the mountpoint is omitted, it defaults to C</>."
20076 msgstr ""
20077
20078 #. type: textblock
20079 #: ../fish/guestfish.pod:312
20080 msgid "You have to mount something on C</> before most commands will work."
20081 msgstr ""
20082
20083 #. type: textblock
20084 #: ../fish/guestfish.pod:314
20085 msgid ""
20086 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20087 "launched."
20088 msgstr ""
20089
20090 #. type: textblock
20091 #: ../fish/guestfish.pod:317
20092 msgid ""
20093 "If you don't know what filesystems a disk image contains, you can either run "
20094 "guestfish without this option, then list the partitions, filesystems and LVs "
20095 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20096 "commands), or you can use the L<virt-filesystems(1)> program."
20097 msgstr ""
20098
20099 #. type: textblock
20100 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
20101 msgid ""
20102 "The third (and rarely used) part of the mount parameter is the list of mount "
20103 "options used to mount the underlying filesystem.  If this is not given, then "
20104 "the mount options are either the empty string or C<ro> (the latter if the "
20105 "I<--ro> flag is used).  By specifying the mount options, you override this "
20106 "default choice.  Probably the only time you would use this is to enable ACLs "
20107 "and/or extended attributes if the filesystem can support them:"
20108 msgstr ""
20109
20110 #. type: verbatim
20111 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
20112 #, no-wrap
20113 msgid ""
20114 " -m /dev/sda1:/:acl,user_xattr\n"
20115 "\n"
20116 msgstr ""
20117
20118 #. type: textblock
20119 #: ../fish/guestfish.pod:333
20120 msgid "Using this flag is equivalent to using the C<mount-options> command."
20121 msgstr ""
20122
20123 #. type: =item
20124 #: ../fish/guestfish.pod:335
20125 msgid "B<-n>"
20126 msgstr ""
20127
20128 #. type: =item
20129 #: ../fish/guestfish.pod:337
20130 msgid "B<--no-sync>"
20131 msgstr ""
20132
20133 #. type: textblock
20134 #: ../fish/guestfish.pod:339
20135 msgid ""
20136 "Disable autosync.  This is enabled by default.  See the discussion of "
20137 "autosync in the L<guestfs(3)> manpage."
20138 msgstr ""
20139
20140 #. type: =item
20141 #: ../fish/guestfish.pod:342
20142 msgid "B<-N type>"
20143 msgstr ""
20144
20145 #. type: =item
20146 #: ../fish/guestfish.pod:344
20147 msgid "B<--new type>"
20148 msgstr ""
20149
20150 #. type: =item
20151 #: ../fish/guestfish.pod:346
20152 msgid "B<-N help>"
20153 msgstr ""
20154
20155 #. type: textblock
20156 #: ../fish/guestfish.pod:348
20157 msgid ""
20158 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20159 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20160 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20161 "IMAGES> below."
20162 msgstr ""
20163
20164 #. type: =item
20165 #: ../fish/guestfish.pod:353
20166 msgid "B<--progress-bars>"
20167 msgstr ""
20168
20169 #. type: textblock
20170 #: ../fish/guestfish.pod:355
20171 msgid "Enable progress bars, even when guestfish is used non-interactively."
20172 msgstr ""
20173
20174 #. type: textblock
20175 #: ../fish/guestfish.pod:357
20176 msgid ""
20177 "Progress bars are enabled by default when guestfish is used as an "
20178 "interactive shell."
20179 msgstr ""
20180
20181 #. type: =item
20182 #: ../fish/guestfish.pod:360
20183 msgid "B<--no-progress-bars>"
20184 msgstr ""
20185
20186 #. type: textblock
20187 #: ../fish/guestfish.pod:362
20188 msgid "Disable progress bars."
20189 msgstr ""
20190
20191 #. type: =item
20192 #: ../fish/guestfish.pod:364
20193 msgid "B<--remote[=pid]>"
20194 msgstr ""
20195
20196 #. type: textblock
20197 #: ../fish/guestfish.pod:366
20198 msgid ""
20199 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20200 "CONTROL GUESTFISH OVER A SOCKET> below."
20201 msgstr ""
20202
20203 #. type: =item
20204 #: ../fish/guestfish.pod:369
20205 msgid "B<-r>"
20206 msgstr ""
20207
20208 #. type: =item
20209 #: ../fish/guestfish.pod:371
20210 msgid "B<--ro>"
20211 msgstr ""
20212
20213 #. type: textblock
20214 #: ../fish/guestfish.pod:373
20215 msgid ""
20216 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20217 "mounts are done read-only."
20218 msgstr ""
20219
20220 #. type: textblock
20221 #: ../fish/guestfish.pod:376
20222 msgid ""
20223 "The option must always be used if the disk image or virtual machine might be "
20224 "running, and is generally recommended in cases where you don't need write "
20225 "access to the disk."
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fish/guestfish.pod:380
20230 msgid ""
20231 "Note that prepared disk images created with I<-N> are not affected by this "
20232 "option.  Also commands like C<add> are not affected - you have to specify "
20233 "the C<readonly:true> option explicitly if you need it."
20234 msgstr ""
20235
20236 #. type: textblock
20237 #: ../fish/guestfish.pod:384
20238 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20239 msgstr ""
20240
20241 #. type: =item
20242 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
20243 msgid "B<--selinux>"
20244 msgstr ""
20245
20246 #. type: textblock
20247 #: ../fish/guestfish.pod:388
20248 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20249 msgstr ""
20250
20251 #. type: =item
20252 #: ../fish/guestfish.pod:390
20253 msgid "B<-v>"
20254 msgstr ""
20255
20256 #. type: =item
20257 #: ../fish/guestfish.pod:392
20258 msgid "B<--verbose>"
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../fish/guestfish.pod:394
20263 msgid ""
20264 "Enable very verbose messages.  This is particularly useful if you find a bug."
20265 msgstr ""
20266
20267 #. type: =item
20268 #: ../fish/guestfish.pod:397
20269 msgid "B<-V>"
20270 msgstr ""
20271
20272 #. type: =item
20273 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
20274 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
20275 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
20276 msgid "B<--version>"
20277 msgstr ""
20278
20279 #. type: textblock
20280 #: ../fish/guestfish.pod:401
20281 msgid "Display the guestfish / libguestfs version number and exit."
20282 msgstr ""
20283
20284 #. type: =item
20285 #: ../fish/guestfish.pod:403
20286 msgid "B<-w>"
20287 msgstr ""
20288
20289 #. type: =item
20290 #: ../fish/guestfish.pod:405
20291 msgid "B<--rw>"
20292 msgstr ""
20293
20294 #. type: textblock
20295 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
20296 msgid ""
20297 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20298 "mounts are done read-write."
20299 msgstr ""
20300
20301 #. type: textblock
20302 #: ../fish/guestfish.pod:410
20303 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20304 msgstr ""
20305
20306 #. type: =item
20307 #: ../fish/guestfish.pod:412
20308 msgid "B<-x>"
20309 msgstr ""
20310
20311 #. type: textblock
20312 #: ../fish/guestfish.pod:414
20313 msgid "Echo each command before executing it."
20314 msgstr ""
20315
20316 #. type: =head1
20317 #: ../fish/guestfish.pod:418
20318 msgid "COMMANDS ON COMMAND LINE"
20319 msgstr ""
20320
20321 #. type: textblock
20322 #: ../fish/guestfish.pod:420
20323 msgid ""
20324 "Any additional (non-option) arguments are treated as commands to execute."
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../fish/guestfish.pod:423
20329 msgid ""
20330 "Commands to execute should be separated by a colon (C<:>), where the colon "
20331 "is a separate parameter.  Thus:"
20332 msgstr ""
20333
20334 #. type: verbatim
20335 #: ../fish/guestfish.pod:426
20336 #, no-wrap
20337 msgid ""
20338 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20339 "\n"
20340 msgstr ""
20341
20342 #. type: textblock
20343 #: ../fish/guestfish.pod:428
20344 msgid ""
20345 "If there are no additional arguments, then we enter a shell, either an "
20346 "interactive shell with a prompt (if the input is a terminal) or a non-"
20347 "interactive shell."
20348 msgstr ""
20349
20350 #. type: textblock
20351 #: ../fish/guestfish.pod:432
20352 msgid ""
20353 "In either command line mode or non-interactive shell, the first command that "
20354 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20355 "prompt) if a command fails, you can continue to enter commands."
20356 msgstr ""
20357
20358 #. type: =head1
20359 #: ../fish/guestfish.pod:437
20360 msgid "USING launch (OR run)"
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fish/guestfish.pod:439
20365 msgid ""
20366 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20367 "then launch it, then mount any disks you need, and finally issue actions/"
20368 "commands.  So the general order of the day is:"
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../fish/guestfish.pod:447
20373 msgid "add or -a/--add"
20374 msgstr ""
20375
20376 #. type: textblock
20377 #: ../fish/guestfish.pod:451
20378 msgid "launch (aka run)"
20379 msgstr ""
20380
20381 #. type: textblock
20382 #: ../fish/guestfish.pod:455
20383 msgid "mount or -m/--mount"
20384 msgstr ""
20385
20386 #. type: textblock
20387 #: ../fish/guestfish.pod:459
20388 msgid "any other commands"
20389 msgstr ""
20390
20391 #. type: textblock
20392 #: ../fish/guestfish.pod:463
20393 msgid ""
20394 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20395 "guest before mounting or performing any other commands."
20396 msgstr ""
20397
20398 #. type: textblock
20399 #: ../fish/guestfish.pod:466
20400 msgid ""
20401 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20402 "I<--new> options were given then C<run> is done automatically, simply "
20403 "because guestfish can't perform the action you asked for without doing this."
20404 msgstr ""
20405
20406 #. type: =head1
20407 #: ../fish/guestfish.pod:471
20408 msgid "OPENING DISKS FOR READ AND WRITE"
20409 msgstr ""
20410
20411 #. type: textblock
20412 #: ../fish/guestfish.pod:473
20413 msgid ""
20414 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20415 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20416 "I<-i> and I<-m> open disk images read-only or for writing."
20417 msgstr ""
20418
20419 #. type: textblock
20420 #: ../fish/guestfish.pod:478
20421 msgid ""
20422 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20423 "opening disk images supplied on the command line for write.  To open a disk "
20424 "image read-only you have to do I<-a image --ro>."
20425 msgstr ""
20426
20427 #. type: textblock
20428 #: ../fish/guestfish.pod:482
20429 msgid ""
20430 "This matters: If you accidentally open a live VM disk image writable then "
20431 "you will cause irreversible disk corruption."
20432 msgstr ""
20433
20434 #. type: textblock
20435 #: ../fish/guestfish.pod:485
20436 msgid ""
20437 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
20438 "images will be opened read-only.  You will have to either specify "
20439 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20440 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20441 "access for disk images specified by those other command line options."
20442 msgstr ""
20443
20444 #. type: textblock
20445 #: ../fish/guestfish.pod:492
20446 msgid ""
20447 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20448 "which does nothing (it is already the default).  However it is highly "
20449 "recommended that you use this option to indicate that you need write access, "
20450 "and prepare your scripts for the day when this option will be required for "
20451 "write access."
20452 msgstr ""
20453
20454 #. type: textblock
20455 #: ../fish/guestfish.pod:498
20456 msgid ""
20457 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20458 "other libguestfs program apart from guestfish and guestmount."
20459 msgstr ""
20460
20461 #. type: =head1
20462 #: ../fish/guestfish.pod:501
20463 msgid "QUOTING"
20464 msgstr ""
20465
20466 #. type: textblock
20467 #: ../fish/guestfish.pod:503
20468 msgid ""
20469 "You can quote ordinary parameters using either single or double quotes.  For "
20470 "example:"
20471 msgstr ""
20472
20473 #. type: verbatim
20474 #: ../fish/guestfish.pod:506
20475 #, no-wrap
20476 msgid ""
20477 " add \"file with a space.img\"\n"
20478 "\n"
20479 msgstr ""
20480
20481 #. type: verbatim
20482 #: ../fish/guestfish.pod:508
20483 #, no-wrap
20484 msgid ""
20485 " rm '/file name'\n"
20486 "\n"
20487 msgstr ""
20488
20489 #. type: verbatim
20490 #: ../fish/guestfish.pod:510
20491 #, no-wrap
20492 msgid ""
20493 " rm '/\"'\n"
20494 "\n"
20495 msgstr ""
20496
20497 #. type: textblock
20498 #: ../fish/guestfish.pod:512
20499 msgid ""
20500 "A few commands require a list of strings to be passed.  For these, use a "
20501 "whitespace-separated list, enclosed in quotes.  Strings containing "
20502 "whitespace to be passed through must be enclosed in single quotes.  A "
20503 "literal single quote must be escaped with a backslash."
20504 msgstr ""
20505
20506 #. type: verbatim
20507 #: ../fish/guestfish.pod:517
20508 #, no-wrap
20509 msgid ""
20510 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20511 " command \"/bin/echo 'foo      bar'\"\n"
20512 " command \"/bin/echo \\'foo\\'\"\n"
20513 "\n"
20514 msgstr ""
20515
20516 #. type: =head1
20517 #: ../fish/guestfish.pod:521
20518 msgid "OPTIONAL ARGUMENTS"
20519 msgstr ""
20520
20521 #. type: textblock
20522 #: ../fish/guestfish.pod:523
20523 msgid ""
20524 "Some commands take optional arguments.  These arguments appear in this "
20525 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20526 msgstr ""
20527
20528 #. type: verbatim
20529 #: ../fish/guestfish.pod:527
20530 #, no-wrap
20531 msgid ""
20532 " add-drive-opts filename\n"
20533 "\n"
20534 msgstr ""
20535
20536 #. type: verbatim
20537 #: ../fish/guestfish.pod:529
20538 #, no-wrap
20539 msgid ""
20540 " add-drive-opts filename readonly:true\n"
20541 "\n"
20542 msgstr ""
20543
20544 #. type: verbatim
20545 #: ../fish/guestfish.pod:531
20546 #, no-wrap
20547 msgid ""
20548 " add-drive-opts filename format:qcow2 readonly:false\n"
20549 "\n"
20550 msgstr ""
20551
20552 #. type: textblock
20553 #: ../fish/guestfish.pod:533
20554 msgid ""
20555 "Each optional argument can appear at most once.  All optional arguments must "
20556 "appear after the required ones."
20557 msgstr ""
20558
20559 #. type: =head1
20560 #: ../fish/guestfish.pod:536
20561 msgid "NUMBERS"
20562 msgstr ""
20563
20564 #. type: textblock
20565 #: ../fish/guestfish.pod:538
20566 msgid ""
20567 "This section applies to all commands which can take integers as parameters."
20568 msgstr ""
20569
20570 #. type: =head2
20571 #: ../fish/guestfish.pod:541
20572 msgid "SIZE SUFFIX"
20573 msgstr ""
20574
20575 #. type: textblock
20576 #: ../fish/guestfish.pod:543
20577 msgid ""
20578 "When the command takes a parameter measured in bytes, you can use one of the "
20579 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20580 msgstr ""
20581
20582 #. type: =item
20583 #: ../fish/guestfish.pod:549
20584 msgid "B<k> or B<K> or B<KiB>"
20585 msgstr ""
20586
20587 #. type: textblock
20588 #: ../fish/guestfish.pod:551
20589 msgid "The size in kilobytes (multiplied by 1024)."
20590 msgstr ""
20591
20592 #. type: =item
20593 #: ../fish/guestfish.pod:553
20594 msgid "B<KB>"
20595 msgstr ""
20596
20597 #. type: textblock
20598 #: ../fish/guestfish.pod:555
20599 msgid "The size in SI 1000 byte units."
20600 msgstr ""
20601
20602 #. type: =item
20603 #: ../fish/guestfish.pod:557
20604 msgid "B<M> or B<MiB>"
20605 msgstr ""
20606
20607 #. type: textblock
20608 #: ../fish/guestfish.pod:559
20609 msgid "The size in megabytes (multiplied by 1048576)."
20610 msgstr ""
20611
20612 #. type: =item
20613 #: ../fish/guestfish.pod:561
20614 msgid "B<MB>"
20615 msgstr ""
20616
20617 #. type: textblock
20618 #: ../fish/guestfish.pod:563
20619 msgid "The size in SI 1000000 byte units."
20620 msgstr ""
20621
20622 #. type: =item
20623 #: ../fish/guestfish.pod:565
20624 msgid "B<G> or B<GiB>"
20625 msgstr ""
20626
20627 #. type: textblock
20628 #: ../fish/guestfish.pod:567
20629 msgid "The size in gigabytes (multiplied by 2**30)."
20630 msgstr ""
20631
20632 #. type: =item
20633 #: ../fish/guestfish.pod:569
20634 msgid "B<GB>"
20635 msgstr ""
20636
20637 #. type: textblock
20638 #: ../fish/guestfish.pod:571
20639 msgid "The size in SI 10**9 byte units."
20640 msgstr ""
20641
20642 #. type: =item
20643 #: ../fish/guestfish.pod:573
20644 msgid "B<T> or B<TiB>"
20645 msgstr ""
20646
20647 #. type: textblock
20648 #: ../fish/guestfish.pod:575
20649 msgid "The size in terabytes (multiplied by 2**40)."
20650 msgstr ""
20651
20652 #. type: =item
20653 #: ../fish/guestfish.pod:577
20654 msgid "B<TB>"
20655 msgstr ""
20656
20657 #. type: textblock
20658 #: ../fish/guestfish.pod:579
20659 msgid "The size in SI 10**12 byte units."
20660 msgstr ""
20661
20662 #. type: =item
20663 #: ../fish/guestfish.pod:581
20664 msgid "B<P> or B<PiB>"
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../fish/guestfish.pod:583
20669 msgid "The size in petabytes (multiplied by 2**50)."
20670 msgstr ""
20671
20672 #. type: =item
20673 #: ../fish/guestfish.pod:585
20674 msgid "B<PB>"
20675 msgstr ""
20676
20677 #. type: textblock
20678 #: ../fish/guestfish.pod:587
20679 msgid "The size in SI 10**15 byte units."
20680 msgstr ""
20681
20682 #. type: =item
20683 #: ../fish/guestfish.pod:589
20684 msgid "B<E> or B<EiB>"
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../fish/guestfish.pod:591
20689 msgid "The size in exabytes (multiplied by 2**60)."
20690 msgstr ""
20691
20692 #. type: =item
20693 #: ../fish/guestfish.pod:593
20694 msgid "B<EB>"
20695 msgstr ""
20696
20697 #. type: textblock
20698 #: ../fish/guestfish.pod:595
20699 msgid "The size in SI 10**18 byte units."
20700 msgstr ""
20701
20702 #. type: =item
20703 #: ../fish/guestfish.pod:597
20704 msgid "B<Z> or B<ZiB>"
20705 msgstr ""
20706
20707 #. type: textblock
20708 #: ../fish/guestfish.pod:599
20709 msgid "The size in zettabytes (multiplied by 2**70)."
20710 msgstr ""
20711
20712 #. type: =item
20713 #: ../fish/guestfish.pod:601
20714 msgid "B<ZB>"
20715 msgstr ""
20716
20717 #. type: textblock
20718 #: ../fish/guestfish.pod:603
20719 msgid "The size in SI 10**21 byte units."
20720 msgstr ""
20721
20722 #. type: =item
20723 #: ../fish/guestfish.pod:605
20724 msgid "B<Y> or B<YiB>"
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../fish/guestfish.pod:607
20729 msgid "The size in yottabytes (multiplied by 2**80)."
20730 msgstr ""
20731
20732 #. type: =item
20733 #: ../fish/guestfish.pod:609
20734 msgid "B<YB>"
20735 msgstr ""
20736
20737 #. type: textblock
20738 #: ../fish/guestfish.pod:611
20739 msgid "The size in SI 10**24 byte units."
20740 msgstr ""
20741
20742 #. type: verbatim
20743 #: ../fish/guestfish.pod:617
20744 #, no-wrap
20745 msgid ""
20746 " truncate-size /file 1G\n"
20747 "\n"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:619
20752 msgid "would truncate the file to 1 gigabyte."
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../fish/guestfish.pod:621
20757 msgid ""
20758 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20759 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20760 "suffix will probably not do what you expect."
20761 msgstr ""
20762
20763 #. type: =head2
20764 #: ../fish/guestfish.pod:625
20765 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20766 msgstr ""
20767
20768 #. type: textblock
20769 #: ../fish/guestfish.pod:627
20770 msgid ""
20771 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20772 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20773 msgstr ""
20774
20775 #. type: verbatim
20776 #: ../fish/guestfish.pod:630
20777 #, no-wrap
20778 msgid ""
20779 " 1234      decimal number 1234\n"
20780 " 02322     octal number, equivalent to decimal 1234\n"
20781 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20782 "\n"
20783 msgstr ""
20784
20785 #. type: textblock
20786 #: ../fish/guestfish.pod:634
20787 msgid ""
20788 "When using the C<chmod> command, you almost always want to specify an octal "
20789 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20790 "L<chmod(1)> program):"
20791 msgstr ""
20792
20793 #. type: verbatim
20794 #: ../fish/guestfish.pod:638
20795 #, no-wrap
20796 msgid ""
20797 " chmod 0777 /public  # OK\n"
20798 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20799 "\n"
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../fish/guestfish.pod:641
20804 msgid ""
20805 "Commands that return numbers usually print them in decimal, but some "
20806 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20807 "octal, preceeded by C<0>)."
20808 msgstr ""
20809
20810 #. type: =head1
20811 #: ../fish/guestfish.pod:645
20812 msgid "WILDCARDS AND GLOBBING"
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../fish/guestfish.pod:647
20817 msgid ""
20818 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20819 "(globbing) by default.  So for example the following will not do what you "
20820 "expect:"
20821 msgstr ""
20822
20823 #. type: verbatim
20824 #: ../fish/guestfish.pod:651
20825 #, no-wrap
20826 msgid ""
20827 " rm-rf /home/*\n"
20828 "\n"
20829 msgstr ""
20830
20831 #. type: textblock
20832 #: ../fish/guestfish.pod:653
20833 msgid ""
20834 "Assuming you don't have a directory called literally C</home/*> then the "
20835 "above command will return an error."
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../fish/guestfish.pod:656
20840 msgid "To perform wildcard expansion, use the C<glob> command."
20841 msgstr ""
20842
20843 #. type: verbatim
20844 #: ../fish/guestfish.pod:658
20845 #, no-wrap
20846 msgid ""
20847 " glob rm-rf /home/*\n"
20848 "\n"
20849 msgstr ""
20850
20851 #. type: textblock
20852 #: ../fish/guestfish.pod:660
20853 msgid ""
20854 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20855 "many times), equivalent to:"
20856 msgstr ""
20857
20858 #. type: verbatim
20859 #: ../fish/guestfish.pod:663
20860 #, no-wrap
20861 msgid ""
20862 " rm-rf /home/jim\n"
20863 " rm-rf /home/joe\n"
20864 " rm-rf /home/mary\n"
20865 "\n"
20866 msgstr ""
20867
20868 #. type: textblock
20869 #: ../fish/guestfish.pod:667
20870 msgid "C<glob> only works on simple guest paths and not on device names."
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../fish/guestfish.pod:669
20875 msgid ""
20876 "If you have several parameters, each containing a wildcard, then glob will "
20877 "perform a Cartesian product."
20878 msgstr ""
20879
20880 #. type: =head1
20881 #: ../fish/guestfish.pod:672
20882 msgid "COMMENTS"
20883 msgstr ""
20884
20885 #. type: textblock
20886 #: ../fish/guestfish.pod:674
20887 msgid ""
20888 "Any line which starts with a I<#> character is treated as a comment and "
20889 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20890 "a command.  For example:"
20891 msgstr ""
20892
20893 #. type: verbatim
20894 #: ../fish/guestfish.pod:678
20895 #, no-wrap
20896 msgid ""
20897 " # this is a comment\n"
20898 "         # this is a comment\n"
20899 " foo # NOT a comment\n"
20900 "\n"
20901 msgstr ""
20902
20903 #. type: textblock
20904 #: ../fish/guestfish.pod:682
20905 msgid "Blank lines are also ignored."
20906 msgstr ""
20907
20908 #. type: =head1
20909 #: ../fish/guestfish.pod:684
20910 msgid "RUNNING COMMANDS LOCALLY"
20911 msgstr ""
20912
20913 #. type: textblock
20914 #: ../fish/guestfish.pod:686
20915 msgid ""
20916 "Any line which starts with a I<!> character is treated as a command sent to "
20917 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20918 msgstr ""
20919
20920 #. type: verbatim
20921 #: ../fish/guestfish.pod:690
20922 #, no-wrap
20923 msgid ""
20924 " !mkdir local\n"
20925 " tgz-out /remote local/remote-data.tar.gz\n"
20926 "\n"
20927 msgstr ""
20928
20929 #. type: textblock
20930 #: ../fish/guestfish.pod:693
20931 msgid ""
20932 "will create a directory C<local> on the host, and then export the contents "
20933 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20934 "(See C<tgz-out>)."
20935 msgstr ""
20936
20937 #. type: textblock
20938 #: ../fish/guestfish.pod:697
20939 msgid ""
20940 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20941 "effect, due to the way that subprocesses work in Unix."
20942 msgstr ""
20943
20944 #. type: =head2
20945 #: ../fish/guestfish.pod:700
20946 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20947 msgstr ""
20948
20949 #. type: textblock
20950 #: ../fish/guestfish.pod:702
20951 msgid ""
20952 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20953 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20954 "and executed as guestfish commands."
20955 msgstr ""
20956
20957 #. type: textblock
20958 #: ../fish/guestfish.pod:706
20959 msgid ""
20960 "Thus you can use shell script to construct arbitrary guestfish commands "
20961 "which are then parsed by guestfish."
20962 msgstr ""
20963
20964 #. type: textblock
20965 #: ../fish/guestfish.pod:709
20966 msgid ""
20967 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20968 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20969 "if we use a shell script to create the guestfish commands for us:"
20970 msgstr ""
20971
20972 #. type: verbatim
20973 #: ../fish/guestfish.pod:714
20974 #, no-wrap
20975 msgid ""
20976 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20977 "\n"
20978 msgstr ""
20979
20980 #. type: textblock
20981 #: ../fish/guestfish.pod:716
20982 msgid "or with names like C</foo.001>:"
20983 msgstr ""
20984
20985 #. type: verbatim
20986 #: ../fish/guestfish.pod:718
20987 #, no-wrap
20988 msgid ""
20989 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20990 "\n"
20991 msgstr ""
20992
20993 #. type: textblock
20994 #: ../fish/guestfish.pod:720
20995 msgid ""
20996 "When using guestfish interactively it can be helpful to just run the shell "
20997 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20998 "ordinary I<!> local command), see what guestfish commands it would run, and "
20999 "when you are happy with those prepend the C<E<lt>> character to run the "
21000 "guestfish commands for real."
21001 msgstr ""
21002
21003 #. type: =head1
21004 #: ../fish/guestfish.pod:726
21005 msgid "PIPES"
21006 msgstr ""
21007
21008 #. type: textblock
21009 #: ../fish/guestfish.pod:728
21010 msgid ""
21011 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21012 "command (a guestfish command) to the second command (any host command).  For "
21013 "example:"
21014 msgstr ""
21015
21016 #. type: verbatim
21017 #: ../fish/guestfish.pod:732
21018 #, no-wrap
21019 msgid ""
21020 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21021 "\n"
21022 msgstr ""
21023
21024 #. type: textblock
21025 #: ../fish/guestfish.pod:734
21026 msgid ""
21027 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21028 "program).  The above command would list all accounts in the guest filesystem "
21029 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
21030 msgstr ""
21031
21032 #. type: verbatim
21033 #: ../fish/guestfish.pod:739
21034 #, no-wrap
21035 msgid ""
21036 " hexdump /bin/ls | head\n"
21037 " list-devices | tail -1\n"
21038 " tgz-out / - | tar ztf -\n"
21039 "\n"
21040 msgstr ""
21041
21042 #. type: textblock
21043 #: ../fish/guestfish.pod:743
21044 msgid ""
21045 "The space before the pipe symbol is required, any space after the pipe "
21046 "symbol is optional.  Everything after the pipe symbol is just passed "
21047 "straight to the host shell, so it can contain redirections, globs and "
21048 "anything else that makes sense on the host side."
21049 msgstr ""
21050
21051 #. type: textblock
21052 #: ../fish/guestfish.pod:748
21053 msgid ""
21054 "To use a literal argument which begins with a pipe symbol, you have to quote "
21055 "it, eg:"
21056 msgstr ""
21057
21058 #. type: verbatim
21059 #: ../fish/guestfish.pod:751
21060 #, no-wrap
21061 msgid ""
21062 " echo \"|\"\n"
21063 "\n"
21064 msgstr ""
21065
21066 #. type: =head1
21067 #: ../fish/guestfish.pod:753
21068 msgid "HOME DIRECTORIES"
21069 msgstr ""
21070
21071 #. type: textblock
21072 #: ../fish/guestfish.pod:755
21073 msgid ""
21074 "If a parameter starts with the character C<~> then the tilde may be expanded "
21075 "as a home directory path (either C<~> for the current user's home directory, "
21076 "or C<~user> for another user)."
21077 msgstr ""
21078
21079 #. type: textblock
21080 #: ../fish/guestfish.pod:759
21081 msgid ""
21082 "Note that home directory expansion happens for users known I<on the host>, "
21083 "not in the guest filesystem."
21084 msgstr ""
21085
21086 #. type: textblock
21087 #: ../fish/guestfish.pod:762
21088 msgid ""
21089 "To use a literal argument which begins with a tilde, you have to quote it, "
21090 "eg:"
21091 msgstr ""
21092
21093 #. type: verbatim
21094 #: ../fish/guestfish.pod:765
21095 #, no-wrap
21096 msgid ""
21097 " echo \"~\"\n"
21098 "\n"
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../fish/guestfish.pod:769
21103 msgid ""
21104 "Libguestfs has some support for Linux guests encrypted according to the "
21105 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21106 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21107 "LUKS is supported."
21108 msgstr ""
21109
21110 #. type: textblock
21111 #: ../fish/guestfish.pod:774
21112 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21113 msgstr ""
21114
21115 #. type: verbatim
21116 #: ../fish/guestfish.pod:776
21117 #, no-wrap
21118 msgid ""
21119 " ><fs> vfs-type /dev/sda2\n"
21120 " crypto_LUKS\n"
21121 "\n"
21122 msgstr ""
21123
21124 #. type: textblock
21125 #: ../fish/guestfish.pod:779
21126 msgid ""
21127 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21128 "device called C</dev/mapper/luksdev>."
21129 msgstr ""
21130
21131 #. type: verbatim
21132 #: ../fish/guestfish.pod:782
21133 #, no-wrap
21134 msgid ""
21135 " ><fs> luks-open /dev/sda2 luksdev\n"
21136 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21137 "\n"
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../fish/guestfish.pod:785
21142 msgid ""
21143 "Finally you have to tell LVM to scan for volume groups on the newly created "
21144 "mapper device:"
21145 msgstr ""
21146
21147 #. type: verbatim
21148 #: ../fish/guestfish.pod:788
21149 #, no-wrap
21150 msgid ""
21151 " vgscan\n"
21152 " vg-activate-all true\n"
21153 "\n"
21154 msgstr ""
21155
21156 #. type: textblock
21157 #: ../fish/guestfish.pod:791
21158 msgid "The logical volume(s) can now be mounted in the usual way."
21159 msgstr ""
21160
21161 #. type: textblock
21162 #: ../fish/guestfish.pod:793
21163 msgid ""
21164 "Before closing a LUKS device you must unmount any logical volumes on it and "
21165 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21166 "one.  Then you can close the mapper device:"
21167 msgstr ""
21168
21169 #. type: verbatim
21170 #: ../fish/guestfish.pod:797
21171 #, no-wrap
21172 msgid ""
21173 " vg-activate false /dev/VG\n"
21174 " luks-close /dev/mapper/luksdev\n"
21175 "\n"
21176 msgstr ""
21177
21178 #. type: =head1
21179 #: ../fish/guestfish.pod:800
21180 msgid "WINDOWS PATHS"
21181 msgstr ""
21182
21183 #. type: textblock
21184 #: ../fish/guestfish.pod:802
21185 msgid ""
21186 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21187 "letters and paths (with some limitations).  The following commands are "
21188 "equivalent:"
21189 msgstr ""
21190
21191 #. type: verbatim
21192 #: ../fish/guestfish.pod:806
21193 #, no-wrap
21194 msgid ""
21195 " file /WINDOWS/system32/config/system.LOG\n"
21196 "\n"
21197 msgstr ""
21198
21199 #. type: verbatim
21200 #: ../fish/guestfish.pod:808
21201 #, no-wrap
21202 msgid ""
21203 " file win:\\windows\\system32\\config\\system.log\n"
21204 "\n"
21205 msgstr ""
21206
21207 #. type: verbatim
21208 #: ../fish/guestfish.pod:810
21209 #, no-wrap
21210 msgid ""
21211 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21212 "\n"
21213 msgstr ""
21214
21215 #. type: textblock
21216 #: ../fish/guestfish.pod:812
21217 msgid ""
21218 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21219 "where the drive is mounted, prepending that to the path, changing all "
21220 "backslash characters to forward slash, then resolving the result using L</"
21221 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21222 "the parameter might be rewritten like this:"
21223 msgstr ""
21224
21225 #. type: verbatim
21226 #: ../fish/guestfish.pod:818
21227 #, no-wrap
21228 msgid ""
21229 " win:e:\\foo\\bar => /e/FOO/bar\n"
21230 "\n"
21231 msgstr ""
21232
21233 #. type: textblock
21234 #: ../fish/guestfish.pod:820
21235 msgid "This only works in argument positions that expect a path."
21236 msgstr ""
21237
21238 #. type: =head1
21239 #: ../fish/guestfish.pod:822
21240 msgid "UPLOADING AND DOWNLOADING FILES"
21241 msgstr ""
21242
21243 #. type: textblock
21244 #: ../fish/guestfish.pod:824
21245 msgid ""
21246 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21247 "others which upload from or download to a local file, you can use the "
21248 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21249 msgstr ""
21250
21251 #. type: verbatim
21252 #: ../fish/guestfish.pod:828
21253 #, no-wrap
21254 msgid ""
21255 " upload - /foo\n"
21256 "\n"
21257 msgstr ""
21258
21259 #. type: textblock
21260 #: ../fish/guestfish.pod:830
21261 msgid ""
21262 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21263 msgstr ""
21264
21265 #. type: verbatim
21266 #: ../fish/guestfish.pod:833
21267 #, no-wrap
21268 msgid ""
21269 " tar-out /etc - | tar tf -\n"
21270 "\n"
21271 msgstr ""
21272
21273 #. type: textblock
21274 #: ../fish/guestfish.pod:835
21275 msgid ""
21276 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21277 "command (see L</PIPES>)."
21278 msgstr ""
21279
21280 #. type: textblock
21281 #: ../fish/guestfish.pod:838
21282 msgid ""
21283 "When using C<-> to read from stdin, the input is read up to the end of "
21284 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21285 "some arbitrary end marker:"
21286 msgstr ""
21287
21288 #. type: verbatim
21289 #: ../fish/guestfish.pod:842
21290 #, no-wrap
21291 msgid ""
21292 " upload -<<END /foo\n"
21293 " input line 1\n"
21294 " input line 2\n"
21295 " input line 3\n"
21296 " END\n"
21297 "\n"
21298 msgstr ""
21299
21300 #. type: textblock
21301 #: ../fish/guestfish.pod:848
21302 msgid ""
21303 "Any string of characters can be used instead of C<END>.  The end marker must "
21304 "appear on a line of its own, without any preceeding or following characters "
21305 "(not even spaces)."
21306 msgstr ""
21307
21308 #. type: textblock
21309 #: ../fish/guestfish.pod:852
21310 msgid ""
21311 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21312 "upload local files (so-called \"FileIn\" parameters in the generator)."
21313 msgstr ""
21314
21315 #. type: =head1
21316 #: ../fish/guestfish.pod:855
21317 msgid "EXIT ON ERROR BEHAVIOUR"
21318 msgstr ""
21319
21320 #. type: textblock
21321 #: ../fish/guestfish.pod:857
21322 msgid ""
21323 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21324 "taking commands from a human over a tty), and will exit on the first error "
21325 "in non-interactive mode (scripts, commands given on the command line)."
21326 msgstr ""
21327
21328 #. type: textblock
21329 #: ../fish/guestfish.pod:862
21330 msgid ""
21331 "If you prefix a command with a I<-> character, then that command will not "
21332 "cause guestfish to exit, even if that (one) command returns an error."
21333 msgstr ""
21334
21335 #. type: =head1
21336 #: ../fish/guestfish.pod:866
21337 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21338 msgstr ""
21339
21340 #. type: textblock
21341 #: ../fish/guestfish.pod:868
21342 msgid ""
21343 "Guestfish can be remote-controlled over a socket.  This is useful "
21344 "particularly in shell scripts where you want to make several different "
21345 "changes to a filesystem, but you don't want the overhead of starting up a "
21346 "guestfish process each time."
21347 msgstr ""
21348
21349 #. type: textblock
21350 #: ../fish/guestfish.pod:873
21351 msgid "Start a guestfish server process using:"
21352 msgstr ""
21353
21354 #. type: verbatim
21355 #: ../fish/guestfish.pod:875
21356 #, no-wrap
21357 msgid ""
21358 " eval \"`guestfish --listen`\"\n"
21359 "\n"
21360 msgstr ""
21361
21362 #. type: textblock
21363 #: ../fish/guestfish.pod:877
21364 msgid "and then send it commands by doing:"
21365 msgstr ""
21366
21367 #. type: verbatim
21368 #: ../fish/guestfish.pod:879
21369 #, no-wrap
21370 msgid ""
21371 " guestfish --remote cmd [...]\n"
21372 "\n"
21373 msgstr ""
21374
21375 #. type: textblock
21376 #: ../fish/guestfish.pod:881
21377 msgid "To cause the server to exit, send it the exit command:"
21378 msgstr ""
21379
21380 #. type: verbatim
21381 #: ../fish/guestfish.pod:883
21382 #, no-wrap
21383 msgid ""
21384 " guestfish --remote exit\n"
21385 "\n"
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fish/guestfish.pod:885
21390 msgid ""
21391 "Note that the server will normally exit if there is an error in a command.  "
21392 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21393 "BEHAVIOUR>."
21394 msgstr ""
21395
21396 #. type: =head2
21397 #: ../fish/guestfish.pod:889
21398 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21399 msgstr ""
21400
21401 #. type: textblock
21402 #: ../fish/guestfish.pod:891
21403 msgid ""
21404 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21405 "is how the I<--remote> option knows where to send the commands.  You can "
21406 "have several guestfish listener processes running using:"
21407 msgstr ""
21408
21409 #. type: verbatim
21410 #: ../fish/guestfish.pod:895
21411 #, no-wrap
21412 msgid ""
21413 " eval \"`guestfish --listen`\"\n"
21414 " pid1=$GUESTFISH_PID\n"
21415 " eval \"`guestfish --listen`\"\n"
21416 " pid2=$GUESTFISH_PID\n"
21417 " ...\n"
21418 " guestfish --remote=$pid1 cmd\n"
21419 " guestfish --remote=$pid2 cmd\n"
21420 "\n"
21421 msgstr ""
21422
21423 #. type: =head2
21424 #: ../fish/guestfish.pod:903
21425 msgid "REMOTE CONTROL AND CSH"
21426 msgstr ""
21427
21428 #. type: textblock
21429 #: ../fish/guestfish.pod:905
21430 msgid ""
21431 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21432 "option:"
21433 msgstr ""
21434
21435 #. type: verbatim
21436 #: ../fish/guestfish.pod:908
21437 #, no-wrap
21438 msgid ""
21439 " eval \"`guestfish --listen --csh`\"\n"
21440 "\n"
21441 msgstr ""
21442
21443 #. type: =head2
21444 #: ../fish/guestfish.pod:910
21445 msgid "REMOTE CONTROL DETAILS"
21446 msgstr ""
21447
21448 #. type: textblock
21449 #: ../fish/guestfish.pod:912
21450 msgid ""
21451 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21452 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21453 "and C<$PID> is the process ID of the server."
21454 msgstr ""
21455
21456 #. type: textblock
21457 #: ../fish/guestfish.pod:916
21458 msgid "Guestfish client and server versions must match exactly."
21459 msgstr ""
21460
21461 #. type: =head1
21462 #: ../fish/guestfish.pod:918
21463 msgid "PREPARED DISK IMAGES"
21464 msgstr ""
21465
21466 #. type: textblock
21467 #: ../fish/guestfish.pod:920
21468 msgid ""
21469 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21470 "preformatted disk images that guestfish can make for you to save typing.  "
21471 "This is particularly useful for testing purposes.  This option is used "
21472 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21473 "can be mixed with I<-a>)."
21474 msgstr ""
21475
21476 #. type: textblock
21477 #: ../fish/guestfish.pod:926
21478 msgid ""
21479 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21480 "the second and so on.  Existing files in the current directory are "
21481 "I<overwritten>."
21482 msgstr ""
21483
21484 #. type: textblock
21485 #: ../fish/guestfish.pod:930
21486 msgid ""
21487 "The type briefly describes how the disk should be sized, partitioned, how "
21488 "filesystem(s) should be created, and how content should be added.  "
21489 "Optionally the type can be followed by extra parameters, separated by C<:> "
21490 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21491 "allocated disk, containing a single partition, with the partition formatted "
21492 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21493 "disk instead."
21494 msgstr ""
21495
21496 #. type: textblock
21497 #: ../fish/guestfish.pod:938
21498 msgid "To list the available types and any extra parameters they take, run:"
21499 msgstr ""
21500
21501 #. type: textblock
21502 #: ../fish/guestfish.pod:942
21503 msgid ""
21504 "Note that the prepared filesystem is not mounted.  You would usually have to "
21505 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21506 msgstr ""
21507
21508 #. type: textblock
21509 #: ../fish/guestfish.pod:946
21510 msgid ""
21511 "If any I<-N> or I<--new> options are given, the guest is automatically "
21512 "launched."
21513 msgstr ""
21514
21515 #. type: textblock
21516 #: ../fish/guestfish.pod:951
21517 msgid "Create a 100MB disk with an ext4-formatted partition:"
21518 msgstr ""
21519
21520 #. type: verbatim
21521 #: ../fish/guestfish.pod:953
21522 #, no-wrap
21523 msgid ""
21524 " guestfish -N fs:ext4\n"
21525 "\n"
21526 msgstr ""
21527
21528 #. type: textblock
21529 #: ../fish/guestfish.pod:955
21530 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21531 msgstr ""
21532
21533 #. type: verbatim
21534 #: ../fish/guestfish.pod:957
21535 #, no-wrap
21536 msgid ""
21537 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21538 "\n"
21539 msgstr ""
21540
21541 #. type: textblock
21542 #: ../fish/guestfish.pod:959
21543 msgid "Create a blank 200MB disk:"
21544 msgstr ""
21545
21546 #. type: verbatim
21547 #: ../fish/guestfish.pod:961
21548 #, no-wrap
21549 msgid ""
21550 " guestfish -N disk:200M\n"
21551 "\n"
21552 msgstr ""
21553
21554 #. type: =head1
21555 #: ../fish/guestfish.pod:963
21556 msgid "PROGRESS BARS"
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../fish/guestfish.pod:965
21561 msgid ""
21562 "Some (not all) long-running commands send progress notification messages as "
21563 "they are running.  Guestfish turns these messages into progress bars."
21564 msgstr ""
21565
21566 #. type: textblock
21567 #: ../fish/guestfish.pod:969
21568 msgid ""
21569 "When a command that supports progress bars takes longer than two seconds to "
21570 "run, and if progress bars are enabled, then you will see one appearing below "
21571 "the command:"
21572 msgstr ""
21573
21574 #. type: verbatim
21575 #: ../fish/guestfish.pod:973
21576 #, no-wrap
21577 msgid ""
21578 " ><fs> copy-size /large-file /another-file 2048M\n"
21579 " / 10% [#####-----------------------------------------] 00:30\n"
21580 "\n"
21581 msgstr ""
21582
21583 #. type: textblock
21584 #: ../fish/guestfish.pod:976
21585 msgid ""
21586 "The spinner on the left hand side moves round once for every progress "
21587 "notification received from the backend.  This is a (reasonably) golden "
21588 "assurance that the command is \"doing something\" even if the progress bar "
21589 "is not moving, because the command is able to send the progress "
21590 "notifications.  When the bar reaches 100% and the command finishes, the "
21591 "spinner disappears."
21592 msgstr ""
21593
21594 #. type: textblock
21595 #: ../fish/guestfish.pod:983
21596 msgid ""
21597 "Progress bars are enabled by default when guestfish is used interactively.  "
21598 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21599 "and you can disable them completely using I<--no-progress-bars>."
21600 msgstr ""
21601
21602 #. type: =head1
21603 #: ../fish/guestfish.pod:988
21604 msgid "GUESTFISH COMMANDS"
21605 msgstr ""
21606
21607 #. type: textblock
21608 #: ../fish/guestfish.pod:990
21609 msgid ""
21610 "The commands in this section are guestfish convenience commands, in other "
21611 "words, they are not part of the L<guestfs(3)> API."
21612 msgstr ""
21613
21614 #. type: =head2
21615 #: ../fish/guestfish.pod:993
21616 msgid "help"
21617 msgstr ""
21618
21619 #. type: verbatim
21620 #: ../fish/guestfish.pod:995
21621 #, no-wrap
21622 msgid ""
21623 " help\n"
21624 " help cmd\n"
21625 "\n"
21626 msgstr ""
21627
21628 #. type: textblock
21629 #: ../fish/guestfish.pod:998
21630 msgid "Without any parameter, this provides general help."
21631 msgstr ""
21632
21633 #. type: textblock
21634 #: ../fish/guestfish.pod:1000
21635 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21636 msgstr ""
21637
21638 #. type: =head2
21639 #: ../fish/guestfish.pod:1002
21640 msgid "quit | exit"
21641 msgstr ""
21642
21643 #. type: textblock
21644 #: ../fish/guestfish.pod:1004
21645 msgid "This exits guestfish.  You can also use C<^D> key."
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../fish/guestfish.pod:1006
21650 msgid "@FISH_COMMANDS@"
21651 msgstr ""
21652
21653 #. type: =head1
21654 #: ../fish/guestfish.pod:1008
21655 msgid "COMMANDS"
21656 msgstr ""
21657
21658 #. type: =head1
21659 #: ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:77
21660 msgid "EXIT CODE"
21661 msgstr ""
21662
21663 #. type: textblock
21664 #: ../fish/guestfish.pod:1014
21665 msgid ""
21666 "guestfish returns 0 if the commands completed without error, or 1 if there "
21667 "was an error."
21668 msgstr ""
21669
21670 #. type: =item
21671 #: ../fish/guestfish.pod:1021
21672 msgid "EDITOR"
21673 msgstr ""
21674
21675 #. type: textblock
21676 #: ../fish/guestfish.pod:1023
21677 msgid ""
21678 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21679 "C<vi>."
21680 msgstr ""
21681
21682 #. type: =item
21683 #: ../fish/guestfish.pod:1026
21684 msgid "GUESTFISH_PID"
21685 msgstr ""
21686
21687 #. type: textblock
21688 #: ../fish/guestfish.pod:1028
21689 msgid ""
21690 "Used with the I<--remote> option to specify the remote guestfish process to "
21691 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21692 msgstr ""
21693
21694 #. type: =item
21695 #: ../fish/guestfish.pod:1032
21696 msgid "HEXEDITOR"
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../fish/guestfish.pod:1034
21701 msgid ""
21702 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21703 "not specified, the external L<hexedit(1)> program is used."
21704 msgstr ""
21705
21706 #. type: =item
21707 #: ../fish/guestfish.pod:1038
21708 msgid "HOME"
21709 msgstr ""
21710
21711 #. type: textblock
21712 #: ../fish/guestfish.pod:1040
21713 msgid ""
21714 "If compiled with GNU readline support, various files in the home directory "
21715 "can be used.  See L</FILES>."
21716 msgstr ""
21717
21718 #. type: textblock
21719 #: ../fish/guestfish.pod:1049
21720 msgid ""
21721 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21722 "effect as using the B<-v> option."
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../fish/guestfish.pod:1061
21727 msgid ""
21728 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21729 "the discussion of paths in L<guestfs(3)>."
21730 msgstr ""
21731
21732 #. type: textblock
21733 #: ../fish/guestfish.pod:1072
21734 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21735 msgstr ""
21736
21737 #. type: =item
21738 #: ../fish/guestfish.pod:1074
21739 msgid "PAGER"
21740 msgstr ""
21741
21742 #. type: textblock
21743 #: ../fish/guestfish.pod:1076
21744 msgid ""
21745 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21746 "C<more>."
21747 msgstr ""
21748
21749 #. type: =head1
21750 #: ../fish/guestfish.pod:1092 ../fuse/guestmount.pod:264
21751 msgid "FILES"
21752 msgstr ""
21753
21754 #. type: =item
21755 #: ../fish/guestfish.pod:1096 ../fuse/guestmount.pod:268
21756 msgid "$HOME/.libguestfs-tools.rc"
21757 msgstr ""
21758
21759 #. type: =item
21760 #: ../fish/guestfish.pod:1098 ../fuse/guestmount.pod:270
21761 msgid "/etc/libguestfs-tools.conf"
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../fish/guestfish.pod:1100 ../fuse/guestmount.pod:272
21766 msgid ""
21767 "This configuration file controls the default read-only or read-write mode "
21768 "(I<--ro> or I<--rw>)."
21769 msgstr ""
21770
21771 #. type: textblock
21772 #: ../fish/guestfish.pod:1103
21773 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21774 msgstr ""
21775
21776 #. type: =item
21777 #: ../fish/guestfish.pod:1105
21778 msgid "$HOME/.guestfish"
21779 msgstr ""
21780
21781 #. type: textblock
21782 #: ../fish/guestfish.pod:1107
21783 msgid ""
21784 "If compiled with GNU readline support, then the command history is saved in "
21785 "this file."
21786 msgstr ""
21787
21788 #. type: =item
21789 #: ../fish/guestfish.pod:1110
21790 msgid "$HOME/.inputrc"
21791 msgstr ""
21792
21793 #. type: =item
21794 #: ../fish/guestfish.pod:1112
21795 msgid "/etc/inputrc"
21796 msgstr ""
21797
21798 #. type: textblock
21799 #: ../fish/guestfish.pod:1114
21800 msgid ""
21801 "If compiled with GNU readline support, then these files can be used to "
21802 "configure readline.  For further information, please see L<readline(3)/"
21803 "INITIALIZATION FILE>."
21804 msgstr ""
21805
21806 #. type: textblock
21807 #: ../fish/guestfish.pod:1118
21808 msgid "To write rules which only apply to guestfish, use:"
21809 msgstr ""
21810
21811 #. type: verbatim
21812 #: ../fish/guestfish.pod:1120
21813 #, no-wrap
21814 msgid ""
21815 " $if guestfish\n"
21816 " ...\n"
21817 " $endif\n"
21818 "\n"
21819 msgstr ""
21820
21821 #. type: textblock
21822 #: ../fish/guestfish.pod:1124
21823 msgid ""
21824 "Variables that you can set in inputrc that change the behaviour of guestfish "
21825 "in useful ways include:"
21826 msgstr ""
21827
21828 #. type: =item
21829 #: ../fish/guestfish.pod:1129
21830 msgid "completion-ignore-case (default: on)"
21831 msgstr ""
21832
21833 #. type: textblock
21834 #: ../fish/guestfish.pod:1131
21835 msgid ""
21836 "By default, guestfish will ignore case when tab-completing paths on the "
21837 "disk.  Use:"
21838 msgstr ""
21839
21840 #. type: verbatim
21841 #: ../fish/guestfish.pod:1134
21842 #, no-wrap
21843 msgid ""
21844 " set completion-ignore-case off\n"
21845 "\n"
21846 msgstr ""
21847
21848 #. type: textblock
21849 #: ../fish/guestfish.pod:1136
21850 msgid "to make guestfish case sensitive."
21851 msgstr ""
21852
21853 #. type: =item
21854 #: ../fish/guestfish.pod:1140
21855 msgid "test1.img"
21856 msgstr ""
21857
21858 #. type: =item
21859 #: ../fish/guestfish.pod:1142
21860 msgid "test2.img (etc)"
21861 msgstr ""
21862
21863 #. type: textblock
21864 #: ../fish/guestfish.pod:1144
21865 msgid ""
21866 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21867 "will be created in the file C<test1.img> in the current directory.  The "
21868 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21869 "the same name will be overwritten."
21870 msgstr ""
21871
21872 #. type: textblock
21873 #: ../fish/guestfish.pod:1153
21874 msgid ""
21875 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
21876 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
21877 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
21878 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
21879 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
21880 ">, L<hexedit(1)>."
21881 msgstr ""
21882
21883 #. type: textblock
21884 #: ../fish/guestfish.pod:1183 ../test-tool/libguestfs-test-tool.pod:102
21885 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:778
21886 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
21887 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
21888 msgid ""
21889 "This program is free software; you can redistribute it and/or modify it "
21890 "under the terms of the GNU General Public License as published by the Free "
21891 "Software Foundation; either version 2 of the License, or (at your option) "
21892 "any later version."
21893 msgstr ""
21894
21895 #. type: textblock
21896 #: ../fish/guestfish.pod:1188 ../test-tool/libguestfs-test-tool.pod:107
21897 #: ../fuse/guestmount.pod:304 ../tools/virt-win-reg.pl:783
21898 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
21899 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
21900 msgid ""
21901 "This program is distributed in the hope that it will be useful, but WITHOUT "
21902 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
21903 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
21904 "more details."
21905 msgstr ""
21906
21907 #. type: textblock
21908 #: ../fish/guestfish.pod:1193 ../test-tool/libguestfs-test-tool.pod:112
21909 #: ../fuse/guestmount.pod:309 ../tools/virt-win-reg.pl:788
21910 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
21911 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
21912 msgid ""
21913 "You should have received a copy of the GNU General Public License along with "
21914 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
21915 "Ave, Cambridge, MA 02139, USA."
21916 msgstr ""
21917
21918 #. type: =head2
21919 #: ../fish/guestfish-actions.pod:1
21920 msgid "add-cdrom"
21921 msgstr ""
21922
21923 #. type: verbatim
21924 #: ../fish/guestfish-actions.pod:3
21925 #, no-wrap
21926 msgid ""
21927 " add-cdrom filename\n"
21928 "\n"
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../fish/guestfish-actions.pod:15
21933 msgid ""
21934 "This call checks for the existence of C<filename>.  This stops you from "
21935 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21936 "and C<http:> URLs.  To specify those, use the general L</config> call "
21937 "instead."
21938 msgstr ""
21939
21940 #. type: textblock
21941 #: ../fish/guestfish-actions.pod:22
21942 msgid ""
21943 "If you just want to add an ISO file (often you use this as an efficient way "
21944 "to transfer large files into the guest), then you should probably use L</add-"
21945 "drive-ro> instead."
21946 msgstr ""
21947
21948 #. type: =head2
21949 #: ../fish/guestfish-actions.pod:35
21950 msgid "add-domain"
21951 msgstr ""
21952
21953 #. type: =head2
21954 #: ../fish/guestfish-actions.pod:37
21955 msgid "domain"
21956 msgstr ""
21957
21958 #. type: verbatim
21959 #: ../fish/guestfish-actions.pod:39
21960 #, no-wrap
21961 msgid ""
21962 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
21963 "\n"
21964 msgstr ""
21965
21966 #. type: textblock
21967 #: ../fish/guestfish-actions.pod:41
21968 msgid ""
21969 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21970 "It works by connecting to libvirt, requesting the domain and domain XML from "
21971 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
21972 msgstr ""
21973
21974 #. type: textblock
21975 #: ../fish/guestfish-actions.pod:76
21976 msgid ""
21977 "The other optional parameters are passed directly through to L</add-drive-"
21978 "opts>."
21979 msgstr ""
21980
21981 #. type: textblock
21982 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
21983 #: ../fish/guestfish-actions.pod:3064
21984 msgid ""
21985 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
21986 msgstr ""
21987
21988 #. type: =head2
21989 #: ../fish/guestfish-actions.pod:81
21990 msgid "add-drive"
21991 msgstr ""
21992
21993 #. type: verbatim
21994 #: ../fish/guestfish-actions.pod:83
21995 #, no-wrap
21996 msgid ""
21997 " add-drive filename\n"
21998 "\n"
21999 msgstr ""
22000
22001 #. type: textblock
22002 #: ../fish/guestfish-actions.pod:85
22003 msgid ""
22004 "This function is the equivalent of calling L</add-drive-opts> with no "
22005 "optional parameters, so the disk is added writable, with the format being "
22006 "detected automatically."
22007 msgstr ""
22008
22009 #. type: textblock
22010 #: ../fish/guestfish-actions.pod:89
22011 msgid ""
22012 "Automatic detection of the format opens you up to a potential security hole "
22013 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22014 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22015 "you should think about replacing calls to this function with calls to L</add-"
22016 "drive-opts>, and specifying the format."
22017 msgstr ""
22018
22019 #. type: =head2
22020 #: ../fish/guestfish-actions.pod:96
22021 msgid "add-drive-opts"
22022 msgstr ""
22023
22024 #. type: =head2
22025 #: ../fish/guestfish-actions.pod:98
22026 msgid "add"
22027 msgstr ""
22028
22029 #. type: verbatim
22030 #: ../fish/guestfish-actions.pod:100
22031 #, no-wrap
22032 msgid ""
22033 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
22034 "\n"
22035 msgstr ""
22036
22037 #. type: textblock
22038 #: ../fish/guestfish-actions.pod:127
22039 msgid ""
22040 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
22041 "add-drive-ro>) then the format is automatically detected.  Possible formats "
22042 "include C<raw> and C<qcow2>."
22043 msgstr ""
22044
22045 #. type: textblock
22046 #: ../fish/guestfish-actions.pod:138
22047 msgid ""
22048 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
22049 "add-drive-with-if> call (q.v.)"
22050 msgstr ""
22051
22052 #. type: =head2
22053 #: ../fish/guestfish-actions.pod:145
22054 msgid "add-drive-ro"
22055 msgstr ""
22056
22057 #. type: =head2
22058 #: ../fish/guestfish-actions.pod:147
22059 msgid "add-ro"
22060 msgstr ""
22061
22062 #. type: verbatim
22063 #: ../fish/guestfish-actions.pod:149
22064 #, no-wrap
22065 msgid ""
22066 " add-drive-ro filename\n"
22067 "\n"
22068 msgstr ""
22069
22070 #. type: textblock
22071 #: ../fish/guestfish-actions.pod:151
22072 msgid ""
22073 "This function is the equivalent of calling L</add-drive-opts> with the "
22074 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
22075 "is added read-only, with the format being detected automatically."
22076 msgstr ""
22077
22078 #. type: =head2
22079 #: ../fish/guestfish-actions.pod:156
22080 msgid "add-drive-ro-with-if"
22081 msgstr ""
22082
22083 #. type: verbatim
22084 #: ../fish/guestfish-actions.pod:158
22085 #, no-wrap
22086 msgid ""
22087 " add-drive-ro-with-if filename iface\n"
22088 "\n"
22089 msgstr ""
22090
22091 #. type: textblock
22092 #: ../fish/guestfish-actions.pod:160
22093 msgid ""
22094 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
22095 "interface emulation to use at run time."
22096 msgstr ""
22097
22098 #. type: =head2
22099 #: ../fish/guestfish-actions.pod:170
22100 msgid "add-drive-with-if"
22101 msgstr ""
22102
22103 #. type: verbatim
22104 #: ../fish/guestfish-actions.pod:172
22105 #, no-wrap
22106 msgid ""
22107 " add-drive-with-if filename iface\n"
22108 "\n"
22109 msgstr ""
22110
22111 #. type: textblock
22112 #: ../fish/guestfish-actions.pod:174
22113 msgid ""
22114 "This is the same as L</add-drive> but it allows you to specify the QEMU "
22115 "interface emulation to use at run time."
22116 msgstr ""
22117
22118 #. type: =head2
22119 #: ../fish/guestfish-actions.pod:184
22120 msgid "aug-clear"
22121 msgstr ""
22122
22123 #. type: verbatim
22124 #: ../fish/guestfish-actions.pod:186
22125 #, no-wrap
22126 msgid ""
22127 " aug-clear augpath\n"
22128 "\n"
22129 msgstr ""
22130
22131 #. type: =head2
22132 #: ../fish/guestfish-actions.pod:191
22133 msgid "aug-close"
22134 msgstr ""
22135
22136 #. type: verbatim
22137 #: ../fish/guestfish-actions.pod:193
22138 #, no-wrap
22139 msgid ""
22140 " aug-close\n"
22141 "\n"
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../fish/guestfish-actions.pod:195
22146 msgid ""
22147 "Close the current Augeas handle and free up any resources used by it.  After "
22148 "calling this, you have to call L</aug-init> again before you can use any "
22149 "other Augeas functions."
22150 msgstr ""
22151
22152 #. type: =head2
22153 #: ../fish/guestfish-actions.pod:200
22154 msgid "aug-defnode"
22155 msgstr ""
22156
22157 #. type: verbatim
22158 #: ../fish/guestfish-actions.pod:202
22159 #, no-wrap
22160 msgid ""
22161 " aug-defnode name expr val\n"
22162 "\n"
22163 msgstr ""
22164
22165 #. type: textblock
22166 #: ../fish/guestfish-actions.pod:207
22167 msgid ""
22168 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22169 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
22170 "containing that single node."
22171 msgstr ""
22172
22173 #. type: =head2
22174 #: ../fish/guestfish-actions.pod:215
22175 msgid "aug-defvar"
22176 msgstr ""
22177
22178 #. type: verbatim
22179 #: ../fish/guestfish-actions.pod:217
22180 #, no-wrap
22181 msgid ""
22182 " aug-defvar name expr\n"
22183 "\n"
22184 msgstr ""
22185
22186 #. type: =head2
22187 #: ../fish/guestfish-actions.pod:226
22188 msgid "aug-get"
22189 msgstr ""
22190
22191 #. type: verbatim
22192 #: ../fish/guestfish-actions.pod:228
22193 #, no-wrap
22194 msgid ""
22195 " aug-get augpath\n"
22196 "\n"
22197 msgstr ""
22198
22199 #. type: =head2
22200 #: ../fish/guestfish-actions.pod:233
22201 msgid "aug-init"
22202 msgstr ""
22203
22204 #. type: verbatim
22205 #: ../fish/guestfish-actions.pod:235
22206 #, no-wrap
22207 msgid ""
22208 " aug-init root flags\n"
22209 "\n"
22210 msgstr ""
22211
22212 #. type: textblock
22213 #: ../fish/guestfish-actions.pod:241
22214 msgid "You must call this before using any other L</aug-*> commands."
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../fish/guestfish-actions.pod:276
22219 msgid "Do not load the tree in L</aug-init>."
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../fish/guestfish-actions.pod:280
22224 msgid "To close the handle, you can call L</aug-close>."
22225 msgstr ""
22226
22227 #. type: =head2
22228 #: ../fish/guestfish-actions.pod:284
22229 msgid "aug-insert"
22230 msgstr ""
22231
22232 #. type: verbatim
22233 #: ../fish/guestfish-actions.pod:286
22234 #, no-wrap
22235 msgid ""
22236 " aug-insert augpath label true|false\n"
22237 "\n"
22238 msgstr ""
22239
22240 #. type: =head2
22241 #: ../fish/guestfish-actions.pod:296
22242 msgid "aug-load"
22243 msgstr ""
22244
22245 #. type: verbatim
22246 #: ../fish/guestfish-actions.pod:298
22247 #, no-wrap
22248 msgid ""
22249 " aug-load\n"
22250 "\n"
22251 msgstr ""
22252
22253 #. type: =head2
22254 #: ../fish/guestfish-actions.pod:305
22255 msgid "aug-ls"
22256 msgstr ""
22257
22258 #. type: verbatim
22259 #: ../fish/guestfish-actions.pod:307
22260 #, no-wrap
22261 msgid ""
22262 " aug-ls augpath\n"
22263 "\n"
22264 msgstr ""
22265
22266 #. type: textblock
22267 #: ../fish/guestfish-actions.pod:309
22268 msgid ""
22269 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
22270 "resulting nodes into alphabetical order."
22271 msgstr ""
22272
22273 #. type: =head2
22274 #: ../fish/guestfish-actions.pod:312
22275 msgid "aug-match"
22276 msgstr ""
22277
22278 #. type: verbatim
22279 #: ../fish/guestfish-actions.pod:314
22280 #, no-wrap
22281 msgid ""
22282 " aug-match augpath\n"
22283 "\n"
22284 msgstr ""
22285
22286 #. type: =head2
22287 #: ../fish/guestfish-actions.pod:320
22288 msgid "aug-mv"
22289 msgstr ""
22290
22291 #. type: verbatim
22292 #: ../fish/guestfish-actions.pod:322
22293 #, no-wrap
22294 msgid ""
22295 " aug-mv src dest\n"
22296 "\n"
22297 msgstr ""
22298
22299 #. type: =head2
22300 #: ../fish/guestfish-actions.pod:327
22301 msgid "aug-rm"
22302 msgstr ""
22303
22304 #. type: verbatim
22305 #: ../fish/guestfish-actions.pod:329
22306 #, no-wrap
22307 msgid ""
22308 " aug-rm augpath\n"
22309 "\n"
22310 msgstr ""
22311
22312 #. type: =head2
22313 #: ../fish/guestfish-actions.pod:335
22314 msgid "aug-save"
22315 msgstr ""
22316
22317 #. type: verbatim
22318 #: ../fish/guestfish-actions.pod:337
22319 #, no-wrap
22320 msgid ""
22321 " aug-save\n"
22322 "\n"
22323 msgstr ""
22324
22325 #. type: textblock
22326 #: ../fish/guestfish-actions.pod:341
22327 msgid ""
22328 "The flags which were passed to L</aug-init> affect exactly how files are "
22329 "saved."
22330 msgstr ""
22331
22332 #. type: =head2
22333 #: ../fish/guestfish-actions.pod:344
22334 msgid "aug-set"
22335 msgstr ""
22336
22337 #. type: verbatim
22338 #: ../fish/guestfish-actions.pod:346
22339 #, no-wrap
22340 msgid ""
22341 " aug-set augpath val\n"
22342 "\n"
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../fish/guestfish-actions.pod:350
22347 msgid ""
22348 "In the Augeas API, it is possible to clear a node by setting the value to "
22349 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22350 "this call.  Instead you must use the L</aug-clear> call."
22351 msgstr ""
22352
22353 #. type: =head2
22354 #: ../fish/guestfish-actions.pod:355
22355 msgid "available"
22356 msgstr ""
22357
22358 #. type: verbatim
22359 #: ../fish/guestfish-actions.pod:357
22360 #, no-wrap
22361 msgid ""
22362 " available 'groups ...'\n"
22363 "\n"
22364 msgstr ""
22365
22366 #. type: textblock
22367 #: ../fish/guestfish-actions.pod:363
22368 msgid ""
22369 "The libguestfs groups, and the functions that those groups correspond to, "
22370 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22371 "runtime by calling L</available-all-groups>."
22372 msgstr ""
22373
22374 #. type: textblock
22375 #: ../fish/guestfish-actions.pod:387
22376 msgid "You must call L</launch> before calling this function."
22377 msgstr ""
22378
22379 #. type: textblock
22380 #: ../fish/guestfish-actions.pod:409
22381 msgid ""
22382 "This call was added in version C<1.0.80>.  In previous versions of "
22383 "libguestfs all you could do would be to speculatively execute a command to "
22384 "find out if the daemon implemented it.  See also L</version>."
22385 msgstr ""
22386
22387 #. type: =head2
22388 #: ../fish/guestfish-actions.pod:416
22389 msgid "available-all-groups"
22390 msgstr ""
22391
22392 #. type: verbatim
22393 #: ../fish/guestfish-actions.pod:418
22394 #, no-wrap
22395 msgid ""
22396 " available-all-groups\n"
22397 "\n"
22398 msgstr ""
22399
22400 #. type: textblock
22401 #: ../fish/guestfish-actions.pod:420
22402 msgid ""
22403 "This command returns a list of all optional groups that this daemon knows "
22404 "about.  Note this returns both supported and unsupported groups.  To find "
22405 "out which ones the daemon can actually support you have to call L</"
22406 "available> on each member of the returned list."
22407 msgstr ""
22408
22409 #. type: textblock
22410 #: ../fish/guestfish-actions.pod:426
22411 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
22412 msgstr ""
22413
22414 #. type: =head2
22415 #: ../fish/guestfish-actions.pod:428
22416 msgid "base64-in"
22417 msgstr ""
22418
22419 #. type: verbatim
22420 #: ../fish/guestfish-actions.pod:430
22421 #, no-wrap
22422 msgid ""
22423 " base64-in (base64file|-) filename\n"
22424 "\n"
22425 msgstr ""
22426
22427 #. type: textblock
22428 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
22429 #: ../fish/guestfish-actions.pod:668 ../fish/guestfish-actions.pod:837
22430 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:1230
22431 #: ../fish/guestfish-actions.pod:4497 ../fish/guestfish-actions.pod:4509
22432 #: ../fish/guestfish-actions.pod:4520 ../fish/guestfish-actions.pod:4531
22433 #: ../fish/guestfish-actions.pod:4583 ../fish/guestfish-actions.pod:4592
22434 #: ../fish/guestfish-actions.pod:4646 ../fish/guestfish-actions.pod:4669
22435 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
22436 msgstr ""
22437
22438 #. type: =head2
22439 #: ../fish/guestfish-actions.pod:437
22440 msgid "base64-out"
22441 msgstr ""
22442
22443 #. type: verbatim
22444 #: ../fish/guestfish-actions.pod:439
22445 #, no-wrap
22446 msgid ""
22447 " base64-out filename (base64file|-)\n"
22448 "\n"
22449 msgstr ""
22450
22451 #. type: =head2
22452 #: ../fish/guestfish-actions.pod:446
22453 msgid "blockdev-flushbufs"
22454 msgstr ""
22455
22456 #. type: verbatim
22457 #: ../fish/guestfish-actions.pod:448
22458 #, no-wrap
22459 msgid ""
22460 " blockdev-flushbufs device\n"
22461 "\n"
22462 msgstr ""
22463
22464 #. type: =head2
22465 #: ../fish/guestfish-actions.pod:455
22466 msgid "blockdev-getbsz"
22467 msgstr ""
22468
22469 #. type: verbatim
22470 #: ../fish/guestfish-actions.pod:457
22471 #, no-wrap
22472 msgid ""
22473 " blockdev-getbsz device\n"
22474 "\n"
22475 msgstr ""
22476
22477 #. type: =head2
22478 #: ../fish/guestfish-actions.pod:466
22479 msgid "blockdev-getro"
22480 msgstr ""
22481
22482 #. type: verbatim
22483 #: ../fish/guestfish-actions.pod:468
22484 #, no-wrap
22485 msgid ""
22486 " blockdev-getro device\n"
22487 "\n"
22488 msgstr ""
22489
22490 #. type: =head2
22491 #: ../fish/guestfish-actions.pod:475
22492 msgid "blockdev-getsize64"
22493 msgstr ""
22494
22495 #. type: verbatim
22496 #: ../fish/guestfish-actions.pod:477
22497 #, no-wrap
22498 msgid ""
22499 " blockdev-getsize64 device\n"
22500 "\n"
22501 msgstr ""
22502
22503 #. type: textblock
22504 #: ../fish/guestfish-actions.pod:481
22505 msgid "See also L</blockdev-getsz>."
22506 msgstr ""
22507
22508 #. type: =head2
22509 #: ../fish/guestfish-actions.pod:485
22510 msgid "blockdev-getss"
22511 msgstr ""
22512
22513 #. type: verbatim
22514 #: ../fish/guestfish-actions.pod:487
22515 #, no-wrap
22516 msgid ""
22517 " blockdev-getss device\n"
22518 "\n"
22519 msgstr ""
22520
22521 #. type: textblock
22522 #: ../fish/guestfish-actions.pod:492
22523 msgid ""
22524 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
22525 msgstr ""
22526
22527 #. type: =head2
22528 #: ../fish/guestfish-actions.pod:497
22529 msgid "blockdev-getsz"
22530 msgstr ""
22531
22532 #. type: verbatim
22533 #: ../fish/guestfish-actions.pod:499
22534 #, no-wrap
22535 msgid ""
22536 " blockdev-getsz device\n"
22537 "\n"
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../fish/guestfish-actions.pod:504
22542 msgid ""
22543 "See also L</blockdev-getss> for the real sector size of the device, and L</"
22544 "blockdev-getsize64> for the more useful I<size in bytes>."
22545 msgstr ""
22546
22547 #. type: =head2
22548 #: ../fish/guestfish-actions.pod:510
22549 msgid "blockdev-rereadpt"
22550 msgstr ""
22551
22552 #. type: verbatim
22553 #: ../fish/guestfish-actions.pod:512
22554 #, no-wrap
22555 msgid ""
22556 " blockdev-rereadpt device\n"
22557 "\n"
22558 msgstr ""
22559
22560 #. type: =head2
22561 #: ../fish/guestfish-actions.pod:518
22562 msgid "blockdev-setbsz"
22563 msgstr ""
22564
22565 #. type: verbatim
22566 #: ../fish/guestfish-actions.pod:520
22567 #, no-wrap
22568 msgid ""
22569 " blockdev-setbsz device blocksize\n"
22570 "\n"
22571 msgstr ""
22572
22573 #. type: =head2
22574 #: ../fish/guestfish-actions.pod:529
22575 msgid "blockdev-setro"
22576 msgstr ""
22577
22578 #. type: verbatim
22579 #: ../fish/guestfish-actions.pod:531
22580 #, no-wrap
22581 msgid ""
22582 " blockdev-setro device\n"
22583 "\n"
22584 msgstr ""
22585
22586 #. type: =head2
22587 #: ../fish/guestfish-actions.pod:537
22588 msgid "blockdev-setrw"
22589 msgstr ""
22590
22591 #. type: verbatim
22592 #: ../fish/guestfish-actions.pod:539
22593 #, no-wrap
22594 msgid ""
22595 " blockdev-setrw device\n"
22596 "\n"
22597 msgstr ""
22598
22599 #. type: =head2
22600 #: ../fish/guestfish-actions.pod:545
22601 msgid "case-sensitive-path"
22602 msgstr ""
22603
22604 #. type: verbatim
22605 #: ../fish/guestfish-actions.pod:547
22606 #, no-wrap
22607 msgid ""
22608 " case-sensitive-path path\n"
22609 "\n"
22610 msgstr ""
22611
22612 #. type: textblock
22613 #: ../fish/guestfish-actions.pod:571
22614 msgid ""
22615 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
22616 "WINDOWS/system32\"> (the exact return value would depend on details of how "
22617 "the directories were originally created under Windows)."
22618 msgstr ""
22619
22620 #. type: textblock
22621 #: ../fish/guestfish-actions.pod:579
22622 msgid "See also L</realpath>."
22623 msgstr ""
22624
22625 #. type: =head2
22626 #: ../fish/guestfish-actions.pod:581
22627 msgid "cat"
22628 msgstr ""
22629
22630 #. type: verbatim
22631 #: ../fish/guestfish-actions.pod:583
22632 #, no-wrap
22633 msgid ""
22634 " cat path\n"
22635 "\n"
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../fish/guestfish-actions.pod:587
22640 msgid ""
22641 "Note that this function cannot correctly handle binary files (specifically, "
22642 "files containing C<\\0> character which is treated as end of string).  For "
22643 "those you need to use the L</read-file> or L</download> functions which have "
22644 "a more complex interface."
22645 msgstr ""
22646
22647 #. type: =head2
22648 #: ../fish/guestfish-actions.pod:595
22649 msgid "checksum"
22650 msgstr ""
22651
22652 #. type: verbatim
22653 #: ../fish/guestfish-actions.pod:597
22654 #, no-wrap
22655 msgid ""
22656 " checksum csumtype path\n"
22657 "\n"
22658 msgstr ""
22659
22660 #. type: textblock
22661 #: ../fish/guestfish-actions.pod:640
22662 msgid "To get the checksum for a device, use L</checksum-device>."
22663 msgstr ""
22664
22665 #. type: textblock
22666 #: ../fish/guestfish-actions.pod:642
22667 msgid "To get the checksums for many files, use L</checksums-out>."
22668 msgstr ""
22669
22670 #. type: =head2
22671 #: ../fish/guestfish-actions.pod:644
22672 msgid "checksum-device"
22673 msgstr ""
22674
22675 #. type: verbatim
22676 #: ../fish/guestfish-actions.pod:646
22677 #, no-wrap
22678 msgid ""
22679 " checksum-device csumtype device\n"
22680 "\n"
22681 msgstr ""
22682
22683 #. type: textblock
22684 #: ../fish/guestfish-actions.pod:648
22685 msgid ""
22686 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22687 "device named C<device>.  For the types of checksums supported see the L</"
22688 "checksum> command."
22689 msgstr ""
22690
22691 #. type: =head2
22692 #: ../fish/guestfish-actions.pod:652
22693 msgid "checksums-out"
22694 msgstr ""
22695
22696 #. type: verbatim
22697 #: ../fish/guestfish-actions.pod:654
22698 #, no-wrap
22699 msgid ""
22700 " checksums-out csumtype directory (sumsfile|-)\n"
22701 "\n"
22702 msgstr ""
22703
22704 #. type: =head2
22705 #: ../fish/guestfish-actions.pod:670
22706 msgid "chmod"
22707 msgstr ""
22708
22709 #. type: verbatim
22710 #: ../fish/guestfish-actions.pod:672
22711 #, no-wrap
22712 msgid ""
22713 " chmod mode path\n"
22714 "\n"
22715 msgstr ""
22716
22717 #. type: =head2
22718 #: ../fish/guestfish-actions.pod:683
22719 msgid "chown"
22720 msgstr ""
22721
22722 #. type: verbatim
22723 #: ../fish/guestfish-actions.pod:685
22724 #, no-wrap
22725 msgid ""
22726 " chown owner group path\n"
22727 "\n"
22728 msgstr ""
22729
22730 #. type: =head2
22731 #: ../fish/guestfish-actions.pod:693
22732 msgid "command"
22733 msgstr ""
22734
22735 #. type: verbatim
22736 #: ../fish/guestfish-actions.pod:695
22737 #, no-wrap
22738 msgid ""
22739 " command 'arguments ...'\n"
22740 "\n"
22741 msgstr ""
22742
22743 #. type: textblock
22744 #: ../fish/guestfish-actions.pod:702
22745 msgid ""
22746 "The single parameter is an argv-style list of arguments.  The first element "
22747 "is the name of the program to run.  Subsequent elements are parameters.  The "
22748 "list must be non-empty (ie. must contain a program name).  Note that the "
22749 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
22750 msgstr ""
22751
22752 #. type: =head2
22753 #: ../fish/guestfish-actions.pod:730
22754 msgid "command-lines"
22755 msgstr ""
22756
22757 #. type: verbatim
22758 #: ../fish/guestfish-actions.pod:732
22759 #, no-wrap
22760 msgid ""
22761 " command-lines 'arguments ...'\n"
22762 "\n"
22763 msgstr ""
22764
22765 #. type: textblock
22766 #: ../fish/guestfish-actions.pod:734
22767 msgid ""
22768 "This is the same as L</command>, but splits the result into a list of lines."
22769 msgstr ""
22770
22771 #. type: textblock
22772 #: ../fish/guestfish-actions.pod:737
22773 msgid "See also: L</sh-lines>"
22774 msgstr ""
22775
22776 #. type: =head2
22777 #: ../fish/guestfish-actions.pod:742
22778 msgid "config"
22779 msgstr ""
22780
22781 #. type: verbatim
22782 #: ../fish/guestfish-actions.pod:744
22783 #, no-wrap
22784 msgid ""
22785 " config qemuparam qemuvalue\n"
22786 "\n"
22787 msgstr ""
22788
22789 #. type: =head2
22790 #: ../fish/guestfish-actions.pod:755
22791 msgid "copy-size"
22792 msgstr ""
22793
22794 #. type: verbatim
22795 #: ../fish/guestfish-actions.pod:757
22796 #, no-wrap
22797 msgid ""
22798 " copy-size src dest size\n"
22799 "\n"
22800 msgstr ""
22801
22802 #. type: =head2
22803 #: ../fish/guestfish-actions.pod:765
22804 msgid "cp"
22805 msgstr ""
22806
22807 #. type: verbatim
22808 #: ../fish/guestfish-actions.pod:767
22809 #, no-wrap
22810 msgid ""
22811 " cp src dest\n"
22812 "\n"
22813 msgstr ""
22814
22815 #. type: =head2
22816 #: ../fish/guestfish-actions.pod:772
22817 msgid "cp-a"
22818 msgstr ""
22819
22820 #. type: verbatim
22821 #: ../fish/guestfish-actions.pod:774
22822 #, no-wrap
22823 msgid ""
22824 " cp-a src dest\n"
22825 "\n"
22826 msgstr ""
22827
22828 #. type: =head2
22829 #: ../fish/guestfish-actions.pod:779
22830 msgid "dd"
22831 msgstr ""
22832
22833 #. type: verbatim
22834 #: ../fish/guestfish-actions.pod:781
22835 #, no-wrap
22836 msgid ""
22837 " dd src dest\n"
22838 "\n"
22839 msgstr ""
22840
22841 #. type: textblock
22842 #: ../fish/guestfish-actions.pod:788
22843 msgid ""
22844 "If the destination is a device, it must be as large or larger than the "
22845 "source file or device, otherwise the copy will fail.  This command cannot do "
22846 "partial copies (see L</copy-size>)."
22847 msgstr ""
22848
22849 #. type: =head2
22850 #: ../fish/guestfish-actions.pod:792
22851 msgid "df"
22852 msgstr ""
22853
22854 #. type: verbatim
22855 #: ../fish/guestfish-actions.pod:794
22856 #, no-wrap
22857 msgid ""
22858 " df\n"
22859 "\n"
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../fish/guestfish-actions.pod:798 ../fish/guestfish-actions.pod:809
22864 msgid ""
22865 "This command is mostly useful for interactive sessions.  It is I<not> "
22866 "intended that you try to parse the output string.  Use L</statvfs> from "
22867 "programs."
22868 msgstr ""
22869
22870 #. type: =head2
22871 #: ../fish/guestfish-actions.pod:802
22872 msgid "df-h"
22873 msgstr ""
22874
22875 #. type: verbatim
22876 #: ../fish/guestfish-actions.pod:804
22877 #, no-wrap
22878 msgid ""
22879 " df-h\n"
22880 "\n"
22881 msgstr ""
22882
22883 #. type: =head2
22884 #: ../fish/guestfish-actions.pod:813
22885 msgid "dmesg"
22886 msgstr ""
22887
22888 #. type: verbatim
22889 #: ../fish/guestfish-actions.pod:815
22890 #, no-wrap
22891 msgid ""
22892 " dmesg\n"
22893 "\n"
22894 msgstr ""
22895
22896 #. type: textblock
22897 #: ../fish/guestfish-actions.pod:821
22898 msgid ""
22899 "Another way to get the same information is to enable verbose messages with "
22900 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
22901 "before running the program."
22902 msgstr ""
22903
22904 #. type: =head2
22905 #: ../fish/guestfish-actions.pod:826
22906 msgid "download"
22907 msgstr ""
22908
22909 #. type: verbatim
22910 #: ../fish/guestfish-actions.pod:828
22911 #, no-wrap
22912 msgid ""
22913 " download remotefilename (filename|-)\n"
22914 "\n"
22915 msgstr ""
22916
22917 #. type: textblock
22918 #: ../fish/guestfish-actions.pod:835
22919 msgid "See also L</upload>, L</cat>."
22920 msgstr ""
22921
22922 #. type: =head2
22923 #: ../fish/guestfish-actions.pod:839
22924 msgid "download-offset"
22925 msgstr ""
22926
22927 #. type: verbatim
22928 #: ../fish/guestfish-actions.pod:841
22929 #, no-wrap
22930 msgid ""
22931 " download-offset remotefilename (filename|-) offset size\n"
22932 "\n"
22933 msgstr ""
22934
22935 #. type: textblock
22936 #: ../fish/guestfish-actions.pod:849
22937 msgid ""
22938 "Note that there is no limit on the amount of data that can be downloaded "
22939 "with this call, unlike with L</pread>, and this call always reads the full "
22940 "amount unless an error occurs."
22941 msgstr ""
22942
22943 #. type: textblock
22944 #: ../fish/guestfish-actions.pod:854
22945 msgid "See also L</download>, L</pread>."
22946 msgstr ""
22947
22948 #. type: =head2
22949 #: ../fish/guestfish-actions.pod:858
22950 msgid "drop-caches"
22951 msgstr ""
22952
22953 #. type: verbatim
22954 #: ../fish/guestfish-actions.pod:860
22955 #, no-wrap
22956 msgid ""
22957 " drop-caches whattodrop\n"
22958 "\n"
22959 msgstr ""
22960
22961 #. type: =head2
22962 #: ../fish/guestfish-actions.pod:872
22963 msgid "du"
22964 msgstr ""
22965
22966 #. type: verbatim
22967 #: ../fish/guestfish-actions.pod:874
22968 #, no-wrap
22969 msgid ""
22970 " du path\n"
22971 "\n"
22972 msgstr ""
22973
22974 #. type: =head2
22975 #: ../fish/guestfish-actions.pod:886
22976 msgid "e2fsck-f"
22977 msgstr ""
22978
22979 #. type: verbatim
22980 #: ../fish/guestfish-actions.pod:888
22981 #, no-wrap
22982 msgid ""
22983 " e2fsck-f device\n"
22984 "\n"
22985 msgstr ""
22986
22987 #. type: textblock
22988 #: ../fish/guestfish-actions.pod:894
22989 msgid ""
22990 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
22991 "should use L</fsck>."
22992 msgstr ""
22993
22994 #. type: =head2
22995 #: ../fish/guestfish-actions.pod:897
22996 msgid "echo-daemon"
22997 msgstr ""
22998
22999 #. type: verbatim
23000 #: ../fish/guestfish-actions.pod:899
23001 #, no-wrap
23002 msgid ""
23003 " echo-daemon 'words ...'\n"
23004 "\n"
23005 msgstr ""
23006
23007 #. type: textblock
23008 #: ../fish/guestfish-actions.pod:906
23009 msgid "See also L</ping-daemon>."
23010 msgstr ""
23011
23012 #. type: =head2
23013 #: ../fish/guestfish-actions.pod:908
23014 msgid "egrep"
23015 msgstr ""
23016
23017 #. type: verbatim
23018 #: ../fish/guestfish-actions.pod:910
23019 #, no-wrap
23020 msgid ""
23021 " egrep regex path\n"
23022 "\n"
23023 msgstr ""
23024
23025 #. type: =head2
23026 #: ../fish/guestfish-actions.pod:918
23027 msgid "egrepi"
23028 msgstr ""
23029
23030 #. type: verbatim
23031 #: ../fish/guestfish-actions.pod:920
23032 #, no-wrap
23033 msgid ""
23034 " egrepi regex path\n"
23035 "\n"
23036 msgstr ""
23037
23038 #. type: =head2
23039 #: ../fish/guestfish-actions.pod:928
23040 msgid "equal"
23041 msgstr ""
23042
23043 #. type: verbatim
23044 #: ../fish/guestfish-actions.pod:930
23045 #, no-wrap
23046 msgid ""
23047 " equal file1 file2\n"
23048 "\n"
23049 msgstr ""
23050
23051 #. type: =head2
23052 #: ../fish/guestfish-actions.pod:937
23053 msgid "exists"
23054 msgstr ""
23055
23056 #. type: verbatim
23057 #: ../fish/guestfish-actions.pod:939
23058 #, no-wrap
23059 msgid ""
23060 " exists path\n"
23061 "\n"
23062 msgstr ""
23063
23064 #. type: textblock
23065 #: ../fish/guestfish-actions.pod:944
23066 msgid "See also L</is-file>, L</is-dir>, L</stat>."
23067 msgstr ""
23068
23069 #. type: =head2
23070 #: ../fish/guestfish-actions.pod:946
23071 msgid "fallocate"
23072 msgstr ""
23073
23074 #. type: verbatim
23075 #: ../fish/guestfish-actions.pod:948
23076 #, no-wrap
23077 msgid ""
23078 " fallocate path len\n"
23079 "\n"
23080 msgstr ""
23081
23082 #. type: =head2
23083 #: ../fish/guestfish-actions.pod:965
23084 msgid "fallocate64"
23085 msgstr ""
23086
23087 #. type: verbatim
23088 #: ../fish/guestfish-actions.pod:967
23089 #, no-wrap
23090 msgid ""
23091 " fallocate64 path len\n"
23092 "\n"
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../fish/guestfish-actions.pod:973
23097 msgid ""
23098 "Note that this call allocates disk blocks for the file.  To create a sparse "
23099 "file use L</truncate-size> instead."
23100 msgstr ""
23101
23102 #. type: textblock
23103 #: ../fish/guestfish-actions.pod:976
23104 msgid ""
23105 "The deprecated call L</fallocate> does the same, but owing to an oversight "
23106 "it only allowed 30 bit lengths to be specified, effectively limiting the "
23107 "maximum size of files created through that call to 1GB."
23108 msgstr ""
23109
23110 #. type: =head2
23111 #: ../fish/guestfish-actions.pod:985
23112 msgid "fgrep"
23113 msgstr ""
23114
23115 #. type: verbatim
23116 #: ../fish/guestfish-actions.pod:987
23117 #, no-wrap
23118 msgid ""
23119 " fgrep pattern path\n"
23120 "\n"
23121 msgstr ""
23122
23123 #. type: =head2
23124 #: ../fish/guestfish-actions.pod:995
23125 msgid "fgrepi"
23126 msgstr ""
23127
23128 #. type: verbatim
23129 #: ../fish/guestfish-actions.pod:997
23130 #, no-wrap
23131 msgid ""
23132 " fgrepi pattern path\n"
23133 "\n"
23134 msgstr ""
23135
23136 #. type: =head2
23137 #: ../fish/guestfish-actions.pod:1005
23138 msgid "file"
23139 msgstr ""
23140
23141 #. type: verbatim
23142 #: ../fish/guestfish-actions.pod:1007
23143 #, no-wrap
23144 msgid ""
23145 " file path\n"
23146 "\n"
23147 msgstr ""
23148
23149 #. type: textblock
23150 #: ../fish/guestfish-actions.pod:1023
23151 msgid ""
23152 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
23153 "(etc), L</is-zero>."
23154 msgstr ""
23155
23156 #. type: =head2
23157 #: ../fish/guestfish-actions.pod:1026
23158 msgid "file-architecture"
23159 msgstr ""
23160
23161 #. type: verbatim
23162 #: ../fish/guestfish-actions.pod:1028
23163 #, no-wrap
23164 msgid ""
23165 " file-architecture filename\n"
23166 "\n"
23167 msgstr ""
23168
23169 #. type: =head2
23170 #: ../fish/guestfish-actions.pod:1131
23171 msgid "filesize"
23172 msgstr ""
23173
23174 #. type: verbatim
23175 #: ../fish/guestfish-actions.pod:1133
23176 #, no-wrap
23177 msgid ""
23178 " filesize file\n"
23179 "\n"
23180 msgstr ""
23181
23182 #. type: textblock
23183 #: ../fish/guestfish-actions.pod:1137
23184 msgid ""
23185 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
23186 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
23187 msgstr ""
23188
23189 #. type: =head2
23190 #: ../fish/guestfish-actions.pod:1141
23191 msgid "fill"
23192 msgstr ""
23193
23194 #. type: verbatim
23195 #: ../fish/guestfish-actions.pod:1143
23196 #, no-wrap
23197 msgid ""
23198 " fill c len path\n"
23199 "\n"
23200 msgstr ""
23201
23202 #. type: textblock
23203 #: ../fish/guestfish-actions.pod:1149
23204 msgid ""
23205 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23206 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
23207 "L</fill-pattern>."
23208 msgstr ""
23209
23210 #. type: =head2
23211 #: ../fish/guestfish-actions.pod:1154
23212 msgid "fill-pattern"
23213 msgstr ""
23214
23215 #. type: verbatim
23216 #: ../fish/guestfish-actions.pod:1156
23217 #, no-wrap
23218 msgid ""
23219 " fill-pattern pattern len path\n"
23220 "\n"
23221 msgstr ""
23222
23223 #. type: textblock
23224 #: ../fish/guestfish-actions.pod:1158
23225 msgid ""
23226 "This function is like L</fill> except that it creates a new file of length "
23227 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
23228 "is truncated if necessary to ensure the length of the file is exactly C<len> "
23229 "bytes."
23230 msgstr ""
23231
23232 #. type: =head2
23233 #: ../fish/guestfish-actions.pod:1163
23234 msgid "find"
23235 msgstr ""
23236
23237 #. type: verbatim
23238 #: ../fish/guestfish-actions.pod:1165
23239 #, no-wrap
23240 msgid ""
23241 " find directory\n"
23242 "\n"
23243 msgstr ""
23244
23245 #. type: textblock
23246 #: ../fish/guestfish-actions.pod:1179
23247 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
23248 msgstr ""
23249
23250 #. type: textblock
23251 #: ../fish/guestfish-actions.pod:1192
23252 msgid "See also L</find0>."
23253 msgstr ""
23254
23255 #. type: =head2
23256 #: ../fish/guestfish-actions.pod:1197
23257 msgid "find0"
23258 msgstr ""
23259
23260 #. type: verbatim
23261 #: ../fish/guestfish-actions.pod:1199
23262 #, no-wrap
23263 msgid ""
23264 " find0 directory (files|-)\n"
23265 "\n"
23266 msgstr ""
23267
23268 #. type: textblock
23269 #: ../fish/guestfish-actions.pod:1205
23270 msgid ""
23271 "This command works the same way as L</find> with the following exceptions:"
23272 msgstr ""
23273
23274 #. type: =head2
23275 #: ../fish/guestfish-actions.pod:1232
23276 msgid "findfs-label"
23277 msgstr ""
23278
23279 #. type: verbatim
23280 #: ../fish/guestfish-actions.pod:1234
23281 #, no-wrap
23282 msgid ""
23283 " findfs-label label\n"
23284 "\n"
23285 msgstr ""
23286
23287 #. type: textblock
23288 #: ../fish/guestfish-actions.pod:1240
23289 msgid "To find the label of a filesystem, use L</vfs-label>."
23290 msgstr ""
23291
23292 #. type: =head2
23293 #: ../fish/guestfish-actions.pod:1242
23294 msgid "findfs-uuid"
23295 msgstr ""
23296
23297 #. type: verbatim
23298 #: ../fish/guestfish-actions.pod:1244
23299 #, no-wrap
23300 msgid ""
23301 " findfs-uuid uuid\n"
23302 "\n"
23303 msgstr ""
23304
23305 #. type: textblock
23306 #: ../fish/guestfish-actions.pod:1250
23307 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
23308 msgstr ""
23309
23310 #. type: =head2
23311 #: ../fish/guestfish-actions.pod:1252
23312 msgid "fsck"
23313 msgstr ""
23314
23315 #. type: verbatim
23316 #: ../fish/guestfish-actions.pod:1254
23317 #, no-wrap
23318 msgid ""
23319 " fsck fstype device\n"
23320 "\n"
23321 msgstr ""
23322
23323 #. type: =head2
23324 #: ../fish/guestfish-actions.pod:1284
23325 msgid "get-append"
23326 msgstr ""
23327
23328 #. type: verbatim
23329 #: ../fish/guestfish-actions.pod:1286
23330 #, no-wrap
23331 msgid ""
23332 " get-append\n"
23333 "\n"
23334 msgstr ""
23335
23336 #. type: =head2
23337 #: ../fish/guestfish-actions.pod:1293
23338 msgid "get-attach-method"
23339 msgstr ""
23340
23341 #. type: verbatim
23342 #: ../fish/guestfish-actions.pod:1295
23343 #, no-wrap
23344 msgid ""
23345 " get-attach-method\n"
23346 "\n"
23347 msgstr ""
23348
23349 #. type: textblock
23350 #: ../fish/guestfish-actions.pod:1297
23351 msgid "Return the current attach method.  See L</set-attach-method>."
23352 msgstr ""
23353
23354 #. type: =head2
23355 #: ../fish/guestfish-actions.pod:1299
23356 msgid "get-autosync"
23357 msgstr ""
23358
23359 #. type: verbatim
23360 #: ../fish/guestfish-actions.pod:1301
23361 #, no-wrap
23362 msgid ""
23363 " get-autosync\n"
23364 "\n"
23365 msgstr ""
23366
23367 #. type: =head2
23368 #: ../fish/guestfish-actions.pod:1305
23369 msgid "get-direct"
23370 msgstr ""
23371
23372 #. type: verbatim
23373 #: ../fish/guestfish-actions.pod:1307
23374 #, no-wrap
23375 msgid ""
23376 " get-direct\n"
23377 "\n"
23378 msgstr ""
23379
23380 #. type: =head2
23381 #: ../fish/guestfish-actions.pod:1311
23382 msgid "get-e2label"
23383 msgstr ""
23384
23385 #. type: verbatim
23386 #: ../fish/guestfish-actions.pod:1313
23387 #, no-wrap
23388 msgid ""
23389 " get-e2label device\n"
23390 "\n"
23391 msgstr ""
23392
23393 #. type: =head2
23394 #: ../fish/guestfish-actions.pod:1325
23395 msgid "get-e2uuid"
23396 msgstr ""
23397
23398 #. type: verbatim
23399 #: ../fish/guestfish-actions.pod:1327
23400 #, no-wrap
23401 msgid ""
23402 " get-e2uuid device\n"
23403 "\n"
23404 msgstr ""
23405
23406 #. type: =head2
23407 #: ../fish/guestfish-actions.pod:1339
23408 msgid "get-memsize"
23409 msgstr ""
23410
23411 #. type: verbatim
23412 #: ../fish/guestfish-actions.pod:1341
23413 #, no-wrap
23414 msgid ""
23415 " get-memsize\n"
23416 "\n"
23417 msgstr ""
23418
23419 #. type: textblock
23420 #: ../fish/guestfish-actions.pod:1346
23421 msgid ""
23422 "If L</set-memsize> was not called on this handle, and if "
23423 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23424 "value for memsize."
23425 msgstr ""
23426
23427 #. type: =head2
23428 #: ../fish/guestfish-actions.pod:1353
23429 msgid "get-network"
23430 msgstr ""
23431
23432 #. type: verbatim
23433 #: ../fish/guestfish-actions.pod:1355
23434 #, no-wrap
23435 msgid ""
23436 " get-network\n"
23437 "\n"
23438 msgstr ""
23439
23440 #. type: =head2
23441 #: ../fish/guestfish-actions.pod:1359
23442 msgid "get-path"
23443 msgstr ""
23444
23445 #. type: verbatim
23446 #: ../fish/guestfish-actions.pod:1361
23447 #, no-wrap
23448 msgid ""
23449 " get-path\n"
23450 "\n"
23451 msgstr ""
23452
23453 #. type: =head2
23454 #: ../fish/guestfish-actions.pod:1368
23455 msgid "get-pid"
23456 msgstr ""
23457
23458 #. type: =head2
23459 #: ../fish/guestfish-actions.pod:1370
23460 msgid "pid"
23461 msgstr ""
23462
23463 #. type: verbatim
23464 #: ../fish/guestfish-actions.pod:1372
23465 #, no-wrap
23466 msgid ""
23467 " get-pid\n"
23468 "\n"
23469 msgstr ""
23470
23471 #. type: =head2
23472 #: ../fish/guestfish-actions.pod:1379
23473 msgid "get-qemu"
23474 msgstr ""
23475
23476 #. type: verbatim
23477 #: ../fish/guestfish-actions.pod:1381
23478 #, no-wrap
23479 msgid ""
23480 " get-qemu\n"
23481 "\n"
23482 msgstr ""
23483
23484 #. type: =head2
23485 #: ../fish/guestfish-actions.pod:1388
23486 msgid "get-recovery-proc"
23487 msgstr ""
23488
23489 #. type: verbatim
23490 #: ../fish/guestfish-actions.pod:1390
23491 #, no-wrap
23492 msgid ""
23493 " get-recovery-proc\n"
23494 "\n"
23495 msgstr ""
23496
23497 #. type: =head2
23498 #: ../fish/guestfish-actions.pod:1394
23499 msgid "get-selinux"
23500 msgstr ""
23501
23502 #. type: verbatim
23503 #: ../fish/guestfish-actions.pod:1396
23504 #, no-wrap
23505 msgid ""
23506 " get-selinux\n"
23507 "\n"
23508 msgstr ""
23509
23510 #. type: textblock
23511 #: ../fish/guestfish-actions.pod:1398
23512 msgid ""
23513 "This returns the current setting of the selinux flag which is passed to the "
23514 "appliance at boot time.  See L</set-selinux>."
23515 msgstr ""
23516
23517 #. type: =head2
23518 #: ../fish/guestfish-actions.pod:1404
23519 msgid "get-state"
23520 msgstr ""
23521
23522 #. type: verbatim
23523 #: ../fish/guestfish-actions.pod:1406
23524 #, no-wrap
23525 msgid ""
23526 " get-state\n"
23527 "\n"
23528 msgstr ""
23529
23530 #. type: =head2
23531 #: ../fish/guestfish-actions.pod:1413
23532 msgid "get-trace"
23533 msgstr ""
23534
23535 #. type: verbatim
23536 #: ../fish/guestfish-actions.pod:1415
23537 #, no-wrap
23538 msgid ""
23539 " get-trace\n"
23540 "\n"
23541 msgstr ""
23542
23543 #. type: =head2
23544 #: ../fish/guestfish-actions.pod:1419
23545 msgid "get-umask"
23546 msgstr ""
23547
23548 #. type: verbatim
23549 #: ../fish/guestfish-actions.pod:1421
23550 #, no-wrap
23551 msgid ""
23552 " get-umask\n"
23553 "\n"
23554 msgstr ""
23555
23556 #. type: textblock
23557 #: ../fish/guestfish-actions.pod:1423
23558 msgid ""
23559 "Return the current umask.  By default the umask is C<022> unless it has been "
23560 "set by calling L</umask>."
23561 msgstr ""
23562
23563 #. type: =head2
23564 #: ../fish/guestfish-actions.pod:1426
23565 msgid "get-verbose"
23566 msgstr ""
23567
23568 #. type: verbatim
23569 #: ../fish/guestfish-actions.pod:1428
23570 #, no-wrap
23571 msgid ""
23572 " get-verbose\n"
23573 "\n"
23574 msgstr ""
23575
23576 #. type: =head2
23577 #: ../fish/guestfish-actions.pod:1432
23578 msgid "getcon"
23579 msgstr ""
23580
23581 #. type: verbatim
23582 #: ../fish/guestfish-actions.pod:1434
23583 #, no-wrap
23584 msgid ""
23585 " getcon\n"
23586 "\n"
23587 msgstr ""
23588
23589 #. type: textblock
23590 #: ../fish/guestfish-actions.pod:1438
23591 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
23592 msgstr ""
23593
23594 #. type: =head2
23595 #: ../fish/guestfish-actions.pod:1441
23596 msgid "getxattr"
23597 msgstr ""
23598
23599 #. type: verbatim
23600 #: ../fish/guestfish-actions.pod:1443
23601 #, no-wrap
23602 msgid ""
23603 " getxattr path name\n"
23604 "\n"
23605 msgstr ""
23606
23607 #. type: textblock
23608 #: ../fish/guestfish-actions.pod:1445
23609 msgid ""
23610 "Get a single extended attribute from file C<path> named C<name>.  This call "
23611 "follows symlinks.  If you want to lookup an extended attribute for the "
23612 "symlink itself, use L</lgetxattr>."
23613 msgstr ""
23614
23615 #. type: textblock
23616 #: ../fish/guestfish-actions.pod:1449 ../fish/guestfish-actions.pod:2470
23617 msgid ""
23618 "Normally it is better to get all extended attributes from a file in one go "
23619 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
23620 "buggy and do not provide a way to list out attributes.  For these "
23621 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
23622 "attributes you want in advance and call this function."
23623 msgstr ""
23624
23625 #. type: textblock
23626 #: ../fish/guestfish-actions.pod:1459
23627 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
23628 msgstr ""
23629
23630 #. type: =head2
23631 #: ../fish/guestfish-actions.pod:1461
23632 msgid "getxattrs"
23633 msgstr ""
23634
23635 #. type: verbatim
23636 #: ../fish/guestfish-actions.pod:1463
23637 #, no-wrap
23638 msgid ""
23639 " getxattrs path\n"
23640 "\n"
23641 msgstr ""
23642
23643 #. type: textblock
23644 #: ../fish/guestfish-actions.pod:1471
23645 msgid "See also: L</lgetxattrs>, L<attr(5)>."
23646 msgstr ""
23647
23648 #. type: =head2
23649 #: ../fish/guestfish-actions.pod:1473
23650 msgid "glob-expand"
23651 msgstr ""
23652
23653 #. type: verbatim
23654 #: ../fish/guestfish-actions.pod:1475
23655 #, no-wrap
23656 msgid ""
23657 " glob-expand pattern\n"
23658 "\n"
23659 msgstr ""
23660
23661 #. type: =head2
23662 #: ../fish/guestfish-actions.pod:1488
23663 msgid "grep"
23664 msgstr ""
23665
23666 #. type: verbatim
23667 #: ../fish/guestfish-actions.pod:1490
23668 #, no-wrap
23669 msgid ""
23670 " grep regex path\n"
23671 "\n"
23672 msgstr ""
23673
23674 #. type: =head2
23675 #: ../fish/guestfish-actions.pod:1498
23676 msgid "grepi"
23677 msgstr ""
23678
23679 #. type: verbatim
23680 #: ../fish/guestfish-actions.pod:1500
23681 #, no-wrap
23682 msgid ""
23683 " grepi regex path\n"
23684 "\n"
23685 msgstr ""
23686
23687 #. type: =head2
23688 #: ../fish/guestfish-actions.pod:1508
23689 msgid "grub-install"
23690 msgstr ""
23691
23692 #. type: verbatim
23693 #: ../fish/guestfish-actions.pod:1510
23694 #, no-wrap
23695 msgid ""
23696 " grub-install root device\n"
23697 "\n"
23698 msgstr ""
23699
23700 #. type: =head2
23701 #: ../fish/guestfish-actions.pod:1526
23702 msgid "head"
23703 msgstr ""
23704
23705 #. type: verbatim
23706 #: ../fish/guestfish-actions.pod:1528
23707 #, no-wrap
23708 msgid ""
23709 " head path\n"
23710 "\n"
23711 msgstr ""
23712
23713 #. type: =head2
23714 #: ../fish/guestfish-actions.pod:1536
23715 msgid "head-n"
23716 msgstr ""
23717
23718 #. type: verbatim
23719 #: ../fish/guestfish-actions.pod:1538
23720 #, no-wrap
23721 msgid ""
23722 " head-n nrlines path\n"
23723 "\n"
23724 msgstr ""
23725
23726 #. type: =head2
23727 #: ../fish/guestfish-actions.pod:1551
23728 msgid "hexdump"
23729 msgstr ""
23730
23731 #. type: verbatim
23732 #: ../fish/guestfish-actions.pod:1553
23733 #, no-wrap
23734 msgid ""
23735 " hexdump path\n"
23736 "\n"
23737 msgstr ""
23738
23739 #. type: =head2
23740 #: ../fish/guestfish-actions.pod:1561
23741 msgid "initrd-cat"
23742 msgstr ""
23743
23744 #. type: verbatim
23745 #: ../fish/guestfish-actions.pod:1563
23746 #, no-wrap
23747 msgid ""
23748 " initrd-cat initrdpath filename\n"
23749 "\n"
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../fish/guestfish-actions.pod:1575
23754 msgid "See also L</initrd-list>."
23755 msgstr ""
23756
23757 #. type: =head2
23758 #: ../fish/guestfish-actions.pod:1580
23759 msgid "initrd-list"
23760 msgstr ""
23761
23762 #. type: verbatim
23763 #: ../fish/guestfish-actions.pod:1582
23764 #, no-wrap
23765 msgid ""
23766 " initrd-list path\n"
23767 "\n"
23768 msgstr ""
23769
23770 #. type: =head2
23771 #: ../fish/guestfish-actions.pod:1594
23772 msgid "inotify-add-watch"
23773 msgstr ""
23774
23775 #. type: verbatim
23776 #: ../fish/guestfish-actions.pod:1596
23777 #, no-wrap
23778 msgid ""
23779 " inotify-add-watch path mask\n"
23780 "\n"
23781 msgstr ""
23782
23783 #. type: =head2
23784 #: ../fish/guestfish-actions.pod:1608
23785 msgid "inotify-close"
23786 msgstr ""
23787
23788 #. type: verbatim
23789 #: ../fish/guestfish-actions.pod:1610
23790 #, no-wrap
23791 msgid ""
23792 " inotify-close\n"
23793 "\n"
23794 msgstr ""
23795
23796 #. type: =head2
23797 #: ../fish/guestfish-actions.pod:1616
23798 msgid "inotify-files"
23799 msgstr ""
23800
23801 #. type: verbatim
23802 #: ../fish/guestfish-actions.pod:1618
23803 #, no-wrap
23804 msgid ""
23805 " inotify-files\n"
23806 "\n"
23807 msgstr ""
23808
23809 #. type: textblock
23810 #: ../fish/guestfish-actions.pod:1620
23811 msgid ""
23812 "This function is a helpful wrapper around L</inotify-read> which just "
23813 "returns a list of pathnames of objects that were touched.  The returned "
23814 "pathnames are sorted and deduplicated."
23815 msgstr ""
23816
23817 #. type: =head2
23818 #: ../fish/guestfish-actions.pod:1624
23819 msgid "inotify-init"
23820 msgstr ""
23821
23822 #. type: verbatim
23823 #: ../fish/guestfish-actions.pod:1626
23824 #, no-wrap
23825 msgid ""
23826 " inotify-init maxevents\n"
23827 "\n"
23828 msgstr ""
23829
23830 #. type: textblock
23831 #: ../fish/guestfish-actions.pod:1632
23832 msgid ""
23833 "C<maxevents> is the maximum number of events which will be queued up between "
23834 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
23835 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
23836 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
23837 "but records the fact that it threw them away by setting a flag "
23838 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
23839 msgstr ""
23840
23841 #. type: textblock
23842 #: ../fish/guestfish-actions.pod:1642
23843 msgid ""
23844 "Before any events are generated, you have to add some watches to the "
23845 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
23846 "L</inotify-watch-all>."
23847 msgstr ""
23848
23849 #. type: textblock
23850 #: ../fish/guestfish-actions.pod:1648
23851 msgid ""
23852 "Queued up events should be read periodically by calling L</inotify-read> (or "
23853 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
23854 "If you don't read the events out often enough then you risk the internal "
23855 "queue overflowing."
23856 msgstr ""
23857
23858 #. type: textblock
23859 #: ../fish/guestfish-actions.pod:1655
23860 msgid ""
23861 "The handle should be closed after use by calling L</inotify-close>.  This "
23862 "also removes any watches automatically."
23863 msgstr ""
23864
23865 #. type: =head2
23866 #: ../fish/guestfish-actions.pod:1664
23867 msgid "inotify-read"
23868 msgstr ""
23869
23870 #. type: verbatim
23871 #: ../fish/guestfish-actions.pod:1666
23872 #, no-wrap
23873 msgid ""
23874 " inotify-read\n"
23875 "\n"
23876 msgstr ""
23877
23878 #. type: =head2
23879 #: ../fish/guestfish-actions.pod:1679
23880 msgid "inotify-rm-watch"
23881 msgstr ""
23882
23883 #. type: verbatim
23884 #: ../fish/guestfish-actions.pod:1681
23885 #, no-wrap
23886 msgid ""
23887 " inotify-rm-watch wd\n"
23888 "\n"
23889 msgstr ""
23890
23891 #. type: textblock
23892 #: ../fish/guestfish-actions.pod:1683
23893 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
23894 msgstr ""
23895
23896 #. type: =head2
23897 #: ../fish/guestfish-actions.pod:1686
23898 msgid "inspect-get-arch"
23899 msgstr ""
23900
23901 #. type: verbatim
23902 #: ../fish/guestfish-actions.pod:1688
23903 #, no-wrap
23904 msgid ""
23905 " inspect-get-arch root\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: textblock
23910 #: ../fish/guestfish-actions.pod:1690 ../fish/guestfish-actions.pod:1706
23911 #: ../fish/guestfish-actions.pod:1792 ../fish/guestfish-actions.pod:1828
23912 #: ../fish/guestfish-actions.pod:1846 ../fish/guestfish-actions.pod:1880
23913 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1916
23914 #: ../fish/guestfish-actions.pod:1931 ../fish/guestfish-actions.pod:1964
23915 #: ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2010
23916 #: ../fish/guestfish-actions.pod:2027 ../fish/guestfish-actions.pod:2070
23917 #: ../fish/guestfish-actions.pod:2105 ../fish/guestfish-actions.pod:2121
23918 #: ../fish/guestfish-actions.pod:2137 ../fish/guestfish-actions.pod:2150
23919 #: ../fish/guestfish-actions.pod:2163 ../fish/guestfish-actions.pod:2178
23920 msgid ""
23921 "This function should only be called with a root device string as returned by "
23922 "L</inspect-os>."
23923 msgstr ""
23924
23925 #. type: textblock
23926 #: ../fish/guestfish-actions.pod:1693
23927 msgid ""
23928 "This returns the architecture of the inspected operating system.  The "
23929 "possible return values are listed under L</file-architecture>."
23930 msgstr ""
23931
23932 #. type: =head2
23933 #: ../fish/guestfish-actions.pod:1702
23934 msgid "inspect-get-distro"
23935 msgstr ""
23936
23937 #. type: verbatim
23938 #: ../fish/guestfish-actions.pod:1704
23939 #, no-wrap
23940 msgid ""
23941 " inspect-get-distro root\n"
23942 "\n"
23943 msgstr ""
23944
23945 #. type: =head2
23946 #: ../fish/guestfish-actions.pod:1788
23947 msgid "inspect-get-drive-mappings"
23948 msgstr ""
23949
23950 #. type: verbatim
23951 #: ../fish/guestfish-actions.pod:1790
23952 #, no-wrap
23953 msgid ""
23954 " inspect-get-drive-mappings root\n"
23955 "\n"
23956 msgstr ""
23957
23958 #. type: textblock
23959 #: ../fish/guestfish-actions.pod:1820
23960 msgid ""
23961 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23962 "get-mountpoints>, L</inspect-get-filesystems>."
23963 msgstr ""
23964
23965 #. type: =head2
23966 #: ../fish/guestfish-actions.pod:1824
23967 msgid "inspect-get-filesystems"
23968 msgstr ""
23969
23970 #. type: verbatim
23971 #: ../fish/guestfish-actions.pod:1826
23972 #, no-wrap
23973 msgid ""
23974 " inspect-get-filesystems root\n"
23975 "\n"
23976 msgstr ""
23977
23978 #. type: textblock
23979 #: ../fish/guestfish-actions.pod:1839
23980 msgid ""
23981 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23982 "get-mountpoints>."
23983 msgstr ""
23984
23985 #. type: =head2
23986 #: ../fish/guestfish-actions.pod:1842
23987 msgid "inspect-get-format"
23988 msgstr ""
23989
23990 #. type: verbatim
23991 #: ../fish/guestfish-actions.pod:1844
23992 #, no-wrap
23993 msgid ""
23994 " inspect-get-format root\n"
23995 "\n"
23996 msgstr ""
23997
23998 #. type: =head2
23999 #: ../fish/guestfish-actions.pod:1876
24000 msgid "inspect-get-hostname"
24001 msgstr ""
24002
24003 #. type: verbatim
24004 #: ../fish/guestfish-actions.pod:1878
24005 #, no-wrap
24006 msgid ""
24007 " inspect-get-hostname root\n"
24008 "\n"
24009 msgstr ""
24010
24011 #. type: =head2
24012 #: ../fish/guestfish-actions.pod:1891
24013 msgid "inspect-get-major-version"
24014 msgstr ""
24015
24016 #. type: verbatim
24017 #: ../fish/guestfish-actions.pod:1893
24018 #, no-wrap
24019 msgid ""
24020 " inspect-get-major-version root\n"
24021 "\n"
24022 msgstr ""
24023
24024 #. type: =head2
24025 #: ../fish/guestfish-actions.pod:1912
24026 msgid "inspect-get-minor-version"
24027 msgstr ""
24028
24029 #. type: verbatim
24030 #: ../fish/guestfish-actions.pod:1914
24031 #, no-wrap
24032 msgid ""
24033 " inspect-get-minor-version root\n"
24034 "\n"
24035 msgstr ""
24036
24037 #. type: textblock
24038 #: ../fish/guestfish-actions.pod:1924
24039 msgid ""
24040 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24041 "get-major-version>."
24042 msgstr ""
24043
24044 #. type: =head2
24045 #: ../fish/guestfish-actions.pod:1927
24046 msgid "inspect-get-mountpoints"
24047 msgstr ""
24048
24049 #. type: verbatim
24050 #: ../fish/guestfish-actions.pod:1929
24051 #, no-wrap
24052 msgid ""
24053 " inspect-get-mountpoints root\n"
24054 "\n"
24055 msgstr ""
24056
24057 #. type: textblock
24058 #: ../fish/guestfish-actions.pod:1951
24059 msgid ""
24060 "For operating systems like Windows which still use drive letters, this call "
24061 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24062 "information about the mapping of drive letters to partitions, see L</inspect-"
24063 "get-drive-mappings>."
24064 msgstr ""
24065
24066 #. type: textblock
24067 #: ../fish/guestfish-actions.pod:1957
24068 msgid ""
24069 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24070 "get-filesystems>."
24071 msgstr ""
24072
24073 #. type: =head2
24074 #: ../fish/guestfish-actions.pod:1960
24075 msgid "inspect-get-package-format"
24076 msgstr ""
24077
24078 #. type: verbatim
24079 #: ../fish/guestfish-actions.pod:1962
24080 #, no-wrap
24081 msgid ""
24082 " inspect-get-package-format root\n"
24083 "\n"
24084 msgstr ""
24085
24086 #. type: textblock
24087 #: ../fish/guestfish-actions.pod:1967
24088 msgid ""
24089 "This function and L</inspect-get-package-management> return the package "
24090 "format and package management tool used by the inspected operating system.  "
24091 "For example for Fedora these functions would return C<rpm> (package format) "
24092 "and C<yum> (package management)."
24093 msgstr ""
24094
24095 #. type: =head2
24096 #: ../fish/guestfish-actions.pod:1982
24097 msgid "inspect-get-package-management"
24098 msgstr ""
24099
24100 #. type: verbatim
24101 #: ../fish/guestfish-actions.pod:1984
24102 #, no-wrap
24103 msgid ""
24104 " inspect-get-package-management root\n"
24105 "\n"
24106 msgstr ""
24107
24108 #. type: textblock
24109 #: ../fish/guestfish-actions.pod:1989
24110 msgid ""
24111 "L</inspect-get-package-format> and this function return the package format "
24112 "and package management tool used by the inspected operating system.  For "
24113 "example for Fedora these functions would return C<rpm> (package format) and "
24114 "C<yum> (package management)."
24115 msgstr ""
24116
24117 #. type: =head2
24118 #: ../fish/guestfish-actions.pod:2006
24119 msgid "inspect-get-product-name"
24120 msgstr ""
24121
24122 #. type: verbatim
24123 #: ../fish/guestfish-actions.pod:2008
24124 #, no-wrap
24125 msgid ""
24126 " inspect-get-product-name root\n"
24127 "\n"
24128 msgstr ""
24129
24130 #. type: =head2
24131 #: ../fish/guestfish-actions.pod:2023
24132 msgid "inspect-get-product-variant"
24133 msgstr ""
24134
24135 #. type: verbatim
24136 #: ../fish/guestfish-actions.pod:2025
24137 #, no-wrap
24138 msgid ""
24139 " inspect-get-product-variant root\n"
24140 "\n"
24141 msgstr ""
24142
24143 #. type: textblock
24144 #: ../fish/guestfish-actions.pod:2049
24145 msgid ""
24146 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24147 "get-product-name>, L</inspect-get-major-version>."
24148 msgstr ""
24149
24150 #. type: =head2
24151 #: ../fish/guestfish-actions.pod:2053
24152 msgid "inspect-get-roots"
24153 msgstr ""
24154
24155 #. type: verbatim
24156 #: ../fish/guestfish-actions.pod:2055
24157 #, no-wrap
24158 msgid ""
24159 " inspect-get-roots\n"
24160 "\n"
24161 msgstr ""
24162
24163 #. type: textblock
24164 #: ../fish/guestfish-actions.pod:2057
24165 msgid ""
24166 "This function is a convenient way to get the list of root devices, as "
24167 "returned from a previous call to L</inspect-os>, but without redoing the "
24168 "whole inspection process."
24169 msgstr ""
24170
24171 #. type: textblock
24172 #: ../fish/guestfish-actions.pod:2061
24173 msgid ""
24174 "This returns an empty list if either no root devices were found or the "
24175 "caller has not called L</inspect-os>."
24176 msgstr ""
24177
24178 #. type: =head2
24179 #: ../fish/guestfish-actions.pod:2066
24180 msgid "inspect-get-type"
24181 msgstr ""
24182
24183 #. type: verbatim
24184 #: ../fish/guestfish-actions.pod:2068
24185 #, no-wrap
24186 msgid ""
24187 " inspect-get-type root\n"
24188 "\n"
24189 msgstr ""
24190
24191 #. type: =head2
24192 #: ../fish/guestfish-actions.pod:2101
24193 msgid "inspect-get-windows-current-control-set"
24194 msgstr ""
24195
24196 #. type: verbatim
24197 #: ../fish/guestfish-actions.pod:2103
24198 #, no-wrap
24199 msgid ""
24200 " inspect-get-windows-current-control-set root\n"
24201 "\n"
24202 msgstr ""
24203
24204 #. type: =head2
24205 #: ../fish/guestfish-actions.pod:2117
24206 msgid "inspect-get-windows-systemroot"
24207 msgstr ""
24208
24209 #. type: verbatim
24210 #: ../fish/guestfish-actions.pod:2119
24211 #, no-wrap
24212 msgid ""
24213 " inspect-get-windows-systemroot root\n"
24214 "\n"
24215 msgstr ""
24216
24217 #. type: =head2
24218 #: ../fish/guestfish-actions.pod:2133
24219 msgid "inspect-is-live"
24220 msgstr ""
24221
24222 #. type: verbatim
24223 #: ../fish/guestfish-actions.pod:2135
24224 #, no-wrap
24225 msgid ""
24226 " inspect-is-live root\n"
24227 "\n"
24228 msgstr ""
24229
24230 #. type: textblock
24231 #: ../fish/guestfish-actions.pod:2140
24232 msgid ""
24233 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24234 "then this returns true if a live image was detected on the disk."
24235 msgstr ""
24236
24237 #. type: =head2
24238 #: ../fish/guestfish-actions.pod:2146
24239 msgid "inspect-is-multipart"
24240 msgstr ""
24241
24242 #. type: verbatim
24243 #: ../fish/guestfish-actions.pod:2148
24244 #, no-wrap
24245 msgid ""
24246 " inspect-is-multipart root\n"
24247 "\n"
24248 msgstr ""
24249
24250 #. type: textblock
24251 #: ../fish/guestfish-actions.pod:2153
24252 msgid ""
24253 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24254 "then this returns true if the disk is part of a set."
24255 msgstr ""
24256
24257 #. type: =head2
24258 #: ../fish/guestfish-actions.pod:2159
24259 msgid "inspect-is-netinst"
24260 msgstr ""
24261
24262 #. type: verbatim
24263 #: ../fish/guestfish-actions.pod:2161
24264 #, no-wrap
24265 msgid ""
24266 " inspect-is-netinst root\n"
24267 "\n"
24268 msgstr ""
24269
24270 #. type: textblock
24271 #: ../fish/guestfish-actions.pod:2166
24272 msgid ""
24273 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24274 "then this returns true if the disk is a network installer, ie. not a self-"
24275 "contained install CD but one which is likely to require network access to "
24276 "complete the install."
24277 msgstr ""
24278
24279 #. type: =head2
24280 #: ../fish/guestfish-actions.pod:2174
24281 msgid "inspect-list-applications"
24282 msgstr ""
24283
24284 #. type: verbatim
24285 #: ../fish/guestfish-actions.pod:2176
24286 #, no-wrap
24287 msgid ""
24288 " inspect-list-applications root\n"
24289 "\n"
24290 msgstr ""
24291
24292 #. type: textblock
24293 #: ../fish/guestfish-actions.pod:2183
24294 msgid ""
24295 "I<Note:> This call works differently from other parts of the inspection "
24296 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
24297 "then mount up the disks, before calling this.  Listing applications is a "
24298 "significantly more difficult operation which requires access to the full "
24299 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
24300 "are just returning data cached in the libguestfs handle, this call actually "
24301 "reads parts of the mounted filesystems during the call."
24302 msgstr ""
24303
24304 #. type: =head2
24305 #: ../fish/guestfish-actions.pod:2273
24306 msgid "inspect-os"
24307 msgstr ""
24308
24309 #. type: verbatim
24310 #: ../fish/guestfish-actions.pod:2275
24311 #, no-wrap
24312 msgid ""
24313 " inspect-os\n"
24314 "\n"
24315 msgstr ""
24316
24317 #. type: textblock
24318 #: ../fish/guestfish-actions.pod:2290
24319 msgid ""
24320 "You can pass the root string(s) returned to other L</inspect-get-*> "
24321 "functions in order to query further information about each operating system, "
24322 "such as the name and version."
24323 msgstr ""
24324
24325 #. type: textblock
24326 #: ../fish/guestfish-actions.pod:2295
24327 msgid ""
24328 "This function uses other libguestfs features such as L</mount-ro> and L</"
24329 "umount-all> in order to mount and unmount filesystems and look at the "
24330 "contents.  This should be called with no disks currently mounted.  The "
24331 "function may also use Augeas, so any existing Augeas handle will be closed."
24332 msgstr ""
24333
24334 #. type: textblock
24335 #: ../fish/guestfish-actions.pod:2307 ../fish/guestfish-actions.pod:2498
24336 #: ../fish/guestfish-actions.pod:2544
24337 msgid "See also L</list-filesystems>."
24338 msgstr ""
24339
24340 #. type: =head2
24341 #: ../fish/guestfish-actions.pod:2309
24342 msgid "is-blockdev"
24343 msgstr ""
24344
24345 #. type: verbatim
24346 #: ../fish/guestfish-actions.pod:2311
24347 #, no-wrap
24348 msgid ""
24349 " is-blockdev path\n"
24350 "\n"
24351 msgstr ""
24352
24353 #. type: textblock
24354 #: ../fish/guestfish-actions.pod:2316 ../fish/guestfish-actions.pod:2334
24355 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2362
24356 #: ../fish/guestfish-actions.pod:2372 ../fish/guestfish-actions.pod:2406
24357 #: ../fish/guestfish-actions.pod:2415
24358 msgid "See also L</stat>."
24359 msgstr ""
24360
24361 #. type: =head2
24362 #: ../fish/guestfish-actions.pod:2318
24363 msgid "is-busy"
24364 msgstr ""
24365
24366 #. type: verbatim
24367 #: ../fish/guestfish-actions.pod:2320
24368 #, no-wrap
24369 msgid ""
24370 " is-busy\n"
24371 "\n"
24372 msgstr ""
24373
24374 #. type: =head2
24375 #: ../fish/guestfish-actions.pod:2327
24376 msgid "is-chardev"
24377 msgstr ""
24378
24379 #. type: verbatim
24380 #: ../fish/guestfish-actions.pod:2329
24381 #, no-wrap
24382 msgid ""
24383 " is-chardev path\n"
24384 "\n"
24385 msgstr ""
24386
24387 #. type: =head2
24388 #: ../fish/guestfish-actions.pod:2336
24389 msgid "is-config"
24390 msgstr ""
24391
24392 #. type: verbatim
24393 #: ../fish/guestfish-actions.pod:2338
24394 #, no-wrap
24395 msgid ""
24396 " is-config\n"
24397 "\n"
24398 msgstr ""
24399
24400 #. type: =head2
24401 #: ../fish/guestfish-actions.pod:2345
24402 msgid "is-dir"
24403 msgstr ""
24404
24405 #. type: verbatim
24406 #: ../fish/guestfish-actions.pod:2347
24407 #, no-wrap
24408 msgid ""
24409 " is-dir path\n"
24410 "\n"
24411 msgstr ""
24412
24413 #. type: =head2
24414 #: ../fish/guestfish-actions.pod:2355
24415 msgid "is-fifo"
24416 msgstr ""
24417
24418 #. type: verbatim
24419 #: ../fish/guestfish-actions.pod:2357
24420 #, no-wrap
24421 msgid ""
24422 " is-fifo path\n"
24423 "\n"
24424 msgstr ""
24425
24426 #. type: =head2
24427 #: ../fish/guestfish-actions.pod:2364
24428 msgid "is-file"
24429 msgstr ""
24430
24431 #. type: verbatim
24432 #: ../fish/guestfish-actions.pod:2366
24433 #, no-wrap
24434 msgid ""
24435 " is-file path\n"
24436 "\n"
24437 msgstr ""
24438
24439 #. type: =head2
24440 #: ../fish/guestfish-actions.pod:2374
24441 msgid "is-launching"
24442 msgstr ""
24443
24444 #. type: verbatim
24445 #: ../fish/guestfish-actions.pod:2376
24446 #, no-wrap
24447 msgid ""
24448 " is-launching\n"
24449 "\n"
24450 msgstr ""
24451
24452 #. type: =head2
24453 #: ../fish/guestfish-actions.pod:2383
24454 msgid "is-lv"
24455 msgstr ""
24456
24457 #. type: verbatim
24458 #: ../fish/guestfish-actions.pod:2385
24459 #, no-wrap
24460 msgid ""
24461 " is-lv device\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: =head2
24466 #: ../fish/guestfish-actions.pod:2390
24467 msgid "is-ready"
24468 msgstr ""
24469
24470 #. type: verbatim
24471 #: ../fish/guestfish-actions.pod:2392
24472 #, no-wrap
24473 msgid ""
24474 " is-ready\n"
24475 "\n"
24476 msgstr ""
24477
24478 #. type: =head2
24479 #: ../fish/guestfish-actions.pod:2399
24480 msgid "is-socket"
24481 msgstr ""
24482
24483 #. type: verbatim
24484 #: ../fish/guestfish-actions.pod:2401
24485 #, no-wrap
24486 msgid ""
24487 " is-socket path\n"
24488 "\n"
24489 msgstr ""
24490
24491 #. type: =head2
24492 #: ../fish/guestfish-actions.pod:2408
24493 msgid "is-symlink"
24494 msgstr ""
24495
24496 #. type: verbatim
24497 #: ../fish/guestfish-actions.pod:2410
24498 #, no-wrap
24499 msgid ""
24500 " is-symlink path\n"
24501 "\n"
24502 msgstr ""
24503
24504 #. type: =head2
24505 #: ../fish/guestfish-actions.pod:2417
24506 msgid "is-zero"
24507 msgstr ""
24508
24509 #. type: verbatim
24510 #: ../fish/guestfish-actions.pod:2419
24511 #, no-wrap
24512 msgid ""
24513 " is-zero path\n"
24514 "\n"
24515 msgstr ""
24516
24517 #. type: =head2
24518 #: ../fish/guestfish-actions.pod:2424
24519 msgid "is-zero-device"
24520 msgstr ""
24521
24522 #. type: verbatim
24523 #: ../fish/guestfish-actions.pod:2426
24524 #, no-wrap
24525 msgid ""
24526 " is-zero-device device\n"
24527 "\n"
24528 msgstr ""
24529
24530 #. type: =head2
24531 #: ../fish/guestfish-actions.pod:2432
24532 msgid "kill-subprocess"
24533 msgstr ""
24534
24535 #. type: verbatim
24536 #: ../fish/guestfish-actions.pod:2434
24537 #, no-wrap
24538 msgid ""
24539 " kill-subprocess\n"
24540 "\n"
24541 msgstr ""
24542
24543 #. type: =head2
24544 #: ../fish/guestfish-actions.pod:2438
24545 msgid "launch"
24546 msgstr ""
24547
24548 #. type: =head2
24549 #: ../fish/guestfish-actions.pod:2440
24550 msgid "run"
24551 msgstr ""
24552
24553 #. type: verbatim
24554 #: ../fish/guestfish-actions.pod:2442
24555 #, no-wrap
24556 msgid ""
24557 " launch\n"
24558 "\n"
24559 msgstr ""
24560
24561 #. type: =head2
24562 #: ../fish/guestfish-actions.pod:2450
24563 msgid "lchown"
24564 msgstr ""
24565
24566 #. type: verbatim
24567 #: ../fish/guestfish-actions.pod:2452
24568 #, no-wrap
24569 msgid ""
24570 " lchown owner group path\n"
24571 "\n"
24572 msgstr ""
24573
24574 #. type: textblock
24575 #: ../fish/guestfish-actions.pod:2454
24576 msgid ""
24577 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
24578 "chown> but if C<path> is a symlink then the link itself is changed, not the "
24579 "target."
24580 msgstr ""
24581
24582 #. type: =head2
24583 #: ../fish/guestfish-actions.pod:2462
24584 msgid "lgetxattr"
24585 msgstr ""
24586
24587 #. type: verbatim
24588 #: ../fish/guestfish-actions.pod:2464
24589 #, no-wrap
24590 msgid ""
24591 " lgetxattr path name\n"
24592 "\n"
24593 msgstr ""
24594
24595 #. type: textblock
24596 #: ../fish/guestfish-actions.pod:2480
24597 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
24598 msgstr ""
24599
24600 #. type: =head2
24601 #: ../fish/guestfish-actions.pod:2482
24602 msgid "lgetxattrs"
24603 msgstr ""
24604
24605 #. type: verbatim
24606 #: ../fish/guestfish-actions.pod:2484
24607 #, no-wrap
24608 msgid ""
24609 " lgetxattrs path\n"
24610 "\n"
24611 msgstr ""
24612
24613 #. type: textblock
24614 #: ../fish/guestfish-actions.pod:2486
24615 msgid ""
24616 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
24617 "it returns the extended attributes of the link itself."
24618 msgstr ""
24619
24620 #. type: =head2
24621 #: ../fish/guestfish-actions.pod:2490
24622 msgid "list-devices"
24623 msgstr ""
24624
24625 #. type: verbatim
24626 #: ../fish/guestfish-actions.pod:2492
24627 #, no-wrap
24628 msgid ""
24629 " list-devices\n"
24630 "\n"
24631 msgstr ""
24632
24633 #. type: =head2
24634 #: ../fish/guestfish-actions.pod:2500
24635 msgid "list-filesystems"
24636 msgstr ""
24637
24638 #. type: verbatim
24639 #: ../fish/guestfish-actions.pod:2502
24640 #, no-wrap
24641 msgid ""
24642 " list-filesystems\n"
24643 "\n"
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../fish/guestfish-actions.pod:2521
24648 msgid ""
24649 "This command runs other libguestfs commands, which might include L</mount> "
24650 "and L</umount>, and therefore you should use this soon after launch and only "
24651 "when nothing is mounted."
24652 msgstr ""
24653
24654 #. type: textblock
24655 #: ../fish/guestfish-actions.pod:2525
24656 msgid ""
24657 "Not all of the filesystems returned will be mountable.  In particular, swap "
24658 "partitions are returned in the list.  Also this command does not check that "
24659 "each filesystem found is valid and mountable, and some filesystems might be "
24660 "mountable but require special options.  Filesystems may not all belong to a "
24661 "single logical operating system (use L</inspect-os> to look for OSes)."
24662 msgstr ""
24663
24664 #. type: =head2
24665 #: ../fish/guestfish-actions.pod:2533
24666 msgid "list-partitions"
24667 msgstr ""
24668
24669 #. type: verbatim
24670 #: ../fish/guestfish-actions.pod:2535
24671 #, no-wrap
24672 msgid ""
24673 " list-partitions\n"
24674 "\n"
24675 msgstr ""
24676
24677 #. type: textblock
24678 #: ../fish/guestfish-actions.pod:2541
24679 msgid ""
24680 "This does not return logical volumes.  For that you will need to call L</"
24681 "lvs>."
24682 msgstr ""
24683
24684 #. type: =head2
24685 #: ../fish/guestfish-actions.pod:2546
24686 msgid "ll"
24687 msgstr ""
24688
24689 #. type: verbatim
24690 #: ../fish/guestfish-actions.pod:2548
24691 #, no-wrap
24692 msgid ""
24693 " ll directory\n"
24694 "\n"
24695 msgstr ""
24696
24697 #. type: =head2
24698 #: ../fish/guestfish-actions.pod:2556
24699 msgid "ln"
24700 msgstr ""
24701
24702 #. type: verbatim
24703 #: ../fish/guestfish-actions.pod:2558
24704 #, no-wrap
24705 msgid ""
24706 " ln target linkname\n"
24707 "\n"
24708 msgstr ""
24709
24710 #. type: =head2
24711 #: ../fish/guestfish-actions.pod:2562
24712 msgid "ln-f"
24713 msgstr ""
24714
24715 #. type: verbatim
24716 #: ../fish/guestfish-actions.pod:2564
24717 #, no-wrap
24718 msgid ""
24719 " ln-f target linkname\n"
24720 "\n"
24721 msgstr ""
24722
24723 #. type: =head2
24724 #: ../fish/guestfish-actions.pod:2569
24725 msgid "ln-s"
24726 msgstr ""
24727
24728 #. type: verbatim
24729 #: ../fish/guestfish-actions.pod:2571
24730 #, no-wrap
24731 msgid ""
24732 " ln-s target linkname\n"
24733 "\n"
24734 msgstr ""
24735
24736 #. type: =head2
24737 #: ../fish/guestfish-actions.pod:2575
24738 msgid "ln-sf"
24739 msgstr ""
24740
24741 #. type: verbatim
24742 #: ../fish/guestfish-actions.pod:2577
24743 #, no-wrap
24744 msgid ""
24745 " ln-sf target linkname\n"
24746 "\n"
24747 msgstr ""
24748
24749 #. type: =head2
24750 #: ../fish/guestfish-actions.pod:2582
24751 msgid "lremovexattr"
24752 msgstr ""
24753
24754 #. type: verbatim
24755 #: ../fish/guestfish-actions.pod:2584
24756 #, no-wrap
24757 msgid ""
24758 " lremovexattr xattr path\n"
24759 "\n"
24760 msgstr ""
24761
24762 #. type: textblock
24763 #: ../fish/guestfish-actions.pod:2586
24764 msgid ""
24765 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
24766 "it removes an extended attribute of the link itself."
24767 msgstr ""
24768
24769 #. type: =head2
24770 #: ../fish/guestfish-actions.pod:2590
24771 msgid "ls"
24772 msgstr ""
24773
24774 #. type: verbatim
24775 #: ../fish/guestfish-actions.pod:2592
24776 #, no-wrap
24777 msgid ""
24778 " ls directory\n"
24779 "\n"
24780 msgstr ""
24781
24782 #. type: textblock
24783 #: ../fish/guestfish-actions.pod:2598
24784 msgid ""
24785 "This command is mostly useful for interactive sessions.  Programs should "
24786 "probably use L</readdir> instead."
24787 msgstr ""
24788
24789 #. type: =head2
24790 #: ../fish/guestfish-actions.pod:2601
24791 msgid "lsetxattr"
24792 msgstr ""
24793
24794 #. type: verbatim
24795 #: ../fish/guestfish-actions.pod:2603
24796 #, no-wrap
24797 msgid ""
24798 " lsetxattr xattr val vallen path\n"
24799 "\n"
24800 msgstr ""
24801
24802 #. type: textblock
24803 #: ../fish/guestfish-actions.pod:2605
24804 msgid ""
24805 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
24806 "sets an extended attribute of the link itself."
24807 msgstr ""
24808
24809 #. type: =head2
24810 #: ../fish/guestfish-actions.pod:2609
24811 msgid "lstat"
24812 msgstr ""
24813
24814 #. type: verbatim
24815 #: ../fish/guestfish-actions.pod:2611
24816 #, no-wrap
24817 msgid ""
24818 " lstat path\n"
24819 "\n"
24820 msgstr ""
24821
24822 #. type: textblock
24823 #: ../fish/guestfish-actions.pod:2615
24824 msgid ""
24825 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
24826 "the link is stat-ed, not the file it refers to."
24827 msgstr ""
24828
24829 #. type: =head2
24830 #: ../fish/guestfish-actions.pod:2621
24831 msgid "lstatlist"
24832 msgstr ""
24833
24834 #. type: verbatim
24835 #: ../fish/guestfish-actions.pod:2623
24836 #, no-wrap
24837 msgid ""
24838 " lstatlist path 'names ...'\n"
24839 "\n"
24840 msgstr ""
24841
24842 #. type: textblock
24843 #: ../fish/guestfish-actions.pod:2625
24844 msgid ""
24845 "This call allows you to perform the L</lstat> operation on multiple files, "
24846 "where all files are in the directory C<path>.  C<names> is the list of files "
24847 "from this directory."
24848 msgstr ""
24849
24850 #. type: textblock
24851 #: ../fish/guestfish-actions.pod:2634
24852 msgid ""
24853 "This call is intended for programs that want to efficiently list a directory "
24854 "contents without making many round-trips.  See also L</lxattrlist> for a "
24855 "similarly efficient call for getting extended attributes.  Very long "
24856 "directory listings might cause the protocol message size to be exceeded, "
24857 "causing this call to fail.  The caller must split up such requests into "
24858 "smaller groups of names."
24859 msgstr ""
24860
24861 #. type: =head2
24862 #: ../fish/guestfish-actions.pod:2642
24863 msgid "luks-add-key"
24864 msgstr ""
24865
24866 #. type: verbatim
24867 #: ../fish/guestfish-actions.pod:2644
24868 #, no-wrap
24869 msgid ""
24870 " luks-add-key device keyslot\n"
24871 "\n"
24872 msgstr ""
24873
24874 #. type: textblock
24875 #: ../fish/guestfish-actions.pod:2651
24876 msgid ""
24877 "Note that if C<keyslot> already contains a key, then this command will "
24878 "fail.  You have to use L</luks-kill-slot> first to remove that key."
24879 msgstr ""
24880
24881 #. type: textblock
24882 #: ../fish/guestfish-actions.pod:2655 ../fish/guestfish-actions.pod:2677
24883 #: ../fish/guestfish-actions.pod:2690 ../fish/guestfish-actions.pod:2704
24884 #: ../fish/guestfish-actions.pod:2727 ../fish/guestfish-actions.pod:2737
24885 msgid ""
24886 "This command has one or more key or passphrase parameters.  Guestfish will "
24887 "prompt for these separately."
24888 msgstr ""
24889
24890 #. type: =head2
24891 #: ../fish/guestfish-actions.pod:2658
24892 msgid "luks-close"
24893 msgstr ""
24894
24895 #. type: verbatim
24896 #: ../fish/guestfish-actions.pod:2660
24897 #, no-wrap
24898 msgid ""
24899 " luks-close device\n"
24900 "\n"
24901 msgstr ""
24902
24903 #. type: textblock
24904 #: ../fish/guestfish-actions.pod:2662
24905 msgid ""
24906 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
24907 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
24908 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
24909 "block device."
24910 msgstr ""
24911
24912 #. type: =head2
24913 #: ../fish/guestfish-actions.pod:2668
24914 msgid "luks-format"
24915 msgstr ""
24916
24917 #. type: verbatim
24918 #: ../fish/guestfish-actions.pod:2670
24919 #, no-wrap
24920 msgid ""
24921 " luks-format device keyslot\n"
24922 "\n"
24923 msgstr ""
24924
24925 #. type: =head2
24926 #: ../fish/guestfish-actions.pod:2683
24927 msgid "luks-format-cipher"
24928 msgstr ""
24929
24930 #. type: verbatim
24931 #: ../fish/guestfish-actions.pod:2685
24932 #, no-wrap
24933 msgid ""
24934 " luks-format-cipher device keyslot cipher\n"
24935 "\n"
24936 msgstr ""
24937
24938 #. type: textblock
24939 #: ../fish/guestfish-actions.pod:2687
24940 msgid ""
24941 "This command is the same as L</luks-format> but it also allows you to set "
24942 "the C<cipher> used."
24943 msgstr ""
24944
24945 #. type: =head2
24946 #: ../fish/guestfish-actions.pod:2696
24947 msgid "luks-kill-slot"
24948 msgstr ""
24949
24950 #. type: verbatim
24951 #: ../fish/guestfish-actions.pod:2698
24952 #, no-wrap
24953 msgid ""
24954 " luks-kill-slot device keyslot\n"
24955 "\n"
24956 msgstr ""
24957
24958 #. type: =head2
24959 #: ../fish/guestfish-actions.pod:2707
24960 msgid "luks-open"
24961 msgstr ""
24962
24963 #. type: verbatim
24964 #: ../fish/guestfish-actions.pod:2709
24965 #, no-wrap
24966 msgid ""
24967 " luks-open device mapname\n"
24968 "\n"
24969 msgstr ""
24970
24971 #. type: textblock
24972 #: ../fish/guestfish-actions.pod:2723
24973 msgid ""
24974 "If this block device contains LVM volume groups, then calling L</vgscan> "
24975 "followed by L</vg-activate-all> will make them visible."
24976 msgstr ""
24977
24978 #. type: =head2
24979 #: ../fish/guestfish-actions.pod:2730
24980 msgid "luks-open-ro"
24981 msgstr ""
24982
24983 #. type: verbatim
24984 #: ../fish/guestfish-actions.pod:2732
24985 #, no-wrap
24986 msgid ""
24987 " luks-open-ro device mapname\n"
24988 "\n"
24989 msgstr ""
24990
24991 #. type: textblock
24992 #: ../fish/guestfish-actions.pod:2734
24993 msgid ""
24994 "This is the same as L</luks-open> except that a read-only mapping is created."
24995 msgstr ""
24996
24997 #. type: =head2
24998 #: ../fish/guestfish-actions.pod:2740
24999 msgid "lvcreate"
25000 msgstr ""
25001
25002 #. type: verbatim
25003 #: ../fish/guestfish-actions.pod:2742
25004 #, no-wrap
25005 msgid ""
25006 " lvcreate logvol volgroup mbytes\n"
25007 "\n"
25008 msgstr ""
25009
25010 #. type: =head2
25011 #: ../fish/guestfish-actions.pod:2747
25012 msgid "lvm-canonical-lv-name"
25013 msgstr ""
25014
25015 #. type: verbatim
25016 #: ../fish/guestfish-actions.pod:2749
25017 #, no-wrap
25018 msgid ""
25019 " lvm-canonical-lv-name lvname\n"
25020 "\n"
25021 msgstr ""
25022
25023 #. type: textblock
25024 #: ../fish/guestfish-actions.pod:2758
25025 msgid "See also L</is-lv>."
25026 msgstr ""
25027
25028 #. type: =head2
25029 #: ../fish/guestfish-actions.pod:2760
25030 msgid "lvm-clear-filter"
25031 msgstr ""
25032
25033 #. type: verbatim
25034 #: ../fish/guestfish-actions.pod:2762
25035 #, no-wrap
25036 msgid ""
25037 " lvm-clear-filter\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../fish/guestfish-actions.pod:2764
25043 msgid ""
25044 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
25045 "block device."
25046 msgstr ""
25047
25048 #. type: =head2
25049 #: ../fish/guestfish-actions.pod:2770
25050 msgid "lvm-remove-all"
25051 msgstr ""
25052
25053 #. type: verbatim
25054 #: ../fish/guestfish-actions.pod:2772
25055 #, no-wrap
25056 msgid ""
25057 " lvm-remove-all\n"
25058 "\n"
25059 msgstr ""
25060
25061 #. type: =head2
25062 #: ../fish/guestfish-actions.pod:2780
25063 msgid "lvm-set-filter"
25064 msgstr ""
25065
25066 #. type: verbatim
25067 #: ../fish/guestfish-actions.pod:2782
25068 #, no-wrap
25069 msgid ""
25070 " lvm-set-filter 'devices ...'\n"
25071 "\n"
25072 msgstr ""
25073
25074 #. type: =head2
25075 #: ../fish/guestfish-actions.pod:2807
25076 msgid "lvremove"
25077 msgstr ""
25078
25079 #. type: verbatim
25080 #: ../fish/guestfish-actions.pod:2809
25081 #, no-wrap
25082 msgid ""
25083 " lvremove device\n"
25084 "\n"
25085 msgstr ""
25086
25087 #. type: =head2
25088 #: ../fish/guestfish-actions.pod:2817
25089 msgid "lvrename"
25090 msgstr ""
25091
25092 #. type: verbatim
25093 #: ../fish/guestfish-actions.pod:2819
25094 #, no-wrap
25095 msgid ""
25096 " lvrename logvol newlogvol\n"
25097 "\n"
25098 msgstr ""
25099
25100 #. type: =head2
25101 #: ../fish/guestfish-actions.pod:2823
25102 msgid "lvresize"
25103 msgstr ""
25104
25105 #. type: verbatim
25106 #: ../fish/guestfish-actions.pod:2825
25107 #, no-wrap
25108 msgid ""
25109 " lvresize device mbytes\n"
25110 "\n"
25111 msgstr ""
25112
25113 #. type: =head2
25114 #: ../fish/guestfish-actions.pod:2831
25115 msgid "lvresize-free"
25116 msgstr ""
25117
25118 #. type: verbatim
25119 #: ../fish/guestfish-actions.pod:2833
25120 #, no-wrap
25121 msgid ""
25122 " lvresize-free lv percent\n"
25123 "\n"
25124 msgstr ""
25125
25126 #. type: =head2
25127 #: ../fish/guestfish-actions.pod:2841
25128 msgid "lvs"
25129 msgstr ""
25130
25131 #. type: verbatim
25132 #: ../fish/guestfish-actions.pod:2843
25133 #, no-wrap
25134 msgid ""
25135 " lvs\n"
25136 "\n"
25137 msgstr ""
25138
25139 #. type: textblock
25140 #: ../fish/guestfish-actions.pod:2851
25141 msgid "See also L</lvs-full>, L</list-filesystems>."
25142 msgstr ""
25143
25144 #. type: =head2
25145 #: ../fish/guestfish-actions.pod:2853
25146 msgid "lvs-full"
25147 msgstr ""
25148
25149 #. type: verbatim
25150 #: ../fish/guestfish-actions.pod:2855
25151 #, no-wrap
25152 msgid ""
25153 " lvs-full\n"
25154 "\n"
25155 msgstr ""
25156
25157 #. type: =head2
25158 #: ../fish/guestfish-actions.pod:2860
25159 msgid "lvuuid"
25160 msgstr ""
25161
25162 #. type: verbatim
25163 #: ../fish/guestfish-actions.pod:2862
25164 #, no-wrap
25165 msgid ""
25166 " lvuuid device\n"
25167 "\n"
25168 msgstr ""
25169
25170 #. type: =head2
25171 #: ../fish/guestfish-actions.pod:2866
25172 msgid "lxattrlist"
25173 msgstr ""
25174
25175 #. type: verbatim
25176 #: ../fish/guestfish-actions.pod:2868
25177 #, no-wrap
25178 msgid ""
25179 " lxattrlist path 'names ...'\n"
25180 "\n"
25181 msgstr ""
25182
25183 #. type: textblock
25184 #: ../fish/guestfish-actions.pod:2884
25185 msgid ""
25186 "This call is intended for programs that want to efficiently list a directory "
25187 "contents without making many round-trips.  See also L</lstatlist> for a "
25188 "similarly efficient call for getting standard stats.  Very long directory "
25189 "listings might cause the protocol message size to be exceeded, causing this "
25190 "call to fail.  The caller must split up such requests into smaller groups of "
25191 "names."
25192 msgstr ""
25193
25194 #. type: =head2
25195 #: ../fish/guestfish-actions.pod:2892
25196 msgid "mkdir"
25197 msgstr ""
25198
25199 #. type: verbatim
25200 #: ../fish/guestfish-actions.pod:2894
25201 #, no-wrap
25202 msgid ""
25203 " mkdir path\n"
25204 "\n"
25205 msgstr ""
25206
25207 #. type: =head2
25208 #: ../fish/guestfish-actions.pod:2898
25209 msgid "mkdir-mode"
25210 msgstr ""
25211
25212 #. type: verbatim
25213 #: ../fish/guestfish-actions.pod:2900
25214 #, no-wrap
25215 msgid ""
25216 " mkdir-mode path mode\n"
25217 "\n"
25218 msgstr ""
25219
25220 #. type: textblock
25221 #: ../fish/guestfish-actions.pod:2909
25222 msgid "See also L</mkdir>, L</umask>"
25223 msgstr ""
25224
25225 #. type: =head2
25226 #: ../fish/guestfish-actions.pod:2911
25227 msgid "mkdir-p"
25228 msgstr ""
25229
25230 #. type: verbatim
25231 #: ../fish/guestfish-actions.pod:2913
25232 #, no-wrap
25233 msgid ""
25234 " mkdir-p path\n"
25235 "\n"
25236 msgstr ""
25237
25238 #. type: =head2
25239 #: ../fish/guestfish-actions.pod:2918
25240 msgid "mkdtemp"
25241 msgstr ""
25242
25243 #. type: verbatim
25244 #: ../fish/guestfish-actions.pod:2920
25245 #, no-wrap
25246 msgid ""
25247 " mkdtemp template\n"
25248 "\n"
25249 msgstr ""
25250
25251 #. type: =head2
25252 #: ../fish/guestfish-actions.pod:2941
25253 msgid "mke2fs-J"
25254 msgstr ""
25255
25256 #. type: verbatim
25257 #: ../fish/guestfish-actions.pod:2943
25258 #, no-wrap
25259 msgid ""
25260 " mke2fs-J fstype blocksize device journal\n"
25261 "\n"
25262 msgstr ""
25263
25264 #. type: textblock
25265 #: ../fish/guestfish-actions.pod:2951
25266 msgid "See also L</mke2journal>."
25267 msgstr ""
25268
25269 #. type: =head2
25270 #: ../fish/guestfish-actions.pod:2953
25271 msgid "mke2fs-JL"
25272 msgstr ""
25273
25274 #. type: verbatim
25275 #: ../fish/guestfish-actions.pod:2955
25276 #, no-wrap
25277 msgid ""
25278 " mke2fs-JL fstype blocksize device label\n"
25279 "\n"
25280 msgstr ""
25281
25282 #. type: textblock
25283 #: ../fish/guestfish-actions.pod:2960
25284 msgid "See also L</mke2journal-L>."
25285 msgstr ""
25286
25287 #. type: =head2
25288 #: ../fish/guestfish-actions.pod:2962
25289 msgid "mke2fs-JU"
25290 msgstr ""
25291
25292 #. type: verbatim
25293 #: ../fish/guestfish-actions.pod:2964
25294 #, no-wrap
25295 msgid ""
25296 " mke2fs-JU fstype blocksize device uuid\n"
25297 "\n"
25298 msgstr ""
25299
25300 #. type: textblock
25301 #: ../fish/guestfish-actions.pod:2969
25302 msgid "See also L</mke2journal-U>."
25303 msgstr ""
25304
25305 #. type: =head2
25306 #: ../fish/guestfish-actions.pod:2971
25307 msgid "mke2journal"
25308 msgstr ""
25309
25310 #. type: verbatim
25311 #: ../fish/guestfish-actions.pod:2973
25312 #, no-wrap
25313 msgid ""
25314 " mke2journal blocksize device\n"
25315 "\n"
25316 msgstr ""
25317
25318 #. type: =head2
25319 #: ../fish/guestfish-actions.pod:2980
25320 msgid "mke2journal-L"
25321 msgstr ""
25322
25323 #. type: verbatim
25324 #: ../fish/guestfish-actions.pod:2982
25325 #, no-wrap
25326 msgid ""
25327 " mke2journal-L blocksize label device\n"
25328 "\n"
25329 msgstr ""
25330
25331 #. type: =head2
25332 #: ../fish/guestfish-actions.pod:2986
25333 msgid "mke2journal-U"
25334 msgstr ""
25335
25336 #. type: verbatim
25337 #: ../fish/guestfish-actions.pod:2988
25338 #, no-wrap
25339 msgid ""
25340 " mke2journal-U blocksize uuid device\n"
25341 "\n"
25342 msgstr ""
25343
25344 #. type: =head2
25345 #: ../fish/guestfish-actions.pod:2992
25346 msgid "mkfifo"
25347 msgstr ""
25348
25349 #. type: verbatim
25350 #: ../fish/guestfish-actions.pod:2994
25351 #, no-wrap
25352 msgid ""
25353 " mkfifo mode path\n"
25354 "\n"
25355 msgstr ""
25356
25357 #. type: textblock
25358 #: ../fish/guestfish-actions.pod:2996
25359 msgid ""
25360 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25361 "is just a convenient wrapper around L</mknod>."
25362 msgstr ""
25363
25364 #. type: =head2
25365 #: ../fish/guestfish-actions.pod:3002
25366 msgid "mkfs"
25367 msgstr ""
25368
25369 #. type: verbatim
25370 #: ../fish/guestfish-actions.pod:3004
25371 #, no-wrap
25372 msgid ""
25373 " mkfs fstype device\n"
25374 "\n"
25375 msgstr ""
25376
25377 #. type: =head2
25378 #: ../fish/guestfish-actions.pod:3010
25379 msgid "mkfs-b"
25380 msgstr ""
25381
25382 #. type: verbatim
25383 #: ../fish/guestfish-actions.pod:3012
25384 #, no-wrap
25385 msgid ""
25386 " mkfs-b fstype blocksize device\n"
25387 "\n"
25388 msgstr ""
25389
25390 #. type: textblock
25391 #: ../fish/guestfish-actions.pod:3014
25392 msgid ""
25393 "This call is similar to L</mkfs>, but it allows you to control the block "
25394 "size of the resulting filesystem.  Supported block sizes depend on the "
25395 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25396 msgstr ""
25397
25398 #. type: =head2
25399 #: ../fish/guestfish-actions.pod:3029
25400 msgid "mkfs-opts"
25401 msgstr ""
25402
25403 #. type: verbatim
25404 #: ../fish/guestfish-actions.pod:3031
25405 #, no-wrap
25406 msgid ""
25407 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
25408 "\n"
25409 msgstr ""
25410
25411 #. type: =head2
25412 #: ../fish/guestfish-actions.pod:3066
25413 msgid "mkmountpoint"
25414 msgstr ""
25415
25416 #. type: verbatim
25417 #: ../fish/guestfish-actions.pod:3068
25418 #, no-wrap
25419 msgid ""
25420 " mkmountpoint exemptpath\n"
25421 "\n"
25422 msgstr ""
25423
25424 #. type: textblock
25425 #: ../fish/guestfish-actions.pod:3070
25426 msgid ""
25427 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
25428 "to create extra mountpoints before mounting the first filesystem."
25429 msgstr ""
25430
25431 #. type: textblock
25432 #: ../fish/guestfish-actions.pod:3094
25433 msgid ""
25434 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
25435 "unexpected errors if you try to mix these calls.  It is safest to manually "
25436 "unmount filesystems and remove mountpoints after use."
25437 msgstr ""
25438
25439 #. type: textblock
25440 #: ../fish/guestfish-actions.pod:3098
25441 msgid ""
25442 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
25443 "for this to work for manual mountpoints, you must ensure that the innermost "
25444 "mountpoints have the longest pathnames, as in the example code above."
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../fish/guestfish-actions.pod:3105
25449 msgid ""
25450 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
25451 "L</umount-all> to be called when the handle is closed which can also trigger "
25452 "these issues."
25453 msgstr ""
25454
25455 #. type: =head2
25456 #: ../fish/guestfish-actions.pod:3109
25457 msgid "mknod"
25458 msgstr ""
25459
25460 #. type: verbatim
25461 #: ../fish/guestfish-actions.pod:3111
25462 #, no-wrap
25463 msgid ""
25464 " mknod mode devmajor devminor path\n"
25465 "\n"
25466 msgstr ""
25467
25468 #. type: textblock
25469 #: ../fish/guestfish-actions.pod:3121
25470 msgid ""
25471 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
25472 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
25473 "regular file).  These constants are available in the standard Linux header "
25474 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
25475 "wrappers around this command which bitwise OR in the appropriate constant "
25476 "for you."
25477 msgstr ""
25478
25479 #. type: =head2
25480 #: ../fish/guestfish-actions.pod:3131
25481 msgid "mknod-b"
25482 msgstr ""
25483
25484 #. type: verbatim
25485 #: ../fish/guestfish-actions.pod:3133
25486 #, no-wrap
25487 msgid ""
25488 " mknod-b mode devmajor devminor path\n"
25489 "\n"
25490 msgstr ""
25491
25492 #. type: textblock
25493 #: ../fish/guestfish-actions.pod:3135
25494 msgid ""
25495 "This call creates a block device node called C<path> with mode C<mode> and "
25496 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25497 "wrapper around L</mknod>."
25498 msgstr ""
25499
25500 #. type: =head2
25501 #: ../fish/guestfish-actions.pod:3141
25502 msgid "mknod-c"
25503 msgstr ""
25504
25505 #. type: verbatim
25506 #: ../fish/guestfish-actions.pod:3143
25507 #, no-wrap
25508 msgid ""
25509 " mknod-c mode devmajor devminor path\n"
25510 "\n"
25511 msgstr ""
25512
25513 #. type: textblock
25514 #: ../fish/guestfish-actions.pod:3145
25515 msgid ""
25516 "This call creates a char device node called C<path> with mode C<mode> and "
25517 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25518 "wrapper around L</mknod>."
25519 msgstr ""
25520
25521 #. type: =head2
25522 #: ../fish/guestfish-actions.pod:3151
25523 msgid "mkswap"
25524 msgstr ""
25525
25526 #. type: verbatim
25527 #: ../fish/guestfish-actions.pod:3153
25528 #, no-wrap
25529 msgid ""
25530 " mkswap device\n"
25531 "\n"
25532 msgstr ""
25533
25534 #. type: =head2
25535 #: ../fish/guestfish-actions.pod:3157
25536 msgid "mkswap-L"
25537 msgstr ""
25538
25539 #. type: verbatim
25540 #: ../fish/guestfish-actions.pod:3159
25541 #, no-wrap
25542 msgid ""
25543 " mkswap-L label device\n"
25544 "\n"
25545 msgstr ""
25546
25547 #. type: =head2
25548 #: ../fish/guestfish-actions.pod:3167
25549 msgid "mkswap-U"
25550 msgstr ""
25551
25552 #. type: verbatim
25553 #: ../fish/guestfish-actions.pod:3169
25554 #, no-wrap
25555 msgid ""
25556 " mkswap-U uuid device\n"
25557 "\n"
25558 msgstr ""
25559
25560 #. type: =head2
25561 #: ../fish/guestfish-actions.pod:3173
25562 msgid "mkswap-file"
25563 msgstr ""
25564
25565 #. type: verbatim
25566 #: ../fish/guestfish-actions.pod:3175
25567 #, no-wrap
25568 msgid ""
25569 " mkswap-file path\n"
25570 "\n"
25571 msgstr ""
25572
25573 #. type: textblock
25574 #: ../fish/guestfish-actions.pod:3179
25575 msgid ""
25576 "This command just writes a swap file signature to an existing file.  To "
25577 "create the file itself, use something like L</fallocate>."
25578 msgstr ""
25579
25580 #. type: =head2
25581 #: ../fish/guestfish-actions.pod:3182
25582 msgid "modprobe"
25583 msgstr ""
25584
25585 #. type: verbatim
25586 #: ../fish/guestfish-actions.pod:3184
25587 #, no-wrap
25588 msgid ""
25589 " modprobe modulename\n"
25590 "\n"
25591 msgstr ""
25592
25593 #. type: =head2
25594 #: ../fish/guestfish-actions.pod:3191
25595 msgid "mount"
25596 msgstr ""
25597
25598 #. type: verbatim
25599 #: ../fish/guestfish-actions.pod:3193
25600 #, no-wrap
25601 msgid ""
25602 " mount device mountpoint\n"
25603 "\n"
25604 msgstr ""
25605
25606 #. type: textblock
25607 #: ../fish/guestfish-actions.pod:3209
25608 msgid ""
25609 "B<Important note:> When you use this call, the filesystem options C<sync> "
25610 "and C<noatime> are set implicitly.  This was originally done because we "
25611 "thought it would improve reliability, but it turns out that I<-o sync> has a "
25612 "very large negative performance impact and negligible effect on "
25613 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
25614 "code that needs performance, and instead use L</mount-options> (use an empty "
25615 "string for the first parameter if you don't want any options)."
25616 msgstr ""
25617
25618 #. type: =head2
25619 #: ../fish/guestfish-actions.pod:3226
25620 msgid "mount-loop"
25621 msgstr ""
25622
25623 #. type: verbatim
25624 #: ../fish/guestfish-actions.pod:3228
25625 #, no-wrap
25626 msgid ""
25627 " mount-loop file mountpoint\n"
25628 "\n"
25629 msgstr ""
25630
25631 #. type: =head2
25632 #: ../fish/guestfish-actions.pod:3234
25633 msgid "mount-options"
25634 msgstr ""
25635
25636 #. type: verbatim
25637 #: ../fish/guestfish-actions.pod:3236
25638 #, no-wrap
25639 msgid ""
25640 " mount-options options device mountpoint\n"
25641 "\n"
25642 msgstr ""
25643
25644 #. type: textblock
25645 #: ../fish/guestfish-actions.pod:3238
25646 msgid ""
25647 "This is the same as the L</mount> command, but it allows you to set the "
25648 "mount options as for the L<mount(8)> I<-o> flag."
25649 msgstr ""
25650
25651 #. type: =head2
25652 #: ../fish/guestfish-actions.pod:3246
25653 msgid "mount-ro"
25654 msgstr ""
25655
25656 #. type: verbatim
25657 #: ../fish/guestfish-actions.pod:3248
25658 #, no-wrap
25659 msgid ""
25660 " mount-ro device mountpoint\n"
25661 "\n"
25662 msgstr ""
25663
25664 #. type: textblock
25665 #: ../fish/guestfish-actions.pod:3250
25666 msgid ""
25667 "This is the same as the L</mount> command, but it mounts the filesystem with "
25668 "the read-only (I<-o ro>) flag."
25669 msgstr ""
25670
25671 #. type: =head2
25672 #: ../fish/guestfish-actions.pod:3253
25673 msgid "mount-vfs"
25674 msgstr ""
25675
25676 #. type: verbatim
25677 #: ../fish/guestfish-actions.pod:3255
25678 #, no-wrap
25679 msgid ""
25680 " mount-vfs options vfstype device mountpoint\n"
25681 "\n"
25682 msgstr ""
25683
25684 #. type: textblock
25685 #: ../fish/guestfish-actions.pod:3257
25686 msgid ""
25687 "This is the same as the L</mount> command, but it allows you to set both the "
25688 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
25689 msgstr ""
25690
25691 #. type: =head2
25692 #: ../fish/guestfish-actions.pod:3261
25693 msgid "mountpoints"
25694 msgstr ""
25695
25696 #. type: verbatim
25697 #: ../fish/guestfish-actions.pod:3263
25698 #, no-wrap
25699 msgid ""
25700 " mountpoints\n"
25701 "\n"
25702 msgstr ""
25703
25704 #. type: textblock
25705 #: ../fish/guestfish-actions.pod:3265
25706 msgid ""
25707 "This call is similar to L</mounts>.  That call returns a list of devices.  "
25708 "This one returns a hash table (map) of device name to directory where the "
25709 "device is mounted."
25710 msgstr ""
25711
25712 #. type: =head2
25713 #: ../fish/guestfish-actions.pod:3269
25714 msgid "mounts"
25715 msgstr ""
25716
25717 #. type: verbatim
25718 #: ../fish/guestfish-actions.pod:3271
25719 #, no-wrap
25720 msgid ""
25721 " mounts\n"
25722 "\n"
25723 msgstr ""
25724
25725 #. type: textblock
25726 #: ../fish/guestfish-actions.pod:3278
25727 msgid "See also: L</mountpoints>"
25728 msgstr ""
25729
25730 #. type: =head2
25731 #: ../fish/guestfish-actions.pod:3280
25732 msgid "mv"
25733 msgstr ""
25734
25735 #. type: verbatim
25736 #: ../fish/guestfish-actions.pod:3282
25737 #, no-wrap
25738 msgid ""
25739 " mv src dest\n"
25740 "\n"
25741 msgstr ""
25742
25743 #. type: =head2
25744 #: ../fish/guestfish-actions.pod:3287
25745 msgid "ntfs-3g-probe"
25746 msgstr ""
25747
25748 #. type: verbatim
25749 #: ../fish/guestfish-actions.pod:3289
25750 #, no-wrap
25751 msgid ""
25752 " ntfs-3g-probe true|false device\n"
25753 "\n"
25754 msgstr ""
25755
25756 #. type: =head2
25757 #: ../fish/guestfish-actions.pod:3303
25758 msgid "ntfsresize"
25759 msgstr ""
25760
25761 #. type: verbatim
25762 #: ../fish/guestfish-actions.pod:3305
25763 #, no-wrap
25764 msgid ""
25765 " ntfsresize device\n"
25766 "\n"
25767 msgstr ""
25768
25769 #. type: =head2
25770 #: ../fish/guestfish-actions.pod:3311
25771 msgid "ntfsresize-size"
25772 msgstr ""
25773
25774 #. type: verbatim
25775 #: ../fish/guestfish-actions.pod:3313
25776 #, no-wrap
25777 msgid ""
25778 " ntfsresize-size device size\n"
25779 "\n"
25780 msgstr ""
25781
25782 #. type: textblock
25783 #: ../fish/guestfish-actions.pod:3315
25784 msgid ""
25785 "This command is the same as L</ntfsresize> except that it allows you to "
25786 "specify the new size (in bytes) explicitly."
25787 msgstr ""
25788
25789 #. type: =head2
25790 #: ../fish/guestfish-actions.pod:3318
25791 msgid "part-add"
25792 msgstr ""
25793
25794 #. type: verbatim
25795 #: ../fish/guestfish-actions.pod:3320
25796 #, no-wrap
25797 msgid ""
25798 " part-add device prlogex startsect endsect\n"
25799 "\n"
25800 msgstr ""
25801
25802 #. type: textblock
25803 #: ../fish/guestfish-actions.pod:3322
25804 msgid ""
25805 "This command adds a partition to C<device>.  If there is no partition table "
25806 "on the device, call L</part-init> first."
25807 msgstr ""
25808
25809 #. type: textblock
25810 #: ../fish/guestfish-actions.pod:3334
25811 msgid ""
25812 "Creating a partition which covers the whole disk is not so easy.  Use L</"
25813 "part-disk> to do that."
25814 msgstr ""
25815
25816 #. type: =head2
25817 #: ../fish/guestfish-actions.pod:3337
25818 msgid "part-del"
25819 msgstr ""
25820
25821 #. type: verbatim
25822 #: ../fish/guestfish-actions.pod:3339
25823 #, no-wrap
25824 msgid ""
25825 " part-del device partnum\n"
25826 "\n"
25827 msgstr ""
25828
25829 #. type: =head2
25830 #: ../fish/guestfish-actions.pod:3347
25831 msgid "part-disk"
25832 msgstr ""
25833
25834 #. type: verbatim
25835 #: ../fish/guestfish-actions.pod:3349
25836 #, no-wrap
25837 msgid ""
25838 " part-disk device parttype\n"
25839 "\n"
25840 msgstr ""
25841
25842 #. type: textblock
25843 #: ../fish/guestfish-actions.pod:3351
25844 msgid ""
25845 "This command is simply a combination of L</part-init> followed by L</part-"
25846 "add> to create a single primary partition covering the whole disk."
25847 msgstr ""
25848
25849 #. type: textblock
25850 #: ../fish/guestfish-actions.pod:3355
25851 msgid ""
25852 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
25853 "possible values are described in L</part-init>."
25854 msgstr ""
25855
25856 #. type: =head2
25857 #: ../fish/guestfish-actions.pod:3361
25858 msgid "part-get-bootable"
25859 msgstr ""
25860
25861 #. type: verbatim
25862 #: ../fish/guestfish-actions.pod:3363
25863 #, no-wrap
25864 msgid ""
25865 " part-get-bootable device partnum\n"
25866 "\n"
25867 msgstr ""
25868
25869 #. type: textblock
25870 #: ../fish/guestfish-actions.pod:3368
25871 msgid "See also L</part-set-bootable>."
25872 msgstr ""
25873
25874 #. type: =head2
25875 #: ../fish/guestfish-actions.pod:3370
25876 msgid "part-get-mbr-id"
25877 msgstr ""
25878
25879 #. type: verbatim
25880 #: ../fish/guestfish-actions.pod:3372
25881 #, no-wrap
25882 msgid ""
25883 " part-get-mbr-id device partnum\n"
25884 "\n"
25885 msgstr ""
25886
25887 #. type: textblock
25888 #: ../fish/guestfish-actions.pod:3377 ../fish/guestfish-actions.pod:3515
25889 msgid ""
25890 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
25891 "undefined results for other partition table types (see L</part-get-"
25892 "parttype>)."
25893 msgstr ""
25894
25895 #. type: =head2
25896 #: ../fish/guestfish-actions.pod:3381
25897 msgid "part-get-parttype"
25898 msgstr ""
25899
25900 #. type: verbatim
25901 #: ../fish/guestfish-actions.pod:3383
25902 #, no-wrap
25903 msgid ""
25904 " part-get-parttype device\n"
25905 "\n"
25906 msgstr ""
25907
25908 #. type: textblock
25909 #: ../fish/guestfish-actions.pod:3388
25910 msgid ""
25911 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
25912 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
25913 "possible, although unusual.  See L</part-init> for a full list."
25914 msgstr ""
25915
25916 #. type: =head2
25917 #: ../fish/guestfish-actions.pod:3393
25918 msgid "part-init"
25919 msgstr ""
25920
25921 #. type: verbatim
25922 #: ../fish/guestfish-actions.pod:3395
25923 #, no-wrap
25924 msgid ""
25925 " part-init device parttype\n"
25926 "\n"
25927 msgstr ""
25928
25929 #. type: textblock
25930 #: ../fish/guestfish-actions.pod:3401
25931 msgid ""
25932 "Initially there are no partitions.  Following this, you should call L</part-"
25933 "add> for each partition required."
25934 msgstr ""
25935
25936 #. type: =head2
25937 #: ../fish/guestfish-actions.pod:3464
25938 msgid "part-list"
25939 msgstr ""
25940
25941 #. type: verbatim
25942 #: ../fish/guestfish-actions.pod:3466
25943 #, no-wrap
25944 msgid ""
25945 " part-list device\n"
25946 "\n"
25947 msgstr ""
25948
25949 #. type: textblock
25950 #: ../fish/guestfish-actions.pod:3481
25951 msgid ""
25952 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
25953 "the device's sector size, see L</blockdev-getss>."
25954 msgstr ""
25955
25956 #. type: =head2
25957 #: ../fish/guestfish-actions.pod:3494
25958 msgid "part-set-bootable"
25959 msgstr ""
25960
25961 #. type: verbatim
25962 #: ../fish/guestfish-actions.pod:3496
25963 #, no-wrap
25964 msgid ""
25965 " part-set-bootable device partnum true|false\n"
25966 "\n"
25967 msgstr ""
25968
25969 #. type: =head2
25970 #: ../fish/guestfish-actions.pod:3505
25971 msgid "part-set-mbr-id"
25972 msgstr ""
25973
25974 #. type: verbatim
25975 #: ../fish/guestfish-actions.pod:3507
25976 #, no-wrap
25977 msgid ""
25978 " part-set-mbr-id device partnum idbyte\n"
25979 "\n"
25980 msgstr ""
25981
25982 #. type: =head2
25983 #: ../fish/guestfish-actions.pod:3519
25984 msgid "part-set-name"
25985 msgstr ""
25986
25987 #. type: verbatim
25988 #: ../fish/guestfish-actions.pod:3521
25989 #, no-wrap
25990 msgid ""
25991 " part-set-name device partnum name\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: =head2
25996 #: ../fish/guestfish-actions.pod:3529
25997 msgid "part-to-dev"
25998 msgstr ""
25999
26000 #. type: verbatim
26001 #: ../fish/guestfish-actions.pod:3531
26002 #, no-wrap
26003 msgid ""
26004 " part-to-dev partition\n"
26005 "\n"
26006 msgstr ""
26007
26008 #. type: textblock
26009 #: ../fish/guestfish-actions.pod:3537
26010 msgid ""
26011 "The named partition must exist, for example as a string returned from L</"
26012 "list-partitions>."
26013 msgstr ""
26014
26015 #. type: =head2
26016 #: ../fish/guestfish-actions.pod:3540
26017 msgid "ping-daemon"
26018 msgstr ""
26019
26020 #. type: verbatim
26021 #: ../fish/guestfish-actions.pod:3542
26022 #, no-wrap
26023 msgid ""
26024 " ping-daemon\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: =head2
26029 #: ../fish/guestfish-actions.pod:3549
26030 msgid "pread"
26031 msgstr ""
26032
26033 #. type: verbatim
26034 #: ../fish/guestfish-actions.pod:3551
26035 #, no-wrap
26036 msgid ""
26037 " pread path count offset\n"
26038 "\n"
26039 msgstr ""
26040
26041 #. type: textblock
26042 #: ../fish/guestfish-actions.pod:3559
26043 msgid "See also L</pwrite>, L</pread-device>."
26044 msgstr ""
26045
26046 #. type: =head2
26047 #: ../fish/guestfish-actions.pod:3564
26048 msgid "pread-device"
26049 msgstr ""
26050
26051 #. type: verbatim
26052 #: ../fish/guestfish-actions.pod:3566
26053 #, no-wrap
26054 msgid ""
26055 " pread-device device count offset\n"
26056 "\n"
26057 msgstr ""
26058
26059 #. type: textblock
26060 #: ../fish/guestfish-actions.pod:3574
26061 msgid "See also L</pread>."
26062 msgstr ""
26063
26064 #. type: =head2
26065 #: ../fish/guestfish-actions.pod:3579
26066 msgid "pvcreate"
26067 msgstr ""
26068
26069 #. type: verbatim
26070 #: ../fish/guestfish-actions.pod:3581
26071 #, no-wrap
26072 msgid ""
26073 " pvcreate device\n"
26074 "\n"
26075 msgstr ""
26076
26077 #. type: =head2
26078 #: ../fish/guestfish-actions.pod:3587
26079 msgid "pvremove"
26080 msgstr ""
26081
26082 #. type: verbatim
26083 #: ../fish/guestfish-actions.pod:3589
26084 #, no-wrap
26085 msgid ""
26086 " pvremove device\n"
26087 "\n"
26088 msgstr ""
26089
26090 #. type: =head2
26091 #: ../fish/guestfish-actions.pod:3598
26092 msgid "pvresize"
26093 msgstr ""
26094
26095 #. type: verbatim
26096 #: ../fish/guestfish-actions.pod:3600
26097 #, no-wrap
26098 msgid ""
26099 " pvresize device\n"
26100 "\n"
26101 msgstr ""
26102
26103 #. type: =head2
26104 #: ../fish/guestfish-actions.pod:3605
26105 msgid "pvresize-size"
26106 msgstr ""
26107
26108 #. type: verbatim
26109 #: ../fish/guestfish-actions.pod:3607
26110 #, no-wrap
26111 msgid ""
26112 " pvresize-size device size\n"
26113 "\n"
26114 msgstr ""
26115
26116 #. type: textblock
26117 #: ../fish/guestfish-actions.pod:3609
26118 msgid ""
26119 "This command is the same as L</pvresize> except that it allows you to "
26120 "specify the new size (in bytes) explicitly."
26121 msgstr ""
26122
26123 #. type: =head2
26124 #: ../fish/guestfish-actions.pod:3612
26125 msgid "pvs"
26126 msgstr ""
26127
26128 #. type: verbatim
26129 #: ../fish/guestfish-actions.pod:3614
26130 #, no-wrap
26131 msgid ""
26132 " pvs\n"
26133 "\n"
26134 msgstr ""
26135
26136 #. type: textblock
26137 #: ../fish/guestfish-actions.pod:3622
26138 msgid "See also L</pvs-full>."
26139 msgstr ""
26140
26141 #. type: =head2
26142 #: ../fish/guestfish-actions.pod:3624
26143 msgid "pvs-full"
26144 msgstr ""
26145
26146 #. type: verbatim
26147 #: ../fish/guestfish-actions.pod:3626
26148 #, no-wrap
26149 msgid ""
26150 " pvs-full\n"
26151 "\n"
26152 msgstr ""
26153
26154 #. type: =head2
26155 #: ../fish/guestfish-actions.pod:3631
26156 msgid "pvuuid"
26157 msgstr ""
26158
26159 #. type: verbatim
26160 #: ../fish/guestfish-actions.pod:3633
26161 #, no-wrap
26162 msgid ""
26163 " pvuuid device\n"
26164 "\n"
26165 msgstr ""
26166
26167 #. type: =head2
26168 #: ../fish/guestfish-actions.pod:3637
26169 msgid "pwrite"
26170 msgstr ""
26171
26172 #. type: verbatim
26173 #: ../fish/guestfish-actions.pod:3639
26174 #, no-wrap
26175 msgid ""
26176 " pwrite path content offset\n"
26177 "\n"
26178 msgstr ""
26179
26180 #. type: textblock
26181 #: ../fish/guestfish-actions.pod:3650
26182 msgid "See also L</pread>, L</pwrite-device>."
26183 msgstr ""
26184
26185 #. type: =head2
26186 #: ../fish/guestfish-actions.pod:3655
26187 msgid "pwrite-device"
26188 msgstr ""
26189
26190 #. type: verbatim
26191 #: ../fish/guestfish-actions.pod:3657
26192 #, no-wrap
26193 msgid ""
26194 " pwrite-device device content offset\n"
26195 "\n"
26196 msgstr ""
26197
26198 #. type: textblock
26199 #: ../fish/guestfish-actions.pod:3667
26200 msgid "See also L</pwrite>."
26201 msgstr ""
26202
26203 #. type: =head2
26204 #: ../fish/guestfish-actions.pod:3672
26205 msgid "read-file"
26206 msgstr ""
26207
26208 #. type: verbatim
26209 #: ../fish/guestfish-actions.pod:3674
26210 #, no-wrap
26211 msgid ""
26212 " read-file path\n"
26213 "\n"
26214 msgstr ""
26215
26216 #. type: textblock
26217 #: ../fish/guestfish-actions.pod:3679
26218 msgid ""
26219 "Unlike L</cat>, this function can correctly handle files that contain "
26220 "embedded ASCII NUL characters.  However unlike L</download>, this function "
26221 "is limited in the total size of file that can be handled."
26222 msgstr ""
26223
26224 #. type: =head2
26225 #: ../fish/guestfish-actions.pod:3687
26226 msgid "read-lines"
26227 msgstr ""
26228
26229 #. type: verbatim
26230 #: ../fish/guestfish-actions.pod:3689
26231 #, no-wrap
26232 msgid ""
26233 " read-lines path\n"
26234 "\n"
26235 msgstr ""
26236
26237 #. type: textblock
26238 #: ../fish/guestfish-actions.pod:3696
26239 msgid ""
26240 "Note that this function cannot correctly handle binary files (specifically, "
26241 "files containing C<\\0> character which is treated as end of line).  For "
26242 "those you need to use the L</read-file> function which has a more complex "
26243 "interface."
26244 msgstr ""
26245
26246 #. type: =head2
26247 #: ../fish/guestfish-actions.pod:3701
26248 msgid "readdir"
26249 msgstr ""
26250
26251 #. type: verbatim
26252 #: ../fish/guestfish-actions.pod:3703
26253 #, no-wrap
26254 msgid ""
26255 " readdir dir\n"
26256 "\n"
26257 msgstr ""
26258
26259 #. type: textblock
26260 #: ../fish/guestfish-actions.pod:3755
26261 msgid ""
26262 "This function is primarily intended for use by programs.  To get a simple "
26263 "list of names, use L</ls>.  To get a printable directory for human "
26264 "consumption, use L</ll>."
26265 msgstr ""
26266
26267 #. type: =head2
26268 #: ../fish/guestfish-actions.pod:3759
26269 msgid "readlink"
26270 msgstr ""
26271
26272 #. type: verbatim
26273 #: ../fish/guestfish-actions.pod:3761
26274 #, no-wrap
26275 msgid ""
26276 " readlink path\n"
26277 "\n"
26278 msgstr ""
26279
26280 #. type: =head2
26281 #: ../fish/guestfish-actions.pod:3765
26282 msgid "readlinklist"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../fish/guestfish-actions.pod:3767
26287 #, no-wrap
26288 msgid ""
26289 " readlinklist path 'names ...'\n"
26290 "\n"
26291 msgstr ""
26292
26293 #. type: =head2
26294 #: ../fish/guestfish-actions.pod:3791
26295 msgid "realpath"
26296 msgstr ""
26297
26298 #. type: verbatim
26299 #: ../fish/guestfish-actions.pod:3793
26300 #, no-wrap
26301 msgid ""
26302 " realpath path\n"
26303 "\n"
26304 msgstr ""
26305
26306 #. type: =head2
26307 #: ../fish/guestfish-actions.pod:3798
26308 msgid "removexattr"
26309 msgstr ""
26310
26311 #. type: verbatim
26312 #: ../fish/guestfish-actions.pod:3800
26313 #, no-wrap
26314 msgid ""
26315 " removexattr xattr path\n"
26316 "\n"
26317 msgstr ""
26318
26319 #. type: textblock
26320 #: ../fish/guestfish-actions.pod:3805
26321 msgid "See also: L</lremovexattr>, L<attr(5)>."
26322 msgstr ""
26323
26324 #. type: =head2
26325 #: ../fish/guestfish-actions.pod:3807
26326 msgid "resize2fs"
26327 msgstr ""
26328
26329 #. type: verbatim
26330 #: ../fish/guestfish-actions.pod:3809
26331 #, no-wrap
26332 msgid ""
26333 " resize2fs device\n"
26334 "\n"
26335 msgstr ""
26336
26337 #. type: textblock
26338 #: ../fish/guestfish-actions.pod:3814
26339 msgid ""
26340 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
26341 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
26342 "gives an error about this and sometimes not.  In any case, it is always safe "
26343 "to call L</e2fsck-f> before calling this function."
26344 msgstr ""
26345
26346 #. type: =head2
26347 #: ../fish/guestfish-actions.pod:3820
26348 msgid "resize2fs-M"
26349 msgstr ""
26350
26351 #. type: verbatim
26352 #: ../fish/guestfish-actions.pod:3822
26353 #, no-wrap
26354 msgid ""
26355 " resize2fs-M device\n"
26356 "\n"
26357 msgstr ""
26358
26359 #. type: textblock
26360 #: ../fish/guestfish-actions.pod:3824
26361 msgid ""
26362 "This command is the same as L</resize2fs>, but the filesystem is resized to "
26363 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
26364 "command."
26365 msgstr ""
26366
26367 #. type: textblock
26368 #: ../fish/guestfish-actions.pod:3828
26369 msgid ""
26370 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
26371 "and read the C<Block size> and C<Block count> values.  These two numbers, "
26372 "multiplied together, give the resulting size of the minimal filesystem in "
26373 "bytes."
26374 msgstr ""
26375
26376 #. type: =head2
26377 #: ../fish/guestfish-actions.pod:3833
26378 msgid "resize2fs-size"
26379 msgstr ""
26380
26381 #. type: verbatim
26382 #: ../fish/guestfish-actions.pod:3835
26383 #, no-wrap
26384 msgid ""
26385 " resize2fs-size device size\n"
26386 "\n"
26387 msgstr ""
26388
26389 #. type: textblock
26390 #: ../fish/guestfish-actions.pod:3837
26391 msgid ""
26392 "This command is the same as L</resize2fs> except that it allows you to "
26393 "specify the new size (in bytes) explicitly."
26394 msgstr ""
26395
26396 #. type: =head2
26397 #: ../fish/guestfish-actions.pod:3840
26398 msgid "rm"
26399 msgstr ""
26400
26401 #. type: verbatim
26402 #: ../fish/guestfish-actions.pod:3842
26403 #, no-wrap
26404 msgid ""
26405 " rm path\n"
26406 "\n"
26407 msgstr ""
26408
26409 #. type: =head2
26410 #: ../fish/guestfish-actions.pod:3846
26411 msgid "rm-rf"
26412 msgstr ""
26413
26414 #. type: verbatim
26415 #: ../fish/guestfish-actions.pod:3848
26416 #, no-wrap
26417 msgid ""
26418 " rm-rf path\n"
26419 "\n"
26420 msgstr ""
26421
26422 #. type: =head2
26423 #: ../fish/guestfish-actions.pod:3854
26424 msgid "rmdir"
26425 msgstr ""
26426
26427 #. type: verbatim
26428 #: ../fish/guestfish-actions.pod:3856
26429 #, no-wrap
26430 msgid ""
26431 " rmdir path\n"
26432 "\n"
26433 msgstr ""
26434
26435 #. type: =head2
26436 #: ../fish/guestfish-actions.pod:3860
26437 msgid "rmmountpoint"
26438 msgstr ""
26439
26440 #. type: verbatim
26441 #: ../fish/guestfish-actions.pod:3862
26442 #, no-wrap
26443 msgid ""
26444 " rmmountpoint exemptpath\n"
26445 "\n"
26446 msgstr ""
26447
26448 #. type: textblock
26449 #: ../fish/guestfish-actions.pod:3864
26450 msgid ""
26451 "This calls removes a mountpoint that was previously created with L</"
26452 "mkmountpoint>.  See L</mkmountpoint> for full details."
26453 msgstr ""
26454
26455 #. type: =head2
26456 #: ../fish/guestfish-actions.pod:3868
26457 msgid "scrub-device"
26458 msgstr ""
26459
26460 #. type: verbatim
26461 #: ../fish/guestfish-actions.pod:3870
26462 #, no-wrap
26463 msgid ""
26464 " scrub-device device\n"
26465 "\n"
26466 msgstr ""
26467
26468 #. type: =head2
26469 #: ../fish/guestfish-actions.pod:3881
26470 msgid "scrub-file"
26471 msgstr ""
26472
26473 #. type: verbatim
26474 #: ../fish/guestfish-actions.pod:3883
26475 #, no-wrap
26476 msgid ""
26477 " scrub-file file\n"
26478 "\n"
26479 msgstr ""
26480
26481 #. type: =head2
26482 #: ../fish/guestfish-actions.pod:3893
26483 msgid "scrub-freespace"
26484 msgstr ""
26485
26486 #. type: verbatim
26487 #: ../fish/guestfish-actions.pod:3895
26488 #, no-wrap
26489 msgid ""
26490 " scrub-freespace dir\n"
26491 "\n"
26492 msgstr ""
26493
26494 #. type: textblock
26495 #: ../fish/guestfish-actions.pod:3897
26496 msgid ""
26497 "This command creates the directory C<dir> and then fills it with files until "
26498 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
26499 "deletes them.  The intention is to scrub any free space on the partition "
26500 "containing C<dir>."
26501 msgstr ""
26502
26503 #. type: =head2
26504 #: ../fish/guestfish-actions.pod:3906
26505 msgid "set-append"
26506 msgstr ""
26507
26508 #. type: =head2
26509 #: ../fish/guestfish-actions.pod:3908
26510 msgid "append"
26511 msgstr ""
26512
26513 #. type: verbatim
26514 #: ../fish/guestfish-actions.pod:3910
26515 #, no-wrap
26516 msgid ""
26517 " set-append append\n"
26518 "\n"
26519 msgstr ""
26520
26521 #. type: =head2
26522 #: ../fish/guestfish-actions.pod:3921
26523 msgid "set-attach-method"
26524 msgstr ""
26525
26526 #. type: =head2
26527 #: ../fish/guestfish-actions.pod:3923
26528 msgid "attach-method"
26529 msgstr ""
26530
26531 #. type: verbatim
26532 #: ../fish/guestfish-actions.pod:3925
26533 #, no-wrap
26534 msgid ""
26535 " set-attach-method attachmethod\n"
26536 "\n"
26537 msgstr ""
26538
26539 #. type: =head2
26540 #: ../fish/guestfish-actions.pod:3947
26541 msgid "set-autosync"
26542 msgstr ""
26543
26544 #. type: =head2
26545 #: ../fish/guestfish-actions.pod:3949
26546 msgid "autosync"
26547 msgstr ""
26548
26549 #. type: verbatim
26550 #: ../fish/guestfish-actions.pod:3951
26551 #, no-wrap
26552 msgid ""
26553 " set-autosync true|false\n"
26554 "\n"
26555 msgstr ""
26556
26557 #. type: =head2
26558 #: ../fish/guestfish-actions.pod:3961
26559 msgid "set-direct"
26560 msgstr ""
26561
26562 #. type: =head2
26563 #: ../fish/guestfish-actions.pod:3963
26564 msgid "direct"
26565 msgstr ""
26566
26567 #. type: verbatim
26568 #: ../fish/guestfish-actions.pod:3965
26569 #, no-wrap
26570 msgid ""
26571 " set-direct true|false\n"
26572 "\n"
26573 msgstr ""
26574
26575 #. type: textblock
26576 #: ../fish/guestfish-actions.pod:3971
26577 msgid ""
26578 "One consequence of this is that log messages aren't caught by the library "
26579 "and handled by L</set-log-message-callback>, but go straight to stdout."
26580 msgstr ""
26581
26582 #. type: =head2
26583 #: ../fish/guestfish-actions.pod:3980
26584 msgid "set-e2label"
26585 msgstr ""
26586
26587 #. type: verbatim
26588 #: ../fish/guestfish-actions.pod:3982
26589 #, no-wrap
26590 msgid ""
26591 " set-e2label device label\n"
26592 "\n"
26593 msgstr ""
26594
26595 #. type: textblock
26596 #: ../fish/guestfish-actions.pod:3988
26597 msgid ""
26598 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
26599 "label on a filesystem."
26600 msgstr ""
26601
26602 #. type: =head2
26603 #: ../fish/guestfish-actions.pod:3991
26604 msgid "set-e2uuid"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../fish/guestfish-actions.pod:3993
26609 #, no-wrap
26610 msgid ""
26611 " set-e2uuid device uuid\n"
26612 "\n"
26613 msgstr ""
26614
26615 #. type: textblock
26616 #: ../fish/guestfish-actions.pod:4000
26617 msgid ""
26618 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
26619 "UUID of a filesystem."
26620 msgstr ""
26621
26622 #. type: =head2
26623 #: ../fish/guestfish-actions.pod:4003
26624 msgid "set-memsize"
26625 msgstr ""
26626
26627 #. type: =head2
26628 #: ../fish/guestfish-actions.pod:4005
26629 msgid "memsize"
26630 msgstr ""
26631
26632 #. type: verbatim
26633 #: ../fish/guestfish-actions.pod:4007
26634 #, no-wrap
26635 msgid ""
26636 " set-memsize memsize\n"
26637 "\n"
26638 msgstr ""
26639
26640 #. type: textblock
26641 #: ../fish/guestfish-actions.pod:4009
26642 msgid ""
26643 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
26644 "This only has any effect if called before L</launch>."
26645 msgstr ""
26646
26647 #. type: =head2
26648 #: ../fish/guestfish-actions.pod:4020
26649 msgid "set-network"
26650 msgstr ""
26651
26652 #. type: =head2
26653 #: ../fish/guestfish-actions.pod:4022
26654 msgid "network"
26655 msgstr ""
26656
26657 #. type: verbatim
26658 #: ../fish/guestfish-actions.pod:4024
26659 #, no-wrap
26660 msgid ""
26661 " set-network true|false\n"
26662 "\n"
26663 msgstr ""
26664
26665 #. type: textblock
26666 #: ../fish/guestfish-actions.pod:4032
26667 msgid ""
26668 "You must call this before calling L</launch>, otherwise it has no effect."
26669 msgstr ""
26670
26671 #. type: =head2
26672 #: ../fish/guestfish-actions.pod:4035
26673 msgid "set-path"
26674 msgstr ""
26675
26676 #. type: =head2
26677 #: ../fish/guestfish-actions.pod:4037
26678 msgid "path"
26679 msgstr ""
26680
26681 #. type: verbatim
26682 #: ../fish/guestfish-actions.pod:4039
26683 #, no-wrap
26684 msgid ""
26685 " set-path searchpath\n"
26686 "\n"
26687 msgstr ""
26688
26689 #. type: =head2
26690 #: ../fish/guestfish-actions.pod:4048
26691 msgid "set-qemu"
26692 msgstr ""
26693
26694 #. type: =head2
26695 #: ../fish/guestfish-actions.pod:4050
26696 msgid "qemu"
26697 msgstr ""
26698
26699 #. type: verbatim
26700 #: ../fish/guestfish-actions.pod:4052
26701 #, no-wrap
26702 msgid ""
26703 " set-qemu qemu\n"
26704 "\n"
26705 msgstr ""
26706
26707 #. type: =head2
26708 #: ../fish/guestfish-actions.pod:4072
26709 msgid "set-recovery-proc"
26710 msgstr ""
26711
26712 #. type: =head2
26713 #: ../fish/guestfish-actions.pod:4074
26714 msgid "recovery-proc"
26715 msgstr ""
26716
26717 #. type: verbatim
26718 #: ../fish/guestfish-actions.pod:4076
26719 #, no-wrap
26720 msgid ""
26721 " set-recovery-proc true|false\n"
26722 "\n"
26723 msgstr ""
26724
26725 #. type: textblock
26726 #: ../fish/guestfish-actions.pod:4078
26727 msgid ""
26728 "If this is called with the parameter C<false> then L</launch> does not "
26729 "create a recovery process.  The purpose of the recovery process is to stop "
26730 "runaway qemu processes in the case where the main program aborts abruptly."
26731 msgstr ""
26732
26733 #. type: textblock
26734 #: ../fish/guestfish-actions.pod:4083
26735 msgid ""
26736 "This only has any effect if called before L</launch>, and the default is "
26737 "true."
26738 msgstr ""
26739
26740 #. type: =head2
26741 #: ../fish/guestfish-actions.pod:4092
26742 msgid "set-selinux"
26743 msgstr ""
26744
26745 #. type: =head2
26746 #: ../fish/guestfish-actions.pod:4094
26747 msgid "selinux"
26748 msgstr ""
26749
26750 #. type: verbatim
26751 #: ../fish/guestfish-actions.pod:4096
26752 #, no-wrap
26753 msgid ""
26754 " set-selinux true|false\n"
26755 "\n"
26756 msgstr ""
26757
26758 #. type: =head2
26759 #: ../fish/guestfish-actions.pod:4107
26760 msgid "set-trace"
26761 msgstr ""
26762
26763 #. type: =head2
26764 #: ../fish/guestfish-actions.pod:4109
26765 msgid "trace"
26766 msgstr ""
26767
26768 #. type: verbatim
26769 #: ../fish/guestfish-actions.pod:4111
26770 #, no-wrap
26771 msgid ""
26772 " set-trace true|false\n"
26773 "\n"
26774 msgstr ""
26775
26776 #. type: textblock
26777 #: ../fish/guestfish-actions.pod:4123
26778 msgid ""
26779 "Trace messages are normally sent to C<stderr>, unless you register a "
26780 "callback to send them somewhere else (see L</set-event-callback>)."
26781 msgstr ""
26782
26783 #. type: =head2
26784 #: ../fish/guestfish-actions.pod:4127
26785 msgid "set-verbose"
26786 msgstr ""
26787
26788 #. type: =head2
26789 #: ../fish/guestfish-actions.pod:4129
26790 msgid "verbose"
26791 msgstr ""
26792
26793 #. type: verbatim
26794 #: ../fish/guestfish-actions.pod:4131
26795 #, no-wrap
26796 msgid ""
26797 " set-verbose true|false\n"
26798 "\n"
26799 msgstr ""
26800
26801 #. type: textblock
26802 #: ../fish/guestfish-actions.pod:4138
26803 msgid ""
26804 "Verbose messages are normally sent to C<stderr>, unless you register a "
26805 "callback to send them somewhere else (see L</set-event-callback>)."
26806 msgstr ""
26807
26808 #. type: =head2
26809 #: ../fish/guestfish-actions.pod:4142
26810 msgid "setcon"
26811 msgstr ""
26812
26813 #. type: verbatim
26814 #: ../fish/guestfish-actions.pod:4144
26815 #, no-wrap
26816 msgid ""
26817 " setcon context\n"
26818 "\n"
26819 msgstr ""
26820
26821 #. type: =head2
26822 #: ../fish/guestfish-actions.pod:4151
26823 msgid "setxattr"
26824 msgstr ""
26825
26826 #. type: verbatim
26827 #: ../fish/guestfish-actions.pod:4153
26828 #, no-wrap
26829 msgid ""
26830 " setxattr xattr val vallen path\n"
26831 "\n"
26832 msgstr ""
26833
26834 #. type: textblock
26835 #: ../fish/guestfish-actions.pod:4159
26836 msgid "See also: L</lsetxattr>, L<attr(5)>."
26837 msgstr ""
26838
26839 #. type: =head2
26840 #: ../fish/guestfish-actions.pod:4161
26841 msgid "sfdisk"
26842 msgstr ""
26843
26844 #. type: verbatim
26845 #: ../fish/guestfish-actions.pod:4163
26846 #, no-wrap
26847 msgid ""
26848 " sfdisk device cyls heads sectors 'lines ...'\n"
26849 "\n"
26850 msgstr ""
26851
26852 #. type: textblock
26853 #: ../fish/guestfish-actions.pod:4185
26854 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
26855 msgstr ""
26856
26857 #. type: =head2
26858 #: ../fish/guestfish-actions.pod:4198
26859 msgid "sfdiskM"
26860 msgstr ""
26861
26862 #. type: verbatim
26863 #: ../fish/guestfish-actions.pod:4200
26864 #, no-wrap
26865 msgid ""
26866 " sfdiskM device 'lines ...'\n"
26867 "\n"
26868 msgstr ""
26869
26870 #. type: textblock
26871 #: ../fish/guestfish-actions.pod:4202
26872 msgid ""
26873 "This is a simplified interface to the L</sfdisk> command, where partition "
26874 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
26875 "you don't need to specify the cyls, heads and sectors parameters which were "
26876 "rarely if ever used anyway."
26877 msgstr ""
26878
26879 #. type: textblock
26880 #: ../fish/guestfish-actions.pod:4208
26881 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
26882 msgstr ""
26883
26884 #. type: =head2
26885 #: ../fish/guestfish-actions.pod:4221
26886 msgid "sfdisk-N"
26887 msgstr ""
26888
26889 #. type: verbatim
26890 #: ../fish/guestfish-actions.pod:4223
26891 #, no-wrap
26892 msgid ""
26893 " sfdisk-N device partnum cyls heads sectors line\n"
26894 "\n"
26895 msgstr ""
26896
26897 #. type: textblock
26898 #: ../fish/guestfish-actions.pod:4228
26899 msgid ""
26900 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
26901 "cyls/heads/sectors parameters."
26902 msgstr ""
26903
26904 #. type: textblock
26905 #: ../fish/guestfish-actions.pod:4231
26906 msgid "See also: L</part-add>"
26907 msgstr ""
26908
26909 #. type: =head2
26910 #: ../fish/guestfish-actions.pod:4243
26911 msgid "sfdisk-disk-geometry"
26912 msgstr ""
26913
26914 #. type: verbatim
26915 #: ../fish/guestfish-actions.pod:4245
26916 #, no-wrap
26917 msgid ""
26918 " sfdisk-disk-geometry device\n"
26919 "\n"
26920 msgstr ""
26921
26922 #. type: textblock
26923 #: ../fish/guestfish-actions.pod:4247
26924 msgid ""
26925 "This displays the disk geometry of C<device> read from the partition table.  "
26926 "Especially in the case where the underlying block device has been resized, "
26927 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
26928 "kernel-geometry>)."
26929 msgstr ""
26930
26931 #. type: =head2
26932 #: ../fish/guestfish-actions.pod:4255
26933 msgid "sfdisk-kernel-geometry"
26934 msgstr ""
26935
26936 #. type: verbatim
26937 #: ../fish/guestfish-actions.pod:4257
26938 #, no-wrap
26939 msgid ""
26940 " sfdisk-kernel-geometry device\n"
26941 "\n"
26942 msgstr ""
26943
26944 #. type: =head2
26945 #: ../fish/guestfish-actions.pod:4264
26946 msgid "sfdisk-l"
26947 msgstr ""
26948
26949 #. type: verbatim
26950 #: ../fish/guestfish-actions.pod:4266
26951 #, no-wrap
26952 msgid ""
26953 " sfdisk-l device\n"
26954 "\n"
26955 msgstr ""
26956
26957 #. type: textblock
26958 #: ../fish/guestfish-actions.pod:4272
26959 msgid "See also: L</part-list>"
26960 msgstr ""
26961
26962 #. type: =head2
26963 #: ../fish/guestfish-actions.pod:4281
26964 msgid "sh"
26965 msgstr ""
26966
26967 #. type: verbatim
26968 #: ../fish/guestfish-actions.pod:4283
26969 #, no-wrap
26970 msgid ""
26971 " sh command\n"
26972 "\n"
26973 msgstr ""
26974
26975 #. type: textblock
26976 #: ../fish/guestfish-actions.pod:4288
26977 msgid "This is like L</command>, but passes the command to:"
26978 msgstr ""
26979
26980 #. type: textblock
26981 #: ../fish/guestfish-actions.pod:4296
26982 msgid "All the provisos about L</command> apply to this call."
26983 msgstr ""
26984
26985 #. type: =head2
26986 #: ../fish/guestfish-actions.pod:4298
26987 msgid "sh-lines"
26988 msgstr ""
26989
26990 #. type: verbatim
26991 #: ../fish/guestfish-actions.pod:4300
26992 #, no-wrap
26993 msgid ""
26994 " sh-lines command\n"
26995 "\n"
26996 msgstr ""
26997
26998 #. type: textblock
26999 #: ../fish/guestfish-actions.pod:4302
27000 msgid "This is the same as L</sh>, but splits the result into a list of lines."
27001 msgstr ""
27002
27003 #. type: textblock
27004 #: ../fish/guestfish-actions.pod:4305
27005 msgid "See also: L</command-lines>"
27006 msgstr ""
27007
27008 #. type: =head2
27009 #: ../fish/guestfish-actions.pod:4307
27010 msgid "sleep"
27011 msgstr ""
27012
27013 #. type: verbatim
27014 #: ../fish/guestfish-actions.pod:4309
27015 #, no-wrap
27016 msgid ""
27017 " sleep secs\n"
27018 "\n"
27019 msgstr ""
27020
27021 #. type: =head2
27022 #: ../fish/guestfish-actions.pod:4313
27023 msgid "stat"
27024 msgstr ""
27025
27026 #. type: verbatim
27027 #: ../fish/guestfish-actions.pod:4315
27028 #, no-wrap
27029 msgid ""
27030 " stat path\n"
27031 "\n"
27032 msgstr ""
27033
27034 #. type: =head2
27035 #: ../fish/guestfish-actions.pod:4321
27036 msgid "statvfs"
27037 msgstr ""
27038
27039 #. type: verbatim
27040 #: ../fish/guestfish-actions.pod:4323
27041 #, no-wrap
27042 msgid ""
27043 " statvfs path\n"
27044 "\n"
27045 msgstr ""
27046
27047 #. type: =head2
27048 #: ../fish/guestfish-actions.pod:4331
27049 msgid "strings"
27050 msgstr ""
27051
27052 #. type: verbatim
27053 #: ../fish/guestfish-actions.pod:4333
27054 #, no-wrap
27055 msgid ""
27056 " strings path\n"
27057 "\n"
27058 msgstr ""
27059
27060 #. type: =head2
27061 #: ../fish/guestfish-actions.pod:4341
27062 msgid "strings-e"
27063 msgstr ""
27064
27065 #. type: verbatim
27066 #: ../fish/guestfish-actions.pod:4343
27067 #, no-wrap
27068 msgid ""
27069 " strings-e encoding path\n"
27070 "\n"
27071 msgstr ""
27072
27073 #. type: textblock
27074 #: ../fish/guestfish-actions.pod:4345
27075 msgid ""
27076 "This is like the L</strings> command, but allows you to specify the encoding "
27077 "of strings that are looked for in the source file C<path>."
27078 msgstr ""
27079
27080 #. type: textblock
27081 #: ../fish/guestfish-actions.pod:4355
27082 msgid ""
27083 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
27084 "ISO-8859-X (this is what L</strings> uses)."
27085 msgstr ""
27086
27087 #. type: =head2
27088 #: ../fish/guestfish-actions.pod:4387
27089 msgid "swapoff-device"
27090 msgstr ""
27091
27092 #. type: verbatim
27093 #: ../fish/guestfish-actions.pod:4389
27094 #, no-wrap
27095 msgid ""
27096 " swapoff-device device\n"
27097 "\n"
27098 msgstr ""
27099
27100 #. type: textblock
27101 #: ../fish/guestfish-actions.pod:4391
27102 msgid ""
27103 "This command disables the libguestfs appliance swap device or partition "
27104 "named C<device>.  See L</swapon-device>."
27105 msgstr ""
27106
27107 #. type: =head2
27108 #: ../fish/guestfish-actions.pod:4395
27109 msgid "swapoff-file"
27110 msgstr ""
27111
27112 #. type: verbatim
27113 #: ../fish/guestfish-actions.pod:4397
27114 #, no-wrap
27115 msgid ""
27116 " swapoff-file file\n"
27117 "\n"
27118 msgstr ""
27119
27120 #. type: =head2
27121 #: ../fish/guestfish-actions.pod:4401
27122 msgid "swapoff-label"
27123 msgstr ""
27124
27125 #. type: verbatim
27126 #: ../fish/guestfish-actions.pod:4403
27127 #, no-wrap
27128 msgid ""
27129 " swapoff-label label\n"
27130 "\n"
27131 msgstr ""
27132
27133 #. type: =head2
27134 #: ../fish/guestfish-actions.pod:4408
27135 msgid "swapoff-uuid"
27136 msgstr ""
27137
27138 #. type: verbatim
27139 #: ../fish/guestfish-actions.pod:4410
27140 #, no-wrap
27141 msgid ""
27142 " swapoff-uuid uuid\n"
27143 "\n"
27144 msgstr ""
27145
27146 #. type: =head2
27147 #: ../fish/guestfish-actions.pod:4415
27148 msgid "swapon-device"
27149 msgstr ""
27150
27151 #. type: verbatim
27152 #: ../fish/guestfish-actions.pod:4417
27153 #, no-wrap
27154 msgid ""
27155 " swapon-device device\n"
27156 "\n"
27157 msgstr ""
27158
27159 #. type: textblock
27160 #: ../fish/guestfish-actions.pod:4419
27161 msgid ""
27162 "This command enables the libguestfs appliance to use the swap device or "
27163 "partition named C<device>.  The increased memory is made available for all "
27164 "commands, for example those run using L</command> or L</sh>."
27165 msgstr ""
27166
27167 #. type: =head2
27168 #: ../fish/guestfish-actions.pod:4431
27169 msgid "swapon-file"
27170 msgstr ""
27171
27172 #. type: verbatim
27173 #: ../fish/guestfish-actions.pod:4433
27174 #, no-wrap
27175 msgid ""
27176 " swapon-file file\n"
27177 "\n"
27178 msgstr ""
27179
27180 #. type: textblock
27181 #: ../fish/guestfish-actions.pod:4435
27182 msgid ""
27183 "This command enables swap to a file.  See L</swapon-device> for other notes."
27184 msgstr ""
27185
27186 #. type: =head2
27187 #: ../fish/guestfish-actions.pod:4438
27188 msgid "swapon-label"
27189 msgstr ""
27190
27191 #. type: verbatim
27192 #: ../fish/guestfish-actions.pod:4440
27193 #, no-wrap
27194 msgid ""
27195 " swapon-label label\n"
27196 "\n"
27197 msgstr ""
27198
27199 #. type: textblock
27200 #: ../fish/guestfish-actions.pod:4442
27201 msgid ""
27202 "This command enables swap to a labeled swap partition.  See L</swapon-"
27203 "device> for other notes."
27204 msgstr ""
27205
27206 #. type: =head2
27207 #: ../fish/guestfish-actions.pod:4445
27208 msgid "swapon-uuid"
27209 msgstr ""
27210
27211 #. type: verbatim
27212 #: ../fish/guestfish-actions.pod:4447
27213 #, no-wrap
27214 msgid ""
27215 " swapon-uuid uuid\n"
27216 "\n"
27217 msgstr ""
27218
27219 #. type: textblock
27220 #: ../fish/guestfish-actions.pod:4449
27221 msgid ""
27222 "This command enables swap to a swap partition with the given UUID.  See L</"
27223 "swapon-device> for other notes."
27224 msgstr ""
27225
27226 #. type: =head2
27227 #: ../fish/guestfish-actions.pod:4452
27228 msgid "sync"
27229 msgstr ""
27230
27231 #. type: verbatim
27232 #: ../fish/guestfish-actions.pod:4454
27233 #, no-wrap
27234 msgid ""
27235 " sync\n"
27236 "\n"
27237 msgstr ""
27238
27239 #. type: =head2
27240 #: ../fish/guestfish-actions.pod:4462
27241 msgid "tail"
27242 msgstr ""
27243
27244 #. type: verbatim
27245 #: ../fish/guestfish-actions.pod:4464
27246 #, no-wrap
27247 msgid ""
27248 " tail path\n"
27249 "\n"
27250 msgstr ""
27251
27252 #. type: =head2
27253 #: ../fish/guestfish-actions.pod:4472
27254 msgid "tail-n"
27255 msgstr ""
27256
27257 #. type: verbatim
27258 #: ../fish/guestfish-actions.pod:4474
27259 #, no-wrap
27260 msgid ""
27261 " tail-n nrlines path\n"
27262 "\n"
27263 msgstr ""
27264
27265 #. type: =head2
27266 #: ../fish/guestfish-actions.pod:4487
27267 msgid "tar-in"
27268 msgstr ""
27269
27270 #. type: verbatim
27271 #: ../fish/guestfish-actions.pod:4489
27272 #, no-wrap
27273 msgid ""
27274 " tar-in (tarfile|-) directory\n"
27275 "\n"
27276 msgstr ""
27277
27278 #. type: textblock
27279 #: ../fish/guestfish-actions.pod:4494
27280 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
27281 msgstr ""
27282
27283 #. type: =head2
27284 #: ../fish/guestfish-actions.pod:4499
27285 msgid "tar-out"
27286 msgstr ""
27287
27288 #. type: verbatim
27289 #: ../fish/guestfish-actions.pod:4501
27290 #, no-wrap
27291 msgid ""
27292 " tar-out directory (tarfile|-)\n"
27293 "\n"
27294 msgstr ""
27295
27296 #. type: textblock
27297 #: ../fish/guestfish-actions.pod:4506
27298 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
27299 msgstr ""
27300
27301 #. type: =head2
27302 #: ../fish/guestfish-actions.pod:4511
27303 msgid "tgz-in"
27304 msgstr ""
27305
27306 #. type: verbatim
27307 #: ../fish/guestfish-actions.pod:4513
27308 #, no-wrap
27309 msgid ""
27310 " tgz-in (tarball|-) directory\n"
27311 "\n"
27312 msgstr ""
27313
27314 #. type: textblock
27315 #: ../fish/guestfish-actions.pod:4518
27316 msgid "To upload an uncompressed tarball, use L</tar-in>."
27317 msgstr ""
27318
27319 #. type: =head2
27320 #: ../fish/guestfish-actions.pod:4522
27321 msgid "tgz-out"
27322 msgstr ""
27323
27324 #. type: verbatim
27325 #: ../fish/guestfish-actions.pod:4524
27326 #, no-wrap
27327 msgid ""
27328 " tgz-out directory (tarball|-)\n"
27329 "\n"
27330 msgstr ""
27331
27332 #. type: textblock
27333 #: ../fish/guestfish-actions.pod:4529
27334 msgid "To download an uncompressed tarball, use L</tar-out>."
27335 msgstr ""
27336
27337 #. type: =head2
27338 #: ../fish/guestfish-actions.pod:4533
27339 msgid "touch"
27340 msgstr ""
27341
27342 #. type: verbatim
27343 #: ../fish/guestfish-actions.pod:4535
27344 #, no-wrap
27345 msgid ""
27346 " touch path\n"
27347 "\n"
27348 msgstr ""
27349
27350 #. type: =head2
27351 #: ../fish/guestfish-actions.pod:4544
27352 msgid "truncate"
27353 msgstr ""
27354
27355 #. type: verbatim
27356 #: ../fish/guestfish-actions.pod:4546
27357 #, no-wrap
27358 msgid ""
27359 " truncate path\n"
27360 "\n"
27361 msgstr ""
27362
27363 #. type: =head2
27364 #: ../fish/guestfish-actions.pod:4551
27365 msgid "truncate-size"
27366 msgstr ""
27367
27368 #. type: verbatim
27369 #: ../fish/guestfish-actions.pod:4553
27370 #, no-wrap
27371 msgid ""
27372 " truncate-size path size\n"
27373 "\n"
27374 msgstr ""
27375
27376 #. type: textblock
27377 #: ../fish/guestfish-actions.pod:4558
27378 msgid ""
27379 "If the current file size is less than C<size> then the file is extended to "
27380 "the required size with zero bytes.  This creates a sparse file (ie. disk "
27381 "blocks are not allocated for the file until you write to it).  To create a "
27382 "non-sparse file of zeroes, use L</fallocate64> instead."
27383 msgstr ""
27384
27385 #. type: =head2
27386 #: ../fish/guestfish-actions.pod:4564
27387 msgid "tune2fs-l"
27388 msgstr ""
27389
27390 #. type: verbatim
27391 #: ../fish/guestfish-actions.pod:4566
27392 #, no-wrap
27393 msgid ""
27394 " tune2fs-l device\n"
27395 "\n"
27396 msgstr ""
27397
27398 #. type: =head2
27399 #: ../fish/guestfish-actions.pod:4576
27400 msgid "txz-in"
27401 msgstr ""
27402
27403 #. type: verbatim
27404 #: ../fish/guestfish-actions.pod:4578
27405 #, no-wrap
27406 msgid ""
27407 " txz-in (tarball|-) directory\n"
27408 "\n"
27409 msgstr ""
27410
27411 #. type: =head2
27412 #: ../fish/guestfish-actions.pod:4585
27413 msgid "txz-out"
27414 msgstr ""
27415
27416 #. type: verbatim
27417 #: ../fish/guestfish-actions.pod:4587
27418 #, no-wrap
27419 msgid ""
27420 " txz-out directory (tarball|-)\n"
27421 "\n"
27422 msgstr ""
27423
27424 #. type: =head2
27425 #: ../fish/guestfish-actions.pod:4594
27426 msgid "umask"
27427 msgstr ""
27428
27429 #. type: verbatim
27430 #: ../fish/guestfish-actions.pod:4596
27431 #, no-wrap
27432 msgid ""
27433 " umask mask\n"
27434 "\n"
27435 msgstr ""
27436
27437 #. type: textblock
27438 #: ../fish/guestfish-actions.pod:4610
27439 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
27440 msgstr ""
27441
27442 #. type: =head2
27443 #: ../fish/guestfish-actions.pod:4615
27444 msgid "umount"
27445 msgstr ""
27446
27447 #. type: =head2
27448 #: ../fish/guestfish-actions.pod:4617
27449 msgid "unmount"
27450 msgstr ""
27451
27452 #. type: verbatim
27453 #: ../fish/guestfish-actions.pod:4619
27454 #, no-wrap
27455 msgid ""
27456 " umount pathordevice\n"
27457 "\n"
27458 msgstr ""
27459
27460 #. type: =head2
27461 #: ../fish/guestfish-actions.pod:4625
27462 msgid "umount-all"
27463 msgstr ""
27464
27465 #. type: =head2
27466 #: ../fish/guestfish-actions.pod:4627
27467 msgid "unmount-all"
27468 msgstr ""
27469
27470 #. type: verbatim
27471 #: ../fish/guestfish-actions.pod:4629
27472 #, no-wrap
27473 msgid ""
27474 " umount-all\n"
27475 "\n"
27476 msgstr ""
27477
27478 #. type: =head2
27479 #: ../fish/guestfish-actions.pod:4635
27480 msgid "upload"
27481 msgstr ""
27482
27483 #. type: verbatim
27484 #: ../fish/guestfish-actions.pod:4637
27485 #, no-wrap
27486 msgid ""
27487 " upload (filename|-) remotefilename\n"
27488 "\n"
27489 msgstr ""
27490
27491 #. type: textblock
27492 #: ../fish/guestfish-actions.pod:4644
27493 msgid "See also L</download>."
27494 msgstr ""
27495
27496 #. type: =head2
27497 #: ../fish/guestfish-actions.pod:4648
27498 msgid "upload-offset"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../fish/guestfish-actions.pod:4650
27503 #, no-wrap
27504 msgid ""
27505 " upload-offset (filename|-) remotefilename offset\n"
27506 "\n"
27507 msgstr ""
27508
27509 #. type: textblock
27510 #: ../fish/guestfish-actions.pod:4662
27511 msgid ""
27512 "Note that there is no limit on the amount of data that can be uploaded with "
27513 "this call, unlike with L</pwrite>, and this call always writes the full "
27514 "amount unless an error occurs."
27515 msgstr ""
27516
27517 #. type: textblock
27518 #: ../fish/guestfish-actions.pod:4667
27519 msgid "See also L</upload>, L</pwrite>."
27520 msgstr ""
27521
27522 #. type: =head2
27523 #: ../fish/guestfish-actions.pod:4671
27524 msgid "utimens"
27525 msgstr ""
27526
27527 #. type: verbatim
27528 #: ../fish/guestfish-actions.pod:4673
27529 #, no-wrap
27530 msgid ""
27531 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: =head2
27536 #: ../fish/guestfish-actions.pod:4692
27537 msgid "version"
27538 msgstr ""
27539
27540 #. type: verbatim
27541 #: ../fish/guestfish-actions.pod:4694
27542 #, no-wrap
27543 msgid ""
27544 " version\n"
27545 "\n"
27546 msgstr ""
27547
27548 #. type: textblock
27549 #: ../fish/guestfish-actions.pod:4721
27550 msgid ""
27551 "I<Note:> Don't use this call to test for availability of features.  In "
27552 "enterprise distributions we backport features from later versions into "
27553 "earlier versions, making this an unreliable way to test for features.  Use "
27554 "L</available> instead."
27555 msgstr ""
27556
27557 #. type: =head2
27558 #: ../fish/guestfish-actions.pod:4727
27559 msgid "vfs-label"
27560 msgstr ""
27561
27562 #. type: verbatim
27563 #: ../fish/guestfish-actions.pod:4729
27564 #, no-wrap
27565 msgid ""
27566 " vfs-label device\n"
27567 "\n"
27568 msgstr ""
27569
27570 #. type: textblock
27571 #: ../fish/guestfish-actions.pod:4736
27572 msgid "To find a filesystem from the label, use L</findfs-label>."
27573 msgstr ""
27574
27575 #. type: =head2
27576 #: ../fish/guestfish-actions.pod:4738
27577 msgid "vfs-type"
27578 msgstr ""
27579
27580 #. type: verbatim
27581 #: ../fish/guestfish-actions.pod:4740
27582 #, no-wrap
27583 msgid ""
27584 " vfs-type device\n"
27585 "\n"
27586 msgstr ""
27587
27588 #. type: =head2
27589 #: ../fish/guestfish-actions.pod:4750
27590 msgid "vfs-uuid"
27591 msgstr ""
27592
27593 #. type: verbatim
27594 #: ../fish/guestfish-actions.pod:4752
27595 #, no-wrap
27596 msgid ""
27597 " vfs-uuid device\n"
27598 "\n"
27599 msgstr ""
27600
27601 #. type: textblock
27602 #: ../fish/guestfish-actions.pod:4759
27603 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
27604 msgstr ""
27605
27606 #. type: =head2
27607 #: ../fish/guestfish-actions.pod:4761
27608 msgid "vg-activate"
27609 msgstr ""
27610
27611 #. type: verbatim
27612 #: ../fish/guestfish-actions.pod:4763
27613 #, no-wrap
27614 msgid ""
27615 " vg-activate true|false 'volgroups ...'\n"
27616 "\n"
27617 msgstr ""
27618
27619 #. type: =head2
27620 #: ../fish/guestfish-actions.pod:4776
27621 msgid "vg-activate-all"
27622 msgstr ""
27623
27624 #. type: verbatim
27625 #: ../fish/guestfish-actions.pod:4778
27626 #, no-wrap
27627 msgid ""
27628 " vg-activate-all true|false\n"
27629 "\n"
27630 msgstr ""
27631
27632 #. type: =head2
27633 #: ../fish/guestfish-actions.pod:4788
27634 msgid "vgcreate"
27635 msgstr ""
27636
27637 #. type: verbatim
27638 #: ../fish/guestfish-actions.pod:4790
27639 #, no-wrap
27640 msgid ""
27641 " vgcreate volgroup 'physvols ...'\n"
27642 "\n"
27643 msgstr ""
27644
27645 #. type: =head2
27646 #: ../fish/guestfish-actions.pod:4795
27647 msgid "vglvuuids"
27648 msgstr ""
27649
27650 #. type: verbatim
27651 #: ../fish/guestfish-actions.pod:4797
27652 #, no-wrap
27653 msgid ""
27654 " vglvuuids vgname\n"
27655 "\n"
27656 msgstr ""
27657
27658 #. type: textblock
27659 #: ../fish/guestfish-actions.pod:4802
27660 msgid ""
27661 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
27662 "logical volumes and volume groups."
27663 msgstr ""
27664
27665 #. type: textblock
27666 #: ../fish/guestfish-actions.pod:4805
27667 msgid "See also L</vgpvuuids>."
27668 msgstr ""
27669
27670 #. type: =head2
27671 #: ../fish/guestfish-actions.pod:4807
27672 msgid "vgpvuuids"
27673 msgstr ""
27674
27675 #. type: verbatim
27676 #: ../fish/guestfish-actions.pod:4809
27677 #, no-wrap
27678 msgid ""
27679 " vgpvuuids vgname\n"
27680 "\n"
27681 msgstr ""
27682
27683 #. type: textblock
27684 #: ../fish/guestfish-actions.pod:4814
27685 msgid ""
27686 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
27687 "physical volumes and volume groups."
27688 msgstr ""
27689
27690 #. type: textblock
27691 #: ../fish/guestfish-actions.pod:4817
27692 msgid "See also L</vglvuuids>."
27693 msgstr ""
27694
27695 #. type: =head2
27696 #: ../fish/guestfish-actions.pod:4819
27697 msgid "vgremove"
27698 msgstr ""
27699
27700 #. type: verbatim
27701 #: ../fish/guestfish-actions.pod:4821
27702 #, no-wrap
27703 msgid ""
27704 " vgremove vgname\n"
27705 "\n"
27706 msgstr ""
27707
27708 #. type: =head2
27709 #: ../fish/guestfish-actions.pod:4828
27710 msgid "vgrename"
27711 msgstr ""
27712
27713 #. type: verbatim
27714 #: ../fish/guestfish-actions.pod:4830
27715 #, no-wrap
27716 msgid ""
27717 " vgrename volgroup newvolgroup\n"
27718 "\n"
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../fish/guestfish-actions.pod:4834
27723 msgid "vgs"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../fish/guestfish-actions.pod:4836
27728 #, no-wrap
27729 msgid ""
27730 " vgs\n"
27731 "\n"
27732 msgstr ""
27733
27734 #. type: textblock
27735 #: ../fish/guestfish-actions.pod:4844
27736 msgid "See also L</vgs-full>."
27737 msgstr ""
27738
27739 #. type: =head2
27740 #: ../fish/guestfish-actions.pod:4846
27741 msgid "vgs-full"
27742 msgstr ""
27743
27744 #. type: verbatim
27745 #: ../fish/guestfish-actions.pod:4848
27746 #, no-wrap
27747 msgid ""
27748 " vgs-full\n"
27749 "\n"
27750 msgstr ""
27751
27752 #. type: =head2
27753 #: ../fish/guestfish-actions.pod:4853
27754 msgid "vgscan"
27755 msgstr ""
27756
27757 #. type: verbatim
27758 #: ../fish/guestfish-actions.pod:4855
27759 #, no-wrap
27760 msgid ""
27761 " vgscan\n"
27762 "\n"
27763 msgstr ""
27764
27765 #. type: =head2
27766 #: ../fish/guestfish-actions.pod:4860
27767 msgid "vguuid"
27768 msgstr ""
27769
27770 #. type: verbatim
27771 #: ../fish/guestfish-actions.pod:4862
27772 #, no-wrap
27773 msgid ""
27774 " vguuid vgname\n"
27775 "\n"
27776 msgstr ""
27777
27778 #. type: =head2
27779 #: ../fish/guestfish-actions.pod:4866
27780 msgid "wc-c"
27781 msgstr ""
27782
27783 #. type: verbatim
27784 #: ../fish/guestfish-actions.pod:4868
27785 #, no-wrap
27786 msgid ""
27787 " wc-c path\n"
27788 "\n"
27789 msgstr ""
27790
27791 #. type: =head2
27792 #: ../fish/guestfish-actions.pod:4873
27793 msgid "wc-l"
27794 msgstr ""
27795
27796 #. type: verbatim
27797 #: ../fish/guestfish-actions.pod:4875
27798 #, no-wrap
27799 msgid ""
27800 " wc-l path\n"
27801 "\n"
27802 msgstr ""
27803
27804 #. type: =head2
27805 #: ../fish/guestfish-actions.pod:4880
27806 msgid "wc-w"
27807 msgstr ""
27808
27809 #. type: verbatim
27810 #: ../fish/guestfish-actions.pod:4882
27811 #, no-wrap
27812 msgid ""
27813 " wc-w path\n"
27814 "\n"
27815 msgstr ""
27816
27817 #. type: =head2
27818 #: ../fish/guestfish-actions.pod:4887
27819 msgid "write"
27820 msgstr ""
27821
27822 #. type: verbatim
27823 #: ../fish/guestfish-actions.pod:4889
27824 #, no-wrap
27825 msgid ""
27826 " write path content\n"
27827 "\n"
27828 msgstr ""
27829
27830 #. type: =head2
27831 #: ../fish/guestfish-actions.pod:4897
27832 msgid "write-file"
27833 msgstr ""
27834
27835 #. type: verbatim
27836 #: ../fish/guestfish-actions.pod:4899
27837 #, no-wrap
27838 msgid ""
27839 " write-file path content size\n"
27840 "\n"
27841 msgstr ""
27842
27843 #. type: =head2
27844 #: ../fish/guestfish-actions.pod:4922
27845 msgid "zegrep"
27846 msgstr ""
27847
27848 #. type: verbatim
27849 #: ../fish/guestfish-actions.pod:4924
27850 #, no-wrap
27851 msgid ""
27852 " zegrep regex path\n"
27853 "\n"
27854 msgstr ""
27855
27856 #. type: =head2
27857 #: ../fish/guestfish-actions.pod:4932
27858 msgid "zegrepi"
27859 msgstr ""
27860
27861 #. type: verbatim
27862 #: ../fish/guestfish-actions.pod:4934
27863 #, no-wrap
27864 msgid ""
27865 " zegrepi regex path\n"
27866 "\n"
27867 msgstr ""
27868
27869 #. type: =head2
27870 #: ../fish/guestfish-actions.pod:4942
27871 msgid "zero"
27872 msgstr ""
27873
27874 #. type: verbatim
27875 #: ../fish/guestfish-actions.pod:4944
27876 #, no-wrap
27877 msgid ""
27878 " zero device\n"
27879 "\n"
27880 msgstr ""
27881
27882 #. type: textblock
27883 #: ../fish/guestfish-actions.pod:4952
27884 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
27885 msgstr ""
27886
27887 #. type: =head2
27888 #: ../fish/guestfish-actions.pod:4955
27889 msgid "zero-device"
27890 msgstr ""
27891
27892 #. type: verbatim
27893 #: ../fish/guestfish-actions.pod:4957
27894 #, no-wrap
27895 msgid ""
27896 " zero-device device\n"
27897 "\n"
27898 msgstr ""
27899
27900 #. type: textblock
27901 #: ../fish/guestfish-actions.pod:4959
27902 msgid ""
27903 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
27904 "which just zeroes the first few blocks of a device."
27905 msgstr ""
27906
27907 #. type: =head2
27908 #: ../fish/guestfish-actions.pod:4966
27909 msgid "zerofree"
27910 msgstr ""
27911
27912 #. type: verbatim
27913 #: ../fish/guestfish-actions.pod:4968
27914 #, no-wrap
27915 msgid ""
27916 " zerofree device\n"
27917 "\n"
27918 msgstr ""
27919
27920 #. type: =head2
27921 #: ../fish/guestfish-actions.pod:4981
27922 msgid "zfgrep"
27923 msgstr ""
27924
27925 #. type: verbatim
27926 #: ../fish/guestfish-actions.pod:4983
27927 #, no-wrap
27928 msgid ""
27929 " zfgrep pattern path\n"
27930 "\n"
27931 msgstr ""
27932
27933 #. type: =head2
27934 #: ../fish/guestfish-actions.pod:4991
27935 msgid "zfgrepi"
27936 msgstr ""
27937
27938 #. type: verbatim
27939 #: ../fish/guestfish-actions.pod:4993
27940 #, no-wrap
27941 msgid ""
27942 " zfgrepi pattern path\n"
27943 "\n"
27944 msgstr ""
27945
27946 #. type: =head2
27947 #: ../fish/guestfish-actions.pod:5001
27948 msgid "zfile"
27949 msgstr ""
27950
27951 #. type: verbatim
27952 #: ../fish/guestfish-actions.pod:5003
27953 #, no-wrap
27954 msgid ""
27955 " zfile meth path\n"
27956 "\n"
27957 msgstr ""
27958
27959 #. type: textblock
27960 #: ../fish/guestfish-actions.pod:5010
27961 msgid ""
27962 "Since 1.0.63, use L</file> instead which can now process compressed files."
27963 msgstr ""
27964
27965 #. type: =head2
27966 #: ../fish/guestfish-actions.pod:5020
27967 msgid "zgrep"
27968 msgstr ""
27969
27970 #. type: verbatim
27971 #: ../fish/guestfish-actions.pod:5022
27972 #, no-wrap
27973 msgid ""
27974 " zgrep regex path\n"
27975 "\n"
27976 msgstr ""
27977
27978 #. type: =head2
27979 #: ../fish/guestfish-actions.pod:5030
27980 msgid "zgrepi"
27981 msgstr ""
27982
27983 #. type: verbatim
27984 #: ../fish/guestfish-actions.pod:5032
27985 #, no-wrap
27986 msgid ""
27987 " zgrepi regex path\n"
27988 "\n"
27989 msgstr ""
27990
27991 #. type: =head2
27992 #: ../fish/guestfish-commands.pod:1
27993 msgid "alloc"
27994 msgstr ""
27995
27996 #. type: =head2
27997 #: ../fish/guestfish-commands.pod:3
27998 msgid "allocate"
27999 msgstr ""
28000
28001 #. type: verbatim
28002 #: ../fish/guestfish-commands.pod:5
28003 #, no-wrap
28004 msgid ""
28005 " alloc filename size\n"
28006 "\n"
28007 msgstr ""
28008
28009 #. type: textblock
28010 #: ../fish/guestfish-commands.pod:7
28011 msgid ""
28012 "This creates an empty (zeroed) file of the given size, and then adds so it "
28013 "can be further examined."
28014 msgstr ""
28015
28016 #. type: textblock
28017 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
28018 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
28019 msgstr ""
28020
28021 #. type: textblock
28022 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
28023 msgid "Size can be specified using standard suffixes, eg. C<1M>."
28024 msgstr ""
28025
28026 #. type: textblock
28027 #: ../fish/guestfish-commands.pod:14
28028 msgid ""
28029 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
28030 "image, see L</PREPARED DISK IMAGES>."
28031 msgstr ""
28032
28033 #. type: =head2
28034 #: ../fish/guestfish-commands.pod:17
28035 msgid "copy-in"
28036 msgstr ""
28037
28038 #. type: verbatim
28039 #: ../fish/guestfish-commands.pod:19
28040 #, no-wrap
28041 msgid ""
28042 " copy-in local [local ...] /remotedir\n"
28043 "\n"
28044 msgstr ""
28045
28046 #. type: textblock
28047 #: ../fish/guestfish-commands.pod:21
28048 msgid ""
28049 "C<copy-in> copies local files or directories recursively into the disk "
28050 "image, placing them in the directory called C</remotedir> (which must "
28051 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
28052 "other commands as necessary."
28053 msgstr ""
28054
28055 #. type: textblock
28056 #: ../fish/guestfish-commands.pod:26
28057 msgid ""
28058 "Multiple local files and directories can be specified, but the last "
28059 "parameter must always be a remote directory.  Wildcards cannot be used."
28060 msgstr ""
28061
28062 #. type: =head2
28063 #: ../fish/guestfish-commands.pod:30
28064 msgid "copy-out"
28065 msgstr ""
28066
28067 #. type: verbatim
28068 #: ../fish/guestfish-commands.pod:32
28069 #, no-wrap
28070 msgid ""
28071 " copy-out remote [remote ...] localdir\n"
28072 "\n"
28073 msgstr ""
28074
28075 #. type: textblock
28076 #: ../fish/guestfish-commands.pod:34
28077 msgid ""
28078 "C<copy-out> copies remote files or directories recursively out of the disk "
28079 "image, placing them on the host disk in a local directory called C<localdir> "
28080 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
28081 "download>, L</tar-out> and other commands as necessary."
28082 msgstr ""
28083
28084 #. type: textblock
28085 #: ../fish/guestfish-commands.pod:40
28086 msgid ""
28087 "Multiple remote files and directories can be specified, but the last "
28088 "parameter must always be a local directory.  To download to the current "
28089 "directory, use C<.> as in:"
28090 msgstr ""
28091
28092 #. type: verbatim
28093 #: ../fish/guestfish-commands.pod:44
28094 #, no-wrap
28095 msgid ""
28096 " copy-out /home .\n"
28097 "\n"
28098 msgstr ""
28099
28100 #. type: textblock
28101 #: ../fish/guestfish-commands.pod:46
28102 msgid ""
28103 "Wildcards cannot be used in the ordinary command, but you can use them with "
28104 "the help of L</glob> like this:"
28105 msgstr ""
28106
28107 #. type: verbatim
28108 #: ../fish/guestfish-commands.pod:49
28109 #, no-wrap
28110 msgid ""
28111 " glob copy-out /home/* .\n"
28112 "\n"
28113 msgstr ""
28114
28115 #. type: =head2
28116 #: ../fish/guestfish-commands.pod:51
28117 msgid "echo"
28118 msgstr ""
28119
28120 #. type: verbatim
28121 #: ../fish/guestfish-commands.pod:53
28122 #, no-wrap
28123 msgid ""
28124 " echo [params ...]\n"
28125 "\n"
28126 msgstr ""
28127
28128 #. type: textblock
28129 #: ../fish/guestfish-commands.pod:55
28130 msgid "This echos the parameters to the terminal."
28131 msgstr ""
28132
28133 #. type: =head2
28134 #: ../fish/guestfish-commands.pod:57
28135 msgid "edit"
28136 msgstr ""
28137
28138 #. type: =head2
28139 #: ../fish/guestfish-commands.pod:59
28140 msgid "vi"
28141 msgstr ""
28142
28143 #. type: =head2
28144 #: ../fish/guestfish-commands.pod:61
28145 msgid "emacs"
28146 msgstr ""
28147
28148 #. type: verbatim
28149 #: ../fish/guestfish-commands.pod:63
28150 #, no-wrap
28151 msgid ""
28152 " edit filename\n"
28153 "\n"
28154 msgstr ""
28155
28156 #. type: textblock
28157 #: ../fish/guestfish-commands.pod:65
28158 msgid ""
28159 "This is used to edit a file.  It downloads the file, edits it locally using "
28160 "your editor, then uploads the result."
28161 msgstr ""
28162
28163 #. type: textblock
28164 #: ../fish/guestfish-commands.pod:68
28165 msgid ""
28166 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
28167 "or C<emacs> you will get those corresponding editors."
28168 msgstr ""
28169
28170 #. type: =head2
28171 #: ../fish/guestfish-commands.pod:72
28172 msgid "glob"
28173 msgstr ""
28174
28175 #. type: verbatim
28176 #: ../fish/guestfish-commands.pod:74
28177 #, no-wrap
28178 msgid ""
28179 " glob command args...\n"
28180 "\n"
28181 msgstr ""
28182
28183 #. type: textblock
28184 #: ../fish/guestfish-commands.pod:76
28185 msgid ""
28186 "Expand wildcards in any paths in the args list, and run C<command> "
28187 "repeatedly on each matching path."
28188 msgstr ""
28189
28190 #. type: textblock
28191 #: ../fish/guestfish-commands.pod:79
28192 msgid "See L</WILDCARDS AND GLOBBING>."
28193 msgstr ""
28194
28195 #. type: =head2
28196 #: ../fish/guestfish-commands.pod:81
28197 msgid "hexedit"
28198 msgstr ""
28199
28200 #. type: verbatim
28201 #: ../fish/guestfish-commands.pod:83
28202 #, no-wrap
28203 msgid ""
28204 " hexedit <filename|device>\n"
28205 " hexedit <filename|device> <max>\n"
28206 " hexedit <filename|device> <start> <max>\n"
28207 "\n"
28208 msgstr ""
28209
28210 #. type: textblock
28211 #: ../fish/guestfish-commands.pod:87
28212 msgid ""
28213 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
28214 "device."
28215 msgstr ""
28216
28217 #. type: textblock
28218 #: ../fish/guestfish-commands.pod:90
28219 msgid ""
28220 "This command works by downloading potentially the whole file or device, "
28221 "editing it locally, then uploading it.  If the file or device is large, you "
28222 "have to specify which part you wish to edit by using C<max> and/or C<start> "
28223 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
28224 "usual modifiers allowed such as C<1M> (1 megabyte)."
28225 msgstr ""
28226
28227 #. type: textblock
28228 #: ../fish/guestfish-commands.pod:97
28229 msgid "For example to edit the first few sectors of a disk you might do:"
28230 msgstr ""
28231
28232 #. type: verbatim
28233 #: ../fish/guestfish-commands.pod:100
28234 #, no-wrap
28235 msgid ""
28236 " hexedit /dev/sda 1M\n"
28237 "\n"
28238 msgstr ""
28239
28240 #. type: textblock
28241 #: ../fish/guestfish-commands.pod:102
28242 msgid ""
28243 "which would allow you to edit anywhere within the first megabyte of the disk."
28244 msgstr ""
28245
28246 #. type: textblock
28247 #: ../fish/guestfish-commands.pod:105
28248 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
28249 msgstr ""
28250
28251 #. type: verbatim
28252 #: ../fish/guestfish-commands.pod:107
28253 #, no-wrap
28254 msgid ""
28255 " hexedit /dev/sda1 0x400 0x400\n"
28256 "\n"
28257 msgstr ""
28258
28259 #. type: textblock
28260 #: ../fish/guestfish-commands.pod:109
28261 msgid "(assuming the superblock is in the standard location)."
28262 msgstr ""
28263
28264 #. type: textblock
28265 #: ../fish/guestfish-commands.pod:111
28266 msgid ""
28267 "This command requires the external L<hexedit(1)> program.  You can specify "
28268 "another program to use by setting the C<HEXEDITOR> environment variable."
28269 msgstr ""
28270
28271 #. type: textblock
28272 #: ../fish/guestfish-commands.pod:115
28273 msgid "See also L</hexdump>."
28274 msgstr ""
28275
28276 #. type: =head2
28277 #: ../fish/guestfish-commands.pod:117
28278 msgid "lcd"
28279 msgstr ""
28280
28281 #. type: verbatim
28282 #: ../fish/guestfish-commands.pod:119
28283 #, no-wrap
28284 msgid ""
28285 " lcd directory\n"
28286 "\n"
28287 msgstr ""
28288
28289 #. type: textblock
28290 #: ../fish/guestfish-commands.pod:121
28291 msgid ""
28292 "Change the local directory, ie. the current directory of guestfish itself."
28293 msgstr ""
28294
28295 #. type: textblock
28296 #: ../fish/guestfish-commands.pod:124
28297 msgid "Note that C<!cd> won't do what you might expect."
28298 msgstr ""
28299
28300 #. type: =head2
28301 #: ../fish/guestfish-commands.pod:126
28302 msgid "man"
28303 msgstr ""
28304
28305 #. type: =head2
28306 #: ../fish/guestfish-commands.pod:128
28307 msgid "manual"
28308 msgstr ""
28309
28310 #. type: verbatim
28311 #: ../fish/guestfish-commands.pod:130
28312 #, no-wrap
28313 msgid ""
28314 "  man\n"
28315 "\n"
28316 msgstr ""
28317
28318 #. type: textblock
28319 #: ../fish/guestfish-commands.pod:132
28320 msgid "Opens the manual page for guestfish."
28321 msgstr ""
28322
28323 #. type: =head2
28324 #: ../fish/guestfish-commands.pod:134
28325 msgid "more"
28326 msgstr ""
28327
28328 #. type: =head2
28329 #: ../fish/guestfish-commands.pod:136
28330 msgid "less"
28331 msgstr ""
28332
28333 #. type: verbatim
28334 #: ../fish/guestfish-commands.pod:138
28335 #, no-wrap
28336 msgid ""
28337 " more filename\n"
28338 "\n"
28339 msgstr ""
28340
28341 #. type: verbatim
28342 #: ../fish/guestfish-commands.pod:140
28343 #, no-wrap
28344 msgid ""
28345 " less filename\n"
28346 "\n"
28347 msgstr ""
28348
28349 #. type: textblock
28350 #: ../fish/guestfish-commands.pod:142
28351 msgid "This is used to view a file."
28352 msgstr ""
28353
28354 #. type: textblock
28355 #: ../fish/guestfish-commands.pod:144
28356 msgid ""
28357 "The default viewer is C<$PAGER>.  However if you use the alternate command "
28358 "C<less> you will get the C<less> command specifically."
28359 msgstr ""
28360
28361 #. type: =head2
28362 #: ../fish/guestfish-commands.pod:147
28363 msgid "reopen"
28364 msgstr ""
28365
28366 #. type: verbatim
28367 #: ../fish/guestfish-commands.pod:149
28368 #, no-wrap
28369 msgid ""
28370 "  reopen\n"
28371 "\n"
28372 msgstr ""
28373
28374 #. type: textblock
28375 #: ../fish/guestfish-commands.pod:151
28376 msgid ""
28377 "Close and reopen the libguestfs handle.  It is not necessary to use this "
28378 "normally, because the handle is closed properly when guestfish exits.  "
28379 "However this is occasionally useful for testing."
28380 msgstr ""
28381
28382 #. type: =head2
28383 #: ../fish/guestfish-commands.pod:155
28384 msgid "sparse"
28385 msgstr ""
28386
28387 #. type: verbatim
28388 #: ../fish/guestfish-commands.pod:157
28389 #, no-wrap
28390 msgid ""
28391 " sparse filename size\n"
28392 "\n"
28393 msgstr ""
28394
28395 #. type: textblock
28396 #: ../fish/guestfish-commands.pod:159
28397 msgid ""
28398 "This creates an empty sparse file of the given size, and then adds so it can "
28399 "be further examined."
28400 msgstr ""
28401
28402 #. type: textblock
28403 #: ../fish/guestfish-commands.pod:162
28404 msgid ""
28405 "In all respects it works the same as the L</alloc> command, except that the "
28406 "image file is allocated sparsely, which means that disk blocks are not "
28407 "assigned to the file until they are needed.  Sparse disk files only use "
28408 "space when written to, but they are slower and there is a danger you could "
28409 "run out of real disk space during a write operation."
28410 msgstr ""
28411
28412 #. type: =head2
28413 #: ../fish/guestfish-commands.pod:172
28414 msgid "supported"
28415 msgstr ""
28416
28417 #. type: verbatim
28418 #: ../fish/guestfish-commands.pod:174
28419 #, no-wrap
28420 msgid ""
28421 " supported\n"
28422 "\n"
28423 msgstr ""
28424
28425 #. type: textblock
28426 #: ../fish/guestfish-commands.pod:176
28427 msgid ""
28428 "This command returns a list of the optional groups known to the daemon, and "
28429 "indicates which ones are supported by this build of the libguestfs appliance."
28430 msgstr ""
28431
28432 #. type: textblock
28433 #: ../fish/guestfish-commands.pod:180
28434 msgid "See also L<guestfs(3)/AVAILABILITY>."
28435 msgstr ""
28436
28437 #. type: =head2
28438 #: ../fish/guestfish-commands.pod:182
28439 msgid "time"
28440 msgstr ""
28441
28442 #. type: verbatim
28443 #: ../fish/guestfish-commands.pod:184
28444 #, no-wrap
28445 msgid ""
28446 " time command args...\n"
28447 "\n"
28448 msgstr ""
28449
28450 #. type: textblock
28451 #: ../fish/guestfish-commands.pod:186
28452 msgid ""
28453 "Run the command as usual, but print the elapsed time afterwards.  This can "
28454 "be useful for benchmarking operations."
28455 msgstr ""
28456
28457 #. type: textblock
28458 #: ../test-tool/libguestfs-test-tool.pod:5
28459 msgid "libguestfs-test-tool - End user tests for libguestfs"
28460 msgstr ""
28461
28462 #. type: verbatim
28463 #: ../test-tool/libguestfs-test-tool.pod:9
28464 #, no-wrap
28465 msgid ""
28466 " libguestfs-test-tool [--options]\n"
28467 "\n"
28468 msgstr ""
28469
28470 #. type: textblock
28471 #: ../test-tool/libguestfs-test-tool.pod:13
28472 msgid ""
28473 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
28474 "and developers, to allow them to check basic libguestfs functionality is "
28475 "working.  This is needed because libguestfs occasionally breaks for reasons "
28476 "beyond our control: usually because of changes in the underlying qemu or "
28477 "kernel packages, or the host environment."
28478 msgstr ""
28479
28480 #. type: textblock
28481 #: ../test-tool/libguestfs-test-tool.pod:20
28482 msgid "If you suspect a problem in libguestfs, then just run:"
28483 msgstr ""
28484
28485 #. type: verbatim
28486 #: ../test-tool/libguestfs-test-tool.pod:22
28487 #, no-wrap
28488 msgid ""
28489 " libguestfs-test-tool\n"
28490 "\n"
28491 msgstr ""
28492
28493 #. type: textblock
28494 #: ../test-tool/libguestfs-test-tool.pod:24
28495 msgid "It will print lots of diagnostic messages."
28496 msgstr ""
28497
28498 #. type: textblock
28499 #: ../test-tool/libguestfs-test-tool.pod:26
28500 msgid "If it runs to completion successfully, you will see this near the end:"
28501 msgstr ""
28502
28503 #. type: verbatim
28504 #: ../test-tool/libguestfs-test-tool.pod:28
28505 #, no-wrap
28506 msgid ""
28507 " ===== TEST FINISHED OK =====\n"
28508 "\n"
28509 msgstr ""
28510
28511 #. type: textblock
28512 #: ../test-tool/libguestfs-test-tool.pod:30
28513 msgid "and the test tool will exit with code 0."
28514 msgstr ""
28515
28516 #. type: textblock
28517 #: ../test-tool/libguestfs-test-tool.pod:32
28518 msgid ""
28519 "If it fails (and/or exits with non-zero error code), please paste the "
28520 "B<complete, unedited> output of the test tool into a bug report.  More "
28521 "information about reporting bugs can be found on the L<http://libguestfs.org/"
28522 "> website."
28523 msgstr ""
28524
28525 #. type: =item
28526 #: ../test-tool/libguestfs-test-tool.pod:41
28527 msgid "I<--help>"
28528 msgstr ""
28529
28530 #. type: textblock
28531 #: ../test-tool/libguestfs-test-tool.pod:43
28532 msgid "Display short usage information and exit."
28533 msgstr ""
28534
28535 #. type: =item
28536 #: ../test-tool/libguestfs-test-tool.pod:45
28537 msgid "I<--qemu qemu_binary>"
28538 msgstr ""
28539
28540 #. type: textblock
28541 #: ../test-tool/libguestfs-test-tool.pod:47
28542 msgid ""
28543 "If you have downloaded another qemu binary, point this option at the full "
28544 "path of the binary to try it."
28545 msgstr ""
28546
28547 #. type: =item
28548 #: ../test-tool/libguestfs-test-tool.pod:50
28549 msgid "I<--qemudir qemu_source_dir>"
28550 msgstr ""
28551
28552 #. type: textblock
28553 #: ../test-tool/libguestfs-test-tool.pod:52
28554 msgid ""
28555 "If you have compiled qemu from source, point this option at the source "
28556 "directory to try it."
28557 msgstr ""
28558
28559 #. type: =item
28560 #: ../test-tool/libguestfs-test-tool.pod:55
28561 msgid "I<--timeout N>"
28562 msgstr ""
28563
28564 #. type: textblock
28565 #: ../test-tool/libguestfs-test-tool.pod:57
28566 msgid ""
28567 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
28568 "does not usually need to be adjusted unless your machine is very slow."
28569 msgstr ""
28570
28571 #. type: =head1
28572 #: ../test-tool/libguestfs-test-tool.pod:63
28573 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
28574 msgstr ""
28575
28576 #. type: textblock
28577 #: ../test-tool/libguestfs-test-tool.pod:65
28578 msgid ""
28579 "If you have compiled another version of qemu from source and would like to "
28580 "try that, then you can use the I<--qemudir> option to point to the qemu "
28581 "source directory."
28582 msgstr ""
28583
28584 #. type: textblock
28585 #: ../test-tool/libguestfs-test-tool.pod:69
28586 msgid ""
28587 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
28588 "option to point to the binary."
28589 msgstr ""
28590
28591 #. type: textblock
28592 #: ../test-tool/libguestfs-test-tool.pod:72
28593 msgid ""
28594 "When using an alternate qemu with libguestfs, usually you would need to "
28595 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
28596 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
28597 "use either of the I<--qemudir> or I<--qemu> options."
28598 msgstr ""
28599
28600 #. type: textblock
28601 #: ../test-tool/libguestfs-test-tool.pod:79
28602 msgid ""
28603 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
28604 "I<1> if there was an error."
28605 msgstr ""
28606
28607 #. type: textblock
28608 #: ../test-tool/libguestfs-test-tool.pod:84
28609 msgid ""
28610 "For the full list of environment variables which may affect libguestfs, "
28611 "please see the L<guestfs(3)> manual page."
28612 msgstr ""
28613
28614 #. type: textblock
28615 #: ../test-tool/libguestfs-test-tool.pod:89
28616 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
28617 msgstr ""
28618
28619 #. type: textblock
28620 #: ../fuse/guestmount.pod:5
28621 msgid ""
28622 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
28623 msgstr ""
28624
28625 #. type: verbatim
28626 #: ../fuse/guestmount.pod:9
28627 #, no-wrap
28628 msgid ""
28629 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
28630 "\n"
28631 msgstr ""
28632
28633 #. type: verbatim
28634 #: ../fuse/guestmount.pod:11
28635 #, no-wrap
28636 msgid ""
28637 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
28638 "\n"
28639 msgstr ""
28640
28641 #. type: verbatim
28642 #: ../fuse/guestmount.pod:13
28643 #, no-wrap
28644 msgid ""
28645 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
28646 "\n"
28647 msgstr ""
28648
28649 #. type: textblock
28650 #: ../fuse/guestmount.pod:17
28651 msgid ""
28652 "You must I<not> use C<guestmount> in read-write mode on live virtual "
28653 "machines.  If you do this, you risk disk corruption in the VM."
28654 msgstr ""
28655
28656 #. type: textblock
28657 #: ../fuse/guestmount.pod:22
28658 msgid ""
28659 "The guestmount program can be used to mount virtual machine filesystems and "
28660 "other disk images on the host.  It uses libguestfs for access to the guest "
28661 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
28662 "a mountable device."
28663 msgstr ""
28664
28665 #. type: textblock
28666 #: ../fuse/guestmount.pod:27
28667 msgid ""
28668 "Along with other options, you have to give at least one device (I<-a> "
28669 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
28670 "option) or use the I<-i> inspection option.  How this works is better "
28671 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
28672 "below."
28673 msgstr ""
28674
28675 #. type: textblock
28676 #: ../fuse/guestmount.pod:33
28677 msgid ""
28678 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
28679 "by you, and the filesystem will not be visible to any other users unless you "
28680 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
28681 "the filesystem, use the C<fusermount -u> command."
28682 msgstr ""
28683
28684 #. type: textblock
28685 #: ../fuse/guestmount.pod:41
28686 msgid ""
28687 "For a typical Windows guest which has its main filesystem on the first "
28688 "partition:"
28689 msgstr ""
28690
28691 #. type: verbatim
28692 #: ../fuse/guestmount.pod:44
28693 #, no-wrap
28694 msgid ""
28695 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
28696 "\n"
28697 msgstr ""
28698
28699 #. type: textblock
28700 #: ../fuse/guestmount.pod:46
28701 msgid ""
28702 "For a typical Linux guest which has a /boot filesystem on the first "
28703 "partition, and the root filesystem on a logical volume:"
28704 msgstr ""
28705
28706 #. type: verbatim
28707 #: ../fuse/guestmount.pod:49
28708 #, no-wrap
28709 msgid ""
28710 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
28711 "\n"
28712 msgstr ""
28713
28714 #. type: textblock
28715 #: ../fuse/guestmount.pod:51
28716 msgid "To get libguestfs to detect guest mountpoints for you:"
28717 msgstr ""
28718
28719 #. type: verbatim
28720 #: ../fuse/guestmount.pod:53
28721 #, no-wrap
28722 msgid ""
28723 " guestmount -a guest.img -i --ro /mnt\n"
28724 "\n"
28725 msgstr ""
28726
28727 #. type: textblock
28728 #: ../fuse/guestmount.pod:55
28729 msgid "For a libvirt guest called \"Guest\" you could do:"
28730 msgstr ""
28731
28732 #. type: verbatim
28733 #: ../fuse/guestmount.pod:57
28734 #, no-wrap
28735 msgid ""
28736 " guestmount -d Guest -i --ro /mnt\n"
28737 "\n"
28738 msgstr ""
28739
28740 #. type: textblock
28741 #: ../fuse/guestmount.pod:59
28742 msgid ""
28743 "If you don't know what filesystems are contained in a guest or disk image, "
28744 "use L<virt-filesystems(1)> first:"
28745 msgstr ""
28746
28747 #. type: verbatim
28748 #: ../fuse/guestmount.pod:62
28749 #, no-wrap
28750 msgid ""
28751 " virt-filesystems MyGuest\n"
28752 "\n"
28753 msgstr ""
28754
28755 #. type: textblock
28756 #: ../fuse/guestmount.pod:64
28757 msgid ""
28758 "If you want to trace the libguestfs calls but without excessive debugging "
28759 "information, we recommend:"
28760 msgstr ""
28761
28762 #. type: verbatim
28763 #: ../fuse/guestmount.pod:67
28764 #, no-wrap
28765 msgid ""
28766 " guestmount [...] --trace /mnt\n"
28767 "\n"
28768 msgstr ""
28769
28770 #. type: textblock
28771 #: ../fuse/guestmount.pod:69
28772 msgid "If you want to debug the program, we recommend:"
28773 msgstr ""
28774
28775 #. type: verbatim
28776 #: ../fuse/guestmount.pod:71
28777 #, no-wrap
28778 msgid ""
28779 " guestmount [...] --trace --verbose /mnt\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: =head1
28784 #: ../fuse/guestmount.pod:73
28785 msgid "NOTES"
28786 msgstr ""
28787
28788 #. type: =head2
28789 #: ../fuse/guestmount.pod:75
28790 msgid "Other users cannot see the filesystem by default"
28791 msgstr ""
28792
28793 #. type: textblock
28794 #: ../fuse/guestmount.pod:77
28795 msgid ""
28796 "If you mount a filesystem as one user (eg. root), then other users will not "
28797 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
28798 "option when mounting:"
28799 msgstr ""
28800
28801 #. type: verbatim
28802 #: ../fuse/guestmount.pod:81
28803 #, no-wrap
28804 msgid ""
28805 " sudo guestmount [...] -o allow_other /mnt\n"
28806 "\n"
28807 msgstr ""
28808
28809 #. type: =item
28810 #: ../fuse/guestmount.pod:87
28811 msgid "B<-a image> | B<--add image>"
28812 msgstr ""
28813
28814 #. type: textblock
28815 #: ../fuse/guestmount.pod:89
28816 msgid "Add a block device or virtual machine image."
28817 msgstr ""
28818
28819 #. type: =item
28820 #: ../fuse/guestmount.pod:94
28821 msgid "B<-c URI> | B<--connect URI>"
28822 msgstr ""
28823
28824 #. type: =item
28825 #: ../fuse/guestmount.pod:100
28826 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
28827 msgstr ""
28828
28829 #. type: =item
28830 #: ../fuse/guestmount.pod:108
28831 msgid "B<--dir-cache-timeout N>"
28832 msgstr ""
28833
28834 #. type: textblock
28835 #: ../fuse/guestmount.pod:110
28836 msgid ""
28837 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
28838 "seconds.  The readdir cache [actually, there are several semi-independent "
28839 "caches] is populated after a readdir(2) call with the stat and extended "
28840 "attributes of the files in the directory, in anticipation that they will be "
28841 "requested soon after."
28842 msgstr ""
28843
28844 #. type: textblock
28845 #: ../fuse/guestmount.pod:116
28846 msgid ""
28847 "There is also a different attribute cache implemented by FUSE (see the FUSE "
28848 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
28849 "requests, only cache existing ones."
28850 msgstr ""
28851
28852 #. type: =item
28853 #: ../fuse/guestmount.pod:127
28854 msgid "B<--format=raw|qcow2|..> | B<--format>"
28855 msgstr ""
28856
28857 #. type: textblock
28858 #: ../fuse/guestmount.pod:134
28859 msgid ""
28860 "If you have untrusted raw-format guest disk images, you should use this "
28861 "option to specify the disk format.  This avoids a possible security problem "
28862 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
28863 "guestfs_add_drive_opts>."
28864 msgstr ""
28865
28866 #. type: =item
28867 #: ../fuse/guestmount.pod:139
28868 msgid "B<--fuse-help>"
28869 msgstr ""
28870
28871 #. type: textblock
28872 #: ../fuse/guestmount.pod:141
28873 msgid "Display help on special FUSE options (see I<-o> below)."
28874 msgstr ""
28875
28876 #. type: textblock
28877 #: ../fuse/guestmount.pod:145
28878 msgid "Display brief help and exit."
28879 msgstr ""
28880
28881 #. type: =item
28882 #: ../fuse/guestmount.pod:147
28883 msgid "B<-i> | B<--inspector>"
28884 msgstr ""
28885
28886 #. type: textblock
28887 #: ../fuse/guestmount.pod:167
28888 msgid ""
28889 "Mount the named partition or logical volume on the given mountpoint B<in the "
28890 "guest> (this has nothing to do with mountpoints in the host)."
28891 msgstr ""
28892
28893 #. type: textblock
28894 #: ../fuse/guestmount.pod:170
28895 msgid ""
28896 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
28897 "something on C</>."
28898 msgstr ""
28899
28900 #. type: =item
28901 #: ../fuse/guestmount.pod:183
28902 msgid "B<-n> | B<--no-sync>"
28903 msgstr ""
28904
28905 #. type: textblock
28906 #: ../fuse/guestmount.pod:185
28907 msgid ""
28908 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
28909 "unmounted.  If you specify this option, then we don't attempt to sync the "
28910 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
28911 msgstr ""
28912
28913 #. type: =item
28914 #: ../fuse/guestmount.pod:190
28915 msgid "B<-o option> | B<--option option>"
28916 msgstr ""
28917
28918 #. type: textblock
28919 #: ../fuse/guestmount.pod:192
28920 msgid "Pass extra options to FUSE."
28921 msgstr ""
28922
28923 #. type: textblock
28924 #: ../fuse/guestmount.pod:194
28925 msgid ""
28926 "To get a list of all the extra options supported by FUSE, use the command "
28927 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
28928 "of them are a good idea."
28929 msgstr ""
28930
28931 #. type: verbatim
28932 #: ../fuse/guestmount.pod:198
28933 #, no-wrap
28934 msgid ""
28935 " guestmount --fuse-help\n"
28936 "\n"
28937 msgstr ""
28938
28939 #. type: textblock
28940 #: ../fuse/guestmount.pod:200
28941 msgid "Some potentially useful FUSE options:"
28942 msgstr ""
28943
28944 #. type: =item
28945 #: ../fuse/guestmount.pod:204
28946 msgid "B<-o allow_other>"
28947 msgstr ""
28948
28949 #. type: textblock
28950 #: ../fuse/guestmount.pod:206
28951 msgid "Allow other users to see the filesystem."
28952 msgstr ""
28953
28954 #. type: =item
28955 #: ../fuse/guestmount.pod:208
28956 msgid "B<-o attr_timeout=N>"
28957 msgstr ""
28958
28959 #. type: textblock
28960 #: ../fuse/guestmount.pod:210
28961 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
28962 msgstr ""
28963
28964 #. type: =item
28965 #: ../fuse/guestmount.pod:212
28966 msgid "B<-o kernel_cache>"
28967 msgstr ""
28968
28969 #. type: textblock
28970 #: ../fuse/guestmount.pod:214
28971 msgid ""
28972 "Allow the kernel to cache files (reduces the number of reads that have to go "
28973 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
28974 "afford the extra memory usage."
28975 msgstr ""
28976
28977 #. type: =item
28978 #: ../fuse/guestmount.pod:218
28979 msgid "B<-o uid=N> B<-o gid=N>"
28980 msgstr ""
28981
28982 #. type: textblock
28983 #: ../fuse/guestmount.pod:220
28984 msgid ""
28985 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
28986 "the chosen values."
28987 msgstr ""
28988
28989 #. type: =item
28990 #: ../fuse/guestmount.pod:225
28991 msgid "B<-r> | B<--ro>"
28992 msgstr ""
28993
28994 #. type: textblock
28995 #: ../fuse/guestmount.pod:227
28996 msgid ""
28997 "Add devices and mount everything read-only.  Also disallow writes and make "
28998 "the disk appear read-only to FUSE."
28999 msgstr ""
29000
29001 #. type: textblock
29002 #: ../fuse/guestmount.pod:230
29003 msgid ""
29004 "This is highly recommended if you are not going to edit the guest disk.  If "
29005 "the guest is running and this option is I<not> supplied, then there is a "
29006 "strong risk of disk corruption in the guest.  We try to prevent this from "
29007 "happening, but it is not always possible."
29008 msgstr ""
29009
29010 #. type: textblock
29011 #: ../fuse/guestmount.pod:235
29012 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
29013 msgstr ""
29014
29015 #. type: textblock
29016 #: ../fuse/guestmount.pod:239
29017 msgid "Enable SELinux support for the guest."
29018 msgstr ""
29019
29020 #. type: =item
29021 #: ../fuse/guestmount.pod:241
29022 msgid "B<-v> | B<--verbose>"
29023 msgstr ""
29024
29025 #. type: textblock
29026 #: ../fuse/guestmount.pod:243
29027 msgid "Enable verbose messages from underlying libguestfs."
29028 msgstr ""
29029
29030 #. type: =item
29031 #: ../fuse/guestmount.pod:245
29032 msgid "B<-V> | B<--version>"
29033 msgstr ""
29034
29035 #. type: textblock
29036 #: ../fuse/guestmount.pod:247
29037 msgid "Display the program version and exit."
29038 msgstr ""
29039
29040 #. type: =item
29041 #: ../fuse/guestmount.pod:249
29042 msgid "B<-w> | B<--rw>"
29043 msgstr ""
29044
29045 #. type: textblock
29046 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
29047 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
29048 msgstr ""
29049
29050 #. type: =item
29051 #: ../fuse/guestmount.pod:256
29052 msgid "B<-x> | B<--trace>"
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../fuse/guestmount.pod:258
29057 msgid "Trace libguestfs calls and entry into each FUSE function."
29058 msgstr ""
29059
29060 #. type: textblock
29061 #: ../fuse/guestmount.pod:260
29062 msgid "This also stops the daemon from forking into the background."
29063 msgstr ""
29064
29065 #. type: textblock
29066 #: ../fuse/guestmount.pod:281
29067 msgid ""
29068 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
29069 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
29070 "net/>."
29071 msgstr ""
29072
29073 #. type: textblock
29074 #: ../fuse/guestmount.pod:296
29075 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
29076 msgstr ""
29077
29078 #. type: textblock
29079 #: ../tools/virt-win-reg.pl:37
29080 msgid ""
29081 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
29082 msgstr ""
29083
29084 #. type: verbatim
29085 #: ../tools/virt-win-reg.pl:41
29086 #, no-wrap
29087 msgid ""
29088 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
29089 "\n"
29090 msgstr ""
29091
29092 #. type: verbatim
29093 #: ../tools/virt-win-reg.pl:43
29094 #, no-wrap
29095 msgid ""
29096 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
29097 "\n"
29098 msgstr ""
29099
29100 #. type: verbatim
29101 #: ../tools/virt-win-reg.pl:45
29102 #, no-wrap
29103 msgid ""
29104 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
29105 "\n"
29106 msgstr ""
29107
29108 #. type: verbatim
29109 #: ../tools/virt-win-reg.pl:47
29110 #, no-wrap
29111 msgid ""
29112 " virt-win-reg --merge domname [input.reg ...]\n"
29113 "\n"
29114 msgstr ""
29115
29116 #. type: verbatim
29117 #: ../tools/virt-win-reg.pl:49
29118 #, no-wrap
29119 msgid ""
29120 " virt-win-reg [--options] disk.img ... # instead of domname\n"
29121 "\n"
29122 msgstr ""
29123
29124 #. type: textblock
29125 #: ../tools/virt-win-reg.pl:53
29126 msgid ""
29127 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
29128 "virtual machines.  If you do this, you I<will> get irreversible disk "
29129 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
29130 "but doesn't catch all cases."
29131 msgstr ""
29132
29133 #. type: textblock
29134 #: ../tools/virt-win-reg.pl:58
29135 msgid ""
29136 "Modifying the Windows Registry is an inherently risky operation.  The format "
29137 "is deliberately obscure and undocumented, and Registry changes can leave the "
29138 "system unbootable.  Therefore when using the I<--merge> option, make sure "
29139 "you have a reliable backup first."
29140 msgstr ""
29141
29142 #. type: textblock
29143 #: ../tools/virt-win-reg.pl:65
29144 msgid ""
29145 "This program can export and merge Windows Registry entries from a Windows "
29146 "guest."
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../tools/virt-win-reg.pl:68
29151 msgid ""
29152 "The first parameter is the libvirt guest name or the raw disk image of a "
29153 "Windows guest."
29154 msgstr ""
29155
29156 #. type: textblock
29157 #: ../tools/virt-win-reg.pl:71
29158 msgid ""
29159 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
29160 "exported (recursively).  For example:"
29161 msgstr ""
29162
29163 #. type: verbatim
29164 #: ../tools/virt-win-reg.pl:74
29165 #, no-wrap
29166 msgid ""
29167 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
29168 "\n"
29169 msgstr ""
29170
29171 #. type: textblock
29172 #: ../tools/virt-win-reg.pl:76
29173 msgid ""
29174 "You can also display single values from within registry keys, for example:"
29175 msgstr ""
29176
29177 #. type: verbatim
29178 #: ../tools/virt-win-reg.pl:79
29179 #, no-wrap
29180 msgid ""
29181 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
29182 " $ virt-win-reg Windows7 $cvkey ProductName\n"
29183 " Windows 7 Enterprise\n"
29184 "\n"
29185 msgstr ""
29186
29187 #. type: textblock
29188 #: ../tools/virt-win-reg.pl:83
29189 msgid ""
29190 "With I<--merge>, you can merge a textual regedit file into the Windows "
29191 "Registry:"
29192 msgstr ""
29193
29194 #. type: verbatim
29195 #: ../tools/virt-win-reg.pl:86
29196 #, no-wrap
29197 msgid ""
29198 " $ virt-win-reg --merge Windows7 changes.reg\n"
29199 "\n"
29200 msgstr ""
29201
29202 #. type: =head1
29203 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
29204 msgid "NOTE"
29205 msgstr ""
29206
29207 #. type: textblock
29208 #: ../tools/virt-win-reg.pl:90
29209 msgid ""
29210 "This program is only meant for simple access to the registry.  If you want "
29211 "to do complicated things with the registry, we suggest you download the "
29212 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
29213 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
29214 "L<hivexregedit(1)>."
29215 msgstr ""
29216
29217 #. type: textblock
29218 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
29219 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
29220 #: ../tools/virt-list-partitions.pl:64
29221 msgid "Display brief help."
29222 msgstr ""
29223
29224 #. type: textblock
29225 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
29226 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
29227 #: ../tools/virt-list-partitions.pl:72
29228 msgid "Display version number and exit."
29229 msgstr ""
29230
29231 #. type: =item
29232 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
29233 msgid "B<--debug>"
29234 msgstr ""
29235
29236 #. type: textblock
29237 #: ../tools/virt-win-reg.pl:122
29238 msgid "Enable debugging messages."
29239 msgstr ""
29240
29241 #. type: =item
29242 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
29243 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
29244 msgid "B<--connect URI> | B<-c URI>"
29245 msgstr ""
29246
29247 #. type: textblock
29248 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
29249 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
29250 msgid ""
29251 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
29252 "to the default libvirt hypervisor."
29253 msgstr ""
29254
29255 #. type: textblock
29256 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
29257 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
29258 msgid ""
29259 "If you specify guest block devices directly, then libvirt is not used at all."
29260 msgstr ""
29261
29262 #. type: =item
29263 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
29264 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
29265 msgid "B<--format> raw"
29266 msgstr ""
29267
29268 #. type: textblock
29269 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
29270 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
29271 msgid ""
29272 "Specify the format of disk images given on the command line.  If this is "
29273 "omitted then the format is autodetected from the content of the disk image."
29274 msgstr ""
29275
29276 #. type: textblock
29277 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
29278 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
29279 msgid ""
29280 "If disk images are requested from libvirt, then this program asks libvirt "
29281 "for this information.  In this case, the value of the format parameter is "
29282 "ignored."
29283 msgstr ""
29284
29285 #. type: textblock
29286 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
29287 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
29288 msgid ""
29289 "If working with untrusted raw-format guest disk images, you should ensure "
29290 "the format is always specified."
29291 msgstr ""
29292
29293 #. type: =item
29294 #: ../tools/virt-win-reg.pl:157
29295 msgid "B<--merge>"
29296 msgstr ""
29297
29298 #. type: textblock
29299 #: ../tools/virt-win-reg.pl:159
29300 msgid ""
29301 "In merge mode, this merges a textual regedit file into the Windows Registry "
29302 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
29303 "displays or exports Registry entries instead."
29304 msgstr ""
29305
29306 #. type: textblock
29307 #: ../tools/virt-win-reg.pl:163
29308 msgid ""
29309 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
29310 "result in disk corruption.  However exporting (without this flag)  is always "
29311 "safe."
29312 msgstr ""
29313
29314 #. type: =item
29315 #: ../tools/virt-win-reg.pl:171
29316 msgid "B<--encoding> UTF-16LE|ASCII"
29317 msgstr ""
29318
29319 #. type: textblock
29320 #: ../tools/virt-win-reg.pl:173
29321 msgid ""
29322 "When merging (only), you may need to specify the encoding for strings to be "
29323 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
29324 "(3)/ENCODING STRINGS>."
29325 msgstr ""
29326
29327 #. type: textblock
29328 #: ../tools/virt-win-reg.pl:177
29329 msgid ""
29330 "The default is to use UTF-16LE, which should work with recent versions of "
29331 "Windows."
29332 msgstr ""
29333
29334 #. type: =item
29335 #: ../tools/virt-win-reg.pl:184
29336 msgid "B<--unsafe-printable-strings>"
29337 msgstr ""
29338
29339 #. type: textblock
29340 #: ../tools/virt-win-reg.pl:186
29341 msgid ""
29342 "When exporting (only), assume strings are UTF-16LE and print them as strings "
29343 "instead of hex sequences.  Remove the final zero codepoint from strings if "
29344 "present."
29345 msgstr ""
29346
29347 #. type: textblock
29348 #: ../tools/virt-win-reg.pl:190
29349 msgid ""
29350 "This is unsafe and does not preserve the fidelity of strings in the original "
29351 "Registry for various reasons:"
29352 msgstr ""
29353
29354 #. type: textblock
29355 #: ../tools/virt-win-reg.pl:197
29356 msgid ""
29357 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
29358 "other encodings will be corrupted by this transformation."
29359 msgstr ""
29360
29361 #. type: textblock
29362 #: ../tools/virt-win-reg.pl:202
29363 msgid ""
29364 "Assumes that everything which has type 1 or 2 is really a string and that "
29365 "everything else is not a string, but the type field in real Registries is "
29366 "not reliable."
29367 msgstr ""
29368
29369 #. type: textblock
29370 #: ../tools/virt-win-reg.pl:208
29371 msgid ""
29372 "Loses information about whether a zero codepoint followed the string in the "
29373 "Registry or not."
29374 msgstr ""
29375
29376 #. type: textblock
29377 #: ../tools/virt-win-reg.pl:213
29378 msgid ""
29379 "This all happens because the Registry itself contains no information about "
29380 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
29381 msgstr ""
29382
29383 #. type: textblock
29384 #: ../tools/virt-win-reg.pl:217
29385 msgid ""
29386 "You should only use this option for quick hacking and debugging of the "
29387 "Registry contents, and I<never> use it if the output is going to be passed "
29388 "into another program or stored in another Registry."
29389 msgstr ""
29390
29391 #. type: =head1
29392 #: ../tools/virt-win-reg.pl:554
29393 msgid "SUPPORTED SYSTEMS"
29394 msgstr ""
29395
29396 #. type: textblock
29397 #: ../tools/virt-win-reg.pl:556
29398 msgid ""
29399 "The program currently supports Windows NT-derived guests starting with "
29400 "Windows XP through to at least Windows 7."
29401 msgstr ""
29402
29403 #. type: textblock
29404 #: ../tools/virt-win-reg.pl:559
29405 msgid "The following Registry keys are supported:"
29406 msgstr ""
29407
29408 #. type: =item
29409 #: ../tools/virt-win-reg.pl:563
29410 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
29411 msgstr ""
29412
29413 #. type: =item
29414 #: ../tools/virt-win-reg.pl:565
29415 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
29416 msgstr ""
29417
29418 #. type: =item
29419 #: ../tools/virt-win-reg.pl:567
29420 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
29421 msgstr ""
29422
29423 #. type: =item
29424 #: ../tools/virt-win-reg.pl:569
29425 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
29426 msgstr ""
29427
29428 #. type: =item
29429 #: ../tools/virt-win-reg.pl:571
29430 msgid "C<HKEY_USERS\\.DEFAULT>"
29431 msgstr ""
29432
29433 #. type: =item
29434 #: ../tools/virt-win-reg.pl:573
29435 msgid "C<HKEY_USERS\\I<SID>>"
29436 msgstr ""
29437
29438 #. type: textblock
29439 #: ../tools/virt-win-reg.pl:575
29440 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
29441 msgstr ""
29442
29443 #. type: =item
29444 #: ../tools/virt-win-reg.pl:577
29445 msgid "C<HKEY_USERS\\I<username>>"
29446 msgstr ""
29447
29448 #. type: textblock
29449 #: ../tools/virt-win-reg.pl:579
29450 msgid ""
29451 "where I<username> is a local user name (this is a libguestfs extension)."
29452 msgstr ""
29453
29454 #. type: textblock
29455 #: ../tools/virt-win-reg.pl:583
29456 msgid ""
29457 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
29458 "C<HKEY_USERS>."
29459 msgstr ""
29460
29461 #. type: textblock
29462 #: ../tools/virt-win-reg.pl:586
29463 msgid ""
29464 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
29465 "supported (there is no \"current user\")."
29466 msgstr ""
29467
29468 #. type: =head1
29469 #: ../tools/virt-win-reg.pl:589
29470 msgid "ENCODING"
29471 msgstr ""
29472
29473 #. type: textblock
29474 #: ../tools/virt-win-reg.pl:591
29475 msgid ""
29476 "C<virt-win-reg> expects that regedit files have already been reencoded in "
29477 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
29478 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
29479 "Windows-style line endings, you may need to reencode the whole file before "
29480 "or after processing."
29481 msgstr ""
29482
29483 #. type: textblock
29484 #: ../tools/virt-win-reg.pl:597
29485 msgid ""
29486 "To reencode a file from Windows format to Linux (before processing it with "
29487 "the I<--merge> option), you would do something like this:"
29488 msgstr ""
29489
29490 #. type: verbatim
29491 #: ../tools/virt-win-reg.pl:600
29492 #, no-wrap
29493 msgid ""
29494 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
29495 "\n"
29496 msgstr ""
29497
29498 #. type: textblock
29499 #: ../tools/virt-win-reg.pl:602
29500 msgid ""
29501 "To go in the opposite direction, after exporting and before sending the file "
29502 "to a Windows user, do something like this:"
29503 msgstr ""
29504
29505 #. type: verbatim
29506 #: ../tools/virt-win-reg.pl:605
29507 #, no-wrap
29508 msgid ""
29509 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
29510 "\n"
29511 msgstr ""
29512
29513 #. type: textblock
29514 #: ../tools/virt-win-reg.pl:607
29515 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
29516 msgstr ""
29517
29518 #. type: textblock
29519 #: ../tools/virt-win-reg.pl:609
29520 msgid ""
29521 "If you are unsure about the current encoding, use the L<file(1)> command.  "
29522 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
29523 "style (CRLF) line endings, like this:"
29524 msgstr ""
29525
29526 #. type: verbatim
29527 #: ../tools/virt-win-reg.pl:613
29528 #, no-wrap
29529 msgid ""
29530 " $ file software.reg\n"
29531 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
29532 " with CRLF line terminators\n"
29533 "\n"
29534 msgstr ""
29535
29536 #. type: textblock
29537 #: ../tools/virt-win-reg.pl:617
29538 msgid "This file would need conversion before you could I<--merge> it."
29539 msgstr ""
29540
29541 #. type: =head1
29542 #: ../tools/virt-win-reg.pl:619
29543 msgid "CurrentControlSet etc."
29544 msgstr ""
29545
29546 #. type: textblock
29547 #: ../tools/virt-win-reg.pl:621
29548 msgid ""
29549 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
29550 "Registry at the level of the hive file, and therefore you cannot modify "
29551 "these."
29552 msgstr ""
29553
29554 #. type: textblock
29555 #: ../tools/virt-win-reg.pl:625
29556 msgid ""
29557 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
29558 "circumstances it might refer to another control set.  The way to find out is "
29559 "to look at the C<HKLM\\SYSTEM\\Select> key:"
29560 msgstr ""
29561
29562 #. type: verbatim
29563 #: ../tools/virt-win-reg.pl:629
29564 #, no-wrap
29565 msgid ""
29566 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
29567 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
29568 " \"Current\"=dword:00000001\n"
29569 " \"Default\"=dword:00000001\n"
29570 " \"Failed\"=dword:00000000\n"
29571 " \"LastKnownGood\"=dword:00000002\n"
29572 "\n"
29573 msgstr ""
29574
29575 #. type: textblock
29576 #: ../tools/virt-win-reg.pl:636
29577 msgid "\"Current\" is the one which Windows will choose when it boots."
29578 msgstr ""
29579
29580 #. type: textblock
29581 #: ../tools/virt-win-reg.pl:638
29582 msgid ""
29583 "Similarly, other C<Current...> keys in the path may need to be replaced."
29584 msgstr ""
29585
29586 #. type: =head1
29587 #: ../tools/virt-win-reg.pl:641
29588 msgid "WINDOWS TIPS"
29589 msgstr ""
29590
29591 #. type: textblock
29592 #: ../tools/virt-win-reg.pl:643
29593 msgid ""
29594 "Note that some of these tips modify the guest disk image.  The guest I<must> "
29595 "be shut off, else you will get disk corruption."
29596 msgstr ""
29597
29598 #. type: =head2
29599 #: ../tools/virt-win-reg.pl:646
29600 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
29601 msgstr ""
29602
29603 #. type: textblock
29604 #: ../tools/virt-win-reg.pl:648
29605 msgid ""
29606 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
29607 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
29608 "is uploaded into C<C:\\>:"
29609 msgstr ""
29610
29611 #. type: verbatim
29612 #: ../tools/virt-win-reg.pl:652
29613 #, no-wrap
29614 msgid ""
29615 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
29616 "\n"
29617 msgstr ""
29618
29619 #. type: textblock
29620 #: ../tools/virt-win-reg.pl:654
29621 msgid "Prepare a regedit file containing the registry change:"
29622 msgstr ""
29623
29624 #. type: verbatim
29625 #: ../tools/virt-win-reg.pl:656
29626 #, no-wrap
29627 msgid ""
29628 " cat > test.reg <<'EOF'\n"
29629 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
29630 " \"Test\"=\"c:\\\\test.bat\"\n"
29631 " EOF\n"
29632 "\n"
29633 msgstr ""
29634
29635 #. type: textblock
29636 #: ../tools/virt-win-reg.pl:661
29637 msgid ""
29638 "In this example we use the key C<RunOnce> which means that the script will "
29639 "run precisely once when the first user logs in.  If you want it to run every "
29640 "time a user logs in, replace C<RunOnce> with C<Run>."
29641 msgstr ""
29642
29643 #. type: textblock
29644 #: ../tools/virt-win-reg.pl:665
29645 msgid "Now update the registry:"
29646 msgstr ""
29647
29648 #. type: verbatim
29649 #: ../tools/virt-win-reg.pl:667
29650 #, no-wrap
29651 msgid ""
29652 " virt-win-reg --merge WindowsGuest test.reg\n"
29653 "\n"
29654 msgstr ""
29655
29656 #. type: =head2
29657 #: ../tools/virt-win-reg.pl:669
29658 msgid "INSTALLING A SERVICE"
29659 msgstr ""
29660
29661 #. type: textblock
29662 #: ../tools/virt-win-reg.pl:671
29663 msgid ""
29664 "This section assumes you are familiar with Windows services, and you either "
29665 "have a program which handles the Windows Service Control Protocol directly "
29666 "or you want to run any program using a service wrapper like SrvAny or the "
29667 "free RHSrvAny."
29668 msgstr ""
29669
29670 #. type: textblock
29671 #: ../tools/virt-win-reg.pl:676
29672 msgid ""
29673 "First upload the program and optionally the service wrapper.  In this case "
29674 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
29675 msgstr ""
29676
29677 #. type: verbatim
29678 #: ../tools/virt-win-reg.pl:680
29679 #, no-wrap
29680 msgid ""
29681 " guestfish -i -d WindowsGuest <<EOF\n"
29682 "   upload rhsrvany.exe /rhsrvany.exe\n"
29683 "   upload test.exe /test.exe\n"
29684 " EOF\n"
29685 "\n"
29686 msgstr ""
29687
29688 #. type: textblock
29689 #: ../tools/virt-win-reg.pl:685
29690 msgid ""
29691 "Prepare a regedit file containing the registry changes.  In this example, "
29692 "the first registry change is needed for the service itself or the service "
29693 "wrapper (if used).  The second registry change is only needed because I am "
29694 "using the RHSrvAny service wrapper."
29695 msgstr ""
29696
29697 #. type: verbatim
29698 #: ../tools/virt-win-reg.pl:690
29699 #, no-wrap
29700 msgid ""
29701 " cat > service.reg <<'EOF'\n"
29702 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
29703 " \"Type\"=dword:00000010\n"
29704 " \"Start\"=dword:00000002\n"
29705 " \"ErrorControl\"=dword:00000001\n"
29706 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
29707 " \"DisplayName\"=\"RHSrvAny\"\n"
29708 " \"ObjectName\"=\"NetworkService\"\n"
29709 " \n"
29710 msgstr ""
29711
29712 #. type: verbatim
29713 #: ../tools/virt-win-reg.pl:699
29714 #, no-wrap
29715 msgid ""
29716 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
29717 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
29718 " \"PWD\"=\"c:\\\\Temp\"\n"
29719 " EOF\n"
29720 "\n"
29721 msgstr ""
29722
29723 #. type: textblock
29724 #: ../tools/virt-win-reg.pl:710
29725 msgid ""
29726 "For use of C<ControlSet001> see the section above in this manual page.  You "
29727 "may need to adjust this according to the control set that is in use by the "
29728 "guest."
29729 msgstr ""
29730
29731 #. type: textblock
29732 #: ../tools/virt-win-reg.pl:716
29733 msgid ""
29734 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
29735 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
29736 "privileged account."
29737 msgstr ""
29738
29739 #. type: textblock
29740 #: ../tools/virt-win-reg.pl:722
29741 msgid ""
29742 "For the meaning of the magic numbers, see this Microsoft KB article: "
29743 "L<http://support.microsoft.com/kb/103000>."
29744 msgstr ""
29745
29746 #. type: textblock
29747 #: ../tools/virt-win-reg.pl:727
29748 msgid "Update the registry:"
29749 msgstr ""
29750
29751 #. type: verbatim
29752 #: ../tools/virt-win-reg.pl:729
29753 #, no-wrap
29754 msgid ""
29755 " virt-win-reg --merge WindowsGuest service.reg\n"
29756 "\n"
29757 msgstr ""
29758
29759 #. type: =head1
29760 #: ../tools/virt-win-reg.pl:731 ../tools/virt-list-filesystems.pl:182
29761 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
29762 #: ../tools/virt-list-partitions.pl:250
29763 msgid "SHELL QUOTING"
29764 msgstr ""
29765
29766 #. type: textblock
29767 #: ../tools/virt-win-reg.pl:733
29768 msgid ""
29769 "Be careful when passing parameters containing C<\\> (backslash) in the "
29770 "shell.  Usually you will have to use 'single quotes' or double backslashes "
29771 "(but not both) to protect them from the shell."
29772 msgstr ""
29773
29774 #. type: textblock
29775 #: ../tools/virt-win-reg.pl:737
29776 msgid "Paths and value names are case-insensitive."
29777 msgstr ""
29778
29779 #. type: textblock
29780 #: ../tools/virt-win-reg.pl:739 ../tools/virt-list-filesystems.pl:184
29781 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
29782 #: ../tools/virt-list-partitions.pl:252
29783 msgid ""
29784 "Libvirt guest names can contain arbitrary characters, some of which have "
29785 "meaning to the shell such as C<#> and space.  You may need to quote or "
29786 "escape these characters on the command line.  See the shell manual page L<sh"
29787 "(1)> for details."
29788 msgstr ""
29789
29790 #. type: textblock
29791 #: ../tools/virt-win-reg.pl:746
29792 msgid ""
29793 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
29794 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
29795 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29796 msgstr ""
29797
29798 #. type: textblock
29799 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
29800 msgid ""
29801 "When reporting bugs, please enable debugging and capture the I<complete> "
29802 "output:"
29803 msgstr ""
29804
29805 #. type: verbatim
29806 #: ../tools/virt-win-reg.pl:764
29807 #, no-wrap
29808 msgid ""
29809 " export LIBGUESTFS_DEBUG=1\n"
29810 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
29811 "\n"
29812 msgstr ""
29813
29814 #. type: textblock
29815 #: ../tools/virt-win-reg.pl:767
29816 msgid ""
29817 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
29818 "redhat.com/>"
29819 msgstr ""
29820
29821 #. type: =head1
29822 #: ../tools/virt-win-reg.pl:770 ../tools/virt-list-filesystems.pl:202
29823 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
29824 #: ../tools/virt-list-partitions.pl:269
29825 msgid "AUTHOR"
29826 msgstr ""
29827
29828 #. type: textblock
29829 #: ../tools/virt-win-reg.pl:772 ../tools/virt-list-filesystems.pl:204
29830 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
29831 #: ../tools/virt-list-partitions.pl:271
29832 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
29833 msgstr ""
29834
29835 #. type: textblock
29836 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
29837 msgid "Copyright (C) 2010 Red Hat Inc."
29838 msgstr ""
29839
29840 #. type: textblock
29841 #: ../tools/virt-list-filesystems.pl:32
29842 msgid ""
29843 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
29844 msgstr ""
29845
29846 #. type: verbatim
29847 #: ../tools/virt-list-filesystems.pl:36
29848 #, no-wrap
29849 msgid ""
29850 " virt-list-filesystems [--options] domname\n"
29851 "\n"
29852 msgstr ""
29853
29854 #. type: verbatim
29855 #: ../tools/virt-list-filesystems.pl:38
29856 #, no-wrap
29857 msgid ""
29858 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
29859 "\n"
29860 msgstr ""
29861
29862 #. type: textblock
29863 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
29864 msgid ""
29865 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
29866 "replacement."
29867 msgstr ""
29868
29869 #. type: textblock
29870 #: ../tools/virt-list-filesystems.pl:45
29871 msgid ""
29872 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
29873 "are contained in a virtual machine or disk image."
29874 msgstr ""
29875
29876 #. type: textblock
29877 #: ../tools/virt-list-filesystems.pl:49
29878 msgid ""
29879 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
29880 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29881 "> tool."
29882 msgstr ""
29883
29884 #. type: =item
29885 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
29886 msgid "B<-l> | B<--long>"
29887 msgstr ""
29888
29889 #. type: textblock
29890 #: ../tools/virt-list-filesystems.pl:108
29891 msgid ""
29892 "With this option, C<virt-list-filesystems> displays the type of each "
29893 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
29894 msgstr ""
29895
29896 #. type: =item
29897 #: ../tools/virt-list-filesystems.pl:115
29898 msgid "B<-a> | B<--all>"
29899 msgstr ""
29900
29901 #. type: textblock
29902 #: ../tools/virt-list-filesystems.pl:117
29903 msgid ""
29904 "Normally we only show mountable filesystems.  If this option is given then "
29905 "swap devices are shown too."
29906 msgstr ""
29907
29908 #. type: textblock
29909 #: ../tools/virt-list-filesystems.pl:191
29910 msgid ""
29911 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
29912 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
29913 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29914 msgstr ""
29915
29916 #. type: textblock
29917 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
29918 msgid "Copyright (C) 2009 Red Hat Inc."
29919 msgstr ""
29920
29921 #. type: textblock
29922 #: ../tools/virt-tar.pl:33
29923 msgid "virt-tar - Extract or upload files to a virtual machine"
29924 msgstr ""
29925
29926 #. type: verbatim
29927 #: ../tools/virt-tar.pl:37
29928 #, no-wrap
29929 msgid ""
29930 " virt-tar [--options] -x domname directory tarball\n"
29931 "\n"
29932 msgstr ""
29933
29934 #. type: verbatim
29935 #: ../tools/virt-tar.pl:39
29936 #, no-wrap
29937 msgid ""
29938 " virt-tar [--options] -u domname tarball directory\n"
29939 "\n"
29940 msgstr ""
29941
29942 #. type: verbatim
29943 #: ../tools/virt-tar.pl:41
29944 #, no-wrap
29945 msgid ""
29946 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
29947 "\n"
29948 msgstr ""
29949
29950 #. type: verbatim
29951 #: ../tools/virt-tar.pl:43
29952 #, no-wrap
29953 msgid ""
29954 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
29955 "\n"
29956 msgstr ""
29957
29958 #. type: textblock
29959 #: ../tools/virt-tar.pl:47
29960 msgid ""
29961 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
29962 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
29963 msgstr ""
29964
29965 #. type: textblock
29966 #: ../tools/virt-tar.pl:52
29967 msgid "Download C</home> from the VM into a local tarball:"
29968 msgstr ""
29969
29970 #. type: verbatim
29971 #: ../tools/virt-tar.pl:54
29972 #, no-wrap
29973 msgid ""
29974 " virt-tar -x domname /home home.tar\n"
29975 "\n"
29976 msgstr ""
29977
29978 #. type: verbatim
29979 #: ../tools/virt-tar.pl:56
29980 #, no-wrap
29981 msgid ""
29982 " virt-tar -zx domname /home home.tar.gz\n"
29983 "\n"
29984 msgstr ""
29985
29986 #. type: textblock
29987 #: ../tools/virt-tar.pl:58
29988 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
29989 msgstr ""
29990
29991 #. type: verbatim
29992 #: ../tools/virt-tar.pl:60
29993 #, no-wrap
29994 msgid ""
29995 " virt-tar -u domname uploadstuff.tar /tmp\n"
29996 "\n"
29997 msgstr ""
29998
29999 #. type: verbatim
30000 #: ../tools/virt-tar.pl:62
30001 #, no-wrap
30002 msgid ""
30003 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
30004 "\n"
30005 msgstr ""
30006
30007 #. type: textblock
30008 #: ../tools/virt-tar.pl:66
30009 msgid ""
30010 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
30011 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
30012 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
30013 msgstr ""
30014
30015 #. type: textblock
30016 #: ../tools/virt-tar.pl:71
30017 msgid ""
30018 "You can use I<-x> (extract) on live virtual machines, but you might get "
30019 "inconsistent results or errors if there is filesystem activity inside the "
30020 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
30021 "work, but the only way to guarantee consistent results is if the virtual "
30022 "machine is shut down."
30023 msgstr ""
30024
30025 #. type: textblock
30026 #: ../tools/virt-tar.pl:79
30027 msgid ""
30028 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
30029 "parts of a guest filesystem.  There are many possibilities: making backups, "
30030 "uploading data files, snooping on guest activity, fixing or customizing "
30031 "guests, etc."
30032 msgstr ""
30033
30034 #. type: textblock
30035 #: ../tools/virt-tar.pl:84
30036 msgid ""
30037 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
30038 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
30039 "should look at the L<guestfish(1)> tool."
30040 msgstr ""
30041
30042 #. type: textblock
30043 #: ../tools/virt-tar.pl:88
30044 msgid ""
30045 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
30046 "its contents (recursively) from the virtual machine into a local tarball.  "
30047 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
30048 "virtual machine.  You cannot use these two options together."
30049 msgstr ""
30050
30051 #. type: textblock
30052 #: ../tools/virt-tar.pl:94
30053 msgid ""
30054 "In addition, you may need to use the I<-z> (gZip) option to enable "
30055 "compression.  When uploading, you have to specify I<-z> if the upload file "
30056 "is compressed because virt-tar won't detect this on its own."
30057 msgstr ""
30058
30059 #. type: textblock
30060 #: ../tools/virt-tar.pl:98
30061 msgid ""
30062 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
30063 "example it cannot do PKZip files or bzip2 compression.  If you want that "
30064 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
30065 "the L<libguestfs(3)> API)."
30066 msgstr ""
30067
30068 #. type: =item
30069 #: ../tools/virt-tar.pl:156
30070 msgid "B<-x> | B<--extract> | B<--download>"
30071 msgstr ""
30072
30073 #. type: =item
30074 #: ../tools/virt-tar.pl:158
30075 msgid "B<-u> | B<--upload>"
30076 msgstr ""
30077
30078 #. type: textblock
30079 #: ../tools/virt-tar.pl:160
30080 msgid ""
30081 "Use I<-x> to extract (download) a directory from a virtual machine to a "
30082 "local tarball."
30083 msgstr ""
30084
30085 #. type: textblock
30086 #: ../tools/virt-tar.pl:163
30087 msgid ""
30088 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
30089 "Please read the L</WARNING> section above before using this option."
30090 msgstr ""
30091
30092 #. type: textblock
30093 #: ../tools/virt-tar.pl:167
30094 msgid "You must specify exactly one of these options."
30095 msgstr ""
30096
30097 #. type: =item
30098 #: ../tools/virt-tar.pl:173
30099 msgid "B<-z> | B<--gzip>"
30100 msgstr ""
30101
30102 #. type: textblock
30103 #: ../tools/virt-tar.pl:175
30104 msgid "Specify that the input or output tarball is gzip-compressed."
30105 msgstr ""
30106
30107 #. type: textblock
30108 #: ../tools/virt-tar.pl:288
30109 msgid ""
30110 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
30111 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
30112 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
30113 "org/>."
30114 msgstr ""
30115
30116 #. type: textblock
30117 #: ../tools/virt-make-fs.pl:37
30118 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
30119 msgstr ""
30120
30121 #. type: verbatim
30122 #: ../tools/virt-make-fs.pl:41
30123 #, no-wrap
30124 msgid ""
30125 " virt-make-fs [--options] input.tar output.img\n"
30126 "\n"
30127 msgstr ""
30128
30129 #. type: verbatim
30130 #: ../tools/virt-make-fs.pl:43
30131 #, no-wrap
30132 msgid ""
30133 " virt-make-fs [--options] input.tar.gz output.img\n"
30134 "\n"
30135 msgstr ""
30136
30137 #. type: verbatim
30138 #: ../tools/virt-make-fs.pl:45
30139 #, no-wrap
30140 msgid ""
30141 " virt-make-fs [--options] directory output.img\n"
30142 "\n"
30143 msgstr ""
30144
30145 #. type: textblock
30146 #: ../tools/virt-make-fs.pl:49
30147 msgid ""
30148 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
30149 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
30150 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
30151 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
30152 "you want to attach these filesystems to existing virtual machines (eg. to "
30153 "import large amounts of read-only data to a VM)."
30154 msgstr ""
30155
30156 #. type: textblock
30157 #: ../tools/virt-make-fs.pl:57
30158 msgid "Basic usage is:"
30159 msgstr ""
30160
30161 #. type: verbatim
30162 #: ../tools/virt-make-fs.pl:59
30163 #, no-wrap
30164 msgid ""
30165 " virt-make-fs input output\n"
30166 "\n"
30167 msgstr ""
30168
30169 #. type: textblock
30170 #: ../tools/virt-make-fs.pl:61
30171 msgid ""
30172 "where C<input> is either a directory containing files that you want to add, "
30173 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
30174 "C<output> is a disk image.  The input type is detected automatically.  The "
30175 "output disk image defaults to a raw ext2 image unless you specify extra "
30176 "flags (see L</OPTIONS> below)."
30177 msgstr ""
30178
30179 #. type: =head2
30180 #: ../tools/virt-make-fs.pl:67
30181 msgid "EXTRA SPACE"
30182 msgstr ""
30183
30184 #. type: textblock
30185 #: ../tools/virt-make-fs.pl:69
30186 msgid ""
30187 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
30188 "the files that it contains, but might have extra space.  Depending on how "
30189 "you are going to use the output, you might think this extra space is wasted "
30190 "and want to minimize it, or you might want to leave space so that more files "
30191 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
30192 "but you can use the I<--size> flag to leave space in the filesystem if you "
30193 "want it."
30194 msgstr ""
30195
30196 #. type: textblock
30197 #: ../tools/virt-make-fs.pl:77
30198 msgid ""
30199 "An alternative way to leave extra space but not make the output image any "
30200 "bigger is to use an alternative disk image format (instead of the default "
30201 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
30202 "image format (check your hypervisor supports this before using it).  This "
30203 "allows you to choose a large I<--size> but the extra space won't actually be "
30204 "allocated in the image until you try to store something in it."
30205 msgstr ""
30206
30207 #. type: textblock
30208 #: ../tools/virt-make-fs.pl:85
30209 msgid ""
30210 "Don't forget that you can also use local commands including L<resize2fs(8)> "
30211 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
30212 "to build another image from scratch."
30213 msgstr ""
30214
30215 #. type: =head3
30216 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
30217 #: ../tools/virt-make-fs.pl:142
30218 msgid "EXAMPLE"
30219 msgstr ""
30220
30221 #. type: verbatim
30222 #: ../tools/virt-make-fs.pl:91
30223 #, no-wrap
30224 msgid ""
30225 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
30226 "\n"
30227 msgstr ""
30228
30229 #. type: =head2
30230 #: ../tools/virt-make-fs.pl:93
30231 msgid "FILESYSTEM TYPE"
30232 msgstr ""
30233
30234 #. type: textblock
30235 #: ../tools/virt-make-fs.pl:95
30236 msgid ""
30237 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
30238 "libguestfs supports can be used (but I<not> read-only formats like "
30239 "ISO9660).  Here are some of the more common choices:"
30240 msgstr ""
30241
30242 #. type: =item
30243 #: ../tools/virt-make-fs.pl:101
30244 msgid "I<ext3>"
30245 msgstr ""
30246
30247 #. type: textblock
30248 #: ../tools/virt-make-fs.pl:103
30249 msgid ""
30250 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
30251 "you are not going to use the filesystem in a way that requires the journal, "
30252 "then this is just wasted overhead."
30253 msgstr ""
30254
30255 #. type: =item
30256 #: ../tools/virt-make-fs.pl:107
30257 msgid "I<ntfs> or I<vfat>"
30258 msgstr ""
30259
30260 #. type: textblock
30261 #: ../tools/virt-make-fs.pl:109
30262 msgid "Useful if exporting data to a Windows guest."
30263 msgstr ""
30264
30265 #. type: textblock
30266 #: ../tools/virt-make-fs.pl:111
30267 msgid ""
30268 "I<Note for vfat>: The tar archive or local directory must only contain files "
30269 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
30270 "program running within libguestfs is unable to change the ownership of non-"
30271 "root files, since vfat itself does not support this."
30272 msgstr ""
30273
30274 #. type: =item
30275 #: ../tools/virt-make-fs.pl:116
30276 msgid "I<minix>"
30277 msgstr ""
30278
30279 #. type: textblock
30280 #: ../tools/virt-make-fs.pl:118
30281 msgid ""
30282 "Lower overhead than C<ext2>, but certain limitations on filename length and "
30283 "total filesystem size."
30284 msgstr ""
30285
30286 #. type: verbatim
30287 #: ../tools/virt-make-fs.pl:125
30288 #, no-wrap
30289 msgid ""
30290 " virt-make-fs --type=minix input minixfs.img\n"
30291 "\n"
30292 msgstr ""
30293
30294 #. type: =head2
30295 #: ../tools/virt-make-fs.pl:127
30296 msgid "TO PARTITION OR NOT TO PARTITION"
30297 msgstr ""
30298
30299 #. type: textblock
30300 #: ../tools/virt-make-fs.pl:129
30301 msgid "Optionally virt-make-fs can add a partition table to the output disk."
30302 msgstr ""
30303
30304 #. type: textblock
30305 #: ../tools/virt-make-fs.pl:131
30306 msgid ""
30307 "Adding a partition can make the disk image more compatible with certain "
30308 "virtualized operating systems which don't expect to see a filesystem "
30309 "directly located on a block device (Linux doesn't care and will happily "
30310 "handle both types)."
30311 msgstr ""
30312
30313 #. type: textblock
30314 #: ../tools/virt-make-fs.pl:136
30315 msgid ""
30316 "On the other hand, if you have a partition table then the output image is no "
30317 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
30318 "directly on a partitioned disk image.  (However libguestfs tools such as "
30319 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
30320 msgstr ""
30321
30322 #. type: textblock
30323 #: ../tools/virt-make-fs.pl:144
30324 msgid "Add an MBR partition:"
30325 msgstr ""
30326
30327 #. type: verbatim
30328 #: ../tools/virt-make-fs.pl:146
30329 #, no-wrap
30330 msgid ""
30331 " virt-make-fs --partition -- input disk.img\n"
30332 "\n"
30333 msgstr ""
30334
30335 #. type: textblock
30336 #: ../tools/virt-make-fs.pl:148
30337 msgid ""
30338 "If the output disk image could be terabyte-sized or larger, it's better to "
30339 "use an EFI/GPT-compatible partition table:"
30340 msgstr ""
30341
30342 #. type: verbatim
30343 #: ../tools/virt-make-fs.pl:151
30344 #, no-wrap
30345 msgid ""
30346 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
30347 "\n"
30348 msgstr ""
30349
30350 #. type: textblock
30351 #: ../tools/virt-make-fs.pl:179
30352 msgid "Enable debugging information."
30353 msgstr ""
30354
30355 #. type: =item
30356 #: ../tools/virt-make-fs.pl:185
30357 msgid "B<--size=E<lt>NE<gt>>"
30358 msgstr ""
30359
30360 #. type: =item
30361 #: ../tools/virt-make-fs.pl:187
30362 msgid "B<--size=+E<lt>NE<gt>>"
30363 msgstr ""
30364
30365 #. type: =item
30366 #: ../tools/virt-make-fs.pl:189
30367 msgid "B<-s E<lt>NE<gt>>"
30368 msgstr ""
30369
30370 #. type: =item
30371 #: ../tools/virt-make-fs.pl:191
30372 msgid "B<-s +E<lt>NE<gt>>"
30373 msgstr ""
30374
30375 #. type: textblock
30376 #: ../tools/virt-make-fs.pl:193
30377 msgid ""
30378 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
30379 msgstr ""
30380
30381 #. type: textblock
30382 #: ../tools/virt-make-fs.pl:196
30383 msgid ""
30384 "If this option is I<not> given, then the output image will be just large "
30385 "enough to contain all the files, with not much wasted space."
30386 msgstr ""
30387
30388 #. type: textblock
30389 #: ../tools/virt-make-fs.pl:199
30390 msgid ""
30391 "To choose a fixed size output disk, specify an absolute number followed by b/"
30392 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30393 "Petabytes or Exabytes.  This must be large enough to contain all the input "
30394 "files, else you will get an error."
30395 msgstr ""
30396
30397 #. type: textblock
30398 #: ../tools/virt-make-fs.pl:204
30399 msgid ""
30400 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
30401 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30402 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
30403 "the input files, and (approximately) an extra 200 MB free space."
30404 msgstr ""
30405
30406 #. type: textblock
30407 #: ../tools/virt-make-fs.pl:210
30408 msgid ""
30409 "Note that virt-make-fs estimates free space, and therefore will not produce "
30410 "filesystems containing precisely the free space requested.  (It is much more "
30411 "expensive and time-consuming to produce a filesystem which has precisely the "
30412 "desired free space)."
30413 msgstr ""
30414
30415 #. type: =item
30416 #: ../tools/virt-make-fs.pl:219
30417 msgid "B<--format=E<lt>fmtE<gt>>"
30418 msgstr ""
30419
30420 #. type: =item
30421 #: ../tools/virt-make-fs.pl:221
30422 msgid "B<-F E<lt>fmtE<gt>>"
30423 msgstr ""
30424
30425 #. type: textblock
30426 #: ../tools/virt-make-fs.pl:223
30427 msgid "Choose the output disk image format."
30428 msgstr ""
30429
30430 #. type: textblock
30431 #: ../tools/virt-make-fs.pl:225
30432 msgid "The default is C<raw> (raw disk image)."
30433 msgstr ""
30434
30435 #. type: textblock
30436 #: ../tools/virt-make-fs.pl:227
30437 msgid ""
30438 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
30439 "that would really make sense here is C<qcow2>."
30440 msgstr ""
30441
30442 #. type: =item
30443 #: ../tools/virt-make-fs.pl:234
30444 msgid "B<--type=E<lt>fsE<gt>>"
30445 msgstr ""
30446
30447 #. type: =item
30448 #: ../tools/virt-make-fs.pl:236
30449 msgid "B<-t E<lt>fsE<gt>>"
30450 msgstr ""
30451
30452 #. type: textblock
30453 #: ../tools/virt-make-fs.pl:238
30454 msgid "Choose the output filesystem type."
30455 msgstr ""
30456
30457 #. type: textblock
30458 #: ../tools/virt-make-fs.pl:240
30459 msgid "The default is C<ext2>."
30460 msgstr ""
30461
30462 #. type: textblock
30463 #: ../tools/virt-make-fs.pl:242
30464 msgid ""
30465 "Any filesystem which is supported read-write by libguestfs can be used here."
30466 msgstr ""
30467
30468 #. type: =item
30469 #: ../tools/virt-make-fs.pl:249
30470 msgid "B<--partition>"
30471 msgstr ""
30472
30473 #. type: =item
30474 #: ../tools/virt-make-fs.pl:251
30475 msgid "B<--partition=E<lt>parttypeE<gt>>"
30476 msgstr ""
30477
30478 #. type: textblock
30479 #: ../tools/virt-make-fs.pl:253
30480 msgid ""
30481 "If specified, this flag adds an MBR partition table to the output disk image."
30482 msgstr ""
30483
30484 #. type: textblock
30485 #: ../tools/virt-make-fs.pl:256
30486 msgid ""
30487 "You can change the partition table type, eg. I<--partition=gpt> for large "
30488 "disks."
30489 msgstr ""
30490
30491 #. type: textblock
30492 #: ../tools/virt-make-fs.pl:259
30493 msgid ""
30494 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
30495 "might consider the next parameter to be the partition type.  For example:"
30496 msgstr ""
30497
30498 #. type: verbatim
30499 #: ../tools/virt-make-fs.pl:263
30500 #, no-wrap
30501 msgid ""
30502 " virt-make-fs --partition input.tar ...\n"
30503 "\n"
30504 msgstr ""
30505
30506 #. type: textblock
30507 #: ../tools/virt-make-fs.pl:265
30508 msgid ""
30509 "would cause virt-make-fs to think you wanted to use a partition type of "
30510 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
30511 "dash) between options and the input file argument:"
30512 msgstr ""
30513
30514 #. type: verbatim
30515 #: ../tools/virt-make-fs.pl:269
30516 #, no-wrap
30517 msgid ""
30518 " virt-make-fs --partition -- input.tar ...\n"
30519 "\n"
30520 msgstr ""
30521
30522 #. type: textblock
30523 #: ../tools/virt-make-fs.pl:541
30524 msgid ""
30525 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
30526 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
30527 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
30528 msgstr ""
30529
30530 #. type: verbatim
30531 #: ../tools/virt-make-fs.pl:558
30532 #, no-wrap
30533 msgid ""
30534 " export LIBGUESTFS_DEBUG=1\n"
30535 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
30536 "\n"
30537 msgstr ""
30538
30539 #. type: textblock
30540 #: ../tools/virt-make-fs.pl:561
30541 msgid ""
30542 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
30543 "redhat.com/>"
30544 msgstr ""
30545
30546 #. type: textblock
30547 #: ../tools/virt-list-partitions.pl:32
30548 msgid ""
30549 "virt-list-partitions - List partitions in a virtual machine or disk image"
30550 msgstr ""
30551
30552 #. type: verbatim
30553 #: ../tools/virt-list-partitions.pl:36
30554 #, no-wrap
30555 msgid ""
30556 " virt-list-partitions [--options] domname\n"
30557 "\n"
30558 msgstr ""
30559
30560 #. type: verbatim
30561 #: ../tools/virt-list-partitions.pl:38
30562 #, no-wrap
30563 msgid ""
30564 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
30565 "\n"
30566 msgstr ""
30567
30568 #. type: textblock
30569 #: ../tools/virt-list-partitions.pl:45
30570 msgid ""
30571 "C<virt-list-partitions> is a command line tool to list the partitions that "
30572 "are contained in a virtual machine or disk image.  It is mainly useful as a "
30573 "first step to using L<virt-resize(1)>."
30574 msgstr ""
30575
30576 #. type: textblock
30577 #: ../tools/virt-list-partitions.pl:50
30578 msgid ""
30579 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
30580 "functionality.  For more complex cases you should look at the L<guestfish(1)"
30581 "> tool."
30582 msgstr ""
30583
30584 #. type: =item
30585 #: ../tools/virt-list-partitions.pl:107
30586 msgid "B<-h> | B<--human-readable>"
30587 msgstr ""
30588
30589 #. type: textblock
30590 #: ../tools/virt-list-partitions.pl:109
30591 msgid "Show sizes in human-readable form (eg. \"1G\")."
30592 msgstr ""
30593
30594 #. type: textblock
30595 #: ../tools/virt-list-partitions.pl:117
30596 msgid ""
30597 "With this option, C<virt-list-partitions> displays the type and size of each "
30598 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
30599 msgstr ""
30600
30601 #. type: =item
30602 #: ../tools/virt-list-partitions.pl:124
30603 msgid "B<-t> | B<--total>"
30604 msgstr ""
30605
30606 #. type: textblock
30607 #: ../tools/virt-list-partitions.pl:126
30608 msgid ""
30609 "Display the total size of each block device (as a separate row or rows)."
30610 msgstr ""
30611
30612 #. type: textblock
30613 #: ../tools/virt-list-partitions.pl:259
30614 msgid ""
30615 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
30616 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
30617 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30618 msgstr ""
30619
30620 #. type: textblock
30621 #: ../tools/virt-list-partitions.pl:275
30622 msgid "Copyright (C) 2009-2010 Red Hat Inc."
30623 msgstr ""