9d8e68bb00ad35779f1a907dbc9942bfcce79e52
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2010-11-05 12:18+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30
23 #: ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30
24 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
25 #: ../tools/virt-cat.pl:29 ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29
26 #: ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
27 msgid "utf8"
28 msgstr ""
29
30 # type: =head1
31 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
32 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
33 #: ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32
34 #: ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32
35 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
36 #: ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
38 msgid "NAME"
39 msgstr "名前"
40
41 # type: textblock
42 #: ../src/guestfs.pod:5
43 msgid "guestfs - Library for accessing and modifying virtual machine images"
44 msgstr ""
45
46 # type: =head1
47 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
48 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
49 #: ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36
50 #: ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36
51 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
52 #: ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35
53 #: ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
54 msgid "SYNOPSIS"
55 msgstr ""
56
57 # type: verbatim
58 #: ../src/guestfs.pod:9
59 #, no-wrap
60 msgid ""
61 " #include <guestfs.h>\n"
62 " \n"
63 msgstr ""
64
65 # type: verbatim
66 #: ../src/guestfs.pod:11
67 #, no-wrap
68 msgid ""
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_sync (g);\n"
76 " guestfs_close (g);\n"
77 "\n"
78 msgstr ""
79
80 # type: verbatim
81 #: ../src/guestfs.pod:20
82 #, no-wrap
83 msgid ""
84 " cc prog.c -o prog -lguestfs\n"
85 "or:\n"
86 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
87 "\n"
88 msgstr ""
89
90 # type: =head1
91 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
92 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
93 #: ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50
94 #: ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42
95 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51
97 #: ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr ""
100
101 # type: textblock
102 #: ../src/guestfs.pod:26
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:34
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:39
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:44
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:49
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:52
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: =head1
153 #: ../src/guestfs.pod:55
154 msgid "API OVERVIEW"
155 msgstr ""
156
157 # type: textblock
158 #: ../src/guestfs.pod:57
159 msgid ""
160 "This section provides a gentler overview of the libguestfs API.  We also try "
161 "to group API calls together, where that may not be obvious from reading "
162 "about the individual calls in the main section of this manual."
163 msgstr ""
164
165 # type: =head2
166 #: ../src/guestfs.pod:62
167 msgid "HANDLES"
168 msgstr ""
169
170 # type: textblock
171 #: ../src/guestfs.pod:64
172 msgid ""
173 "Before you can use libguestfs calls, you have to create a handle.  Then you "
174 "must add at least one disk image to the handle, followed by launching the "
175 "handle, then performing whatever operations you want, and finally closing "
176 "the handle.  By convention we use the single letter C<g> for the name of the "
177 "handle variable, although of course you can use any name you want."
178 msgstr ""
179
180 # type: textblock
181 #: ../src/guestfs.pod:71
182 msgid "The general structure of all libguestfs-using programs looks like this:"
183 msgstr ""
184
185 # type: verbatim
186 #: ../src/guestfs.pod:74
187 #, no-wrap
188 msgid ""
189 " guestfs_h *g = guestfs_create ();\n"
190 " \n"
191 msgstr ""
192
193 # type: verbatim
194 #: ../src/guestfs.pod:76
195 #, no-wrap
196 msgid ""
197 " /* Call guestfs_add_drive additional times if there are\n"
198 "  * multiple disk images.\n"
199 "  */\n"
200 " guestfs_add_drive (g, \"guest.img\");\n"
201 " \n"
202 msgstr ""
203
204 # type: verbatim
205 #: ../src/guestfs.pod:81
206 #, no-wrap
207 msgid ""
208 " /* Most manipulation calls won't work until you've launched\n"
209 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
210 "  * and _before_ other commands.\n"
211 "  */\n"
212 " guestfs_launch (g);\n"
213 " \n"
214 msgstr ""
215
216 # type: verbatim
217 #: ../src/guestfs.pod:87
218 #, no-wrap
219 msgid ""
220 " /* Now you can examine what partitions, LVs etc are available.\n"
221 "  */\n"
222 " char **partitions = guestfs_list_partitions (g);\n"
223 " char **logvols = guestfs_lvs (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #: ../src/guestfs.pod:92
229 #, no-wrap
230 msgid ""
231 " /* To access a filesystem in the image, you must mount it.\n"
232 "  */\n"
233 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:96
239 #, no-wrap
240 msgid ""
241 " /* Now you can perform filesystem actions on the guest\n"
242 "  * disk image.\n"
243 "  */\n"
244 " guestfs_touch (g, \"/hello\");\n"
245 " \n"
246 msgstr ""
247
248 # type: verbatim
249 #: ../src/guestfs.pod:101
250 #, no-wrap
251 msgid ""
252 " /* You only need to call guestfs_sync if you have made\n"
253 "  * changes to the guest image.  (But if you've made changes\n"
254 "  * then you *must* sync).  See also: guestfs_umount and\n"
255 "  * guestfs_umount_all calls.\n"
256 "  */\n"
257 " guestfs_sync (g);\n"
258 " \n"
259 msgstr ""
260
261 # type: verbatim
262 #: ../src/guestfs.pod:108
263 #, no-wrap
264 msgid ""
265 " /* Close the handle 'g'. */\n"
266 " guestfs_close (g);\n"
267 "\n"
268 msgstr ""
269
270 # type: textblock
271 #: ../src/guestfs.pod:111
272 msgid ""
273 "The code above doesn't include any error checking.  In real code you should "
274 "check return values carefully for errors.  In general all functions that "
275 "return integers return C<-1> on error, and all functions that return "
276 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
277 "how to handle errors, and consult the documentation for each function call "
278 "below to see precisely how they return error indications."
279 msgstr ""
280
281 # type: =head2
282 #: ../src/guestfs.pod:119
283 msgid "DISK IMAGES"
284 msgstr ""
285
286 # type: textblock
287 #: ../src/guestfs.pod:121
288 msgid ""
289 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
290 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
291 "actual block device, or simply an empty file of zeroes that you have created "
292 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
293 "of these."
294 msgstr ""
295
296 # type: textblock
297 #: ../src/guestfs.pod:127
298 msgid ""
299 "The call you should use in modern code for adding drives is L</"
300 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
301 "specifying that the format is raw, do:"
302 msgstr ""
303
304 # type: verbatim
305 #: ../src/guestfs.pod:131
306 #, no-wrap
307 msgid ""
308 " guestfs_add_drive_opts (g, filename,\n"
309 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
310 "                         -1);\n"
311 "\n"
312 msgstr ""
313
314 # type: textblock
315 #: ../src/guestfs.pod:135
316 msgid "You can add a disk read-only using:"
317 msgstr ""
318
319 # type: verbatim
320 #: ../src/guestfs.pod:137
321 #, no-wrap
322 msgid ""
323 " guestfs_add_drive_opts (g, filename,\n"
324 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
325 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
326 "                         -1);\n"
327 "\n"
328 msgstr ""
329
330 # type: textblock
331 #: ../src/guestfs.pod:142
332 msgid ""
333 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
334 "libguestfs won't modify the file."
335 msgstr ""
336
337 # type: textblock
338 #: ../src/guestfs.pod:145
339 msgid ""
340 "Be extremely cautious if the disk image is in use, eg. if it is being used "
341 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
342 "corruption, but adding it read-only is safe."
343 msgstr ""
344
345 # type: textblock
346 #: ../src/guestfs.pod:149
347 msgid ""
348 "You must add at least one disk image, and you may add multiple disk images.  "
349 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
350 "first one you added), C</dev/sdb> (for the second one you added), etc."
351 msgstr ""
352
353 # type: textblock
354 #: ../src/guestfs.pod:154
355 msgid ""
356 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
357 "can call L</guestfs_list_devices> to get a list of the device names, in the "
358 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
359 msgstr ""
360
361 # type: =head2
362 #: ../src/guestfs.pod:159
363 msgid "MOUNTING"
364 msgstr ""
365
366 # type: textblock
367 #: ../src/guestfs.pod:161
368 msgid ""
369 "Before you can read or write files, create directories and so on in a disk "
370 "image that contains filesystems, you have to mount those filesystems using "
371 "L</guestfs_mount>.  If you already know that a disk image contains (for "
372 "example) one partition with a filesystem on that partition, then you can "
373 "mount it directly:"
374 msgstr ""
375
376 # type: verbatim
377 #: ../src/guestfs.pod:167
378 #, no-wrap
379 msgid ""
380 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
381 "\n"
382 msgstr ""
383
384 # type: textblock
385 #: ../src/guestfs.pod:169
386 msgid ""
387 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
388 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
389 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
390 msgstr ""
391
392 # type: textblock
393 #: ../src/guestfs.pod:173
394 msgid ""
395 "If you are given a disk image and you don't know what it contains then you "
396 "have to find out.  Libguestfs can do that too: use L</"
397 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
398 "LVs, and either try mounting each to see what is mountable, or else examine "
399 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
400 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
401 "you might find it easier to look at higher level programs built on top of "
402 "libguestfs, in particular L<virt-inspector(1)>."
403 msgstr ""
404
405 # type: textblock
406 #: ../src/guestfs.pod:183
407 msgid ""
408 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
409 "several other variations of the C<guestfs_mount_*> call."
410 msgstr ""
411
412 # type: =head2
413 #: ../src/guestfs.pod:186
414 msgid "FILESYSTEM ACCESS AND MODIFICATION"
415 msgstr ""
416
417 # type: textblock
418 #: ../src/guestfs.pod:188
419 msgid ""
420 "The majority of the libguestfs API consists of fairly low-level calls for "
421 "accessing and modifying the files, directories, symlinks etc on mounted "
422 "filesystems.  There are over a hundred such calls which you can find listed "
423 "in detail below in this man page, and we don't even pretend to cover them "
424 "all in this overview."
425 msgstr ""
426
427 # type: textblock
428 #: ../src/guestfs.pod:194
429 msgid ""
430 "Specify filenames as full paths, starting with C<\"/\"> and including the "
431 "mount point."
432 msgstr ""
433
434 # type: textblock
435 #: ../src/guestfs.pod:197
436 msgid ""
437 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
438 "the file called C<\"etc/passwd\"> then you could do:"
439 msgstr ""
440
441 # type: verbatim
442 #: ../src/guestfs.pod:200
443 #, no-wrap
444 msgid ""
445 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
446 "\n"
447 msgstr ""
448
449 # type: textblock
450 #: ../src/guestfs.pod:202
451 msgid ""
452 "This would return C<data> as a newly allocated buffer containing the full "
453 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
454 "or C<NULL> if there was an error."
455 msgstr ""
456
457 # type: textblock
458 #: ../src/guestfs.pod:206
459 msgid ""
460 "As another example, to create a top-level directory on that filesystem "
461 "called C<\"var\"> you would do:"
462 msgstr ""
463
464 # type: verbatim
465 #: ../src/guestfs.pod:209
466 #, no-wrap
467 msgid ""
468 " guestfs_mkdir (g, \"/var\");\n"
469 "\n"
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:211
474 msgid "To create a symlink you could do:"
475 msgstr ""
476
477 # type: verbatim
478 #: ../src/guestfs.pod:213
479 #, no-wrap
480 msgid ""
481 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
482 "               \"/etc/rc3.d/S30portmap\");\n"
483 "\n"
484 msgstr ""
485
486 # type: textblock
487 #: ../src/guestfs.pod:216
488 msgid ""
489 "Libguestfs will reject attempts to use relative paths and there is no "
490 "concept of a current working directory."
491 msgstr ""
492
493 # type: textblock
494 #: ../src/guestfs.pod:219
495 msgid ""
496 "Libguestfs can return errors in many situations: for example if the "
497 "filesystem isn't writable, or if a file or directory that you requested "
498 "doesn't exist.  If you are using the C API (documented here)  you have to "
499 "check for those error conditions after each call.  (Other language bindings "
500 "turn these errors into exceptions)."
501 msgstr ""
502
503 # type: textblock
504 #: ../src/guestfs.pod:225
505 msgid ""
506 "File writes are affected by the per-handle umask, set by calling L</"
507 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
508 msgstr ""
509
510 # type: =head2
511 #: ../src/guestfs.pod:228
512 msgid "PARTITIONING"
513 msgstr ""
514
515 # type: textblock
516 #: ../src/guestfs.pod:230
517 msgid ""
518 "Libguestfs contains API calls to read, create and modify partition tables on "
519 "disk images."
520 msgstr ""
521
522 # type: textblock
523 #: ../src/guestfs.pod:233
524 msgid ""
525 "In the common case where you want to create a single partition covering the "
526 "whole disk, you should use the L</guestfs_part_disk> call:"
527 msgstr ""
528
529 # type: verbatim
530 #: ../src/guestfs.pod:237
531 #, no-wrap
532 msgid ""
533 " const char *parttype = \"mbr\";\n"
534 " if (disk_is_larger_than_2TB)\n"
535 "   parttype = \"gpt\";\n"
536 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
537 "\n"
538 msgstr ""
539
540 # type: textblock
541 #: ../src/guestfs.pod:242
542 msgid ""
543 "Obviously this effectively wipes anything that was on that disk image before."
544 msgstr ""
545
546 # type: =head2
547 #: ../src/guestfs.pod:245
548 msgid "LVM2"
549 msgstr ""
550
551 # type: textblock
552 #: ../src/guestfs.pod:247
553 msgid ""
554 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
555 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
556 "you familiarize yourself with the concepts of physical volumes, volume "
557 "groups and logical volumes."
558 msgstr ""
559
560 # type: textblock
561 #: ../src/guestfs.pod:252
562 msgid ""
563 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
564 "tldp.org/HOWTO/LVM-HOWTO/>."
565 msgstr ""
566
567 # type: =head2
568 #: ../src/guestfs.pod:255
569 msgid "DOWNLOADING"
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:257
574 msgid ""
575 "Use L</guestfs_cat> to download small, text only files.  This call is "
576 "limited to files which are less than 2 MB and which cannot contain any ASCII "
577 "NUL (C<\\0>) characters.  However it has a very simple to use API."
578 msgstr ""
579
580 # type: textblock
581 #: ../src/guestfs.pod:262
582 msgid ""
583 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
584 "bit data, since it returns a (pointer, size) pair.  However it is still "
585 "limited to \"small\" files, less than 2 MB."
586 msgstr ""
587
588 # type: textblock
589 #: ../src/guestfs.pod:266
590 msgid ""
591 "L</guestfs_download> can be used to download any file, with no limits on "
592 "content or size (even files larger than 4 GB)."
593 msgstr ""
594
595 # type: textblock
596 #: ../src/guestfs.pod:269
597 msgid ""
598 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
599 msgstr ""
600
601 # type: =head2
602 #: ../src/guestfs.pod:272
603 msgid "UPLOADING"
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:274
608 msgid ""
609 "It's often the case that you want to write a file or files to the disk image."
610 msgstr ""
611
612 # type: textblock
613 #: ../src/guestfs.pod:277
614 msgid ""
615 "To write a small file with fixed content, use L</guestfs_write>.  To create "
616 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
617 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
618 "of other functions for creating test files, for example L</guestfs_fill> and "
619 "L</guestfs_fill_pattern>."
620 msgstr ""
621
622 # type: textblock
623 #: ../src/guestfs.pod:283
624 msgid ""
625 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
626 "file content or size (even files larger than 4 GB)."
627 msgstr ""
628
629 # type: textblock
630 #: ../src/guestfs.pod:286
631 msgid ""
632 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
633 msgstr ""
634
635 # type: textblock
636 #: ../src/guestfs.pod:288
637 msgid ""
638 "However the fastest way to upload I<large numbers of arbitrary files> is to "
639 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
640 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
641 "in a predictable way (eg. adding it last after all other drives) then you "
642 "can get the device name from L</guestfs_list_devices> and mount it directly "
643 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
644 "portable between kernel versions, and they don't support labels or UUIDs.  "
645 "If you want to pre-build an image or you need to mount it using a label or "
646 "UUID, use an ISO image instead."
647 msgstr ""
648
649 # type: =head2
650 #: ../src/guestfs.pod:299
651 msgid "COPYING"
652 msgstr ""
653
654 # type: textblock
655 #: ../src/guestfs.pod:301
656 msgid ""
657 "There are various different commands for copying between files and devices "
658 "and in and out of the guest filesystem.  These are summarised in the table "
659 "below."
660 msgstr ""
661
662 # type: =item
663 #: ../src/guestfs.pod:307
664 msgid "B<file> to B<file>"
665 msgstr ""
666
667 # type: textblock
668 #: ../src/guestfs.pod:309
669 msgid ""
670 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
671 "directories recursively."
672 msgstr ""
673
674 # type: =item
675 #: ../src/guestfs.pod:312
676 msgid "B<file or device> to B<file or device>"
677 msgstr ""
678
679 # type: textblock
680 #: ../src/guestfs.pod:314
681 msgid ""
682 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
683 "devices in the guest."
684 msgstr ""
685
686 # type: textblock
687 #: ../src/guestfs.pod:317
688 msgid "Example: duplicate the contents of an LV:"
689 msgstr ""
690
691 # type: verbatim
692 #: ../src/guestfs.pod:319
693 #, no-wrap
694 msgid ""
695 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
696 "\n"
697 msgstr ""
698
699 # type: textblock
700 #: ../src/guestfs.pod:321
701 msgid ""
702 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
703 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
704 "guestfs_copy_size>."
705 msgstr ""
706
707 # type: =item
708 #: ../src/guestfs.pod:325
709 msgid "B<file on the host> to B<file or device>"
710 msgstr ""
711
712 # type: textblock
713 #: ../src/guestfs.pod:327
714 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
715 msgstr ""
716
717 # type: =item
718 #: ../src/guestfs.pod:329
719 msgid "B<file or device> to B<file on the host>"
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:331
724 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
725 msgstr ""
726
727 # type: =head2
728 #: ../src/guestfs.pod:335
729 msgid "LISTING FILES"
730 msgstr ""
731
732 # type: textblock
733 #: ../src/guestfs.pod:337
734 msgid ""
735 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
736 "L<guestfish(1)>-equivalent command C<ll>)."
737 msgstr ""
738
739 # type: textblock
740 #: ../src/guestfs.pod:340
741 msgid ""
742 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
743 "programs, as a flat list of strings."
744 msgstr ""
745
746 # type: textblock
747 #: ../src/guestfs.pod:343
748 msgid ""
749 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
750 "directory, plus additional information about each one.  It is more "
751 "equivalent to using the L<readdir(3)> call on a local filesystem."
752 msgstr ""
753
754 # type: textblock
755 #: ../src/guestfs.pod:347
756 msgid ""
757 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
758 msgstr ""
759
760 # type: =head2
761 #: ../src/guestfs.pod:350
762 msgid "RUNNING COMMANDS"
763 msgstr ""
764
765 # type: textblock
766 #: ../src/guestfs.pod:352
767 msgid ""
768 "Although libguestfs is primarily an API for manipulating files inside guest "
769 "images, we also provide some limited facilities for running commands inside "
770 "guests."
771 msgstr ""
772
773 # type: textblock
774 #: ../src/guestfs.pod:356
775 msgid "There are many limitations to this:"
776 msgstr ""
777
778 # type: =item
779 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370
780 #: ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383
781 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:1224
782 #: ../src/guestfs.pod:1229 ../src/guestfs.pod:1233 ../src/guestfs.pod:1449
783 #: ../src/guestfs.pod:1454 ../src/guestfs.pod:1458 ../src/guestfs.pod:1560
784 #: ../src/guestfs.pod:1564 ../src/guestfs.pod:1568 ../src/guestfs.pod:1573
785 #: ../src/guestfs.pod:1581 ../src/guestfs.pod:1600 ../src/guestfs.pod:1608
786 #: ../src/guestfs.pod:1838 ../src/guestfs.pod:1844 ../src/guestfs.pod:1849
787 #: ../src/guestfs.pod:1855 ../src/guestfs.pod:1962 ../src/guestfs.pod:1966
788 #: ../src/guestfs.pod:1970 ../src/guestfs.pod:1974
789 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
790 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:509
791 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:523
792 #: ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:1562
793 #: ../src/guestfs-actions.pod:1566 ../src/guestfs-actions.pod:1570
794 #: ../src/guestfs-actions.pod:1578 ../src/guestfs-actions.pod:1582
795 #: ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1596
796 #: ../src/guestfs-actions.pod:1600 ../src/guestfs-actions.pod:1604
797 #: ../src/guestfs-actions.pod:1742 ../src/guestfs-actions.pod:1746
798 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:1756
799 #: ../src/guestfs-actions.pod:1817 ../src/guestfs-actions.pod:1821
800 #: ../src/guestfs-actions.pod:1826 ../fish/guestfish.pod:364
801 #: ../fish/guestfish.pod:368 ../fish/guestfish.pod:372
802 #: ../fish/guestfish.pod:376 ../fish/guestfish-actions.pod:13
803 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:339
804 #: ../fish/guestfish-actions.pod:347 ../fish/guestfish-actions.pod:354
805 #: ../fish/guestfish-actions.pod:361 ../fish/guestfish-actions.pod:1056
806 #: ../fish/guestfish-actions.pod:1060 ../fish/guestfish-actions.pod:1064
807 #: ../fish/guestfish-actions.pod:1068 ../fish/guestfish-actions.pod:1076
808 #: ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084
809 #: ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098
810 #: ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1192
811 #: ../fish/guestfish-actions.pod:1196 ../fish/guestfish-actions.pod:1201
812 #: ../fish/guestfish-actions.pod:1206 ../fish/guestfish-actions.pod:1248
813 #: ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1257
814 #: ../inspector/virt-inspector.pl:584 ../inspector/virt-inspector.pl:588
815 #: ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
816 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
817 msgid "*"
818 msgstr ""
819
820 # type: textblock
821 #: ../src/guestfs.pod:362
822 msgid ""
823 "The kernel version that the command runs under will be different from what "
824 "it expects."
825 msgstr ""
826
827 # type: textblock
828 #: ../src/guestfs.pod:367
829 msgid ""
830 "If the command needs to communicate with daemons, then most likely they "
831 "won't be running."
832 msgstr ""
833
834 # type: textblock
835 #: ../src/guestfs.pod:372
836 msgid "The command will be running in limited memory."
837 msgstr ""
838
839 # type: textblock
840 #: ../src/guestfs.pod:376
841 msgid ""
842 "The network may not be available unless you enable it (see L</"
843 "guestfs_set_network>)."
844 msgstr ""
845
846 # type: textblock
847 #: ../src/guestfs.pod:381
848 msgid "Only supports Linux guests (not Windows, BSD, etc)."
849 msgstr ""
850
851 # type: textblock
852 #: ../src/guestfs.pod:385
853 msgid ""
854 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
855 msgstr ""
856
857 # type: textblock
858 #: ../src/guestfs.pod:390
859 msgid ""
860 "For SELinux guests, you may need to enable SELinux and load policy first.  "
861 "See L</SELINUX> in this manpage."
862 msgstr ""
863
864 # type: textblock
865 #: ../src/guestfs.pod:395
866 msgid ""
867 "I<Security:> It is not safe to run commands from untrusted, possibly "
868 "malicious guests.  These commands may attempt to exploit your program by "
869 "sending unexpected output.  They could also try to exploit the Linux kernel "
870 "or qemu provided by the libguestfs appliance.  They could use the network "
871 "provided by the libguestfs appliance to bypass ordinary network partitions "
872 "and firewalls.  They could use the elevated privileges or different SELinux "
873 "context of your program to their advantage."
874 msgstr ""
875
876 # type: textblock
877 #: ../src/guestfs.pod:404
878 msgid ""
879 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
880 "(a script which runs when the guest next boots normally), and to have this "
881 "script run the commands you want in the normal context of the running guest, "
882 "network security and so on."
883 msgstr ""
884
885 # type: textblock
886 #: ../src/guestfs.pod:411
887 msgid ""
888 "The two main API calls to run commands are L</guestfs_command> and L</"
889 "guestfs_sh> (there are also variations)."
890 msgstr ""
891
892 # type: textblock
893 #: ../src/guestfs.pod:414
894 msgid ""
895 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
896 "shell globs, redirections, etc will work."
897 msgstr ""
898
899 # type: =head2
900 #: ../src/guestfs.pod:417
901 msgid "CONFIGURATION FILES"
902 msgstr ""
903
904 # type: textblock
905 #: ../src/guestfs.pod:419
906 msgid ""
907 "To read and write configuration files in Linux guest filesystems, we "
908 "strongly recommend using Augeas.  For example, Augeas understands how to "
909 "read and write, say, a Linux shadow password file or X.org configuration "
910 "file, and so avoids you having to write that code."
911 msgstr ""
912
913 # type: textblock
914 #: ../src/guestfs.pod:424
915 msgid ""
916 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
917 "document Augeas itself here because there is excellent documentation on the "
918 "L<http://augeas.net/> website."
919 msgstr ""
920
921 # type: textblock
922 #: ../src/guestfs.pod:428
923 msgid ""
924 "If you don't want to use Augeas (you fool!) then try calling L</"
925 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
926 "over."
927 msgstr ""
928
929 # type: =head2
930 #: ../src/guestfs.pod:432
931 msgid "SELINUX"
932 msgstr ""
933
934 # type: textblock
935 #: ../src/guestfs.pod:434
936 msgid ""
937 "We support SELinux guests.  To ensure that labeling happens correctly in "
938 "SELinux guests, you need to enable SELinux and load the guest's policy:"
939 msgstr ""
940
941 # type: =item
942 #: ../src/guestfs.pod:440 ../src/guestfs.pod:953
943 msgid "1."
944 msgstr ""
945
946 # type: textblock
947 #: ../src/guestfs.pod:442
948 msgid "Before launching, do:"
949 msgstr ""
950
951 # type: verbatim
952 #: ../src/guestfs.pod:444
953 #, no-wrap
954 msgid ""
955 " guestfs_set_selinux (g, 1);\n"
956 "\n"
957 msgstr ""
958
959 # type: =item
960 #: ../src/guestfs.pod:446 ../src/guestfs.pod:957
961 msgid "2."
962 msgstr ""
963
964 # type: textblock
965 #: ../src/guestfs.pod:448
966 msgid ""
967 "After mounting the guest's filesystem(s), load the policy.  This is best "
968 "done by running the L<load_policy(8)> command in the guest itself:"
969 msgstr ""
970
971 # type: verbatim
972 #: ../src/guestfs.pod:452
973 #, no-wrap
974 msgid ""
975 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
976 "\n"
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:454
981 msgid ""
982 "(Older versions of C<load_policy> require you to specify the name of the "
983 "policy file)."
984 msgstr ""
985
986 # type: =item
987 #: ../src/guestfs.pod:457 ../src/guestfs.pod:963
988 msgid "3."
989 msgstr ""
990
991 # type: textblock
992 #: ../src/guestfs.pod:459
993 msgid ""
994 "Optionally, set the security context for the API.  The correct security "
995 "context to use can only be known by inspecting the guest.  As an example:"
996 msgstr ""
997
998 # type: verbatim
999 #: ../src/guestfs.pod:463
1000 #, no-wrap
1001 msgid ""
1002 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1003 "\n"
1004 msgstr ""
1005
1006 # type: textblock
1007 #: ../src/guestfs.pod:467
1008 msgid "This will work for running commands and editing existing files."
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:469
1013 msgid ""
1014 "When new files are created, you may need to label them explicitly, for "
1015 "example by running the external command C<restorecon pathname>."
1016 msgstr ""
1017
1018 # type: =head2
1019 #: ../src/guestfs.pod:473
1020 msgid "UMASK"
1021 msgstr ""
1022
1023 # type: textblock
1024 #: ../src/guestfs.pod:475
1025 msgid ""
1026 "Certain calls are affected by the current file mode creation mask (the "
1027 "\"umask\").  In particular ones which create files or directories, such as "
1028 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1029 "either the default mode that the file is created with or modifies the mode "
1030 "that you supply."
1031 msgstr ""
1032
1033 # type: textblock
1034 #: ../src/guestfs.pod:481
1035 msgid ""
1036 "The default umask is C<022>, so files are created with modes such as C<0644> "
1037 "and directories with C<0755>."
1038 msgstr ""
1039
1040 # type: textblock
1041 #: ../src/guestfs.pod:484
1042 msgid ""
1043 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1044 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1045 "guestfs_chmod> after creating each file or directory."
1046 msgstr ""
1047
1048 # type: textblock
1049 #: ../src/guestfs.pod:488
1050 msgid "For more information about umask, see L<umask(2)>."
1051 msgstr ""
1052
1053 # type: =head1
1054 #: ../src/guestfs.pod:490 ../fish/guestfish.pod:630
1055 msgid "ENCRYPTED DISKS"
1056 msgstr ""
1057
1058 # type: textblock
1059 #: ../src/guestfs.pod:492
1060 msgid ""
1061 "Libguestfs allows you to access Linux guests which have been encrypted using "
1062 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1063 "standard.  This includes nearly all whole disk encryption systems used by "
1064 "modern Linux guests."
1065 msgstr ""
1066
1067 # type: textblock
1068 #: ../src/guestfs.pod:498
1069 msgid ""
1070 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1071 "returns the string C<crypto_LUKS>)."
1072 msgstr ""
1073
1074 # type: textblock
1075 #: ../src/guestfs.pod:501
1076 msgid ""
1077 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1078 "will require the passphrase!"
1079 msgstr ""
1080
1081 # type: textblock
1082 #: ../src/guestfs.pod:504
1083 msgid ""
1084 "Opening a LUKS device creates a new device mapper device called C</dev/"
1085 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1086 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1087 "from and encrypted to the underlying block device respectively."
1088 msgstr ""
1089
1090 # type: textblock
1091 #: ../src/guestfs.pod:510
1092 msgid ""
1093 "LVM volume groups on the device can be made visible by calling L</"
1094 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1095 "(s) can now be mounted in the usual way."
1096 msgstr ""
1097
1098 # type: textblock
1099 #: ../src/guestfs.pod:514
1100 msgid ""
1101 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1102 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1103 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1104 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1105 "underlying encrypted block device)."
1106 msgstr ""
1107
1108 # type: =head2
1109 #: ../src/guestfs.pod:521
1110 msgid "INSPECTION"
1111 msgstr ""
1112
1113 # type: textblock
1114 #: ../src/guestfs.pod:523
1115 msgid ""
1116 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1117 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1118 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1119 "frequently used part of this library has been rewritten in C and moved into "
1120 "the core code)."
1121 msgstr ""
1122
1123 # type: textblock
1124 #: ../src/guestfs.pod:529
1125 msgid ""
1126 "Add all disks belonging to the unknown virtual machine and call L</"
1127 "guestfs_launch> in the usual way."
1128 msgstr ""
1129
1130 # type: textblock
1131 #: ../src/guestfs.pod:532
1132 msgid ""
1133 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1134 "and certain heuristics, and returns a list of operating systems that were "
1135 "found.  An empty list means none were found.  A single element is the root "
1136 "filesystem of the operating system.  For dual- or multi-boot guests, "
1137 "multiple roots can be returned, each one corresponding to a separate "
1138 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1139 "world of virtualization, but since this scenario can happen, we have built "
1140 "libguestfs to deal with it.)"
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:541
1145 msgid ""
1146 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1147 "to get additional details about that operating system.  For example, call L</"
1148 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1149 "Windows and Linux-based operating systems respectively."
1150 msgstr ""
1151
1152 # type: textblock
1153 #: ../src/guestfs.pod:547
1154 msgid ""
1155 "Un*x-like and Linux-based operating systems usually consist of several "
1156 "filesystems which are mounted at boot time (for example, a separate boot "
1157 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1158 "filesystems correspond to mount points.  Call "
1159 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1160 "hash table like this example:"
1161 msgstr ""
1162
1163 # type: verbatim
1164 #: ../src/guestfs.pod:554
1165 #, no-wrap
1166 msgid ""
1167 " /boot => /dev/sda1\n"
1168 " /     => /dev/vg_guest/lv_root\n"
1169 " /usr  => /dev/vg_guest/lv_usr\n"
1170 "\n"
1171 msgstr ""
1172
1173 # type: textblock
1174 #: ../src/guestfs.pod:558
1175 msgid ""
1176 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1177 "filesystems as suggested."
1178 msgstr ""
1179
1180 # type: textblock
1181 #: ../src/guestfs.pod:561
1182 msgid ""
1183 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1184 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1185 msgstr ""
1186
1187 # type: textblock
1188 #: ../src/guestfs.pod:565
1189 msgid ""
1190 "Inspection currently only works for some common operating systems.  "
1191 "Contributors are welcome to send patches for other operating systems that we "
1192 "currently cannot detect."
1193 msgstr ""
1194
1195 # type: textblock
1196 #: ../src/guestfs.pod:569
1197 msgid ""
1198 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1199 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1200 "encrypted devices."
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:573
1205 msgid ""
1206 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1207 "inspection and caches the results in the guest handle.  Subsequent calls to "
1208 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1209 "read the disks.  If you change the content of the guest disks, you can redo "
1210 "inspection by calling L</guestfs_inspect_os> again."
1211 msgstr ""
1212
1213 # type: =head2
1214 #: ../src/guestfs.pod:580
1215 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1216 msgstr ""
1217
1218 # type: textblock
1219 #: ../src/guestfs.pod:582
1220 msgid ""
1221 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1222 "ntfs-3g.org/> driver."
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:585
1227 msgid ""
1228 "DOS and Windows still use drive letters, and the filesystems are always "
1229 "treated as case insensitive by Windows itself, and therefore you might find "
1230 "a Windows configuration file referring to a path like C<c:\\windows"
1231 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1232 "might be referred to as C</WINDOWS/System32>."
1233 msgstr ""
1234
1235 # type: textblock
1236 #: ../src/guestfs.pod:591
1237 msgid ""
1238 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1239 "libguestfs to read the appropriate Windows Registry and configuration files, "
1240 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1241 "inspector(1)>)."
1242 msgstr ""
1243
1244 # type: textblock
1245 #: ../src/guestfs.pod:596
1246 msgid ""
1247 "Replacing backslash characters with forward slash characters is also outside "
1248 "the scope of libguestfs, but something that you can easily do."
1249 msgstr ""
1250
1251 # type: textblock
1252 #: ../src/guestfs.pod:599
1253 msgid ""
1254 "Where we can help is in resolving the case insensitivity of paths.  For "
1255 "this, call L</guestfs_case_sensitive_path>."
1256 msgstr ""
1257
1258 # type: textblock
1259 #: ../src/guestfs.pod:602
1260 msgid ""
1261 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1262 "files, through the library C<hivex> which is part of the libguestfs project "
1263 "although ships as a separate tarball.  You have to locate and download the "
1264 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1265 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1266 "reg(1)> for more help on this issue."
1267 msgstr ""
1268
1269 # type: =head2
1270 #: ../src/guestfs.pod:610
1271 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1272 msgstr ""
1273
1274 # type: textblock
1275 #: ../src/guestfs.pod:612
1276 msgid ""
1277 "Although we don't want to discourage you from using the C API, we will "
1278 "mention here that the same API is also available in other languages."
1279 msgstr ""
1280
1281 # type: textblock
1282 #: ../src/guestfs.pod:615
1283 msgid ""
1284 "The API is broadly identical in all supported languages.  This means that "
1285 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1286 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1287 "words, a straightforward, predictable isomorphism between each language."
1288 msgstr ""
1289
1290 # type: textblock
1291 #: ../src/guestfs.pod:621
1292 msgid ""
1293 "Error messages are automatically transformed into exceptions if the language "
1294 "supports it."
1295 msgstr ""
1296
1297 # type: textblock
1298 #: ../src/guestfs.pod:624
1299 msgid ""
1300 "We don't try to \"object orientify\" parts of the API in OO languages, "
1301 "although contributors are welcome to write higher level APIs above what we "
1302 "provide in their favourite languages if they wish."
1303 msgstr ""
1304
1305 # type: =item
1306 #: ../src/guestfs.pod:630
1307 msgid "B<C++>"
1308 msgstr ""
1309
1310 # type: textblock
1311 #: ../src/guestfs.pod:632
1312 msgid ""
1313 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1314 "identical to the C API.  C++ classes and exceptions are not used."
1315 msgstr ""
1316
1317 # type: =item
1318 #: ../src/guestfs.pod:636
1319 msgid "B<C#>"
1320 msgstr ""
1321
1322 # type: textblock
1323 #: ../src/guestfs.pod:638
1324 msgid ""
1325 "The C# bindings are highly experimental.  Please read the warnings at the "
1326 "top of C<csharp/Libguestfs.cs>."
1327 msgstr ""
1328
1329 # type: =item
1330 #: ../src/guestfs.pod:641
1331 msgid "B<Haskell>"
1332 msgstr ""
1333
1334 # type: textblock
1335 #: ../src/guestfs.pod:643
1336 msgid ""
1337 "This is the only language binding that is working but incomplete.  Only "
1338 "calls which return simple integers have been bound in Haskell, and we are "
1339 "looking for help to complete this binding."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:647
1344 msgid "B<Java>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:649
1349 msgid ""
1350 "Full documentation is contained in the Javadoc which is distributed with "
1351 "libguestfs."
1352 msgstr ""
1353
1354 # type: =item
1355 #: ../src/guestfs.pod:652
1356 msgid "B<OCaml>"
1357 msgstr ""
1358
1359 # type: textblock
1360 #: ../src/guestfs.pod:654
1361 msgid "For documentation see the file C<guestfs.mli>."
1362 msgstr ""
1363
1364 # type: =item
1365 #: ../src/guestfs.pod:656
1366 msgid "B<Perl>"
1367 msgstr ""
1368
1369 # type: textblock
1370 #: ../src/guestfs.pod:658
1371 msgid "For documentation see L<Sys::Guestfs(3)>."
1372 msgstr ""
1373
1374 # type: =item
1375 #: ../src/guestfs.pod:660
1376 msgid "B<PHP>"
1377 msgstr ""
1378
1379 # type: textblock
1380 #: ../src/guestfs.pod:662
1381 msgid ""
1382 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1383 "the php-libguestfs package for your distribution."
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:665
1388 msgid "The PHP binding only works correctly on 64 bit machines."
1389 msgstr ""
1390
1391 # type: =item
1392 #: ../src/guestfs.pod:667
1393 msgid "B<Python>"
1394 msgstr ""
1395
1396 # type: textblock
1397 #: ../src/guestfs.pod:669
1398 msgid "For documentation do:"
1399 msgstr ""
1400
1401 # type: verbatim
1402 #: ../src/guestfs.pod:671
1403 #, no-wrap
1404 msgid ""
1405 " $ python\n"
1406 " >>> import guestfs\n"
1407 " >>> help (guestfs)\n"
1408 "\n"
1409 msgstr ""
1410
1411 # type: =item
1412 #: ../src/guestfs.pod:675
1413 msgid "B<Ruby>"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:677
1418 msgid ""
1419 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1420 "can find examples written in Ruby in the libguestfs source."
1421 msgstr ""
1422
1423 # type: =item
1424 #: ../src/guestfs.pod:680
1425 msgid "B<shell scripts>"
1426 msgstr ""
1427
1428 # type: textblock
1429 #: ../src/guestfs.pod:682
1430 msgid "For documentation see L<guestfish(1)>."
1431 msgstr ""
1432
1433 # type: =head2
1434 #: ../src/guestfs.pod:686
1435 msgid "LIBGUESTFS GOTCHAS"
1436 msgstr ""
1437
1438 # type: textblock
1439 #: ../src/guestfs.pod:688
1440 msgid ""
1441 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1442 "system [...] that works in the way it is documented but is counterintuitive "
1443 "and almost invites mistakes.\""
1444 msgstr ""
1445
1446 # type: textblock
1447 #: ../src/guestfs.pod:692
1448 msgid ""
1449 "Since we developed libguestfs and the associated tools, there are several "
1450 "things we would have designed differently, but are now stuck with for "
1451 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1452 "release, you can expect these to change.  Beware of them."
1453 msgstr ""
1454
1455 # type: =item
1456 #: ../src/guestfs.pod:700
1457 msgid "Autosync / forgetting to sync."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:702
1462 msgid ""
1463 "When modifying a filesystem from C or another language, you B<must> unmount "
1464 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1465 "libguestfs handle.  You can also call:"
1466 msgstr ""
1467
1468 # type: verbatim
1469 #: ../src/guestfs.pod:706
1470 #, no-wrap
1471 msgid ""
1472 " guestfs_set_autosync (g, 1);\n"
1473 "\n"
1474 msgstr ""
1475
1476 # type: textblock
1477 #: ../src/guestfs.pod:708
1478 msgid ""
1479 "to have the unmount/sync done automatically for you when the handle 'g' is "
1480 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1481 msgstr ""
1482
1483 # type: textblock
1484 #: ../src/guestfs.pod:712
1485 msgid ""
1486 "If you forget to do this, then it is entirely possible that your changes "
1487 "won't be written out, or will be partially written, or (very rarely) that "
1488 "you'll get disk corruption."
1489 msgstr ""
1490
1491 # type: textblock
1492 #: ../src/guestfs.pod:716
1493 msgid ""
1494 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1495 "guestfish scripts that forget to sync will work just fine, which can make "
1496 "this very puzzling if you are trying to debug a problem."
1497 msgstr ""
1498
1499 # type: textblock
1500 #: ../src/guestfs.pod:720
1501 msgid ""
1502 "Update: Autosync is enabled by default for all API users starting from "
1503 "libguestfs 1.5.24."
1504 msgstr ""
1505
1506 # type: =item
1507 #: ../src/guestfs.pod:723
1508 msgid "Mount option C<-o sync> should not be the default."
1509 msgstr ""
1510
1511 # type: textblock
1512 #: ../src/guestfs.pod:725
1513 msgid ""
1514 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1515 "However C<-o sync> does not add any reliability benefit, but does have a "
1516 "very large performance impact."
1517 msgstr ""
1518
1519 # type: textblock
1520 #: ../src/guestfs.pod:729
1521 msgid ""
1522 "The work around is to use L</guestfs_mount_options> and set the mount "
1523 "options that you actually want to use."
1524 msgstr ""
1525
1526 # type: =item
1527 #: ../src/guestfs.pod:732
1528 msgid "Read-only should be the default."
1529 msgstr ""
1530
1531 # type: textblock
1532 #: ../src/guestfs.pod:734
1533 msgid ""
1534 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1535 "specify I<--rw> if you want to make changes to the image."
1536 msgstr ""
1537
1538 # type: textblock
1539 #: ../src/guestfs.pod:737
1540 msgid "This would reduce the potential to corrupt live VM images."
1541 msgstr ""
1542
1543 # type: textblock
1544 #: ../src/guestfs.pod:739
1545 msgid ""
1546 "Note that many filesystems change the disk when you just mount and unmount, "
1547 "even if you didn't perform any writes.  You need to use L</"
1548 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1549 msgstr ""
1550
1551 # type: =item
1552 #: ../src/guestfs.pod:743
1553 msgid "guestfish command line is hard to use."
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:745
1558 msgid ""
1559 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1560 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1561 "exist, so it fails.  In earlier versions of guestfish the error message was "
1562 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1563 "we should have used C<guestfish -c command> to run commands."
1564 msgstr ""
1565
1566 # type: =item
1567 #: ../src/guestfs.pod:752
1568 msgid "guestfish megabyte modifiers don't work right on all commands"
1569 msgstr ""
1570
1571 # type: textblock
1572 #: ../src/guestfs.pod:754
1573 msgid ""
1574 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1575 "other modifiers).  What guestfish actually does is to multiply the number "
1576 "part by the modifier part and pass the result to the C API.  However this "
1577 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1578 "expecting some other unit (eg. megabytes)."
1579 msgstr ""
1580
1581 # type: textblock
1582 #: ../src/guestfs.pod:761
1583 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1584 msgstr ""
1585
1586 # type: verbatim
1587 #: ../src/guestfs.pod:763
1588 #, no-wrap
1589 msgid ""
1590 " lvcreate LV VG 100M\n"
1591 "\n"
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:765
1596 msgid ""
1597 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1598 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1599 "megabytes * megabytes) logical volume.  The error message you get from this "
1600 "is also a little obscure."
1601 msgstr ""
1602
1603 # type: textblock
1604 #: ../src/guestfs.pod:770
1605 msgid ""
1606 "This could be fixed in the generator by specially marking parameters and "
1607 "return values which take bytes or other units."
1608 msgstr ""
1609
1610 # type: =item
1611 #: ../src/guestfs.pod:773
1612 msgid "Ambiguity between devices and paths"
1613 msgstr ""
1614
1615 # type: textblock
1616 #: ../src/guestfs.pod:775
1617 msgid ""
1618 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1619 "sdb2>) and a similar pathname.  A file might just happen to be called "
1620 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1621 msgstr ""
1622
1623 # type: textblock
1624 #: ../src/guestfs.pod:780
1625 msgid ""
1626 "In the current API we usually resolve this ambiguity by having two separate "
1627 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1628 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1629 "detecting if the path supplied begins with C</dev/>."
1630 msgstr ""
1631
1632 # type: textblock
1633 #: ../src/guestfs.pod:786
1634 msgid ""
1635 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1636 "make paths/devices into structured names.  One way to do this would be to "
1637 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1638 "aspect of grub.  Another way would be to use a structured type, equivalent "
1639 "to this OCaml type:"
1640 msgstr ""
1641
1642 # type: verbatim
1643 #: ../src/guestfs.pod:792
1644 #, no-wrap
1645 msgid ""
1646 " type path = Path of string | Device of int | Partition of int * int\n"
1647 "\n"
1648 msgstr ""
1649
1650 # type: textblock
1651 #: ../src/guestfs.pod:794
1652 msgid "which would allow you to pass arguments like:"
1653 msgstr ""
1654
1655 # type: verbatim
1656 #: ../src/guestfs.pod:796
1657 #, no-wrap
1658 msgid ""
1659 " Path \"/foo/bar\"\n"
1660 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1661 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1662 " Path \"/dev/sdb2\"    (* not a device *)\n"
1663 "\n"
1664 msgstr ""
1665
1666 # type: textblock
1667 #: ../src/guestfs.pod:801
1668 msgid ""
1669 "As you can see there are still problems to resolve even with this "
1670 "representation.  Also consider how it might work in guestfish."
1671 msgstr ""
1672
1673 # type: =head2
1674 #: ../src/guestfs.pod:806
1675 msgid "PROTOCOL LIMITS"
1676 msgstr ""
1677
1678 # type: textblock
1679 #: ../src/guestfs.pod:808
1680 msgid ""
1681 "Internally libguestfs uses a message-based protocol to pass API calls and "
1682 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1683 "plenty more detail about this).  The maximum message size used by the "
1684 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1685 "aware of this limit.  The API calls which may be affected are individually "
1686 "documented, with a link back to this section of the documentation."
1687 msgstr ""
1688
1689 # type: textblock
1690 #: ../src/guestfs.pod:816
1691 msgid ""
1692 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1693 "a simple string.  Because this string is at some point internally encoded as "
1694 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1695 "the requested file is larger than this then you will get an error."
1696 msgstr ""
1697
1698 # type: textblock
1699 #: ../src/guestfs.pod:822
1700 msgid ""
1701 "In order to transfer large files into and out of the guest filesystem, you "
1702 "need to use particular calls that support this.  The sections L</UPLOADING> "
1703 "and L</DOWNLOADING> document how to do this."
1704 msgstr ""
1705
1706 # type: textblock
1707 #: ../src/guestfs.pod:826
1708 msgid ""
1709 "You might also consider mounting the disk image using our FUSE filesystem "
1710 "support (L<guestmount(1)>)."
1711 msgstr ""
1712
1713 # type: =head2
1714 #: ../src/guestfs.pod:829
1715 msgid "KEYS AND PASSPHRASES"
1716 msgstr ""
1717
1718 # type: textblock
1719 #: ../src/guestfs.pod:831
1720 msgid ""
1721 "Certain libguestfs calls take a parameter that contains sensitive key "
1722 "material, passed in as a C string."
1723 msgstr ""
1724
1725 # type: textblock
1726 #: ../src/guestfs.pod:834
1727 msgid ""
1728 "In the future we would hope to change the libguestfs implementation so that "
1729 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1730 "swap.  However this is I<not> done at the moment, because of the complexity "
1731 "of such an implementation."
1732 msgstr ""
1733
1734 # type: textblock
1735 #: ../src/guestfs.pod:839
1736 msgid ""
1737 "Therefore you should be aware that any key parameter you pass to libguestfs "
1738 "might end up being written out to the swap partition.  If this is a concern, "
1739 "scrub the swap partition or don't use libguestfs on encrypted devices."
1740 msgstr ""
1741
1742 # type: =head1
1743 #: ../src/guestfs.pod:844
1744 msgid "CONNECTION MANAGEMENT"
1745 msgstr ""
1746
1747 # type: =head2
1748 #: ../src/guestfs.pod:846
1749 msgid "guestfs_h *"
1750 msgstr ""
1751
1752 # type: textblock
1753 #: ../src/guestfs.pod:848
1754 msgid ""
1755 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1756 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1757 "handle and release all resources used."
1758 msgstr ""
1759
1760 # type: textblock
1761 #: ../src/guestfs.pod:852
1762 msgid ""
1763 "For information on using multiple handles and threads, see the section L</"
1764 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1765 msgstr ""
1766
1767 # type: =head2
1768 #: ../src/guestfs.pod:855
1769 msgid "guestfs_create"
1770 msgstr ""
1771
1772 # type: verbatim
1773 #: ../src/guestfs.pod:857
1774 #, no-wrap
1775 msgid ""
1776 " guestfs_h *guestfs_create (void);\n"
1777 "\n"
1778 msgstr ""
1779
1780 # type: textblock
1781 #: ../src/guestfs.pod:859
1782 msgid "Create a connection handle."
1783 msgstr ""
1784
1785 # type: textblock
1786 #: ../src/guestfs.pod:861
1787 msgid ""
1788 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1789 "on the handle at least once."
1790 msgstr ""
1791
1792 # type: textblock
1793 #: ../src/guestfs.pod:864
1794 msgid ""
1795 "This function returns a non-NULL pointer to a handle on success or NULL on "
1796 "error."
1797 msgstr ""
1798
1799 # type: textblock
1800 #: ../src/guestfs.pod:867
1801 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1802 msgstr ""
1803
1804 # type: textblock
1805 #: ../src/guestfs.pod:869
1806 msgid ""
1807 "You may also want to configure error handling for the handle.  See L</ERROR "
1808 "HANDLING> section below."
1809 msgstr ""
1810
1811 # type: =head2
1812 #: ../src/guestfs.pod:872
1813 msgid "guestfs_close"
1814 msgstr ""
1815
1816 # type: verbatim
1817 #: ../src/guestfs.pod:874
1818 #, no-wrap
1819 msgid ""
1820 " void guestfs_close (guestfs_h *g);\n"
1821 "\n"
1822 msgstr ""
1823
1824 # type: textblock
1825 #: ../src/guestfs.pod:876
1826 msgid "This closes the connection handle and frees up all resources used."
1827 msgstr ""
1828
1829 # type: =head1
1830 #: ../src/guestfs.pod:878
1831 msgid "ERROR HANDLING"
1832 msgstr ""
1833
1834 # type: textblock
1835 #: ../src/guestfs.pod:880
1836 msgid ""
1837 "API functions can return errors.  For example, almost all functions that "
1838 "return C<int> will return C<-1> to indicate an error."
1839 msgstr ""
1840
1841 # type: textblock
1842 #: ../src/guestfs.pod:883
1843 msgid ""
1844 "Additional information is available for errors: an error message string and "
1845 "optionally an error number (errno) if the thing that failed was a system "
1846 "call."
1847 msgstr ""
1848
1849 # type: textblock
1850 #: ../src/guestfs.pod:887
1851 msgid ""
1852 "You can get at the additional information about the last error on the handle "
1853 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
1854 "up an error handler with L</guestfs_set_error_handler>."
1855 msgstr ""
1856
1857 # type: textblock
1858 #: ../src/guestfs.pod:892
1859 msgid ""
1860 "When the handle is created, a default error handler is installed which "
1861 "prints the error message string to C<stderr>.  For small short-running "
1862 "command line programs it is sufficient to do:"
1863 msgstr ""
1864
1865 # type: verbatim
1866 #: ../src/guestfs.pod:896
1867 #, no-wrap
1868 msgid ""
1869 " if (guestfs_launch (g) == -1)\n"
1870 "   exit (EXIT_FAILURE);\n"
1871 "\n"
1872 msgstr ""
1873
1874 # type: textblock
1875 #: ../src/guestfs.pod:899
1876 msgid ""
1877 "since the default error handler will ensure that an error message has been "
1878 "printed to C<stderr> before the program exits."
1879 msgstr ""
1880
1881 # type: textblock
1882 #: ../src/guestfs.pod:902
1883 msgid ""
1884 "For other programs the caller will almost certainly want to install an "
1885 "alternate error handler or do error handling in-line like this:"
1886 msgstr ""
1887
1888 # type: verbatim
1889 #: ../src/guestfs.pod:905
1890 #, no-wrap
1891 msgid ""
1892 " g = guestfs_create ();\n"
1893 " \n"
1894 msgstr ""
1895
1896 # type: verbatim
1897 #: ../src/guestfs.pod:907
1898 #, no-wrap
1899 msgid ""
1900 " /* This disables the default behaviour of printing errors\n"
1901 "    on stderr. */\n"
1902 " guestfs_set_error_handler (g, NULL, NULL);\n"
1903 " \n"
1904 msgstr ""
1905
1906 # type: verbatim
1907 #: ../src/guestfs.pod:911
1908 #, no-wrap
1909 msgid ""
1910 " if (guestfs_launch (g) == -1) {\n"
1911 "   /* Examine the error message and print it etc. */\n"
1912 "   char *msg = guestfs_last_error (g);\n"
1913 "   int errnum = guestfs_last_errno (g);\n"
1914 "   fprintf (stderr, \"%s\\n\", msg);\n"
1915 "   /* ... */\n"
1916 "  }\n"
1917 "\n"
1918 msgstr ""
1919
1920 # type: textblock
1921 #: ../src/guestfs.pod:919
1922 msgid ""
1923 "Out of memory errors are handled differently.  The default action is to call "
1924 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1925 "guestfs_set_out_of_memory_handler>."
1926 msgstr ""
1927
1928 # type: textblock
1929 #: ../src/guestfs.pod:923
1930 msgid ""
1931 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
1932 "because there is no handle if this happens there is no way to get additional "
1933 "error information.  However L</guestfs_create> is supposed to be a "
1934 "lightweight operation which can only fail because of insufficient memory (it "
1935 "returns NULL in this case)."
1936 msgstr ""
1937
1938 # type: =head2
1939 #: ../src/guestfs.pod:929
1940 msgid "guestfs_last_error"
1941 msgstr ""
1942
1943 # type: verbatim
1944 #: ../src/guestfs.pod:931
1945 #, no-wrap
1946 msgid ""
1947 " const char *guestfs_last_error (guestfs_h *g);\n"
1948 "\n"
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:933
1953 msgid ""
1954 "This returns the last error message that happened on C<g>.  If there has not "
1955 "been an error since the handle was created, then this returns C<NULL>."
1956 msgstr ""
1957
1958 # type: textblock
1959 #: ../src/guestfs.pod:937
1960 msgid ""
1961 "The lifetime of the returned string is until the next error occurs, or L</"
1962 "guestfs_close> is called."
1963 msgstr ""
1964
1965 # type: =head2
1966 #: ../src/guestfs.pod:940
1967 msgid "guestfs_last_errno"
1968 msgstr ""
1969
1970 # type: verbatim
1971 #: ../src/guestfs.pod:942
1972 #, no-wrap
1973 msgid ""
1974 " int guestfs_last_errno (guestfs_h *g);\n"
1975 "\n"
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:944
1980 msgid "This returns the last error number (errno) that happened on C<g>."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:946
1985 msgid "If successful, an errno integer not equal to zero is returned."
1986 msgstr ""
1987
1988 # type: textblock
1989 #: ../src/guestfs.pod:948
1990 msgid ""
1991 "If no error, this returns 0.  This call can return 0 in three situations:"
1992 msgstr ""
1993
1994 # type: textblock
1995 #: ../src/guestfs.pod:955
1996 msgid "There has not been any error on the handle."
1997 msgstr ""
1998
1999 # type: textblock
2000 #: ../src/guestfs.pod:959
2001 msgid ""
2002 "There has been an error but the errno was meaningless.  This corresponds to "
2003 "the case where the error did not come from a failed system call, but for "
2004 "some other reason."
2005 msgstr ""
2006
2007 # type: textblock
2008 #: ../src/guestfs.pod:965
2009 msgid ""
2010 "There was an error from a failed system call, but for some reason the errno "
2011 "was not captured and returned.  This usually indicates a bug in libguestfs."
2012 msgstr ""
2013
2014 # type: textblock
2015 #: ../src/guestfs.pod:971
2016 msgid ""
2017 "Libguestfs tries to convert the errno from inside the applicance into a "
2018 "corresponding errno for the caller (not entirely trivial: the appliance "
2019 "might be running a completely different operating system from the library "
2020 "and error numbers are not standardized across Un*xen).  If this could not be "
2021 "done, then the error is translated to C<EINVAL>.  In practice this should "
2022 "only happen in very rare circumstances."
2023 msgstr ""
2024
2025 # type: =head2
2026 #: ../src/guestfs.pod:979
2027 msgid "guestfs_set_error_handler"
2028 msgstr ""
2029
2030 # type: verbatim
2031 #: ../src/guestfs.pod:981
2032 #, no-wrap
2033 msgid ""
2034 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2035 "                                           void *opaque,\n"
2036 "                                           const char *msg);\n"
2037 " void guestfs_set_error_handler (guestfs_h *g,\n"
2038 "                                 guestfs_error_handler_cb cb,\n"
2039 "                                 void *opaque);\n"
2040 "\n"
2041 msgstr ""
2042
2043 # type: textblock
2044 #: ../src/guestfs.pod:988
2045 msgid ""
2046 "The callback C<cb> will be called if there is an error.  The parameters "
2047 "passed to the callback are an opaque data pointer and the error message "
2048 "string."
2049 msgstr ""
2050
2051 # type: textblock
2052 #: ../src/guestfs.pod:992
2053 msgid ""
2054 "C<errno> is not passed to the callback.  To get that the callback must call "
2055 "L</guestfs_last_errno>."
2056 msgstr ""
2057
2058 # type: textblock
2059 #: ../src/guestfs.pod:995
2060 msgid ""
2061 "Note that the message string C<msg> is freed as soon as the callback "
2062 "function returns, so if you want to stash it somewhere you must make your "
2063 "own copy."
2064 msgstr ""
2065
2066 # type: textblock
2067 #: ../src/guestfs.pod:999
2068 msgid "The default handler prints messages on C<stderr>."
2069 msgstr ""
2070
2071 # type: textblock
2072 #: ../src/guestfs.pod:1001
2073 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2074 msgstr ""
2075
2076 # type: =head2
2077 #: ../src/guestfs.pod:1003
2078 msgid "guestfs_get_error_handler"
2079 msgstr ""
2080
2081 # type: verbatim
2082 #: ../src/guestfs.pod:1005
2083 #, no-wrap
2084 msgid ""
2085 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2086 "                                                     void **opaque_rtn);\n"
2087 "\n"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1008
2092 msgid "Returns the current error handler callback."
2093 msgstr ""
2094
2095 # type: =head2
2096 #: ../src/guestfs.pod:1010
2097 msgid "guestfs_set_out_of_memory_handler"
2098 msgstr ""
2099
2100 # type: verbatim
2101 #: ../src/guestfs.pod:1012
2102 #, no-wrap
2103 msgid ""
2104 " typedef void (*guestfs_abort_cb) (void);\n"
2105 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2106 "                                        guestfs_abort_cb);\n"
2107 "\n"
2108 msgstr ""
2109
2110 # type: textblock
2111 #: ../src/guestfs.pod:1016
2112 msgid ""
2113 "The callback C<cb> will be called if there is an out of memory situation.  "
2114 "I<Note this callback must not return>."
2115 msgstr ""
2116
2117 # type: textblock
2118 #: ../src/guestfs.pod:1019
2119 msgid "The default is to call L<abort(3)>."
2120 msgstr ""
2121
2122 # type: textblock
2123 #: ../src/guestfs.pod:1021
2124 msgid ""
2125 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2126 msgstr ""
2127
2128 # type: =head2
2129 #: ../src/guestfs.pod:1024
2130 msgid "guestfs_get_out_of_memory_handler"
2131 msgstr ""
2132
2133 # type: verbatim
2134 #: ../src/guestfs.pod:1026
2135 #, no-wrap
2136 msgid ""
2137 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2138 "\n"
2139 msgstr ""
2140
2141 # type: textblock
2142 #: ../src/guestfs.pod:1028
2143 msgid "This returns the current out of memory handler."
2144 msgstr ""
2145
2146 # type: =head1
2147 #: ../src/guestfs.pod:1030
2148 msgid "PATH"
2149 msgstr ""
2150
2151 # type: textblock
2152 #: ../src/guestfs.pod:1032
2153 msgid ""
2154 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2155 "internal path."
2156 msgstr ""
2157
2158 # type: textblock
2159 #: ../src/guestfs.pod:1035
2160 msgid ""
2161 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2162 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2163 msgstr ""
2164
2165 # type: textblock
2166 #: ../src/guestfs.pod:1038
2167 msgid ""
2168 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2169 "to change the directories that libguestfs will search in.  The value is a "
2170 "colon-separated list of paths.  The current directory is I<not> searched "
2171 "unless the path contains an empty element or C<.>.  For example "
2172 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2173 "then C</usr/lib/guestfs>."
2174 msgstr ""
2175
2176 # type: =head1
2177 #: ../src/guestfs.pod:1045
2178 msgid "HIGH-LEVEL API ACTIONS"
2179 msgstr ""
2180
2181 # type: =head2
2182 #: ../src/guestfs.pod:1047
2183 msgid "ABI GUARANTEE"
2184 msgstr ""
2185
2186 # type: textblock
2187 #: ../src/guestfs.pod:1049
2188 msgid ""
2189 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2190 "actions as outlined in this section.  Although we will deprecate some "
2191 "actions, for example if they get replaced by newer calls, we will keep the "
2192 "old actions forever.  This allows you the developer to program in confidence "
2193 "against the libguestfs API."
2194 msgstr ""
2195
2196 # type: textblock
2197 #: ../src/guestfs.pod:1055 ../fish/guestfish.pod:861
2198 msgid "@ACTIONS@"
2199 msgstr ""
2200
2201 # type: =head1
2202 #: ../src/guestfs.pod:1057
2203 msgid "STRUCTURES"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1059
2208 msgid "@STRUCTS@"
2209 msgstr ""
2210
2211 # type: =head1
2212 #: ../src/guestfs.pod:1061
2213 msgid "AVAILABILITY"
2214 msgstr ""
2215
2216 # type: =head2
2217 #: ../src/guestfs.pod:1063
2218 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2219 msgstr ""
2220
2221 # type: textblock
2222 #: ../src/guestfs.pod:1065
2223 msgid ""
2224 "Using L</guestfs_available> you can test availability of the following "
2225 "groups of functions.  This test queries the appliance to see if the "
2226 "appliance you are currently using supports the functionality."
2227 msgstr ""
2228
2229 # type: textblock
2230 #: ../src/guestfs.pod:1070
2231 msgid "@AVAILABILITY@"
2232 msgstr ""
2233
2234 # type: =head2
2235 #: ../src/guestfs.pod:1072
2236 msgid "GUESTFISH supported COMMAND"
2237 msgstr ""
2238
2239 # type: textblock
2240 #: ../src/guestfs.pod:1074
2241 msgid ""
2242 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2243 "prints out the available groups and whether they are supported by this build "
2244 "of libguestfs.  Note however that you have to do C<run> first."
2245 msgstr ""
2246
2247 # type: =head2
2248 #: ../src/guestfs.pod:1079
2249 msgid "SINGLE CALLS AT COMPILE TIME"
2250 msgstr ""
2251
2252 # type: textblock
2253 #: ../src/guestfs.pod:1081
2254 msgid ""
2255 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2256 "function, such as:"
2257 msgstr ""
2258
2259 # type: verbatim
2260 #: ../src/guestfs.pod:1084
2261 #, no-wrap
2262 msgid ""
2263 " #define LIBGUESTFS_HAVE_DD 1\n"
2264 "\n"
2265 msgstr ""
2266
2267 # type: textblock
2268 #: ../src/guestfs.pod:1086
2269 msgid "if L</guestfs_dd> is available."
2270 msgstr ""
2271
2272 # type: textblock
2273 #: ../src/guestfs.pod:1088
2274 msgid ""
2275 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2276 "function is available at compile time, we recommended using build tools such "
2277 "as autoconf or cmake.  For example in autotools you could use:"
2278 msgstr ""
2279
2280 # type: verbatim
2281 #: ../src/guestfs.pod:1093
2282 #, no-wrap
2283 msgid ""
2284 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2285 " AC_CHECK_FUNCS([guestfs_dd])\n"
2286 "\n"
2287 msgstr ""
2288
2289 # type: textblock
2290 #: ../src/guestfs.pod:1096
2291 msgid ""
2292 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2293 "in your program."
2294 msgstr ""
2295
2296 # type: =head2
2297 #: ../src/guestfs.pod:1099
2298 msgid "SINGLE CALLS AT RUN TIME"
2299 msgstr ""
2300
2301 # type: textblock
2302 #: ../src/guestfs.pod:1101
2303 msgid ""
2304 "Testing at compile time doesn't guarantee that a function really exists in "
2305 "the library.  The reason is that you might be dynamically linked against a "
2306 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2307 "This situation unfortunately results in a segmentation fault, which is a "
2308 "shortcoming of the C dynamic linking system itself."
2309 msgstr ""
2310
2311 # type: textblock
2312 #: ../src/guestfs.pod:1108
2313 msgid ""
2314 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2315 "in this example program (note that you still need the compile time check as "
2316 "well):"
2317 msgstr ""
2318
2319 # type: verbatim
2320 #: ../src/guestfs.pod:1112
2321 #, no-wrap
2322 msgid ""
2323 " #include <stdio.h>\n"
2324 " #include <stdlib.h>\n"
2325 " #include <unistd.h>\n"
2326 " #include <dlfcn.h>\n"
2327 " #include <guestfs.h>\n"
2328 " \n"
2329 msgstr ""
2330
2331 # type: verbatim
2332 #: ../src/guestfs.pod:1118
2333 #, no-wrap
2334 msgid ""
2335 " main ()\n"
2336 " {\n"
2337 " #ifdef LIBGUESTFS_HAVE_DD\n"
2338 "   void *dl;\n"
2339 "   int has_function;\n"
2340 " \n"
2341 msgstr ""
2342
2343 # type: verbatim
2344 #: ../src/guestfs.pod:1124
2345 #, no-wrap
2346 msgid ""
2347 "   /* Test if the function guestfs_dd is really available. */\n"
2348 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2349 "   if (!dl) {\n"
2350 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2351 "     exit (EXIT_FAILURE);\n"
2352 "   }\n"
2353 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2354 "   dlclose (dl);\n"
2355 " \n"
2356 msgstr ""
2357
2358 # type: verbatim
2359 #: ../src/guestfs.pod:1133
2360 #, no-wrap
2361 msgid ""
2362 "   if (!has_function)\n"
2363 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2364 "   else {\n"
2365 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2366 "     /* Now it's safe to call\n"
2367 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2368 "     */\n"
2369 "   }\n"
2370 " #else\n"
2371 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2372 " #endif\n"
2373 "  }\n"
2374 "\n"
2375 msgstr ""
2376
2377 # type: textblock
2378 #: ../src/guestfs.pod:1146
2379 msgid ""
2380 "You may think the above is an awful lot of hassle, and it is.  There are "
2381 "other ways outside of the C linking system to ensure that this kind of "
2382 "incompatibility never arises, such as using package versioning:"
2383 msgstr ""
2384
2385 # type: verbatim
2386 #: ../src/guestfs.pod:1151
2387 #, no-wrap
2388 msgid ""
2389 " Requires: libguestfs >= 1.0.80\n"
2390 "\n"
2391 msgstr ""
2392
2393 # type: =head1
2394 #: ../src/guestfs.pod:1153
2395 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2396 msgstr ""
2397
2398 # type: textblock
2399 #: ../src/guestfs.pod:1155
2400 msgid ""
2401 "A recent feature of the API is the introduction of calls which take optional "
2402 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2403 "takes variable arguments (ie. C<...>), as in this example:"
2404 msgstr ""
2405
2406 # type: verbatim
2407 #: ../src/guestfs.pod:1160
2408 #, no-wrap
2409 msgid ""
2410 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2411 "\n"
2412 msgstr ""
2413
2414 # type: textblock
2415 #: ../src/guestfs.pod:1162
2416 msgid ""
2417 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2418 "call with no optional arguments specified:"
2419 msgstr ""
2420
2421 # type: verbatim
2422 #: ../src/guestfs.pod:1165
2423 #, no-wrap
2424 msgid ""
2425 " guestfs_add_drive_opts (g, filename, -1);\n"
2426 "\n"
2427 msgstr ""
2428
2429 # type: textblock
2430 #: ../src/guestfs.pod:1167
2431 msgid "With a single optional argument:"
2432 msgstr ""
2433
2434 # type: verbatim
2435 #: ../src/guestfs.pod:1169
2436 #, no-wrap
2437 msgid ""
2438 " guestfs_add_drive_opts (g, filename,\n"
2439 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2440 "                         -1);\n"
2441 "\n"
2442 msgstr ""
2443
2444 # type: textblock
2445 #: ../src/guestfs.pod:1173
2446 msgid "With two:"
2447 msgstr ""
2448
2449 # type: verbatim
2450 #: ../src/guestfs.pod:1175
2451 #, no-wrap
2452 msgid ""
2453 " guestfs_add_drive_opts (g, filename,\n"
2454 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2455 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2456 "                         -1);\n"
2457 "\n"
2458 msgstr ""
2459
2460 # type: textblock
2461 #: ../src/guestfs.pod:1180
2462 msgid ""
2463 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2464 "happen!"
2465 msgstr ""
2466
2467 # type: =head2
2468 #: ../src/guestfs.pod:1183
2469 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2470 msgstr ""
2471
2472 # type: textblock
2473 #: ../src/guestfs.pod:1185
2474 msgid ""
2475 "The second variant has the same name with the suffix C<_va>, which works the "
2476 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2477 "example function, this is declared:"
2478 msgstr ""
2479
2480 # type: verbatim
2481 #: ../src/guestfs.pod:1189
2482 #, no-wrap
2483 msgid ""
2484 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2485 "                                va_list args);\n"
2486 "\n"
2487 msgstr ""
2488
2489 # type: =head2
2490 #: ../src/guestfs.pod:1192
2491 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2492 msgstr ""
2493
2494 # type: textblock
2495 #: ../src/guestfs.pod:1194
2496 msgid ""
2497 "The third variant is useful where you need to construct these calls.  You "
2498 "pass in a structure where you fill in the optional fields.  The structure "
2499 "has a bitmask as the first element which you must set to indicate which "
2500 "fields you have filled in.  For our example function the structure and call "
2501 "are declared:"
2502 msgstr ""
2503
2504 # type: verbatim
2505 #: ../src/guestfs.pod:1200
2506 #, no-wrap
2507 msgid ""
2508 " struct guestfs_add_drive_opts_argv {\n"
2509 "   uint64_t bitmask;\n"
2510 "   int readonly;\n"
2511 "   const char *format;\n"
2512 "   /* ... */\n"
2513 " };\n"
2514 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2515 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2516 "\n"
2517 msgstr ""
2518
2519 # type: textblock
2520 #: ../src/guestfs.pod:1209
2521 msgid "You could call it like this:"
2522 msgstr ""
2523
2524 # type: verbatim
2525 #: ../src/guestfs.pod:1211
2526 #, no-wrap
2527 msgid ""
2528 " struct guestfs_add_drive_opts_argv optargs = {\n"
2529 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2530 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2531 "   .readonly = 1,\n"
2532 "   .format = \"qcow2\"\n"
2533 " };\n"
2534 " \n"
2535 msgstr ""
2536
2537 # type: verbatim
2538 #: ../src/guestfs.pod:1218
2539 #, no-wrap
2540 msgid ""
2541 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2542 "\n"
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1220 ../src/guestfs-actions.pod:11
2547 #: ../src/guestfs-actions.pod:1813 ../fish/guestfish-actions.pod:9
2548 #: ../fish/guestfish-actions.pod:1244
2549 msgid "Notes:"
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1226
2554 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2555 msgstr ""
2556
2557 # type: textblock
2558 #: ../src/guestfs.pod:1231
2559 msgid "You do not need to fill in all fields of the structure."
2560 msgstr ""
2561
2562 # type: textblock
2563 #: ../src/guestfs.pod:1235
2564 msgid ""
2565 "There must be a one-to-one correspondence between fields of the structure "
2566 "that are filled in, and bits set in the bitmask."
2567 msgstr ""
2568
2569 # type: =head2
2570 #: ../src/guestfs.pod:1240
2571 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2572 msgstr ""
2573
2574 # type: textblock
2575 #: ../src/guestfs.pod:1242
2576 msgid ""
2577 "In other languages, optional arguments are expressed in the way that is "
2578 "natural for that language.  We refer you to the language-specific "
2579 "documentation for more details on that."
2580 msgstr ""
2581
2582 # type: textblock
2583 #: ../src/guestfs.pod:1246
2584 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2585 msgstr ""
2586
2587 # type: =end
2588 #: ../src/guestfs.pod:1248 ../src/guestfs.pod:1253
2589 msgid "html"
2590 msgstr ""
2591
2592 # type: textblock
2593 #: ../src/guestfs.pod:1250
2594 msgid ""
2595 "<!-- old anchor for the next section --> <a name="
2596 "\"state_machine_and_low_level_event_api\"/>"
2597 msgstr ""
2598
2599 # type: =head1
2600 #: ../src/guestfs.pod:1255
2601 msgid "ARCHITECTURE"
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1257
2606 msgid ""
2607 "Internally, libguestfs is implemented by running an appliance (a special "
2608 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2609 "process of the main program."
2610 msgstr ""
2611
2612 # type: verbatim
2613 #: ../src/guestfs.pod:1261
2614 #, no-wrap
2615 msgid ""
2616 "  ___________________\n"
2617 " /                   \\\n"
2618 " | main program      |\n"
2619 " |                   |\n"
2620 " |                   |           child process / appliance\n"
2621 " |                   |           __________________________\n"
2622 " |                   |          / qemu                     \\\n"
2623 " +-------------------+   RPC    |      +-----------------+ |\n"
2624 " | libguestfs     <--------------------> guestfsd        | |\n"
2625 " |                   |          |      +-----------------+ |\n"
2626 " \\___________________/          |      | Linux kernel    | |\n"
2627 "                                |      +--^--------------+ |\n"
2628 "                                \\_________|________________/\n"
2629 "                                          |\n"
2630 "                                   _______v______\n"
2631 "                                  /              \\\n"
2632 "                                  | Device or    |\n"
2633 "                                  | disk image   |\n"
2634 "                                  \\______________/\n"
2635 "\n"
2636 msgstr ""
2637
2638 # type: textblock
2639 #: ../src/guestfs.pod:1281
2640 msgid ""
2641 "The library, linked to the main program, creates the child process and hence "
2642 "the appliance in the L</guestfs_launch> function."
2643 msgstr ""
2644
2645 # type: textblock
2646 #: ../src/guestfs.pod:1284
2647 msgid ""
2648 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2649 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2650 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2651 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2652 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2653 "attached to the qemu process which translates device access by the "
2654 "appliance's Linux kernel into accesses to the image."
2655 msgstr ""
2656
2657 # type: textblock
2658 #: ../src/guestfs.pod:1293
2659 msgid ""
2660 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2661 "Although the disk image you are attached to might also be used by some "
2662 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2663 "care if both libguestfs's qemu process and your virtual machine are trying "
2664 "to update the disk image at the same time, since these usually results in "
2665 "massive disk corruption)."
2666 msgstr ""
2667
2668 # type: =head1
2669 #: ../src/guestfs.pod:1300
2670 msgid "STATE MACHINE"
2671 msgstr ""
2672
2673 # type: textblock
2674 #: ../src/guestfs.pod:1302
2675 msgid "libguestfs uses a state machine to model the child process:"
2676 msgstr ""
2677
2678 # type: verbatim
2679 #: ../src/guestfs.pod:1304
2680 #, no-wrap
2681 msgid ""
2682 "                         |\n"
2683 "                    guestfs_create\n"
2684 "                         |\n"
2685 "                         |\n"
2686 "                     ____V_____\n"
2687 "                    /          \\\n"
2688 "                    |  CONFIG  |\n"
2689 "                    \\__________/\n"
2690 "                     ^ ^   ^  \\\n"
2691 "                    /  |    \\  \\ guestfs_launch\n"
2692 "                   /   |    _\\__V______\n"
2693 "                  /    |   /           \\\n"
2694 "                 /     |   | LAUNCHING |\n"
2695 "                /      |   \\___________/\n"
2696 "               /       |       /\n"
2697 "              /        |  guestfs_launch\n"
2698 "             /         |     /\n"
2699 "    ______  /        __|____V\n"
2700 "   /      \\ ------> /        \\\n"
2701 "   | BUSY |         | READY  |\n"
2702 "   \\______/ <------ \\________/\n"
2703 "\n"
2704 msgstr ""
2705
2706 # type: textblock
2707 #: ../src/guestfs.pod:1326
2708 msgid ""
2709 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2710 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2711 "(3) alternating between READY and BUSY as commands are issued to, and "
2712 "carried out by, the child process."
2713 msgstr ""
2714
2715 # type: textblock
2716 #: ../src/guestfs.pod:1331
2717 msgid ""
2718 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2719 "asynchronously at any time (eg. due to some internal error), and that causes "
2720 "the state to transition back to CONFIG."
2721 msgstr ""
2722
2723 # type: textblock
2724 #: ../src/guestfs.pod:1335
2725 msgid ""
2726 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2727 "issued when in the CONFIG state."
2728 msgstr ""
2729
2730 # type: textblock
2731 #: ../src/guestfs.pod:1338
2732 msgid ""
2733 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2734 "L</guestfs_launch> blocks until the child process is READY to accept "
2735 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2736 "moves the state from CONFIG to LAUNCHING while it is running."
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1344
2741 msgid ""
2742 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2743 "state.  These API calls block waiting for the command to be carried out (ie. "
2744 "the state to transition to BUSY and then back to READY).  There are no non-"
2745 "blocking versions, and no way to issue more than one command per handle at "
2746 "the same time."
2747 msgstr ""
2748
2749 # type: textblock
2750 #: ../src/guestfs.pod:1350
2751 msgid ""
2752 "Finally, the child process sends asynchronous messages back to the main "
2753 "program, such as kernel log messages.  You can register a callback to "
2754 "receive these messages."
2755 msgstr ""
2756
2757 # type: =head2
2758 #: ../src/guestfs.pod:1354
2759 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2760 msgstr ""
2761
2762 # type: textblock
2763 #: ../src/guestfs.pod:1356
2764 msgid ""
2765 "The child process generates events in some situations.  Current events "
2766 "include: receiving a log message, the child process exits."
2767 msgstr ""
2768
2769 # type: textblock
2770 #: ../src/guestfs.pod:1359
2771 msgid ""
2772 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2773 "types of events."
2774 msgstr ""
2775
2776 # type: textblock
2777 #: ../src/guestfs.pod:1362
2778 msgid ""
2779 "Only I<one callback of each type> can be registered for each handle.  "
2780 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2781 "that type.  Cancel all callbacks of this type by calling this function with "
2782 "C<cb> set to C<NULL>."
2783 msgstr ""
2784
2785 # type: =head2
2786 #: ../src/guestfs.pod:1367
2787 msgid "guestfs_set_log_message_callback"
2788 msgstr ""
2789
2790 # type: verbatim
2791 #: ../src/guestfs.pod:1369
2792 #, no-wrap
2793 msgid ""
2794 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2795 "                                         char *buf, int len);\n"
2796 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2797 "                                        guestfs_log_message_cb cb,\n"
2798 "                                        void *opaque);\n"
2799 "\n"
2800 msgstr ""
2801
2802 # type: textblock
2803 #: ../src/guestfs.pod:1375
2804 msgid ""
2805 "The callback function C<cb> will be called whenever qemu or the guest writes "
2806 "anything to the console."
2807 msgstr ""
2808
2809 # type: textblock
2810 #: ../src/guestfs.pod:1378
2811 msgid "Use this function to capture kernel messages and similar."
2812 msgstr ""
2813
2814 # type: textblock
2815 #: ../src/guestfs.pod:1380
2816 msgid ""
2817 "Normally there is no log message handler, and log messages are just "
2818 "discarded."
2819 msgstr ""
2820
2821 # type: =head2
2822 #: ../src/guestfs.pod:1383
2823 msgid "guestfs_set_subprocess_quit_callback"
2824 msgstr ""
2825
2826 # type: verbatim
2827 #: ../src/guestfs.pod:1385
2828 #, no-wrap
2829 msgid ""
2830 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2831 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2832 "                                            guestfs_subprocess_quit_cb cb,\n"
2833 "                                            void *opaque);\n"
2834 "\n"
2835 msgstr ""
2836
2837 # type: textblock
2838 #: ../src/guestfs.pod:1390
2839 msgid ""
2840 "The callback function C<cb> will be called when the child process quits, "
2841 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2842 "corresponds to a transition from any state to the CONFIG state)."
2843 msgstr ""
2844
2845 # type: =head2
2846 #: ../src/guestfs.pod:1395
2847 msgid "guestfs_set_launch_done_callback"
2848 msgstr ""
2849
2850 # type: verbatim
2851 #: ../src/guestfs.pod:1397
2852 #, no-wrap
2853 msgid ""
2854 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2855 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2856 "                                        guestfs_launch_done_cb cb,\n"
2857 "                                        void *opaque);\n"
2858 "\n"
2859 msgstr ""
2860
2861 # type: textblock
2862 #: ../src/guestfs.pod:1402
2863 msgid ""
2864 "The callback function C<cb> will be called when the child process becomes "
2865 "ready first time after it has been launched.  (This corresponds to a "
2866 "transition from LAUNCHING to the READY state)."
2867 msgstr ""
2868
2869 # type: =head2
2870 #: ../src/guestfs.pod:1406
2871 msgid "guestfs_set_close_callback"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #: ../src/guestfs.pod:1408
2876 #, no-wrap
2877 msgid ""
2878 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2879 " void guestfs_set_close_callback (guestfs_h *g,\n"
2880 "                                  guestfs_close_cb cb,\n"
2881 "                                  void *opaque);\n"
2882 "\n"
2883 msgstr ""
2884
2885 # type: textblock
2886 #: ../src/guestfs.pod:1413
2887 msgid ""
2888 "The callback function C<cb> will be called while the handle is being closed "
2889 "(synchronously from L</guestfs_close>)."
2890 msgstr ""
2891
2892 # type: textblock
2893 #: ../src/guestfs.pod:1416
2894 msgid ""
2895 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2896 "handles that are open when the program exits.  This means that this callback "
2897 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2898 "problems in higher-level languages (eg. if your HLL interpreter has already "
2899 "been cleaned up by the time this is called, and if your callback then jumps "
2900 "into some HLL function)."
2901 msgstr ""
2902
2903 # type: =head2
2904 #: ../src/guestfs.pod:1424
2905 msgid "guestfs_set_progress_callback"
2906 msgstr ""
2907
2908 # type: verbatim
2909 #: ../src/guestfs.pod:1426
2910 #, no-wrap
2911 msgid ""
2912 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2913 "                                      int proc_nr, int serial,\n"
2914 "                                      uint64_t position, uint64_t total);\n"
2915 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2916 "                                     guestfs_progress_cb cb,\n"
2917 "                                     void *opaque);\n"
2918 "\n"
2919 msgstr ""
2920
2921 # type: textblock
2922 #: ../src/guestfs.pod:1433
2923 msgid ""
2924 "Some long-running operations can generate progress messages.  If this "
2925 "callback is registered, then it will be called each time a progress message "
2926 "is generated (usually two seconds after the operation started, and three "
2927 "times per second thereafter until it completes, although the frequency may "
2928 "change in future versions)."
2929 msgstr ""
2930
2931 # type: textblock
2932 #: ../src/guestfs.pod:1439
2933 msgid ""
2934 "The callback receives two numbers: C<position> and C<total>.  The units of "
2935 "C<total> are not defined, although for some operations C<total> may relate "
2936 "in some way to the amount of data to be transferred (eg. in bytes or "
2937 "megabytes), and C<position> may be the portion which has been transferred."
2938 msgstr ""
2939
2940 # type: textblock
2941 #: ../src/guestfs.pod:1445
2942 msgid "The only defined and stable parts of the API are:"
2943 msgstr ""
2944
2945 # type: textblock
2946 #: ../src/guestfs.pod:1451
2947 msgid ""
2948 "The callback can display to the user some type of progress bar or indicator "
2949 "which shows the ratio of C<position>:C<total>."
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1456
2954 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2955 msgstr ""
2956
2957 # type: textblock
2958 #: ../src/guestfs.pod:1460
2959 msgid ""
2960 "If any progress notification is sent during a call, then a final progress "
2961 "notification is always sent when C<position> = C<total>."
2962 msgstr ""
2963
2964 # type: textblock
2965 #: ../src/guestfs.pod:1463
2966 msgid ""
2967 "This is to simplify caller code, so callers can easily set the progress "
2968 "indicator to \"100%\" at the end of the operation, without requiring special "
2969 "code to detect this case."
2970 msgstr ""
2971
2972 # type: textblock
2973 #: ../src/guestfs.pod:1469
2974 msgid ""
2975 "The callback also receives the procedure number and serial number of the "
2976 "call.  These are only useful for debugging protocol issues, and the callback "
2977 "can normally ignore them.  The callback may want to print these numbers in "
2978 "error messages or debugging messages."
2979 msgstr ""
2980
2981 # type: =head1
2982 #: ../src/guestfs.pod:1474
2983 msgid "PRIVATE DATA AREA"
2984 msgstr ""
2985
2986 # type: textblock
2987 #: ../src/guestfs.pod:1476
2988 msgid ""
2989 "You can attach named pieces of private data to the libguestfs handle, and "
2990 "fetch them by name for the lifetime of the handle.  This is called the "
2991 "private data area and is only available from the C API."
2992 msgstr ""
2993
2994 # type: textblock
2995 #: ../src/guestfs.pod:1480
2996 msgid "To attach a named piece of data, use the following call:"
2997 msgstr ""
2998
2999 # type: verbatim
3000 #: ../src/guestfs.pod:1482
3001 #, no-wrap
3002 msgid ""
3003 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3004 "\n"
3005 msgstr ""
3006
3007 # type: textblock
3008 #: ../src/guestfs.pod:1484
3009 msgid ""
3010 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3011 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3012 "overwritten."
3013 msgstr ""
3014
3015 # type: textblock
3016 #: ../src/guestfs.pod:1488
3017 msgid ""
3018 "You can use any C<key> you want, but names beginning with an underscore "
3019 "character are reserved for internal libguestfs purposes (for implementing "
3020 "language bindings).  It is recommended to prefix the name with some unique "
3021 "string to avoid collisions with other users."
3022 msgstr ""
3023
3024 # type: textblock
3025 #: ../src/guestfs.pod:1493
3026 msgid "To retrieve the pointer, use:"
3027 msgstr ""
3028
3029 # type: verbatim
3030 #: ../src/guestfs.pod:1495
3031 #, no-wrap
3032 msgid ""
3033 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3034 "\n"
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1497
3039 msgid ""
3040 "This function returns C<NULL> if either no data is found associated with "
3041 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3042 "C<NULL>."
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1501
3047 msgid ""
3048 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3049 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3050 "all.  In particular, libguestfs does I<not> try to free the data when the "
3051 "handle is closed.  If the data must be freed, then the caller must either "
3052 "free it before calling L</guestfs_close> or must set up a close callback to "
3053 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3054 "can be registered for a handle)."
3055 msgstr ""
3056
3057 # type: textblock
3058 #: ../src/guestfs.pod:1509
3059 msgid ""
3060 "The private data area is implemented using a hash table, and should be "
3061 "reasonably efficient for moderate numbers of keys."
3062 msgstr ""
3063
3064 # type: =head1
3065 #: ../src/guestfs.pod:1512
3066 msgid "BLOCK DEVICE NAMING"
3067 msgstr ""
3068
3069 # type: textblock
3070 #: ../src/guestfs.pod:1514
3071 msgid ""
3072 "In the kernel there is now quite a profusion of schemata for naming block "
3073 "devices (in this context, by I<block device> I mean a physical or virtual "
3074 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
3075 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
3076 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
3077 "for the old IDE driver (particularly for SATA devices) those devices also "
3078 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
3079 "paravirtualized drivers.  This has created several different naming systems, "
3080 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
3081 msgstr ""
3082
3083 # type: textblock
3084 #: ../src/guestfs.pod:1526
3085 msgid ""
3086 "As discussed above, libguestfs uses a qemu appliance running an embedded "
3087 "Linux kernel to access block devices.  We can run a variety of appliances "
3088 "based on a variety of Linux kernels."
3089 msgstr ""
3090
3091 # type: textblock
3092 #: ../src/guestfs.pod:1530
3093 msgid ""
3094 "This causes a problem for libguestfs because many API calls use device or "
3095 "partition names.  Working scripts and the recipe (example) scripts that we "
3096 "make available over the internet could fail if the naming scheme changes."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1535
3101 msgid ""
3102 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
3103 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
3104 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
3105 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
3106 msgstr ""
3107
3108 # type: textblock
3109 #: ../src/guestfs.pod:1541
3110 msgid ""
3111 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
3112 "L</guestfs_list_partitions> and similar calls return the true names of the "
3113 "devices and partitions as known to the appliance."
3114 msgstr ""
3115
3116 # type: =head2
3117 #: ../src/guestfs.pod:1546
3118 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
3119 msgstr ""
3120
3121 # type: textblock
3122 #: ../src/guestfs.pod:1548
3123 msgid ""
3124 "Usually this translation is transparent.  However in some (very rare)  cases "
3125 "you may need to know the exact algorithm.  Such cases include where you use "
3126 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
3127 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
3128 msgstr ""
3129
3130 # type: textblock
3131 #: ../src/guestfs.pod:1554
3132 msgid ""
3133 "The algorithm is applied only to I<parameters> which are known to be either "
3134 "device or partition names.  Return values from functions such as L</"
3135 "guestfs_list_devices> are never changed."
3136 msgstr ""
3137
3138 # type: textblock
3139 #: ../src/guestfs.pod:1562
3140 msgid "Is the string a parameter which is a device or partition name?"
3141 msgstr ""
3142
3143 # type: textblock
3144 #: ../src/guestfs.pod:1566
3145 msgid "Does the string begin with C</dev/sd>?"
3146 msgstr ""
3147
3148 # type: textblock
3149 #: ../src/guestfs.pod:1570
3150 msgid ""
3151 "Does the named device exist? If so, we use that device.  However if I<not> "
3152 "then we continue with this algorithm."
3153 msgstr ""
3154
3155 # type: textblock
3156 #: ../src/guestfs.pod:1575
3157 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3158 msgstr ""
3159
3160 # type: textblock
3161 #: ../src/guestfs.pod:1577
3162 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3163 msgstr ""
3164
3165 # type: textblock
3166 #: ../src/guestfs.pod:1579
3167 msgid "If that named device exists, use it.  If not, continue."
3168 msgstr ""
3169
3170 # type: textblock
3171 #: ../src/guestfs.pod:1583
3172 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1585
3177 msgid "If that named device exists, use it.  If not, return an error."
3178 msgstr ""
3179
3180 # type: =head2
3181 #: ../src/guestfs.pod:1589
3182 msgid "PORTABILITY CONCERNS"
3183 msgstr ""
3184
3185 # type: textblock
3186 #: ../src/guestfs.pod:1591
3187 msgid ""
3188 "Although the standard naming scheme and automatic translation is useful for "
3189 "simple programs and guestfish scripts, for larger programs it is best not to "
3190 "rely on this mechanism."
3191 msgstr ""
3192
3193 # type: textblock
3194 #: ../src/guestfs.pod:1595
3195 msgid ""
3196 "Where possible for maximum future portability programs using libguestfs "
3197 "should use these future-proof techniques:"
3198 msgstr ""
3199
3200 # type: textblock
3201 #: ../src/guestfs.pod:1602
3202 msgid ""
3203 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3204 "device names, and then use those names directly."
3205 msgstr ""
3206
3207 # type: textblock
3208 #: ../src/guestfs.pod:1605
3209 msgid ""
3210 "Since those device names exist by definition, they will never be translated."
3211 msgstr ""
3212
3213 # type: textblock
3214 #: ../src/guestfs.pod:1610
3215 msgid ""
3216 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3217 "filesystem labels."
3218 msgstr ""
3219
3220 # type: =head1
3221 #: ../src/guestfs.pod:1615
3222 msgid "INTERNALS"
3223 msgstr ""
3224
3225 # type: =head2
3226 #: ../src/guestfs.pod:1617
3227 msgid "COMMUNICATION PROTOCOL"
3228 msgstr ""
3229
3230 # type: textblock
3231 #: ../src/guestfs.pod:1619
3232 msgid ""
3233 "Don't rely on using this protocol directly.  This section documents how it "
3234 "currently works, but it may change at any time."
3235 msgstr ""
3236
3237 # type: textblock
3238 #: ../src/guestfs.pod:1622
3239 msgid ""
3240 "The protocol used to talk between the library and the daemon running inside "
3241 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3242 "1014, RFC 1832, RFC 4506)."
3243 msgstr ""
3244
3245 # type: textblock
3246 #: ../src/guestfs.pod:1626
3247 msgid ""
3248 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3249 "this file is automatically generated)."
3250 msgstr ""
3251
3252 # type: textblock
3253 #: ../src/guestfs.pod:1629
3254 msgid ""
3255 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3256 "and C<FileOut> parameters, which are handled with very simple request/reply "
3257 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3258 "parameters, which use the same request and reply messages, but they may also "
3259 "be followed by files sent using a chunked encoding."
3260 msgstr ""
3261
3262 # type: =head3
3263 #: ../src/guestfs.pod:1636
3264 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1638
3269 msgid "For ordinary functions, the request message is:"
3270 msgstr ""
3271
3272 # type: verbatim
3273 #: ../src/guestfs.pod:1640
3274 #, no-wrap
3275 msgid ""
3276 " total length (header + arguments,\n"
3277 "      but not including the length word itself)\n"
3278 " struct guestfs_message_header (encoded as XDR)\n"
3279 " struct guestfs_<foo>_args (encoded as XDR)\n"
3280 "\n"
3281 msgstr ""
3282
3283 # type: textblock
3284 #: ../src/guestfs.pod:1645
3285 msgid ""
3286 "The total length field allows the daemon to allocate a fixed size buffer "
3287 "into which it slurps the rest of the message.  As a result, the total length "
3288 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3289 "effective size of any request is limited to somewhere under this size."
3290 msgstr ""
3291
3292 # type: textblock
3293 #: ../src/guestfs.pod:1651
3294 msgid ""
3295 "Note also that many functions don't take any arguments, in which case the "
3296 "C<guestfs_I<foo>_args> is completely omitted."
3297 msgstr ""
3298
3299 # type: textblock
3300 #: ../src/guestfs.pod:1654
3301 msgid ""
3302 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3303 "receiver knows what type of args structure to expect, or none at all."
3304 msgstr ""
3305
3306 # type: textblock
3307 #: ../src/guestfs.pod:1658
3308 msgid "The reply message for ordinary functions is:"
3309 msgstr ""
3310
3311 # type: verbatim
3312 #: ../src/guestfs.pod:1660
3313 #, no-wrap
3314 msgid ""
3315 " total length (header + ret,\n"
3316 "      but not including the length word itself)\n"
3317 " struct guestfs_message_header (encoded as XDR)\n"
3318 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3319 "\n"
3320 msgstr ""
3321
3322 # type: textblock
3323 #: ../src/guestfs.pod:1665
3324 msgid ""
3325 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3326 "functions that return no formal return values."
3327 msgstr ""
3328
3329 # type: textblock
3330 #: ../src/guestfs.pod:1668
3331 msgid ""
3332 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3333 msgstr ""
3334
3335 # type: textblock
3336 #: ../src/guestfs.pod:1671
3337 msgid ""
3338 "In the case of an error, a flag is set in the header, and the reply message "
3339 "is slightly changed:"
3340 msgstr ""
3341
3342 # type: verbatim
3343 #: ../src/guestfs.pod:1674
3344 #, no-wrap
3345 msgid ""
3346 " total length (header + error,\n"
3347 "      but not including the length word itself)\n"
3348 " struct guestfs_message_header (encoded as XDR)\n"
3349 " struct guestfs_message_error (encoded as XDR)\n"
3350 "\n"
3351 msgstr ""
3352
3353 # type: textblock
3354 #: ../src/guestfs.pod:1679
3355 msgid ""
3356 "The C<guestfs_message_error> structure contains the error message as a "
3357 "string."
3358 msgstr ""
3359
3360 # type: =head3
3361 #: ../src/guestfs.pod:1682
3362 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3363 msgstr ""
3364
3365 # type: textblock
3366 #: ../src/guestfs.pod:1684
3367 msgid ""
3368 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3369 "The normal request message is sent (see above).  However this is followed by "
3370 "a sequence of file chunks."
3371 msgstr ""
3372
3373 # type: verbatim
3374 #: ../src/guestfs.pod:1688
3375 #, no-wrap
3376 msgid ""
3377 " total length (header + arguments,\n"
3378 "      but not including the length word itself,\n"
3379 "      and not including the chunks)\n"
3380 " struct guestfs_message_header (encoded as XDR)\n"
3381 " struct guestfs_<foo>_args (encoded as XDR)\n"
3382 " sequence of chunks for FileIn param #0\n"
3383 " sequence of chunks for FileIn param #1 etc.\n"
3384 "\n"
3385 msgstr ""
3386
3387 # type: textblock
3388 #: ../src/guestfs.pod:1696
3389 msgid "The \"sequence of chunks\" is:"
3390 msgstr ""
3391
3392 # type: verbatim
3393 #: ../src/guestfs.pod:1698
3394 #, no-wrap
3395 msgid ""
3396 " length of chunk (not including length word itself)\n"
3397 " struct guestfs_chunk (encoded as XDR)\n"
3398 " length of chunk\n"
3399 " struct guestfs_chunk (encoded as XDR)\n"
3400 "   ...\n"
3401 " length of chunk\n"
3402 " struct guestfs_chunk (with data.data_len == 0)\n"
3403 "\n"
3404 msgstr ""
3405
3406 # type: textblock
3407 #: ../src/guestfs.pod:1706
3408 msgid ""
3409 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3410 "is set in the final chunk to indicate either successful completion or early "
3411 "cancellation."
3412 msgstr ""
3413
3414 # type: textblock
3415 #: ../src/guestfs.pod:1710
3416 msgid ""
3417 "At time of writing there are no functions that have more than one FileIn "
3418 "parameter.  However this is (theoretically) supported, by sending the "
3419 "sequence of chunks for each FileIn parameter one after another (from left to "
3420 "right)."
3421 msgstr ""
3422
3423 # type: textblock
3424 #: ../src/guestfs.pod:1715
3425 msgid ""
3426 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3427 "transfer.  The library does this by sending a chunk with a special flag set "
3428 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3429 "RPC, does I<not> send any reply, and goes back to reading the next request."
3430 msgstr ""
3431
3432 # type: textblock
3433 #: ../src/guestfs.pod:1721
3434 msgid ""
3435 "The daemon may also cancel.  It does this by writing a special word "
3436 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3437 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3438 "cancel chunk).  The special word is chosen so that even if cancellation "
3439 "happens right at the end of the transfer (after the library has finished "
3440 "writing and has started listening for the reply), the \"spurious\" cancel "
3441 "flag will not be confused with the reply message."
3442 msgstr ""
3443
3444 # type: textblock
3445 #: ../src/guestfs.pod:1730
3446 msgid ""
3447 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3448 "limit), and also files where the size is not known in advance (eg. from "
3449 "pipes or sockets).  However the chunks are rather small "
3450 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3451 "to keep much in memory."
3452 msgstr ""
3453
3454 # type: =head3
3455 #: ../src/guestfs.pod:1736
3456 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3457 msgstr ""
3458
3459 # type: textblock
3460 #: ../src/guestfs.pod:1738
3461 msgid ""
3462 "The protocol for FileOut parameters is exactly the same as for FileIn "
3463 "parameters, but with the roles of daemon and library reversed."
3464 msgstr ""
3465
3466 # type: verbatim
3467 #: ../src/guestfs.pod:1741
3468 #, no-wrap
3469 msgid ""
3470 " total length (header + ret,\n"
3471 "      but not including the length word itself,\n"
3472 "      and not including the chunks)\n"
3473 " struct guestfs_message_header (encoded as XDR)\n"
3474 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3475 " sequence of chunks for FileOut param #0\n"
3476 " sequence of chunks for FileOut param #1 etc.\n"
3477 "\n"
3478 msgstr ""
3479
3480 # type: =head3
3481 #: ../src/guestfs.pod:1749
3482 msgid "INITIAL MESSAGE"
3483 msgstr ""
3484
3485 # type: textblock
3486 #: ../src/guestfs.pod:1751
3487 msgid ""
3488 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3489 "which indicates that the guest and daemon is alive.  This is what L</"
3490 "guestfs_launch> waits for."
3491 msgstr ""
3492
3493 # type: =head3
3494 #: ../src/guestfs.pod:1755
3495 msgid "PROGRESS NOTIFICATION MESSAGES"
3496 msgstr ""
3497
3498 # type: textblock
3499 #: ../src/guestfs.pod:1757
3500 msgid ""
3501 "The daemon may send progress notification messages at any time.  These are "
3502 "distinguished by the normal length word being replaced by "
3503 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3504 msgstr ""
3505
3506 # type: textblock
3507 #: ../src/guestfs.pod:1761
3508 msgid ""
3509 "The library turns them into progress callbacks (see "
3510 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3511 "discards them if not."
3512 msgstr ""
3513
3514 # type: textblock
3515 #: ../src/guestfs.pod:1765
3516 msgid ""
3517 "The daemon self-limits the frequency of progress messages it sends (see "
3518 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3519 "messages."
3520 msgstr ""
3521
3522 # type: =head1
3523 #: ../src/guestfs.pod:1769
3524 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3525 msgstr ""
3526
3527 # type: textblock
3528 #: ../src/guestfs.pod:1771
3529 msgid ""
3530 "All high-level libguestfs actions are synchronous.  If you want to use "
3531 "libguestfs asynchronously then you must create a thread."
3532 msgstr ""
3533
3534 # type: textblock
3535 #: ../src/guestfs.pod:1774
3536 msgid ""
3537 "Only use the handle from a single thread.  Either use the handle exclusively "
3538 "from one thread, or provide your own mutex so that two threads cannot issue "
3539 "calls on the same handle at the same time."
3540 msgstr ""
3541
3542 # type: textblock
3543 #: ../src/guestfs.pod:1778
3544 msgid ""
3545 "See the graphical program guestfs-browser for one possible architecture for "
3546 "multithreaded programs using libvirt and libguestfs."
3547 msgstr ""
3548
3549 # type: =head1
3550 #: ../src/guestfs.pod:1781
3551 msgid "QEMU WRAPPERS"
3552 msgstr ""
3553
3554 # type: textblock
3555 #: ../src/guestfs.pod:1783
3556 msgid ""
3557 "If you want to compile your own qemu, run qemu from a non-standard location, "
3558 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3559 "around qemu."
3560 msgstr ""
3561
3562 # type: textblock
3563 #: ../src/guestfs.pod:1787
3564 msgid ""
3565 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3566 "last command in the shell script (so that qemu replaces the shell and "
3567 "becomes the direct child of the libguestfs-using program).  If you don't do "
3568 "this, then the qemu process won't be cleaned up correctly."
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1792
3573 msgid ""
3574 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3575 "source:"
3576 msgstr ""
3577
3578 # type: verbatim
3579 #: ../src/guestfs.pod:1795
3580 #, no-wrap
3581 msgid ""
3582 " #!/bin/sh -\n"
3583 " qemudir=/home/rjones/d/qemu\n"
3584 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3585 "\n"
3586 msgstr ""
3587
3588 # type: textblock
3589 #: ../src/guestfs.pod:1799
3590 msgid ""
3591 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3592 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3593 "example:"
3594 msgstr ""
3595
3596 # type: verbatim
3597 #: ../src/guestfs.pod:1803
3598 #, no-wrap
3599 msgid ""
3600 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3601 "\n"
3602 msgstr ""
3603
3604 # type: textblock
3605 #: ../src/guestfs.pod:1805
3606 msgid ""
3607 "Note that libguestfs also calls qemu with the -help and -version options in "
3608 "order to determine features."
3609 msgstr ""
3610
3611 # type: =head1
3612 #: ../src/guestfs.pod:1808
3613 msgid "LIBGUESTFS VERSION NUMBERS"
3614 msgstr ""
3615
3616 # type: textblock
3617 #: ../src/guestfs.pod:1810
3618 msgid ""
3619 "Since April 2010, libguestfs has started to make separate development and "
3620 "stable releases, along with corresponding branches in our git repository.  "
3621 "These separate releases can be identified by version number:"
3622 msgstr ""
3623
3624 # type: verbatim
3625 #: ../src/guestfs.pod:1815
3626 #, no-wrap
3627 msgid ""
3628 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3629 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3630 "       |\n"
3631 "       v\n"
3632 " 1  .  3  .  5\n"
3633 " ^           ^\n"
3634 " |           |\n"
3635 " |           `-------- sub-version\n"
3636 " |\n"
3637 " `------ always '1' because we don't change the ABI\n"
3638 "\n"
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1826
3643 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3644 msgstr ""
3645
3646 # type: textblock
3647 #: ../src/guestfs.pod:1828
3648 msgid ""
3649 "As time passes we cherry pick fixes from the development branch and backport "
3650 "those into the stable branch, the effect being that the stable branch should "
3651 "get more stable and less buggy over time.  So the stable releases are ideal "
3652 "for people who don't need new features but would just like the software to "
3653 "work."
3654 msgstr ""
3655
3656 # type: textblock
3657 #: ../src/guestfs.pod:1834
3658 msgid "Our criteria for backporting changes are:"
3659 msgstr ""
3660
3661 # type: textblock
3662 #: ../src/guestfs.pod:1840
3663 msgid ""
3664 "Documentation changes which don't affect any code are backported unless the "
3665 "documentation refers to a future feature which is not in stable."
3666 msgstr ""
3667
3668 # type: textblock
3669 #: ../src/guestfs.pod:1846
3670 msgid ""
3671 "Bug fixes which are not controversial, fix obvious problems, and have been "
3672 "well tested are backported."
3673 msgstr ""
3674
3675 # type: textblock
3676 #: ../src/guestfs.pod:1851
3677 msgid ""
3678 "Simple rearrangements of code which shouldn't affect how it works get "
3679 "backported.  This is so that the code in the two branches doesn't get too "
3680 "far out of step, allowing us to backport future fixes more easily."
3681 msgstr ""
3682
3683 # type: textblock
3684 #: ../src/guestfs.pod:1857
3685 msgid ""
3686 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3687 "exceptional case: the new feature is required in order to implement an "
3688 "important bug fix."
3689 msgstr ""
3690
3691 # type: textblock
3692 #: ../src/guestfs.pod:1863
3693 msgid ""
3694 "A new stable branch starts when we think the new features in development are "
3695 "substantial and compelling enough over the current stable branch to warrant "
3696 "it.  When that happens we create new stable and development versions 1.N.0 "
3697 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3698 "stable at this point, but by backporting fixes from development, that branch "
3699 "will stabilize over time."
3700 msgstr ""
3701
3702 # type: =head1
3703 #: ../src/guestfs.pod:1871 ../fish/guestfish.pod:868
3704 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3705 #: ../tools/virt-rescue.pl:255
3706 msgid "ENVIRONMENT VARIABLES"
3707 msgstr ""
3708
3709 # type: =item
3710 #: ../src/guestfs.pod:1875 ../fish/guestfish.pod:894
3711 msgid "LIBGUESTFS_APPEND"
3712 msgstr ""
3713
3714 # type: textblock
3715 #: ../src/guestfs.pod:1877 ../fish/guestfish.pod:896
3716 msgid "Pass additional options to the guest kernel."
3717 msgstr ""
3718
3719 # type: =item
3720 #: ../src/guestfs.pod:1879 ../fish/guestfish.pod:898
3721 msgid "LIBGUESTFS_DEBUG"
3722 msgstr ""
3723
3724 # type: textblock
3725 #: ../src/guestfs.pod:1881
3726 msgid ""
3727 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3728 "effect as calling C<guestfs_set_verbose (g, 1)>."
3729 msgstr ""
3730
3731 # type: =item
3732 #: ../src/guestfs.pod:1884 ../fish/guestfish.pod:903
3733 msgid "LIBGUESTFS_MEMSIZE"
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1886 ../fish/guestfish.pod:905
3738 msgid ""
3739 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3740 msgstr ""
3741
3742 # type: verbatim
3743 #: ../src/guestfs.pod:1889 ../fish/guestfish.pod:908
3744 #, no-wrap
3745 msgid ""
3746 " LIBGUESTFS_MEMSIZE=700\n"
3747 "\n"
3748 msgstr ""
3749
3750 # type: =item
3751 #: ../src/guestfs.pod:1891 ../fish/guestfish.pod:910
3752 msgid "LIBGUESTFS_PATH"
3753 msgstr ""
3754
3755 # type: textblock
3756 #: ../src/guestfs.pod:1893
3757 msgid ""
3758 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3759 "the discussion of paths in section PATH above."
3760 msgstr ""
3761
3762 # type: =item
3763 #: ../src/guestfs.pod:1896 ../fish/guestfish.pod:915
3764 msgid "LIBGUESTFS_QEMU"
3765 msgstr ""
3766
3767 # type: textblock
3768 #: ../src/guestfs.pod:1898 ../fish/guestfish.pod:917
3769 msgid ""
3770 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3771 "which was found at compile time by the configure script is used."
3772 msgstr ""
3773
3774 # type: textblock
3775 #: ../src/guestfs.pod:1902
3776 msgid "See also L</QEMU WRAPPERS> above."
3777 msgstr ""
3778
3779 # type: =item
3780 #: ../src/guestfs.pod:1904 ../fish/guestfish.pod:921
3781 msgid "LIBGUESTFS_TRACE"
3782 msgstr ""
3783
3784 # type: textblock
3785 #: ../src/guestfs.pod:1906
3786 msgid ""
3787 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3788 "effect as calling C<guestfs_set_trace (g, 1)>."
3789 msgstr ""
3790
3791 # type: =item
3792 #: ../src/guestfs.pod:1909 ../fish/guestfish.pod:930
3793 msgid "TMPDIR"
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs.pod:1911 ../fish/guestfish.pod:932
3798 msgid "Location of temporary directory, defaults to C</tmp>."
3799 msgstr ""
3800
3801 # type: textblock
3802 #: ../src/guestfs.pod:1913 ../fish/guestfish.pod:934
3803 msgid ""
3804 "If libguestfs was compiled to use the supermin appliance then the real "
3805 "appliance is cached in this directory, shared between all handles belonging "
3806 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3807 "use in case C</tmp> is not large enough."
3808 msgstr ""
3809
3810 # type: =head1
3811 #: ../src/guestfs.pod:1921 ../fish/guestfish.pod:992
3812 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:226
3813 #: ../inspector/virt-inspector.pl:570 ../tools/virt-edit.pl:350
3814 #: ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640
3815 #: ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486
3816 #: ../tools/virt-list-filesystems.pl:186 ../tools/virt-cat.pl:185
3817 #: ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267
3818 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3819 msgid "SEE ALSO"
3820 msgstr ""
3821
3822 # type: textblock
3823 #: ../src/guestfs.pod:1923
3824 msgid ""
3825 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3826 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3827 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3828 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3829 "L<http://libguestfs.org/>."
3830 msgstr ""
3831
3832 # type: textblock
3833 #: ../src/guestfs.pod:1941
3834 msgid ""
3835 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3836 "(8)>, L<disktype(1)>."
3837 msgstr ""
3838
3839 # type: =head1
3840 #: ../src/guestfs.pod:1948 ../tools/virt-win-reg.pl:499
3841 #: ../tools/virt-make-fs.pl:548
3842 msgid "BUGS"
3843 msgstr ""
3844
3845 # type: textblock
3846 #: ../src/guestfs.pod:1950
3847 msgid "To get a list of bugs against libguestfs use this link:"
3848 msgstr ""
3849
3850 # type: textblock
3851 #: ../src/guestfs.pod:1952
3852 msgid ""
3853 "L<https://bugzilla.redhat.com/buglist.cgi?"
3854 "component=libguestfs&product=Virtualization+Tools>"
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs.pod:1954
3859 msgid "To report a new bug against libguestfs use this link:"
3860 msgstr ""
3861
3862 # type: textblock
3863 #: ../src/guestfs.pod:1956
3864 msgid ""
3865 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3866 "component=libguestfs&product=Virtualization+Tools>"
3867 msgstr ""
3868
3869 # type: textblock
3870 #: ../src/guestfs.pod:1958
3871 msgid "When reporting a bug, please check:"
3872 msgstr ""
3873
3874 # type: textblock
3875 #: ../src/guestfs.pod:1964
3876 msgid "That the bug hasn't been reported already."
3877 msgstr ""
3878
3879 # type: textblock
3880 #: ../src/guestfs.pod:1968
3881 msgid "That you are testing a recent version."
3882 msgstr ""
3883
3884 # type: textblock
3885 #: ../src/guestfs.pod:1972
3886 msgid "Describe the bug accurately, and give a way to reproduce it."
3887 msgstr ""
3888
3889 # type: textblock
3890 #: ../src/guestfs.pod:1976
3891 msgid ""
3892 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3893 "bug report."
3894 msgstr ""
3895
3896 # type: =head1
3897 #: ../src/guestfs.pod:1981 ../fish/guestfish.pod:1009
3898 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:237
3899 #: ../inspector/virt-inspector.pl:580
3900 msgid "AUTHORS"
3901 msgstr ""
3902
3903 # type: textblock
3904 #: ../src/guestfs.pod:1983 ../fish/guestfish.pod:1011
3905 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:239
3906 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3907 msgstr ""
3908
3909 # type: =head1
3910 #: ../src/guestfs.pod:1985 ../fish/guestfish.pod:1013
3911 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:241
3912 #: ../inspector/virt-inspector.pl:594 ../tools/virt-edit.pl:366
3913 #: ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653
3914 #: ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512
3915 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-cat.pl:199
3916 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281
3917 #: ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3918 msgid "COPYRIGHT"
3919 msgstr ""
3920
3921 # type: textblock
3922 #: ../src/guestfs.pod:1987 ../fish/guestfish.pod:1015
3923 #: ../fuse/guestmount.pod:243
3924 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3925 msgstr ""
3926
3927 # type: textblock
3928 #: ../src/guestfs.pod:1990
3929 msgid ""
3930 "This library is free software; you can redistribute it and/or modify it "
3931 "under the terms of the GNU Lesser General Public License as published by the "
3932 "Free Software Foundation; either version 2 of the License, or (at your "
3933 "option) any later version."
3934 msgstr ""
3935
3936 # type: textblock
3937 #: ../src/guestfs.pod:1995
3938 msgid ""
3939 "This library is distributed in the hope that it will be useful, but WITHOUT "
3940 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3941 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3942 "for more details."
3943 msgstr ""
3944
3945 # type: textblock
3946 #: ../src/guestfs.pod:2000
3947 msgid ""
3948 "You should have received a copy of the GNU Lesser General Public License "
3949 "along with this library; if not, write to the Free Software Foundation, "
3950 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3951 msgstr ""
3952
3953 # type: =head2
3954 #: ../src/guestfs-actions.pod:1
3955 msgid "guestfs_add_cdrom"
3956 msgstr ""
3957
3958 # type: verbatim
3959 #: ../src/guestfs-actions.pod:3
3960 #, no-wrap
3961 msgid ""
3962 " int\n"
3963 " guestfs_add_cdrom (guestfs_h *g,\n"
3964 "                    const char *filename);\n"
3965 "\n"
3966 msgstr ""
3967
3968 # type: textblock
3969 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
3970 msgid "This function adds a virtual CD-ROM disk image to the guest."
3971 msgstr ""
3972
3973 # type: textblock
3974 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
3975 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3976 msgstr ""
3977
3978 # type: textblock
3979 #: ../src/guestfs-actions.pod:17
3980 msgid ""
3981 "This call checks for the existence of C<filename>.  This stops you from "
3982 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3983 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3984 "instead."
3985 msgstr ""
3986
3987 # type: textblock
3988 #: ../src/guestfs-actions.pod:24
3989 msgid ""
3990 "If you just want to add an ISO file (often you use this as an efficient way "
3991 "to transfer large files into the guest), then you should probably use "
3992 "C<guestfs_add_drive_ro> instead."
3993 msgstr ""
3994
3995 # type: textblock
3996 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:58
3997 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:156
3998 #: ../src/guestfs-actions.pod:170 ../src/guestfs-actions.pod:191
3999 #: ../src/guestfs-actions.pod:211 ../src/guestfs-actions.pod:225
4000 #: ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:360
4001 #: ../src/guestfs-actions.pod:374 ../src/guestfs-actions.pod:419
4002 #: ../src/guestfs-actions.pod:447 ../src/guestfs-actions.pod:465
4003 #: ../src/guestfs-actions.pod:532 ../src/guestfs-actions.pod:565
4004 #: ../src/guestfs-actions.pod:579 ../src/guestfs-actions.pod:594
4005 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:711
4006 #: ../src/guestfs-actions.pod:725 ../src/guestfs-actions.pod:739
4007 #: ../src/guestfs-actions.pod:900 ../src/guestfs-actions.pod:920
4008 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1022
4009 #: ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1059
4010 #: ../src/guestfs-actions.pod:1073 ../src/guestfs-actions.pod:1093
4011 #: ../src/guestfs-actions.pod:1132 ../src/guestfs-actions.pod:1202
4012 #: ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1258
4013 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1401
4014 #: ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1653
4015 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1762
4016 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:2329
4017 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2426
4018 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2959
4019 #: ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:3105
4020 #: ../src/guestfs-actions.pod:3119 ../src/guestfs-actions.pod:3132
4021 #: ../src/guestfs-actions.pod:3146 ../src/guestfs-actions.pod:3161
4022 #: ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3270
4023 #: ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3307
4024 #: ../src/guestfs-actions.pod:3330 ../src/guestfs-actions.pod:3353
4025 #: ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:3404
4026 #: ../src/guestfs-actions.pod:3423 ../src/guestfs-actions.pod:3458
4027 #: ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3506
4028 #: ../src/guestfs-actions.pod:3522 ../src/guestfs-actions.pod:3535
4029 #: ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3567
4030 #: ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3682
4031 #: ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3746
4032 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3782
4033 #: ../src/guestfs-actions.pod:3798 ../src/guestfs-actions.pod:3812
4034 #: ../src/guestfs-actions.pod:3826 ../src/guestfs-actions.pod:3843
4035 #: ../src/guestfs-actions.pod:3858 ../src/guestfs-actions.pod:3878
4036 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:3958
4037 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:3996
4038 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4025
4039 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4053
4040 #: ../src/guestfs-actions.pod:4068 ../src/guestfs-actions.pod:4103
4041 #: ../src/guestfs-actions.pod:4118 ../src/guestfs-actions.pod:4138
4042 #: ../src/guestfs-actions.pod:4152 ../src/guestfs-actions.pod:4169
4043 #: ../src/guestfs-actions.pod:4218 ../src/guestfs-actions.pod:4255
4044 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4297
4045 #: ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4332
4046 #: ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4524
4047 #: ../src/guestfs-actions.pod:4546 ../src/guestfs-actions.pod:4564
4048 #: ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4662
4049 #: ../src/guestfs-actions.pod:4679 ../src/guestfs-actions.pod:4692
4050 #: ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4997
4051 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5030
4052 #: ../src/guestfs-actions.pod:5042 ../src/guestfs-actions.pod:5056
4053 #: ../src/guestfs-actions.pod:5068 ../src/guestfs-actions.pod:5082
4054 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5119
4055 #: ../src/guestfs-actions.pod:5138 ../src/guestfs-actions.pod:5157
4056 #: ../src/guestfs-actions.pod:5175 ../src/guestfs-actions.pod:5198
4057 #: ../src/guestfs-actions.pod:5216 ../src/guestfs-actions.pod:5235
4058 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5275
4059 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5320
4060 #: ../src/guestfs-actions.pod:5344 ../src/guestfs-actions.pod:5363
4061 #: ../src/guestfs-actions.pod:5387 ../src/guestfs-actions.pod:5402
4062 #: ../src/guestfs-actions.pod:5417 ../src/guestfs-actions.pod:5436
4063 #: ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5496
4064 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5630
4065 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5763
4066 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5789
4067 #: ../src/guestfs-actions.pod:5811 ../src/guestfs-actions.pod:5824
4068 #: ../src/guestfs-actions.pod:5837 ../src/guestfs-actions.pod:5850
4069 #: ../src/guestfs-actions.pod:5865 ../src/guestfs-actions.pod:5924
4070 #: ../src/guestfs-actions.pod:5941 ../src/guestfs-actions.pod:5957
4071 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:5990
4072 #: ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6023
4073 #: ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6073
4074 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6127
4075 #: ../src/guestfs-actions.pod:6145 ../src/guestfs-actions.pod:6174
4076 #: ../src/guestfs-actions.pod:6205 ../src/guestfs-actions.pod:6324
4077 #: ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6356
4078 #: ../src/guestfs-actions.pod:6411 ../src/guestfs-actions.pod:6424
4079 #: ../src/guestfs-actions.pod:6470 ../src/guestfs-actions.pod:6503
4080 #: ../src/guestfs-actions.pod:6557 ../src/guestfs-actions.pod:6583
4081 #: ../src/guestfs-actions.pod:6649 ../src/guestfs-actions.pod:6668
4082 #: ../src/guestfs-actions.pod:6697
4083 msgid "This function returns 0 on success or -1 on error."
4084 msgstr ""
4085
4086 # type: textblock
4087 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:172
4088 #: ../src/guestfs-actions.pod:193 ../fish/guestfish-actions.pod:28
4089 #: ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
4090 msgid ""
4091 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4092 "instead."
4093 msgstr ""
4094
4095 # type: textblock
4096 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:175
4097 #: ../src/guestfs-actions.pod:196 ../src/guestfs-actions.pod:1406
4098 #: ../src/guestfs-actions.pod:1892 ../src/guestfs-actions.pod:1913
4099 #: ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:6760
4100 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120
4101 #: ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940
4102 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311
4103 #: ../fish/guestfish-actions.pod:4353 ../fish/guestfish-actions.pod:4450
4104 msgid ""
4105 "Deprecated functions will not be removed from the API, but the fact that "
4106 "they are deprecated indicates that there are problems with correct use of "
4107 "these functions."
4108 msgstr ""
4109
4110 # type: textblock
4111 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:60
4112 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:1864
4113 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2065
4114 #: ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2961
4115 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:5177
4116 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5404
4117 #: ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5992
4118 #: ../src/guestfs-actions.pod:6505
4119 msgid "(Added in 0.3)"
4120 msgstr ""
4121
4122 # type: =head2
4123 #: ../src/guestfs-actions.pod:41
4124 msgid "guestfs_add_drive"
4125 msgstr ""
4126
4127 # type: verbatim
4128 #: ../src/guestfs-actions.pod:43
4129 #, no-wrap
4130 msgid ""
4131 " int\n"
4132 " guestfs_add_drive (guestfs_h *g,\n"
4133 "                    const char *filename);\n"
4134 "\n"
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs-actions.pod:47
4139 msgid ""
4140 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4141 "optional parameters, so the disk is added writable, with the format being "
4142 "detected automatically."
4143 msgstr ""
4144
4145 # type: textblock
4146 #: ../src/guestfs-actions.pod:51
4147 msgid ""
4148 "Automatic detection of the format opens you up to a potential security hole "
4149 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4150 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4151 "you should think about replacing calls to this function with calls to "
4152 "C<guestfs_add_drive_opts>, and specifying the format."
4153 msgstr ""
4154
4155 # type: =head2
4156 #: ../src/guestfs-actions.pod:62
4157 msgid "guestfs_add_drive_opts"
4158 msgstr ""
4159
4160 # type: verbatim
4161 #: ../src/guestfs-actions.pod:64
4162 #, no-wrap
4163 msgid ""
4164 " int\n"
4165 " guestfs_add_drive_opts (guestfs_h *g,\n"
4166 "                         const char *filename,\n"
4167 "                         ...);\n"
4168 "\n"
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../src/guestfs-actions.pod:69
4173 msgid ""
4174 "You may supply a list of optional arguments to this call.  Use zero or more "
4175 "of the following pairs of parameters, and terminate the list with C<-1> on "
4176 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4177 msgstr ""
4178
4179 # type: verbatim
4180 #: ../src/guestfs-actions.pod:74
4181 #, no-wrap
4182 msgid ""
4183 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4184 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4185 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4186 "\n"
4187 msgstr ""
4188
4189 # type: textblock
4190 #: ../src/guestfs-actions.pod:78 ../fish/guestfish-actions.pod:56
4191 msgid ""
4192 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4193 "The first time you call this function, the disk appears as C</dev/sda>, the "
4194 "second time as C</dev/sdb>, and so on."
4195 msgstr ""
4196
4197 # type: textblock
4198 #: ../src/guestfs-actions.pod:83 ../fish/guestfish-actions.pod:61
4199 msgid ""
4200 "You don't necessarily need to be root when using libguestfs.  However you "
4201 "obviously do need sufficient permissions to access the filename for whatever "
4202 "operations you want to perform (ie. read access if you just want to read the "
4203 "image or write access if you want to modify the image)."
4204 msgstr ""
4205
4206 # type: textblock
4207 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:67
4208 msgid "This call checks that C<filename> exists."
4209 msgstr ""
4210
4211 # type: textblock
4212 #: ../src/guestfs-actions.pod:91 ../fish/guestfish-actions.pod:69
4213 msgid "The optional arguments are:"
4214 msgstr ""
4215
4216 # type: =item
4217 #: ../src/guestfs-actions.pod:95 ../fish/guestfish-actions.pod:73
4218 msgid "C<readonly>"
4219 msgstr ""
4220
4221 # type: textblock
4222 #: ../src/guestfs-actions.pod:97 ../fish/guestfish-actions.pod:75
4223 msgid ""
4224 "If true then the image is treated as read-only.  Writes are still allowed, "
4225 "but they are stored in a temporary snapshot overlay which is discarded at "
4226 "the end.  The disk that you add is not modified."
4227 msgstr ""
4228
4229 # type: =item
4230 #: ../src/guestfs-actions.pod:101 ../fish/guestfish-actions.pod:79
4231 msgid "C<format>"
4232 msgstr ""
4233
4234 # type: textblock
4235 #: ../src/guestfs-actions.pod:103
4236 msgid ""
4237 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4238 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4239 "Possible formats include C<raw> and C<qcow2>."
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:107 ../fish/guestfish-actions.pod:85
4244 msgid ""
4245 "Automatic detection of the format opens you up to a potential security hole "
4246 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4247 "RHBZ#642934.  Specifying the format closes this security hole."
4248 msgstr ""
4249
4250 # type: =item
4251 #: ../src/guestfs-actions.pod:112 ../fish/guestfish-actions.pod:90
4252 msgid "C<iface>"
4253 msgstr ""
4254
4255 # type: textblock
4256 #: ../src/guestfs-actions.pod:114
4257 msgid ""
4258 "This rarely-used option lets you emulate the behaviour of the deprecated "
4259 "C<guestfs_add_drive_with_if> call (q.v.)"
4260 msgstr ""
4261
4262 # type: textblock
4263 #: ../src/guestfs-actions.pod:121
4264 msgid "(Added in 1.5.23)"
4265 msgstr ""
4266
4267 # type: =head2
4268 #: ../src/guestfs-actions.pod:123
4269 msgid "guestfs_add_drive_opts_va"
4270 msgstr ""
4271
4272 # type: verbatim
4273 #: ../src/guestfs-actions.pod:125
4274 #, no-wrap
4275 msgid ""
4276 " int\n"
4277 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4278 "                            const char *filename,\n"
4279 "                            va_list args);\n"
4280 "\n"
4281 msgstr ""
4282
4283 # type: textblock
4284 #: ../src/guestfs-actions.pod:130
4285 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4286 msgstr ""
4287
4288 # type: textblock
4289 #: ../src/guestfs-actions.pod:132 ../src/guestfs-actions.pod:143
4290 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4291 msgstr ""
4292
4293 # type: =head2
4294 #: ../src/guestfs-actions.pod:134
4295 msgid "guestfs_add_drive_opts_argv"
4296 msgstr ""
4297
4298 # type: verbatim
4299 #: ../src/guestfs-actions.pod:136
4300 #, no-wrap
4301 msgid ""
4302 " int\n"
4303 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4304 "                              const char *filename,\n"
4305 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4306 "\n"
4307 msgstr ""
4308
4309 # type: textblock
4310 #: ../src/guestfs-actions.pod:141
4311 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4312 msgstr ""
4313
4314 # type: =head2
4315 #: ../src/guestfs-actions.pod:145
4316 msgid "guestfs_add_drive_ro"
4317 msgstr ""
4318
4319 # type: verbatim
4320 #: ../src/guestfs-actions.pod:147
4321 #, no-wrap
4322 msgid ""
4323 " int\n"
4324 " guestfs_add_drive_ro (guestfs_h *g,\n"
4325 "                       const char *filename);\n"
4326 "\n"
4327 msgstr ""
4328
4329 # type: textblock
4330 #: ../src/guestfs-actions.pod:151
4331 msgid ""
4332 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4333 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4334 "disk is added read-only, with the format being detected automatically."
4335 msgstr ""
4336
4337 # type: textblock
4338 #: ../src/guestfs-actions.pod:158
4339 msgid "(Added in 1.0.38)"
4340 msgstr ""
4341
4342 # type: =head2
4343 #: ../src/guestfs-actions.pod:160
4344 msgid "guestfs_add_drive_ro_with_if"
4345 msgstr ""
4346
4347 # type: verbatim
4348 #: ../src/guestfs-actions.pod:162
4349 #, no-wrap
4350 msgid ""
4351 " int\n"
4352 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4353 "                               const char *filename,\n"
4354 "                               const char *iface);\n"
4355 "\n"
4356 msgstr ""
4357
4358 # type: textblock
4359 #: ../src/guestfs-actions.pod:167
4360 msgid ""
4361 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4362 "QEMU interface emulation to use at run time."
4363 msgstr ""
4364
4365 # type: textblock
4366 #: ../src/guestfs-actions.pod:179 ../src/guestfs-actions.pod:200
4367 #: ../src/guestfs-actions.pod:2275
4368 msgid "(Added in 1.0.84)"
4369 msgstr ""
4370
4371 # type: =head2
4372 #: ../src/guestfs-actions.pod:181
4373 msgid "guestfs_add_drive_with_if"
4374 msgstr ""
4375
4376 # type: verbatim
4377 #: ../src/guestfs-actions.pod:183
4378 #, no-wrap
4379 msgid ""
4380 " int\n"
4381 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4382 "                            const char *filename,\n"
4383 "                            const char *iface);\n"
4384 "\n"
4385 msgstr ""
4386
4387 # type: textblock
4388 #: ../src/guestfs-actions.pod:188
4389 msgid ""
4390 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4391 "QEMU interface emulation to use at run time."
4392 msgstr ""
4393
4394 # type: =head2
4395 #: ../src/guestfs-actions.pod:202
4396 msgid "guestfs_aug_clear"
4397 msgstr ""
4398
4399 # type: verbatim
4400 #: ../src/guestfs-actions.pod:204
4401 #, no-wrap
4402 msgid ""
4403 " int\n"
4404 " guestfs_aug_clear (guestfs_h *g,\n"
4405 "                    const char *augpath);\n"
4406 "\n"
4407 msgstr ""
4408
4409 # type: textblock
4410 #: ../src/guestfs-actions.pod:208 ../fish/guestfish-actions.pod:142
4411 msgid ""
4412 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4413 "L<augtool(1)> C<clear> command."
4414 msgstr ""
4415
4416 # type: textblock
4417 #: ../src/guestfs-actions.pod:213 ../src/guestfs-actions.pod:2054
4418 msgid "(Added in 1.3.4)"
4419 msgstr ""
4420
4421 # type: =head2
4422 #: ../src/guestfs-actions.pod:215
4423 msgid "guestfs_aug_close"
4424 msgstr ""
4425
4426 # type: verbatim
4427 #: ../src/guestfs-actions.pod:217
4428 #, no-wrap
4429 msgid ""
4430 " int\n"
4431 " guestfs_aug_close (guestfs_h *g);\n"
4432 "\n"
4433 msgstr ""
4434
4435 # type: textblock
4436 #: ../src/guestfs-actions.pod:220
4437 msgid ""
4438 "Close the current Augeas handle and free up any resources used by it.  After "
4439 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4440 "any other Augeas functions."
4441 msgstr ""
4442
4443 # type: textblock
4444 #: ../src/guestfs-actions.pod:227 ../src/guestfs-actions.pod:252
4445 #: ../src/guestfs-actions.pod:270 ../src/guestfs-actions.pod:284
4446 #: ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:362
4447 #: ../src/guestfs-actions.pod:376 ../src/guestfs-actions.pod:407
4448 #: ../src/guestfs-actions.pod:421 ../src/guestfs-actions.pod:435
4449 #: ../src/guestfs-actions.pod:449 ../src/guestfs-actions.pod:467
4450 #: ../src/guestfs-actions.pod:4854
4451 msgid "(Added in 0.7)"
4452 msgstr ""
4453
4454 # type: =head2
4455 #: ../src/guestfs-actions.pod:229
4456 msgid "guestfs_aug_defnode"
4457 msgstr ""
4458
4459 # type: verbatim
4460 #: ../src/guestfs-actions.pod:231
4461 #, no-wrap
4462 msgid ""
4463 " struct guestfs_int_bool *\n"
4464 " guestfs_aug_defnode (guestfs_h *g,\n"
4465 "                      const char *name,\n"
4466 "                      const char *expr,\n"
4467 "                      const char *val);\n"
4468 "\n"
4469 msgstr ""
4470
4471 # type: textblock
4472 #: ../src/guestfs-actions.pod:237 ../fish/guestfish-actions.pod:158
4473 msgid ""
4474 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4475 msgstr ""
4476
4477 # type: textblock
4478 #: ../src/guestfs-actions.pod:240
4479 msgid ""
4480 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4481 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4482 "containing that single node."
4483 msgstr ""
4484
4485 # type: textblock
4486 #: ../src/guestfs-actions.pod:244 ../fish/guestfish-actions.pod:165
4487 msgid ""
4488 "On success this returns a pair containing the number of nodes in the "
4489 "nodeset, and a boolean flag if a node was created."
4490 msgstr ""
4491
4492 # type: textblock
4493 #: ../src/guestfs-actions.pod:248
4494 msgid ""
4495 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4496 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4497 msgstr ""
4498
4499 # type: =head2
4500 #: ../src/guestfs-actions.pod:254
4501 msgid "guestfs_aug_defvar"
4502 msgstr ""
4503
4504 # type: verbatim
4505 #: ../src/guestfs-actions.pod:256
4506 #, no-wrap
4507 msgid ""
4508 " int\n"
4509 " guestfs_aug_defvar (guestfs_h *g,\n"
4510 "                     const char *name,\n"
4511 "                     const char *expr);\n"
4512 "\n"
4513 msgstr ""
4514
4515 # type: textblock
4516 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:173
4517 msgid ""
4518 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4519 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4520 msgstr ""
4521
4522 # type: textblock
4523 #: ../src/guestfs-actions.pod:265 ../fish/guestfish-actions.pod:177
4524 msgid ""
4525 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4526 "evaluates to something which is not a nodeset."
4527 msgstr ""
4528
4529 # type: textblock
4530 #: ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:433
4531 #: ../src/guestfs-actions.pod:611 ../src/guestfs-actions.pod:642
4532 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:679
4533 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1632
4534 #: ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:1934
4535 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:2029
4536 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2316
4537 #: ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2596
4538 #: ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4369
4539 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:4803
4540 #: ../src/guestfs-actions.pod:6100 ../src/guestfs-actions.pod:6516
4541 #: ../src/guestfs-actions.pod:6529 ../src/guestfs-actions.pod:6542
4542 msgid "On error this function returns -1."
4543 msgstr ""
4544
4545 # type: =head2
4546 #: ../src/guestfs-actions.pod:272
4547 msgid "guestfs_aug_get"
4548 msgstr ""
4549
4550 # type: verbatim
4551 #: ../src/guestfs-actions.pod:274
4552 #, no-wrap
4553 msgid ""
4554 " char *\n"
4555 " guestfs_aug_get (guestfs_h *g,\n"
4556 "                  const char *augpath);\n"
4557 "\n"
4558 msgstr ""
4559
4560 # type: textblock
4561 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:184
4562 msgid ""
4563 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4564 "node, the C<value> is returned."
4565 msgstr ""
4566
4567 # type: textblock
4568 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:781
4569 #: ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:859
4570 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:978
4571 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1147
4572 #: ../src/guestfs-actions.pod:1164 ../src/guestfs-actions.pod:1183
4573 #: ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1503
4574 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1778
4575 #: ../src/guestfs-actions.pod:1795 ../src/guestfs-actions.pod:1886
4576 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2077
4577 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:2448
4578 #: ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2652
4579 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2713
4580 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3442
4581 #: ../src/guestfs-actions.pod:3613 ../src/guestfs-actions.pod:3724
4582 #: ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4581
4583 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4931
4584 #: ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:5543
4585 #: ../src/guestfs-actions.pod:5559 ../src/guestfs-actions.pod:5576
4586 #: ../src/guestfs-actions.pod:5600 ../src/guestfs-actions.pod:6264
4587 #: ../src/guestfs-actions.pod:6283 ../src/guestfs-actions.pod:6301
4588 #: ../src/guestfs-actions.pod:6482 ../src/guestfs-actions.pod:6754
4589 msgid ""
4590 "This function returns a string, or NULL on error.  I<The caller must free "
4591 "the returned string after use>."
4592 msgstr ""
4593
4594 # type: =head2
4595 #: ../src/guestfs-actions.pod:286
4596 msgid "guestfs_aug_init"
4597 msgstr ""
4598
4599 # type: verbatim
4600 #: ../src/guestfs-actions.pod:288
4601 #, no-wrap
4602 msgid ""
4603 " int\n"
4604 " guestfs_aug_init (guestfs_h *g,\n"
4605 "                   const char *root,\n"
4606 "                   int flags);\n"
4607 "\n"
4608 msgstr ""
4609
4610 # type: textblock
4611 #: ../src/guestfs-actions.pod:293 ../fish/guestfish-actions.pod:191
4612 msgid ""
4613 "Create a new Augeas handle for editing configuration files.  If there was "
4614 "any previous Augeas handle associated with this guestfs session, then it is "
4615 "closed."
4616 msgstr ""
4617
4618 # type: textblock
4619 #: ../src/guestfs-actions.pod:297
4620 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4621 msgstr ""
4622
4623 # type: textblock
4624 #: ../src/guestfs-actions.pod:300 ../fish/guestfish-actions.pod:198
4625 msgid ""
4626 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4627 msgstr ""
4628
4629 # type: textblock
4630 #: ../src/guestfs-actions.pod:303 ../fish/guestfish-actions.pod:201
4631 msgid ""
4632 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4633 "logical I<or> of the following integers:"
4634 msgstr ""
4635
4636 # type: =item
4637 #: ../src/guestfs-actions.pod:309 ../fish/guestfish-actions.pod:207
4638 msgid "C<AUG_SAVE_BACKUP> = 1"
4639 msgstr ""
4640
4641 # type: textblock
4642 #: ../src/guestfs-actions.pod:311 ../fish/guestfish-actions.pod:209
4643 msgid "Keep the original file with a C<.augsave> extension."
4644 msgstr ""
4645
4646 # type: =item
4647 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:211
4648 msgid "C<AUG_SAVE_NEWFILE> = 2"
4649 msgstr ""
4650
4651 # type: textblock
4652 #: ../src/guestfs-actions.pod:315 ../fish/guestfish-actions.pod:213
4653 msgid ""
4654 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4655 "original.  Overrides C<AUG_SAVE_BACKUP>."
4656 msgstr ""
4657
4658 # type: =item
4659 #: ../src/guestfs-actions.pod:318 ../fish/guestfish-actions.pod:216
4660 msgid "C<AUG_TYPE_CHECK> = 4"
4661 msgstr ""
4662
4663 # type: textblock
4664 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:218
4665 msgid "Typecheck lenses (can be expensive)."
4666 msgstr ""
4667
4668 # type: =item
4669 #: ../src/guestfs-actions.pod:322 ../fish/guestfish-actions.pod:220
4670 msgid "C<AUG_NO_STDINC> = 8"
4671 msgstr ""
4672
4673 # type: textblock
4674 #: ../src/guestfs-actions.pod:324 ../fish/guestfish-actions.pod:222
4675 msgid "Do not use standard load path for modules."
4676 msgstr ""
4677
4678 # type: =item
4679 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:224
4680 msgid "C<AUG_SAVE_NOOP> = 16"
4681 msgstr ""
4682
4683 # type: textblock
4684 #: ../src/guestfs-actions.pod:328 ../fish/guestfish-actions.pod:226
4685 msgid "Make save a no-op, just record what would have been changed."
4686 msgstr ""
4687
4688 # type: =item
4689 #: ../src/guestfs-actions.pod:330 ../fish/guestfish-actions.pod:228
4690 msgid "C<AUG_NO_LOAD> = 32"
4691 msgstr ""
4692
4693 # type: textblock
4694 #: ../src/guestfs-actions.pod:332
4695 msgid "Do not load the tree in C<guestfs_aug_init>."
4696 msgstr ""
4697
4698 # type: textblock
4699 #: ../src/guestfs-actions.pod:336
4700 msgid "To close the handle, you can call C<guestfs_aug_close>."
4701 msgstr ""
4702
4703 # type: textblock
4704 #: ../src/guestfs-actions.pod:338 ../fish/guestfish-actions.pod:236
4705 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4706 msgstr ""
4707
4708 # type: =head2
4709 #: ../src/guestfs-actions.pod:344
4710 msgid "guestfs_aug_insert"
4711 msgstr ""
4712
4713 # type: verbatim
4714 #: ../src/guestfs-actions.pod:346
4715 #, no-wrap
4716 msgid ""
4717 " int\n"
4718 " guestfs_aug_insert (guestfs_h *g,\n"
4719 "                     const char *augpath,\n"
4720 "                     const char *label,\n"
4721 "                     int before);\n"
4722 "\n"
4723 msgstr ""
4724
4725 # type: textblock
4726 #: ../src/guestfs-actions.pod:352 ../fish/guestfish-actions.pod:242
4727 msgid ""
4728 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4729 "or after C<path> (depending on the boolean flag C<before>)."
4730 msgstr ""
4731
4732 # type: textblock
4733 #: ../src/guestfs-actions.pod:356 ../fish/guestfish-actions.pod:246
4734 msgid ""
4735 "C<path> must match exactly one existing node in the tree, and C<label> must "
4736 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4737 msgstr ""
4738
4739 # type: =head2
4740 #: ../src/guestfs-actions.pod:364
4741 msgid "guestfs_aug_load"
4742 msgstr ""
4743
4744 # type: verbatim
4745 #: ../src/guestfs-actions.pod:366
4746 #, no-wrap
4747 msgid ""
4748 " int\n"
4749 " guestfs_aug_load (guestfs_h *g);\n"
4750 "\n"
4751 msgstr ""
4752
4753 # type: textblock
4754 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:254
4755 msgid "Load files into the tree."
4756 msgstr ""
4757
4758 # type: textblock
4759 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:256
4760 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4761 msgstr ""
4762
4763 # type: =head2
4764 #: ../src/guestfs-actions.pod:378
4765 msgid "guestfs_aug_ls"
4766 msgstr ""
4767
4768 # type: verbatim
4769 #: ../src/guestfs-actions.pod:380
4770 #, no-wrap
4771 msgid ""
4772 " char **\n"
4773 " guestfs_aug_ls (guestfs_h *g,\n"
4774 "                 const char *augpath);\n"
4775 "\n"
4776 msgstr ""
4777
4778 # type: textblock
4779 #: ../src/guestfs-actions.pod:384
4780 msgid ""
4781 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4782 "sorting the resulting nodes into alphabetical order."
4783 msgstr ""
4784
4785 # type: textblock
4786 #: ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:403
4787 #: ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:997
4788 #: ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:1346
4789 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1468
4790 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:2120
4791 #: ../src/guestfs-actions.pod:2136 ../src/guestfs-actions.pod:2155
4792 #: ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2222
4793 #: ../src/guestfs-actions.pod:2293 ../src/guestfs-actions.pod:2342
4794 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2755
4795 #: ../src/guestfs-actions.pod:3011 ../src/guestfs-actions.pod:3073
4796 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3584
4797 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4723
4798 #: ../src/guestfs-actions.pod:4850 ../src/guestfs-actions.pod:4965
4799 #: ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5677
4800 #: ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:5878
4801 #: ../src/guestfs-actions.pod:5902 ../src/guestfs-actions.pod:6374
4802 #: ../src/guestfs-actions.pod:6394 ../src/guestfs-actions.pod:6441
4803 #: ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6626
4804 #: ../src/guestfs-actions.pod:6711 ../src/guestfs-actions.pod:6730
4805 #: ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:6795
4806 msgid ""
4807 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4808 ">), or NULL if there was an error.  I<The caller must free the strings and "
4809 "the array after use>."
4810 msgstr ""
4811
4812 # type: textblock
4813 #: ../src/guestfs-actions.pod:391 ../src/guestfs-actions.pod:922
4814 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1384
4815 #: ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2864
4816 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3475
4817 #: ../src/guestfs-actions.pod:3664 ../src/guestfs-actions.pod:3697
4818 #: ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:4206
4819 #: ../src/guestfs-actions.pod:4664 ../src/guestfs-actions.pod:5044
4820 #: ../src/guestfs-actions.pod:5058 ../src/guestfs-actions.pod:5070
4821 #: ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:6116
4822 #: ../src/guestfs-actions.pod:6129 ../src/guestfs-actions.pod:6358
4823 #: ../src/guestfs-actions.pod:6562 ../src/guestfs-actions.pod:6595
4824 msgid "(Added in 0.8)"
4825 msgstr ""
4826
4827 # type: =head2
4828 #: ../src/guestfs-actions.pod:393
4829 msgid "guestfs_aug_match"
4830 msgstr ""
4831
4832 # type: verbatim
4833 #: ../src/guestfs-actions.pod:395
4834 #, no-wrap
4835 msgid ""
4836 " char **\n"
4837 " guestfs_aug_match (guestfs_h *g,\n"
4838 "                    const char *augpath);\n"
4839 "\n"
4840 msgstr ""
4841
4842 # type: textblock
4843 #: ../src/guestfs-actions.pod:399 ../fish/guestfish-actions.pod:270
4844 msgid ""
4845 "Returns a list of paths which match the path expression C<path>.  The "
4846 "returned paths are sufficiently qualified so that they match exactly one "
4847 "node in the current tree."
4848 msgstr ""
4849
4850 # type: =head2
4851 #: ../src/guestfs-actions.pod:409
4852 msgid "guestfs_aug_mv"
4853 msgstr ""
4854
4855 # type: verbatim
4856 #: ../src/guestfs-actions.pod:411
4857 #, no-wrap
4858 msgid ""
4859 " int\n"
4860 " guestfs_aug_mv (guestfs_h *g,\n"
4861 "                 const char *src,\n"
4862 "                 const char *dest);\n"
4863 "\n"
4864 msgstr ""
4865
4866 # type: textblock
4867 #: ../src/guestfs-actions.pod:416 ../fish/guestfish-actions.pod:278
4868 msgid ""
4869 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4870 "C<dest> is overwritten if it exists."
4871 msgstr ""
4872
4873 # type: =head2
4874 #: ../src/guestfs-actions.pod:423
4875 msgid "guestfs_aug_rm"
4876 msgstr ""
4877
4878 # type: verbatim
4879 #: ../src/guestfs-actions.pod:425
4880 #, no-wrap
4881 msgid ""
4882 " int\n"
4883 " guestfs_aug_rm (guestfs_h *g,\n"
4884 "                 const char *augpath);\n"
4885 "\n"
4886 msgstr ""
4887
4888 # type: textblock
4889 #: ../src/guestfs-actions.pod:429 ../fish/guestfish-actions.pod:285
4890 msgid "Remove C<path> and all of its children."
4891 msgstr ""
4892
4893 # type: textblock
4894 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:287
4895 msgid "On success this returns the number of entries which were removed."
4896 msgstr ""
4897
4898 # type: =head2
4899 #: ../src/guestfs-actions.pod:437
4900 msgid "guestfs_aug_save"
4901 msgstr ""
4902
4903 # type: verbatim
4904 #: ../src/guestfs-actions.pod:439
4905 #, no-wrap
4906 msgid ""
4907 " int\n"
4908 " guestfs_aug_save (guestfs_h *g);\n"
4909 "\n"
4910 msgstr ""
4911
4912 # type: textblock
4913 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:293
4914 msgid "This writes all pending changes to disk."
4915 msgstr ""
4916
4917 # type: textblock
4918 #: ../src/guestfs-actions.pod:444
4919 msgid ""
4920 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4921 "are saved."
4922 msgstr ""
4923
4924 # type: =head2
4925 #: ../src/guestfs-actions.pod:451
4926 msgid "guestfs_aug_set"
4927 msgstr ""
4928
4929 # type: verbatim
4930 #: ../src/guestfs-actions.pod:453
4931 #, no-wrap
4932 msgid ""
4933 " int\n"
4934 " guestfs_aug_set (guestfs_h *g,\n"
4935 "                  const char *augpath,\n"
4936 "                  const char *val);\n"
4937 "\n"
4938 msgstr ""
4939
4940 # type: textblock
4941 #: ../src/guestfs-actions.pod:458 ../fish/guestfish-actions.pod:302
4942 msgid "Set the value associated with C<path> to C<val>."
4943 msgstr ""
4944
4945 # type: textblock
4946 #: ../src/guestfs-actions.pod:460
4947 msgid ""
4948 "In the Augeas API, it is possible to clear a node by setting the value to "
4949 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4950 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4951 msgstr ""
4952
4953 # type: =head2
4954 #: ../src/guestfs-actions.pod:469
4955 msgid "guestfs_available"
4956 msgstr ""
4957
4958 # type: verbatim
4959 #: ../src/guestfs-actions.pod:471
4960 #, no-wrap
4961 msgid ""
4962 " int\n"
4963 " guestfs_available (guestfs_h *g,\n"
4964 "                    char *const *groups);\n"
4965 "\n"
4966 msgstr ""
4967
4968 # type: textblock
4969 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:313
4970 msgid ""
4971 "This command is used to check the availability of some groups of "
4972 "functionality in the appliance, which not all builds of the libguestfs "
4973 "appliance will be able to provide."
4974 msgstr ""
4975
4976 # type: textblock
4977 #: ../src/guestfs-actions.pod:479
4978 msgid ""
4979 "The libguestfs groups, and the functions that those groups correspond to, "
4980 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4981 "runtime by calling C<guestfs_available_all_groups>."
4982 msgstr ""
4983
4984 # type: textblock
4985 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:322
4986 msgid ""
4987 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4988 "\"]> would check for the availability of the Linux inotify functions and "
4989 "Augeas (configuration file editing) functions."
4990 msgstr ""
4991
4992 # type: textblock
4993 #: ../src/guestfs-actions.pod:489 ../fish/guestfish-actions.pod:327
4994 msgid "The command returns no error if I<all> requested groups are available."
4995 msgstr ""
4996
4997 # type: textblock
4998 #: ../src/guestfs-actions.pod:491 ../fish/guestfish-actions.pod:329
4999 msgid ""
5000 "It fails with an error if one or more of the requested groups is unavailable "
5001 "in the appliance."
5002 msgstr ""
5003
5004 # type: textblock
5005 #: ../src/guestfs-actions.pod:494 ../fish/guestfish-actions.pod:332
5006 msgid ""
5007 "If an unknown group name is included in the list of groups then an error is "
5008 "always returned."
5009 msgstr ""
5010
5011 # type: textblock
5012 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:335
5013 msgid "I<Notes:>"
5014 msgstr ""
5015
5016 # type: textblock
5017 #: ../src/guestfs-actions.pod:503
5018 msgid "You must call C<guestfs_launch> before calling this function."
5019 msgstr ""
5020
5021 # type: textblock
5022 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:343
5023 msgid ""
5024 "The reason is because we don't know what groups are supported by the "
5025 "appliance/daemon until it is running and can be queried."
5026 msgstr ""
5027
5028 # type: textblock
5029 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:349
5030 msgid ""
5031 "If a group of functions is available, this does not necessarily mean that "
5032 "they will work.  You still have to check for errors when calling individual "
5033 "API functions even if they are available."
5034 msgstr ""
5035
5036 # type: textblock
5037 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:356
5038 msgid ""
5039 "It is usually the job of distro packagers to build complete functionality "
5040 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5041 "with all requirements satisfied, will support everything."
5042 msgstr ""
5043
5044 # type: textblock
5045 #: ../src/guestfs-actions.pod:525
5046 msgid ""
5047 "This call was added in version C<1.0.80>.  In previous versions of "
5048 "libguestfs all you could do would be to speculatively execute a command to "
5049 "find out if the daemon implemented it.  See also C<guestfs_version>."
5050 msgstr ""
5051
5052 # type: textblock
5053 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:1095
5054 msgid "(Added in 1.0.80)"
5055 msgstr ""
5056
5057 # type: =head2
5058 #: ../src/guestfs-actions.pod:536
5059 msgid "guestfs_available_all_groups"
5060 msgstr ""
5061
5062 # type: verbatim
5063 #: ../src/guestfs-actions.pod:538
5064 #, no-wrap
5065 msgid ""
5066 " char **\n"
5067 " guestfs_available_all_groups (guestfs_h *g);\n"
5068 "\n"
5069 msgstr ""
5070
5071 # type: textblock
5072 #: ../src/guestfs-actions.pod:541
5073 msgid ""
5074 "This command returns a list of all optional groups that this daemon knows "
5075 "about.  Note this returns both supported and unsupported groups.  To find "
5076 "out which ones the daemon can actually support you have to call "
5077 "C<guestfs_available> on each member of the returned list."
5078 msgstr ""
5079
5080 # type: textblock
5081 #: ../src/guestfs-actions.pod:547
5082 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5083 msgstr ""
5084
5085 # type: textblock
5086 #: ../src/guestfs-actions.pod:553
5087 msgid "(Added in 1.3.15)"
5088 msgstr ""
5089
5090 # type: =head2
5091 #: ../src/guestfs-actions.pod:555
5092 msgid "guestfs_base64_in"
5093 msgstr ""
5094
5095 # type: verbatim
5096 #: ../src/guestfs-actions.pod:557
5097 #, no-wrap
5098 msgid ""
5099 " int\n"
5100 " guestfs_base64_in (guestfs_h *g,\n"
5101 "                    const char *base64file,\n"
5102 "                    const char *filename);\n"
5103 "\n"
5104 msgstr ""
5105
5106 # type: textblock
5107 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:386
5108 msgid ""
5109 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5110 msgstr ""
5111
5112 # type: textblock
5113 #: ../src/guestfs-actions.pod:567 ../src/guestfs-actions.pod:581
5114 #: ../src/guestfs-actions.pod:1134
5115 msgid "(Added in 1.3.5)"
5116 msgstr ""
5117
5118 # type: =head2
5119 #: ../src/guestfs-actions.pod:569
5120 msgid "guestfs_base64_out"
5121 msgstr ""
5122
5123 # type: verbatim
5124 #: ../src/guestfs-actions.pod:571
5125 #, no-wrap
5126 msgid ""
5127 " int\n"
5128 " guestfs_base64_out (guestfs_h *g,\n"
5129 "                     const char *filename,\n"
5130 "                     const char *base64file);\n"
5131 "\n"
5132 msgstr ""
5133
5134 # type: textblock
5135 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:395
5136 msgid ""
5137 "This command downloads the contents of C<filename>, writing it out to local "
5138 "file C<base64file> encoded as base64."
5139 msgstr ""
5140
5141 # type: =head2
5142 #: ../src/guestfs-actions.pod:583
5143 msgid "guestfs_blockdev_flushbufs"
5144 msgstr ""
5145
5146 # type: verbatim
5147 #: ../src/guestfs-actions.pod:585
5148 #, no-wrap
5149 msgid ""
5150 " int\n"
5151 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5152 "                             const char *device);\n"
5153 "\n"
5154 msgstr ""
5155
5156 # type: textblock
5157 #: ../src/guestfs-actions.pod:589 ../fish/guestfish-actions.pod:404
5158 msgid ""
5159 "This tells the kernel to flush internal buffers associated with C<device>."
5160 msgstr ""
5161
5162 # type: textblock
5163 #: ../src/guestfs-actions.pod:592 ../src/guestfs-actions.pod:609
5164 #: ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:640
5165 #: ../src/guestfs-actions.pod:658 ../src/guestfs-actions.pod:677
5166 #: ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:709
5167 #: ../src/guestfs-actions.pod:723 ../src/guestfs-actions.pod:737
5168 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418
5169 #: ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437
5170 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462
5171 #: ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481
5172 #: ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
5173 msgid "This uses the L<blockdev(8)> command."
5174 msgstr ""
5175
5176 # type: textblock
5177 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:613
5178 #: ../src/guestfs-actions.pod:628 ../src/guestfs-actions.pod:644
5179 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:681
5180 #: ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:713
5181 #: ../src/guestfs-actions.pod:727 ../src/guestfs-actions.pod:741
5182 msgid "(Added in 0.9.3)"
5183 msgstr ""
5184
5185 # type: =head2
5186 #: ../src/guestfs-actions.pod:598
5187 msgid "guestfs_blockdev_getbsz"
5188 msgstr ""
5189
5190 # type: verbatim
5191 #: ../src/guestfs-actions.pod:600
5192 #, no-wrap
5193 msgid ""
5194 " int\n"
5195 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5196 "                          const char *device);\n"
5197 "\n"
5198 msgstr ""
5199
5200 # type: textblock
5201 #: ../src/guestfs-actions.pod:604 ../fish/guestfish-actions.pod:413
5202 msgid "This returns the block size of a device."
5203 msgstr ""
5204
5205 # type: textblock
5206 #: ../src/guestfs-actions.pod:606 ../src/guestfs-actions.pod:706
5207 #: ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
5208 msgid ""
5209 "(Note this is different from both I<size in blocks> and I<filesystem block "
5210 "size>)."
5211 msgstr ""
5212
5213 # type: =head2
5214 #: ../src/guestfs-actions.pod:615
5215 msgid "guestfs_blockdev_getro"
5216 msgstr ""
5217
5218 # type: verbatim
5219 #: ../src/guestfs-actions.pod:617
5220 #, no-wrap
5221 msgid ""
5222 " int\n"
5223 " guestfs_blockdev_getro (guestfs_h *g,\n"
5224 "                         const char *device);\n"
5225 "\n"
5226 msgstr ""
5227
5228 # type: textblock
5229 #: ../src/guestfs-actions.pod:621 ../fish/guestfish-actions.pod:424
5230 msgid ""
5231 "Returns a boolean indicating if the block device is read-only (true if read-"
5232 "only, false if not)."
5233 msgstr ""
5234
5235 # type: textblock
5236 #: ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:1367
5237 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1862
5238 #: ../src/guestfs-actions.pod:1873 ../src/guestfs-actions.pod:1945
5239 #: ../src/guestfs-actions.pod:2000 ../src/guestfs-actions.pod:2015
5240 #: ../src/guestfs-actions.pod:2040 ../src/guestfs-actions.pod:2063
5241 #: ../src/guestfs-actions.pod:2772 ../src/guestfs-actions.pod:2786
5242 #: ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2815
5243 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2846
5244 #: ../src/guestfs-actions.pod:2862 ../src/guestfs-actions.pod:2876
5245 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:2903
5246 #: ../src/guestfs-actions.pod:2918 ../src/guestfs-actions.pod:2933
5247 #: ../src/guestfs-actions.pod:4351
5248 msgid "This function returns a C truth value on success or -1 on error."
5249 msgstr ""
5250
5251 # type: =head2
5252 #: ../src/guestfs-actions.pod:630
5253 msgid "guestfs_blockdev_getsize64"
5254 msgstr ""
5255
5256 # type: verbatim
5257 #: ../src/guestfs-actions.pod:632
5258 #, no-wrap
5259 msgid ""
5260 " int64_t\n"
5261 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5262 "                             const char *device);\n"
5263 "\n"
5264 msgstr ""
5265
5266 # type: textblock
5267 #: ../src/guestfs-actions.pod:636 ../fish/guestfish-actions.pod:433
5268 msgid "This returns the size of the device in bytes."
5269 msgstr ""
5270
5271 # type: textblock
5272 #: ../src/guestfs-actions.pod:638
5273 msgid "See also C<guestfs_blockdev_getsz>."
5274 msgstr ""
5275
5276 # type: =head2
5277 #: ../src/guestfs-actions.pod:646
5278 msgid "guestfs_blockdev_getss"
5279 msgstr ""
5280
5281 # type: verbatim
5282 #: ../src/guestfs-actions.pod:648
5283 #, no-wrap
5284 msgid ""
5285 " int\n"
5286 " guestfs_blockdev_getss (guestfs_h *g,\n"
5287 "                         const char *device);\n"
5288 "\n"
5289 msgstr ""
5290
5291 # type: textblock
5292 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:443
5293 msgid ""
5294 "This returns the size of sectors on a block device.  Usually 512, but can be "
5295 "larger for modern devices."
5296 msgstr ""
5297
5298 # type: textblock
5299 #: ../src/guestfs-actions.pod:655
5300 msgid ""
5301 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5302 "that)."
5303 msgstr ""
5304
5305 # type: =head2
5306 #: ../src/guestfs-actions.pod:664
5307 msgid "guestfs_blockdev_getsz"
5308 msgstr ""
5309
5310 # type: verbatim
5311 #: ../src/guestfs-actions.pod:666
5312 #, no-wrap
5313 msgid ""
5314 " int64_t\n"
5315 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5316 "                         const char *device);\n"
5317 "\n"
5318 msgstr ""
5319
5320 # type: textblock
5321 #: ../src/guestfs-actions.pod:670 ../fish/guestfish-actions.pod:455
5322 msgid ""
5323 "This returns the size of the device in units of 512-byte sectors (even if "
5324 "the sectorsize isn't 512 bytes ... weird)."
5325 msgstr ""
5326
5327 # type: textblock
5328 #: ../src/guestfs-actions.pod:673
5329 msgid ""
5330 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5331 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5332 msgstr ""
5333
5334 # type: =head2
5335 #: ../src/guestfs-actions.pod:683
5336 msgid "guestfs_blockdev_rereadpt"
5337 msgstr ""
5338
5339 # type: verbatim
5340 #: ../src/guestfs-actions.pod:685
5341 #, no-wrap
5342 msgid ""
5343 " int\n"
5344 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5345 "                            const char *device);\n"
5346 "\n"
5347 msgstr ""
5348
5349 # type: textblock
5350 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:468
5351 msgid "Reread the partition table on C<device>."
5352 msgstr ""
5353
5354 # type: =head2
5355 #: ../src/guestfs-actions.pod:697
5356 msgid "guestfs_blockdev_setbsz"
5357 msgstr ""
5358
5359 # type: verbatim
5360 #: ../src/guestfs-actions.pod:699
5361 #, no-wrap
5362 msgid ""
5363 " int\n"
5364 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5365 "                          const char *device,\n"
5366 "                          int blocksize);\n"
5367 "\n"
5368 msgstr ""
5369
5370 # type: textblock
5371 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:476
5372 msgid "This sets the block size of a device."
5373 msgstr ""
5374
5375 # type: =head2
5376 #: ../src/guestfs-actions.pod:715
5377 msgid "guestfs_blockdev_setro"
5378 msgstr ""
5379
5380 # type: verbatim
5381 #: ../src/guestfs-actions.pod:717
5382 #, no-wrap
5383 msgid ""
5384 " int\n"
5385 " guestfs_blockdev_setro (guestfs_h *g,\n"
5386 "                         const char *device);\n"
5387 "\n"
5388 msgstr ""
5389
5390 # type: textblock
5391 #: ../src/guestfs-actions.pod:721 ../fish/guestfish-actions.pod:487
5392 msgid "Sets the block device named C<device> to read-only."
5393 msgstr ""
5394
5395 # type: =head2
5396 #: ../src/guestfs-actions.pod:729
5397 msgid "guestfs_blockdev_setrw"
5398 msgstr ""
5399
5400 # type: verbatim
5401 #: ../src/guestfs-actions.pod:731
5402 #, no-wrap
5403 msgid ""
5404 " int\n"
5405 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5406 "                         const char *device);\n"
5407 "\n"
5408 msgstr ""
5409
5410 # type: textblock
5411 #: ../src/guestfs-actions.pod:735 ../fish/guestfish-actions.pod:495
5412 msgid "Sets the block device named C<device> to read-write."
5413 msgstr ""
5414
5415 # type: =head2
5416 #: ../src/guestfs-actions.pod:743
5417 msgid "guestfs_case_sensitive_path"
5418 msgstr ""
5419
5420 # type: verbatim
5421 #: ../src/guestfs-actions.pod:745
5422 #, no-wrap
5423 msgid ""
5424 " char *\n"
5425 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5426 "                              const char *path);\n"
5427 "\n"
5428 msgstr ""
5429
5430 # type: textblock
5431 #: ../src/guestfs-actions.pod:749 ../fish/guestfish-actions.pod:503
5432 msgid ""
5433 "This can be used to resolve case insensitive paths on a filesystem which is "
5434 "case sensitive.  The use case is to resolve paths which you have read from "
5435 "Windows configuration files or the Windows Registry, to the true path."
5436 msgstr ""
5437
5438 # type: textblock
5439 #: ../src/guestfs-actions.pod:754 ../fish/guestfish-actions.pod:508
5440 msgid ""
5441 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5442 "(and probably others), which is that although the underlying filesystem is "
5443 "case-insensitive, the driver exports the filesystem to Linux as case-"
5444 "sensitive."
5445 msgstr ""
5446
5447 # type: textblock
5448 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:513
5449 msgid ""
5450 "One consequence of this is that special directories such as C<c:\\windows> "
5451 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5452 "precise details of how they were created.  In Windows itself this would not "
5453 "be a problem."
5454 msgstr ""
5455
5456 # type: textblock
5457 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:519
5458 msgid ""
5459 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5460 "#posixfilenames1>"
5461 msgstr ""
5462
5463 # type: textblock
5464 #: ../src/guestfs-actions.pod:768 ../fish/guestfish-actions.pod:522
5465 msgid ""
5466 "This function resolves the true case of each element in the path and returns "
5467 "the case-sensitive path."
5468 msgstr ""
5469
5470 # type: textblock
5471 #: ../src/guestfs-actions.pod:771
5472 msgid ""
5473 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5474 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5475 "how the directories were originally created under Windows)."
5476 msgstr ""
5477
5478 # type: textblock
5479 #: ../src/guestfs-actions.pod:776 ../fish/guestfish-actions.pod:530
5480 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5481 msgstr ""
5482
5483 # type: textblock
5484 #: ../src/guestfs-actions.pod:779
5485 msgid "See also C<guestfs_realpath>."
5486 msgstr ""
5487
5488 # type: textblock
5489 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:6286
5490 msgid "(Added in 1.0.75)"
5491 msgstr ""
5492
5493 # type: =head2
5494 #: ../src/guestfs-actions.pod:786
5495 msgid "guestfs_cat"
5496 msgstr ""
5497
5498 # type: verbatim
5499 #: ../src/guestfs-actions.pod:788
5500 #, no-wrap
5501 msgid ""
5502 " char *\n"
5503 " guestfs_cat (guestfs_h *g,\n"
5504 "              const char *path);\n"
5505 "\n"
5506 msgstr ""
5507
5508 # type: textblock
5509 #: ../src/guestfs-actions.pod:792 ../src/guestfs-actions.pod:4840
5510 #: ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3197
5511 msgid "Return the contents of the file named C<path>."
5512 msgstr ""
5513
5514 # type: textblock
5515 #: ../src/guestfs-actions.pod:794
5516 msgid ""
5517 "Note that this function cannot correctly handle binary files (specifically, "
5518 "files containing C<\\0> character which is treated as end of string).  For "
5519 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5520 "functions which have a more complex interface."
5521 msgstr ""
5522
5523 # type: textblock
5524 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:981
5525 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1331
5526 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1453
5527 #: ../src/guestfs-actions.pod:1472 ../src/guestfs-actions.pod:1721
5528 #: ../src/guestfs-actions.pod:2140 ../src/guestfs-actions.pod:2159
5529 #: ../src/guestfs-actions.pod:2202 ../src/guestfs-actions.pod:2226
5530 #: ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2272
5531 #: ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4647
5532 #: ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:4805
5533 #: ../src/guestfs-actions.pod:4829 ../src/guestfs-actions.pod:5681
5534 #: ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5882
5535 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6559
5536 #: ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:6611
5537 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6715
5538 #: ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:6780
5539 #: ../src/guestfs-actions.pod:6799 ../fish/guestfish-actions.pod:546
5540 #: ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693
5541 #: ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904
5542 #: ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981
5543 #: ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451
5544 #: ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489
5545 #: ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514
5546 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3067
5547 #: ../fish/guestfish-actions.pod:3082 ../fish/guestfish-actions.pod:3158
5548 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3190
5549 #: ../fish/guestfish-actions.pod:3773 ../fish/guestfish-actions.pod:3819
5550 #: ../fish/guestfish-actions.pod:3904 ../fish/guestfish-actions.pod:3919
5551 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4347
5552 #: ../fish/guestfish-actions.pod:4364 ../fish/guestfish-actions.pod:4374
5553 #: ../fish/guestfish-actions.pod:4422 ../fish/guestfish-actions.pod:4432
5554 #: ../fish/guestfish-actions.pod:4461 ../fish/guestfish-actions.pod:4471
5555 msgid ""
5556 "Because of the message protocol, there is a transfer limit of somewhere "
5557 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5558 msgstr ""
5559
5560 # type: textblock
5561 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:3015
5562 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3094
5563 #: ../src/guestfs-actions.pod:3182 ../src/guestfs-actions.pod:3588
5564 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:4727
5565 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:6445
5566 #: ../src/guestfs-actions.pod:6460
5567 msgid "(Added in 0.4)"
5568 msgstr ""
5569
5570 # type: =head2
5571 #: ../src/guestfs-actions.pod:807
5572 msgid "guestfs_checksum"
5573 msgstr ""
5574
5575 # type: verbatim
5576 #: ../src/guestfs-actions.pod:809
5577 #, no-wrap
5578 msgid ""
5579 " char *\n"
5580 " guestfs_checksum (guestfs_h *g,\n"
5581 "                   const char *csumtype,\n"
5582 "                   const char *path);\n"
5583 "\n"
5584 msgstr ""
5585
5586 # type: textblock
5587 #: ../src/guestfs-actions.pod:814 ../fish/guestfish-actions.pod:553
5588 msgid ""
5589 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5590 msgstr ""
5591
5592 # type: textblock
5593 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:556
5594 msgid ""
5595 "The type of checksum to compute is given by the C<csumtype> parameter which "
5596 "must have one of the following values:"
5597 msgstr ""
5598
5599 # type: =item
5600 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:561
5601 msgid "C<crc>"
5602 msgstr ""
5603
5604 # type: textblock
5605 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:563
5606 msgid ""
5607 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5608 "C<cksum> command."
5609 msgstr ""
5610
5611 # type: =item
5612 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:566
5613 msgid "C<md5>"
5614 msgstr ""
5615
5616 # type: textblock
5617 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:568
5618 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5619 msgstr ""
5620
5621 # type: =item
5622 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:570
5623 msgid "C<sha1>"
5624 msgstr ""
5625
5626 # type: textblock
5627 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:572
5628 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5629 msgstr ""
5630
5631 # type: =item
5632 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:574
5633 msgid "C<sha224>"
5634 msgstr ""
5635
5636 # type: textblock
5637 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:576
5638 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5639 msgstr ""
5640
5641 # type: =item
5642 #: ../src/guestfs-actions.pod:839 ../fish/guestfish-actions.pod:578
5643 msgid "C<sha256>"
5644 msgstr ""
5645
5646 # type: textblock
5647 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:580
5648 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5649 msgstr ""
5650
5651 # type: =item
5652 #: ../src/guestfs-actions.pod:843 ../fish/guestfish-actions.pod:582
5653 msgid "C<sha384>"
5654 msgstr ""
5655
5656 # type: textblock
5657 #: ../src/guestfs-actions.pod:845 ../fish/guestfish-actions.pod:584
5658 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5659 msgstr ""
5660
5661 # type: =item
5662 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:586
5663 msgid "C<sha512>"
5664 msgstr ""
5665
5666 # type: textblock
5667 #: ../src/guestfs-actions.pod:849 ../fish/guestfish-actions.pod:588
5668 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5669 msgstr ""
5670
5671 # type: textblock
5672 #: ../src/guestfs-actions.pod:853 ../fish/guestfish-actions.pod:592
5673 msgid "The checksum is returned as a printable string."
5674 msgstr ""
5675
5676 # type: textblock
5677 #: ../src/guestfs-actions.pod:855
5678 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5679 msgstr ""
5680
5681 # type: textblock
5682 #: ../src/guestfs-actions.pod:857
5683 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5684 msgstr ""
5685
5686 # type: textblock
5687 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:1209
5688 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2788
5689 #: ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2878
5690 #: ../src/guestfs-actions.pod:2905 ../src/guestfs-actions.pod:6147
5691 msgid "(Added in 1.0.2)"
5692 msgstr ""
5693
5694 # type: =head2
5695 #: ../src/guestfs-actions.pod:864
5696 msgid "guestfs_checksum_device"
5697 msgstr ""
5698
5699 # type: verbatim
5700 #: ../src/guestfs-actions.pod:866
5701 #, no-wrap
5702 msgid ""
5703 " char *\n"
5704 " guestfs_checksum_device (guestfs_h *g,\n"
5705 "                          const char *csumtype,\n"
5706 "                          const char *device);\n"
5707 "\n"
5708 msgstr ""
5709
5710 # type: textblock
5711 #: ../src/guestfs-actions.pod:871
5712 msgid ""
5713 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5714 "device named C<device>.  For the types of checksums supported see the "
5715 "C<guestfs_checksum> command."
5716 msgstr ""
5717
5718 # type: textblock
5719 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:4257
5720 #: ../src/guestfs-actions.pod:4316 ../src/guestfs-actions.pod:4353
5721 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4548
5722 #: ../src/guestfs-actions.pod:6061 ../src/guestfs-actions.pod:6075
5723 #: ../src/guestfs-actions.pod:6472
5724 msgid "(Added in 1.3.2)"
5725 msgstr ""
5726
5727 # type: =head2
5728 #: ../src/guestfs-actions.pod:880
5729 msgid "guestfs_checksums_out"
5730 msgstr ""
5731
5732 # type: verbatim
5733 #: ../src/guestfs-actions.pod:882
5734 #, no-wrap
5735 msgid ""
5736 " int\n"
5737 " guestfs_checksums_out (guestfs_h *g,\n"
5738 "                        const char *csumtype,\n"
5739 "                        const char *directory,\n"
5740 "                        const char *sumsfile);\n"
5741 "\n"
5742 msgstr ""
5743
5744 # type: textblock
5745 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:610
5746 msgid ""
5747 "This command computes the checksums of all regular files in C<directory> and "
5748 "then emits a list of those checksums to the local output file C<sumsfile>."
5749 msgstr ""
5750
5751 # type: textblock
5752 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:614
5753 msgid ""
5754 "This can be used for verifying the integrity of a virtual machine.  However "
5755 "to be properly secure you should pay attention to the output of the checksum "
5756 "command (it uses the ones from GNU coreutils).  In particular when the "
5757 "filename is not printable, coreutils uses a special backslash syntax.  For "
5758 "more information, see the GNU coreutils info file."
5759 msgstr ""
5760
5761 # type: textblock
5762 #: ../src/guestfs-actions.pod:902
5763 msgid "(Added in 1.3.7)"
5764 msgstr ""
5765
5766 # type: =head2
5767 #: ../src/guestfs-actions.pod:904
5768 msgid "guestfs_chmod"
5769 msgstr ""
5770
5771 # type: verbatim
5772 #: ../src/guestfs-actions.pod:906
5773 #, no-wrap
5774 msgid ""
5775 " int\n"
5776 " guestfs_chmod (guestfs_h *g,\n"
5777 "                int mode,\n"
5778 "                const char *path);\n"
5779 "\n"
5780 msgstr ""
5781
5782 # type: textblock
5783 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:628
5784 msgid ""
5785 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5786 "supported."
5787 msgstr ""
5788
5789 # type: textblock
5790 #: ../src/guestfs-actions.pod:914 ../fish/guestfish-actions.pod:631
5791 msgid ""
5792 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5793 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5794 "C<700>."
5795 msgstr ""
5796
5797 # type: textblock
5798 #: ../src/guestfs-actions.pod:918 ../src/guestfs-actions.pod:3841
5799 #: ../src/guestfs-actions.pod:3956 ../src/guestfs-actions.pod:3975
5800 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:635
5801 #: ../fish/guestfish-actions.pod:2557 ../fish/guestfish-actions.pod:2642
5802 #: ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2662
5803 msgid "The mode actually set is affected by the umask."
5804 msgstr ""
5805
5806 # type: =head2
5807 #: ../src/guestfs-actions.pod:924
5808 msgid "guestfs_chown"
5809 msgstr ""
5810
5811 # type: verbatim
5812 #: ../src/guestfs-actions.pod:926
5813 #, no-wrap
5814 msgid ""
5815 " int\n"
5816 " guestfs_chown (guestfs_h *g,\n"
5817 "                int owner,\n"
5818 "                int group,\n"
5819 "                const char *path);\n"
5820 "\n"
5821 msgstr ""
5822
5823 # type: textblock
5824 #: ../src/guestfs-actions.pod:932 ../fish/guestfish-actions.pod:641
5825 msgid "Change the file owner to C<owner> and group to C<group>."
5826 msgstr ""
5827
5828 # type: textblock
5829 #: ../src/guestfs-actions.pod:934 ../src/guestfs-actions.pod:2975
5830 #: ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2035
5831 msgid ""
5832 "Only numeric uid and gid are supported.  If you want to use names, you will "
5833 "need to locate and parse the password file yourself (Augeas support makes "
5834 "this relatively easy)."
5835 msgstr ""
5836
5837 # type: =head2
5838 #: ../src/guestfs-actions.pod:942
5839 msgid "guestfs_command"
5840 msgstr ""
5841
5842 # type: verbatim
5843 #: ../src/guestfs-actions.pod:944
5844 #, no-wrap
5845 msgid ""
5846 " char *\n"
5847 " guestfs_command (guestfs_h *g,\n"
5848 "                  char *const *arguments);\n"
5849 "\n"
5850 msgstr ""
5851
5852 # type: textblock
5853 #: ../src/guestfs-actions.pod:948 ../fish/guestfish-actions.pod:651
5854 msgid ""
5855 "This call runs a command from the guest filesystem.  The filesystem must be "
5856 "mounted, and must contain a compatible operating system (ie. something "
5857 "Linux, with the same or compatible processor architecture)."
5858 msgstr ""
5859
5860 # type: textblock
5861 #: ../src/guestfs-actions.pod:953
5862 msgid ""
5863 "The single parameter is an argv-style list of arguments.  The first element "
5864 "is the name of the program to run.  Subsequent elements are parameters.  The "
5865 "list must be non-empty (ie. must contain a program name).  Note that the "
5866 "command runs directly, and is I<not> invoked via the shell (see "
5867 "C<guestfs_sh>)."
5868 msgstr ""
5869
5870 # type: textblock
5871 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:663
5872 msgid "The return value is anything printed to I<stdout> by the command."
5873 msgstr ""
5874
5875 # type: textblock
5876 #: ../src/guestfs-actions.pod:963 ../fish/guestfish-actions.pod:666
5877 msgid ""
5878 "If the command returns a non-zero exit status, then this function returns an "
5879 "error message.  The error message string is the content of I<stderr> from "
5880 "the command."
5881 msgstr ""
5882
5883 # type: textblock
5884 #: ../src/guestfs-actions.pod:967 ../fish/guestfish-actions.pod:670
5885 msgid ""
5886 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5887 "bin>.  If you require a program from another location, you should provide "
5888 "the full path in the first parameter."
5889 msgstr ""
5890
5891 # type: textblock
5892 #: ../src/guestfs-actions.pod:972 ../fish/guestfish-actions.pod:675
5893 msgid ""
5894 "Shared libraries and data files required by the program must be available on "
5895 "filesystems which are mounted in the correct places.  It is the caller's "
5896 "responsibility to ensure all filesystems that are needed are mounted at the "
5897 "right locations."
5898 msgstr ""
5899
5900 # type: textblock
5901 #: ../src/guestfs-actions.pod:984 ../src/guestfs-actions.pod:1004
5902 #: ../src/guestfs-actions.pod:1506
5903 msgid "(Added in 0.9.1)"
5904 msgstr ""
5905
5906 # type: =head2
5907 #: ../src/guestfs-actions.pod:986
5908 msgid "guestfs_command_lines"
5909 msgstr ""
5910
5911 # type: verbatim
5912 #: ../src/guestfs-actions.pod:988
5913 #, no-wrap
5914 msgid ""
5915 " char **\n"
5916 " guestfs_command_lines (guestfs_h *g,\n"
5917 "                        char *const *arguments);\n"
5918 "\n"
5919 msgstr ""
5920
5921 # type: textblock
5922 #: ../src/guestfs-actions.pod:992
5923 msgid ""
5924 "This is the same as C<guestfs_command>, but splits the result into a list of "
5925 "lines."
5926 msgstr ""
5927
5928 # type: textblock
5929 #: ../src/guestfs-actions.pod:995
5930 msgid "See also: C<guestfs_sh_lines>"
5931 msgstr ""
5932
5933 # type: =head2
5934 #: ../src/guestfs-actions.pod:1006
5935 msgid "guestfs_config"
5936 msgstr ""
5937
5938 # type: verbatim
5939 #: ../src/guestfs-actions.pod:1008
5940 #, no-wrap
5941 msgid ""
5942 " int\n"
5943 " guestfs_config (guestfs_h *g,\n"
5944 "                 const char *qemuparam,\n"
5945 "                 const char *qemuvalue);\n"
5946 "\n"
5947 msgstr ""
5948
5949 # type: textblock
5950 #: ../src/guestfs-actions.pod:1013 ../fish/guestfish-actions.pod:700
5951 msgid ""
5952 "This can be used to add arbitrary qemu command line parameters of the form "
5953 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5954 "setting some parameters which would interfere with parameters that we use."
5955 msgstr ""
5956
5957 # type: textblock
5958 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:705
5959 msgid "The first character of C<param> string must be a C<-> (dash)."
5960 msgstr ""
5961
5962 # type: textblock
5963 #: ../src/guestfs-actions.pod:1020 ../fish/guestfish-actions.pod:707
5964 msgid "C<value> can be NULL."
5965 msgstr ""
5966
5967 # type: =head2
5968 #: ../src/guestfs-actions.pod:1026
5969 msgid "guestfs_copy_size"
5970 msgstr ""
5971
5972 # type: verbatim
5973 #: ../src/guestfs-actions.pod:1028
5974 #, no-wrap
5975 msgid ""
5976 " int\n"
5977 " guestfs_copy_size (guestfs_h *g,\n"
5978 "                    const char *src,\n"
5979 "                    const char *dest,\n"
5980 "                    int64_t size);\n"
5981 "\n"
5982 msgstr ""
5983
5984 # type: textblock
5985 #: ../src/guestfs-actions.pod:1034 ../fish/guestfish-actions.pod:713
5986 msgid ""
5987 "This command copies exactly C<size> bytes from one source device or file "
5988 "C<src> to another destination device or file C<dest>."
5989 msgstr ""
5990
5991 # type: textblock
5992 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:716
5993 msgid ""
5994 "Note this will fail if the source is too short or if the destination is not "
5995 "large enough."
5996 msgstr ""
5997
5998 # type: textblock
5999 #: ../src/guestfs-actions.pod:1042 ../src/guestfs-actions.pod:1204
6000 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:1655
6001 #: ../src/guestfs-actions.pod:1677 ../src/guestfs-actions.pod:6651
6002 #: ../src/guestfs-actions.pod:6670
6003 msgid ""
6004 "This long-running command can generate progress notification messages so "
6005 "that the caller can display a progress bar or indicator.  To receive these "
6006 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6007 "guestfs_set_progress_callback>."
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:1047 ../src/guestfs-actions.pod:3616
6012 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:6378
6013 #: ../src/guestfs-actions.pod:6398 ../src/guestfs-actions.pod:6485
6014 msgid "(Added in 1.0.87)"
6015 msgstr ""
6016
6017 # type: =head2
6018 #: ../src/guestfs-actions.pod:1049
6019 msgid "guestfs_cp"
6020 msgstr ""
6021
6022 # type: verbatim
6023 #: ../src/guestfs-actions.pod:1051
6024 #, no-wrap
6025 msgid ""
6026 " int\n"
6027 " guestfs_cp (guestfs_h *g,\n"
6028 "             const char *src,\n"
6029 "             const char *dest);\n"
6030 "\n"
6031 msgstr ""
6032
6033 # type: textblock
6034 #: ../src/guestfs-actions.pod:1056 ../fish/guestfish-actions.pod:723
6035 msgid ""
6036 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6037 "destination filename or destination directory."
6038 msgstr ""
6039
6040 # type: textblock
6041 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1075
6042 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1260
6043 #: ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:4220
6044 #: ../src/guestfs-actions.pod:4598
6045 msgid "(Added in 1.0.18)"
6046 msgstr ""
6047
6048 # type: =head2
6049 #: ../src/guestfs-actions.pod:1063
6050 msgid "guestfs_cp_a"
6051 msgstr ""
6052
6053 # type: verbatim
6054 #: ../src/guestfs-actions.pod:1065
6055 #, no-wrap
6056 msgid ""
6057 " int\n"
6058 " guestfs_cp_a (guestfs_h *g,\n"
6059 "               const char *src,\n"
6060 "               const char *dest);\n"
6061 "\n"
6062 msgstr ""
6063
6064 # type: textblock
6065 #: ../src/guestfs-actions.pod:1070 ../fish/guestfish-actions.pod:730
6066 msgid ""
6067 "This copies a file or directory from C<src> to C<dest> recursively using the "
6068 "C<cp -a> command."
6069 msgstr ""
6070
6071 # type: =head2
6072 #: ../src/guestfs-actions.pod:1077
6073 msgid "guestfs_dd"
6074 msgstr ""
6075
6076 # type: verbatim
6077 #: ../src/guestfs-actions.pod:1079
6078 #, no-wrap
6079 msgid ""
6080 " int\n"
6081 " guestfs_dd (guestfs_h *g,\n"
6082 "             const char *src,\n"
6083 "             const char *dest);\n"
6084 "\n"
6085 msgstr ""
6086
6087 # type: textblock
6088 #: ../src/guestfs-actions.pod:1084 ../fish/guestfish-actions.pod:737
6089 msgid ""
6090 "This command copies from one source device or file C<src> to another "
6091 "destination device or file C<dest>.  Normally you would use this to copy to "
6092 "or from a device or partition, for example to duplicate a filesystem."
6093 msgstr ""
6094
6095 # type: textblock
6096 #: ../src/guestfs-actions.pod:1089
6097 msgid ""
6098 "If the destination is a device, it must be as large or larger than the "
6099 "source file or device, otherwise the copy will fail.  This command cannot do "
6100 "partial copies (see C<guestfs_copy_size>)."
6101 msgstr ""
6102
6103 # type: =head2
6104 #: ../src/guestfs-actions.pod:1097
6105 msgid "guestfs_debug"
6106 msgstr ""
6107
6108 # type: verbatim
6109 #: ../src/guestfs-actions.pod:1099
6110 #, no-wrap
6111 msgid ""
6112 " char *\n"
6113 " guestfs_debug (guestfs_h *g,\n"
6114 "                const char *subcmd,\n"
6115 "                char *const *extraargs);\n"
6116 "\n"
6117 msgstr ""
6118
6119 # type: textblock
6120 #: ../src/guestfs-actions.pod:1104
6121 msgid ""
6122 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
6123 "guestfs daemon) that runs inside the qemu subprocess."
6124 msgstr ""
6125
6126 # type: textblock
6127 #: ../src/guestfs-actions.pod:1108 ../fish/guestfish-actions.pod:754
6128 msgid ""
6129 "There is no comprehensive help for this command.  You have to look at the "
6130 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
6131 msgstr ""
6132
6133 # type: textblock
6134 #: ../src/guestfs-actions.pod:1115
6135 msgid "(Added in 1.0.11)"
6136 msgstr ""
6137
6138 # type: =head2
6139 #: ../src/guestfs-actions.pod:1117
6140 msgid "guestfs_debug_upload"
6141 msgstr ""
6142
6143 # type: verbatim
6144 #: ../src/guestfs-actions.pod:1119
6145 #, no-wrap
6146 msgid ""
6147 " int\n"
6148 " guestfs_debug_upload (guestfs_h *g,\n"
6149 "                       const char *filename,\n"
6150 "                       const char *tmpname,\n"
6151 "                       int mode);\n"
6152 "\n"
6153 msgstr ""
6154
6155 # type: textblock
6156 #: ../src/guestfs-actions.pod:1125
6157 msgid ""
6158 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
6159 "appliance."
6160 msgstr ""
6161
6162 # type: textblock
6163 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:765
6164 msgid ""
6165 "There is no comprehensive help for this command.  You have to look at the "
6166 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
6167 msgstr ""
6168
6169 # type: =head2
6170 #: ../src/guestfs-actions.pod:1136
6171 msgid "guestfs_df"
6172 msgstr ""
6173
6174 # type: verbatim
6175 #: ../src/guestfs-actions.pod:1138
6176 #, no-wrap
6177 msgid ""
6178 " char *\n"
6179 " guestfs_df (guestfs_h *g);\n"
6180 "\n"
6181 msgstr ""
6182
6183 # type: textblock
6184 #: ../src/guestfs-actions.pod:1141 ../fish/guestfish-actions.pod:775
6185 msgid "This command runs the C<df> command to report disk space used."
6186 msgstr ""
6187
6188 # type: textblock
6189 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1160
6190 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
6191 msgid ""
6192 "This command is mostly useful for interactive sessions.  It is I<not> "
6193 "intended that you try to parse the output string.  Use C<statvfs> from "
6194 "programs."
6195 msgstr ""
6196
6197 # type: textblock
6198 #: ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1167
6199 #: ../src/guestfs-actions.pod:1280 ../src/guestfs-actions.pod:2205
6200 #: ../src/guestfs-actions.pod:2229 ../src/guestfs-actions.pod:2297
6201 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:4120
6202 #: ../src/guestfs-actions.pod:5885 ../src/guestfs-actions.pod:5909
6203 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6531
6204 #: ../src/guestfs-actions.pod:6544
6205 msgid "(Added in 1.0.54)"
6206 msgstr ""
6207
6208 # type: =head2
6209 #: ../src/guestfs-actions.pod:1152
6210 msgid "guestfs_df_h"
6211 msgstr ""
6212
6213 # type: verbatim
6214 #: ../src/guestfs-actions.pod:1154
6215 #, no-wrap
6216 msgid ""
6217 " char *\n"
6218 " guestfs_df_h (guestfs_h *g);\n"
6219 "\n"
6220 msgstr ""
6221
6222 # type: textblock
6223 #: ../src/guestfs-actions.pod:1157 ../fish/guestfish-actions.pod:785
6224 msgid ""
6225 "This command runs the C<df -h> command to report disk space used in human-"
6226 "readable format."
6227 msgstr ""
6228
6229 # type: =head2
6230 #: ../src/guestfs-actions.pod:1169
6231 msgid "guestfs_dmesg"
6232 msgstr ""
6233
6234 # type: verbatim
6235 #: ../src/guestfs-actions.pod:1171
6236 #, no-wrap
6237 msgid ""
6238 " char *\n"
6239 " guestfs_dmesg (guestfs_h *g);\n"
6240 "\n"
6241 msgstr ""
6242
6243 # type: textblock
6244 #: ../src/guestfs-actions.pod:1174 ../fish/guestfish-actions.pod:796
6245 msgid ""
6246 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6247 "This is sometimes useful for extended debugging of problems."
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1178
6252 msgid ""
6253 "Another way to get the same information is to enable verbose messages with "
6254 "C<guestfs_set_verbose> or by setting the environment variable "
6255 "C<LIBGUESTFS_DEBUG=1> before running the program."
6256 msgstr ""
6257
6258 # type: =head2
6259 #: ../src/guestfs-actions.pod:1188
6260 msgid "guestfs_download"
6261 msgstr ""
6262
6263 # type: verbatim
6264 #: ../src/guestfs-actions.pod:1190
6265 #, no-wrap
6266 msgid ""
6267 " int\n"
6268 " guestfs_download (guestfs_h *g,\n"
6269 "                   const char *remotefilename,\n"
6270 "                   const char *filename);\n"
6271 "\n"
6272 msgstr ""
6273
6274 # type: textblock
6275 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1220
6276 #: ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
6277 msgid ""
6278 "Download file C<remotefilename> and save it as C<filename> on the local "
6279 "machine."
6280 msgstr ""
6281
6282 # type: textblock
6283 #: ../src/guestfs-actions.pod:1198 ../src/guestfs-actions.pod:6141
6284 #: ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4077
6285 msgid "C<filename> can also be a named pipe."
6286 msgstr ""
6287
6288 # type: textblock
6289 #: ../src/guestfs-actions.pod:1200
6290 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6291 msgstr ""
6292
6293 # type: =head2
6294 #: ../src/guestfs-actions.pod:1211
6295 msgid "guestfs_download_offset"
6296 msgstr ""
6297
6298 # type: verbatim
6299 #: ../src/guestfs-actions.pod:1213
6300 #, no-wrap
6301 msgid ""
6302 " int\n"
6303 " guestfs_download_offset (guestfs_h *g,\n"
6304 "                          const char *remotefilename,\n"
6305 "                          const char *filename,\n"
6306 "                          int64_t offset,\n"
6307 "                          int64_t size);\n"
6308 "\n"
6309 msgstr ""
6310
6311 # type: textblock
6312 #: ../src/guestfs-actions.pod:1223 ../fish/guestfish-actions.pod:825
6313 msgid ""
6314 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6315 "region must be within the file or device)."
6316 msgstr ""
6317
6318 # type: textblock
6319 #: ../src/guestfs-actions.pod:1226
6320 msgid ""
6321 "Note that there is no limit on the amount of data that can be downloaded "
6322 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6323 "full amount unless an error occurs."
6324 msgstr ""
6325
6326 # type: textblock
6327 #: ../src/guestfs-actions.pod:1231
6328 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6329 msgstr ""
6330
6331 # type: textblock
6332 #: ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:6176
6333 msgid "(Added in 1.5.17)"
6334 msgstr ""
6335
6336 # type: =head2
6337 #: ../src/guestfs-actions.pod:1242
6338 msgid "guestfs_drop_caches"
6339 msgstr ""
6340
6341 # type: verbatim
6342 #: ../src/guestfs-actions.pod:1244
6343 #, no-wrap
6344 msgid ""
6345 " int\n"
6346 " guestfs_drop_caches (guestfs_h *g,\n"
6347 "                      int whattodrop);\n"
6348 "\n"
6349 msgstr ""
6350
6351 # type: textblock
6352 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:841
6353 msgid ""
6354 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6355 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6356 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6357 msgstr ""
6358
6359 # type: textblock
6360 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:846
6361 msgid "Setting C<whattodrop> to 3 should drop everything."
6362 msgstr ""
6363
6364 # type: textblock
6365 #: ../src/guestfs-actions.pod:1255 ../fish/guestfish-actions.pod:848
6366 msgid ""
6367 "This automatically calls L<sync(2)> before the operation, so that the "
6368 "maximum guest memory is freed."
6369 msgstr ""
6370
6371 # type: =head2
6372 #: ../src/guestfs-actions.pod:1262
6373 msgid "guestfs_du"
6374 msgstr ""
6375
6376 # type: verbatim
6377 #: ../src/guestfs-actions.pod:1264
6378 #, no-wrap
6379 msgid ""
6380 " int64_t\n"
6381 " guestfs_du (guestfs_h *g,\n"
6382 "             const char *path);\n"
6383 "\n"
6384 msgstr ""
6385
6386 # type: textblock
6387 #: ../src/guestfs-actions.pod:1268 ../fish/guestfish-actions.pod:855
6388 msgid ""
6389 "This command runs the C<du -s> command to estimate file space usage for "
6390 "C<path>."
6391 msgstr ""
6392
6393 # type: textblock
6394 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:858
6395 msgid ""
6396 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6397 "estimate includes the contents of the directory and all subdirectories "
6398 "(recursively)."
6399 msgstr ""
6400
6401 # type: textblock
6402 #: ../src/guestfs-actions.pod:1275 ../fish/guestfish-actions.pod:862
6403 msgid ""
6404 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6405 msgstr ""
6406
6407 # type: =head2
6408 #: ../src/guestfs-actions.pod:1282
6409 msgid "guestfs_e2fsck_f"
6410 msgstr ""
6411
6412 # type: verbatim
6413 #: ../src/guestfs-actions.pod:1284
6414 #, no-wrap
6415 msgid ""
6416 " int\n"
6417 " guestfs_e2fsck_f (guestfs_h *g,\n"
6418 "                   const char *device);\n"
6419 "\n"
6420 msgstr ""
6421
6422 # type: textblock
6423 #: ../src/guestfs-actions.pod:1288 ../fish/guestfish-actions.pod:869
6424 msgid ""
6425 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6426 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6427 "clean (C<-f>)."
6428 msgstr ""
6429
6430 # type: textblock
6431 #: ../src/guestfs-actions.pod:1292
6432 msgid ""
6433 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6434 "Normally you should use C<guestfs_fsck>."
6435 msgstr ""
6436
6437 # type: textblock
6438 #: ../src/guestfs-actions.pod:1297
6439 msgid "(Added in 1.0.29)"
6440 msgstr ""
6441
6442 # type: =head2
6443 #: ../src/guestfs-actions.pod:1299
6444 msgid "guestfs_echo_daemon"
6445 msgstr ""
6446
6447 # type: verbatim
6448 #: ../src/guestfs-actions.pod:1301
6449 #, no-wrap
6450 msgid ""
6451 " char *\n"
6452 " guestfs_echo_daemon (guestfs_h *g,\n"
6453 "                      char *const *words);\n"
6454 "\n"
6455 msgstr ""
6456
6457 # type: textblock
6458 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:880
6459 msgid ""
6460 "This command concatenates the list of C<words> passed with single spaces "
6461 "between them and returns the resulting string."
6462 msgstr ""
6463
6464 # type: textblock
6465 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:883
6466 msgid "You can use this command to test the connection through to the daemon."
6467 msgstr ""
6468
6469 # type: textblock
6470 #: ../src/guestfs-actions.pod:1310
6471 msgid "See also C<guestfs_ping_daemon>."
6472 msgstr ""
6473
6474 # type: textblock
6475 #: ../src/guestfs-actions.pod:1315 ../src/guestfs-actions.pod:2042
6476 #: ../src/guestfs-actions.pod:5389
6477 msgid "(Added in 1.0.69)"
6478 msgstr ""
6479
6480 # type: =head2
6481 #: ../src/guestfs-actions.pod:1317
6482 msgid "guestfs_egrep"
6483 msgstr ""
6484
6485 # type: verbatim
6486 #: ../src/guestfs-actions.pod:1319
6487 #, no-wrap
6488 msgid ""
6489 " char **\n"
6490 " guestfs_egrep (guestfs_h *g,\n"
6491 "                const char *regex,\n"
6492 "                const char *path);\n"
6493 "\n"
6494 msgstr ""
6495
6496 # type: textblock
6497 #: ../src/guestfs-actions.pod:1324 ../fish/guestfish-actions.pod:891
6498 msgid ""
6499 "This calls the external C<egrep> program and returns the matching lines."
6500 msgstr ""
6501
6502 # type: textblock
6503 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:1353
6504 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1456
6505 #: ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:2143
6506 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2318
6507 #: ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:2346
6508 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2415
6509 #: ../src/guestfs-actions.pod:2428 ../src/guestfs-actions.pod:3107
6510 #: ../src/guestfs-actions.pod:3121 ../src/guestfs-actions.pod:3134
6511 #: ../src/guestfs-actions.pod:3148 ../src/guestfs-actions.pod:4055
6512 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4983
6513 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5765
6514 #: ../src/guestfs-actions.pod:5778 ../src/guestfs-actions.pod:5791
6515 #: ../src/guestfs-actions.pod:5813 ../src/guestfs-actions.pod:5826
6516 #: ../src/guestfs-actions.pod:5839 ../src/guestfs-actions.pod:5852
6517 #: ../src/guestfs-actions.pod:6614 ../src/guestfs-actions.pod:6633
6518 #: ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:6737
6519 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6802
6520 msgid "(Added in 1.0.66)"
6521 msgstr ""
6522
6523 # type: =head2
6524 #: ../src/guestfs-actions.pod:1336
6525 msgid "guestfs_egrepi"
6526 msgstr ""
6527
6528 # type: verbatim
6529 #: ../src/guestfs-actions.pod:1338
6530 #, no-wrap
6531 msgid ""
6532 " char **\n"
6533 " guestfs_egrepi (guestfs_h *g,\n"
6534 "                 const char *regex,\n"
6535 "                 const char *path);\n"
6536 "\n"
6537 msgstr ""
6538
6539 # type: textblock
6540 #: ../src/guestfs-actions.pod:1343 ../fish/guestfish-actions.pod:901
6541 msgid ""
6542 "This calls the external C<egrep -i> program and returns the matching lines."
6543 msgstr ""
6544
6545 # type: =head2
6546 #: ../src/guestfs-actions.pod:1355
6547 msgid "guestfs_equal"
6548 msgstr ""
6549
6550 # type: verbatim
6551 #: ../src/guestfs-actions.pod:1357
6552 #, no-wrap
6553 msgid ""
6554 " int\n"
6555 " guestfs_equal (guestfs_h *g,\n"
6556 "                const char *file1,\n"
6557 "                const char *file2);\n"
6558 "\n"
6559 msgstr ""
6560
6561 # type: textblock
6562 #: ../src/guestfs-actions.pod:1362 ../fish/guestfish-actions.pod:911
6563 msgid ""
6564 "This compares the two files C<file1> and C<file2> and returns true if their "
6565 "content is exactly equal, or false otherwise."
6566 msgstr ""
6567
6568 # type: textblock
6569 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:914
6570 msgid "The external L<cmp(1)> program is used for the comparison."
6571 msgstr ""
6572
6573 # type: =head2
6574 #: ../src/guestfs-actions.pod:1371
6575 msgid "guestfs_exists"
6576 msgstr ""
6577
6578 # type: verbatim
6579 #: ../src/guestfs-actions.pod:1373
6580 #, no-wrap
6581 msgid ""
6582 " int\n"
6583 " guestfs_exists (guestfs_h *g,\n"
6584 "                 const char *path);\n"
6585 "\n"
6586 msgstr ""
6587
6588 # type: textblock
6589 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:920
6590 msgid ""
6591 "This returns C<true> if and only if there is a file, directory (or anything) "
6592 "with the given C<path> name."
6593 msgstr ""
6594
6595 # type: textblock
6596 #: ../src/guestfs-actions.pod:1380
6597 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6598 msgstr ""
6599
6600 # type: =head2
6601 #: ../src/guestfs-actions.pod:1386
6602 msgid "guestfs_fallocate"
6603 msgstr ""
6604
6605 # type: verbatim
6606 #: ../src/guestfs-actions.pod:1388
6607 #, no-wrap
6608 msgid ""
6609 " int\n"
6610 " guestfs_fallocate (guestfs_h *g,\n"
6611 "                    const char *path,\n"
6612 "                    int len);\n"
6613 "\n"
6614 msgstr ""
6615
6616 # type: textblock
6617 #: ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1419
6618 #: ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6619 msgid ""
6620 "This command preallocates a file (containing zero bytes) named C<path> of "
6621 "size C<len> bytes.  If the file exists already, it is overwritten."
6622 msgstr ""
6623
6624 # type: textblock
6625 #: ../src/guestfs-actions.pod:1397 ../fish/guestfish-actions.pod:933
6626 msgid ""
6627 "Do not confuse this with the guestfish-specific C<alloc> command which "
6628 "allocates a file in the host and attaches it as a device."
6629 msgstr ""
6630
6631 # type: textblock
6632 #: ../src/guestfs-actions.pod:1403 ../fish/guestfish-actions.pod:937
6633 msgid ""
6634 "This function is deprecated.  In new code, use the C<fallocate64> call "
6635 "instead."
6636 msgstr ""
6637
6638 # type: =head2
6639 #: ../src/guestfs-actions.pod:1412
6640 msgid "guestfs_fallocate64"
6641 msgstr ""
6642
6643 # type: verbatim
6644 #: ../src/guestfs-actions.pod:1414
6645 #, no-wrap
6646 msgid ""
6647 " int\n"
6648 " guestfs_fallocate64 (guestfs_h *g,\n"
6649 "                      const char *path,\n"
6650 "                      int64_t len);\n"
6651 "\n"
6652 msgstr ""
6653
6654 # type: textblock
6655 #: ../src/guestfs-actions.pod:1423
6656 msgid ""
6657 "Note that this call allocates disk blocks for the file.  To create a sparse "
6658 "file use C<guestfs_truncate_size> instead."
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1426
6663 msgid ""
6664 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6665 "oversight it only allowed 30 bit lengths to be specified, effectively "
6666 "limiting the maximum size of files created through that call to 1GB."
6667 msgstr ""
6668
6669 # type: textblock
6670 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:960
6671 msgid ""
6672 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6673 "commands which create a file in the host and attach it as a device."
6674 msgstr ""
6675
6676 # type: textblock
6677 #: ../src/guestfs-actions.pod:1437
6678 msgid "(Added in 1.3.17)"
6679 msgstr ""
6680
6681 # type: =head2
6682 #: ../src/guestfs-actions.pod:1439
6683 msgid "guestfs_fgrep"
6684 msgstr ""
6685
6686 # type: verbatim
6687 #: ../src/guestfs-actions.pod:1441
6688 #, no-wrap
6689 msgid ""
6690 " char **\n"
6691 " guestfs_fgrep (guestfs_h *g,\n"
6692 "                const char *pattern,\n"
6693 "                const char *path);\n"
6694 "\n"
6695 msgstr ""
6696
6697 # type: textblock
6698 #: ../src/guestfs-actions.pod:1446 ../fish/guestfish-actions.pod:968
6699 msgid ""
6700 "This calls the external C<fgrep> program and returns the matching lines."
6701 msgstr ""
6702
6703 # type: =head2
6704 #: ../src/guestfs-actions.pod:1458
6705 msgid "guestfs_fgrepi"
6706 msgstr ""
6707
6708 # type: verbatim
6709 #: ../src/guestfs-actions.pod:1460
6710 #, no-wrap
6711 msgid ""
6712 " char **\n"
6713 " guestfs_fgrepi (guestfs_h *g,\n"
6714 "                 const char *pattern,\n"
6715 "                 const char *path);\n"
6716 "\n"
6717 msgstr ""
6718
6719 # type: textblock
6720 #: ../src/guestfs-actions.pod:1465 ../fish/guestfish-actions.pod:978
6721 msgid ""
6722 "This calls the external C<fgrep -i> program and returns the matching lines."
6723 msgstr ""
6724
6725 # type: =head2
6726 #: ../src/guestfs-actions.pod:1477
6727 msgid "guestfs_file"
6728 msgstr ""
6729
6730 # type: verbatim
6731 #: ../src/guestfs-actions.pod:1479
6732 #, no-wrap
6733 msgid ""
6734 " char *\n"
6735 " guestfs_file (guestfs_h *g,\n"
6736 "               const char *path);\n"
6737 "\n"
6738 msgstr ""
6739
6740 # type: textblock
6741 #: ../src/guestfs-actions.pod:1483 ../fish/guestfish-actions.pod:988
6742 msgid ""
6743 "This call uses the standard L<file(1)> command to determine the type or "
6744 "contents of the file."
6745 msgstr ""
6746
6747 # type: textblock
6748 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:991
6749 msgid ""
6750 "This call will also transparently look inside various types of compressed "
6751 "file."
6752 msgstr ""
6753
6754 # type: textblock
6755 #: ../src/guestfs-actions.pod:1489 ../fish/guestfish-actions.pod:994
6756 msgid ""
6757 "The exact command which runs is C<file -zb path>.  Note in particular that "
6758 "the filename is not prepended to the output (the C<-b> option)."
6759 msgstr ""
6760
6761 # type: textblock
6762 #: ../src/guestfs-actions.pod:1493
6763 msgid ""
6764 "This command can also be used on C</dev/> devices (and partitions, LV "
6765 "names).  You can for example use this to determine if a device contains a "
6766 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6767 msgstr ""
6768
6769 # type: textblock
6770 #: ../src/guestfs-actions.pod:1498 ../fish/guestfish-actions.pod:1003
6771 msgid ""
6772 "If the C<path> does not begin with C</dev/> then this command only works for "
6773 "the content of regular files.  For other file types (directory, symbolic "
6774 "link etc) it will just return the string C<directory> etc."
6775 msgstr ""
6776
6777 # type: =head2
6778 #: ../src/guestfs-actions.pod:1508
6779 msgid "guestfs_file_architecture"
6780 msgstr ""
6781
6782 # type: verbatim
6783 #: ../src/guestfs-actions.pod:1510
6784 #, no-wrap
6785 msgid ""
6786 " char *\n"
6787 " guestfs_file_architecture (guestfs_h *g,\n"
6788 "                            const char *filename);\n"
6789 "\n"
6790 msgstr ""
6791
6792 # type: textblock
6793 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:1012
6794 msgid ""
6795 "This detects the architecture of the binary C<filename>, and returns it if "
6796 "known."
6797 msgstr ""
6798
6799 # type: textblock
6800 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1015
6801 msgid "Currently defined architectures are:"
6802 msgstr ""
6803
6804 # type: =item
6805 #: ../src/guestfs-actions.pod:1521 ../fish/guestfish-actions.pod:1019
6806 msgid "\"i386\""
6807 msgstr ""
6808
6809 # type: textblock
6810 #: ../src/guestfs-actions.pod:1523 ../fish/guestfish-actions.pod:1021
6811 msgid ""
6812 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6813 "irrespective of the precise processor requirements of the binary."
6814 msgstr ""
6815
6816 # type: =item
6817 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1024
6818 msgid "\"x86_64\""
6819 msgstr ""
6820
6821 # type: textblock
6822 #: ../src/guestfs-actions.pod:1528 ../fish/guestfish-actions.pod:1026
6823 msgid "64 bit x86-64."
6824 msgstr ""
6825
6826 # type: =item
6827 #: ../src/guestfs-actions.pod:1530 ../fish/guestfish-actions.pod:1028
6828 msgid "\"sparc\""
6829 msgstr ""
6830
6831 # type: textblock
6832 #: ../src/guestfs-actions.pod:1532 ../fish/guestfish-actions.pod:1030
6833 msgid "32 bit SPARC."
6834 msgstr ""
6835
6836 # type: =item
6837 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1032
6838 msgid "\"sparc64\""
6839 msgstr ""
6840
6841 # type: textblock
6842 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1034
6843 msgid "64 bit SPARC V9 and above."
6844 msgstr ""
6845
6846 # type: =item
6847 #: ../src/guestfs-actions.pod:1538 ../fish/guestfish-actions.pod:1036
6848 msgid "\"ia64\""
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1540 ../fish/guestfish-actions.pod:1038
6853 msgid "Intel Itanium."
6854 msgstr ""
6855
6856 # type: =item
6857 #: ../src/guestfs-actions.pod:1542 ../fish/guestfish-actions.pod:1040
6858 msgid "\"ppc\""
6859 msgstr ""
6860
6861 # type: textblock
6862 #: ../src/guestfs-actions.pod:1544 ../fish/guestfish-actions.pod:1042
6863 msgid "32 bit Power PC."
6864 msgstr ""
6865
6866 # type: =item
6867 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1044
6868 msgid "\"ppc64\""
6869 msgstr ""
6870
6871 # type: textblock
6872 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1046
6873 msgid "64 bit Power PC."
6874 msgstr ""
6875
6876 # type: textblock
6877 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1050
6878 msgid "Libguestfs may return other architecture strings in future."
6879 msgstr ""
6880
6881 # type: textblock
6882 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1052
6883 msgid "The function works on at least the following types of files:"
6884 msgstr ""
6885
6886 # type: textblock
6887 #: ../src/guestfs-actions.pod:1560 ../fish/guestfish-actions.pod:1058
6888 msgid "many types of Un*x and Linux binary"
6889 msgstr ""
6890
6891 # type: textblock
6892 #: ../src/guestfs-actions.pod:1564 ../fish/guestfish-actions.pod:1062
6893 msgid "many types of Un*x and Linux shared library"
6894 msgstr ""
6895
6896 # type: textblock
6897 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1066
6898 msgid "Windows Win32 and Win64 binaries"
6899 msgstr ""
6900
6901 # type: textblock
6902 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1070
6903 msgid "Windows Win32 and Win64 DLLs"
6904 msgstr ""
6905
6906 # type: textblock
6907 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1072
6908 msgid "Win32 binaries and DLLs return C<i386>."
6909 msgstr ""
6910
6911 # type: textblock
6912 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1074
6913 msgid "Win64 binaries and DLLs return C<x86_64>."
6914 msgstr ""
6915
6916 # type: textblock
6917 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1078
6918 msgid "Linux kernel modules"
6919 msgstr ""
6920
6921 # type: textblock
6922 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1082
6923 msgid "Linux new-style initrd images"
6924 msgstr ""
6925
6926 # type: textblock
6927 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1086
6928 msgid "some non-x86 Linux vmlinuz kernels"
6929 msgstr ""
6930
6931 # type: textblock
6932 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1090
6933 msgid "What it can't do currently:"
6934 msgstr ""
6935
6936 # type: textblock
6937 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1096
6938 msgid "static libraries (libfoo.a)"
6939 msgstr ""
6940
6941 # type: textblock
6942 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1100
6943 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6944 msgstr ""
6945
6946 # type: textblock
6947 #: ../src/guestfs-actions.pod:1606 ../fish/guestfish-actions.pod:1104
6948 msgid "x86 Linux vmlinuz kernels"
6949 msgstr ""
6950
6951 # type: textblock
6952 #: ../src/guestfs-actions.pod:1608 ../fish/guestfish-actions.pod:1106
6953 msgid ""
6954 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6955 "compressed code, and are horribly hard to unpack.  If you want to find the "
6956 "architecture of a kernel, use the architecture of the associated initrd or "
6957 "kernel module(s) instead."
6958 msgstr ""
6959
6960 # type: textblock
6961 #: ../src/guestfs-actions.pod:1618 ../src/guestfs-actions.pod:1781
6962 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:2451
6963 #: ../src/guestfs-actions.pod:2524 ../src/guestfs-actions.pod:2550
6964 #: ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:2598
6965 #: ../src/guestfs-actions.pod:2631 ../src/guestfs-actions.pod:2655
6966 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759
6967 #: ../src/guestfs-actions.pod:2891
6968 msgid "(Added in 1.5.3)"
6969 msgstr ""
6970
6971 # type: =head2
6972 #: ../src/guestfs-actions.pod:1620
6973 msgid "guestfs_filesize"
6974 msgstr ""
6975
6976 # type: verbatim
6977 #: ../src/guestfs-actions.pod:1622
6978 #, no-wrap
6979 msgid ""
6980 " int64_t\n"
6981 " guestfs_filesize (guestfs_h *g,\n"
6982 "                   const char *file);\n"
6983 "\n"
6984 msgstr ""
6985
6986 # type: textblock
6987 #: ../src/guestfs-actions.pod:1626 ../fish/guestfish-actions.pod:1117
6988 msgid "This command returns the size of C<file> in bytes."
6989 msgstr ""
6990
6991 # type: textblock
6992 #: ../src/guestfs-actions.pod:1628
6993 msgid ""
6994 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6995 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6996 "devices, use C<guestfs_blockdev_getsize64>."
6997 msgstr ""
6998
6999 # type: textblock
7000 #: ../src/guestfs-actions.pod:1634
7001 msgid "(Added in 1.0.82)"
7002 msgstr ""
7003
7004 # type: =head2
7005 #: ../src/guestfs-actions.pod:1636
7006 msgid "guestfs_fill"
7007 msgstr ""
7008
7009 # type: verbatim
7010 #: ../src/guestfs-actions.pod:1638
7011 #, no-wrap
7012 msgid ""
7013 " int\n"
7014 " guestfs_fill (guestfs_h *g,\n"
7015 "               int c,\n"
7016 "               int len,\n"
7017 "               const char *path);\n"
7018 "\n"
7019 msgstr ""
7020
7021 # type: textblock
7022 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1127
7023 msgid ""
7024 "This command creates a new file called C<path>.  The initial content of the "
7025 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7026 "[0..255]>."
7027 msgstr ""
7028
7029 # type: textblock
7030 #: ../src/guestfs-actions.pod:1648
7031 msgid ""
7032 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7033 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7034 "bytes use C<guestfs_fill_pattern>."
7035 msgstr ""
7036
7037 # type: textblock
7038 #: ../src/guestfs-actions.pod:1660
7039 msgid "(Added in 1.0.79)"
7040 msgstr ""
7041
7042 # type: =head2
7043 #: ../src/guestfs-actions.pod:1662
7044 msgid "guestfs_fill_pattern"
7045 msgstr ""
7046
7047 # type: verbatim
7048 #: ../src/guestfs-actions.pod:1664
7049 #, no-wrap
7050 msgid ""
7051 " int\n"
7052 " guestfs_fill_pattern (guestfs_h *g,\n"
7053 "                       const char *pattern,\n"
7054 "                       int len,\n"
7055 "                       const char *path);\n"
7056 "\n"
7057 msgstr ""
7058
7059 # type: textblock
7060 #: ../src/guestfs-actions.pod:1670
7061 msgid ""
7062 "This function is like C<guestfs_fill> except that it creates a new file of "
7063 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7064 "pattern is truncated if necessary to ensure the length of the file is "
7065 "exactly C<len> bytes."
7066 msgstr ""
7067
7068 # type: textblock
7069 #: ../src/guestfs-actions.pod:1682
7070 msgid "(Added in 1.3.12)"
7071 msgstr ""
7072
7073 # type: =head2
7074 #: ../src/guestfs-actions.pod:1684
7075 msgid "guestfs_find"
7076 msgstr ""
7077
7078 # type: verbatim
7079 #: ../src/guestfs-actions.pod:1686
7080 #, no-wrap
7081 msgid ""
7082 " char **\n"
7083 " guestfs_find (guestfs_h *g,\n"
7084 "               const char *directory);\n"
7085 "\n"
7086 msgstr ""
7087
7088 # type: textblock
7089 #: ../src/guestfs-actions.pod:1690 ../fish/guestfish-actions.pod:1149
7090 msgid ""
7091 "This command lists out all files and directories, recursively, starting at "
7092 "C<directory>.  It is essentially equivalent to running the shell command "
7093 "C<find directory -print> but some post-processing happens on the output, "
7094 "described below."
7095 msgstr ""
7096
7097 # type: textblock
7098 #: ../src/guestfs-actions.pod:1695 ../fish/guestfish-actions.pod:1154
7099 msgid ""
7100 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7101 "structure was:"
7102 msgstr ""
7103
7104 # type: verbatim
7105 #: ../src/guestfs-actions.pod:1698 ../fish/guestfish-actions.pod:1157
7106 #, no-wrap
7107 msgid ""
7108 " /tmp/a\n"
7109 " /tmp/b\n"
7110 " /tmp/c/d\n"
7111 "\n"
7112 msgstr ""
7113
7114 # type: textblock
7115 #: ../src/guestfs-actions.pod:1702
7116 msgid ""
7117 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7118 msgstr ""
7119
7120 # type: verbatim
7121 #: ../src/guestfs-actions.pod:1705 ../fish/guestfish-actions.pod:1164
7122 #, no-wrap
7123 msgid ""
7124 " a\n"
7125 " b\n"
7126 " c\n"
7127 " c/d\n"
7128 "\n"
7129 msgstr ""
7130
7131 # type: textblock
7132 #: ../src/guestfs-actions.pod:1710 ../fish/guestfish-actions.pod:1169
7133 msgid "If C<directory> is not a directory, then this command returns an error."
7134 msgstr ""
7135
7136 # type: textblock
7137 #: ../src/guestfs-actions.pod:1713 ../fish/guestfish-actions.pod:1172
7138 msgid "The returned list is sorted."
7139 msgstr ""
7140
7141 # type: textblock
7142 #: ../src/guestfs-actions.pod:1715
7143 msgid "See also C<guestfs_find0>."
7144 msgstr ""
7145
7146 # type: textblock
7147 #: ../src/guestfs-actions.pod:1724 ../src/guestfs-actions.pod:3552
7148 #: ../src/guestfs-actions.pod:5018
7149 msgid "(Added in 1.0.27)"
7150 msgstr ""
7151
7152 # type: =head2
7153 #: ../src/guestfs-actions.pod:1726
7154 msgid "guestfs_find0"
7155 msgstr ""
7156
7157 # type: verbatim
7158 #: ../src/guestfs-actions.pod:1728
7159 #, no-wrap
7160 msgid ""
7161 " int\n"
7162 " guestfs_find0 (guestfs_h *g,\n"
7163 "                const char *directory,\n"
7164 "                const char *files);\n"
7165 "\n"
7166 msgstr ""
7167
7168 # type: textblock
7169 #: ../src/guestfs-actions.pod:1733 ../fish/guestfish-actions.pod:1183
7170 msgid ""
7171 "This command lists out all files and directories, recursively, starting at "
7172 "C<directory>, placing the resulting list in the external file called "
7173 "C<files>."
7174 msgstr ""
7175
7176 # type: textblock
7177 #: ../src/guestfs-actions.pod:1737
7178 msgid ""
7179 "This command works the same way as C<guestfs_find> with the following "
7180 "exceptions:"
7181 msgstr ""
7182
7183 # type: textblock
7184 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1194
7185 msgid "The resulting list is written to an external file."
7186 msgstr ""
7187
7188 # type: textblock
7189 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1198
7190 msgid ""
7191 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7192 "L<find(1)> option I<-print0>."
7193 msgstr ""
7194
7195 # type: textblock
7196 #: ../src/guestfs-actions.pod:1753 ../fish/guestfish-actions.pod:1203
7197 msgid "This command is not limited in the number of names that it can return."
7198 msgstr ""
7199
7200 # type: textblock
7201 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1208
7202 msgid "The result list is not sorted."
7203 msgstr ""
7204
7205 # type: textblock
7206 #: ../src/guestfs-actions.pod:1764
7207 msgid "(Added in 1.0.74)"
7208 msgstr ""
7209
7210 # type: =head2
7211 #: ../src/guestfs-actions.pod:1766
7212 msgid "guestfs_findfs_label"
7213 msgstr ""
7214
7215 # type: verbatim
7216 #: ../src/guestfs-actions.pod:1768
7217 #, no-wrap
7218 msgid ""
7219 " char *\n"
7220 " guestfs_findfs_label (guestfs_h *g,\n"
7221 "                       const char *label);\n"
7222 "\n"
7223 msgstr ""
7224
7225 # type: textblock
7226 #: ../src/guestfs-actions.pod:1772 ../fish/guestfish-actions.pod:1218
7227 msgid ""
7228 "This command searches the filesystems and returns the one which has the "
7229 "given label.  An error is returned if no such filesystem can be found."
7230 msgstr ""
7231
7232 # type: textblock
7233 #: ../src/guestfs-actions.pod:1776
7234 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7235 msgstr ""
7236
7237 # type: =head2
7238 #: ../src/guestfs-actions.pod:1783
7239 msgid "guestfs_findfs_uuid"
7240 msgstr ""
7241
7242 # type: verbatim
7243 #: ../src/guestfs-actions.pod:1785
7244 #, no-wrap
7245 msgid ""
7246 " char *\n"
7247 " guestfs_findfs_uuid (guestfs_h *g,\n"
7248 "                      const char *uuid);\n"
7249 "\n"
7250 msgstr ""
7251
7252 # type: textblock
7253 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1228
7254 msgid ""
7255 "This command searches the filesystems and returns the one which has the "
7256 "given UUID.  An error is returned if no such filesystem can be found."
7257 msgstr ""
7258
7259 # type: textblock
7260 #: ../src/guestfs-actions.pod:1793
7261 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7262 msgstr ""
7263
7264 # type: =head2
7265 #: ../src/guestfs-actions.pod:1800
7266 msgid "guestfs_fsck"
7267 msgstr ""
7268
7269 # type: verbatim
7270 #: ../src/guestfs-actions.pod:1802
7271 #, no-wrap
7272 msgid ""
7273 " int\n"
7274 " guestfs_fsck (guestfs_h *g,\n"
7275 "               const char *fstype,\n"
7276 "               const char *device);\n"
7277 "\n"
7278 msgstr ""
7279
7280 # type: textblock
7281 #: ../src/guestfs-actions.pod:1807 ../fish/guestfish-actions.pod:1238
7282 msgid ""
7283 "This runs the filesystem checker (fsck) on C<device> which should have "
7284 "filesystem type C<fstype>."
7285 msgstr ""
7286
7287 # type: textblock
7288 #: ../src/guestfs-actions.pod:1810 ../fish/guestfish-actions.pod:1241
7289 msgid ""
7290 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7291 "codes from C<fsck>."
7292 msgstr ""
7293
7294 # type: textblock
7295 #: ../src/guestfs-actions.pod:1819 ../fish/guestfish-actions.pod:1250
7296 msgid "Multiple status codes can be summed together."
7297 msgstr ""
7298
7299 # type: textblock
7300 #: ../src/guestfs-actions.pod:1823 ../fish/guestfish-actions.pod:1254
7301 msgid ""
7302 "A non-zero return code can mean \"success\", for example if errors have been "
7303 "corrected on the filesystem."
7304 msgstr ""
7305
7306 # type: textblock
7307 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1259
7308 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7309 msgstr ""
7310
7311 # type: textblock
7312 #: ../src/guestfs-actions.pod:1833 ../fish/guestfish-actions.pod:1264
7313 msgid ""
7314 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7315 msgstr ""
7316
7317 # type: textblock
7318 #: ../src/guestfs-actions.pod:1837 ../src/guestfs-actions.pod:6656
7319 msgid "(Added in 1.0.16)"
7320 msgstr ""
7321
7322 # type: =head2
7323 #: ../src/guestfs-actions.pod:1839
7324 msgid "guestfs_get_append"
7325 msgstr ""
7326
7327 # type: verbatim
7328 #: ../src/guestfs-actions.pod:1841
7329 #, no-wrap
7330 msgid ""
7331 " const char *\n"
7332 " guestfs_get_append (guestfs_h *g);\n"
7333 "\n"
7334 msgstr ""
7335
7336 # type: textblock
7337 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:1270
7338 msgid ""
7339 "Return the additional kernel options which are added to the guest kernel "
7340 "command line."
7341 msgstr ""
7342
7343 # type: textblock
7344 #: ../src/guestfs-actions.pod:1847 ../fish/guestfish-actions.pod:1273
7345 msgid "If C<NULL> then no options are added."
7346 msgstr ""
7347
7348 # type: textblock
7349 #: ../src/guestfs-actions.pod:1849
7350 msgid ""
7351 "This function returns a string which may be NULL.  There is no way to return "
7352 "an error from this function.  The string is owned by the guest handle and "
7353 "must I<not> be freed."
7354 msgstr ""
7355
7356 # type: textblock
7357 #: ../src/guestfs-actions.pod:1853 ../src/guestfs-actions.pod:4694
7358 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5527
7359 #: ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:5562
7360 #: ../src/guestfs-actions.pod:5579 ../src/guestfs-actions.pod:6326
7361 #: ../src/guestfs-actions.pod:6344 ../src/guestfs-actions.pod:6699
7362 msgid "(Added in 1.0.26)"
7363 msgstr ""
7364
7365 # type: =head2
7366 #: ../src/guestfs-actions.pod:1855
7367 msgid "guestfs_get_autosync"
7368 msgstr ""
7369
7370 # type: verbatim
7371 #: ../src/guestfs-actions.pod:1857
7372 #, no-wrap
7373 msgid ""
7374 " int\n"
7375 " guestfs_get_autosync (guestfs_h *g);\n"
7376 "\n"
7377 msgstr ""
7378
7379 # type: textblock
7380 #: ../src/guestfs-actions.pod:1860 ../fish/guestfish-actions.pod:1279
7381 msgid "Get the autosync flag."
7382 msgstr ""
7383
7384 # type: =head2
7385 #: ../src/guestfs-actions.pod:1866
7386 msgid "guestfs_get_direct"
7387 msgstr ""
7388
7389 # type: verbatim
7390 #: ../src/guestfs-actions.pod:1868
7391 #, no-wrap
7392 msgid ""
7393 " int\n"
7394 " guestfs_get_direct (guestfs_h *g);\n"
7395 "\n"
7396 msgstr ""
7397
7398 # type: textblock
7399 #: ../src/guestfs-actions.pod:1871 ../fish/guestfish-actions.pod:1285
7400 msgid "Return the direct appliance mode flag."
7401 msgstr ""
7402
7403 # type: textblock
7404 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:5200
7405 msgid "(Added in 1.0.72)"
7406 msgstr ""
7407
7408 # type: =head2
7409 #: ../src/guestfs-actions.pod:1877
7410 msgid "guestfs_get_e2label"
7411 msgstr ""
7412
7413 # type: verbatim
7414 #: ../src/guestfs-actions.pod:1879
7415 #, no-wrap
7416 msgid ""
7417 " char *\n"
7418 " guestfs_get_e2label (guestfs_h *g,\n"
7419 "                      const char *device);\n"
7420 "\n"
7421 msgstr ""
7422
7423 # type: textblock
7424 #: ../src/guestfs-actions.pod:1883 ../fish/guestfish-actions.pod:1291
7425 msgid ""
7426 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7427 msgstr ""
7428
7429 # type: textblock
7430 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1294
7431 msgid ""
7432 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7433 msgstr ""
7434
7435 # type: textblock
7436 #: ../src/guestfs-actions.pod:1896 ../src/guestfs-actions.pod:1917
7437 #: ../src/guestfs-actions.pod:5218 ../src/guestfs-actions.pod:5237
7438 msgid "(Added in 1.0.15)"
7439 msgstr ""
7440
7441 # type: =head2
7442 #: ../src/guestfs-actions.pod:1898
7443 msgid "guestfs_get_e2uuid"
7444 msgstr ""
7445
7446 # type: verbatim
7447 #: ../src/guestfs-actions.pod:1900
7448 #, no-wrap
7449 msgid ""
7450 " char *\n"
7451 " guestfs_get_e2uuid (guestfs_h *g,\n"
7452 "                     const char *device);\n"
7453 "\n"
7454 msgstr ""
7455
7456 # type: textblock
7457 #: ../src/guestfs-actions.pod:1904 ../fish/guestfish-actions.pod:1305
7458 msgid ""
7459 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7460 msgstr ""
7461
7462 # type: textblock
7463 #: ../src/guestfs-actions.pod:1910 ../fish/guestfish-actions.pod:1308
7464 msgid ""
7465 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7466 msgstr ""
7467
7468 # type: =head2
7469 #: ../src/guestfs-actions.pod:1919
7470 msgid "guestfs_get_memsize"
7471 msgstr ""
7472
7473 # type: verbatim
7474 #: ../src/guestfs-actions.pod:1921
7475 #, no-wrap
7476 msgid ""
7477 " int\n"
7478 " guestfs_get_memsize (guestfs_h *g);\n"
7479 "\n"
7480 msgstr ""
7481
7482 # type: textblock
7483 #: ../src/guestfs-actions.pod:1924 ../fish/guestfish-actions.pod:1319
7484 msgid ""
7485 "This gets the memory size in megabytes allocated to the qemu subprocess."
7486 msgstr ""
7487
7488 # type: textblock
7489 #: ../src/guestfs-actions.pod:1927
7490 msgid ""
7491 "If C<guestfs_set_memsize> was not called on this handle, and if "
7492 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7493 "value for memsize."
7494 msgstr ""
7495
7496 # type: textblock
7497 #: ../src/guestfs-actions.pod:1931 ../src/guestfs-actions.pod:2012
7498 #: ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5360
7499 #: ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377
7500 #: ../fish/guestfish-actions.pod:3484 ../fish/guestfish-actions.pod:3571
7501 msgid ""
7502 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7503 msgstr ""
7504
7505 # type: textblock
7506 #: ../src/guestfs-actions.pod:1936 ../src/guestfs-actions.pod:3845
7507 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:3979
7508 #: ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4010
7509 #: ../src/guestfs-actions.pod:4027 ../src/guestfs-actions.pod:4040
7510 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5258
7511 #: ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:6102
7512 msgid "(Added in 1.0.55)"
7513 msgstr ""
7514
7515 # type: =head2
7516 #: ../src/guestfs-actions.pod:1938
7517 msgid "guestfs_get_network"
7518 msgstr ""
7519
7520 # type: verbatim
7521 #: ../src/guestfs-actions.pod:1940
7522 #, no-wrap
7523 msgid ""
7524 " int\n"
7525 " guestfs_get_network (guestfs_h *g);\n"
7526 "\n"
7527 msgstr ""
7528
7529 # type: textblock
7530 #: ../src/guestfs-actions.pod:1943 ../fish/guestfish-actions.pod:1333
7531 msgid "This returns the enable network flag."
7532 msgstr ""
7533
7534 # type: textblock
7535 #: ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:5277
7536 msgid "(Added in 1.5.4)"
7537 msgstr ""
7538
7539 # type: =head2
7540 #: ../src/guestfs-actions.pod:1949
7541 msgid "guestfs_get_path"
7542 msgstr ""
7543
7544 # type: verbatim
7545 #: ../src/guestfs-actions.pod:1951
7546 #, no-wrap
7547 msgid ""
7548 " const char *\n"
7549 " guestfs_get_path (guestfs_h *g);\n"
7550 "\n"
7551 msgstr ""
7552
7553 # type: textblock
7554 #: ../src/guestfs-actions.pod:1954 ../fish/guestfish-actions.pod:1339
7555 msgid "Return the current search path."
7556 msgstr ""
7557
7558 # type: textblock
7559 #: ../src/guestfs-actions.pod:1956 ../fish/guestfish-actions.pod:1341
7560 msgid ""
7561 "This is always non-NULL.  If it wasn't set already, then this will return "
7562 "the default path."
7563 msgstr ""
7564
7565 # type: textblock
7566 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:1988
7567 msgid ""
7568 "This function returns a string, or NULL on error.  The string is owned by "
7569 "the guest handle and must I<not> be freed."
7570 msgstr ""
7571
7572 # type: =head2
7573 #: ../src/guestfs-actions.pod:1964
7574 msgid "guestfs_get_pid"
7575 msgstr ""
7576
7577 # type: verbatim
7578 #: ../src/guestfs-actions.pod:1966
7579 #, no-wrap
7580 msgid ""
7581 " int\n"
7582 " guestfs_get_pid (guestfs_h *g);\n"
7583 "\n"
7584 msgstr ""
7585
7586 # type: textblock
7587 #: ../src/guestfs-actions.pod:1969 ../fish/guestfish-actions.pod:1350
7588 msgid ""
7589 "Return the process ID of the qemu subprocess.  If there is no qemu "
7590 "subprocess, then this will return an error."
7591 msgstr ""
7592
7593 # type: textblock
7594 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1353
7595 msgid "This is an internal call used for debugging and testing."
7596 msgstr ""
7597
7598 # type: textblock
7599 #: ../src/guestfs-actions.pod:1976
7600 msgid "(Added in 1.0.56)"
7601 msgstr ""
7602
7603 # type: =head2
7604 #: ../src/guestfs-actions.pod:1978
7605 msgid "guestfs_get_qemu"
7606 msgstr ""
7607
7608 # type: verbatim
7609 #: ../src/guestfs-actions.pod:1980
7610 #, no-wrap
7611 msgid ""
7612 " const char *\n"
7613 " guestfs_get_qemu (guestfs_h *g);\n"
7614 "\n"
7615 msgstr ""
7616
7617 # type: textblock
7618 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1359
7619 msgid "Return the current qemu binary."
7620 msgstr ""
7621
7622 # type: textblock
7623 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1361
7624 msgid ""
7625 "This is always non-NULL.  If it wasn't set already, then this will return "
7626 "the default qemu binary name."
7627 msgstr ""
7628
7629 # type: textblock
7630 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:5322
7631 msgid "(Added in 1.0.6)"
7632 msgstr ""
7633
7634 # type: =head2
7635 #: ../src/guestfs-actions.pod:1993
7636 msgid "guestfs_get_recovery_proc"
7637 msgstr ""
7638
7639 # type: verbatim
7640 #: ../src/guestfs-actions.pod:1995
7641 #, no-wrap
7642 msgid ""
7643 " int\n"
7644 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7645 "\n"
7646 msgstr ""
7647
7648 # type: textblock
7649 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1368
7650 msgid "Return the recovery process enabled flag."
7651 msgstr ""
7652
7653 # type: textblock
7654 #: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2981
7655 #: ../src/guestfs-actions.pod:3250 ../src/guestfs-actions.pod:3652
7656 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:4624
7657 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:5346
7658 #: ../src/guestfs-actions.pod:6005 ../src/guestfs-actions.pod:6025
7659 #: ../src/guestfs-actions.pod:6207
7660 msgid "(Added in 1.0.77)"
7661 msgstr ""
7662
7663 # type: =head2
7664 #: ../src/guestfs-actions.pod:2004
7665 msgid "guestfs_get_selinux"
7666 msgstr ""
7667
7668 # type: verbatim
7669 #: ../src/guestfs-actions.pod:2006
7670 #, no-wrap
7671 msgid ""
7672 " int\n"
7673 " guestfs_get_selinux (guestfs_h *g);\n"
7674 "\n"
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:2009
7679 msgid ""
7680 "This returns the current setting of the selinux flag which is passed to the "
7681 "appliance at boot time.  See C<guestfs_set_selinux>."
7682 msgstr ""
7683
7684 # type: textblock
7685 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2080
7686 #: ../src/guestfs-actions.pod:5365 ../src/guestfs-actions.pod:5419
7687 msgid "(Added in 1.0.67)"
7688 msgstr ""
7689
7690 # type: =head2
7691 #: ../src/guestfs-actions.pod:2019
7692 msgid "guestfs_get_state"
7693 msgstr ""
7694
7695 # type: verbatim
7696 #: ../src/guestfs-actions.pod:2021
7697 #, no-wrap
7698 msgid ""
7699 " int\n"
7700 " guestfs_get_state (guestfs_h *g);\n"
7701 "\n"
7702 msgstr ""
7703
7704 # type: textblock
7705 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1384
7706 msgid ""
7707 "This returns the current state as an opaque integer.  This is only useful "
7708 "for printing debug and internal error messages."
7709 msgstr ""
7710
7711 # type: textblock
7712 #: ../src/guestfs-actions.pod:2027 ../src/guestfs-actions.pod:2784
7713 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:2874
7714 #: ../src/guestfs-actions.pod:2901 ../fish/guestfish-actions.pod:1387
7715 #: ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1935
7716 #: ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:1989
7717 msgid "For more information on states, see L<guestfs(3)>."
7718 msgstr ""
7719
7720 # type: =head2
7721 #: ../src/guestfs-actions.pod:2033
7722 msgid "guestfs_get_trace"
7723 msgstr ""
7724
7725 # type: verbatim
7726 #: ../src/guestfs-actions.pod:2035
7727 #, no-wrap
7728 msgid ""
7729 " int\n"
7730 " guestfs_get_trace (guestfs_h *g);\n"
7731 "\n"
7732 msgstr ""
7733
7734 # type: textblock
7735 #: ../src/guestfs-actions.pod:2038 ../fish/guestfish-actions.pod:1393
7736 msgid "Return the command trace flag."
7737 msgstr ""
7738
7739 # type: =head2
7740 #: ../src/guestfs-actions.pod:2044
7741 msgid "guestfs_get_umask"
7742 msgstr ""
7743
7744 # type: verbatim
7745 #: ../src/guestfs-actions.pod:2046
7746 #, no-wrap
7747 msgid ""
7748 " int\n"
7749 " guestfs_get_umask (guestfs_h *g);\n"
7750 "\n"
7751 msgstr ""
7752
7753 # type: textblock
7754 #: ../src/guestfs-actions.pod:2049
7755 msgid ""
7756 "Return the current umask.  By default the umask is C<022> unless it has been "
7757 "set by calling C<guestfs_umask>."
7758 msgstr ""
7759
7760 # type: =head2
7761 #: ../src/guestfs-actions.pod:2056
7762 msgid "guestfs_get_verbose"
7763 msgstr ""
7764
7765 # type: verbatim
7766 #: ../src/guestfs-actions.pod:2058
7767 #, no-wrap
7768 msgid ""
7769 " int\n"
7770 " guestfs_get_verbose (guestfs_h *g);\n"
7771 "\n"
7772 msgstr ""
7773
7774 # type: textblock
7775 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1406
7776 msgid "This returns the verbose messages flag."
7777 msgstr ""
7778
7779 # type: =head2
7780 #: ../src/guestfs-actions.pod:2067
7781 msgid "guestfs_getcon"
7782 msgstr ""
7783
7784 # type: verbatim
7785 #: ../src/guestfs-actions.pod:2069
7786 #, no-wrap
7787 msgid ""
7788 " char *\n"
7789 " guestfs_getcon (guestfs_h *g);\n"
7790 "\n"
7791 msgstr ""
7792
7793 # type: textblock
7794 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1412
7795 msgid "This gets the SELinux security context of the daemon."
7796 msgstr ""
7797
7798 # type: textblock
7799 #: ../src/guestfs-actions.pod:2074
7800 msgid ""
7801 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7802 msgstr ""
7803
7804 # type: =head2
7805 #: ../src/guestfs-actions.pod:2082
7806 msgid "guestfs_getxattrs"
7807 msgstr ""
7808
7809 # type: verbatim
7810 #: ../src/guestfs-actions.pod:2084
7811 #, no-wrap
7812 msgid ""
7813 " struct guestfs_xattr_list *\n"
7814 " guestfs_getxattrs (guestfs_h *g,\n"
7815 "                    const char *path);\n"
7816 "\n"
7817 msgstr ""
7818
7819 # type: textblock
7820 #: ../src/guestfs-actions.pod:2088 ../fish/guestfish-actions.pod:1421
7821 msgid ""
7822 "This call lists the extended attributes of the file or directory C<path>."
7823 msgstr ""
7824
7825 # type: textblock
7826 #: ../src/guestfs-actions.pod:2091 ../fish/guestfish-actions.pod:1424
7827 msgid ""
7828 "At the system call level, this is a combination of the L<listxattr(2)> and "
7829 "L<getxattr(2)> calls."
7830 msgstr ""
7831
7832 # type: textblock
7833 #: ../src/guestfs-actions.pod:2094
7834 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7835 msgstr ""
7836
7837 # type: textblock
7838 #: ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:2993
7839 #: ../src/guestfs-actions.pod:3647
7840 msgid ""
7841 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
7842 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
7843 "C<guestfs_free_xattr_list> after use>."
7844 msgstr ""
7845
7846 # type: textblock
7847 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2998
7848 #: ../src/guestfs-actions.pod:3163 ../src/guestfs-actions.pod:3199
7849 #: ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:5438
7850 #: ../src/guestfs-actions.pod:6764
7851 msgid "(Added in 1.0.59)"
7852 msgstr ""
7853
7854 # type: =head2
7855 #: ../src/guestfs-actions.pod:2103
7856 msgid "guestfs_glob_expand"
7857 msgstr ""
7858
7859 # type: verbatim
7860 #: ../src/guestfs-actions.pod:2105
7861 #, no-wrap
7862 msgid ""
7863 " char **\n"
7864 " guestfs_glob_expand (guestfs_h *g,\n"
7865 "                      const char *pattern);\n"
7866 "\n"
7867 msgstr ""
7868
7869 # type: textblock
7870 #: ../src/guestfs-actions.pod:2109 ../fish/guestfish-actions.pod:1433
7871 msgid ""
7872 "This command searches for all the pathnames matching C<pattern> according to "
7873 "the wildcard expansion rules used by the shell."
7874 msgstr ""
7875
7876 # type: textblock
7877 #: ../src/guestfs-actions.pod:2113 ../fish/guestfish-actions.pod:1437
7878 msgid ""
7879 "If no paths match, then this returns an empty list (note: not an error)."
7880 msgstr ""
7881
7882 # type: textblock
7883 #: ../src/guestfs-actions.pod:2116 ../fish/guestfish-actions.pod:1440
7884 msgid ""
7885 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7886 "GLOB_BRACE>.  See that manual page for more details."
7887 msgstr ""
7888
7889 # type: textblock
7890 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:5603
7891 #: ../src/guestfs-actions.pod:5620
7892 msgid "(Added in 1.0.50)"
7893 msgstr ""
7894
7895 # type: =head2
7896 #: ../src/guestfs-actions.pod:2126
7897 msgid "guestfs_grep"
7898 msgstr ""
7899
7900 # type: verbatim
7901 #: ../src/guestfs-actions.pod:2128
7902 #, no-wrap
7903 msgid ""
7904 " char **\n"
7905 " guestfs_grep (guestfs_h *g,\n"
7906 "               const char *regex,\n"
7907 "               const char *path);\n"
7908 "\n"
7909 msgstr ""
7910
7911 # type: textblock
7912 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1448
7913 msgid "This calls the external C<grep> program and returns the matching lines."
7914 msgstr ""
7915
7916 # type: =head2
7917 #: ../src/guestfs-actions.pod:2145
7918 msgid "guestfs_grepi"
7919 msgstr ""
7920
7921 # type: verbatim
7922 #: ../src/guestfs-actions.pod:2147
7923 #, no-wrap
7924 msgid ""
7925 " char **\n"
7926 " guestfs_grepi (guestfs_h *g,\n"
7927 "                const char *regex,\n"
7928 "                const char *path);\n"
7929 "\n"
7930 msgstr ""
7931
7932 # type: textblock
7933 #: ../src/guestfs-actions.pod:2152 ../fish/guestfish-actions.pod:1458
7934 msgid ""
7935 "This calls the external C<grep -i> program and returns the matching lines."
7936 msgstr ""
7937
7938 # type: =head2
7939 #: ../src/guestfs-actions.pod:2164
7940 msgid "guestfs_grub_install"
7941 msgstr ""
7942
7943 # type: verbatim
7944 #: ../src/guestfs-actions.pod:2166
7945 #, no-wrap
7946 msgid ""
7947 " int\n"
7948 " guestfs_grub_install (guestfs_h *g,\n"
7949 "                       const char *root,\n"
7950 "                       const char *device);\n"
7951 "\n"
7952 msgstr ""
7953
7954 # type: textblock
7955 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1468
7956 msgid ""
7957 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7958 "the root directory being C<root>."
7959 msgstr ""
7960
7961 # type: textblock
7962 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1471
7963 msgid ""
7964 "Note: If grub-install reports the error \"No suitable drive was found in the "
7965 "generated device map.\" it may be that you need to create a C</boot/grub/"
7966 "device.map> file first that contains the mapping between grub device names "
7967 "and Linux device names.  It is usually sufficient to create a file "
7968 "containing:"
7969 msgstr ""
7970
7971 # type: verbatim
7972 #: ../src/guestfs-actions.pod:2181 ../fish/guestfish-actions.pod:1478
7973 #, no-wrap
7974 msgid ""
7975 " (hd0) /dev/vda\n"
7976 "\n"
7977 msgstr ""
7978
7979 # type: textblock
7980 #: ../src/guestfs-actions.pod:2183 ../fish/guestfish-actions.pod:1480
7981 msgid "replacing C</dev/vda> with the name of the installation device."
7982 msgstr ""
7983
7984 # type: textblock
7985 #: ../src/guestfs-actions.pod:2187
7986 msgid "(Added in 1.0.17)"
7987 msgstr ""
7988
7989 # type: =head2
7990 #: ../src/guestfs-actions.pod:2189
7991 msgid "guestfs_head"
7992 msgstr ""
7993
7994 # type: verbatim
7995 #: ../src/guestfs-actions.pod:2191
7996 #, no-wrap
7997 msgid ""
7998 " char **\n"
7999 " guestfs_head (guestfs_h *g,\n"
8000 "               const char *path);\n"
8001 "\n"
8002 msgstr ""
8003
8004 # type: textblock
8005 #: ../src/guestfs-actions.pod:2195 ../fish/guestfish-actions.pod:1486
8006 msgid ""
8007 "This command returns up to the first 10 lines of a file as a list of strings."
8008 msgstr ""
8009
8010 # type: =head2
8011 #: ../src/guestfs-actions.pod:2207
8012 msgid "guestfs_head_n"
8013 msgstr ""
8014
8015 # type: verbatim
8016 #: ../src/guestfs-actions.pod:2209
8017 #, no-wrap
8018 msgid ""
8019 " char **\n"
8020 " guestfs_head_n (guestfs_h *g,\n"
8021 "                 int nrlines,\n"
8022 "                 const char *path);\n"
8023 "\n"
8024 msgstr ""
8025
8026 # type: textblock
8027 #: ../src/guestfs-actions.pod:2214 ../fish/guestfish-actions.pod:1496
8028 msgid ""
8029 "If the parameter C<nrlines> is a positive number, this returns the first "
8030 "C<nrlines> lines of the file C<path>."
8031 msgstr ""
8032
8033 # type: textblock
8034 #: ../src/guestfs-actions.pod:2217 ../fish/guestfish-actions.pod:1499
8035 msgid ""
8036 "If the parameter C<nrlines> is a negative number, this returns lines from "
8037 "the file C<path>, excluding the last C<nrlines> lines."
8038 msgstr ""
8039
8040 # type: textblock
8041 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:5900
8042 #: ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3917
8043 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8044 msgstr ""
8045
8046 # type: =head2
8047 #: ../src/guestfs-actions.pod:2231
8048 msgid "guestfs_hexdump"
8049 msgstr ""
8050
8051 # type: verbatim
8052 #: ../src/guestfs-actions.pod:2233
8053 #, no-wrap
8054 msgid ""
8055 " char *\n"
8056 " guestfs_hexdump (guestfs_h *g,\n"
8057 "                  const char *path);\n"
8058 "\n"
8059 msgstr ""
8060
8061 # type: textblock
8062 #: ../src/guestfs-actions.pod:2237 ../fish/guestfish-actions.pod:1511
8063 msgid ""
8064 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8065 "readable, canonical hex dump of the file."
8066 msgstr ""
8067
8068 # type: textblock
8069 #: ../src/guestfs-actions.pod:2246 ../src/guestfs-actions.pod:5684
8070 #: ../src/guestfs-actions.pod:5739
8071 msgid "(Added in 1.0.22)"
8072 msgstr ""
8073
8074 # type: =head2
8075 #: ../src/guestfs-actions.pod:2248
8076 msgid "guestfs_initrd_cat"
8077 msgstr ""
8078
8079 # type: verbatim
8080 #: ../src/guestfs-actions.pod:2250
8081 #, no-wrap
8082 msgid ""
8083 " char *\n"
8084 " guestfs_initrd_cat (guestfs_h *g,\n"
8085 "                     const char *initrdpath,\n"
8086 "                     const char *filename,\n"
8087 "                     size_t *size_r);\n"
8088 "\n"
8089 msgstr ""
8090
8091 # type: textblock
8092 #: ../src/guestfs-actions.pod:2256 ../fish/guestfish-actions.pod:1521
8093 msgid ""
8094 "This command unpacks the file C<filename> from the initrd file called "
8095 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8096 "character."
8097 msgstr ""
8098
8099 # type: textblock
8100 #: ../src/guestfs-actions.pod:2260 ../fish/guestfish-actions.pod:1525
8101 msgid ""
8102 "For example, in guestfish you could use the following command to examine the "
8103 "boot script (usually called C</init>)  contained in a Linux initrd or "
8104 "initramfs image:"
8105 msgstr ""
8106
8107 # type: verbatim
8108 #: ../src/guestfs-actions.pod:2264 ../fish/guestfish-actions.pod:1529
8109 #, no-wrap
8110 msgid ""
8111 " initrd-cat /boot/initrd-<version>.img init\n"
8112 "\n"
8113 msgstr ""
8114
8115 # type: textblock
8116 #: ../src/guestfs-actions.pod:2266
8117 msgid "See also C<guestfs_initrd_list>."
8118 msgstr ""
8119
8120 # type: textblock
8121 #: ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:4617
8122 #: ../src/guestfs-actions.pod:4643 ../src/guestfs-actions.pod:4825
8123 msgid ""
8124 "This function returns a buffer, or NULL on error.  The size of the returned "
8125 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8126 "after use>."
8127 msgstr ""
8128
8129 # type: =head2
8130 #: ../src/guestfs-actions.pod:2277
8131 msgid "guestfs_initrd_list"
8132 msgstr ""
8133
8134 # type: verbatim
8135 #: ../src/guestfs-actions.pod:2279
8136 #, no-wrap
8137 msgid ""
8138 " char **\n"
8139 " guestfs_initrd_list (guestfs_h *g,\n"
8140 "                      const char *path);\n"
8141 "\n"
8142 msgstr ""
8143
8144 # type: textblock
8145 #: ../src/guestfs-actions.pod:2283 ../fish/guestfish-actions.pod:1540
8146 msgid "This command lists out files contained in an initrd."
8147 msgstr ""
8148
8149 # type: textblock
8150 #: ../src/guestfs-actions.pod:2285 ../fish/guestfish-actions.pod:1542
8151 msgid ""
8152 "The files are listed without any initial C</> character.  The files are "
8153 "listed in the order they appear (not necessarily alphabetical).  Directory "
8154 "names are listed as separate items."
8155 msgstr ""
8156
8157 # type: textblock
8158 #: ../src/guestfs-actions.pod:2289 ../fish/guestfish-actions.pod:1546
8159 msgid ""
8160 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8161 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8162 "files)."
8163 msgstr ""
8164
8165 # type: =head2
8166 #: ../src/guestfs-actions.pod:2299
8167 msgid "guestfs_inotify_add_watch"
8168 msgstr ""
8169
8170 # type: verbatim
8171 #: ../src/guestfs-actions.pod:2301
8172 #, no-wrap
8173 msgid ""
8174 " int64_t\n"
8175 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8176 "                            const char *path,\n"
8177 "                            int mask);\n"
8178 "\n"
8179 msgstr ""
8180
8181 # type: textblock
8182 #: ../src/guestfs-actions.pod:2306 ../fish/guestfish-actions.pod:1554
8183 msgid "Watch C<path> for the events listed in C<mask>."
8184 msgstr ""
8185
8186 # type: textblock
8187 #: ../src/guestfs-actions.pod:2308 ../fish/guestfish-actions.pod:1556
8188 msgid ""
8189 "Note that if C<path> is a directory then events within that directory are "
8190 "watched, but this does I<not> happen recursively (in subdirectories)."
8191 msgstr ""
8192
8193 # type: textblock
8194 #: ../src/guestfs-actions.pod:2312 ../fish/guestfish-actions.pod:1560
8195 msgid ""
8196 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8197 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8198 msgstr ""
8199
8200 # type: =head2
8201 #: ../src/guestfs-actions.pod:2320
8202 msgid "guestfs_inotify_close"
8203 msgstr ""
8204
8205 # type: verbatim
8206 #: ../src/guestfs-actions.pod:2322
8207 #, no-wrap
8208 msgid ""
8209 " int\n"
8210 " guestfs_inotify_close (guestfs_h *g);\n"
8211 "\n"
8212 msgstr ""
8213
8214 # type: textblock
8215 #: ../src/guestfs-actions.pod:2325 ../fish/guestfish-actions.pod:1568
8216 msgid ""
8217 "This closes the inotify handle which was previously opened by inotify_init.  "
8218 "It removes all watches, throws away any pending events, and deallocates all "
8219 "resources."
8220 msgstr ""
8221
8222 # type: =head2
8223 #: ../src/guestfs-actions.pod:2333
8224 msgid "guestfs_inotify_files"
8225 msgstr ""
8226
8227 # type: verbatim
8228 #: ../src/guestfs-actions.pod:2335
8229 #, no-wrap
8230 msgid ""
8231 " char **\n"
8232 " guestfs_inotify_files (guestfs_h *g);\n"
8233 "\n"
8234 msgstr ""
8235
8236 # type: textblock
8237 #: ../src/guestfs-actions.pod:2338
8238 msgid ""
8239 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8240 "returns a list of pathnames of objects that were touched.  The returned "
8241 "pathnames are sorted and deduplicated."
8242 msgstr ""
8243
8244 # type: =head2
8245 #: ../src/guestfs-actions.pod:2348
8246 msgid "guestfs_inotify_init"
8247 msgstr ""
8248
8249 # type: verbatim
8250 #: ../src/guestfs-actions.pod:2350
8251 #, no-wrap
8252 msgid ""
8253 " int\n"
8254 " guestfs_inotify_init (guestfs_h *g,\n"
8255 "                       int maxevents);\n"
8256 "\n"
8257 msgstr ""
8258
8259 # type: textblock
8260 #: ../src/guestfs-actions.pod:2354 ../fish/guestfish-actions.pod:1584
8261 msgid ""
8262 "This command creates a new inotify handle.  The inotify subsystem can be "
8263 "used to notify events which happen to objects in the guest filesystem."
8264 msgstr ""
8265
8266 # type: textblock
8267 #: ../src/guestfs-actions.pod:2358
8268 msgid ""
8269 "C<maxevents> is the maximum number of events which will be queued up between "
8270 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8271 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8272 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8273 "throws away events, but records the fact that it threw them away by setting "
8274 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8275 "C<guestfs_inotify_read>)."
8276 msgstr ""
8277
8278 # type: textblock
8279 #: ../src/guestfs-actions.pod:2368
8280 msgid ""
8281 "Before any events are generated, you have to add some watches to the "
8282 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8283 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8284 msgstr ""
8285
8286 # type: textblock
8287 #: ../src/guestfs-actions.pod:2374
8288 msgid ""
8289 "Queued up events should be read periodically by calling "
8290 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8291 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8292 "often enough then you risk the internal queue overflowing."
8293 msgstr ""
8294
8295 # type: textblock
8296 #: ../src/guestfs-actions.pod:2381
8297 msgid ""
8298 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8299 "This also removes any watches automatically."
8300 msgstr ""
8301
8302 # type: textblock
8303 #: ../src/guestfs-actions.pod:2385 ../fish/guestfish-actions.pod:1615
8304 msgid ""
8305 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8306 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8307 "that there is one global inotify handle per libguestfs instance."
8308 msgstr ""
8309
8310 # type: =head2
8311 #: ../src/guestfs-actions.pod:2394
8312 msgid "guestfs_inotify_read"
8313 msgstr ""
8314
8315 # type: verbatim
8316 #: ../src/guestfs-actions.pod:2396
8317 #, no-wrap
8318 msgid ""
8319 " struct guestfs_inotify_event_list *\n"
8320 " guestfs_inotify_read (guestfs_h *g);\n"
8321 "\n"
8322 msgstr ""
8323
8324 # type: textblock
8325 #: ../src/guestfs-actions.pod:2399 ../fish/guestfish-actions.pod:1624
8326 msgid ""
8327 "Return the complete queue of events that have happened since the previous "
8328 "read call."
8329 msgstr ""
8330
8331 # type: textblock
8332 #: ../src/guestfs-actions.pod:2402 ../fish/guestfish-actions.pod:1627
8333 msgid "If no events have happened, this returns an empty list."
8334 msgstr ""
8335
8336 # type: textblock
8337 #: ../src/guestfs-actions.pod:2404 ../fish/guestfish-actions.pod:1629
8338 msgid ""
8339 "I<Note>: In order to make sure that all events have been read, you must call "
8340 "this function repeatedly until it returns an empty list.  The reason is that "
8341 "the call will read events up to the maximum appliance-to-host message size "
8342 "and leave remaining events in the queue."
8343 msgstr ""
8344
8345 # type: textblock
8346 #: ../src/guestfs-actions.pod:2410
8347 msgid ""
8348 "This function returns a C<struct guestfs_inotify_event_list *> (see "
8349 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8350 "must call C<guestfs_free_inotify_event_list> after use>."
8351 msgstr ""
8352
8353 # type: =head2
8354 #: ../src/guestfs-actions.pod:2417
8355 msgid "guestfs_inotify_rm_watch"
8356 msgstr ""
8357
8358 # type: verbatim
8359 #: ../src/guestfs-actions.pod:2419
8360 #, no-wrap
8361 msgid ""
8362 " int\n"
8363 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8364 "                           int wd);\n"
8365 "\n"
8366 msgstr ""
8367
8368 # type: textblock
8369 #: ../src/guestfs-actions.pod:2423
8370 msgid ""
8371 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8372 msgstr ""
8373
8374 # type: =head2
8375 #: ../src/guestfs-actions.pod:2430
8376 msgid "guestfs_inspect_get_arch"
8377 msgstr ""
8378
8379 # type: verbatim
8380 #: ../src/guestfs-actions.pod:2432
8381 #, no-wrap
8382 msgid ""
8383 " char *\n"
8384 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8385 "                           const char *root);\n"
8386 "\n"
8387 msgstr ""
8388
8389 # type: textblock
8390 #: ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2459
8391 #: ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2558
8392 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:2606
8393 #: ../src/guestfs-actions.pod:2639 ../src/guestfs-actions.pod:2663
8394 #: ../src/guestfs-actions.pod:2701
8395 msgid ""
8396 "This function should only be called with a root device string as returned by "
8397 "C<guestfs_inspect_os>."
8398 msgstr ""
8399
8400 # type: textblock
8401 #: ../src/guestfs-actions.pod:2439
8402 msgid ""
8403 "This returns the architecture of the inspected operating system.  The "
8404 "possible return values are listed under C<guestfs_file_architecture>."
8405 msgstr ""
8406
8407 # type: textblock
8408 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1653
8409 msgid ""
8410 "If the architecture could not be determined, then the string C<unknown> is "
8411 "returned."
8412 msgstr ""
8413
8414 # type: textblock
8415 #: ../src/guestfs-actions.pod:2446 ../src/guestfs-actions.pod:2519
8416 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2650
8417 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2711
8418 #: ../src/guestfs-actions.pod:2751 ../fish/guestfish-actions.pod:1656
8419 #: ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:1761
8420 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1847
8421 #: ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:1897
8422 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8423 msgstr ""
8424
8425 # type: =head2
8426 #: ../src/guestfs-actions.pod:2453
8427 msgid "guestfs_inspect_get_distro"
8428 msgstr ""
8429
8430 # type: verbatim
8431 #: ../src/guestfs-actions.pod:2455
8432 #, no-wrap
8433 msgid ""
8434 " char *\n"
8435 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8436 "                             const char *root);\n"
8437 "\n"
8438 msgstr ""
8439
8440 # type: textblock
8441 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1665
8442 msgid ""
8443 "This returns the distro (distribution) of the inspected operating system."
8444 msgstr ""
8445
8446 # type: textblock
8447 #: ../src/guestfs-actions.pod:2465 ../fish/guestfish-actions.pod:1668
8448 msgid "Currently defined distros are:"
8449 msgstr ""
8450
8451 # type: =item
8452 #: ../src/guestfs-actions.pod:2469 ../fish/guestfish-actions.pod:1672
8453 msgid "\"archlinux\""
8454 msgstr ""
8455
8456 # type: textblock
8457 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1674
8458 msgid "Arch Linux."
8459 msgstr ""
8460
8461 # type: =item
8462 #: ../src/guestfs-actions.pod:2473 ../fish/guestfish-actions.pod:1676
8463 msgid "\"debian\""
8464 msgstr ""
8465
8466 # type: textblock
8467 #: ../src/guestfs-actions.pod:2475 ../fish/guestfish-actions.pod:1678
8468 msgid "Debian or a Debian-derived distro such as Ubuntu."
8469 msgstr ""
8470
8471 # type: =item
8472 #: ../src/guestfs-actions.pod:2477 ../fish/guestfish-actions.pod:1680
8473 msgid "\"fedora\""
8474 msgstr ""
8475
8476 # type: textblock
8477 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1682
8478 msgid "Fedora."
8479 msgstr ""
8480
8481 # type: =item
8482 #: ../src/guestfs-actions.pod:2481 ../fish/guestfish-actions.pod:1684
8483 msgid "\"gentoo\""
8484 msgstr ""
8485
8486 # type: textblock
8487 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1686
8488 msgid "Gentoo."
8489 msgstr ""
8490
8491 # type: =item
8492 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1688
8493 msgid "\"meego\""
8494 msgstr ""
8495
8496 # type: textblock
8497 #: ../src/guestfs-actions.pod:2487 ../fish/guestfish-actions.pod:1690
8498 msgid "MeeGo."
8499 msgstr ""
8500
8501 # type: =item
8502 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1692
8503 msgid "\"pardus\""
8504 msgstr ""
8505
8506 # type: textblock
8507 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1694
8508 msgid "Pardus."
8509 msgstr ""
8510
8511 # type: =item
8512 #: ../src/guestfs-actions.pod:2493 ../fish/guestfish-actions.pod:1696
8513 msgid "\"redhat-based\""
8514 msgstr ""
8515
8516 # type: textblock
8517 #: ../src/guestfs-actions.pod:2495 ../fish/guestfish-actions.pod:1698
8518 msgid "Some Red Hat-derived distro."
8519 msgstr ""
8520
8521 # type: =item
8522 #: ../src/guestfs-actions.pod:2497 ../fish/guestfish-actions.pod:1700
8523 msgid "\"rhel\""
8524 msgstr ""
8525
8526 # type: textblock
8527 #: ../src/guestfs-actions.pod:2499 ../fish/guestfish-actions.pod:1702
8528 msgid "Red Hat Enterprise Linux and some derivatives."
8529 msgstr ""
8530
8531 # type: =item
8532 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2675
8533 #: ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1834
8534 msgid "\"windows\""
8535 msgstr ""
8536
8537 # type: textblock
8538 #: ../src/guestfs-actions.pod:2503 ../fish/guestfish-actions.pod:1706
8539 msgid ""
8540 "Windows does not have distributions.  This string is returned if the OS type "
8541 "is Windows."
8542 msgstr ""
8543
8544 # type: =item
8545 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1709
8546 msgid "\"ubuntu\""
8547 msgstr ""
8548
8549 # type: textblock
8550 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1711
8551 msgid "Ubuntu."
8552 msgstr ""
8553
8554 # type: =item
8555 #: ../src/guestfs-actions.pod:2510 ../src/guestfs-actions.pod:2679
8556 #: ../fish/guestfish-actions.pod:1713 ../fish/guestfish-actions.pod:1838
8557 msgid "\"unknown\""
8558 msgstr ""
8559
8560 # type: textblock
8561 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1715
8562 msgid "The distro could not be determined."
8563 msgstr ""
8564
8565 # type: textblock
8566 #: ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2685
8567 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1844
8568 msgid ""
8569 "Future versions of libguestfs may return other strings here.  The caller "
8570 "should be prepared to handle any string."
8571 msgstr ""
8572
8573 # type: =head2
8574 #: ../src/guestfs-actions.pod:2526
8575 msgid "guestfs_inspect_get_filesystems"
8576 msgstr ""
8577
8578 # type: verbatim
8579 #: ../src/guestfs-actions.pod:2528
8580 #, no-wrap
8581 msgid ""
8582 " char **\n"
8583 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8584 "                                  const char *root);\n"
8585 "\n"
8586 msgstr ""
8587
8588 # type: textblock
8589 #: ../src/guestfs-actions.pod:2535 ../fish/guestfish-actions.pod:1731
8590 msgid ""
8591 "This returns a list of all the filesystems that we think are associated with "
8592 "this operating system.  This includes the root filesystem, other ordinary "
8593 "filesystems, and non-mounted devices like swap partitions."
8594 msgstr ""
8595
8596 # type: textblock
8597 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1736
8598 msgid ""
8599 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8600 "to be shared between operating systems."
8601 msgstr ""
8602
8603 # type: textblock
8604 #: ../src/guestfs-actions.pod:2543
8605 msgid ""
8606 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8607 "C<guestfs_inspect_get_mountpoints>."
8608 msgstr ""
8609
8610 # type: =head2
8611 #: ../src/guestfs-actions.pod:2552
8612 msgid "guestfs_inspect_get_major_version"
8613 msgstr ""
8614
8615 # type: verbatim
8616 #: ../src/guestfs-actions.pod:2554
8617 #, no-wrap
8618 msgid ""
8619 " int\n"
8620 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8621 "                                    const char *root);\n"
8622 "\n"
8623 msgstr ""
8624
8625 # type: textblock
8626 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1749
8627 msgid ""
8628 "This returns the major version number of the inspected operating system."
8629 msgstr ""
8630
8631 # type: textblock
8632 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1752
8633 msgid ""
8634 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8635 "popular public names used by the operating system.  Notably the operating "
8636 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8637 "1).  You can find out the real versions corresponding to releases of Windows "
8638 "by consulting Wikipedia or MSDN."
8639 msgstr ""
8640
8641 # type: textblock
8642 #: ../src/guestfs-actions.pod:2571 ../src/guestfs-actions.pod:2591
8643 #: ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1773
8644 msgid "If the version could not be determined, then C<0> is returned."
8645 msgstr ""
8646
8647 # type: =head2
8648 #: ../src/guestfs-actions.pod:2579
8649 msgid "guestfs_inspect_get_minor_version"
8650 msgstr ""
8651
8652 # type: verbatim
8653 #: ../src/guestfs-actions.pod:2581
8654 #, no-wrap
8655 msgid ""
8656 " int\n"
8657 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8658 "                                    const char *root);\n"
8659 "\n"
8660 msgstr ""
8661
8662 # type: textblock
8663 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1770
8664 msgid ""
8665 "This returns the minor version number of the inspected operating system."
8666 msgstr ""
8667
8668 # type: textblock
8669 #: ../src/guestfs-actions.pod:2593
8670 msgid ""
8671 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8672 "C<guestfs_inspect_get_major_version>."
8673 msgstr ""
8674
8675 # type: =head2
8676 #: ../src/guestfs-actions.pod:2600
8677 msgid "guestfs_inspect_get_mountpoints"
8678 msgstr ""
8679
8680 # type: verbatim
8681 #: ../src/guestfs-actions.pod:2602
8682 #, no-wrap
8683 msgid ""
8684 " char **\n"
8685 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8686 "                                  const char *root);\n"
8687 "\n"
8688 msgstr ""
8689
8690 # type: textblock
8691 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1785
8692 msgid ""
8693 "This returns a hash of where we think the filesystems associated with this "
8694 "operating system should be mounted.  Callers should note that this is at "
8695 "best an educated guess made by reading configuration files such as C</etc/"
8696 "fstab>."
8697 msgstr ""
8698
8699 # type: textblock
8700 #: ../src/guestfs-actions.pod:2614 ../fish/guestfish-actions.pod:1790
8701 msgid ""
8702 "Each element in the returned hashtable has a key which is the path of the "
8703 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8704 "mounted there (eg. C</dev/sda1>)."
8705 msgstr ""
8706
8707 # type: textblock
8708 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1795
8709 msgid ""
8710 "Non-mounted devices such as swap devices are I<not> returned in this list."
8711 msgstr ""
8712
8713 # type: textblock
8714 #: ../src/guestfs-actions.pod:2622
8715 msgid ""
8716 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8717 "C<guestfs_inspect_get_filesystems>."
8718 msgstr ""
8719
8720 # type: textblock
8721 #: ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3051
8722 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:6041
8723 msgid ""
8724 "This function returns a NULL-terminated array of strings, or NULL if there "
8725 "was an error.  The array of strings will always have length C<2n+1>, where "
8726 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8727 "caller must free the strings and the array after use>."
8728 msgstr ""
8729
8730 # type: =head2
8731 #: ../src/guestfs-actions.pod:2633
8732 msgid "guestfs_inspect_get_product_name"
8733 msgstr ""
8734
8735 # type: verbatim
8736 #: ../src/guestfs-actions.pod:2635
8737 #, no-wrap
8738 msgid ""
8739 " char *\n"
8740 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8741 "                                   const char *root);\n"
8742 "\n"
8743 msgstr ""
8744
8745 # type: textblock
8746 #: ../src/guestfs-actions.pod:2642 ../fish/guestfish-actions.pod:1808
8747 msgid ""
8748 "This returns the product name of the inspected operating system.  The "
8749 "product name is generally some freeform string which can be displayed to the "
8750 "user, but should not be parsed by programs."
8751 msgstr ""
8752
8753 # type: textblock
8754 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1813
8755 msgid ""
8756 "If the product name could not be determined, then the string C<unknown> is "
8757 "returned."
8758 msgstr ""
8759
8760 # type: =head2
8761 #: ../src/guestfs-actions.pod:2657
8762 msgid "guestfs_inspect_get_type"
8763 msgstr ""
8764
8765 # type: verbatim
8766 #: ../src/guestfs-actions.pod:2659
8767 #, no-wrap
8768 msgid ""
8769 " char *\n"
8770 " guestfs_inspect_get_type (guestfs_h *g,\n"
8771 "                           const char *root);\n"
8772 "\n"
8773 msgstr ""
8774
8775 # type: textblock
8776 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:1825
8777 msgid ""
8778 "This returns the type of the inspected operating system.  Currently defined "
8779 "types are:"
8780 msgstr ""
8781
8782 # type: =item
8783 #: ../src/guestfs-actions.pod:2671 ../fish/guestfish-actions.pod:1830
8784 msgid "\"linux\""
8785 msgstr ""
8786
8787 # type: textblock
8788 #: ../src/guestfs-actions.pod:2673 ../fish/guestfish-actions.pod:1832
8789 msgid "Any Linux-based operating system."
8790 msgstr ""
8791
8792 # type: textblock
8793 #: ../src/guestfs-actions.pod:2677 ../fish/guestfish-actions.pod:1836
8794 msgid "Any Microsoft Windows operating system."
8795 msgstr ""
8796
8797 # type: textblock
8798 #: ../src/guestfs-actions.pod:2681 ../fish/guestfish-actions.pod:1840
8799 msgid "The operating system type could not be determined."
8800 msgstr ""
8801
8802 # type: =head2
8803 #: ../src/guestfs-actions.pod:2695
8804 msgid "guestfs_inspect_get_windows_systemroot"
8805 msgstr ""
8806
8807 # type: verbatim
8808 #: ../src/guestfs-actions.pod:2697
8809 #, no-wrap
8810 msgid ""
8811 " char *\n"
8812 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8813 "                                         const char *root);\n"
8814 "\n"
8815 msgstr ""
8816
8817 # type: textblock
8818 #: ../src/guestfs-actions.pod:2704 ../fish/guestfish-actions.pod:1856
8819 msgid ""
8820 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8821 "is a directory path such as C</WINDOWS>."
8822 msgstr ""
8823
8824 # type: textblock
8825 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1859
8826 msgid ""
8827 "This call assumes that the guest is Windows and that the systemroot could be "
8828 "determined by inspection.  If this is not the case then an error is returned."
8829 msgstr ""
8830
8831 # type: textblock
8832 #: ../src/guestfs-actions.pod:2716
8833 msgid "(Added in 1.5.25)"
8834 msgstr ""
8835
8836 # type: =head2
8837 #: ../src/guestfs-actions.pod:2718
8838 msgid "guestfs_inspect_os"
8839 msgstr ""
8840
8841 # type: verbatim
8842 #: ../src/guestfs-actions.pod:2720
8843 #, no-wrap
8844 msgid ""
8845 " char **\n"
8846 " guestfs_inspect_os (guestfs_h *g);\n"
8847 "\n"
8848 msgstr ""
8849
8850 # type: textblock
8851 #: ../src/guestfs-actions.pod:2723 ../fish/guestfish-actions.pod:1869
8852 msgid ""
8853 "This function uses other libguestfs functions and certain heuristics to "
8854 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8855 "for operating systems."
8856 msgstr ""
8857
8858 # type: textblock
8859 #: ../src/guestfs-actions.pod:2727 ../fish/guestfish-actions.pod:1873
8860 msgid "The list returned is empty if no operating systems were found."
8861 msgstr ""
8862
8863 # type: textblock
8864 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:1875
8865 msgid ""
8866 "If one operating system was found, then this returns a list with a single "
8867 "element, which is the name of the root filesystem of this operating system.  "
8868 "It is also possible for this function to return a list containing more than "
8869 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8870 "element being the root filesystem of one of the operating systems."
8871 msgstr ""
8872
8873 # type: textblock
8874 #: ../src/guestfs-actions.pod:2736
8875 msgid ""
8876 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8877 "functions in order to query further information about each operating system, "
8878 "such as the name and version."
8879 msgstr ""
8880
8881 # type: textblock
8882 #: ../src/guestfs-actions.pod:2741
8883 msgid ""
8884 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8885 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8886 "the contents.  This should be called with no disks currently mounted.  The "
8887 "function may also use Augeas, so any existing Augeas handle will be closed."
8888 msgstr ""
8889
8890 # type: textblock
8891 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1893
8892 msgid ""
8893 "This function cannot decrypt encrypted disks.  The caller must do that first "
8894 "(supplying the necessary keys) if the disk is encrypted."
8895 msgstr ""
8896
8897 # type: textblock
8898 #: ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:3009
8899 #: ../src/guestfs-actions.pod:3071
8900 msgid "See also C<guestfs_list_filesystems>."
8901 msgstr ""
8902
8903 # type: =head2
8904 #: ../src/guestfs-actions.pod:2761
8905 msgid "guestfs_is_blockdev"
8906 msgstr ""
8907
8908 # type: verbatim
8909 #: ../src/guestfs-actions.pod:2763
8910 #, no-wrap
8911 msgid ""
8912 " int\n"
8913 " guestfs_is_blockdev (guestfs_h *g,\n"
8914 "                      const char *path);\n"
8915 "\n"
8916 msgstr ""
8917
8918 # type: textblock
8919 #: ../src/guestfs-actions.pod:2767 ../fish/guestfish-actions.pod:1905
8920 msgid ""
8921 "This returns C<true> if and only if there is a block device with the given "
8922 "C<path> name."
8923 msgstr ""
8924
8925 # type: textblock
8926 #: ../src/guestfs-actions.pod:2770 ../src/guestfs-actions.pod:2799
8927 #: ../src/guestfs-actions.pod:2829 ../src/guestfs-actions.pod:2844
8928 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2916
8929 #: ../src/guestfs-actions.pod:2931
8930 msgid "See also C<guestfs_stat>."
8931 msgstr ""
8932
8933 # type: textblock
8934 #: ../src/guestfs-actions.pod:2774 ../src/guestfs-actions.pod:2803
8935 #: ../src/guestfs-actions.pod:2848 ../src/guestfs-actions.pod:2920
8936 #: ../src/guestfs-actions.pod:2935
8937 msgid "(Added in 1.5.10)"
8938 msgstr ""
8939
8940 # type: =head2
8941 #: ../src/guestfs-actions.pod:2776
8942 msgid "guestfs_is_busy"
8943 msgstr ""
8944
8945 # type: verbatim
8946 #: ../src/guestfs-actions.pod:2778
8947 #, no-wrap
8948 msgid ""
8949 " int\n"
8950 " guestfs_is_busy (guestfs_h *g);\n"
8951 "\n"
8952 msgstr ""
8953
8954 # type: textblock
8955 #: ../src/guestfs-actions.pod:2781 ../fish/guestfish-actions.pod:1914
8956 msgid ""
8957 "This returns true iff this handle is busy processing a command (in the "
8958 "C<BUSY> state)."
8959 msgstr ""
8960
8961 # type: =head2
8962 #: ../src/guestfs-actions.pod:2790
8963 msgid "guestfs_is_chardev"
8964 msgstr ""
8965
8966 # type: verbatim
8967 #: ../src/guestfs-actions.pod:2792
8968 #, no-wrap
8969 msgid ""
8970 " int\n"
8971 " guestfs_is_chardev (guestfs_h *g,\n"
8972 "                     const char *path);\n"
8973 "\n"
8974 msgstr ""
8975
8976 # type: textblock
8977 #: ../src/guestfs-actions.pod:2796 ../fish/guestfish-actions.pod:1923
8978 msgid ""
8979 "This returns C<true> if and only if there is a character device with the "
8980 "given C<path> name."
8981 msgstr ""
8982
8983 # type: =head2
8984 #: ../src/guestfs-actions.pod:2805
8985 msgid "guestfs_is_config"
8986 msgstr ""
8987
8988 # type: verbatim
8989 #: ../src/guestfs-actions.pod:2807
8990 #, no-wrap
8991 msgid ""
8992 " int\n"
8993 " guestfs_is_config (guestfs_h *g);\n"
8994 "\n"
8995 msgstr ""
8996
8997 # type: textblock
8998 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1932
8999 msgid ""
9000 "This returns true iff this handle is being configured (in the C<CONFIG> "
9001 "state)."
9002 msgstr ""
9003
9004 # type: =head2
9005 #: ../src/guestfs-actions.pod:2819
9006 msgid "guestfs_is_dir"
9007 msgstr ""
9008
9009 # type: verbatim
9010 #: ../src/guestfs-actions.pod:2821
9011 #, no-wrap
9012 msgid ""
9013 " int\n"
9014 " guestfs_is_dir (guestfs_h *g,\n"
9015 "                 const char *path);\n"
9016 "\n"
9017 msgstr ""
9018
9019 # type: textblock
9020 #: ../src/guestfs-actions.pod:2825 ../fish/guestfish-actions.pod:1941
9021 msgid ""
9022 "This returns C<true> if and only if there is a directory with the given "
9023 "C<path> name.  Note that it returns false for other objects like files."
9024 msgstr ""
9025
9026 # type: =head2
9027 #: ../src/guestfs-actions.pod:2835
9028 msgid "guestfs_is_fifo"
9029 msgstr ""
9030
9031 # type: verbatim
9032 #: ../src/guestfs-actions.pod:2837
9033 #, no-wrap
9034 msgid ""
9035 " int\n"
9036 " guestfs_is_fifo (guestfs_h *g,\n"
9037 "                  const char *path);\n"
9038 "\n"
9039 msgstr ""
9040
9041 # type: textblock
9042 #: ../src/guestfs-actions.pod:2841 ../fish/guestfish-actions.pod:1951
9043 msgid ""
9044 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9045 "given C<path> name."
9046 msgstr ""
9047
9048 # type: =head2
9049 #: ../src/guestfs-actions.pod:2850
9050 msgid "guestfs_is_file"
9051 msgstr ""
9052
9053 # type: verbatim
9054 #: ../src/guestfs-actions.pod:2852
9055 #, no-wrap
9056 msgid ""
9057 " int\n"
9058 " guestfs_is_file (guestfs_h *g,\n"
9059 "                  const char *path);\n"
9060 "\n"
9061 msgstr ""
9062
9063 # type: textblock
9064 #: ../src/guestfs-actions.pod:2856 ../fish/guestfish-actions.pod:1960
9065 msgid ""
9066 "This returns C<true> if and only if there is a regular file with the given "
9067 "C<path> name.  Note that it returns false for other objects like directories."
9068 msgstr ""
9069
9070 # type: =head2
9071 #: ../src/guestfs-actions.pod:2866
9072 msgid "guestfs_is_launching"
9073 msgstr ""
9074
9075 # type: verbatim
9076 #: ../src/guestfs-actions.pod:2868
9077 #, no-wrap
9078 msgid ""
9079 " int\n"
9080 " guestfs_is_launching (guestfs_h *g);\n"
9081 "\n"
9082 msgstr ""
9083
9084 # type: textblock
9085 #: ../src/guestfs-actions.pod:2871 ../fish/guestfish-actions.pod:1970
9086 msgid ""
9087 "This returns true iff this handle is launching the subprocess (in the "
9088 "C<LAUNCHING> state)."
9089 msgstr ""
9090
9091 # type: =head2
9092 #: ../src/guestfs-actions.pod:2880
9093 msgid "guestfs_is_lv"
9094 msgstr ""
9095
9096 # type: verbatim
9097 #: ../src/guestfs-actions.pod:2882
9098 #, no-wrap
9099 msgid ""
9100 " int\n"
9101 " guestfs_is_lv (guestfs_h *g,\n"
9102 "                const char *device);\n"
9103 "\n"
9104 msgstr ""
9105
9106 # type: textblock
9107 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1979
9108 msgid ""
9109 "This command tests whether C<device> is a logical volume, and returns true "
9110 "iff this is the case."
9111 msgstr ""
9112
9113 # type: =head2
9114 #: ../src/guestfs-actions.pod:2893
9115 msgid "guestfs_is_ready"
9116 msgstr ""
9117
9118 # type: verbatim
9119 #: ../src/guestfs-actions.pod:2895
9120 #, no-wrap
9121 msgid ""
9122 " int\n"
9123 " guestfs_is_ready (guestfs_h *g);\n"
9124 "\n"
9125 msgstr ""
9126
9127 # type: textblock
9128 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1986
9129 msgid ""
9130 "This returns true iff this handle is ready to accept commands (in the "
9131 "C<READY> state)."
9132 msgstr ""
9133
9134 # type: =head2
9135 #: ../src/guestfs-actions.pod:2907
9136 msgid "guestfs_is_socket"
9137 msgstr ""
9138
9139 # type: verbatim
9140 #: ../src/guestfs-actions.pod:2909
9141 #, no-wrap
9142 msgid ""
9143 " int\n"
9144 " guestfs_is_socket (guestfs_h *g,\n"
9145 "                    const char *path);\n"
9146 "\n"
9147 msgstr ""
9148
9149 # type: textblock
9150 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:1995
9151 msgid ""
9152 "This returns C<true> if and only if there is a Unix domain socket with the "
9153 "given C<path> name."
9154 msgstr ""
9155
9156 # type: =head2
9157 #: ../src/guestfs-actions.pod:2922
9158 msgid "guestfs_is_symlink"
9159 msgstr ""
9160
9161 # type: verbatim
9162 #: ../src/guestfs-actions.pod:2924
9163 #, no-wrap
9164 msgid ""
9165 " int\n"
9166 " guestfs_is_symlink (guestfs_h *g,\n"
9167 "                     const char *path);\n"
9168 "\n"
9169 msgstr ""
9170
9171 # type: textblock
9172 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2004
9173 msgid ""
9174 "This returns C<true> if and only if there is a symbolic link with the given "
9175 "C<path> name."
9176 msgstr ""
9177
9178 # type: =head2
9179 #: ../src/guestfs-actions.pod:2937
9180 msgid "guestfs_kill_subprocess"
9181 msgstr ""
9182
9183 # type: verbatim
9184 #: ../src/guestfs-actions.pod:2939
9185 #, no-wrap
9186 msgid ""
9187 " int\n"
9188 " guestfs_kill_subprocess (guestfs_h *g);\n"
9189 "\n"
9190 msgstr ""
9191
9192 # type: textblock
9193 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2013
9194 msgid "This kills the qemu subprocess.  You should never need to call this."
9195 msgstr ""
9196
9197 # type: =head2
9198 #: ../src/guestfs-actions.pod:2948
9199 msgid "guestfs_launch"
9200 msgstr ""
9201
9202 # type: verbatim
9203 #: ../src/guestfs-actions.pod:2950
9204 #, no-wrap
9205 msgid ""
9206 " int\n"
9207 " guestfs_launch (guestfs_h *g);\n"
9208 "\n"
9209 msgstr ""
9210
9211 # type: textblock
9212 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2021
9213 msgid ""
9214 "Internally libguestfs is implemented by running a virtual machine using "
9215 "L<qemu(1)>."
9216 msgstr ""
9217
9218 # type: textblock
9219 #: ../src/guestfs-actions.pod:2956 ../fish/guestfish-actions.pod:2024
9220 msgid ""
9221 "You should call this after configuring the handle (eg. adding drives) but "
9222 "before performing any actions."
9223 msgstr ""
9224
9225 # type: =head2
9226 #: ../src/guestfs-actions.pod:2963
9227 msgid "guestfs_lchown"
9228 msgstr ""
9229
9230 # type: verbatim
9231 #: ../src/guestfs-actions.pod:2965
9232 #, no-wrap
9233 msgid ""
9234 " int\n"
9235 " guestfs_lchown (guestfs_h *g,\n"
9236 "                 int owner,\n"
9237 "                 int group,\n"
9238 "                 const char *path);\n"
9239 "\n"
9240 msgstr ""
9241
9242 # type: textblock
9243 #: ../src/guestfs-actions.pod:2971
9244 msgid ""
9245 "Change the file owner to C<owner> and group to C<group>.  This is like "
9246 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9247 "changed, not the target."
9248 msgstr ""
9249
9250 # type: =head2
9251 #: ../src/guestfs-actions.pod:2983
9252 msgid "guestfs_lgetxattrs"
9253 msgstr ""
9254
9255 # type: verbatim
9256 #: ../src/guestfs-actions.pod:2985
9257 #, no-wrap
9258 msgid ""
9259 " struct guestfs_xattr_list *\n"
9260 " guestfs_lgetxattrs (guestfs_h *g,\n"
9261 "                     const char *path);\n"
9262 "\n"
9263 msgstr ""
9264
9265 # type: textblock
9266 #: ../src/guestfs-actions.pod:2989
9267 msgid ""
9268 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9269 "then it returns the extended attributes of the link itself."
9270 msgstr ""
9271
9272 # type: =head2
9273 #: ../src/guestfs-actions.pod:3000
9274 msgid "guestfs_list_devices"
9275 msgstr ""
9276
9277 # type: verbatim
9278 #: ../src/guestfs-actions.pod:3002
9279 #, no-wrap
9280 msgid ""
9281 " char **\n"
9282 " guestfs_list_devices (guestfs_h *g);\n"
9283 "\n"
9284 msgstr ""
9285
9286 # type: textblock
9287 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2051
9288 msgid "List all the block devices."
9289 msgstr ""
9290
9291 # type: textblock
9292 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2053
9293 msgid "The full block device names are returned, eg. C</dev/sda>."
9294 msgstr ""
9295
9296 # type: =head2
9297 #: ../src/guestfs-actions.pod:3017
9298 msgid "guestfs_list_filesystems"
9299 msgstr ""
9300
9301 # type: verbatim
9302 #: ../src/guestfs-actions.pod:3019
9303 #, no-wrap
9304 msgid ""
9305 " char **\n"
9306 " guestfs_list_filesystems (guestfs_h *g);\n"
9307 "\n"
9308 msgstr ""
9309
9310 # type: textblock
9311 #: ../src/guestfs-actions.pod:3022 ../fish/guestfish-actions.pod:2061
9312 msgid ""
9313 "This inspection command looks for filesystems on partitions, block devices "
9314 "and logical volumes, returning a list of devices containing filesystems and "
9315 "their type."
9316 msgstr ""
9317
9318 # type: textblock
9319 #: ../src/guestfs-actions.pod:3026 ../fish/guestfish-actions.pod:2065
9320 msgid ""
9321 "The return value is a hash, where the keys are the devices containing "
9322 "filesystems, and the values are the filesystem types.  For example:"
9323 msgstr ""
9324
9325 # type: verbatim
9326 #: ../src/guestfs-actions.pod:3030 ../fish/guestfish-actions.pod:2069
9327 #, no-wrap
9328 msgid ""
9329 " \"/dev/sda1\" => \"ntfs\"\n"
9330 " \"/dev/sda2\" => \"ext2\"\n"
9331 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9332 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9333 "\n"
9334 msgstr ""
9335
9336 # type: textblock
9337 #: ../src/guestfs-actions.pod:3035 ../fish/guestfish-actions.pod:2074
9338 msgid ""
9339 "The value can have the special value \"unknown\", meaning the content of the "
9340 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9341 msgstr ""
9342
9343 # type: textblock
9344 #: ../src/guestfs-actions.pod:3039
9345 msgid ""
9346 "This command runs other libguestfs commands, which might include "
9347 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9348 "soon after launch and only when nothing is mounted."
9349 msgstr ""
9350
9351 # type: textblock
9352 #: ../src/guestfs-actions.pod:3043
9353 msgid ""
9354 "Not all of the filesystems returned will be mountable.  In particular, swap "
9355 "partitions are returned in the list.  Also this command does not check that "
9356 "each filesystem found is valid and mountable, and some filesystems might be "
9357 "mountable but require special options.  Filesystems may not all belong to a "
9358 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
9359 msgstr ""
9360
9361 # type: textblock
9362 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:4584
9363 msgid "(Added in 1.5.15)"
9364 msgstr ""
9365
9366 # type: =head2
9367 #: ../src/guestfs-actions.pod:3059
9368 msgid "guestfs_list_partitions"
9369 msgstr ""
9370
9371 # type: verbatim
9372 #: ../src/guestfs-actions.pod:3061
9373 #, no-wrap
9374 msgid ""
9375 " char **\n"
9376 " guestfs_list_partitions (guestfs_h *g);\n"
9377 "\n"
9378 msgstr ""
9379
9380 # type: textblock
9381 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2094
9382 msgid "List all the partitions detected on all block devices."
9383 msgstr ""
9384
9385 # type: textblock
9386 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2096
9387 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9388 msgstr ""
9389
9390 # type: textblock
9391 #: ../src/guestfs-actions.pod:3068
9392 msgid ""
9393 "This does not return logical volumes.  For that you will need to call "
9394 "C<guestfs_lvs>."
9395 msgstr ""
9396
9397 # type: =head2
9398 #: ../src/guestfs-actions.pod:3079
9399 msgid "guestfs_ll"
9400 msgstr ""
9401
9402 # type: verbatim
9403 #: ../src/guestfs-actions.pod:3081
9404 #, no-wrap
9405 msgid ""
9406 " char *\n"
9407 " guestfs_ll (guestfs_h *g,\n"
9408 "             const char *directory);\n"
9409 "\n"
9410 msgstr ""
9411
9412 # type: textblock
9413 #: ../src/guestfs-actions.pod:3085 ../fish/guestfish-actions.pod:2107
9414 msgid ""
9415 "List the files in C<directory> (relative to the root directory, there is no "
9416 "cwd) in the format of 'ls -la'."
9417 msgstr ""
9418
9419 # type: textblock
9420 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2110
9421 msgid ""
9422 "This command is mostly useful for interactive sessions.  It is I<not> "
9423 "intended that you try to parse the output string."
9424 msgstr ""
9425
9426 # type: =head2
9427 #: ../src/guestfs-actions.pod:3096
9428 msgid "guestfs_ln"
9429 msgstr ""
9430
9431 # type: verbatim
9432 #: ../src/guestfs-actions.pod:3098
9433 #, no-wrap
9434 msgid ""
9435 " int\n"
9436 " guestfs_ln (guestfs_h *g,\n"
9437 "             const char *target,\n"
9438 "             const char *linkname);\n"
9439 "\n"
9440 msgstr ""
9441
9442 # type: textblock
9443 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2117
9444 msgid "This command creates a hard link using the C<ln> command."
9445 msgstr ""
9446
9447 # type: =head2
9448 #: ../src/guestfs-actions.pod:3109
9449 msgid "guestfs_ln_f"
9450 msgstr ""
9451
9452 # type: verbatim
9453 #: ../src/guestfs-actions.pod:3111
9454 #, no-wrap
9455 msgid ""
9456 " int\n"
9457 " guestfs_ln_f (guestfs_h *g,\n"
9458 "               const char *target,\n"
9459 "               const char *linkname);\n"
9460 "\n"
9461 msgstr ""
9462
9463 # type: textblock
9464 #: ../src/guestfs-actions.pod:3116 ../fish/guestfish-actions.pod:2123
9465 msgid ""
9466 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9467 "option removes the link (C<linkname>) if it exists already."
9468 msgstr ""
9469
9470 # type: =head2
9471 #: ../src/guestfs-actions.pod:3123
9472 msgid "guestfs_ln_s"
9473 msgstr ""
9474
9475 # type: verbatim
9476 #: ../src/guestfs-actions.pod:3125
9477 #, no-wrap
9478 msgid ""
9479 " int\n"
9480 " guestfs_ln_s (guestfs_h *g,\n"
9481 "               const char *target,\n"
9482 "               const char *linkname);\n"
9483 "\n"
9484 msgstr ""
9485
9486 # type: textblock
9487 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2130
9488 msgid "This command creates a symbolic link using the C<ln -s> command."
9489 msgstr ""
9490
9491 # type: =head2
9492 #: ../src/guestfs-actions.pod:3136
9493 msgid "guestfs_ln_sf"
9494 msgstr ""
9495
9496 # type: verbatim
9497 #: ../src/guestfs-actions.pod:3138
9498 #, no-wrap
9499 msgid ""
9500 " int\n"
9501 " guestfs_ln_sf (guestfs_h *g,\n"
9502 "                const char *target,\n"
9503 "                const char *linkname);\n"
9504 "\n"
9505 msgstr ""
9506
9507 # type: textblock
9508 #: ../src/guestfs-actions.pod:3143 ../fish/guestfish-actions.pod:2136
9509 msgid ""
9510 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9511 "option removes the link (C<linkname>) if it exists already."
9512 msgstr ""
9513
9514 # type: =head2
9515 #: ../src/guestfs-actions.pod:3150
9516 msgid "guestfs_lremovexattr"
9517 msgstr ""
9518
9519 # type: verbatim
9520 #: ../src/guestfs-actions.pod:3152
9521 #, no-wrap
9522 msgid ""
9523 " int\n"
9524 " guestfs_lremovexattr (guestfs_h *g,\n"
9525 "                       const char *xattr,\n"
9526 "                       const char *path);\n"
9527 "\n"
9528 msgstr ""
9529
9530 # type: textblock
9531 #: ../src/guestfs-actions.pod:3157
9532 msgid ""
9533 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9534 "link, then it removes an extended attribute of the link itself."
9535 msgstr ""
9536
9537 # type: =head2
9538 #: ../src/guestfs-actions.pod:3165
9539 msgid "guestfs_ls"
9540 msgstr ""
9541
9542 # type: verbatim
9543 #: ../src/guestfs-actions.pod:3167
9544 #, no-wrap
9545 msgid ""
9546 " char **\n"
9547 " guestfs_ls (guestfs_h *g,\n"
9548 "             const char *directory);\n"
9549 "\n"
9550 msgstr ""
9551
9552 # type: textblock
9553 #: ../src/guestfs-actions.pod:3171 ../fish/guestfish-actions.pod:2151
9554 msgid ""
9555 "List the files in C<directory> (relative to the root directory, there is no "
9556 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9557 msgstr ""
9558
9559 # type: textblock
9560 #: ../src/guestfs-actions.pod:3175
9561 msgid ""
9562 "This command is mostly useful for interactive sessions.  Programs should "
9563 "probably use C<guestfs_readdir> instead."
9564 msgstr ""
9565
9566 # type: =head2
9567 #: ../src/guestfs-actions.pod:3184
9568 msgid "guestfs_lsetxattr"
9569 msgstr ""
9570
9571 # type: verbatim
9572 #: ../src/guestfs-actions.pod:3186
9573 #, no-wrap
9574 msgid ""
9575 " int\n"
9576 " guestfs_lsetxattr (guestfs_h *g,\n"
9577 "                    const char *xattr,\n"
9578 "                    const char *val,\n"
9579 "                    int vallen,\n"
9580 "                    const char *path);\n"
9581 "\n"
9582 msgstr ""
9583
9584 # type: textblock
9585 #: ../src/guestfs-actions.pod:3193
9586 msgid ""
9587 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9588 "then it sets an extended attribute of the link itself."
9589 msgstr ""
9590
9591 # type: =head2
9592 #: ../src/guestfs-actions.pod:3201
9593 msgid "guestfs_lstat"
9594 msgstr ""
9595
9596 # type: verbatim
9597 #: ../src/guestfs-actions.pod:3203
9598 #, no-wrap
9599 msgid ""
9600 " struct guestfs_stat *\n"
9601 " guestfs_lstat (guestfs_h *g,\n"
9602 "                const char *path);\n"
9603 "\n"
9604 msgstr ""
9605
9606 # type: textblock
9607 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:5640
9608 #: ../fish/guestfish-actions.pod:2170 ../fish/guestfish-actions.pod:3752
9609 msgid "Returns file information for the given C<path>."
9610 msgstr ""
9611
9612 # type: textblock
9613 #: ../src/guestfs-actions.pod:3209
9614 msgid ""
9615 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9616 "link, then the link is stat-ed, not the file it refers to."
9617 msgstr ""
9618
9619 # type: textblock
9620 #: ../src/guestfs-actions.pod:3213 ../fish/guestfish-actions.pod:2176
9621 msgid "This is the same as the C<lstat(2)> system call."
9622 msgstr ""
9623
9624 # type: textblock
9625 #: ../src/guestfs-actions.pod:3215 ../src/guestfs-actions.pod:5644
9626 msgid ""
9627 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9628 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9629 msgstr ""
9630
9631 # type: textblock
9632 #: ../src/guestfs-actions.pod:3219 ../src/guestfs-actions.pod:5648
9633 #: ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:6047
9634 msgid "(Added in 0.9.2)"
9635 msgstr ""
9636
9637 # type: =head2
9638 #: ../src/guestfs-actions.pod:3221
9639 msgid "guestfs_lstatlist"
9640 msgstr ""
9641
9642 # type: verbatim
9643 #: ../src/guestfs-actions.pod:3223
9644 #, no-wrap
9645 msgid ""
9646 " struct guestfs_stat_list *\n"
9647 " guestfs_lstatlist (guestfs_h *g,\n"
9648 "                    const char *path,\n"
9649 "                    char *const *names);\n"
9650 "\n"
9651 msgstr ""
9652
9653 # type: textblock
9654 #: ../src/guestfs-actions.pod:3228
9655 msgid ""
9656 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9657 "files, where all files are in the directory C<path>.  C<names> is the list "
9658 "of files from this directory."
9659 msgstr ""
9660
9661 # type: textblock
9662 #: ../src/guestfs-actions.pod:3232 ../fish/guestfish-actions.pod:2186
9663 msgid ""
9664 "On return you get a list of stat structs, with a one-to-one correspondence "
9665 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9666 "then the C<ino> field of that structure is set to C<-1>."
9667 msgstr ""
9668
9669 # type: textblock
9670 #: ../src/guestfs-actions.pod:3237
9671 msgid ""
9672 "This call is intended for programs that want to efficiently list a directory "
9673 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9674 "for a similarly efficient call for getting extended attributes.  Very long "
9675 "directory listings might cause the protocol message size to be exceeded, "
9676 "causing this call to fail.  The caller must split up such requests into "
9677 "smaller groups of names."
9678 msgstr ""
9679
9680 # type: textblock
9681 #: ../src/guestfs-actions.pod:3245
9682 msgid ""
9683 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
9684 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9685 "C<guestfs_free_stat_list> after use>."
9686 msgstr ""
9687
9688 # type: =head2
9689 #: ../src/guestfs-actions.pod:3252
9690 msgid "guestfs_luks_add_key"
9691 msgstr ""
9692
9693 # type: verbatim
9694 #: ../src/guestfs-actions.pod:3254
9695 #, no-wrap
9696 msgid ""
9697 " int\n"
9698 " guestfs_luks_add_key (guestfs_h *g,\n"
9699 "                       const char *device,\n"
9700 "                       const char *key,\n"
9701 "                       const char *newkey,\n"
9702 "                       int keyslot);\n"
9703 "\n"
9704 msgstr ""
9705
9706 # type: textblock
9707 #: ../src/guestfs-actions.pod:3261 ../fish/guestfish-actions.pod:2203
9708 msgid ""
9709 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9710 "existing key, and is used to access the device.  C<newkey> is the new key to "
9711 "add.  C<keyslot> is the key slot that will be replaced."
9712 msgstr ""
9713
9714 # type: textblock
9715 #: ../src/guestfs-actions.pod:3266
9716 msgid ""
9717 "Note that if C<keyslot> already contains a key, then this command will "
9718 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9719 msgstr ""
9720
9721 # type: textblock
9722 #: ../src/guestfs-actions.pod:3272 ../src/guestfs-actions.pod:3312
9723 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3355
9724 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3406
9725 msgid ""
9726 "This function takes a key or passphrase parameter which could contain "
9727 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9728 "information."
9729 msgstr ""
9730
9731 # type: textblock
9732 #: ../src/guestfs-actions.pod:3276 ../src/guestfs-actions.pod:3316
9733 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9734 msgid "(Added in 1.5.2)"
9735 msgstr ""
9736
9737 # type: =head2
9738 #: ../src/guestfs-actions.pod:3278
9739 msgid "guestfs_luks_close"
9740 msgstr ""
9741
9742 # type: verbatim
9743 #: ../src/guestfs-actions.pod:3280
9744 #, no-wrap
9745 msgid ""
9746 " int\n"
9747 " guestfs_luks_close (guestfs_h *g,\n"
9748 "                     const char *device);\n"
9749 "\n"
9750 msgstr ""
9751
9752 # type: textblock
9753 #: ../src/guestfs-actions.pod:3284
9754 msgid ""
9755 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9756 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9757 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9758 "underlying block device."
9759 msgstr ""
9760
9761 # type: textblock
9762 #: ../src/guestfs-actions.pod:3292 ../src/guestfs-actions.pod:3391
9763 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3460
9764 #: ../src/guestfs-actions.pod:3508
9765 msgid "(Added in 1.5.1)"
9766 msgstr ""
9767
9768 # type: =head2
9769 #: ../src/guestfs-actions.pod:3294
9770 msgid "guestfs_luks_format"
9771 msgstr ""
9772
9773 # type: verbatim
9774 #: ../src/guestfs-actions.pod:3296
9775 #, no-wrap
9776 msgid ""
9777 " int\n"
9778 " guestfs_luks_format (guestfs_h *g,\n"
9779 "                      const char *device,\n"
9780 "                      const char *key,\n"
9781 "                      int keyslot);\n"
9782 "\n"
9783 msgstr ""
9784
9785 # type: textblock
9786 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2229
9787 msgid ""
9788 "This command erases existing data on C<device> and formats the device as a "
9789 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9790 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9791 msgstr ""
9792
9793 # type: textblock
9794 #: ../src/guestfs-actions.pod:3309 ../src/guestfs-actions.pod:3332
9795 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:4334
9796 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5475
9797 #: ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5524
9798 #: ../src/guestfs-actions.pod:6675 ../fish/guestfish-actions.pod:2237
9799 #: ../fish/guestfish-actions.pod:2250 ../fish/guestfish-actions.pod:2334
9800 #: ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3371
9801 #: ../fish/guestfish-actions.pod:3651 ../fish/guestfish-actions.pod:3667
9802 #: ../fish/guestfish-actions.pod:3682 ../fish/guestfish-actions.pod:4397
9803 msgid ""
9804 "B<This command is dangerous.  Without careful use you can easily destroy all "
9805 "your data>."
9806 msgstr ""
9807
9808 # type: =head2
9809 #: ../src/guestfs-actions.pod:3318
9810 msgid "guestfs_luks_format_cipher"
9811 msgstr ""
9812
9813 # type: verbatim
9814 #: ../src/guestfs-actions.pod:3320
9815 #, no-wrap
9816 msgid ""
9817 " int\n"
9818 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9819 "                             const char *device,\n"
9820 "                             const char *key,\n"
9821 "                             int keyslot,\n"
9822 "                             const char *cipher);\n"
9823 "\n"
9824 msgstr ""
9825
9826 # type: textblock
9827 #: ../src/guestfs-actions.pod:3327
9828 msgid ""
9829 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9830 "set the C<cipher> used."
9831 msgstr ""
9832
9833 # type: =head2
9834 #: ../src/guestfs-actions.pod:3341
9835 msgid "guestfs_luks_kill_slot"
9836 msgstr ""
9837
9838 # type: verbatim
9839 #: ../src/guestfs-actions.pod:3343
9840 #, no-wrap
9841 msgid ""
9842 " int\n"
9843 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9844 "                         const char *device,\n"
9845 "                         const char *key,\n"
9846 "                         int keyslot);\n"
9847 "\n"
9848 msgstr ""
9849
9850 # type: textblock
9851 #: ../src/guestfs-actions.pod:3349 ../fish/guestfish-actions.pod:2257
9852 msgid ""
9853 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9854 "device C<device>.  C<key> must be one of the I<other> keys."
9855 msgstr ""
9856
9857 # type: =head2
9858 #: ../src/guestfs-actions.pod:3361
9859 msgid "guestfs_luks_open"
9860 msgstr ""
9861
9862 # type: verbatim
9863 #: ../src/guestfs-actions.pod:3363
9864 #, no-wrap
9865 msgid ""
9866 " int\n"
9867 " guestfs_luks_open (guestfs_h *g,\n"
9868 "                    const char *device,\n"
9869 "                    const char *key,\n"
9870 "                    const char *mapname);\n"
9871 "\n"
9872 msgstr ""
9873
9874 # type: textblock
9875 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2268
9876 msgid ""
9877 "This command opens a block device which has been encrypted according to the "
9878 "Linux Unified Key Setup (LUKS) standard."
9879 msgstr ""
9880
9881 # type: textblock
9882 #: ../src/guestfs-actions.pod:3372 ../fish/guestfish-actions.pod:2271
9883 msgid "C<device> is the encrypted block device or partition."
9884 msgstr ""
9885
9886 # type: textblock
9887 #: ../src/guestfs-actions.pod:3374 ../fish/guestfish-actions.pod:2273
9888 msgid ""
9889 "The caller must supply one of the keys associated with the LUKS block "
9890 "device, in the C<key> parameter."
9891 msgstr ""
9892
9893 # type: textblock
9894 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2276
9895 msgid ""
9896 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9897 "writes to this block device are decrypted from and encrypted to the "
9898 "underlying C<device> respectively."
9899 msgstr ""
9900
9901 # type: textblock
9902 #: ../src/guestfs-actions.pod:3381
9903 msgid ""
9904 "If this block device contains LVM volume groups, then calling "
9905 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9906 "visible."
9907 msgstr ""
9908
9909 # type: =head2
9910 #: ../src/guestfs-actions.pod:3393
9911 msgid "guestfs_luks_open_ro"
9912 msgstr ""
9913
9914 # type: verbatim
9915 #: ../src/guestfs-actions.pod:3395
9916 #, no-wrap
9917 msgid ""
9918 " int\n"
9919 " guestfs_luks_open_ro (guestfs_h *g,\n"
9920 "                       const char *device,\n"
9921 "                       const char *key,\n"
9922 "                       const char *mapname);\n"
9923 "\n"
9924 msgstr ""
9925
9926 # type: textblock
9927 #: ../src/guestfs-actions.pod:3401
9928 msgid ""
9929 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9930 "created."
9931 msgstr ""
9932
9933 # type: =head2
9934 #: ../src/guestfs-actions.pod:3412
9935 msgid "guestfs_lvcreate"
9936 msgstr ""
9937
9938 # type: verbatim
9939 #: ../src/guestfs-actions.pod:3414
9940 #, no-wrap
9941 msgid ""
9942 " int\n"
9943 " guestfs_lvcreate (guestfs_h *g,\n"
9944 "                   const char *logvol,\n"
9945 "                   const char *volgroup,\n"
9946 "                   int mbytes);\n"
9947 "\n"
9948 msgstr ""
9949
9950 # type: textblock
9951 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2301
9952 msgid ""
9953 "This creates an LVM logical volume called C<logvol> on the volume group "
9954 "C<volgroup>, with C<size> megabytes."
9955 msgstr ""
9956
9957 # type: =head2
9958 #: ../src/guestfs-actions.pod:3427
9959 msgid "guestfs_lvm_canonical_lv_name"
9960 msgstr ""
9961
9962 # type: verbatim
9963 #: ../src/guestfs-actions.pod:3429
9964 #, no-wrap
9965 msgid ""
9966 " char *\n"
9967 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9968 "                                const char *lvname);\n"
9969 "\n"
9970 msgstr ""
9971
9972 # type: textblock
9973 #: ../src/guestfs-actions.pod:3433 ../fish/guestfish-actions.pod:2308
9974 msgid ""
9975 "This converts alternative naming schemes for LVs that you might find to the "
9976 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
9977 "LV>."
9978 msgstr ""
9979
9980 # type: textblock
9981 #: ../src/guestfs-actions.pod:3437 ../fish/guestfish-actions.pod:2312
9982 msgid ""
9983 "This command returns an error if the C<lvname> parameter does not refer to a "
9984 "logical volume."
9985 msgstr ""
9986
9987 # type: textblock
9988 #: ../src/guestfs-actions.pod:3440
9989 msgid "See also C<guestfs_is_lv>."
9990 msgstr ""
9991
9992 # type: textblock
9993 #: ../src/guestfs-actions.pod:3445
9994 msgid "(Added in 1.5.24)"
9995 msgstr ""
9996
9997 # type: =head2
9998 #: ../src/guestfs-actions.pod:3447
9999 msgid "guestfs_lvm_clear_filter"
10000 msgstr ""
10001
10002 # type: verbatim
10003 #: ../src/guestfs-actions.pod:3449
10004 #, no-wrap
10005 msgid ""
10006 " int\n"
10007 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10008 "\n"
10009 msgstr ""
10010
10011 # type: textblock
10012 #: ../src/guestfs-actions.pod:3452
10013 msgid ""
10014 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10015 "see every block device."
10016 msgstr ""
10017
10018 # type: textblock
10019 #: ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:3497
10020 #: ../fish/guestfish-actions.pod:2324 ../fish/guestfish-actions.pod:2355
10021 msgid ""
10022 "This command also clears the LVM cache and performs a volume group scan."
10023 msgstr ""
10024
10025 # type: =head2
10026 #: ../src/guestfs-actions.pod:3462
10027 msgid "guestfs_lvm_remove_all"
10028 msgstr ""
10029
10030 # type: verbatim
10031 #: ../src/guestfs-actions.pod:3464
10032 #, no-wrap
10033 msgid ""
10034 " int\n"
10035 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10036 "\n"
10037 msgstr ""
10038
10039 # type: textblock
10040 #: ../src/guestfs-actions.pod:3467 ../fish/guestfish-actions.pod:2331
10041 msgid ""
10042 "This command removes all LVM logical volumes, volume groups and physical "
10043 "volumes."
10044 msgstr ""
10045
10046 # type: =head2
10047 #: ../src/guestfs-actions.pod:3477
10048 msgid "guestfs_lvm_set_filter"
10049 msgstr ""
10050
10051 # type: verbatim
10052 #: ../src/guestfs-actions.pod:3479
10053 #, no-wrap
10054 msgid ""
10055 " int\n"
10056 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10057 "                         char *const *devices);\n"
10058 "\n"
10059 msgstr ""
10060
10061 # type: textblock
10062 #: ../src/guestfs-actions.pod:3483 ../fish/guestfish-actions.pod:2341
10063 msgid ""
10064 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10065 "block devices in the list C<devices>, and will ignore all other attached "
10066 "block devices."
10067 msgstr ""
10068
10069 # type: textblock
10070 #: ../src/guestfs-actions.pod:3487 ../fish/guestfish-actions.pod:2345
10071 msgid ""
10072 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10073 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10074 "there are two types of duplication possible: either cloned PVs/VGs which "
10075 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10076 "same name.  In normal operation you cannot create this situation, but you "
10077 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10078 "inside the LVM metadata."
10079 msgstr ""
10080
10081 # type: textblock
10082 #: ../src/guestfs-actions.pod:3500 ../fish/guestfish-actions.pod:2358
10083 msgid "You can filter whole block devices or individual partitions."
10084 msgstr ""
10085
10086 # type: textblock
10087 #: ../src/guestfs-actions.pod:3502 ../fish/guestfish-actions.pod:2360
10088 msgid ""
10089 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10090 "filesystem), even if you are not filtering out that VG."
10091 msgstr ""
10092
10093 # type: =head2
10094 #: ../src/guestfs-actions.pod:3510
10095 msgid "guestfs_lvremove"
10096 msgstr ""
10097
10098 # type: verbatim
10099 #: ../src/guestfs-actions.pod:3512
10100 #, no-wrap
10101 msgid ""
10102 " int\n"
10103 " guestfs_lvremove (guestfs_h *g,\n"
10104 "                   const char *device);\n"
10105 "\n"
10106 msgstr ""
10107
10108 # type: textblock
10109 #: ../src/guestfs-actions.pod:3516 ../fish/guestfish-actions.pod:2368
10110 msgid ""
10111 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10112 "LV, such as C</dev/VG/LV>."
10113 msgstr ""
10114
10115 # type: textblock
10116 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2371
10117 msgid ""
10118 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10119 "dev/VG>."
10120 msgstr ""
10121
10122 # type: textblock
10123 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:4681
10124 #: ../src/guestfs-actions.pod:6413
10125 msgid "(Added in 1.0.13)"
10126 msgstr ""
10127
10128 # type: =head2
10129 #: ../src/guestfs-actions.pod:3526
10130 msgid "guestfs_lvrename"
10131 msgstr ""
10132
10133 # type: verbatim
10134 #: ../src/guestfs-actions.pod:3528
10135 #, no-wrap
10136 msgid ""
10137 " int\n"
10138 " guestfs_lvrename (guestfs_h *g,\n"
10139 "                   const char *logvol,\n"
10140 "                   const char *newlogvol);\n"
10141 "\n"
10142 msgstr ""
10143
10144 # type: textblock
10145 #: ../src/guestfs-actions.pod:3533 ../fish/guestfish-actions.pod:2378
10146 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10147 msgstr ""
10148
10149 # type: textblock
10150 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:6426
10151 msgid "(Added in 1.0.83)"
10152 msgstr ""
10153
10154 # type: =head2
10155 #: ../src/guestfs-actions.pod:3539
10156 msgid "guestfs_lvresize"
10157 msgstr ""
10158
10159 # type: verbatim
10160 #: ../src/guestfs-actions.pod:3541
10161 #, no-wrap
10162 msgid ""
10163 " int\n"
10164 " guestfs_lvresize (guestfs_h *g,\n"
10165 "                   const char *device,\n"
10166 "                   int mbytes);\n"
10167 "\n"
10168 msgstr ""
10169
10170 # type: textblock
10171 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2384
10172 msgid ""
10173 "This resizes (expands or shrinks) an existing LVM logical volume to "
10174 "C<mbytes>.  When reducing, data in the reduced part is lost."
10175 msgstr ""
10176
10177 # type: =head2
10178 #: ../src/guestfs-actions.pod:3554
10179 msgid "guestfs_lvresize_free"
10180 msgstr ""
10181
10182 # type: verbatim
10183 #: ../src/guestfs-actions.pod:3556
10184 #, no-wrap
10185 msgid ""
10186 " int\n"
10187 " guestfs_lvresize_free (guestfs_h *g,\n"
10188 "                        const char *lv,\n"
10189 "                        int percent);\n"
10190 "\n"
10191 msgstr ""
10192
10193 # type: textblock
10194 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2392
10195 msgid ""
10196 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10197 "remaining free space in the volume group.  Commonly you would call this with "
10198 "pc = 100 which expands the logical volume as much as possible, using all "
10199 "remaining free space in the volume group."
10200 msgstr ""
10201
10202 # type: textblock
10203 #: ../src/guestfs-actions.pod:3569
10204 msgid "(Added in 1.3.3)"
10205 msgstr ""
10206
10207 # type: =head2
10208 #: ../src/guestfs-actions.pod:3571
10209 msgid "guestfs_lvs"
10210 msgstr ""
10211
10212 # type: verbatim
10213 #: ../src/guestfs-actions.pod:3573
10214 #, no-wrap
10215 msgid ""
10216 " char **\n"
10217 " guestfs_lvs (guestfs_h *g);\n"
10218 "\n"
10219 msgstr ""
10220
10221 # type: textblock
10222 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2402
10223 msgid ""
10224 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10225 "(8)> command."
10226 msgstr ""
10227
10228 # type: textblock
10229 #: ../src/guestfs-actions.pod:3579 ../fish/guestfish-actions.pod:2405
10230 msgid ""
10231 "This returns a list of the logical volume device names (eg. C</dev/"
10232 "VolGroup00/LogVol00>)."
10233 msgstr ""
10234
10235 # type: textblock
10236 #: ../src/guestfs-actions.pod:3582
10237 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10238 msgstr ""
10239
10240 # type: =head2
10241 #: ../src/guestfs-actions.pod:3590
10242 msgid "guestfs_lvs_full"
10243 msgstr ""
10244
10245 # type: verbatim
10246 #: ../src/guestfs-actions.pod:3592
10247 #, no-wrap
10248 msgid ""
10249 " struct guestfs_lvm_lv_list *\n"
10250 " guestfs_lvs_full (guestfs_h *g);\n"
10251 "\n"
10252 msgstr ""
10253
10254 # type: textblock
10255 #: ../src/guestfs-actions.pod:3595 ../fish/guestfish-actions.pod:2414
10256 msgid ""
10257 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10258 "(8)> command.  The \"full\" version includes all fields."
10259 msgstr ""
10260
10261 # type: textblock
10262 #: ../src/guestfs-actions.pod:3598
10263 msgid ""
10264 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
10265 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10266 "C<guestfs_free_lvm_lv_list> after use>."
10267 msgstr ""
10268
10269 # type: =head2
10270 #: ../src/guestfs-actions.pod:3605
10271 msgid "guestfs_lvuuid"
10272 msgstr ""
10273
10274 # type: verbatim
10275 #: ../src/guestfs-actions.pod:3607
10276 #, no-wrap
10277 msgid ""
10278 " char *\n"
10279 " guestfs_lvuuid (guestfs_h *g,\n"
10280 "                 const char *device);\n"
10281 "\n"
10282 msgstr ""
10283
10284 # type: textblock
10285 #: ../src/guestfs-actions.pod:3611 ../fish/guestfish-actions.pod:2421
10286 msgid "This command returns the UUID of the LVM LV C<device>."
10287 msgstr ""
10288
10289 # type: =head2
10290 #: ../src/guestfs-actions.pod:3618
10291 msgid "guestfs_lxattrlist"
10292 msgstr ""
10293
10294 # type: verbatim
10295 #: ../src/guestfs-actions.pod:3620
10296 #, no-wrap
10297 msgid ""
10298 " struct guestfs_xattr_list *\n"
10299 " guestfs_lxattrlist (guestfs_h *g,\n"
10300 "                     const char *path,\n"
10301 "                     char *const *names);\n"
10302 "\n"
10303 msgstr ""
10304
10305 # type: textblock
10306 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2427
10307 msgid ""
10308 "This call allows you to get the extended attributes of multiple files, where "
10309 "all files are in the directory C<path>.  C<names> is the list of files from "
10310 "this directory."
10311 msgstr ""
10312
10313 # type: textblock
10314 #: ../src/guestfs-actions.pod:3629 ../fish/guestfish-actions.pod:2431
10315 msgid ""
10316 "On return you get a flat list of xattr structs which must be interpreted "
10317 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10318 "C<attrval> in this struct is zero-length to indicate there was an error "
10319 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10320 "number (the number of following attributes for this file, which could be C<"
10321 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10322 "for the first named file.  This repeats for the second and subsequent files."
10323 msgstr ""
10324
10325 # type: textblock
10326 #: ../src/guestfs-actions.pod:3639
10327 msgid ""
10328 "This call is intended for programs that want to efficiently list a directory "
10329 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10330 "a similarly efficient call for getting standard stats.  Very long directory "
10331 "listings might cause the protocol message size to be exceeded, causing this "
10332 "call to fail.  The caller must split up such requests into smaller groups of "
10333 "names."
10334 msgstr ""
10335
10336 # type: =head2
10337 #: ../src/guestfs-actions.pod:3654
10338 msgid "guestfs_mkdir"
10339 msgstr ""
10340
10341 # type: verbatim
10342 #: ../src/guestfs-actions.pod:3656
10343 #, no-wrap
10344 msgid ""
10345 " int\n"
10346 " guestfs_mkdir (guestfs_h *g,\n"
10347 "                const char *path);\n"
10348 "\n"
10349 msgstr ""
10350
10351 # type: textblock
10352 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2453
10353 msgid "Create a directory named C<path>."
10354 msgstr ""
10355
10356 # type: =head2
10357 #: ../src/guestfs-actions.pod:3666
10358 msgid "guestfs_mkdir_mode"
10359 msgstr ""
10360
10361 # type: verbatim
10362 #: ../src/guestfs-actions.pod:3668
10363 #, no-wrap
10364 msgid ""
10365 " int\n"
10366 " guestfs_mkdir_mode (guestfs_h *g,\n"
10367 "                     const char *path,\n"
10368 "                     int mode);\n"
10369 "\n"
10370 msgstr ""
10371
10372 # type: textblock
10373 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2459
10374 msgid ""
10375 "This command creates a directory, setting the initial permissions of the "
10376 "directory to C<mode>."
10377 msgstr ""
10378
10379 # type: textblock
10380 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2462
10381 msgid ""
10382 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10383 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10384 "other ways."
10385 msgstr ""
10386
10387 # type: textblock
10388 #: ../src/guestfs-actions.pod:3680
10389 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10390 msgstr ""
10391
10392 # type: =head2
10393 #: ../src/guestfs-actions.pod:3686
10394 msgid "guestfs_mkdir_p"
10395 msgstr ""
10396
10397 # type: verbatim
10398 #: ../src/guestfs-actions.pod:3688
10399 #, no-wrap
10400 msgid ""
10401 " int\n"
10402 " guestfs_mkdir_p (guestfs_h *g,\n"
10403 "                  const char *path);\n"
10404 "\n"
10405 msgstr ""
10406
10407 # type: textblock
10408 #: ../src/guestfs-actions.pod:3692 ../fish/guestfish-actions.pod:2472
10409 msgid ""
10410 "Create a directory named C<path>, creating any parent directories as "
10411 "necessary.  This is like the C<mkdir -p> shell command."
10412 msgstr ""
10413
10414 # type: =head2
10415 #: ../src/guestfs-actions.pod:3699
10416 msgid "guestfs_mkdtemp"
10417 msgstr ""
10418
10419 # type: verbatim
10420 #: ../src/guestfs-actions.pod:3701
10421 #, no-wrap
10422 msgid ""
10423 " char *\n"
10424 " guestfs_mkdtemp (guestfs_h *g,\n"
10425 "                  const char *template);\n"
10426 "\n"
10427 msgstr ""
10428
10429 # type: textblock
10430 #: ../src/guestfs-actions.pod:3705 ../fish/guestfish-actions.pod:2479
10431 msgid ""
10432 "This command creates a temporary directory.  The C<template> parameter "
10433 "should be a full pathname for the temporary directory name with the final "
10434 "six characters being \"XXXXXX\"."
10435 msgstr ""
10436
10437 # type: textblock
10438 #: ../src/guestfs-actions.pod:3710 ../fish/guestfish-actions.pod:2484
10439 msgid ""
10440 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10441 "being suitable for Windows filesystems."
10442 msgstr ""
10443
10444 # type: textblock
10445 #: ../src/guestfs-actions.pod:3713 ../fish/guestfish-actions.pod:2487
10446 msgid "The name of the temporary directory that was created is returned."
10447 msgstr ""
10448
10449 # type: textblock
10450 #: ../src/guestfs-actions.pod:3716 ../fish/guestfish-actions.pod:2490
10451 msgid "The temporary directory is created with mode 0700 and is owned by root."
10452 msgstr ""
10453
10454 # type: textblock
10455 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2493
10456 msgid ""
10457 "The caller is responsible for deleting the temporary directory and its "
10458 "contents after use."
10459 msgstr ""
10460
10461 # type: textblock
10462 #: ../src/guestfs-actions.pod:3722 ../fish/guestfish-actions.pod:2496
10463 msgid "See also: L<mkdtemp(3)>"
10464 msgstr ""
10465
10466 # type: =head2
10467 #: ../src/guestfs-actions.pod:3729
10468 msgid "guestfs_mke2fs_J"
10469 msgstr ""
10470
10471 # type: verbatim
10472 #: ../src/guestfs-actions.pod:3731
10473 #, no-wrap
10474 msgid ""
10475 " int\n"
10476 " guestfs_mke2fs_J (guestfs_h *g,\n"
10477 "                   const char *fstype,\n"
10478 "                   int blocksize,\n"
10479 "                   const char *device,\n"
10480 "                   const char *journal);\n"
10481 "\n"
10482 msgstr ""
10483
10484 # type: textblock
10485 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2502
10486 msgid ""
10487 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10488 "C<journal>.  It is equivalent to the command:"
10489 msgstr ""
10490
10491 # type: verbatim
10492 #: ../src/guestfs-actions.pod:3742 ../fish/guestfish-actions.pod:2506
10493 #, no-wrap
10494 msgid ""
10495 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10496 "\n"
10497 msgstr ""
10498
10499 # type: textblock
10500 #: ../src/guestfs-actions.pod:3744
10501 msgid "See also C<guestfs_mke2journal>."
10502 msgstr ""
10503
10504 # type: textblock
10505 #: ../src/guestfs-actions.pod:3748 ../src/guestfs-actions.pod:3766
10506 #: ../src/guestfs-actions.pod:3784 ../src/guestfs-actions.pod:3800
10507 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:3828
10508 #: ../src/guestfs-actions.pod:3880 ../src/guestfs-actions.pod:4070
10509 msgid "(Added in 1.0.68)"
10510 msgstr ""
10511
10512 # type: =head2
10513 #: ../src/guestfs-actions.pod:3750
10514 msgid "guestfs_mke2fs_JL"
10515 msgstr ""
10516
10517 # type: verbatim
10518 #: ../src/guestfs-actions.pod:3752
10519 #, no-wrap
10520 msgid ""
10521 " int\n"
10522 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10523 "                    const char *fstype,\n"
10524 "                    int blocksize,\n"
10525 "                    const char *device,\n"
10526 "                    const char *label);\n"
10527 "\n"
10528 msgstr ""
10529
10530 # type: textblock
10531 #: ../src/guestfs-actions.pod:3759 ../fish/guestfish-actions.pod:2514
10532 msgid ""
10533 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10534 "the journal labeled C<label>."
10535 msgstr ""
10536
10537 # type: textblock
10538 #: ../src/guestfs-actions.pod:3762
10539 msgid "See also C<guestfs_mke2journal_L>."
10540 msgstr ""
10541
10542 # type: =head2
10543 #: ../src/guestfs-actions.pod:3768
10544 msgid "guestfs_mke2fs_JU"
10545 msgstr ""
10546
10547 # type: verbatim
10548 #: ../src/guestfs-actions.pod:3770
10549 #, no-wrap
10550 msgid ""
10551 " int\n"
10552 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10553 "                    const char *fstype,\n"
10554 "                    int blocksize,\n"
10555 "                    const char *device,\n"
10556 "                    const char *uuid);\n"
10557 "\n"
10558 msgstr ""
10559
10560 # type: textblock
10561 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2523
10562 msgid ""
10563 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10564 "the journal with UUID C<uuid>."
10565 msgstr ""
10566
10567 # type: textblock
10568 #: ../src/guestfs-actions.pod:3780
10569 msgid "See also C<guestfs_mke2journal_U>."
10570 msgstr ""
10571
10572 # type: =head2
10573 #: ../src/guestfs-actions.pod:3786
10574 msgid "guestfs_mke2journal"
10575 msgstr ""
10576
10577 # type: verbatim
10578 #: ../src/guestfs-actions.pod:3788
10579 #, no-wrap
10580 msgid ""
10581 " int\n"
10582 " guestfs_mke2journal (guestfs_h *g,\n"
10583 "                      int blocksize,\n"
10584 "                      const char *device);\n"
10585 "\n"
10586 msgstr ""
10587
10588 # type: textblock
10589 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2532
10590 msgid ""
10591 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10592 "command:"
10593 msgstr ""
10594
10595 # type: verbatim
10596 #: ../src/guestfs-actions.pod:3796 ../fish/guestfish-actions.pod:2535
10597 #, no-wrap
10598 msgid ""
10599 " mke2fs -O journal_dev -b blocksize device\n"
10600 "\n"
10601 msgstr ""
10602
10603 # type: =head2
10604 #: ../src/guestfs-actions.pod:3802
10605 msgid "guestfs_mke2journal_L"
10606 msgstr ""
10607
10608 # type: verbatim
10609 #: ../src/guestfs-actions.pod:3804
10610 #, no-wrap
10611 msgid ""
10612 " int\n"
10613 " guestfs_mke2journal_L (guestfs_h *g,\n"
10614 "                        int blocksize,\n"
10615 "                        const char *label,\n"
10616 "                        const char *device);\n"
10617 "\n"
10618 msgstr ""
10619
10620 # type: textblock
10621 #: ../src/guestfs-actions.pod:3810 ../fish/guestfish-actions.pod:2541
10622 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10623 msgstr ""
10624
10625 # type: =head2
10626 #: ../src/guestfs-actions.pod:3816
10627 msgid "guestfs_mke2journal_U"
10628 msgstr ""
10629
10630 # type: verbatim
10631 #: ../src/guestfs-actions.pod:3818
10632 #, no-wrap
10633 msgid ""
10634 " int\n"
10635 " guestfs_mke2journal_U (guestfs_h *g,\n"
10636 "                        int blocksize,\n"
10637 "                        const char *uuid,\n"
10638 "                        const char *device);\n"
10639 "\n"
10640 msgstr ""
10641
10642 # type: textblock
10643 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2547
10644 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10645 msgstr ""
10646
10647 # type: =head2
10648 #: ../src/guestfs-actions.pod:3830
10649 msgid "guestfs_mkfifo"
10650 msgstr ""
10651
10652 # type: verbatim
10653 #: ../src/guestfs-actions.pod:3832
10654 #, no-wrap
10655 msgid ""
10656 " int\n"
10657 " guestfs_mkfifo (guestfs_h *g,\n"
10658 "                 int mode,\n"
10659 "                 const char *path);\n"
10660 "\n"
10661 msgstr ""
10662
10663 # type: textblock
10664 #: ../src/guestfs-actions.pod:3837
10665 msgid ""
10666 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10667 "is just a convenient wrapper around C<guestfs_mknod>."
10668 msgstr ""
10669
10670 # type: =head2
10671 #: ../src/guestfs-actions.pod:3847
10672 msgid "guestfs_mkfs"
10673 msgstr ""
10674
10675 # type: verbatim
10676 #: ../src/guestfs-actions.pod:3849
10677 #, no-wrap
10678 msgid ""
10679 " int\n"
10680 " guestfs_mkfs (guestfs_h *g,\n"
10681 "               const char *fstype,\n"
10682 "               const char *device);\n"
10683 "\n"
10684 msgstr ""
10685
10686 # type: textblock
10687 #: ../src/guestfs-actions.pod:3854 ../fish/guestfish-actions.pod:2563
10688 msgid ""
10689 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10690 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10691 msgstr ""
10692
10693 # type: =head2
10694 #: ../src/guestfs-actions.pod:3862
10695 msgid "guestfs_mkfs_b"
10696 msgstr ""
10697
10698 # type: verbatim
10699 #: ../src/guestfs-actions.pod:3864
10700 #, no-wrap
10701 msgid ""
10702 " int\n"
10703 " guestfs_mkfs_b (guestfs_h *g,\n"
10704 "                 const char *fstype,\n"
10705 "                 int blocksize,\n"
10706 "                 const char *device);\n"
10707 "\n"
10708 msgstr ""
10709
10710 # type: textblock
10711 #: ../src/guestfs-actions.pod:3870
10712 msgid ""
10713 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10714 "block size of the resulting filesystem.  Supported block sizes depend on the "
10715 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10716 msgstr ""
10717
10718 # type: textblock
10719 #: ../src/guestfs-actions.pod:3875 ../fish/guestfish-actions.pod:2576
10720 msgid ""
10721 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10722 "cluster size."
10723 msgstr ""
10724
10725 # type: =head2
10726 #: ../src/guestfs-actions.pod:3882
10727 msgid "guestfs_mkmountpoint"
10728 msgstr ""
10729
10730 # type: verbatim
10731 #: ../src/guestfs-actions.pod:3884
10732 #, no-wrap
10733 msgid ""
10734 " int\n"
10735 " guestfs_mkmountpoint (guestfs_h *g,\n"
10736 "                       const char *exemptpath);\n"
10737 "\n"
10738 msgstr ""
10739
10740 # type: textblock
10741 #: ../src/guestfs-actions.pod:3888
10742 msgid ""
10743 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10744 "that can be used to create extra mountpoints before mounting the first "
10745 "filesystem."
10746 msgstr ""
10747
10748 # type: textblock
10749 #: ../src/guestfs-actions.pod:3892 ../fish/guestfish-actions.pod:2587
10750 msgid ""
10751 "These calls are I<only> necessary in some very limited circumstances, mainly "
10752 "the case where you want to mount a mix of unrelated and/or read-only "
10753 "filesystems together."
10754 msgstr ""
10755
10756 # type: textblock
10757 #: ../src/guestfs-actions.pod:3896 ../fish/guestfish-actions.pod:2591
10758 msgid ""
10759 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10760 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10761 "inside that.  You can unpack this as follows in guestfish:"
10762 msgstr ""
10763
10764 # type: verbatim
10765 #: ../src/guestfs-actions.pod:3901 ../fish/guestfish-actions.pod:2596
10766 #, no-wrap
10767 msgid ""
10768 " add-ro Fedora-11-i686-Live.iso\n"
10769 " run\n"
10770 " mkmountpoint /cd\n"
10771 " mkmountpoint /sqsh\n"
10772 " mkmountpoint /ext3fs\n"
10773 " mount /dev/sda /cd\n"
10774 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10775 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10776 "\n"
10777 msgstr ""
10778
10779 # type: textblock
10780 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2605
10781 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10782 msgstr ""
10783
10784 # type: textblock
10785 #: ../src/guestfs-actions.pod:3912
10786 msgid ""
10787 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10788 "may get unexpected errors if you try to mix these calls.  It is safest to "
10789 "manually unmount filesystems and remove mountpoints after use."
10790 msgstr ""
10791
10792 # type: textblock
10793 #: ../src/guestfs-actions.pod:3916
10794 msgid ""
10795 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10796 "first, so for this to work for manual mountpoints, you must ensure that the "
10797 "innermost mountpoints have the longest pathnames, as in the example code "
10798 "above."
10799 msgstr ""
10800
10801 # type: textblock
10802 #: ../src/guestfs-actions.pod:3921 ../fish/guestfish-actions.pod:2616
10803 msgid ""
10804 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10805 msgstr ""
10806
10807 # type: textblock
10808 #: ../src/guestfs-actions.pod:3923
10809 msgid ""
10810 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10811 "means that C<guestfs_umount_all> is called when the handle is closed which "
10812 "can also trigger these issues."
10813 msgstr ""
10814
10815 # type: textblock
10816 #: ../src/guestfs-actions.pod:3929 ../src/guestfs-actions.pod:4188
10817 #: ../src/guestfs-actions.pod:5084
10818 msgid "(Added in 1.0.62)"
10819 msgstr ""
10820
10821 # type: =head2
10822 #: ../src/guestfs-actions.pod:3931
10823 msgid "guestfs_mknod"
10824 msgstr ""
10825
10826 # type: verbatim
10827 #: ../src/guestfs-actions.pod:3933
10828 #, no-wrap
10829 msgid ""
10830 " int\n"
10831 " guestfs_mknod (guestfs_h *g,\n"
10832 "                int mode,\n"
10833 "                int devmajor,\n"
10834 "                int devminor,\n"
10835 "                const char *path);\n"
10836 "\n"
10837 msgstr ""
10838
10839 # type: textblock
10840 #: ../src/guestfs-actions.pod:3940 ../fish/guestfish-actions.pod:2626
10841 msgid ""
10842 "This call creates block or character special devices, or named pipes (FIFOs)."
10843 msgstr ""
10844
10845 # type: textblock
10846 #: ../src/guestfs-actions.pod:3943 ../fish/guestfish-actions.pod:2629
10847 msgid ""
10848 "The C<mode> parameter should be the mode, using the standard constants.  "
10849 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10850 "used when creating block and character special devices."
10851 msgstr ""
10852
10853 # type: textblock
10854 #: ../src/guestfs-actions.pod:3948
10855 msgid ""
10856 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10857 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10858 "regular file).  These constants are available in the standard Linux header "
10859 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10860 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10861 "the appropriate constant for you."
10862 msgstr ""
10863
10864 # type: =head2
10865 #: ../src/guestfs-actions.pod:3962
10866 msgid "guestfs_mknod_b"
10867 msgstr ""
10868
10869 # type: verbatim
10870 #: ../src/guestfs-actions.pod:3964
10871 #, no-wrap
10872 msgid ""
10873 " int\n"
10874 " guestfs_mknod_b (guestfs_h *g,\n"
10875 "                  int mode,\n"
10876 "                  int devmajor,\n"
10877 "                  int devminor,\n"
10878 "                  const char *path);\n"
10879 "\n"
10880 msgstr ""
10881
10882 # type: textblock
10883 #: ../src/guestfs-actions.pod:3971
10884 msgid ""
10885 "This call creates a block device node called C<path> with mode C<mode> and "
10886 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10887 "wrapper around C<guestfs_mknod>."
10888 msgstr ""
10889
10890 # type: =head2
10891 #: ../src/guestfs-actions.pod:3981
10892 msgid "guestfs_mknod_c"
10893 msgstr ""
10894
10895 # type: verbatim
10896 #: ../src/guestfs-actions.pod:3983
10897 #, no-wrap
10898 msgid ""
10899 " int\n"
10900 " guestfs_mknod_c (guestfs_h *g,\n"
10901 "                  int mode,\n"
10902 "                  int devmajor,\n"
10903 "                  int devminor,\n"
10904 "                  const char *path);\n"
10905 "\n"
10906 msgstr ""
10907
10908 # type: textblock
10909 #: ../src/guestfs-actions.pod:3990
10910 msgid ""
10911 "This call creates a char device node called C<path> with mode C<mode> and "
10912 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10913 "wrapper around C<guestfs_mknod>."
10914 msgstr ""
10915
10916 # type: =head2
10917 #: ../src/guestfs-actions.pod:4000
10918 msgid "guestfs_mkswap"
10919 msgstr ""
10920
10921 # type: verbatim
10922 #: ../src/guestfs-actions.pod:4002
10923 #, no-wrap
10924 msgid ""
10925 " int\n"
10926 " guestfs_mkswap (guestfs_h *g,\n"
10927 "                 const char *device);\n"
10928 "\n"
10929 msgstr ""
10930
10931 # type: textblock
10932 #: ../src/guestfs-actions.pod:4006 ../fish/guestfish-actions.pod:2668
10933 msgid "Create a swap partition on C<device>."
10934 msgstr ""
10935
10936 # type: =head2
10937 #: ../src/guestfs-actions.pod:4012
10938 msgid "guestfs_mkswap_L"
10939 msgstr ""
10940
10941 # type: verbatim
10942 #: ../src/guestfs-actions.pod:4014
10943 #, no-wrap
10944 msgid ""
10945 " int\n"
10946 " guestfs_mkswap_L (guestfs_h *g,\n"
10947 "                   const char *label,\n"
10948 "                   const char *device);\n"
10949 "\n"
10950 msgstr ""
10951
10952 # type: textblock
10953 #: ../src/guestfs-actions.pod:4019 ../fish/guestfish-actions.pod:2674
10954 msgid "Create a swap partition on C<device> with label C<label>."
10955 msgstr ""
10956
10957 # type: textblock
10958 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2676
10959 msgid ""
10960 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
10961 "sda>), just to a partition.  This appears to be a limitation of the kernel "
10962 "or swap tools."
10963 msgstr ""
10964
10965 # type: =head2
10966 #: ../src/guestfs-actions.pod:4029
10967 msgid "guestfs_mkswap_U"
10968 msgstr ""
10969
10970 # type: verbatim
10971 #: ../src/guestfs-actions.pod:4031
10972 #, no-wrap
10973 msgid ""
10974 " int\n"
10975 " guestfs_mkswap_U (guestfs_h *g,\n"
10976 "                   const char *uuid,\n"
10977 "                   const char *device);\n"
10978 "\n"
10979 msgstr ""
10980
10981 # type: textblock
10982 #: ../src/guestfs-actions.pod:4036 ../fish/guestfish-actions.pod:2684
10983 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10984 msgstr ""
10985
10986 # type: =head2
10987 #: ../src/guestfs-actions.pod:4042
10988 msgid "guestfs_mkswap_file"
10989 msgstr ""
10990
10991 # type: verbatim
10992 #: ../src/guestfs-actions.pod:4044
10993 #, no-wrap
10994 msgid ""
10995 " int\n"
10996 " guestfs_mkswap_file (guestfs_h *g,\n"
10997 "                      const char *path);\n"
10998 "\n"
10999 msgstr ""
11000
11001 # type: textblock
11002 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:2690
11003 msgid "Create a swap file."
11004 msgstr ""
11005
11006 # type: textblock
11007 #: ../src/guestfs-actions.pod:4050
11008 msgid ""
11009 "This command just writes a swap file signature to an existing file.  To "
11010 "create the file itself, use something like C<guestfs_fallocate>."
11011 msgstr ""
11012
11013 # type: =head2
11014 #: ../src/guestfs-actions.pod:4057
11015 msgid "guestfs_modprobe"
11016 msgstr ""
11017
11018 # type: verbatim
11019 #: ../src/guestfs-actions.pod:4059
11020 #, no-wrap
11021 msgid ""
11022 " int\n"
11023 " guestfs_modprobe (guestfs_h *g,\n"
11024 "                   const char *modulename);\n"
11025 "\n"
11026 msgstr ""
11027
11028 # type: textblock
11029 #: ../src/guestfs-actions.pod:4063 ../fish/guestfish-actions.pod:2699
11030 msgid "This loads a kernel module in the appliance."
11031 msgstr ""
11032
11033 # type: textblock
11034 #: ../src/guestfs-actions.pod:4065 ../fish/guestfish-actions.pod:2701
11035 msgid ""
11036 "The kernel module must have been whitelisted when libguestfs was built (see "
11037 "C<appliance/kmod.whitelist.in> in the source)."
11038 msgstr ""
11039
11040 # type: =head2
11041 #: ../src/guestfs-actions.pod:4072
11042 msgid "guestfs_mount"
11043 msgstr ""
11044
11045 # type: verbatim
11046 #: ../src/guestfs-actions.pod:4074
11047 #, no-wrap
11048 msgid ""
11049 " int\n"
11050 " guestfs_mount (guestfs_h *g,\n"
11051 "                const char *device,\n"
11052 "                const char *mountpoint);\n"
11053 "\n"
11054 msgstr ""
11055
11056 # type: textblock
11057 #: ../src/guestfs-actions.pod:4079 ../fish/guestfish-actions.pod:2708
11058 msgid ""
11059 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11060 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11061 "those block devices contain partitions, they will have the usual names (eg. "
11062 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11063 msgstr ""
11064
11065 # type: textblock
11066 #: ../src/guestfs-actions.pod:4085 ../fish/guestfish-actions.pod:2714
11067 msgid ""
11068 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11069 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11070 "mounted on directories which already exist."
11071 msgstr ""
11072
11073 # type: textblock
11074 #: ../src/guestfs-actions.pod:4090 ../fish/guestfish-actions.pod:2719
11075 msgid ""
11076 "The mounted filesystem is writable, if we have sufficient permissions on the "
11077 "underlying device."
11078 msgstr ""
11079
11080 # type: textblock
11081 #: ../src/guestfs-actions.pod:4093
11082 msgid ""
11083 "B<Important note:> When you use this call, the filesystem options C<sync> "
11084 "and C<noatime> are set implicitly.  This was originally done because we "
11085 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11086 "very large negative performance impact and negligible effect on "
11087 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11088 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11089 "(use an empty string for the first parameter if you don't want any options)."
11090 msgstr ""
11091
11092 # type: =head2
11093 #: ../src/guestfs-actions.pod:4107
11094 msgid "guestfs_mount_loop"
11095 msgstr ""
11096
11097 # type: verbatim
11098 #: ../src/guestfs-actions.pod:4109
11099 #, no-wrap
11100 msgid ""
11101 " int\n"
11102 " guestfs_mount_loop (guestfs_h *g,\n"
11103 "                     const char *file,\n"
11104 "                     const char *mountpoint);\n"
11105 "\n"
11106 msgstr ""
11107
11108 # type: textblock
11109 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:2736
11110 msgid ""
11111 "This command lets you mount C<file> (a filesystem image in a file) on a "
11112 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11113 "mountpoint>."
11114 msgstr ""
11115
11116 # type: =head2
11117 #: ../src/guestfs-actions.pod:4122
11118 msgid "guestfs_mount_options"
11119 msgstr ""
11120
11121 # type: verbatim
11122 #: ../src/guestfs-actions.pod:4124
11123 #, no-wrap
11124 msgid ""
11125 " int\n"
11126 " guestfs_mount_options (guestfs_h *g,\n"
11127 "                        const char *options,\n"
11128 "                        const char *device,\n"
11129 "                        const char *mountpoint);\n"
11130 "\n"
11131 msgstr ""
11132
11133 # type: textblock
11134 #: ../src/guestfs-actions.pod:4130
11135 msgid ""
11136 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11137 "the mount options as for the L<mount(8)> I<-o> flag."
11138 msgstr ""
11139
11140 # type: textblock
11141 #: ../src/guestfs-actions.pod:4134 ../fish/guestfish-actions.pod:2748
11142 msgid ""
11143 "If the C<options> parameter is an empty string, then no options are passed "
11144 "(all options default to whatever the filesystem uses)."
11145 msgstr ""
11146
11147 # type: textblock
11148 #: ../src/guestfs-actions.pod:4140 ../src/guestfs-actions.pod:4154
11149 #: ../src/guestfs-actions.pod:4171
11150 msgid "(Added in 1.0.10)"
11151 msgstr ""
11152
11153 # type: =head2
11154 #: ../src/guestfs-actions.pod:4142
11155 msgid "guestfs_mount_ro"
11156 msgstr ""
11157
11158 # type: verbatim
11159 #: ../src/guestfs-actions.pod:4144
11160 #, no-wrap
11161 msgid ""
11162 " int\n"
11163 " guestfs_mount_ro (guestfs_h *g,\n"
11164 "                   const char *device,\n"
11165 "                   const char *mountpoint);\n"
11166 "\n"
11167 msgstr ""
11168
11169 # type: textblock
11170 #: ../src/guestfs-actions.pod:4149
11171 msgid ""
11172 "This is the same as the C<guestfs_mount> command, but it mounts the "
11173 "filesystem with the read-only (I<-o ro>) flag."
11174 msgstr ""
11175
11176 # type: =head2
11177 #: ../src/guestfs-actions.pod:4156
11178 msgid "guestfs_mount_vfs"
11179 msgstr ""
11180
11181 # type: verbatim
11182 #: ../src/guestfs-actions.pod:4158
11183 #, no-wrap
11184 msgid ""
11185 " int\n"
11186 " guestfs_mount_vfs (guestfs_h *g,\n"
11187 "                    const char *options,\n"
11188 "                    const char *vfstype,\n"
11189 "                    const char *device,\n"
11190 "                    const char *mountpoint);\n"
11191 "\n"
11192 msgstr ""
11193
11194 # type: textblock
11195 #: ../src/guestfs-actions.pod:4165
11196 msgid ""
11197 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11198 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11199 "t> flags."
11200 msgstr ""
11201
11202 # type: =head2
11203 #: ../src/guestfs-actions.pod:4173
11204 msgid "guestfs_mountpoints"
11205 msgstr ""
11206
11207 # type: verbatim
11208 #: ../src/guestfs-actions.pod:4175
11209 #, no-wrap
11210 msgid ""
11211 " char **\n"
11212 " guestfs_mountpoints (guestfs_h *g);\n"
11213 "\n"
11214 msgstr ""
11215
11216 # type: textblock
11217 #: ../src/guestfs-actions.pod:4178
11218 msgid ""
11219 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11220 "devices.  This one returns a hash table (map) of device name to directory "
11221 "where the device is mounted."
11222 msgstr ""
11223
11224 # type: =head2
11225 #: ../src/guestfs-actions.pod:4190
11226 msgid "guestfs_mounts"
11227 msgstr ""
11228
11229 # type: verbatim
11230 #: ../src/guestfs-actions.pod:4192
11231 #, no-wrap
11232 msgid ""
11233 " char **\n"
11234 " guestfs_mounts (guestfs_h *g);\n"
11235 "\n"
11236 msgstr ""
11237
11238 # type: textblock
11239 #: ../src/guestfs-actions.pod:4195 ../fish/guestfish-actions.pod:2779
11240 msgid ""
11241 "This returns the list of currently mounted filesystems.  It returns the list "
11242 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11243 msgstr ""
11244
11245 # type: textblock
11246 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:2782
11247 msgid "Some internal mounts are not shown."
11248 msgstr ""
11249
11250 # type: textblock
11251 #: ../src/guestfs-actions.pod:4200
11252 msgid "See also: C<guestfs_mountpoints>"
11253 msgstr ""
11254
11255 # type: =head2
11256 #: ../src/guestfs-actions.pod:4208
11257 msgid "guestfs_mv"
11258 msgstr ""
11259
11260 # type: verbatim
11261 #: ../src/guestfs-actions.pod:4210
11262 #, no-wrap
11263 msgid ""
11264 " int\n"
11265 " guestfs_mv (guestfs_h *g,\n"
11266 "             const char *src,\n"
11267 "             const char *dest);\n"
11268 "\n"
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2790
11273 msgid ""
11274 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11275 "destination filename or destination directory."
11276 msgstr ""
11277
11278 # type: =head2
11279 #: ../src/guestfs-actions.pod:4222
11280 msgid "guestfs_ntfs_3g_probe"
11281 msgstr ""
11282
11283 # type: verbatim
11284 #: ../src/guestfs-actions.pod:4224
11285 #, no-wrap
11286 msgid ""
11287 " int\n"
11288 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11289 "                        int rw,\n"
11290 "                        const char *device);\n"
11291 "\n"
11292 msgstr ""
11293
11294 # type: textblock
11295 #: ../src/guestfs-actions.pod:4229 ../fish/guestfish-actions.pod:2797
11296 msgid ""
11297 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11298 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11299 "write, and some cannot be mounted at all)."
11300 msgstr ""
11301
11302 # type: textblock
11303 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2801
11304 msgid ""
11305 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11306 "can be mounted read-write.  Set it to false if you want to test if the "
11307 "volume can be mounted read-only."
11308 msgstr ""
11309
11310 # type: textblock
11311 #: ../src/guestfs-actions.pod:4237 ../fish/guestfish-actions.pod:2805
11312 msgid ""
11313 "The return value is an integer which C<0> if the operation would succeed, or "
11314 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11315 msgstr ""
11316
11317 # type: textblock
11318 #: ../src/guestfs-actions.pod:4243
11319 msgid "(Added in 1.0.43)"
11320 msgstr ""
11321
11322 # type: =head2
11323 #: ../src/guestfs-actions.pod:4245
11324 msgid "guestfs_ntfsresize"
11325 msgstr ""
11326
11327 # type: verbatim
11328 #: ../src/guestfs-actions.pod:4247
11329 #, no-wrap
11330 msgid ""
11331 " int\n"
11332 " guestfs_ntfsresize (guestfs_h *g,\n"
11333 "                     const char *device);\n"
11334 "\n"
11335 msgstr ""
11336
11337 # type: textblock
11338 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:2813
11339 msgid ""
11340 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11341 "size of the underlying device.  See also L<ntfsresize(8)>."
11342 msgstr ""
11343
11344 # type: =head2
11345 #: ../src/guestfs-actions.pod:4259
11346 msgid "guestfs_ntfsresize_size"
11347 msgstr ""
11348
11349 # type: verbatim
11350 #: ../src/guestfs-actions.pod:4261
11351 #, no-wrap
11352 msgid ""
11353 " int\n"
11354 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11355 "                          const char *device,\n"
11356 "                          int64_t size);\n"
11357 "\n"
11358 msgstr ""
11359
11360 # type: textblock
11361 #: ../src/guestfs-actions.pod:4266
11362 msgid ""
11363 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11364 "to specify the new size (in bytes) explicitly."
11365 msgstr ""
11366
11367 # type: textblock
11368 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:4708
11369 #: ../src/guestfs-actions.pod:4782 ../src/guestfs-actions.pod:5032
11370 msgid "(Added in 1.3.14)"
11371 msgstr ""
11372
11373 # type: =head2
11374 #: ../src/guestfs-actions.pod:4273
11375 msgid "guestfs_part_add"
11376 msgstr ""
11377
11378 # type: verbatim
11379 #: ../src/guestfs-actions.pod:4275
11380 #, no-wrap
11381 msgid ""
11382 " int\n"
11383 " guestfs_part_add (guestfs_h *g,\n"
11384 "                   const char *device,\n"
11385 "                   const char *prlogex,\n"
11386 "                   int64_t startsect,\n"
11387 "                   int64_t endsect);\n"
11388 "\n"
11389 msgstr ""
11390
11391 # type: textblock
11392 #: ../src/guestfs-actions.pod:4282
11393 msgid ""
11394 "This command adds a partition to C<device>.  If there is no partition table "
11395 "on the device, call C<guestfs_part_init> first."
11396 msgstr ""
11397
11398 # type: textblock
11399 #: ../src/guestfs-actions.pod:4285 ../fish/guestfish-actions.pod:2831
11400 msgid ""
11401 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11402 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11403 "C<logical>) and C<e> (or C<extended>) partition types."
11404 msgstr ""
11405
11406 # type: textblock
11407 #: ../src/guestfs-actions.pod:4290 ../fish/guestfish-actions.pod:2836
11408 msgid ""
11409 "C<startsect> and C<endsect> are the start and end of the partition in "
11410 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11411 "from the end of the disk (C<-1> is the last sector)."
11412 msgstr ""
11413
11414 # type: textblock
11415 #: ../src/guestfs-actions.pod:4294
11416 msgid ""
11417 "Creating a partition which covers the whole disk is not so easy.  Use "
11418 "C<guestfs_part_disk> to do that."
11419 msgstr ""
11420
11421 # type: textblock
11422 #: ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:4337
11423 #: ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4468
11424 #: ../src/guestfs-actions.pod:4507 ../src/guestfs-actions.pod:4526
11425 #: ../src/guestfs-actions.pod:4566
11426 msgid "(Added in 1.0.78)"
11427 msgstr ""
11428
11429 # type: =head2
11430 #: ../src/guestfs-actions.pod:4301
11431 msgid "guestfs_part_del"
11432 msgstr ""
11433
11434 # type: verbatim
11435 #: ../src/guestfs-actions.pod:4303
11436 #, no-wrap
11437 msgid ""
11438 " int\n"
11439 " guestfs_part_del (guestfs_h *g,\n"
11440 "                   const char *device,\n"
11441 "                   int partnum);\n"
11442 "\n"
11443 msgstr ""
11444
11445 # type: textblock
11446 #: ../src/guestfs-actions.pod:4308 ../fish/guestfish-actions.pod:2847
11447 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11448 msgstr ""
11449
11450 # type: textblock
11451 #: ../src/guestfs-actions.pod:4310 ../fish/guestfish-actions.pod:2849
11452 msgid ""
11453 "Note that in the case of MBR partitioning, deleting an extended partition "
11454 "also deletes any logical partitions it contains."
11455 msgstr ""
11456
11457 # type: =head2
11458 #: ../src/guestfs-actions.pod:4318
11459 msgid "guestfs_part_disk"
11460 msgstr ""
11461
11462 # type: verbatim
11463 #: ../src/guestfs-actions.pod:4320
11464 #, no-wrap
11465 msgid ""
11466 " int\n"
11467 " guestfs_part_disk (guestfs_h *g,\n"
11468 "                    const char *device,\n"
11469 "                    const char *parttype);\n"
11470 "\n"
11471 msgstr ""
11472
11473 # type: textblock
11474 #: ../src/guestfs-actions.pod:4325
11475 msgid ""
11476 "This command is simply a combination of C<guestfs_part_init> followed by "
11477 "C<guestfs_part_add> to create a single primary partition covering the whole "
11478 "disk."
11479 msgstr ""
11480
11481 # type: textblock
11482 #: ../src/guestfs-actions.pod:4329
11483 msgid ""
11484 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11485 "possible values are described in C<guestfs_part_init>."
11486 msgstr ""
11487
11488 # type: =head2
11489 #: ../src/guestfs-actions.pod:4339
11490 msgid "guestfs_part_get_bootable"
11491 msgstr ""
11492
11493 # type: verbatim
11494 #: ../src/guestfs-actions.pod:4341
11495 #, no-wrap
11496 msgid ""
11497 " int\n"
11498 " guestfs_part_get_bootable (guestfs_h *g,\n"
11499 "                            const char *device,\n"
11500 "                            int partnum);\n"
11501 "\n"
11502 msgstr ""
11503
11504 # type: textblock
11505 #: ../src/guestfs-actions.pod:4346 ../fish/guestfish-actions.pod:2871
11506 msgid ""
11507 "This command returns true if the partition C<partnum> on C<device> has the "
11508 "bootable flag set."
11509 msgstr ""
11510
11511 # type: textblock
11512 #: ../src/guestfs-actions.pod:4349
11513 msgid "See also C<guestfs_part_set_bootable>."
11514 msgstr ""
11515
11516 # type: =head2
11517 #: ../src/guestfs-actions.pod:4355
11518 msgid "guestfs_part_get_mbr_id"
11519 msgstr ""
11520
11521 # type: verbatim
11522 #: ../src/guestfs-actions.pod:4357
11523 #, no-wrap
11524 msgid ""
11525 " int\n"
11526 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11527 "                          const char *device,\n"
11528 "                          int partnum);\n"
11529 "\n"
11530 msgstr ""
11531
11532 # type: textblock
11533 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2880
11534 msgid ""
11535 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11536 "partition C<partnum>."
11537 msgstr ""
11538
11539 # type: textblock
11540 #: ../src/guestfs-actions.pod:4365 ../src/guestfs-actions.pod:4542
11541 msgid ""
11542 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11543 "undefined results for other partition table types (see "
11544 "C<guestfs_part_get_parttype>)."
11545 msgstr ""
11546
11547 # type: =head2
11548 #: ../src/guestfs-actions.pod:4373
11549 msgid "guestfs_part_get_parttype"
11550 msgstr ""
11551
11552 # type: verbatim
11553 #: ../src/guestfs-actions.pod:4375
11554 #, no-wrap
11555 msgid ""
11556 " char *\n"
11557 " guestfs_part_get_parttype (guestfs_h *g,\n"
11558 "                            const char *device);\n"
11559 "\n"
11560 msgstr ""
11561
11562 # type: textblock
11563 #: ../src/guestfs-actions.pod:4379 ../fish/guestfish-actions.pod:2891
11564 msgid ""
11565 "This command examines the partition table on C<device> and returns the "
11566 "partition table type (format) being used."
11567 msgstr ""
11568
11569 # type: textblock
11570 #: ../src/guestfs-actions.pod:4382
11571 msgid ""
11572 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11573 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11574 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11575 msgstr ""
11576
11577 # type: =head2
11578 #: ../src/guestfs-actions.pod:4392
11579 msgid "guestfs_part_init"
11580 msgstr ""
11581
11582 # type: verbatim
11583 #: ../src/guestfs-actions.pod:4394
11584 #, no-wrap
11585 msgid ""
11586 " int\n"
11587 " guestfs_part_init (guestfs_h *g,\n"
11588 "                    const char *device,\n"
11589 "                    const char *parttype);\n"
11590 "\n"
11591 msgstr ""
11592
11593 # type: textblock
11594 #: ../src/guestfs-actions.pod:4399 ../fish/guestfish-actions.pod:2903
11595 msgid ""
11596 "This creates an empty partition table on C<device> of one of the partition "
11597 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11598 "(for large disks)."
11599 msgstr ""
11600
11601 # type: textblock
11602 #: ../src/guestfs-actions.pod:4403
11603 msgid ""
11604 "Initially there are no partitions.  Following this, you should call "
11605 "C<guestfs_part_add> for each partition required."
11606 msgstr ""
11607
11608 # type: textblock
11609 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:2910
11610 msgid "Possible values for C<parttype> are:"
11611 msgstr ""
11612
11613 # type: =item
11614 #: ../src/guestfs-actions.pod:4410 ../fish/guestfish-actions.pod:2914
11615 msgid "B<efi> | B<gpt>"
11616 msgstr ""
11617
11618 # type: textblock
11619 #: ../src/guestfs-actions.pod:4412 ../fish/guestfish-actions.pod:2916
11620 msgid "Intel EFI / GPT partition table."
11621 msgstr ""
11622
11623 # type: textblock
11624 #: ../src/guestfs-actions.pod:4414 ../fish/guestfish-actions.pod:2918
11625 msgid ""
11626 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11627 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11628 "the C<mbr> format."
11629 msgstr ""
11630
11631 # type: =item
11632 #: ../src/guestfs-actions.pod:4418 ../fish/guestfish-actions.pod:2922
11633 msgid "B<mbr> | B<msdos>"
11634 msgstr ""
11635
11636 # type: textblock
11637 #: ../src/guestfs-actions.pod:4420 ../fish/guestfish-actions.pod:2924
11638 msgid ""
11639 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11640 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11641 "TB.  For large disks we recommend using C<gpt>."
11642 msgstr ""
11643
11644 # type: textblock
11645 #: ../src/guestfs-actions.pod:4427 ../fish/guestfish-actions.pod:2931
11646 msgid ""
11647 "Other partition table types that may work but are not supported include:"
11648 msgstr ""
11649
11650 # type: =item
11651 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2936
11652 msgid "B<aix>"
11653 msgstr ""
11654
11655 # type: textblock
11656 #: ../src/guestfs-actions.pod:4434 ../fish/guestfish-actions.pod:2938
11657 msgid "AIX disk labels."
11658 msgstr ""
11659
11660 # type: =item
11661 #: ../src/guestfs-actions.pod:4436 ../fish/guestfish-actions.pod:2940
11662 msgid "B<amiga> | B<rdb>"
11663 msgstr ""
11664
11665 # type: textblock
11666 #: ../src/guestfs-actions.pod:4438 ../fish/guestfish-actions.pod:2942
11667 msgid "Amiga \"Rigid Disk Block\" format."
11668 msgstr ""
11669
11670 # type: =item
11671 #: ../src/guestfs-actions.pod:4440 ../fish/guestfish-actions.pod:2944
11672 msgid "B<bsd>"
11673 msgstr ""
11674
11675 # type: textblock
11676 #: ../src/guestfs-actions.pod:4442 ../fish/guestfish-actions.pod:2946
11677 msgid "BSD disk labels."
11678 msgstr ""
11679
11680 # type: =item
11681 #: ../src/guestfs-actions.pod:4444 ../fish/guestfish-actions.pod:2948
11682 msgid "B<dasd>"
11683 msgstr ""
11684
11685 # type: textblock
11686 #: ../src/guestfs-actions.pod:4446 ../fish/guestfish-actions.pod:2950
11687 msgid "DASD, used on IBM mainframes."
11688 msgstr ""
11689
11690 # type: =item
11691 #: ../src/guestfs-actions.pod:4448 ../fish/guestfish-actions.pod:2952
11692 msgid "B<dvh>"
11693 msgstr ""
11694
11695 # type: textblock
11696 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:2954
11697 msgid "MIPS/SGI volumes."
11698 msgstr ""
11699
11700 # type: =item
11701 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:2956
11702 msgid "B<mac>"
11703 msgstr ""
11704
11705 # type: textblock
11706 #: ../src/guestfs-actions.pod:4454 ../fish/guestfish-actions.pod:2958
11707 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11708 msgstr ""
11709
11710 # type: =item
11711 #: ../src/guestfs-actions.pod:4456 ../fish/guestfish-actions.pod:2960
11712 msgid "B<pc98>"
11713 msgstr ""
11714
11715 # type: textblock
11716 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:2962
11717 msgid "NEC PC-98 format, common in Japan apparently."
11718 msgstr ""
11719
11720 # type: =item
11721 #: ../src/guestfs-actions.pod:4460 ../fish/guestfish-actions.pod:2964
11722 msgid "B<sun>"
11723 msgstr ""
11724
11725 # type: textblock
11726 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2966
11727 msgid "Sun disk labels."
11728 msgstr ""
11729
11730 # type: =head2
11731 #: ../src/guestfs-actions.pod:4470
11732 msgid "guestfs_part_list"
11733 msgstr ""
11734
11735 # type: verbatim
11736 #: ../src/guestfs-actions.pod:4472
11737 #, no-wrap
11738 msgid ""
11739 " struct guestfs_partition_list *\n"
11740 " guestfs_part_list (guestfs_h *g,\n"
11741 "                    const char *device);\n"
11742 "\n"
11743 msgstr ""
11744
11745 # type: textblock
11746 #: ../src/guestfs-actions.pod:4476 ../fish/guestfish-actions.pod:2974
11747 msgid ""
11748 "This command parses the partition table on C<device> and returns the list of "
11749 "partitions found."
11750 msgstr ""
11751
11752 # type: textblock
11753 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:2977
11754 msgid "The fields in the returned structure are:"
11755 msgstr ""
11756
11757 # type: =item
11758 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:2981
11759 msgid "B<part_num>"
11760 msgstr ""
11761
11762 # type: textblock
11763 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:2983
11764 msgid "Partition number, counting from 1."
11765 msgstr ""
11766
11767 # type: =item
11768 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:2985
11769 msgid "B<part_start>"
11770 msgstr ""
11771
11772 # type: textblock
11773 #: ../src/guestfs-actions.pod:4489
11774 msgid ""
11775 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11776 "the device's sector size, see C<guestfs_blockdev_getss>."
11777 msgstr ""
11778
11779 # type: =item
11780 #: ../src/guestfs-actions.pod:4492 ../fish/guestfish-actions.pod:2990
11781 msgid "B<part_end>"
11782 msgstr ""
11783
11784 # type: textblock
11785 #: ../src/guestfs-actions.pod:4494 ../fish/guestfish-actions.pod:2992
11786 msgid "End of the partition in bytes."
11787 msgstr ""
11788
11789 # type: =item
11790 #: ../src/guestfs-actions.pod:4496 ../fish/guestfish-actions.pod:2994
11791 msgid "B<part_size>"
11792 msgstr ""
11793
11794 # type: textblock
11795 #: ../src/guestfs-actions.pod:4498 ../fish/guestfish-actions.pod:2996
11796 msgid "Size of the partition in bytes."
11797 msgstr ""
11798
11799 # type: textblock
11800 #: ../src/guestfs-actions.pod:4502
11801 msgid ""
11802 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
11803 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11804 "C<guestfs_free_partition_list> after use>."
11805 msgstr ""
11806
11807 # type: =head2
11808 #: ../src/guestfs-actions.pod:4509
11809 msgid "guestfs_part_set_bootable"
11810 msgstr ""
11811
11812 # type: verbatim
11813 #: ../src/guestfs-actions.pod:4511
11814 #, no-wrap
11815 msgid ""
11816 " int\n"
11817 " guestfs_part_set_bootable (guestfs_h *g,\n"
11818 "                            const char *device,\n"
11819 "                            int partnum,\n"
11820 "                            int bootable);\n"
11821 "\n"
11822 msgstr ""
11823
11824 # type: textblock
11825 #: ../src/guestfs-actions.pod:4517 ../fish/guestfish-actions.pod:3004
11826 msgid ""
11827 "This sets the bootable flag on partition numbered C<partnum> on device "
11828 "C<device>.  Note that partitions are numbered from 1."
11829 msgstr ""
11830
11831 # type: textblock
11832 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3007
11833 msgid ""
11834 "The bootable flag is used by some operating systems (notably Windows) to "
11835 "determine which partition to boot from.  It is by no means universally "
11836 "recognized."
11837 msgstr ""
11838
11839 # type: =head2
11840 #: ../src/guestfs-actions.pod:4528
11841 msgid "guestfs_part_set_mbr_id"
11842 msgstr ""
11843
11844 # type: verbatim
11845 #: ../src/guestfs-actions.pod:4530
11846 #, no-wrap
11847 msgid ""
11848 " int\n"
11849 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11850 "                          const char *device,\n"
11851 "                          int partnum,\n"
11852 "                          int idbyte);\n"
11853 "\n"
11854 msgstr ""
11855
11856 # type: textblock
11857 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3015
11858 msgid ""
11859 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11860 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11861 "documentation are in fact hexadecimal numbers, but usually documented "
11862 "without any leading \"0x\" which might be confusing."
11863 msgstr ""
11864
11865 # type: =head2
11866 #: ../src/guestfs-actions.pod:4550
11867 msgid "guestfs_part_set_name"
11868 msgstr ""
11869
11870 # type: verbatim
11871 #: ../src/guestfs-actions.pod:4552
11872 #, no-wrap
11873 msgid ""
11874 " int\n"
11875 " guestfs_part_set_name (guestfs_h *g,\n"
11876 "                        const char *device,\n"
11877 "                        int partnum,\n"
11878 "                        const char *name);\n"
11879 "\n"
11880 msgstr ""
11881
11882 # type: textblock
11883 #: ../src/guestfs-actions.pod:4558 ../fish/guestfish-actions.pod:3029
11884 msgid ""
11885 "This sets the partition name on partition numbered C<partnum> on device "
11886 "C<device>.  Note that partitions are numbered from 1."
11887 msgstr ""
11888
11889 # type: textblock
11890 #: ../src/guestfs-actions.pod:4561 ../fish/guestfish-actions.pod:3032
11891 msgid ""
11892 "The partition name can only be set on certain types of partition table.  "
11893 "This works on C<gpt> but not on C<mbr> partitions."
11894 msgstr ""
11895
11896 # type: =head2
11897 #: ../src/guestfs-actions.pod:4568
11898 msgid "guestfs_part_to_dev"
11899 msgstr ""
11900
11901 # type: verbatim
11902 #: ../src/guestfs-actions.pod:4570
11903 #, no-wrap
11904 msgid ""
11905 " char *\n"
11906 " guestfs_part_to_dev (guestfs_h *g,\n"
11907 "                      const char *partition);\n"
11908 "\n"
11909 msgstr ""
11910
11911 # type: textblock
11912 #: ../src/guestfs-actions.pod:4574 ../fish/guestfish-actions.pod:3039
11913 msgid ""
11914 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11915 "partition number, returning the device name (eg. \"/dev/sdb\")."
11916 msgstr ""
11917
11918 # type: textblock
11919 #: ../src/guestfs-actions.pod:4578
11920 msgid ""
11921 "The named partition must exist, for example as a string returned from "
11922 "C<guestfs_list_partitions>."
11923 msgstr ""
11924
11925 # type: =head2
11926 #: ../src/guestfs-actions.pod:4586
11927 msgid "guestfs_ping_daemon"
11928 msgstr ""
11929
11930 # type: verbatim
11931 #: ../src/guestfs-actions.pod:4588
11932 #, no-wrap
11933 msgid ""
11934 " int\n"
11935 " guestfs_ping_daemon (guestfs_h *g);\n"
11936 "\n"
11937 msgstr ""
11938
11939 # type: textblock
11940 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3050
11941 msgid ""
11942 "This is a test probe into the guestfs daemon running inside the qemu "
11943 "subprocess.  Calling this function checks that the daemon responds to the "
11944 "ping message, without affecting the daemon or attached block device(s) in "
11945 "any other way."
11946 msgstr ""
11947
11948 # type: =head2
11949 #: ../src/guestfs-actions.pod:4600
11950 msgid "guestfs_pread"
11951 msgstr ""
11952
11953 # type: verbatim
11954 #: ../src/guestfs-actions.pod:4602
11955 #, no-wrap
11956 msgid ""
11957 " char *\n"
11958 " guestfs_pread (guestfs_h *g,\n"
11959 "                const char *path,\n"
11960 "                int count,\n"
11961 "                int64_t offset,\n"
11962 "                size_t *size_r);\n"
11963 "\n"
11964 msgstr ""
11965
11966 # type: textblock
11967 #: ../src/guestfs-actions.pod:4609 ../fish/guestfish-actions.pod:3059
11968 msgid ""
11969 "This command lets you read part of a file.  It reads C<count> bytes of the "
11970 "file, starting at C<offset>, from file C<path>."
11971 msgstr ""
11972
11973 # type: textblock
11974 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4638
11975 #: ../fish/guestfish-actions.pod:3062 ../fish/guestfish-actions.pod:3077
11976 msgid ""
11977 "This may read fewer bytes than requested.  For further details see the "
11978 "L<pread(2)> system call."
11979 msgstr ""
11980
11981 # type: textblock
11982 #: ../src/guestfs-actions.pod:4615
11983 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11984 msgstr ""
11985
11986 # type: =head2
11987 #: ../src/guestfs-actions.pod:4626
11988 msgid "guestfs_pread_device"
11989 msgstr ""
11990
11991 # type: verbatim
11992 #: ../src/guestfs-actions.pod:4628
11993 #, no-wrap
11994 msgid ""
11995 " char *\n"
11996 " guestfs_pread_device (guestfs_h *g,\n"
11997 "                       const char *device,\n"
11998 "                       int count,\n"
11999 "                       int64_t offset,\n"
12000 "                       size_t *size_r);\n"
12001 "\n"
12002 msgstr ""
12003
12004 # type: textblock
12005 #: ../src/guestfs-actions.pod:4635 ../fish/guestfish-actions.pod:3074
12006 msgid ""
12007 "This command lets you read part of a file.  It reads C<count> bytes of "
12008 "C<device>, starting at C<offset>."
12009 msgstr ""
12010
12011 # type: textblock
12012 #: ../src/guestfs-actions.pod:4641
12013 msgid "See also C<guestfs_pread>."
12014 msgstr ""
12015
12016 # type: textblock
12017 #: ../src/guestfs-actions.pod:4650
12018 msgid "(Added in 1.5.21)"
12019 msgstr ""
12020
12021 # type: =head2
12022 #: ../src/guestfs-actions.pod:4652
12023 msgid "guestfs_pvcreate"
12024 msgstr ""
12025
12026 # type: verbatim
12027 #: ../src/guestfs-actions.pod:4654
12028 #, no-wrap
12029 msgid ""
12030 " int\n"
12031 " guestfs_pvcreate (guestfs_h *g,\n"
12032 "                   const char *device);\n"
12033 "\n"
12034 msgstr ""
12035
12036 # type: textblock
12037 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3089
12038 msgid ""
12039 "This creates an LVM physical volume on the named C<device>, where C<device> "
12040 "should usually be a partition name such as C</dev/sda1>."
12041 msgstr ""
12042
12043 # type: =head2
12044 #: ../src/guestfs-actions.pod:4666
12045 msgid "guestfs_pvremove"
12046 msgstr ""
12047
12048 # type: verbatim
12049 #: ../src/guestfs-actions.pod:4668
12050 #, no-wrap
12051 msgid ""
12052 " int\n"
12053 " guestfs_pvremove (guestfs_h *g,\n"
12054 "                   const char *device);\n"
12055 "\n"
12056 msgstr ""
12057
12058 # type: textblock
12059 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3097
12060 msgid ""
12061 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12062 "it."
12063 msgstr ""
12064
12065 # type: textblock
12066 #: ../src/guestfs-actions.pod:4675 ../fish/guestfish-actions.pod:3100
12067 msgid ""
12068 "The implementation uses the C<pvremove> command which refuses to wipe "
12069 "physical volumes that contain any volume groups, so you have to remove those "
12070 "first."
12071 msgstr ""
12072
12073 # type: =head2
12074 #: ../src/guestfs-actions.pod:4683
12075 msgid "guestfs_pvresize"
12076 msgstr ""
12077
12078 # type: verbatim
12079 #: ../src/guestfs-actions.pod:4685
12080 #, no-wrap
12081 msgid ""
12082 " int\n"
12083 " guestfs_pvresize (guestfs_h *g,\n"
12084 "                   const char *device);\n"
12085 "\n"
12086 msgstr ""
12087
12088 # type: textblock
12089 #: ../src/guestfs-actions.pod:4689 ../fish/guestfish-actions.pod:3108
12090 msgid ""
12091 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12092 "the new size of the underlying device."
12093 msgstr ""
12094
12095 # type: =head2
12096 #: ../src/guestfs-actions.pod:4696
12097 msgid "guestfs_pvresize_size"
12098 msgstr ""
12099
12100 # type: verbatim
12101 #: ../src/guestfs-actions.pod:4698
12102 #, no-wrap
12103 msgid ""
12104 " int\n"
12105 " guestfs_pvresize_size (guestfs_h *g,\n"
12106 "                        const char *device,\n"
12107 "                        int64_t size);\n"
12108 "\n"
12109 msgstr ""
12110
12111 # type: textblock
12112 #: ../src/guestfs-actions.pod:4703
12113 msgid ""
12114 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12115 "specify the new size (in bytes) explicitly."
12116 msgstr ""
12117
12118 # type: =head2
12119 #: ../src/guestfs-actions.pod:4710
12120 msgid "guestfs_pvs"
12121 msgstr ""
12122
12123 # type: verbatim
12124 #: ../src/guestfs-actions.pod:4712
12125 #, no-wrap
12126 msgid ""
12127 " char **\n"
12128 " guestfs_pvs (guestfs_h *g);\n"
12129 "\n"
12130 msgstr ""
12131
12132 # type: textblock
12133 #: ../src/guestfs-actions.pod:4715 ../fish/guestfish-actions.pod:3122
12134 msgid ""
12135 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12136 "(8)> command."
12137 msgstr ""
12138
12139 # type: textblock
12140 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3125
12141 msgid ""
12142 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12143 "sda2>)."
12144 msgstr ""
12145
12146 # type: textblock
12147 #: ../src/guestfs-actions.pod:4721
12148 msgid "See also C<guestfs_pvs_full>."
12149 msgstr ""
12150
12151 # type: =head2
12152 #: ../src/guestfs-actions.pod:4729
12153 msgid "guestfs_pvs_full"
12154 msgstr ""
12155
12156 # type: verbatim
12157 #: ../src/guestfs-actions.pod:4731
12158 #, no-wrap
12159 msgid ""
12160 " struct guestfs_lvm_pv_list *\n"
12161 " guestfs_pvs_full (guestfs_h *g);\n"
12162 "\n"
12163 msgstr ""
12164
12165 # type: textblock
12166 #: ../src/guestfs-actions.pod:4734 ../fish/guestfish-actions.pod:3134
12167 msgid ""
12168 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12169 "(8)> command.  The \"full\" version includes all fields."
12170 msgstr ""
12171
12172 # type: textblock
12173 #: ../src/guestfs-actions.pod:4737
12174 msgid ""
12175 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
12176 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
12177 "C<guestfs_free_lvm_pv_list> after use>."
12178 msgstr ""
12179
12180 # type: =head2
12181 #: ../src/guestfs-actions.pod:4744
12182 msgid "guestfs_pvuuid"
12183 msgstr ""
12184
12185 # type: verbatim
12186 #: ../src/guestfs-actions.pod:4746
12187 #, no-wrap
12188 msgid ""
12189 " char *\n"
12190 " guestfs_pvuuid (guestfs_h *g,\n"
12191 "                 const char *device);\n"
12192 "\n"
12193 msgstr ""
12194
12195 # type: textblock
12196 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3141
12197 msgid "This command returns the UUID of the LVM PV C<device>."
12198 msgstr ""
12199
12200 # type: =head2
12201 #: ../src/guestfs-actions.pod:4757
12202 msgid "guestfs_pwrite"
12203 msgstr ""
12204
12205 # type: verbatim
12206 #: ../src/guestfs-actions.pod:4759
12207 #, no-wrap
12208 msgid ""
12209 " int\n"
12210 " guestfs_pwrite (guestfs_h *g,\n"
12211 "                 const char *path,\n"
12212 "                 const char *content,\n"
12213 "                 size_t content_size,\n"
12214 "                 int64_t offset);\n"
12215 "\n"
12216 msgstr ""
12217
12218 # type: textblock
12219 #: ../src/guestfs-actions.pod:4766 ../fish/guestfish-actions.pod:3147
12220 msgid ""
12221 "This command writes to part of a file.  It writes the data buffer C<content> "
12222 "to the file C<path> starting at offset C<offset>."
12223 msgstr ""
12224
12225 # type: textblock
12226 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3150
12227 msgid ""
12228 "This command implements the L<pwrite(2)> system call, and like that system "
12229 "call it may not write the full data requested.  The return value is the "
12230 "number of bytes that were actually written to the file.  This could even be "
12231 "0, although short writes are unlikely for regular files in ordinary "
12232 "circumstances."
12233 msgstr ""
12234
12235 # type: textblock
12236 #: ../src/guestfs-actions.pod:4775
12237 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12238 msgstr ""
12239
12240 # type: =head2
12241 #: ../src/guestfs-actions.pod:4784
12242 msgid "guestfs_pwrite_device"
12243 msgstr ""
12244
12245 # type: verbatim
12246 #: ../src/guestfs-actions.pod:4786
12247 #, no-wrap
12248 msgid ""
12249 " int\n"
12250 " guestfs_pwrite_device (guestfs_h *g,\n"
12251 "                        const char *device,\n"
12252 "                        const char *content,\n"
12253 "                        size_t content_size,\n"
12254 "                        int64_t offset);\n"
12255 "\n"
12256 msgstr ""
12257
12258 # type: textblock
12259 #: ../src/guestfs-actions.pod:4793 ../fish/guestfish-actions.pod:3165
12260 msgid ""
12261 "This command writes to part of a device.  It writes the data buffer "
12262 "C<content> to C<device> starting at offset C<offset>."
12263 msgstr ""
12264
12265 # type: textblock
12266 #: ../src/guestfs-actions.pod:4796 ../fish/guestfish-actions.pod:3168
12267 msgid ""
12268 "This command implements the L<pwrite(2)> system call, and like that system "
12269 "call it may not write the full data requested (although short writes to disk "
12270 "devices and partitions are probably impossible with standard Linux kernels)."
12271 msgstr ""
12272
12273 # type: textblock
12274 #: ../src/guestfs-actions.pod:4801
12275 msgid "See also C<guestfs_pwrite>."
12276 msgstr ""
12277
12278 # type: textblock
12279 #: ../src/guestfs-actions.pod:4808
12280 msgid "(Added in 1.5.20)"
12281 msgstr ""
12282
12283 # type: =head2
12284 #: ../src/guestfs-actions.pod:4810
12285 msgid "guestfs_read_file"
12286 msgstr ""
12287
12288 # type: verbatim
12289 #: ../src/guestfs-actions.pod:4812
12290 #, no-wrap
12291 msgid ""
12292 " char *\n"
12293 " guestfs_read_file (guestfs_h *g,\n"
12294 "                    const char *path,\n"
12295 "                    size_t *size_r);\n"
12296 "\n"
12297 msgstr ""
12298
12299 # type: textblock
12300 #: ../src/guestfs-actions.pod:4817 ../fish/guestfish-actions.pod:3182
12301 msgid "This calls returns the contents of the file C<path> as a buffer."
12302 msgstr ""
12303
12304 # type: textblock
12305 #: ../src/guestfs-actions.pod:4820
12306 msgid ""
12307 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12308 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12309 "function is limited in the total size of file that can be handled."
12310 msgstr ""
12311
12312 # type: textblock
12313 #: ../src/guestfs-actions.pod:4832
12314 msgid "(Added in 1.0.63)"
12315 msgstr ""
12316
12317 # type: =head2
12318 #: ../src/guestfs-actions.pod:4834
12319 msgid "guestfs_read_lines"
12320 msgstr ""
12321
12322 # type: verbatim
12323 #: ../src/guestfs-actions.pod:4836
12324 #, no-wrap
12325 msgid ""
12326 " char **\n"
12327 " guestfs_read_lines (guestfs_h *g,\n"
12328 "                     const char *path);\n"
12329 "\n"
12330 msgstr ""
12331
12332 # type: textblock
12333 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3199
12334 msgid ""
12335 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12336 "C<CRLF> character sequences are I<not> returned."
12337 msgstr ""
12338
12339 # type: textblock
12340 #: ../src/guestfs-actions.pod:4845
12341 msgid ""
12342 "Note that this function cannot correctly handle binary files (specifically, "
12343 "files containing C<\\0> character which is treated as end of line).  For "
12344 "those you need to use the C<guestfs_read_file> function which has a more "
12345 "complex interface."
12346 msgstr ""
12347
12348 # type: =head2
12349 #: ../src/guestfs-actions.pod:4856
12350 msgid "guestfs_readdir"
12351 msgstr ""
12352
12353 # type: verbatim
12354 #: ../src/guestfs-actions.pod:4858
12355 #, no-wrap
12356 msgid ""
12357 " struct guestfs_dirent_list *\n"
12358 " guestfs_readdir (guestfs_h *g,\n"
12359 "                  const char *dir);\n"
12360 "\n"
12361 msgstr ""
12362
12363 # type: textblock
12364 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3211
12365 msgid "This returns the list of directory entries in directory C<dir>."
12366 msgstr ""
12367
12368 # type: textblock
12369 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3213
12370 msgid ""
12371 "All entries in the directory are returned, including C<.> and C<..>.  The "
12372 "entries are I<not> sorted, but returned in the same order as the underlying "
12373 "filesystem."
12374 msgstr ""
12375
12376 # type: textblock
12377 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3217
12378 msgid ""
12379 "Also this call returns basic file type information about each file.  The "
12380 "C<ftyp> field will contain one of the following characters:"
12381 msgstr ""
12382
12383 # type: =item
12384 #: ../src/guestfs-actions.pod:4873 ../fish/guestfish-actions.pod:3222
12385 msgid "'b'"
12386 msgstr ""
12387
12388 # type: textblock
12389 #: ../src/guestfs-actions.pod:4875 ../fish/guestfish-actions.pod:3224
12390 msgid "Block special"
12391 msgstr ""
12392
12393 # type: =item
12394 #: ../src/guestfs-actions.pod:4877 ../fish/guestfish-actions.pod:3226
12395 msgid "'c'"
12396 msgstr ""
12397
12398 # type: textblock
12399 #: ../src/guestfs-actions.pod:4879 ../fish/guestfish-actions.pod:3228
12400 msgid "Char special"
12401 msgstr ""
12402
12403 # type: =item
12404 #: ../src/guestfs-actions.pod:4881 ../fish/guestfish-actions.pod:3230
12405 msgid "'d'"
12406 msgstr ""
12407
12408 # type: textblock
12409 #: ../src/guestfs-actions.pod:4883 ../fish/guestfish-actions.pod:3232
12410 msgid "Directory"
12411 msgstr ""
12412
12413 # type: =item
12414 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3234
12415 msgid "'f'"
12416 msgstr ""
12417
12418 # type: textblock
12419 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3236
12420 msgid "FIFO (named pipe)"
12421 msgstr ""
12422
12423 # type: =item
12424 #: ../src/guestfs-actions.pod:4889 ../fish/guestfish-actions.pod:3238
12425 msgid "'l'"
12426 msgstr ""
12427
12428 # type: textblock
12429 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3240
12430 msgid "Symbolic link"
12431 msgstr ""
12432
12433 # type: =item
12434 #: ../src/guestfs-actions.pod:4893 ../fish/guestfish-actions.pod:3242
12435 msgid "'r'"
12436 msgstr ""
12437
12438 # type: textblock
12439 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3244
12440 msgid "Regular file"
12441 msgstr ""
12442
12443 # type: =item
12444 #: ../src/guestfs-actions.pod:4897 ../fish/guestfish-actions.pod:3246
12445 msgid "'s'"
12446 msgstr ""
12447
12448 # type: textblock
12449 #: ../src/guestfs-actions.pod:4899 ../fish/guestfish-actions.pod:3248
12450 msgid "Socket"
12451 msgstr ""
12452
12453 # type: =item
12454 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3250
12455 msgid "'u'"
12456 msgstr ""
12457
12458 # type: textblock
12459 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3252
12460 msgid "Unknown file type"
12461 msgstr ""
12462
12463 # type: =item
12464 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3254
12465 msgid "'?'"
12466 msgstr ""
12467
12468 # type: textblock
12469 #: ../src/guestfs-actions.pod:4907 ../fish/guestfish-actions.pod:3256
12470 msgid ""
12471 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12472 msgstr ""
12473
12474 # type: textblock
12475 #: ../src/guestfs-actions.pod:4912
12476 msgid ""
12477 "This function is primarily intended for use by programs.  To get a simple "
12478 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12479 "consumption, use C<guestfs_ll>."
12480 msgstr ""
12481
12482 # type: textblock
12483 #: ../src/guestfs-actions.pod:4916
12484 msgid ""
12485 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
12486 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
12487 "C<guestfs_free_dirent_list> after use>."
12488 msgstr ""
12489
12490 # type: =head2
12491 #: ../src/guestfs-actions.pod:4923
12492 msgid "guestfs_readlink"
12493 msgstr ""
12494
12495 # type: verbatim
12496 #: ../src/guestfs-actions.pod:4925
12497 #, no-wrap
12498 msgid ""
12499 " char *\n"
12500 " guestfs_readlink (guestfs_h *g,\n"
12501 "                   const char *path);\n"
12502 "\n"
12503 msgstr ""
12504
12505 # type: textblock
12506 #: ../src/guestfs-actions.pod:4929 ../fish/guestfish-actions.pod:3269
12507 msgid "This command reads the target of a symbolic link."
12508 msgstr ""
12509
12510 # type: =head2
12511 #: ../src/guestfs-actions.pod:4936
12512 msgid "guestfs_readlinklist"
12513 msgstr ""
12514
12515 # type: verbatim
12516 #: ../src/guestfs-actions.pod:4938
12517 #, no-wrap
12518 msgid ""
12519 " char **\n"
12520 " guestfs_readlinklist (guestfs_h *g,\n"
12521 "                       const char *path,\n"
12522 "                       char *const *names);\n"
12523 "\n"
12524 msgstr ""
12525
12526 # type: textblock
12527 #: ../src/guestfs-actions.pod:4943 ../fish/guestfish-actions.pod:3275
12528 msgid ""
12529 "This call allows you to do a C<readlink> operation on multiple files, where "
12530 "all files are in the directory C<path>.  C<names> is the list of files from "
12531 "this directory."
12532 msgstr ""
12533
12534 # type: textblock
12535 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3279
12536 msgid ""
12537 "On return you get a list of strings, with a one-to-one correspondence to the "
12538 "C<names> list.  Each string is the value of the symbolic link."
12539 msgstr ""
12540
12541 # type: textblock
12542 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3283
12543 msgid ""
12544 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12545 "result string is the empty string C<\"\">.  However the whole operation is "
12546 "completed even if there were C<readlink(2)> errors, and so you can call this "
12547 "function with names where you don't know if they are symbolic links already "
12548 "(albeit slightly less efficient)."
12549 msgstr ""
12550
12551 # type: textblock
12552 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3290
12553 msgid ""
12554 "This call is intended for programs that want to efficiently list a directory "
12555 "contents without making many round-trips.  Very long directory listings "
12556 "might cause the protocol message size to be exceeded, causing this call to "
12557 "fail.  The caller must split up such requests into smaller groups of names."
12558 msgstr ""
12559
12560 # type: =head2
12561 #: ../src/guestfs-actions.pod:4971
12562 msgid "guestfs_realpath"
12563 msgstr ""
12564
12565 # type: verbatim
12566 #: ../src/guestfs-actions.pod:4973
12567 #, no-wrap
12568 msgid ""
12569 " char *\n"
12570 " guestfs_realpath (guestfs_h *g,\n"
12571 "                   const char *path);\n"
12572 "\n"
12573 msgstr ""
12574
12575 # type: textblock
12576 #: ../src/guestfs-actions.pod:4977 ../fish/guestfish-actions.pod:3301
12577 msgid ""
12578 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12579 "has no C<.>, C<..> or symbolic link path elements."
12580 msgstr ""
12581
12582 # type: =head2
12583 #: ../src/guestfs-actions.pod:4985
12584 msgid "guestfs_removexattr"
12585 msgstr ""
12586
12587 # type: verbatim
12588 #: ../src/guestfs-actions.pod:4987
12589 #, no-wrap
12590 msgid ""
12591 " int\n"
12592 " guestfs_removexattr (guestfs_h *g,\n"
12593 "                      const char *xattr,\n"
12594 "                      const char *path);\n"
12595 "\n"
12596 msgstr ""
12597
12598 # type: textblock
12599 #: ../src/guestfs-actions.pod:4992 ../fish/guestfish-actions.pod:3308
12600 msgid ""
12601 "This call removes the extended attribute named C<xattr> of the file C<path>."
12602 msgstr ""
12603
12604 # type: textblock
12605 #: ../src/guestfs-actions.pod:4995
12606 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12607 msgstr ""
12608
12609 # type: =head2
12610 #: ../src/guestfs-actions.pod:5001
12611 msgid "guestfs_resize2fs"
12612 msgstr ""
12613
12614 # type: verbatim
12615 #: ../src/guestfs-actions.pod:5003
12616 #, no-wrap
12617 msgid ""
12618 " int\n"
12619 " guestfs_resize2fs (guestfs_h *g,\n"
12620 "                    const char *device);\n"
12621 "\n"
12622 msgstr ""
12623
12624 # type: textblock
12625 #: ../src/guestfs-actions.pod:5007 ../fish/guestfish-actions.pod:3317
12626 msgid ""
12627 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12628 "underlying device."
12629 msgstr ""
12630
12631 # type: textblock
12632 #: ../src/guestfs-actions.pod:5010
12633 msgid ""
12634 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12635 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12636 "sometimes gives an error about this and sometimes not.  In any case, it is "
12637 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12638 msgstr ""
12639
12640 # type: =head2
12641 #: ../src/guestfs-actions.pod:5020
12642 msgid "guestfs_resize2fs_size"
12643 msgstr ""
12644
12645 # type: verbatim
12646 #: ../src/guestfs-actions.pod:5022
12647 #, no-wrap
12648 msgid ""
12649 " int\n"
12650 " guestfs_resize2fs_size (guestfs_h *g,\n"
12651 "                         const char *device,\n"
12652 "                         int64_t size);\n"
12653 "\n"
12654 msgstr ""
12655
12656 # type: textblock
12657 #: ../src/guestfs-actions.pod:5027
12658 msgid ""
12659 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12660 "to specify the new size (in bytes) explicitly."
12661 msgstr ""
12662
12663 # type: =head2
12664 #: ../src/guestfs-actions.pod:5034
12665 msgid "guestfs_rm"
12666 msgstr ""
12667
12668 # type: verbatim
12669 #: ../src/guestfs-actions.pod:5036
12670 #, no-wrap
12671 msgid ""
12672 " int\n"
12673 " guestfs_rm (guestfs_h *g,\n"
12674 "             const char *path);\n"
12675 "\n"
12676 msgstr ""
12677
12678 # type: textblock
12679 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3337
12680 msgid "Remove the single file C<path>."
12681 msgstr ""
12682
12683 # type: =head2
12684 #: ../src/guestfs-actions.pod:5046
12685 msgid "guestfs_rm_rf"
12686 msgstr ""
12687
12688 # type: verbatim
12689 #: ../src/guestfs-actions.pod:5048
12690 #, no-wrap
12691 msgid ""
12692 " int\n"
12693 " guestfs_rm_rf (guestfs_h *g,\n"
12694 "                const char *path);\n"
12695 "\n"
12696 msgstr ""
12697
12698 # type: textblock
12699 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3343
12700 msgid ""
12701 "Remove the file or directory C<path>, recursively removing the contents if "
12702 "its a directory.  This is like the C<rm -rf> shell command."
12703 msgstr ""
12704
12705 # type: =head2
12706 #: ../src/guestfs-actions.pod:5060
12707 msgid "guestfs_rmdir"
12708 msgstr ""
12709
12710 # type: verbatim
12711 #: ../src/guestfs-actions.pod:5062
12712 #, no-wrap
12713 msgid ""
12714 " int\n"
12715 " guestfs_rmdir (guestfs_h *g,\n"
12716 "                const char *path);\n"
12717 "\n"
12718 msgstr ""
12719
12720 # type: textblock
12721 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3351
12722 msgid "Remove the single directory C<path>."
12723 msgstr ""
12724
12725 # type: =head2
12726 #: ../src/guestfs-actions.pod:5072
12727 msgid "guestfs_rmmountpoint"
12728 msgstr ""
12729
12730 # type: verbatim
12731 #: ../src/guestfs-actions.pod:5074
12732 #, no-wrap
12733 msgid ""
12734 " int\n"
12735 " guestfs_rmmountpoint (guestfs_h *g,\n"
12736 "                       const char *exemptpath);\n"
12737 "\n"
12738 msgstr ""
12739
12740 # type: textblock
12741 #: ../src/guestfs-actions.pod:5078
12742 msgid ""
12743 "This calls removes a mountpoint that was previously created with "
12744 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12745 msgstr ""
12746
12747 # type: =head2
12748 #: ../src/guestfs-actions.pod:5086
12749 msgid "guestfs_scrub_device"
12750 msgstr ""
12751
12752 # type: verbatim
12753 #: ../src/guestfs-actions.pod:5088
12754 #, no-wrap
12755 msgid ""
12756 " int\n"
12757 " guestfs_scrub_device (guestfs_h *g,\n"
12758 "                       const char *device);\n"
12759 "\n"
12760 msgstr ""
12761
12762 # type: textblock
12763 #: ../src/guestfs-actions.pod:5092 ../fish/guestfish-actions.pod:3365
12764 msgid ""
12765 "This command writes patterns over C<device> to make data retrieval more "
12766 "difficult."
12767 msgstr ""
12768
12769 # type: textblock
12770 #: ../src/guestfs-actions.pod:5095 ../src/guestfs-actions.pod:5116
12771 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3368
12772 #: ../fish/guestfish-actions.pod:3383 ../fish/guestfish-actions.pod:3396
12773 msgid ""
12774 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12775 "more details."
12776 msgstr ""
12777
12778 # type: textblock
12779 #: ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5121
12780 #: ../src/guestfs-actions.pod:5140
12781 msgid "(Added in 1.0.52)"
12782 msgstr ""
12783
12784 # type: =head2
12785 #: ../src/guestfs-actions.pod:5105
12786 msgid "guestfs_scrub_file"
12787 msgstr ""
12788
12789 # type: verbatim
12790 #: ../src/guestfs-actions.pod:5107
12791 #, no-wrap
12792 msgid ""
12793 " int\n"
12794 " guestfs_scrub_file (guestfs_h *g,\n"
12795 "                     const char *file);\n"
12796 "\n"
12797 msgstr ""
12798
12799 # type: textblock
12800 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3378
12801 msgid ""
12802 "This command writes patterns over a file to make data retrieval more "
12803 "difficult."
12804 msgstr ""
12805
12806 # type: textblock
12807 #: ../src/guestfs-actions.pod:5114 ../fish/guestfish-actions.pod:3381
12808 msgid "The file is I<removed> after scrubbing."
12809 msgstr ""
12810
12811 # type: =head2
12812 #: ../src/guestfs-actions.pod:5123
12813 msgid "guestfs_scrub_freespace"
12814 msgstr ""
12815
12816 # type: verbatim
12817 #: ../src/guestfs-actions.pod:5125
12818 #, no-wrap
12819 msgid ""
12820 " int\n"
12821 " guestfs_scrub_freespace (guestfs_h *g,\n"
12822 "                          const char *dir);\n"
12823 "\n"
12824 msgstr ""
12825
12826 # type: textblock
12827 #: ../src/guestfs-actions.pod:5129
12828 msgid ""
12829 "This command creates the directory C<dir> and then fills it with files until "
12830 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12831 "and deletes them.  The intention is to scrub any free space on the partition "
12832 "containing C<dir>."
12833 msgstr ""
12834
12835 # type: =head2
12836 #: ../src/guestfs-actions.pod:5142
12837 msgid "guestfs_set_append"
12838 msgstr ""
12839
12840 # type: verbatim
12841 #: ../src/guestfs-actions.pod:5144
12842 #, no-wrap
12843 msgid ""
12844 " int\n"
12845 " guestfs_set_append (guestfs_h *g,\n"
12846 "                     const char *append);\n"
12847 "\n"
12848 msgstr ""
12849
12850 # type: textblock
12851 #: ../src/guestfs-actions.pod:5148 ../fish/guestfish-actions.pod:3405
12852 msgid ""
12853 "This function is used to add additional options to the guest kernel command "
12854 "line."
12855 msgstr ""
12856
12857 # type: textblock
12858 #: ../src/guestfs-actions.pod:5151 ../fish/guestfish-actions.pod:3408
12859 msgid ""
12860 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12861 "environment variable."
12862 msgstr ""
12863
12864 # type: textblock
12865 #: ../src/guestfs-actions.pod:5154 ../fish/guestfish-actions.pod:3411
12866 msgid ""
12867 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12868 "(libguestfs always adds a few of its own)."
12869 msgstr ""
12870
12871 # type: =head2
12872 #: ../src/guestfs-actions.pod:5161
12873 msgid "guestfs_set_autosync"
12874 msgstr ""
12875
12876 # type: verbatim
12877 #: ../src/guestfs-actions.pod:5163
12878 #, no-wrap
12879 msgid ""
12880 " int\n"
12881 " guestfs_set_autosync (guestfs_h *g,\n"
12882 "                       int autosync);\n"
12883 "\n"
12884 msgstr ""
12885
12886 # type: textblock
12887 #: ../src/guestfs-actions.pod:5167
12888 msgid ""
12889 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12890 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12891 "the handle is closed (also if the program exits without closing handles)."
12892 msgstr ""
12893
12894 # type: textblock
12895 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3425
12896 msgid ""
12897 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12898 "disabled by default)."
12899 msgstr ""
12900
12901 # type: =head2
12902 #: ../src/guestfs-actions.pod:5179
12903 msgid "guestfs_set_direct"
12904 msgstr ""
12905
12906 # type: verbatim
12907 #: ../src/guestfs-actions.pod:5181
12908 #, no-wrap
12909 msgid ""
12910 " int\n"
12911 " guestfs_set_direct (guestfs_h *g,\n"
12912 "                     int direct);\n"
12913 "\n"
12914 msgstr ""
12915
12916 # type: textblock
12917 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3434
12918 msgid ""
12919 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12920 "passed directly through to the appliance once it is launched."
12921 msgstr ""
12922
12923 # type: textblock
12924 #: ../src/guestfs-actions.pod:5189
12925 msgid ""
12926 "One consequence of this is that log messages aren't caught by the library "
12927 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12928 "stdout."
12929 msgstr ""
12930
12931 # type: textblock
12932 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3442
12933 msgid "You probably don't want to use this unless you know what you are doing."
12934 msgstr ""
12935
12936 # type: textblock
12937 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:3445
12938 msgid "The default is disabled."
12939 msgstr ""
12940
12941 # type: =head2
12942 #: ../src/guestfs-actions.pod:5202
12943 msgid "guestfs_set_e2label"
12944 msgstr ""
12945
12946 # type: verbatim
12947 #: ../src/guestfs-actions.pod:5204
12948 #, no-wrap
12949 msgid ""
12950 " int\n"
12951 " guestfs_set_e2label (guestfs_h *g,\n"
12952 "                      const char *device,\n"
12953 "                      const char *label);\n"
12954 "\n"
12955 msgstr ""
12956
12957 # type: textblock
12958 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3451
12959 msgid ""
12960 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12961 "C<label>.  Filesystem labels are limited to 16 characters."
12962 msgstr ""
12963
12964 # type: textblock
12965 #: ../src/guestfs-actions.pod:5213
12966 msgid ""
12967 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12968 "the existing label on a filesystem."
12969 msgstr ""
12970
12971 # type: =head2
12972 #: ../src/guestfs-actions.pod:5220
12973 msgid "guestfs_set_e2uuid"
12974 msgstr ""
12975
12976 # type: verbatim
12977 #: ../src/guestfs-actions.pod:5222
12978 #, no-wrap
12979 msgid ""
12980 " int\n"
12981 " guestfs_set_e2uuid (guestfs_h *g,\n"
12982 "                     const char *device,\n"
12983 "                     const char *uuid);\n"
12984 "\n"
12985 msgstr ""
12986
12987 # type: textblock
12988 #: ../src/guestfs-actions.pod:5227 ../fish/guestfish-actions.pod:3462
12989 msgid ""
12990 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12991 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12992 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12993 msgstr ""
12994
12995 # type: textblock
12996 #: ../src/guestfs-actions.pod:5232
12997 msgid ""
12998 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12999 "the existing UUID of a filesystem."
13000 msgstr ""
13001
13002 # type: =head2
13003 #: ../src/guestfs-actions.pod:5239
13004 msgid "guestfs_set_memsize"
13005 msgstr ""
13006
13007 # type: verbatim
13008 #: ../src/guestfs-actions.pod:5241
13009 #, no-wrap
13010 msgid ""
13011 " int\n"
13012 " guestfs_set_memsize (guestfs_h *g,\n"
13013 "                      int memsize);\n"
13014 "\n"
13015 msgstr ""
13016
13017 # type: textblock
13018 #: ../src/guestfs-actions.pod:5245
13019 msgid ""
13020 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13021 "This only has any effect if called before C<guestfs_launch>."
13022 msgstr ""
13023
13024 # type: textblock
13025 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3480
13026 msgid ""
13027 "You can also change this by setting the environment variable "
13028 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13029 msgstr ""
13030
13031 # type: =head2
13032 #: ../src/guestfs-actions.pod:5260
13033 msgid "guestfs_set_network"
13034 msgstr ""
13035
13036 # type: verbatim
13037 #: ../src/guestfs-actions.pod:5262
13038 #, no-wrap
13039 msgid ""
13040 " int\n"
13041 " guestfs_set_network (guestfs_h *g,\n"
13042 "                      int network);\n"
13043 "\n"
13044 msgstr ""
13045
13046 # type: textblock
13047 #: ../src/guestfs-actions.pod:5266 ../fish/guestfish-actions.pod:3493
13048 msgid ""
13049 "If C<network> is true, then the network is enabled in the libguestfs "
13050 "appliance.  The default is false."
13051 msgstr ""
13052
13053 # type: textblock
13054 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3496
13055 msgid ""
13056 "This affects whether commands are able to access the network (see L<guestfs"
13057 "(3)/RUNNING COMMANDS>)."
13058 msgstr ""
13059
13060 # type: textblock
13061 #: ../src/guestfs-actions.pod:5272
13062 msgid ""
13063 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13064 "effect."
13065 msgstr ""
13066
13067 # type: =head2
13068 #: ../src/guestfs-actions.pod:5279
13069 msgid "guestfs_set_path"
13070 msgstr ""
13071
13072 # type: verbatim
13073 #: ../src/guestfs-actions.pod:5281
13074 #, no-wrap
13075 msgid ""
13076 " int\n"
13077 " guestfs_set_path (guestfs_h *g,\n"
13078 "                   const char *searchpath);\n"
13079 "\n"
13080 msgstr ""
13081
13082 # type: textblock
13083 #: ../src/guestfs-actions.pod:5285 ../fish/guestfish-actions.pod:3508
13084 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13085 msgstr ""
13086
13087 # type: textblock
13088 #: ../src/guestfs-actions.pod:5287 ../fish/guestfish-actions.pod:3510
13089 msgid ""
13090 "The default is C<$libdir/guestfs> unless overridden by setting "
13091 "C<LIBGUESTFS_PATH> environment variable."
13092 msgstr ""
13093
13094 # type: textblock
13095 #: ../src/guestfs-actions.pod:5290 ../fish/guestfish-actions.pod:3513
13096 msgid "Setting C<path> to C<NULL> restores the default path."
13097 msgstr ""
13098
13099 # type: =head2
13100 #: ../src/guestfs-actions.pod:5296
13101 msgid "guestfs_set_qemu"
13102 msgstr ""
13103
13104 # type: verbatim
13105 #: ../src/guestfs-actions.pod:5298
13106 #, no-wrap
13107 msgid ""
13108 " int\n"
13109 " guestfs_set_qemu (guestfs_h *g,\n"
13110 "                   const char *qemu);\n"
13111 "\n"
13112 msgstr ""
13113
13114 # type: textblock
13115 #: ../src/guestfs-actions.pod:5302 ../fish/guestfish-actions.pod:3521
13116 msgid "Set the qemu binary that we will use."
13117 msgstr ""
13118
13119 # type: textblock
13120 #: ../src/guestfs-actions.pod:5304 ../fish/guestfish-actions.pod:3523
13121 msgid ""
13122 "The default is chosen when the library was compiled by the configure script."
13123 msgstr ""
13124
13125 # type: textblock
13126 #: ../src/guestfs-actions.pod:5307 ../fish/guestfish-actions.pod:3526
13127 msgid ""
13128 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13129 "variable."
13130 msgstr ""
13131
13132 # type: textblock
13133 #: ../src/guestfs-actions.pod:5310 ../fish/guestfish-actions.pod:3529
13134 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13135 msgstr ""
13136
13137 # type: textblock
13138 #: ../src/guestfs-actions.pod:5312 ../fish/guestfish-actions.pod:3531
13139 msgid ""
13140 "Note that you should call this function as early as possible after creating "
13141 "the handle.  This is because some pre-launch operations depend on testing "
13142 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13143 "don't retest features, and so you might see inconsistent results.  Using the "
13144 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13145 "the qemu binary at the same time as the handle is created."
13146 msgstr ""
13147
13148 # type: =head2
13149 #: ../src/guestfs-actions.pod:5324
13150 msgid "guestfs_set_recovery_proc"
13151 msgstr ""
13152
13153 # type: verbatim
13154 #: ../src/guestfs-actions.pod:5326
13155 #, no-wrap
13156 msgid ""
13157 " int\n"
13158 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13159 "                            int recoveryproc);\n"
13160 "\n"
13161 msgstr ""
13162
13163 # type: textblock
13164 #: ../src/guestfs-actions.pod:5330
13165 msgid ""
13166 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13167 "not create a recovery process.  The purpose of the recovery process is to "
13168 "stop runaway qemu processes in the case where the main program aborts "
13169 "abruptly."
13170 msgstr ""
13171
13172 # type: textblock
13173 #: ../src/guestfs-actions.pod:5335
13174 msgid ""
13175 "This only has any effect if called before C<guestfs_launch>, and the default "
13176 "is true."
13177 msgstr ""
13178
13179 # type: textblock
13180 #: ../src/guestfs-actions.pod:5338 ../fish/guestfish-actions.pod:3553
13181 msgid ""
13182 "About the only time when you would want to disable this is if the main "
13183 "process will fork itself into the background (\"daemonize\" itself).  In "
13184 "this case the recovery process thinks that the main program has disappeared "
13185 "and so kills qemu, which is not very helpful."
13186 msgstr ""
13187
13188 # type: =head2
13189 #: ../src/guestfs-actions.pod:5348
13190 msgid "guestfs_set_selinux"
13191 msgstr ""
13192
13193 # type: verbatim
13194 #: ../src/guestfs-actions.pod:5350
13195 #, no-wrap
13196 msgid ""
13197 " int\n"
13198 " guestfs_set_selinux (guestfs_h *g,\n"
13199 "                      int selinux);\n"
13200 "\n"
13201 msgstr ""
13202
13203 # type: textblock
13204 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:3565
13205 msgid ""
13206 "This sets the selinux flag that is passed to the appliance at boot time.  "
13207 "The default is C<selinux=0> (disabled)."
13208 msgstr ""
13209
13210 # type: textblock
13211 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3568
13212 msgid ""
13213 "Note that if SELinux is enabled, it is always in Permissive mode "
13214 "(C<enforcing=0>)."
13215 msgstr ""
13216
13217 # type: =head2
13218 #: ../src/guestfs-actions.pod:5367
13219 msgid "guestfs_set_trace"
13220 msgstr ""
13221
13222 # type: verbatim
13223 #: ../src/guestfs-actions.pod:5369
13224 #, no-wrap
13225 msgid ""
13226 " int\n"
13227 " guestfs_set_trace (guestfs_h *g,\n"
13228 "                    int trace);\n"
13229 "\n"
13230 msgstr ""
13231
13232 # type: textblock
13233 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:3580
13234 msgid ""
13235 "If the command trace flag is set to 1, then commands are printed on stderr "
13236 "before they are executed in a format which is very similar to the one used "
13237 "by guestfish.  In other words, you can run a program with this enabled, and "
13238 "you will get out a script which you can feed to guestfish to perform the "
13239 "same set of actions."
13240 msgstr ""
13241
13242 # type: textblock
13243 #: ../src/guestfs-actions.pod:5380 ../fish/guestfish-actions.pod:3587
13244 msgid ""
13245 "If you want to trace C API calls into libguestfs (and other libraries) then "
13246 "possibly a better way is to use the external ltrace(1) command."
13247 msgstr ""
13248
13249 # type: textblock
13250 #: ../src/guestfs-actions.pod:5384 ../fish/guestfish-actions.pod:3591
13251 msgid ""
13252 "Command traces are disabled unless the environment variable "
13253 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13254 msgstr ""
13255
13256 # type: =head2
13257 #: ../src/guestfs-actions.pod:5391
13258 msgid "guestfs_set_verbose"
13259 msgstr ""
13260
13261 # type: verbatim
13262 #: ../src/guestfs-actions.pod:5393
13263 #, no-wrap
13264 msgid ""
13265 " int\n"
13266 " guestfs_set_verbose (guestfs_h *g,\n"
13267 "                      int verbose);\n"
13268 "\n"
13269 msgstr ""
13270
13271 # type: textblock
13272 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:3600
13273 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13274 msgstr ""
13275
13276 # type: textblock
13277 #: ../src/guestfs-actions.pod:5399 ../fish/guestfish-actions.pod:3602
13278 msgid ""
13279 "Verbose messages are disabled unless the environment variable "
13280 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13281 msgstr ""
13282
13283 # type: =head2
13284 #: ../src/guestfs-actions.pod:5406
13285 msgid "guestfs_setcon"
13286 msgstr ""
13287
13288 # type: verbatim
13289 #: ../src/guestfs-actions.pod:5408
13290 #, no-wrap
13291 msgid ""
13292 " int\n"
13293 " guestfs_setcon (guestfs_h *g,\n"
13294 "                 const char *context);\n"
13295 "\n"
13296 msgstr ""
13297
13298 # type: textblock
13299 #: ../src/guestfs-actions.pod:5412 ../fish/guestfish-actions.pod:3609
13300 msgid ""
13301 "This sets the SELinux security context of the daemon to the string "
13302 "C<context>."
13303 msgstr ""
13304
13305 # type: textblock
13306 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3612
13307 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13308 msgstr ""
13309
13310 # type: =head2
13311 #: ../src/guestfs-actions.pod:5421
13312 msgid "guestfs_setxattr"
13313 msgstr ""
13314
13315 # type: verbatim
13316 #: ../src/guestfs-actions.pod:5423
13317 #, no-wrap
13318 msgid ""
13319 " int\n"
13320 " guestfs_setxattr (guestfs_h *g,\n"
13321 "                   const char *xattr,\n"
13322 "                   const char *val,\n"
13323 "                   int vallen,\n"
13324 "                   const char *path);\n"
13325 "\n"
13326 msgstr ""
13327
13328 # type: textblock
13329 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3618
13330 msgid ""
13331 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13332 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13333 msgstr ""
13334
13335 # type: textblock
13336 #: ../src/guestfs-actions.pod:5434
13337 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13338 msgstr ""
13339
13340 # type: =head2
13341 #: ../src/guestfs-actions.pod:5440
13342 msgid "guestfs_sfdisk"
13343 msgstr ""
13344
13345 # type: verbatim
13346 #: ../src/guestfs-actions.pod:5442
13347 #, no-wrap
13348 msgid ""
13349 " int\n"
13350 " guestfs_sfdisk (guestfs_h *g,\n"
13351 "                 const char *device,\n"
13352 "                 int cyls,\n"
13353 "                 int heads,\n"
13354 "                 int sectors,\n"
13355 "                 char *const *lines);\n"
13356 "\n"
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5450 ../fish/guestfish-actions.pod:3628
13361 msgid ""
13362 "This is a direct interface to the L<sfdisk(8)> program for creating "
13363 "partitions on block devices."
13364 msgstr ""
13365
13366 # type: textblock
13367 #: ../src/guestfs-actions.pod:5453 ../fish/guestfish-actions.pod:3631
13368 msgid "C<device> should be a block device, for example C</dev/sda>."
13369 msgstr ""
13370
13371 # type: textblock
13372 #: ../src/guestfs-actions.pod:5455 ../fish/guestfish-actions.pod:3633
13373 msgid ""
13374 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13375 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13376 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13377 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13378 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13379 "the kernel) cannot work out the right geometry and you will need to tell it."
13380 msgstr ""
13381
13382 # type: textblock
13383 #: ../src/guestfs-actions.pod:5463 ../fish/guestfish-actions.pod:3641
13384 msgid ""
13385 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13386 "refer to the L<sfdisk(8)> manpage."
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5466 ../fish/guestfish-actions.pod:3644
13391 msgid ""
13392 "To create a single partition occupying the whole disk, you would pass "
13393 "C<lines> as a single element list, when the single element being the string "
13394 "C<,> (comma)."
13395 msgstr ""
13396
13397 # type: textblock
13398 #: ../src/guestfs-actions.pod:5470
13399 msgid ""
13400 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13401 msgstr ""
13402
13403 # type: =head2
13404 #: ../src/guestfs-actions.pod:5480
13405 msgid "guestfs_sfdiskM"
13406 msgstr ""
13407
13408 # type: verbatim
13409 #: ../src/guestfs-actions.pod:5482
13410 #, no-wrap
13411 msgid ""
13412 " int\n"
13413 " guestfs_sfdiskM (guestfs_h *g,\n"
13414 "                  const char *device,\n"
13415 "                  char *const *lines);\n"
13416 "\n"
13417 msgstr ""
13418
13419 # type: textblock
13420 #: ../src/guestfs-actions.pod:5487
13421 msgid ""
13422 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13423 "partition sizes are specified in megabytes only (rounded to the nearest "
13424 "cylinder) and you don't need to specify the cyls, heads and sectors "
13425 "parameters which were rarely if ever used anyway."
13426 msgstr ""
13427
13428 # type: textblock
13429 #: ../src/guestfs-actions.pod:5493
13430 msgid ""
13431 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13432 "C<guestfs_part_disk>"
13433 msgstr ""
13434
13435 # type: =head2
13436 #: ../src/guestfs-actions.pod:5503
13437 msgid "guestfs_sfdisk_N"
13438 msgstr ""
13439
13440 # type: verbatim
13441 #: ../src/guestfs-actions.pod:5505
13442 #, no-wrap
13443 msgid ""
13444 " int\n"
13445 " guestfs_sfdisk_N (guestfs_h *g,\n"
13446 "                   const char *device,\n"
13447 "                   int partnum,\n"
13448 "                   int cyls,\n"
13449 "                   int heads,\n"
13450 "                   int sectors,\n"
13451 "                   const char *line);\n"
13452 "\n"
13453 msgstr ""
13454
13455 # type: textblock
13456 #: ../src/guestfs-actions.pod:5514 ../fish/guestfish-actions.pod:3674
13457 msgid ""
13458 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13459 "(note: C<n> counts from 1)."
13460 msgstr ""
13461
13462 # type: textblock
13463 #: ../src/guestfs-actions.pod:5517
13464 msgid ""
13465 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13466 "for the cyls/heads/sectors parameters."
13467 msgstr ""
13468
13469 # type: textblock
13470 #: ../src/guestfs-actions.pod:5520
13471 msgid "See also: C<guestfs_part_add>"
13472 msgstr ""
13473
13474 # type: =head2
13475 #: ../src/guestfs-actions.pod:5529
13476 msgid "guestfs_sfdisk_disk_geometry"
13477 msgstr ""
13478
13479 # type: verbatim
13480 #: ../src/guestfs-actions.pod:5531
13481 #, no-wrap
13482 msgid ""
13483 " char *\n"
13484 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13485 "                               const char *device);\n"
13486 "\n"
13487 msgstr ""
13488
13489 # type: textblock
13490 #: ../src/guestfs-actions.pod:5535
13491 msgid ""
13492 "This displays the disk geometry of C<device> read from the partition table.  "
13493 "Especially in the case where the underlying block device has been resized, "
13494 "this can be different from the kernel's idea of the geometry (see "
13495 "C<guestfs_sfdisk_kernel_geometry>)."
13496 msgstr ""
13497
13498 # type: textblock
13499 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5556
13500 #: ../fish/guestfish-actions.pod:3694 ../fish/guestfish-actions.pod:3703
13501 msgid "The result is in human-readable format, and not designed to be parsed."
13502 msgstr ""
13503
13504 # type: =head2
13505 #: ../src/guestfs-actions.pod:5548
13506 msgid "guestfs_sfdisk_kernel_geometry"
13507 msgstr ""
13508
13509 # type: verbatim
13510 #: ../src/guestfs-actions.pod:5550
13511 #, no-wrap
13512 msgid ""
13513 " char *\n"
13514 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13515 "                                 const char *device);\n"
13516 "\n"
13517 msgstr ""
13518
13519 # type: textblock
13520 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:3701
13521 msgid "This displays the kernel's idea of the geometry of C<device>."
13522 msgstr ""
13523
13524 # type: =head2
13525 #: ../src/guestfs-actions.pod:5564
13526 msgid "guestfs_sfdisk_l"
13527 msgstr ""
13528
13529 # type: verbatim
13530 #: ../src/guestfs-actions.pod:5566
13531 #, no-wrap
13532 msgid ""
13533 " char *\n"
13534 " guestfs_sfdisk_l (guestfs_h *g,\n"
13535 "                   const char *device);\n"
13536 "\n"
13537 msgstr ""
13538
13539 # type: textblock
13540 #: ../src/guestfs-actions.pod:5570 ../fish/guestfish-actions.pod:3710
13541 msgid ""
13542 "This displays the partition table on C<device>, in the human-readable output "
13543 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13544 msgstr ""
13545
13546 # type: textblock
13547 #: ../src/guestfs-actions.pod:5574
13548 msgid "See also: C<guestfs_part_list>"
13549 msgstr ""
13550
13551 # type: =head2
13552 #: ../src/guestfs-actions.pod:5581
13553 msgid "guestfs_sh"
13554 msgstr ""
13555
13556 # type: verbatim
13557 #: ../src/guestfs-actions.pod:5583
13558 #, no-wrap
13559 msgid ""
13560 " char *\n"
13561 " guestfs_sh (guestfs_h *g,\n"
13562 "             const char *command);\n"
13563 "\n"
13564 msgstr ""
13565
13566 # type: textblock
13567 #: ../src/guestfs-actions.pod:5587 ../fish/guestfish-actions.pod:3720
13568 msgid ""
13569 "This call runs a command from the guest filesystem via the guest's C</bin/"
13570 "sh>."
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5590
13575 msgid "This is like C<guestfs_command>, but passes the command to:"
13576 msgstr ""
13577
13578 # type: verbatim
13579 #: ../src/guestfs-actions.pod:5592 ../fish/guestfish-actions.pod:3725
13580 #, no-wrap
13581 msgid ""
13582 " /bin/sh -c \"command\"\n"
13583 "\n"
13584 msgstr ""
13585
13586 # type: textblock
13587 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3727
13588 msgid ""
13589 "Depending on the guest's shell, this usually results in wildcards being "
13590 "expanded, shell expressions being interpolated and so on."
13591 msgstr ""
13592
13593 # type: textblock
13594 #: ../src/guestfs-actions.pod:5598
13595 msgid "All the provisos about C<guestfs_command> apply to this call."
13596 msgstr ""
13597
13598 # type: =head2
13599 #: ../src/guestfs-actions.pod:5605
13600 msgid "guestfs_sh_lines"
13601 msgstr ""
13602
13603 # type: verbatim
13604 #: ../src/guestfs-actions.pod:5607
13605 #, no-wrap
13606 msgid ""
13607 " char **\n"
13608 " guestfs_sh_lines (guestfs_h *g,\n"
13609 "                   const char *command);\n"
13610 "\n"
13611 msgstr ""
13612
13613 # type: textblock
13614 #: ../src/guestfs-actions.pod:5611
13615 msgid ""
13616 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13617 "lines."
13618 msgstr ""
13619
13620 # type: textblock
13621 #: ../src/guestfs-actions.pod:5614
13622 msgid "See also: C<guestfs_command_lines>"
13623 msgstr ""
13624
13625 # type: =head2
13626 #: ../src/guestfs-actions.pod:5622
13627 msgid "guestfs_sleep"
13628 msgstr ""
13629
13630 # type: verbatim
13631 #: ../src/guestfs-actions.pod:5624
13632 #, no-wrap
13633 msgid ""
13634 " int\n"
13635 " guestfs_sleep (guestfs_h *g,\n"
13636 "                int secs);\n"
13637 "\n"
13638 msgstr ""
13639
13640 # type: textblock
13641 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3746
13642 msgid "Sleep for C<secs> seconds."
13643 msgstr ""
13644
13645 # type: textblock
13646 #: ../src/guestfs-actions.pod:5632
13647 msgid "(Added in 1.0.41)"
13648 msgstr ""
13649
13650 # type: =head2
13651 #: ../src/guestfs-actions.pod:5634 ../src/guestfs-structs.pod:109
13652 msgid "guestfs_stat"
13653 msgstr ""
13654
13655 # type: verbatim
13656 #: ../src/guestfs-actions.pod:5636
13657 #, no-wrap
13658 msgid ""
13659 " struct guestfs_stat *\n"
13660 " guestfs_stat (guestfs_h *g,\n"
13661 "               const char *path);\n"
13662 "\n"
13663 msgstr ""
13664
13665 # type: textblock
13666 #: ../src/guestfs-actions.pod:5642 ../fish/guestfish-actions.pod:3754
13667 msgid "This is the same as the C<stat(2)> system call."
13668 msgstr ""
13669
13670 # type: =head2
13671 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-structs.pod:135
13672 msgid "guestfs_statvfs"
13673 msgstr ""
13674
13675 # type: verbatim
13676 #: ../src/guestfs-actions.pod:5652
13677 #, no-wrap
13678 msgid ""
13679 " struct guestfs_statvfs *\n"
13680 " guestfs_statvfs (guestfs_h *g,\n"
13681 "                  const char *path);\n"
13682 "\n"
13683 msgstr ""
13684
13685 # type: textblock
13686 #: ../src/guestfs-actions.pod:5656 ../fish/guestfish-actions.pod:3760
13687 msgid ""
13688 "Returns file system statistics for any mounted file system.  C<path> should "
13689 "be a file or directory in the mounted file system (typically it is the mount "
13690 "point itself, but it doesn't need to be)."
13691 msgstr ""
13692
13693 # type: textblock
13694 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3764
13695 msgid "This is the same as the C<statvfs(2)> system call."
13696 msgstr ""
13697
13698 # type: textblock
13699 #: ../src/guestfs-actions.pod:5662
13700 msgid ""
13701 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13702 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13703 msgstr ""
13704
13705 # type: =head2
13706 #: ../src/guestfs-actions.pod:5668
13707 msgid "guestfs_strings"
13708 msgstr ""
13709
13710 # type: verbatim
13711 #: ../src/guestfs-actions.pod:5670
13712 #, no-wrap
13713 msgid ""
13714 " char **\n"
13715 " guestfs_strings (guestfs_h *g,\n"
13716 "                  const char *path);\n"
13717 "\n"
13718 msgstr ""
13719
13720 # type: textblock
13721 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3770
13722 msgid ""
13723 "This runs the L<strings(1)> command on a file and returns the list of "
13724 "printable strings found."
13725 msgstr ""
13726
13727 # type: =head2
13728 #: ../src/guestfs-actions.pod:5686
13729 msgid "guestfs_strings_e"
13730 msgstr ""
13731
13732 # type: verbatim
13733 #: ../src/guestfs-actions.pod:5688
13734 #, no-wrap
13735 msgid ""
13736 " char **\n"
13737 " guestfs_strings_e (guestfs_h *g,\n"
13738 "                    const char *encoding,\n"
13739 "                    const char *path);\n"
13740 "\n"
13741 msgstr ""
13742
13743 # type: textblock
13744 #: ../src/guestfs-actions.pod:5693
13745 msgid ""
13746 "This is like the C<guestfs_strings> command, but allows you to specify the "
13747 "encoding of strings that are looked for in the source file C<path>."
13748 msgstr ""
13749
13750 # type: textblock
13751 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3784
13752 msgid "Allowed encodings are:"
13753 msgstr ""
13754
13755 # type: =item
13756 #: ../src/guestfs-actions.pod:5701 ../fish/guestfish-actions.pod:3788
13757 msgid "s"
13758 msgstr ""
13759
13760 # type: textblock
13761 #: ../src/guestfs-actions.pod:5703
13762 msgid ""
13763 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13764 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13765 msgstr ""
13766
13767 # type: =item
13768 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3793
13769 msgid "S"
13770 msgstr ""
13771
13772 # type: textblock
13773 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3795
13774 msgid "Single 8-bit-byte characters."
13775 msgstr ""
13776
13777 # type: =item
13778 #: ../src/guestfs-actions.pod:5710 ../fish/guestfish-actions.pod:3797
13779 msgid "b"
13780 msgstr ""
13781
13782 # type: textblock
13783 #: ../src/guestfs-actions.pod:5712 ../fish/guestfish-actions.pod:3799
13784 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13785 msgstr ""
13786
13787 # type: =item
13788 #: ../src/guestfs-actions.pod:5715 ../fish/guestfish-actions.pod:3802
13789 msgid "l (lower case letter L)"
13790 msgstr ""
13791
13792 # type: textblock
13793 #: ../src/guestfs-actions.pod:5717 ../fish/guestfish-actions.pod:3804
13794 msgid ""
13795 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13796 "examining binaries in Windows guests."
13797 msgstr ""
13798
13799 # type: =item
13800 #: ../src/guestfs-actions.pod:5720 ../fish/guestfish-actions.pod:3807
13801 msgid "B"
13802 msgstr ""
13803
13804 # type: textblock
13805 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:3809
13806 msgid "32-bit big endian such as UCS-4BE."
13807 msgstr ""
13808
13809 # type: =item
13810 #: ../src/guestfs-actions.pod:5724 ../fish/guestfish-actions.pod:3811
13811 msgid "L"
13812 msgstr ""
13813
13814 # type: textblock
13815 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3813
13816 msgid "32-bit little endian such as UCS-4LE."
13817 msgstr ""
13818
13819 # type: textblock
13820 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:3817
13821 msgid "The returned strings are transcoded to UTF-8."
13822 msgstr ""
13823
13824 # type: =head2
13825 #: ../src/guestfs-actions.pod:5741
13826 msgid "guestfs_swapoff_device"
13827 msgstr ""
13828
13829 # type: verbatim
13830 #: ../src/guestfs-actions.pod:5743
13831 #, no-wrap
13832 msgid ""
13833 " int\n"
13834 " guestfs_swapoff_device (guestfs_h *g,\n"
13835 "                         const char *device);\n"
13836 "\n"
13837 msgstr ""
13838
13839 # type: textblock
13840 #: ../src/guestfs-actions.pod:5747
13841 msgid ""
13842 "This command disables the libguestfs appliance swap device or partition "
13843 "named C<device>.  See C<guestfs_swapon_device>."
13844 msgstr ""
13845
13846 # type: =head2
13847 #: ../src/guestfs-actions.pod:5755
13848 msgid "guestfs_swapoff_file"
13849 msgstr ""
13850
13851 # type: verbatim
13852 #: ../src/guestfs-actions.pod:5757
13853 #, no-wrap
13854 msgid ""
13855 " int\n"
13856 " guestfs_swapoff_file (guestfs_h *g,\n"
13857 "                       const char *file);\n"
13858 "\n"
13859 msgstr ""
13860
13861 # type: textblock
13862 #: ../src/guestfs-actions.pod:5761 ../fish/guestfish-actions.pod:3834
13863 msgid "This command disables the libguestfs appliance swap on file."
13864 msgstr ""
13865
13866 # type: =head2
13867 #: ../src/guestfs-actions.pod:5767
13868 msgid "guestfs_swapoff_label"
13869 msgstr ""
13870
13871 # type: verbatim
13872 #: ../src/guestfs-actions.pod:5769
13873 #, no-wrap
13874 msgid ""
13875 " int\n"
13876 " guestfs_swapoff_label (guestfs_h *g,\n"
13877 "                        const char *label);\n"
13878 "\n"
13879 msgstr ""
13880
13881 # type: textblock
13882 #: ../src/guestfs-actions.pod:5773 ../fish/guestfish-actions.pod:3840
13883 msgid ""
13884 "This command disables the libguestfs appliance swap on labeled swap "
13885 "partition."
13886 msgstr ""
13887
13888 # type: =head2
13889 #: ../src/guestfs-actions.pod:5780
13890 msgid "guestfs_swapoff_uuid"
13891 msgstr ""
13892
13893 # type: verbatim
13894 #: ../src/guestfs-actions.pod:5782
13895 #, no-wrap
13896 msgid ""
13897 " int\n"
13898 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13899 "                       const char *uuid);\n"
13900 "\n"
13901 msgstr ""
13902
13903 # type: textblock
13904 #: ../src/guestfs-actions.pod:5786 ../fish/guestfish-actions.pod:3847
13905 msgid ""
13906 "This command disables the libguestfs appliance swap partition with the given "
13907 "UUID."
13908 msgstr ""
13909
13910 # type: =head2
13911 #: ../src/guestfs-actions.pod:5793
13912 msgid "guestfs_swapon_device"
13913 msgstr ""
13914
13915 # type: verbatim
13916 #: ../src/guestfs-actions.pod:5795
13917 #, no-wrap
13918 msgid ""
13919 " int\n"
13920 " guestfs_swapon_device (guestfs_h *g,\n"
13921 "                        const char *device);\n"
13922 "\n"
13923 msgstr ""
13924
13925 # type: textblock
13926 #: ../src/guestfs-actions.pod:5799
13927 msgid ""
13928 "This command enables the libguestfs appliance to use the swap device or "
13929 "partition named C<device>.  The increased memory is made available for all "
13930 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13931 msgstr ""
13932
13933 # type: textblock
13934 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:3859
13935 msgid ""
13936 "Note that you should not swap to existing guest swap partitions unless you "
13937 "know what you are doing.  They may contain hibernation information, or other "
13938 "information that the guest doesn't want you to trash.  You also risk leaking "
13939 "information about the host to the guest this way.  Instead, attach a new "
13940 "host device to the guest and swap on that."
13941 msgstr ""
13942
13943 # type: =head2
13944 #: ../src/guestfs-actions.pod:5815
13945 msgid "guestfs_swapon_file"
13946 msgstr ""
13947
13948 # type: verbatim
13949 #: ../src/guestfs-actions.pod:5817
13950 #, no-wrap
13951 msgid ""
13952 " int\n"
13953 " guestfs_swapon_file (guestfs_h *g,\n"
13954 "                      const char *file);\n"
13955 "\n"
13956 msgstr ""
13957
13958 # type: textblock
13959 #: ../src/guestfs-actions.pod:5821
13960 msgid ""
13961 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13962 "notes."
13963 msgstr ""
13964
13965 # type: =head2
13966 #: ../src/guestfs-actions.pod:5828
13967 msgid "guestfs_swapon_label"
13968 msgstr ""
13969
13970 # type: verbatim
13971 #: ../src/guestfs-actions.pod:5830
13972 #, no-wrap
13973 msgid ""
13974 " int\n"
13975 " guestfs_swapon_label (guestfs_h *g,\n"
13976 "                       const char *label);\n"
13977 "\n"
13978 msgstr ""
13979
13980 # type: textblock
13981 #: ../src/guestfs-actions.pod:5834
13982 msgid ""
13983 "This command enables swap to a labeled swap partition.  See "
13984 "C<guestfs_swapon_device> for other notes."
13985 msgstr ""
13986
13987 # type: =head2
13988 #: ../src/guestfs-actions.pod:5841
13989 msgid "guestfs_swapon_uuid"
13990 msgstr ""
13991
13992 # type: verbatim
13993 #: ../src/guestfs-actions.pod:5843
13994 #, no-wrap
13995 msgid ""
13996 " int\n"
13997 " guestfs_swapon_uuid (guestfs_h *g,\n"
13998 "                      const char *uuid);\n"
13999 "\n"
14000 msgstr ""
14001
14002 # type: textblock
14003 #: ../src/guestfs-actions.pod:5847
14004 msgid ""
14005 "This command enables swap to a swap partition with the given UUID.  See "
14006 "C<guestfs_swapon_device> for other notes."
14007 msgstr ""
14008
14009 # type: =head2
14010 #: ../src/guestfs-actions.pod:5854
14011 msgid "guestfs_sync"
14012 msgstr ""
14013
14014 # type: verbatim
14015 #: ../src/guestfs-actions.pod:5856
14016 #, no-wrap
14017 msgid ""
14018 " int\n"
14019 " guestfs_sync (guestfs_h *g);\n"
14020 "\n"
14021 msgstr ""
14022
14023 # type: textblock
14024 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3891
14025 msgid ""
14026 "This syncs the disk, so that any writes are flushed through to the "
14027 "underlying disk image."
14028 msgstr ""
14029
14030 # type: textblock
14031 #: ../src/guestfs-actions.pod:5862 ../fish/guestfish-actions.pod:3894
14032 msgid ""
14033 "You should always call this if you have modified a disk image, before "
14034 "closing the handle."
14035 msgstr ""
14036
14037 # type: =head2
14038 #: ../src/guestfs-actions.pod:5869
14039 msgid "guestfs_tail"
14040 msgstr ""
14041
14042 # type: verbatim
14043 #: ../src/guestfs-actions.pod:5871
14044 #, no-wrap
14045 msgid ""
14046 " char **\n"
14047 " guestfs_tail (guestfs_h *g,\n"
14048 "               const char *path);\n"
14049 "\n"
14050 msgstr ""
14051
14052 # type: textblock
14053 #: ../src/guestfs-actions.pod:5875 ../fish/guestfish-actions.pod:3901
14054 msgid ""
14055 "This command returns up to the last 10 lines of a file as a list of strings."
14056 msgstr ""
14057
14058 # type: =head2
14059 #: ../src/guestfs-actions.pod:5887
14060 msgid "guestfs_tail_n"
14061 msgstr ""
14062
14063 # type: verbatim
14064 #: ../src/guestfs-actions.pod:5889
14065 #, no-wrap
14066 msgid ""
14067 " char **\n"
14068 " guestfs_tail_n (guestfs_h *g,\n"
14069 "                 int nrlines,\n"
14070 "                 const char *path);\n"
14071 "\n"
14072 msgstr ""
14073
14074 # type: textblock
14075 #: ../src/guestfs-actions.pod:5894 ../fish/guestfish-actions.pod:3911
14076 msgid ""
14077 "If the parameter C<nrlines> is a positive number, this returns the last "
14078 "C<nrlines> lines of the file C<path>."
14079 msgstr ""
14080
14081 # type: textblock
14082 #: ../src/guestfs-actions.pod:5897 ../fish/guestfish-actions.pod:3914
14083 msgid ""
14084 "If the parameter C<nrlines> is a negative number, this returns lines from "
14085 "the file C<path>, starting with the C<-nrlines>th line."
14086 msgstr ""
14087
14088 # type: =head2
14089 #: ../src/guestfs-actions.pod:5911
14090 msgid "guestfs_tar_in"
14091 msgstr ""
14092
14093 # type: verbatim
14094 #: ../src/guestfs-actions.pod:5913
14095 #, no-wrap
14096 msgid ""
14097 " int\n"
14098 " guestfs_tar_in (guestfs_h *g,\n"
14099 "                 const char *tarfile,\n"
14100 "                 const char *directory);\n"
14101 "\n"
14102 msgstr ""
14103
14104 # type: textblock
14105 #: ../src/guestfs-actions.pod:5918 ../fish/guestfish-actions.pod:3926
14106 msgid ""
14107 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14108 "tar file) into C<directory>."
14109 msgstr ""
14110
14111 # type: textblock
14112 #: ../src/guestfs-actions.pod:5921
14113 msgid ""
14114 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14115 msgstr ""
14116
14117 # type: textblock
14118 #: ../src/guestfs-actions.pod:5926 ../src/guestfs-actions.pod:5943
14119 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:5975
14120 msgid "(Added in 1.0.3)"
14121 msgstr ""
14122
14123 # type: =head2
14124 #: ../src/guestfs-actions.pod:5928
14125 msgid "guestfs_tar_out"
14126 msgstr ""
14127
14128 # type: verbatim
14129 #: ../src/guestfs-actions.pod:5930
14130 #, no-wrap
14131 msgid ""
14132 " int\n"
14133 " guestfs_tar_out (guestfs_h *g,\n"
14134 "                  const char *directory,\n"
14135 "                  const char *tarfile);\n"
14136 "\n"
14137 msgstr ""
14138
14139 # type: textblock
14140 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3938
14141 msgid ""
14142 "This command packs the contents of C<directory> and downloads it to local "
14143 "file C<tarfile>."
14144 msgstr ""
14145
14146 # type: textblock
14147 #: ../src/guestfs-actions.pod:5938
14148 msgid ""
14149 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14150 "C<guestfs_txz_out>."
14151 msgstr ""
14152
14153 # type: =head2
14154 #: ../src/guestfs-actions.pod:5945
14155 msgid "guestfs_tgz_in"
14156 msgstr ""
14157
14158 # type: verbatim
14159 #: ../src/guestfs-actions.pod:5947
14160 #, no-wrap
14161 msgid ""
14162 " int\n"
14163 " guestfs_tgz_in (guestfs_h *g,\n"
14164 "                 const char *tarball,\n"
14165 "                 const char *directory);\n"
14166 "\n"
14167 msgstr ""
14168
14169 # type: textblock
14170 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:3950
14171 msgid ""
14172 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14173 "tar file) into C<directory>."
14174 msgstr ""
14175
14176 # type: textblock
14177 #: ../src/guestfs-actions.pod:5955
14178 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14179 msgstr ""
14180
14181 # type: =head2
14182 #: ../src/guestfs-actions.pod:5961
14183 msgid "guestfs_tgz_out"
14184 msgstr ""
14185
14186 # type: verbatim
14187 #: ../src/guestfs-actions.pod:5963
14188 #, no-wrap
14189 msgid ""
14190 " int\n"
14191 " guestfs_tgz_out (guestfs_h *g,\n"
14192 "                  const char *directory,\n"
14193 "                  const char *tarball);\n"
14194 "\n"
14195 msgstr ""
14196
14197 # type: textblock
14198 #: ../src/guestfs-actions.pod:5968 ../fish/guestfish-actions.pod:3961
14199 msgid ""
14200 "This command packs the contents of C<directory> and downloads it to local "
14201 "file C<tarball>."
14202 msgstr ""
14203
14204 # type: textblock
14205 #: ../src/guestfs-actions.pod:5971
14206 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14207 msgstr ""
14208
14209 # type: =head2
14210 #: ../src/guestfs-actions.pod:5977
14211 msgid "guestfs_touch"
14212 msgstr ""
14213
14214 # type: verbatim
14215 #: ../src/guestfs-actions.pod:5979
14216 #, no-wrap
14217 msgid ""
14218 " int\n"
14219 " guestfs_touch (guestfs_h *g,\n"
14220 "                const char *path);\n"
14221 "\n"
14222 msgstr ""
14223
14224 # type: textblock
14225 #: ../src/guestfs-actions.pod:5983 ../fish/guestfish-actions.pod:3972
14226 msgid ""
14227 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14228 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14229 "length file."
14230 msgstr ""
14231
14232 # type: textblock
14233 #: ../src/guestfs-actions.pod:5987 ../fish/guestfish-actions.pod:3976
14234 msgid ""
14235 "This command only works on regular files, and will fail on other file types "
14236 "such as directories, symbolic links, block special etc."
14237 msgstr ""
14238
14239 # type: =head2
14240 #: ../src/guestfs-actions.pod:5994
14241 msgid "guestfs_truncate"
14242 msgstr ""
14243
14244 # type: verbatim
14245 #: ../src/guestfs-actions.pod:5996
14246 #, no-wrap
14247 msgid ""
14248 " int\n"
14249 " guestfs_truncate (guestfs_h *g,\n"
14250 "                   const char *path);\n"
14251 "\n"
14252 msgstr ""
14253
14254 # type: textblock
14255 #: ../src/guestfs-actions.pod:6000 ../fish/guestfish-actions.pod:3983
14256 msgid ""
14257 "This command truncates C<path> to a zero-length file.  The file must exist "
14258 "already."
14259 msgstr ""
14260
14261 # type: =head2
14262 #: ../src/guestfs-actions.pod:6007
14263 msgid "guestfs_truncate_size"
14264 msgstr ""
14265
14266 # type: verbatim
14267 #: ../src/guestfs-actions.pod:6009
14268 #, no-wrap
14269 msgid ""
14270 " int\n"
14271 " guestfs_truncate_size (guestfs_h *g,\n"
14272 "                        const char *path,\n"
14273 "                        int64_t size);\n"
14274 "\n"
14275 msgstr ""
14276
14277 # type: textblock
14278 #: ../src/guestfs-actions.pod:6014 ../fish/guestfish-actions.pod:3990
14279 msgid ""
14280 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14281 "already."
14282 msgstr ""
14283
14284 # type: textblock
14285 #: ../src/guestfs-actions.pod:6017
14286 msgid ""
14287 "If the current file size is less than C<size> then the file is extended to "
14288 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14289 "blocks are not allocated for the file until you write to it).  To create a "
14290 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14291 msgstr ""
14292
14293 # type: =head2
14294 #: ../src/guestfs-actions.pod:6027
14295 msgid "guestfs_tune2fs_l"
14296 msgstr ""
14297
14298 # type: verbatim
14299 #: ../src/guestfs-actions.pod:6029
14300 #, no-wrap
14301 msgid ""
14302 " char **\n"
14303 " guestfs_tune2fs_l (guestfs_h *g,\n"
14304 "                    const char *device);\n"
14305 "\n"
14306 msgstr ""
14307
14308 # type: textblock
14309 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4003
14310 msgid ""
14311 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14312 "C<device>."
14313 msgstr ""
14314
14315 # type: textblock
14316 #: ../src/guestfs-actions.pod:6036 ../fish/guestfish-actions.pod:4006
14317 msgid ""
14318 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14319 "for more details.  The list of fields returned isn't clearly defined, and "
14320 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14321 "and the filesystem itself."
14322 msgstr ""
14323
14324 # type: =head2
14325 #: ../src/guestfs-actions.pod:6049
14326 msgid "guestfs_txz_in"
14327 msgstr ""
14328
14329 # type: verbatim
14330 #: ../src/guestfs-actions.pod:6051
14331 #, no-wrap
14332 msgid ""
14333 " int\n"
14334 " guestfs_txz_in (guestfs_h *g,\n"
14335 "                 const char *tarball,\n"
14336 "                 const char *directory);\n"
14337 "\n"
14338 msgstr ""
14339
14340 # type: textblock
14341 #: ../src/guestfs-actions.pod:6056 ../fish/guestfish-actions.pod:4015
14342 msgid ""
14343 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14344 "tar file) into C<directory>."
14345 msgstr ""
14346
14347 # type: =head2
14348 #: ../src/guestfs-actions.pod:6063
14349 msgid "guestfs_txz_out"
14350 msgstr ""
14351
14352 # type: verbatim
14353 #: ../src/guestfs-actions.pod:6065
14354 #, no-wrap
14355 msgid ""
14356 " int\n"
14357 " guestfs_txz_out (guestfs_h *g,\n"
14358 "                  const char *directory,\n"
14359 "                  const char *tarball);\n"
14360 "\n"
14361 msgstr ""
14362
14363 # type: textblock
14364 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4024
14365 msgid ""
14366 "This command packs the contents of C<directory> and downloads it to local "
14367 "file C<tarball> (as an xz compressed tar archive)."
14368 msgstr ""
14369
14370 # type: =head2
14371 #: ../src/guestfs-actions.pod:6077
14372 msgid "guestfs_umask"
14373 msgstr ""
14374
14375 # type: verbatim
14376 #: ../src/guestfs-actions.pod:6079
14377 #, no-wrap
14378 msgid ""
14379 " int\n"
14380 " guestfs_umask (guestfs_h *g,\n"
14381 "                int mask);\n"
14382 "\n"
14383 msgstr ""
14384
14385 # type: textblock
14386 #: ../src/guestfs-actions.pod:6083 ../fish/guestfish-actions.pod:4033
14387 msgid ""
14388 "This function sets the mask used for creating new files and device nodes to "
14389 "C<mask & 0777>."
14390 msgstr ""
14391
14392 # type: textblock
14393 #: ../src/guestfs-actions.pod:6086 ../fish/guestfish-actions.pod:4036
14394 msgid ""
14395 "Typical umask values would be C<022> which creates new files with "
14396 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14397 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14398 msgstr ""
14399
14400 # type: textblock
14401 #: ../src/guestfs-actions.pod:6091 ../fish/guestfish-actions.pod:4041
14402 msgid ""
14403 "The default umask is C<022>.  This is important because it means that "
14404 "directories and device nodes will be created with C<0644> or C<0755> mode "
14405 "even if you specify C<0777>."
14406 msgstr ""
14407
14408 # type: textblock
14409 #: ../src/guestfs-actions.pod:6095
14410 msgid ""
14411 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14412 "C<guestfs_mkdir>."
14413 msgstr ""
14414
14415 # type: textblock
14416 #: ../src/guestfs-actions.pod:6098 ../fish/guestfish-actions.pod:4048
14417 msgid "This call returns the previous umask."
14418 msgstr ""
14419
14420 # type: =head2
14421 #: ../src/guestfs-actions.pod:6104
14422 msgid "guestfs_umount"
14423 msgstr ""
14424
14425 # type: verbatim
14426 #: ../src/guestfs-actions.pod:6106
14427 #, no-wrap
14428 msgid ""
14429 " int\n"
14430 " guestfs_umount (guestfs_h *g,\n"
14431 "                 const char *pathordevice);\n"
14432 "\n"
14433 msgstr ""
14434
14435 # type: textblock
14436 #: ../src/guestfs-actions.pod:6110 ../fish/guestfish-actions.pod:4056
14437 msgid ""
14438 "This unmounts the given filesystem.  The filesystem may be specified either "
14439 "by its mountpoint (path) or the device which contains the filesystem."
14440 msgstr ""
14441
14442 # type: =head2
14443 #: ../src/guestfs-actions.pod:6118
14444 msgid "guestfs_umount_all"
14445 msgstr ""
14446
14447 # type: verbatim
14448 #: ../src/guestfs-actions.pod:6120
14449 #, no-wrap
14450 msgid ""
14451 " int\n"
14452 " guestfs_umount_all (guestfs_h *g);\n"
14453 "\n"
14454 msgstr ""
14455
14456 # type: textblock
14457 #: ../src/guestfs-actions.pod:6123 ../fish/guestfish-actions.pod:4066
14458 msgid "This unmounts all mounted filesystems."
14459 msgstr ""
14460
14461 # type: textblock
14462 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4068
14463 msgid "Some internal mounts are not unmounted by this call."
14464 msgstr ""
14465
14466 # type: =head2
14467 #: ../src/guestfs-actions.pod:6131
14468 msgid "guestfs_upload"
14469 msgstr ""
14470
14471 # type: verbatim
14472 #: ../src/guestfs-actions.pod:6133
14473 #, no-wrap
14474 msgid ""
14475 " int\n"
14476 " guestfs_upload (guestfs_h *g,\n"
14477 "                 const char *filename,\n"
14478 "                 const char *remotefilename);\n"
14479 "\n"
14480 msgstr ""
14481
14482 # type: textblock
14483 #: ../src/guestfs-actions.pod:6138 ../src/guestfs-actions.pod:6157
14484 #: ../fish/guestfish-actions.pod:4074 ../fish/guestfish-actions.pod:4087
14485 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14486 msgstr ""
14487
14488 # type: textblock
14489 #: ../src/guestfs-actions.pod:6143
14490 msgid "See also C<guestfs_download>."
14491 msgstr ""
14492
14493 # type: =head2
14494 #: ../src/guestfs-actions.pod:6149
14495 msgid "guestfs_upload_offset"
14496 msgstr ""
14497
14498 # type: verbatim
14499 #: ../src/guestfs-actions.pod:6151
14500 #, no-wrap
14501 msgid ""
14502 " int\n"
14503 " guestfs_upload_offset (guestfs_h *g,\n"
14504 "                        const char *filename,\n"
14505 "                        const char *remotefilename,\n"
14506 "                        int64_t offset);\n"
14507 "\n"
14508 msgstr ""
14509
14510 # type: textblock
14511 #: ../src/guestfs-actions.pod:6160 ../fish/guestfish-actions.pod:4090
14512 msgid ""
14513 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14514 "The intention is to overwrite parts of existing files or devices, although "
14515 "if a non-existant file is specified then it is created with a \"hole\" "
14516 "before C<offset>.  The size of the data written is implicit in the size of "
14517 "the source C<filename>."
14518 msgstr ""
14519
14520 # type: textblock
14521 #: ../src/guestfs-actions.pod:6167
14522 msgid ""
14523 "Note that there is no limit on the amount of data that can be uploaded with "
14524 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14525 "full amount unless an error occurs."
14526 msgstr ""
14527
14528 # type: textblock
14529 #: ../src/guestfs-actions.pod:6172
14530 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14531 msgstr ""
14532
14533 # type: =head2
14534 #: ../src/guestfs-actions.pod:6178
14535 msgid "guestfs_utimens"
14536 msgstr ""
14537
14538 # type: verbatim
14539 #: ../src/guestfs-actions.pod:6180
14540 #, no-wrap
14541 msgid ""
14542 " int\n"
14543 " guestfs_utimens (guestfs_h *g,\n"
14544 "                  const char *path,\n"
14545 "                  int64_t atsecs,\n"
14546 "                  int64_t atnsecs,\n"
14547 "                  int64_t mtsecs,\n"
14548 "                  int64_t mtnsecs);\n"
14549 "\n"
14550 msgstr ""
14551
14552 # type: textblock
14553 #: ../src/guestfs-actions.pod:6188 ../fish/guestfish-actions.pod:4110
14554 msgid "This command sets the timestamps of a file with nanosecond precision."
14555 msgstr ""
14556
14557 # type: textblock
14558 #: ../src/guestfs-actions.pod:6191 ../fish/guestfish-actions.pod:4113
14559 msgid ""
14560 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14561 "from the epoch."
14562 msgstr ""
14563
14564 # type: textblock
14565 #: ../src/guestfs-actions.pod:6194 ../fish/guestfish-actions.pod:4116
14566 msgid ""
14567 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14568 "nanoseconds from the epoch."
14569 msgstr ""
14570
14571 # type: textblock
14572 #: ../src/guestfs-actions.pod:6197 ../fish/guestfish-actions.pod:4119
14573 msgid ""
14574 "If the C<*nsecs> field contains the special value C<-1> then the "
14575 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14576 "ignored in this case)."
14577 msgstr ""
14578
14579 # type: textblock
14580 #: ../src/guestfs-actions.pod:6201 ../fish/guestfish-actions.pod:4123
14581 msgid ""
14582 "If the C<*nsecs> field contains the special value C<-2> then the "
14583 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14584 "in this case)."
14585 msgstr ""
14586
14587 # type: =head2
14588 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-structs.pod:175
14589 msgid "guestfs_version"
14590 msgstr ""
14591
14592 # type: verbatim
14593 #: ../src/guestfs-actions.pod:6211
14594 #, no-wrap
14595 msgid ""
14596 " struct guestfs_version *\n"
14597 " guestfs_version (guestfs_h *g);\n"
14598 "\n"
14599 msgstr ""
14600
14601 # type: textblock
14602 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4131
14603 msgid ""
14604 "Return the libguestfs version number that the program is linked against."
14605 msgstr ""
14606
14607 # type: textblock
14608 #: ../src/guestfs-actions.pod:6217 ../fish/guestfish-actions.pod:4134
14609 msgid ""
14610 "Note that because of dynamic linking this is not necessarily the version of "
14611 "libguestfs that you compiled against.  You can compile the program, and then "
14612 "at runtime dynamically link against a completely different C<libguestfs.so> "
14613 "library."
14614 msgstr ""
14615
14616 # type: textblock
14617 #: ../src/guestfs-actions.pod:6222 ../fish/guestfish-actions.pod:4139
14618 msgid ""
14619 "This call was added in version C<1.0.58>.  In previous versions of "
14620 "libguestfs there was no way to get the version number.  From C code you can "
14621 "use dynamic linker functions to find out if this symbol exists (if it "
14622 "doesn't, then it's an earlier version)."
14623 msgstr ""
14624
14625 # type: textblock
14626 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4145
14627 msgid ""
14628 "The call returns a structure with four elements.  The first three (C<major>, "
14629 "C<minor> and C<release>) are numbers and correspond to the usual version "
14630 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14631 "but may be used for distro-specific information."
14632 msgstr ""
14633
14634 # type: textblock
14635 #: ../src/guestfs-actions.pod:6234 ../fish/guestfish-actions.pod:4151
14636 msgid ""
14637 "To construct the original version string: C<$major.$minor.$release$extra>"
14638 msgstr ""
14639
14640 # type: textblock
14641 #: ../src/guestfs-actions.pod:6237 ../fish/guestfish-actions.pod:4154
14642 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14643 msgstr ""
14644
14645 # type: textblock
14646 #: ../src/guestfs-actions.pod:6239
14647 msgid ""
14648 "I<Note:> Don't use this call to test for availability of features.  In "
14649 "enterprise distributions we backport features from later versions into "
14650 "earlier versions, making this an unreliable way to test for features.  Use "
14651 "C<guestfs_available> instead."
14652 msgstr ""
14653
14654 # type: textblock
14655 #: ../src/guestfs-actions.pod:6245
14656 msgid ""
14657 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14658 "error.  I<The caller must call C<guestfs_free_version> after use>."
14659 msgstr ""
14660
14661 # type: textblock
14662 #: ../src/guestfs-actions.pod:6249
14663 msgid "(Added in 1.0.58)"
14664 msgstr ""
14665
14666 # type: =head2
14667 #: ../src/guestfs-actions.pod:6251
14668 msgid "guestfs_vfs_label"
14669 msgstr ""
14670
14671 # type: verbatim
14672 #: ../src/guestfs-actions.pod:6253
14673 #, no-wrap
14674 msgid ""
14675 " char *\n"
14676 " guestfs_vfs_label (guestfs_h *g,\n"
14677 "                    const char *device);\n"
14678 "\n"
14679 msgstr ""
14680
14681 # type: textblock
14682 #: ../src/guestfs-actions.pod:6257 ../fish/guestfish-actions.pod:4166
14683 msgid "This returns the filesystem label of the filesystem on C<device>."
14684 msgstr ""
14685
14686 # type: textblock
14687 #: ../src/guestfs-actions.pod:6260 ../fish/guestfish-actions.pod:4169
14688 msgid "If the filesystem is unlabeled, this returns the empty string."
14689 msgstr ""
14690
14691 # type: textblock
14692 #: ../src/guestfs-actions.pod:6262
14693 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14694 msgstr ""
14695
14696 # type: textblock
14697 #: ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6304
14698 msgid "(Added in 1.3.18)"
14699 msgstr ""
14700
14701 # type: =head2
14702 #: ../src/guestfs-actions.pod:6269
14703 msgid "guestfs_vfs_type"
14704 msgstr ""
14705
14706 # type: verbatim
14707 #: ../src/guestfs-actions.pod:6271
14708 #, no-wrap
14709 msgid ""
14710 " char *\n"
14711 " guestfs_vfs_type (guestfs_h *g,\n"
14712 "                   const char *device);\n"
14713 "\n"
14714 msgstr ""
14715
14716 # type: textblock
14717 #: ../src/guestfs-actions.pod:6275 ../fish/guestfish-actions.pod:4177
14718 msgid ""
14719 "This command gets the filesystem type corresponding to the filesystem on "
14720 "C<device>."
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-actions.pod:6278 ../fish/guestfish-actions.pod:4180
14725 msgid ""
14726 "For most filesystems, the result is the name of the Linux VFS module which "
14727 "would be used to mount this filesystem if you mounted it without specifying "
14728 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14729 msgstr ""
14730
14731 # type: =head2
14732 #: ../src/guestfs-actions.pod:6288
14733 msgid "guestfs_vfs_uuid"
14734 msgstr ""
14735
14736 # type: verbatim
14737 #: ../src/guestfs-actions.pod:6290
14738 #, no-wrap
14739 msgid ""
14740 " char *\n"
14741 " guestfs_vfs_uuid (guestfs_h *g,\n"
14742 "                   const char *device);\n"
14743 "\n"
14744 msgstr ""
14745
14746 # type: textblock
14747 #: ../src/guestfs-actions.pod:6294 ../fish/guestfish-actions.pod:4189
14748 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14749 msgstr ""
14750
14751 # type: textblock
14752 #: ../src/guestfs-actions.pod:6297 ../fish/guestfish-actions.pod:4192
14753 msgid "If the filesystem does not have a UUID, this returns the empty string."
14754 msgstr ""
14755
14756 # type: textblock
14757 #: ../src/guestfs-actions.pod:6299
14758 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14759 msgstr ""
14760
14761 # type: =head2
14762 #: ../src/guestfs-actions.pod:6306
14763 msgid "guestfs_vg_activate"
14764 msgstr ""
14765
14766 # type: verbatim
14767 #: ../src/guestfs-actions.pod:6308
14768 #, no-wrap
14769 msgid ""
14770 " int\n"
14771 " guestfs_vg_activate (guestfs_h *g,\n"
14772 "                      int activate,\n"
14773 "                      char *const *volgroups);\n"
14774 "\n"
14775 msgstr ""
14776
14777 # type: textblock
14778 #: ../src/guestfs-actions.pod:6313 ../fish/guestfish-actions.pod:4200
14779 msgid ""
14780 "This command activates or (if C<activate> is false) deactivates all logical "
14781 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14782 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14783 "deactivated, then those devices disappear."
14784 msgstr ""
14785
14786 # type: textblock
14787 #: ../src/guestfs-actions.pod:6319 ../fish/guestfish-actions.pod:4206
14788 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14789 msgstr ""
14790
14791 # type: textblock
14792 #: ../src/guestfs-actions.pod:6321 ../fish/guestfish-actions.pod:4208
14793 msgid ""
14794 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14795 "activated or deactivated."
14796 msgstr ""
14797
14798 # type: =head2
14799 #: ../src/guestfs-actions.pod:6328
14800 msgid "guestfs_vg_activate_all"
14801 msgstr ""
14802
14803 # type: verbatim
14804 #: ../src/guestfs-actions.pod:6330
14805 #, no-wrap
14806 msgid ""
14807 " int\n"
14808 " guestfs_vg_activate_all (guestfs_h *g,\n"
14809 "                          int activate);\n"
14810 "\n"
14811 msgstr ""
14812
14813 # type: textblock
14814 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4215
14815 msgid ""
14816 "This command activates or (if C<activate> is false) deactivates all logical "
14817 "volumes in all volume groups.  If activated, then they are made known to the "
14818 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14819 "those devices disappear."
14820 msgstr ""
14821
14822 # type: textblock
14823 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4221
14824 msgid "This command is the same as running C<vgchange -a y|n>"
14825 msgstr ""
14826
14827 # type: =head2
14828 #: ../src/guestfs-actions.pod:6346
14829 msgid "guestfs_vgcreate"
14830 msgstr ""
14831
14832 # type: verbatim
14833 #: ../src/guestfs-actions.pod:6348
14834 #, no-wrap
14835 msgid ""
14836 " int\n"
14837 " guestfs_vgcreate (guestfs_h *g,\n"
14838 "                   const char *volgroup,\n"
14839 "                   char *const *physvols);\n"
14840 "\n"
14841 msgstr ""
14842
14843 # type: textblock
14844 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4227
14845 msgid ""
14846 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14847 "of physical volumes C<physvols>."
14848 msgstr ""
14849
14850 # type: =head2
14851 #: ../src/guestfs-actions.pod:6360
14852 msgid "guestfs_vglvuuids"
14853 msgstr ""
14854
14855 # type: verbatim
14856 #: ../src/guestfs-actions.pod:6362
14857 #, no-wrap
14858 msgid ""
14859 " char **\n"
14860 " guestfs_vglvuuids (guestfs_h *g,\n"
14861 "                    const char *vgname);\n"
14862 "\n"
14863 msgstr ""
14864
14865 # type: textblock
14866 #: ../src/guestfs-actions.pod:6366 ../fish/guestfish-actions.pod:4234
14867 msgid ""
14868 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14869 "volumes created in this volume group."
14870 msgstr ""
14871
14872 # type: textblock
14873 #: ../src/guestfs-actions.pod:6369
14874 msgid ""
14875 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14876 "associate logical volumes and volume groups."
14877 msgstr ""
14878
14879 # type: textblock
14880 #: ../src/guestfs-actions.pod:6372
14881 msgid "See also C<guestfs_vgpvuuids>."
14882 msgstr ""
14883
14884 # type: =head2
14885 #: ../src/guestfs-actions.pod:6380
14886 msgid "guestfs_vgpvuuids"
14887 msgstr ""
14888
14889 # type: verbatim
14890 #: ../src/guestfs-actions.pod:6382
14891 #, no-wrap
14892 msgid ""
14893 " char **\n"
14894 " guestfs_vgpvuuids (guestfs_h *g,\n"
14895 "                    const char *vgname);\n"
14896 "\n"
14897 msgstr ""
14898
14899 # type: textblock
14900 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4246
14901 msgid ""
14902 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14903 "volumes that this volume group resides on."
14904 msgstr ""
14905
14906 # type: textblock
14907 #: ../src/guestfs-actions.pod:6389
14908 msgid ""
14909 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14910 "associate physical volumes and volume groups."
14911 msgstr ""
14912
14913 # type: textblock
14914 #: ../src/guestfs-actions.pod:6392
14915 msgid "See also C<guestfs_vglvuuids>."
14916 msgstr ""
14917
14918 # type: =head2
14919 #: ../src/guestfs-actions.pod:6400
14920 msgid "guestfs_vgremove"
14921 msgstr ""
14922
14923 # type: verbatim
14924 #: ../src/guestfs-actions.pod:6402
14925 #, no-wrap
14926 msgid ""
14927 " int\n"
14928 " guestfs_vgremove (guestfs_h *g,\n"
14929 "                   const char *vgname);\n"
14930 "\n"
14931 msgstr ""
14932
14933 # type: textblock
14934 #: ../src/guestfs-actions.pod:6406 ../fish/guestfish-actions.pod:4258
14935 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14936 msgstr ""
14937
14938 # type: textblock
14939 #: ../src/guestfs-actions.pod:6408 ../fish/guestfish-actions.pod:4260
14940 msgid ""
14941 "This also forcibly removes all logical volumes in the volume group (if any)."
14942 msgstr ""
14943
14944 # type: =head2
14945 #: ../src/guestfs-actions.pod:6415
14946 msgid "guestfs_vgrename"
14947 msgstr ""
14948
14949 # type: verbatim
14950 #: ../src/guestfs-actions.pod:6417
14951 #, no-wrap
14952 msgid ""
14953 " int\n"
14954 " guestfs_vgrename (guestfs_h *g,\n"
14955 "                   const char *volgroup,\n"
14956 "                   const char *newvolgroup);\n"
14957 "\n"
14958 msgstr ""
14959
14960 # type: textblock
14961 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4267
14962 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14963 msgstr ""
14964
14965 # type: =head2
14966 #: ../src/guestfs-actions.pod:6428
14967 msgid "guestfs_vgs"
14968 msgstr ""
14969
14970 # type: verbatim
14971 #: ../src/guestfs-actions.pod:6430
14972 #, no-wrap
14973 msgid ""
14974 " char **\n"
14975 " guestfs_vgs (guestfs_h *g);\n"
14976 "\n"
14977 msgstr ""
14978
14979 # type: textblock
14980 #: ../src/guestfs-actions.pod:6433 ../fish/guestfish-actions.pod:4273
14981 msgid ""
14982 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14983 "> command."
14984 msgstr ""
14985
14986 # type: textblock
14987 #: ../src/guestfs-actions.pod:6436 ../fish/guestfish-actions.pod:4276
14988 msgid ""
14989 "This returns a list of just the volume group names that were detected (eg. "
14990 "C<VolGroup00>)."
14991 msgstr ""
14992
14993 # type: textblock
14994 #: ../src/guestfs-actions.pod:6439
14995 msgid "See also C<guestfs_vgs_full>."
14996 msgstr ""
14997
14998 # type: =head2
14999 #: ../src/guestfs-actions.pod:6447
15000 msgid "guestfs_vgs_full"
15001 msgstr ""
15002
15003 # type: verbatim
15004 #: ../src/guestfs-actions.pod:6449
15005 #, no-wrap
15006 msgid ""
15007 " struct guestfs_lvm_vg_list *\n"
15008 " guestfs_vgs_full (guestfs_h *g);\n"
15009 "\n"
15010 msgstr ""
15011
15012 # type: textblock
15013 #: ../src/guestfs-actions.pod:6452 ../fish/guestfish-actions.pod:4285
15014 msgid ""
15015 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15016 "> command.  The \"full\" version includes all fields."
15017 msgstr ""
15018
15019 # type: textblock
15020 #: ../src/guestfs-actions.pod:6455
15021 msgid ""
15022 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
15023 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
15024 "C<guestfs_free_lvm_vg_list> after use>."
15025 msgstr ""
15026
15027 # type: =head2
15028 #: ../src/guestfs-actions.pod:6462
15029 msgid "guestfs_vgscan"
15030 msgstr ""
15031
15032 # type: verbatim
15033 #: ../src/guestfs-actions.pod:6464
15034 #, no-wrap
15035 msgid ""
15036 " int\n"
15037 " guestfs_vgscan (guestfs_h *g);\n"
15038 "\n"
15039 msgstr ""
15040
15041 # type: textblock
15042 #: ../src/guestfs-actions.pod:6467 ../fish/guestfish-actions.pod:4292
15043 msgid ""
15044 "This rescans all block devices and rebuilds the list of LVM physical "
15045 "volumes, volume groups and logical volumes."
15046 msgstr ""
15047
15048 # type: =head2
15049 #: ../src/guestfs-actions.pod:6474
15050 msgid "guestfs_vguuid"
15051 msgstr ""
15052
15053 # type: verbatim
15054 #: ../src/guestfs-actions.pod:6476
15055 #, no-wrap
15056 msgid ""
15057 " char *\n"
15058 " guestfs_vguuid (guestfs_h *g,\n"
15059 "                 const char *vgname);\n"
15060 "\n"
15061 msgstr ""
15062
15063 # type: textblock
15064 #: ../src/guestfs-actions.pod:6480 ../fish/guestfish-actions.pod:4299
15065 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15066 msgstr ""
15067
15068 # type: =head2
15069 #: ../src/guestfs-actions.pod:6487
15070 msgid "guestfs_wait_ready"
15071 msgstr ""
15072
15073 # type: verbatim
15074 #: ../src/guestfs-actions.pod:6489
15075 #, no-wrap
15076 msgid ""
15077 " int\n"
15078 " guestfs_wait_ready (guestfs_h *g);\n"
15079 "\n"
15080 msgstr ""
15081
15082 # type: textblock
15083 #: ../src/guestfs-actions.pod:6492
15084 msgid "This function is a no op."
15085 msgstr ""
15086
15087 # type: textblock
15088 #: ../src/guestfs-actions.pod:6494
15089 msgid ""
15090 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15091 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15092 "is no longer necessary because C<guestfs_launch> now does the waiting."
15093 msgstr ""
15094
15095 # type: textblock
15096 #: ../src/guestfs-actions.pod:6499
15097 msgid ""
15098 "If you see any calls to this function in code then you can just remove them, "
15099 "unless you want to retain compatibility with older versions of the API."
15100 msgstr ""
15101
15102 # type: =head2
15103 #: ../src/guestfs-actions.pod:6507
15104 msgid "guestfs_wc_c"
15105 msgstr ""
15106
15107 # type: verbatim
15108 #: ../src/guestfs-actions.pod:6509
15109 #, no-wrap
15110 msgid ""
15111 " int\n"
15112 " guestfs_wc_c (guestfs_h *g,\n"
15113 "               const char *path);\n"
15114 "\n"
15115 msgstr ""
15116
15117 # type: textblock
15118 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4305
15119 msgid ""
15120 "This command counts the characters in a file, using the C<wc -c> external "
15121 "command."
15122 msgstr ""
15123
15124 # type: =head2
15125 #: ../src/guestfs-actions.pod:6520
15126 msgid "guestfs_wc_l"
15127 msgstr ""
15128
15129 # type: verbatim
15130 #: ../src/guestfs-actions.pod:6522
15131 #, no-wrap
15132 msgid ""
15133 " int\n"
15134 " guestfs_wc_l (guestfs_h *g,\n"
15135 "               const char *path);\n"
15136 "\n"
15137 msgstr ""
15138
15139 # type: textblock
15140 #: ../src/guestfs-actions.pod:6526 ../fish/guestfish-actions.pod:4312
15141 msgid ""
15142 "This command counts the lines in a file, using the C<wc -l> external command."
15143 msgstr ""
15144
15145 # type: =head2
15146 #: ../src/guestfs-actions.pod:6533
15147 msgid "guestfs_wc_w"
15148 msgstr ""
15149
15150 # type: verbatim
15151 #: ../src/guestfs-actions.pod:6535
15152 #, no-wrap
15153 msgid ""
15154 " int\n"
15155 " guestfs_wc_w (guestfs_h *g,\n"
15156 "               const char *path);\n"
15157 "\n"
15158 msgstr ""
15159
15160 # type: textblock
15161 #: ../src/guestfs-actions.pod:6539 ../fish/guestfish-actions.pod:4319
15162 msgid ""
15163 "This command counts the words in a file, using the C<wc -w> external command."
15164 msgstr ""
15165
15166 # type: =head2
15167 #: ../src/guestfs-actions.pod:6546
15168 msgid "guestfs_write"
15169 msgstr ""
15170
15171 # type: verbatim
15172 #: ../src/guestfs-actions.pod:6548
15173 #, no-wrap
15174 msgid ""
15175 " int\n"
15176 " guestfs_write (guestfs_h *g,\n"
15177 "                const char *path,\n"
15178 "                const char *content,\n"
15179 "                size_t content_size);\n"
15180 "\n"
15181 msgstr ""
15182
15183 # type: textblock
15184 #: ../src/guestfs-actions.pod:6554 ../fish/guestfish-actions.pod:4326
15185 msgid ""
15186 "This call creates a file called C<path>.  The content of the file is the "
15187 "string C<content> (which can contain any 8 bit data)."
15188 msgstr ""
15189
15190 # type: =head2
15191 #: ../src/guestfs-actions.pod:6564
15192 msgid "guestfs_write_file"
15193 msgstr ""
15194
15195 # type: verbatim
15196 #: ../src/guestfs-actions.pod:6566
15197 #, no-wrap
15198 msgid ""
15199 " int\n"
15200 " guestfs_write_file (guestfs_h *g,\n"
15201 "                     const char *path,\n"
15202 "                     const char *content,\n"
15203 "                     int size);\n"
15204 "\n"
15205 msgstr ""
15206
15207 # type: textblock
15208 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4336
15209 msgid ""
15210 "This call creates a file called C<path>.  The contents of the file is the "
15211 "string C<content> (which can contain any 8 bit data), with length C<size>."
15212 msgstr ""
15213
15214 # type: textblock
15215 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4340
15216 msgid ""
15217 "As a special case, if C<size> is C<0> then the length is calculated using "
15218 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15219 msgstr ""
15220
15221 # type: textblock
15222 #: ../src/guestfs-actions.pod:6580 ../fish/guestfish-actions.pod:4344
15223 msgid ""
15224 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15225 "I<not> work, even if the length is specified."
15226 msgstr ""
15227
15228 # type: textblock
15229 #: ../src/guestfs-actions.pod:6588 ../fish/guestfish-actions.pod:4350
15230 msgid ""
15231 "This function is deprecated.  In new code, use the C<write> call instead."
15232 msgstr ""
15233
15234 # type: =head2
15235 #: ../src/guestfs-actions.pod:6597
15236 msgid "guestfs_zegrep"
15237 msgstr ""
15238
15239 # type: verbatim
15240 #: ../src/guestfs-actions.pod:6599
15241 #, no-wrap
15242 msgid ""
15243 " char **\n"
15244 " guestfs_zegrep (guestfs_h *g,\n"
15245 "                 const char *regex,\n"
15246 "                 const char *path);\n"
15247 "\n"
15248 msgstr ""
15249
15250 # type: textblock
15251 #: ../src/guestfs-actions.pod:6604 ../fish/guestfish-actions.pod:4361
15252 msgid ""
15253 "This calls the external C<zegrep> program and returns the matching lines."
15254 msgstr ""
15255
15256 # type: =head2
15257 #: ../src/guestfs-actions.pod:6616
15258 msgid "guestfs_zegrepi"
15259 msgstr ""
15260
15261 # type: verbatim
15262 #: ../src/guestfs-actions.pod:6618
15263 #, no-wrap
15264 msgid ""
15265 " char **\n"
15266 " guestfs_zegrepi (guestfs_h *g,\n"
15267 "                  const char *regex,\n"
15268 "                  const char *path);\n"
15269 "\n"
15270 msgstr ""
15271
15272 # type: textblock
15273 #: ../src/guestfs-actions.pod:6623 ../fish/guestfish-actions.pod:4371
15274 msgid ""
15275 "This calls the external C<zegrep -i> program and returns the matching lines."
15276 msgstr ""
15277
15278 # type: =head2
15279 #: ../src/guestfs-actions.pod:6635
15280 msgid "guestfs_zero"
15281 msgstr ""
15282
15283 # type: verbatim
15284 #: ../src/guestfs-actions.pod:6637
15285 #, no-wrap
15286 msgid ""
15287 " int\n"
15288 " guestfs_zero (guestfs_h *g,\n"
15289 "               const char *device);\n"
15290 "\n"
15291 msgstr ""
15292
15293 # type: textblock
15294 #: ../src/guestfs-actions.pod:6641 ../fish/guestfish-actions.pod:4381
15295 msgid "This command writes zeroes over the first few blocks of C<device>."
15296 msgstr ""
15297
15298 # type: textblock
15299 #: ../src/guestfs-actions.pod:6643 ../fish/guestfish-actions.pod:4383
15300 msgid ""
15301 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15302 "securely wipe the device).  It should be sufficient to remove any partition "
15303 "tables, filesystem superblocks and so on."
15304 msgstr ""
15305
15306 # type: textblock
15307 #: ../src/guestfs-actions.pod:6647
15308 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15309 msgstr ""
15310
15311 # type: =head2
15312 #: ../src/guestfs-actions.pod:6658
15313 msgid "guestfs_zero_device"
15314 msgstr ""
15315
15316 # type: verbatim
15317 #: ../src/guestfs-actions.pod:6660
15318 #, no-wrap
15319 msgid ""
15320 " int\n"
15321 " guestfs_zero_device (guestfs_h *g,\n"
15322 "                      const char *device);\n"
15323 "\n"
15324 msgstr ""
15325
15326 # type: textblock
15327 #: ../src/guestfs-actions.pod:6664
15328 msgid ""
15329 "This command writes zeroes over the entire C<device>.  Compare with "
15330 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15331 msgstr ""
15332
15333 # type: textblock
15334 #: ../src/guestfs-actions.pod:6678
15335 msgid "(Added in 1.3.1)"
15336 msgstr ""
15337
15338 # type: =head2
15339 #: ../src/guestfs-actions.pod:6680
15340 msgid "guestfs_zerofree"
15341 msgstr ""
15342
15343 # type: verbatim
15344 #: ../src/guestfs-actions.pod:6682
15345 #, no-wrap
15346 msgid ""
15347 " int\n"
15348 " guestfs_zerofree (guestfs_h *g,\n"
15349 "                   const char *device);\n"
15350 "\n"
15351 msgstr ""
15352
15353 # type: textblock
15354 #: ../src/guestfs-actions.pod:6686 ../fish/guestfish-actions.pod:4404
15355 msgid ""
15356 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15357 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15358 "possible to compress the filesystem more effectively."
15359 msgstr ""
15360
15361 # type: textblock
15362 #: ../src/guestfs-actions.pod:6691 ../fish/guestfish-actions.pod:4409
15363 msgid "You should B<not> run this program if the filesystem is mounted."
15364 msgstr ""
15365
15366 # type: textblock
15367 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4412
15368 msgid ""
15369 "It is possible that using this program can damage the filesystem or data on "
15370 "the filesystem."
15371 msgstr ""
15372
15373 # type: =head2
15374 #: ../src/guestfs-actions.pod:6701
15375 msgid "guestfs_zfgrep"
15376 msgstr ""
15377
15378 # type: verbatim
15379 #: ../src/guestfs-actions.pod:6703
15380 #, no-wrap
15381 msgid ""
15382 " char **\n"
15383 " guestfs_zfgrep (guestfs_h *g,\n"
15384 "                 const char *pattern,\n"
15385 "                 const char *path);\n"
15386 "\n"
15387 msgstr ""
15388
15389 # type: textblock
15390 #: ../src/guestfs-actions.pod:6708 ../fish/guestfish-actions.pod:4419
15391 msgid ""
15392 "This calls the external C<zfgrep> program and returns the matching lines."
15393 msgstr ""
15394
15395 # type: =head2
15396 #: ../src/guestfs-actions.pod:6720
15397 msgid "guestfs_zfgrepi"
15398 msgstr ""
15399
15400 # type: verbatim
15401 #: ../src/guestfs-actions.pod:6722
15402 #, no-wrap
15403 msgid ""
15404 " char **\n"
15405 " guestfs_zfgrepi (guestfs_h *g,\n"
15406 "                  const char *pattern,\n"
15407 "                  const char *path);\n"
15408 "\n"
15409 msgstr ""
15410
15411 # type: textblock
15412 #: ../src/guestfs-actions.pod:6727 ../fish/guestfish-actions.pod:4429
15413 msgid ""
15414 "This calls the external C<zfgrep -i> program and returns the matching lines."
15415 msgstr ""
15416
15417 # type: =head2
15418 #: ../src/guestfs-actions.pod:6739
15419 msgid "guestfs_zfile"
15420 msgstr ""
15421
15422 # type: verbatim
15423 #: ../src/guestfs-actions.pod:6741
15424 #, no-wrap
15425 msgid ""
15426 " char *\n"
15427 " guestfs_zfile (guestfs_h *g,\n"
15428 "                const char *meth,\n"
15429 "                const char *path);\n"
15430 "\n"
15431 msgstr ""
15432
15433 # type: textblock
15434 #: ../src/guestfs-actions.pod:6746 ../fish/guestfish-actions.pod:4439
15435 msgid ""
15436 "This command runs C<file> after first decompressing C<path> using C<method>."
15437 msgstr ""
15438
15439 # type: textblock
15440 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4442
15441 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15442 msgstr ""
15443
15444 # type: textblock
15445 #: ../src/guestfs-actions.pod:6751
15446 msgid ""
15447 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15448 "files."
15449 msgstr ""
15450
15451 # type: textblock
15452 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4447
15453 msgid ""
15454 "This function is deprecated.  In new code, use the C<file> call instead."
15455 msgstr ""
15456
15457 # type: =head2
15458 #: ../src/guestfs-actions.pod:6766
15459 msgid "guestfs_zgrep"
15460 msgstr ""
15461
15462 # type: verbatim
15463 #: ../src/guestfs-actions.pod:6768
15464 #, no-wrap
15465 msgid ""
15466 " char **\n"
15467 " guestfs_zgrep (guestfs_h *g,\n"
15468 "                const char *regex,\n"
15469 "                const char *path);\n"
15470 "\n"
15471 msgstr ""
15472
15473 # type: textblock
15474 #: ../src/guestfs-actions.pod:6773 ../fish/guestfish-actions.pod:4458
15475 msgid ""
15476 "This calls the external C<zgrep> program and returns the matching lines."
15477 msgstr ""
15478
15479 # type: =head2
15480 #: ../src/guestfs-actions.pod:6785
15481 msgid "guestfs_zgrepi"
15482 msgstr ""
15483
15484 # type: verbatim
15485 #: ../src/guestfs-actions.pod:6787
15486 #, no-wrap
15487 msgid ""
15488 " char **\n"
15489 " guestfs_zgrepi (guestfs_h *g,\n"
15490 "                 const char *regex,\n"
15491 "                 const char *path);\n"
15492 "\n"
15493 msgstr ""
15494
15495 # type: textblock
15496 #: ../src/guestfs-actions.pod:6792 ../fish/guestfish-actions.pod:4468
15497 msgid ""
15498 "This calls the external C<zgrep -i> program and returns the matching lines."
15499 msgstr ""
15500
15501 # type: =item
15502 #: ../src/guestfs-availability.pod:3
15503 msgid "B<augeas>"
15504 msgstr ""
15505
15506 # type: textblock
15507 #: ../src/guestfs-availability.pod:5
15508 msgid ""
15509 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
15510 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
15511 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
15512 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
15513 "L</guestfs_aug_save> L</guestfs_aug_set>"
15514 msgstr ""
15515
15516 # type: =item
15517 #: ../src/guestfs-availability.pod:21
15518 msgid "B<inotify>"
15519 msgstr ""
15520
15521 # type: textblock
15522 #: ../src/guestfs-availability.pod:23
15523 msgid ""
15524 "The following functions: L</guestfs_inotify_add_watch> L</"
15525 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
15526 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15527 msgstr ""
15528
15529 # type: =item
15530 #: ../src/guestfs-availability.pod:31
15531 msgid "B<linuxfsuuid>"
15532 msgstr ""
15533
15534 # type: textblock
15535 #: ../src/guestfs-availability.pod:33
15536 msgid ""
15537 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
15538 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15539 msgstr ""
15540
15541 # type: =item
15542 #: ../src/guestfs-availability.pod:40
15543 msgid "B<linuxmodules>"
15544 msgstr ""
15545
15546 # type: textblock
15547 #: ../src/guestfs-availability.pod:42
15548 msgid "The following functions: L</guestfs_modprobe>"
15549 msgstr ""
15550
15551 # type: =item
15552 #: ../src/guestfs-availability.pod:45
15553 msgid "B<linuxxattrs>"
15554 msgstr ""
15555
15556 # type: textblock
15557 #: ../src/guestfs-availability.pod:47
15558 msgid ""
15559 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
15560 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
15561 "guestfs_removexattr> L</guestfs_setxattr>"
15562 msgstr ""
15563
15564 # type: =item
15565 #: ../src/guestfs-availability.pod:56
15566 msgid "B<luks>"
15567 msgstr ""
15568
15569 # type: textblock
15570 #: ../src/guestfs-availability.pod:58
15571 msgid ""
15572 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
15573 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
15574 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15575 msgstr ""
15576
15577 # type: =item
15578 #: ../src/guestfs-availability.pod:67
15579 msgid "B<lvm2>"
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../src/guestfs-availability.pod:69
15584 msgid ""
15585 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
15586 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
15587 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
15588 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
15589 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
15590 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
15591 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
15592 msgstr ""
15593
15594 # type: =item
15595 #: ../src/guestfs-availability.pod:92
15596 msgid "B<mknod>"
15597 msgstr ""
15598
15599 # type: textblock
15600 #: ../src/guestfs-availability.pod:94
15601 msgid ""
15602 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
15603 "guestfs_mknod_b> L</guestfs_mknod_c>"
15604 msgstr ""
15605
15606 # type: =item
15607 #: ../src/guestfs-availability.pod:100
15608 msgid "B<ntfs3g>"
15609 msgstr ""
15610
15611 # type: textblock
15612 #: ../src/guestfs-availability.pod:102
15613 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15614 msgstr ""
15615
15616 # type: =item
15617 #: ../src/guestfs-availability.pod:105
15618 msgid "B<ntfsprogs>"
15619 msgstr ""
15620
15621 # type: textblock
15622 #: ../src/guestfs-availability.pod:107
15623 msgid ""
15624 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15625 msgstr ""
15626
15627 # type: =item
15628 #: ../src/guestfs-availability.pod:111
15629 msgid "B<realpath>"
15630 msgstr ""
15631
15632 # type: textblock
15633 #: ../src/guestfs-availability.pod:113
15634 msgid "The following functions: L</guestfs_realpath>"
15635 msgstr ""
15636
15637 # type: =item
15638 #: ../src/guestfs-availability.pod:116
15639 msgid "B<scrub>"
15640 msgstr ""
15641
15642 # type: textblock
15643 #: ../src/guestfs-availability.pod:118
15644 msgid ""
15645 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
15646 "guestfs_scrub_freespace>"
15647 msgstr ""
15648
15649 # type: =item
15650 #: ../src/guestfs-availability.pod:123
15651 msgid "B<selinux>"
15652 msgstr ""
15653
15654 # type: textblock
15655 #: ../src/guestfs-availability.pod:125
15656 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15657 msgstr ""
15658
15659 # type: =item
15660 #: ../src/guestfs-availability.pod:129
15661 msgid "B<xz>"
15662 msgstr ""
15663
15664 # type: textblock
15665 #: ../src/guestfs-availability.pod:131
15666 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15667 msgstr ""
15668
15669 # type: =item
15670 #: ../src/guestfs-availability.pod:135
15671 msgid "B<zerofree>"
15672 msgstr ""
15673
15674 # type: textblock
15675 #: ../src/guestfs-availability.pod:137
15676 msgid "The following functions: L</guestfs_zerofree>"
15677 msgstr ""
15678
15679 # type: =head2
15680 #: ../src/guestfs-structs.pod:1
15681 msgid "guestfs_int_bool"
15682 msgstr ""
15683
15684 # type: verbatim
15685 #: ../src/guestfs-structs.pod:3
15686 #, no-wrap
15687 msgid ""
15688 " struct guestfs_int_bool {\n"
15689 "   int32_t i;\n"
15690 "   int32_t b;\n"
15691 " };\n"
15692 " \n"
15693 msgstr ""
15694
15695 # type: verbatim
15696 #: ../src/guestfs-structs.pod:8
15697 #, no-wrap
15698 msgid ""
15699 " struct guestfs_int_bool_list {\n"
15700 "   uint32_t len; /* Number of elements in list. */\n"
15701 "   struct guestfs_int_bool *val; /* Elements. */\n"
15702 " };\n"
15703 " \n"
15704 msgstr ""
15705
15706 # type: verbatim
15707 #: ../src/guestfs-structs.pod:13
15708 #, no-wrap
15709 msgid ""
15710 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15711 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15712 "\n"
15713 msgstr ""
15714
15715 # type: =head2
15716 #: ../src/guestfs-structs.pod:16
15717 msgid "guestfs_lvm_pv"
15718 msgstr ""
15719
15720 # type: verbatim
15721 #: ../src/guestfs-structs.pod:18
15722 #, no-wrap
15723 msgid ""
15724 " struct guestfs_lvm_pv {\n"
15725 "   char *pv_name;\n"
15726 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15727 "   char pv_uuid[32];\n"
15728 "   char *pv_fmt;\n"
15729 "   uint64_t pv_size;\n"
15730 "   uint64_t dev_size;\n"
15731 "   uint64_t pv_free;\n"
15732 "   uint64_t pv_used;\n"
15733 "   char *pv_attr;\n"
15734 "   int64_t pv_pe_count;\n"
15735 "   int64_t pv_pe_alloc_count;\n"
15736 "   char *pv_tags;\n"
15737 "   uint64_t pe_start;\n"
15738 "   int64_t pv_mda_count;\n"
15739 "   uint64_t pv_mda_free;\n"
15740 " };\n"
15741 " \n"
15742 msgstr ""
15743
15744 # type: verbatim
15745 #: ../src/guestfs-structs.pod:36
15746 #, no-wrap
15747 msgid ""
15748 " struct guestfs_lvm_pv_list {\n"
15749 "   uint32_t len; /* Number of elements in list. */\n"
15750 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15751 " };\n"
15752 " \n"
15753 msgstr ""
15754
15755 # type: verbatim
15756 #: ../src/guestfs-structs.pod:41
15757 #, no-wrap
15758 msgid ""
15759 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15760 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15761 "\n"
15762 msgstr ""
15763
15764 # type: =head2
15765 #: ../src/guestfs-structs.pod:44
15766 msgid "guestfs_lvm_vg"
15767 msgstr ""
15768
15769 # type: verbatim
15770 #: ../src/guestfs-structs.pod:46
15771 #, no-wrap
15772 msgid ""
15773 " struct guestfs_lvm_vg {\n"
15774 "   char *vg_name;\n"
15775 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15776 "   char vg_uuid[32];\n"
15777 "   char *vg_fmt;\n"
15778 "   char *vg_attr;\n"
15779 "   uint64_t vg_size;\n"
15780 "   uint64_t vg_free;\n"
15781 "   char *vg_sysid;\n"
15782 "   uint64_t vg_extent_size;\n"
15783 "   int64_t vg_extent_count;\n"
15784 "   int64_t vg_free_count;\n"
15785 "   int64_t max_lv;\n"
15786 "   int64_t max_pv;\n"
15787 "   int64_t pv_count;\n"
15788 "   int64_t lv_count;\n"
15789 "   int64_t snap_count;\n"
15790 "   int64_t vg_seqno;\n"
15791 "   char *vg_tags;\n"
15792 "   int64_t vg_mda_count;\n"
15793 "   uint64_t vg_mda_free;\n"
15794 " };\n"
15795 " \n"
15796 msgstr ""
15797
15798 # type: verbatim
15799 #: ../src/guestfs-structs.pod:69
15800 #, no-wrap
15801 msgid ""
15802 " struct guestfs_lvm_vg_list {\n"
15803 "   uint32_t len; /* Number of elements in list. */\n"
15804 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15805 " };\n"
15806 " \n"
15807 msgstr ""
15808
15809 # type: verbatim
15810 #: ../src/guestfs-structs.pod:74
15811 #, no-wrap
15812 msgid ""
15813 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15814 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15815 "\n"
15816 msgstr ""
15817
15818 # type: =head2
15819 #: ../src/guestfs-structs.pod:77
15820 msgid "guestfs_lvm_lv"
15821 msgstr ""
15822
15823 # type: verbatim
15824 #: ../src/guestfs-structs.pod:79
15825 #, no-wrap
15826 msgid ""
15827 " struct guestfs_lvm_lv {\n"
15828 "   char *lv_name;\n"
15829 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15830 "   char lv_uuid[32];\n"
15831 "   char *lv_attr;\n"
15832 "   int64_t lv_major;\n"
15833 "   int64_t lv_minor;\n"
15834 "   int64_t lv_kernel_major;\n"
15835 "   int64_t lv_kernel_minor;\n"
15836 "   uint64_t lv_size;\n"
15837 "   int64_t seg_count;\n"
15838 "   char *origin;\n"
15839 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15840 "   float snap_percent;\n"
15841 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15842 "   float copy_percent;\n"
15843 "   char *move_pv;\n"
15844 "   char *lv_tags;\n"
15845 "   char *mirror_log;\n"
15846 "   char *modules;\n"
15847 " };\n"
15848 " \n"
15849 msgstr ""
15850
15851 # type: verbatim
15852 #: ../src/guestfs-structs.pod:101
15853 #, no-wrap
15854 msgid ""
15855 " struct guestfs_lvm_lv_list {\n"
15856 "   uint32_t len; /* Number of elements in list. */\n"
15857 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15858 " };\n"
15859 " \n"
15860 msgstr ""
15861
15862 # type: verbatim
15863 #: ../src/guestfs-structs.pod:106
15864 #, no-wrap
15865 msgid ""
15866 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15867 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15868 "\n"
15869 msgstr ""
15870
15871 # type: verbatim
15872 #: ../src/guestfs-structs.pod:111
15873 #, no-wrap
15874 msgid ""
15875 " struct guestfs_stat {\n"
15876 "   int64_t dev;\n"
15877 "   int64_t ino;\n"
15878 "   int64_t mode;\n"
15879 "   int64_t nlink;\n"
15880 "   int64_t uid;\n"
15881 "   int64_t gid;\n"
15882 "   int64_t rdev;\n"
15883 "   int64_t size;\n"
15884 "   int64_t blksize;\n"
15885 "   int64_t blocks;\n"
15886 "   int64_t atime;\n"
15887 "   int64_t mtime;\n"
15888 "   int64_t ctime;\n"
15889 " };\n"
15890 " \n"
15891 msgstr ""
15892
15893 # type: verbatim
15894 #: ../src/guestfs-structs.pod:127
15895 #, no-wrap
15896 msgid ""
15897 " struct guestfs_stat_list {\n"
15898 "   uint32_t len; /* Number of elements in list. */\n"
15899 "   struct guestfs_stat *val; /* Elements. */\n"
15900 " };\n"
15901 " \n"
15902 msgstr ""
15903
15904 # type: verbatim
15905 #: ../src/guestfs-structs.pod:132
15906 #, no-wrap
15907 msgid ""
15908 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15909 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15910 "\n"
15911 msgstr ""
15912
15913 # type: verbatim
15914 #: ../src/guestfs-structs.pod:137
15915 #, no-wrap
15916 msgid ""
15917 " struct guestfs_statvfs {\n"
15918 "   int64_t bsize;\n"
15919 "   int64_t frsize;\n"
15920 "   int64_t blocks;\n"
15921 "   int64_t bfree;\n"
15922 "   int64_t bavail;\n"
15923 "   int64_t files;\n"
15924 "   int64_t ffree;\n"
15925 "   int64_t favail;\n"
15926 "   int64_t fsid;\n"
15927 "   int64_t flag;\n"
15928 "   int64_t namemax;\n"
15929 " };\n"
15930 " \n"
15931 msgstr ""
15932
15933 # type: verbatim
15934 #: ../src/guestfs-structs.pod:151
15935 #, no-wrap
15936 msgid ""
15937 " struct guestfs_statvfs_list {\n"
15938 "   uint32_t len; /* Number of elements in list. */\n"
15939 "   struct guestfs_statvfs *val; /* Elements. */\n"
15940 " };\n"
15941 " \n"
15942 msgstr ""
15943
15944 # type: verbatim
15945 #: ../src/guestfs-structs.pod:156
15946 #, no-wrap
15947 msgid ""
15948 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15949 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15950 "\n"
15951 msgstr ""
15952
15953 # type: =head2
15954 #: ../src/guestfs-structs.pod:159
15955 msgid "guestfs_dirent"
15956 msgstr ""
15957
15958 # type: verbatim
15959 #: ../src/guestfs-structs.pod:161
15960 #, no-wrap
15961 msgid ""
15962 " struct guestfs_dirent {\n"
15963 "   int64_t ino;\n"
15964 "   char ftyp;\n"
15965 "   char *name;\n"
15966 " };\n"
15967 " \n"
15968 msgstr ""
15969
15970 # type: verbatim
15971 #: ../src/guestfs-structs.pod:167
15972 #, no-wrap
15973 msgid ""
15974 " struct guestfs_dirent_list {\n"
15975 "   uint32_t len; /* Number of elements in list. */\n"
15976 "   struct guestfs_dirent *val; /* Elements. */\n"
15977 " };\n"
15978 " \n"
15979 msgstr ""
15980
15981 # type: verbatim
15982 #: ../src/guestfs-structs.pod:172
15983 #, no-wrap
15984 msgid ""
15985 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15986 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15987 "\n"
15988 msgstr ""
15989
15990 # type: verbatim
15991 #: ../src/guestfs-structs.pod:177
15992 #, no-wrap
15993 msgid ""
15994 " struct guestfs_version {\n"
15995 "   int64_t major;\n"
15996 "   int64_t minor;\n"
15997 "   int64_t release;\n"
15998 "   char *extra;\n"
15999 " };\n"
16000 " \n"
16001 msgstr ""
16002
16003 # type: verbatim
16004 #: ../src/guestfs-structs.pod:184
16005 #, no-wrap
16006 msgid ""
16007 " struct guestfs_version_list {\n"
16008 "   uint32_t len; /* Number of elements in list. */\n"
16009 "   struct guestfs_version *val; /* Elements. */\n"
16010 " };\n"
16011 " \n"
16012 msgstr ""
16013
16014 # type: verbatim
16015 #: ../src/guestfs-structs.pod:189
16016 #, no-wrap
16017 msgid ""
16018 " void guestfs_free_version (struct guestfs_free_version *);\n"
16019 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16020 "\n"
16021 msgstr ""
16022
16023 # type: =head2
16024 #: ../src/guestfs-structs.pod:192
16025 msgid "guestfs_xattr"
16026 msgstr ""
16027
16028 # type: verbatim
16029 #: ../src/guestfs-structs.pod:194
16030 #, no-wrap
16031 msgid ""
16032 " struct guestfs_xattr {\n"
16033 "   char *attrname;\n"
16034 "   /* The next two fields describe a byte array. */\n"
16035 "   uint32_t attrval_len;\n"
16036 "   char *attrval;\n"
16037 " };\n"
16038 " \n"
16039 msgstr ""
16040
16041 # type: verbatim
16042 #: ../src/guestfs-structs.pod:201
16043 #, no-wrap
16044 msgid ""
16045 " struct guestfs_xattr_list {\n"
16046 "   uint32_t len; /* Number of elements in list. */\n"
16047 "   struct guestfs_xattr *val; /* Elements. */\n"
16048 " };\n"
16049 " \n"
16050 msgstr ""
16051
16052 # type: verbatim
16053 #: ../src/guestfs-structs.pod:206
16054 #, no-wrap
16055 msgid ""
16056 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16057 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16058 "\n"
16059 msgstr ""
16060
16061 # type: =head2
16062 #: ../src/guestfs-structs.pod:209
16063 msgid "guestfs_inotify_event"
16064 msgstr ""
16065
16066 # type: verbatim
16067 #: ../src/guestfs-structs.pod:211
16068 #, no-wrap
16069 msgid ""
16070 " struct guestfs_inotify_event {\n"
16071 "   int64_t in_wd;\n"
16072 "   uint32_t in_mask;\n"
16073 "   uint32_t in_cookie;\n"
16074 "   char *in_name;\n"
16075 " };\n"
16076 " \n"
16077 msgstr ""
16078
16079 # type: verbatim
16080 #: ../src/guestfs-structs.pod:218
16081 #, no-wrap
16082 msgid ""
16083 " struct guestfs_inotify_event_list {\n"
16084 "   uint32_t len; /* Number of elements in list. */\n"
16085 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16086 " };\n"
16087 " \n"
16088 msgstr ""
16089
16090 # type: verbatim
16091 #: ../src/guestfs-structs.pod:223
16092 #, no-wrap
16093 msgid ""
16094 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16095 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16096 "\n"
16097 msgstr ""
16098
16099 # type: =head2
16100 #: ../src/guestfs-structs.pod:226
16101 msgid "guestfs_partition"
16102 msgstr ""
16103
16104 # type: verbatim
16105 #: ../src/guestfs-structs.pod:228
16106 #, no-wrap
16107 msgid ""
16108 " struct guestfs_partition {\n"
16109 "   int32_t part_num;\n"
16110 "   uint64_t part_start;\n"
16111 "   uint64_t part_end;\n"
16112 "   uint64_t part_size;\n"
16113 " };\n"
16114 " \n"
16115 msgstr ""
16116
16117 # type: verbatim
16118 #: ../src/guestfs-structs.pod:235
16119 #, no-wrap
16120 msgid ""
16121 " struct guestfs_partition_list {\n"
16122 "   uint32_t len; /* Number of elements in list. */\n"
16123 "   struct guestfs_partition *val; /* Elements. */\n"
16124 " };\n"
16125 " \n"
16126 msgstr ""
16127
16128 # type: verbatim
16129 #: ../src/guestfs-structs.pod:240
16130 #, no-wrap
16131 msgid ""
16132 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16133 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16134 "\n"
16135 msgstr ""
16136
16137 # type: textblock
16138 #: ../fish/guestfish.pod:5
16139 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16140 msgstr ""
16141
16142 # type: verbatim
16143 #: ../fish/guestfish.pod:9
16144 #, no-wrap
16145 msgid ""
16146 " guestfish [--options] [commands]\n"
16147 "\n"
16148 msgstr ""
16149
16150 # type: verbatim
16151 #: ../fish/guestfish.pod:11
16152 #, no-wrap
16153 msgid ""
16154 " guestfish\n"
16155 "\n"
16156 msgstr ""
16157
16158 # type: verbatim
16159 #: ../fish/guestfish.pod:13
16160 #, no-wrap
16161 msgid ""
16162 " guestfish -a disk.img\n"
16163 "\n"
16164 msgstr ""
16165
16166 # type: verbatim
16167 #: ../fish/guestfish.pod:15
16168 #, no-wrap
16169 msgid ""
16170 " guestfish -a disk.img -m dev[:mountpoint]\n"
16171 "\n"
16172 msgstr ""
16173
16174 # type: verbatim
16175 #: ../fish/guestfish.pod:17
16176 #, no-wrap
16177 msgid ""
16178 " guestfish -d libvirt-domain\n"
16179 "\n"
16180 msgstr ""
16181
16182 # type: verbatim
16183 #: ../fish/guestfish.pod:19
16184 #, no-wrap
16185 msgid ""
16186 " guestfish -a disk.img -i\n"
16187 "\n"
16188 msgstr ""
16189
16190 # type: verbatim
16191 #: ../fish/guestfish.pod:21
16192 #, no-wrap
16193 msgid ""
16194 " guestfish -d libvirt-domain -i\n"
16195 "\n"
16196 msgstr ""
16197
16198 # type: =head1
16199 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16200 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16201 #: ../tools/virt-rescue.pl:41
16202 msgid "WARNING"
16203 msgstr ""
16204
16205 # type: textblock
16206 #: ../fish/guestfish.pod:25
16207 msgid ""
16208 "Using guestfish in read/write mode on live virtual machines can be "
16209 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16210 "option to use guestfish safely if the disk image or virtual machine might be "
16211 "live."
16212 msgstr ""
16213
16214 # type: textblock
16215 #: ../fish/guestfish.pod:32
16216 msgid ""
16217 "Guestfish is a shell and command-line tool for examining and modifying "
16218 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16219 "functionality of the guestfs API, see L<guestfs(3)>."
16220 msgstr ""
16221
16222 # type: textblock
16223 #: ../fish/guestfish.pod:36
16224 msgid ""
16225 "Guestfish gives you structured access to the libguestfs API, from shell "
16226 "scripts or the command line or interactively.  If you want to rescue a "
16227 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16228 "command."
16229 msgstr ""
16230
16231 # type: =head1
16232 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800
16233 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16234 #: ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
16235 msgid "EXAMPLES"
16236 msgstr ""
16237
16238 # type: =head2
16239 #: ../fish/guestfish.pod:43
16240 msgid "As an interactive shell"
16241 msgstr ""
16242
16243 # type: verbatim
16244 #: ../fish/guestfish.pod:45
16245 #, no-wrap
16246 msgid ""
16247 " $ guestfish\n"
16248 " \n"
16249 msgstr ""
16250
16251 # type: verbatim
16252 #: ../fish/guestfish.pod:47
16253 #, no-wrap
16254 msgid ""
16255 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16256 " editing virtual machine filesystems.\n"
16257 " \n"
16258 msgstr ""
16259
16260 # type: verbatim
16261 #: ../fish/guestfish.pod:50
16262 #, no-wrap
16263 msgid ""
16264 " Type: 'help' for a list of commands\n"
16265 "       'man' to read the manual\n"
16266 "       'quit' to quit the shell\n"
16267 " \n"
16268 msgstr ""
16269
16270 # type: verbatim
16271 #: ../fish/guestfish.pod:54
16272 #, no-wrap
16273 msgid ""
16274 " ><fs> add-ro disk.img\n"
16275 " ><fs> run\n"
16276 " ><fs> list-filesystems\n"
16277 " /dev/sda1: ext4\n"
16278 " /dev/vg_guest/lv_root: ext4\n"
16279 " /dev/vg_guest/lv_swap: swap\n"
16280 " ><fs> mount /dev/vg_guest/lv_root /\n"
16281 " ><fs> cat /etc/fstab\n"
16282 " # /etc/fstab\n"
16283 " # Created by anaconda\n"
16284 " [...]\n"
16285 " ><fs> exit\n"
16286 "\n"
16287 msgstr ""
16288
16289 # type: =head2
16290 #: ../fish/guestfish.pod:67
16291 msgid "From shell scripts"
16292 msgstr ""
16293
16294 # type: textblock
16295 #: ../fish/guestfish.pod:69
16296 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16297 msgstr ""
16298
16299 # type: verbatim
16300 #: ../fish/guestfish.pod:71
16301 #, no-wrap
16302 msgid ""
16303 " guestfish <<_EOF_\n"
16304 " add disk.img\n"
16305 " run\n"
16306 " mount /dev/vg_guest/lv_root /\n"
16307 " write /etc/motd \"Welcome, new users\"\n"
16308 " _EOF_\n"
16309 "\n"
16310 msgstr ""
16311
16312 # type: textblock
16313 #: ../fish/guestfish.pod:78
16314 msgid "List the LVM logical volumes in a disk image:"
16315 msgstr ""
16316
16317 # type: verbatim
16318 #: ../fish/guestfish.pod:80
16319 #, no-wrap
16320 msgid ""
16321 " guestfish -a disk.img --ro <<_EOF_\n"
16322 " run\n"
16323 " lvs\n"
16324 " _EOF_\n"
16325 "\n"
16326 msgstr ""
16327
16328 # type: textblock
16329 #: ../fish/guestfish.pod:85
16330 msgid "List all the filesystems in a disk image:"
16331 msgstr ""
16332
16333 # type: verbatim
16334 #: ../fish/guestfish.pod:87
16335 #, no-wrap
16336 msgid ""
16337 " guestfish -a disk.img --ro <<_EOF_\n"
16338 " run\n"
16339 " list-filesystems\n"
16340 " _EOF_\n"
16341 "\n"
16342 msgstr ""
16343
16344 # type: =head2
16345 #: ../fish/guestfish.pod:92
16346 msgid "On one command line"
16347 msgstr ""
16348
16349 # type: textblock
16350 #: ../fish/guestfish.pod:94
16351 msgid "Update C</etc/resolv.conf> in a guest:"
16352 msgstr ""
16353
16354 # type: verbatim
16355 #: ../fish/guestfish.pod:96
16356 #, no-wrap
16357 msgid ""
16358 " guestfish \\\n"
16359 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16360 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16361 "\n"
16362 msgstr ""
16363
16364 # type: textblock
16365 #: ../fish/guestfish.pod:100
16366 msgid "Edit C</boot/grub/grub.conf> interactively:"
16367 msgstr ""
16368
16369 # type: verbatim
16370 #: ../fish/guestfish.pod:102
16371 #, no-wrap
16372 msgid ""
16373 " guestfish --add disk.img \\\n"
16374 "   --mount /dev/vg_guest/lv_root \\\n"
16375 "   --mount /dev/sda1:/boot \\\n"
16376 "   edit /boot/grub/grub.conf\n"
16377 "\n"
16378 msgstr ""
16379
16380 # type: =head2
16381 #: ../fish/guestfish.pod:107
16382 msgid "Mount disks automatically"
16383 msgstr ""
16384
16385 # type: textblock
16386 #: ../fish/guestfish.pod:109
16387 msgid ""
16388 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16389 msgstr ""
16390
16391 # type: verbatim
16392 #: ../fish/guestfish.pod:112
16393 #, no-wrap
16394 msgid ""
16395 " guestfish --ro -a disk.img -i cat /etc/group\n"
16396 "\n"
16397 msgstr ""
16398
16399 # type: verbatim
16400 #: ../fish/guestfish.pod:114
16401 #, no-wrap
16402 msgid ""
16403 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16404 "\n"
16405 msgstr ""
16406
16407 # type: textblock
16408 #: ../fish/guestfish.pod:116
16409 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16410 msgstr ""
16411
16412 # type: verbatim
16413 #: ../fish/guestfish.pod:118
16414 #, no-wrap
16415 msgid ""
16416 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
16417 "\n"
16418 msgstr ""
16419
16420 # type: =head2
16421 #: ../fish/guestfish.pod:120
16422 msgid "As a script interpreter"
16423 msgstr ""
16424
16425 # type: textblock
16426 #: ../fish/guestfish.pod:122
16427 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16428 msgstr ""
16429
16430 # type: verbatim
16431 #: ../fish/guestfish.pod:124
16432 #, no-wrap
16433 msgid ""
16434 " #!/usr/bin/guestfish -f\n"
16435 " sparse test1.img 100M\n"
16436 " run\n"
16437 " part-disk /dev/sda mbr\n"
16438 " mkfs ext2 /dev/sda1\n"
16439 "\n"
16440 msgstr ""
16441
16442 # type: =head2
16443 #: ../fish/guestfish.pod:130
16444 msgid "Start with a prepared disk"
16445 msgstr ""
16446
16447 # type: textblock
16448 #: ../fish/guestfish.pod:132
16449 msgid ""
16450 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16451 "single ext2-formatted partition:"
16452 msgstr ""
16453
16454 # type: verbatim
16455 #: ../fish/guestfish.pod:135
16456 #, no-wrap
16457 msgid ""
16458 " guestfish -N fs\n"
16459 "\n"
16460 msgstr ""
16461
16462 # type: textblock
16463 #: ../fish/guestfish.pod:137
16464 msgid "To list what is available do:"
16465 msgstr ""
16466
16467 # type: verbatim
16468 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
16469 #, no-wrap
16470 msgid ""
16471 " guestfish -N help | less\n"
16472 "\n"
16473 msgstr ""
16474
16475 # type: =head2
16476 #: ../fish/guestfish.pod:141
16477 msgid "Remote control"
16478 msgstr ""
16479
16480 # type: verbatim
16481 #: ../fish/guestfish.pod:143
16482 #, no-wrap
16483 msgid ""
16484 " eval `guestfish --listen`\n"
16485 " guestfish --remote add-ro disk.img\n"
16486 " guestfish --remote run\n"
16487 " guestfish --remote lvs\n"
16488 "\n"
16489 msgstr ""
16490
16491 # type: =head1
16492 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
16493 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
16494 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
16495 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
16496 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79
16497 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
16498 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
16499 msgid "OPTIONS"
16500 msgstr ""
16501
16502 # type: =item
16503 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
16504 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
16505 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
16506 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
16507 #: ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106
16508 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
16509 #: ../tools/virt-list-partitions.pl:59
16510 msgid "B<--help>"
16511 msgstr ""
16512
16513 # type: textblock
16514 #: ../fish/guestfish.pod:154
16515 msgid "Displays general help on options."
16516 msgstr ""
16517
16518 # type: =item
16519 #: ../fish/guestfish.pod:156
16520 msgid "B<-h> | B<--cmd-help>"
16521 msgstr ""
16522
16523 # type: textblock
16524 #: ../fish/guestfish.pod:158
16525 msgid "Lists all available guestfish commands."
16526 msgstr ""
16527
16528 # type: =item
16529 #: ../fish/guestfish.pod:160
16530 msgid "B<-h cmd> | B<--cmd-help cmd>"
16531 msgstr ""
16532
16533 # type: textblock
16534 #: ../fish/guestfish.pod:162
16535 msgid "Displays detailed help on a single command C<cmd>."
16536 msgstr ""
16537
16538 # type: =item
16539 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16540 msgid "B<-a image> | B<--add image>"
16541 msgstr ""
16542
16543 # type: textblock
16544 #: ../fish/guestfish.pod:166
16545 msgid "Add a block device or virtual machine image to the shell."
16546 msgstr ""
16547
16548 # type: textblock
16549 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16550 msgid ""
16551 "The format of the disk image is auto-detected.  To override this and force a "
16552 "particular format use the I<--format=..> option."
16553 msgstr ""
16554
16555 # type: =item
16556 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16557 msgid "B<-c URI> | B<--connect URI>"
16558 msgstr ""
16559
16560 # type: textblock
16561 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16562 msgid ""
16563 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16564 "URI to use.  The default is to use the default libvirt connection."
16565 msgstr ""
16566
16567 # type: =item
16568 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
16569 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16570 msgstr ""
16571
16572 # type: textblock
16573 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
16574 msgid ""
16575 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16576 "used, then any libvirt domain can be used.  However in write mode, only "
16577 "libvirt domains which are shut down can be named here."
16578 msgstr ""
16579
16580 # type: =item
16581 #: ../fish/guestfish.pod:183
16582 msgid "B<-D> | B<--no-dest-paths>"
16583 msgstr ""
16584
16585 # type: textblock
16586 #: ../fish/guestfish.pod:185
16587 msgid ""
16588 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16589 "to hit the tab key to complete paths on the guest filesystem, but this "
16590 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16591 "allow this feature to be disabled."
16592 msgstr ""
16593
16594 # type: =item
16595 #: ../fish/guestfish.pod:190 ../fuse/guestmount.pod:108
16596 msgid "B<--echo-keys>"
16597 msgstr ""
16598
16599 # type: textblock
16600 #: ../fish/guestfish.pod:192 ../fuse/guestmount.pod:110
16601 msgid ""
16602 "When prompting for keys and passphrases, guestfish normally turns echoing "
16603 "off so you cannot see what you are typing.  If you are not worried about "
16604 "Tempest attacks and there is no one else in the room you can specify this "
16605 "flag to see what you are typing."
16606 msgstr ""
16607
16608 # type: =item
16609 #: ../fish/guestfish.pod:197
16610 msgid "B<-f file> | B<--file file>"
16611 msgstr ""
16612
16613 # type: textblock
16614 #: ../fish/guestfish.pod:199
16615 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16616 msgstr ""
16617
16618 # type: verbatim
16619 #: ../fish/guestfish.pod:202
16620 #, no-wrap
16621 msgid ""
16622 " #!/usr/bin/guestfish -f\n"
16623 "\n"
16624 msgstr ""
16625
16626 # type: =item
16627 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:115
16628 msgid "B<--format=raw|qcow2|..> | B<--format>"
16629 msgstr ""
16630
16631 # type: textblock
16632 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:117
16633 msgid ""
16634 "The default for the I<-a> option is to auto-detect the format of the disk "
16635 "image.  Using this forces the disk format for I<-a> options which follow on "
16636 "the command line.  Using I<--format> with no argument switches back to auto-"
16637 "detection for subsequent I<-a> options."
16638 msgstr ""
16639
16640 # type: textblock
16641 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
16642 #: ../inspector/virt-inspector.pl:549
16643 msgid "For example:"
16644 msgstr ""
16645
16646 # type: verbatim
16647 #: ../fish/guestfish.pod:213
16648 #, no-wrap
16649 msgid ""
16650 " guestfish --format=raw -a disk.img\n"
16651 "\n"
16652 msgstr ""
16653
16654 # type: textblock
16655 #: ../fish/guestfish.pod:215
16656 msgid "forces raw format (no auto-detection) for C<disk.img>."
16657 msgstr ""
16658
16659 # type: verbatim
16660 #: ../fish/guestfish.pod:217
16661 #, no-wrap
16662 msgid ""
16663 " guestfish --format=raw -a disk.img --format -a another.img\n"
16664 "\n"
16665 msgstr ""
16666
16667 # type: textblock
16668 #: ../fish/guestfish.pod:219
16669 msgid ""
16670 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
16671 "detection for C<another.img>."
16672 msgstr ""
16673
16674 # type: textblock
16675 #: ../fish/guestfish.pod:222
16676 msgid ""
16677 "If you have untrusted raw-format guest disk images, you should use this "
16678 "option to specify the disk format.  This avoids a possible security problem "
16679 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16680 msgstr ""
16681
16682 # type: =item
16683 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:135
16684 msgid "B<-i> | B<--inspector>"
16685 msgstr ""
16686
16687 # type: textblock
16688 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:137
16689 msgid ""
16690 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16691 "system and mount filesystems as they would be mounted on the real virtual "
16692 "machine."
16693 msgstr ""
16694
16695 # type: textblock
16696 #: ../fish/guestfish.pod:233
16697 msgid "Typical usage is either:"
16698 msgstr ""
16699
16700 # type: verbatim
16701 #: ../fish/guestfish.pod:235
16702 #, no-wrap
16703 msgid ""
16704 " guestfish -d myguest -i\n"
16705 "\n"
16706 msgstr ""
16707
16708 # type: textblock
16709 #: ../fish/guestfish.pod:237
16710 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16711 msgstr ""
16712
16713 # type: verbatim
16714 #: ../fish/guestfish.pod:239
16715 #, no-wrap
16716 msgid ""
16717 " guestfish --ro -d myguest -i\n"
16718 "\n"
16719 msgstr ""
16720
16721 # type: textblock
16722 #: ../fish/guestfish.pod:241
16723 msgid "(for active domains, readonly), or specify the block device directly:"
16724 msgstr ""
16725
16726 # type: verbatim
16727 #: ../fish/guestfish.pod:243
16728 #, no-wrap
16729 msgid ""
16730 " guestfish -a /dev/Guests/MyGuest -i\n"
16731 "\n"
16732 msgstr ""
16733
16734 # type: textblock
16735 #: ../fish/guestfish.pod:245
16736 msgid ""
16737 "Note that the command line syntax changed slightly over older versions of "
16738 "guestfish.  You can still use the old syntax:"
16739 msgstr ""
16740
16741 # type: verbatim
16742 #: ../fish/guestfish.pod:248
16743 #, no-wrap
16744 msgid ""
16745 " guestfish [--ro] -i disk.img\n"
16746 "\n"
16747 msgstr ""
16748
16749 # type: verbatim
16750 #: ../fish/guestfish.pod:250
16751 #, no-wrap
16752 msgid ""
16753 " guestfish [--ro] -i libvirt-domain\n"
16754 "\n"
16755 msgstr ""
16756
16757 # type: =item
16758 #: ../fish/guestfish.pod:252 ../fuse/guestmount.pod:141
16759 msgid "B<--keys-from-stdin>"
16760 msgstr ""
16761
16762 # type: textblock
16763 #: ../fish/guestfish.pod:254 ../fuse/guestmount.pod:143
16764 msgid ""
16765 "Read key or passphrase parameters from stdin.  The default is to try to read "
16766 "passphrases from the user by opening C</dev/tty>."
16767 msgstr ""
16768
16769 # type: =item
16770 #: ../fish/guestfish.pod:257
16771 msgid "B<--listen>"
16772 msgstr ""
16773
16774 # type: textblock
16775 #: ../fish/guestfish.pod:259
16776 msgid ""
16777 "Fork into the background and listen for remote commands.  See section L</"
16778 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16779 msgstr ""
16780
16781 # type: =item
16782 #: ../fish/guestfish.pod:262
16783 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16784 msgstr ""
16785
16786 # type: textblock
16787 #: ../fish/guestfish.pod:264
16788 msgid "Mount the named partition or logical volume on the given mountpoint."
16789 msgstr ""
16790
16791 # type: textblock
16792 #: ../fish/guestfish.pod:266
16793 msgid "If the mountpoint is omitted, it defaults to C</>."
16794 msgstr ""
16795
16796 # type: textblock
16797 #: ../fish/guestfish.pod:268
16798 msgid "You have to mount something on C</> before most commands will work."
16799 msgstr ""
16800
16801 # type: textblock
16802 #: ../fish/guestfish.pod:270
16803 msgid ""
16804 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16805 "launched."
16806 msgstr ""
16807
16808 # type: textblock
16809 #: ../fish/guestfish.pod:273
16810 msgid ""
16811 "If you don't know what filesystems a disk image contains, you can either run "
16812 "guestfish without this option, then list the partitions and LVs available "
16813 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
16814 "list-filesystems(1)> program."
16815 msgstr ""
16816
16817 # type: =item
16818 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:154
16819 msgid "B<-n> | B<--no-sync>"
16820 msgstr ""
16821
16822 # type: textblock
16823 #: ../fish/guestfish.pod:280
16824 msgid ""
16825 "Disable autosync.  This is enabled by default.  See the discussion of "
16826 "autosync in the L<guestfs(3)> manpage."
16827 msgstr ""
16828
16829 # type: =item
16830 #: ../fish/guestfish.pod:283
16831 msgid "B<-N type> | B<--new type> | B<-N help>"
16832 msgstr ""
16833
16834 # type: textblock
16835 #: ../fish/guestfish.pod:285
16836 msgid ""
16837 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16838 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16839 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16840 "IMAGES> below."
16841 msgstr ""
16842
16843 # type: =item
16844 #: ../fish/guestfish.pod:290
16845 msgid "B<--progress-bars>"
16846 msgstr ""
16847
16848 # type: textblock
16849 #: ../fish/guestfish.pod:292
16850 msgid "Enable progress bars, even when guestfish is used non-interactively."
16851 msgstr ""
16852
16853 # type: textblock
16854 #: ../fish/guestfish.pod:294
16855 msgid ""
16856 "Progress bars are enabled by default when guestfish is used as an "
16857 "interactive shell."
16858 msgstr ""
16859
16860 # type: =item
16861 #: ../fish/guestfish.pod:297
16862 msgid "B<--no-progress-bars>"
16863 msgstr ""
16864
16865 # type: textblock
16866 #: ../fish/guestfish.pod:299
16867 msgid "Disable progress bars."
16868 msgstr ""
16869
16870 # type: =item
16871 #: ../fish/guestfish.pod:301
16872 msgid "B<--remote[=pid]>"
16873 msgstr ""
16874
16875 # type: textblock
16876 #: ../fish/guestfish.pod:303
16877 msgid ""
16878 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16879 "CONTROL GUESTFISH OVER A SOCKET> below."
16880 msgstr ""
16881
16882 # type: =item
16883 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:196
16884 msgid "B<-r> | B<--ro>"
16885 msgstr ""
16886
16887 # type: textblock
16888 #: ../fish/guestfish.pod:308
16889 msgid ""
16890 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16891 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16892 msgstr ""
16893
16894 # type: textblock
16895 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
16896 msgid ""
16897 "The option must always be used if the disk image or virtual machine might be "
16898 "running, and is generally recommended in cases where you don't need write "
16899 "access to the disk."
16900 msgstr ""
16901
16902 # type: textblock
16903 #: ../fish/guestfish.pod:315
16904 msgid ""
16905 "Note that prepared disk images created with I<-N> are not affected by the "
16906 "I<--ro> option."
16907 msgstr ""
16908
16909 # type: =item
16910 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:206
16911 #: ../tools/virt-rescue.pl:195
16912 msgid "B<--selinux>"
16913 msgstr ""
16914
16915 # type: textblock
16916 #: ../fish/guestfish.pod:320
16917 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16918 msgstr ""
16919
16920 # type: =item
16921 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:210
16922 msgid "B<-v> | B<--verbose>"
16923 msgstr ""
16924
16925 # type: textblock
16926 #: ../fish/guestfish.pod:324
16927 msgid ""
16928 "Enable very verbose messages.  This is particularly useful if you find a bug."
16929 msgstr ""
16930
16931 # type: =item
16932 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:214
16933 msgid "B<-V> | B<--version>"
16934 msgstr ""
16935
16936 # type: textblock
16937 #: ../fish/guestfish.pod:329
16938 msgid "Display the guestfish / libguestfs version number and exit."
16939 msgstr ""
16940
16941 # type: =item
16942 #: ../fish/guestfish.pod:331
16943 msgid "B<-x>"
16944 msgstr ""
16945
16946 # type: textblock
16947 #: ../fish/guestfish.pod:333
16948 msgid "Echo each command before executing it."
16949 msgstr ""
16950
16951 # type: =head1
16952 #: ../fish/guestfish.pod:337
16953 msgid "COMMANDS ON COMMAND LINE"
16954 msgstr ""
16955
16956 # type: textblock
16957 #: ../fish/guestfish.pod:339
16958 msgid ""
16959 "Any additional (non-option) arguments are treated as commands to execute."
16960 msgstr ""
16961
16962 # type: textblock
16963 #: ../fish/guestfish.pod:342
16964 msgid ""
16965 "Commands to execute should be separated by a colon (C<:>), where the colon "
16966 "is a separate parameter.  Thus:"
16967 msgstr ""
16968
16969 # type: verbatim
16970 #: ../fish/guestfish.pod:345
16971 #, no-wrap
16972 msgid ""
16973 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16974 "\n"
16975 msgstr ""
16976
16977 # type: textblock
16978 #: ../fish/guestfish.pod:347
16979 msgid ""
16980 "If there are no additional arguments, then we enter a shell, either an "
16981 "interactive shell with a prompt (if the input is a terminal) or a non-"
16982 "interactive shell."
16983 msgstr ""
16984
16985 # type: textblock
16986 #: ../fish/guestfish.pod:351
16987 msgid ""
16988 "In either command line mode or non-interactive shell, the first command that "
16989 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16990 "prompt) if a command fails, you can continue to enter commands."
16991 msgstr ""
16992
16993 # type: =head1
16994 #: ../fish/guestfish.pod:356
16995 msgid "USING launch (OR run)"
16996 msgstr ""
16997
16998 # type: textblock
16999 #: ../fish/guestfish.pod:358
17000 msgid ""
17001 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17002 "then launch it, then mount any disks you need, and finally issue actions/"
17003 "commands.  So the general order of the day is:"
17004 msgstr ""
17005
17006 # type: textblock
17007 #: ../fish/guestfish.pod:366
17008 msgid "add or -a/--add"
17009 msgstr ""
17010
17011 # type: textblock
17012 #: ../fish/guestfish.pod:370
17013 msgid "launch (aka run)"
17014 msgstr ""
17015
17016 # type: textblock
17017 #: ../fish/guestfish.pod:374
17018 msgid "mount or -m/--mount"
17019 msgstr ""
17020
17021 # type: textblock
17022 #: ../fish/guestfish.pod:378
17023 msgid "any other commands"
17024 msgstr ""
17025
17026 # type: textblock
17027 #: ../fish/guestfish.pod:382
17028 msgid ""
17029 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17030 "guest before mounting or performing any other commands."
17031 msgstr ""
17032
17033 # type: textblock
17034 #: ../fish/guestfish.pod:385
17035 msgid ""
17036 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17037 "I<--new> options were given then C<run> is done automatically, simply "
17038 "because guestfish can't perform the action you asked for without doing this."
17039 msgstr ""
17040
17041 # type: =head1
17042 #: ../fish/guestfish.pod:390
17043 msgid "QUOTING"
17044 msgstr ""
17045
17046 # type: textblock
17047 #: ../fish/guestfish.pod:392
17048 msgid ""
17049 "You can quote ordinary parameters using either single or double quotes.  For "
17050 "example:"
17051 msgstr ""
17052
17053 # type: verbatim
17054 #: ../fish/guestfish.pod:395
17055 #, no-wrap
17056 msgid ""
17057 " add \"file with a space.img\"\n"
17058 "\n"
17059 msgstr ""
17060
17061 # type: verbatim
17062 #: ../fish/guestfish.pod:397
17063 #, no-wrap
17064 msgid ""
17065 " rm '/file name'\n"
17066 "\n"
17067 msgstr ""
17068
17069 # type: verbatim
17070 #: ../fish/guestfish.pod:399
17071 #, no-wrap
17072 msgid ""
17073 " rm '/\"'\n"
17074 "\n"
17075 msgstr ""
17076
17077 # type: textblock
17078 #: ../fish/guestfish.pod:401
17079 msgid ""
17080 "A few commands require a list of strings to be passed.  For these, use a "
17081 "whitespace-separated list, enclosed in quotes.  Strings containing "
17082 "whitespace to be passed through must be enclosed in single quotes.  A "
17083 "literal single quote must be escaped with a backslash."
17084 msgstr ""
17085
17086 # type: verbatim
17087 #: ../fish/guestfish.pod:406
17088 #, no-wrap
17089 msgid ""
17090 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17091 " command \"/bin/echo 'foo      bar'\"\n"
17092 " command \"/bin/echo \\'foo\\'\"\n"
17093 "\n"
17094 msgstr ""
17095
17096 # type: =head1
17097 #: ../fish/guestfish.pod:410
17098 msgid "OPTIONAL ARGUMENTS"
17099 msgstr ""
17100
17101 # type: textblock
17102 #: ../fish/guestfish.pod:412
17103 msgid ""
17104 "Some commands take optional arguments.  These arguments appear in this "
17105 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17106 msgstr ""
17107
17108 # type: verbatim
17109 #: ../fish/guestfish.pod:416
17110 #, no-wrap
17111 msgid ""
17112 " add-drive-opts filename\n"
17113 "\n"
17114 msgstr ""
17115
17116 # type: verbatim
17117 #: ../fish/guestfish.pod:418
17118 #, no-wrap
17119 msgid ""
17120 " add-drive-opts filename readonly:true\n"
17121 "\n"
17122 msgstr ""
17123
17124 # type: verbatim
17125 #: ../fish/guestfish.pod:420
17126 #, no-wrap
17127 msgid ""
17128 " add-drive-opts filename format:qcow2 readonly:false\n"
17129 "\n"
17130 msgstr ""
17131
17132 # type: textblock
17133 #: ../fish/guestfish.pod:422
17134 msgid ""
17135 "Each optional argument can appear at most once.  All optional arguments must "
17136 "appear after the required ones."
17137 msgstr ""
17138
17139 # type: =head1
17140 #: ../fish/guestfish.pod:425
17141 msgid "NUMBERS"
17142 msgstr ""
17143
17144 # type: textblock
17145 #: ../fish/guestfish.pod:427
17146 msgid ""
17147 "This section applies to all commands which can take integers as parameters."
17148 msgstr ""
17149
17150 # type: =head2
17151 #: ../fish/guestfish.pod:430
17152 msgid "SIZE SUFFIX"
17153 msgstr ""
17154
17155 # type: textblock
17156 #: ../fish/guestfish.pod:432
17157 msgid ""
17158 "When the command takes a parameter measured in bytes, you can use one of the "
17159 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17160 msgstr ""
17161
17162 # type: =item
17163 #: ../fish/guestfish.pod:438
17164 msgid "B<k> or B<K> or B<KiB>"
17165 msgstr ""
17166
17167 # type: textblock
17168 #: ../fish/guestfish.pod:440
17169 msgid "The size in kilobytes (multiplied by 1024)."
17170 msgstr ""
17171
17172 # type: =item
17173 #: ../fish/guestfish.pod:442
17174 msgid "B<KB>"
17175 msgstr ""
17176
17177 # type: textblock
17178 #: ../fish/guestfish.pod:444
17179 msgid "The size in SI 1000 byte units."
17180 msgstr ""
17181
17182 # type: =item
17183 #: ../fish/guestfish.pod:446
17184 msgid "B<M> or B<MiB>"
17185 msgstr ""
17186
17187 # type: textblock
17188 #: ../fish/guestfish.pod:448
17189 msgid "The size in megabytes (multiplied by 1048576)."
17190 msgstr ""
17191
17192 # type: =item
17193 #: ../fish/guestfish.pod:450
17194 msgid "B<MB>"
17195 msgstr ""
17196
17197 # type: textblock
17198 #: ../fish/guestfish.pod:452
17199 msgid "The size in SI 1000000 byte units."
17200 msgstr ""
17201
17202 # type: =item
17203 #: ../fish/guestfish.pod:454
17204 msgid "B<G> or B<GiB>"
17205 msgstr ""
17206
17207 # type: textblock
17208 #: ../fish/guestfish.pod:456
17209 msgid "The size in gigabytes (multiplied by 2**30)."
17210 msgstr ""
17211
17212 # type: =item
17213 #: ../fish/guestfish.pod:458
17214 msgid "B<GB>"
17215 msgstr ""
17216
17217 # type: textblock
17218 #: ../fish/guestfish.pod:460
17219 msgid "The size in SI 10**9 byte units."
17220 msgstr ""
17221
17222 # type: =item
17223 #: ../fish/guestfish.pod:462
17224 msgid "B<T> or B<TiB>"
17225 msgstr ""
17226
17227 # type: textblock
17228 #: ../fish/guestfish.pod:464
17229 msgid "The size in terabytes (multiplied by 2**40)."
17230 msgstr ""
17231
17232 # type: =item
17233 #: ../fish/guestfish.pod:466
17234 msgid "B<TB>"
17235 msgstr ""
17236
17237 # type: textblock
17238 #: ../fish/guestfish.pod:468
17239 msgid "The size in SI 10**12 byte units."
17240 msgstr ""
17241
17242 # type: =item
17243 #: ../fish/guestfish.pod:470
17244 msgid "B<P> or B<PiB>"
17245 msgstr ""
17246
17247 # type: textblock
17248 #: ../fish/guestfish.pod:472
17249 msgid "The size in petabytes (multiplied by 2**50)."
17250 msgstr ""
17251
17252 # type: =item
17253 #: ../fish/guestfish.pod:474
17254 msgid "B<PB>"
17255 msgstr ""
17256
17257 # type: textblock
17258 #: ../fish/guestfish.pod:476
17259 msgid "The size in SI 10**15 byte units."
17260 msgstr ""
17261
17262 # type: =item
17263 #: ../fish/guestfish.pod:478
17264 msgid "B<E> or B<EiB>"
17265 msgstr ""
17266
17267 # type: textblock
17268 #: ../fish/guestfish.pod:480
17269 msgid "The size in exabytes (multiplied by 2**60)."
17270 msgstr ""
17271
17272 # type: =item
17273 #: ../fish/guestfish.pod:482
17274 msgid "B<EB>"
17275 msgstr ""
17276
17277 # type: textblock
17278 #: ../fish/guestfish.pod:484
17279 msgid "The size in SI 10**18 byte units."
17280 msgstr ""
17281
17282 # type: =item
17283 #: ../fish/guestfish.pod:486
17284 msgid "B<Z> or B<ZiB>"
17285 msgstr ""
17286
17287 # type: textblock
17288 #: ../fish/guestfish.pod:488
17289 msgid "The size in zettabytes (multiplied by 2**70)."
17290 msgstr ""
17291
17292 # type: =item
17293 #: ../fish/guestfish.pod:490
17294 msgid "B<ZB>"
17295 msgstr ""
17296
17297 # type: textblock
17298 #: ../fish/guestfish.pod:492
17299 msgid "The size in SI 10**21 byte units."
17300 msgstr ""
17301
17302 # type: =item
17303 #: ../fish/guestfish.pod:494
17304 msgid "B<Y> or B<YiB>"
17305 msgstr ""
17306
17307 # type: textblock
17308 #: ../fish/guestfish.pod:496
17309 msgid "The size in yottabytes (multiplied by 2**80)."
17310 msgstr ""
17311
17312 # type: =item
17313 #: ../fish/guestfish.pod:498
17314 msgid "B<YB>"
17315 msgstr ""
17316
17317 # type: textblock
17318 #: ../fish/guestfish.pod:500
17319 msgid "The size in SI 10**24 byte units."
17320 msgstr ""
17321
17322 # type: verbatim
17323 #: ../fish/guestfish.pod:506
17324 #, no-wrap
17325 msgid ""
17326 " truncate-size /file 1G\n"
17327 "\n"
17328 msgstr ""
17329
17330 # type: textblock
17331 #: ../fish/guestfish.pod:508
17332 msgid "would truncate the file to 1 gigabyte."
17333 msgstr ""
17334
17335 # type: textblock
17336 #: ../fish/guestfish.pod:510
17337 msgid ""
17338 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17339 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17340 "suffix will probably not do what you expect."
17341 msgstr ""
17342
17343 # type: =head2
17344 #: ../fish/guestfish.pod:514
17345 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17346 msgstr ""
17347
17348 # type: textblock
17349 #: ../fish/guestfish.pod:516
17350 msgid ""
17351 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17352 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17353 msgstr ""
17354
17355 # type: verbatim
17356 #: ../fish/guestfish.pod:519
17357 #, no-wrap
17358 msgid ""
17359 " 1234      decimal number 1234\n"
17360 " 02322     octal number, equivalent to decimal 1234\n"
17361 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17362 "\n"
17363 msgstr ""
17364
17365 # type: textblock
17366 #: ../fish/guestfish.pod:523
17367 msgid ""
17368 "When using the C<chmod> command, you almost always want to specify an octal "
17369 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17370 "L<chmod(1)> program):"
17371 msgstr ""
17372
17373 # type: verbatim
17374 #: ../fish/guestfish.pod:527
17375 #, no-wrap
17376 msgid ""
17377 " chmod 0777 /public  # OK\n"
17378 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17379 "\n"
17380 msgstr ""
17381
17382 # type: textblock
17383 #: ../fish/guestfish.pod:530
17384 msgid ""
17385 "Commands that return numbers usually print them in decimal, but some "
17386 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17387 "octal, preceeded by C<0>)."
17388 msgstr ""
17389
17390 # type: =head1
17391 #: ../fish/guestfish.pod:534
17392 msgid "WILDCARDS AND GLOBBING"
17393 msgstr ""
17394
17395 # type: textblock
17396 #: ../fish/guestfish.pod:536
17397 msgid ""
17398 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17399 "(globbing) by default.  So for example the following will not do what you "
17400 "expect:"
17401 msgstr ""
17402
17403 # type: verbatim
17404 #: ../fish/guestfish.pod:540
17405 #, no-wrap
17406 msgid ""
17407 " rm-rf /home/*\n"
17408 "\n"
17409 msgstr ""
17410
17411 # type: textblock
17412 #: ../fish/guestfish.pod:542
17413 msgid ""
17414 "Assuming you don't have a directory called literally C</home/*> then the "
17415 "above command will return an error."
17416 msgstr ""
17417
17418 # type: textblock
17419 #: ../fish/guestfish.pod:545
17420 msgid "To perform wildcard expansion, use the C<glob> command."
17421 msgstr ""
17422
17423 # type: verbatim
17424 #: ../fish/guestfish.pod:547
17425 #, no-wrap
17426 msgid ""
17427 " glob rm-rf /home/*\n"
17428 "\n"
17429 msgstr ""
17430
17431 # type: textblock
17432 #: ../fish/guestfish.pod:549
17433 msgid ""
17434 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17435 "many times), equivalent to:"
17436 msgstr ""
17437
17438 # type: verbatim
17439 #: ../fish/guestfish.pod:552
17440 #, no-wrap
17441 msgid ""
17442 " rm-rf /home/jim\n"
17443 " rm-rf /home/joe\n"
17444 " rm-rf /home/mary\n"
17445 "\n"
17446 msgstr ""
17447
17448 # type: textblock
17449 #: ../fish/guestfish.pod:556
17450 msgid "C<glob> only works on simple guest paths and not on device names."
17451 msgstr ""
17452
17453 # type: textblock
17454 #: ../fish/guestfish.pod:558
17455 msgid ""
17456 "If you have several parameters, each containing a wildcard, then glob will "
17457 "perform a Cartesian product."
17458 msgstr ""
17459
17460 # type: =head1
17461 #: ../fish/guestfish.pod:561
17462 msgid "COMMENTS"
17463 msgstr ""
17464
17465 # type: textblock
17466 #: ../fish/guestfish.pod:563
17467 msgid ""
17468 "Any line which starts with a I<#> character is treated as a comment and "
17469 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17470 "a command.  For example:"
17471 msgstr ""
17472
17473 # type: verbatim
17474 #: ../fish/guestfish.pod:567
17475 #, no-wrap
17476 msgid ""
17477 " # this is a comment\n"
17478 "         # this is a comment\n"
17479 " foo # NOT a comment\n"
17480 "\n"
17481 msgstr ""
17482
17483 # type: textblock
17484 #: ../fish/guestfish.pod:571
17485 msgid "Blank lines are also ignored."
17486 msgstr ""
17487
17488 # type: =head1
17489 #: ../fish/guestfish.pod:573
17490 msgid "RUNNING COMMANDS LOCALLY"
17491 msgstr ""
17492
17493 # type: textblock
17494 #: ../fish/guestfish.pod:575
17495 msgid ""
17496 "Any line which starts with a I<!> character is treated as a command sent to "
17497 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17498 msgstr ""
17499
17500 # type: verbatim
17501 #: ../fish/guestfish.pod:579
17502 #, no-wrap
17503 msgid ""
17504 " !mkdir local\n"
17505 " tgz-out /remote local/remote-data.tar.gz\n"
17506 "\n"
17507 msgstr ""
17508
17509 # type: textblock
17510 #: ../fish/guestfish.pod:582
17511 msgid ""
17512 "will create a directory C<local> on the host, and then export the contents "
17513 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17514 "(See C<tgz-out>)."
17515 msgstr ""
17516
17517 # type: textblock
17518 #: ../fish/guestfish.pod:586
17519 msgid ""
17520 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17521 "effect, due to the way that subprocesses work in Unix."
17522 msgstr ""
17523
17524 # type: =head1
17525 #: ../fish/guestfish.pod:589
17526 msgid "PIPES"
17527 msgstr ""
17528
17529 # type: textblock
17530 #: ../fish/guestfish.pod:591
17531 msgid ""
17532 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17533 "command (a guestfish command) to the second command (any host command).  For "
17534 "example:"
17535 msgstr ""
17536
17537 # type: verbatim
17538 #: ../fish/guestfish.pod:595
17539 #, no-wrap
17540 msgid ""
17541 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17542 "\n"
17543 msgstr ""
17544
17545 # type: textblock
17546 #: ../fish/guestfish.pod:597
17547 msgid ""
17548 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17549 "program).  The above command would list all accounts in the guest filesystem "
17550 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17551 msgstr ""
17552
17553 # type: verbatim
17554 #: ../fish/guestfish.pod:602
17555 #, no-wrap
17556 msgid ""
17557 " hexdump /bin/ls | head\n"
17558 " list-devices | tail -1\n"
17559 " tgz-out / - | tar ztf -\n"
17560 "\n"
17561 msgstr ""
17562
17563 # type: textblock
17564 #: ../fish/guestfish.pod:606
17565 msgid ""
17566 "The space before the pipe symbol is required, any space after the pipe "
17567 "symbol is optional.  Everything after the pipe symbol is just passed "
17568 "straight to the host shell, so it can contain redirections, globs and "
17569 "anything else that makes sense on the host side."
17570 msgstr ""
17571
17572 # type: textblock
17573 #: ../fish/guestfish.pod:611
17574 msgid ""
17575 "To use a literal argument which begins with a pipe symbol, you have to quote "
17576 "it, eg:"
17577 msgstr ""
17578
17579 # type: verbatim
17580 #: ../fish/guestfish.pod:614
17581 #, no-wrap
17582 msgid ""
17583 " echo \"|\"\n"
17584 "\n"
17585 msgstr ""
17586
17587 # type: =head1
17588 #: ../fish/guestfish.pod:616
17589 msgid "HOME DIRECTORIES"
17590 msgstr ""
17591
17592 # type: textblock
17593 #: ../fish/guestfish.pod:618
17594 msgid ""
17595 "If a parameter starts with the character C<~> then the tilde may be expanded "
17596 "as a home directory path (either C<~> for the current user's home directory, "
17597 "or C<~user> for another user)."
17598 msgstr ""
17599
17600 # type: textblock
17601 #: ../fish/guestfish.pod:622
17602 msgid ""
17603 "Note that home directory expansion happens for users known I<on the host>, "
17604 "not in the guest filesystem."
17605 msgstr ""
17606
17607 # type: textblock
17608 #: ../fish/guestfish.pod:625
17609 msgid ""
17610 "To use a literal argument which begins with a tilde, you have to quote it, "
17611 "eg:"
17612 msgstr ""
17613
17614 # type: verbatim
17615 #: ../fish/guestfish.pod:628
17616 #, no-wrap
17617 msgid ""
17618 " echo \"~\"\n"
17619 "\n"
17620 msgstr ""
17621
17622 # type: textblock
17623 #: ../fish/guestfish.pod:632
17624 msgid ""
17625 "Libguestfs has some support for Linux guests encrypted according to the "
17626 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17627 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17628 "LUKS is supported."
17629 msgstr ""
17630
17631 # type: textblock
17632 #: ../fish/guestfish.pod:637
17633 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17634 msgstr ""
17635
17636 # type: verbatim
17637 #: ../fish/guestfish.pod:639
17638 #, no-wrap
17639 msgid ""
17640 " ><fs> vfs-type /dev/sda2\n"
17641 " crypto_LUKS\n"
17642 "\n"
17643 msgstr ""
17644
17645 # type: textblock
17646 #: ../fish/guestfish.pod:642
17647 msgid ""
17648 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17649 "device called C</dev/mapper/luksdev>."
17650 msgstr ""
17651
17652 # type: verbatim
17653 #: ../fish/guestfish.pod:645
17654 #, no-wrap
17655 msgid ""
17656 " ><fs> luks-open /dev/sda2 luksdev\n"
17657 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17658 "\n"
17659 msgstr ""
17660
17661 # type: textblock
17662 #: ../fish/guestfish.pod:648
17663 msgid ""
17664 "Finally you have to tell LVM to scan for volume groups on the newly created "
17665 "mapper device:"
17666 msgstr ""
17667
17668 # type: verbatim
17669 #: ../fish/guestfish.pod:651
17670 #, no-wrap
17671 msgid ""
17672 " vgscan\n"
17673 " vg-activate-all true\n"
17674 "\n"
17675 msgstr ""
17676
17677 # type: textblock
17678 #: ../fish/guestfish.pod:654
17679 msgid "The logical volume(s) can now be mounted in the usual way."
17680 msgstr ""
17681
17682 # type: textblock
17683 #: ../fish/guestfish.pod:656
17684 msgid ""
17685 "Before closing a LUKS device you must unmount any logical volumes on it and "
17686 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17687 "one.  Then you can close the mapper device:"
17688 msgstr ""
17689
17690 # type: verbatim
17691 #: ../fish/guestfish.pod:660
17692 #, no-wrap
17693 msgid ""
17694 " vg-activate false /dev/VG\n"
17695 " luks-close /dev/mapper/luksdev\n"
17696 "\n"
17697 msgstr ""
17698
17699 # type: =head1
17700 #: ../fish/guestfish.pod:663
17701 msgid "WINDOWS PATHS"
17702 msgstr ""
17703
17704 # type: textblock
17705 #: ../fish/guestfish.pod:665
17706 msgid ""
17707 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17708 "(with some limitations).  The following commands are equivalent:"
17709 msgstr ""
17710
17711 # type: verbatim
17712 #: ../fish/guestfish.pod:668
17713 #, no-wrap
17714 msgid ""
17715 " file /WINDOWS/system32/config/system.LOG\n"
17716 "\n"
17717 msgstr ""
17718
17719 # type: verbatim
17720 #: ../fish/guestfish.pod:670
17721 #, no-wrap
17722 msgid ""
17723 " file win:/windows/system32/config/system.log\n"
17724 "\n"
17725 msgstr ""
17726
17727 # type: verbatim
17728 #: ../fish/guestfish.pod:672
17729 #, no-wrap
17730 msgid ""
17731 " file win:\\windows\\system32\\config\\system.log\n"
17732 "\n"
17733 msgstr ""
17734
17735 # type: verbatim
17736 #: ../fish/guestfish.pod:674
17737 #, no-wrap
17738 msgid ""
17739 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17740 "\n"
17741 msgstr ""
17742
17743 # type: textblock
17744 #: ../fish/guestfish.pod:676
17745 msgid ""
17746 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17747 "handles case insensitivity like Windows would.  This only works in argument "
17748 "positions that expect a path."
17749 msgstr ""
17750
17751 # type: =head1
17752 #: ../fish/guestfish.pod:680
17753 msgid "UPLOADING AND DOWNLOADING FILES"
17754 msgstr ""
17755
17756 # type: textblock
17757 #: ../fish/guestfish.pod:682
17758 msgid ""
17759 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17760 "others which upload from or download to a local file, you can use the "
17761 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17762 msgstr ""
17763
17764 # type: verbatim
17765 #: ../fish/guestfish.pod:686
17766 #, no-wrap
17767 msgid ""
17768 " upload - /foo\n"
17769 "\n"
17770 msgstr ""
17771
17772 # type: textblock
17773 #: ../fish/guestfish.pod:688
17774 msgid ""
17775 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17776 msgstr ""
17777
17778 # type: verbatim
17779 #: ../fish/guestfish.pod:691
17780 #, no-wrap
17781 msgid ""
17782 " tar-out /etc - | tar tf -\n"
17783 "\n"
17784 msgstr ""
17785
17786 # type: textblock
17787 #: ../fish/guestfish.pod:693
17788 msgid ""
17789 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17790 "command (see L</PIPES>)."
17791 msgstr ""
17792
17793 # type: textblock
17794 #: ../fish/guestfish.pod:696
17795 msgid ""
17796 "When using C<-> to read from stdin, the input is read up to the end of "
17797 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17798 "some arbitrary end marker:"
17799 msgstr ""
17800
17801 # type: verbatim
17802 #: ../fish/guestfish.pod:700
17803 #, no-wrap
17804 msgid ""
17805 " upload -<<END /foo\n"
17806 " input line 1\n"
17807 " input line 2\n"
17808 " input line 3\n"
17809 " END\n"
17810 "\n"
17811 msgstr ""
17812
17813 # type: textblock
17814 #: ../fish/guestfish.pod:706
17815 msgid ""
17816 "Any string of characters can be used instead of C<END>.  The end marker must "
17817 "appear on a line of its own, without any preceeding or following characters "
17818 "(not even spaces)."
17819 msgstr ""
17820
17821 # type: textblock
17822 #: ../fish/guestfish.pod:710
17823 msgid ""
17824 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17825 "upload local files (so-called \"FileIn\" parameters in the generator)."
17826 msgstr ""
17827
17828 # type: =head1
17829 #: ../fish/guestfish.pod:713
17830 msgid "EXIT ON ERROR BEHAVIOUR"
17831 msgstr ""
17832
17833 # type: textblock
17834 #: ../fish/guestfish.pod:715
17835 msgid ""
17836 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17837 "taking commands from a human over a tty), and will exit on the first error "
17838 "in non-interactive mode (scripts, commands given on the command line)."
17839 msgstr ""
17840
17841 # type: textblock
17842 #: ../fish/guestfish.pod:720
17843 msgid ""
17844 "If you prefix a command with a I<-> character, then that command will not "
17845 "cause guestfish to exit, even if that (one) command returns an error."
17846 msgstr ""
17847
17848 # type: =head1
17849 #: ../fish/guestfish.pod:724
17850 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17851 msgstr ""
17852
17853 # type: textblock
17854 #: ../fish/guestfish.pod:726
17855 msgid ""
17856 "Guestfish can be remote-controlled over a socket.  This is useful "
17857 "particularly in shell scripts where you want to make several different "
17858 "changes to a filesystem, but you don't want the overhead of starting up a "
17859 "guestfish process each time."
17860 msgstr ""
17861
17862 # type: textblock
17863 #: ../fish/guestfish.pod:731
17864 msgid "Start a guestfish server process using:"
17865 msgstr ""
17866
17867 # type: verbatim
17868 #: ../fish/guestfish.pod:733
17869 #, no-wrap
17870 msgid ""
17871 " eval `guestfish --listen`\n"
17872 "\n"
17873 msgstr ""
17874
17875 # type: textblock
17876 #: ../fish/guestfish.pod:735
17877 msgid "and then send it commands by doing:"
17878 msgstr ""
17879
17880 # type: verbatim
17881 #: ../fish/guestfish.pod:737
17882 #, no-wrap
17883 msgid ""
17884 " guestfish --remote cmd [...]\n"
17885 "\n"
17886 msgstr ""
17887
17888 # type: textblock
17889 #: ../fish/guestfish.pod:739
17890 msgid "To cause the server to exit, send it the exit command:"
17891 msgstr ""
17892
17893 # type: verbatim
17894 #: ../fish/guestfish.pod:741
17895 #, no-wrap
17896 msgid ""
17897 " guestfish --remote exit\n"
17898 "\n"
17899 msgstr ""
17900
17901 # type: textblock
17902 #: ../fish/guestfish.pod:743
17903 msgid ""
17904 "Note that the server will normally exit if there is an error in a command.  "
17905 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17906 "BEHAVIOUR>."
17907 msgstr ""
17908
17909 # type: =head2
17910 #: ../fish/guestfish.pod:747
17911 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17912 msgstr ""
17913
17914 # type: textblock
17915 #: ../fish/guestfish.pod:749
17916 msgid ""
17917 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17918 "is how the I<--remote> option knows where to send the commands.  You can "
17919 "have several guestfish listener processes running using:"
17920 msgstr ""
17921
17922 # type: verbatim
17923 #: ../fish/guestfish.pod:753
17924 #, no-wrap
17925 msgid ""
17926 " eval `guestfish --listen`\n"
17927 " pid1=$GUESTFISH_PID\n"
17928 " eval `guestfish --listen`\n"
17929 " pid2=$GUESTFISH_PID\n"
17930 " ...\n"
17931 " guestfish --remote=$pid1 cmd\n"
17932 " guestfish --remote=$pid2 cmd\n"
17933 "\n"
17934 msgstr ""
17935
17936 # type: =head2
17937 #: ../fish/guestfish.pod:761
17938 msgid "REMOTE CONTROL DETAILS"
17939 msgstr ""
17940
17941 # type: textblock
17942 #: ../fish/guestfish.pod:763
17943 msgid ""
17944 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
17945 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
17946 "and C<$PID> is the process ID of the server."
17947 msgstr ""
17948
17949 # type: textblock
17950 #: ../fish/guestfish.pod:767
17951 msgid "Guestfish client and server versions must match exactly."
17952 msgstr ""
17953
17954 # type: =head1
17955 #: ../fish/guestfish.pod:769
17956 msgid "PREPARED DISK IMAGES"
17957 msgstr ""
17958
17959 # type: textblock
17960 #: ../fish/guestfish.pod:771
17961 msgid ""
17962 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17963 "preformatted disk images that guestfish can make for you to save typing.  "
17964 "This is particularly useful for testing purposes.  This option is used "
17965 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17966 "can be mixed with I<-a>)."
17967 msgstr ""
17968
17969 # type: textblock
17970 #: ../fish/guestfish.pod:777
17971 msgid ""
17972 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17973 "the second and so on.  Existing files in the current directory are "
17974 "I<overwritten>."
17975 msgstr ""
17976
17977 # type: textblock
17978 #: ../fish/guestfish.pod:781
17979 msgid ""
17980 "The type briefly describes how the disk should be sized, partitioned, how "
17981 "filesystem(s) should be created, and how content should be added.  "
17982 "Optionally the type can be followed by extra parameters, separated by C<:> "
17983 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
17984 "allocated disk, containing a single partition, with the partition formatted "
17985 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
17986 "disk instead."
17987 msgstr ""
17988
17989 # type: textblock
17990 #: ../fish/guestfish.pod:789
17991 msgid "To list the available types and any extra parameters they take, run:"
17992 msgstr ""
17993
17994 # type: textblock
17995 #: ../fish/guestfish.pod:793
17996 msgid ""
17997 "Note that the prepared filesystem is not mounted.  You would usually have to "
17998 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17999 msgstr ""
18000
18001 # type: textblock
18002 #: ../fish/guestfish.pod:797
18003 msgid ""
18004 "If any I<-N> or I<--new> options are given, the guest is automatically "
18005 "launched."
18006 msgstr ""
18007
18008 # type: textblock
18009 #: ../fish/guestfish.pod:802
18010 msgid "Create a 100MB disk with an ext4-formatted partition:"
18011 msgstr ""
18012
18013 # type: verbatim
18014 #: ../fish/guestfish.pod:804
18015 #, no-wrap
18016 msgid ""
18017 " guestfish -N fs:ext4\n"
18018 "\n"
18019 msgstr ""
18020
18021 # type: textblock
18022 #: ../fish/guestfish.pod:806
18023 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18024 msgstr ""
18025
18026 # type: verbatim
18027 #: ../fish/guestfish.pod:808
18028 #, no-wrap
18029 msgid ""
18030 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18031 "\n"
18032 msgstr ""
18033
18034 # type: textblock
18035 #: ../fish/guestfish.pod:810
18036 msgid "Create a blank 200MB disk:"
18037 msgstr ""
18038
18039 # type: verbatim
18040 #: ../fish/guestfish.pod:812
18041 #, no-wrap
18042 msgid ""
18043 " guestfish -N disk:200M\n"
18044 "\n"
18045 msgstr ""
18046
18047 # type: =head1
18048 #: ../fish/guestfish.pod:814
18049 msgid "PROGRESS BARS"
18050 msgstr ""
18051
18052 # type: textblock
18053 #: ../fish/guestfish.pod:816
18054 msgid ""
18055 "Some (not all) long-running commands send progress notification messages as "
18056 "they are running.  Guestfish turns these messages into progress bars."
18057 msgstr ""
18058
18059 # type: textblock
18060 #: ../fish/guestfish.pod:820
18061 msgid ""
18062 "When a command that supports progress bars takes longer than two seconds to "
18063 "run, and if progress bars are enabled, then you will see one appearing below "
18064 "the command:"
18065 msgstr ""
18066
18067 # type: verbatim
18068 #: ../fish/guestfish.pod:824
18069 #, no-wrap
18070 msgid ""
18071 " ><fs> copy-size /large-file /another-file 2048M\n"
18072 " / 10% [#####-----------------------------------------] 00:30\n"
18073 "\n"
18074 msgstr ""
18075
18076 # type: textblock
18077 #: ../fish/guestfish.pod:827
18078 msgid ""
18079 "The spinner on the left hand side moves round once for every progress "
18080 "notification received from the backend.  This is a (reasonably) golden "
18081 "assurance that the command is \"doing something\" even if the progress bar "
18082 "is not moving, because the command is able to send the progress "
18083 "notifications.  When the bar reaches 100% and the command finishes, the "
18084 "spinner disappears."
18085 msgstr ""
18086
18087 # type: textblock
18088 #: ../fish/guestfish.pod:834
18089 msgid ""
18090 "Progress bars are enabled by default when guestfish is used interactively.  "
18091 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18092 "and you can disable them completely using I<--no-progress-bars>."
18093 msgstr ""
18094
18095 # type: =head1
18096 #: ../fish/guestfish.pod:839
18097 msgid "GUESTFISH COMMANDS"
18098 msgstr ""
18099
18100 # type: textblock
18101 #: ../fish/guestfish.pod:841
18102 msgid ""
18103 "The commands in this section are guestfish convenience commands, in other "
18104 "words, they are not part of the L<guestfs(3)> API."
18105 msgstr ""
18106
18107 # type: =head2
18108 #: ../fish/guestfish.pod:844
18109 msgid "help"
18110 msgstr ""
18111
18112 # type: verbatim
18113 #: ../fish/guestfish.pod:846
18114 #, no-wrap
18115 msgid ""
18116 " help\n"
18117 " help cmd\n"
18118 "\n"
18119 msgstr ""
18120
18121 # type: textblock
18122 #: ../fish/guestfish.pod:849
18123 msgid "Without any parameter, this provides general help."
18124 msgstr ""
18125
18126 # type: textblock
18127 #: ../fish/guestfish.pod:851
18128 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18129 msgstr ""
18130
18131 # type: =head2
18132 #: ../fish/guestfish.pod:853
18133 msgid "quit | exit"
18134 msgstr ""
18135
18136 # type: textblock
18137 #: ../fish/guestfish.pod:855
18138 msgid "This exits guestfish.  You can also use C<^D> key."
18139 msgstr ""
18140
18141 # type: textblock
18142 #: ../fish/guestfish.pod:857
18143 msgid "@FISH_COMMANDS@"
18144 msgstr ""
18145
18146 # type: =head1
18147 #: ../fish/guestfish.pod:859
18148 msgid "COMMANDS"
18149 msgstr ""
18150
18151 # type: =head1
18152 #: ../fish/guestfish.pod:863 ../test-tool/libguestfs-test-tool.pod:83
18153 msgid "EXIT CODE"
18154 msgstr ""
18155
18156 # type: textblock
18157 #: ../fish/guestfish.pod:865
18158 msgid ""
18159 "guestfish returns 0 if the commands completed without error, or 1 if there "
18160 "was an error."
18161 msgstr ""
18162
18163 # type: =item
18164 #: ../fish/guestfish.pod:872
18165 msgid "EDITOR"
18166 msgstr ""
18167
18168 # type: textblock
18169 #: ../fish/guestfish.pod:874
18170 msgid ""
18171 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18172 "C<vi>."
18173 msgstr ""
18174
18175 # type: =item
18176 #: ../fish/guestfish.pod:877
18177 msgid "GUESTFISH_PID"
18178 msgstr ""
18179
18180 # type: textblock
18181 #: ../fish/guestfish.pod:879
18182 msgid ""
18183 "Used with the I<--remote> option to specify the remote guestfish process to "
18184 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18185 msgstr ""
18186
18187 # type: =item
18188 #: ../fish/guestfish.pod:883
18189 msgid "HEXEDITOR"
18190 msgstr ""
18191
18192 # type: textblock
18193 #: ../fish/guestfish.pod:885
18194 msgid ""
18195 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18196 "not specified, the external L<hexedit(1)> program is used."
18197 msgstr ""
18198
18199 # type: =item
18200 #: ../fish/guestfish.pod:889
18201 msgid "HOME"
18202 msgstr ""
18203
18204 # type: textblock
18205 #: ../fish/guestfish.pod:891
18206 msgid ""
18207 "If compiled with GNU readline support, various files in the home directory "
18208 "can be used.  See L</FILES>."
18209 msgstr ""
18210
18211 # type: textblock
18212 #: ../fish/guestfish.pod:900
18213 msgid ""
18214 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18215 "effect as using the B<-v> option."
18216 msgstr ""
18217
18218 # type: textblock
18219 #: ../fish/guestfish.pod:912
18220 msgid ""
18221 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18222 "the discussion of paths in L<guestfs(3)>."
18223 msgstr ""
18224
18225 # type: textblock
18226 #: ../fish/guestfish.pod:923
18227 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18228 msgstr ""
18229
18230 # type: =item
18231 #: ../fish/guestfish.pod:925
18232 msgid "PAGER"
18233 msgstr ""
18234
18235 # type: textblock
18236 #: ../fish/guestfish.pod:927
18237 msgid ""
18238 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18239 "C<more>."
18240 msgstr ""
18241
18242 # type: =head1
18243 #: ../fish/guestfish.pod:942 ../test-tool/libguestfs-test-tool.pod:88
18244 msgid "FILES"
18245 msgstr ""
18246
18247 # type: =item
18248 #: ../fish/guestfish.pod:946
18249 msgid "$HOME/.guestfish"
18250 msgstr ""
18251
18252 # type: textblock
18253 #: ../fish/guestfish.pod:948
18254 msgid ""
18255 "If compiled with GNU readline support, then the command history is saved in "
18256 "this file."
18257 msgstr ""
18258
18259 # type: =item
18260 #: ../fish/guestfish.pod:951
18261 msgid "$HOME/.inputrc"
18262 msgstr ""
18263
18264 # type: =item
18265 #: ../fish/guestfish.pod:953
18266 msgid "/etc/inputrc"
18267 msgstr ""
18268
18269 # type: textblock
18270 #: ../fish/guestfish.pod:955
18271 msgid ""
18272 "If compiled with GNU readline support, then these files can be used to "
18273 "configure readline.  For further information, please see L<readline(3)/"
18274 "INITIALIZATION FILE>."
18275 msgstr ""
18276
18277 # type: textblock
18278 #: ../fish/guestfish.pod:959
18279 msgid "To write rules which only apply to guestfish, use:"
18280 msgstr ""
18281
18282 # type: verbatim
18283 #: ../fish/guestfish.pod:961
18284 #, no-wrap
18285 msgid ""
18286 " $if guestfish\n"
18287 " ...\n"
18288 " $endif\n"
18289 "\n"
18290 msgstr ""
18291
18292 # type: textblock
18293 #: ../fish/guestfish.pod:965
18294 msgid ""
18295 "Variables that you can set in inputrc that change the behaviour of guestfish "
18296 "in useful ways include:"
18297 msgstr ""
18298
18299 # type: =item
18300 #: ../fish/guestfish.pod:970
18301 msgid "completion-ignore-case (default: on)"
18302 msgstr ""
18303
18304 # type: textblock
18305 #: ../fish/guestfish.pod:972
18306 msgid ""
18307 "By default, guestfish will ignore case when tab-completing paths on the "
18308 "disk.  Use:"
18309 msgstr ""
18310
18311 # type: verbatim
18312 #: ../fish/guestfish.pod:975
18313 #, no-wrap
18314 msgid ""
18315 " set completion-ignore-case off\n"
18316 "\n"
18317 msgstr ""
18318
18319 # type: textblock
18320 #: ../fish/guestfish.pod:977
18321 msgid "to make guestfish case sensitive."
18322 msgstr ""
18323
18324 # type: =item
18325 #: ../fish/guestfish.pod:981
18326 msgid "test1.img"
18327 msgstr ""
18328
18329 # type: =item
18330 #: ../fish/guestfish.pod:983
18331 msgid "test2.img (etc)"
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish.pod:985
18336 msgid ""
18337 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18338 "will be created in the file C<test1.img> in the current directory.  The "
18339 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18340 "the same name will be overwritten."
18341 msgstr ""
18342
18343 # type: textblock
18344 #: ../fish/guestfish.pod:994
18345 msgid ""
18346 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18347 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
18348 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18349 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
18350 msgstr ""
18351
18352 # type: textblock
18353 #: ../fish/guestfish.pod:1018 ../test-tool/libguestfs-test-tool.pod:124
18354 #: ../fuse/guestmount.pod:246 ../inspector/virt-inspector.pl:598
18355 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
18356 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
18357 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
18358 #: ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300
18359 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
18360 #: ../tools/virt-list-partitions.pl:273
18361 msgid ""
18362 "This program is free software; you can redistribute it and/or modify it "
18363 "under the terms of the GNU General Public License as published by the Free "
18364 "Software Foundation; either version 2 of the License, or (at your option) "
18365 "any later version."
18366 msgstr ""
18367
18368 # type: textblock
18369 #: ../fish/guestfish.pod:1023 ../test-tool/libguestfs-test-tool.pod:129
18370 #: ../fuse/guestmount.pod:251 ../inspector/virt-inspector.pl:603
18371 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
18372 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
18373 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
18374 #: ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305
18375 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
18376 #: ../tools/virt-list-partitions.pl:278
18377 msgid ""
18378 "This program is distributed in the hope that it will be useful, but WITHOUT "
18379 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18380 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18381 "more details."
18382 msgstr ""
18383
18384 # type: textblock
18385 #: ../fish/guestfish.pod:1028 ../test-tool/libguestfs-test-tool.pod:134
18386 #: ../fuse/guestmount.pod:256 ../inspector/virt-inspector.pl:608
18387 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
18388 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
18389 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
18390 #: ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310
18391 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
18392 #: ../tools/virt-list-partitions.pl:283
18393 msgid ""
18394 "You should have received a copy of the GNU General Public License along with "
18395 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18396 "Ave, Cambridge, MA 02139, USA."
18397 msgstr ""
18398
18399 # type: =head2
18400 #: ../fish/guestfish-actions.pod:1
18401 msgid "add-cdrom"
18402 msgstr ""
18403
18404 # type: verbatim
18405 #: ../fish/guestfish-actions.pod:3
18406 #, no-wrap
18407 msgid ""
18408 " add-cdrom filename\n"
18409 "\n"
18410 msgstr ""
18411
18412 # type: textblock
18413 #: ../fish/guestfish-actions.pod:15
18414 msgid ""
18415 "This call checks for the existence of C<filename>.  This stops you from "
18416 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18417 "and C<http:> URLs.  To specify those, use the general L</config> call "
18418 "instead."
18419 msgstr ""
18420
18421 # type: textblock
18422 #: ../fish/guestfish-actions.pod:22
18423 msgid ""
18424 "If you just want to add an ISO file (often you use this as an efficient way "
18425 "to transfer large files into the guest), then you should probably use L</add-"
18426 "drive-ro> instead."
18427 msgstr ""
18428
18429 # type: =head2
18430 #: ../fish/guestfish-actions.pod:35
18431 msgid "add-drive"
18432 msgstr ""
18433
18434 # type: verbatim
18435 #: ../fish/guestfish-actions.pod:37
18436 #, no-wrap
18437 msgid ""
18438 " add-drive filename\n"
18439 "\n"
18440 msgstr ""
18441
18442 # type: textblock
18443 #: ../fish/guestfish-actions.pod:39
18444 msgid ""
18445 "This function is the equivalent of calling L</add-drive-opts> with no "
18446 "optional parameters, so the disk is added writable, with the format being "
18447 "detected automatically."
18448 msgstr ""
18449
18450 # type: textblock
18451 #: ../fish/guestfish-actions.pod:43
18452 msgid ""
18453 "Automatic detection of the format opens you up to a potential security hole "
18454 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18455 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18456 "you should think about replacing calls to this function with calls to L</add-"
18457 "drive-opts>, and specifying the format."
18458 msgstr ""
18459
18460 # type: =head2
18461 #: ../fish/guestfish-actions.pod:50
18462 msgid "add-drive-opts"
18463 msgstr ""
18464
18465 # type: =head2
18466 #: ../fish/guestfish-actions.pod:52
18467 msgid "add"
18468 msgstr ""
18469
18470 # type: verbatim
18471 #: ../fish/guestfish-actions.pod:54
18472 #, no-wrap
18473 msgid ""
18474 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18475 "\n"
18476 msgstr ""
18477
18478 # type: textblock
18479 #: ../fish/guestfish-actions.pod:81
18480 msgid ""
18481 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
18482 "add-drive-ro>) then the format is automatically detected.  Possible formats "
18483 "include C<raw> and C<qcow2>."
18484 msgstr ""
18485
18486 # type: textblock
18487 #: ../fish/guestfish-actions.pod:92
18488 msgid ""
18489 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
18490 "add-drive-with-if> call (q.v.)"
18491 msgstr ""
18492
18493 # type: textblock
18494 #: ../fish/guestfish-actions.pod:97
18495 msgid ""
18496 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
18497 msgstr ""
18498
18499 # type: =head2
18500 #: ../fish/guestfish-actions.pod:99
18501 msgid "add-drive-ro"
18502 msgstr ""
18503
18504 # type: =head2
18505 #: ../fish/guestfish-actions.pod:101
18506 msgid "add-ro"
18507 msgstr ""
18508
18509 # type: verbatim
18510 #: ../fish/guestfish-actions.pod:103
18511 #, no-wrap
18512 msgid ""
18513 " add-drive-ro filename\n"
18514 "\n"
18515 msgstr ""
18516
18517 # type: textblock
18518 #: ../fish/guestfish-actions.pod:105
18519 msgid ""
18520 "This function is the equivalent of calling L</add-drive-opts> with the "
18521 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18522 "is added read-only, with the format being detected automatically."
18523 msgstr ""
18524
18525 # type: =head2
18526 #: ../fish/guestfish-actions.pod:110
18527 msgid "add-drive-ro-with-if"
18528 msgstr ""
18529
18530 # type: verbatim
18531 #: ../fish/guestfish-actions.pod:112
18532 #, no-wrap
18533 msgid ""
18534 " add-drive-ro-with-if filename iface\n"
18535 "\n"
18536 msgstr ""
18537
18538 # type: textblock
18539 #: ../fish/guestfish-actions.pod:114
18540 msgid ""
18541 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18542 "interface emulation to use at run time."
18543 msgstr ""
18544
18545 # type: =head2
18546 #: ../fish/guestfish-actions.pod:124
18547 msgid "add-drive-with-if"
18548 msgstr ""
18549
18550 # type: verbatim
18551 #: ../fish/guestfish-actions.pod:126
18552 #, no-wrap
18553 msgid ""
18554 " add-drive-with-if filename iface\n"
18555 "\n"
18556 msgstr ""
18557
18558 # type: textblock
18559 #: ../fish/guestfish-actions.pod:128
18560 msgid ""
18561 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18562 "interface emulation to use at run time."
18563 msgstr ""
18564
18565 # type: =head2
18566 #: ../fish/guestfish-actions.pod:138
18567 msgid "aug-clear"
18568 msgstr ""
18569
18570 # type: verbatim
18571 #: ../fish/guestfish-actions.pod:140
18572 #, no-wrap
18573 msgid ""
18574 " aug-clear augpath\n"
18575 "\n"
18576 msgstr ""
18577
18578 # type: =head2
18579 #: ../fish/guestfish-actions.pod:145
18580 msgid "aug-close"
18581 msgstr ""
18582
18583 # type: verbatim
18584 #: ../fish/guestfish-actions.pod:147
18585 #, no-wrap
18586 msgid ""
18587 " aug-close\n"
18588 "\n"
18589 msgstr ""
18590
18591 # type: textblock
18592 #: ../fish/guestfish-actions.pod:149
18593 msgid ""
18594 "Close the current Augeas handle and free up any resources used by it.  After "
18595 "calling this, you have to call L</aug-init> again before you can use any "
18596 "other Augeas functions."
18597 msgstr ""
18598
18599 # type: =head2
18600 #: ../fish/guestfish-actions.pod:154
18601 msgid "aug-defnode"
18602 msgstr ""
18603
18604 # type: verbatim
18605 #: ../fish/guestfish-actions.pod:156
18606 #, no-wrap
18607 msgid ""
18608 " aug-defnode name expr val\n"
18609 "\n"
18610 msgstr ""
18611
18612 # type: textblock
18613 #: ../fish/guestfish-actions.pod:161
18614 msgid ""
18615 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18616 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18617 "containing that single node."
18618 msgstr ""
18619
18620 # type: =head2
18621 #: ../fish/guestfish-actions.pod:169
18622 msgid "aug-defvar"
18623 msgstr ""
18624
18625 # type: verbatim
18626 #: ../fish/guestfish-actions.pod:171
18627 #, no-wrap
18628 msgid ""
18629 " aug-defvar name expr\n"
18630 "\n"
18631 msgstr ""
18632
18633 # type: =head2
18634 #: ../fish/guestfish-actions.pod:180
18635 msgid "aug-get"
18636 msgstr ""
18637
18638 # type: verbatim
18639 #: ../fish/guestfish-actions.pod:182
18640 #, no-wrap
18641 msgid ""
18642 " aug-get augpath\n"
18643 "\n"
18644 msgstr ""
18645
18646 # type: =head2
18647 #: ../fish/guestfish-actions.pod:187
18648 msgid "aug-init"
18649 msgstr ""
18650
18651 # type: verbatim
18652 #: ../fish/guestfish-actions.pod:189
18653 #, no-wrap
18654 msgid ""
18655 " aug-init root flags\n"
18656 "\n"
18657 msgstr ""
18658
18659 # type: textblock
18660 #: ../fish/guestfish-actions.pod:195
18661 msgid "You must call this before using any other L</aug-*> commands."
18662 msgstr ""
18663
18664 # type: textblock
18665 #: ../fish/guestfish-actions.pod:230
18666 msgid "Do not load the tree in L</aug-init>."
18667 msgstr ""
18668
18669 # type: textblock
18670 #: ../fish/guestfish-actions.pod:234
18671 msgid "To close the handle, you can call L</aug-close>."
18672 msgstr ""
18673
18674 # type: =head2
18675 #: ../fish/guestfish-actions.pod:238
18676 msgid "aug-insert"
18677 msgstr ""
18678
18679 # type: verbatim
18680 #: ../fish/guestfish-actions.pod:240
18681 #, no-wrap
18682 msgid ""
18683 " aug-insert augpath label true|false\n"
18684 "\n"
18685 msgstr ""
18686
18687 # type: =head2
18688 #: ../fish/guestfish-actions.pod:250
18689 msgid "aug-load"
18690 msgstr ""
18691
18692 # type: verbatim
18693 #: ../fish/guestfish-actions.pod:252
18694 #, no-wrap
18695 msgid ""
18696 " aug-load\n"
18697 "\n"
18698 msgstr ""
18699
18700 # type: =head2
18701 #: ../fish/guestfish-actions.pod:259
18702 msgid "aug-ls"
18703 msgstr ""
18704
18705 # type: verbatim
18706 #: ../fish/guestfish-actions.pod:261
18707 #, no-wrap
18708 msgid ""
18709 " aug-ls augpath\n"
18710 "\n"
18711 msgstr ""
18712
18713 # type: textblock
18714 #: ../fish/guestfish-actions.pod:263
18715 msgid ""
18716 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
18717 "resulting nodes into alphabetical order."
18718 msgstr ""
18719
18720 # type: =head2
18721 #: ../fish/guestfish-actions.pod:266
18722 msgid "aug-match"
18723 msgstr ""
18724
18725 # type: verbatim
18726 #: ../fish/guestfish-actions.pod:268
18727 #, no-wrap
18728 msgid ""
18729 " aug-match augpath\n"
18730 "\n"
18731 msgstr ""
18732
18733 # type: =head2
18734 #: ../fish/guestfish-actions.pod:274
18735 msgid "aug-mv"
18736 msgstr ""
18737
18738 # type: verbatim
18739 #: ../fish/guestfish-actions.pod:276
18740 #, no-wrap
18741 msgid ""
18742 " aug-mv src dest\n"
18743 "\n"
18744 msgstr ""
18745
18746 # type: =head2
18747 #: ../fish/guestfish-actions.pod:281
18748 msgid "aug-rm"
18749 msgstr ""
18750
18751 # type: verbatim
18752 #: ../fish/guestfish-actions.pod:283
18753 #, no-wrap
18754 msgid ""
18755 " aug-rm augpath\n"
18756 "\n"
18757 msgstr ""
18758
18759 # type: =head2
18760 #: ../fish/guestfish-actions.pod:289
18761 msgid "aug-save"
18762 msgstr ""
18763
18764 # type: verbatim
18765 #: ../fish/guestfish-actions.pod:291
18766 #, no-wrap
18767 msgid ""
18768 " aug-save\n"
18769 "\n"
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish-actions.pod:295
18774 msgid ""
18775 "The flags which were passed to L</aug-init> affect exactly how files are "
18776 "saved."
18777 msgstr ""
18778
18779 # type: =head2
18780 #: ../fish/guestfish-actions.pod:298
18781 msgid "aug-set"
18782 msgstr ""
18783
18784 # type: verbatim
18785 #: ../fish/guestfish-actions.pod:300
18786 #, no-wrap
18787 msgid ""
18788 " aug-set augpath val\n"
18789 "\n"
18790 msgstr ""
18791
18792 # type: textblock
18793 #: ../fish/guestfish-actions.pod:304
18794 msgid ""
18795 "In the Augeas API, it is possible to clear a node by setting the value to "
18796 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
18797 "this call.  Instead you must use the L</aug-clear> call."
18798 msgstr ""
18799
18800 # type: =head2
18801 #: ../fish/guestfish-actions.pod:309
18802 msgid "available"
18803 msgstr ""
18804
18805 # type: verbatim
18806 #: ../fish/guestfish-actions.pod:311
18807 #, no-wrap
18808 msgid ""
18809 " available 'groups ...'\n"
18810 "\n"
18811 msgstr ""
18812
18813 # type: textblock
18814 #: ../fish/guestfish-actions.pod:317
18815 msgid ""
18816 "The libguestfs groups, and the functions that those groups correspond to, "
18817 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
18818 "runtime by calling L</available-all-groups>."
18819 msgstr ""
18820
18821 # type: textblock
18822 #: ../fish/guestfish-actions.pod:341
18823 msgid "You must call L</launch> before calling this function."
18824 msgstr ""
18825
18826 # type: textblock
18827 #: ../fish/guestfish-actions.pod:363
18828 msgid ""
18829 "This call was added in version C<1.0.80>.  In previous versions of "
18830 "libguestfs all you could do would be to speculatively execute a command to "
18831 "find out if the daemon implemented it.  See also L</version>."
18832 msgstr ""
18833
18834 # type: =head2
18835 #: ../fish/guestfish-actions.pod:370
18836 msgid "available-all-groups"
18837 msgstr ""
18838
18839 # type: verbatim
18840 #: ../fish/guestfish-actions.pod:372
18841 #, no-wrap
18842 msgid ""
18843 " available-all-groups\n"
18844 "\n"
18845 msgstr ""
18846
18847 # type: textblock
18848 #: ../fish/guestfish-actions.pod:374
18849 msgid ""
18850 "This command returns a list of all optional groups that this daemon knows "
18851 "about.  Note this returns both supported and unsupported groups.  To find "
18852 "out which ones the daemon can actually support you have to call L</"
18853 "available> on each member of the returned list."
18854 msgstr ""
18855
18856 # type: textblock
18857 #: ../fish/guestfish-actions.pod:380
18858 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
18859 msgstr ""
18860
18861 # type: =head2
18862 #: ../fish/guestfish-actions.pod:382
18863 msgid "base64-in"
18864 msgstr ""
18865
18866 # type: verbatim
18867 #: ../fish/guestfish-actions.pod:384
18868 #, no-wrap
18869 msgid ""
18870 " base64-in (base64file|-) filename\n"
18871 "\n"
18872 msgstr ""
18873
18874 # type: textblock
18875 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398
18876 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769
18877 #: ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835
18878 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3932
18879 #: ../fish/guestfish-actions.pod:3944 ../fish/guestfish-actions.pod:3955
18880 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:4018
18881 #: ../fish/guestfish-actions.pod:4027 ../fish/guestfish-actions.pod:4081
18882 #: ../fish/guestfish-actions.pod:4104
18883 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
18884 msgstr ""
18885
18886 # type: =head2
18887 #: ../fish/guestfish-actions.pod:391
18888 msgid "base64-out"
18889 msgstr ""
18890
18891 # type: verbatim
18892 #: ../fish/guestfish-actions.pod:393
18893 #, no-wrap
18894 msgid ""
18895 " base64-out filename (base64file|-)\n"
18896 "\n"
18897 msgstr ""
18898
18899 # type: =head2
18900 #: ../fish/guestfish-actions.pod:400
18901 msgid "blockdev-flushbufs"
18902 msgstr ""
18903
18904 # type: verbatim
18905 #: ../fish/guestfish-actions.pod:402
18906 #, no-wrap
18907 msgid ""
18908 " blockdev-flushbufs device\n"
18909 "\n"
18910 msgstr ""
18911
18912 # type: =head2
18913 #: ../fish/guestfish-actions.pod:409
18914 msgid "blockdev-getbsz"
18915 msgstr ""
18916
18917 # type: verbatim
18918 #: ../fish/guestfish-actions.pod:411
18919 #, no-wrap
18920 msgid ""
18921 " blockdev-getbsz device\n"
18922 "\n"
18923 msgstr ""
18924
18925 # type: =head2
18926 #: ../fish/guestfish-actions.pod:420
18927 msgid "blockdev-getro"
18928 msgstr ""
18929
18930 # type: verbatim
18931 #: ../fish/guestfish-actions.pod:422
18932 #, no-wrap
18933 msgid ""
18934 " blockdev-getro device\n"
18935 "\n"
18936 msgstr ""
18937
18938 # type: =head2
18939 #: ../fish/guestfish-actions.pod:429
18940 msgid "blockdev-getsize64"
18941 msgstr ""
18942
18943 # type: verbatim
18944 #: ../fish/guestfish-actions.pod:431
18945 #, no-wrap
18946 msgid ""
18947 " blockdev-getsize64 device\n"
18948 "\n"
18949 msgstr ""
18950
18951 # type: textblock
18952 #: ../fish/guestfish-actions.pod:435
18953 msgid "See also L</blockdev-getsz>."
18954 msgstr ""
18955
18956 # type: =head2
18957 #: ../fish/guestfish-actions.pod:439
18958 msgid "blockdev-getss"
18959 msgstr ""
18960
18961 # type: verbatim
18962 #: ../fish/guestfish-actions.pod:441
18963 #, no-wrap
18964 msgid ""
18965 " blockdev-getss device\n"
18966 "\n"
18967 msgstr ""
18968
18969 # type: textblock
18970 #: ../fish/guestfish-actions.pod:446
18971 msgid ""
18972 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18973 msgstr ""
18974
18975 # type: =head2
18976 #: ../fish/guestfish-actions.pod:451
18977 msgid "blockdev-getsz"
18978 msgstr ""
18979
18980 # type: verbatim
18981 #: ../fish/guestfish-actions.pod:453
18982 #, no-wrap
18983 msgid ""
18984 " blockdev-getsz device\n"
18985 "\n"
18986 msgstr ""
18987
18988 # type: textblock
18989 #: ../fish/guestfish-actions.pod:458
18990 msgid ""
18991 "See also L</blockdev-getss> for the real sector size of the device, and L</"
18992 "blockdev-getsize64> for the more useful I<size in bytes>."
18993 msgstr ""
18994
18995 # type: =head2
18996 #: ../fish/guestfish-actions.pod:464
18997 msgid "blockdev-rereadpt"
18998 msgstr ""
18999
19000 # type: verbatim
19001 #: ../fish/guestfish-actions.pod:466
19002 #, no-wrap
19003 msgid ""
19004 " blockdev-rereadpt device\n"
19005 "\n"
19006 msgstr ""
19007
19008 # type: =head2
19009 #: ../fish/guestfish-actions.pod:472
19010 msgid "blockdev-setbsz"
19011 msgstr ""
19012
19013 # type: verbatim
19014 #: ../fish/guestfish-actions.pod:474
19015 #, no-wrap
19016 msgid ""
19017 " blockdev-setbsz device blocksize\n"
19018 "\n"
19019 msgstr ""
19020
19021 # type: =head2
19022 #: ../fish/guestfish-actions.pod:483
19023 msgid "blockdev-setro"
19024 msgstr ""
19025
19026 # type: verbatim
19027 #: ../fish/guestfish-actions.pod:485
19028 #, no-wrap
19029 msgid ""
19030 " blockdev-setro device\n"
19031 "\n"
19032 msgstr ""
19033
19034 # type: =head2
19035 #: ../fish/guestfish-actions.pod:491
19036 msgid "blockdev-setrw"
19037 msgstr ""
19038
19039 # type: verbatim
19040 #: ../fish/guestfish-actions.pod:493
19041 #, no-wrap
19042 msgid ""
19043 " blockdev-setrw device\n"
19044 "\n"
19045 msgstr ""
19046
19047 # type: =head2
19048 #: ../fish/guestfish-actions.pod:499
19049 msgid "case-sensitive-path"
19050 msgstr ""
19051
19052 # type: verbatim
19053 #: ../fish/guestfish-actions.pod:501
19054 #, no-wrap
19055 msgid ""
19056 " case-sensitive-path path\n"
19057 "\n"
19058 msgstr ""
19059
19060 # type: textblock
19061 #: ../fish/guestfish-actions.pod:525
19062 msgid ""
19063 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19064 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19065 "the directories were originally created under Windows)."
19066 msgstr ""
19067
19068 # type: textblock
19069 #: ../fish/guestfish-actions.pod:533
19070 msgid "See also L</realpath>."
19071 msgstr ""
19072
19073 # type: =head2
19074 #: ../fish/guestfish-actions.pod:535
19075 msgid "cat"
19076 msgstr ""
19077
19078 # type: verbatim
19079 #: ../fish/guestfish-actions.pod:537
19080 #, no-wrap
19081 msgid ""
19082 " cat path\n"
19083 "\n"
19084 msgstr ""
19085
19086 # type: textblock
19087 #: ../fish/guestfish-actions.pod:541
19088 msgid ""
19089 "Note that this function cannot correctly handle binary files (specifically, "
19090 "files containing C<\\0> character which is treated as end of string).  For "
19091 "those you need to use the L</read-file> or L</download> functions which have "
19092 "a more complex interface."
19093 msgstr ""
19094
19095 # type: =head2
19096 #: ../fish/guestfish-actions.pod:549
19097 msgid "checksum"
19098 msgstr ""
19099
19100 # type: verbatim
19101 #: ../fish/guestfish-actions.pod:551
19102 #, no-wrap
19103 msgid ""
19104 " checksum csumtype path\n"
19105 "\n"
19106 msgstr ""
19107
19108 # type: textblock
19109 #: ../fish/guestfish-actions.pod:594
19110 msgid "To get the checksum for a device, use L</checksum-device>."
19111 msgstr ""
19112
19113 # type: textblock
19114 #: ../fish/guestfish-actions.pod:596
19115 msgid "To get the checksums for many files, use L</checksums-out>."
19116 msgstr ""
19117
19118 # type: =head2
19119 #: ../fish/guestfish-actions.pod:598
19120 msgid "checksum-device"
19121 msgstr ""
19122
19123 # type: verbatim
19124 #: ../fish/guestfish-actions.pod:600
19125 #, no-wrap
19126 msgid ""
19127 " checksum-device csumtype device\n"
19128 "\n"
19129 msgstr ""
19130
19131 # type: textblock
19132 #: ../fish/guestfish-actions.pod:602
19133 msgid ""
19134 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19135 "device named C<device>.  For the types of checksums supported see the L</"
19136 "checksum> command."
19137 msgstr ""
19138
19139 # type: =head2
19140 #: ../fish/guestfish-actions.pod:606
19141 msgid "checksums-out"
19142 msgstr ""
19143
19144 # type: verbatim
19145 #: ../fish/guestfish-actions.pod:608
19146 #, no-wrap
19147 msgid ""
19148 " checksums-out csumtype directory (sumsfile|-)\n"
19149 "\n"
19150 msgstr ""
19151
19152 # type: =head2
19153 #: ../fish/guestfish-actions.pod:624
19154 msgid "chmod"
19155 msgstr ""
19156
19157 # type: verbatim
19158 #: ../fish/guestfish-actions.pod:626
19159 #, no-wrap
19160 msgid ""
19161 " chmod mode path\n"
19162 "\n"
19163 msgstr ""
19164
19165 # type: =head2
19166 #: ../fish/guestfish-actions.pod:637
19167 msgid "chown"
19168 msgstr ""
19169
19170 # type: verbatim
19171 #: ../fish/guestfish-actions.pod:639
19172 #, no-wrap
19173 msgid ""
19174 " chown owner group path\n"
19175 "\n"
19176 msgstr ""
19177
19178 # type: =head2
19179 #: ../fish/guestfish-actions.pod:647
19180 msgid "command"
19181 msgstr ""
19182
19183 # type: verbatim
19184 #: ../fish/guestfish-actions.pod:649
19185 #, no-wrap
19186 msgid ""
19187 " command 'arguments ...'\n"
19188 "\n"
19189 msgstr ""
19190
19191 # type: textblock
19192 #: ../fish/guestfish-actions.pod:656
19193 msgid ""
19194 "The single parameter is an argv-style list of arguments.  The first element "
19195 "is the name of the program to run.  Subsequent elements are parameters.  The "
19196 "list must be non-empty (ie. must contain a program name).  Note that the "
19197 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19198 msgstr ""
19199
19200 # type: =head2
19201 #: ../fish/guestfish-actions.pod:684
19202 msgid "command-lines"
19203 msgstr ""
19204
19205 # type: verbatim
19206 #: ../fish/guestfish-actions.pod:686
19207 #, no-wrap
19208 msgid ""
19209 " command-lines 'arguments ...'\n"
19210 "\n"
19211 msgstr ""
19212
19213 # type: textblock
19214 #: ../fish/guestfish-actions.pod:688
19215 msgid ""
19216 "This is the same as L</command>, but splits the result into a list of lines."
19217 msgstr ""
19218
19219 # type: textblock
19220 #: ../fish/guestfish-actions.pod:691
19221 msgid "See also: L</sh-lines>"
19222 msgstr ""
19223
19224 # type: =head2
19225 #: ../fish/guestfish-actions.pod:696
19226 msgid "config"
19227 msgstr ""
19228
19229 # type: verbatim
19230 #: ../fish/guestfish-actions.pod:698
19231 #, no-wrap
19232 msgid ""
19233 " config qemuparam qemuvalue\n"
19234 "\n"
19235 msgstr ""
19236
19237 # type: =head2
19238 #: ../fish/guestfish-actions.pod:709
19239 msgid "copy-size"
19240 msgstr ""
19241
19242 # type: verbatim
19243 #: ../fish/guestfish-actions.pod:711
19244 #, no-wrap
19245 msgid ""
19246 " copy-size src dest size\n"
19247 "\n"
19248 msgstr ""
19249
19250 # type: =head2
19251 #: ../fish/guestfish-actions.pod:719
19252 msgid "cp"
19253 msgstr ""
19254
19255 # type: verbatim
19256 #: ../fish/guestfish-actions.pod:721
19257 #, no-wrap
19258 msgid ""
19259 " cp src dest\n"
19260 "\n"
19261 msgstr ""
19262
19263 # type: =head2
19264 #: ../fish/guestfish-actions.pod:726
19265 msgid "cp-a"
19266 msgstr ""
19267
19268 # type: verbatim
19269 #: ../fish/guestfish-actions.pod:728
19270 #, no-wrap
19271 msgid ""
19272 " cp-a src dest\n"
19273 "\n"
19274 msgstr ""
19275
19276 # type: =head2
19277 #: ../fish/guestfish-actions.pod:733
19278 msgid "dd"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #: ../fish/guestfish-actions.pod:735
19283 #, no-wrap
19284 msgid ""
19285 " dd src dest\n"
19286 "\n"
19287 msgstr ""
19288
19289 # type: textblock
19290 #: ../fish/guestfish-actions.pod:742
19291 msgid ""
19292 "If the destination is a device, it must be as large or larger than the "
19293 "source file or device, otherwise the copy will fail.  This command cannot do "
19294 "partial copies (see L</copy-size>)."
19295 msgstr ""
19296
19297 # type: =head2
19298 #: ../fish/guestfish-actions.pod:746
19299 msgid "debug"
19300 msgstr ""
19301
19302 # type: verbatim
19303 #: ../fish/guestfish-actions.pod:748
19304 #, no-wrap
19305 msgid ""
19306 " debug subcmd 'extraargs ...'\n"
19307 "\n"
19308 msgstr ""
19309
19310 # type: textblock
19311 #: ../fish/guestfish-actions.pod:750
19312 msgid ""
19313 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
19314 "daemon) that runs inside the qemu subprocess."
19315 msgstr ""
19316
19317 # type: =head2
19318 #: ../fish/guestfish-actions.pod:758
19319 msgid "debug-upload"
19320 msgstr ""
19321
19322 # type: verbatim
19323 #: ../fish/guestfish-actions.pod:760
19324 #, no-wrap
19325 msgid ""
19326 " debug-upload (filename|-) tmpname mode\n"
19327 "\n"
19328 msgstr ""
19329
19330 # type: textblock
19331 #: ../fish/guestfish-actions.pod:762
19332 msgid ""
19333 "The L</debug-upload> command uploads a file to the libguestfs appliance."
19334 msgstr ""
19335
19336 # type: =head2
19337 #: ../fish/guestfish-actions.pod:771
19338 msgid "df"
19339 msgstr ""
19340
19341 # type: verbatim
19342 #: ../fish/guestfish-actions.pod:773
19343 #, no-wrap
19344 msgid ""
19345 " df\n"
19346 "\n"
19347 msgstr ""
19348
19349 # type: =head2
19350 #: ../fish/guestfish-actions.pod:781
19351 msgid "df-h"
19352 msgstr ""
19353
19354 # type: verbatim
19355 #: ../fish/guestfish-actions.pod:783
19356 #, no-wrap
19357 msgid ""
19358 " df-h\n"
19359 "\n"
19360 msgstr ""
19361
19362 # type: =head2
19363 #: ../fish/guestfish-actions.pod:792
19364 msgid "dmesg"
19365 msgstr ""
19366
19367 # type: verbatim
19368 #: ../fish/guestfish-actions.pod:794
19369 #, no-wrap
19370 msgid ""
19371 " dmesg\n"
19372 "\n"
19373 msgstr ""
19374
19375 # type: textblock
19376 #: ../fish/guestfish-actions.pod:800
19377 msgid ""
19378 "Another way to get the same information is to enable verbose messages with "
19379 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19380 "before running the program."
19381 msgstr ""
19382
19383 # type: =head2
19384 #: ../fish/guestfish-actions.pod:805
19385 msgid "download"
19386 msgstr ""
19387
19388 # type: verbatim
19389 #: ../fish/guestfish-actions.pod:807
19390 #, no-wrap
19391 msgid ""
19392 " download remotefilename (filename|-)\n"
19393 "\n"
19394 msgstr ""
19395
19396 # type: textblock
19397 #: ../fish/guestfish-actions.pod:814
19398 msgid "See also L</upload>, L</cat>."
19399 msgstr ""
19400
19401 # type: =head2
19402 #: ../fish/guestfish-actions.pod:818
19403 msgid "download-offset"
19404 msgstr ""
19405
19406 # type: verbatim
19407 #: ../fish/guestfish-actions.pod:820
19408 #, no-wrap
19409 msgid ""
19410 " download-offset remotefilename (filename|-) offset size\n"
19411 "\n"
19412 msgstr ""
19413
19414 # type: textblock
19415 #: ../fish/guestfish-actions.pod:828
19416 msgid ""
19417 "Note that there is no limit on the amount of data that can be downloaded "
19418 "with this call, unlike with L</pread>, and this call always reads the full "
19419 "amount unless an error occurs."
19420 msgstr ""
19421
19422 # type: textblock
19423 #: ../fish/guestfish-actions.pod:833
19424 msgid "See also L</download>, L</pread>."
19425 msgstr ""
19426
19427 # type: =head2
19428 #: ../fish/guestfish-actions.pod:837
19429 msgid "drop-caches"
19430 msgstr ""
19431
19432 # type: verbatim
19433 #: ../fish/guestfish-actions.pod:839
19434 #, no-wrap
19435 msgid ""
19436 " drop-caches whattodrop\n"
19437 "\n"
19438 msgstr ""
19439
19440 # type: =head2
19441 #: ../fish/guestfish-actions.pod:851
19442 msgid "du"
19443 msgstr ""
19444
19445 # type: verbatim
19446 #: ../fish/guestfish-actions.pod:853
19447 #, no-wrap
19448 msgid ""
19449 " du path\n"
19450 "\n"
19451 msgstr ""
19452
19453 # type: =head2
19454 #: ../fish/guestfish-actions.pod:865
19455 msgid "e2fsck-f"
19456 msgstr ""
19457
19458 # type: verbatim
19459 #: ../fish/guestfish-actions.pod:867
19460 #, no-wrap
19461 msgid ""
19462 " e2fsck-f device\n"
19463 "\n"
19464 msgstr ""
19465
19466 # type: textblock
19467 #: ../fish/guestfish-actions.pod:873
19468 msgid ""
19469 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19470 "should use L</fsck>."
19471 msgstr ""
19472
19473 # type: =head2
19474 #: ../fish/guestfish-actions.pod:876
19475 msgid "echo-daemon"
19476 msgstr ""
19477
19478 # type: verbatim
19479 #: ../fish/guestfish-actions.pod:878
19480 #, no-wrap
19481 msgid ""
19482 " echo-daemon 'words ...'\n"
19483 "\n"
19484 msgstr ""
19485
19486 # type: textblock
19487 #: ../fish/guestfish-actions.pod:885
19488 msgid "See also L</ping-daemon>."
19489 msgstr ""
19490
19491 # type: =head2
19492 #: ../fish/guestfish-actions.pod:887
19493 msgid "egrep"
19494 msgstr ""
19495
19496 # type: verbatim
19497 #: ../fish/guestfish-actions.pod:889
19498 #, no-wrap
19499 msgid ""
19500 " egrep regex path\n"
19501 "\n"
19502 msgstr ""
19503
19504 # type: =head2
19505 #: ../fish/guestfish-actions.pod:897
19506 msgid "egrepi"
19507 msgstr ""
19508
19509 # type: verbatim
19510 #: ../fish/guestfish-actions.pod:899
19511 #, no-wrap
19512 msgid ""
19513 " egrepi regex path\n"
19514 "\n"
19515 msgstr ""
19516
19517 # type: =head2
19518 #: ../fish/guestfish-actions.pod:907
19519 msgid "equal"
19520 msgstr ""
19521
19522 # type: verbatim
19523 #: ../fish/guestfish-actions.pod:909
19524 #, no-wrap
19525 msgid ""
19526 " equal file1 file2\n"
19527 "\n"
19528 msgstr ""
19529
19530 # type: =head2
19531 #: ../fish/guestfish-actions.pod:916
19532 msgid "exists"
19533 msgstr ""
19534
19535 # type: verbatim
19536 #: ../fish/guestfish-actions.pod:918
19537 #, no-wrap
19538 msgid ""
19539 " exists path\n"
19540 "\n"
19541 msgstr ""
19542
19543 # type: textblock
19544 #: ../fish/guestfish-actions.pod:923
19545 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19546 msgstr ""
19547
19548 # type: =head2
19549 #: ../fish/guestfish-actions.pod:925
19550 msgid "fallocate"
19551 msgstr ""
19552
19553 # type: verbatim
19554 #: ../fish/guestfish-actions.pod:927
19555 #, no-wrap
19556 msgid ""
19557 " fallocate path len\n"
19558 "\n"
19559 msgstr ""
19560
19561 # type: =head2
19562 #: ../fish/guestfish-actions.pod:944
19563 msgid "fallocate64"
19564 msgstr ""
19565
19566 # type: verbatim
19567 #: ../fish/guestfish-actions.pod:946
19568 #, no-wrap
19569 msgid ""
19570 " fallocate64 path len\n"
19571 "\n"
19572 msgstr ""
19573
19574 # type: textblock
19575 #: ../fish/guestfish-actions.pod:952
19576 msgid ""
19577 "Note that this call allocates disk blocks for the file.  To create a sparse "
19578 "file use L</truncate-size> instead."
19579 msgstr ""
19580
19581 # type: textblock
19582 #: ../fish/guestfish-actions.pod:955
19583 msgid ""
19584 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19585 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19586 "maximum size of files created through that call to 1GB."
19587 msgstr ""
19588
19589 # type: =head2
19590 #: ../fish/guestfish-actions.pod:964
19591 msgid "fgrep"
19592 msgstr ""
19593
19594 # type: verbatim
19595 #: ../fish/guestfish-actions.pod:966
19596 #, no-wrap
19597 msgid ""
19598 " fgrep pattern path\n"
19599 "\n"
19600 msgstr ""
19601
19602 # type: =head2
19603 #: ../fish/guestfish-actions.pod:974
19604 msgid "fgrepi"
19605 msgstr ""
19606
19607 # type: verbatim
19608 #: ../fish/guestfish-actions.pod:976
19609 #, no-wrap
19610 msgid ""
19611 " fgrepi pattern path\n"
19612 "\n"
19613 msgstr ""
19614
19615 # type: =head2
19616 #: ../fish/guestfish-actions.pod:984
19617 msgid "file"
19618 msgstr ""
19619
19620 # type: verbatim
19621 #: ../fish/guestfish-actions.pod:986
19622 #, no-wrap
19623 msgid ""
19624 " file path\n"
19625 "\n"
19626 msgstr ""
19627
19628 # type: textblock
19629 #: ../fish/guestfish-actions.pod:998
19630 msgid ""
19631 "This command can also be used on C</dev/> devices (and partitions, LV "
19632 "names).  You can for example use this to determine if a device contains a "
19633 "filesystem, although it's usually better to use L</vfs-type>."
19634 msgstr ""
19635
19636 # type: =head2
19637 #: ../fish/guestfish-actions.pod:1008
19638 msgid "file-architecture"
19639 msgstr ""
19640
19641 # type: verbatim
19642 #: ../fish/guestfish-actions.pod:1010
19643 #, no-wrap
19644 msgid ""
19645 " file-architecture filename\n"
19646 "\n"
19647 msgstr ""
19648
19649 # type: =head2
19650 #: ../fish/guestfish-actions.pod:1113
19651 msgid "filesize"
19652 msgstr ""
19653
19654 # type: verbatim
19655 #: ../fish/guestfish-actions.pod:1115
19656 #, no-wrap
19657 msgid ""
19658 " filesize file\n"
19659 "\n"
19660 msgstr ""
19661
19662 # type: textblock
19663 #: ../fish/guestfish-actions.pod:1119
19664 msgid ""
19665 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
19666 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
19667 msgstr ""
19668
19669 # type: =head2
19670 #: ../fish/guestfish-actions.pod:1123
19671 msgid "fill"
19672 msgstr ""
19673
19674 # type: verbatim
19675 #: ../fish/guestfish-actions.pod:1125
19676 #, no-wrap
19677 msgid ""
19678 " fill c len path\n"
19679 "\n"
19680 msgstr ""
19681
19682 # type: textblock
19683 #: ../fish/guestfish-actions.pod:1131
19684 msgid ""
19685 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19686 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19687 "L</fill-pattern>."
19688 msgstr ""
19689
19690 # type: =head2
19691 #: ../fish/guestfish-actions.pod:1136
19692 msgid "fill-pattern"
19693 msgstr ""
19694
19695 # type: verbatim
19696 #: ../fish/guestfish-actions.pod:1138
19697 #, no-wrap
19698 msgid ""
19699 " fill-pattern pattern len path\n"
19700 "\n"
19701 msgstr ""
19702
19703 # type: textblock
19704 #: ../fish/guestfish-actions.pod:1140
19705 msgid ""
19706 "This function is like L</fill> except that it creates a new file of length "
19707 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19708 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19709 "bytes."
19710 msgstr ""
19711
19712 # type: =head2
19713 #: ../fish/guestfish-actions.pod:1145
19714 msgid "find"
19715 msgstr ""
19716
19717 # type: verbatim
19718 #: ../fish/guestfish-actions.pod:1147
19719 #, no-wrap
19720 msgid ""
19721 " find directory\n"
19722 "\n"
19723 msgstr ""
19724
19725 # type: textblock
19726 #: ../fish/guestfish-actions.pod:1161
19727 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19728 msgstr ""
19729
19730 # type: textblock
19731 #: ../fish/guestfish-actions.pod:1174
19732 msgid "See also L</find0>."
19733 msgstr ""
19734
19735 # type: =head2
19736 #: ../fish/guestfish-actions.pod:1179
19737 msgid "find0"
19738 msgstr ""
19739
19740 # type: verbatim
19741 #: ../fish/guestfish-actions.pod:1181
19742 #, no-wrap
19743 msgid ""
19744 " find0 directory (files|-)\n"
19745 "\n"
19746 msgstr ""
19747
19748 # type: textblock
19749 #: ../fish/guestfish-actions.pod:1187
19750 msgid ""
19751 "This command works the same way as L</find> with the following exceptions:"
19752 msgstr ""
19753
19754 # type: =head2
19755 #: ../fish/guestfish-actions.pod:1214
19756 msgid "findfs-label"
19757 msgstr ""
19758
19759 # type: verbatim
19760 #: ../fish/guestfish-actions.pod:1216
19761 #, no-wrap
19762 msgid ""
19763 " findfs-label label\n"
19764 "\n"
19765 msgstr ""
19766
19767 # type: textblock
19768 #: ../fish/guestfish-actions.pod:1222
19769 msgid "To find the label of a filesystem, use L</vfs-label>."
19770 msgstr ""
19771
19772 # type: =head2
19773 #: ../fish/guestfish-actions.pod:1224
19774 msgid "findfs-uuid"
19775 msgstr ""
19776
19777 # type: verbatim
19778 #: ../fish/guestfish-actions.pod:1226
19779 #, no-wrap
19780 msgid ""
19781 " findfs-uuid uuid\n"
19782 "\n"
19783 msgstr ""
19784
19785 # type: textblock
19786 #: ../fish/guestfish-actions.pod:1232
19787 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
19788 msgstr ""
19789
19790 # type: =head2
19791 #: ../fish/guestfish-actions.pod:1234
19792 msgid "fsck"
19793 msgstr ""
19794
19795 # type: verbatim
19796 #: ../fish/guestfish-actions.pod:1236
19797 #, no-wrap
19798 msgid ""
19799 " fsck fstype device\n"
19800 "\n"
19801 msgstr ""
19802
19803 # type: =head2
19804 #: ../fish/guestfish-actions.pod:1266
19805 msgid "get-append"
19806 msgstr ""
19807
19808 # type: verbatim
19809 #: ../fish/guestfish-actions.pod:1268
19810 #, no-wrap
19811 msgid ""
19812 " get-append\n"
19813 "\n"
19814 msgstr ""
19815
19816 # type: =head2
19817 #: ../fish/guestfish-actions.pod:1275
19818 msgid "get-autosync"
19819 msgstr ""
19820
19821 # type: verbatim
19822 #: ../fish/guestfish-actions.pod:1277
19823 #, no-wrap
19824 msgid ""
19825 " get-autosync\n"
19826 "\n"
19827 msgstr ""
19828
19829 # type: =head2
19830 #: ../fish/guestfish-actions.pod:1281
19831 msgid "get-direct"
19832 msgstr ""
19833
19834 # type: verbatim
19835 #: ../fish/guestfish-actions.pod:1283
19836 #, no-wrap
19837 msgid ""
19838 " get-direct\n"
19839 "\n"
19840 msgstr ""
19841
19842 # type: =head2
19843 #: ../fish/guestfish-actions.pod:1287
19844 msgid "get-e2label"
19845 msgstr ""
19846
19847 # type: verbatim
19848 #: ../fish/guestfish-actions.pod:1289
19849 #, no-wrap
19850 msgid ""
19851 " get-e2label device\n"
19852 "\n"
19853 msgstr ""
19854
19855 # type: =head2
19856 #: ../fish/guestfish-actions.pod:1301
19857 msgid "get-e2uuid"
19858 msgstr ""
19859
19860 # type: verbatim
19861 #: ../fish/guestfish-actions.pod:1303
19862 #, no-wrap
19863 msgid ""
19864 " get-e2uuid device\n"
19865 "\n"
19866 msgstr ""
19867
19868 # type: =head2
19869 #: ../fish/guestfish-actions.pod:1315
19870 msgid "get-memsize"
19871 msgstr ""
19872
19873 # type: verbatim
19874 #: ../fish/guestfish-actions.pod:1317
19875 #, no-wrap
19876 msgid ""
19877 " get-memsize\n"
19878 "\n"
19879 msgstr ""
19880
19881 # type: textblock
19882 #: ../fish/guestfish-actions.pod:1322
19883 msgid ""
19884 "If L</set-memsize> was not called on this handle, and if "
19885 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
19886 "value for memsize."
19887 msgstr ""
19888
19889 # type: =head2
19890 #: ../fish/guestfish-actions.pod:1329
19891 msgid "get-network"
19892 msgstr ""
19893
19894 # type: verbatim
19895 #: ../fish/guestfish-actions.pod:1331
19896 #, no-wrap
19897 msgid ""
19898 " get-network\n"
19899 "\n"
19900 msgstr ""
19901
19902 # type: =head2
19903 #: ../fish/guestfish-actions.pod:1335
19904 msgid "get-path"
19905 msgstr ""
19906
19907 # type: verbatim
19908 #: ../fish/guestfish-actions.pod:1337
19909 #, no-wrap
19910 msgid ""
19911 " get-path\n"
19912 "\n"
19913 msgstr ""
19914
19915 # type: =head2
19916 #: ../fish/guestfish-actions.pod:1344
19917 msgid "get-pid"
19918 msgstr ""
19919
19920 # type: =head2
19921 #: ../fish/guestfish-actions.pod:1346
19922 msgid "pid"
19923 msgstr ""
19924
19925 # type: verbatim
19926 #: ../fish/guestfish-actions.pod:1348
19927 #, no-wrap
19928 msgid ""
19929 " get-pid\n"
19930 "\n"
19931 msgstr ""
19932
19933 # type: =head2
19934 #: ../fish/guestfish-actions.pod:1355
19935 msgid "get-qemu"
19936 msgstr ""
19937
19938 # type: verbatim
19939 #: ../fish/guestfish-actions.pod:1357
19940 #, no-wrap
19941 msgid ""
19942 " get-qemu\n"
19943 "\n"
19944 msgstr ""
19945
19946 # type: =head2
19947 #: ../fish/guestfish-actions.pod:1364
19948 msgid "get-recovery-proc"
19949 msgstr ""
19950
19951 # type: verbatim
19952 #: ../fish/guestfish-actions.pod:1366
19953 #, no-wrap
19954 msgid ""
19955 " get-recovery-proc\n"
19956 "\n"
19957 msgstr ""
19958
19959 # type: =head2
19960 #: ../fish/guestfish-actions.pod:1370
19961 msgid "get-selinux"
19962 msgstr ""
19963
19964 # type: verbatim
19965 #: ../fish/guestfish-actions.pod:1372
19966 #, no-wrap
19967 msgid ""
19968 " get-selinux\n"
19969 "\n"
19970 msgstr ""
19971
19972 # type: textblock
19973 #: ../fish/guestfish-actions.pod:1374
19974 msgid ""
19975 "This returns the current setting of the selinux flag which is passed to the "
19976 "appliance at boot time.  See L</set-selinux>."
19977 msgstr ""
19978
19979 # type: =head2
19980 #: ../fish/guestfish-actions.pod:1380
19981 msgid "get-state"
19982 msgstr ""
19983
19984 # type: verbatim
19985 #: ../fish/guestfish-actions.pod:1382
19986 #, no-wrap
19987 msgid ""
19988 " get-state\n"
19989 "\n"
19990 msgstr ""
19991
19992 # type: =head2
19993 #: ../fish/guestfish-actions.pod:1389
19994 msgid "get-trace"
19995 msgstr ""
19996
19997 # type: verbatim
19998 #: ../fish/guestfish-actions.pod:1391
19999 #, no-wrap
20000 msgid ""
20001 " get-trace\n"
20002 "\n"
20003 msgstr ""
20004
20005 # type: =head2
20006 #: ../fish/guestfish-actions.pod:1395
20007 msgid "get-umask"
20008 msgstr ""
20009
20010 # type: verbatim
20011 #: ../fish/guestfish-actions.pod:1397
20012 #, no-wrap
20013 msgid ""
20014 " get-umask\n"
20015 "\n"
20016 msgstr ""
20017
20018 # type: textblock
20019 #: ../fish/guestfish-actions.pod:1399
20020 msgid ""
20021 "Return the current umask.  By default the umask is C<022> unless it has been "
20022 "set by calling L</umask>."
20023 msgstr ""
20024
20025 # type: =head2
20026 #: ../fish/guestfish-actions.pod:1402
20027 msgid "get-verbose"
20028 msgstr ""
20029
20030 # type: verbatim
20031 #: ../fish/guestfish-actions.pod:1404
20032 #, no-wrap
20033 msgid ""
20034 " get-verbose\n"
20035 "\n"
20036 msgstr ""
20037
20038 # type: =head2
20039 #: ../fish/guestfish-actions.pod:1408
20040 msgid "getcon"
20041 msgstr ""
20042
20043 # type: verbatim
20044 #: ../fish/guestfish-actions.pod:1410
20045 #, no-wrap
20046 msgid ""
20047 " getcon\n"
20048 "\n"
20049 msgstr ""
20050
20051 # type: textblock
20052 #: ../fish/guestfish-actions.pod:1414
20053 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20054 msgstr ""
20055
20056 # type: =head2
20057 #: ../fish/guestfish-actions.pod:1417
20058 msgid "getxattrs"
20059 msgstr ""
20060
20061 # type: verbatim
20062 #: ../fish/guestfish-actions.pod:1419
20063 #, no-wrap
20064 msgid ""
20065 " getxattrs path\n"
20066 "\n"
20067 msgstr ""
20068
20069 # type: textblock
20070 #: ../fish/guestfish-actions.pod:1427
20071 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20072 msgstr ""
20073
20074 # type: =head2
20075 #: ../fish/guestfish-actions.pod:1429
20076 msgid "glob-expand"
20077 msgstr ""
20078
20079 # type: verbatim
20080 #: ../fish/guestfish-actions.pod:1431
20081 #, no-wrap
20082 msgid ""
20083 " glob-expand pattern\n"
20084 "\n"
20085 msgstr ""
20086
20087 # type: =head2
20088 #: ../fish/guestfish-actions.pod:1444
20089 msgid "grep"
20090 msgstr ""
20091
20092 # type: verbatim
20093 #: ../fish/guestfish-actions.pod:1446
20094 #, no-wrap
20095 msgid ""
20096 " grep regex path\n"
20097 "\n"
20098 msgstr ""
20099
20100 # type: =head2
20101 #: ../fish/guestfish-actions.pod:1454
20102 msgid "grepi"
20103 msgstr ""
20104
20105 # type: verbatim
20106 #: ../fish/guestfish-actions.pod:1456
20107 #, no-wrap
20108 msgid ""
20109 " grepi regex path\n"
20110 "\n"
20111 msgstr ""
20112
20113 # type: =head2
20114 #: ../fish/guestfish-actions.pod:1464
20115 msgid "grub-install"
20116 msgstr ""
20117
20118 # type: verbatim
20119 #: ../fish/guestfish-actions.pod:1466
20120 #, no-wrap
20121 msgid ""
20122 " grub-install root device\n"
20123 "\n"
20124 msgstr ""
20125
20126 # type: =head2
20127 #: ../fish/guestfish-actions.pod:1482
20128 msgid "head"
20129 msgstr ""
20130
20131 # type: verbatim
20132 #: ../fish/guestfish-actions.pod:1484
20133 #, no-wrap
20134 msgid ""
20135 " head path\n"
20136 "\n"
20137 msgstr ""
20138
20139 # type: =head2
20140 #: ../fish/guestfish-actions.pod:1492
20141 msgid "head-n"
20142 msgstr ""
20143
20144 # type: verbatim
20145 #: ../fish/guestfish-actions.pod:1494
20146 #, no-wrap
20147 msgid ""
20148 " head-n nrlines path\n"
20149 "\n"
20150 msgstr ""
20151
20152 # type: =head2
20153 #: ../fish/guestfish-actions.pod:1507
20154 msgid "hexdump"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #: ../fish/guestfish-actions.pod:1509
20159 #, no-wrap
20160 msgid ""
20161 " hexdump path\n"
20162 "\n"
20163 msgstr ""
20164
20165 # type: =head2
20166 #: ../fish/guestfish-actions.pod:1517
20167 msgid "initrd-cat"
20168 msgstr ""
20169
20170 # type: verbatim
20171 #: ../fish/guestfish-actions.pod:1519
20172 #, no-wrap
20173 msgid ""
20174 " initrd-cat initrdpath filename\n"
20175 "\n"
20176 msgstr ""
20177
20178 # type: textblock
20179 #: ../fish/guestfish-actions.pod:1531
20180 msgid "See also L</initrd-list>."
20181 msgstr ""
20182
20183 # type: =head2
20184 #: ../fish/guestfish-actions.pod:1536
20185 msgid "initrd-list"
20186 msgstr ""
20187
20188 # type: verbatim
20189 #: ../fish/guestfish-actions.pod:1538
20190 #, no-wrap
20191 msgid ""
20192 " initrd-list path\n"
20193 "\n"
20194 msgstr ""
20195
20196 # type: =head2
20197 #: ../fish/guestfish-actions.pod:1550
20198 msgid "inotify-add-watch"
20199 msgstr ""
20200
20201 # type: verbatim
20202 #: ../fish/guestfish-actions.pod:1552
20203 #, no-wrap
20204 msgid ""
20205 " inotify-add-watch path mask\n"
20206 "\n"
20207 msgstr ""
20208
20209 # type: =head2
20210 #: ../fish/guestfish-actions.pod:1564
20211 msgid "inotify-close"
20212 msgstr ""
20213
20214 # type: verbatim
20215 #: ../fish/guestfish-actions.pod:1566
20216 #, no-wrap
20217 msgid ""
20218 " inotify-close\n"
20219 "\n"
20220 msgstr ""
20221
20222 # type: =head2
20223 #: ../fish/guestfish-actions.pod:1572
20224 msgid "inotify-files"
20225 msgstr ""
20226
20227 # type: verbatim
20228 #: ../fish/guestfish-actions.pod:1574
20229 #, no-wrap
20230 msgid ""
20231 " inotify-files\n"
20232 "\n"
20233 msgstr ""
20234
20235 # type: textblock
20236 #: ../fish/guestfish-actions.pod:1576
20237 msgid ""
20238 "This function is a helpful wrapper around L</inotify-read> which just "
20239 "returns a list of pathnames of objects that were touched.  The returned "
20240 "pathnames are sorted and deduplicated."
20241 msgstr ""
20242
20243 # type: =head2
20244 #: ../fish/guestfish-actions.pod:1580
20245 msgid "inotify-init"
20246 msgstr ""
20247
20248 # type: verbatim
20249 #: ../fish/guestfish-actions.pod:1582
20250 #, no-wrap
20251 msgid ""
20252 " inotify-init maxevents\n"
20253 "\n"
20254 msgstr ""
20255
20256 # type: textblock
20257 #: ../fish/guestfish-actions.pod:1588
20258 msgid ""
20259 "C<maxevents> is the maximum number of events which will be queued up between "
20260 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20261 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20262 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20263 "but records the fact that it threw them away by setting a flag "
20264 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20265 msgstr ""
20266
20267 # type: textblock
20268 #: ../fish/guestfish-actions.pod:1598
20269 msgid ""
20270 "Before any events are generated, you have to add some watches to the "
20271 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20272 "L</inotify-watch-all>."
20273 msgstr ""
20274
20275 # type: textblock
20276 #: ../fish/guestfish-actions.pod:1604
20277 msgid ""
20278 "Queued up events should be read periodically by calling L</inotify-read> (or "
20279 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20280 "If you don't read the events out often enough then you risk the internal "
20281 "queue overflowing."
20282 msgstr ""
20283
20284 # type: textblock
20285 #: ../fish/guestfish-actions.pod:1611
20286 msgid ""
20287 "The handle should be closed after use by calling L</inotify-close>.  This "
20288 "also removes any watches automatically."
20289 msgstr ""
20290
20291 # type: =head2
20292 #: ../fish/guestfish-actions.pod:1620
20293 msgid "inotify-read"
20294 msgstr ""
20295
20296 # type: verbatim
20297 #: ../fish/guestfish-actions.pod:1622
20298 #, no-wrap
20299 msgid ""
20300 " inotify-read\n"
20301 "\n"
20302 msgstr ""
20303
20304 # type: =head2
20305 #: ../fish/guestfish-actions.pod:1635
20306 msgid "inotify-rm-watch"
20307 msgstr ""
20308
20309 # type: verbatim
20310 #: ../fish/guestfish-actions.pod:1637
20311 #, no-wrap
20312 msgid ""
20313 " inotify-rm-watch wd\n"
20314 "\n"
20315 msgstr ""
20316
20317 # type: textblock
20318 #: ../fish/guestfish-actions.pod:1639
20319 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20320 msgstr ""
20321
20322 # type: =head2
20323 #: ../fish/guestfish-actions.pod:1642
20324 msgid "inspect-get-arch"
20325 msgstr ""
20326
20327 # type: verbatim
20328 #: ../fish/guestfish-actions.pod:1644
20329 #, no-wrap
20330 msgid ""
20331 " inspect-get-arch root\n"
20332 "\n"
20333 msgstr ""
20334
20335 # type: textblock
20336 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662
20337 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1746
20338 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1782
20339 #: ../fish/guestfish-actions.pod:1805 ../fish/guestfish-actions.pod:1822
20340 #: ../fish/guestfish-actions.pod:1853
20341 msgid ""
20342 "This function should only be called with a root device string as returned by "
20343 "L</inspect-os>."
20344 msgstr ""
20345
20346 # type: textblock
20347 #: ../fish/guestfish-actions.pod:1649
20348 msgid ""
20349 "This returns the architecture of the inspected operating system.  The "
20350 "possible return values are listed under L</file-architecture>."
20351 msgstr ""
20352
20353 # type: =head2
20354 #: ../fish/guestfish-actions.pod:1658
20355 msgid "inspect-get-distro"
20356 msgstr ""
20357
20358 # type: verbatim
20359 #: ../fish/guestfish-actions.pod:1660
20360 #, no-wrap
20361 msgid ""
20362 " inspect-get-distro root\n"
20363 "\n"
20364 msgstr ""
20365
20366 # type: =head2
20367 #: ../fish/guestfish-actions.pod:1724
20368 msgid "inspect-get-filesystems"
20369 msgstr ""
20370
20371 # type: verbatim
20372 #: ../fish/guestfish-actions.pod:1726
20373 #, no-wrap
20374 msgid ""
20375 " inspect-get-filesystems root\n"
20376 "\n"
20377 msgstr ""
20378
20379 # type: textblock
20380 #: ../fish/guestfish-actions.pod:1739
20381 msgid ""
20382 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20383 "get-mountpoints>."
20384 msgstr ""
20385
20386 # type: =head2
20387 #: ../fish/guestfish-actions.pod:1742
20388 msgid "inspect-get-major-version"
20389 msgstr ""
20390
20391 # type: verbatim
20392 #: ../fish/guestfish-actions.pod:1744
20393 #, no-wrap
20394 msgid ""
20395 " inspect-get-major-version root\n"
20396 "\n"
20397 msgstr ""
20398
20399 # type: =head2
20400 #: ../fish/guestfish-actions.pod:1763
20401 msgid "inspect-get-minor-version"
20402 msgstr ""
20403
20404 # type: verbatim
20405 #: ../fish/guestfish-actions.pod:1765
20406 #, no-wrap
20407 msgid ""
20408 " inspect-get-minor-version root\n"
20409 "\n"
20410 msgstr ""
20411
20412 # type: textblock
20413 #: ../fish/guestfish-actions.pod:1775
20414 msgid ""
20415 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20416 "get-major-version>."
20417 msgstr ""
20418
20419 # type: =head2
20420 #: ../fish/guestfish-actions.pod:1778
20421 msgid "inspect-get-mountpoints"
20422 msgstr ""
20423
20424 # type: verbatim
20425 #: ../fish/guestfish-actions.pod:1780
20426 #, no-wrap
20427 msgid ""
20428 " inspect-get-mountpoints root\n"
20429 "\n"
20430 msgstr ""
20431
20432 # type: textblock
20433 #: ../fish/guestfish-actions.pod:1798
20434 msgid ""
20435 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20436 "get-filesystems>."
20437 msgstr ""
20438
20439 # type: =head2
20440 #: ../fish/guestfish-actions.pod:1801
20441 msgid "inspect-get-product-name"
20442 msgstr ""
20443
20444 # type: verbatim
20445 #: ../fish/guestfish-actions.pod:1803
20446 #, no-wrap
20447 msgid ""
20448 " inspect-get-product-name root\n"
20449 "\n"
20450 msgstr ""
20451
20452 # type: =head2
20453 #: ../fish/guestfish-actions.pod:1818
20454 msgid "inspect-get-type"
20455 msgstr ""
20456
20457 # type: verbatim
20458 #: ../fish/guestfish-actions.pod:1820
20459 #, no-wrap
20460 msgid ""
20461 " inspect-get-type root\n"
20462 "\n"
20463 msgstr ""
20464
20465 # type: =head2
20466 #: ../fish/guestfish-actions.pod:1849
20467 msgid "inspect-get-windows-systemroot"
20468 msgstr ""
20469
20470 # type: verbatim
20471 #: ../fish/guestfish-actions.pod:1851
20472 #, no-wrap
20473 msgid ""
20474 " inspect-get-windows-systemroot root\n"
20475 "\n"
20476 msgstr ""
20477
20478 # type: =head2
20479 #: ../fish/guestfish-actions.pod:1865
20480 msgid "inspect-os"
20481 msgstr ""
20482
20483 # type: verbatim
20484 #: ../fish/guestfish-actions.pod:1867
20485 #, no-wrap
20486 msgid ""
20487 " inspect-os\n"
20488 "\n"
20489 msgstr ""
20490
20491 # type: textblock
20492 #: ../fish/guestfish-actions.pod:1882
20493 msgid ""
20494 "You can pass the root string(s) returned to other L</inspect-get-*> "
20495 "functions in order to query further information about each operating system, "
20496 "such as the name and version."
20497 msgstr ""
20498
20499 # type: textblock
20500 #: ../fish/guestfish-actions.pod:1887
20501 msgid ""
20502 "This function uses other libguestfs features such as L</mount-ro> and L</"
20503 "umount-all> in order to mount and unmount filesystems and look at the "
20504 "contents.  This should be called with no disks currently mounted.  The "
20505 "function may also use Augeas, so any existing Augeas handle will be closed."
20506 msgstr ""
20507
20508 # type: textblock
20509 #: ../fish/guestfish-actions.pod:1899 ../fish/guestfish-actions.pod:2055
20510 #: ../fish/guestfish-actions.pod:2101
20511 msgid "See also L</list-filesystems>."
20512 msgstr ""
20513
20514 # type: =head2
20515 #: ../fish/guestfish-actions.pod:1901
20516 msgid "is-blockdev"
20517 msgstr ""
20518
20519 # type: verbatim
20520 #: ../fish/guestfish-actions.pod:1903
20521 #, no-wrap
20522 msgid ""
20523 " is-blockdev path\n"
20524 "\n"
20525 msgstr ""
20526
20527 # type: textblock
20528 #: ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1926
20529 #: ../fish/guestfish-actions.pod:1945 ../fish/guestfish-actions.pod:1954
20530 #: ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1998
20531 #: ../fish/guestfish-actions.pod:2007
20532 msgid "See also L</stat>."
20533 msgstr ""
20534
20535 # type: =head2
20536 #: ../fish/guestfish-actions.pod:1910
20537 msgid "is-busy"
20538 msgstr ""
20539
20540 # type: verbatim
20541 #: ../fish/guestfish-actions.pod:1912
20542 #, no-wrap
20543 msgid ""
20544 " is-busy\n"
20545 "\n"
20546 msgstr ""
20547
20548 # type: =head2
20549 #: ../fish/guestfish-actions.pod:1919
20550 msgid "is-chardev"
20551 msgstr ""
20552
20553 # type: verbatim
20554 #: ../fish/guestfish-actions.pod:1921
20555 #, no-wrap
20556 msgid ""
20557 " is-chardev path\n"
20558 "\n"
20559 msgstr ""
20560
20561 # type: =head2
20562 #: ../fish/guestfish-actions.pod:1928
20563 msgid "is-config"
20564 msgstr ""
20565
20566 # type: verbatim
20567 #: ../fish/guestfish-actions.pod:1930
20568 #, no-wrap
20569 msgid ""
20570 " is-config\n"
20571 "\n"
20572 msgstr ""
20573
20574 # type: =head2
20575 #: ../fish/guestfish-actions.pod:1937
20576 msgid "is-dir"
20577 msgstr ""
20578
20579 # type: verbatim
20580 #: ../fish/guestfish-actions.pod:1939
20581 #, no-wrap
20582 msgid ""
20583 " is-dir path\n"
20584 "\n"
20585 msgstr ""
20586
20587 # type: =head2
20588 #: ../fish/guestfish-actions.pod:1947
20589 msgid "is-fifo"
20590 msgstr ""
20591
20592 # type: verbatim
20593 #: ../fish/guestfish-actions.pod:1949
20594 #, no-wrap
20595 msgid ""
20596 " is-fifo path\n"
20597 "\n"
20598 msgstr ""
20599
20600 # type: =head2
20601 #: ../fish/guestfish-actions.pod:1956
20602 msgid "is-file"
20603 msgstr ""
20604
20605 # type: verbatim
20606 #: ../fish/guestfish-actions.pod:1958
20607 #, no-wrap
20608 msgid ""
20609 " is-file path\n"
20610 "\n"
20611 msgstr ""
20612
20613 # type: =head2
20614 #: ../fish/guestfish-actions.pod:1966
20615 msgid "is-launching"
20616 msgstr ""
20617
20618 # type: verbatim
20619 #: ../fish/guestfish-actions.pod:1968
20620 #, no-wrap
20621 msgid ""
20622 " is-launching\n"
20623 "\n"
20624 msgstr ""
20625
20626 # type: =head2
20627 #: ../fish/guestfish-actions.pod:1975
20628 msgid "is-lv"
20629 msgstr ""
20630
20631 # type: verbatim
20632 #: ../fish/guestfish-actions.pod:1977
20633 #, no-wrap
20634 msgid ""
20635 " is-lv device\n"
20636 "\n"
20637 msgstr ""
20638
20639 # type: =head2
20640 #: ../fish/guestfish-actions.pod:1982
20641 msgid "is-ready"
20642 msgstr ""
20643
20644 # type: verbatim
20645 #: ../fish/guestfish-actions.pod:1984
20646 #, no-wrap
20647 msgid ""
20648 " is-ready\n"
20649 "\n"
20650 msgstr ""
20651
20652 # type: =head2
20653 #: ../fish/guestfish-actions.pod:1991
20654 msgid "is-socket"
20655 msgstr ""
20656
20657 # type: verbatim
20658 #: ../fish/guestfish-actions.pod:1993
20659 #, no-wrap
20660 msgid ""
20661 " is-socket path\n"
20662 "\n"
20663 msgstr ""
20664
20665 # type: =head2
20666 #: ../fish/guestfish-actions.pod:2000
20667 msgid "is-symlink"
20668 msgstr ""
20669
20670 # type: verbatim
20671 #: ../fish/guestfish-actions.pod:2002
20672 #, no-wrap
20673 msgid ""
20674 " is-symlink path\n"
20675 "\n"
20676 msgstr ""
20677
20678 # type: =head2
20679 #: ../fish/guestfish-actions.pod:2009
20680 msgid "kill-subprocess"
20681 msgstr ""
20682
20683 # type: verbatim
20684 #: ../fish/guestfish-actions.pod:2011
20685 #, no-wrap
20686 msgid ""
20687 " kill-subprocess\n"
20688 "\n"
20689 msgstr ""
20690
20691 # type: =head2
20692 #: ../fish/guestfish-actions.pod:2015
20693 msgid "launch"
20694 msgstr ""
20695
20696 # type: =head2
20697 #: ../fish/guestfish-actions.pod:2017
20698 msgid "run"
20699 msgstr ""
20700
20701 # type: verbatim
20702 #: ../fish/guestfish-actions.pod:2019
20703 #, no-wrap
20704 msgid ""
20705 " launch\n"
20706 "\n"
20707 msgstr ""
20708
20709 # type: =head2
20710 #: ../fish/guestfish-actions.pod:2027
20711 msgid "lchown"
20712 msgstr ""
20713
20714 # type: verbatim
20715 #: ../fish/guestfish-actions.pod:2029
20716 #, no-wrap
20717 msgid ""
20718 " lchown owner group path\n"
20719 "\n"
20720 msgstr ""
20721
20722 # type: textblock
20723 #: ../fish/guestfish-actions.pod:2031
20724 msgid ""
20725 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
20726 "chown> but if C<path> is a symlink then the link itself is changed, not the "
20727 "target."
20728 msgstr ""
20729
20730 # type: =head2
20731 #: ../fish/guestfish-actions.pod:2039
20732 msgid "lgetxattrs"
20733 msgstr ""
20734
20735 # type: verbatim
20736 #: ../fish/guestfish-actions.pod:2041
20737 #, no-wrap
20738 msgid ""
20739 " lgetxattrs path\n"
20740 "\n"
20741 msgstr ""
20742
20743 # type: textblock
20744 #: ../fish/guestfish-actions.pod:2043
20745 msgid ""
20746 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
20747 "it returns the extended attributes of the link itself."
20748 msgstr ""
20749
20750 # type: =head2
20751 #: ../fish/guestfish-actions.pod:2047
20752 msgid "list-devices"
20753 msgstr ""
20754
20755 # type: verbatim
20756 #: ../fish/guestfish-actions.pod:2049
20757 #, no-wrap
20758 msgid ""
20759 " list-devices\n"
20760 "\n"
20761 msgstr ""
20762
20763 # type: =head2
20764 #: ../fish/guestfish-actions.pod:2057
20765 msgid "list-filesystems"
20766 msgstr ""
20767
20768 # type: verbatim
20769 #: ../fish/guestfish-actions.pod:2059
20770 #, no-wrap
20771 msgid ""
20772 " list-filesystems\n"
20773 "\n"
20774 msgstr ""
20775
20776 # type: textblock
20777 #: ../fish/guestfish-actions.pod:2078
20778 msgid ""
20779 "This command runs other libguestfs commands, which might include L</mount> "
20780 "and L</umount>, and therefore you should use this soon after launch and only "
20781 "when nothing is mounted."
20782 msgstr ""
20783
20784 # type: textblock
20785 #: ../fish/guestfish-actions.pod:2082
20786 msgid ""
20787 "Not all of the filesystems returned will be mountable.  In particular, swap "
20788 "partitions are returned in the list.  Also this command does not check that "
20789 "each filesystem found is valid and mountable, and some filesystems might be "
20790 "mountable but require special options.  Filesystems may not all belong to a "
20791 "single logical operating system (use L</inspect-os> to look for OSes)."
20792 msgstr ""
20793
20794 # type: =head2
20795 #: ../fish/guestfish-actions.pod:2090
20796 msgid "list-partitions"
20797 msgstr ""
20798
20799 # type: verbatim
20800 #: ../fish/guestfish-actions.pod:2092
20801 #, no-wrap
20802 msgid ""
20803 " list-partitions\n"
20804 "\n"
20805 msgstr ""
20806
20807 # type: textblock
20808 #: ../fish/guestfish-actions.pod:2098
20809 msgid ""
20810 "This does not return logical volumes.  For that you will need to call L</"
20811 "lvs>."
20812 msgstr ""
20813
20814 # type: =head2
20815 #: ../fish/guestfish-actions.pod:2103
20816 msgid "ll"
20817 msgstr ""
20818
20819 # type: verbatim
20820 #: ../fish/guestfish-actions.pod:2105
20821 #, no-wrap
20822 msgid ""
20823 " ll directory\n"
20824 "\n"
20825 msgstr ""
20826
20827 # type: =head2
20828 #: ../fish/guestfish-actions.pod:2113
20829 msgid "ln"
20830 msgstr ""
20831
20832 # type: verbatim
20833 #: ../fish/guestfish-actions.pod:2115
20834 #, no-wrap
20835 msgid ""
20836 " ln target linkname\n"
20837 "\n"
20838 msgstr ""
20839
20840 # type: =head2
20841 #: ../fish/guestfish-actions.pod:2119
20842 msgid "ln-f"
20843 msgstr ""
20844
20845 # type: verbatim
20846 #: ../fish/guestfish-actions.pod:2121
20847 #, no-wrap
20848 msgid ""
20849 " ln-f target linkname\n"
20850 "\n"
20851 msgstr ""
20852
20853 # type: =head2
20854 #: ../fish/guestfish-actions.pod:2126
20855 msgid "ln-s"
20856 msgstr ""
20857
20858 # type: verbatim
20859 #: ../fish/guestfish-actions.pod:2128
20860 #, no-wrap
20861 msgid ""
20862 " ln-s target linkname\n"
20863 "\n"
20864 msgstr ""
20865
20866 # type: =head2
20867 #: ../fish/guestfish-actions.pod:2132
20868 msgid "ln-sf"
20869 msgstr ""
20870
20871 # type: verbatim
20872 #: ../fish/guestfish-actions.pod:2134
20873 #, no-wrap
20874 msgid ""
20875 " ln-sf target linkname\n"
20876 "\n"
20877 msgstr ""
20878
20879 # type: =head2
20880 #: ../fish/guestfish-actions.pod:2139
20881 msgid "lremovexattr"
20882 msgstr ""
20883
20884 # type: verbatim
20885 #: ../fish/guestfish-actions.pod:2141
20886 #, no-wrap
20887 msgid ""
20888 " lremovexattr xattr path\n"
20889 "\n"
20890 msgstr ""
20891
20892 # type: textblock
20893 #: ../fish/guestfish-actions.pod:2143
20894 msgid ""
20895 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
20896 "it removes an extended attribute of the link itself."
20897 msgstr ""
20898
20899 # type: =head2
20900 #: ../fish/guestfish-actions.pod:2147
20901 msgid "ls"
20902 msgstr ""
20903
20904 # type: verbatim
20905 #: ../fish/guestfish-actions.pod:2149
20906 #, no-wrap
20907 msgid ""
20908 " ls directory\n"
20909 "\n"
20910 msgstr ""
20911
20912 # type: textblock
20913 #: ../fish/guestfish-actions.pod:2155
20914 msgid ""
20915 "This command is mostly useful for interactive sessions.  Programs should "
20916 "probably use L</readdir> instead."
20917 msgstr ""
20918
20919 # type: =head2
20920 #: ../fish/guestfish-actions.pod:2158
20921 msgid "lsetxattr"
20922 msgstr ""
20923
20924 # type: verbatim
20925 #: ../fish/guestfish-actions.pod:2160
20926 #, no-wrap
20927 msgid ""
20928 " lsetxattr xattr val vallen path\n"
20929 "\n"
20930 msgstr ""
20931
20932 # type: textblock
20933 #: ../fish/guestfish-actions.pod:2162
20934 msgid ""
20935 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20936 "sets an extended attribute of the link itself."
20937 msgstr ""
20938
20939 # type: =head2
20940 #: ../fish/guestfish-actions.pod:2166
20941 msgid "lstat"
20942 msgstr ""
20943
20944 # type: verbatim
20945 #: ../fish/guestfish-actions.pod:2168
20946 #, no-wrap
20947 msgid ""
20948 " lstat path\n"
20949 "\n"
20950 msgstr ""
20951
20952 # type: textblock
20953 #: ../fish/guestfish-actions.pod:2172
20954 msgid ""
20955 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20956 "the link is stat-ed, not the file it refers to."
20957 msgstr ""
20958
20959 # type: =head2
20960 #: ../fish/guestfish-actions.pod:2178
20961 msgid "lstatlist"
20962 msgstr ""
20963
20964 # type: verbatim
20965 #: ../fish/guestfish-actions.pod:2180
20966 #, no-wrap
20967 msgid ""
20968 " lstatlist path 'names ...'\n"
20969 "\n"
20970 msgstr ""
20971
20972 # type: textblock
20973 #: ../fish/guestfish-actions.pod:2182
20974 msgid ""
20975 "This call allows you to perform the L</lstat> operation on multiple files, "
20976 "where all files are in the directory C<path>.  C<names> is the list of files "
20977 "from this directory."
20978 msgstr ""
20979
20980 # type: textblock
20981 #: ../fish/guestfish-actions.pod:2191
20982 msgid ""
20983 "This call is intended for programs that want to efficiently list a directory "
20984 "contents without making many round-trips.  See also L</lxattrlist> for a "
20985 "similarly efficient call for getting extended attributes.  Very long "
20986 "directory listings might cause the protocol message size to be exceeded, "
20987 "causing this call to fail.  The caller must split up such requests into "
20988 "smaller groups of names."
20989 msgstr ""
20990
20991 # type: =head2
20992 #: ../fish/guestfish-actions.pod:2199
20993 msgid "luks-add-key"
20994 msgstr ""
20995
20996 # type: verbatim
20997 #: ../fish/guestfish-actions.pod:2201
20998 #, no-wrap
20999 msgid ""
21000 " luks-add-key device keyslot\n"
21001 "\n"
21002 msgstr ""
21003
21004 # type: textblock
21005 #: ../fish/guestfish-actions.pod:2208
21006 msgid ""
21007 "Note that if C<keyslot> already contains a key, then this command will "
21008 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21009 msgstr ""
21010
21011 # type: textblock
21012 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2234
21013 #: ../fish/guestfish-actions.pod:2247 ../fish/guestfish-actions.pod:2261
21014 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2294
21015 msgid ""
21016 "This command has one or more key or passphrase parameters.  Guestfish will "
21017 "prompt for these separately."
21018 msgstr ""
21019
21020 # type: =head2
21021 #: ../fish/guestfish-actions.pod:2215
21022 msgid "luks-close"
21023 msgstr ""
21024
21025 # type: verbatim
21026 #: ../fish/guestfish-actions.pod:2217
21027 #, no-wrap
21028 msgid ""
21029 " luks-close device\n"
21030 "\n"
21031 msgstr ""
21032
21033 # type: textblock
21034 #: ../fish/guestfish-actions.pod:2219
21035 msgid ""
21036 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21037 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21038 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21039 "block device."
21040 msgstr ""
21041
21042 # type: =head2
21043 #: ../fish/guestfish-actions.pod:2225
21044 msgid "luks-format"
21045 msgstr ""
21046
21047 # type: verbatim
21048 #: ../fish/guestfish-actions.pod:2227
21049 #, no-wrap
21050 msgid ""
21051 " luks-format device keyslot\n"
21052 "\n"
21053 msgstr ""
21054
21055 # type: =head2
21056 #: ../fish/guestfish-actions.pod:2240
21057 msgid "luks-format-cipher"
21058 msgstr ""
21059
21060 # type: verbatim
21061 #: ../fish/guestfish-actions.pod:2242
21062 #, no-wrap
21063 msgid ""
21064 " luks-format-cipher device keyslot cipher\n"
21065 "\n"
21066 msgstr ""
21067
21068 # type: textblock
21069 #: ../fish/guestfish-actions.pod:2244
21070 msgid ""
21071 "This command is the same as L</luks-format> but it also allows you to set "
21072 "the C<cipher> used."
21073 msgstr ""
21074
21075 # type: =head2
21076 #: ../fish/guestfish-actions.pod:2253
21077 msgid "luks-kill-slot"
21078 msgstr ""
21079
21080 # type: verbatim
21081 #: ../fish/guestfish-actions.pod:2255
21082 #, no-wrap
21083 msgid ""
21084 " luks-kill-slot device keyslot\n"
21085 "\n"
21086 msgstr ""
21087
21088 # type: =head2
21089 #: ../fish/guestfish-actions.pod:2264
21090 msgid "luks-open"
21091 msgstr ""
21092
21093 # type: verbatim
21094 #: ../fish/guestfish-actions.pod:2266
21095 #, no-wrap
21096 msgid ""
21097 " luks-open device mapname\n"
21098 "\n"
21099 msgstr ""
21100
21101 # type: textblock
21102 #: ../fish/guestfish-actions.pod:2280
21103 msgid ""
21104 "If this block device contains LVM volume groups, then calling L</vgscan> "
21105 "followed by L</vg-activate-all> will make them visible."
21106 msgstr ""
21107
21108 # type: =head2
21109 #: ../fish/guestfish-actions.pod:2287
21110 msgid "luks-open-ro"
21111 msgstr ""
21112
21113 # type: verbatim
21114 #: ../fish/guestfish-actions.pod:2289
21115 #, no-wrap
21116 msgid ""
21117 " luks-open-ro device mapname\n"
21118 "\n"
21119 msgstr ""
21120
21121 # type: textblock
21122 #: ../fish/guestfish-actions.pod:2291
21123 msgid ""
21124 "This is the same as L</luks-open> except that a read-only mapping is created."
21125 msgstr ""
21126
21127 # type: =head2
21128 #: ../fish/guestfish-actions.pod:2297
21129 msgid "lvcreate"
21130 msgstr ""
21131
21132 # type: verbatim
21133 #: ../fish/guestfish-actions.pod:2299
21134 #, no-wrap
21135 msgid ""
21136 " lvcreate logvol volgroup mbytes\n"
21137 "\n"
21138 msgstr ""
21139
21140 # type: =head2
21141 #: ../fish/guestfish-actions.pod:2304
21142 msgid "lvm-canonical-lv-name"
21143 msgstr ""
21144
21145 # type: verbatim
21146 #: ../fish/guestfish-actions.pod:2306
21147 #, no-wrap
21148 msgid ""
21149 " lvm-canonical-lv-name lvname\n"
21150 "\n"
21151 msgstr ""
21152
21153 # type: textblock
21154 #: ../fish/guestfish-actions.pod:2315
21155 msgid "See also L</is-lv>."
21156 msgstr ""
21157
21158 # type: =head2
21159 #: ../fish/guestfish-actions.pod:2317
21160 msgid "lvm-clear-filter"
21161 msgstr ""
21162
21163 # type: verbatim
21164 #: ../fish/guestfish-actions.pod:2319
21165 #, no-wrap
21166 msgid ""
21167 " lvm-clear-filter\n"
21168 "\n"
21169 msgstr ""
21170
21171 # type: textblock
21172 #: ../fish/guestfish-actions.pod:2321
21173 msgid ""
21174 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21175 "block device."
21176 msgstr ""
21177
21178 # type: =head2
21179 #: ../fish/guestfish-actions.pod:2327
21180 msgid "lvm-remove-all"
21181 msgstr ""
21182
21183 # type: verbatim
21184 #: ../fish/guestfish-actions.pod:2329
21185 #, no-wrap
21186 msgid ""
21187 " lvm-remove-all\n"
21188 "\n"
21189 msgstr ""
21190
21191 # type: =head2
21192 #: ../fish/guestfish-actions.pod:2337
21193 msgid "lvm-set-filter"
21194 msgstr ""
21195
21196 # type: verbatim
21197 #: ../fish/guestfish-actions.pod:2339
21198 #, no-wrap
21199 msgid ""
21200 " lvm-set-filter 'devices ...'\n"
21201 "\n"
21202 msgstr ""
21203
21204 # type: =head2
21205 #: ../fish/guestfish-actions.pod:2364
21206 msgid "lvremove"
21207 msgstr ""
21208
21209 # type: verbatim
21210 #: ../fish/guestfish-actions.pod:2366
21211 #, no-wrap
21212 msgid ""
21213 " lvremove device\n"
21214 "\n"
21215 msgstr ""
21216
21217 # type: =head2
21218 #: ../fish/guestfish-actions.pod:2374
21219 msgid "lvrename"
21220 msgstr ""
21221
21222 # type: verbatim
21223 #: ../fish/guestfish-actions.pod:2376
21224 #, no-wrap
21225 msgid ""
21226 " lvrename logvol newlogvol\n"
21227 "\n"
21228 msgstr ""
21229
21230 # type: =head2
21231 #: ../fish/guestfish-actions.pod:2380
21232 msgid "lvresize"
21233 msgstr ""
21234
21235 # type: verbatim
21236 #: ../fish/guestfish-actions.pod:2382
21237 #, no-wrap
21238 msgid ""
21239 " lvresize device mbytes\n"
21240 "\n"
21241 msgstr ""
21242
21243 # type: =head2
21244 #: ../fish/guestfish-actions.pod:2388
21245 msgid "lvresize-free"
21246 msgstr ""
21247
21248 # type: verbatim
21249 #: ../fish/guestfish-actions.pod:2390
21250 #, no-wrap
21251 msgid ""
21252 " lvresize-free lv percent\n"
21253 "\n"
21254 msgstr ""
21255
21256 # type: =head2
21257 #: ../fish/guestfish-actions.pod:2398
21258 msgid "lvs"
21259 msgstr ""
21260
21261 # type: verbatim
21262 #: ../fish/guestfish-actions.pod:2400
21263 #, no-wrap
21264 msgid ""
21265 " lvs\n"
21266 "\n"
21267 msgstr ""
21268
21269 # type: textblock
21270 #: ../fish/guestfish-actions.pod:2408
21271 msgid "See also L</lvs-full>, L</list-filesystems>."
21272 msgstr ""
21273
21274 # type: =head2
21275 #: ../fish/guestfish-actions.pod:2410
21276 msgid "lvs-full"
21277 msgstr ""
21278
21279 # type: verbatim
21280 #: ../fish/guestfish-actions.pod:2412
21281 #, no-wrap
21282 msgid ""
21283 " lvs-full\n"
21284 "\n"
21285 msgstr ""
21286
21287 # type: =head2
21288 #: ../fish/guestfish-actions.pod:2417
21289 msgid "lvuuid"
21290 msgstr ""
21291
21292 # type: verbatim
21293 #: ../fish/guestfish-actions.pod:2419
21294 #, no-wrap
21295 msgid ""
21296 " lvuuid device\n"
21297 "\n"
21298 msgstr ""
21299
21300 # type: =head2
21301 #: ../fish/guestfish-actions.pod:2423
21302 msgid "lxattrlist"
21303 msgstr ""
21304
21305 # type: verbatim
21306 #: ../fish/guestfish-actions.pod:2425
21307 #, no-wrap
21308 msgid ""
21309 " lxattrlist path 'names ...'\n"
21310 "\n"
21311 msgstr ""
21312
21313 # type: textblock
21314 #: ../fish/guestfish-actions.pod:2441
21315 msgid ""
21316 "This call is intended for programs that want to efficiently list a directory "
21317 "contents without making many round-trips.  See also L</lstatlist> for a "
21318 "similarly efficient call for getting standard stats.  Very long directory "
21319 "listings might cause the protocol message size to be exceeded, causing this "
21320 "call to fail.  The caller must split up such requests into smaller groups of "
21321 "names."
21322 msgstr ""
21323
21324 # type: =head2
21325 #: ../fish/guestfish-actions.pod:2449
21326 msgid "mkdir"
21327 msgstr ""
21328
21329 # type: verbatim
21330 #: ../fish/guestfish-actions.pod:2451
21331 #, no-wrap
21332 msgid ""
21333 " mkdir path\n"
21334 "\n"
21335 msgstr ""
21336
21337 # type: =head2
21338 #: ../fish/guestfish-actions.pod:2455
21339 msgid "mkdir-mode"
21340 msgstr ""
21341
21342 # type: verbatim
21343 #: ../fish/guestfish-actions.pod:2457
21344 #, no-wrap
21345 msgid ""
21346 " mkdir-mode path mode\n"
21347 "\n"
21348 msgstr ""
21349
21350 # type: textblock
21351 #: ../fish/guestfish-actions.pod:2466
21352 msgid "See also L</mkdir>, L</umask>"
21353 msgstr ""
21354
21355 # type: =head2
21356 #: ../fish/guestfish-actions.pod:2468
21357 msgid "mkdir-p"
21358 msgstr ""
21359
21360 # type: verbatim
21361 #: ../fish/guestfish-actions.pod:2470
21362 #, no-wrap
21363 msgid ""
21364 " mkdir-p path\n"
21365 "\n"
21366 msgstr ""
21367
21368 # type: =head2
21369 #: ../fish/guestfish-actions.pod:2475
21370 msgid "mkdtemp"
21371 msgstr ""
21372
21373 # type: verbatim
21374 #: ../fish/guestfish-actions.pod:2477
21375 #, no-wrap
21376 msgid ""
21377 " mkdtemp template\n"
21378 "\n"
21379 msgstr ""
21380
21381 # type: =head2
21382 #: ../fish/guestfish-actions.pod:2498
21383 msgid "mke2fs-J"
21384 msgstr ""
21385
21386 # type: verbatim
21387 #: ../fish/guestfish-actions.pod:2500
21388 #, no-wrap
21389 msgid ""
21390 " mke2fs-J fstype blocksize device journal\n"
21391 "\n"
21392 msgstr ""
21393
21394 # type: textblock
21395 #: ../fish/guestfish-actions.pod:2508
21396 msgid "See also L</mke2journal>."
21397 msgstr ""
21398
21399 # type: =head2
21400 #: ../fish/guestfish-actions.pod:2510
21401 msgid "mke2fs-JL"
21402 msgstr ""
21403
21404 # type: verbatim
21405 #: ../fish/guestfish-actions.pod:2512
21406 #, no-wrap
21407 msgid ""
21408 " mke2fs-JL fstype blocksize device label\n"
21409 "\n"
21410 msgstr ""
21411
21412 # type: textblock
21413 #: ../fish/guestfish-actions.pod:2517
21414 msgid "See also L</mke2journal-L>."
21415 msgstr ""
21416
21417 # type: =head2
21418 #: ../fish/guestfish-actions.pod:2519
21419 msgid "mke2fs-JU"
21420 msgstr ""
21421
21422 # type: verbatim
21423 #: ../fish/guestfish-actions.pod:2521
21424 #, no-wrap
21425 msgid ""
21426 " mke2fs-JU fstype blocksize device uuid\n"
21427 "\n"
21428 msgstr ""
21429
21430 # type: textblock
21431 #: ../fish/guestfish-actions.pod:2526
21432 msgid "See also L</mke2journal-U>."
21433 msgstr ""
21434
21435 # type: =head2
21436 #: ../fish/guestfish-actions.pod:2528
21437 msgid "mke2journal"
21438 msgstr ""
21439
21440 # type: verbatim
21441 #: ../fish/guestfish-actions.pod:2530
21442 #, no-wrap
21443 msgid ""
21444 " mke2journal blocksize device\n"
21445 "\n"
21446 msgstr ""
21447
21448 # type: =head2
21449 #: ../fish/guestfish-actions.pod:2537
21450 msgid "mke2journal-L"
21451 msgstr ""
21452
21453 # type: verbatim
21454 #: ../fish/guestfish-actions.pod:2539
21455 #, no-wrap
21456 msgid ""
21457 " mke2journal-L blocksize label device\n"
21458 "\n"
21459 msgstr ""
21460
21461 # type: =head2
21462 #: ../fish/guestfish-actions.pod:2543
21463 msgid "mke2journal-U"
21464 msgstr ""
21465
21466 # type: verbatim
21467 #: ../fish/guestfish-actions.pod:2545
21468 #, no-wrap
21469 msgid ""
21470 " mke2journal-U blocksize uuid device\n"
21471 "\n"
21472 msgstr ""
21473
21474 # type: =head2
21475 #: ../fish/guestfish-actions.pod:2549
21476 msgid "mkfifo"
21477 msgstr ""
21478
21479 # type: verbatim
21480 #: ../fish/guestfish-actions.pod:2551
21481 #, no-wrap
21482 msgid ""
21483 " mkfifo mode path\n"
21484 "\n"
21485 msgstr ""
21486
21487 # type: textblock
21488 #: ../fish/guestfish-actions.pod:2553
21489 msgid ""
21490 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21491 "is just a convenient wrapper around L</mknod>."
21492 msgstr ""
21493
21494 # type: =head2
21495 #: ../fish/guestfish-actions.pod:2559
21496 msgid "mkfs"
21497 msgstr ""
21498
21499 # type: verbatim
21500 #: ../fish/guestfish-actions.pod:2561
21501 #, no-wrap
21502 msgid ""
21503 " mkfs fstype device\n"
21504 "\n"
21505 msgstr ""
21506
21507 # type: =head2
21508 #: ../fish/guestfish-actions.pod:2567
21509 msgid "mkfs-b"
21510 msgstr ""
21511
21512 # type: verbatim
21513 #: ../fish/guestfish-actions.pod:2569
21514 #, no-wrap
21515 msgid ""
21516 " mkfs-b fstype blocksize device\n"
21517 "\n"
21518 msgstr ""
21519
21520 # type: textblock
21521 #: ../fish/guestfish-actions.pod:2571
21522 msgid ""
21523 "This call is similar to L</mkfs>, but it allows you to control the block "
21524 "size of the resulting filesystem.  Supported block sizes depend on the "
21525 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21526 msgstr ""
21527
21528 # type: =head2
21529 #: ../fish/guestfish-actions.pod:2579
21530 msgid "mkmountpoint"
21531 msgstr ""
21532
21533 # type: verbatim
21534 #: ../fish/guestfish-actions.pod:2581
21535 #, no-wrap
21536 msgid ""
21537 " mkmountpoint exemptpath\n"
21538 "\n"
21539 msgstr ""
21540
21541 # type: textblock
21542 #: ../fish/guestfish-actions.pod:2583
21543 msgid ""
21544 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21545 "to create extra mountpoints before mounting the first filesystem."
21546 msgstr ""
21547
21548 # type: textblock
21549 #: ../fish/guestfish-actions.pod:2607
21550 msgid ""
21551 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21552 "unexpected errors if you try to mix these calls.  It is safest to manually "
21553 "unmount filesystems and remove mountpoints after use."
21554 msgstr ""
21555
21556 # type: textblock
21557 #: ../fish/guestfish-actions.pod:2611
21558 msgid ""
21559 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21560 "for this to work for manual mountpoints, you must ensure that the innermost "
21561 "mountpoints have the longest pathnames, as in the example code above."
21562 msgstr ""
21563
21564 # type: textblock
21565 #: ../fish/guestfish-actions.pod:2618
21566 msgid ""
21567 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21568 "that L</umount-all> is called when the handle is closed which can also "
21569 "trigger these issues."
21570 msgstr ""
21571
21572 # type: =head2
21573 #: ../fish/guestfish-actions.pod:2622
21574 msgid "mknod"
21575 msgstr ""
21576
21577 # type: verbatim
21578 #: ../fish/guestfish-actions.pod:2624
21579 #, no-wrap
21580 msgid ""
21581 " mknod mode devmajor devminor path\n"
21582 "\n"
21583 msgstr ""
21584
21585 # type: textblock
21586 #: ../fish/guestfish-actions.pod:2634
21587 msgid ""
21588 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21589 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21590 "regular file).  These constants are available in the standard Linux header "
21591 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21592 "wrappers around this command which bitwise OR in the appropriate constant "
21593 "for you."
21594 msgstr ""
21595
21596 # type: =head2
21597 #: ../fish/guestfish-actions.pod:2644
21598 msgid "mknod-b"
21599 msgstr ""
21600
21601 # type: verbatim
21602 #: ../fish/guestfish-actions.pod:2646
21603 #, no-wrap
21604 msgid ""
21605 " mknod-b mode devmajor devminor path\n"
21606 "\n"
21607 msgstr ""
21608
21609 # type: textblock
21610 #: ../fish/guestfish-actions.pod:2648
21611 msgid ""
21612 "This call creates a block device node called C<path> with mode C<mode> and "
21613 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21614 "wrapper around L</mknod>."
21615 msgstr ""
21616
21617 # type: =head2
21618 #: ../fish/guestfish-actions.pod:2654
21619 msgid "mknod-c"
21620 msgstr ""
21621
21622 # type: verbatim
21623 #: ../fish/guestfish-actions.pod:2656
21624 #, no-wrap
21625 msgid ""
21626 " mknod-c mode devmajor devminor path\n"
21627 "\n"
21628 msgstr ""
21629
21630 # type: textblock
21631 #: ../fish/guestfish-actions.pod:2658
21632 msgid ""
21633 "This call creates a char device node called C<path> with mode C<mode> and "
21634 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21635 "wrapper around L</mknod>."
21636 msgstr ""
21637
21638 # type: =head2
21639 #: ../fish/guestfish-actions.pod:2664
21640 msgid "mkswap"
21641 msgstr ""
21642
21643 # type: verbatim
21644 #: ../fish/guestfish-actions.pod:2666
21645 #, no-wrap
21646 msgid ""
21647 " mkswap device\n"
21648 "\n"
21649 msgstr ""
21650
21651 # type: =head2
21652 #: ../fish/guestfish-actions.pod:2670
21653 msgid "mkswap-L"
21654 msgstr ""
21655
21656 # type: verbatim
21657 #: ../fish/guestfish-actions.pod:2672
21658 #, no-wrap
21659 msgid ""
21660 " mkswap-L label device\n"
21661 "\n"
21662 msgstr ""
21663
21664 # type: =head2
21665 #: ../fish/guestfish-actions.pod:2680
21666 msgid "mkswap-U"
21667 msgstr ""
21668
21669 # type: verbatim
21670 #: ../fish/guestfish-actions.pod:2682
21671 #, no-wrap
21672 msgid ""
21673 " mkswap-U uuid device\n"
21674 "\n"
21675 msgstr ""
21676
21677 # type: =head2
21678 #: ../fish/guestfish-actions.pod:2686
21679 msgid "mkswap-file"
21680 msgstr ""
21681
21682 # type: verbatim
21683 #: ../fish/guestfish-actions.pod:2688
21684 #, no-wrap
21685 msgid ""
21686 " mkswap-file path\n"
21687 "\n"
21688 msgstr ""
21689
21690 # type: textblock
21691 #: ../fish/guestfish-actions.pod:2692
21692 msgid ""
21693 "This command just writes a swap file signature to an existing file.  To "
21694 "create the file itself, use something like L</fallocate>."
21695 msgstr ""
21696
21697 # type: =head2
21698 #: ../fish/guestfish-actions.pod:2695
21699 msgid "modprobe"
21700 msgstr ""
21701
21702 # type: verbatim
21703 #: ../fish/guestfish-actions.pod:2697
21704 #, no-wrap
21705 msgid ""
21706 " modprobe modulename\n"
21707 "\n"
21708 msgstr ""
21709
21710 # type: =head2
21711 #: ../fish/guestfish-actions.pod:2704
21712 msgid "mount"
21713 msgstr ""
21714
21715 # type: verbatim
21716 #: ../fish/guestfish-actions.pod:2706
21717 #, no-wrap
21718 msgid ""
21719 " mount device mountpoint\n"
21720 "\n"
21721 msgstr ""
21722
21723 # type: textblock
21724 #: ../fish/guestfish-actions.pod:2722
21725 msgid ""
21726 "B<Important note:> When you use this call, the filesystem options C<sync> "
21727 "and C<noatime> are set implicitly.  This was originally done because we "
21728 "thought it would improve reliability, but it turns out that I<-o sync> has a "
21729 "very large negative performance impact and negligible effect on "
21730 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
21731 "code that needs performance, and instead use L</mount-options> (use an empty "
21732 "string for the first parameter if you don't want any options)."
21733 msgstr ""
21734
21735 # type: =head2
21736 #: ../fish/guestfish-actions.pod:2732
21737 msgid "mount-loop"
21738 msgstr ""
21739
21740 # type: verbatim
21741 #: ../fish/guestfish-actions.pod:2734
21742 #, no-wrap
21743 msgid ""
21744 " mount-loop file mountpoint\n"
21745 "\n"
21746 msgstr ""
21747
21748 # type: =head2
21749 #: ../fish/guestfish-actions.pod:2740
21750 msgid "mount-options"
21751 msgstr ""
21752
21753 # type: verbatim
21754 #: ../fish/guestfish-actions.pod:2742
21755 #, no-wrap
21756 msgid ""
21757 " mount-options options device mountpoint\n"
21758 "\n"
21759 msgstr ""
21760
21761 # type: textblock
21762 #: ../fish/guestfish-actions.pod:2744
21763 msgid ""
21764 "This is the same as the L</mount> command, but it allows you to set the "
21765 "mount options as for the L<mount(8)> I<-o> flag."
21766 msgstr ""
21767
21768 # type: =head2
21769 #: ../fish/guestfish-actions.pod:2752
21770 msgid "mount-ro"
21771 msgstr ""
21772
21773 # type: verbatim
21774 #: ../fish/guestfish-actions.pod:2754
21775 #, no-wrap
21776 msgid ""
21777 " mount-ro device mountpoint\n"
21778 "\n"
21779 msgstr ""
21780
21781 # type: textblock
21782 #: ../fish/guestfish-actions.pod:2756
21783 msgid ""
21784 "This is the same as the L</mount> command, but it mounts the filesystem with "
21785 "the read-only (I<-o ro>) flag."
21786 msgstr ""
21787
21788 # type: =head2
21789 #: ../fish/guestfish-actions.pod:2759
21790 msgid "mount-vfs"
21791 msgstr ""
21792
21793 # type: verbatim
21794 #: ../fish/guestfish-actions.pod:2761
21795 #, no-wrap
21796 msgid ""
21797 " mount-vfs options vfstype device mountpoint\n"
21798 "\n"
21799 msgstr ""
21800
21801 # type: textblock
21802 #: ../fish/guestfish-actions.pod:2763
21803 msgid ""
21804 "This is the same as the L</mount> command, but it allows you to set both the "
21805 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
21806 msgstr ""
21807
21808 # type: =head2
21809 #: ../fish/guestfish-actions.pod:2767
21810 msgid "mountpoints"
21811 msgstr ""
21812
21813 # type: verbatim
21814 #: ../fish/guestfish-actions.pod:2769
21815 #, no-wrap
21816 msgid ""
21817 " mountpoints\n"
21818 "\n"
21819 msgstr ""
21820
21821 # type: textblock
21822 #: ../fish/guestfish-actions.pod:2771
21823 msgid ""
21824 "This call is similar to L</mounts>.  That call returns a list of devices.  "
21825 "This one returns a hash table (map) of device name to directory where the "
21826 "device is mounted."
21827 msgstr ""
21828
21829 # type: =head2
21830 #: ../fish/guestfish-actions.pod:2775
21831 msgid "mounts"
21832 msgstr ""
21833
21834 # type: verbatim
21835 #: ../fish/guestfish-actions.pod:2777
21836 #, no-wrap
21837 msgid ""
21838 " mounts\n"
21839 "\n"
21840 msgstr ""
21841
21842 # type: textblock
21843 #: ../fish/guestfish-actions.pod:2784
21844 msgid "See also: L</mountpoints>"
21845 msgstr ""
21846
21847 # type: =head2
21848 #: ../fish/guestfish-actions.pod:2786
21849 msgid "mv"
21850 msgstr ""
21851
21852 # type: verbatim
21853 #: ../fish/guestfish-actions.pod:2788
21854 #, no-wrap
21855 msgid ""
21856 " mv src dest\n"
21857 "\n"
21858 msgstr ""
21859
21860 # type: =head2
21861 #: ../fish/guestfish-actions.pod:2793
21862 msgid "ntfs-3g-probe"
21863 msgstr ""
21864
21865 # type: verbatim
21866 #: ../fish/guestfish-actions.pod:2795
21867 #, no-wrap
21868 msgid ""
21869 " ntfs-3g-probe true|false device\n"
21870 "\n"
21871 msgstr ""
21872
21873 # type: =head2
21874 #: ../fish/guestfish-actions.pod:2809
21875 msgid "ntfsresize"
21876 msgstr ""
21877
21878 # type: verbatim
21879 #: ../fish/guestfish-actions.pod:2811
21880 #, no-wrap
21881 msgid ""
21882 " ntfsresize device\n"
21883 "\n"
21884 msgstr ""
21885
21886 # type: =head2
21887 #: ../fish/guestfish-actions.pod:2817
21888 msgid "ntfsresize-size"
21889 msgstr ""
21890
21891 # type: verbatim
21892 #: ../fish/guestfish-actions.pod:2819
21893 #, no-wrap
21894 msgid ""
21895 " ntfsresize-size device size\n"
21896 "\n"
21897 msgstr ""
21898
21899 # type: textblock
21900 #: ../fish/guestfish-actions.pod:2821
21901 msgid ""
21902 "This command is the same as L</ntfsresize> except that it allows you to "
21903 "specify the new size (in bytes) explicitly."
21904 msgstr ""
21905
21906 # type: =head2
21907 #: ../fish/guestfish-actions.pod:2824
21908 msgid "part-add"
21909 msgstr ""
21910
21911 # type: verbatim
21912 #: ../fish/guestfish-actions.pod:2826
21913 #, no-wrap
21914 msgid ""
21915 " part-add device prlogex startsect endsect\n"
21916 "\n"
21917 msgstr ""
21918
21919 # type: textblock
21920 #: ../fish/guestfish-actions.pod:2828
21921 msgid ""
21922 "This command adds a partition to C<device>.  If there is no partition table "
21923 "on the device, call L</part-init> first."
21924 msgstr ""
21925
21926 # type: textblock
21927 #: ../fish/guestfish-actions.pod:2840
21928 msgid ""
21929 "Creating a partition which covers the whole disk is not so easy.  Use L</"
21930 "part-disk> to do that."
21931 msgstr ""
21932
21933 # type: =head2
21934 #: ../fish/guestfish-actions.pod:2843
21935 msgid "part-del"
21936 msgstr ""
21937
21938 # type: verbatim
21939 #: ../fish/guestfish-actions.pod:2845
21940 #, no-wrap
21941 msgid ""
21942 " part-del device partnum\n"
21943 "\n"
21944 msgstr ""
21945
21946 # type: =head2
21947 #: ../fish/guestfish-actions.pod:2853
21948 msgid "part-disk"
21949 msgstr ""
21950
21951 # type: verbatim
21952 #: ../fish/guestfish-actions.pod:2855
21953 #, no-wrap
21954 msgid ""
21955 " part-disk device parttype\n"
21956 "\n"
21957 msgstr ""
21958
21959 # type: textblock
21960 #: ../fish/guestfish-actions.pod:2857
21961 msgid ""
21962 "This command is simply a combination of L</part-init> followed by L</part-"
21963 "add> to create a single primary partition covering the whole disk."
21964 msgstr ""
21965
21966 # type: textblock
21967 #: ../fish/guestfish-actions.pod:2861
21968 msgid ""
21969 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21970 "possible values are described in L</part-init>."
21971 msgstr ""
21972
21973 # type: =head2
21974 #: ../fish/guestfish-actions.pod:2867
21975 msgid "part-get-bootable"
21976 msgstr ""
21977
21978 # type: verbatim
21979 #: ../fish/guestfish-actions.pod:2869
21980 #, no-wrap
21981 msgid ""
21982 " part-get-bootable device partnum\n"
21983 "\n"
21984 msgstr ""
21985
21986 # type: textblock
21987 #: ../fish/guestfish-actions.pod:2874
21988 msgid "See also L</part-set-bootable>."
21989 msgstr ""
21990
21991 # type: =head2
21992 #: ../fish/guestfish-actions.pod:2876
21993 msgid "part-get-mbr-id"
21994 msgstr ""
21995
21996 # type: verbatim
21997 #: ../fish/guestfish-actions.pod:2878
21998 #, no-wrap
21999 msgid ""
22000 " part-get-mbr-id device partnum\n"
22001 "\n"
22002 msgstr ""
22003
22004 # type: textblock
22005 #: ../fish/guestfish-actions.pod:2883 ../fish/guestfish-actions.pod:3021
22006 msgid ""
22007 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22008 "undefined results for other partition table types (see L</part-get-"
22009 "parttype>)."
22010 msgstr ""
22011
22012 # type: =head2
22013 #: ../fish/guestfish-actions.pod:2887
22014 msgid "part-get-parttype"
22015 msgstr ""
22016
22017 # type: verbatim
22018 #: ../fish/guestfish-actions.pod:2889
22019 #, no-wrap
22020 msgid ""
22021 " part-get-parttype device\n"
22022 "\n"
22023 msgstr ""
22024
22025 # type: textblock
22026 #: ../fish/guestfish-actions.pod:2894
22027 msgid ""
22028 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22029 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22030 "possible, although unusual.  See L</part-init> for a full list."
22031 msgstr ""
22032
22033 # type: =head2
22034 #: ../fish/guestfish-actions.pod:2899
22035 msgid "part-init"
22036 msgstr ""
22037
22038 # type: verbatim
22039 #: ../fish/guestfish-actions.pod:2901
22040 #, no-wrap
22041 msgid ""
22042 " part-init device parttype\n"
22043 "\n"
22044 msgstr ""
22045
22046 # type: textblock
22047 #: ../fish/guestfish-actions.pod:2907
22048 msgid ""
22049 "Initially there are no partitions.  Following this, you should call L</part-"
22050 "add> for each partition required."
22051 msgstr ""
22052
22053 # type: =head2
22054 #: ../fish/guestfish-actions.pod:2970
22055 msgid "part-list"
22056 msgstr ""
22057
22058 # type: verbatim
22059 #: ../fish/guestfish-actions.pod:2972
22060 #, no-wrap
22061 msgid ""
22062 " part-list device\n"
22063 "\n"
22064 msgstr ""
22065
22066 # type: textblock
22067 #: ../fish/guestfish-actions.pod:2987
22068 msgid ""
22069 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22070 "the device's sector size, see L</blockdev-getss>."
22071 msgstr ""
22072
22073 # type: =head2
22074 #: ../fish/guestfish-actions.pod:3000
22075 msgid "part-set-bootable"
22076 msgstr ""
22077
22078 # type: verbatim
22079 #: ../fish/guestfish-actions.pod:3002
22080 #, no-wrap
22081 msgid ""
22082 " part-set-bootable device partnum true|false\n"
22083 "\n"
22084 msgstr ""
22085
22086 # type: =head2
22087 #: ../fish/guestfish-actions.pod:3011
22088 msgid "part-set-mbr-id"
22089 msgstr ""
22090
22091 # type: verbatim
22092 #: ../fish/guestfish-actions.pod:3013
22093 #, no-wrap
22094 msgid ""
22095 " part-set-mbr-id device partnum idbyte\n"
22096 "\n"
22097 msgstr ""
22098
22099 # type: =head2
22100 #: ../fish/guestfish-actions.pod:3025
22101 msgid "part-set-name"
22102 msgstr ""
22103
22104 # type: verbatim
22105 #: ../fish/guestfish-actions.pod:3027
22106 #, no-wrap
22107 msgid ""
22108 " part-set-name device partnum name\n"
22109 "\n"
22110 msgstr ""
22111
22112 # type: =head2
22113 #: ../fish/guestfish-actions.pod:3035
22114 msgid "part-to-dev"
22115 msgstr ""
22116
22117 # type: verbatim
22118 #: ../fish/guestfish-actions.pod:3037
22119 #, no-wrap
22120 msgid ""
22121 " part-to-dev partition\n"
22122 "\n"
22123 msgstr ""
22124
22125 # type: textblock
22126 #: ../fish/guestfish-actions.pod:3043
22127 msgid ""
22128 "The named partition must exist, for example as a string returned from L</"
22129 "list-partitions>."
22130 msgstr ""
22131
22132 # type: =head2
22133 #: ../fish/guestfish-actions.pod:3046
22134 msgid "ping-daemon"
22135 msgstr ""
22136
22137 # type: verbatim
22138 #: ../fish/guestfish-actions.pod:3048
22139 #, no-wrap
22140 msgid ""
22141 " ping-daemon\n"
22142 "\n"
22143 msgstr ""
22144
22145 # type: =head2
22146 #: ../fish/guestfish-actions.pod:3055
22147 msgid "pread"
22148 msgstr ""
22149
22150 # type: verbatim
22151 #: ../fish/guestfish-actions.pod:3057
22152 #, no-wrap
22153 msgid ""
22154 " pread path count offset\n"
22155 "\n"
22156 msgstr ""
22157
22158 # type: textblock
22159 #: ../fish/guestfish-actions.pod:3065
22160 msgid "See also L</pwrite>, L</pread-device>."
22161 msgstr ""
22162
22163 # type: =head2
22164 #: ../fish/guestfish-actions.pod:3070
22165 msgid "pread-device"
22166 msgstr ""
22167
22168 # type: verbatim
22169 #: ../fish/guestfish-actions.pod:3072
22170 #, no-wrap
22171 msgid ""
22172 " pread-device device count offset\n"
22173 "\n"
22174 msgstr ""
22175
22176 # type: textblock
22177 #: ../fish/guestfish-actions.pod:3080
22178 msgid "See also L</pread>."
22179 msgstr ""
22180
22181 # type: =head2
22182 #: ../fish/guestfish-actions.pod:3085
22183 msgid "pvcreate"
22184 msgstr ""
22185
22186 # type: verbatim
22187 #: ../fish/guestfish-actions.pod:3087
22188 #, no-wrap
22189 msgid ""
22190 " pvcreate device\n"
22191 "\n"
22192 msgstr ""
22193
22194 # type: =head2
22195 #: ../fish/guestfish-actions.pod:3093
22196 msgid "pvremove"
22197 msgstr ""
22198
22199 # type: verbatim
22200 #: ../fish/guestfish-actions.pod:3095
22201 #, no-wrap
22202 msgid ""
22203 " pvremove device\n"
22204 "\n"
22205 msgstr ""
22206
22207 # type: =head2
22208 #: ../fish/guestfish-actions.pod:3104
22209 msgid "pvresize"
22210 msgstr ""
22211
22212 # type: verbatim
22213 #: ../fish/guestfish-actions.pod:3106
22214 #, no-wrap
22215 msgid ""
22216 " pvresize device\n"
22217 "\n"
22218 msgstr ""
22219
22220 # type: =head2
22221 #: ../fish/guestfish-actions.pod:3111
22222 msgid "pvresize-size"
22223 msgstr ""
22224
22225 # type: verbatim
22226 #: ../fish/guestfish-actions.pod:3113
22227 #, no-wrap
22228 msgid ""
22229 " pvresize-size device size\n"
22230 "\n"
22231 msgstr ""
22232
22233 # type: textblock
22234 #: ../fish/guestfish-actions.pod:3115
22235 msgid ""
22236 "This command is the same as L</pvresize> except that it allows you to "
22237 "specify the new size (in bytes) explicitly."
22238 msgstr ""
22239
22240 # type: =head2
22241 #: ../fish/guestfish-actions.pod:3118
22242 msgid "pvs"
22243 msgstr ""
22244
22245 # type: verbatim
22246 #: ../fish/guestfish-actions.pod:3120
22247 #, no-wrap
22248 msgid ""
22249 " pvs\n"
22250 "\n"
22251 msgstr ""
22252
22253 # type: textblock
22254 #: ../fish/guestfish-actions.pod:3128
22255 msgid "See also L</pvs-full>."
22256 msgstr ""
22257
22258 # type: =head2
22259 #: ../fish/guestfish-actions.pod:3130
22260 msgid "pvs-full"
22261 msgstr ""
22262
22263 # type: verbatim
22264 #: ../fish/guestfish-actions.pod:3132
22265 #, no-wrap
22266 msgid ""
22267 " pvs-full\n"
22268 "\n"
22269 msgstr ""
22270
22271 # type: =head2
22272 #: ../fish/guestfish-actions.pod:3137
22273 msgid "pvuuid"
22274 msgstr ""
22275
22276 # type: verbatim
22277 #: ../fish/guestfish-actions.pod:3139
22278 #, no-wrap
22279 msgid ""
22280 " pvuuid device\n"
22281 "\n"
22282 msgstr ""
22283
22284 # type: =head2
22285 #: ../fish/guestfish-actions.pod:3143
22286 msgid "pwrite"
22287 msgstr ""
22288
22289 # type: verbatim
22290 #: ../fish/guestfish-actions.pod:3145
22291 #, no-wrap
22292 msgid ""
22293 " pwrite path content offset\n"
22294 "\n"
22295 msgstr ""
22296
22297 # type: textblock
22298 #: ../fish/guestfish-actions.pod:3156
22299 msgid "See also L</pread>, L</pwrite-device>."
22300 msgstr ""
22301
22302 # type: =head2
22303 #: ../fish/guestfish-actions.pod:3161
22304 msgid "pwrite-device"
22305 msgstr ""
22306
22307 # type: verbatim
22308 #: ../fish/guestfish-actions.pod:3163
22309 #, no-wrap
22310 msgid ""
22311 " pwrite-device device content offset\n"
22312 "\n"
22313 msgstr ""
22314
22315 # type: textblock
22316 #: ../fish/guestfish-actions.pod:3173
22317 msgid "See also L</pwrite>."
22318 msgstr ""
22319
22320 # type: =head2
22321 #: ../fish/guestfish-actions.pod:3178
22322 msgid "read-file"
22323 msgstr ""
22324
22325 # type: verbatim
22326 #: ../fish/guestfish-actions.pod:3180
22327 #, no-wrap
22328 msgid ""
22329 " read-file path\n"
22330 "\n"
22331 msgstr ""
22332
22333 # type: textblock
22334 #: ../fish/guestfish-actions.pod:3185
22335 msgid ""
22336 "Unlike L</cat>, this function can correctly handle files that contain "
22337 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22338 "is limited in the total size of file that can be handled."
22339 msgstr ""
22340
22341 # type: =head2
22342 #: ../fish/guestfish-actions.pod:3193
22343 msgid "read-lines"
22344 msgstr ""
22345
22346 # type: verbatim
22347 #: ../fish/guestfish-actions.pod:3195
22348 #, no-wrap
22349 msgid ""
22350 " read-lines path\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: textblock
22355 #: ../fish/guestfish-actions.pod:3202
22356 msgid ""
22357 "Note that this function cannot correctly handle binary files (specifically, "
22358 "files containing C<\\0> character which is treated as end of line).  For "
22359 "those you need to use the L</read-file> function which has a more complex "
22360 "interface."
22361 msgstr ""
22362
22363 # type: =head2
22364 #: ../fish/guestfish-actions.pod:3207
22365 msgid "readdir"
22366 msgstr ""
22367
22368 # type: verbatim
22369 #: ../fish/guestfish-actions.pod:3209
22370 #, no-wrap
22371 msgid ""
22372 " readdir dir\n"
22373 "\n"
22374 msgstr ""
22375
22376 # type: textblock
22377 #: ../fish/guestfish-actions.pod:3261
22378 msgid ""
22379 "This function is primarily intended for use by programs.  To get a simple "
22380 "list of names, use L</ls>.  To get a printable directory for human "
22381 "consumption, use L</ll>."
22382 msgstr ""
22383
22384 # type: =head2
22385 #: ../fish/guestfish-actions.pod:3265
22386 msgid "readlink"
22387 msgstr ""
22388
22389 # type: verbatim
22390 #: ../fish/guestfish-actions.pod:3267
22391 #, no-wrap
22392 msgid ""
22393 " readlink path\n"
22394 "\n"
22395 msgstr ""
22396
22397 # type: =head2
22398 #: ../fish/guestfish-actions.pod:3271
22399 msgid "readlinklist"
22400 msgstr ""
22401
22402 # type: verbatim
22403 #: ../fish/guestfish-actions.pod:3273
22404 #, no-wrap
22405 msgid ""
22406 " readlinklist path 'names ...'\n"
22407 "\n"
22408 msgstr ""
22409
22410 # type: =head2
22411 #: ../fish/guestfish-actions.pod:3297
22412 msgid "realpath"
22413 msgstr ""
22414
22415 # type: verbatim
22416 #: ../fish/guestfish-actions.pod:3299
22417 #, no-wrap
22418 msgid ""
22419 " realpath path\n"
22420 "\n"
22421 msgstr ""
22422
22423 # type: =head2
22424 #: ../fish/guestfish-actions.pod:3304
22425 msgid "removexattr"
22426 msgstr ""
22427
22428 # type: verbatim
22429 #: ../fish/guestfish-actions.pod:3306
22430 #, no-wrap
22431 msgid ""
22432 " removexattr xattr path\n"
22433 "\n"
22434 msgstr ""
22435
22436 # type: textblock
22437 #: ../fish/guestfish-actions.pod:3311
22438 msgid "See also: L</lremovexattr>, L<attr(5)>."
22439 msgstr ""
22440
22441 # type: =head2
22442 #: ../fish/guestfish-actions.pod:3313
22443 msgid "resize2fs"
22444 msgstr ""
22445
22446 # type: verbatim
22447 #: ../fish/guestfish-actions.pod:3315
22448 #, no-wrap
22449 msgid ""
22450 " resize2fs device\n"
22451 "\n"
22452 msgstr ""
22453
22454 # type: textblock
22455 #: ../fish/guestfish-actions.pod:3320
22456 msgid ""
22457 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22458 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22459 "gives an error about this and sometimes not.  In any case, it is always safe "
22460 "to call L</e2fsck-f> before calling this function."
22461 msgstr ""
22462
22463 # type: =head2
22464 #: ../fish/guestfish-actions.pod:3326
22465 msgid "resize2fs-size"
22466 msgstr ""
22467
22468 # type: verbatim
22469 #: ../fish/guestfish-actions.pod:3328
22470 #, no-wrap
22471 msgid ""
22472 " resize2fs-size device size\n"
22473 "\n"
22474 msgstr ""
22475
22476 # type: textblock
22477 #: ../fish/guestfish-actions.pod:3330
22478 msgid ""
22479 "This command is the same as L</resize2fs> except that it allows you to "
22480 "specify the new size (in bytes) explicitly."
22481 msgstr ""
22482
22483 # type: =head2
22484 #: ../fish/guestfish-actions.pod:3333
22485 msgid "rm"
22486 msgstr ""
22487
22488 # type: verbatim
22489 #: ../fish/guestfish-actions.pod:3335
22490 #, no-wrap
22491 msgid ""
22492 " rm path\n"
22493 "\n"
22494 msgstr ""
22495
22496 # type: =head2
22497 #: ../fish/guestfish-actions.pod:3339
22498 msgid "rm-rf"
22499 msgstr ""
22500
22501 # type: verbatim
22502 #: ../fish/guestfish-actions.pod:3341
22503 #, no-wrap
22504 msgid ""
22505 " rm-rf path\n"
22506 "\n"
22507 msgstr ""
22508
22509 # type: =head2
22510 #: ../fish/guestfish-actions.pod:3347
22511 msgid "rmdir"
22512 msgstr ""
22513
22514 # type: verbatim
22515 #: ../fish/guestfish-actions.pod:3349
22516 #, no-wrap
22517 msgid ""
22518 " rmdir path\n"
22519 "\n"
22520 msgstr ""
22521
22522 # type: =head2
22523 #: ../fish/guestfish-actions.pod:3353
22524 msgid "rmmountpoint"
22525 msgstr ""
22526
22527 # type: verbatim
22528 #: ../fish/guestfish-actions.pod:3355
22529 #, no-wrap
22530 msgid ""
22531 " rmmountpoint exemptpath\n"
22532 "\n"
22533 msgstr ""
22534
22535 # type: textblock
22536 #: ../fish/guestfish-actions.pod:3357
22537 msgid ""
22538 "This calls removes a mountpoint that was previously created with L</"
22539 "mkmountpoint>.  See L</mkmountpoint> for full details."
22540 msgstr ""
22541
22542 # type: =head2
22543 #: ../fish/guestfish-actions.pod:3361
22544 msgid "scrub-device"
22545 msgstr ""
22546
22547 # type: verbatim
22548 #: ../fish/guestfish-actions.pod:3363
22549 #, no-wrap
22550 msgid ""
22551 " scrub-device device\n"
22552 "\n"
22553 msgstr ""
22554
22555 # type: =head2
22556 #: ../fish/guestfish-actions.pod:3374
22557 msgid "scrub-file"
22558 msgstr ""
22559
22560 # type: verbatim
22561 #: ../fish/guestfish-actions.pod:3376
22562 #, no-wrap
22563 msgid ""
22564 " scrub-file file\n"
22565 "\n"
22566 msgstr ""
22567
22568 # type: =head2
22569 #: ../fish/guestfish-actions.pod:3386
22570 msgid "scrub-freespace"
22571 msgstr ""
22572
22573 # type: verbatim
22574 #: ../fish/guestfish-actions.pod:3388
22575 #, no-wrap
22576 msgid ""
22577 " scrub-freespace dir\n"
22578 "\n"
22579 msgstr ""
22580
22581 # type: textblock
22582 #: ../fish/guestfish-actions.pod:3390
22583 msgid ""
22584 "This command creates the directory C<dir> and then fills it with files until "
22585 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22586 "deletes them.  The intention is to scrub any free space on the partition "
22587 "containing C<dir>."
22588 msgstr ""
22589
22590 # type: =head2
22591 #: ../fish/guestfish-actions.pod:3399
22592 msgid "set-append"
22593 msgstr ""
22594
22595 # type: =head2
22596 #: ../fish/guestfish-actions.pod:3401
22597 msgid "append"
22598 msgstr ""
22599
22600 # type: verbatim
22601 #: ../fish/guestfish-actions.pod:3403
22602 #, no-wrap
22603 msgid ""
22604 " set-append append\n"
22605 "\n"
22606 msgstr ""
22607
22608 # type: =head2
22609 #: ../fish/guestfish-actions.pod:3414
22610 msgid "set-autosync"
22611 msgstr ""
22612
22613 # type: =head2
22614 #: ../fish/guestfish-actions.pod:3416
22615 msgid "autosync"
22616 msgstr ""
22617
22618 # type: verbatim
22619 #: ../fish/guestfish-actions.pod:3418
22620 #, no-wrap
22621 msgid ""
22622 " set-autosync true|false\n"
22623 "\n"
22624 msgstr ""
22625
22626 # type: textblock
22627 #: ../fish/guestfish-actions.pod:3420
22628 msgid ""
22629 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22630 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22631 "closed (also if the program exits without closing handles)."
22632 msgstr ""
22633
22634 # type: =head2
22635 #: ../fish/guestfish-actions.pod:3428
22636 msgid "set-direct"
22637 msgstr ""
22638
22639 # type: =head2
22640 #: ../fish/guestfish-actions.pod:3430
22641 msgid "direct"
22642 msgstr ""
22643
22644 # type: verbatim
22645 #: ../fish/guestfish-actions.pod:3432
22646 #, no-wrap
22647 msgid ""
22648 " set-direct true|false\n"
22649 "\n"
22650 msgstr ""
22651
22652 # type: textblock
22653 #: ../fish/guestfish-actions.pod:3438
22654 msgid ""
22655 "One consequence of this is that log messages aren't caught by the library "
22656 "and handled by L</set-log-message-callback>, but go straight to stdout."
22657 msgstr ""
22658
22659 # type: =head2
22660 #: ../fish/guestfish-actions.pod:3447
22661 msgid "set-e2label"
22662 msgstr ""
22663
22664 # type: verbatim
22665 #: ../fish/guestfish-actions.pod:3449
22666 #, no-wrap
22667 msgid ""
22668 " set-e2label device label\n"
22669 "\n"
22670 msgstr ""
22671
22672 # type: textblock
22673 #: ../fish/guestfish-actions.pod:3455
22674 msgid ""
22675 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
22676 "label on a filesystem."
22677 msgstr ""
22678
22679 # type: =head2
22680 #: ../fish/guestfish-actions.pod:3458
22681 msgid "set-e2uuid"
22682 msgstr ""
22683
22684 # type: verbatim
22685 #: ../fish/guestfish-actions.pod:3460
22686 #, no-wrap
22687 msgid ""
22688 " set-e2uuid device uuid\n"
22689 "\n"
22690 msgstr ""
22691
22692 # type: textblock
22693 #: ../fish/guestfish-actions.pod:3467
22694 msgid ""
22695 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
22696 "UUID of a filesystem."
22697 msgstr ""
22698
22699 # type: =head2
22700 #: ../fish/guestfish-actions.pod:3470
22701 msgid "set-memsize"
22702 msgstr ""
22703
22704 # type: =head2
22705 #: ../fish/guestfish-actions.pod:3472
22706 msgid "memsize"
22707 msgstr ""
22708
22709 # type: verbatim
22710 #: ../fish/guestfish-actions.pod:3474
22711 #, no-wrap
22712 msgid ""
22713 " set-memsize memsize\n"
22714 "\n"
22715 msgstr ""
22716
22717 # type: textblock
22718 #: ../fish/guestfish-actions.pod:3476
22719 msgid ""
22720 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
22721 "This only has any effect if called before L</launch>."
22722 msgstr ""
22723
22724 # type: =head2
22725 #: ../fish/guestfish-actions.pod:3487
22726 msgid "set-network"
22727 msgstr ""
22728
22729 # type: =head2
22730 #: ../fish/guestfish-actions.pod:3489
22731 msgid "network"
22732 msgstr ""
22733
22734 # type: verbatim
22735 #: ../fish/guestfish-actions.pod:3491
22736 #, no-wrap
22737 msgid ""
22738 " set-network true|false\n"
22739 "\n"
22740 msgstr ""
22741
22742 # type: textblock
22743 #: ../fish/guestfish-actions.pod:3499
22744 msgid ""
22745 "You must call this before calling L</launch>, otherwise it has no effect."
22746 msgstr ""
22747
22748 # type: =head2
22749 #: ../fish/guestfish-actions.pod:3502
22750 msgid "set-path"
22751 msgstr ""
22752
22753 # type: =head2
22754 #: ../fish/guestfish-actions.pod:3504
22755 msgid "path"
22756 msgstr ""
22757
22758 # type: verbatim
22759 #: ../fish/guestfish-actions.pod:3506
22760 #, no-wrap
22761 msgid ""
22762 " set-path searchpath\n"
22763 "\n"
22764 msgstr ""
22765
22766 # type: =head2
22767 #: ../fish/guestfish-actions.pod:3515
22768 msgid "set-qemu"
22769 msgstr ""
22770
22771 # type: =head2
22772 #: ../fish/guestfish-actions.pod:3517
22773 msgid "qemu"
22774 msgstr ""
22775
22776 # type: verbatim
22777 #: ../fish/guestfish-actions.pod:3519
22778 #, no-wrap
22779 msgid ""
22780 " set-qemu qemu\n"
22781 "\n"
22782 msgstr ""
22783
22784 # type: =head2
22785 #: ../fish/guestfish-actions.pod:3539
22786 msgid "set-recovery-proc"
22787 msgstr ""
22788
22789 # type: =head2
22790 #: ../fish/guestfish-actions.pod:3541
22791 msgid "recovery-proc"
22792 msgstr ""
22793
22794 # type: verbatim
22795 #: ../fish/guestfish-actions.pod:3543
22796 #, no-wrap
22797 msgid ""
22798 " set-recovery-proc true|false\n"
22799 "\n"
22800 msgstr ""
22801
22802 # type: textblock
22803 #: ../fish/guestfish-actions.pod:3545
22804 msgid ""
22805 "If this is called with the parameter C<false> then L</launch> does not "
22806 "create a recovery process.  The purpose of the recovery process is to stop "
22807 "runaway qemu processes in the case where the main program aborts abruptly."
22808 msgstr ""
22809
22810 # type: textblock
22811 #: ../fish/guestfish-actions.pod:3550
22812 msgid ""
22813 "This only has any effect if called before L</launch>, and the default is "
22814 "true."
22815 msgstr ""
22816
22817 # type: =head2
22818 #: ../fish/guestfish-actions.pod:3559
22819 msgid "set-selinux"
22820 msgstr ""
22821
22822 # type: =head2
22823 #: ../fish/guestfish-actions.pod:3561
22824 msgid "selinux"
22825 msgstr ""
22826
22827 # type: verbatim
22828 #: ../fish/guestfish-actions.pod:3563
22829 #, no-wrap
22830 msgid ""
22831 " set-selinux true|false\n"
22832 "\n"
22833 msgstr ""
22834
22835 # type: =head2
22836 #: ../fish/guestfish-actions.pod:3574
22837 msgid "set-trace"
22838 msgstr ""
22839
22840 # type: =head2
22841 #: ../fish/guestfish-actions.pod:3576
22842 msgid "trace"
22843 msgstr ""
22844
22845 # type: verbatim
22846 #: ../fish/guestfish-actions.pod:3578
22847 #, no-wrap
22848 msgid ""
22849 " set-trace true|false\n"
22850 "\n"
22851 msgstr ""
22852
22853 # type: =head2
22854 #: ../fish/guestfish-actions.pod:3594
22855 msgid "set-verbose"
22856 msgstr ""
22857
22858 # type: =head2
22859 #: ../fish/guestfish-actions.pod:3596
22860 msgid "verbose"
22861 msgstr ""
22862
22863 # type: verbatim
22864 #: ../fish/guestfish-actions.pod:3598
22865 #, no-wrap
22866 msgid ""
22867 " set-verbose true|false\n"
22868 "\n"
22869 msgstr ""
22870
22871 # type: =head2
22872 #: ../fish/guestfish-actions.pod:3605
22873 msgid "setcon"
22874 msgstr ""
22875
22876 # type: verbatim
22877 #: ../fish/guestfish-actions.pod:3607
22878 #, no-wrap
22879 msgid ""
22880 " setcon context\n"
22881 "\n"
22882 msgstr ""
22883
22884 # type: =head2
22885 #: ../fish/guestfish-actions.pod:3614
22886 msgid "setxattr"
22887 msgstr ""
22888
22889 # type: verbatim
22890 #: ../fish/guestfish-actions.pod:3616
22891 #, no-wrap
22892 msgid ""
22893 " setxattr xattr val vallen path\n"
22894 "\n"
22895 msgstr ""
22896
22897 # type: textblock
22898 #: ../fish/guestfish-actions.pod:3622
22899 msgid "See also: L</lsetxattr>, L<attr(5)>."
22900 msgstr ""
22901
22902 # type: =head2
22903 #: ../fish/guestfish-actions.pod:3624
22904 msgid "sfdisk"
22905 msgstr ""
22906
22907 # type: verbatim
22908 #: ../fish/guestfish-actions.pod:3626
22909 #, no-wrap
22910 msgid ""
22911 " sfdisk device cyls heads sectors 'lines ...'\n"
22912 "\n"
22913 msgstr ""
22914
22915 # type: textblock
22916 #: ../fish/guestfish-actions.pod:3648
22917 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
22918 msgstr ""
22919
22920 # type: =head2
22921 #: ../fish/guestfish-actions.pod:3654
22922 msgid "sfdiskM"
22923 msgstr ""
22924
22925 # type: verbatim
22926 #: ../fish/guestfish-actions.pod:3656
22927 #, no-wrap
22928 msgid ""
22929 " sfdiskM device 'lines ...'\n"
22930 "\n"
22931 msgstr ""
22932
22933 # type: textblock
22934 #: ../fish/guestfish-actions.pod:3658
22935 msgid ""
22936 "This is a simplified interface to the L</sfdisk> command, where partition "
22937 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22938 "you don't need to specify the cyls, heads and sectors parameters which were "
22939 "rarely if ever used anyway."
22940 msgstr ""
22941
22942 # type: textblock
22943 #: ../fish/guestfish-actions.pod:3664
22944 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22945 msgstr ""
22946
22947 # type: =head2
22948 #: ../fish/guestfish-actions.pod:3670
22949 msgid "sfdisk-N"
22950 msgstr ""
22951
22952 # type: verbatim
22953 #: ../fish/guestfish-actions.pod:3672
22954 #, no-wrap
22955 msgid ""
22956 " sfdisk-N device partnum cyls heads sectors line\n"
22957 "\n"
22958 msgstr ""
22959
22960 # type: textblock
22961 #: ../fish/guestfish-actions.pod:3677
22962 msgid ""
22963 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
22964 "cyls/heads/sectors parameters."
22965 msgstr ""
22966
22967 # type: textblock
22968 #: ../fish/guestfish-actions.pod:3680
22969 msgid "See also: L</part-add>"
22970 msgstr ""
22971
22972 # type: =head2
22973 #: ../fish/guestfish-actions.pod:3685
22974 msgid "sfdisk-disk-geometry"
22975 msgstr ""
22976
22977 # type: verbatim
22978 #: ../fish/guestfish-actions.pod:3687
22979 #, no-wrap
22980 msgid ""
22981 " sfdisk-disk-geometry device\n"
22982 "\n"
22983 msgstr ""
22984
22985 # type: textblock
22986 #: ../fish/guestfish-actions.pod:3689
22987 msgid ""
22988 "This displays the disk geometry of C<device> read from the partition table.  "
22989 "Especially in the case where the underlying block device has been resized, "
22990 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
22991 "kernel-geometry>)."
22992 msgstr ""
22993
22994 # type: =head2
22995 #: ../fish/guestfish-actions.pod:3697
22996 msgid "sfdisk-kernel-geometry"
22997 msgstr ""
22998
22999 # type: verbatim
23000 #: ../fish/guestfish-actions.pod:3699
23001 #, no-wrap
23002 msgid ""
23003 " sfdisk-kernel-geometry device\n"
23004 "\n"
23005 msgstr ""
23006
23007 # type: =head2
23008 #: ../fish/guestfish-actions.pod:3706
23009 msgid "sfdisk-l"
23010 msgstr ""
23011
23012 # type: verbatim
23013 #: ../fish/guestfish-actions.pod:3708
23014 #, no-wrap
23015 msgid ""
23016 " sfdisk-l device\n"
23017 "\n"
23018 msgstr ""
23019
23020 # type: textblock
23021 #: ../fish/guestfish-actions.pod:3714
23022 msgid "See also: L</part-list>"
23023 msgstr ""
23024
23025 # type: =head2
23026 #: ../fish/guestfish-actions.pod:3716
23027 msgid "sh"
23028 msgstr ""
23029
23030 # type: verbatim
23031 #: ../fish/guestfish-actions.pod:3718
23032 #, no-wrap
23033 msgid ""
23034 " sh command\n"
23035 "\n"
23036 msgstr ""
23037
23038 # type: textblock
23039 #: ../fish/guestfish-actions.pod:3723
23040 msgid "This is like L</command>, but passes the command to:"
23041 msgstr ""
23042
23043 # type: textblock
23044 #: ../fish/guestfish-actions.pod:3731
23045 msgid "All the provisos about L</command> apply to this call."
23046 msgstr ""
23047
23048 # type: =head2
23049 #: ../fish/guestfish-actions.pod:3733
23050 msgid "sh-lines"
23051 msgstr ""
23052
23053 # type: verbatim
23054 #: ../fish/guestfish-actions.pod:3735
23055 #, no-wrap
23056 msgid ""
23057 " sh-lines command\n"
23058 "\n"
23059 msgstr ""
23060
23061 # type: textblock
23062 #: ../fish/guestfish-actions.pod:3737
23063 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23064 msgstr ""
23065
23066 # type: textblock
23067 #: ../fish/guestfish-actions.pod:3740
23068 msgid "See also: L</command-lines>"
23069 msgstr ""
23070
23071 # type: =head2
23072 #: ../fish/guestfish-actions.pod:3742
23073 msgid "sleep"
23074 msgstr ""
23075
23076 # type: verbatim
23077 #: ../fish/guestfish-actions.pod:3744
23078 #, no-wrap
23079 msgid ""
23080 " sleep secs\n"
23081 "\n"
23082 msgstr ""
23083
23084 # type: =head2
23085 #: ../fish/guestfish-actions.pod:3748
23086 msgid "stat"
23087 msgstr ""
23088
23089 # type: verbatim
23090 #: ../fish/guestfish-actions.pod:3750
23091 #, no-wrap
23092 msgid ""
23093 " stat path\n"
23094 "\n"
23095 msgstr ""
23096
23097 # type: =head2
23098 #: ../fish/guestfish-actions.pod:3756
23099 msgid "statvfs"
23100 msgstr ""
23101
23102 # type: verbatim
23103 #: ../fish/guestfish-actions.pod:3758
23104 #, no-wrap
23105 msgid ""
23106 " statvfs path\n"
23107 "\n"
23108 msgstr ""
23109
23110 # type: =head2
23111 #: ../fish/guestfish-actions.pod:3766
23112 msgid "strings"
23113 msgstr ""
23114
23115 # type: verbatim
23116 #: ../fish/guestfish-actions.pod:3768
23117 #, no-wrap
23118 msgid ""
23119 " strings path\n"
23120 "\n"
23121 msgstr ""
23122
23123 # type: =head2
23124 #: ../fish/guestfish-actions.pod:3776
23125 msgid "strings-e"
23126 msgstr ""
23127
23128 # type: verbatim
23129 #: ../fish/guestfish-actions.pod:3778
23130 #, no-wrap
23131 msgid ""
23132 " strings-e encoding path\n"
23133 "\n"
23134 msgstr ""
23135
23136 # type: textblock
23137 #: ../fish/guestfish-actions.pod:3780
23138 msgid ""
23139 "This is like the L</strings> command, but allows you to specify the encoding "
23140 "of strings that are looked for in the source file C<path>."
23141 msgstr ""
23142
23143 # type: textblock
23144 #: ../fish/guestfish-actions.pod:3790
23145 msgid ""
23146 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23147 "ISO-8859-X (this is what L</strings> uses)."
23148 msgstr ""
23149
23150 # type: =head2
23151 #: ../fish/guestfish-actions.pod:3822
23152 msgid "swapoff-device"
23153 msgstr ""
23154
23155 # type: verbatim
23156 #: ../fish/guestfish-actions.pod:3824
23157 #, no-wrap
23158 msgid ""
23159 " swapoff-device device\n"
23160 "\n"
23161 msgstr ""
23162
23163 # type: textblock
23164 #: ../fish/guestfish-actions.pod:3826
23165 msgid ""
23166 "This command disables the libguestfs appliance swap device or partition "
23167 "named C<device>.  See L</swapon-device>."
23168 msgstr ""
23169
23170 # type: =head2
23171 #: ../fish/guestfish-actions.pod:3830
23172 msgid "swapoff-file"
23173 msgstr ""
23174
23175 # type: verbatim
23176 #: ../fish/guestfish-actions.pod:3832
23177 #, no-wrap
23178 msgid ""
23179 " swapoff-file file\n"
23180 "\n"
23181 msgstr ""
23182
23183 # type: =head2
23184 #: ../fish/guestfish-actions.pod:3836
23185 msgid "swapoff-label"
23186 msgstr ""
23187
23188 # type: verbatim
23189 #: ../fish/guestfish-actions.pod:3838
23190 #, no-wrap
23191 msgid ""
23192 " swapoff-label label\n"
23193 "\n"
23194 msgstr ""
23195
23196 # type: =head2
23197 #: ../fish/guestfish-actions.pod:3843
23198 msgid "swapoff-uuid"
23199 msgstr ""
23200
23201 # type: verbatim
23202 #: ../fish/guestfish-actions.pod:3845
23203 #, no-wrap
23204 msgid ""
23205 " swapoff-uuid uuid\n"
23206 "\n"
23207 msgstr ""
23208
23209 # type: =head2
23210 #: ../fish/guestfish-actions.pod:3850
23211 msgid "swapon-device"
23212 msgstr ""
23213
23214 # type: verbatim
23215 #: ../fish/guestfish-actions.pod:3852
23216 #, no-wrap
23217 msgid ""
23218 " swapon-device device\n"
23219 "\n"
23220 msgstr ""
23221
23222 # type: textblock
23223 #: ../fish/guestfish-actions.pod:3854
23224 msgid ""
23225 "This command enables the libguestfs appliance to use the swap device or "
23226 "partition named C<device>.  The increased memory is made available for all "
23227 "commands, for example those run using L</command> or L</sh>."
23228 msgstr ""
23229
23230 # type: =head2
23231 #: ../fish/guestfish-actions.pod:3866
23232 msgid "swapon-file"
23233 msgstr ""
23234
23235 # type: verbatim
23236 #: ../fish/guestfish-actions.pod:3868
23237 #, no-wrap
23238 msgid ""
23239 " swapon-file file\n"
23240 "\n"
23241 msgstr ""
23242
23243 # type: textblock
23244 #: ../fish/guestfish-actions.pod:3870
23245 msgid ""
23246 "This command enables swap to a file.  See L</swapon-device> for other notes."
23247 msgstr ""
23248
23249 # type: =head2
23250 #: ../fish/guestfish-actions.pod:3873
23251 msgid "swapon-label"
23252 msgstr ""
23253
23254 # type: verbatim
23255 #: ../fish/guestfish-actions.pod:3875
23256 #, no-wrap
23257 msgid ""
23258 " swapon-label label\n"
23259 "\n"
23260 msgstr ""
23261
23262 # type: textblock
23263 #: ../fish/guestfish-actions.pod:3877
23264 msgid ""
23265 "This command enables swap to a labeled swap partition.  See L</swapon-"
23266 "device> for other notes."
23267 msgstr ""
23268
23269 # type: =head2
23270 #: ../fish/guestfish-actions.pod:3880
23271 msgid "swapon-uuid"
23272 msgstr ""
23273
23274 # type: verbatim
23275 #: ../fish/guestfish-actions.pod:3882
23276 #, no-wrap
23277 msgid ""
23278 " swapon-uuid uuid\n"
23279 "\n"
23280 msgstr ""
23281
23282 # type: textblock
23283 #: ../fish/guestfish-actions.pod:3884
23284 msgid ""
23285 "This command enables swap to a swap partition with the given UUID.  See L</"
23286 "swapon-device> for other notes."
23287 msgstr ""
23288
23289 # type: =head2
23290 #: ../fish/guestfish-actions.pod:3887
23291 msgid "sync"
23292 msgstr ""
23293
23294 # type: verbatim
23295 #: ../fish/guestfish-actions.pod:3889
23296 #, no-wrap
23297 msgid ""
23298 " sync\n"
23299 "\n"
23300 msgstr ""
23301
23302 # type: =head2
23303 #: ../fish/guestfish-actions.pod:3897
23304 msgid "tail"
23305 msgstr ""
23306
23307 # type: verbatim
23308 #: ../fish/guestfish-actions.pod:3899
23309 #, no-wrap
23310 msgid ""
23311 " tail path\n"
23312 "\n"
23313 msgstr ""
23314
23315 # type: =head2
23316 #: ../fish/guestfish-actions.pod:3907
23317 msgid "tail-n"
23318 msgstr ""
23319
23320 # type: verbatim
23321 #: ../fish/guestfish-actions.pod:3909
23322 #, no-wrap
23323 msgid ""
23324 " tail-n nrlines path\n"
23325 "\n"
23326 msgstr ""
23327
23328 # type: =head2
23329 #: ../fish/guestfish-actions.pod:3922
23330 msgid "tar-in"
23331 msgstr ""
23332
23333 # type: verbatim
23334 #: ../fish/guestfish-actions.pod:3924
23335 #, no-wrap
23336 msgid ""
23337 " tar-in (tarfile|-) directory\n"
23338 "\n"
23339 msgstr ""
23340
23341 # type: textblock
23342 #: ../fish/guestfish-actions.pod:3929
23343 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23344 msgstr ""
23345
23346 # type: =head2
23347 #: ../fish/guestfish-actions.pod:3934
23348 msgid "tar-out"
23349 msgstr ""
23350
23351 # type: verbatim
23352 #: ../fish/guestfish-actions.pod:3936
23353 #, no-wrap
23354 msgid ""
23355 " tar-out directory (tarfile|-)\n"
23356 "\n"
23357 msgstr ""
23358
23359 # type: textblock
23360 #: ../fish/guestfish-actions.pod:3941
23361 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23362 msgstr ""
23363
23364 # type: =head2
23365 #: ../fish/guestfish-actions.pod:3946
23366 msgid "tgz-in"
23367 msgstr ""
23368
23369 # type: verbatim
23370 #: ../fish/guestfish-actions.pod:3948
23371 #, no-wrap
23372 msgid ""
23373 " tgz-in (tarball|-) directory\n"
23374 "\n"
23375 msgstr ""
23376
23377 # type: textblock
23378 #: ../fish/guestfish-actions.pod:3953
23379 msgid "To upload an uncompressed tarball, use L</tar-in>."
23380 msgstr ""
23381
23382 # type: =head2
23383 #: ../fish/guestfish-actions.pod:3957
23384 msgid "tgz-out"
23385 msgstr ""
23386
23387 # type: verbatim
23388 #: ../fish/guestfish-actions.pod:3959
23389 #, no-wrap
23390 msgid ""
23391 " tgz-out directory (tarball|-)\n"
23392 "\n"
23393 msgstr ""
23394
23395 # type: textblock
23396 #: ../fish/guestfish-actions.pod:3964
23397 msgid "To download an uncompressed tarball, use L</tar-out>."
23398 msgstr ""
23399
23400 # type: =head2
23401 #: ../fish/guestfish-actions.pod:3968
23402 msgid "touch"
23403 msgstr ""
23404
23405 # type: verbatim
23406 #: ../fish/guestfish-actions.pod:3970
23407 #, no-wrap
23408 msgid ""
23409 " touch path\n"
23410 "\n"
23411 msgstr ""
23412
23413 # type: =head2
23414 #: ../fish/guestfish-actions.pod:3979
23415 msgid "truncate"
23416 msgstr ""
23417
23418 # type: verbatim
23419 #: ../fish/guestfish-actions.pod:3981
23420 #, no-wrap
23421 msgid ""
23422 " truncate path\n"
23423 "\n"
23424 msgstr ""
23425
23426 # type: =head2
23427 #: ../fish/guestfish-actions.pod:3986
23428 msgid "truncate-size"
23429 msgstr ""
23430
23431 # type: verbatim
23432 #: ../fish/guestfish-actions.pod:3988
23433 #, no-wrap
23434 msgid ""
23435 " truncate-size path size\n"
23436 "\n"
23437 msgstr ""
23438
23439 # type: textblock
23440 #: ../fish/guestfish-actions.pod:3993
23441 msgid ""
23442 "If the current file size is less than C<size> then the file is extended to "
23443 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23444 "blocks are not allocated for the file until you write to it).  To create a "
23445 "non-sparse file of zeroes, use L</fallocate64> instead."
23446 msgstr ""
23447
23448 # type: =head2
23449 #: ../fish/guestfish-actions.pod:3999
23450 msgid "tune2fs-l"
23451 msgstr ""
23452
23453 # type: verbatim
23454 #: ../fish/guestfish-actions.pod:4001
23455 #, no-wrap
23456 msgid ""
23457 " tune2fs-l device\n"
23458 "\n"
23459 msgstr ""
23460
23461 # type: =head2
23462 #: ../fish/guestfish-actions.pod:4011
23463 msgid "txz-in"
23464 msgstr ""
23465
23466 # type: verbatim
23467 #: ../fish/guestfish-actions.pod:4013
23468 #, no-wrap
23469 msgid ""
23470 " txz-in (tarball|-) directory\n"
23471 "\n"
23472 msgstr ""
23473
23474 # type: =head2
23475 #: ../fish/guestfish-actions.pod:4020
23476 msgid "txz-out"
23477 msgstr ""
23478
23479 # type: verbatim
23480 #: ../fish/guestfish-actions.pod:4022
23481 #, no-wrap
23482 msgid ""
23483 " txz-out directory (tarball|-)\n"
23484 "\n"
23485 msgstr ""
23486
23487 # type: =head2
23488 #: ../fish/guestfish-actions.pod:4029
23489 msgid "umask"
23490 msgstr ""
23491
23492 # type: verbatim
23493 #: ../fish/guestfish-actions.pod:4031
23494 #, no-wrap
23495 msgid ""
23496 " umask mask\n"
23497 "\n"
23498 msgstr ""
23499
23500 # type: textblock
23501 #: ../fish/guestfish-actions.pod:4045
23502 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23503 msgstr ""
23504
23505 # type: =head2
23506 #: ../fish/guestfish-actions.pod:4050
23507 msgid "umount"
23508 msgstr ""
23509
23510 # type: =head2
23511 #: ../fish/guestfish-actions.pod:4052
23512 msgid "unmount"
23513 msgstr ""
23514
23515 # type: verbatim
23516 #: ../fish/guestfish-actions.pod:4054
23517 #, no-wrap
23518 msgid ""
23519 " umount pathordevice\n"
23520 "\n"
23521 msgstr ""
23522
23523 # type: =head2
23524 #: ../fish/guestfish-actions.pod:4060
23525 msgid "umount-all"
23526 msgstr ""
23527
23528 # type: =head2
23529 #: ../fish/guestfish-actions.pod:4062
23530 msgid "unmount-all"
23531 msgstr ""
23532
23533 # type: verbatim
23534 #: ../fish/guestfish-actions.pod:4064
23535 #, no-wrap
23536 msgid ""
23537 " umount-all\n"
23538 "\n"
23539 msgstr ""
23540
23541 # type: =head2
23542 #: ../fish/guestfish-actions.pod:4070
23543 msgid "upload"
23544 msgstr ""
23545
23546 # type: verbatim
23547 #: ../fish/guestfish-actions.pod:4072
23548 #, no-wrap
23549 msgid ""
23550 " upload (filename|-) remotefilename\n"
23551 "\n"
23552 msgstr ""
23553
23554 # type: textblock
23555 #: ../fish/guestfish-actions.pod:4079
23556 msgid "See also L</download>."
23557 msgstr ""
23558
23559 # type: =head2
23560 #: ../fish/guestfish-actions.pod:4083
23561 msgid "upload-offset"
23562 msgstr ""
23563
23564 # type: verbatim
23565 #: ../fish/guestfish-actions.pod:4085
23566 #, no-wrap
23567 msgid ""
23568 " upload-offset (filename|-) remotefilename offset\n"
23569 "\n"
23570 msgstr ""
23571
23572 # type: textblock
23573 #: ../fish/guestfish-actions.pod:4097
23574 msgid ""
23575 "Note that there is no limit on the amount of data that can be uploaded with "
23576 "this call, unlike with L</pwrite>, and this call always writes the full "
23577 "amount unless an error occurs."
23578 msgstr ""
23579
23580 # type: textblock
23581 #: ../fish/guestfish-actions.pod:4102
23582 msgid "See also L</upload>, L</pwrite>."
23583 msgstr ""
23584
23585 # type: =head2
23586 #: ../fish/guestfish-actions.pod:4106
23587 msgid "utimens"
23588 msgstr ""
23589
23590 # type: verbatim
23591 #: ../fish/guestfish-actions.pod:4108
23592 #, no-wrap
23593 msgid ""
23594 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23595 "\n"
23596 msgstr ""
23597
23598 # type: =head2
23599 #: ../fish/guestfish-actions.pod:4127
23600 msgid "version"
23601 msgstr ""
23602
23603 # type: verbatim
23604 #: ../fish/guestfish-actions.pod:4129
23605 #, no-wrap
23606 msgid ""
23607 " version\n"
23608 "\n"
23609 msgstr ""
23610
23611 # type: textblock
23612 #: ../fish/guestfish-actions.pod:4156
23613 msgid ""
23614 "I<Note:> Don't use this call to test for availability of features.  In "
23615 "enterprise distributions we backport features from later versions into "
23616 "earlier versions, making this an unreliable way to test for features.  Use "
23617 "L</available> instead."
23618 msgstr ""
23619
23620 # type: =head2
23621 #: ../fish/guestfish-actions.pod:4162
23622 msgid "vfs-label"
23623 msgstr ""
23624
23625 # type: verbatim
23626 #: ../fish/guestfish-actions.pod:4164
23627 #, no-wrap
23628 msgid ""
23629 " vfs-label device\n"
23630 "\n"
23631 msgstr ""
23632
23633 # type: textblock
23634 #: ../fish/guestfish-actions.pod:4171
23635 msgid "To find a filesystem from the label, use L</findfs-label>."
23636 msgstr ""
23637
23638 # type: =head2
23639 #: ../fish/guestfish-actions.pod:4173
23640 msgid "vfs-type"
23641 msgstr ""
23642
23643 # type: verbatim
23644 #: ../fish/guestfish-actions.pod:4175
23645 #, no-wrap
23646 msgid ""
23647 " vfs-type device\n"
23648 "\n"
23649 msgstr ""
23650
23651 # type: =head2
23652 #: ../fish/guestfish-actions.pod:4185
23653 msgid "vfs-uuid"
23654 msgstr ""
23655
23656 # type: verbatim
23657 #: ../fish/guestfish-actions.pod:4187
23658 #, no-wrap
23659 msgid ""
23660 " vfs-uuid device\n"
23661 "\n"
23662 msgstr ""
23663
23664 # type: textblock
23665 #: ../fish/guestfish-actions.pod:4194
23666 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
23667 msgstr ""
23668
23669 # type: =head2
23670 #: ../fish/guestfish-actions.pod:4196
23671 msgid "vg-activate"
23672 msgstr ""
23673
23674 # type: verbatim
23675 #: ../fish/guestfish-actions.pod:4198
23676 #, no-wrap
23677 msgid ""
23678 " vg-activate true|false 'volgroups ...'\n"
23679 "\n"
23680 msgstr ""
23681
23682 # type: =head2
23683 #: ../fish/guestfish-actions.pod:4211
23684 msgid "vg-activate-all"
23685 msgstr ""
23686
23687 # type: verbatim
23688 #: ../fish/guestfish-actions.pod:4213
23689 #, no-wrap
23690 msgid ""
23691 " vg-activate-all true|false\n"
23692 "\n"
23693 msgstr ""
23694
23695 # type: =head2
23696 #: ../fish/guestfish-actions.pod:4223
23697 msgid "vgcreate"
23698 msgstr ""
23699
23700 # type: verbatim
23701 #: ../fish/guestfish-actions.pod:4225
23702 #, no-wrap
23703 msgid ""
23704 " vgcreate volgroup 'physvols ...'\n"
23705 "\n"
23706 msgstr ""
23707
23708 # type: =head2
23709 #: ../fish/guestfish-actions.pod:4230
23710 msgid "vglvuuids"
23711 msgstr ""
23712
23713 # type: verbatim
23714 #: ../fish/guestfish-actions.pod:4232
23715 #, no-wrap
23716 msgid ""
23717 " vglvuuids vgname\n"
23718 "\n"
23719 msgstr ""
23720
23721 # type: textblock
23722 #: ../fish/guestfish-actions.pod:4237
23723 msgid ""
23724 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
23725 "logical volumes and volume groups."
23726 msgstr ""
23727
23728 # type: textblock
23729 #: ../fish/guestfish-actions.pod:4240
23730 msgid "See also L</vgpvuuids>."
23731 msgstr ""
23732
23733 # type: =head2
23734 #: ../fish/guestfish-actions.pod:4242
23735 msgid "vgpvuuids"
23736 msgstr ""
23737
23738 # type: verbatim
23739 #: ../fish/guestfish-actions.pod:4244
23740 #, no-wrap
23741 msgid ""
23742 " vgpvuuids vgname\n"
23743 "\n"
23744 msgstr ""
23745
23746 # type: textblock
23747 #: ../fish/guestfish-actions.pod:4249
23748 msgid ""
23749 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
23750 "physical volumes and volume groups."
23751 msgstr ""
23752
23753 # type: textblock
23754 #: ../fish/guestfish-actions.pod:4252
23755 msgid "See also L</vglvuuids>."
23756 msgstr ""
23757
23758 # type: =head2
23759 #: ../fish/guestfish-actions.pod:4254
23760 msgid "vgremove"
23761 msgstr ""
23762
23763 # type: verbatim
23764 #: ../fish/guestfish-actions.pod:4256
23765 #, no-wrap
23766 msgid ""
23767 " vgremove vgname\n"
23768 "\n"
23769 msgstr ""
23770
23771 # type: =head2
23772 #: ../fish/guestfish-actions.pod:4263
23773 msgid "vgrename"
23774 msgstr ""
23775
23776 # type: verbatim
23777 #: ../fish/guestfish-actions.pod:4265
23778 #, no-wrap
23779 msgid ""
23780 " vgrename volgroup newvolgroup\n"
23781 "\n"
23782 msgstr ""
23783
23784 # type: =head2
23785 #: ../fish/guestfish-actions.pod:4269
23786 msgid "vgs"
23787 msgstr ""
23788
23789 # type: verbatim
23790 #: ../fish/guestfish-actions.pod:4271
23791 #, no-wrap
23792 msgid ""
23793 " vgs\n"
23794 "\n"
23795 msgstr ""
23796
23797 # type: textblock
23798 #: ../fish/guestfish-actions.pod:4279
23799 msgid "See also L</vgs-full>."
23800 msgstr ""
23801
23802 # type: =head2
23803 #: ../fish/guestfish-actions.pod:4281
23804 msgid "vgs-full"
23805 msgstr ""
23806
23807 # type: verbatim
23808 #: ../fish/guestfish-actions.pod:4283
23809 #, no-wrap
23810 msgid ""
23811 " vgs-full\n"
23812 "\n"
23813 msgstr ""
23814
23815 # type: =head2
23816 #: ../fish/guestfish-actions.pod:4288
23817 msgid "vgscan"
23818 msgstr ""
23819
23820 # type: verbatim
23821 #: ../fish/guestfish-actions.pod:4290
23822 #, no-wrap
23823 msgid ""
23824 " vgscan\n"
23825 "\n"
23826 msgstr ""
23827
23828 # type: =head2
23829 #: ../fish/guestfish-actions.pod:4295
23830 msgid "vguuid"
23831 msgstr ""
23832
23833 # type: verbatim
23834 #: ../fish/guestfish-actions.pod:4297
23835 #, no-wrap
23836 msgid ""
23837 " vguuid vgname\n"
23838 "\n"
23839 msgstr ""
23840
23841 # type: =head2
23842 #: ../fish/guestfish-actions.pod:4301
23843 msgid "wc-c"
23844 msgstr ""
23845
23846 # type: verbatim
23847 #: ../fish/guestfish-actions.pod:4303
23848 #, no-wrap
23849 msgid ""
23850 " wc-c path\n"
23851 "\n"
23852 msgstr ""
23853
23854 # type: =head2
23855 #: ../fish/guestfish-actions.pod:4308
23856 msgid "wc-l"
23857 msgstr ""
23858
23859 # type: verbatim
23860 #: ../fish/guestfish-actions.pod:4310
23861 #, no-wrap
23862 msgid ""
23863 " wc-l path\n"
23864 "\n"
23865 msgstr ""
23866
23867 # type: =head2
23868 #: ../fish/guestfish-actions.pod:4315
23869 msgid "wc-w"
23870 msgstr ""
23871
23872 # type: verbatim
23873 #: ../fish/guestfish-actions.pod:4317
23874 #, no-wrap
23875 msgid ""
23876 " wc-w path\n"
23877 "\n"
23878 msgstr ""
23879
23880 # type: =head2
23881 #: ../fish/guestfish-actions.pod:4322
23882 msgid "write"
23883 msgstr ""
23884
23885 # type: verbatim
23886 #: ../fish/guestfish-actions.pod:4324
23887 #, no-wrap
23888 msgid ""
23889 " write path content\n"
23890 "\n"
23891 msgstr ""
23892
23893 # type: =head2
23894 #: ../fish/guestfish-actions.pod:4332
23895 msgid "write-file"
23896 msgstr ""
23897
23898 # type: verbatim
23899 #: ../fish/guestfish-actions.pod:4334
23900 #, no-wrap
23901 msgid ""
23902 " write-file path content size\n"
23903 "\n"
23904 msgstr ""
23905
23906 # type: =head2
23907 #: ../fish/guestfish-actions.pod:4357
23908 msgid "zegrep"
23909 msgstr ""
23910
23911 # type: verbatim
23912 #: ../fish/guestfish-actions.pod:4359
23913 #, no-wrap
23914 msgid ""
23915 " zegrep regex path\n"
23916 "\n"
23917 msgstr ""
23918
23919 # type: =head2
23920 #: ../fish/guestfish-actions.pod:4367
23921 msgid "zegrepi"
23922 msgstr ""
23923
23924 # type: verbatim
23925 #: ../fish/guestfish-actions.pod:4369
23926 #, no-wrap
23927 msgid ""
23928 " zegrepi regex path\n"
23929 "\n"
23930 msgstr ""
23931
23932 # type: =head2
23933 #: ../fish/guestfish-actions.pod:4377
23934 msgid "zero"
23935 msgstr ""
23936
23937 # type: verbatim
23938 #: ../fish/guestfish-actions.pod:4379
23939 #, no-wrap
23940 msgid ""
23941 " zero device\n"
23942 "\n"
23943 msgstr ""
23944
23945 # type: textblock
23946 #: ../fish/guestfish-actions.pod:4387
23947 msgid "See also: L</zero-device>, L</scrub-device>."
23948 msgstr ""
23949
23950 # type: =head2
23951 #: ../fish/guestfish-actions.pod:4389
23952 msgid "zero-device"
23953 msgstr ""
23954
23955 # type: verbatim
23956 #: ../fish/guestfish-actions.pod:4391
23957 #, no-wrap
23958 msgid ""
23959 " zero-device device\n"
23960 "\n"
23961 msgstr ""
23962
23963 # type: textblock
23964 #: ../fish/guestfish-actions.pod:4393
23965 msgid ""
23966 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23967 "which just zeroes the first few blocks of a device."
23968 msgstr ""
23969
23970 # type: =head2
23971 #: ../fish/guestfish-actions.pod:4400
23972 msgid "zerofree"
23973 msgstr ""
23974
23975 # type: verbatim
23976 #: ../fish/guestfish-actions.pod:4402
23977 #, no-wrap
23978 msgid ""
23979 " zerofree device\n"
23980 "\n"
23981 msgstr ""
23982
23983 # type: =head2
23984 #: ../fish/guestfish-actions.pod:4415
23985 msgid "zfgrep"
23986 msgstr ""
23987
23988 # type: verbatim
23989 #: ../fish/guestfish-actions.pod:4417
23990 #, no-wrap
23991 msgid ""
23992 " zfgrep pattern path\n"
23993 "\n"
23994 msgstr ""
23995
23996 # type: =head2
23997 #: ../fish/guestfish-actions.pod:4425
23998 msgid "zfgrepi"
23999 msgstr ""
24000
24001 # type: verbatim
24002 #: ../fish/guestfish-actions.pod:4427
24003 #, no-wrap
24004 msgid ""
24005 " zfgrepi pattern path\n"
24006 "\n"
24007 msgstr ""
24008
24009 # type: =head2
24010 #: ../fish/guestfish-actions.pod:4435
24011 msgid "zfile"
24012 msgstr ""
24013
24014 # type: verbatim
24015 #: ../fish/guestfish-actions.pod:4437
24016 #, no-wrap
24017 msgid ""
24018 " zfile meth path\n"
24019 "\n"
24020 msgstr ""
24021
24022 # type: textblock
24023 #: ../fish/guestfish-actions.pod:4444
24024 msgid ""
24025 "Since 1.0.63, use L</file> instead which can now process compressed files."
24026 msgstr ""
24027
24028 # type: =head2
24029 #: ../fish/guestfish-actions.pod:4454
24030 msgid "zgrep"
24031 msgstr ""
24032
24033 # type: verbatim
24034 #: ../fish/guestfish-actions.pod:4456
24035 #, no-wrap
24036 msgid ""
24037 " zgrep regex path\n"
24038 "\n"
24039 msgstr ""
24040
24041 # type: =head2
24042 #: ../fish/guestfish-actions.pod:4464
24043 msgid "zgrepi"
24044 msgstr ""
24045
24046 # type: verbatim
24047 #: ../fish/guestfish-actions.pod:4466
24048 #, no-wrap
24049 msgid ""
24050 " zgrepi regex path\n"
24051 "\n"
24052 msgstr ""
24053
24054 # type: =head2
24055 #: ../fish/guestfish-commands.pod:1
24056 msgid "alloc"
24057 msgstr ""
24058
24059 # type: =head2
24060 #: ../fish/guestfish-commands.pod:3
24061 msgid "allocate"
24062 msgstr ""
24063
24064 # type: verbatim
24065 #: ../fish/guestfish-commands.pod:5
24066 #, no-wrap
24067 msgid ""
24068 " alloc filename size\n"
24069 "\n"
24070 msgstr ""
24071
24072 # type: textblock
24073 #: ../fish/guestfish-commands.pod:7
24074 msgid ""
24075 "This creates an empty (zeroed) file of the given size, and then adds so it "
24076 "can be further examined."
24077 msgstr ""
24078
24079 # type: textblock
24080 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24081 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24082 msgstr ""
24083
24084 # type: textblock
24085 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24086 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24087 msgstr ""
24088
24089 # type: textblock
24090 #: ../fish/guestfish-commands.pod:14
24091 msgid ""
24092 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24093 "image, see L</PREPARED DISK IMAGES>."
24094 msgstr ""
24095
24096 # type: =head2
24097 #: ../fish/guestfish-commands.pod:17
24098 msgid "copy-in"
24099 msgstr ""
24100
24101 # type: verbatim
24102 #: ../fish/guestfish-commands.pod:19
24103 #, no-wrap
24104 msgid ""
24105 " copy-in local [local ...] /remotedir\n"
24106 "\n"
24107 msgstr ""
24108
24109 # type: textblock
24110 #: ../fish/guestfish-commands.pod:21
24111 msgid ""
24112 "C<copy-in> copies local files or directories recursively into the disk "
24113 "image, placing them in the directory called C</remotedir> (which must "
24114 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24115 "other commands as necessary."
24116 msgstr ""
24117
24118 # type: textblock
24119 #: ../fish/guestfish-commands.pod:26
24120 msgid ""
24121 "Multiple local files and directories can be specified, but the last "
24122 "parameter must always be a remote directory.  Wildcards cannot be used."
24123 msgstr ""
24124
24125 # type: =head2
24126 #: ../fish/guestfish-commands.pod:30
24127 msgid "copy-out"
24128 msgstr ""
24129
24130 # type: verbatim
24131 #: ../fish/guestfish-commands.pod:32
24132 #, no-wrap
24133 msgid ""
24134 " copy-out remote [remote ...] localdir\n"
24135 "\n"
24136 msgstr ""
24137
24138 # type: textblock
24139 #: ../fish/guestfish-commands.pod:34
24140 msgid ""
24141 "C<copy-out> copies remote files or directories recursively out of the disk "
24142 "image, placing them on the host disk in a local directory called C<localdir> "
24143 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
24144 "download>, L</tar-out> and other commands as necessary."
24145 msgstr ""
24146
24147 # type: textblock
24148 #: ../fish/guestfish-commands.pod:40
24149 msgid ""
24150 "Multiple remote files and directories can be specified, but the last "
24151 "parameter must always be a local directory.  To download to the current "
24152 "directory, use C<.> as in:"
24153 msgstr ""
24154
24155 # type: verbatim
24156 #: ../fish/guestfish-commands.pod:44
24157 #, no-wrap
24158 msgid ""
24159 " copy-out /home .\n"
24160 "\n"
24161 msgstr ""
24162
24163 # type: textblock
24164 #: ../fish/guestfish-commands.pod:46
24165 msgid ""
24166 "Wildcards cannot be used in the ordinary command, but you can use them with "
24167 "the help of L</glob> like this:"
24168 msgstr ""
24169
24170 # type: verbatim
24171 #: ../fish/guestfish-commands.pod:49
24172 #, no-wrap
24173 msgid ""
24174 " glob copy-out /home/* .\n"
24175 "\n"
24176 msgstr ""
24177
24178 # type: =head2
24179 #: ../fish/guestfish-commands.pod:51
24180 msgid "echo"
24181 msgstr ""
24182
24183 # type: verbatim
24184 #: ../fish/guestfish-commands.pod:53
24185 #, no-wrap
24186 msgid ""
24187 " echo [params ...]\n"
24188 "\n"
24189 msgstr ""
24190
24191 # type: textblock
24192 #: ../fish/guestfish-commands.pod:55
24193 msgid "This echos the parameters to the terminal."
24194 msgstr ""
24195
24196 # type: =head2
24197 #: ../fish/guestfish-commands.pod:57
24198 msgid "edit"
24199 msgstr ""
24200
24201 # type: =head2
24202 #: ../fish/guestfish-commands.pod:59
24203 msgid "vi"
24204 msgstr ""
24205
24206 # type: =head2
24207 #: ../fish/guestfish-commands.pod:61
24208 msgid "emacs"
24209 msgstr ""
24210
24211 # type: verbatim
24212 #: ../fish/guestfish-commands.pod:63
24213 #, no-wrap
24214 msgid ""
24215 " edit filename\n"
24216 "\n"
24217 msgstr ""
24218
24219 # type: textblock
24220 #: ../fish/guestfish-commands.pod:65
24221 msgid ""
24222 "This is used to edit a file.  It downloads the file, edits it locally using "
24223 "your editor, then uploads the result."
24224 msgstr ""
24225
24226 # type: textblock
24227 #: ../fish/guestfish-commands.pod:68
24228 msgid ""
24229 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24230 "or C<emacs> you will get those corresponding editors."
24231 msgstr ""
24232
24233 # type: =head2
24234 #: ../fish/guestfish-commands.pod:72
24235 msgid "glob"
24236 msgstr ""
24237
24238 # type: verbatim
24239 #: ../fish/guestfish-commands.pod:74
24240 #, no-wrap
24241 msgid ""
24242 " glob command args...\n"
24243 "\n"
24244 msgstr ""
24245
24246 # type: textblock
24247 #: ../fish/guestfish-commands.pod:76
24248 msgid ""
24249 "Expand wildcards in any paths in the args list, and run C<command> "
24250 "repeatedly on each matching path."
24251 msgstr ""
24252
24253 # type: textblock
24254 #: ../fish/guestfish-commands.pod:79
24255 msgid "See L</WILDCARDS AND GLOBBING>."
24256 msgstr ""
24257
24258 # type: =head2
24259 #: ../fish/guestfish-commands.pod:81
24260 msgid "hexedit"
24261 msgstr ""
24262
24263 # type: verbatim
24264 #: ../fish/guestfish-commands.pod:83
24265 #, no-wrap
24266 msgid ""
24267 " hexedit <filename|device>\n"
24268 " hexedit <filename|device> <max>\n"
24269 " hexedit <filename|device> <start> <max>\n"
24270 "\n"
24271 msgstr ""
24272
24273 # type: textblock
24274 #: ../fish/guestfish-commands.pod:87
24275 msgid ""
24276 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24277 "device."
24278 msgstr ""
24279
24280 # type: textblock
24281 #: ../fish/guestfish-commands.pod:90
24282 msgid ""
24283 "This command works by downloading potentially the whole file or device, "
24284 "editing it locally, then uploading it.  If the file or device is large, you "
24285 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24286 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24287 "usual modifiers allowed such as C<1M> (1 megabyte)."
24288 msgstr ""
24289
24290 # type: textblock
24291 #: ../fish/guestfish-commands.pod:97
24292 msgid "For example to edit the first few sectors of a disk you might do:"
24293 msgstr ""
24294
24295 # type: verbatim
24296 #: ../fish/guestfish-commands.pod:100
24297 #, no-wrap
24298 msgid ""
24299 " hexedit /dev/sda 1M\n"
24300 "\n"
24301 msgstr ""
24302
24303 # type: textblock
24304 #: ../fish/guestfish-commands.pod:102
24305 msgid ""
24306 "which would allow you to edit anywhere within the first megabyte of the disk."
24307 msgstr ""
24308
24309 # type: textblock
24310 #: ../fish/guestfish-commands.pod:105
24311 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24312 msgstr ""
24313
24314 # type: verbatim
24315 #: ../fish/guestfish-commands.pod:107
24316 #, no-wrap
24317 msgid ""
24318 " hexedit /dev/sda1 0x400 0x400\n"
24319 "\n"
24320 msgstr ""
24321
24322 # type: textblock
24323 #: ../fish/guestfish-commands.pod:109
24324 msgid "(assuming the superblock is in the standard location)."
24325 msgstr ""
24326
24327 # type: textblock
24328 #: ../fish/guestfish-commands.pod:111
24329 msgid ""
24330 "This command requires the external L<hexedit(1)> program.  You can specify "
24331 "another program to use by setting the C<HEXEDITOR> environment variable."
24332 msgstr ""
24333
24334 # type: textblock
24335 #: ../fish/guestfish-commands.pod:115
24336 msgid "See also L</hexdump>."
24337 msgstr ""
24338
24339 # type: =head2
24340 #: ../fish/guestfish-commands.pod:117
24341 msgid "lcd"
24342 msgstr ""
24343
24344 # type: verbatim
24345 #: ../fish/guestfish-commands.pod:119
24346 #, no-wrap
24347 msgid ""
24348 " lcd directory\n"
24349 "\n"
24350 msgstr ""
24351
24352 # type: textblock
24353 #: ../fish/guestfish-commands.pod:121
24354 msgid ""
24355 "Change the local directory, ie. the current directory of guestfish itself."
24356 msgstr ""
24357
24358 # type: textblock
24359 #: ../fish/guestfish-commands.pod:124
24360 msgid "Note that C<!cd> won't do what you might expect."
24361 msgstr ""
24362
24363 # type: =head2
24364 #: ../fish/guestfish-commands.pod:126
24365 msgid "man"
24366 msgstr ""
24367
24368 # type: =head2
24369 #: ../fish/guestfish-commands.pod:128
24370 msgid "manual"
24371 msgstr ""
24372
24373 # type: verbatim
24374 #: ../fish/guestfish-commands.pod:130
24375 #, no-wrap
24376 msgid ""
24377 "  man\n"
24378 "\n"
24379 msgstr ""
24380
24381 # type: textblock
24382 #: ../fish/guestfish-commands.pod:132
24383 msgid "Opens the manual page for guestfish."
24384 msgstr ""
24385
24386 # type: =head2
24387 #: ../fish/guestfish-commands.pod:134
24388 msgid "more"
24389 msgstr ""
24390
24391 # type: =head2
24392 #: ../fish/guestfish-commands.pod:136
24393 msgid "less"
24394 msgstr ""
24395
24396 # type: verbatim
24397 #: ../fish/guestfish-commands.pod:138
24398 #, no-wrap
24399 msgid ""
24400 " more filename\n"
24401 "\n"
24402 msgstr ""
24403
24404 # type: verbatim
24405 #: ../fish/guestfish-commands.pod:140
24406 #, no-wrap
24407 msgid ""
24408 " less filename\n"
24409 "\n"
24410 msgstr ""
24411
24412 # type: textblock
24413 #: ../fish/guestfish-commands.pod:142
24414 msgid "This is used to view a file."
24415 msgstr ""
24416
24417 # type: textblock
24418 #: ../fish/guestfish-commands.pod:144
24419 msgid ""
24420 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24421 "C<less> you will get the C<less> command specifically."
24422 msgstr ""
24423
24424 # type: =head2
24425 #: ../fish/guestfish-commands.pod:147
24426 msgid "reopen"
24427 msgstr ""
24428
24429 # type: verbatim
24430 #: ../fish/guestfish-commands.pod:149
24431 #, no-wrap
24432 msgid ""
24433 "  reopen\n"
24434 "\n"
24435 msgstr ""
24436
24437 # type: textblock
24438 #: ../fish/guestfish-commands.pod:151
24439 msgid ""
24440 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24441 "normally, because the handle is closed properly when guestfish exits.  "
24442 "However this is occasionally useful for testing."
24443 msgstr ""
24444
24445 # type: =head2
24446 #: ../fish/guestfish-commands.pod:155
24447 msgid "sparse"
24448 msgstr ""
24449
24450 # type: verbatim
24451 #: ../fish/guestfish-commands.pod:157
24452 #, no-wrap
24453 msgid ""
24454 " sparse filename size\n"
24455 "\n"
24456 msgstr ""
24457
24458 # type: textblock
24459 #: ../fish/guestfish-commands.pod:159
24460 msgid ""
24461 "This creates an empty sparse file of the given size, and then adds so it can "
24462 "be further examined."
24463 msgstr ""
24464
24465 # type: textblock
24466 #: ../fish/guestfish-commands.pod:162
24467 msgid ""
24468 "In all respects it works the same as the L</alloc> command, except that the "
24469 "image file is allocated sparsely, which means that disk blocks are not "
24470 "assigned to the file until they are needed.  Sparse disk files only use "
24471 "space when written to, but they are slower and there is a danger you could "
24472 "run out of real disk space during a write operation."
24473 msgstr ""
24474
24475 # type: =head2
24476 #: ../fish/guestfish-commands.pod:172
24477 msgid "supported"
24478 msgstr ""
24479
24480 # type: verbatim
24481 #: ../fish/guestfish-commands.pod:174
24482 #, no-wrap
24483 msgid ""
24484 " supported\n"
24485 "\n"
24486 msgstr ""
24487
24488 # type: textblock
24489 #: ../fish/guestfish-commands.pod:176
24490 msgid ""
24491 "This command returns a list of the optional groups known to the daemon, and "
24492 "indicates which ones are supported by this build of the libguestfs appliance."
24493 msgstr ""
24494
24495 # type: textblock
24496 #: ../fish/guestfish-commands.pod:180
24497 msgid "See also L<guestfs(3)/AVAILABILITY>."
24498 msgstr ""
24499
24500 # type: =head2
24501 #: ../fish/guestfish-commands.pod:182
24502 msgid "time"
24503 msgstr ""
24504
24505 # type: verbatim
24506 #: ../fish/guestfish-commands.pod:184
24507 #, no-wrap
24508 msgid ""
24509 " time command args...\n"
24510 "\n"
24511 msgstr ""
24512
24513 # type: textblock
24514 #: ../fish/guestfish-commands.pod:186
24515 msgid ""
24516 "Run the command as usual, but print the elapsed time afterwards.  This can "
24517 "be useful for benchmarking operations."
24518 msgstr ""
24519
24520 # type: textblock
24521 #: ../test-tool/libguestfs-test-tool.pod:5
24522 msgid "libguestfs-test-tool - End user tests for libguestfs"
24523 msgstr ""
24524
24525 # type: verbatim
24526 #: ../test-tool/libguestfs-test-tool.pod:9
24527 #, no-wrap
24528 msgid ""
24529 " libguestfs-test-tool [--options]\n"
24530 "\n"
24531 msgstr ""
24532
24533 # type: textblock
24534 #: ../test-tool/libguestfs-test-tool.pod:13
24535 msgid ""
24536 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24537 "and developers, to allow them to check basic libguestfs functionality is "
24538 "working.  This is needed because libguestfs occasionally breaks for reasons "
24539 "beyond our control: usually because of changes in the underlying qemu or "
24540 "kernel packages, or the host environment."
24541 msgstr ""
24542
24543 # type: textblock
24544 #: ../test-tool/libguestfs-test-tool.pod:20
24545 msgid "If you suspect a problem in libguestfs, then just run:"
24546 msgstr ""
24547
24548 # type: verbatim
24549 #: ../test-tool/libguestfs-test-tool.pod:22
24550 #, no-wrap
24551 msgid ""
24552 " libguestfs-test-tool\n"
24553 "\n"
24554 msgstr ""
24555
24556 # type: textblock
24557 #: ../test-tool/libguestfs-test-tool.pod:24
24558 msgid "It will print lots of diagnostic messages."
24559 msgstr ""
24560
24561 # type: textblock
24562 #: ../test-tool/libguestfs-test-tool.pod:26
24563 msgid "If it runs to completion successfully, you will see this near the end:"
24564 msgstr ""
24565
24566 # type: verbatim
24567 #: ../test-tool/libguestfs-test-tool.pod:28
24568 #, no-wrap
24569 msgid ""
24570 " ===== TEST FINISHED OK =====\n"
24571 "\n"
24572 msgstr ""
24573
24574 # type: textblock
24575 #: ../test-tool/libguestfs-test-tool.pod:30
24576 msgid "and the test tool will exit with code 0."
24577 msgstr ""
24578
24579 # type: textblock
24580 #: ../test-tool/libguestfs-test-tool.pod:32
24581 msgid ""
24582 "If it fails (and/or exits with non-zero error code), please paste the "
24583 "B<complete, unedited> output of the test tool into a bug report.  More "
24584 "information about reporting bugs can be found on the L<http://libguestfs.org/"
24585 "> website."
24586 msgstr ""
24587
24588 # type: =item
24589 #: ../test-tool/libguestfs-test-tool.pod:41
24590 msgid "I<--help>"
24591 msgstr ""
24592
24593 # type: textblock
24594 #: ../test-tool/libguestfs-test-tool.pod:43
24595 msgid "Display short usage information and exit."
24596 msgstr ""
24597
24598 # type: =item
24599 #: ../test-tool/libguestfs-test-tool.pod:45
24600 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24601 msgstr ""
24602
24603 # type: textblock
24604 #: ../test-tool/libguestfs-test-tool.pod:47
24605 msgid ""
24606 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24607 "normally look in the C<$libexec> directory that was configured when the tool "
24608 "was built."
24609 msgstr ""
24610
24611 # type: =item
24612 #: ../test-tool/libguestfs-test-tool.pod:51
24613 msgid "I<--qemu qemu_binary>"
24614 msgstr ""
24615
24616 # type: textblock
24617 #: ../test-tool/libguestfs-test-tool.pod:53
24618 msgid ""
24619 "If you have downloaded another qemu binary, point this option at the full "
24620 "path of the binary to try it."
24621 msgstr ""
24622
24623 # type: =item
24624 #: ../test-tool/libguestfs-test-tool.pod:56
24625 msgid "I<--qemudir qemu_source_dir>"
24626 msgstr ""
24627
24628 # type: textblock
24629 #: ../test-tool/libguestfs-test-tool.pod:58
24630 msgid ""
24631 "If you have compiled qemu from source, point this option at the source "
24632 "directory to try it."
24633 msgstr ""
24634
24635 # type: =item
24636 #: ../test-tool/libguestfs-test-tool.pod:61
24637 msgid "I<--timeout N>"
24638 msgstr ""
24639
24640 # type: textblock
24641 #: ../test-tool/libguestfs-test-tool.pod:63
24642 msgid ""
24643 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24644 "does not usually need to be adjusted unless your machine is very slow."
24645 msgstr ""
24646
24647 # type: =head1
24648 #: ../test-tool/libguestfs-test-tool.pod:69
24649 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24650 msgstr ""
24651
24652 # type: textblock
24653 #: ../test-tool/libguestfs-test-tool.pod:71
24654 msgid ""
24655 "If you have compiled another version of qemu from source and would like to "
24656 "try that, then you can use the I<--qemudir> option to point to the qemu "
24657 "source directory."
24658 msgstr ""
24659
24660 # type: textblock
24661 #: ../test-tool/libguestfs-test-tool.pod:75
24662 msgid ""
24663 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24664 "option to point to the binary."
24665 msgstr ""
24666
24667 # type: textblock
24668 #: ../test-tool/libguestfs-test-tool.pod:78
24669 msgid ""
24670 "When using an alternate qemu with libguestfs, usually you would need to "
24671 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
24672 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
24673 "use either of the I<--qemudir> or I<--qemu> options."
24674 msgstr ""
24675
24676 # type: textblock
24677 #: ../test-tool/libguestfs-test-tool.pod:85
24678 msgid ""
24679 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
24680 "I<1> if there was an error."
24681 msgstr ""
24682
24683 # type: =item
24684 #: ../test-tool/libguestfs-test-tool.pod:92
24685 msgid "/usr/libexec/libguestfs-test-tool-helper"
24686 msgstr ""
24687
24688 # type: textblock
24689 #: ../test-tool/libguestfs-test-tool.pod:94
24690 msgid ""
24691 "This helper program is run inside the appliance and provides additional "
24692 "tests."
24693 msgstr ""
24694
24695 # type: =item
24696 #: ../test-tool/libguestfs-test-tool.pod:97
24697 msgid "/usr/bin/mkisofs"
24698 msgstr ""
24699
24700 # type: textblock
24701 #: ../test-tool/libguestfs-test-tool.pod:99
24702 msgid ""
24703 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
24704 "which is used as part of the tests."
24705 msgstr ""
24706
24707 # type: textblock
24708 #: ../test-tool/libguestfs-test-tool.pod:106
24709 msgid ""
24710 "For the full list of environment variables which may affect libguestfs, "
24711 "please see the L<guestfs(3)> manual page."
24712 msgstr ""
24713
24714 # type: textblock
24715 #: ../test-tool/libguestfs-test-tool.pod:111
24716 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
24717 msgstr ""
24718
24719 # type: textblock
24720 #: ../test-tool/libguestfs-test-tool.pod:121
24721 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
24722 msgstr ""
24723
24724 # type: textblock
24725 #: ../fuse/guestmount.pod:5
24726 msgid ""
24727 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
24728 msgstr ""
24729
24730 # type: verbatim
24731 #: ../fuse/guestmount.pod:9
24732 #, no-wrap
24733 msgid ""
24734 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
24735 "\n"
24736 msgstr ""
24737
24738 # type: verbatim
24739 #: ../fuse/guestmount.pod:11
24740 #, no-wrap
24741 msgid ""
24742 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
24743 "\n"
24744 msgstr ""
24745
24746 # type: verbatim
24747 #: ../fuse/guestmount.pod:13
24748 #, no-wrap
24749 msgid ""
24750 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
24751 "\n"
24752 msgstr ""
24753
24754 # type: textblock
24755 #: ../fuse/guestmount.pod:17
24756 msgid ""
24757 "You must I<not> use C<guestmount> in read-write mode on live virtual "
24758 "machines.  If you do this, you risk disk corruption in the VM."
24759 msgstr ""
24760
24761 # type: textblock
24762 #: ../fuse/guestmount.pod:22
24763 msgid ""
24764 "The guestmount program can be used to mount virtual machine filesystems and "
24765 "other disk images on the host.  It uses libguestfs for access to the guest "
24766 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
24767 "a mountable device."
24768 msgstr ""
24769
24770 # type: textblock
24771 #: ../fuse/guestmount.pod:27
24772 msgid ""
24773 "Along with other options, you have to give at least one device (I<-a> "
24774 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
24775 "option) or use the I<-i> inspection option.  How this works is better "
24776 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
24777 "below."
24778 msgstr ""
24779
24780 # type: textblock
24781 #: ../fuse/guestmount.pod:33
24782 msgid ""
24783 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
24784 "by you, and the filesystem will not be visible to any other users unless you "
24785 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
24786 "the filesystem, use the C<fusermount -u> command."
24787 msgstr ""
24788
24789 # type: textblock
24790 #: ../fuse/guestmount.pod:41
24791 msgid ""
24792 "For a typical Windows guest which has its main filesystem on the first "
24793 "partition:"
24794 msgstr ""
24795
24796 # type: verbatim
24797 #: ../fuse/guestmount.pod:44
24798 #, no-wrap
24799 msgid ""
24800 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
24801 "\n"
24802 msgstr ""
24803
24804 # type: textblock
24805 #: ../fuse/guestmount.pod:46
24806 msgid ""
24807 "For a typical Linux guest which has a /boot filesystem on the first "
24808 "partition, and the root filesystem on a logical volume:"
24809 msgstr ""
24810
24811 # type: verbatim
24812 #: ../fuse/guestmount.pod:49
24813 #, no-wrap
24814 msgid ""
24815 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
24816 "\n"
24817 msgstr ""
24818
24819 # type: textblock
24820 #: ../fuse/guestmount.pod:51
24821 msgid "To get libguestfs to detect guest mountpoints for you:"
24822 msgstr ""
24823
24824 # type: verbatim
24825 #: ../fuse/guestmount.pod:53
24826 #, no-wrap
24827 msgid ""
24828 " guestmount -a guest.img -i --ro /mnt\n"
24829 "\n"
24830 msgstr ""
24831
24832 # type: textblock
24833 #: ../fuse/guestmount.pod:55
24834 msgid "For a libvirt guest called \"Guest\" you could do:"
24835 msgstr ""
24836
24837 # type: verbatim
24838 #: ../fuse/guestmount.pod:57
24839 #, no-wrap
24840 msgid ""
24841 " guestmount -d Guest -i --ro /mnt\n"
24842 "\n"
24843 msgstr ""
24844
24845 # type: textblock
24846 #: ../fuse/guestmount.pod:59
24847 msgid ""
24848 "If you don't know what filesystems are contained in a guest or disk image, "
24849 "use L<virt-list-filesystems(1)> first:"
24850 msgstr ""
24851
24852 # type: verbatim
24853 #: ../fuse/guestmount.pod:62
24854 #, no-wrap
24855 msgid ""
24856 " virt-list-filesystems MyGuest\n"
24857 "\n"
24858 msgstr ""
24859
24860 # type: textblock
24861 #: ../fuse/guestmount.pod:64
24862 msgid ""
24863 "If you want to trace the libguestfs calls but without excessive debugging "
24864 "information, we recommend:"
24865 msgstr ""
24866
24867 # type: verbatim
24868 #: ../fuse/guestmount.pod:67
24869 #, no-wrap
24870 msgid ""
24871 " guestmount [...] --trace /mnt\n"
24872 "\n"
24873 msgstr ""
24874
24875 # type: textblock
24876 #: ../fuse/guestmount.pod:69
24877 msgid "If you want to debug the program, we recommend:"
24878 msgstr ""
24879
24880 # type: verbatim
24881 #: ../fuse/guestmount.pod:71
24882 #, no-wrap
24883 msgid ""
24884 " guestmount [...] --trace --verbose /mnt\n"
24885 "\n"
24886 msgstr ""
24887
24888 # type: textblock
24889 #: ../fuse/guestmount.pod:79
24890 msgid "Add a block device or virtual machine image."
24891 msgstr ""
24892
24893 # type: =item
24894 #: ../fuse/guestmount.pod:96
24895 msgid "B<--dir-cache-timeout N>"
24896 msgstr ""
24897
24898 # type: textblock
24899 #: ../fuse/guestmount.pod:98
24900 msgid ""
24901 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
24902 "seconds.  The readdir cache [actually, there are several semi-independent "
24903 "caches] is populated after a readdir(2) call with the stat and extended "
24904 "attributes of the files in the directory, in anticipation that they will be "
24905 "requested soon after."
24906 msgstr ""
24907
24908 # type: textblock
24909 #: ../fuse/guestmount.pod:104
24910 msgid ""
24911 "There is also a different attribute cache implemented by FUSE (see the FUSE "
24912 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
24913 "requests, only cache existing ones."
24914 msgstr ""
24915
24916 # type: textblock
24917 #: ../fuse/guestmount.pod:122
24918 msgid ""
24919 "If you have untrusted raw-format guest disk images, you should use this "
24920 "option to specify the disk format.  This avoids a possible security problem "
24921 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
24922 "guestfs_add_drive_opts>."
24923 msgstr ""
24924
24925 # type: =item
24926 #: ../fuse/guestmount.pod:127
24927 msgid "B<--fuse-help>"
24928 msgstr ""
24929
24930 # type: textblock
24931 #: ../fuse/guestmount.pod:129
24932 msgid "Display help on special FUSE options (see I<-o> below)."
24933 msgstr ""
24934
24935 # type: textblock
24936 #: ../fuse/guestmount.pod:133
24937 msgid "Display brief help and exit."
24938 msgstr ""
24939
24940 # type: =item
24941 #: ../fuse/guestmount.pod:146
24942 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24943 msgstr ""
24944
24945 # type: textblock
24946 #: ../fuse/guestmount.pod:148
24947 msgid ""
24948 "Mount the named partition or logical volume on the given mountpoint B<in the "
24949 "guest> (this has nothing to do with mountpoints in the host)."
24950 msgstr ""
24951
24952 # type: textblock
24953 #: ../fuse/guestmount.pod:151
24954 msgid ""
24955 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24956 "something on C</>."
24957 msgstr ""
24958
24959 # type: textblock
24960 #: ../fuse/guestmount.pod:156
24961 msgid ""
24962 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
24963 "unmounted.  If you specify this option, then we don't attempt to sync the "
24964 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
24965 msgstr ""
24966
24967 # type: =item
24968 #: ../fuse/guestmount.pod:161
24969 msgid "B<-o option> | B<--option option>"
24970 msgstr ""
24971
24972 # type: textblock
24973 #: ../fuse/guestmount.pod:163
24974 msgid "Pass extra options to FUSE."
24975 msgstr ""
24976
24977 # type: textblock
24978 #: ../fuse/guestmount.pod:165
24979 msgid ""
24980 "To get a list of all the extra options supported by FUSE, use the command "
24981 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24982 "of them are a good idea."
24983 msgstr ""
24984
24985 # type: verbatim
24986 #: ../fuse/guestmount.pod:169
24987 #, no-wrap
24988 msgid ""
24989 " guestmount --fuse-help\n"
24990 "\n"
24991 msgstr ""
24992
24993 # type: textblock
24994 #: ../fuse/guestmount.pod:171
24995 msgid "Some potentially useful FUSE options:"
24996 msgstr ""
24997
24998 # type: =item
24999 #: ../fuse/guestmount.pod:175
25000 msgid "B<-o allow_other>"
25001 msgstr ""
25002
25003 # type: textblock
25004 #: ../fuse/guestmount.pod:177
25005 msgid "Allow other users to see the filesystem."
25006 msgstr ""
25007
25008 # type: =item
25009 #: ../fuse/guestmount.pod:179
25010 msgid "B<-o attr_timeout=N>"
25011 msgstr ""
25012
25013 # type: textblock
25014 #: ../fuse/guestmount.pod:181
25015 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25016 msgstr ""
25017
25018 # type: =item
25019 #: ../fuse/guestmount.pod:183
25020 msgid "B<-o kernel_cache>"
25021 msgstr ""
25022
25023 # type: textblock
25024 #: ../fuse/guestmount.pod:185
25025 msgid ""
25026 "Allow the kernel to cache files (reduces the number of reads that have to go "
25027 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25028 "afford the extra memory usage."
25029 msgstr ""
25030
25031 # type: =item
25032 #: ../fuse/guestmount.pod:189
25033 msgid "B<-o uid=N> B<-o gid=N>"
25034 msgstr ""
25035
25036 # type: textblock
25037 #: ../fuse/guestmount.pod:191
25038 msgid ""
25039 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25040 "the chosen values."
25041 msgstr ""
25042
25043 # type: textblock
25044 #: ../fuse/guestmount.pod:198
25045 msgid ""
25046 "Add devices and mount everything read-only.  Also disallow writes and make "
25047 "the disk appear read-only to FUSE."
25048 msgstr ""
25049
25050 # type: textblock
25051 #: ../fuse/guestmount.pod:201
25052 msgid ""
25053 "This is highly recommended if you are not going to edit the guest disk.  If "
25054 "the guest is running and this option is I<not> supplied, then there is a "
25055 "strong risk of disk corruption in the guest.  We try to prevent this from "
25056 "happening, but it is not always possible."
25057 msgstr ""
25058
25059 # type: textblock
25060 #: ../fuse/guestmount.pod:208
25061 msgid "Enable SELinux support for the guest."
25062 msgstr ""
25063
25064 # type: textblock
25065 #: ../fuse/guestmount.pod:212
25066 msgid "Enable verbose messages from underlying libguestfs."
25067 msgstr ""
25068
25069 # type: textblock
25070 #: ../fuse/guestmount.pod:216
25071 msgid "Display the program version and exit."
25072 msgstr ""
25073
25074 # type: =item
25075 #: ../fuse/guestmount.pod:218
25076 msgid "B<-x> | B<--trace>"
25077 msgstr ""
25078
25079 # type: textblock
25080 #: ../fuse/guestmount.pod:220
25081 msgid "Trace libguestfs calls."
25082 msgstr ""
25083
25084 # type: textblock
25085 #: ../fuse/guestmount.pod:222
25086 msgid "This also stops the daemon from forking into the background."
25087 msgstr ""
25088
25089 # type: textblock
25090 #: ../fuse/guestmount.pod:228
25091 msgid ""
25092 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25093 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
25094 "net/>."
25095 msgstr ""
25096
25097 # type: textblock
25098 #: ../inspector/virt-inspector.pl:35
25099 msgid ""
25100 "virt-inspector - Display operating system version and other information "
25101 "about a virtual machine"
25102 msgstr ""
25103
25104 # type: verbatim
25105 #: ../inspector/virt-inspector.pl:39
25106 #, no-wrap
25107 msgid ""
25108 " virt-inspector [--connect URI] domname\n"
25109 "\n"
25110 msgstr ""
25111
25112 # type: verbatim
25113 #: ../inspector/virt-inspector.pl:41
25114 #, no-wrap
25115 msgid ""
25116 " virt-inspector guest.img [guest.img ...]\n"
25117 "\n"
25118 msgstr ""
25119
25120 # type: textblock
25121 #: ../inspector/virt-inspector.pl:45
25122 msgid ""
25123 "B<virt-inspector> examines a virtual machine or disk image and tries to "
25124 "determine the version of the operating system and other information about "
25125 "the virtual machine."
25126 msgstr ""
25127
25128 # type: textblock
25129 #: ../inspector/virt-inspector.pl:49
25130 msgid "Virt-inspector produces XML output for feeding into other programs."
25131 msgstr ""
25132
25133 # type: textblock
25134 #: ../inspector/virt-inspector.pl:51
25135 msgid ""
25136 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
25137 "libvirt domain (see: C<virsh list --all>)."
25138 msgstr ""
25139
25140 # type: textblock
25141 #: ../inspector/virt-inspector.pl:54
25142 msgid ""
25143 "You can also run virt-inspector directly on disk images from a single "
25144 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
25145 "has several block devices, in which case you should list them one after "
25146 "another, with the first corresponding to the guest's C</dev/sda>, the second "
25147 "to the guest's C</dev/sdb> and so on."
25148 msgstr ""
25149
25150 # type: textblock
25151 #: ../inspector/virt-inspector.pl:60
25152 msgid ""
25153 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
25154 "inspect several virtual machines, you have to run virt-inspector several "
25155 "times (for example, from a shell script for-loop)."
25156 msgstr ""
25157
25158 # type: textblock
25159 #: ../inspector/virt-inspector.pl:65
25160 msgid ""
25161 "Because virt-inspector needs direct access to guest images, it won't "
25162 "normally work over remote libvirt connections."
25163 msgstr ""
25164
25165 # type: textblock
25166 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
25167 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
25168 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89
25169 #: ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113
25170 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
25171 msgid "Display brief help."
25172 msgstr ""
25173
25174 # type: =item
25175 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
25176 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
25177 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
25178 #: ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114
25179 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
25180 #: ../tools/virt-list-partitions.pl:67
25181 msgid "B<--version>"
25182 msgstr ""
25183
25184 # type: textblock
25185 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
25186 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
25187 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
25188 #: ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116
25189 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
25190 #: ../tools/virt-list-partitions.pl:69
25191 msgid "Display version number and exit."
25192 msgstr ""
25193
25194 # type: =item
25195 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
25196 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
25197 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103
25198 #: ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135
25199 #: ../tools/virt-list-partitions.pl:75
25200 msgid "B<--connect URI> | B<-c URI>"
25201 msgstr ""
25202
25203 # type: textblock
25204 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
25205 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
25206 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105
25207 #: ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137
25208 #: ../tools/virt-list-partitions.pl:77
25209 msgid ""
25210 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25211 "to the default libvirt hypervisor."
25212 msgstr ""
25213
25214 # type: textblock
25215 #: ../inspector/virt-inspector.pl:97
25216 msgid ""
25217 "Libvirt is only used if you specify a C<domname> on the command line.  If "
25218 "you specify guest block devices directly, then libvirt is not used at all."
25219 msgstr ""
25220
25221 # type: =item
25222 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
25223 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
25224 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
25225 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115
25226 #: ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147
25227 #: ../tools/virt-list-partitions.pl:87
25228 msgid "B<--format> raw"
25229 msgstr ""
25230
25231 # type: textblock
25232 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
25233 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
25234 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
25235 #: ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136
25236 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
25237 msgid ""
25238 "Specify the format of disk images given on the command line.  If this is "
25239 "omitted then the format is autodetected from the content of the disk image."
25240 msgstr ""
25241
25242 # type: textblock
25243 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
25244 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
25245 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
25246 #: ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140
25247 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
25248 msgid ""
25249 "If disk images are requested from libvirt, then this program asks libvirt "
25250 "for this information.  In this case, the value of the format parameter is "
25251 "ignored."
25252 msgstr ""
25253
25254 # type: textblock
25255 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
25256 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
25257 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
25258 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
25259 #: ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144
25260 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
25261 msgid ""
25262 "If working with untrusted raw-format guest disk images, you should ensure "
25263 "the format is always specified."
25264 msgstr ""
25265
25266 # type: =head1
25267 #: ../inspector/virt-inspector.pl:149
25268 msgid "XML FORMAT"
25269 msgstr ""
25270
25271 # type: textblock
25272 #: ../inspector/virt-inspector.pl:151
25273 msgid ""
25274 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
25275 "supplied with libguestfs.  This section is just an overview."
25276 msgstr ""
25277
25278 # type: textblock
25279 #: ../inspector/virt-inspector.pl:154
25280 msgid ""
25281 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
25282 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
25283 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
25284 "which is vanishingly rare in real world VMs."
25285 msgstr ""
25286
25287 # type: =head2
25288 #: ../inspector/virt-inspector.pl:159
25289 msgid "E<lt>operatingsystemE<gt>"
25290 msgstr ""
25291
25292 # type: textblock
25293 #: ../inspector/virt-inspector.pl:161
25294 msgid ""
25295 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
25296 "describe the operating system, its architecture, the descriptive \"product "
25297 "name\" string, the type of OS and so on, as in this example:"
25298 msgstr ""
25299
25300 # type: verbatim
25301 #: ../inspector/virt-inspector.pl:165
25302 #, no-wrap
25303 msgid ""
25304 " <operatingsystems>\n"
25305 "   <operatingsystem>\n"
25306 "     <root>/dev/sda2</root>\n"
25307 "     <name>windows</name>\n"
25308 "     <arch>i386</arch>\n"
25309 "     <distro>windows</distro>\n"
25310 "     <product_name>Windows 7 Enterprise</product_name>\n"
25311 "     <major_version>6</major_version>\n"
25312 "     <minor_version>1</minor_version>\n"
25313 "     <windows_systemroot>/Windows</windows_systemroot>\n"
25314 "\n"
25315 msgstr ""
25316
25317 # type: textblock
25318 #: ../inspector/virt-inspector.pl:176
25319 msgid ""
25320 "These fields are derived from the libguestfs inspection API, and you can "
25321 "find more details in L<guestfs(3)/INSPECTION>."
25322 msgstr ""
25323
25324 # type: textblock
25325 #: ../inspector/virt-inspector.pl:179
25326 msgid ""
25327 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
25328 "of view of libguestfs (block devices may have completely different names "
25329 "inside the VM itself)."
25330 msgstr ""
25331
25332 # type: =head2
25333 #: ../inspector/virt-inspector.pl:240
25334 msgid "E<lt>mountpointsE<gt>"
25335 msgstr ""
25336
25337 # type: textblock
25338 #: ../inspector/virt-inspector.pl:242
25339 msgid ""
25340 "Un*x-like guests typically have multiple filesystems which are mounted at "
25341 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
25342 "element which looks like this:"
25343 msgstr ""
25344
25345 # type: verbatim
25346 #: ../inspector/virt-inspector.pl:246
25347 #, no-wrap
25348 msgid ""
25349 " <operatingsystems>\n"
25350 "   <operatingsystem>\n"
25351 "     ...\n"
25352 "     <mountpoints>\n"
25353 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
25354 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
25355 "     </mountpoints>\n"
25356 "\n"
25357 msgstr ""
25358
25359 # type: textblock
25360 #: ../inspector/virt-inspector.pl:254
25361 msgid ""
25362 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
25363 "and may have completely different names inside the guest.  Only mountable "
25364 "filesystems appear in this list, not things like swap devices."
25365 msgstr ""
25366
25367 # type: =head2
25368 #: ../inspector/virt-inspector.pl:276
25369 msgid "E<lt>filesystemsE<gt>"
25370 msgstr ""
25371
25372 # type: textblock
25373 #: ../inspector/virt-inspector.pl:278
25374 msgid ""
25375 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
25376 "filesystems belonging to the guest, including swap and empty partitions.  "
25377 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
25378 "this OS or shared by this OS and other OSes)."
25379 msgstr ""
25380
25381 # type: textblock
25382 #: ../inspector/virt-inspector.pl:283
25383 msgid "You might see something like this:"
25384 msgstr ""
25385
25386 # type: verbatim
25387 #: ../inspector/virt-inspector.pl:285
25388 #, no-wrap
25389 msgid ""
25390 " <operatingsystems>\n"
25391 "   <operatingsystem>\n"
25392 "     ...\n"
25393 "     <filesystems>\n"
25394 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25395 "         <type>ext4</type>\n"
25396 "         <label>Fedora-13-x86_64</label>\n"
25397 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
25398 "       </filesystem>\n"
25399 "\n"
25400 msgstr ""
25401
25402 # type: textblock
25403 #: ../inspector/virt-inspector.pl:295
25404 msgid ""
25405 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
25406 "the label, and the UUID."
25407 msgstr ""
25408
25409 # type: =head2
25410 #: ../inspector/virt-inspector.pl:337
25411 msgid "E<lt>applicationsE<gt>"
25412 msgstr ""
25413
25414 # type: textblock
25415 #: ../inspector/virt-inspector.pl:339
25416 msgid ""
25417 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
25418 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
25419 "machine.  At the moment we are only able to list RPMs and Debian packages "
25420 "installed, but in future we will support other Linux distros and Windows."
25421 msgstr ""
25422
25423 # type: textblock
25424 #: ../inspector/virt-inspector.pl:345
25425 msgid ""
25426 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
25427 "Typical values would be C<rpm> and C<deb>."
25428 msgstr ""
25429
25430 # type: textblock
25431 #: ../inspector/virt-inspector.pl:348
25432 msgid ""
25433 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
25434 "Typical values include C<yum>, C<up2date> and C<apt>"
25435 msgstr ""
25436
25437 # type: textblock
25438 #: ../inspector/virt-inspector.pl:351
25439 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
25440 msgstr ""
25441
25442 # type: verbatim
25443 #: ../inspector/virt-inspector.pl:354
25444 #, no-wrap
25445 msgid ""
25446 " <operatingsystems>\n"
25447 "   <operatingsystem>\n"
25448 "     ...\n"
25449 "     <applications>\n"
25450 "       <application>\n"
25451 "         <name>coreutils</name>\n"
25452 "         <version>8.5</version>\n"
25453 "         <release>1</release>\n"
25454 "       </application>\n"
25455 "\n"
25456 msgstr ""
25457
25458 # type: textblock
25459 #: ../inspector/virt-inspector.pl:364
25460 msgid ""
25461 "(The version and release fields may not be available for some package types)."
25462 msgstr ""
25463
25464 # type: =head1
25465 #: ../inspector/virt-inspector.pl:544
25466 msgid "USING XPATH"
25467 msgstr ""
25468
25469 # type: textblock
25470 #: ../inspector/virt-inspector.pl:546
25471 msgid ""
25472 "You can use the XPath query language, and/or the xpath tool, in order to "
25473 "select parts of the XML."
25474 msgstr ""
25475
25476 # type: verbatim
25477 #: ../inspector/virt-inspector.pl:551
25478 #, no-wrap
25479 msgid ""
25480 " $ virt-inspector Guest | xpath //filesystems\n"
25481 " Found 1 nodes:\n"
25482 " -- NODE --\n"
25483 " <filesystems>\n"
25484 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25485 "        <type>ext4</type>\n"
25486 " [etc]\n"
25487 "\n"
25488 msgstr ""
25489
25490 # type: verbatim
25491 #: ../inspector/virt-inspector.pl:559
25492 #, no-wrap
25493 msgid ""
25494 " $ virt-inspector Guest | \\\n"
25495 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
25496 " Query didn't return a nodeset. Value: ext4\n"
25497 "\n"
25498 msgstr ""
25499
25500 # type: =head2
25501 #: ../inspector/virt-inspector.pl:563 ../tools/virt-edit.pl:343
25502 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
25503 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
25504 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
25505 #: ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274
25506 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
25507 #: ../tools/virt-list-partitions.pl:247
25508 msgid "SHELL QUOTING"
25509 msgstr ""
25510
25511 # type: textblock
25512 #: ../inspector/virt-inspector.pl:565 ../tools/virt-edit.pl:345
25513 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
25514 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
25515 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180
25516 #: ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262
25517 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
25518 msgid ""
25519 "Libvirt guest names can contain arbitrary characters, some of which have "
25520 "meaning to the shell such as C<#> and space.  You may need to quote or "
25521 "escape these characters on the command line.  See the shell manual page L<sh"
25522 "(1)> for details."
25523 msgstr ""
25524
25525 # type: textblock
25526 #: ../inspector/virt-inspector.pl:572
25527 msgid ""
25528 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25529 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
25530 msgstr ""
25531
25532 # type: textblock
25533 #: ../inspector/virt-inspector.pl:586 ../tools/virt-edit.pl:364
25534 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
25535 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
25536 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197
25537 #: ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279
25538 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
25539 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25540 msgstr ""
25541
25542 # type: textblock
25543 #: ../inspector/virt-inspector.pl:590
25544 msgid "Matthew Booth L<mbooth@redhat.com>"
25545 msgstr ""
25546
25547 # type: textblock
25548 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516
25549 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25550 msgid "Copyright (C) 2010 Red Hat Inc."
25551 msgstr ""
25552
25553 # type: textblock
25554 #: ../tools/virt-edit.pl:34
25555 msgid "virt-edit - Edit a file in a virtual machine"
25556 msgstr ""
25557
25558 # type: verbatim
25559 #: ../tools/virt-edit.pl:38
25560 #, no-wrap
25561 msgid ""
25562 " virt-edit [--options] domname file\n"
25563 "\n"
25564 msgstr ""
25565
25566 # type: verbatim
25567 #: ../tools/virt-edit.pl:40
25568 #, no-wrap
25569 msgid ""
25570 " virt-edit [--options] disk.img [disk.img ...] file\n"
25571 "\n"
25572 msgstr ""
25573
25574 # type: verbatim
25575 #: ../tools/virt-edit.pl:42
25576 #, no-wrap
25577 msgid ""
25578 " virt-edit [domname|disk.img] file -e 'expr'\n"
25579 "\n"
25580 msgstr ""
25581
25582 # type: textblock
25583 #: ../tools/virt-edit.pl:46
25584 msgid ""
25585 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25586 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25587 "doing this, but doesn't catch all cases."
25588 msgstr ""
25589
25590 # type: textblock
25591 #: ../tools/virt-edit.pl:52
25592 msgid ""
25593 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25594 "the named virtual machine (or disk image)."
25595 msgstr ""
25596
25597 # type: textblock
25598 #: ../tools/virt-edit.pl:55
25599 msgid ""
25600 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25601 "you should look at the L<guestfish(1)> tool."
25602 msgstr ""
25603
25604 # type: textblock
25605 #: ../tools/virt-edit.pl:60
25606 msgid "Edit the named files interactively:"
25607 msgstr ""
25608
25609 # type: verbatim
25610 #: ../tools/virt-edit.pl:62
25611 #, no-wrap
25612 msgid ""
25613 " virt-edit mydomain /boot/grub/grub.conf\n"
25614 "\n"
25615 msgstr ""
25616
25617 # type: verbatim
25618 #: ../tools/virt-edit.pl:64
25619 #, no-wrap
25620 msgid ""
25621 " virt-edit mydomain /etc/passwd\n"
25622 "\n"
25623 msgstr ""
25624
25625 # type: textblock
25626 #: ../tools/virt-edit.pl:66
25627 msgid ""
25628 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25629 "below).  To change the init default level to 5:"
25630 msgstr ""
25631
25632 # type: verbatim
25633 #: ../tools/virt-edit.pl:70
25634 #, no-wrap
25635 msgid ""
25636 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25637 "\n"
25638 msgstr ""
25639
25640 # type: =item
25641 #: ../tools/virt-edit.pl:96
25642 msgid "B<--backup extension> | B<-b extension>"
25643 msgstr ""
25644
25645 # type: textblock
25646 #: ../tools/virt-edit.pl:98
25647 msgid ""
25648 "Create a backup of the original file I<in the guest disk image>.  The backup "
25649 "has the original filename with C<extension> added."
25650 msgstr ""
25651
25652 # type: textblock
25653 #: ../tools/virt-edit.pl:101
25654 msgid ""
25655 "Usually the first character of C<extension> would be a dot C<.> so you would "
25656 "write:"
25657 msgstr ""
25658
25659 # type: verbatim
25660 #: ../tools/virt-edit.pl:104
25661 #, no-wrap
25662 msgid ""
25663 " virt-edit -b .orig [etc]\n"
25664 "\n"
25665 msgstr ""
25666
25667 # type: textblock
25668 #: ../tools/virt-edit.pl:106
25669 msgid "By default, no backup file is made."
25670 msgstr ""
25671
25672 # type: textblock
25673 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
25674 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
25675 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108
25676 #: ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140
25677 #: ../tools/virt-list-partitions.pl:80
25678 msgid ""
25679 "If you specify guest block devices directly, then libvirt is not used at all."
25680 msgstr ""
25681
25682 # type: =item
25683 #: ../tools/virt-edit.pl:141
25684 msgid "B<--expr EXPR> | B<-e EXPR>"
25685 msgstr ""
25686
25687 # type: textblock
25688 #: ../tools/virt-edit.pl:143
25689 msgid ""
25690 "Instead of launching the external editor, non-interactively apply the Perl "
25691 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25692 "EDITING> below."
25693 msgstr ""
25694
25695 # type: textblock
25696 #: ../tools/virt-edit.pl:147
25697 msgid ""
25698 "Be careful to properly quote the expression to prevent it from being altered "
25699 "by the shell."
25700 msgstr ""
25701
25702 # type: =head1
25703 #: ../tools/virt-edit.pl:268
25704 msgid "NON-INTERACTIVE EDITING"
25705 msgstr ""
25706
25707 # type: textblock
25708 #: ../tools/virt-edit.pl:270
25709 msgid ""
25710 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25711 "administrator can interactively edit the file."
25712 msgstr ""
25713
25714 # type: textblock
25715 #: ../tools/virt-edit.pl:273
25716 msgid ""
25717 "There are two ways also to use C<virt-edit> from scripts in order to make "
25718 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25719 "like this, it's less error-prone to write scripts directly using the "
25720 "libguestfs API and Augeas for configuration file editing.)"
25721 msgstr ""
25722
25723 # type: textblock
25724 #: ../tools/virt-edit.pl:279
25725 msgid ""
25726 "The first method is to temporarily set C<$EDITOR> to any script or program "
25727 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25728 "update C<tmpfile> in place however it likes."
25729 msgstr ""
25730
25731 # type: textblock
25732 #: ../tools/virt-edit.pl:283
25733 msgid ""
25734 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25735 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25736 "instances of C<foo> with C<bar> in a file:"
25737 msgstr ""
25738
25739 # type: verbatim
25740 #: ../tools/virt-edit.pl:287
25741 #, no-wrap
25742 msgid ""
25743 " virt-edit domname filename -e 's/foo/bar/'\n"
25744 "\n"
25745 msgstr ""
25746
25747 # type: textblock
25748 #: ../tools/virt-edit.pl:289
25749 msgid ""
25750 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25751 "For example to delete root's password you could do:"
25752 msgstr ""
25753
25754 # type: verbatim
25755 #: ../tools/virt-edit.pl:292
25756 #, no-wrap
25757 msgid ""
25758 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25759 "\n"
25760 msgstr ""
25761
25762 # type: textblock
25763 #: ../tools/virt-edit.pl:294
25764 msgid ""
25765 "What really happens is that the snippet is evaluated as a Perl expression "
25766 "for each line of the file.  The line, including the final C<\\n>, is passed "
25767 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25768 msgstr ""
25769
25770 # type: textblock
25771 #: ../tools/virt-edit.pl:299
25772 msgid ""
25773 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25774 "C<apache> user account from the password file you can do:"
25775 msgstr ""
25776
25777 # type: verbatim
25778 #: ../tools/virt-edit.pl:302
25779 #, no-wrap
25780 msgid ""
25781 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25782 "\n"
25783 msgstr ""
25784
25785 # type: textblock
25786 #: ../tools/virt-edit.pl:304
25787 msgid ""
25788 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25789 "the end of the file is rather difficult this way since there is no concept "
25790 "of \"last line of the file\" - your expression just doesn't get called "
25791 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25792 "want to do this."
25793 msgstr ""
25794
25795 # type: textblock
25796 #: ../tools/virt-edit.pl:310
25797 msgid ""
25798 "The variable C<$lineno> contains the current line number.  As is "
25799 "traditional, the first line in the file is number C<1>."
25800 msgstr ""
25801
25802 # type: textblock
25803 #: ../tools/virt-edit.pl:313
25804 msgid ""
25805 "The return value from the expression is ignored, but the expression may call "
25806 "C<die> in order to abort the whole program, leaving the original file "
25807 "untouched."
25808 msgstr ""
25809
25810 # type: textblock
25811 #: ../tools/virt-edit.pl:317
25812 msgid ""
25813 "Remember when matching the end of a line that C<$_> may contain the final C<"
25814 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25815 "newline then neither of these.  Thus to match or substitute some text at the "
25816 "end of a line, use this regular expression:"
25817 msgstr ""
25818
25819 # type: verbatim
25820 #: ../tools/virt-edit.pl:322
25821 #, no-wrap
25822 msgid ""
25823 " /some text(\\r?\\n)?$/\n"
25824 "\n"
25825 msgstr ""
25826
25827 # type: textblock
25828 #: ../tools/virt-edit.pl:324
25829 msgid ""
25830 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
25831 "$_> itself (since that would remove all newlines from the file):"
25832 msgstr ""
25833
25834 # type: verbatim
25835 #: ../tools/virt-edit.pl:328
25836 #, no-wrap
25837 msgid ""
25838 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25839 "\n"
25840 msgstr ""
25841
25842 # type: =item
25843 #: ../tools/virt-edit.pl:334
25844 msgid "C<EDITOR>"
25845 msgstr ""
25846
25847 # type: textblock
25848 #: ../tools/virt-edit.pl:336
25849 msgid ""
25850 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
25851 "\"emacs -nw\">"
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../tools/virt-edit.pl:339
25856 msgid "If not set, C<vi> is used."
25857 msgstr ""
25858
25859 # type: textblock
25860 #: ../tools/virt-edit.pl:352
25861 msgid ""
25862 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
25863 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
25864 "L<perlre(1)>."
25865 msgstr ""
25866
25867 # type: =head1
25868 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
25869 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
25870 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
25871 #: ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292
25872 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
25873 #: ../tools/virt-list-partitions.pl:265
25874 msgid "AUTHOR"
25875 msgstr ""
25876
25877 # type: textblock
25878 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
25879 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
25880 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25881 msgstr ""
25882
25883 # type: textblock
25884 #: ../tools/virt-win-reg.pl:37
25885 msgid ""
25886 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
25887 msgstr ""
25888
25889 # type: verbatim
25890 #: ../tools/virt-win-reg.pl:41
25891 #, no-wrap
25892 msgid ""
25893 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25894 "\n"
25895 msgstr ""
25896
25897 # type: verbatim
25898 #: ../tools/virt-win-reg.pl:43
25899 #, no-wrap
25900 msgid ""
25901 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25902 "\n"
25903 msgstr ""
25904
25905 # type: verbatim
25906 #: ../tools/virt-win-reg.pl:45
25907 #, no-wrap
25908 msgid ""
25909 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25910 "\n"
25911 msgstr ""
25912
25913 # type: verbatim
25914 #: ../tools/virt-win-reg.pl:47
25915 #, no-wrap
25916 msgid ""
25917 " virt-win-reg --merge domname [input.reg ...]\n"
25918 "\n"
25919 msgstr ""
25920
25921 # type: verbatim
25922 #: ../tools/virt-win-reg.pl:49
25923 #, no-wrap
25924 msgid ""
25925 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25926 "\n"
25927 msgstr ""
25928
25929 # type: textblock
25930 #: ../tools/virt-win-reg.pl:53
25931 msgid ""
25932 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25933 "virtual machines.  If you do this, you I<will> get irreversible disk "
25934 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25935 "but doesn't catch all cases."
25936 msgstr ""
25937
25938 # type: textblock
25939 #: ../tools/virt-win-reg.pl:58
25940 msgid ""
25941 "Modifying the Windows Registry is an inherently risky operation.  The format "
25942 "is deliberately obscure and undocumented, and Registry changes can leave the "
25943 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25944 "you have a reliable backup first."
25945 msgstr ""
25946
25947 # type: textblock
25948 #: ../tools/virt-win-reg.pl:65
25949 msgid ""
25950 "This program can export and merge Windows Registry entries from a Windows "
25951 "guest."
25952 msgstr ""
25953
25954 # type: textblock
25955 #: ../tools/virt-win-reg.pl:68
25956 msgid ""
25957 "The first parameter is the libvirt guest name or the raw disk image of a "
25958 "Windows guest."
25959 msgstr ""
25960
25961 # type: textblock
25962 #: ../tools/virt-win-reg.pl:71
25963 msgid ""
25964 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
25965 "exported (recursively).  For example:"
25966 msgstr ""
25967
25968 # type: verbatim
25969 #: ../tools/virt-win-reg.pl:74
25970 #, no-wrap
25971 msgid ""
25972 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25973 "\n"
25974 msgstr ""
25975
25976 # type: textblock
25977 #: ../tools/virt-win-reg.pl:76
25978 msgid ""
25979 "You can also display single values from within registry keys, for example:"
25980 msgstr ""
25981
25982 # type: verbatim
25983 #: ../tools/virt-win-reg.pl:79
25984 #, no-wrap
25985 msgid ""
25986 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25987 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25988 " Windows 7 Enterprise\n"
25989 "\n"
25990 msgstr ""
25991
25992 # type: textblock
25993 #: ../tools/virt-win-reg.pl:83
25994 msgid ""
25995 "With C<--merge>, you can merge a textual regedit file into the Windows "
25996 "Registry:"
25997 msgstr ""
25998
25999 # type: verbatim
26000 #: ../tools/virt-win-reg.pl:86
26001 #, no-wrap
26002 msgid ""
26003 " $ virt-win-reg --merge Windows7 changes.reg\n"
26004 "\n"
26005 msgstr ""
26006
26007 # type: =head2
26008 #: ../tools/virt-win-reg.pl:88
26009 msgid "SUPPORTED SYSTEMS"
26010 msgstr ""
26011
26012 # type: textblock
26013 #: ../tools/virt-win-reg.pl:90
26014 msgid ""
26015 "The program currently supports Windows NT-derived guests starting with "
26016 "Windows XP through to at least Windows 7."
26017 msgstr ""
26018
26019 # type: textblock
26020 #: ../tools/virt-win-reg.pl:93
26021 msgid ""
26022 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26023 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26024 "and C<HKEY_USERS\\.DEFAULT>."
26025 msgstr ""
26026
26027 # type: textblock
26028 #: ../tools/virt-win-reg.pl:97
26029 msgid ""
26030 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26031 "C<HKEY_USERS>."
26032 msgstr ""
26033
26034 # type: textblock
26035 #: ../tools/virt-win-reg.pl:100
26036 msgid ""
26037 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26038 "time."
26039 msgstr ""
26040
26041 # type: =head2
26042 #: ../tools/virt-win-reg.pl:103
26043 msgid "NOTE"
26044 msgstr ""
26045
26046 # type: textblock
26047 #: ../tools/virt-win-reg.pl:105
26048 msgid ""
26049 "This program is only meant for simple access to the registry.  If you want "
26050 "to do complicated things with the registry, we suggest you download the "
26051 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26052 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26053 "L<hivexregedit(1)>."
26054 msgstr ""
26055
26056 # type: =head2
26057 #: ../tools/virt-win-reg.pl:111
26058 msgid "ENCODING"
26059 msgstr ""
26060
26061 # type: textblock
26062 #: ../tools/virt-win-reg.pl:113
26063 msgid ""
26064 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26065 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26066 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26067 "Windows-style line endings, you may need to reencode the whole file before "
26068 "or after processing."
26069 msgstr ""
26070
26071 # type: textblock
26072 #: ../tools/virt-win-reg.pl:119
26073 msgid ""
26074 "To reencode a file from Windows format to Linux (before processing it with "
26075 "the C<--merge> option), you would do something like this:"
26076 msgstr ""
26077
26078 # type: verbatim
26079 #: ../tools/virt-win-reg.pl:122
26080 #, no-wrap
26081 msgid ""
26082 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26083 "\n"
26084 msgstr ""
26085
26086 # type: textblock
26087 #: ../tools/virt-win-reg.pl:124
26088 msgid ""
26089 "To go in the opposite direction, after exporting and before sending the file "
26090 "to a Windows user, do something like this:"
26091 msgstr ""
26092
26093 # type: verbatim
26094 #: ../tools/virt-win-reg.pl:127
26095 #, no-wrap
26096 msgid ""
26097 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26098 "\n"
26099 msgstr ""
26100
26101 # type: textblock
26102 #: ../tools/virt-win-reg.pl:129
26103 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26104 msgstr ""
26105
26106 # type: textblock
26107 #: ../tools/virt-win-reg.pl:131
26108 msgid ""
26109 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26110 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26111 "style (CRLF) line endings, like this:"
26112 msgstr ""
26113
26114 # type: verbatim
26115 #: ../tools/virt-win-reg.pl:135
26116 #, no-wrap
26117 msgid ""
26118 " $ file software.reg\n"
26119 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26120 " with CRLF line terminators\n"
26121 "\n"
26122 msgstr ""
26123
26124 # type: textblock
26125 #: ../tools/virt-win-reg.pl:139
26126 msgid "This file would need conversion before you could C<--merge> it."
26127 msgstr ""
26128
26129 # type: textblock
26130 #: ../tools/virt-win-reg.pl:143
26131 msgid ""
26132 "Be careful when passing parameters containing C<\\> (backslash) in the "
26133 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26134 "(but not both) to protect them from the shell."
26135 msgstr ""
26136
26137 # type: textblock
26138 #: ../tools/virt-win-reg.pl:147
26139 msgid "Paths and value names are case-insensitive."
26140 msgstr ""
26141
26142 # type: =head2
26143 #: ../tools/virt-win-reg.pl:149
26144 msgid "CurrentControlSet etc."
26145 msgstr ""
26146
26147 # type: textblock
26148 #: ../tools/virt-win-reg.pl:151
26149 msgid ""
26150 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26151 "Registry at the level of the hive file, and therefore you cannot modify "
26152 "these."
26153 msgstr ""
26154
26155 # type: textblock
26156 #: ../tools/virt-win-reg.pl:155
26157 msgid ""
26158 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26159 "circumstances it might refer to another control set.  The way to find out is "
26160 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26161 msgstr ""
26162
26163 # type: verbatim
26164 #: ../tools/virt-win-reg.pl:159
26165 #, no-wrap
26166 msgid ""
26167 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26168 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26169 " \"Current\"=dword:00000001\n"
26170 " \"Default\"=dword:00000001\n"
26171 " \"Failed\"=dword:00000000\n"
26172 " \"LastKnownGood\"=dword:00000002\n"
26173 "\n"
26174 msgstr ""
26175
26176 # type: textblock
26177 #: ../tools/virt-win-reg.pl:166
26178 msgid "\"Current\" is the one which Windows will choose when it boots."
26179 msgstr ""
26180
26181 # type: textblock
26182 #: ../tools/virt-win-reg.pl:168
26183 msgid ""
26184 "Similarly, other C<Current...> keys in the path may need to be replaced."
26185 msgstr ""
26186
26187 # type: =item
26188 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26189 msgid "B<--debug>"
26190 msgstr ""
26191
26192 # type: textblock
26193 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
26194 msgid "Enable debugging messages."
26195 msgstr ""
26196
26197 # type: =item
26198 #: ../tools/virt-win-reg.pl:232
26199 msgid "B<--merge>"
26200 msgstr ""
26201
26202 # type: textblock
26203 #: ../tools/virt-win-reg.pl:234
26204 msgid ""
26205 "In merge mode, this merges a textual regedit file into the Windows Registry "
26206 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26207 "displays or exports Registry entries instead."
26208 msgstr ""
26209
26210 # type: textblock
26211 #: ../tools/virt-win-reg.pl:238
26212 msgid ""
26213 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26214 "result in disk corruption.  However exporting (without this flag)  is always "
26215 "safe."
26216 msgstr ""
26217
26218 # type: =item
26219 #: ../tools/virt-win-reg.pl:246
26220 msgid "B<--encoding> UTF-16LE|ASCII"
26221 msgstr ""
26222
26223 # type: textblock
26224 #: ../tools/virt-win-reg.pl:248
26225 msgid ""
26226 "When merging (only), you may need to specify the encoding for strings to be "
26227 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26228 "(3)/ENCODING STRINGS>."
26229 msgstr ""
26230
26231 # type: textblock
26232 #: ../tools/virt-win-reg.pl:252
26233 msgid ""
26234 "The default is to use UTF-16LE, which should work with recent versions of "
26235 "Windows."
26236 msgstr ""
26237
26238 # type: textblock
26239 #: ../tools/virt-win-reg.pl:486
26240 msgid ""
26241 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26242 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26243 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26244 msgstr ""
26245
26246 # type: textblock
26247 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26248 msgid ""
26249 "When reporting bugs, please enable debugging and capture the I<complete> "
26250 "output:"
26251 msgstr ""
26252
26253 # type: verbatim
26254 #: ../tools/virt-win-reg.pl:504
26255 #, no-wrap
26256 msgid ""
26257 " export LIBGUESTFS_DEBUG=1\n"
26258 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26259 "\n"
26260 msgstr ""
26261
26262 # type: textblock
26263 #: ../tools/virt-win-reg.pl:507
26264 msgid ""
26265 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26266 "redhat.com/>"
26267 msgstr ""
26268
26269 # type: textblock
26270 #: ../tools/virt-df.pl:36
26271 msgid "virt-df - Display free space on virtual filesystems"
26272 msgstr ""
26273
26274 # type: verbatim
26275 #: ../tools/virt-df.pl:40
26276 #, no-wrap
26277 msgid ""
26278 " virt-df [--options]\n"
26279 "\n"
26280 msgstr ""
26281
26282 # type: verbatim
26283 #: ../tools/virt-df.pl:42
26284 #, no-wrap
26285 msgid ""
26286 " virt-df [--options] domname\n"
26287 "\n"
26288 msgstr ""
26289
26290 # type: verbatim
26291 #: ../tools/virt-df.pl:44
26292 #, no-wrap
26293 msgid ""
26294 " virt-df [--options] disk.img [disk.img ...]\n"
26295 "\n"
26296 msgstr ""
26297
26298 # type: textblock
26299 #: ../tools/virt-df.pl:48
26300 msgid ""
26301 "C<virt-df> is a command line tool to display free space on virtual machine "
26302 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26303 "space allocated to a virtual machine, but can look inside the virtual "
26304 "machine to see how much space is really being used."
26305 msgstr ""
26306
26307 # type: textblock
26308 #: ../tools/virt-df.pl:53
26309 msgid ""
26310 "It is like the L<df(1)> command, but for virtual machines, except that it "
26311 "also works for Windows virtual machines."
26312 msgstr ""
26313
26314 # type: textblock
26315 #: ../tools/virt-df.pl:56
26316 msgid ""
26317 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26318 "of all active and inactive guests, and performs a C<df>-type operation on "
26319 "each one in turn, printing out the results."
26320 msgstr ""
26321
26322 # type: textblock
26323 #: ../tools/virt-df.pl:60
26324 msgid ""
26325 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26326 "either the single named libvirt domain, or on the disk image(s) listed on "
26327 "the command line (which must all belong to a single VM).  In this mode (with "
26328 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26329 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26330 msgstr ""
26331
26332 # type: textblock
26333 #: ../tools/virt-df.pl:67
26334 msgid ""
26335 "Use the C<--csv> option to get a format which can be easily parsed by other "
26336 "programs.  Other options are mostly similar to standard C<df> options.  See "
26337 "below for the complete list."
26338 msgstr ""
26339
26340 # type: =item
26341 #: ../tools/virt-df.pl:107
26342 msgid "B<--csv>"
26343 msgstr ""
26344
26345 # type: textblock
26346 #: ../tools/virt-df.pl:109
26347 msgid ""
26348 "Write out the results in CSV format (comma-separated values).  This format "
26349 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26350 "ABOUT CSV FORMAT> below."
26351 msgstr ""
26352
26353 # type: =item
26354 #: ../tools/virt-df.pl:134
26355 msgid "B<--human-readable> | B<-h>"
26356 msgstr ""
26357
26358 # type: textblock
26359 #: ../tools/virt-df.pl:136
26360 msgid "Print sizes in human-readable format."
26361 msgstr ""
26362
26363 # type: textblock
26364 #: ../tools/virt-df.pl:138
26365 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26366 msgstr ""
26367
26368 # type: =item
26369 #: ../tools/virt-df.pl:144
26370 msgid "B<--inodes> | B<-i>"
26371 msgstr ""
26372
26373 # type: textblock
26374 #: ../tools/virt-df.pl:146
26375 msgid "Print inodes instead of blocks."
26376 msgstr ""
26377
26378 # type: =item
26379 #: ../tools/virt-df.pl:152
26380 msgid "B<--one-per-guest>"
26381 msgstr ""
26382
26383 # type: textblock
26384 #: ../tools/virt-df.pl:154
26385 msgid ""
26386 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26387 "disks from several guests to a single libguestfs appliance."
26388 msgstr ""
26389
26390 # type: textblock
26391 #: ../tools/virt-df.pl:157
26392 msgid "You might use this option in the following circumstances:"
26393 msgstr ""
26394
26395 # type: textblock
26396 #: ../tools/virt-df.pl:163
26397 msgid ""
26398 "If you think an untrusted guest might actively try to exploit the libguestfs "
26399 "appliance kernel, then this prevents one guest from interfering with the "
26400 "stats printed for another guest."
26401 msgstr ""
26402
26403 # type: textblock
26404 #: ../tools/virt-df.pl:169
26405 msgid ""
26406 "If the kernel has a bug which stops it from accessing a filesystem in one "
26407 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
26408 "and report stats for further guests."
26409 msgstr ""
26410
26411 # type: =item
26412 #: ../tools/virt-df.pl:180
26413 msgid "B<--uuid>"
26414 msgstr ""
26415
26416 # type: textblock
26417 #: ../tools/virt-df.pl:182
26418 msgid ""
26419 "Print UUIDs instead of names.  This is useful for following a guest even "
26420 "when the guest is migrated or renamed, or when two guests happen to have the "
26421 "same name."
26422 msgstr ""
26423
26424 # type: textblock
26425 #: ../tools/virt-df.pl:186
26426 msgid ""
26427 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
26428 "images, we still print the disk image name even when this option is "
26429 "specified."
26430 msgstr ""
26431
26432 # type: =head1
26433 #: ../tools/virt-df.pl:609
26434 msgid "NOTE ABOUT CSV FORMAT"
26435 msgstr ""
26436
26437 # type: textblock
26438 #: ../tools/virt-df.pl:611
26439 msgid ""
26440 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
26441 "should be easy to parse, but it is definitely not easy to parse."
26442 msgstr ""
26443
26444 # type: textblock
26445 #: ../tools/virt-df.pl:614
26446 msgid ""
26447 "Myth: Just split fields at commas.  Reality: This does I<not> work "
26448 "reliably.  This example has two columns:"
26449 msgstr ""
26450
26451 # type: verbatim
26452 #: ../tools/virt-df.pl:617
26453 #, no-wrap
26454 msgid ""
26455 " \"foo,bar\",baz\n"
26456 "\n"
26457 msgstr ""
26458
26459 # type: textblock
26460 #: ../tools/virt-df.pl:619
26461 msgid ""
26462 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
26463 "reliably.  This example has one row:"
26464 msgstr ""
26465
26466 # type: verbatim
26467 #: ../tools/virt-df.pl:622
26468 #, no-wrap
26469 msgid ""
26470 " \"foo\n"
26471 " bar\",baz\n"
26472 "\n"
26473 msgstr ""
26474
26475 # type: textblock
26476 #: ../tools/virt-df.pl:625
26477 msgid ""
26478 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26479 "packaged in major Linux distributions)."
26480 msgstr ""
26481
26482 # type: textblock
26483 #: ../tools/virt-df.pl:628
26484 msgid ""
26485 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26486 "or Python's built-in csv library)."
26487 msgstr ""
26488
26489 # type: textblock
26490 #: ../tools/virt-df.pl:631
26491 msgid "Most spreadsheets and databases can import CSV directly."
26492 msgstr ""
26493
26494 # type: textblock
26495 #: ../tools/virt-df.pl:642
26496 msgid ""
26497 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26498 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26499 msgstr ""
26500
26501 # type: textblock
26502 #: ../tools/virt-ls.pl:34
26503 msgid "virt-ls - List files in a virtual machine"
26504 msgstr ""
26505
26506 # type: verbatim
26507 #: ../tools/virt-ls.pl:38
26508 #, no-wrap
26509 msgid ""
26510 " virt-ls [--options] domname directory\n"
26511 "\n"
26512 msgstr ""
26513
26514 # type: verbatim
26515 #: ../tools/virt-ls.pl:40
26516 #, no-wrap
26517 msgid ""
26518 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26519 "\n"
26520 msgstr ""
26521
26522 # type: textblock
26523 #: ../tools/virt-ls.pl:44
26524 msgid ""
26525 "C<virt-ls> is a command line tool to list the names of files in a directory "
26526 "inside a virtual machine or disk image."
26527 msgstr ""
26528
26529 # type: textblock
26530 #: ../tools/virt-ls.pl:47
26531 msgid ""
26532 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26533 "For more complex cases you should look at the L<guestfish(1)> tool."
26534 msgstr ""
26535
26536 # type: textblock
26537 #: ../tools/virt-ls.pl:51
26538 msgid ""
26539 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26540 "simple listing is like the ordinary L<ls(1)> command:"
26541 msgstr ""
26542
26543 # type: verbatim
26544 #: ../tools/virt-ls.pl:54
26545 #, no-wrap
26546 msgid ""
26547 " $ virt-ls myguest /\n"
26548 " bin\n"
26549 " boot\n"
26550 " [etc.]\n"
26551 "\n"
26552 msgstr ""
26553
26554 # type: textblock
26555 #: ../tools/virt-ls.pl:59
26556 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26557 msgstr ""
26558
26559 # type: verbatim
26560 #: ../tools/virt-ls.pl:61
26561 #, no-wrap
26562 msgid ""
26563 " $ virt-ls -l myguest /\n"
26564 " total 204\n"
26565 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26566 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26567 " [etc.]\n"
26568 "\n"
26569 msgstr ""
26570
26571 # type: textblock
26572 #: ../tools/virt-ls.pl:67
26573 msgid ""
26574 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26575 "and directories recursively:"
26576 msgstr ""
26577
26578 # type: verbatim
26579 #: ../tools/virt-ls.pl:70
26580 #, no-wrap
26581 msgid ""
26582 " $ virt-ls -R myguest /tmp\n"
26583 " foo\n"
26584 " foo/bar\n"
26585 " [etc.]\n"
26586 "\n"
26587 msgstr ""
26588
26589 # type: textblock
26590 #: ../tools/virt-ls.pl:75
26591 msgid ""
26592 "You I<cannot> combine these options.  To do more complicated things, use "
26593 "L<guestfish(1)>."
26594 msgstr ""
26595
26596 # type: =item
26597 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
26598 #: ../tools/virt-list-partitions.pl:112
26599 msgid "B<-l> | B<--long>"
26600 msgstr ""
26601
26602 # type: =item
26603 #: ../tools/virt-ls.pl:133
26604 msgid "B<-R> | B<--recursive>"
26605 msgstr ""
26606
26607 # type: textblock
26608 #: ../tools/virt-ls.pl:135
26609 msgid ""
26610 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26611 "simple, flat list of the files in the named directory."
26612 msgstr ""
26613
26614 # type: textblock
26615 #: ../tools/virt-ls.pl:138
26616 msgid ""
26617 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26618 "like the plain C<ls -l> command)."
26619 msgstr ""
26620
26621 # type: textblock
26622 #: ../tools/virt-ls.pl:141
26623 msgid ""
26624 "C<virt-ls -R> produces a recursive list of files starting at the named "
26625 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26626 "details."
26627 msgstr ""
26628
26629 # type: textblock
26630 #: ../tools/virt-ls.pl:145
26631 msgid "You cannot combine these options."
26632 msgstr ""
26633
26634 # type: textblock
26635 #: ../tools/virt-ls.pl:234
26636 msgid ""
26637 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
26638 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
26639 "org/>."
26640 msgstr ""
26641
26642 # type: textblock
26643 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
26644 #: ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
26645 msgid "Copyright (C) 2009 Red Hat Inc."
26646 msgstr ""
26647
26648 # type: textblock
26649 #: ../tools/virt-resize.pl:42
26650 msgid "virt-resize - Resize a virtual machine disk"
26651 msgstr ""
26652
26653 # type: verbatim
26654 #: ../tools/virt-resize.pl:46
26655 #, no-wrap
26656 msgid ""
26657 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26658 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26659 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26660 "\n"
26661 msgstr ""
26662
26663 # type: textblock
26664 #: ../tools/virt-resize.pl:52
26665 msgid ""
26666 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26667 "larger or smaller overall, and resizing or deleting any partitions contained "
26668 "within."
26669 msgstr ""
26670
26671 # type: textblock
26672 #: ../tools/virt-resize.pl:56
26673 msgid ""
26674 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26675 "not> be used on live virtual machines - for consistent results, shut the "
26676 "virtual machine down before resizing it."
26677 msgstr ""
26678
26679 # type: textblock
26680 #: ../tools/virt-resize.pl:60
26681 msgid ""
26682 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
26683 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
26684 "read those manual pages first."
26685 msgstr ""
26686
26687 # type: textblock
26688 #: ../tools/virt-resize.pl:68
26689 msgid ""
26690 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26691 "fill the extra 5GB of space."
26692 msgstr ""
26693
26694 # type: verbatim
26695 #: ../tools/virt-resize.pl:71
26696 #, no-wrap
26697 msgid ""
26698 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26699 " virt-list-partitions -lht olddisk\n"
26700 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26701 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26702 "\n"
26703 msgstr ""
26704
26705 # type: textblock
26706 #: ../tools/virt-resize.pl:76
26707 msgid ""
26708 "As above, but make the /boot partition 200MB bigger, while giving the "
26709 "remaining space to /dev/sda2:"
26710 msgstr ""
26711
26712 # type: verbatim
26713 #: ../tools/virt-resize.pl:79
26714 #, no-wrap
26715 msgid ""
26716 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26717 "\n"
26718 msgstr ""
26719
26720 # type: textblock
26721 #: ../tools/virt-resize.pl:81
26722 msgid "As above, but the output format will be uncompressed qcow2:"
26723 msgstr ""
26724
26725 # type: verbatim
26726 #: ../tools/virt-resize.pl:83
26727 #, no-wrap
26728 msgid ""
26729 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26730 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26731 "\n"
26732 msgstr ""
26733
26734 # type: =head1
26735 #: ../tools/virt-resize.pl:86
26736 msgid "DETAILED USAGE"
26737 msgstr ""
26738
26739 # type: =head2
26740 #: ../tools/virt-resize.pl:88
26741 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26742 msgstr ""
26743
26744 # type: =item
26745 #: ../tools/virt-resize.pl:92
26746 msgid "1. Shut down the virtual machine"
26747 msgstr ""
26748
26749 # type: =item
26750 #: ../tools/virt-resize.pl:94
26751 msgid "2. Locate input disk image"
26752 msgstr ""
26753
26754 # type: textblock
26755 #: ../tools/virt-resize.pl:96
26756 msgid ""
26757 "Locate the input disk image (ie. the file or device on the host containing "
26758 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26759 "dumpxml> like this to find the disk image name:"
26760 msgstr ""
26761
26762 # type: verbatim
26763 #: ../tools/virt-resize.pl:100
26764 #, no-wrap
26765 msgid ""
26766 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26767 " Found 1 nodes:\n"
26768 " -- NODE --\n"
26769 " <source dev=\"/dev/vg/lv_guest\" />\n"
26770 "\n"
26771 msgstr ""
26772
26773 # type: =item
26774 #: ../tools/virt-resize.pl:105
26775 msgid "3. Look at current sizing"
26776 msgstr ""
26777
26778 # type: textblock
26779 #: ../tools/virt-resize.pl:107
26780 msgid ""
26781 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26782 msgstr ""
26783
26784 # type: verbatim
26785 #: ../tools/virt-resize.pl:110
26786 #, no-wrap
26787 msgid ""
26788 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
26789 " /dev/sda1 ext3 101.9M\n"
26790 " /dev/sda2 pv 7.9G\n"
26791 " /dev/sda device 8.0G\n"
26792 "\n"
26793 msgstr ""
26794
26795 # type: textblock
26796 #: ../tools/virt-resize.pl:115
26797 msgid ""
26798 "(This example is a virtual machine with an 8 GB disk which we would like to "
26799 "expand up to 10 GB)."
26800 msgstr ""
26801
26802 # type: =item
26803 #: ../tools/virt-resize.pl:118
26804 msgid "4. Create output disk"
26805 msgstr ""
26806
26807 # type: textblock
26808 #: ../tools/virt-resize.pl:120
26809 msgid ""
26810 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26811 "to store the resized output disk."
26812 msgstr ""
26813
26814 # type: textblock
26815 #: ../tools/virt-resize.pl:123
26816 msgid ""
26817 "To store the resized disk image in a file, create a file of a suitable size:"
26818 msgstr ""
26819
26820 # type: verbatim
26821 #: ../tools/virt-resize.pl:126
26822 #, no-wrap
26823 msgid ""
26824 " # rm -f outdisk\n"
26825 " # truncate -s 10G outdisk\n"
26826 "\n"
26827 msgstr ""
26828
26829 # type: textblock
26830 #: ../tools/virt-resize.pl:129
26831 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26832 msgstr ""
26833
26834 # type: verbatim
26835 #: ../tools/virt-resize.pl:131
26836 #, no-wrap
26837 msgid ""
26838 " # lvcreate -L 10G -n lv_name vg_name\n"
26839 "\n"
26840 msgstr ""
26841
26842 # type: textblock
26843 #: ../tools/virt-resize.pl:133
26844 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26845 msgstr ""
26846
26847 # type: verbatim
26848 #: ../tools/virt-resize.pl:135
26849 #, no-wrap
26850 msgid ""
26851 " # virsh pool-list\n"
26852 " # virsh vol-create-as poolname newvol 10G\n"
26853 "\n"
26854 msgstr ""
26855
26856 # type: =item
26857 #: ../tools/virt-resize.pl:138
26858 msgid "5. Resize"
26859 msgstr ""
26860
26861 # type: textblock
26862 #: ../tools/virt-resize.pl:140
26863 msgid ""
26864 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26865 "file) and the output disk.  The output disk is the one created in the "
26866 "previous step."
26867 msgstr ""
26868
26869 # type: verbatim
26870 #: ../tools/virt-resize.pl:144
26871 #, no-wrap
26872 msgid ""
26873 " # virt-resize indisk outdisk\n"
26874 "\n"
26875 msgstr ""
26876
26877 # type: textblock
26878 #: ../tools/virt-resize.pl:146
26879 msgid ""
26880 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26881 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26882 "larger, then an extra, empty partition is created at the end of the disk "
26883 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26884 "error."
26885 msgstr ""
26886
26887 # type: textblock
26888 #: ../tools/virt-resize.pl:152
26889 msgid ""
26890 "More realistically you'd want to expand existing partitions in the disk "
26891 "image by passing extra options (for the full list see the L</OPTIONS> "
26892 "section below)."
26893 msgstr ""
26894
26895 # type: textblock
26896 #: ../tools/virt-resize.pl:156
26897 msgid ""
26898 "L</--expand> is the most useful option.  It expands the named partition "
26899 "within the disk to fill any extra space:"
26900 msgstr ""
26901
26902 # type: verbatim
26903 #: ../tools/virt-resize.pl:159
26904 #, no-wrap
26905 msgid ""
26906 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26907 "\n"
26908 msgstr ""
26909
26910 # type: textblock
26911 #: ../tools/virt-resize.pl:161
26912 msgid ""
26913 "(In this case, an extra partition is I<not> created at the end of the disk, "
26914 "because there will be no unused space)."
26915 msgstr ""
26916
26917 # type: textblock
26918 #: ../tools/virt-resize.pl:164
26919 msgid ""
26920 "L</--resize> is the other commonly used option.  The following would "
26921 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26922 "rest of the available space:"
26923 msgstr ""
26924
26925 # type: verbatim
26926 #: ../tools/virt-resize.pl:168
26927 #, no-wrap
26928 msgid ""
26929 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26930 "     indisk outdisk\n"
26931 "\n"
26932 msgstr ""
26933
26934 # type: textblock
26935 #: ../tools/virt-resize.pl:171
26936 msgid ""
26937 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26938 "if virt-resize knows how, it will resize the contents, the equivalent of "
26939 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
26940 ">.  However virt-resize does not know how to resize some filesystems, so you "
26941 "would have to online resize them after booting the guest.  And virt-resize "
26942 "also does not resize anything inside an LVM PV, it just resizes the PV "
26943 "itself and leaves the user to resize any LVs inside that PV as desired."
26944 msgstr ""
26945
26946 # type: textblock
26947 #: ../tools/virt-resize.pl:180
26948 msgid "Other options are covered below."
26949 msgstr ""
26950
26951 # type: =item
26952 #: ../tools/virt-resize.pl:182
26953 msgid "6. Test"
26954 msgstr ""
26955
26956 # type: textblock
26957 #: ../tools/virt-resize.pl:184
26958 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26959 msgstr ""
26960
26961 # type: textblock
26962 #: ../tools/virt-resize.pl:186
26963 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26964 msgstr ""
26965
26966 # type: verbatim
26967 #: ../tools/virt-resize.pl:188
26968 #, no-wrap
26969 msgid ""
26970 " # virsh edit guestname\n"
26971 "\n"
26972 msgstr ""
26973
26974 # type: textblock
26975 #: ../tools/virt-resize.pl:190
26976 msgid ""
26977 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
26978 "html#elementsDisks>"
26979 msgstr ""
26980
26981 # type: textblock
26982 #: ../tools/virt-resize.pl:193
26983 msgid "Then start up the domain with the new, resized disk:"
26984 msgstr ""
26985
26986 # type: verbatim
26987 #: ../tools/virt-resize.pl:195
26988 #, no-wrap
26989 msgid ""
26990 " # virsh start guestname\n"
26991 "\n"
26992 msgstr ""
26993
26994 # type: textblock
26995 #: ../tools/virt-resize.pl:197
26996 msgid ""
26997 "and check that it still works.  See also the L</NOTES> section below for "
26998 "additional information."
26999 msgstr ""
27000
27001 # type: =item
27002 #: ../tools/virt-resize.pl:200
27003 msgid "7. Resize LVs etc inside the guest"
27004 msgstr ""
27005
27006 # type: textblock
27007 #: ../tools/virt-resize.pl:202
27008 msgid "(This can also be done offline using L<guestfish(1)>)"
27009 msgstr ""
27010
27011 # type: textblock
27012 #: ../tools/virt-resize.pl:204
27013 msgid ""
27014 "Once the guest has booted you should see the new space available, at least "
27015 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27016 "may need to resize LVs inside PVs, and also resize filesystem types that "
27017 "virt-resize does not know how to expand."
27018 msgstr ""
27019
27020 # type: =head2
27021 #: ../tools/virt-resize.pl:211
27022 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27023 msgstr ""
27024
27025 # type: textblock
27026 #: ../tools/virt-resize.pl:213
27027 msgid ""
27028 "Shrinking is somewhat more complex than expanding, and only an overview is "
27029 "given here."
27030 msgstr ""
27031
27032 # type: textblock
27033 #: ../tools/virt-resize.pl:216
27034 msgid ""
27035 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27036 "filesystems).  The user has to shrink content before passing the disk image "
27037 "to virt-resize, and virt-resize will check that the content has been shrunk "
27038 "properly."
27039 msgstr ""
27040
27041 # type: textblock
27042 #: ../tools/virt-resize.pl:221
27043 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27044 msgstr ""
27045
27046 # type: textblock
27047 #: ../tools/virt-resize.pl:223
27048 msgid ""
27049 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27050 "steps 3 and 4 above to allocate a new disk image."
27051 msgstr ""
27052
27053 # type: textblock
27054 #: ../tools/virt-resize.pl:226
27055 msgid ""
27056 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27057 msgstr ""
27058
27059 # type: =head2
27060 #: ../tools/virt-resize.pl:229
27061 msgid "IGNORING OR DELETING PARTITIONS"
27062 msgstr ""
27063
27064 # type: textblock
27065 #: ../tools/virt-resize.pl:231
27066 msgid ""
27067 "virt-resize also gives a convenient way to ignore or delete partitions when "
27068 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27069 "up the copy where you don't care about the existing contents of a "
27070 "partition.  Deleting a partition removes it completely, but note that it "
27071 "also renumbers any partitions after the one which is deleted, which can "
27072 "leave some guests unbootable."
27073 msgstr ""
27074
27075 # type: =head2
27076 #: ../tools/virt-resize.pl:238
27077 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27078 msgstr ""
27079
27080 # type: textblock
27081 #: ../tools/virt-resize.pl:240
27082 msgid ""
27083 "If the input disk is in qcow2 format, then you may prefer that the output is "
27084 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27085 "the fly.  The output format is simply determined by the format of the empty "
27086 "output container that you provide.  Thus to create qcow2 output, use:"
27087 msgstr ""
27088
27089 # type: verbatim
27090 #: ../tools/virt-resize.pl:246
27091 #, no-wrap
27092 msgid ""
27093 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27094 "\n"
27095 msgstr ""
27096
27097 # type: textblock
27098 #: ../tools/virt-resize.pl:248
27099 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27100 msgstr ""
27101
27102 # type: textblock
27103 #: ../tools/virt-resize.pl:250
27104 msgid "Similarly, to get non-sparse raw output use:"
27105 msgstr ""
27106
27107 # type: verbatim
27108 #: ../tools/virt-resize.pl:252
27109 #, no-wrap
27110 msgid ""
27111 " fallocate -l size outdisk\n"
27112 "\n"
27113 msgstr ""
27114
27115 # type: textblock
27116 #: ../tools/virt-resize.pl:254
27117 msgid ""
27118 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27119 "dev/zero of=outdisk bs=1M count=..>)"
27120 msgstr ""
27121
27122 # type: textblock
27123 #: ../tools/virt-resize.pl:267
27124 msgid "Display help."
27125 msgstr ""
27126
27127 # type: =item
27128 #: ../tools/virt-resize.pl:281
27129 msgid "B<--resize part=size>"
27130 msgstr ""
27131
27132 # type: textblock
27133 #: ../tools/virt-resize.pl:283
27134 msgid ""
27135 "Resize the named partition (expanding or shrinking it) so that it has the "
27136 "given size."
27137 msgstr ""
27138
27139 # type: textblock
27140 #: ../tools/virt-resize.pl:286
27141 msgid ""
27142 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27143 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27144 "Exabytes; or as a percentage of the current size; or as a relative number or "
27145 "percentage.  For example:"
27146 msgstr ""
27147
27148 # type: verbatim
27149 #: ../tools/virt-resize.pl:291
27150 #, no-wrap
27151 msgid ""
27152 " --resize /dev/sda2=10G\n"
27153 "\n"
27154 msgstr ""
27155
27156 # type: verbatim
27157 #: ../tools/virt-resize.pl:293
27158 #, no-wrap
27159 msgid ""
27160 " --resize /dev/sda4=90%\n"
27161 "\n"
27162 msgstr ""
27163
27164 # type: verbatim
27165 #: ../tools/virt-resize.pl:295
27166 #, no-wrap
27167 msgid ""
27168 " --resize /dev/sda2=+1G\n"
27169 "\n"
27170 msgstr ""
27171
27172 # type: verbatim
27173 #: ../tools/virt-resize.pl:297
27174 #, no-wrap
27175 msgid ""
27176 " --resize /dev/sda2=-200M\n"
27177 "\n"
27178 msgstr ""
27179
27180 # type: verbatim
27181 #: ../tools/virt-resize.pl:299
27182 #, no-wrap
27183 msgid ""
27184 " --resize /dev/sda1=+128K\n"
27185 "\n"
27186 msgstr ""
27187
27188 # type: verbatim
27189 #: ../tools/virt-resize.pl:301
27190 #, no-wrap
27191 msgid ""
27192 " --resize /dev/sda1=+10%\n"
27193 "\n"
27194 msgstr ""
27195
27196 # type: verbatim
27197 #: ../tools/virt-resize.pl:303
27198 #, no-wrap
27199 msgid ""
27200 " --resize /dev/sda1=-10%\n"
27201 "\n"
27202 msgstr ""
27203
27204 # type: textblock
27205 #: ../tools/virt-resize.pl:305
27206 msgid ""
27207 "You can increase the size of any partition.  Virt-resize will expand the "
27208 "direct content of the partition if it knows how (see C<--expand> below)."
27209 msgstr ""
27210
27211 # type: textblock
27212 #: ../tools/virt-resize.pl:309
27213 msgid ""
27214 "You can only I<decrease> the size of partitions that contain filesystems or "
27215 "PVs which have already been shrunk.  Virt-resize will check this has been "
27216 "done before proceeding, or else will print an error (see also C<--resize-"
27217 "force>)."
27218 msgstr ""
27219
27220 # type: textblock
27221 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
27222 #: ../tools/virt-resize.pl:423
27223 msgid "You can give this option multiple times."
27224 msgstr ""
27225
27226 # type: =item
27227 #: ../tools/virt-resize.pl:320
27228 msgid "B<--resize-force part=size>"
27229 msgstr ""
27230
27231 # type: textblock
27232 #: ../tools/virt-resize.pl:322
27233 msgid ""
27234 "This is the same as C<--resize> except that it will let you decrease the "
27235 "size of any partition.  Generally this means you will lose any data which "
27236 "was at the end of the partition you shrink, but you may not care about that "
27237 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27238 "as a swap partition)."
27239 msgstr ""
27240
27241 # type: textblock
27242 #: ../tools/virt-resize.pl:328
27243 msgid "See also the C<--ignore> option."
27244 msgstr ""
27245
27246 # type: =item
27247 #: ../tools/virt-resize.pl:334
27248 msgid "B<--expand part>"
27249 msgstr ""
27250
27251 # type: textblock
27252 #: ../tools/virt-resize.pl:336
27253 msgid ""
27254 "Expand the named partition so it uses up all extra space (space left over "
27255 "after any other resize changes that you request have been done)."
27256 msgstr ""
27257
27258 # type: textblock
27259 #: ../tools/virt-resize.pl:339
27260 msgid ""
27261 "If virt-resize knows how, it will expand the direct content of the "
27262 "partition.  For example, if the partition is an LVM PV, it will expand the "
27263 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27264 "content it doesn't know about alone."
27265 msgstr ""
27266
27267 # type: textblock
27268 #: ../tools/virt-resize.pl:344
27269 msgid "Currently virt-resize can resize:"
27270 msgstr ""
27271
27272 # type: textblock
27273 #: ../tools/virt-resize.pl:350
27274 msgid ""
27275 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27276 "partition."
27277 msgstr ""
27278
27279 # type: textblock
27280 #: ../tools/virt-resize.pl:355
27281 msgid ""
27282 "NTFS filesystems contained directly in a partition, if libguestfs was "
27283 "compiled with support for NTFS."
27284 msgstr ""
27285
27286 # type: textblock
27287 #: ../tools/virt-resize.pl:358
27288 msgid ""
27289 "The filesystem must have been shut down consistently last time it was used.  "
27290 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27291 "consistency check, so at the first boot after resizing Windows will check "
27292 "the disk."
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-resize.pl:365
27297 msgid ""
27298 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27299 "inside the PV.  The user will have to resize LVs as desired."
27300 msgstr ""
27301
27302 # type: textblock
27303 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27304 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27305 msgstr ""
27306
27307 # type: =item
27308 #: ../tools/virt-resize.pl:377
27309 msgid "B<--shrink part>"
27310 msgstr ""
27311
27312 # type: textblock
27313 #: ../tools/virt-resize.pl:379
27314 msgid ""
27315 "Shrink the named partition until the overall disk image fits in the "
27316 "destination.  The named partition B<must> contain a filesystem or PV which "
27317 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27318 "online tools).  Virt-resize will check this and give an error if it has not "
27319 "been done."
27320 msgstr ""
27321
27322 # type: textblock
27323 #: ../tools/virt-resize.pl:385
27324 msgid ""
27325 "The amount by which the overall disk must be shrunk (after carrying out all "
27326 "other operations requested by the user) is called the \"deficit\".  For "
27327 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27328 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27329 "would give an error unless the user specified a partition to shrink and that "
27330 "partition had more than a gigabyte of free space."
27331 msgstr ""
27332
27333 # type: =item
27334 #: ../tools/virt-resize.pl:399
27335 msgid "B<--ignore part>"
27336 msgstr ""
27337
27338 # type: textblock
27339 #: ../tools/virt-resize.pl:401
27340 msgid ""
27341 "Ignore the named partition.  Effectively this means the partition is "
27342 "allocated on the destination disk, but the content is not copied across from "
27343 "the source disk.  The content of the partition will be blank (all zero "
27344 "bytes)."
27345 msgstr ""
27346
27347 # type: =item
27348 #: ../tools/virt-resize.pl:412
27349 msgid "B<--delete part>"
27350 msgstr ""
27351
27352 # type: textblock
27353 #: ../tools/virt-resize.pl:414
27354 msgid ""
27355 "Delete the named partition.  It would be more accurate to describe this as "
27356 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27357 "the original disk image is left intact."
27358 msgstr ""
27359
27360 # type: textblock
27361 #: ../tools/virt-resize.pl:418
27362 msgid ""
27363 "Note that when you delete a partition, then anything contained in the "
27364 "partition is also deleted.  Furthermore, this causes any partitions that "
27365 "come after to be I<renumbered>, which can easily make your guest unbootable."
27366 msgstr ""
27367
27368 # type: =item
27369 #: ../tools/virt-resize.pl:429
27370 msgid "B<--LV-expand logvol>"
27371 msgstr ""
27372
27373 # type: textblock
27374 #: ../tools/virt-resize.pl:431
27375 msgid ""
27376 "This takes the logical volume and, as a final step, expands it to fill all "
27377 "the space available in its volume group.  A typical usage, assuming a Linux "
27378 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27379 "lv_root> would be:"
27380 msgstr ""
27381
27382 # type: verbatim
27383 #: ../tools/virt-resize.pl:436
27384 #, no-wrap
27385 msgid ""
27386 " virt-resize indisk outdisk \\\n"
27387 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27388 "\n"
27389 msgstr ""
27390
27391 # type: textblock
27392 #: ../tools/virt-resize.pl:439
27393 msgid ""
27394 "This would first expand the partition (and PV), and then expand the root "
27395 "device to fill the extra space in the PV."
27396 msgstr ""
27397
27398 # type: textblock
27399 #: ../tools/virt-resize.pl:442
27400 msgid ""
27401 "The contents of the LV are also resized if virt-resize knows how to do "
27402 "that.  You can stop virt-resize from trying to expand the content by using "
27403 "the option C<--no-expand-content>."
27404 msgstr ""
27405
27406 # type: textblock
27407 #: ../tools/virt-resize.pl:446
27408 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
27409 msgstr ""
27410
27411 # type: textblock
27412 #: ../tools/virt-resize.pl:449
27413 msgid ""
27414 "You can give this option multiple times, I<but> it doesn't make sense to do "
27415 "this unless the logical volumes you specify are all in different volume "
27416 "groups."
27417 msgstr ""
27418
27419 # type: =item
27420 #: ../tools/virt-resize.pl:457
27421 msgid "B<--no-copy-boot-loader>"
27422 msgstr ""
27423
27424 # type: textblock
27425 #: ../tools/virt-resize.pl:459
27426 msgid ""
27427 "By default, virt-resize copies over some sectors at the start of the disk "
27428 "(up to the beginning of the first partition).  Commonly these sectors "
27429 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27430 "in order for the guest to boot correctly."
27431 msgstr ""
27432
27433 # type: textblock
27434 #: ../tools/virt-resize.pl:464
27435 msgid ""
27436 "If you specify this flag, then this initial copy is not done.  You may need "
27437 "to reinstall the boot loader in this case."
27438 msgstr ""
27439
27440 # type: =item
27441 #: ../tools/virt-resize.pl:472
27442 msgid "B<--no-extra-partition>"
27443 msgstr ""
27444
27445 # type: textblock
27446 #: ../tools/virt-resize.pl:474
27447 msgid ""
27448 "By default, virt-resize creates an extra partition if there is any extra, "
27449 "unused space after all resizing has happened.  Use this option to prevent "
27450 "the extra partition from being created.  If you do this then the extra space "
27451 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27452 "tool in the guest."
27453 msgstr ""
27454
27455 # type: textblock
27456 #: ../tools/virt-resize.pl:480
27457 msgid ""
27458 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27459 "will be created."
27460 msgstr ""
27461
27462 # type: =item
27463 #: ../tools/virt-resize.pl:487
27464 msgid "B<--no-expand-content>"
27465 msgstr ""
27466
27467 # type: textblock
27468 #: ../tools/virt-resize.pl:489
27469 msgid ""
27470 "By default, virt-resize will try to expand the direct contents of "
27471 "partitions, if it knows how (see C<--expand> option above)."
27472 msgstr ""
27473
27474 # type: textblock
27475 #: ../tools/virt-resize.pl:492
27476 msgid ""
27477 "If you give the C<--no-expand-content> option then virt-resize will not "
27478 "attempt this."
27479 msgstr ""
27480
27481 # type: =item
27482 #: ../tools/virt-resize.pl:499
27483 msgid "B<-d> | B<--debug>"
27484 msgstr ""
27485
27486 # type: =item
27487 #: ../tools/virt-resize.pl:507
27488 msgid "B<-n> | B<--dryrun>"
27489 msgstr ""
27490
27491 # type: textblock
27492 #: ../tools/virt-resize.pl:509
27493 msgid "Print a summary of what would be done, but don't do anything."
27494 msgstr ""
27495
27496 # type: =item
27497 #: ../tools/virt-resize.pl:515
27498 msgid "B<-q> | B<--quiet>"
27499 msgstr ""
27500
27501 # type: textblock
27502 #: ../tools/virt-resize.pl:517
27503 msgid "Don't print the summary."
27504 msgstr ""
27505
27506 # type: textblock
27507 #: ../tools/virt-resize.pl:525
27508 msgid ""
27509 "Specify the format of the input disk image.  If this flag is not given then "
27510 "it is auto-detected from the image itself."
27511 msgstr ""
27512
27513 # type: textblock
27514 #: ../tools/virt-resize.pl:531
27515 msgid ""
27516 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27517 "AND NON-SPARSE RAW FORMATS>."
27518 msgstr ""
27519
27520 # type: =item
27521 #: ../tools/virt-resize.pl:538
27522 msgid "B<--output-format> raw"
27523 msgstr ""
27524
27525 # type: textblock
27526 #: ../tools/virt-resize.pl:540
27527 msgid ""
27528 "Specify the format of the output disk image.  If this flag is not given then "
27529 "it is auto-detected from the image itself."
27530 msgstr ""
27531
27532 # type: textblock
27533 #: ../tools/virt-resize.pl:546
27534 msgid ""
27535 "Note that you still need to create the output disk with the right format.  "
27536 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27537 msgstr ""
27538
27539 # type: =head1
27540 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27541 msgid "NOTES"
27542 msgstr ""
27543
27544 # type: =head2
27545 #: ../tools/virt-resize.pl:1424
27546 msgid "\"Partition 1 does not end on cylinder boundary.\""
27547 msgstr ""
27548
27549 # type: textblock
27550 #: ../tools/virt-resize.pl:1426
27551 msgid ""
27552 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27553 "means the partitions will not be aligned to the ancient CHS geometry.  "
27554 "However CHS geometry is meaningless for disks manufactured since the early "
27555 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27556 "cylinders is not required by any modern operating system."
27557 msgstr ""
27558
27559 # type: =head2
27560 #: ../tools/virt-resize.pl:1433
27561 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27562 msgstr ""
27563
27564 # type: textblock
27565 #: ../tools/virt-resize.pl:1435
27566 msgid ""
27567 "In Windows Vista and later versions, Microsoft switched to using a separate "
27568 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27569 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27570 "the boot partition.  Doing so seems to break the guest completely.  However "
27571 "expanding the second partition (ie. C: drive) should work."
27572 msgstr ""
27573
27574 # type: textblock
27575 #: ../tools/virt-resize.pl:1442
27576 msgid ""
27577 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27578 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27579 "it find errors) is nothing to worry about."
27580 msgstr ""
27581
27582 # type: =head2
27583 #: ../tools/virt-resize.pl:1446
27584 msgid "GUEST BOOT STUCK AT \"GRUB\""
27585 msgstr ""
27586
27587 # type: textblock
27588 #: ../tools/virt-resize.pl:1448
27589 msgid ""
27590 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27591 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27592 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27593 "although we think is to do with partition alignment."
27594 msgstr ""
27595
27596 # type: verbatim
27597 #: ../tools/virt-resize.pl:1453
27598 #, no-wrap
27599 msgid ""
27600 " guestfish -i -a newdisk\n"
27601 " ><fs> cat /boot/grub/device.map\n"
27602 " # check the contents of this file are sensible or\n"
27603 " # edit the file if necessary\n"
27604 " ><fs> grub-install / /dev/vda\n"
27605 " ><fs> exit\n"
27606 "\n"
27607 msgstr ""
27608
27609 # type: textblock
27610 #: ../tools/virt-resize.pl:1460
27611 msgid ""
27612 "For more flexible guest reconfiguration, including if you need to specify "
27613 "other parameters to grub-install, use L<virt-rescue(1)>."
27614 msgstr ""
27615
27616 # type: =head1
27617 #: ../tools/virt-resize.pl:1463
27618 msgid "ALTERNATIVE TOOLS"
27619 msgstr ""
27620
27621 # type: textblock
27622 #: ../tools/virt-resize.pl:1465
27623 msgid ""
27624 "There are several proprietary tools for resizing partitions.  We won't "
27625 "mention any here."
27626 msgstr ""
27627
27628 # type: textblock
27629 #: ../tools/virt-resize.pl:1468
27630 msgid ""
27631 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27632 "operations on disk images.  They can resize and move partitions, but I don't "
27633 "think they can do anything with the contents, and they certainly don't "
27634 "understand LVM."
27635 msgstr ""
27636
27637 # type: textblock
27638 #: ../tools/virt-resize.pl:1473
27639 msgid ""
27640 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27641 "but at a much lower level.  You will probably end up hand-calculating sector "
27642 "offsets, which is something that virt-resize was designed to avoid.  If you "
27643 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27644 "C<--debug> flag."
27645 msgstr ""
27646
27647 # type: textblock
27648 #: ../tools/virt-resize.pl:1488
27649 msgid ""
27650 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27651 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27652 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
27653 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27654 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27655 msgstr ""
27656
27657 # type: textblock
27658 #: ../tools/virt-list-filesystems.pl:32
27659 msgid ""
27660 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27661 msgstr ""
27662
27663 # type: verbatim
27664 #: ../tools/virt-list-filesystems.pl:36
27665 #, no-wrap
27666 msgid ""
27667 " virt-list-filesystems [--options] domname\n"
27668 "\n"
27669 msgstr ""
27670
27671 # type: verbatim
27672 #: ../tools/virt-list-filesystems.pl:38
27673 #, no-wrap
27674 msgid ""
27675 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27676 "\n"
27677 msgstr ""
27678
27679 # type: textblock
27680 #: ../tools/virt-list-filesystems.pl:42
27681 msgid ""
27682 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27683 "are contained in a virtual machine or disk image."
27684 msgstr ""
27685
27686 # type: textblock
27687 #: ../tools/virt-list-filesystems.pl:46
27688 msgid ""
27689 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27690 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27691 "> tool."
27692 msgstr ""
27693
27694 # type: textblock
27695 #: ../tools/virt-list-filesystems.pl:105
27696 msgid ""
27697 "With this option, C<virt-list-filesystems> displays the type of each "
27698 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27699 msgstr ""
27700
27701 # type: =item
27702 #: ../tools/virt-list-filesystems.pl:112
27703 msgid "B<-a> | B<--all>"
27704 msgstr ""
27705
27706 # type: textblock
27707 #: ../tools/virt-list-filesystems.pl:114
27708 msgid ""
27709 "Normally we only show mountable filesystems.  If this option is given then "
27710 "swap devices are shown too."
27711 msgstr ""
27712
27713 # type: textblock
27714 #: ../tools/virt-list-filesystems.pl:188
27715 msgid ""
27716 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
27717 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
27718 ">, L<http://libguestfs.org/>."
27719 msgstr ""
27720
27721 # type: textblock
27722 #: ../tools/virt-cat.pl:33
27723 msgid "virt-cat - Display a file in a virtual machine"
27724 msgstr ""
27725
27726 # type: verbatim
27727 #: ../tools/virt-cat.pl:37
27728 #, no-wrap
27729 msgid ""
27730 " virt-cat [--options] domname file\n"
27731 "\n"
27732 msgstr ""
27733
27734 # type: verbatim
27735 #: ../tools/virt-cat.pl:39
27736 #, no-wrap
27737 msgid ""
27738 " virt-cat [--options] disk.img [disk.img ...] file\n"
27739 "\n"
27740 msgstr ""
27741
27742 # type: textblock
27743 #: ../tools/virt-cat.pl:43
27744 msgid ""
27745 "C<virt-cat> is a command line tool to display the contents of C<file> where "
27746 "C<file> exists in the named virtual machine (or disk image)."
27747 msgstr ""
27748
27749 # type: textblock
27750 #: ../tools/virt-cat.pl:46
27751 msgid ""
27752 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
27753 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
27754 "tool."
27755 msgstr ""
27756
27757 # type: textblock
27758 #: ../tools/virt-cat.pl:52
27759 msgid ""
27760 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
27761 msgstr ""
27762
27763 # type: verbatim
27764 #: ../tools/virt-cat.pl:55
27765 #, no-wrap
27766 msgid ""
27767 " virt-cat mydomain /etc/fstab\n"
27768 "\n"
27769 msgstr ""
27770
27771 # type: textblock
27772 #: ../tools/virt-cat.pl:57
27773 msgid "List syslog messages from a VM:"
27774 msgstr ""
27775
27776 # type: verbatim
27777 #: ../tools/virt-cat.pl:59
27778 #, no-wrap
27779 msgid ""
27780 " virt-cat mydomain /var/log/messages | tail\n"
27781 "\n"
27782 msgstr ""
27783
27784 # type: textblock
27785 #: ../tools/virt-cat.pl:61
27786 msgid "Find out what DHCP IP address a VM acquired:"
27787 msgstr ""
27788
27789 # type: verbatim
27790 #: ../tools/virt-cat.pl:63
27791 #, no-wrap
27792 msgid ""
27793 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
27794 "\n"
27795 msgstr ""
27796
27797 # type: textblock
27798 #: ../tools/virt-cat.pl:65
27799 msgid "Find out what packages were recently installed:"
27800 msgstr ""
27801
27802 # type: verbatim
27803 #: ../tools/virt-cat.pl:67
27804 #, no-wrap
27805 msgid ""
27806 " virt-cat mydomain /var/log/yum.log | tail\n"
27807 "\n"
27808 msgstr ""
27809
27810 # type: textblock
27811 #: ../tools/virt-cat.pl:69
27812 msgid "Find out who is logged on inside a virtual machine:"
27813 msgstr ""
27814
27815 # type: verbatim
27816 #: ../tools/virt-cat.pl:71
27817 #, no-wrap
27818 msgid ""
27819 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
27820 " who /tmp/utmp\n"
27821 "\n"
27822 msgstr ""
27823
27824 # type: textblock
27825 #: ../tools/virt-cat.pl:74
27826 msgid "or who was logged on:"
27827 msgstr ""
27828
27829 # type: verbatim
27830 #: ../tools/virt-cat.pl:76
27831 #, no-wrap
27832 msgid ""
27833 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
27834 " last -f /tmp/wtmp\n"
27835 "\n"
27836 msgstr ""
27837
27838 # type: textblock
27839 #: ../tools/virt-cat.pl:187
27840 msgid ""
27841 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27842 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27843 msgstr ""
27844
27845 # type: textblock
27846 #: ../tools/virt-tar.pl:33
27847 msgid "virt-tar - Extract or upload files to a virtual machine"
27848 msgstr ""
27849
27850 # type: verbatim
27851 #: ../tools/virt-tar.pl:37
27852 #, no-wrap
27853 msgid ""
27854 " virt-tar [--options] -x domname directory tarball\n"
27855 "\n"
27856 msgstr ""
27857
27858 # type: verbatim
27859 #: ../tools/virt-tar.pl:39
27860 #, no-wrap
27861 msgid ""
27862 " virt-tar [--options] -u domname tarball directory\n"
27863 "\n"
27864 msgstr ""
27865
27866 # type: verbatim
27867 #: ../tools/virt-tar.pl:41
27868 #, no-wrap
27869 msgid ""
27870 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27871 "\n"
27872 msgstr ""
27873
27874 # type: verbatim
27875 #: ../tools/virt-tar.pl:43
27876 #, no-wrap
27877 msgid ""
27878 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27879 "\n"
27880 msgstr ""
27881
27882 # type: textblock
27883 #: ../tools/virt-tar.pl:47
27884 msgid "Download C</home> from the VM into a local tarball:"
27885 msgstr ""
27886
27887 # type: verbatim
27888 #: ../tools/virt-tar.pl:49
27889 #, no-wrap
27890 msgid ""
27891 " virt-tar -x domname /home home.tar\n"
27892 "\n"
27893 msgstr ""
27894
27895 # type: verbatim
27896 #: ../tools/virt-tar.pl:51
27897 #, no-wrap
27898 msgid ""
27899 " virt-tar -zx domname /home home.tar.gz\n"
27900 "\n"
27901 msgstr ""
27902
27903 # type: textblock
27904 #: ../tools/virt-tar.pl:53
27905 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27906 msgstr ""
27907
27908 # type: verbatim
27909 #: ../tools/virt-tar.pl:55
27910 #, no-wrap
27911 msgid ""
27912 " virt-tar -u domname uploadstuff.tar /tmp\n"
27913 "\n"
27914 msgstr ""
27915
27916 # type: verbatim
27917 #: ../tools/virt-tar.pl:57
27918 #, no-wrap
27919 msgid ""
27920 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27921 "\n"
27922 msgstr ""
27923
27924 # type: textblock
27925 #: ../tools/virt-tar.pl:61
27926 msgid ""
27927 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27928 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27929 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27930 msgstr ""
27931
27932 # type: textblock
27933 #: ../tools/virt-tar.pl:66
27934 msgid ""
27935 "You can use C<-x> (extract) on live virtual machines, but you might get "
27936 "inconsistent results or errors if there is filesystem activity inside the "
27937 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27938 "work, but the only way to guarantee consistent results is if the virtual "
27939 "machine is shut down."
27940 msgstr ""
27941
27942 # type: textblock
27943 #: ../tools/virt-tar.pl:74
27944 msgid ""
27945 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27946 "parts of a guest filesystem.  There are many possibilities: making backups, "
27947 "uploading data files, snooping on guest activity, fixing or customizing "
27948 "guests, etc."
27949 msgstr ""
27950
27951 # type: textblock
27952 #: ../tools/virt-tar.pl:79
27953 msgid ""
27954 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27955 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27956 "should look at the L<guestfish(1)> tool."
27957 msgstr ""
27958
27959 # type: textblock
27960 #: ../tools/virt-tar.pl:83
27961 msgid ""
27962 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27963 "its contents (recursively) from the virtual machine into a local tarball.  "
27964 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27965 "virtual machine.  You cannot use these two options together."
27966 msgstr ""
27967
27968 # type: textblock
27969 #: ../tools/virt-tar.pl:89
27970 msgid ""
27971 "In addition, you may need to use the C<-z> (gZip) option to enable "
27972 "compression.  When uploading, you have to specify C<-z> if the upload file "
27973 "is compressed because virt-tar won't detect this on its own."
27974 msgstr ""
27975
27976 # type: textblock
27977 #: ../tools/virt-tar.pl:93
27978 msgid ""
27979 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27980 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27981 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27982 "the L<libguestfs(3)> API)."
27983 msgstr ""
27984
27985 # type: =item
27986 #: ../tools/virt-tar.pl:151
27987 msgid "B<-x> | B<--extract> | B<--download>"
27988 msgstr ""
27989
27990 # type: =item
27991 #: ../tools/virt-tar.pl:153
27992 msgid "B<-u> | B<--upload>"
27993 msgstr ""
27994
27995 # type: textblock
27996 #: ../tools/virt-tar.pl:155
27997 msgid ""
27998 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27999 "local tarball."
28000 msgstr ""
28001
28002 # type: textblock
28003 #: ../tools/virt-tar.pl:158
28004 msgid ""
28005 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28006 "Please read the L</WARNING> section above before using this option."
28007 msgstr ""
28008
28009 # type: textblock
28010 #: ../tools/virt-tar.pl:162
28011 msgid "You must specify exactly one of these options."
28012 msgstr ""
28013
28014 # type: =item
28015 #: ../tools/virt-tar.pl:168
28016 msgid "B<-z> | B<--gzip>"
28017 msgstr ""
28018
28019 # type: textblock
28020 #: ../tools/virt-tar.pl:170
28021 msgid "Specify that the input or output tarball is gzip-compressed."
28022 msgstr ""
28023
28024 # type: textblock
28025 #: ../tools/virt-tar.pl:283
28026 msgid ""
28027 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28028 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28029 "org/>."
28030 msgstr ""
28031
28032 # type: textblock
28033 #: ../tools/virt-rescue.pl:33
28034 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28035 msgstr ""
28036
28037 # type: verbatim
28038 #: ../tools/virt-rescue.pl:37
28039 #, no-wrap
28040 msgid ""
28041 " virt-rescue [--options] domname\n"
28042 "\n"
28043 msgstr ""
28044
28045 # type: verbatim
28046 #: ../tools/virt-rescue.pl:39
28047 #, no-wrap
28048 msgid ""
28049 " virt-rescue [--options] disk.img [disk.img ...]\n"
28050 "\n"
28051 msgstr ""
28052
28053 # type: textblock
28054 #: ../tools/virt-rescue.pl:43
28055 msgid ""
28056 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28057 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28058 "you from doing this, but doesn't catch all cases."
28059 msgstr ""
28060
28061 # type: textblock
28062 #: ../tools/virt-rescue.pl:47
28063 msgid ""
28064 "However if you use the I<--ro> (read only) option, then you can attach a "
28065 "shell to a live virtual machine.  The results might be strange or "
28066 "inconsistent at times but you won't get disk corruption."
28067 msgstr ""
28068
28069 # type: textblock
28070 #: ../tools/virt-rescue.pl:53
28071 msgid ""
28072 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28073 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28074 "recovery tools which you can use to examine or rescue a virtual machine or "
28075 "disk image."
28076 msgstr ""
28077
28078 # type: textblock
28079 #: ../tools/virt-rescue.pl:58
28080 msgid ""
28081 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28082 "on disk image(s):"
28083 msgstr ""
28084
28085 # type: verbatim
28086 #: ../tools/virt-rescue.pl:61
28087 #, no-wrap
28088 msgid ""
28089 " virt-rescue GuestName\n"
28090 "\n"
28091 msgstr ""
28092
28093 # type: verbatim
28094 #: ../tools/virt-rescue.pl:63
28095 #, no-wrap
28096 msgid ""
28097 " virt-rescue --ro /path/to/disk.img\n"
28098 "\n"
28099 msgstr ""
28100
28101 # type: verbatim
28102 #: ../tools/virt-rescue.pl:65
28103 #, no-wrap
28104 msgid ""
28105 " virt-rescue /dev/sdc\n"
28106 "\n"
28107 msgstr ""
28108
28109 # type: textblock
28110 #: ../tools/virt-rescue.pl:67
28111 msgid "For live VMs you I<must> use the --ro option."
28112 msgstr ""
28113
28114 # type: textblock
28115 #: ../tools/virt-rescue.pl:69
28116 msgid ""
28117 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28118 "in an interactive bash shell where you can use many ordinary Linux "
28119 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28120 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28121 "is an empty directory called C</sysroot> where you can mount filesystems."
28122 msgstr ""
28123
28124 # type: textblock
28125 #: ../tools/virt-rescue.pl:76
28126 msgid ""
28127 "In the example below, we list logical volumes, then choose one to mount "
28128 "under C</sysroot>:"
28129 msgstr ""
28130
28131 # type: verbatim
28132 #: ../tools/virt-rescue.pl:79
28133 #, no-wrap
28134 msgid ""
28135 " ><rescue> lvs\n"
28136 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28137 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28138 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28139 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28140 " ><rescue> ls /sysroot\n"
28141 "\n"
28142 msgstr ""
28143
28144 # type: textblock
28145 #: ../tools/virt-rescue.pl:86
28146 msgid ""
28147 "If you don't know what filesystems are available on the virtual machine then "
28148 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28149 msgstr ""
28150
28151 # type: textblock
28152 #: ../tools/virt-rescue.pl:92
28153 msgid ""
28154 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28155 "virtual machine.  For example you can use it on a blank file if you want to "
28156 "partition that file (although we would recommend using L<guestfish(1)> "
28157 "instead as it is more suitable for this purpose).  You can even use virt-"
28158 "rescue on things like SD cards."
28159 msgstr ""
28160
28161 # type: textblock
28162 #: ../tools/virt-rescue.pl:98
28163 msgid ""
28164 "This tool is just designed for quick interactive hacking on a virtual "
28165 "machine.  For more structured access to a virtual machine disk image, you "
28166 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28167 "make scripted changes to guests, use L<guestfish(1)>."
28168 msgstr ""
28169
28170 # type: =item
28171 #: ../tools/virt-rescue.pl:127
28172 msgid "B<--append kernelopts>"
28173 msgstr ""
28174
28175 # type: textblock
28176 #: ../tools/virt-rescue.pl:129
28177 msgid "Pass additional options to the rescue kernel."
28178 msgstr ""
28179
28180 # type: =item
28181 #: ../tools/virt-rescue.pl:164
28182 msgid "B<--memsize MB> | B<-m MB>"
28183 msgstr ""
28184
28185 # type: textblock
28186 #: ../tools/virt-rescue.pl:166
28187 msgid ""
28188 "Change the amount of memory allocated to the rescue system.  The default is "
28189 "set by libguestfs and is small but adequate for running system tools.  The "
28190 "occasional program might need more memory.  The parameter is specified in "
28191 "megabytes."
28192 msgstr ""
28193
28194 # type: =item
28195 #: ../tools/virt-rescue.pl:175
28196 msgid "B<--network MB>"
28197 msgstr ""
28198
28199 # type: textblock
28200 #: ../tools/virt-rescue.pl:177
28201 msgid "Enable QEMU user networking in the guest."
28202 msgstr ""
28203
28204 # type: =item
28205 #: ../tools/virt-rescue.pl:183
28206 msgid "B<--ro> | B<-r>"
28207 msgstr ""
28208
28209 # type: textblock
28210 #: ../tools/virt-rescue.pl:185
28211 msgid "Open the image read-only."
28212 msgstr ""
28213
28214 # type: textblock
28215 #: ../tools/virt-rescue.pl:197
28216 msgid ""
28217 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28218 "SELINUX> before using this option."
28219 msgstr ""
28220
28221 # type: textblock
28222 #: ../tools/virt-rescue.pl:257
28223 msgid ""
28224 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
28225 "ENVIRONMENT VARIABLES> for the complete list."
28226 msgstr ""
28227
28228 # type: textblock
28229 #: ../tools/virt-rescue.pl:269
28230 msgid ""
28231 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28232 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28233 msgstr ""
28234
28235 # type: textblock
28236 #: ../tools/virt-make-fs.pl:37
28237 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28238 msgstr ""
28239
28240 # type: verbatim
28241 #: ../tools/virt-make-fs.pl:41
28242 #, no-wrap
28243 msgid ""
28244 " virt-make-fs [--options] input.tar output.img\n"
28245 "\n"
28246 msgstr ""
28247
28248 # type: verbatim
28249 #: ../tools/virt-make-fs.pl:43
28250 #, no-wrap
28251 msgid ""
28252 " virt-make-fs [--options] input.tar.gz output.img\n"
28253 "\n"
28254 msgstr ""
28255
28256 # type: verbatim
28257 #: ../tools/virt-make-fs.pl:45
28258 #, no-wrap
28259 msgid ""
28260 " virt-make-fs [--options] directory output.img\n"
28261 "\n"
28262 msgstr ""
28263
28264 # type: textblock
28265 #: ../tools/virt-make-fs.pl:49
28266 msgid ""
28267 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28268 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28269 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28270 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28271 "you want to attach these filesystems to existing virtual machines (eg. to "
28272 "import large amounts of read-only data to a VM)."
28273 msgstr ""
28274
28275 # type: textblock
28276 #: ../tools/virt-make-fs.pl:57
28277 msgid "Basic usage is:"
28278 msgstr ""
28279
28280 # type: verbatim
28281 #: ../tools/virt-make-fs.pl:59
28282 #, no-wrap
28283 msgid ""
28284 " virt-make-fs input output\n"
28285 "\n"
28286 msgstr ""
28287
28288 # type: textblock
28289 #: ../tools/virt-make-fs.pl:61
28290 msgid ""
28291 "where C<input> is either a directory containing files that you want to add, "
28292 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28293 "C<output> is a disk image.  The input type is detected automatically.  The "
28294 "output disk image defaults to a raw ext2 image unless you specify extra "
28295 "flags (see L</OPTIONS> below)."
28296 msgstr ""
28297
28298 # type: =head2
28299 #: ../tools/virt-make-fs.pl:67
28300 msgid "EXTRA SPACE"
28301 msgstr ""
28302
28303 # type: textblock
28304 #: ../tools/virt-make-fs.pl:69
28305 msgid ""
28306 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28307 "the files that it contains, but might have extra space.  Depending on how "
28308 "you are going to use the output, you might think this extra space is wasted "
28309 "and want to minimize it, or you might want to leave space so that more files "
28310 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28311 "but you can use the C<--size> flag to leave space in the filesystem if you "
28312 "want it."
28313 msgstr ""
28314
28315 # type: textblock
28316 #: ../tools/virt-make-fs.pl:77
28317 msgid ""
28318 "An alternative way to leave extra space but not make the output image any "
28319 "bigger is to use an alternative disk image format (instead of the default "
28320 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28321 "image format (check your hypervisor supports this before using it).  This "
28322 "allows you to choose a large C<--size> but the extra space won't actually be "
28323 "allocated in the image until you try to store something in it."
28324 msgstr ""
28325
28326 # type: textblock
28327 #: ../tools/virt-make-fs.pl:85
28328 msgid ""
28329 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28330 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28331 "resize to build another image from scratch."
28332 msgstr ""
28333
28334 # type: =head3
28335 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28336 #: ../tools/virt-make-fs.pl:142
28337 msgid "EXAMPLE"
28338 msgstr ""
28339
28340 # type: verbatim
28341 #: ../tools/virt-make-fs.pl:91
28342 #, no-wrap
28343 msgid ""
28344 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28345 "\n"
28346 msgstr ""
28347
28348 # type: =head2
28349 #: ../tools/virt-make-fs.pl:93
28350 msgid "FILESYSTEM TYPE"
28351 msgstr ""
28352
28353 # type: textblock
28354 #: ../tools/virt-make-fs.pl:95
28355 msgid ""
28356 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28357 "libguestfs supports can be used (but I<not> read-only formats like "
28358 "ISO9660).  Here are some of the more common choices:"
28359 msgstr ""
28360
28361 # type: =item
28362 #: ../tools/virt-make-fs.pl:101
28363 msgid "I<ext3>"
28364 msgstr ""
28365
28366 # type: textblock
28367 #: ../tools/virt-make-fs.pl:103
28368 msgid ""
28369 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28370 "you are not going to use the filesystem in a way that requires the journal, "
28371 "then this is just wasted overhead."
28372 msgstr ""
28373
28374 # type: =item
28375 #: ../tools/virt-make-fs.pl:107
28376 msgid "I<ntfs> or I<vfat>"
28377 msgstr ""
28378
28379 # type: textblock
28380 #: ../tools/virt-make-fs.pl:109
28381 msgid "Useful if exporting data to a Windows guest."
28382 msgstr ""
28383
28384 # type: textblock
28385 #: ../tools/virt-make-fs.pl:111
28386 msgid ""
28387 "I<Note for vfat>: The tar archive or local directory must only contain files "
28388 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28389 "program running within libguestfs is unable to change the ownership of non-"
28390 "root files, since vfat itself does not support this."
28391 msgstr ""
28392
28393 # type: =item
28394 #: ../tools/virt-make-fs.pl:116
28395 msgid "I<minix>"
28396 msgstr ""
28397
28398 # type: textblock
28399 #: ../tools/virt-make-fs.pl:118
28400 msgid ""
28401 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28402 "total filesystem size."
28403 msgstr ""
28404
28405 # type: verbatim
28406 #: ../tools/virt-make-fs.pl:125
28407 #, no-wrap
28408 msgid ""
28409 " virt-make-fs --type=minix input minixfs.img\n"
28410 "\n"
28411 msgstr ""
28412
28413 # type: =head2
28414 #: ../tools/virt-make-fs.pl:127
28415 msgid "TO PARTITION OR NOT TO PARTITION"
28416 msgstr ""
28417
28418 # type: textblock
28419 #: ../tools/virt-make-fs.pl:129
28420 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28421 msgstr ""
28422
28423 # type: textblock
28424 #: ../tools/virt-make-fs.pl:131
28425 msgid ""
28426 "Adding a partition can make the disk image more compatible with certain "
28427 "virtualized operating systems which don't expect to see a filesystem "
28428 "directly located on a block device (Linux doesn't care and will happily "
28429 "handle both types)."
28430 msgstr ""
28431
28432 # type: textblock
28433 #: ../tools/virt-make-fs.pl:136
28434 msgid ""
28435 "On the other hand, if you have a partition table then the output image is no "
28436 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28437 "directly on a partitioned disk image.  (However libguestfs tools such as "
28438 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28439 msgstr ""
28440
28441 # type: textblock
28442 #: ../tools/virt-make-fs.pl:144
28443 msgid "Add an MBR partition:"
28444 msgstr ""
28445
28446 # type: verbatim
28447 #: ../tools/virt-make-fs.pl:146
28448 #, no-wrap
28449 msgid ""
28450 " virt-make-fs --partition -- input disk.img\n"
28451 "\n"
28452 msgstr ""
28453
28454 # type: textblock
28455 #: ../tools/virt-make-fs.pl:148
28456 msgid ""
28457 "If the output disk image could be terabyte-sized or larger, it's better to "
28458 "use an EFI/GPT-compatible partition table:"
28459 msgstr ""
28460
28461 # type: verbatim
28462 #: ../tools/virt-make-fs.pl:151
28463 #, no-wrap
28464 msgid ""
28465 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28466 "\n"
28467 msgstr ""
28468
28469 # type: textblock
28470 #: ../tools/virt-make-fs.pl:179
28471 msgid "Enable debugging information."
28472 msgstr ""
28473
28474 # type: =item
28475 #: ../tools/virt-make-fs.pl:185
28476 msgid "B<--size=E<lt>NE<gt>>"
28477 msgstr ""
28478
28479 # type: =item
28480 #: ../tools/virt-make-fs.pl:187
28481 msgid "B<--size=+E<lt>NE<gt>>"
28482 msgstr ""
28483
28484 # type: =item
28485 #: ../tools/virt-make-fs.pl:189
28486 msgid "B<-s E<lt>NE<gt>>"
28487 msgstr ""
28488
28489 # type: =item
28490 #: ../tools/virt-make-fs.pl:191
28491 msgid "B<-s +E<lt>NE<gt>>"
28492 msgstr ""
28493
28494 # type: textblock
28495 #: ../tools/virt-make-fs.pl:193
28496 msgid ""
28497 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28498 msgstr ""
28499
28500 # type: textblock
28501 #: ../tools/virt-make-fs.pl:196
28502 msgid ""
28503 "If this option is I<not> given, then the output image will be just large "
28504 "enough to contain all the files, with not much wasted space."
28505 msgstr ""
28506
28507 # type: textblock
28508 #: ../tools/virt-make-fs.pl:199
28509 msgid ""
28510 "To choose a fixed size output disk, specify an absolute number followed by b/"
28511 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28512 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28513 "files, else you will get an error."
28514 msgstr ""
28515
28516 # type: textblock
28517 #: ../tools/virt-make-fs.pl:204
28518 msgid ""
28519 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28520 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28521 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28522 "the input files, and (approximately) an extra 200 MB free space."
28523 msgstr ""
28524
28525 # type: textblock
28526 #: ../tools/virt-make-fs.pl:210
28527 msgid ""
28528 "Note that virt-make-fs estimates free space, and therefore will not produce "
28529 "filesystems containing precisely the free space requested.  (It is much more "
28530 "expensive and time-consuming to produce a filesystem which has precisely the "
28531 "desired free space)."
28532 msgstr ""
28533
28534 # type: =item
28535 #: ../tools/virt-make-fs.pl:219
28536 msgid "B<--format=E<lt>fmtE<gt>>"
28537 msgstr ""
28538
28539 # type: =item
28540 #: ../tools/virt-make-fs.pl:221
28541 msgid "B<-F E<lt>fmtE<gt>>"
28542 msgstr ""
28543
28544 # type: textblock
28545 #: ../tools/virt-make-fs.pl:223
28546 msgid "Choose the output disk image format."
28547 msgstr ""
28548
28549 # type: textblock
28550 #: ../tools/virt-make-fs.pl:225
28551 msgid "The default is C<raw> (raw disk image)."
28552 msgstr ""
28553
28554 # type: textblock
28555 #: ../tools/virt-make-fs.pl:227
28556 msgid ""
28557 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28558 "that would really make sense here is C<qcow2>."
28559 msgstr ""
28560
28561 # type: =item
28562 #: ../tools/virt-make-fs.pl:234
28563 msgid "B<--type=E<lt>fsE<gt>>"
28564 msgstr ""
28565
28566 # type: =item
28567 #: ../tools/virt-make-fs.pl:236
28568 msgid "B<-t E<lt>fsE<gt>>"
28569 msgstr ""
28570
28571 # type: textblock
28572 #: ../tools/virt-make-fs.pl:238
28573 msgid "Choose the output filesystem type."
28574 msgstr ""
28575
28576 # type: textblock
28577 #: ../tools/virt-make-fs.pl:240
28578 msgid "The default is C<ext2>."
28579 msgstr ""
28580
28581 # type: textblock
28582 #: ../tools/virt-make-fs.pl:242
28583 msgid ""
28584 "Any filesystem which is supported read-write by libguestfs can be used here."
28585 msgstr ""
28586
28587 # type: =item
28588 #: ../tools/virt-make-fs.pl:249
28589 msgid "B<--partition>"
28590 msgstr ""
28591
28592 # type: =item
28593 #: ../tools/virt-make-fs.pl:251
28594 msgid "B<--partition=E<lt>parttypeE<gt>>"
28595 msgstr ""
28596
28597 # type: textblock
28598 #: ../tools/virt-make-fs.pl:253
28599 msgid ""
28600 "If specified, this flag adds an MBR partition table to the output disk image."
28601 msgstr ""
28602
28603 # type: textblock
28604 #: ../tools/virt-make-fs.pl:256
28605 msgid ""
28606 "You can change the partition table type, eg. C<--partition=gpt> for large "
28607 "disks."
28608 msgstr ""
28609
28610 # type: textblock
28611 #: ../tools/virt-make-fs.pl:259
28612 msgid ""
28613 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28614 "might consider the next parameter to be the partition type.  For example:"
28615 msgstr ""
28616
28617 # type: verbatim
28618 #: ../tools/virt-make-fs.pl:263
28619 #, no-wrap
28620 msgid ""
28621 " virt-make-fs --partition input.tar ...\n"
28622 "\n"
28623 msgstr ""
28624
28625 # type: textblock
28626 #: ../tools/virt-make-fs.pl:265
28627 msgid ""
28628 "would cause virt-make-fs to think you wanted to use a partition type of "
28629 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28630 "dash) between options and the input file argument:"
28631 msgstr ""
28632
28633 # type: verbatim
28634 #: ../tools/virt-make-fs.pl:269
28635 #, no-wrap
28636 msgid ""
28637 " virt-make-fs --partition -- input.tar ...\n"
28638 "\n"
28639 msgstr ""
28640
28641 # type: textblock
28642 #: ../tools/virt-make-fs.pl:536
28643 msgid ""
28644 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28645 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28646 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28647 msgstr ""
28648
28649 # type: verbatim
28650 #: ../tools/virt-make-fs.pl:553
28651 #, no-wrap
28652 msgid ""
28653 " export LIBGUESTFS_DEBUG=1\n"
28654 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28655 "\n"
28656 msgstr ""
28657
28658 # type: textblock
28659 #: ../tools/virt-make-fs.pl:556
28660 msgid ""
28661 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28662 "redhat.com/>"
28663 msgstr ""
28664
28665 # type: textblock
28666 #: ../tools/virt-list-partitions.pl:32
28667 msgid ""
28668 "virt-list-partitions - List partitions in a virtual machine or disk image"
28669 msgstr ""
28670
28671 # type: verbatim
28672 #: ../tools/virt-list-partitions.pl:36
28673 #, no-wrap
28674 msgid ""
28675 " virt-list-partitions [--options] domname\n"
28676 "\n"
28677 msgstr ""
28678
28679 # type: verbatim
28680 #: ../tools/virt-list-partitions.pl:38
28681 #, no-wrap
28682 msgid ""
28683 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28684 "\n"
28685 msgstr ""
28686
28687 # type: textblock
28688 #: ../tools/virt-list-partitions.pl:42
28689 msgid ""
28690 "C<virt-list-partitions> is a command line tool to list the partitions that "
28691 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28692 "first step to using L<virt-resize(1)>."
28693 msgstr ""
28694
28695 # type: textblock
28696 #: ../tools/virt-list-partitions.pl:47
28697 msgid ""
28698 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28699 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28700 "> tool."
28701 msgstr ""
28702
28703 # type: =item
28704 #: ../tools/virt-list-partitions.pl:104
28705 msgid "B<-h> | B<--human-readable>"
28706 msgstr ""
28707
28708 # type: textblock
28709 #: ../tools/virt-list-partitions.pl:106
28710 msgid "Show sizes in human-readable form (eg. \"1G\")."
28711 msgstr ""
28712
28713 # type: textblock
28714 #: ../tools/virt-list-partitions.pl:114
28715 msgid ""
28716 "With this option, C<virt-list-partitions> displays the type and size of each "
28717 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28718 msgstr ""
28719
28720 # type: =item
28721 #: ../tools/virt-list-partitions.pl:121
28722 msgid "B<-t> | B<--total>"
28723 msgstr ""
28724
28725 # type: textblock
28726 #: ../tools/virt-list-partitions.pl:123
28727 msgid ""
28728 "Display the total size of each block device (as a separate row or rows)."
28729 msgstr ""
28730
28731 # type: textblock
28732 #: ../tools/virt-list-partitions.pl:256
28733 msgid ""
28734 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
28735 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
28736 "libguestfs.org/>."
28737 msgstr ""