build: Add ./configure --disable-ruby option.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.6.1\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-05 15:21+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: ENCODING"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-cat.pl:29 ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29 ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
21 msgid "utf8"
22 msgstr ""
23
24 # type: =head1
25 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr ""
28
29 # type: textblock
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
32 msgstr ""
33
34 # type: =head1
35 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
36 msgid "SYNOPSIS"
37 msgstr ""
38
39 # type: verbatim
40 #: ../src/guestfs.pod:9
41 #, no-wrap
42 msgid ""
43 " #include <guestfs.h>\n"
44 " \n"
45 msgstr ""
46
47 # type: verbatim
48 #: ../src/guestfs.pod:11
49 #, no-wrap
50 msgid ""
51 " guestfs_h *g = guestfs_create ();\n"
52 " guestfs_add_drive (g, \"guest.img\");\n"
53 " guestfs_launch (g);\n"
54 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
55 " guestfs_touch (g, \"/hello\");\n"
56 " guestfs_umount (g, \"/\");\n"
57 " guestfs_sync (g);\n"
58 " guestfs_close (g);\n"
59 "\n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:20
64 #, no-wrap
65 msgid ""
66 " cc prog.c -o prog -lguestfs\n"
67 "or:\n"
68 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
69 "\n"
70 msgstr ""
71
72 # type: =head1
73 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 # type: textblock
78 #: ../src/guestfs.pod:26
79 msgid ""
80 "Libguestfs is a library for accessing and modifying guest disk images.  "
81 "Amongst the things this is good for: making batch configuration changes to "
82 "guests, getting disk used/free statistics (see also: virt-df), migrating "
83 "between virtualization systems (see also: virt-p2v), performing partial "
84 "backups, performing partial guest clones, cloning guests and changing "
85 "registry/UUID/hostname info, and much else besides."
86 msgstr ""
87
88 # type: textblock
89 #: ../src/guestfs.pod:34
90 msgid ""
91 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
92 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
93 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
94 "qcow2, vmdk."
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:39
99 msgid ""
100 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
101 "what filesystem is in each LV, etc.).  It can also run commands in the "
102 "context of the guest.  Also you can access filesystems over FUSE."
103 msgstr ""
104
105 # type: textblock
106 #: ../src/guestfs.pod:44
107 msgid ""
108 "Libguestfs is a library that can be linked with C and C++ management "
109 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
110 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
111 "line."
112 msgstr ""
113
114 # type: textblock
115 #: ../src/guestfs.pod:49
116 msgid ""
117 "You don't need to be root to use libguestfs, although obviously you do need "
118 "enough permissions to access the disk images."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:52
123 msgid ""
124 "Libguestfs is a large API because it can do many things.  For a gentle "
125 "introduction, please read the L</API OVERVIEW> section next."
126 msgstr ""
127
128 # type: =head1
129 #: ../src/guestfs.pod:55
130 msgid "API OVERVIEW"
131 msgstr ""
132
133 # type: textblock
134 #: ../src/guestfs.pod:57
135 msgid ""
136 "This section provides a gentler overview of the libguestfs API.  We also try "
137 "to group API calls together, where that may not be obvious from reading "
138 "about the individual calls in the main section of this manual."
139 msgstr ""
140
141 # type: =head2
142 #: ../src/guestfs.pod:62
143 msgid "HANDLES"
144 msgstr ""
145
146 # type: textblock
147 #: ../src/guestfs.pod:64
148 msgid ""
149 "Before you can use libguestfs calls, you have to create a handle.  Then you "
150 "must add at least one disk image to the handle, followed by launching the "
151 "handle, then performing whatever operations you want, and finally closing "
152 "the handle.  By convention we use the single letter C<g> for the name of the "
153 "handle variable, although of course you can use any name you want."
154 msgstr ""
155
156 # type: textblock
157 #: ../src/guestfs.pod:71
158 msgid "The general structure of all libguestfs-using programs looks like this:"
159 msgstr ""
160
161 # type: verbatim
162 #: ../src/guestfs.pod:74
163 #, no-wrap
164 msgid ""
165 " guestfs_h *g = guestfs_create ();\n"
166 " \n"
167 msgstr ""
168
169 # type: verbatim
170 #: ../src/guestfs.pod:76
171 #, no-wrap
172 msgid ""
173 " /* Call guestfs_add_drive additional times if there are\n"
174 "  * multiple disk images.\n"
175 "  */\n"
176 " guestfs_add_drive (g, \"guest.img\");\n"
177 " \n"
178 msgstr ""
179
180 # type: verbatim
181 #: ../src/guestfs.pod:81
182 #, no-wrap
183 msgid ""
184 " /* Most manipulation calls won't work until you've launched\n"
185 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
186 "  * and _before_ other commands.\n"
187 "  */\n"
188 " guestfs_launch (g);\n"
189 " \n"
190 msgstr ""
191
192 # type: verbatim
193 #: ../src/guestfs.pod:87
194 #, no-wrap
195 msgid ""
196 " /* Now you can examine what partitions, LVs etc are available.\n"
197 "  */\n"
198 " char **partitions = guestfs_list_partitions (g);\n"
199 " char **logvols = guestfs_lvs (g);\n"
200 " \n"
201 msgstr ""
202
203 # type: verbatim
204 #: ../src/guestfs.pod:92
205 #, no-wrap
206 msgid ""
207 " /* To access a filesystem in the image, you must mount it.\n"
208 "  */\n"
209 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
210 " \n"
211 msgstr ""
212
213 # type: verbatim
214 #: ../src/guestfs.pod:96
215 #, no-wrap
216 msgid ""
217 " /* Now you can perform filesystem actions on the guest\n"
218 "  * disk image.\n"
219 "  */\n"
220 " guestfs_touch (g, \"/hello\");\n"
221 " \n"
222 msgstr ""
223
224 # type: verbatim
225 #: ../src/guestfs.pod:101
226 #, no-wrap
227 msgid ""
228 " /* You only need to call guestfs_sync if you have made\n"
229 "  * changes to the guest image.  (But if you've made changes\n"
230 "  * then you *must* sync).  See also: guestfs_umount and\n"
231 "  * guestfs_umount_all calls.\n"
232 "  */\n"
233 " guestfs_sync (g);\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:108
239 #, no-wrap
240 msgid ""
241 " /* Close the handle 'g'. */\n"
242 " guestfs_close (g);\n"
243 "\n"
244 msgstr ""
245
246 # type: textblock
247 #: ../src/guestfs.pod:111
248 msgid ""
249 "The code above doesn't include any error checking.  In real code you should "
250 "check return values carefully for errors.  In general all functions that "
251 "return integers return C<-1> on error, and all functions that return "
252 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
253 "how to handle errors, and consult the documentation for each function call "
254 "below to see precisely how they return error indications."
255 msgstr ""
256
257 # type: =head2
258 #: ../src/guestfs.pod:119
259 msgid "DISK IMAGES"
260 msgstr ""
261
262 # type: textblock
263 #: ../src/guestfs.pod:121
264 msgid ""
265 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
266 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
267 "actual block device, or simply an empty file of zeroes that you have created "
268 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
269 "of these."
270 msgstr ""
271
272 # type: textblock
273 #: ../src/guestfs.pod:127
274 msgid ""
275 "The call you should use in modern code for adding drives is "
276 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
277 "specifying that the format is raw, do:"
278 msgstr ""
279
280 # type: verbatim
281 #: ../src/guestfs.pod:131
282 #, no-wrap
283 msgid ""
284 " guestfs_add_drive_opts (g, filename,\n"
285 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
286 "                         -1);\n"
287 "\n"
288 msgstr ""
289
290 # type: textblock
291 #: ../src/guestfs.pod:135
292 msgid "You can add a disk read-only using:"
293 msgstr ""
294
295 # type: verbatim
296 #: ../src/guestfs.pod:137
297 #, no-wrap
298 msgid ""
299 " guestfs_add_drive_opts (g, filename,\n"
300 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
301 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
302 "                         -1);\n"
303 "\n"
304 msgstr ""
305
306 # type: textblock
307 #: ../src/guestfs.pod:142
308 msgid ""
309 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
310 "libguestfs won't modify the file."
311 msgstr ""
312
313 # type: textblock
314 #: ../src/guestfs.pod:145
315 msgid ""
316 "Be extremely cautious if the disk image is in use, eg. if it is being used "
317 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
318 "corruption, but adding it read-only is safe."
319 msgstr ""
320
321 # type: textblock
322 #: ../src/guestfs.pod:149
323 msgid ""
324 "You must add at least one disk image, and you may add multiple disk images.  "
325 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
326 "first one you added), C</dev/sdb> (for the second one you added), etc."
327 msgstr ""
328
329 # type: textblock
330 #: ../src/guestfs.pod:154
331 msgid ""
332 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
333 "can call L</guestfs_list_devices> to get a list of the device names, in the "
334 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
335 msgstr ""
336
337 # type: =head2
338 #: ../src/guestfs.pod:159
339 msgid "MOUNTING"
340 msgstr ""
341
342 # type: textblock
343 #: ../src/guestfs.pod:161
344 msgid ""
345 "Before you can read or write files, create directories and so on in a disk "
346 "image that contains filesystems, you have to mount those filesystems using "
347 "L</guestfs_mount>.  If you already know that a disk image contains (for "
348 "example) one partition with a filesystem on that partition, then you can "
349 "mount it directly:"
350 msgstr ""
351
352 # type: verbatim
353 #: ../src/guestfs.pod:167
354 #, no-wrap
355 msgid ""
356 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
357 "\n"
358 msgstr ""
359
360 # type: textblock
361 #: ../src/guestfs.pod:169
362 msgid ""
363 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
364 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
365 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
366 msgstr ""
367
368 # type: textblock
369 #: ../src/guestfs.pod:173
370 msgid ""
371 "If you are given a disk image and you don't know what it contains then you "
372 "have to find out.  Libguestfs can do that too: use "
373 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
374 "and LVs, and either try mounting each to see what is mountable, or else "
375 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
376 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
377 "But you might find it easier to look at higher level programs built on top "
378 "of libguestfs, in particular L<virt-inspector(1)>."
379 msgstr ""
380
381 # type: textblock
382 #: ../src/guestfs.pod:183
383 msgid ""
384 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
385 "several other variations of the C<guestfs_mount_*> call."
386 msgstr ""
387
388 # type: =head2
389 #: ../src/guestfs.pod:186
390 msgid "FILESYSTEM ACCESS AND MODIFICATION"
391 msgstr ""
392
393 # type: textblock
394 #: ../src/guestfs.pod:188
395 msgid ""
396 "The majority of the libguestfs API consists of fairly low-level calls for "
397 "accessing and modifying the files, directories, symlinks etc on mounted "
398 "filesystems.  There are over a hundred such calls which you can find listed "
399 "in detail below in this man page, and we don't even pretend to cover them "
400 "all in this overview."
401 msgstr ""
402
403 # type: textblock
404 #: ../src/guestfs.pod:194
405 msgid ""
406 "Specify filenames as full paths, starting with C<\"/\"> and including the "
407 "mount point."
408 msgstr ""
409
410 # type: textblock
411 #: ../src/guestfs.pod:197
412 msgid ""
413 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
414 "the file called C<\"etc/passwd\"> then you could do:"
415 msgstr ""
416
417 # type: verbatim
418 #: ../src/guestfs.pod:200
419 #, no-wrap
420 msgid ""
421 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
422 "\n"
423 msgstr ""
424
425 # type: textblock
426 #: ../src/guestfs.pod:202
427 msgid ""
428 "This would return C<data> as a newly allocated buffer containing the full "
429 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
430 "or C<NULL> if there was an error."
431 msgstr ""
432
433 # type: textblock
434 #: ../src/guestfs.pod:206
435 msgid ""
436 "As another example, to create a top-level directory on that filesystem "
437 "called C<\"var\"> you would do:"
438 msgstr ""
439
440 # type: verbatim
441 #: ../src/guestfs.pod:209
442 #, no-wrap
443 msgid ""
444 " guestfs_mkdir (g, \"/var\");\n"
445 "\n"
446 msgstr ""
447
448 # type: textblock
449 #: ../src/guestfs.pod:211
450 msgid "To create a symlink you could do:"
451 msgstr ""
452
453 # type: verbatim
454 #: ../src/guestfs.pod:213
455 #, no-wrap
456 msgid ""
457 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
458 "               \"/etc/rc3.d/S30portmap\");\n"
459 "\n"
460 msgstr ""
461
462 # type: textblock
463 #: ../src/guestfs.pod:216
464 msgid ""
465 "Libguestfs will reject attempts to use relative paths and there is no "
466 "concept of a current working directory."
467 msgstr ""
468
469 # type: textblock
470 #: ../src/guestfs.pod:219
471 msgid ""
472 "Libguestfs can return errors in many situations: for example if the "
473 "filesystem isn't writable, or if a file or directory that you requested "
474 "doesn't exist.  If you are using the C API (documented here)  you have to "
475 "check for those error conditions after each call.  (Other language bindings "
476 "turn these errors into exceptions)."
477 msgstr ""
478
479 # type: textblock
480 #: ../src/guestfs.pod:225
481 msgid ""
482 "File writes are affected by the per-handle umask, set by calling "
483 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
484 msgstr ""
485
486 # type: =head2
487 #: ../src/guestfs.pod:228
488 msgid "PARTITIONING"
489 msgstr ""
490
491 # type: textblock
492 #: ../src/guestfs.pod:230
493 msgid ""
494 "Libguestfs contains API calls to read, create and modify partition tables on "
495 "disk images."
496 msgstr ""
497
498 # type: textblock
499 #: ../src/guestfs.pod:233
500 msgid ""
501 "In the common case where you want to create a single partition covering the "
502 "whole disk, you should use the L</guestfs_part_disk> call:"
503 msgstr ""
504
505 # type: verbatim
506 #: ../src/guestfs.pod:237
507 #, no-wrap
508 msgid ""
509 " const char *parttype = \"mbr\";\n"
510 " if (disk_is_larger_than_2TB)\n"
511 "   parttype = \"gpt\";\n"
512 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
513 "\n"
514 msgstr ""
515
516 # type: textblock
517 #: ../src/guestfs.pod:242
518 msgid ""
519 "Obviously this effectively wipes anything that was on that disk image "
520 "before."
521 msgstr ""
522
523 # type: =head2
524 #: ../src/guestfs.pod:245
525 msgid "LVM2"
526 msgstr ""
527
528 # type: textblock
529 #: ../src/guestfs.pod:247
530 msgid ""
531 "Libguestfs provides access to a large part of the LVM2 API, such as "
532 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
533 "unless you familiarize yourself with the concepts of physical volumes, "
534 "volume groups and logical volumes."
535 msgstr ""
536
537 # type: textblock
538 #: ../src/guestfs.pod:252
539 msgid ""
540 "This author strongly recommends reading the LVM HOWTO, online at "
541 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
542 msgstr ""
543
544 # type: =head2
545 #: ../src/guestfs.pod:255
546 msgid "DOWNLOADING"
547 msgstr ""
548
549 # type: textblock
550 #: ../src/guestfs.pod:257
551 msgid ""
552 "Use L</guestfs_cat> to download small, text only files.  This call is "
553 "limited to files which are less than 2 MB and which cannot contain any ASCII "
554 "NUL (C<\\0>) characters.  However it has a very simple to use API."
555 msgstr ""
556
557 # type: textblock
558 #: ../src/guestfs.pod:262
559 msgid ""
560 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
561 "bit data, since it returns a (pointer, size) pair.  However it is still "
562 "limited to \"small\" files, less than 2 MB."
563 msgstr ""
564
565 # type: textblock
566 #: ../src/guestfs.pod:266
567 msgid ""
568 "L</guestfs_download> can be used to download any file, with no limits on "
569 "content or size (even files larger than 4 GB)."
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:269
574 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
575 msgstr ""
576
577 # type: =head2
578 #: ../src/guestfs.pod:272
579 msgid "UPLOADING"
580 msgstr ""
581
582 # type: textblock
583 #: ../src/guestfs.pod:274
584 msgid ""
585 "It's often the case that you want to write a file or files to the disk "
586 "image."
587 msgstr ""
588
589 # type: textblock
590 #: ../src/guestfs.pod:277
591 msgid ""
592 "To write a small file with fixed content, use L</guestfs_write>.  To create "
593 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
594 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
595 "variety of other functions for creating test files, for example "
596 "L</guestfs_fill> and L</guestfs_fill_pattern>."
597 msgstr ""
598
599 # type: textblock
600 #: ../src/guestfs.pod:283
601 msgid ""
602 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
603 "file content or size (even files larger than 4 GB)."
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:286
608 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
609 msgstr ""
610
611 # type: textblock
612 #: ../src/guestfs.pod:288
613 msgid ""
614 "However the fastest way to upload I<large numbers of arbitrary files> is to "
615 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
616 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
617 "the drive in a predictable way (eg. adding it last after all other drives) "
618 "then you can get the device name from L</guestfs_list_devices> and mount it "
619 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
620 "sometimes non-portable between kernel versions, and they don't support "
621 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
622 "using a label or UUID, use an ISO image instead."
623 msgstr ""
624
625 # type: =head2
626 #: ../src/guestfs.pod:299
627 msgid "COPYING"
628 msgstr ""
629
630 # type: textblock
631 #: ../src/guestfs.pod:301
632 msgid ""
633 "There are various different commands for copying between files and devices "
634 "and in and out of the guest filesystem.  These are summarised in the table "
635 "below."
636 msgstr ""
637
638 # type: =item
639 #: ../src/guestfs.pod:307
640 msgid "B<file> to B<file>"
641 msgstr ""
642
643 # type: textblock
644 #: ../src/guestfs.pod:309
645 msgid ""
646 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
647 "directories recursively."
648 msgstr ""
649
650 # type: =item
651 #: ../src/guestfs.pod:312
652 msgid "B<file or device> to B<file or device>"
653 msgstr ""
654
655 # type: textblock
656 #: ../src/guestfs.pod:314
657 msgid ""
658 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
659 "devices in the guest."
660 msgstr ""
661
662 # type: textblock
663 #: ../src/guestfs.pod:317
664 msgid "Example: duplicate the contents of an LV:"
665 msgstr ""
666
667 # type: verbatim
668 #: ../src/guestfs.pod:319
669 #, no-wrap
670 msgid ""
671 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
672 "\n"
673 msgstr ""
674
675 # type: textblock
676 #: ../src/guestfs.pod:321
677 msgid ""
678 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
679 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
680 "L</guestfs_copy_size>."
681 msgstr ""
682
683 # type: =item
684 #: ../src/guestfs.pod:325
685 msgid "B<file on the host> to B<file or device>"
686 msgstr ""
687
688 # type: textblock
689 #: ../src/guestfs.pod:327
690 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
691 msgstr ""
692
693 # type: =item
694 #: ../src/guestfs.pod:329
695 msgid "B<file or device> to B<file on the host>"
696 msgstr ""
697
698 # type: textblock
699 #: ../src/guestfs.pod:331
700 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
701 msgstr ""
702
703 # type: =head2
704 #: ../src/guestfs.pod:335
705 msgid "LISTING FILES"
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:337
710 msgid ""
711 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
712 "L<guestfish(1)>-equivalent command C<ll>)."
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:340
717 msgid ""
718 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
719 "programs, as a flat list of strings."
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:343
724 msgid ""
725 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
726 "directory, plus additional information about each one.  It is more "
727 "equivalent to using the L<readdir(3)> call on a local filesystem."
728 msgstr ""
729
730 # type: textblock
731 #: ../src/guestfs.pod:347
732 msgid ""
733 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
734 "files."
735 msgstr ""
736
737 # type: =head2
738 #: ../src/guestfs.pod:350
739 msgid "RUNNING COMMANDS"
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:352
744 msgid ""
745 "Although libguestfs is primarily an API for manipulating files inside guest "
746 "images, we also provide some limited facilities for running commands inside "
747 "guests."
748 msgstr ""
749
750 # type: textblock
751 #: ../src/guestfs.pod:356
752 msgid "There are many limitations to this:"
753 msgstr ""
754
755 # type: =item
756 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370 ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:1186 ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1411 ../src/guestfs.pod:1416 ../src/guestfs.pod:1420 ../src/guestfs.pod:1522 ../src/guestfs.pod:1526 ../src/guestfs.pod:1530 ../src/guestfs.pod:1535 ../src/guestfs.pod:1543 ../src/guestfs.pod:1562 ../src/guestfs.pod:1570 ../src/guestfs.pod:1800 ../src/guestfs.pod:1806 ../src/guestfs.pod:1811 ../src/guestfs.pod:1817 ../src/guestfs.pod:1924 ../src/guestfs.pod:1928 ../src/guestfs.pod:1932 ../src/guestfs.pod:1936 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:476 ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1426 ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1442 ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1450 ../src/guestfs-actions.pod:1460 ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1468 ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1600 ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:1610 ../src/guestfs-actions.pod:1665 ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1674 ../fish/guestfish.pod:364 ../fish/guestfish.pod:368 ../fish/guestfish.pod:372 ../fish/guestfish.pod:376 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:339 ../fish/guestfish-actions.pod:347 ../fish/guestfish-actions.pod:354 ../fish/guestfish-actions.pod:361 ../fish/guestfish-actions.pod:1056 ../fish/guestfish-actions.pod:1060 ../fish/guestfish-actions.pod:1064 ../fish/guestfish-actions.pod:1068 ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098 ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1196 ../fish/guestfish-actions.pod:1201 ../fish/guestfish-actions.pod:1206 ../fish/guestfish-actions.pod:1248 ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1257 ../inspector/virt-inspector.pl:584 ../inspector/virt-inspector.pl:588 ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348 ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
757 msgid "*"
758 msgstr ""
759
760 # type: textblock
761 #: ../src/guestfs.pod:362
762 msgid ""
763 "The kernel version that the command runs under will be different from what "
764 "it expects."
765 msgstr ""
766
767 # type: textblock
768 #: ../src/guestfs.pod:367
769 msgid ""
770 "If the command needs to communicate with daemons, then most likely they "
771 "won't be running."
772 msgstr ""
773
774 # type: textblock
775 #: ../src/guestfs.pod:372
776 msgid "The command will be running in limited memory."
777 msgstr ""
778
779 # type: textblock
780 #: ../src/guestfs.pod:376
781 msgid ""
782 "The network may not be available unless you enable it (see "
783 "L</guestfs_set_network>)."
784 msgstr ""
785
786 # type: textblock
787 #: ../src/guestfs.pod:381
788 msgid "Only supports Linux guests (not Windows, BSD, etc)."
789 msgstr ""
790
791 # type: textblock
792 #: ../src/guestfs.pod:385
793 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
794 msgstr ""
795
796 # type: textblock
797 #: ../src/guestfs.pod:390
798 msgid ""
799 "For SELinux guests, you may need to enable SELinux and load policy first.  "
800 "See L</SELINUX> in this manpage."
801 msgstr ""
802
803 # type: textblock
804 #: ../src/guestfs.pod:395
805 msgid ""
806 "I<Security:> It is not safe to run commands from untrusted, possibly "
807 "malicious guests.  These commands may attempt to exploit your program by "
808 "sending unexpected output.  They could also try to exploit the Linux kernel "
809 "or qemu provided by the libguestfs appliance.  They could use the network "
810 "provided by the libguestfs appliance to bypass ordinary network partitions "
811 "and firewalls.  They could use the elevated privileges or different SELinux "
812 "context of your program to their advantage."
813 msgstr ""
814
815 # type: textblock
816 #: ../src/guestfs.pod:404
817 msgid ""
818 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
819 "(a script which runs when the guest next boots normally), and to have this "
820 "script run the commands you want in the normal context of the running guest, "
821 "network security and so on."
822 msgstr ""
823
824 # type: textblock
825 #: ../src/guestfs.pod:411
826 msgid ""
827 "The two main API calls to run commands are L</guestfs_command> and "
828 "L</guestfs_sh> (there are also variations)."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:414
833 msgid ""
834 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
835 "shell globs, redirections, etc will work."
836 msgstr ""
837
838 # type: =head2
839 #: ../src/guestfs.pod:417
840 msgid "CONFIGURATION FILES"
841 msgstr ""
842
843 # type: textblock
844 #: ../src/guestfs.pod:419
845 msgid ""
846 "To read and write configuration files in Linux guest filesystems, we "
847 "strongly recommend using Augeas.  For example, Augeas understands how to "
848 "read and write, say, a Linux shadow password file or X.org configuration "
849 "file, and so avoids you having to write that code."
850 msgstr ""
851
852 # type: textblock
853 #: ../src/guestfs.pod:424
854 msgid ""
855 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
856 "document Augeas itself here because there is excellent documentation on the "
857 "L<http://augeas.net/> website."
858 msgstr ""
859
860 # type: textblock
861 #: ../src/guestfs.pod:428
862 msgid ""
863 "If you don't want to use Augeas (you fool!) then try calling "
864 "L</guestfs_read_lines> to get the file as a list of lines which you can "
865 "iterate over."
866 msgstr ""
867
868 # type: =head2
869 #: ../src/guestfs.pod:432
870 msgid "SELINUX"
871 msgstr ""
872
873 # type: textblock
874 #: ../src/guestfs.pod:434
875 msgid ""
876 "We support SELinux guests.  To ensure that labeling happens correctly in "
877 "SELinux guests, you need to enable SELinux and load the guest's policy:"
878 msgstr ""
879
880 # type: =item
881 #: ../src/guestfs.pod:440
882 msgid "1."
883 msgstr ""
884
885 # type: textblock
886 #: ../src/guestfs.pod:442
887 msgid "Before launching, do:"
888 msgstr ""
889
890 # type: verbatim
891 #: ../src/guestfs.pod:444
892 #, no-wrap
893 msgid ""
894 " guestfs_set_selinux (g, 1);\n"
895 "\n"
896 msgstr ""
897
898 # type: =item
899 #: ../src/guestfs.pod:446
900 msgid "2."
901 msgstr ""
902
903 # type: textblock
904 #: ../src/guestfs.pod:448
905 msgid ""
906 "After mounting the guest's filesystem(s), load the policy.  This is best "
907 "done by running the L<load_policy(8)> command in the guest itself:"
908 msgstr ""
909
910 # type: verbatim
911 #: ../src/guestfs.pod:452
912 #, no-wrap
913 msgid ""
914 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
915 "\n"
916 msgstr ""
917
918 # type: textblock
919 #: ../src/guestfs.pod:454
920 msgid ""
921 "(Older versions of C<load_policy> require you to specify the name of the "
922 "policy file)."
923 msgstr ""
924
925 # type: =item
926 #: ../src/guestfs.pod:457
927 msgid "3."
928 msgstr ""
929
930 # type: textblock
931 #: ../src/guestfs.pod:459
932 msgid ""
933 "Optionally, set the security context for the API.  The correct security "
934 "context to use can only be known by inspecting the guest.  As an example:"
935 msgstr ""
936
937 # type: verbatim
938 #: ../src/guestfs.pod:463
939 #, no-wrap
940 msgid ""
941 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
942 "\n"
943 msgstr ""
944
945 # type: textblock
946 #: ../src/guestfs.pod:467
947 msgid "This will work for running commands and editing existing files."
948 msgstr ""
949
950 # type: textblock
951 #: ../src/guestfs.pod:469
952 msgid ""
953 "When new files are created, you may need to label them explicitly, for "
954 "example by running the external command C<restorecon pathname>."
955 msgstr ""
956
957 # type: =head2
958 #: ../src/guestfs.pod:473
959 msgid "UMASK"
960 msgstr ""
961
962 # type: textblock
963 #: ../src/guestfs.pod:475
964 msgid ""
965 "Certain calls are affected by the current file mode creation mask (the "
966 "\"umask\").  In particular ones which create files or directories, such as "
967 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
968 "either the default mode that the file is created with or modifies the mode "
969 "that you supply."
970 msgstr ""
971
972 # type: textblock
973 #: ../src/guestfs.pod:481
974 msgid ""
975 "The default umask is C<022>, so files are created with modes such as C<0644> "
976 "and directories with C<0755>."
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:484
981 msgid ""
982 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
983 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
984 "L</guestfs_chmod> after creating each file or directory."
985 msgstr ""
986
987 # type: textblock
988 #: ../src/guestfs.pod:488
989 msgid "For more information about umask, see L<umask(2)>."
990 msgstr ""
991
992 # type: =head1
993 #: ../src/guestfs.pod:490 ../fish/guestfish.pod:630
994 msgid "ENCRYPTED DISKS"
995 msgstr ""
996
997 # type: textblock
998 #: ../src/guestfs.pod:492
999 msgid ""
1000 "Libguestfs allows you to access Linux guests which have been encrypted using "
1001 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1002 "standard.  This includes nearly all whole disk encryption systems used by "
1003 "modern Linux guests."
1004 msgstr ""
1005
1006 # type: textblock
1007 #: ../src/guestfs.pod:498
1008 msgid ""
1009 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1010 "returns the string C<crypto_LUKS>)."
1011 msgstr ""
1012
1013 # type: textblock
1014 #: ../src/guestfs.pod:501
1015 msgid ""
1016 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1017 "will require the passphrase!"
1018 msgstr ""
1019
1020 # type: textblock
1021 #: ../src/guestfs.pod:504
1022 msgid ""
1023 "Opening a LUKS device creates a new device mapper device called "
1024 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1025 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1026 "decrypted from and encrypted to the underlying block device respectively."
1027 msgstr ""
1028
1029 # type: textblock
1030 #: ../src/guestfs.pod:510
1031 msgid ""
1032 "LVM volume groups on the device can be made visible by calling "
1033 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1034 "volume(s) can now be mounted in the usual way."
1035 msgstr ""
1036
1037 # type: textblock
1038 #: ../src/guestfs.pod:514
1039 msgid ""
1040 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1041 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1042 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1043 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1044 "underlying encrypted block device)."
1045 msgstr ""
1046
1047 # type: =head2
1048 #: ../src/guestfs.pod:521
1049 msgid "INSPECTION"
1050 msgstr ""
1051
1052 # type: textblock
1053 #: ../src/guestfs.pod:523
1054 msgid ""
1055 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1056 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1057 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1058 "frequently used part of this library has been rewritten in C and moved into "
1059 "the core code)."
1060 msgstr ""
1061
1062 # type: textblock
1063 #: ../src/guestfs.pod:529
1064 msgid ""
1065 "Add all disks belonging to the unknown virtual machine and call "
1066 "L</guestfs_launch> in the usual way."
1067 msgstr ""
1068
1069 # type: textblock
1070 #: ../src/guestfs.pod:532
1071 msgid ""
1072 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1073 "and certain heuristics, and returns a list of operating systems that were "
1074 "found.  An empty list means none were found.  A single element is the root "
1075 "filesystem of the operating system.  For dual- or multi-boot guests, "
1076 "multiple roots can be returned, each one corresponding to a separate "
1077 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1078 "world of virtualization, but since this scenario can happen, we have built "
1079 "libguestfs to deal with it.)"
1080 msgstr ""
1081
1082 # type: textblock
1083 #: ../src/guestfs.pod:541
1084 msgid ""
1085 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1086 "to get additional details about that operating system.  For example, call "
1087 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1088 "Windows and Linux-based operating systems respectively."
1089 msgstr ""
1090
1091 # type: textblock
1092 #: ../src/guestfs.pod:547
1093 msgid ""
1094 "Un*x-like and Linux-based operating systems usually consist of several "
1095 "filesystems which are mounted at boot time (for example, a separate boot "
1096 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1097 "filesystems correspond to mount points.  Call "
1098 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1099 "hash table like this example:"
1100 msgstr ""
1101
1102 # type: verbatim
1103 #: ../src/guestfs.pod:554
1104 #, no-wrap
1105 msgid ""
1106 " /boot => /dev/sda1\n"
1107 " /     => /dev/vg_guest/lv_root\n"
1108 " /usr  => /dev/vg_guest/lv_usr\n"
1109 "\n"
1110 msgstr ""
1111
1112 # type: textblock
1113 #: ../src/guestfs.pod:558
1114 msgid ""
1115 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1116 "filesystems as suggested."
1117 msgstr ""
1118
1119 # type: textblock
1120 #: ../src/guestfs.pod:561
1121 msgid ""
1122 "Be careful to mount filesystems in the right order (eg. C</> before "
1123 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1124 "work."
1125 msgstr ""
1126
1127 # type: textblock
1128 #: ../src/guestfs.pod:565
1129 msgid ""
1130 "Inspection currently only works for some common operating systems.  "
1131 "Contributors are welcome to send patches for other operating systems that we "
1132 "currently cannot detect."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:569
1137 msgid ""
1138 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1139 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1140 "encrypted devices."
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:573
1145 msgid ""
1146 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1147 "inspection and caches the results in the guest handle.  Subsequent calls to "
1148 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1149 "re-read the disks.  If you change the content of the guest disks, you can "
1150 "redo inspection by calling L</guestfs_inspect_os> again."
1151 msgstr ""
1152
1153 # type: =head2
1154 #: ../src/guestfs.pod:580
1155 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1156 msgstr ""
1157
1158 # type: textblock
1159 #: ../src/guestfs.pod:582
1160 msgid ""
1161 "Libguestfs can mount NTFS partitions.  It does this using the "
1162 "L<http://www.ntfs-3g.org/> driver."
1163 msgstr ""
1164
1165 # type: textblock
1166 #: ../src/guestfs.pod:585
1167 msgid ""
1168 "DOS and Windows still use drive letters, and the filesystems are always "
1169 "treated as case insensitive by Windows itself, and therefore you might find "
1170 "a Windows configuration file referring to a path like "
1171 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1172 "that directory might be referred to as C</WINDOWS/System32>."
1173 msgstr ""
1174
1175 # type: textblock
1176 #: ../src/guestfs.pod:591
1177 msgid ""
1178 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1179 "libguestfs to read the appropriate Windows Registry and configuration files, "
1180 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1181 "L<virt-inspector(1)>)."
1182 msgstr ""
1183
1184 # type: textblock
1185 #: ../src/guestfs.pod:596
1186 msgid ""
1187 "Replacing backslash characters with forward slash characters is also outside "
1188 "the scope of libguestfs, but something that you can easily do."
1189 msgstr ""
1190
1191 # type: textblock
1192 #: ../src/guestfs.pod:599
1193 msgid ""
1194 "Where we can help is in resolving the case insensitivity of paths.  For "
1195 "this, call L</guestfs_case_sensitive_path>."
1196 msgstr ""
1197
1198 # type: textblock
1199 #: ../src/guestfs.pod:602
1200 msgid ""
1201 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1202 "files, through the library C<hivex> which is part of the libguestfs project "
1203 "although ships as a separate tarball.  You have to locate and download the "
1204 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1205 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1206 "L<virt-win-reg(1)> for more help on this issue."
1207 msgstr ""
1208
1209 # type: =head2
1210 #: ../src/guestfs.pod:610
1211 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1212 msgstr ""
1213
1214 # type: textblock
1215 #: ../src/guestfs.pod:612
1216 msgid ""
1217 "Although we don't want to discourage you from using the C API, we will "
1218 "mention here that the same API is also available in other languages."
1219 msgstr ""
1220
1221 # type: textblock
1222 #: ../src/guestfs.pod:615
1223 msgid ""
1224 "The API is broadly identical in all supported languages.  This means that "
1225 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1226 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1227 "words, a straightforward, predictable isomorphism between each language."
1228 msgstr ""
1229
1230 # type: textblock
1231 #: ../src/guestfs.pod:621
1232 msgid ""
1233 "Error messages are automatically transformed into exceptions if the language "
1234 "supports it."
1235 msgstr ""
1236
1237 # type: textblock
1238 #: ../src/guestfs.pod:624
1239 msgid ""
1240 "We don't try to \"object orientify\" parts of the API in OO languages, "
1241 "although contributors are welcome to write higher level APIs above what we "
1242 "provide in their favourite languages if they wish."
1243 msgstr ""
1244
1245 # type: =item
1246 #: ../src/guestfs.pod:630
1247 msgid "B<C++>"
1248 msgstr ""
1249
1250 # type: textblock
1251 #: ../src/guestfs.pod:632
1252 msgid ""
1253 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1254 "identical to the C API.  C++ classes and exceptions are not used."
1255 msgstr ""
1256
1257 # type: =item
1258 #: ../src/guestfs.pod:636
1259 msgid "B<C#>"
1260 msgstr ""
1261
1262 # type: textblock
1263 #: ../src/guestfs.pod:638
1264 msgid ""
1265 "The C# bindings are highly experimental.  Please read the warnings at the "
1266 "top of C<csharp/Libguestfs.cs>."
1267 msgstr ""
1268
1269 # type: =item
1270 #: ../src/guestfs.pod:641
1271 msgid "B<Haskell>"
1272 msgstr ""
1273
1274 # type: textblock
1275 #: ../src/guestfs.pod:643
1276 msgid ""
1277 "This is the only language binding that is working but incomplete.  Only "
1278 "calls which return simple integers have been bound in Haskell, and we are "
1279 "looking for help to complete this binding."
1280 msgstr ""
1281
1282 # type: =item
1283 #: ../src/guestfs.pod:647
1284 msgid "B<Java>"
1285 msgstr ""
1286
1287 # type: textblock
1288 #: ../src/guestfs.pod:649
1289 msgid ""
1290 "Full documentation is contained in the Javadoc which is distributed with "
1291 "libguestfs."
1292 msgstr ""
1293
1294 # type: =item
1295 #: ../src/guestfs.pod:652
1296 msgid "B<OCaml>"
1297 msgstr ""
1298
1299 # type: textblock
1300 #: ../src/guestfs.pod:654
1301 msgid "For documentation see the file C<guestfs.mli>."
1302 msgstr ""
1303
1304 # type: =item
1305 #: ../src/guestfs.pod:656
1306 msgid "B<Perl>"
1307 msgstr ""
1308
1309 # type: textblock
1310 #: ../src/guestfs.pod:658
1311 msgid "For documentation see L<Sys::Guestfs(3)>."
1312 msgstr ""
1313
1314 # type: =item
1315 #: ../src/guestfs.pod:660
1316 msgid "B<PHP>"
1317 msgstr ""
1318
1319 # type: textblock
1320 #: ../src/guestfs.pod:662
1321 msgid ""
1322 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1323 "the php-libguestfs package for your distribution."
1324 msgstr ""
1325
1326 # type: textblock
1327 #: ../src/guestfs.pod:665
1328 msgid "The PHP binding only works correctly on 64 bit machines."
1329 msgstr ""
1330
1331 # type: =item
1332 #: ../src/guestfs.pod:667
1333 msgid "B<Python>"
1334 msgstr ""
1335
1336 # type: textblock
1337 #: ../src/guestfs.pod:669
1338 msgid "For documentation do:"
1339 msgstr ""
1340
1341 # type: verbatim
1342 #: ../src/guestfs.pod:671
1343 #, no-wrap
1344 msgid ""
1345 " $ python\n"
1346 " >>> import guestfs\n"
1347 " >>> help (guestfs)\n"
1348 "\n"
1349 msgstr ""
1350
1351 # type: =item
1352 #: ../src/guestfs.pod:675
1353 msgid "B<Ruby>"
1354 msgstr ""
1355
1356 # type: textblock
1357 #: ../src/guestfs.pod:677
1358 msgid ""
1359 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1360 "can find examples written in Ruby in the libguestfs source."
1361 msgstr ""
1362
1363 # type: =item
1364 #: ../src/guestfs.pod:680
1365 msgid "B<shell scripts>"
1366 msgstr ""
1367
1368 # type: textblock
1369 #: ../src/guestfs.pod:682
1370 msgid "For documentation see L<guestfish(1)>."
1371 msgstr ""
1372
1373 # type: =head2
1374 #: ../src/guestfs.pod:686
1375 msgid "LIBGUESTFS GOTCHAS"
1376 msgstr ""
1377
1378 # type: textblock
1379 #: ../src/guestfs.pod:688
1380 msgid ""
1381 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1382 "system [...] that works in the way it is documented but is counterintuitive "
1383 "and almost invites mistakes.\""
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:692
1388 msgid ""
1389 "Since we developed libguestfs and the associated tools, there are several "
1390 "things we would have designed differently, but are now stuck with for "
1391 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1392 "release, you can expect these to change.  Beware of them."
1393 msgstr ""
1394
1395 # type: =item
1396 #: ../src/guestfs.pod:700
1397 msgid "Autosync / forgetting to sync."
1398 msgstr ""
1399
1400 # type: textblock
1401 #: ../src/guestfs.pod:702
1402 msgid ""
1403 "When modifying a filesystem from C or another language, you B<must> unmount "
1404 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1405 "libguestfs handle.  You can also call:"
1406 msgstr ""
1407
1408 # type: verbatim
1409 #: ../src/guestfs.pod:706
1410 #, no-wrap
1411 msgid ""
1412 " guestfs_set_autosync (g, 1);\n"
1413 "\n"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:708
1418 msgid ""
1419 "to have the unmount/sync done automatically for you when the handle 'g' is "
1420 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1421 "q.v.)"
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:712
1426 msgid ""
1427 "If you forget to do this, then it is entirely possible that your changes "
1428 "won't be written out, or will be partially written, or (very rarely) that "
1429 "you'll get disk corruption."
1430 msgstr ""
1431
1432 # type: textblock
1433 #: ../src/guestfs.pod:716
1434 msgid ""
1435 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1436 "guestfish scripts that forget to sync will work just fine, which can make "
1437 "this very puzzling if you are trying to debug a problem."
1438 msgstr ""
1439
1440 # type: textblock
1441 #: ../src/guestfs.pod:720
1442 msgid ""
1443 "Update: Autosync is enabled by default for all API users starting from "
1444 "libguestfs 1.5.24."
1445 msgstr ""
1446
1447 # type: =item
1448 #: ../src/guestfs.pod:723
1449 msgid "Mount option C<-o sync> should not be the default."
1450 msgstr ""
1451
1452 # type: textblock
1453 #: ../src/guestfs.pod:725
1454 msgid ""
1455 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1456 "However C<-o sync> does not add any reliability benefit, but does have a "
1457 "very large performance impact."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:729
1462 msgid ""
1463 "The work around is to use L</guestfs_mount_options> and set the mount "
1464 "options that you actually want to use."
1465 msgstr ""
1466
1467 # type: =item
1468 #: ../src/guestfs.pod:732
1469 msgid "Read-only should be the default."
1470 msgstr ""
1471
1472 # type: textblock
1473 #: ../src/guestfs.pod:734
1474 msgid ""
1475 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1476 "specify I<--rw> if you want to make changes to the image."
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:737
1481 msgid "This would reduce the potential to corrupt live VM images."
1482 msgstr ""
1483
1484 # type: textblock
1485 #: ../src/guestfs.pod:739
1486 msgid ""
1487 "Note that many filesystems change the disk when you just mount and unmount, "
1488 "even if you didn't perform any writes.  You need to use "
1489 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1490 msgstr ""
1491
1492 # type: =item
1493 #: ../src/guestfs.pod:743
1494 msgid "guestfish command line is hard to use."
1495 msgstr ""
1496
1497 # type: textblock
1498 #: ../src/guestfs.pod:745
1499 msgid ""
1500 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1501 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1502 "exist, so it fails.  In earlier versions of guestfish the error message was "
1503 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1504 "we should have used C<guestfish -c command> to run commands."
1505 msgstr ""
1506
1507 # type: =item
1508 #: ../src/guestfs.pod:752
1509 msgid "guestfish megabyte modifiers don't work right on all commands"
1510 msgstr ""
1511
1512 # type: textblock
1513 #: ../src/guestfs.pod:754
1514 msgid ""
1515 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1516 "other modifiers).  What guestfish actually does is to multiply the number "
1517 "part by the modifier part and pass the result to the C API.  However this "
1518 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1519 "expecting some other unit (eg. megabytes)."
1520 msgstr ""
1521
1522 # type: textblock
1523 #: ../src/guestfs.pod:761
1524 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1525 msgstr ""
1526
1527 # type: verbatim
1528 #: ../src/guestfs.pod:763
1529 #, no-wrap
1530 msgid ""
1531 " lvcreate LV VG 100M\n"
1532 "\n"
1533 msgstr ""
1534
1535 # type: textblock
1536 #: ../src/guestfs.pod:765
1537 msgid ""
1538 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1539 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1540 "megabytes * megabytes) logical volume.  The error message you get from this "
1541 "is also a little obscure."
1542 msgstr ""
1543
1544 # type: textblock
1545 #: ../src/guestfs.pod:770
1546 msgid ""
1547 "This could be fixed in the generator by specially marking parameters and "
1548 "return values which take bytes or other units."
1549 msgstr ""
1550
1551 # type: =item
1552 #: ../src/guestfs.pod:773
1553 msgid "Library should return errno with error messages."
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:775
1558 msgid ""
1559 "It would be a nice-to-have to be able to get the original value of 'errno' "
1560 "from inside the appliance along error paths (where set).  Currently "
1561 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1562 "string into an errno, see the function error() in fuse/guestmount.c."
1563 msgstr ""
1564
1565 # type: textblock
1566 #: ../src/guestfs.pod:781
1567 msgid ""
1568 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1569 "sent back from the daemon."
1570 msgstr ""
1571
1572 # type: =item
1573 #: ../src/guestfs.pod:784
1574 msgid "Ambiguity between devices and paths"
1575 msgstr ""
1576
1577 # type: textblock
1578 #: ../src/guestfs.pod:786
1579 msgid ""
1580 "There is a subtle ambiguity in the API between a device name "
1581 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1582 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1583 msgstr ""
1584
1585 # type: textblock
1586 #: ../src/guestfs.pod:791
1587 msgid ""
1588 "In the current API we usually resolve this ambiguity by having two separate "
1589 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1590 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1591 "detecting if the path supplied begins with C</dev/>."
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:797
1596 msgid ""
1597 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1598 "make paths/devices into structured names.  One way to do this would be to "
1599 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1600 "aspect of grub.  Another way would be to use a structured type, equivalent "
1601 "to this OCaml type:"
1602 msgstr ""
1603
1604 # type: verbatim
1605 #: ../src/guestfs.pod:803
1606 #, no-wrap
1607 msgid ""
1608 " type path = Path of string | Device of int | Partition of int * int\n"
1609 "\n"
1610 msgstr ""
1611
1612 # type: textblock
1613 #: ../src/guestfs.pod:805
1614 msgid "which would allow you to pass arguments like:"
1615 msgstr ""
1616
1617 # type: verbatim
1618 #: ../src/guestfs.pod:807
1619 #, no-wrap
1620 msgid ""
1621 " Path \"/foo/bar\"\n"
1622 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1623 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1624 " Path \"/dev/sdb2\"    (* not a device *)\n"
1625 "\n"
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:812
1630 msgid ""
1631 "As you can see there are still problems to resolve even with this "
1632 "representation.  Also consider how it might work in guestfish."
1633 msgstr ""
1634
1635 # type: =head2
1636 #: ../src/guestfs.pod:817
1637 msgid "PROTOCOL LIMITS"
1638 msgstr ""
1639
1640 # type: textblock
1641 #: ../src/guestfs.pod:819
1642 msgid ""
1643 "Internally libguestfs uses a message-based protocol to pass API calls and "
1644 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1645 "plenty more detail about this).  The maximum message size used by the "
1646 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1647 "aware of this limit.  The API calls which may be affected are individually "
1648 "documented, with a link back to this section of the documentation."
1649 msgstr ""
1650
1651 # type: textblock
1652 #: ../src/guestfs.pod:827
1653 msgid ""
1654 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1655 "a simple string.  Because this string is at some point internally encoded as "
1656 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1657 "the requested file is larger than this then you will get an error."
1658 msgstr ""
1659
1660 # type: textblock
1661 #: ../src/guestfs.pod:833
1662 msgid ""
1663 "In order to transfer large files into and out of the guest filesystem, you "
1664 "need to use particular calls that support this.  The sections L</UPLOADING> "
1665 "and L</DOWNLOADING> document how to do this."
1666 msgstr ""
1667
1668 # type: textblock
1669 #: ../src/guestfs.pod:837
1670 msgid ""
1671 "You might also consider mounting the disk image using our FUSE filesystem "
1672 "support (L<guestmount(1)>)."
1673 msgstr ""
1674
1675 # type: =head2
1676 #: ../src/guestfs.pod:840
1677 msgid "KEYS AND PASSPHRASES"
1678 msgstr ""
1679
1680 # type: textblock
1681 #: ../src/guestfs.pod:842
1682 msgid ""
1683 "Certain libguestfs calls take a parameter that contains sensitive key "
1684 "material, passed in as a C string."
1685 msgstr ""
1686
1687 # type: textblock
1688 #: ../src/guestfs.pod:845
1689 msgid ""
1690 "In the future we would hope to change the libguestfs implementation so that "
1691 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1692 "swap.  However this is I<not> done at the moment, because of the complexity "
1693 "of such an implementation."
1694 msgstr ""
1695
1696 # type: textblock
1697 #: ../src/guestfs.pod:850
1698 msgid ""
1699 "Therefore you should be aware that any key parameter you pass to libguestfs "
1700 "might end up being written out to the swap partition.  If this is a concern, "
1701 "scrub the swap partition or don't use libguestfs on encrypted devices."
1702 msgstr ""
1703
1704 # type: =head1
1705 #: ../src/guestfs.pod:855
1706 msgid "CONNECTION MANAGEMENT"
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:857
1711 msgid "guestfs_h *"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:859
1716 msgid ""
1717 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1718 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1719 "handle and release all resources used."
1720 msgstr ""
1721
1722 # type: textblock
1723 #: ../src/guestfs.pod:863
1724 msgid ""
1725 "For information on using multiple handles and threads, see the section "
1726 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1727 msgstr ""
1728
1729 # type: =head2
1730 #: ../src/guestfs.pod:866
1731 msgid "guestfs_create"
1732 msgstr ""
1733
1734 # type: verbatim
1735 #: ../src/guestfs.pod:868
1736 #, no-wrap
1737 msgid ""
1738 " guestfs_h *guestfs_create (void);\n"
1739 "\n"
1740 msgstr ""
1741
1742 # type: textblock
1743 #: ../src/guestfs.pod:870
1744 msgid "Create a connection handle."
1745 msgstr ""
1746
1747 # type: textblock
1748 #: ../src/guestfs.pod:872
1749 msgid ""
1750 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1751 "on the handle at least once."
1752 msgstr ""
1753
1754 # type: textblock
1755 #: ../src/guestfs.pod:875
1756 msgid ""
1757 "This function returns a non-NULL pointer to a handle on success or NULL on "
1758 "error."
1759 msgstr ""
1760
1761 # type: textblock
1762 #: ../src/guestfs.pod:878
1763 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1764 msgstr ""
1765
1766 # type: textblock
1767 #: ../src/guestfs.pod:880
1768 msgid ""
1769 "You may also want to configure error handling for the handle.  See L</ERROR "
1770 "HANDLING> section below."
1771 msgstr ""
1772
1773 # type: =head2
1774 #: ../src/guestfs.pod:883
1775 msgid "guestfs_close"
1776 msgstr ""
1777
1778 # type: verbatim
1779 #: ../src/guestfs.pod:885
1780 #, no-wrap
1781 msgid ""
1782 " void guestfs_close (guestfs_h *g);\n"
1783 "\n"
1784 msgstr ""
1785
1786 # type: textblock
1787 #: ../src/guestfs.pod:887
1788 msgid "This closes the connection handle and frees up all resources used."
1789 msgstr ""
1790
1791 # type: =head1
1792 #: ../src/guestfs.pod:889
1793 msgid "ERROR HANDLING"
1794 msgstr ""
1795
1796 # type: textblock
1797 #: ../src/guestfs.pod:891
1798 msgid ""
1799 "API functions can return errors.  For example, almost all functions that "
1800 "return C<int> will return C<-1> to indicate an error.  You can get "
1801 "additional information on errors by calling L</guestfs_last_error> and/or by "
1802 "setting up an error handler with L</guestfs_set_error_handler>."
1803 msgstr ""
1804
1805 # type: textblock
1806 #: ../src/guestfs.pod:897
1807 msgid ""
1808 "When the handle is created, a default error handler is installed which "
1809 "prints the error message string to C<stderr>.  For small short-running "
1810 "command line programs it is sufficient to do:"
1811 msgstr ""
1812
1813 # type: verbatim
1814 #: ../src/guestfs.pod:901
1815 #, no-wrap
1816 msgid ""
1817 " if (guestfs_launch (g) == -1)\n"
1818 "   exit (EXIT_FAILURE);\n"
1819 "\n"
1820 msgstr ""
1821
1822 # type: textblock
1823 #: ../src/guestfs.pod:904
1824 msgid ""
1825 "since the default error handler will ensure that an error message has been "
1826 "printed to C<stderr> before the program exits."
1827 msgstr ""
1828
1829 # type: textblock
1830 #: ../src/guestfs.pod:907
1831 msgid ""
1832 "For other programs the caller will almost certainly want to install an "
1833 "alternate error handler or do error handling in-line like this:"
1834 msgstr ""
1835
1836 # type: verbatim
1837 #: ../src/guestfs.pod:910
1838 #, no-wrap
1839 msgid ""
1840 " g = guestfs_create ();\n"
1841 " \n"
1842 msgstr ""
1843
1844 # type: verbatim
1845 #: ../src/guestfs.pod:912
1846 #, no-wrap
1847 msgid ""
1848 " /* This disables the default behaviour of printing errors\n"
1849 "    on stderr. */\n"
1850 " guestfs_set_error_handler (g, NULL, NULL);\n"
1851 " \n"
1852 msgstr ""
1853
1854 # type: verbatim
1855 #: ../src/guestfs.pod:916
1856 #, no-wrap
1857 msgid ""
1858 " if (guestfs_launch (g) == -1) {\n"
1859 "   /* Examine the error message and print it etc. */\n"
1860 "   char *msg = guestfs_last_error (g);\n"
1861 "   fprintf (stderr, \"%s\\n\", msg);\n"
1862 "   /* ... */\n"
1863 "  }\n"
1864 "\n"
1865 msgstr ""
1866
1867 # type: textblock
1868 #: ../src/guestfs.pod:923
1869 msgid ""
1870 "Out of memory errors are handled differently.  The default action is to call "
1871 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
1872 "L</guestfs_set_out_of_memory_handler>."
1873 msgstr ""
1874
1875 # type: textblock
1876 #: ../src/guestfs.pod:927
1877 msgid ""
1878 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
1879 "because there is no handle if this happens there is no way to get additional "
1880 "error information.  However L</guestfs_create> is supposed to be a "
1881 "lightweight operation which can only fail because of insufficient memory (it "
1882 "returns NULL in this case)."
1883 msgstr ""
1884
1885 # type: =head2
1886 #: ../src/guestfs.pod:933
1887 msgid "guestfs_last_error"
1888 msgstr ""
1889
1890 # type: verbatim
1891 #: ../src/guestfs.pod:935
1892 #, no-wrap
1893 msgid ""
1894 " const char *guestfs_last_error (guestfs_h *g);\n"
1895 "\n"
1896 msgstr ""
1897
1898 # type: textblock
1899 #: ../src/guestfs.pod:937
1900 msgid ""
1901 "This returns the last error message that happened on C<g>.  If there has not "
1902 "been an error since the handle was created, then this returns C<NULL>."
1903 msgstr ""
1904
1905 # type: textblock
1906 #: ../src/guestfs.pod:941
1907 msgid ""
1908 "The lifetime of the returned string is until the next error occurs, or "
1909 "L</guestfs_close> is called."
1910 msgstr ""
1911
1912 # type: =head2
1913 #: ../src/guestfs.pod:944
1914 msgid "guestfs_set_error_handler"
1915 msgstr ""
1916
1917 # type: verbatim
1918 #: ../src/guestfs.pod:946
1919 #, no-wrap
1920 msgid ""
1921 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1922 "                                           void *opaque,\n"
1923 "                                           const char *msg);\n"
1924 " void guestfs_set_error_handler (guestfs_h *g,\n"
1925 "                                 guestfs_error_handler_cb cb,\n"
1926 "                                 void *opaque);\n"
1927 "\n"
1928 msgstr ""
1929
1930 # type: textblock
1931 #: ../src/guestfs.pod:953
1932 msgid ""
1933 "The callback C<cb> will be called if there is an error.  The parameters "
1934 "passed to the callback are an opaque data pointer and the error message "
1935 "string."
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:957
1940 msgid ""
1941 "Note that the message string C<msg> is freed as soon as the callback "
1942 "function returns, so if you want to stash it somewhere you must make your "
1943 "own copy."
1944 msgstr ""
1945
1946 # type: textblock
1947 #: ../src/guestfs.pod:961
1948 msgid "The default handler prints messages on C<stderr>."
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:963
1953 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1954 msgstr ""
1955
1956 # type: =head2
1957 #: ../src/guestfs.pod:965
1958 msgid "guestfs_get_error_handler"
1959 msgstr ""
1960
1961 # type: verbatim
1962 #: ../src/guestfs.pod:967
1963 #, no-wrap
1964 msgid ""
1965 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1966 "                                                     void **opaque_rtn);\n"
1967 "\n"
1968 msgstr ""
1969
1970 # type: textblock
1971 #: ../src/guestfs.pod:970
1972 msgid "Returns the current error handler callback."
1973 msgstr ""
1974
1975 # type: =head2
1976 #: ../src/guestfs.pod:972
1977 msgid "guestfs_set_out_of_memory_handler"
1978 msgstr ""
1979
1980 # type: verbatim
1981 #: ../src/guestfs.pod:974
1982 #, no-wrap
1983 msgid ""
1984 " typedef void (*guestfs_abort_cb) (void);\n"
1985 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1986 "                                        guestfs_abort_cb);\n"
1987 "\n"
1988 msgstr ""
1989
1990 # type: textblock
1991 #: ../src/guestfs.pod:978
1992 msgid ""
1993 "The callback C<cb> will be called if there is an out of memory situation.  "
1994 "I<Note this callback must not return>."
1995 msgstr ""
1996
1997 # type: textblock
1998 #: ../src/guestfs.pod:981
1999 msgid "The default is to call L<abort(3)>."
2000 msgstr ""
2001
2002 # type: textblock
2003 #: ../src/guestfs.pod:983
2004 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2005 msgstr ""
2006
2007 # type: =head2
2008 #: ../src/guestfs.pod:986
2009 msgid "guestfs_get_out_of_memory_handler"
2010 msgstr ""
2011
2012 # type: verbatim
2013 #: ../src/guestfs.pod:988
2014 #, no-wrap
2015 msgid ""
2016 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2017 "\n"
2018 msgstr ""
2019
2020 # type: textblock
2021 #: ../src/guestfs.pod:990
2022 msgid "This returns the current out of memory handler."
2023 msgstr ""
2024
2025 # type: =head1
2026 #: ../src/guestfs.pod:992
2027 msgid "PATH"
2028 msgstr ""
2029
2030 # type: textblock
2031 #: ../src/guestfs.pod:994
2032 msgid ""
2033 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2034 "internal path."
2035 msgstr ""
2036
2037 # type: textblock
2038 #: ../src/guestfs.pod:997
2039 msgid ""
2040 "By default it looks for these in the directory C<$libdir/guestfs> "
2041 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2042 msgstr ""
2043
2044 # type: textblock
2045 #: ../src/guestfs.pod:1000
2046 msgid ""
2047 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2048 "to change the directories that libguestfs will search in.  The value is a "
2049 "colon-separated list of paths.  The current directory is I<not> searched "
2050 "unless the path contains an empty element or C<.>.  For example "
2051 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2052 "then C</usr/lib/guestfs>."
2053 msgstr ""
2054
2055 # type: =head1
2056 #: ../src/guestfs.pod:1007
2057 msgid "HIGH-LEVEL API ACTIONS"
2058 msgstr ""
2059
2060 # type: =head2
2061 #: ../src/guestfs.pod:1009
2062 msgid "ABI GUARANTEE"
2063 msgstr ""
2064
2065 # type: textblock
2066 #: ../src/guestfs.pod:1011
2067 msgid ""
2068 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2069 "actions as outlined in this section.  Although we will deprecate some "
2070 "actions, for example if they get replaced by newer calls, we will keep the "
2071 "old actions forever.  This allows you the developer to program in confidence "
2072 "against the libguestfs API."
2073 msgstr ""
2074
2075 # type: textblock
2076 #: ../src/guestfs.pod:1017 ../fish/guestfish.pod:860
2077 msgid "@ACTIONS@"
2078 msgstr ""
2079
2080 # type: =head1
2081 #: ../src/guestfs.pod:1019
2082 msgid "STRUCTURES"
2083 msgstr ""
2084
2085 # type: textblock
2086 #: ../src/guestfs.pod:1021
2087 msgid "@STRUCTS@"
2088 msgstr ""
2089
2090 # type: =head1
2091 #: ../src/guestfs.pod:1023
2092 msgid "AVAILABILITY"
2093 msgstr ""
2094
2095 # type: =head2
2096 #: ../src/guestfs.pod:1025
2097 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2098 msgstr ""
2099
2100 # type: textblock
2101 #: ../src/guestfs.pod:1027
2102 msgid ""
2103 "Using L</guestfs_available> you can test availability of the following "
2104 "groups of functions.  This test queries the appliance to see if the "
2105 "appliance you are currently using supports the functionality."
2106 msgstr ""
2107
2108 # type: textblock
2109 #: ../src/guestfs.pod:1032
2110 msgid "@AVAILABILITY@"
2111 msgstr ""
2112
2113 # type: =head2
2114 #: ../src/guestfs.pod:1034
2115 msgid "GUESTFISH supported COMMAND"
2116 msgstr ""
2117
2118 # type: textblock
2119 #: ../src/guestfs.pod:1036
2120 msgid ""
2121 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2122 "prints out the available groups and whether they are supported by this build "
2123 "of libguestfs.  Note however that you have to do C<run> first."
2124 msgstr ""
2125
2126 # type: =head2
2127 #: ../src/guestfs.pod:1041
2128 msgid "SINGLE CALLS AT COMPILE TIME"
2129 msgstr ""
2130
2131 # type: textblock
2132 #: ../src/guestfs.pod:1043
2133 msgid ""
2134 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2135 "function, such as:"
2136 msgstr ""
2137
2138 # type: verbatim
2139 #: ../src/guestfs.pod:1046
2140 #, no-wrap
2141 msgid ""
2142 " #define LIBGUESTFS_HAVE_DD 1\n"
2143 "\n"
2144 msgstr ""
2145
2146 # type: textblock
2147 #: ../src/guestfs.pod:1048
2148 msgid "if L</guestfs_dd> is available."
2149 msgstr ""
2150
2151 # type: textblock
2152 #: ../src/guestfs.pod:1050
2153 msgid ""
2154 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2155 "function is available at compile time, we recommended using build tools such "
2156 "as autoconf or cmake.  For example in autotools you could use:"
2157 msgstr ""
2158
2159 # type: verbatim
2160 #: ../src/guestfs.pod:1055
2161 #, no-wrap
2162 msgid ""
2163 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2164 " AC_CHECK_FUNCS([guestfs_dd])\n"
2165 "\n"
2166 msgstr ""
2167
2168 # type: textblock
2169 #: ../src/guestfs.pod:1058
2170 msgid ""
2171 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2172 "in your program."
2173 msgstr ""
2174
2175 # type: =head2
2176 #: ../src/guestfs.pod:1061
2177 msgid "SINGLE CALLS AT RUN TIME"
2178 msgstr ""
2179
2180 # type: textblock
2181 #: ../src/guestfs.pod:1063
2182 msgid ""
2183 "Testing at compile time doesn't guarantee that a function really exists in "
2184 "the library.  The reason is that you might be dynamically linked against a "
2185 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2186 "This situation unfortunately results in a segmentation fault, which is a "
2187 "shortcoming of the C dynamic linking system itself."
2188 msgstr ""
2189
2190 # type: textblock
2191 #: ../src/guestfs.pod:1070
2192 msgid ""
2193 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2194 "in this example program (note that you still need the compile time check as "
2195 "well):"
2196 msgstr ""
2197
2198 # type: verbatim
2199 #: ../src/guestfs.pod:1074
2200 #, no-wrap
2201 msgid ""
2202 " #include <stdio.h>\n"
2203 " #include <stdlib.h>\n"
2204 " #include <unistd.h>\n"
2205 " #include <dlfcn.h>\n"
2206 " #include <guestfs.h>\n"
2207 " \n"
2208 msgstr ""
2209
2210 # type: verbatim
2211 #: ../src/guestfs.pod:1080
2212 #, no-wrap
2213 msgid ""
2214 " main ()\n"
2215 " {\n"
2216 " #ifdef LIBGUESTFS_HAVE_DD\n"
2217 "   void *dl;\n"
2218 "   int has_function;\n"
2219 " \n"
2220 msgstr ""
2221
2222 # type: verbatim
2223 #: ../src/guestfs.pod:1086
2224 #, no-wrap
2225 msgid ""
2226 "   /* Test if the function guestfs_dd is really available. */\n"
2227 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2228 "   if (!dl) {\n"
2229 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2230 "     exit (EXIT_FAILURE);\n"
2231 "   }\n"
2232 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2233 "   dlclose (dl);\n"
2234 " \n"
2235 msgstr ""
2236
2237 # type: verbatim
2238 #: ../src/guestfs.pod:1095
2239 #, no-wrap
2240 msgid ""
2241 "   if (!has_function)\n"
2242 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2243 "   else {\n"
2244 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2245 "     /* Now it's safe to call\n"
2246 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2247 "     */\n"
2248 "   }\n"
2249 " #else\n"
2250 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2251 " #endif\n"
2252 "  }\n"
2253 "\n"
2254 msgstr ""
2255
2256 # type: textblock
2257 #: ../src/guestfs.pod:1108
2258 msgid ""
2259 "You may think the above is an awful lot of hassle, and it is.  There are "
2260 "other ways outside of the C linking system to ensure that this kind of "
2261 "incompatibility never arises, such as using package versioning:"
2262 msgstr ""
2263
2264 # type: verbatim
2265 #: ../src/guestfs.pod:1113
2266 #, no-wrap
2267 msgid ""
2268 " Requires: libguestfs >= 1.0.80\n"
2269 "\n"
2270 msgstr ""
2271
2272 # type: =head1
2273 #: ../src/guestfs.pod:1115
2274 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2275 msgstr ""
2276
2277 # type: textblock
2278 #: ../src/guestfs.pod:1117
2279 msgid ""
2280 "A recent feature of the API is the introduction of calls which take optional "
2281 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2282 "takes variable arguments (ie. C<...>), as in this example:"
2283 msgstr ""
2284
2285 # type: verbatim
2286 #: ../src/guestfs.pod:1122
2287 #, no-wrap
2288 msgid ""
2289 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2290 "\n"
2291 msgstr ""
2292
2293 # type: textblock
2294 #: ../src/guestfs.pod:1124
2295 msgid ""
2296 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2297 "call with no optional arguments specified:"
2298 msgstr ""
2299
2300 # type: verbatim
2301 #: ../src/guestfs.pod:1127
2302 #, no-wrap
2303 msgid ""
2304 " guestfs_add_drive_opts (g, filename, -1);\n"
2305 "\n"
2306 msgstr ""
2307
2308 # type: textblock
2309 #: ../src/guestfs.pod:1129
2310 msgid "With a single optional argument:"
2311 msgstr ""
2312
2313 # type: verbatim
2314 #: ../src/guestfs.pod:1131
2315 #, no-wrap
2316 msgid ""
2317 " guestfs_add_drive_opts (g, filename,\n"
2318 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2319 "                         -1);\n"
2320 "\n"
2321 msgstr ""
2322
2323 # type: textblock
2324 #: ../src/guestfs.pod:1135
2325 msgid "With two:"
2326 msgstr ""
2327
2328 # type: verbatim
2329 #: ../src/guestfs.pod:1137
2330 #, no-wrap
2331 msgid ""
2332 " guestfs_add_drive_opts (g, filename,\n"
2333 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2334 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2335 "                         -1);\n"
2336 "\n"
2337 msgstr ""
2338
2339 # type: textblock
2340 #: ../src/guestfs.pod:1142
2341 msgid ""
2342 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2343 "happen!"
2344 msgstr ""
2345
2346 # type: =head2
2347 #: ../src/guestfs.pod:1145
2348 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2349 msgstr ""
2350
2351 # type: textblock
2352 #: ../src/guestfs.pod:1147
2353 msgid ""
2354 "The second variant has the same name with the suffix C<_va>, which works the "
2355 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2356 "example function, this is declared:"
2357 msgstr ""
2358
2359 # type: verbatim
2360 #: ../src/guestfs.pod:1151
2361 #, no-wrap
2362 msgid ""
2363 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2364 "                                va_list args);\n"
2365 "\n"
2366 msgstr ""
2367
2368 # type: =head2
2369 #: ../src/guestfs.pod:1154
2370 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2371 msgstr ""
2372
2373 # type: textblock
2374 #: ../src/guestfs.pod:1156
2375 msgid ""
2376 "The third variant is useful where you need to construct these calls.  You "
2377 "pass in a structure where you fill in the optional fields.  The structure "
2378 "has a bitmask as the first element which you must set to indicate which "
2379 "fields you have filled in.  For our example function the structure and call "
2380 "are declared:"
2381 msgstr ""
2382
2383 # type: verbatim
2384 #: ../src/guestfs.pod:1162
2385 #, no-wrap
2386 msgid ""
2387 " struct guestfs_add_drive_opts_argv {\n"
2388 "   uint64_t bitmask;\n"
2389 "   int readonly;\n"
2390 "   const char *format;\n"
2391 "   /* ... */\n"
2392 " };\n"
2393 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2394 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2395 "\n"
2396 msgstr ""
2397
2398 # type: textblock
2399 #: ../src/guestfs.pod:1171
2400 msgid "You could call it like this:"
2401 msgstr ""
2402
2403 # type: verbatim
2404 #: ../src/guestfs.pod:1173
2405 #, no-wrap
2406 msgid ""
2407 " struct guestfs_add_drive_opts_argv optargs = {\n"
2408 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2409 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2410 "   .readonly = 1,\n"
2411 "   .format = \"qcow2\"\n"
2412 " };\n"
2413 " \n"
2414 msgstr ""
2415
2416 # type: verbatim
2417 #: ../src/guestfs.pod:1180
2418 #, no-wrap
2419 msgid ""
2420 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2421 "\n"
2422 msgstr ""
2423
2424 # type: textblock
2425 #: ../src/guestfs.pod:1182 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1661 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1244
2426 msgid "Notes:"
2427 msgstr ""
2428
2429 # type: textblock
2430 #: ../src/guestfs.pod:1188
2431 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2432 msgstr ""
2433
2434 # type: textblock
2435 #: ../src/guestfs.pod:1193
2436 msgid "You do not need to fill in all fields of the structure."
2437 msgstr ""
2438
2439 # type: textblock
2440 #: ../src/guestfs.pod:1197
2441 msgid ""
2442 "There must be a one-to-one correspondence between fields of the structure "
2443 "that are filled in, and bits set in the bitmask."
2444 msgstr ""
2445
2446 # type: =head2
2447 #: ../src/guestfs.pod:1202
2448 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2449 msgstr ""
2450
2451 # type: textblock
2452 #: ../src/guestfs.pod:1204
2453 msgid ""
2454 "In other languages, optional arguments are expressed in the way that is "
2455 "natural for that language.  We refer you to the language-specific "
2456 "documentation for more details on that."
2457 msgstr ""
2458
2459 # type: textblock
2460 #: ../src/guestfs.pod:1208
2461 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2462 msgstr ""
2463
2464 # type: =end
2465 #: ../src/guestfs.pod:1210 ../src/guestfs.pod:1215
2466 msgid "html"
2467 msgstr ""
2468
2469 # type: textblock
2470 #: ../src/guestfs.pod:1212
2471 msgid ""
2472 "<!-- old anchor for the next section --> <a "
2473 "name=\"state_machine_and_low_level_event_api\"/>"
2474 msgstr ""
2475
2476 # type: =head1
2477 #: ../src/guestfs.pod:1217
2478 msgid "ARCHITECTURE"
2479 msgstr ""
2480
2481 # type: textblock
2482 #: ../src/guestfs.pod:1219
2483 msgid ""
2484 "Internally, libguestfs is implemented by running an appliance (a special "
2485 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2486 "process of the main program."
2487 msgstr ""
2488
2489 # type: verbatim
2490 #: ../src/guestfs.pod:1223
2491 #, no-wrap
2492 msgid ""
2493 "  ___________________\n"
2494 " /                   \\\n"
2495 " | main program      |\n"
2496 " |                   |\n"
2497 " |                   |           child process / appliance\n"
2498 " |                   |           __________________________\n"
2499 " |                   |          / qemu                     \\\n"
2500 " +-------------------+   RPC    |      +-----------------+ |\n"
2501 " | libguestfs     <--------------------> guestfsd        | |\n"
2502 " |                   |          |      +-----------------+ |\n"
2503 " \\___________________/          |      | Linux kernel    | |\n"
2504 "                                |      +--^--------------+ |\n"
2505 "                                \\_________|________________/\n"
2506 "                                          |\n"
2507 "                                   _______v______\n"
2508 "                                  /              \\\n"
2509 "                                  | Device or    |\n"
2510 "                                  | disk image   |\n"
2511 "                                  \\______________/\n"
2512 "\n"
2513 msgstr ""
2514
2515 # type: textblock
2516 #: ../src/guestfs.pod:1243
2517 msgid ""
2518 "The library, linked to the main program, creates the child process and hence "
2519 "the appliance in the L</guestfs_launch> function."
2520 msgstr ""
2521
2522 # type: textblock
2523 #: ../src/guestfs.pod:1246
2524 msgid ""
2525 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2526 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2527 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2528 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2529 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2530 "attached to the qemu process which translates device access by the "
2531 "appliance's Linux kernel into accesses to the image."
2532 msgstr ""
2533
2534 # type: textblock
2535 #: ../src/guestfs.pod:1255
2536 msgid ""
2537 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2538 "Although the disk image you are attached to might also be used by some "
2539 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2540 "care if both libguestfs's qemu process and your virtual machine are trying "
2541 "to update the disk image at the same time, since these usually results in "
2542 "massive disk corruption)."
2543 msgstr ""
2544
2545 # type: =head1
2546 #: ../src/guestfs.pod:1262
2547 msgid "STATE MACHINE"
2548 msgstr ""
2549
2550 # type: textblock
2551 #: ../src/guestfs.pod:1264
2552 msgid "libguestfs uses a state machine to model the child process:"
2553 msgstr ""
2554
2555 # type: verbatim
2556 #: ../src/guestfs.pod:1266
2557 #, no-wrap
2558 msgid ""
2559 "                         |\n"
2560 "                    guestfs_create\n"
2561 "                         |\n"
2562 "                         |\n"
2563 "                     ____V_____\n"
2564 "                    /          \\\n"
2565 "                    |  CONFIG  |\n"
2566 "                    \\__________/\n"
2567 "                     ^ ^   ^  \\\n"
2568 "                    /  |    \\  \\ guestfs_launch\n"
2569 "                   /   |    _\\__V______\n"
2570 "                  /    |   /           \\\n"
2571 "                 /     |   | LAUNCHING |\n"
2572 "                /      |   \\___________/\n"
2573 "               /       |       /\n"
2574 "              /        |  guestfs_launch\n"
2575 "             /         |     /\n"
2576 "    ______  /        __|____V\n"
2577 "   /      \\ ------> /        \\\n"
2578 "   | BUSY |         | READY  |\n"
2579 "   \\______/ <------ \\________/\n"
2580 "\n"
2581 msgstr ""
2582
2583 # type: textblock
2584 #: ../src/guestfs.pod:1288
2585 msgid ""
2586 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2587 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2588 "(3) alternating between READY and BUSY as commands are issued to, and "
2589 "carried out by, the child process."
2590 msgstr ""
2591
2592 # type: textblock
2593 #: ../src/guestfs.pod:1293
2594 msgid ""
2595 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2596 "asynchronously at any time (eg. due to some internal error), and that causes "
2597 "the state to transition back to CONFIG."
2598 msgstr ""
2599
2600 # type: textblock
2601 #: ../src/guestfs.pod:1297
2602 msgid ""
2603 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2604 "issued when in the CONFIG state."
2605 msgstr ""
2606
2607 # type: textblock
2608 #: ../src/guestfs.pod:1300
2609 msgid ""
2610 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2611 "L</guestfs_launch> blocks until the child process is READY to accept "
2612 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2613 "moves the state from CONFIG to LAUNCHING while it is running."
2614 msgstr ""
2615
2616 # type: textblock
2617 #: ../src/guestfs.pod:1306
2618 msgid ""
2619 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2620 "state.  These API calls block waiting for the command to be carried out "
2621 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2622 "non-blocking versions, and no way to issue more than one command per handle "
2623 "at the same time."
2624 msgstr ""
2625
2626 # type: textblock
2627 #: ../src/guestfs.pod:1312
2628 msgid ""
2629 "Finally, the child process sends asynchronous messages back to the main "
2630 "program, such as kernel log messages.  You can register a callback to "
2631 "receive these messages."
2632 msgstr ""
2633
2634 # type: =head2
2635 #: ../src/guestfs.pod:1316
2636 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2637 msgstr ""
2638
2639 # type: textblock
2640 #: ../src/guestfs.pod:1318
2641 msgid ""
2642 "The child process generates events in some situations.  Current events "
2643 "include: receiving a log message, the child process exits."
2644 msgstr ""
2645
2646 # type: textblock
2647 #: ../src/guestfs.pod:1321
2648 msgid ""
2649 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2650 "types of events."
2651 msgstr ""
2652
2653 # type: textblock
2654 #: ../src/guestfs.pod:1324
2655 msgid ""
2656 "Only I<one callback of each type> can be registered for each handle.  "
2657 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2658 "that type.  Cancel all callbacks of this type by calling this function with "
2659 "C<cb> set to C<NULL>."
2660 msgstr ""
2661
2662 # type: =head2
2663 #: ../src/guestfs.pod:1329
2664 msgid "guestfs_set_log_message_callback"
2665 msgstr ""
2666
2667 # type: verbatim
2668 #: ../src/guestfs.pod:1331
2669 #, no-wrap
2670 msgid ""
2671 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2672 "                                         char *buf, int len);\n"
2673 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2674 "                                        guestfs_log_message_cb cb,\n"
2675 "                                        void *opaque);\n"
2676 "\n"
2677 msgstr ""
2678
2679 # type: textblock
2680 #: ../src/guestfs.pod:1337
2681 msgid ""
2682 "The callback function C<cb> will be called whenever qemu or the guest writes "
2683 "anything to the console."
2684 msgstr ""
2685
2686 # type: textblock
2687 #: ../src/guestfs.pod:1340
2688 msgid "Use this function to capture kernel messages and similar."
2689 msgstr ""
2690
2691 # type: textblock
2692 #: ../src/guestfs.pod:1342
2693 msgid ""
2694 "Normally there is no log message handler, and log messages are just "
2695 "discarded."
2696 msgstr ""
2697
2698 # type: =head2
2699 #: ../src/guestfs.pod:1345
2700 msgid "guestfs_set_subprocess_quit_callback"
2701 msgstr ""
2702
2703 # type: verbatim
2704 #: ../src/guestfs.pod:1347
2705 #, no-wrap
2706 msgid ""
2707 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2708 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2709 "                                            guestfs_subprocess_quit_cb cb,\n"
2710 "                                            void *opaque);\n"
2711 "\n"
2712 msgstr ""
2713
2714 # type: textblock
2715 #: ../src/guestfs.pod:1352
2716 msgid ""
2717 "The callback function C<cb> will be called when the child process quits, "
2718 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2719 "corresponds to a transition from any state to the CONFIG state)."
2720 msgstr ""
2721
2722 # type: =head2
2723 #: ../src/guestfs.pod:1357
2724 msgid "guestfs_set_launch_done_callback"
2725 msgstr ""
2726
2727 # type: verbatim
2728 #: ../src/guestfs.pod:1359
2729 #, no-wrap
2730 msgid ""
2731 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2732 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2733 "                                        guestfs_launch_done_cb cb,\n"
2734 "                                        void *opaque);\n"
2735 "\n"
2736 msgstr ""
2737
2738 # type: textblock
2739 #: ../src/guestfs.pod:1364
2740 msgid ""
2741 "The callback function C<cb> will be called when the child process becomes "
2742 "ready first time after it has been launched.  (This corresponds to a "
2743 "transition from LAUNCHING to the READY state)."
2744 msgstr ""
2745
2746 # type: =head2
2747 #: ../src/guestfs.pod:1368
2748 msgid "guestfs_set_close_callback"
2749 msgstr ""
2750
2751 # type: verbatim
2752 #: ../src/guestfs.pod:1370
2753 #, no-wrap
2754 msgid ""
2755 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2756 " void guestfs_set_close_callback (guestfs_h *g,\n"
2757 "                                  guestfs_close_cb cb,\n"
2758 "                                  void *opaque);\n"
2759 "\n"
2760 msgstr ""
2761
2762 # type: textblock
2763 #: ../src/guestfs.pod:1375
2764 msgid ""
2765 "The callback function C<cb> will be called while the handle is being closed "
2766 "(synchronously from L</guestfs_close>)."
2767 msgstr ""
2768
2769 # type: textblock
2770 #: ../src/guestfs.pod:1378
2771 msgid ""
2772 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2773 "handles that are open when the program exits.  This means that this callback "
2774 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2775 "problems in higher-level languages (eg. if your HLL interpreter has already "
2776 "been cleaned up by the time this is called, and if your callback then jumps "
2777 "into some HLL function)."
2778 msgstr ""
2779
2780 # type: =head2
2781 #: ../src/guestfs.pod:1386
2782 msgid "guestfs_set_progress_callback"
2783 msgstr ""
2784
2785 # type: verbatim
2786 #: ../src/guestfs.pod:1388
2787 #, no-wrap
2788 msgid ""
2789 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2790 "                                      int proc_nr, int serial,\n"
2791 "                                      uint64_t position, uint64_t total);\n"
2792 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2793 "                                     guestfs_progress_cb cb,\n"
2794 "                                     void *opaque);\n"
2795 "\n"
2796 msgstr ""
2797
2798 # type: textblock
2799 #: ../src/guestfs.pod:1395
2800 msgid ""
2801 "Some long-running operations can generate progress messages.  If this "
2802 "callback is registered, then it will be called each time a progress message "
2803 "is generated (usually two seconds after the operation started, and three "
2804 "times per second thereafter until it completes, although the frequency may "
2805 "change in future versions)."
2806 msgstr ""
2807
2808 # type: textblock
2809 #: ../src/guestfs.pod:1401
2810 msgid ""
2811 "The callback receives two numbers: C<position> and C<total>.  The units of "
2812 "C<total> are not defined, although for some operations C<total> may relate "
2813 "in some way to the amount of data to be transferred (eg. in bytes or "
2814 "megabytes), and C<position> may be the portion which has been transferred."
2815 msgstr ""
2816
2817 # type: textblock
2818 #: ../src/guestfs.pod:1407
2819 msgid "The only defined and stable parts of the API are:"
2820 msgstr ""
2821
2822 # type: textblock
2823 #: ../src/guestfs.pod:1413
2824 msgid ""
2825 "The callback can display to the user some type of progress bar or indicator "
2826 "which shows the ratio of C<position>:C<total>."
2827 msgstr ""
2828
2829 # type: textblock
2830 #: ../src/guestfs.pod:1418
2831 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2832 msgstr ""
2833
2834 # type: textblock
2835 #: ../src/guestfs.pod:1422
2836 msgid ""
2837 "If any progress notification is sent during a call, then a final progress "
2838 "notification is always sent when C<position> = C<total>."
2839 msgstr ""
2840
2841 # type: textblock
2842 #: ../src/guestfs.pod:1425
2843 msgid ""
2844 "This is to simplify caller code, so callers can easily set the progress "
2845 "indicator to \"100%\" at the end of the operation, without requiring special "
2846 "code to detect this case."
2847 msgstr ""
2848
2849 # type: textblock
2850 #: ../src/guestfs.pod:1431
2851 msgid ""
2852 "The callback also receives the procedure number and serial number of the "
2853 "call.  These are only useful for debugging protocol issues, and the callback "
2854 "can normally ignore them.  The callback may want to print these numbers in "
2855 "error messages or debugging messages."
2856 msgstr ""
2857
2858 # type: =head1
2859 #: ../src/guestfs.pod:1436
2860 msgid "PRIVATE DATA AREA"
2861 msgstr ""
2862
2863 # type: textblock
2864 #: ../src/guestfs.pod:1438
2865 msgid ""
2866 "You can attach named pieces of private data to the libguestfs handle, and "
2867 "fetch them by name for the lifetime of the handle.  This is called the "
2868 "private data area and is only available from the C API."
2869 msgstr ""
2870
2871 # type: textblock
2872 #: ../src/guestfs.pod:1442
2873 msgid "To attach a named piece of data, use the following call:"
2874 msgstr ""
2875
2876 # type: verbatim
2877 #: ../src/guestfs.pod:1444
2878 #, no-wrap
2879 msgid ""
2880 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2881 "\n"
2882 msgstr ""
2883
2884 # type: textblock
2885 #: ../src/guestfs.pod:1446
2886 msgid ""
2887 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2888 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2889 "overwritten."
2890 msgstr ""
2891
2892 # type: textblock
2893 #: ../src/guestfs.pod:1450
2894 msgid ""
2895 "You can use any C<key> you want, but names beginning with an underscore "
2896 "character are reserved for internal libguestfs purposes (for implementing "
2897 "language bindings).  It is recommended to prefix the name with some unique "
2898 "string to avoid collisions with other users."
2899 msgstr ""
2900
2901 # type: textblock
2902 #: ../src/guestfs.pod:1455
2903 msgid "To retrieve the pointer, use:"
2904 msgstr ""
2905
2906 # type: verbatim
2907 #: ../src/guestfs.pod:1457
2908 #, no-wrap
2909 msgid ""
2910 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2911 "\n"
2912 msgstr ""
2913
2914 # type: textblock
2915 #: ../src/guestfs.pod:1459
2916 msgid ""
2917 "This function returns C<NULL> if either no data is found associated with "
2918 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2919 "C<NULL>."
2920 msgstr ""
2921
2922 # type: textblock
2923 #: ../src/guestfs.pod:1463
2924 msgid ""
2925 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2926 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2927 "all.  In particular, libguestfs does I<not> try to free the data when the "
2928 "handle is closed.  If the data must be freed, then the caller must either "
2929 "free it before calling L</guestfs_close> or must set up a close callback to "
2930 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2931 "can be registered for a handle)."
2932 msgstr ""
2933
2934 # type: textblock
2935 #: ../src/guestfs.pod:1471
2936 msgid ""
2937 "The private data area is implemented using a hash table, and should be "
2938 "reasonably efficient for moderate numbers of keys."
2939 msgstr ""
2940
2941 # type: =head1
2942 #: ../src/guestfs.pod:1474
2943 msgid "BLOCK DEVICE NAMING"
2944 msgstr ""
2945
2946 # type: textblock
2947 #: ../src/guestfs.pod:1476
2948 msgid ""
2949 "In the kernel there is now quite a profusion of schemata for naming block "
2950 "devices (in this context, by I<block device> I mean a physical or virtual "
2951 "hard drive).  The original Linux IDE driver used names starting with "
2952 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
2953 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
2954 "replacement for the old IDE driver (particularly for SATA devices) those "
2955 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
2956 "machines with paravirtualized drivers.  This has created several different "
2957 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
2958 "Xen PV disks."
2959 msgstr ""
2960
2961 # type: textblock
2962 #: ../src/guestfs.pod:1488
2963 msgid ""
2964 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2965 "Linux kernel to access block devices.  We can run a variety of appliances "
2966 "based on a variety of Linux kernels."
2967 msgstr ""
2968
2969 # type: textblock
2970 #: ../src/guestfs.pod:1492
2971 msgid ""
2972 "This causes a problem for libguestfs because many API calls use device or "
2973 "partition names.  Working scripts and the recipe (example) scripts that we "
2974 "make available over the internet could fail if the naming scheme changes."
2975 msgstr ""
2976
2977 # type: textblock
2978 #: ../src/guestfs.pod:1497
2979 msgid ""
2980 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2981 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2982 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2983 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2984 msgstr ""
2985
2986 # type: textblock
2987 #: ../src/guestfs.pod:1503
2988 msgid ""
2989 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2990 "L</guestfs_list_partitions> and similar calls return the true names of the "
2991 "devices and partitions as known to the appliance."
2992 msgstr ""
2993
2994 # type: =head2
2995 #: ../src/guestfs.pod:1508
2996 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2997 msgstr ""
2998
2999 # type: textblock
3000 #: ../src/guestfs.pod:1510
3001 msgid ""
3002 "Usually this translation is transparent.  However in some (very rare)  cases "
3003 "you may need to know the exact algorithm.  Such cases include where you use "
3004 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
3005 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
3006 "devices."
3007 msgstr ""
3008
3009 # type: textblock
3010 #: ../src/guestfs.pod:1516
3011 msgid ""
3012 "The algorithm is applied only to I<parameters> which are known to be either "
3013 "device or partition names.  Return values from functions such as "
3014 "L</guestfs_list_devices> are never changed."
3015 msgstr ""
3016
3017 # type: textblock
3018 #: ../src/guestfs.pod:1524
3019 msgid "Is the string a parameter which is a device or partition name?"
3020 msgstr ""
3021
3022 # type: textblock
3023 #: ../src/guestfs.pod:1528
3024 msgid "Does the string begin with C</dev/sd>?"
3025 msgstr ""
3026
3027 # type: textblock
3028 #: ../src/guestfs.pod:1532
3029 msgid ""
3030 "Does the named device exist? If so, we use that device.  However if I<not> "
3031 "then we continue with this algorithm."
3032 msgstr ""
3033
3034 # type: textblock
3035 #: ../src/guestfs.pod:1537
3036 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3037 msgstr ""
3038
3039 # type: textblock
3040 #: ../src/guestfs.pod:1539
3041 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3042 msgstr ""
3043
3044 # type: textblock
3045 #: ../src/guestfs.pod:1541
3046 msgid "If that named device exists, use it.  If not, continue."
3047 msgstr ""
3048
3049 # type: textblock
3050 #: ../src/guestfs.pod:1545
3051 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3052 msgstr ""
3053
3054 # type: textblock
3055 #: ../src/guestfs.pod:1547
3056 msgid "If that named device exists, use it.  If not, return an error."
3057 msgstr ""
3058
3059 # type: =head2
3060 #: ../src/guestfs.pod:1551
3061 msgid "PORTABILITY CONCERNS"
3062 msgstr ""
3063
3064 # type: textblock
3065 #: ../src/guestfs.pod:1553
3066 msgid ""
3067 "Although the standard naming scheme and automatic translation is useful for "
3068 "simple programs and guestfish scripts, for larger programs it is best not to "
3069 "rely on this mechanism."
3070 msgstr ""
3071
3072 # type: textblock
3073 #: ../src/guestfs.pod:1557
3074 msgid ""
3075 "Where possible for maximum future portability programs using libguestfs "
3076 "should use these future-proof techniques:"
3077 msgstr ""
3078
3079 # type: textblock
3080 #: ../src/guestfs.pod:1564
3081 msgid ""
3082 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3083 "device names, and then use those names directly."
3084 msgstr ""
3085
3086 # type: textblock
3087 #: ../src/guestfs.pod:1567
3088 msgid "Since those device names exist by definition, they will never be translated."
3089 msgstr ""
3090
3091 # type: textblock
3092 #: ../src/guestfs.pod:1572
3093 msgid ""
3094 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3095 "filesystem labels."
3096 msgstr ""
3097
3098 # type: =head1
3099 #: ../src/guestfs.pod:1577
3100 msgid "INTERNALS"
3101 msgstr ""
3102
3103 # type: =head2
3104 #: ../src/guestfs.pod:1579
3105 msgid "COMMUNICATION PROTOCOL"
3106 msgstr ""
3107
3108 # type: textblock
3109 #: ../src/guestfs.pod:1581
3110 msgid ""
3111 "Don't rely on using this protocol directly.  This section documents how it "
3112 "currently works, but it may change at any time."
3113 msgstr ""
3114
3115 # type: textblock
3116 #: ../src/guestfs.pod:1584
3117 msgid ""
3118 "The protocol used to talk between the library and the daemon running inside "
3119 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3120 "1014, RFC 1832, RFC 4506)."
3121 msgstr ""
3122
3123 # type: textblock
3124 #: ../src/guestfs.pod:1588
3125 msgid ""
3126 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3127 "this file is automatically generated)."
3128 msgstr ""
3129
3130 # type: textblock
3131 #: ../src/guestfs.pod:1591
3132 msgid ""
3133 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3134 "and C<FileOut> parameters, which are handled with very simple request/reply "
3135 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3136 "parameters, which use the same request and reply messages, but they may also "
3137 "be followed by files sent using a chunked encoding."
3138 msgstr ""
3139
3140 # type: =head3
3141 #: ../src/guestfs.pod:1598
3142 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3143 msgstr ""
3144
3145 # type: textblock
3146 #: ../src/guestfs.pod:1600
3147 msgid "For ordinary functions, the request message is:"
3148 msgstr ""
3149
3150 # type: verbatim
3151 #: ../src/guestfs.pod:1602
3152 #, no-wrap
3153 msgid ""
3154 " total length (header + arguments,\n"
3155 "      but not including the length word itself)\n"
3156 " struct guestfs_message_header (encoded as XDR)\n"
3157 " struct guestfs_<foo>_args (encoded as XDR)\n"
3158 "\n"
3159 msgstr ""
3160
3161 # type: textblock
3162 #: ../src/guestfs.pod:1607
3163 msgid ""
3164 "The total length field allows the daemon to allocate a fixed size buffer "
3165 "into which it slurps the rest of the message.  As a result, the total length "
3166 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3167 "effective size of any request is limited to somewhere under this size."
3168 msgstr ""
3169
3170 # type: textblock
3171 #: ../src/guestfs.pod:1613
3172 msgid ""
3173 "Note also that many functions don't take any arguments, in which case the "
3174 "C<guestfs_I<foo>_args> is completely omitted."
3175 msgstr ""
3176
3177 # type: textblock
3178 #: ../src/guestfs.pod:1616
3179 msgid ""
3180 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3181 "receiver knows what type of args structure to expect, or none at all."
3182 msgstr ""
3183
3184 # type: textblock
3185 #: ../src/guestfs.pod:1620
3186 msgid "The reply message for ordinary functions is:"
3187 msgstr ""
3188
3189 # type: verbatim
3190 #: ../src/guestfs.pod:1622
3191 #, no-wrap
3192 msgid ""
3193 " total length (header + ret,\n"
3194 "      but not including the length word itself)\n"
3195 " struct guestfs_message_header (encoded as XDR)\n"
3196 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3197 "\n"
3198 msgstr ""
3199
3200 # type: textblock
3201 #: ../src/guestfs.pod:1627
3202 msgid ""
3203 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3204 "functions that return no formal return values."
3205 msgstr ""
3206
3207 # type: textblock
3208 #: ../src/guestfs.pod:1630
3209 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3210 msgstr ""
3211
3212 # type: textblock
3213 #: ../src/guestfs.pod:1633
3214 msgid ""
3215 "In the case of an error, a flag is set in the header, and the reply message "
3216 "is slightly changed:"
3217 msgstr ""
3218
3219 # type: verbatim
3220 #: ../src/guestfs.pod:1636
3221 #, no-wrap
3222 msgid ""
3223 " total length (header + error,\n"
3224 "      but not including the length word itself)\n"
3225 " struct guestfs_message_header (encoded as XDR)\n"
3226 " struct guestfs_message_error (encoded as XDR)\n"
3227 "\n"
3228 msgstr ""
3229
3230 # type: textblock
3231 #: ../src/guestfs.pod:1641
3232 msgid ""
3233 "The C<guestfs_message_error> structure contains the error message as a "
3234 "string."
3235 msgstr ""
3236
3237 # type: =head3
3238 #: ../src/guestfs.pod:1644
3239 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3240 msgstr ""
3241
3242 # type: textblock
3243 #: ../src/guestfs.pod:1646
3244 msgid ""
3245 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3246 "The normal request message is sent (see above).  However this is followed by "
3247 "a sequence of file chunks."
3248 msgstr ""
3249
3250 # type: verbatim
3251 #: ../src/guestfs.pod:1650
3252 #, no-wrap
3253 msgid ""
3254 " total length (header + arguments,\n"
3255 "      but not including the length word itself,\n"
3256 "      and not including the chunks)\n"
3257 " struct guestfs_message_header (encoded as XDR)\n"
3258 " struct guestfs_<foo>_args (encoded as XDR)\n"
3259 " sequence of chunks for FileIn param #0\n"
3260 " sequence of chunks for FileIn param #1 etc.\n"
3261 "\n"
3262 msgstr ""
3263
3264 # type: textblock
3265 #: ../src/guestfs.pod:1658
3266 msgid "The \"sequence of chunks\" is:"
3267 msgstr ""
3268
3269 # type: verbatim
3270 #: ../src/guestfs.pod:1660
3271 #, no-wrap
3272 msgid ""
3273 " length of chunk (not including length word itself)\n"
3274 " struct guestfs_chunk (encoded as XDR)\n"
3275 " length of chunk\n"
3276 " struct guestfs_chunk (encoded as XDR)\n"
3277 "   ...\n"
3278 " length of chunk\n"
3279 " struct guestfs_chunk (with data.data_len == 0)\n"
3280 "\n"
3281 msgstr ""
3282
3283 # type: textblock
3284 #: ../src/guestfs.pod:1668
3285 msgid ""
3286 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3287 "is set in the final chunk to indicate either successful completion or early "
3288 "cancellation."
3289 msgstr ""
3290
3291 # type: textblock
3292 #: ../src/guestfs.pod:1672
3293 msgid ""
3294 "At time of writing there are no functions that have more than one FileIn "
3295 "parameter.  However this is (theoretically) supported, by sending the "
3296 "sequence of chunks for each FileIn parameter one after another (from left to "
3297 "right)."
3298 msgstr ""
3299
3300 # type: textblock
3301 #: ../src/guestfs.pod:1677
3302 msgid ""
3303 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3304 "transfer.  The library does this by sending a chunk with a special flag set "
3305 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3306 "RPC, does I<not> send any reply, and goes back to reading the next request."
3307 msgstr ""
3308
3309 # type: textblock
3310 #: ../src/guestfs.pod:1683
3311 msgid ""
3312 "The daemon may also cancel.  It does this by writing a special word "
3313 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3314 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3315 "cancel chunk).  The special word is chosen so that even if cancellation "
3316 "happens right at the end of the transfer (after the library has finished "
3317 "writing and has started listening for the reply), the \"spurious\" cancel "
3318 "flag will not be confused with the reply message."
3319 msgstr ""
3320
3321 # type: textblock
3322 #: ../src/guestfs.pod:1692
3323 msgid ""
3324 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3325 "limit), and also files where the size is not known in advance (eg. from "
3326 "pipes or sockets).  However the chunks are rather small "
3327 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3328 "to keep much in memory."
3329 msgstr ""
3330
3331 # type: =head3
3332 #: ../src/guestfs.pod:1698
3333 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3334 msgstr ""
3335
3336 # type: textblock
3337 #: ../src/guestfs.pod:1700
3338 msgid ""
3339 "The protocol for FileOut parameters is exactly the same as for FileIn "
3340 "parameters, but with the roles of daemon and library reversed."
3341 msgstr ""
3342
3343 # type: verbatim
3344 #: ../src/guestfs.pod:1703
3345 #, no-wrap
3346 msgid ""
3347 " total length (header + ret,\n"
3348 "      but not including the length word itself,\n"
3349 "      and not including the chunks)\n"
3350 " struct guestfs_message_header (encoded as XDR)\n"
3351 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3352 " sequence of chunks for FileOut param #0\n"
3353 " sequence of chunks for FileOut param #1 etc.\n"
3354 "\n"
3355 msgstr ""
3356
3357 # type: =head3
3358 #: ../src/guestfs.pod:1711
3359 msgid "INITIAL MESSAGE"
3360 msgstr ""
3361
3362 # type: textblock
3363 #: ../src/guestfs.pod:1713
3364 msgid ""
3365 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3366 "which indicates that the guest and daemon is alive.  This is what "
3367 "L</guestfs_launch> waits for."
3368 msgstr ""
3369
3370 # type: =head3
3371 #: ../src/guestfs.pod:1717
3372 msgid "PROGRESS NOTIFICATION MESSAGES"
3373 msgstr ""
3374
3375 # type: textblock
3376 #: ../src/guestfs.pod:1719
3377 msgid ""
3378 "The daemon may send progress notification messages at any time.  These are "
3379 "distinguished by the normal length word being replaced by "
3380 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3381 msgstr ""
3382
3383 # type: textblock
3384 #: ../src/guestfs.pod:1723
3385 msgid ""
3386 "The library turns them into progress callbacks (see "
3387 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3388 "discards them if not."
3389 msgstr ""
3390
3391 # type: textblock
3392 #: ../src/guestfs.pod:1727
3393 msgid ""
3394 "The daemon self-limits the frequency of progress messages it sends (see "
3395 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3396 "messages."
3397 msgstr ""
3398
3399 # type: =head1
3400 #: ../src/guestfs.pod:1731
3401 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3402 msgstr ""
3403
3404 # type: textblock
3405 #: ../src/guestfs.pod:1733
3406 msgid ""
3407 "All high-level libguestfs actions are synchronous.  If you want to use "
3408 "libguestfs asynchronously then you must create a thread."
3409 msgstr ""
3410
3411 # type: textblock
3412 #: ../src/guestfs.pod:1736
3413 msgid ""
3414 "Only use the handle from a single thread.  Either use the handle exclusively "
3415 "from one thread, or provide your own mutex so that two threads cannot issue "
3416 "calls on the same handle at the same time."
3417 msgstr ""
3418
3419 # type: textblock
3420 #: ../src/guestfs.pod:1740
3421 msgid ""
3422 "See the graphical program guestfs-browser for one possible architecture for "
3423 "multithreaded programs using libvirt and libguestfs."
3424 msgstr ""
3425
3426 # type: =head1
3427 #: ../src/guestfs.pod:1743
3428 msgid "QEMU WRAPPERS"
3429 msgstr ""
3430
3431 # type: textblock
3432 #: ../src/guestfs.pod:1745
3433 msgid ""
3434 "If you want to compile your own qemu, run qemu from a non-standard location, "
3435 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3436 "around qemu."
3437 msgstr ""
3438
3439 # type: textblock
3440 #: ../src/guestfs.pod:1749
3441 msgid ""
3442 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3443 "last command in the shell script (so that qemu replaces the shell and "
3444 "becomes the direct child of the libguestfs-using program).  If you don't do "
3445 "this, then the qemu process won't be cleaned up correctly."
3446 msgstr ""
3447
3448 # type: textblock
3449 #: ../src/guestfs.pod:1754
3450 msgid ""
3451 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3452 "source:"
3453 msgstr ""
3454
3455 # type: verbatim
3456 #: ../src/guestfs.pod:1757
3457 #, no-wrap
3458 msgid ""
3459 " #!/bin/sh -\n"
3460 " qemudir=/home/rjones/d/qemu\n"
3461 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3462 "\"$@\"\n"
3463 "\n"
3464 msgstr ""
3465
3466 # type: textblock
3467 #: ../src/guestfs.pod:1761
3468 msgid ""
3469 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3470 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3471 "example:"
3472 msgstr ""
3473
3474 # type: verbatim
3475 #: ../src/guestfs.pod:1765
3476 #, no-wrap
3477 msgid ""
3478 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3479 "\n"
3480 msgstr ""
3481
3482 # type: textblock
3483 #: ../src/guestfs.pod:1767
3484 msgid ""
3485 "Note that libguestfs also calls qemu with the -help and -version options in "
3486 "order to determine features."
3487 msgstr ""
3488
3489 # type: =head1
3490 #: ../src/guestfs.pod:1770
3491 msgid "LIBGUESTFS VERSION NUMBERS"
3492 msgstr ""
3493
3494 # type: textblock
3495 #: ../src/guestfs.pod:1772
3496 msgid ""
3497 "Since April 2010, libguestfs has started to make separate development and "
3498 "stable releases, along with corresponding branches in our git repository.  "
3499 "These separate releases can be identified by version number:"
3500 msgstr ""
3501
3502 # type: verbatim
3503 #: ../src/guestfs.pod:1777
3504 #, no-wrap
3505 msgid ""
3506 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3507 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3508 "       |\n"
3509 "       v\n"
3510 " 1  .  3  .  5\n"
3511 " ^           ^\n"
3512 " |           |\n"
3513 " |           `-------- sub-version\n"
3514 " |\n"
3515 " `------ always '1' because we don't change the ABI\n"
3516 "\n"
3517 msgstr ""
3518
3519 # type: textblock
3520 #: ../src/guestfs.pod:1788
3521 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3522 msgstr ""
3523
3524 # type: textblock
3525 #: ../src/guestfs.pod:1790
3526 msgid ""
3527 "As time passes we cherry pick fixes from the development branch and backport "
3528 "those into the stable branch, the effect being that the stable branch should "
3529 "get more stable and less buggy over time.  So the stable releases are ideal "
3530 "for people who don't need new features but would just like the software to "
3531 "work."
3532 msgstr ""
3533
3534 # type: textblock
3535 #: ../src/guestfs.pod:1796
3536 msgid "Our criteria for backporting changes are:"
3537 msgstr ""
3538
3539 # type: textblock
3540 #: ../src/guestfs.pod:1802
3541 msgid ""
3542 "Documentation changes which don't affect any code are backported unless the "
3543 "documentation refers to a future feature which is not in stable."
3544 msgstr ""
3545
3546 # type: textblock
3547 #: ../src/guestfs.pod:1808
3548 msgid ""
3549 "Bug fixes which are not controversial, fix obvious problems, and have been "
3550 "well tested are backported."
3551 msgstr ""
3552
3553 # type: textblock
3554 #: ../src/guestfs.pod:1813
3555 msgid ""
3556 "Simple rearrangements of code which shouldn't affect how it works get "
3557 "backported.  This is so that the code in the two branches doesn't get too "
3558 "far out of step, allowing us to backport future fixes more easily."
3559 msgstr ""
3560
3561 # type: textblock
3562 #: ../src/guestfs.pod:1819
3563 msgid ""
3564 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3565 "exceptional case: the new feature is required in order to implement an "
3566 "important bug fix."
3567 msgstr ""
3568
3569 # type: textblock
3570 #: ../src/guestfs.pod:1825
3571 msgid ""
3572 "A new stable branch starts when we think the new features in development are "
3573 "substantial and compelling enough over the current stable branch to warrant "
3574 "it.  When that happens we create new stable and development versions 1.N.0 "
3575 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3576 "stable at this point, but by backporting fixes from development, that branch "
3577 "will stabilize over time."
3578 msgstr ""
3579
3580 # type: =head1
3581 #: ../src/guestfs.pod:1833 ../fish/guestfish.pod:867 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3582 msgid "ENVIRONMENT VARIABLES"
3583 msgstr ""
3584
3585 # type: =item
3586 #: ../src/guestfs.pod:1837 ../fish/guestfish.pod:893
3587 msgid "LIBGUESTFS_APPEND"
3588 msgstr ""
3589
3590 # type: textblock
3591 #: ../src/guestfs.pod:1839 ../fish/guestfish.pod:895
3592 msgid "Pass additional options to the guest kernel."
3593 msgstr ""
3594
3595 # type: =item
3596 #: ../src/guestfs.pod:1841 ../fish/guestfish.pod:897
3597 msgid "LIBGUESTFS_DEBUG"
3598 msgstr ""
3599
3600 # type: textblock
3601 #: ../src/guestfs.pod:1843
3602 msgid ""
3603 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3604 "effect as calling C<guestfs_set_verbose (g, 1)>."
3605 msgstr ""
3606
3607 # type: =item
3608 #: ../src/guestfs.pod:1846 ../fish/guestfish.pod:902
3609 msgid "LIBGUESTFS_MEMSIZE"
3610 msgstr ""
3611
3612 # type: textblock
3613 #: ../src/guestfs.pod:1848 ../fish/guestfish.pod:904
3614 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3615 msgstr ""
3616
3617 # type: verbatim
3618 #: ../src/guestfs.pod:1851 ../fish/guestfish.pod:907
3619 #, no-wrap
3620 msgid ""
3621 " LIBGUESTFS_MEMSIZE=700\n"
3622 "\n"
3623 msgstr ""
3624
3625 # type: =item
3626 #: ../src/guestfs.pod:1853 ../fish/guestfish.pod:909
3627 msgid "LIBGUESTFS_PATH"
3628 msgstr ""
3629
3630 # type: textblock
3631 #: ../src/guestfs.pod:1855
3632 msgid ""
3633 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3634 "the discussion of paths in section PATH above."
3635 msgstr ""
3636
3637 # type: =item
3638 #: ../src/guestfs.pod:1858 ../fish/guestfish.pod:914
3639 msgid "LIBGUESTFS_QEMU"
3640 msgstr ""
3641
3642 # type: textblock
3643 #: ../src/guestfs.pod:1860 ../fish/guestfish.pod:916
3644 msgid ""
3645 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3646 "which was found at compile time by the configure script is used."
3647 msgstr ""
3648
3649 # type: textblock
3650 #: ../src/guestfs.pod:1864
3651 msgid "See also L</QEMU WRAPPERS> above."
3652 msgstr ""
3653
3654 # type: =item
3655 #: ../src/guestfs.pod:1866 ../fish/guestfish.pod:920
3656 msgid "LIBGUESTFS_TRACE"
3657 msgstr ""
3658
3659 # type: textblock
3660 #: ../src/guestfs.pod:1868
3661 msgid ""
3662 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3663 "effect as calling C<guestfs_set_trace (g, 1)>."
3664 msgstr ""
3665
3666 # type: =item
3667 #: ../src/guestfs.pod:1871 ../fish/guestfish.pod:929
3668 msgid "TMPDIR"
3669 msgstr ""
3670
3671 # type: textblock
3672 #: ../src/guestfs.pod:1873 ../fish/guestfish.pod:931
3673 msgid "Location of temporary directory, defaults to C</tmp>."
3674 msgstr ""
3675
3676 # type: textblock
3677 #: ../src/guestfs.pod:1875 ../fish/guestfish.pod:933
3678 msgid ""
3679 "If libguestfs was compiled to use the supermin appliance then the real "
3680 "appliance is cached in this directory, shared between all handles belonging "
3681 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3682 "use in case C</tmp> is not large enough."
3683 msgstr ""
3684
3685 # type: =head1
3686 #: ../src/guestfs.pod:1883 ../fish/guestfish.pod:991 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:214 ../inspector/virt-inspector.pl:570 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640 ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486 ../tools/virt-list-filesystems.pl:186 ../tools/virt-cat.pl:185 ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3687 msgid "SEE ALSO"
3688 msgstr ""
3689
3690 # type: textblock
3691 #: ../src/guestfs.pod:1885
3692 msgid ""
3693 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3694 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3695 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3696 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3697 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3698 msgstr ""
3699
3700 # type: textblock
3701 #: ../src/guestfs.pod:1903
3702 msgid ""
3703 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
3704 "L<lvm(8)>, L<disktype(1)>."
3705 msgstr ""
3706
3707 # type: =head1
3708 #: ../src/guestfs.pod:1910 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
3709 msgid "BUGS"
3710 msgstr ""
3711
3712 # type: textblock
3713 #: ../src/guestfs.pod:1912
3714 msgid "To get a list of bugs against libguestfs use this link:"
3715 msgstr ""
3716
3717 # type: textblock
3718 #: ../src/guestfs.pod:1914
3719 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
3720 msgstr ""
3721
3722 # type: textblock
3723 #: ../src/guestfs.pod:1916
3724 msgid "To report a new bug against libguestfs use this link:"
3725 msgstr ""
3726
3727 # type: textblock
3728 #: ../src/guestfs.pod:1918
3729 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
3730 msgstr ""
3731
3732 # type: textblock
3733 #: ../src/guestfs.pod:1920
3734 msgid "When reporting a bug, please check:"
3735 msgstr ""
3736
3737 # type: textblock
3738 #: ../src/guestfs.pod:1926
3739 msgid "That the bug hasn't been reported already."
3740 msgstr ""
3741
3742 # type: textblock
3743 #: ../src/guestfs.pod:1930
3744 msgid "That you are testing a recent version."
3745 msgstr ""
3746
3747 # type: textblock
3748 #: ../src/guestfs.pod:1934
3749 msgid "Describe the bug accurately, and give a way to reproduce it."
3750 msgstr ""
3751
3752 # type: textblock
3753 #: ../src/guestfs.pod:1938
3754 msgid ""
3755 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3756 "bug report."
3757 msgstr ""
3758
3759 # type: =head1
3760 #: ../src/guestfs.pod:1943 ../fish/guestfish.pod:1008 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:225 ../inspector/virt-inspector.pl:580
3761 msgid "AUTHORS"
3762 msgstr ""
3763
3764 # type: textblock
3765 #: ../src/guestfs.pod:1945 ../fish/guestfish.pod:1010 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:227
3766 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3767 msgstr ""
3768
3769 # type: =head1
3770 #: ../src/guestfs.pod:1947 ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:229 ../inspector/virt-inspector.pl:594 ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653 ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:202 ../tools/virt-cat.pl:199 ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3771 msgid "COPYRIGHT"
3772 msgstr ""
3773
3774 # type: textblock
3775 #: ../src/guestfs.pod:1949 ../fish/guestfish.pod:1014 ../fuse/guestmount.pod:231
3776 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3777 msgstr ""
3778
3779 # type: textblock
3780 #: ../src/guestfs.pod:1952
3781 msgid ""
3782 "This library is free software; you can redistribute it and/or modify it "
3783 "under the terms of the GNU Lesser General Public License as published by the "
3784 "Free Software Foundation; either version 2 of the License, or (at your "
3785 "option) any later version."
3786 msgstr ""
3787
3788 # type: textblock
3789 #: ../src/guestfs.pod:1957
3790 msgid ""
3791 "This library is distributed in the hope that it will be useful, but WITHOUT "
3792 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3793 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3794 "for more details."
3795 msgstr ""
3796
3797 # type: textblock
3798 #: ../src/guestfs.pod:1962
3799 msgid ""
3800 "You should have received a copy of the GNU Lesser General Public License "
3801 "along with this library; if not, write to the Free Software Foundation, "
3802 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3803 msgstr ""
3804
3805 # type: =head2
3806 #: ../src/guestfs-actions.pod:1
3807 msgid "guestfs_add_cdrom"
3808 msgstr ""
3809
3810 # type: verbatim
3811 #: ../src/guestfs-actions.pod:3
3812 #, no-wrap
3813 msgid ""
3814 " int\n"
3815 " guestfs_add_cdrom (guestfs_h *g,\n"
3816 "                    const char *filename);\n"
3817 "\n"
3818 msgstr ""
3819
3820 # type: textblock
3821 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
3822 msgid "This function adds a virtual CD-ROM disk image to the guest."
3823 msgstr ""
3824
3825 # type: textblock
3826 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
3827 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3828 msgstr ""
3829
3830 # type: textblock
3831 #: ../src/guestfs-actions.pod:17
3832 msgid ""
3833 "This call checks for the existence of C<filename>.  This stops you from "
3834 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3835 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3836 "instead."
3837 msgstr ""
3838
3839 # type: textblock
3840 #: ../src/guestfs-actions.pod:24
3841 msgid ""
3842 "If you just want to add an ISO file (often you use this as an efficient way "
3843 "to transfer large files into the guest), then you should probably use "
3844 "C<guestfs_add_drive_ro> instead."
3845 msgstr ""
3846
3847 # type: textblock
3848 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:56 ../src/guestfs-actions.pod:115 ../src/guestfs-actions.pod:150 ../src/guestfs-actions.pod:162 ../src/guestfs-actions.pod:181 ../src/guestfs-actions.pod:199 ../src/guestfs-actions.pod:211 ../src/guestfs-actions.pod:318 ../src/guestfs-actions.pod:336 ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:411 ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:492 ../src/guestfs-actions.pod:521 ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:546 ../src/guestfs-actions.pod:633 ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:673 ../src/guestfs-actions.pod:824 ../src/guestfs-actions.pod:842 ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:952 ../src/guestfs-actions.pod:969 ../src/guestfs-actions.pod:981 ../src/guestfs-actions.pod:999 ../src/guestfs-actions.pod:1034 ../src/guestfs-actions.pod:1096 ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1148 ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1275 ../src/guestfs-actions.pod:1307 ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:1533 ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2119 ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2208 ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2848 ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2873 ../src/guestfs-actions.pod:2905 ../src/guestfs-actions.pod:2972 ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3005 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3094 ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3186 ../src/guestfs-actions.pod:3200 ../src/guestfs-actions.pod:3211 ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3239 ../src/guestfs-actions.pod:3324 ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3446 ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3516 ../src/guestfs-actions.pod:3563 ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3609 ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3675 ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3779 ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3855 ../src/guestfs-actions.pod:3867 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4104 ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4140 ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4228 ../src/guestfs-actions.pod:4243 ../src/guestfs-actions.pod:4254 ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4572 ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4673 ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4710 ../src/guestfs-actions.pod:4726 ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4762 ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:4820 ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4859 ../src/guestfs-actions.pod:4881 ../src/guestfs-actions.pod:4894 ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4924 ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:5004 ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243 ../src/guestfs-actions.pod:5263 ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5377 ../src/guestfs-actions.pod:5391 ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5420 ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5493 ../src/guestfs-actions.pod:5530 ../src/guestfs-actions.pod:5541 ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5722 ../src/guestfs-actions.pod:5738 ../src/guestfs-actions.pod:5750 ../src/guestfs-actions.pod:5799 ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:5850 ../src/guestfs-actions.pod:5879 ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5949 ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6026 ../src/guestfs-actions.pod:6053
3849 msgid "This function returns 0 on success or -1 on error."
3850 msgstr ""
3851
3852 # type: textblock
3853 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:164 ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3854 msgid ""
3855 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3856 "instead."
3857 msgstr ""
3858
3859 # type: textblock
3860 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:186 ../src/guestfs-actions.pod:1280 ../src/guestfs-actions.pod:1732 ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:6110 ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120 ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311 ../fish/guestfish-actions.pod:4353 ../fish/guestfish-actions.pod:4450
3861 msgid ""
3862 "Deprecated functions will not be removed from the API, but the fact that "
3863 "they are deprecated indicates that there are problems with correct use of "
3864 "these functions."
3865 msgstr ""
3866
3867 # type: =head2
3868 #: ../src/guestfs-actions.pod:39
3869 msgid "guestfs_add_drive"
3870 msgstr ""
3871
3872 # type: verbatim
3873 #: ../src/guestfs-actions.pod:41
3874 #, no-wrap
3875 msgid ""
3876 " int\n"
3877 " guestfs_add_drive (guestfs_h *g,\n"
3878 "                    const char *filename);\n"
3879 "\n"
3880 msgstr ""
3881
3882 # type: textblock
3883 #: ../src/guestfs-actions.pod:45
3884 msgid ""
3885 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
3886 "optional parameters, so the disk is added writable, with the format being "
3887 "detected automatically."
3888 msgstr ""
3889
3890 # type: textblock
3891 #: ../src/guestfs-actions.pod:49
3892 msgid ""
3893 "Automatic detection of the format opens you up to a potential security hole "
3894 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3895 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3896 "you should think about replacing calls to this function with calls to "
3897 "C<guestfs_add_drive_opts>, and specifying the format."
3898 msgstr ""
3899
3900 # type: =head2
3901 #: ../src/guestfs-actions.pod:58
3902 msgid "guestfs_add_drive_opts"
3903 msgstr ""
3904
3905 # type: verbatim
3906 #: ../src/guestfs-actions.pod:60
3907 #, no-wrap
3908 msgid ""
3909 " int\n"
3910 " guestfs_add_drive_opts (guestfs_h *g,\n"
3911 "                         const char *filename,\n"
3912 "                         ...);\n"
3913 "\n"
3914 msgstr ""
3915
3916 # type: textblock
3917 #: ../src/guestfs-actions.pod:65
3918 msgid ""
3919 "You may supply a list of optional arguments to this call.  Use zero or more "
3920 "of the following pairs of parameters, and terminate the list with C<-1> on "
3921 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
3922 msgstr ""
3923
3924 # type: verbatim
3925 #: ../src/guestfs-actions.pod:70
3926 #, no-wrap
3927 msgid ""
3928 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
3929 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
3930 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
3931 "\n"
3932 msgstr ""
3933
3934 # type: textblock
3935 #: ../src/guestfs-actions.pod:74 ../fish/guestfish-actions.pod:56
3936 msgid ""
3937 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
3938 "The first time you call this function, the disk appears as C</dev/sda>, the "
3939 "second time as C</dev/sdb>, and so on."
3940 msgstr ""
3941
3942 # type: textblock
3943 #: ../src/guestfs-actions.pod:79 ../fish/guestfish-actions.pod:61
3944 msgid ""
3945 "You don't necessarily need to be root when using libguestfs.  However you "
3946 "obviously do need sufficient permissions to access the filename for whatever "
3947 "operations you want to perform (ie. read access if you just want to read the "
3948 "image or write access if you want to modify the image)."
3949 msgstr ""
3950
3951 # type: textblock
3952 #: ../src/guestfs-actions.pod:85 ../fish/guestfish-actions.pod:67
3953 msgid "This call checks that C<filename> exists."
3954 msgstr ""
3955
3956 # type: textblock
3957 #: ../src/guestfs-actions.pod:87 ../fish/guestfish-actions.pod:69
3958 msgid "The optional arguments are:"
3959 msgstr ""
3960
3961 # type: =item
3962 #: ../src/guestfs-actions.pod:91 ../fish/guestfish-actions.pod:73
3963 msgid "C<readonly>"
3964 msgstr ""
3965
3966 # type: textblock
3967 #: ../src/guestfs-actions.pod:93 ../fish/guestfish-actions.pod:75
3968 msgid ""
3969 "If true then the image is treated as read-only.  Writes are still allowed, "
3970 "but they are stored in a temporary snapshot overlay which is discarded at "
3971 "the end.  The disk that you add is not modified."
3972 msgstr ""
3973
3974 # type: =item
3975 #: ../src/guestfs-actions.pod:97 ../fish/guestfish-actions.pod:79
3976 msgid "C<format>"
3977 msgstr ""
3978
3979 # type: textblock
3980 #: ../src/guestfs-actions.pod:99
3981 msgid ""
3982 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
3983 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
3984 "Possible formats include C<raw> and C<qcow2>."
3985 msgstr ""
3986
3987 # type: textblock
3988 #: ../src/guestfs-actions.pod:103 ../fish/guestfish-actions.pod:85
3989 msgid ""
3990 "Automatic detection of the format opens you up to a potential security hole "
3991 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3992 "RHBZ#642934.  Specifying the format closes this security hole."
3993 msgstr ""
3994
3995 # type: =item
3996 #: ../src/guestfs-actions.pod:108 ../fish/guestfish-actions.pod:90
3997 msgid "C<iface>"
3998 msgstr ""
3999
4000 # type: textblock
4001 #: ../src/guestfs-actions.pod:110
4002 msgid ""
4003 "This rarely-used option lets you emulate the behaviour of the deprecated "
4004 "C<guestfs_add_drive_with_if> call (q.v.)"
4005 msgstr ""
4006
4007 # type: =head2
4008 #: ../src/guestfs-actions.pod:117
4009 msgid "guestfs_add_drive_opts_va"
4010 msgstr ""
4011
4012 # type: verbatim
4013 #: ../src/guestfs-actions.pod:119
4014 #, no-wrap
4015 msgid ""
4016 " int\n"
4017 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4018 "                            const char *filename,\n"
4019 "                            va_list args);\n"
4020 "\n"
4021 msgstr ""
4022
4023 # type: textblock
4024 #: ../src/guestfs-actions.pod:124
4025 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4026 msgstr ""
4027
4028 # type: textblock
4029 #: ../src/guestfs-actions.pod:126 ../src/guestfs-actions.pod:137
4030 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4031 msgstr ""
4032
4033 # type: =head2
4034 #: ../src/guestfs-actions.pod:128
4035 msgid "guestfs_add_drive_opts_argv"
4036 msgstr ""
4037
4038 # type: verbatim
4039 #: ../src/guestfs-actions.pod:130
4040 #, no-wrap
4041 msgid ""
4042 " int\n"
4043 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4044 "                              const char *filename,\n"
4045 "                              const struct guestfs_add_drive_opts_argv "
4046 "*optargs);\n"
4047 "\n"
4048 msgstr ""
4049
4050 # type: textblock
4051 #: ../src/guestfs-actions.pod:135
4052 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4053 msgstr ""
4054
4055 # type: =head2
4056 #: ../src/guestfs-actions.pod:139
4057 msgid "guestfs_add_drive_ro"
4058 msgstr ""
4059
4060 # type: verbatim
4061 #: ../src/guestfs-actions.pod:141
4062 #, no-wrap
4063 msgid ""
4064 " int\n"
4065 " guestfs_add_drive_ro (guestfs_h *g,\n"
4066 "                       const char *filename);\n"
4067 "\n"
4068 msgstr ""
4069
4070 # type: textblock
4071 #: ../src/guestfs-actions.pod:145
4072 msgid ""
4073 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4074 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4075 "disk is added read-only, with the format being detected automatically."
4076 msgstr ""
4077
4078 # type: =head2
4079 #: ../src/guestfs-actions.pod:152
4080 msgid "guestfs_add_drive_ro_with_if"
4081 msgstr ""
4082
4083 # type: verbatim
4084 #: ../src/guestfs-actions.pod:154
4085 #, no-wrap
4086 msgid ""
4087 " int\n"
4088 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4089 "                               const char *filename,\n"
4090 "                               const char *iface);\n"
4091 "\n"
4092 msgstr ""
4093
4094 # type: textblock
4095 #: ../src/guestfs-actions.pod:159
4096 msgid ""
4097 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4098 "QEMU interface emulation to use at run time."
4099 msgstr ""
4100
4101 # type: =head2
4102 #: ../src/guestfs-actions.pod:171
4103 msgid "guestfs_add_drive_with_if"
4104 msgstr ""
4105
4106 # type: verbatim
4107 #: ../src/guestfs-actions.pod:173
4108 #, no-wrap
4109 msgid ""
4110 " int\n"
4111 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4112 "                            const char *filename,\n"
4113 "                            const char *iface);\n"
4114 "\n"
4115 msgstr ""
4116
4117 # type: textblock
4118 #: ../src/guestfs-actions.pod:178
4119 msgid ""
4120 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4121 "QEMU interface emulation to use at run time."
4122 msgstr ""
4123
4124 # type: =head2
4125 #: ../src/guestfs-actions.pod:190
4126 msgid "guestfs_aug_clear"
4127 msgstr ""
4128
4129 # type: verbatim
4130 #: ../src/guestfs-actions.pod:192
4131 #, no-wrap
4132 msgid ""
4133 " int\n"
4134 " guestfs_aug_clear (guestfs_h *g,\n"
4135 "                    const char *augpath);\n"
4136 "\n"
4137 msgstr ""
4138
4139 # type: textblock
4140 #: ../src/guestfs-actions.pod:196 ../fish/guestfish-actions.pod:142
4141 msgid ""
4142 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4143 "L<augtool(1)> C<clear> command."
4144 msgstr ""
4145
4146 # type: =head2
4147 #: ../src/guestfs-actions.pod:201
4148 msgid "guestfs_aug_close"
4149 msgstr ""
4150
4151 # type: verbatim
4152 #: ../src/guestfs-actions.pod:203
4153 #, no-wrap
4154 msgid ""
4155 " int\n"
4156 " guestfs_aug_close (guestfs_h *g);\n"
4157 "\n"
4158 msgstr ""
4159
4160 # type: textblock
4161 #: ../src/guestfs-actions.pod:206
4162 msgid ""
4163 "Close the current Augeas handle and free up any resources used by it.  After "
4164 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4165 "any other Augeas functions."
4166 msgstr ""
4167
4168 # type: =head2
4169 #: ../src/guestfs-actions.pod:213
4170 msgid "guestfs_aug_defnode"
4171 msgstr ""
4172
4173 # type: verbatim
4174 #: ../src/guestfs-actions.pod:215
4175 #, no-wrap
4176 msgid ""
4177 " struct guestfs_int_bool *\n"
4178 " guestfs_aug_defnode (guestfs_h *g,\n"
4179 "                      const char *name,\n"
4180 "                      const char *expr,\n"
4181 "                      const char *val);\n"
4182 "\n"
4183 msgstr ""
4184
4185 # type: textblock
4186 #: ../src/guestfs-actions.pod:221 ../fish/guestfish-actions.pod:158
4187 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4188 msgstr ""
4189
4190 # type: textblock
4191 #: ../src/guestfs-actions.pod:224
4192 msgid ""
4193 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4194 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4195 "containing that single node."
4196 msgstr ""
4197
4198 # type: textblock
4199 #: ../src/guestfs-actions.pod:228 ../fish/guestfish-actions.pod:165
4200 msgid ""
4201 "On success this returns a pair containing the number of nodes in the "
4202 "nodeset, and a boolean flag if a node was created."
4203 msgstr ""
4204
4205 # type: textblock
4206 #: ../src/guestfs-actions.pod:232
4207 msgid ""
4208 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4209 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4210 msgstr ""
4211
4212 # type: =head2
4213 #: ../src/guestfs-actions.pod:236
4214 msgid "guestfs_aug_defvar"
4215 msgstr ""
4216
4217 # type: verbatim
4218 #: ../src/guestfs-actions.pod:238
4219 #, no-wrap
4220 msgid ""
4221 " int\n"
4222 " guestfs_aug_defvar (guestfs_h *g,\n"
4223 "                     const char *name,\n"
4224 "                     const char *expr);\n"
4225 "\n"
4226 msgstr ""
4227
4228 # type: textblock
4229 #: ../src/guestfs-actions.pod:243 ../fish/guestfish-actions.pod:173
4230 msgid ""
4231 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4232 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4233 msgstr ""
4234
4235 # type: textblock
4236 #: ../src/guestfs-actions.pod:247 ../fish/guestfish-actions.pod:177
4237 msgid ""
4238 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4239 "evaluates to something which is not a nodeset."
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:250 ../src/guestfs-actions.pod:399 ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1166 ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1683 ../src/guestfs-actions.pod:1770 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870 ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:3843 ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4353 ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5912
4244 msgid "On error this function returns -1."
4245 msgstr ""
4246
4247 # type: =head2
4248 #: ../src/guestfs-actions.pod:252
4249 msgid "guestfs_aug_get"
4250 msgstr ""
4251
4252 # type: verbatim
4253 #: ../src/guestfs-actions.pod:254
4254 #, no-wrap
4255 msgid ""
4256 " char *\n"
4257 " guestfs_aug_get (guestfs_h *g,\n"
4258 "                  const char *augpath);\n"
4259 "\n"
4260 msgstr ""
4261
4262 # type: textblock
4263 #: ../src/guestfs-actions.pod:258 ../fish/guestfish-actions.pod:184
4264 msgid ""
4265 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4266 "node, the C<value> is returned."
4267 msgstr ""
4268
4269 # type: textblock
4270 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:787 ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:896 ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1047 ../src/guestfs-actions.pod:1062 ../src/guestfs-actions.pod:1079 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:1479 ../src/guestfs-actions.pod:1630 ../src/guestfs-actions.pod:1645 ../src/guestfs-actions.pod:1726 ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3128 ../src/guestfs-actions.pod:3279 ../src/guestfs-actions.pod:3380 ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4155 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4473 ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:5023 ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5052 ../src/guestfs-actions.pod:5074 ../src/guestfs-actions.pod:5668 ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5860 ../src/guestfs-actions.pod:6104
4271 msgid ""
4272 "This function returns a string, or NULL on error.  I<The caller must free "
4273 "the returned string after use>."
4274 msgstr ""
4275
4276 # type: =head2
4277 #: ../src/guestfs-actions.pod:264
4278 msgid "guestfs_aug_init"
4279 msgstr ""
4280
4281 # type: verbatim
4282 #: ../src/guestfs-actions.pod:266
4283 #, no-wrap
4284 msgid ""
4285 " int\n"
4286 " guestfs_aug_init (guestfs_h *g,\n"
4287 "                   const char *root,\n"
4288 "                   int flags);\n"
4289 "\n"
4290 msgstr ""
4291
4292 # type: textblock
4293 #: ../src/guestfs-actions.pod:271 ../fish/guestfish-actions.pod:191
4294 msgid ""
4295 "Create a new Augeas handle for editing configuration files.  If there was "
4296 "any previous Augeas handle associated with this guestfs session, then it is "
4297 "closed."
4298 msgstr ""
4299
4300 # type: textblock
4301 #: ../src/guestfs-actions.pod:275
4302 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4303 msgstr ""
4304
4305 # type: textblock
4306 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:198
4307 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4308 msgstr ""
4309
4310 # type: textblock
4311 #: ../src/guestfs-actions.pod:281 ../fish/guestfish-actions.pod:201
4312 msgid ""
4313 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4314 "logical I<or> of the following integers:"
4315 msgstr ""
4316
4317 # type: =item
4318 #: ../src/guestfs-actions.pod:287 ../fish/guestfish-actions.pod:207
4319 msgid "C<AUG_SAVE_BACKUP> = 1"
4320 msgstr ""
4321
4322 # type: textblock
4323 #: ../src/guestfs-actions.pod:289 ../fish/guestfish-actions.pod:209
4324 msgid "Keep the original file with a C<.augsave> extension."
4325 msgstr ""
4326
4327 # type: =item
4328 #: ../src/guestfs-actions.pod:291 ../fish/guestfish-actions.pod:211
4329 msgid "C<AUG_SAVE_NEWFILE> = 2"
4330 msgstr ""
4331
4332 # type: textblock
4333 #: ../src/guestfs-actions.pod:293 ../fish/guestfish-actions.pod:213
4334 msgid ""
4335 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4336 "original.  Overrides C<AUG_SAVE_BACKUP>."
4337 msgstr ""
4338
4339 # type: =item
4340 #: ../src/guestfs-actions.pod:296 ../fish/guestfish-actions.pod:216
4341 msgid "C<AUG_TYPE_CHECK> = 4"
4342 msgstr ""
4343
4344 # type: textblock
4345 #: ../src/guestfs-actions.pod:298 ../fish/guestfish-actions.pod:218
4346 msgid "Typecheck lenses (can be expensive)."
4347 msgstr ""
4348
4349 # type: =item
4350 #: ../src/guestfs-actions.pod:300 ../fish/guestfish-actions.pod:220
4351 msgid "C<AUG_NO_STDINC> = 8"
4352 msgstr ""
4353
4354 # type: textblock
4355 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:222
4356 msgid "Do not use standard load path for modules."
4357 msgstr ""
4358
4359 # type: =item
4360 #: ../src/guestfs-actions.pod:304 ../fish/guestfish-actions.pod:224
4361 msgid "C<AUG_SAVE_NOOP> = 16"
4362 msgstr ""
4363
4364 # type: textblock
4365 #: ../src/guestfs-actions.pod:306 ../fish/guestfish-actions.pod:226
4366 msgid "Make save a no-op, just record what would have been changed."
4367 msgstr ""
4368
4369 # type: =item
4370 #: ../src/guestfs-actions.pod:308 ../fish/guestfish-actions.pod:228
4371 msgid "C<AUG_NO_LOAD> = 32"
4372 msgstr ""
4373
4374 # type: textblock
4375 #: ../src/guestfs-actions.pod:310
4376 msgid "Do not load the tree in C<guestfs_aug_init>."
4377 msgstr ""
4378
4379 # type: textblock
4380 #: ../src/guestfs-actions.pod:314
4381 msgid "To close the handle, you can call C<guestfs_aug_close>."
4382 msgstr ""
4383
4384 # type: textblock
4385 #: ../src/guestfs-actions.pod:316 ../fish/guestfish-actions.pod:236
4386 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4387 msgstr ""
4388
4389 # type: =head2
4390 #: ../src/guestfs-actions.pod:320
4391 msgid "guestfs_aug_insert"
4392 msgstr ""
4393
4394 # type: verbatim
4395 #: ../src/guestfs-actions.pod:322
4396 #, no-wrap
4397 msgid ""
4398 " int\n"
4399 " guestfs_aug_insert (guestfs_h *g,\n"
4400 "                     const char *augpath,\n"
4401 "                     const char *label,\n"
4402 "                     int before);\n"
4403 "\n"
4404 msgstr ""
4405
4406 # type: textblock
4407 #: ../src/guestfs-actions.pod:328 ../fish/guestfish-actions.pod:242
4408 msgid ""
4409 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4410 "or after C<path> (depending on the boolean flag C<before>)."
4411 msgstr ""
4412
4413 # type: textblock
4414 #: ../src/guestfs-actions.pod:332 ../fish/guestfish-actions.pod:246
4415 msgid ""
4416 "C<path> must match exactly one existing node in the tree, and C<label> must "
4417 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4418 msgstr ""
4419
4420 # type: =head2
4421 #: ../src/guestfs-actions.pod:338
4422 msgid "guestfs_aug_load"
4423 msgstr ""
4424
4425 # type: verbatim
4426 #: ../src/guestfs-actions.pod:340
4427 #, no-wrap
4428 msgid ""
4429 " int\n"
4430 " guestfs_aug_load (guestfs_h *g);\n"
4431 "\n"
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:254
4436 msgid "Load files into the tree."
4437 msgstr ""
4438
4439 # type: textblock
4440 #: ../src/guestfs-actions.pod:345 ../fish/guestfish-actions.pod:256
4441 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4442 msgstr ""
4443
4444 # type: =head2
4445 #: ../src/guestfs-actions.pod:350
4446 msgid "guestfs_aug_ls"
4447 msgstr ""
4448
4449 # type: verbatim
4450 #: ../src/guestfs-actions.pod:352
4451 #, no-wrap
4452 msgid ""
4453 " char **\n"
4454 " guestfs_aug_ls (guestfs_h *g,\n"
4455 "                 const char *augpath);\n"
4456 "\n"
4457 msgstr ""
4458
4459 # type: textblock
4460 #: ../src/guestfs-actions.pod:356
4461 msgid ""
4462 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4463 "sorting the resulting nodes into alphabetical order."
4464 msgstr ""
4465
4466 # type: textblock
4467 #: ../src/guestfs-actions.pod:359 ../src/guestfs-actions.pod:373 ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:913 ../src/guestfs-actions.pod:1209 ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1319 ../src/guestfs-actions.pod:1336 ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:1961 ../src/guestfs-actions.pod:2000 ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2888 ../src/guestfs-actions.pod:3254 ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5194 ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5342 ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:5784 ../src/guestfs-actions.pod:5825 ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6065 ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6141
4468 msgid ""
4469 "This function returns a NULL-terminated array of strings (like "
4470 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4471 "strings and the array after use>."
4472 msgstr ""
4473
4474 # type: =head2
4475 #: ../src/guestfs-actions.pod:363
4476 msgid "guestfs_aug_match"
4477 msgstr ""
4478
4479 # type: verbatim
4480 #: ../src/guestfs-actions.pod:365
4481 #, no-wrap
4482 msgid ""
4483 " char **\n"
4484 " guestfs_aug_match (guestfs_h *g,\n"
4485 "                    const char *augpath);\n"
4486 "\n"
4487 msgstr ""
4488
4489 # type: textblock
4490 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:270
4491 msgid ""
4492 "Returns a list of paths which match the path expression C<path>.  The "
4493 "returned paths are sufficiently qualified so that they match exactly one "
4494 "node in the current tree."
4495 msgstr ""
4496
4497 # type: =head2
4498 #: ../src/guestfs-actions.pod:377
4499 msgid "guestfs_aug_mv"
4500 msgstr ""
4501
4502 # type: verbatim
4503 #: ../src/guestfs-actions.pod:379
4504 #, no-wrap
4505 msgid ""
4506 " int\n"
4507 " guestfs_aug_mv (guestfs_h *g,\n"
4508 "                 const char *src,\n"
4509 "                 const char *dest);\n"
4510 "\n"
4511 msgstr ""
4512
4513 # type: textblock
4514 #: ../src/guestfs-actions.pod:384 ../fish/guestfish-actions.pod:278
4515 msgid ""
4516 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4517 "C<dest> is overwritten if it exists."
4518 msgstr ""
4519
4520 # type: =head2
4521 #: ../src/guestfs-actions.pod:389
4522 msgid "guestfs_aug_rm"
4523 msgstr ""
4524
4525 # type: verbatim
4526 #: ../src/guestfs-actions.pod:391
4527 #, no-wrap
4528 msgid ""
4529 " int\n"
4530 " guestfs_aug_rm (guestfs_h *g,\n"
4531 "                 const char *augpath);\n"
4532 "\n"
4533 msgstr ""
4534
4535 # type: textblock
4536 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:285
4537 msgid "Remove C<path> and all of its children."
4538 msgstr ""
4539
4540 # type: textblock
4541 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:287
4542 msgid "On success this returns the number of entries which were removed."
4543 msgstr ""
4544
4545 # type: =head2
4546 #: ../src/guestfs-actions.pod:401
4547 msgid "guestfs_aug_save"
4548 msgstr ""
4549
4550 # type: verbatim
4551 #: ../src/guestfs-actions.pod:403
4552 #, no-wrap
4553 msgid ""
4554 " int\n"
4555 " guestfs_aug_save (guestfs_h *g);\n"
4556 "\n"
4557 msgstr ""
4558
4559 # type: textblock
4560 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:293
4561 msgid "This writes all pending changes to disk."
4562 msgstr ""
4563
4564 # type: textblock
4565 #: ../src/guestfs-actions.pod:408
4566 msgid ""
4567 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4568 "are saved."
4569 msgstr ""
4570
4571 # type: =head2
4572 #: ../src/guestfs-actions.pod:413
4573 msgid "guestfs_aug_set"
4574 msgstr ""
4575
4576 # type: verbatim
4577 #: ../src/guestfs-actions.pod:415
4578 #, no-wrap
4579 msgid ""
4580 " int\n"
4581 " guestfs_aug_set (guestfs_h *g,\n"
4582 "                  const char *augpath,\n"
4583 "                  const char *val);\n"
4584 "\n"
4585 msgstr ""
4586
4587 # type: textblock
4588 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:302
4589 msgid "Set the value associated with C<path> to C<val>."
4590 msgstr ""
4591
4592 # type: textblock
4593 #: ../src/guestfs-actions.pod:422
4594 msgid ""
4595 "In the Augeas API, it is possible to clear a node by setting the value to "
4596 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4597 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4598 msgstr ""
4599
4600 # type: =head2
4601 #: ../src/guestfs-actions.pod:429
4602 msgid "guestfs_available"
4603 msgstr ""
4604
4605 # type: verbatim
4606 #: ../src/guestfs-actions.pod:431
4607 #, no-wrap
4608 msgid ""
4609 " int\n"
4610 " guestfs_available (guestfs_h *g,\n"
4611 "                    char *const *groups);\n"
4612 "\n"
4613 msgstr ""
4614
4615 # type: textblock
4616 #: ../src/guestfs-actions.pod:435 ../fish/guestfish-actions.pod:313
4617 msgid ""
4618 "This command is used to check the availability of some groups of "
4619 "functionality in the appliance, which not all builds of the libguestfs "
4620 "appliance will be able to provide."
4621 msgstr ""
4622
4623 # type: textblock
4624 #: ../src/guestfs-actions.pod:439
4625 msgid ""
4626 "The libguestfs groups, and the functions that those groups correspond to, "
4627 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4628 "runtime by calling C<guestfs_available_all_groups>."
4629 msgstr ""
4630
4631 # type: textblock
4632 #: ../src/guestfs-actions.pod:444 ../fish/guestfish-actions.pod:322
4633 msgid ""
4634 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4635 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4636 "and Augeas (configuration file editing) functions."
4637 msgstr ""
4638
4639 # type: textblock
4640 #: ../src/guestfs-actions.pod:449 ../fish/guestfish-actions.pod:327
4641 msgid "The command returns no error if I<all> requested groups are available."
4642 msgstr ""
4643
4644 # type: textblock
4645 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:329
4646 msgid ""
4647 "It fails with an error if one or more of the requested groups is unavailable "
4648 "in the appliance."
4649 msgstr ""
4650
4651 # type: textblock
4652 #: ../src/guestfs-actions.pod:454 ../fish/guestfish-actions.pod:332
4653 msgid ""
4654 "If an unknown group name is included in the list of groups then an error is "
4655 "always returned."
4656 msgstr ""
4657
4658 # type: textblock
4659 #: ../src/guestfs-actions.pod:457 ../fish/guestfish-actions.pod:335
4660 msgid "I<Notes:>"
4661 msgstr ""
4662
4663 # type: textblock
4664 #: ../src/guestfs-actions.pod:463
4665 msgid "You must call C<guestfs_launch> before calling this function."
4666 msgstr ""
4667
4668 # type: textblock
4669 #: ../src/guestfs-actions.pod:465 ../fish/guestfish-actions.pod:343
4670 msgid ""
4671 "The reason is because we don't know what groups are supported by the "
4672 "appliance/daemon until it is running and can be queried."
4673 msgstr ""
4674
4675 # type: textblock
4676 #: ../src/guestfs-actions.pod:471 ../fish/guestfish-actions.pod:349
4677 msgid ""
4678 "If a group of functions is available, this does not necessarily mean that "
4679 "they will work.  You still have to check for errors when calling individual "
4680 "API functions even if they are available."
4681 msgstr ""
4682
4683 # type: textblock
4684 #: ../src/guestfs-actions.pod:478 ../fish/guestfish-actions.pod:356
4685 msgid ""
4686 "It is usually the job of distro packagers to build complete functionality "
4687 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4688 "with all requirements satisfied, will support everything."
4689 msgstr ""
4690
4691 # type: textblock
4692 #: ../src/guestfs-actions.pod:485
4693 msgid ""
4694 "This call was added in version C<1.0.80>.  In previous versions of "
4695 "libguestfs all you could do would be to speculatively execute a command to "
4696 "find out if the daemon implemented it.  See also C<guestfs_version>."
4697 msgstr ""
4698
4699 # type: =head2
4700 #: ../src/guestfs-actions.pod:494
4701 msgid "guestfs_available_all_groups"
4702 msgstr ""
4703
4704 # type: verbatim
4705 #: ../src/guestfs-actions.pod:496
4706 #, no-wrap
4707 msgid ""
4708 " char **\n"
4709 " guestfs_available_all_groups (guestfs_h *g);\n"
4710 "\n"
4711 msgstr ""
4712
4713 # type: textblock
4714 #: ../src/guestfs-actions.pod:499
4715 msgid ""
4716 "This command returns a list of all optional groups that this daemon knows "
4717 "about.  Note this returns both supported and unsupported groups.  To find "
4718 "out which ones the daemon can actually support you have to call "
4719 "C<guestfs_available> on each member of the returned list."
4720 msgstr ""
4721
4722 # type: textblock
4723 #: ../src/guestfs-actions.pod:505
4724 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4725 msgstr ""
4726
4727 # type: =head2
4728 #: ../src/guestfs-actions.pod:511
4729 msgid "guestfs_base64_in"
4730 msgstr ""
4731
4732 # type: verbatim
4733 #: ../src/guestfs-actions.pod:513
4734 #, no-wrap
4735 msgid ""
4736 " int\n"
4737 " guestfs_base64_in (guestfs_h *g,\n"
4738 "                    const char *base64file,\n"
4739 "                    const char *filename);\n"
4740 "\n"
4741 msgstr ""
4742
4743 # type: textblock
4744 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:386
4745 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4746 msgstr ""
4747
4748 # type: =head2
4749 #: ../src/guestfs-actions.pod:523
4750 msgid "guestfs_base64_out"
4751 msgstr ""
4752
4753 # type: verbatim
4754 #: ../src/guestfs-actions.pod:525
4755 #, no-wrap
4756 msgid ""
4757 " int\n"
4758 " guestfs_base64_out (guestfs_h *g,\n"
4759 "                     const char *filename,\n"
4760 "                     const char *base64file);\n"
4761 "\n"
4762 msgstr ""
4763
4764 # type: textblock
4765 #: ../src/guestfs-actions.pod:530 ../fish/guestfish-actions.pod:395
4766 msgid ""
4767 "This command downloads the contents of C<filename>, writing it out to local "
4768 "file C<base64file> encoded as base64."
4769 msgstr ""
4770
4771 # type: =head2
4772 #: ../src/guestfs-actions.pod:535
4773 msgid "guestfs_blockdev_flushbufs"
4774 msgstr ""
4775
4776 # type: verbatim
4777 #: ../src/guestfs-actions.pod:537
4778 #, no-wrap
4779 msgid ""
4780 " int\n"
4781 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4782 "                             const char *device);\n"
4783 "\n"
4784 msgstr ""
4785
4786 # type: textblock
4787 #: ../src/guestfs-actions.pod:541 ../fish/guestfish-actions.pod:404
4788 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4789 msgstr ""
4790
4791 # type: textblock
4792 #: ../src/guestfs-actions.pod:544 ../src/guestfs-actions.pod:559 ../src/guestfs-actions.pod:572 ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:659 ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418 ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462 ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481 ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
4793 msgid "This uses the L<blockdev(8)> command."
4794 msgstr ""
4795
4796 # type: =head2
4797 #: ../src/guestfs-actions.pod:548
4798 msgid "guestfs_blockdev_getbsz"
4799 msgstr ""
4800
4801 # type: verbatim
4802 #: ../src/guestfs-actions.pod:550
4803 #, no-wrap
4804 msgid ""
4805 " int\n"
4806 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
4807 "                          const char *device);\n"
4808 "\n"
4809 msgstr ""
4810
4811 # type: textblock
4812 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:413
4813 msgid "This returns the block size of a device."
4814 msgstr ""
4815
4816 # type: textblock
4817 #: ../src/guestfs-actions.pod:556 ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4818 msgid ""
4819 "(Note this is different from both I<size in blocks> and I<filesystem block "
4820 "size>)."
4821 msgstr ""
4822
4823 # type: =head2
4824 #: ../src/guestfs-actions.pod:563
4825 msgid "guestfs_blockdev_getro"
4826 msgstr ""
4827
4828 # type: verbatim
4829 #: ../src/guestfs-actions.pod:565
4830 #, no-wrap
4831 msgid ""
4832 " int\n"
4833 " guestfs_blockdev_getro (guestfs_h *g,\n"
4834 "                         const char *device);\n"
4835 "\n"
4836 msgstr ""
4837
4838 # type: textblock
4839 #: ../src/guestfs-actions.pod:569 ../fish/guestfish-actions.pod:424
4840 msgid ""
4841 "Returns a boolean indicating if the block device is read-only (true if "
4842 "read-only, false if not)."
4843 msgstr ""
4844
4845 # type: textblock
4846 #: ../src/guestfs-actions.pod:574 ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1258 ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1715 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:2569 ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:2622 ../src/guestfs-actions.pod:2633 ../src/guestfs-actions.pod:2645 ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2671 ../src/guestfs-actions.pod:3941
4847 msgid "This function returns a C truth value on success or -1 on error."
4848 msgstr ""
4849
4850 # type: =head2
4851 #: ../src/guestfs-actions.pod:576
4852 msgid "guestfs_blockdev_getsize64"
4853 msgstr ""
4854
4855 # type: verbatim
4856 #: ../src/guestfs-actions.pod:578
4857 #, no-wrap
4858 msgid ""
4859 " int64_t\n"
4860 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4861 "                             const char *device);\n"
4862 "\n"
4863 msgstr ""
4864
4865 # type: textblock
4866 #: ../src/guestfs-actions.pod:582 ../fish/guestfish-actions.pod:433
4867 msgid "This returns the size of the device in bytes."
4868 msgstr ""
4869
4870 # type: textblock
4871 #: ../src/guestfs-actions.pod:584
4872 msgid "See also C<guestfs_blockdev_getsz>."
4873 msgstr ""
4874
4875 # type: =head2
4876 #: ../src/guestfs-actions.pod:590
4877 msgid "guestfs_blockdev_getss"
4878 msgstr ""
4879
4880 # type: verbatim
4881 #: ../src/guestfs-actions.pod:592
4882 #, no-wrap
4883 msgid ""
4884 " int\n"
4885 " guestfs_blockdev_getss (guestfs_h *g,\n"
4886 "                         const char *device);\n"
4887 "\n"
4888 msgstr ""
4889
4890 # type: textblock
4891 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:443
4892 msgid ""
4893 "This returns the size of sectors on a block device.  Usually 512, but can be "
4894 "larger for modern devices."
4895 msgstr ""
4896
4897 # type: textblock
4898 #: ../src/guestfs-actions.pod:599
4899 msgid ""
4900 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
4901 "that)."
4902 msgstr ""
4903
4904 # type: =head2
4905 #: ../src/guestfs-actions.pod:606
4906 msgid "guestfs_blockdev_getsz"
4907 msgstr ""
4908
4909 # type: verbatim
4910 #: ../src/guestfs-actions.pod:608
4911 #, no-wrap
4912 msgid ""
4913 " int64_t\n"
4914 " guestfs_blockdev_getsz (guestfs_h *g,\n"
4915 "                         const char *device);\n"
4916 "\n"
4917 msgstr ""
4918
4919 # type: textblock
4920 #: ../src/guestfs-actions.pod:612 ../fish/guestfish-actions.pod:455
4921 msgid ""
4922 "This returns the size of the device in units of 512-byte sectors (even if "
4923 "the sectorsize isn't 512 bytes ... weird)."
4924 msgstr ""
4925
4926 # type: textblock
4927 #: ../src/guestfs-actions.pod:615
4928 msgid ""
4929 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
4930 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
4931 msgstr ""
4932
4933 # type: =head2
4934 #: ../src/guestfs-actions.pod:623
4935 msgid "guestfs_blockdev_rereadpt"
4936 msgstr ""
4937
4938 # type: verbatim
4939 #: ../src/guestfs-actions.pod:625
4940 #, no-wrap
4941 msgid ""
4942 " int\n"
4943 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
4944 "                            const char *device);\n"
4945 "\n"
4946 msgstr ""
4947
4948 # type: textblock
4949 #: ../src/guestfs-actions.pod:629 ../fish/guestfish-actions.pod:468
4950 msgid "Reread the partition table on C<device>."
4951 msgstr ""
4952
4953 # type: =head2
4954 #: ../src/guestfs-actions.pod:635
4955 msgid "guestfs_blockdev_setbsz"
4956 msgstr ""
4957
4958 # type: verbatim
4959 #: ../src/guestfs-actions.pod:637
4960 #, no-wrap
4961 msgid ""
4962 " int\n"
4963 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
4964 "                          const char *device,\n"
4965 "                          int blocksize);\n"
4966 "\n"
4967 msgstr ""
4968
4969 # type: textblock
4970 #: ../src/guestfs-actions.pod:642 ../fish/guestfish-actions.pod:476
4971 msgid "This sets the block size of a device."
4972 msgstr ""
4973
4974 # type: =head2
4975 #: ../src/guestfs-actions.pod:651
4976 msgid "guestfs_blockdev_setro"
4977 msgstr ""
4978
4979 # type: verbatim
4980 #: ../src/guestfs-actions.pod:653
4981 #, no-wrap
4982 msgid ""
4983 " int\n"
4984 " guestfs_blockdev_setro (guestfs_h *g,\n"
4985 "                         const char *device);\n"
4986 "\n"
4987 msgstr ""
4988
4989 # type: textblock
4990 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:487
4991 msgid "Sets the block device named C<device> to read-only."
4992 msgstr ""
4993
4994 # type: =head2
4995 #: ../src/guestfs-actions.pod:663
4996 msgid "guestfs_blockdev_setrw"
4997 msgstr ""
4998
4999 # type: verbatim
5000 #: ../src/guestfs-actions.pod:665
5001 #, no-wrap
5002 msgid ""
5003 " int\n"
5004 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5005 "                         const char *device);\n"
5006 "\n"
5007 msgstr ""
5008
5009 # type: textblock
5010 #: ../src/guestfs-actions.pod:669 ../fish/guestfish-actions.pod:495
5011 msgid "Sets the block device named C<device> to read-write."
5012 msgstr ""
5013
5014 # type: =head2
5015 #: ../src/guestfs-actions.pod:675
5016 msgid "guestfs_case_sensitive_path"
5017 msgstr ""
5018
5019 # type: verbatim
5020 #: ../src/guestfs-actions.pod:677
5021 #, no-wrap
5022 msgid ""
5023 " char *\n"
5024 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5025 "                              const char *path);\n"
5026 "\n"
5027 msgstr ""
5028
5029 # type: textblock
5030 #: ../src/guestfs-actions.pod:681 ../fish/guestfish-actions.pod:503
5031 msgid ""
5032 "This can be used to resolve case insensitive paths on a filesystem which is "
5033 "case sensitive.  The use case is to resolve paths which you have read from "
5034 "Windows configuration files or the Windows Registry, to the true path."
5035 msgstr ""
5036
5037 # type: textblock
5038 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:508
5039 msgid ""
5040 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5041 "(and probably others), which is that although the underlying filesystem is "
5042 "case-insensitive, the driver exports the filesystem to Linux as "
5043 "case-sensitive."
5044 msgstr ""
5045
5046 # type: textblock
5047 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:513
5048 msgid ""
5049 "One consequence of this is that special directories such as C<c:\\windows> "
5050 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5051 "precise details of how they were created.  In Windows itself this would not "
5052 "be a problem."
5053 msgstr ""
5054
5055 # type: textblock
5056 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:519
5057 msgid ""
5058 "Bug or feature? You decide: "
5059 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5060 msgstr ""
5061
5062 # type: textblock
5063 #: ../src/guestfs-actions.pod:700 ../fish/guestfish-actions.pod:522
5064 msgid ""
5065 "This function resolves the true case of each element in the path and returns "
5066 "the case-sensitive path."
5067 msgstr ""
5068
5069 # type: textblock
5070 #: ../src/guestfs-actions.pod:703
5071 msgid ""
5072 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5073 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5074 "how the directories were originally created under Windows)."
5075 msgstr ""
5076
5077 # type: textblock
5078 #: ../src/guestfs-actions.pod:708 ../fish/guestfish-actions.pod:530
5079 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5080 msgstr ""
5081
5082 # type: textblock
5083 #: ../src/guestfs-actions.pod:711
5084 msgid "See also C<guestfs_realpath>."
5085 msgstr ""
5086
5087 # type: =head2
5088 #: ../src/guestfs-actions.pod:716
5089 msgid "guestfs_cat"
5090 msgstr ""
5091
5092 # type: verbatim
5093 #: ../src/guestfs-actions.pod:718
5094 #, no-wrap
5095 msgid ""
5096 " char *\n"
5097 " guestfs_cat (guestfs_h *g,\n"
5098 "              const char *path);\n"
5099 "\n"
5100 msgstr ""
5101
5102 # type: textblock
5103 #: ../src/guestfs-actions.pod:722 ../src/guestfs-actions.pod:4386 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3197
5104 msgid "Return the contents of the file named C<path>."
5105 msgstr ""
5106
5107 # type: textblock
5108 #: ../src/guestfs-actions.pod:724
5109 msgid ""
5110 "Note that this function cannot correctly handle binary files (specifically, "
5111 "files containing C<\\0> character which is treated as end of string).  For "
5112 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5113 "functions which have a more complex interface."
5114 msgstr ""
5115
5116 # type: textblock
5117 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:899 ../src/guestfs-actions.pod:917 ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:1230 ../src/guestfs-actions.pod:1323 ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2026 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5951 ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6069 ../src/guestfs-actions.pod:6086 ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6145 ../fish/guestfish-actions.pod:546 ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904 ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981 ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451 ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489 ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514 ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3067 ../fish/guestfish-actions.pod:3082 ../fish/guestfish-actions.pod:3158 ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3190 ../fish/guestfish-actions.pod:3773 ../fish/guestfish-actions.pod:3819 ../fish/guestfish-actions.pod:3904 ../fish/guestfish-actions.pod:3919 ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4347 ../fish/guestfish-actions.pod:4364 ../fish/guestfish-actions.pod:4374 ../fish/guestfish-actions.pod:4422 ../fish/guestfish-actions.pod:4432 ../fish/guestfish-actions.pod:4461 ../fish/guestfish-actions.pod:4471
5118 msgid ""
5119 "Because of the message protocol, there is a transfer limit of somewhere "
5120 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5121 msgstr ""
5122
5123 # type: =head2
5124 #: ../src/guestfs-actions.pod:735
5125 msgid "guestfs_checksum"
5126 msgstr ""
5127
5128 # type: verbatim
5129 #: ../src/guestfs-actions.pod:737
5130 #, no-wrap
5131 msgid ""
5132 " char *\n"
5133 " guestfs_checksum (guestfs_h *g,\n"
5134 "                   const char *csumtype,\n"
5135 "                   const char *path);\n"
5136 "\n"
5137 msgstr ""
5138
5139 # type: textblock
5140 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:553
5141 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5142 msgstr ""
5143
5144 # type: textblock
5145 #: ../src/guestfs-actions.pod:745 ../fish/guestfish-actions.pod:556
5146 msgid ""
5147 "The type of checksum to compute is given by the C<csumtype> parameter which "
5148 "must have one of the following values:"
5149 msgstr ""
5150
5151 # type: =item
5152 #: ../src/guestfs-actions.pod:750 ../fish/guestfish-actions.pod:561
5153 msgid "C<crc>"
5154 msgstr ""
5155
5156 # type: textblock
5157 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:563
5158 msgid ""
5159 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5160 "C<cksum> command."
5161 msgstr ""
5162
5163 # type: =item
5164 #: ../src/guestfs-actions.pod:755 ../fish/guestfish-actions.pod:566
5165 msgid "C<md5>"
5166 msgstr ""
5167
5168 # type: textblock
5169 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:568
5170 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5171 msgstr ""
5172
5173 # type: =item
5174 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:570
5175 msgid "C<sha1>"
5176 msgstr ""
5177
5178 # type: textblock
5179 #: ../src/guestfs-actions.pod:761 ../fish/guestfish-actions.pod:572
5180 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5181 msgstr ""
5182
5183 # type: =item
5184 #: ../src/guestfs-actions.pod:763 ../fish/guestfish-actions.pod:574
5185 msgid "C<sha224>"
5186 msgstr ""
5187
5188 # type: textblock
5189 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:576
5190 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5191 msgstr ""
5192
5193 # type: =item
5194 #: ../src/guestfs-actions.pod:767 ../fish/guestfish-actions.pod:578
5195 msgid "C<sha256>"
5196 msgstr ""
5197
5198 # type: textblock
5199 #: ../src/guestfs-actions.pod:769 ../fish/guestfish-actions.pod:580
5200 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5201 msgstr ""
5202
5203 # type: =item
5204 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:582
5205 msgid "C<sha384>"
5206 msgstr ""
5207
5208 # type: textblock
5209 #: ../src/guestfs-actions.pod:773 ../fish/guestfish-actions.pod:584
5210 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5211 msgstr ""
5212
5213 # type: =item
5214 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:586
5215 msgid "C<sha512>"
5216 msgstr ""
5217
5218 # type: textblock
5219 #: ../src/guestfs-actions.pod:777 ../fish/guestfish-actions.pod:588
5220 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5221 msgstr ""
5222
5223 # type: textblock
5224 #: ../src/guestfs-actions.pod:781 ../fish/guestfish-actions.pod:592
5225 msgid "The checksum is returned as a printable string."
5226 msgstr ""
5227
5228 # type: textblock
5229 #: ../src/guestfs-actions.pod:783
5230 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5231 msgstr ""
5232
5233 # type: textblock
5234 #: ../src/guestfs-actions.pod:785
5235 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5236 msgstr ""
5237
5238 # type: =head2
5239 #: ../src/guestfs-actions.pod:790
5240 msgid "guestfs_checksum_device"
5241 msgstr ""
5242
5243 # type: verbatim
5244 #: ../src/guestfs-actions.pod:792
5245 #, no-wrap
5246 msgid ""
5247 " char *\n"
5248 " guestfs_checksum_device (guestfs_h *g,\n"
5249 "                          const char *csumtype,\n"
5250 "                          const char *device);\n"
5251 "\n"
5252 msgstr ""
5253
5254 # type: textblock
5255 #: ../src/guestfs-actions.pod:797
5256 msgid ""
5257 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5258 "device named C<device>.  For the types of checksums supported see the "
5259 "C<guestfs_checksum> command."
5260 msgstr ""
5261
5262 # type: =head2
5263 #: ../src/guestfs-actions.pod:804
5264 msgid "guestfs_checksums_out"
5265 msgstr ""
5266
5267 # type: verbatim
5268 #: ../src/guestfs-actions.pod:806
5269 #, no-wrap
5270 msgid ""
5271 " int\n"
5272 " guestfs_checksums_out (guestfs_h *g,\n"
5273 "                        const char *csumtype,\n"
5274 "                        const char *directory,\n"
5275 "                        const char *sumsfile);\n"
5276 "\n"
5277 msgstr ""
5278
5279 # type: textblock
5280 #: ../src/guestfs-actions.pod:812 ../fish/guestfish-actions.pod:610
5281 msgid ""
5282 "This command computes the checksums of all regular files in C<directory> and "
5283 "then emits a list of those checksums to the local output file C<sumsfile>."
5284 msgstr ""
5285
5286 # type: textblock
5287 #: ../src/guestfs-actions.pod:816 ../fish/guestfish-actions.pod:614
5288 msgid ""
5289 "This can be used for verifying the integrity of a virtual machine.  However "
5290 "to be properly secure you should pay attention to the output of the checksum "
5291 "command (it uses the ones from GNU coreutils).  In particular when the "
5292 "filename is not printable, coreutils uses a special backslash syntax.  For "
5293 "more information, see the GNU coreutils info file."
5294 msgstr ""
5295
5296 # type: =head2
5297 #: ../src/guestfs-actions.pod:826
5298 msgid "guestfs_chmod"
5299 msgstr ""
5300
5301 # type: verbatim
5302 #: ../src/guestfs-actions.pod:828
5303 #, no-wrap
5304 msgid ""
5305 " int\n"
5306 " guestfs_chmod (guestfs_h *g,\n"
5307 "                int mode,\n"
5308 "                const char *path);\n"
5309 "\n"
5310 msgstr ""
5311
5312 # type: textblock
5313 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:628
5314 msgid ""
5315 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5316 "supported."
5317 msgstr ""
5318
5319 # type: textblock
5320 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:631
5321 msgid ""
5322 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5323 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5324 "C<700>."
5325 msgstr ""
5326
5327 # type: textblock
5328 #: ../src/guestfs-actions.pod:840 ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3607 ../src/guestfs-actions.pod:3624 ../fish/guestfish-actions.pod:635 ../fish/guestfish-actions.pod:2557 ../fish/guestfish-actions.pod:2642 ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2662
5329 msgid "The mode actually set is affected by the umask."
5330 msgstr ""
5331
5332 # type: =head2
5333 #: ../src/guestfs-actions.pod:844
5334 msgid "guestfs_chown"
5335 msgstr ""
5336
5337 # type: verbatim
5338 #: ../src/guestfs-actions.pod:846
5339 #, no-wrap
5340 msgid ""
5341 " int\n"
5342 " guestfs_chown (guestfs_h *g,\n"
5343 "                int owner,\n"
5344 "                int group,\n"
5345 "                const char *path);\n"
5346 "\n"
5347 msgstr ""
5348
5349 # type: textblock
5350 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:641
5351 msgid "Change the file owner to C<owner> and group to C<group>."
5352 msgstr ""
5353
5354 # type: textblock
5355 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2035
5356 msgid ""
5357 "Only numeric uid and gid are supported.  If you want to use names, you will "
5358 "need to locate and parse the password file yourself (Augeas support makes "
5359 "this relatively easy)."
5360 msgstr ""
5361
5362 # type: =head2
5363 #: ../src/guestfs-actions.pod:860
5364 msgid "guestfs_command"
5365 msgstr ""
5366
5367 # type: verbatim
5368 #: ../src/guestfs-actions.pod:862
5369 #, no-wrap
5370 msgid ""
5371 " char *\n"
5372 " guestfs_command (guestfs_h *g,\n"
5373 "                  char *const *arguments);\n"
5374 "\n"
5375 msgstr ""
5376
5377 # type: textblock
5378 #: ../src/guestfs-actions.pod:866 ../fish/guestfish-actions.pod:651
5379 msgid ""
5380 "This call runs a command from the guest filesystem.  The filesystem must be "
5381 "mounted, and must contain a compatible operating system (ie. something "
5382 "Linux, with the same or compatible processor architecture)."
5383 msgstr ""
5384
5385 # type: textblock
5386 #: ../src/guestfs-actions.pod:871
5387 msgid ""
5388 "The single parameter is an argv-style list of arguments.  The first element "
5389 "is the name of the program to run.  Subsequent elements are parameters.  The "
5390 "list must be non-empty (ie. must contain a program name).  Note that the "
5391 "command runs directly, and is I<not> invoked via the shell (see "
5392 "C<guestfs_sh>)."
5393 msgstr ""
5394
5395 # type: textblock
5396 #: ../src/guestfs-actions.pod:878 ../fish/guestfish-actions.pod:663
5397 msgid "The return value is anything printed to I<stdout> by the command."
5398 msgstr ""
5399
5400 # type: textblock
5401 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:666
5402 msgid ""
5403 "If the command returns a non-zero exit status, then this function returns an "
5404 "error message.  The error message string is the content of I<stderr> from "
5405 "the command."
5406 msgstr ""
5407
5408 # type: textblock
5409 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:670
5410 msgid ""
5411 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5412 "C</bin>.  If you require a program from another location, you should provide "
5413 "the full path in the first parameter."
5414 msgstr ""
5415
5416 # type: textblock
5417 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:675
5418 msgid ""
5419 "Shared libraries and data files required by the program must be available on "
5420 "filesystems which are mounted in the correct places.  It is the caller's "
5421 "responsibility to ensure all filesystems that are needed are mounted at the "
5422 "right locations."
5423 msgstr ""
5424
5425 # type: =head2
5426 #: ../src/guestfs-actions.pod:902
5427 msgid "guestfs_command_lines"
5428 msgstr ""
5429
5430 # type: verbatim
5431 #: ../src/guestfs-actions.pod:904
5432 #, no-wrap
5433 msgid ""
5434 " char **\n"
5435 " guestfs_command_lines (guestfs_h *g,\n"
5436 "                        char *const *arguments);\n"
5437 "\n"
5438 msgstr ""
5439
5440 # type: textblock
5441 #: ../src/guestfs-actions.pod:908
5442 msgid ""
5443 "This is the same as C<guestfs_command>, but splits the result into a list of "
5444 "lines."
5445 msgstr ""
5446
5447 # type: textblock
5448 #: ../src/guestfs-actions.pod:911
5449 msgid "See also: C<guestfs_sh_lines>"
5450 msgstr ""
5451
5452 # type: =head2
5453 #: ../src/guestfs-actions.pod:920
5454 msgid "guestfs_config"
5455 msgstr ""
5456
5457 # type: verbatim
5458 #: ../src/guestfs-actions.pod:922
5459 #, no-wrap
5460 msgid ""
5461 " int\n"
5462 " guestfs_config (guestfs_h *g,\n"
5463 "                 const char *qemuparam,\n"
5464 "                 const char *qemuvalue);\n"
5465 "\n"
5466 msgstr ""
5467
5468 # type: textblock
5469 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:700
5470 msgid ""
5471 "This can be used to add arbitrary qemu command line parameters of the form "
5472 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5473 "setting some parameters which would interfere with parameters that we use."
5474 msgstr ""
5475
5476 # type: textblock
5477 #: ../src/guestfs-actions.pod:932 ../fish/guestfish-actions.pod:705
5478 msgid "The first character of C<param> string must be a C<-> (dash)."
5479 msgstr ""
5480
5481 # type: textblock
5482 #: ../src/guestfs-actions.pod:934 ../fish/guestfish-actions.pod:707
5483 msgid "C<value> can be NULL."
5484 msgstr ""
5485
5486 # type: =head2
5487 #: ../src/guestfs-actions.pod:938
5488 msgid "guestfs_copy_size"
5489 msgstr ""
5490
5491 # type: verbatim
5492 #: ../src/guestfs-actions.pod:940
5493 #, no-wrap
5494 msgid ""
5495 " int\n"
5496 " guestfs_copy_size (guestfs_h *g,\n"
5497 "                    const char *src,\n"
5498 "                    const char *dest,\n"
5499 "                    int64_t size);\n"
5500 "\n"
5501 msgstr ""
5502
5503 # type: textblock
5504 #: ../src/guestfs-actions.pod:946 ../fish/guestfish-actions.pod:713
5505 msgid ""
5506 "This command copies exactly C<size> bytes from one source device or file "
5507 "C<src> to another destination device or file C<dest>."
5508 msgstr ""
5509
5510 # type: textblock
5511 #: ../src/guestfs-actions.pod:949 ../fish/guestfish-actions.pod:716
5512 msgid ""
5513 "Note this will fail if the source is too short or if the destination is not "
5514 "large enough."
5515 msgstr ""
5516
5517 # type: textblock
5518 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1098 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1515 ../src/guestfs-actions.pod:1535 ../src/guestfs-actions.pod:6011 ../src/guestfs-actions.pod:6028
5519 msgid ""
5520 "This long-running command can generate progress notification messages so "
5521 "that the caller can display a progress bar or indicator.  To receive these "
5522 "messages, the caller must register a progress callback.  See "
5523 "L<guestfs(3)/guestfs_set_progress_callback>."
5524 msgstr ""
5525
5526 # type: =head2
5527 #: ../src/guestfs-actions.pod:959
5528 msgid "guestfs_cp"
5529 msgstr ""
5530
5531 # type: verbatim
5532 #: ../src/guestfs-actions.pod:961
5533 #, no-wrap
5534 msgid ""
5535 " int\n"
5536 " guestfs_cp (guestfs_h *g,\n"
5537 "             const char *src,\n"
5538 "             const char *dest);\n"
5539 "\n"
5540 msgstr ""
5541
5542 # type: textblock
5543 #: ../src/guestfs-actions.pod:966 ../fish/guestfish-actions.pod:723
5544 msgid ""
5545 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5546 "destination filename or destination directory."
5547 msgstr ""
5548
5549 # type: =head2
5550 #: ../src/guestfs-actions.pod:971
5551 msgid "guestfs_cp_a"
5552 msgstr ""
5553
5554 # type: verbatim
5555 #: ../src/guestfs-actions.pod:973
5556 #, no-wrap
5557 msgid ""
5558 " int\n"
5559 " guestfs_cp_a (guestfs_h *g,\n"
5560 "               const char *src,\n"
5561 "               const char *dest);\n"
5562 "\n"
5563 msgstr ""
5564
5565 # type: textblock
5566 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:730
5567 msgid ""
5568 "This copies a file or directory from C<src> to C<dest> recursively using the "
5569 "C<cp -a> command."
5570 msgstr ""
5571
5572 # type: =head2
5573 #: ../src/guestfs-actions.pod:983
5574 msgid "guestfs_dd"
5575 msgstr ""
5576
5577 # type: verbatim
5578 #: ../src/guestfs-actions.pod:985
5579 #, no-wrap
5580 msgid ""
5581 " int\n"
5582 " guestfs_dd (guestfs_h *g,\n"
5583 "             const char *src,\n"
5584 "             const char *dest);\n"
5585 "\n"
5586 msgstr ""
5587
5588 # type: textblock
5589 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:737
5590 msgid ""
5591 "This command copies from one source device or file C<src> to another "
5592 "destination device or file C<dest>.  Normally you would use this to copy to "
5593 "or from a device or partition, for example to duplicate a filesystem."
5594 msgstr ""
5595
5596 # type: textblock
5597 #: ../src/guestfs-actions.pod:995
5598 msgid ""
5599 "If the destination is a device, it must be as large or larger than the "
5600 "source file or device, otherwise the copy will fail.  This command cannot do "
5601 "partial copies (see C<guestfs_copy_size>)."
5602 msgstr ""
5603
5604 # type: =head2
5605 #: ../src/guestfs-actions.pod:1001
5606 msgid "guestfs_debug"
5607 msgstr ""
5608
5609 # type: verbatim
5610 #: ../src/guestfs-actions.pod:1003
5611 #, no-wrap
5612 msgid ""
5613 " char *\n"
5614 " guestfs_debug (guestfs_h *g,\n"
5615 "                const char *subcmd,\n"
5616 "                char *const *extraargs);\n"
5617 "\n"
5618 msgstr ""
5619
5620 # type: textblock
5621 #: ../src/guestfs-actions.pod:1008
5622 msgid ""
5623 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5624 "guestfs daemon) that runs inside the qemu subprocess."
5625 msgstr ""
5626
5627 # type: textblock
5628 #: ../src/guestfs-actions.pod:1012 ../fish/guestfish-actions.pod:754
5629 msgid ""
5630 "There is no comprehensive help for this command.  You have to look at the "
5631 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5632 msgstr ""
5633
5634 # type: =head2
5635 #: ../src/guestfs-actions.pod:1019
5636 msgid "guestfs_debug_upload"
5637 msgstr ""
5638
5639 # type: verbatim
5640 #: ../src/guestfs-actions.pod:1021
5641 #, no-wrap
5642 msgid ""
5643 " int\n"
5644 " guestfs_debug_upload (guestfs_h *g,\n"
5645 "                       const char *filename,\n"
5646 "                       const char *tmpname,\n"
5647 "                       int mode);\n"
5648 "\n"
5649 msgstr ""
5650
5651 # type: textblock
5652 #: ../src/guestfs-actions.pod:1027
5653 msgid ""
5654 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5655 "appliance."
5656 msgstr ""
5657
5658 # type: textblock
5659 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:765
5660 msgid ""
5661 "There is no comprehensive help for this command.  You have to look at the "
5662 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5663 msgstr ""
5664
5665 # type: =head2
5666 #: ../src/guestfs-actions.pod:1036
5667 msgid "guestfs_df"
5668 msgstr ""
5669
5670 # type: verbatim
5671 #: ../src/guestfs-actions.pod:1038
5672 #, no-wrap
5673 msgid ""
5674 " char *\n"
5675 " guestfs_df (guestfs_h *g);\n"
5676 "\n"
5677 msgstr ""
5678
5679 # type: textblock
5680 #: ../src/guestfs-actions.pod:1041 ../fish/guestfish-actions.pod:775
5681 msgid "This command runs the C<df> command to report disk space used."
5682 msgstr ""
5683
5684 # type: textblock
5685 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:1058 ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5686 msgid ""
5687 "This command is mostly useful for interactive sessions.  It is I<not> "
5688 "intended that you try to parse the output string.  Use C<statvfs> from "
5689 "programs."
5690 msgstr ""
5691
5692 # type: =head2
5693 #: ../src/guestfs-actions.pod:1050
5694 msgid "guestfs_df_h"
5695 msgstr ""
5696
5697 # type: verbatim
5698 #: ../src/guestfs-actions.pod:1052
5699 #, no-wrap
5700 msgid ""
5701 " char *\n"
5702 " guestfs_df_h (guestfs_h *g);\n"
5703 "\n"
5704 msgstr ""
5705
5706 # type: textblock
5707 #: ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:785
5708 msgid ""
5709 "This command runs the C<df -h> command to report disk space used in "
5710 "human-readable format."
5711 msgstr ""
5712
5713 # type: =head2
5714 #: ../src/guestfs-actions.pod:1065
5715 msgid "guestfs_dmesg"
5716 msgstr ""
5717
5718 # type: verbatim
5719 #: ../src/guestfs-actions.pod:1067
5720 #, no-wrap
5721 msgid ""
5722 " char *\n"
5723 " guestfs_dmesg (guestfs_h *g);\n"
5724 "\n"
5725 msgstr ""
5726
5727 # type: textblock
5728 #: ../src/guestfs-actions.pod:1070 ../fish/guestfish-actions.pod:796
5729 msgid ""
5730 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5731 "This is sometimes useful for extended debugging of problems."
5732 msgstr ""
5733
5734 # type: textblock
5735 #: ../src/guestfs-actions.pod:1074
5736 msgid ""
5737 "Another way to get the same information is to enable verbose messages with "
5738 "C<guestfs_set_verbose> or by setting the environment variable "
5739 "C<LIBGUESTFS_DEBUG=1> before running the program."
5740 msgstr ""
5741
5742 # type: =head2
5743 #: ../src/guestfs-actions.pod:1082
5744 msgid "guestfs_download"
5745 msgstr ""
5746
5747 # type: verbatim
5748 #: ../src/guestfs-actions.pod:1084
5749 #, no-wrap
5750 msgid ""
5751 " int\n"
5752 " guestfs_download (guestfs_h *g,\n"
5753 "                   const char *remotefilename,\n"
5754 "                   const char *filename);\n"
5755 "\n"
5756 msgstr ""
5757
5758 # type: textblock
5759 #: ../src/guestfs-actions.pod:1089 ../src/guestfs-actions.pod:1112 ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5760 msgid ""
5761 "Download file C<remotefilename> and save it as C<filename> on the local "
5762 "machine."
5763 msgstr ""
5764
5765 # type: textblock
5766 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:5553 ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4077
5767 msgid "C<filename> can also be a named pipe."
5768 msgstr ""
5769
5770 # type: textblock
5771 #: ../src/guestfs-actions.pod:1094
5772 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5773 msgstr ""
5774
5775 # type: =head2
5776 #: ../src/guestfs-actions.pod:1103
5777 msgid "guestfs_download_offset"
5778 msgstr ""
5779
5780 # type: verbatim
5781 #: ../src/guestfs-actions.pod:1105
5782 #, no-wrap
5783 msgid ""
5784 " int\n"
5785 " guestfs_download_offset (guestfs_h *g,\n"
5786 "                          const char *remotefilename,\n"
5787 "                          const char *filename,\n"
5788 "                          int64_t offset,\n"
5789 "                          int64_t size);\n"
5790 "\n"
5791 msgstr ""
5792
5793 # type: textblock
5794 #: ../src/guestfs-actions.pod:1115 ../fish/guestfish-actions.pod:825
5795 msgid ""
5796 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5797 "region must be within the file or device)."
5798 msgstr ""
5799
5800 # type: textblock
5801 #: ../src/guestfs-actions.pod:1118
5802 msgid ""
5803 "Note that there is no limit on the amount of data that can be downloaded "
5804 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5805 "full amount unless an error occurs."
5806 msgstr ""
5807
5808 # type: textblock
5809 #: ../src/guestfs-actions.pod:1123
5810 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5811 msgstr ""
5812
5813 # type: =head2
5814 #: ../src/guestfs-actions.pod:1132
5815 msgid "guestfs_drop_caches"
5816 msgstr ""
5817
5818 # type: verbatim
5819 #: ../src/guestfs-actions.pod:1134
5820 #, no-wrap
5821 msgid ""
5822 " int\n"
5823 " guestfs_drop_caches (guestfs_h *g,\n"
5824 "                      int whattodrop);\n"
5825 "\n"
5826 msgstr ""
5827
5828 # type: textblock
5829 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:841
5830 msgid ""
5831 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5832 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5833 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5834 msgstr ""
5835
5836 # type: textblock
5837 #: ../src/guestfs-actions.pod:1143 ../fish/guestfish-actions.pod:846
5838 msgid "Setting C<whattodrop> to 3 should drop everything."
5839 msgstr ""
5840
5841 # type: textblock
5842 #: ../src/guestfs-actions.pod:1145 ../fish/guestfish-actions.pod:848
5843 msgid ""
5844 "This automatically calls L<sync(2)> before the operation, so that the "
5845 "maximum guest memory is freed."
5846 msgstr ""
5847
5848 # type: =head2
5849 #: ../src/guestfs-actions.pod:1150
5850 msgid "guestfs_du"
5851 msgstr ""
5852
5853 # type: verbatim
5854 #: ../src/guestfs-actions.pod:1152
5855 #, no-wrap
5856 msgid ""
5857 " int64_t\n"
5858 " guestfs_du (guestfs_h *g,\n"
5859 "             const char *path);\n"
5860 "\n"
5861 msgstr ""
5862
5863 # type: textblock
5864 #: ../src/guestfs-actions.pod:1156 ../fish/guestfish-actions.pod:855
5865 msgid ""
5866 "This command runs the C<du -s> command to estimate file space usage for "
5867 "C<path>."
5868 msgstr ""
5869
5870 # type: textblock
5871 #: ../src/guestfs-actions.pod:1159 ../fish/guestfish-actions.pod:858
5872 msgid ""
5873 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5874 "estimate includes the contents of the directory and all subdirectories "
5875 "(recursively)."
5876 msgstr ""
5877
5878 # type: textblock
5879 #: ../src/guestfs-actions.pod:1163 ../fish/guestfish-actions.pod:862
5880 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5881 msgstr ""
5882
5883 # type: =head2
5884 #: ../src/guestfs-actions.pod:1168
5885 msgid "guestfs_e2fsck_f"
5886 msgstr ""
5887
5888 # type: verbatim
5889 #: ../src/guestfs-actions.pod:1170
5890 #, no-wrap
5891 msgid ""
5892 " int\n"
5893 " guestfs_e2fsck_f (guestfs_h *g,\n"
5894 "                   const char *device);\n"
5895 "\n"
5896 msgstr ""
5897
5898 # type: textblock
5899 #: ../src/guestfs-actions.pod:1174 ../fish/guestfish-actions.pod:869
5900 msgid ""
5901 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5902 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5903 "clean (C<-f>)."
5904 msgstr ""
5905
5906 # type: textblock
5907 #: ../src/guestfs-actions.pod:1178
5908 msgid ""
5909 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5910 "Normally you should use C<guestfs_fsck>."
5911 msgstr ""
5912
5913 # type: =head2
5914 #: ../src/guestfs-actions.pod:1183
5915 msgid "guestfs_echo_daemon"
5916 msgstr ""
5917
5918 # type: verbatim
5919 #: ../src/guestfs-actions.pod:1185
5920 #, no-wrap
5921 msgid ""
5922 " char *\n"
5923 " guestfs_echo_daemon (guestfs_h *g,\n"
5924 "                      char *const *words);\n"
5925 "\n"
5926 msgstr ""
5927
5928 # type: textblock
5929 #: ../src/guestfs-actions.pod:1189 ../fish/guestfish-actions.pod:880
5930 msgid ""
5931 "This command concatenates the list of C<words> passed with single spaces "
5932 "between them and returns the resulting string."
5933 msgstr ""
5934
5935 # type: textblock
5936 #: ../src/guestfs-actions.pod:1192 ../fish/guestfish-actions.pod:883
5937 msgid "You can use this command to test the connection through to the daemon."
5938 msgstr ""
5939
5940 # type: textblock
5941 #: ../src/guestfs-actions.pod:1194
5942 msgid "See also C<guestfs_ping_daemon>."
5943 msgstr ""
5944
5945 # type: =head2
5946 #: ../src/guestfs-actions.pod:1199
5947 msgid "guestfs_egrep"
5948 msgstr ""
5949
5950 # type: verbatim
5951 #: ../src/guestfs-actions.pod:1201
5952 #, no-wrap
5953 msgid ""
5954 " char **\n"
5955 " guestfs_egrep (guestfs_h *g,\n"
5956 "                const char *regex,\n"
5957 "                const char *path);\n"
5958 "\n"
5959 msgstr ""
5960
5961 # type: textblock
5962 #: ../src/guestfs-actions.pod:1206 ../fish/guestfish-actions.pod:891
5963 msgid "This calls the external C<egrep> program and returns the matching lines."
5964 msgstr ""
5965
5966 # type: =head2
5967 #: ../src/guestfs-actions.pod:1216
5968 msgid "guestfs_egrepi"
5969 msgstr ""
5970
5971 # type: verbatim
5972 #: ../src/guestfs-actions.pod:1218
5973 #, no-wrap
5974 msgid ""
5975 " char **\n"
5976 " guestfs_egrepi (guestfs_h *g,\n"
5977 "                 const char *regex,\n"
5978 "                 const char *path);\n"
5979 "\n"
5980 msgstr ""
5981
5982 # type: textblock
5983 #: ../src/guestfs-actions.pod:1223 ../fish/guestfish-actions.pod:901
5984 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5985 msgstr ""
5986
5987 # type: =head2
5988 #: ../src/guestfs-actions.pod:1233
5989 msgid "guestfs_equal"
5990 msgstr ""
5991
5992 # type: verbatim
5993 #: ../src/guestfs-actions.pod:1235
5994 #, no-wrap
5995 msgid ""
5996 " int\n"
5997 " guestfs_equal (guestfs_h *g,\n"
5998 "                const char *file1,\n"
5999 "                const char *file2);\n"
6000 "\n"
6001 msgstr ""
6002
6003 # type: textblock
6004 #: ../src/guestfs-actions.pod:1240 ../fish/guestfish-actions.pod:911
6005 msgid ""
6006 "This compares the two files C<file1> and C<file2> and returns true if their "
6007 "content is exactly equal, or false otherwise."
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:914
6012 msgid "The external L<cmp(1)> program is used for the comparison."
6013 msgstr ""
6014
6015 # type: =head2
6016 #: ../src/guestfs-actions.pod:1247
6017 msgid "guestfs_exists"
6018 msgstr ""
6019
6020 # type: verbatim
6021 #: ../src/guestfs-actions.pod:1249
6022 #, no-wrap
6023 msgid ""
6024 " int\n"
6025 " guestfs_exists (guestfs_h *g,\n"
6026 "                 const char *path);\n"
6027 "\n"
6028 msgstr ""
6029
6030 # type: textblock
6031 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:920
6032 msgid ""
6033 "This returns C<true> if and only if there is a file, directory (or anything) "
6034 "with the given C<path> name."
6035 msgstr ""
6036
6037 # type: textblock
6038 #: ../src/guestfs-actions.pod:1256
6039 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6040 msgstr ""
6041
6042 # type: =head2
6043 #: ../src/guestfs-actions.pod:1260
6044 msgid "guestfs_fallocate"
6045 msgstr ""
6046
6047 # type: verbatim
6048 #: ../src/guestfs-actions.pod:1262
6049 #, no-wrap
6050 msgid ""
6051 " int\n"
6052 " guestfs_fallocate (guestfs_h *g,\n"
6053 "                    const char *path,\n"
6054 "                    int len);\n"
6055 "\n"
6056 msgstr ""
6057
6058 # type: textblock
6059 #: ../src/guestfs-actions.pod:1267 ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6060 msgid ""
6061 "This command preallocates a file (containing zero bytes) named C<path> of "
6062 "size C<len> bytes.  If the file exists already, it is overwritten."
6063 msgstr ""
6064
6065 # type: textblock
6066 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:933
6067 msgid ""
6068 "Do not confuse this with the guestfish-specific C<alloc> command which "
6069 "allocates a file in the host and attaches it as a device."
6070 msgstr ""
6071
6072 # type: textblock
6073 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:937
6074 msgid ""
6075 "This function is deprecated.  In new code, use the C<fallocate64> call "
6076 "instead."
6077 msgstr ""
6078
6079 # type: =head2
6080 #: ../src/guestfs-actions.pod:1284
6081 msgid "guestfs_fallocate64"
6082 msgstr ""
6083
6084 # type: verbatim
6085 #: ../src/guestfs-actions.pod:1286
6086 #, no-wrap
6087 msgid ""
6088 " int\n"
6089 " guestfs_fallocate64 (guestfs_h *g,\n"
6090 "                      const char *path,\n"
6091 "                      int64_t len);\n"
6092 "\n"
6093 msgstr ""
6094
6095 # type: textblock
6096 #: ../src/guestfs-actions.pod:1295
6097 msgid ""
6098 "Note that this call allocates disk blocks for the file.  To create a sparse "
6099 "file use C<guestfs_truncate_size> instead."
6100 msgstr ""
6101
6102 # type: textblock
6103 #: ../src/guestfs-actions.pod:1298
6104 msgid ""
6105 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6106 "oversight it only allowed 30 bit lengths to be specified, effectively "
6107 "limiting the maximum size of files created through that call to 1GB."
6108 msgstr ""
6109
6110 # type: textblock
6111 #: ../src/guestfs-actions.pod:1303 ../fish/guestfish-actions.pod:960
6112 msgid ""
6113 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6114 "commands which create a file in the host and attach it as a device."
6115 msgstr ""
6116
6117 # type: =head2
6118 #: ../src/guestfs-actions.pod:1309
6119 msgid "guestfs_fgrep"
6120 msgstr ""
6121
6122 # type: verbatim
6123 #: ../src/guestfs-actions.pod:1311
6124 #, no-wrap
6125 msgid ""
6126 " char **\n"
6127 " guestfs_fgrep (guestfs_h *g,\n"
6128 "                const char *pattern,\n"
6129 "                const char *path);\n"
6130 "\n"
6131 msgstr ""
6132
6133 # type: textblock
6134 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:968
6135 msgid "This calls the external C<fgrep> program and returns the matching lines."
6136 msgstr ""
6137
6138 # type: =head2
6139 #: ../src/guestfs-actions.pod:1326
6140 msgid "guestfs_fgrepi"
6141 msgstr ""
6142
6143 # type: verbatim
6144 #: ../src/guestfs-actions.pod:1328
6145 #, no-wrap
6146 msgid ""
6147 " char **\n"
6148 " guestfs_fgrepi (guestfs_h *g,\n"
6149 "                 const char *pattern,\n"
6150 "                 const char *path);\n"
6151 "\n"
6152 msgstr ""
6153
6154 # type: textblock
6155 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:978
6156 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6157 msgstr ""
6158
6159 # type: =head2
6160 #: ../src/guestfs-actions.pod:1343
6161 msgid "guestfs_file"
6162 msgstr ""
6163
6164 # type: verbatim
6165 #: ../src/guestfs-actions.pod:1345
6166 #, no-wrap
6167 msgid ""
6168 " char *\n"
6169 " guestfs_file (guestfs_h *g,\n"
6170 "               const char *path);\n"
6171 "\n"
6172 msgstr ""
6173
6174 # type: textblock
6175 #: ../src/guestfs-actions.pod:1349 ../fish/guestfish-actions.pod:988
6176 msgid ""
6177 "This call uses the standard L<file(1)> command to determine the type or "
6178 "contents of the file."
6179 msgstr ""
6180
6181 # type: textblock
6182 #: ../src/guestfs-actions.pod:1352 ../fish/guestfish-actions.pod:991
6183 msgid ""
6184 "This call will also transparently look inside various types of compressed "
6185 "file."
6186 msgstr ""
6187
6188 # type: textblock
6189 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:994
6190 msgid ""
6191 "The exact command which runs is C<file -zb path>.  Note in particular that "
6192 "the filename is not prepended to the output (the C<-b> option)."
6193 msgstr ""
6194
6195 # type: textblock
6196 #: ../src/guestfs-actions.pod:1359
6197 msgid ""
6198 "This command can also be used on C</dev/> devices (and partitions, LV "
6199 "names).  You can for example use this to determine if a device contains a "
6200 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6201 msgstr ""
6202
6203 # type: textblock
6204 #: ../src/guestfs-actions.pod:1364 ../fish/guestfish-actions.pod:1003
6205 msgid ""
6206 "If the C<path> does not begin with C</dev/> then this command only works for "
6207 "the content of regular files.  For other file types (directory, symbolic "
6208 "link etc) it will just return the string C<directory> etc."
6209 msgstr ""
6210
6211 # type: =head2
6212 #: ../src/guestfs-actions.pod:1372
6213 msgid "guestfs_file_architecture"
6214 msgstr ""
6215
6216 # type: verbatim
6217 #: ../src/guestfs-actions.pod:1374
6218 #, no-wrap
6219 msgid ""
6220 " char *\n"
6221 " guestfs_file_architecture (guestfs_h *g,\n"
6222 "                            const char *filename);\n"
6223 "\n"
6224 msgstr ""
6225
6226 # type: textblock
6227 #: ../src/guestfs-actions.pod:1378 ../fish/guestfish-actions.pod:1012
6228 msgid ""
6229 "This detects the architecture of the binary C<filename>, and returns it if "
6230 "known."
6231 msgstr ""
6232
6233 # type: textblock
6234 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1015
6235 msgid "Currently defined architectures are:"
6236 msgstr ""
6237
6238 # type: =item
6239 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1019
6240 msgid "\"i386\""
6241 msgstr ""
6242
6243 # type: textblock
6244 #: ../src/guestfs-actions.pod:1387 ../fish/guestfish-actions.pod:1021
6245 msgid ""
6246 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6247 "irrespective of the precise processor requirements of the binary."
6248 msgstr ""
6249
6250 # type: =item
6251 #: ../src/guestfs-actions.pod:1390 ../fish/guestfish-actions.pod:1024
6252 msgid "\"x86_64\""
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1392 ../fish/guestfish-actions.pod:1026
6257 msgid "64 bit x86-64."
6258 msgstr ""
6259
6260 # type: =item
6261 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:1028
6262 msgid "\"sparc\""
6263 msgstr ""
6264
6265 # type: textblock
6266 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:1030
6267 msgid "32 bit SPARC."
6268 msgstr ""
6269
6270 # type: =item
6271 #: ../src/guestfs-actions.pod:1398 ../fish/guestfish-actions.pod:1032
6272 msgid "\"sparc64\""
6273 msgstr ""
6274
6275 # type: textblock
6276 #: ../src/guestfs-actions.pod:1400 ../fish/guestfish-actions.pod:1034
6277 msgid "64 bit SPARC V9 and above."
6278 msgstr ""
6279
6280 # type: =item
6281 #: ../src/guestfs-actions.pod:1402 ../fish/guestfish-actions.pod:1036
6282 msgid "\"ia64\""
6283 msgstr ""
6284
6285 # type: textblock
6286 #: ../src/guestfs-actions.pod:1404 ../fish/guestfish-actions.pod:1038
6287 msgid "Intel Itanium."
6288 msgstr ""
6289
6290 # type: =item
6291 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:1040
6292 msgid "\"ppc\""
6293 msgstr ""
6294
6295 # type: textblock
6296 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:1042
6297 msgid "32 bit Power PC."
6298 msgstr ""
6299
6300 # type: =item
6301 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:1044
6302 msgid "\"ppc64\""
6303 msgstr ""
6304
6305 # type: textblock
6306 #: ../src/guestfs-actions.pod:1412 ../fish/guestfish-actions.pod:1046
6307 msgid "64 bit Power PC."
6308 msgstr ""
6309
6310 # type: textblock
6311 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1050
6312 msgid "Libguestfs may return other architecture strings in future."
6313 msgstr ""
6314
6315 # type: textblock
6316 #: ../src/guestfs-actions.pod:1418 ../fish/guestfish-actions.pod:1052
6317 msgid "The function works on at least the following types of files:"
6318 msgstr ""
6319
6320 # type: textblock
6321 #: ../src/guestfs-actions.pod:1424 ../fish/guestfish-actions.pod:1058
6322 msgid "many types of Un*x and Linux binary"
6323 msgstr ""
6324
6325 # type: textblock
6326 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:1062
6327 msgid "many types of Un*x and Linux shared library"
6328 msgstr ""
6329
6330 # type: textblock
6331 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:1066
6332 msgid "Windows Win32 and Win64 binaries"
6333 msgstr ""
6334
6335 # type: textblock
6336 #: ../src/guestfs-actions.pod:1436 ../fish/guestfish-actions.pod:1070
6337 msgid "Windows Win32 and Win64 DLLs"
6338 msgstr ""
6339
6340 # type: textblock
6341 #: ../src/guestfs-actions.pod:1438 ../fish/guestfish-actions.pod:1072
6342 msgid "Win32 binaries and DLLs return C<i386>."
6343 msgstr ""
6344
6345 # type: textblock
6346 #: ../src/guestfs-actions.pod:1440 ../fish/guestfish-actions.pod:1074
6347 msgid "Win64 binaries and DLLs return C<x86_64>."
6348 msgstr ""
6349
6350 # type: textblock
6351 #: ../src/guestfs-actions.pod:1444 ../fish/guestfish-actions.pod:1078
6352 msgid "Linux kernel modules"
6353 msgstr ""
6354
6355 # type: textblock
6356 #: ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:1082
6357 msgid "Linux new-style initrd images"
6358 msgstr ""
6359
6360 # type: textblock
6361 #: ../src/guestfs-actions.pod:1452 ../fish/guestfish-actions.pod:1086
6362 msgid "some non-x86 Linux vmlinuz kernels"
6363 msgstr ""
6364
6365 # type: textblock
6366 #: ../src/guestfs-actions.pod:1456 ../fish/guestfish-actions.pod:1090
6367 msgid "What it can't do currently:"
6368 msgstr ""
6369
6370 # type: textblock
6371 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:1096
6372 msgid "static libraries (libfoo.a)"
6373 msgstr ""
6374
6375 # type: textblock
6376 #: ../src/guestfs-actions.pod:1466 ../fish/guestfish-actions.pod:1100
6377 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6378 msgstr ""
6379
6380 # type: textblock
6381 #: ../src/guestfs-actions.pod:1470 ../fish/guestfish-actions.pod:1104
6382 msgid "x86 Linux vmlinuz kernels"
6383 msgstr ""
6384
6385 # type: textblock
6386 #: ../src/guestfs-actions.pod:1472 ../fish/guestfish-actions.pod:1106
6387 msgid ""
6388 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6389 "compressed code, and are horribly hard to unpack.  If you want to find the "
6390 "architecture of a kernel, use the architecture of the associated initrd or "
6391 "kernel module(s) instead."
6392 msgstr ""
6393
6394 # type: =head2
6395 #: ../src/guestfs-actions.pod:1482
6396 msgid "guestfs_filesize"
6397 msgstr ""
6398
6399 # type: verbatim
6400 #: ../src/guestfs-actions.pod:1484
6401 #, no-wrap
6402 msgid ""
6403 " int64_t\n"
6404 " guestfs_filesize (guestfs_h *g,\n"
6405 "                   const char *file);\n"
6406 "\n"
6407 msgstr ""
6408
6409 # type: textblock
6410 #: ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:1117
6411 msgid "This command returns the size of C<file> in bytes."
6412 msgstr ""
6413
6414 # type: textblock
6415 #: ../src/guestfs-actions.pod:1490
6416 msgid ""
6417 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6418 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6419 "devices, use C<guestfs_blockdev_getsize64>."
6420 msgstr ""
6421
6422 # type: =head2
6423 #: ../src/guestfs-actions.pod:1496
6424 msgid "guestfs_fill"
6425 msgstr ""
6426
6427 # type: verbatim
6428 #: ../src/guestfs-actions.pod:1498
6429 #, no-wrap
6430 msgid ""
6431 " int\n"
6432 " guestfs_fill (guestfs_h *g,\n"
6433 "               int c,\n"
6434 "               int len,\n"
6435 "               const char *path);\n"
6436 "\n"
6437 msgstr ""
6438
6439 # type: textblock
6440 #: ../src/guestfs-actions.pod:1504 ../fish/guestfish-actions.pod:1127
6441 msgid ""
6442 "This command creates a new file called C<path>.  The initial content of the "
6443 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6444 "C<[0..255]>."
6445 msgstr ""
6446
6447 # type: textblock
6448 #: ../src/guestfs-actions.pod:1508
6449 msgid ""
6450 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6451 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6452 "bytes use C<guestfs_fill_pattern>."
6453 msgstr ""
6454
6455 # type: =head2
6456 #: ../src/guestfs-actions.pod:1520
6457 msgid "guestfs_fill_pattern"
6458 msgstr ""
6459
6460 # type: verbatim
6461 #: ../src/guestfs-actions.pod:1522
6462 #, no-wrap
6463 msgid ""
6464 " int\n"
6465 " guestfs_fill_pattern (guestfs_h *g,\n"
6466 "                       const char *pattern,\n"
6467 "                       int len,\n"
6468 "                       const char *path);\n"
6469 "\n"
6470 msgstr ""
6471
6472 # type: textblock
6473 #: ../src/guestfs-actions.pod:1528
6474 msgid ""
6475 "This function is like C<guestfs_fill> except that it creates a new file of "
6476 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6477 "pattern is truncated if necessary to ensure the length of the file is "
6478 "exactly C<len> bytes."
6479 msgstr ""
6480
6481 # type: =head2
6482 #: ../src/guestfs-actions.pod:1540
6483 msgid "guestfs_find"
6484 msgstr ""
6485
6486 # type: verbatim
6487 #: ../src/guestfs-actions.pod:1542
6488 #, no-wrap
6489 msgid ""
6490 " char **\n"
6491 " guestfs_find (guestfs_h *g,\n"
6492 "               const char *directory);\n"
6493 "\n"
6494 msgstr ""
6495
6496 # type: textblock
6497 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1149
6498 msgid ""
6499 "This command lists out all files and directories, recursively, starting at "
6500 "C<directory>.  It is essentially equivalent to running the shell command "
6501 "C<find directory -print> but some post-processing happens on the output, "
6502 "described below."
6503 msgstr ""
6504
6505 # type: textblock
6506 #: ../src/guestfs-actions.pod:1551 ../fish/guestfish-actions.pod:1154
6507 msgid ""
6508 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6509 "structure was:"
6510 msgstr ""
6511
6512 # type: verbatim
6513 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1157
6514 #, no-wrap
6515 msgid ""
6516 " /tmp/a\n"
6517 " /tmp/b\n"
6518 " /tmp/c/d\n"
6519 "\n"
6520 msgstr ""
6521
6522 # type: textblock
6523 #: ../src/guestfs-actions.pod:1558
6524 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6525 msgstr ""
6526
6527 # type: verbatim
6528 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1164
6529 #, no-wrap
6530 msgid ""
6531 " a\n"
6532 " b\n"
6533 " c\n"
6534 " c/d\n"
6535 "\n"
6536 msgstr ""
6537
6538 # type: textblock
6539 #: ../src/guestfs-actions.pod:1566 ../fish/guestfish-actions.pod:1169
6540 msgid "If C<directory> is not a directory, then this command returns an error."
6541 msgstr ""
6542
6543 # type: textblock
6544 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1172
6545 msgid "The returned list is sorted."
6546 msgstr ""
6547
6548 # type: textblock
6549 #: ../src/guestfs-actions.pod:1571
6550 msgid "See also C<guestfs_find0>."
6551 msgstr ""
6552
6553 # type: =head2
6554 #: ../src/guestfs-actions.pod:1580
6555 msgid "guestfs_find0"
6556 msgstr ""
6557
6558 # type: verbatim
6559 #: ../src/guestfs-actions.pod:1582
6560 #, no-wrap
6561 msgid ""
6562 " int\n"
6563 " guestfs_find0 (guestfs_h *g,\n"
6564 "                const char *directory,\n"
6565 "                const char *files);\n"
6566 "\n"
6567 msgstr ""
6568
6569 # type: textblock
6570 #: ../src/guestfs-actions.pod:1587 ../fish/guestfish-actions.pod:1183
6571 msgid ""
6572 "This command lists out all files and directories, recursively, starting at "
6573 "C<directory>, placing the resulting list in the external file called "
6574 "C<files>."
6575 msgstr ""
6576
6577 # type: textblock
6578 #: ../src/guestfs-actions.pod:1591
6579 msgid ""
6580 "This command works the same way as C<guestfs_find> with the following "
6581 "exceptions:"
6582 msgstr ""
6583
6584 # type: textblock
6585 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1194
6586 msgid "The resulting list is written to an external file."
6587 msgstr ""
6588
6589 # type: textblock
6590 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1198
6591 msgid ""
6592 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6593 "L<find(1)> option I<-print0>."
6594 msgstr ""
6595
6596 # type: textblock
6597 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1203
6598 msgid "This command is not limited in the number of names that it can return."
6599 msgstr ""
6600
6601 # type: textblock
6602 #: ../src/guestfs-actions.pod:1612 ../fish/guestfish-actions.pod:1208
6603 msgid "The result list is not sorted."
6604 msgstr ""
6605
6606 # type: =head2
6607 #: ../src/guestfs-actions.pod:1618
6608 msgid "guestfs_findfs_label"
6609 msgstr ""
6610
6611 # type: verbatim
6612 #: ../src/guestfs-actions.pod:1620
6613 #, no-wrap
6614 msgid ""
6615 " char *\n"
6616 " guestfs_findfs_label (guestfs_h *g,\n"
6617 "                       const char *label);\n"
6618 "\n"
6619 msgstr ""
6620
6621 # type: textblock
6622 #: ../src/guestfs-actions.pod:1624 ../fish/guestfish-actions.pod:1218
6623 msgid ""
6624 "This command searches the filesystems and returns the one which has the "
6625 "given label.  An error is returned if no such filesystem can be found."
6626 msgstr ""
6627
6628 # type: textblock
6629 #: ../src/guestfs-actions.pod:1628
6630 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6631 msgstr ""
6632
6633 # type: =head2
6634 #: ../src/guestfs-actions.pod:1633
6635 msgid "guestfs_findfs_uuid"
6636 msgstr ""
6637
6638 # type: verbatim
6639 #: ../src/guestfs-actions.pod:1635
6640 #, no-wrap
6641 msgid ""
6642 " char *\n"
6643 " guestfs_findfs_uuid (guestfs_h *g,\n"
6644 "                      const char *uuid);\n"
6645 "\n"
6646 msgstr ""
6647
6648 # type: textblock
6649 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1228
6650 msgid ""
6651 "This command searches the filesystems and returns the one which has the "
6652 "given UUID.  An error is returned if no such filesystem can be found."
6653 msgstr ""
6654
6655 # type: textblock
6656 #: ../src/guestfs-actions.pod:1643
6657 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6658 msgstr ""
6659
6660 # type: =head2
6661 #: ../src/guestfs-actions.pod:1648
6662 msgid "guestfs_fsck"
6663 msgstr ""
6664
6665 # type: verbatim
6666 #: ../src/guestfs-actions.pod:1650
6667 #, no-wrap
6668 msgid ""
6669 " int\n"
6670 " guestfs_fsck (guestfs_h *g,\n"
6671 "               const char *fstype,\n"
6672 "               const char *device);\n"
6673 "\n"
6674 msgstr ""
6675
6676 # type: textblock
6677 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1238
6678 msgid ""
6679 "This runs the filesystem checker (fsck) on C<device> which should have "
6680 "filesystem type C<fstype>."
6681 msgstr ""
6682
6683 # type: textblock
6684 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1241
6685 msgid ""
6686 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6687 "codes from C<fsck>."
6688 msgstr ""
6689
6690 # type: textblock
6691 #: ../src/guestfs-actions.pod:1667 ../fish/guestfish-actions.pod:1250
6692 msgid "Multiple status codes can be summed together."
6693 msgstr ""
6694
6695 # type: textblock
6696 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1254
6697 msgid ""
6698 "A non-zero return code can mean \"success\", for example if errors have been "
6699 "corrected on the filesystem."
6700 msgstr ""
6701
6702 # type: textblock
6703 #: ../src/guestfs-actions.pod:1676 ../fish/guestfish-actions.pod:1259
6704 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6705 msgstr ""
6706
6707 # type: textblock
6708 #: ../src/guestfs-actions.pod:1681 ../fish/guestfish-actions.pod:1264
6709 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6710 msgstr ""
6711
6712 # type: =head2
6713 #: ../src/guestfs-actions.pod:1685
6714 msgid "guestfs_get_append"
6715 msgstr ""
6716
6717 # type: verbatim
6718 #: ../src/guestfs-actions.pod:1687
6719 #, no-wrap
6720 msgid ""
6721 " const char *\n"
6722 " guestfs_get_append (guestfs_h *g);\n"
6723 "\n"
6724 msgstr ""
6725
6726 # type: textblock
6727 #: ../src/guestfs-actions.pod:1690 ../fish/guestfish-actions.pod:1270
6728 msgid ""
6729 "Return the additional kernel options which are added to the guest kernel "
6730 "command line."
6731 msgstr ""
6732
6733 # type: textblock
6734 #: ../src/guestfs-actions.pod:1693 ../fish/guestfish-actions.pod:1273
6735 msgid "If C<NULL> then no options are added."
6736 msgstr ""
6737
6738 # type: textblock
6739 #: ../src/guestfs-actions.pod:1695
6740 msgid ""
6741 "This function returns a string which may be NULL.  There is no way to return "
6742 "an error from this function.  The string is owned by the guest handle and "
6743 "must I<not> be freed."
6744 msgstr ""
6745
6746 # type: =head2
6747 #: ../src/guestfs-actions.pod:1699
6748 msgid "guestfs_get_autosync"
6749 msgstr ""
6750
6751 # type: verbatim
6752 #: ../src/guestfs-actions.pod:1701
6753 #, no-wrap
6754 msgid ""
6755 " int\n"
6756 " guestfs_get_autosync (guestfs_h *g);\n"
6757 "\n"
6758 msgstr ""
6759
6760 # type: textblock
6761 #: ../src/guestfs-actions.pod:1704 ../fish/guestfish-actions.pod:1279
6762 msgid "Get the autosync flag."
6763 msgstr ""
6764
6765 # type: =head2
6766 #: ../src/guestfs-actions.pod:1708
6767 msgid "guestfs_get_direct"
6768 msgstr ""
6769
6770 # type: verbatim
6771 #: ../src/guestfs-actions.pod:1710
6772 #, no-wrap
6773 msgid ""
6774 " int\n"
6775 " guestfs_get_direct (guestfs_h *g);\n"
6776 "\n"
6777 msgstr ""
6778
6779 # type: textblock
6780 #: ../src/guestfs-actions.pod:1713 ../fish/guestfish-actions.pod:1285
6781 msgid "Return the direct appliance mode flag."
6782 msgstr ""
6783
6784 # type: =head2
6785 #: ../src/guestfs-actions.pod:1717
6786 msgid "guestfs_get_e2label"
6787 msgstr ""
6788
6789 # type: verbatim
6790 #: ../src/guestfs-actions.pod:1719
6791 #, no-wrap
6792 msgid ""
6793 " char *\n"
6794 " guestfs_get_e2label (guestfs_h *g,\n"
6795 "                      const char *device);\n"
6796 "\n"
6797 msgstr ""
6798
6799 # type: textblock
6800 #: ../src/guestfs-actions.pod:1723 ../fish/guestfish-actions.pod:1291
6801 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6802 msgstr ""
6803
6804 # type: textblock
6805 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1294
6806 msgid ""
6807 "This function is deprecated.  In new code, use the C<vfs_label> call "
6808 "instead."
6809 msgstr ""
6810
6811 # type: =head2
6812 #: ../src/guestfs-actions.pod:1736
6813 msgid "guestfs_get_e2uuid"
6814 msgstr ""
6815
6816 # type: verbatim
6817 #: ../src/guestfs-actions.pod:1738
6818 #, no-wrap
6819 msgid ""
6820 " char *\n"
6821 " guestfs_get_e2uuid (guestfs_h *g,\n"
6822 "                     const char *device);\n"
6823 "\n"
6824 msgstr ""
6825
6826 # type: textblock
6827 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1305
6828 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6829 msgstr ""
6830
6831 # type: textblock
6832 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1308
6833 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6834 msgstr ""
6835
6836 # type: =head2
6837 #: ../src/guestfs-actions.pod:1755
6838 msgid "guestfs_get_memsize"
6839 msgstr ""
6840
6841 # type: verbatim
6842 #: ../src/guestfs-actions.pod:1757
6843 #, no-wrap
6844 msgid ""
6845 " int\n"
6846 " guestfs_get_memsize (guestfs_h *g);\n"
6847 "\n"
6848 msgstr ""
6849
6850 # type: textblock
6851 #: ../src/guestfs-actions.pod:1760 ../fish/guestfish-actions.pod:1319
6852 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6853 msgstr ""
6854
6855 # type: textblock
6856 #: ../src/guestfs-actions.pod:1763
6857 msgid ""
6858 "If C<guestfs_set_memsize> was not called on this handle, and if "
6859 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6860 "value for memsize."
6861 msgstr ""
6862
6863 # type: textblock
6864 #: ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1836 ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377 ../fish/guestfish-actions.pod:3484 ../fish/guestfish-actions.pod:3571
6865 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6866 msgstr ""
6867
6868 # type: =head2
6869 #: ../src/guestfs-actions.pod:1772
6870 msgid "guestfs_get_network"
6871 msgstr ""
6872
6873 # type: verbatim
6874 #: ../src/guestfs-actions.pod:1774
6875 #, no-wrap
6876 msgid ""
6877 " int\n"
6878 " guestfs_get_network (guestfs_h *g);\n"
6879 "\n"
6880 msgstr ""
6881
6882 # type: textblock
6883 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1333
6884 msgid "This returns the enable network flag."
6885 msgstr ""
6886
6887 # type: =head2
6888 #: ../src/guestfs-actions.pod:1781
6889 msgid "guestfs_get_path"
6890 msgstr ""
6891
6892 # type: verbatim
6893 #: ../src/guestfs-actions.pod:1783
6894 #, no-wrap
6895 msgid ""
6896 " const char *\n"
6897 " guestfs_get_path (guestfs_h *g);\n"
6898 "\n"
6899 msgstr ""
6900
6901 # type: textblock
6902 #: ../src/guestfs-actions.pod:1786 ../fish/guestfish-actions.pod:1339
6903 msgid "Return the current search path."
6904 msgstr ""
6905
6906 # type: textblock
6907 #: ../src/guestfs-actions.pod:1788 ../fish/guestfish-actions.pod:1341
6908 msgid ""
6909 "This is always non-NULL.  If it wasn't set already, then this will return "
6910 "the default path."
6911 msgstr ""
6912
6913 # type: textblock
6914 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816
6915 msgid ""
6916 "This function returns a string, or NULL on error.  The string is owned by "
6917 "the guest handle and must I<not> be freed."
6918 msgstr ""
6919
6920 # type: =head2
6921 #: ../src/guestfs-actions.pod:1794
6922 msgid "guestfs_get_pid"
6923 msgstr ""
6924
6925 # type: verbatim
6926 #: ../src/guestfs-actions.pod:1796
6927 #, no-wrap
6928 msgid ""
6929 " int\n"
6930 " guestfs_get_pid (guestfs_h *g);\n"
6931 "\n"
6932 msgstr ""
6933
6934 # type: textblock
6935 #: ../src/guestfs-actions.pod:1799 ../fish/guestfish-actions.pod:1350
6936 msgid ""
6937 "Return the process ID of the qemu subprocess.  If there is no qemu "
6938 "subprocess, then this will return an error."
6939 msgstr ""
6940
6941 # type: textblock
6942 #: ../src/guestfs-actions.pod:1802 ../fish/guestfish-actions.pod:1353
6943 msgid "This is an internal call used for debugging and testing."
6944 msgstr ""
6945
6946 # type: =head2
6947 #: ../src/guestfs-actions.pod:1806
6948 msgid "guestfs_get_qemu"
6949 msgstr ""
6950
6951 # type: verbatim
6952 #: ../src/guestfs-actions.pod:1808
6953 #, no-wrap
6954 msgid ""
6955 " const char *\n"
6956 " guestfs_get_qemu (guestfs_h *g);\n"
6957 "\n"
6958 msgstr ""
6959
6960 # type: textblock
6961 #: ../src/guestfs-actions.pod:1811 ../fish/guestfish-actions.pod:1359
6962 msgid "Return the current qemu binary."
6963 msgstr ""
6964
6965 # type: textblock
6966 #: ../src/guestfs-actions.pod:1813 ../fish/guestfish-actions.pod:1361
6967 msgid ""
6968 "This is always non-NULL.  If it wasn't set already, then this will return "
6969 "the default qemu binary name."
6970 msgstr ""
6971
6972 # type: =head2
6973 #: ../src/guestfs-actions.pod:1819
6974 msgid "guestfs_get_recovery_proc"
6975 msgstr ""
6976
6977 # type: verbatim
6978 #: ../src/guestfs-actions.pod:1821
6979 #, no-wrap
6980 msgid ""
6981 " int\n"
6982 " guestfs_get_recovery_proc (guestfs_h *g);\n"
6983 "\n"
6984 msgstr ""
6985
6986 # type: textblock
6987 #: ../src/guestfs-actions.pod:1824 ../fish/guestfish-actions.pod:1368
6988 msgid "Return the recovery process enabled flag."
6989 msgstr ""
6990
6991 # type: =head2
6992 #: ../src/guestfs-actions.pod:1828
6993 msgid "guestfs_get_selinux"
6994 msgstr ""
6995
6996 # type: verbatim
6997 #: ../src/guestfs-actions.pod:1830
6998 #, no-wrap
6999 msgid ""
7000 " int\n"
7001 " guestfs_get_selinux (guestfs_h *g);\n"
7002 "\n"
7003 msgstr ""
7004
7005 # type: textblock
7006 #: ../src/guestfs-actions.pod:1833
7007 msgid ""
7008 "This returns the current setting of the selinux flag which is passed to the "
7009 "appliance at boot time.  See C<guestfs_set_selinux>."
7010 msgstr ""
7011
7012 # type: =head2
7013 #: ../src/guestfs-actions.pod:1841
7014 msgid "guestfs_get_state"
7015 msgstr ""
7016
7017 # type: verbatim
7018 #: ../src/guestfs-actions.pod:1843
7019 #, no-wrap
7020 msgid ""
7021 " int\n"
7022 " guestfs_get_state (guestfs_h *g);\n"
7023 "\n"
7024 msgstr ""
7025
7026 # type: textblock
7027 #: ../src/guestfs-actions.pod:1846 ../fish/guestfish-actions.pod:1384
7028 msgid ""
7029 "This returns the current state as an opaque integer.  This is only useful "
7030 "for printing debug and internal error messages."
7031 msgstr ""
7032
7033 # type: textblock
7034 #: ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1387 ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:1989
7035 msgid "For more information on states, see L<guestfs(3)>."
7036 msgstr ""
7037
7038 # type: =head2
7039 #: ../src/guestfs-actions.pod:1853
7040 msgid "guestfs_get_trace"
7041 msgstr ""
7042
7043 # type: verbatim
7044 #: ../src/guestfs-actions.pod:1855
7045 #, no-wrap
7046 msgid ""
7047 " int\n"
7048 " guestfs_get_trace (guestfs_h *g);\n"
7049 "\n"
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1393
7054 msgid "Return the command trace flag."
7055 msgstr ""
7056
7057 # type: =head2
7058 #: ../src/guestfs-actions.pod:1862
7059 msgid "guestfs_get_umask"
7060 msgstr ""
7061
7062 # type: verbatim
7063 #: ../src/guestfs-actions.pod:1864
7064 #, no-wrap
7065 msgid ""
7066 " int\n"
7067 " guestfs_get_umask (guestfs_h *g);\n"
7068 "\n"
7069 msgstr ""
7070
7071 # type: textblock
7072 #: ../src/guestfs-actions.pod:1867
7073 msgid ""
7074 "Return the current umask.  By default the umask is C<022> unless it has been "
7075 "set by calling C<guestfs_umask>."
7076 msgstr ""
7077
7078 # type: =head2
7079 #: ../src/guestfs-actions.pod:1872
7080 msgid "guestfs_get_verbose"
7081 msgstr ""
7082
7083 # type: verbatim
7084 #: ../src/guestfs-actions.pod:1874
7085 #, no-wrap
7086 msgid ""
7087 " int\n"
7088 " guestfs_get_verbose (guestfs_h *g);\n"
7089 "\n"
7090 msgstr ""
7091
7092 # type: textblock
7093 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1406
7094 msgid "This returns the verbose messages flag."
7095 msgstr ""
7096
7097 # type: =head2
7098 #: ../src/guestfs-actions.pod:1881
7099 msgid "guestfs_getcon"
7100 msgstr ""
7101
7102 # type: verbatim
7103 #: ../src/guestfs-actions.pod:1883
7104 #, no-wrap
7105 msgid ""
7106 " char *\n"
7107 " guestfs_getcon (guestfs_h *g);\n"
7108 "\n"
7109 msgstr ""
7110
7111 # type: textblock
7112 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1412
7113 msgid "This gets the SELinux security context of the daemon."
7114 msgstr ""
7115
7116 # type: textblock
7117 #: ../src/guestfs-actions.pod:1888
7118 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7119 msgstr ""
7120
7121 # type: =head2
7122 #: ../src/guestfs-actions.pod:1894
7123 msgid "guestfs_getxattrs"
7124 msgstr ""
7125
7126 # type: verbatim
7127 #: ../src/guestfs-actions.pod:1896
7128 #, no-wrap
7129 msgid ""
7130 " struct guestfs_xattr_list *\n"
7131 " guestfs_getxattrs (guestfs_h *g,\n"
7132 "                    const char *path);\n"
7133 "\n"
7134 msgstr ""
7135
7136 # type: textblock
7137 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1421
7138 msgid "This call lists the extended attributes of the file or directory C<path>."
7139 msgstr ""
7140
7141 # type: textblock
7142 #: ../src/guestfs-actions.pod:1903 ../fish/guestfish-actions.pod:1424
7143 msgid ""
7144 "At the system call level, this is a combination of the L<listxattr(2)> and "
7145 "L<getxattr(2)> calls."
7146 msgstr ""
7147
7148 # type: textblock
7149 #: ../src/guestfs-actions.pod:1906
7150 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7151 msgstr ""
7152
7153 # type: textblock
7154 #: ../src/guestfs-actions.pod:1908 ../src/guestfs-actions.pod:2723 ../src/guestfs-actions.pod:3311
7155 msgid ""
7156 "This function returns a C<struct guestfs_xattr_list *> (see "
7157 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7158 "must call C<guestfs_free_xattr_list> after use>."
7159 msgstr ""
7160
7161 # type: =head2
7162 #: ../src/guestfs-actions.pod:1913
7163 msgid "guestfs_glob_expand"
7164 msgstr ""
7165
7166 # type: verbatim
7167 #: ../src/guestfs-actions.pod:1915
7168 #, no-wrap
7169 msgid ""
7170 " char **\n"
7171 " guestfs_glob_expand (guestfs_h *g,\n"
7172 "                      const char *pattern);\n"
7173 "\n"
7174 msgstr ""
7175
7176 # type: textblock
7177 #: ../src/guestfs-actions.pod:1919 ../fish/guestfish-actions.pod:1433
7178 msgid ""
7179 "This command searches for all the pathnames matching C<pattern> according to "
7180 "the wildcard expansion rules used by the shell."
7181 msgstr ""
7182
7183 # type: textblock
7184 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1437
7185 msgid "If no paths match, then this returns an empty list (note: not an error)."
7186 msgstr ""
7187
7188 # type: textblock
7189 #: ../src/guestfs-actions.pod:1926 ../fish/guestfish-actions.pod:1440
7190 msgid ""
7191 "It is just a wrapper around the C L<glob(3)> function with flags "
7192 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7193 msgstr ""
7194
7195 # type: =head2
7196 #: ../src/guestfs-actions.pod:1934
7197 msgid "guestfs_grep"
7198 msgstr ""
7199
7200 # type: verbatim
7201 #: ../src/guestfs-actions.pod:1936
7202 #, no-wrap
7203 msgid ""
7204 " char **\n"
7205 " guestfs_grep (guestfs_h *g,\n"
7206 "               const char *regex,\n"
7207 "               const char *path);\n"
7208 "\n"
7209 msgstr ""
7210
7211 # type: textblock
7212 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1448
7213 msgid "This calls the external C<grep> program and returns the matching lines."
7214 msgstr ""
7215
7216 # type: =head2
7217 #: ../src/guestfs-actions.pod:1951
7218 msgid "guestfs_grepi"
7219 msgstr ""
7220
7221 # type: verbatim
7222 #: ../src/guestfs-actions.pod:1953
7223 #, no-wrap
7224 msgid ""
7225 " char **\n"
7226 " guestfs_grepi (guestfs_h *g,\n"
7227 "                const char *regex,\n"
7228 "                const char *path);\n"
7229 "\n"
7230 msgstr ""
7231
7232 # type: textblock
7233 #: ../src/guestfs-actions.pod:1958 ../fish/guestfish-actions.pod:1458
7234 msgid "This calls the external C<grep -i> program and returns the matching lines."
7235 msgstr ""
7236
7237 # type: =head2
7238 #: ../src/guestfs-actions.pod:1968
7239 msgid "guestfs_grub_install"
7240 msgstr ""
7241
7242 # type: verbatim
7243 #: ../src/guestfs-actions.pod:1970
7244 #, no-wrap
7245 msgid ""
7246 " int\n"
7247 " guestfs_grub_install (guestfs_h *g,\n"
7248 "                       const char *root,\n"
7249 "                       const char *device);\n"
7250 "\n"
7251 msgstr ""
7252
7253 # type: textblock
7254 #: ../src/guestfs-actions.pod:1975 ../fish/guestfish-actions.pod:1468
7255 msgid ""
7256 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7257 "the root directory being C<root>."
7258 msgstr ""
7259
7260 # type: textblock
7261 #: ../src/guestfs-actions.pod:1978 ../fish/guestfish-actions.pod:1471
7262 msgid ""
7263 "Note: If grub-install reports the error \"No suitable drive was found in the "
7264 "generated device map.\" it may be that you need to create a "
7265 "C</boot/grub/device.map> file first that contains the mapping between grub "
7266 "device names and Linux device names.  It is usually sufficient to create a "
7267 "file containing:"
7268 msgstr ""
7269
7270 # type: verbatim
7271 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1478
7272 #, no-wrap
7273 msgid ""
7274 " (hd0) /dev/vda\n"
7275 "\n"
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1480
7280 msgid "replacing C</dev/vda> with the name of the installation device."
7281 msgstr ""
7282
7283 # type: =head2
7284 #: ../src/guestfs-actions.pod:1991
7285 msgid "guestfs_head"
7286 msgstr ""
7287
7288 # type: verbatim
7289 #: ../src/guestfs-actions.pod:1993
7290 #, no-wrap
7291 msgid ""
7292 " char **\n"
7293 " guestfs_head (guestfs_h *g,\n"
7294 "               const char *path);\n"
7295 "\n"
7296 msgstr ""
7297
7298 # type: textblock
7299 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1486
7300 msgid ""
7301 "This command returns up to the first 10 lines of a file as a list of "
7302 "strings."
7303 msgstr ""
7304
7305 # type: =head2
7306 #: ../src/guestfs-actions.pod:2007
7307 msgid "guestfs_head_n"
7308 msgstr ""
7309
7310 # type: verbatim
7311 #: ../src/guestfs-actions.pod:2009
7312 #, no-wrap
7313 msgid ""
7314 " char **\n"
7315 " guestfs_head_n (guestfs_h *g,\n"
7316 "                 int nrlines,\n"
7317 "                 const char *path);\n"
7318 "\n"
7319 msgstr ""
7320
7321 # type: textblock
7322 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1496
7323 msgid ""
7324 "If the parameter C<nrlines> is a positive number, this returns the first "
7325 "C<nrlines> lines of the file C<path>."
7326 msgstr ""
7327
7328 # type: textblock
7329 #: ../src/guestfs-actions.pod:2017 ../fish/guestfish-actions.pod:1499
7330 msgid ""
7331 "If the parameter C<nrlines> is a negative number, this returns lines from "
7332 "the file C<path>, excluding the last C<nrlines> lines."
7333 msgstr ""
7334
7335 # type: textblock
7336 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5340 ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3917
7337 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7338 msgstr ""
7339
7340 # type: =head2
7341 #: ../src/guestfs-actions.pod:2029
7342 msgid "guestfs_hexdump"
7343 msgstr ""
7344
7345 # type: verbatim
7346 #: ../src/guestfs-actions.pod:2031
7347 #, no-wrap
7348 msgid ""
7349 " char *\n"
7350 " guestfs_hexdump (guestfs_h *g,\n"
7351 "                  const char *path);\n"
7352 "\n"
7353 msgstr ""
7354
7355 # type: textblock
7356 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1511
7357 msgid ""
7358 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7359 "human-readable, canonical hex dump of the file."
7360 msgstr ""
7361
7362 # type: =head2
7363 #: ../src/guestfs-actions.pod:2044
7364 msgid "guestfs_initrd_cat"
7365 msgstr ""
7366
7367 # type: verbatim
7368 #: ../src/guestfs-actions.pod:2046
7369 #, no-wrap
7370 msgid ""
7371 " char *\n"
7372 " guestfs_initrd_cat (guestfs_h *g,\n"
7373 "                     const char *initrdpath,\n"
7374 "                     const char *filename,\n"
7375 "                     size_t *size_r);\n"
7376 "\n"
7377 msgstr ""
7378
7379 # type: textblock
7380 #: ../src/guestfs-actions.pod:2052 ../fish/guestfish-actions.pod:1521
7381 msgid ""
7382 "This command unpacks the file C<filename> from the initrd file called "
7383 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7384 "character."
7385 msgstr ""
7386
7387 # type: textblock
7388 #: ../src/guestfs-actions.pod:2056 ../fish/guestfish-actions.pod:1525
7389 msgid ""
7390 "For example, in guestfish you could use the following command to examine the "
7391 "boot script (usually called C</init>)  contained in a Linux initrd or "
7392 "initramfs image:"
7393 msgstr ""
7394
7395 # type: verbatim
7396 #: ../src/guestfs-actions.pod:2060 ../fish/guestfish-actions.pod:1529
7397 #, no-wrap
7398 msgid ""
7399 " initrd-cat /boot/initrd-<version>.img init\n"
7400 "\n"
7401 msgstr ""
7402
7403 # type: textblock
7404 #: ../src/guestfs-actions.pod:2062
7405 msgid "See also C<guestfs_initrd_list>."
7406 msgstr ""
7407
7408 # type: textblock
7409 #: ../src/guestfs-actions.pod:2064 ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4211 ../src/guestfs-actions.pod:4373
7410 msgid ""
7411 "This function returns a buffer, or NULL on error.  The size of the returned "
7412 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7413 "after use>."
7414 msgstr ""
7415
7416 # type: =head2
7417 #: ../src/guestfs-actions.pod:2071
7418 msgid "guestfs_initrd_list"
7419 msgstr ""
7420
7421 # type: verbatim
7422 #: ../src/guestfs-actions.pod:2073
7423 #, no-wrap
7424 msgid ""
7425 " char **\n"
7426 " guestfs_initrd_list (guestfs_h *g,\n"
7427 "                      const char *path);\n"
7428 "\n"
7429 msgstr ""
7430
7431 # type: textblock
7432 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1540
7433 msgid "This command lists out files contained in an initrd."
7434 msgstr ""
7435
7436 # type: textblock
7437 #: ../src/guestfs-actions.pod:2079 ../fish/guestfish-actions.pod:1542
7438 msgid ""
7439 "The files are listed without any initial C</> character.  The files are "
7440 "listed in the order they appear (not necessarily alphabetical).  Directory "
7441 "names are listed as separate items."
7442 msgstr ""
7443
7444 # type: textblock
7445 #: ../src/guestfs-actions.pod:2083 ../fish/guestfish-actions.pod:1546
7446 msgid ""
7447 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7448 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7449 "files)."
7450 msgstr ""
7451
7452 # type: =head2
7453 #: ../src/guestfs-actions.pod:2091
7454 msgid "guestfs_inotify_add_watch"
7455 msgstr ""
7456
7457 # type: verbatim
7458 #: ../src/guestfs-actions.pod:2093
7459 #, no-wrap
7460 msgid ""
7461 " int64_t\n"
7462 " guestfs_inotify_add_watch (guestfs_h *g,\n"
7463 "                            const char *path,\n"
7464 "                            int mask);\n"
7465 "\n"
7466 msgstr ""
7467
7468 # type: textblock
7469 #: ../src/guestfs-actions.pod:2098 ../fish/guestfish-actions.pod:1554
7470 msgid "Watch C<path> for the events listed in C<mask>."
7471 msgstr ""
7472
7473 # type: textblock
7474 #: ../src/guestfs-actions.pod:2100 ../fish/guestfish-actions.pod:1556
7475 msgid ""
7476 "Note that if C<path> is a directory then events within that directory are "
7477 "watched, but this does I<not> happen recursively (in subdirectories)."
7478 msgstr ""
7479
7480 # type: textblock
7481 #: ../src/guestfs-actions.pod:2104 ../fish/guestfish-actions.pod:1560
7482 msgid ""
7483 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7484 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7485 msgstr ""
7486
7487 # type: =head2
7488 #: ../src/guestfs-actions.pod:2110
7489 msgid "guestfs_inotify_close"
7490 msgstr ""
7491
7492 # type: verbatim
7493 #: ../src/guestfs-actions.pod:2112
7494 #, no-wrap
7495 msgid ""
7496 " int\n"
7497 " guestfs_inotify_close (guestfs_h *g);\n"
7498 "\n"
7499 msgstr ""
7500
7501 # type: textblock
7502 #: ../src/guestfs-actions.pod:2115 ../fish/guestfish-actions.pod:1568
7503 msgid ""
7504 "This closes the inotify handle which was previously opened by inotify_init.  "
7505 "It removes all watches, throws away any pending events, and deallocates all "
7506 "resources."
7507 msgstr ""
7508
7509 # type: =head2
7510 #: ../src/guestfs-actions.pod:2121
7511 msgid "guestfs_inotify_files"
7512 msgstr ""
7513
7514 # type: verbatim
7515 #: ../src/guestfs-actions.pod:2123
7516 #, no-wrap
7517 msgid ""
7518 " char **\n"
7519 " guestfs_inotify_files (guestfs_h *g);\n"
7520 "\n"
7521 msgstr ""
7522
7523 # type: textblock
7524 #: ../src/guestfs-actions.pod:2126
7525 msgid ""
7526 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7527 "returns a list of pathnames of objects that were touched.  The returned "
7528 "pathnames are sorted and deduplicated."
7529 msgstr ""
7530
7531 # type: =head2
7532 #: ../src/guestfs-actions.pod:2134
7533 msgid "guestfs_inotify_init"
7534 msgstr ""
7535
7536 # type: verbatim
7537 #: ../src/guestfs-actions.pod:2136
7538 #, no-wrap
7539 msgid ""
7540 " int\n"
7541 " guestfs_inotify_init (guestfs_h *g,\n"
7542 "                       int maxevents);\n"
7543 "\n"
7544 msgstr ""
7545
7546 # type: textblock
7547 #: ../src/guestfs-actions.pod:2140 ../fish/guestfish-actions.pod:1584
7548 msgid ""
7549 "This command creates a new inotify handle.  The inotify subsystem can be "
7550 "used to notify events which happen to objects in the guest filesystem."
7551 msgstr ""
7552
7553 # type: textblock
7554 #: ../src/guestfs-actions.pod:2144
7555 msgid ""
7556 "C<maxevents> is the maximum number of events which will be queued up between "
7557 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7558 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7559 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7560 "throws away events, but records the fact that it threw them away by setting "
7561 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7562 "C<guestfs_inotify_read>)."
7563 msgstr ""
7564
7565 # type: textblock
7566 #: ../src/guestfs-actions.pod:2154
7567 msgid ""
7568 "Before any events are generated, you have to add some watches to the "
7569 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7570 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7571 msgstr ""
7572
7573 # type: textblock
7574 #: ../src/guestfs-actions.pod:2160
7575 msgid ""
7576 "Queued up events should be read periodically by calling "
7577 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7578 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7579 "often enough then you risk the internal queue overflowing."
7580 msgstr ""
7581
7582 # type: textblock
7583 #: ../src/guestfs-actions.pod:2167
7584 msgid ""
7585 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7586 "This also removes any watches automatically."
7587 msgstr ""
7588
7589 # type: textblock
7590 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1615
7591 msgid ""
7592 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7593 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7594 "that there is one global inotify handle per libguestfs instance."
7595 msgstr ""
7596
7597 # type: =head2
7598 #: ../src/guestfs-actions.pod:2178
7599 msgid "guestfs_inotify_read"
7600 msgstr ""
7601
7602 # type: verbatim
7603 #: ../src/guestfs-actions.pod:2180
7604 #, no-wrap
7605 msgid ""
7606 " struct guestfs_inotify_event_list *\n"
7607 " guestfs_inotify_read (guestfs_h *g);\n"
7608 "\n"
7609 msgstr ""
7610
7611 # type: textblock
7612 #: ../src/guestfs-actions.pod:2183 ../fish/guestfish-actions.pod:1624
7613 msgid ""
7614 "Return the complete queue of events that have happened since the previous "
7615 "read call."
7616 msgstr ""
7617
7618 # type: textblock
7619 #: ../src/guestfs-actions.pod:2186 ../fish/guestfish-actions.pod:1627
7620 msgid "If no events have happened, this returns an empty list."
7621 msgstr ""
7622
7623 # type: textblock
7624 #: ../src/guestfs-actions.pod:2188 ../fish/guestfish-actions.pod:1629
7625 msgid ""
7626 "I<Note>: In order to make sure that all events have been read, you must call "
7627 "this function repeatedly until it returns an empty list.  The reason is that "
7628 "the call will read events up to the maximum appliance-to-host message size "
7629 "and leave remaining events in the queue."
7630 msgstr ""
7631
7632 # type: textblock
7633 #: ../src/guestfs-actions.pod:2194
7634 msgid ""
7635 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7636 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7637 "must call C<guestfs_free_inotify_event_list> after use>."
7638 msgstr ""
7639
7640 # type: =head2
7641 #: ../src/guestfs-actions.pod:2199
7642 msgid "guestfs_inotify_rm_watch"
7643 msgstr ""
7644
7645 # type: verbatim
7646 #: ../src/guestfs-actions.pod:2201
7647 #, no-wrap
7648 msgid ""
7649 " int\n"
7650 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
7651 "                           int wd);\n"
7652 "\n"
7653 msgstr ""
7654
7655 # type: textblock
7656 #: ../src/guestfs-actions.pod:2205
7657 msgid ""
7658 "Remove a previously defined inotify watch.  See "
7659 "C<guestfs_inotify_add_watch>."
7660 msgstr ""
7661
7662 # type: =head2
7663 #: ../src/guestfs-actions.pod:2210
7664 msgid "guestfs_inspect_get_arch"
7665 msgstr ""
7666
7667 # type: verbatim
7668 #: ../src/guestfs-actions.pod:2212
7669 #, no-wrap
7670 msgid ""
7671 " char *\n"
7672 " guestfs_inspect_get_arch (guestfs_h *g,\n"
7673 "                           const char *root);\n"
7674 "\n"
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:2216 ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:2308 ../src/guestfs-actions.pod:2332 ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2465
7679 msgid ""
7680 "This function should only be called with a root device string as returned by "
7681 "C<guestfs_inspect_os>."
7682 msgstr ""
7683
7684 # type: textblock
7685 #: ../src/guestfs-actions.pod:2219
7686 msgid ""
7687 "This returns the architecture of the inspected operating system.  The "
7688 "possible return values are listed under C<guestfs_file_architecture>."
7689 msgstr ""
7690
7691 # type: textblock
7692 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1653
7693 msgid ""
7694 "If the architecture could not be determined, then the string C<unknown> is "
7695 "returned."
7696 msgstr ""
7697
7698 # type: textblock
7699 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2418 ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2513 ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:1761 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1847 ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:1897
7700 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7701 msgstr ""
7702
7703 # type: =head2
7704 #: ../src/guestfs-actions.pod:2231
7705 msgid "guestfs_inspect_get_distro"
7706 msgstr ""
7707
7708 # type: verbatim
7709 #: ../src/guestfs-actions.pod:2233
7710 #, no-wrap
7711 msgid ""
7712 " char *\n"
7713 " guestfs_inspect_get_distro (guestfs_h *g,\n"
7714 "                             const char *root);\n"
7715 "\n"
7716 msgstr ""
7717
7718 # type: textblock
7719 #: ../src/guestfs-actions.pod:2240 ../fish/guestfish-actions.pod:1665
7720 msgid "This returns the distro (distribution) of the inspected operating system."
7721 msgstr ""
7722
7723 # type: textblock
7724 #: ../src/guestfs-actions.pod:2243 ../fish/guestfish-actions.pod:1668
7725 msgid "Currently defined distros are:"
7726 msgstr ""
7727
7728 # type: =item
7729 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1672
7730 msgid "\"archlinux\""
7731 msgstr ""
7732
7733 # type: textblock
7734 #: ../src/guestfs-actions.pod:2249 ../fish/guestfish-actions.pod:1674
7735 msgid "Arch Linux."
7736 msgstr ""
7737
7738 # type: =item
7739 #: ../src/guestfs-actions.pod:2251 ../fish/guestfish-actions.pod:1676
7740 msgid "\"debian\""
7741 msgstr ""
7742
7743 # type: textblock
7744 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1678
7745 msgid "Debian or a Debian-derived distro such as Ubuntu."
7746 msgstr ""
7747
7748 # type: =item
7749 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1680
7750 msgid "\"fedora\""
7751 msgstr ""
7752
7753 # type: textblock
7754 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1682
7755 msgid "Fedora."
7756 msgstr ""
7757
7758 # type: =item
7759 #: ../src/guestfs-actions.pod:2259 ../fish/guestfish-actions.pod:1684
7760 msgid "\"gentoo\""
7761 msgstr ""
7762
7763 # type: textblock
7764 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1686
7765 msgid "Gentoo."
7766 msgstr ""
7767
7768 # type: =item
7769 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1688
7770 msgid "\"meego\""
7771 msgstr ""
7772
7773 # type: textblock
7774 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1690
7775 msgid "MeeGo."
7776 msgstr ""
7777
7778 # type: =item
7779 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1692
7780 msgid "\"pardus\""
7781 msgstr ""
7782
7783 # type: textblock
7784 #: ../src/guestfs-actions.pod:2269 ../fish/guestfish-actions.pod:1694
7785 msgid "Pardus."
7786 msgstr ""
7787
7788 # type: =item
7789 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1696
7790 msgid "\"redhat-based\""
7791 msgstr ""
7792
7793 # type: textblock
7794 #: ../src/guestfs-actions.pod:2273 ../fish/guestfish-actions.pod:1698
7795 msgid "Some Red Hat-derived distro."
7796 msgstr ""
7797
7798 # type: =item
7799 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1700
7800 msgid "\"rhel\""
7801 msgstr ""
7802
7803 # type: textblock
7804 #: ../src/guestfs-actions.pod:2277 ../fish/guestfish-actions.pod:1702
7805 msgid "Red Hat Enterprise Linux and some derivatives."
7806 msgstr ""
7807
7808 # type: =item
7809 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2441 ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1834
7810 msgid "\"windows\""
7811 msgstr ""
7812
7813 # type: textblock
7814 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1706
7815 msgid ""
7816 "Windows does not have distributions.  This string is returned if the OS type "
7817 "is Windows."
7818 msgstr ""
7819
7820 # type: =item
7821 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1709
7822 msgid "\"ubuntu\""
7823 msgstr ""
7824
7825 # type: textblock
7826 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1711
7827 msgid "Ubuntu."
7828 msgstr ""
7829
7830 # type: =item
7831 #: ../src/guestfs-actions.pod:2288 ../src/guestfs-actions.pod:2445 ../fish/guestfish-actions.pod:1713 ../fish/guestfish-actions.pod:1838
7832 msgid "\"unknown\""
7833 msgstr ""
7834
7835 # type: textblock
7836 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1715
7837 msgid "The distro could not be determined."
7838 msgstr ""
7839
7840 # type: textblock
7841 #: ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2451 ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1844
7842 msgid ""
7843 "Future versions of libguestfs may return other strings here.  The caller "
7844 "should be prepared to handle any string."
7845 msgstr ""
7846
7847 # type: =head2
7848 #: ../src/guestfs-actions.pod:2302
7849 msgid "guestfs_inspect_get_filesystems"
7850 msgstr ""
7851
7852 # type: verbatim
7853 #: ../src/guestfs-actions.pod:2304
7854 #, no-wrap
7855 msgid ""
7856 " char **\n"
7857 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7858 "                                  const char *root);\n"
7859 "\n"
7860 msgstr ""
7861
7862 # type: textblock
7863 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1731
7864 msgid ""
7865 "This returns a list of all the filesystems that we think are associated with "
7866 "this operating system.  This includes the root filesystem, other ordinary "
7867 "filesystems, and non-mounted devices like swap partitions."
7868 msgstr ""
7869
7870 # type: textblock
7871 #: ../src/guestfs-actions.pod:2316 ../fish/guestfish-actions.pod:1736
7872 msgid ""
7873 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7874 "to be shared between operating systems."
7875 msgstr ""
7876
7877 # type: textblock
7878 #: ../src/guestfs-actions.pod:2319
7879 msgid ""
7880 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7881 "C<guestfs_inspect_get_mountpoints>."
7882 msgstr ""
7883
7884 # type: =head2
7885 #: ../src/guestfs-actions.pod:2326
7886 msgid "guestfs_inspect_get_major_version"
7887 msgstr ""
7888
7889 # type: verbatim
7890 #: ../src/guestfs-actions.pod:2328
7891 #, no-wrap
7892 msgid ""
7893 " int\n"
7894 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
7895 "                                    const char *root);\n"
7896 "\n"
7897 msgstr ""
7898
7899 # type: textblock
7900 #: ../src/guestfs-actions.pod:2335 ../fish/guestfish-actions.pod:1749
7901 msgid "This returns the major version number of the inspected operating system."
7902 msgstr ""
7903
7904 # type: textblock
7905 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1752
7906 msgid ""
7907 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7908 "popular public names used by the operating system.  Notably the operating "
7909 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7910 "1).  You can find out the real versions corresponding to releases of Windows "
7911 "by consulting Wikipedia or MSDN."
7912 msgstr ""
7913
7914 # type: textblock
7915 #: ../src/guestfs-actions.pod:2345 ../src/guestfs-actions.pod:2363 ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1773
7916 msgid "If the version could not be determined, then C<0> is returned."
7917 msgstr ""
7918
7919 # type: =head2
7920 #: ../src/guestfs-actions.pod:2351
7921 msgid "guestfs_inspect_get_minor_version"
7922 msgstr ""
7923
7924 # type: verbatim
7925 #: ../src/guestfs-actions.pod:2353
7926 #, no-wrap
7927 msgid ""
7928 " int\n"
7929 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7930 "                                    const char *root);\n"
7931 "\n"
7932 msgstr ""
7933
7934 # type: textblock
7935 #: ../src/guestfs-actions.pod:2360 ../fish/guestfish-actions.pod:1770
7936 msgid "This returns the minor version number of the inspected operating system."
7937 msgstr ""
7938
7939 # type: textblock
7940 #: ../src/guestfs-actions.pod:2365
7941 msgid ""
7942 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7943 "C<guestfs_inspect_get_major_version>."
7944 msgstr ""
7945
7946 # type: =head2
7947 #: ../src/guestfs-actions.pod:2370
7948 msgid "guestfs_inspect_get_mountpoints"
7949 msgstr ""
7950
7951 # type: verbatim
7952 #: ../src/guestfs-actions.pod:2372
7953 #, no-wrap
7954 msgid ""
7955 " char **\n"
7956 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
7957 "                                  const char *root);\n"
7958 "\n"
7959 msgstr ""
7960
7961 # type: textblock
7962 #: ../src/guestfs-actions.pod:2379 ../fish/guestfish-actions.pod:1785
7963 msgid ""
7964 "This returns a hash of where we think the filesystems associated with this "
7965 "operating system should be mounted.  Callers should note that this is at "
7966 "best an educated guess made by reading configuration files such as "
7967 "C</etc/fstab>."
7968 msgstr ""
7969
7970 # type: textblock
7971 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1790
7972 msgid ""
7973 "Each element in the returned hashtable has a key which is the path of the "
7974 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7975 "mounted there (eg. C</dev/sda1>)."
7976 msgstr ""
7977
7978 # type: textblock
7979 #: ../src/guestfs-actions.pod:2389 ../fish/guestfish-actions.pod:1795
7980 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7981 msgstr ""
7982
7983 # type: textblock
7984 #: ../src/guestfs-actions.pod:2392
7985 msgid ""
7986 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7987 "C<guestfs_inspect_get_filesystems>."
7988 msgstr ""
7989
7990 # type: textblock
7991 #: ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2777 ../src/guestfs-actions.pod:3790 ../src/guestfs-actions.pod:5465
7992 msgid ""
7993 "This function returns a NULL-terminated array of strings, or NULL if there "
7994 "was an error.  The array of strings will always have length C<2n+1>, where "
7995 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
7996 "caller must free the strings and the array after use>."
7997 msgstr ""
7998
7999 # type: =head2
8000 #: ../src/guestfs-actions.pod:2401
8001 msgid "guestfs_inspect_get_product_name"
8002 msgstr ""
8003
8004 # type: verbatim
8005 #: ../src/guestfs-actions.pod:2403
8006 #, no-wrap
8007 msgid ""
8008 " char *\n"
8009 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8010 "                                   const char *root);\n"
8011 "\n"
8012 msgstr ""
8013
8014 # type: textblock
8015 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1808
8016 msgid ""
8017 "This returns the product name of the inspected operating system.  The "
8018 "product name is generally some freeform string which can be displayed to the "
8019 "user, but should not be parsed by programs."
8020 msgstr ""
8021
8022 # type: textblock
8023 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1813
8024 msgid ""
8025 "If the product name could not be determined, then the string C<unknown> is "
8026 "returned."
8027 msgstr ""
8028
8029 # type: =head2
8030 #: ../src/guestfs-actions.pod:2423
8031 msgid "guestfs_inspect_get_type"
8032 msgstr ""
8033
8034 # type: verbatim
8035 #: ../src/guestfs-actions.pod:2425
8036 #, no-wrap
8037 msgid ""
8038 " char *\n"
8039 " guestfs_inspect_get_type (guestfs_h *g,\n"
8040 "                           const char *root);\n"
8041 "\n"
8042 msgstr ""
8043
8044 # type: textblock
8045 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1825
8046 msgid ""
8047 "This returns the type of the inspected operating system.  Currently defined "
8048 "types are:"
8049 msgstr ""
8050
8051 # type: =item
8052 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1830
8053 msgid "\"linux\""
8054 msgstr ""
8055
8056 # type: textblock
8057 #: ../src/guestfs-actions.pod:2439 ../fish/guestfish-actions.pod:1832
8058 msgid "Any Linux-based operating system."
8059 msgstr ""
8060
8061 # type: textblock
8062 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1836
8063 msgid "Any Microsoft Windows operating system."
8064 msgstr ""
8065
8066 # type: textblock
8067 #: ../src/guestfs-actions.pod:2447 ../fish/guestfish-actions.pod:1840
8068 msgid "The operating system type could not be determined."
8069 msgstr ""
8070
8071 # type: =head2
8072 #: ../src/guestfs-actions.pod:2459
8073 msgid "guestfs_inspect_get_windows_systemroot"
8074 msgstr ""
8075
8076 # type: verbatim
8077 #: ../src/guestfs-actions.pod:2461
8078 #, no-wrap
8079 msgid ""
8080 " char *\n"
8081 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8082 "                                         const char *root);\n"
8083 "\n"
8084 msgstr ""
8085
8086 # type: textblock
8087 #: ../src/guestfs-actions.pod:2468 ../fish/guestfish-actions.pod:1856
8088 msgid ""
8089 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8090 "is a directory path such as C</WINDOWS>."
8091 msgstr ""
8092
8093 # type: textblock
8094 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1859
8095 msgid ""
8096 "This call assumes that the guest is Windows and that the systemroot could be "
8097 "determined by inspection.  If this is not the case then an error is "
8098 "returned."
8099 msgstr ""
8100
8101 # type: =head2
8102 #: ../src/guestfs-actions.pod:2480
8103 msgid "guestfs_inspect_os"
8104 msgstr ""
8105
8106 # type: verbatim
8107 #: ../src/guestfs-actions.pod:2482
8108 #, no-wrap
8109 msgid ""
8110 " char **\n"
8111 " guestfs_inspect_os (guestfs_h *g);\n"
8112 "\n"
8113 msgstr ""
8114
8115 # type: textblock
8116 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1869
8117 msgid ""
8118 "This function uses other libguestfs functions and certain heuristics to "
8119 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8120 "for operating systems."
8121 msgstr ""
8122
8123 # type: textblock
8124 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1873
8125 msgid "The list returned is empty if no operating systems were found."
8126 msgstr ""
8127
8128 # type: textblock
8129 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1875
8130 msgid ""
8131 "If one operating system was found, then this returns a list with a single "
8132 "element, which is the name of the root filesystem of this operating system.  "
8133 "It is also possible for this function to return a list containing more than "
8134 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8135 "element being the root filesystem of one of the operating systems."
8136 msgstr ""
8137
8138 # type: textblock
8139 #: ../src/guestfs-actions.pod:2498
8140 msgid ""
8141 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8142 "functions in order to query further information about each operating system, "
8143 "such as the name and version."
8144 msgstr ""
8145
8146 # type: textblock
8147 #: ../src/guestfs-actions.pod:2503
8148 msgid ""
8149 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8150 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8151 "the contents.  This should be called with no disks currently mounted.  The "
8152 "function may also use Augeas, so any existing Augeas handle will be closed."
8153 msgstr ""
8154
8155 # type: textblock
8156 #: ../src/guestfs-actions.pod:2509 ../fish/guestfish-actions.pod:1893
8157 msgid ""
8158 "This function cannot decrypt encrypted disks.  The caller must do that first "
8159 "(supplying the necessary keys) if the disk is encrypted."
8160 msgstr ""
8161
8162 # type: textblock
8163 #: ../src/guestfs-actions.pod:2515 ../src/guestfs-actions.pod:2737 ../src/guestfs-actions.pod:2795
8164 msgid "See also C<guestfs_list_filesystems>."
8165 msgstr ""
8166
8167 # type: =head2
8168 #: ../src/guestfs-actions.pod:2521
8169 msgid "guestfs_is_blockdev"
8170 msgstr ""
8171
8172 # type: verbatim
8173 #: ../src/guestfs-actions.pod:2523
8174 #, no-wrap
8175 msgid ""
8176 " int\n"
8177 " guestfs_is_blockdev (guestfs_h *g,\n"
8178 "                      const char *path);\n"
8179 "\n"
8180 msgstr ""
8181
8182 # type: textblock
8183 #: ../src/guestfs-actions.pod:2527 ../fish/guestfish-actions.pod:1905
8184 msgid ""
8185 "This returns C<true> if and only if there is a block device with the given "
8186 "C<path> name."
8187 msgstr ""
8188
8189 # type: textblock
8190 #: ../src/guestfs-actions.pod:2530 ../src/guestfs-actions.pod:2555 ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2594 ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:2669
8191 msgid "See also C<guestfs_stat>."
8192 msgstr ""
8193
8194 # type: =head2
8195 #: ../src/guestfs-actions.pod:2534
8196 msgid "guestfs_is_busy"
8197 msgstr ""
8198
8199 # type: verbatim
8200 #: ../src/guestfs-actions.pod:2536
8201 #, no-wrap
8202 msgid ""
8203 " int\n"
8204 " guestfs_is_busy (guestfs_h *g);\n"
8205 "\n"
8206 msgstr ""
8207
8208 # type: textblock
8209 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1914
8210 msgid ""
8211 "This returns true iff this handle is busy processing a command (in the "
8212 "C<BUSY> state)."
8213 msgstr ""
8214
8215 # type: =head2
8216 #: ../src/guestfs-actions.pod:2546
8217 msgid "guestfs_is_chardev"
8218 msgstr ""
8219
8220 # type: verbatim
8221 #: ../src/guestfs-actions.pod:2548
8222 #, no-wrap
8223 msgid ""
8224 " int\n"
8225 " guestfs_is_chardev (guestfs_h *g,\n"
8226 "                     const char *path);\n"
8227 "\n"
8228 msgstr ""
8229
8230 # type: textblock
8231 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1923
8232 msgid ""
8233 "This returns C<true> if and only if there is a character device with the "
8234 "given C<path> name."
8235 msgstr ""
8236
8237 # type: =head2
8238 #: ../src/guestfs-actions.pod:2559
8239 msgid "guestfs_is_config"
8240 msgstr ""
8241
8242 # type: verbatim
8243 #: ../src/guestfs-actions.pod:2561
8244 #, no-wrap
8245 msgid ""
8246 " int\n"
8247 " guestfs_is_config (guestfs_h *g);\n"
8248 "\n"
8249 msgstr ""
8250
8251 # type: textblock
8252 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1932
8253 msgid ""
8254 "This returns true iff this handle is being configured (in the C<CONFIG> "
8255 "state)."
8256 msgstr ""
8257
8258 # type: =head2
8259 #: ../src/guestfs-actions.pod:2571
8260 msgid "guestfs_is_dir"
8261 msgstr ""
8262
8263 # type: verbatim
8264 #: ../src/guestfs-actions.pod:2573
8265 #, no-wrap
8266 msgid ""
8267 " int\n"
8268 " guestfs_is_dir (guestfs_h *g,\n"
8269 "                 const char *path);\n"
8270 "\n"
8271 msgstr ""
8272
8273 # type: textblock
8274 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1941
8275 msgid ""
8276 "This returns C<true> if and only if there is a directory with the given "
8277 "C<path> name.  Note that it returns false for other objects like files."
8278 msgstr ""
8279
8280 # type: =head2
8281 #: ../src/guestfs-actions.pod:2585
8282 msgid "guestfs_is_fifo"
8283 msgstr ""
8284
8285 # type: verbatim
8286 #: ../src/guestfs-actions.pod:2587
8287 #, no-wrap
8288 msgid ""
8289 " int\n"
8290 " guestfs_is_fifo (guestfs_h *g,\n"
8291 "                  const char *path);\n"
8292 "\n"
8293 msgstr ""
8294
8295 # type: textblock
8296 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1951
8297 msgid ""
8298 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8299 "given C<path> name."
8300 msgstr ""
8301
8302 # type: =head2
8303 #: ../src/guestfs-actions.pod:2598
8304 msgid "guestfs_is_file"
8305 msgstr ""
8306
8307 # type: verbatim
8308 #: ../src/guestfs-actions.pod:2600
8309 #, no-wrap
8310 msgid ""
8311 " int\n"
8312 " guestfs_is_file (guestfs_h *g,\n"
8313 "                  const char *path);\n"
8314 "\n"
8315 msgstr ""
8316
8317 # type: textblock
8318 #: ../src/guestfs-actions.pod:2604 ../fish/guestfish-actions.pod:1960
8319 msgid ""
8320 "This returns C<true> if and only if there is a regular file with the given "
8321 "C<path> name.  Note that it returns false for other objects like "
8322 "directories."
8323 msgstr ""
8324
8325 # type: =head2
8326 #: ../src/guestfs-actions.pod:2612
8327 msgid "guestfs_is_launching"
8328 msgstr ""
8329
8330 # type: verbatim
8331 #: ../src/guestfs-actions.pod:2614
8332 #, no-wrap
8333 msgid ""
8334 " int\n"
8335 " guestfs_is_launching (guestfs_h *g);\n"
8336 "\n"
8337 msgstr ""
8338
8339 # type: textblock
8340 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:1970
8341 msgid ""
8342 "This returns true iff this handle is launching the subprocess (in the "
8343 "C<LAUNCHING> state)."
8344 msgstr ""
8345
8346 # type: =head2
8347 #: ../src/guestfs-actions.pod:2624
8348 msgid "guestfs_is_lv"
8349 msgstr ""
8350
8351 # type: verbatim
8352 #: ../src/guestfs-actions.pod:2626
8353 #, no-wrap
8354 msgid ""
8355 " int\n"
8356 " guestfs_is_lv (guestfs_h *g,\n"
8357 "                const char *device);\n"
8358 "\n"
8359 msgstr ""
8360
8361 # type: textblock
8362 #: ../src/guestfs-actions.pod:2630 ../fish/guestfish-actions.pod:1979
8363 msgid ""
8364 "This command tests whether C<device> is a logical volume, and returns true "
8365 "iff this is the case."
8366 msgstr ""
8367
8368 # type: =head2
8369 #: ../src/guestfs-actions.pod:2635
8370 msgid "guestfs_is_ready"
8371 msgstr ""
8372
8373 # type: verbatim
8374 #: ../src/guestfs-actions.pod:2637
8375 #, no-wrap
8376 msgid ""
8377 " int\n"
8378 " guestfs_is_ready (guestfs_h *g);\n"
8379 "\n"
8380 msgstr ""
8381
8382 # type: textblock
8383 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:1986
8384 msgid ""
8385 "This returns true iff this handle is ready to accept commands (in the "
8386 "C<READY> state)."
8387 msgstr ""
8388
8389 # type: =head2
8390 #: ../src/guestfs-actions.pod:2647
8391 msgid "guestfs_is_socket"
8392 msgstr ""
8393
8394 # type: verbatim
8395 #: ../src/guestfs-actions.pod:2649
8396 #, no-wrap
8397 msgid ""
8398 " int\n"
8399 " guestfs_is_socket (guestfs_h *g,\n"
8400 "                    const char *path);\n"
8401 "\n"
8402 msgstr ""
8403
8404 # type: textblock
8405 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1995
8406 msgid ""
8407 "This returns C<true> if and only if there is a Unix domain socket with the "
8408 "given C<path> name."
8409 msgstr ""
8410
8411 # type: =head2
8412 #: ../src/guestfs-actions.pod:2660
8413 msgid "guestfs_is_symlink"
8414 msgstr ""
8415
8416 # type: verbatim
8417 #: ../src/guestfs-actions.pod:2662
8418 #, no-wrap
8419 msgid ""
8420 " int\n"
8421 " guestfs_is_symlink (guestfs_h *g,\n"
8422 "                     const char *path);\n"
8423 "\n"
8424 msgstr ""
8425
8426 # type: textblock
8427 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:2004
8428 msgid ""
8429 "This returns C<true> if and only if there is a symbolic link with the given "
8430 "C<path> name."
8431 msgstr ""
8432
8433 # type: =head2
8434 #: ../src/guestfs-actions.pod:2673
8435 msgid "guestfs_kill_subprocess"
8436 msgstr ""
8437
8438 # type: verbatim
8439 #: ../src/guestfs-actions.pod:2675
8440 #, no-wrap
8441 msgid ""
8442 " int\n"
8443 " guestfs_kill_subprocess (guestfs_h *g);\n"
8444 "\n"
8445 msgstr ""
8446
8447 # type: textblock
8448 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:2013
8449 msgid "This kills the qemu subprocess.  You should never need to call this."
8450 msgstr ""
8451
8452 # type: =head2
8453 #: ../src/guestfs-actions.pod:2682
8454 msgid "guestfs_launch"
8455 msgstr ""
8456
8457 # type: verbatim
8458 #: ../src/guestfs-actions.pod:2684
8459 #, no-wrap
8460 msgid ""
8461 " int\n"
8462 " guestfs_launch (guestfs_h *g);\n"
8463 "\n"
8464 msgstr ""
8465
8466 # type: textblock
8467 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:2021
8468 msgid ""
8469 "Internally libguestfs is implemented by running a virtual machine using "
8470 "L<qemu(1)>."
8471 msgstr ""
8472
8473 # type: textblock
8474 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:2024
8475 msgid ""
8476 "You should call this after configuring the handle (eg. adding drives) but "
8477 "before performing any actions."
8478 msgstr ""
8479
8480 # type: =head2
8481 #: ../src/guestfs-actions.pod:2695
8482 msgid "guestfs_lchown"
8483 msgstr ""
8484
8485 # type: verbatim
8486 #: ../src/guestfs-actions.pod:2697
8487 #, no-wrap
8488 msgid ""
8489 " int\n"
8490 " guestfs_lchown (guestfs_h *g,\n"
8491 "                 int owner,\n"
8492 "                 int group,\n"
8493 "                 const char *path);\n"
8494 "\n"
8495 msgstr ""
8496
8497 # type: textblock
8498 #: ../src/guestfs-actions.pod:2703
8499 msgid ""
8500 "Change the file owner to C<owner> and group to C<group>.  This is like "
8501 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8502 "changed, not the target."
8503 msgstr ""
8504
8505 # type: =head2
8506 #: ../src/guestfs-actions.pod:2713
8507 msgid "guestfs_lgetxattrs"
8508 msgstr ""
8509
8510 # type: verbatim
8511 #: ../src/guestfs-actions.pod:2715
8512 #, no-wrap
8513 msgid ""
8514 " struct guestfs_xattr_list *\n"
8515 " guestfs_lgetxattrs (guestfs_h *g,\n"
8516 "                     const char *path);\n"
8517 "\n"
8518 msgstr ""
8519
8520 # type: textblock
8521 #: ../src/guestfs-actions.pod:2719
8522 msgid ""
8523 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8524 "then it returns the extended attributes of the link itself."
8525 msgstr ""
8526
8527 # type: =head2
8528 #: ../src/guestfs-actions.pod:2728
8529 msgid "guestfs_list_devices"
8530 msgstr ""
8531
8532 # type: verbatim
8533 #: ../src/guestfs-actions.pod:2730
8534 #, no-wrap
8535 msgid ""
8536 " char **\n"
8537 " guestfs_list_devices (guestfs_h *g);\n"
8538 "\n"
8539 msgstr ""
8540
8541 # type: textblock
8542 #: ../src/guestfs-actions.pod:2733 ../fish/guestfish-actions.pod:2051
8543 msgid "List all the block devices."
8544 msgstr ""
8545
8546 # type: textblock
8547 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:2053
8548 msgid "The full block device names are returned, eg. C</dev/sda>."
8549 msgstr ""
8550
8551 # type: =head2
8552 #: ../src/guestfs-actions.pod:2743
8553 msgid "guestfs_list_filesystems"
8554 msgstr ""
8555
8556 # type: verbatim
8557 #: ../src/guestfs-actions.pod:2745
8558 #, no-wrap
8559 msgid ""
8560 " char **\n"
8561 " guestfs_list_filesystems (guestfs_h *g);\n"
8562 "\n"
8563 msgstr ""
8564
8565 # type: textblock
8566 #: ../src/guestfs-actions.pod:2748 ../fish/guestfish-actions.pod:2061
8567 msgid ""
8568 "This inspection command looks for filesystems on partitions, block devices "
8569 "and logical volumes, returning a list of devices containing filesystems and "
8570 "their type."
8571 msgstr ""
8572
8573 # type: textblock
8574 #: ../src/guestfs-actions.pod:2752 ../fish/guestfish-actions.pod:2065
8575 msgid ""
8576 "The return value is a hash, where the keys are the devices containing "
8577 "filesystems, and the values are the filesystem types.  For example:"
8578 msgstr ""
8579
8580 # type: verbatim
8581 #: ../src/guestfs-actions.pod:2756 ../fish/guestfish-actions.pod:2069
8582 #, no-wrap
8583 msgid ""
8584 " \"/dev/sda1\" => \"ntfs\"\n"
8585 " \"/dev/sda2\" => \"ext2\"\n"
8586 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8587 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8588 "\n"
8589 msgstr ""
8590
8591 # type: textblock
8592 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:2074
8593 msgid ""
8594 "The value can have the special value \"unknown\", meaning the content of the "
8595 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8596 msgstr ""
8597
8598 # type: textblock
8599 #: ../src/guestfs-actions.pod:2765
8600 msgid ""
8601 "This command runs other libguestfs commands, which might include "
8602 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8603 "soon after launch and only when nothing is mounted."
8604 msgstr ""
8605
8606 # type: textblock
8607 #: ../src/guestfs-actions.pod:2769
8608 msgid ""
8609 "Not all of the filesystems returned will be mountable.  In particular, swap "
8610 "partitions are returned in the list.  Also this command does not check that "
8611 "each filesystem found is valid and mountable, and some filesystems might be "
8612 "mountable but require special options.  Filesystems may not all belong to a "
8613 "single logical operating system (use C<guestfs_inspect_os> to look for "
8614 "OSes)."
8615 msgstr ""
8616
8617 # type: =head2
8618 #: ../src/guestfs-actions.pod:2783
8619 msgid "guestfs_list_partitions"
8620 msgstr ""
8621
8622 # type: verbatim
8623 #: ../src/guestfs-actions.pod:2785
8624 #, no-wrap
8625 msgid ""
8626 " char **\n"
8627 " guestfs_list_partitions (guestfs_h *g);\n"
8628 "\n"
8629 msgstr ""
8630
8631 # type: textblock
8632 #: ../src/guestfs-actions.pod:2788 ../fish/guestfish-actions.pod:2094
8633 msgid "List all the partitions detected on all block devices."
8634 msgstr ""
8635
8636 # type: textblock
8637 #: ../src/guestfs-actions.pod:2790 ../fish/guestfish-actions.pod:2096
8638 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8639 msgstr ""
8640
8641 # type: textblock
8642 #: ../src/guestfs-actions.pod:2792
8643 msgid ""
8644 "This does not return logical volumes.  For that you will need to call "
8645 "C<guestfs_lvs>."
8646 msgstr ""
8647
8648 # type: =head2
8649 #: ../src/guestfs-actions.pod:2801
8650 msgid "guestfs_ll"
8651 msgstr ""
8652
8653 # type: verbatim
8654 #: ../src/guestfs-actions.pod:2803
8655 #, no-wrap
8656 msgid ""
8657 " char *\n"
8658 " guestfs_ll (guestfs_h *g,\n"
8659 "             const char *directory);\n"
8660 "\n"
8661 msgstr ""
8662
8663 # type: textblock
8664 #: ../src/guestfs-actions.pod:2807 ../fish/guestfish-actions.pod:2107
8665 msgid ""
8666 "List the files in C<directory> (relative to the root directory, there is no "
8667 "cwd) in the format of 'ls -la'."
8668 msgstr ""
8669
8670 # type: textblock
8671 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:2110
8672 msgid ""
8673 "This command is mostly useful for interactive sessions.  It is I<not> "
8674 "intended that you try to parse the output string."
8675 msgstr ""
8676
8677 # type: =head2
8678 #: ../src/guestfs-actions.pod:2816
8679 msgid "guestfs_ln"
8680 msgstr ""
8681
8682 # type: verbatim
8683 #: ../src/guestfs-actions.pod:2818
8684 #, no-wrap
8685 msgid ""
8686 " int\n"
8687 " guestfs_ln (guestfs_h *g,\n"
8688 "             const char *target,\n"
8689 "             const char *linkname);\n"
8690 "\n"
8691 msgstr ""
8692
8693 # type: textblock
8694 #: ../src/guestfs-actions.pod:2823 ../fish/guestfish-actions.pod:2117
8695 msgid "This command creates a hard link using the C<ln> command."
8696 msgstr ""
8697
8698 # type: =head2
8699 #: ../src/guestfs-actions.pod:2827
8700 msgid "guestfs_ln_f"
8701 msgstr ""
8702
8703 # type: verbatim
8704 #: ../src/guestfs-actions.pod:2829
8705 #, no-wrap
8706 msgid ""
8707 " int\n"
8708 " guestfs_ln_f (guestfs_h *g,\n"
8709 "               const char *target,\n"
8710 "               const char *linkname);\n"
8711 "\n"
8712 msgstr ""
8713
8714 # type: textblock
8715 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:2123
8716 msgid ""
8717 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8718 "option removes the link (C<linkname>) if it exists already."
8719 msgstr ""
8720
8721 # type: =head2
8722 #: ../src/guestfs-actions.pod:2839
8723 msgid "guestfs_ln_s"
8724 msgstr ""
8725
8726 # type: verbatim
8727 #: ../src/guestfs-actions.pod:2841
8728 #, no-wrap
8729 msgid ""
8730 " int\n"
8731 " guestfs_ln_s (guestfs_h *g,\n"
8732 "               const char *target,\n"
8733 "               const char *linkname);\n"
8734 "\n"
8735 msgstr ""
8736
8737 # type: textblock
8738 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:2130
8739 msgid "This command creates a symbolic link using the C<ln -s> command."
8740 msgstr ""
8741
8742 # type: =head2
8743 #: ../src/guestfs-actions.pod:2850
8744 msgid "guestfs_ln_sf"
8745 msgstr ""
8746
8747 # type: verbatim
8748 #: ../src/guestfs-actions.pod:2852
8749 #, no-wrap
8750 msgid ""
8751 " int\n"
8752 " guestfs_ln_sf (guestfs_h *g,\n"
8753 "                const char *target,\n"
8754 "                const char *linkname);\n"
8755 "\n"
8756 msgstr ""
8757
8758 # type: textblock
8759 #: ../src/guestfs-actions.pod:2857 ../fish/guestfish-actions.pod:2136
8760 msgid ""
8761 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8762 "option removes the link (C<linkname>) if it exists already."
8763 msgstr ""
8764
8765 # type: =head2
8766 #: ../src/guestfs-actions.pod:2862
8767 msgid "guestfs_lremovexattr"
8768 msgstr ""
8769
8770 # type: verbatim
8771 #: ../src/guestfs-actions.pod:2864
8772 #, no-wrap
8773 msgid ""
8774 " int\n"
8775 " guestfs_lremovexattr (guestfs_h *g,\n"
8776 "                       const char *xattr,\n"
8777 "                       const char *path);\n"
8778 "\n"
8779 msgstr ""
8780
8781 # type: textblock
8782 #: ../src/guestfs-actions.pod:2869
8783 msgid ""
8784 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8785 "link, then it removes an extended attribute of the link itself."
8786 msgstr ""
8787
8788 # type: =head2
8789 #: ../src/guestfs-actions.pod:2875
8790 msgid "guestfs_ls"
8791 msgstr ""
8792
8793 # type: verbatim
8794 #: ../src/guestfs-actions.pod:2877
8795 #, no-wrap
8796 msgid ""
8797 " char **\n"
8798 " guestfs_ls (guestfs_h *g,\n"
8799 "             const char *directory);\n"
8800 "\n"
8801 msgstr ""
8802
8803 # type: textblock
8804 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:2151
8805 msgid ""
8806 "List the files in C<directory> (relative to the root directory, there is no "
8807 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
8808 "shown."
8809 msgstr ""
8810
8811 # type: textblock
8812 #: ../src/guestfs-actions.pod:2885
8813 msgid ""
8814 "This command is mostly useful for interactive sessions.  Programs should "
8815 "probably use C<guestfs_readdir> instead."
8816 msgstr ""
8817
8818 # type: =head2
8819 #: ../src/guestfs-actions.pod:2892
8820 msgid "guestfs_lsetxattr"
8821 msgstr ""
8822
8823 # type: verbatim
8824 #: ../src/guestfs-actions.pod:2894
8825 #, no-wrap
8826 msgid ""
8827 " int\n"
8828 " guestfs_lsetxattr (guestfs_h *g,\n"
8829 "                    const char *xattr,\n"
8830 "                    const char *val,\n"
8831 "                    int vallen,\n"
8832 "                    const char *path);\n"
8833 "\n"
8834 msgstr ""
8835
8836 # type: textblock
8837 #: ../src/guestfs-actions.pod:2901
8838 msgid ""
8839 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8840 "then it sets an extended attribute of the link itself."
8841 msgstr ""
8842
8843 # type: =head2
8844 #: ../src/guestfs-actions.pod:2907
8845 msgid "guestfs_lstat"
8846 msgstr ""
8847
8848 # type: verbatim
8849 #: ../src/guestfs-actions.pod:2909
8850 #, no-wrap
8851 msgid ""
8852 " struct guestfs_stat *\n"
8853 " guestfs_lstat (guestfs_h *g,\n"
8854 "                const char *path);\n"
8855 "\n"
8856 msgstr ""
8857
8858 # type: textblock
8859 #: ../src/guestfs-actions.pod:2913 ../src/guestfs-actions.pod:5108 ../fish/guestfish-actions.pod:2170 ../fish/guestfish-actions.pod:3752
8860 msgid "Returns file information for the given C<path>."
8861 msgstr ""
8862
8863 # type: textblock
8864 #: ../src/guestfs-actions.pod:2915
8865 msgid ""
8866 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8867 "link, then the link is stat-ed, not the file it refers to."
8868 msgstr ""
8869
8870 # type: textblock
8871 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2176
8872 msgid "This is the same as the C<lstat(2)> system call."
8873 msgstr ""
8874
8875 # type: textblock
8876 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:5112
8877 msgid ""
8878 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8879 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8880 msgstr ""
8881
8882 # type: =head2
8883 #: ../src/guestfs-actions.pod:2925
8884 msgid "guestfs_lstatlist"
8885 msgstr ""
8886
8887 # type: verbatim
8888 #: ../src/guestfs-actions.pod:2927
8889 #, no-wrap
8890 msgid ""
8891 " struct guestfs_stat_list *\n"
8892 " guestfs_lstatlist (guestfs_h *g,\n"
8893 "                    const char *path,\n"
8894 "                    char *const *names);\n"
8895 "\n"
8896 msgstr ""
8897
8898 # type: textblock
8899 #: ../src/guestfs-actions.pod:2932
8900 msgid ""
8901 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8902 "files, where all files are in the directory C<path>.  C<names> is the list "
8903 "of files from this directory."
8904 msgstr ""
8905
8906 # type: textblock
8907 #: ../src/guestfs-actions.pod:2936 ../fish/guestfish-actions.pod:2186
8908 msgid ""
8909 "On return you get a list of stat structs, with a one-to-one correspondence "
8910 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8911 "then the C<ino> field of that structure is set to C<-1>."
8912 msgstr ""
8913
8914 # type: textblock
8915 #: ../src/guestfs-actions.pod:2941
8916 msgid ""
8917 "This call is intended for programs that want to efficiently list a directory "
8918 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8919 "for a similarly efficient call for getting extended attributes.  Very long "
8920 "directory listings might cause the protocol message size to be exceeded, "
8921 "causing this call to fail.  The caller must split up such requests into "
8922 "smaller groups of names."
8923 msgstr ""
8924
8925 # type: textblock
8926 #: ../src/guestfs-actions.pod:2949
8927 msgid ""
8928 "This function returns a C<struct guestfs_stat_list *> (see "
8929 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8930 "must call C<guestfs_free_stat_list> after use>."
8931 msgstr ""
8932
8933 # type: =head2
8934 #: ../src/guestfs-actions.pod:2954
8935 msgid "guestfs_luks_add_key"
8936 msgstr ""
8937
8938 # type: verbatim
8939 #: ../src/guestfs-actions.pod:2956
8940 #, no-wrap
8941 msgid ""
8942 " int\n"
8943 " guestfs_luks_add_key (guestfs_h *g,\n"
8944 "                       const char *device,\n"
8945 "                       const char *key,\n"
8946 "                       const char *newkey,\n"
8947 "                       int keyslot);\n"
8948 "\n"
8949 msgstr ""
8950
8951 # type: textblock
8952 #: ../src/guestfs-actions.pod:2963 ../fish/guestfish-actions.pod:2203
8953 msgid ""
8954 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8955 "existing key, and is used to access the device.  C<newkey> is the new key to "
8956 "add.  C<keyslot> is the key slot that will be replaced."
8957 msgstr ""
8958
8959 # type: textblock
8960 #: ../src/guestfs-actions.pod:2968
8961 msgid ""
8962 "Note that if C<keyslot> already contains a key, then this command will "
8963 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8964 msgstr ""
8965
8966 # type: textblock
8967 #: ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3049 ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3096
8968 msgid ""
8969 "This function takes a key or passphrase parameter which could contain "
8970 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8971 "information."
8972 msgstr ""
8973
8974 # type: =head2
8975 #: ../src/guestfs-actions.pod:2978
8976 msgid "guestfs_luks_close"
8977 msgstr ""
8978
8979 # type: verbatim
8980 #: ../src/guestfs-actions.pod:2980
8981 #, no-wrap
8982 msgid ""
8983 " int\n"
8984 " guestfs_luks_close (guestfs_h *g,\n"
8985 "                     const char *device);\n"
8986 "\n"
8987 msgstr ""
8988
8989 # type: textblock
8990 #: ../src/guestfs-actions.pod:2984
8991 msgid ""
8992 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
8993 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
8994 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
8995 "underlying block device."
8996 msgstr ""
8997
8998 # type: =head2
8999 #: ../src/guestfs-actions.pod:2992
9000 msgid "guestfs_luks_format"
9001 msgstr ""
9002
9003 # type: verbatim
9004 #: ../src/guestfs-actions.pod:2994
9005 #, no-wrap
9006 msgid ""
9007 " int\n"
9008 " guestfs_luks_format (guestfs_h *g,\n"
9009 "                      const char *device,\n"
9010 "                      const char *key,\n"
9011 "                      int keyslot);\n"
9012 "\n"
9013 msgstr ""
9014
9015 # type: textblock
9016 #: ../src/guestfs-actions.pod:3000 ../fish/guestfish-actions.pod:2229
9017 msgid ""
9018 "This command erases existing data on C<device> and formats the device as a "
9019 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9020 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9021 msgstr ""
9022
9023 # type: textblock
9024 #: ../src/guestfs-actions.pod:3007 ../src/guestfs-actions.pod:3028 ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:2237 ../fish/guestfish-actions.pod:2250 ../fish/guestfish-actions.pod:2334 ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3651 ../fish/guestfish-actions.pod:3667 ../fish/guestfish-actions.pod:3682 ../fish/guestfish-actions.pod:4397
9025 msgid ""
9026 "B<This command is dangerous.  Without careful use you can easily destroy all "
9027 "your data>."
9028 msgstr ""
9029
9030 # type: =head2
9031 #: ../src/guestfs-actions.pod:3014
9032 msgid "guestfs_luks_format_cipher"
9033 msgstr ""
9034
9035 # type: verbatim
9036 #: ../src/guestfs-actions.pod:3016
9037 #, no-wrap
9038 msgid ""
9039 " int\n"
9040 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9041 "                             const char *device,\n"
9042 "                             const char *key,\n"
9043 "                             int keyslot,\n"
9044 "                             const char *cipher);\n"
9045 "\n"
9046 msgstr ""
9047
9048 # type: textblock
9049 #: ../src/guestfs-actions.pod:3023
9050 msgid ""
9051 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9052 "set the C<cipher> used."
9053 msgstr ""
9054
9055 # type: =head2
9056 #: ../src/guestfs-actions.pod:3035
9057 msgid "guestfs_luks_kill_slot"
9058 msgstr ""
9059
9060 # type: verbatim
9061 #: ../src/guestfs-actions.pod:3037
9062 #, no-wrap
9063 msgid ""
9064 " int\n"
9065 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9066 "                         const char *device,\n"
9067 "                         const char *key,\n"
9068 "                         int keyslot);\n"
9069 "\n"
9070 msgstr ""
9071
9072 # type: textblock
9073 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2257
9074 msgid ""
9075 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9076 "device C<device>.  C<key> must be one of the I<other> keys."
9077 msgstr ""
9078
9079 # type: =head2
9080 #: ../src/guestfs-actions.pod:3053
9081 msgid "guestfs_luks_open"
9082 msgstr ""
9083
9084 # type: verbatim
9085 #: ../src/guestfs-actions.pod:3055
9086 #, no-wrap
9087 msgid ""
9088 " int\n"
9089 " guestfs_luks_open (guestfs_h *g,\n"
9090 "                    const char *device,\n"
9091 "                    const char *key,\n"
9092 "                    const char *mapname);\n"
9093 "\n"
9094 msgstr ""
9095
9096 # type: textblock
9097 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2268
9098 msgid ""
9099 "This command opens a block device which has been encrypted according to the "
9100 "Linux Unified Key Setup (LUKS) standard."
9101 msgstr ""
9102
9103 # type: textblock
9104 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2271
9105 msgid "C<device> is the encrypted block device or partition."
9106 msgstr ""
9107
9108 # type: textblock
9109 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2273
9110 msgid ""
9111 "The caller must supply one of the keys associated with the LUKS block "
9112 "device, in the C<key> parameter."
9113 msgstr ""
9114
9115 # type: textblock
9116 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2276
9117 msgid ""
9118 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9119 "writes to this block device are decrypted from and encrypted to the "
9120 "underlying C<device> respectively."
9121 msgstr ""
9122
9123 # type: textblock
9124 #: ../src/guestfs-actions.pod:3073
9125 msgid ""
9126 "If this block device contains LVM volume groups, then calling "
9127 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9128 "visible."
9129 msgstr ""
9130
9131 # type: =head2
9132 #: ../src/guestfs-actions.pod:3083
9133 msgid "guestfs_luks_open_ro"
9134 msgstr ""
9135
9136 # type: verbatim
9137 #: ../src/guestfs-actions.pod:3085
9138 #, no-wrap
9139 msgid ""
9140 " int\n"
9141 " guestfs_luks_open_ro (guestfs_h *g,\n"
9142 "                       const char *device,\n"
9143 "                       const char *key,\n"
9144 "                       const char *mapname);\n"
9145 "\n"
9146 msgstr ""
9147
9148 # type: textblock
9149 #: ../src/guestfs-actions.pod:3091
9150 msgid ""
9151 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9152 "created."
9153 msgstr ""
9154
9155 # type: =head2
9156 #: ../src/guestfs-actions.pod:3100
9157 msgid "guestfs_lvcreate"
9158 msgstr ""
9159
9160 # type: verbatim
9161 #: ../src/guestfs-actions.pod:3102
9162 #, no-wrap
9163 msgid ""
9164 " int\n"
9165 " guestfs_lvcreate (guestfs_h *g,\n"
9166 "                   const char *logvol,\n"
9167 "                   const char *volgroup,\n"
9168 "                   int mbytes);\n"
9169 "\n"
9170 msgstr ""
9171
9172 # type: textblock
9173 #: ../src/guestfs-actions.pod:3108 ../fish/guestfish-actions.pod:2301
9174 msgid ""
9175 "This creates an LVM logical volume called C<logvol> on the volume group "
9176 "C<volgroup>, with C<size> megabytes."
9177 msgstr ""
9178
9179 # type: =head2
9180 #: ../src/guestfs-actions.pod:3113
9181 msgid "guestfs_lvm_canonical_lv_name"
9182 msgstr ""
9183
9184 # type: verbatim
9185 #: ../src/guestfs-actions.pod:3115
9186 #, no-wrap
9187 msgid ""
9188 " char *\n"
9189 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9190 "                                const char *lvname);\n"
9191 "\n"
9192 msgstr ""
9193
9194 # type: textblock
9195 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2308
9196 msgid ""
9197 "This converts alternative naming schemes for LVs that you might find to the "
9198 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9199 "C</dev/VG/LV>."
9200 msgstr ""
9201
9202 # type: textblock
9203 #: ../src/guestfs-actions.pod:3123 ../fish/guestfish-actions.pod:2312
9204 msgid ""
9205 "This command returns an error if the C<lvname> parameter does not refer to a "
9206 "logical volume."
9207 msgstr ""
9208
9209 # type: textblock
9210 #: ../src/guestfs-actions.pod:3126
9211 msgid "See also C<guestfs_is_lv>."
9212 msgstr ""
9213
9214 # type: =head2
9215 #: ../src/guestfs-actions.pod:3131
9216 msgid "guestfs_lvm_clear_filter"
9217 msgstr ""
9218
9219 # type: verbatim
9220 #: ../src/guestfs-actions.pod:3133
9221 #, no-wrap
9222 msgid ""
9223 " int\n"
9224 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
9225 "\n"
9226 msgstr ""
9227
9228 # type: textblock
9229 #: ../src/guestfs-actions.pod:3136
9230 msgid ""
9231 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9232 "see every block device."
9233 msgstr ""
9234
9235 # type: textblock
9236 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2324 ../fish/guestfish-actions.pod:2355
9237 msgid "This command also clears the LVM cache and performs a volume group scan."
9238 msgstr ""
9239
9240 # type: =head2
9241 #: ../src/guestfs-actions.pod:3144
9242 msgid "guestfs_lvm_remove_all"
9243 msgstr ""
9244
9245 # type: verbatim
9246 #: ../src/guestfs-actions.pod:3146
9247 #, no-wrap
9248 msgid ""
9249 " int\n"
9250 " guestfs_lvm_remove_all (guestfs_h *g);\n"
9251 "\n"
9252 msgstr ""
9253
9254 # type: textblock
9255 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2331
9256 msgid ""
9257 "This command removes all LVM logical volumes, volume groups and physical "
9258 "volumes."
9259 msgstr ""
9260
9261 # type: =head2
9262 #: ../src/guestfs-actions.pod:3157
9263 msgid "guestfs_lvm_set_filter"
9264 msgstr ""
9265
9266 # type: verbatim
9267 #: ../src/guestfs-actions.pod:3159
9268 #, no-wrap
9269 msgid ""
9270 " int\n"
9271 " guestfs_lvm_set_filter (guestfs_h *g,\n"
9272 "                         char *const *devices);\n"
9273 "\n"
9274 msgstr ""
9275
9276 # type: textblock
9277 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2341
9278 msgid ""
9279 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9280 "block devices in the list C<devices>, and will ignore all other attached "
9281 "block devices."
9282 msgstr ""
9283
9284 # type: textblock
9285 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2345
9286 msgid ""
9287 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9288 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9289 "there are two types of duplication possible: either cloned PVs/VGs which "
9290 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9291 "same name.  In normal operation you cannot create this situation, but you "
9292 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9293 "inside the LVM metadata."
9294 msgstr ""
9295
9296 # type: textblock
9297 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2358
9298 msgid "You can filter whole block devices or individual partitions."
9299 msgstr ""
9300
9301 # type: textblock
9302 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2360
9303 msgid ""
9304 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9305 "filesystem), even if you are not filtering out that VG."
9306 msgstr ""
9307
9308 # type: =head2
9309 #: ../src/guestfs-actions.pod:3188
9310 msgid "guestfs_lvremove"
9311 msgstr ""
9312
9313 # type: verbatim
9314 #: ../src/guestfs-actions.pod:3190
9315 #, no-wrap
9316 msgid ""
9317 " int\n"
9318 " guestfs_lvremove (guestfs_h *g,\n"
9319 "                   const char *device);\n"
9320 "\n"
9321 msgstr ""
9322
9323 # type: textblock
9324 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2368
9325 msgid ""
9326 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9327 "LV, such as C</dev/VG/LV>."
9328 msgstr ""
9329
9330 # type: textblock
9331 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2371
9332 msgid ""
9333 "You can also remove all LVs in a volume group by specifying the VG name, "
9334 "C</dev/VG>."
9335 msgstr ""
9336
9337 # type: =head2
9338 #: ../src/guestfs-actions.pod:3202
9339 msgid "guestfs_lvrename"
9340 msgstr ""
9341
9342 # type: verbatim
9343 #: ../src/guestfs-actions.pod:3204
9344 #, no-wrap
9345 msgid ""
9346 " int\n"
9347 " guestfs_lvrename (guestfs_h *g,\n"
9348 "                   const char *logvol,\n"
9349 "                   const char *newlogvol);\n"
9350 "\n"
9351 msgstr ""
9352
9353 # type: textblock
9354 #: ../src/guestfs-actions.pod:3209 ../fish/guestfish-actions.pod:2378
9355 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9356 msgstr ""
9357
9358 # type: =head2
9359 #: ../src/guestfs-actions.pod:3213
9360 msgid "guestfs_lvresize"
9361 msgstr ""
9362
9363 # type: verbatim
9364 #: ../src/guestfs-actions.pod:3215
9365 #, no-wrap
9366 msgid ""
9367 " int\n"
9368 " guestfs_lvresize (guestfs_h *g,\n"
9369 "                   const char *device,\n"
9370 "                   int mbytes);\n"
9371 "\n"
9372 msgstr ""
9373
9374 # type: textblock
9375 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2384
9376 msgid ""
9377 "This resizes (expands or shrinks) an existing LVM logical volume to "
9378 "C<mbytes>.  When reducing, data in the reduced part is lost."
9379 msgstr ""
9380
9381 # type: =head2
9382 #: ../src/guestfs-actions.pod:3226
9383 msgid "guestfs_lvresize_free"
9384 msgstr ""
9385
9386 # type: verbatim
9387 #: ../src/guestfs-actions.pod:3228
9388 #, no-wrap
9389 msgid ""
9390 " int\n"
9391 " guestfs_lvresize_free (guestfs_h *g,\n"
9392 "                        const char *lv,\n"
9393 "                        int percent);\n"
9394 "\n"
9395 msgstr ""
9396
9397 # type: textblock
9398 #: ../src/guestfs-actions.pod:3233 ../fish/guestfish-actions.pod:2392
9399 msgid ""
9400 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9401 "remaining free space in the volume group.  Commonly you would call this with "
9402 "pc = 100 which expands the logical volume as much as possible, using all "
9403 "remaining free space in the volume group."
9404 msgstr ""
9405
9406 # type: =head2
9407 #: ../src/guestfs-actions.pod:3241
9408 msgid "guestfs_lvs"
9409 msgstr ""
9410
9411 # type: verbatim
9412 #: ../src/guestfs-actions.pod:3243
9413 #, no-wrap
9414 msgid ""
9415 " char **\n"
9416 " guestfs_lvs (guestfs_h *g);\n"
9417 "\n"
9418 msgstr ""
9419
9420 # type: textblock
9421 #: ../src/guestfs-actions.pod:3246 ../fish/guestfish-actions.pod:2402
9422 msgid ""
9423 "List all the logical volumes detected.  This is the equivalent of the "
9424 "L<lvs(8)> command."
9425 msgstr ""
9426
9427 # type: textblock
9428 #: ../src/guestfs-actions.pod:3249 ../fish/guestfish-actions.pod:2405
9429 msgid ""
9430 "This returns a list of the logical volume device names "
9431 "(eg. C</dev/VolGroup00/LogVol00>)."
9432 msgstr ""
9433
9434 # type: textblock
9435 #: ../src/guestfs-actions.pod:3252
9436 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9437 msgstr ""
9438
9439 # type: =head2
9440 #: ../src/guestfs-actions.pod:3258
9441 msgid "guestfs_lvs_full"
9442 msgstr ""
9443
9444 # type: verbatim
9445 #: ../src/guestfs-actions.pod:3260
9446 #, no-wrap
9447 msgid ""
9448 " struct guestfs_lvm_lv_list *\n"
9449 " guestfs_lvs_full (guestfs_h *g);\n"
9450 "\n"
9451 msgstr ""
9452
9453 # type: textblock
9454 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2414
9455 msgid ""
9456 "List all the logical volumes detected.  This is the equivalent of the "
9457 "L<lvs(8)> command.  The \"full\" version includes all fields."
9458 msgstr ""
9459
9460 # type: textblock
9461 #: ../src/guestfs-actions.pod:3266
9462 msgid ""
9463 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
9464 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
9465 "must call C<guestfs_free_lvm_lv_list> after use>."
9466 msgstr ""
9467
9468 # type: =head2
9469 #: ../src/guestfs-actions.pod:3271
9470 msgid "guestfs_lvuuid"
9471 msgstr ""
9472
9473 # type: verbatim
9474 #: ../src/guestfs-actions.pod:3273
9475 #, no-wrap
9476 msgid ""
9477 " char *\n"
9478 " guestfs_lvuuid (guestfs_h *g,\n"
9479 "                 const char *device);\n"
9480 "\n"
9481 msgstr ""
9482
9483 # type: textblock
9484 #: ../src/guestfs-actions.pod:3277 ../fish/guestfish-actions.pod:2421
9485 msgid "This command returns the UUID of the LVM LV C<device>."
9486 msgstr ""
9487
9488 # type: =head2
9489 #: ../src/guestfs-actions.pod:3282
9490 msgid "guestfs_lxattrlist"
9491 msgstr ""
9492
9493 # type: verbatim
9494 #: ../src/guestfs-actions.pod:3284
9495 #, no-wrap
9496 msgid ""
9497 " struct guestfs_xattr_list *\n"
9498 " guestfs_lxattrlist (guestfs_h *g,\n"
9499 "                     const char *path,\n"
9500 "                     char *const *names);\n"
9501 "\n"
9502 msgstr ""
9503
9504 # type: textblock
9505 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2427
9506 msgid ""
9507 "This call allows you to get the extended attributes of multiple files, where "
9508 "all files are in the directory C<path>.  C<names> is the list of files from "
9509 "this directory."
9510 msgstr ""
9511
9512 # type: textblock
9513 #: ../src/guestfs-actions.pod:3293 ../fish/guestfish-actions.pod:2431
9514 msgid ""
9515 "On return you get a flat list of xattr structs which must be interpreted "
9516 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9517 "C<attrval> in this struct is zero-length to indicate there was an error "
9518 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9519 "number (the number of following attributes for this file, which could be "
9520 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9521 "attributes for the first named file.  This repeats for the second and "
9522 "subsequent files."
9523 msgstr ""
9524
9525 # type: textblock
9526 #: ../src/guestfs-actions.pod:3303
9527 msgid ""
9528 "This call is intended for programs that want to efficiently list a directory "
9529 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9530 "a similarly efficient call for getting standard stats.  Very long directory "
9531 "listings might cause the protocol message size to be exceeded, causing this "
9532 "call to fail.  The caller must split up such requests into smaller groups of "
9533 "names."
9534 msgstr ""
9535
9536 # type: =head2
9537 #: ../src/guestfs-actions.pod:3316
9538 msgid "guestfs_mkdir"
9539 msgstr ""
9540
9541 # type: verbatim
9542 #: ../src/guestfs-actions.pod:3318
9543 #, no-wrap
9544 msgid ""
9545 " int\n"
9546 " guestfs_mkdir (guestfs_h *g,\n"
9547 "                const char *path);\n"
9548 "\n"
9549 msgstr ""
9550
9551 # type: textblock
9552 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2453
9553 msgid "Create a directory named C<path>."
9554 msgstr ""
9555
9556 # type: =head2
9557 #: ../src/guestfs-actions.pod:3326
9558 msgid "guestfs_mkdir_mode"
9559 msgstr ""
9560
9561 # type: verbatim
9562 #: ../src/guestfs-actions.pod:3328
9563 #, no-wrap
9564 msgid ""
9565 " int\n"
9566 " guestfs_mkdir_mode (guestfs_h *g,\n"
9567 "                     const char *path,\n"
9568 "                     int mode);\n"
9569 "\n"
9570 msgstr ""
9571
9572 # type: textblock
9573 #: ../src/guestfs-actions.pod:3333 ../fish/guestfish-actions.pod:2459
9574 msgid ""
9575 "This command creates a directory, setting the initial permissions of the "
9576 "directory to C<mode>."
9577 msgstr ""
9578
9579 # type: textblock
9580 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2462
9581 msgid ""
9582 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9583 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9584 "other ways."
9585 msgstr ""
9586
9587 # type: textblock
9588 #: ../src/guestfs-actions.pod:3340
9589 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9590 msgstr ""
9591
9592 # type: =head2
9593 #: ../src/guestfs-actions.pod:3344
9594 msgid "guestfs_mkdir_p"
9595 msgstr ""
9596
9597 # type: verbatim
9598 #: ../src/guestfs-actions.pod:3346
9599 #, no-wrap
9600 msgid ""
9601 " int\n"
9602 " guestfs_mkdir_p (guestfs_h *g,\n"
9603 "                  const char *path);\n"
9604 "\n"
9605 msgstr ""
9606
9607 # type: textblock
9608 #: ../src/guestfs-actions.pod:3350 ../fish/guestfish-actions.pod:2472
9609 msgid ""
9610 "Create a directory named C<path>, creating any parent directories as "
9611 "necessary.  This is like the C<mkdir -p> shell command."
9612 msgstr ""
9613
9614 # type: =head2
9615 #: ../src/guestfs-actions.pod:3355
9616 msgid "guestfs_mkdtemp"
9617 msgstr ""
9618
9619 # type: verbatim
9620 #: ../src/guestfs-actions.pod:3357
9621 #, no-wrap
9622 msgid ""
9623 " char *\n"
9624 " guestfs_mkdtemp (guestfs_h *g,\n"
9625 "                  const char *template);\n"
9626 "\n"
9627 msgstr ""
9628
9629 # type: textblock
9630 #: ../src/guestfs-actions.pod:3361 ../fish/guestfish-actions.pod:2479
9631 msgid ""
9632 "This command creates a temporary directory.  The C<template> parameter "
9633 "should be a full pathname for the temporary directory name with the final "
9634 "six characters being \"XXXXXX\"."
9635 msgstr ""
9636
9637 # type: textblock
9638 #: ../src/guestfs-actions.pod:3366 ../fish/guestfish-actions.pod:2484
9639 msgid ""
9640 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9641 "being suitable for Windows filesystems."
9642 msgstr ""
9643
9644 # type: textblock
9645 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2487
9646 msgid "The name of the temporary directory that was created is returned."
9647 msgstr ""
9648
9649 # type: textblock
9650 #: ../src/guestfs-actions.pod:3372 ../fish/guestfish-actions.pod:2490
9651 msgid "The temporary directory is created with mode 0700 and is owned by root."
9652 msgstr ""
9653
9654 # type: textblock
9655 #: ../src/guestfs-actions.pod:3375 ../fish/guestfish-actions.pod:2493
9656 msgid ""
9657 "The caller is responsible for deleting the temporary directory and its "
9658 "contents after use."
9659 msgstr ""
9660
9661 # type: textblock
9662 #: ../src/guestfs-actions.pod:3378 ../fish/guestfish-actions.pod:2496
9663 msgid "See also: L<mkdtemp(3)>"
9664 msgstr ""
9665
9666 # type: =head2
9667 #: ../src/guestfs-actions.pod:3383
9668 msgid "guestfs_mke2fs_J"
9669 msgstr ""
9670
9671 # type: verbatim
9672 #: ../src/guestfs-actions.pod:3385
9673 #, no-wrap
9674 msgid ""
9675 " int\n"
9676 " guestfs_mke2fs_J (guestfs_h *g,\n"
9677 "                   const char *fstype,\n"
9678 "                   int blocksize,\n"
9679 "                   const char *device,\n"
9680 "                   const char *journal);\n"
9681 "\n"
9682 msgstr ""
9683
9684 # type: textblock
9685 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2502
9686 msgid ""
9687 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9688 "C<journal>.  It is equivalent to the command:"
9689 msgstr ""
9690
9691 # type: verbatim
9692 #: ../src/guestfs-actions.pod:3396 ../fish/guestfish-actions.pod:2506
9693 #, no-wrap
9694 msgid ""
9695 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9696 "\n"
9697 msgstr ""
9698
9699 # type: textblock
9700 #: ../src/guestfs-actions.pod:3398
9701 msgid "See also C<guestfs_mke2journal>."
9702 msgstr ""
9703
9704 # type: =head2
9705 #: ../src/guestfs-actions.pod:3402
9706 msgid "guestfs_mke2fs_JL"
9707 msgstr ""
9708
9709 # type: verbatim
9710 #: ../src/guestfs-actions.pod:3404
9711 #, no-wrap
9712 msgid ""
9713 " int\n"
9714 " guestfs_mke2fs_JL (guestfs_h *g,\n"
9715 "                    const char *fstype,\n"
9716 "                    int blocksize,\n"
9717 "                    const char *device,\n"
9718 "                    const char *label);\n"
9719 "\n"
9720 msgstr ""
9721
9722 # type: textblock
9723 #: ../src/guestfs-actions.pod:3411 ../fish/guestfish-actions.pod:2514
9724 msgid ""
9725 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9726 "the journal labeled C<label>."
9727 msgstr ""
9728
9729 # type: textblock
9730 #: ../src/guestfs-actions.pod:3414
9731 msgid "See also C<guestfs_mke2journal_L>."
9732 msgstr ""
9733
9734 # type: =head2
9735 #: ../src/guestfs-actions.pod:3418
9736 msgid "guestfs_mke2fs_JU"
9737 msgstr ""
9738
9739 # type: verbatim
9740 #: ../src/guestfs-actions.pod:3420
9741 #, no-wrap
9742 msgid ""
9743 " int\n"
9744 " guestfs_mke2fs_JU (guestfs_h *g,\n"
9745 "                    const char *fstype,\n"
9746 "                    int blocksize,\n"
9747 "                    const char *device,\n"
9748 "                    const char *uuid);\n"
9749 "\n"
9750 msgstr ""
9751
9752 # type: textblock
9753 #: ../src/guestfs-actions.pod:3427 ../fish/guestfish-actions.pod:2523
9754 msgid ""
9755 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9756 "the journal with UUID C<uuid>."
9757 msgstr ""
9758
9759 # type: textblock
9760 #: ../src/guestfs-actions.pod:3430
9761 msgid "See also C<guestfs_mke2journal_U>."
9762 msgstr ""
9763
9764 # type: =head2
9765 #: ../src/guestfs-actions.pod:3434
9766 msgid "guestfs_mke2journal"
9767 msgstr ""
9768
9769 # type: verbatim
9770 #: ../src/guestfs-actions.pod:3436
9771 #, no-wrap
9772 msgid ""
9773 " int\n"
9774 " guestfs_mke2journal (guestfs_h *g,\n"
9775 "                      int blocksize,\n"
9776 "                      const char *device);\n"
9777 "\n"
9778 msgstr ""
9779
9780 # type: textblock
9781 #: ../src/guestfs-actions.pod:3441 ../fish/guestfish-actions.pod:2532
9782 msgid ""
9783 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9784 "command:"
9785 msgstr ""
9786
9787 # type: verbatim
9788 #: ../src/guestfs-actions.pod:3444 ../fish/guestfish-actions.pod:2535
9789 #, no-wrap
9790 msgid ""
9791 " mke2fs -O journal_dev -b blocksize device\n"
9792 "\n"
9793 msgstr ""
9794
9795 # type: =head2
9796 #: ../src/guestfs-actions.pod:3448
9797 msgid "guestfs_mke2journal_L"
9798 msgstr ""
9799
9800 # type: verbatim
9801 #: ../src/guestfs-actions.pod:3450
9802 #, no-wrap
9803 msgid ""
9804 " int\n"
9805 " guestfs_mke2journal_L (guestfs_h *g,\n"
9806 "                        int blocksize,\n"
9807 "                        const char *label,\n"
9808 "                        const char *device);\n"
9809 "\n"
9810 msgstr ""
9811
9812 # type: textblock
9813 #: ../src/guestfs-actions.pod:3456 ../fish/guestfish-actions.pod:2541
9814 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9815 msgstr ""
9816
9817 # type: =head2
9818 #: ../src/guestfs-actions.pod:3460
9819 msgid "guestfs_mke2journal_U"
9820 msgstr ""
9821
9822 # type: verbatim
9823 #: ../src/guestfs-actions.pod:3462
9824 #, no-wrap
9825 msgid ""
9826 " int\n"
9827 " guestfs_mke2journal_U (guestfs_h *g,\n"
9828 "                        int blocksize,\n"
9829 "                        const char *uuid,\n"
9830 "                        const char *device);\n"
9831 "\n"
9832 msgstr ""
9833
9834 # type: textblock
9835 #: ../src/guestfs-actions.pod:3468 ../fish/guestfish-actions.pod:2547
9836 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9837 msgstr ""
9838
9839 # type: =head2
9840 #: ../src/guestfs-actions.pod:3472
9841 msgid "guestfs_mkfifo"
9842 msgstr ""
9843
9844 # type: verbatim
9845 #: ../src/guestfs-actions.pod:3474
9846 #, no-wrap
9847 msgid ""
9848 " int\n"
9849 " guestfs_mkfifo (guestfs_h *g,\n"
9850 "                 int mode,\n"
9851 "                 const char *path);\n"
9852 "\n"
9853 msgstr ""
9854
9855 # type: textblock
9856 #: ../src/guestfs-actions.pod:3479
9857 msgid ""
9858 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9859 "is just a convenient wrapper around C<guestfs_mknod>."
9860 msgstr ""
9861
9862 # type: =head2
9863 #: ../src/guestfs-actions.pod:3487
9864 msgid "guestfs_mkfs"
9865 msgstr ""
9866
9867 # type: verbatim
9868 #: ../src/guestfs-actions.pod:3489
9869 #, no-wrap
9870 msgid ""
9871 " int\n"
9872 " guestfs_mkfs (guestfs_h *g,\n"
9873 "               const char *fstype,\n"
9874 "               const char *device);\n"
9875 "\n"
9876 msgstr ""
9877
9878 # type: textblock
9879 #: ../src/guestfs-actions.pod:3494 ../fish/guestfish-actions.pod:2563
9880 msgid ""
9881 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9882 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9883 msgstr ""
9884
9885 # type: =head2
9886 #: ../src/guestfs-actions.pod:3500
9887 msgid "guestfs_mkfs_b"
9888 msgstr ""
9889
9890 # type: verbatim
9891 #: ../src/guestfs-actions.pod:3502
9892 #, no-wrap
9893 msgid ""
9894 " int\n"
9895 " guestfs_mkfs_b (guestfs_h *g,\n"
9896 "                 const char *fstype,\n"
9897 "                 int blocksize,\n"
9898 "                 const char *device);\n"
9899 "\n"
9900 msgstr ""
9901
9902 # type: textblock
9903 #: ../src/guestfs-actions.pod:3508
9904 msgid ""
9905 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9906 "block size of the resulting filesystem.  Supported block sizes depend on the "
9907 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9908 msgstr ""
9909
9910 # type: textblock
9911 #: ../src/guestfs-actions.pod:3513 ../fish/guestfish-actions.pod:2576
9912 msgid ""
9913 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9914 "cluster size."
9915 msgstr ""
9916
9917 # type: =head2
9918 #: ../src/guestfs-actions.pod:3518
9919 msgid "guestfs_mkmountpoint"
9920 msgstr ""
9921
9922 # type: verbatim
9923 #: ../src/guestfs-actions.pod:3520
9924 #, no-wrap
9925 msgid ""
9926 " int\n"
9927 " guestfs_mkmountpoint (guestfs_h *g,\n"
9928 "                       const char *exemptpath);\n"
9929 "\n"
9930 msgstr ""
9931
9932 # type: textblock
9933 #: ../src/guestfs-actions.pod:3524
9934 msgid ""
9935 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9936 "that can be used to create extra mountpoints before mounting the first "
9937 "filesystem."
9938 msgstr ""
9939
9940 # type: textblock
9941 #: ../src/guestfs-actions.pod:3528 ../fish/guestfish-actions.pod:2587
9942 msgid ""
9943 "These calls are I<only> necessary in some very limited circumstances, mainly "
9944 "the case where you want to mount a mix of unrelated and/or read-only "
9945 "filesystems together."
9946 msgstr ""
9947
9948 # type: textblock
9949 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2591
9950 msgid ""
9951 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9952 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9953 "inside that.  You can unpack this as follows in guestfish:"
9954 msgstr ""
9955
9956 # type: verbatim
9957 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2596
9958 #, no-wrap
9959 msgid ""
9960 " add-ro Fedora-11-i686-Live.iso\n"
9961 " run\n"
9962 " mkmountpoint /cd\n"
9963 " mkmountpoint /sqsh\n"
9964 " mkmountpoint /ext3fs\n"
9965 " mount /dev/sda /cd\n"
9966 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
9967 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
9968 "\n"
9969 msgstr ""
9970
9971 # type: textblock
9972 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2605
9973 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
9974 msgstr ""
9975
9976 # type: textblock
9977 #: ../src/guestfs-actions.pod:3548
9978 msgid ""
9979 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
9980 "may get unexpected errors if you try to mix these calls.  It is safest to "
9981 "manually unmount filesystems and remove mountpoints after use."
9982 msgstr ""
9983
9984 # type: textblock
9985 #: ../src/guestfs-actions.pod:3552
9986 msgid ""
9987 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
9988 "first, so for this to work for manual mountpoints, you must ensure that the "
9989 "innermost mountpoints have the longest pathnames, as in the example code "
9990 "above."
9991 msgstr ""
9992
9993 # type: textblock
9994 #: ../src/guestfs-actions.pod:3557 ../fish/guestfish-actions.pod:2616
9995 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
9996 msgstr ""
9997
9998 # type: textblock
9999 #: ../src/guestfs-actions.pod:3559
10000 msgid ""
10001 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10002 "means that C<guestfs_umount_all> is called when the handle is closed which "
10003 "can also trigger these issues."
10004 msgstr ""
10005
10006 # type: =head2
10007 #: ../src/guestfs-actions.pod:3565
10008 msgid "guestfs_mknod"
10009 msgstr ""
10010
10011 # type: verbatim
10012 #: ../src/guestfs-actions.pod:3567
10013 #, no-wrap
10014 msgid ""
10015 " int\n"
10016 " guestfs_mknod (guestfs_h *g,\n"
10017 "                int mode,\n"
10018 "                int devmajor,\n"
10019 "                int devminor,\n"
10020 "                const char *path);\n"
10021 "\n"
10022 msgstr ""
10023
10024 # type: textblock
10025 #: ../src/guestfs-actions.pod:3574 ../fish/guestfish-actions.pod:2626
10026 msgid ""
10027 "This call creates block or character special devices, or named pipes "
10028 "(FIFOs)."
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3577 ../fish/guestfish-actions.pod:2629
10033 msgid ""
10034 "The C<mode> parameter should be the mode, using the standard constants.  "
10035 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10036 "used when creating block and character special devices."
10037 msgstr ""
10038
10039 # type: textblock
10040 #: ../src/guestfs-actions.pod:3582
10041 msgid ""
10042 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10043 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10044 "regular file).  These constants are available in the standard Linux header "
10045 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10046 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10047 "the appropriate constant for you."
10048 msgstr ""
10049
10050 # type: =head2
10051 #: ../src/guestfs-actions.pod:3594
10052 msgid "guestfs_mknod_b"
10053 msgstr ""
10054
10055 # type: verbatim
10056 #: ../src/guestfs-actions.pod:3596
10057 #, no-wrap
10058 msgid ""
10059 " int\n"
10060 " guestfs_mknod_b (guestfs_h *g,\n"
10061 "                  int mode,\n"
10062 "                  int devmajor,\n"
10063 "                  int devminor,\n"
10064 "                  const char *path);\n"
10065 "\n"
10066 msgstr ""
10067
10068 # type: textblock
10069 #: ../src/guestfs-actions.pod:3603
10070 msgid ""
10071 "This call creates a block device node called C<path> with mode C<mode> and "
10072 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10073 "wrapper around C<guestfs_mknod>."
10074 msgstr ""
10075
10076 # type: =head2
10077 #: ../src/guestfs-actions.pod:3611
10078 msgid "guestfs_mknod_c"
10079 msgstr ""
10080
10081 # type: verbatim
10082 #: ../src/guestfs-actions.pod:3613
10083 #, no-wrap
10084 msgid ""
10085 " int\n"
10086 " guestfs_mknod_c (guestfs_h *g,\n"
10087 "                  int mode,\n"
10088 "                  int devmajor,\n"
10089 "                  int devminor,\n"
10090 "                  const char *path);\n"
10091 "\n"
10092 msgstr ""
10093
10094 # type: textblock
10095 #: ../src/guestfs-actions.pod:3620
10096 msgid ""
10097 "This call creates a char device node called C<path> with mode C<mode> and "
10098 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10099 "wrapper around C<guestfs_mknod>."
10100 msgstr ""
10101
10102 # type: =head2
10103 #: ../src/guestfs-actions.pod:3628
10104 msgid "guestfs_mkswap"
10105 msgstr ""
10106
10107 # type: verbatim
10108 #: ../src/guestfs-actions.pod:3630
10109 #, no-wrap
10110 msgid ""
10111 " int\n"
10112 " guestfs_mkswap (guestfs_h *g,\n"
10113 "                 const char *device);\n"
10114 "\n"
10115 msgstr ""
10116
10117 # type: textblock
10118 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2668
10119 msgid "Create a swap partition on C<device>."
10120 msgstr ""
10121
10122 # type: =head2
10123 #: ../src/guestfs-actions.pod:3638
10124 msgid "guestfs_mkswap_L"
10125 msgstr ""
10126
10127 # type: verbatim
10128 #: ../src/guestfs-actions.pod:3640
10129 #, no-wrap
10130 msgid ""
10131 " int\n"
10132 " guestfs_mkswap_L (guestfs_h *g,\n"
10133 "                   const char *label,\n"
10134 "                   const char *device);\n"
10135 "\n"
10136 msgstr ""
10137
10138 # type: textblock
10139 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2674
10140 msgid "Create a swap partition on C<device> with label C<label>."
10141 msgstr ""
10142
10143 # type: textblock
10144 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2676
10145 msgid ""
10146 "Note that you cannot attach a swap label to a block device "
10147 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10148 "the kernel or swap tools."
10149 msgstr ""
10150
10151 # type: =head2
10152 #: ../src/guestfs-actions.pod:3653
10153 msgid "guestfs_mkswap_U"
10154 msgstr ""
10155
10156 # type: verbatim
10157 #: ../src/guestfs-actions.pod:3655
10158 #, no-wrap
10159 msgid ""
10160 " int\n"
10161 " guestfs_mkswap_U (guestfs_h *g,\n"
10162 "                   const char *uuid,\n"
10163 "                   const char *device);\n"
10164 "\n"
10165 msgstr ""
10166
10167 # type: textblock
10168 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2684
10169 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10170 msgstr ""
10171
10172 # type: =head2
10173 #: ../src/guestfs-actions.pod:3664
10174 msgid "guestfs_mkswap_file"
10175 msgstr ""
10176
10177 # type: verbatim
10178 #: ../src/guestfs-actions.pod:3666
10179 #, no-wrap
10180 msgid ""
10181 " int\n"
10182 " guestfs_mkswap_file (guestfs_h *g,\n"
10183 "                      const char *path);\n"
10184 "\n"
10185 msgstr ""
10186
10187 # type: textblock
10188 #: ../src/guestfs-actions.pod:3670 ../fish/guestfish-actions.pod:2690
10189 msgid "Create a swap file."
10190 msgstr ""
10191
10192 # type: textblock
10193 #: ../src/guestfs-actions.pod:3672
10194 msgid ""
10195 "This command just writes a swap file signature to an existing file.  To "
10196 "create the file itself, use something like C<guestfs_fallocate>."
10197 msgstr ""
10198
10199 # type: =head2
10200 #: ../src/guestfs-actions.pod:3677
10201 msgid "guestfs_modprobe"
10202 msgstr ""
10203
10204 # type: verbatim
10205 #: ../src/guestfs-actions.pod:3679
10206 #, no-wrap
10207 msgid ""
10208 " int\n"
10209 " guestfs_modprobe (guestfs_h *g,\n"
10210 "                   const char *modulename);\n"
10211 "\n"
10212 msgstr ""
10213
10214 # type: textblock
10215 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2699
10216 msgid "This loads a kernel module in the appliance."
10217 msgstr ""
10218
10219 # type: textblock
10220 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2701
10221 msgid ""
10222 "The kernel module must have been whitelisted when libguestfs was built (see "
10223 "C<appliance/kmod.whitelist.in> in the source)."
10224 msgstr ""
10225
10226 # type: =head2
10227 #: ../src/guestfs-actions.pod:3690
10228 msgid "guestfs_mount"
10229 msgstr ""
10230
10231 # type: verbatim
10232 #: ../src/guestfs-actions.pod:3692
10233 #, no-wrap
10234 msgid ""
10235 " int\n"
10236 " guestfs_mount (guestfs_h *g,\n"
10237 "                const char *device,\n"
10238 "                const char *mountpoint);\n"
10239 "\n"
10240 msgstr ""
10241
10242 # type: textblock
10243 #: ../src/guestfs-actions.pod:3697 ../fish/guestfish-actions.pod:2708
10244 msgid ""
10245 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10246 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10247 "those block devices contain partitions, they will have the usual names "
10248 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10249 msgstr ""
10250
10251 # type: textblock
10252 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2714
10253 msgid ""
10254 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10255 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10256 "mounted on directories which already exist."
10257 msgstr ""
10258
10259 # type: textblock
10260 #: ../src/guestfs-actions.pod:3708 ../fish/guestfish-actions.pod:2719
10261 msgid ""
10262 "The mounted filesystem is writable, if we have sufficient permissions on the "
10263 "underlying device."
10264 msgstr ""
10265
10266 # type: textblock
10267 #: ../src/guestfs-actions.pod:3711
10268 msgid ""
10269 "B<Important note:> When you use this call, the filesystem options C<sync> "
10270 "and C<noatime> are set implicitly.  This was originally done because we "
10271 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10272 "very large negative performance impact and negligible effect on "
10273 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10274 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10275 "(use an empty string for the first parameter if you don't want any options)."
10276 msgstr ""
10277
10278 # type: =head2
10279 #: ../src/guestfs-actions.pod:3723
10280 msgid "guestfs_mount_loop"
10281 msgstr ""
10282
10283 # type: verbatim
10284 #: ../src/guestfs-actions.pod:3725
10285 #, no-wrap
10286 msgid ""
10287 " int\n"
10288 " guestfs_mount_loop (guestfs_h *g,\n"
10289 "                     const char *file,\n"
10290 "                     const char *mountpoint);\n"
10291 "\n"
10292 msgstr ""
10293
10294 # type: textblock
10295 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2736
10296 msgid ""
10297 "This command lets you mount C<file> (a filesystem image in a file) on a "
10298 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10299 "mountpoint>."
10300 msgstr ""
10301
10302 # type: =head2
10303 #: ../src/guestfs-actions.pod:3736
10304 msgid "guestfs_mount_options"
10305 msgstr ""
10306
10307 # type: verbatim
10308 #: ../src/guestfs-actions.pod:3738
10309 #, no-wrap
10310 msgid ""
10311 " int\n"
10312 " guestfs_mount_options (guestfs_h *g,\n"
10313 "                        const char *options,\n"
10314 "                        const char *device,\n"
10315 "                        const char *mountpoint);\n"
10316 "\n"
10317 msgstr ""
10318
10319 # type: textblock
10320 #: ../src/guestfs-actions.pod:3744
10321 msgid ""
10322 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10323 "the mount options as for the L<mount(8)> I<-o> flag."
10324 msgstr ""
10325
10326 # type: textblock
10327 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2748
10328 msgid ""
10329 "If the C<options> parameter is an empty string, then no options are passed "
10330 "(all options default to whatever the filesystem uses)."
10331 msgstr ""
10332
10333 # type: =head2
10334 #: ../src/guestfs-actions.pod:3754
10335 msgid "guestfs_mount_ro"
10336 msgstr ""
10337
10338 # type: verbatim
10339 #: ../src/guestfs-actions.pod:3756
10340 #, no-wrap
10341 msgid ""
10342 " int\n"
10343 " guestfs_mount_ro (guestfs_h *g,\n"
10344 "                   const char *device,\n"
10345 "                   const char *mountpoint);\n"
10346 "\n"
10347 msgstr ""
10348
10349 # type: textblock
10350 #: ../src/guestfs-actions.pod:3761
10351 msgid ""
10352 "This is the same as the C<guestfs_mount> command, but it mounts the "
10353 "filesystem with the read-only (I<-o ro>) flag."
10354 msgstr ""
10355
10356 # type: =head2
10357 #: ../src/guestfs-actions.pod:3766
10358 msgid "guestfs_mount_vfs"
10359 msgstr ""
10360
10361 # type: verbatim
10362 #: ../src/guestfs-actions.pod:3768
10363 #, no-wrap
10364 msgid ""
10365 " int\n"
10366 " guestfs_mount_vfs (guestfs_h *g,\n"
10367 "                    const char *options,\n"
10368 "                    const char *vfstype,\n"
10369 "                    const char *device,\n"
10370 "                    const char *mountpoint);\n"
10371 "\n"
10372 msgstr ""
10373
10374 # type: textblock
10375 #: ../src/guestfs-actions.pod:3775
10376 msgid ""
10377 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10378 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
10379 "I<-t> flags."
10380 msgstr ""
10381
10382 # type: =head2
10383 #: ../src/guestfs-actions.pod:3781
10384 msgid "guestfs_mountpoints"
10385 msgstr ""
10386
10387 # type: verbatim
10388 #: ../src/guestfs-actions.pod:3783
10389 #, no-wrap
10390 msgid ""
10391 " char **\n"
10392 " guestfs_mountpoints (guestfs_h *g);\n"
10393 "\n"
10394 msgstr ""
10395
10396 # type: textblock
10397 #: ../src/guestfs-actions.pod:3786
10398 msgid ""
10399 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10400 "devices.  This one returns a hash table (map) of device name to directory "
10401 "where the device is mounted."
10402 msgstr ""
10403
10404 # type: =head2
10405 #: ../src/guestfs-actions.pod:3796
10406 msgid "guestfs_mounts"
10407 msgstr ""
10408
10409 # type: verbatim
10410 #: ../src/guestfs-actions.pod:3798
10411 #, no-wrap
10412 msgid ""
10413 " char **\n"
10414 " guestfs_mounts (guestfs_h *g);\n"
10415 "\n"
10416 msgstr ""
10417
10418 # type: textblock
10419 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2779
10420 msgid ""
10421 "This returns the list of currently mounted filesystems.  It returns the list "
10422 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10423 msgstr ""
10424
10425 # type: textblock
10426 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2782
10427 msgid "Some internal mounts are not shown."
10428 msgstr ""
10429
10430 # type: textblock
10431 #: ../src/guestfs-actions.pod:3806
10432 msgid "See also: C<guestfs_mountpoints>"
10433 msgstr ""
10434
10435 # type: =head2
10436 #: ../src/guestfs-actions.pod:3812
10437 msgid "guestfs_mv"
10438 msgstr ""
10439
10440 # type: verbatim
10441 #: ../src/guestfs-actions.pod:3814
10442 #, no-wrap
10443 msgid ""
10444 " int\n"
10445 " guestfs_mv (guestfs_h *g,\n"
10446 "             const char *src,\n"
10447 "             const char *dest);\n"
10448 "\n"
10449 msgstr ""
10450
10451 # type: textblock
10452 #: ../src/guestfs-actions.pod:3819 ../fish/guestfish-actions.pod:2790
10453 msgid ""
10454 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10455 "destination filename or destination directory."
10456 msgstr ""
10457
10458 # type: =head2
10459 #: ../src/guestfs-actions.pod:3824
10460 msgid "guestfs_ntfs_3g_probe"
10461 msgstr ""
10462
10463 # type: verbatim
10464 #: ../src/guestfs-actions.pod:3826
10465 #, no-wrap
10466 msgid ""
10467 " int\n"
10468 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10469 "                        int rw,\n"
10470 "                        const char *device);\n"
10471 "\n"
10472 msgstr ""
10473
10474 # type: textblock
10475 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2797
10476 msgid ""
10477 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10478 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10479 "read-write, and some cannot be mounted at all)."
10480 msgstr ""
10481
10482 # type: textblock
10483 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2801
10484 msgid ""
10485 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10486 "can be mounted read-write.  Set it to false if you want to test if the "
10487 "volume can be mounted read-only."
10488 msgstr ""
10489
10490 # type: textblock
10491 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2805
10492 msgid ""
10493 "The return value is an integer which C<0> if the operation would succeed, or "
10494 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10495 msgstr ""
10496
10497 # type: =head2
10498 #: ../src/guestfs-actions.pod:3845
10499 msgid "guestfs_ntfsresize"
10500 msgstr ""
10501
10502 # type: verbatim
10503 #: ../src/guestfs-actions.pod:3847
10504 #, no-wrap
10505 msgid ""
10506 " int\n"
10507 " guestfs_ntfsresize (guestfs_h *g,\n"
10508 "                     const char *device);\n"
10509 "\n"
10510 msgstr ""
10511
10512 # type: textblock
10513 #: ../src/guestfs-actions.pod:3851 ../fish/guestfish-actions.pod:2813
10514 msgid ""
10515 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10516 "size of the underlying device.  See also L<ntfsresize(8)>."
10517 msgstr ""
10518
10519 # type: =head2
10520 #: ../src/guestfs-actions.pod:3857
10521 msgid "guestfs_ntfsresize_size"
10522 msgstr ""
10523
10524 # type: verbatim
10525 #: ../src/guestfs-actions.pod:3859
10526 #, no-wrap
10527 msgid ""
10528 " int\n"
10529 " guestfs_ntfsresize_size (guestfs_h *g,\n"
10530 "                          const char *device,\n"
10531 "                          int64_t size);\n"
10532 "\n"
10533 msgstr ""
10534
10535 # type: textblock
10536 #: ../src/guestfs-actions.pod:3864
10537 msgid ""
10538 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10539 "to specify the new size (in bytes) explicitly."
10540 msgstr ""
10541
10542 # type: =head2
10543 #: ../src/guestfs-actions.pod:3869
10544 msgid "guestfs_part_add"
10545 msgstr ""
10546
10547 # type: verbatim
10548 #: ../src/guestfs-actions.pod:3871
10549 #, no-wrap
10550 msgid ""
10551 " int\n"
10552 " guestfs_part_add (guestfs_h *g,\n"
10553 "                   const char *device,\n"
10554 "                   const char *prlogex,\n"
10555 "                   int64_t startsect,\n"
10556 "                   int64_t endsect);\n"
10557 "\n"
10558 msgstr ""
10559
10560 # type: textblock
10561 #: ../src/guestfs-actions.pod:3878
10562 msgid ""
10563 "This command adds a partition to C<device>.  If there is no partition table "
10564 "on the device, call C<guestfs_part_init> first."
10565 msgstr ""
10566
10567 # type: textblock
10568 #: ../src/guestfs-actions.pod:3881 ../fish/guestfish-actions.pod:2831
10569 msgid ""
10570 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10571 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10572 "C<logical>) and C<e> (or C<extended>) partition types."
10573 msgstr ""
10574
10575 # type: textblock
10576 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2836
10577 msgid ""
10578 "C<startsect> and C<endsect> are the start and end of the partition in "
10579 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10580 "from the end of the disk (C<-1> is the last sector)."
10581 msgstr ""
10582
10583 # type: textblock
10584 #: ../src/guestfs-actions.pod:3890
10585 msgid ""
10586 "Creating a partition which covers the whole disk is not so easy.  Use "
10587 "C<guestfs_part_disk> to do that."
10588 msgstr ""
10589
10590 # type: =head2
10591 #: ../src/guestfs-actions.pod:3895
10592 msgid "guestfs_part_del"
10593 msgstr ""
10594
10595 # type: verbatim
10596 #: ../src/guestfs-actions.pod:3897
10597 #, no-wrap
10598 msgid ""
10599 " int\n"
10600 " guestfs_part_del (guestfs_h *g,\n"
10601 "                   const char *device,\n"
10602 "                   int partnum);\n"
10603 "\n"
10604 msgstr ""
10605
10606 # type: textblock
10607 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:2847
10608 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10609 msgstr ""
10610
10611 # type: textblock
10612 #: ../src/guestfs-actions.pod:3904 ../fish/guestfish-actions.pod:2849
10613 msgid ""
10614 "Note that in the case of MBR partitioning, deleting an extended partition "
10615 "also deletes any logical partitions it contains."
10616 msgstr ""
10617
10618 # type: =head2
10619 #: ../src/guestfs-actions.pod:3910
10620 msgid "guestfs_part_disk"
10621 msgstr ""
10622
10623 # type: verbatim
10624 #: ../src/guestfs-actions.pod:3912
10625 #, no-wrap
10626 msgid ""
10627 " int\n"
10628 " guestfs_part_disk (guestfs_h *g,\n"
10629 "                    const char *device,\n"
10630 "                    const char *parttype);\n"
10631 "\n"
10632 msgstr ""
10633
10634 # type: textblock
10635 #: ../src/guestfs-actions.pod:3917
10636 msgid ""
10637 "This command is simply a combination of C<guestfs_part_init> followed by "
10638 "C<guestfs_part_add> to create a single primary partition covering the whole "
10639 "disk."
10640 msgstr ""
10641
10642 # type: textblock
10643 #: ../src/guestfs-actions.pod:3921
10644 msgid ""
10645 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10646 "possible values are described in C<guestfs_part_init>."
10647 msgstr ""
10648
10649 # type: =head2
10650 #: ../src/guestfs-actions.pod:3929
10651 msgid "guestfs_part_get_bootable"
10652 msgstr ""
10653
10654 # type: verbatim
10655 #: ../src/guestfs-actions.pod:3931
10656 #, no-wrap
10657 msgid ""
10658 " int\n"
10659 " guestfs_part_get_bootable (guestfs_h *g,\n"
10660 "                            const char *device,\n"
10661 "                            int partnum);\n"
10662 "\n"
10663 msgstr ""
10664
10665 # type: textblock
10666 #: ../src/guestfs-actions.pod:3936 ../fish/guestfish-actions.pod:2871
10667 msgid ""
10668 "This command returns true if the partition C<partnum> on C<device> has the "
10669 "bootable flag set."
10670 msgstr ""
10671
10672 # type: textblock
10673 #: ../src/guestfs-actions.pod:3939
10674 msgid "See also C<guestfs_part_set_bootable>."
10675 msgstr ""
10676
10677 # type: =head2
10678 #: ../src/guestfs-actions.pod:3943
10679 msgid "guestfs_part_get_mbr_id"
10680 msgstr ""
10681
10682 # type: verbatim
10683 #: ../src/guestfs-actions.pod:3945
10684 #, no-wrap
10685 msgid ""
10686 " int\n"
10687 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
10688 "                          const char *device,\n"
10689 "                          int partnum);\n"
10690 "\n"
10691 msgstr ""
10692
10693 # type: textblock
10694 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2880
10695 msgid ""
10696 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10697 "partition C<partnum>."
10698 msgstr ""
10699
10700 # type: textblock
10701 #: ../src/guestfs-actions.pod:3953 ../src/guestfs-actions.pod:4120
10702 msgid ""
10703 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10704 "undefined results for other partition table types (see "
10705 "C<guestfs_part_get_parttype>)."
10706 msgstr ""
10707
10708 # type: =head2
10709 #: ../src/guestfs-actions.pod:3959
10710 msgid "guestfs_part_get_parttype"
10711 msgstr ""
10712
10713 # type: verbatim
10714 #: ../src/guestfs-actions.pod:3961
10715 #, no-wrap
10716 msgid ""
10717 " char *\n"
10718 " guestfs_part_get_parttype (guestfs_h *g,\n"
10719 "                            const char *device);\n"
10720 "\n"
10721 msgstr ""
10722
10723 # type: textblock
10724 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2891
10725 msgid ""
10726 "This command examines the partition table on C<device> and returns the "
10727 "partition table type (format) being used."
10728 msgstr ""
10729
10730 # type: textblock
10731 #: ../src/guestfs-actions.pod:3968
10732 msgid ""
10733 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10734 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10735 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10736 msgstr ""
10737
10738 # type: =head2
10739 #: ../src/guestfs-actions.pod:3976
10740 msgid "guestfs_part_init"
10741 msgstr ""
10742
10743 # type: verbatim
10744 #: ../src/guestfs-actions.pod:3978
10745 #, no-wrap
10746 msgid ""
10747 " int\n"
10748 " guestfs_part_init (guestfs_h *g,\n"
10749 "                    const char *device,\n"
10750 "                    const char *parttype);\n"
10751 "\n"
10752 msgstr ""
10753
10754 # type: textblock
10755 #: ../src/guestfs-actions.pod:3983 ../fish/guestfish-actions.pod:2903
10756 msgid ""
10757 "This creates an empty partition table on C<device> of one of the partition "
10758 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10759 "(for large disks)."
10760 msgstr ""
10761
10762 # type: textblock
10763 #: ../src/guestfs-actions.pod:3987
10764 msgid ""
10765 "Initially there are no partitions.  Following this, you should call "
10766 "C<guestfs_part_add> for each partition required."
10767 msgstr ""
10768
10769 # type: textblock
10770 #: ../src/guestfs-actions.pod:3990 ../fish/guestfish-actions.pod:2910
10771 msgid "Possible values for C<parttype> are:"
10772 msgstr ""
10773
10774 # type: =item
10775 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2914
10776 msgid "B<efi> | B<gpt>"
10777 msgstr ""
10778
10779 # type: textblock
10780 #: ../src/guestfs-actions.pod:3996 ../fish/guestfish-actions.pod:2916
10781 msgid "Intel EFI / GPT partition table."
10782 msgstr ""
10783
10784 # type: textblock
10785 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:2918
10786 msgid ""
10787 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10788 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10789 "the C<mbr> format."
10790 msgstr ""
10791
10792 # type: =item
10793 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:2922
10794 msgid "B<mbr> | B<msdos>"
10795 msgstr ""
10796
10797 # type: textblock
10798 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:2924
10799 msgid ""
10800 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10801 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10802 "TB.  For large disks we recommend using C<gpt>."
10803 msgstr ""
10804
10805 # type: textblock
10806 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2931
10807 msgid "Other partition table types that may work but are not supported include:"
10808 msgstr ""
10809
10810 # type: =item
10811 #: ../src/guestfs-actions.pod:4016 ../fish/guestfish-actions.pod:2936
10812 msgid "B<aix>"
10813 msgstr ""
10814
10815 # type: textblock
10816 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2938
10817 msgid "AIX disk labels."
10818 msgstr ""
10819
10820 # type: =item
10821 #: ../src/guestfs-actions.pod:4020 ../fish/guestfish-actions.pod:2940
10822 msgid "B<amiga> | B<rdb>"
10823 msgstr ""
10824
10825 # type: textblock
10826 #: ../src/guestfs-actions.pod:4022 ../fish/guestfish-actions.pod:2942
10827 msgid "Amiga \"Rigid Disk Block\" format."
10828 msgstr ""
10829
10830 # type: =item
10831 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2944
10832 msgid "B<bsd>"
10833 msgstr ""
10834
10835 # type: textblock
10836 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:2946
10837 msgid "BSD disk labels."
10838 msgstr ""
10839
10840 # type: =item
10841 #: ../src/guestfs-actions.pod:4028 ../fish/guestfish-actions.pod:2948
10842 msgid "B<dasd>"
10843 msgstr ""
10844
10845 # type: textblock
10846 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2950
10847 msgid "DASD, used on IBM mainframes."
10848 msgstr ""
10849
10850 # type: =item
10851 #: ../src/guestfs-actions.pod:4032 ../fish/guestfish-actions.pod:2952
10852 msgid "B<dvh>"
10853 msgstr ""
10854
10855 # type: textblock
10856 #: ../src/guestfs-actions.pod:4034 ../fish/guestfish-actions.pod:2954
10857 msgid "MIPS/SGI volumes."
10858 msgstr ""
10859
10860 # type: =item
10861 #: ../src/guestfs-actions.pod:4036 ../fish/guestfish-actions.pod:2956
10862 msgid "B<mac>"
10863 msgstr ""
10864
10865 # type: textblock
10866 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:2958
10867 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10868 msgstr ""
10869
10870 # type: =item
10871 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2960
10872 msgid "B<pc98>"
10873 msgstr ""
10874
10875 # type: textblock
10876 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2962
10877 msgid "NEC PC-98 format, common in Japan apparently."
10878 msgstr ""
10879
10880 # type: =item
10881 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2964
10882 msgid "B<sun>"
10883 msgstr ""
10884
10885 # type: textblock
10886 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:2966
10887 msgid "Sun disk labels."
10888 msgstr ""
10889
10890 # type: =head2
10891 #: ../src/guestfs-actions.pod:4052
10892 msgid "guestfs_part_list"
10893 msgstr ""
10894
10895 # type: verbatim
10896 #: ../src/guestfs-actions.pod:4054
10897 #, no-wrap
10898 msgid ""
10899 " struct guestfs_partition_list *\n"
10900 " guestfs_part_list (guestfs_h *g,\n"
10901 "                    const char *device);\n"
10902 "\n"
10903 msgstr ""
10904
10905 # type: textblock
10906 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2974
10907 msgid ""
10908 "This command parses the partition table on C<device> and returns the list of "
10909 "partitions found."
10910 msgstr ""
10911
10912 # type: textblock
10913 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2977
10914 msgid "The fields in the returned structure are:"
10915 msgstr ""
10916
10917 # type: =item
10918 #: ../src/guestfs-actions.pod:4065 ../fish/guestfish-actions.pod:2981
10919 msgid "B<part_num>"
10920 msgstr ""
10921
10922 # type: textblock
10923 #: ../src/guestfs-actions.pod:4067 ../fish/guestfish-actions.pod:2983
10924 msgid "Partition number, counting from 1."
10925 msgstr ""
10926
10927 # type: =item
10928 #: ../src/guestfs-actions.pod:4069 ../fish/guestfish-actions.pod:2985
10929 msgid "B<part_start>"
10930 msgstr ""
10931
10932 # type: textblock
10933 #: ../src/guestfs-actions.pod:4071
10934 msgid ""
10935 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10936 "the device's sector size, see C<guestfs_blockdev_getss>."
10937 msgstr ""
10938
10939 # type: =item
10940 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:2990
10941 msgid "B<part_end>"
10942 msgstr ""
10943
10944 # type: textblock
10945 #: ../src/guestfs-actions.pod:4076 ../fish/guestfish-actions.pod:2992
10946 msgid "End of the partition in bytes."
10947 msgstr ""
10948
10949 # type: =item
10950 #: ../src/guestfs-actions.pod:4078 ../fish/guestfish-actions.pod:2994
10951 msgid "B<part_size>"
10952 msgstr ""
10953
10954 # type: textblock
10955 #: ../src/guestfs-actions.pod:4080 ../fish/guestfish-actions.pod:2996
10956 msgid "Size of the partition in bytes."
10957 msgstr ""
10958
10959 # type: textblock
10960 #: ../src/guestfs-actions.pod:4084
10961 msgid ""
10962 "This function returns a C<struct guestfs_partition_list *> (see "
10963 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10964 "must call C<guestfs_free_partition_list> after use>."
10965 msgstr ""
10966
10967 # type: =head2
10968 #: ../src/guestfs-actions.pod:4089
10969 msgid "guestfs_part_set_bootable"
10970 msgstr ""
10971
10972 # type: verbatim
10973 #: ../src/guestfs-actions.pod:4091
10974 #, no-wrap
10975 msgid ""
10976 " int\n"
10977 " guestfs_part_set_bootable (guestfs_h *g,\n"
10978 "                            const char *device,\n"
10979 "                            int partnum,\n"
10980 "                            int bootable);\n"
10981 "\n"
10982 msgstr ""
10983
10984 # type: textblock
10985 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:3004
10986 msgid ""
10987 "This sets the bootable flag on partition numbered C<partnum> on device "
10988 "C<device>.  Note that partitions are numbered from 1."
10989 msgstr ""
10990
10991 # type: textblock
10992 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:3007
10993 msgid ""
10994 "The bootable flag is used by some operating systems (notably Windows) to "
10995 "determine which partition to boot from.  It is by no means universally "
10996 "recognized."
10997 msgstr ""
10998
10999 # type: =head2
11000 #: ../src/guestfs-actions.pod:4106
11001 msgid "guestfs_part_set_mbr_id"
11002 msgstr ""
11003
11004 # type: verbatim
11005 #: ../src/guestfs-actions.pod:4108
11006 #, no-wrap
11007 msgid ""
11008 " int\n"
11009 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11010 "                          const char *device,\n"
11011 "                          int partnum,\n"
11012 "                          int idbyte);\n"
11013 "\n"
11014 msgstr ""
11015
11016 # type: textblock
11017 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:3015
11018 msgid ""
11019 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11020 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11021 "documentation are in fact hexadecimal numbers, but usually documented "
11022 "without any leading \"0x\" which might be confusing."
11023 msgstr ""
11024
11025 # type: =head2
11026 #: ../src/guestfs-actions.pod:4126
11027 msgid "guestfs_part_set_name"
11028 msgstr ""
11029
11030 # type: verbatim
11031 #: ../src/guestfs-actions.pod:4128
11032 #, no-wrap
11033 msgid ""
11034 " int\n"
11035 " guestfs_part_set_name (guestfs_h *g,\n"
11036 "                        const char *device,\n"
11037 "                        int partnum,\n"
11038 "                        const char *name);\n"
11039 "\n"
11040 msgstr ""
11041
11042 # type: textblock
11043 #: ../src/guestfs-actions.pod:4134 ../fish/guestfish-actions.pod:3029
11044 msgid ""
11045 "This sets the partition name on partition numbered C<partnum> on device "
11046 "C<device>.  Note that partitions are numbered from 1."
11047 msgstr ""
11048
11049 # type: textblock
11050 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:3032
11051 msgid ""
11052 "The partition name can only be set on certain types of partition table.  "
11053 "This works on C<gpt> but not on C<mbr> partitions."
11054 msgstr ""
11055
11056 # type: =head2
11057 #: ../src/guestfs-actions.pod:4142
11058 msgid "guestfs_part_to_dev"
11059 msgstr ""
11060
11061 # type: verbatim
11062 #: ../src/guestfs-actions.pod:4144
11063 #, no-wrap
11064 msgid ""
11065 " char *\n"
11066 " guestfs_part_to_dev (guestfs_h *g,\n"
11067 "                      const char *partition);\n"
11068 "\n"
11069 msgstr ""
11070
11071 # type: textblock
11072 #: ../src/guestfs-actions.pod:4148 ../fish/guestfish-actions.pod:3039
11073 msgid ""
11074 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11075 "partition number, returning the device name (eg. \"/dev/sdb\")."
11076 msgstr ""
11077
11078 # type: textblock
11079 #: ../src/guestfs-actions.pod:4152
11080 msgid ""
11081 "The named partition must exist, for example as a string returned from "
11082 "C<guestfs_list_partitions>."
11083 msgstr ""
11084
11085 # type: =head2
11086 #: ../src/guestfs-actions.pod:4158
11087 msgid "guestfs_ping_daemon"
11088 msgstr ""
11089
11090 # type: verbatim
11091 #: ../src/guestfs-actions.pod:4160
11092 #, no-wrap
11093 msgid ""
11094 " int\n"
11095 " guestfs_ping_daemon (guestfs_h *g);\n"
11096 "\n"
11097 msgstr ""
11098
11099 # type: textblock
11100 #: ../src/guestfs-actions.pod:4163 ../fish/guestfish-actions.pod:3050
11101 msgid ""
11102 "This is a test probe into the guestfs daemon running inside the qemu "
11103 "subprocess.  Calling this function checks that the daemon responds to the "
11104 "ping message, without affecting the daemon or attached block device(s) in "
11105 "any other way."
11106 msgstr ""
11107
11108 # type: =head2
11109 #: ../src/guestfs-actions.pod:4170
11110 msgid "guestfs_pread"
11111 msgstr ""
11112
11113 # type: verbatim
11114 #: ../src/guestfs-actions.pod:4172
11115 #, no-wrap
11116 msgid ""
11117 " char *\n"
11118 " guestfs_pread (guestfs_h *g,\n"
11119 "                const char *path,\n"
11120 "                int count,\n"
11121 "                int64_t offset,\n"
11122 "                size_t *size_r);\n"
11123 "\n"
11124 msgstr ""
11125
11126 # type: textblock
11127 #: ../src/guestfs-actions.pod:4179 ../fish/guestfish-actions.pod:3059
11128 msgid ""
11129 "This command lets you read part of a file.  It reads C<count> bytes of the "
11130 "file, starting at C<offset>, from file C<path>."
11131 msgstr ""
11132
11133 # type: textblock
11134 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:3062 ../fish/guestfish-actions.pod:3077
11135 msgid ""
11136 "This may read fewer bytes than requested.  For further details see the "
11137 "L<pread(2)> system call."
11138 msgstr ""
11139
11140 # type: textblock
11141 #: ../src/guestfs-actions.pod:4185
11142 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11143 msgstr ""
11144
11145 # type: =head2
11146 #: ../src/guestfs-actions.pod:4194
11147 msgid "guestfs_pread_device"
11148 msgstr ""
11149
11150 # type: verbatim
11151 #: ../src/guestfs-actions.pod:4196
11152 #, no-wrap
11153 msgid ""
11154 " char *\n"
11155 " guestfs_pread_device (guestfs_h *g,\n"
11156 "                       const char *device,\n"
11157 "                       int count,\n"
11158 "                       int64_t offset,\n"
11159 "                       size_t *size_r);\n"
11160 "\n"
11161 msgstr ""
11162
11163 # type: textblock
11164 #: ../src/guestfs-actions.pod:4203 ../fish/guestfish-actions.pod:3074
11165 msgid ""
11166 "This command lets you read part of a file.  It reads C<count> bytes of "
11167 "C<device>, starting at C<offset>."
11168 msgstr ""
11169
11170 # type: textblock
11171 #: ../src/guestfs-actions.pod:4209
11172 msgid "See also C<guestfs_pread>."
11173 msgstr ""
11174
11175 # type: =head2
11176 #: ../src/guestfs-actions.pod:4218
11177 msgid "guestfs_pvcreate"
11178 msgstr ""
11179
11180 # type: verbatim
11181 #: ../src/guestfs-actions.pod:4220
11182 #, no-wrap
11183 msgid ""
11184 " int\n"
11185 " guestfs_pvcreate (guestfs_h *g,\n"
11186 "                   const char *device);\n"
11187 "\n"
11188 msgstr ""
11189
11190 # type: textblock
11191 #: ../src/guestfs-actions.pod:4224 ../fish/guestfish-actions.pod:3089
11192 msgid ""
11193 "This creates an LVM physical volume on the named C<device>, where C<device> "
11194 "should usually be a partition name such as C</dev/sda1>."
11195 msgstr ""
11196
11197 # type: =head2
11198 #: ../src/guestfs-actions.pod:4230
11199 msgid "guestfs_pvremove"
11200 msgstr ""
11201
11202 # type: verbatim
11203 #: ../src/guestfs-actions.pod:4232
11204 #, no-wrap
11205 msgid ""
11206 " int\n"
11207 " guestfs_pvremove (guestfs_h *g,\n"
11208 "                   const char *device);\n"
11209 "\n"
11210 msgstr ""
11211
11212 # type: textblock
11213 #: ../src/guestfs-actions.pod:4236 ../fish/guestfish-actions.pod:3097
11214 msgid ""
11215 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11216 "it."
11217 msgstr ""
11218
11219 # type: textblock
11220 #: ../src/guestfs-actions.pod:4239 ../fish/guestfish-actions.pod:3100
11221 msgid ""
11222 "The implementation uses the C<pvremove> command which refuses to wipe "
11223 "physical volumes that contain any volume groups, so you have to remove those "
11224 "first."
11225 msgstr ""
11226
11227 # type: =head2
11228 #: ../src/guestfs-actions.pod:4245
11229 msgid "guestfs_pvresize"
11230 msgstr ""
11231
11232 # type: verbatim
11233 #: ../src/guestfs-actions.pod:4247
11234 #, no-wrap
11235 msgid ""
11236 " int\n"
11237 " guestfs_pvresize (guestfs_h *g,\n"
11238 "                   const char *device);\n"
11239 "\n"
11240 msgstr ""
11241
11242 # type: textblock
11243 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:3108
11244 msgid ""
11245 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11246 "the new size of the underlying device."
11247 msgstr ""
11248
11249 # type: =head2
11250 #: ../src/guestfs-actions.pod:4256
11251 msgid "guestfs_pvresize_size"
11252 msgstr ""
11253
11254 # type: verbatim
11255 #: ../src/guestfs-actions.pod:4258
11256 #, no-wrap
11257 msgid ""
11258 " int\n"
11259 " guestfs_pvresize_size (guestfs_h *g,\n"
11260 "                        const char *device,\n"
11261 "                        int64_t size);\n"
11262 "\n"
11263 msgstr ""
11264
11265 # type: textblock
11266 #: ../src/guestfs-actions.pod:4263
11267 msgid ""
11268 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11269 "specify the new size (in bytes) explicitly."
11270 msgstr ""
11271
11272 # type: =head2
11273 #: ../src/guestfs-actions.pod:4268
11274 msgid "guestfs_pvs"
11275 msgstr ""
11276
11277 # type: verbatim
11278 #: ../src/guestfs-actions.pod:4270
11279 #, no-wrap
11280 msgid ""
11281 " char **\n"
11282 " guestfs_pvs (guestfs_h *g);\n"
11283 "\n"
11284 msgstr ""
11285
11286 # type: textblock
11287 #: ../src/guestfs-actions.pod:4273 ../fish/guestfish-actions.pod:3122
11288 msgid ""
11289 "List all the physical volumes detected.  This is the equivalent of the "
11290 "L<pvs(8)> command."
11291 msgstr ""
11292
11293 # type: textblock
11294 #: ../src/guestfs-actions.pod:4276 ../fish/guestfish-actions.pod:3125
11295 msgid ""
11296 "This returns a list of just the device names that contain PVs "
11297 "(eg. C</dev/sda2>)."
11298 msgstr ""
11299
11300 # type: textblock
11301 #: ../src/guestfs-actions.pod:4279
11302 msgid "See also C<guestfs_pvs_full>."
11303 msgstr ""
11304
11305 # type: =head2
11306 #: ../src/guestfs-actions.pod:4285
11307 msgid "guestfs_pvs_full"
11308 msgstr ""
11309
11310 # type: verbatim
11311 #: ../src/guestfs-actions.pod:4287
11312 #, no-wrap
11313 msgid ""
11314 " struct guestfs_lvm_pv_list *\n"
11315 " guestfs_pvs_full (guestfs_h *g);\n"
11316 "\n"
11317 msgstr ""
11318
11319 # type: textblock
11320 #: ../src/guestfs-actions.pod:4290 ../fish/guestfish-actions.pod:3134
11321 msgid ""
11322 "List all the physical volumes detected.  This is the equivalent of the "
11323 "L<pvs(8)> command.  The \"full\" version includes all fields."
11324 msgstr ""
11325
11326 # type: textblock
11327 #: ../src/guestfs-actions.pod:4293
11328 msgid ""
11329 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
11330 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11331 "must call C<guestfs_free_lvm_pv_list> after use>."
11332 msgstr ""
11333
11334 # type: =head2
11335 #: ../src/guestfs-actions.pod:4298
11336 msgid "guestfs_pvuuid"
11337 msgstr ""
11338
11339 # type: verbatim
11340 #: ../src/guestfs-actions.pod:4300
11341 #, no-wrap
11342 msgid ""
11343 " char *\n"
11344 " guestfs_pvuuid (guestfs_h *g,\n"
11345 "                 const char *device);\n"
11346 "\n"
11347 msgstr ""
11348
11349 # type: textblock
11350 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:3141
11351 msgid "This command returns the UUID of the LVM PV C<device>."
11352 msgstr ""
11353
11354 # type: =head2
11355 #: ../src/guestfs-actions.pod:4309
11356 msgid "guestfs_pwrite"
11357 msgstr ""
11358
11359 # type: verbatim
11360 #: ../src/guestfs-actions.pod:4311
11361 #, no-wrap
11362 msgid ""
11363 " int\n"
11364 " guestfs_pwrite (guestfs_h *g,\n"
11365 "                 const char *path,\n"
11366 "                 const char *content,\n"
11367 "                 size_t content_size,\n"
11368 "                 int64_t offset);\n"
11369 "\n"
11370 msgstr ""
11371
11372 # type: textblock
11373 #: ../src/guestfs-actions.pod:4318 ../fish/guestfish-actions.pod:3147
11374 msgid ""
11375 "This command writes to part of a file.  It writes the data buffer C<content> "
11376 "to the file C<path> starting at offset C<offset>."
11377 msgstr ""
11378
11379 # type: textblock
11380 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:3150
11381 msgid ""
11382 "This command implements the L<pwrite(2)> system call, and like that system "
11383 "call it may not write the full data requested.  The return value is the "
11384 "number of bytes that were actually written to the file.  This could even be "
11385 "0, although short writes are unlikely for regular files in ordinary "
11386 "circumstances."
11387 msgstr ""
11388
11389 # type: textblock
11390 #: ../src/guestfs-actions.pod:4327
11391 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11392 msgstr ""
11393
11394 # type: =head2
11395 #: ../src/guestfs-actions.pod:4334
11396 msgid "guestfs_pwrite_device"
11397 msgstr ""
11398
11399 # type: verbatim
11400 #: ../src/guestfs-actions.pod:4336
11401 #, no-wrap
11402 msgid ""
11403 " int\n"
11404 " guestfs_pwrite_device (guestfs_h *g,\n"
11405 "                        const char *device,\n"
11406 "                        const char *content,\n"
11407 "                        size_t content_size,\n"
11408 "                        int64_t offset);\n"
11409 "\n"
11410 msgstr ""
11411
11412 # type: textblock
11413 #: ../src/guestfs-actions.pod:4343 ../fish/guestfish-actions.pod:3165
11414 msgid ""
11415 "This command writes to part of a device.  It writes the data buffer "
11416 "C<content> to C<device> starting at offset C<offset>."
11417 msgstr ""
11418
11419 # type: textblock
11420 #: ../src/guestfs-actions.pod:4346 ../fish/guestfish-actions.pod:3168
11421 msgid ""
11422 "This command implements the L<pwrite(2)> system call, and like that system "
11423 "call it may not write the full data requested (although short writes to disk "
11424 "devices and partitions are probably impossible with standard Linux kernels)."
11425 msgstr ""
11426
11427 # type: textblock
11428 #: ../src/guestfs-actions.pod:4351
11429 msgid "See also C<guestfs_pwrite>."
11430 msgstr ""
11431
11432 # type: =head2
11433 #: ../src/guestfs-actions.pod:4358
11434 msgid "guestfs_read_file"
11435 msgstr ""
11436
11437 # type: verbatim
11438 #: ../src/guestfs-actions.pod:4360
11439 #, no-wrap
11440 msgid ""
11441 " char *\n"
11442 " guestfs_read_file (guestfs_h *g,\n"
11443 "                    const char *path,\n"
11444 "                    size_t *size_r);\n"
11445 "\n"
11446 msgstr ""
11447
11448 # type: textblock
11449 #: ../src/guestfs-actions.pod:4365 ../fish/guestfish-actions.pod:3182
11450 msgid "This calls returns the contents of the file C<path> as a buffer."
11451 msgstr ""
11452
11453 # type: textblock
11454 #: ../src/guestfs-actions.pod:4368
11455 msgid ""
11456 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11457 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11458 "function is limited in the total size of file that can be handled."
11459 msgstr ""
11460
11461 # type: =head2
11462 #: ../src/guestfs-actions.pod:4380
11463 msgid "guestfs_read_lines"
11464 msgstr ""
11465
11466 # type: verbatim
11467 #: ../src/guestfs-actions.pod:4382
11468 #, no-wrap
11469 msgid ""
11470 " char **\n"
11471 " guestfs_read_lines (guestfs_h *g,\n"
11472 "                     const char *path);\n"
11473 "\n"
11474 msgstr ""
11475
11476 # type: textblock
11477 #: ../src/guestfs-actions.pod:4388 ../fish/guestfish-actions.pod:3199
11478 msgid ""
11479 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11480 "C<CRLF> character sequences are I<not> returned."
11481 msgstr ""
11482
11483 # type: textblock
11484 #: ../src/guestfs-actions.pod:4391
11485 msgid ""
11486 "Note that this function cannot correctly handle binary files (specifically, "
11487 "files containing C<\\0> character which is treated as end of line).  For "
11488 "those you need to use the C<guestfs_read_file> function which has a more "
11489 "complex interface."
11490 msgstr ""
11491
11492 # type: =head2
11493 #: ../src/guestfs-actions.pod:4400
11494 msgid "guestfs_readdir"
11495 msgstr ""
11496
11497 # type: verbatim
11498 #: ../src/guestfs-actions.pod:4402
11499 #, no-wrap
11500 msgid ""
11501 " struct guestfs_dirent_list *\n"
11502 " guestfs_readdir (guestfs_h *g,\n"
11503 "                  const char *dir);\n"
11504 "\n"
11505 msgstr ""
11506
11507 # type: textblock
11508 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:3211
11509 msgid "This returns the list of directory entries in directory C<dir>."
11510 msgstr ""
11511
11512 # type: textblock
11513 #: ../src/guestfs-actions.pod:4408 ../fish/guestfish-actions.pod:3213
11514 msgid ""
11515 "All entries in the directory are returned, including C<.> and C<..>.  The "
11516 "entries are I<not> sorted, but returned in the same order as the underlying "
11517 "filesystem."
11518 msgstr ""
11519
11520 # type: textblock
11521 #: ../src/guestfs-actions.pod:4412 ../fish/guestfish-actions.pod:3217
11522 msgid ""
11523 "Also this call returns basic file type information about each file.  The "
11524 "C<ftyp> field will contain one of the following characters:"
11525 msgstr ""
11526
11527 # type: =item
11528 #: ../src/guestfs-actions.pod:4417 ../fish/guestfish-actions.pod:3222
11529 msgid "'b'"
11530 msgstr ""
11531
11532 # type: textblock
11533 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:3224
11534 msgid "Block special"
11535 msgstr ""
11536
11537 # type: =item
11538 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:3226
11539 msgid "'c'"
11540 msgstr ""
11541
11542 # type: textblock
11543 #: ../src/guestfs-actions.pod:4423 ../fish/guestfish-actions.pod:3228
11544 msgid "Char special"
11545 msgstr ""
11546
11547 # type: =item
11548 #: ../src/guestfs-actions.pod:4425 ../fish/guestfish-actions.pod:3230
11549 msgid "'d'"
11550 msgstr ""
11551
11552 # type: textblock
11553 #: ../src/guestfs-actions.pod:4427 ../fish/guestfish-actions.pod:3232
11554 msgid "Directory"
11555 msgstr ""
11556
11557 # type: =item
11558 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:3234
11559 msgid "'f'"
11560 msgstr ""
11561
11562 # type: textblock
11563 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:3236
11564 msgid "FIFO (named pipe)"
11565 msgstr ""
11566
11567 # type: =item
11568 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:3238
11569 msgid "'l'"
11570 msgstr ""
11571
11572 # type: textblock
11573 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:3240
11574 msgid "Symbolic link"
11575 msgstr ""
11576
11577 # type: =item
11578 #: ../src/guestfs-actions.pod:4437 ../fish/guestfish-actions.pod:3242
11579 msgid "'r'"
11580 msgstr ""
11581
11582 # type: textblock
11583 #: ../src/guestfs-actions.pod:4439 ../fish/guestfish-actions.pod:3244
11584 msgid "Regular file"
11585 msgstr ""
11586
11587 # type: =item
11588 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:3246
11589 msgid "'s'"
11590 msgstr ""
11591
11592 # type: textblock
11593 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:3248
11594 msgid "Socket"
11595 msgstr ""
11596
11597 # type: =item
11598 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:3250
11599 msgid "'u'"
11600 msgstr ""
11601
11602 # type: textblock
11603 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:3252
11604 msgid "Unknown file type"
11605 msgstr ""
11606
11607 # type: =item
11608 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:3254
11609 msgid "'?'"
11610 msgstr ""
11611
11612 # type: textblock
11613 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:3256
11614 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11615 msgstr ""
11616
11617 # type: textblock
11618 #: ../src/guestfs-actions.pod:4456
11619 msgid ""
11620 "This function is primarily intended for use by programs.  To get a simple "
11621 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11622 "consumption, use C<guestfs_ll>."
11623 msgstr ""
11624
11625 # type: textblock
11626 #: ../src/guestfs-actions.pod:4460
11627 msgid ""
11628 "This function returns a C<struct guestfs_dirent_list *> (see "
11629 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11630 "must call C<guestfs_free_dirent_list> after use>."
11631 msgstr ""
11632
11633 # type: =head2
11634 #: ../src/guestfs-actions.pod:4465
11635 msgid "guestfs_readlink"
11636 msgstr ""
11637
11638 # type: verbatim
11639 #: ../src/guestfs-actions.pod:4467
11640 #, no-wrap
11641 msgid ""
11642 " char *\n"
11643 " guestfs_readlink (guestfs_h *g,\n"
11644 "                   const char *path);\n"
11645 "\n"
11646 msgstr ""
11647
11648 # type: textblock
11649 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3269
11650 msgid "This command reads the target of a symbolic link."
11651 msgstr ""
11652
11653 # type: =head2
11654 #: ../src/guestfs-actions.pod:4476
11655 msgid "guestfs_readlinklist"
11656 msgstr ""
11657
11658 # type: verbatim
11659 #: ../src/guestfs-actions.pod:4478
11660 #, no-wrap
11661 msgid ""
11662 " char **\n"
11663 " guestfs_readlinklist (guestfs_h *g,\n"
11664 "                       const char *path,\n"
11665 "                       char *const *names);\n"
11666 "\n"
11667 msgstr ""
11668
11669 # type: textblock
11670 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3275
11671 msgid ""
11672 "This call allows you to do a C<readlink> operation on multiple files, where "
11673 "all files are in the directory C<path>.  C<names> is the list of files from "
11674 "this directory."
11675 msgstr ""
11676
11677 # type: textblock
11678 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:3279
11679 msgid ""
11680 "On return you get a list of strings, with a one-to-one correspondence to the "
11681 "C<names> list.  Each string is the value of the symbolic link."
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4491 ../fish/guestfish-actions.pod:3283
11686 msgid ""
11687 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11688 "result string is the empty string C<\"\">.  However the whole operation is "
11689 "completed even if there were C<readlink(2)> errors, and so you can call this "
11690 "function with names where you don't know if they are symbolic links already "
11691 "(albeit slightly less efficient)."
11692 msgstr ""
11693
11694 # type: textblock
11695 #: ../src/guestfs-actions.pod:4498 ../fish/guestfish-actions.pod:3290
11696 msgid ""
11697 "This call is intended for programs that want to efficiently list a directory "
11698 "contents without making many round-trips.  Very long directory listings "
11699 "might cause the protocol message size to be exceeded, causing this call to "
11700 "fail.  The caller must split up such requests into smaller groups of names."
11701 msgstr ""
11702
11703 # type: =head2
11704 #: ../src/guestfs-actions.pod:4509
11705 msgid "guestfs_realpath"
11706 msgstr ""
11707
11708 # type: verbatim
11709 #: ../src/guestfs-actions.pod:4511
11710 #, no-wrap
11711 msgid ""
11712 " char *\n"
11713 " guestfs_realpath (guestfs_h *g,\n"
11714 "                   const char *path);\n"
11715 "\n"
11716 msgstr ""
11717
11718 # type: textblock
11719 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:3301
11720 msgid ""
11721 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11722 "has no C<.>, C<..> or symbolic link path elements."
11723 msgstr ""
11724
11725 # type: =head2
11726 #: ../src/guestfs-actions.pod:4521
11727 msgid "guestfs_removexattr"
11728 msgstr ""
11729
11730 # type: verbatim
11731 #: ../src/guestfs-actions.pod:4523
11732 #, no-wrap
11733 msgid ""
11734 " int\n"
11735 " guestfs_removexattr (guestfs_h *g,\n"
11736 "                      const char *xattr,\n"
11737 "                      const char *path);\n"
11738 "\n"
11739 msgstr ""
11740
11741 # type: textblock
11742 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3308
11743 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
11744 msgstr ""
11745
11746 # type: textblock
11747 #: ../src/guestfs-actions.pod:4531
11748 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11749 msgstr ""
11750
11751 # type: =head2
11752 #: ../src/guestfs-actions.pod:4535
11753 msgid "guestfs_resize2fs"
11754 msgstr ""
11755
11756 # type: verbatim
11757 #: ../src/guestfs-actions.pod:4537
11758 #, no-wrap
11759 msgid ""
11760 " int\n"
11761 " guestfs_resize2fs (guestfs_h *g,\n"
11762 "                    const char *device);\n"
11763 "\n"
11764 msgstr ""
11765
11766 # type: textblock
11767 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3317
11768 msgid ""
11769 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11770 "underlying device."
11771 msgstr ""
11772
11773 # type: textblock
11774 #: ../src/guestfs-actions.pod:4544
11775 msgid ""
11776 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11777 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11778 "sometimes gives an error about this and sometimes not.  In any case, it is "
11779 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11780 msgstr ""
11781
11782 # type: =head2
11783 #: ../src/guestfs-actions.pod:4552
11784 msgid "guestfs_resize2fs_size"
11785 msgstr ""
11786
11787 # type: verbatim
11788 #: ../src/guestfs-actions.pod:4554
11789 #, no-wrap
11790 msgid ""
11791 " int\n"
11792 " guestfs_resize2fs_size (guestfs_h *g,\n"
11793 "                         const char *device,\n"
11794 "                         int64_t size);\n"
11795 "\n"
11796 msgstr ""
11797
11798 # type: textblock
11799 #: ../src/guestfs-actions.pod:4559
11800 msgid ""
11801 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11802 "to specify the new size (in bytes) explicitly."
11803 msgstr ""
11804
11805 # type: =head2
11806 #: ../src/guestfs-actions.pod:4564
11807 msgid "guestfs_rm"
11808 msgstr ""
11809
11810 # type: verbatim
11811 #: ../src/guestfs-actions.pod:4566
11812 #, no-wrap
11813 msgid ""
11814 " int\n"
11815 " guestfs_rm (guestfs_h *g,\n"
11816 "             const char *path);\n"
11817 "\n"
11818 msgstr ""
11819
11820 # type: textblock
11821 #: ../src/guestfs-actions.pod:4570 ../fish/guestfish-actions.pod:3337
11822 msgid "Remove the single file C<path>."
11823 msgstr ""
11824
11825 # type: =head2
11826 #: ../src/guestfs-actions.pod:4574
11827 msgid "guestfs_rm_rf"
11828 msgstr ""
11829
11830 # type: verbatim
11831 #: ../src/guestfs-actions.pod:4576
11832 #, no-wrap
11833 msgid ""
11834 " int\n"
11835 " guestfs_rm_rf (guestfs_h *g,\n"
11836 "                const char *path);\n"
11837 "\n"
11838 msgstr ""
11839
11840 # type: textblock
11841 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3343
11842 msgid ""
11843 "Remove the file or directory C<path>, recursively removing the contents if "
11844 "its a directory.  This is like the C<rm -rf> shell command."
11845 msgstr ""
11846
11847 # type: =head2
11848 #: ../src/guestfs-actions.pod:4586
11849 msgid "guestfs_rmdir"
11850 msgstr ""
11851
11852 # type: verbatim
11853 #: ../src/guestfs-actions.pod:4588
11854 #, no-wrap
11855 msgid ""
11856 " int\n"
11857 " guestfs_rmdir (guestfs_h *g,\n"
11858 "                const char *path);\n"
11859 "\n"
11860 msgstr ""
11861
11862 # type: textblock
11863 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3351
11864 msgid "Remove the single directory C<path>."
11865 msgstr ""
11866
11867 # type: =head2
11868 #: ../src/guestfs-actions.pod:4596
11869 msgid "guestfs_rmmountpoint"
11870 msgstr ""
11871
11872 # type: verbatim
11873 #: ../src/guestfs-actions.pod:4598
11874 #, no-wrap
11875 msgid ""
11876 " int\n"
11877 " guestfs_rmmountpoint (guestfs_h *g,\n"
11878 "                       const char *exemptpath);\n"
11879 "\n"
11880 msgstr ""
11881
11882 # type: textblock
11883 #: ../src/guestfs-actions.pod:4602
11884 msgid ""
11885 "This calls removes a mountpoint that was previously created with "
11886 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11887 msgstr ""
11888
11889 # type: =head2
11890 #: ../src/guestfs-actions.pod:4608
11891 msgid "guestfs_scrub_device"
11892 msgstr ""
11893
11894 # type: verbatim
11895 #: ../src/guestfs-actions.pod:4610
11896 #, no-wrap
11897 msgid ""
11898 " int\n"
11899 " guestfs_scrub_device (guestfs_h *g,\n"
11900 "                       const char *device);\n"
11901 "\n"
11902 msgstr ""
11903
11904 # type: textblock
11905 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3365
11906 msgid ""
11907 "This command writes patterns over C<device> to make data retrieval more "
11908 "difficult."
11909 msgstr ""
11910
11911 # type: textblock
11912 #: ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4636 ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3368 ../fish/guestfish-actions.pod:3383 ../fish/guestfish-actions.pod:3396
11913 msgid ""
11914 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11915 "more details."
11916 msgstr ""
11917
11918 # type: =head2
11919 #: ../src/guestfs-actions.pod:4625
11920 msgid "guestfs_scrub_file"
11921 msgstr ""
11922
11923 # type: verbatim
11924 #: ../src/guestfs-actions.pod:4627
11925 #, no-wrap
11926 msgid ""
11927 " int\n"
11928 " guestfs_scrub_file (guestfs_h *g,\n"
11929 "                     const char *file);\n"
11930 "\n"
11931 msgstr ""
11932
11933 # type: textblock
11934 #: ../src/guestfs-actions.pod:4631 ../fish/guestfish-actions.pod:3378
11935 msgid ""
11936 "This command writes patterns over a file to make data retrieval more "
11937 "difficult."
11938 msgstr ""
11939
11940 # type: textblock
11941 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3381
11942 msgid "The file is I<removed> after scrubbing."
11943 msgstr ""
11944
11945 # type: =head2
11946 #: ../src/guestfs-actions.pod:4641
11947 msgid "guestfs_scrub_freespace"
11948 msgstr ""
11949
11950 # type: verbatim
11951 #: ../src/guestfs-actions.pod:4643
11952 #, no-wrap
11953 msgid ""
11954 " int\n"
11955 " guestfs_scrub_freespace (guestfs_h *g,\n"
11956 "                          const char *dir);\n"
11957 "\n"
11958 msgstr ""
11959
11960 # type: textblock
11961 #: ../src/guestfs-actions.pod:4647
11962 msgid ""
11963 "This command creates the directory C<dir> and then fills it with files until "
11964 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11965 "and deletes them.  The intention is to scrub any free space on the partition "
11966 "containing C<dir>."
11967 msgstr ""
11968
11969 # type: =head2
11970 #: ../src/guestfs-actions.pod:4658
11971 msgid "guestfs_set_append"
11972 msgstr ""
11973
11974 # type: verbatim
11975 #: ../src/guestfs-actions.pod:4660
11976 #, no-wrap
11977 msgid ""
11978 " int\n"
11979 " guestfs_set_append (guestfs_h *g,\n"
11980 "                     const char *append);\n"
11981 "\n"
11982 msgstr ""
11983
11984 # type: textblock
11985 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3405
11986 msgid ""
11987 "This function is used to add additional options to the guest kernel command "
11988 "line."
11989 msgstr ""
11990
11991 # type: textblock
11992 #: ../src/guestfs-actions.pod:4667 ../fish/guestfish-actions.pod:3408
11993 msgid ""
11994 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11995 "environment variable."
11996 msgstr ""
11997
11998 # type: textblock
11999 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3411
12000 msgid ""
12001 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12002 "(libguestfs always adds a few of its own)."
12003 msgstr ""
12004
12005 # type: =head2
12006 #: ../src/guestfs-actions.pod:4675
12007 msgid "guestfs_set_autosync"
12008 msgstr ""
12009
12010 # type: verbatim
12011 #: ../src/guestfs-actions.pod:4677
12012 #, no-wrap
12013 msgid ""
12014 " int\n"
12015 " guestfs_set_autosync (guestfs_h *g,\n"
12016 "                       int autosync);\n"
12017 "\n"
12018 msgstr ""
12019
12020 # type: textblock
12021 #: ../src/guestfs-actions.pod:4681
12022 msgid ""
12023 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12024 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12025 "the handle is closed (also if the program exits without closing handles)."
12026 msgstr ""
12027
12028 # type: textblock
12029 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3425
12030 msgid ""
12031 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12032 "disabled by default)."
12033 msgstr ""
12034
12035 # type: =head2
12036 #: ../src/guestfs-actions.pod:4691
12037 msgid "guestfs_set_direct"
12038 msgstr ""
12039
12040 # type: verbatim
12041 #: ../src/guestfs-actions.pod:4693
12042 #, no-wrap
12043 msgid ""
12044 " int\n"
12045 " guestfs_set_direct (guestfs_h *g,\n"
12046 "                     int direct);\n"
12047 "\n"
12048 msgstr ""
12049
12050 # type: textblock
12051 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3434
12052 msgid ""
12053 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12054 "passed directly through to the appliance once it is launched."
12055 msgstr ""
12056
12057 # type: textblock
12058 #: ../src/guestfs-actions.pod:4701
12059 msgid ""
12060 "One consequence of this is that log messages aren't caught by the library "
12061 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12062 "stdout."
12063 msgstr ""
12064
12065 # type: textblock
12066 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3442
12067 msgid "You probably don't want to use this unless you know what you are doing."
12068 msgstr ""
12069
12070 # type: textblock
12071 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3445
12072 msgid "The default is disabled."
12073 msgstr ""
12074
12075 # type: =head2
12076 #: ../src/guestfs-actions.pod:4712
12077 msgid "guestfs_set_e2label"
12078 msgstr ""
12079
12080 # type: verbatim
12081 #: ../src/guestfs-actions.pod:4714
12082 #, no-wrap
12083 msgid ""
12084 " int\n"
12085 " guestfs_set_e2label (guestfs_h *g,\n"
12086 "                      const char *device,\n"
12087 "                      const char *label);\n"
12088 "\n"
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3451
12093 msgid ""
12094 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12095 "C<label>.  Filesystem labels are limited to 16 characters."
12096 msgstr ""
12097
12098 # type: textblock
12099 #: ../src/guestfs-actions.pod:4723
12100 msgid ""
12101 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12102 "the existing label on a filesystem."
12103 msgstr ""
12104
12105 # type: =head2
12106 #: ../src/guestfs-actions.pod:4728
12107 msgid "guestfs_set_e2uuid"
12108 msgstr ""
12109
12110 # type: verbatim
12111 #: ../src/guestfs-actions.pod:4730
12112 #, no-wrap
12113 msgid ""
12114 " int\n"
12115 " guestfs_set_e2uuid (guestfs_h *g,\n"
12116 "                     const char *device,\n"
12117 "                     const char *uuid);\n"
12118 "\n"
12119 msgstr ""
12120
12121 # type: textblock
12122 #: ../src/guestfs-actions.pod:4735 ../fish/guestfish-actions.pod:3462
12123 msgid ""
12124 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12125 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12126 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12127 msgstr ""
12128
12129 # type: textblock
12130 #: ../src/guestfs-actions.pod:4740
12131 msgid ""
12132 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12133 "the existing UUID of a filesystem."
12134 msgstr ""
12135
12136 # type: =head2
12137 #: ../src/guestfs-actions.pod:4745
12138 msgid "guestfs_set_memsize"
12139 msgstr ""
12140
12141 # type: verbatim
12142 #: ../src/guestfs-actions.pod:4747
12143 #, no-wrap
12144 msgid ""
12145 " int\n"
12146 " guestfs_set_memsize (guestfs_h *g,\n"
12147 "                      int memsize);\n"
12148 "\n"
12149 msgstr ""
12150
12151 # type: textblock
12152 #: ../src/guestfs-actions.pod:4751
12153 msgid ""
12154 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12155 "This only has any effect if called before C<guestfs_launch>."
12156 msgstr ""
12157
12158 # type: textblock
12159 #: ../src/guestfs-actions.pod:4755 ../fish/guestfish-actions.pod:3480
12160 msgid ""
12161 "You can also change this by setting the environment variable "
12162 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12163 msgstr ""
12164
12165 # type: =head2
12166 #: ../src/guestfs-actions.pod:4764
12167 msgid "guestfs_set_network"
12168 msgstr ""
12169
12170 # type: verbatim
12171 #: ../src/guestfs-actions.pod:4766
12172 #, no-wrap
12173 msgid ""
12174 " int\n"
12175 " guestfs_set_network (guestfs_h *g,\n"
12176 "                      int network);\n"
12177 "\n"
12178 msgstr ""
12179
12180 # type: textblock
12181 #: ../src/guestfs-actions.pod:4770 ../fish/guestfish-actions.pod:3493
12182 msgid ""
12183 "If C<network> is true, then the network is enabled in the libguestfs "
12184 "appliance.  The default is false."
12185 msgstr ""
12186
12187 # type: textblock
12188 #: ../src/guestfs-actions.pod:4773 ../fish/guestfish-actions.pod:3496
12189 msgid ""
12190 "This affects whether commands are able to access the network (see "
12191 "L<guestfs(3)/RUNNING COMMANDS>)."
12192 msgstr ""
12193
12194 # type: textblock
12195 #: ../src/guestfs-actions.pod:4776
12196 msgid ""
12197 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12198 "effect."
12199 msgstr ""
12200
12201 # type: =head2
12202 #: ../src/guestfs-actions.pod:4781
12203 msgid "guestfs_set_path"
12204 msgstr ""
12205
12206 # type: verbatim
12207 #: ../src/guestfs-actions.pod:4783
12208 #, no-wrap
12209 msgid ""
12210 " int\n"
12211 " guestfs_set_path (guestfs_h *g,\n"
12212 "                   const char *searchpath);\n"
12213 "\n"
12214 msgstr ""
12215
12216 # type: textblock
12217 #: ../src/guestfs-actions.pod:4787 ../fish/guestfish-actions.pod:3508
12218 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12219 msgstr ""
12220
12221 # type: textblock
12222 #: ../src/guestfs-actions.pod:4789 ../fish/guestfish-actions.pod:3510
12223 msgid ""
12224 "The default is C<$libdir/guestfs> unless overridden by setting "
12225 "C<LIBGUESTFS_PATH> environment variable."
12226 msgstr ""
12227
12228 # type: textblock
12229 #: ../src/guestfs-actions.pod:4792 ../fish/guestfish-actions.pod:3513
12230 msgid "Setting C<path> to C<NULL> restores the default path."
12231 msgstr ""
12232
12233 # type: =head2
12234 #: ../src/guestfs-actions.pod:4796
12235 msgid "guestfs_set_qemu"
12236 msgstr ""
12237
12238 # type: verbatim
12239 #: ../src/guestfs-actions.pod:4798
12240 #, no-wrap
12241 msgid ""
12242 " int\n"
12243 " guestfs_set_qemu (guestfs_h *g,\n"
12244 "                   const char *qemu);\n"
12245 "\n"
12246 msgstr ""
12247
12248 # type: textblock
12249 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3521
12250 msgid "Set the qemu binary that we will use."
12251 msgstr ""
12252
12253 # type: textblock
12254 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3523
12255 msgid "The default is chosen when the library was compiled by the configure script."
12256 msgstr ""
12257
12258 # type: textblock
12259 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3526
12260 msgid ""
12261 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12262 "variable."
12263 msgstr ""
12264
12265 # type: textblock
12266 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3529
12267 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12268 msgstr ""
12269
12270 # type: textblock
12271 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3531
12272 msgid ""
12273 "Note that you should call this function as early as possible after creating "
12274 "the handle.  This is because some pre-launch operations depend on testing "
12275 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12276 "don't retest features, and so you might see inconsistent results.  Using the "
12277 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12278 "the qemu binary at the same time as the handle is created."
12279 msgstr ""
12280
12281 # type: =head2
12282 #: ../src/guestfs-actions.pod:4822
12283 msgid "guestfs_set_recovery_proc"
12284 msgstr ""
12285
12286 # type: verbatim
12287 #: ../src/guestfs-actions.pod:4824
12288 #, no-wrap
12289 msgid ""
12290 " int\n"
12291 " guestfs_set_recovery_proc (guestfs_h *g,\n"
12292 "                            int recoveryproc);\n"
12293 "\n"
12294 msgstr ""
12295
12296 # type: textblock
12297 #: ../src/guestfs-actions.pod:4828
12298 msgid ""
12299 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12300 "not create a recovery process.  The purpose of the recovery process is to "
12301 "stop runaway qemu processes in the case where the main program aborts "
12302 "abruptly."
12303 msgstr ""
12304
12305 # type: textblock
12306 #: ../src/guestfs-actions.pod:4833
12307 msgid ""
12308 "This only has any effect if called before C<guestfs_launch>, and the default "
12309 "is true."
12310 msgstr ""
12311
12312 # type: textblock
12313 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3553
12314 msgid ""
12315 "About the only time when you would want to disable this is if the main "
12316 "process will fork itself into the background (\"daemonize\" itself).  In "
12317 "this case the recovery process thinks that the main program has disappeared "
12318 "and so kills qemu, which is not very helpful."
12319 msgstr ""
12320
12321 # type: =head2
12322 #: ../src/guestfs-actions.pod:4844
12323 msgid "guestfs_set_selinux"
12324 msgstr ""
12325
12326 # type: verbatim
12327 #: ../src/guestfs-actions.pod:4846
12328 #, no-wrap
12329 msgid ""
12330 " int\n"
12331 " guestfs_set_selinux (guestfs_h *g,\n"
12332 "                      int selinux);\n"
12333 "\n"
12334 msgstr ""
12335
12336 # type: textblock
12337 #: ../src/guestfs-actions.pod:4850 ../fish/guestfish-actions.pod:3565
12338 msgid ""
12339 "This sets the selinux flag that is passed to the appliance at boot time.  "
12340 "The default is C<selinux=0> (disabled)."
12341 msgstr ""
12342
12343 # type: textblock
12344 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3568
12345 msgid ""
12346 "Note that if SELinux is enabled, it is always in Permissive mode "
12347 "(C<enforcing=0>)."
12348 msgstr ""
12349
12350 # type: =head2
12351 #: ../src/guestfs-actions.pod:4861
12352 msgid "guestfs_set_trace"
12353 msgstr ""
12354
12355 # type: verbatim
12356 #: ../src/guestfs-actions.pod:4863
12357 #, no-wrap
12358 msgid ""
12359 " int\n"
12360 " guestfs_set_trace (guestfs_h *g,\n"
12361 "                    int trace);\n"
12362 "\n"
12363 msgstr ""
12364
12365 # type: textblock
12366 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3580
12367 msgid ""
12368 "If the command trace flag is set to 1, then commands are printed on stderr "
12369 "before they are executed in a format which is very similar to the one used "
12370 "by guestfish.  In other words, you can run a program with this enabled, and "
12371 "you will get out a script which you can feed to guestfish to perform the "
12372 "same set of actions."
12373 msgstr ""
12374
12375 # type: textblock
12376 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3587
12377 msgid ""
12378 "If you want to trace C API calls into libguestfs (and other libraries) then "
12379 "possibly a better way is to use the external ltrace(1) command."
12380 msgstr ""
12381
12382 # type: textblock
12383 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3591
12384 msgid ""
12385 "Command traces are disabled unless the environment variable "
12386 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12387 msgstr ""
12388
12389 # type: =head2
12390 #: ../src/guestfs-actions.pod:4883
12391 msgid "guestfs_set_verbose"
12392 msgstr ""
12393
12394 # type: verbatim
12395 #: ../src/guestfs-actions.pod:4885
12396 #, no-wrap
12397 msgid ""
12398 " int\n"
12399 " guestfs_set_verbose (guestfs_h *g,\n"
12400 "                      int verbose);\n"
12401 "\n"
12402 msgstr ""
12403
12404 # type: textblock
12405 #: ../src/guestfs-actions.pod:4889 ../fish/guestfish-actions.pod:3600
12406 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12407 msgstr ""
12408
12409 # type: textblock
12410 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3602
12411 msgid ""
12412 "Verbose messages are disabled unless the environment variable "
12413 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12414 msgstr ""
12415
12416 # type: =head2
12417 #: ../src/guestfs-actions.pod:4896
12418 msgid "guestfs_setcon"
12419 msgstr ""
12420
12421 # type: verbatim
12422 #: ../src/guestfs-actions.pod:4898
12423 #, no-wrap
12424 msgid ""
12425 " int\n"
12426 " guestfs_setcon (guestfs_h *g,\n"
12427 "                 const char *context);\n"
12428 "\n"
12429 msgstr ""
12430
12431 # type: textblock
12432 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3609
12433 msgid ""
12434 "This sets the SELinux security context of the daemon to the string "
12435 "C<context>."
12436 msgstr ""
12437
12438 # type: textblock
12439 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3612
12440 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12441 msgstr ""
12442
12443 # type: =head2
12444 #: ../src/guestfs-actions.pod:4909
12445 msgid "guestfs_setxattr"
12446 msgstr ""
12447
12448 # type: verbatim
12449 #: ../src/guestfs-actions.pod:4911
12450 #, no-wrap
12451 msgid ""
12452 " int\n"
12453 " guestfs_setxattr (guestfs_h *g,\n"
12454 "                   const char *xattr,\n"
12455 "                   const char *val,\n"
12456 "                   int vallen,\n"
12457 "                   const char *path);\n"
12458 "\n"
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3618
12463 msgid ""
12464 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12465 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12466 msgstr ""
12467
12468 # type: textblock
12469 #: ../src/guestfs-actions.pod:4922
12470 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12471 msgstr ""
12472
12473 # type: =head2
12474 #: ../src/guestfs-actions.pod:4926
12475 msgid "guestfs_sfdisk"
12476 msgstr ""
12477
12478 # type: verbatim
12479 #: ../src/guestfs-actions.pod:4928
12480 #, no-wrap
12481 msgid ""
12482 " int\n"
12483 " guestfs_sfdisk (guestfs_h *g,\n"
12484 "                 const char *device,\n"
12485 "                 int cyls,\n"
12486 "                 int heads,\n"
12487 "                 int sectors,\n"
12488 "                 char *const *lines);\n"
12489 "\n"
12490 msgstr ""
12491
12492 # type: textblock
12493 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3628
12494 msgid ""
12495 "This is a direct interface to the L<sfdisk(8)> program for creating "
12496 "partitions on block devices."
12497 msgstr ""
12498
12499 # type: textblock
12500 #: ../src/guestfs-actions.pod:4939 ../fish/guestfish-actions.pod:3631
12501 msgid "C<device> should be a block device, for example C</dev/sda>."
12502 msgstr ""
12503
12504 # type: textblock
12505 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3633
12506 msgid ""
12507 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12508 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12509 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12510 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12511 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12512 "the kernel) cannot work out the right geometry and you will need to tell it."
12513 msgstr ""
12514
12515 # type: textblock
12516 #: ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3641
12517 msgid ""
12518 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12519 "refer to the L<sfdisk(8)> manpage."
12520 msgstr ""
12521
12522 # type: textblock
12523 #: ../src/guestfs-actions.pod:4952 ../fish/guestfish-actions.pod:3644
12524 msgid ""
12525 "To create a single partition occupying the whole disk, you would pass "
12526 "C<lines> as a single element list, when the single element being the string "
12527 "C<,> (comma)."
12528 msgstr ""
12529
12530 # type: textblock
12531 #: ../src/guestfs-actions.pod:4956
12532 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12533 msgstr ""
12534
12535 # type: =head2
12536 #: ../src/guestfs-actions.pod:4964
12537 msgid "guestfs_sfdiskM"
12538 msgstr ""
12539
12540 # type: verbatim
12541 #: ../src/guestfs-actions.pod:4966
12542 #, no-wrap
12543 msgid ""
12544 " int\n"
12545 " guestfs_sfdiskM (guestfs_h *g,\n"
12546 "                  const char *device,\n"
12547 "                  char *const *lines);\n"
12548 "\n"
12549 msgstr ""
12550
12551 # type: textblock
12552 #: ../src/guestfs-actions.pod:4971
12553 msgid ""
12554 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12555 "partition sizes are specified in megabytes only (rounded to the nearest "
12556 "cylinder) and you don't need to specify the cyls, heads and sectors "
12557 "parameters which were rarely if ever used anyway."
12558 msgstr ""
12559
12560 # type: textblock
12561 #: ../src/guestfs-actions.pod:4977
12562 msgid ""
12563 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12564 "C<guestfs_part_disk>"
12565 msgstr ""
12566
12567 # type: =head2
12568 #: ../src/guestfs-actions.pod:4985
12569 msgid "guestfs_sfdisk_N"
12570 msgstr ""
12571
12572 # type: verbatim
12573 #: ../src/guestfs-actions.pod:4987
12574 #, no-wrap
12575 msgid ""
12576 " int\n"
12577 " guestfs_sfdisk_N (guestfs_h *g,\n"
12578 "                   const char *device,\n"
12579 "                   int partnum,\n"
12580 "                   int cyls,\n"
12581 "                   int heads,\n"
12582 "                   int sectors,\n"
12583 "                   const char *line);\n"
12584 "\n"
12585 msgstr ""
12586
12587 # type: textblock
12588 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3674
12589 msgid ""
12590 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12591 "(note: C<n> counts from 1)."
12592 msgstr ""
12593
12594 # type: textblock
12595 #: ../src/guestfs-actions.pod:4999
12596 msgid ""
12597 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12598 "for the cyls/heads/sectors parameters."
12599 msgstr ""
12600
12601 # type: textblock
12602 #: ../src/guestfs-actions.pod:5002
12603 msgid "See also: C<guestfs_part_add>"
12604 msgstr ""
12605
12606 # type: =head2
12607 #: ../src/guestfs-actions.pod:5009
12608 msgid "guestfs_sfdisk_disk_geometry"
12609 msgstr ""
12610
12611 # type: verbatim
12612 #: ../src/guestfs-actions.pod:5011
12613 #, no-wrap
12614 msgid ""
12615 " char *\n"
12616 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12617 "                               const char *device);\n"
12618 "\n"
12619 msgstr ""
12620
12621 # type: textblock
12622 #: ../src/guestfs-actions.pod:5015
12623 msgid ""
12624 "This displays the disk geometry of C<device> read from the partition table.  "
12625 "Especially in the case where the underlying block device has been resized, "
12626 "this can be different from the kernel's idea of the geometry (see "
12627 "C<guestfs_sfdisk_kernel_geometry>)."
12628 msgstr ""
12629
12630 # type: textblock
12631 #: ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5034 ../fish/guestfish-actions.pod:3694 ../fish/guestfish-actions.pod:3703
12632 msgid "The result is in human-readable format, and not designed to be parsed."
12633 msgstr ""
12634
12635 # type: =head2
12636 #: ../src/guestfs-actions.pod:5026
12637 msgid "guestfs_sfdisk_kernel_geometry"
12638 msgstr ""
12639
12640 # type: verbatim
12641 #: ../src/guestfs-actions.pod:5028
12642 #, no-wrap
12643 msgid ""
12644 " char *\n"
12645 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12646 "                                 const char *device);\n"
12647 "\n"
12648 msgstr ""
12649
12650 # type: textblock
12651 #: ../src/guestfs-actions.pod:5032 ../fish/guestfish-actions.pod:3701
12652 msgid "This displays the kernel's idea of the geometry of C<device>."
12653 msgstr ""
12654
12655 # type: =head2
12656 #: ../src/guestfs-actions.pod:5040
12657 msgid "guestfs_sfdisk_l"
12658 msgstr ""
12659
12660 # type: verbatim
12661 #: ../src/guestfs-actions.pod:5042
12662 #, no-wrap
12663 msgid ""
12664 " char *\n"
12665 " guestfs_sfdisk_l (guestfs_h *g,\n"
12666 "                   const char *device);\n"
12667 "\n"
12668 msgstr ""
12669
12670 # type: textblock
12671 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3710
12672 msgid ""
12673 "This displays the partition table on C<device>, in the human-readable output "
12674 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12675 msgstr ""
12676
12677 # type: textblock
12678 #: ../src/guestfs-actions.pod:5050
12679 msgid "See also: C<guestfs_part_list>"
12680 msgstr ""
12681
12682 # type: =head2
12683 #: ../src/guestfs-actions.pod:5055
12684 msgid "guestfs_sh"
12685 msgstr ""
12686
12687 # type: verbatim
12688 #: ../src/guestfs-actions.pod:5057
12689 #, no-wrap
12690 msgid ""
12691 " char *\n"
12692 " guestfs_sh (guestfs_h *g,\n"
12693 "             const char *command);\n"
12694 "\n"
12695 msgstr ""
12696
12697 # type: textblock
12698 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3720
12699 msgid ""
12700 "This call runs a command from the guest filesystem via the guest's "
12701 "C</bin/sh>."
12702 msgstr ""
12703
12704 # type: textblock
12705 #: ../src/guestfs-actions.pod:5064
12706 msgid "This is like C<guestfs_command>, but passes the command to:"
12707 msgstr ""
12708
12709 # type: verbatim
12710 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3725
12711 #, no-wrap
12712 msgid ""
12713 " /bin/sh -c \"command\"\n"
12714 "\n"
12715 msgstr ""
12716
12717 # type: textblock
12718 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3727
12719 msgid ""
12720 "Depending on the guest's shell, this usually results in wildcards being "
12721 "expanded, shell expressions being interpolated and so on."
12722 msgstr ""
12723
12724 # type: textblock
12725 #: ../src/guestfs-actions.pod:5072
12726 msgid "All the provisos about C<guestfs_command> apply to this call."
12727 msgstr ""
12728
12729 # type: =head2
12730 #: ../src/guestfs-actions.pod:5077
12731 msgid "guestfs_sh_lines"
12732 msgstr ""
12733
12734 # type: verbatim
12735 #: ../src/guestfs-actions.pod:5079
12736 #, no-wrap
12737 msgid ""
12738 " char **\n"
12739 " guestfs_sh_lines (guestfs_h *g,\n"
12740 "                   const char *command);\n"
12741 "\n"
12742 msgstr ""
12743
12744 # type: textblock
12745 #: ../src/guestfs-actions.pod:5083
12746 msgid ""
12747 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12748 "lines."
12749 msgstr ""
12750
12751 # type: textblock
12752 #: ../src/guestfs-actions.pod:5086
12753 msgid "See also: C<guestfs_command_lines>"
12754 msgstr ""
12755
12756 # type: =head2
12757 #: ../src/guestfs-actions.pod:5092
12758 msgid "guestfs_sleep"
12759 msgstr ""
12760
12761 # type: verbatim
12762 #: ../src/guestfs-actions.pod:5094
12763 #, no-wrap
12764 msgid ""
12765 " int\n"
12766 " guestfs_sleep (guestfs_h *g,\n"
12767 "                int secs);\n"
12768 "\n"
12769 msgstr ""
12770
12771 # type: textblock
12772 #: ../src/guestfs-actions.pod:5098 ../fish/guestfish-actions.pod:3746
12773 msgid "Sleep for C<secs> seconds."
12774 msgstr ""
12775
12776 # type: =head2
12777 #: ../src/guestfs-actions.pod:5102 ../src/guestfs-structs.pod:109
12778 msgid "guestfs_stat"
12779 msgstr ""
12780
12781 # type: verbatim
12782 #: ../src/guestfs-actions.pod:5104
12783 #, no-wrap
12784 msgid ""
12785 " struct guestfs_stat *\n"
12786 " guestfs_stat (guestfs_h *g,\n"
12787 "               const char *path);\n"
12788 "\n"
12789 msgstr ""
12790
12791 # type: textblock
12792 #: ../src/guestfs-actions.pod:5110 ../fish/guestfish-actions.pod:3754
12793 msgid "This is the same as the C<stat(2)> system call."
12794 msgstr ""
12795
12796 # type: =head2
12797 #: ../src/guestfs-actions.pod:5116 ../src/guestfs-structs.pod:135
12798 msgid "guestfs_statvfs"
12799 msgstr ""
12800
12801 # type: verbatim
12802 #: ../src/guestfs-actions.pod:5118
12803 #, no-wrap
12804 msgid ""
12805 " struct guestfs_statvfs *\n"
12806 " guestfs_statvfs (guestfs_h *g,\n"
12807 "                  const char *path);\n"
12808 "\n"
12809 msgstr ""
12810
12811 # type: textblock
12812 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3760
12813 msgid ""
12814 "Returns file system statistics for any mounted file system.  C<path> should "
12815 "be a file or directory in the mounted file system (typically it is the mount "
12816 "point itself, but it doesn't need to be)."
12817 msgstr ""
12818
12819 # type: textblock
12820 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3764
12821 msgid "This is the same as the C<statvfs(2)> system call."
12822 msgstr ""
12823
12824 # type: textblock
12825 #: ../src/guestfs-actions.pod:5128
12826 msgid ""
12827 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12828 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12829 msgstr ""
12830
12831 # type: =head2
12832 #: ../src/guestfs-actions.pod:5132
12833 msgid "guestfs_strings"
12834 msgstr ""
12835
12836 # type: verbatim
12837 #: ../src/guestfs-actions.pod:5134
12838 #, no-wrap
12839 msgid ""
12840 " char **\n"
12841 " guestfs_strings (guestfs_h *g,\n"
12842 "                  const char *path);\n"
12843 "\n"
12844 msgstr ""
12845
12846 # type: textblock
12847 #: ../src/guestfs-actions.pod:5138 ../fish/guestfish-actions.pod:3770
12848 msgid ""
12849 "This runs the L<strings(1)> command on a file and returns the list of "
12850 "printable strings found."
12851 msgstr ""
12852
12853 # type: =head2
12854 #: ../src/guestfs-actions.pod:5148
12855 msgid "guestfs_strings_e"
12856 msgstr ""
12857
12858 # type: verbatim
12859 #: ../src/guestfs-actions.pod:5150
12860 #, no-wrap
12861 msgid ""
12862 " char **\n"
12863 " guestfs_strings_e (guestfs_h *g,\n"
12864 "                    const char *encoding,\n"
12865 "                    const char *path);\n"
12866 "\n"
12867 msgstr ""
12868
12869 # type: textblock
12870 #: ../src/guestfs-actions.pod:5155
12871 msgid ""
12872 "This is like the C<guestfs_strings> command, but allows you to specify the "
12873 "encoding of strings that are looked for in the source file C<path>."
12874 msgstr ""
12875
12876 # type: textblock
12877 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3784
12878 msgid "Allowed encodings are:"
12879 msgstr ""
12880
12881 # type: =item
12882 #: ../src/guestfs-actions.pod:5163 ../fish/guestfish-actions.pod:3788
12883 msgid "s"
12884 msgstr ""
12885
12886 # type: textblock
12887 #: ../src/guestfs-actions.pod:5165
12888 msgid ""
12889 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12890 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12891 msgstr ""
12892
12893 # type: =item
12894 #: ../src/guestfs-actions.pod:5168 ../fish/guestfish-actions.pod:3793
12895 msgid "S"
12896 msgstr ""
12897
12898 # type: textblock
12899 #: ../src/guestfs-actions.pod:5170 ../fish/guestfish-actions.pod:3795
12900 msgid "Single 8-bit-byte characters."
12901 msgstr ""
12902
12903 # type: =item
12904 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3797
12905 msgid "b"
12906 msgstr ""
12907
12908 # type: textblock
12909 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3799
12910 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12911 msgstr ""
12912
12913 # type: =item
12914 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:3802
12915 msgid "l (lower case letter L)"
12916 msgstr ""
12917
12918 # type: textblock
12919 #: ../src/guestfs-actions.pod:5179 ../fish/guestfish-actions.pod:3804
12920 msgid ""
12921 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12922 "examining binaries in Windows guests."
12923 msgstr ""
12924
12925 # type: =item
12926 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3807
12927 msgid "B"
12928 msgstr ""
12929
12930 # type: textblock
12931 #: ../src/guestfs-actions.pod:5184 ../fish/guestfish-actions.pod:3809
12932 msgid "32-bit big endian such as UCS-4BE."
12933 msgstr ""
12934
12935 # type: =item
12936 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3811
12937 msgid "L"
12938 msgstr ""
12939
12940 # type: textblock
12941 #: ../src/guestfs-actions.pod:5188 ../fish/guestfish-actions.pod:3813
12942 msgid "32-bit little endian such as UCS-4LE."
12943 msgstr ""
12944
12945 # type: textblock
12946 #: ../src/guestfs-actions.pod:5192 ../fish/guestfish-actions.pod:3817
12947 msgid "The returned strings are transcoded to UTF-8."
12948 msgstr ""
12949
12950 # type: =head2
12951 #: ../src/guestfs-actions.pod:5201
12952 msgid "guestfs_swapoff_device"
12953 msgstr ""
12954
12955 # type: verbatim
12956 #: ../src/guestfs-actions.pod:5203
12957 #, no-wrap
12958 msgid ""
12959 " int\n"
12960 " guestfs_swapoff_device (guestfs_h *g,\n"
12961 "                         const char *device);\n"
12962 "\n"
12963 msgstr ""
12964
12965 # type: textblock
12966 #: ../src/guestfs-actions.pod:5207
12967 msgid ""
12968 "This command disables the libguestfs appliance swap device or partition "
12969 "named C<device>.  See C<guestfs_swapon_device>."
12970 msgstr ""
12971
12972 # type: =head2
12973 #: ../src/guestfs-actions.pod:5213
12974 msgid "guestfs_swapoff_file"
12975 msgstr ""
12976
12977 # type: verbatim
12978 #: ../src/guestfs-actions.pod:5215
12979 #, no-wrap
12980 msgid ""
12981 " int\n"
12982 " guestfs_swapoff_file (guestfs_h *g,\n"
12983 "                       const char *file);\n"
12984 "\n"
12985 msgstr ""
12986
12987 # type: textblock
12988 #: ../src/guestfs-actions.pod:5219 ../fish/guestfish-actions.pod:3834
12989 msgid "This command disables the libguestfs appliance swap on file."
12990 msgstr ""
12991
12992 # type: =head2
12993 #: ../src/guestfs-actions.pod:5223
12994 msgid "guestfs_swapoff_label"
12995 msgstr ""
12996
12997 # type: verbatim
12998 #: ../src/guestfs-actions.pod:5225
12999 #, no-wrap
13000 msgid ""
13001 " int\n"
13002 " guestfs_swapoff_label (guestfs_h *g,\n"
13003 "                        const char *label);\n"
13004 "\n"
13005 msgstr ""
13006
13007 # type: textblock
13008 #: ../src/guestfs-actions.pod:5229 ../fish/guestfish-actions.pod:3840
13009 msgid ""
13010 "This command disables the libguestfs appliance swap on labeled swap "
13011 "partition."
13012 msgstr ""
13013
13014 # type: =head2
13015 #: ../src/guestfs-actions.pod:5234
13016 msgid "guestfs_swapoff_uuid"
13017 msgstr ""
13018
13019 # type: verbatim
13020 #: ../src/guestfs-actions.pod:5236
13021 #, no-wrap
13022 msgid ""
13023 " int\n"
13024 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13025 "                       const char *uuid);\n"
13026 "\n"
13027 msgstr ""
13028
13029 # type: textblock
13030 #: ../src/guestfs-actions.pod:5240 ../fish/guestfish-actions.pod:3847
13031 msgid ""
13032 "This command disables the libguestfs appliance swap partition with the given "
13033 "UUID."
13034 msgstr ""
13035
13036 # type: =head2
13037 #: ../src/guestfs-actions.pod:5245
13038 msgid "guestfs_swapon_device"
13039 msgstr ""
13040
13041 # type: verbatim
13042 #: ../src/guestfs-actions.pod:5247
13043 #, no-wrap
13044 msgid ""
13045 " int\n"
13046 " guestfs_swapon_device (guestfs_h *g,\n"
13047 "                        const char *device);\n"
13048 "\n"
13049 msgstr ""
13050
13051 # type: textblock
13052 #: ../src/guestfs-actions.pod:5251
13053 msgid ""
13054 "This command enables the libguestfs appliance to use the swap device or "
13055 "partition named C<device>.  The increased memory is made available for all "
13056 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13057 msgstr ""
13058
13059 # type: textblock
13060 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:3859
13061 msgid ""
13062 "Note that you should not swap to existing guest swap partitions unless you "
13063 "know what you are doing.  They may contain hibernation information, or other "
13064 "information that the guest doesn't want you to trash.  You also risk leaking "
13065 "information about the host to the guest this way.  Instead, attach a new "
13066 "host device to the guest and swap on that."
13067 msgstr ""
13068
13069 # type: =head2
13070 #: ../src/guestfs-actions.pod:5265
13071 msgid "guestfs_swapon_file"
13072 msgstr ""
13073
13074 # type: verbatim
13075 #: ../src/guestfs-actions.pod:5267
13076 #, no-wrap
13077 msgid ""
13078 " int\n"
13079 " guestfs_swapon_file (guestfs_h *g,\n"
13080 "                      const char *file);\n"
13081 "\n"
13082 msgstr ""
13083
13084 # type: textblock
13085 #: ../src/guestfs-actions.pod:5271
13086 msgid ""
13087 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13088 "notes."
13089 msgstr ""
13090
13091 # type: =head2
13092 #: ../src/guestfs-actions.pod:5276
13093 msgid "guestfs_swapon_label"
13094 msgstr ""
13095
13096 # type: verbatim
13097 #: ../src/guestfs-actions.pod:5278
13098 #, no-wrap
13099 msgid ""
13100 " int\n"
13101 " guestfs_swapon_label (guestfs_h *g,\n"
13102 "                       const char *label);\n"
13103 "\n"
13104 msgstr ""
13105
13106 # type: textblock
13107 #: ../src/guestfs-actions.pod:5282
13108 msgid ""
13109 "This command enables swap to a labeled swap partition.  See "
13110 "C<guestfs_swapon_device> for other notes."
13111 msgstr ""
13112
13113 # type: =head2
13114 #: ../src/guestfs-actions.pod:5287
13115 msgid "guestfs_swapon_uuid"
13116 msgstr ""
13117
13118 # type: verbatim
13119 #: ../src/guestfs-actions.pod:5289
13120 #, no-wrap
13121 msgid ""
13122 " int\n"
13123 " guestfs_swapon_uuid (guestfs_h *g,\n"
13124 "                      const char *uuid);\n"
13125 "\n"
13126 msgstr ""
13127
13128 # type: textblock
13129 #: ../src/guestfs-actions.pod:5293
13130 msgid ""
13131 "This command enables swap to a swap partition with the given UUID.  See "
13132 "C<guestfs_swapon_device> for other notes."
13133 msgstr ""
13134
13135 # type: =head2
13136 #: ../src/guestfs-actions.pod:5298
13137 msgid "guestfs_sync"
13138 msgstr ""
13139
13140 # type: verbatim
13141 #: ../src/guestfs-actions.pod:5300
13142 #, no-wrap
13143 msgid ""
13144 " int\n"
13145 " guestfs_sync (guestfs_h *g);\n"
13146 "\n"
13147 msgstr ""
13148
13149 # type: textblock
13150 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3891
13151 msgid ""
13152 "This syncs the disk, so that any writes are flushed through to the "
13153 "underlying disk image."
13154 msgstr ""
13155
13156 # type: textblock
13157 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:3894
13158 msgid ""
13159 "You should always call this if you have modified a disk image, before "
13160 "closing the handle."
13161 msgstr ""
13162
13163 # type: =head2
13164 #: ../src/guestfs-actions.pod:5311
13165 msgid "guestfs_tail"
13166 msgstr ""
13167
13168 # type: verbatim
13169 #: ../src/guestfs-actions.pod:5313
13170 #, no-wrap
13171 msgid ""
13172 " char **\n"
13173 " guestfs_tail (guestfs_h *g,\n"
13174 "               const char *path);\n"
13175 "\n"
13176 msgstr ""
13177
13178 # type: textblock
13179 #: ../src/guestfs-actions.pod:5317 ../fish/guestfish-actions.pod:3901
13180 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13181 msgstr ""
13182
13183 # type: =head2
13184 #: ../src/guestfs-actions.pod:5327
13185 msgid "guestfs_tail_n"
13186 msgstr ""
13187
13188 # type: verbatim
13189 #: ../src/guestfs-actions.pod:5329
13190 #, no-wrap
13191 msgid ""
13192 " char **\n"
13193 " guestfs_tail_n (guestfs_h *g,\n"
13194 "                 int nrlines,\n"
13195 "                 const char *path);\n"
13196 "\n"
13197 msgstr ""
13198
13199 # type: textblock
13200 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:3911
13201 msgid ""
13202 "If the parameter C<nrlines> is a positive number, this returns the last "
13203 "C<nrlines> lines of the file C<path>."
13204 msgstr ""
13205
13206 # type: textblock
13207 #: ../src/guestfs-actions.pod:5337 ../fish/guestfish-actions.pod:3914
13208 msgid ""
13209 "If the parameter C<nrlines> is a negative number, this returns lines from "
13210 "the file C<path>, starting with the C<-nrlines>th line."
13211 msgstr ""
13212
13213 # type: =head2
13214 #: ../src/guestfs-actions.pod:5349
13215 msgid "guestfs_tar_in"
13216 msgstr ""
13217
13218 # type: verbatim
13219 #: ../src/guestfs-actions.pod:5351
13220 #, no-wrap
13221 msgid ""
13222 " int\n"
13223 " guestfs_tar_in (guestfs_h *g,\n"
13224 "                 const char *tarfile,\n"
13225 "                 const char *directory);\n"
13226 "\n"
13227 msgstr ""
13228
13229 # type: textblock
13230 #: ../src/guestfs-actions.pod:5356 ../fish/guestfish-actions.pod:3926
13231 msgid ""
13232 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13233 "tar file) into C<directory>."
13234 msgstr ""
13235
13236 # type: textblock
13237 #: ../src/guestfs-actions.pod:5359
13238 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13239 msgstr ""
13240
13241 # type: =head2
13242 #: ../src/guestfs-actions.pod:5364
13243 msgid "guestfs_tar_out"
13244 msgstr ""
13245
13246 # type: verbatim
13247 #: ../src/guestfs-actions.pod:5366
13248 #, no-wrap
13249 msgid ""
13250 " int\n"
13251 " guestfs_tar_out (guestfs_h *g,\n"
13252 "                  const char *directory,\n"
13253 "                  const char *tarfile);\n"
13254 "\n"
13255 msgstr ""
13256
13257 # type: textblock
13258 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:3938
13259 msgid ""
13260 "This command packs the contents of C<directory> and downloads it to local "
13261 "file C<tarfile>."
13262 msgstr ""
13263
13264 # type: textblock
13265 #: ../src/guestfs-actions.pod:5374
13266 msgid ""
13267 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13268 "C<guestfs_txz_out>."
13269 msgstr ""
13270
13271 # type: =head2
13272 #: ../src/guestfs-actions.pod:5379
13273 msgid "guestfs_tgz_in"
13274 msgstr ""
13275
13276 # type: verbatim
13277 #: ../src/guestfs-actions.pod:5381
13278 #, no-wrap
13279 msgid ""
13280 " int\n"
13281 " guestfs_tgz_in (guestfs_h *g,\n"
13282 "                 const char *tarball,\n"
13283 "                 const char *directory);\n"
13284 "\n"
13285 msgstr ""
13286
13287 # type: textblock
13288 #: ../src/guestfs-actions.pod:5386 ../fish/guestfish-actions.pod:3950
13289 msgid ""
13290 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13291 "tar file) into C<directory>."
13292 msgstr ""
13293
13294 # type: textblock
13295 #: ../src/guestfs-actions.pod:5389
13296 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13297 msgstr ""
13298
13299 # type: =head2
13300 #: ../src/guestfs-actions.pod:5393
13301 msgid "guestfs_tgz_out"
13302 msgstr ""
13303
13304 # type: verbatim
13305 #: ../src/guestfs-actions.pod:5395
13306 #, no-wrap
13307 msgid ""
13308 " int\n"
13309 " guestfs_tgz_out (guestfs_h *g,\n"
13310 "                  const char *directory,\n"
13311 "                  const char *tarball);\n"
13312 "\n"
13313 msgstr ""
13314
13315 # type: textblock
13316 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3961
13317 msgid ""
13318 "This command packs the contents of C<directory> and downloads it to local "
13319 "file C<tarball>."
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5403
13324 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13325 msgstr ""
13326
13327 # type: =head2
13328 #: ../src/guestfs-actions.pod:5407
13329 msgid "guestfs_touch"
13330 msgstr ""
13331
13332 # type: verbatim
13333 #: ../src/guestfs-actions.pod:5409
13334 #, no-wrap
13335 msgid ""
13336 " int\n"
13337 " guestfs_touch (guestfs_h *g,\n"
13338 "                const char *path);\n"
13339 "\n"
13340 msgstr ""
13341
13342 # type: textblock
13343 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3972
13344 msgid ""
13345 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13346 "timestamps on a file, or, if the file does not exist, to create a new "
13347 "zero-length file."
13348 msgstr ""
13349
13350 # type: textblock
13351 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3976
13352 msgid ""
13353 "This command only works on regular files, and will fail on other file types "
13354 "such as directories, symbolic links, block special etc."
13355 msgstr ""
13356
13357 # type: =head2
13358 #: ../src/guestfs-actions.pod:5422
13359 msgid "guestfs_truncate"
13360 msgstr ""
13361
13362 # type: verbatim
13363 #: ../src/guestfs-actions.pod:5424
13364 #, no-wrap
13365 msgid ""
13366 " int\n"
13367 " guestfs_truncate (guestfs_h *g,\n"
13368 "                   const char *path);\n"
13369 "\n"
13370 msgstr ""
13371
13372 # type: textblock
13373 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3983
13374 msgid ""
13375 "This command truncates C<path> to a zero-length file.  The file must exist "
13376 "already."
13377 msgstr ""
13378
13379 # type: =head2
13380 #: ../src/guestfs-actions.pod:5433
13381 msgid "guestfs_truncate_size"
13382 msgstr ""
13383
13384 # type: verbatim
13385 #: ../src/guestfs-actions.pod:5435
13386 #, no-wrap
13387 msgid ""
13388 " int\n"
13389 " guestfs_truncate_size (guestfs_h *g,\n"
13390 "                        const char *path,\n"
13391 "                        int64_t size);\n"
13392 "\n"
13393 msgstr ""
13394
13395 # type: textblock
13396 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3990
13397 msgid ""
13398 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13399 "already."
13400 msgstr ""
13401
13402 # type: textblock
13403 #: ../src/guestfs-actions.pod:5443
13404 msgid ""
13405 "If the current file size is less than C<size> then the file is extended to "
13406 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13407 "blocks are not allocated for the file until you write to it).  To create a "
13408 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13409 msgstr ""
13410
13411 # type: =head2
13412 #: ../src/guestfs-actions.pod:5451
13413 msgid "guestfs_tune2fs_l"
13414 msgstr ""
13415
13416 # type: verbatim
13417 #: ../src/guestfs-actions.pod:5453
13418 #, no-wrap
13419 msgid ""
13420 " char **\n"
13421 " guestfs_tune2fs_l (guestfs_h *g,\n"
13422 "                    const char *device);\n"
13423 "\n"
13424 msgstr ""
13425
13426 # type: textblock
13427 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:4003
13428 msgid ""
13429 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13430 "C<device>."
13431 msgstr ""
13432
13433 # type: textblock
13434 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:4006
13435 msgid ""
13436 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13437 "for more details.  The list of fields returned isn't clearly defined, and "
13438 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13439 "and the filesystem itself."
13440 msgstr ""
13441
13442 # type: =head2
13443 #: ../src/guestfs-actions.pod:5471
13444 msgid "guestfs_txz_in"
13445 msgstr ""
13446
13447 # type: verbatim
13448 #: ../src/guestfs-actions.pod:5473
13449 #, no-wrap
13450 msgid ""
13451 " int\n"
13452 " guestfs_txz_in (guestfs_h *g,\n"
13453 "                 const char *tarball,\n"
13454 "                 const char *directory);\n"
13455 "\n"
13456 msgstr ""
13457
13458 # type: textblock
13459 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:4015
13460 msgid ""
13461 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13462 "tar file) into C<directory>."
13463 msgstr ""
13464
13465 # type: =head2
13466 #: ../src/guestfs-actions.pod:5483
13467 msgid "guestfs_txz_out"
13468 msgstr ""
13469
13470 # type: verbatim
13471 #: ../src/guestfs-actions.pod:5485
13472 #, no-wrap
13473 msgid ""
13474 " int\n"
13475 " guestfs_txz_out (guestfs_h *g,\n"
13476 "                  const char *directory,\n"
13477 "                  const char *tarball);\n"
13478 "\n"
13479 msgstr ""
13480
13481 # type: textblock
13482 #: ../src/guestfs-actions.pod:5490 ../fish/guestfish-actions.pod:4024
13483 msgid ""
13484 "This command packs the contents of C<directory> and downloads it to local "
13485 "file C<tarball> (as an xz compressed tar archive)."
13486 msgstr ""
13487
13488 # type: =head2
13489 #: ../src/guestfs-actions.pod:5495
13490 msgid "guestfs_umask"
13491 msgstr ""
13492
13493 # type: verbatim
13494 #: ../src/guestfs-actions.pod:5497
13495 #, no-wrap
13496 msgid ""
13497 " int\n"
13498 " guestfs_umask (guestfs_h *g,\n"
13499 "                int mask);\n"
13500 "\n"
13501 msgstr ""
13502
13503 # type: textblock
13504 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:4033
13505 msgid ""
13506 "This function sets the mask used for creating new files and device nodes to "
13507 "C<mask & 0777>."
13508 msgstr ""
13509
13510 # type: textblock
13511 #: ../src/guestfs-actions.pod:5504 ../fish/guestfish-actions.pod:4036
13512 msgid ""
13513 "Typical umask values would be C<022> which creates new files with "
13514 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13515 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13516 msgstr ""
13517
13518 # type: textblock
13519 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:4041
13520 msgid ""
13521 "The default umask is C<022>.  This is important because it means that "
13522 "directories and device nodes will be created with C<0644> or C<0755> mode "
13523 "even if you specify C<0777>."
13524 msgstr ""
13525
13526 # type: textblock
13527 #: ../src/guestfs-actions.pod:5513
13528 msgid ""
13529 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13530 "C<guestfs_mkdir>."
13531 msgstr ""
13532
13533 # type: textblock
13534 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:4048
13535 msgid "This call returns the previous umask."
13536 msgstr ""
13537
13538 # type: =head2
13539 #: ../src/guestfs-actions.pod:5520
13540 msgid "guestfs_umount"
13541 msgstr ""
13542
13543 # type: verbatim
13544 #: ../src/guestfs-actions.pod:5522
13545 #, no-wrap
13546 msgid ""
13547 " int\n"
13548 " guestfs_umount (guestfs_h *g,\n"
13549 "                 const char *pathordevice);\n"
13550 "\n"
13551 msgstr ""
13552
13553 # type: textblock
13554 #: ../src/guestfs-actions.pod:5526 ../fish/guestfish-actions.pod:4056
13555 msgid ""
13556 "This unmounts the given filesystem.  The filesystem may be specified either "
13557 "by its mountpoint (path) or the device which contains the filesystem."
13558 msgstr ""
13559
13560 # type: =head2
13561 #: ../src/guestfs-actions.pod:5532
13562 msgid "guestfs_umount_all"
13563 msgstr ""
13564
13565 # type: verbatim
13566 #: ../src/guestfs-actions.pod:5534
13567 #, no-wrap
13568 msgid ""
13569 " int\n"
13570 " guestfs_umount_all (guestfs_h *g);\n"
13571 "\n"
13572 msgstr ""
13573
13574 # type: textblock
13575 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:4066
13576 msgid "This unmounts all mounted filesystems."
13577 msgstr ""
13578
13579 # type: textblock
13580 #: ../src/guestfs-actions.pod:5539 ../fish/guestfish-actions.pod:4068
13581 msgid "Some internal mounts are not unmounted by this call."
13582 msgstr ""
13583
13584 # type: =head2
13585 #: ../src/guestfs-actions.pod:5543
13586 msgid "guestfs_upload"
13587 msgstr ""
13588
13589 # type: verbatim
13590 #: ../src/guestfs-actions.pod:5545
13591 #, no-wrap
13592 msgid ""
13593 " int\n"
13594 " guestfs_upload (guestfs_h *g,\n"
13595 "                 const char *filename,\n"
13596 "                 const char *remotefilename);\n"
13597 "\n"
13598 msgstr ""
13599
13600 # type: textblock
13601 #: ../src/guestfs-actions.pod:5550 ../src/guestfs-actions.pod:5567 ../fish/guestfish-actions.pod:4074 ../fish/guestfish-actions.pod:4087
13602 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13603 msgstr ""
13604
13605 # type: textblock
13606 #: ../src/guestfs-actions.pod:5555
13607 msgid "See also C<guestfs_download>."
13608 msgstr ""
13609
13610 # type: =head2
13611 #: ../src/guestfs-actions.pod:5559
13612 msgid "guestfs_upload_offset"
13613 msgstr ""
13614
13615 # type: verbatim
13616 #: ../src/guestfs-actions.pod:5561
13617 #, no-wrap
13618 msgid ""
13619 " int\n"
13620 " guestfs_upload_offset (guestfs_h *g,\n"
13621 "                        const char *filename,\n"
13622 "                        const char *remotefilename,\n"
13623 "                        int64_t offset);\n"
13624 "\n"
13625 msgstr ""
13626
13627 # type: textblock
13628 #: ../src/guestfs-actions.pod:5570 ../fish/guestfish-actions.pod:4090
13629 msgid ""
13630 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13631 "The intention is to overwrite parts of existing files or devices, although "
13632 "if a non-existant file is specified then it is created with a \"hole\" "
13633 "before C<offset>.  The size of the data written is implicit in the size of "
13634 "the source C<filename>."
13635 msgstr ""
13636
13637 # type: textblock
13638 #: ../src/guestfs-actions.pod:5577
13639 msgid ""
13640 "Note that there is no limit on the amount of data that can be uploaded with "
13641 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13642 "full amount unless an error occurs."
13643 msgstr ""
13644
13645 # type: textblock
13646 #: ../src/guestfs-actions.pod:5582
13647 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13648 msgstr ""
13649
13650 # type: =head2
13651 #: ../src/guestfs-actions.pod:5586
13652 msgid "guestfs_utimens"
13653 msgstr ""
13654
13655 # type: verbatim
13656 #: ../src/guestfs-actions.pod:5588
13657 #, no-wrap
13658 msgid ""
13659 " int\n"
13660 " guestfs_utimens (guestfs_h *g,\n"
13661 "                  const char *path,\n"
13662 "                  int64_t atsecs,\n"
13663 "                  int64_t atnsecs,\n"
13664 "                  int64_t mtsecs,\n"
13665 "                  int64_t mtnsecs);\n"
13666 "\n"
13667 msgstr ""
13668
13669 # type: textblock
13670 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:4110
13671 msgid "This command sets the timestamps of a file with nanosecond precision."
13672 msgstr ""
13673
13674 # type: textblock
13675 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:4113
13676 msgid ""
13677 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13678 "from the epoch."
13679 msgstr ""
13680
13681 # type: textblock
13682 #: ../src/guestfs-actions.pod:5602 ../fish/guestfish-actions.pod:4116
13683 msgid ""
13684 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13685 "nanoseconds from the epoch."
13686 msgstr ""
13687
13688 # type: textblock
13689 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:4119
13690 msgid ""
13691 "If the C<*nsecs> field contains the special value C<-1> then the "
13692 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13693 "ignored in this case)."
13694 msgstr ""
13695
13696 # type: textblock
13697 #: ../src/guestfs-actions.pod:5609 ../fish/guestfish-actions.pod:4123
13698 msgid ""
13699 "If the C<*nsecs> field contains the special value C<-2> then the "
13700 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13701 "in this case)."
13702 msgstr ""
13703
13704 # type: =head2
13705 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-structs.pod:175
13706 msgid "guestfs_version"
13707 msgstr ""
13708
13709 # type: verbatim
13710 #: ../src/guestfs-actions.pod:5617
13711 #, no-wrap
13712 msgid ""
13713 " struct guestfs_version *\n"
13714 " guestfs_version (guestfs_h *g);\n"
13715 "\n"
13716 msgstr ""
13717
13718 # type: textblock
13719 #: ../src/guestfs-actions.pod:5620 ../fish/guestfish-actions.pod:4131
13720 msgid "Return the libguestfs version number that the program is linked against."
13721 msgstr ""
13722
13723 # type: textblock
13724 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:4134
13725 msgid ""
13726 "Note that because of dynamic linking this is not necessarily the version of "
13727 "libguestfs that you compiled against.  You can compile the program, and then "
13728 "at runtime dynamically link against a completely different C<libguestfs.so> "
13729 "library."
13730 msgstr ""
13731
13732 # type: textblock
13733 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:4139
13734 msgid ""
13735 "This call was added in version C<1.0.58>.  In previous versions of "
13736 "libguestfs there was no way to get the version number.  From C code you can "
13737 "use dynamic linker functions to find out if this symbol exists (if it "
13738 "doesn't, then it's an earlier version)."
13739 msgstr ""
13740
13741 # type: textblock
13742 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:4145
13743 msgid ""
13744 "The call returns a structure with four elements.  The first three (C<major>, "
13745 "C<minor> and C<release>) are numbers and correspond to the usual version "
13746 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13747 "but may be used for distro-specific information."
13748 msgstr ""
13749
13750 # type: textblock
13751 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:4151
13752 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
13753 msgstr ""
13754
13755 # type: textblock
13756 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:4154
13757 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13758 msgstr ""
13759
13760 # type: textblock
13761 #: ../src/guestfs-actions.pod:5645
13762 msgid ""
13763 "I<Note:> Don't use this call to test for availability of features.  In "
13764 "enterprise distributions we backport features from later versions into "
13765 "earlier versions, making this an unreliable way to test for features.  Use "
13766 "C<guestfs_available> instead."
13767 msgstr ""
13768
13769 # type: textblock
13770 #: ../src/guestfs-actions.pod:5651
13771 msgid ""
13772 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13773 "error.  I<The caller must call C<guestfs_free_version> after use>."
13774 msgstr ""
13775
13776 # type: =head2
13777 #: ../src/guestfs-actions.pod:5655
13778 msgid "guestfs_vfs_label"
13779 msgstr ""
13780
13781 # type: verbatim
13782 #: ../src/guestfs-actions.pod:5657
13783 #, no-wrap
13784 msgid ""
13785 " char *\n"
13786 " guestfs_vfs_label (guestfs_h *g,\n"
13787 "                    const char *device);\n"
13788 "\n"
13789 msgstr ""
13790
13791 # type: textblock
13792 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:4166
13793 msgid "This returns the filesystem label of the filesystem on C<device>."
13794 msgstr ""
13795
13796 # type: textblock
13797 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:4169
13798 msgid "If the filesystem is unlabeled, this returns the empty string."
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:5666
13803 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13804 msgstr ""
13805
13806 # type: =head2
13807 #: ../src/guestfs-actions.pod:5671
13808 msgid "guestfs_vfs_type"
13809 msgstr ""
13810
13811 # type: verbatim
13812 #: ../src/guestfs-actions.pod:5673
13813 #, no-wrap
13814 msgid ""
13815 " char *\n"
13816 " guestfs_vfs_type (guestfs_h *g,\n"
13817 "                   const char *device);\n"
13818 "\n"
13819 msgstr ""
13820
13821 # type: textblock
13822 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:4177
13823 msgid ""
13824 "This command gets the filesystem type corresponding to the filesystem on "
13825 "C<device>."
13826 msgstr ""
13827
13828 # type: textblock
13829 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:4180
13830 msgid ""
13831 "For most filesystems, the result is the name of the Linux VFS module which "
13832 "would be used to mount this filesystem if you mounted it without specifying "
13833 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13834 msgstr ""
13835
13836 # type: =head2
13837 #: ../src/guestfs-actions.pod:5688
13838 msgid "guestfs_vfs_uuid"
13839 msgstr ""
13840
13841 # type: verbatim
13842 #: ../src/guestfs-actions.pod:5690
13843 #, no-wrap
13844 msgid ""
13845 " char *\n"
13846 " guestfs_vfs_uuid (guestfs_h *g,\n"
13847 "                   const char *device);\n"
13848 "\n"
13849 msgstr ""
13850
13851 # type: textblock
13852 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:4189
13853 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13854 msgstr ""
13855
13856 # type: textblock
13857 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:4192
13858 msgid "If the filesystem does not have a UUID, this returns the empty string."
13859 msgstr ""
13860
13861 # type: textblock
13862 #: ../src/guestfs-actions.pod:5699
13863 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13864 msgstr ""
13865
13866 # type: =head2
13867 #: ../src/guestfs-actions.pod:5704
13868 msgid "guestfs_vg_activate"
13869 msgstr ""
13870
13871 # type: verbatim
13872 #: ../src/guestfs-actions.pod:5706
13873 #, no-wrap
13874 msgid ""
13875 " int\n"
13876 " guestfs_vg_activate (guestfs_h *g,\n"
13877 "                      int activate,\n"
13878 "                      char *const *volgroups);\n"
13879 "\n"
13880 msgstr ""
13881
13882 # type: textblock
13883 #: ../src/guestfs-actions.pod:5711 ../fish/guestfish-actions.pod:4200
13884 msgid ""
13885 "This command activates or (if C<activate> is false) deactivates all logical "
13886 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13887 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13888 "deactivated, then those devices disappear."
13889 msgstr ""
13890
13891 # type: textblock
13892 #: ../src/guestfs-actions.pod:5717 ../fish/guestfish-actions.pod:4206
13893 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13894 msgstr ""
13895
13896 # type: textblock
13897 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:4208
13898 msgid ""
13899 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13900 "activated or deactivated."
13901 msgstr ""
13902
13903 # type: =head2
13904 #: ../src/guestfs-actions.pod:5724
13905 msgid "guestfs_vg_activate_all"
13906 msgstr ""
13907
13908 # type: verbatim
13909 #: ../src/guestfs-actions.pod:5726
13910 #, no-wrap
13911 msgid ""
13912 " int\n"
13913 " guestfs_vg_activate_all (guestfs_h *g,\n"
13914 "                          int activate);\n"
13915 "\n"
13916 msgstr ""
13917
13918 # type: textblock
13919 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:4215
13920 msgid ""
13921 "This command activates or (if C<activate> is false) deactivates all logical "
13922 "volumes in all volume groups.  If activated, then they are made known to the "
13923 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13924 "those devices disappear."
13925 msgstr ""
13926
13927 # type: textblock
13928 #: ../src/guestfs-actions.pod:5736 ../fish/guestfish-actions.pod:4221
13929 msgid "This command is the same as running C<vgchange -a y|n>"
13930 msgstr ""
13931
13932 # type: =head2
13933 #: ../src/guestfs-actions.pod:5740
13934 msgid "guestfs_vgcreate"
13935 msgstr ""
13936
13937 # type: verbatim
13938 #: ../src/guestfs-actions.pod:5742
13939 #, no-wrap
13940 msgid ""
13941 " int\n"
13942 " guestfs_vgcreate (guestfs_h *g,\n"
13943 "                   const char *volgroup,\n"
13944 "                   char *const *physvols);\n"
13945 "\n"
13946 msgstr ""
13947
13948 # type: textblock
13949 #: ../src/guestfs-actions.pod:5747 ../fish/guestfish-actions.pod:4227
13950 msgid ""
13951 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13952 "of physical volumes C<physvols>."
13953 msgstr ""
13954
13955 # type: =head2
13956 #: ../src/guestfs-actions.pod:5752
13957 msgid "guestfs_vglvuuids"
13958 msgstr ""
13959
13960 # type: verbatim
13961 #: ../src/guestfs-actions.pod:5754
13962 #, no-wrap
13963 msgid ""
13964 " char **\n"
13965 " guestfs_vglvuuids (guestfs_h *g,\n"
13966 "                    const char *vgname);\n"
13967 "\n"
13968 msgstr ""
13969
13970 # type: textblock
13971 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:4234
13972 msgid ""
13973 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13974 "volumes created in this volume group."
13975 msgstr ""
13976
13977 # type: textblock
13978 #: ../src/guestfs-actions.pod:5761
13979 msgid ""
13980 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13981 "associate logical volumes and volume groups."
13982 msgstr ""
13983
13984 # type: textblock
13985 #: ../src/guestfs-actions.pod:5764
13986 msgid "See also C<guestfs_vgpvuuids>."
13987 msgstr ""
13988
13989 # type: =head2
13990 #: ../src/guestfs-actions.pod:5770
13991 msgid "guestfs_vgpvuuids"
13992 msgstr ""
13993
13994 # type: verbatim
13995 #: ../src/guestfs-actions.pod:5772
13996 #, no-wrap
13997 msgid ""
13998 " char **\n"
13999 " guestfs_vgpvuuids (guestfs_h *g,\n"
14000 "                    const char *vgname);\n"
14001 "\n"
14002 msgstr ""
14003
14004 # type: textblock
14005 #: ../src/guestfs-actions.pod:5776 ../fish/guestfish-actions.pod:4246
14006 msgid ""
14007 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14008 "volumes that this volume group resides on."
14009 msgstr ""
14010
14011 # type: textblock
14012 #: ../src/guestfs-actions.pod:5779
14013 msgid ""
14014 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14015 "associate physical volumes and volume groups."
14016 msgstr ""
14017
14018 # type: textblock
14019 #: ../src/guestfs-actions.pod:5782
14020 msgid "See also C<guestfs_vglvuuids>."
14021 msgstr ""
14022
14023 # type: =head2
14024 #: ../src/guestfs-actions.pod:5788
14025 msgid "guestfs_vgremove"
14026 msgstr ""
14027
14028 # type: verbatim
14029 #: ../src/guestfs-actions.pod:5790
14030 #, no-wrap
14031 msgid ""
14032 " int\n"
14033 " guestfs_vgremove (guestfs_h *g,\n"
14034 "                   const char *vgname);\n"
14035 "\n"
14036 msgstr ""
14037
14038 # type: textblock
14039 #: ../src/guestfs-actions.pod:5794 ../fish/guestfish-actions.pod:4258
14040 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14041 msgstr ""
14042
14043 # type: textblock
14044 #: ../src/guestfs-actions.pod:5796 ../fish/guestfish-actions.pod:4260
14045 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14046 msgstr ""
14047
14048 # type: =head2
14049 #: ../src/guestfs-actions.pod:5801
14050 msgid "guestfs_vgrename"
14051 msgstr ""
14052
14053 # type: verbatim
14054 #: ../src/guestfs-actions.pod:5803
14055 #, no-wrap
14056 msgid ""
14057 " int\n"
14058 " guestfs_vgrename (guestfs_h *g,\n"
14059 "                   const char *volgroup,\n"
14060 "                   const char *newvolgroup);\n"
14061 "\n"
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:4267
14066 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14067 msgstr ""
14068
14069 # type: =head2
14070 #: ../src/guestfs-actions.pod:5812
14071 msgid "guestfs_vgs"
14072 msgstr ""
14073
14074 # type: verbatim
14075 #: ../src/guestfs-actions.pod:5814
14076 #, no-wrap
14077 msgid ""
14078 " char **\n"
14079 " guestfs_vgs (guestfs_h *g);\n"
14080 "\n"
14081 msgstr ""
14082
14083 # type: textblock
14084 #: ../src/guestfs-actions.pod:5817 ../fish/guestfish-actions.pod:4273
14085 msgid ""
14086 "List all the volumes groups detected.  This is the equivalent of the "
14087 "L<vgs(8)> command."
14088 msgstr ""
14089
14090 # type: textblock
14091 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:4276
14092 msgid ""
14093 "This returns a list of just the volume group names that were detected "
14094 "(eg. C<VolGroup00>)."
14095 msgstr ""
14096
14097 # type: textblock
14098 #: ../src/guestfs-actions.pod:5823
14099 msgid "See also C<guestfs_vgs_full>."
14100 msgstr ""
14101
14102 # type: =head2
14103 #: ../src/guestfs-actions.pod:5829
14104 msgid "guestfs_vgs_full"
14105 msgstr ""
14106
14107 # type: verbatim
14108 #: ../src/guestfs-actions.pod:5831
14109 #, no-wrap
14110 msgid ""
14111 " struct guestfs_lvm_vg_list *\n"
14112 " guestfs_vgs_full (guestfs_h *g);\n"
14113 "\n"
14114 msgstr ""
14115
14116 # type: textblock
14117 #: ../src/guestfs-actions.pod:5834 ../fish/guestfish-actions.pod:4285
14118 msgid ""
14119 "List all the volumes groups detected.  This is the equivalent of the "
14120 "L<vgs(8)> command.  The \"full\" version includes all fields."
14121 msgstr ""
14122
14123 # type: textblock
14124 #: ../src/guestfs-actions.pod:5837
14125 msgid ""
14126 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
14127 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
14128 "must call C<guestfs_free_lvm_vg_list> after use>."
14129 msgstr ""
14130
14131 # type: =head2
14132 #: ../src/guestfs-actions.pod:5842
14133 msgid "guestfs_vgscan"
14134 msgstr ""
14135
14136 # type: verbatim
14137 #: ../src/guestfs-actions.pod:5844
14138 #, no-wrap
14139 msgid ""
14140 " int\n"
14141 " guestfs_vgscan (guestfs_h *g);\n"
14142 "\n"
14143 msgstr ""
14144
14145 # type: textblock
14146 #: ../src/guestfs-actions.pod:5847 ../fish/guestfish-actions.pod:4292
14147 msgid ""
14148 "This rescans all block devices and rebuilds the list of LVM physical "
14149 "volumes, volume groups and logical volumes."
14150 msgstr ""
14151
14152 # type: =head2
14153 #: ../src/guestfs-actions.pod:5852
14154 msgid "guestfs_vguuid"
14155 msgstr ""
14156
14157 # type: verbatim
14158 #: ../src/guestfs-actions.pod:5854
14159 #, no-wrap
14160 msgid ""
14161 " char *\n"
14162 " guestfs_vguuid (guestfs_h *g,\n"
14163 "                 const char *vgname);\n"
14164 "\n"
14165 msgstr ""
14166
14167 # type: textblock
14168 #: ../src/guestfs-actions.pod:5858 ../fish/guestfish-actions.pod:4299
14169 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14170 msgstr ""
14171
14172 # type: =head2
14173 #: ../src/guestfs-actions.pod:5863
14174 msgid "guestfs_wait_ready"
14175 msgstr ""
14176
14177 # type: verbatim
14178 #: ../src/guestfs-actions.pod:5865
14179 #, no-wrap
14180 msgid ""
14181 " int\n"
14182 " guestfs_wait_ready (guestfs_h *g);\n"
14183 "\n"
14184 msgstr ""
14185
14186 # type: textblock
14187 #: ../src/guestfs-actions.pod:5868
14188 msgid "This function is a no op."
14189 msgstr ""
14190
14191 # type: textblock
14192 #: ../src/guestfs-actions.pod:5870
14193 msgid ""
14194 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14195 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14196 "is no longer necessary because C<guestfs_launch> now does the waiting."
14197 msgstr ""
14198
14199 # type: textblock
14200 #: ../src/guestfs-actions.pod:5875
14201 msgid ""
14202 "If you see any calls to this function in code then you can just remove them, "
14203 "unless you want to retain compatibility with older versions of the API."
14204 msgstr ""
14205
14206 # type: =head2
14207 #: ../src/guestfs-actions.pod:5881
14208 msgid "guestfs_wc_c"
14209 msgstr ""
14210
14211 # type: verbatim
14212 #: ../src/guestfs-actions.pod:5883
14213 #, no-wrap
14214 msgid ""
14215 " int\n"
14216 " guestfs_wc_c (guestfs_h *g,\n"
14217 "               const char *path);\n"
14218 "\n"
14219 msgstr ""
14220
14221 # type: textblock
14222 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:4305
14223 msgid ""
14224 "This command counts the characters in a file, using the C<wc -c> external "
14225 "command."
14226 msgstr ""
14227
14228 # type: =head2
14229 #: ../src/guestfs-actions.pod:5892
14230 msgid "guestfs_wc_l"
14231 msgstr ""
14232
14233 # type: verbatim
14234 #: ../src/guestfs-actions.pod:5894
14235 #, no-wrap
14236 msgid ""
14237 " int\n"
14238 " guestfs_wc_l (guestfs_h *g,\n"
14239 "               const char *path);\n"
14240 "\n"
14241 msgstr ""
14242
14243 # type: textblock
14244 #: ../src/guestfs-actions.pod:5898 ../fish/guestfish-actions.pod:4312
14245 msgid ""
14246 "This command counts the lines in a file, using the C<wc -l> external "
14247 "command."
14248 msgstr ""
14249
14250 # type: =head2
14251 #: ../src/guestfs-actions.pod:5903
14252 msgid "guestfs_wc_w"
14253 msgstr ""
14254
14255 # type: verbatim
14256 #: ../src/guestfs-actions.pod:5905
14257 #, no-wrap
14258 msgid ""
14259 " int\n"
14260 " guestfs_wc_w (guestfs_h *g,\n"
14261 "               const char *path);\n"
14262 "\n"
14263 msgstr ""
14264
14265 # type: textblock
14266 #: ../src/guestfs-actions.pod:5909 ../fish/guestfish-actions.pod:4319
14267 msgid ""
14268 "This command counts the words in a file, using the C<wc -w> external "
14269 "command."
14270 msgstr ""
14271
14272 # type: =head2
14273 #: ../src/guestfs-actions.pod:5914
14274 msgid "guestfs_write"
14275 msgstr ""
14276
14277 # type: verbatim
14278 #: ../src/guestfs-actions.pod:5916
14279 #, no-wrap
14280 msgid ""
14281 " int\n"
14282 " guestfs_write (guestfs_h *g,\n"
14283 "                const char *path,\n"
14284 "                const char *content,\n"
14285 "                size_t content_size);\n"
14286 "\n"
14287 msgstr ""
14288
14289 # type: textblock
14290 #: ../src/guestfs-actions.pod:5922 ../fish/guestfish-actions.pod:4326
14291 msgid ""
14292 "This call creates a file called C<path>.  The content of the file is the "
14293 "string C<content> (which can contain any 8 bit data)."
14294 msgstr ""
14295
14296 # type: =head2
14297 #: ../src/guestfs-actions.pod:5930
14298 msgid "guestfs_write_file"
14299 msgstr ""
14300
14301 # type: verbatim
14302 #: ../src/guestfs-actions.pod:5932
14303 #, no-wrap
14304 msgid ""
14305 " int\n"
14306 " guestfs_write_file (guestfs_h *g,\n"
14307 "                     const char *path,\n"
14308 "                     const char *content,\n"
14309 "                     int size);\n"
14310 "\n"
14311 msgstr ""
14312
14313 # type: textblock
14314 #: ../src/guestfs-actions.pod:5938 ../fish/guestfish-actions.pod:4336
14315 msgid ""
14316 "This call creates a file called C<path>.  The contents of the file is the "
14317 "string C<content> (which can contain any 8 bit data), with length C<size>."
14318 msgstr ""
14319
14320 # type: textblock
14321 #: ../src/guestfs-actions.pod:5942 ../fish/guestfish-actions.pod:4340
14322 msgid ""
14323 "As a special case, if C<size> is C<0> then the length is calculated using "
14324 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14325 msgstr ""
14326
14327 # type: textblock
14328 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:4344
14329 msgid ""
14330 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14331 "I<not> work, even if the length is specified."
14332 msgstr ""
14333
14334 # type: textblock
14335 #: ../src/guestfs-actions.pod:5954 ../fish/guestfish-actions.pod:4350
14336 msgid "This function is deprecated.  In new code, use the C<write> call instead."
14337 msgstr ""
14338
14339 # type: =head2
14340 #: ../src/guestfs-actions.pod:5961
14341 msgid "guestfs_zegrep"
14342 msgstr ""
14343
14344 # type: verbatim
14345 #: ../src/guestfs-actions.pod:5963
14346 #, no-wrap
14347 msgid ""
14348 " char **\n"
14349 " guestfs_zegrep (guestfs_h *g,\n"
14350 "                 const char *regex,\n"
14351 "                 const char *path);\n"
14352 "\n"
14353 msgstr ""
14354
14355 # type: textblock
14356 #: ../src/guestfs-actions.pod:5968 ../fish/guestfish-actions.pod:4361
14357 msgid "This calls the external C<zegrep> program and returns the matching lines."
14358 msgstr ""
14359
14360 # type: =head2
14361 #: ../src/guestfs-actions.pod:5978
14362 msgid "guestfs_zegrepi"
14363 msgstr ""
14364
14365 # type: verbatim
14366 #: ../src/guestfs-actions.pod:5980
14367 #, no-wrap
14368 msgid ""
14369 " char **\n"
14370 " guestfs_zegrepi (guestfs_h *g,\n"
14371 "                  const char *regex,\n"
14372 "                  const char *path);\n"
14373 "\n"
14374 msgstr ""
14375
14376 # type: textblock
14377 #: ../src/guestfs-actions.pod:5985 ../fish/guestfish-actions.pod:4371
14378 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14379 msgstr ""
14380
14381 # type: =head2
14382 #: ../src/guestfs-actions.pod:5995
14383 msgid "guestfs_zero"
14384 msgstr ""
14385
14386 # type: verbatim
14387 #: ../src/guestfs-actions.pod:5997
14388 #, no-wrap
14389 msgid ""
14390 " int\n"
14391 " guestfs_zero (guestfs_h *g,\n"
14392 "               const char *device);\n"
14393 "\n"
14394 msgstr ""
14395
14396 # type: textblock
14397 #: ../src/guestfs-actions.pod:6001 ../fish/guestfish-actions.pod:4381
14398 msgid "This command writes zeroes over the first few blocks of C<device>."
14399 msgstr ""
14400
14401 # type: textblock
14402 #: ../src/guestfs-actions.pod:6003 ../fish/guestfish-actions.pod:4383
14403 msgid ""
14404 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14405 "securely wipe the device).  It should be sufficient to remove any partition "
14406 "tables, filesystem superblocks and so on."
14407 msgstr ""
14408
14409 # type: textblock
14410 #: ../src/guestfs-actions.pod:6007
14411 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14412 msgstr ""
14413
14414 # type: =head2
14415 #: ../src/guestfs-actions.pod:6016
14416 msgid "guestfs_zero_device"
14417 msgstr ""
14418
14419 # type: verbatim
14420 #: ../src/guestfs-actions.pod:6018
14421 #, no-wrap
14422 msgid ""
14423 " int\n"
14424 " guestfs_zero_device (guestfs_h *g,\n"
14425 "                      const char *device);\n"
14426 "\n"
14427 msgstr ""
14428
14429 # type: textblock
14430 #: ../src/guestfs-actions.pod:6022
14431 msgid ""
14432 "This command writes zeroes over the entire C<device>.  Compare with "
14433 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14434 msgstr ""
14435
14436 # type: =head2
14437 #: ../src/guestfs-actions.pod:6036
14438 msgid "guestfs_zerofree"
14439 msgstr ""
14440
14441 # type: verbatim
14442 #: ../src/guestfs-actions.pod:6038
14443 #, no-wrap
14444 msgid ""
14445 " int\n"
14446 " guestfs_zerofree (guestfs_h *g,\n"
14447 "                   const char *device);\n"
14448 "\n"
14449 msgstr ""
14450
14451 # type: textblock
14452 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:4404
14453 msgid ""
14454 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14455 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14456 "possible to compress the filesystem more effectively."
14457 msgstr ""
14458
14459 # type: textblock
14460 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4409
14461 msgid "You should B<not> run this program if the filesystem is mounted."
14462 msgstr ""
14463
14464 # type: textblock
14465 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4412
14466 msgid ""
14467 "It is possible that using this program can damage the filesystem or data on "
14468 "the filesystem."
14469 msgstr ""
14470
14471 # type: =head2
14472 #: ../src/guestfs-actions.pod:6055
14473 msgid "guestfs_zfgrep"
14474 msgstr ""
14475
14476 # type: verbatim
14477 #: ../src/guestfs-actions.pod:6057
14478 #, no-wrap
14479 msgid ""
14480 " char **\n"
14481 " guestfs_zfgrep (guestfs_h *g,\n"
14482 "                 const char *pattern,\n"
14483 "                 const char *path);\n"
14484 "\n"
14485 msgstr ""
14486
14487 # type: textblock
14488 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4419
14489 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14490 msgstr ""
14491
14492 # type: =head2
14493 #: ../src/guestfs-actions.pod:6072
14494 msgid "guestfs_zfgrepi"
14495 msgstr ""
14496
14497 # type: verbatim
14498 #: ../src/guestfs-actions.pod:6074
14499 #, no-wrap
14500 msgid ""
14501 " char **\n"
14502 " guestfs_zfgrepi (guestfs_h *g,\n"
14503 "                  const char *pattern,\n"
14504 "                  const char *path);\n"
14505 "\n"
14506 msgstr ""
14507
14508 # type: textblock
14509 #: ../src/guestfs-actions.pod:6079 ../fish/guestfish-actions.pod:4429
14510 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14511 msgstr ""
14512
14513 # type: =head2
14514 #: ../src/guestfs-actions.pod:6089
14515 msgid "guestfs_zfile"
14516 msgstr ""
14517
14518 # type: verbatim
14519 #: ../src/guestfs-actions.pod:6091
14520 #, no-wrap
14521 msgid ""
14522 " char *\n"
14523 " guestfs_zfile (guestfs_h *g,\n"
14524 "                const char *meth,\n"
14525 "                const char *path);\n"
14526 "\n"
14527 msgstr ""
14528
14529 # type: textblock
14530 #: ../src/guestfs-actions.pod:6096 ../fish/guestfish-actions.pod:4439
14531 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14532 msgstr ""
14533
14534 # type: textblock
14535 #: ../src/guestfs-actions.pod:6099 ../fish/guestfish-actions.pod:4442
14536 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14537 msgstr ""
14538
14539 # type: textblock
14540 #: ../src/guestfs-actions.pod:6101
14541 msgid ""
14542 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14543 "files."
14544 msgstr ""
14545
14546 # type: textblock
14547 #: ../src/guestfs-actions.pod:6107 ../fish/guestfish-actions.pod:4447
14548 msgid "This function is deprecated.  In new code, use the C<file> call instead."
14549 msgstr ""
14550
14551 # type: =head2
14552 #: ../src/guestfs-actions.pod:6114
14553 msgid "guestfs_zgrep"
14554 msgstr ""
14555
14556 # type: verbatim
14557 #: ../src/guestfs-actions.pod:6116
14558 #, no-wrap
14559 msgid ""
14560 " char **\n"
14561 " guestfs_zgrep (guestfs_h *g,\n"
14562 "                const char *regex,\n"
14563 "                const char *path);\n"
14564 "\n"
14565 msgstr ""
14566
14567 # type: textblock
14568 #: ../src/guestfs-actions.pod:6121 ../fish/guestfish-actions.pod:4458
14569 msgid "This calls the external C<zgrep> program and returns the matching lines."
14570 msgstr ""
14571
14572 # type: =head2
14573 #: ../src/guestfs-actions.pod:6131
14574 msgid "guestfs_zgrepi"
14575 msgstr ""
14576
14577 # type: verbatim
14578 #: ../src/guestfs-actions.pod:6133
14579 #, no-wrap
14580 msgid ""
14581 " char **\n"
14582 " guestfs_zgrepi (guestfs_h *g,\n"
14583 "                 const char *regex,\n"
14584 "                 const char *path);\n"
14585 "\n"
14586 msgstr ""
14587
14588 # type: textblock
14589 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4468
14590 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14591 msgstr ""
14592
14593 # type: =item
14594 #: ../src/guestfs-availability.pod:3
14595 msgid "B<augeas>"
14596 msgstr ""
14597
14598 # type: textblock
14599 #: ../src/guestfs-availability.pod:5
14600 msgid ""
14601 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
14602 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
14603 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
14604 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
14605 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
14606 msgstr ""
14607
14608 # type: =item
14609 #: ../src/guestfs-availability.pod:21
14610 msgid "B<inotify>"
14611 msgstr ""
14612
14613 # type: textblock
14614 #: ../src/guestfs-availability.pod:23
14615 msgid ""
14616 "The following functions: L</guestfs_inotify_add_watch> "
14617 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
14618 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14619 msgstr ""
14620
14621 # type: =item
14622 #: ../src/guestfs-availability.pod:31
14623 msgid "B<linuxfsuuid>"
14624 msgstr ""
14625
14626 # type: textblock
14627 #: ../src/guestfs-availability.pod:33
14628 msgid ""
14629 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
14630 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14631 msgstr ""
14632
14633 # type: =item
14634 #: ../src/guestfs-availability.pod:40
14635 msgid "B<linuxmodules>"
14636 msgstr ""
14637
14638 # type: textblock
14639 #: ../src/guestfs-availability.pod:42
14640 msgid "The following functions: L</guestfs_modprobe>"
14641 msgstr ""
14642
14643 # type: =item
14644 #: ../src/guestfs-availability.pod:45
14645 msgid "B<linuxxattrs>"
14646 msgstr ""
14647
14648 # type: textblock
14649 #: ../src/guestfs-availability.pod:47
14650 msgid ""
14651 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
14652 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
14653 "L</guestfs_removexattr> L</guestfs_setxattr>"
14654 msgstr ""
14655
14656 # type: =item
14657 #: ../src/guestfs-availability.pod:56
14658 msgid "B<luks>"
14659 msgstr ""
14660
14661 # type: textblock
14662 #: ../src/guestfs-availability.pod:58
14663 msgid ""
14664 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
14665 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
14666 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14667 msgstr ""
14668
14669 # type: =item
14670 #: ../src/guestfs-availability.pod:67
14671 msgid "B<lvm2>"
14672 msgstr ""
14673
14674 # type: textblock
14675 #: ../src/guestfs-availability.pod:69
14676 msgid ""
14677 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
14678 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
14679 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
14680 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
14681 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
14682 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
14683 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
14684 "L</guestfs_vgs_full>"
14685 msgstr ""
14686
14687 # type: =item
14688 #: ../src/guestfs-availability.pod:92
14689 msgid "B<mknod>"
14690 msgstr ""
14691
14692 # type: textblock
14693 #: ../src/guestfs-availability.pod:94
14694 msgid ""
14695 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
14696 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
14697 msgstr ""
14698
14699 # type: =item
14700 #: ../src/guestfs-availability.pod:100
14701 msgid "B<ntfs3g>"
14702 msgstr ""
14703
14704 # type: textblock
14705 #: ../src/guestfs-availability.pod:102
14706 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14707 msgstr ""
14708
14709 # type: =item
14710 #: ../src/guestfs-availability.pod:105
14711 msgid "B<ntfsprogs>"
14712 msgstr ""
14713
14714 # type: textblock
14715 #: ../src/guestfs-availability.pod:107
14716 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14717 msgstr ""
14718
14719 # type: =item
14720 #: ../src/guestfs-availability.pod:111
14721 msgid "B<realpath>"
14722 msgstr ""
14723
14724 # type: textblock
14725 #: ../src/guestfs-availability.pod:113
14726 msgid "The following functions: L</guestfs_realpath>"
14727 msgstr ""
14728
14729 # type: =item
14730 #: ../src/guestfs-availability.pod:116
14731 msgid "B<scrub>"
14732 msgstr ""
14733
14734 # type: textblock
14735 #: ../src/guestfs-availability.pod:118
14736 msgid ""
14737 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
14738 "L</guestfs_scrub_freespace>"
14739 msgstr ""
14740
14741 # type: =item
14742 #: ../src/guestfs-availability.pod:123
14743 msgid "B<selinux>"
14744 msgstr ""
14745
14746 # type: textblock
14747 #: ../src/guestfs-availability.pod:125
14748 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14749 msgstr ""
14750
14751 # type: =item
14752 #: ../src/guestfs-availability.pod:129
14753 msgid "B<xz>"
14754 msgstr ""
14755
14756 # type: textblock
14757 #: ../src/guestfs-availability.pod:131
14758 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14759 msgstr ""
14760
14761 # type: =item
14762 #: ../src/guestfs-availability.pod:135
14763 msgid "B<zerofree>"
14764 msgstr ""
14765
14766 # type: textblock
14767 #: ../src/guestfs-availability.pod:137
14768 msgid "The following functions: L</guestfs_zerofree>"
14769 msgstr ""
14770
14771 # type: =head2
14772 #: ../src/guestfs-structs.pod:1
14773 msgid "guestfs_int_bool"
14774 msgstr ""
14775
14776 # type: verbatim
14777 #: ../src/guestfs-structs.pod:3
14778 #, no-wrap
14779 msgid ""
14780 " struct guestfs_int_bool {\n"
14781 "   int32_t i;\n"
14782 "   int32_t b;\n"
14783 " };\n"
14784 " \n"
14785 msgstr ""
14786
14787 # type: verbatim
14788 #: ../src/guestfs-structs.pod:8
14789 #, no-wrap
14790 msgid ""
14791 " struct guestfs_int_bool_list {\n"
14792 "   uint32_t len; /* Number of elements in list. */\n"
14793 "   struct guestfs_int_bool *val; /* Elements. */\n"
14794 " };\n"
14795 " \n"
14796 msgstr ""
14797
14798 # type: verbatim
14799 #: ../src/guestfs-structs.pod:13
14800 #, no-wrap
14801 msgid ""
14802 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14803 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14804 "\n"
14805 msgstr ""
14806
14807 # type: =head2
14808 #: ../src/guestfs-structs.pod:16
14809 msgid "guestfs_lvm_pv"
14810 msgstr ""
14811
14812 # type: verbatim
14813 #: ../src/guestfs-structs.pod:18
14814 #, no-wrap
14815 msgid ""
14816 " struct guestfs_lvm_pv {\n"
14817 "   char *pv_name;\n"
14818 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14819 "*/\n"
14820 "   char pv_uuid[32];\n"
14821 "   char *pv_fmt;\n"
14822 "   uint64_t pv_size;\n"
14823 "   uint64_t dev_size;\n"
14824 "   uint64_t pv_free;\n"
14825 "   uint64_t pv_used;\n"
14826 "   char *pv_attr;\n"
14827 "   int64_t pv_pe_count;\n"
14828 "   int64_t pv_pe_alloc_count;\n"
14829 "   char *pv_tags;\n"
14830 "   uint64_t pe_start;\n"
14831 "   int64_t pv_mda_count;\n"
14832 "   uint64_t pv_mda_free;\n"
14833 " };\n"
14834 " \n"
14835 msgstr ""
14836
14837 # type: verbatim
14838 #: ../src/guestfs-structs.pod:36
14839 #, no-wrap
14840 msgid ""
14841 " struct guestfs_lvm_pv_list {\n"
14842 "   uint32_t len; /* Number of elements in list. */\n"
14843 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14844 " };\n"
14845 " \n"
14846 msgstr ""
14847
14848 # type: verbatim
14849 #: ../src/guestfs-structs.pod:41
14850 #, no-wrap
14851 msgid ""
14852 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14853 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14854 "\n"
14855 msgstr ""
14856
14857 # type: =head2
14858 #: ../src/guestfs-structs.pod:44
14859 msgid "guestfs_lvm_vg"
14860 msgstr ""
14861
14862 # type: verbatim
14863 #: ../src/guestfs-structs.pod:46
14864 #, no-wrap
14865 msgid ""
14866 " struct guestfs_lvm_vg {\n"
14867 "   char *vg_name;\n"
14868 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14869 "*/\n"
14870 "   char vg_uuid[32];\n"
14871 "   char *vg_fmt;\n"
14872 "   char *vg_attr;\n"
14873 "   uint64_t vg_size;\n"
14874 "   uint64_t vg_free;\n"
14875 "   char *vg_sysid;\n"
14876 "   uint64_t vg_extent_size;\n"
14877 "   int64_t vg_extent_count;\n"
14878 "   int64_t vg_free_count;\n"
14879 "   int64_t max_lv;\n"
14880 "   int64_t max_pv;\n"
14881 "   int64_t pv_count;\n"
14882 "   int64_t lv_count;\n"
14883 "   int64_t snap_count;\n"
14884 "   int64_t vg_seqno;\n"
14885 "   char *vg_tags;\n"
14886 "   int64_t vg_mda_count;\n"
14887 "   uint64_t vg_mda_free;\n"
14888 " };\n"
14889 " \n"
14890 msgstr ""
14891
14892 # type: verbatim
14893 #: ../src/guestfs-structs.pod:69
14894 #, no-wrap
14895 msgid ""
14896 " struct guestfs_lvm_vg_list {\n"
14897 "   uint32_t len; /* Number of elements in list. */\n"
14898 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14899 " };\n"
14900 " \n"
14901 msgstr ""
14902
14903 # type: verbatim
14904 #: ../src/guestfs-structs.pod:74
14905 #, no-wrap
14906 msgid ""
14907 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14908 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14909 "\n"
14910 msgstr ""
14911
14912 # type: =head2
14913 #: ../src/guestfs-structs.pod:77
14914 msgid "guestfs_lvm_lv"
14915 msgstr ""
14916
14917 # type: verbatim
14918 #: ../src/guestfs-structs.pod:79
14919 #, no-wrap
14920 msgid ""
14921 " struct guestfs_lvm_lv {\n"
14922 "   char *lv_name;\n"
14923 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14924 "*/\n"
14925 "   char lv_uuid[32];\n"
14926 "   char *lv_attr;\n"
14927 "   int64_t lv_major;\n"
14928 "   int64_t lv_minor;\n"
14929 "   int64_t lv_kernel_major;\n"
14930 "   int64_t lv_kernel_minor;\n"
14931 "   uint64_t lv_size;\n"
14932 "   int64_t seg_count;\n"
14933 "   char *origin;\n"
14934 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14935 "   float snap_percent;\n"
14936 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14937 "   float copy_percent;\n"
14938 "   char *move_pv;\n"
14939 "   char *lv_tags;\n"
14940 "   char *mirror_log;\n"
14941 "   char *modules;\n"
14942 " };\n"
14943 " \n"
14944 msgstr ""
14945
14946 # type: verbatim
14947 #: ../src/guestfs-structs.pod:101
14948 #, no-wrap
14949 msgid ""
14950 " struct guestfs_lvm_lv_list {\n"
14951 "   uint32_t len; /* Number of elements in list. */\n"
14952 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14953 " };\n"
14954 " \n"
14955 msgstr ""
14956
14957 # type: verbatim
14958 #: ../src/guestfs-structs.pod:106
14959 #, no-wrap
14960 msgid ""
14961 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14962 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14963 "\n"
14964 msgstr ""
14965
14966 # type: verbatim
14967 #: ../src/guestfs-structs.pod:111
14968 #, no-wrap
14969 msgid ""
14970 " struct guestfs_stat {\n"
14971 "   int64_t dev;\n"
14972 "   int64_t ino;\n"
14973 "   int64_t mode;\n"
14974 "   int64_t nlink;\n"
14975 "   int64_t uid;\n"
14976 "   int64_t gid;\n"
14977 "   int64_t rdev;\n"
14978 "   int64_t size;\n"
14979 "   int64_t blksize;\n"
14980 "   int64_t blocks;\n"
14981 "   int64_t atime;\n"
14982 "   int64_t mtime;\n"
14983 "   int64_t ctime;\n"
14984 " };\n"
14985 " \n"
14986 msgstr ""
14987
14988 # type: verbatim
14989 #: ../src/guestfs-structs.pod:127
14990 #, no-wrap
14991 msgid ""
14992 " struct guestfs_stat_list {\n"
14993 "   uint32_t len; /* Number of elements in list. */\n"
14994 "   struct guestfs_stat *val; /* Elements. */\n"
14995 " };\n"
14996 " \n"
14997 msgstr ""
14998
14999 # type: verbatim
15000 #: ../src/guestfs-structs.pod:132
15001 #, no-wrap
15002 msgid ""
15003 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15004 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15005 "\n"
15006 msgstr ""
15007
15008 # type: verbatim
15009 #: ../src/guestfs-structs.pod:137
15010 #, no-wrap
15011 msgid ""
15012 " struct guestfs_statvfs {\n"
15013 "   int64_t bsize;\n"
15014 "   int64_t frsize;\n"
15015 "   int64_t blocks;\n"
15016 "   int64_t bfree;\n"
15017 "   int64_t bavail;\n"
15018 "   int64_t files;\n"
15019 "   int64_t ffree;\n"
15020 "   int64_t favail;\n"
15021 "   int64_t fsid;\n"
15022 "   int64_t flag;\n"
15023 "   int64_t namemax;\n"
15024 " };\n"
15025 " \n"
15026 msgstr ""
15027
15028 # type: verbatim
15029 #: ../src/guestfs-structs.pod:151
15030 #, no-wrap
15031 msgid ""
15032 " struct guestfs_statvfs_list {\n"
15033 "   uint32_t len; /* Number of elements in list. */\n"
15034 "   struct guestfs_statvfs *val; /* Elements. */\n"
15035 " };\n"
15036 " \n"
15037 msgstr ""
15038
15039 # type: verbatim
15040 #: ../src/guestfs-structs.pod:156
15041 #, no-wrap
15042 msgid ""
15043 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15044 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15045 "\n"
15046 msgstr ""
15047
15048 # type: =head2
15049 #: ../src/guestfs-structs.pod:159
15050 msgid "guestfs_dirent"
15051 msgstr ""
15052
15053 # type: verbatim
15054 #: ../src/guestfs-structs.pod:161
15055 #, no-wrap
15056 msgid ""
15057 " struct guestfs_dirent {\n"
15058 "   int64_t ino;\n"
15059 "   char ftyp;\n"
15060 "   char *name;\n"
15061 " };\n"
15062 " \n"
15063 msgstr ""
15064
15065 # type: verbatim
15066 #: ../src/guestfs-structs.pod:167
15067 #, no-wrap
15068 msgid ""
15069 " struct guestfs_dirent_list {\n"
15070 "   uint32_t len; /* Number of elements in list. */\n"
15071 "   struct guestfs_dirent *val; /* Elements. */\n"
15072 " };\n"
15073 " \n"
15074 msgstr ""
15075
15076 # type: verbatim
15077 #: ../src/guestfs-structs.pod:172
15078 #, no-wrap
15079 msgid ""
15080 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15081 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15082 "\n"
15083 msgstr ""
15084
15085 # type: verbatim
15086 #: ../src/guestfs-structs.pod:177
15087 #, no-wrap
15088 msgid ""
15089 " struct guestfs_version {\n"
15090 "   int64_t major;\n"
15091 "   int64_t minor;\n"
15092 "   int64_t release;\n"
15093 "   char *extra;\n"
15094 " };\n"
15095 " \n"
15096 msgstr ""
15097
15098 # type: verbatim
15099 #: ../src/guestfs-structs.pod:184
15100 #, no-wrap
15101 msgid ""
15102 " struct guestfs_version_list {\n"
15103 "   uint32_t len; /* Number of elements in list. */\n"
15104 "   struct guestfs_version *val; /* Elements. */\n"
15105 " };\n"
15106 " \n"
15107 msgstr ""
15108
15109 # type: verbatim
15110 #: ../src/guestfs-structs.pod:189
15111 #, no-wrap
15112 msgid ""
15113 " void guestfs_free_version (struct guestfs_free_version *);\n"
15114 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15115 "\n"
15116 msgstr ""
15117
15118 # type: =head2
15119 #: ../src/guestfs-structs.pod:192
15120 msgid "guestfs_xattr"
15121 msgstr ""
15122
15123 # type: verbatim
15124 #: ../src/guestfs-structs.pod:194
15125 #, no-wrap
15126 msgid ""
15127 " struct guestfs_xattr {\n"
15128 "   char *attrname;\n"
15129 "   /* The next two fields describe a byte array. */\n"
15130 "   uint32_t attrval_len;\n"
15131 "   char *attrval;\n"
15132 " };\n"
15133 " \n"
15134 msgstr ""
15135
15136 # type: verbatim
15137 #: ../src/guestfs-structs.pod:201
15138 #, no-wrap
15139 msgid ""
15140 " struct guestfs_xattr_list {\n"
15141 "   uint32_t len; /* Number of elements in list. */\n"
15142 "   struct guestfs_xattr *val; /* Elements. */\n"
15143 " };\n"
15144 " \n"
15145 msgstr ""
15146
15147 # type: verbatim
15148 #: ../src/guestfs-structs.pod:206
15149 #, no-wrap
15150 msgid ""
15151 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15152 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15153 "\n"
15154 msgstr ""
15155
15156 # type: =head2
15157 #: ../src/guestfs-structs.pod:209
15158 msgid "guestfs_inotify_event"
15159 msgstr ""
15160
15161 # type: verbatim
15162 #: ../src/guestfs-structs.pod:211
15163 #, no-wrap
15164 msgid ""
15165 " struct guestfs_inotify_event {\n"
15166 "   int64_t in_wd;\n"
15167 "   uint32_t in_mask;\n"
15168 "   uint32_t in_cookie;\n"
15169 "   char *in_name;\n"
15170 " };\n"
15171 " \n"
15172 msgstr ""
15173
15174 # type: verbatim
15175 #: ../src/guestfs-structs.pod:218
15176 #, no-wrap
15177 msgid ""
15178 " struct guestfs_inotify_event_list {\n"
15179 "   uint32_t len; /* Number of elements in list. */\n"
15180 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15181 " };\n"
15182 " \n"
15183 msgstr ""
15184
15185 # type: verbatim
15186 #: ../src/guestfs-structs.pod:223
15187 #, no-wrap
15188 msgid ""
15189 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15190 " void guestfs_free_inotify_event_list (struct "
15191 "guestfs_free_inotify_event_list *);\n"
15192 "\n"
15193 msgstr ""
15194
15195 # type: =head2
15196 #: ../src/guestfs-structs.pod:226
15197 msgid "guestfs_partition"
15198 msgstr ""
15199
15200 # type: verbatim
15201 #: ../src/guestfs-structs.pod:228
15202 #, no-wrap
15203 msgid ""
15204 " struct guestfs_partition {\n"
15205 "   int32_t part_num;\n"
15206 "   uint64_t part_start;\n"
15207 "   uint64_t part_end;\n"
15208 "   uint64_t part_size;\n"
15209 " };\n"
15210 " \n"
15211 msgstr ""
15212
15213 # type: verbatim
15214 #: ../src/guestfs-structs.pod:235
15215 #, no-wrap
15216 msgid ""
15217 " struct guestfs_partition_list {\n"
15218 "   uint32_t len; /* Number of elements in list. */\n"
15219 "   struct guestfs_partition *val; /* Elements. */\n"
15220 " };\n"
15221 " \n"
15222 msgstr ""
15223
15224 # type: verbatim
15225 #: ../src/guestfs-structs.pod:240
15226 #, no-wrap
15227 msgid ""
15228 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15229 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15230 "\n"
15231 msgstr ""
15232
15233 # type: textblock
15234 #: ../fish/guestfish.pod:5
15235 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15236 msgstr ""
15237
15238 # type: verbatim
15239 #: ../fish/guestfish.pod:9
15240 #, no-wrap
15241 msgid ""
15242 " guestfish [--options] [commands]\n"
15243 "\n"
15244 msgstr ""
15245
15246 # type: verbatim
15247 #: ../fish/guestfish.pod:11
15248 #, no-wrap
15249 msgid ""
15250 " guestfish\n"
15251 "\n"
15252 msgstr ""
15253
15254 # type: verbatim
15255 #: ../fish/guestfish.pod:13
15256 #, no-wrap
15257 msgid ""
15258 " guestfish -a disk.img\n"
15259 "\n"
15260 msgstr ""
15261
15262 # type: verbatim
15263 #: ../fish/guestfish.pod:15
15264 #, no-wrap
15265 msgid ""
15266 " guestfish -a disk.img -m dev[:mountpoint]\n"
15267 "\n"
15268 msgstr ""
15269
15270 # type: verbatim
15271 #: ../fish/guestfish.pod:17
15272 #, no-wrap
15273 msgid ""
15274 " guestfish -d libvirt-domain\n"
15275 "\n"
15276 msgstr ""
15277
15278 # type: verbatim
15279 #: ../fish/guestfish.pod:19
15280 #, no-wrap
15281 msgid ""
15282 " guestfish -a disk.img -i\n"
15283 "\n"
15284 msgstr ""
15285
15286 # type: verbatim
15287 #: ../fish/guestfish.pod:21
15288 #, no-wrap
15289 msgid ""
15290 " guestfish -d libvirt-domain -i\n"
15291 "\n"
15292 msgstr ""
15293
15294 # type: =head1
15295 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59 ../tools/virt-rescue.pl:41
15296 msgid "WARNING"
15297 msgstr ""
15298
15299 # type: textblock
15300 #: ../fish/guestfish.pod:25
15301 msgid ""
15302 "Using guestfish in read/write mode on live virtual machines can be "
15303 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15304 "option to use guestfish safely if the disk image or virtual machine might be "
15305 "live."
15306 msgstr ""
15307
15308 # type: textblock
15309 #: ../fish/guestfish.pod:32
15310 msgid ""
15311 "Guestfish is a shell and command-line tool for examining and modifying "
15312 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15313 "functionality of the guestfs API, see L<guestfs(3)>."
15314 msgstr ""
15315
15316 # type: textblock
15317 #: ../fish/guestfish.pod:36
15318 msgid ""
15319 "Guestfish gives you structured access to the libguestfs API, from shell "
15320 "scripts or the command line or interactively.  If you want to rescue a "
15321 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15322 "command."
15323 msgstr ""
15324
15325 # type: =head1
15326 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
15327 msgid "EXAMPLES"
15328 msgstr ""
15329
15330 # type: =head2
15331 #: ../fish/guestfish.pod:43
15332 msgid "As an interactive shell"
15333 msgstr ""
15334
15335 # type: verbatim
15336 #: ../fish/guestfish.pod:45
15337 #, no-wrap
15338 msgid ""
15339 " $ guestfish\n"
15340 " \n"
15341 msgstr ""
15342
15343 # type: verbatim
15344 #: ../fish/guestfish.pod:47
15345 #, no-wrap
15346 msgid ""
15347 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15348 " editing virtual machine filesystems.\n"
15349 " \n"
15350 msgstr ""
15351
15352 # type: verbatim
15353 #: ../fish/guestfish.pod:50
15354 #, no-wrap
15355 msgid ""
15356 " Type: 'help' for a list of commands\n"
15357 "       'man' to read the manual\n"
15358 "       'quit' to quit the shell\n"
15359 " \n"
15360 msgstr ""
15361
15362 # type: verbatim
15363 #: ../fish/guestfish.pod:54
15364 #, no-wrap
15365 msgid ""
15366 " ><fs> add-ro disk.img\n"
15367 " ><fs> run\n"
15368 " ><fs> list-filesystems\n"
15369 " /dev/sda1: ext4\n"
15370 " /dev/vg_guest/lv_root: ext4\n"
15371 " /dev/vg_guest/lv_swap: swap\n"
15372 " ><fs> mount /dev/vg_guest/lv_root /\n"
15373 " ><fs> cat /etc/fstab\n"
15374 " # /etc/fstab\n"
15375 " # Created by anaconda\n"
15376 " [...]\n"
15377 " ><fs> exit\n"
15378 "\n"
15379 msgstr ""
15380
15381 # type: =head2
15382 #: ../fish/guestfish.pod:67
15383 msgid "From shell scripts"
15384 msgstr ""
15385
15386 # type: textblock
15387 #: ../fish/guestfish.pod:69
15388 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15389 msgstr ""
15390
15391 # type: verbatim
15392 #: ../fish/guestfish.pod:71
15393 #, no-wrap
15394 msgid ""
15395 " guestfish <<_EOF_\n"
15396 " add disk.img\n"
15397 " run\n"
15398 " mount /dev/vg_guest/lv_root /\n"
15399 " write /etc/motd \"Welcome, new users\"\n"
15400 " _EOF_\n"
15401 "\n"
15402 msgstr ""
15403
15404 # type: textblock
15405 #: ../fish/guestfish.pod:78
15406 msgid "List the LVM logical volumes in a disk image:"
15407 msgstr ""
15408
15409 # type: verbatim
15410 #: ../fish/guestfish.pod:80
15411 #, no-wrap
15412 msgid ""
15413 " guestfish -a disk.img --ro <<_EOF_\n"
15414 " run\n"
15415 " lvs\n"
15416 " _EOF_\n"
15417 "\n"
15418 msgstr ""
15419
15420 # type: textblock
15421 #: ../fish/guestfish.pod:85
15422 msgid "List all the filesystems in a disk image:"
15423 msgstr ""
15424
15425 # type: verbatim
15426 #: ../fish/guestfish.pod:87
15427 #, no-wrap
15428 msgid ""
15429 " guestfish -a disk.img --ro <<_EOF_\n"
15430 " run\n"
15431 " list-filesystems\n"
15432 " _EOF_\n"
15433 "\n"
15434 msgstr ""
15435
15436 # type: =head2
15437 #: ../fish/guestfish.pod:92
15438 msgid "On one command line"
15439 msgstr ""
15440
15441 # type: textblock
15442 #: ../fish/guestfish.pod:94
15443 msgid "Update C</etc/resolv.conf> in a guest:"
15444 msgstr ""
15445
15446 # type: verbatim
15447 #: ../fish/guestfish.pod:96
15448 #, no-wrap
15449 msgid ""
15450 " guestfish \\\n"
15451 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15452 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15453 "\n"
15454 msgstr ""
15455
15456 # type: textblock
15457 #: ../fish/guestfish.pod:100
15458 msgid "Edit C</boot/grub/grub.conf> interactively:"
15459 msgstr ""
15460
15461 # type: verbatim
15462 #: ../fish/guestfish.pod:102
15463 #, no-wrap
15464 msgid ""
15465 " guestfish --add disk.img \\\n"
15466 "   --mount /dev/vg_guest/lv_root \\\n"
15467 "   --mount /dev/sda1:/boot \\\n"
15468 "   edit /boot/grub/grub.conf\n"
15469 "\n"
15470 msgstr ""
15471
15472 # type: =head2
15473 #: ../fish/guestfish.pod:107
15474 msgid "Mount disks automatically"
15475 msgstr ""
15476
15477 # type: textblock
15478 #: ../fish/guestfish.pod:109
15479 msgid ""
15480 "Use the I<-i> option to automatically mount the disks from a virtual "
15481 "machine:"
15482 msgstr ""
15483
15484 # type: verbatim
15485 #: ../fish/guestfish.pod:112
15486 #, no-wrap
15487 msgid ""
15488 " guestfish --ro -a disk.img -i cat /etc/group\n"
15489 "\n"
15490 msgstr ""
15491
15492 # type: verbatim
15493 #: ../fish/guestfish.pod:114
15494 #, no-wrap
15495 msgid ""
15496 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15497 "\n"
15498 msgstr ""
15499
15500 # type: textblock
15501 #: ../fish/guestfish.pod:116
15502 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15503 msgstr ""
15504
15505 # type: verbatim
15506 #: ../fish/guestfish.pod:118
15507 #, no-wrap
15508 msgid ""
15509 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15510 "\n"
15511 msgstr ""
15512
15513 # type: =head2
15514 #: ../fish/guestfish.pod:120
15515 msgid "As a script interpreter"
15516 msgstr ""
15517
15518 # type: textblock
15519 #: ../fish/guestfish.pod:122
15520 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15521 msgstr ""
15522
15523 # type: verbatim
15524 #: ../fish/guestfish.pod:124
15525 #, no-wrap
15526 msgid ""
15527 " #!/usr/bin/guestfish -f\n"
15528 " sparse test1.img 100M\n"
15529 " run\n"
15530 " part-disk /dev/sda mbr\n"
15531 " mkfs ext2 /dev/sda1\n"
15532 "\n"
15533 msgstr ""
15534
15535 # type: =head2
15536 #: ../fish/guestfish.pod:130
15537 msgid "Start with a prepared disk"
15538 msgstr ""
15539
15540 # type: textblock
15541 #: ../fish/guestfish.pod:132
15542 msgid ""
15543 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15544 "single ext2-formatted partition:"
15545 msgstr ""
15546
15547 # type: verbatim
15548 #: ../fish/guestfish.pod:135
15549 #, no-wrap
15550 msgid ""
15551 " guestfish -N fs\n"
15552 "\n"
15553 msgstr ""
15554
15555 # type: textblock
15556 #: ../fish/guestfish.pod:137
15557 msgid "To list what is available do:"
15558 msgstr ""
15559
15560 # type: verbatim
15561 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15562 #, no-wrap
15563 msgid ""
15564 " guestfish -N help | less\n"
15565 "\n"
15566 msgstr ""
15567
15568 # type: =head2
15569 #: ../fish/guestfish.pod:141
15570 msgid "Remote control"
15571 msgstr ""
15572
15573 # type: verbatim
15574 #: ../fish/guestfish.pod:143
15575 #, no-wrap
15576 msgid ""
15577 " eval `guestfish --listen`\n"
15578 " guestfish --remote add-ro disk.img\n"
15579 " guestfish --remote run\n"
15580 " guestfish --remote lvs\n"
15581 "\n"
15582 msgstr ""
15583
15584 # type: =head1
15585 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68 ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171 ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257 ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79 ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
15586 msgid "OPTIONS"
15587 msgstr ""
15588
15589 # type: =item
15590 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:124 ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86 ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58 ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
15591 msgid "B<--help>"
15592 msgstr ""
15593
15594 # type: textblock
15595 #: ../fish/guestfish.pod:154
15596 msgid "Displays general help on options."
15597 msgstr ""
15598
15599 # type: =item
15600 #: ../fish/guestfish.pod:156
15601 msgid "B<-h> | B<--cmd-help>"
15602 msgstr ""
15603
15604 # type: textblock
15605 #: ../fish/guestfish.pod:158
15606 msgid "Lists all available guestfish commands."
15607 msgstr ""
15608
15609 # type: =item
15610 #: ../fish/guestfish.pod:160
15611 msgid "B<-h cmd> | B<--cmd-help cmd>"
15612 msgstr ""
15613
15614 # type: textblock
15615 #: ../fish/guestfish.pod:162
15616 msgid "Displays detailed help on a single command C<cmd>."
15617 msgstr ""
15618
15619 # type: =item
15620 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
15621 msgid "B<-a image> | B<--add image>"
15622 msgstr ""
15623
15624 # type: textblock
15625 #: ../fish/guestfish.pod:166
15626 msgid "Add a block device or virtual machine image to the shell."
15627 msgstr ""
15628
15629 # type: textblock
15630 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
15631 msgid ""
15632 "The format of the disk image is auto-detected.  To override this and force a "
15633 "particular format use the I<--format=..> option."
15634 msgstr ""
15635
15636 # type: =item
15637 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
15638 msgid "B<-c URI> | B<--connect URI>"
15639 msgstr ""
15640
15641 # type: textblock
15642 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
15643 msgid ""
15644 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15645 "URI to use.  The default is to use the default libvirt connection."
15646 msgstr ""
15647
15648 # type: =item
15649 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
15650 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15651 msgstr ""
15652
15653 # type: textblock
15654 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
15655 msgid ""
15656 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15657 "used, then any libvirt domain can be used.  However in write mode, only "
15658 "libvirt domains which are shut down can be named here."
15659 msgstr ""
15660
15661 # type: =item
15662 #: ../fish/guestfish.pod:183
15663 msgid "B<-D> | B<--no-dest-paths>"
15664 msgstr ""
15665
15666 # type: textblock
15667 #: ../fish/guestfish.pod:185
15668 msgid ""
15669 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15670 "to hit the tab key to complete paths on the guest filesystem, but this "
15671 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15672 "allow this feature to be disabled."
15673 msgstr ""
15674
15675 # type: =item
15676 #: ../fish/guestfish.pod:190
15677 msgid "B<--echo-keys>"
15678 msgstr ""
15679
15680 # type: textblock
15681 #: ../fish/guestfish.pod:192
15682 msgid ""
15683 "When prompting for keys and passphrases, guestfish normally turns echoing "
15684 "off so you cannot see what you are typing.  If you are not worried about "
15685 "Tempest attacks and there is no one else in the room you can specify this "
15686 "flag to see what you are typing."
15687 msgstr ""
15688
15689 # type: =item
15690 #: ../fish/guestfish.pod:197
15691 msgid "B<-f file> | B<--file file>"
15692 msgstr ""
15693
15694 # type: textblock
15695 #: ../fish/guestfish.pod:199
15696 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15697 msgstr ""
15698
15699 # type: verbatim
15700 #: ../fish/guestfish.pod:202
15701 #, no-wrap
15702 msgid ""
15703 " #!/usr/bin/guestfish -f\n"
15704 "\n"
15705 msgstr ""
15706
15707 # type: =item
15708 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
15709 msgid "B<--format=raw|qcow2|..> | B<--format>"
15710 msgstr ""
15711
15712 # type: textblock
15713 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
15714 msgid ""
15715 "The default for the I<-a> option is to auto-detect the format of the disk "
15716 "image.  Using this forces the disk format for I<-a> options which follow on "
15717 "the command line.  Using I<--format> with no argument switches back to "
15718 "auto-detection for subsequent I<-a> options."
15719 msgstr ""
15720
15721 # type: textblock
15722 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504 ../inspector/virt-inspector.pl:549
15723 msgid "For example:"
15724 msgstr ""
15725
15726 # type: verbatim
15727 #: ../fish/guestfish.pod:213
15728 #, no-wrap
15729 msgid ""
15730 " guestfish --format=raw -a disk.img\n"
15731 "\n"
15732 msgstr ""
15733
15734 # type: textblock
15735 #: ../fish/guestfish.pod:215
15736 msgid "forces raw format (no auto-detection) for C<disk.img>."
15737 msgstr ""
15738
15739 # type: verbatim
15740 #: ../fish/guestfish.pod:217
15741 #, no-wrap
15742 msgid ""
15743 " guestfish --format=raw -a disk.img --format -a another.img\n"
15744 "\n"
15745 msgstr ""
15746
15747 # type: textblock
15748 #: ../fish/guestfish.pod:219
15749 msgid ""
15750 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
15751 "auto-detection for C<another.img>."
15752 msgstr ""
15753
15754 # type: textblock
15755 #: ../fish/guestfish.pod:222
15756 msgid ""
15757 "If you have untrusted raw-format guest disk images, you should use this "
15758 "option to specify the disk format.  This avoids a possible security problem "
15759 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15760 msgstr ""
15761
15762 # type: =item
15763 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
15764 msgid "B<-i> | B<--inspector>"
15765 msgstr ""
15766
15767 # type: textblock
15768 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
15769 msgid ""
15770 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15771 "system and mount filesystems as they would be mounted on the real virtual "
15772 "machine."
15773 msgstr ""
15774
15775 # type: textblock
15776 #: ../fish/guestfish.pod:233
15777 msgid "Typical usage is either:"
15778 msgstr ""
15779
15780 # type: verbatim
15781 #: ../fish/guestfish.pod:235
15782 #, no-wrap
15783 msgid ""
15784 " guestfish -d myguest -i\n"
15785 "\n"
15786 msgstr ""
15787
15788 # type: textblock
15789 #: ../fish/guestfish.pod:237
15790 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15791 msgstr ""
15792
15793 # type: verbatim
15794 #: ../fish/guestfish.pod:239
15795 #, no-wrap
15796 msgid ""
15797 " guestfish --ro -d myguest -i\n"
15798 "\n"
15799 msgstr ""
15800
15801 # type: textblock
15802 #: ../fish/guestfish.pod:241
15803 msgid "(for active domains, readonly), or specify the block device directly:"
15804 msgstr ""
15805
15806 # type: verbatim
15807 #: ../fish/guestfish.pod:243
15808 #, no-wrap
15809 msgid ""
15810 " guestfish -a /dev/Guests/MyGuest -i\n"
15811 "\n"
15812 msgstr ""
15813
15814 # type: textblock
15815 #: ../fish/guestfish.pod:245
15816 msgid ""
15817 "Note that the command line syntax changed slightly over older versions of "
15818 "guestfish.  You can still use the old syntax:"
15819 msgstr ""
15820
15821 # type: verbatim
15822 #: ../fish/guestfish.pod:248
15823 #, no-wrap
15824 msgid ""
15825 " guestfish [--ro] -i disk.img\n"
15826 "\n"
15827 msgstr ""
15828
15829 # type: verbatim
15830 #: ../fish/guestfish.pod:250
15831 #, no-wrap
15832 msgid ""
15833 " guestfish [--ro] -i libvirt-domain\n"
15834 "\n"
15835 msgstr ""
15836
15837 # type: =item
15838 #: ../fish/guestfish.pod:252
15839 msgid "B<--keys-from-stdin>"
15840 msgstr ""
15841
15842 # type: textblock
15843 #: ../fish/guestfish.pod:254
15844 msgid ""
15845 "Read key or passphrase parameters from stdin.  The default is to try to read "
15846 "passphrases from the user by opening C</dev/tty>."
15847 msgstr ""
15848
15849 # type: =item
15850 #: ../fish/guestfish.pod:257
15851 msgid "B<--listen>"
15852 msgstr ""
15853
15854 # type: textblock
15855 #: ../fish/guestfish.pod:259
15856 msgid ""
15857 "Fork into the background and listen for remote commands.  See section "
15858 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15859 msgstr ""
15860
15861 # type: =item
15862 #: ../fish/guestfish.pod:262
15863 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15864 msgstr ""
15865
15866 # type: textblock
15867 #: ../fish/guestfish.pod:264
15868 msgid "Mount the named partition or logical volume on the given mountpoint."
15869 msgstr ""
15870
15871 # type: textblock
15872 #: ../fish/guestfish.pod:266
15873 msgid "If the mountpoint is omitted, it defaults to C</>."
15874 msgstr ""
15875
15876 # type: textblock
15877 #: ../fish/guestfish.pod:268
15878 msgid "You have to mount something on C</> before most commands will work."
15879 msgstr ""
15880
15881 # type: textblock
15882 #: ../fish/guestfish.pod:270
15883 msgid ""
15884 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15885 "launched."
15886 msgstr ""
15887
15888 # type: textblock
15889 #: ../fish/guestfish.pod:273
15890 msgid ""
15891 "If you don't know what filesystems a disk image contains, you can either run "
15892 "guestfish without this option, then list the partitions and LVs available "
15893 "(see L</list-partitions> and L</lvs> commands), or you can use the "
15894 "L<virt-list-filesystems(1)> program."
15895 msgstr ""
15896
15897 # type: =item
15898 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
15899 msgid "B<-n> | B<--no-sync>"
15900 msgstr ""
15901
15902 # type: textblock
15903 #: ../fish/guestfish.pod:280
15904 msgid ""
15905 "Disable autosync.  This is enabled by default.  See the discussion of "
15906 "autosync in the L<guestfs(3)> manpage."
15907 msgstr ""
15908
15909 # type: =item
15910 #: ../fish/guestfish.pod:283
15911 msgid "B<-N type> | B<--new type> | B<-N help>"
15912 msgstr ""
15913
15914 # type: textblock
15915 #: ../fish/guestfish.pod:285
15916 msgid ""
15917 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15918 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15919 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15920 "IMAGES> below."
15921 msgstr ""
15922
15923 # type: =item
15924 #: ../fish/guestfish.pod:290
15925 msgid "B<--progress-bars>"
15926 msgstr ""
15927
15928 # type: textblock
15929 #: ../fish/guestfish.pod:292
15930 msgid "Enable progress bars, even when guestfish is used non-interactively."
15931 msgstr ""
15932
15933 # type: textblock
15934 #: ../fish/guestfish.pod:294
15935 msgid ""
15936 "Progress bars are enabled by default when guestfish is used as an "
15937 "interactive shell."
15938 msgstr ""
15939
15940 # type: =item
15941 #: ../fish/guestfish.pod:297
15942 msgid "B<--no-progress-bars>"
15943 msgstr ""
15944
15945 # type: textblock
15946 #: ../fish/guestfish.pod:299
15947 msgid "Disable progress bars."
15948 msgstr ""
15949
15950 # type: =item
15951 #: ../fish/guestfish.pod:301
15952 msgid "B<--remote[=pid]>"
15953 msgstr ""
15954
15955 # type: textblock
15956 #: ../fish/guestfish.pod:303
15957 msgid ""
15958 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15959 "CONTROL GUESTFISH OVER A SOCKET> below."
15960 msgstr ""
15961
15962 # type: =item
15963 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
15964 msgid "B<-r> | B<--ro>"
15965 msgstr ""
15966
15967 # type: textblock
15968 #: ../fish/guestfish.pod:308
15969 msgid ""
15970 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15971 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15972 msgstr ""
15973
15974 # type: textblock
15975 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
15976 msgid ""
15977 "The option must always be used if the disk image or virtual machine might be "
15978 "running, and is generally recommended in cases where you don't need write "
15979 "access to the disk."
15980 msgstr ""
15981
15982 # type: textblock
15983 #: ../fish/guestfish.pod:315
15984 msgid ""
15985 "Note that prepared disk images created with I<-N> are not affected by the "
15986 "I<--ro> option."
15987 msgstr ""
15988
15989 # type: =item
15990 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194 ../tools/virt-rescue.pl:195
15991 msgid "B<--selinux>"
15992 msgstr ""
15993
15994 # type: textblock
15995 #: ../fish/guestfish.pod:320
15996 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15997 msgstr ""
15998
15999 # type: =item
16000 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
16001 msgid "B<-v> | B<--verbose>"
16002 msgstr ""
16003
16004 # type: textblock
16005 #: ../fish/guestfish.pod:324
16006 msgid ""
16007 "Enable very verbose messages.  This is particularly useful if you find a "
16008 "bug."
16009 msgstr ""
16010
16011 # type: =item
16012 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
16013 msgid "B<-V> | B<--version>"
16014 msgstr ""
16015
16016 # type: textblock
16017 #: ../fish/guestfish.pod:329
16018 msgid "Display the guestfish / libguestfs version number and exit."
16019 msgstr ""
16020
16021 # type: =item
16022 #: ../fish/guestfish.pod:331
16023 msgid "B<-x>"
16024 msgstr ""
16025
16026 # type: textblock
16027 #: ../fish/guestfish.pod:333
16028 msgid "Echo each command before executing it."
16029 msgstr ""
16030
16031 # type: =head1
16032 #: ../fish/guestfish.pod:337
16033 msgid "COMMANDS ON COMMAND LINE"
16034 msgstr ""
16035
16036 # type: textblock
16037 #: ../fish/guestfish.pod:339
16038 msgid "Any additional (non-option) arguments are treated as commands to execute."
16039 msgstr ""
16040
16041 # type: textblock
16042 #: ../fish/guestfish.pod:342
16043 msgid ""
16044 "Commands to execute should be separated by a colon (C<:>), where the colon "
16045 "is a separate parameter.  Thus:"
16046 msgstr ""
16047
16048 # type: verbatim
16049 #: ../fish/guestfish.pod:345
16050 #, no-wrap
16051 msgid ""
16052 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16053 "\n"
16054 msgstr ""
16055
16056 # type: textblock
16057 #: ../fish/guestfish.pod:347
16058 msgid ""
16059 "If there are no additional arguments, then we enter a shell, either an "
16060 "interactive shell with a prompt (if the input is a terminal) or a "
16061 "non-interactive shell."
16062 msgstr ""
16063
16064 # type: textblock
16065 #: ../fish/guestfish.pod:351
16066 msgid ""
16067 "In either command line mode or non-interactive shell, the first command that "
16068 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16069 "prompt) if a command fails, you can continue to enter commands."
16070 msgstr ""
16071
16072 # type: =head1
16073 #: ../fish/guestfish.pod:356
16074 msgid "USING launch (OR run)"
16075 msgstr ""
16076
16077 # type: textblock
16078 #: ../fish/guestfish.pod:358
16079 msgid ""
16080 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16081 "then launch it, then mount any disks you need, and finally issue "
16082 "actions/commands.  So the general order of the day is:"
16083 msgstr ""
16084
16085 # type: textblock
16086 #: ../fish/guestfish.pod:366
16087 msgid "add or -a/--add"
16088 msgstr ""
16089
16090 # type: textblock
16091 #: ../fish/guestfish.pod:370
16092 msgid "launch (aka run)"
16093 msgstr ""
16094
16095 # type: textblock
16096 #: ../fish/guestfish.pod:374
16097 msgid "mount or -m/--mount"
16098 msgstr ""
16099
16100 # type: textblock
16101 #: ../fish/guestfish.pod:378
16102 msgid "any other commands"
16103 msgstr ""
16104
16105 # type: textblock
16106 #: ../fish/guestfish.pod:382
16107 msgid ""
16108 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16109 "guest before mounting or performing any other commands."
16110 msgstr ""
16111
16112 # type: textblock
16113 #: ../fish/guestfish.pod:385
16114 msgid ""
16115 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16116 "I<--new> options were given then C<run> is done automatically, simply "
16117 "because guestfish can't perform the action you asked for without doing this."
16118 msgstr ""
16119
16120 # type: =head1
16121 #: ../fish/guestfish.pod:390
16122 msgid "QUOTING"
16123 msgstr ""
16124
16125 # type: textblock
16126 #: ../fish/guestfish.pod:392
16127 msgid ""
16128 "You can quote ordinary parameters using either single or double quotes.  For "
16129 "example:"
16130 msgstr ""
16131
16132 # type: verbatim
16133 #: ../fish/guestfish.pod:395
16134 #, no-wrap
16135 msgid ""
16136 " add \"file with a space.img\"\n"
16137 "\n"
16138 msgstr ""
16139
16140 # type: verbatim
16141 #: ../fish/guestfish.pod:397
16142 #, no-wrap
16143 msgid ""
16144 " rm '/file name'\n"
16145 "\n"
16146 msgstr ""
16147
16148 # type: verbatim
16149 #: ../fish/guestfish.pod:399
16150 #, no-wrap
16151 msgid ""
16152 " rm '/\"'\n"
16153 "\n"
16154 msgstr ""
16155
16156 # type: textblock
16157 #: ../fish/guestfish.pod:401
16158 msgid ""
16159 "A few commands require a list of strings to be passed.  For these, use a "
16160 "whitespace-separated list, enclosed in quotes.  Strings containing "
16161 "whitespace to be passed through must be enclosed in single quotes.  A "
16162 "literal single quote must be escaped with a backslash."
16163 msgstr ""
16164
16165 # type: verbatim
16166 #: ../fish/guestfish.pod:406
16167 #, no-wrap
16168 msgid ""
16169 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16170 " command \"/bin/echo 'foo      bar'\"\n"
16171 " command \"/bin/echo \\'foo\\'\"\n"
16172 "\n"
16173 msgstr ""
16174
16175 # type: =head1
16176 #: ../fish/guestfish.pod:410
16177 msgid "OPTIONAL ARGUMENTS"
16178 msgstr ""
16179
16180 # type: textblock
16181 #: ../fish/guestfish.pod:412
16182 msgid ""
16183 "Some commands take optional arguments.  These arguments appear in this "
16184 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16185 msgstr ""
16186
16187 # type: verbatim
16188 #: ../fish/guestfish.pod:416
16189 #, no-wrap
16190 msgid ""
16191 " add-drive-opts filename\n"
16192 "\n"
16193 msgstr ""
16194
16195 # type: verbatim
16196 #: ../fish/guestfish.pod:418
16197 #, no-wrap
16198 msgid ""
16199 " add-drive-opts filename readonly:true\n"
16200 "\n"
16201 msgstr ""
16202
16203 # type: verbatim
16204 #: ../fish/guestfish.pod:420
16205 #, no-wrap
16206 msgid ""
16207 " add-drive-opts filename format:qcow2 readonly:false\n"
16208 "\n"
16209 msgstr ""
16210
16211 # type: textblock
16212 #: ../fish/guestfish.pod:422
16213 msgid ""
16214 "Each optional argument can appear at most once.  All optional arguments must "
16215 "appear after the required ones."
16216 msgstr ""
16217
16218 # type: =head1
16219 #: ../fish/guestfish.pod:425
16220 msgid "NUMBERS"
16221 msgstr ""
16222
16223 # type: textblock
16224 #: ../fish/guestfish.pod:427
16225 msgid "This section applies to all commands which can take integers as parameters."
16226 msgstr ""
16227
16228 # type: =head2
16229 #: ../fish/guestfish.pod:430
16230 msgid "SIZE SUFFIX"
16231 msgstr ""
16232
16233 # type: textblock
16234 #: ../fish/guestfish.pod:432
16235 msgid ""
16236 "When the command takes a parameter measured in bytes, you can use one of the "
16237 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16238 msgstr ""
16239
16240 # type: =item
16241 #: ../fish/guestfish.pod:438
16242 msgid "B<k> or B<K> or B<KiB>"
16243 msgstr ""
16244
16245 # type: textblock
16246 #: ../fish/guestfish.pod:440
16247 msgid "The size in kilobytes (multiplied by 1024)."
16248 msgstr ""
16249
16250 # type: =item
16251 #: ../fish/guestfish.pod:442
16252 msgid "B<KB>"
16253 msgstr ""
16254
16255 # type: textblock
16256 #: ../fish/guestfish.pod:444
16257 msgid "The size in SI 1000 byte units."
16258 msgstr ""
16259
16260 # type: =item
16261 #: ../fish/guestfish.pod:446
16262 msgid "B<M> or B<MiB>"
16263 msgstr ""
16264
16265 # type: textblock
16266 #: ../fish/guestfish.pod:448
16267 msgid "The size in megabytes (multiplied by 1048576)."
16268 msgstr ""
16269
16270 # type: =item
16271 #: ../fish/guestfish.pod:450
16272 msgid "B<MB>"
16273 msgstr ""
16274
16275 # type: textblock
16276 #: ../fish/guestfish.pod:452
16277 msgid "The size in SI 1000000 byte units."
16278 msgstr ""
16279
16280 # type: =item
16281 #: ../fish/guestfish.pod:454
16282 msgid "B<G> or B<GiB>"
16283 msgstr ""
16284
16285 # type: textblock
16286 #: ../fish/guestfish.pod:456
16287 msgid "The size in gigabytes (multiplied by 2**30)."
16288 msgstr ""
16289
16290 # type: =item
16291 #: ../fish/guestfish.pod:458
16292 msgid "B<GB>"
16293 msgstr ""
16294
16295 # type: textblock
16296 #: ../fish/guestfish.pod:460
16297 msgid "The size in SI 10**9 byte units."
16298 msgstr ""
16299
16300 # type: =item
16301 #: ../fish/guestfish.pod:462
16302 msgid "B<T> or B<TiB>"
16303 msgstr ""
16304
16305 # type: textblock
16306 #: ../fish/guestfish.pod:464
16307 msgid "The size in terabytes (multiplied by 2**40)."
16308 msgstr ""
16309
16310 # type: =item
16311 #: ../fish/guestfish.pod:466
16312 msgid "B<TB>"
16313 msgstr ""
16314
16315 # type: textblock
16316 #: ../fish/guestfish.pod:468
16317 msgid "The size in SI 10**12 byte units."
16318 msgstr ""
16319
16320 # type: =item
16321 #: ../fish/guestfish.pod:470
16322 msgid "B<P> or B<PiB>"
16323 msgstr ""
16324
16325 # type: textblock
16326 #: ../fish/guestfish.pod:472
16327 msgid "The size in petabytes (multiplied by 2**50)."
16328 msgstr ""
16329
16330 # type: =item
16331 #: ../fish/guestfish.pod:474
16332 msgid "B<PB>"
16333 msgstr ""
16334
16335 # type: textblock
16336 #: ../fish/guestfish.pod:476
16337 msgid "The size in SI 10**15 byte units."
16338 msgstr ""
16339
16340 # type: =item
16341 #: ../fish/guestfish.pod:478
16342 msgid "B<E> or B<EiB>"
16343 msgstr ""
16344
16345 # type: textblock
16346 #: ../fish/guestfish.pod:480
16347 msgid "The size in exabytes (multiplied by 2**60)."
16348 msgstr ""
16349
16350 # type: =item
16351 #: ../fish/guestfish.pod:482
16352 msgid "B<EB>"
16353 msgstr ""
16354
16355 # type: textblock
16356 #: ../fish/guestfish.pod:484
16357 msgid "The size in SI 10**18 byte units."
16358 msgstr ""
16359
16360 # type: =item
16361 #: ../fish/guestfish.pod:486
16362 msgid "B<Z> or B<ZiB>"
16363 msgstr ""
16364
16365 # type: textblock
16366 #: ../fish/guestfish.pod:488
16367 msgid "The size in zettabytes (multiplied by 2**70)."
16368 msgstr ""
16369
16370 # type: =item
16371 #: ../fish/guestfish.pod:490
16372 msgid "B<ZB>"
16373 msgstr ""
16374
16375 # type: textblock
16376 #: ../fish/guestfish.pod:492
16377 msgid "The size in SI 10**21 byte units."
16378 msgstr ""
16379
16380 # type: =item
16381 #: ../fish/guestfish.pod:494
16382 msgid "B<Y> or B<YiB>"
16383 msgstr ""
16384
16385 # type: textblock
16386 #: ../fish/guestfish.pod:496
16387 msgid "The size in yottabytes (multiplied by 2**80)."
16388 msgstr ""
16389
16390 # type: =item
16391 #: ../fish/guestfish.pod:498
16392 msgid "B<YB>"
16393 msgstr ""
16394
16395 # type: textblock
16396 #: ../fish/guestfish.pod:500
16397 msgid "The size in SI 10**24 byte units."
16398 msgstr ""
16399
16400 # type: verbatim
16401 #: ../fish/guestfish.pod:506
16402 #, no-wrap
16403 msgid ""
16404 " truncate-size /file 1G\n"
16405 "\n"
16406 msgstr ""
16407
16408 # type: textblock
16409 #: ../fish/guestfish.pod:508
16410 msgid "would truncate the file to 1 gigabyte."
16411 msgstr ""
16412
16413 # type: textblock
16414 #: ../fish/guestfish.pod:510
16415 msgid ""
16416 "Be careful because a few commands take sizes in kilobytes or megabytes "
16417 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16418 "Adding a suffix will probably not do what you expect."
16419 msgstr ""
16420
16421 # type: =head2
16422 #: ../fish/guestfish.pod:514
16423 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16424 msgstr ""
16425
16426 # type: textblock
16427 #: ../fish/guestfish.pod:516
16428 msgid ""
16429 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16430 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16431 msgstr ""
16432
16433 # type: verbatim
16434 #: ../fish/guestfish.pod:519
16435 #, no-wrap
16436 msgid ""
16437 " 1234      decimal number 1234\n"
16438 " 02322     octal number, equivalent to decimal 1234\n"
16439 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16440 "\n"
16441 msgstr ""
16442
16443 # type: textblock
16444 #: ../fish/guestfish.pod:523
16445 msgid ""
16446 "When using the C<chmod> command, you almost always want to specify an octal "
16447 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16448 "L<chmod(1)> program):"
16449 msgstr ""
16450
16451 # type: verbatim
16452 #: ../fish/guestfish.pod:527
16453 #, no-wrap
16454 msgid ""
16455 " chmod 0777 /public  # OK\n"
16456 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16457 "\n"
16458 msgstr ""
16459
16460 # type: textblock
16461 #: ../fish/guestfish.pod:530
16462 msgid ""
16463 "Commands that return numbers usually print them in decimal, but some "
16464 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16465 "octal, preceeded by C<0>)."
16466 msgstr ""
16467
16468 # type: =head1
16469 #: ../fish/guestfish.pod:534
16470 msgid "WILDCARDS AND GLOBBING"
16471 msgstr ""
16472
16473 # type: textblock
16474 #: ../fish/guestfish.pod:536
16475 msgid ""
16476 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16477 "(globbing) by default.  So for example the following will not do what you "
16478 "expect:"
16479 msgstr ""
16480
16481 # type: verbatim
16482 #: ../fish/guestfish.pod:540
16483 #, no-wrap
16484 msgid ""
16485 " rm-rf /home/*\n"
16486 "\n"
16487 msgstr ""
16488
16489 # type: textblock
16490 #: ../fish/guestfish.pod:542
16491 msgid ""
16492 "Assuming you don't have a directory called literally C</home/*> then the "
16493 "above command will return an error."
16494 msgstr ""
16495
16496 # type: textblock
16497 #: ../fish/guestfish.pod:545
16498 msgid "To perform wildcard expansion, use the C<glob> command."
16499 msgstr ""
16500
16501 # type: verbatim
16502 #: ../fish/guestfish.pod:547
16503 #, no-wrap
16504 msgid ""
16505 " glob rm-rf /home/*\n"
16506 "\n"
16507 msgstr ""
16508
16509 # type: textblock
16510 #: ../fish/guestfish.pod:549
16511 msgid ""
16512 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16513 "many times), equivalent to:"
16514 msgstr ""
16515
16516 # type: verbatim
16517 #: ../fish/guestfish.pod:552
16518 #, no-wrap
16519 msgid ""
16520 " rm-rf /home/jim\n"
16521 " rm-rf /home/joe\n"
16522 " rm-rf /home/mary\n"
16523 "\n"
16524 msgstr ""
16525
16526 # type: textblock
16527 #: ../fish/guestfish.pod:556
16528 msgid "C<glob> only works on simple guest paths and not on device names."
16529 msgstr ""
16530
16531 # type: textblock
16532 #: ../fish/guestfish.pod:558
16533 msgid ""
16534 "If you have several parameters, each containing a wildcard, then glob will "
16535 "perform a Cartesian product."
16536 msgstr ""
16537
16538 # type: =head1
16539 #: ../fish/guestfish.pod:561
16540 msgid "COMMENTS"
16541 msgstr ""
16542
16543 # type: textblock
16544 #: ../fish/guestfish.pod:563
16545 msgid ""
16546 "Any line which starts with a I<#> character is treated as a comment and "
16547 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16548 "a command.  For example:"
16549 msgstr ""
16550
16551 # type: verbatim
16552 #: ../fish/guestfish.pod:567
16553 #, no-wrap
16554 msgid ""
16555 " # this is a comment\n"
16556 "         # this is a comment\n"
16557 " foo # NOT a comment\n"
16558 "\n"
16559 msgstr ""
16560
16561 # type: textblock
16562 #: ../fish/guestfish.pod:571
16563 msgid "Blank lines are also ignored."
16564 msgstr ""
16565
16566 # type: =head1
16567 #: ../fish/guestfish.pod:573
16568 msgid "RUNNING COMMANDS LOCALLY"
16569 msgstr ""
16570
16571 # type: textblock
16572 #: ../fish/guestfish.pod:575
16573 msgid ""
16574 "Any line which starts with a I<!> character is treated as a command sent to "
16575 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16576 msgstr ""
16577
16578 # type: verbatim
16579 #: ../fish/guestfish.pod:579
16580 #, no-wrap
16581 msgid ""
16582 " !mkdir local\n"
16583 " tgz-out /remote local/remote-data.tar.gz\n"
16584 "\n"
16585 msgstr ""
16586
16587 # type: textblock
16588 #: ../fish/guestfish.pod:582
16589 msgid ""
16590 "will create a directory C<local> on the host, and then export the contents "
16591 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16592 "(See C<tgz-out>)."
16593 msgstr ""
16594
16595 # type: textblock
16596 #: ../fish/guestfish.pod:586
16597 msgid ""
16598 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16599 "effect, due to the way that subprocesses work in Unix."
16600 msgstr ""
16601
16602 # type: =head1
16603 #: ../fish/guestfish.pod:589
16604 msgid "PIPES"
16605 msgstr ""
16606
16607 # type: textblock
16608 #: ../fish/guestfish.pod:591
16609 msgid ""
16610 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16611 "command (a guestfish command) to the second command (any host command).  For "
16612 "example:"
16613 msgstr ""
16614
16615 # type: verbatim
16616 #: ../fish/guestfish.pod:595
16617 #, no-wrap
16618 msgid ""
16619 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16620 "\n"
16621 msgstr ""
16622
16623 # type: textblock
16624 #: ../fish/guestfish.pod:597
16625 msgid ""
16626 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16627 "program).  The above command would list all accounts in the guest filesystem "
16628 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16629 msgstr ""
16630
16631 # type: verbatim
16632 #: ../fish/guestfish.pod:602
16633 #, no-wrap
16634 msgid ""
16635 " hexdump /bin/ls | head\n"
16636 " list-devices | tail -1\n"
16637 " tgz-out / - | tar ztf -\n"
16638 "\n"
16639 msgstr ""
16640
16641 # type: textblock
16642 #: ../fish/guestfish.pod:606
16643 msgid ""
16644 "The space before the pipe symbol is required, any space after the pipe "
16645 "symbol is optional.  Everything after the pipe symbol is just passed "
16646 "straight to the host shell, so it can contain redirections, globs and "
16647 "anything else that makes sense on the host side."
16648 msgstr ""
16649
16650 # type: textblock
16651 #: ../fish/guestfish.pod:611
16652 msgid ""
16653 "To use a literal argument which begins with a pipe symbol, you have to quote "
16654 "it, eg:"
16655 msgstr ""
16656
16657 # type: verbatim
16658 #: ../fish/guestfish.pod:614
16659 #, no-wrap
16660 msgid ""
16661 " echo \"|\"\n"
16662 "\n"
16663 msgstr ""
16664
16665 # type: =head1
16666 #: ../fish/guestfish.pod:616
16667 msgid "HOME DIRECTORIES"
16668 msgstr ""
16669
16670 # type: textblock
16671 #: ../fish/guestfish.pod:618
16672 msgid ""
16673 "If a parameter starts with the character C<~> then the tilde may be expanded "
16674 "as a home directory path (either C<~> for the current user's home directory, "
16675 "or C<~user> for another user)."
16676 msgstr ""
16677
16678 # type: textblock
16679 #: ../fish/guestfish.pod:622
16680 msgid ""
16681 "Note that home directory expansion happens for users known I<on the host>, "
16682 "not in the guest filesystem."
16683 msgstr ""
16684
16685 # type: textblock
16686 #: ../fish/guestfish.pod:625
16687 msgid ""
16688 "To use a literal argument which begins with a tilde, you have to quote it, "
16689 "eg:"
16690 msgstr ""
16691
16692 # type: verbatim
16693 #: ../fish/guestfish.pod:628
16694 #, no-wrap
16695 msgid ""
16696 " echo \"~\"\n"
16697 "\n"
16698 msgstr ""
16699
16700 # type: textblock
16701 #: ../fish/guestfish.pod:632
16702 msgid ""
16703 "Libguestfs has some support for Linux guests encrypted according to the "
16704 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16705 "disk encryption systems used by modern Linux guests.  Currently only "
16706 "LVM-on-LUKS is supported."
16707 msgstr ""
16708
16709 # type: textblock
16710 #: ../fish/guestfish.pod:637
16711 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16712 msgstr ""
16713
16714 # type: verbatim
16715 #: ../fish/guestfish.pod:639
16716 #, no-wrap
16717 msgid ""
16718 " ><fs> vfs-type /dev/sda2\n"
16719 " crypto_LUKS\n"
16720 "\n"
16721 msgstr ""
16722
16723 # type: textblock
16724 #: ../fish/guestfish.pod:642
16725 msgid ""
16726 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16727 "device called C</dev/mapper/luksdev>."
16728 msgstr ""
16729
16730 # type: verbatim
16731 #: ../fish/guestfish.pod:645
16732 #, no-wrap
16733 msgid ""
16734 " ><fs> luks-open /dev/sda2 luksdev\n"
16735 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16736 "\n"
16737 msgstr ""
16738
16739 # type: textblock
16740 #: ../fish/guestfish.pod:648
16741 msgid ""
16742 "Finally you have to tell LVM to scan for volume groups on the newly created "
16743 "mapper device:"
16744 msgstr ""
16745
16746 # type: verbatim
16747 #: ../fish/guestfish.pod:651
16748 #, no-wrap
16749 msgid ""
16750 " vgscan\n"
16751 " vg-activate-all true\n"
16752 "\n"
16753 msgstr ""
16754
16755 # type: textblock
16756 #: ../fish/guestfish.pod:654
16757 msgid "The logical volume(s) can now be mounted in the usual way."
16758 msgstr ""
16759
16760 # type: textblock
16761 #: ../fish/guestfish.pod:656
16762 msgid ""
16763 "Before closing a LUKS device you must unmount any logical volumes on it and "
16764 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16765 "one.  Then you can close the mapper device:"
16766 msgstr ""
16767
16768 # type: verbatim
16769 #: ../fish/guestfish.pod:660
16770 #, no-wrap
16771 msgid ""
16772 " vg-activate false /dev/VG\n"
16773 " luks-close /dev/mapper/luksdev\n"
16774 "\n"
16775 msgstr ""
16776
16777 # type: =head1
16778 #: ../fish/guestfish.pod:663
16779 msgid "WINDOWS PATHS"
16780 msgstr ""
16781
16782 # type: textblock
16783 #: ../fish/guestfish.pod:665
16784 msgid ""
16785 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16786 "(with some limitations).  The following commands are equivalent:"
16787 msgstr ""
16788
16789 # type: verbatim
16790 #: ../fish/guestfish.pod:668
16791 #, no-wrap
16792 msgid ""
16793 " file /WINDOWS/system32/config/system.LOG\n"
16794 "\n"
16795 msgstr ""
16796
16797 # type: verbatim
16798 #: ../fish/guestfish.pod:670
16799 #, no-wrap
16800 msgid ""
16801 " file win:/windows/system32/config/system.log\n"
16802 "\n"
16803 msgstr ""
16804
16805 # type: verbatim
16806 #: ../fish/guestfish.pod:672
16807 #, no-wrap
16808 msgid ""
16809 " file win:\\windows\\system32\\config\\system.log\n"
16810 "\n"
16811 msgstr ""
16812
16813 # type: verbatim
16814 #: ../fish/guestfish.pod:674
16815 #, no-wrap
16816 msgid ""
16817 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16818 "\n"
16819 msgstr ""
16820
16821 # type: textblock
16822 #: ../fish/guestfish.pod:676
16823 msgid ""
16824 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16825 "handles case insensitivity like Windows would.  This only works in argument "
16826 "positions that expect a path."
16827 msgstr ""
16828
16829 # type: =head1
16830 #: ../fish/guestfish.pod:680
16831 msgid "UPLOADING AND DOWNLOADING FILES"
16832 msgstr ""
16833
16834 # type: textblock
16835 #: ../fish/guestfish.pod:682
16836 msgid ""
16837 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16838 "others which upload from or download to a local file, you can use the "
16839 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16840 msgstr ""
16841
16842 # type: verbatim
16843 #: ../fish/guestfish.pod:686
16844 #, no-wrap
16845 msgid ""
16846 " upload - /foo\n"
16847 "\n"
16848 msgstr ""
16849
16850 # type: textblock
16851 #: ../fish/guestfish.pod:688
16852 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
16853 msgstr ""
16854
16855 # type: verbatim
16856 #: ../fish/guestfish.pod:691
16857 #, no-wrap
16858 msgid ""
16859 " tar-out /etc - | tar tf -\n"
16860 "\n"
16861 msgstr ""
16862
16863 # type: textblock
16864 #: ../fish/guestfish.pod:693
16865 msgid ""
16866 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16867 "command (see L</PIPES>)."
16868 msgstr ""
16869
16870 # type: textblock
16871 #: ../fish/guestfish.pod:696
16872 msgid ""
16873 "When using C<-> to read from stdin, the input is read up to the end of "
16874 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16875 "some arbitrary end marker:"
16876 msgstr ""
16877
16878 # type: verbatim
16879 #: ../fish/guestfish.pod:700
16880 #, no-wrap
16881 msgid ""
16882 " upload -<<END /foo\n"
16883 " input line 1\n"
16884 " input line 2\n"
16885 " input line 3\n"
16886 " END\n"
16887 "\n"
16888 msgstr ""
16889
16890 # type: textblock
16891 #: ../fish/guestfish.pod:706
16892 msgid ""
16893 "Any string of characters can be used instead of C<END>.  The end marker must "
16894 "appear on a line of its own, without any preceeding or following characters "
16895 "(not even spaces)."
16896 msgstr ""
16897
16898 # type: textblock
16899 #: ../fish/guestfish.pod:710
16900 msgid ""
16901 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16902 "upload local files (so-called \"FileIn\" parameters in the generator)."
16903 msgstr ""
16904
16905 # type: =head1
16906 #: ../fish/guestfish.pod:713
16907 msgid "EXIT ON ERROR BEHAVIOUR"
16908 msgstr ""
16909
16910 # type: textblock
16911 #: ../fish/guestfish.pod:715
16912 msgid ""
16913 "By default, guestfish will ignore any errors when in interactive mode "
16914 "(ie. taking commands from a human over a tty), and will exit on the first "
16915 "error in non-interactive mode (scripts, commands given on the command line)."
16916 msgstr ""
16917
16918 # type: textblock
16919 #: ../fish/guestfish.pod:720
16920 msgid ""
16921 "If you prefix a command with a I<-> character, then that command will not "
16922 "cause guestfish to exit, even if that (one) command returns an error."
16923 msgstr ""
16924
16925 # type: =head1
16926 #: ../fish/guestfish.pod:724
16927 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16928 msgstr ""
16929
16930 # type: textblock
16931 #: ../fish/guestfish.pod:726
16932 msgid ""
16933 "Guestfish can be remote-controlled over a socket.  This is useful "
16934 "particularly in shell scripts where you want to make several different "
16935 "changes to a filesystem, but you don't want the overhead of starting up a "
16936 "guestfish process each time."
16937 msgstr ""
16938
16939 # type: textblock
16940 #: ../fish/guestfish.pod:731
16941 msgid "Start a guestfish server process using:"
16942 msgstr ""
16943
16944 # type: verbatim
16945 #: ../fish/guestfish.pod:733
16946 #, no-wrap
16947 msgid ""
16948 " eval `guestfish --listen`\n"
16949 "\n"
16950 msgstr ""
16951
16952 # type: textblock
16953 #: ../fish/guestfish.pod:735
16954 msgid "and then send it commands by doing:"
16955 msgstr ""
16956
16957 # type: verbatim
16958 #: ../fish/guestfish.pod:737
16959 #, no-wrap
16960 msgid ""
16961 " guestfish --remote cmd [...]\n"
16962 "\n"
16963 msgstr ""
16964
16965 # type: textblock
16966 #: ../fish/guestfish.pod:739
16967 msgid "To cause the server to exit, send it the exit command:"
16968 msgstr ""
16969
16970 # type: verbatim
16971 #: ../fish/guestfish.pod:741
16972 #, no-wrap
16973 msgid ""
16974 " guestfish --remote exit\n"
16975 "\n"
16976 msgstr ""
16977
16978 # type: textblock
16979 #: ../fish/guestfish.pod:743
16980 msgid ""
16981 "Note that the server will normally exit if there is an error in a command.  "
16982 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16983 "BEHAVIOUR>."
16984 msgstr ""
16985
16986 # type: =head2
16987 #: ../fish/guestfish.pod:747
16988 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16989 msgstr ""
16990
16991 # type: textblock
16992 #: ../fish/guestfish.pod:749
16993 msgid ""
16994 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16995 "is how the I<--remote> option knows where to send the commands.  You can "
16996 "have several guestfish listener processes running using:"
16997 msgstr ""
16998
16999 # type: verbatim
17000 #: ../fish/guestfish.pod:753
17001 #, no-wrap
17002 msgid ""
17003 " eval `guestfish --listen`\n"
17004 " pid1=$GUESTFISH_PID\n"
17005 " eval `guestfish --listen`\n"
17006 " pid2=$GUESTFISH_PID\n"
17007 " ...\n"
17008 " guestfish --remote=$pid1 cmd\n"
17009 " guestfish --remote=$pid2 cmd\n"
17010 "\n"
17011 msgstr ""
17012
17013 # type: =head2
17014 #: ../fish/guestfish.pod:761
17015 msgid "REMOTE CONTROL DETAILS"
17016 msgstr ""
17017
17018 # type: textblock
17019 #: ../fish/guestfish.pod:763
17020 msgid ""
17021 "Remote control happens over a Unix domain socket called "
17022 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17023 "of the process, and C<$PID> is the process ID of the server."
17024 msgstr ""
17025
17026 # type: textblock
17027 #: ../fish/guestfish.pod:767
17028 msgid "Guestfish client and server versions must match exactly."
17029 msgstr ""
17030
17031 # type: =head1
17032 #: ../fish/guestfish.pod:769
17033 msgid "PREPARED DISK IMAGES"
17034 msgstr ""
17035
17036 # type: textblock
17037 #: ../fish/guestfish.pod:771
17038 msgid ""
17039 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17040 "preformatted disk images that guestfish can make for you to save typing.  "
17041 "This is particularly useful for testing purposes.  This option is used "
17042 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17043 "can be mixed with I<-a>)."
17044 msgstr ""
17045
17046 # type: textblock
17047 #: ../fish/guestfish.pod:777
17048 msgid ""
17049 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17050 "the second and so on.  Existing files in the current directory are "
17051 "I<overwritten>."
17052 msgstr ""
17053
17054 # type: textblock
17055 #: ../fish/guestfish.pod:781
17056 msgid ""
17057 "The type briefly describes how the disk should be sized, partitioned, how "
17058 "filesystem(s) should be created, and how content should be added.  "
17059 "Optionally the type can be followed by extra parameters, separated by C<:> "
17060 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17061 "sparsely-allocated disk, containing a single partition, with the partition "
17062 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17063 "on a 1GB disk instead."
17064 msgstr ""
17065
17066 # type: textblock
17067 #: ../fish/guestfish.pod:789
17068 msgid "To list the available types and any extra parameters they take, run:"
17069 msgstr ""
17070
17071 # type: textblock
17072 #: ../fish/guestfish.pod:793
17073 msgid ""
17074 "Note that the prepared filesystem is not mounted.  You would usually have to "
17075 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17076 msgstr ""
17077
17078 # type: textblock
17079 #: ../fish/guestfish.pod:797
17080 msgid ""
17081 "If any I<-N> or I<--new> options are given, the guest is automatically "
17082 "launched."
17083 msgstr ""
17084
17085 # type: textblock
17086 #: ../fish/guestfish.pod:802
17087 msgid "Create a 100MB disk with an ext4-formatted partition:"
17088 msgstr ""
17089
17090 # type: verbatim
17091 #: ../fish/guestfish.pod:804
17092 #, no-wrap
17093 msgid ""
17094 " guestfish -N fs:ext4\n"
17095 "\n"
17096 msgstr ""
17097
17098 # type: textblock
17099 #: ../fish/guestfish.pod:806
17100 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17101 msgstr ""
17102
17103 # type: verbatim
17104 #: ../fish/guestfish.pod:808
17105 #, no-wrap
17106 msgid ""
17107 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17108 "\n"
17109 msgstr ""
17110
17111 # type: textblock
17112 #: ../fish/guestfish.pod:810
17113 msgid "Create a blank 200MB disk:"
17114 msgstr ""
17115
17116 # type: verbatim
17117 #: ../fish/guestfish.pod:812
17118 #, no-wrap
17119 msgid ""
17120 " guestfish -N disk:200M\n"
17121 "\n"
17122 msgstr ""
17123
17124 # type: =head1
17125 #: ../fish/guestfish.pod:814
17126 msgid "PROGRESS BARS"
17127 msgstr ""
17128
17129 # type: textblock
17130 #: ../fish/guestfish.pod:816
17131 msgid ""
17132 "Some (not all) long-running commands send progress notification messages as "
17133 "they are running.  Guestfish turns these messages into progress bars."
17134 msgstr ""
17135
17136 # type: textblock
17137 #: ../fish/guestfish.pod:820
17138 msgid ""
17139 "When a command that supports progress bars takes longer than two seconds to "
17140 "run, and if progress bars are enabled, then you will see one appearing below "
17141 "the command:"
17142 msgstr ""
17143
17144 # type: verbatim
17145 #: ../fish/guestfish.pod:824
17146 #, no-wrap
17147 msgid ""
17148 " ><fs> copy-size /large-file /another-file 2048M\n"
17149 " / 10% [#####-----------------------------------------] 00:30\n"
17150 "\n"
17151 msgstr ""
17152
17153 # type: textblock
17154 #: ../fish/guestfish.pod:827
17155 msgid ""
17156 "The spinner on the left hand side moves round once for every progress "
17157 "notification received from the backend.  This is a (reasonably) golden "
17158 "assurance that the command is \"doing something\" even if the progress bar "
17159 "is not moving, because the command is able to send the progress "
17160 "notifications.  When the bar reaches 100% and the command finishes, the "
17161 "spinner disappears."
17162 msgstr ""
17163
17164 # type: textblock
17165 #: ../fish/guestfish.pod:834
17166 msgid ""
17167 "Progress bars are enabled by default when guestfish is used interactively.  "
17168 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17169 "and you can disable them completely using I<--no-progress-bars>."
17170 msgstr ""
17171
17172 # type: =head1
17173 #: ../fish/guestfish.pod:839
17174 msgid "GUESTFISH COMMANDS"
17175 msgstr ""
17176
17177 # type: textblock
17178 #: ../fish/guestfish.pod:841
17179 msgid ""
17180 "The commands in this section are guestfish convenience commands, in other "
17181 "words, they are not part of the L<guestfs(3)> API."
17182 msgstr ""
17183
17184 # type: =head2
17185 #: ../fish/guestfish.pod:844
17186 msgid "help"
17187 msgstr ""
17188
17189 # type: verbatim
17190 #: ../fish/guestfish.pod:846
17191 #, no-wrap
17192 msgid ""
17193 " help\n"
17194 " help cmd\n"
17195 "\n"
17196 msgstr ""
17197
17198 # type: textblock
17199 #: ../fish/guestfish.pod:849
17200 msgid ""
17201 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
17202 "this displays detailed help for a command."
17203 msgstr ""
17204
17205 # type: =head2
17206 #: ../fish/guestfish.pod:852
17207 msgid "quit | exit"
17208 msgstr ""
17209
17210 # type: textblock
17211 #: ../fish/guestfish.pod:854
17212 msgid "This exits guestfish.  You can also use C<^D> key."
17213 msgstr ""
17214
17215 # type: textblock
17216 #: ../fish/guestfish.pod:856
17217 msgid "@FISH_COMMANDS@"
17218 msgstr ""
17219
17220 # type: =head1
17221 #: ../fish/guestfish.pod:858
17222 msgid "COMMANDS"
17223 msgstr ""
17224
17225 # type: =head1
17226 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
17227 msgid "EXIT CODE"
17228 msgstr ""
17229
17230 # type: textblock
17231 #: ../fish/guestfish.pod:864
17232 msgid ""
17233 "guestfish returns 0 if the commands completed without error, or 1 if there "
17234 "was an error."
17235 msgstr ""
17236
17237 # type: =item
17238 #: ../fish/guestfish.pod:871
17239 msgid "EDITOR"
17240 msgstr ""
17241
17242 # type: textblock
17243 #: ../fish/guestfish.pod:873
17244 msgid ""
17245 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17246 "C<vi>."
17247 msgstr ""
17248
17249 # type: =item
17250 #: ../fish/guestfish.pod:876
17251 msgid "GUESTFISH_PID"
17252 msgstr ""
17253
17254 # type: textblock
17255 #: ../fish/guestfish.pod:878
17256 msgid ""
17257 "Used with the I<--remote> option to specify the remote guestfish process to "
17258 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17259 msgstr ""
17260
17261 # type: =item
17262 #: ../fish/guestfish.pod:882
17263 msgid "HEXEDITOR"
17264 msgstr ""
17265
17266 # type: textblock
17267 #: ../fish/guestfish.pod:884
17268 msgid ""
17269 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17270 "not specified, the external L<hexedit(1)> program is used."
17271 msgstr ""
17272
17273 # type: =item
17274 #: ../fish/guestfish.pod:888
17275 msgid "HOME"
17276 msgstr ""
17277
17278 # type: textblock
17279 #: ../fish/guestfish.pod:890
17280 msgid ""
17281 "If compiled with GNU readline support, various files in the home directory "
17282 "can be used.  See L</FILES>."
17283 msgstr ""
17284
17285 # type: textblock
17286 #: ../fish/guestfish.pod:899
17287 msgid ""
17288 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17289 "effect as using the B<-v> option."
17290 msgstr ""
17291
17292 # type: textblock
17293 #: ../fish/guestfish.pod:911
17294 msgid ""
17295 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17296 "the discussion of paths in L<guestfs(3)>."
17297 msgstr ""
17298
17299 # type: textblock
17300 #: ../fish/guestfish.pod:922
17301 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17302 msgstr ""
17303
17304 # type: =item
17305 #: ../fish/guestfish.pod:924
17306 msgid "PAGER"
17307 msgstr ""
17308
17309 # type: textblock
17310 #: ../fish/guestfish.pod:926
17311 msgid ""
17312 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17313 "C<more>."
17314 msgstr ""
17315
17316 # type: =head1
17317 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
17318 msgid "FILES"
17319 msgstr ""
17320
17321 # type: =item
17322 #: ../fish/guestfish.pod:945
17323 msgid "$HOME/.guestfish"
17324 msgstr ""
17325
17326 # type: textblock
17327 #: ../fish/guestfish.pod:947
17328 msgid ""
17329 "If compiled with GNU readline support, then the command history is saved in "
17330 "this file."
17331 msgstr ""
17332
17333 # type: =item
17334 #: ../fish/guestfish.pod:950
17335 msgid "$HOME/.inputrc"
17336 msgstr ""
17337
17338 # type: =item
17339 #: ../fish/guestfish.pod:952
17340 msgid "/etc/inputrc"
17341 msgstr ""
17342
17343 # type: textblock
17344 #: ../fish/guestfish.pod:954
17345 msgid ""
17346 "If compiled with GNU readline support, then these files can be used to "
17347 "configure readline.  For further information, please see "
17348 "L<readline(3)/INITIALIZATION FILE>."
17349 msgstr ""
17350
17351 # type: textblock
17352 #: ../fish/guestfish.pod:958
17353 msgid "To write rules which only apply to guestfish, use:"
17354 msgstr ""
17355
17356 # type: verbatim
17357 #: ../fish/guestfish.pod:960
17358 #, no-wrap
17359 msgid ""
17360 " $if guestfish\n"
17361 " ...\n"
17362 " $endif\n"
17363 "\n"
17364 msgstr ""
17365
17366 # type: textblock
17367 #: ../fish/guestfish.pod:964
17368 msgid ""
17369 "Variables that you can set in inputrc that change the behaviour of guestfish "
17370 "in useful ways include:"
17371 msgstr ""
17372
17373 # type: =item
17374 #: ../fish/guestfish.pod:969
17375 msgid "completion-ignore-case (default: on)"
17376 msgstr ""
17377
17378 # type: textblock
17379 #: ../fish/guestfish.pod:971
17380 msgid ""
17381 "By default, guestfish will ignore case when tab-completing paths on the "
17382 "disk.  Use:"
17383 msgstr ""
17384
17385 # type: verbatim
17386 #: ../fish/guestfish.pod:974
17387 #, no-wrap
17388 msgid ""
17389 " set completion-ignore-case off\n"
17390 "\n"
17391 msgstr ""
17392
17393 # type: textblock
17394 #: ../fish/guestfish.pod:976
17395 msgid "to make guestfish case sensitive."
17396 msgstr ""
17397
17398 # type: =item
17399 #: ../fish/guestfish.pod:980
17400 msgid "test1.img"
17401 msgstr ""
17402
17403 # type: =item
17404 #: ../fish/guestfish.pod:982
17405 msgid "test2.img (etc)"
17406 msgstr ""
17407
17408 # type: textblock
17409 #: ../fish/guestfish.pod:984
17410 msgid ""
17411 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17412 "will be created in the file C<test1.img> in the current directory.  The "
17413 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17414 "the same name will be overwritten."
17415 msgstr ""
17416
17417 # type: textblock
17418 #: ../fish/guestfish.pod:993
17419 msgid ""
17420 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17421 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17422 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17423 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17424 msgstr ""
17425
17426 # type: textblock
17427 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:234 ../inspector/virt-inspector.pl:598 ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518 ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251 ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206 ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
17428 msgid ""
17429 "This program is free software; you can redistribute it and/or modify it "
17430 "under the terms of the GNU General Public License as published by the Free "
17431 "Software Foundation; either version 2 of the License, or (at your option) "
17432 "any later version."
17433 msgstr ""
17434
17435 # type: textblock
17436 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:239 ../inspector/virt-inspector.pl:603 ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523 ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256 ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211 ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
17437 msgid ""
17438 "This program is distributed in the hope that it will be useful, but WITHOUT "
17439 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17440 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17441 "more details."
17442 msgstr ""
17443
17444 # type: textblock
17445 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:608 ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528 ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261 ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216 ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
17446 msgid ""
17447 "You should have received a copy of the GNU General Public License along with "
17448 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17449 "Ave, Cambridge, MA 02139, USA."
17450 msgstr ""
17451
17452 # type: =head2
17453 #: ../fish/guestfish-actions.pod:1
17454 msgid "add-cdrom"
17455 msgstr ""
17456
17457 # type: verbatim
17458 #: ../fish/guestfish-actions.pod:3
17459 #, no-wrap
17460 msgid ""
17461 " add-cdrom filename\n"
17462 "\n"
17463 msgstr ""
17464
17465 # type: textblock
17466 #: ../fish/guestfish-actions.pod:15
17467 msgid ""
17468 "This call checks for the existence of C<filename>.  This stops you from "
17469 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17470 "and C<http:> URLs.  To specify those, use the general L</config> call "
17471 "instead."
17472 msgstr ""
17473
17474 # type: textblock
17475 #: ../fish/guestfish-actions.pod:22
17476 msgid ""
17477 "If you just want to add an ISO file (often you use this as an efficient way "
17478 "to transfer large files into the guest), then you should probably use "
17479 "L</add-drive-ro> instead."
17480 msgstr ""
17481
17482 # type: =head2
17483 #: ../fish/guestfish-actions.pod:35
17484 msgid "add-drive"
17485 msgstr ""
17486
17487 # type: verbatim
17488 #: ../fish/guestfish-actions.pod:37
17489 #, no-wrap
17490 msgid ""
17491 " add-drive filename\n"
17492 "\n"
17493 msgstr ""
17494
17495 # type: textblock
17496 #: ../fish/guestfish-actions.pod:39
17497 msgid ""
17498 "This function is the equivalent of calling L</add-drive-opts> with no "
17499 "optional parameters, so the disk is added writable, with the format being "
17500 "detected automatically."
17501 msgstr ""
17502
17503 # type: textblock
17504 #: ../fish/guestfish-actions.pod:43
17505 msgid ""
17506 "Automatic detection of the format opens you up to a potential security hole "
17507 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17508 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17509 "you should think about replacing calls to this function with calls to "
17510 "L</add-drive-opts>, and specifying the format."
17511 msgstr ""
17512
17513 # type: =head2
17514 #: ../fish/guestfish-actions.pod:50
17515 msgid "add-drive-opts"
17516 msgstr ""
17517
17518 # type: =head2
17519 #: ../fish/guestfish-actions.pod:52
17520 msgid "add"
17521 msgstr ""
17522
17523 # type: verbatim
17524 #: ../fish/guestfish-actions.pod:54
17525 #, no-wrap
17526 msgid ""
17527 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17528 "\n"
17529 msgstr ""
17530
17531 # type: textblock
17532 #: ../fish/guestfish-actions.pod:81
17533 msgid ""
17534 "This forces the image format.  If you omit this (or use L</add-drive> or "
17535 "L</add-drive-ro>) then the format is automatically detected.  Possible "
17536 "formats include C<raw> and C<qcow2>."
17537 msgstr ""
17538
17539 # type: textblock
17540 #: ../fish/guestfish-actions.pod:92
17541 msgid ""
17542 "This rarely-used option lets you emulate the behaviour of the deprecated "
17543 "L</add-drive-with-if> call (q.v.)"
17544 msgstr ""
17545
17546 # type: textblock
17547 #: ../fish/guestfish-actions.pod:97
17548 msgid ""
17549 "This command has one or more optional arguments.  See L</OPTIONAL "
17550 "ARGUMENTS>."
17551 msgstr ""
17552
17553 # type: =head2
17554 #: ../fish/guestfish-actions.pod:99
17555 msgid "add-drive-ro"
17556 msgstr ""
17557
17558 # type: =head2
17559 #: ../fish/guestfish-actions.pod:101
17560 msgid "add-ro"
17561 msgstr ""
17562
17563 # type: verbatim
17564 #: ../fish/guestfish-actions.pod:103
17565 #, no-wrap
17566 msgid ""
17567 " add-drive-ro filename\n"
17568 "\n"
17569 msgstr ""
17570
17571 # type: textblock
17572 #: ../fish/guestfish-actions.pod:105
17573 msgid ""
17574 "This function is the equivalent of calling L</add-drive-opts> with the "
17575 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17576 "is added read-only, with the format being detected automatically."
17577 msgstr ""
17578
17579 # type: =head2
17580 #: ../fish/guestfish-actions.pod:110
17581 msgid "add-drive-ro-with-if"
17582 msgstr ""
17583
17584 # type: verbatim
17585 #: ../fish/guestfish-actions.pod:112
17586 #, no-wrap
17587 msgid ""
17588 " add-drive-ro-with-if filename iface\n"
17589 "\n"
17590 msgstr ""
17591
17592 # type: textblock
17593 #: ../fish/guestfish-actions.pod:114
17594 msgid ""
17595 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17596 "interface emulation to use at run time."
17597 msgstr ""
17598
17599 # type: =head2
17600 #: ../fish/guestfish-actions.pod:124
17601 msgid "add-drive-with-if"
17602 msgstr ""
17603
17604 # type: verbatim
17605 #: ../fish/guestfish-actions.pod:126
17606 #, no-wrap
17607 msgid ""
17608 " add-drive-with-if filename iface\n"
17609 "\n"
17610 msgstr ""
17611
17612 # type: textblock
17613 #: ../fish/guestfish-actions.pod:128
17614 msgid ""
17615 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17616 "interface emulation to use at run time."
17617 msgstr ""
17618
17619 # type: =head2
17620 #: ../fish/guestfish-actions.pod:138
17621 msgid "aug-clear"
17622 msgstr ""
17623
17624 # type: verbatim
17625 #: ../fish/guestfish-actions.pod:140
17626 #, no-wrap
17627 msgid ""
17628 " aug-clear augpath\n"
17629 "\n"
17630 msgstr ""
17631
17632 # type: =head2
17633 #: ../fish/guestfish-actions.pod:145
17634 msgid "aug-close"
17635 msgstr ""
17636
17637 # type: verbatim
17638 #: ../fish/guestfish-actions.pod:147
17639 #, no-wrap
17640 msgid ""
17641 " aug-close\n"
17642 "\n"
17643 msgstr ""
17644
17645 # type: textblock
17646 #: ../fish/guestfish-actions.pod:149
17647 msgid ""
17648 "Close the current Augeas handle and free up any resources used by it.  After "
17649 "calling this, you have to call L</aug-init> again before you can use any "
17650 "other Augeas functions."
17651 msgstr ""
17652
17653 # type: =head2
17654 #: ../fish/guestfish-actions.pod:154
17655 msgid "aug-defnode"
17656 msgstr ""
17657
17658 # type: verbatim
17659 #: ../fish/guestfish-actions.pod:156
17660 #, no-wrap
17661 msgid ""
17662 " aug-defnode name expr val\n"
17663 "\n"
17664 msgstr ""
17665
17666 # type: textblock
17667 #: ../fish/guestfish-actions.pod:161
17668 msgid ""
17669 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17670 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17671 "containing that single node."
17672 msgstr ""
17673
17674 # type: =head2
17675 #: ../fish/guestfish-actions.pod:169
17676 msgid "aug-defvar"
17677 msgstr ""
17678
17679 # type: verbatim
17680 #: ../fish/guestfish-actions.pod:171
17681 #, no-wrap
17682 msgid ""
17683 " aug-defvar name expr\n"
17684 "\n"
17685 msgstr ""
17686
17687 # type: =head2
17688 #: ../fish/guestfish-actions.pod:180
17689 msgid "aug-get"
17690 msgstr ""
17691
17692 # type: verbatim
17693 #: ../fish/guestfish-actions.pod:182
17694 #, no-wrap
17695 msgid ""
17696 " aug-get augpath\n"
17697 "\n"
17698 msgstr ""
17699
17700 # type: =head2
17701 #: ../fish/guestfish-actions.pod:187
17702 msgid "aug-init"
17703 msgstr ""
17704
17705 # type: verbatim
17706 #: ../fish/guestfish-actions.pod:189
17707 #, no-wrap
17708 msgid ""
17709 " aug-init root flags\n"
17710 "\n"
17711 msgstr ""
17712
17713 # type: textblock
17714 #: ../fish/guestfish-actions.pod:195
17715 msgid "You must call this before using any other L</aug-*> commands."
17716 msgstr ""
17717
17718 # type: textblock
17719 #: ../fish/guestfish-actions.pod:230
17720 msgid "Do not load the tree in L</aug-init>."
17721 msgstr ""
17722
17723 # type: textblock
17724 #: ../fish/guestfish-actions.pod:234
17725 msgid "To close the handle, you can call L</aug-close>."
17726 msgstr ""
17727
17728 # type: =head2
17729 #: ../fish/guestfish-actions.pod:238
17730 msgid "aug-insert"
17731 msgstr ""
17732
17733 # type: verbatim
17734 #: ../fish/guestfish-actions.pod:240
17735 #, no-wrap
17736 msgid ""
17737 " aug-insert augpath label true|false\n"
17738 "\n"
17739 msgstr ""
17740
17741 # type: =head2
17742 #: ../fish/guestfish-actions.pod:250
17743 msgid "aug-load"
17744 msgstr ""
17745
17746 # type: verbatim
17747 #: ../fish/guestfish-actions.pod:252
17748 #, no-wrap
17749 msgid ""
17750 " aug-load\n"
17751 "\n"
17752 msgstr ""
17753
17754 # type: =head2
17755 #: ../fish/guestfish-actions.pod:259
17756 msgid "aug-ls"
17757 msgstr ""
17758
17759 # type: verbatim
17760 #: ../fish/guestfish-actions.pod:261
17761 #, no-wrap
17762 msgid ""
17763 " aug-ls augpath\n"
17764 "\n"
17765 msgstr ""
17766
17767 # type: textblock
17768 #: ../fish/guestfish-actions.pod:263
17769 msgid ""
17770 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17771 "resulting nodes into alphabetical order."
17772 msgstr ""
17773
17774 # type: =head2
17775 #: ../fish/guestfish-actions.pod:266
17776 msgid "aug-match"
17777 msgstr ""
17778
17779 # type: verbatim
17780 #: ../fish/guestfish-actions.pod:268
17781 #, no-wrap
17782 msgid ""
17783 " aug-match augpath\n"
17784 "\n"
17785 msgstr ""
17786
17787 # type: =head2
17788 #: ../fish/guestfish-actions.pod:274
17789 msgid "aug-mv"
17790 msgstr ""
17791
17792 # type: verbatim
17793 #: ../fish/guestfish-actions.pod:276
17794 #, no-wrap
17795 msgid ""
17796 " aug-mv src dest\n"
17797 "\n"
17798 msgstr ""
17799
17800 # type: =head2
17801 #: ../fish/guestfish-actions.pod:281
17802 msgid "aug-rm"
17803 msgstr ""
17804
17805 # type: verbatim
17806 #: ../fish/guestfish-actions.pod:283
17807 #, no-wrap
17808 msgid ""
17809 " aug-rm augpath\n"
17810 "\n"
17811 msgstr ""
17812
17813 # type: =head2
17814 #: ../fish/guestfish-actions.pod:289
17815 msgid "aug-save"
17816 msgstr ""
17817
17818 # type: verbatim
17819 #: ../fish/guestfish-actions.pod:291
17820 #, no-wrap
17821 msgid ""
17822 " aug-save\n"
17823 "\n"
17824 msgstr ""
17825
17826 # type: textblock
17827 #: ../fish/guestfish-actions.pod:295
17828 msgid ""
17829 "The flags which were passed to L</aug-init> affect exactly how files are "
17830 "saved."
17831 msgstr ""
17832
17833 # type: =head2
17834 #: ../fish/guestfish-actions.pod:298
17835 msgid "aug-set"
17836 msgstr ""
17837
17838 # type: verbatim
17839 #: ../fish/guestfish-actions.pod:300
17840 #, no-wrap
17841 msgid ""
17842 " aug-set augpath val\n"
17843 "\n"
17844 msgstr ""
17845
17846 # type: textblock
17847 #: ../fish/guestfish-actions.pod:304
17848 msgid ""
17849 "In the Augeas API, it is possible to clear a node by setting the value to "
17850 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17851 "this call.  Instead you must use the L</aug-clear> call."
17852 msgstr ""
17853
17854 # type: =head2
17855 #: ../fish/guestfish-actions.pod:309
17856 msgid "available"
17857 msgstr ""
17858
17859 # type: verbatim
17860 #: ../fish/guestfish-actions.pod:311
17861 #, no-wrap
17862 msgid ""
17863 " available 'groups ...'\n"
17864 "\n"
17865 msgstr ""
17866
17867 # type: textblock
17868 #: ../fish/guestfish-actions.pod:317
17869 msgid ""
17870 "The libguestfs groups, and the functions that those groups correspond to, "
17871 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17872 "runtime by calling L</available-all-groups>."
17873 msgstr ""
17874
17875 # type: textblock
17876 #: ../fish/guestfish-actions.pod:341
17877 msgid "You must call L</launch> before calling this function."
17878 msgstr ""
17879
17880 # type: textblock
17881 #: ../fish/guestfish-actions.pod:363
17882 msgid ""
17883 "This call was added in version C<1.0.80>.  In previous versions of "
17884 "libguestfs all you could do would be to speculatively execute a command to "
17885 "find out if the daemon implemented it.  See also L</version>."
17886 msgstr ""
17887
17888 # type: =head2
17889 #: ../fish/guestfish-actions.pod:370
17890 msgid "available-all-groups"
17891 msgstr ""
17892
17893 # type: verbatim
17894 #: ../fish/guestfish-actions.pod:372
17895 #, no-wrap
17896 msgid ""
17897 " available-all-groups\n"
17898 "\n"
17899 msgstr ""
17900
17901 # type: textblock
17902 #: ../fish/guestfish-actions.pod:374
17903 msgid ""
17904 "This command returns a list of all optional groups that this daemon knows "
17905 "about.  Note this returns both supported and unsupported groups.  To find "
17906 "out which ones the daemon can actually support you have to call "
17907 "L</available> on each member of the returned list."
17908 msgstr ""
17909
17910 # type: textblock
17911 #: ../fish/guestfish-actions.pod:380
17912 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17913 msgstr ""
17914
17915 # type: =head2
17916 #: ../fish/guestfish-actions.pod:382
17917 msgid "base64-in"
17918 msgstr ""
17919
17920 # type: verbatim
17921 #: ../fish/guestfish-actions.pod:384
17922 #, no-wrap
17923 msgid ""
17924 " base64-in (base64file|-) filename\n"
17925 "\n"
17926 msgstr ""
17927
17928 # type: textblock
17929 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398 ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835 ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3932 ../fish/guestfish-actions.pod:3944 ../fish/guestfish-actions.pod:3955 ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:4018 ../fish/guestfish-actions.pod:4027 ../fish/guestfish-actions.pod:4081 ../fish/guestfish-actions.pod:4104
17930 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17931 msgstr ""
17932
17933 # type: =head2
17934 #: ../fish/guestfish-actions.pod:391
17935 msgid "base64-out"
17936 msgstr ""
17937
17938 # type: verbatim
17939 #: ../fish/guestfish-actions.pod:393
17940 #, no-wrap
17941 msgid ""
17942 " base64-out filename (base64file|-)\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: =head2
17947 #: ../fish/guestfish-actions.pod:400
17948 msgid "blockdev-flushbufs"
17949 msgstr ""
17950
17951 # type: verbatim
17952 #: ../fish/guestfish-actions.pod:402
17953 #, no-wrap
17954 msgid ""
17955 " blockdev-flushbufs device\n"
17956 "\n"
17957 msgstr ""
17958
17959 # type: =head2
17960 #: ../fish/guestfish-actions.pod:409
17961 msgid "blockdev-getbsz"
17962 msgstr ""
17963
17964 # type: verbatim
17965 #: ../fish/guestfish-actions.pod:411
17966 #, no-wrap
17967 msgid ""
17968 " blockdev-getbsz device\n"
17969 "\n"
17970 msgstr ""
17971
17972 # type: =head2
17973 #: ../fish/guestfish-actions.pod:420
17974 msgid "blockdev-getro"
17975 msgstr ""
17976
17977 # type: verbatim
17978 #: ../fish/guestfish-actions.pod:422
17979 #, no-wrap
17980 msgid ""
17981 " blockdev-getro device\n"
17982 "\n"
17983 msgstr ""
17984
17985 # type: =head2
17986 #: ../fish/guestfish-actions.pod:429
17987 msgid "blockdev-getsize64"
17988 msgstr ""
17989
17990 # type: verbatim
17991 #: ../fish/guestfish-actions.pod:431
17992 #, no-wrap
17993 msgid ""
17994 " blockdev-getsize64 device\n"
17995 "\n"
17996 msgstr ""
17997
17998 # type: textblock
17999 #: ../fish/guestfish-actions.pod:435
18000 msgid "See also L</blockdev-getsz>."
18001 msgstr ""
18002
18003 # type: =head2
18004 #: ../fish/guestfish-actions.pod:439
18005 msgid "blockdev-getss"
18006 msgstr ""
18007
18008 # type: verbatim
18009 #: ../fish/guestfish-actions.pod:441
18010 #, no-wrap
18011 msgid ""
18012 " blockdev-getss device\n"
18013 "\n"
18014 msgstr ""
18015
18016 # type: textblock
18017 #: ../fish/guestfish-actions.pod:446
18018 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18019 msgstr ""
18020
18021 # type: =head2
18022 #: ../fish/guestfish-actions.pod:451
18023 msgid "blockdev-getsz"
18024 msgstr ""
18025
18026 # type: verbatim
18027 #: ../fish/guestfish-actions.pod:453
18028 #, no-wrap
18029 msgid ""
18030 " blockdev-getsz device\n"
18031 "\n"
18032 msgstr ""
18033
18034 # type: textblock
18035 #: ../fish/guestfish-actions.pod:458
18036 msgid ""
18037 "See also L</blockdev-getss> for the real sector size of the device, and "
18038 "L</blockdev-getsize64> for the more useful I<size in bytes>."
18039 msgstr ""
18040
18041 # type: =head2
18042 #: ../fish/guestfish-actions.pod:464
18043 msgid "blockdev-rereadpt"
18044 msgstr ""
18045
18046 # type: verbatim
18047 #: ../fish/guestfish-actions.pod:466
18048 #, no-wrap
18049 msgid ""
18050 " blockdev-rereadpt device\n"
18051 "\n"
18052 msgstr ""
18053
18054 # type: =head2
18055 #: ../fish/guestfish-actions.pod:472
18056 msgid "blockdev-setbsz"
18057 msgstr ""
18058
18059 # type: verbatim
18060 #: ../fish/guestfish-actions.pod:474
18061 #, no-wrap
18062 msgid ""
18063 " blockdev-setbsz device blocksize\n"
18064 "\n"
18065 msgstr ""
18066
18067 # type: =head2
18068 #: ../fish/guestfish-actions.pod:483
18069 msgid "blockdev-setro"
18070 msgstr ""
18071
18072 # type: verbatim
18073 #: ../fish/guestfish-actions.pod:485
18074 #, no-wrap
18075 msgid ""
18076 " blockdev-setro device\n"
18077 "\n"
18078 msgstr ""
18079
18080 # type: =head2
18081 #: ../fish/guestfish-actions.pod:491
18082 msgid "blockdev-setrw"
18083 msgstr ""
18084
18085 # type: verbatim
18086 #: ../fish/guestfish-actions.pod:493
18087 #, no-wrap
18088 msgid ""
18089 " blockdev-setrw device\n"
18090 "\n"
18091 msgstr ""
18092
18093 # type: =head2
18094 #: ../fish/guestfish-actions.pod:499
18095 msgid "case-sensitive-path"
18096 msgstr ""
18097
18098 # type: verbatim
18099 #: ../fish/guestfish-actions.pod:501
18100 #, no-wrap
18101 msgid ""
18102 " case-sensitive-path path\n"
18103 "\n"
18104 msgstr ""
18105
18106 # type: textblock
18107 #: ../fish/guestfish-actions.pod:525
18108 msgid ""
18109 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
18110 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
18111 "how the directories were originally created under Windows)."
18112 msgstr ""
18113
18114 # type: textblock
18115 #: ../fish/guestfish-actions.pod:533
18116 msgid "See also L</realpath>."
18117 msgstr ""
18118
18119 # type: =head2
18120 #: ../fish/guestfish-actions.pod:535
18121 msgid "cat"
18122 msgstr ""
18123
18124 # type: verbatim
18125 #: ../fish/guestfish-actions.pod:537
18126 #, no-wrap
18127 msgid ""
18128 " cat path\n"
18129 "\n"
18130 msgstr ""
18131
18132 # type: textblock
18133 #: ../fish/guestfish-actions.pod:541
18134 msgid ""
18135 "Note that this function cannot correctly handle binary files (specifically, "
18136 "files containing C<\\0> character which is treated as end of string).  For "
18137 "those you need to use the L</read-file> or L</download> functions which have "
18138 "a more complex interface."
18139 msgstr ""
18140
18141 # type: =head2
18142 #: ../fish/guestfish-actions.pod:549
18143 msgid "checksum"
18144 msgstr ""
18145
18146 # type: verbatim
18147 #: ../fish/guestfish-actions.pod:551
18148 #, no-wrap
18149 msgid ""
18150 " checksum csumtype path\n"
18151 "\n"
18152 msgstr ""
18153
18154 # type: textblock
18155 #: ../fish/guestfish-actions.pod:594
18156 msgid "To get the checksum for a device, use L</checksum-device>."
18157 msgstr ""
18158
18159 # type: textblock
18160 #: ../fish/guestfish-actions.pod:596
18161 msgid "To get the checksums for many files, use L</checksums-out>."
18162 msgstr ""
18163
18164 # type: =head2
18165 #: ../fish/guestfish-actions.pod:598
18166 msgid "checksum-device"
18167 msgstr ""
18168
18169 # type: verbatim
18170 #: ../fish/guestfish-actions.pod:600
18171 #, no-wrap
18172 msgid ""
18173 " checksum-device csumtype device\n"
18174 "\n"
18175 msgstr ""
18176
18177 # type: textblock
18178 #: ../fish/guestfish-actions.pod:602
18179 msgid ""
18180 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18181 "device named C<device>.  For the types of checksums supported see the "
18182 "L</checksum> command."
18183 msgstr ""
18184
18185 # type: =head2
18186 #: ../fish/guestfish-actions.pod:606
18187 msgid "checksums-out"
18188 msgstr ""
18189
18190 # type: verbatim
18191 #: ../fish/guestfish-actions.pod:608
18192 #, no-wrap
18193 msgid ""
18194 " checksums-out csumtype directory (sumsfile|-)\n"
18195 "\n"
18196 msgstr ""
18197
18198 # type: =head2
18199 #: ../fish/guestfish-actions.pod:624
18200 msgid "chmod"
18201 msgstr ""
18202
18203 # type: verbatim
18204 #: ../fish/guestfish-actions.pod:626
18205 #, no-wrap
18206 msgid ""
18207 " chmod mode path\n"
18208 "\n"
18209 msgstr ""
18210
18211 # type: =head2
18212 #: ../fish/guestfish-actions.pod:637
18213 msgid "chown"
18214 msgstr ""
18215
18216 # type: verbatim
18217 #: ../fish/guestfish-actions.pod:639
18218 #, no-wrap
18219 msgid ""
18220 " chown owner group path\n"
18221 "\n"
18222 msgstr ""
18223
18224 # type: =head2
18225 #: ../fish/guestfish-actions.pod:647
18226 msgid "command"
18227 msgstr ""
18228
18229 # type: verbatim
18230 #: ../fish/guestfish-actions.pod:649
18231 #, no-wrap
18232 msgid ""
18233 " command 'arguments ...'\n"
18234 "\n"
18235 msgstr ""
18236
18237 # type: textblock
18238 #: ../fish/guestfish-actions.pod:656
18239 msgid ""
18240 "The single parameter is an argv-style list of arguments.  The first element "
18241 "is the name of the program to run.  Subsequent elements are parameters.  The "
18242 "list must be non-empty (ie. must contain a program name).  Note that the "
18243 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18244 msgstr ""
18245
18246 # type: =head2
18247 #: ../fish/guestfish-actions.pod:684
18248 msgid "command-lines"
18249 msgstr ""
18250
18251 # type: verbatim
18252 #: ../fish/guestfish-actions.pod:686
18253 #, no-wrap
18254 msgid ""
18255 " command-lines 'arguments ...'\n"
18256 "\n"
18257 msgstr ""
18258
18259 # type: textblock
18260 #: ../fish/guestfish-actions.pod:688
18261 msgid "This is the same as L</command>, but splits the result into a list of lines."
18262 msgstr ""
18263
18264 # type: textblock
18265 #: ../fish/guestfish-actions.pod:691
18266 msgid "See also: L</sh-lines>"
18267 msgstr ""
18268
18269 # type: =head2
18270 #: ../fish/guestfish-actions.pod:696
18271 msgid "config"
18272 msgstr ""
18273
18274 # type: verbatim
18275 #: ../fish/guestfish-actions.pod:698
18276 #, no-wrap
18277 msgid ""
18278 " config qemuparam qemuvalue\n"
18279 "\n"
18280 msgstr ""
18281
18282 # type: =head2
18283 #: ../fish/guestfish-actions.pod:709
18284 msgid "copy-size"
18285 msgstr ""
18286
18287 # type: verbatim
18288 #: ../fish/guestfish-actions.pod:711
18289 #, no-wrap
18290 msgid ""
18291 " copy-size src dest size\n"
18292 "\n"
18293 msgstr ""
18294
18295 # type: =head2
18296 #: ../fish/guestfish-actions.pod:719
18297 msgid "cp"
18298 msgstr ""
18299
18300 # type: verbatim
18301 #: ../fish/guestfish-actions.pod:721
18302 #, no-wrap
18303 msgid ""
18304 " cp src dest\n"
18305 "\n"
18306 msgstr ""
18307
18308 # type: =head2
18309 #: ../fish/guestfish-actions.pod:726
18310 msgid "cp-a"
18311 msgstr ""
18312
18313 # type: verbatim
18314 #: ../fish/guestfish-actions.pod:728
18315 #, no-wrap
18316 msgid ""
18317 " cp-a src dest\n"
18318 "\n"
18319 msgstr ""
18320
18321 # type: =head2
18322 #: ../fish/guestfish-actions.pod:733
18323 msgid "dd"
18324 msgstr ""
18325
18326 # type: verbatim
18327 #: ../fish/guestfish-actions.pod:735
18328 #, no-wrap
18329 msgid ""
18330 " dd src dest\n"
18331 "\n"
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish-actions.pod:742
18336 msgid ""
18337 "If the destination is a device, it must be as large or larger than the "
18338 "source file or device, otherwise the copy will fail.  This command cannot do "
18339 "partial copies (see L</copy-size>)."
18340 msgstr ""
18341
18342 # type: =head2
18343 #: ../fish/guestfish-actions.pod:746
18344 msgid "debug"
18345 msgstr ""
18346
18347 # type: verbatim
18348 #: ../fish/guestfish-actions.pod:748
18349 #, no-wrap
18350 msgid ""
18351 " debug subcmd 'extraargs ...'\n"
18352 "\n"
18353 msgstr ""
18354
18355 # type: textblock
18356 #: ../fish/guestfish-actions.pod:750
18357 msgid ""
18358 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18359 "daemon) that runs inside the qemu subprocess."
18360 msgstr ""
18361
18362 # type: =head2
18363 #: ../fish/guestfish-actions.pod:758
18364 msgid "debug-upload"
18365 msgstr ""
18366
18367 # type: verbatim
18368 #: ../fish/guestfish-actions.pod:760
18369 #, no-wrap
18370 msgid ""
18371 " debug-upload (filename|-) tmpname mode\n"
18372 "\n"
18373 msgstr ""
18374
18375 # type: textblock
18376 #: ../fish/guestfish-actions.pod:762
18377 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
18378 msgstr ""
18379
18380 # type: =head2
18381 #: ../fish/guestfish-actions.pod:771
18382 msgid "df"
18383 msgstr ""
18384
18385 # type: verbatim
18386 #: ../fish/guestfish-actions.pod:773
18387 #, no-wrap
18388 msgid ""
18389 " df\n"
18390 "\n"
18391 msgstr ""
18392
18393 # type: =head2
18394 #: ../fish/guestfish-actions.pod:781
18395 msgid "df-h"
18396 msgstr ""
18397
18398 # type: verbatim
18399 #: ../fish/guestfish-actions.pod:783
18400 #, no-wrap
18401 msgid ""
18402 " df-h\n"
18403 "\n"
18404 msgstr ""
18405
18406 # type: =head2
18407 #: ../fish/guestfish-actions.pod:792
18408 msgid "dmesg"
18409 msgstr ""
18410
18411 # type: verbatim
18412 #: ../fish/guestfish-actions.pod:794
18413 #, no-wrap
18414 msgid ""
18415 " dmesg\n"
18416 "\n"
18417 msgstr ""
18418
18419 # type: textblock
18420 #: ../fish/guestfish-actions.pod:800
18421 msgid ""
18422 "Another way to get the same information is to enable verbose messages with "
18423 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18424 "before running the program."
18425 msgstr ""
18426
18427 # type: =head2
18428 #: ../fish/guestfish-actions.pod:805
18429 msgid "download"
18430 msgstr ""
18431
18432 # type: verbatim
18433 #: ../fish/guestfish-actions.pod:807
18434 #, no-wrap
18435 msgid ""
18436 " download remotefilename (filename|-)\n"
18437 "\n"
18438 msgstr ""
18439
18440 # type: textblock
18441 #: ../fish/guestfish-actions.pod:814
18442 msgid "See also L</upload>, L</cat>."
18443 msgstr ""
18444
18445 # type: =head2
18446 #: ../fish/guestfish-actions.pod:818
18447 msgid "download-offset"
18448 msgstr ""
18449
18450 # type: verbatim
18451 #: ../fish/guestfish-actions.pod:820
18452 #, no-wrap
18453 msgid ""
18454 " download-offset remotefilename (filename|-) offset size\n"
18455 "\n"
18456 msgstr ""
18457
18458 # type: textblock
18459 #: ../fish/guestfish-actions.pod:828
18460 msgid ""
18461 "Note that there is no limit on the amount of data that can be downloaded "
18462 "with this call, unlike with L</pread>, and this call always reads the full "
18463 "amount unless an error occurs."
18464 msgstr ""
18465
18466 # type: textblock
18467 #: ../fish/guestfish-actions.pod:833
18468 msgid "See also L</download>, L</pread>."
18469 msgstr ""
18470
18471 # type: =head2
18472 #: ../fish/guestfish-actions.pod:837
18473 msgid "drop-caches"
18474 msgstr ""
18475
18476 # type: verbatim
18477 #: ../fish/guestfish-actions.pod:839
18478 #, no-wrap
18479 msgid ""
18480 " drop-caches whattodrop\n"
18481 "\n"
18482 msgstr ""
18483
18484 # type: =head2
18485 #: ../fish/guestfish-actions.pod:851
18486 msgid "du"
18487 msgstr ""
18488
18489 # type: verbatim
18490 #: ../fish/guestfish-actions.pod:853
18491 #, no-wrap
18492 msgid ""
18493 " du path\n"
18494 "\n"
18495 msgstr ""
18496
18497 # type: =head2
18498 #: ../fish/guestfish-actions.pod:865
18499 msgid "e2fsck-f"
18500 msgstr ""
18501
18502 # type: verbatim
18503 #: ../fish/guestfish-actions.pod:867
18504 #, no-wrap
18505 msgid ""
18506 " e2fsck-f device\n"
18507 "\n"
18508 msgstr ""
18509
18510 # type: textblock
18511 #: ../fish/guestfish-actions.pod:873
18512 msgid ""
18513 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18514 "should use L</fsck>."
18515 msgstr ""
18516
18517 # type: =head2
18518 #: ../fish/guestfish-actions.pod:876
18519 msgid "echo-daemon"
18520 msgstr ""
18521
18522 # type: verbatim
18523 #: ../fish/guestfish-actions.pod:878
18524 #, no-wrap
18525 msgid ""
18526 " echo-daemon 'words ...'\n"
18527 "\n"
18528 msgstr ""
18529
18530 # type: textblock
18531 #: ../fish/guestfish-actions.pod:885
18532 msgid "See also L</ping-daemon>."
18533 msgstr ""
18534
18535 # type: =head2
18536 #: ../fish/guestfish-actions.pod:887
18537 msgid "egrep"
18538 msgstr ""
18539
18540 # type: verbatim
18541 #: ../fish/guestfish-actions.pod:889
18542 #, no-wrap
18543 msgid ""
18544 " egrep regex path\n"
18545 "\n"
18546 msgstr ""
18547
18548 # type: =head2
18549 #: ../fish/guestfish-actions.pod:897
18550 msgid "egrepi"
18551 msgstr ""
18552
18553 # type: verbatim
18554 #: ../fish/guestfish-actions.pod:899
18555 #, no-wrap
18556 msgid ""
18557 " egrepi regex path\n"
18558 "\n"
18559 msgstr ""
18560
18561 # type: =head2
18562 #: ../fish/guestfish-actions.pod:907
18563 msgid "equal"
18564 msgstr ""
18565
18566 # type: verbatim
18567 #: ../fish/guestfish-actions.pod:909
18568 #, no-wrap
18569 msgid ""
18570 " equal file1 file2\n"
18571 "\n"
18572 msgstr ""
18573
18574 # type: =head2
18575 #: ../fish/guestfish-actions.pod:916
18576 msgid "exists"
18577 msgstr ""
18578
18579 # type: verbatim
18580 #: ../fish/guestfish-actions.pod:918
18581 #, no-wrap
18582 msgid ""
18583 " exists path\n"
18584 "\n"
18585 msgstr ""
18586
18587 # type: textblock
18588 #: ../fish/guestfish-actions.pod:923
18589 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18590 msgstr ""
18591
18592 # type: =head2
18593 #: ../fish/guestfish-actions.pod:925
18594 msgid "fallocate"
18595 msgstr ""
18596
18597 # type: verbatim
18598 #: ../fish/guestfish-actions.pod:927
18599 #, no-wrap
18600 msgid ""
18601 " fallocate path len\n"
18602 "\n"
18603 msgstr ""
18604
18605 # type: =head2
18606 #: ../fish/guestfish-actions.pod:944
18607 msgid "fallocate64"
18608 msgstr ""
18609
18610 # type: verbatim
18611 #: ../fish/guestfish-actions.pod:946
18612 #, no-wrap
18613 msgid ""
18614 " fallocate64 path len\n"
18615 "\n"
18616 msgstr ""
18617
18618 # type: textblock
18619 #: ../fish/guestfish-actions.pod:952
18620 msgid ""
18621 "Note that this call allocates disk blocks for the file.  To create a sparse "
18622 "file use L</truncate-size> instead."
18623 msgstr ""
18624
18625 # type: textblock
18626 #: ../fish/guestfish-actions.pod:955
18627 msgid ""
18628 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18629 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18630 "maximum size of files created through that call to 1GB."
18631 msgstr ""
18632
18633 # type: =head2
18634 #: ../fish/guestfish-actions.pod:964
18635 msgid "fgrep"
18636 msgstr ""
18637
18638 # type: verbatim
18639 #: ../fish/guestfish-actions.pod:966
18640 #, no-wrap
18641 msgid ""
18642 " fgrep pattern path\n"
18643 "\n"
18644 msgstr ""
18645
18646 # type: =head2
18647 #: ../fish/guestfish-actions.pod:974
18648 msgid "fgrepi"
18649 msgstr ""
18650
18651 # type: verbatim
18652 #: ../fish/guestfish-actions.pod:976
18653 #, no-wrap
18654 msgid ""
18655 " fgrepi pattern path\n"
18656 "\n"
18657 msgstr ""
18658
18659 # type: =head2
18660 #: ../fish/guestfish-actions.pod:984
18661 msgid "file"
18662 msgstr ""
18663
18664 # type: verbatim
18665 #: ../fish/guestfish-actions.pod:986
18666 #, no-wrap
18667 msgid ""
18668 " file path\n"
18669 "\n"
18670 msgstr ""
18671
18672 # type: textblock
18673 #: ../fish/guestfish-actions.pod:998
18674 msgid ""
18675 "This command can also be used on C</dev/> devices (and partitions, LV "
18676 "names).  You can for example use this to determine if a device contains a "
18677 "filesystem, although it's usually better to use L</vfs-type>."
18678 msgstr ""
18679
18680 # type: =head2
18681 #: ../fish/guestfish-actions.pod:1008
18682 msgid "file-architecture"
18683 msgstr ""
18684
18685 # type: verbatim
18686 #: ../fish/guestfish-actions.pod:1010
18687 #, no-wrap
18688 msgid ""
18689 " file-architecture filename\n"
18690 "\n"
18691 msgstr ""
18692
18693 # type: =head2
18694 #: ../fish/guestfish-actions.pod:1113
18695 msgid "filesize"
18696 msgstr ""
18697
18698 # type: verbatim
18699 #: ../fish/guestfish-actions.pod:1115
18700 #, no-wrap
18701 msgid ""
18702 " filesize file\n"
18703 "\n"
18704 msgstr ""
18705
18706 # type: textblock
18707 #: ../fish/guestfish-actions.pod:1119
18708 msgid ""
18709 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
18710 "L</is-file> etc.  To get the size of block devices, use "
18711 "L</blockdev-getsize64>."
18712 msgstr ""
18713
18714 # type: =head2
18715 #: ../fish/guestfish-actions.pod:1123
18716 msgid "fill"
18717 msgstr ""
18718
18719 # type: verbatim
18720 #: ../fish/guestfish-actions.pod:1125
18721 #, no-wrap
18722 msgid ""
18723 " fill c len path\n"
18724 "\n"
18725 msgstr ""
18726
18727 # type: textblock
18728 #: ../fish/guestfish-actions.pod:1131
18729 msgid ""
18730 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18731 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18732 "L</fill-pattern>."
18733 msgstr ""
18734
18735 # type: =head2
18736 #: ../fish/guestfish-actions.pod:1136
18737 msgid "fill-pattern"
18738 msgstr ""
18739
18740 # type: verbatim
18741 #: ../fish/guestfish-actions.pod:1138
18742 #, no-wrap
18743 msgid ""
18744 " fill-pattern pattern len path\n"
18745 "\n"
18746 msgstr ""
18747
18748 # type: textblock
18749 #: ../fish/guestfish-actions.pod:1140
18750 msgid ""
18751 "This function is like L</fill> except that it creates a new file of length "
18752 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18753 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18754 "bytes."
18755 msgstr ""
18756
18757 # type: =head2
18758 #: ../fish/guestfish-actions.pod:1145
18759 msgid "find"
18760 msgstr ""
18761
18762 # type: verbatim
18763 #: ../fish/guestfish-actions.pod:1147
18764 #, no-wrap
18765 msgid ""
18766 " find directory\n"
18767 "\n"
18768 msgstr ""
18769
18770 # type: textblock
18771 #: ../fish/guestfish-actions.pod:1161
18772 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18773 msgstr ""
18774
18775 # type: textblock
18776 #: ../fish/guestfish-actions.pod:1174
18777 msgid "See also L</find0>."
18778 msgstr ""
18779
18780 # type: =head2
18781 #: ../fish/guestfish-actions.pod:1179
18782 msgid "find0"
18783 msgstr ""
18784
18785 # type: verbatim
18786 #: ../fish/guestfish-actions.pod:1181
18787 #, no-wrap
18788 msgid ""
18789 " find0 directory (files|-)\n"
18790 "\n"
18791 msgstr ""
18792
18793 # type: textblock
18794 #: ../fish/guestfish-actions.pod:1187
18795 msgid "This command works the same way as L</find> with the following exceptions:"
18796 msgstr ""
18797
18798 # type: =head2
18799 #: ../fish/guestfish-actions.pod:1214
18800 msgid "findfs-label"
18801 msgstr ""
18802
18803 # type: verbatim
18804 #: ../fish/guestfish-actions.pod:1216
18805 #, no-wrap
18806 msgid ""
18807 " findfs-label label\n"
18808 "\n"
18809 msgstr ""
18810
18811 # type: textblock
18812 #: ../fish/guestfish-actions.pod:1222
18813 msgid "To find the label of a filesystem, use L</vfs-label>."
18814 msgstr ""
18815
18816 # type: =head2
18817 #: ../fish/guestfish-actions.pod:1224
18818 msgid "findfs-uuid"
18819 msgstr ""
18820
18821 # type: verbatim
18822 #: ../fish/guestfish-actions.pod:1226
18823 #, no-wrap
18824 msgid ""
18825 " findfs-uuid uuid\n"
18826 "\n"
18827 msgstr ""
18828
18829 # type: textblock
18830 #: ../fish/guestfish-actions.pod:1232
18831 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18832 msgstr ""
18833
18834 # type: =head2
18835 #: ../fish/guestfish-actions.pod:1234
18836 msgid "fsck"
18837 msgstr ""
18838
18839 # type: verbatim
18840 #: ../fish/guestfish-actions.pod:1236
18841 #, no-wrap
18842 msgid ""
18843 " fsck fstype device\n"
18844 "\n"
18845 msgstr ""
18846
18847 # type: =head2
18848 #: ../fish/guestfish-actions.pod:1266
18849 msgid "get-append"
18850 msgstr ""
18851
18852 # type: verbatim
18853 #: ../fish/guestfish-actions.pod:1268
18854 #, no-wrap
18855 msgid ""
18856 " get-append\n"
18857 "\n"
18858 msgstr ""
18859
18860 # type: =head2
18861 #: ../fish/guestfish-actions.pod:1275
18862 msgid "get-autosync"
18863 msgstr ""
18864
18865 # type: verbatim
18866 #: ../fish/guestfish-actions.pod:1277
18867 #, no-wrap
18868 msgid ""
18869 " get-autosync\n"
18870 "\n"
18871 msgstr ""
18872
18873 # type: =head2
18874 #: ../fish/guestfish-actions.pod:1281
18875 msgid "get-direct"
18876 msgstr ""
18877
18878 # type: verbatim
18879 #: ../fish/guestfish-actions.pod:1283
18880 #, no-wrap
18881 msgid ""
18882 " get-direct\n"
18883 "\n"
18884 msgstr ""
18885
18886 # type: =head2
18887 #: ../fish/guestfish-actions.pod:1287
18888 msgid "get-e2label"
18889 msgstr ""
18890
18891 # type: verbatim
18892 #: ../fish/guestfish-actions.pod:1289
18893 #, no-wrap
18894 msgid ""
18895 " get-e2label device\n"
18896 "\n"
18897 msgstr ""
18898
18899 # type: =head2
18900 #: ../fish/guestfish-actions.pod:1301
18901 msgid "get-e2uuid"
18902 msgstr ""
18903
18904 # type: verbatim
18905 #: ../fish/guestfish-actions.pod:1303
18906 #, no-wrap
18907 msgid ""
18908 " get-e2uuid device\n"
18909 "\n"
18910 msgstr ""
18911
18912 # type: =head2
18913 #: ../fish/guestfish-actions.pod:1315
18914 msgid "get-memsize"
18915 msgstr ""
18916
18917 # type: verbatim
18918 #: ../fish/guestfish-actions.pod:1317
18919 #, no-wrap
18920 msgid ""
18921 " get-memsize\n"
18922 "\n"
18923 msgstr ""
18924
18925 # type: textblock
18926 #: ../fish/guestfish-actions.pod:1322
18927 msgid ""
18928 "If L</set-memsize> was not called on this handle, and if "
18929 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18930 "value for memsize."
18931 msgstr ""
18932
18933 # type: =head2
18934 #: ../fish/guestfish-actions.pod:1329
18935 msgid "get-network"
18936 msgstr ""
18937
18938 # type: verbatim
18939 #: ../fish/guestfish-actions.pod:1331
18940 #, no-wrap
18941 msgid ""
18942 " get-network\n"
18943 "\n"
18944 msgstr ""
18945
18946 # type: =head2
18947 #: ../fish/guestfish-actions.pod:1335
18948 msgid "get-path"
18949 msgstr ""
18950
18951 # type: verbatim
18952 #: ../fish/guestfish-actions.pod:1337
18953 #, no-wrap
18954 msgid ""
18955 " get-path\n"
18956 "\n"
18957 msgstr ""
18958
18959 # type: =head2
18960 #: ../fish/guestfish-actions.pod:1344
18961 msgid "get-pid"
18962 msgstr ""
18963
18964 # type: =head2
18965 #: ../fish/guestfish-actions.pod:1346
18966 msgid "pid"
18967 msgstr ""
18968
18969 # type: verbatim
18970 #: ../fish/guestfish-actions.pod:1348
18971 #, no-wrap
18972 msgid ""
18973 " get-pid\n"
18974 "\n"
18975 msgstr ""
18976
18977 # type: =head2
18978 #: ../fish/guestfish-actions.pod:1355
18979 msgid "get-qemu"
18980 msgstr ""
18981
18982 # type: verbatim
18983 #: ../fish/guestfish-actions.pod:1357
18984 #, no-wrap
18985 msgid ""
18986 " get-qemu\n"
18987 "\n"
18988 msgstr ""
18989
18990 # type: =head2
18991 #: ../fish/guestfish-actions.pod:1364
18992 msgid "get-recovery-proc"
18993 msgstr ""
18994
18995 # type: verbatim
18996 #: ../fish/guestfish-actions.pod:1366
18997 #, no-wrap
18998 msgid ""
18999 " get-recovery-proc\n"
19000 "\n"
19001 msgstr ""
19002
19003 # type: =head2
19004 #: ../fish/guestfish-actions.pod:1370
19005 msgid "get-selinux"
19006 msgstr ""
19007
19008 # type: verbatim
19009 #: ../fish/guestfish-actions.pod:1372
19010 #, no-wrap
19011 msgid ""
19012 " get-selinux\n"
19013 "\n"
19014 msgstr ""
19015
19016 # type: textblock
19017 #: ../fish/guestfish-actions.pod:1374
19018 msgid ""
19019 "This returns the current setting of the selinux flag which is passed to the "
19020 "appliance at boot time.  See L</set-selinux>."
19021 msgstr ""
19022
19023 # type: =head2
19024 #: ../fish/guestfish-actions.pod:1380
19025 msgid "get-state"
19026 msgstr ""
19027
19028 # type: verbatim
19029 #: ../fish/guestfish-actions.pod:1382
19030 #, no-wrap
19031 msgid ""
19032 " get-state\n"
19033 "\n"
19034 msgstr ""
19035
19036 # type: =head2
19037 #: ../fish/guestfish-actions.pod:1389
19038 msgid "get-trace"
19039 msgstr ""
19040
19041 # type: verbatim
19042 #: ../fish/guestfish-actions.pod:1391
19043 #, no-wrap
19044 msgid ""
19045 " get-trace\n"
19046 "\n"
19047 msgstr ""
19048
19049 # type: =head2
19050 #: ../fish/guestfish-actions.pod:1395
19051 msgid "get-umask"
19052 msgstr ""
19053
19054 # type: verbatim
19055 #: ../fish/guestfish-actions.pod:1397
19056 #, no-wrap
19057 msgid ""
19058 " get-umask\n"
19059 "\n"
19060 msgstr ""
19061
19062 # type: textblock
19063 #: ../fish/guestfish-actions.pod:1399
19064 msgid ""
19065 "Return the current umask.  By default the umask is C<022> unless it has been "
19066 "set by calling L</umask>."
19067 msgstr ""
19068
19069 # type: =head2
19070 #: ../fish/guestfish-actions.pod:1402
19071 msgid "get-verbose"
19072 msgstr ""
19073
19074 # type: verbatim
19075 #: ../fish/guestfish-actions.pod:1404
19076 #, no-wrap
19077 msgid ""
19078 " get-verbose\n"
19079 "\n"
19080 msgstr ""
19081
19082 # type: =head2
19083 #: ../fish/guestfish-actions.pod:1408
19084 msgid "getcon"
19085 msgstr ""
19086
19087 # type: verbatim
19088 #: ../fish/guestfish-actions.pod:1410
19089 #, no-wrap
19090 msgid ""
19091 " getcon\n"
19092 "\n"
19093 msgstr ""
19094
19095 # type: textblock
19096 #: ../fish/guestfish-actions.pod:1414
19097 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19098 msgstr ""
19099
19100 # type: =head2
19101 #: ../fish/guestfish-actions.pod:1417
19102 msgid "getxattrs"
19103 msgstr ""
19104
19105 # type: verbatim
19106 #: ../fish/guestfish-actions.pod:1419
19107 #, no-wrap
19108 msgid ""
19109 " getxattrs path\n"
19110 "\n"
19111 msgstr ""
19112
19113 # type: textblock
19114 #: ../fish/guestfish-actions.pod:1427
19115 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19116 msgstr ""
19117
19118 # type: =head2
19119 #: ../fish/guestfish-actions.pod:1429
19120 msgid "glob-expand"
19121 msgstr ""
19122
19123 # type: verbatim
19124 #: ../fish/guestfish-actions.pod:1431
19125 #, no-wrap
19126 msgid ""
19127 " glob-expand pattern\n"
19128 "\n"
19129 msgstr ""
19130
19131 # type: =head2
19132 #: ../fish/guestfish-actions.pod:1444
19133 msgid "grep"
19134 msgstr ""
19135
19136 # type: verbatim
19137 #: ../fish/guestfish-actions.pod:1446
19138 #, no-wrap
19139 msgid ""
19140 " grep regex path\n"
19141 "\n"
19142 msgstr ""
19143
19144 # type: =head2
19145 #: ../fish/guestfish-actions.pod:1454
19146 msgid "grepi"
19147 msgstr ""
19148
19149 # type: verbatim
19150 #: ../fish/guestfish-actions.pod:1456
19151 #, no-wrap
19152 msgid ""
19153 " grepi regex path\n"
19154 "\n"
19155 msgstr ""
19156
19157 # type: =head2
19158 #: ../fish/guestfish-actions.pod:1464
19159 msgid "grub-install"
19160 msgstr ""
19161
19162 # type: verbatim
19163 #: ../fish/guestfish-actions.pod:1466
19164 #, no-wrap
19165 msgid ""
19166 " grub-install root device\n"
19167 "\n"
19168 msgstr ""
19169
19170 # type: =head2
19171 #: ../fish/guestfish-actions.pod:1482
19172 msgid "head"
19173 msgstr ""
19174
19175 # type: verbatim
19176 #: ../fish/guestfish-actions.pod:1484
19177 #, no-wrap
19178 msgid ""
19179 " head path\n"
19180 "\n"
19181 msgstr ""
19182
19183 # type: =head2
19184 #: ../fish/guestfish-actions.pod:1492
19185 msgid "head-n"
19186 msgstr ""
19187
19188 # type: verbatim
19189 #: ../fish/guestfish-actions.pod:1494
19190 #, no-wrap
19191 msgid ""
19192 " head-n nrlines path\n"
19193 "\n"
19194 msgstr ""
19195
19196 # type: =head2
19197 #: ../fish/guestfish-actions.pod:1507
19198 msgid "hexdump"
19199 msgstr ""
19200
19201 # type: verbatim
19202 #: ../fish/guestfish-actions.pod:1509
19203 #, no-wrap
19204 msgid ""
19205 " hexdump path\n"
19206 "\n"
19207 msgstr ""
19208
19209 # type: =head2
19210 #: ../fish/guestfish-actions.pod:1517
19211 msgid "initrd-cat"
19212 msgstr ""
19213
19214 # type: verbatim
19215 #: ../fish/guestfish-actions.pod:1519
19216 #, no-wrap
19217 msgid ""
19218 " initrd-cat initrdpath filename\n"
19219 "\n"
19220 msgstr ""
19221
19222 # type: textblock
19223 #: ../fish/guestfish-actions.pod:1531
19224 msgid "See also L</initrd-list>."
19225 msgstr ""
19226
19227 # type: =head2
19228 #: ../fish/guestfish-actions.pod:1536
19229 msgid "initrd-list"
19230 msgstr ""
19231
19232 # type: verbatim
19233 #: ../fish/guestfish-actions.pod:1538
19234 #, no-wrap
19235 msgid ""
19236 " initrd-list path\n"
19237 "\n"
19238 msgstr ""
19239
19240 # type: =head2
19241 #: ../fish/guestfish-actions.pod:1550
19242 msgid "inotify-add-watch"
19243 msgstr ""
19244
19245 # type: verbatim
19246 #: ../fish/guestfish-actions.pod:1552
19247 #, no-wrap
19248 msgid ""
19249 " inotify-add-watch path mask\n"
19250 "\n"
19251 msgstr ""
19252
19253 # type: =head2
19254 #: ../fish/guestfish-actions.pod:1564
19255 msgid "inotify-close"
19256 msgstr ""
19257
19258 # type: verbatim
19259 #: ../fish/guestfish-actions.pod:1566
19260 #, no-wrap
19261 msgid ""
19262 " inotify-close\n"
19263 "\n"
19264 msgstr ""
19265
19266 # type: =head2
19267 #: ../fish/guestfish-actions.pod:1572
19268 msgid "inotify-files"
19269 msgstr ""
19270
19271 # type: verbatim
19272 #: ../fish/guestfish-actions.pod:1574
19273 #, no-wrap
19274 msgid ""
19275 " inotify-files\n"
19276 "\n"
19277 msgstr ""
19278
19279 # type: textblock
19280 #: ../fish/guestfish-actions.pod:1576
19281 msgid ""
19282 "This function is a helpful wrapper around L</inotify-read> which just "
19283 "returns a list of pathnames of objects that were touched.  The returned "
19284 "pathnames are sorted and deduplicated."
19285 msgstr ""
19286
19287 # type: =head2
19288 #: ../fish/guestfish-actions.pod:1580
19289 msgid "inotify-init"
19290 msgstr ""
19291
19292 # type: verbatim
19293 #: ../fish/guestfish-actions.pod:1582
19294 #, no-wrap
19295 msgid ""
19296 " inotify-init maxevents\n"
19297 "\n"
19298 msgstr ""
19299
19300 # type: textblock
19301 #: ../fish/guestfish-actions.pod:1588
19302 msgid ""
19303 "C<maxevents> is the maximum number of events which will be queued up between "
19304 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19305 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19306 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19307 "but records the fact that it threw them away by setting a flag "
19308 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19309 msgstr ""
19310
19311 # type: textblock
19312 #: ../fish/guestfish-actions.pod:1598
19313 msgid ""
19314 "Before any events are generated, you have to add some watches to the "
19315 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19316 "L</inotify-watch-all>."
19317 msgstr ""
19318
19319 # type: textblock
19320 #: ../fish/guestfish-actions.pod:1604
19321 msgid ""
19322 "Queued up events should be read periodically by calling L</inotify-read> (or "
19323 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19324 "If you don't read the events out often enough then you risk the internal "
19325 "queue overflowing."
19326 msgstr ""
19327
19328 # type: textblock
19329 #: ../fish/guestfish-actions.pod:1611
19330 msgid ""
19331 "The handle should be closed after use by calling L</inotify-close>.  This "
19332 "also removes any watches automatically."
19333 msgstr ""
19334
19335 # type: =head2
19336 #: ../fish/guestfish-actions.pod:1620
19337 msgid "inotify-read"
19338 msgstr ""
19339
19340 # type: verbatim
19341 #: ../fish/guestfish-actions.pod:1622
19342 #, no-wrap
19343 msgid ""
19344 " inotify-read\n"
19345 "\n"
19346 msgstr ""
19347
19348 # type: =head2
19349 #: ../fish/guestfish-actions.pod:1635
19350 msgid "inotify-rm-watch"
19351 msgstr ""
19352
19353 # type: verbatim
19354 #: ../fish/guestfish-actions.pod:1637
19355 #, no-wrap
19356 msgid ""
19357 " inotify-rm-watch wd\n"
19358 "\n"
19359 msgstr ""
19360
19361 # type: textblock
19362 #: ../fish/guestfish-actions.pod:1639
19363 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19364 msgstr ""
19365
19366 # type: =head2
19367 #: ../fish/guestfish-actions.pod:1642
19368 msgid "inspect-get-arch"
19369 msgstr ""
19370
19371 # type: verbatim
19372 #: ../fish/guestfish-actions.pod:1644
19373 #, no-wrap
19374 msgid ""
19375 " inspect-get-arch root\n"
19376 "\n"
19377 msgstr ""
19378
19379 # type: textblock
19380 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1746 ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1782 ../fish/guestfish-actions.pod:1805 ../fish/guestfish-actions.pod:1822 ../fish/guestfish-actions.pod:1853
19381 msgid ""
19382 "This function should only be called with a root device string as returned by "
19383 "L</inspect-os>."
19384 msgstr ""
19385
19386 # type: textblock
19387 #: ../fish/guestfish-actions.pod:1649
19388 msgid ""
19389 "This returns the architecture of the inspected operating system.  The "
19390 "possible return values are listed under L</file-architecture>."
19391 msgstr ""
19392
19393 # type: =head2
19394 #: ../fish/guestfish-actions.pod:1658
19395 msgid "inspect-get-distro"
19396 msgstr ""
19397
19398 # type: verbatim
19399 #: ../fish/guestfish-actions.pod:1660
19400 #, no-wrap
19401 msgid ""
19402 " inspect-get-distro root\n"
19403 "\n"
19404 msgstr ""
19405
19406 # type: =head2
19407 #: ../fish/guestfish-actions.pod:1724
19408 msgid "inspect-get-filesystems"
19409 msgstr ""
19410
19411 # type: verbatim
19412 #: ../fish/guestfish-actions.pod:1726
19413 #, no-wrap
19414 msgid ""
19415 " inspect-get-filesystems root\n"
19416 "\n"
19417 msgstr ""
19418
19419 # type: textblock
19420 #: ../fish/guestfish-actions.pod:1739
19421 msgid ""
19422 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19423 "L</inspect-get-mountpoints>."
19424 msgstr ""
19425
19426 # type: =head2
19427 #: ../fish/guestfish-actions.pod:1742
19428 msgid "inspect-get-major-version"
19429 msgstr ""
19430
19431 # type: verbatim
19432 #: ../fish/guestfish-actions.pod:1744
19433 #, no-wrap
19434 msgid ""
19435 " inspect-get-major-version root\n"
19436 "\n"
19437 msgstr ""
19438
19439 # type: =head2
19440 #: ../fish/guestfish-actions.pod:1763
19441 msgid "inspect-get-minor-version"
19442 msgstr ""
19443
19444 # type: verbatim
19445 #: ../fish/guestfish-actions.pod:1765
19446 #, no-wrap
19447 msgid ""
19448 " inspect-get-minor-version root\n"
19449 "\n"
19450 msgstr ""
19451
19452 # type: textblock
19453 #: ../fish/guestfish-actions.pod:1775
19454 msgid ""
19455 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19456 "L</inspect-get-major-version>."
19457 msgstr ""
19458
19459 # type: =head2
19460 #: ../fish/guestfish-actions.pod:1778
19461 msgid "inspect-get-mountpoints"
19462 msgstr ""
19463
19464 # type: verbatim
19465 #: ../fish/guestfish-actions.pod:1780
19466 #, no-wrap
19467 msgid ""
19468 " inspect-get-mountpoints root\n"
19469 "\n"
19470 msgstr ""
19471
19472 # type: textblock
19473 #: ../fish/guestfish-actions.pod:1798
19474 msgid ""
19475 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19476 "L</inspect-get-filesystems>."
19477 msgstr ""
19478
19479 # type: =head2
19480 #: ../fish/guestfish-actions.pod:1801
19481 msgid "inspect-get-product-name"
19482 msgstr ""
19483
19484 # type: verbatim
19485 #: ../fish/guestfish-actions.pod:1803
19486 #, no-wrap
19487 msgid ""
19488 " inspect-get-product-name root\n"
19489 "\n"
19490 msgstr ""
19491
19492 # type: =head2
19493 #: ../fish/guestfish-actions.pod:1818
19494 msgid "inspect-get-type"
19495 msgstr ""
19496
19497 # type: verbatim
19498 #: ../fish/guestfish-actions.pod:1820
19499 #, no-wrap
19500 msgid ""
19501 " inspect-get-type root\n"
19502 "\n"
19503 msgstr ""
19504
19505 # type: =head2
19506 #: ../fish/guestfish-actions.pod:1849
19507 msgid "inspect-get-windows-systemroot"
19508 msgstr ""
19509
19510 # type: verbatim
19511 #: ../fish/guestfish-actions.pod:1851
19512 #, no-wrap
19513 msgid ""
19514 " inspect-get-windows-systemroot root\n"
19515 "\n"
19516 msgstr ""
19517
19518 # type: =head2
19519 #: ../fish/guestfish-actions.pod:1865
19520 msgid "inspect-os"
19521 msgstr ""
19522
19523 # type: verbatim
19524 #: ../fish/guestfish-actions.pod:1867
19525 #, no-wrap
19526 msgid ""
19527 " inspect-os\n"
19528 "\n"
19529 msgstr ""
19530
19531 # type: textblock
19532 #: ../fish/guestfish-actions.pod:1882
19533 msgid ""
19534 "You can pass the root string(s) returned to other L</inspect-get-*> "
19535 "functions in order to query further information about each operating system, "
19536 "such as the name and version."
19537 msgstr ""
19538
19539 # type: textblock
19540 #: ../fish/guestfish-actions.pod:1887
19541 msgid ""
19542 "This function uses other libguestfs features such as L</mount-ro> and "
19543 "L</umount-all> in order to mount and unmount filesystems and look at the "
19544 "contents.  This should be called with no disks currently mounted.  The "
19545 "function may also use Augeas, so any existing Augeas handle will be closed."
19546 msgstr ""
19547
19548 # type: textblock
19549 #: ../fish/guestfish-actions.pod:1899 ../fish/guestfish-actions.pod:2055 ../fish/guestfish-actions.pod:2101
19550 msgid "See also L</list-filesystems>."
19551 msgstr ""
19552
19553 # type: =head2
19554 #: ../fish/guestfish-actions.pod:1901
19555 msgid "is-blockdev"
19556 msgstr ""
19557
19558 # type: verbatim
19559 #: ../fish/guestfish-actions.pod:1903
19560 #, no-wrap
19561 msgid ""
19562 " is-blockdev path\n"
19563 "\n"
19564 msgstr ""
19565
19566 # type: textblock
19567 #: ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1926 ../fish/guestfish-actions.pod:1945 ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1998 ../fish/guestfish-actions.pod:2007
19568 msgid "See also L</stat>."
19569 msgstr ""
19570
19571 # type: =head2
19572 #: ../fish/guestfish-actions.pod:1910
19573 msgid "is-busy"
19574 msgstr ""
19575
19576 # type: verbatim
19577 #: ../fish/guestfish-actions.pod:1912
19578 #, no-wrap
19579 msgid ""
19580 " is-busy\n"
19581 "\n"
19582 msgstr ""
19583
19584 # type: =head2
19585 #: ../fish/guestfish-actions.pod:1919
19586 msgid "is-chardev"
19587 msgstr ""
19588
19589 # type: verbatim
19590 #: ../fish/guestfish-actions.pod:1921
19591 #, no-wrap
19592 msgid ""
19593 " is-chardev path\n"
19594 "\n"
19595 msgstr ""
19596
19597 # type: =head2
19598 #: ../fish/guestfish-actions.pod:1928
19599 msgid "is-config"
19600 msgstr ""
19601
19602 # type: verbatim
19603 #: ../fish/guestfish-actions.pod:1930
19604 #, no-wrap
19605 msgid ""
19606 " is-config\n"
19607 "\n"
19608 msgstr ""
19609
19610 # type: =head2
19611 #: ../fish/guestfish-actions.pod:1937
19612 msgid "is-dir"
19613 msgstr ""
19614
19615 # type: verbatim
19616 #: ../fish/guestfish-actions.pod:1939
19617 #, no-wrap
19618 msgid ""
19619 " is-dir path\n"
19620 "\n"
19621 msgstr ""
19622
19623 # type: =head2
19624 #: ../fish/guestfish-actions.pod:1947
19625 msgid "is-fifo"
19626 msgstr ""
19627
19628 # type: verbatim
19629 #: ../fish/guestfish-actions.pod:1949
19630 #, no-wrap
19631 msgid ""
19632 " is-fifo path\n"
19633 "\n"
19634 msgstr ""
19635
19636 # type: =head2
19637 #: ../fish/guestfish-actions.pod:1956
19638 msgid "is-file"
19639 msgstr ""
19640
19641 # type: verbatim
19642 #: ../fish/guestfish-actions.pod:1958
19643 #, no-wrap
19644 msgid ""
19645 " is-file path\n"
19646 "\n"
19647 msgstr ""
19648
19649 # type: =head2
19650 #: ../fish/guestfish-actions.pod:1966
19651 msgid "is-launching"
19652 msgstr ""
19653
19654 # type: verbatim
19655 #: ../fish/guestfish-actions.pod:1968
19656 #, no-wrap
19657 msgid ""
19658 " is-launching\n"
19659 "\n"
19660 msgstr ""
19661
19662 # type: =head2
19663 #: ../fish/guestfish-actions.pod:1975
19664 msgid "is-lv"
19665 msgstr ""
19666
19667 # type: verbatim
19668 #: ../fish/guestfish-actions.pod:1977
19669 #, no-wrap
19670 msgid ""
19671 " is-lv device\n"
19672 "\n"
19673 msgstr ""
19674
19675 # type: =head2
19676 #: ../fish/guestfish-actions.pod:1982
19677 msgid "is-ready"
19678 msgstr ""
19679
19680 # type: verbatim
19681 #: ../fish/guestfish-actions.pod:1984
19682 #, no-wrap
19683 msgid ""
19684 " is-ready\n"
19685 "\n"
19686 msgstr ""
19687
19688 # type: =head2
19689 #: ../fish/guestfish-actions.pod:1991
19690 msgid "is-socket"
19691 msgstr ""
19692
19693 # type: verbatim
19694 #: ../fish/guestfish-actions.pod:1993
19695 #, no-wrap
19696 msgid ""
19697 " is-socket path\n"
19698 "\n"
19699 msgstr ""
19700
19701 # type: =head2
19702 #: ../fish/guestfish-actions.pod:2000
19703 msgid "is-symlink"
19704 msgstr ""
19705
19706 # type: verbatim
19707 #: ../fish/guestfish-actions.pod:2002
19708 #, no-wrap
19709 msgid ""
19710 " is-symlink path\n"
19711 "\n"
19712 msgstr ""
19713
19714 # type: =head2
19715 #: ../fish/guestfish-actions.pod:2009
19716 msgid "kill-subprocess"
19717 msgstr ""
19718
19719 # type: verbatim
19720 #: ../fish/guestfish-actions.pod:2011
19721 #, no-wrap
19722 msgid ""
19723 " kill-subprocess\n"
19724 "\n"
19725 msgstr ""
19726
19727 # type: =head2
19728 #: ../fish/guestfish-actions.pod:2015
19729 msgid "launch"
19730 msgstr ""
19731
19732 # type: =head2
19733 #: ../fish/guestfish-actions.pod:2017
19734 msgid "run"
19735 msgstr ""
19736
19737 # type: verbatim
19738 #: ../fish/guestfish-actions.pod:2019
19739 #, no-wrap
19740 msgid ""
19741 " launch\n"
19742 "\n"
19743 msgstr ""
19744
19745 # type: =head2
19746 #: ../fish/guestfish-actions.pod:2027
19747 msgid "lchown"
19748 msgstr ""
19749
19750 # type: verbatim
19751 #: ../fish/guestfish-actions.pod:2029
19752 #, no-wrap
19753 msgid ""
19754 " lchown owner group path\n"
19755 "\n"
19756 msgstr ""
19757
19758 # type: textblock
19759 #: ../fish/guestfish-actions.pod:2031
19760 msgid ""
19761 "Change the file owner to C<owner> and group to C<group>.  This is like "
19762 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
19763 "the target."
19764 msgstr ""
19765
19766 # type: =head2
19767 #: ../fish/guestfish-actions.pod:2039
19768 msgid "lgetxattrs"
19769 msgstr ""
19770
19771 # type: verbatim
19772 #: ../fish/guestfish-actions.pod:2041
19773 #, no-wrap
19774 msgid ""
19775 " lgetxattrs path\n"
19776 "\n"
19777 msgstr ""
19778
19779 # type: textblock
19780 #: ../fish/guestfish-actions.pod:2043
19781 msgid ""
19782 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19783 "it returns the extended attributes of the link itself."
19784 msgstr ""
19785
19786 # type: =head2
19787 #: ../fish/guestfish-actions.pod:2047
19788 msgid "list-devices"
19789 msgstr ""
19790
19791 # type: verbatim
19792 #: ../fish/guestfish-actions.pod:2049
19793 #, no-wrap
19794 msgid ""
19795 " list-devices\n"
19796 "\n"
19797 msgstr ""
19798
19799 # type: =head2
19800 #: ../fish/guestfish-actions.pod:2057
19801 msgid "list-filesystems"
19802 msgstr ""
19803
19804 # type: verbatim
19805 #: ../fish/guestfish-actions.pod:2059
19806 #, no-wrap
19807 msgid ""
19808 " list-filesystems\n"
19809 "\n"
19810 msgstr ""
19811
19812 # type: textblock
19813 #: ../fish/guestfish-actions.pod:2078
19814 msgid ""
19815 "This command runs other libguestfs commands, which might include L</mount> "
19816 "and L</umount>, and therefore you should use this soon after launch and only "
19817 "when nothing is mounted."
19818 msgstr ""
19819
19820 # type: textblock
19821 #: ../fish/guestfish-actions.pod:2082
19822 msgid ""
19823 "Not all of the filesystems returned will be mountable.  In particular, swap "
19824 "partitions are returned in the list.  Also this command does not check that "
19825 "each filesystem found is valid and mountable, and some filesystems might be "
19826 "mountable but require special options.  Filesystems may not all belong to a "
19827 "single logical operating system (use L</inspect-os> to look for OSes)."
19828 msgstr ""
19829
19830 # type: =head2
19831 #: ../fish/guestfish-actions.pod:2090
19832 msgid "list-partitions"
19833 msgstr ""
19834
19835 # type: verbatim
19836 #: ../fish/guestfish-actions.pod:2092
19837 #, no-wrap
19838 msgid ""
19839 " list-partitions\n"
19840 "\n"
19841 msgstr ""
19842
19843 # type: textblock
19844 #: ../fish/guestfish-actions.pod:2098
19845 msgid ""
19846 "This does not return logical volumes.  For that you will need to call "
19847 "L</lvs>."
19848 msgstr ""
19849
19850 # type: =head2
19851 #: ../fish/guestfish-actions.pod:2103
19852 msgid "ll"
19853 msgstr ""
19854
19855 # type: verbatim
19856 #: ../fish/guestfish-actions.pod:2105
19857 #, no-wrap
19858 msgid ""
19859 " ll directory\n"
19860 "\n"
19861 msgstr ""
19862
19863 # type: =head2
19864 #: ../fish/guestfish-actions.pod:2113
19865 msgid "ln"
19866 msgstr ""
19867
19868 # type: verbatim
19869 #: ../fish/guestfish-actions.pod:2115
19870 #, no-wrap
19871 msgid ""
19872 " ln target linkname\n"
19873 "\n"
19874 msgstr ""
19875
19876 # type: =head2
19877 #: ../fish/guestfish-actions.pod:2119
19878 msgid "ln-f"
19879 msgstr ""
19880
19881 # type: verbatim
19882 #: ../fish/guestfish-actions.pod:2121
19883 #, no-wrap
19884 msgid ""
19885 " ln-f target linkname\n"
19886 "\n"
19887 msgstr ""
19888
19889 # type: =head2
19890 #: ../fish/guestfish-actions.pod:2126
19891 msgid "ln-s"
19892 msgstr ""
19893
19894 # type: verbatim
19895 #: ../fish/guestfish-actions.pod:2128
19896 #, no-wrap
19897 msgid ""
19898 " ln-s target linkname\n"
19899 "\n"
19900 msgstr ""
19901
19902 # type: =head2
19903 #: ../fish/guestfish-actions.pod:2132
19904 msgid "ln-sf"
19905 msgstr ""
19906
19907 # type: verbatim
19908 #: ../fish/guestfish-actions.pod:2134
19909 #, no-wrap
19910 msgid ""
19911 " ln-sf target linkname\n"
19912 "\n"
19913 msgstr ""
19914
19915 # type: =head2
19916 #: ../fish/guestfish-actions.pod:2139
19917 msgid "lremovexattr"
19918 msgstr ""
19919
19920 # type: verbatim
19921 #: ../fish/guestfish-actions.pod:2141
19922 #, no-wrap
19923 msgid ""
19924 " lremovexattr xattr path\n"
19925 "\n"
19926 msgstr ""
19927
19928 # type: textblock
19929 #: ../fish/guestfish-actions.pod:2143
19930 msgid ""
19931 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19932 "it removes an extended attribute of the link itself."
19933 msgstr ""
19934
19935 # type: =head2
19936 #: ../fish/guestfish-actions.pod:2147
19937 msgid "ls"
19938 msgstr ""
19939
19940 # type: verbatim
19941 #: ../fish/guestfish-actions.pod:2149
19942 #, no-wrap
19943 msgid ""
19944 " ls directory\n"
19945 "\n"
19946 msgstr ""
19947
19948 # type: textblock
19949 #: ../fish/guestfish-actions.pod:2155
19950 msgid ""
19951 "This command is mostly useful for interactive sessions.  Programs should "
19952 "probably use L</readdir> instead."
19953 msgstr ""
19954
19955 # type: =head2
19956 #: ../fish/guestfish-actions.pod:2158
19957 msgid "lsetxattr"
19958 msgstr ""
19959
19960 # type: verbatim
19961 #: ../fish/guestfish-actions.pod:2160
19962 #, no-wrap
19963 msgid ""
19964 " lsetxattr xattr val vallen path\n"
19965 "\n"
19966 msgstr ""
19967
19968 # type: textblock
19969 #: ../fish/guestfish-actions.pod:2162
19970 msgid ""
19971 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
19972 "sets an extended attribute of the link itself."
19973 msgstr ""
19974
19975 # type: =head2
19976 #: ../fish/guestfish-actions.pod:2166
19977 msgid "lstat"
19978 msgstr ""
19979
19980 # type: verbatim
19981 #: ../fish/guestfish-actions.pod:2168
19982 #, no-wrap
19983 msgid ""
19984 " lstat path\n"
19985 "\n"
19986 msgstr ""
19987
19988 # type: textblock
19989 #: ../fish/guestfish-actions.pod:2172
19990 msgid ""
19991 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
19992 "the link is stat-ed, not the file it refers to."
19993 msgstr ""
19994
19995 # type: =head2
19996 #: ../fish/guestfish-actions.pod:2178
19997 msgid "lstatlist"
19998 msgstr ""
19999
20000 # type: verbatim
20001 #: ../fish/guestfish-actions.pod:2180
20002 #, no-wrap
20003 msgid ""
20004 " lstatlist path 'names ...'\n"
20005 "\n"
20006 msgstr ""
20007
20008 # type: textblock
20009 #: ../fish/guestfish-actions.pod:2182
20010 msgid ""
20011 "This call allows you to perform the L</lstat> operation on multiple files, "
20012 "where all files are in the directory C<path>.  C<names> is the list of files "
20013 "from this directory."
20014 msgstr ""
20015
20016 # type: textblock
20017 #: ../fish/guestfish-actions.pod:2191
20018 msgid ""
20019 "This call is intended for programs that want to efficiently list a directory "
20020 "contents without making many round-trips.  See also L</lxattrlist> for a "
20021 "similarly efficient call for getting extended attributes.  Very long "
20022 "directory listings might cause the protocol message size to be exceeded, "
20023 "causing this call to fail.  The caller must split up such requests into "
20024 "smaller groups of names."
20025 msgstr ""
20026
20027 # type: =head2
20028 #: ../fish/guestfish-actions.pod:2199
20029 msgid "luks-add-key"
20030 msgstr ""
20031
20032 # type: verbatim
20033 #: ../fish/guestfish-actions.pod:2201
20034 #, no-wrap
20035 msgid ""
20036 " luks-add-key device keyslot\n"
20037 "\n"
20038 msgstr ""
20039
20040 # type: textblock
20041 #: ../fish/guestfish-actions.pod:2208
20042 msgid ""
20043 "Note that if C<keyslot> already contains a key, then this command will "
20044 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20045 msgstr ""
20046
20047 # type: textblock
20048 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2234 ../fish/guestfish-actions.pod:2247 ../fish/guestfish-actions.pod:2261 ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2294
20049 msgid ""
20050 "This command has one or more key or passphrase parameters.  Guestfish will "
20051 "prompt for these separately."
20052 msgstr ""
20053
20054 # type: =head2
20055 #: ../fish/guestfish-actions.pod:2215
20056 msgid "luks-close"
20057 msgstr ""
20058
20059 # type: verbatim
20060 #: ../fish/guestfish-actions.pod:2217
20061 #, no-wrap
20062 msgid ""
20063 " luks-close device\n"
20064 "\n"
20065 msgstr ""
20066
20067 # type: textblock
20068 #: ../fish/guestfish-actions.pod:2219
20069 msgid ""
20070 "This closes a LUKS device that was created earlier by L</luks-open> or "
20071 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
20072 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
20073 "underlying block device."
20074 msgstr ""
20075
20076 # type: =head2
20077 #: ../fish/guestfish-actions.pod:2225
20078 msgid "luks-format"
20079 msgstr ""
20080
20081 # type: verbatim
20082 #: ../fish/guestfish-actions.pod:2227
20083 #, no-wrap
20084 msgid ""
20085 " luks-format device keyslot\n"
20086 "\n"
20087 msgstr ""
20088
20089 # type: =head2
20090 #: ../fish/guestfish-actions.pod:2240
20091 msgid "luks-format-cipher"
20092 msgstr ""
20093
20094 # type: verbatim
20095 #: ../fish/guestfish-actions.pod:2242
20096 #, no-wrap
20097 msgid ""
20098 " luks-format-cipher device keyslot cipher\n"
20099 "\n"
20100 msgstr ""
20101
20102 # type: textblock
20103 #: ../fish/guestfish-actions.pod:2244
20104 msgid ""
20105 "This command is the same as L</luks-format> but it also allows you to set "
20106 "the C<cipher> used."
20107 msgstr ""
20108
20109 # type: =head2
20110 #: ../fish/guestfish-actions.pod:2253
20111 msgid "luks-kill-slot"
20112 msgstr ""
20113
20114 # type: verbatim
20115 #: ../fish/guestfish-actions.pod:2255
20116 #, no-wrap
20117 msgid ""
20118 " luks-kill-slot device keyslot\n"
20119 "\n"
20120 msgstr ""
20121
20122 # type: =head2
20123 #: ../fish/guestfish-actions.pod:2264
20124 msgid "luks-open"
20125 msgstr ""
20126
20127 # type: verbatim
20128 #: ../fish/guestfish-actions.pod:2266
20129 #, no-wrap
20130 msgid ""
20131 " luks-open device mapname\n"
20132 "\n"
20133 msgstr ""
20134
20135 # type: textblock
20136 #: ../fish/guestfish-actions.pod:2280
20137 msgid ""
20138 "If this block device contains LVM volume groups, then calling L</vgscan> "
20139 "followed by L</vg-activate-all> will make them visible."
20140 msgstr ""
20141
20142 # type: =head2
20143 #: ../fish/guestfish-actions.pod:2287
20144 msgid "luks-open-ro"
20145 msgstr ""
20146
20147 # type: verbatim
20148 #: ../fish/guestfish-actions.pod:2289
20149 #, no-wrap
20150 msgid ""
20151 " luks-open-ro device mapname\n"
20152 "\n"
20153 msgstr ""
20154
20155 # type: textblock
20156 #: ../fish/guestfish-actions.pod:2291
20157 msgid ""
20158 "This is the same as L</luks-open> except that a read-only mapping is "
20159 "created."
20160 msgstr ""
20161
20162 # type: =head2
20163 #: ../fish/guestfish-actions.pod:2297
20164 msgid "lvcreate"
20165 msgstr ""
20166
20167 # type: verbatim
20168 #: ../fish/guestfish-actions.pod:2299
20169 #, no-wrap
20170 msgid ""
20171 " lvcreate logvol volgroup mbytes\n"
20172 "\n"
20173 msgstr ""
20174
20175 # type: =head2
20176 #: ../fish/guestfish-actions.pod:2304
20177 msgid "lvm-canonical-lv-name"
20178 msgstr ""
20179
20180 # type: verbatim
20181 #: ../fish/guestfish-actions.pod:2306
20182 #, no-wrap
20183 msgid ""
20184 " lvm-canonical-lv-name lvname\n"
20185 "\n"
20186 msgstr ""
20187
20188 # type: textblock
20189 #: ../fish/guestfish-actions.pod:2315
20190 msgid "See also L</is-lv>."
20191 msgstr ""
20192
20193 # type: =head2
20194 #: ../fish/guestfish-actions.pod:2317
20195 msgid "lvm-clear-filter"
20196 msgstr ""
20197
20198 # type: verbatim
20199 #: ../fish/guestfish-actions.pod:2319
20200 #, no-wrap
20201 msgid ""
20202 " lvm-clear-filter\n"
20203 "\n"
20204 msgstr ""
20205
20206 # type: textblock
20207 #: ../fish/guestfish-actions.pod:2321
20208 msgid ""
20209 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20210 "block device."
20211 msgstr ""
20212
20213 # type: =head2
20214 #: ../fish/guestfish-actions.pod:2327
20215 msgid "lvm-remove-all"
20216 msgstr ""
20217
20218 # type: verbatim
20219 #: ../fish/guestfish-actions.pod:2329
20220 #, no-wrap
20221 msgid ""
20222 " lvm-remove-all\n"
20223 "\n"
20224 msgstr ""
20225
20226 # type: =head2
20227 #: ../fish/guestfish-actions.pod:2337
20228 msgid "lvm-set-filter"
20229 msgstr ""
20230
20231 # type: verbatim
20232 #: ../fish/guestfish-actions.pod:2339
20233 #, no-wrap
20234 msgid ""
20235 " lvm-set-filter 'devices ...'\n"
20236 "\n"
20237 msgstr ""
20238
20239 # type: =head2
20240 #: ../fish/guestfish-actions.pod:2364
20241 msgid "lvremove"
20242 msgstr ""
20243
20244 # type: verbatim
20245 #: ../fish/guestfish-actions.pod:2366
20246 #, no-wrap
20247 msgid ""
20248 " lvremove device\n"
20249 "\n"
20250 msgstr ""
20251
20252 # type: =head2
20253 #: ../fish/guestfish-actions.pod:2374
20254 msgid "lvrename"
20255 msgstr ""
20256
20257 # type: verbatim
20258 #: ../fish/guestfish-actions.pod:2376
20259 #, no-wrap
20260 msgid ""
20261 " lvrename logvol newlogvol\n"
20262 "\n"
20263 msgstr ""
20264
20265 # type: =head2
20266 #: ../fish/guestfish-actions.pod:2380
20267 msgid "lvresize"
20268 msgstr ""
20269
20270 # type: verbatim
20271 #: ../fish/guestfish-actions.pod:2382
20272 #, no-wrap
20273 msgid ""
20274 " lvresize device mbytes\n"
20275 "\n"
20276 msgstr ""
20277
20278 # type: =head2
20279 #: ../fish/guestfish-actions.pod:2388
20280 msgid "lvresize-free"
20281 msgstr ""
20282
20283 # type: verbatim
20284 #: ../fish/guestfish-actions.pod:2390
20285 #, no-wrap
20286 msgid ""
20287 " lvresize-free lv percent\n"
20288 "\n"
20289 msgstr ""
20290
20291 # type: =head2
20292 #: ../fish/guestfish-actions.pod:2398
20293 msgid "lvs"
20294 msgstr ""
20295
20296 # type: verbatim
20297 #: ../fish/guestfish-actions.pod:2400
20298 #, no-wrap
20299 msgid ""
20300 " lvs\n"
20301 "\n"
20302 msgstr ""
20303
20304 # type: textblock
20305 #: ../fish/guestfish-actions.pod:2408
20306 msgid "See also L</lvs-full>, L</list-filesystems>."
20307 msgstr ""
20308
20309 # type: =head2
20310 #: ../fish/guestfish-actions.pod:2410
20311 msgid "lvs-full"
20312 msgstr ""
20313
20314 # type: verbatim
20315 #: ../fish/guestfish-actions.pod:2412
20316 #, no-wrap
20317 msgid ""
20318 " lvs-full\n"
20319 "\n"
20320 msgstr ""
20321
20322 # type: =head2
20323 #: ../fish/guestfish-actions.pod:2417
20324 msgid "lvuuid"
20325 msgstr ""
20326
20327 # type: verbatim
20328 #: ../fish/guestfish-actions.pod:2419
20329 #, no-wrap
20330 msgid ""
20331 " lvuuid device\n"
20332 "\n"
20333 msgstr ""
20334
20335 # type: =head2
20336 #: ../fish/guestfish-actions.pod:2423
20337 msgid "lxattrlist"
20338 msgstr ""
20339
20340 # type: verbatim
20341 #: ../fish/guestfish-actions.pod:2425
20342 #, no-wrap
20343 msgid ""
20344 " lxattrlist path 'names ...'\n"
20345 "\n"
20346 msgstr ""
20347
20348 # type: textblock
20349 #: ../fish/guestfish-actions.pod:2441
20350 msgid ""
20351 "This call is intended for programs that want to efficiently list a directory "
20352 "contents without making many round-trips.  See also L</lstatlist> for a "
20353 "similarly efficient call for getting standard stats.  Very long directory "
20354 "listings might cause the protocol message size to be exceeded, causing this "
20355 "call to fail.  The caller must split up such requests into smaller groups of "
20356 "names."
20357 msgstr ""
20358
20359 # type: =head2
20360 #: ../fish/guestfish-actions.pod:2449
20361 msgid "mkdir"
20362 msgstr ""
20363
20364 # type: verbatim
20365 #: ../fish/guestfish-actions.pod:2451
20366 #, no-wrap
20367 msgid ""
20368 " mkdir path\n"
20369 "\n"
20370 msgstr ""
20371
20372 # type: =head2
20373 #: ../fish/guestfish-actions.pod:2455
20374 msgid "mkdir-mode"
20375 msgstr ""
20376
20377 # type: verbatim
20378 #: ../fish/guestfish-actions.pod:2457
20379 #, no-wrap
20380 msgid ""
20381 " mkdir-mode path mode\n"
20382 "\n"
20383 msgstr ""
20384
20385 # type: textblock
20386 #: ../fish/guestfish-actions.pod:2466
20387 msgid "See also L</mkdir>, L</umask>"
20388 msgstr ""
20389
20390 # type: =head2
20391 #: ../fish/guestfish-actions.pod:2468
20392 msgid "mkdir-p"
20393 msgstr ""
20394
20395 # type: verbatim
20396 #: ../fish/guestfish-actions.pod:2470
20397 #, no-wrap
20398 msgid ""
20399 " mkdir-p path\n"
20400 "\n"
20401 msgstr ""
20402
20403 # type: =head2
20404 #: ../fish/guestfish-actions.pod:2475
20405 msgid "mkdtemp"
20406 msgstr ""
20407
20408 # type: verbatim
20409 #: ../fish/guestfish-actions.pod:2477
20410 #, no-wrap
20411 msgid ""
20412 " mkdtemp template\n"
20413 "\n"
20414 msgstr ""
20415
20416 # type: =head2
20417 #: ../fish/guestfish-actions.pod:2498
20418 msgid "mke2fs-J"
20419 msgstr ""
20420
20421 # type: verbatim
20422 #: ../fish/guestfish-actions.pod:2500
20423 #, no-wrap
20424 msgid ""
20425 " mke2fs-J fstype blocksize device journal\n"
20426 "\n"
20427 msgstr ""
20428
20429 # type: textblock
20430 #: ../fish/guestfish-actions.pod:2508
20431 msgid "See also L</mke2journal>."
20432 msgstr ""
20433
20434 # type: =head2
20435 #: ../fish/guestfish-actions.pod:2510
20436 msgid "mke2fs-JL"
20437 msgstr ""
20438
20439 # type: verbatim
20440 #: ../fish/guestfish-actions.pod:2512
20441 #, no-wrap
20442 msgid ""
20443 " mke2fs-JL fstype blocksize device label\n"
20444 "\n"
20445 msgstr ""
20446
20447 # type: textblock
20448 #: ../fish/guestfish-actions.pod:2517
20449 msgid "See also L</mke2journal-L>."
20450 msgstr ""
20451
20452 # type: =head2
20453 #: ../fish/guestfish-actions.pod:2519
20454 msgid "mke2fs-JU"
20455 msgstr ""
20456
20457 # type: verbatim
20458 #: ../fish/guestfish-actions.pod:2521
20459 #, no-wrap
20460 msgid ""
20461 " mke2fs-JU fstype blocksize device uuid\n"
20462 "\n"
20463 msgstr ""
20464
20465 # type: textblock
20466 #: ../fish/guestfish-actions.pod:2526
20467 msgid "See also L</mke2journal-U>."
20468 msgstr ""
20469
20470 # type: =head2
20471 #: ../fish/guestfish-actions.pod:2528
20472 msgid "mke2journal"
20473 msgstr ""
20474
20475 # type: verbatim
20476 #: ../fish/guestfish-actions.pod:2530
20477 #, no-wrap
20478 msgid ""
20479 " mke2journal blocksize device\n"
20480 "\n"
20481 msgstr ""
20482
20483 # type: =head2
20484 #: ../fish/guestfish-actions.pod:2537
20485 msgid "mke2journal-L"
20486 msgstr ""
20487
20488 # type: verbatim
20489 #: ../fish/guestfish-actions.pod:2539
20490 #, no-wrap
20491 msgid ""
20492 " mke2journal-L blocksize label device\n"
20493 "\n"
20494 msgstr ""
20495
20496 # type: =head2
20497 #: ../fish/guestfish-actions.pod:2543
20498 msgid "mke2journal-U"
20499 msgstr ""
20500
20501 # type: verbatim
20502 #: ../fish/guestfish-actions.pod:2545
20503 #, no-wrap
20504 msgid ""
20505 " mke2journal-U blocksize uuid device\n"
20506 "\n"
20507 msgstr ""
20508
20509 # type: =head2
20510 #: ../fish/guestfish-actions.pod:2549
20511 msgid "mkfifo"
20512 msgstr ""
20513
20514 # type: verbatim
20515 #: ../fish/guestfish-actions.pod:2551
20516 #, no-wrap
20517 msgid ""
20518 " mkfifo mode path\n"
20519 "\n"
20520 msgstr ""
20521
20522 # type: textblock
20523 #: ../fish/guestfish-actions.pod:2553
20524 msgid ""
20525 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20526 "is just a convenient wrapper around L</mknod>."
20527 msgstr ""
20528
20529 # type: =head2
20530 #: ../fish/guestfish-actions.pod:2559
20531 msgid "mkfs"
20532 msgstr ""
20533
20534 # type: verbatim
20535 #: ../fish/guestfish-actions.pod:2561
20536 #, no-wrap
20537 msgid ""
20538 " mkfs fstype device\n"
20539 "\n"
20540 msgstr ""
20541
20542 # type: =head2
20543 #: ../fish/guestfish-actions.pod:2567
20544 msgid "mkfs-b"
20545 msgstr ""
20546
20547 # type: verbatim
20548 #: ../fish/guestfish-actions.pod:2569
20549 #, no-wrap
20550 msgid ""
20551 " mkfs-b fstype blocksize device\n"
20552 "\n"
20553 msgstr ""
20554
20555 # type: textblock
20556 #: ../fish/guestfish-actions.pod:2571
20557 msgid ""
20558 "This call is similar to L</mkfs>, but it allows you to control the block "
20559 "size of the resulting filesystem.  Supported block sizes depend on the "
20560 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20561 msgstr ""
20562
20563 # type: =head2
20564 #: ../fish/guestfish-actions.pod:2579
20565 msgid "mkmountpoint"
20566 msgstr ""
20567
20568 # type: verbatim
20569 #: ../fish/guestfish-actions.pod:2581
20570 #, no-wrap
20571 msgid ""
20572 " mkmountpoint exemptpath\n"
20573 "\n"
20574 msgstr ""
20575
20576 # type: textblock
20577 #: ../fish/guestfish-actions.pod:2583
20578 msgid ""
20579 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20580 "to create extra mountpoints before mounting the first filesystem."
20581 msgstr ""
20582
20583 # type: textblock
20584 #: ../fish/guestfish-actions.pod:2607
20585 msgid ""
20586 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
20587 "unexpected errors if you try to mix these calls.  It is safest to manually "
20588 "unmount filesystems and remove mountpoints after use."
20589 msgstr ""
20590
20591 # type: textblock
20592 #: ../fish/guestfish-actions.pod:2611
20593 msgid ""
20594 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
20595 "for this to work for manual mountpoints, you must ensure that the innermost "
20596 "mountpoints have the longest pathnames, as in the example code above."
20597 msgstr ""
20598
20599 # type: textblock
20600 #: ../fish/guestfish-actions.pod:2618
20601 msgid ""
20602 "Autosync [see L</set-autosync>, this is set by default on handles] means "
20603 "that L</umount-all> is called when the handle is closed which can also "
20604 "trigger these issues."
20605 msgstr ""
20606
20607 # type: =head2
20608 #: ../fish/guestfish-actions.pod:2622
20609 msgid "mknod"
20610 msgstr ""
20611
20612 # type: verbatim
20613 #: ../fish/guestfish-actions.pod:2624
20614 #, no-wrap
20615 msgid ""
20616 " mknod mode devmajor devminor path\n"
20617 "\n"
20618 msgstr ""
20619
20620 # type: textblock
20621 #: ../fish/guestfish-actions.pod:2634
20622 msgid ""
20623 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20624 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20625 "regular file).  These constants are available in the standard Linux header "
20626 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20627 "wrappers around this command which bitwise OR in the appropriate constant "
20628 "for you."
20629 msgstr ""
20630
20631 # type: =head2
20632 #: ../fish/guestfish-actions.pod:2644
20633 msgid "mknod-b"
20634 msgstr ""
20635
20636 # type: verbatim
20637 #: ../fish/guestfish-actions.pod:2646
20638 #, no-wrap
20639 msgid ""
20640 " mknod-b mode devmajor devminor path\n"
20641 "\n"
20642 msgstr ""
20643
20644 # type: textblock
20645 #: ../fish/guestfish-actions.pod:2648
20646 msgid ""
20647 "This call creates a block device node called C<path> with mode C<mode> and "
20648 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20649 "wrapper around L</mknod>."
20650 msgstr ""
20651
20652 # type: =head2
20653 #: ../fish/guestfish-actions.pod:2654
20654 msgid "mknod-c"
20655 msgstr ""
20656
20657 # type: verbatim
20658 #: ../fish/guestfish-actions.pod:2656
20659 #, no-wrap
20660 msgid ""
20661 " mknod-c mode devmajor devminor path\n"
20662 "\n"
20663 msgstr ""
20664
20665 # type: textblock
20666 #: ../fish/guestfish-actions.pod:2658
20667 msgid ""
20668 "This call creates a char device node called C<path> with mode C<mode> and "
20669 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20670 "wrapper around L</mknod>."
20671 msgstr ""
20672
20673 # type: =head2
20674 #: ../fish/guestfish-actions.pod:2664
20675 msgid "mkswap"
20676 msgstr ""
20677
20678 # type: verbatim
20679 #: ../fish/guestfish-actions.pod:2666
20680 #, no-wrap
20681 msgid ""
20682 " mkswap device\n"
20683 "\n"
20684 msgstr ""
20685
20686 # type: =head2
20687 #: ../fish/guestfish-actions.pod:2670
20688 msgid "mkswap-L"
20689 msgstr ""
20690
20691 # type: verbatim
20692 #: ../fish/guestfish-actions.pod:2672
20693 #, no-wrap
20694 msgid ""
20695 " mkswap-L label device\n"
20696 "\n"
20697 msgstr ""
20698
20699 # type: =head2
20700 #: ../fish/guestfish-actions.pod:2680
20701 msgid "mkswap-U"
20702 msgstr ""
20703
20704 # type: verbatim
20705 #: ../fish/guestfish-actions.pod:2682
20706 #, no-wrap
20707 msgid ""
20708 " mkswap-U uuid device\n"
20709 "\n"
20710 msgstr ""
20711
20712 # type: =head2
20713 #: ../fish/guestfish-actions.pod:2686
20714 msgid "mkswap-file"
20715 msgstr ""
20716
20717 # type: verbatim
20718 #: ../fish/guestfish-actions.pod:2688
20719 #, no-wrap
20720 msgid ""
20721 " mkswap-file path\n"
20722 "\n"
20723 msgstr ""
20724
20725 # type: textblock
20726 #: ../fish/guestfish-actions.pod:2692
20727 msgid ""
20728 "This command just writes a swap file signature to an existing file.  To "
20729 "create the file itself, use something like L</fallocate>."
20730 msgstr ""
20731
20732 # type: =head2
20733 #: ../fish/guestfish-actions.pod:2695
20734 msgid "modprobe"
20735 msgstr ""
20736
20737 # type: verbatim
20738 #: ../fish/guestfish-actions.pod:2697
20739 #, no-wrap
20740 msgid ""
20741 " modprobe modulename\n"
20742 "\n"
20743 msgstr ""
20744
20745 # type: =head2
20746 #: ../fish/guestfish-actions.pod:2704
20747 msgid "mount"
20748 msgstr ""
20749
20750 # type: verbatim
20751 #: ../fish/guestfish-actions.pod:2706
20752 #, no-wrap
20753 msgid ""
20754 " mount device mountpoint\n"
20755 "\n"
20756 msgstr ""
20757
20758 # type: textblock
20759 #: ../fish/guestfish-actions.pod:2722
20760 msgid ""
20761 "B<Important note:> When you use this call, the filesystem options C<sync> "
20762 "and C<noatime> are set implicitly.  This was originally done because we "
20763 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20764 "very large negative performance impact and negligible effect on "
20765 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20766 "code that needs performance, and instead use L</mount-options> (use an empty "
20767 "string for the first parameter if you don't want any options)."
20768 msgstr ""
20769
20770 # type: =head2
20771 #: ../fish/guestfish-actions.pod:2732
20772 msgid "mount-loop"
20773 msgstr ""
20774
20775 # type: verbatim
20776 #: ../fish/guestfish-actions.pod:2734
20777 #, no-wrap
20778 msgid ""
20779 " mount-loop file mountpoint\n"
20780 "\n"
20781 msgstr ""
20782
20783 # type: =head2
20784 #: ../fish/guestfish-actions.pod:2740
20785 msgid "mount-options"
20786 msgstr ""
20787
20788 # type: verbatim
20789 #: ../fish/guestfish-actions.pod:2742
20790 #, no-wrap
20791 msgid ""
20792 " mount-options options device mountpoint\n"
20793 "\n"
20794 msgstr ""
20795
20796 # type: textblock
20797 #: ../fish/guestfish-actions.pod:2744
20798 msgid ""
20799 "This is the same as the L</mount> command, but it allows you to set the "
20800 "mount options as for the L<mount(8)> I<-o> flag."
20801 msgstr ""
20802
20803 # type: =head2
20804 #: ../fish/guestfish-actions.pod:2752
20805 msgid "mount-ro"
20806 msgstr ""
20807
20808 # type: verbatim
20809 #: ../fish/guestfish-actions.pod:2754
20810 #, no-wrap
20811 msgid ""
20812 " mount-ro device mountpoint\n"
20813 "\n"
20814 msgstr ""
20815
20816 # type: textblock
20817 #: ../fish/guestfish-actions.pod:2756
20818 msgid ""
20819 "This is the same as the L</mount> command, but it mounts the filesystem with "
20820 "the read-only (I<-o ro>) flag."
20821 msgstr ""
20822
20823 # type: =head2
20824 #: ../fish/guestfish-actions.pod:2759
20825 msgid "mount-vfs"
20826 msgstr ""
20827
20828 # type: verbatim
20829 #: ../fish/guestfish-actions.pod:2761
20830 #, no-wrap
20831 msgid ""
20832 " mount-vfs options vfstype device mountpoint\n"
20833 "\n"
20834 msgstr ""
20835
20836 # type: textblock
20837 #: ../fish/guestfish-actions.pod:2763
20838 msgid ""
20839 "This is the same as the L</mount> command, but it allows you to set both the "
20840 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20841 msgstr ""
20842
20843 # type: =head2
20844 #: ../fish/guestfish-actions.pod:2767
20845 msgid "mountpoints"
20846 msgstr ""
20847
20848 # type: verbatim
20849 #: ../fish/guestfish-actions.pod:2769
20850 #, no-wrap
20851 msgid ""
20852 " mountpoints\n"
20853 "\n"
20854 msgstr ""
20855
20856 # type: textblock
20857 #: ../fish/guestfish-actions.pod:2771
20858 msgid ""
20859 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20860 "This one returns a hash table (map) of device name to directory where the "
20861 "device is mounted."
20862 msgstr ""
20863
20864 # type: =head2
20865 #: ../fish/guestfish-actions.pod:2775
20866 msgid "mounts"
20867 msgstr ""
20868
20869 # type: verbatim
20870 #: ../fish/guestfish-actions.pod:2777
20871 #, no-wrap
20872 msgid ""
20873 " mounts\n"
20874 "\n"
20875 msgstr ""
20876
20877 # type: textblock
20878 #: ../fish/guestfish-actions.pod:2784
20879 msgid "See also: L</mountpoints>"
20880 msgstr ""
20881
20882 # type: =head2
20883 #: ../fish/guestfish-actions.pod:2786
20884 msgid "mv"
20885 msgstr ""
20886
20887 # type: verbatim
20888 #: ../fish/guestfish-actions.pod:2788
20889 #, no-wrap
20890 msgid ""
20891 " mv src dest\n"
20892 "\n"
20893 msgstr ""
20894
20895 # type: =head2
20896 #: ../fish/guestfish-actions.pod:2793
20897 msgid "ntfs-3g-probe"
20898 msgstr ""
20899
20900 # type: verbatim
20901 #: ../fish/guestfish-actions.pod:2795
20902 #, no-wrap
20903 msgid ""
20904 " ntfs-3g-probe true|false device\n"
20905 "\n"
20906 msgstr ""
20907
20908 # type: =head2
20909 #: ../fish/guestfish-actions.pod:2809
20910 msgid "ntfsresize"
20911 msgstr ""
20912
20913 # type: verbatim
20914 #: ../fish/guestfish-actions.pod:2811
20915 #, no-wrap
20916 msgid ""
20917 " ntfsresize device\n"
20918 "\n"
20919 msgstr ""
20920
20921 # type: =head2
20922 #: ../fish/guestfish-actions.pod:2817
20923 msgid "ntfsresize-size"
20924 msgstr ""
20925
20926 # type: verbatim
20927 #: ../fish/guestfish-actions.pod:2819
20928 #, no-wrap
20929 msgid ""
20930 " ntfsresize-size device size\n"
20931 "\n"
20932 msgstr ""
20933
20934 # type: textblock
20935 #: ../fish/guestfish-actions.pod:2821
20936 msgid ""
20937 "This command is the same as L</ntfsresize> except that it allows you to "
20938 "specify the new size (in bytes) explicitly."
20939 msgstr ""
20940
20941 # type: =head2
20942 #: ../fish/guestfish-actions.pod:2824
20943 msgid "part-add"
20944 msgstr ""
20945
20946 # type: verbatim
20947 #: ../fish/guestfish-actions.pod:2826
20948 #, no-wrap
20949 msgid ""
20950 " part-add device prlogex startsect endsect\n"
20951 "\n"
20952 msgstr ""
20953
20954 # type: textblock
20955 #: ../fish/guestfish-actions.pod:2828
20956 msgid ""
20957 "This command adds a partition to C<device>.  If there is no partition table "
20958 "on the device, call L</part-init> first."
20959 msgstr ""
20960
20961 # type: textblock
20962 #: ../fish/guestfish-actions.pod:2840
20963 msgid ""
20964 "Creating a partition which covers the whole disk is not so easy.  Use "
20965 "L</part-disk> to do that."
20966 msgstr ""
20967
20968 # type: =head2
20969 #: ../fish/guestfish-actions.pod:2843
20970 msgid "part-del"
20971 msgstr ""
20972
20973 # type: verbatim
20974 #: ../fish/guestfish-actions.pod:2845
20975 #, no-wrap
20976 msgid ""
20977 " part-del device partnum\n"
20978 "\n"
20979 msgstr ""
20980
20981 # type: =head2
20982 #: ../fish/guestfish-actions.pod:2853
20983 msgid "part-disk"
20984 msgstr ""
20985
20986 # type: verbatim
20987 #: ../fish/guestfish-actions.pod:2855
20988 #, no-wrap
20989 msgid ""
20990 " part-disk device parttype\n"
20991 "\n"
20992 msgstr ""
20993
20994 # type: textblock
20995 #: ../fish/guestfish-actions.pod:2857
20996 msgid ""
20997 "This command is simply a combination of L</part-init> followed by "
20998 "L</part-add> to create a single primary partition covering the whole disk."
20999 msgstr ""
21000
21001 # type: textblock
21002 #: ../fish/guestfish-actions.pod:2861
21003 msgid ""
21004 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21005 "possible values are described in L</part-init>."
21006 msgstr ""
21007
21008 # type: =head2
21009 #: ../fish/guestfish-actions.pod:2867
21010 msgid "part-get-bootable"
21011 msgstr ""
21012
21013 # type: verbatim
21014 #: ../fish/guestfish-actions.pod:2869
21015 #, no-wrap
21016 msgid ""
21017 " part-get-bootable device partnum\n"
21018 "\n"
21019 msgstr ""
21020
21021 # type: textblock
21022 #: ../fish/guestfish-actions.pod:2874
21023 msgid "See also L</part-set-bootable>."
21024 msgstr ""
21025
21026 # type: =head2
21027 #: ../fish/guestfish-actions.pod:2876
21028 msgid "part-get-mbr-id"
21029 msgstr ""
21030
21031 # type: verbatim
21032 #: ../fish/guestfish-actions.pod:2878
21033 #, no-wrap
21034 msgid ""
21035 " part-get-mbr-id device partnum\n"
21036 "\n"
21037 msgstr ""
21038
21039 # type: textblock
21040 #: ../fish/guestfish-actions.pod:2883 ../fish/guestfish-actions.pod:3021
21041 msgid ""
21042 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21043 "undefined results for other partition table types (see "
21044 "L</part-get-parttype>)."
21045 msgstr ""
21046
21047 # type: =head2
21048 #: ../fish/guestfish-actions.pod:2887
21049 msgid "part-get-parttype"
21050 msgstr ""
21051
21052 # type: verbatim
21053 #: ../fish/guestfish-actions.pod:2889
21054 #, no-wrap
21055 msgid ""
21056 " part-get-parttype device\n"
21057 "\n"
21058 msgstr ""
21059
21060 # type: textblock
21061 #: ../fish/guestfish-actions.pod:2894
21062 msgid ""
21063 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21064 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21065 "possible, although unusual.  See L</part-init> for a full list."
21066 msgstr ""
21067
21068 # type: =head2
21069 #: ../fish/guestfish-actions.pod:2899
21070 msgid "part-init"
21071 msgstr ""
21072
21073 # type: verbatim
21074 #: ../fish/guestfish-actions.pod:2901
21075 #, no-wrap
21076 msgid ""
21077 " part-init device parttype\n"
21078 "\n"
21079 msgstr ""
21080
21081 # type: textblock
21082 #: ../fish/guestfish-actions.pod:2907
21083 msgid ""
21084 "Initially there are no partitions.  Following this, you should call "
21085 "L</part-add> for each partition required."
21086 msgstr ""
21087
21088 # type: =head2
21089 #: ../fish/guestfish-actions.pod:2970
21090 msgid "part-list"
21091 msgstr ""
21092
21093 # type: verbatim
21094 #: ../fish/guestfish-actions.pod:2972
21095 #, no-wrap
21096 msgid ""
21097 " part-list device\n"
21098 "\n"
21099 msgstr ""
21100
21101 # type: textblock
21102 #: ../fish/guestfish-actions.pod:2987
21103 msgid ""
21104 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21105 "the device's sector size, see L</blockdev-getss>."
21106 msgstr ""
21107
21108 # type: =head2
21109 #: ../fish/guestfish-actions.pod:3000
21110 msgid "part-set-bootable"
21111 msgstr ""
21112
21113 # type: verbatim
21114 #: ../fish/guestfish-actions.pod:3002
21115 #, no-wrap
21116 msgid ""
21117 " part-set-bootable device partnum true|false\n"
21118 "\n"
21119 msgstr ""
21120
21121 # type: =head2
21122 #: ../fish/guestfish-actions.pod:3011
21123 msgid "part-set-mbr-id"
21124 msgstr ""
21125
21126 # type: verbatim
21127 #: ../fish/guestfish-actions.pod:3013
21128 #, no-wrap
21129 msgid ""
21130 " part-set-mbr-id device partnum idbyte\n"
21131 "\n"
21132 msgstr ""
21133
21134 # type: =head2
21135 #: ../fish/guestfish-actions.pod:3025
21136 msgid "part-set-name"
21137 msgstr ""
21138
21139 # type: verbatim
21140 #: ../fish/guestfish-actions.pod:3027
21141 #, no-wrap
21142 msgid ""
21143 " part-set-name device partnum name\n"
21144 "\n"
21145 msgstr ""
21146
21147 # type: =head2
21148 #: ../fish/guestfish-actions.pod:3035
21149 msgid "part-to-dev"
21150 msgstr ""
21151
21152 # type: verbatim
21153 #: ../fish/guestfish-actions.pod:3037
21154 #, no-wrap
21155 msgid ""
21156 " part-to-dev partition\n"
21157 "\n"
21158 msgstr ""
21159
21160 # type: textblock
21161 #: ../fish/guestfish-actions.pod:3043
21162 msgid ""
21163 "The named partition must exist, for example as a string returned from "
21164 "L</list-partitions>."
21165 msgstr ""
21166
21167 # type: =head2
21168 #: ../fish/guestfish-actions.pod:3046
21169 msgid "ping-daemon"
21170 msgstr ""
21171
21172 # type: verbatim
21173 #: ../fish/guestfish-actions.pod:3048
21174 #, no-wrap
21175 msgid ""
21176 " ping-daemon\n"
21177 "\n"
21178 msgstr ""
21179
21180 # type: =head2
21181 #: ../fish/guestfish-actions.pod:3055
21182 msgid "pread"
21183 msgstr ""
21184
21185 # type: verbatim
21186 #: ../fish/guestfish-actions.pod:3057
21187 #, no-wrap
21188 msgid ""
21189 " pread path count offset\n"
21190 "\n"
21191 msgstr ""
21192
21193 # type: textblock
21194 #: ../fish/guestfish-actions.pod:3065
21195 msgid "See also L</pwrite>, L</pread-device>."
21196 msgstr ""
21197
21198 # type: =head2
21199 #: ../fish/guestfish-actions.pod:3070
21200 msgid "pread-device"
21201 msgstr ""
21202
21203 # type: verbatim
21204 #: ../fish/guestfish-actions.pod:3072
21205 #, no-wrap
21206 msgid ""
21207 " pread-device device count offset\n"
21208 "\n"
21209 msgstr ""
21210
21211 # type: textblock
21212 #: ../fish/guestfish-actions.pod:3080
21213 msgid "See also L</pread>."
21214 msgstr ""
21215
21216 # type: =head2
21217 #: ../fish/guestfish-actions.pod:3085
21218 msgid "pvcreate"
21219 msgstr ""
21220
21221 # type: verbatim
21222 #: ../fish/guestfish-actions.pod:3087
21223 #, no-wrap
21224 msgid ""
21225 " pvcreate device\n"
21226 "\n"
21227 msgstr ""
21228
21229 # type: =head2
21230 #: ../fish/guestfish-actions.pod:3093
21231 msgid "pvremove"
21232 msgstr ""
21233
21234 # type: verbatim
21235 #: ../fish/guestfish-actions.pod:3095
21236 #, no-wrap
21237 msgid ""
21238 " pvremove device\n"
21239 "\n"
21240 msgstr ""
21241
21242 # type: =head2
21243 #: ../fish/guestfish-actions.pod:3104
21244 msgid "pvresize"
21245 msgstr ""
21246
21247 # type: verbatim
21248 #: ../fish/guestfish-actions.pod:3106
21249 #, no-wrap
21250 msgid ""
21251 " pvresize device\n"
21252 "\n"
21253 msgstr ""
21254
21255 # type: =head2
21256 #: ../fish/guestfish-actions.pod:3111
21257 msgid "pvresize-size"
21258 msgstr ""
21259
21260 # type: verbatim
21261 #: ../fish/guestfish-actions.pod:3113
21262 #, no-wrap
21263 msgid ""
21264 " pvresize-size device size\n"
21265 "\n"
21266 msgstr ""
21267
21268 # type: textblock
21269 #: ../fish/guestfish-actions.pod:3115
21270 msgid ""
21271 "This command is the same as L</pvresize> except that it allows you to "
21272 "specify the new size (in bytes) explicitly."
21273 msgstr ""
21274
21275 # type: =head2
21276 #: ../fish/guestfish-actions.pod:3118
21277 msgid "pvs"
21278 msgstr ""
21279
21280 # type: verbatim
21281 #: ../fish/guestfish-actions.pod:3120
21282 #, no-wrap
21283 msgid ""
21284 " pvs\n"
21285 "\n"
21286 msgstr ""
21287
21288 # type: textblock
21289 #: ../fish/guestfish-actions.pod:3128
21290 msgid "See also L</pvs-full>."
21291 msgstr ""
21292
21293 # type: =head2
21294 #: ../fish/guestfish-actions.pod:3130
21295 msgid "pvs-full"
21296 msgstr ""
21297
21298 # type: verbatim
21299 #: ../fish/guestfish-actions.pod:3132
21300 #, no-wrap
21301 msgid ""
21302 " pvs-full\n"
21303 "\n"
21304 msgstr ""
21305
21306 # type: =head2
21307 #: ../fish/guestfish-actions.pod:3137
21308 msgid "pvuuid"
21309 msgstr ""
21310
21311 # type: verbatim
21312 #: ../fish/guestfish-actions.pod:3139
21313 #, no-wrap
21314 msgid ""
21315 " pvuuid device\n"
21316 "\n"
21317 msgstr ""
21318
21319 # type: =head2
21320 #: ../fish/guestfish-actions.pod:3143
21321 msgid "pwrite"
21322 msgstr ""
21323
21324 # type: verbatim
21325 #: ../fish/guestfish-actions.pod:3145
21326 #, no-wrap
21327 msgid ""
21328 " pwrite path content offset\n"
21329 "\n"
21330 msgstr ""
21331
21332 # type: textblock
21333 #: ../fish/guestfish-actions.pod:3156
21334 msgid "See also L</pread>, L</pwrite-device>."
21335 msgstr ""
21336
21337 # type: =head2
21338 #: ../fish/guestfish-actions.pod:3161
21339 msgid "pwrite-device"
21340 msgstr ""
21341
21342 # type: verbatim
21343 #: ../fish/guestfish-actions.pod:3163
21344 #, no-wrap
21345 msgid ""
21346 " pwrite-device device content offset\n"
21347 "\n"
21348 msgstr ""
21349
21350 # type: textblock
21351 #: ../fish/guestfish-actions.pod:3173
21352 msgid "See also L</pwrite>."
21353 msgstr ""
21354
21355 # type: =head2
21356 #: ../fish/guestfish-actions.pod:3178
21357 msgid "read-file"
21358 msgstr ""
21359
21360 # type: verbatim
21361 #: ../fish/guestfish-actions.pod:3180
21362 #, no-wrap
21363 msgid ""
21364 " read-file path\n"
21365 "\n"
21366 msgstr ""
21367
21368 # type: textblock
21369 #: ../fish/guestfish-actions.pod:3185
21370 msgid ""
21371 "Unlike L</cat>, this function can correctly handle files that contain "
21372 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21373 "is limited in the total size of file that can be handled."
21374 msgstr ""
21375
21376 # type: =head2
21377 #: ../fish/guestfish-actions.pod:3193
21378 msgid "read-lines"
21379 msgstr ""
21380
21381 # type: verbatim
21382 #: ../fish/guestfish-actions.pod:3195
21383 #, no-wrap
21384 msgid ""
21385 " read-lines path\n"
21386 "\n"
21387 msgstr ""
21388
21389 # type: textblock
21390 #: ../fish/guestfish-actions.pod:3202
21391 msgid ""
21392 "Note that this function cannot correctly handle binary files (specifically, "
21393 "files containing C<\\0> character which is treated as end of line).  For "
21394 "those you need to use the L</read-file> function which has a more complex "
21395 "interface."
21396 msgstr ""
21397
21398 # type: =head2
21399 #: ../fish/guestfish-actions.pod:3207
21400 msgid "readdir"
21401 msgstr ""
21402
21403 # type: verbatim
21404 #: ../fish/guestfish-actions.pod:3209
21405 #, no-wrap
21406 msgid ""
21407 " readdir dir\n"
21408 "\n"
21409 msgstr ""
21410
21411 # type: textblock
21412 #: ../fish/guestfish-actions.pod:3261
21413 msgid ""
21414 "This function is primarily intended for use by programs.  To get a simple "
21415 "list of names, use L</ls>.  To get a printable directory for human "
21416 "consumption, use L</ll>."
21417 msgstr ""
21418
21419 # type: =head2
21420 #: ../fish/guestfish-actions.pod:3265
21421 msgid "readlink"
21422 msgstr ""
21423
21424 # type: verbatim
21425 #: ../fish/guestfish-actions.pod:3267
21426 #, no-wrap
21427 msgid ""
21428 " readlink path\n"
21429 "\n"
21430 msgstr ""
21431
21432 # type: =head2
21433 #: ../fish/guestfish-actions.pod:3271
21434 msgid "readlinklist"
21435 msgstr ""
21436
21437 # type: verbatim
21438 #: ../fish/guestfish-actions.pod:3273
21439 #, no-wrap
21440 msgid ""
21441 " readlinklist path 'names ...'\n"
21442 "\n"
21443 msgstr ""
21444
21445 # type: =head2
21446 #: ../fish/guestfish-actions.pod:3297
21447 msgid "realpath"
21448 msgstr ""
21449
21450 # type: verbatim
21451 #: ../fish/guestfish-actions.pod:3299
21452 #, no-wrap
21453 msgid ""
21454 " realpath path\n"
21455 "\n"
21456 msgstr ""
21457
21458 # type: =head2
21459 #: ../fish/guestfish-actions.pod:3304
21460 msgid "removexattr"
21461 msgstr ""
21462
21463 # type: verbatim
21464 #: ../fish/guestfish-actions.pod:3306
21465 #, no-wrap
21466 msgid ""
21467 " removexattr xattr path\n"
21468 "\n"
21469 msgstr ""
21470
21471 # type: textblock
21472 #: ../fish/guestfish-actions.pod:3311
21473 msgid "See also: L</lremovexattr>, L<attr(5)>."
21474 msgstr ""
21475
21476 # type: =head2
21477 #: ../fish/guestfish-actions.pod:3313
21478 msgid "resize2fs"
21479 msgstr ""
21480
21481 # type: verbatim
21482 #: ../fish/guestfish-actions.pod:3315
21483 #, no-wrap
21484 msgid ""
21485 " resize2fs device\n"
21486 "\n"
21487 msgstr ""
21488
21489 # type: textblock
21490 #: ../fish/guestfish-actions.pod:3320
21491 msgid ""
21492 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21493 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21494 "gives an error about this and sometimes not.  In any case, it is always safe "
21495 "to call L</e2fsck-f> before calling this function."
21496 msgstr ""
21497
21498 # type: =head2
21499 #: ../fish/guestfish-actions.pod:3326
21500 msgid "resize2fs-size"
21501 msgstr ""
21502
21503 # type: verbatim
21504 #: ../fish/guestfish-actions.pod:3328
21505 #, no-wrap
21506 msgid ""
21507 " resize2fs-size device size\n"
21508 "\n"
21509 msgstr ""
21510
21511 # type: textblock
21512 #: ../fish/guestfish-actions.pod:3330
21513 msgid ""
21514 "This command is the same as L</resize2fs> except that it allows you to "
21515 "specify the new size (in bytes) explicitly."
21516 msgstr ""
21517
21518 # type: =head2
21519 #: ../fish/guestfish-actions.pod:3333
21520 msgid "rm"
21521 msgstr ""
21522
21523 # type: verbatim
21524 #: ../fish/guestfish-actions.pod:3335
21525 #, no-wrap
21526 msgid ""
21527 " rm path\n"
21528 "\n"
21529 msgstr ""
21530
21531 # type: =head2
21532 #: ../fish/guestfish-actions.pod:3339
21533 msgid "rm-rf"
21534 msgstr ""
21535
21536 # type: verbatim
21537 #: ../fish/guestfish-actions.pod:3341
21538 #, no-wrap
21539 msgid ""
21540 " rm-rf path\n"
21541 "\n"
21542 msgstr ""
21543
21544 # type: =head2
21545 #: ../fish/guestfish-actions.pod:3347
21546 msgid "rmdir"
21547 msgstr ""
21548
21549 # type: verbatim
21550 #: ../fish/guestfish-actions.pod:3349
21551 #, no-wrap
21552 msgid ""
21553 " rmdir path\n"
21554 "\n"
21555 msgstr ""
21556
21557 # type: =head2
21558 #: ../fish/guestfish-actions.pod:3353
21559 msgid "rmmountpoint"
21560 msgstr ""
21561
21562 # type: verbatim
21563 #: ../fish/guestfish-actions.pod:3355
21564 #, no-wrap
21565 msgid ""
21566 " rmmountpoint exemptpath\n"
21567 "\n"
21568 msgstr ""
21569
21570 # type: textblock
21571 #: ../fish/guestfish-actions.pod:3357
21572 msgid ""
21573 "This calls removes a mountpoint that was previously created with "
21574 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
21575 msgstr ""
21576
21577 # type: =head2
21578 #: ../fish/guestfish-actions.pod:3361
21579 msgid "scrub-device"
21580 msgstr ""
21581
21582 # type: verbatim
21583 #: ../fish/guestfish-actions.pod:3363
21584 #, no-wrap
21585 msgid ""
21586 " scrub-device device\n"
21587 "\n"
21588 msgstr ""
21589
21590 # type: =head2
21591 #: ../fish/guestfish-actions.pod:3374
21592 msgid "scrub-file"
21593 msgstr ""
21594
21595 # type: verbatim
21596 #: ../fish/guestfish-actions.pod:3376
21597 #, no-wrap
21598 msgid ""
21599 " scrub-file file\n"
21600 "\n"
21601 msgstr ""
21602
21603 # type: =head2
21604 #: ../fish/guestfish-actions.pod:3386
21605 msgid "scrub-freespace"
21606 msgstr ""
21607
21608 # type: verbatim
21609 #: ../fish/guestfish-actions.pod:3388
21610 #, no-wrap
21611 msgid ""
21612 " scrub-freespace dir\n"
21613 "\n"
21614 msgstr ""
21615
21616 # type: textblock
21617 #: ../fish/guestfish-actions.pod:3390
21618 msgid ""
21619 "This command creates the directory C<dir> and then fills it with files until "
21620 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21621 "deletes them.  The intention is to scrub any free space on the partition "
21622 "containing C<dir>."
21623 msgstr ""
21624
21625 # type: =head2
21626 #: ../fish/guestfish-actions.pod:3399
21627 msgid "set-append"
21628 msgstr ""
21629
21630 # type: =head2
21631 #: ../fish/guestfish-actions.pod:3401
21632 msgid "append"
21633 msgstr ""
21634
21635 # type: verbatim
21636 #: ../fish/guestfish-actions.pod:3403
21637 #, no-wrap
21638 msgid ""
21639 " set-append append\n"
21640 "\n"
21641 msgstr ""
21642
21643 # type: =head2
21644 #: ../fish/guestfish-actions.pod:3414
21645 msgid "set-autosync"
21646 msgstr ""
21647
21648 # type: =head2
21649 #: ../fish/guestfish-actions.pod:3416
21650 msgid "autosync"
21651 msgstr ""
21652
21653 # type: verbatim
21654 #: ../fish/guestfish-actions.pod:3418
21655 #, no-wrap
21656 msgid ""
21657 " set-autosync true|false\n"
21658 "\n"
21659 msgstr ""
21660
21661 # type: textblock
21662 #: ../fish/guestfish-actions.pod:3420
21663 msgid ""
21664 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21665 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21666 "closed (also if the program exits without closing handles)."
21667 msgstr ""
21668
21669 # type: =head2
21670 #: ../fish/guestfish-actions.pod:3428
21671 msgid "set-direct"
21672 msgstr ""
21673
21674 # type: =head2
21675 #: ../fish/guestfish-actions.pod:3430
21676 msgid "direct"
21677 msgstr ""
21678
21679 # type: verbatim
21680 #: ../fish/guestfish-actions.pod:3432
21681 #, no-wrap
21682 msgid ""
21683 " set-direct true|false\n"
21684 "\n"
21685 msgstr ""
21686
21687 # type: textblock
21688 #: ../fish/guestfish-actions.pod:3438
21689 msgid ""
21690 "One consequence of this is that log messages aren't caught by the library "
21691 "and handled by L</set-log-message-callback>, but go straight to stdout."
21692 msgstr ""
21693
21694 # type: =head2
21695 #: ../fish/guestfish-actions.pod:3447
21696 msgid "set-e2label"
21697 msgstr ""
21698
21699 # type: verbatim
21700 #: ../fish/guestfish-actions.pod:3449
21701 #, no-wrap
21702 msgid ""
21703 " set-e2label device label\n"
21704 "\n"
21705 msgstr ""
21706
21707 # type: textblock
21708 #: ../fish/guestfish-actions.pod:3455
21709 msgid ""
21710 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21711 "label on a filesystem."
21712 msgstr ""
21713
21714 # type: =head2
21715 #: ../fish/guestfish-actions.pod:3458
21716 msgid "set-e2uuid"
21717 msgstr ""
21718
21719 # type: verbatim
21720 #: ../fish/guestfish-actions.pod:3460
21721 #, no-wrap
21722 msgid ""
21723 " set-e2uuid device uuid\n"
21724 "\n"
21725 msgstr ""
21726
21727 # type: textblock
21728 #: ../fish/guestfish-actions.pod:3467
21729 msgid ""
21730 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21731 "UUID of a filesystem."
21732 msgstr ""
21733
21734 # type: =head2
21735 #: ../fish/guestfish-actions.pod:3470
21736 msgid "set-memsize"
21737 msgstr ""
21738
21739 # type: =head2
21740 #: ../fish/guestfish-actions.pod:3472
21741 msgid "memsize"
21742 msgstr ""
21743
21744 # type: verbatim
21745 #: ../fish/guestfish-actions.pod:3474
21746 #, no-wrap
21747 msgid ""
21748 " set-memsize memsize\n"
21749 "\n"
21750 msgstr ""
21751
21752 # type: textblock
21753 #: ../fish/guestfish-actions.pod:3476
21754 msgid ""
21755 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21756 "This only has any effect if called before L</launch>."
21757 msgstr ""
21758
21759 # type: =head2
21760 #: ../fish/guestfish-actions.pod:3487
21761 msgid "set-network"
21762 msgstr ""
21763
21764 # type: =head2
21765 #: ../fish/guestfish-actions.pod:3489
21766 msgid "network"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #: ../fish/guestfish-actions.pod:3491
21771 #, no-wrap
21772 msgid ""
21773 " set-network true|false\n"
21774 "\n"
21775 msgstr ""
21776
21777 # type: textblock
21778 #: ../fish/guestfish-actions.pod:3499
21779 msgid "You must call this before calling L</launch>, otherwise it has no effect."
21780 msgstr ""
21781
21782 # type: =head2
21783 #: ../fish/guestfish-actions.pod:3502
21784 msgid "set-path"
21785 msgstr ""
21786
21787 # type: =head2
21788 #: ../fish/guestfish-actions.pod:3504
21789 msgid "path"
21790 msgstr ""
21791
21792 # type: verbatim
21793 #: ../fish/guestfish-actions.pod:3506
21794 #, no-wrap
21795 msgid ""
21796 " set-path searchpath\n"
21797 "\n"
21798 msgstr ""
21799
21800 # type: =head2
21801 #: ../fish/guestfish-actions.pod:3515
21802 msgid "set-qemu"
21803 msgstr ""
21804
21805 # type: =head2
21806 #: ../fish/guestfish-actions.pod:3517
21807 msgid "qemu"
21808 msgstr ""
21809
21810 # type: verbatim
21811 #: ../fish/guestfish-actions.pod:3519
21812 #, no-wrap
21813 msgid ""
21814 " set-qemu qemu\n"
21815 "\n"
21816 msgstr ""
21817
21818 # type: =head2
21819 #: ../fish/guestfish-actions.pod:3539
21820 msgid "set-recovery-proc"
21821 msgstr ""
21822
21823 # type: =head2
21824 #: ../fish/guestfish-actions.pod:3541
21825 msgid "recovery-proc"
21826 msgstr ""
21827
21828 # type: verbatim
21829 #: ../fish/guestfish-actions.pod:3543
21830 #, no-wrap
21831 msgid ""
21832 " set-recovery-proc true|false\n"
21833 "\n"
21834 msgstr ""
21835
21836 # type: textblock
21837 #: ../fish/guestfish-actions.pod:3545
21838 msgid ""
21839 "If this is called with the parameter C<false> then L</launch> does not "
21840 "create a recovery process.  The purpose of the recovery process is to stop "
21841 "runaway qemu processes in the case where the main program aborts abruptly."
21842 msgstr ""
21843
21844 # type: textblock
21845 #: ../fish/guestfish-actions.pod:3550
21846 msgid ""
21847 "This only has any effect if called before L</launch>, and the default is "
21848 "true."
21849 msgstr ""
21850
21851 # type: =head2
21852 #: ../fish/guestfish-actions.pod:3559
21853 msgid "set-selinux"
21854 msgstr ""
21855
21856 # type: =head2
21857 #: ../fish/guestfish-actions.pod:3561
21858 msgid "selinux"
21859 msgstr ""
21860
21861 # type: verbatim
21862 #: ../fish/guestfish-actions.pod:3563
21863 #, no-wrap
21864 msgid ""
21865 " set-selinux true|false\n"
21866 "\n"
21867 msgstr ""
21868
21869 # type: =head2
21870 #: ../fish/guestfish-actions.pod:3574
21871 msgid "set-trace"
21872 msgstr ""
21873
21874 # type: =head2
21875 #: ../fish/guestfish-actions.pod:3576
21876 msgid "trace"
21877 msgstr ""
21878
21879 # type: verbatim
21880 #: ../fish/guestfish-actions.pod:3578
21881 #, no-wrap
21882 msgid ""
21883 " set-trace true|false\n"
21884 "\n"
21885 msgstr ""
21886
21887 # type: =head2
21888 #: ../fish/guestfish-actions.pod:3594
21889 msgid "set-verbose"
21890 msgstr ""
21891
21892 # type: =head2
21893 #: ../fish/guestfish-actions.pod:3596
21894 msgid "verbose"
21895 msgstr ""
21896
21897 # type: verbatim
21898 #: ../fish/guestfish-actions.pod:3598
21899 #, no-wrap
21900 msgid ""
21901 " set-verbose true|false\n"
21902 "\n"
21903 msgstr ""
21904
21905 # type: =head2
21906 #: ../fish/guestfish-actions.pod:3605
21907 msgid "setcon"
21908 msgstr ""
21909
21910 # type: verbatim
21911 #: ../fish/guestfish-actions.pod:3607
21912 #, no-wrap
21913 msgid ""
21914 " setcon context\n"
21915 "\n"
21916 msgstr ""
21917
21918 # type: =head2
21919 #: ../fish/guestfish-actions.pod:3614
21920 msgid "setxattr"
21921 msgstr ""
21922
21923 # type: verbatim
21924 #: ../fish/guestfish-actions.pod:3616
21925 #, no-wrap
21926 msgid ""
21927 " setxattr xattr val vallen path\n"
21928 "\n"
21929 msgstr ""
21930
21931 # type: textblock
21932 #: ../fish/guestfish-actions.pod:3622
21933 msgid "See also: L</lsetxattr>, L<attr(5)>."
21934 msgstr ""
21935
21936 # type: =head2
21937 #: ../fish/guestfish-actions.pod:3624
21938 msgid "sfdisk"
21939 msgstr ""
21940
21941 # type: verbatim
21942 #: ../fish/guestfish-actions.pod:3626
21943 #, no-wrap
21944 msgid ""
21945 " sfdisk device cyls heads sectors 'lines ...'\n"
21946 "\n"
21947 msgstr ""
21948
21949 # type: textblock
21950 #: ../fish/guestfish-actions.pod:3648
21951 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
21952 msgstr ""
21953
21954 # type: =head2
21955 #: ../fish/guestfish-actions.pod:3654
21956 msgid "sfdiskM"
21957 msgstr ""
21958
21959 # type: verbatim
21960 #: ../fish/guestfish-actions.pod:3656
21961 #, no-wrap
21962 msgid ""
21963 " sfdiskM device 'lines ...'\n"
21964 "\n"
21965 msgstr ""
21966
21967 # type: textblock
21968 #: ../fish/guestfish-actions.pod:3658
21969 msgid ""
21970 "This is a simplified interface to the L</sfdisk> command, where partition "
21971 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
21972 "you don't need to specify the cyls, heads and sectors parameters which were "
21973 "rarely if ever used anyway."
21974 msgstr ""
21975
21976 # type: textblock
21977 #: ../fish/guestfish-actions.pod:3664
21978 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
21979 msgstr ""
21980
21981 # type: =head2
21982 #: ../fish/guestfish-actions.pod:3670
21983 msgid "sfdisk-N"
21984 msgstr ""
21985
21986 # type: verbatim
21987 #: ../fish/guestfish-actions.pod:3672
21988 #, no-wrap
21989 msgid ""
21990 " sfdisk-N device partnum cyls heads sectors line\n"
21991 "\n"
21992 msgstr ""
21993
21994 # type: textblock
21995 #: ../fish/guestfish-actions.pod:3677
21996 msgid ""
21997 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
21998 "cyls/heads/sectors parameters."
21999 msgstr ""
22000
22001 # type: textblock
22002 #: ../fish/guestfish-actions.pod:3680
22003 msgid "See also: L</part-add>"
22004 msgstr ""
22005
22006 # type: =head2
22007 #: ../fish/guestfish-actions.pod:3685
22008 msgid "sfdisk-disk-geometry"
22009 msgstr ""
22010
22011 # type: verbatim
22012 #: ../fish/guestfish-actions.pod:3687
22013 #, no-wrap
22014 msgid ""
22015 " sfdisk-disk-geometry device\n"
22016 "\n"
22017 msgstr ""
22018
22019 # type: textblock
22020 #: ../fish/guestfish-actions.pod:3689
22021 msgid ""
22022 "This displays the disk geometry of C<device> read from the partition table.  "
22023 "Especially in the case where the underlying block device has been resized, "
22024 "this can be different from the kernel's idea of the geometry (see "
22025 "L</sfdisk-kernel-geometry>)."
22026 msgstr ""
22027
22028 # type: =head2
22029 #: ../fish/guestfish-actions.pod:3697
22030 msgid "sfdisk-kernel-geometry"
22031 msgstr ""
22032
22033 # type: verbatim
22034 #: ../fish/guestfish-actions.pod:3699
22035 #, no-wrap
22036 msgid ""
22037 " sfdisk-kernel-geometry device\n"
22038 "\n"
22039 msgstr ""
22040
22041 # type: =head2
22042 #: ../fish/guestfish-actions.pod:3706
22043 msgid "sfdisk-l"
22044 msgstr ""
22045
22046 # type: verbatim
22047 #: ../fish/guestfish-actions.pod:3708
22048 #, no-wrap
22049 msgid ""
22050 " sfdisk-l device\n"
22051 "\n"
22052 msgstr ""
22053
22054 # type: textblock
22055 #: ../fish/guestfish-actions.pod:3714
22056 msgid "See also: L</part-list>"
22057 msgstr ""
22058
22059 # type: =head2
22060 #: ../fish/guestfish-actions.pod:3716
22061 msgid "sh"
22062 msgstr ""
22063
22064 # type: verbatim
22065 #: ../fish/guestfish-actions.pod:3718
22066 #, no-wrap
22067 msgid ""
22068 " sh command\n"
22069 "\n"
22070 msgstr ""
22071
22072 # type: textblock
22073 #: ../fish/guestfish-actions.pod:3723
22074 msgid "This is like L</command>, but passes the command to:"
22075 msgstr ""
22076
22077 # type: textblock
22078 #: ../fish/guestfish-actions.pod:3731
22079 msgid "All the provisos about L</command> apply to this call."
22080 msgstr ""
22081
22082 # type: =head2
22083 #: ../fish/guestfish-actions.pod:3733
22084 msgid "sh-lines"
22085 msgstr ""
22086
22087 # type: verbatim
22088 #: ../fish/guestfish-actions.pod:3735
22089 #, no-wrap
22090 msgid ""
22091 " sh-lines command\n"
22092 "\n"
22093 msgstr ""
22094
22095 # type: textblock
22096 #: ../fish/guestfish-actions.pod:3737
22097 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22098 msgstr ""
22099
22100 # type: textblock
22101 #: ../fish/guestfish-actions.pod:3740
22102 msgid "See also: L</command-lines>"
22103 msgstr ""
22104
22105 # type: =head2
22106 #: ../fish/guestfish-actions.pod:3742
22107 msgid "sleep"
22108 msgstr ""
22109
22110 # type: verbatim
22111 #: ../fish/guestfish-actions.pod:3744
22112 #, no-wrap
22113 msgid ""
22114 " sleep secs\n"
22115 "\n"
22116 msgstr ""
22117
22118 # type: =head2
22119 #: ../fish/guestfish-actions.pod:3748
22120 msgid "stat"
22121 msgstr ""
22122
22123 # type: verbatim
22124 #: ../fish/guestfish-actions.pod:3750
22125 #, no-wrap
22126 msgid ""
22127 " stat path\n"
22128 "\n"
22129 msgstr ""
22130
22131 # type: =head2
22132 #: ../fish/guestfish-actions.pod:3756
22133 msgid "statvfs"
22134 msgstr ""
22135
22136 # type: verbatim
22137 #: ../fish/guestfish-actions.pod:3758
22138 #, no-wrap
22139 msgid ""
22140 " statvfs path\n"
22141 "\n"
22142 msgstr ""
22143
22144 # type: =head2
22145 #: ../fish/guestfish-actions.pod:3766
22146 msgid "strings"
22147 msgstr ""
22148
22149 # type: verbatim
22150 #: ../fish/guestfish-actions.pod:3768
22151 #, no-wrap
22152 msgid ""
22153 " strings path\n"
22154 "\n"
22155 msgstr ""
22156
22157 # type: =head2
22158 #: ../fish/guestfish-actions.pod:3776
22159 msgid "strings-e"
22160 msgstr ""
22161
22162 # type: verbatim
22163 #: ../fish/guestfish-actions.pod:3778
22164 #, no-wrap
22165 msgid ""
22166 " strings-e encoding path\n"
22167 "\n"
22168 msgstr ""
22169
22170 # type: textblock
22171 #: ../fish/guestfish-actions.pod:3780
22172 msgid ""
22173 "This is like the L</strings> command, but allows you to specify the encoding "
22174 "of strings that are looked for in the source file C<path>."
22175 msgstr ""
22176
22177 # type: textblock
22178 #: ../fish/guestfish-actions.pod:3790
22179 msgid ""
22180 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22181 "ISO-8859-X (this is what L</strings> uses)."
22182 msgstr ""
22183
22184 # type: =head2
22185 #: ../fish/guestfish-actions.pod:3822
22186 msgid "swapoff-device"
22187 msgstr ""
22188
22189 # type: verbatim
22190 #: ../fish/guestfish-actions.pod:3824
22191 #, no-wrap
22192 msgid ""
22193 " swapoff-device device\n"
22194 "\n"
22195 msgstr ""
22196
22197 # type: textblock
22198 #: ../fish/guestfish-actions.pod:3826
22199 msgid ""
22200 "This command disables the libguestfs appliance swap device or partition "
22201 "named C<device>.  See L</swapon-device>."
22202 msgstr ""
22203
22204 # type: =head2
22205 #: ../fish/guestfish-actions.pod:3830
22206 msgid "swapoff-file"
22207 msgstr ""
22208
22209 # type: verbatim
22210 #: ../fish/guestfish-actions.pod:3832
22211 #, no-wrap
22212 msgid ""
22213 " swapoff-file file\n"
22214 "\n"
22215 msgstr ""
22216
22217 # type: =head2
22218 #: ../fish/guestfish-actions.pod:3836
22219 msgid "swapoff-label"
22220 msgstr ""
22221
22222 # type: verbatim
22223 #: ../fish/guestfish-actions.pod:3838
22224 #, no-wrap
22225 msgid ""
22226 " swapoff-label label\n"
22227 "\n"
22228 msgstr ""
22229
22230 # type: =head2
22231 #: ../fish/guestfish-actions.pod:3843
22232 msgid "swapoff-uuid"
22233 msgstr ""
22234
22235 # type: verbatim
22236 #: ../fish/guestfish-actions.pod:3845
22237 #, no-wrap
22238 msgid ""
22239 " swapoff-uuid uuid\n"
22240 "\n"
22241 msgstr ""
22242
22243 # type: =head2
22244 #: ../fish/guestfish-actions.pod:3850
22245 msgid "swapon-device"
22246 msgstr ""
22247
22248 # type: verbatim
22249 #: ../fish/guestfish-actions.pod:3852
22250 #, no-wrap
22251 msgid ""
22252 " swapon-device device\n"
22253 "\n"
22254 msgstr ""
22255
22256 # type: textblock
22257 #: ../fish/guestfish-actions.pod:3854
22258 msgid ""
22259 "This command enables the libguestfs appliance to use the swap device or "
22260 "partition named C<device>.  The increased memory is made available for all "
22261 "commands, for example those run using L</command> or L</sh>."
22262 msgstr ""
22263
22264 # type: =head2
22265 #: ../fish/guestfish-actions.pod:3866
22266 msgid "swapon-file"
22267 msgstr ""
22268
22269 # type: verbatim
22270 #: ../fish/guestfish-actions.pod:3868
22271 #, no-wrap
22272 msgid ""
22273 " swapon-file file\n"
22274 "\n"
22275 msgstr ""
22276
22277 # type: textblock
22278 #: ../fish/guestfish-actions.pod:3870
22279 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
22280 msgstr ""
22281
22282 # type: =head2
22283 #: ../fish/guestfish-actions.pod:3873
22284 msgid "swapon-label"
22285 msgstr ""
22286
22287 # type: verbatim
22288 #: ../fish/guestfish-actions.pod:3875
22289 #, no-wrap
22290 msgid ""
22291 " swapon-label label\n"
22292 "\n"
22293 msgstr ""
22294
22295 # type: textblock
22296 #: ../fish/guestfish-actions.pod:3877
22297 msgid ""
22298 "This command enables swap to a labeled swap partition.  See "
22299 "L</swapon-device> for other notes."
22300 msgstr ""
22301
22302 # type: =head2
22303 #: ../fish/guestfish-actions.pod:3880
22304 msgid "swapon-uuid"
22305 msgstr ""
22306
22307 # type: verbatim
22308 #: ../fish/guestfish-actions.pod:3882
22309 #, no-wrap
22310 msgid ""
22311 " swapon-uuid uuid\n"
22312 "\n"
22313 msgstr ""
22314
22315 # type: textblock
22316 #: ../fish/guestfish-actions.pod:3884
22317 msgid ""
22318 "This command enables swap to a swap partition with the given UUID.  See "
22319 "L</swapon-device> for other notes."
22320 msgstr ""
22321
22322 # type: =head2
22323 #: ../fish/guestfish-actions.pod:3887
22324 msgid "sync"
22325 msgstr ""
22326
22327 # type: verbatim
22328 #: ../fish/guestfish-actions.pod:3889
22329 #, no-wrap
22330 msgid ""
22331 " sync\n"
22332 "\n"
22333 msgstr ""
22334
22335 # type: =head2
22336 #: ../fish/guestfish-actions.pod:3897
22337 msgid "tail"
22338 msgstr ""
22339
22340 # type: verbatim
22341 #: ../fish/guestfish-actions.pod:3899
22342 #, no-wrap
22343 msgid ""
22344 " tail path\n"
22345 "\n"
22346 msgstr ""
22347
22348 # type: =head2
22349 #: ../fish/guestfish-actions.pod:3907
22350 msgid "tail-n"
22351 msgstr ""
22352
22353 # type: verbatim
22354 #: ../fish/guestfish-actions.pod:3909
22355 #, no-wrap
22356 msgid ""
22357 " tail-n nrlines path\n"
22358 "\n"
22359 msgstr ""
22360
22361 # type: =head2
22362 #: ../fish/guestfish-actions.pod:3922
22363 msgid "tar-in"
22364 msgstr ""
22365
22366 # type: verbatim
22367 #: ../fish/guestfish-actions.pod:3924
22368 #, no-wrap
22369 msgid ""
22370 " tar-in (tarfile|-) directory\n"
22371 "\n"
22372 msgstr ""
22373
22374 # type: textblock
22375 #: ../fish/guestfish-actions.pod:3929
22376 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22377 msgstr ""
22378
22379 # type: =head2
22380 #: ../fish/guestfish-actions.pod:3934
22381 msgid "tar-out"
22382 msgstr ""
22383
22384 # type: verbatim
22385 #: ../fish/guestfish-actions.pod:3936
22386 #, no-wrap
22387 msgid ""
22388 " tar-out directory (tarfile|-)\n"
22389 "\n"
22390 msgstr ""
22391
22392 # type: textblock
22393 #: ../fish/guestfish-actions.pod:3941
22394 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22395 msgstr ""
22396
22397 # type: =head2
22398 #: ../fish/guestfish-actions.pod:3946
22399 msgid "tgz-in"
22400 msgstr ""
22401
22402 # type: verbatim
22403 #: ../fish/guestfish-actions.pod:3948
22404 #, no-wrap
22405 msgid ""
22406 " tgz-in (tarball|-) directory\n"
22407 "\n"
22408 msgstr ""
22409
22410 # type: textblock
22411 #: ../fish/guestfish-actions.pod:3953
22412 msgid "To upload an uncompressed tarball, use L</tar-in>."
22413 msgstr ""
22414
22415 # type: =head2
22416 #: ../fish/guestfish-actions.pod:3957
22417 msgid "tgz-out"
22418 msgstr ""
22419
22420 # type: verbatim
22421 #: ../fish/guestfish-actions.pod:3959
22422 #, no-wrap
22423 msgid ""
22424 " tgz-out directory (tarball|-)\n"
22425 "\n"
22426 msgstr ""
22427
22428 # type: textblock
22429 #: ../fish/guestfish-actions.pod:3964
22430 msgid "To download an uncompressed tarball, use L</tar-out>."
22431 msgstr ""
22432
22433 # type: =head2
22434 #: ../fish/guestfish-actions.pod:3968
22435 msgid "touch"
22436 msgstr ""
22437
22438 # type: verbatim
22439 #: ../fish/guestfish-actions.pod:3970
22440 #, no-wrap
22441 msgid ""
22442 " touch path\n"
22443 "\n"
22444 msgstr ""
22445
22446 # type: =head2
22447 #: ../fish/guestfish-actions.pod:3979
22448 msgid "truncate"
22449 msgstr ""
22450
22451 # type: verbatim
22452 #: ../fish/guestfish-actions.pod:3981
22453 #, no-wrap
22454 msgid ""
22455 " truncate path\n"
22456 "\n"
22457 msgstr ""
22458
22459 # type: =head2
22460 #: ../fish/guestfish-actions.pod:3986
22461 msgid "truncate-size"
22462 msgstr ""
22463
22464 # type: verbatim
22465 #: ../fish/guestfish-actions.pod:3988
22466 #, no-wrap
22467 msgid ""
22468 " truncate-size path size\n"
22469 "\n"
22470 msgstr ""
22471
22472 # type: textblock
22473 #: ../fish/guestfish-actions.pod:3993
22474 msgid ""
22475 "If the current file size is less than C<size> then the file is extended to "
22476 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22477 "blocks are not allocated for the file until you write to it).  To create a "
22478 "non-sparse file of zeroes, use L</fallocate64> instead."
22479 msgstr ""
22480
22481 # type: =head2
22482 #: ../fish/guestfish-actions.pod:3999
22483 msgid "tune2fs-l"
22484 msgstr ""
22485
22486 # type: verbatim
22487 #: ../fish/guestfish-actions.pod:4001
22488 #, no-wrap
22489 msgid ""
22490 " tune2fs-l device\n"
22491 "\n"
22492 msgstr ""
22493
22494 # type: =head2
22495 #: ../fish/guestfish-actions.pod:4011
22496 msgid "txz-in"
22497 msgstr ""
22498
22499 # type: verbatim
22500 #: ../fish/guestfish-actions.pod:4013
22501 #, no-wrap
22502 msgid ""
22503 " txz-in (tarball|-) directory\n"
22504 "\n"
22505 msgstr ""
22506
22507 # type: =head2
22508 #: ../fish/guestfish-actions.pod:4020
22509 msgid "txz-out"
22510 msgstr ""
22511
22512 # type: verbatim
22513 #: ../fish/guestfish-actions.pod:4022
22514 #, no-wrap
22515 msgid ""
22516 " txz-out directory (tarball|-)\n"
22517 "\n"
22518 msgstr ""
22519
22520 # type: =head2
22521 #: ../fish/guestfish-actions.pod:4029
22522 msgid "umask"
22523 msgstr ""
22524
22525 # type: verbatim
22526 #: ../fish/guestfish-actions.pod:4031
22527 #, no-wrap
22528 msgid ""
22529 " umask mask\n"
22530 "\n"
22531 msgstr ""
22532
22533 # type: textblock
22534 #: ../fish/guestfish-actions.pod:4045
22535 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22536 msgstr ""
22537
22538 # type: =head2
22539 #: ../fish/guestfish-actions.pod:4050
22540 msgid "umount"
22541 msgstr ""
22542
22543 # type: =head2
22544 #: ../fish/guestfish-actions.pod:4052
22545 msgid "unmount"
22546 msgstr ""
22547
22548 # type: verbatim
22549 #: ../fish/guestfish-actions.pod:4054
22550 #, no-wrap
22551 msgid ""
22552 " umount pathordevice\n"
22553 "\n"
22554 msgstr ""
22555
22556 # type: =head2
22557 #: ../fish/guestfish-actions.pod:4060
22558 msgid "umount-all"
22559 msgstr ""
22560
22561 # type: =head2
22562 #: ../fish/guestfish-actions.pod:4062
22563 msgid "unmount-all"
22564 msgstr ""
22565
22566 # type: verbatim
22567 #: ../fish/guestfish-actions.pod:4064
22568 #, no-wrap
22569 msgid ""
22570 " umount-all\n"
22571 "\n"
22572 msgstr ""
22573
22574 # type: =head2
22575 #: ../fish/guestfish-actions.pod:4070
22576 msgid "upload"
22577 msgstr ""
22578
22579 # type: verbatim
22580 #: ../fish/guestfish-actions.pod:4072
22581 #, no-wrap
22582 msgid ""
22583 " upload (filename|-) remotefilename\n"
22584 "\n"
22585 msgstr ""
22586
22587 # type: textblock
22588 #: ../fish/guestfish-actions.pod:4079
22589 msgid "See also L</download>."
22590 msgstr ""
22591
22592 # type: =head2
22593 #: ../fish/guestfish-actions.pod:4083
22594 msgid "upload-offset"
22595 msgstr ""
22596
22597 # type: verbatim
22598 #: ../fish/guestfish-actions.pod:4085
22599 #, no-wrap
22600 msgid ""
22601 " upload-offset (filename|-) remotefilename offset\n"
22602 "\n"
22603 msgstr ""
22604
22605 # type: textblock
22606 #: ../fish/guestfish-actions.pod:4097
22607 msgid ""
22608 "Note that there is no limit on the amount of data that can be uploaded with "
22609 "this call, unlike with L</pwrite>, and this call always writes the full "
22610 "amount unless an error occurs."
22611 msgstr ""
22612
22613 # type: textblock
22614 #: ../fish/guestfish-actions.pod:4102
22615 msgid "See also L</upload>, L</pwrite>."
22616 msgstr ""
22617
22618 # type: =head2
22619 #: ../fish/guestfish-actions.pod:4106
22620 msgid "utimens"
22621 msgstr ""
22622
22623 # type: verbatim
22624 #: ../fish/guestfish-actions.pod:4108
22625 #, no-wrap
22626 msgid ""
22627 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22628 "\n"
22629 msgstr ""
22630
22631 # type: =head2
22632 #: ../fish/guestfish-actions.pod:4127
22633 msgid "version"
22634 msgstr ""
22635
22636 # type: verbatim
22637 #: ../fish/guestfish-actions.pod:4129
22638 #, no-wrap
22639 msgid ""
22640 " version\n"
22641 "\n"
22642 msgstr ""
22643
22644 # type: textblock
22645 #: ../fish/guestfish-actions.pod:4156
22646 msgid ""
22647 "I<Note:> Don't use this call to test for availability of features.  In "
22648 "enterprise distributions we backport features from later versions into "
22649 "earlier versions, making this an unreliable way to test for features.  Use "
22650 "L</available> instead."
22651 msgstr ""
22652
22653 # type: =head2
22654 #: ../fish/guestfish-actions.pod:4162
22655 msgid "vfs-label"
22656 msgstr ""
22657
22658 # type: verbatim
22659 #: ../fish/guestfish-actions.pod:4164
22660 #, no-wrap
22661 msgid ""
22662 " vfs-label device\n"
22663 "\n"
22664 msgstr ""
22665
22666 # type: textblock
22667 #: ../fish/guestfish-actions.pod:4171
22668 msgid "To find a filesystem from the label, use L</findfs-label>."
22669 msgstr ""
22670
22671 # type: =head2
22672 #: ../fish/guestfish-actions.pod:4173
22673 msgid "vfs-type"
22674 msgstr ""
22675
22676 # type: verbatim
22677 #: ../fish/guestfish-actions.pod:4175
22678 #, no-wrap
22679 msgid ""
22680 " vfs-type device\n"
22681 "\n"
22682 msgstr ""
22683
22684 # type: =head2
22685 #: ../fish/guestfish-actions.pod:4185
22686 msgid "vfs-uuid"
22687 msgstr ""
22688
22689 # type: verbatim
22690 #: ../fish/guestfish-actions.pod:4187
22691 #, no-wrap
22692 msgid ""
22693 " vfs-uuid device\n"
22694 "\n"
22695 msgstr ""
22696
22697 # type: textblock
22698 #: ../fish/guestfish-actions.pod:4194
22699 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22700 msgstr ""
22701
22702 # type: =head2
22703 #: ../fish/guestfish-actions.pod:4196
22704 msgid "vg-activate"
22705 msgstr ""
22706
22707 # type: verbatim
22708 #: ../fish/guestfish-actions.pod:4198
22709 #, no-wrap
22710 msgid ""
22711 " vg-activate true|false 'volgroups ...'\n"
22712 "\n"
22713 msgstr ""
22714
22715 # type: =head2
22716 #: ../fish/guestfish-actions.pod:4211
22717 msgid "vg-activate-all"
22718 msgstr ""
22719
22720 # type: verbatim
22721 #: ../fish/guestfish-actions.pod:4213
22722 #, no-wrap
22723 msgid ""
22724 " vg-activate-all true|false\n"
22725 "\n"
22726 msgstr ""
22727
22728 # type: =head2
22729 #: ../fish/guestfish-actions.pod:4223
22730 msgid "vgcreate"
22731 msgstr ""
22732
22733 # type: verbatim
22734 #: ../fish/guestfish-actions.pod:4225
22735 #, no-wrap
22736 msgid ""
22737 " vgcreate volgroup 'physvols ...'\n"
22738 "\n"
22739 msgstr ""
22740
22741 # type: =head2
22742 #: ../fish/guestfish-actions.pod:4230
22743 msgid "vglvuuids"
22744 msgstr ""
22745
22746 # type: verbatim
22747 #: ../fish/guestfish-actions.pod:4232
22748 #, no-wrap
22749 msgid ""
22750 " vglvuuids vgname\n"
22751 "\n"
22752 msgstr ""
22753
22754 # type: textblock
22755 #: ../fish/guestfish-actions.pod:4237
22756 msgid ""
22757 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22758 "logical volumes and volume groups."
22759 msgstr ""
22760
22761 # type: textblock
22762 #: ../fish/guestfish-actions.pod:4240
22763 msgid "See also L</vgpvuuids>."
22764 msgstr ""
22765
22766 # type: =head2
22767 #: ../fish/guestfish-actions.pod:4242
22768 msgid "vgpvuuids"
22769 msgstr ""
22770
22771 # type: verbatim
22772 #: ../fish/guestfish-actions.pod:4244
22773 #, no-wrap
22774 msgid ""
22775 " vgpvuuids vgname\n"
22776 "\n"
22777 msgstr ""
22778
22779 # type: textblock
22780 #: ../fish/guestfish-actions.pod:4249
22781 msgid ""
22782 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22783 "physical volumes and volume groups."
22784 msgstr ""
22785
22786 # type: textblock
22787 #: ../fish/guestfish-actions.pod:4252
22788 msgid "See also L</vglvuuids>."
22789 msgstr ""
22790
22791 # type: =head2
22792 #: ../fish/guestfish-actions.pod:4254
22793 msgid "vgremove"
22794 msgstr ""
22795
22796 # type: verbatim
22797 #: ../fish/guestfish-actions.pod:4256
22798 #, no-wrap
22799 msgid ""
22800 " vgremove vgname\n"
22801 "\n"
22802 msgstr ""
22803
22804 # type: =head2
22805 #: ../fish/guestfish-actions.pod:4263
22806 msgid "vgrename"
22807 msgstr ""
22808
22809 # type: verbatim
22810 #: ../fish/guestfish-actions.pod:4265
22811 #, no-wrap
22812 msgid ""
22813 " vgrename volgroup newvolgroup\n"
22814 "\n"
22815 msgstr ""
22816
22817 # type: =head2
22818 #: ../fish/guestfish-actions.pod:4269
22819 msgid "vgs"
22820 msgstr ""
22821
22822 # type: verbatim
22823 #: ../fish/guestfish-actions.pod:4271
22824 #, no-wrap
22825 msgid ""
22826 " vgs\n"
22827 "\n"
22828 msgstr ""
22829
22830 # type: textblock
22831 #: ../fish/guestfish-actions.pod:4279
22832 msgid "See also L</vgs-full>."
22833 msgstr ""
22834
22835 # type: =head2
22836 #: ../fish/guestfish-actions.pod:4281
22837 msgid "vgs-full"
22838 msgstr ""
22839
22840 # type: verbatim
22841 #: ../fish/guestfish-actions.pod:4283
22842 #, no-wrap
22843 msgid ""
22844 " vgs-full\n"
22845 "\n"
22846 msgstr ""
22847
22848 # type: =head2
22849 #: ../fish/guestfish-actions.pod:4288
22850 msgid "vgscan"
22851 msgstr ""
22852
22853 # type: verbatim
22854 #: ../fish/guestfish-actions.pod:4290
22855 #, no-wrap
22856 msgid ""
22857 " vgscan\n"
22858 "\n"
22859 msgstr ""
22860
22861 # type: =head2
22862 #: ../fish/guestfish-actions.pod:4295
22863 msgid "vguuid"
22864 msgstr ""
22865
22866 # type: verbatim
22867 #: ../fish/guestfish-actions.pod:4297
22868 #, no-wrap
22869 msgid ""
22870 " vguuid vgname\n"
22871 "\n"
22872 msgstr ""
22873
22874 # type: =head2
22875 #: ../fish/guestfish-actions.pod:4301
22876 msgid "wc-c"
22877 msgstr ""
22878
22879 # type: verbatim
22880 #: ../fish/guestfish-actions.pod:4303
22881 #, no-wrap
22882 msgid ""
22883 " wc-c path\n"
22884 "\n"
22885 msgstr ""
22886
22887 # type: =head2
22888 #: ../fish/guestfish-actions.pod:4308
22889 msgid "wc-l"
22890 msgstr ""
22891
22892 # type: verbatim
22893 #: ../fish/guestfish-actions.pod:4310
22894 #, no-wrap
22895 msgid ""
22896 " wc-l path\n"
22897 "\n"
22898 msgstr ""
22899
22900 # type: =head2
22901 #: ../fish/guestfish-actions.pod:4315
22902 msgid "wc-w"
22903 msgstr ""
22904
22905 # type: verbatim
22906 #: ../fish/guestfish-actions.pod:4317
22907 #, no-wrap
22908 msgid ""
22909 " wc-w path\n"
22910 "\n"
22911 msgstr ""
22912
22913 # type: =head2
22914 #: ../fish/guestfish-actions.pod:4322
22915 msgid "write"
22916 msgstr ""
22917
22918 # type: verbatim
22919 #: ../fish/guestfish-actions.pod:4324
22920 #, no-wrap
22921 msgid ""
22922 " write path content\n"
22923 "\n"
22924 msgstr ""
22925
22926 # type: =head2
22927 #: ../fish/guestfish-actions.pod:4332
22928 msgid "write-file"
22929 msgstr ""
22930
22931 # type: verbatim
22932 #: ../fish/guestfish-actions.pod:4334
22933 #, no-wrap
22934 msgid ""
22935 " write-file path content size\n"
22936 "\n"
22937 msgstr ""
22938
22939 # type: =head2
22940 #: ../fish/guestfish-actions.pod:4357
22941 msgid "zegrep"
22942 msgstr ""
22943
22944 # type: verbatim
22945 #: ../fish/guestfish-actions.pod:4359
22946 #, no-wrap
22947 msgid ""
22948 " zegrep regex path\n"
22949 "\n"
22950 msgstr ""
22951
22952 # type: =head2
22953 #: ../fish/guestfish-actions.pod:4367
22954 msgid "zegrepi"
22955 msgstr ""
22956
22957 # type: verbatim
22958 #: ../fish/guestfish-actions.pod:4369
22959 #, no-wrap
22960 msgid ""
22961 " zegrepi regex path\n"
22962 "\n"
22963 msgstr ""
22964
22965 # type: =head2
22966 #: ../fish/guestfish-actions.pod:4377
22967 msgid "zero"
22968 msgstr ""
22969
22970 # type: verbatim
22971 #: ../fish/guestfish-actions.pod:4379
22972 #, no-wrap
22973 msgid ""
22974 " zero device\n"
22975 "\n"
22976 msgstr ""
22977
22978 # type: textblock
22979 #: ../fish/guestfish-actions.pod:4387
22980 msgid "See also: L</zero-device>, L</scrub-device>."
22981 msgstr ""
22982
22983 # type: =head2
22984 #: ../fish/guestfish-actions.pod:4389
22985 msgid "zero-device"
22986 msgstr ""
22987
22988 # type: verbatim
22989 #: ../fish/guestfish-actions.pod:4391
22990 #, no-wrap
22991 msgid ""
22992 " zero-device device\n"
22993 "\n"
22994 msgstr ""
22995
22996 # type: textblock
22997 #: ../fish/guestfish-actions.pod:4393
22998 msgid ""
22999 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23000 "which just zeroes the first few blocks of a device."
23001 msgstr ""
23002
23003 # type: =head2
23004 #: ../fish/guestfish-actions.pod:4400
23005 msgid "zerofree"
23006 msgstr ""
23007
23008 # type: verbatim
23009 #: ../fish/guestfish-actions.pod:4402
23010 #, no-wrap
23011 msgid ""
23012 " zerofree device\n"
23013 "\n"
23014 msgstr ""
23015
23016 # type: =head2
23017 #: ../fish/guestfish-actions.pod:4415
23018 msgid "zfgrep"
23019 msgstr ""
23020
23021 # type: verbatim
23022 #: ../fish/guestfish-actions.pod:4417
23023 #, no-wrap
23024 msgid ""
23025 " zfgrep pattern path\n"
23026 "\n"
23027 msgstr ""
23028
23029 # type: =head2
23030 #: ../fish/guestfish-actions.pod:4425
23031 msgid "zfgrepi"
23032 msgstr ""
23033
23034 # type: verbatim
23035 #: ../fish/guestfish-actions.pod:4427
23036 #, no-wrap
23037 msgid ""
23038 " zfgrepi pattern path\n"
23039 "\n"
23040 msgstr ""
23041
23042 # type: =head2
23043 #: ../fish/guestfish-actions.pod:4435
23044 msgid "zfile"
23045 msgstr ""
23046
23047 # type: verbatim
23048 #: ../fish/guestfish-actions.pod:4437
23049 #, no-wrap
23050 msgid ""
23051 " zfile meth path\n"
23052 "\n"
23053 msgstr ""
23054
23055 # type: textblock
23056 #: ../fish/guestfish-actions.pod:4444
23057 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
23058 msgstr ""
23059
23060 # type: =head2
23061 #: ../fish/guestfish-actions.pod:4454
23062 msgid "zgrep"
23063 msgstr ""
23064
23065 # type: verbatim
23066 #: ../fish/guestfish-actions.pod:4456
23067 #, no-wrap
23068 msgid ""
23069 " zgrep regex path\n"
23070 "\n"
23071 msgstr ""
23072
23073 # type: =head2
23074 #: ../fish/guestfish-actions.pod:4464
23075 msgid "zgrepi"
23076 msgstr ""
23077
23078 # type: verbatim
23079 #: ../fish/guestfish-actions.pod:4466
23080 #, no-wrap
23081 msgid ""
23082 " zgrepi regex path\n"
23083 "\n"
23084 msgstr ""
23085
23086 # type: =head2
23087 #: ../fish/guestfish-commands.pod:1
23088 msgid "alloc"
23089 msgstr ""
23090
23091 # type: =head2
23092 #: ../fish/guestfish-commands.pod:3
23093 msgid "allocate"
23094 msgstr ""
23095
23096 # type: verbatim
23097 #: ../fish/guestfish-commands.pod:5
23098 #, no-wrap
23099 msgid ""
23100 " alloc filename size\n"
23101 "\n"
23102 msgstr ""
23103
23104 # type: textblock
23105 #: ../fish/guestfish-commands.pod:7
23106 msgid ""
23107 "This creates an empty (zeroed) file of the given size, and then adds so it "
23108 "can be further examined."
23109 msgstr ""
23110
23111 # type: textblock
23112 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23113 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23114 msgstr ""
23115
23116 # type: textblock
23117 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23118 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23119 msgstr ""
23120
23121 # type: textblock
23122 #: ../fish/guestfish-commands.pod:14
23123 msgid ""
23124 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23125 "image, see L</PREPARED DISK IMAGES>."
23126 msgstr ""
23127
23128 # type: =head2
23129 #: ../fish/guestfish-commands.pod:17
23130 msgid "copy-in"
23131 msgstr ""
23132
23133 # type: verbatim
23134 #: ../fish/guestfish-commands.pod:19
23135 #, no-wrap
23136 msgid ""
23137 " copy-in local [local ...] /remotedir\n"
23138 "\n"
23139 msgstr ""
23140
23141 # type: textblock
23142 #: ../fish/guestfish-commands.pod:21
23143 msgid ""
23144 "C<copy-in> copies local files or directories recursively into the disk "
23145 "image, placing them in the directory called C</remotedir> (which must "
23146 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23147 "other commands as necessary."
23148 msgstr ""
23149
23150 # type: textblock
23151 #: ../fish/guestfish-commands.pod:26
23152 msgid ""
23153 "Multiple local files and directories can be specified, but the last "
23154 "parameter must always be a remote directory.  Wildcards cannot be used."
23155 msgstr ""
23156
23157 # type: =head2
23158 #: ../fish/guestfish-commands.pod:30
23159 msgid "copy-out"
23160 msgstr ""
23161
23162 # type: verbatim
23163 #: ../fish/guestfish-commands.pod:32
23164 #, no-wrap
23165 msgid ""
23166 " copy-out remote [remote ...] localdir\n"
23167 "\n"
23168 msgstr ""
23169
23170 # type: textblock
23171 #: ../fish/guestfish-commands.pod:34
23172 msgid ""
23173 "C<copy-out> copies remote files or directories recursively out of the disk "
23174 "image, placing them on the host disk in a local directory called C<localdir> "
23175 "(which must exist).  This guestfish meta-command turns into a sequence of "
23176 "L</download>, L</tar-out> and other commands as necessary."
23177 msgstr ""
23178
23179 # type: textblock
23180 #: ../fish/guestfish-commands.pod:40
23181 msgid ""
23182 "Multiple remote files and directories can be specified, but the last "
23183 "parameter must always be a local directory.  To download to the current "
23184 "directory, use C<.> as in:"
23185 msgstr ""
23186
23187 # type: verbatim
23188 #: ../fish/guestfish-commands.pod:44
23189 #, no-wrap
23190 msgid ""
23191 " copy-out /home .\n"
23192 "\n"
23193 msgstr ""
23194
23195 # type: textblock
23196 #: ../fish/guestfish-commands.pod:46
23197 msgid ""
23198 "Wildcards cannot be used in the ordinary command, but you can use them with "
23199 "the help of L</glob> like this:"
23200 msgstr ""
23201
23202 # type: verbatim
23203 #: ../fish/guestfish-commands.pod:49
23204 #, no-wrap
23205 msgid ""
23206 " glob copy-out /home/* .\n"
23207 "\n"
23208 msgstr ""
23209
23210 # type: =head2
23211 #: ../fish/guestfish-commands.pod:51
23212 msgid "echo"
23213 msgstr ""
23214
23215 # type: verbatim
23216 #: ../fish/guestfish-commands.pod:53
23217 #, no-wrap
23218 msgid ""
23219 " echo [params ...]\n"
23220 "\n"
23221 msgstr ""
23222
23223 # type: textblock
23224 #: ../fish/guestfish-commands.pod:55
23225 msgid "This echos the parameters to the terminal."
23226 msgstr ""
23227
23228 # type: =head2
23229 #: ../fish/guestfish-commands.pod:57
23230 msgid "edit"
23231 msgstr ""
23232
23233 # type: =head2
23234 #: ../fish/guestfish-commands.pod:59
23235 msgid "vi"
23236 msgstr ""
23237
23238 # type: =head2
23239 #: ../fish/guestfish-commands.pod:61
23240 msgid "emacs"
23241 msgstr ""
23242
23243 # type: verbatim
23244 #: ../fish/guestfish-commands.pod:63
23245 #, no-wrap
23246 msgid ""
23247 " edit filename\n"
23248 "\n"
23249 msgstr ""
23250
23251 # type: textblock
23252 #: ../fish/guestfish-commands.pod:65
23253 msgid ""
23254 "This is used to edit a file.  It downloads the file, edits it locally using "
23255 "your editor, then uploads the result."
23256 msgstr ""
23257
23258 # type: textblock
23259 #: ../fish/guestfish-commands.pod:68
23260 msgid ""
23261 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23262 "or C<emacs> you will get those corresponding editors."
23263 msgstr ""
23264
23265 # type: =head2
23266 #: ../fish/guestfish-commands.pod:72
23267 msgid "glob"
23268 msgstr ""
23269
23270 # type: verbatim
23271 #: ../fish/guestfish-commands.pod:74
23272 #, no-wrap
23273 msgid ""
23274 " glob command args...\n"
23275 "\n"
23276 msgstr ""
23277
23278 # type: textblock
23279 #: ../fish/guestfish-commands.pod:76
23280 msgid ""
23281 "Expand wildcards in any paths in the args list, and run C<command> "
23282 "repeatedly on each matching path."
23283 msgstr ""
23284
23285 # type: textblock
23286 #: ../fish/guestfish-commands.pod:79
23287 msgid "See L</WILDCARDS AND GLOBBING>."
23288 msgstr ""
23289
23290 # type: =head2
23291 #: ../fish/guestfish-commands.pod:81
23292 msgid "hexedit"
23293 msgstr ""
23294
23295 # type: verbatim
23296 #: ../fish/guestfish-commands.pod:83
23297 #, no-wrap
23298 msgid ""
23299 " hexedit <filename|device>\n"
23300 " hexedit <filename|device> <max>\n"
23301 " hexedit <filename|device> <start> <max>\n"
23302 "\n"
23303 msgstr ""
23304
23305 # type: textblock
23306 #: ../fish/guestfish-commands.pod:87
23307 msgid ""
23308 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23309 "device."
23310 msgstr ""
23311
23312 # type: textblock
23313 #: ../fish/guestfish-commands.pod:90
23314 msgid ""
23315 "This command works by downloading potentially the whole file or device, "
23316 "editing it locally, then uploading it.  If the file or device is large, you "
23317 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23318 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23319 "usual modifiers allowed such as C<1M> (1 megabyte)."
23320 msgstr ""
23321
23322 # type: textblock
23323 #: ../fish/guestfish-commands.pod:97
23324 msgid "For example to edit the first few sectors of a disk you might do:"
23325 msgstr ""
23326
23327 # type: verbatim
23328 #: ../fish/guestfish-commands.pod:100
23329 #, no-wrap
23330 msgid ""
23331 " hexedit /dev/sda 1M\n"
23332 "\n"
23333 msgstr ""
23334
23335 # type: textblock
23336 #: ../fish/guestfish-commands.pod:102
23337 msgid ""
23338 "which would allow you to edit anywhere within the first megabyte of the "
23339 "disk."
23340 msgstr ""
23341
23342 # type: textblock
23343 #: ../fish/guestfish-commands.pod:105
23344 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23345 msgstr ""
23346
23347 # type: verbatim
23348 #: ../fish/guestfish-commands.pod:107
23349 #, no-wrap
23350 msgid ""
23351 " hexedit /dev/sda1 0x400 0x400\n"
23352 "\n"
23353 msgstr ""
23354
23355 # type: textblock
23356 #: ../fish/guestfish-commands.pod:109
23357 msgid "(assuming the superblock is in the standard location)."
23358 msgstr ""
23359
23360 # type: textblock
23361 #: ../fish/guestfish-commands.pod:111
23362 msgid ""
23363 "This command requires the external L<hexedit(1)> program.  You can specify "
23364 "another program to use by setting the C<HEXEDITOR> environment variable."
23365 msgstr ""
23366
23367 # type: textblock
23368 #: ../fish/guestfish-commands.pod:115
23369 msgid "See also L</hexdump>."
23370 msgstr ""
23371
23372 # type: =head2
23373 #: ../fish/guestfish-commands.pod:117
23374 msgid "lcd"
23375 msgstr ""
23376
23377 # type: verbatim
23378 #: ../fish/guestfish-commands.pod:119
23379 #, no-wrap
23380 msgid ""
23381 " lcd directory\n"
23382 "\n"
23383 msgstr ""
23384
23385 # type: textblock
23386 #: ../fish/guestfish-commands.pod:121
23387 msgid "Change the local directory, ie. the current directory of guestfish itself."
23388 msgstr ""
23389
23390 # type: textblock
23391 #: ../fish/guestfish-commands.pod:124
23392 msgid "Note that C<!cd> won't do what you might expect."
23393 msgstr ""
23394
23395 # type: =head2
23396 #: ../fish/guestfish-commands.pod:126
23397 msgid "man"
23398 msgstr ""
23399
23400 # type: =head2
23401 #: ../fish/guestfish-commands.pod:128
23402 msgid "manual"
23403 msgstr ""
23404
23405 # type: verbatim
23406 #: ../fish/guestfish-commands.pod:130
23407 #, no-wrap
23408 msgid ""
23409 "  man\n"
23410 "\n"
23411 msgstr ""
23412
23413 # type: textblock
23414 #: ../fish/guestfish-commands.pod:132
23415 msgid "Opens the manual page for guestfish."
23416 msgstr ""
23417
23418 # type: =head2
23419 #: ../fish/guestfish-commands.pod:134
23420 msgid "more"
23421 msgstr ""
23422
23423 # type: =head2
23424 #: ../fish/guestfish-commands.pod:136
23425 msgid "less"
23426 msgstr ""
23427
23428 # type: verbatim
23429 #: ../fish/guestfish-commands.pod:138
23430 #, no-wrap
23431 msgid ""
23432 " more filename\n"
23433 "\n"
23434 msgstr ""
23435
23436 # type: verbatim
23437 #: ../fish/guestfish-commands.pod:140
23438 #, no-wrap
23439 msgid ""
23440 " less filename\n"
23441 "\n"
23442 msgstr ""
23443
23444 # type: textblock
23445 #: ../fish/guestfish-commands.pod:142
23446 msgid "This is used to view a file."
23447 msgstr ""
23448
23449 # type: textblock
23450 #: ../fish/guestfish-commands.pod:144
23451 msgid ""
23452 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23453 "C<less> you will get the C<less> command specifically."
23454 msgstr ""
23455
23456 # type: =head2
23457 #: ../fish/guestfish-commands.pod:147
23458 msgid "reopen"
23459 msgstr ""
23460
23461 # type: verbatim
23462 #: ../fish/guestfish-commands.pod:149
23463 #, no-wrap
23464 msgid ""
23465 "  reopen\n"
23466 "\n"
23467 msgstr ""
23468
23469 # type: textblock
23470 #: ../fish/guestfish-commands.pod:151
23471 msgid ""
23472 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23473 "normally, because the handle is closed properly when guestfish exits.  "
23474 "However this is occasionally useful for testing."
23475 msgstr ""
23476
23477 # type: =head2
23478 #: ../fish/guestfish-commands.pod:155
23479 msgid "sparse"
23480 msgstr ""
23481
23482 # type: verbatim
23483 #: ../fish/guestfish-commands.pod:157
23484 #, no-wrap
23485 msgid ""
23486 " sparse filename size\n"
23487 "\n"
23488 msgstr ""
23489
23490 # type: textblock
23491 #: ../fish/guestfish-commands.pod:159
23492 msgid ""
23493 "This creates an empty sparse file of the given size, and then adds so it can "
23494 "be further examined."
23495 msgstr ""
23496
23497 # type: textblock
23498 #: ../fish/guestfish-commands.pod:162
23499 msgid ""
23500 "In all respects it works the same as the L</alloc> command, except that the "
23501 "image file is allocated sparsely, which means that disk blocks are not "
23502 "assigned to the file until they are needed.  Sparse disk files only use "
23503 "space when written to, but they are slower and there is a danger you could "
23504 "run out of real disk space during a write operation."
23505 msgstr ""
23506
23507 # type: =head2
23508 #: ../fish/guestfish-commands.pod:172
23509 msgid "supported"
23510 msgstr ""
23511
23512 # type: verbatim
23513 #: ../fish/guestfish-commands.pod:174
23514 #, no-wrap
23515 msgid ""
23516 " supported\n"
23517 "\n"
23518 msgstr ""
23519
23520 # type: textblock
23521 #: ../fish/guestfish-commands.pod:176
23522 msgid ""
23523 "This command returns a list of the optional groups known to the daemon, and "
23524 "indicates which ones are supported by this build of the libguestfs "
23525 "appliance."
23526 msgstr ""
23527
23528 # type: textblock
23529 #: ../fish/guestfish-commands.pod:180
23530 msgid "See also L<guestfs(3)/AVAILABILITY>."
23531 msgstr ""
23532
23533 # type: =head2
23534 #: ../fish/guestfish-commands.pod:182
23535 msgid "time"
23536 msgstr ""
23537
23538 # type: verbatim
23539 #: ../fish/guestfish-commands.pod:184
23540 #, no-wrap
23541 msgid ""
23542 " time command args...\n"
23543 "\n"
23544 msgstr ""
23545
23546 # type: textblock
23547 #: ../fish/guestfish-commands.pod:186
23548 msgid ""
23549 "Run the command as usual, but print the elapsed time afterwards.  This can "
23550 "be useful for benchmarking operations."
23551 msgstr ""
23552
23553 # type: textblock
23554 #: ../test-tool/libguestfs-test-tool.pod:5
23555 msgid "libguestfs-test-tool - End user tests for libguestfs"
23556 msgstr ""
23557
23558 # type: verbatim
23559 #: ../test-tool/libguestfs-test-tool.pod:9
23560 #, no-wrap
23561 msgid ""
23562 " libguestfs-test-tool [--options]\n"
23563 "\n"
23564 msgstr ""
23565
23566 # type: textblock
23567 #: ../test-tool/libguestfs-test-tool.pod:13
23568 msgid ""
23569 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23570 "and developers, to allow them to check basic libguestfs functionality is "
23571 "working.  This is needed because libguestfs occasionally breaks for reasons "
23572 "beyond our control: usually because of changes in the underlying qemu or "
23573 "kernel packages, or the host environment."
23574 msgstr ""
23575
23576 # type: textblock
23577 #: ../test-tool/libguestfs-test-tool.pod:20
23578 msgid "If you suspect a problem in libguestfs, then just run:"
23579 msgstr ""
23580
23581 # type: verbatim
23582 #: ../test-tool/libguestfs-test-tool.pod:22
23583 #, no-wrap
23584 msgid ""
23585 " libguestfs-test-tool\n"
23586 "\n"
23587 msgstr ""
23588
23589 # type: textblock
23590 #: ../test-tool/libguestfs-test-tool.pod:24
23591 msgid "It will print lots of diagnostic messages."
23592 msgstr ""
23593
23594 # type: textblock
23595 #: ../test-tool/libguestfs-test-tool.pod:26
23596 msgid "If it runs to completion successfully, you will see this near the end:"
23597 msgstr ""
23598
23599 # type: verbatim
23600 #: ../test-tool/libguestfs-test-tool.pod:28
23601 #, no-wrap
23602 msgid ""
23603 " ===== TEST FINISHED OK =====\n"
23604 "\n"
23605 msgstr ""
23606
23607 # type: textblock
23608 #: ../test-tool/libguestfs-test-tool.pod:30
23609 msgid "and the test tool will exit with code 0."
23610 msgstr ""
23611
23612 # type: textblock
23613 #: ../test-tool/libguestfs-test-tool.pod:32
23614 msgid ""
23615 "If it fails (and/or exits with non-zero error code), please paste the "
23616 "B<complete, unedited> output of the test tool into a bug report.  More "
23617 "information about reporting bugs can be found on the "
23618 "L<http://libguestfs.org/> website."
23619 msgstr ""
23620
23621 # type: =item
23622 #: ../test-tool/libguestfs-test-tool.pod:41
23623 msgid "I<--help>"
23624 msgstr ""
23625
23626 # type: textblock
23627 #: ../test-tool/libguestfs-test-tool.pod:43
23628 msgid "Display short usage information and exit."
23629 msgstr ""
23630
23631 # type: =item
23632 #: ../test-tool/libguestfs-test-tool.pod:45
23633 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23634 msgstr ""
23635
23636 # type: textblock
23637 #: ../test-tool/libguestfs-test-tool.pod:47
23638 msgid ""
23639 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23640 "normally look in the C<$libexec> directory that was configured when the tool "
23641 "was built."
23642 msgstr ""
23643
23644 # type: =item
23645 #: ../test-tool/libguestfs-test-tool.pod:51
23646 msgid "I<--qemu qemu_binary>"
23647 msgstr ""
23648
23649 # type: textblock
23650 #: ../test-tool/libguestfs-test-tool.pod:53
23651 msgid ""
23652 "If you have downloaded another qemu binary, point this option at the full "
23653 "path of the binary to try it."
23654 msgstr ""
23655
23656 # type: =item
23657 #: ../test-tool/libguestfs-test-tool.pod:56
23658 msgid "I<--qemudir qemu_source_dir>"
23659 msgstr ""
23660
23661 # type: textblock
23662 #: ../test-tool/libguestfs-test-tool.pod:58
23663 msgid ""
23664 "If you have compiled qemu from source, point this option at the source "
23665 "directory to try it."
23666 msgstr ""
23667
23668 # type: =item
23669 #: ../test-tool/libguestfs-test-tool.pod:61
23670 msgid "I<--timeout N>"
23671 msgstr ""
23672
23673 # type: textblock
23674 #: ../test-tool/libguestfs-test-tool.pod:63
23675 msgid ""
23676 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23677 "does not usually need to be adjusted unless your machine is very slow."
23678 msgstr ""
23679
23680 # type: =head1
23681 #: ../test-tool/libguestfs-test-tool.pod:69
23682 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23683 msgstr ""
23684
23685 # type: textblock
23686 #: ../test-tool/libguestfs-test-tool.pod:71
23687 msgid ""
23688 "If you have compiled another version of qemu from source and would like to "
23689 "try that, then you can use the I<--qemudir> option to point to the qemu "
23690 "source directory."
23691 msgstr ""
23692
23693 # type: textblock
23694 #: ../test-tool/libguestfs-test-tool.pod:75
23695 msgid ""
23696 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23697 "option to point to the binary."
23698 msgstr ""
23699
23700 # type: textblock
23701 #: ../test-tool/libguestfs-test-tool.pod:78
23702 msgid ""
23703 "When using an alternate qemu with libguestfs, usually you would need to "
23704 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
23705 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
23706 "when you use either of the I<--qemudir> or I<--qemu> options."
23707 msgstr ""
23708
23709 # type: textblock
23710 #: ../test-tool/libguestfs-test-tool.pod:85
23711 msgid ""
23712 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23713 "I<1> if there was an error."
23714 msgstr ""
23715
23716 # type: =item
23717 #: ../test-tool/libguestfs-test-tool.pod:92
23718 msgid "/usr/libexec/libguestfs-test-tool-helper"
23719 msgstr ""
23720
23721 # type: textblock
23722 #: ../test-tool/libguestfs-test-tool.pod:94
23723 msgid ""
23724 "This helper program is run inside the appliance and provides additional "
23725 "tests."
23726 msgstr ""
23727
23728 # type: =item
23729 #: ../test-tool/libguestfs-test-tool.pod:97
23730 msgid "/usr/bin/mkisofs"
23731 msgstr ""
23732
23733 # type: textblock
23734 #: ../test-tool/libguestfs-test-tool.pod:99
23735 msgid ""
23736 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23737 "which is used as part of the tests."
23738 msgstr ""
23739
23740 # type: textblock
23741 #: ../test-tool/libguestfs-test-tool.pod:106
23742 msgid ""
23743 "For the full list of environment variables which may affect libguestfs, "
23744 "please see the L<guestfs(3)> manual page."
23745 msgstr ""
23746
23747 # type: textblock
23748 #: ../test-tool/libguestfs-test-tool.pod:111
23749 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23750 msgstr ""
23751
23752 # type: textblock
23753 #: ../test-tool/libguestfs-test-tool.pod:121
23754 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23755 msgstr ""
23756
23757 # type: textblock
23758 #: ../fuse/guestmount.pod:5
23759 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23760 msgstr ""
23761
23762 # type: verbatim
23763 #: ../fuse/guestmount.pod:9
23764 #, no-wrap
23765 msgid ""
23766 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23767 "\n"
23768 msgstr ""
23769
23770 # type: verbatim
23771 #: ../fuse/guestmount.pod:11
23772 #, no-wrap
23773 msgid ""
23774 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23775 "\n"
23776 msgstr ""
23777
23778 # type: verbatim
23779 #: ../fuse/guestmount.pod:13
23780 #, no-wrap
23781 msgid ""
23782 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23783 "\n"
23784 msgstr ""
23785
23786 # type: textblock
23787 #: ../fuse/guestmount.pod:17
23788 msgid ""
23789 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23790 "machines.  If you do this, you risk disk corruption in the VM."
23791 msgstr ""
23792
23793 # type: textblock
23794 #: ../fuse/guestmount.pod:22
23795 msgid ""
23796 "The guestmount program can be used to mount virtual machine filesystems and "
23797 "other disk images on the host.  It uses libguestfs for access to the guest "
23798 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23799 "a mountable device."
23800 msgstr ""
23801
23802 # type: textblock
23803 #: ../fuse/guestmount.pod:27
23804 msgid ""
23805 "Along with other options, you have to give at least one device (I<-a> "
23806 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23807 "option) or use the I<-i> inspection option.  How this works is better "
23808 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
23809 "below."
23810 msgstr ""
23811
23812 # type: textblock
23813 #: ../fuse/guestmount.pod:33
23814 msgid ""
23815 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23816 "by you, and the filesystem will not be visible to any other users unless you "
23817 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23818 "the filesystem, use the C<fusermount -u> command."
23819 msgstr ""
23820
23821 # type: textblock
23822 #: ../fuse/guestmount.pod:41
23823 msgid ""
23824 "For a typical Windows guest which has its main filesystem on the first "
23825 "partition:"
23826 msgstr ""
23827
23828 # type: verbatim
23829 #: ../fuse/guestmount.pod:44
23830 #, no-wrap
23831 msgid ""
23832 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23833 "\n"
23834 msgstr ""
23835
23836 # type: textblock
23837 #: ../fuse/guestmount.pod:46
23838 msgid ""
23839 "For a typical Linux guest which has a /boot filesystem on the first "
23840 "partition, and the root filesystem on a logical volume:"
23841 msgstr ""
23842
23843 # type: verbatim
23844 #: ../fuse/guestmount.pod:49
23845 #, no-wrap
23846 msgid ""
23847 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23848 "\n"
23849 msgstr ""
23850
23851 # type: textblock
23852 #: ../fuse/guestmount.pod:51
23853 msgid "To get libguestfs to detect guest mountpoints for you:"
23854 msgstr ""
23855
23856 # type: verbatim
23857 #: ../fuse/guestmount.pod:53
23858 #, no-wrap
23859 msgid ""
23860 " guestmount -a guest.img -i --ro /mnt\n"
23861 "\n"
23862 msgstr ""
23863
23864 # type: textblock
23865 #: ../fuse/guestmount.pod:55
23866 msgid "For a libvirt guest called \"Guest\" you could do:"
23867 msgstr ""
23868
23869 # type: verbatim
23870 #: ../fuse/guestmount.pod:57
23871 #, no-wrap
23872 msgid ""
23873 " guestmount -d Guest -i --ro /mnt\n"
23874 "\n"
23875 msgstr ""
23876
23877 # type: textblock
23878 #: ../fuse/guestmount.pod:59
23879 msgid ""
23880 "If you don't know what filesystems are contained in a guest or disk image, "
23881 "use L<virt-list-filesystems(1)> first:"
23882 msgstr ""
23883
23884 # type: verbatim
23885 #: ../fuse/guestmount.pod:62
23886 #, no-wrap
23887 msgid ""
23888 " virt-list-filesystems MyGuest\n"
23889 "\n"
23890 msgstr ""
23891
23892 # type: textblock
23893 #: ../fuse/guestmount.pod:64
23894 msgid ""
23895 "If you want to trace the libguestfs calls but without excessive debugging "
23896 "information, we recommend:"
23897 msgstr ""
23898
23899 # type: verbatim
23900 #: ../fuse/guestmount.pod:67
23901 #, no-wrap
23902 msgid ""
23903 " guestmount [...] --trace /mnt\n"
23904 "\n"
23905 msgstr ""
23906
23907 # type: textblock
23908 #: ../fuse/guestmount.pod:69
23909 msgid "If you want to debug the program, we recommend:"
23910 msgstr ""
23911
23912 # type: verbatim
23913 #: ../fuse/guestmount.pod:71
23914 #, no-wrap
23915 msgid ""
23916 " guestmount [...] --trace --verbose /mnt\n"
23917 "\n"
23918 msgstr ""
23919
23920 # type: textblock
23921 #: ../fuse/guestmount.pod:79
23922 msgid "Add a block device or virtual machine image."
23923 msgstr ""
23924
23925 # type: =item
23926 #: ../fuse/guestmount.pod:96
23927 msgid "B<--dir-cache-timeout N>"
23928 msgstr ""
23929
23930 # type: textblock
23931 #: ../fuse/guestmount.pod:98
23932 msgid ""
23933 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23934 "seconds.  The readdir cache [actually, there are several semi-independent "
23935 "caches] is populated after a readdir(2) call with the stat and extended "
23936 "attributes of the files in the directory, in anticipation that they will be "
23937 "requested soon after."
23938 msgstr ""
23939
23940 # type: textblock
23941 #: ../fuse/guestmount.pod:104
23942 msgid ""
23943 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23944 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23945 "requests, only cache existing ones."
23946 msgstr ""
23947
23948 # type: textblock
23949 #: ../fuse/guestmount.pod:115
23950 msgid ""
23951 "If you have untrusted raw-format guest disk images, you should use this "
23952 "option to specify the disk format.  This avoids a possible security problem "
23953 "with malicious guests (CVE-2010-3851).  See also "
23954 "L<guestfs(3)/guestfs_add_drive_opts>."
23955 msgstr ""
23956
23957 # type: =item
23958 #: ../fuse/guestmount.pod:120
23959 msgid "B<--fuse-help>"
23960 msgstr ""
23961
23962 # type: textblock
23963 #: ../fuse/guestmount.pod:122
23964 msgid "Display help on special FUSE options (see I<-o> below)."
23965 msgstr ""
23966
23967 # type: textblock
23968 #: ../fuse/guestmount.pod:126
23969 msgid "Display brief help and exit."
23970 msgstr ""
23971
23972 # type: =item
23973 #: ../fuse/guestmount.pod:134
23974 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
23975 msgstr ""
23976
23977 # type: textblock
23978 #: ../fuse/guestmount.pod:136
23979 msgid ""
23980 "Mount the named partition or logical volume on the given mountpoint B<in the "
23981 "guest> (this has nothing to do with mountpoints in the host)."
23982 msgstr ""
23983
23984 # type: textblock
23985 #: ../fuse/guestmount.pod:139
23986 msgid ""
23987 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23988 "something on C</>."
23989 msgstr ""
23990
23991 # type: textblock
23992 #: ../fuse/guestmount.pod:144
23993 msgid ""
23994 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23995 "unmounted.  If you specify this option, then we don't attempt to sync the "
23996 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23997 msgstr ""
23998
23999 # type: =item
24000 #: ../fuse/guestmount.pod:149
24001 msgid "B<-o option> | B<--option option>"
24002 msgstr ""
24003
24004 # type: textblock
24005 #: ../fuse/guestmount.pod:151
24006 msgid "Pass extra options to FUSE."
24007 msgstr ""
24008
24009 # type: textblock
24010 #: ../fuse/guestmount.pod:153
24011 msgid ""
24012 "To get a list of all the extra options supported by FUSE, use the command "
24013 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24014 "of them are a good idea."
24015 msgstr ""
24016
24017 # type: verbatim
24018 #: ../fuse/guestmount.pod:157
24019 #, no-wrap
24020 msgid ""
24021 " guestmount --fuse-help\n"
24022 "\n"
24023 msgstr ""
24024
24025 # type: textblock
24026 #: ../fuse/guestmount.pod:159
24027 msgid "Some potentially useful FUSE options:"
24028 msgstr ""
24029
24030 # type: =item
24031 #: ../fuse/guestmount.pod:163
24032 msgid "B<-o allow_other>"
24033 msgstr ""
24034
24035 # type: textblock
24036 #: ../fuse/guestmount.pod:165
24037 msgid "Allow other users to see the filesystem."
24038 msgstr ""
24039
24040 # type: =item
24041 #: ../fuse/guestmount.pod:167
24042 msgid "B<-o attr_timeout=N>"
24043 msgstr ""
24044
24045 # type: textblock
24046 #: ../fuse/guestmount.pod:169
24047 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24048 msgstr ""
24049
24050 # type: =item
24051 #: ../fuse/guestmount.pod:171
24052 msgid "B<-o kernel_cache>"
24053 msgstr ""
24054
24055 # type: textblock
24056 #: ../fuse/guestmount.pod:173
24057 msgid ""
24058 "Allow the kernel to cache files (reduces the number of reads that have to go "
24059 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24060 "afford the extra memory usage."
24061 msgstr ""
24062
24063 # type: =item
24064 #: ../fuse/guestmount.pod:177
24065 msgid "B<-o uid=N> B<-o gid=N>"
24066 msgstr ""
24067
24068 # type: textblock
24069 #: ../fuse/guestmount.pod:179
24070 msgid ""
24071 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24072 "the chosen values."
24073 msgstr ""
24074
24075 # type: textblock
24076 #: ../fuse/guestmount.pod:186
24077 msgid ""
24078 "Add devices and mount everything read-only.  Also disallow writes and make "
24079 "the disk appear read-only to FUSE."
24080 msgstr ""
24081
24082 # type: textblock
24083 #: ../fuse/guestmount.pod:189
24084 msgid ""
24085 "This is highly recommended if you are not going to edit the guest disk.  If "
24086 "the guest is running and this option is I<not> supplied, then there is a "
24087 "strong risk of disk corruption in the guest.  We try to prevent this from "
24088 "happening, but it is not always possible."
24089 msgstr ""
24090
24091 # type: textblock
24092 #: ../fuse/guestmount.pod:196
24093 msgid "Enable SELinux support for the guest."
24094 msgstr ""
24095
24096 # type: textblock
24097 #: ../fuse/guestmount.pod:200
24098 msgid "Enable verbose messages from underlying libguestfs."
24099 msgstr ""
24100
24101 # type: textblock
24102 #: ../fuse/guestmount.pod:204
24103 msgid "Display the program version and exit."
24104 msgstr ""
24105
24106 # type: =item
24107 #: ../fuse/guestmount.pod:206
24108 msgid "B<-x> | B<--trace>"
24109 msgstr ""
24110
24111 # type: textblock
24112 #: ../fuse/guestmount.pod:208
24113 msgid "Trace libguestfs calls."
24114 msgstr ""
24115
24116 # type: textblock
24117 #: ../fuse/guestmount.pod:210
24118 msgid "This also stops the daemon from forking into the background."
24119 msgstr ""
24120
24121 # type: textblock
24122 #: ../fuse/guestmount.pod:216
24123 msgid ""
24124 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24125 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
24126 "L<http://fuse.sf.net/>."
24127 msgstr ""
24128
24129 # type: textblock
24130 #: ../inspector/virt-inspector.pl:35
24131 msgid ""
24132 "virt-inspector - Display operating system version and other information "
24133 "about a virtual machine"
24134 msgstr ""
24135
24136 # type: verbatim
24137 #: ../inspector/virt-inspector.pl:39
24138 #, no-wrap
24139 msgid ""
24140 " virt-inspector [--connect URI] domname\n"
24141 "\n"
24142 msgstr ""
24143
24144 # type: verbatim
24145 #: ../inspector/virt-inspector.pl:41
24146 #, no-wrap
24147 msgid ""
24148 " virt-inspector guest.img [guest.img ...]\n"
24149 "\n"
24150 msgstr ""
24151
24152 # type: textblock
24153 #: ../inspector/virt-inspector.pl:45
24154 msgid ""
24155 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24156 "determine the version of the operating system and other information about "
24157 "the virtual machine."
24158 msgstr ""
24159
24160 # type: textblock
24161 #: ../inspector/virt-inspector.pl:49
24162 msgid "Virt-inspector produces XML output for feeding into other programs."
24163 msgstr ""
24164
24165 # type: textblock
24166 #: ../inspector/virt-inspector.pl:51
24167 msgid ""
24168 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24169 "libvirt domain (see: C<virsh list --all>)."
24170 msgstr ""
24171
24172 # type: textblock
24173 #: ../inspector/virt-inspector.pl:54
24174 msgid ""
24175 "You can also run virt-inspector directly on disk images from a single "
24176 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24177 "has several block devices, in which case you should list them one after "
24178 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24179 "to the guest's C</dev/sdb> and so on."
24180 msgstr ""
24181
24182 # type: textblock
24183 #: ../inspector/virt-inspector.pl:60
24184 msgid ""
24185 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24186 "inspect several virtual machines, you have to run virt-inspector several "
24187 "times (for example, from a shell script for-loop)."
24188 msgstr ""
24189
24190 # type: textblock
24191 #: ../inspector/virt-inspector.pl:65
24192 msgid ""
24193 "Because virt-inspector needs direct access to guest images, it won't "
24194 "normally work over remote libvirt connections."
24195 msgstr ""
24196
24197 # type: textblock
24198 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88 ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89 ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
24199 msgid "Display brief help."
24200 msgstr ""
24201
24202 # type: =item
24203 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94 ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66 ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
24204 msgid "B<--version>"
24205 msgstr ""
24206
24207 # type: textblock
24208 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96 ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68 ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
24209 msgid "Display version number and exit."
24210 msgstr ""
24211
24212 # type: =item
24213 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102 ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103 ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
24214 msgid "B<--connect URI> | B<-c URI>"
24215 msgstr ""
24216
24217 # type: textblock
24218 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104 ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105 ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
24219 msgid ""
24220 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24221 "to the default libvirt hypervisor."
24222 msgstr ""
24223
24224 # type: textblock
24225 #: ../inspector/virt-inspector.pl:97
24226 msgid ""
24227 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24228 "you specify guest block devices directly, then libvirt is not used at all."
24229 msgstr ""
24230
24231 # type: =item
24232 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117 ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523 ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115 ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
24233 msgid "B<--format> raw"
24234 msgstr ""
24235
24236 # type: textblock
24237 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119 ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88 ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
24238 msgid ""
24239 "Specify the format of disk images given on the command line.  If this is "
24240 "omitted then the format is autodetected from the content of the disk image."
24241 msgstr ""
24242
24243 # type: textblock
24244 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123 ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92 ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
24245 msgid ""
24246 "If disk images are requested from libvirt, then this program asks libvirt "
24247 "for this information.  In this case, the value of the format parameter is "
24248 "ignored."
24249 msgstr ""
24250
24251 # type: textblock
24252 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127 ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528 ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96 ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
24253 msgid ""
24254 "If working with untrusted raw-format guest disk images, you should ensure "
24255 "the format is always specified."
24256 msgstr ""
24257
24258 # type: =head1
24259 #: ../inspector/virt-inspector.pl:149
24260 msgid "XML FORMAT"
24261 msgstr ""
24262
24263 # type: textblock
24264 #: ../inspector/virt-inspector.pl:151
24265 msgid ""
24266 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
24267 "supplied with libguestfs.  This section is just an overview."
24268 msgstr ""
24269
24270 # type: textblock
24271 #: ../inspector/virt-inspector.pl:154
24272 msgid ""
24273 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
24274 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
24275 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
24276 "which is vanishingly rare in real world VMs."
24277 msgstr ""
24278
24279 # type: =head2
24280 #: ../inspector/virt-inspector.pl:159
24281 msgid "E<lt>operatingsystemE<gt>"
24282 msgstr ""
24283
24284 # type: textblock
24285 #: ../inspector/virt-inspector.pl:161
24286 msgid ""
24287 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
24288 "describe the operating system, its architecture, the descriptive \"product "
24289 "name\" string, the type of OS and so on, as in this example:"
24290 msgstr ""
24291
24292 # type: verbatim
24293 #: ../inspector/virt-inspector.pl:165
24294 #, no-wrap
24295 msgid ""
24296 " <operatingsystems>\n"
24297 "   <operatingsystem>\n"
24298 "     <root>/dev/sda2</root>\n"
24299 "     <name>windows</name>\n"
24300 "     <arch>i386</arch>\n"
24301 "     <distro>windows</distro>\n"
24302 "     <product_name>Windows 7 Enterprise</product_name>\n"
24303 "     <major_version>6</major_version>\n"
24304 "     <minor_version>1</minor_version>\n"
24305 "     <windows_systemroot>/Windows</windows_systemroot>\n"
24306 "\n"
24307 msgstr ""
24308
24309 # type: textblock
24310 #: ../inspector/virt-inspector.pl:176
24311 msgid ""
24312 "These fields are derived from the libguestfs inspection API, and you can "
24313 "find more details in L<guestfs(3)/INSPECTION>."
24314 msgstr ""
24315
24316 # type: textblock
24317 #: ../inspector/virt-inspector.pl:179
24318 msgid ""
24319 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
24320 "of view of libguestfs (block devices may have completely different names "
24321 "inside the VM itself)."
24322 msgstr ""
24323
24324 # type: =head2
24325 #: ../inspector/virt-inspector.pl:240
24326 msgid "E<lt>mountpointsE<gt>"
24327 msgstr ""
24328
24329 # type: textblock
24330 #: ../inspector/virt-inspector.pl:242
24331 msgid ""
24332 "Un*x-like guests typically have multiple filesystems which are mounted at "
24333 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
24334 "element which looks like this:"
24335 msgstr ""
24336
24337 # type: verbatim
24338 #: ../inspector/virt-inspector.pl:246
24339 #, no-wrap
24340 msgid ""
24341 " <operatingsystems>\n"
24342 "   <operatingsystem>\n"
24343 "     ...\n"
24344 "     <mountpoints>\n"
24345 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
24346 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
24347 "     </mountpoints>\n"
24348 "\n"
24349 msgstr ""
24350
24351 # type: textblock
24352 #: ../inspector/virt-inspector.pl:254
24353 msgid ""
24354 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
24355 "and may have completely different names inside the guest.  Only mountable "
24356 "filesystems appear in this list, not things like swap devices."
24357 msgstr ""
24358
24359 # type: =head2
24360 #: ../inspector/virt-inspector.pl:276
24361 msgid "E<lt>filesystemsE<gt>"
24362 msgstr ""
24363
24364 # type: textblock
24365 #: ../inspector/virt-inspector.pl:278
24366 msgid ""
24367 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
24368 "filesystems belonging to the guest, including swap and empty partitions.  "
24369 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
24370 "this OS or shared by this OS and other OSes)."
24371 msgstr ""
24372
24373 # type: textblock
24374 #: ../inspector/virt-inspector.pl:283
24375 msgid "You might see something like this:"
24376 msgstr ""
24377
24378 # type: verbatim
24379 #: ../inspector/virt-inspector.pl:285
24380 #, no-wrap
24381 msgid ""
24382 " <operatingsystems>\n"
24383 "   <operatingsystem>\n"
24384 "     ...\n"
24385 "     <filesystems>\n"
24386 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24387 "         <type>ext4</type>\n"
24388 "         <label>Fedora-13-x86_64</label>\n"
24389 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24390 "       </filesystem>\n"
24391 "\n"
24392 msgstr ""
24393
24394 # type: textblock
24395 #: ../inspector/virt-inspector.pl:295
24396 msgid ""
24397 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24398 "the label, and the UUID."
24399 msgstr ""
24400
24401 # type: =head2
24402 #: ../inspector/virt-inspector.pl:337
24403 msgid "E<lt>applicationsE<gt>"
24404 msgstr ""
24405
24406 # type: textblock
24407 #: ../inspector/virt-inspector.pl:339
24408 msgid ""
24409 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24410 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24411 "machine.  At the moment we are only able to list RPMs and Debian packages "
24412 "installed, but in future we will support other Linux distros and Windows."
24413 msgstr ""
24414
24415 # type: textblock
24416 #: ../inspector/virt-inspector.pl:345
24417 msgid ""
24418 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
24419 "Typical values would be C<rpm> and C<deb>."
24420 msgstr ""
24421
24422 # type: textblock
24423 #: ../inspector/virt-inspector.pl:348
24424 msgid ""
24425 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
24426 "Typical values include C<yum>, C<up2date> and C<apt>"
24427 msgstr ""
24428
24429 # type: textblock
24430 #: ../inspector/virt-inspector.pl:351
24431 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24432 msgstr ""
24433
24434 # type: verbatim
24435 #: ../inspector/virt-inspector.pl:354
24436 #, no-wrap
24437 msgid ""
24438 " <operatingsystems>\n"
24439 "   <operatingsystem>\n"
24440 "     ...\n"
24441 "     <applications>\n"
24442 "       <application>\n"
24443 "         <name>coreutils</name>\n"
24444 "         <version>8.5</version>\n"
24445 "         <release>1</release>\n"
24446 "       </application>\n"
24447 "\n"
24448 msgstr ""
24449
24450 # type: textblock
24451 #: ../inspector/virt-inspector.pl:364
24452 msgid ""
24453 "(The version and release fields may not be available for some package "
24454 "types)."
24455 msgstr ""
24456
24457 # type: =head1
24458 #: ../inspector/virt-inspector.pl:544
24459 msgid "USING XPATH"
24460 msgstr ""
24461
24462 # type: textblock
24463 #: ../inspector/virt-inspector.pl:546
24464 msgid ""
24465 "You can use the XPath query language, and/or the xpath tool, in order to "
24466 "select parts of the XML."
24467 msgstr ""
24468
24469 # type: verbatim
24470 #: ../inspector/virt-inspector.pl:551
24471 #, no-wrap
24472 msgid ""
24473 " $ virt-inspector Guest | xpath //filesystems\n"
24474 " Found 1 nodes:\n"
24475 " -- NODE --\n"
24476 " <filesystems>\n"
24477 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24478 "        <type>ext4</type>\n"
24479 " [etc]\n"
24480 "\n"
24481 msgstr ""
24482
24483 # type: verbatim
24484 #: ../inspector/virt-inspector.pl:559
24485 #, no-wrap
24486 msgid ""
24487 " $ virt-inspector Guest | \\\n"
24488 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24489 " Query didn't return a nodeset. Value: ext4\n"
24490 "\n"
24491 msgstr ""
24492
24493 # type: =head1
24494 #: ../inspector/virt-inspector.pl:563 ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477 ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225 ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179 ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
24495 msgid "SHELL QUOTING"
24496 msgstr ""
24497
24498 # type: textblock
24499 #: ../inspector/virt-inspector.pl:565 ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635 ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481 ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180 ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
24500 msgid ""
24501 "Libvirt guest names can contain arbitrary characters, some of which have "
24502 "meaning to the shell such as C<#> and space.  You may need to quote or "
24503 "escape these characters on the command line.  See the shell manual page "
24504 "L<sh(1)> for details."
24505 msgstr ""
24506
24507 # type: textblock
24508 #: ../inspector/virt-inspector.pl:572
24509 msgid ""
24510 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24511 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
24512 msgstr ""
24513
24514 # type: textblock
24515 #: ../inspector/virt-inspector.pl:586 ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651 ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197 ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
24516 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24517 msgstr ""
24518
24519 # type: textblock
24520 #: ../inspector/virt-inspector.pl:590
24521 msgid "Matthew Booth L<mbooth@redhat.com>"
24522 msgstr ""
24523
24524 # type: textblock
24525 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
24526 msgid "Copyright (C) 2010 Red Hat Inc."
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../tools/virt-edit.pl:34
24531 msgid "virt-edit - Edit a file in a virtual machine"
24532 msgstr ""
24533
24534 # type: verbatim
24535 #: ../tools/virt-edit.pl:38
24536 #, no-wrap
24537 msgid ""
24538 " virt-edit [--options] domname file\n"
24539 "\n"
24540 msgstr ""
24541
24542 # type: verbatim
24543 #: ../tools/virt-edit.pl:40
24544 #, no-wrap
24545 msgid ""
24546 " virt-edit [--options] disk.img [disk.img ...] file\n"
24547 "\n"
24548 msgstr ""
24549
24550 # type: verbatim
24551 #: ../tools/virt-edit.pl:42
24552 #, no-wrap
24553 msgid ""
24554 " virt-edit [domname|disk.img] file -e 'expr'\n"
24555 "\n"
24556 msgstr ""
24557
24558 # type: textblock
24559 #: ../tools/virt-edit.pl:46
24560 msgid ""
24561 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24562 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24563 "doing this, but doesn't catch all cases."
24564 msgstr ""
24565
24566 # type: textblock
24567 #: ../tools/virt-edit.pl:52
24568 msgid ""
24569 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24570 "the named virtual machine (or disk image)."
24571 msgstr ""
24572
24573 # type: textblock
24574 #: ../tools/virt-edit.pl:55
24575 msgid ""
24576 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24577 "you should look at the L<guestfish(1)> tool."
24578 msgstr ""
24579
24580 # type: textblock
24581 #: ../tools/virt-edit.pl:60
24582 msgid "Edit the named files interactively:"
24583 msgstr ""
24584
24585 # type: verbatim
24586 #: ../tools/virt-edit.pl:62
24587 #, no-wrap
24588 msgid ""
24589 " virt-edit mydomain /boot/grub/grub.conf\n"
24590 "\n"
24591 msgstr ""
24592
24593 # type: verbatim
24594 #: ../tools/virt-edit.pl:64
24595 #, no-wrap
24596 msgid ""
24597 " virt-edit mydomain /etc/passwd\n"
24598 "\n"
24599 msgstr ""
24600
24601 # type: textblock
24602 #: ../tools/virt-edit.pl:66
24603 msgid ""
24604 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
24605 "below).  To change the init default level to 5:"
24606 msgstr ""
24607
24608 # type: verbatim
24609 #: ../tools/virt-edit.pl:70
24610 #, no-wrap
24611 msgid ""
24612 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
24613 "\n"
24614 msgstr ""
24615
24616 # type: =item
24617 #: ../tools/virt-edit.pl:96
24618 msgid "B<--backup extension> | B<-b extension>"
24619 msgstr ""
24620
24621 # type: textblock
24622 #: ../tools/virt-edit.pl:98
24623 msgid ""
24624 "Create a backup of the original file I<in the guest disk image>.  The backup "
24625 "has the original filename with C<extension> added."
24626 msgstr ""
24627
24628 # type: textblock
24629 #: ../tools/virt-edit.pl:101
24630 msgid ""
24631 "Usually the first character of C<extension> would be a dot C<.> so you would "
24632 "write:"
24633 msgstr ""
24634
24635 # type: verbatim
24636 #: ../tools/virt-edit.pl:104
24637 #, no-wrap
24638 msgid ""
24639 " virt-edit -b .orig [etc]\n"
24640 "\n"
24641 msgstr ""
24642
24643 # type: textblock
24644 #: ../tools/virt-edit.pl:106
24645 msgid "By default, no backup file is made."
24646 msgstr ""
24647
24648 # type: textblock
24649 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208 ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107 ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108 ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
24650 msgid ""
24651 "If you specify guest block devices directly, then libvirt is not used at "
24652 "all."
24653 msgstr ""
24654
24655 # type: =item
24656 #: ../tools/virt-edit.pl:141
24657 msgid "B<--expr EXPR> | B<-e EXPR>"
24658 msgstr ""
24659
24660 # type: textblock
24661 #: ../tools/virt-edit.pl:143
24662 msgid ""
24663 "Instead of launching the external editor, non-interactively apply the Perl "
24664 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
24665 "EDITING> below."
24666 msgstr ""
24667
24668 # type: textblock
24669 #: ../tools/virt-edit.pl:147
24670 msgid ""
24671 "Be careful to properly quote the expression to prevent it from being altered "
24672 "by the shell."
24673 msgstr ""
24674
24675 # type: =head1
24676 #: ../tools/virt-edit.pl:268
24677 msgid "NON-INTERACTIVE EDITING"
24678 msgstr ""
24679
24680 # type: textblock
24681 #: ../tools/virt-edit.pl:270
24682 msgid ""
24683 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24684 "administrator can interactively edit the file."
24685 msgstr ""
24686
24687 # type: textblock
24688 #: ../tools/virt-edit.pl:273
24689 msgid ""
24690 "There are two ways also to use C<virt-edit> from scripts in order to make "
24691 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24692 "like this, it's less error-prone to write scripts directly using the "
24693 "libguestfs API and Augeas for configuration file editing.)"
24694 msgstr ""
24695
24696 # type: textblock
24697 #: ../tools/virt-edit.pl:279
24698 msgid ""
24699 "The first method is to temporarily set C<$EDITOR> to any script or program "
24700 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24701 "update C<tmpfile> in place however it likes."
24702 msgstr ""
24703
24704 # type: textblock
24705 #: ../tools/virt-edit.pl:283
24706 msgid ""
24707 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24708 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24709 "instances of C<foo> with C<bar> in a file:"
24710 msgstr ""
24711
24712 # type: verbatim
24713 #: ../tools/virt-edit.pl:287
24714 #, no-wrap
24715 msgid ""
24716 " virt-edit domname filename -e 's/foo/bar/'\n"
24717 "\n"
24718 msgstr ""
24719
24720 # type: textblock
24721 #: ../tools/virt-edit.pl:289
24722 msgid ""
24723 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24724 "For example to delete root's password you could do:"
24725 msgstr ""
24726
24727 # type: verbatim
24728 #: ../tools/virt-edit.pl:292
24729 #, no-wrap
24730 msgid ""
24731 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24732 "\n"
24733 msgstr ""
24734
24735 # type: textblock
24736 #: ../tools/virt-edit.pl:294
24737 msgid ""
24738 "What really happens is that the snippet is evaluated as a Perl expression "
24739 "for each line of the file.  The line, including the final C<\\n>, is passed "
24740 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24741 msgstr ""
24742
24743 # type: textblock
24744 #: ../tools/virt-edit.pl:299
24745 msgid ""
24746 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24747 "C<apache> user account from the password file you can do:"
24748 msgstr ""
24749
24750 # type: verbatim
24751 #: ../tools/virt-edit.pl:302
24752 #, no-wrap
24753 msgid ""
24754 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24755 "\n"
24756 msgstr ""
24757
24758 # type: textblock
24759 #: ../tools/virt-edit.pl:304
24760 msgid ""
24761 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24762 "the end of the file is rather difficult this way since there is no concept "
24763 "of \"last line of the file\" - your expression just doesn't get called "
24764 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24765 "want to do this."
24766 msgstr ""
24767
24768 # type: textblock
24769 #: ../tools/virt-edit.pl:310
24770 msgid ""
24771 "The variable C<$lineno> contains the current line number.  As is "
24772 "traditional, the first line in the file is number C<1>."
24773 msgstr ""
24774
24775 # type: textblock
24776 #: ../tools/virt-edit.pl:313
24777 msgid ""
24778 "The return value from the expression is ignored, but the expression may call "
24779 "C<die> in order to abort the whole program, leaving the original file "
24780 "untouched."
24781 msgstr ""
24782
24783 # type: textblock
24784 #: ../tools/virt-edit.pl:317
24785 msgid ""
24786 "Remember when matching the end of a line that C<$_> may contain the final "
24787 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24788 "newline then neither of these.  Thus to match or substitute some text at the "
24789 "end of a line, use this regular expression:"
24790 msgstr ""
24791
24792 # type: verbatim
24793 #: ../tools/virt-edit.pl:322
24794 #, no-wrap
24795 msgid ""
24796 " /some text(\\r?\\n)?$/\n"
24797 "\n"
24798 msgstr ""
24799
24800 # type: textblock
24801 #: ../tools/virt-edit.pl:324
24802 msgid ""
24803 "Alternately, use the perl C<chomp> function, being careful not to chomp "
24804 "C<$_> itself (since that would remove all newlines from the file):"
24805 msgstr ""
24806
24807 # type: verbatim
24808 #: ../tools/virt-edit.pl:328
24809 #, no-wrap
24810 msgid ""
24811 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24812 "\n"
24813 msgstr ""
24814
24815 # type: =item
24816 #: ../tools/virt-edit.pl:334
24817 msgid "C<EDITOR>"
24818 msgstr ""
24819
24820 # type: textblock
24821 #: ../tools/virt-edit.pl:336
24822 msgid ""
24823 "If set, this string is used as the editor.  It may contain arguments, "
24824 "eg. C<\"emacs -nw\">"
24825 msgstr ""
24826
24827 # type: textblock
24828 #: ../tools/virt-edit.pl:339
24829 msgid "If not set, C<vi> is used."
24830 msgstr ""
24831
24832 # type: textblock
24833 #: ../tools/virt-edit.pl:352
24834 msgid ""
24835 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24836 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
24837 "L<perl(1)>, L<perlre(1)>."
24838 msgstr ""
24839
24840 # type: =head1
24841 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510 ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243 ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198 ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
24842 msgid "AUTHOR"
24843 msgstr ""
24844
24845 # type: textblock
24846 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
24847 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24848 msgstr ""
24849
24850 # type: textblock
24851 #: ../tools/virt-win-reg.pl:37
24852 msgid ""
24853 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
24854 "guest"
24855 msgstr ""
24856
24857 # type: verbatim
24858 #: ../tools/virt-win-reg.pl:41
24859 #, no-wrap
24860 msgid ""
24861 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24862 "\n"
24863 msgstr ""
24864
24865 # type: verbatim
24866 #: ../tools/virt-win-reg.pl:43
24867 #, no-wrap
24868 msgid ""
24869 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
24870 "\n"
24871 msgstr ""
24872
24873 # type: verbatim
24874 #: ../tools/virt-win-reg.pl:45
24875 #, no-wrap
24876 msgid ""
24877 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
24878 "\n"
24879 msgstr ""
24880
24881 # type: verbatim
24882 #: ../tools/virt-win-reg.pl:47
24883 #, no-wrap
24884 msgid ""
24885 " virt-win-reg --merge domname [input.reg ...]\n"
24886 "\n"
24887 msgstr ""
24888
24889 # type: verbatim
24890 #: ../tools/virt-win-reg.pl:49
24891 #, no-wrap
24892 msgid ""
24893 " virt-win-reg [--options] disk.img ... # instead of domname\n"
24894 "\n"
24895 msgstr ""
24896
24897 # type: textblock
24898 #: ../tools/virt-win-reg.pl:53
24899 msgid ""
24900 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
24901 "virtual machines.  If you do this, you I<will> get irreversible disk "
24902 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
24903 "but doesn't catch all cases."
24904 msgstr ""
24905
24906 # type: textblock
24907 #: ../tools/virt-win-reg.pl:58
24908 msgid ""
24909 "Modifying the Windows Registry is an inherently risky operation.  The format "
24910 "is deliberately obscure and undocumented, and Registry changes can leave the "
24911 "system unbootable.  Therefore when using the C<--merge> option, make sure "
24912 "you have a reliable backup first."
24913 msgstr ""
24914
24915 # type: textblock
24916 #: ../tools/virt-win-reg.pl:65
24917 msgid ""
24918 "This program can export and merge Windows Registry entries from a Windows "
24919 "guest."
24920 msgstr ""
24921
24922 # type: textblock
24923 #: ../tools/virt-win-reg.pl:68
24924 msgid ""
24925 "The first parameter is the libvirt guest name or the raw disk image of a "
24926 "Windows guest."
24927 msgstr ""
24928
24929 # type: textblock
24930 #: ../tools/virt-win-reg.pl:71
24931 msgid ""
24932 "If C<--merge> is I<not> specified, then the chosen registry key is "
24933 "displayed/exported (recursively).  For example:"
24934 msgstr ""
24935
24936 # type: verbatim
24937 #: ../tools/virt-win-reg.pl:74
24938 #, no-wrap
24939 msgid ""
24940 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
24941 "\n"
24942 msgstr ""
24943
24944 # type: textblock
24945 #: ../tools/virt-win-reg.pl:76
24946 msgid "You can also display single values from within registry keys, for example:"
24947 msgstr ""
24948
24949 # type: verbatim
24950 #: ../tools/virt-win-reg.pl:79
24951 #, no-wrap
24952 msgid ""
24953 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
24954 " $ virt-win-reg Windows7 $cvkey ProductName\n"
24955 " Windows 7 Enterprise\n"
24956 "\n"
24957 msgstr ""
24958
24959 # type: textblock
24960 #: ../tools/virt-win-reg.pl:83
24961 msgid ""
24962 "With C<--merge>, you can merge a textual regedit file into the Windows "
24963 "Registry:"
24964 msgstr ""
24965
24966 # type: verbatim
24967 #: ../tools/virt-win-reg.pl:86
24968 #, no-wrap
24969 msgid ""
24970 " $ virt-win-reg --merge Windows7 changes.reg\n"
24971 "\n"
24972 msgstr ""
24973
24974 # type: =head2
24975 #: ../tools/virt-win-reg.pl:88
24976 msgid "SUPPORTED SYSTEMS"
24977 msgstr ""
24978
24979 # type: textblock
24980 #: ../tools/virt-win-reg.pl:90
24981 msgid ""
24982 "The program currently supports Windows NT-derived guests starting with "
24983 "Windows XP through to at least Windows 7."
24984 msgstr ""
24985
24986 # type: textblock
24987 #: ../tools/virt-win-reg.pl:93
24988 msgid ""
24989 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
24990 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
24991 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
24992 msgstr ""
24993
24994 # type: textblock
24995 #: ../tools/virt-win-reg.pl:97
24996 msgid ""
24997 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
24998 "C<HKEY_USERS>."
24999 msgstr ""
25000
25001 # type: textblock
25002 #: ../tools/virt-win-reg.pl:100
25003 msgid ""
25004 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25005 "time."
25006 msgstr ""
25007
25008 # type: =head2
25009 #: ../tools/virt-win-reg.pl:103
25010 msgid "NOTE"
25011 msgstr ""
25012
25013 # type: textblock
25014 #: ../tools/virt-win-reg.pl:105
25015 msgid ""
25016 "This program is only meant for simple access to the registry.  If you want "
25017 "to do complicated things with the registry, we suggest you download the "
25018 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25019 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25020 "L<hivexregedit(1)>."
25021 msgstr ""
25022
25023 # type: =head2
25024 #: ../tools/virt-win-reg.pl:111
25025 msgid "ENCODING"
25026 msgstr ""
25027
25028 # type: textblock
25029 #: ../tools/virt-win-reg.pl:113
25030 msgid ""
25031 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25032 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
25033 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
25034 "with Windows-style line endings, you may need to reencode the whole file "
25035 "before or after processing."
25036 msgstr ""
25037
25038 # type: textblock
25039 #: ../tools/virt-win-reg.pl:119
25040 msgid ""
25041 "To reencode a file from Windows format to Linux (before processing it with "
25042 "the C<--merge> option), you would do something like this:"
25043 msgstr ""
25044
25045 # type: verbatim
25046 #: ../tools/virt-win-reg.pl:122
25047 #, no-wrap
25048 msgid ""
25049 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25050 "\n"
25051 msgstr ""
25052
25053 # type: textblock
25054 #: ../tools/virt-win-reg.pl:124
25055 msgid ""
25056 "To go in the opposite direction, after exporting and before sending the file "
25057 "to a Windows user, do something like this:"
25058 msgstr ""
25059
25060 # type: verbatim
25061 #: ../tools/virt-win-reg.pl:127
25062 #, no-wrap
25063 msgid ""
25064 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25065 "\n"
25066 msgstr ""
25067
25068 # type: textblock
25069 #: ../tools/virt-win-reg.pl:129
25070 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25071 msgstr ""
25072
25073 # type: textblock
25074 #: ../tools/virt-win-reg.pl:131
25075 msgid ""
25076 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25077 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
25078 "Windows-style (CRLF) line endings, like this:"
25079 msgstr ""
25080
25081 # type: verbatim
25082 #: ../tools/virt-win-reg.pl:135
25083 #, no-wrap
25084 msgid ""
25085 " $ file software.reg\n"
25086 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25087 " with CRLF line terminators\n"
25088 "\n"
25089 msgstr ""
25090
25091 # type: textblock
25092 #: ../tools/virt-win-reg.pl:139
25093 msgid "This file would need conversion before you could C<--merge> it."
25094 msgstr ""
25095
25096 # type: textblock
25097 #: ../tools/virt-win-reg.pl:143
25098 msgid ""
25099 "Be careful when passing parameters containing C<\\> (backslash) in the "
25100 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25101 "(but not both) to protect them from the shell."
25102 msgstr ""
25103
25104 # type: textblock
25105 #: ../tools/virt-win-reg.pl:147
25106 msgid "Paths and value names are case-insensitive."
25107 msgstr ""
25108
25109 # type: =head2
25110 #: ../tools/virt-win-reg.pl:149
25111 msgid "CurrentControlSet etc."
25112 msgstr ""
25113
25114 # type: textblock
25115 #: ../tools/virt-win-reg.pl:151
25116 msgid ""
25117 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25118 "Registry at the level of the hive file, and therefore you cannot modify "
25119 "these."
25120 msgstr ""
25121
25122 # type: textblock
25123 #: ../tools/virt-win-reg.pl:155
25124 msgid ""
25125 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25126 "circumstances it might refer to another control set.  The way to find out is "
25127 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25128 msgstr ""
25129
25130 # type: verbatim
25131 #: ../tools/virt-win-reg.pl:159
25132 #, no-wrap
25133 msgid ""
25134 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25135 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25136 " \"Current\"=dword:00000001\n"
25137 " \"Default\"=dword:00000001\n"
25138 " \"Failed\"=dword:00000000\n"
25139 " \"LastKnownGood\"=dword:00000002\n"
25140 "\n"
25141 msgstr ""
25142
25143 # type: textblock
25144 #: ../tools/virt-win-reg.pl:166
25145 msgid "\"Current\" is the one which Windows will choose when it boots."
25146 msgstr ""
25147
25148 # type: textblock
25149 #: ../tools/virt-win-reg.pl:168
25150 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
25151 msgstr ""
25152
25153 # type: =item
25154 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
25155 msgid "B<--debug>"
25156 msgstr ""
25157
25158 # type: textblock
25159 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
25160 msgid "Enable debugging messages."
25161 msgstr ""
25162
25163 # type: =item
25164 #: ../tools/virt-win-reg.pl:232
25165 msgid "B<--merge>"
25166 msgstr ""
25167
25168 # type: textblock
25169 #: ../tools/virt-win-reg.pl:234
25170 msgid ""
25171 "In merge mode, this merges a textual regedit file into the Windows Registry "
25172 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25173 "displays or exports Registry entries instead."
25174 msgstr ""
25175
25176 # type: textblock
25177 #: ../tools/virt-win-reg.pl:238
25178 msgid ""
25179 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25180 "result in disk corruption.  However exporting (without this flag)  is always "
25181 "safe."
25182 msgstr ""
25183
25184 # type: =item
25185 #: ../tools/virt-win-reg.pl:246
25186 msgid "B<--encoding> UTF-16LE|ASCII"
25187 msgstr ""
25188
25189 # type: textblock
25190 #: ../tools/virt-win-reg.pl:248
25191 msgid ""
25192 "When merging (only), you may need to specify the encoding for strings to be "
25193 "used in the hive file.  This is explained in detail in "
25194 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
25195 msgstr ""
25196
25197 # type: textblock
25198 #: ../tools/virt-win-reg.pl:252
25199 msgid ""
25200 "The default is to use UTF-16LE, which should work with recent versions of "
25201 "Windows."
25202 msgstr ""
25203
25204 # type: textblock
25205 #: ../tools/virt-win-reg.pl:486
25206 msgid ""
25207 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
25208 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25209 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
25210 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25211 msgstr ""
25212
25213 # type: textblock
25214 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25215 msgid ""
25216 "When reporting bugs, please enable debugging and capture the I<complete> "
25217 "output:"
25218 msgstr ""
25219
25220 # type: verbatim
25221 #: ../tools/virt-win-reg.pl:504
25222 #, no-wrap
25223 msgid ""
25224 " export LIBGUESTFS_DEBUG=1\n"
25225 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25226 "\n"
25227 msgstr ""
25228
25229 # type: textblock
25230 #: ../tools/virt-win-reg.pl:507
25231 msgid ""
25232 "Attach /tmp/virt-win-reg.log to a new bug report at "
25233 "L<https://bugzilla.redhat.com/>"
25234 msgstr ""
25235
25236 # type: textblock
25237 #: ../tools/virt-df.pl:36
25238 msgid "virt-df - Display free space on virtual filesystems"
25239 msgstr ""
25240
25241 # type: verbatim
25242 #: ../tools/virt-df.pl:40
25243 #, no-wrap
25244 msgid ""
25245 " virt-df [--options]\n"
25246 "\n"
25247 msgstr ""
25248
25249 # type: verbatim
25250 #: ../tools/virt-df.pl:42
25251 #, no-wrap
25252 msgid ""
25253 " virt-df [--options] domname\n"
25254 "\n"
25255 msgstr ""
25256
25257 # type: verbatim
25258 #: ../tools/virt-df.pl:44
25259 #, no-wrap
25260 msgid ""
25261 " virt-df [--options] disk.img [disk.img ...]\n"
25262 "\n"
25263 msgstr ""
25264
25265 # type: textblock
25266 #: ../tools/virt-df.pl:48
25267 msgid ""
25268 "C<virt-df> is a command line tool to display free space on virtual machine "
25269 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25270 "space allocated to a virtual machine, but can look inside the virtual "
25271 "machine to see how much space is really being used."
25272 msgstr ""
25273
25274 # type: textblock
25275 #: ../tools/virt-df.pl:53
25276 msgid ""
25277 "It is like the L<df(1)> command, but for virtual machines, except that it "
25278 "also works for Windows virtual machines."
25279 msgstr ""
25280
25281 # type: textblock
25282 #: ../tools/virt-df.pl:56
25283 msgid ""
25284 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25285 "of all active and inactive guests, and performs a C<df>-type operation on "
25286 "each one in turn, printing out the results."
25287 msgstr ""
25288
25289 # type: textblock
25290 #: ../tools/virt-df.pl:60
25291 msgid ""
25292 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25293 "either the single named libvirt domain, or on the disk image(s) listed on "
25294 "the command line (which must all belong to a single VM).  In this mode (with "
25295 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25296 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25297 msgstr ""
25298
25299 # type: textblock
25300 #: ../tools/virt-df.pl:67
25301 msgid ""
25302 "Use the C<--csv> option to get a format which can be easily parsed by other "
25303 "programs.  Other options are mostly similar to standard C<df> options.  See "
25304 "below for the complete list."
25305 msgstr ""
25306
25307 # type: =item
25308 #: ../tools/virt-df.pl:107
25309 msgid "B<--csv>"
25310 msgstr ""
25311
25312 # type: textblock
25313 #: ../tools/virt-df.pl:109
25314 msgid ""
25315 "Write out the results in CSV format (comma-separated values).  This format "
25316 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25317 "ABOUT CSV FORMAT> below."
25318 msgstr ""
25319
25320 # type: =item
25321 #: ../tools/virt-df.pl:134
25322 msgid "B<--human-readable> | B<-h>"
25323 msgstr ""
25324
25325 # type: textblock
25326 #: ../tools/virt-df.pl:136
25327 msgid "Print sizes in human-readable format."
25328 msgstr ""
25329
25330 # type: textblock
25331 #: ../tools/virt-df.pl:138
25332 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25333 msgstr ""
25334
25335 # type: =item
25336 #: ../tools/virt-df.pl:144
25337 msgid "B<--inodes> | B<-i>"
25338 msgstr ""
25339
25340 # type: textblock
25341 #: ../tools/virt-df.pl:146
25342 msgid "Print inodes instead of blocks."
25343 msgstr ""
25344
25345 # type: =item
25346 #: ../tools/virt-df.pl:152
25347 msgid "B<--one-per-guest>"
25348 msgstr ""
25349
25350 # type: textblock
25351 #: ../tools/virt-df.pl:154
25352 msgid ""
25353 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25354 "disks from several guests to a single libguestfs appliance."
25355 msgstr ""
25356
25357 # type: textblock
25358 #: ../tools/virt-df.pl:157
25359 msgid "You might use this option in the following circumstances:"
25360 msgstr ""
25361
25362 # type: textblock
25363 #: ../tools/virt-df.pl:163
25364 msgid ""
25365 "If you think an untrusted guest might actively try to exploit the libguestfs "
25366 "appliance kernel, then this prevents one guest from interfering with the "
25367 "stats printed for another guest."
25368 msgstr ""
25369
25370 # type: textblock
25371 #: ../tools/virt-df.pl:169
25372 msgid ""
25373 "If the kernel has a bug which stops it from accessing a filesystem in one "
25374 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25375 "and report stats for further guests."
25376 msgstr ""
25377
25378 # type: =item
25379 #: ../tools/virt-df.pl:180
25380 msgid "B<--uuid>"
25381 msgstr ""
25382
25383 # type: textblock
25384 #: ../tools/virt-df.pl:182
25385 msgid ""
25386 "Print UUIDs instead of names.  This is useful for following a guest even "
25387 "when the guest is migrated or renamed, or when two guests happen to have the "
25388 "same name."
25389 msgstr ""
25390
25391 # type: textblock
25392 #: ../tools/virt-df.pl:186
25393 msgid ""
25394 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25395 "images, we still print the disk image name even when this option is "
25396 "specified."
25397 msgstr ""
25398
25399 # type: =head1
25400 #: ../tools/virt-df.pl:609
25401 msgid "NOTE ABOUT CSV FORMAT"
25402 msgstr ""
25403
25404 # type: textblock
25405 #: ../tools/virt-df.pl:611
25406 msgid ""
25407 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25408 "should be easy to parse, but it is definitely not easy to parse."
25409 msgstr ""
25410
25411 # type: textblock
25412 #: ../tools/virt-df.pl:614
25413 msgid ""
25414 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25415 "reliably.  This example has two columns:"
25416 msgstr ""
25417
25418 # type: verbatim
25419 #: ../tools/virt-df.pl:617
25420 #, no-wrap
25421 msgid ""
25422 " \"foo,bar\",baz\n"
25423 "\n"
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../tools/virt-df.pl:619
25428 msgid ""
25429 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25430 "reliably.  This example has one row:"
25431 msgstr ""
25432
25433 # type: verbatim
25434 #: ../tools/virt-df.pl:622
25435 #, no-wrap
25436 msgid ""
25437 " \"foo\n"
25438 " bar\",baz\n"
25439 "\n"
25440 msgstr ""
25441
25442 # type: textblock
25443 #: ../tools/virt-df.pl:625
25444 msgid ""
25445 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25446 "packaged in major Linux distributions)."
25447 msgstr ""
25448
25449 # type: textblock
25450 #: ../tools/virt-df.pl:628
25451 msgid ""
25452 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25453 "or Python's built-in csv library)."
25454 msgstr ""
25455
25456 # type: textblock
25457 #: ../tools/virt-df.pl:631
25458 msgid "Most spreadsheets and databases can import CSV directly."
25459 msgstr ""
25460
25461 # type: textblock
25462 #: ../tools/virt-df.pl:642
25463 msgid ""
25464 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25465 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25466 msgstr ""
25467
25468 # type: textblock
25469 #: ../tools/virt-ls.pl:34
25470 msgid "virt-ls - List files in a virtual machine"
25471 msgstr ""
25472
25473 # type: verbatim
25474 #: ../tools/virt-ls.pl:38
25475 #, no-wrap
25476 msgid ""
25477 " virt-ls [--options] domname directory\n"
25478 "\n"
25479 msgstr ""
25480
25481 # type: verbatim
25482 #: ../tools/virt-ls.pl:40
25483 #, no-wrap
25484 msgid ""
25485 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25486 "\n"
25487 msgstr ""
25488
25489 # type: textblock
25490 #: ../tools/virt-ls.pl:44
25491 msgid ""
25492 "C<virt-ls> is a command line tool to list the names of files in a directory "
25493 "inside a virtual machine or disk image."
25494 msgstr ""
25495
25496 # type: textblock
25497 #: ../tools/virt-ls.pl:47
25498 msgid ""
25499 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25500 "For more complex cases you should look at the L<guestfish(1)> tool."
25501 msgstr ""
25502
25503 # type: textblock
25504 #: ../tools/virt-ls.pl:51
25505 msgid ""
25506 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
25507 "simple listing is like the ordinary L<ls(1)> command:"
25508 msgstr ""
25509
25510 # type: verbatim
25511 #: ../tools/virt-ls.pl:54
25512 #, no-wrap
25513 msgid ""
25514 " $ virt-ls myguest /\n"
25515 " bin\n"
25516 " boot\n"
25517 " [etc.]\n"
25518 "\n"
25519 msgstr ""
25520
25521 # type: textblock
25522 #: ../tools/virt-ls.pl:59
25523 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
25524 msgstr ""
25525
25526 # type: verbatim
25527 #: ../tools/virt-ls.pl:61
25528 #, no-wrap
25529 msgid ""
25530 " $ virt-ls -l myguest /\n"
25531 " total 204\n"
25532 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25533 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25534 " [etc.]\n"
25535 "\n"
25536 msgstr ""
25537
25538 # type: textblock
25539 #: ../tools/virt-ls.pl:67
25540 msgid ""
25541 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25542 "and directories recursively:"
25543 msgstr ""
25544
25545 # type: verbatim
25546 #: ../tools/virt-ls.pl:70
25547 #, no-wrap
25548 msgid ""
25549 " $ virt-ls -R myguest /tmp\n"
25550 " foo\n"
25551 " foo/bar\n"
25552 " [etc.]\n"
25553 "\n"
25554 msgstr ""
25555
25556 # type: textblock
25557 #: ../tools/virt-ls.pl:75
25558 msgid ""
25559 "You I<cannot> combine these options.  To do more complicated things, use "
25560 "L<guestfish(1)>."
25561 msgstr ""
25562
25563 # type: =item
25564 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
25565 msgid "B<-l> | B<--long>"
25566 msgstr ""
25567
25568 # type: =item
25569 #: ../tools/virt-ls.pl:133
25570 msgid "B<-R> | B<--recursive>"
25571 msgstr ""
25572
25573 # type: textblock
25574 #: ../tools/virt-ls.pl:135
25575 msgid ""
25576 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25577 "simple, flat list of the files in the named directory."
25578 msgstr ""
25579
25580 # type: textblock
25581 #: ../tools/virt-ls.pl:138
25582 msgid ""
25583 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
25584 "like the plain C<ls -l> command)."
25585 msgstr ""
25586
25587 # type: textblock
25588 #: ../tools/virt-ls.pl:141
25589 msgid ""
25590 "C<virt-ls -R> produces a recursive list of files starting at the named "
25591 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
25592 "details."
25593 msgstr ""
25594
25595 # type: textblock
25596 #: ../tools/virt-ls.pl:145
25597 msgid "You cannot combine these options."
25598 msgstr ""
25599
25600 # type: textblock
25601 #: ../tools/virt-ls.pl:234
25602 msgid ""
25603 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
25604 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
25605 "L<http://libguestfs.org/>."
25606 msgstr ""
25607
25608 # type: textblock
25609 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
25610 msgid "Copyright (C) 2009 Red Hat Inc."
25611 msgstr ""
25612
25613 # type: textblock
25614 #: ../tools/virt-resize.pl:42
25615 msgid "virt-resize - Resize a virtual machine disk"
25616 msgstr ""
25617
25618 # type: verbatim
25619 #: ../tools/virt-resize.pl:46
25620 #, no-wrap
25621 msgid ""
25622 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25623 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25624 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25625 "\n"
25626 msgstr ""
25627
25628 # type: textblock
25629 #: ../tools/virt-resize.pl:52
25630 msgid ""
25631 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25632 "larger or smaller overall, and resizing or deleting any partitions contained "
25633 "within."
25634 msgstr ""
25635
25636 # type: textblock
25637 #: ../tools/virt-resize.pl:56
25638 msgid ""
25639 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25640 "not> be used on live virtual machines - for consistent results, shut the "
25641 "virtual machine down before resizing it."
25642 msgstr ""
25643
25644 # type: textblock
25645 #: ../tools/virt-resize.pl:60
25646 msgid ""
25647 "If you are not familiar with the associated tools: "
25648 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
25649 "we recommend you go and read those manual pages first."
25650 msgstr ""
25651
25652 # type: textblock
25653 #: ../tools/virt-resize.pl:68
25654 msgid ""
25655 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25656 "fill the extra 5GB of space."
25657 msgstr ""
25658
25659 # type: verbatim
25660 #: ../tools/virt-resize.pl:71
25661 #, no-wrap
25662 msgid ""
25663 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
25664 " virt-list-partitions -lht olddisk\n"
25665 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25666 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25667 "\n"
25668 msgstr ""
25669
25670 # type: textblock
25671 #: ../tools/virt-resize.pl:76
25672 msgid ""
25673 "As above, but make the /boot partition 200MB bigger, while giving the "
25674 "remaining space to /dev/sda2:"
25675 msgstr ""
25676
25677 # type: verbatim
25678 #: ../tools/virt-resize.pl:79
25679 #, no-wrap
25680 msgid ""
25681 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25682 "\n"
25683 msgstr ""
25684
25685 # type: textblock
25686 #: ../tools/virt-resize.pl:81
25687 msgid "As above, but the output format will be uncompressed qcow2:"
25688 msgstr ""
25689
25690 # type: verbatim
25691 #: ../tools/virt-resize.pl:83
25692 #, no-wrap
25693 msgid ""
25694 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25695 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25696 "\n"
25697 msgstr ""
25698
25699 # type: =head1
25700 #: ../tools/virt-resize.pl:86
25701 msgid "DETAILED USAGE"
25702 msgstr ""
25703
25704 # type: =head2
25705 #: ../tools/virt-resize.pl:88
25706 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25707 msgstr ""
25708
25709 # type: =item
25710 #: ../tools/virt-resize.pl:92
25711 msgid "1. Shut down the virtual machine"
25712 msgstr ""
25713
25714 # type: =item
25715 #: ../tools/virt-resize.pl:94
25716 msgid "2. Locate input disk image"
25717 msgstr ""
25718
25719 # type: textblock
25720 #: ../tools/virt-resize.pl:96
25721 msgid ""
25722 "Locate the input disk image (ie. the file or device on the host containing "
25723 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25724 "dumpxml> like this to find the disk image name:"
25725 msgstr ""
25726
25727 # type: verbatim
25728 #: ../tools/virt-resize.pl:100
25729 #, no-wrap
25730 msgid ""
25731 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25732 " Found 1 nodes:\n"
25733 " -- NODE --\n"
25734 " <source dev=\"/dev/vg/lv_guest\" />\n"
25735 "\n"
25736 msgstr ""
25737
25738 # type: =item
25739 #: ../tools/virt-resize.pl:105
25740 msgid "3. Look at current sizing"
25741 msgstr ""
25742
25743 # type: textblock
25744 #: ../tools/virt-resize.pl:107
25745 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25746 msgstr ""
25747
25748 # type: verbatim
25749 #: ../tools/virt-resize.pl:110
25750 #, no-wrap
25751 msgid ""
25752 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25753 " /dev/sda1 ext3 101.9M\n"
25754 " /dev/sda2 pv 7.9G\n"
25755 " /dev/sda device 8.0G\n"
25756 "\n"
25757 msgstr ""
25758
25759 # type: textblock
25760 #: ../tools/virt-resize.pl:115
25761 msgid ""
25762 "(This example is a virtual machine with an 8 GB disk which we would like to "
25763 "expand up to 10 GB)."
25764 msgstr ""
25765
25766 # type: =item
25767 #: ../tools/virt-resize.pl:118
25768 msgid "4. Create output disk"
25769 msgstr ""
25770
25771 # type: textblock
25772 #: ../tools/virt-resize.pl:120
25773 msgid ""
25774 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25775 "to store the resized output disk."
25776 msgstr ""
25777
25778 # type: textblock
25779 #: ../tools/virt-resize.pl:123
25780 msgid "To store the resized disk image in a file, create a file of a suitable size:"
25781 msgstr ""
25782
25783 # type: verbatim
25784 #: ../tools/virt-resize.pl:126
25785 #, no-wrap
25786 msgid ""
25787 " # rm -f outdisk\n"
25788 " # truncate -s 10G outdisk\n"
25789 "\n"
25790 msgstr ""
25791
25792 # type: textblock
25793 #: ../tools/virt-resize.pl:129
25794 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25795 msgstr ""
25796
25797 # type: verbatim
25798 #: ../tools/virt-resize.pl:131
25799 #, no-wrap
25800 msgid ""
25801 " # lvcreate -L 10G -n lv_name vg_name\n"
25802 "\n"
25803 msgstr ""
25804
25805 # type: textblock
25806 #: ../tools/virt-resize.pl:133
25807 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25808 msgstr ""
25809
25810 # type: verbatim
25811 #: ../tools/virt-resize.pl:135
25812 #, no-wrap
25813 msgid ""
25814 " # virsh pool-list\n"
25815 " # virsh vol-create-as poolname newvol 10G\n"
25816 "\n"
25817 msgstr ""
25818
25819 # type: =item
25820 #: ../tools/virt-resize.pl:138
25821 msgid "5. Resize"
25822 msgstr ""
25823
25824 # type: textblock
25825 #: ../tools/virt-resize.pl:140
25826 msgid ""
25827 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25828 "file) and the output disk.  The output disk is the one created in the "
25829 "previous step."
25830 msgstr ""
25831
25832 # type: verbatim
25833 #: ../tools/virt-resize.pl:144
25834 #, no-wrap
25835 msgid ""
25836 " # virt-resize indisk outdisk\n"
25837 "\n"
25838 msgstr ""
25839
25840 # type: textblock
25841 #: ../tools/virt-resize.pl:146
25842 msgid ""
25843 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25844 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25845 "larger, then an extra, empty partition is created at the end of the disk "
25846 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25847 "error."
25848 msgstr ""
25849
25850 # type: textblock
25851 #: ../tools/virt-resize.pl:152
25852 msgid ""
25853 "More realistically you'd want to expand existing partitions in the disk "
25854 "image by passing extra options (for the full list see the L</OPTIONS> "
25855 "section below)."
25856 msgstr ""
25857
25858 # type: textblock
25859 #: ../tools/virt-resize.pl:156
25860 msgid ""
25861 "L</--expand> is the most useful option.  It expands the named partition "
25862 "within the disk to fill any extra space:"
25863 msgstr ""
25864
25865 # type: verbatim
25866 #: ../tools/virt-resize.pl:159
25867 #, no-wrap
25868 msgid ""
25869 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25870 "\n"
25871 msgstr ""
25872
25873 # type: textblock
25874 #: ../tools/virt-resize.pl:161
25875 msgid ""
25876 "(In this case, an extra partition is I<not> created at the end of the disk, "
25877 "because there will be no unused space)."
25878 msgstr ""
25879
25880 # type: textblock
25881 #: ../tools/virt-resize.pl:164
25882 msgid ""
25883 "L</--resize> is the other commonly used option.  The following would "
25884 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25885 "rest of the available space:"
25886 msgstr ""
25887
25888 # type: verbatim
25889 #: ../tools/virt-resize.pl:168
25890 #, no-wrap
25891 msgid ""
25892 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25893 "     indisk outdisk\n"
25894 "\n"
25895 msgstr ""
25896
25897 # type: textblock
25898 #: ../tools/virt-resize.pl:171
25899 msgid ""
25900 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25901 "if virt-resize knows how, it will resize the contents, the equivalent of "
25902 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
25903 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
25904 "filesystems, so you would have to online resize them after booting the "
25905 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
25906 "just resizes the PV itself and leaves the user to resize any LVs inside that "
25907 "PV as desired."
25908 msgstr ""
25909
25910 # type: textblock
25911 #: ../tools/virt-resize.pl:180
25912 msgid "Other options are covered below."
25913 msgstr ""
25914
25915 # type: =item
25916 #: ../tools/virt-resize.pl:182
25917 msgid "6. Test"
25918 msgstr ""
25919
25920 # type: textblock
25921 #: ../tools/virt-resize.pl:184
25922 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25923 msgstr ""
25924
25925 # type: textblock
25926 #: ../tools/virt-resize.pl:186
25927 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25928 msgstr ""
25929
25930 # type: verbatim
25931 #: ../tools/virt-resize.pl:188
25932 #, no-wrap
25933 msgid ""
25934 " # virsh edit guestname\n"
25935 "\n"
25936 msgstr ""
25937
25938 # type: textblock
25939 #: ../tools/virt-resize.pl:190
25940 msgid ""
25941 "Change E<lt>source ...E<gt>, see "
25942 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
25943 msgstr ""
25944
25945 # type: textblock
25946 #: ../tools/virt-resize.pl:193
25947 msgid "Then start up the domain with the new, resized disk:"
25948 msgstr ""
25949
25950 # type: verbatim
25951 #: ../tools/virt-resize.pl:195
25952 #, no-wrap
25953 msgid ""
25954 " # virsh start guestname\n"
25955 "\n"
25956 msgstr ""
25957
25958 # type: textblock
25959 #: ../tools/virt-resize.pl:197
25960 msgid ""
25961 "and check that it still works.  See also the L</NOTES> section below for "
25962 "additional information."
25963 msgstr ""
25964
25965 # type: =item
25966 #: ../tools/virt-resize.pl:200
25967 msgid "7. Resize LVs etc inside the guest"
25968 msgstr ""
25969
25970 # type: textblock
25971 #: ../tools/virt-resize.pl:202
25972 msgid "(This can also be done offline using L<guestfish(1)>)"
25973 msgstr ""
25974
25975 # type: textblock
25976 #: ../tools/virt-resize.pl:204
25977 msgid ""
25978 "Once the guest has booted you should see the new space available, at least "
25979 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25980 "may need to resize LVs inside PVs, and also resize filesystem types that "
25981 "virt-resize does not know how to expand."
25982 msgstr ""
25983
25984 # type: =head2
25985 #: ../tools/virt-resize.pl:211
25986 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25987 msgstr ""
25988
25989 # type: textblock
25990 #: ../tools/virt-resize.pl:213
25991 msgid ""
25992 "Shrinking is somewhat more complex than expanding, and only an overview is "
25993 "given here."
25994 msgstr ""
25995
25996 # type: textblock
25997 #: ../tools/virt-resize.pl:216
25998 msgid ""
25999 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26000 "filesystems).  The user has to shrink content before passing the disk image "
26001 "to virt-resize, and virt-resize will check that the content has been shrunk "
26002 "properly."
26003 msgstr ""
26004
26005 # type: textblock
26006 #: ../tools/virt-resize.pl:221
26007 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26008 msgstr ""
26009
26010 # type: textblock
26011 #: ../tools/virt-resize.pl:223
26012 msgid ""
26013 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26014 "steps 3 and 4 above to allocate a new disk image."
26015 msgstr ""
26016
26017 # type: textblock
26018 #: ../tools/virt-resize.pl:226
26019 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26020 msgstr ""
26021
26022 # type: =head2
26023 #: ../tools/virt-resize.pl:229
26024 msgid "IGNORING OR DELETING PARTITIONS"
26025 msgstr ""
26026
26027 # type: textblock
26028 #: ../tools/virt-resize.pl:231
26029 msgid ""
26030 "virt-resize also gives a convenient way to ignore or delete partitions when "
26031 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26032 "up the copy where you don't care about the existing contents of a "
26033 "partition.  Deleting a partition removes it completely, but note that it "
26034 "also renumbers any partitions after the one which is deleted, which can "
26035 "leave some guests unbootable."
26036 msgstr ""
26037
26038 # type: =head2
26039 #: ../tools/virt-resize.pl:238
26040 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26041 msgstr ""
26042
26043 # type: textblock
26044 #: ../tools/virt-resize.pl:240
26045 msgid ""
26046 "If the input disk is in qcow2 format, then you may prefer that the output is "
26047 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26048 "the fly.  The output format is simply determined by the format of the empty "
26049 "output container that you provide.  Thus to create qcow2 output, use:"
26050 msgstr ""
26051
26052 # type: verbatim
26053 #: ../tools/virt-resize.pl:246
26054 #, no-wrap
26055 msgid ""
26056 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26057 "\n"
26058 msgstr ""
26059
26060 # type: textblock
26061 #: ../tools/virt-resize.pl:248
26062 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26063 msgstr ""
26064
26065 # type: textblock
26066 #: ../tools/virt-resize.pl:250
26067 msgid "Similarly, to get non-sparse raw output use:"
26068 msgstr ""
26069
26070 # type: verbatim
26071 #: ../tools/virt-resize.pl:252
26072 #, no-wrap
26073 msgid ""
26074 " fallocate -l size outdisk\n"
26075 "\n"
26076 msgstr ""
26077
26078 # type: textblock
26079 #: ../tools/virt-resize.pl:254
26080 msgid ""
26081 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
26082 "if=/dev/zero of=outdisk bs=1M count=..>)"
26083 msgstr ""
26084
26085 # type: textblock
26086 #: ../tools/virt-resize.pl:267
26087 msgid "Display help."
26088 msgstr ""
26089
26090 # type: =item
26091 #: ../tools/virt-resize.pl:281
26092 msgid "B<--resize part=size>"
26093 msgstr ""
26094
26095 # type: textblock
26096 #: ../tools/virt-resize.pl:283
26097 msgid ""
26098 "Resize the named partition (expanding or shrinking it) so that it has the "
26099 "given size."
26100 msgstr ""
26101
26102 # type: textblock
26103 #: ../tools/virt-resize.pl:286
26104 msgid ""
26105 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26106 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26107 "Exabytes; or as a percentage of the current size; or as a relative number or "
26108 "percentage.  For example:"
26109 msgstr ""
26110
26111 # type: verbatim
26112 #: ../tools/virt-resize.pl:291
26113 #, no-wrap
26114 msgid ""
26115 " --resize /dev/sda2=10G\n"
26116 "\n"
26117 msgstr ""
26118
26119 # type: verbatim
26120 #: ../tools/virt-resize.pl:293
26121 #, no-wrap
26122 msgid ""
26123 " --resize /dev/sda4=90%\n"
26124 "\n"
26125 msgstr ""
26126
26127 # type: verbatim
26128 #: ../tools/virt-resize.pl:295
26129 #, no-wrap
26130 msgid ""
26131 " --resize /dev/sda2=+1G\n"
26132 "\n"
26133 msgstr ""
26134
26135 # type: verbatim
26136 #: ../tools/virt-resize.pl:297
26137 #, no-wrap
26138 msgid ""
26139 " --resize /dev/sda2=-200M\n"
26140 "\n"
26141 msgstr ""
26142
26143 # type: verbatim
26144 #: ../tools/virt-resize.pl:299
26145 #, no-wrap
26146 msgid ""
26147 " --resize /dev/sda1=+128K\n"
26148 "\n"
26149 msgstr ""
26150
26151 # type: verbatim
26152 #: ../tools/virt-resize.pl:301
26153 #, no-wrap
26154 msgid ""
26155 " --resize /dev/sda1=+10%\n"
26156 "\n"
26157 msgstr ""
26158
26159 # type: verbatim
26160 #: ../tools/virt-resize.pl:303
26161 #, no-wrap
26162 msgid ""
26163 " --resize /dev/sda1=-10%\n"
26164 "\n"
26165 msgstr ""
26166
26167 # type: textblock
26168 #: ../tools/virt-resize.pl:305
26169 msgid ""
26170 "You can increase the size of any partition.  Virt-resize will expand the "
26171 "direct content of the partition if it knows how (see C<--expand> below)."
26172 msgstr ""
26173
26174 # type: textblock
26175 #: ../tools/virt-resize.pl:309
26176 msgid ""
26177 "You can only I<decrease> the size of partitions that contain filesystems or "
26178 "PVs which have already been shrunk.  Virt-resize will check this has been "
26179 "done before proceeding, or else will print an error (see also "
26180 "C<--resize-force>)."
26181 msgstr ""
26182
26183 # type: textblock
26184 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
26185 msgid "You can give this option multiple times."
26186 msgstr ""
26187
26188 # type: =item
26189 #: ../tools/virt-resize.pl:320
26190 msgid "B<--resize-force part=size>"
26191 msgstr ""
26192
26193 # type: textblock
26194 #: ../tools/virt-resize.pl:322
26195 msgid ""
26196 "This is the same as C<--resize> except that it will let you decrease the "
26197 "size of any partition.  Generally this means you will lose any data which "
26198 "was at the end of the partition you shrink, but you may not care about that "
26199 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26200 "as a swap partition)."
26201 msgstr ""
26202
26203 # type: textblock
26204 #: ../tools/virt-resize.pl:328
26205 msgid "See also the C<--ignore> option."
26206 msgstr ""
26207
26208 # type: =item
26209 #: ../tools/virt-resize.pl:334
26210 msgid "B<--expand part>"
26211 msgstr ""
26212
26213 # type: textblock
26214 #: ../tools/virt-resize.pl:336
26215 msgid ""
26216 "Expand the named partition so it uses up all extra space (space left over "
26217 "after any other resize changes that you request have been done)."
26218 msgstr ""
26219
26220 # type: textblock
26221 #: ../tools/virt-resize.pl:339
26222 msgid ""
26223 "If virt-resize knows how, it will expand the direct content of the "
26224 "partition.  For example, if the partition is an LVM PV, it will expand the "
26225 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26226 "content it doesn't know about alone."
26227 msgstr ""
26228
26229 # type: textblock
26230 #: ../tools/virt-resize.pl:344
26231 msgid "Currently virt-resize can resize:"
26232 msgstr ""
26233
26234 # type: textblock
26235 #: ../tools/virt-resize.pl:350
26236 msgid ""
26237 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26238 "partition."
26239 msgstr ""
26240
26241 # type: textblock
26242 #: ../tools/virt-resize.pl:355
26243 msgid ""
26244 "NTFS filesystems contained directly in a partition, if libguestfs was "
26245 "compiled with support for NTFS."
26246 msgstr ""
26247
26248 # type: textblock
26249 #: ../tools/virt-resize.pl:358
26250 msgid ""
26251 "The filesystem must have been shut down consistently last time it was used.  "
26252 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26253 "consistency check, so at the first boot after resizing Windows will check "
26254 "the disk."
26255 msgstr ""
26256
26257 # type: textblock
26258 #: ../tools/virt-resize.pl:365
26259 msgid ""
26260 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26261 "inside the PV.  The user will have to resize LVs as desired."
26262 msgstr ""
26263
26264 # type: textblock
26265 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26266 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26267 msgstr ""
26268
26269 # type: =item
26270 #: ../tools/virt-resize.pl:377
26271 msgid "B<--shrink part>"
26272 msgstr ""
26273
26274 # type: textblock
26275 #: ../tools/virt-resize.pl:379
26276 msgid ""
26277 "Shrink the named partition until the overall disk image fits in the "
26278 "destination.  The named partition B<must> contain a filesystem or PV which "
26279 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26280 "online tools).  Virt-resize will check this and give an error if it has not "
26281 "been done."
26282 msgstr ""
26283
26284 # type: textblock
26285 #: ../tools/virt-resize.pl:385
26286 msgid ""
26287 "The amount by which the overall disk must be shrunk (after carrying out all "
26288 "other operations requested by the user) is called the \"deficit\".  For "
26289 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26290 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26291 "would give an error unless the user specified a partition to shrink and that "
26292 "partition had more than a gigabyte of free space."
26293 msgstr ""
26294
26295 # type: =item
26296 #: ../tools/virt-resize.pl:399
26297 msgid "B<--ignore part>"
26298 msgstr ""
26299
26300 # type: textblock
26301 #: ../tools/virt-resize.pl:401
26302 msgid ""
26303 "Ignore the named partition.  Effectively this means the partition is "
26304 "allocated on the destination disk, but the content is not copied across from "
26305 "the source disk.  The content of the partition will be blank (all zero "
26306 "bytes)."
26307 msgstr ""
26308
26309 # type: =item
26310 #: ../tools/virt-resize.pl:412
26311 msgid "B<--delete part>"
26312 msgstr ""
26313
26314 # type: textblock
26315 #: ../tools/virt-resize.pl:414
26316 msgid ""
26317 "Delete the named partition.  It would be more accurate to describe this as "
26318 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26319 "the original disk image is left intact."
26320 msgstr ""
26321
26322 # type: textblock
26323 #: ../tools/virt-resize.pl:418
26324 msgid ""
26325 "Note that when you delete a partition, then anything contained in the "
26326 "partition is also deleted.  Furthermore, this causes any partitions that "
26327 "come after to be I<renumbered>, which can easily make your guest unbootable."
26328 msgstr ""
26329
26330 # type: =item
26331 #: ../tools/virt-resize.pl:429
26332 msgid "B<--LV-expand logvol>"
26333 msgstr ""
26334
26335 # type: textblock
26336 #: ../tools/virt-resize.pl:431
26337 msgid ""
26338 "This takes the logical volume and, as a final step, expands it to fill all "
26339 "the space available in its volume group.  A typical usage, assuming a Linux "
26340 "guest with a single PV C</dev/sda2> and a root device called "
26341 "C</dev/vg_guest/lv_root> would be:"
26342 msgstr ""
26343
26344 # type: verbatim
26345 #: ../tools/virt-resize.pl:436
26346 #, no-wrap
26347 msgid ""
26348 " virt-resize indisk outdisk \\\n"
26349 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26350 "\n"
26351 msgstr ""
26352
26353 # type: textblock
26354 #: ../tools/virt-resize.pl:439
26355 msgid ""
26356 "This would first expand the partition (and PV), and then expand the root "
26357 "device to fill the extra space in the PV."
26358 msgstr ""
26359
26360 # type: textblock
26361 #: ../tools/virt-resize.pl:442
26362 msgid ""
26363 "The contents of the LV are also resized if virt-resize knows how to do "
26364 "that.  You can stop virt-resize from trying to expand the content by using "
26365 "the option C<--no-expand-content>."
26366 msgstr ""
26367
26368 # type: textblock
26369 #: ../tools/virt-resize.pl:446
26370 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26371 msgstr ""
26372
26373 # type: textblock
26374 #: ../tools/virt-resize.pl:449
26375 msgid ""
26376 "You can give this option multiple times, I<but> it doesn't make sense to do "
26377 "this unless the logical volumes you specify are all in different volume "
26378 "groups."
26379 msgstr ""
26380
26381 # type: =item
26382 #: ../tools/virt-resize.pl:457
26383 msgid "B<--no-copy-boot-loader>"
26384 msgstr ""
26385
26386 # type: textblock
26387 #: ../tools/virt-resize.pl:459
26388 msgid ""
26389 "By default, virt-resize copies over some sectors at the start of the disk "
26390 "(up to the beginning of the first partition).  Commonly these sectors "
26391 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26392 "in order for the guest to boot correctly."
26393 msgstr ""
26394
26395 # type: textblock
26396 #: ../tools/virt-resize.pl:464
26397 msgid ""
26398 "If you specify this flag, then this initial copy is not done.  You may need "
26399 "to reinstall the boot loader in this case."
26400 msgstr ""
26401
26402 # type: =item
26403 #: ../tools/virt-resize.pl:472
26404 msgid "B<--no-extra-partition>"
26405 msgstr ""
26406
26407 # type: textblock
26408 #: ../tools/virt-resize.pl:474
26409 msgid ""
26410 "By default, virt-resize creates an extra partition if there is any extra, "
26411 "unused space after all resizing has happened.  Use this option to prevent "
26412 "the extra partition from being created.  If you do this then the extra space "
26413 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26414 "tool in the guest."
26415 msgstr ""
26416
26417 # type: textblock
26418 #: ../tools/virt-resize.pl:480
26419 msgid ""
26420 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26421 "will be created."
26422 msgstr ""
26423
26424 # type: =item
26425 #: ../tools/virt-resize.pl:487
26426 msgid "B<--no-expand-content>"
26427 msgstr ""
26428
26429 # type: textblock
26430 #: ../tools/virt-resize.pl:489
26431 msgid ""
26432 "By default, virt-resize will try to expand the direct contents of "
26433 "partitions, if it knows how (see C<--expand> option above)."
26434 msgstr ""
26435
26436 # type: textblock
26437 #: ../tools/virt-resize.pl:492
26438 msgid ""
26439 "If you give the C<--no-expand-content> option then virt-resize will not "
26440 "attempt this."
26441 msgstr ""
26442
26443 # type: =item
26444 #: ../tools/virt-resize.pl:499
26445 msgid "B<-d> | B<--debug>"
26446 msgstr ""
26447
26448 # type: =item
26449 #: ../tools/virt-resize.pl:507
26450 msgid "B<-n> | B<--dryrun>"
26451 msgstr ""
26452
26453 # type: textblock
26454 #: ../tools/virt-resize.pl:509
26455 msgid "Print a summary of what would be done, but don't do anything."
26456 msgstr ""
26457
26458 # type: =item
26459 #: ../tools/virt-resize.pl:515
26460 msgid "B<-q> | B<--quiet>"
26461 msgstr ""
26462
26463 # type: textblock
26464 #: ../tools/virt-resize.pl:517
26465 msgid "Don't print the summary."
26466 msgstr ""
26467
26468 # type: textblock
26469 #: ../tools/virt-resize.pl:525
26470 msgid ""
26471 "Specify the format of the input disk image.  If this flag is not given then "
26472 "it is auto-detected from the image itself."
26473 msgstr ""
26474
26475 # type: textblock
26476 #: ../tools/virt-resize.pl:531
26477 msgid ""
26478 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26479 "AND NON-SPARSE RAW FORMATS>."
26480 msgstr ""
26481
26482 # type: =item
26483 #: ../tools/virt-resize.pl:538
26484 msgid "B<--output-format> raw"
26485 msgstr ""
26486
26487 # type: textblock
26488 #: ../tools/virt-resize.pl:540
26489 msgid ""
26490 "Specify the format of the output disk image.  If this flag is not given then "
26491 "it is auto-detected from the image itself."
26492 msgstr ""
26493
26494 # type: textblock
26495 #: ../tools/virt-resize.pl:546
26496 msgid ""
26497 "Note that you still need to create the output disk with the right format.  "
26498 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
26499 msgstr ""
26500
26501 # type: =head2
26502 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
26503 msgid "NOTES"
26504 msgstr ""
26505
26506 # type: =head2
26507 #: ../tools/virt-resize.pl:1424
26508 msgid "\"Partition 1 does not end on cylinder boundary.\""
26509 msgstr ""
26510
26511 # type: textblock
26512 #: ../tools/virt-resize.pl:1426
26513 msgid ""
26514 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
26515 "means the partitions will not be aligned to the ancient CHS geometry.  "
26516 "However CHS geometry is meaningless for disks manufactured since the early "
26517 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
26518 "cylinders is not required by any modern operating system."
26519 msgstr ""
26520
26521 # type: =head2
26522 #: ../tools/virt-resize.pl:1433
26523 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26524 msgstr ""
26525
26526 # type: textblock
26527 #: ../tools/virt-resize.pl:1435
26528 msgid ""
26529 "In Windows Vista and later versions, Microsoft switched to using a separate "
26530 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26531 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26532 "the boot partition.  Doing so seems to break the guest completely.  However "
26533 "expanding the second partition (ie. C: drive) should work."
26534 msgstr ""
26535
26536 # type: textblock
26537 #: ../tools/virt-resize.pl:1442
26538 msgid ""
26539 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26540 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26541 "it find errors) is nothing to worry about."
26542 msgstr ""
26543
26544 # type: =head2
26545 #: ../tools/virt-resize.pl:1446
26546 msgid "GUEST BOOT STUCK AT \"GRUB\""
26547 msgstr ""
26548
26549 # type: textblock
26550 #: ../tools/virt-resize.pl:1448
26551 msgid ""
26552 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26553 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26554 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26555 "although we think is to do with partition alignment."
26556 msgstr ""
26557
26558 # type: verbatim
26559 #: ../tools/virt-resize.pl:1453
26560 #, no-wrap
26561 msgid ""
26562 " guestfish -i -a newdisk\n"
26563 " ><fs> cat /boot/grub/device.map\n"
26564 " # check the contents of this file are sensible or\n"
26565 " # edit the file if necessary\n"
26566 " ><fs> grub-install / /dev/vda\n"
26567 " ><fs> exit\n"
26568 "\n"
26569 msgstr ""
26570
26571 # type: textblock
26572 #: ../tools/virt-resize.pl:1460
26573 msgid ""
26574 "For more flexible guest reconfiguration, including if you need to specify "
26575 "other parameters to grub-install, use L<virt-rescue(1)>."
26576 msgstr ""
26577
26578 # type: =head1
26579 #: ../tools/virt-resize.pl:1463
26580 msgid "ALTERNATIVE TOOLS"
26581 msgstr ""
26582
26583 # type: textblock
26584 #: ../tools/virt-resize.pl:1465
26585 msgid ""
26586 "There are several proprietary tools for resizing partitions.  We won't "
26587 "mention any here."
26588 msgstr ""
26589
26590 # type: textblock
26591 #: ../tools/virt-resize.pl:1468
26592 msgid ""
26593 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26594 "operations on disk images.  They can resize and move partitions, but I don't "
26595 "think they can do anything with the contents, and they certainly don't "
26596 "understand LVM."
26597 msgstr ""
26598
26599 # type: textblock
26600 #: ../tools/virt-resize.pl:1473
26601 msgid ""
26602 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26603 "but at a much lower level.  You will probably end up hand-calculating sector "
26604 "offsets, which is something that virt-resize was designed to avoid.  If you "
26605 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26606 "C<--debug> flag."
26607 msgstr ""
26608
26609 # type: textblock
26610 #: ../tools/virt-resize.pl:1488
26611 msgid ""
26612 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
26613 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
26614 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
26615 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
26616 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26617 msgstr ""
26618
26619 # type: textblock
26620 #: ../tools/virt-list-filesystems.pl:32
26621 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
26622 msgstr ""
26623
26624 # type: verbatim
26625 #: ../tools/virt-list-filesystems.pl:36
26626 #, no-wrap
26627 msgid ""
26628 " virt-list-filesystems [--options] domname\n"
26629 "\n"
26630 msgstr ""
26631
26632 # type: verbatim
26633 #: ../tools/virt-list-filesystems.pl:38
26634 #, no-wrap
26635 msgid ""
26636 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
26637 "\n"
26638 msgstr ""
26639
26640 # type: textblock
26641 #: ../tools/virt-list-filesystems.pl:42
26642 msgid ""
26643 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
26644 "are contained in a virtual machine or disk image."
26645 msgstr ""
26646
26647 # type: textblock
26648 #: ../tools/virt-list-filesystems.pl:46
26649 msgid ""
26650 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
26651 "functionality.  For more complex cases you should look at the "
26652 "L<guestfish(1)> tool."
26653 msgstr ""
26654
26655 # type: textblock
26656 #: ../tools/virt-list-filesystems.pl:105
26657 msgid ""
26658 "With this option, C<virt-list-filesystems> displays the type of each "
26659 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
26660 msgstr ""
26661
26662 # type: =item
26663 #: ../tools/virt-list-filesystems.pl:112
26664 msgid "B<-a> | B<--all>"
26665 msgstr ""
26666
26667 # type: textblock
26668 #: ../tools/virt-list-filesystems.pl:114
26669 msgid ""
26670 "Normally we only show mountable filesystems.  If this option is given then "
26671 "swap devices are shown too."
26672 msgstr ""
26673
26674 # type: textblock
26675 #: ../tools/virt-list-filesystems.pl:188
26676 msgid ""
26677 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26678 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26679 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26680 msgstr ""
26681
26682 # type: textblock
26683 #: ../tools/virt-cat.pl:33
26684 msgid "virt-cat - Display a file in a virtual machine"
26685 msgstr ""
26686
26687 # type: verbatim
26688 #: ../tools/virt-cat.pl:37
26689 #, no-wrap
26690 msgid ""
26691 " virt-cat [--options] domname file\n"
26692 "\n"
26693 msgstr ""
26694
26695 # type: verbatim
26696 #: ../tools/virt-cat.pl:39
26697 #, no-wrap
26698 msgid ""
26699 " virt-cat [--options] disk.img [disk.img ...] file\n"
26700 "\n"
26701 msgstr ""
26702
26703 # type: textblock
26704 #: ../tools/virt-cat.pl:43
26705 msgid ""
26706 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26707 "C<file> exists in the named virtual machine (or disk image)."
26708 msgstr ""
26709
26710 # type: textblock
26711 #: ../tools/virt-cat.pl:46
26712 msgid ""
26713 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26714 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26715 "tool."
26716 msgstr ""
26717
26718 # type: textblock
26719 #: ../tools/virt-cat.pl:52
26720 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26721 msgstr ""
26722
26723 # type: verbatim
26724 #: ../tools/virt-cat.pl:55
26725 #, no-wrap
26726 msgid ""
26727 " virt-cat mydomain /etc/fstab\n"
26728 "\n"
26729 msgstr ""
26730
26731 # type: textblock
26732 #: ../tools/virt-cat.pl:57
26733 msgid "List syslog messages from a VM:"
26734 msgstr ""
26735
26736 # type: verbatim
26737 #: ../tools/virt-cat.pl:59
26738 #, no-wrap
26739 msgid ""
26740 " virt-cat mydomain /var/log/messages | tail\n"
26741 "\n"
26742 msgstr ""
26743
26744 # type: textblock
26745 #: ../tools/virt-cat.pl:61
26746 msgid "Find out what DHCP IP address a VM acquired:"
26747 msgstr ""
26748
26749 # type: verbatim
26750 #: ../tools/virt-cat.pl:63
26751 #, no-wrap
26752 msgid ""
26753 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26754 "\n"
26755 msgstr ""
26756
26757 # type: textblock
26758 #: ../tools/virt-cat.pl:65
26759 msgid "Find out what packages were recently installed:"
26760 msgstr ""
26761
26762 # type: verbatim
26763 #: ../tools/virt-cat.pl:67
26764 #, no-wrap
26765 msgid ""
26766 " virt-cat mydomain /var/log/yum.log | tail\n"
26767 "\n"
26768 msgstr ""
26769
26770 # type: textblock
26771 #: ../tools/virt-cat.pl:69
26772 msgid "Find out who is logged on inside a virtual machine:"
26773 msgstr ""
26774
26775 # type: verbatim
26776 #: ../tools/virt-cat.pl:71
26777 #, no-wrap
26778 msgid ""
26779 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26780 " who /tmp/utmp\n"
26781 "\n"
26782 msgstr ""
26783
26784 # type: textblock
26785 #: ../tools/virt-cat.pl:74
26786 msgid "or who was logged on:"
26787 msgstr ""
26788
26789 # type: verbatim
26790 #: ../tools/virt-cat.pl:76
26791 #, no-wrap
26792 msgid ""
26793 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26794 " last -f /tmp/wtmp\n"
26795 "\n"
26796 msgstr ""
26797
26798 # type: textblock
26799 #: ../tools/virt-cat.pl:187
26800 msgid ""
26801 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
26802 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26803 msgstr ""
26804
26805 # type: textblock
26806 #: ../tools/virt-tar.pl:33
26807 msgid "virt-tar - Extract or upload files to a virtual machine"
26808 msgstr ""
26809
26810 # type: verbatim
26811 #: ../tools/virt-tar.pl:37
26812 #, no-wrap
26813 msgid ""
26814 " virt-tar [--options] -x domname directory tarball\n"
26815 "\n"
26816 msgstr ""
26817
26818 # type: verbatim
26819 #: ../tools/virt-tar.pl:39
26820 #, no-wrap
26821 msgid ""
26822 " virt-tar [--options] -u domname tarball directory\n"
26823 "\n"
26824 msgstr ""
26825
26826 # type: verbatim
26827 #: ../tools/virt-tar.pl:41
26828 #, no-wrap
26829 msgid ""
26830 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26831 "\n"
26832 msgstr ""
26833
26834 # type: verbatim
26835 #: ../tools/virt-tar.pl:43
26836 #, no-wrap
26837 msgid ""
26838 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26839 "\n"
26840 msgstr ""
26841
26842 # type: textblock
26843 #: ../tools/virt-tar.pl:47
26844 msgid "Download C</home> from the VM into a local tarball:"
26845 msgstr ""
26846
26847 # type: verbatim
26848 #: ../tools/virt-tar.pl:49
26849 #, no-wrap
26850 msgid ""
26851 " virt-tar -x domname /home home.tar\n"
26852 "\n"
26853 msgstr ""
26854
26855 # type: verbatim
26856 #: ../tools/virt-tar.pl:51
26857 #, no-wrap
26858 msgid ""
26859 " virt-tar -zx domname /home home.tar.gz\n"
26860 "\n"
26861 msgstr ""
26862
26863 # type: textblock
26864 #: ../tools/virt-tar.pl:53
26865 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
26866 msgstr ""
26867
26868 # type: verbatim
26869 #: ../tools/virt-tar.pl:55
26870 #, no-wrap
26871 msgid ""
26872 " virt-tar -u domname uploadstuff.tar /tmp\n"
26873 "\n"
26874 msgstr ""
26875
26876 # type: verbatim
26877 #: ../tools/virt-tar.pl:57
26878 #, no-wrap
26879 msgid ""
26880 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
26881 "\n"
26882 msgstr ""
26883
26884 # type: textblock
26885 #: ../tools/virt-tar.pl:61
26886 msgid ""
26887 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
26888 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
26889 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
26890 msgstr ""
26891
26892 # type: textblock
26893 #: ../tools/virt-tar.pl:66
26894 msgid ""
26895 "You can use C<-x> (extract) on live virtual machines, but you might get "
26896 "inconsistent results or errors if there is filesystem activity inside the "
26897 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
26898 "work, but the only way to guarantee consistent results is if the virtual "
26899 "machine is shut down."
26900 msgstr ""
26901
26902 # type: textblock
26903 #: ../tools/virt-tar.pl:74
26904 msgid ""
26905 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
26906 "parts of a guest filesystem.  There are many possibilities: making backups, "
26907 "uploading data files, snooping on guest activity, fixing or customizing "
26908 "guests, etc."
26909 msgstr ""
26910
26911 # type: textblock
26912 #: ../tools/virt-tar.pl:79
26913 msgid ""
26914 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
26915 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
26916 "should look at the L<guestfish(1)> tool."
26917 msgstr ""
26918
26919 # type: textblock
26920 #: ../tools/virt-tar.pl:83
26921 msgid ""
26922 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
26923 "its contents (recursively) from the virtual machine into a local tarball.  "
26924 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
26925 "virtual machine.  You cannot use these two options together."
26926 msgstr ""
26927
26928 # type: textblock
26929 #: ../tools/virt-tar.pl:89
26930 msgid ""
26931 "In addition, you may need to use the C<-z> (gZip) option to enable "
26932 "compression.  When uploading, you have to specify C<-z> if the upload file "
26933 "is compressed because virt-tar won't detect this on its own."
26934 msgstr ""
26935
26936 # type: textblock
26937 #: ../tools/virt-tar.pl:93
26938 msgid ""
26939 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
26940 "example it cannot do PKZip files or bzip2 compression.  If you want that "
26941 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
26942 "the L<libguestfs(3)> API)."
26943 msgstr ""
26944
26945 # type: =item
26946 #: ../tools/virt-tar.pl:151
26947 msgid "B<-x> | B<--extract> | B<--download>"
26948 msgstr ""
26949
26950 # type: =item
26951 #: ../tools/virt-tar.pl:153
26952 msgid "B<-u> | B<--upload>"
26953 msgstr ""
26954
26955 # type: textblock
26956 #: ../tools/virt-tar.pl:155
26957 msgid ""
26958 "Use C<-x> to extract (download) a directory from a virtual machine to a "
26959 "local tarball."
26960 msgstr ""
26961
26962 # type: textblock
26963 #: ../tools/virt-tar.pl:158
26964 msgid ""
26965 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
26966 "Please read the L</WARNING> section above before using this option."
26967 msgstr ""
26968
26969 # type: textblock
26970 #: ../tools/virt-tar.pl:162
26971 msgid "You must specify exactly one of these options."
26972 msgstr ""
26973
26974 # type: =item
26975 #: ../tools/virt-tar.pl:168
26976 msgid "B<-z> | B<--gzip>"
26977 msgstr ""
26978
26979 # type: textblock
26980 #: ../tools/virt-tar.pl:170
26981 msgid "Specify that the input or output tarball is gzip-compressed."
26982 msgstr ""
26983
26984 # type: textblock
26985 #: ../tools/virt-tar.pl:283
26986 msgid ""
26987 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26988 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26989 "L<http://libguestfs.org/>."
26990 msgstr ""
26991
26992 # type: textblock
26993 #: ../tools/virt-rescue.pl:33
26994 msgid "virt-rescue - Run a rescue shell on a virtual machine"
26995 msgstr ""
26996
26997 # type: verbatim
26998 #: ../tools/virt-rescue.pl:37
26999 #, no-wrap
27000 msgid ""
27001 " virt-rescue [--options] domname\n"
27002 "\n"
27003 msgstr ""
27004
27005 # type: verbatim
27006 #: ../tools/virt-rescue.pl:39
27007 #, no-wrap
27008 msgid ""
27009 " virt-rescue [--options] disk.img [disk.img ...]\n"
27010 "\n"
27011 msgstr ""
27012
27013 # type: textblock
27014 #: ../tools/virt-rescue.pl:43
27015 msgid ""
27016 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27017 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27018 "you from doing this, but doesn't catch all cases."
27019 msgstr ""
27020
27021 # type: textblock
27022 #: ../tools/virt-rescue.pl:47
27023 msgid ""
27024 "However if you use the I<--ro> (read only) option, then you can attach a "
27025 "shell to a live virtual machine.  The results might be strange or "
27026 "inconsistent at times but you won't get disk corruption."
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-rescue.pl:53
27031 msgid ""
27032 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27033 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27034 "recovery tools which you can use to examine or rescue a virtual machine or "
27035 "disk image."
27036 msgstr ""
27037
27038 # type: textblock
27039 #: ../tools/virt-rescue.pl:58
27040 msgid ""
27041 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27042 "on disk image(s):"
27043 msgstr ""
27044
27045 # type: verbatim
27046 #: ../tools/virt-rescue.pl:61
27047 #, no-wrap
27048 msgid ""
27049 " virt-rescue GuestName\n"
27050 "\n"
27051 msgstr ""
27052
27053 # type: verbatim
27054 #: ../tools/virt-rescue.pl:63
27055 #, no-wrap
27056 msgid ""
27057 " virt-rescue --ro /path/to/disk.img\n"
27058 "\n"
27059 msgstr ""
27060
27061 # type: verbatim
27062 #: ../tools/virt-rescue.pl:65
27063 #, no-wrap
27064 msgid ""
27065 " virt-rescue /dev/sdc\n"
27066 "\n"
27067 msgstr ""
27068
27069 # type: textblock
27070 #: ../tools/virt-rescue.pl:67
27071 msgid "For live VMs you I<must> use the --ro option."
27072 msgstr ""
27073
27074 # type: textblock
27075 #: ../tools/virt-rescue.pl:69
27076 msgid ""
27077 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27078 "in an interactive bash shell where you can use many ordinary Linux "
27079 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27080 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27081 "is an empty directory called C</sysroot> where you can mount filesystems."
27082 msgstr ""
27083
27084 # type: textblock
27085 #: ../tools/virt-rescue.pl:76
27086 msgid ""
27087 "In the example below, we list logical volumes, then choose one to mount "
27088 "under C</sysroot>:"
27089 msgstr ""
27090
27091 # type: verbatim
27092 #: ../tools/virt-rescue.pl:79
27093 #, no-wrap
27094 msgid ""
27095 " ><rescue> lvs\n"
27096 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27097 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27098 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27099 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27100 " ><rescue> ls /sysroot\n"
27101 "\n"
27102 msgstr ""
27103
27104 # type: textblock
27105 #: ../tools/virt-rescue.pl:86
27106 msgid ""
27107 "If you don't know what filesystems are available on the virtual machine then "
27108 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27109 msgstr ""
27110
27111 # type: textblock
27112 #: ../tools/virt-rescue.pl:92
27113 msgid ""
27114 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27115 "virtual machine.  For example you can use it on a blank file if you want to "
27116 "partition that file (although we would recommend using L<guestfish(1)> "
27117 "instead as it is more suitable for this purpose).  You can even use "
27118 "virt-rescue on things like SD cards."
27119 msgstr ""
27120
27121 # type: textblock
27122 #: ../tools/virt-rescue.pl:98
27123 msgid ""
27124 "This tool is just designed for quick interactive hacking on a virtual "
27125 "machine.  For more structured access to a virtual machine disk image, you "
27126 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27127 "make scripted changes to guests, use L<guestfish(1)>."
27128 msgstr ""
27129
27130 # type: =item
27131 #: ../tools/virt-rescue.pl:127
27132 msgid "B<--append kernelopts>"
27133 msgstr ""
27134
27135 # type: textblock
27136 #: ../tools/virt-rescue.pl:129
27137 msgid "Pass additional options to the rescue kernel."
27138 msgstr ""
27139
27140 # type: =item
27141 #: ../tools/virt-rescue.pl:164
27142 msgid "B<--memsize MB> | B<-m MB>"
27143 msgstr ""
27144
27145 # type: textblock
27146 #: ../tools/virt-rescue.pl:166
27147 msgid ""
27148 "Change the amount of memory allocated to the rescue system.  The default is "
27149 "set by libguestfs and is small but adequate for running system tools.  The "
27150 "occasional program might need more memory.  The parameter is specified in "
27151 "megabytes."
27152 msgstr ""
27153
27154 # type: =item
27155 #: ../tools/virt-rescue.pl:175
27156 msgid "B<--network MB>"
27157 msgstr ""
27158
27159 # type: textblock
27160 #: ../tools/virt-rescue.pl:177
27161 msgid "Enable QEMU user networking in the guest."
27162 msgstr ""
27163
27164 # type: =item
27165 #: ../tools/virt-rescue.pl:183
27166 msgid "B<--ro> | B<-r>"
27167 msgstr ""
27168
27169 # type: textblock
27170 #: ../tools/virt-rescue.pl:185
27171 msgid "Open the image read-only."
27172 msgstr ""
27173
27174 # type: textblock
27175 #: ../tools/virt-rescue.pl:197
27176 msgid ""
27177 "Enable SELinux in the rescue appliance.  You should read "
27178 "L<guestfs(3)/SELINUX> before using this option."
27179 msgstr ""
27180
27181 # type: textblock
27182 #: ../tools/virt-rescue.pl:257
27183 msgid ""
27184 "Several environment variables affect virt-rescue.  See "
27185 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
27186 msgstr ""
27187
27188 # type: textblock
27189 #: ../tools/virt-rescue.pl:269
27190 msgid ""
27191 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
27192 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27193 msgstr ""
27194
27195 # type: textblock
27196 #: ../tools/virt-make-fs.pl:37
27197 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27198 msgstr ""
27199
27200 # type: verbatim
27201 #: ../tools/virt-make-fs.pl:41
27202 #, no-wrap
27203 msgid ""
27204 " virt-make-fs [--options] input.tar output.img\n"
27205 "\n"
27206 msgstr ""
27207
27208 # type: verbatim
27209 #: ../tools/virt-make-fs.pl:43
27210 #, no-wrap
27211 msgid ""
27212 " virt-make-fs [--options] input.tar.gz output.img\n"
27213 "\n"
27214 msgstr ""
27215
27216 # type: verbatim
27217 #: ../tools/virt-make-fs.pl:45
27218 #, no-wrap
27219 msgid ""
27220 " virt-make-fs [--options] directory output.img\n"
27221 "\n"
27222 msgstr ""
27223
27224 # type: textblock
27225 #: ../tools/virt-make-fs.pl:49
27226 msgid ""
27227 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27228 "archive or some files in a directory.  It is similar to tools like "
27229 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
27230 "it can create common filesystem types like ext2/3 or NTFS, which can be "
27231 "useful if you want to attach these filesystems to existing virtual machines "
27232 "(eg. to import large amounts of read-only data to a VM)."
27233 msgstr ""
27234
27235 # type: textblock
27236 #: ../tools/virt-make-fs.pl:57
27237 msgid "Basic usage is:"
27238 msgstr ""
27239
27240 # type: verbatim
27241 #: ../tools/virt-make-fs.pl:59
27242 #, no-wrap
27243 msgid ""
27244 " virt-make-fs input output\n"
27245 "\n"
27246 msgstr ""
27247
27248 # type: textblock
27249 #: ../tools/virt-make-fs.pl:61
27250 msgid ""
27251 "where C<input> is either a directory containing files that you want to add, "
27252 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27253 "C<output> is a disk image.  The input type is detected automatically.  The "
27254 "output disk image defaults to a raw ext2 image unless you specify extra "
27255 "flags (see L</OPTIONS> below)."
27256 msgstr ""
27257
27258 # type: =head2
27259 #: ../tools/virt-make-fs.pl:67
27260 msgid "EXTRA SPACE"
27261 msgstr ""
27262
27263 # type: textblock
27264 #: ../tools/virt-make-fs.pl:69
27265 msgid ""
27266 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27267 "the files that it contains, but might have extra space.  Depending on how "
27268 "you are going to use the output, you might think this extra space is wasted "
27269 "and want to minimize it, or you might want to leave space so that more files "
27270 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27271 "but you can use the C<--size> flag to leave space in the filesystem if you "
27272 "want it."
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-make-fs.pl:77
27277 msgid ""
27278 "An alternative way to leave extra space but not make the output image any "
27279 "bigger is to use an alternative disk image format (instead of the default "
27280 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27281 "image format (check your hypervisor supports this before using it).  This "
27282 "allows you to choose a large C<--size> but the extra space won't actually be "
27283 "allocated in the image until you try to store something in it."
27284 msgstr ""
27285
27286 # type: textblock
27287 #: ../tools/virt-make-fs.pl:85
27288 msgid ""
27289 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27290 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
27291 "virt-make-resize to build another image from scratch."
27292 msgstr ""
27293
27294 # type: =head3
27295 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
27296 msgid "EXAMPLE"
27297 msgstr ""
27298
27299 # type: verbatim
27300 #: ../tools/virt-make-fs.pl:91
27301 #, no-wrap
27302 msgid ""
27303 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27304 "\n"
27305 msgstr ""
27306
27307 # type: =head2
27308 #: ../tools/virt-make-fs.pl:93
27309 msgid "FILESYSTEM TYPE"
27310 msgstr ""
27311
27312 # type: textblock
27313 #: ../tools/virt-make-fs.pl:95
27314 msgid ""
27315 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27316 "libguestfs supports can be used (but I<not> read-only formats like "
27317 "ISO9660).  Here are some of the more common choices:"
27318 msgstr ""
27319
27320 # type: =item
27321 #: ../tools/virt-make-fs.pl:101
27322 msgid "I<ext3>"
27323 msgstr ""
27324
27325 # type: textblock
27326 #: ../tools/virt-make-fs.pl:103
27327 msgid ""
27328 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27329 "you are not going to use the filesystem in a way that requires the journal, "
27330 "then this is just wasted overhead."
27331 msgstr ""
27332
27333 # type: =item
27334 #: ../tools/virt-make-fs.pl:107
27335 msgid "I<ntfs> or I<vfat>"
27336 msgstr ""
27337
27338 # type: textblock
27339 #: ../tools/virt-make-fs.pl:109
27340 msgid "Useful if exporting data to a Windows guest."
27341 msgstr ""
27342
27343 # type: textblock
27344 #: ../tools/virt-make-fs.pl:111
27345 msgid ""
27346 "I<Note for vfat>: The tar archive or local directory must only contain files "
27347 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27348 "program running within libguestfs is unable to change the ownership of "
27349 "non-root files, since vfat itself does not support this."
27350 msgstr ""
27351
27352 # type: =item
27353 #: ../tools/virt-make-fs.pl:116
27354 msgid "I<minix>"
27355 msgstr ""
27356
27357 # type: textblock
27358 #: ../tools/virt-make-fs.pl:118
27359 msgid ""
27360 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27361 "total filesystem size."
27362 msgstr ""
27363
27364 # type: verbatim
27365 #: ../tools/virt-make-fs.pl:125
27366 #, no-wrap
27367 msgid ""
27368 " virt-make-fs --type=minix input minixfs.img\n"
27369 "\n"
27370 msgstr ""
27371
27372 # type: =head2
27373 #: ../tools/virt-make-fs.pl:127
27374 msgid "TO PARTITION OR NOT TO PARTITION"
27375 msgstr ""
27376
27377 # type: textblock
27378 #: ../tools/virt-make-fs.pl:129
27379 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27380 msgstr ""
27381
27382 # type: textblock
27383 #: ../tools/virt-make-fs.pl:131
27384 msgid ""
27385 "Adding a partition can make the disk image more compatible with certain "
27386 "virtualized operating systems which don't expect to see a filesystem "
27387 "directly located on a block device (Linux doesn't care and will happily "
27388 "handle both types)."
27389 msgstr ""
27390
27391 # type: textblock
27392 #: ../tools/virt-make-fs.pl:136
27393 msgid ""
27394 "On the other hand, if you have a partition table then the output image is no "
27395 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27396 "directly on a partitioned disk image.  (However libguestfs tools such as "
27397 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27398 msgstr ""
27399
27400 # type: textblock
27401 #: ../tools/virt-make-fs.pl:144
27402 msgid "Add an MBR partition:"
27403 msgstr ""
27404
27405 # type: verbatim
27406 #: ../tools/virt-make-fs.pl:146
27407 #, no-wrap
27408 msgid ""
27409 " virt-make-fs --partition -- input disk.img\n"
27410 "\n"
27411 msgstr ""
27412
27413 # type: textblock
27414 #: ../tools/virt-make-fs.pl:148
27415 msgid ""
27416 "If the output disk image could be terabyte-sized or larger, it's better to "
27417 "use an EFI/GPT-compatible partition table:"
27418 msgstr ""
27419
27420 # type: verbatim
27421 #: ../tools/virt-make-fs.pl:151
27422 #, no-wrap
27423 msgid ""
27424 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27425 "\n"
27426 msgstr ""
27427
27428 # type: textblock
27429 #: ../tools/virt-make-fs.pl:179
27430 msgid "Enable debugging information."
27431 msgstr ""
27432
27433 # type: =item
27434 #: ../tools/virt-make-fs.pl:185
27435 msgid "B<--size=E<lt>NE<gt>>"
27436 msgstr ""
27437
27438 # type: =item
27439 #: ../tools/virt-make-fs.pl:187
27440 msgid "B<--size=+E<lt>NE<gt>>"
27441 msgstr ""
27442
27443 # type: =item
27444 #: ../tools/virt-make-fs.pl:189
27445 msgid "B<-s E<lt>NE<gt>>"
27446 msgstr ""
27447
27448 # type: =item
27449 #: ../tools/virt-make-fs.pl:191
27450 msgid "B<-s +E<lt>NE<gt>>"
27451 msgstr ""
27452
27453 # type: textblock
27454 #: ../tools/virt-make-fs.pl:193
27455 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27456 msgstr ""
27457
27458 # type: textblock
27459 #: ../tools/virt-make-fs.pl:196
27460 msgid ""
27461 "If this option is I<not> given, then the output image will be just large "
27462 "enough to contain all the files, with not much wasted space."
27463 msgstr ""
27464
27465 # type: textblock
27466 #: ../tools/virt-make-fs.pl:199
27467 msgid ""
27468 "To choose a fixed size output disk, specify an absolute number followed by "
27469 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27470 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27471 "files, else you will get an error."
27472 msgstr ""
27473
27474 # type: textblock
27475 #: ../tools/virt-make-fs.pl:204
27476 msgid ""
27477 "To leave extra space, specify C<+> (plus sign) and a number followed by "
27478 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27479 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27480 "the input files, and (approximately) an extra 200 MB free space."
27481 msgstr ""
27482
27483 # type: textblock
27484 #: ../tools/virt-make-fs.pl:210
27485 msgid ""
27486 "Note that virt-make-fs estimates free space, and therefore will not produce "
27487 "filesystems containing precisely the free space requested.  (It is much more "
27488 "expensive and time-consuming to produce a filesystem which has precisely the "
27489 "desired free space)."
27490 msgstr ""
27491
27492 # type: =item
27493 #: ../tools/virt-make-fs.pl:219
27494 msgid "B<--format=E<lt>fmtE<gt>>"
27495 msgstr ""
27496
27497 # type: =item
27498 #: ../tools/virt-make-fs.pl:221
27499 msgid "B<-F E<lt>fmtE<gt>>"
27500 msgstr ""
27501
27502 # type: textblock
27503 #: ../tools/virt-make-fs.pl:223
27504 msgid "Choose the output disk image format."
27505 msgstr ""
27506
27507 # type: textblock
27508 #: ../tools/virt-make-fs.pl:225
27509 msgid "The default is C<raw> (raw disk image)."
27510 msgstr ""
27511
27512 # type: textblock
27513 #: ../tools/virt-make-fs.pl:227
27514 msgid ""
27515 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27516 "that would really make sense here is C<qcow2>."
27517 msgstr ""
27518
27519 # type: =item
27520 #: ../tools/virt-make-fs.pl:234
27521 msgid "B<--type=E<lt>fsE<gt>>"
27522 msgstr ""
27523
27524 # type: =item
27525 #: ../tools/virt-make-fs.pl:236
27526 msgid "B<-t E<lt>fsE<gt>>"
27527 msgstr ""
27528
27529 # type: textblock
27530 #: ../tools/virt-make-fs.pl:238
27531 msgid "Choose the output filesystem type."
27532 msgstr ""
27533
27534 # type: textblock
27535 #: ../tools/virt-make-fs.pl:240
27536 msgid "The default is C<ext2>."
27537 msgstr ""
27538
27539 # type: textblock
27540 #: ../tools/virt-make-fs.pl:242
27541 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
27542 msgstr ""
27543
27544 # type: =item
27545 #: ../tools/virt-make-fs.pl:249
27546 msgid "B<--partition>"
27547 msgstr ""
27548
27549 # type: =item
27550 #: ../tools/virt-make-fs.pl:251
27551 msgid "B<--partition=E<lt>parttypeE<gt>>"
27552 msgstr ""
27553
27554 # type: textblock
27555 #: ../tools/virt-make-fs.pl:253
27556 msgid ""
27557 "If specified, this flag adds an MBR partition table to the output disk "
27558 "image."
27559 msgstr ""
27560
27561 # type: textblock
27562 #: ../tools/virt-make-fs.pl:256
27563 msgid ""
27564 "You can change the partition table type, eg. C<--partition=gpt> for large "
27565 "disks."
27566 msgstr ""
27567
27568 # type: textblock
27569 #: ../tools/virt-make-fs.pl:259
27570 msgid ""
27571 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27572 "might consider the next parameter to be the partition type.  For example:"
27573 msgstr ""
27574
27575 # type: verbatim
27576 #: ../tools/virt-make-fs.pl:263
27577 #, no-wrap
27578 msgid ""
27579 " virt-make-fs --partition input.tar ...\n"
27580 "\n"
27581 msgstr ""
27582
27583 # type: textblock
27584 #: ../tools/virt-make-fs.pl:265
27585 msgid ""
27586 "would cause virt-make-fs to think you wanted to use a partition type of "
27587 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27588 "dash) between options and the input file argument:"
27589 msgstr ""
27590
27591 # type: verbatim
27592 #: ../tools/virt-make-fs.pl:269
27593 #, no-wrap
27594 msgid ""
27595 " virt-make-fs --partition -- input.tar ...\n"
27596 "\n"
27597 msgstr ""
27598
27599 # type: textblock
27600 #: ../tools/virt-make-fs.pl:536
27601 msgid ""
27602 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27603 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
27604 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27605 msgstr ""
27606
27607 # type: verbatim
27608 #: ../tools/virt-make-fs.pl:553
27609 #, no-wrap
27610 msgid ""
27611 " export LIBGUESTFS_DEBUG=1\n"
27612 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
27613 "\n"
27614 msgstr ""
27615
27616 # type: textblock
27617 #: ../tools/virt-make-fs.pl:556
27618 msgid ""
27619 "Attach /tmp/virt-make-fs.log to a new bug report at "
27620 "L<https://bugzilla.redhat.com/>"
27621 msgstr ""
27622
27623 # type: textblock
27624 #: ../tools/virt-list-partitions.pl:32
27625 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
27626 msgstr ""
27627
27628 # type: verbatim
27629 #: ../tools/virt-list-partitions.pl:36
27630 #, no-wrap
27631 msgid ""
27632 " virt-list-partitions [--options] domname\n"
27633 "\n"
27634 msgstr ""
27635
27636 # type: verbatim
27637 #: ../tools/virt-list-partitions.pl:38
27638 #, no-wrap
27639 msgid ""
27640 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
27641 "\n"
27642 msgstr ""
27643
27644 # type: textblock
27645 #: ../tools/virt-list-partitions.pl:42
27646 msgid ""
27647 "C<virt-list-partitions> is a command line tool to list the partitions that "
27648 "are contained in a virtual machine or disk image.  It is mainly useful as a "
27649 "first step to using L<virt-resize(1)>."
27650 msgstr ""
27651
27652 # type: textblock
27653 #: ../tools/virt-list-partitions.pl:47
27654 msgid ""
27655 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
27656 "functionality.  For more complex cases you should look at the "
27657 "L<guestfish(1)> tool."
27658 msgstr ""
27659
27660 # type: =item
27661 #: ../tools/virt-list-partitions.pl:104
27662 msgid "B<-h> | B<--human-readable>"
27663 msgstr ""
27664
27665 # type: textblock
27666 #: ../tools/virt-list-partitions.pl:106
27667 msgid "Show sizes in human-readable form (eg. \"1G\")."
27668 msgstr ""
27669
27670 # type: textblock
27671 #: ../tools/virt-list-partitions.pl:114
27672 msgid ""
27673 "With this option, C<virt-list-partitions> displays the type and size of each "
27674 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
27675 msgstr ""
27676
27677 # type: =item
27678 #: ../tools/virt-list-partitions.pl:121
27679 msgid "B<-t> | B<--total>"
27680 msgstr ""
27681
27682 # type: textblock
27683 #: ../tools/virt-list-partitions.pl:123
27684 msgid "Display the total size of each block device (as a separate row or rows)."
27685 msgstr ""
27686
27687 # type: textblock
27688 #: ../tools/virt-list-partitions.pl:256
27689 msgid ""
27690 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
27691 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27692 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27693 msgstr ""