83a75dfe1008d72e837182aa9c7ed790698975ff
[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.13.24\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-10-24 17:16+0200\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 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 ../tools/virt-win-reg.pl:35
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../align/virt-alignment-scan.pod:5
27 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
28 msgstr ""
29
30 #. type: =head1
31 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 ../tools/virt-win-reg.pl:39
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../align/virt-alignment-scan.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-alignment-scan [--options] -d domname\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../align/virt-alignment-scan.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: =head1
52 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16 ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 ../tools/virt-win-reg.pl:63
53 msgid "DESCRIPTION"
54 msgstr ""
55
56 #. type: textblock
57 #: ../align/virt-alignment-scan.pod:15
58 msgid ""
59 "When older operating systems install themselves, the partitioning tools "
60 "place partitions at a sector misaligned with the underlying storage "
61 "(commonly the first partition starts on sector C<63>).  Misaligned "
62 "partitions can result in an operating system issuing more I/O than should be "
63 "necessary."
64 msgstr ""
65
66 #. type: textblock
67 #: ../align/virt-alignment-scan.pod:21
68 msgid ""
69 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
70 "machines and disk images and warns you if there are alignment problems."
71 msgstr ""
72
73 #. type: textblock
74 #: ../align/virt-alignment-scan.pod:25
75 msgid ""
76 "Currently there is no virt tool for fixing alignment problems.  You can only "
77 "reinstall the guest operating system.  The following NetApp document "
78 "summarises the problem and possible solutions: "
79 "L<http://media.netapp.com/documents/tr-3747.pdf>"
80 msgstr ""
81
82 #. type: =head1
83 #: ../align/virt-alignment-scan.pod:30
84 msgid "OUTPUT"
85 msgstr ""
86
87 #. type: textblock
88 #: ../align/virt-alignment-scan.pod:32
89 msgid "To run this tool on a disk image directly, use the I<-a> option:"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../align/virt-alignment-scan.pod:34
94 #, no-wrap
95 msgid ""
96 " $ virt-alignment-scan -a winxp.img\n"
97 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
98 "\n"
99 msgstr ""
100
101 #. type: verbatim
102 #: ../align/virt-alignment-scan.pod:37
103 #, no-wrap
104 msgid ""
105 " $ virt-alignment-scan -a fedora16.img\n"
106 " /dev/sda1      1048576         1024K   ok\n"
107 " /dev/sda2      2097152         2048K   ok\n"
108 " /dev/sda3    526385152         2048K   ok\n"
109 "\n"
110 msgstr ""
111
112 #. type: textblock
113 #: ../align/virt-alignment-scan.pod:42
114 msgid ""
115 "To run the tool on a guest known to libvirt, use the I<-d> option and "
116 "possibly the I<-c> option:"
117 msgstr ""
118
119 #. type: verbatim
120 #: ../align/virt-alignment-scan.pod:45
121 #, no-wrap
122 msgid ""
123 " # virt-alignment-scan -d RHEL5\n"
124 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
125 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
126 "\n"
127 msgstr ""
128
129 #. type: verbatim
130 #: ../align/virt-alignment-scan.pod:49
131 #, no-wrap
132 msgid ""
133 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
134 " /dev/sda1      1048576         1024K   ok\n"
135 " /dev/sda2    105906176         1024K   ok\n"
136 " /dev/sdb1        65536           64K   ok\n"
137 "\n"
138 msgstr ""
139
140 #. type: textblock
141 #: ../align/virt-alignment-scan.pod:54
142 msgid ""
143 "The output consists of 4 or more whitespace-separated columns.  Only the "
144 "first 4 columns are signficant if you want to parse this from a program.  "
145 "The columns are:"
146 msgstr ""
147
148 #. type: =item
149 #: ../align/virt-alignment-scan.pod:60
150 msgid "col 1"
151 msgstr ""
152
153 #. type: textblock
154 #: ../align/virt-alignment-scan.pod:62
155 msgid ""
156 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
157 "on the first block device)"
158 msgstr ""
159
160 #. type: =item
161 #: ../align/virt-alignment-scan.pod:65
162 msgid "col 2"
163 msgstr ""
164
165 #. type: textblock
166 #: ../align/virt-alignment-scan.pod:67
167 msgid "the start of the partition in bytes"
168 msgstr ""
169
170 #. type: =item
171 #: ../align/virt-alignment-scan.pod:69
172 msgid "col 3"
173 msgstr ""
174
175 #. type: textblock
176 #: ../align/virt-alignment-scan.pod:71
177 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
178 msgstr ""
179
180 #. type: =item
181 #: ../align/virt-alignment-scan.pod:73
182 msgid "col 4"
183 msgstr ""
184
185 #. type: textblock
186 #: ../align/virt-alignment-scan.pod:75
187 msgid ""
188 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
189 "can cause performance problems"
190 msgstr ""
191
192 #. type: =item
193 #: ../align/virt-alignment-scan.pod:78
194 msgid "cols 5+"
195 msgstr ""
196
197 #. type: textblock
198 #: ../align/virt-alignment-scan.pod:80
199 msgid "optional free-text explanation."
200 msgstr ""
201
202 #. type: textblock
203 #: ../align/virt-alignment-scan.pod:84
204 msgid ""
205 "The exit code from the program changes depending on whether poorly aligned "
206 "partitions were found.  See L</EXIT STATUS> below."
207 msgstr ""
208
209 #. type: textblock
210 #: ../align/virt-alignment-scan.pod:87
211 msgid "If you just want the exit code with no output, use the I<-q> option."
212 msgstr ""
213
214 #. type: =head1
215 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
216 msgid "OPTIONS"
217 msgstr ""
218
219 #. type: =item
220 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
221 msgid "B<--help>"
222 msgstr ""
223
224 #. type: textblock
225 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
226 msgid "Display brief help."
227 msgstr ""
228
229 #. type: =item
230 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
231 msgid "B<-a> file"
232 msgstr ""
233
234 #. type: =item
235 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
236 msgid "B<--add> file"
237 msgstr ""
238
239 #. type: textblock
240 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
241 msgid "Add I<file> which should be a disk image from a virtual machine."
242 msgstr ""
243
244 #. type: textblock
245 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
246 msgid ""
247 "The format of the disk image is auto-detected.  To override this and force a "
248 "particular format use the I<--format=..> option."
249 msgstr ""
250
251 #. type: =item
252 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
253 msgid "B<-c> URI"
254 msgstr ""
255
256 #. type: =item
257 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
258 msgid "B<--connect> URI"
259 msgstr ""
260
261 #. type: textblock
262 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
263 msgid ""
264 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
265 "to the default libvirt hypervisor."
266 msgstr ""
267
268 #. type: textblock
269 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
270 msgid ""
271 "If you specify guest block devices directly (I<-a>), then libvirt is not "
272 "used at all."
273 msgstr ""
274
275 #. type: =item
276 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
277 msgid "B<-d> guest"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
282 msgid "B<--domain> guest"
283 msgstr ""
284
285 #. type: textblock
286 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
287 msgid ""
288 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
289 "instead of names."
290 msgstr ""
291
292 #. type: =item
293 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
294 msgid "B<--format=raw|qcow2|..>"
295 msgstr ""
296
297 #. type: =item
298 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
299 msgid "B<--format>"
300 msgstr ""
301
302 #. type: textblock
303 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
304 msgid ""
305 "The default for the I<-a> option is to auto-detect the format of the disk "
306 "image.  Using this forces the disk format for I<-a> options which follow on "
307 "the command line.  Using I<--format> with no argument switches back to "
308 "auto-detection for subsequent I<-a> options."
309 msgstr ""
310
311 #. type: textblock
312 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
313 msgid "For example:"
314 msgstr ""
315
316 #. type: verbatim
317 #: ../align/virt-alignment-scan.pod:134
318 #, no-wrap
319 msgid ""
320 " virt-alignment-scan --format=raw -a disk.img\n"
321 "\n"
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
326 msgid "forces raw format (no auto-detection) for C<disk.img>."
327 msgstr ""
328
329 #. type: verbatim
330 #: ../align/virt-alignment-scan.pod:138
331 #, no-wrap
332 msgid ""
333 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
334 "\n"
335 msgstr ""
336
337 #. type: textblock
338 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
339 msgid ""
340 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
341 "auto-detection for C<another.img>."
342 msgstr ""
343
344 #. type: textblock
345 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
346 msgid ""
347 "If you have untrusted raw-format guest disk images, you should use this "
348 "option to specify the disk format.  This avoids a possible security problem "
349 "with malicious guests (CVE-2010-3851)."
350 msgstr ""
351
352 #. type: =item
353 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:470 ../sparsify/virt-sparsify.pod:153
354 msgid "B<-q>"
355 msgstr ""
356
357 #. type: =item
358 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:472 ../sparsify/virt-sparsify.pod:155
359 msgid "B<--quiet>"
360 msgstr ""
361
362 #. type: textblock
363 #: ../align/virt-alignment-scan.pod:151
364 msgid ""
365 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
366 "below)."
367 msgstr ""
368
369 #. type: =item
370 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
371 msgid "B<-v>"
372 msgstr ""
373
374 #. type: =item
375 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
376 msgid "B<--verbose>"
377 msgstr ""
378
379 #. type: textblock
380 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
381 msgid "Enable verbose messages for debugging."
382 msgstr ""
383
384 #. type: =item
385 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:540 ../sparsify/virt-sparsify.pod:165
386 msgid "B<-V>"
387 msgstr ""
388
389 #. type: =item
390 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:542 ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
391 msgid "B<--version>"
392 msgstr ""
393
394 #. type: textblock
395 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:544 ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
396 msgid "Display version number and exit."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
401 msgid "B<-x>"
402 msgstr ""
403
404 #. type: textblock
405 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
406 msgid "Enable tracing of libguestfs API calls."
407 msgstr ""
408
409 #. type: =head1
410 #: ../align/virt-alignment-scan.pod:172
411 msgid "RECOMMENDED ALIGNMENT"
412 msgstr ""
413
414 #. type: textblock
415 #: ../align/virt-alignment-scan.pod:174
416 msgid ""
417 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
418 "first sector of the first partition at sector 63, with a 512 byte sector "
419 "size.  This happens because of a historical accident.  Drives have to report "
420 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
421 "completely meaningless on modern drives, but it happens that the geometry "
422 "reported always has 63 sectors per track.  The operating system therefore "
423 "places the first partition at the start of the second \"track\", at sector "
424 "63."
425 msgstr ""
426
427 #. type: textblock
428 #: ../align/virt-alignment-scan.pod:183
429 msgid ""
430 "When the guest OS is virtualized, the host operating system and hypervisor "
431 "may prefer accesses aligned to one of:"
432 msgstr ""
433
434 #. type: =item
435 #: ../align/virt-alignment-scan.pod:188
436 msgid "* 512 bytes"
437 msgstr ""
438
439 #. type: textblock
440 #: ../align/virt-alignment-scan.pod:190
441 msgid ""
442 "if the host OS uses local storage directly on hard drive partitions, and the "
443 "hard drive has 512 byte physical sectors."
444 msgstr ""
445
446 #. type: =item
447 #: ../align/virt-alignment-scan.pod:193
448 msgid "* 4 Kbytes"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:195
453 msgid ""
454 "for local storage on new hard drives with 4Kbyte physical sectors; for "
455 "file-backed storage on filesystems with 4Kbyte block size; or for some types "
456 "of network-attached storage."
457 msgstr ""
458
459 #. type: =item
460 #: ../align/virt-alignment-scan.pod:199
461 msgid "* 64 Kbytes"
462 msgstr ""
463
464 #. type: textblock
465 #: ../align/virt-alignment-scan.pod:201
466 msgid ""
467 "for high-end network-attached storage.  This is the optimal block size for "
468 "some NetApp hardware."
469 msgstr ""
470
471 #. type: =item
472 #: ../align/virt-alignment-scan.pod:204
473 msgid "* 1 Mbyte"
474 msgstr ""
475
476 #. type: textblock
477 #: ../align/virt-alignment-scan.pod:206
478 msgid "see L</1 MB PARTITION ALIGNMENT> below."
479 msgstr ""
480
481 #. type: textblock
482 #: ../align/virt-alignment-scan.pod:210
483 msgid ""
484 "Partitions which are not aligned correctly to the underlying storage cause "
485 "extra I/O.  For example:"
486 msgstr ""
487
488 #. type: verbatim
489 #: ../align/virt-alignment-scan.pod:213
490 #, no-wrap
491 msgid ""
492 "                       sect#63\n"
493 "                       +--------------------------+------\n"
494 "                       |         guest            |\n"
495 "                       |    filesystem block      |\n"
496 " ---+------------------+------+-------------------+-----+---\n"
497 "    |  host block             |  host block             |\n"
498 "    |                         |                         |\n"
499 " ---+-------------------------+-------------------------+---\n"
500 "\n"
501 msgstr ""
502
503 #. type: textblock
504 #: ../align/virt-alignment-scan.pod:222
505 msgid ""
506 "In this example, each time a 4K guest block is read, two blocks on the host "
507 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
508 "written, two host blocks must first be read, the old and new data combined, "
509 "and the two blocks written back (4x I/O)."
510 msgstr ""
511
512 #. type: =head2
513 #: ../align/virt-alignment-scan.pod:227
514 msgid "LINUX HOST BLOCK AND I/O SIZE"
515 msgstr ""
516
517 #. type: textblock
518 #: ../align/virt-alignment-scan.pod:229
519 msgid ""
520 "New versions of the Linux kernel expose the physical and logical block size, "
521 "and minimum and recommended I/O size."
522 msgstr ""
523
524 #. type: textblock
525 #: ../align/virt-alignment-scan.pod:232
526 msgid "For a typical hard drive with 512 byte sectors:"
527 msgstr ""
528
529 #. type: verbatim
530 #: ../align/virt-alignment-scan.pod:234
531 #, no-wrap
532 msgid ""
533 " $ cat /sys/block/sda/queue/physical_block_size\n"
534 " 512\n"
535 " $ cat /sys/block/sda/queue/logical_block_size\n"
536 " 512\n"
537 " $ cat /sys/block/sda/queue/minimum_io_size\n"
538 " 512\n"
539 " $ cat /sys/block/sda/queue/optimal_io_size\n"
540 " 0\n"
541 "\n"
542 msgstr ""
543
544 #. type: textblock
545 #: ../align/virt-alignment-scan.pod:243
546 msgid "For a NetApp LUN:"
547 msgstr ""
548
549 #. type: verbatim
550 #: ../align/virt-alignment-scan.pod:245
551 #, no-wrap
552 msgid ""
553 " $ cat /sys/block/sdc/queue/logical_block_size\n"
554 " 512\n"
555 " $ cat /sys/block/sdc/queue/physical_block_size\n"
556 " 512\n"
557 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
558 " 4096\n"
559 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
560 " 65536\n"
561 "\n"
562 msgstr ""
563
564 #. type: textblock
565 #: ../align/virt-alignment-scan.pod:254
566 msgid ""
567 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
568 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
569 msgstr ""
570
571 #. type: textblock
572 #: ../align/virt-alignment-scan.pod:258
573 msgid ""
574 "For detailed information about what these numbers mean, see "
575 "L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
576 msgstr ""
577
578 #. type: textblock
579 #: ../align/virt-alignment-scan.pod:261
580 msgid ""
581 "[Thanks to Mike Snitzer for providing NetApp data and additional "
582 "information.]"
583 msgstr ""
584
585 #. type: =head2
586 #: ../align/virt-alignment-scan.pod:264
587 msgid "1 MB PARTITION ALIGNMENT"
588 msgstr ""
589
590 #. type: textblock
591 #: ../align/virt-alignment-scan.pod:266
592 msgid ""
593 "Microsoft picked 1 MB as the default alignment for all partitions starting "
594 "with Windows 2008 Server, and Linux has followed this."
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:269
599 msgid ""
600 "Assuming 512 byte sectors in the guest, you will now see the first partition "
601 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
602 "multiple of 2048 sectors."
603 msgstr ""
604
605 #. type: textblock
606 #: ../align/virt-alignment-scan.pod:273
607 msgid ""
608 "1 MB alignment is compatible with all current alignment requirements (4K, "
609 "64K) and provides room for future growth in physical block sizes."
610 msgstr ""
611
612 #. type: =head2
613 #: ../align/virt-alignment-scan.pod:276
614 msgid "SETTING ALIGNMENT"
615 msgstr ""
616
617 #. type: textblock
618 #: ../align/virt-alignment-scan.pod:278
619 msgid ""
620 "L<virt-resize(1)> can change the alignment of the partitions of some "
621 "guests.  Currently it can fully align all the partitions of all Windows "
622 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
623 "it can align the second and subsequent partitions, so the majority of OS "
624 "accesses except at boot will be aligned."
625 msgstr ""
626
627 #. type: textblock
628 #: ../align/virt-alignment-scan.pod:284
629 msgid ""
630 "Another way to correct partition alignment problems is to reinstall your "
631 "guest operating systems.  If you install operating systems from templates, "
632 "ensure these have correct partition alignment too."
633 msgstr ""
634
635 #. type: textblock
636 #: ../align/virt-alignment-scan.pod:288
637 msgid ""
638 "For older versions of Windows, the following NetApp document contains useful "
639 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
640 msgstr ""
641
642 #. type: textblock
643 #: ../align/virt-alignment-scan.pod:291
644 msgid ""
645 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
646 "an explicit C<%pre> section that creates aligned partitions using "
647 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
648 "document above contains an example."
649 msgstr ""
650
651 #. type: =head1
652 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483 ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:655 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:744
653 msgid "SHELL QUOTING"
654 msgstr ""
655
656 #. type: textblock
657 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485 ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:657 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:752
658 msgid ""
659 "Libvirt guest names can contain arbitrary characters, some of which have "
660 "meaning to the shell such as C<#> and space.  You may need to quote or "
661 "escape these characters on the command line.  See the shell manual page "
662 "L<sh(1)> for details."
663 msgstr ""
664
665 #. type: =head1
666 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490 ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:662 ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
667 msgid "EXIT STATUS"
668 msgstr ""
669
670 #. type: textblock
671 #: ../align/virt-alignment-scan.pod:305
672 msgid "This program returns:"
673 msgstr ""
674
675 #. type: =item
676 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315 ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328 ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287 ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295 ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314 ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322 ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362 ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388 ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102 ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132 ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227 ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403 ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417 ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148 ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156 ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168 ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182 ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294 ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601 ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615 ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024 ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039 ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:338 ../resize/virt-resize.pod:342 ../resize/virt-resize.pod:351 ../resize/virt-resize.pod:357 ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788 ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808 ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822 ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830 ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982 ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032 ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098 ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115 ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176 ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674 ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785 ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804 ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104 ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636 ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047 ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060 ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083 ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322 ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
677 msgid "*"
678 msgstr ""
679
680 #. type: textblock
681 #: ../align/virt-alignment-scan.pod:311
682 msgid "0"
683 msgstr ""
684
685 #. type: textblock
686 #: ../align/virt-alignment-scan.pod:313
687 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
688 msgstr ""
689
690 #. type: textblock
691 #: ../align/virt-alignment-scan.pod:317
692 msgid "1"
693 msgstr ""
694
695 #. type: textblock
696 #: ../align/virt-alignment-scan.pod:319
697 msgid "an error scanning the disk image or guest"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:323
702 msgid "2"
703 msgstr ""
704
705 #. type: textblock
706 #: ../align/virt-alignment-scan.pod:325
707 msgid ""
708 "successful exit, some partitions have alignment E<lt> 64K which can result "
709 "in poor performance on high end network storage"
710 msgstr ""
711
712 #. type: textblock
713 #: ../align/virt-alignment-scan.pod:330
714 msgid "3"
715 msgstr ""
716
717 #. type: textblock
718 #: ../align/virt-alignment-scan.pod:332
719 msgid ""
720 "successful exit, some partitions have alignment E<lt> 4K which can result in "
721 "poor performance on most hypervisors"
722 msgstr ""
723
724 #. type: =head1
725 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495 ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288 ../resize/virt-resize.pod:667 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255 ../test-tool/libguestfs-test-tool.pod:100 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl:757
726 msgid "SEE ALSO"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:339
731 msgid ""
732 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
733 "L<virt-resize(1)>, L<http://libguestfs.org/>."
734 msgstr ""
735
736 #. type: =head1
737 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507 ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:690 ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:783
738 msgid "AUTHOR"
739 msgstr ""
740
741 #. type: textblock
742 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509 ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:692 ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
743 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
744 msgstr ""
745
746 #. type: =head1
747 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511 ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337 ../test-tool/libguestfs-test-tool.pod:110 ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315 ../tools/virt-win-reg.pl:787
748 msgid "COPYRIGHT"
749 msgstr ""
750
751 #. type: textblock
752 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507 ../sparsify/virt-sparsify.pod:270
753 msgid "Copyright (C) 2011 Red Hat Inc."
754 msgstr ""
755
756 #. type: textblock
757 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515 ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:698 ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:791
758 msgid ""
759 "This program is free software; you can redistribute it and/or modify it "
760 "under the terms of the GNU General Public License as published by the Free "
761 "Software Foundation; either version 2 of the License, or (at your option) "
762 "any later version."
763 msgstr ""
764
765 #. type: textblock
766 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520 ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:703 ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:796
767 msgid ""
768 "This program is distributed in the hope that it will be useful, but WITHOUT "
769 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
770 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
771 "more details."
772 msgstr ""
773
774 #. type: textblock
775 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525 ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:708 ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:801
776 msgid ""
777 "You should have received a copy of the GNU General Public License along with "
778 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
779 "Ave, Cambridge, MA 02139, USA."
780 msgstr ""
781
782 #. type: textblock
783 #: ../cat/virt-cat.pod:5
784 msgid "virt-cat - Display files in a virtual machine"
785 msgstr ""
786
787 #. type: verbatim
788 #: ../cat/virt-cat.pod:9
789 #, no-wrap
790 msgid ""
791 " virt-cat [--options] -d domname file [file ...]\n"
792 "\n"
793 msgstr ""
794
795 #. type: verbatim
796 #: ../cat/virt-cat.pod:11
797 #, no-wrap
798 msgid ""
799 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
800 "\n"
801 msgstr ""
802
803 #. type: textblock
804 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
805 msgid "Old-style:"
806 msgstr ""
807
808 #. type: verbatim
809 #: ../cat/virt-cat.pod:15
810 #, no-wrap
811 msgid ""
812 " virt-cat domname file\n"
813 "\n"
814 msgstr ""
815
816 #. type: verbatim
817 #: ../cat/virt-cat.pod:17
818 #, no-wrap
819 msgid ""
820 " virt-cat disk.img file\n"
821 "\n"
822 msgstr ""
823
824 #. type: textblock
825 #: ../cat/virt-cat.pod:21
826 msgid ""
827 "C<virt-cat> is a command line tool to display the contents of C<file> where "
828 "C<file> exists in the named virtual machine (or disk image)."
829 msgstr ""
830
831 #. type: textblock
832 #: ../cat/virt-cat.pod:24
833 msgid ""
834 "Multiple filenames can be given, in which case they are concatenated "
835 "together.  Each filename must be a full path, starting at the root directory "
836 "(starting with '/')."
837 msgstr ""
838
839 #. type: textblock
840 #: ../cat/virt-cat.pod:28
841 msgid ""
842 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
843 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
844 "tool (see L</USING GUESTFISH> below)."
845 msgstr ""
846
847 #. type: =head1
848 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75 ../tools/virt-tar.pl:50
849 msgid "EXAMPLES"
850 msgstr ""
851
852 #. type: textblock
853 #: ../cat/virt-cat.pod:34
854 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
855 msgstr ""
856
857 #. type: verbatim
858 #: ../cat/virt-cat.pod:37
859 #, no-wrap
860 msgid ""
861 " virt-cat -d mydomain /etc/fstab\n"
862 "\n"
863 msgstr ""
864
865 #. type: textblock
866 #: ../cat/virt-cat.pod:39
867 msgid "List syslog messages from a VM disk image file:"
868 msgstr ""
869
870 #. type: verbatim
871 #: ../cat/virt-cat.pod:41
872 #, no-wrap
873 msgid ""
874 " virt-cat -a disk.img /var/log/messages | tail\n"
875 "\n"
876 msgstr ""
877
878 #. type: textblock
879 #: ../cat/virt-cat.pod:43
880 msgid "Find out what DHCP IP address a VM acquired:"
881 msgstr ""
882
883 #. type: verbatim
884 #: ../cat/virt-cat.pod:45
885 #, no-wrap
886 msgid ""
887 " virt-cat -d mydomain /var/log/messages | \\\n"
888 "   grep 'dhclient: bound to' | tail\n"
889 "\n"
890 msgstr ""
891
892 #. type: textblock
893 #: ../cat/virt-cat.pod:48
894 msgid "Find out what packages were recently installed:"
895 msgstr ""
896
897 #. type: verbatim
898 #: ../cat/virt-cat.pod:50
899 #, no-wrap
900 msgid ""
901 " virt-cat -d mydomain /var/log/yum.log | tail\n"
902 "\n"
903 msgstr ""
904
905 #. type: textblock
906 #: ../cat/virt-cat.pod:52
907 msgid "Find out who is logged on inside a virtual machine:"
908 msgstr ""
909
910 #. type: verbatim
911 #: ../cat/virt-cat.pod:54
912 #, no-wrap
913 msgid ""
914 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
915 " who /tmp/utmp\n"
916 "\n"
917 msgstr ""
918
919 #. type: textblock
920 #: ../cat/virt-cat.pod:57
921 msgid "or who was logged on:"
922 msgstr ""
923
924 #. type: verbatim
925 #: ../cat/virt-cat.pod:59
926 #, no-wrap
927 msgid ""
928 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
929 " last -f /tmp/wtmp\n"
930 "\n"
931 msgstr ""
932
933 #. type: textblock
934 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
935 msgid ""
936 "Add I<file> which should be a disk image from a virtual machine.  If the "
937 "virtual machine has multiple block devices, you must supply all of them with "
938 "separate I<-a> options."
939 msgstr ""
940
941 #. type: =item
942 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
943 msgid "B<--echo-keys>"
944 msgstr ""
945
946 #. type: textblock
947 #: ../cat/virt-cat.pod:100
948 msgid ""
949 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
950 "so you cannot see what you are typing.  If you are not worried about Tempest "
951 "attacks and there is no one else in the room you can specify this flag to "
952 "see what you are typing."
953 msgstr ""
954
955 #. type: verbatim
956 #: ../cat/virt-cat.pod:116
957 #, no-wrap
958 msgid ""
959 " virt-cat --format=raw -a disk.img file\n"
960 "\n"
961 msgstr ""
962
963 #. type: verbatim
964 #: ../cat/virt-cat.pod:120
965 #, no-wrap
966 msgid ""
967 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
968 "\n"
969 msgstr ""
970
971 #. type: =item
972 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
973 msgid "B<--keys-from-stdin>"
974 msgstr ""
975
976 #. type: textblock
977 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
978 msgid ""
979 "Read key or passphrase parameters from stdin.  The default is to try to read "
980 "passphrases from the user by opening C</dev/tty>."
981 msgstr ""
982
983 #. type: =head1
984 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
985 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
986 msgstr ""
987
988 #. type: textblock
989 #: ../cat/virt-cat.pod:154
990 msgid "Previous versions of virt-cat allowed you to write either:"
991 msgstr ""
992
993 #. type: verbatim
994 #: ../cat/virt-cat.pod:156
995 #, no-wrap
996 msgid ""
997 " virt-cat disk.img [disk.img ...] file\n"
998 "\n"
999 msgstr ""
1000
1001 #. type: textblock
1002 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1003 msgid "or"
1004 msgstr ""
1005
1006 #. type: verbatim
1007 #: ../cat/virt-cat.pod:160
1008 #, no-wrap
1009 msgid ""
1010 " virt-cat guestname file\n"
1011 "\n"
1012 msgstr ""
1013
1014 #. type: textblock
1015 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1016 msgid ""
1017 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1018 "the confusing case where a disk image might have the same name as a guest."
1019 msgstr ""
1020
1021 #. type: textblock
1022 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1023 msgid "For compatibility the old style is still supported."
1024 msgstr ""
1025
1026 #. type: =head1
1027 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1028 msgid "USING GUESTFISH"
1029 msgstr ""
1030
1031 #. type: textblock
1032 #: ../cat/virt-cat.pod:170
1033 msgid ""
1034 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1035 "C<virt-cat> doesn't work."
1036 msgstr ""
1037
1038 #. type: textblock
1039 #: ../cat/virt-cat.pod:173
1040 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1041 msgstr ""
1042
1043 #. type: verbatim
1044 #: ../cat/virt-cat.pod:175
1045 #, no-wrap
1046 msgid ""
1047 " guestfish --ro -i -d domname download file -\n"
1048 "\n"
1049 msgstr ""
1050
1051 #. type: textblock
1052 #: ../cat/virt-cat.pod:177
1053 msgid ""
1054 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1055 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1056 msgstr ""
1057
1058 #. type: textblock
1059 #: ../cat/virt-cat.pod:181
1060 msgid ""
1061 "The command above uses libguestfs's guest inspection feature and so does not "
1062 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1063 "disk images that don't contain guests.  To display a file from a disk image "
1064 "directly, use:"
1065 msgstr ""
1066
1067 #. type: verbatim
1068 #: ../cat/virt-cat.pod:186
1069 #, no-wrap
1070 msgid ""
1071 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1072 "\n"
1073 msgstr ""
1074
1075 #. type: textblock
1076 #: ../cat/virt-cat.pod:188
1077 msgid ""
1078 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1079 "the disk image, and C<file> is the full path to the file."
1080 msgstr ""
1081
1082 #. type: textblock
1083 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374 ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377 ../resize/virt-resize.pod:664 ../sparsify/virt-sparsify.pod:229
1084 msgid "This program returns 0 if successful, or non-zero if there was an error."
1085 msgstr ""
1086
1087 #. type: textblock
1088 #: ../cat/virt-cat.pod:205
1089 msgid ""
1090 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
1091 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
1092 msgstr ""
1093
1094 #. type: textblock
1095 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405 ../resize/virt-resize.pod:696 ../tools/virt-make-fs.pl:588
1096 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1097 msgstr ""
1098
1099 #. type: textblock
1100 #: ../cat/virt-filesystems.pod:5
1101 msgid ""
1102 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1103 "virtual machine or disk image"
1104 msgstr ""
1105
1106 #. type: verbatim
1107 #: ../cat/virt-filesystems.pod:9
1108 #, no-wrap
1109 msgid ""
1110 " virt-filesystems [--options] -d domname\n"
1111 "\n"
1112 msgstr ""
1113
1114 #. type: verbatim
1115 #: ../cat/virt-filesystems.pod:11
1116 #, no-wrap
1117 msgid ""
1118 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1119 "\n"
1120 msgstr ""
1121
1122 #. type: textblock
1123 #: ../cat/virt-filesystems.pod:15
1124 msgid ""
1125 "This tool allows you to discover filesystems, partitions, logical volumes, "
1126 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1127 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1128 msgstr ""
1129
1130 #. type: textblock
1131 #: ../cat/virt-filesystems.pod:20
1132 msgid ""
1133 "One use for this tool is from shell scripts to iterate over all filesystems "
1134 "from a disk image:"
1135 msgstr ""
1136
1137 #. type: verbatim
1138 #: ../cat/virt-filesystems.pod:23
1139 #, no-wrap
1140 msgid ""
1141 " for fs in $(virt-filesystems -a disk.img); do\n"
1142 "   # ...\n"
1143 " done\n"
1144 "\n"
1145 msgstr ""
1146
1147 #. type: textblock
1148 #: ../cat/virt-filesystems.pod:27
1149 msgid ""
1150 "Another use is to list partitions before using another tool to modify those "
1151 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1152 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1153 msgstr ""
1154
1155 #. type: textblock
1156 #: ../cat/virt-filesystems.pod:32
1157 msgid ""
1158 "Various command line options control what this program displays.  You need "
1159 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1160 "guest respectively.  If you just specify that then the program shows "
1161 "filesystems found, one per line, like this:"
1162 msgstr ""
1163
1164 #. type: verbatim
1165 #: ../cat/virt-filesystems.pod:37
1166 #, no-wrap
1167 msgid ""
1168 " $ virt-filesystems -a disk.img\n"
1169 " /dev/sda1\n"
1170 " /dev/vg_guest/lv_root\n"
1171 "\n"
1172 msgstr ""
1173
1174 #. type: textblock
1175 #: ../cat/virt-filesystems.pod:41
1176 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
1177 msgstr ""
1178
1179 #. type: verbatim
1180 #: ../cat/virt-filesystems.pod:44
1181 #, no-wrap
1182 msgid ""
1183 " $ virt-filesystems -a disk.img -l\n"
1184 " Name                   Type         VFS   Label  Size\n"
1185 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1186 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1187 "\n"
1188 msgstr ""
1189
1190 #. type: textblock
1191 #: ../cat/virt-filesystems.pod:49
1192 msgid ""
1193 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1194 "shown as well:"
1195 msgstr ""
1196
1197 #. type: verbatim
1198 #: ../cat/virt-filesystems.pod:52
1199 #, no-wrap
1200 msgid ""
1201 " $ virt-filesystems -a disk.img --extra\n"
1202 " /dev/sda1\n"
1203 " /dev/vg_guest/lv_root\n"
1204 " /dev/vg_guest/lv_swap\n"
1205 " /dev/vg_guest/lv_data\n"
1206 "\n"
1207 msgstr ""
1208
1209 #. type: textblock
1210 #: ../cat/virt-filesystems.pod:58
1211 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
1212 msgstr ""
1213
1214 #. type: verbatim
1215 #: ../cat/virt-filesystems.pod:60
1216 #, no-wrap
1217 msgid ""
1218 " $ virt-filesystems -a disk.img --partitions\n"
1219 " /dev/sda1\n"
1220 " /dev/sda2\n"
1221 "\n"
1222 msgstr ""
1223
1224 #. type: textblock
1225 #: ../cat/virt-filesystems.pod:64
1226 msgid ""
1227 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
1228 "I<--physical-volumes>, I<--block-devices> to list those items."
1229 msgstr ""
1230
1231 #. type: textblock
1232 #: ../cat/virt-filesystems.pod:67
1233 msgid ""
1234 "You can use these options in combination as well (if you want a combination "
1235 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1236 "items fall into several categories (eg. C</dev/sda1> might be both a "
1237 "partition and a filesystem).  These items are listed several times.  To get "
1238 "a list which includes absolutely everything that virt-filesystems knows "
1239 "about, use the I<--all> option."
1240 msgstr ""
1241
1242 #. type: textblock
1243 #: ../cat/virt-filesystems.pod:74
1244 msgid ""
1245 "UUIDs (because they are quite long) are not shown by default.  Add the "
1246 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1247 msgstr ""
1248
1249 #. type: textblock
1250 #: ../cat/virt-filesystems.pod:78
1251 msgid ""
1252 "I<--all --long --uuid> is a useful combination to display all possible "
1253 "information about everything."
1254 msgstr ""
1255
1256 #. type: verbatim
1257 #: ../cat/virt-filesystems.pod:81
1258 #, no-wrap
1259 msgid ""
1260 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1261 " Name      Type       VFS  Label           Size Parent   UUID\n"
1262 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1263 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1264 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1265 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1266 " /dev/sda  device     -    -               20G  -        -\n"
1267 "\n"
1268 msgstr ""
1269
1270 #. type: textblock
1271 #: ../cat/virt-filesystems.pod:89
1272 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1273 msgstr ""
1274
1275 #. type: =item
1276 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1277 msgid "B<--all>"
1278 msgstr ""
1279
1280 #. type: textblock
1281 #: ../cat/virt-filesystems.pod:112
1282 msgid ""
1283 "Display everything.  This is currently the same as specifying these options: "
1284 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1285 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1286 "be added to this list in future)."
1287 msgstr ""
1288
1289 #. type: textblock
1290 #: ../cat/virt-filesystems.pod:117
1291 msgid "See also I<--long>."
1292 msgstr ""
1293
1294 #. type: =item
1295 #: ../cat/virt-filesystems.pod:119
1296 msgid "B<--blkdevs>"
1297 msgstr ""
1298
1299 #. type: =item
1300 #: ../cat/virt-filesystems.pod:121
1301 msgid "B<--block-devices>"
1302 msgstr ""
1303
1304 #. type: textblock
1305 #: ../cat/virt-filesystems.pod:123
1306 msgid "Display block devices."
1307 msgstr ""
1308
1309 #. type: =item
1310 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1311 msgid "B<--csv>"
1312 msgstr ""
1313
1314 #. type: textblock
1315 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1316 msgid ""
1317 "Write out the results in CSV format (comma-separated values).  This format "
1318 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1319 "ABOUT CSV FORMAT> below."
1320 msgstr ""
1321
1322 #. type: textblock
1323 #: ../cat/virt-filesystems.pod:150
1324 msgid ""
1325 "When prompting for keys and passphrases, virt-filesystems normally turns "
1326 "echoing off so you cannot see what you are typing.  If you are not worried "
1327 "about Tempest attacks and there is no one else in the room you can specify "
1328 "this flag to see what you are typing."
1329 msgstr ""
1330
1331 #. type: =item
1332 #: ../cat/virt-filesystems.pod:155
1333 msgid "B<--extra>"
1334 msgstr ""
1335
1336 #. type: textblock
1337 #: ../cat/virt-filesystems.pod:157
1338 msgid ""
1339 "This causes filesystems that are not ordinary, mountable filesystems to be "
1340 "displayed.  This category includes swapspace, and filesystems that are empty "
1341 "or contain unknown data."
1342 msgstr ""
1343
1344 #. type: textblock
1345 #: ../cat/virt-filesystems.pod:161
1346 msgid "This option implies I<--filesystems>."
1347 msgstr ""
1348
1349 #. type: =item
1350 #: ../cat/virt-filesystems.pod:163
1351 msgid "B<--filesystems>"
1352 msgstr ""
1353
1354 #. type: textblock
1355 #: ../cat/virt-filesystems.pod:165
1356 msgid ""
1357 "Display mountable filesystems.  If no display option was selected then this "
1358 "option is implied."
1359 msgstr ""
1360
1361 #. type: textblock
1362 #: ../cat/virt-filesystems.pod:168
1363 msgid "With I<--extra>, non-mountable filesystems are shown too."
1364 msgstr ""
1365
1366 #. type: verbatim
1367 #: ../cat/virt-filesystems.pod:181
1368 #, no-wrap
1369 msgid ""
1370 " virt-filesystems --format=raw -a disk.img\n"
1371 "\n"
1372 msgstr ""
1373
1374 #. type: verbatim
1375 #: ../cat/virt-filesystems.pod:185
1376 #, no-wrap
1377 msgid ""
1378 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1379 "\n"
1380 msgstr ""
1381
1382 #. type: =item
1383 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352 ../df/virt-df.pod:125 ../fish/guestfish.pod:156 ../tools/virt-list-partitions.pl:109
1384 msgid "B<-h>"
1385 msgstr ""
1386
1387 #. type: =item
1388 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1389 msgid "B<--human-readable>"
1390 msgstr ""
1391
1392 #. type: textblock
1393 #: ../cat/virt-filesystems.pod:198
1394 msgid "In I<--long> mode, display sizes in human-readable format."
1395 msgstr ""
1396
1397 #. type: =item
1398 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1399 msgid "B<-l>"
1400 msgstr ""
1401
1402 #. type: =item
1403 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1404 msgid "B<--long>"
1405 msgstr ""
1406
1407 #. type: textblock
1408 #: ../cat/virt-filesystems.pod:209
1409 msgid "Display extra columns of data (\"long format\")."
1410 msgstr ""
1411
1412 #. type: textblock
1413 #: ../cat/virt-filesystems.pod:211
1414 msgid "A title row is added unless you also specify I<--no-title>."
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-filesystems.pod:213
1419 msgid ""
1420 "The extra columns displayed depend on what output you select, and the "
1421 "ordering of columns may change in future versions.  Use the title row, "
1422 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1423 "programs."
1424 msgstr ""
1425
1426 #. type: textblock
1427 #: ../cat/virt-filesystems.pod:218
1428 msgid ""
1429 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1430 "default is to show raw numbers of I<bytes>."
1431 msgstr ""
1432
1433 #. type: textblock
1434 #: ../cat/virt-filesystems.pod:221
1435 msgid "Use I<--uuid> to display UUIDs too."
1436 msgstr ""
1437
1438 #. type: =item
1439 #: ../cat/virt-filesystems.pod:223
1440 msgid "B<--lvs>"
1441 msgstr ""
1442
1443 #. type: =item
1444 #: ../cat/virt-filesystems.pod:225
1445 msgid "B<--logvols>"
1446 msgstr ""
1447
1448 #. type: =item
1449 #: ../cat/virt-filesystems.pod:227
1450 msgid "B<--logical-volumes>"
1451 msgstr ""
1452
1453 #. type: textblock
1454 #: ../cat/virt-filesystems.pod:229
1455 msgid ""
1456 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1457 "of whether the LVs contain filesystems."
1458 msgstr ""
1459
1460 #. type: =item
1461 #: ../cat/virt-filesystems.pod:232
1462 msgid "B<--no-title>"
1463 msgstr ""
1464
1465 #. type: textblock
1466 #: ../cat/virt-filesystems.pod:234
1467 msgid "In I<--long> mode, don't add a title row."
1468 msgstr ""
1469
1470 #. type: textblock
1471 #: ../cat/virt-filesystems.pod:236
1472 msgid ""
1473 "Note that the order of the columns is not fixed, and may change in future "
1474 "versions of virt-filesystems, so using this option may give you unexpected "
1475 "surprises."
1476 msgstr ""
1477
1478 #. type: =item
1479 #: ../cat/virt-filesystems.pod:240
1480 msgid "B<--parts>"
1481 msgstr ""
1482
1483 #. type: =item
1484 #: ../cat/virt-filesystems.pod:242
1485 msgid "B<--partitions>"
1486 msgstr ""
1487
1488 #. type: textblock
1489 #: ../cat/virt-filesystems.pod:244
1490 msgid ""
1491 "Display partitions.  In this mode, these are displayed irrespective of "
1492 "whether the partitions contain filesystems."
1493 msgstr ""
1494
1495 #. type: =item
1496 #: ../cat/virt-filesystems.pod:247
1497 msgid "B<--pvs>"
1498 msgstr ""
1499
1500 #. type: =item
1501 #: ../cat/virt-filesystems.pod:249
1502 msgid "B<--physvols>"
1503 msgstr ""
1504
1505 #. type: =item
1506 #: ../cat/virt-filesystems.pod:251
1507 msgid "B<--physical-volumes>"
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-filesystems.pod:253
1512 msgid "Display LVM physical volumes."
1513 msgstr ""
1514
1515 #. type: =item
1516 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1517 msgid "B<--uuid>"
1518 msgstr ""
1519
1520 #. type: =item
1521 #: ../cat/virt-filesystems.pod:257
1522 msgid "B<--uuids>"
1523 msgstr ""
1524
1525 #. type: textblock
1526 #: ../cat/virt-filesystems.pod:259
1527 msgid "In I<--long> mode, display UUIDs as well."
1528 msgstr ""
1529
1530 #. type: =item
1531 #: ../cat/virt-filesystems.pod:273
1532 msgid "B<--vgs>"
1533 msgstr ""
1534
1535 #. type: =item
1536 #: ../cat/virt-filesystems.pod:275
1537 msgid "B<--volgroups>"
1538 msgstr ""
1539
1540 #. type: =item
1541 #: ../cat/virt-filesystems.pod:277
1542 msgid "B<--volume-groups>"
1543 msgstr ""
1544
1545 #. type: textblock
1546 #: ../cat/virt-filesystems.pod:279
1547 msgid "Display LVM volume groups."
1548 msgstr ""
1549
1550 #. type: =head1
1551 #: ../cat/virt-filesystems.pod:287
1552 msgid "COLUMNS"
1553 msgstr ""
1554
1555 #. type: textblock
1556 #: ../cat/virt-filesystems.pod:289
1557 msgid ""
1558 "Note that columns in the output are subject to reordering and change in "
1559 "future versions of this tool."
1560 msgstr ""
1561
1562 #. type: =item
1563 #: ../cat/virt-filesystems.pod:294
1564 msgid "B<Name>"
1565 msgstr ""
1566
1567 #. type: textblock
1568 #: ../cat/virt-filesystems.pod:296
1569 msgid "The filesystem, partition, block device or LVM name."
1570 msgstr ""
1571
1572 #. type: textblock
1573 #: ../cat/virt-filesystems.pod:298
1574 msgid ""
1575 "For device and partition names these are displayed as canonical libguestfs "
1576 "names, so that for example C</dev/sda2> is the second partition on the first "
1577 "device."
1578 msgstr ""
1579
1580 #. type: textblock
1581 #: ../cat/virt-filesystems.pod:302
1582 msgid ""
1583 "If the I<--long> option is B<not> specified, then only the name column is "
1584 "shown in the output."
1585 msgstr ""
1586
1587 #. type: =item
1588 #: ../cat/virt-filesystems.pod:305
1589 msgid "B<Type>"
1590 msgstr ""
1591
1592 #. type: textblock
1593 #: ../cat/virt-filesystems.pod:307
1594 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1595 msgstr ""
1596
1597 #. type: =item
1598 #: ../cat/virt-filesystems.pod:309
1599 msgid "B<VFS>"
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-filesystems.pod:311
1604 msgid ""
1605 "If there is a filesystem, then this column displays the filesystem type if "
1606 "one could be detected, eg. C<ext4>."
1607 msgstr ""
1608
1609 #. type: =item
1610 #: ../cat/virt-filesystems.pod:314
1611 msgid "B<Label>"
1612 msgstr ""
1613
1614 #. type: textblock
1615 #: ../cat/virt-filesystems.pod:316
1616 msgid ""
1617 "If the object has a label (used for identifying and mounting filesystems) "
1618 "then this column contains the label."
1619 msgstr ""
1620
1621 #. type: =item
1622 #: ../cat/virt-filesystems.pod:319
1623 msgid "B<Size>"
1624 msgstr ""
1625
1626 #. type: textblock
1627 #: ../cat/virt-filesystems.pod:321
1628 msgid ""
1629 "The size of the object in bytes.  If the I<--human> option is used then the "
1630 "size is displayed in a human-readable form."
1631 msgstr ""
1632
1633 #. type: =item
1634 #: ../cat/virt-filesystems.pod:324
1635 msgid "B<Parent>"
1636 msgstr ""
1637
1638 #. type: textblock
1639 #: ../cat/virt-filesystems.pod:326
1640 msgid ""
1641 "The parent column records the parent relationship between objects.  For "
1642 "example, if the object is a partition, then this column contains the name of "
1643 "the containing device.  If the object is a logical volume, then this column "
1644 "is the name of the volume group."
1645 msgstr ""
1646
1647 #. type: =item
1648 #: ../cat/virt-filesystems.pod:331
1649 msgid "B<UUID>"
1650 msgstr ""
1651
1652 #. type: textblock
1653 #: ../cat/virt-filesystems.pod:333
1654 msgid ""
1655 "If the object has a UUID (used for identifying and mounting filesystems and "
1656 "block devices) then this column contains the UUID as a string."
1657 msgstr ""
1658
1659 #. type: textblock
1660 #: ../cat/virt-filesystems.pod:337
1661 msgid "The UUID is only displayed if the I<--uuid> option is given."
1662 msgstr ""
1663
1664 #. type: =head1
1665 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459 ../df/virt-df.pod:191
1666 msgid "NOTE ABOUT CSV FORMAT"
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461 ../df/virt-df.pod:193
1671 msgid ""
1672 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1673 "should be easy to parse, but it is definitely not easy to parse."
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464 ../df/virt-df.pod:196
1678 msgid ""
1679 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1680 "reliably.  This example has two columns:"
1681 msgstr ""
1682
1683 #. type: verbatim
1684 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467 ../df/virt-df.pod:199
1685 #, no-wrap
1686 msgid ""
1687 " \"foo,bar\",baz\n"
1688 "\n"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469 ../df/virt-df.pod:201
1693 msgid ""
1694 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1695 "reliably.  This example has one row:"
1696 msgstr ""
1697
1698 #. type: verbatim
1699 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472 ../df/virt-df.pod:204
1700 #, no-wrap
1701 msgid ""
1702 " \"foo\n"
1703 " bar\",baz\n"
1704 "\n"
1705 msgstr ""
1706
1707 #. type: textblock
1708 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475 ../df/virt-df.pod:207
1709 msgid ""
1710 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1711 "packaged in major Linux distributions)."
1712 msgstr ""
1713
1714 #. type: textblock
1715 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478 ../df/virt-df.pod:210
1716 msgid ""
1717 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1718 "or Python's built-in csv library)."
1719 msgstr ""
1720
1721 #. type: textblock
1722 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481 ../df/virt-df.pod:213
1723 msgid "Most spreadsheets and databases can import CSV directly."
1724 msgstr ""
1725
1726 #. type: textblock
1727 #: ../cat/virt-filesystems.pod:379
1728 msgid ""
1729 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1730 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1731 "L<http://libguestfs.org/>."
1732 msgstr ""
1733
1734 #. type: textblock
1735 #: ../cat/virt-filesystems.pod:394 ../tools/virt-win-reg.pl:789
1736 msgid "Copyright (C) 2010 Red Hat Inc."
1737 msgstr ""
1738
1739 #. type: textblock
1740 #: ../cat/virt-ls.pod:5
1741 msgid "virt-ls - List files in a virtual machine"
1742 msgstr ""
1743
1744 #. type: verbatim
1745 #: ../cat/virt-ls.pod:9
1746 #, no-wrap
1747 msgid ""
1748 " virt-ls [--options] -d domname directory [directory ...]\n"
1749 "\n"
1750 msgstr ""
1751
1752 #. type: verbatim
1753 #: ../cat/virt-ls.pod:11
1754 #, no-wrap
1755 msgid ""
1756 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1757 "...]\n"
1758 "\n"
1759 msgstr ""
1760
1761 #. type: textblock
1762 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1763 msgid "Old style:"
1764 msgstr ""
1765
1766 #. type: verbatim
1767 #: ../cat/virt-ls.pod:15
1768 #, no-wrap
1769 msgid ""
1770 " virt-ls [--options] domname directory\n"
1771 "\n"
1772 msgstr ""
1773
1774 #. type: verbatim
1775 #: ../cat/virt-ls.pod:17
1776 #, no-wrap
1777 msgid ""
1778 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1779 "\n"
1780 msgstr ""
1781
1782 #. type: textblock
1783 #: ../cat/virt-ls.pod:21
1784 msgid ""
1785 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1786 "more from a virtual machine or disk image."
1787 msgstr ""
1788
1789 #. type: textblock
1790 #: ../cat/virt-ls.pod:24
1791 msgid ""
1792 "Multiple directory names can be given, in which case the output from each is "
1793 "concatenated."
1794 msgstr ""
1795
1796 #. type: textblock
1797 #: ../cat/virt-ls.pod:27
1798 msgid ""
1799 "To list directories from a libvirt guest use the I<-d> option to specify the "
1800 "name of the guest.  For a disk image, use the I<-a> option."
1801 msgstr ""
1802
1803 #. type: textblock
1804 #: ../cat/virt-ls.pod:31
1805 msgid ""
1806 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1807 "may need to use L<guestfish(1)>, or write a program directly to the "
1808 "L<guestfs(3)> API."
1809 msgstr ""
1810
1811 #. type: textblock
1812 #: ../cat/virt-ls.pod:37
1813 msgid "Get a list of all files and directories in a virtual machine:"
1814 msgstr ""
1815
1816 #. type: verbatim
1817 #: ../cat/virt-ls.pod:39
1818 #, no-wrap
1819 msgid ""
1820 " virt-ls -R -d guest /\n"
1821 "\n"
1822 msgstr ""
1823
1824 #. type: textblock
1825 #: ../cat/virt-ls.pod:41
1826 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1827 msgstr ""
1828
1829 #. type: verbatim
1830 #: ../cat/virt-ls.pod:43
1831 #, no-wrap
1832 msgid ""
1833 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1834 "\n"
1835 msgstr ""
1836
1837 #. type: textblock
1838 #: ../cat/virt-ls.pod:45
1839 msgid "List all public-writable directories in a Linux virtual machine:"
1840 msgstr ""
1841
1842 #. type: verbatim
1843 #: ../cat/virt-ls.pod:47
1844 #, no-wrap
1845 msgid ""
1846 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1847 "\n"
1848 msgstr ""
1849
1850 #. type: textblock
1851 #: ../cat/virt-ls.pod:49
1852 msgid "List all Unix domain sockets in a Linux virtual machine:"
1853 msgstr ""
1854
1855 #. type: verbatim
1856 #: ../cat/virt-ls.pod:51
1857 #, no-wrap
1858 msgid ""
1859 " virt-ls -lR -d guest / | grep '^s'\n"
1860 "\n"
1861 msgstr ""
1862
1863 #. type: textblock
1864 #: ../cat/virt-ls.pod:53
1865 msgid "List all regular files with filenames ending in '.png':"
1866 msgstr ""
1867
1868 #. type: verbatim
1869 #: ../cat/virt-ls.pod:55
1870 #, no-wrap
1871 msgid ""
1872 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1873 "\n"
1874 msgstr ""
1875
1876 #. type: textblock
1877 #: ../cat/virt-ls.pod:57
1878 msgid "To display files larger than 10MB in home directories:"
1879 msgstr ""
1880
1881 #. type: verbatim
1882 #: ../cat/virt-ls.pod:59
1883 #, no-wrap
1884 msgid ""
1885 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1886 "\n"
1887 msgstr ""
1888
1889 #. type: textblock
1890 #: ../cat/virt-ls.pod:61
1891 msgid "Find everything modified in the last 7 days:"
1892 msgstr ""
1893
1894 #. type: verbatim
1895 #: ../cat/virt-ls.pod:63
1896 #, no-wrap
1897 msgid ""
1898 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1899 "\n"
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../cat/virt-ls.pod:65
1904 msgid "Find regular files modified in the last 24 hours:"
1905 msgstr ""
1906
1907 #. type: verbatim
1908 #: ../cat/virt-ls.pod:67
1909 #, no-wrap
1910 msgid ""
1911 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1912 "\n"
1913 msgstr ""
1914
1915 #. type: =head2
1916 #: ../cat/virt-ls.pod:69
1917 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1918 msgstr ""
1919
1920 #. type: textblock
1921 #: ../cat/virt-ls.pod:71
1922 msgid ""
1923 "Find the differences between files in a guest and an earlier snapshot of the "
1924 "same guest."
1925 msgstr ""
1926
1927 #. type: verbatim
1928 #: ../cat/virt-ls.pod:74
1929 #, no-wrap
1930 msgid ""
1931 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1932 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1933 " diff -u old new | less\n"
1934 "\n"
1935 msgstr ""
1936
1937 #. type: textblock
1938 #: ../cat/virt-ls.pod:78
1939 msgid ""
1940 "The commands above won't find files where the content has changed but the "
1941 "metadata (eg. file size and modification date) is the same.  To do that, you "
1942 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
1943 "I<--checksum> can be quite slow since it has to read and compute a checksum "
1944 "of every regular file in the virtual machine."
1945 msgstr ""
1946
1947 #. type: =head1
1948 #: ../cat/virt-ls.pod:84
1949 msgid "OUTPUT MODES"
1950 msgstr ""
1951
1952 #. type: textblock
1953 #: ../cat/virt-ls.pod:86
1954 msgid ""
1955 "C<virt-ls> has four output modes, controlled by different combinations of "
1956 "the I<-l> and I<-R> options."
1957 msgstr ""
1958
1959 #. type: =head2
1960 #: ../cat/virt-ls.pod:89
1961 msgid "SIMPLE LISTING"
1962 msgstr ""
1963
1964 #. type: textblock
1965 #: ../cat/virt-ls.pod:91
1966 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1967 msgstr ""
1968
1969 #. type: verbatim
1970 #: ../cat/virt-ls.pod:93
1971 #, no-wrap
1972 msgid ""
1973 " $ virt-ls -d guest /\n"
1974 " bin\n"
1975 " boot\n"
1976 " [etc.]\n"
1977 "\n"
1978 msgstr ""
1979
1980 #. type: =head2
1981 #: ../cat/virt-ls.pod:98
1982 msgid "LONG LISTING"
1983 msgstr ""
1984
1985 #. type: textblock
1986 #: ../cat/virt-ls.pod:100
1987 msgid ""
1988 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1989 "(more specifically, like the C<guestfs_ll> function)."
1990 msgstr ""
1991
1992 #. type: verbatim
1993 #: ../cat/virt-ls.pod:103
1994 #, no-wrap
1995 msgid ""
1996 " $ virt-ls -l -d guest /\n"
1997 " total 204\n"
1998 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1999 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2000 " [etc.]\n"
2001 "\n"
2002 msgstr ""
2003
2004 #. type: textblock
2005 #: ../cat/virt-ls.pod:109
2006 msgid ""
2007 "Note that while this is useful for displaying a directory, do not try "
2008 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2009 "instead."
2010 msgstr ""
2011
2012 #. type: =head2
2013 #: ../cat/virt-ls.pod:113
2014 msgid "RECURSIVE LISTING"
2015 msgstr ""
2016
2017 #. type: textblock
2018 #: ../cat/virt-ls.pod:115
2019 msgid ""
2020 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2021 "and directories recursively:"
2022 msgstr ""
2023
2024 #. type: verbatim
2025 #: ../cat/virt-ls.pod:118
2026 #, no-wrap
2027 msgid ""
2028 " $ virt-ls -R -d guest /tmp\n"
2029 " foo\n"
2030 " foo/bar\n"
2031 " [etc.]\n"
2032 "\n"
2033 msgstr ""
2034
2035 #. type: textblock
2036 #: ../cat/virt-ls.pod:123
2037 msgid ""
2038 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2039 "converts C<\\0> characters to C<\\n>."
2040 msgstr ""
2041
2042 #. type: =head2
2043 #: ../cat/virt-ls.pod:126
2044 msgid "RECURSIVE LONG LISTING"
2045 msgstr ""
2046
2047 #. type: textblock
2048 #: ../cat/virt-ls.pod:128
2049 msgid ""
2050 "Using I<-lR> options together changes the output to display directories "
2051 "recursively, with file stats, and optionally other features such as "
2052 "checksums and extended attributes."
2053 msgstr ""
2054
2055 #. type: textblock
2056 #: ../cat/virt-ls.pod:132
2057 msgid ""
2058 "Most of the interesting features of C<virt-ls> are only available when using "
2059 "I<-lR> mode."
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../cat/virt-ls.pod:135
2064 msgid ""
2065 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2066 "you cannot use the output in another program (because filenames can contain "
2067 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2068 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2069 "on you by creating filenames with embedded newline characters.  To B<safely> "
2070 "parse the output in another program, use the I<--csv> (Comma-Separated "
2071 "Values) option."
2072 msgstr ""
2073
2074 #. type: textblock
2075 #: ../cat/virt-ls.pod:143
2076 msgid ""
2077 "Note that this output format is completely unrelated to the C<ls -lR> "
2078 "command."
2079 msgstr ""
2080
2081 #. type: verbatim
2082 #: ../cat/virt-ls.pod:146
2083 #, no-wrap
2084 msgid ""
2085 " $ virt-ls -lR -d guest /bin\n"
2086 " d 0555       4096 /bin\n"
2087 " - 0755        123 /bin/alsaunmute\n"
2088 " - 0755      28328 /bin/arch\n"
2089 " l 0777          4 /bin/awk -> gawk\n"
2090 " - 0755      27216 /bin/basename\n"
2091 " - 0755     943360 /bin/bash\n"
2092 " [etc.]\n"
2093 "\n"
2094 msgstr ""
2095
2096 #. type: textblock
2097 #: ../cat/virt-ls.pod:155
2098 msgid "These basic fields are always shown:"
2099 msgstr ""
2100
2101 #. type: =item
2102 #: ../cat/virt-ls.pod:159
2103 msgid "type"
2104 msgstr ""
2105
2106 #. type: textblock
2107 #: ../cat/virt-ls.pod:161
2108 msgid ""
2109 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2110 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2111 "link), C<s> (socket) or C<u> (unknown)."
2112 msgstr ""
2113
2114 #. type: =item
2115 #: ../cat/virt-ls.pod:171
2116 msgid "permissions"
2117 msgstr ""
2118
2119 #. type: textblock
2120 #: ../cat/virt-ls.pod:173
2121 msgid "The Unix permissions, displayed as a 4 digit octal number."
2122 msgstr ""
2123
2124 #. type: =item
2125 #: ../cat/virt-ls.pod:175
2126 msgid "size"
2127 msgstr ""
2128
2129 #. type: textblock
2130 #: ../cat/virt-ls.pod:177
2131 msgid ""
2132 "The size of the file.  This is shown in bytes unless I<-h> or "
2133 "I<--human-readable> option is given, in which case this is shown as a "
2134 "human-readable number."
2135 msgstr ""
2136
2137 #. type: =head2
2138 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2139 msgid "path"
2140 msgstr ""
2141
2142 #. type: textblock
2143 #: ../cat/virt-ls.pod:183
2144 msgid "The full path of the file or directory."
2145 msgstr ""
2146
2147 #. type: =item
2148 #: ../cat/virt-ls.pod:185
2149 msgid "link"
2150 msgstr ""
2151
2152 #. type: textblock
2153 #: ../cat/virt-ls.pod:187
2154 msgid "For symbolic links only, the link target."
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../cat/virt-ls.pod:191
2159 msgid ""
2160 "In I<-lR> mode, additional command line options enable the display of more "
2161 "fields."
2162 msgstr ""
2163
2164 #. type: textblock
2165 #: ../cat/virt-ls.pod:194
2166 msgid ""
2167 "With the I<--uids> flag, these additional fields are displayed before the "
2168 "path:"
2169 msgstr ""
2170
2171 #. type: =item
2172 #: ../cat/virt-ls.pod:199
2173 msgid "uid"
2174 msgstr ""
2175
2176 #. type: =item
2177 #: ../cat/virt-ls.pod:201
2178 msgid "gid"
2179 msgstr ""
2180
2181 #. type: textblock
2182 #: ../cat/virt-ls.pod:203
2183 msgid ""
2184 "The UID and GID of the owner of the file (displayed numerically).  Note "
2185 "these only make sense in the context of a Unix-like guest."
2186 msgstr ""
2187
2188 #. type: textblock
2189 #: ../cat/virt-ls.pod:208
2190 msgid "With the I<--times> flag, these additional fields are displayed:"
2191 msgstr ""
2192
2193 #. type: =item
2194 #: ../cat/virt-ls.pod:212
2195 msgid "atime"
2196 msgstr ""
2197
2198 #. type: textblock
2199 #: ../cat/virt-ls.pod:214
2200 msgid "The time of last access."
2201 msgstr ""
2202
2203 #. type: =item
2204 #: ../cat/virt-ls.pod:216
2205 msgid "mtime"
2206 msgstr ""
2207
2208 #. type: textblock
2209 #: ../cat/virt-ls.pod:218
2210 msgid "The time of last modification."
2211 msgstr ""
2212
2213 #. type: =item
2214 #: ../cat/virt-ls.pod:220
2215 msgid "ctime"
2216 msgstr ""
2217
2218 #. type: textblock
2219 #: ../cat/virt-ls.pod:222
2220 msgid "The time of last status change."
2221 msgstr ""
2222
2223 #. type: textblock
2224 #: ../cat/virt-ls.pod:226
2225 msgid ""
2226 "The time fields are displayed as string dates and times, unless one of the "
2227 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2228 msgstr ""
2229
2230 #. type: textblock
2231 #: ../cat/virt-ls.pod:229
2232 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2233 msgstr ""
2234
2235 #. type: =item
2236 #: ../cat/virt-ls.pod:233
2237 msgid "device"
2238 msgstr ""
2239
2240 #. type: textblock
2241 #: ../cat/virt-ls.pod:235
2242 msgid ""
2243 "The device containing the file (displayed as major:minor).  This may not "
2244 "match devices as known to the guest."
2245 msgstr ""
2246
2247 #. type: =item
2248 #: ../cat/virt-ls.pod:238
2249 msgid "inode"
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../cat/virt-ls.pod:240
2254 msgid "The inode number."
2255 msgstr ""
2256
2257 #. type: =item
2258 #: ../cat/virt-ls.pod:242
2259 msgid "nlink"
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../cat/virt-ls.pod:244
2264 msgid "The number of hard links."
2265 msgstr ""
2266
2267 #. type: =item
2268 #: ../cat/virt-ls.pod:246
2269 msgid "rdev"
2270 msgstr ""
2271
2272 #. type: textblock
2273 #: ../cat/virt-ls.pod:248
2274 msgid "For block and char special files, the device (displayed as major:minor)."
2275 msgstr ""
2276
2277 #. type: =item
2278 #: ../cat/virt-ls.pod:251
2279 msgid "blocks"
2280 msgstr ""
2281
2282 #. type: textblock
2283 #: ../cat/virt-ls.pod:253
2284 msgid "The number of 512 byte blocks allocated to the file."
2285 msgstr ""
2286
2287 #. type: textblock
2288 #: ../cat/virt-ls.pod:257
2289 msgid ""
2290 "With the I<--checksum> flag, the checksum of the file contents is shown "
2291 "(only for regular files).  Computing file checksums can take a considerable "
2292 "amount of time."
2293 msgstr ""
2294
2295 #. type: =item
2296 #: ../cat/virt-ls.pod:280
2297 msgid "B<--checksum>"
2298 msgstr ""
2299
2300 #. type: =item
2301 #: ../cat/virt-ls.pod:282
2302 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2303 msgstr ""
2304
2305 #. type: textblock
2306 #: ../cat/virt-ls.pod:284
2307 msgid ""
2308 "Display checksum over file contents for regular files.  With no argument, "
2309 "this defaults to using I<md5>.  Using an argument, you can select the "
2310 "checksum type to use."
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358 ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408 ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2315 msgid ""
2316 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2317 "LISTING> above."
2318 msgstr ""
2319
2320 #. type: textblock
2321 #: ../cat/virt-ls.pod:316
2322 msgid ""
2323 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2324 "so you cannot see what you are typing.  If you are not worried about Tempest "
2325 "attacks and there is no one else in the room you can specify this flag to "
2326 "see what you are typing."
2327 msgstr ""
2328
2329 #. type: =item
2330 #: ../cat/virt-ls.pod:321
2331 msgid "B<--extra-stats>"
2332 msgstr ""
2333
2334 #. type: textblock
2335 #: ../cat/virt-ls.pod:323
2336 msgid "Display extra stats."
2337 msgstr ""
2338
2339 #. type: verbatim
2340 #: ../cat/virt-ls.pod:339
2341 #, no-wrap
2342 msgid ""
2343 " virt-ls --format=raw -a disk.img /dir\n"
2344 "\n"
2345 msgstr ""
2346
2347 #. type: verbatim
2348 #: ../cat/virt-ls.pod:343
2349 #, no-wrap
2350 msgid ""
2351 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2352 "\n"
2353 msgstr ""
2354
2355 #. type: textblock
2356 #: ../cat/virt-ls.pod:356
2357 msgid "Display file sizes in human-readable format."
2358 msgstr ""
2359
2360 #. type: =item
2361 #: ../cat/virt-ls.pod:370
2362 msgid "B<-R>"
2363 msgstr ""
2364
2365 #. type: =item
2366 #: ../cat/virt-ls.pod:372
2367 msgid "B<--recursive>"
2368 msgstr ""
2369
2370 #. type: textblock
2371 #: ../cat/virt-ls.pod:374
2372 msgid ""
2373 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2374 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2375 "LISTING>."
2376 msgstr ""
2377
2378 #. type: textblock
2379 #: ../cat/virt-ls.pod:378
2380 msgid ""
2381 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2382 "L</LONG LISTING>."
2383 msgstr ""
2384
2385 #. type: textblock
2386 #: ../cat/virt-ls.pod:381
2387 msgid ""
2388 "C<virt-ls -R> produces a recursive list of files starting at the named "
2389 "directory.  See L</RECURSIVE LISTING>."
2390 msgstr ""
2391
2392 #. type: textblock
2393 #: ../cat/virt-ls.pod:384
2394 msgid ""
2395 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2396 "parsed.  See L</RECURSIVE LONG LISTING>."
2397 msgstr ""
2398
2399 #. type: =item
2400 #: ../cat/virt-ls.pod:387
2401 msgid "B<--times>"
2402 msgstr ""
2403
2404 #. type: textblock
2405 #: ../cat/virt-ls.pod:389
2406 msgid "Display time fields."
2407 msgstr ""
2408
2409 #. type: =item
2410 #: ../cat/virt-ls.pod:394
2411 msgid "B<--time-days>"
2412 msgstr ""
2413
2414 #. type: textblock
2415 #: ../cat/virt-ls.pod:396
2416 msgid "Display time fields as days before now (negative if in the future)."
2417 msgstr ""
2418
2419 #. type: textblock
2420 #: ../cat/virt-ls.pod:398
2421 msgid ""
2422 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2423 "of the file is between 0 and 86399 seconds."
2424 msgstr ""
2425
2426 #. type: =item
2427 #: ../cat/virt-ls.pod:404
2428 msgid "B<--time-relative>"
2429 msgstr ""
2430
2431 #. type: textblock
2432 #: ../cat/virt-ls.pod:406
2433 msgid "Display time fields as seconds before now (negative if in the future)."
2434 msgstr ""
2435
2436 #. type: =item
2437 #: ../cat/virt-ls.pod:411
2438 msgid "B<--time-t>"
2439 msgstr ""
2440
2441 #. type: textblock
2442 #: ../cat/virt-ls.pod:413
2443 msgid "Display time fields as seconds since the Unix epoch."
2444 msgstr ""
2445
2446 #. type: =item
2447 #: ../cat/virt-ls.pod:418
2448 msgid "B<--uids>"
2449 msgstr ""
2450
2451 #. type: textblock
2452 #: ../cat/virt-ls.pod:420
2453 msgid "Display UID and GID fields."
2454 msgstr ""
2455
2456 #. type: textblock
2457 #: ../cat/virt-ls.pod:445
2458 msgid "Previous versions of virt-ls allowed you to write either:"
2459 msgstr ""
2460
2461 #. type: verbatim
2462 #: ../cat/virt-ls.pod:447
2463 #, no-wrap
2464 msgid ""
2465 " virt-ls disk.img [disk.img ...] /dir\n"
2466 "\n"
2467 msgstr ""
2468
2469 #. type: verbatim
2470 #: ../cat/virt-ls.pod:451
2471 #, no-wrap
2472 msgid ""
2473 " virt-ls guestname /dir\n"
2474 "\n"
2475 msgstr ""
2476
2477 #. type: textblock
2478 #: ../cat/virt-ls.pod:497
2479 msgid ""
2480 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2481 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2482 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2483 msgstr ""
2484
2485 #. type: textblock
2486 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:302
2487 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2488 msgstr ""
2489
2490 #. type: textblock
2491 #: ../clone/virt-sysprep.pod:5
2492 msgid "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2493 msgstr ""
2494
2495 #. type: verbatim
2496 #: ../clone/virt-sysprep.pod:9
2497 #, no-wrap
2498 msgid ""
2499 " virt-sysprep [--options] -d domname\n"
2500 "\n"
2501 msgstr ""
2502
2503 #. type: verbatim
2504 #: ../clone/virt-sysprep.pod:11
2505 #, no-wrap
2506 msgid ""
2507 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2508 "\n"
2509 msgstr ""
2510
2511 #. type: textblock
2512 #: ../clone/virt-sysprep.pod:15
2513 msgid ""
2514 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2515 "can be made from it.  Steps in this process include removing SSH host keys, "
2516 "removing persistent network MAC configuration, and removing user accounts.  "
2517 "Each step can be enabled or disabled as required."
2518 msgstr ""
2519
2520 #. type: textblock
2521 #: ../clone/virt-sysprep.pod:21
2522 msgid ""
2523 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2524 "customization by the system administrator."
2525 msgstr ""
2526
2527 #. type: textblock
2528 #: ../clone/virt-sysprep.pod:24
2529 msgid ""
2530 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2531 "be shut down.  If you want to preserve the existing contents of the guest, "
2532 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
2533 "below."
2534 msgstr ""
2535
2536 #. type: textblock
2537 #: ../clone/virt-sysprep.pod:29
2538 msgid ""
2539 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2540 "recommend that you don't.  The time you might want to run it as root is when "
2541 "you need root in order to access the disk image, but even in this case it "
2542 "would be better to change the permissions on the disk image to be writable "
2543 "as the non-root user running virt-sysprep."
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../clone/virt-sysprep.pod:35
2548 msgid ""
2549 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2550 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2551 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2552 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2553 "Windows sysprepping in a future version, and we already have code to do it."
2554 msgstr ""
2555
2556 #. type: =item
2557 #: ../clone/virt-sysprep.pod:76
2558 msgid "B<--enable=...>"
2559 msgstr ""
2560
2561 #. type: textblock
2562 #: ../clone/virt-sysprep.pod:78
2563 msgid ""
2564 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2565 "operations, for example:"
2566 msgstr ""
2567
2568 #. type: verbatim
2569 #: ../clone/virt-sysprep.pod:81
2570 #, no-wrap
2571 msgid ""
2572 " --enable=ssh-hostkeys,udev-persistent-net\n"
2573 "\n"
2574 msgstr ""
2575
2576 #. type: textblock
2577 #: ../clone/virt-sysprep.pod:83
2578 msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2579 msgstr ""
2580
2581 #. type: textblock
2582 #: ../clone/virt-sysprep.pod:85
2583 msgid ""
2584 "If the I<--enable> option is not given, then we default to trying all "
2585 "possible sysprep operations.  But some sysprep operations are skipped for "
2586 "some guest types."
2587 msgstr ""
2588
2589 #. type: textblock
2590 #: ../clone/virt-sysprep.pod:89
2591 msgid ""
2592 "Use I<--list-operations> to list operations supported by a particular "
2593 "version of virt-sysprep."
2594 msgstr ""
2595
2596 #. type: textblock
2597 #: ../clone/virt-sysprep.pod:92
2598 msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
2599 msgstr ""
2600
2601 #. type: verbatim
2602 #: ../clone/virt-sysprep.pod:106
2603 #, no-wrap
2604 msgid ""
2605 " virt-sysprep --format=raw -a disk.img\n"
2606 "\n"
2607 msgstr ""
2608
2609 #. type: verbatim
2610 #: ../clone/virt-sysprep.pod:110
2611 #, no-wrap
2612 msgid ""
2613 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
2614 "\n"
2615 msgstr ""
2616
2617 #. type: =item
2618 #: ../clone/virt-sysprep.pod:119
2619 msgid "B<--hostname> newhostname"
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../clone/virt-sysprep.pod:121
2624 msgid ""
2625 "Change the hostname.  See the L</hostname> operation below.  If not given, "
2626 "defaults to C<localhost.localdomain>."
2627 msgstr ""
2628
2629 #. type: =item
2630 #: ../clone/virt-sysprep.pod:124
2631 msgid "B<--list-operations>"
2632 msgstr ""
2633
2634 #. type: textblock
2635 #: ../clone/virt-sysprep.pod:126
2636 msgid "List the operations supported by the virt-sysprep program."
2637 msgstr ""
2638
2639 #. type: =item
2640 #: ../clone/virt-sysprep.pod:128
2641 msgid "B<--selinux-relabel>"
2642 msgstr ""
2643
2644 #. type: =item
2645 #: ../clone/virt-sysprep.pod:130
2646 msgid "B<--no-selinux-relabel>"
2647 msgstr ""
2648
2649 #. type: textblock
2650 #: ../clone/virt-sysprep.pod:132
2651 msgid ""
2652 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
2653 "I<--no-selinux-relabel> disables relabelling."
2654 msgstr ""
2655
2656 #. type: textblock
2657 #: ../clone/virt-sysprep.pod:135
2658 msgid ""
2659 "The default is to try to detect if SELinux relabelling is required.  See "
2660 "L</SELINUX RELABELLING> below for more details."
2661 msgstr ""
2662
2663 #. type: =head1
2664 #: ../clone/virt-sysprep.pod:156
2665 msgid "OPERATIONS"
2666 msgstr ""
2667
2668 #. type: textblock
2669 #: ../clone/virt-sysprep.pod:158
2670 msgid ""
2671 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
2672 "enabled>, although some are skipped depending on the type of guest."
2673 msgstr ""
2674
2675 #. type: textblock
2676 #: ../clone/virt-sysprep.pod:162
2677 msgid ""
2678 "Operations can be individually enabled using the I<--enable> option.  Use a "
2679 "comma-separated list, for example:"
2680 msgstr ""
2681
2682 #. type: verbatim
2683 #: ../clone/virt-sysprep.pod:165
2684 #, no-wrap
2685 msgid ""
2686 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
2687 "\n"
2688 msgstr ""
2689
2690 #. type: textblock
2691 #: ../clone/virt-sysprep.pod:167
2692 msgid ""
2693 "To list the operations supported by the current version of virt-sysprep, use "
2694 "I<--list-operations>."
2695 msgstr ""
2696
2697 #. type: textblock
2698 #: ../clone/virt-sysprep.pod:170
2699 msgid ""
2700 "Future versions of virt-sysprep may add more operations.  If you are using "
2701 "virt-sysprep and want predictable behaviour, specify only the operations "
2702 "that you want to have enabled."
2703 msgstr ""
2704
2705 #. type: =head2
2706 #: ../clone/virt-sysprep.pod:174
2707 msgid "cron-spool"
2708 msgstr ""
2709
2710 #. type: textblock
2711 #: ../clone/virt-sysprep.pod:176
2712 msgid "Remove user at-jobs and cron-jobs."
2713 msgstr ""
2714
2715 #. type: =head2
2716 #: ../clone/virt-sysprep.pod:178
2717 msgid "dhcp-client-state"
2718 msgstr ""
2719
2720 #. type: textblock
2721 #: ../clone/virt-sysprep.pod:180
2722 msgid "Remove DHCP client leases."
2723 msgstr ""
2724
2725 #. type: =head2
2726 #: ../clone/virt-sysprep.pod:182
2727 msgid "dhcp-server-state"
2728 msgstr ""
2729
2730 #. type: textblock
2731 #: ../clone/virt-sysprep.pod:184
2732 msgid "Remove DHCP server leases."
2733 msgstr ""
2734
2735 #. type: =head2
2736 #: ../clone/virt-sysprep.pod:186
2737 msgid "hostname"
2738 msgstr ""
2739
2740 #. type: textblock
2741 #: ../clone/virt-sysprep.pod:188
2742 msgid ""
2743 "Changes the hostname of the guest to the value given in the I<--hostname> "
2744 "parameter."
2745 msgstr ""
2746
2747 #. type: textblock
2748 #: ../clone/virt-sysprep.pod:191
2749 msgid ""
2750 "If the I<--hostname> parameter is not given, then the hostname is changed to "
2751 "C<localhost.localdomain>."
2752 msgstr ""
2753
2754 #. type: =head2
2755 #: ../clone/virt-sysprep.pod:194
2756 msgid "logfiles"
2757 msgstr ""
2758
2759 #. type: textblock
2760 #: ../clone/virt-sysprep.pod:196
2761 msgid "Remove many log files."
2762 msgstr ""
2763
2764 #. type: =head2
2765 #: ../clone/virt-sysprep.pod:198
2766 msgid "mail-spool"
2767 msgstr ""
2768
2769 #. type: textblock
2770 #: ../clone/virt-sysprep.pod:200
2771 msgid "Remove email from the local mail spool directory."
2772 msgstr ""
2773
2774 #. type: =head2
2775 #: ../clone/virt-sysprep.pod:202
2776 msgid "net-hwaddr"
2777 msgstr ""
2778
2779 #. type: textblock
2780 #: ../clone/virt-sysprep.pod:204
2781 msgid ""
2782 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
2783 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
2784 msgstr ""
2785
2786 #. type: =head2
2787 #: ../clone/virt-sysprep.pod:207
2788 msgid "random-seed"
2789 msgstr ""
2790
2791 #. type: textblock
2792 #: ../clone/virt-sysprep.pod:209
2793 msgid ""
2794 "Write some random bytes from the host into the random seed file of the "
2795 "guest."
2796 msgstr ""
2797
2798 #. type: textblock
2799 #: ../clone/virt-sysprep.pod:212
2800 msgid "See L</RANDOM SEED> below."
2801 msgstr ""
2802
2803 #. type: =head2
2804 #: ../clone/virt-sysprep.pod:214
2805 msgid "rhn-systemid"
2806 msgstr ""
2807
2808 #. type: textblock
2809 #: ../clone/virt-sysprep.pod:216
2810 msgid "Remove the RHN system ID."
2811 msgstr ""
2812
2813 #. type: =head2
2814 #: ../clone/virt-sysprep.pod:218
2815 msgid "smolt-uuid"
2816 msgstr ""
2817
2818 #. type: textblock
2819 #: ../clone/virt-sysprep.pod:220
2820 msgid "Remove the Smolt hardware UUID."
2821 msgstr ""
2822
2823 #. type: =head2
2824 #: ../clone/virt-sysprep.pod:222
2825 msgid "ssh-hostkeys"
2826 msgstr ""
2827
2828 #. type: textblock
2829 #: ../clone/virt-sysprep.pod:224
2830 msgid "Remove the SSH host keys in the guest."
2831 msgstr ""
2832
2833 #. type: textblock
2834 #: ../clone/virt-sysprep.pod:226
2835 msgid ""
2836 "The SSH host keys are regenerated (differently) next time the guest is "
2837 "booted."
2838 msgstr ""
2839
2840 #. type: textblock
2841 #: ../clone/virt-sysprep.pod:229
2842 msgid ""
2843 "If, after cloning, the guest gets the same IP address, ssh will give you a "
2844 "stark warning about the host key changing:"
2845 msgstr ""
2846
2847 #. type: verbatim
2848 #: ../clone/virt-sysprep.pod:232
2849 #, no-wrap
2850 msgid ""
2851 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2852 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
2853 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2854 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
2855 "\n"
2856 msgstr ""
2857
2858 #. type: =head2
2859 #: ../clone/virt-sysprep.pod:237
2860 msgid "udev-persistent-net"
2861 msgstr ""
2862
2863 #. type: textblock
2864 #: ../clone/virt-sysprep.pod:239
2865 msgid ""
2866 "Remove udev persistent net rules which map the guest's existing MAC address "
2867 "to a fixed ethernet device (eg. eth0)."
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../clone/virt-sysprep.pod:242
2872 msgid ""
2873 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
2874 "address occupies the old name (eg. eth0), this means the fresh MAC address "
2875 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
2876 "Erasing the udev persistent net rules avoids this."
2877 msgstr ""
2878
2879 #. type: =head2
2880 #: ../clone/virt-sysprep.pod:247
2881 msgid "utmp"
2882 msgstr ""
2883
2884 #. type: textblock
2885 #: ../clone/virt-sysprep.pod:249
2886 msgid "Remove the utmp file."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../clone/virt-sysprep.pod:251
2891 msgid ""
2892 "This records who is currently logged in on a machine.  In modern Linux "
2893 "distros it is stored in a ramdisk and hence not part of the virtual "
2894 "machine's disk, but it was stored on disk in older distros."
2895 msgstr ""
2896
2897 #. type: =head2
2898 #: ../clone/virt-sysprep.pod:255
2899 msgid "yum-uuid"
2900 msgstr ""
2901
2902 #. type: textblock
2903 #: ../clone/virt-sysprep.pod:257
2904 msgid "Remove the yum UUID."
2905 msgstr ""
2906
2907 #. type: textblock
2908 #: ../clone/virt-sysprep.pod:259
2909 msgid ""
2910 "Yum creates a fresh UUID the next time it runs when it notices that the "
2911 "original UUID has been erased."
2912 msgstr ""
2913
2914 #. type: =head1
2915 #: ../clone/virt-sysprep.pod:262
2916 msgid "COPYING AND CLONING"
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../clone/virt-sysprep.pod:264
2921 msgid ""
2922 "Virt-sysprep can be used as part of a process of cloning guests, or to "
2923 "prepare a template from which guests can be cloned.  There are many "
2924 "different ways to achieve this using the virt tools, and this section is "
2925 "just an introduction."
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../clone/virt-sysprep.pod:269
2930 msgid "A virtual machine (when switched off) consists of two parts:"
2931 msgstr ""
2932
2933 #. type: =item
2934 #: ../clone/virt-sysprep.pod:273
2935 msgid "I<configuration>"
2936 msgstr ""
2937
2938 #. type: textblock
2939 #: ../clone/virt-sysprep.pod:275
2940 msgid ""
2941 "The configuration or description of the guest.  eg. The libvirt XML (see "
2942 "C<virsh dumpxml>), the running configuration of the guest, or another "
2943 "external format like OVF."
2944 msgstr ""
2945
2946 #. type: textblock
2947 #: ../clone/virt-sysprep.pod:279
2948 msgid "Some configuration items that might need to be changed:"
2949 msgstr ""
2950
2951 #. type: textblock
2952 #: ../clone/virt-sysprep.pod:285
2953 msgid "name"
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
2958 msgid "UUID"
2959 msgstr ""
2960
2961 #. type: textblock
2962 #: ../clone/virt-sysprep.pod:293
2963 msgid "path to block device(s)"
2964 msgstr ""
2965
2966 #. type: textblock
2967 #: ../clone/virt-sysprep.pod:297
2968 msgid "network card MAC address"
2969 msgstr ""
2970
2971 #. type: =item
2972 #: ../clone/virt-sysprep.pod:301
2973 msgid "I<block device(s)>"
2974 msgstr ""
2975
2976 #. type: textblock
2977 #: ../clone/virt-sysprep.pod:303
2978 msgid ""
2979 "One or more hard disk images, themselves containing files, directories, "
2980 "applications, kernels, configuration, etc."
2981 msgstr ""
2982
2983 #. type: textblock
2984 #: ../clone/virt-sysprep.pod:306
2985 msgid "Some things inside the block devices that might need to be changed:"
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../clone/virt-sysprep.pod:312
2990 msgid "hostname and other net configuration"
2991 msgstr ""
2992
2993 #. type: textblock
2994 #: ../clone/virt-sysprep.pod:320
2995 msgid "SSH host keys"
2996 msgstr ""
2997
2998 #. type: textblock
2999 #: ../clone/virt-sysprep.pod:324
3000 msgid "Windows unique security ID (SID)"
3001 msgstr ""
3002
3003 #. type: textblock
3004 #: ../clone/virt-sysprep.pod:328
3005 msgid "Puppet registration"
3006 msgstr ""
3007
3008 #. type: =head2
3009 #: ../clone/virt-sysprep.pod:334
3010 msgid "COPYING THE BLOCK DEVICE"
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../clone/virt-sysprep.pod:336
3015 msgid ""
3016 "Starting with an original guest, you probably wish to copy the guest block "
3017 "device and its configuration to make a template.  Then once you are happy "
3018 "with the template, you will want to make many clones from it."
3019 msgstr ""
3020
3021 #. type: verbatim
3022 #: ../clone/virt-sysprep.pod:341
3023 #, no-wrap
3024 msgid ""
3025 "                        virt-sysprep\n"
3026 "                             |\n"
3027 "                             v\n"
3028 " original guest --------> template ---------->\n"
3029 "                                      \\------> cloned\n"
3030 "                                       \\-----> guests\n"
3031 "                                        \\---->\n"
3032 "\n"
3033 msgstr ""
3034
3035 #. type: textblock
3036 #: ../clone/virt-sysprep.pod:349
3037 msgid ""
3038 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3039 "L<dd(1)>."
3040 msgstr ""
3041
3042 #. type: verbatim
3043 #: ../clone/virt-sysprep.pod:352
3044 #, no-wrap
3045 msgid ""
3046 "                   dd                 dd\n"
3047 " original guest --------> template ---------->\n"
3048 "                                      \\------> cloned\n"
3049 "                                       \\-----> guests\n"
3050 "                                        \\---->\n"
3051 "\n"
3052 msgstr ""
3053
3054 #. type: textblock
3055 #: ../clone/virt-sysprep.pod:358
3056 msgid "There are some smarter (and faster) ways too:"
3057 msgstr ""
3058
3059 #. type: verbatim
3060 #: ../clone/virt-sysprep.pod:364
3061 #, no-wrap
3062 msgid ""
3063 "                          snapshot\n"
3064 "                template ---------->\n"
3065 "                            \\------> cloned\n"
3066 "                             \\-----> guests\n"
3067 "                              \\---->\n"
3068 "\n"
3069 msgstr ""
3070
3071 #. type: textblock
3072 #: ../clone/virt-sysprep.pod:370
3073 msgid ""
3074 "Use the block device as a backing file and create a snapshot on top for each "
3075 "guest.  The advantage is that you don't need to copy the block device (very "
3076 "fast) and only changes are stored (less storage required)."
3077 msgstr ""
3078
3079 #. type: textblock
3080 #: ../clone/virt-sysprep.pod:375
3081 msgid ""
3082 "Note that writing to the backing file once you have created guests on top of "
3083 "it is not possible: you will corrupt the guests."
3084 msgstr ""
3085
3086 #. type: textblock
3087 #: ../clone/virt-sysprep.pod:378
3088 msgid ""
3089 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3090 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3091 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3092 "also create cheap snapshots from files or LUNs."
3093 msgstr ""
3094
3095 #. type: textblock
3096 #: ../clone/virt-sysprep.pod:386
3097 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3098 msgstr ""
3099
3100 #. type: textblock
3101 #: ../clone/virt-sysprep.pod:390
3102 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3103 msgstr ""
3104
3105 #. type: =head2
3106 #: ../clone/virt-sysprep.pod:394
3107 msgid "VIRT-CLONE"
3108 msgstr ""
3109
3110 #. type: textblock
3111 #: ../clone/virt-sysprep.pod:396
3112 msgid ""
3113 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3114 "and/or modify the external libvirt configuration of a guest.  It will reset "
3115 "the name, UUID and MAC address of the guest in the libvirt XML."
3116 msgstr ""
3117
3118 #. type: textblock
3119 #: ../clone/virt-sysprep.pod:401
3120 msgid ""
3121 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3122 "image.  This was the original motivation to write virt-sysprep."
3123 msgstr ""
3124
3125 #. type: =head2
3126 #: ../clone/virt-sysprep.pod:404
3127 msgid "SPARSIFY"
3128 msgstr ""
3129
3130 #. type: verbatim
3131 #: ../clone/virt-sysprep.pod:406
3132 #, no-wrap
3133 msgid ""
3134 "              virt-sparsify\n"
3135 " original guest --------> template\n"
3136 "\n"
3137 msgstr ""
3138
3139 #. type: textblock
3140 #: ../clone/virt-sysprep.pod:409
3141 msgid ""
3142 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3143 "it easier to compress and/or faster to copy."
3144 msgstr ""
3145
3146 #. type: textblock
3147 #: ../clone/virt-sysprep.pod:412
3148 msgid ""
3149 "Notice that since virt-sparsify also copies the image, you can use it to "
3150 "make the initial copy (instead of C<dd>)."
3151 msgstr ""
3152
3153 #. type: =head2
3154 #: ../clone/virt-sysprep.pod:415
3155 msgid "RESIZE"
3156 msgstr ""
3157
3158 #. type: verbatim
3159 #: ../clone/virt-sysprep.pod:417
3160 #, no-wrap
3161 msgid ""
3162 "                         virt-resize\n"
3163 "                template ---------->\n"
3164 "                            \\------> cloned\n"
3165 "                             \\-----> guests\n"
3166 "                              \\---->\n"
3167 "\n"
3168 msgstr ""
3169
3170 #. type: textblock
3171 #: ../clone/virt-sysprep.pod:423
3172 msgid ""
3173 "If you want to give people cloned guests, but let them pick the size of the "
3174 "guest themselves (eg. depending on how much they are prepared to pay for "
3175 "disk space), then instead of copying the template, you can run "
3176 "L<virt-resize(1)>.  Virt-resize performs a copy and resize, and thus is "
3177 "ideal for cloning guests from a template."
3178 msgstr ""
3179
3180 #. type: =head1
3181 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3182 msgid "SECURITY"
3183 msgstr ""
3184
3185 #. type: textblock
3186 #: ../clone/virt-sysprep.pod:431
3187 msgid ""
3188 "Although virt-sysprep removes some sensitive information from the guest, it "
3189 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3190 "above, and the implementation of the operations in the shell script.  You "
3191 "should also examine the guest afterwards."
3192 msgstr ""
3193
3194 #. type: textblock
3195 #: ../clone/virt-sysprep.pod:436
3196 msgid ""
3197 "Sensitive files are simply removed.  The data they contained may still exist "
3198 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3199 "L<virt-sparsify(1)> as one way to remove this content.  See also the "
3200 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3201 "inodes."
3202 msgstr ""
3203
3204 #. type: =head2
3205 #: ../clone/virt-sysprep.pod:442
3206 msgid "RANDOM SEED"
3207 msgstr ""
3208
3209 #. type: textblock
3210 #: ../clone/virt-sysprep.pod:444
3211 msgid "I<(This section applies to Linux guests only)>"
3212 msgstr ""
3213
3214 #. type: textblock
3215 #: ../clone/virt-sysprep.pod:446
3216 msgid ""
3217 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3218 "from the host into the guest's random seed file."
3219 msgstr ""
3220
3221 #. type: textblock
3222 #: ../clone/virt-sysprep.pod:449
3223 msgid ""
3224 "If this is just done once and the guest is cloned from the same template, "
3225 "then each guest will start with the same entropy, and things like SSH host "
3226 "keys and TCP sequence numbers may be predictable."
3227 msgstr ""
3228
3229 #. type: textblock
3230 #: ../clone/virt-sysprep.pod:453
3231 msgid ""
3232 "Therefore you should arrange to add more randomness I<after> cloning from a "
3233 "template too, which can be done by just enabling the C<random-seed> "
3234 "operation:"
3235 msgstr ""
3236
3237 #. type: verbatim
3238 #: ../clone/virt-sysprep.pod:457
3239 #, no-wrap
3240 msgid ""
3241 " cp template.img newguest.img\n"
3242 " virt-sysprep --enable=random-seed -a newguest.img\n"
3243 "\n"
3244 msgstr ""
3245
3246 #. type: =head2
3247 #: ../clone/virt-sysprep.pod:460
3248 msgid "SELINUX RELABELLING"
3249 msgstr ""
3250
3251 #. type: textblock
3252 #: ../clone/virt-sysprep.pod:462
3253 msgid "I<(This section applies to Linux guests using SELinux only)>"
3254 msgstr ""
3255
3256 #. type: textblock
3257 #: ../clone/virt-sysprep.pod:464
3258 msgid ""
3259 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3260 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3261 "next time the guest is booted.  This process interrupts boot and can take "
3262 "some time."
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../clone/virt-sysprep.pod:469
3267 msgid ""
3268 "You can force relabelling for all guests by supplying the "
3269 "I<--selinux-relabel> option."
3270 msgstr ""
3271
3272 #. type: textblock
3273 #: ../clone/virt-sysprep.pod:472
3274 msgid ""
3275 "You can disable relabelling entirely by supplying the "
3276 "I<--no-selinux-relabel> option."
3277 msgstr ""
3278
3279 #. type: textblock
3280 #: ../clone/virt-sysprep.pod:484
3281 msgid "This program returns 0 on success, or 1 if there was an error."
3282 msgstr ""
3283
3284 #. type: textblock
3285 #: ../clone/virt-sysprep.pod:488
3286 msgid ""
3287 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, "
3288 "L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, "
3289 "L<qemu-img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, "
3290 "L<http://libvirt.org/>."
3291 msgstr ""
3292
3293 #. type: textblock
3294 #: ../df/virt-df.pod:5
3295 msgid "virt-df - Display free space on virtual filesystems"
3296 msgstr ""
3297
3298 #. type: verbatim
3299 #: ../df/virt-df.pod:9
3300 #, no-wrap
3301 msgid ""
3302 " virt-df [--options]\n"
3303 "\n"
3304 msgstr ""
3305
3306 #. type: verbatim
3307 #: ../df/virt-df.pod:11
3308 #, no-wrap
3309 msgid ""
3310 " virt-df [--options] -d domname\n"
3311 "\n"
3312 msgstr ""
3313
3314 #. type: verbatim
3315 #: ../df/virt-df.pod:13
3316 #, no-wrap
3317 msgid ""
3318 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3319 "\n"
3320 msgstr ""
3321
3322 #. type: verbatim
3323 #: ../df/virt-df.pod:17
3324 #, no-wrap
3325 msgid ""
3326 " virt-df [--options] domname\n"
3327 "\n"
3328 msgstr ""
3329
3330 #. type: verbatim
3331 #: ../df/virt-df.pod:19
3332 #, no-wrap
3333 msgid ""
3334 " virt-df [--options] disk.img [disk.img ...]\n"
3335 "\n"
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../df/virt-df.pod:23
3340 msgid ""
3341 "C<virt-df> is a command line tool to display free space on virtual machine "
3342 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3343 "allocated to a virtual machine, but can look inside disk images to see how "
3344 "much space is really being used."
3345 msgstr ""
3346
3347 #. type: textblock
3348 #: ../df/virt-df.pod:28
3349 msgid ""
3350 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3351 "to get a list of all active and inactive guests, and performs a C<df>-type "
3352 "operation on each one in turn, printing out the results."
3353 msgstr ""
3354
3355 #. type: textblock
3356 #: ../df/virt-df.pod:32
3357 msgid ""
3358 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3359 "C<df>-type operation on either the single named libvirt domain, or on the "
3360 "disk image(s) listed on the command line (which must all belong to a single "
3361 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3362 "single guest>.  If you want to run on multiple guests, then you have to "
3363 "invoke C<virt-df> multiple times."
3364 msgstr ""
3365
3366 #. type: textblock
3367 #: ../df/virt-df.pod:39
3368 msgid ""
3369 "Use the I<--csv> option to get a format which can be easily parsed by other "
3370 "programs.  Other options are similar to the standard L<df(1)> command."
3371 msgstr ""
3372
3373 #. type: textblock
3374 #: ../df/virt-df.pod:45
3375 msgid ""
3376 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3377 "output human-readable:"
3378 msgstr ""
3379
3380 #. type: verbatim
3381 #: ../df/virt-df.pod:48
3382 #, no-wrap
3383 msgid ""
3384 " # virt-df -d F14x64 -h\n"
3385 " Filesystem                       Size     Used  Available  Use%\n"
3386 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3387 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3388 "\n"
3389 msgstr ""
3390
3391 #. type: textblock
3392 #: ../df/virt-df.pod:53
3393 msgid "Show disk usage for a disk image file called C<test.img>:"
3394 msgstr ""
3395
3396 #. type: verbatim
3397 #: ../df/virt-df.pod:55
3398 #, no-wrap
3399 msgid ""
3400 " $ virt-df -a test1.img\n"
3401 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3402 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3403 "\n"
3404 msgstr ""
3405
3406 #. type: verbatim
3407 #: ../df/virt-df.pod:112
3408 #, no-wrap
3409 msgid ""
3410 " virt-df --format=raw -a disk.img\n"
3411 "\n"
3412 msgstr ""
3413
3414 #. type: verbatim
3415 #: ../df/virt-df.pod:116
3416 #, no-wrap
3417 msgid ""
3418 " virt-df --format=raw -a disk.img --format -a another.img\n"
3419 "\n"
3420 msgstr ""
3421
3422 #. type: textblock
3423 #: ../df/virt-df.pod:129
3424 msgid "Print sizes in human-readable format."
3425 msgstr ""
3426
3427 #. type: textblock
3428 #: ../df/virt-df.pod:131
3429 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3430 msgstr ""
3431
3432 #. type: =item
3433 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3434 msgid "B<-i>"
3435 msgstr ""
3436
3437 #. type: =item
3438 #: ../df/virt-df.pod:135
3439 msgid "B<--inodes>"
3440 msgstr ""
3441
3442 #. type: textblock
3443 #: ../df/virt-df.pod:137
3444 msgid "Print inodes instead of blocks."
3445 msgstr ""
3446
3447 #. type: =item
3448 #: ../df/virt-df.pod:139
3449 msgid "B<--one-per-guest>"
3450 msgstr ""
3451
3452 #. type: textblock
3453 #: ../df/virt-df.pod:141
3454 msgid ""
3455 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3456 "disks from several guests to a single libguestfs appliance."
3457 msgstr ""
3458
3459 #. type: textblock
3460 #: ../df/virt-df.pod:144
3461 msgid "You might use this option in the following circumstances:"
3462 msgstr ""
3463
3464 #. type: textblock
3465 #: ../df/virt-df.pod:150
3466 msgid ""
3467 "If you think an untrusted guest might actively try to exploit the libguestfs "
3468 "appliance kernel, then this prevents one guest from interfering with the "
3469 "stats printed for another guest."
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../df/virt-df.pod:156
3474 msgid ""
3475 "If the kernel has a bug which stops it from accessing a filesystem in one "
3476 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3477 "and report stats for further guests."
3478 msgstr ""
3479
3480 #. type: textblock
3481 #: ../df/virt-df.pod:165
3482 msgid ""
3483 "Print UUIDs instead of names.  This is useful for following a guest even "
3484 "when the guest is migrated or renamed, or when two guests happen to have the "
3485 "same name."
3486 msgstr ""
3487
3488 #. type: textblock
3489 #: ../df/virt-df.pod:169
3490 msgid ""
3491 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3492 "images, we still print the disk image name even when this option is "
3493 "specified."
3494 msgstr ""
3495
3496 #. type: textblock
3497 #: ../df/virt-df.pod:229
3498 msgid ""
3499 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3500 "L<http://libguestfs.org/>."
3501 msgstr ""
3502
3503 #. type: textblock
3504 #: ../edit/virt-edit.pod:5
3505 msgid "virt-edit - Edit a file in a virtual machine"
3506 msgstr ""
3507
3508 #. type: verbatim
3509 #: ../edit/virt-edit.pod:9
3510 #, no-wrap
3511 msgid ""
3512 " virt-edit [--options] -d domname file [file ...]\n"
3513 "\n"
3514 msgstr ""
3515
3516 #. type: verbatim
3517 #: ../edit/virt-edit.pod:11
3518 #, no-wrap
3519 msgid ""
3520 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3521 "\n"
3522 msgstr ""
3523
3524 #. type: verbatim
3525 #: ../edit/virt-edit.pod:13
3526 #, no-wrap
3527 msgid ""
3528 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3529 "\n"
3530 msgstr ""
3531
3532 #. type: verbatim
3533 #: ../edit/virt-edit.pod:17
3534 #, no-wrap
3535 msgid ""
3536 " virt-edit domname file\n"
3537 "\n"
3538 msgstr ""
3539
3540 #. type: verbatim
3541 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3542 #, no-wrap
3543 msgid ""
3544 " virt-edit disk.img [disk.img ...] file\n"
3545 "\n"
3546 msgstr ""
3547
3548 #. type: =head1
3549 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3550 msgid "WARNING"
3551 msgstr ""
3552
3553 #. type: textblock
3554 #: ../edit/virt-edit.pod:23
3555 msgid ""
3556 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3557 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3558 "doing this, but doesn't catch all cases."
3559 msgstr ""
3560
3561 #. type: textblock
3562 #: ../edit/virt-edit.pod:29
3563 msgid ""
3564 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3565 "exists in the named virtual machine (or disk image)."
3566 msgstr ""
3567
3568 #. type: textblock
3569 #: ../edit/virt-edit.pod:32
3570 msgid ""
3571 "Multiple filenames can be given, in which case they are each edited in "
3572 "turn.  Each filename must be a full path, starting at the root directory "
3573 "(starting with '/')."
3574 msgstr ""
3575
3576 #. type: textblock
3577 #: ../edit/virt-edit.pod:36
3578 msgid "If you want to just view a file, use L<virt-cat(1)>."
3579 msgstr ""
3580
3581 #. type: textblock
3582 #: ../edit/virt-edit.pod:38
3583 msgid ""
3584 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3585 "L</USING GUESTFISH> below)."
3586 msgstr ""
3587
3588 #. type: textblock
3589 #: ../edit/virt-edit.pod:41
3590 msgid ""
3591 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3592 "that and much more."
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../edit/virt-edit.pod:46
3597 msgid "Edit the named files interactively:"
3598 msgstr ""
3599
3600 #. type: verbatim
3601 #: ../edit/virt-edit.pod:48
3602 #, no-wrap
3603 msgid ""
3604 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3605 "\n"
3606 msgstr ""
3607
3608 #. type: verbatim
3609 #: ../edit/virt-edit.pod:50
3610 #, no-wrap
3611 msgid ""
3612 " virt-edit -d mydomain /etc/passwd\n"
3613 "\n"
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../edit/virt-edit.pod:52
3618 msgid "For Windows guests, some Windows paths are understood:"
3619 msgstr ""
3620
3621 #. type: verbatim
3622 #: ../edit/virt-edit.pod:54
3623 #, no-wrap
3624 msgid ""
3625 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3626 "\n"
3627 msgstr ""
3628
3629 #. type: textblock
3630 #: ../edit/virt-edit.pod:56
3631 msgid ""
3632 "If Perl is installed, you can also edit files non-interactively (see "
3633 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3634 msgstr ""
3635
3636 #. type: verbatim
3637 #: ../edit/virt-edit.pod:60
3638 #, no-wrap
3639 msgid ""
3640 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3641 "\n"
3642 msgstr ""
3643
3644 #. type: =item
3645 #: ../edit/virt-edit.pod:81
3646 msgid "B<-b> extension"
3647 msgstr ""
3648
3649 #. type: =item
3650 #: ../edit/virt-edit.pod:83
3651 msgid "B<--backup> extension"
3652 msgstr ""
3653
3654 #. type: textblock
3655 #: ../edit/virt-edit.pod:85
3656 msgid ""
3657 "Create a backup of the original file I<in the guest disk image>.  The backup "
3658 "has the original filename with C<extension> added."
3659 msgstr ""
3660
3661 #. type: textblock
3662 #: ../edit/virt-edit.pod:88
3663 msgid ""
3664 "Usually the first character of C<extension> would be a dot C<.> so you would "
3665 "write:"
3666 msgstr ""
3667
3668 #. type: verbatim
3669 #: ../edit/virt-edit.pod:91
3670 #, no-wrap
3671 msgid ""
3672 " virt-edit -b .orig [etc]\n"
3673 "\n"
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../edit/virt-edit.pod:93
3678 msgid "By default, no backup file is made."
3679 msgstr ""
3680
3681 #. type: =item
3682 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74 ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
3683 msgid "B<-c URI>"
3684 msgstr ""
3685
3686 #. type: =item
3687 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
3688 msgid "B<--connect URI>"
3689 msgstr ""
3690
3691 #. type: textblock
3692 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84 ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134 ../tools/virt-win-reg.pl:135
3693 msgid ""
3694 "If you specify guest block devices directly, then libvirt is not used at "
3695 "all."
3696 msgstr ""
3697
3698 #. type: textblock
3699 #: ../edit/virt-edit.pod:114
3700 msgid ""
3701 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3702 "off so you cannot see what you are typing.  If you are not worried about "
3703 "Tempest attacks and there is no one else in the room you can specify this "
3704 "flag to see what you are typing."
3705 msgstr ""
3706
3707 #. type: =item
3708 #: ../edit/virt-edit.pod:119
3709 msgid "B<-e> EXPR"
3710 msgstr ""
3711
3712 #. type: =item
3713 #: ../edit/virt-edit.pod:121
3714 msgid "B<--expr> EXPR"
3715 msgstr ""
3716
3717 #. type: textblock
3718 #: ../edit/virt-edit.pod:123
3719 msgid ""
3720 "Instead of launching the external editor, non-interactively apply the Perl "
3721 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3722 "EDITING> below."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../edit/virt-edit.pod:127
3727 msgid ""
3728 "Be careful to properly quote the expression to prevent it from being altered "
3729 "by the shell."
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../edit/virt-edit.pod:130
3734 msgid "Note that this option is only available when Perl 5 is installed."
3735 msgstr ""
3736
3737 #. type: =item
3738 #: ../edit/virt-edit.pod:132
3739 msgid "B<--format> raw|qcow2|..."
3740 msgstr ""
3741
3742 #. type: verbatim
3743 #: ../edit/virt-edit.pod:143
3744 #, no-wrap
3745 msgid ""
3746 " virt-edit --format=raw -a disk.img file\n"
3747 "\n"
3748 msgstr ""
3749
3750 #. type: verbatim
3751 #: ../edit/virt-edit.pod:147
3752 #, no-wrap
3753 msgid ""
3754 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3755 "\n"
3756 msgstr ""
3757
3758 #. type: textblock
3759 #: ../edit/virt-edit.pod:181
3760 msgid "Previous versions of virt-edit allowed you to write either:"
3761 msgstr ""
3762
3763 #. type: verbatim
3764 #: ../edit/virt-edit.pod:187
3765 #, no-wrap
3766 msgid ""
3767 " virt-edit guestname file\n"
3768 "\n"
3769 msgstr ""
3770
3771 #. type: =head1
3772 #: ../edit/virt-edit.pod:195
3773 msgid "NON-INTERACTIVE EDITING"
3774 msgstr ""
3775
3776 #. type: textblock
3777 #: ../edit/virt-edit.pod:197
3778 msgid ""
3779 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3780 "administrator can interactively edit the file."
3781 msgstr ""
3782
3783 #. type: textblock
3784 #: ../edit/virt-edit.pod:200
3785 msgid ""
3786 "There are two ways also to use C<virt-edit> from scripts in order to make "
3787 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3788 "like this, it's less error-prone to write scripts directly using the "
3789 "libguestfs API and Augeas for configuration file editing.)"
3790 msgstr ""
3791
3792 #. type: textblock
3793 #: ../edit/virt-edit.pod:206
3794 msgid ""
3795 "The first method is to temporarily set C<$EDITOR> to any script or program "
3796 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3797 "update C<tmpfile> in place however it likes."
3798 msgstr ""
3799
3800 #. type: textblock
3801 #: ../edit/virt-edit.pod:210
3802 msgid ""
3803 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3804 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3805 "instances of C<foo> with C<bar> in a file:"
3806 msgstr ""
3807
3808 #. type: verbatim
3809 #: ../edit/virt-edit.pod:214
3810 #, no-wrap
3811 msgid ""
3812 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3813 "\n"
3814 msgstr ""
3815
3816 #. type: textblock
3817 #: ../edit/virt-edit.pod:216
3818 msgid ""
3819 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3820 "For example to delete root's password you could do:"
3821 msgstr ""
3822
3823 #. type: verbatim
3824 #: ../edit/virt-edit.pod:219
3825 #, no-wrap
3826 msgid ""
3827 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3828 "\n"
3829 msgstr ""
3830
3831 #. type: textblock
3832 #: ../edit/virt-edit.pod:221
3833 msgid ""
3834 "What really happens is that the snippet is evaluated as a Perl expression "
3835 "for each line of the file.  The line, including the final C<\\n>, is passed "
3836 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3837 msgstr ""
3838
3839 #. type: textblock
3840 #: ../edit/virt-edit.pod:226
3841 msgid ""
3842 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3843 "C<apache> user account from the password file you can do:"
3844 msgstr ""
3845
3846 #. type: verbatim
3847 #: ../edit/virt-edit.pod:229
3848 #, no-wrap
3849 msgid ""
3850 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3851 "\n"
3852 msgstr ""
3853
3854 #. type: textblock
3855 #: ../edit/virt-edit.pod:231
3856 msgid ""
3857 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3858 "the end of the file is rather difficult this way since there is no concept "
3859 "of \"last line of the file\" - your expression just doesn't get called "
3860 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3861 "want to do this."
3862 msgstr ""
3863
3864 #. type: textblock
3865 #: ../edit/virt-edit.pod:237
3866 msgid ""
3867 "The variable C<$lineno> contains the current line number.  As is "
3868 "traditional, the first line in the file is number C<1>."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../edit/virt-edit.pod:240
3873 msgid ""
3874 "The return value from the expression is ignored, but the expression may call "
3875 "C<die> in order to abort the whole program, leaving the original file "
3876 "untouched."
3877 msgstr ""
3878
3879 #. type: textblock
3880 #: ../edit/virt-edit.pod:244
3881 msgid ""
3882 "Remember when matching the end of a line that C<$_> may contain the final "
3883 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3884 "newline then neither of these.  Thus to match or substitute some text at the "
3885 "end of a line, use this regular expression:"
3886 msgstr ""
3887
3888 #. type: verbatim
3889 #: ../edit/virt-edit.pod:249
3890 #, no-wrap
3891 msgid ""
3892 " /some text(\\r?\\n)?$/\n"
3893 "\n"
3894 msgstr ""
3895
3896 #. type: textblock
3897 #: ../edit/virt-edit.pod:251
3898 msgid ""
3899 "Alternately, use the perl C<chomp> function, being careful not to chomp "
3900 "C<$_> itself (since that would remove all newlines from the file):"
3901 msgstr ""
3902
3903 #. type: verbatim
3904 #: ../edit/virt-edit.pod:255
3905 #, no-wrap
3906 msgid ""
3907 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3908 "\n"
3909 msgstr ""
3910
3911 #. type: =head1
3912 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3913 msgid "WINDOWS PATHS"
3914 msgstr ""
3915
3916 #. type: textblock
3917 #: ../edit/virt-edit.pod:259
3918 msgid ""
3919 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3920 "paths (eg. C<E:\\foo\\bar.txt>)."
3921 msgstr ""
3922
3923 #. type: textblock
3924 #: ../edit/virt-edit.pod:262
3925 msgid "If and only if the guest is running Windows then:"
3926 msgstr ""
3927
3928 #. type: textblock
3929 #: ../edit/virt-edit.pod:268
3930 msgid ""
3931 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3932 "to the correct filesystem."
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../edit/virt-edit.pod:273
3937 msgid ""
3938 "Any backslash (C<\\>) characters in the path are replaced with forward "
3939 "slashes so that libguestfs can process it."
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../edit/virt-edit.pod:278
3944 msgid ""
3945 "The path is resolved case insensitively to locate the file that should be "
3946 "edited."
3947 msgstr ""
3948
3949 #. type: textblock
3950 #: ../edit/virt-edit.pod:283
3951 msgid "There are some known shortcomings:"
3952 msgstr ""
3953
3954 #. type: textblock
3955 #: ../edit/virt-edit.pod:289
3956 msgid "Some NTFS symbolic links may not be followed correctly."
3957 msgstr ""
3958
3959 #. type: textblock
3960 #: ../edit/virt-edit.pod:293
3961 msgid "NTFS junction points that cross filesystems are not followed."
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../edit/virt-edit.pod:299
3966 msgid ""
3967 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3968 "C<virt-edit> doesn't work."
3969 msgstr ""
3970
3971 #. type: textblock
3972 #: ../edit/virt-edit.pod:302
3973 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3974 msgstr ""
3975
3976 #. type: verbatim
3977 #: ../edit/virt-edit.pod:304
3978 #, no-wrap
3979 msgid ""
3980 " guestfish --rw -i -d domname edit /file\n"
3981 "\n"
3982 msgstr ""
3983
3984 #. type: textblock
3985 #: ../edit/virt-edit.pod:306
3986 msgid ""
3987 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3988 "path to the file."
3989 msgstr ""
3990
3991 #. type: textblock
3992 #: ../edit/virt-edit.pod:309
3993 msgid ""
3994 "The command above uses libguestfs's guest inspection feature and so does not "
3995 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3996 "disk images that don't contain guests.  To edit a file on a disk image "
3997 "directly, use:"
3998 msgstr ""
3999
4000 #. type: verbatim
4001 #: ../edit/virt-edit.pod:314
4002 #, no-wrap
4003 msgid ""
4004 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4005 "\n"
4006 msgstr ""
4007
4008 #. type: textblock
4009 #: ../edit/virt-edit.pod:316
4010 msgid ""
4011 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4012 "the disk image to edit, and C</file> is the full path to the file."
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../edit/virt-edit.pod:320
4017 msgid ""
4018 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4019 "C<write> or C<upload> instead:"
4020 msgstr ""
4021
4022 #. type: verbatim
4023 #: ../edit/virt-edit.pod:323
4024 #, no-wrap
4025 msgid ""
4026 " guestfish --rw -i -d domname touch /newfile\n"
4027 "\n"
4028 msgstr ""
4029
4030 #. type: verbatim
4031 #: ../edit/virt-edit.pod:325
4032 #, no-wrap
4033 msgid ""
4034 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4035 "\n"
4036 msgstr ""
4037
4038 #. type: verbatim
4039 #: ../edit/virt-edit.pod:327
4040 #, no-wrap
4041 msgid ""
4042 " guestfish --rw -i -d domname upload localfile /newfile\n"
4043 "\n"
4044 msgstr ""
4045
4046 #. type: =head1
4047 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232 ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4048 msgid "ENVIRONMENT VARIABLES"
4049 msgstr ""
4050
4051 #. type: =item
4052 #: ../edit/virt-edit.pod:333
4053 msgid "C<EDITOR>"
4054 msgstr ""
4055
4056 #. type: textblock
4057 #: ../edit/virt-edit.pod:335
4058 msgid ""
4059 "If set, this string is used as the editor.  It may contain arguments, "
4060 "eg. C<\"emacs -nw\">"
4061 msgstr ""
4062
4063 #. type: textblock
4064 #: ../edit/virt-edit.pod:338
4065 msgid "If not set, C<vi> is used."
4066 msgstr ""
4067
4068 #. type: textblock
4069 #: ../edit/virt-edit.pod:356
4070 msgid ""
4071 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
4072 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
4073 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../erlang/examples/guestfs-erlang.pod:5
4078 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4079 msgstr ""
4080
4081 #. type: verbatim
4082 #: ../erlang/examples/guestfs-erlang.pod:9
4083 #, no-wrap
4084 msgid ""
4085 " {ok, G} = guestfs:create(),\n"
4086 " ok = guestfs:add_drive_opts(G, Disk,\n"
4087 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4088 " ok = guestfs:launch(G),\n"
4089 " [Device] = guestfs:list_devices(G),\n"
4090 " ok = guestfs:close(G).\n"
4091 "\n"
4092 msgstr ""
4093
4094 #. type: textblock
4095 #: ../erlang/examples/guestfs-erlang.pod:18
4096 msgid ""
4097 "This manual page documents how to call libguestfs from the Erlang "
4098 "programming language.  This page just documents the differences from the C "
4099 "API and gives some examples.  If you are not familiar with using libguestfs, "
4100 "you also need to read L<guestfs(3)>."
4101 msgstr ""
4102
4103 #. type: =head2
4104 #: ../erlang/examples/guestfs-erlang.pod:23
4105 msgid "OPENING AND CLOSING THE HANDLE"
4106 msgstr ""
4107
4108 #. type: textblock
4109 #: ../erlang/examples/guestfs-erlang.pod:25
4110 msgid ""
4111 "The Erlang bindings are implemented using an external program called "
4112 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
4113 "should specify the full path to the program:"
4114 msgstr ""
4115
4116 #. type: verbatim
4117 #: ../erlang/examples/guestfs-erlang.pod:29
4118 #, no-wrap
4119 msgid ""
4120 " {ok, G} = guestfs:create().\n"
4121 "\n"
4122 msgstr ""
4123
4124 #. type: verbatim
4125 #: ../erlang/examples/guestfs-erlang.pod:31
4126 #, no-wrap
4127 msgid ""
4128 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4129 "\n"
4130 msgstr ""
4131
4132 #. type: textblock
4133 #: ../erlang/examples/guestfs-erlang.pod:33
4134 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4135 msgstr ""
4136
4137 #. type: textblock
4138 #: ../erlang/examples/guestfs-erlang.pod:36
4139 msgid "To close the handle:"
4140 msgstr ""
4141
4142 #. type: verbatim
4143 #: ../erlang/examples/guestfs-erlang.pod:38
4144 #, no-wrap
4145 msgid ""
4146 " ok = guestfs:close(G).\n"
4147 "\n"
4148 msgstr ""
4149
4150 #. type: =head2
4151 #: ../erlang/examples/guestfs-erlang.pod:40
4152 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4153 msgstr ""
4154
4155 #. type: textblock
4156 #: ../erlang/examples/guestfs-erlang.pod:42
4157 msgid ""
4158 "For functions that take optional arguments, the first arguments are the "
4159 "non-optional ones.  The last argument is a list of tuples supplying the "
4160 "remaining optional arguments."
4161 msgstr ""
4162
4163 #. type: verbatim
4164 #: ../erlang/examples/guestfs-erlang.pod:46
4165 #, no-wrap
4166 msgid ""
4167 " ok = guestfs:add_drive_opts(G, Disk,\n"
4168 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4169 "\n"
4170 msgstr ""
4171
4172 #. type: textblock
4173 #: ../erlang/examples/guestfs-erlang.pod:49
4174 msgid "If the last argument would be an empty list, you can also omit it:"
4175 msgstr ""
4176
4177 #. type: verbatim
4178 #: ../erlang/examples/guestfs-erlang.pod:51
4179 #, no-wrap
4180 msgid ""
4181 " ok = guestfs:add_drive_opts(G, Disk).\n"
4182 "\n"
4183 msgstr ""
4184
4185 #. type: =head2
4186 #: ../erlang/examples/guestfs-erlang.pod:53
4187 msgid "RETURN VALUES AND ERRORS"
4188 msgstr ""
4189
4190 #. type: textblock
4191 #: ../erlang/examples/guestfs-erlang.pod:55
4192 msgid ""
4193 "On success, most functions return a C<Result> term (which could be a list, "
4194 "string, tuple etc.).  If there is nothing for the function to return, then "
4195 "the atom C<ok> is returned."
4196 msgstr ""
4197
4198 #. type: textblock
4199 #: ../erlang/examples/guestfs-erlang.pod:59
4200 msgid "On error, you would see one of the following tuples:"
4201 msgstr ""
4202
4203 #. type: =item
4204 #: ../erlang/examples/guestfs-erlang.pod:63
4205 msgid "C<{error, Msg, Errno}>"
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../erlang/examples/guestfs-erlang.pod:65
4210 msgid "This indicates an ordinary error from the function."
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../erlang/examples/guestfs-erlang.pod:67
4215 msgid ""
4216 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4217 "(integer)."
4218 msgstr ""
4219
4220 #. type: textblock
4221 #: ../erlang/examples/guestfs-erlang.pod:70
4222 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4223 msgstr ""
4224
4225 #. type: =item
4226 #: ../erlang/examples/guestfs-erlang.pod:72
4227 msgid "C<{unknown, Function}>"
4228 msgstr ""
4229
4230 #. type: textblock
4231 #: ../erlang/examples/guestfs-erlang.pod:74
4232 msgid ""
4233 "This indicates that the function you called is not known.  Generally this "
4234 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4235 "which you should not do."
4236 msgstr ""
4237
4238 #. type: textblock
4239 #: ../erlang/examples/guestfs-erlang.pod:78
4240 msgid "C<Function> is the name of the unknown function."
4241 msgstr ""
4242
4243 #. type: =item
4244 #: ../erlang/examples/guestfs-erlang.pod:80
4245 msgid "C<{unknownarg, Arg}>"
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../erlang/examples/guestfs-erlang.pod:82
4250 msgid ""
4251 "This indicates that you called a function with optional arguments, with an "
4252 "unknown argument name."
4253 msgstr ""
4254
4255 #. type: textblock
4256 #: ../erlang/examples/guestfs-erlang.pod:85
4257 msgid "C<Arg> is the name of the unknown argument."
4258 msgstr ""
4259
4260 #. type: =head1
4261 #: ../erlang/examples/guestfs-erlang.pod:89 ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37 ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31 ../python/examples/guestfs-python.pod:34 ../ruby/examples/guestfs-ruby.pod:28
4262 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4263 msgstr ""
4264
4265 #. type: textblock
4266 #: ../erlang/examples/guestfs-erlang.pod:91 ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39 ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33 ../python/examples/guestfs-python.pod:36 ../ruby/examples/guestfs-ruby.pod:30
4267 msgid "@EXAMPLE1@"
4268 msgstr ""
4269
4270 #. type: =head1
4271 #: ../erlang/examples/guestfs-erlang.pod:93 ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41 ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35 ../python/examples/guestfs-python.pod:38 ../ruby/examples/guestfs-ruby.pod:32
4272 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4273 msgstr ""
4274
4275 #. type: textblock
4276 #: ../erlang/examples/guestfs-erlang.pod:95 ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43 ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37 ../python/examples/guestfs-python.pod:40 ../ruby/examples/guestfs-ruby.pod:34
4277 msgid "@EXAMPLE2@"
4278 msgstr ""
4279
4280 #. type: textblock
4281 #: ../erlang/examples/guestfs-erlang.pod:99
4282 msgid ""
4283 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4284 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4285 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
4286 "L<http://libguestfs.org/>."
4287 msgstr ""
4288
4289 #. type: =head1
4290 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52 ../python/examples/guestfs-python.pod:54 ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333 ../test-tool/libguestfs-test-tool.pod:106
4291 msgid "AUTHORS"
4292 msgstr ""
4293
4294 #. type: textblock
4295 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54 ../python/examples/guestfs-python.pod:56 ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335 ../test-tool/libguestfs-test-tool.pod:108
4296 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4297 msgstr ""
4298
4299 #. type: textblock
4300 #: ../erlang/examples/guestfs-erlang.pod:116 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4301 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4302 msgstr ""
4303
4304 #. type: textblock
4305 #: ../erlang/examples/guestfs-erlang.pod:118 ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405 ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99 ../perl/examples/guestfs-perl.pod:60 ../python/examples/guestfs-python.pod:62 ../ruby/examples/guestfs-ruby.pod:56
4306 msgid ""
4307 "The examples in this manual page may be freely copied, modified and "
4308 "distributed without any restrictions."
4309 msgstr ""
4310
4311 #. type: textblock
4312 #: ../erlang/examples/guestfs-erlang.pod:121 ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 ../java/examples/guestfs-java.pod:69 ../ocaml/examples/guestfs-ocaml.pod:102 ../perl/examples/guestfs-perl.pod:63 ../python/examples/guestfs-python.pod:65 ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4313 msgid ""
4314 "This library is free software; you can redistribute it and/or modify it "
4315 "under the terms of the GNU Lesser General Public License as published by the "
4316 "Free Software Foundation; either version 2 of the License, or (at your "
4317 "option) any later version."
4318 msgstr ""
4319
4320 #. type: textblock
4321 #: ../erlang/examples/guestfs-erlang.pod:126 ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 ../java/examples/guestfs-java.pod:74 ../ocaml/examples/guestfs-ocaml.pod:107 ../perl/examples/guestfs-perl.pod:68 ../python/examples/guestfs-python.pod:70 ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4322 msgid ""
4323 "This library is distributed in the hope that it will be useful, but WITHOUT "
4324 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4325 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4326 "for more details."
4327 msgstr ""
4328
4329 #. type: textblock
4330 #: ../erlang/examples/guestfs-erlang.pod:131 ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 ../java/examples/guestfs-java.pod:79 ../ocaml/examples/guestfs-ocaml.pod:112 ../perl/examples/guestfs-perl.pod:73 ../python/examples/guestfs-python.pod:75 ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4331 msgid ""
4332 "You should have received a copy of the GNU Lesser General Public License "
4333 "along with this library; if not, write to the Free Software Foundation, "
4334 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4335 msgstr ""
4336
4337 #. type: textblock
4338 #: ../examples/guestfs-examples.pod:5
4339 msgid "guestfs-examples - Examples of using libguestfs from C"
4340 msgstr ""
4341
4342 #. type: verbatim
4343 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4344 #, no-wrap
4345 msgid ""
4346 " #include <guestfs.h>\n"
4347 " \n"
4348 msgstr ""
4349
4350 #. type: verbatim
4351 #: ../examples/guestfs-examples.pod:11
4352 #, no-wrap
4353 msgid ""
4354 " guestfs_h *g = guestfs_create ();\n"
4355 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4356 " guestfs_launch (g);\n"
4357 "\n"
4358 msgstr ""
4359
4360 #. type: verbatim
4361 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4362 #, no-wrap
4363 msgid ""
4364 " cc prog.c -o prog -lguestfs\n"
4365 "or:\n"
4366 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4367 "\n"
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../examples/guestfs-examples.pod:21
4372 msgid ""
4373 "This manual page contains examples of calling libguestfs from the C "
4374 "programming language.  If you are not familiar with using libguestfs, you "
4375 "also need to read L<guestfs(3)>."
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../examples/guestfs-examples.pod:35
4380 msgid ""
4381 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
4382 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4383 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4384 msgstr ""
4385
4386 #. type: textblock
4387 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
4388 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4389 msgstr ""
4390
4391 #. type: =end
4392 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4393 msgid "comment"
4394 msgstr ""
4395
4396 #. type: textblock
4397 #: ../examples/guestfs-recipes.pod:5
4398 msgid ""
4399 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4400 "here.  The only way which works for both sorts of output is to just write "
4401 "the URL directly.  Do NOT use L<...> for URLs."
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../examples/guestfs-recipes.pod:9
4406 msgid ""
4407 "We break with tradition here and don't use ALL CAPS for the section "
4408 "headings, as this makes them much easier to read."
4409 msgstr ""
4410
4411 #. type: textblock
4412 #: ../examples/guestfs-recipes.pod:16
4413 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../examples/guestfs-recipes.pod:20
4418 msgid ""
4419 "This page contains recipes for and links to things you can do using "
4420 "libguestfs, L<guestfish(1)> and the virt tools."
4421 msgstr ""
4422
4423 #. type: =head1
4424 #: ../examples/guestfs-recipes.pod:23
4425 msgid "Audit a virtual machine for setuid files"
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../examples/guestfs-recipes.pod:25
4430 msgid ""
4431 "The link below contains a small program which can be used to audit a Linux "
4432 "virtual machine to see what setuid and setgid files it contains."
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../examples/guestfs-recipes.pod:28
4437 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
4438 msgstr ""
4439
4440 #. type: =head1
4441 #: ../examples/guestfs-recipes.pod:30
4442 msgid "Change the background image in a Windows XP VM"
4443 msgstr ""
4444
4445 #. type: textblock
4446 #: ../examples/guestfs-recipes.pod:32
4447 msgid ""
4448 "The links below explain how to use L<guestfish(1)> to change the background "
4449 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4450 "be substantially different for each version of Windows."
4451 msgstr ""
4452
4453 #. type: textblock
4454 #: ../examples/guestfs-recipes.pod:37
4455 msgid ""
4456 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4457 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4458 msgstr ""
4459
4460 #. type: =head1
4461 #: ../examples/guestfs-recipes.pod:40
4462 msgid "Cloning a virtual machine (Linux)"
4463 msgstr ""
4464
4465 #. type: textblock
4466 #: ../examples/guestfs-recipes.pod:42
4467 msgid ""
4468 "The guestfish technique described in the link below works well for most "
4469 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4470 "slightly."
4471 msgstr ""
4472
4473 #. type: textblock
4474 #: ../examples/guestfs-recipes.pod:46
4475 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
4476 msgstr ""
4477
4478 #. type: textblock
4479 #: ../examples/guestfs-recipes.pod:48
4480 msgid ""
4481 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4482 "discussion."
4483 msgstr ""
4484
4485 #. type: textblock
4486 #: ../examples/guestfs-recipes.pod:51
4487 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4488 msgstr ""
4489
4490 #. type: =head1
4491 #: ../examples/guestfs-recipes.pod:53
4492 msgid "Cloning a virtual machine (Windows)"
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../examples/guestfs-recipes.pod:55
4497 msgid ""
4498 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4499 "straightforward.  Currently there is code in the Aeolus Oz project which "
4500 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4501 "we may add sysprepping ability."
4502 msgstr ""
4503
4504 #. type: textblock
4505 #: ../examples/guestfs-recipes.pod:60
4506 msgid ""
4507 "https://github.com/clalancette/oz "
4508 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4509 msgstr ""
4510
4511 #. type: =head1
4512 #: ../examples/guestfs-recipes.pod:63
4513 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4514 msgstr ""
4515
4516 #. type: textblock
4517 #: ../examples/guestfs-recipes.pod:65
4518 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4519 msgstr ""
4520
4521 #. type: verbatim
4522 #: ../examples/guestfs-recipes.pod:67
4523 #, no-wrap
4524 msgid ""
4525 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4526 "\n"
4527 msgstr ""
4528
4529 #. type: textblock
4530 #: ../examples/guestfs-recipes.pod:69
4531 msgid "To export just a subdirectory, eg. C</files>, do:"
4532 msgstr ""
4533
4534 #. type: verbatim
4535 #: ../examples/guestfs-recipes.pod:71
4536 #, no-wrap
4537 msgid ""
4538 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4539 "\n"
4540 msgstr ""
4541
4542 #. type: =head1
4543 #: ../examples/guestfs-recipes.pod:73
4544 msgid "Create empty disk images"
4545 msgstr ""
4546
4547 #. type: textblock
4548 #: ../examples/guestfs-recipes.pod:75
4549 msgid ""
4550 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4551 "The useful guide below explains the options available."
4552 msgstr ""
4553
4554 #. type: textblock
4555 #: ../examples/guestfs-recipes.pod:78
4556 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
4557 msgstr ""
4558
4559 #. type: =head1
4560 #: ../examples/guestfs-recipes.pod:80
4561 msgid "Dump raw filesystem content from inside a disk image or VM"
4562 msgstr ""
4563
4564 #. type: textblock
4565 #: ../examples/guestfs-recipes.pod:82
4566 msgid ""
4567 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4568 "filesystem content from any filesystem in a disk image or a VM (even one "
4569 "which is encrypted or buried inside an LV):"
4570 msgstr ""
4571
4572 #. type: verbatim
4573 #: ../examples/guestfs-recipes.pod:86
4574 #, no-wrap
4575 msgid ""
4576 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4577 "\n"
4578 msgstr ""
4579
4580 #. type: verbatim
4581 #: ../examples/guestfs-recipes.pod:88
4582 #, no-wrap
4583 msgid ""
4584 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4585 "\n"
4586 msgstr ""
4587
4588 #. type: textblock
4589 #: ../examples/guestfs-recipes.pod:90
4590 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4591 msgstr ""
4592
4593 #. type: =head1
4594 #: ../examples/guestfs-recipes.pod:92
4595 msgid "Edit grub configuration in a VM"
4596 msgstr ""
4597
4598 #. type: textblock
4599 #: ../examples/guestfs-recipes.pod:94
4600 msgid "You can use this to:"
4601 msgstr ""
4602
4603 #. type: textblock
4604 #: ../examples/guestfs-recipes.pod:100
4605 msgid "Fix a virtual machine that does not boot."
4606 msgstr ""
4607
4608 #. type: textblock
4609 #: ../examples/guestfs-recipes.pod:104
4610 msgid "Change which kernel is used to boot the VM."
4611 msgstr ""
4612
4613 #. type: textblock
4614 #: ../examples/guestfs-recipes.pod:108
4615 msgid "Change kernel command line options."
4616 msgstr ""
4617
4618 #. type: textblock
4619 #: ../examples/guestfs-recipes.pod:112
4620 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4621 msgstr ""
4622
4623 #. type: verbatim
4624 #: ../examples/guestfs-recipes.pod:114
4625 #, no-wrap
4626 msgid ""
4627 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4628 "\n"
4629 msgstr ""
4630
4631 #. type: textblock
4632 #: ../examples/guestfs-recipes.pod:116
4633 msgid ""
4634 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4635 "this:"
4636 msgstr ""
4637
4638 #. type: verbatim
4639 #: ../examples/guestfs-recipes.pod:119
4640 #, no-wrap
4641 msgid ""
4642 " virt-rescue -d BrokenGuest\n"
4643 "\n"
4644 msgstr ""
4645
4646 #. type: =head1
4647 #: ../examples/guestfs-recipes.pod:121
4648 msgid "Export any directory from a VM"
4649 msgstr ""
4650
4651 #. type: textblock
4652 #: ../examples/guestfs-recipes.pod:123
4653 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4654 msgstr ""
4655
4656 #. type: verbatim
4657 #: ../examples/guestfs-recipes.pod:126
4658 #, no-wrap
4659 msgid ""
4660 " virt-copy-out -d Guest /home .\n"
4661 "\n"
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597 ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670 ../tools/virt-win-reg.pl:717
4666 msgid "Notes:"
4667 msgstr ""
4668
4669 #. type: textblock
4670 #: ../examples/guestfs-recipes.pod:134
4671 msgid ""
4672 "The final dot of the command is not a printing error.  It means we want to "
4673 "copy out to the current directory."
4674 msgstr ""
4675
4676 #. type: textblock
4677 #: ../examples/guestfs-recipes.pod:139
4678 msgid "This creates a directory called C<home> under the current directory."
4679 msgstr ""
4680
4681 #. type: textblock
4682 #: ../examples/guestfs-recipes.pod:143
4683 msgid ""
4684 "If the guest is a Windows guest then you can use drive letters and "
4685 "backslashes, but you must prefix the path with C<win:> and quote it to "
4686 "protect it from the shell, like this:"
4687 msgstr ""
4688
4689 #. type: verbatim
4690 #: ../examples/guestfs-recipes.pod:147
4691 #, no-wrap
4692 msgid ""
4693 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4694 "\n"
4695 msgstr ""
4696
4697 #. type: textblock
4698 #: ../examples/guestfs-recipes.pod:149
4699 msgid "To get the output as a compressed tarball, do:"
4700 msgstr ""
4701
4702 #. type: verbatim
4703 #: ../examples/guestfs-recipes.pod:151
4704 #, no-wrap
4705 msgid ""
4706 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4707 "\n"
4708 msgstr ""
4709
4710 #. type: textblock
4711 #: ../examples/guestfs-recipes.pod:153
4712 msgid ""
4713 "Although it sounds tempting, this is usually not a reliable way to get a "
4714 "backup from a running guest.  See the entry in the FAQ: "
4715 "http://libguestfs.org/FAQ.html#backup"
4716 msgstr ""
4717
4718 #. type: =head1
4719 #: ../examples/guestfs-recipes.pod:157
4720 msgid "Find out which user is using the most space"
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../examples/guestfs-recipes.pod:159
4725 msgid ""
4726 "This simple script examines a Linux guest to find out which user is using "
4727 "the most space in their home directory:"
4728 msgstr ""
4729
4730 #. type: verbatim
4731 #: ../examples/guestfs-recipes.pod:162
4732 #, no-wrap
4733 msgid ""
4734 " #!/bin/sh -\n"
4735 " \n"
4736 msgstr ""
4737
4738 #. type: verbatim
4739 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4740 #, no-wrap
4741 msgid ""
4742 " set -e\n"
4743 " \n"
4744 msgstr ""
4745
4746 #. type: verbatim
4747 #: ../examples/guestfs-recipes.pod:166
4748 #, no-wrap
4749 msgid ""
4750 " vm=\"$1\"\n"
4751 " dir=/home\n"
4752 " \n"
4753 msgstr ""
4754
4755 #. type: verbatim
4756 #: ../examples/guestfs-recipes.pod:169
4757 #, no-wrap
4758 msgid ""
4759 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4760 " \n"
4761 msgstr ""
4762
4763 #. type: verbatim
4764 #: ../examples/guestfs-recipes.pod:171
4765 #, no-wrap
4766 msgid ""
4767 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4768 "     echo -n \"$dir/$d\"\n"
4769 "     echo -ne '\\t'\n"
4770 "     guestfish --remote du \"$dir/$d\";\n"
4771 " done | sort -nr -k 2\n"
4772 " \n"
4773 msgstr ""
4774
4775 #. type: verbatim
4776 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4777 #, no-wrap
4778 msgid ""
4779 " guestfish --remote exit\n"
4780 "\n"
4781 msgstr ""
4782
4783 #. type: =head1
4784 #: ../examples/guestfs-recipes.pod:179
4785 msgid "Get DHCP address from a VM"
4786 msgstr ""
4787
4788 #. type: textblock
4789 #: ../examples/guestfs-recipes.pod:181
4790 msgid ""
4791 "The link below explains the many different possible techniques for getting "
4792 "the last assigned DHCP address of a virtual machine."
4793 msgstr ""
4794
4795 #. type: textblock
4796 #: ../examples/guestfs-recipes.pod:184
4797 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
4798 msgstr ""
4799
4800 #. type: textblock
4801 #: ../examples/guestfs-recipes.pod:186
4802 msgid ""
4803 "In the libguestfs source examples directory you will find the latest version "
4804 "of the C<virt-dhcp-address.c> program."
4805 msgstr ""
4806
4807 #. type: =head1
4808 #: ../examples/guestfs-recipes.pod:189
4809 msgid "Get the operating system product name string"
4810 msgstr ""
4811
4812 #. type: textblock
4813 #: ../examples/guestfs-recipes.pod:191
4814 msgid "Save the following script into a file called C<product-name.sh>:"
4815 msgstr ""
4816
4817 #. type: verbatim
4818 #: ../examples/guestfs-recipes.pod:193
4819 #, no-wrap
4820 msgid ""
4821 " #!/bin/sh -\n"
4822 " set -e\n"
4823 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4824 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4825 " guestfish --remote inspect-get-product-name \"$root\"\n"
4826 " guestfish --remote exit\n"
4827 "\n"
4828 msgstr ""
4829
4830 #. type: textblock
4831 #: ../examples/guestfs-recipes.pod:200
4832 msgid "Make the script executable and run it on a named guest:"
4833 msgstr ""
4834
4835 #. type: verbatim
4836 #: ../examples/guestfs-recipes.pod:202
4837 #, no-wrap
4838 msgid ""
4839 " # product-name.sh RHEL60x64\n"
4840 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4841 "\n"
4842 msgstr ""
4843
4844 #. type: textblock
4845 #: ../examples/guestfs-recipes.pod:205
4846 msgid ""
4847 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4848 "C<xpath> command line tool or from your favourite programming language:"
4849 msgstr ""
4850
4851 #. type: verbatim
4852 #: ../examples/guestfs-recipes.pod:209
4853 #, no-wrap
4854 msgid ""
4855 " # virt-inspector RHEL60x64 > xml\n"
4856 " # xpath '//product_name' < xml\n"
4857 " Found 1 nodes:\n"
4858 " -- NODE --\n"
4859 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
4860 "(Santiago)</product_name>\n"
4861 "\n"
4862 msgstr ""
4863
4864 #. type: =head1
4865 #: ../examples/guestfs-recipes.pod:215
4866 msgid "Get the default boot kernel for a Linux VM"
4867 msgstr ""
4868
4869 #. type: textblock
4870 #: ../examples/guestfs-recipes.pod:217
4871 msgid ""
4872 "The link below contains a program to print the default boot kernel for a "
4873 "Linux VM."
4874 msgstr ""
4875
4876 #. type: textblock
4877 #: ../examples/guestfs-recipes.pod:220
4878 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
4879 msgstr ""
4880
4881 #. type: textblock
4882 #: ../examples/guestfs-recipes.pod:222
4883 msgid ""
4884 "It uses Augeas, and the technique is generally applicable for many different "
4885 "tasks, such as:"
4886 msgstr ""
4887
4888 #. type: textblock
4889 #: ../examples/guestfs-recipes.pod:229
4890 msgid "listing the user accounts in the guest"
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../examples/guestfs-recipes.pod:233
4895 msgid "what repositories is it configured to use"
4896 msgstr ""
4897
4898 #. type: textblock
4899 #: ../examples/guestfs-recipes.pod:237
4900 msgid "what NTP servers does it connect to"
4901 msgstr ""
4902
4903 #. type: textblock
4904 #: ../examples/guestfs-recipes.pod:241
4905 msgid "what were the boot messages last time it booted"
4906 msgstr ""
4907
4908 #. type: textblock
4909 #: ../examples/guestfs-recipes.pod:245
4910 msgid "listing who was logged in recently"
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../examples/guestfs-recipes.pod:249
4915 msgid "http://augeas.net/"
4916 msgstr ""
4917
4918 #. type: =head1
4919 #: ../examples/guestfs-recipes.pod:251
4920 msgid "Install RPMs in a guest"
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../examples/guestfs-recipes.pod:253
4925 msgid ""
4926 "The link below contains a method to install RPMs in a guest.  In fact the "
4927 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4928 "installs them next time the guest is booted.  You could use this technique "
4929 "to install vital security updates in an offline guest."
4930 msgstr ""
4931
4932 #. type: textblock
4933 #: ../examples/guestfs-recipes.pod:259
4934 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4935 msgstr ""
4936
4937 #. type: =head1
4938 #: ../examples/guestfs-recipes.pod:261
4939 msgid "List applications installed in a VM"
4940 msgstr ""
4941
4942 #. type: textblock
4943 #: ../examples/guestfs-recipes.pod:263
4944 msgid "Save the following to a file C<list-apps.sh>:"
4945 msgstr ""
4946
4947 #. type: verbatim
4948 #: ../examples/guestfs-recipes.pod:265
4949 #, no-wrap
4950 msgid ""
4951 " #!/bin/sh -\n"
4952 " set -e\n"
4953 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4954 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4955 " guestfish --remote inspect-list-applications \"$root\"\n"
4956 " guestfish --remote exit\n"
4957 "\n"
4958 msgstr ""
4959
4960 #. type: textblock
4961 #: ../examples/guestfs-recipes.pod:272
4962 msgid ""
4963 "Make the file executable and then you can run it on any named virtual "
4964 "machine:"
4965 msgstr ""
4966
4967 #. type: verbatim
4968 #: ../examples/guestfs-recipes.pod:275
4969 #, no-wrap
4970 msgid ""
4971 " # list-apps.sh WinGuest\n"
4972 " [0] = {\n"
4973 "   app_name: Mozilla Firefox (3.6.12)\n"
4974 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4975 "   app_epoch: 0\n"
4976 "   app_version: 3.6.12 (en-GB)\n"
4977 "   app_release:\n"
4978 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4979 "   app_trans_path:\n"
4980 "   app_publisher: Mozilla\n"
4981 "   app_url: http://www.mozilla.com/en-GB/\n"
4982 "   app_source_package:\n"
4983 "   app_summary:\n"
4984 "   app_description: Mozilla Firefox\n"
4985 " }\n"
4986 " [1] = {\n"
4987 "   app_name: VLC media player\n"
4988 "   app_display_name: VLC media player 1.1.5\n"
4989 "   app_epoch: 0\n"
4990 "   app_version: 1.1.5\n"
4991 "   app_release:\n"
4992 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4993 "   app_trans_path:\n"
4994 "   app_publisher: VideoLAN\n"
4995 "   app_url: http://www.videolan.org/\n"
4996 "   app_source_package:\n"
4997 "   app_summary:\n"
4998 "   app_description:\n"
4999 " }\n"
5000 "\n"
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:305
5005 msgid ""
5006 "If you want to run the script on disk images (instead of libvirt virtual "
5007 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
5008 "L<virt-inspector(1)>."
5009 msgstr ""
5010
5011 #. type: =head1
5012 #: ../examples/guestfs-recipes.pod:309
5013 msgid "List files and directories in a VM"
5014 msgstr ""
5015
5016 #. type: textblock
5017 #: ../examples/guestfs-recipes.pod:311
5018 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5019 msgstr ""
5020
5021 #. type: verbatim
5022 #: ../examples/guestfs-recipes.pod:313
5023 #, no-wrap
5024 msgid ""
5025 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5026 "\n"
5027 msgstr ""
5028
5029 #. type: =head1
5030 #: ../examples/guestfs-recipes.pod:315
5031 msgid "List services in a Windows VM"
5032 msgstr ""
5033
5034 #. type: textblock
5035 #: ../examples/guestfs-recipes.pod:317
5036 msgid ""
5037 "The link below contains a script that can be used to list out the services "
5038 "from a Windows VM, and whether those services run at boot time or are loaded "
5039 "on demand."
5040 msgstr ""
5041
5042 #. type: textblock
5043 #: ../examples/guestfs-recipes.pod:321
5044 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
5045 msgstr ""
5046
5047 #. type: =head1
5048 #: ../examples/guestfs-recipes.pod:323
5049 msgid "Make a disk image sparse"
5050 msgstr ""
5051
5052 #. type: textblock
5053 #: ../examples/guestfs-recipes.pod:325
5054 msgid ""
5055 "The link below contains some guides for making a disk image sparse (or "
5056 "reintroducing sparseness)."
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../examples/guestfs-recipes.pod:328
5061 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5062 msgstr ""
5063
5064 #. type: =head1
5065 #: ../examples/guestfs-recipes.pod:330
5066 msgid "Monitor disk usage over time"
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../examples/guestfs-recipes.pod:332
5071 msgid ""
5072 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5073 "The link below contains a guide."
5074 msgstr ""
5075
5076 #. type: textblock
5077 #: ../examples/guestfs-recipes.pod:335
5078 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5079 msgstr ""
5080
5081 #. type: =head1
5082 #: ../examples/guestfs-recipes.pod:337
5083 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5084 msgstr ""
5085
5086 #. type: textblock
5087 #: ../examples/guestfs-recipes.pod:339
5088 msgid ""
5089 "L<guestfish(1)> plus the tools described in the link below can be used to "
5090 "read out the Windows Event Log from any virtual machine running Windows "
5091 "Vista or a later version."
5092 msgstr ""
5093
5094 #. type: textblock
5095 #: ../examples/guestfs-recipes.pod:343
5096 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
5097 msgstr ""
5098
5099 #. type: =head1
5100 #: ../examples/guestfs-recipes.pod:345
5101 msgid "Remove root password (Linux)"
5102 msgstr ""
5103
5104 #. type: textblock
5105 #: ../examples/guestfs-recipes.pod:347
5106 msgid ""
5107 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5108 "files.  One use is to remove the root password from a Linux guest:"
5109 msgstr ""
5110
5111 #. type: verbatim
5112 #: ../examples/guestfs-recipes.pod:350
5113 #, no-wrap
5114 msgid ""
5115 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5116 "\n"
5117 msgstr ""
5118
5119 #. type: =head1
5120 #: ../examples/guestfs-recipes.pod:352
5121 msgid "Remove Administrator password (Windows)"
5122 msgstr ""
5123
5124 #. type: textblock
5125 #: ../examples/guestfs-recipes.pod:354
5126 msgid ""
5127 "The link below contains one technique for removing the Administrator "
5128 "password from a Windows VM, or to be more precise, it gives you a command "
5129 "prompt the next time you log in which you can use to bypass any security:"
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../examples/guestfs-recipes.pod:359
5134 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
5135 msgstr ""
5136
5137 #. type: =head1
5138 #: ../examples/guestfs-recipes.pod:361
5139 msgid "Unpack a live CD"
5140 msgstr ""
5141
5142 #. type: textblock
5143 #: ../examples/guestfs-recipes.pod:363
5144 msgid ""
5145 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5146 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5147 "layers, as outlined in the guide below."
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../examples/guestfs-recipes.pod:367
5152 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
5153 msgstr ""
5154
5155 #. type: =head1
5156 #: ../examples/guestfs-recipes.pod:369
5157 msgid "Uploading and downloading files"
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../examples/guestfs-recipes.pod:371
5162 msgid ""
5163 "The link below contains general tips on uploading (copying in)  and "
5164 "downloading (copying out) files from VMs."
5165 msgstr ""
5166
5167 #. type: textblock
5168 #: ../examples/guestfs-recipes.pod:374
5169 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5170 msgstr ""
5171
5172 #. type: =head1
5173 #: ../examples/guestfs-recipes.pod:376
5174 msgid "Use libguestfs tools on VMware ESX guests"
5175 msgstr ""
5176
5177 #. type: textblock
5178 #: ../examples/guestfs-recipes.pod:378
5179 msgid ""
5180 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5181 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5182 msgstr ""
5183
5184 #. type: textblock
5185 #: ../examples/guestfs-recipes.pod:382
5186 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../examples/guestfs-recipes.pod:386
5191 msgid ""
5192 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
5193 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
5194 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
5195 "L<http://libguestfs.org/>."
5196 msgstr ""
5197
5198 #. type: textblock
5199 #: ../examples/guestfs-recipes.pod:403
5200 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5201 msgstr ""
5202
5203 #. type: =head2
5204 #: ../fish/guestfish-actions.pod:1
5205 msgid "add-cdrom"
5206 msgstr ""
5207
5208 #. type: verbatim
5209 #: ../fish/guestfish-actions.pod:3
5210 #, no-wrap
5211 msgid ""
5212 " add-cdrom filename\n"
5213 "\n"
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5218 msgid "This function adds a virtual CD-ROM disk image to the guest."
5219 msgstr ""
5220
5221 #. type: textblock
5222 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5223 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5224 msgstr ""
5225
5226 #. type: textblock
5227 #: ../fish/guestfish-actions.pod:15
5228 msgid ""
5229 "This call checks for the existence of C<filename>.  This stops you from "
5230 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5231 "and C<http:> URLs.  To specify those, use the general L</config> call "
5232 "instead."
5233 msgstr ""
5234
5235 #. type: textblock
5236 #: ../fish/guestfish-actions.pod:22
5237 msgid ""
5238 "If you just want to add an ISO file (often you use this as an efficient way "
5239 "to transfer large files into the guest), then you should probably use "
5240 "L</add-drive-ro> instead."
5241 msgstr ""
5242
5243 #. type: textblock
5244 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168 ../fish/guestfish-actions.pod:182
5245 msgid ""
5246 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5247 "instead."
5248 msgstr ""
5249
5250 #. type: textblock
5251 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171 ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031 ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405 ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486 ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447 ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492 ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179 ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790 ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412 ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835 ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876 ../src/guestfs-actions.pod:8059
5252 msgid ""
5253 "Deprecated functions will not be removed from the API, but the fact that "
5254 "they are deprecated indicates that there are problems with correct use of "
5255 "these functions."
5256 msgstr ""
5257
5258 #. type: =head2
5259 #: ../fish/guestfish-actions.pod:35
5260 msgid "add-domain"
5261 msgstr ""
5262
5263 #. type: =head2
5264 #: ../fish/guestfish-actions.pod:37
5265 msgid "domain"
5266 msgstr ""
5267
5268 #. type: verbatim
5269 #: ../fish/guestfish-actions.pod:39
5270 #, no-wrap
5271 msgid ""
5272 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
5273 "[allowuuid:..]\n"
5274 "\n"
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../fish/guestfish-actions.pod:41
5279 msgid ""
5280 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5281 "It works by connecting to libvirt, requesting the domain and domain XML from "
5282 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5287 msgid ""
5288 "The number of disks added is returned.  This operation is atomic: if an "
5289 "error is returned, then no disks are added."
5290 msgstr ""
5291
5292 #. type: textblock
5293 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5294 msgid ""
5295 "This function does some minimal checks to make sure the libvirt domain is "
5296 "not running (unless C<readonly> is true).  In a future version we will try "
5297 "to acquire the libvirt lock on each disk."
5298 msgstr ""
5299
5300 #. type: textblock
5301 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5302 msgid ""
5303 "Disks must be accessible locally.  This often means that adding disks from a "
5304 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5305 "unless those disks are accessible via the same device path locally too."
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5310 msgid ""
5311 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5312 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5313 "default libvirt URI (or one set through an environment variable, see the "
5314 "libvirt documentation for full details)."
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5319 msgid ""
5320 "The optional C<live> flag controls whether this call will try to connect to "
5321 "a running virtual machine C<guestfsd> process if it sees a suitable "
5322 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5323 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5324 "DAEMONS> for more information."
5325 msgstr ""
5326
5327 #. type: textblock
5328 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5329 msgid ""
5330 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5331 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5332 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5333 "as usual."
5334 msgstr ""
5335
5336 #. type: textblock
5337 #: ../fish/guestfish-actions.pod:76
5338 msgid ""
5339 "The other optional parameters are passed directly through to "
5340 "L</add-drive-opts>."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148 ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789 ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053 ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387 ../fish/guestfish-actions.pod:3522
5345 msgid ""
5346 "This command has one or more optional arguments.  See L</OPTIONAL "
5347 "ARGUMENTS>."
5348 msgstr ""
5349
5350 #. type: =head2
5351 #: ../fish/guestfish-actions.pod:81
5352 msgid "add-drive"
5353 msgstr ""
5354
5355 #. type: verbatim
5356 #: ../fish/guestfish-actions.pod:83
5357 #, no-wrap
5358 msgid ""
5359 " add-drive filename\n"
5360 "\n"
5361 msgstr ""
5362
5363 #. type: textblock
5364 #: ../fish/guestfish-actions.pod:85
5365 msgid ""
5366 "This function is the equivalent of calling L</add-drive-opts> with no "
5367 "optional parameters, so the disk is added writable, with the format being "
5368 "detected automatically."
5369 msgstr ""
5370
5371 #. type: textblock
5372 #: ../fish/guestfish-actions.pod:89
5373 msgid ""
5374 "Automatic detection of the format opens you up to a potential security hole "
5375 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5376 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5377 "you should think about replacing calls to this function with calls to "
5378 "L</add-drive-opts>, and specifying the format."
5379 msgstr ""
5380
5381 #. type: =head2
5382 #: ../fish/guestfish-actions.pod:96
5383 msgid "add-drive-opts"
5384 msgstr ""
5385
5386 #. type: =head2
5387 #: ../fish/guestfish-actions.pod:98
5388 msgid "add"
5389 msgstr ""
5390
5391 #. type: verbatim
5392 #: ../fish/guestfish-actions.pod:100
5393 #, no-wrap
5394 msgid ""
5395 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
5396 "\n"
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
5401 msgid ""
5402 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5403 "The first time you call this function, the disk appears as C</dev/sda>, the "
5404 "second time as C</dev/sdb>, and so on."
5405 msgstr ""
5406
5407 #. type: textblock
5408 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
5409 msgid ""
5410 "You don't necessarily need to be root when using libguestfs.  However you "
5411 "obviously do need sufficient permissions to access the filename for whatever "
5412 "operations you want to perform (ie. read access if you just want to read the "
5413 "image or write access if you want to modify the image)."
5414 msgstr ""
5415
5416 #. type: textblock
5417 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
5418 msgid "This call checks that C<filename> exists."
5419 msgstr ""
5420
5421 #. type: textblock
5422 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
5423 msgid "The optional arguments are:"
5424 msgstr ""
5425
5426 #. type: =item
5427 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
5428 msgid "C<readonly>"
5429 msgstr ""
5430
5431 #. type: textblock
5432 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
5433 msgid ""
5434 "If true then the image is treated as read-only.  Writes are still allowed, "
5435 "but they are stored in a temporary snapshot overlay which is discarded at "
5436 "the end.  The disk that you add is not modified."
5437 msgstr ""
5438
5439 #. type: =item
5440 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
5441 msgid "C<format>"
5442 msgstr ""
5443
5444 #. type: textblock
5445 #: ../fish/guestfish-actions.pod:127
5446 msgid ""
5447 "This forces the image format.  If you omit this (or use L</add-drive> or "
5448 "L</add-drive-ro>) then the format is automatically detected.  Possible "
5449 "formats include C<raw> and C<qcow2>."
5450 msgstr ""
5451
5452 #. type: textblock
5453 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
5454 msgid ""
5455 "Automatic detection of the format opens you up to a potential security hole "
5456 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5457 "RHBZ#642934.  Specifying the format closes this security hole."
5458 msgstr ""
5459
5460 #. type: =item
5461 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
5462 msgid "C<iface>"
5463 msgstr ""
5464
5465 #. type: textblock
5466 #: ../fish/guestfish-actions.pod:138
5467 msgid ""
5468 "This rarely-used option lets you emulate the behaviour of the deprecated "
5469 "L</add-drive-with-if> call (q.v.)"
5470 msgstr ""
5471
5472 #. type: =item
5473 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
5474 msgid "C<name>"
5475 msgstr ""
5476
5477 #. type: textblock
5478 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
5479 msgid ""
5480 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
5481 "a hint to the guest inspection process if it is available."
5482 msgstr ""
5483
5484 #. type: =head2
5485 #: ../fish/guestfish-actions.pod:150
5486 msgid "add-drive-ro"
5487 msgstr ""
5488
5489 #. type: =head2
5490 #: ../fish/guestfish-actions.pod:152
5491 msgid "add-ro"
5492 msgstr ""
5493
5494 #. type: verbatim
5495 #: ../fish/guestfish-actions.pod:154
5496 #, no-wrap
5497 msgid ""
5498 " add-drive-ro filename\n"
5499 "\n"
5500 msgstr ""
5501
5502 #. type: textblock
5503 #: ../fish/guestfish-actions.pod:156
5504 msgid ""
5505 "This function is the equivalent of calling L</add-drive-opts> with the "
5506 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5507 "is added read-only, with the format being detected automatically."
5508 msgstr ""
5509
5510 #. type: =head2
5511 #: ../fish/guestfish-actions.pod:161
5512 msgid "add-drive-ro-with-if"
5513 msgstr ""
5514
5515 #. type: verbatim
5516 #: ../fish/guestfish-actions.pod:163
5517 #, no-wrap
5518 msgid ""
5519 " add-drive-ro-with-if filename iface\n"
5520 "\n"
5521 msgstr ""
5522
5523 #. type: textblock
5524 #: ../fish/guestfish-actions.pod:165
5525 msgid ""
5526 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5527 "interface emulation to use at run time."
5528 msgstr ""
5529
5530 #. type: =head2
5531 #: ../fish/guestfish-actions.pod:175
5532 msgid "add-drive-with-if"
5533 msgstr ""
5534
5535 #. type: verbatim
5536 #: ../fish/guestfish-actions.pod:177
5537 #, no-wrap
5538 msgid ""
5539 " add-drive-with-if filename iface\n"
5540 "\n"
5541 msgstr ""
5542
5543 #. type: textblock
5544 #: ../fish/guestfish-actions.pod:179
5545 msgid ""
5546 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5547 "interface emulation to use at run time."
5548 msgstr ""
5549
5550 #. type: =head2
5551 #: ../fish/guestfish-actions.pod:189
5552 msgid "aug-clear"
5553 msgstr ""
5554
5555 #. type: verbatim
5556 #: ../fish/guestfish-actions.pod:191
5557 #, no-wrap
5558 msgid ""
5559 " aug-clear augpath\n"
5560 "\n"
5561 msgstr ""
5562
5563 #. type: textblock
5564 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
5565 msgid ""
5566 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5567 "L<augtool(1)> C<clear> command."
5568 msgstr ""
5569
5570 #. type: =head2
5571 #: ../fish/guestfish-actions.pod:196
5572 msgid "aug-close"
5573 msgstr ""
5574
5575 #. type: verbatim
5576 #: ../fish/guestfish-actions.pod:198
5577 #, no-wrap
5578 msgid ""
5579 " aug-close\n"
5580 "\n"
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../fish/guestfish-actions.pod:200
5585 msgid ""
5586 "Close the current Augeas handle and free up any resources used by it.  After "
5587 "calling this, you have to call L</aug-init> again before you can use any "
5588 "other Augeas functions."
5589 msgstr ""
5590
5591 #. type: =head2
5592 #: ../fish/guestfish-actions.pod:205
5593 msgid "aug-defnode"
5594 msgstr ""
5595
5596 #. type: verbatim
5597 #: ../fish/guestfish-actions.pod:207
5598 #, no-wrap
5599 msgid ""
5600 " aug-defnode name expr val\n"
5601 "\n"
5602 msgstr ""
5603
5604 #. type: textblock
5605 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
5606 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../fish/guestfish-actions.pod:212
5611 msgid ""
5612 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5613 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5614 "containing that single node."
5615 msgstr ""
5616
5617 #. type: textblock
5618 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
5619 msgid ""
5620 "On success this returns a pair containing the number of nodes in the "
5621 "nodeset, and a boolean flag if a node was created."
5622 msgstr ""
5623
5624 #. type: =head2
5625 #: ../fish/guestfish-actions.pod:220
5626 msgid "aug-defvar"
5627 msgstr ""
5628
5629 #. type: verbatim
5630 #: ../fish/guestfish-actions.pod:222
5631 #, no-wrap
5632 msgid ""
5633 " aug-defvar name expr\n"
5634 "\n"
5635 msgstr ""
5636
5637 #. type: textblock
5638 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
5639 msgid ""
5640 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5641 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5642 msgstr ""
5643
5644 #. type: textblock
5645 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
5646 msgid ""
5647 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5648 "evaluates to something which is not a nodeset."
5649 msgstr ""
5650
5651 #. type: =head2
5652 #: ../fish/guestfish-actions.pod:231
5653 msgid "aug-get"
5654 msgstr ""
5655
5656 #. type: verbatim
5657 #: ../fish/guestfish-actions.pod:233
5658 #, no-wrap
5659 msgid ""
5660 " aug-get augpath\n"
5661 "\n"
5662 msgstr ""
5663
5664 #. type: textblock
5665 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
5666 msgid ""
5667 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5668 "node, the C<value> is returned."
5669 msgstr ""
5670
5671 #. type: =head2
5672 #: ../fish/guestfish-actions.pod:238
5673 msgid "aug-init"
5674 msgstr ""
5675
5676 #. type: verbatim
5677 #: ../fish/guestfish-actions.pod:240
5678 #, no-wrap
5679 msgid ""
5680 " aug-init root flags\n"
5681 "\n"
5682 msgstr ""
5683
5684 #. type: textblock
5685 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
5686 msgid ""
5687 "Create a new Augeas handle for editing configuration files.  If there was "
5688 "any previous Augeas handle associated with this guestfs session, then it is "
5689 "closed."
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../fish/guestfish-actions.pod:246
5694 msgid "You must call this before using any other L</aug-*> commands."
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
5699 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5700 msgstr ""
5701
5702 #. type: textblock
5703 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
5704 msgid ""
5705 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5706 "logical I<or> of the following integers:"
5707 msgstr ""
5708
5709 #. type: =item
5710 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
5711 msgid "C<AUG_SAVE_BACKUP> = 1"
5712 msgstr ""
5713
5714 #. type: textblock
5715 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
5716 msgid "Keep the original file with a C<.augsave> extension."
5717 msgstr ""
5718
5719 #. type: =item
5720 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
5721 msgid "C<AUG_SAVE_NEWFILE> = 2"
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
5726 msgid ""
5727 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5728 "original.  Overrides C<AUG_SAVE_BACKUP>."
5729 msgstr ""
5730
5731 #. type: =item
5732 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
5733 msgid "C<AUG_TYPE_CHECK> = 4"
5734 msgstr ""
5735
5736 #. type: textblock
5737 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
5738 msgid "Typecheck lenses."
5739 msgstr ""
5740
5741 #. type: textblock
5742 #: ../fish/guestfish-actions.pod:271
5743 msgid ""
5744 "This option is only useful when debugging Augeas lenses.  Use of this option "
5745 "may require additional memory for the libguestfs appliance.  You may need to "
5746 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5747 msgstr ""
5748
5749 #. type: =item
5750 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
5751 msgid "C<AUG_NO_STDINC> = 8"
5752 msgstr ""
5753
5754 #. type: textblock
5755 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
5756 msgid "Do not use standard load path for modules."
5757 msgstr ""
5758
5759 #. type: =item
5760 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
5761 msgid "C<AUG_SAVE_NOOP> = 16"
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
5766 msgid "Make save a no-op, just record what would have been changed."
5767 msgstr ""
5768
5769 #. type: =item
5770 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
5771 msgid "C<AUG_NO_LOAD> = 32"
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../fish/guestfish-actions.pod:286
5776 msgid "Do not load the tree in L</aug-init>."
5777 msgstr ""
5778
5779 #. type: textblock
5780 #: ../fish/guestfish-actions.pod:290
5781 msgid "To close the handle, you can call L</aug-close>."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
5786 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5787 msgstr ""
5788
5789 #. type: =head2
5790 #: ../fish/guestfish-actions.pod:294
5791 msgid "aug-insert"
5792 msgstr ""
5793
5794 #. type: verbatim
5795 #: ../fish/guestfish-actions.pod:296
5796 #, no-wrap
5797 msgid ""
5798 " aug-insert augpath label true|false\n"
5799 "\n"
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
5804 msgid ""
5805 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5806 "or after C<path> (depending on the boolean flag C<before>)."
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
5811 msgid ""
5812 "C<path> must match exactly one existing node in the tree, and C<label> must "
5813 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5814 msgstr ""
5815
5816 #. type: =head2
5817 #: ../fish/guestfish-actions.pod:306
5818 msgid "aug-load"
5819 msgstr ""
5820
5821 #. type: verbatim
5822 #: ../fish/guestfish-actions.pod:308
5823 #, no-wrap
5824 msgid ""
5825 " aug-load\n"
5826 "\n"
5827 msgstr ""
5828
5829 #. type: textblock
5830 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
5831 msgid "Load files into the tree."
5832 msgstr ""
5833
5834 #. type: textblock
5835 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
5836 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5837 msgstr ""
5838
5839 #. type: =head2
5840 #: ../fish/guestfish-actions.pod:315
5841 msgid "aug-ls"
5842 msgstr ""
5843
5844 #. type: verbatim
5845 #: ../fish/guestfish-actions.pod:317
5846 #, no-wrap
5847 msgid ""
5848 " aug-ls augpath\n"
5849 "\n"
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../fish/guestfish-actions.pod:319
5854 msgid ""
5855 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5856 "resulting nodes into alphabetical order."
5857 msgstr ""
5858
5859 #. type: =head2
5860 #: ../fish/guestfish-actions.pod:322
5861 msgid "aug-match"
5862 msgstr ""
5863
5864 #. type: verbatim
5865 #: ../fish/guestfish-actions.pod:324
5866 #, no-wrap
5867 msgid ""
5868 " aug-match augpath\n"
5869 "\n"
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
5874 msgid ""
5875 "Returns a list of paths which match the path expression C<path>.  The "
5876 "returned paths are sufficiently qualified so that they match exactly one "
5877 "node in the current tree."
5878 msgstr ""
5879
5880 #. type: =head2
5881 #: ../fish/guestfish-actions.pod:330
5882 msgid "aug-mv"
5883 msgstr ""
5884
5885 #. type: verbatim
5886 #: ../fish/guestfish-actions.pod:332
5887 #, no-wrap
5888 msgid ""
5889 " aug-mv src dest\n"
5890 "\n"
5891 msgstr ""
5892
5893 #. type: textblock
5894 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
5895 msgid ""
5896 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5897 "C<dest> is overwritten if it exists."
5898 msgstr ""
5899
5900 #. type: =head2
5901 #: ../fish/guestfish-actions.pod:337
5902 msgid "aug-rm"
5903 msgstr ""
5904
5905 #. type: verbatim
5906 #: ../fish/guestfish-actions.pod:339
5907 #, no-wrap
5908 msgid ""
5909 " aug-rm augpath\n"
5910 "\n"
5911 msgstr ""
5912
5913 #. type: textblock
5914 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
5915 msgid "Remove C<path> and all of its children."
5916 msgstr ""
5917
5918 #. type: textblock
5919 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
5920 msgid "On success this returns the number of entries which were removed."
5921 msgstr ""
5922
5923 #. type: =head2
5924 #: ../fish/guestfish-actions.pod:345
5925 msgid "aug-save"
5926 msgstr ""
5927
5928 #. type: verbatim
5929 #: ../fish/guestfish-actions.pod:347
5930 #, no-wrap
5931 msgid ""
5932 " aug-save\n"
5933 "\n"
5934 msgstr ""
5935
5936 #. type: textblock
5937 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
5938 msgid "This writes all pending changes to disk."
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../fish/guestfish-actions.pod:351
5943 msgid ""
5944 "The flags which were passed to L</aug-init> affect exactly how files are "
5945 "saved."
5946 msgstr ""
5947
5948 #. type: =head2
5949 #: ../fish/guestfish-actions.pod:354
5950 msgid "aug-set"
5951 msgstr ""
5952
5953 #. type: verbatim
5954 #: ../fish/guestfish-actions.pod:356
5955 #, no-wrap
5956 msgid ""
5957 " aug-set augpath val\n"
5958 "\n"
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
5963 msgid "Set the value associated with C<path> to C<val>."
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../fish/guestfish-actions.pod:360
5968 msgid ""
5969 "In the Augeas API, it is possible to clear a node by setting the value to "
5970 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5971 "this call.  Instead you must use the L</aug-clear> call."
5972 msgstr ""
5973
5974 #. type: =head2
5975 #: ../fish/guestfish-actions.pod:365
5976 msgid "available"
5977 msgstr ""
5978
5979 #. type: verbatim
5980 #: ../fish/guestfish-actions.pod:367
5981 #, no-wrap
5982 msgid ""
5983 " available 'groups ...'\n"
5984 "\n"
5985 msgstr ""
5986
5987 #. type: textblock
5988 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
5989 msgid ""
5990 "This command is used to check the availability of some groups of "
5991 "functionality in the appliance, which not all builds of the libguestfs "
5992 "appliance will be able to provide."
5993 msgstr ""
5994
5995 #. type: textblock
5996 #: ../fish/guestfish-actions.pod:373
5997 msgid ""
5998 "The libguestfs groups, and the functions that those groups correspond to, "
5999 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6000 "runtime by calling L</available-all-groups>."
6001 msgstr ""
6002
6003 #. type: textblock
6004 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6005 msgid ""
6006 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6007 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6008 "and Augeas (configuration file editing) functions."
6009 msgstr ""
6010
6011 #. type: textblock
6012 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6013 msgid "The command returns no error if I<all> requested groups are available."
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6018 msgid ""
6019 "It fails with an error if one or more of the requested groups is unavailable "
6020 "in the appliance."
6021 msgstr ""
6022
6023 #. type: textblock
6024 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6025 msgid ""
6026 "If an unknown group name is included in the list of groups then an error is "
6027 "always returned."
6028 msgstr ""
6029
6030 #. type: textblock
6031 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6032 msgid "I<Notes:>"
6033 msgstr ""
6034
6035 #. type: textblock
6036 #: ../fish/guestfish-actions.pod:397
6037 msgid "You must call L</launch> before calling this function."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6042 msgid ""
6043 "The reason is because we don't know what groups are supported by the "
6044 "appliance/daemon until it is running and can be queried."
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6049 msgid ""
6050 "If a group of functions is available, this does not necessarily mean that "
6051 "they will work.  You still have to check for errors when calling individual "
6052 "API functions even if they are available."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6057 msgid ""
6058 "It is usually the job of distro packagers to build complete functionality "
6059 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6060 "with all requirements satisfied, will support everything."
6061 msgstr ""
6062
6063 #. type: textblock
6064 #: ../fish/guestfish-actions.pod:419
6065 msgid ""
6066 "This call was added in version C<1.0.80>.  In previous versions of "
6067 "libguestfs all you could do would be to speculatively execute a command to "
6068 "find out if the daemon implemented it.  See also L</version>."
6069 msgstr ""
6070
6071 #. type: =head2
6072 #: ../fish/guestfish-actions.pod:426
6073 msgid "available-all-groups"
6074 msgstr ""
6075
6076 #. type: verbatim
6077 #: ../fish/guestfish-actions.pod:428
6078 #, no-wrap
6079 msgid ""
6080 " available-all-groups\n"
6081 "\n"
6082 msgstr ""
6083
6084 #. type: textblock
6085 #: ../fish/guestfish-actions.pod:430
6086 msgid ""
6087 "This command returns a list of all optional groups that this daemon knows "
6088 "about.  Note this returns both supported and unsupported groups.  To find "
6089 "out which ones the daemon can actually support you have to call "
6090 "L</available> on each member of the returned list."
6091 msgstr ""
6092
6093 #. type: textblock
6094 #: ../fish/guestfish-actions.pod:436
6095 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6096 msgstr ""
6097
6098 #. type: =head2
6099 #: ../fish/guestfish-actions.pod:438
6100 msgid "base64-in"
6101 msgstr ""
6102
6103 #. type: verbatim
6104 #: ../fish/guestfish-actions.pod:440
6105 #, no-wrap
6106 msgid ""
6107 " base64-in (base64file|-) filename\n"
6108 "\n"
6109 msgstr ""
6110
6111 #. type: textblock
6112 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6113 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6114 msgstr ""
6115
6116 #. type: textblock
6117 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454 ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787 ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907 ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762 ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784 ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6118 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6119 msgstr ""
6120
6121 #. type: =head2
6122 #: ../fish/guestfish-actions.pod:447
6123 msgid "base64-out"
6124 msgstr ""
6125
6126 #. type: verbatim
6127 #: ../fish/guestfish-actions.pod:449
6128 #, no-wrap
6129 msgid ""
6130 " base64-out filename (base64file|-)\n"
6131 "\n"
6132 msgstr ""
6133
6134 #. type: textblock
6135 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6136 msgid ""
6137 "This command downloads the contents of C<filename>, writing it out to local "
6138 "file C<base64file> encoded as base64."
6139 msgstr ""
6140
6141 #. type: =head2
6142 #: ../fish/guestfish-actions.pod:456
6143 msgid "blockdev-flushbufs"
6144 msgstr ""
6145
6146 #. type: verbatim
6147 #: ../fish/guestfish-actions.pod:458
6148 #, no-wrap
6149 msgid ""
6150 " blockdev-flushbufs device\n"
6151 "\n"
6152 msgstr ""
6153
6154 #. type: textblock
6155 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6156 msgid "This tells the kernel to flush internal buffers associated with C<device>."
6157 msgstr ""
6158
6159 #. type: textblock
6160 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474 ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493 ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518 ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537 ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553 ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702 ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733 ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770 ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6161 msgid "This uses the L<blockdev(8)> command."
6162 msgstr ""
6163
6164 #. type: =head2
6165 #: ../fish/guestfish-actions.pod:465
6166 msgid "blockdev-getbsz"
6167 msgstr ""
6168
6169 #. type: verbatim
6170 #: ../fish/guestfish-actions.pod:467
6171 #, no-wrap
6172 msgid ""
6173 " blockdev-getbsz device\n"
6174 "\n"
6175 msgstr ""
6176
6177 #. type: textblock
6178 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6179 msgid "This returns the block size of a device."
6180 msgstr ""
6181
6182 #. type: textblock
6183 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534 ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6184 msgid ""
6185 "(Note this is different from both I<size in blocks> and I<filesystem block "
6186 "size>)."
6187 msgstr ""
6188
6189 #. type: =head2
6190 #: ../fish/guestfish-actions.pod:476
6191 msgid "blockdev-getro"
6192 msgstr ""
6193
6194 #. type: verbatim
6195 #: ../fish/guestfish-actions.pod:478
6196 #, no-wrap
6197 msgid ""
6198 " blockdev-getro device\n"
6199 "\n"
6200 msgstr ""
6201
6202 #. type: textblock
6203 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6204 msgid ""
6205 "Returns a boolean indicating if the block device is read-only (true if "
6206 "read-only, false if not)."
6207 msgstr ""
6208
6209 #. type: =head2
6210 #: ../fish/guestfish-actions.pod:485
6211 msgid "blockdev-getsize64"
6212 msgstr ""
6213
6214 #. type: verbatim
6215 #: ../fish/guestfish-actions.pod:487
6216 #, no-wrap
6217 msgid ""
6218 " blockdev-getsize64 device\n"
6219 "\n"
6220 msgstr ""
6221
6222 #. type: textblock
6223 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6224 msgid "This returns the size of the device in bytes."
6225 msgstr ""
6226
6227 #. type: textblock
6228 #: ../fish/guestfish-actions.pod:491
6229 msgid "See also L</blockdev-getsz>."
6230 msgstr ""
6231
6232 #. type: =head2
6233 #: ../fish/guestfish-actions.pod:495
6234 msgid "blockdev-getss"
6235 msgstr ""
6236
6237 #. type: verbatim
6238 #: ../fish/guestfish-actions.pod:497
6239 #, no-wrap
6240 msgid ""
6241 " blockdev-getss device\n"
6242 "\n"
6243 msgstr ""
6244
6245 #. type: textblock
6246 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6247 msgid ""
6248 "This returns the size of sectors on a block device.  Usually 512, but can be "
6249 "larger for modern devices."
6250 msgstr ""
6251
6252 #. type: textblock
6253 #: ../fish/guestfish-actions.pod:502
6254 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6255 msgstr ""
6256
6257 #. type: =head2
6258 #: ../fish/guestfish-actions.pod:507
6259 msgid "blockdev-getsz"
6260 msgstr ""
6261
6262 #. type: verbatim
6263 #: ../fish/guestfish-actions.pod:509
6264 #, no-wrap
6265 msgid ""
6266 " blockdev-getsz device\n"
6267 "\n"
6268 msgstr ""
6269
6270 #. type: textblock
6271 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6272 msgid ""
6273 "This returns the size of the device in units of 512-byte sectors (even if "
6274 "the sectorsize isn't 512 bytes ... weird)."
6275 msgstr ""
6276
6277 #. type: textblock
6278 #: ../fish/guestfish-actions.pod:514
6279 msgid ""
6280 "See also L</blockdev-getss> for the real sector size of the device, and "
6281 "L</blockdev-getsize64> for the more useful I<size in bytes>."
6282 msgstr ""
6283
6284 #. type: =head2
6285 #: ../fish/guestfish-actions.pod:520
6286 msgid "blockdev-rereadpt"
6287 msgstr ""
6288
6289 #. type: verbatim
6290 #: ../fish/guestfish-actions.pod:522
6291 #, no-wrap
6292 msgid ""
6293 " blockdev-rereadpt device\n"
6294 "\n"
6295 msgstr ""
6296
6297 #. type: textblock
6298 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6299 msgid "Reread the partition table on C<device>."
6300 msgstr ""
6301
6302 #. type: =head2
6303 #: ../fish/guestfish-actions.pod:528
6304 msgid "blockdev-setbsz"
6305 msgstr ""
6306
6307 #. type: verbatim
6308 #: ../fish/guestfish-actions.pod:530
6309 #, no-wrap
6310 msgid ""
6311 " blockdev-setbsz device blocksize\n"
6312 "\n"
6313 msgstr ""
6314
6315 #. type: textblock
6316 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6317 msgid "This sets the block size of a device."
6318 msgstr ""
6319
6320 #. type: =head2
6321 #: ../fish/guestfish-actions.pod:539
6322 msgid "blockdev-setro"
6323 msgstr ""
6324
6325 #. type: verbatim
6326 #: ../fish/guestfish-actions.pod:541
6327 #, no-wrap
6328 msgid ""
6329 " blockdev-setro device\n"
6330 "\n"
6331 msgstr ""
6332
6333 #. type: textblock
6334 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
6335 msgid "Sets the block device named C<device> to read-only."
6336 msgstr ""
6337
6338 #. type: =head2
6339 #: ../fish/guestfish-actions.pod:547
6340 msgid "blockdev-setrw"
6341 msgstr ""
6342
6343 #. type: verbatim
6344 #: ../fish/guestfish-actions.pod:549
6345 #, no-wrap
6346 msgid ""
6347 " blockdev-setrw device\n"
6348 "\n"
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
6353 msgid "Sets the block device named C<device> to read-write."
6354 msgstr ""
6355
6356 #. type: =head2
6357 #: ../fish/guestfish-actions.pod:555
6358 msgid "btrfs-filesystem-resize"
6359 msgstr ""
6360
6361 #. type: verbatim
6362 #: ../fish/guestfish-actions.pod:557
6363 #, no-wrap
6364 msgid ""
6365 " btrfs-filesystem-resize mountpoint [size:..]\n"
6366 "\n"
6367 msgstr ""
6368
6369 #. type: textblock
6370 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
6371 msgid "This command resizes a btrfs filesystem."
6372 msgstr ""
6373
6374 #. type: textblock
6375 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
6376 msgid ""
6377 "Note that unlike other resize calls, the filesystem has to be mounted and "
6378 "the parameter is the mountpoint not the device (this is a requirement of "
6379 "btrfs itself)."
6380 msgstr ""
6381
6382 #. type: textblock
6383 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497 ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
6384 msgid "The optional parameters are:"
6385 msgstr ""
6386
6387 #. type: =item
6388 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
6389 msgid "C<size>"
6390 msgstr ""
6391
6392 #. type: textblock
6393 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
6394 msgid ""
6395 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6396 "resized to the maximum size."
6397 msgstr ""
6398
6399 #. type: textblock
6400 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
6401 msgid "See also L<btrfs(8)>."
6402 msgstr ""
6403
6404 #. type: =head2
6405 #: ../fish/guestfish-actions.pod:580
6406 msgid "case-sensitive-path"
6407 msgstr ""
6408
6409 #. type: verbatim
6410 #: ../fish/guestfish-actions.pod:582
6411 #, no-wrap
6412 msgid ""
6413 " case-sensitive-path path\n"
6414 "\n"
6415 msgstr ""
6416
6417 #. type: textblock
6418 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
6419 msgid ""
6420 "This can be used to resolve case insensitive paths on a filesystem which is "
6421 "case sensitive.  The use case is to resolve paths which you have read from "
6422 "Windows configuration files or the Windows Registry, to the true path."
6423 msgstr ""
6424
6425 #. type: textblock
6426 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
6427 msgid ""
6428 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6429 "(and probably others), which is that although the underlying filesystem is "
6430 "case-insensitive, the driver exports the filesystem to Linux as "
6431 "case-sensitive."
6432 msgstr ""
6433
6434 #. type: textblock
6435 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
6436 msgid ""
6437 "One consequence of this is that special directories such as C<c:\\windows> "
6438 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6439 "precise details of how they were created.  In Windows itself this would not "
6440 "be a problem."
6441 msgstr ""
6442
6443 #. type: textblock
6444 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
6445 msgid ""
6446 "Bug or feature? You decide: "
6447 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
6448 msgstr ""
6449
6450 #. type: textblock
6451 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
6452 msgid ""
6453 "This function resolves the true case of each element in the path and returns "
6454 "the case-sensitive path."
6455 msgstr ""
6456
6457 #. type: textblock
6458 #: ../fish/guestfish-actions.pod:606
6459 msgid ""
6460 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
6461 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
6462 "how the directories were originally created under Windows)."
6463 msgstr ""
6464
6465 #. type: textblock
6466 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
6467 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6468 msgstr ""
6469
6470 #. type: textblock
6471 #: ../fish/guestfish-actions.pod:614
6472 msgid "See also L</realpath>."
6473 msgstr ""
6474
6475 #. type: =head2
6476 #: ../fish/guestfish-actions.pod:616
6477 msgid "cat"
6478 msgstr ""
6479
6480 #. type: verbatim
6481 #: ../fish/guestfish-actions.pod:618
6482 #, no-wrap
6483 msgid ""
6484 " cat path\n"
6485 "\n"
6486 msgstr ""
6487
6488 #. type: textblock
6489 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
6490 msgid "Return the contents of the file named C<path>."
6491 msgstr ""
6492
6493 #. type: textblock
6494 #: ../fish/guestfish-actions.pod:622
6495 msgid ""
6496 "Note that this function cannot correctly handle binary files (specifically, "
6497 "files containing C<\\0> character which is treated as end of string).  For "
6498 "those you need to use the L</read-file> or L</download> functions which have "
6499 "a more complex interface."
6500 msgstr ""
6501
6502 #. type: textblock
6503 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985 ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062 ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264 ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587 ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652 ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681 ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802 ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895 ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591 ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722 ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143 ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173 ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200 ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267 ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306 ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560 ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448 ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537 ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950 ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151 ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840 ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931 ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044 ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
6504 msgid ""
6505 "Because of the message protocol, there is a transfer limit of somewhere "
6506 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6507 msgstr ""
6508
6509 #. type: =head2
6510 #: ../fish/guestfish-actions.pod:630
6511 msgid "checksum"
6512 msgstr ""
6513
6514 #. type: verbatim
6515 #: ../fish/guestfish-actions.pod:632
6516 #, no-wrap
6517 msgid ""
6518 " checksum csumtype path\n"
6519 "\n"
6520 msgstr ""
6521
6522 #. type: textblock
6523 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
6524 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6525 msgstr ""
6526
6527 #. type: textblock
6528 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
6529 msgid ""
6530 "The type of checksum to compute is given by the C<csumtype> parameter which "
6531 "must have one of the following values:"
6532 msgstr ""
6533
6534 #. type: =item
6535 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
6536 msgid "C<crc>"
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
6541 msgid ""
6542 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6543 "C<cksum> command."
6544 msgstr ""
6545
6546 #. type: =item
6547 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
6548 msgid "C<md5>"
6549 msgstr ""
6550
6551 #. type: textblock
6552 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
6553 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6554 msgstr ""
6555
6556 #. type: =item
6557 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
6558 msgid "C<sha1>"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
6563 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6564 msgstr ""
6565
6566 #. type: =item
6567 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
6568 msgid "C<sha224>"
6569 msgstr ""
6570
6571 #. type: textblock
6572 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
6573 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6574 msgstr ""
6575
6576 #. type: =item
6577 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
6578 msgid "C<sha256>"
6579 msgstr ""
6580
6581 #. type: textblock
6582 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
6583 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6584 msgstr ""
6585
6586 #. type: =item
6587 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
6588 msgid "C<sha384>"
6589 msgstr ""
6590
6591 #. type: textblock
6592 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
6593 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6594 msgstr ""
6595
6596 #. type: =item
6597 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
6598 msgid "C<sha512>"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
6603 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6604 msgstr ""
6605
6606 #. type: textblock
6607 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
6608 msgid "The checksum is returned as a printable string."
6609 msgstr ""
6610
6611 #. type: textblock
6612 #: ../fish/guestfish-actions.pod:675
6613 msgid "To get the checksum for a device, use L</checksum-device>."
6614 msgstr ""
6615
6616 #. type: textblock
6617 #: ../fish/guestfish-actions.pod:677
6618 msgid "To get the checksums for many files, use L</checksums-out>."
6619 msgstr ""
6620
6621 #. type: =head2
6622 #: ../fish/guestfish-actions.pod:679
6623 msgid "checksum-device"
6624 msgstr ""
6625
6626 #. type: verbatim
6627 #: ../fish/guestfish-actions.pod:681
6628 #, no-wrap
6629 msgid ""
6630 " checksum-device csumtype device\n"
6631 "\n"
6632 msgstr ""
6633
6634 #. type: textblock
6635 #: ../fish/guestfish-actions.pod:683
6636 msgid ""
6637 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6638 "device named C<device>.  For the types of checksums supported see the "
6639 "L</checksum> command."
6640 msgstr ""
6641
6642 #. type: =head2
6643 #: ../fish/guestfish-actions.pod:687
6644 msgid "checksums-out"
6645 msgstr ""
6646
6647 #. type: verbatim
6648 #: ../fish/guestfish-actions.pod:689
6649 #, no-wrap
6650 msgid ""
6651 " checksums-out csumtype directory (sumsfile|-)\n"
6652 "\n"
6653 msgstr ""
6654
6655 #. type: textblock
6656 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
6657 msgid ""
6658 "This command computes the checksums of all regular files in C<directory> and "
6659 "then emits a list of those checksums to the local output file C<sumsfile>."
6660 msgstr ""
6661
6662 #. type: textblock
6663 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
6664 msgid ""
6665 "This can be used for verifying the integrity of a virtual machine.  However "
6666 "to be properly secure you should pay attention to the output of the checksum "
6667 "command (it uses the ones from GNU coreutils).  In particular when the "
6668 "filename is not printable, coreutils uses a special backslash syntax.  For "
6669 "more information, see the GNU coreutils info file."
6670 msgstr ""
6671
6672 #. type: =head2
6673 #: ../fish/guestfish-actions.pod:705
6674 msgid "chmod"
6675 msgstr ""
6676
6677 #. type: verbatim
6678 #: ../fish/guestfish-actions.pod:707
6679 #, no-wrap
6680 msgid ""
6681 " chmod mode path\n"
6682 "\n"
6683 msgstr ""
6684
6685 #. type: textblock
6686 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
6687 msgid ""
6688 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6689 "supported."
6690 msgstr ""
6691
6692 #. type: textblock
6693 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
6694 msgid ""
6695 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6696 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6697 "C<700>."
6698 msgstr ""
6699
6700 #. type: textblock
6701 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150 ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299 ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070 ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
6702 msgid "The mode actually set is affected by the umask."
6703 msgstr ""
6704
6705 #. type: =head2
6706 #: ../fish/guestfish-actions.pod:718
6707 msgid "chown"
6708 msgstr ""
6709
6710 #. type: verbatim
6711 #: ../fish/guestfish-actions.pod:720
6712 #, no-wrap
6713 msgid ""
6714 " chown owner group path\n"
6715 "\n"
6716 msgstr ""
6717
6718 #. type: textblock
6719 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
6720 msgid "Change the file owner to C<owner> and group to C<group>."
6721 msgstr ""
6722
6723 #. type: textblock
6724 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
6725 msgid ""
6726 "Only numeric uid and gid are supported.  If you want to use names, you will "
6727 "need to locate and parse the password file yourself (Augeas support makes "
6728 "this relatively easy)."
6729 msgstr ""
6730
6731 #. type: =head2
6732 #: ../fish/guestfish-actions.pod:728
6733 msgid "command"
6734 msgstr ""
6735
6736 #. type: verbatim
6737 #: ../fish/guestfish-actions.pod:730
6738 #, no-wrap
6739 msgid ""
6740 " command 'arguments ...'\n"
6741 "\n"
6742 msgstr ""
6743
6744 #. type: textblock
6745 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
6746 msgid ""
6747 "This call runs a command from the guest filesystem.  The filesystem must be "
6748 "mounted, and must contain a compatible operating system (ie. something "
6749 "Linux, with the same or compatible processor architecture)."
6750 msgstr ""
6751
6752 #. type: textblock
6753 #: ../fish/guestfish-actions.pod:737
6754 msgid ""
6755 "The single parameter is an argv-style list of arguments.  The first element "
6756 "is the name of the program to run.  Subsequent elements are parameters.  The "
6757 "list must be non-empty (ie. must contain a program name).  Note that the "
6758 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6759 msgstr ""
6760
6761 #. type: textblock
6762 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
6763 msgid "The return value is anything printed to I<stdout> by the command."
6764 msgstr ""
6765
6766 #. type: textblock
6767 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
6768 msgid ""
6769 "If the command returns a non-zero exit status, then this function returns an "
6770 "error message.  The error message string is the content of I<stderr> from "
6771 "the command."
6772 msgstr ""
6773
6774 #. type: textblock
6775 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
6776 msgid ""
6777 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
6778 "C</bin>.  If you require a program from another location, you should provide "
6779 "the full path in the first parameter."
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
6784 msgid ""
6785 "Shared libraries and data files required by the program must be available on "
6786 "filesystems which are mounted in the correct places.  It is the caller's "
6787 "responsibility to ensure all filesystems that are needed are mounted at the "
6788 "right locations."
6789 msgstr ""
6790
6791 #. type: =head2
6792 #: ../fish/guestfish-actions.pod:765
6793 msgid "command-lines"
6794 msgstr ""
6795
6796 #. type: verbatim
6797 #: ../fish/guestfish-actions.pod:767
6798 #, no-wrap
6799 msgid ""
6800 " command-lines 'arguments ...'\n"
6801 "\n"
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:769
6806 msgid "This is the same as L</command>, but splits the result into a list of lines."
6807 msgstr ""
6808
6809 #. type: textblock
6810 #: ../fish/guestfish-actions.pod:772
6811 msgid "See also: L</sh-lines>"
6812 msgstr ""
6813
6814 #. type: =head2
6815 #: ../fish/guestfish-actions.pod:777
6816 msgid "compress-device-out"
6817 msgstr ""
6818
6819 #. type: verbatim
6820 #: ../fish/guestfish-actions.pod:779
6821 #, no-wrap
6822 msgid ""
6823 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6824 "\n"
6825 msgstr ""
6826
6827 #. type: textblock
6828 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
6829 msgid ""
6830 "This command compresses C<device> and writes it out to the local file "
6831 "C<zdevice>."
6832 msgstr ""
6833
6834 #. type: textblock
6835 #: ../fish/guestfish-actions.pod:784
6836 msgid ""
6837 "The C<ctype> and optional C<level> parameters have the same meaning as in "
6838 "L</compress-out>."
6839 msgstr ""
6840
6841 #. type: =head2
6842 #: ../fish/guestfish-actions.pod:791
6843 msgid "compress-out"
6844 msgstr ""
6845
6846 #. type: verbatim
6847 #: ../fish/guestfish-actions.pod:793
6848 #, no-wrap
6849 msgid ""
6850 " compress-out ctype file (zfile|-) [level:..]\n"
6851 "\n"
6852 msgstr ""
6853
6854 #. type: textblock
6855 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
6856 msgid ""
6857 "This command compresses C<file> and writes it out to the local file "
6858 "C<zfile>."
6859 msgstr ""
6860
6861 #. type: textblock
6862 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
6863 msgid ""
6864 "The compression program used is controlled by the C<ctype> parameter.  "
6865 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6866 "Some compression types may not be supported by particular builds of "
6867 "libguestfs, in which case you will get an error containing the substring "
6868 "\"not supported\"."
6869 msgstr ""
6870
6871 #. type: textblock
6872 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
6873 msgid ""
6874 "The optional C<level> parameter controls compression level.  The meaning and "
6875 "default for this parameter depends on the compression program being used."
6876 msgstr ""
6877
6878 #. type: =head2
6879 #: ../fish/guestfish-actions.pod:812
6880 msgid "config"
6881 msgstr ""
6882
6883 #. type: verbatim
6884 #: ../fish/guestfish-actions.pod:814
6885 #, no-wrap
6886 msgid ""
6887 " config qemuparam qemuvalue\n"
6888 "\n"
6889 msgstr ""
6890
6891 #. type: textblock
6892 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
6893 msgid ""
6894 "This can be used to add arbitrary qemu command line parameters of the form "
6895 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6896 "setting some parameters which would interfere with parameters that we use."
6897 msgstr ""
6898
6899 #. type: textblock
6900 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
6901 msgid "The first character of C<param> string must be a C<-> (dash)."
6902 msgstr ""
6903
6904 #. type: textblock
6905 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
6906 msgid "C<value> can be NULL."
6907 msgstr ""
6908
6909 #. type: =head2
6910 #: ../fish/guestfish-actions.pod:825
6911 msgid "copy-size"
6912 msgstr ""
6913
6914 #. type: verbatim
6915 #: ../fish/guestfish-actions.pod:827
6916 #, no-wrap
6917 msgid ""
6918 " copy-size src dest size\n"
6919 "\n"
6920 msgstr ""
6921
6922 #. type: textblock
6923 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
6924 msgid ""
6925 "This command copies exactly C<size> bytes from one source device or file "
6926 "C<src> to another destination device or file C<dest>."
6927 msgstr ""
6928
6929 #. type: textblock
6930 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
6931 msgid ""
6932 "Note this will fail if the source is too short or if the destination is not "
6933 "large enough."
6934 msgstr ""
6935
6936 #. type: =head2
6937 #: ../fish/guestfish-actions.pod:835
6938 msgid "cp"
6939 msgstr ""
6940
6941 #. type: verbatim
6942 #: ../fish/guestfish-actions.pod:837
6943 #, no-wrap
6944 msgid ""
6945 " cp src dest\n"
6946 "\n"
6947 msgstr ""
6948
6949 #. type: textblock
6950 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
6951 msgid ""
6952 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6953 "destination filename or destination directory."
6954 msgstr ""
6955
6956 #. type: =head2
6957 #: ../fish/guestfish-actions.pod:842
6958 msgid "cp-a"
6959 msgstr ""
6960
6961 #. type: verbatim
6962 #: ../fish/guestfish-actions.pod:844
6963 #, no-wrap
6964 msgid ""
6965 " cp-a src dest\n"
6966 "\n"
6967 msgstr ""
6968
6969 #. type: textblock
6970 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
6971 msgid ""
6972 "This copies a file or directory from C<src> to C<dest> recursively using the "
6973 "C<cp -a> command."
6974 msgstr ""
6975
6976 #. type: =head2
6977 #: ../fish/guestfish-actions.pod:849
6978 msgid "dd"
6979 msgstr ""
6980
6981 #. type: verbatim
6982 #: ../fish/guestfish-actions.pod:851
6983 #, no-wrap
6984 msgid ""
6985 " dd src dest\n"
6986 "\n"
6987 msgstr ""
6988
6989 #. type: textblock
6990 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
6991 msgid ""
6992 "This command copies from one source device or file C<src> to another "
6993 "destination device or file C<dest>.  Normally you would use this to copy to "
6994 "or from a device or partition, for example to duplicate a filesystem."
6995 msgstr ""
6996
6997 #. type: textblock
6998 #: ../fish/guestfish-actions.pod:858
6999 msgid ""
7000 "If the destination is a device, it must be as large or larger than the "
7001 "source file or device, otherwise the copy will fail.  This command cannot do "
7002 "partial copies (see L</copy-size>)."
7003 msgstr ""
7004
7005 #. type: =head2
7006 #: ../fish/guestfish-actions.pod:862
7007 msgid "df"
7008 msgstr ""
7009
7010 #. type: verbatim
7011 #: ../fish/guestfish-actions.pod:864
7012 #, no-wrap
7013 msgid ""
7014 " df\n"
7015 "\n"
7016 msgstr ""
7017
7018 #. type: textblock
7019 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7020 msgid "This command runs the C<df> command to report disk space used."
7021 msgstr ""
7022
7023 #. type: textblock
7024 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7025 msgid ""
7026 "This command is mostly useful for interactive sessions.  It is I<not> "
7027 "intended that you try to parse the output string.  Use L</statvfs> from "
7028 "programs."
7029 msgstr ""
7030
7031 #. type: =head2
7032 #: ../fish/guestfish-actions.pod:872
7033 msgid "df-h"
7034 msgstr ""
7035
7036 #. type: verbatim
7037 #: ../fish/guestfish-actions.pod:874
7038 #, no-wrap
7039 msgid ""
7040 " df-h\n"
7041 "\n"
7042 msgstr ""
7043
7044 #. type: textblock
7045 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7046 msgid ""
7047 "This command runs the C<df -h> command to report disk space used in "
7048 "human-readable format."
7049 msgstr ""
7050
7051 #. type: =head2
7052 #: ../fish/guestfish-actions.pod:883
7053 msgid "dmesg"
7054 msgstr ""
7055
7056 #. type: verbatim
7057 #: ../fish/guestfish-actions.pod:885
7058 #, no-wrap
7059 msgid ""
7060 " dmesg\n"
7061 "\n"
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7066 msgid ""
7067 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7068 "This is sometimes useful for extended debugging of problems."
7069 msgstr ""
7070
7071 #. type: textblock
7072 #: ../fish/guestfish-actions.pod:891
7073 msgid ""
7074 "Another way to get the same information is to enable verbose messages with "
7075 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7076 "before running the program."
7077 msgstr ""
7078
7079 #. type: =head2
7080 #: ../fish/guestfish-actions.pod:896
7081 msgid "download"
7082 msgstr ""
7083
7084 #. type: verbatim
7085 #: ../fish/guestfish-actions.pod:898
7086 #, no-wrap
7087 msgid ""
7088 " download remotefilename (filename|-)\n"
7089 "\n"
7090 msgstr ""
7091
7092 #. type: textblock
7093 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7094 msgid ""
7095 "Download file C<remotefilename> and save it as C<filename> on the local "
7096 "machine."
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7101 msgid "C<filename> can also be a named pipe."
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:905
7106 msgid "See also L</upload>, L</cat>."
7107 msgstr ""
7108
7109 #. type: =head2
7110 #: ../fish/guestfish-actions.pod:909
7111 msgid "download-offset"
7112 msgstr ""
7113
7114 #. type: verbatim
7115 #: ../fish/guestfish-actions.pod:911
7116 #, no-wrap
7117 msgid ""
7118 " download-offset remotefilename (filename|-) offset size\n"
7119 "\n"
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7124 msgid ""
7125 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7126 "region must be within the file or device)."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:919
7131 msgid ""
7132 "Note that there is no limit on the amount of data that can be downloaded "
7133 "with this call, unlike with L</pread>, and this call always reads the full "
7134 "amount unless an error occurs."
7135 msgstr ""
7136
7137 #. type: textblock
7138 #: ../fish/guestfish-actions.pod:924
7139 msgid "See also L</download>, L</pread>."
7140 msgstr ""
7141
7142 #. type: =head2
7143 #: ../fish/guestfish-actions.pod:928
7144 msgid "drop-caches"
7145 msgstr ""
7146
7147 #. type: verbatim
7148 #: ../fish/guestfish-actions.pod:930
7149 #, no-wrap
7150 msgid ""
7151 " drop-caches whattodrop\n"
7152 "\n"
7153 msgstr ""
7154
7155 #. type: textblock
7156 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7157 msgid ""
7158 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7159 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7160 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7161 msgstr ""
7162
7163 #. type: textblock
7164 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7165 msgid "Setting C<whattodrop> to 3 should drop everything."
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7170 msgid ""
7171 "This automatically calls L<sync(2)> before the operation, so that the "
7172 "maximum guest memory is freed."
7173 msgstr ""
7174
7175 #. type: =head2
7176 #: ../fish/guestfish-actions.pod:942
7177 msgid "du"
7178 msgstr ""
7179
7180 #. type: verbatim
7181 #: ../fish/guestfish-actions.pod:944
7182 #, no-wrap
7183 msgid ""
7184 " du path\n"
7185 "\n"
7186 msgstr ""
7187
7188 #. type: textblock
7189 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7190 msgid ""
7191 "This command runs the C<du -s> command to estimate file space usage for "
7192 "C<path>."
7193 msgstr ""
7194
7195 #. type: textblock
7196 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7197 msgid ""
7198 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7199 "estimate includes the contents of the directory and all subdirectories "
7200 "(recursively)."
7201 msgstr ""
7202
7203 #. type: textblock
7204 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7205 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7206 msgstr ""
7207
7208 #. type: =head2
7209 #: ../fish/guestfish-actions.pod:956
7210 msgid "e2fsck-f"
7211 msgstr ""
7212
7213 #. type: verbatim
7214 #: ../fish/guestfish-actions.pod:958
7215 #, no-wrap
7216 msgid ""
7217 " e2fsck-f device\n"
7218 "\n"
7219 msgstr ""
7220
7221 #. type: textblock
7222 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7223 msgid ""
7224 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7225 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7226 "clean (I<-f>)."
7227 msgstr ""
7228
7229 #. type: textblock
7230 #: ../fish/guestfish-actions.pod:964
7231 msgid ""
7232 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7233 "should use L</fsck>."
7234 msgstr ""
7235
7236 #. type: =head2
7237 #: ../fish/guestfish-actions.pod:967
7238 msgid "echo-daemon"
7239 msgstr ""
7240
7241 #. type: verbatim
7242 #: ../fish/guestfish-actions.pod:969
7243 #, no-wrap
7244 msgid ""
7245 " echo-daemon 'words ...'\n"
7246 "\n"
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7251 msgid ""
7252 "This command concatenates the list of C<words> passed with single spaces "
7253 "between them and returns the resulting string."
7254 msgstr ""
7255
7256 #. type: textblock
7257 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7258 msgid "You can use this command to test the connection through to the daemon."
7259 msgstr ""
7260
7261 #. type: textblock
7262 #: ../fish/guestfish-actions.pod:976
7263 msgid "See also L</ping-daemon>."
7264 msgstr ""
7265
7266 #. type: =head2
7267 #: ../fish/guestfish-actions.pod:978
7268 msgid "egrep"
7269 msgstr ""
7270
7271 #. type: verbatim
7272 #: ../fish/guestfish-actions.pod:980
7273 #, no-wrap
7274 msgid ""
7275 " egrep regex path\n"
7276 "\n"
7277 msgstr ""
7278
7279 #. type: textblock
7280 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
7281 msgid "This calls the external C<egrep> program and returns the matching lines."
7282 msgstr ""
7283
7284 #. type: =head2
7285 #: ../fish/guestfish-actions.pod:988
7286 msgid "egrepi"
7287 msgstr ""
7288
7289 #. type: verbatim
7290 #: ../fish/guestfish-actions.pod:990
7291 #, no-wrap
7292 msgid ""
7293 " egrepi regex path\n"
7294 "\n"
7295 msgstr ""
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
7299 msgid "This calls the external C<egrep -i> program and returns the matching lines."
7300 msgstr ""
7301
7302 #. type: =head2
7303 #: ../fish/guestfish-actions.pod:998
7304 msgid "equal"
7305 msgstr ""
7306
7307 #. type: verbatim
7308 #: ../fish/guestfish-actions.pod:1000
7309 #, no-wrap
7310 msgid ""
7311 " equal file1 file2\n"
7312 "\n"
7313 msgstr ""
7314
7315 #. type: textblock
7316 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
7317 msgid ""
7318 "This compares the two files C<file1> and C<file2> and returns true if their "
7319 "content is exactly equal, or false otherwise."
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
7324 msgid "The external L<cmp(1)> program is used for the comparison."
7325 msgstr ""
7326
7327 #. type: =head2
7328 #: ../fish/guestfish-actions.pod:1007
7329 msgid "exists"
7330 msgstr ""
7331
7332 #. type: verbatim
7333 #: ../fish/guestfish-actions.pod:1009
7334 #, no-wrap
7335 msgid ""
7336 " exists path\n"
7337 "\n"
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
7342 msgid ""
7343 "This returns C<true> if and only if there is a file, directory (or anything) "
7344 "with the given C<path> name."
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:1014
7349 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7350 msgstr ""
7351
7352 #. type: =head2
7353 #: ../fish/guestfish-actions.pod:1016
7354 msgid "fallocate"
7355 msgstr ""
7356
7357 #. type: verbatim
7358 #: ../fish/guestfish-actions.pod:1018
7359 #, no-wrap
7360 msgid ""
7361 " fallocate path len\n"
7362 "\n"
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
7367 msgid ""
7368 "This command preallocates a file (containing zero bytes) named C<path> of "
7369 "size C<len> bytes.  If the file exists already, it is overwritten."
7370 msgstr ""
7371
7372 #. type: textblock
7373 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
7374 msgid ""
7375 "Do not confuse this with the guestfish-specific C<alloc> command which "
7376 "allocates a file in the host and attaches it as a device."
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../fish/guestfish-actions.pod:1028
7381 msgid ""
7382 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7383 "instead."
7384 msgstr ""
7385
7386 #. type: =head2
7387 #: ../fish/guestfish-actions.pod:1035
7388 msgid "fallocate64"
7389 msgstr ""
7390
7391 #. type: verbatim
7392 #: ../fish/guestfish-actions.pod:1037
7393 #, no-wrap
7394 msgid ""
7395 " fallocate64 path len\n"
7396 "\n"
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:1043
7401 msgid ""
7402 "Note that this call allocates disk blocks for the file.  To create a sparse "
7403 "file use L</truncate-size> instead."
7404 msgstr ""
7405
7406 #. type: textblock
7407 #: ../fish/guestfish-actions.pod:1046
7408 msgid ""
7409 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7410 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7411 "maximum size of files created through that call to 1GB."
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
7416 msgid ""
7417 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7418 "commands which create a file in the host and attach it as a device."
7419 msgstr ""
7420
7421 #. type: =head2
7422 #: ../fish/guestfish-actions.pod:1055
7423 msgid "fgrep"
7424 msgstr ""
7425
7426 #. type: verbatim
7427 #: ../fish/guestfish-actions.pod:1057
7428 #, no-wrap
7429 msgid ""
7430 " fgrep pattern path\n"
7431 "\n"
7432 msgstr ""
7433
7434 #. type: textblock
7435 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
7436 msgid "This calls the external C<fgrep> program and returns the matching lines."
7437 msgstr ""
7438
7439 #. type: =head2
7440 #: ../fish/guestfish-actions.pod:1065
7441 msgid "fgrepi"
7442 msgstr ""
7443
7444 #. type: verbatim
7445 #: ../fish/guestfish-actions.pod:1067
7446 #, no-wrap
7447 msgid ""
7448 " fgrepi pattern path\n"
7449 "\n"
7450 msgstr ""
7451
7452 #. type: textblock
7453 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
7454 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
7455 msgstr ""
7456
7457 #. type: =head2
7458 #: ../fish/guestfish-actions.pod:1075
7459 msgid "file"
7460 msgstr ""
7461
7462 #. type: verbatim
7463 #: ../fish/guestfish-actions.pod:1077
7464 #, no-wrap
7465 msgid ""
7466 " file path\n"
7467 "\n"
7468 msgstr ""
7469
7470 #. type: textblock
7471 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
7472 msgid ""
7473 "This call uses the standard L<file(1)> command to determine the type or "
7474 "contents of the file."
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
7479 msgid ""
7480 "This call will also transparently look inside various types of compressed "
7481 "file."
7482 msgstr ""
7483
7484 #. type: textblock
7485 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
7486 msgid ""
7487 "The exact command which runs is C<file -zb path>.  Note in particular that "
7488 "the filename is not prepended to the output (the I<-b> option)."
7489 msgstr ""
7490
7491 #. type: textblock
7492 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
7493 msgid ""
7494 "The output depends on the output of the underlying L<file(1)> command and it "
7495 "can change in future in ways beyond our control.  In other words, the output "
7496 "is not guaranteed by the ABI."
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../fish/guestfish-actions.pod:1093
7501 msgid ""
7502 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7503 "(etc), L</is-zero>."
7504 msgstr ""
7505
7506 #. type: =head2
7507 #: ../fish/guestfish-actions.pod:1096
7508 msgid "file-architecture"
7509 msgstr ""
7510
7511 #. type: verbatim
7512 #: ../fish/guestfish-actions.pod:1098
7513 #, no-wrap
7514 msgid ""
7515 " file-architecture filename\n"
7516 "\n"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
7521 msgid ""
7522 "This detects the architecture of the binary C<filename>, and returns it if "
7523 "known."
7524 msgstr ""
7525
7526 #. type: textblock
7527 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
7528 msgid "Currently defined architectures are:"
7529 msgstr ""
7530
7531 #. type: =item
7532 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
7533 msgid "\"i386\""
7534 msgstr ""
7535
7536 #. type: textblock
7537 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
7538 msgid ""
7539 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7540 "irrespective of the precise processor requirements of the binary."
7541 msgstr ""
7542
7543 #. type: =item
7544 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
7545 msgid "\"x86_64\""
7546 msgstr ""
7547
7548 #. type: textblock
7549 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
7550 msgid "64 bit x86-64."
7551 msgstr ""
7552
7553 #. type: =item
7554 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
7555 msgid "\"sparc\""
7556 msgstr ""
7557
7558 #. type: textblock
7559 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
7560 msgid "32 bit SPARC."
7561 msgstr ""
7562
7563 #. type: =item
7564 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
7565 msgid "\"sparc64\""
7566 msgstr ""
7567
7568 #. type: textblock
7569 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
7570 msgid "64 bit SPARC V9 and above."
7571 msgstr ""
7572
7573 #. type: =item
7574 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
7575 msgid "\"ia64\""
7576 msgstr ""
7577
7578 #. type: textblock
7579 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
7580 msgid "Intel Itanium."
7581 msgstr ""
7582
7583 #. type: =item
7584 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
7585 msgid "\"ppc\""
7586 msgstr ""
7587
7588 #. type: textblock
7589 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
7590 msgid "32 bit Power PC."
7591 msgstr ""
7592
7593 #. type: =item
7594 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
7595 msgid "\"ppc64\""
7596 msgstr ""
7597
7598 #. type: textblock
7599 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
7600 msgid "64 bit Power PC."
7601 msgstr ""
7602
7603 #. type: textblock
7604 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
7605 msgid "Libguestfs may return other architecture strings in future."
7606 msgstr ""
7607
7608 #. type: textblock
7609 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
7610 msgid "The function works on at least the following types of files:"
7611 msgstr ""
7612
7613 #. type: textblock
7614 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
7615 msgid "many types of Un*x and Linux binary"
7616 msgstr ""
7617
7618 #. type: textblock
7619 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
7620 msgid "many types of Un*x and Linux shared library"
7621 msgstr ""
7622
7623 #. type: textblock
7624 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
7625 msgid "Windows Win32 and Win64 binaries"
7626 msgstr ""
7627
7628 #. type: textblock
7629 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
7630 msgid "Windows Win32 and Win64 DLLs"
7631 msgstr ""
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
7635 msgid "Win32 binaries and DLLs return C<i386>."
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
7640 msgid "Win64 binaries and DLLs return C<x86_64>."
7641 msgstr ""
7642
7643 #. type: textblock
7644 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
7645 msgid "Linux kernel modules"
7646 msgstr ""
7647
7648 #. type: textblock
7649 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
7650 msgid "Linux new-style initrd images"
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
7655 msgid "some non-x86 Linux vmlinuz kernels"
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
7660 msgid "What it can't do currently:"
7661 msgstr ""
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
7665 msgid "static libraries (libfoo.a)"
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
7670 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7671 msgstr ""
7672
7673 #. type: textblock
7674 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
7675 msgid "x86 Linux vmlinuz kernels"
7676 msgstr ""
7677
7678 #. type: textblock
7679 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
7680 msgid ""
7681 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7682 "compressed code, and are horribly hard to unpack.  If you want to find the "
7683 "architecture of a kernel, use the architecture of the associated initrd or "
7684 "kernel module(s) instead."
7685 msgstr ""
7686
7687 #. type: =head2
7688 #: ../fish/guestfish-actions.pod:1201
7689 msgid "filesize"
7690 msgstr ""
7691
7692 #. type: verbatim
7693 #: ../fish/guestfish-actions.pod:1203
7694 #, no-wrap
7695 msgid ""
7696 " filesize file\n"
7697 "\n"
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
7702 msgid "This command returns the size of C<file> in bytes."
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:1207
7707 msgid ""
7708 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
7709 "L</is-file> etc.  To get the size of block devices, use "
7710 "L</blockdev-getsize64>."
7711 msgstr ""
7712
7713 #. type: =head2
7714 #: ../fish/guestfish-actions.pod:1211
7715 msgid "fill"
7716 msgstr ""
7717
7718 #. type: verbatim
7719 #: ../fish/guestfish-actions.pod:1213
7720 #, no-wrap
7721 msgid ""
7722 " fill c len path\n"
7723 "\n"
7724 msgstr ""
7725
7726 #. type: textblock
7727 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
7728 msgid ""
7729 "This command creates a new file called C<path>.  The initial content of the "
7730 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
7731 "C<[0..255]>."
7732 msgstr ""
7733
7734 #. type: textblock
7735 #: ../fish/guestfish-actions.pod:1219
7736 msgid ""
7737 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7738 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7739 "L</fill-pattern>."
7740 msgstr ""
7741
7742 #. type: =head2
7743 #: ../fish/guestfish-actions.pod:1224
7744 msgid "fill-pattern"
7745 msgstr ""
7746
7747 #. type: verbatim
7748 #: ../fish/guestfish-actions.pod:1226
7749 #, no-wrap
7750 msgid ""
7751 " fill-pattern pattern len path\n"
7752 "\n"
7753 msgstr ""
7754
7755 #. type: textblock
7756 #: ../fish/guestfish-actions.pod:1228
7757 msgid ""
7758 "This function is like L</fill> except that it creates a new file of length "
7759 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7760 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7761 "bytes."
7762 msgstr ""
7763
7764 #. type: =head2
7765 #: ../fish/guestfish-actions.pod:1233
7766 msgid "find"
7767 msgstr ""
7768
7769 #. type: verbatim
7770 #: ../fish/guestfish-actions.pod:1235
7771 #, no-wrap
7772 msgid ""
7773 " find directory\n"
7774 "\n"
7775 msgstr ""
7776
7777 #. type: textblock
7778 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
7779 msgid ""
7780 "This command lists out all files and directories, recursively, starting at "
7781 "C<directory>.  It is essentially equivalent to running the shell command "
7782 "C<find directory -print> but some post-processing happens on the output, "
7783 "described below."
7784 msgstr ""
7785
7786 #. type: textblock
7787 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
7788 msgid ""
7789 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7790 "structure was:"
7791 msgstr ""
7792
7793 #. type: verbatim
7794 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
7795 #, no-wrap
7796 msgid ""
7797 " /tmp/a\n"
7798 " /tmp/b\n"
7799 " /tmp/c/d\n"
7800 "\n"
7801 msgstr ""
7802
7803 #. type: textblock
7804 #: ../fish/guestfish-actions.pod:1249
7805 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7806 msgstr ""
7807
7808 #. type: verbatim
7809 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
7810 #, no-wrap
7811 msgid ""
7812 " a\n"
7813 " b\n"
7814 " c\n"
7815 " c/d\n"
7816 "\n"
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
7821 msgid "If C<directory> is not a directory, then this command returns an error."
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
7826 msgid "The returned list is sorted."
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:1262
7831 msgid "See also L</find0>."
7832 msgstr ""
7833
7834 #. type: =head2
7835 #: ../fish/guestfish-actions.pod:1267
7836 msgid "find0"
7837 msgstr ""
7838
7839 #. type: verbatim
7840 #: ../fish/guestfish-actions.pod:1269
7841 #, no-wrap
7842 msgid ""
7843 " find0 directory (files|-)\n"
7844 "\n"
7845 msgstr ""
7846
7847 #. type: textblock
7848 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
7849 msgid ""
7850 "This command lists out all files and directories, recursively, starting at "
7851 "C<directory>, placing the resulting list in the external file called "
7852 "C<files>."
7853 msgstr ""
7854
7855 #. type: textblock
7856 #: ../fish/guestfish-actions.pod:1275
7857 msgid "This command works the same way as L</find> with the following exceptions:"
7858 msgstr ""
7859
7860 #. type: textblock
7861 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
7862 msgid "The resulting list is written to an external file."
7863 msgstr ""
7864
7865 #. type: textblock
7866 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
7867 msgid ""
7868 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7869 "L<find(1)> option I<-print0>."
7870 msgstr ""
7871
7872 #. type: textblock
7873 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
7874 msgid "This command is not limited in the number of names that it can return."
7875 msgstr ""
7876
7877 #. type: textblock
7878 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
7879 msgid "The result list is not sorted."
7880 msgstr ""
7881
7882 #. type: =head2
7883 #: ../fish/guestfish-actions.pod:1302
7884 msgid "findfs-label"
7885 msgstr ""
7886
7887 #. type: verbatim
7888 #: ../fish/guestfish-actions.pod:1304
7889 #, no-wrap
7890 msgid ""
7891 " findfs-label label\n"
7892 "\n"
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
7897 msgid ""
7898 "This command searches the filesystems and returns the one which has the "
7899 "given label.  An error is returned if no such filesystem can be found."
7900 msgstr ""
7901
7902 #. type: textblock
7903 #: ../fish/guestfish-actions.pod:1310
7904 msgid "To find the label of a filesystem, use L</vfs-label>."
7905 msgstr ""
7906
7907 #. type: =head2
7908 #: ../fish/guestfish-actions.pod:1312
7909 msgid "findfs-uuid"
7910 msgstr ""
7911
7912 #. type: verbatim
7913 #: ../fish/guestfish-actions.pod:1314
7914 #, no-wrap
7915 msgid ""
7916 " findfs-uuid uuid\n"
7917 "\n"
7918 msgstr ""
7919
7920 #. type: textblock
7921 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
7922 msgid ""
7923 "This command searches the filesystems and returns the one which has the "
7924 "given UUID.  An error is returned if no such filesystem can be found."
7925 msgstr ""
7926
7927 #. type: textblock
7928 #: ../fish/guestfish-actions.pod:1320
7929 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7930 msgstr ""
7931
7932 #. type: =head2
7933 #: ../fish/guestfish-actions.pod:1322
7934 msgid "fsck"
7935 msgstr ""
7936
7937 #. type: verbatim
7938 #: ../fish/guestfish-actions.pod:1324
7939 #, no-wrap
7940 msgid ""
7941 " fsck fstype device\n"
7942 "\n"
7943 msgstr ""
7944
7945 #. type: textblock
7946 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
7947 msgid ""
7948 "This runs the filesystem checker (fsck) on C<device> which should have "
7949 "filesystem type C<fstype>."
7950 msgstr ""
7951
7952 #. type: textblock
7953 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
7954 msgid ""
7955 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7956 "codes from C<fsck>."
7957 msgstr ""
7958
7959 #. type: textblock
7960 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
7961 msgid "Multiple status codes can be summed together."
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
7966 msgid ""
7967 "A non-zero return code can mean \"success\", for example if errors have been "
7968 "corrected on the filesystem."
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
7973 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7974 msgstr ""
7975
7976 #. type: textblock
7977 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
7978 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7979 msgstr ""
7980
7981 #. type: =head2
7982 #: ../fish/guestfish-actions.pod:1354
7983 msgid "get-append"
7984 msgstr ""
7985
7986 #. type: verbatim
7987 #: ../fish/guestfish-actions.pod:1356
7988 #, no-wrap
7989 msgid ""
7990 " get-append\n"
7991 "\n"
7992 msgstr ""
7993
7994 #. type: textblock
7995 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
7996 msgid ""
7997 "Return the additional kernel options which are added to the guest kernel "
7998 "command line."
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8003 msgid "If C<NULL> then no options are added."
8004 msgstr ""
8005
8006 #. type: =head2
8007 #: ../fish/guestfish-actions.pod:1363
8008 msgid "get-attach-method"
8009 msgstr ""
8010
8011 #. type: verbatim
8012 #: ../fish/guestfish-actions.pod:1365
8013 #, no-wrap
8014 msgid ""
8015 " get-attach-method\n"
8016 "\n"
8017 msgstr ""
8018
8019 #. type: textblock
8020 #: ../fish/guestfish-actions.pod:1367
8021 msgid "Return the current attach method.  See L</set-attach-method>."
8022 msgstr ""
8023
8024 #. type: =head2
8025 #: ../fish/guestfish-actions.pod:1369
8026 msgid "get-autosync"
8027 msgstr ""
8028
8029 #. type: verbatim
8030 #: ../fish/guestfish-actions.pod:1371
8031 #, no-wrap
8032 msgid ""
8033 " get-autosync\n"
8034 "\n"
8035 msgstr ""
8036
8037 #. type: textblock
8038 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8039 msgid "Get the autosync flag."
8040 msgstr ""
8041
8042 #. type: =head2
8043 #: ../fish/guestfish-actions.pod:1375
8044 msgid "get-direct"
8045 msgstr ""
8046
8047 #. type: verbatim
8048 #: ../fish/guestfish-actions.pod:1377
8049 #, no-wrap
8050 msgid ""
8051 " get-direct\n"
8052 "\n"
8053 msgstr ""
8054
8055 #. type: textblock
8056 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8057 msgid "Return the direct appliance mode flag."
8058 msgstr ""
8059
8060 #. type: =head2
8061 #: ../fish/guestfish-actions.pod:1381
8062 msgid "get-e2label"
8063 msgstr ""
8064
8065 #. type: verbatim
8066 #: ../fish/guestfish-actions.pod:1383
8067 #, no-wrap
8068 msgid ""
8069 " get-e2label device\n"
8070 "\n"
8071 msgstr ""
8072
8073 #. type: textblock
8074 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8075 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8076 msgstr ""
8077
8078 #. type: textblock
8079 #: ../fish/guestfish-actions.pod:1388
8080 msgid ""
8081 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8082 "instead."
8083 msgstr ""
8084
8085 #. type: =head2
8086 #: ../fish/guestfish-actions.pod:1395
8087 msgid "get-e2uuid"
8088 msgstr ""
8089
8090 #. type: verbatim
8091 #: ../fish/guestfish-actions.pod:1397
8092 #, no-wrap
8093 msgid ""
8094 " get-e2uuid device\n"
8095 "\n"
8096 msgstr ""
8097
8098 #. type: textblock
8099 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8100 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8101 msgstr ""
8102
8103 #. type: textblock
8104 #: ../fish/guestfish-actions.pod:1402
8105 msgid ""
8106 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8107 "instead."
8108 msgstr ""
8109
8110 #. type: =head2
8111 #: ../fish/guestfish-actions.pod:1409
8112 msgid "get-memsize"
8113 msgstr ""
8114
8115 #. type: verbatim
8116 #: ../fish/guestfish-actions.pod:1411
8117 #, no-wrap
8118 msgid ""
8119 " get-memsize\n"
8120 "\n"
8121 msgstr ""
8122
8123 #. type: textblock
8124 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8125 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
8126 msgstr ""
8127
8128 #. type: textblock
8129 #: ../fish/guestfish-actions.pod:1416
8130 msgid ""
8131 "If L</set-memsize> was not called on this handle, and if "
8132 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8133 "value for memsize."
8134 msgstr ""
8135
8136 #. type: textblock
8137 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477 ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345 ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261 ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8138 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8139 msgstr ""
8140
8141 #. type: =head2
8142 #: ../fish/guestfish-actions.pod:1423
8143 msgid "get-network"
8144 msgstr ""
8145
8146 #. type: verbatim
8147 #: ../fish/guestfish-actions.pod:1425
8148 #, no-wrap
8149 msgid ""
8150 " get-network\n"
8151 "\n"
8152 msgstr ""
8153
8154 #. type: textblock
8155 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8156 msgid "This returns the enable network flag."
8157 msgstr ""
8158
8159 #. type: =head2
8160 #: ../fish/guestfish-actions.pod:1429
8161 msgid "get-path"
8162 msgstr ""
8163
8164 #. type: verbatim
8165 #: ../fish/guestfish-actions.pod:1431
8166 #, no-wrap
8167 msgid ""
8168 " get-path\n"
8169 "\n"
8170 msgstr ""
8171
8172 #. type: textblock
8173 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8174 msgid "Return the current search path."
8175 msgstr ""
8176
8177 #. type: textblock
8178 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8179 msgid ""
8180 "This is always non-NULL.  If it wasn't set already, then this will return "
8181 "the default path."
8182 msgstr ""
8183
8184 #. type: =head2
8185 #: ../fish/guestfish-actions.pod:1438
8186 msgid "get-pgroup"
8187 msgstr ""
8188
8189 #. type: verbatim
8190 #: ../fish/guestfish-actions.pod:1440
8191 #, no-wrap
8192 msgid ""
8193 " get-pgroup\n"
8194 "\n"
8195 msgstr ""
8196
8197 #. type: textblock
8198 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8199 msgid "This returns the process group flag."
8200 msgstr ""
8201
8202 #. type: =head2
8203 #: ../fish/guestfish-actions.pod:1444
8204 msgid "get-pid"
8205 msgstr ""
8206
8207 #. type: =head2
8208 #: ../fish/guestfish-actions.pod:1446
8209 msgid "pid"
8210 msgstr ""
8211
8212 #. type: verbatim
8213 #: ../fish/guestfish-actions.pod:1448
8214 #, no-wrap
8215 msgid ""
8216 " get-pid\n"
8217 "\n"
8218 msgstr ""
8219
8220 #. type: textblock
8221 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
8222 msgid ""
8223 "Return the process ID of the qemu subprocess.  If there is no qemu "
8224 "subprocess, then this will return an error."
8225 msgstr ""
8226
8227 #. type: textblock
8228 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
8229 msgid "This is an internal call used for debugging and testing."
8230 msgstr ""
8231
8232 #. type: =head2
8233 #: ../fish/guestfish-actions.pod:1455
8234 msgid "get-qemu"
8235 msgstr ""
8236
8237 #. type: verbatim
8238 #: ../fish/guestfish-actions.pod:1457
8239 #, no-wrap
8240 msgid ""
8241 " get-qemu\n"
8242 "\n"
8243 msgstr ""
8244
8245 #. type: textblock
8246 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
8247 msgid "Return the current qemu binary."
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
8252 msgid ""
8253 "This is always non-NULL.  If it wasn't set already, then this will return "
8254 "the default qemu binary name."
8255 msgstr ""
8256
8257 #. type: =head2
8258 #: ../fish/guestfish-actions.pod:1464
8259 msgid "get-recovery-proc"
8260 msgstr ""
8261
8262 #. type: verbatim
8263 #: ../fish/guestfish-actions.pod:1466
8264 #, no-wrap
8265 msgid ""
8266 " get-recovery-proc\n"
8267 "\n"
8268 msgstr ""
8269
8270 #. type: textblock
8271 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
8272 msgid "Return the recovery process enabled flag."
8273 msgstr ""
8274
8275 #. type: =head2
8276 #: ../fish/guestfish-actions.pod:1470
8277 msgid "get-selinux"
8278 msgstr ""
8279
8280 #. type: verbatim
8281 #: ../fish/guestfish-actions.pod:1472
8282 #, no-wrap
8283 msgid ""
8284 " get-selinux\n"
8285 "\n"
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:1474
8290 msgid ""
8291 "This returns the current setting of the selinux flag which is passed to the "
8292 "appliance at boot time.  See L</set-selinux>."
8293 msgstr ""
8294
8295 #. type: =head2
8296 #: ../fish/guestfish-actions.pod:1480
8297 msgid "get-smp"
8298 msgstr ""
8299
8300 #. type: verbatim
8301 #: ../fish/guestfish-actions.pod:1482
8302 #, no-wrap
8303 msgid ""
8304 " get-smp\n"
8305 "\n"
8306 msgstr ""
8307
8308 #. type: textblock
8309 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
8310 msgid "This returns the number of virtual CPUs assigned to the appliance."
8311 msgstr ""
8312
8313 #. type: =head2
8314 #: ../fish/guestfish-actions.pod:1486
8315 msgid "get-state"
8316 msgstr ""
8317
8318 #. type: verbatim
8319 #: ../fish/guestfish-actions.pod:1488
8320 #, no-wrap
8321 msgid ""
8322 " get-state\n"
8323 "\n"
8324 msgstr ""
8325
8326 #. type: textblock
8327 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
8328 msgid ""
8329 "This returns the current state as an opaque integer.  This is only useful "
8330 "for printing debug and internal error messages."
8331 msgstr ""
8332
8333 #. type: textblock
8334 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508 ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635 ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
8335 msgid "For more information on states, see L<guestfs(3)>."
8336 msgstr ""
8337
8338 #. type: =head2
8339 #: ../fish/guestfish-actions.pod:1495
8340 msgid "get-trace"
8341 msgstr ""
8342
8343 #. type: verbatim
8344 #: ../fish/guestfish-actions.pod:1497
8345 #, no-wrap
8346 msgid ""
8347 " get-trace\n"
8348 "\n"
8349 msgstr ""
8350
8351 #. type: textblock
8352 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
8353 msgid "Return the command trace flag."
8354 msgstr ""
8355
8356 #. type: =head2
8357 #: ../fish/guestfish-actions.pod:1501
8358 msgid "get-umask"
8359 msgstr ""
8360
8361 #. type: verbatim
8362 #: ../fish/guestfish-actions.pod:1503
8363 #, no-wrap
8364 msgid ""
8365 " get-umask\n"
8366 "\n"
8367 msgstr ""
8368
8369 #. type: textblock
8370 #: ../fish/guestfish-actions.pod:1505
8371 msgid ""
8372 "Return the current umask.  By default the umask is C<022> unless it has been "
8373 "set by calling L</umask>."
8374 msgstr ""
8375
8376 #. type: =head2
8377 #: ../fish/guestfish-actions.pod:1508
8378 msgid "get-verbose"
8379 msgstr ""
8380
8381 #. type: verbatim
8382 #: ../fish/guestfish-actions.pod:1510
8383 #, no-wrap
8384 msgid ""
8385 " get-verbose\n"
8386 "\n"
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
8391 msgid "This returns the verbose messages flag."
8392 msgstr ""
8393
8394 #. type: =head2
8395 #: ../fish/guestfish-actions.pod:1514
8396 msgid "getcon"
8397 msgstr ""
8398
8399 #. type: verbatim
8400 #: ../fish/guestfish-actions.pod:1516
8401 #, no-wrap
8402 msgid ""
8403 " getcon\n"
8404 "\n"
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
8409 msgid "This gets the SELinux security context of the daemon."
8410 msgstr ""
8411
8412 #. type: textblock
8413 #: ../fish/guestfish-actions.pod:1520
8414 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8415 msgstr ""
8416
8417 #. type: =head2
8418 #: ../fish/guestfish-actions.pod:1523
8419 msgid "getxattr"
8420 msgstr ""
8421
8422 #. type: verbatim
8423 #: ../fish/guestfish-actions.pod:1525
8424 #, no-wrap
8425 msgid ""
8426 " getxattr path name\n"
8427 "\n"
8428 msgstr ""
8429
8430 #. type: textblock
8431 #: ../fish/guestfish-actions.pod:1527
8432 msgid ""
8433 "Get a single extended attribute from file C<path> named C<name>.  This call "
8434 "follows symlinks.  If you want to lookup an extended attribute for the "
8435 "symlink itself, use L</lgetxattr>."
8436 msgstr ""
8437
8438 #. type: textblock
8439 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
8440 msgid ""
8441 "Normally it is better to get all extended attributes from a file in one go "
8442 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8443 "buggy and do not provide a way to list out attributes.  For these "
8444 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8445 "attributes you want in advance and call this function."
8446 msgstr ""
8447
8448 #. type: textblock
8449 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
8450 msgid ""
8451 "Extended attribute values are blobs of binary data.  If there is no extended "
8452 "attribute named C<name>, this returns an error."
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:1541
8457 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8458 msgstr ""
8459
8460 #. type: =head2
8461 #: ../fish/guestfish-actions.pod:1543
8462 msgid "getxattrs"
8463 msgstr ""
8464
8465 #. type: verbatim
8466 #: ../fish/guestfish-actions.pod:1545
8467 #, no-wrap
8468 msgid ""
8469 " getxattrs path\n"
8470 "\n"
8471 msgstr ""
8472
8473 #. type: textblock
8474 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
8475 msgid "This call lists the extended attributes of the file or directory C<path>."
8476 msgstr ""
8477
8478 #. type: textblock
8479 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
8480 msgid ""
8481 "At the system call level, this is a combination of the L<listxattr(2)> and "
8482 "L<getxattr(2)> calls."
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../fish/guestfish-actions.pod:1553
8487 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8488 msgstr ""
8489
8490 #. type: =head2
8491 #: ../fish/guestfish-actions.pod:1555
8492 msgid "glob-expand"
8493 msgstr ""
8494
8495 #. type: verbatim
8496 #: ../fish/guestfish-actions.pod:1557
8497 #, no-wrap
8498 msgid ""
8499 " glob-expand pattern\n"
8500 "\n"
8501 msgstr ""
8502
8503 #. type: textblock
8504 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
8505 msgid ""
8506 "This command searches for all the pathnames matching C<pattern> according to "
8507 "the wildcard expansion rules used by the shell."
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
8512 msgid "If no paths match, then this returns an empty list (note: not an error)."
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
8517 msgid ""
8518 "It is just a wrapper around the C L<glob(3)> function with flags "
8519 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
8520 msgstr ""
8521
8522 #. type: =head2
8523 #: ../fish/guestfish-actions.pod:1570
8524 msgid "grep"
8525 msgstr ""
8526
8527 #. type: verbatim
8528 #: ../fish/guestfish-actions.pod:1572
8529 #, no-wrap
8530 msgid ""
8531 " grep regex path\n"
8532 "\n"
8533 msgstr ""
8534
8535 #. type: textblock
8536 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
8537 msgid "This calls the external C<grep> program and returns the matching lines."
8538 msgstr ""
8539
8540 #. type: =head2
8541 #: ../fish/guestfish-actions.pod:1580
8542 msgid "grepi"
8543 msgstr ""
8544
8545 #. type: verbatim
8546 #: ../fish/guestfish-actions.pod:1582
8547 #, no-wrap
8548 msgid ""
8549 " grepi regex path\n"
8550 "\n"
8551 msgstr ""
8552
8553 #. type: textblock
8554 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
8555 msgid "This calls the external C<grep -i> program and returns the matching lines."
8556 msgstr ""
8557
8558 #. type: =head2
8559 #: ../fish/guestfish-actions.pod:1590
8560 msgid "grub-install"
8561 msgstr ""
8562
8563 #. type: verbatim
8564 #: ../fish/guestfish-actions.pod:1592
8565 #, no-wrap
8566 msgid ""
8567 " grub-install root device\n"
8568 "\n"
8569 msgstr ""
8570
8571 #. type: textblock
8572 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
8573 msgid ""
8574 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8575 "with the root directory being C<root>."
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
8580 msgid ""
8581 "There is currently no way in the API to install grub2, which is used by most "
8582 "modern Linux guests.  It is possible to run the grub2 command from the "
8583 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8584 msgstr ""
8585
8586 #. type: textblock
8587 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
8588 msgid ""
8589 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8590 "compatible with itself, so this only works in rather narrow circumstances.  "
8591 "Careful testing with each guest version is advisable."
8592 msgstr ""
8593
8594 #. type: textblock
8595 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
8596 msgid ""
8597 "If grub-install reports the error \"No suitable drive was found in the "
8598 "generated device map.\" it may be that you need to create a "
8599 "C</boot/grub/device.map> file first that contains the mapping between grub "
8600 "device names and Linux device names.  It is usually sufficient to create a "
8601 "file containing:"
8602 msgstr ""
8603
8604 #. type: verbatim
8605 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
8606 #, no-wrap
8607 msgid ""
8608 " (hd0) /dev/vda\n"
8609 "\n"
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
8614 msgid "replacing C</dev/vda> with the name of the installation device."
8615 msgstr ""
8616
8617 #. type: =head2
8618 #: ../fish/guestfish-actions.pod:1630
8619 msgid "head"
8620 msgstr ""
8621
8622 #. type: verbatim
8623 #: ../fish/guestfish-actions.pod:1632
8624 #, no-wrap
8625 msgid ""
8626 " head path\n"
8627 "\n"
8628 msgstr ""
8629
8630 #. type: textblock
8631 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
8632 msgid ""
8633 "This command returns up to the first 10 lines of a file as a list of "
8634 "strings."
8635 msgstr ""
8636
8637 #. type: =head2
8638 #: ../fish/guestfish-actions.pod:1640
8639 msgid "head-n"
8640 msgstr ""
8641
8642 #. type: verbatim
8643 #: ../fish/guestfish-actions.pod:1642
8644 #, no-wrap
8645 msgid ""
8646 " head-n nrlines path\n"
8647 "\n"
8648 msgstr ""
8649
8650 #. type: textblock
8651 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
8652 msgid ""
8653 "If the parameter C<nrlines> is a positive number, this returns the first "
8654 "C<nrlines> lines of the file C<path>."
8655 msgstr ""
8656
8657 #. type: textblock
8658 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
8659 msgid ""
8660 "If the parameter C<nrlines> is a negative number, this returns lines from "
8661 "the file C<path>, excluding the last C<nrlines> lines."
8662 msgstr ""
8663
8664 #. type: textblock
8665 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
8666 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8667 msgstr ""
8668
8669 #. type: =head2
8670 #: ../fish/guestfish-actions.pod:1655
8671 msgid "hexdump"
8672 msgstr ""
8673
8674 #. type: verbatim
8675 #: ../fish/guestfish-actions.pod:1657
8676 #, no-wrap
8677 msgid ""
8678 " hexdump path\n"
8679 "\n"
8680 msgstr ""
8681
8682 #. type: textblock
8683 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
8684 msgid ""
8685 "This runs C<hexdump -C> on the given C<path>.  The result is the "
8686 "human-readable, canonical hex dump of the file."
8687 msgstr ""
8688
8689 #. type: =head2
8690 #: ../fish/guestfish-actions.pod:1665
8691 msgid "initrd-cat"
8692 msgstr ""
8693
8694 #. type: verbatim
8695 #: ../fish/guestfish-actions.pod:1667
8696 #, no-wrap
8697 msgid ""
8698 " initrd-cat initrdpath filename\n"
8699 "\n"
8700 msgstr ""
8701
8702 #. type: textblock
8703 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
8704 msgid ""
8705 "This command unpacks the file C<filename> from the initrd file called "
8706 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8707 "character."
8708 msgstr ""
8709
8710 #. type: textblock
8711 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
8712 msgid ""
8713 "For example, in guestfish you could use the following command to examine the "
8714 "boot script (usually called C</init>)  contained in a Linux initrd or "
8715 "initramfs image:"
8716 msgstr ""
8717
8718 #. type: verbatim
8719 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
8720 #, no-wrap
8721 msgid ""
8722 " initrd-cat /boot/initrd-<version>.img init\n"
8723 "\n"
8724 msgstr ""
8725
8726 #. type: textblock
8727 #: ../fish/guestfish-actions.pod:1679
8728 msgid "See also L</initrd-list>."
8729 msgstr ""
8730
8731 #. type: =head2
8732 #: ../fish/guestfish-actions.pod:1684
8733 msgid "initrd-list"
8734 msgstr ""
8735
8736 #. type: verbatim
8737 #: ../fish/guestfish-actions.pod:1686
8738 #, no-wrap
8739 msgid ""
8740 " initrd-list path\n"
8741 "\n"
8742 msgstr ""
8743
8744 #. type: textblock
8745 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
8746 msgid "This command lists out files contained in an initrd."
8747 msgstr ""
8748
8749 #. type: textblock
8750 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
8751 msgid ""
8752 "The files are listed without any initial C</> character.  The files are "
8753 "listed in the order they appear (not necessarily alphabetical).  Directory "
8754 "names are listed as separate items."
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
8759 msgid ""
8760 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8761 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8762 "files)."
8763 msgstr ""
8764
8765 #. type: =head2
8766 #: ../fish/guestfish-actions.pod:1698
8767 msgid "inotify-add-watch"
8768 msgstr ""
8769
8770 #. type: verbatim
8771 #: ../fish/guestfish-actions.pod:1700
8772 #, no-wrap
8773 msgid ""
8774 " inotify-add-watch path mask\n"
8775 "\n"
8776 msgstr ""
8777
8778 #. type: textblock
8779 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
8780 msgid "Watch C<path> for the events listed in C<mask>."
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
8785 msgid ""
8786 "Note that if C<path> is a directory then events within that directory are "
8787 "watched, but this does I<not> happen recursively (in subdirectories)."
8788 msgstr ""
8789
8790 #. type: textblock
8791 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
8792 msgid ""
8793 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8794 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8795 msgstr ""
8796
8797 #. type: =head2
8798 #: ../fish/guestfish-actions.pod:1712
8799 msgid "inotify-close"
8800 msgstr ""
8801
8802 #. type: verbatim
8803 #: ../fish/guestfish-actions.pod:1714
8804 #, no-wrap
8805 msgid ""
8806 " inotify-close\n"
8807 "\n"
8808 msgstr ""
8809
8810 #. type: textblock
8811 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
8812 msgid ""
8813 "This closes the inotify handle which was previously opened by inotify_init.  "
8814 "It removes all watches, throws away any pending events, and deallocates all "
8815 "resources."
8816 msgstr ""
8817
8818 #. type: =head2
8819 #: ../fish/guestfish-actions.pod:1720
8820 msgid "inotify-files"
8821 msgstr ""
8822
8823 #. type: verbatim
8824 #: ../fish/guestfish-actions.pod:1722
8825 #, no-wrap
8826 msgid ""
8827 " inotify-files\n"
8828 "\n"
8829 msgstr ""
8830
8831 #. type: textblock
8832 #: ../fish/guestfish-actions.pod:1724
8833 msgid ""
8834 "This function is a helpful wrapper around L</inotify-read> which just "
8835 "returns a list of pathnames of objects that were touched.  The returned "
8836 "pathnames are sorted and deduplicated."
8837 msgstr ""
8838
8839 #. type: =head2
8840 #: ../fish/guestfish-actions.pod:1728
8841 msgid "inotify-init"
8842 msgstr ""
8843
8844 #. type: verbatim
8845 #: ../fish/guestfish-actions.pod:1730
8846 #, no-wrap
8847 msgid ""
8848 " inotify-init maxevents\n"
8849 "\n"
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
8854 msgid ""
8855 "This command creates a new inotify handle.  The inotify subsystem can be "
8856 "used to notify events which happen to objects in the guest filesystem."
8857 msgstr ""
8858
8859 #. type: textblock
8860 #: ../fish/guestfish-actions.pod:1736
8861 msgid ""
8862 "C<maxevents> is the maximum number of events which will be queued up between "
8863 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8864 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8865 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8866 "but records the fact that it threw them away by setting a flag "
8867 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8868 msgstr ""
8869
8870 #. type: textblock
8871 #: ../fish/guestfish-actions.pod:1746
8872 msgid ""
8873 "Before any events are generated, you have to add some watches to the "
8874 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8875 "L</inotify-watch-all>."
8876 msgstr ""
8877
8878 #. type: textblock
8879 #: ../fish/guestfish-actions.pod:1752
8880 msgid ""
8881 "Queued up events should be read periodically by calling L</inotify-read> (or "
8882 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8883 "If you don't read the events out often enough then you risk the internal "
8884 "queue overflowing."
8885 msgstr ""
8886
8887 #. type: textblock
8888 #: ../fish/guestfish-actions.pod:1759
8889 msgid ""
8890 "The handle should be closed after use by calling L</inotify-close>.  This "
8891 "also removes any watches automatically."
8892 msgstr ""
8893
8894 #. type: textblock
8895 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
8896 msgid ""
8897 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8898 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8899 "that there is one global inotify handle per libguestfs instance."
8900 msgstr ""
8901
8902 #. type: =head2
8903 #: ../fish/guestfish-actions.pod:1768
8904 msgid "inotify-read"
8905 msgstr ""
8906
8907 #. type: verbatim
8908 #: ../fish/guestfish-actions.pod:1770
8909 #, no-wrap
8910 msgid ""
8911 " inotify-read\n"
8912 "\n"
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
8917 msgid ""
8918 "Return the complete queue of events that have happened since the previous "
8919 "read call."
8920 msgstr ""
8921
8922 #. type: textblock
8923 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
8924 msgid "If no events have happened, this returns an empty list."
8925 msgstr ""
8926
8927 #. type: textblock
8928 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
8929 msgid ""
8930 "I<Note>: In order to make sure that all events have been read, you must call "
8931 "this function repeatedly until it returns an empty list.  The reason is that "
8932 "the call will read events up to the maximum appliance-to-host message size "
8933 "and leave remaining events in the queue."
8934 msgstr ""
8935
8936 #. type: =head2
8937 #: ../fish/guestfish-actions.pod:1783
8938 msgid "inotify-rm-watch"
8939 msgstr ""
8940
8941 #. type: verbatim
8942 #: ../fish/guestfish-actions.pod:1785
8943 #, no-wrap
8944 msgid ""
8945 " inotify-rm-watch wd\n"
8946 "\n"
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../fish/guestfish-actions.pod:1787
8951 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8952 msgstr ""
8953
8954 #. type: =head2
8955 #: ../fish/guestfish-actions.pod:1790
8956 msgid "inspect-get-arch"
8957 msgstr ""
8958
8959 #. type: verbatim
8960 #: ../fish/guestfish-actions.pod:1792
8961 #, no-wrap
8962 msgid ""
8963 " inspect-get-arch root\n"
8964 "\n"
8965 msgstr ""
8966
8967 #. type: textblock
8968 #: ../fish/guestfish-actions.pod:1794
8969 msgid ""
8970 "This returns the architecture of the inspected operating system.  The "
8971 "possible return values are listed under L</file-architecture>."
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
8976 msgid ""
8977 "If the architecture could not be determined, then the string C<unknown> is "
8978 "returned."
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987 ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133 ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168 ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244 ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270 ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290 ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959 ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359 ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396 ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
8983 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8984 msgstr ""
8985
8986 #. type: =head2
8987 #: ../fish/guestfish-actions.pod:1803
8988 msgid "inspect-get-distro"
8989 msgstr ""
8990
8991 #. type: verbatim
8992 #: ../fish/guestfish-actions.pod:1805
8993 #, no-wrap
8994 msgid ""
8995 " inspect-get-distro root\n"
8996 "\n"
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9001 msgid "This returns the distro (distribution) of the inspected operating system."
9002 msgstr ""
9003
9004 #. type: textblock
9005 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9006 msgid "Currently defined distros are:"
9007 msgstr ""
9008
9009 #. type: =item
9010 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9011 msgid "\"archlinux\""
9012 msgstr ""
9013
9014 #. type: textblock
9015 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9016 msgid "Arch Linux."
9017 msgstr ""
9018
9019 #. type: =item
9020 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9021 msgid "\"centos\""
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9026 msgid "CentOS."
9027 msgstr ""
9028
9029 #. type: =item
9030 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9031 msgid "\"debian\""
9032 msgstr ""
9033
9034 #. type: textblock
9035 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9036 msgid "Debian."
9037 msgstr ""
9038
9039 #. type: =item
9040 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9041 msgid "\"fedora\""
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9046 msgid "Fedora."
9047 msgstr ""
9048
9049 #. type: =item
9050 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9051 msgid "\"gentoo\""
9052 msgstr ""
9053
9054 #. type: textblock
9055 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9056 msgid "Gentoo."
9057 msgstr ""
9058
9059 #. type: =item
9060 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9061 msgid "\"linuxmint\""
9062 msgstr ""
9063
9064 #. type: textblock
9065 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9066 msgid "Linux Mint."
9067 msgstr ""
9068
9069 #. type: =item
9070 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9071 msgid "\"mageia\""
9072 msgstr ""
9073
9074 #. type: textblock
9075 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9076 msgid "Mageia."
9077 msgstr ""
9078
9079 #. type: =item
9080 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9081 msgid "\"mandriva\""
9082 msgstr ""
9083
9084 #. type: textblock
9085 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9086 msgid "Mandriva."
9087 msgstr ""
9088
9089 #. type: =item
9090 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9091 msgid "\"meego\""
9092 msgstr ""
9093
9094 #. type: textblock
9095 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9096 msgid "MeeGo."
9097 msgstr ""
9098
9099 #. type: =item
9100 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9101 msgid "\"opensuse\""
9102 msgstr ""
9103
9104 #. type: textblock
9105 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9106 msgid "OpenSUSE."
9107 msgstr ""
9108
9109 #. type: =item
9110 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9111 msgid "\"pardus\""
9112 msgstr ""
9113
9114 #. type: textblock
9115 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9116 msgid "Pardus."
9117 msgstr ""
9118
9119 #. type: =item
9120 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9121 msgid "\"redhat-based\""
9122 msgstr ""
9123
9124 #. type: textblock
9125 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9126 msgid "Some Red Hat-derived distro."
9127 msgstr ""
9128
9129 #. type: =item
9130 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
9131 msgid "\"rhel\""
9132 msgstr ""
9133
9134 #. type: textblock
9135 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
9136 msgid "Red Hat Enterprise Linux."
9137 msgstr ""
9138
9139 #. type: =item
9140 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
9141 msgid "\"scientificlinux\""
9142 msgstr ""
9143
9144 #. type: textblock
9145 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
9146 msgid "Scientific Linux."
9147 msgstr ""
9148
9149 #. type: =item
9150 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
9151 msgid "\"slackware\""
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
9156 msgid "Slackware."
9157 msgstr ""
9158
9159 #. type: =item
9160 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
9161 msgid "\"ttylinux\""
9162 msgstr ""
9163
9164 #. type: textblock
9165 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
9166 msgid "ttylinux."
9167 msgstr ""
9168
9169 #. type: =item
9170 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
9171 msgid "\"ubuntu\""
9172 msgstr ""
9173
9174 #. type: textblock
9175 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
9176 msgid "Ubuntu."
9177 msgstr ""
9178
9179 #. type: =item
9180 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966 ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
9181 msgid "\"unknown\""
9182 msgstr ""
9183
9184 #. type: textblock
9185 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
9186 msgid "The distro could not be determined."
9187 msgstr ""
9188
9189 #. type: =item
9190 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
9191 msgid "\"windows\""
9192 msgstr ""
9193
9194 #. type: textblock
9195 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
9196 msgid ""
9197 "Windows does not have distributions.  This string is returned if the OS type "
9198 "is Windows."
9199 msgstr ""
9200
9201 #. type: textblock
9202 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972 ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
9203 msgid ""
9204 "Future versions of libguestfs may return other strings here.  The caller "
9205 "should be prepared to handle any string."
9206 msgstr ""
9207
9208 #. type: =head2
9209 #: ../fish/guestfish-actions.pod:1898
9210 msgid "inspect-get-drive-mappings"
9211 msgstr ""
9212
9213 #. type: verbatim
9214 #: ../fish/guestfish-actions.pod:1900
9215 #, no-wrap
9216 msgid ""
9217 " inspect-get-drive-mappings root\n"
9218 "\n"
9219 msgstr ""
9220
9221 #. type: textblock
9222 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
9223 msgid ""
9224 "This call is useful for Windows which uses a primitive system of assigning "
9225 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9226 "Windows Registry to find out how disks/partitions are mapped to drive "
9227 "letters, and returns a hash table as in the example below:"
9228 msgstr ""
9229
9230 #. type: verbatim
9231 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
9232 #, no-wrap
9233 msgid ""
9234 " C      =>     /dev/vda2\n"
9235 " E      =>     /dev/vdb1\n"
9236 " F      =>     /dev/vdc1\n"
9237 "\n"
9238 msgstr ""
9239
9240 #. type: textblock
9241 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
9242 msgid ""
9243 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9244 "and just contains the drive letter, without the customary colon separator "
9245 "character."
9246 msgstr ""
9247
9248 #. type: textblock
9249 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
9250 msgid ""
9251 "In future we may support other operating systems that also used drive "
9252 "letters, but the keys for those might not be case insensitive and might be "
9253 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9254 "C<h1> etc."
9255 msgstr ""
9256
9257 #. type: textblock
9258 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
9259 msgid ""
9260 "For Windows guests, currently only hard drive mappings are returned.  "
9261 "Removable disks (eg. DVD-ROMs) are ignored."
9262 msgstr ""
9263
9264 #. type: textblock
9265 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
9266 msgid ""
9267 "For guests that do not use drive mappings, or if the drive mappings could "
9268 "not be determined, this returns an empty hash table."
9269 msgstr ""
9270
9271 #. type: textblock
9272 #: ../fish/guestfish-actions.pod:1927
9273 msgid ""
9274 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9275 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
9276 msgstr ""
9277
9278 #. type: =head2
9279 #: ../fish/guestfish-actions.pod:1931
9280 msgid "inspect-get-filesystems"
9281 msgstr ""
9282
9283 #. type: verbatim
9284 #: ../fish/guestfish-actions.pod:1933
9285 #, no-wrap
9286 msgid ""
9287 " inspect-get-filesystems root\n"
9288 "\n"
9289 msgstr ""
9290
9291 #. type: textblock
9292 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
9293 msgid ""
9294 "This returns a list of all the filesystems that we think are associated with "
9295 "this operating system.  This includes the root filesystem, other ordinary "
9296 "filesystems, and non-mounted devices like swap partitions."
9297 msgstr ""
9298
9299 #. type: textblock
9300 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
9301 msgid ""
9302 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9303 "to be shared between operating systems."
9304 msgstr ""
9305
9306 #. type: textblock
9307 #: ../fish/guestfish-actions.pod:1943
9308 msgid ""
9309 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9310 "L</inspect-get-mountpoints>."
9311 msgstr ""
9312
9313 #. type: =head2
9314 #: ../fish/guestfish-actions.pod:1946
9315 msgid "inspect-get-format"
9316 msgstr ""
9317
9318 #. type: verbatim
9319 #: ../fish/guestfish-actions.pod:1948
9320 #, no-wrap
9321 msgid ""
9322 " inspect-get-format root\n"
9323 "\n"
9324 msgstr ""
9325
9326 #. type: textblock
9327 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
9328 msgid ""
9329 "This returns the format of the inspected operating system.  You can use it "
9330 "to detect install images, live CDs and similar."
9331 msgstr ""
9332
9333 #. type: textblock
9334 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
9335 msgid "Currently defined formats are:"
9336 msgstr ""
9337
9338 #. type: =item
9339 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
9340 msgid "\"installed\""
9341 msgstr ""
9342
9343 #. type: textblock
9344 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
9345 msgid "This is an installed operating system."
9346 msgstr ""
9347
9348 #. type: =item
9349 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
9350 msgid "\"installer\""
9351 msgstr ""
9352
9353 #. type: textblock
9354 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
9355 msgid ""
9356 "The disk image being inspected is not an installed operating system, but a "
9357 "I<bootable> install disk, live CD, or similar."
9358 msgstr ""
9359
9360 #. type: textblock
9361 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
9362 msgid "The format of this disk image is not known."
9363 msgstr ""
9364
9365 #. type: =head2
9366 #: ../fish/guestfish-actions.pod:1977
9367 msgid "inspect-get-hostname"
9368 msgstr ""
9369
9370 #. type: verbatim
9371 #: ../fish/guestfish-actions.pod:1979
9372 #, no-wrap
9373 msgid ""
9374 " inspect-get-hostname root\n"
9375 "\n"
9376 msgstr ""
9377
9378 #. type: textblock
9379 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
9380 msgid ""
9381 "This function returns the hostname of the operating system as found by "
9382 "inspection of the guest's configuration files."
9383 msgstr ""
9384
9385 #. type: textblock
9386 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
9387 msgid ""
9388 "If the hostname could not be determined, then the string C<unknown> is "
9389 "returned."
9390 msgstr ""
9391
9392 #. type: =head2
9393 #: ../fish/guestfish-actions.pod:1989
9394 msgid "inspect-get-icon"
9395 msgstr ""
9396
9397 #. type: verbatim
9398 #: ../fish/guestfish-actions.pod:1991
9399 #, no-wrap
9400 msgid ""
9401 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9402 "\n"
9403 msgstr ""
9404
9405 #. type: textblock
9406 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
9407 msgid ""
9408 "This function returns an icon corresponding to the inspected operating "
9409 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9410 "to PNG if necessary)."
9411 msgstr ""
9412
9413 #. type: textblock
9414 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
9415 msgid ""
9416 "If it was not possible to get an icon this function returns a zero-length "
9417 "(non-NULL) buffer.  I<Callers must check for this case>."
9418 msgstr ""
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
9422 msgid ""
9423 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9424 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9425 "this file will be returned.  You can disable favicons by passing the "
9426 "optional C<favicon> boolean as false (default is true)."
9427 msgstr ""
9428
9429 #. type: textblock
9430 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
9431 msgid ""
9432 "If finding the favicon fails, then we look in other places in the guest for "
9433 "a suitable icon."
9434 msgstr ""
9435
9436 #. type: textblock
9437 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
9438 msgid ""
9439 "If the optional C<highquality> boolean is true then only high quality icons "
9440 "are returned, which means only icons of high resolution with an alpha "
9441 "channel.  The default (false) is to return any icon we can, even if it is of "
9442 "substandard quality."
9443 msgstr ""
9444
9445 #. type: textblock
9446 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
9447 msgid ""
9448 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9449 "before you call this, since it needs to read information from the guest "
9450 "filesystem during the call."
9451 msgstr ""
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
9455 msgid ""
9456 "B<Security:> The icon data comes from the untrusted guest, and should be "
9457 "treated with caution.  PNG files have been known to contain exploits.  "
9458 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9459 "trying to process or display the icon."
9460 msgstr ""
9461
9462 #. type: textblock
9463 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
9464 msgid ""
9465 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9466 "tries to return the largest, highest quality icon available.  The "
9467 "application must scale the icon to the required size."
9468 msgstr ""
9469
9470 #. type: textblock
9471 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
9472 msgid ""
9473 "Extracting icons from Windows guests requires the external C<wrestool> "
9474 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9475 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9476 "installed separately."
9477 msgstr ""
9478
9479 #. type: textblock
9480 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
9481 msgid ""
9482 "Operating system icons are usually trademarks.  Seek legal advice before "
9483 "using trademarks in applications."
9484 msgstr ""
9485
9486 #. type: =head2
9487 #: ../fish/guestfish-actions.pod:2055
9488 msgid "inspect-get-major-version"
9489 msgstr ""
9490
9491 #. type: verbatim
9492 #: ../fish/guestfish-actions.pod:2057
9493 #, no-wrap
9494 msgid ""
9495 " inspect-get-major-version root\n"
9496 "\n"
9497 msgstr ""
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
9501 msgid "This returns the major version number of the inspected operating system."
9502 msgstr ""
9503
9504 #. type: textblock
9505 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
9506 msgid ""
9507 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9508 "popular public names used by the operating system.  Notably the operating "
9509 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9510 "1).  You can find out the real versions corresponding to releases of Windows "
9511 "by consulting Wikipedia or MSDN."
9512 msgstr ""
9513
9514 #. type: textblock
9515 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080 ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
9516 msgid "If the version could not be determined, then C<0> is returned."
9517 msgstr ""
9518
9519 #. type: =head2
9520 #: ../fish/guestfish-actions.pod:2073
9521 msgid "inspect-get-minor-version"
9522 msgstr ""
9523
9524 #. type: verbatim
9525 #: ../fish/guestfish-actions.pod:2075
9526 #, no-wrap
9527 msgid ""
9528 " inspect-get-minor-version root\n"
9529 "\n"
9530 msgstr ""
9531
9532 #. type: textblock
9533 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
9534 msgid "This returns the minor version number of the inspected operating system."
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:2082
9539 msgid ""
9540 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9541 "L</inspect-get-major-version>."
9542 msgstr ""
9543
9544 #. type: =head2
9545 #: ../fish/guestfish-actions.pod:2085
9546 msgid "inspect-get-mountpoints"
9547 msgstr ""
9548
9549 #. type: verbatim
9550 #: ../fish/guestfish-actions.pod:2087
9551 #, no-wrap
9552 msgid ""
9553 " inspect-get-mountpoints root\n"
9554 "\n"
9555 msgstr ""
9556
9557 #. type: textblock
9558 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
9559 msgid ""
9560 "This returns a hash of where we think the filesystems associated with this "
9561 "operating system should be mounted.  Callers should note that this is at "
9562 "best an educated guess made by reading configuration files such as "
9563 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
9564 "are non-existent or not mountable and callers should be prepared to handle "
9565 "or ignore failures if they try to mount them."
9566 msgstr ""
9567
9568 #. type: textblock
9569 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
9570 msgid ""
9571 "Each element in the returned hashtable has a key which is the path of the "
9572 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9573 "mounted there (eg. C</dev/sda1>)."
9574 msgstr ""
9575
9576 #. type: textblock
9577 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
9578 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
9579 msgstr ""
9580
9581 #. type: textblock
9582 #: ../fish/guestfish-actions.pod:2106
9583 msgid ""
9584 "For operating systems like Windows which still use drive letters, this call "
9585 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9586 "information about the mapping of drive letters to partitions, see "
9587 "L</inspect-get-drive-mappings>."
9588 msgstr ""
9589
9590 #. type: textblock
9591 #: ../fish/guestfish-actions.pod:2112
9592 msgid ""
9593 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9594 "L</inspect-get-filesystems>."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../fish/guestfish-actions.pod:2115
9599 msgid "inspect-get-package-format"
9600 msgstr ""
9601
9602 #. type: verbatim
9603 #: ../fish/guestfish-actions.pod:2117
9604 #, no-wrap
9605 msgid ""
9606 " inspect-get-package-format root\n"
9607 "\n"
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:2119
9612 msgid ""
9613 "This function and L</inspect-get-package-management> return the package "
9614 "format and package management tool used by the inspected operating system.  "
9615 "For example for Fedora these functions would return C<rpm> (package format) "
9616 "and C<yum> (package management)."
9617 msgstr ""
9618
9619 #. type: textblock
9620 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
9621 msgid ""
9622 "This returns the string C<unknown> if we could not determine the package "
9623 "format I<or> if the operating system does not have a real packaging system "
9624 "(eg. Windows)."
9625 msgstr ""
9626
9627 #. type: textblock
9628 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
9629 msgid ""
9630 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
9631 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
9632 msgstr ""
9633
9634 #. type: =head2
9635 #: ../fish/guestfish-actions.pod:2135
9636 msgid "inspect-get-package-management"
9637 msgstr ""
9638
9639 #. type: verbatim
9640 #: ../fish/guestfish-actions.pod:2137
9641 #, no-wrap
9642 msgid ""
9643 " inspect-get-package-management root\n"
9644 "\n"
9645 msgstr ""
9646
9647 #. type: textblock
9648 #: ../fish/guestfish-actions.pod:2139
9649 msgid ""
9650 "L</inspect-get-package-format> and this function return the package format "
9651 "and package management tool used by the inspected operating system.  For "
9652 "example for Fedora these functions would return C<rpm> (package format) and "
9653 "C<yum> (package management)."
9654 msgstr ""
9655
9656 #. type: textblock
9657 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
9658 msgid ""
9659 "This returns the string C<unknown> if we could not determine the package "
9660 "management tool I<or> if the operating system does not have a real packaging "
9661 "system (eg. Windows)."
9662 msgstr ""
9663
9664 #. type: textblock
9665 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
9666 msgid ""
9667 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9668 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
9669 "versions of libguestfs may return other strings."
9670 msgstr ""
9671
9672 #. type: =head2
9673 #: ../fish/guestfish-actions.pod:2156
9674 msgid "inspect-get-product-name"
9675 msgstr ""
9676
9677 #. type: verbatim
9678 #: ../fish/guestfish-actions.pod:2158
9679 #, no-wrap
9680 msgid ""
9681 " inspect-get-product-name root\n"
9682 "\n"
9683 msgstr ""
9684
9685 #. type: textblock
9686 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
9687 msgid ""
9688 "This returns the product name of the inspected operating system.  The "
9689 "product name is generally some freeform string which can be displayed to the "
9690 "user, but should not be parsed by programs."
9691 msgstr ""
9692
9693 #. type: textblock
9694 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
9695 msgid ""
9696 "If the product name could not be determined, then the string C<unknown> is "
9697 "returned."
9698 msgstr ""
9699
9700 #. type: =head2
9701 #: ../fish/guestfish-actions.pod:2170
9702 msgid "inspect-get-product-variant"
9703 msgstr ""
9704
9705 #. type: verbatim
9706 #: ../fish/guestfish-actions.pod:2172
9707 #, no-wrap
9708 msgid ""
9709 " inspect-get-product-variant root\n"
9710 "\n"
9711 msgstr ""
9712
9713 #. type: textblock
9714 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
9715 msgid "This returns the product variant of the inspected operating system."
9716 msgstr ""
9717
9718 #. type: textblock
9719 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
9720 msgid ""
9721 "For Windows guests, this returns the contents of the Registry key "
9722 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
9723 "which is usually a string such as C<Client> or C<Server> (other values are "
9724 "possible).  This can be used to distinguish consumer and enterprise versions "
9725 "of Windows that have the same version number (for example, Windows 7 and "
9726 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9727 "the latter is C<Server>)."
9728 msgstr ""
9729
9730 #. type: textblock
9731 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
9732 msgid ""
9733 "For enterprise Linux guests, in future we intend this to return the product "
9734 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9735 "implemented at present."
9736 msgstr ""
9737
9738 #. type: textblock
9739 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
9740 msgid ""
9741 "If the product variant could not be determined, then the string C<unknown> "
9742 "is returned."
9743 msgstr ""
9744
9745 #. type: textblock
9746 #: ../fish/guestfish-actions.pod:2193
9747 msgid ""
9748 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9749 "L</inspect-get-product-name>, L</inspect-get-major-version>."
9750 msgstr ""
9751
9752 #. type: =head2
9753 #: ../fish/guestfish-actions.pod:2197
9754 msgid "inspect-get-roots"
9755 msgstr ""
9756
9757 #. type: verbatim
9758 #: ../fish/guestfish-actions.pod:2199
9759 #, no-wrap
9760 msgid ""
9761 " inspect-get-roots\n"
9762 "\n"
9763 msgstr ""
9764
9765 #. type: textblock
9766 #: ../fish/guestfish-actions.pod:2201
9767 msgid ""
9768 "This function is a convenient way to get the list of root devices, as "
9769 "returned from a previous call to L</inspect-os>, but without redoing the "
9770 "whole inspection process."
9771 msgstr ""
9772
9773 #. type: textblock
9774 #: ../fish/guestfish-actions.pod:2205
9775 msgid ""
9776 "This returns an empty list if either no root devices were found or the "
9777 "caller has not called L</inspect-os>."
9778 msgstr ""
9779
9780 #. type: =head2
9781 #: ../fish/guestfish-actions.pod:2210
9782 msgid "inspect-get-type"
9783 msgstr ""
9784
9785 #. type: verbatim
9786 #: ../fish/guestfish-actions.pod:2212
9787 #, no-wrap
9788 msgid ""
9789 " inspect-get-type root\n"
9790 "\n"
9791 msgstr ""
9792
9793 #. type: textblock
9794 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
9795 msgid ""
9796 "This returns the type of the inspected operating system.  Currently defined "
9797 "types are:"
9798 msgstr ""
9799
9800 #. type: =item
9801 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
9802 msgid "\"linux\""
9803 msgstr ""
9804
9805 #. type: textblock
9806 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
9807 msgid "Any Linux-based operating system."
9808 msgstr ""
9809
9810 #. type: textblock
9811 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
9812 msgid "Any Microsoft Windows operating system."
9813 msgstr ""
9814
9815 #. type: =item
9816 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
9817 msgid "\"freebsd\""
9818 msgstr ""
9819
9820 #. type: textblock
9821 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
9822 msgid "FreeBSD."
9823 msgstr ""
9824
9825 #. type: =item
9826 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
9827 msgid "\"netbsd\""
9828 msgstr ""
9829
9830 #. type: textblock
9831 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
9832 msgid "NetBSD."
9833 msgstr ""
9834
9835 #. type: textblock
9836 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
9837 msgid "The operating system type could not be determined."
9838 msgstr ""
9839
9840 #. type: =head2
9841 #: ../fish/guestfish-actions.pod:2246
9842 msgid "inspect-get-windows-current-control-set"
9843 msgstr ""
9844
9845 #. type: verbatim
9846 #: ../fish/guestfish-actions.pod:2248
9847 #, no-wrap
9848 msgid ""
9849 " inspect-get-windows-current-control-set root\n"
9850 "\n"
9851 msgstr ""
9852
9853 #. type: textblock
9854 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
9855 msgid ""
9856 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9857 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9858 msgstr ""
9859
9860 #. type: textblock
9861 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
9862 msgid ""
9863 "This call assumes that the guest is Windows and that the Registry could be "
9864 "examined by inspection.  If this is not the case then an error is returned."
9865 msgstr ""
9866
9867 #. type: =head2
9868 #: ../fish/guestfish-actions.pod:2259
9869 msgid "inspect-get-windows-systemroot"
9870 msgstr ""
9871
9872 #. type: verbatim
9873 #: ../fish/guestfish-actions.pod:2261
9874 #, no-wrap
9875 msgid ""
9876 " inspect-get-windows-systemroot root\n"
9877 "\n"
9878 msgstr ""
9879
9880 #. type: textblock
9881 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
9882 msgid ""
9883 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9884 "is a directory path such as C</WINDOWS>."
9885 msgstr ""
9886
9887 #. type: textblock
9888 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
9889 msgid ""
9890 "This call assumes that the guest is Windows and that the systemroot could be "
9891 "determined by inspection.  If this is not the case then an error is "
9892 "returned."
9893 msgstr ""
9894
9895 #. type: =head2
9896 #: ../fish/guestfish-actions.pod:2272
9897 msgid "inspect-is-live"
9898 msgstr ""
9899
9900 #. type: verbatim
9901 #: ../fish/guestfish-actions.pod:2274
9902 #, no-wrap
9903 msgid ""
9904 " inspect-is-live root\n"
9905 "\n"
9906 msgstr ""
9907
9908 #. type: textblock
9909 #: ../fish/guestfish-actions.pod:2276
9910 msgid ""
9911 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9912 "then this returns true if a live image was detected on the disk."
9913 msgstr ""
9914
9915 #. type: =head2
9916 #: ../fish/guestfish-actions.pod:2282
9917 msgid "inspect-is-multipart"
9918 msgstr ""
9919
9920 #. type: verbatim
9921 #: ../fish/guestfish-actions.pod:2284
9922 #, no-wrap
9923 msgid ""
9924 " inspect-is-multipart root\n"
9925 "\n"
9926 msgstr ""
9927
9928 #. type: textblock
9929 #: ../fish/guestfish-actions.pod:2286
9930 msgid ""
9931 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9932 "then this returns true if the disk is part of a set."
9933 msgstr ""
9934
9935 #. type: =head2
9936 #: ../fish/guestfish-actions.pod:2292
9937 msgid "inspect-is-netinst"
9938 msgstr ""
9939
9940 #. type: verbatim
9941 #: ../fish/guestfish-actions.pod:2294
9942 #, no-wrap
9943 msgid ""
9944 " inspect-is-netinst root\n"
9945 "\n"
9946 msgstr ""
9947
9948 #. type: textblock
9949 #: ../fish/guestfish-actions.pod:2296
9950 msgid ""
9951 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9952 "then this returns true if the disk is a network installer, ie. not a "
9953 "self-contained install CD but one which is likely to require network access "
9954 "to complete the install."
9955 msgstr ""
9956
9957 #. type: =head2
9958 #: ../fish/guestfish-actions.pod:2304
9959 msgid "inspect-list-applications"
9960 msgstr ""
9961
9962 #. type: verbatim
9963 #: ../fish/guestfish-actions.pod:2306
9964 #, no-wrap
9965 msgid ""
9966 " inspect-list-applications root\n"
9967 "\n"
9968 msgstr ""
9969
9970 #. type: textblock
9971 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
9972 msgid "Return the list of applications installed in the operating system."
9973 msgstr ""
9974
9975 #. type: textblock
9976 #: ../fish/guestfish-actions.pod:2310
9977 msgid ""
9978 "I<Note:> This call works differently from other parts of the inspection "
9979 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9980 "then mount up the disks, before calling this.  Listing applications is a "
9981 "significantly more difficult operation which requires access to the full "
9982 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9983 "are just returning data cached in the libguestfs handle, this call actually "
9984 "reads parts of the mounted filesystems during the call."
9985 msgstr ""
9986
9987 #. type: textblock
9988 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
9989 msgid ""
9990 "This returns an empty list if the inspection code was not able to determine "
9991 "the list of applications."
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
9996 msgid "The application structure contains the following fields:"
9997 msgstr ""
9998
9999 #. type: =item
10000 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10001 msgid "C<app_name>"
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10006 msgid ""
10007 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10008 "guests, this is the package name."
10009 msgstr ""
10010
10011 #. type: =item
10012 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10013 msgid "C<app_display_name>"
10014 msgstr ""
10015
10016 #. type: textblock
10017 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10018 msgid ""
10019 "The display name of the application, sometimes localized to the install "
10020 "language of the guest operating system."
10021 msgstr ""
10022
10023 #. type: textblock
10024 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10025 msgid ""
10026 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10027 "to display something can use C<app_name> instead."
10028 msgstr ""
10029
10030 #. type: =item
10031 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10032 msgid "C<app_epoch>"
10033 msgstr ""
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10037 msgid ""
10038 "For package managers which use epochs, this contains the epoch of the "
10039 "package (an integer).  If unavailable, this is returned as C<0>."
10040 msgstr ""
10041
10042 #. type: =item
10043 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10044 msgid "C<app_version>"
10045 msgstr ""
10046
10047 #. type: textblock
10048 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10049 msgid ""
10050 "The version string of the application or package.  If unavailable this is "
10051 "returned as an empty string C<\"\">."
10052 msgstr ""
10053
10054 #. type: =item
10055 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10056 msgid "C<app_release>"
10057 msgstr ""
10058
10059 #. type: textblock
10060 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10061 msgid ""
10062 "The release string of the application or package, for package managers that "
10063 "use this.  If unavailable this is returned as an empty string C<\"\">."
10064 msgstr ""
10065
10066 #. type: =item
10067 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10068 msgid "C<app_install_path>"
10069 msgstr ""
10070
10071 #. type: textblock
10072 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10073 msgid ""
10074 "The installation path of the application (on operating systems such as "
10075 "Windows which use installation paths).  This path is in the format used by "
10076 "the guest operating system, it is not a libguestfs path."
10077 msgstr ""
10078
10079 #. type: textblock
10080 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10081 msgid "If unavailable this is returned as an empty string C<\"\">."
10082 msgstr ""
10083
10084 #. type: =item
10085 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10086 msgid "C<app_trans_path>"
10087 msgstr ""
10088
10089 #. type: textblock
10090 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
10091 msgid ""
10092 "The install path translated into a libguestfs path.  If unavailable this is "
10093 "returned as an empty string C<\"\">."
10094 msgstr ""
10095
10096 #. type: =item
10097 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
10098 msgid "C<app_publisher>"
10099 msgstr ""
10100
10101 #. type: textblock
10102 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
10103 msgid ""
10104 "The name of the publisher of the application, for package managers that use "
10105 "this.  If unavailable this is returned as an empty string C<\"\">."
10106 msgstr ""
10107
10108 #. type: =item
10109 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
10110 msgid "C<app_url>"
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
10115 msgid ""
10116 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10117 "returned as an empty string C<\"\">."
10118 msgstr ""
10119
10120 #. type: =item
10121 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
10122 msgid "C<app_source_package>"
10123 msgstr ""
10124
10125 #. type: textblock
10126 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
10127 msgid ""
10128 "For packaging systems which support this, the name of the source package.  "
10129 "If unavailable this is returned as an empty string C<\"\">."
10130 msgstr ""
10131
10132 #. type: =item
10133 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
10134 msgid "C<app_summary>"
10135 msgstr ""
10136
10137 #. type: textblock
10138 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
10139 msgid ""
10140 "A short (usually one line) description of the application or package.  If "
10141 "unavailable this is returned as an empty string C<\"\">."
10142 msgstr ""
10143
10144 #. type: =item
10145 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
10146 msgid "C<app_description>"
10147 msgstr ""
10148
10149 #. type: textblock
10150 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
10151 msgid ""
10152 "A longer description of the application or package.  If unavailable this is "
10153 "returned as an empty string C<\"\">."
10154 msgstr ""
10155
10156 #. type: =head2
10157 #: ../fish/guestfish-actions.pod:2400
10158 msgid "inspect-os"
10159 msgstr ""
10160
10161 #. type: verbatim
10162 #: ../fish/guestfish-actions.pod:2402
10163 #, no-wrap
10164 msgid ""
10165 " inspect-os\n"
10166 "\n"
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
10171 msgid ""
10172 "This function uses other libguestfs functions and certain heuristics to "
10173 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10174 "for operating systems."
10175 msgstr ""
10176
10177 #. type: textblock
10178 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
10179 msgid "The list returned is empty if no operating systems were found."
10180 msgstr ""
10181
10182 #. type: textblock
10183 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
10184 msgid ""
10185 "If one operating system was found, then this returns a list with a single "
10186 "element, which is the name of the root filesystem of this operating system.  "
10187 "It is also possible for this function to return a list containing more than "
10188 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10189 "element being the root filesystem of one of the operating systems."
10190 msgstr ""
10191
10192 #. type: textblock
10193 #: ../fish/guestfish-actions.pod:2417
10194 msgid ""
10195 "You can pass the root string(s) returned to other L</inspect-get-*> "
10196 "functions in order to query further information about each operating system, "
10197 "such as the name and version."
10198 msgstr ""
10199
10200 #. type: textblock
10201 #: ../fish/guestfish-actions.pod:2422
10202 msgid ""
10203 "This function uses other libguestfs features such as L</mount-ro> and "
10204 "L</umount-all> in order to mount and unmount filesystems and look at the "
10205 "contents.  This should be called with no disks currently mounted.  The "
10206 "function may also use Augeas, so any existing Augeas handle will be closed."
10207 msgstr ""
10208
10209 #. type: textblock
10210 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
10211 msgid ""
10212 "This function cannot decrypt encrypted disks.  The caller must do that first "
10213 "(supplying the necessary keys) if the disk is encrypted."
10214 msgstr ""
10215
10216 #. type: textblock
10217 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632 ../fish/guestfish-actions.pod:2691
10218 msgid "See also L</list-filesystems>."
10219 msgstr ""
10220
10221 #. type: =head2
10222 #: ../fish/guestfish-actions.pod:2436
10223 msgid "is-blockdev"
10224 msgstr ""
10225
10226 #. type: verbatim
10227 #: ../fish/guestfish-actions.pod:2438
10228 #, no-wrap
10229 msgid ""
10230 " is-blockdev path\n"
10231 "\n"
10232 msgstr ""
10233
10234 #. type: textblock
10235 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
10236 msgid ""
10237 "This returns C<true> if and only if there is a block device with the given "
10238 "C<path> name."
10239 msgstr ""
10240
10241 #. type: textblock
10242 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461 ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489 ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533 ../fish/guestfish-actions.pod:2542
10243 msgid "See also L</stat>."
10244 msgstr ""
10245
10246 #. type: =head2
10247 #: ../fish/guestfish-actions.pod:2445
10248 msgid "is-busy"
10249 msgstr ""
10250
10251 #. type: verbatim
10252 #: ../fish/guestfish-actions.pod:2447
10253 #, no-wrap
10254 msgid ""
10255 " is-busy\n"
10256 "\n"
10257 msgstr ""
10258
10259 #. type: textblock
10260 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
10261 msgid ""
10262 "This returns true iff this handle is busy processing a command (in the "
10263 "C<BUSY> state)."
10264 msgstr ""
10265
10266 #. type: =head2
10267 #: ../fish/guestfish-actions.pod:2454
10268 msgid "is-chardev"
10269 msgstr ""
10270
10271 #. type: verbatim
10272 #: ../fish/guestfish-actions.pod:2456
10273 #, no-wrap
10274 msgid ""
10275 " is-chardev path\n"
10276 "\n"
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
10281 msgid ""
10282 "This returns C<true> if and only if there is a character device with the "
10283 "given C<path> name."
10284 msgstr ""
10285
10286 #. type: =head2
10287 #: ../fish/guestfish-actions.pod:2463
10288 msgid "is-config"
10289 msgstr ""
10290
10291 #. type: verbatim
10292 #: ../fish/guestfish-actions.pod:2465
10293 #, no-wrap
10294 msgid ""
10295 " is-config\n"
10296 "\n"
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
10301 msgid ""
10302 "This returns true iff this handle is being configured (in the C<CONFIG> "
10303 "state)."
10304 msgstr ""
10305
10306 #. type: =head2
10307 #: ../fish/guestfish-actions.pod:2472
10308 msgid "is-dir"
10309 msgstr ""
10310
10311 #. type: verbatim
10312 #: ../fish/guestfish-actions.pod:2474
10313 #, no-wrap
10314 msgid ""
10315 " is-dir path\n"
10316 "\n"
10317 msgstr ""
10318
10319 #. type: textblock
10320 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
10321 msgid ""
10322 "This returns C<true> if and only if there is a directory with the given "
10323 "C<path> name.  Note that it returns false for other objects like files."
10324 msgstr ""
10325
10326 #. type: =head2
10327 #: ../fish/guestfish-actions.pod:2482
10328 msgid "is-fifo"
10329 msgstr ""
10330
10331 #. type: verbatim
10332 #: ../fish/guestfish-actions.pod:2484
10333 #, no-wrap
10334 msgid ""
10335 " is-fifo path\n"
10336 "\n"
10337 msgstr ""
10338
10339 #. type: textblock
10340 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
10341 msgid ""
10342 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10343 "given C<path> name."
10344 msgstr ""
10345
10346 #. type: =head2
10347 #: ../fish/guestfish-actions.pod:2491
10348 msgid "is-file"
10349 msgstr ""
10350
10351 #. type: verbatim
10352 #: ../fish/guestfish-actions.pod:2493
10353 #, no-wrap
10354 msgid ""
10355 " is-file path\n"
10356 "\n"
10357 msgstr ""
10358
10359 #. type: textblock
10360 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
10361 msgid ""
10362 "This returns C<true> if and only if there is a regular file with the given "
10363 "C<path> name.  Note that it returns false for other objects like "
10364 "directories."
10365 msgstr ""
10366
10367 #. type: =head2
10368 #: ../fish/guestfish-actions.pod:2501
10369 msgid "is-launching"
10370 msgstr ""
10371
10372 #. type: verbatim
10373 #: ../fish/guestfish-actions.pod:2503
10374 #, no-wrap
10375 msgid ""
10376 " is-launching\n"
10377 "\n"
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
10382 msgid ""
10383 "This returns true iff this handle is launching the subprocess (in the "
10384 "C<LAUNCHING> state)."
10385 msgstr ""
10386
10387 #. type: =head2
10388 #: ../fish/guestfish-actions.pod:2510
10389 msgid "is-lv"
10390 msgstr ""
10391
10392 #. type: verbatim
10393 #: ../fish/guestfish-actions.pod:2512
10394 #, no-wrap
10395 msgid ""
10396 " is-lv device\n"
10397 "\n"
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
10402 msgid ""
10403 "This command tests whether C<device> is a logical volume, and returns true "
10404 "iff this is the case."
10405 msgstr ""
10406
10407 #. type: =head2
10408 #: ../fish/guestfish-actions.pod:2517
10409 msgid "is-ready"
10410 msgstr ""
10411
10412 #. type: verbatim
10413 #: ../fish/guestfish-actions.pod:2519
10414 #, no-wrap
10415 msgid ""
10416 " is-ready\n"
10417 "\n"
10418 msgstr ""
10419
10420 #. type: textblock
10421 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
10422 msgid ""
10423 "This returns true iff this handle is ready to accept commands (in the "
10424 "C<READY> state)."
10425 msgstr ""
10426
10427 #. type: =head2
10428 #: ../fish/guestfish-actions.pod:2526
10429 msgid "is-socket"
10430 msgstr ""
10431
10432 #. type: verbatim
10433 #: ../fish/guestfish-actions.pod:2528
10434 #, no-wrap
10435 msgid ""
10436 " is-socket path\n"
10437 "\n"
10438 msgstr ""
10439
10440 #. type: textblock
10441 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
10442 msgid ""
10443 "This returns C<true> if and only if there is a Unix domain socket with the "
10444 "given C<path> name."
10445 msgstr ""
10446
10447 #. type: =head2
10448 #: ../fish/guestfish-actions.pod:2535
10449 msgid "is-symlink"
10450 msgstr ""
10451
10452 #. type: verbatim
10453 #: ../fish/guestfish-actions.pod:2537
10454 #, no-wrap
10455 msgid ""
10456 " is-symlink path\n"
10457 "\n"
10458 msgstr ""
10459
10460 #. type: textblock
10461 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
10462 msgid ""
10463 "This returns C<true> if and only if there is a symbolic link with the given "
10464 "C<path> name."
10465 msgstr ""
10466
10467 #. type: =head2
10468 #: ../fish/guestfish-actions.pod:2544
10469 msgid "is-zero"
10470 msgstr ""
10471
10472 #. type: verbatim
10473 #: ../fish/guestfish-actions.pod:2546
10474 #, no-wrap
10475 msgid ""
10476 " is-zero path\n"
10477 "\n"
10478 msgstr ""
10479
10480 #. type: textblock
10481 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
10482 msgid ""
10483 "This returns true iff the file exists and the file is empty or it contains "
10484 "all zero bytes."
10485 msgstr ""
10486
10487 #. type: =head2
10488 #: ../fish/guestfish-actions.pod:2551
10489 msgid "is-zero-device"
10490 msgstr ""
10491
10492 #. type: verbatim
10493 #: ../fish/guestfish-actions.pod:2553
10494 #, no-wrap
10495 msgid ""
10496 " is-zero-device device\n"
10497 "\n"
10498 msgstr ""
10499
10500 #. type: textblock
10501 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
10502 msgid "This returns true iff the device exists and contains all zero bytes."
10503 msgstr ""
10504
10505 #. type: textblock
10506 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
10507 msgid "Note that for large devices this can take a long time to run."
10508 msgstr ""
10509
10510 #. type: =head2
10511 #: ../fish/guestfish-actions.pod:2559
10512 msgid "kill-subprocess"
10513 msgstr ""
10514
10515 #. type: verbatim
10516 #: ../fish/guestfish-actions.pod:2561
10517 #, no-wrap
10518 msgid ""
10519 " kill-subprocess\n"
10520 "\n"
10521 msgstr ""
10522
10523 #. type: textblock
10524 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
10525 msgid "This kills the qemu subprocess.  You should never need to call this."
10526 msgstr ""
10527
10528 #. type: =head2
10529 #: ../fish/guestfish-actions.pod:2565
10530 msgid "launch"
10531 msgstr ""
10532
10533 #. type: =head2
10534 #: ../fish/guestfish-actions.pod:2567
10535 msgid "run"
10536 msgstr ""
10537
10538 #. type: verbatim
10539 #: ../fish/guestfish-actions.pod:2569
10540 #, no-wrap
10541 msgid ""
10542 " launch\n"
10543 "\n"
10544 msgstr ""
10545
10546 #. type: textblock
10547 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
10548 msgid ""
10549 "Internally libguestfs is implemented by running a virtual machine using "
10550 "L<qemu(1)>."
10551 msgstr ""
10552
10553 #. type: textblock
10554 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
10555 msgid ""
10556 "You should call this after configuring the handle (eg. adding drives) but "
10557 "before performing any actions."
10558 msgstr ""
10559
10560 #. type: =head2
10561 #: ../fish/guestfish-actions.pod:2577
10562 msgid "lchown"
10563 msgstr ""
10564
10565 #. type: verbatim
10566 #: ../fish/guestfish-actions.pod:2579
10567 #, no-wrap
10568 msgid ""
10569 " lchown owner group path\n"
10570 "\n"
10571 msgstr ""
10572
10573 #. type: textblock
10574 #: ../fish/guestfish-actions.pod:2581
10575 msgid ""
10576 "Change the file owner to C<owner> and group to C<group>.  This is like "
10577 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
10578 "the target."
10579 msgstr ""
10580
10581 #. type: =head2
10582 #: ../fish/guestfish-actions.pod:2589
10583 msgid "lgetxattr"
10584 msgstr ""
10585
10586 #. type: verbatim
10587 #: ../fish/guestfish-actions.pod:2591
10588 #, no-wrap
10589 msgid ""
10590 " lgetxattr path name\n"
10591 "\n"
10592 msgstr ""
10593
10594 #. type: textblock
10595 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
10596 msgid ""
10597 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10598 "is a symlink, then this call returns an extended attribute from the symlink."
10599 msgstr ""
10600
10601 #. type: textblock
10602 #: ../fish/guestfish-actions.pod:2607
10603 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10604 msgstr ""
10605
10606 #. type: =head2
10607 #: ../fish/guestfish-actions.pod:2609
10608 msgid "lgetxattrs"
10609 msgstr ""
10610
10611 #. type: verbatim
10612 #: ../fish/guestfish-actions.pod:2611
10613 #, no-wrap
10614 msgid ""
10615 " lgetxattrs path\n"
10616 "\n"
10617 msgstr ""
10618
10619 #. type: textblock
10620 #: ../fish/guestfish-actions.pod:2613
10621 msgid ""
10622 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10623 "it returns the extended attributes of the link itself."
10624 msgstr ""
10625
10626 #. type: =head2
10627 #: ../fish/guestfish-actions.pod:2617
10628 msgid "list-9p"
10629 msgstr ""
10630
10631 #. type: verbatim
10632 #: ../fish/guestfish-actions.pod:2619
10633 #, no-wrap
10634 msgid ""
10635 " list-9p\n"
10636 "\n"
10637 msgstr ""
10638
10639 #. type: textblock
10640 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
10641 msgid ""
10642 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10643 "returned."
10644 msgstr ""
10645
10646 #. type: =head2
10647 #: ../fish/guestfish-actions.pod:2624
10648 msgid "list-devices"
10649 msgstr ""
10650
10651 #. type: verbatim
10652 #: ../fish/guestfish-actions.pod:2626
10653 #, no-wrap
10654 msgid ""
10655 " list-devices\n"
10656 "\n"
10657 msgstr ""
10658
10659 #. type: textblock
10660 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
10661 msgid "List all the block devices."
10662 msgstr ""
10663
10664 #. type: textblock
10665 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
10666 msgid "The full block device names are returned, eg. C</dev/sda>."
10667 msgstr ""
10668
10669 #. type: =head2
10670 #: ../fish/guestfish-actions.pod:2634
10671 msgid "list-dm-devices"
10672 msgstr ""
10673
10674 #. type: verbatim
10675 #: ../fish/guestfish-actions.pod:2636
10676 #, no-wrap
10677 msgid ""
10678 " list-dm-devices\n"
10679 "\n"
10680 msgstr ""
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
10684 msgid "List all device mapper devices."
10685 msgstr ""
10686
10687 #. type: textblock
10688 #: ../fish/guestfish-actions.pod:2640
10689 msgid ""
10690 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10691 "previous call to L</luks-open>."
10692 msgstr ""
10693
10694 #. type: textblock
10695 #: ../fish/guestfish-actions.pod:2643
10696 msgid ""
10697 "Device mapper devices which correspond to logical volumes are I<not> "
10698 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10699 msgstr ""
10700
10701 #. type: =head2
10702 #: ../fish/guestfish-actions.pod:2647
10703 msgid "list-filesystems"
10704 msgstr ""
10705
10706 #. type: verbatim
10707 #: ../fish/guestfish-actions.pod:2649
10708 #, no-wrap
10709 msgid ""
10710 " list-filesystems\n"
10711 "\n"
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
10716 msgid ""
10717 "This inspection command looks for filesystems on partitions, block devices "
10718 "and logical volumes, returning a list of devices containing filesystems and "
10719 "their type."
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
10724 msgid ""
10725 "The return value is a hash, where the keys are the devices containing "
10726 "filesystems, and the values are the filesystem types.  For example:"
10727 msgstr ""
10728
10729 #. type: verbatim
10730 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
10731 #, no-wrap
10732 msgid ""
10733 " \"/dev/sda1\" => \"ntfs\"\n"
10734 " \"/dev/sda2\" => \"ext2\"\n"
10735 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10736 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10737 "\n"
10738 msgstr ""
10739
10740 #. type: textblock
10741 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
10742 msgid ""
10743 "The value can have the special value \"unknown\", meaning the content of the "
10744 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10745 msgstr ""
10746
10747 #. type: textblock
10748 #: ../fish/guestfish-actions.pod:2668
10749 msgid ""
10750 "This command runs other libguestfs commands, which might include L</mount> "
10751 "and L</umount>, and therefore you should use this soon after launch and only "
10752 "when nothing is mounted."
10753 msgstr ""
10754
10755 #. type: textblock
10756 #: ../fish/guestfish-actions.pod:2672
10757 msgid ""
10758 "Not all of the filesystems returned will be mountable.  In particular, swap "
10759 "partitions are returned in the list.  Also this command does not check that "
10760 "each filesystem found is valid and mountable, and some filesystems might be "
10761 "mountable but require special options.  Filesystems may not all belong to a "
10762 "single logical operating system (use L</inspect-os> to look for OSes)."
10763 msgstr ""
10764
10765 #. type: =head2
10766 #: ../fish/guestfish-actions.pod:2680
10767 msgid "list-partitions"
10768 msgstr ""
10769
10770 #. type: verbatim
10771 #: ../fish/guestfish-actions.pod:2682
10772 #, no-wrap
10773 msgid ""
10774 " list-partitions\n"
10775 "\n"
10776 msgstr ""
10777
10778 #. type: textblock
10779 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
10780 msgid "List all the partitions detected on all block devices."
10781 msgstr ""
10782
10783 #. type: textblock
10784 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
10785 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10786 msgstr ""
10787
10788 #. type: textblock
10789 #: ../fish/guestfish-actions.pod:2688
10790 msgid ""
10791 "This does not return logical volumes.  For that you will need to call "
10792 "L</lvs>."
10793 msgstr ""
10794
10795 #. type: =head2
10796 #: ../fish/guestfish-actions.pod:2693
10797 msgid "ll"
10798 msgstr ""
10799
10800 #. type: verbatim
10801 #: ../fish/guestfish-actions.pod:2695
10802 #, no-wrap
10803 msgid ""
10804 " ll directory\n"
10805 "\n"
10806 msgstr ""
10807
10808 #. type: textblock
10809 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
10810 msgid ""
10811 "List the files in C<directory> (relative to the root directory, there is no "
10812 "cwd) in the format of 'ls -la'."
10813 msgstr ""
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
10817 msgid ""
10818 "This command is mostly useful for interactive sessions.  It is I<not> "
10819 "intended that you try to parse the output string."
10820 msgstr ""
10821
10822 #. type: =head2
10823 #: ../fish/guestfish-actions.pod:2703
10824 msgid "ln"
10825 msgstr ""
10826
10827 #. type: verbatim
10828 #: ../fish/guestfish-actions.pod:2705
10829 #, no-wrap
10830 msgid ""
10831 " ln target linkname\n"
10832 "\n"
10833 msgstr ""
10834
10835 #. type: textblock
10836 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
10837 msgid "This command creates a hard link using the C<ln> command."
10838 msgstr ""
10839
10840 #. type: =head2
10841 #: ../fish/guestfish-actions.pod:2709
10842 msgid "ln-f"
10843 msgstr ""
10844
10845 #. type: verbatim
10846 #: ../fish/guestfish-actions.pod:2711
10847 #, no-wrap
10848 msgid ""
10849 " ln-f target linkname\n"
10850 "\n"
10851 msgstr ""
10852
10853 #. type: textblock
10854 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
10855 msgid ""
10856 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10857 "option removes the link (C<linkname>) if it exists already."
10858 msgstr ""
10859
10860 #. type: =head2
10861 #: ../fish/guestfish-actions.pod:2716
10862 msgid "ln-s"
10863 msgstr ""
10864
10865 #. type: verbatim
10866 #: ../fish/guestfish-actions.pod:2718
10867 #, no-wrap
10868 msgid ""
10869 " ln-s target linkname\n"
10870 "\n"
10871 msgstr ""
10872
10873 #. type: textblock
10874 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
10875 msgid "This command creates a symbolic link using the C<ln -s> command."
10876 msgstr ""
10877
10878 #. type: =head2
10879 #: ../fish/guestfish-actions.pod:2722
10880 msgid "ln-sf"
10881 msgstr ""
10882
10883 #. type: verbatim
10884 #: ../fish/guestfish-actions.pod:2724
10885 #, no-wrap
10886 msgid ""
10887 " ln-sf target linkname\n"
10888 "\n"
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
10893 msgid ""
10894 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10895 "option removes the link (C<linkname>) if it exists already."
10896 msgstr ""
10897
10898 #. type: =head2
10899 #: ../fish/guestfish-actions.pod:2729
10900 msgid "lremovexattr"
10901 msgstr ""
10902
10903 #. type: verbatim
10904 #: ../fish/guestfish-actions.pod:2731
10905 #, no-wrap
10906 msgid ""
10907 " lremovexattr xattr path\n"
10908 "\n"
10909 msgstr ""
10910
10911 #. type: textblock
10912 #: ../fish/guestfish-actions.pod:2733
10913 msgid ""
10914 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10915 "it removes an extended attribute of the link itself."
10916 msgstr ""
10917
10918 #. type: =head2
10919 #: ../fish/guestfish-actions.pod:2737
10920 msgid "ls"
10921 msgstr ""
10922
10923 #. type: verbatim
10924 #: ../fish/guestfish-actions.pod:2739
10925 #, no-wrap
10926 msgid ""
10927 " ls directory\n"
10928 "\n"
10929 msgstr ""
10930
10931 #. type: textblock
10932 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
10933 msgid ""
10934 "List the files in C<directory> (relative to the root directory, there is no "
10935 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
10936 "shown."
10937 msgstr ""
10938
10939 #. type: textblock
10940 #: ../fish/guestfish-actions.pod:2745
10941 msgid ""
10942 "This command is mostly useful for interactive sessions.  Programs should "
10943 "probably use L</readdir> instead."
10944 msgstr ""
10945
10946 #. type: =head2
10947 #: ../fish/guestfish-actions.pod:2748
10948 msgid "lsetxattr"
10949 msgstr ""
10950
10951 #. type: verbatim
10952 #: ../fish/guestfish-actions.pod:2750
10953 #, no-wrap
10954 msgid ""
10955 " lsetxattr xattr val vallen path\n"
10956 "\n"
10957 msgstr ""
10958
10959 #. type: textblock
10960 #: ../fish/guestfish-actions.pod:2752
10961 msgid ""
10962 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10963 "sets an extended attribute of the link itself."
10964 msgstr ""
10965
10966 #. type: =head2
10967 #: ../fish/guestfish-actions.pod:2756
10968 msgid "lstat"
10969 msgstr ""
10970
10971 #. type: verbatim
10972 #: ../fish/guestfish-actions.pod:2758
10973 #, no-wrap
10974 msgid ""
10975 " lstat path\n"
10976 "\n"
10977 msgstr ""
10978
10979 #. type: textblock
10980 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
10981 msgid "Returns file information for the given C<path>."
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:2762
10986 msgid ""
10987 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10988 "the link is stat-ed, not the file it refers to."
10989 msgstr ""
10990
10991 #. type: textblock
10992 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
10993 msgid "This is the same as the C<lstat(2)> system call."
10994 msgstr ""
10995
10996 #. type: =head2
10997 #: ../fish/guestfish-actions.pod:2768
10998 msgid "lstatlist"
10999 msgstr ""
11000
11001 #. type: verbatim
11002 #: ../fish/guestfish-actions.pod:2770
11003 #, no-wrap
11004 msgid ""
11005 " lstatlist path 'names ...'\n"
11006 "\n"
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:2772
11011 msgid ""
11012 "This call allows you to perform the L</lstat> operation on multiple files, "
11013 "where all files are in the directory C<path>.  C<names> is the list of files "
11014 "from this directory."
11015 msgstr ""
11016
11017 #. type: textblock
11018 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11019 msgid ""
11020 "On return you get a list of stat structs, with a one-to-one correspondence "
11021 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11022 "then the C<ino> field of that structure is set to C<-1>."
11023 msgstr ""
11024
11025 #. type: textblock
11026 #: ../fish/guestfish-actions.pod:2781
11027 msgid ""
11028 "This call is intended for programs that want to efficiently list a directory "
11029 "contents without making many round-trips.  See also L</lxattrlist> for a "
11030 "similarly efficient call for getting extended attributes.  Very long "
11031 "directory listings might cause the protocol message size to be exceeded, "
11032 "causing this call to fail.  The caller must split up such requests into "
11033 "smaller groups of names."
11034 msgstr ""
11035
11036 #. type: =head2
11037 #: ../fish/guestfish-actions.pod:2789
11038 msgid "luks-add-key"
11039 msgstr ""
11040
11041 #. type: verbatim
11042 #: ../fish/guestfish-actions.pod:2791
11043 #, no-wrap
11044 msgid ""
11045 " luks-add-key device keyslot\n"
11046 "\n"
11047 msgstr ""
11048
11049 #. type: textblock
11050 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
11051 msgid ""
11052 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11053 "existing key, and is used to access the device.  C<newkey> is the new key to "
11054 "add.  C<keyslot> is the key slot that will be replaced."
11055 msgstr ""
11056
11057 #. type: textblock
11058 #: ../fish/guestfish-actions.pod:2798
11059 msgid ""
11060 "Note that if C<keyslot> already contains a key, then this command will "
11061 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11062 msgstr ""
11063
11064 #. type: textblock
11065 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824 ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851 ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
11066 msgid ""
11067 "This command has one or more key or passphrase parameters.  Guestfish will "
11068 "prompt for these separately."
11069 msgstr ""
11070
11071 #. type: =head2
11072 #: ../fish/guestfish-actions.pod:2805
11073 msgid "luks-close"
11074 msgstr ""
11075
11076 #. type: verbatim
11077 #: ../fish/guestfish-actions.pod:2807
11078 #, no-wrap
11079 msgid ""
11080 " luks-close device\n"
11081 "\n"
11082 msgstr ""
11083
11084 #. type: textblock
11085 #: ../fish/guestfish-actions.pod:2809
11086 msgid ""
11087 "This closes a LUKS device that was created earlier by L</luks-open> or "
11088 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
11089 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
11090 "underlying block device."
11091 msgstr ""
11092
11093 #. type: =head2
11094 #: ../fish/guestfish-actions.pod:2815
11095 msgid "luks-format"
11096 msgstr ""
11097
11098 #. type: verbatim
11099 #: ../fish/guestfish-actions.pod:2817
11100 #, no-wrap
11101 msgid ""
11102 " luks-format device keyslot\n"
11103 "\n"
11104 msgstr ""
11105
11106 #. type: textblock
11107 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
11108 msgid ""
11109 "This command erases existing data on C<device> and formats the device as a "
11110 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11111 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11112 msgstr ""
11113
11114 #. type: textblock
11115 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840 ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578 ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441 ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486 ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225 ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391 ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272 ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
11116 msgid ""
11117 "B<This command is dangerous.  Without careful use you can easily destroy all "
11118 "your data>."
11119 msgstr ""
11120
11121 #. type: =head2
11122 #: ../fish/guestfish-actions.pod:2830
11123 msgid "luks-format-cipher"
11124 msgstr ""
11125
11126 #. type: verbatim
11127 #: ../fish/guestfish-actions.pod:2832
11128 #, no-wrap
11129 msgid ""
11130 " luks-format-cipher device keyslot cipher\n"
11131 "\n"
11132 msgstr ""
11133
11134 #. type: textblock
11135 #: ../fish/guestfish-actions.pod:2834
11136 msgid ""
11137 "This command is the same as L</luks-format> but it also allows you to set "
11138 "the C<cipher> used."
11139 msgstr ""
11140
11141 #. type: =head2
11142 #: ../fish/guestfish-actions.pod:2843
11143 msgid "luks-kill-slot"
11144 msgstr ""
11145
11146 #. type: verbatim
11147 #: ../fish/guestfish-actions.pod:2845
11148 #, no-wrap
11149 msgid ""
11150 " luks-kill-slot device keyslot\n"
11151 "\n"
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
11156 msgid ""
11157 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11158 "device C<device>.  C<key> must be one of the I<other> keys."
11159 msgstr ""
11160
11161 #. type: =head2
11162 #: ../fish/guestfish-actions.pod:2854
11163 msgid "luks-open"
11164 msgstr ""
11165
11166 #. type: verbatim
11167 #: ../fish/guestfish-actions.pod:2856
11168 #, no-wrap
11169 msgid ""
11170 " luks-open device mapname\n"
11171 "\n"
11172 msgstr ""
11173
11174 #. type: textblock
11175 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
11176 msgid ""
11177 "This command opens a block device which has been encrypted according to the "
11178 "Linux Unified Key Setup (LUKS) standard."
11179 msgstr ""
11180
11181 #. type: textblock
11182 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
11183 msgid "C<device> is the encrypted block device or partition."
11184 msgstr ""
11185
11186 #. type: textblock
11187 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
11188 msgid ""
11189 "The caller must supply one of the keys associated with the LUKS block "
11190 "device, in the C<key> parameter."
11191 msgstr ""
11192
11193 #. type: textblock
11194 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
11195 msgid ""
11196 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11197 "writes to this block device are decrypted from and encrypted to the "
11198 "underlying C<device> respectively."
11199 msgstr ""
11200
11201 #. type: textblock
11202 #: ../fish/guestfish-actions.pod:2870
11203 msgid ""
11204 "If this block device contains LVM volume groups, then calling L</vgscan> "
11205 "followed by L</vg-activate-all> will make them visible."
11206 msgstr ""
11207
11208 #. type: textblock
11209 #: ../fish/guestfish-actions.pod:2874
11210 msgid "Use L</list-dm-devices> to list all device mapper devices."
11211 msgstr ""
11212
11213 #. type: =head2
11214 #: ../fish/guestfish-actions.pod:2880
11215 msgid "luks-open-ro"
11216 msgstr ""
11217
11218 #. type: verbatim
11219 #: ../fish/guestfish-actions.pod:2882
11220 #, no-wrap
11221 msgid ""
11222 " luks-open-ro device mapname\n"
11223 "\n"
11224 msgstr ""
11225
11226 #. type: textblock
11227 #: ../fish/guestfish-actions.pod:2884
11228 msgid ""
11229 "This is the same as L</luks-open> except that a read-only mapping is "
11230 "created."
11231 msgstr ""
11232
11233 #. type: =head2
11234 #: ../fish/guestfish-actions.pod:2890
11235 msgid "lvcreate"
11236 msgstr ""
11237
11238 #. type: verbatim
11239 #: ../fish/guestfish-actions.pod:2892
11240 #, no-wrap
11241 msgid ""
11242 " lvcreate logvol volgroup mbytes\n"
11243 "\n"
11244 msgstr ""
11245
11246 #. type: textblock
11247 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
11248 msgid ""
11249 "This creates an LVM logical volume called C<logvol> on the volume group "
11250 "C<volgroup>, with C<size> megabytes."
11251 msgstr ""
11252
11253 #. type: =head2
11254 #: ../fish/guestfish-actions.pod:2897
11255 msgid "lvm-canonical-lv-name"
11256 msgstr ""
11257
11258 #. type: verbatim
11259 #: ../fish/guestfish-actions.pod:2899
11260 #, no-wrap
11261 msgid ""
11262 " lvm-canonical-lv-name lvname\n"
11263 "\n"
11264 msgstr ""
11265
11266 #. type: textblock
11267 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
11268 msgid ""
11269 "This converts alternative naming schemes for LVs that you might find to the "
11270 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
11271 "C</dev/VG/LV>."
11272 msgstr ""
11273
11274 #. type: textblock
11275 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
11276 msgid ""
11277 "This command returns an error if the C<lvname> parameter does not refer to a "
11278 "logical volume."
11279 msgstr ""
11280
11281 #. type: textblock
11282 #: ../fish/guestfish-actions.pod:2908
11283 msgid "See also L</is-lv>."
11284 msgstr ""
11285
11286 #. type: =head2
11287 #: ../fish/guestfish-actions.pod:2910
11288 msgid "lvm-clear-filter"
11289 msgstr ""
11290
11291 #. type: verbatim
11292 #: ../fish/guestfish-actions.pod:2912
11293 #, no-wrap
11294 msgid ""
11295 " lvm-clear-filter\n"
11296 "\n"
11297 msgstr ""
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:2914
11301 msgid ""
11302 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11303 "block device."
11304 msgstr ""
11305
11306 #. type: textblock
11307 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948 ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
11308 msgid "This command also clears the LVM cache and performs a volume group scan."
11309 msgstr ""
11310
11311 #. type: =head2
11312 #: ../fish/guestfish-actions.pod:2920
11313 msgid "lvm-remove-all"
11314 msgstr ""
11315
11316 #. type: verbatim
11317 #: ../fish/guestfish-actions.pod:2922
11318 #, no-wrap
11319 msgid ""
11320 " lvm-remove-all\n"
11321 "\n"
11322 msgstr ""
11323
11324 #. type: textblock
11325 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
11326 msgid ""
11327 "This command removes all LVM logical volumes, volume groups and physical "
11328 "volumes."
11329 msgstr ""
11330
11331 #. type: =head2
11332 #: ../fish/guestfish-actions.pod:2930
11333 msgid "lvm-set-filter"
11334 msgstr ""
11335
11336 #. type: verbatim
11337 #: ../fish/guestfish-actions.pod:2932
11338 #, no-wrap
11339 msgid ""
11340 " lvm-set-filter 'devices ...'\n"
11341 "\n"
11342 msgstr ""
11343
11344 #. type: textblock
11345 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
11346 msgid ""
11347 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11348 "block devices in the list C<devices>, and will ignore all other attached "
11349 "block devices."
11350 msgstr ""
11351
11352 #. type: textblock
11353 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
11354 msgid ""
11355 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11356 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11357 "there are two types of duplication possible: either cloned PVs/VGs which "
11358 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11359 "same name.  In normal operation you cannot create this situation, but you "
11360 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11361 "inside the LVM metadata."
11362 msgstr ""
11363
11364 #. type: textblock
11365 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
11366 msgid "You can filter whole block devices or individual partitions."
11367 msgstr ""
11368
11369 #. type: textblock
11370 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
11371 msgid ""
11372 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11373 "filesystem), even if you are not filtering out that VG."
11374 msgstr ""
11375
11376 #. type: =head2
11377 #: ../fish/guestfish-actions.pod:2957
11378 msgid "lvremove"
11379 msgstr ""
11380
11381 #. type: verbatim
11382 #: ../fish/guestfish-actions.pod:2959
11383 #, no-wrap
11384 msgid ""
11385 " lvremove device\n"
11386 "\n"
11387 msgstr ""
11388
11389 #. type: textblock
11390 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
11391 msgid ""
11392 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11393 "LV, such as C</dev/VG/LV>."
11394 msgstr ""
11395
11396 #. type: textblock
11397 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
11398 msgid ""
11399 "You can also remove all LVs in a volume group by specifying the VG name, "
11400 "C</dev/VG>."
11401 msgstr ""
11402
11403 #. type: =head2
11404 #: ../fish/guestfish-actions.pod:2967
11405 msgid "lvrename"
11406 msgstr ""
11407
11408 #. type: verbatim
11409 #: ../fish/guestfish-actions.pod:2969
11410 #, no-wrap
11411 msgid ""
11412 " lvrename logvol newlogvol\n"
11413 "\n"
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
11418 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11419 msgstr ""
11420
11421 #. type: =head2
11422 #: ../fish/guestfish-actions.pod:2973
11423 msgid "lvresize"
11424 msgstr ""
11425
11426 #. type: verbatim
11427 #: ../fish/guestfish-actions.pod:2975
11428 #, no-wrap
11429 msgid ""
11430 " lvresize device mbytes\n"
11431 "\n"
11432 msgstr ""
11433
11434 #. type: textblock
11435 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
11436 msgid ""
11437 "This resizes (expands or shrinks) an existing LVM logical volume to "
11438 "C<mbytes>.  When reducing, data in the reduced part is lost."
11439 msgstr ""
11440
11441 #. type: =head2
11442 #: ../fish/guestfish-actions.pod:2981
11443 msgid "lvresize-free"
11444 msgstr ""
11445
11446 #. type: verbatim
11447 #: ../fish/guestfish-actions.pod:2983
11448 #, no-wrap
11449 msgid ""
11450 " lvresize-free lv percent\n"
11451 "\n"
11452 msgstr ""
11453
11454 #. type: textblock
11455 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
11456 msgid ""
11457 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11458 "remaining free space in the volume group.  Commonly you would call this with "
11459 "pc = 100 which expands the logical volume as much as possible, using all "
11460 "remaining free space in the volume group."
11461 msgstr ""
11462
11463 #. type: =head2
11464 #: ../fish/guestfish-actions.pod:2991
11465 msgid "lvs"
11466 msgstr ""
11467
11468 #. type: verbatim
11469 #: ../fish/guestfish-actions.pod:2993
11470 #, no-wrap
11471 msgid ""
11472 " lvs\n"
11473 "\n"
11474 msgstr ""
11475
11476 #. type: textblock
11477 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
11478 msgid ""
11479 "List all the logical volumes detected.  This is the equivalent of the "
11480 "L<lvs(8)> command."
11481 msgstr ""
11482
11483 #. type: textblock
11484 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
11485 msgid ""
11486 "This returns a list of the logical volume device names "
11487 "(eg. C</dev/VolGroup00/LogVol00>)."
11488 msgstr ""
11489
11490 #. type: textblock
11491 #: ../fish/guestfish-actions.pod:3001
11492 msgid "See also L</lvs-full>, L</list-filesystems>."
11493 msgstr ""
11494
11495 #. type: =head2
11496 #: ../fish/guestfish-actions.pod:3003
11497 msgid "lvs-full"
11498 msgstr ""
11499
11500 #. type: verbatim
11501 #: ../fish/guestfish-actions.pod:3005
11502 #, no-wrap
11503 msgid ""
11504 " lvs-full\n"
11505 "\n"
11506 msgstr ""
11507
11508 #. type: textblock
11509 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
11510 msgid ""
11511 "List all the logical volumes detected.  This is the equivalent of the "
11512 "L<lvs(8)> command.  The \"full\" version includes all fields."
11513 msgstr ""
11514
11515 #. type: =head2
11516 #: ../fish/guestfish-actions.pod:3010
11517 msgid "lvuuid"
11518 msgstr ""
11519
11520 #. type: verbatim
11521 #: ../fish/guestfish-actions.pod:3012
11522 #, no-wrap
11523 msgid ""
11524 " lvuuid device\n"
11525 "\n"
11526 msgstr ""
11527
11528 #. type: textblock
11529 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
11530 msgid "This command returns the UUID of the LVM LV C<device>."
11531 msgstr ""
11532
11533 #. type: =head2
11534 #: ../fish/guestfish-actions.pod:3016
11535 msgid "lxattrlist"
11536 msgstr ""
11537
11538 #. type: verbatim
11539 #: ../fish/guestfish-actions.pod:3018
11540 #, no-wrap
11541 msgid ""
11542 " lxattrlist path 'names ...'\n"
11543 "\n"
11544 msgstr ""
11545
11546 #. type: textblock
11547 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
11548 msgid ""
11549 "This call allows you to get the extended attributes of multiple files, where "
11550 "all files are in the directory C<path>.  C<names> is the list of files from "
11551 "this directory."
11552 msgstr ""
11553
11554 #. type: textblock
11555 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
11556 msgid ""
11557 "On return you get a flat list of xattr structs which must be interpreted "
11558 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11559 "C<attrval> in this struct is zero-length to indicate there was an error "
11560 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11561 "number (the number of following attributes for this file, which could be "
11562 "C<\"0\">).  Then after the first xattr struct are the zero or more "
11563 "attributes for the first named file.  This repeats for the second and "
11564 "subsequent files."
11565 msgstr ""
11566
11567 #. type: textblock
11568 #: ../fish/guestfish-actions.pod:3034
11569 msgid ""
11570 "This call is intended for programs that want to efficiently list a directory "
11571 "contents without making many round-trips.  See also L</lstatlist> for a "
11572 "similarly efficient call for getting standard stats.  Very long directory "
11573 "listings might cause the protocol message size to be exceeded, causing this "
11574 "call to fail.  The caller must split up such requests into smaller groups of "
11575 "names."
11576 msgstr ""
11577
11578 #. type: =head2
11579 #: ../fish/guestfish-actions.pod:3042
11580 msgid "mkdir"
11581 msgstr ""
11582
11583 #. type: verbatim
11584 #: ../fish/guestfish-actions.pod:3044
11585 #, no-wrap
11586 msgid ""
11587 " mkdir path\n"
11588 "\n"
11589 msgstr ""
11590
11591 #. type: textblock
11592 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
11593 msgid "Create a directory named C<path>."
11594 msgstr ""
11595
11596 #. type: =head2
11597 #: ../fish/guestfish-actions.pod:3048
11598 msgid "mkdir-mode"
11599 msgstr ""
11600
11601 #. type: verbatim
11602 #: ../fish/guestfish-actions.pod:3050
11603 #, no-wrap
11604 msgid ""
11605 " mkdir-mode path mode\n"
11606 "\n"
11607 msgstr ""
11608
11609 #. type: textblock
11610 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
11611 msgid ""
11612 "This command creates a directory, setting the initial permissions of the "
11613 "directory to C<mode>."
11614 msgstr ""
11615
11616 #. type: textblock
11617 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
11618 msgid ""
11619 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11620 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11621 "other ways."
11622 msgstr ""
11623
11624 #. type: textblock
11625 #: ../fish/guestfish-actions.pod:3059
11626 msgid "See also L</mkdir>, L</umask>"
11627 msgstr ""
11628
11629 #. type: =head2
11630 #: ../fish/guestfish-actions.pod:3061
11631 msgid "mkdir-p"
11632 msgstr ""
11633
11634 #. type: verbatim
11635 #: ../fish/guestfish-actions.pod:3063
11636 #, no-wrap
11637 msgid ""
11638 " mkdir-p path\n"
11639 "\n"
11640 msgstr ""
11641
11642 #. type: textblock
11643 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
11644 msgid ""
11645 "Create a directory named C<path>, creating any parent directories as "
11646 "necessary.  This is like the C<mkdir -p> shell command."
11647 msgstr ""
11648
11649 #. type: =head2
11650 #: ../fish/guestfish-actions.pod:3068
11651 msgid "mkdtemp"
11652 msgstr ""
11653
11654 #. type: verbatim
11655 #: ../fish/guestfish-actions.pod:3070
11656 #, no-wrap
11657 msgid ""
11658 " mkdtemp template\n"
11659 "\n"
11660 msgstr ""
11661
11662 #. type: textblock
11663 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
11664 msgid ""
11665 "This command creates a temporary directory.  The C<template> parameter "
11666 "should be a full pathname for the temporary directory name with the final "
11667 "six characters being \"XXXXXX\"."
11668 msgstr ""
11669
11670 #. type: textblock
11671 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
11672 msgid ""
11673 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11674 "being suitable for Windows filesystems."
11675 msgstr ""
11676
11677 #. type: textblock
11678 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
11679 msgid "The name of the temporary directory that was created is returned."
11680 msgstr ""
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
11684 msgid "The temporary directory is created with mode 0700 and is owned by root."
11685 msgstr ""
11686
11687 #. type: textblock
11688 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
11689 msgid ""
11690 "The caller is responsible for deleting the temporary directory and its "
11691 "contents after use."
11692 msgstr ""
11693
11694 #. type: textblock
11695 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
11696 msgid "See also: L<mkdtemp(3)>"
11697 msgstr ""
11698
11699 #. type: =head2
11700 #: ../fish/guestfish-actions.pod:3091
11701 msgid "mke2fs-J"
11702 msgstr ""
11703
11704 #. type: verbatim
11705 #: ../fish/guestfish-actions.pod:3093
11706 #, no-wrap
11707 msgid ""
11708 " mke2fs-J fstype blocksize device journal\n"
11709 "\n"
11710 msgstr ""
11711
11712 #. type: textblock
11713 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
11714 msgid ""
11715 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11716 "C<journal>.  It is equivalent to the command:"
11717 msgstr ""
11718
11719 #. type: verbatim
11720 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
11721 #, no-wrap
11722 msgid ""
11723 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11724 "\n"
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:3101
11729 msgid "See also L</mke2journal>."
11730 msgstr ""
11731
11732 #. type: =head2
11733 #: ../fish/guestfish-actions.pod:3103
11734 msgid "mke2fs-JL"
11735 msgstr ""
11736
11737 #. type: verbatim
11738 #: ../fish/guestfish-actions.pod:3105
11739 #, no-wrap
11740 msgid ""
11741 " mke2fs-JL fstype blocksize device label\n"
11742 "\n"
11743 msgstr ""
11744
11745 #. type: textblock
11746 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
11747 msgid ""
11748 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11749 "the journal labeled C<label>."
11750 msgstr ""
11751
11752 #. type: textblock
11753 #: ../fish/guestfish-actions.pod:3110
11754 msgid "See also L</mke2journal-L>."
11755 msgstr ""
11756
11757 #. type: =head2
11758 #: ../fish/guestfish-actions.pod:3112
11759 msgid "mke2fs-JU"
11760 msgstr ""
11761
11762 #. type: verbatim
11763 #: ../fish/guestfish-actions.pod:3114
11764 #, no-wrap
11765 msgid ""
11766 " mke2fs-JU fstype blocksize device uuid\n"
11767 "\n"
11768 msgstr ""
11769
11770 #. type: textblock
11771 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
11772 msgid ""
11773 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11774 "the journal with UUID C<uuid>."
11775 msgstr ""
11776
11777 #. type: textblock
11778 #: ../fish/guestfish-actions.pod:3119
11779 msgid "See also L</mke2journal-U>."
11780 msgstr ""
11781
11782 #. type: =head2
11783 #: ../fish/guestfish-actions.pod:3121
11784 msgid "mke2journal"
11785 msgstr ""
11786
11787 #. type: verbatim
11788 #: ../fish/guestfish-actions.pod:3123
11789 #, no-wrap
11790 msgid ""
11791 " mke2journal blocksize device\n"
11792 "\n"
11793 msgstr ""
11794
11795 #. type: textblock
11796 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
11797 msgid ""
11798 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11799 "command:"
11800 msgstr ""
11801
11802 #. type: verbatim
11803 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
11804 #, no-wrap
11805 msgid ""
11806 " mke2fs -O journal_dev -b blocksize device\n"
11807 "\n"
11808 msgstr ""
11809
11810 #. type: =head2
11811 #: ../fish/guestfish-actions.pod:3130
11812 msgid "mke2journal-L"
11813 msgstr ""
11814
11815 #. type: verbatim
11816 #: ../fish/guestfish-actions.pod:3132
11817 #, no-wrap
11818 msgid ""
11819 " mke2journal-L blocksize label device\n"
11820 "\n"
11821 msgstr ""
11822
11823 #. type: textblock
11824 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
11825 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11826 msgstr ""
11827
11828 #. type: =head2
11829 #: ../fish/guestfish-actions.pod:3136
11830 msgid "mke2journal-U"
11831 msgstr ""
11832
11833 #. type: verbatim
11834 #: ../fish/guestfish-actions.pod:3138
11835 #, no-wrap
11836 msgid ""
11837 " mke2journal-U blocksize uuid device\n"
11838 "\n"
11839 msgstr ""
11840
11841 #. type: textblock
11842 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
11843 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11844 msgstr ""
11845
11846 #. type: =head2
11847 #: ../fish/guestfish-actions.pod:3142
11848 msgid "mkfifo"
11849 msgstr ""
11850
11851 #. type: verbatim
11852 #: ../fish/guestfish-actions.pod:3144
11853 #, no-wrap
11854 msgid ""
11855 " mkfifo mode path\n"
11856 "\n"
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:3146
11861 msgid ""
11862 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11863 "is just a convenient wrapper around L</mknod>."
11864 msgstr ""
11865
11866 #. type: =head2
11867 #: ../fish/guestfish-actions.pod:3152
11868 msgid "mkfs"
11869 msgstr ""
11870
11871 #. type: verbatim
11872 #: ../fish/guestfish-actions.pod:3154
11873 #, no-wrap
11874 msgid ""
11875 " mkfs fstype device\n"
11876 "\n"
11877 msgstr ""
11878
11879 #. type: textblock
11880 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
11881 msgid ""
11882 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11883 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11884 msgstr ""
11885
11886 #. type: =head2
11887 #: ../fish/guestfish-actions.pod:3160
11888 msgid "mkfs-b"
11889 msgstr ""
11890
11891 #. type: verbatim
11892 #: ../fish/guestfish-actions.pod:3162
11893 #, no-wrap
11894 msgid ""
11895 " mkfs-b fstype blocksize device\n"
11896 "\n"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:3164
11901 msgid ""
11902 "This call is similar to L</mkfs>, but it allows you to control the block "
11903 "size of the resulting filesystem.  Supported block sizes depend on the "
11904 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11905 msgstr ""
11906
11907 #. type: textblock
11908 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
11909 msgid ""
11910 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11911 "cluster size."
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:3172
11916 msgid ""
11917 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11918 "instead."
11919 msgstr ""
11920
11921 #. type: =head2
11922 #: ../fish/guestfish-actions.pod:3179
11923 msgid "mkfs-opts"
11924 msgstr ""
11925
11926 #. type: verbatim
11927 #: ../fish/guestfish-actions.pod:3181
11928 #, no-wrap
11929 msgid ""
11930 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
11931 "[sectorsize:..]\n"
11932 "\n"
11933 msgstr ""
11934
11935 #. type: textblock
11936 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
11937 msgid ""
11938 "This function creates a filesystem on C<device>.  The filesystem type is "
11939 "C<fstype>, for example C<ext3>."
11940 msgstr ""
11941
11942 #. type: =item
11943 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
11944 msgid "C<blocksize>"
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
11949 msgid ""
11950 "The filesystem block size.  Supported block sizes depend on the filesystem "
11951 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11952 "filesystems."
11953 msgstr ""
11954
11955 #. type: textblock
11956 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
11957 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11958 msgstr ""
11959
11960 #. type: =item
11961 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
11962 msgid "C<features>"
11963 msgstr ""
11964
11965 #. type: textblock
11966 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
11967 msgid "This passes the I<-O> parameter to the external mkfs program."
11968 msgstr ""
11969
11970 #. type: textblock
11971 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
11972 msgid ""
11973 "For certain filesystem types, this allows extra filesystem features to be "
11974 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11975 msgstr ""
11976
11977 #. type: textblock
11978 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
11979 msgid ""
11980 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11981 "type."
11982 msgstr ""
11983
11984 #. type: =item
11985 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
11986 msgid "C<inode>"
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
11991 msgid ""
11992 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11993 "sets the inode size (only for ext2/3/4 filesystems at present)."
11994 msgstr ""
11995
11996 #. type: =item
11997 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
11998 msgid "C<sectorsize>"
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
12003 msgid ""
12004 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12005 "sets sector size for ufs filesystem."
12006 msgstr ""
12007
12008 #. type: =head2
12009 #: ../fish/guestfish-actions.pod:3226
12010 msgid "mkmountpoint"
12011 msgstr ""
12012
12013 #. type: verbatim
12014 #: ../fish/guestfish-actions.pod:3228
12015 #, no-wrap
12016 msgid ""
12017 " mkmountpoint exemptpath\n"
12018 "\n"
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../fish/guestfish-actions.pod:3230
12023 msgid ""
12024 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12025 "to create extra mountpoints before mounting the first filesystem."
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
12030 msgid ""
12031 "These calls are I<only> necessary in some very limited circumstances, mainly "
12032 "the case where you want to mount a mix of unrelated and/or read-only "
12033 "filesystems together."
12034 msgstr ""
12035
12036 #. type: textblock
12037 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
12038 msgid ""
12039 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12040 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12041 "inside that.  You can unpack this as follows in guestfish:"
12042 msgstr ""
12043
12044 #. type: verbatim
12045 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
12046 #, no-wrap
12047 msgid ""
12048 " add-ro Fedora-11-i686-Live.iso\n"
12049 " run\n"
12050 " mkmountpoint /cd\n"
12051 " mkmountpoint /sqsh\n"
12052 " mkmountpoint /ext3fs\n"
12053 " mount /dev/sda /cd\n"
12054 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12055 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12056 "\n"
12057 msgstr ""
12058
12059 #. type: textblock
12060 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
12061 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:3254
12066 msgid ""
12067 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12068 "unexpected errors if you try to mix these calls.  It is safest to manually "
12069 "unmount filesystems and remove mountpoints after use."
12070 msgstr ""
12071
12072 #. type: textblock
12073 #: ../fish/guestfish-actions.pod:3258
12074 msgid ""
12075 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12076 "for this to work for manual mountpoints, you must ensure that the innermost "
12077 "mountpoints have the longest pathnames, as in the example code above."
12078 msgstr ""
12079
12080 #. type: textblock
12081 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
12082 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12083 msgstr ""
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:3265
12087 msgid ""
12088 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12089 "L</umount-all> to be called when the handle is closed which can also trigger "
12090 "these issues."
12091 msgstr ""
12092
12093 #. type: =head2
12094 #: ../fish/guestfish-actions.pod:3269
12095 msgid "mknod"
12096 msgstr ""
12097
12098 #. type: verbatim
12099 #: ../fish/guestfish-actions.pod:3271
12100 #, no-wrap
12101 msgid ""
12102 " mknod mode devmajor devminor path\n"
12103 "\n"
12104 msgstr ""
12105
12106 #. type: textblock
12107 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
12108 msgid ""
12109 "This call creates block or character special devices, or named pipes "
12110 "(FIFOs)."
12111 msgstr ""
12112
12113 #. type: textblock
12114 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
12115 msgid ""
12116 "The C<mode> parameter should be the mode, using the standard constants.  "
12117 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12118 "used when creating block and character special devices."
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../fish/guestfish-actions.pod:3281
12123 msgid ""
12124 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12125 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12126 "regular file).  These constants are available in the standard Linux header "
12127 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12128 "wrappers around this command which bitwise OR in the appropriate constant "
12129 "for you."
12130 msgstr ""
12131
12132 #. type: =head2
12133 #: ../fish/guestfish-actions.pod:3291
12134 msgid "mknod-b"
12135 msgstr ""
12136
12137 #. type: verbatim
12138 #: ../fish/guestfish-actions.pod:3293
12139 #, no-wrap
12140 msgid ""
12141 " mknod-b mode devmajor devminor path\n"
12142 "\n"
12143 msgstr ""
12144
12145 #. type: textblock
12146 #: ../fish/guestfish-actions.pod:3295
12147 msgid ""
12148 "This call creates a block device node called C<path> with mode C<mode> and "
12149 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12150 "wrapper around L</mknod>."
12151 msgstr ""
12152
12153 #. type: =head2
12154 #: ../fish/guestfish-actions.pod:3301
12155 msgid "mknod-c"
12156 msgstr ""
12157
12158 #. type: verbatim
12159 #: ../fish/guestfish-actions.pod:3303
12160 #, no-wrap
12161 msgid ""
12162 " mknod-c mode devmajor devminor path\n"
12163 "\n"
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:3305
12168 msgid ""
12169 "This call creates a char device node called C<path> with mode C<mode> and "
12170 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12171 "wrapper around L</mknod>."
12172 msgstr ""
12173
12174 #. type: =head2
12175 #: ../fish/guestfish-actions.pod:3311
12176 msgid "mkswap"
12177 msgstr ""
12178
12179 #. type: verbatim
12180 #: ../fish/guestfish-actions.pod:3313
12181 #, no-wrap
12182 msgid ""
12183 " mkswap device\n"
12184 "\n"
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
12189 msgid "Create a swap partition on C<device>."
12190 msgstr ""
12191
12192 #. type: =head2
12193 #: ../fish/guestfish-actions.pod:3317
12194 msgid "mkswap-L"
12195 msgstr ""
12196
12197 #. type: verbatim
12198 #: ../fish/guestfish-actions.pod:3319
12199 #, no-wrap
12200 msgid ""
12201 " mkswap-L label device\n"
12202 "\n"
12203 msgstr ""
12204
12205 #. type: textblock
12206 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
12207 msgid "Create a swap partition on C<device> with label C<label>."
12208 msgstr ""
12209
12210 #. type: textblock
12211 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
12212 msgid ""
12213 "Note that you cannot attach a swap label to a block device "
12214 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
12215 "the kernel or swap tools."
12216 msgstr ""
12217
12218 #. type: =head2
12219 #: ../fish/guestfish-actions.pod:3327
12220 msgid "mkswap-U"
12221 msgstr ""
12222
12223 #. type: verbatim
12224 #: ../fish/guestfish-actions.pod:3329
12225 #, no-wrap
12226 msgid ""
12227 " mkswap-U uuid device\n"
12228 "\n"
12229 msgstr ""
12230
12231 #. type: textblock
12232 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
12233 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12234 msgstr ""
12235
12236 #. type: =head2
12237 #: ../fish/guestfish-actions.pod:3333
12238 msgid "mkswap-file"
12239 msgstr ""
12240
12241 #. type: verbatim
12242 #: ../fish/guestfish-actions.pod:3335
12243 #, no-wrap
12244 msgid ""
12245 " mkswap-file path\n"
12246 "\n"
12247 msgstr ""
12248
12249 #. type: textblock
12250 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
12251 msgid "Create a swap file."
12252 msgstr ""
12253
12254 #. type: textblock
12255 #: ../fish/guestfish-actions.pod:3339
12256 msgid ""
12257 "This command just writes a swap file signature to an existing file.  To "
12258 "create the file itself, use something like L</fallocate>."
12259 msgstr ""
12260
12261 #. type: =head2
12262 #: ../fish/guestfish-actions.pod:3342
12263 msgid "modprobe"
12264 msgstr ""
12265
12266 #. type: verbatim
12267 #: ../fish/guestfish-actions.pod:3344
12268 #, no-wrap
12269 msgid ""
12270 " modprobe modulename\n"
12271 "\n"
12272 msgstr ""
12273
12274 #. type: textblock
12275 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
12276 msgid "This loads a kernel module in the appliance."
12277 msgstr ""
12278
12279 #. type: textblock
12280 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
12281 msgid ""
12282 "The kernel module must have been whitelisted when libguestfs was built (see "
12283 "C<appliance/kmod.whitelist.in> in the source)."
12284 msgstr ""
12285
12286 #. type: =head2
12287 #: ../fish/guestfish-actions.pod:3351
12288 msgid "mount"
12289 msgstr ""
12290
12291 #. type: verbatim
12292 #: ../fish/guestfish-actions.pod:3353
12293 #, no-wrap
12294 msgid ""
12295 " mount device mountpoint\n"
12296 "\n"
12297 msgstr ""
12298
12299 #. type: textblock
12300 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
12301 msgid ""
12302 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12303 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12304 "those block devices contain partitions, they will have the usual names "
12305 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12306 msgstr ""
12307
12308 #. type: textblock
12309 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12310 msgid ""
12311 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12312 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12313 "mounted on directories which already exist."
12314 msgstr ""
12315
12316 #. type: textblock
12317 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
12318 msgid ""
12319 "The mounted filesystem is writable, if we have sufficient permissions on the "
12320 "underlying device."
12321 msgstr ""
12322
12323 #. type: textblock
12324 #: ../fish/guestfish-actions.pod:3369
12325 msgid ""
12326 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12327 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12328 "problems for users.  If your program might need to work with older versions "
12329 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12330 "first parameter if you don't want any options)."
12331 msgstr ""
12332
12333 #. type: =head2
12334 #: ../fish/guestfish-actions.pod:3376
12335 msgid "mount-9p"
12336 msgstr ""
12337
12338 #. type: verbatim
12339 #: ../fish/guestfish-actions.pod:3378
12340 #, no-wrap
12341 msgid ""
12342 " mount-9p mounttag mountpoint [options:..]\n"
12343 "\n"
12344 msgstr ""
12345
12346 #. type: textblock
12347 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
12348 msgid ""
12349 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12350 "C<mountpoint>."
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
12355 msgid ""
12356 "If required, C<trans=virtio> will be automatically added to the options.  "
12357 "Any other options required can be passed in the optional C<options> "
12358 "parameter."
12359 msgstr ""
12360
12361 #. type: =head2
12362 #: ../fish/guestfish-actions.pod:3389
12363 msgid "mount-loop"
12364 msgstr ""
12365
12366 #. type: verbatim
12367 #: ../fish/guestfish-actions.pod:3391
12368 #, no-wrap
12369 msgid ""
12370 " mount-loop file mountpoint\n"
12371 "\n"
12372 msgstr ""
12373
12374 #. type: textblock
12375 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
12376 msgid ""
12377 "This command lets you mount C<file> (a filesystem image in a file) on a "
12378 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12379 "mountpoint>."
12380 msgstr ""
12381
12382 #. type: =head2
12383 #: ../fish/guestfish-actions.pod:3397
12384 msgid "mount-options"
12385 msgstr ""
12386
12387 #. type: verbatim
12388 #: ../fish/guestfish-actions.pod:3399
12389 #, no-wrap
12390 msgid ""
12391 " mount-options options device mountpoint\n"
12392 "\n"
12393 msgstr ""
12394
12395 #. type: textblock
12396 #: ../fish/guestfish-actions.pod:3401
12397 msgid ""
12398 "This is the same as the L</mount> command, but it allows you to set the "
12399 "mount options as for the L<mount(8)> I<-o> flag."
12400 msgstr ""
12401
12402 #. type: textblock
12403 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
12404 msgid ""
12405 "If the C<options> parameter is an empty string, then no options are passed "
12406 "(all options default to whatever the filesystem uses)."
12407 msgstr ""
12408
12409 #. type: =head2
12410 #: ../fish/guestfish-actions.pod:3409
12411 msgid "mount-ro"
12412 msgstr ""
12413
12414 #. type: verbatim
12415 #: ../fish/guestfish-actions.pod:3411
12416 #, no-wrap
12417 msgid ""
12418 " mount-ro device mountpoint\n"
12419 "\n"
12420 msgstr ""
12421
12422 #. type: textblock
12423 #: ../fish/guestfish-actions.pod:3413
12424 msgid ""
12425 "This is the same as the L</mount> command, but it mounts the filesystem with "
12426 "the read-only (I<-o ro>) flag."
12427 msgstr ""
12428
12429 #. type: =head2
12430 #: ../fish/guestfish-actions.pod:3416
12431 msgid "mount-vfs"
12432 msgstr ""
12433
12434 #. type: verbatim
12435 #: ../fish/guestfish-actions.pod:3418
12436 #, no-wrap
12437 msgid ""
12438 " mount-vfs options vfstype device mountpoint\n"
12439 "\n"
12440 msgstr ""
12441
12442 #. type: textblock
12443 #: ../fish/guestfish-actions.pod:3420
12444 msgid ""
12445 "This is the same as the L</mount> command, but it allows you to set both the "
12446 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12447 msgstr ""
12448
12449 #. type: =head2
12450 #: ../fish/guestfish-actions.pod:3424
12451 msgid "mountpoints"
12452 msgstr ""
12453
12454 #. type: verbatim
12455 #: ../fish/guestfish-actions.pod:3426
12456 #, no-wrap
12457 msgid ""
12458 " mountpoints\n"
12459 "\n"
12460 msgstr ""
12461
12462 #. type: textblock
12463 #: ../fish/guestfish-actions.pod:3428
12464 msgid ""
12465 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12466 "This one returns a hash table (map) of device name to directory where the "
12467 "device is mounted."
12468 msgstr ""
12469
12470 #. type: =head2
12471 #: ../fish/guestfish-actions.pod:3432
12472 msgid "mounts"
12473 msgstr ""
12474
12475 #. type: verbatim
12476 #: ../fish/guestfish-actions.pod:3434
12477 #, no-wrap
12478 msgid ""
12479 " mounts\n"
12480 "\n"
12481 msgstr ""
12482
12483 #. type: textblock
12484 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
12485 msgid ""
12486 "This returns the list of currently mounted filesystems.  It returns the list "
12487 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12488 msgstr ""
12489
12490 #. type: textblock
12491 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
12492 msgid "Some internal mounts are not shown."
12493 msgstr ""
12494
12495 #. type: textblock
12496 #: ../fish/guestfish-actions.pod:3441
12497 msgid "See also: L</mountpoints>"
12498 msgstr ""
12499
12500 #. type: =head2
12501 #: ../fish/guestfish-actions.pod:3443
12502 msgid "mv"
12503 msgstr ""
12504
12505 #. type: verbatim
12506 #: ../fish/guestfish-actions.pod:3445
12507 #, no-wrap
12508 msgid ""
12509 " mv src dest\n"
12510 "\n"
12511 msgstr ""
12512
12513 #. type: textblock
12514 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
12515 msgid ""
12516 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12517 "destination filename or destination directory."
12518 msgstr ""
12519
12520 #. type: =head2
12521 #: ../fish/guestfish-actions.pod:3450
12522 msgid "ntfs-3g-probe"
12523 msgstr ""
12524
12525 #. type: verbatim
12526 #: ../fish/guestfish-actions.pod:3452
12527 #, no-wrap
12528 msgid ""
12529 " ntfs-3g-probe true|false device\n"
12530 "\n"
12531 msgstr ""
12532
12533 #. type: textblock
12534 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
12535 msgid ""
12536 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12537 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
12538 "read-write, and some cannot be mounted at all)."
12539 msgstr ""
12540
12541 #. type: textblock
12542 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
12543 msgid ""
12544 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12545 "can be mounted read-write.  Set it to false if you want to test if the "
12546 "volume can be mounted read-only."
12547 msgstr ""
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
12551 msgid ""
12552 "The return value is an integer which C<0> if the operation would succeed, or "
12553 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12554 msgstr ""
12555
12556 #. type: =head2
12557 #: ../fish/guestfish-actions.pod:3466
12558 msgid "ntfsresize"
12559 msgstr ""
12560
12561 #. type: verbatim
12562 #: ../fish/guestfish-actions.pod:3468
12563 #, no-wrap
12564 msgid ""
12565 " ntfsresize device\n"
12566 "\n"
12567 msgstr ""
12568
12569 #. type: textblock
12570 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494 ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
12571 msgid ""
12572 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12573 "size of the underlying device."
12574 msgstr ""
12575
12576 #. type: textblock
12577 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
12578 msgid ""
12579 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12580 "consistency check (for safety).  You have to boot into Windows to perform "
12581 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12582 "resize filesystems which have been marked in this way.  So in effect it is "
12583 "not possible to call ntfsresize multiple times on a single filesystem "
12584 "without booting into Windows between each resize."
12585 msgstr ""
12586
12587 #. type: textblock
12588 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520 ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
12589 msgid "See also L<ntfsresize(8)>."
12590 msgstr ""
12591
12592 #. type: textblock
12593 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
12594 msgid ""
12595 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12596 "call instead."
12597 msgstr ""
12598
12599 #. type: =head2
12600 #: ../fish/guestfish-actions.pod:3490
12601 msgid "ntfsresize-opts"
12602 msgstr ""
12603
12604 #. type: verbatim
12605 #: ../fish/guestfish-actions.pod:3492
12606 #, no-wrap
12607 msgid ""
12608 " ntfsresize-opts device [size:..] [force:..]\n"
12609 "\n"
12610 msgstr ""
12611
12612 #. type: textblock
12613 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
12614 msgid ""
12615 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12616 "resized to fit the container (eg. partition)."
12617 msgstr ""
12618
12619 #. type: =item
12620 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
12621 msgid "C<force>"
12622 msgstr ""
12623
12624 #. type: textblock
12625 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
12626 msgid ""
12627 "If this option is true, then force the resize of the filesystem even if the "
12628 "filesystem is marked as requiring a consistency check."
12629 msgstr ""
12630
12631 #. type: textblock
12632 #: ../fish/guestfish-actions.pod:3511
12633 msgid ""
12634 "After the resize operation, the filesystem is always marked as requiring a "
12635 "consistency check (for safety).  You have to boot into Windows to perform "
12636 "this check and clear this condition.  If you I<don't> set the C<force> "
12637 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12638 "a single filesystem without booting into Windows between each resize."
12639 msgstr ""
12640
12641 #. type: =head2
12642 #: ../fish/guestfish-actions.pod:3524
12643 msgid "ntfsresize-size"
12644 msgstr ""
12645
12646 #. type: verbatim
12647 #: ../fish/guestfish-actions.pod:3526
12648 #, no-wrap
12649 msgid ""
12650 " ntfsresize-size device size\n"
12651 "\n"
12652 msgstr ""
12653
12654 #. type: textblock
12655 #: ../fish/guestfish-actions.pod:3528
12656 msgid ""
12657 "This command is the same as L</ntfsresize> except that it allows you to "
12658 "specify the new size (in bytes) explicitly."
12659 msgstr ""
12660
12661 #. type: =head2
12662 #: ../fish/guestfish-actions.pod:3538
12663 msgid "part-add"
12664 msgstr ""
12665
12666 #. type: verbatim
12667 #: ../fish/guestfish-actions.pod:3540
12668 #, no-wrap
12669 msgid ""
12670 " part-add device prlogex startsect endsect\n"
12671 "\n"
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:3542
12676 msgid ""
12677 "This command adds a partition to C<device>.  If there is no partition table "
12678 "on the device, call L</part-init> first."
12679 msgstr ""
12680
12681 #. type: textblock
12682 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
12683 msgid ""
12684 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12685 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12686 "C<logical>) and C<e> (or C<extended>) partition types."
12687 msgstr ""
12688
12689 #. type: textblock
12690 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
12691 msgid ""
12692 "C<startsect> and C<endsect> are the start and end of the partition in "
12693 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12694 "from the end of the disk (C<-1> is the last sector)."
12695 msgstr ""
12696
12697 #. type: textblock
12698 #: ../fish/guestfish-actions.pod:3554
12699 msgid ""
12700 "Creating a partition which covers the whole disk is not so easy.  Use "
12701 "L</part-disk> to do that."
12702 msgstr ""
12703
12704 #. type: =head2
12705 #: ../fish/guestfish-actions.pod:3557
12706 msgid "part-del"
12707 msgstr ""
12708
12709 #. type: verbatim
12710 #: ../fish/guestfish-actions.pod:3559
12711 #, no-wrap
12712 msgid ""
12713 " part-del device partnum\n"
12714 "\n"
12715 msgstr ""
12716
12717 #. type: textblock
12718 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
12719 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12720 msgstr ""
12721
12722 #. type: textblock
12723 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
12724 msgid ""
12725 "Note that in the case of MBR partitioning, deleting an extended partition "
12726 "also deletes any logical partitions it contains."
12727 msgstr ""
12728
12729 #. type: =head2
12730 #: ../fish/guestfish-actions.pod:3567
12731 msgid "part-disk"
12732 msgstr ""
12733
12734 #. type: verbatim
12735 #: ../fish/guestfish-actions.pod:3569
12736 #, no-wrap
12737 msgid ""
12738 " part-disk device parttype\n"
12739 "\n"
12740 msgstr ""
12741
12742 #. type: textblock
12743 #: ../fish/guestfish-actions.pod:3571
12744 msgid ""
12745 "This command is simply a combination of L</part-init> followed by "
12746 "L</part-add> to create a single primary partition covering the whole disk."
12747 msgstr ""
12748
12749 #. type: textblock
12750 #: ../fish/guestfish-actions.pod:3575
12751 msgid ""
12752 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12753 "possible values are described in L</part-init>."
12754 msgstr ""
12755
12756 #. type: =head2
12757 #: ../fish/guestfish-actions.pod:3581
12758 msgid "part-get-bootable"
12759 msgstr ""
12760
12761 #. type: verbatim
12762 #: ../fish/guestfish-actions.pod:3583
12763 #, no-wrap
12764 msgid ""
12765 " part-get-bootable device partnum\n"
12766 "\n"
12767 msgstr ""
12768
12769 #. type: textblock
12770 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
12771 msgid ""
12772 "This command returns true if the partition C<partnum> on C<device> has the "
12773 "bootable flag set."
12774 msgstr ""
12775
12776 #. type: textblock
12777 #: ../fish/guestfish-actions.pod:3588
12778 msgid "See also L</part-set-bootable>."
12779 msgstr ""
12780
12781 #. type: =head2
12782 #: ../fish/guestfish-actions.pod:3590
12783 msgid "part-get-mbr-id"
12784 msgstr ""
12785
12786 #. type: verbatim
12787 #: ../fish/guestfish-actions.pod:3592
12788 #, no-wrap
12789 msgid ""
12790 " part-get-mbr-id device partnum\n"
12791 "\n"
12792 msgstr ""
12793
12794 #. type: textblock
12795 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
12796 msgid ""
12797 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12798 "partition C<partnum>."
12799 msgstr ""
12800
12801 #. type: textblock
12802 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
12803 msgid ""
12804 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12805 "undefined results for other partition table types (see "
12806 "L</part-get-parttype>)."
12807 msgstr ""
12808
12809 #. type: =head2
12810 #: ../fish/guestfish-actions.pod:3601
12811 msgid "part-get-parttype"
12812 msgstr ""
12813
12814 #. type: verbatim
12815 #: ../fish/guestfish-actions.pod:3603
12816 #, no-wrap
12817 msgid ""
12818 " part-get-parttype device\n"
12819 "\n"
12820 msgstr ""
12821
12822 #. type: textblock
12823 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
12824 msgid ""
12825 "This command examines the partition table on C<device> and returns the "
12826 "partition table type (format) being used."
12827 msgstr ""
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:3608
12831 msgid ""
12832 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12833 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12834 "possible, although unusual.  See L</part-init> for a full list."
12835 msgstr ""
12836
12837 #. type: =head2
12838 #: ../fish/guestfish-actions.pod:3613
12839 msgid "part-init"
12840 msgstr ""
12841
12842 #. type: verbatim
12843 #: ../fish/guestfish-actions.pod:3615
12844 #, no-wrap
12845 msgid ""
12846 " part-init device parttype\n"
12847 "\n"
12848 msgstr ""
12849
12850 #. type: textblock
12851 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
12852 msgid ""
12853 "This creates an empty partition table on C<device> of one of the partition "
12854 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12855 "(for large disks)."
12856 msgstr ""
12857
12858 #. type: textblock
12859 #: ../fish/guestfish-actions.pod:3621
12860 msgid ""
12861 "Initially there are no partitions.  Following this, you should call "
12862 "L</part-add> for each partition required."
12863 msgstr ""
12864
12865 #. type: textblock
12866 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
12867 msgid "Possible values for C<parttype> are:"
12868 msgstr ""
12869
12870 #. type: =item
12871 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
12872 msgid "B<efi>"
12873 msgstr ""
12874
12875 #. type: =item
12876 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
12877 msgid "B<gpt>"
12878 msgstr ""
12879
12880 #. type: textblock
12881 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
12882 msgid "Intel EFI / GPT partition table."
12883 msgstr ""
12884
12885 #. type: textblock
12886 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
12887 msgid ""
12888 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12889 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12890 "the C<mbr> format."
12891 msgstr ""
12892
12893 #. type: =item
12894 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
12895 msgid "B<mbr>"
12896 msgstr ""
12897
12898 #. type: =item
12899 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
12900 msgid "B<msdos>"
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
12905 msgid ""
12906 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12907 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12908 "TB.  For large disks we recommend using C<gpt>."
12909 msgstr ""
12910
12911 #. type: textblock
12912 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
12913 msgid "Other partition table types that may work but are not supported include:"
12914 msgstr ""
12915
12916 #. type: =item
12917 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
12918 msgid "B<aix>"
12919 msgstr ""
12920
12921 #. type: textblock
12922 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
12923 msgid "AIX disk labels."
12924 msgstr ""
12925
12926 #. type: =item
12927 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
12928 msgid "B<amiga>"
12929 msgstr ""
12930
12931 #. type: =item
12932 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
12933 msgid "B<rdb>"
12934 msgstr ""
12935
12936 #. type: textblock
12937 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
12938 msgid "Amiga \"Rigid Disk Block\" format."
12939 msgstr ""
12940
12941 #. type: =item
12942 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
12943 msgid "B<bsd>"
12944 msgstr ""
12945
12946 #. type: textblock
12947 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
12948 msgid "BSD disk labels."
12949 msgstr ""
12950
12951 #. type: =item
12952 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
12953 msgid "B<dasd>"
12954 msgstr ""
12955
12956 #. type: textblock
12957 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
12958 msgid "DASD, used on IBM mainframes."
12959 msgstr ""
12960
12961 #. type: =item
12962 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
12963 msgid "B<dvh>"
12964 msgstr ""
12965
12966 #. type: textblock
12967 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
12968 msgid "MIPS/SGI volumes."
12969 msgstr ""
12970
12971 #. type: =item
12972 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
12973 msgid "B<mac>"
12974 msgstr ""
12975
12976 #. type: textblock
12977 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
12978 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12979 msgstr ""
12980
12981 #. type: =item
12982 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
12983 msgid "B<pc98>"
12984 msgstr ""
12985
12986 #. type: textblock
12987 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
12988 msgid "NEC PC-98 format, common in Japan apparently."
12989 msgstr ""
12990
12991 #. type: =item
12992 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
12993 msgid "B<sun>"
12994 msgstr ""
12995
12996 #. type: textblock
12997 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
12998 msgid "Sun disk labels."
12999 msgstr ""
13000
13001 #. type: =head2
13002 #: ../fish/guestfish-actions.pod:3690
13003 msgid "part-list"
13004 msgstr ""
13005
13006 #. type: verbatim
13007 #: ../fish/guestfish-actions.pod:3692
13008 #, no-wrap
13009 msgid ""
13010 " part-list device\n"
13011 "\n"
13012 msgstr ""
13013
13014 #. type: textblock
13015 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
13016 msgid ""
13017 "This command parses the partition table on C<device> and returns the list of "
13018 "partitions found."
13019 msgstr ""
13020
13021 #. type: textblock
13022 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
13023 msgid "The fields in the returned structure are:"
13024 msgstr ""
13025
13026 #. type: =item
13027 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
13028 msgid "B<part_num>"
13029 msgstr ""
13030
13031 #. type: textblock
13032 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
13033 msgid "Partition number, counting from 1."
13034 msgstr ""
13035
13036 #. type: =item
13037 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
13038 msgid "B<part_start>"
13039 msgstr ""
13040
13041 #. type: textblock
13042 #: ../fish/guestfish-actions.pod:3707
13043 msgid ""
13044 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13045 "the device's sector size, see L</blockdev-getss>."
13046 msgstr ""
13047
13048 #. type: =item
13049 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
13050 msgid "B<part_end>"
13051 msgstr ""
13052
13053 #. type: textblock
13054 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
13055 msgid "End of the partition in bytes."
13056 msgstr ""
13057
13058 #. type: =item
13059 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
13060 msgid "B<part_size>"
13061 msgstr ""
13062
13063 #. type: textblock
13064 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
13065 msgid "Size of the partition in bytes."
13066 msgstr ""
13067
13068 #. type: =head2
13069 #: ../fish/guestfish-actions.pod:3720
13070 msgid "part-set-bootable"
13071 msgstr ""
13072
13073 #. type: verbatim
13074 #: ../fish/guestfish-actions.pod:3722
13075 #, no-wrap
13076 msgid ""
13077 " part-set-bootable device partnum true|false\n"
13078 "\n"
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
13083 msgid ""
13084 "This sets the bootable flag on partition numbered C<partnum> on device "
13085 "C<device>.  Note that partitions are numbered from 1."
13086 msgstr ""
13087
13088 #. type: textblock
13089 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
13090 msgid ""
13091 "The bootable flag is used by some operating systems (notably Windows) to "
13092 "determine which partition to boot from.  It is by no means universally "
13093 "recognized."
13094 msgstr ""
13095
13096 #. type: =head2
13097 #: ../fish/guestfish-actions.pod:3731
13098 msgid "part-set-mbr-id"
13099 msgstr ""
13100
13101 #. type: verbatim
13102 #: ../fish/guestfish-actions.pod:3733
13103 #, no-wrap
13104 msgid ""
13105 " part-set-mbr-id device partnum idbyte\n"
13106 "\n"
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
13111 msgid ""
13112 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13113 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13114 "documentation are in fact hexadecimal numbers, but usually documented "
13115 "without any leading \"0x\" which might be confusing."
13116 msgstr ""
13117
13118 #. type: =head2
13119 #: ../fish/guestfish-actions.pod:3745
13120 msgid "part-set-name"
13121 msgstr ""
13122
13123 #. type: verbatim
13124 #: ../fish/guestfish-actions.pod:3747
13125 #, no-wrap
13126 msgid ""
13127 " part-set-name device partnum name\n"
13128 "\n"
13129 msgstr ""
13130
13131 #. type: textblock
13132 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
13133 msgid ""
13134 "This sets the partition name on partition numbered C<partnum> on device "
13135 "C<device>.  Note that partitions are numbered from 1."
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
13140 msgid ""
13141 "The partition name can only be set on certain types of partition table.  "
13142 "This works on C<gpt> but not on C<mbr> partitions."
13143 msgstr ""
13144
13145 #. type: =head2
13146 #: ../fish/guestfish-actions.pod:3755
13147 msgid "part-to-dev"
13148 msgstr ""
13149
13150 #. type: verbatim
13151 #: ../fish/guestfish-actions.pod:3757
13152 #, no-wrap
13153 msgid ""
13154 " part-to-dev partition\n"
13155 "\n"
13156 msgstr ""
13157
13158 #. type: textblock
13159 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
13160 msgid ""
13161 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13162 "partition number, returning the device name (eg. \"/dev/sdb\")."
13163 msgstr ""
13164
13165 #. type: textblock
13166 #: ../fish/guestfish-actions.pod:3763
13167 msgid ""
13168 "The named partition must exist, for example as a string returned from "
13169 "L</list-partitions>."
13170 msgstr ""
13171
13172 #. type: =head2
13173 #: ../fish/guestfish-actions.pod:3766
13174 msgid "ping-daemon"
13175 msgstr ""
13176
13177 #. type: verbatim
13178 #: ../fish/guestfish-actions.pod:3768
13179 #, no-wrap
13180 msgid ""
13181 " ping-daemon\n"
13182 "\n"
13183 msgstr ""
13184
13185 #. type: textblock
13186 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
13187 msgid ""
13188 "This is a test probe into the guestfs daemon running inside the qemu "
13189 "subprocess.  Calling this function checks that the daemon responds to the "
13190 "ping message, without affecting the daemon or attached block device(s) in "
13191 "any other way."
13192 msgstr ""
13193
13194 #. type: =head2
13195 #: ../fish/guestfish-actions.pod:3775
13196 msgid "pread"
13197 msgstr ""
13198
13199 #. type: verbatim
13200 #: ../fish/guestfish-actions.pod:3777
13201 #, no-wrap
13202 msgid ""
13203 " pread path count offset\n"
13204 "\n"
13205 msgstr ""
13206
13207 #. type: textblock
13208 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
13209 msgid ""
13210 "This command lets you read part of a file.  It reads C<count> bytes of the "
13211 "file, starting at C<offset>, from file C<path>."
13212 msgstr ""
13213
13214 #. type: textblock
13215 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797 ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
13216 msgid ""
13217 "This may read fewer bytes than requested.  For further details see the "
13218 "L<pread(2)> system call."
13219 msgstr ""
13220
13221 #. type: textblock
13222 #: ../fish/guestfish-actions.pod:3785
13223 msgid "See also L</pwrite>, L</pread-device>."
13224 msgstr ""
13225
13226 #. type: =head2
13227 #: ../fish/guestfish-actions.pod:3790
13228 msgid "pread-device"
13229 msgstr ""
13230
13231 #. type: verbatim
13232 #: ../fish/guestfish-actions.pod:3792
13233 #, no-wrap
13234 msgid ""
13235 " pread-device device count offset\n"
13236 "\n"
13237 msgstr ""
13238
13239 #. type: textblock
13240 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
13241 msgid ""
13242 "This command lets you read part of a file.  It reads C<count> bytes of "
13243 "C<device>, starting at C<offset>."
13244 msgstr ""
13245
13246 #. type: textblock
13247 #: ../fish/guestfish-actions.pod:3800
13248 msgid "See also L</pread>."
13249 msgstr ""
13250
13251 #. type: =head2
13252 #: ../fish/guestfish-actions.pod:3805
13253 msgid "pvcreate"
13254 msgstr ""
13255
13256 #. type: verbatim
13257 #: ../fish/guestfish-actions.pod:3807
13258 #, no-wrap
13259 msgid ""
13260 " pvcreate device\n"
13261 "\n"
13262 msgstr ""
13263
13264 #. type: textblock
13265 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
13266 msgid ""
13267 "This creates an LVM physical volume on the named C<device>, where C<device> "
13268 "should usually be a partition name such as C</dev/sda1>."
13269 msgstr ""
13270
13271 #. type: =head2
13272 #: ../fish/guestfish-actions.pod:3813
13273 msgid "pvremove"
13274 msgstr ""
13275
13276 #. type: verbatim
13277 #: ../fish/guestfish-actions.pod:3815
13278 #, no-wrap
13279 msgid ""
13280 " pvremove device\n"
13281 "\n"
13282 msgstr ""
13283
13284 #. type: textblock
13285 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
13286 msgid ""
13287 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13288 "it."
13289 msgstr ""
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
13293 msgid ""
13294 "The implementation uses the C<pvremove> command which refuses to wipe "
13295 "physical volumes that contain any volume groups, so you have to remove those "
13296 "first."
13297 msgstr ""
13298
13299 #. type: =head2
13300 #: ../fish/guestfish-actions.pod:3824
13301 msgid "pvresize"
13302 msgstr ""
13303
13304 #. type: verbatim
13305 #: ../fish/guestfish-actions.pod:3826
13306 #, no-wrap
13307 msgid ""
13308 " pvresize device\n"
13309 "\n"
13310 msgstr ""
13311
13312 #. type: textblock
13313 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
13314 msgid ""
13315 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13316 "the new size of the underlying device."
13317 msgstr ""
13318
13319 #. type: =head2
13320 #: ../fish/guestfish-actions.pod:3831
13321 msgid "pvresize-size"
13322 msgstr ""
13323
13324 #. type: verbatim
13325 #: ../fish/guestfish-actions.pod:3833
13326 #, no-wrap
13327 msgid ""
13328 " pvresize-size device size\n"
13329 "\n"
13330 msgstr ""
13331
13332 #. type: textblock
13333 #: ../fish/guestfish-actions.pod:3835
13334 msgid ""
13335 "This command is the same as L</pvresize> except that it allows you to "
13336 "specify the new size (in bytes) explicitly."
13337 msgstr ""
13338
13339 #. type: =head2
13340 #: ../fish/guestfish-actions.pod:3838
13341 msgid "pvs"
13342 msgstr ""
13343
13344 #. type: verbatim
13345 #: ../fish/guestfish-actions.pod:3840
13346 #, no-wrap
13347 msgid ""
13348 " pvs\n"
13349 "\n"
13350 msgstr ""
13351
13352 #. type: textblock
13353 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
13354 msgid ""
13355 "List all the physical volumes detected.  This is the equivalent of the "
13356 "L<pvs(8)> command."
13357 msgstr ""
13358
13359 #. type: textblock
13360 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
13361 msgid ""
13362 "This returns a list of just the device names that contain PVs "
13363 "(eg. C</dev/sda2>)."
13364 msgstr ""
13365
13366 #. type: textblock
13367 #: ../fish/guestfish-actions.pod:3848
13368 msgid "See also L</pvs-full>."
13369 msgstr ""
13370
13371 #. type: =head2
13372 #: ../fish/guestfish-actions.pod:3850
13373 msgid "pvs-full"
13374 msgstr ""
13375
13376 #. type: verbatim
13377 #: ../fish/guestfish-actions.pod:3852
13378 #, no-wrap
13379 msgid ""
13380 " pvs-full\n"
13381 "\n"
13382 msgstr ""
13383
13384 #. type: textblock
13385 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
13386 msgid ""
13387 "List all the physical volumes detected.  This is the equivalent of the "
13388 "L<pvs(8)> command.  The \"full\" version includes all fields."
13389 msgstr ""
13390
13391 #. type: =head2
13392 #: ../fish/guestfish-actions.pod:3857
13393 msgid "pvuuid"
13394 msgstr ""
13395
13396 #. type: verbatim
13397 #: ../fish/guestfish-actions.pod:3859
13398 #, no-wrap
13399 msgid ""
13400 " pvuuid device\n"
13401 "\n"
13402 msgstr ""
13403
13404 #. type: textblock
13405 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
13406 msgid "This command returns the UUID of the LVM PV C<device>."
13407 msgstr ""
13408
13409 #. type: =head2
13410 #: ../fish/guestfish-actions.pod:3863
13411 msgid "pwrite"
13412 msgstr ""
13413
13414 #. type: verbatim
13415 #: ../fish/guestfish-actions.pod:3865
13416 #, no-wrap
13417 msgid ""
13418 " pwrite path content offset\n"
13419 "\n"
13420 msgstr ""
13421
13422 #. type: textblock
13423 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
13424 msgid ""
13425 "This command writes to part of a file.  It writes the data buffer C<content> "
13426 "to the file C<path> starting at offset C<offset>."
13427 msgstr ""
13428
13429 #. type: textblock
13430 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
13431 msgid ""
13432 "This command implements the L<pwrite(2)> system call, and like that system "
13433 "call it may not write the full data requested.  The return value is the "
13434 "number of bytes that were actually written to the file.  This could even be "
13435 "0, although short writes are unlikely for regular files in ordinary "
13436 "circumstances."
13437 msgstr ""
13438
13439 #. type: textblock
13440 #: ../fish/guestfish-actions.pod:3876
13441 msgid "See also L</pread>, L</pwrite-device>."
13442 msgstr ""
13443
13444 #. type: =head2
13445 #: ../fish/guestfish-actions.pod:3881
13446 msgid "pwrite-device"
13447 msgstr ""
13448
13449 #. type: verbatim
13450 #: ../fish/guestfish-actions.pod:3883
13451 #, no-wrap
13452 msgid ""
13453 " pwrite-device device content offset\n"
13454 "\n"
13455 msgstr ""
13456
13457 #. type: textblock
13458 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
13459 msgid ""
13460 "This command writes to part of a device.  It writes the data buffer "
13461 "C<content> to C<device> starting at offset C<offset>."
13462 msgstr ""
13463
13464 #. type: textblock
13465 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
13466 msgid ""
13467 "This command implements the L<pwrite(2)> system call, and like that system "
13468 "call it may not write the full data requested (although short writes to disk "
13469 "devices and partitions are probably impossible with standard Linux kernels)."
13470 msgstr ""
13471
13472 #. type: textblock
13473 #: ../fish/guestfish-actions.pod:3893
13474 msgid "See also L</pwrite>."
13475 msgstr ""
13476
13477 #. type: =head2
13478 #: ../fish/guestfish-actions.pod:3898
13479 msgid "read-file"
13480 msgstr ""
13481
13482 #. type: verbatim
13483 #: ../fish/guestfish-actions.pod:3900
13484 #, no-wrap
13485 msgid ""
13486 " read-file path\n"
13487 "\n"
13488 msgstr ""
13489
13490 #. type: textblock
13491 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
13492 msgid "This calls returns the contents of the file C<path> as a buffer."
13493 msgstr ""
13494
13495 #. type: textblock
13496 #: ../fish/guestfish-actions.pod:3905
13497 msgid ""
13498 "Unlike L</cat>, this function can correctly handle files that contain "
13499 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13500 "is limited in the total size of file that can be handled."
13501 msgstr ""
13502
13503 #. type: =head2
13504 #: ../fish/guestfish-actions.pod:3913
13505 msgid "read-lines"
13506 msgstr ""
13507
13508 #. type: verbatim
13509 #: ../fish/guestfish-actions.pod:3915
13510 #, no-wrap
13511 msgid ""
13512 " read-lines path\n"
13513 "\n"
13514 msgstr ""
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
13518 msgid ""
13519 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13520 "C<CRLF> character sequences are I<not> returned."
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:3922
13525 msgid ""
13526 "Note that this function cannot correctly handle binary files (specifically, "
13527 "files containing C<\\0> character which is treated as end of line).  For "
13528 "those you need to use the L</read-file> function which has a more complex "
13529 "interface."
13530 msgstr ""
13531
13532 #. type: =head2
13533 #: ../fish/guestfish-actions.pod:3927
13534 msgid "readdir"
13535 msgstr ""
13536
13537 #. type: verbatim
13538 #: ../fish/guestfish-actions.pod:3929
13539 #, no-wrap
13540 msgid ""
13541 " readdir dir\n"
13542 "\n"
13543 msgstr ""
13544
13545 #. type: textblock
13546 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
13547 msgid "This returns the list of directory entries in directory C<dir>."
13548 msgstr ""
13549
13550 #. type: textblock
13551 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
13552 msgid ""
13553 "All entries in the directory are returned, including C<.> and C<..>.  The "
13554 "entries are I<not> sorted, but returned in the same order as the underlying "
13555 "filesystem."
13556 msgstr ""
13557
13558 #. type: textblock
13559 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
13560 msgid ""
13561 "Also this call returns basic file type information about each file.  The "
13562 "C<ftyp> field will contain one of the following characters:"
13563 msgstr ""
13564
13565 #. type: =item
13566 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
13567 msgid "'b'"
13568 msgstr ""
13569
13570 #. type: textblock
13571 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
13572 msgid "Block special"
13573 msgstr ""
13574
13575 #. type: =item
13576 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
13577 msgid "'c'"
13578 msgstr ""
13579
13580 #. type: textblock
13581 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
13582 msgid "Char special"
13583 msgstr ""
13584
13585 #. type: =item
13586 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
13587 msgid "'d'"
13588 msgstr ""
13589
13590 #. type: textblock
13591 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
13592 msgid "Directory"
13593 msgstr ""
13594
13595 #. type: =item
13596 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
13597 msgid "'f'"
13598 msgstr ""
13599
13600 #. type: textblock
13601 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
13602 msgid "FIFO (named pipe)"
13603 msgstr ""
13604
13605 #. type: =item
13606 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
13607 msgid "'l'"
13608 msgstr ""
13609
13610 #. type: textblock
13611 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
13612 msgid "Symbolic link"
13613 msgstr ""
13614
13615 #. type: =item
13616 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
13617 msgid "'r'"
13618 msgstr ""
13619
13620 #. type: textblock
13621 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
13622 msgid "Regular file"
13623 msgstr ""
13624
13625 #. type: =item
13626 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
13627 msgid "'s'"
13628 msgstr ""
13629
13630 #. type: textblock
13631 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
13632 msgid "Socket"
13633 msgstr ""
13634
13635 #. type: =item
13636 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
13637 msgid "'u'"
13638 msgstr ""
13639
13640 #. type: textblock
13641 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
13642 msgid "Unknown file type"
13643 msgstr ""
13644
13645 #. type: =item
13646 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
13647 msgid "'?'"
13648 msgstr ""
13649
13650 #. type: textblock
13651 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
13652 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13653 msgstr ""
13654
13655 #. type: textblock
13656 #: ../fish/guestfish-actions.pod:3981
13657 msgid ""
13658 "This function is primarily intended for use by programs.  To get a simple "
13659 "list of names, use L</ls>.  To get a printable directory for human "
13660 "consumption, use L</ll>."
13661 msgstr ""
13662
13663 #. type: =head2
13664 #: ../fish/guestfish-actions.pod:3985
13665 msgid "readlink"
13666 msgstr ""
13667
13668 #. type: verbatim
13669 #: ../fish/guestfish-actions.pod:3987
13670 #, no-wrap
13671 msgid ""
13672 " readlink path\n"
13673 "\n"
13674 msgstr ""
13675
13676 #. type: textblock
13677 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
13678 msgid "This command reads the target of a symbolic link."
13679 msgstr ""
13680
13681 #. type: =head2
13682 #: ../fish/guestfish-actions.pod:3991
13683 msgid "readlinklist"
13684 msgstr ""
13685
13686 #. type: verbatim
13687 #: ../fish/guestfish-actions.pod:3993
13688 #, no-wrap
13689 msgid ""
13690 " readlinklist path 'names ...'\n"
13691 "\n"
13692 msgstr ""
13693
13694 #. type: textblock
13695 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
13696 msgid ""
13697 "This call allows you to do a C<readlink> operation on multiple files, where "
13698 "all files are in the directory C<path>.  C<names> is the list of files from "
13699 "this directory."
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
13704 msgid ""
13705 "On return you get a list of strings, with a one-to-one correspondence to the "
13706 "C<names> list.  Each string is the value of the symbolic link."
13707 msgstr ""
13708
13709 #. type: textblock
13710 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
13711 msgid ""
13712 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13713 "result string is the empty string C<\"\">.  However the whole operation is "
13714 "completed even if there were C<readlink(2)> errors, and so you can call this "
13715 "function with names where you don't know if they are symbolic links already "
13716 "(albeit slightly less efficient)."
13717 msgstr ""
13718
13719 #. type: textblock
13720 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
13721 msgid ""
13722 "This call is intended for programs that want to efficiently list a directory "
13723 "contents without making many round-trips.  Very long directory listings "
13724 "might cause the protocol message size to be exceeded, causing this call to "
13725 "fail.  The caller must split up such requests into smaller groups of names."
13726 msgstr ""
13727
13728 #. type: =head2
13729 #: ../fish/guestfish-actions.pod:4017
13730 msgid "realpath"
13731 msgstr ""
13732
13733 #. type: verbatim
13734 #: ../fish/guestfish-actions.pod:4019
13735 #, no-wrap
13736 msgid ""
13737 " realpath path\n"
13738 "\n"
13739 msgstr ""
13740
13741 #. type: textblock
13742 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
13743 msgid ""
13744 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13745 "has no C<.>, C<..> or symbolic link path elements."
13746 msgstr ""
13747
13748 #. type: =head2
13749 #: ../fish/guestfish-actions.pod:4024
13750 msgid "removexattr"
13751 msgstr ""
13752
13753 #. type: verbatim
13754 #: ../fish/guestfish-actions.pod:4026
13755 #, no-wrap
13756 msgid ""
13757 " removexattr xattr path\n"
13758 "\n"
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
13763 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
13764 msgstr ""
13765
13766 #. type: textblock
13767 #: ../fish/guestfish-actions.pod:4031
13768 msgid "See also: L</lremovexattr>, L<attr(5)>."
13769 msgstr ""
13770
13771 #. type: =head2
13772 #: ../fish/guestfish-actions.pod:4033
13773 msgid "resize2fs"
13774 msgstr ""
13775
13776 #. type: verbatim
13777 #: ../fish/guestfish-actions.pod:4035
13778 #, no-wrap
13779 msgid ""
13780 " resize2fs device\n"
13781 "\n"
13782 msgstr ""
13783
13784 #. type: textblock
13785 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
13786 msgid ""
13787 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13788 "underlying device."
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../fish/guestfish-actions.pod:4040
13793 msgid ""
13794 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13795 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13796 "gives an error about this and sometimes not.  In any case, it is always safe "
13797 "to call L</e2fsck-f> before calling this function."
13798 msgstr ""
13799
13800 #. type: =head2
13801 #: ../fish/guestfish-actions.pod:4046
13802 msgid "resize2fs-M"
13803 msgstr ""
13804
13805 #. type: verbatim
13806 #: ../fish/guestfish-actions.pod:4048
13807 #, no-wrap
13808 msgid ""
13809 " resize2fs-M device\n"
13810 "\n"
13811 msgstr ""
13812
13813 #. type: textblock
13814 #: ../fish/guestfish-actions.pod:4050
13815 msgid ""
13816 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13817 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13818 "command."
13819 msgstr ""
13820
13821 #. type: textblock
13822 #: ../fish/guestfish-actions.pod:4054
13823 msgid ""
13824 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13825 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13826 "multiplied together, give the resulting size of the minimal filesystem in "
13827 "bytes."
13828 msgstr ""
13829
13830 #. type: =head2
13831 #: ../fish/guestfish-actions.pod:4059
13832 msgid "resize2fs-size"
13833 msgstr ""
13834
13835 #. type: verbatim
13836 #: ../fish/guestfish-actions.pod:4061
13837 #, no-wrap
13838 msgid ""
13839 " resize2fs-size device size\n"
13840 "\n"
13841 msgstr ""
13842
13843 #. type: textblock
13844 #: ../fish/guestfish-actions.pod:4063
13845 msgid ""
13846 "This command is the same as L</resize2fs> except that it allows you to "
13847 "specify the new size (in bytes) explicitly."
13848 msgstr ""
13849
13850 #. type: =head2
13851 #: ../fish/guestfish-actions.pod:4066
13852 msgid "rm"
13853 msgstr ""
13854
13855 #. type: verbatim
13856 #: ../fish/guestfish-actions.pod:4068
13857 #, no-wrap
13858 msgid ""
13859 " rm path\n"
13860 "\n"
13861 msgstr ""
13862
13863 #. type: textblock
13864 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
13865 msgid "Remove the single file C<path>."
13866 msgstr ""
13867
13868 #. type: =head2
13869 #: ../fish/guestfish-actions.pod:4072
13870 msgid "rm-rf"
13871 msgstr ""
13872
13873 #. type: verbatim
13874 #: ../fish/guestfish-actions.pod:4074
13875 #, no-wrap
13876 msgid ""
13877 " rm-rf path\n"
13878 "\n"
13879 msgstr ""
13880
13881 #. type: textblock
13882 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
13883 msgid ""
13884 "Remove the file or directory C<path>, recursively removing the contents if "
13885 "its a directory.  This is like the C<rm -rf> shell command."
13886 msgstr ""
13887
13888 #. type: =head2
13889 #: ../fish/guestfish-actions.pod:4080
13890 msgid "rmdir"
13891 msgstr ""
13892
13893 #. type: verbatim
13894 #: ../fish/guestfish-actions.pod:4082
13895 #, no-wrap
13896 msgid ""
13897 " rmdir path\n"
13898 "\n"
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
13903 msgid "Remove the single directory C<path>."
13904 msgstr ""
13905
13906 #. type: =head2
13907 #: ../fish/guestfish-actions.pod:4086
13908 msgid "rmmountpoint"
13909 msgstr ""
13910
13911 #. type: verbatim
13912 #: ../fish/guestfish-actions.pod:4088
13913 #, no-wrap
13914 msgid ""
13915 " rmmountpoint exemptpath\n"
13916 "\n"
13917 msgstr ""
13918
13919 #. type: textblock
13920 #: ../fish/guestfish-actions.pod:4090
13921 msgid ""
13922 "This calls removes a mountpoint that was previously created with "
13923 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
13924 msgstr ""
13925
13926 #. type: =head2
13927 #: ../fish/guestfish-actions.pod:4094
13928 msgid "scrub-device"
13929 msgstr ""
13930
13931 #. type: verbatim
13932 #: ../fish/guestfish-actions.pod:4096
13933 #, no-wrap
13934 msgid ""
13935 " scrub-device device\n"
13936 "\n"
13937 msgstr ""
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
13941 msgid ""
13942 "This command writes patterns over C<device> to make data retrieval more "
13943 "difficult."
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116 ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
13948 msgid ""
13949 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13950 "more details."
13951 msgstr ""
13952
13953 #. type: =head2
13954 #: ../fish/guestfish-actions.pod:4107
13955 msgid "scrub-file"
13956 msgstr ""
13957
13958 #. type: verbatim
13959 #: ../fish/guestfish-actions.pod:4109
13960 #, no-wrap
13961 msgid ""
13962 " scrub-file file\n"
13963 "\n"
13964 msgstr ""
13965
13966 #. type: textblock
13967 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
13968 msgid ""
13969 "This command writes patterns over a file to make data retrieval more "
13970 "difficult."
13971 msgstr ""
13972
13973 #. type: textblock
13974 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
13975 msgid "The file is I<removed> after scrubbing."
13976 msgstr ""
13977
13978 #. type: =head2
13979 #: ../fish/guestfish-actions.pod:4119
13980 msgid "scrub-freespace"
13981 msgstr ""
13982
13983 #. type: verbatim
13984 #: ../fish/guestfish-actions.pod:4121
13985 #, no-wrap
13986 msgid ""
13987 " scrub-freespace dir\n"
13988 "\n"
13989 msgstr ""
13990
13991 #. type: textblock
13992 #: ../fish/guestfish-actions.pod:4123
13993 msgid ""
13994 "This command creates the directory C<dir> and then fills it with files until "
13995 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13996 "deletes them.  The intention is to scrub any free space on the partition "
13997 "containing C<dir>."
13998 msgstr ""
13999
14000 #. type: =head2
14001 #: ../fish/guestfish-actions.pod:4132
14002 msgid "set-append"
14003 msgstr ""
14004
14005 #. type: =head2
14006 #: ../fish/guestfish-actions.pod:4134
14007 msgid "append"
14008 msgstr ""
14009
14010 #. type: verbatim
14011 #: ../fish/guestfish-actions.pod:4136
14012 #, no-wrap
14013 msgid ""
14014 " set-append append\n"
14015 "\n"
14016 msgstr ""
14017
14018 #. type: textblock
14019 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
14020 msgid ""
14021 "This function is used to add additional options to the guest kernel command "
14022 "line."
14023 msgstr ""
14024
14025 #. type: textblock
14026 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
14027 msgid ""
14028 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14029 "environment variable."
14030 msgstr ""
14031
14032 #. type: textblock
14033 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
14034 msgid ""
14035 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14036 "(libguestfs always adds a few of its own)."
14037 msgstr ""
14038
14039 #. type: =head2
14040 #: ../fish/guestfish-actions.pod:4147
14041 msgid "set-attach-method"
14042 msgstr ""
14043
14044 #. type: =head2
14045 #: ../fish/guestfish-actions.pod:4149
14046 msgid "attach-method"
14047 msgstr ""
14048
14049 #. type: verbatim
14050 #: ../fish/guestfish-actions.pod:4151
14051 #, no-wrap
14052 msgid ""
14053 " set-attach-method attachmethod\n"
14054 "\n"
14055 msgstr ""
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
14059 msgid ""
14060 "Set the method that libguestfs uses to connect to the back end guestfsd "
14061 "daemon.  Possible methods are:"
14062 msgstr ""
14063
14064 #. type: =item
14065 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344 ../src/guestfs.pod:2901
14066 msgid "C<appliance>"
14067 msgstr ""
14068
14069 #. type: textblock
14070 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
14071 msgid ""
14072 "Launch an appliance and connect to it.  This is the ordinary method and the "
14073 "default."
14074 msgstr ""
14075
14076 #. type: =item
14077 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
14078 msgid "C<unix:I<path>>"
14079 msgstr ""
14080
14081 #. type: textblock
14082 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
14083 msgid "Connect to the Unix domain socket I<path>."
14084 msgstr ""
14085
14086 #. type: textblock
14087 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
14088 msgid ""
14089 "This method lets you connect to an existing daemon or (using virtio-serial) "
14090 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14091 "RUNNING DAEMONS>."
14092 msgstr ""
14093
14094 #. type: =head2
14095 #: ../fish/guestfish-actions.pod:4173
14096 msgid "set-autosync"
14097 msgstr ""
14098
14099 #. type: =head2
14100 #: ../fish/guestfish-actions.pod:4175
14101 msgid "autosync"
14102 msgstr ""
14103
14104 #. type: verbatim
14105 #: ../fish/guestfish-actions.pod:4177
14106 #, no-wrap
14107 msgid ""
14108 " set-autosync true|false\n"
14109 "\n"
14110 msgstr ""
14111
14112 #. type: textblock
14113 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
14114 msgid ""
14115 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14116 "effort attempt to make filesystems consistent and synchronized when the "
14117 "handle is closed (also if the program exits without closing handles)."
14118 msgstr ""
14119
14120 #. type: textblock
14121 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
14122 msgid ""
14123 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14124 "disabled by default)."
14125 msgstr ""
14126
14127 #. type: =head2
14128 #: ../fish/guestfish-actions.pod:4187
14129 msgid "set-direct"
14130 msgstr ""
14131
14132 #. type: =head2
14133 #: ../fish/guestfish-actions.pod:4189
14134 msgid "direct"
14135 msgstr ""
14136
14137 #. type: verbatim
14138 #: ../fish/guestfish-actions.pod:4191
14139 #, no-wrap
14140 msgid ""
14141 " set-direct true|false\n"
14142 "\n"
14143 msgstr ""
14144
14145 #. type: textblock
14146 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
14147 msgid ""
14148 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14149 "passed directly through to the appliance once it is launched."
14150 msgstr ""
14151
14152 #. type: textblock
14153 #: ../fish/guestfish-actions.pod:4197
14154 msgid ""
14155 "One consequence of this is that log messages aren't caught by the library "
14156 "and handled by L</set-log-message-callback>, but go straight to stdout."
14157 msgstr ""
14158
14159 #. type: textblock
14160 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
14161 msgid "You probably don't want to use this unless you know what you are doing."
14162 msgstr ""
14163
14164 #. type: textblock
14165 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
14166 msgid "The default is disabled."
14167 msgstr ""
14168
14169 #. type: =head2
14170 #: ../fish/guestfish-actions.pod:4206
14171 msgid "set-e2label"
14172 msgstr ""
14173
14174 #. type: verbatim
14175 #: ../fish/guestfish-actions.pod:4208
14176 #, no-wrap
14177 msgid ""
14178 " set-e2label device label\n"
14179 "\n"
14180 msgstr ""
14181
14182 #. type: textblock
14183 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
14184 msgid ""
14185 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14186 "C<label>.  Filesystem labels are limited to 16 characters."
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:4214
14191 msgid ""
14192 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14193 "label on a filesystem."
14194 msgstr ""
14195
14196 #. type: =head2
14197 #: ../fish/guestfish-actions.pod:4217
14198 msgid "set-e2uuid"
14199 msgstr ""
14200
14201 #. type: verbatim
14202 #: ../fish/guestfish-actions.pod:4219
14203 #, no-wrap
14204 msgid ""
14205 " set-e2uuid device uuid\n"
14206 "\n"
14207 msgstr ""
14208
14209 #. type: textblock
14210 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
14211 msgid ""
14212 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14213 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14214 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14215 msgstr ""
14216
14217 #. type: textblock
14218 #: ../fish/guestfish-actions.pod:4226
14219 msgid ""
14220 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14221 "UUID of a filesystem."
14222 msgstr ""
14223
14224 #. type: =head2
14225 #: ../fish/guestfish-actions.pod:4229
14226 msgid "set-memsize"
14227 msgstr ""
14228
14229 #. type: =head2
14230 #: ../fish/guestfish-actions.pod:4231
14231 msgid "memsize"
14232 msgstr ""
14233
14234 #. type: verbatim
14235 #: ../fish/guestfish-actions.pod:4233
14236 #, no-wrap
14237 msgid ""
14238 " set-memsize memsize\n"
14239 "\n"
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:4235
14244 msgid ""
14245 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14246 "This only has any effect if called before L</launch>."
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
14251 msgid ""
14252 "You can also change this by setting the environment variable "
14253 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14254 msgstr ""
14255
14256 #. type: =head2
14257 #: ../fish/guestfish-actions.pod:4246
14258 msgid "set-network"
14259 msgstr ""
14260
14261 #. type: =head2
14262 #: ../fish/guestfish-actions.pod:4248
14263 msgid "network"
14264 msgstr ""
14265
14266 #. type: verbatim
14267 #: ../fish/guestfish-actions.pod:4250
14268 #, no-wrap
14269 msgid ""
14270 " set-network true|false\n"
14271 "\n"
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
14276 msgid ""
14277 "If C<network> is true, then the network is enabled in the libguestfs "
14278 "appliance.  The default is false."
14279 msgstr ""
14280
14281 #. type: textblock
14282 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
14283 msgid ""
14284 "This affects whether commands are able to access the network (see "
14285 "L<guestfs(3)/RUNNING COMMANDS>)."
14286 msgstr ""
14287
14288 #. type: textblock
14289 #: ../fish/guestfish-actions.pod:4258
14290 msgid "You must call this before calling L</launch>, otherwise it has no effect."
14291 msgstr ""
14292
14293 #. type: =head2
14294 #: ../fish/guestfish-actions.pod:4261
14295 msgid "set-path"
14296 msgstr ""
14297
14298 #. type: verbatim
14299 #: ../fish/guestfish-actions.pod:4265
14300 #, no-wrap
14301 msgid ""
14302 " set-path searchpath\n"
14303 "\n"
14304 msgstr ""
14305
14306 #. type: textblock
14307 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
14308 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14309 msgstr ""
14310
14311 #. type: textblock
14312 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
14313 msgid ""
14314 "The default is C<$libdir/guestfs> unless overridden by setting "
14315 "C<LIBGUESTFS_PATH> environment variable."
14316 msgstr ""
14317
14318 #. type: textblock
14319 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
14320 msgid "Setting C<path> to C<NULL> restores the default path."
14321 msgstr ""
14322
14323 #. type: =head2
14324 #: ../fish/guestfish-actions.pod:4274
14325 msgid "set-pgroup"
14326 msgstr ""
14327
14328 #. type: =head2
14329 #: ../fish/guestfish-actions.pod:4276
14330 msgid "pgroup"
14331 msgstr ""
14332
14333 #. type: verbatim
14334 #: ../fish/guestfish-actions.pod:4278
14335 #, no-wrap
14336 msgid ""
14337 " set-pgroup true|false\n"
14338 "\n"
14339 msgstr ""
14340
14341 #. type: textblock
14342 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
14343 msgid ""
14344 "If C<pgroup> is true, child processes are placed into their own process "
14345 "group."
14346 msgstr ""
14347
14348 #. type: textblock
14349 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
14350 msgid ""
14351 "The practical upshot of this is that signals like C<SIGINT> (from users "
14352 "pressing C<^C>) won't be received by the child process."
14353 msgstr ""
14354
14355 #. type: textblock
14356 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
14357 msgid ""
14358 "The default for this flag is false, because usually you want C<^C> to kill "
14359 "the subprocess."
14360 msgstr ""
14361
14362 #. type: =head2
14363 #: ../fish/guestfish-actions.pod:4289
14364 msgid "set-qemu"
14365 msgstr ""
14366
14367 #. type: =head2
14368 #: ../fish/guestfish-actions.pod:4291
14369 msgid "qemu"
14370 msgstr ""
14371
14372 #. type: verbatim
14373 #: ../fish/guestfish-actions.pod:4293
14374 #, no-wrap
14375 msgid ""
14376 " set-qemu qemu\n"
14377 "\n"
14378 msgstr ""
14379
14380 #. type: textblock
14381 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
14382 msgid "Set the qemu binary that we will use."
14383 msgstr ""
14384
14385 #. type: textblock
14386 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
14387 msgid "The default is chosen when the library was compiled by the configure script."
14388 msgstr ""
14389
14390 #. type: textblock
14391 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
14392 msgid ""
14393 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14394 "variable."
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
14399 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14400 msgstr ""
14401
14402 #. type: textblock
14403 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
14404 msgid ""
14405 "Note that you should call this function as early as possible after creating "
14406 "the handle.  This is because some pre-launch operations depend on testing "
14407 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14408 "don't retest features, and so you might see inconsistent results.  Using the "
14409 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14410 "the qemu binary at the same time as the handle is created."
14411 msgstr ""
14412
14413 #. type: =head2
14414 #: ../fish/guestfish-actions.pod:4313
14415 msgid "set-recovery-proc"
14416 msgstr ""
14417
14418 #. type: =head2
14419 #: ../fish/guestfish-actions.pod:4315
14420 msgid "recovery-proc"
14421 msgstr ""
14422
14423 #. type: verbatim
14424 #: ../fish/guestfish-actions.pod:4317
14425 #, no-wrap
14426 msgid ""
14427 " set-recovery-proc true|false\n"
14428 "\n"
14429 msgstr ""
14430
14431 #. type: textblock
14432 #: ../fish/guestfish-actions.pod:4319
14433 msgid ""
14434 "If this is called with the parameter C<false> then L</launch> does not "
14435 "create a recovery process.  The purpose of the recovery process is to stop "
14436 "runaway qemu processes in the case where the main program aborts abruptly."
14437 msgstr ""
14438
14439 #. type: textblock
14440 #: ../fish/guestfish-actions.pod:4324
14441 msgid ""
14442 "This only has any effect if called before L</launch>, and the default is "
14443 "true."
14444 msgstr ""
14445
14446 #. type: textblock
14447 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
14448 msgid ""
14449 "About the only time when you would want to disable this is if the main "
14450 "process will fork itself into the background (\"daemonize\" itself).  In "
14451 "this case the recovery process thinks that the main program has disappeared "
14452 "and so kills qemu, which is not very helpful."
14453 msgstr ""
14454
14455 #. type: =head2
14456 #: ../fish/guestfish-actions.pod:4333
14457 msgid "set-selinux"
14458 msgstr ""
14459
14460 #. type: =head2
14461 #: ../fish/guestfish-actions.pod:4335
14462 msgid "selinux"
14463 msgstr ""
14464
14465 #. type: verbatim
14466 #: ../fish/guestfish-actions.pod:4337
14467 #, no-wrap
14468 msgid ""
14469 " set-selinux true|false\n"
14470 "\n"
14471 msgstr ""
14472
14473 #. type: textblock
14474 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
14475 msgid ""
14476 "This sets the selinux flag that is passed to the appliance at boot time.  "
14477 "The default is C<selinux=0> (disabled)."
14478 msgstr ""
14479
14480 #. type: textblock
14481 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
14482 msgid ""
14483 "Note that if SELinux is enabled, it is always in Permissive mode "
14484 "(C<enforcing=0>)."
14485 msgstr ""
14486
14487 #. type: =head2
14488 #: ../fish/guestfish-actions.pod:4348
14489 msgid "set-smp"
14490 msgstr ""
14491
14492 #. type: =head2
14493 #: ../fish/guestfish-actions.pod:4350
14494 msgid "smp"
14495 msgstr ""
14496
14497 #. type: verbatim
14498 #: ../fish/guestfish-actions.pod:4352
14499 #, no-wrap
14500 msgid ""
14501 " set-smp smp\n"
14502 "\n"
14503 msgstr ""
14504
14505 #. type: textblock
14506 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
14507 msgid ""
14508 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14509 "C<1>.  Increasing this may improve performance, though often it has no "
14510 "effect."
14511 msgstr ""
14512
14513 #. type: textblock
14514 #: ../fish/guestfish-actions.pod:4358
14515 msgid "This function must be called before L</launch>."
14516 msgstr ""
14517
14518 #. type: =head2
14519 #: ../fish/guestfish-actions.pod:4360
14520 msgid "set-trace"
14521 msgstr ""
14522
14523 #. type: =head2
14524 #: ../fish/guestfish-actions.pod:4362
14525 msgid "trace"
14526 msgstr ""
14527
14528 #. type: verbatim
14529 #: ../fish/guestfish-actions.pod:4364
14530 #, no-wrap
14531 msgid ""
14532 " set-trace true|false\n"
14533 "\n"
14534 msgstr ""
14535
14536 #. type: textblock
14537 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
14538 msgid ""
14539 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14540 "return values are traced."
14541 msgstr ""
14542
14543 #. type: textblock
14544 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
14545 msgid ""
14546 "If you want to trace C API calls into libguestfs (and other libraries) then "
14547 "possibly a better way is to use the external ltrace(1) command."
14548 msgstr ""
14549
14550 #. type: textblock
14551 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
14552 msgid ""
14553 "Command traces are disabled unless the environment variable "
14554 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14555 msgstr ""
14556
14557 #. type: textblock
14558 #: ../fish/guestfish-actions.pod:4376
14559 msgid ""
14560 "Trace messages are normally sent to C<stderr>, unless you register a "
14561 "callback to send them somewhere else (see L</set-event-callback>)."
14562 msgstr ""
14563
14564 #. type: =head2
14565 #: ../fish/guestfish-actions.pod:4380
14566 msgid "set-verbose"
14567 msgstr ""
14568
14569 #. type: =head2
14570 #: ../fish/guestfish-actions.pod:4382
14571 msgid "verbose"
14572 msgstr ""
14573
14574 #. type: verbatim
14575 #: ../fish/guestfish-actions.pod:4384
14576 #, no-wrap
14577 msgid ""
14578 " set-verbose true|false\n"
14579 "\n"
14580 msgstr ""
14581
14582 #. type: textblock
14583 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
14584 msgid "If C<verbose> is true, this turns on verbose messages."
14585 msgstr ""
14586
14587 #. type: textblock
14588 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
14589 msgid ""
14590 "Verbose messages are disabled unless the environment variable "
14591 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../fish/guestfish-actions.pod:4391
14596 msgid ""
14597 "Verbose messages are normally sent to C<stderr>, unless you register a "
14598 "callback to send them somewhere else (see L</set-event-callback>)."
14599 msgstr ""
14600
14601 #. type: =head2
14602 #: ../fish/guestfish-actions.pod:4395
14603 msgid "setcon"
14604 msgstr ""
14605
14606 #. type: verbatim
14607 #: ../fish/guestfish-actions.pod:4397
14608 #, no-wrap
14609 msgid ""
14610 " setcon context\n"
14611 "\n"
14612 msgstr ""
14613
14614 #. type: textblock
14615 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
14616 msgid ""
14617 "This sets the SELinux security context of the daemon to the string "
14618 "C<context>."
14619 msgstr ""
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
14623 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14624 msgstr ""
14625
14626 #. type: =head2
14627 #: ../fish/guestfish-actions.pod:4404
14628 msgid "setxattr"
14629 msgstr ""
14630
14631 #. type: verbatim
14632 #: ../fish/guestfish-actions.pod:4406
14633 #, no-wrap
14634 msgid ""
14635 " setxattr xattr val vallen path\n"
14636 "\n"
14637 msgstr ""
14638
14639 #. type: textblock
14640 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
14641 msgid ""
14642 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14643 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14644 msgstr ""
14645
14646 #. type: textblock
14647 #: ../fish/guestfish-actions.pod:4412
14648 msgid "See also: L</lsetxattr>, L<attr(5)>."
14649 msgstr ""
14650
14651 #. type: =head2
14652 #: ../fish/guestfish-actions.pod:4414
14653 msgid "sfdisk"
14654 msgstr ""
14655
14656 #. type: verbatim
14657 #: ../fish/guestfish-actions.pod:4416
14658 #, no-wrap
14659 msgid ""
14660 " sfdisk device cyls heads sectors 'lines ...'\n"
14661 "\n"
14662 msgstr ""
14663
14664 #. type: textblock
14665 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
14666 msgid ""
14667 "This is a direct interface to the L<sfdisk(8)> program for creating "
14668 "partitions on block devices."
14669 msgstr ""
14670
14671 #. type: textblock
14672 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
14673 msgid "C<device> should be a block device, for example C</dev/sda>."
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
14678 msgid ""
14679 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14680 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
14681 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14682 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14683 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14684 "the kernel) cannot work out the right geometry and you will need to tell it."
14685 msgstr ""
14686
14687 #. type: textblock
14688 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
14689 msgid ""
14690 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14691 "refer to the L<sfdisk(8)> manpage."
14692 msgstr ""
14693
14694 #. type: textblock
14695 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
14696 msgid ""
14697 "To create a single partition occupying the whole disk, you would pass "
14698 "C<lines> as a single element list, when the single element being the string "
14699 "C<,> (comma)."
14700 msgstr ""
14701
14702 #. type: textblock
14703 #: ../fish/guestfish-actions.pod:4438
14704 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14705 msgstr ""
14706
14707 #. type: textblock
14708 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467 ../fish/guestfish-actions.pod:4489
14709 msgid ""
14710 "I<This function is deprecated.> In new code, use the L</part_add> call "
14711 "instead."
14712 msgstr ""
14713
14714 #. type: =head2
14715 #: ../fish/guestfish-actions.pod:4451
14716 msgid "sfdiskM"
14717 msgstr ""
14718
14719 #. type: verbatim
14720 #: ../fish/guestfish-actions.pod:4453
14721 #, no-wrap
14722 msgid ""
14723 " sfdiskM device 'lines ...'\n"
14724 "\n"
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:4455
14729 msgid ""
14730 "This is a simplified interface to the L</sfdisk> command, where partition "
14731 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14732 "you don't need to specify the cyls, heads and sectors parameters which were "
14733 "rarely if ever used anyway."
14734 msgstr ""
14735
14736 #. type: textblock
14737 #: ../fish/guestfish-actions.pod:4461
14738 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14739 msgstr ""
14740
14741 #. type: =head2
14742 #: ../fish/guestfish-actions.pod:4474
14743 msgid "sfdisk-N"
14744 msgstr ""
14745
14746 #. type: verbatim
14747 #: ../fish/guestfish-actions.pod:4476
14748 #, no-wrap
14749 msgid ""
14750 " sfdisk-N device partnum cyls heads sectors line\n"
14751 "\n"
14752 msgstr ""
14753
14754 #. type: textblock
14755 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
14756 msgid ""
14757 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14758 "(note: C<n> counts from 1)."
14759 msgstr ""
14760
14761 #. type: textblock
14762 #: ../fish/guestfish-actions.pod:4481
14763 msgid ""
14764 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14765 "cyls/heads/sectors parameters."
14766 msgstr ""
14767
14768 #. type: textblock
14769 #: ../fish/guestfish-actions.pod:4484
14770 msgid "See also: L</part-add>"
14771 msgstr ""
14772
14773 #. type: =head2
14774 #: ../fish/guestfish-actions.pod:4496
14775 msgid "sfdisk-disk-geometry"
14776 msgstr ""
14777
14778 #. type: verbatim
14779 #: ../fish/guestfish-actions.pod:4498
14780 #, no-wrap
14781 msgid ""
14782 " sfdisk-disk-geometry device\n"
14783 "\n"
14784 msgstr ""
14785
14786 #. type: textblock
14787 #: ../fish/guestfish-actions.pod:4500
14788 msgid ""
14789 "This displays the disk geometry of C<device> read from the partition table.  "
14790 "Especially in the case where the underlying block device has been resized, "
14791 "this can be different from the kernel's idea of the geometry (see "
14792 "L</sfdisk-kernel-geometry>)."
14793 msgstr ""
14794
14795 #. type: textblock
14796 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
14797 msgid "The result is in human-readable format, and not designed to be parsed."
14798 msgstr ""
14799
14800 #. type: =head2
14801 #: ../fish/guestfish-actions.pod:4508
14802 msgid "sfdisk-kernel-geometry"
14803 msgstr ""
14804
14805 #. type: verbatim
14806 #: ../fish/guestfish-actions.pod:4510
14807 #, no-wrap
14808 msgid ""
14809 " sfdisk-kernel-geometry device\n"
14810 "\n"
14811 msgstr ""
14812
14813 #. type: textblock
14814 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
14815 msgid "This displays the kernel's idea of the geometry of C<device>."
14816 msgstr ""
14817
14818 #. type: =head2
14819 #: ../fish/guestfish-actions.pod:4517
14820 msgid "sfdisk-l"
14821 msgstr ""
14822
14823 #. type: verbatim
14824 #: ../fish/guestfish-actions.pod:4519
14825 #, no-wrap
14826 msgid ""
14827 " sfdisk-l device\n"
14828 "\n"
14829 msgstr ""
14830
14831 #. type: textblock
14832 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
14833 msgid ""
14834 "This displays the partition table on C<device>, in the human-readable output "
14835 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14836 msgstr ""
14837
14838 #. type: textblock
14839 #: ../fish/guestfish-actions.pod:4525
14840 msgid "See also: L</part-list>"
14841 msgstr ""
14842
14843 #. type: textblock
14844 #: ../fish/guestfish-actions.pod:4527
14845 msgid ""
14846 "I<This function is deprecated.> In new code, use the L</part_list> call "
14847 "instead."
14848 msgstr ""
14849
14850 #. type: =head2
14851 #: ../fish/guestfish-actions.pod:4534
14852 msgid "sh"
14853 msgstr ""
14854
14855 #. type: verbatim
14856 #: ../fish/guestfish-actions.pod:4536
14857 #, no-wrap
14858 msgid ""
14859 " sh command\n"
14860 "\n"
14861 msgstr ""
14862
14863 #. type: textblock
14864 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
14865 msgid ""
14866 "This call runs a command from the guest filesystem via the guest's "
14867 "C</bin/sh>."
14868 msgstr ""
14869
14870 #. type: textblock
14871 #: ../fish/guestfish-actions.pod:4541
14872 msgid "This is like L</command>, but passes the command to:"
14873 msgstr ""
14874
14875 #. type: verbatim
14876 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
14877 #, no-wrap
14878 msgid ""
14879 " /bin/sh -c \"command\"\n"
14880 "\n"
14881 msgstr ""
14882
14883 #. type: textblock
14884 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
14885 msgid ""
14886 "Depending on the guest's shell, this usually results in wildcards being "
14887 "expanded, shell expressions being interpolated and so on."
14888 msgstr ""
14889
14890 #. type: textblock
14891 #: ../fish/guestfish-actions.pod:4549
14892 msgid "All the provisos about L</command> apply to this call."
14893 msgstr ""
14894
14895 #. type: =head2
14896 #: ../fish/guestfish-actions.pod:4551
14897 msgid "sh-lines"
14898 msgstr ""
14899
14900 #. type: verbatim
14901 #: ../fish/guestfish-actions.pod:4553
14902 #, no-wrap
14903 msgid ""
14904 " sh-lines command\n"
14905 "\n"
14906 msgstr ""
14907
14908 #. type: textblock
14909 #: ../fish/guestfish-actions.pod:4555
14910 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../fish/guestfish-actions.pod:4558
14915 msgid "See also: L</command-lines>"
14916 msgstr ""
14917
14918 #. type: =head2
14919 #: ../fish/guestfish-actions.pod:4560
14920 msgid "sleep"
14921 msgstr ""
14922
14923 #. type: verbatim
14924 #: ../fish/guestfish-actions.pod:4562
14925 #, no-wrap
14926 msgid ""
14927 " sleep secs\n"
14928 "\n"
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
14933 msgid "Sleep for C<secs> seconds."
14934 msgstr ""
14935
14936 #. type: =head2
14937 #: ../fish/guestfish-actions.pod:4566
14938 msgid "stat"
14939 msgstr ""
14940
14941 #. type: verbatim
14942 #: ../fish/guestfish-actions.pod:4568
14943 #, no-wrap
14944 msgid ""
14945 " stat path\n"
14946 "\n"
14947 msgstr ""
14948
14949 #. type: textblock
14950 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
14951 msgid "This is the same as the C<stat(2)> system call."
14952 msgstr ""
14953
14954 #. type: =head2
14955 #: ../fish/guestfish-actions.pod:4574
14956 msgid "statvfs"
14957 msgstr ""
14958
14959 #. type: verbatim
14960 #: ../fish/guestfish-actions.pod:4576
14961 #, no-wrap
14962 msgid ""
14963 " statvfs path\n"
14964 "\n"
14965 msgstr ""
14966
14967 #. type: textblock
14968 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
14969 msgid ""
14970 "Returns file system statistics for any mounted file system.  C<path> should "
14971 "be a file or directory in the mounted file system (typically it is the mount "
14972 "point itself, but it doesn't need to be)."
14973 msgstr ""
14974
14975 #. type: textblock
14976 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
14977 msgid "This is the same as the C<statvfs(2)> system call."
14978 msgstr ""
14979
14980 #. type: =head2
14981 #: ../fish/guestfish-actions.pod:4584
14982 msgid "strings"
14983 msgstr ""
14984
14985 #. type: verbatim
14986 #: ../fish/guestfish-actions.pod:4586
14987 #, no-wrap
14988 msgid ""
14989 " strings path\n"
14990 "\n"
14991 msgstr ""
14992
14993 #. type: textblock
14994 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
14995 msgid ""
14996 "This runs the L<strings(1)> command on a file and returns the list of "
14997 "printable strings found."
14998 msgstr ""
14999
15000 #. type: =head2
15001 #: ../fish/guestfish-actions.pod:4594
15002 msgid "strings-e"
15003 msgstr ""
15004
15005 #. type: verbatim
15006 #: ../fish/guestfish-actions.pod:4596
15007 #, no-wrap
15008 msgid ""
15009 " strings-e encoding path\n"
15010 "\n"
15011 msgstr ""
15012
15013 #. type: textblock
15014 #: ../fish/guestfish-actions.pod:4598
15015 msgid ""
15016 "This is like the L</strings> command, but allows you to specify the encoding "
15017 "of strings that are looked for in the source file C<path>."
15018 msgstr ""
15019
15020 #. type: textblock
15021 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
15022 msgid "Allowed encodings are:"
15023 msgstr ""
15024
15025 #. type: =item
15026 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
15027 msgid "s"
15028 msgstr ""
15029
15030 #. type: textblock
15031 #: ../fish/guestfish-actions.pod:4608
15032 msgid ""
15033 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15034 "ISO-8859-X (this is what L</strings> uses)."
15035 msgstr ""
15036
15037 #. type: =item
15038 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
15039 msgid "S"
15040 msgstr ""
15041
15042 #. type: textblock
15043 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
15044 msgid "Single 8-bit-byte characters."
15045 msgstr ""
15046
15047 #. type: =item
15048 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
15049 msgid "b"
15050 msgstr ""
15051
15052 #. type: textblock
15053 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
15054 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15055 msgstr ""
15056
15057 #. type: =item
15058 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
15059 msgid "l (lower case letter L)"
15060 msgstr ""
15061
15062 #. type: textblock
15063 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
15064 msgid ""
15065 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15066 "examining binaries in Windows guests."
15067 msgstr ""
15068
15069 #. type: =item
15070 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
15071 msgid "B"
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
15076 msgid "32-bit big endian such as UCS-4BE."
15077 msgstr ""
15078
15079 #. type: =item
15080 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
15081 msgid "L"
15082 msgstr ""
15083
15084 #. type: textblock
15085 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
15086 msgid "32-bit little endian such as UCS-4LE."
15087 msgstr ""
15088
15089 #. type: textblock
15090 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
15091 msgid "The returned strings are transcoded to UTF-8."
15092 msgstr ""
15093
15094 #. type: =head2
15095 #: ../fish/guestfish-actions.pod:4640
15096 msgid "swapoff-device"
15097 msgstr ""
15098
15099 #. type: verbatim
15100 #: ../fish/guestfish-actions.pod:4642
15101 #, no-wrap
15102 msgid ""
15103 " swapoff-device device\n"
15104 "\n"
15105 msgstr ""
15106
15107 #. type: textblock
15108 #: ../fish/guestfish-actions.pod:4644
15109 msgid ""
15110 "This command disables the libguestfs appliance swap device or partition "
15111 "named C<device>.  See L</swapon-device>."
15112 msgstr ""
15113
15114 #. type: =head2
15115 #: ../fish/guestfish-actions.pod:4648
15116 msgid "swapoff-file"
15117 msgstr ""
15118
15119 #. type: verbatim
15120 #: ../fish/guestfish-actions.pod:4650
15121 #, no-wrap
15122 msgid ""
15123 " swapoff-file file\n"
15124 "\n"
15125 msgstr ""
15126
15127 #. type: textblock
15128 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
15129 msgid "This command disables the libguestfs appliance swap on file."
15130 msgstr ""
15131
15132 #. type: =head2
15133 #: ../fish/guestfish-actions.pod:4654
15134 msgid "swapoff-label"
15135 msgstr ""
15136
15137 #. type: verbatim
15138 #: ../fish/guestfish-actions.pod:4656
15139 #, no-wrap
15140 msgid ""
15141 " swapoff-label label\n"
15142 "\n"
15143 msgstr ""
15144
15145 #. type: textblock
15146 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
15147 msgid ""
15148 "This command disables the libguestfs appliance swap on labeled swap "
15149 "partition."
15150 msgstr ""
15151
15152 #. type: =head2
15153 #: ../fish/guestfish-actions.pod:4661
15154 msgid "swapoff-uuid"
15155 msgstr ""
15156
15157 #. type: verbatim
15158 #: ../fish/guestfish-actions.pod:4663
15159 #, no-wrap
15160 msgid ""
15161 " swapoff-uuid uuid\n"
15162 "\n"
15163 msgstr ""
15164
15165 #. type: textblock
15166 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
15167 msgid ""
15168 "This command disables the libguestfs appliance swap partition with the given "
15169 "UUID."
15170 msgstr ""
15171
15172 #. type: =head2
15173 #: ../fish/guestfish-actions.pod:4668
15174 msgid "swapon-device"
15175 msgstr ""
15176
15177 #. type: verbatim
15178 #: ../fish/guestfish-actions.pod:4670
15179 #, no-wrap
15180 msgid ""
15181 " swapon-device device\n"
15182 "\n"
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:4672
15187 msgid ""
15188 "This command enables the libguestfs appliance to use the swap device or "
15189 "partition named C<device>.  The increased memory is made available for all "
15190 "commands, for example those run using L</command> or L</sh>."
15191 msgstr ""
15192
15193 #. type: textblock
15194 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
15195 msgid ""
15196 "Note that you should not swap to existing guest swap partitions unless you "
15197 "know what you are doing.  They may contain hibernation information, or other "
15198 "information that the guest doesn't want you to trash.  You also risk leaking "
15199 "information about the host to the guest this way.  Instead, attach a new "
15200 "host device to the guest and swap on that."
15201 msgstr ""
15202
15203 #. type: =head2
15204 #: ../fish/guestfish-actions.pod:4684
15205 msgid "swapon-file"
15206 msgstr ""
15207
15208 #. type: verbatim
15209 #: ../fish/guestfish-actions.pod:4686
15210 #, no-wrap
15211 msgid ""
15212 " swapon-file file\n"
15213 "\n"
15214 msgstr ""
15215
15216 #. type: textblock
15217 #: ../fish/guestfish-actions.pod:4688
15218 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
15219 msgstr ""
15220
15221 #. type: =head2
15222 #: ../fish/guestfish-actions.pod:4691
15223 msgid "swapon-label"
15224 msgstr ""
15225
15226 #. type: verbatim
15227 #: ../fish/guestfish-actions.pod:4693
15228 #, no-wrap
15229 msgid ""
15230 " swapon-label label\n"
15231 "\n"
15232 msgstr ""
15233
15234 #. type: textblock
15235 #: ../fish/guestfish-actions.pod:4695
15236 msgid ""
15237 "This command enables swap to a labeled swap partition.  See "
15238 "L</swapon-device> for other notes."
15239 msgstr ""
15240
15241 #. type: =head2
15242 #: ../fish/guestfish-actions.pod:4698
15243 msgid "swapon-uuid"
15244 msgstr ""
15245
15246 #. type: verbatim
15247 #: ../fish/guestfish-actions.pod:4700
15248 #, no-wrap
15249 msgid ""
15250 " swapon-uuid uuid\n"
15251 "\n"
15252 msgstr ""
15253
15254 #. type: textblock
15255 #: ../fish/guestfish-actions.pod:4702
15256 msgid ""
15257 "This command enables swap to a swap partition with the given UUID.  See "
15258 "L</swapon-device> for other notes."
15259 msgstr ""
15260
15261 #. type: =head2
15262 #: ../fish/guestfish-actions.pod:4705
15263 msgid "sync"
15264 msgstr ""
15265
15266 #. type: verbatim
15267 #: ../fish/guestfish-actions.pod:4707
15268 #, no-wrap
15269 msgid ""
15270 " sync\n"
15271 "\n"
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
15276 msgid ""
15277 "This syncs the disk, so that any writes are flushed through to the "
15278 "underlying disk image."
15279 msgstr ""
15280
15281 #. type: textblock
15282 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
15283 msgid ""
15284 "You should always call this if you have modified a disk image, before "
15285 "closing the handle."
15286 msgstr ""
15287
15288 #. type: =head2
15289 #: ../fish/guestfish-actions.pod:4715
15290 msgid "tail"
15291 msgstr ""
15292
15293 #. type: verbatim
15294 #: ../fish/guestfish-actions.pod:4717
15295 #, no-wrap
15296 msgid ""
15297 " tail path\n"
15298 "\n"
15299 msgstr ""
15300
15301 #. type: textblock
15302 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
15303 msgid "This command returns up to the last 10 lines of a file as a list of strings."
15304 msgstr ""
15305
15306 #. type: =head2
15307 #: ../fish/guestfish-actions.pod:4725
15308 msgid "tail-n"
15309 msgstr ""
15310
15311 #. type: verbatim
15312 #: ../fish/guestfish-actions.pod:4727
15313 #, no-wrap
15314 msgid ""
15315 " tail-n nrlines path\n"
15316 "\n"
15317 msgstr ""
15318
15319 #. type: textblock
15320 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
15321 msgid ""
15322 "If the parameter C<nrlines> is a positive number, this returns the last "
15323 "C<nrlines> lines of the file C<path>."
15324 msgstr ""
15325
15326 #. type: textblock
15327 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
15328 msgid ""
15329 "If the parameter C<nrlines> is a negative number, this returns lines from "
15330 "the file C<path>, starting with the C<-nrlines>th line."
15331 msgstr ""
15332
15333 #. type: =head2
15334 #: ../fish/guestfish-actions.pod:4740
15335 msgid "tar-in"
15336 msgstr ""
15337
15338 #. type: verbatim
15339 #: ../fish/guestfish-actions.pod:4742
15340 #, no-wrap
15341 msgid ""
15342 " tar-in (tarfile|-) directory\n"
15343 "\n"
15344 msgstr ""
15345
15346 #. type: textblock
15347 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
15348 msgid ""
15349 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15350 "tar file) into C<directory>."
15351 msgstr ""
15352
15353 #. type: textblock
15354 #: ../fish/guestfish-actions.pod:4747
15355 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15356 msgstr ""
15357
15358 #. type: =head2
15359 #: ../fish/guestfish-actions.pod:4752
15360 msgid "tar-out"
15361 msgstr ""
15362
15363 #. type: verbatim
15364 #: ../fish/guestfish-actions.pod:4754
15365 #, no-wrap
15366 msgid ""
15367 " tar-out directory (tarfile|-)\n"
15368 "\n"
15369 msgstr ""
15370
15371 #. type: textblock
15372 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
15373 msgid ""
15374 "This command packs the contents of C<directory> and downloads it to local "
15375 "file C<tarfile>."
15376 msgstr ""
15377
15378 #. type: textblock
15379 #: ../fish/guestfish-actions.pod:4759
15380 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15381 msgstr ""
15382
15383 #. type: =head2
15384 #: ../fish/guestfish-actions.pod:4764
15385 msgid "tgz-in"
15386 msgstr ""
15387
15388 #. type: verbatim
15389 #: ../fish/guestfish-actions.pod:4766
15390 #, no-wrap
15391 msgid ""
15392 " tgz-in (tarball|-) directory\n"
15393 "\n"
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
15398 msgid ""
15399 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15400 "tar file) into C<directory>."
15401 msgstr ""
15402
15403 #. type: textblock
15404 #: ../fish/guestfish-actions.pod:4771
15405 msgid "To upload an uncompressed tarball, use L</tar-in>."
15406 msgstr ""
15407
15408 #. type: =head2
15409 #: ../fish/guestfish-actions.pod:4775
15410 msgid "tgz-out"
15411 msgstr ""
15412
15413 #. type: verbatim
15414 #: ../fish/guestfish-actions.pod:4777
15415 #, no-wrap
15416 msgid ""
15417 " tgz-out directory (tarball|-)\n"
15418 "\n"
15419 msgstr ""
15420
15421 #. type: textblock
15422 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
15423 msgid ""
15424 "This command packs the contents of C<directory> and downloads it to local "
15425 "file C<tarball>."
15426 msgstr ""
15427
15428 #. type: textblock
15429 #: ../fish/guestfish-actions.pod:4782
15430 msgid "To download an uncompressed tarball, use L</tar-out>."
15431 msgstr ""
15432
15433 #. type: =head2
15434 #: ../fish/guestfish-actions.pod:4786
15435 msgid "touch"
15436 msgstr ""
15437
15438 #. type: verbatim
15439 #: ../fish/guestfish-actions.pod:4788
15440 #, no-wrap
15441 msgid ""
15442 " touch path\n"
15443 "\n"
15444 msgstr ""
15445
15446 #. type: textblock
15447 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
15448 msgid ""
15449 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15450 "timestamps on a file, or, if the file does not exist, to create a new "
15451 "zero-length file."
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
15456 msgid ""
15457 "This command only works on regular files, and will fail on other file types "
15458 "such as directories, symbolic links, block special etc."
15459 msgstr ""
15460
15461 #. type: =head2
15462 #: ../fish/guestfish-actions.pod:4797
15463 msgid "truncate"
15464 msgstr ""
15465
15466 #. type: verbatim
15467 #: ../fish/guestfish-actions.pod:4799
15468 #, no-wrap
15469 msgid ""
15470 " truncate path\n"
15471 "\n"
15472 msgstr ""
15473
15474 #. type: textblock
15475 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
15476 msgid ""
15477 "This command truncates C<path> to a zero-length file.  The file must exist "
15478 "already."
15479 msgstr ""
15480
15481 #. type: =head2
15482 #: ../fish/guestfish-actions.pod:4804
15483 msgid "truncate-size"
15484 msgstr ""
15485
15486 #. type: verbatim
15487 #: ../fish/guestfish-actions.pod:4806
15488 #, no-wrap
15489 msgid ""
15490 " truncate-size path size\n"
15491 "\n"
15492 msgstr ""
15493
15494 #. type: textblock
15495 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
15496 msgid ""
15497 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15498 "already."
15499 msgstr ""
15500
15501 #. type: textblock
15502 #: ../fish/guestfish-actions.pod:4811
15503 msgid ""
15504 "If the current file size is less than C<size> then the file is extended to "
15505 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15506 "blocks are not allocated for the file until you write to it).  To create a "
15507 "non-sparse file of zeroes, use L</fallocate64> instead."
15508 msgstr ""
15509
15510 #. type: =head2
15511 #: ../fish/guestfish-actions.pod:4817
15512 msgid "tune2fs-l"
15513 msgstr ""
15514
15515 #. type: verbatim
15516 #: ../fish/guestfish-actions.pod:4819
15517 #, no-wrap
15518 msgid ""
15519 " tune2fs-l device\n"
15520 "\n"
15521 msgstr ""
15522
15523 #. type: textblock
15524 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
15525 msgid ""
15526 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15527 "C<device>."
15528 msgstr ""
15529
15530 #. type: textblock
15531 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
15532 msgid ""
15533 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15534 "for more details.  The list of fields returned isn't clearly defined, and "
15535 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15536 "and the filesystem itself."
15537 msgstr ""
15538
15539 #. type: =head2
15540 #: ../fish/guestfish-actions.pod:4829
15541 msgid "txz-in"
15542 msgstr ""
15543
15544 #. type: verbatim
15545 #: ../fish/guestfish-actions.pod:4831
15546 #, no-wrap
15547 msgid ""
15548 " txz-in (tarball|-) directory\n"
15549 "\n"
15550 msgstr ""
15551
15552 #. type: textblock
15553 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
15554 msgid ""
15555 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15556 "tar file) into C<directory>."
15557 msgstr ""
15558
15559 #. type: =head2
15560 #: ../fish/guestfish-actions.pod:4838
15561 msgid "txz-out"
15562 msgstr ""
15563
15564 #. type: verbatim
15565 #: ../fish/guestfish-actions.pod:4840
15566 #, no-wrap
15567 msgid ""
15568 " txz-out directory (tarball|-)\n"
15569 "\n"
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
15574 msgid ""
15575 "This command packs the contents of C<directory> and downloads it to local "
15576 "file C<tarball> (as an xz compressed tar archive)."
15577 msgstr ""
15578
15579 #. type: =head2
15580 #: ../fish/guestfish-actions.pod:4847
15581 msgid "umask"
15582 msgstr ""
15583
15584 #. type: verbatim
15585 #: ../fish/guestfish-actions.pod:4849
15586 #, no-wrap
15587 msgid ""
15588 " umask mask\n"
15589 "\n"
15590 msgstr ""
15591
15592 #. type: textblock
15593 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
15594 msgid ""
15595 "This function sets the mask used for creating new files and device nodes to "
15596 "C<mask & 0777>."
15597 msgstr ""
15598
15599 #. type: textblock
15600 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
15601 msgid ""
15602 "Typical umask values would be C<022> which creates new files with "
15603 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15604 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15605 msgstr ""
15606
15607 #. type: textblock
15608 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
15609 msgid ""
15610 "The default umask is C<022>.  This is important because it means that "
15611 "directories and device nodes will be created with C<0644> or C<0755> mode "
15612 "even if you specify C<0777>."
15613 msgstr ""
15614
15615 #. type: textblock
15616 #: ../fish/guestfish-actions.pod:4863
15617 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15618 msgstr ""
15619
15620 #. type: textblock
15621 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
15622 msgid "This call returns the previous umask."
15623 msgstr ""
15624
15625 #. type: =head2
15626 #: ../fish/guestfish-actions.pod:4868
15627 msgid "umount"
15628 msgstr ""
15629
15630 #. type: =head2
15631 #: ../fish/guestfish-actions.pod:4870
15632 msgid "unmount"
15633 msgstr ""
15634
15635 #. type: verbatim
15636 #: ../fish/guestfish-actions.pod:4872
15637 #, no-wrap
15638 msgid ""
15639 " umount pathordevice\n"
15640 "\n"
15641 msgstr ""
15642
15643 #. type: textblock
15644 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
15645 msgid ""
15646 "This unmounts the given filesystem.  The filesystem may be specified either "
15647 "by its mountpoint (path) or the device which contains the filesystem."
15648 msgstr ""
15649
15650 #. type: =head2
15651 #: ../fish/guestfish-actions.pod:4878
15652 msgid "umount-all"
15653 msgstr ""
15654
15655 #. type: =head2
15656 #: ../fish/guestfish-actions.pod:4880
15657 msgid "unmount-all"
15658 msgstr ""
15659
15660 #. type: verbatim
15661 #: ../fish/guestfish-actions.pod:4882
15662 #, no-wrap
15663 msgid ""
15664 " umount-all\n"
15665 "\n"
15666 msgstr ""
15667
15668 #. type: textblock
15669 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
15670 msgid "This unmounts all mounted filesystems."
15671 msgstr ""
15672
15673 #. type: textblock
15674 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
15675 msgid "Some internal mounts are not unmounted by this call."
15676 msgstr ""
15677
15678 #. type: =head2
15679 #: ../fish/guestfish-actions.pod:4888
15680 msgid "upload"
15681 msgstr ""
15682
15683 #. type: verbatim
15684 #: ../fish/guestfish-actions.pod:4890
15685 #, no-wrap
15686 msgid ""
15687 " upload (filename|-) remotefilename\n"
15688 "\n"
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905 ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
15693 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15694 msgstr ""
15695
15696 #. type: textblock
15697 #: ../fish/guestfish-actions.pod:4897
15698 msgid "See also L</download>."
15699 msgstr ""
15700
15701 #. type: =head2
15702 #: ../fish/guestfish-actions.pod:4901
15703 msgid "upload-offset"
15704 msgstr ""
15705
15706 #. type: verbatim
15707 #: ../fish/guestfish-actions.pod:4903
15708 #, no-wrap
15709 msgid ""
15710 " upload-offset (filename|-) remotefilename offset\n"
15711 "\n"
15712 msgstr ""
15713
15714 #. type: textblock
15715 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
15716 msgid ""
15717 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15718 "The intention is to overwrite parts of existing files or devices, although "
15719 "if a non-existant file is specified then it is created with a \"hole\" "
15720 "before C<offset>.  The size of the data written is implicit in the size of "
15721 "the source C<filename>."
15722 msgstr ""
15723
15724 #. type: textblock
15725 #: ../fish/guestfish-actions.pod:4915
15726 msgid ""
15727 "Note that there is no limit on the amount of data that can be uploaded with "
15728 "this call, unlike with L</pwrite>, and this call always writes the full "
15729 "amount unless an error occurs."
15730 msgstr ""
15731
15732 #. type: textblock
15733 #: ../fish/guestfish-actions.pod:4920
15734 msgid "See also L</upload>, L</pwrite>."
15735 msgstr ""
15736
15737 #. type: =head2
15738 #: ../fish/guestfish-actions.pod:4924
15739 msgid "utimens"
15740 msgstr ""
15741
15742 #. type: verbatim
15743 #: ../fish/guestfish-actions.pod:4926
15744 #, no-wrap
15745 msgid ""
15746 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15747 "\n"
15748 msgstr ""
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
15752 msgid "This command sets the timestamps of a file with nanosecond precision."
15753 msgstr ""
15754
15755 #. type: textblock
15756 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
15757 msgid ""
15758 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15759 "from the epoch."
15760 msgstr ""
15761
15762 #. type: textblock
15763 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
15764 msgid ""
15765 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15766 "nanoseconds from the epoch."
15767 msgstr ""
15768
15769 #. type: textblock
15770 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
15771 msgid ""
15772 "If the C<*nsecs> field contains the special value C<-1> then the "
15773 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15774 "ignored in this case)."
15775 msgstr ""
15776
15777 #. type: textblock
15778 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
15779 msgid ""
15780 "If the C<*nsecs> field contains the special value C<-2> then the "
15781 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15782 "in this case)."
15783 msgstr ""
15784
15785 #. type: =head2
15786 #: ../fish/guestfish-actions.pod:4945
15787 msgid "version"
15788 msgstr ""
15789
15790 #. type: verbatim
15791 #: ../fish/guestfish-actions.pod:4947
15792 #, no-wrap
15793 msgid ""
15794 " version\n"
15795 "\n"
15796 msgstr ""
15797
15798 #. type: textblock
15799 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
15800 msgid "Return the libguestfs version number that the program is linked against."
15801 msgstr ""
15802
15803 #. type: textblock
15804 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
15805 msgid ""
15806 "Note that because of dynamic linking this is not necessarily the version of "
15807 "libguestfs that you compiled against.  You can compile the program, and then "
15808 "at runtime dynamically link against a completely different C<libguestfs.so> "
15809 "library."
15810 msgstr ""
15811
15812 #. type: textblock
15813 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
15814 msgid ""
15815 "This call was added in version C<1.0.58>.  In previous versions of "
15816 "libguestfs there was no way to get the version number.  From C code you can "
15817 "use dynamic linker functions to find out if this symbol exists (if it "
15818 "doesn't, then it's an earlier version)."
15819 msgstr ""
15820
15821 #. type: textblock
15822 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
15823 msgid ""
15824 "The call returns a structure with four elements.  The first three (C<major>, "
15825 "C<minor> and C<release>) are numbers and correspond to the usual version "
15826 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15827 "but may be used for distro-specific information."
15828 msgstr ""
15829
15830 #. type: textblock
15831 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
15832 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
15833 msgstr ""
15834
15835 #. type: textblock
15836 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
15837 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15838 msgstr ""
15839
15840 #. type: textblock
15841 #: ../fish/guestfish-actions.pod:4974
15842 msgid ""
15843 "I<Note:> Don't use this call to test for availability of features.  In "
15844 "enterprise distributions we backport features from later versions into "
15845 "earlier versions, making this an unreliable way to test for features.  Use "
15846 "L</available> instead."
15847 msgstr ""
15848
15849 #. type: =head2
15850 #: ../fish/guestfish-actions.pod:4980
15851 msgid "vfs-label"
15852 msgstr ""
15853
15854 #. type: verbatim
15855 #: ../fish/guestfish-actions.pod:4982
15856 #, no-wrap
15857 msgid ""
15858 " vfs-label device\n"
15859 "\n"
15860 msgstr ""
15861
15862 #. type: textblock
15863 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
15864 msgid "This returns the filesystem label of the filesystem on C<device>."
15865 msgstr ""
15866
15867 #. type: textblock
15868 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
15869 msgid "If the filesystem is unlabeled, this returns the empty string."
15870 msgstr ""
15871
15872 #. type: textblock
15873 #: ../fish/guestfish-actions.pod:4989
15874 msgid "To find a filesystem from the label, use L</findfs-label>."
15875 msgstr ""
15876
15877 #. type: =head2
15878 #: ../fish/guestfish-actions.pod:4991
15879 msgid "vfs-type"
15880 msgstr ""
15881
15882 #. type: verbatim
15883 #: ../fish/guestfish-actions.pod:4993
15884 #, no-wrap
15885 msgid ""
15886 " vfs-type device\n"
15887 "\n"
15888 msgstr ""
15889
15890 #. type: textblock
15891 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
15892 msgid ""
15893 "This command gets the filesystem type corresponding to the filesystem on "
15894 "C<device>."
15895 msgstr ""
15896
15897 #. type: textblock
15898 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
15899 msgid ""
15900 "For most filesystems, the result is the name of the Linux VFS module which "
15901 "would be used to mount this filesystem if you mounted it without specifying "
15902 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15903 msgstr ""
15904
15905 #. type: =head2
15906 #: ../fish/guestfish-actions.pod:5003
15907 msgid "vfs-uuid"
15908 msgstr ""
15909
15910 #. type: verbatim
15911 #: ../fish/guestfish-actions.pod:5005
15912 #, no-wrap
15913 msgid ""
15914 " vfs-uuid device\n"
15915 "\n"
15916 msgstr ""
15917
15918 #. type: textblock
15919 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
15920 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15921 msgstr ""
15922
15923 #. type: textblock
15924 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
15925 msgid "If the filesystem does not have a UUID, this returns the empty string."
15926 msgstr ""
15927
15928 #. type: textblock
15929 #: ../fish/guestfish-actions.pod:5012
15930 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15931 msgstr ""
15932
15933 #. type: =head2
15934 #: ../fish/guestfish-actions.pod:5014
15935 msgid "vg-activate"
15936 msgstr ""
15937
15938 #. type: verbatim
15939 #: ../fish/guestfish-actions.pod:5016
15940 #, no-wrap
15941 msgid ""
15942 " vg-activate true|false 'volgroups ...'\n"
15943 "\n"
15944 msgstr ""
15945
15946 #. type: textblock
15947 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
15948 msgid ""
15949 "This command activates or (if C<activate> is false) deactivates all logical "
15950 "volumes in the listed volume groups C<volgroups>."
15951 msgstr ""
15952
15953 #. type: textblock
15954 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
15955 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15956 msgstr ""
15957
15958 #. type: textblock
15959 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
15960 msgid ""
15961 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15962 "activated or deactivated."
15963 msgstr ""
15964
15965 #. type: =head2
15966 #: ../fish/guestfish-actions.pod:5026
15967 msgid "vg-activate-all"
15968 msgstr ""
15969
15970 #. type: verbatim
15971 #: ../fish/guestfish-actions.pod:5028
15972 #, no-wrap
15973 msgid ""
15974 " vg-activate-all true|false\n"
15975 "\n"
15976 msgstr ""
15977
15978 #. type: textblock
15979 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
15980 msgid ""
15981 "This command activates or (if C<activate> is false) deactivates all logical "
15982 "volumes in all volume groups."
15983 msgstr ""
15984
15985 #. type: textblock
15986 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
15987 msgid "This command is the same as running C<vgchange -a y|n>"
15988 msgstr ""
15989
15990 #. type: =head2
15991 #: ../fish/guestfish-actions.pod:5035
15992 msgid "vgcreate"
15993 msgstr ""
15994
15995 #. type: verbatim
15996 #: ../fish/guestfish-actions.pod:5037
15997 #, no-wrap
15998 msgid ""
15999 " vgcreate volgroup 'physvols ...'\n"
16000 "\n"
16001 msgstr ""
16002
16003 #. type: textblock
16004 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
16005 msgid ""
16006 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16007 "of physical volumes C<physvols>."
16008 msgstr ""
16009
16010 #. type: =head2
16011 #: ../fish/guestfish-actions.pod:5042
16012 msgid "vglvuuids"
16013 msgstr ""
16014
16015 #. type: verbatim
16016 #: ../fish/guestfish-actions.pod:5044
16017 #, no-wrap
16018 msgid ""
16019 " vglvuuids vgname\n"
16020 "\n"
16021 msgstr ""
16022
16023 #. type: textblock
16024 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
16025 msgid ""
16026 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16027 "volumes created in this volume group."
16028 msgstr ""
16029
16030 #. type: textblock
16031 #: ../fish/guestfish-actions.pod:5049
16032 msgid ""
16033 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16034 "logical volumes and volume groups."
16035 msgstr ""
16036
16037 #. type: textblock
16038 #: ../fish/guestfish-actions.pod:5052
16039 msgid "See also L</vgpvuuids>."
16040 msgstr ""
16041
16042 #. type: =head2
16043 #: ../fish/guestfish-actions.pod:5054
16044 msgid "vgpvuuids"
16045 msgstr ""
16046
16047 #. type: verbatim
16048 #: ../fish/guestfish-actions.pod:5056
16049 #, no-wrap
16050 msgid ""
16051 " vgpvuuids vgname\n"
16052 "\n"
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
16057 msgid ""
16058 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16059 "volumes that this volume group resides on."
16060 msgstr ""
16061
16062 #. type: textblock
16063 #: ../fish/guestfish-actions.pod:5061
16064 msgid ""
16065 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16066 "physical volumes and volume groups."
16067 msgstr ""
16068
16069 #. type: textblock
16070 #: ../fish/guestfish-actions.pod:5064
16071 msgid "See also L</vglvuuids>."
16072 msgstr ""
16073
16074 #. type: =head2
16075 #: ../fish/guestfish-actions.pod:5066
16076 msgid "vgremove"
16077 msgstr ""
16078
16079 #. type: verbatim
16080 #: ../fish/guestfish-actions.pod:5068
16081 #, no-wrap
16082 msgid ""
16083 " vgremove vgname\n"
16084 "\n"
16085 msgstr ""
16086
16087 #. type: textblock
16088 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
16089 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16090 msgstr ""
16091
16092 #. type: textblock
16093 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
16094 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
16095 msgstr ""
16096
16097 #. type: =head2
16098 #: ../fish/guestfish-actions.pod:5075
16099 msgid "vgrename"
16100 msgstr ""
16101
16102 #. type: verbatim
16103 #: ../fish/guestfish-actions.pod:5077
16104 #, no-wrap
16105 msgid ""
16106 " vgrename volgroup newvolgroup\n"
16107 "\n"
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
16112 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16113 msgstr ""
16114
16115 #. type: =head2
16116 #: ../fish/guestfish-actions.pod:5081
16117 msgid "vgs"
16118 msgstr ""
16119
16120 #. type: verbatim
16121 #: ../fish/guestfish-actions.pod:5083
16122 #, no-wrap
16123 msgid ""
16124 " vgs\n"
16125 "\n"
16126 msgstr ""
16127
16128 #. type: textblock
16129 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
16130 msgid ""
16131 "List all the volumes groups detected.  This is the equivalent of the "
16132 "L<vgs(8)> command."
16133 msgstr ""
16134
16135 #. type: textblock
16136 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
16137 msgid ""
16138 "This returns a list of just the volume group names that were detected "
16139 "(eg. C<VolGroup00>)."
16140 msgstr ""
16141
16142 #. type: textblock
16143 #: ../fish/guestfish-actions.pod:5091
16144 msgid "See also L</vgs-full>."
16145 msgstr ""
16146
16147 #. type: =head2
16148 #: ../fish/guestfish-actions.pod:5093
16149 msgid "vgs-full"
16150 msgstr ""
16151
16152 #. type: verbatim
16153 #: ../fish/guestfish-actions.pod:5095
16154 #, no-wrap
16155 msgid ""
16156 " vgs-full\n"
16157 "\n"
16158 msgstr ""
16159
16160 #. type: textblock
16161 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
16162 msgid ""
16163 "List all the volumes groups detected.  This is the equivalent of the "
16164 "L<vgs(8)> command.  The \"full\" version includes all fields."
16165 msgstr ""
16166
16167 #. type: =head2
16168 #: ../fish/guestfish-actions.pod:5100
16169 msgid "vgscan"
16170 msgstr ""
16171
16172 #. type: verbatim
16173 #: ../fish/guestfish-actions.pod:5102
16174 #, no-wrap
16175 msgid ""
16176 " vgscan\n"
16177 "\n"
16178 msgstr ""
16179
16180 #. type: textblock
16181 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
16182 msgid ""
16183 "This rescans all block devices and rebuilds the list of LVM physical "
16184 "volumes, volume groups and logical volumes."
16185 msgstr ""
16186
16187 #. type: =head2
16188 #: ../fish/guestfish-actions.pod:5107
16189 msgid "vguuid"
16190 msgstr ""
16191
16192 #. type: verbatim
16193 #: ../fish/guestfish-actions.pod:5109
16194 #, no-wrap
16195 msgid ""
16196 " vguuid vgname\n"
16197 "\n"
16198 msgstr ""
16199
16200 #. type: textblock
16201 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
16202 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16203 msgstr ""
16204
16205 #. type: =head2
16206 #: ../fish/guestfish-actions.pod:5113
16207 msgid "wc-c"
16208 msgstr ""
16209
16210 #. type: verbatim
16211 #: ../fish/guestfish-actions.pod:5115
16212 #, no-wrap
16213 msgid ""
16214 " wc-c path\n"
16215 "\n"
16216 msgstr ""
16217
16218 #. type: textblock
16219 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
16220 msgid ""
16221 "This command counts the characters in a file, using the C<wc -c> external "
16222 "command."
16223 msgstr ""
16224
16225 #. type: =head2
16226 #: ../fish/guestfish-actions.pod:5120
16227 msgid "wc-l"
16228 msgstr ""
16229
16230 #. type: verbatim
16231 #: ../fish/guestfish-actions.pod:5122
16232 #, no-wrap
16233 msgid ""
16234 " wc-l path\n"
16235 "\n"
16236 msgstr ""
16237
16238 #. type: textblock
16239 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
16240 msgid ""
16241 "This command counts the lines in a file, using the C<wc -l> external "
16242 "command."
16243 msgstr ""
16244
16245 #. type: =head2
16246 #: ../fish/guestfish-actions.pod:5127
16247 msgid "wc-w"
16248 msgstr ""
16249
16250 #. type: verbatim
16251 #: ../fish/guestfish-actions.pod:5129
16252 #, no-wrap
16253 msgid ""
16254 " wc-w path\n"
16255 "\n"
16256 msgstr ""
16257
16258 #. type: textblock
16259 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
16260 msgid ""
16261 "This command counts the words in a file, using the C<wc -w> external "
16262 "command."
16263 msgstr ""
16264
16265 #. type: =head2
16266 #: ../fish/guestfish-actions.pod:5134
16267 msgid "write"
16268 msgstr ""
16269
16270 #. type: verbatim
16271 #: ../fish/guestfish-actions.pod:5136
16272 #, no-wrap
16273 msgid ""
16274 " write path content\n"
16275 "\n"
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
16280 msgid ""
16281 "This call creates a file called C<path>.  The content of the file is the "
16282 "string C<content> (which can contain any 8 bit data)."
16283 msgstr ""
16284
16285 #. type: textblock
16286 #: ../fish/guestfish-actions.pod:5141
16287 msgid "See also L</write-append>."
16288 msgstr ""
16289
16290 #. type: =head2
16291 #: ../fish/guestfish-actions.pod:5146
16292 msgid "write-append"
16293 msgstr ""
16294
16295 #. type: verbatim
16296 #: ../fish/guestfish-actions.pod:5148
16297 #, no-wrap
16298 msgid ""
16299 " write-append path content\n"
16300 "\n"
16301 msgstr ""
16302
16303 #. type: textblock
16304 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
16305 msgid ""
16306 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16307 "not exist, then a new file is created."
16308 msgstr ""
16309
16310 #. type: textblock
16311 #: ../fish/guestfish-actions.pod:5153
16312 msgid "See also L</write>."
16313 msgstr ""
16314
16315 #. type: =head2
16316 #: ../fish/guestfish-actions.pod:5158
16317 msgid "write-file"
16318 msgstr ""
16319
16320 #. type: verbatim
16321 #: ../fish/guestfish-actions.pod:5160
16322 #, no-wrap
16323 msgid ""
16324 " write-file path content size\n"
16325 "\n"
16326 msgstr ""
16327
16328 #. type: textblock
16329 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
16330 msgid ""
16331 "This call creates a file called C<path>.  The contents of the file is the "
16332 "string C<content> (which can contain any 8 bit data), with length C<size>."
16333 msgstr ""
16334
16335 #. type: textblock
16336 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
16337 msgid ""
16338 "As a special case, if C<size> is C<0> then the length is calculated using "
16339 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16340 msgstr ""
16341
16342 #. type: textblock
16343 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
16344 msgid ""
16345 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16346 "I<not> work, even if the length is specified."
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish-actions.pod:5176
16351 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
16352 msgstr ""
16353
16354 #. type: =head2
16355 #: ../fish/guestfish-actions.pod:5183
16356 msgid "zegrep"
16357 msgstr ""
16358
16359 #. type: verbatim
16360 #: ../fish/guestfish-actions.pod:5185
16361 #, no-wrap
16362 msgid ""
16363 " zegrep regex path\n"
16364 "\n"
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
16369 msgid "This calls the external C<zegrep> program and returns the matching lines."
16370 msgstr ""
16371
16372 #. type: =head2
16373 #: ../fish/guestfish-actions.pod:5193
16374 msgid "zegrepi"
16375 msgstr ""
16376
16377 #. type: verbatim
16378 #: ../fish/guestfish-actions.pod:5195
16379 #, no-wrap
16380 msgid ""
16381 " zegrepi regex path\n"
16382 "\n"
16383 msgstr ""
16384
16385 #. type: textblock
16386 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
16387 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
16388 msgstr ""
16389
16390 #. type: =head2
16391 #: ../fish/guestfish-actions.pod:5203
16392 msgid "zero"
16393 msgstr ""
16394
16395 #. type: verbatim
16396 #: ../fish/guestfish-actions.pod:5205
16397 #, no-wrap
16398 msgid ""
16399 " zero device\n"
16400 "\n"
16401 msgstr ""
16402
16403 #. type: textblock
16404 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
16405 msgid "This command writes zeroes over the first few blocks of C<device>."
16406 msgstr ""
16407
16408 #. type: textblock
16409 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
16410 msgid ""
16411 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16412 "securely wipe the device).  It should be sufficient to remove any partition "
16413 "tables, filesystem superblocks and so on."
16414 msgstr ""
16415
16416 #. type: textblock
16417 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228 ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
16418 msgid ""
16419 "If blocks are already zero, then this command avoids writing zeroes.  This "
16420 "prevents the underlying device from becoming non-sparse or growing "
16421 "unnecessarily."
16422 msgstr ""
16423
16424 #. type: textblock
16425 #: ../fish/guestfish-actions.pod:5217
16426 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16427 msgstr ""
16428
16429 #. type: =head2
16430 #: ../fish/guestfish-actions.pod:5220
16431 msgid "zero-device"
16432 msgstr ""
16433
16434 #. type: verbatim
16435 #: ../fish/guestfish-actions.pod:5222
16436 #, no-wrap
16437 msgid ""
16438 " zero-device device\n"
16439 "\n"
16440 msgstr ""
16441
16442 #. type: textblock
16443 #: ../fish/guestfish-actions.pod:5224
16444 msgid ""
16445 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16446 "which just zeroes the first few blocks of a device."
16447 msgstr ""
16448
16449 #. type: =head2
16450 #: ../fish/guestfish-actions.pod:5235
16451 msgid "zerofree"
16452 msgstr ""
16453
16454 #. type: verbatim
16455 #: ../fish/guestfish-actions.pod:5237
16456 #, no-wrap
16457 msgid ""
16458 " zerofree device\n"
16459 "\n"
16460 msgstr ""
16461
16462 #. type: textblock
16463 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
16464 msgid ""
16465 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16466 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16467 "possible to compress the filesystem more effectively."
16468 msgstr ""
16469
16470 #. type: textblock
16471 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
16472 msgid "You should B<not> run this program if the filesystem is mounted."
16473 msgstr ""
16474
16475 #. type: textblock
16476 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
16477 msgid ""
16478 "It is possible that using this program can damage the filesystem or data on "
16479 "the filesystem."
16480 msgstr ""
16481
16482 #. type: =head2
16483 #: ../fish/guestfish-actions.pod:5250
16484 msgid "zfgrep"
16485 msgstr ""
16486
16487 #. type: verbatim
16488 #: ../fish/guestfish-actions.pod:5252
16489 #, no-wrap
16490 msgid ""
16491 " zfgrep pattern path\n"
16492 "\n"
16493 msgstr ""
16494
16495 #. type: textblock
16496 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
16497 msgid "This calls the external C<zfgrep> program and returns the matching lines."
16498 msgstr ""
16499
16500 #. type: =head2
16501 #: ../fish/guestfish-actions.pod:5260
16502 msgid "zfgrepi"
16503 msgstr ""
16504
16505 #. type: verbatim
16506 #: ../fish/guestfish-actions.pod:5262
16507 #, no-wrap
16508 msgid ""
16509 " zfgrepi pattern path\n"
16510 "\n"
16511 msgstr ""
16512
16513 #. type: textblock
16514 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
16515 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
16516 msgstr ""
16517
16518 #. type: =head2
16519 #: ../fish/guestfish-actions.pod:5270
16520 msgid "zfile"
16521 msgstr ""
16522
16523 #. type: verbatim
16524 #: ../fish/guestfish-actions.pod:5272
16525 #, no-wrap
16526 msgid ""
16527 " zfile meth path\n"
16528 "\n"
16529 msgstr ""
16530
16531 #. type: textblock
16532 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
16533 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
16534 msgstr ""
16535
16536 #. type: textblock
16537 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
16538 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16539 msgstr ""
16540
16541 #. type: textblock
16542 #: ../fish/guestfish-actions.pod:5279
16543 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
16544 msgstr ""
16545
16546 #. type: textblock
16547 #: ../fish/guestfish-actions.pod:5282
16548 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
16549 msgstr ""
16550
16551 #. type: =head2
16552 #: ../fish/guestfish-actions.pod:5289
16553 msgid "zgrep"
16554 msgstr ""
16555
16556 #. type: verbatim
16557 #: ../fish/guestfish-actions.pod:5291
16558 #, no-wrap
16559 msgid ""
16560 " zgrep regex path\n"
16561 "\n"
16562 msgstr ""
16563
16564 #. type: textblock
16565 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
16566 msgid "This calls the external C<zgrep> program and returns the matching lines."
16567 msgstr ""
16568
16569 #. type: =head2
16570 #: ../fish/guestfish-actions.pod:5299
16571 msgid "zgrepi"
16572 msgstr ""
16573
16574 #. type: verbatim
16575 #: ../fish/guestfish-actions.pod:5301
16576 #, no-wrap
16577 msgid ""
16578 " zgrepi regex path\n"
16579 "\n"
16580 msgstr ""
16581
16582 #. type: textblock
16583 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
16584 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
16585 msgstr ""
16586
16587 #. type: =head2
16588 #: ../fish/guestfish-commands.pod:1
16589 msgid "alloc"
16590 msgstr ""
16591
16592 #. type: =head2
16593 #: ../fish/guestfish-commands.pod:3
16594 msgid "allocate"
16595 msgstr ""
16596
16597 #. type: verbatim
16598 #: ../fish/guestfish-commands.pod:5
16599 #, no-wrap
16600 msgid ""
16601 " alloc filename size\n"
16602 "\n"
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../fish/guestfish-commands.pod:7
16607 msgid ""
16608 "This creates an empty (zeroed) file of the given size, and then adds so it "
16609 "can be further examined."
16610 msgstr ""
16611
16612 #. type: textblock
16613 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16614 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16615 msgstr ""
16616
16617 #. type: textblock
16618 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16619 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16620 msgstr ""
16621
16622 #. type: textblock
16623 #: ../fish/guestfish-commands.pod:14
16624 msgid ""
16625 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16626 "image, see L</PREPARED DISK IMAGES>."
16627 msgstr ""
16628
16629 #. type: =head2
16630 #: ../fish/guestfish-commands.pod:17
16631 msgid "copy-in"
16632 msgstr ""
16633
16634 #. type: verbatim
16635 #: ../fish/guestfish-commands.pod:19
16636 #, no-wrap
16637 msgid ""
16638 " copy-in local [local ...] /remotedir\n"
16639 "\n"
16640 msgstr ""
16641
16642 #. type: textblock
16643 #: ../fish/guestfish-commands.pod:21
16644 msgid ""
16645 "C<copy-in> copies local files or directories recursively into the disk "
16646 "image, placing them in the directory called C</remotedir> (which must "
16647 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16648 "other commands as necessary."
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../fish/guestfish-commands.pod:26
16653 msgid ""
16654 "Multiple local files and directories can be specified, but the last "
16655 "parameter must always be a remote directory.  Wildcards cannot be used."
16656 msgstr ""
16657
16658 #. type: =head2
16659 #: ../fish/guestfish-commands.pod:30
16660 msgid "copy-out"
16661 msgstr ""
16662
16663 #. type: verbatim
16664 #: ../fish/guestfish-commands.pod:32
16665 #, no-wrap
16666 msgid ""
16667 " copy-out remote [remote ...] localdir\n"
16668 "\n"
16669 msgstr ""
16670
16671 #. type: textblock
16672 #: ../fish/guestfish-commands.pod:34
16673 msgid ""
16674 "C<copy-out> copies remote files or directories recursively out of the disk "
16675 "image, placing them on the host disk in a local directory called C<localdir> "
16676 "(which must exist).  This guestfish meta-command turns into a sequence of "
16677 "L</download>, L</tar-out> and other commands as necessary."
16678 msgstr ""
16679
16680 #. type: textblock
16681 #: ../fish/guestfish-commands.pod:40
16682 msgid ""
16683 "Multiple remote files and directories can be specified, but the last "
16684 "parameter must always be a local directory.  To download to the current "
16685 "directory, use C<.> as in:"
16686 msgstr ""
16687
16688 #. type: verbatim
16689 #: ../fish/guestfish-commands.pod:44
16690 #, no-wrap
16691 msgid ""
16692 " copy-out /home .\n"
16693 "\n"
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish-commands.pod:46
16698 msgid ""
16699 "Wildcards cannot be used in the ordinary command, but you can use them with "
16700 "the help of L</glob> like this:"
16701 msgstr ""
16702
16703 #. type: verbatim
16704 #: ../fish/guestfish-commands.pod:49
16705 #, no-wrap
16706 msgid ""
16707 " glob copy-out /home/* .\n"
16708 "\n"
16709 msgstr ""
16710
16711 #. type: =head2
16712 #: ../fish/guestfish-commands.pod:51
16713 msgid "display"
16714 msgstr ""
16715
16716 #. type: verbatim
16717 #: ../fish/guestfish-commands.pod:53
16718 #, no-wrap
16719 msgid ""
16720 " display filename\n"
16721 "\n"
16722 msgstr ""
16723
16724 #. type: textblock
16725 #: ../fish/guestfish-commands.pod:55
16726 msgid ""
16727 "Use C<display> (a graphical display program) to display an image file.  It "
16728 "downloads the file, and runs C<display> on it."
16729 msgstr ""
16730
16731 #. type: textblock
16732 #: ../fish/guestfish-commands.pod:58
16733 msgid ""
16734 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16735 "environment variable.  For example to use the GNOME display program:"
16736 msgstr ""
16737
16738 #. type: verbatim
16739 #: ../fish/guestfish-commands.pod:61
16740 #, no-wrap
16741 msgid ""
16742 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16743 "\n"
16744 msgstr ""
16745
16746 #. type: textblock
16747 #: ../fish/guestfish-commands.pod:63
16748 msgid "See also L<display(1)>."
16749 msgstr ""
16750
16751 #. type: =head2
16752 #: ../fish/guestfish-commands.pod:65
16753 msgid "echo"
16754 msgstr ""
16755
16756 #. type: verbatim
16757 #: ../fish/guestfish-commands.pod:67
16758 #, no-wrap
16759 msgid ""
16760 " echo [params ...]\n"
16761 "\n"
16762 msgstr ""
16763
16764 #. type: textblock
16765 #: ../fish/guestfish-commands.pod:69
16766 msgid "This echos the parameters to the terminal."
16767 msgstr ""
16768
16769 #. type: =head2
16770 #: ../fish/guestfish-commands.pod:71
16771 msgid "edit"
16772 msgstr ""
16773
16774 #. type: =head2
16775 #: ../fish/guestfish-commands.pod:73
16776 msgid "vi"
16777 msgstr ""
16778
16779 #. type: =head2
16780 #: ../fish/guestfish-commands.pod:75
16781 msgid "emacs"
16782 msgstr ""
16783
16784 #. type: verbatim
16785 #: ../fish/guestfish-commands.pod:77
16786 #, no-wrap
16787 msgid ""
16788 " edit filename\n"
16789 "\n"
16790 msgstr ""
16791
16792 #. type: textblock
16793 #: ../fish/guestfish-commands.pod:79
16794 msgid ""
16795 "This is used to edit a file.  It downloads the file, edits it locally using "
16796 "your editor, then uploads the result."
16797 msgstr ""
16798
16799 #. type: textblock
16800 #: ../fish/guestfish-commands.pod:82
16801 msgid ""
16802 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16803 "or C<emacs> you will get those corresponding editors."
16804 msgstr ""
16805
16806 #. type: =head2
16807 #: ../fish/guestfish-commands.pod:86
16808 msgid "glob"
16809 msgstr ""
16810
16811 #. type: verbatim
16812 #: ../fish/guestfish-commands.pod:88
16813 #, no-wrap
16814 msgid ""
16815 " glob command args...\n"
16816 "\n"
16817 msgstr ""
16818
16819 #. type: textblock
16820 #: ../fish/guestfish-commands.pod:90
16821 msgid ""
16822 "Expand wildcards in any paths in the args list, and run C<command> "
16823 "repeatedly on each matching path."
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../fish/guestfish-commands.pod:93
16828 msgid "See L</WILDCARDS AND GLOBBING>."
16829 msgstr ""
16830
16831 #. type: =head2
16832 #: ../fish/guestfish-commands.pod:95
16833 msgid "hexedit"
16834 msgstr ""
16835
16836 #. type: verbatim
16837 #: ../fish/guestfish-commands.pod:97
16838 #, no-wrap
16839 msgid ""
16840 " hexedit <filename|device>\n"
16841 " hexedit <filename|device> <max>\n"
16842 " hexedit <filename|device> <start> <max>\n"
16843 "\n"
16844 msgstr ""
16845
16846 #. type: textblock
16847 #: ../fish/guestfish-commands.pod:101
16848 msgid ""
16849 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16850 "device."
16851 msgstr ""
16852
16853 #. type: textblock
16854 #: ../fish/guestfish-commands.pod:104
16855 msgid ""
16856 "This command works by downloading potentially the whole file or device, "
16857 "editing it locally, then uploading it.  If the file or device is large, you "
16858 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16859 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16860 "usual modifiers allowed such as C<1M> (1 megabyte)."
16861 msgstr ""
16862
16863 #. type: textblock
16864 #: ../fish/guestfish-commands.pod:111
16865 msgid "For example to edit the first few sectors of a disk you might do:"
16866 msgstr ""
16867
16868 #. type: verbatim
16869 #: ../fish/guestfish-commands.pod:114
16870 #, no-wrap
16871 msgid ""
16872 " hexedit /dev/sda 1M\n"
16873 "\n"
16874 msgstr ""
16875
16876 #. type: textblock
16877 #: ../fish/guestfish-commands.pod:116
16878 msgid ""
16879 "which would allow you to edit anywhere within the first megabyte of the "
16880 "disk."
16881 msgstr ""
16882
16883 #. type: textblock
16884 #: ../fish/guestfish-commands.pod:119
16885 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16886 msgstr ""
16887
16888 #. type: verbatim
16889 #: ../fish/guestfish-commands.pod:121
16890 #, no-wrap
16891 msgid ""
16892 " hexedit /dev/sda1 0x400 0x400\n"
16893 "\n"
16894 msgstr ""
16895
16896 #. type: textblock
16897 #: ../fish/guestfish-commands.pod:123
16898 msgid "(assuming the superblock is in the standard location)."
16899 msgstr ""
16900
16901 #. type: textblock
16902 #: ../fish/guestfish-commands.pod:125
16903 msgid ""
16904 "This command requires the external L<hexedit(1)> program.  You can specify "
16905 "another program to use by setting the C<HEXEDITOR> environment variable."
16906 msgstr ""
16907
16908 #. type: textblock
16909 #: ../fish/guestfish-commands.pod:129
16910 msgid "See also L</hexdump>."
16911 msgstr ""
16912
16913 #. type: =head2
16914 #: ../fish/guestfish-commands.pod:131
16915 msgid "lcd"
16916 msgstr ""
16917
16918 #. type: verbatim
16919 #: ../fish/guestfish-commands.pod:133
16920 #, no-wrap
16921 msgid ""
16922 " lcd directory\n"
16923 "\n"
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish-commands.pod:135
16928 msgid "Change the local directory, ie. the current directory of guestfish itself."
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish-commands.pod:138
16933 msgid "Note that C<!cd> won't do what you might expect."
16934 msgstr ""
16935
16936 #. type: =head2
16937 #: ../fish/guestfish-commands.pod:140
16938 msgid "man"
16939 msgstr ""
16940
16941 #. type: =head2
16942 #: ../fish/guestfish-commands.pod:142
16943 msgid "manual"
16944 msgstr ""
16945
16946 #. type: verbatim
16947 #: ../fish/guestfish-commands.pod:144
16948 #, no-wrap
16949 msgid ""
16950 "  man\n"
16951 "\n"
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish-commands.pod:146
16956 msgid "Opens the manual page for guestfish."
16957 msgstr ""
16958
16959 #. type: =head2
16960 #: ../fish/guestfish-commands.pod:148
16961 msgid "more"
16962 msgstr ""
16963
16964 #. type: =head2
16965 #: ../fish/guestfish-commands.pod:150
16966 msgid "less"
16967 msgstr ""
16968
16969 #. type: verbatim
16970 #: ../fish/guestfish-commands.pod:152
16971 #, no-wrap
16972 msgid ""
16973 " more filename\n"
16974 "\n"
16975 msgstr ""
16976
16977 #. type: verbatim
16978 #: ../fish/guestfish-commands.pod:154
16979 #, no-wrap
16980 msgid ""
16981 " less filename\n"
16982 "\n"
16983 msgstr ""
16984
16985 #. type: textblock
16986 #: ../fish/guestfish-commands.pod:156
16987 msgid "This is used to view a file."
16988 msgstr ""
16989
16990 #. type: textblock
16991 #: ../fish/guestfish-commands.pod:158
16992 msgid ""
16993 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16994 "C<less> you will get the C<less> command specifically."
16995 msgstr ""
16996
16997 #. type: =head2
16998 #: ../fish/guestfish-commands.pod:161
16999 msgid "reopen"
17000 msgstr ""
17001
17002 #. type: verbatim
17003 #: ../fish/guestfish-commands.pod:163
17004 #, no-wrap
17005 msgid ""
17006 "  reopen\n"
17007 "\n"
17008 msgstr ""
17009
17010 #. type: textblock
17011 #: ../fish/guestfish-commands.pod:165
17012 msgid ""
17013 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17014 "normally, because the handle is closed properly when guestfish exits.  "
17015 "However this is occasionally useful for testing."
17016 msgstr ""
17017
17018 #. type: =head2
17019 #: ../fish/guestfish-commands.pod:169
17020 msgid "setenv"
17021 msgstr ""
17022
17023 #. type: verbatim
17024 #: ../fish/guestfish-commands.pod:171
17025 #, no-wrap
17026 msgid ""
17027 "  setenv VAR value\n"
17028 "\n"
17029 msgstr ""
17030
17031 #. type: textblock
17032 #: ../fish/guestfish-commands.pod:173
17033 msgid "Set the environment variable C<VAR> to the string C<value>."
17034 msgstr ""
17035
17036 #. type: textblock
17037 #: ../fish/guestfish-commands.pod:175
17038 msgid "To print the value of an environment variable use a shell command such as:"
17039 msgstr ""
17040
17041 #. type: verbatim
17042 #: ../fish/guestfish-commands.pod:178
17043 #, no-wrap
17044 msgid ""
17045 " !echo $VAR\n"
17046 "\n"
17047 msgstr ""
17048
17049 #. type: =head2
17050 #: ../fish/guestfish-commands.pod:180
17051 msgid "sparse"
17052 msgstr ""
17053
17054 #. type: verbatim
17055 #: ../fish/guestfish-commands.pod:182
17056 #, no-wrap
17057 msgid ""
17058 " sparse filename size\n"
17059 "\n"
17060 msgstr ""
17061
17062 #. type: textblock
17063 #: ../fish/guestfish-commands.pod:184
17064 msgid ""
17065 "This creates an empty sparse file of the given size, and then adds so it can "
17066 "be further examined."
17067 msgstr ""
17068
17069 #. type: textblock
17070 #: ../fish/guestfish-commands.pod:187
17071 msgid ""
17072 "In all respects it works the same as the L</alloc> command, except that the "
17073 "image file is allocated sparsely, which means that disk blocks are not "
17074 "assigned to the file until they are needed.  Sparse disk files only use "
17075 "space when written to, but they are slower and there is a danger you could "
17076 "run out of real disk space during a write operation."
17077 msgstr ""
17078
17079 #. type: =head2
17080 #: ../fish/guestfish-commands.pod:197
17081 msgid "supported"
17082 msgstr ""
17083
17084 #. type: verbatim
17085 #: ../fish/guestfish-commands.pod:199
17086 #, no-wrap
17087 msgid ""
17088 " supported\n"
17089 "\n"
17090 msgstr ""
17091
17092 #. type: textblock
17093 #: ../fish/guestfish-commands.pod:201
17094 msgid ""
17095 "This command returns a list of the optional groups known to the daemon, and "
17096 "indicates which ones are supported by this build of the libguestfs "
17097 "appliance."
17098 msgstr ""
17099
17100 #. type: textblock
17101 #: ../fish/guestfish-commands.pod:205
17102 msgid "See also L<guestfs(3)/AVAILABILITY>."
17103 msgstr ""
17104
17105 #. type: =head2
17106 #: ../fish/guestfish-commands.pod:207
17107 msgid "time"
17108 msgstr ""
17109
17110 #. type: verbatim
17111 #: ../fish/guestfish-commands.pod:209
17112 #, no-wrap
17113 msgid ""
17114 " time command args...\n"
17115 "\n"
17116 msgstr ""
17117
17118 #. type: textblock
17119 #: ../fish/guestfish-commands.pod:211
17120 msgid ""
17121 "Run the command as usual, but print the elapsed time afterwards.  This can "
17122 "be useful for benchmarking operations."
17123 msgstr ""
17124
17125 #. type: =head2
17126 #: ../fish/guestfish-commands.pod:214
17127 msgid "unsetenv"
17128 msgstr ""
17129
17130 #. type: verbatim
17131 #: ../fish/guestfish-commands.pod:216
17132 #, no-wrap
17133 msgid ""
17134 "  unsetenv VAR\n"
17135 "\n"
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../fish/guestfish-commands.pod:218
17140 msgid "Remove C<VAR> from the environment."
17141 msgstr ""
17142
17143 #. type: textblock
17144 #: ../fish/guestfish.pod:5
17145 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17146 msgstr ""
17147
17148 #. type: verbatim
17149 #: ../fish/guestfish.pod:9
17150 #, no-wrap
17151 msgid ""
17152 " guestfish [--options] [commands]\n"
17153 "\n"
17154 msgstr ""
17155
17156 #. type: verbatim
17157 #: ../fish/guestfish.pod:11
17158 #, no-wrap
17159 msgid ""
17160 " guestfish\n"
17161 "\n"
17162 msgstr ""
17163
17164 #. type: verbatim
17165 #: ../fish/guestfish.pod:13
17166 #, no-wrap
17167 msgid ""
17168 " guestfish [--ro|--rw] -a disk.img\n"
17169 "\n"
17170 msgstr ""
17171
17172 #. type: verbatim
17173 #: ../fish/guestfish.pod:15
17174 #, no-wrap
17175 msgid ""
17176 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17177 "\n"
17178 msgstr ""
17179
17180 #. type: verbatim
17181 #: ../fish/guestfish.pod:17
17182 #, no-wrap
17183 msgid ""
17184 " guestfish -d libvirt-domain\n"
17185 "\n"
17186 msgstr ""
17187
17188 #. type: verbatim
17189 #: ../fish/guestfish.pod:19
17190 #, no-wrap
17191 msgid ""
17192 " guestfish [--ro|--rw] -a disk.img -i\n"
17193 "\n"
17194 msgstr ""
17195
17196 #. type: verbatim
17197 #: ../fish/guestfish.pod:21
17198 #, no-wrap
17199 msgid ""
17200 " guestfish -d libvirt-domain -i\n"
17201 "\n"
17202 msgstr ""
17203
17204 #. type: textblock
17205 #: ../fish/guestfish.pod:25
17206 msgid ""
17207 "Using guestfish in read/write mode on live virtual machines can be "
17208 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17209 "option to use guestfish safely if the disk image or virtual machine might be "
17210 "live."
17211 msgstr ""
17212
17213 #. type: textblock
17214 #: ../fish/guestfish.pod:32
17215 msgid ""
17216 "Guestfish is a shell and command-line tool for examining and modifying "
17217 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17218 "functionality of the guestfs API, see L<guestfs(3)>."
17219 msgstr ""
17220
17221 #. type: textblock
17222 #: ../fish/guestfish.pod:36
17223 msgid ""
17224 "Guestfish gives you structured access to the libguestfs API, from shell "
17225 "scripts or the command line or interactively.  If you want to rescue a "
17226 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17227 "command."
17228 msgstr ""
17229
17230 #. type: =head2
17231 #: ../fish/guestfish.pod:43
17232 msgid "As an interactive shell"
17233 msgstr ""
17234
17235 #. type: verbatim
17236 #: ../fish/guestfish.pod:45
17237 #, no-wrap
17238 msgid ""
17239 " $ guestfish\n"
17240 " \n"
17241 msgstr ""
17242
17243 #. type: verbatim
17244 #: ../fish/guestfish.pod:47
17245 #, no-wrap
17246 msgid ""
17247 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17248 " editing virtual machine filesystems.\n"
17249 " \n"
17250 msgstr ""
17251
17252 #. type: verbatim
17253 #: ../fish/guestfish.pod:50
17254 #, no-wrap
17255 msgid ""
17256 " Type: 'help' for a list of commands\n"
17257 "       'man' to read the manual\n"
17258 "       'quit' to quit the shell\n"
17259 " \n"
17260 msgstr ""
17261
17262 #. type: verbatim
17263 #: ../fish/guestfish.pod:54
17264 #, no-wrap
17265 msgid ""
17266 " ><fs> add-ro disk.img\n"
17267 " ><fs> run\n"
17268 " ><fs> list-filesystems\n"
17269 " /dev/sda1: ext4\n"
17270 " /dev/vg_guest/lv_root: ext4\n"
17271 " /dev/vg_guest/lv_swap: swap\n"
17272 " ><fs> mount /dev/vg_guest/lv_root /\n"
17273 " ><fs> cat /etc/fstab\n"
17274 " # /etc/fstab\n"
17275 " # Created by anaconda\n"
17276 " [...]\n"
17277 " ><fs> exit\n"
17278 "\n"
17279 msgstr ""
17280
17281 #. type: =head2
17282 #: ../fish/guestfish.pod:67
17283 msgid "From shell scripts"
17284 msgstr ""
17285
17286 #. type: textblock
17287 #: ../fish/guestfish.pod:69
17288 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17289 msgstr ""
17290
17291 #. type: verbatim
17292 #: ../fish/guestfish.pod:71
17293 #, no-wrap
17294 msgid ""
17295 " guestfish <<_EOF_\n"
17296 " add disk.img\n"
17297 " run\n"
17298 " mount /dev/vg_guest/lv_root /\n"
17299 " write /etc/motd \"Welcome, new users\"\n"
17300 " _EOF_\n"
17301 "\n"
17302 msgstr ""
17303
17304 #. type: textblock
17305 #: ../fish/guestfish.pod:78
17306 msgid "List the LVM logical volumes in a disk image:"
17307 msgstr ""
17308
17309 #. type: verbatim
17310 #: ../fish/guestfish.pod:80
17311 #, no-wrap
17312 msgid ""
17313 " guestfish -a disk.img --ro <<_EOF_\n"
17314 " run\n"
17315 " lvs\n"
17316 " _EOF_\n"
17317 "\n"
17318 msgstr ""
17319
17320 #. type: textblock
17321 #: ../fish/guestfish.pod:85
17322 msgid "List all the filesystems in a disk image:"
17323 msgstr ""
17324
17325 #. type: verbatim
17326 #: ../fish/guestfish.pod:87
17327 #, no-wrap
17328 msgid ""
17329 " guestfish -a disk.img --ro <<_EOF_\n"
17330 " run\n"
17331 " list-filesystems\n"
17332 " _EOF_\n"
17333 "\n"
17334 msgstr ""
17335
17336 #. type: =head2
17337 #: ../fish/guestfish.pod:92
17338 msgid "On one command line"
17339 msgstr ""
17340
17341 #. type: textblock
17342 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17343 msgid "Update C</etc/resolv.conf> in a guest:"
17344 msgstr ""
17345
17346 #. type: verbatim
17347 #: ../fish/guestfish.pod:96
17348 #, no-wrap
17349 msgid ""
17350 " guestfish \\\n"
17351 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17352 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17353 "\n"
17354 msgstr ""
17355
17356 #. type: textblock
17357 #: ../fish/guestfish.pod:100
17358 msgid "Edit C</boot/grub/grub.conf> interactively:"
17359 msgstr ""
17360
17361 #. type: verbatim
17362 #: ../fish/guestfish.pod:102
17363 #, no-wrap
17364 msgid ""
17365 " guestfish --rw --add disk.img \\\n"
17366 "   --mount /dev/vg_guest/lv_root \\\n"
17367 "   --mount /dev/sda1:/boot \\\n"
17368 "   edit /boot/grub/grub.conf\n"
17369 "\n"
17370 msgstr ""
17371
17372 #. type: =head2
17373 #: ../fish/guestfish.pod:107
17374 msgid "Mount disks automatically"
17375 msgstr ""
17376
17377 #. type: textblock
17378 #: ../fish/guestfish.pod:109
17379 msgid ""
17380 "Use the I<-i> option to automatically mount the disks from a virtual "
17381 "machine:"
17382 msgstr ""
17383
17384 #. type: verbatim
17385 #: ../fish/guestfish.pod:112
17386 #, no-wrap
17387 msgid ""
17388 " guestfish --ro -a disk.img -i cat /etc/group\n"
17389 "\n"
17390 msgstr ""
17391
17392 #. type: verbatim
17393 #: ../fish/guestfish.pod:114
17394 #, no-wrap
17395 msgid ""
17396 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17397 "\n"
17398 msgstr ""
17399
17400 #. type: textblock
17401 #: ../fish/guestfish.pod:116
17402 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17403 msgstr ""
17404
17405 #. type: verbatim
17406 #: ../fish/guestfish.pod:118
17407 #, no-wrap
17408 msgid ""
17409 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17410 "\n"
17411 msgstr ""
17412
17413 #. type: =head2
17414 #: ../fish/guestfish.pod:120
17415 msgid "As a script interpreter"
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../fish/guestfish.pod:122
17420 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17421 msgstr ""
17422
17423 #. type: verbatim
17424 #: ../fish/guestfish.pod:124
17425 #, no-wrap
17426 msgid ""
17427 " #!/usr/bin/guestfish -f\n"
17428 " sparse test1.img 100M\n"
17429 " run\n"
17430 " part-disk /dev/sda mbr\n"
17431 " mkfs ext2 /dev/sda1\n"
17432 "\n"
17433 msgstr ""
17434
17435 #. type: =head2
17436 #: ../fish/guestfish.pod:130
17437 msgid "Start with a prepared disk"
17438 msgstr ""
17439
17440 #. type: textblock
17441 #: ../fish/guestfish.pod:132
17442 msgid ""
17443 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17444 "single ext2-formatted partition:"
17445 msgstr ""
17446
17447 #. type: verbatim
17448 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
17449 #, no-wrap
17450 msgid ""
17451 " guestfish -N fs\n"
17452 "\n"
17453 msgstr ""
17454
17455 #. type: textblock
17456 #: ../fish/guestfish.pod:137
17457 msgid "To list what is available do:"
17458 msgstr ""
17459
17460 #. type: verbatim
17461 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
17462 #, no-wrap
17463 msgid ""
17464 " guestfish -N help | less\n"
17465 "\n"
17466 msgstr ""
17467
17468 #. type: =head2
17469 #: ../fish/guestfish.pod:141
17470 msgid "Remote control"
17471 msgstr ""
17472
17473 #. type: verbatim
17474 #: ../fish/guestfish.pod:143
17475 #, no-wrap
17476 msgid ""
17477 " eval \"`guestfish --listen`\"\n"
17478 " guestfish --remote add-ro disk.img\n"
17479 " guestfish --remote run\n"
17480 " guestfish --remote lvs\n"
17481 "\n"
17482 msgstr ""
17483
17484 #. type: textblock
17485 #: ../fish/guestfish.pod:154
17486 msgid "Displays general help on options."
17487 msgstr ""
17488
17489 #. type: =item
17490 #: ../fish/guestfish.pod:158
17491 msgid "B<--cmd-help>"
17492 msgstr ""
17493
17494 #. type: textblock
17495 #: ../fish/guestfish.pod:160
17496 msgid "Lists all available guestfish commands."
17497 msgstr ""
17498
17499 #. type: =item
17500 #: ../fish/guestfish.pod:162
17501 msgid "B<-h cmd>"
17502 msgstr ""
17503
17504 #. type: =item
17505 #: ../fish/guestfish.pod:164
17506 msgid "B<--cmd-help cmd>"
17507 msgstr ""
17508
17509 #. type: textblock
17510 #: ../fish/guestfish.pod:166
17511 msgid "Displays detailed help on a single command C<cmd>."
17512 msgstr ""
17513
17514 #. type: =item
17515 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
17516 msgid "B<-a image>"
17517 msgstr ""
17518
17519 #. type: =item
17520 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
17521 msgid "B<--add image>"
17522 msgstr ""
17523
17524 #. type: textblock
17525 #: ../fish/guestfish.pod:172
17526 msgid "Add a block device or virtual machine image to the shell."
17527 msgstr ""
17528
17529 #. type: textblock
17530 #: ../fish/guestfish.pod:177
17531 msgid ""
17532 "Using this flag is mostly equivalent to using the C<add> command, with "
17533 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17534 "the I<--format=...> flag was given."
17535 msgstr ""
17536
17537 #. type: textblock
17538 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
17539 msgid ""
17540 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17541 "URI to use.  The default is to use the default libvirt connection."
17542 msgstr ""
17543
17544 #. type: =item
17545 #: ../fish/guestfish.pod:189
17546 msgid "B<--csh>"
17547 msgstr ""
17548
17549 #. type: textblock
17550 #: ../fish/guestfish.pod:191
17551 msgid ""
17552 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17553 "section L</REMOTE CONTROL AND CSH> below."
17554 msgstr ""
17555
17556 #. type: =item
17557 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
17558 msgid "B<-d libvirt-domain>"
17559 msgstr ""
17560
17561 #. type: =item
17562 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
17563 msgid "B<--domain libvirt-domain>"
17564 msgstr ""
17565
17566 #. type: textblock
17567 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
17568 msgid ""
17569 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17570 "used, then any libvirt domain can be used.  However in write mode, only "
17571 "libvirt domains which are shut down can be named here."
17572 msgstr ""
17573
17574 #. type: textblock
17575 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
17576 msgid "Domain UUIDs can be used instead of names."
17577 msgstr ""
17578
17579 #. type: textblock
17580 #: ../fish/guestfish.pod:204
17581 msgid ""
17582 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17583 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17584 "if the I<--format:...> flag was given."
17585 msgstr ""
17586
17587 #. type: =item
17588 #: ../fish/guestfish.pod:208
17589 msgid "B<-D>"
17590 msgstr ""
17591
17592 #. type: =item
17593 #: ../fish/guestfish.pod:210
17594 msgid "B<--no-dest-paths>"
17595 msgstr ""
17596
17597 #. type: textblock
17598 #: ../fish/guestfish.pod:212
17599 msgid ""
17600 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17601 "to hit the tab key to complete paths on the guest filesystem, but this "
17602 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17603 "allow this feature to be disabled."
17604 msgstr ""
17605
17606 #. type: textblock
17607 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
17608 msgid ""
17609 "When prompting for keys and passphrases, guestfish normally turns echoing "
17610 "off so you cannot see what you are typing.  If you are not worried about "
17611 "Tempest attacks and there is no one else in the room you can specify this "
17612 "flag to see what you are typing."
17613 msgstr ""
17614
17615 #. type: =item
17616 #: ../fish/guestfish.pod:224
17617 msgid "B<-f file>"
17618 msgstr ""
17619
17620 #. type: =item
17621 #: ../fish/guestfish.pod:226
17622 msgid "B<--file file>"
17623 msgstr ""
17624
17625 #. type: textblock
17626 #: ../fish/guestfish.pod:228
17627 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17628 msgstr ""
17629
17630 #. type: verbatim
17631 #: ../fish/guestfish.pod:231
17632 #, no-wrap
17633 msgid ""
17634 " #!/usr/bin/guestfish -f\n"
17635 "\n"
17636 msgstr ""
17637
17638 #. type: verbatim
17639 #: ../fish/guestfish.pod:244
17640 #, no-wrap
17641 msgid ""
17642 " guestfish --format=raw -a disk.img\n"
17643 "\n"
17644 msgstr ""
17645
17646 #. type: verbatim
17647 #: ../fish/guestfish.pod:248
17648 #, no-wrap
17649 msgid ""
17650 " guestfish --format=raw -a disk.img --format -a another.img\n"
17651 "\n"
17652 msgstr ""
17653
17654 #. type: textblock
17655 #: ../fish/guestfish.pod:253
17656 msgid ""
17657 "If you have untrusted raw-format guest disk images, you should use this "
17658 "option to specify the disk format.  This avoids a possible security problem "
17659 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17660 msgstr ""
17661
17662 #. type: =item
17663 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
17664 msgid "B<--inspector>"
17665 msgstr ""
17666
17667 #. type: textblock
17668 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
17669 msgid ""
17670 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17671 "system and mount filesystems as they would be mounted on the real virtual "
17672 "machine."
17673 msgstr ""
17674
17675 #. type: textblock
17676 #: ../fish/guestfish.pod:266
17677 msgid "Typical usage is either:"
17678 msgstr ""
17679
17680 #. type: verbatim
17681 #: ../fish/guestfish.pod:268
17682 #, no-wrap
17683 msgid ""
17684 " guestfish -d myguest -i\n"
17685 "\n"
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish.pod:270
17690 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17691 msgstr ""
17692
17693 #. type: verbatim
17694 #: ../fish/guestfish.pod:272
17695 #, no-wrap
17696 msgid ""
17697 " guestfish --ro -d myguest -i\n"
17698 "\n"
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish.pod:274
17703 msgid "(for active domains, readonly), or specify the block device directly:"
17704 msgstr ""
17705
17706 #. type: verbatim
17707 #: ../fish/guestfish.pod:276
17708 #, no-wrap
17709 msgid ""
17710 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17711 "\n"
17712 msgstr ""
17713
17714 #. type: textblock
17715 #: ../fish/guestfish.pod:278
17716 msgid ""
17717 "Note that the command line syntax changed slightly over older versions of "
17718 "guestfish.  You can still use the old syntax:"
17719 msgstr ""
17720
17721 #. type: verbatim
17722 #: ../fish/guestfish.pod:281
17723 #, no-wrap
17724 msgid ""
17725 " guestfish [--ro] -i disk.img\n"
17726 "\n"
17727 msgstr ""
17728
17729 #. type: verbatim
17730 #: ../fish/guestfish.pod:283
17731 #, no-wrap
17732 msgid ""
17733 " guestfish [--ro] -i libvirt-domain\n"
17734 "\n"
17735 msgstr ""
17736
17737 #. type: textblock
17738 #: ../fish/guestfish.pod:285
17739 msgid ""
17740 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17741 "then using other commands to mount the filesystems that were found."
17742 msgstr ""
17743
17744 #. type: =item
17745 #: ../fish/guestfish.pod:294
17746 msgid "B<--listen>"
17747 msgstr ""
17748
17749 #. type: textblock
17750 #: ../fish/guestfish.pod:296
17751 msgid ""
17752 "Fork into the background and listen for remote commands.  See section "
17753 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17754 msgstr ""
17755
17756 #. type: =item
17757 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
17758 msgid "B<--live>"
17759 msgstr ""
17760
17761 #. type: textblock
17762 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
17763 msgid ""
17764 "Connect to a live virtual machine.  (Experimental, see "
17765 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
17766 msgstr ""
17767
17768 #. type: =item
17769 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
17770 msgid "B<-m dev[:mountpoint[:options]]>"
17771 msgstr ""
17772
17773 #. type: =item
17774 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
17775 msgid "B<--mount dev[:mountpoint[:options]]>"
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../fish/guestfish.pod:308
17780 msgid "Mount the named partition or logical volume on the given mountpoint."
17781 msgstr ""
17782
17783 #. type: textblock
17784 #: ../fish/guestfish.pod:310
17785 msgid "If the mountpoint is omitted, it defaults to C</>."
17786 msgstr ""
17787
17788 #. type: textblock
17789 #: ../fish/guestfish.pod:312
17790 msgid "You have to mount something on C</> before most commands will work."
17791 msgstr ""
17792
17793 #. type: textblock
17794 #: ../fish/guestfish.pod:314
17795 msgid ""
17796 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17797 "launched."
17798 msgstr ""
17799
17800 #. type: textblock
17801 #: ../fish/guestfish.pod:317
17802 msgid ""
17803 "If you don't know what filesystems a disk image contains, you can either run "
17804 "guestfish without this option, then list the partitions, filesystems and LVs "
17805 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17806 "commands), or you can use the L<virt-filesystems(1)> program."
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
17811 msgid ""
17812 "The third (and rarely used) part of the mount parameter is the list of mount "
17813 "options used to mount the underlying filesystem.  If this is not given, then "
17814 "the mount options are either the empty string or C<ro> (the latter if the "
17815 "I<--ro> flag is used).  By specifying the mount options, you override this "
17816 "default choice.  Probably the only time you would use this is to enable ACLs "
17817 "and/or extended attributes if the filesystem can support them:"
17818 msgstr ""
17819
17820 #. type: verbatim
17821 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
17822 #, no-wrap
17823 msgid ""
17824 " -m /dev/sda1:/:acl,user_xattr\n"
17825 "\n"
17826 msgstr ""
17827
17828 #. type: textblock
17829 #: ../fish/guestfish.pod:333
17830 msgid "Using this flag is equivalent to using the C<mount-options> command."
17831 msgstr ""
17832
17833 #. type: =item
17834 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:414
17835 msgid "B<-n>"
17836 msgstr ""
17837
17838 #. type: =item
17839 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
17840 msgid "B<--no-sync>"
17841 msgstr ""
17842
17843 #. type: textblock
17844 #: ../fish/guestfish.pod:339
17845 msgid ""
17846 "Disable autosync.  This is enabled by default.  See the discussion of "
17847 "autosync in the L<guestfs(3)> manpage."
17848 msgstr ""
17849
17850 #. type: =item
17851 #: ../fish/guestfish.pod:342
17852 msgid "B<-N type>"
17853 msgstr ""
17854
17855 #. type: =item
17856 #: ../fish/guestfish.pod:344
17857 msgid "B<--new type>"
17858 msgstr ""
17859
17860 #. type: =item
17861 #: ../fish/guestfish.pod:346
17862 msgid "B<-N help>"
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish.pod:348
17867 msgid ""
17868 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17869 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17870 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17871 "IMAGES> below."
17872 msgstr ""
17873
17874 #. type: =item
17875 #: ../fish/guestfish.pod:353
17876 msgid "B<--progress-bars>"
17877 msgstr ""
17878
17879 #. type: textblock
17880 #: ../fish/guestfish.pod:355
17881 msgid "Enable progress bars, even when guestfish is used non-interactively."
17882 msgstr ""
17883
17884 #. type: textblock
17885 #: ../fish/guestfish.pod:357
17886 msgid ""
17887 "Progress bars are enabled by default when guestfish is used as an "
17888 "interactive shell."
17889 msgstr ""
17890
17891 #. type: =item
17892 #: ../fish/guestfish.pod:360
17893 msgid "B<--no-progress-bars>"
17894 msgstr ""
17895
17896 #. type: textblock
17897 #: ../fish/guestfish.pod:362
17898 msgid "Disable progress bars."
17899 msgstr ""
17900
17901 #. type: =item
17902 #: ../fish/guestfish.pod:364
17903 msgid "B<--remote[=pid]>"
17904 msgstr ""
17905
17906 #. type: textblock
17907 #: ../fish/guestfish.pod:366
17908 msgid ""
17909 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17910 "CONTROL GUESTFISH OVER A SOCKET> below."
17911 msgstr ""
17912
17913 #. type: =item
17914 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:161
17915 msgid "B<-r>"
17916 msgstr ""
17917
17918 #. type: =item
17919 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:163
17920 msgid "B<--ro>"
17921 msgstr ""
17922
17923 #. type: textblock
17924 #: ../fish/guestfish.pod:373
17925 msgid ""
17926 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17927 "mounts are done read-only."
17928 msgstr ""
17929
17930 #. type: textblock
17931 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17932 msgid ""
17933 "The option must always be used if the disk image or virtual machine might be "
17934 "running, and is generally recommended in cases where you don't need write "
17935 "access to the disk."
17936 msgstr ""
17937
17938 #. type: textblock
17939 #: ../fish/guestfish.pod:380
17940 msgid ""
17941 "Note that prepared disk images created with I<-N> are not affected by this "
17942 "option.  Also commands like C<add> are not affected - you have to specify "
17943 "the C<readonly:true> option explicitly if you need it."
17944 msgstr ""
17945
17946 #. type: textblock
17947 #: ../fish/guestfish.pod:384
17948 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17949 msgstr ""
17950
17951 #. type: =item
17952 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:173
17953 msgid "B<--selinux>"
17954 msgstr ""
17955
17956 #. type: textblock
17957 #: ../fish/guestfish.pod:388
17958 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../fish/guestfish.pod:394
17963 msgid ""
17964 "Enable very verbose messages.  This is particularly useful if you find a "
17965 "bug."
17966 msgstr ""
17967
17968 #. type: textblock
17969 #: ../fish/guestfish.pod:401
17970 msgid "Display the guestfish / libguestfs version number and exit."
17971 msgstr ""
17972
17973 #. type: =item
17974 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:194
17975 msgid "B<-w>"
17976 msgstr ""
17977
17978 #. type: =item
17979 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:196
17980 msgid "B<--rw>"
17981 msgstr ""
17982
17983 #. type: textblock
17984 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
17985 msgid ""
17986 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17987 "mounts are done read-write."
17988 msgstr ""
17989
17990 #. type: textblock
17991 #: ../fish/guestfish.pod:410
17992 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17993 msgstr ""
17994
17995 #. type: textblock
17996 #: ../fish/guestfish.pod:414
17997 msgid "Echo each command before executing it."
17998 msgstr ""
17999
18000 #. type: =head1
18001 #: ../fish/guestfish.pod:418
18002 msgid "COMMANDS ON COMMAND LINE"
18003 msgstr ""
18004
18005 #. type: textblock
18006 #: ../fish/guestfish.pod:420
18007 msgid "Any additional (non-option) arguments are treated as commands to execute."
18008 msgstr ""
18009
18010 #. type: textblock
18011 #: ../fish/guestfish.pod:423
18012 msgid ""
18013 "Commands to execute should be separated by a colon (C<:>), where the colon "
18014 "is a separate parameter.  Thus:"
18015 msgstr ""
18016
18017 #. type: verbatim
18018 #: ../fish/guestfish.pod:426
18019 #, no-wrap
18020 msgid ""
18021 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18022 "\n"
18023 msgstr ""
18024
18025 #. type: textblock
18026 #: ../fish/guestfish.pod:428
18027 msgid ""
18028 "If there are no additional arguments, then we enter a shell, either an "
18029 "interactive shell with a prompt (if the input is a terminal) or a "
18030 "non-interactive shell."
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish.pod:432
18035 msgid ""
18036 "In either command line mode or non-interactive shell, the first command that "
18037 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18038 "prompt) if a command fails, you can continue to enter commands."
18039 msgstr ""
18040
18041 #. type: =head1
18042 #: ../fish/guestfish.pod:437
18043 msgid "USING launch (OR run)"
18044 msgstr ""
18045
18046 #. type: textblock
18047 #: ../fish/guestfish.pod:439
18048 msgid ""
18049 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18050 "then launch it, then mount any disks you need, and finally issue "
18051 "actions/commands.  So the general order of the day is:"
18052 msgstr ""
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:447
18056 msgid "add or -a/--add"
18057 msgstr ""
18058
18059 #. type: textblock
18060 #: ../fish/guestfish.pod:451
18061 msgid "launch (aka run)"
18062 msgstr ""
18063
18064 #. type: textblock
18065 #: ../fish/guestfish.pod:455
18066 msgid "mount or -m/--mount"
18067 msgstr ""
18068
18069 #. type: textblock
18070 #: ../fish/guestfish.pod:459
18071 msgid "any other commands"
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish.pod:463
18076 msgid ""
18077 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18078 "guest before mounting or performing any other commands."
18079 msgstr ""
18080
18081 #. type: textblock
18082 #: ../fish/guestfish.pod:466
18083 msgid ""
18084 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18085 "I<--new> options were given then C<run> is done automatically, simply "
18086 "because guestfish can't perform the action you asked for without doing this."
18087 msgstr ""
18088
18089 #. type: =head1
18090 #: ../fish/guestfish.pod:471
18091 msgid "OPENING DISKS FOR READ AND WRITE"
18092 msgstr ""
18093
18094 #. type: textblock
18095 #: ../fish/guestfish.pod:473
18096 msgid ""
18097 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18098 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18099 "I<-i> and I<-m> open disk images read-only or for writing."
18100 msgstr ""
18101
18102 #. type: textblock
18103 #: ../fish/guestfish.pod:478
18104 msgid ""
18105 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18106 "opening disk images supplied on the command line for write.  To open a disk "
18107 "image read-only you have to do I<-a image --ro>."
18108 msgstr ""
18109
18110 #. type: textblock
18111 #: ../fish/guestfish.pod:482
18112 msgid ""
18113 "This matters: If you accidentally open a live VM disk image writable then "
18114 "you will cause irreversible disk corruption."
18115 msgstr ""
18116
18117 #. type: textblock
18118 #: ../fish/guestfish.pod:485
18119 msgid ""
18120 "In a future libguestfs we intend to change the default the other way.  Disk "
18121 "images will be opened read-only.  You will have to either specify "
18122 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18123 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18124 "access for disk images specified by those other command line options."
18125 msgstr ""
18126
18127 #. type: textblock
18128 #: ../fish/guestfish.pod:492
18129 msgid ""
18130 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18131 "which does nothing (it is already the default).  However it is highly "
18132 "recommended that you use this option to indicate that you need write access, "
18133 "and prepare your scripts for the day when this option will be required for "
18134 "write access."
18135 msgstr ""
18136
18137 #. type: textblock
18138 #: ../fish/guestfish.pod:498
18139 msgid ""
18140 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18141 "other libguestfs program apart from guestfish and guestmount."
18142 msgstr ""
18143
18144 #. type: =head1
18145 #: ../fish/guestfish.pod:501
18146 msgid "QUOTING"
18147 msgstr ""
18148
18149 #. type: textblock
18150 #: ../fish/guestfish.pod:503
18151 msgid ""
18152 "You can quote ordinary parameters using either single or double quotes.  For "
18153 "example:"
18154 msgstr ""
18155
18156 #. type: verbatim
18157 #: ../fish/guestfish.pod:506
18158 #, no-wrap
18159 msgid ""
18160 " add \"file with a space.img\"\n"
18161 "\n"
18162 msgstr ""
18163
18164 #. type: verbatim
18165 #: ../fish/guestfish.pod:508
18166 #, no-wrap
18167 msgid ""
18168 " rm '/file name'\n"
18169 "\n"
18170 msgstr ""
18171
18172 #. type: verbatim
18173 #: ../fish/guestfish.pod:510
18174 #, no-wrap
18175 msgid ""
18176 " rm '/\"'\n"
18177 "\n"
18178 msgstr ""
18179
18180 #. type: textblock
18181 #: ../fish/guestfish.pod:512
18182 msgid ""
18183 "A few commands require a list of strings to be passed.  For these, use a "
18184 "whitespace-separated list, enclosed in quotes.  Strings containing "
18185 "whitespace to be passed through must be enclosed in single quotes.  A "
18186 "literal single quote must be escaped with a backslash."
18187 msgstr ""
18188
18189 #. type: verbatim
18190 #: ../fish/guestfish.pod:517
18191 #, no-wrap
18192 msgid ""
18193 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18194 " command \"/bin/echo 'foo      bar'\"\n"
18195 " command \"/bin/echo \\'foo\\'\"\n"
18196 "\n"
18197 msgstr ""
18198
18199 #. type: =head2
18200 #: ../fish/guestfish.pod:521
18201 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18202 msgstr ""
18203
18204 #. type: textblock
18205 #: ../fish/guestfish.pod:523
18206 msgid ""
18207 "In double-quoted arguments (only) use backslash to insert special "
18208 "characters:"
18209 msgstr ""
18210
18211 #. type: =item
18212 #: ../fish/guestfish.pod:528
18213 msgid "C<\\a>"
18214 msgstr ""
18215
18216 #. type: textblock
18217 #: ../fish/guestfish.pod:530
18218 msgid "Alert (bell) character."
18219 msgstr ""
18220
18221 #. type: =item
18222 #: ../fish/guestfish.pod:532
18223 msgid "C<\\b>"
18224 msgstr ""
18225
18226 #. type: textblock
18227 #: ../fish/guestfish.pod:534
18228 msgid "Backspace character."
18229 msgstr ""
18230
18231 #. type: =item
18232 #: ../fish/guestfish.pod:536
18233 msgid "C<\\f>"
18234 msgstr ""
18235
18236 #. type: textblock
18237 #: ../fish/guestfish.pod:538
18238 msgid "Form feed character."
18239 msgstr ""
18240
18241 #. type: =item
18242 #: ../fish/guestfish.pod:540
18243 msgid "C<\\n>"
18244 msgstr ""
18245
18246 #. type: textblock
18247 #: ../fish/guestfish.pod:542
18248 msgid "Newline character."
18249 msgstr ""
18250
18251 #. type: =item
18252 #: ../fish/guestfish.pod:544
18253 msgid "C<\\r>"
18254 msgstr ""
18255
18256 #. type: textblock
18257 #: ../fish/guestfish.pod:546
18258 msgid "Carriage return character."
18259 msgstr ""
18260
18261 #. type: =item
18262 #: ../fish/guestfish.pod:548
18263 msgid "C<\\t>"
18264 msgstr ""
18265
18266 #. type: textblock
18267 #: ../fish/guestfish.pod:550
18268 msgid "Horizontal tab character."
18269 msgstr ""
18270
18271 #. type: =item
18272 #: ../fish/guestfish.pod:552
18273 msgid "C<\\v>"
18274 msgstr ""
18275
18276 #. type: textblock
18277 #: ../fish/guestfish.pod:554
18278 msgid "Vertical tab character."
18279 msgstr ""
18280
18281 #. type: =item
18282 #: ../fish/guestfish.pod:556
18283 msgid "C<\\\">"
18284 msgstr ""
18285
18286 #. type: textblock
18287 #: ../fish/guestfish.pod:558
18288 msgid "A literal double quote character."
18289 msgstr ""
18290
18291 #. type: =item
18292 #: ../fish/guestfish.pod:560
18293 msgid "C<\\ooo>"
18294 msgstr ""
18295
18296 #. type: textblock
18297 #: ../fish/guestfish.pod:562
18298 msgid ""
18299 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18300 "(unlike C)."
18301 msgstr ""
18302
18303 #. type: =item
18304 #: ../fish/guestfish.pod:565
18305 msgid "C<\\xhh>"
18306 msgstr ""
18307
18308 #. type: textblock
18309 #: ../fish/guestfish.pod:567
18310 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18311 msgstr ""
18312
18313 #. type: textblock
18314 #: ../fish/guestfish.pod:570
18315 msgid ""
18316 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18317 "strings."
18318 msgstr ""
18319
18320 #. type: =item
18321 #: ../fish/guestfish.pod:573
18322 msgid "C<\\\\>"
18323 msgstr ""
18324
18325 #. type: textblock
18326 #: ../fish/guestfish.pod:575
18327 msgid "A literal backslash character."
18328 msgstr ""
18329
18330 #. type: =head1
18331 #: ../fish/guestfish.pod:579
18332 msgid "OPTIONAL ARGUMENTS"
18333 msgstr ""
18334
18335 #. type: textblock
18336 #: ../fish/guestfish.pod:581
18337 msgid ""
18338 "Some commands take optional arguments.  These arguments appear in this "
18339 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18340 msgstr ""
18341
18342 #. type: verbatim
18343 #: ../fish/guestfish.pod:585
18344 #, no-wrap
18345 msgid ""
18346 " add-drive-opts filename\n"
18347 "\n"
18348 msgstr ""
18349
18350 #. type: verbatim
18351 #: ../fish/guestfish.pod:587
18352 #, no-wrap
18353 msgid ""
18354 " add-drive-opts filename readonly:true\n"
18355 "\n"
18356 msgstr ""
18357
18358 #. type: verbatim
18359 #: ../fish/guestfish.pod:589
18360 #, no-wrap
18361 msgid ""
18362 " add-drive-opts filename format:qcow2 readonly:false\n"
18363 "\n"
18364 msgstr ""
18365
18366 #. type: textblock
18367 #: ../fish/guestfish.pod:591
18368 msgid ""
18369 "Each optional argument can appear at most once.  All optional arguments must "
18370 "appear after the required ones."
18371 msgstr ""
18372
18373 #. type: =head1
18374 #: ../fish/guestfish.pod:594
18375 msgid "NUMBERS"
18376 msgstr ""
18377
18378 #. type: textblock
18379 #: ../fish/guestfish.pod:596
18380 msgid "This section applies to all commands which can take integers as parameters."
18381 msgstr ""
18382
18383 #. type: =head2
18384 #: ../fish/guestfish.pod:599
18385 msgid "SIZE SUFFIX"
18386 msgstr ""
18387
18388 #. type: textblock
18389 #: ../fish/guestfish.pod:601
18390 msgid ""
18391 "When the command takes a parameter measured in bytes, you can use one of the "
18392 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18393 msgstr ""
18394
18395 #. type: =item
18396 #: ../fish/guestfish.pod:607
18397 msgid "B<k> or B<K> or B<KiB>"
18398 msgstr ""
18399
18400 #. type: textblock
18401 #: ../fish/guestfish.pod:609
18402 msgid "The size in kilobytes (multiplied by 1024)."
18403 msgstr ""
18404
18405 #. type: =item
18406 #: ../fish/guestfish.pod:611
18407 msgid "B<KB>"
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish.pod:613
18412 msgid "The size in SI 1000 byte units."
18413 msgstr ""
18414
18415 #. type: =item
18416 #: ../fish/guestfish.pod:615
18417 msgid "B<M> or B<MiB>"
18418 msgstr ""
18419
18420 #. type: textblock
18421 #: ../fish/guestfish.pod:617
18422 msgid "The size in megabytes (multiplied by 1048576)."
18423 msgstr ""
18424
18425 #. type: =item
18426 #: ../fish/guestfish.pod:619
18427 msgid "B<MB>"
18428 msgstr ""
18429
18430 #. type: textblock
18431 #: ../fish/guestfish.pod:621
18432 msgid "The size in SI 1000000 byte units."
18433 msgstr ""
18434
18435 #. type: =item
18436 #: ../fish/guestfish.pod:623
18437 msgid "B<G> or B<GiB>"
18438 msgstr ""
18439
18440 #. type: textblock
18441 #: ../fish/guestfish.pod:625
18442 msgid "The size in gigabytes (multiplied by 2**30)."
18443 msgstr ""
18444
18445 #. type: =item
18446 #: ../fish/guestfish.pod:627
18447 msgid "B<GB>"
18448 msgstr ""
18449
18450 #. type: textblock
18451 #: ../fish/guestfish.pod:629
18452 msgid "The size in SI 10**9 byte units."
18453 msgstr ""
18454
18455 #. type: =item
18456 #: ../fish/guestfish.pod:631
18457 msgid "B<T> or B<TiB>"
18458 msgstr ""
18459
18460 #. type: textblock
18461 #: ../fish/guestfish.pod:633
18462 msgid "The size in terabytes (multiplied by 2**40)."
18463 msgstr ""
18464
18465 #. type: =item
18466 #: ../fish/guestfish.pod:635
18467 msgid "B<TB>"
18468 msgstr ""
18469
18470 #. type: textblock
18471 #: ../fish/guestfish.pod:637
18472 msgid "The size in SI 10**12 byte units."
18473 msgstr ""
18474
18475 #. type: =item
18476 #: ../fish/guestfish.pod:639
18477 msgid "B<P> or B<PiB>"
18478 msgstr ""
18479
18480 #. type: textblock
18481 #: ../fish/guestfish.pod:641
18482 msgid "The size in petabytes (multiplied by 2**50)."
18483 msgstr ""
18484
18485 #. type: =item
18486 #: ../fish/guestfish.pod:643
18487 msgid "B<PB>"
18488 msgstr ""
18489
18490 #. type: textblock
18491 #: ../fish/guestfish.pod:645
18492 msgid "The size in SI 10**15 byte units."
18493 msgstr ""
18494
18495 #. type: =item
18496 #: ../fish/guestfish.pod:647
18497 msgid "B<E> or B<EiB>"
18498 msgstr ""
18499
18500 #. type: textblock
18501 #: ../fish/guestfish.pod:649
18502 msgid "The size in exabytes (multiplied by 2**60)."
18503 msgstr ""
18504
18505 #. type: =item
18506 #: ../fish/guestfish.pod:651
18507 msgid "B<EB>"
18508 msgstr ""
18509
18510 #. type: textblock
18511 #: ../fish/guestfish.pod:653
18512 msgid "The size in SI 10**18 byte units."
18513 msgstr ""
18514
18515 #. type: =item
18516 #: ../fish/guestfish.pod:655
18517 msgid "B<Z> or B<ZiB>"
18518 msgstr ""
18519
18520 #. type: textblock
18521 #: ../fish/guestfish.pod:657
18522 msgid "The size in zettabytes (multiplied by 2**70)."
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:659
18527 msgid "B<ZB>"
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish.pod:661
18532 msgid "The size in SI 10**21 byte units."
18533 msgstr ""
18534
18535 #. type: =item
18536 #: ../fish/guestfish.pod:663
18537 msgid "B<Y> or B<YiB>"
18538 msgstr ""
18539
18540 #. type: textblock
18541 #: ../fish/guestfish.pod:665
18542 msgid "The size in yottabytes (multiplied by 2**80)."
18543 msgstr ""
18544
18545 #. type: =item
18546 #: ../fish/guestfish.pod:667
18547 msgid "B<YB>"
18548 msgstr ""
18549
18550 #. type: textblock
18551 #: ../fish/guestfish.pod:669
18552 msgid "The size in SI 10**24 byte units."
18553 msgstr ""
18554
18555 #. type: verbatim
18556 #: ../fish/guestfish.pod:675
18557 #, no-wrap
18558 msgid ""
18559 " truncate-size /file 1G\n"
18560 "\n"
18561 msgstr ""
18562
18563 #. type: textblock
18564 #: ../fish/guestfish.pod:677
18565 msgid "would truncate the file to 1 gigabyte."
18566 msgstr ""
18567
18568 #. type: textblock
18569 #: ../fish/guestfish.pod:679
18570 msgid ""
18571 "Be careful because a few commands take sizes in kilobytes or megabytes "
18572 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
18573 "Adding a suffix will probably not do what you expect."
18574 msgstr ""
18575
18576 #. type: =head2
18577 #: ../fish/guestfish.pod:683
18578 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18579 msgstr ""
18580
18581 #. type: textblock
18582 #: ../fish/guestfish.pod:685
18583 msgid ""
18584 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18585 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18586 msgstr ""
18587
18588 #. type: verbatim
18589 #: ../fish/guestfish.pod:688
18590 #, no-wrap
18591 msgid ""
18592 " 1234      decimal number 1234\n"
18593 " 02322     octal number, equivalent to decimal 1234\n"
18594 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18595 "\n"
18596 msgstr ""
18597
18598 #. type: textblock
18599 #: ../fish/guestfish.pod:692
18600 msgid ""
18601 "When using the C<chmod> command, you almost always want to specify an octal "
18602 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18603 "L<chmod(1)> program):"
18604 msgstr ""
18605
18606 #. type: verbatim
18607 #: ../fish/guestfish.pod:696
18608 #, no-wrap
18609 msgid ""
18610 " chmod 0777 /public  # OK\n"
18611 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18612 "\n"
18613 msgstr ""
18614
18615 #. type: textblock
18616 #: ../fish/guestfish.pod:699
18617 msgid ""
18618 "Commands that return numbers usually print them in decimal, but some "
18619 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18620 "octal, preceeded by C<0>)."
18621 msgstr ""
18622
18623 #. type: =head1
18624 #: ../fish/guestfish.pod:703
18625 msgid "WILDCARDS AND GLOBBING"
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../fish/guestfish.pod:705
18630 msgid ""
18631 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18632 "(globbing) by default.  So for example the following will not do what you "
18633 "expect:"
18634 msgstr ""
18635
18636 #. type: verbatim
18637 #: ../fish/guestfish.pod:709
18638 #, no-wrap
18639 msgid ""
18640 " rm-rf /home/*\n"
18641 "\n"
18642 msgstr ""
18643
18644 #. type: textblock
18645 #: ../fish/guestfish.pod:711
18646 msgid ""
18647 "Assuming you don't have a directory called literally C</home/*> then the "
18648 "above command will return an error."
18649 msgstr ""
18650
18651 #. type: textblock
18652 #: ../fish/guestfish.pod:714
18653 msgid "To perform wildcard expansion, use the C<glob> command."
18654 msgstr ""
18655
18656 #. type: verbatim
18657 #: ../fish/guestfish.pod:716
18658 #, no-wrap
18659 msgid ""
18660 " glob rm-rf /home/*\n"
18661 "\n"
18662 msgstr ""
18663
18664 #. type: textblock
18665 #: ../fish/guestfish.pod:718
18666 msgid ""
18667 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18668 "many times), equivalent to:"
18669 msgstr ""
18670
18671 #. type: verbatim
18672 #: ../fish/guestfish.pod:721
18673 #, no-wrap
18674 msgid ""
18675 " rm-rf /home/jim\n"
18676 " rm-rf /home/joe\n"
18677 " rm-rf /home/mary\n"
18678 "\n"
18679 msgstr ""
18680
18681 #. type: textblock
18682 #: ../fish/guestfish.pod:725
18683 msgid "C<glob> only works on simple guest paths and not on device names."
18684 msgstr ""
18685
18686 #. type: textblock
18687 #: ../fish/guestfish.pod:727
18688 msgid ""
18689 "If you have several parameters, each containing a wildcard, then glob will "
18690 "perform a Cartesian product."
18691 msgstr ""
18692
18693 #. type: =head1
18694 #: ../fish/guestfish.pod:730
18695 msgid "COMMENTS"
18696 msgstr ""
18697
18698 #. type: textblock
18699 #: ../fish/guestfish.pod:732
18700 msgid ""
18701 "Any line which starts with a I<#> character is treated as a comment and "
18702 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18703 "a command.  For example:"
18704 msgstr ""
18705
18706 #. type: verbatim
18707 #: ../fish/guestfish.pod:736
18708 #, no-wrap
18709 msgid ""
18710 " # this is a comment\n"
18711 "         # this is a comment\n"
18712 " foo # NOT a comment\n"
18713 "\n"
18714 msgstr ""
18715
18716 #. type: textblock
18717 #: ../fish/guestfish.pod:740
18718 msgid "Blank lines are also ignored."
18719 msgstr ""
18720
18721 #. type: =head1
18722 #: ../fish/guestfish.pod:742
18723 msgid "RUNNING COMMANDS LOCALLY"
18724 msgstr ""
18725
18726 #. type: textblock
18727 #: ../fish/guestfish.pod:744
18728 msgid ""
18729 "Any line which starts with a I<!> character is treated as a command sent to "
18730 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18731 msgstr ""
18732
18733 #. type: verbatim
18734 #: ../fish/guestfish.pod:748
18735 #, no-wrap
18736 msgid ""
18737 " !mkdir local\n"
18738 " tgz-out /remote local/remote-data.tar.gz\n"
18739 "\n"
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../fish/guestfish.pod:751
18744 msgid ""
18745 "will create a directory C<local> on the host, and then export the contents "
18746 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18747 "(See C<tgz-out>)."
18748 msgstr ""
18749
18750 #. type: textblock
18751 #: ../fish/guestfish.pod:755
18752 msgid ""
18753 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18754 "effect, due to the way that subprocesses work in Unix."
18755 msgstr ""
18756
18757 #. type: =head2
18758 #: ../fish/guestfish.pod:758
18759 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18760 msgstr ""
18761
18762 #. type: textblock
18763 #: ../fish/guestfish.pod:760
18764 msgid ""
18765 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18766 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18767 "and executed as guestfish commands."
18768 msgstr ""
18769
18770 #. type: textblock
18771 #: ../fish/guestfish.pod:764
18772 msgid ""
18773 "Thus you can use shell script to construct arbitrary guestfish commands "
18774 "which are then parsed by guestfish."
18775 msgstr ""
18776
18777 #. type: textblock
18778 #: ../fish/guestfish.pod:767
18779 msgid ""
18780 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18781 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18782 "if we use a shell script to create the guestfish commands for us:"
18783 msgstr ""
18784
18785 #. type: verbatim
18786 #: ../fish/guestfish.pod:772
18787 #, no-wrap
18788 msgid ""
18789 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18790 "\n"
18791 msgstr ""
18792
18793 #. type: textblock
18794 #: ../fish/guestfish.pod:774
18795 msgid "or with names like C</foo.001>:"
18796 msgstr ""
18797
18798 #. type: verbatim
18799 #: ../fish/guestfish.pod:776
18800 #, no-wrap
18801 msgid ""
18802 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18803 "\n"
18804 msgstr ""
18805
18806 #. type: textblock
18807 #: ../fish/guestfish.pod:778
18808 msgid ""
18809 "When using guestfish interactively it can be helpful to just run the shell "
18810 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18811 "ordinary I<!> local command), see what guestfish commands it would run, and "
18812 "when you are happy with those prepend the C<E<lt>> character to run the "
18813 "guestfish commands for real."
18814 msgstr ""
18815
18816 #. type: =head1
18817 #: ../fish/guestfish.pod:784
18818 msgid "PIPES"
18819 msgstr ""
18820
18821 #. type: textblock
18822 #: ../fish/guestfish.pod:786
18823 msgid ""
18824 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18825 "command (a guestfish command) to the second command (any host command).  For "
18826 "example:"
18827 msgstr ""
18828
18829 #. type: verbatim
18830 #: ../fish/guestfish.pod:790
18831 #, no-wrap
18832 msgid ""
18833 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18834 "\n"
18835 msgstr ""
18836
18837 #. type: textblock
18838 #: ../fish/guestfish.pod:792
18839 msgid ""
18840 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18841 "program).  The above command would list all accounts in the guest filesystem "
18842 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18843 msgstr ""
18844
18845 #. type: verbatim
18846 #: ../fish/guestfish.pod:797
18847 #, no-wrap
18848 msgid ""
18849 " hexdump /bin/ls | head\n"
18850 " list-devices | tail -1\n"
18851 " tgz-out / - | tar ztf -\n"
18852 "\n"
18853 msgstr ""
18854
18855 #. type: textblock
18856 #: ../fish/guestfish.pod:801
18857 msgid ""
18858 "The space before the pipe symbol is required, any space after the pipe "
18859 "symbol is optional.  Everything after the pipe symbol is just passed "
18860 "straight to the host shell, so it can contain redirections, globs and "
18861 "anything else that makes sense on the host side."
18862 msgstr ""
18863
18864 #. type: textblock
18865 #: ../fish/guestfish.pod:806
18866 msgid ""
18867 "To use a literal argument which begins with a pipe symbol, you have to quote "
18868 "it, eg:"
18869 msgstr ""
18870
18871 #. type: verbatim
18872 #: ../fish/guestfish.pod:809
18873 #, no-wrap
18874 msgid ""
18875 " echo \"|\"\n"
18876 "\n"
18877 msgstr ""
18878
18879 #. type: =head1
18880 #: ../fish/guestfish.pod:811
18881 msgid "HOME DIRECTORIES"
18882 msgstr ""
18883
18884 #. type: textblock
18885 #: ../fish/guestfish.pod:813
18886 msgid ""
18887 "If a parameter starts with the character C<~> then the tilde may be expanded "
18888 "as a home directory path (either C<~> for the current user's home directory, "
18889 "or C<~user> for another user)."
18890 msgstr ""
18891
18892 #. type: textblock
18893 #: ../fish/guestfish.pod:817
18894 msgid ""
18895 "Note that home directory expansion happens for users known I<on the host>, "
18896 "not in the guest filesystem."
18897 msgstr ""
18898
18899 #. type: textblock
18900 #: ../fish/guestfish.pod:820
18901 msgid ""
18902 "To use a literal argument which begins with a tilde, you have to quote it, "
18903 "eg:"
18904 msgstr ""
18905
18906 #. type: verbatim
18907 #: ../fish/guestfish.pod:823
18908 #, no-wrap
18909 msgid ""
18910 " echo \"~\"\n"
18911 "\n"
18912 msgstr ""
18913
18914 #. type: =head2
18915 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18916 msgid "ENCRYPTED DISKS"
18917 msgstr ""
18918
18919 #. type: textblock
18920 #: ../fish/guestfish.pod:827
18921 msgid ""
18922 "Libguestfs has some support for Linux guests encrypted according to the "
18923 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18924 "disk encryption systems used by modern Linux guests.  Currently only "
18925 "LVM-on-LUKS is supported."
18926 msgstr ""
18927
18928 #. type: textblock
18929 #: ../fish/guestfish.pod:832
18930 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18931 msgstr ""
18932
18933 #. type: verbatim
18934 #: ../fish/guestfish.pod:834
18935 #, no-wrap
18936 msgid ""
18937 " ><fs> vfs-type /dev/sda2\n"
18938 " crypto_LUKS\n"
18939 "\n"
18940 msgstr ""
18941
18942 #. type: textblock
18943 #: ../fish/guestfish.pod:837
18944 msgid ""
18945 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18946 "device called C</dev/mapper/luksdev>."
18947 msgstr ""
18948
18949 #. type: verbatim
18950 #: ../fish/guestfish.pod:840
18951 #, no-wrap
18952 msgid ""
18953 " ><fs> luks-open /dev/sda2 luksdev\n"
18954 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18955 "\n"
18956 msgstr ""
18957
18958 #. type: textblock
18959 #: ../fish/guestfish.pod:843
18960 msgid ""
18961 "Finally you have to tell LVM to scan for volume groups on the newly created "
18962 "mapper device:"
18963 msgstr ""
18964
18965 #. type: verbatim
18966 #: ../fish/guestfish.pod:846
18967 #, no-wrap
18968 msgid ""
18969 " vgscan\n"
18970 " vg-activate-all true\n"
18971 "\n"
18972 msgstr ""
18973
18974 #. type: textblock
18975 #: ../fish/guestfish.pod:849
18976 msgid "The logical volume(s) can now be mounted in the usual way."
18977 msgstr ""
18978
18979 #. type: textblock
18980 #: ../fish/guestfish.pod:851
18981 msgid ""
18982 "Before closing a LUKS device you must unmount any logical volumes on it and "
18983 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18984 "one.  Then you can close the mapper device:"
18985 msgstr ""
18986
18987 #. type: verbatim
18988 #: ../fish/guestfish.pod:855
18989 #, no-wrap
18990 msgid ""
18991 " vg-activate false /dev/VG\n"
18992 " luks-close /dev/mapper/luksdev\n"
18993 "\n"
18994 msgstr ""
18995
18996 #. type: textblock
18997 #: ../fish/guestfish.pod:860
18998 msgid ""
18999 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19000 "letters and paths (with some limitations).  The following commands are "
19001 "equivalent:"
19002 msgstr ""
19003
19004 #. type: verbatim
19005 #: ../fish/guestfish.pod:864
19006 #, no-wrap
19007 msgid ""
19008 " file /WINDOWS/system32/config/system.LOG\n"
19009 "\n"
19010 msgstr ""
19011
19012 #. type: verbatim
19013 #: ../fish/guestfish.pod:866
19014 #, no-wrap
19015 msgid ""
19016 " file win:\\windows\\system32\\config\\system.log\n"
19017 "\n"
19018 msgstr ""
19019
19020 #. type: verbatim
19021 #: ../fish/guestfish.pod:868
19022 #, no-wrap
19023 msgid ""
19024 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19025 "\n"
19026 msgstr ""
19027
19028 #. type: textblock
19029 #: ../fish/guestfish.pod:870
19030 msgid ""
19031 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19032 "where the drive is mounted, prepending that to the path, changing all "
19033 "backslash characters to forward slash, then resolving the result using "
19034 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
19035 "then the parameter might be rewritten like this:"
19036 msgstr ""
19037
19038 #. type: verbatim
19039 #: ../fish/guestfish.pod:876
19040 #, no-wrap
19041 msgid ""
19042 " win:e:\\foo\\bar => /e/FOO/bar\n"
19043 "\n"
19044 msgstr ""
19045
19046 #. type: textblock
19047 #: ../fish/guestfish.pod:878
19048 msgid "This only works in argument positions that expect a path."
19049 msgstr ""
19050
19051 #. type: =head1
19052 #: ../fish/guestfish.pod:880
19053 msgid "UPLOADING AND DOWNLOADING FILES"
19054 msgstr ""
19055
19056 #. type: textblock
19057 #: ../fish/guestfish.pod:882
19058 msgid ""
19059 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19060 "others which upload from or download to a local file, you can use the "
19061 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19062 msgstr ""
19063
19064 #. type: verbatim
19065 #: ../fish/guestfish.pod:886
19066 #, no-wrap
19067 msgid ""
19068 " upload - /foo\n"
19069 "\n"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/guestfish.pod:888
19074 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
19075 msgstr ""
19076
19077 #. type: verbatim
19078 #: ../fish/guestfish.pod:891
19079 #, no-wrap
19080 msgid ""
19081 " tar-out /etc - | tar tf -\n"
19082 "\n"
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../fish/guestfish.pod:893
19087 msgid ""
19088 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19089 "command (see L</PIPES>)."
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/guestfish.pod:896
19094 msgid ""
19095 "When using C<-> to read from stdin, the input is read up to the end of "
19096 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19097 "some arbitrary end marker:"
19098 msgstr ""
19099
19100 #. type: verbatim
19101 #: ../fish/guestfish.pod:900
19102 #, no-wrap
19103 msgid ""
19104 " upload -<<END /foo\n"
19105 " input line 1\n"
19106 " input line 2\n"
19107 " input line 3\n"
19108 " END\n"
19109 "\n"
19110 msgstr ""
19111
19112 #. type: textblock
19113 #: ../fish/guestfish.pod:906
19114 msgid ""
19115 "Any string of characters can be used instead of C<END>.  The end marker must "
19116 "appear on a line of its own, without any preceeding or following characters "
19117 "(not even spaces)."
19118 msgstr ""
19119
19120 #. type: textblock
19121 #: ../fish/guestfish.pod:910
19122 msgid ""
19123 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19124 "upload local files (so-called \"FileIn\" parameters in the generator)."
19125 msgstr ""
19126
19127 #. type: =head1
19128 #: ../fish/guestfish.pod:913
19129 msgid "EXIT ON ERROR BEHAVIOUR"
19130 msgstr ""
19131
19132 #. type: textblock
19133 #: ../fish/guestfish.pod:915
19134 msgid ""
19135 "By default, guestfish will ignore any errors when in interactive mode "
19136 "(ie. taking commands from a human over a tty), and will exit on the first "
19137 "error in non-interactive mode (scripts, commands given on the command line)."
19138 msgstr ""
19139
19140 #. type: textblock
19141 #: ../fish/guestfish.pod:920
19142 msgid ""
19143 "If you prefix a command with a I<-> character, then that command will not "
19144 "cause guestfish to exit, even if that (one) command returns an error."
19145 msgstr ""
19146
19147 #. type: =head1
19148 #: ../fish/guestfish.pod:924
19149 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../fish/guestfish.pod:926
19154 msgid ""
19155 "Guestfish can be remote-controlled over a socket.  This is useful "
19156 "particularly in shell scripts where you want to make several different "
19157 "changes to a filesystem, but you don't want the overhead of starting up a "
19158 "guestfish process each time."
19159 msgstr ""
19160
19161 #. type: textblock
19162 #: ../fish/guestfish.pod:931
19163 msgid "Start a guestfish server process using:"
19164 msgstr ""
19165
19166 #. type: verbatim
19167 #: ../fish/guestfish.pod:933
19168 #, no-wrap
19169 msgid ""
19170 " eval \"`guestfish --listen`\"\n"
19171 "\n"
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/guestfish.pod:935
19176 msgid "and then send it commands by doing:"
19177 msgstr ""
19178
19179 #. type: verbatim
19180 #: ../fish/guestfish.pod:937
19181 #, no-wrap
19182 msgid ""
19183 " guestfish --remote cmd [...]\n"
19184 "\n"
19185 msgstr ""
19186
19187 #. type: textblock
19188 #: ../fish/guestfish.pod:939
19189 msgid "To cause the server to exit, send it the exit command:"
19190 msgstr ""
19191
19192 #. type: textblock
19193 #: ../fish/guestfish.pod:943
19194 msgid ""
19195 "Note that the server will normally exit if there is an error in a command.  "
19196 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19197 "BEHAVIOUR>."
19198 msgstr ""
19199
19200 #. type: =head2
19201 #: ../fish/guestfish.pod:947
19202 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19203 msgstr ""
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:949
19207 msgid ""
19208 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19209 "is how the I<--remote> option knows where to send the commands.  You can "
19210 "have several guestfish listener processes running using:"
19211 msgstr ""
19212
19213 #. type: verbatim
19214 #: ../fish/guestfish.pod:953
19215 #, no-wrap
19216 msgid ""
19217 " eval \"`guestfish --listen`\"\n"
19218 " pid1=$GUESTFISH_PID\n"
19219 " eval \"`guestfish --listen`\"\n"
19220 " pid2=$GUESTFISH_PID\n"
19221 " ...\n"
19222 " guestfish --remote=$pid1 cmd\n"
19223 " guestfish --remote=$pid2 cmd\n"
19224 "\n"
19225 msgstr ""
19226
19227 #. type: =head2
19228 #: ../fish/guestfish.pod:961
19229 msgid "REMOTE CONTROL AND CSH"
19230 msgstr ""
19231
19232 #. type: textblock
19233 #: ../fish/guestfish.pod:963
19234 msgid ""
19235 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19236 "option:"
19237 msgstr ""
19238
19239 #. type: verbatim
19240 #: ../fish/guestfish.pod:966
19241 #, no-wrap
19242 msgid ""
19243 " eval \"`guestfish --listen --csh`\"\n"
19244 "\n"
19245 msgstr ""
19246
19247 #. type: =head2
19248 #: ../fish/guestfish.pod:968
19249 msgid "REMOTE CONTROL DETAILS"
19250 msgstr ""
19251
19252 #. type: textblock
19253 #: ../fish/guestfish.pod:970
19254 msgid ""
19255 "Remote control happens over a Unix domain socket called "
19256 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
19257 "of the process, and C<$PID> is the process ID of the server."
19258 msgstr ""
19259
19260 #. type: textblock
19261 #: ../fish/guestfish.pod:974
19262 msgid "Guestfish client and server versions must match exactly."
19263 msgstr ""
19264
19265 #. type: =head2
19266 #: ../fish/guestfish.pod:976
19267 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19268 msgstr ""
19269
19270 #. type: textblock
19271 #: ../fish/guestfish.pod:978
19272 msgid ""
19273 "From Bash, you can use the following code which creates a guestfish "
19274 "instance, correctly quotes the command line, handles failure to start, and "
19275 "cleans up guestfish when the script exits:"
19276 msgstr ""
19277
19278 #. type: verbatim
19279 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
19280 #, no-wrap
19281 msgid ""
19282 " #!/bin/bash -\n"
19283 " \n"
19284 msgstr ""
19285
19286 #. type: verbatim
19287 #: ../fish/guestfish.pod:986
19288 #, no-wrap
19289 msgid ""
19290 " guestfish[0]=\"guestfish\"\n"
19291 " guestfish[1]=\"--listen\"\n"
19292 " guestfish[2]=\"--ro\"\n"
19293 " guestfish[3]=\"-a\"\n"
19294 " guestfish[4]=\"disk.img\"\n"
19295 " \n"
19296 msgstr ""
19297
19298 #. type: verbatim
19299 #: ../fish/guestfish.pod:992
19300 #, no-wrap
19301 msgid ""
19302 " GUESTFISH_PID=\n"
19303 " eval $(\"${guestfish[@]}\")\n"
19304 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19305 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19306 "     exit 1\n"
19307 " fi\n"
19308 " \n"
19309 msgstr ""
19310
19311 #. type: verbatim
19312 #: ../fish/guestfish.pod:999
19313 #, no-wrap
19314 msgid ""
19315 " cleanup_guestfish ()\n"
19316 " {\n"
19317 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
19318 " }\n"
19319 " trap cleanup_guestfish EXIT ERR\n"
19320 " \n"
19321 msgstr ""
19322
19323 #. type: verbatim
19324 #: ../fish/guestfish.pod:1005
19325 #, no-wrap
19326 msgid ""
19327 " guestfish --remote -- run\n"
19328 " \n"
19329 msgstr ""
19330
19331 #. type: verbatim
19332 #: ../fish/guestfish.pod:1007
19333 #, no-wrap
19334 msgid ""
19335 " # ...\n"
19336 "\n"
19337 msgstr ""
19338
19339 #. type: =head2
19340 #: ../fish/guestfish.pod:1009
19341 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19342 msgstr ""
19343
19344 #. type: textblock
19345 #: ../fish/guestfish.pod:1011
19346 msgid ""
19347 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19348 "context hangs, ie. don't do (note the backquotes):"
19349 msgstr ""
19350
19351 #. type: verbatim
19352 #: ../fish/guestfish.pod:1014
19353 #, no-wrap
19354 msgid ""
19355 " a=`guestfish --remote run`\n"
19356 "\n"
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/guestfish.pod:1016
19361 msgid ""
19362 "Since the C<run> command produces no output on stdout, this is not useful "
19363 "anyway.  For further information see "
19364 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
19365 msgstr ""
19366
19367 #. type: =head1
19368 #: ../fish/guestfish.pod:1020
19369 msgid "PREPARED DISK IMAGES"
19370 msgstr ""
19371
19372 #. type: textblock
19373 #: ../fish/guestfish.pod:1022
19374 msgid ""
19375 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19376 "preformatted disk images that guestfish can make for you to save typing.  "
19377 "This is particularly useful for testing purposes.  This option is used "
19378 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19379 "can be mixed with I<-a>)."
19380 msgstr ""
19381
19382 #. type: textblock
19383 #: ../fish/guestfish.pod:1028
19384 msgid ""
19385 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19386 "the second and so on.  Existing files in the current directory are "
19387 "I<overwritten>."
19388 msgstr ""
19389
19390 #. type: textblock
19391 #: ../fish/guestfish.pod:1032
19392 msgid ""
19393 "The type briefly describes how the disk should be sized, partitioned, how "
19394 "filesystem(s) should be created, and how content should be added.  "
19395 "Optionally the type can be followed by extra parameters, separated by C<:> "
19396 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
19397 "sparsely-allocated disk, containing a single partition, with the partition "
19398 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
19399 "on a 1GB disk instead."
19400 msgstr ""
19401
19402 #. type: textblock
19403 #: ../fish/guestfish.pod:1040
19404 msgid "To list the available types and any extra parameters they take, run:"
19405 msgstr ""
19406
19407 #. type: textblock
19408 #: ../fish/guestfish.pod:1044
19409 msgid ""
19410 "Note that the prepared filesystem is not mounted.  You would usually have to "
19411 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19412 msgstr ""
19413
19414 #. type: textblock
19415 #: ../fish/guestfish.pod:1048
19416 msgid ""
19417 "If any I<-N> or I<--new> options are given, the guest is automatically "
19418 "launched."
19419 msgstr ""
19420
19421 #. type: textblock
19422 #: ../fish/guestfish.pod:1053
19423 msgid "Create a 100MB disk with an ext4-formatted partition:"
19424 msgstr ""
19425
19426 #. type: verbatim
19427 #: ../fish/guestfish.pod:1055
19428 #, no-wrap
19429 msgid ""
19430 " guestfish -N fs:ext4\n"
19431 "\n"
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../fish/guestfish.pod:1057
19436 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19437 msgstr ""
19438
19439 #. type: verbatim
19440 #: ../fish/guestfish.pod:1059
19441 #, no-wrap
19442 msgid ""
19443 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19444 "\n"
19445 msgstr ""
19446
19447 #. type: textblock
19448 #: ../fish/guestfish.pod:1061
19449 msgid "Create a blank 200MB disk:"
19450 msgstr ""
19451
19452 #. type: verbatim
19453 #: ../fish/guestfish.pod:1063
19454 #, no-wrap
19455 msgid ""
19456 " guestfish -N disk:200M\n"
19457 "\n"
19458 msgstr ""
19459
19460 #. type: =head1
19461 #: ../fish/guestfish.pod:1065
19462 msgid "PROGRESS BARS"
19463 msgstr ""
19464
19465 #. type: textblock
19466 #: ../fish/guestfish.pod:1067
19467 msgid ""
19468 "Some (not all) long-running commands send progress notification messages as "
19469 "they are running.  Guestfish turns these messages into progress bars."
19470 msgstr ""
19471
19472 #. type: textblock
19473 #: ../fish/guestfish.pod:1071
19474 msgid ""
19475 "When a command that supports progress bars takes longer than two seconds to "
19476 "run, and if progress bars are enabled, then you will see one appearing below "
19477 "the command:"
19478 msgstr ""
19479
19480 #. type: verbatim
19481 #: ../fish/guestfish.pod:1075
19482 #, no-wrap
19483 msgid ""
19484 " ><fs> copy-size /large-file /another-file 2048M\n"
19485 " / 10% [#####-----------------------------------------] 00:30\n"
19486 "\n"
19487 msgstr ""
19488
19489 #. type: textblock
19490 #: ../fish/guestfish.pod:1078
19491 msgid ""
19492 "The spinner on the left hand side moves round once for every progress "
19493 "notification received from the backend.  This is a (reasonably) golden "
19494 "assurance that the command is \"doing something\" even if the progress bar "
19495 "is not moving, because the command is able to send the progress "
19496 "notifications.  When the bar reaches 100% and the command finishes, the "
19497 "spinner disappears."
19498 msgstr ""
19499
19500 #. type: textblock
19501 #: ../fish/guestfish.pod:1085
19502 msgid ""
19503 "Progress bars are enabled by default when guestfish is used interactively.  "
19504 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19505 "and you can disable them completely using I<--no-progress-bars>."
19506 msgstr ""
19507
19508 #. type: =head1
19509 #: ../fish/guestfish.pod:1090
19510 msgid "GUESTFISH COMMANDS"
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:1092
19515 msgid ""
19516 "The commands in this section are guestfish convenience commands, in other "
19517 "words, they are not part of the L<guestfs(3)> API."
19518 msgstr ""
19519
19520 #. type: =head2
19521 #: ../fish/guestfish.pod:1095
19522 msgid "help"
19523 msgstr ""
19524
19525 #. type: verbatim
19526 #: ../fish/guestfish.pod:1097
19527 #, no-wrap
19528 msgid ""
19529 " help\n"
19530 " help cmd\n"
19531 "\n"
19532 msgstr ""
19533
19534 #. type: textblock
19535 #: ../fish/guestfish.pod:1100
19536 msgid "Without any parameter, this provides general help."
19537 msgstr ""
19538
19539 #. type: textblock
19540 #: ../fish/guestfish.pod:1102
19541 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19542 msgstr ""
19543
19544 #. type: =head2
19545 #: ../fish/guestfish.pod:1104
19546 msgid "quit | exit"
19547 msgstr ""
19548
19549 #. type: textblock
19550 #: ../fish/guestfish.pod:1106
19551 msgid "This exits guestfish.  You can also use C<^D> key."
19552 msgstr ""
19553
19554 #. type: textblock
19555 #: ../fish/guestfish.pod:1108
19556 msgid "@FISH_COMMANDS@"
19557 msgstr ""
19558
19559 #. type: =head1
19560 #: ../fish/guestfish.pod:1110
19561 msgid "COMMANDS"
19562 msgstr ""
19563
19564 #. type: textblock
19565 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
19566 msgid "@ACTIONS@"
19567 msgstr ""
19568
19569 #. type: textblock
19570 #: ../fish/guestfish.pod:1116
19571 msgid ""
19572 "guestfish returns 0 if the commands completed without error, or 1 if there "
19573 "was an error."
19574 msgstr ""
19575
19576 #. type: =item
19577 #: ../fish/guestfish.pod:1123
19578 msgid "EDITOR"
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:1125
19583 msgid ""
19584 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19585 "C<vi>."
19586 msgstr ""
19587
19588 #. type: =item
19589 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
19590 msgid "FEBOOTSTRAP_KERNEL"
19591 msgstr ""
19592
19593 #. type: =item
19594 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
19595 msgid "FEBOOTSTRAP_MODULES"
19596 msgstr ""
19597
19598 #. type: textblock
19599 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
19600 msgid ""
19601 "These two environment variables allow the kernel that libguestfs uses in the "
19602 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19603 "most recent host kernel is chosen.  For more information about kernel "
19604 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19605 "available in febootstrap E<ge> 3.8."
19606 msgstr ""
19607
19608 #. type: =item
19609 #: ../fish/guestfish.pod:1138
19610 msgid "GUESTFISH_DISPLAY_IMAGE"
19611 msgstr ""
19612
19613 #. type: textblock
19614 #: ../fish/guestfish.pod:1140
19615 msgid ""
19616 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19617 "If not set, it uses L<display(1)>."
19618 msgstr ""
19619
19620 #. type: =item
19621 #: ../fish/guestfish.pod:1143
19622 msgid "GUESTFISH_PID"
19623 msgstr ""
19624
19625 #. type: textblock
19626 #: ../fish/guestfish.pod:1145
19627 msgid ""
19628 "Used with the I<--remote> option to specify the remote guestfish process to "
19629 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19630 msgstr ""
19631
19632 #. type: =item
19633 #: ../fish/guestfish.pod:1149
19634 msgid "HEXEDITOR"
19635 msgstr ""
19636
19637 #. type: textblock
19638 #: ../fish/guestfish.pod:1151
19639 msgid ""
19640 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19641 "not specified, the external L<hexedit(1)> program is used."
19642 msgstr ""
19643
19644 #. type: =item
19645 #: ../fish/guestfish.pod:1155
19646 msgid "HOME"
19647 msgstr ""
19648
19649 #. type: textblock
19650 #: ../fish/guestfish.pod:1157
19651 msgid ""
19652 "If compiled with GNU readline support, various files in the home directory "
19653 "can be used.  See L</FILES>."
19654 msgstr ""
19655
19656 #. type: =item
19657 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
19658 msgid "LIBGUESTFS_APPEND"
19659 msgstr ""
19660
19661 #. type: textblock
19662 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
19663 msgid "Pass additional options to the guest kernel."
19664 msgstr ""
19665
19666 #. type: =item
19667 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
19668 msgid "LIBGUESTFS_DEBUG"
19669 msgstr ""
19670
19671 #. type: textblock
19672 #: ../fish/guestfish.pod:1166
19673 msgid ""
19674 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19675 "effect as using the B<-v> option."
19676 msgstr ""
19677
19678 #. type: =item
19679 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
19680 msgid "LIBGUESTFS_MEMSIZE"
19681 msgstr ""
19682
19683 #. type: textblock
19684 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
19685 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
19686 msgstr ""
19687
19688 #. type: verbatim
19689 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
19690 #, no-wrap
19691 msgid ""
19692 " LIBGUESTFS_MEMSIZE=700\n"
19693 "\n"
19694 msgstr ""
19695
19696 #. type: =item
19697 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
19698 msgid "LIBGUESTFS_PATH"
19699 msgstr ""
19700
19701 #. type: textblock
19702 #: ../fish/guestfish.pod:1178
19703 msgid ""
19704 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19705 "the discussion of paths in L<guestfs(3)>."
19706 msgstr ""
19707
19708 #. type: =item
19709 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
19710 msgid "LIBGUESTFS_QEMU"
19711 msgstr ""
19712
19713 #. type: textblock
19714 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
19715 msgid ""
19716 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19717 "which was found at compile time by the configure script is used."
19718 msgstr ""
19719
19720 #. type: =item
19721 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
19722 msgid "LIBGUESTFS_TRACE"
19723 msgstr ""
19724
19725 #. type: textblock
19726 #: ../fish/guestfish.pod:1189
19727 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19728 msgstr ""
19729
19730 #. type: =item
19731 #: ../fish/guestfish.pod:1191
19732 msgid "PAGER"
19733 msgstr ""
19734
19735 #. type: textblock
19736 #: ../fish/guestfish.pod:1193
19737 msgid ""
19738 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19739 "C<more>."
19740 msgstr ""
19741
19742 #. type: =item
19743 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236 ../src/guestfs.pod:3242
19744 msgid "TMPDIR"
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
19749 msgid ""
19750 "Location of temporary directory, defaults to C</tmp> except for the cached "
19751 "supermin appliance which defaults to C</var/tmp>."
19752 msgstr ""
19753
19754 #. type: textblock
19755 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
19756 msgid ""
19757 "If libguestfs was compiled to use the supermin appliance then the real "
19758 "appliance is cached in this directory, shared between all handles belonging "
19759 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19760 "use in case C</var/tmp> is not large enough."
19761 msgstr ""
19762
19763 #. type: =head1
19764 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:273
19765 msgid "FILES"
19766 msgstr ""
19767
19768 #. type: =item
19769 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:277
19770 msgid "$HOME/.libguestfs-tools.rc"
19771 msgstr ""
19772
19773 #. type: =item
19774 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:279
19775 msgid "/etc/libguestfs-tools.conf"
19776 msgstr ""
19777
19778 #. type: textblock
19779 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:281
19780 msgid ""
19781 "This configuration file controls the default read-only or read-write mode "
19782 "(I<--ro> or I<--rw>)."
19783 msgstr ""
19784
19785 #. type: textblock
19786 #: ../fish/guestfish.pod:1220
19787 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19788 msgstr ""
19789
19790 #. type: =item
19791 #: ../fish/guestfish.pod:1222
19792 msgid "$HOME/.guestfish"
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:1224
19797 msgid ""
19798 "If compiled with GNU readline support, then the command history is saved in "
19799 "this file."
19800 msgstr ""
19801
19802 #. type: =item
19803 #: ../fish/guestfish.pod:1227
19804 msgid "$HOME/.inputrc"
19805 msgstr ""
19806
19807 #. type: =item
19808 #: ../fish/guestfish.pod:1229
19809 msgid "/etc/inputrc"
19810 msgstr ""
19811
19812 #. type: textblock
19813 #: ../fish/guestfish.pod:1231
19814 msgid ""
19815 "If compiled with GNU readline support, then these files can be used to "
19816 "configure readline.  For further information, please see "
19817 "L<readline(3)/INITIALIZATION FILE>."
19818 msgstr ""
19819
19820 #. type: textblock
19821 #: ../fish/guestfish.pod:1235
19822 msgid "To write rules which only apply to guestfish, use:"
19823 msgstr ""
19824
19825 #. type: verbatim
19826 #: ../fish/guestfish.pod:1237
19827 #, no-wrap
19828 msgid ""
19829 " $if guestfish\n"
19830 " ...\n"
19831 " $endif\n"
19832 "\n"
19833 msgstr ""
19834
19835 #. type: textblock
19836 #: ../fish/guestfish.pod:1241
19837 msgid ""
19838 "Variables that you can set in inputrc that change the behaviour of guestfish "
19839 "in useful ways include:"
19840 msgstr ""
19841
19842 #. type: =item
19843 #: ../fish/guestfish.pod:1246
19844 msgid "completion-ignore-case (default: on)"
19845 msgstr ""
19846
19847 #. type: textblock
19848 #: ../fish/guestfish.pod:1248
19849 msgid ""
19850 "By default, guestfish will ignore case when tab-completing paths on the "
19851 "disk.  Use:"
19852 msgstr ""
19853
19854 #. type: verbatim
19855 #: ../fish/guestfish.pod:1251
19856 #, no-wrap
19857 msgid ""
19858 " set completion-ignore-case off\n"
19859 "\n"
19860 msgstr ""
19861
19862 #. type: textblock
19863 #: ../fish/guestfish.pod:1253
19864 msgid "to make guestfish case sensitive."
19865 msgstr ""
19866
19867 #. type: =item
19868 #: ../fish/guestfish.pod:1257
19869 msgid "test1.img"
19870 msgstr ""
19871
19872 #. type: =item
19873 #: ../fish/guestfish.pod:1259
19874 msgid "test2.img (etc)"
19875 msgstr ""
19876
19877 #. type: textblock
19878 #: ../fish/guestfish.pod:1261
19879 msgid ""
19880 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19881 "will be created in the file C<test1.img> in the current directory.  The "
19882 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19883 "the same name will be overwritten."
19884 msgstr ""
19885
19886 #. type: textblock
19887 #: ../fish/guestfish.pod:1270
19888 msgid ""
19889 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
19890 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
19891 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
19892 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
19893 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
19894 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
19895 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
19896 "L<febootstrap-supermin-helper(8)>."
19897 msgstr ""
19898
19899 #. type: textblock
19900 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339 ../test-tool/libguestfs-test-tool.pod:112
19901 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19902 msgstr ""
19903
19904 #. type: textblock
19905 #: ../fish/virt-copy-in.pod:5
19906 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
19907 msgstr ""
19908
19909 #. type: verbatim
19910 #: ../fish/virt-copy-in.pod:9
19911 #, no-wrap
19912 msgid ""
19913 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19914 "\n"
19915 msgstr ""
19916
19917 #. type: verbatim
19918 #: ../fish/virt-copy-in.pod:11
19919 #, no-wrap
19920 msgid ""
19921 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19922 "\n"
19923 msgstr ""
19924
19925 #. type: textblock
19926 #: ../fish/virt-copy-in.pod:15
19927 msgid ""
19928 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19929 "causing disk corruption.  The virtual machine must be shut down before you "
19930 "use this command."
19931 msgstr ""
19932
19933 #. type: textblock
19934 #: ../fish/virt-copy-in.pod:21
19935 msgid ""
19936 "C<virt-copy-in> copies files and directories from the local disk into a "
19937 "virtual machine disk image or named libvirt domain."
19938 msgstr ""
19939
19940 #. type: textblock
19941 #: ../fish/virt-copy-in.pod:24
19942 msgid ""
19943 "You can give one of more filenames and directories on the command line.  "
19944 "Directories are copied in recursively.  The final parameter must be the "
19945 "destination directory in the disk image which must be an absolute path "
19946 "starting with a C</> character."
19947 msgstr ""
19948
19949 #. type: verbatim
19950 #: ../fish/virt-copy-in.pod:33
19951 #, no-wrap
19952 msgid ""
19953 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19954 "\n"
19955 msgstr ""
19956
19957 #. type: textblock
19958 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19959 msgid "Upload a home directory to a guest:"
19960 msgstr ""
19961
19962 #. type: verbatim
19963 #: ../fish/virt-copy-in.pod:37
19964 #, no-wrap
19965 msgid ""
19966 " virt-copy-in -d MyGuest skel /home\n"
19967 "\n"
19968 msgstr ""
19969
19970 #. type: =head1
19971 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19972 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19973 msgstr ""
19974
19975 #. type: textblock
19976 #: ../fish/virt-copy-in.pod:41
19977 msgid ""
19978 "This command is just a simple shell script wrapper around the "
19979 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
19980 "trivial copy, you are probably better off using guestfish directly."
19981 msgstr ""
19982
19983 #. type: textblock
19984 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19985 msgid ""
19986 "Since the shell script just passes options straight to guestfish, read "
19987 "L<guestfish(1)> to see the full list of options."
19988 msgstr ""
19989
19990 #. type: textblock
19991 #: ../fish/virt-copy-in.pod:52
19992 msgid ""
19993 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19994 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19995 msgstr ""
19996
19997 #. type: textblock
19998 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19999 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20000 msgstr ""
20001
20002 #. type: textblock
20003 #: ../fish/virt-copy-out.pod:5
20004 msgid ""
20005 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20006 "image."
20007 msgstr ""
20008
20009 #. type: verbatim
20010 #: ../fish/virt-copy-out.pod:9
20011 #, no-wrap
20012 msgid ""
20013 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20014 "\n"
20015 msgstr ""
20016
20017 #. type: verbatim
20018 #: ../fish/virt-copy-out.pod:11
20019 #, no-wrap
20020 msgid ""
20021 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20022 "\n"
20023 msgstr ""
20024
20025 #. type: textblock
20026 #: ../fish/virt-copy-out.pod:15
20027 msgid ""
20028 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20029 "image or named libvirt domain."
20030 msgstr ""
20031
20032 #. type: textblock
20033 #: ../fish/virt-copy-out.pod:18
20034 msgid ""
20035 "You can give one of more filenames and directories on the command line.  "
20036 "Directories are copied out recursively."
20037 msgstr ""
20038
20039 #. type: textblock
20040 #: ../fish/virt-copy-out.pod:23
20041 msgid "Download the home directories from a virtual machine:"
20042 msgstr ""
20043
20044 #. type: verbatim
20045 #: ../fish/virt-copy-out.pod:25
20046 #, no-wrap
20047 msgid ""
20048 " mkdir homes\n"
20049 " virt-copy-out -d MyGuest /home homes\n"
20050 "\n"
20051 msgstr ""
20052
20053 #. type: textblock
20054 #: ../fish/virt-copy-out.pod:30
20055 msgid ""
20056 "This command is just a simple shell script wrapper around the "
20057 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
20058 "trivial copy, you are probably better off using guestfish directly."
20059 msgstr ""
20060
20061 #. type: textblock
20062 #: ../fish/virt-copy-out.pod:41
20063 msgid ""
20064 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
20065 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20066 msgstr ""
20067
20068 #. type: textblock
20069 #: ../fish/virt-tar-in.pod:5
20070 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20071 msgstr ""
20072
20073 #. type: verbatim
20074 #: ../fish/virt-tar-in.pod:9
20075 #, no-wrap
20076 msgid ""
20077 " virt-tar-in -a disk.img data.tar /destination\n"
20078 "\n"
20079 msgstr ""
20080
20081 #. type: verbatim
20082 #: ../fish/virt-tar-in.pod:11
20083 #, no-wrap
20084 msgid ""
20085 " virt-tar-in -d domain data.tar /destination\n"
20086 "\n"
20087 msgstr ""
20088
20089 #. type: verbatim
20090 #: ../fish/virt-tar-in.pod:13
20091 #, no-wrap
20092 msgid ""
20093 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20094 "\n"
20095 msgstr ""
20096
20097 #. type: textblock
20098 #: ../fish/virt-tar-in.pod:17
20099 msgid ""
20100 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20101 "causing disk corruption.  The virtual machine must be shut down before you "
20102 "use this command."
20103 msgstr ""
20104
20105 #. type: textblock
20106 #: ../fish/virt-tar-in.pod:23
20107 msgid ""
20108 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20109 "image or named libvirt domain."
20110 msgstr ""
20111
20112 #. type: textblock
20113 #: ../fish/virt-tar-in.pod:26
20114 msgid ""
20115 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20116 "standard input.  The second parameter is the absolute target directory to "
20117 "unpack into."
20118 msgstr ""
20119
20120 #. type: verbatim
20121 #: ../fish/virt-tar-in.pod:34
20122 #, no-wrap
20123 msgid ""
20124 " virt-tar-in -d MyGuest homes.tar /home\n"
20125 "\n"
20126 msgstr ""
20127
20128 #. type: textblock
20129 #: ../fish/virt-tar-in.pod:38
20130 msgid ""
20131 "This command is just a simple shell script wrapper around the "
20132 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
20133 "copy, you are probably better off using guestfish directly."
20134 msgstr ""
20135
20136 #. type: textblock
20137 #: ../fish/virt-tar-in.pod:49
20138 msgid ""
20139 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20140 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
20141 "L<http://libguestfs.org/>."
20142 msgstr ""
20143
20144 #. type: textblock
20145 #: ../fish/virt-tar-out.pod:5
20146 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20147 msgstr ""
20148
20149 #. type: verbatim
20150 #: ../fish/virt-tar-out.pod:9
20151 #, no-wrap
20152 msgid ""
20153 " virt-tar-out -a disk.img /dir files.tar\n"
20154 "\n"
20155 msgstr ""
20156
20157 #. type: verbatim
20158 #: ../fish/virt-tar-out.pod:11
20159 #, no-wrap
20160 msgid ""
20161 " virt-tar-out -d domain /dir files.tar\n"
20162 "\n"
20163 msgstr ""
20164
20165 #. type: verbatim
20166 #: ../fish/virt-tar-out.pod:13
20167 #, no-wrap
20168 msgid ""
20169 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20170 "\n"
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fish/virt-tar-out.pod:17
20175 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20176 msgstr ""
20177
20178 #. type: textblock
20179 #: ../fish/virt-tar-out.pod:20
20180 msgid ""
20181 "The first parameter is the absolute path of the virtual machine directory.  "
20182 "The second parameter is the tar file to write.  Use C<-> to write to "
20183 "standard output."
20184 msgstr ""
20185
20186 #. type: textblock
20187 #: ../fish/virt-tar-out.pod:26
20188 msgid "Download the home directories from a guest:"
20189 msgstr ""
20190
20191 #. type: verbatim
20192 #: ../fish/virt-tar-out.pod:28
20193 #, no-wrap
20194 msgid ""
20195 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20196 "\n"
20197 msgstr ""
20198
20199 #. type: textblock
20200 #: ../fish/virt-tar-out.pod:32
20201 msgid ""
20202 "This command is just a simple shell script wrapper around the "
20203 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
20204 "trivial copy, you are probably better off using guestfish directly."
20205 msgstr ""
20206
20207 #. type: textblock
20208 #: ../fish/virt-tar-out.pod:43
20209 msgid ""
20210 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20211 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20212 msgstr ""
20213
20214 #. type: textblock
20215 #: ../fuse/guestmount.pod:5
20216 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20217 msgstr ""
20218
20219 #. type: verbatim
20220 #: ../fuse/guestmount.pod:9
20221 #, no-wrap
20222 msgid ""
20223 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20224 "\n"
20225 msgstr ""
20226
20227 #. type: verbatim
20228 #: ../fuse/guestmount.pod:11
20229 #, no-wrap
20230 msgid ""
20231 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20232 "\n"
20233 msgstr ""
20234
20235 #. type: verbatim
20236 #: ../fuse/guestmount.pod:13
20237 #, no-wrap
20238 msgid ""
20239 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20240 "\n"
20241 msgstr ""
20242
20243 #. type: textblock
20244 #: ../fuse/guestmount.pod:17
20245 msgid ""
20246 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20247 "machines.  If you do this, you risk disk corruption in the VM."
20248 msgstr ""
20249
20250 #. type: textblock
20251 #: ../fuse/guestmount.pod:22
20252 msgid ""
20253 "The guestmount program can be used to mount virtual machine filesystems and "
20254 "other disk images on the host.  It uses libguestfs for access to the guest "
20255 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20256 "a mountable device."
20257 msgstr ""
20258
20259 #. type: textblock
20260 #: ../fuse/guestmount.pod:27
20261 msgid ""
20262 "Along with other options, you have to give at least one device (I<-a> "
20263 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20264 "option) or use the I<-i> inspection option.  How this works is better "
20265 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20266 "below."
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../fuse/guestmount.pod:33
20271 msgid ""
20272 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20273 "by you, and the filesystem will not be visible to any other users unless you "
20274 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20275 "the filesystem, use the C<fusermount -u> command."
20276 msgstr ""
20277
20278 #. type: textblock
20279 #: ../fuse/guestmount.pod:41
20280 msgid ""
20281 "For a typical Windows guest which has its main filesystem on the first "
20282 "partition:"
20283 msgstr ""
20284
20285 #. type: verbatim
20286 #: ../fuse/guestmount.pod:44
20287 #, no-wrap
20288 msgid ""
20289 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20290 "\n"
20291 msgstr ""
20292
20293 #. type: textblock
20294 #: ../fuse/guestmount.pod:46
20295 msgid ""
20296 "For a typical Linux guest which has a /boot filesystem on the first "
20297 "partition, and the root filesystem on a logical volume:"
20298 msgstr ""
20299
20300 #. type: verbatim
20301 #: ../fuse/guestmount.pod:49
20302 #, no-wrap
20303 msgid ""
20304 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20305 "\n"
20306 msgstr ""
20307
20308 #. type: textblock
20309 #: ../fuse/guestmount.pod:51
20310 msgid "To get libguestfs to detect guest mountpoints for you:"
20311 msgstr ""
20312
20313 #. type: verbatim
20314 #: ../fuse/guestmount.pod:53
20315 #, no-wrap
20316 msgid ""
20317 " guestmount -a guest.img -i --ro /mnt\n"
20318 "\n"
20319 msgstr ""
20320
20321 #. type: textblock
20322 #: ../fuse/guestmount.pod:55
20323 msgid "For a libvirt guest called \"Guest\" you could do:"
20324 msgstr ""
20325
20326 #. type: verbatim
20327 #: ../fuse/guestmount.pod:57
20328 #, no-wrap
20329 msgid ""
20330 " guestmount -d Guest -i --ro /mnt\n"
20331 "\n"
20332 msgstr ""
20333
20334 #. type: textblock
20335 #: ../fuse/guestmount.pod:59
20336 msgid ""
20337 "If you don't know what filesystems are contained in a guest or disk image, "
20338 "use L<virt-filesystems(1)> first:"
20339 msgstr ""
20340
20341 #. type: verbatim
20342 #: ../fuse/guestmount.pod:62
20343 #, no-wrap
20344 msgid ""
20345 " virt-filesystems MyGuest\n"
20346 "\n"
20347 msgstr ""
20348
20349 #. type: textblock
20350 #: ../fuse/guestmount.pod:64
20351 msgid ""
20352 "If you want to trace the libguestfs calls but without excessive debugging "
20353 "information, we recommend:"
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../fuse/guestmount.pod:67
20358 #, no-wrap
20359 msgid ""
20360 " guestmount [...] --trace /mnt\n"
20361 "\n"
20362 msgstr ""
20363
20364 #. type: textblock
20365 #: ../fuse/guestmount.pod:69
20366 msgid "If you want to debug the program, we recommend:"
20367 msgstr ""
20368
20369 #. type: verbatim
20370 #: ../fuse/guestmount.pod:71
20371 #, no-wrap
20372 msgid ""
20373 " guestmount [...] --trace --verbose /mnt\n"
20374 "\n"
20375 msgstr ""
20376
20377 #. type: =head1
20378 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:600
20379 msgid "NOTES"
20380 msgstr ""
20381
20382 #. type: =head2
20383 #: ../fuse/guestmount.pod:75
20384 msgid "Other users cannot see the filesystem by default"
20385 msgstr ""
20386
20387 #. type: textblock
20388 #: ../fuse/guestmount.pod:77
20389 msgid ""
20390 "If you mount a filesystem as one user (eg. root), then other users will not "
20391 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20392 "option when mounting:"
20393 msgstr ""
20394
20395 #. type: verbatim
20396 #: ../fuse/guestmount.pod:81
20397 #, no-wrap
20398 msgid ""
20399 " sudo guestmount [...] -o allow_other /mnt\n"
20400 "\n"
20401 msgstr ""
20402
20403 #. type: =head2
20404 #: ../fuse/guestmount.pod:83
20405 msgid "Enabling FUSE"
20406 msgstr ""
20407
20408 #. type: textblock
20409 #: ../fuse/guestmount.pod:85
20410 msgid ""
20411 "On some distros, you may need to add yourself to a special group "
20412 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
20413 "Debian and derivatives."
20414 msgstr ""
20415
20416 #. type: textblock
20417 #: ../fuse/guestmount.pod:89
20418 msgid ""
20419 "On other distros, no special group is required.  It is not necessary on "
20420 "Fedora or Red Hat Enterprise Linux."
20421 msgstr ""
20422
20423 #. type: textblock
20424 #: ../fuse/guestmount.pod:100
20425 msgid "Add a block device or virtual machine image."
20426 msgstr ""
20427
20428 #. type: =item
20429 #: ../fuse/guestmount.pod:123
20430 msgid "B<--dir-cache-timeout N>"
20431 msgstr ""
20432
20433 #. type: textblock
20434 #: ../fuse/guestmount.pod:125
20435 msgid ""
20436 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20437 "seconds.  The readdir cache [actually, there are several semi-independent "
20438 "caches] is populated after a readdir(2) call with the stat and extended "
20439 "attributes of the files in the directory, in anticipation that they will be "
20440 "requested soon after."
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../fuse/guestmount.pod:131
20445 msgid ""
20446 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20447 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20448 "requests, only cache existing ones."
20449 msgstr ""
20450
20451 #. type: textblock
20452 #: ../fuse/guestmount.pod:151
20453 msgid ""
20454 "If you have untrusted raw-format guest disk images, you should use this "
20455 "option to specify the disk format.  This avoids a possible security problem "
20456 "with malicious guests (CVE-2010-3851).  See also "
20457 "L<guestfs(3)/guestfs_add_drive_opts>."
20458 msgstr ""
20459
20460 #. type: =item
20461 #: ../fuse/guestmount.pod:156
20462 msgid "B<--fuse-help>"
20463 msgstr ""
20464
20465 #. type: textblock
20466 #: ../fuse/guestmount.pod:158
20467 msgid "Display help on special FUSE options (see I<-o> below)."
20468 msgstr ""
20469
20470 #. type: textblock
20471 #: ../fuse/guestmount.pod:162
20472 msgid "Display brief help and exit."
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../fuse/guestmount.pod:186
20477 msgid ""
20478 "Mount the named partition or logical volume on the given mountpoint B<in the "
20479 "guest> (this has nothing to do with mountpoints in the host)."
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../fuse/guestmount.pod:189
20484 msgid ""
20485 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20486 "something on C</>."
20487 msgstr ""
20488
20489 #. type: textblock
20490 #: ../fuse/guestmount.pod:206
20491 msgid ""
20492 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20493 "unmounted.  If you specify this option, then we don't attempt to sync the "
20494 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20495 msgstr ""
20496
20497 #. type: =item
20498 #: ../fuse/guestmount.pod:211
20499 msgid "B<-o option>"
20500 msgstr ""
20501
20502 #. type: =item
20503 #: ../fuse/guestmount.pod:213
20504 msgid "B<--option option>"
20505 msgstr ""
20506
20507 #. type: textblock
20508 #: ../fuse/guestmount.pod:215
20509 msgid "Pass extra options to FUSE."
20510 msgstr ""
20511
20512 #. type: textblock
20513 #: ../fuse/guestmount.pod:217
20514 msgid ""
20515 "To get a list of all the extra options supported by FUSE, use the command "
20516 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20517 "of them are a good idea."
20518 msgstr ""
20519
20520 #. type: verbatim
20521 #: ../fuse/guestmount.pod:221
20522 #, no-wrap
20523 msgid ""
20524 " guestmount --fuse-help\n"
20525 "\n"
20526 msgstr ""
20527
20528 #. type: textblock
20529 #: ../fuse/guestmount.pod:223
20530 msgid "Some potentially useful FUSE options:"
20531 msgstr ""
20532
20533 #. type: =item
20534 #: ../fuse/guestmount.pod:227
20535 msgid "B<-o allow_other>"
20536 msgstr ""
20537
20538 #. type: textblock
20539 #: ../fuse/guestmount.pod:229
20540 msgid "Allow other users to see the filesystem."
20541 msgstr ""
20542
20543 #. type: =item
20544 #: ../fuse/guestmount.pod:231
20545 msgid "B<-o attr_timeout=N>"
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../fuse/guestmount.pod:233
20550 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20551 msgstr ""
20552
20553 #. type: =item
20554 #: ../fuse/guestmount.pod:235
20555 msgid "B<-o kernel_cache>"
20556 msgstr ""
20557
20558 #. type: textblock
20559 #: ../fuse/guestmount.pod:237
20560 msgid ""
20561 "Allow the kernel to cache files (reduces the number of reads that have to go "
20562 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20563 "afford the extra memory usage."
20564 msgstr ""
20565
20566 #. type: =item
20567 #: ../fuse/guestmount.pod:241
20568 msgid "B<-o uid=N> B<-o gid=N>"
20569 msgstr ""
20570
20571 #. type: textblock
20572 #: ../fuse/guestmount.pod:243
20573 msgid ""
20574 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20575 "the chosen values."
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../fuse/guestmount.pod:252
20580 msgid ""
20581 "Add devices and mount everything read-only.  Also disallow writes and make "
20582 "the disk appear read-only to FUSE."
20583 msgstr ""
20584
20585 #. type: textblock
20586 #: ../fuse/guestmount.pod:255
20587 msgid ""
20588 "This is highly recommended if you are not going to edit the guest disk.  If "
20589 "the guest is running and this option is I<not> supplied, then there is a "
20590 "strong risk of disk corruption in the guest.  We try to prevent this from "
20591 "happening, but it is not always possible."
20592 msgstr ""
20593
20594 #. type: textblock
20595 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
20596 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../fuse/guestmount.pod:264
20601 msgid "Enable SELinux support for the guest."
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fuse/guestmount.pod:270
20606 msgid "Enable verbose messages from underlying libguestfs."
20607 msgstr ""
20608
20609 #. type: textblock
20610 #: ../fuse/guestmount.pod:276
20611 msgid "Display the program version and exit."
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20616 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20617 msgstr ""
20618
20619 #. type: =item
20620 #: ../fuse/guestmount.pod:289
20621 msgid "B<--trace>"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fuse/guestmount.pod:291
20626 msgid "Trace libguestfs calls and entry into each FUSE function."
20627 msgstr ""
20628
20629 #. type: textblock
20630 #: ../fuse/guestmount.pod:293
20631 msgid "This also stops the daemon from forking into the background."
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../fuse/guestmount.pod:319
20636 msgid ""
20637 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20638 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
20639 "L<http://fuse.sf.net/>."
20640 msgstr ""
20641
20642 #. type: textblock
20643 #: ../fuse/guestmount.pod:334
20644 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20645 msgstr ""
20646
20647 #. type: textblock
20648 #: ../inspector/virt-inspector.pod:5
20649 msgid ""
20650 "virt-inspector - Display operating system version and other information "
20651 "about a virtual machine"
20652 msgstr ""
20653
20654 #. type: verbatim
20655 #: ../inspector/virt-inspector.pod:9
20656 #, no-wrap
20657 msgid ""
20658 " virt-inspector [--options] -d domname\n"
20659 "\n"
20660 msgstr ""
20661
20662 #. type: verbatim
20663 #: ../inspector/virt-inspector.pod:11
20664 #, no-wrap
20665 msgid ""
20666 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20667 "\n"
20668 msgstr ""
20669
20670 #. type: verbatim
20671 #: ../inspector/virt-inspector.pod:15
20672 #, no-wrap
20673 msgid ""
20674 " virt-inspector domname\n"
20675 "\n"
20676 msgstr ""
20677
20678 #. type: verbatim
20679 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20680 #, no-wrap
20681 msgid ""
20682 " virt-inspector disk.img [disk.img ...]\n"
20683 "\n"
20684 msgstr ""
20685
20686 #. type: textblock
20687 #: ../inspector/virt-inspector.pod:21
20688 msgid ""
20689 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20690 "determine the version of the operating system and other information about "
20691 "the virtual machine."
20692 msgstr ""
20693
20694 #. type: textblock
20695 #: ../inspector/virt-inspector.pod:25
20696 msgid "Virt-inspector produces XML output for feeding into other programs."
20697 msgstr ""
20698
20699 #. type: textblock
20700 #: ../inspector/virt-inspector.pod:27
20701 msgid ""
20702 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20703 "the libvirt domain (see: C<virsh list --all>)."
20704 msgstr ""
20705
20706 #. type: textblock
20707 #: ../inspector/virt-inspector.pod:30
20708 msgid ""
20709 "You can also run virt-inspector directly on disk images from a single "
20710 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20711 "has several block devices, in which case you should list several I<-a> "
20712 "options one after another, with the first corresponding to the guest's "
20713 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
20714 msgstr ""
20715
20716 #. type: textblock
20717 #: ../inspector/virt-inspector.pod:37
20718 msgid ""
20719 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20720 "keys and similar."
20721 msgstr ""
20722
20723 #. type: textblock
20724 #: ../inspector/virt-inspector.pod:40
20725 msgid ""
20726 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20727 "inspect several virtual machines, you have to run virt-inspector several "
20728 "times (for example, from a shell script for-loop)."
20729 msgstr ""
20730
20731 #. type: textblock
20732 #: ../inspector/virt-inspector.pod:45
20733 msgid ""
20734 "Because virt-inspector needs direct access to guest images, it won't "
20735 "normally work over remote libvirt connections."
20736 msgstr ""
20737
20738 #. type: textblock
20739 #: ../inspector/virt-inspector.pod:48
20740 msgid ""
20741 "All of the information available from virt-inspector is also available "
20742 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20743 "The same information can also be fetched using guestfish or via libguestfs "
20744 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20745 "WITH OTHER PROGRAMMING LANGUAGES>)."
20746 msgstr ""
20747
20748 #. type: textblock
20749 #: ../inspector/virt-inspector.pod:81
20750 msgid ""
20751 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20752 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20753 "at all."
20754 msgstr ""
20755
20756 #. type: textblock
20757 #: ../inspector/virt-inspector.pod:94
20758 msgid ""
20759 "When prompting for keys and passphrases, virt-inspector normally turns "
20760 "echoing off so you cannot see what you are typing.  If you are not worried "
20761 "about Tempest attacks and there is no one else in the room you can specify "
20762 "this flag to see what you are typing."
20763 msgstr ""
20764
20765 #. type: textblock
20766 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93 ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143 ../tools/virt-win-reg.pl:144
20767 msgid ""
20768 "Specify the format of disk images given on the command line.  If this is "
20769 "omitted then the format is autodetected from the content of the disk image."
20770 msgstr ""
20771
20772 #. type: textblock
20773 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97 ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147 ../tools/virt-win-reg.pl:148
20774 msgid ""
20775 "If disk images are requested from libvirt, then this program asks libvirt "
20776 "for this information.  In this case, the value of the format parameter is "
20777 "ignored."
20778 msgstr ""
20779
20780 #. type: textblock
20781 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:370 ../resize/virt-resize.pod:462 ../sparsify/virt-sparsify.pod:132 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
20782 msgid ""
20783 "If working with untrusted raw-format guest disk images, you should ensure "
20784 "the format is always specified."
20785 msgstr ""
20786
20787 #. type: textblock
20788 #: ../inspector/virt-inspector.pod:139
20789 msgid "Previous versions of virt-inspector allowed you to write either:"
20790 msgstr ""
20791
20792 #. type: verbatim
20793 #: ../inspector/virt-inspector.pod:145
20794 #, no-wrap
20795 msgid ""
20796 " virt-inspector guestname\n"
20797 "\n"
20798 msgstr ""
20799
20800 #. type: =head1
20801 #: ../inspector/virt-inspector.pod:153
20802 msgid "XML FORMAT"
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../inspector/virt-inspector.pod:155
20807 msgid ""
20808 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20809 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20810 "just an overview."
20811 msgstr ""
20812
20813 #. type: textblock
20814 #: ../inspector/virt-inspector.pod:159
20815 msgid ""
20816 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20817 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20818 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20819 "which is vanishingly rare in real world VMs."
20820 msgstr ""
20821
20822 #. type: =head2
20823 #: ../inspector/virt-inspector.pod:164
20824 msgid "E<lt>operatingsystemE<gt>"
20825 msgstr ""
20826
20827 #. type: textblock
20828 #: ../inspector/virt-inspector.pod:166
20829 msgid ""
20830 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20831 "describe the operating system, its architecture, the descriptive \"product "
20832 "name\" string, the type of OS and so on, as in this example:"
20833 msgstr ""
20834
20835 #. type: verbatim
20836 #: ../inspector/virt-inspector.pod:170
20837 #, no-wrap
20838 msgid ""
20839 " <operatingsystems>\n"
20840 "   <operatingsystem>\n"
20841 "     <root>/dev/sda2</root>\n"
20842 "     <name>windows</name>\n"
20843 "     <arch>i386</arch>\n"
20844 "     <distro>windows</distro>\n"
20845 "     <product_name>Windows 7 Enterprise</product_name>\n"
20846 "     <product_variant>Client</product_variant>\n"
20847 "     <major_version>6</major_version>\n"
20848 "     <minor_version>1</minor_version>\n"
20849 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20850 "     <format>installed</format>\n"
20851 "\n"
20852 msgstr ""
20853
20854 #. type: textblock
20855 #: ../inspector/virt-inspector.pod:183
20856 msgid ""
20857 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20858 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20859 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20860 "architecture.  The other fields are fairly self-explanatory, but because "
20861 "these fields are taken directly from the libguestfs inspection API you can "
20862 "find precise information from L<guestfs(3)/INSPECTION>."
20863 msgstr ""
20864
20865 #. type: textblock
20866 #: ../inspector/virt-inspector.pod:191
20867 msgid ""
20868 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20869 "of view of libguestfs (block devices may have completely different names "
20870 "inside the VM itself)."
20871 msgstr ""
20872
20873 #. type: =head2
20874 #: ../inspector/virt-inspector.pod:195
20875 msgid "E<lt>mountpointsE<gt>"
20876 msgstr ""
20877
20878 #. type: textblock
20879 #: ../inspector/virt-inspector.pod:197
20880 msgid ""
20881 "Un*x-like guests typically have multiple filesystems which are mounted at "
20882 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20883 "element which looks like this:"
20884 msgstr ""
20885
20886 #. type: verbatim
20887 #: ../inspector/virt-inspector.pod:201
20888 #, no-wrap
20889 msgid ""
20890 " <operatingsystems>\n"
20891 "   <operatingsystem>\n"
20892 "     ...\n"
20893 "     <mountpoints>\n"
20894 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20895 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20896 "     </mountpoints>\n"
20897 "\n"
20898 msgstr ""
20899
20900 #. type: textblock
20901 #: ../inspector/virt-inspector.pod:209
20902 msgid ""
20903 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20904 "and may have completely different names inside the guest.  Only mountable "
20905 "filesystems appear in this list, not things like swap devices."
20906 msgstr ""
20907
20908 #. type: =head2
20909 #: ../inspector/virt-inspector.pod:214
20910 msgid "E<lt>filesystemsE<gt>"
20911 msgstr ""
20912
20913 #. type: textblock
20914 #: ../inspector/virt-inspector.pod:216
20915 msgid ""
20916 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20917 "filesystems belonging to the guest, including swap and empty partitions.  "
20918 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20919 "this OS or shared with this OS and other OSes)."
20920 msgstr ""
20921
20922 #. type: textblock
20923 #: ../inspector/virt-inspector.pod:222
20924 msgid "You might see something like this:"
20925 msgstr ""
20926
20927 #. type: verbatim
20928 #: ../inspector/virt-inspector.pod:224
20929 #, no-wrap
20930 msgid ""
20931 " <operatingsystems>\n"
20932 "   <operatingsystem>\n"
20933 "     ...\n"
20934 "     <filesystems>\n"
20935 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20936 "         <type>ext4</type>\n"
20937 "         <label>Fedora-13-x86_64</label>\n"
20938 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20939 "       </filesystem>\n"
20940 "\n"
20941 msgstr ""
20942
20943 #. type: textblock
20944 #: ../inspector/virt-inspector.pod:234
20945 msgid ""
20946 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20947 "the label, and the UUID."
20948 msgstr ""
20949
20950 #. type: =head2
20951 #: ../inspector/virt-inspector.pod:237
20952 msgid "E<lt>applicationsE<gt>"
20953 msgstr ""
20954
20955 #. type: textblock
20956 #: ../inspector/virt-inspector.pod:239
20957 msgid ""
20958 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20959 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20960 "machine."
20961 msgstr ""
20962
20963 #. type: textblock
20964 #: ../inspector/virt-inspector.pod:243
20965 msgid ""
20966 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20967 "Typical values would be C<rpm> and C<deb>."
20968 msgstr ""
20969
20970 #. type: textblock
20971 #: ../inspector/virt-inspector.pod:246
20972 msgid ""
20973 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20974 "Typical values include C<yum>, C<up2date> and C<apt>"
20975 msgstr ""
20976
20977 #. type: textblock
20978 #: ../inspector/virt-inspector.pod:249
20979 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20980 msgstr ""
20981
20982 #. type: verbatim
20983 #: ../inspector/virt-inspector.pod:252
20984 #, no-wrap
20985 msgid ""
20986 " <operatingsystems>\n"
20987 "   <operatingsystem>\n"
20988 "     ...\n"
20989 "     <applications>\n"
20990 "       <application>\n"
20991 "         <name>coreutils</name>\n"
20992 "         <version>8.5</version>\n"
20993 "         <release>1</release>\n"
20994 "       </application>\n"
20995 "\n"
20996 msgstr ""
20997
20998 #. type: textblock
20999 #: ../inspector/virt-inspector.pod:262
21000 msgid ""
21001 "The version and release fields may not be available for some types guests.  "
21002 "Other fields are possible, see "
21003 "L<guestfs(3)/guestfs_inspect_list_applications>."
21004 msgstr ""
21005
21006 #. type: =head2
21007 #: ../inspector/virt-inspector.pod:266
21008 msgid "E<lt>drive_mappingsE<gt>"
21009 msgstr ""
21010
21011 #. type: textblock
21012 #: ../inspector/virt-inspector.pod:268
21013 msgid ""
21014 "For operating systems like Windows which use drive letters, virt-inspector "
21015 "is able to find out how drive letters map to filesystems."
21016 msgstr ""
21017
21018 #. type: verbatim
21019 #: ../inspector/virt-inspector.pod:272
21020 #, no-wrap
21021 msgid ""
21022 " <operatingsystems>\n"
21023 "   <operatingsystem>\n"
21024 "     ...\n"
21025 "     <drive_mappings>\n"
21026 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21027 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21028 "     </drive_mappings>\n"
21029 "\n"
21030 msgstr ""
21031
21032 #. type: textblock
21033 #: ../inspector/virt-inspector.pod:280
21034 msgid ""
21035 "In the example above, drive C maps to the filesystem on the second partition "
21036 "on the first disk, and drive E maps to the filesystem on the first partition "
21037 "on the second disk."
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../inspector/virt-inspector.pod:284
21042 msgid ""
21043 "Note that this only covers permanent local filesystem mappings, not things "
21044 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21045 "here."
21046 msgstr ""
21047
21048 #. type: =head2
21049 #: ../inspector/virt-inspector.pod:288
21050 msgid "E<lt>iconE<gt>"
21051 msgstr ""
21052
21053 #. type: textblock
21054 #: ../inspector/virt-inspector.pod:290
21055 msgid ""
21056 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21057 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21058 "very large and high quality."
21059 msgstr ""
21060
21061 #. type: verbatim
21062 #: ../inspector/virt-inspector.pod:294
21063 #, no-wrap
21064 msgid ""
21065 " <operatingsystems>\n"
21066 "   <operatingsystem>\n"
21067 "     ...\n"
21068 "     <icon>\n"
21069 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21070 "       [... many lines of base64 data ...]\n"
21071 "     </icon>\n"
21072 "\n"
21073 msgstr ""
21074
21075 #. type: textblock
21076 #: ../inspector/virt-inspector.pod:302
21077 msgid ""
21078 "To display the icon, you have to extract it and convert the base64 data back "
21079 "to a binary file.  Use an XPath query or simply an editor to extract the "
21080 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21081 "to a PNG file:"
21082 msgstr ""
21083
21084 #. type: verbatim
21085 #: ../inspector/virt-inspector.pod:307
21086 #, no-wrap
21087 msgid ""
21088 " base64 -i -d < icon.data > icon.png\n"
21089 "\n"
21090 msgstr ""
21091
21092 #. type: =head2
21093 #: ../inspector/virt-inspector.pod:309
21094 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21095 msgstr ""
21096
21097 #. type: textblock
21098 #: ../inspector/virt-inspector.pod:311
21099 msgid ""
21100 "Virt-inspector can detect some operating system installers on install disks, "
21101 "live CDs, bootable USB keys and more."
21102 msgstr ""
21103
21104 #. type: textblock
21105 #: ../inspector/virt-inspector.pod:314
21106 msgid ""
21107 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21108 "fields may be present to indicate a live CD, network installer, or one part "
21109 "of a multipart CD.  For example:"
21110 msgstr ""
21111
21112 #. type: verbatim
21113 #: ../inspector/virt-inspector.pod:318
21114 #, no-wrap
21115 msgid ""
21116 " <operatingsystems>\n"
21117 "   <operatingsystem>\n"
21118 "     <root>/dev/sda</root>\n"
21119 "     <name>linux</name>\n"
21120 "     <arch>i386</arch>\n"
21121 "     <distro>ubuntu</distro>\n"
21122 "     <product_name>Ubuntu 10.10 &quot;Maverick "
21123 "Meerkat&quot;</product_name>\n"
21124 "     <major_version>10</major_version>\n"
21125 "     <minor_version>10</minor_version>\n"
21126 "     <format>installer</format>\n"
21127 "     <live/>\n"
21128 "\n"
21129 msgstr ""
21130
21131 #. type: =head1
21132 #: ../inspector/virt-inspector.pod:330
21133 msgid "USING XPATH"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../inspector/virt-inspector.pod:332
21138 msgid ""
21139 "You can use the XPath query language to select parts of the XML.  We "
21140 "recommend using C<xmlstarlet> to perform XPath queries from the command "
21141 "line."
21142 msgstr ""
21143
21144 #. type: verbatim
21145 #: ../inspector/virt-inspector.pod:338
21146 #, no-wrap
21147 msgid ""
21148 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21149 " <filesystems>\n"
21150 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21151 "        <type>ext4</type>\n"
21152 " [...]\n"
21153 "\n"
21154 msgstr ""
21155
21156 #. type: verbatim
21157 #: ../inspector/virt-inspector.pod:344
21158 #, no-wrap
21159 msgid ""
21160 " $ virt-inspector -d Guest | \\\n"
21161 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21162 " ext4\n"
21163 "\n"
21164 msgstr ""
21165
21166 #. type: verbatim
21167 #: ../inspector/virt-inspector.pod:348
21168 #, no-wrap
21169 msgid ""
21170 " $ virt-inspector -d Guest | \\\n"
21171 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21172 " [displays the guest icon, if there is one]\n"
21173 "\n"
21174 msgstr ""
21175
21176 #. type: =head1
21177 #: ../inspector/virt-inspector.pod:359
21178 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../inspector/virt-inspector.pod:361
21183 msgid ""
21184 "Early versions of libguestfs shipped with a different virt-inspector program "
21185 "written in Perl (the current version is written in C).  The XML output of "
21186 "the Perl virt-inspector was different and it could also output in other "
21187 "formats like text."
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../inspector/virt-inspector.pod:366
21192 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
21193 msgstr ""
21194
21195 #. type: textblock
21196 #: ../inspector/virt-inspector.pod:369
21197 msgid ""
21198 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21199 "versions of virt-inspector with different names:"
21200 msgstr ""
21201
21202 #. type: verbatim
21203 #: ../inspector/virt-inspector.pod:372
21204 #, no-wrap
21205 msgid ""
21206 " virt-inspector     Old Perl version.\n"
21207 " virt-inspector2    New C version.\n"
21208 "\n"
21209 msgstr ""
21210
21211 #. type: textblock
21212 #: ../inspector/virt-inspector.pod:382
21213 msgid ""
21214 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
21215 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21216 msgstr ""
21217
21218 #. type: textblock
21219 #: ../inspector/virt-inspector.pod:399
21220 msgid "Matthew Booth L<mbooth@redhat.com>"
21221 msgstr ""
21222
21223 #. type: textblock
21224 #: ../java/examples/guestfs-java.pod:5
21225 msgid "guestfs-java - How to use libguestfs from Java"
21226 msgstr ""
21227
21228 #. type: verbatim
21229 #: ../java/examples/guestfs-java.pod:9
21230 #, no-wrap
21231 msgid ""
21232 " import com.redhat.et.libguestfs.*;\n"
21233 " \n"
21234 msgstr ""
21235
21236 #. type: verbatim
21237 #: ../java/examples/guestfs-java.pod:11
21238 #, no-wrap
21239 msgid ""
21240 " GuestFS g = new GuestFS ();\n"
21241 " g.add_drive_opts (\"disk.img\", null);\n"
21242 " g.launch ();\n"
21243 "\n"
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../java/examples/guestfs-java.pod:17
21248 msgid ""
21249 "This manual page documents how to call libguestfs from the Java programming "
21250 "language.  This page just documents the differences from the C API and gives "
21251 "some examples.  If you are not familiar with using libguestfs, you also need "
21252 "to read L<guestfs(3)>."
21253 msgstr ""
21254
21255 #. type: =head2
21256 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21257 msgid "CLOSING THE HANDLE"
21258 msgstr ""
21259
21260 #. type: textblock
21261 #: ../java/examples/guestfs-java.pod:24
21262 msgid ""
21263 "The handle is closed when it is reaped by the garbage collector.  Because "
21264 "libguestfs handles include a lot of state, it is also possible to close (and "
21265 "hence free) them explicitly by calling the C<close> method."
21266 msgstr ""
21267
21268 #. type: =head2
21269 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
21270 msgid "EXCEPTIONS"
21271 msgstr ""
21272
21273 #. type: textblock
21274 #: ../java/examples/guestfs-java.pod:31
21275 msgid ""
21276 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21277 "exception.  This has a single parameter which is the error message (a "
21278 "C<String>)."
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../java/examples/guestfs-java.pod:35
21283 msgid "Calling any method on a closed handle raises the same exception."
21284 msgstr ""
21285
21286 #. type: textblock
21287 #: ../java/examples/guestfs-java.pod:47
21288 msgid ""
21289 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21290 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21291 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21292 "L<http://caml.inria.fr/>."
21293 msgstr ""
21294
21295 #. type: textblock
21296 #: ../ocaml/examples/guestfs-ocaml.pod:5
21297 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21298 msgstr ""
21299
21300 #. type: textblock
21301 #: ../ocaml/examples/guestfs-ocaml.pod:9
21302 msgid "Module style:"
21303 msgstr ""
21304
21305 #. type: verbatim
21306 #: ../ocaml/examples/guestfs-ocaml.pod:11
21307 #, no-wrap
21308 msgid ""
21309 " let g = Guestfs.create () in\n"
21310 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21311 " Guestfs.launch g;\n"
21312 "\n"
21313 msgstr ""
21314
21315 #. type: textblock
21316 #: ../ocaml/examples/guestfs-ocaml.pod:15
21317 msgid "Object-oriented style:"
21318 msgstr ""
21319
21320 #. type: verbatim
21321 #: ../ocaml/examples/guestfs-ocaml.pod:17
21322 #, no-wrap
21323 msgid ""
21324 " let g = new Guestfs.guestfs () in\n"
21325 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21326 " g#launch ();\n"
21327 "\n"
21328 msgstr ""
21329
21330 #. type: verbatim
21331 #: ../ocaml/examples/guestfs-ocaml.pod:21
21332 #, no-wrap
21333 msgid ""
21334 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21335 "or:\n"
21336 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21337 "\n"
21338 msgstr ""
21339
21340 #. type: textblock
21341 #: ../ocaml/examples/guestfs-ocaml.pod:27
21342 msgid ""
21343 "This manual page documents how to call libguestfs from the OCaml programming "
21344 "language.  This page just documents the differences from the C API and gives "
21345 "some examples.  If you are not familiar with using libguestfs, you also need "
21346 "to read L<guestfs(3)>."
21347 msgstr ""
21348
21349 #. type: =head2
21350 #: ../ocaml/examples/guestfs-ocaml.pod:32
21351 msgid "PROGRAMMING STYLES"
21352 msgstr ""
21353
21354 #. type: textblock
21355 #: ../ocaml/examples/guestfs-ocaml.pod:34
21356 msgid ""
21357 "There are two different programming styles supported by the OCaml bindings.  "
21358 "You can use a module style, with each C function mapped to an OCaml "
21359 "function:"
21360 msgstr ""
21361
21362 #. type: verbatim
21363 #: ../ocaml/examples/guestfs-ocaml.pod:38
21364 #, no-wrap
21365 msgid ""
21366 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21367 "\n"
21368 msgstr ""
21369
21370 #. type: textblock
21371 #: ../ocaml/examples/guestfs-ocaml.pod:40
21372 msgid "becomes:"
21373 msgstr ""
21374
21375 #. type: verbatim
21376 #: ../ocaml/examples/guestfs-ocaml.pod:42
21377 #, no-wrap
21378 msgid ""
21379 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21380 "\n"
21381 msgstr ""
21382
21383 #. type: textblock
21384 #: ../ocaml/examples/guestfs-ocaml.pod:44
21385 msgid ""
21386 "Alternately you can use an object-oriented style, calling methods on the "
21387 "class C<Guestfs.guestfs>:"
21388 msgstr ""
21389
21390 #. type: verbatim
21391 #: ../ocaml/examples/guestfs-ocaml.pod:47
21392 #, no-wrap
21393 msgid ""
21394 " method set_verbose : bool -> unit\n"
21395 "\n"
21396 msgstr ""
21397
21398 #. type: textblock
21399 #: ../ocaml/examples/guestfs-ocaml.pod:49
21400 msgid ""
21401 "The object-oriented style is usually briefer, and the minor performance "
21402 "penalty isn't noticable in the general overhead of performing libguestfs "
21403 "functions."
21404 msgstr ""
21405
21406 #. type: textblock
21407 #: ../ocaml/examples/guestfs-ocaml.pod:55
21408 msgid ""
21409 "The handle is closed when it is reaped by the garbage collector.  Because "
21410 "libguestfs handles include a lot of state, it is also possible to close (and "
21411 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21412 "method."
21413 msgstr ""
21414
21415 #. type: textblock
21416 #: ../ocaml/examples/guestfs-ocaml.pod:62
21417 msgid ""
21418 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21419 "exception.  This has a single parameter which is the error message (a "
21420 "string)."
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../ocaml/examples/guestfs-ocaml.pod:66
21425 msgid ""
21426 "Calling any function/method on a closed handle raises "
21427 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
21428 "that you called."
21429 msgstr ""
21430
21431 #. type: textblock
21432 #: ../ocaml/examples/guestfs-ocaml.pod:80
21433 msgid ""
21434 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21435 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21436 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21437 "L<http://caml.inria.fr/>."
21438 msgstr ""
21439
21440 #. type: textblock
21441 #: ../perl/examples/guestfs-perl.pod:5
21442 msgid "guestfs-perl - How to use libguestfs from Perl"
21443 msgstr ""
21444
21445 #. type: verbatim
21446 #: ../perl/examples/guestfs-perl.pod:9
21447 #, no-wrap
21448 msgid ""
21449 " use Sys::Guestfs;\n"
21450 " \n"
21451 msgstr ""
21452
21453 #. type: verbatim
21454 #: ../perl/examples/guestfs-perl.pod:11
21455 #, no-wrap
21456 msgid ""
21457 " my $h = Sys::Guestfs->new ();\n"
21458 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21459 " $h->launch ();\n"
21460 " $h->mount_options ('', '/dev/sda1', '/');\n"
21461 " $h->touch ('/hello');\n"
21462 " $h->sync ();\n"
21463 "\n"
21464 msgstr ""
21465
21466 #. type: textblock
21467 #: ../perl/examples/guestfs-perl.pod:20
21468 msgid ""
21469 "This manual page documents how to call libguestfs from the Perl programming "
21470 "language.  This page just documents the differences from the C API and gives "
21471 "some examples.  If you are not familiar with using libguestfs, you also need "
21472 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21473 msgstr ""
21474
21475 #. type: =head2
21476 #: ../perl/examples/guestfs-perl.pod:26
21477 msgid "ERRORS"
21478 msgstr ""
21479
21480 #. type: textblock
21481 #: ../perl/examples/guestfs-perl.pod:28
21482 msgid ""
21483 "Errors from libguestfs functions turn into calls to C<croak> (see "
21484 "L<Carp(3)>)."
21485 msgstr ""
21486
21487 #. type: textblock
21488 #: ../perl/examples/guestfs-perl.pod:41
21489 msgid ""
21490 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
21491 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
21492 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
21493 "L<http://libguestfs.org/>."
21494 msgstr ""
21495
21496 #. type: textblock
21497 #: ../python/examples/guestfs-python.pod:5
21498 msgid "guestfs-python - How to use libguestfs from Python"
21499 msgstr ""
21500
21501 #. type: verbatim
21502 #: ../python/examples/guestfs-python.pod:9
21503 #, no-wrap
21504 msgid ""
21505 " import guestfs\n"
21506 " g = guestfs.GuestFS ()\n"
21507 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21508 " g.launch\n"
21509 "\n"
21510 msgstr ""
21511
21512 #. type: textblock
21513 #: ../python/examples/guestfs-python.pod:16
21514 msgid ""
21515 "This manual page documents how to call libguestfs from the Python "
21516 "programming language.  This page just documents the differences from the C "
21517 "API and gives some examples.  If you are not familiar with using libguestfs, "
21518 "you also need to read L<guestfs(3)>."
21519 msgstr ""
21520
21521 #. type: textblock
21522 #: ../python/examples/guestfs-python.pod:23
21523 msgid ""
21524 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21525 "single string argument which is the error message."
21526 msgstr ""
21527
21528 #. type: =head2
21529 #: ../python/examples/guestfs-python.pod:26
21530 msgid "MORE DOCUMENTATION"
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../python/examples/guestfs-python.pod:28
21535 msgid "Type:"
21536 msgstr ""
21537
21538 #. type: verbatim
21539 #: ../python/examples/guestfs-python.pod:30
21540 #, no-wrap
21541 msgid ""
21542 " $ python\n"
21543 " >>> import guestfs\n"
21544 " >>> help (guestfs)\n"
21545 "\n"
21546 msgstr ""
21547
21548 #. type: textblock
21549 #: ../python/examples/guestfs-python.pod:44
21550 msgid ""
21551 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21552 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
21553 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21554 msgstr ""
21555
21556 #. type: textblock
21557 #: ../rescue/virt-rescue.pod:5
21558 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21559 msgstr ""
21560
21561 #. type: verbatim
21562 #: ../rescue/virt-rescue.pod:9
21563 #, no-wrap
21564 msgid ""
21565 " virt-rescue [--options] -d domname\n"
21566 "\n"
21567 msgstr ""
21568
21569 #. type: verbatim
21570 #: ../rescue/virt-rescue.pod:11
21571 #, no-wrap
21572 msgid ""
21573 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21574 "\n"
21575 msgstr ""
21576
21577 #. type: verbatim
21578 #: ../rescue/virt-rescue.pod:15
21579 #, no-wrap
21580 msgid ""
21581 " virt-rescue [--options] domname\n"
21582 "\n"
21583 msgstr ""
21584
21585 #. type: verbatim
21586 #: ../rescue/virt-rescue.pod:17
21587 #, no-wrap
21588 msgid ""
21589 " virt-rescue [--options] disk.img [disk.img ...]\n"
21590 "\n"
21591 msgstr ""
21592
21593 #. type: textblock
21594 #: ../rescue/virt-rescue.pod:21
21595 msgid ""
21596 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21597 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21598 "you from doing this, but doesn't catch all cases."
21599 msgstr ""
21600
21601 #. type: textblock
21602 #: ../rescue/virt-rescue.pod:25
21603 msgid ""
21604 "However if you use the I<--ro> (read only) option, then you can attach a "
21605 "shell to a live virtual machine.  The results might be strange or "
21606 "inconsistent at times but you won't get disk corruption."
21607 msgstr ""
21608
21609 #. type: textblock
21610 #: ../rescue/virt-rescue.pod:31
21611 msgid ""
21612 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21613 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21614 "recovery tools which you can use to examine or rescue a virtual machine or "
21615 "disk image."
21616 msgstr ""
21617
21618 #. type: textblock
21619 #: ../rescue/virt-rescue.pod:36
21620 msgid ""
21621 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21622 "on disk image(s):"
21623 msgstr ""
21624
21625 #. type: verbatim
21626 #: ../rescue/virt-rescue.pod:39
21627 #, no-wrap
21628 msgid ""
21629 " virt-rescue -d GuestName\n"
21630 "\n"
21631 msgstr ""
21632
21633 #. type: verbatim
21634 #: ../rescue/virt-rescue.pod:41
21635 #, no-wrap
21636 msgid ""
21637 " virt-rescue --ro -a /path/to/disk.img\n"
21638 "\n"
21639 msgstr ""
21640
21641 #. type: verbatim
21642 #: ../rescue/virt-rescue.pod:43
21643 #, no-wrap
21644 msgid ""
21645 " virt-rescue -a /dev/sdc\n"
21646 "\n"
21647 msgstr ""
21648
21649 #. type: textblock
21650 #: ../rescue/virt-rescue.pod:45
21651 msgid "For live VMs you I<must> use the --ro option."
21652 msgstr ""
21653
21654 #. type: textblock
21655 #: ../rescue/virt-rescue.pod:47
21656 msgid ""
21657 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21658 "in an interactive bash shell where you can use many ordinary Linux "
21659 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21660 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21661 "is an empty directory called C</sysroot> where you can mount filesystems."
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../rescue/virt-rescue.pod:54
21666 msgid ""
21667 "In the example below, we list logical volumes, then choose one to mount "
21668 "under C</sysroot>:"
21669 msgstr ""
21670
21671 #. type: verbatim
21672 #: ../rescue/virt-rescue.pod:57
21673 #, no-wrap
21674 msgid ""
21675 " ><rescue> lvs\n"
21676 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21677 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21678 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21679 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21680 " ><rescue> ls /sysroot\n"
21681 "\n"
21682 msgstr ""
21683
21684 #. type: textblock
21685 #: ../rescue/virt-rescue.pod:64
21686 msgid ""
21687 "If you don't know what filesystems are available on the virtual machine then "
21688 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21689 msgstr ""
21690
21691 #. type: textblock
21692 #: ../rescue/virt-rescue.pod:70
21693 msgid ""
21694 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21695 "virtual machine.  For example you can use it on a blank file if you want to "
21696 "partition that file (although we would recommend using L<guestfish(1)> "
21697 "instead as it is more suitable for this purpose).  You can even use "
21698 "virt-rescue on things like SD cards."
21699 msgstr ""
21700
21701 #. type: textblock
21702 #: ../rescue/virt-rescue.pod:76
21703 msgid ""
21704 "Virt-rescue does not require root.  You only need to run it as root if you "
21705 "need root to open the disk image."
21706 msgstr ""
21707
21708 #. type: textblock
21709 #: ../rescue/virt-rescue.pod:79
21710 msgid ""
21711 "This tool is just designed for quick interactive hacking on a virtual "
21712 "machine.  For more structured access to a virtual machine disk image, you "
21713 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21714 "make scripted changes to guests, use L<guestfish(1)>."
21715 msgstr ""
21716
21717 #. type: =item
21718 #: ../rescue/virt-rescue.pod:103
21719 msgid "B<--append kernelopts>"
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../rescue/virt-rescue.pod:105
21724 msgid "Pass additional options to the rescue kernel."
21725 msgstr ""
21726
21727 #. type: verbatim
21728 #: ../rescue/virt-rescue.pod:135
21729 #, no-wrap
21730 msgid ""
21731 " virt-rescue --format=raw -a disk.img\n"
21732 "\n"
21733 msgstr ""
21734
21735 #. type: verbatim
21736 #: ../rescue/virt-rescue.pod:139
21737 #, no-wrap
21738 msgid ""
21739 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21740 "\n"
21741 msgstr ""
21742
21743 #. type: =item
21744 #: ../rescue/virt-rescue.pod:148
21745 msgid "B<-m MB>"
21746 msgstr ""
21747
21748 #. type: =item
21749 #: ../rescue/virt-rescue.pod:150
21750 msgid "B<--memsize MB>"
21751 msgstr ""
21752
21753 #. type: textblock
21754 #: ../rescue/virt-rescue.pod:152
21755 msgid ""
21756 "Change the amount of memory allocated to the rescue system.  The default is "
21757 "set by libguestfs and is small but adequate for running system tools.  The "
21758 "occasional program might need more memory.  The parameter is specified in "
21759 "megabytes."
21760 msgstr ""
21761
21762 #. type: =item
21763 #: ../rescue/virt-rescue.pod:157
21764 msgid "B<--network>"
21765 msgstr ""
21766
21767 #. type: textblock
21768 #: ../rescue/virt-rescue.pod:159
21769 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21770 msgstr ""
21771
21772 #. type: textblock
21773 #: ../rescue/virt-rescue.pod:165
21774 msgid "Open the image read-only."
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../rescue/virt-rescue.pod:175
21779 msgid ""
21780 "Enable SELinux in the rescue appliance.  You should read "
21781 "L<guestfs(3)/SELINUX> before using this option."
21782 msgstr ""
21783
21784 #. type: =item
21785 #: ../rescue/virt-rescue.pod:178
21786 msgid "B<--smp> N"
21787 msgstr ""
21788
21789 #. type: textblock
21790 #: ../rescue/virt-rescue.pod:180
21791 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
21792 msgstr ""
21793
21794 #. type: textblock
21795 #: ../rescue/virt-rescue.pod:198
21796 msgid ""
21797 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21798 "are done read-write."
21799 msgstr ""
21800
21801 #. type: textblock
21802 #: ../rescue/virt-rescue.pod:211
21803 msgid "Previous versions of virt-rescue allowed you to write either:"
21804 msgstr ""
21805
21806 #. type: verbatim
21807 #: ../rescue/virt-rescue.pod:213
21808 #, no-wrap
21809 msgid ""
21810 " virt-rescue disk.img [disk.img ...]\n"
21811 "\n"
21812 msgstr ""
21813
21814 #. type: verbatim
21815 #: ../rescue/virt-rescue.pod:217
21816 #, no-wrap
21817 msgid ""
21818 " virt-rescue guestname\n"
21819 "\n"
21820 msgstr ""
21821
21822 #. type: =head1
21823 #: ../rescue/virt-rescue.pod:225
21824 msgid "NETWORK"
21825 msgstr ""
21826
21827 #. type: textblock
21828 #: ../rescue/virt-rescue.pod:227
21829 msgid ""
21830 "Adding the I<--network> option enables QEMU user networking in the rescue "
21831 "appliance.  There are some differences between user networking and ordinary "
21832 "networking:"
21833 msgstr ""
21834
21835 #. type: =item
21836 #: ../rescue/virt-rescue.pod:233
21837 msgid "ping does not work"
21838 msgstr ""
21839
21840 #. type: textblock
21841 #: ../rescue/virt-rescue.pod:235
21842 msgid ""
21843 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21844 "send the ping packets, and because virt-rescue must be able to run as "
21845 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
21846 "command.  The ping command will appear to resolve addresses but will not be "
21847 "able to send or receive any packets.  This does not mean that the network is "
21848 "not working."
21849 msgstr ""
21850
21851 #. type: =item
21852 #: ../rescue/virt-rescue.pod:242
21853 msgid "cannot receive connections"
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../rescue/virt-rescue.pod:244
21858 msgid "QEMU user networking cannot receive incoming connections."
21859 msgstr ""
21860
21861 #. type: =item
21862 #: ../rescue/virt-rescue.pod:246
21863 msgid "making TCP connections"
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../rescue/virt-rescue.pod:248
21868 msgid ""
21869 "The virt-rescue appliance needs to be small and so does not include many "
21870 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21871 "make TCP connections from the shell using the magical "
21872 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21873 msgstr ""
21874
21875 #. type: verbatim
21876 #: ../rescue/virt-rescue.pod:253
21877 #, no-wrap
21878 msgid ""
21879 " exec 3<>/dev/tcp/redhat.com/80\n"
21880 " echo \"GET /\" >&3\n"
21881 " cat <&3\n"
21882 "\n"
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../rescue/virt-rescue.pod:257
21887 msgid "See L<bash(1)> for more details."
21888 msgstr ""
21889
21890 #. type: textblock
21891 #: ../rescue/virt-rescue.pod:263
21892 msgid ""
21893 "Several environment variables affect virt-rescue.  See "
21894 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
21895 msgstr ""
21896
21897 #. type: textblock
21898 #: ../rescue/virt-rescue.pod:290
21899 msgid ""
21900 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21901 "L<http://libguestfs.org/>."
21902 msgstr ""
21903
21904 #. type: textblock
21905 #: ../resize/virt-resize.pod:5
21906 msgid "virt-resize - Resize a virtual machine disk"
21907 msgstr ""
21908
21909 #. type: verbatim
21910 #: ../resize/virt-resize.pod:9
21911 #, no-wrap
21912 msgid ""
21913 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21914 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21915 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21916 "\n"
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../resize/virt-resize.pod:15
21921 msgid ""
21922 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21923 "larger or smaller overall, and resizing or deleting any partitions contained "
21924 "within."
21925 msgstr ""
21926
21927 #. type: textblock
21928 #: ../resize/virt-resize.pod:19
21929 msgid ""
21930 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21931 "not> be used on live virtual machines - for consistent results, shut the "
21932 "virtual machine down before resizing it."
21933 msgstr ""
21934
21935 #. type: textblock
21936 #: ../resize/virt-resize.pod:23
21937 msgid ""
21938 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21939 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21940 msgstr ""
21941
21942 #. type: =item
21943 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:576 ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469 ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
21944 msgid "1."
21945 msgstr ""
21946
21947 #. type: textblock
21948 #: ../resize/virt-resize.pod:33
21949 msgid ""
21950 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21951 "fill the extra 5GB of space."
21952 msgstr ""
21953
21954 #. type: verbatim
21955 #: ../resize/virt-resize.pod:36
21956 #, no-wrap
21957 msgid ""
21958 " virt-filesystems --long -h --all -a olddisk\n"
21959 " \n"
21960 msgstr ""
21961
21962 #. type: verbatim
21963 #: ../resize/virt-resize.pod:38
21964 #, no-wrap
21965 msgid ""
21966 " truncate -r olddisk newdisk\n"
21967 " truncate -s +5G newdisk\n"
21968 " \n"
21969 msgstr ""
21970
21971 #. type: verbatim
21972 #: ../resize/virt-resize.pod:41
21973 #, no-wrap
21974 msgid ""
21975 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21976 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21977 "\n"
21978 msgstr ""
21979
21980 #. type: =item
21981 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:583 ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475 ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
21982 msgid "2."
21983 msgstr ""
21984
21985 #. type: textblock
21986 #: ../resize/virt-resize.pod:46
21987 msgid ""
21988 "As above, but make the /boot partition 200MB bigger, while giving the "
21989 "remaining space to /dev/sda2:"
21990 msgstr ""
21991
21992 #. type: verbatim
21993 #: ../resize/virt-resize.pod:49
21994 #, no-wrap
21995 msgid ""
21996 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21997 "   olddisk newdisk\n"
21998 "\n"
21999 msgstr ""
22000
22001 #. type: =item
22002 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:589 ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486 ../src/guestfs.pod:1436
22003 msgid "3."
22004 msgstr ""
22005
22006 #. type: textblock
22007 #: ../resize/virt-resize.pod:54
22008 msgid ""
22009 "As in the first example, but expand a logical volume as the final step.  "
22010 "This is what you would typically use for Linux guests that use LVM:"
22011 msgstr ""
22012
22013 #. type: verbatim
22014 #: ../resize/virt-resize.pod:58
22015 #, no-wrap
22016 msgid ""
22017 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22018 "   olddisk newdisk\n"
22019 "\n"
22020 msgstr ""
22021
22022 #. type: =item
22023 #: ../resize/virt-resize.pod:61
22024 msgid "4."
22025 msgstr ""
22026
22027 #. type: textblock
22028 #: ../resize/virt-resize.pod:63
22029 msgid ""
22030 "As in the first example, but the output format will be qcow2 instead of a "
22031 "raw disk:"
22032 msgstr ""
22033
22034 #. type: verbatim
22035 #: ../resize/virt-resize.pod:66
22036 #, no-wrap
22037 msgid ""
22038 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22039 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22040 "\n"
22041 msgstr ""
22042
22043 #. type: =head1
22044 #: ../resize/virt-resize.pod:71
22045 msgid "DETAILED USAGE"
22046 msgstr ""
22047
22048 #. type: =head2
22049 #: ../resize/virt-resize.pod:73
22050 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22051 msgstr ""
22052
22053 #. type: =item
22054 #: ../resize/virt-resize.pod:77
22055 msgid "1. Shut down the virtual machine"
22056 msgstr ""
22057
22058 #. type: =item
22059 #: ../resize/virt-resize.pod:79
22060 msgid "2. Locate input disk image"
22061 msgstr ""
22062
22063 #. type: textblock
22064 #: ../resize/virt-resize.pod:81
22065 msgid ""
22066 "Locate the input disk image (ie. the file or device on the host containing "
22067 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22068 "dumpxml> like this to find the disk image name:"
22069 msgstr ""
22070
22071 #. type: verbatim
22072 #: ../resize/virt-resize.pod:85
22073 #, no-wrap
22074 msgid ""
22075 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22076 " Found 1 nodes:\n"
22077 " -- NODE --\n"
22078 " <source dev=\"/dev/vg/lv_guest\" />\n"
22079 "\n"
22080 msgstr ""
22081
22082 #. type: =item
22083 #: ../resize/virt-resize.pod:90
22084 msgid "3. Look at current sizing"
22085 msgstr ""
22086
22087 #. type: textblock
22088 #: ../resize/virt-resize.pod:92
22089 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22090 msgstr ""
22091
22092 #. type: verbatim
22093 #: ../resize/virt-resize.pod:95
22094 #, no-wrap
22095 msgid ""
22096 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22097 " Name       Type       Size  Parent\n"
22098 " /dev/sda1  partition  101M  /dev/sda\n"
22099 " /dev/sda2  partition  7.9G  /dev/sda\n"
22100 " /dev/sda   device     8.0G  -\n"
22101 "\n"
22102 msgstr ""
22103
22104 #. type: textblock
22105 #: ../resize/virt-resize.pod:101
22106 msgid ""
22107 "(This example is a virtual machine with an 8 GB disk which we would like to "
22108 "expand up to 10 GB)."
22109 msgstr ""
22110
22111 #. type: =item
22112 #: ../resize/virt-resize.pod:104
22113 msgid "4. Create output disk"
22114 msgstr ""
22115
22116 #. type: textblock
22117 #: ../resize/virt-resize.pod:106
22118 msgid ""
22119 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22120 "to store the resized output disk."
22121 msgstr ""
22122
22123 #. type: textblock
22124 #: ../resize/virt-resize.pod:109
22125 msgid "To store the resized disk image in a file, create a file of a suitable size:"
22126 msgstr ""
22127
22128 #. type: verbatim
22129 #: ../resize/virt-resize.pod:112
22130 #, no-wrap
22131 msgid ""
22132 " # rm -f outdisk\n"
22133 " # truncate -s 10G outdisk\n"
22134 "\n"
22135 msgstr ""
22136
22137 #. type: textblock
22138 #: ../resize/virt-resize.pod:115
22139 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22140 msgstr ""
22141
22142 #. type: verbatim
22143 #: ../resize/virt-resize.pod:117
22144 #, no-wrap
22145 msgid ""
22146 " # lvcreate -L 10G -n lv_name vg_name\n"
22147 "\n"
22148 msgstr ""
22149
22150 #. type: textblock
22151 #: ../resize/virt-resize.pod:119
22152 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22153 msgstr ""
22154
22155 #. type: verbatim
22156 #: ../resize/virt-resize.pod:121
22157 #, no-wrap
22158 msgid ""
22159 " # virsh pool-list\n"
22160 " # virsh vol-create-as poolname newvol 10G\n"
22161 "\n"
22162 msgstr ""
22163
22164 #. type: =item
22165 #: ../resize/virt-resize.pod:124
22166 msgid "5. Resize"
22167 msgstr ""
22168
22169 #. type: textblock
22170 #: ../resize/virt-resize.pod:126
22171 msgid ""
22172 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22173 "file) and the output disk.  The output disk is the one created in the "
22174 "previous step."
22175 msgstr ""
22176
22177 #. type: verbatim
22178 #: ../resize/virt-resize.pod:130
22179 #, no-wrap
22180 msgid ""
22181 " # virt-resize indisk outdisk\n"
22182 "\n"
22183 msgstr ""
22184
22185 #. type: textblock
22186 #: ../resize/virt-resize.pod:132
22187 msgid ""
22188 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22189 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22190 "larger, then an extra, empty partition is created at the end of the disk "
22191 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22192 "error."
22193 msgstr ""
22194
22195 #. type: textblock
22196 #: ../resize/virt-resize.pod:138
22197 msgid ""
22198 "More realistically you'd want to expand existing partitions in the disk "
22199 "image by passing extra options (for the full list see the L</OPTIONS> "
22200 "section below)."
22201 msgstr ""
22202
22203 #. type: textblock
22204 #: ../resize/virt-resize.pod:142
22205 msgid ""
22206 "L</--expand> is the most useful option.  It expands the named partition "
22207 "within the disk to fill any extra space:"
22208 msgstr ""
22209
22210 #. type: verbatim
22211 #: ../resize/virt-resize.pod:145
22212 #, no-wrap
22213 msgid ""
22214 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22215 "\n"
22216 msgstr ""
22217
22218 #. type: textblock
22219 #: ../resize/virt-resize.pod:147
22220 msgid ""
22221 "(In this case, an extra partition is I<not> created at the end of the disk, "
22222 "because there will be no unused space)."
22223 msgstr ""
22224
22225 #. type: textblock
22226 #: ../resize/virt-resize.pod:150
22227 msgid ""
22228 "L</--resize> is the other commonly used option.  The following would "
22229 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22230 "rest of the available space:"
22231 msgstr ""
22232
22233 #. type: verbatim
22234 #: ../resize/virt-resize.pod:154
22235 #, no-wrap
22236 msgid ""
22237 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22238 "     indisk outdisk\n"
22239 "\n"
22240 msgstr ""
22241
22242 #. type: textblock
22243 #: ../resize/virt-resize.pod:157
22244 msgid ""
22245 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22246 "if virt-resize knows how, it will resize the contents, the equivalent of "
22247 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22248 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22249 "filesystems, so you would have to online resize them after booting the "
22250 "guest."
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../resize/virt-resize.pod:164
22255 msgid "Other options are covered below."
22256 msgstr ""
22257
22258 #. type: =item
22259 #: ../resize/virt-resize.pod:166
22260 msgid "6. Test"
22261 msgstr ""
22262
22263 #. type: textblock
22264 #: ../resize/virt-resize.pod:168
22265 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22266 msgstr ""
22267
22268 #. type: textblock
22269 #: ../resize/virt-resize.pod:170
22270 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22271 msgstr ""
22272
22273 #. type: verbatim
22274 #: ../resize/virt-resize.pod:172
22275 #, no-wrap
22276 msgid ""
22277 " # virsh edit guestname\n"
22278 "\n"
22279 msgstr ""
22280
22281 #. type: textblock
22282 #: ../resize/virt-resize.pod:174
22283 msgid ""
22284 "Change E<lt>source ...E<gt>, see "
22285 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
22286 msgstr ""
22287
22288 #. type: textblock
22289 #: ../resize/virt-resize.pod:177
22290 msgid "Then start up the domain with the new, resized disk:"
22291 msgstr ""
22292
22293 #. type: verbatim
22294 #: ../resize/virt-resize.pod:179
22295 #, no-wrap
22296 msgid ""
22297 " # virsh start guestname\n"
22298 "\n"
22299 msgstr ""
22300
22301 #. type: textblock
22302 #: ../resize/virt-resize.pod:181
22303 msgid ""
22304 "and check that it still works.  See also the L</NOTES> section below for "
22305 "additional information."
22306 msgstr ""
22307
22308 #. type: =item
22309 #: ../resize/virt-resize.pod:184
22310 msgid "7. Resize LVs etc inside the guest"
22311 msgstr ""
22312
22313 #. type: textblock
22314 #: ../resize/virt-resize.pod:186
22315 msgid "(This can also be done offline using L<guestfish(1)>)"
22316 msgstr ""
22317
22318 #. type: textblock
22319 #: ../resize/virt-resize.pod:188
22320 msgid ""
22321 "Once the guest has booted you should see the new space available, at least "
22322 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22323 "may need to resize LVs inside PVs, and also resize filesystem types that "
22324 "virt-resize does not know how to expand."
22325 msgstr ""
22326
22327 #. type: =head2
22328 #: ../resize/virt-resize.pod:195
22329 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22330 msgstr ""
22331
22332 #. type: textblock
22333 #: ../resize/virt-resize.pod:197
22334 msgid ""
22335 "Shrinking is somewhat more complex than expanding, and only an overview is "
22336 "given here."
22337 msgstr ""
22338
22339 #. type: textblock
22340 #: ../resize/virt-resize.pod:200
22341 msgid ""
22342 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22343 "filesystems).  The user has to shrink content before passing the disk image "
22344 "to virt-resize, and virt-resize will check that the content has been shrunk "
22345 "properly."
22346 msgstr ""
22347
22348 #. type: textblock
22349 #: ../resize/virt-resize.pod:205
22350 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22351 msgstr ""
22352
22353 #. type: textblock
22354 #: ../resize/virt-resize.pod:207
22355 msgid ""
22356 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22357 "steps 3 and 4 above to allocate a new disk image."
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../resize/virt-resize.pod:210
22362 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22363 msgstr ""
22364
22365 #. type: =head2
22366 #: ../resize/virt-resize.pod:213
22367 msgid "IGNORING OR DELETING PARTITIONS"
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../resize/virt-resize.pod:215
22372 msgid ""
22373 "virt-resize also gives a convenient way to ignore or delete partitions when "
22374 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22375 "up the copy where you don't care about the existing contents of a "
22376 "partition.  Deleting a partition removes it completely, but note that it "
22377 "also renumbers any partitions after the one which is deleted, which can "
22378 "leave some guests unbootable."
22379 msgstr ""
22380
22381 #. type: =head2
22382 #: ../resize/virt-resize.pod:222
22383 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../resize/virt-resize.pod:224
22388 msgid ""
22389 "If the input disk is in qcow2 format, then you may prefer that the output is "
22390 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22391 "the fly.  The output format is simply determined by the format of the empty "
22392 "output container that you provide.  Thus to create qcow2 output, use:"
22393 msgstr ""
22394
22395 #. type: verbatim
22396 #: ../resize/virt-resize.pod:230
22397 #, no-wrap
22398 msgid ""
22399 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22400 "\n"
22401 msgstr ""
22402
22403 #. type: textblock
22404 #: ../resize/virt-resize.pod:232
22405 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22406 msgstr ""
22407
22408 #. type: textblock
22409 #: ../resize/virt-resize.pod:234
22410 msgid "Similarly, to get non-sparse raw output use:"
22411 msgstr ""
22412
22413 #. type: verbatim
22414 #: ../resize/virt-resize.pod:236
22415 #, no-wrap
22416 msgid ""
22417 " fallocate -l size outdisk\n"
22418 "\n"
22419 msgstr ""
22420
22421 #. type: textblock
22422 #: ../resize/virt-resize.pod:238
22423 msgid ""
22424 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
22425 "if=/dev/zero of=outdisk bs=1M count=..>)"
22426 msgstr ""
22427
22428 #. type: textblock
22429 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
22430 msgid "Display help."
22431 msgstr ""
22432
22433 #. type: =item
22434 #: ../resize/virt-resize.pod:249
22435 msgid "B<--align-first auto>"
22436 msgstr ""
22437
22438 #. type: =item
22439 #: ../resize/virt-resize.pod:251
22440 msgid "B<--align-first never>"
22441 msgstr ""
22442
22443 #. type: =item
22444 #: ../resize/virt-resize.pod:253
22445 msgid "B<--align-first always>"
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../resize/virt-resize.pod:255
22450 msgid ""
22451 "Align the first partition for improved performance (see also the "
22452 "I<--alignment> option)."
22453 msgstr ""
22454
22455 #. type: textblock
22456 #: ../resize/virt-resize.pod:258
22457 msgid ""
22458 "The default is I<--align-first auto> which only aligns the first partition "
22459 "if it is safe to do so.  That is, only when we know how to fix the "
22460 "bootloader automatically, and at the moment that can only be done for "
22461 "Windows guests."
22462 msgstr ""
22463
22464 #. type: textblock
22465 #: ../resize/virt-resize.pod:263
22466 msgid ""
22467 "I<--align-first never> means we never move the first partition.  This is the "
22468 "safest option.  Try this if the guest does not boot after resizing."
22469 msgstr ""
22470
22471 #. type: textblock
22472 #: ../resize/virt-resize.pod:267
22473 msgid ""
22474 "I<--align-first always> means we always align the first partition (if it "
22475 "needs to be aligned).  For some guests this will break the bootloader, "
22476 "making the guest unbootable."
22477 msgstr ""
22478
22479 #. type: =item
22480 #: ../resize/virt-resize.pod:271
22481 msgid "B<--alignment N>"
22482 msgstr ""
22483
22484 #. type: textblock
22485 #: ../resize/virt-resize.pod:273
22486 msgid ""
22487 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
22488 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
22489 msgstr ""
22490
22491 #. type: textblock
22492 #: ../resize/virt-resize.pod:277
22493 msgid ""
22494 "Assuming 512 byte sector size inside the guest, here are some suitable "
22495 "values for this:"
22496 msgstr ""
22497
22498 #. type: =item
22499 #: ../resize/virt-resize.pod:282
22500 msgid "I<--alignment 1> (512 bytes)"
22501 msgstr ""
22502
22503 #. type: textblock
22504 #: ../resize/virt-resize.pod:284
22505 msgid ""
22506 "The partitions would be packed together as closely as possible, but would be "
22507 "completely unaligned.  In some cases this can cause very poor performance.  "
22508 "See L<virt-alignment-scan(1)> for further details."
22509 msgstr ""
22510
22511 #. type: =item
22512 #: ../resize/virt-resize.pod:288
22513 msgid "I<--alignment 8> (4K)"
22514 msgstr ""
22515
22516 #. type: textblock
22517 #: ../resize/virt-resize.pod:290
22518 msgid ""
22519 "This would be the minimum acceptable alignment for reasonable performance on "
22520 "modern hosts."
22521 msgstr ""
22522
22523 #. type: =item
22524 #: ../resize/virt-resize.pod:293
22525 msgid "I<--alignment 128> (64K)"
22526 msgstr ""
22527
22528 #. type: textblock
22529 #: ../resize/virt-resize.pod:295
22530 msgid ""
22531 "This alignment provides good performance when the host is using high end "
22532 "network storage."
22533 msgstr ""
22534
22535 #. type: =item
22536 #: ../resize/virt-resize.pod:298
22537 msgid "I<--alignment 2048> (1M)"
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../resize/virt-resize.pod:300
22542 msgid ""
22543 "This is the standard alignment used by all newly installed guests since "
22544 "around 2008."
22545 msgstr ""
22546
22547 #. type: =item
22548 #: ../resize/virt-resize.pod:305
22549 msgid "B<-d>"
22550 msgstr ""
22551
22552 #. type: =item
22553 #: ../resize/virt-resize.pod:307 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
22554 msgid "B<--debug>"
22555 msgstr ""
22556
22557 #. type: textblock
22558 #: ../resize/virt-resize.pod:309 ../tools/virt-win-reg.pl:122
22559 msgid "Enable debugging messages."
22560 msgstr ""
22561
22562 #. type: =item
22563 #: ../resize/virt-resize.pod:311
22564 msgid "B<--delete part>"
22565 msgstr ""
22566
22567 #. type: textblock
22568 #: ../resize/virt-resize.pod:313
22569 msgid ""
22570 "Delete the named partition.  It would be more accurate to describe this as "
22571 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22572 "the original disk image is left intact."
22573 msgstr ""
22574
22575 #. type: textblock
22576 #: ../resize/virt-resize.pod:317
22577 msgid ""
22578 "Note that when you delete a partition, then anything contained in the "
22579 "partition is also deleted.  Furthermore, this causes any partitions that "
22580 "come after to be I<renumbered>, which can easily make your guest unbootable."
22581 msgstr ""
22582
22583 #. type: textblock
22584 #: ../resize/virt-resize.pod:322 ../resize/virt-resize.pod:383 ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:145
22585 msgid "You can give this option multiple times."
22586 msgstr ""
22587
22588 #. type: =item
22589 #: ../resize/virt-resize.pod:324
22590 msgid "B<--expand part>"
22591 msgstr ""
22592
22593 #. type: textblock
22594 #: ../resize/virt-resize.pod:326
22595 msgid ""
22596 "Expand the named partition so it uses up all extra space (space left over "
22597 "after any other resize changes that you request have been done)."
22598 msgstr ""
22599
22600 #. type: textblock
22601 #: ../resize/virt-resize.pod:329
22602 msgid ""
22603 "If virt-resize knows how, it will expand the direct content of the "
22604 "partition.  For example, if the partition is an LVM PV, it will expand the "
22605 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22606 "content it doesn't know about alone."
22607 msgstr ""
22608
22609 #. type: textblock
22610 #: ../resize/virt-resize.pod:334
22611 msgid "Currently virt-resize can resize:"
22612 msgstr ""
22613
22614 #. type: textblock
22615 #: ../resize/virt-resize.pod:340
22616 msgid "ext2, ext3 and ext4 filesystems."
22617 msgstr ""
22618
22619 #. type: textblock
22620 #: ../resize/virt-resize.pod:344
22621 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22622 msgstr ""
22623
22624 #. type: textblock
22625 #: ../resize/virt-resize.pod:346
22626 msgid ""
22627 "The filesystem must have been shut down consistently last time it was used.  "
22628 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22629 "consistency check, so at the first boot after resizing Windows will check "
22630 "the disk."
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../resize/virt-resize.pod:353
22635 msgid ""
22636 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22637 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22638 "resize LVs as desired after boot."
22639 msgstr ""
22640
22641 #. type: textblock
22642 #: ../resize/virt-resize.pod:359
22643 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22644 msgstr ""
22645
22646 #. type: textblock
22647 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:538
22648 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22649 msgstr ""
22650
22651 #. type: =item
22652 #: ../resize/virt-resize.pod:365 ../sparsify/virt-sparsify.pod:125 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
22653 msgid "B<--format> raw"
22654 msgstr ""
22655
22656 #. type: textblock
22657 #: ../resize/virt-resize.pod:367 ../sparsify/virt-sparsify.pod:129
22658 msgid ""
22659 "Specify the format of the input disk image.  If this flag is not given then "
22660 "it is auto-detected from the image itself."
22661 msgstr ""
22662
22663 #. type: textblock
22664 #: ../resize/virt-resize.pod:373
22665 msgid ""
22666 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22667 "AND NON-SPARSE RAW FORMATS>."
22668 msgstr ""
22669
22670 #. type: =item
22671 #: ../resize/virt-resize.pod:376
22672 msgid "B<--ignore part>"
22673 msgstr ""
22674
22675 #. type: textblock
22676 #: ../resize/virt-resize.pod:378
22677 msgid ""
22678 "Ignore the named partition.  Effectively this means the partition is "
22679 "allocated on the destination disk, but the content is not copied across from "
22680 "the source disk.  The content of the partition will be blank (all zero "
22681 "bytes)."
22682 msgstr ""
22683
22684 #. type: =item
22685 #: ../resize/virt-resize.pod:385
22686 msgid "B<--LV-expand logvol>"
22687 msgstr ""
22688
22689 #. type: textblock
22690 #: ../resize/virt-resize.pod:387
22691 msgid ""
22692 "This takes the logical volume and, as a final step, expands it to fill all "
22693 "the space available in its volume group.  A typical usage, assuming a Linux "
22694 "guest with a single PV C</dev/sda2> and a root device called "
22695 "C</dev/vg_guest/lv_root> would be:"
22696 msgstr ""
22697
22698 #. type: verbatim
22699 #: ../resize/virt-resize.pod:392
22700 #, no-wrap
22701 msgid ""
22702 " virt-resize indisk outdisk \\\n"
22703 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22704 "\n"
22705 msgstr ""
22706
22707 #. type: textblock
22708 #: ../resize/virt-resize.pod:395
22709 msgid ""
22710 "This would first expand the partition (and PV), and then expand the root "
22711 "device to fill the extra space in the PV."
22712 msgstr ""
22713
22714 #. type: textblock
22715 #: ../resize/virt-resize.pod:398
22716 msgid ""
22717 "The contents of the LV are also resized if virt-resize knows how to do "
22718 "that.  You can stop virt-resize from trying to expand the content by using "
22719 "the option I<--no-expand-content>."
22720 msgstr ""
22721
22722 #. type: textblock
22723 #: ../resize/virt-resize.pod:402
22724 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22725 msgstr ""
22726
22727 #. type: textblock
22728 #: ../resize/virt-resize.pod:404
22729 msgid ""
22730 "You can give this option multiple times, I<but> it doesn't make sense to do "
22731 "this unless the logical volumes you specify are all in different volume "
22732 "groups."
22733 msgstr ""
22734
22735 #. type: =item
22736 #: ../resize/virt-resize.pod:408 ../sparsify/virt-sparsify.pod:147
22737 msgid "B<--machine-readable>"
22738 msgstr ""
22739
22740 #. type: textblock
22741 #: ../resize/virt-resize.pod:410 ../sparsify/virt-sparsify.pod:149
22742 msgid ""
22743 "This option is used to make the output more machine friendly when being "
22744 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22745 msgstr ""
22746
22747 #. type: =item
22748 #: ../resize/virt-resize.pod:416
22749 msgid "B<--dryrun>"
22750 msgstr ""
22751
22752 #. type: textblock
22753 #: ../resize/virt-resize.pod:418
22754 msgid "Print a summary of what would be done, but don't do anything."
22755 msgstr ""
22756
22757 #. type: =item
22758 #: ../resize/virt-resize.pod:420
22759 msgid "B<--no-copy-boot-loader>"
22760 msgstr ""
22761
22762 #. type: textblock
22763 #: ../resize/virt-resize.pod:422
22764 msgid ""
22765 "By default, virt-resize copies over some sectors at the start of the disk "
22766 "(up to the beginning of the first partition).  Commonly these sectors "
22767 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22768 "in order for the guest to boot correctly."
22769 msgstr ""
22770
22771 #. type: textblock
22772 #: ../resize/virt-resize.pod:427
22773 msgid ""
22774 "If you specify this flag, then this initial copy is not done.  You may need "
22775 "to reinstall the boot loader in this case."
22776 msgstr ""
22777
22778 #. type: =item
22779 #: ../resize/virt-resize.pod:430
22780 msgid "B<--no-extra-partition>"
22781 msgstr ""
22782
22783 #. type: textblock
22784 #: ../resize/virt-resize.pod:432
22785 msgid ""
22786 "By default, virt-resize creates an extra partition if there is any extra, "
22787 "unused space after all resizing has happened.  Use this option to prevent "
22788 "the extra partition from being created.  If you do this then the extra space "
22789 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22790 "tool in the guest."
22791 msgstr ""
22792
22793 #. type: textblock
22794 #: ../resize/virt-resize.pod:438
22795 msgid ""
22796 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22797 "will be created."
22798 msgstr ""
22799
22800 #. type: =item
22801 #: ../resize/virt-resize.pod:441
22802 msgid "B<--no-expand-content>"
22803 msgstr ""
22804
22805 #. type: textblock
22806 #: ../resize/virt-resize.pod:443
22807 msgid ""
22808 "By default, virt-resize will try to expand the direct contents of "
22809 "partitions, if it knows how (see I<--expand> option above)."
22810 msgstr ""
22811
22812 #. type: textblock
22813 #: ../resize/virt-resize.pod:446
22814 msgid ""
22815 "If you give the I<--no-expand-content> option then virt-resize will not "
22816 "attempt this."
22817 msgstr ""
22818
22819 #. type: =item
22820 #: ../resize/virt-resize.pod:449
22821 msgid "B<--ntfsresize-force>"
22822 msgstr ""
22823
22824 #. type: textblock
22825 #: ../resize/virt-resize.pod:451
22826 msgid ""
22827 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22828 "the NTFS disk is marked as needing a consistency check.  You have to use "
22829 "this option if you want to resize a Windows guest multiple times without "
22830 "booting into Windows between each resize."
22831 msgstr ""
22832
22833 #. type: =item
22834 #: ../resize/virt-resize.pod:457
22835 msgid "B<--output-format> raw"
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../resize/virt-resize.pod:459
22840 msgid ""
22841 "Specify the format of the output disk image.  If this flag is not given then "
22842 "it is auto-detected from the image itself."
22843 msgstr ""
22844
22845 #. type: textblock
22846 #: ../resize/virt-resize.pod:465
22847 msgid ""
22848 "Note that this option I<does not create> the output format.  This option "
22849 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22850 "need to create the output disk with the right format.  See L</QCOW2 AND "
22851 "NON-SPARSE RAW FORMATS>."
22852 msgstr ""
22853
22854 #. type: textblock
22855 #: ../resize/virt-resize.pod:474
22856 msgid "Don't print the summary."
22857 msgstr ""
22858
22859 #. type: =item
22860 #: ../resize/virt-resize.pod:476
22861 msgid "B<--resize part=size>"
22862 msgstr ""
22863
22864 #. type: textblock
22865 #: ../resize/virt-resize.pod:478
22866 msgid ""
22867 "Resize the named partition (expanding or shrinking it) so that it has the "
22868 "given size."
22869 msgstr ""
22870
22871 #. type: textblock
22872 #: ../resize/virt-resize.pod:481
22873 msgid ""
22874 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22875 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22876 "size; or as a relative number or percentage.  For example:"
22877 msgstr ""
22878
22879 #. type: verbatim
22880 #: ../resize/virt-resize.pod:487
22881 #, no-wrap
22882 msgid ""
22883 " --resize /dev/sda2=10G\n"
22884 "\n"
22885 msgstr ""
22886
22887 #. type: verbatim
22888 #: ../resize/virt-resize.pod:489
22889 #, no-wrap
22890 msgid ""
22891 " --resize /dev/sda4=90%\n"
22892 "\n"
22893 msgstr ""
22894
22895 #. type: verbatim
22896 #: ../resize/virt-resize.pod:491
22897 #, no-wrap
22898 msgid ""
22899 " --resize /dev/sda2=+1G\n"
22900 "\n"
22901 msgstr ""
22902
22903 #. type: verbatim
22904 #: ../resize/virt-resize.pod:493
22905 #, no-wrap
22906 msgid ""
22907 " --resize /dev/sda2=-200M\n"
22908 "\n"
22909 msgstr ""
22910
22911 #. type: verbatim
22912 #: ../resize/virt-resize.pod:495
22913 #, no-wrap
22914 msgid ""
22915 " --resize /dev/sda1=+128K\n"
22916 "\n"
22917 msgstr ""
22918
22919 #. type: verbatim
22920 #: ../resize/virt-resize.pod:497
22921 #, no-wrap
22922 msgid ""
22923 " --resize /dev/sda1=+10%\n"
22924 "\n"
22925 msgstr ""
22926
22927 #. type: verbatim
22928 #: ../resize/virt-resize.pod:499
22929 #, no-wrap
22930 msgid ""
22931 " --resize /dev/sda1=-10%\n"
22932 "\n"
22933 msgstr ""
22934
22935 #. type: textblock
22936 #: ../resize/virt-resize.pod:501
22937 msgid ""
22938 "You can increase the size of any partition.  Virt-resize will expand the "
22939 "direct content of the partition if it knows how (see I<--expand> below)."
22940 msgstr ""
22941
22942 #. type: textblock
22943 #: ../resize/virt-resize.pod:505
22944 msgid ""
22945 "You can only I<decrease> the size of partitions that contain filesystems or "
22946 "PVs which have already been shrunk.  Virt-resize will check this has been "
22947 "done before proceeding, or else will print an error (see also "
22948 "I<--resize-force>)."
22949 msgstr ""
22950
22951 #. type: =item
22952 #: ../resize/virt-resize.pod:512
22953 msgid "B<--resize-force part=size>"
22954 msgstr ""
22955
22956 #. type: textblock
22957 #: ../resize/virt-resize.pod:514
22958 msgid ""
22959 "This is the same as I<--resize> except that it will let you decrease the "
22960 "size of any partition.  Generally this means you will lose any data which "
22961 "was at the end of the partition you shrink, but you may not care about that "
22962 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22963 "as a swap partition)."
22964 msgstr ""
22965
22966 #. type: textblock
22967 #: ../resize/virt-resize.pod:520
22968 msgid "See also the I<--ignore> option."
22969 msgstr ""
22970
22971 #. type: =item
22972 #: ../resize/virt-resize.pod:522
22973 msgid "B<--shrink part>"
22974 msgstr ""
22975
22976 #. type: textblock
22977 #: ../resize/virt-resize.pod:524
22978 msgid ""
22979 "Shrink the named partition until the overall disk image fits in the "
22980 "destination.  The named partition B<must> contain a filesystem or PV which "
22981 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22982 "online tools).  Virt-resize will check this and give an error if it has not "
22983 "been done."
22984 msgstr ""
22985
22986 #. type: textblock
22987 #: ../resize/virt-resize.pod:530
22988 msgid ""
22989 "The amount by which the overall disk must be shrunk (after carrying out all "
22990 "other operations requested by the user) is called the \"deficit\".  For "
22991 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22992 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22993 "would give an error unless the user specified a partition to shrink and that "
22994 "partition had more than a gigabyte of free space."
22995 msgstr ""
22996
22997 #. type: =head1
22998 #: ../resize/virt-resize.pod:548 ../sparsify/virt-sparsify.pod:177
22999 msgid "MACHINE READABLE OUTPUT"
23000 msgstr ""
23001
23002 #. type: textblock
23003 #: ../resize/virt-resize.pod:550
23004 msgid ""
23005 "The I<--machine-readable> option can be used to make the output more machine "
23006 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23007 "etc."
23008 msgstr ""
23009
23010 #. type: textblock
23011 #: ../resize/virt-resize.pod:554 ../sparsify/virt-sparsify.pod:183
23012 msgid "There are two ways to use this option."
23013 msgstr ""
23014
23015 #. type: textblock
23016 #: ../resize/virt-resize.pod:556
23017 msgid ""
23018 "Firstly use the option on its own to query the capabilities of the "
23019 "virt-resize binary.  Typical output looks like this:"
23020 msgstr ""
23021
23022 #. type: verbatim
23023 #: ../resize/virt-resize.pod:559
23024 #, no-wrap
23025 msgid ""
23026 " $ virt-resize --machine-readable\n"
23027 " virt-resize\n"
23028 " ntfsresize-force\n"
23029 " 32bitok\n"
23030 " ntfs\n"
23031 " btrfs\n"
23032 "\n"
23033 msgstr ""
23034
23035 #. type: textblock
23036 #: ../resize/virt-resize.pod:566 ../sparsify/virt-sparsify.pod:193
23037 msgid ""
23038 "A list of features is printed, one per line, and the program exits with "
23039 "status 0."
23040 msgstr ""
23041
23042 #. type: textblock
23043 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:196
23044 msgid ""
23045 "Secondly use the option in conjunction with other options to make the "
23046 "regular program output more machine friendly."
23047 msgstr ""
23048
23049 #. type: textblock
23050 #: ../resize/virt-resize.pod:572 ../sparsify/virt-sparsify.pod:199
23051 msgid "At the moment this means:"
23052 msgstr ""
23053
23054 #. type: textblock
23055 #: ../resize/virt-resize.pod:578 ../sparsify/virt-sparsify.pod:205
23056 msgid ""
23057 "Progress bar messages can be parsed from stdout by looking for this regular "
23058 "expression:"
23059 msgstr ""
23060
23061 #. type: verbatim
23062 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:208
23063 #, no-wrap
23064 msgid ""
23065 " ^[0-9]+/[0-9]+$\n"
23066 "\n"
23067 msgstr ""
23068
23069 #. type: textblock
23070 #: ../resize/virt-resize.pod:585 ../sparsify/virt-sparsify.pod:212
23071 msgid ""
23072 "The calling program should treat messages sent to stdout (except for "
23073 "progress bar messages) as status messages.  They can be logged and/or "
23074 "displayed to the user."
23075 msgstr ""
23076
23077 #. type: textblock
23078 #: ../resize/virt-resize.pod:591
23079 msgid ""
23080 "The calling program should treat messages sent to stderr as error messages.  "
23081 "In addition, virt-resize exits with a non-zero status code if there was a "
23082 "fatal error."
23083 msgstr ""
23084
23085 #. type: textblock
23086 #: ../resize/virt-resize.pod:597
23087 msgid ""
23088 "Versions of the program prior to 1.13.9 did not support the "
23089 "I<--machine-readable> option and will return an error."
23090 msgstr ""
23091
23092 #. type: =head2
23093 #: ../resize/virt-resize.pod:602
23094 msgid "\"Partition 1 does not end on cylinder boundary.\""
23095 msgstr ""
23096
23097 #. type: textblock
23098 #: ../resize/virt-resize.pod:604
23099 msgid ""
23100 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
23101 "I<--alignment> parameter).  Usually this means the partitions will not be "
23102 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
23103 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
23104 "drives.  Alignment of partitions to cylinders is not required by any modern "
23105 "operating system."
23106 msgstr ""
23107
23108 #. type: =head2
23109 #: ../resize/virt-resize.pod:611
23110 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../resize/virt-resize.pod:613
23115 msgid ""
23116 "In Windows Vista and later versions, Microsoft switched to using a separate "
23117 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23118 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
23119 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
23120 "the second partition (ie. C: drive)  should work."
23121 msgstr ""
23122
23123 #. type: textblock
23124 #: ../resize/virt-resize.pod:620
23125 msgid ""
23126 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23127 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23128 "it find errors) is nothing to worry about."
23129 msgstr ""
23130
23131 #. type: =head2
23132 #: ../resize/virt-resize.pod:624
23133 msgid "GUEST BOOT STUCK AT \"GRUB\""
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../resize/virt-resize.pod:626
23138 msgid ""
23139 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23140 "printing C<GRUB> on the console, try reinstalling grub."
23141 msgstr ""
23142
23143 #. type: verbatim
23144 #: ../resize/virt-resize.pod:629
23145 #, no-wrap
23146 msgid ""
23147 " guestfish -i -a newdisk\n"
23148 " ><fs> cat /boot/grub/device.map\n"
23149 " # check the contents of this file are sensible or\n"
23150 " # edit the file if necessary\n"
23151 " ><fs> grub-install / /dev/vda\n"
23152 " ><fs> exit\n"
23153 "\n"
23154 msgstr ""
23155
23156 #. type: textblock
23157 #: ../resize/virt-resize.pod:636
23158 msgid ""
23159 "For more flexible guest reconfiguration, including if you need to specify "
23160 "other parameters to grub-install, use L<virt-rescue(1)>."
23161 msgstr ""
23162
23163 #. type: =head1
23164 #: ../resize/virt-resize.pod:639
23165 msgid "ALTERNATIVE TOOLS"
23166 msgstr ""
23167
23168 #. type: textblock
23169 #: ../resize/virt-resize.pod:641
23170 msgid ""
23171 "There are several proprietary tools for resizing partitions.  We won't "
23172 "mention any here."
23173 msgstr ""
23174
23175 #. type: textblock
23176 #: ../resize/virt-resize.pod:644
23177 msgid ""
23178 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23179 "operations on disk images.  They can resize and move partitions, but I don't "
23180 "think they can do anything with the contents, and they certainly don't "
23181 "understand LVM."
23182 msgstr ""
23183
23184 #. type: textblock
23185 #: ../resize/virt-resize.pod:649
23186 msgid ""
23187 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23188 "but at a much lower level.  You will probably end up hand-calculating sector "
23189 "offsets, which is something that virt-resize was designed to avoid.  If you "
23190 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23191 "I<--debug> flag."
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../resize/virt-resize.pod:669
23196 msgid ""
23197 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
23198 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
23199 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
23200 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
23201 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../ruby/examples/guestfs-ruby.pod:5
23206 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23207 msgstr ""
23208
23209 #. type: verbatim
23210 #: ../ruby/examples/guestfs-ruby.pod:9
23211 #, no-wrap
23212 msgid ""
23213 " require 'guestfs'\n"
23214 " g = Guestfs::Guestfs.new()\n"
23215 " g.add_drive_opts(\"disk.img\",\n"
23216 "                  :readonly => 1, :format => \"raw\")\n"
23217 " g.launch()\n"
23218 "\n"
23219 msgstr ""
23220
23221 #. type: textblock
23222 #: ../ruby/examples/guestfs-ruby.pod:17
23223 msgid ""
23224 "This manual page documents how to call libguestfs from the Ruby programming "
23225 "language.  This page just documents the differences from the C API and gives "
23226 "some examples.  If you are not familiar with using libguestfs, you also need "
23227 "to read L<guestfs(3)>."
23228 msgstr ""
23229
23230 #. type: textblock
23231 #: ../ruby/examples/guestfs-ruby.pod:24
23232 msgid ""
23233 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23234 "This has a single parameter which is the error message (a string)."
23235 msgstr ""
23236
23237 #. type: textblock
23238 #: ../ruby/examples/guestfs-ruby.pod:38
23239 msgid ""
23240 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
23241 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
23242 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23243 msgstr ""
23244
23245 #. type: textblock
23246 #: ../sparsify/virt-sparsify.pod:5
23247 msgid "virt-sparsify - Make a virtual machine disk sparse"
23248 msgstr ""
23249
23250 #. type: verbatim
23251 #: ../sparsify/virt-sparsify.pod:9
23252 #, no-wrap
23253 msgid ""
23254 " virt-sparsify [--options] indisk outdisk\n"
23255 "\n"
23256 msgstr ""
23257
23258 #. type: textblock
23259 #: ../sparsify/virt-sparsify.pod:13
23260 msgid ""
23261 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23262 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23263 "the disk image can be converted back to free space on the host."
23264 msgstr ""
23265
23266 #. type: textblock
23267 #: ../sparsify/virt-sparsify.pod:18
23268 msgid ""
23269 "Virt-sparsify can locate and sparsify free space in most filesystems "
23270 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23271 msgstr ""
23272
23273 #. type: textblock
23274 #: ../sparsify/virt-sparsify.pod:21
23275 msgid ""
23276 "Virt-sparsify can also convert between some disk formats, for example "
23277 "converting a raw disk image to a thin-provisioned qcow2 image."
23278 msgstr ""
23279
23280 #. type: textblock
23281 #: ../sparsify/virt-sparsify.pod:24
23282 msgid ""
23283 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23284 "machines.  If a virtual machine has more than one attached disk, you must "
23285 "sparsify each one separately."
23286 msgstr ""
23287
23288 #. type: =head2
23289 #: ../sparsify/virt-sparsify.pod:28
23290 msgid "IMPORTANT LIMITATIONS"
23291 msgstr ""
23292
23293 #. type: textblock
23294 #: ../sparsify/virt-sparsify.pod:34
23295 msgid ""
23296 "Virt-sparsify does not do in-place modifications.  It copies from a source "
23297 "image to a destination image, leaving the source unchanged.  I<Check that "
23298 "the sparsification was successful before deleting the source image>."
23299 msgstr ""
23300
23301 #. type: textblock
23302 #: ../sparsify/virt-sparsify.pod:41
23303 msgid "The virtual machine I<must be shut down> before using this tool."
23304 msgstr ""
23305
23306 #. type: textblock
23307 #: ../sparsify/virt-sparsify.pod:45
23308 msgid ""
23309 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23310 "(1 temporary copy + 1 destination image).  This is in the worst case and "
23311 "usually much less space is required."
23312 msgstr ""
23313
23314 #. type: textblock
23315 #: ../sparsify/virt-sparsify.pod:51
23316 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
23317 msgstr ""
23318
23319 #. type: textblock
23320 #: ../sparsify/virt-sparsify.pod:56
23321 msgid "Virt-sparsify cannot handle encrypted disks."
23322 msgstr ""
23323
23324 #. type: textblock
23325 #: ../sparsify/virt-sparsify.pod:60
23326 msgid ""
23327 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
23328 "this space is often used for critical items like bootloaders so it's not "
23329 "really unused."
23330 msgstr ""
23331
23332 #. type: textblock
23333 #: ../sparsify/virt-sparsify.pod:66
23334 msgid ""
23335 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
23336 "to do this unless we can be sure there is no hibernation data, so at the "
23337 "moment swap partitions are ignored."
23338 msgstr ""
23339
23340 #. type: textblock
23341 #: ../sparsify/virt-sparsify.pod:72
23342 msgid ""
23343 "You may also want to read the manual pages for the associated tools "
23344 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
23345 msgstr ""
23346
23347 #. type: textblock
23348 #: ../sparsify/virt-sparsify.pod:77
23349 msgid "Typical usage is:"
23350 msgstr ""
23351
23352 #. type: verbatim
23353 #: ../sparsify/virt-sparsify.pod:79
23354 #, no-wrap
23355 msgid ""
23356 " virt-sparsify indisk outdisk\n"
23357 "\n"
23358 msgstr ""
23359
23360 #. type: textblock
23361 #: ../sparsify/virt-sparsify.pod:81
23362 msgid ""
23363 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
23364 "is created, or overwritten if it already exists.  The format of the input "
23365 "disk is detected (eg. qcow2) and the same format is used for the output "
23366 "disk."
23367 msgstr ""
23368
23369 #. type: textblock
23370 #: ../sparsify/virt-sparsify.pod:86
23371 msgid "To convert between formats, use the I<--convert> option:"
23372 msgstr ""
23373
23374 #. type: verbatim
23375 #: ../sparsify/virt-sparsify.pod:88
23376 #, no-wrap
23377 msgid ""
23378 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
23379 "\n"
23380 msgstr ""
23381
23382 #. type: textblock
23383 #: ../sparsify/virt-sparsify.pod:90
23384 msgid ""
23385 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
23386 "can find within the source disk image.  You can get it to ignore (don't zero "
23387 "free space on) certain filesystems by doing:"
23388 msgstr ""
23389
23390 #. type: verbatim
23391 #: ../sparsify/virt-sparsify.pod:94
23392 #, no-wrap
23393 msgid ""
23394 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
23395 "\n"
23396 msgstr ""
23397
23398 #. type: textblock
23399 #: ../sparsify/virt-sparsify.pod:96
23400 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
23401 msgstr ""
23402
23403 #. type: =item
23404 #: ../sparsify/virt-sparsify.pod:107
23405 msgid "B<--convert> raw"
23406 msgstr ""
23407
23408 #. type: =item
23409 #: ../sparsify/virt-sparsify.pod:109
23410 msgid "B<--convert> qcow2"
23411 msgstr ""
23412
23413 #. type: =item
23414 #: ../sparsify/virt-sparsify.pod:111
23415 msgid "B<--convert> [other formats]"
23416 msgstr ""
23417
23418 #. type: textblock
23419 #: ../sparsify/virt-sparsify.pod:113
23420 msgid ""
23421 "Use C<output-format> as the format for the destination image.  If this is "
23422 "not specified, then the input format is used."
23423 msgstr ""
23424
23425 #. type: textblock
23426 #: ../sparsify/virt-sparsify.pod:116
23427 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
23428 msgstr ""
23429
23430 #. type: textblock
23431 #: ../sparsify/virt-sparsify.pod:118
23432 msgid ""
23433 "You can also use any format supported by the L<qemu-img(1)> program, "
23434 "eg. C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
23435 msgstr ""
23436
23437 #. type: textblock
23438 #: ../sparsify/virt-sparsify.pod:122
23439 msgid ""
23440 "Specifying the I<--convert> option is usually a good idea, because then "
23441 "virt-sparsify doesn't need to try to guess the input format."
23442 msgstr ""
23443
23444 #. type: =item
23445 #: ../sparsify/virt-sparsify.pod:127
23446 msgid "B<--format> qcow2"
23447 msgstr ""
23448
23449 #. type: =item
23450 #: ../sparsify/virt-sparsify.pod:135
23451 msgid "B<--ignore> filesystem"
23452 msgstr ""
23453
23454 #. type: =item
23455 #: ../sparsify/virt-sparsify.pod:137
23456 msgid "B<--ignore> volgroup"
23457 msgstr ""
23458
23459 #. type: textblock
23460 #: ../sparsify/virt-sparsify.pod:139
23461 msgid ""
23462 "Ignore the named filesystem.  Free space on the filesystem will not be "
23463 "zeroed, but existing blocks of zeroes will still be sparsified."
23464 msgstr ""
23465
23466 #. type: textblock
23467 #: ../sparsify/virt-sparsify.pod:142
23468 msgid ""
23469 "In the second form, this ignores the named volume group.  Use the volume "
23470 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
23471 msgstr ""
23472
23473 #. type: textblock
23474 #: ../sparsify/virt-sparsify.pod:157
23475 msgid "This disables progress bars and other unnecessary output."
23476 msgstr ""
23477
23478 #. type: textblock
23479 #: ../sparsify/virt-sparsify.pod:179
23480 msgid ""
23481 "The I<--machine-readable> option can be used to make the output more machine "
23482 "friendly, which is useful when calling virt-sparsify from other programs, "
23483 "GUIs etc."
23484 msgstr ""
23485
23486 #. type: textblock
23487 #: ../sparsify/virt-sparsify.pod:185
23488 msgid ""
23489 "Firstly use the option on its own to query the capabilities of the "
23490 "virt-sparsify binary.  Typical output looks like this:"
23491 msgstr ""
23492
23493 #. type: verbatim
23494 #: ../sparsify/virt-sparsify.pod:188
23495 #, no-wrap
23496 msgid ""
23497 " $ virt-sparsify --machine-readable\n"
23498 " virt-sparsify\n"
23499 " ntfs\n"
23500 " btrfs\n"
23501 "\n"
23502 msgstr ""
23503
23504 #. type: textblock
23505 #: ../sparsify/virt-sparsify.pod:218
23506 msgid ""
23507 "The calling program should treat messages sent to stderr as error messages.  "
23508 "In addition, virt-sparsify exits with a non-zero status code if there was a "
23509 "fatal error."
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../sparsify/virt-sparsify.pod:224
23514 msgid ""
23515 "All versions of virt-sparsify have supported the I<--machine-readable> "
23516 "option."
23517 msgstr ""
23518
23519 #. type: textblock
23520 #: ../sparsify/virt-sparsify.pod:238
23521 msgid ""
23522 "Location of the temporary directory used for the potentially large temporary "
23523 "overlay file."
23524 msgstr ""
23525
23526 #. type: textblock
23527 #: ../sparsify/virt-sparsify.pod:241
23528 msgid ""
23529 "You should ensure there is enough free space in the worst case for a full "
23530 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
23531 "to another directory that has enough space."
23532 msgstr ""
23533
23534 #. type: textblock
23535 #: ../sparsify/virt-sparsify.pod:245
23536 msgid "This defaults to C</tmp>."
23537 msgstr ""
23538
23539 #. type: textblock
23540 #: ../sparsify/virt-sparsify.pod:249
23541 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
23542 msgstr ""
23543
23544 #. type: textblock
23545 #: ../sparsify/virt-sparsify.pod:253
23546 msgid ""
23547 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
23548 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
23549 "L<qemu-img(1)>, L<http://libguestfs.org/>."
23550 msgstr ""
23551
23552 #. type: =head2
23553 #: ../src/guestfs-actions.pod:1
23554 msgid "guestfs_add_cdrom"
23555 msgstr ""
23556
23557 #. type: verbatim
23558 #: ../src/guestfs-actions.pod:3
23559 #, no-wrap
23560 msgid ""
23561 " int\n"
23562 " guestfs_add_cdrom (guestfs_h *g,\n"
23563 "                    const char *filename);\n"
23564 "\n"
23565 msgstr ""
23566
23567 #. type: textblock
23568 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276
23569 msgid ""
23570 "I<This function is deprecated.> In new code, use the "
23571 "L</guestfs_add_drive_opts> call instead."
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../src/guestfs-actions.pod:24
23576 msgid ""
23577 "This call checks for the existence of C<filename>.  This stops you from "
23578 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23579 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23580 "instead."
23581 msgstr ""
23582
23583 #. type: textblock
23584 #: ../src/guestfs-actions.pod:31
23585 msgid ""
23586 "If you just want to add an ISO file (often you use this as an efficient way "
23587 "to transfer large files into the guest), then you should probably use "
23588 "C<guestfs_add_drive_ro> instead."
23589 msgstr ""
23590
23591 #. type: textblock
23592 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140 ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244 ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286 ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313 ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512 ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558 ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658 ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687 ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804 ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090 ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303 ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336 ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426 ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482 ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637 ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640 ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049 ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425 ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454 ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699 ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760 ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938 ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049 ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137 ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329 ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622 ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228 ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329 ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584 ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721 ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784 ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045 ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080 ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106 ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134 ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328 ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383 ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414 ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684 ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838 ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978 ../src/guestfs-actions.pod:8007
23593 msgid "This function returns 0 on success or -1 on error."
23594 msgstr ""
23595
23596 #. type: textblock
23597 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102 ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325 ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645 ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261 ../src/guestfs-actions.pod:7784
23598 msgid "(Added in 0.3)"
23599 msgstr ""
23600
23601 #. type: =head2
23602 #: ../src/guestfs-actions.pod:41
23603 msgid "guestfs_add_domain"
23604 msgstr ""
23605
23606 #. type: verbatim
23607 #: ../src/guestfs-actions.pod:43
23608 #, no-wrap
23609 msgid ""
23610 " int\n"
23611 " guestfs_add_domain (guestfs_h *g,\n"
23612 "                     const char *dom,\n"
23613 "                     ...);\n"
23614 "\n"
23615 msgstr ""
23616
23617 #. type: textblock
23618 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123 ../src/guestfs-actions.pod:5340
23619 msgid ""
23620 "You may supply a list of optional arguments to this call.  Use zero or more "
23621 "of the following pairs of parameters, and terminate the list with C<-1> on "
23622 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23623 msgstr ""
23624
23625 #. type: verbatim
23626 #: ../src/guestfs-actions.pod:53
23627 #, no-wrap
23628 msgid ""
23629 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23630 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23631 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23632 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23633 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23634 "\n"
23635 msgstr ""
23636
23637 #. type: textblock
23638 #: ../src/guestfs-actions.pod:59
23639 msgid ""
23640 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23641 "It works by connecting to libvirt, requesting the domain and domain XML from "
23642 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23643 "one."
23644 msgstr ""
23645
23646 #. type: textblock
23647 #: ../src/guestfs-actions.pod:94
23648 msgid ""
23649 "The other optional parameters are passed directly through to "
23650 "C<guestfs_add_drive_opts>."
23651 msgstr ""
23652
23653 #. type: textblock
23654 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356 ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704 ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753 ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502 ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061 ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223 ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289 ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627 ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129 ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519 ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795 ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
23655 msgid "On error this function returns -1."
23656 msgstr ""
23657
23658 #. type: textblock
23659 #: ../src/guestfs-actions.pod:99
23660 msgid "(Added in 1.7.4)"
23661 msgstr ""
23662
23663 #. type: =head2
23664 #: ../src/guestfs-actions.pod:101
23665 msgid "guestfs_add_domain_va"
23666 msgstr ""
23667
23668 #. type: verbatim
23669 #: ../src/guestfs-actions.pod:103
23670 #, no-wrap
23671 msgid ""
23672 " int\n"
23673 " guestfs_add_domain_va (guestfs_h *g,\n"
23674 "                        const char *dom,\n"
23675 "                        va_list args);\n"
23676 "\n"
23677 msgstr ""
23678
23679 #. type: textblock
23680 #: ../src/guestfs-actions.pod:108
23681 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23682 msgstr ""
23683
23684 #. type: textblock
23685 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231 ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893 ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208 ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267 ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089 ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
23686 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23687 msgstr ""
23688
23689 #. type: =head2
23690 #: ../src/guestfs-actions.pod:112
23691 msgid "guestfs_add_domain_argv"
23692 msgstr ""
23693
23694 #. type: verbatim
23695 #: ../src/guestfs-actions.pod:114
23696 #, no-wrap
23697 msgid ""
23698 " int\n"
23699 " guestfs_add_domain_argv (guestfs_h *g,\n"
23700 "                          const char *dom,\n"
23701 "                          const struct guestfs_add_domain_argv *optargs);\n"
23702 "\n"
23703 msgstr ""
23704
23705 #. type: textblock
23706 #: ../src/guestfs-actions.pod:119
23707 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23708 msgstr ""
23709
23710 #. type: =head2
23711 #: ../src/guestfs-actions.pod:123
23712 msgid "guestfs_add_drive"
23713 msgstr ""
23714
23715 #. type: verbatim
23716 #: ../src/guestfs-actions.pod:125
23717 #, no-wrap
23718 msgid ""
23719 " int\n"
23720 " guestfs_add_drive (guestfs_h *g,\n"
23721 "                    const char *filename);\n"
23722 "\n"
23723 msgstr ""
23724
23725 #. type: textblock
23726 #: ../src/guestfs-actions.pod:129
23727 msgid ""
23728 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23729 "optional parameters, so the disk is added writable, with the format being "
23730 "detected automatically."
23731 msgstr ""
23732
23733 #. type: textblock
23734 #: ../src/guestfs-actions.pod:133
23735 msgid ""
23736 "Automatic detection of the format opens you up to a potential security hole "
23737 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23738 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23739 "you should think about replacing calls to this function with calls to "
23740 "C<guestfs_add_drive_opts>, and specifying the format."
23741 msgstr ""
23742
23743 #. type: =head2
23744 #: ../src/guestfs-actions.pod:144
23745 msgid "guestfs_add_drive_opts"
23746 msgstr ""
23747
23748 #. type: verbatim
23749 #: ../src/guestfs-actions.pod:146
23750 #, no-wrap
23751 msgid ""
23752 " int\n"
23753 " guestfs_add_drive_opts (guestfs_h *g,\n"
23754 "                         const char *filename,\n"
23755 "                         ...);\n"
23756 "\n"
23757 msgstr ""
23758
23759 #. type: verbatim
23760 #: ../src/guestfs-actions.pod:156
23761 #, no-wrap
23762 msgid ""
23763 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23764 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23765 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23766 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
23767 "\n"
23768 msgstr ""
23769
23770 #. type: textblock
23771 #: ../src/guestfs-actions.pod:186
23772 msgid ""
23773 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23774 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23775 "Possible formats include C<raw> and C<qcow2>."
23776 msgstr ""
23777
23778 #. type: textblock
23779 #: ../src/guestfs-actions.pod:197
23780 msgid ""
23781 "This rarely-used option lets you emulate the behaviour of the deprecated "
23782 "C<guestfs_add_drive_with_if> call (q.v.)"
23783 msgstr ""
23784
23785 #. type: textblock
23786 #: ../src/guestfs-actions.pod:209
23787 msgid "(Added in 1.5.23)"
23788 msgstr ""
23789
23790 #. type: =head2
23791 #: ../src/guestfs-actions.pod:211
23792 msgid "guestfs_add_drive_opts_va"
23793 msgstr ""
23794
23795 #. type: verbatim
23796 #: ../src/guestfs-actions.pod:213
23797 #, no-wrap
23798 msgid ""
23799 " int\n"
23800 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23801 "                            const char *filename,\n"
23802 "                            va_list args);\n"
23803 "\n"
23804 msgstr ""
23805
23806 #. type: textblock
23807 #: ../src/guestfs-actions.pod:218
23808 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23809 msgstr ""
23810
23811 #. type: =head2
23812 #: ../src/guestfs-actions.pod:222
23813 msgid "guestfs_add_drive_opts_argv"
23814 msgstr ""
23815
23816 #. type: verbatim
23817 #: ../src/guestfs-actions.pod:224
23818 #, no-wrap
23819 msgid ""
23820 " int\n"
23821 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23822 "                              const char *filename,\n"
23823 "                              const struct guestfs_add_drive_opts_argv "
23824 "*optargs);\n"
23825 "\n"
23826 msgstr ""
23827
23828 #. type: textblock
23829 #: ../src/guestfs-actions.pod:229
23830 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23831 msgstr ""
23832
23833 #. type: =head2
23834 #: ../src/guestfs-actions.pod:233
23835 msgid "guestfs_add_drive_ro"
23836 msgstr ""
23837
23838 #. type: verbatim
23839 #: ../src/guestfs-actions.pod:235
23840 #, no-wrap
23841 msgid ""
23842 " int\n"
23843 " guestfs_add_drive_ro (guestfs_h *g,\n"
23844 "                       const char *filename);\n"
23845 "\n"
23846 msgstr ""
23847
23848 #. type: textblock
23849 #: ../src/guestfs-actions.pod:239
23850 msgid ""
23851 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23852 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23853 "disk is added read-only, with the format being detected automatically."
23854 msgstr ""
23855
23856 #. type: textblock
23857 #: ../src/guestfs-actions.pod:246
23858 msgid "(Added in 1.0.38)"
23859 msgstr ""
23860
23861 #. type: =head2
23862 #: ../src/guestfs-actions.pod:248
23863 msgid "guestfs_add_drive_ro_with_if"
23864 msgstr ""
23865
23866 #. type: verbatim
23867 #: ../src/guestfs-actions.pod:250
23868 #, no-wrap
23869 msgid ""
23870 " int\n"
23871 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23872 "                               const char *filename,\n"
23873 "                               const char *iface);\n"
23874 "\n"
23875 msgstr ""
23876
23877 #. type: textblock
23878 #: ../src/guestfs-actions.pod:262
23879 msgid ""
23880 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23881 "QEMU interface emulation to use at run time."
23882 msgstr ""
23883
23884 #. type: textblock
23885 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288 ../src/guestfs-actions.pod:2586
23886 msgid "(Added in 1.0.84)"
23887 msgstr ""
23888
23889 #. type: =head2
23890 #: ../src/guestfs-actions.pod:269
23891 msgid "guestfs_add_drive_with_if"
23892 msgstr ""
23893
23894 #. type: verbatim
23895 #: ../src/guestfs-actions.pod:271
23896 #, no-wrap
23897 msgid ""
23898 " int\n"
23899 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23900 "                            const char *filename,\n"
23901 "                            const char *iface);\n"
23902 "\n"
23903 msgstr ""
23904
23905 #. type: textblock
23906 #: ../src/guestfs-actions.pod:283
23907 msgid ""
23908 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23909 "QEMU interface emulation to use at run time."
23910 msgstr ""
23911
23912 #. type: =head2
23913 #: ../src/guestfs-actions.pod:290
23914 msgid "guestfs_aug_clear"
23915 msgstr ""
23916
23917 #. type: verbatim
23918 #: ../src/guestfs-actions.pod:292
23919 #, no-wrap
23920 msgid ""
23921 " int\n"
23922 " guestfs_aug_clear (guestfs_h *g,\n"
23923 "                    const char *augpath);\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
23929 msgid "(Added in 1.3.4)"
23930 msgstr ""
23931
23932 #. type: =head2
23933 #: ../src/guestfs-actions.pod:303
23934 msgid "guestfs_aug_close"
23935 msgstr ""
23936
23937 #. type: verbatim
23938 #: ../src/guestfs-actions.pod:305
23939 #, no-wrap
23940 msgid ""
23941 " int\n"
23942 " guestfs_aug_close (guestfs_h *g);\n"
23943 "\n"
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../src/guestfs-actions.pod:308
23948 msgid ""
23949 "Close the current Augeas handle and free up any resources used by it.  After "
23950 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23951 "any other Augeas functions."
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372 ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500 ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528 ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560 ../src/guestfs-actions.pod:6008
23956 msgid "(Added in 0.7)"
23957 msgstr ""
23958
23959 #. type: =head2
23960 #: ../src/guestfs-actions.pod:317
23961 msgid "guestfs_aug_defnode"
23962 msgstr ""
23963
23964 #. type: verbatim
23965 #: ../src/guestfs-actions.pod:319
23966 #, no-wrap
23967 msgid ""
23968 " struct guestfs_int_bool *\n"
23969 " guestfs_aug_defnode (guestfs_h *g,\n"
23970 "                      const char *name,\n"
23971 "                      const char *expr,\n"
23972 "                      const char *val);\n"
23973 "\n"
23974 msgstr ""
23975
23976 #. type: textblock
23977 #: ../src/guestfs-actions.pod:328
23978 msgid ""
23979 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23980 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23981 "containing that single node."
23982 msgstr ""
23983
23984 #. type: textblock
23985 #: ../src/guestfs-actions.pod:336
23986 msgid ""
23987 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23988 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23989 msgstr ""
23990
23991 #. type: =head2
23992 #: ../src/guestfs-actions.pod:342
23993 msgid "guestfs_aug_defvar"
23994 msgstr ""
23995
23996 #. type: verbatim
23997 #: ../src/guestfs-actions.pod:344
23998 #, no-wrap
23999 msgid ""
24000 " int\n"
24001 " guestfs_aug_defvar (guestfs_h *g,\n"
24002 "                     const char *name,\n"
24003 "                     const char *expr);\n"
24004 "\n"
24005 msgstr ""
24006
24007 #. type: =head2
24008 #: ../src/guestfs-actions.pod:360
24009 msgid "guestfs_aug_get"
24010 msgstr ""
24011
24012 #. type: verbatim
24013 #: ../src/guestfs-actions.pod:362
24014 #, no-wrap
24015 msgid ""
24016 " char *\n"
24017 " guestfs_aug_get (guestfs_h *g,\n"
24018 "                  const char *augpath);\n"
24019 "\n"
24020 msgstr ""
24021
24022 #. type: textblock
24023 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011 ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388 ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541 ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841 ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021 ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337 ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961 ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195 ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341 ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361 ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641 ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084 ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805 ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845 ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580 ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
24024 msgid ""
24025 "This function returns a string, or NULL on error.  I<The caller must free "
24026 "the returned string after use>."
24027 msgstr ""
24028
24029 #. type: =head2
24030 #: ../src/guestfs-actions.pod:374
24031 msgid "guestfs_aug_init"
24032 msgstr ""
24033
24034 #. type: verbatim
24035 #: ../src/guestfs-actions.pod:376
24036 #, no-wrap
24037 msgid ""
24038 " int\n"
24039 " guestfs_aug_init (guestfs_h *g,\n"
24040 "                   const char *root,\n"
24041 "                   int flags);\n"
24042 "\n"
24043 msgstr ""
24044
24045 #. type: textblock
24046 #: ../src/guestfs-actions.pod:385
24047 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24048 msgstr ""
24049
24050 #. type: textblock
24051 #: ../src/guestfs-actions.pod:410
24052 msgid ""
24053 "This option is only useful when debugging Augeas lenses.  Use of this option "
24054 "may require additional memory for the libguestfs appliance.  You may need to "
24055 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24056 "C<guestfs_set_memsize>."
24057 msgstr ""
24058
24059 #. type: textblock
24060 #: ../src/guestfs-actions.pod:425
24061 msgid "Do not load the tree in C<guestfs_aug_init>."
24062 msgstr ""
24063
24064 #. type: textblock
24065 #: ../src/guestfs-actions.pod:429
24066 msgid "To close the handle, you can call C<guestfs_aug_close>."
24067 msgstr ""
24068
24069 #. type: =head2
24070 #: ../src/guestfs-actions.pod:437
24071 msgid "guestfs_aug_insert"
24072 msgstr ""
24073
24074 #. type: verbatim
24075 #: ../src/guestfs-actions.pod:439
24076 #, no-wrap
24077 msgid ""
24078 " int\n"
24079 " guestfs_aug_insert (guestfs_h *g,\n"
24080 "                     const char *augpath,\n"
24081 "                     const char *label,\n"
24082 "                     int before);\n"
24083 "\n"
24084 msgstr ""
24085
24086 #. type: =head2
24087 #: ../src/guestfs-actions.pod:457
24088 msgid "guestfs_aug_load"
24089 msgstr ""
24090
24091 #. type: verbatim
24092 #: ../src/guestfs-actions.pod:459
24093 #, no-wrap
24094 msgid ""
24095 " int\n"
24096 " guestfs_aug_load (guestfs_h *g);\n"
24097 "\n"
24098 msgstr ""
24099
24100 #. type: =head2
24101 #: ../src/guestfs-actions.pod:471
24102 msgid "guestfs_aug_ls"
24103 msgstr ""
24104
24105 #. type: verbatim
24106 #: ../src/guestfs-actions.pod:473
24107 #, no-wrap
24108 msgid ""
24109 " char **\n"
24110 " guestfs_aug_ls (guestfs_h *g,\n"
24111 "                 const char *augpath);\n"
24112 "\n"
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../src/guestfs-actions.pod:477
24117 msgid ""
24118 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24119 "sorting the resulting nodes into alphabetical order."
24120 msgstr ""
24121
24122 #. type: textblock
24123 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496 ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149 ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409 ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444 ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533 ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297 ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928 ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260 ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004 ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885 ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171 ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8105
24124 msgid ""
24125 "This function returns a NULL-terminated array of strings (like "
24126 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
24127 "strings and the array after use>."
24128 msgstr ""
24129
24130 #. type: textblock
24131 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613 ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216 ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242 ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385 ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631 ../src/guestfs-actions.pod:7896
24132 msgid "(Added in 0.8)"
24133 msgstr ""
24134
24135 #. type: =head2
24136 #: ../src/guestfs-actions.pod:486
24137 msgid "guestfs_aug_match"
24138 msgstr ""
24139
24140 #. type: verbatim
24141 #: ../src/guestfs-actions.pod:488
24142 #, no-wrap
24143 msgid ""
24144 " char **\n"
24145 " guestfs_aug_match (guestfs_h *g,\n"
24146 "                    const char *augpath);\n"
24147 "\n"
24148 msgstr ""
24149
24150 #. type: =head2
24151 #: ../src/guestfs-actions.pod:502
24152 msgid "guestfs_aug_mv"
24153 msgstr ""
24154
24155 #. type: verbatim
24156 #: ../src/guestfs-actions.pod:504
24157 #, no-wrap
24158 msgid ""
24159 " int\n"
24160 " guestfs_aug_mv (guestfs_h *g,\n"
24161 "                 const char *src,\n"
24162 "                 const char *dest);\n"
24163 "\n"
24164 msgstr ""
24165
24166 #. type: =head2
24167 #: ../src/guestfs-actions.pod:516
24168 msgid "guestfs_aug_rm"
24169 msgstr ""
24170
24171 #. type: verbatim
24172 #: ../src/guestfs-actions.pod:518
24173 #, no-wrap
24174 msgid ""
24175 " int\n"
24176 " guestfs_aug_rm (guestfs_h *g,\n"
24177 "                 const char *augpath);\n"
24178 "\n"
24179 msgstr ""
24180
24181 #. type: =head2
24182 #: ../src/guestfs-actions.pod:530
24183 msgid "guestfs_aug_save"
24184 msgstr ""
24185
24186 #. type: verbatim
24187 #: ../src/guestfs-actions.pod:532
24188 #, no-wrap
24189 msgid ""
24190 " int\n"
24191 " guestfs_aug_save (guestfs_h *g);\n"
24192 "\n"
24193 msgstr ""
24194
24195 #. type: textblock
24196 #: ../src/guestfs-actions.pod:537
24197 msgid ""
24198 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24199 "are saved."
24200 msgstr ""
24201
24202 #. type: =head2
24203 #: ../src/guestfs-actions.pod:544
24204 msgid "guestfs_aug_set"
24205 msgstr ""
24206
24207 #. type: verbatim
24208 #: ../src/guestfs-actions.pod:546
24209 #, no-wrap
24210 msgid ""
24211 " int\n"
24212 " guestfs_aug_set (guestfs_h *g,\n"
24213 "                  const char *augpath,\n"
24214 "                  const char *val);\n"
24215 "\n"
24216 msgstr ""
24217
24218 #. type: textblock
24219 #: ../src/guestfs-actions.pod:553
24220 msgid ""
24221 "In the Augeas API, it is possible to clear a node by setting the value to "
24222 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24223 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24224 msgstr ""
24225
24226 #. type: =head2
24227 #: ../src/guestfs-actions.pod:562
24228 msgid "guestfs_available"
24229 msgstr ""
24230
24231 #. type: verbatim
24232 #: ../src/guestfs-actions.pod:564
24233 #, no-wrap
24234 msgid ""
24235 " int\n"
24236 " guestfs_available (guestfs_h *g,\n"
24237 "                    char *const *groups);\n"
24238 "\n"
24239 msgstr ""
24240
24241 #. type: textblock
24242 #: ../src/guestfs-actions.pod:572
24243 msgid ""
24244 "The libguestfs groups, and the functions that those groups correspond to, "
24245 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24246 "runtime by calling C<guestfs_available_all_groups>."
24247 msgstr ""
24248
24249 #. type: textblock
24250 #: ../src/guestfs-actions.pod:596
24251 msgid "You must call C<guestfs_launch> before calling this function."
24252 msgstr ""
24253
24254 #. type: textblock
24255 #: ../src/guestfs-actions.pod:618
24256 msgid ""
24257 "This call was added in version C<1.0.80>.  In previous versions of "
24258 "libguestfs all you could do would be to speculatively execute a command to "
24259 "find out if the daemon implemented it.  See also C<guestfs_version>."
24260 msgstr ""
24261
24262 #. type: textblock
24263 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
24264 msgid "(Added in 1.0.80)"
24265 msgstr ""
24266
24267 #. type: =head2
24268 #: ../src/guestfs-actions.pod:629
24269 msgid "guestfs_available_all_groups"
24270 msgstr ""
24271
24272 #. type: verbatim
24273 #: ../src/guestfs-actions.pod:631
24274 #, no-wrap
24275 msgid ""
24276 " char **\n"
24277 " guestfs_available_all_groups (guestfs_h *g);\n"
24278 "\n"
24279 msgstr ""
24280
24281 #. type: textblock
24282 #: ../src/guestfs-actions.pod:634
24283 msgid ""
24284 "This command returns a list of all optional groups that this daemon knows "
24285 "about.  Note this returns both supported and unsupported groups.  To find "
24286 "out which ones the daemon can actually support you have to call "
24287 "C<guestfs_available> on each member of the returned list."
24288 msgstr ""
24289
24290 #. type: textblock
24291 #: ../src/guestfs-actions.pod:640
24292 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24293 msgstr ""
24294
24295 #. type: textblock
24296 #: ../src/guestfs-actions.pod:646
24297 msgid "(Added in 1.3.15)"
24298 msgstr ""
24299
24300 #. type: =head2
24301 #: ../src/guestfs-actions.pod:648
24302 msgid "guestfs_base64_in"
24303 msgstr ""
24304
24305 #. type: verbatim
24306 #: ../src/guestfs-actions.pod:650
24307 #, no-wrap
24308 msgid ""
24309 " int\n"
24310 " guestfs_base64_in (guestfs_h *g,\n"
24311 "                    const char *base64file,\n"
24312 "                    const char *filename);\n"
24313 "\n"
24314 msgstr ""
24315
24316 #. type: textblock
24317 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
24318 msgid "(Added in 1.3.5)"
24319 msgstr ""
24320
24321 #. type: =head2
24322 #: ../src/guestfs-actions.pod:662
24323 msgid "guestfs_base64_out"
24324 msgstr ""
24325
24326 #. type: verbatim
24327 #: ../src/guestfs-actions.pod:664
24328 #, no-wrap
24329 msgid ""
24330 " int\n"
24331 " guestfs_base64_out (guestfs_h *g,\n"
24332 "                     const char *filename,\n"
24333 "                     const char *base64file);\n"
24334 "\n"
24335 msgstr ""
24336
24337 #. type: =head2
24338 #: ../src/guestfs-actions.pod:676
24339 msgid "guestfs_blockdev_flushbufs"
24340 msgstr ""
24341
24342 #. type: verbatim
24343 #: ../src/guestfs-actions.pod:678
24344 #, no-wrap
24345 msgid ""
24346 " int\n"
24347 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24348 "                             const char *device);\n"
24349 "\n"
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737 ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774 ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806 ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
24354 msgid "(Added in 0.9.3)"
24355 msgstr ""
24356
24357 #. type: =head2
24358 #: ../src/guestfs-actions.pod:691
24359 msgid "guestfs_blockdev_getbsz"
24360 msgstr ""
24361
24362 #. type: verbatim
24363 #: ../src/guestfs-actions.pod:693
24364 #, no-wrap
24365 msgid ""
24366 " int\n"
24367 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24368 "                          const char *device);\n"
24369 "\n"
24370 msgstr ""
24371
24372 #. type: =head2
24373 #: ../src/guestfs-actions.pod:708
24374 msgid "guestfs_blockdev_getro"
24375 msgstr ""
24376
24377 #. type: verbatim
24378 #: ../src/guestfs-actions.pod:710
24379 #, no-wrap
24380 msgid ""
24381 " int\n"
24382 " guestfs_blockdev_getro (guestfs_h *g,\n"
24383 "                         const char *device);\n"
24384 "\n"
24385 msgstr ""
24386
24387 #. type: textblock
24388 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100 ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183 ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249 ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608 ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637 ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668 ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725 ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755 ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782 ../src/guestfs-actions.pod:5501
24389 msgid "This function returns a C truth value on success or -1 on error."
24390 msgstr ""
24391
24392 #. type: =head2
24393 #: ../src/guestfs-actions.pod:723
24394 msgid "guestfs_blockdev_getsize64"
24395 msgstr ""
24396
24397 #. type: verbatim
24398 #: ../src/guestfs-actions.pod:725
24399 #, no-wrap
24400 msgid ""
24401 " int64_t\n"
24402 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24403 "                             const char *device);\n"
24404 "\n"
24405 msgstr ""
24406
24407 #. type: textblock
24408 #: ../src/guestfs-actions.pod:731
24409 msgid "See also C<guestfs_blockdev_getsz>."
24410 msgstr ""
24411
24412 #. type: =head2
24413 #: ../src/guestfs-actions.pod:739
24414 msgid "guestfs_blockdev_getss"
24415 msgstr ""
24416
24417 #. type: verbatim
24418 #: ../src/guestfs-actions.pod:741
24419 #, no-wrap
24420 msgid ""
24421 " int\n"
24422 " guestfs_blockdev_getss (guestfs_h *g,\n"
24423 "                         const char *device);\n"
24424 "\n"
24425 msgstr ""
24426
24427 #. type: textblock
24428 #: ../src/guestfs-actions.pod:748
24429 msgid ""
24430 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24431 "that)."
24432 msgstr ""
24433
24434 #. type: =head2
24435 #: ../src/guestfs-actions.pod:757
24436 msgid "guestfs_blockdev_getsz"
24437 msgstr ""
24438
24439 #. type: verbatim
24440 #: ../src/guestfs-actions.pod:759
24441 #, no-wrap
24442 msgid ""
24443 " int64_t\n"
24444 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24445 "                         const char *device);\n"
24446 "\n"
24447 msgstr ""
24448
24449 #. type: textblock
24450 #: ../src/guestfs-actions.pod:766
24451 msgid ""
24452 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24453 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24454 msgstr ""
24455
24456 #. type: =head2
24457 #: ../src/guestfs-actions.pod:776
24458 msgid "guestfs_blockdev_rereadpt"
24459 msgstr ""
24460
24461 #. type: verbatim
24462 #: ../src/guestfs-actions.pod:778
24463 #, no-wrap
24464 msgid ""
24465 " int\n"
24466 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24467 "                            const char *device);\n"
24468 "\n"
24469 msgstr ""
24470
24471 #. type: =head2
24472 #: ../src/guestfs-actions.pod:790
24473 msgid "guestfs_blockdev_setbsz"
24474 msgstr ""
24475
24476 #. type: verbatim
24477 #: ../src/guestfs-actions.pod:792
24478 #, no-wrap
24479 msgid ""
24480 " int\n"
24481 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24482 "                          const char *device,\n"
24483 "                          int blocksize);\n"
24484 "\n"
24485 msgstr ""
24486
24487 #. type: =head2
24488 #: ../src/guestfs-actions.pod:808
24489 msgid "guestfs_blockdev_setro"
24490 msgstr ""
24491
24492 #. type: verbatim
24493 #: ../src/guestfs-actions.pod:810
24494 #, no-wrap
24495 msgid ""
24496 " int\n"
24497 " guestfs_blockdev_setro (guestfs_h *g,\n"
24498 "                         const char *device);\n"
24499 "\n"
24500 msgstr ""
24501
24502 #. type: =head2
24503 #: ../src/guestfs-actions.pod:822
24504 msgid "guestfs_blockdev_setrw"
24505 msgstr ""
24506
24507 #. type: verbatim
24508 #: ../src/guestfs-actions.pod:824
24509 #, no-wrap
24510 msgid ""
24511 " int\n"
24512 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24513 "                         const char *device);\n"
24514 "\n"
24515 msgstr ""
24516
24517 #. type: =head2
24518 #: ../src/guestfs-actions.pod:836
24519 msgid "guestfs_btrfs_filesystem_resize"
24520 msgstr ""
24521
24522 #. type: verbatim
24523 #: ../src/guestfs-actions.pod:838
24524 #, no-wrap
24525 msgid ""
24526 " int\n"
24527 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24528 "                                  const char *mountpoint,\n"
24529 "                                  ...);\n"
24530 "\n"
24531 msgstr ""
24532
24533 #. type: verbatim
24534 #: ../src/guestfs-actions.pod:848
24535 #, no-wrap
24536 msgid ""
24537 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24538 "\n"
24539 msgstr ""
24540
24541 #. type: textblock
24542 #: ../src/guestfs-actions.pod:871
24543 msgid "(Added in 1.11.17)"
24544 msgstr ""
24545
24546 #. type: =head2
24547 #: ../src/guestfs-actions.pod:873
24548 msgid "guestfs_btrfs_filesystem_resize_va"
24549 msgstr ""
24550
24551 #. type: verbatim
24552 #: ../src/guestfs-actions.pod:875
24553 #, no-wrap
24554 msgid ""
24555 " int\n"
24556 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24557 "                                     const char *mountpoint,\n"
24558 "                                     va_list args);\n"
24559 "\n"
24560 msgstr ""
24561
24562 #. type: textblock
24563 #: ../src/guestfs-actions.pod:880
24564 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24565 msgstr ""
24566
24567 #. type: =head2
24568 #: ../src/guestfs-actions.pod:884
24569 msgid "guestfs_btrfs_filesystem_resize_argv"
24570 msgstr ""
24571
24572 #. type: verbatim
24573 #: ../src/guestfs-actions.pod:886
24574 #, no-wrap
24575 msgid ""
24576 " int\n"
24577 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24578 "                                       const char *mountpoint,\n"
24579 "                                       const struct "
24580 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24581 "\n"
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../src/guestfs-actions.pod:891
24586 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24587 msgstr ""
24588
24589 #. type: =head2
24590 #: ../src/guestfs-actions.pod:895
24591 msgid "guestfs_case_sensitive_path"
24592 msgstr ""
24593
24594 #. type: verbatim
24595 #: ../src/guestfs-actions.pod:897
24596 #, no-wrap
24597 msgid ""
24598 " char *\n"
24599 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24600 "                              const char *path);\n"
24601 "\n"
24602 msgstr ""
24603
24604 #. type: textblock
24605 #: ../src/guestfs-actions.pod:923
24606 msgid ""
24607 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
24608 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24609 "how the directories were originally created under Windows)."
24610 msgstr ""
24611
24612 #. type: textblock
24613 #: ../src/guestfs-actions.pod:931
24614 msgid "See also C<guestfs_realpath>."
24615 msgstr ""
24616
24617 #. type: textblock
24618 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
24619 msgid "(Added in 1.0.75)"
24620 msgstr ""
24621
24622 #. type: =head2
24623 #: ../src/guestfs-actions.pod:938
24624 msgid "guestfs_cat"
24625 msgstr ""
24626
24627 #. type: verbatim
24628 #: ../src/guestfs-actions.pod:940
24629 #, no-wrap
24630 msgid ""
24631 " char *\n"
24632 " guestfs_cat (guestfs_h *g,\n"
24633 "              const char *path);\n"
24634 "\n"
24635 msgstr ""
24636
24637 #. type: textblock
24638 #: ../src/guestfs-actions.pod:946
24639 msgid ""
24640 "Note that this function cannot correctly handle binary files (specifically, "
24641 "files containing C<\\0> character which is treated as end of string).  For "
24642 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24643 "functions which have a more complex interface."
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912 ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011 ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507 ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882 ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7732
24648 msgid "(Added in 0.4)"
24649 msgstr ""
24650
24651 #. type: =head2
24652 #: ../src/guestfs-actions.pod:959
24653 msgid "guestfs_checksum"
24654 msgstr ""
24655
24656 #. type: verbatim
24657 #: ../src/guestfs-actions.pod:961
24658 #, no-wrap
24659 msgid ""
24660 " char *\n"
24661 " guestfs_checksum (guestfs_h *g,\n"
24662 "                   const char *csumtype,\n"
24663 "                   const char *path);\n"
24664 "\n"
24665 msgstr ""
24666
24667 #. type: textblock
24668 #: ../src/guestfs-actions.pod:1007
24669 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24670 msgstr ""
24671
24672 #. type: textblock
24673 #: ../src/guestfs-actions.pod:1009
24674 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24675 msgstr ""
24676
24677 #. type: textblock
24678 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433 ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700 ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
24679 msgid "(Added in 1.0.2)"
24680 msgstr ""
24681
24682 #. type: =head2
24683 #: ../src/guestfs-actions.pod:1016
24684 msgid "guestfs_checksum_device"
24685 msgstr ""
24686
24687 #. type: verbatim
24688 #: ../src/guestfs-actions.pod:1018
24689 #, no-wrap
24690 msgid ""
24691 " char *\n"
24692 " guestfs_checksum_device (guestfs_h *g,\n"
24693 "                          const char *csumtype,\n"
24694 "                          const char *device);\n"
24695 "\n"
24696 msgstr ""
24697
24698 #. type: textblock
24699 #: ../src/guestfs-actions.pod:1023
24700 msgid ""
24701 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24702 "device named C<device>.  For the types of checksums supported see the "
24703 "C<guestfs_checksum> command."
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503 ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703 ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:7744
24708 msgid "(Added in 1.3.2)"
24709 msgstr ""
24710
24711 #. type: =head2
24712 #: ../src/guestfs-actions.pod:1032
24713 msgid "guestfs_checksums_out"
24714 msgstr ""
24715
24716 #. type: verbatim
24717 #: ../src/guestfs-actions.pod:1034
24718 #, no-wrap
24719 msgid ""
24720 " int\n"
24721 " guestfs_checksums_out (guestfs_h *g,\n"
24722 "                        const char *csumtype,\n"
24723 "                        const char *directory,\n"
24724 "                        const char *sumsfile);\n"
24725 "\n"
24726 msgstr ""
24727
24728 #. type: textblock
24729 #: ../src/guestfs-actions.pod:1054
24730 msgid "(Added in 1.3.7)"
24731 msgstr ""
24732
24733 #. type: =head2
24734 #: ../src/guestfs-actions.pod:1056
24735 msgid "guestfs_chmod"
24736 msgstr ""
24737
24738 #. type: verbatim
24739 #: ../src/guestfs-actions.pod:1058
24740 #, no-wrap
24741 msgid ""
24742 " int\n"
24743 " guestfs_chmod (guestfs_h *g,\n"
24744 "                int mode,\n"
24745 "                const char *path);\n"
24746 "\n"
24747 msgstr ""
24748
24749 #. type: =head2
24750 #: ../src/guestfs-actions.pod:1076
24751 msgid "guestfs_chown"
24752 msgstr ""
24753
24754 #. type: verbatim
24755 #: ../src/guestfs-actions.pod:1078
24756 #, no-wrap
24757 msgid ""
24758 " int\n"
24759 " guestfs_chown (guestfs_h *g,\n"
24760 "                int owner,\n"
24761 "                int group,\n"
24762 "                const char *path);\n"
24763 "\n"
24764 msgstr ""
24765
24766 #. type: =head2
24767 #: ../src/guestfs-actions.pod:1094
24768 msgid "guestfs_command"
24769 msgstr ""
24770
24771 #. type: verbatim
24772 #: ../src/guestfs-actions.pod:1096
24773 #, no-wrap
24774 msgid ""
24775 " char *\n"
24776 " guestfs_command (guestfs_h *g,\n"
24777 "                  char *const *arguments);\n"
24778 "\n"
24779 msgstr ""
24780
24781 #. type: textblock
24782 #: ../src/guestfs-actions.pod:1105
24783 msgid ""
24784 "The single parameter is an argv-style list of arguments.  The first element "
24785 "is the name of the program to run.  Subsequent elements are parameters.  The "
24786 "list must be non-empty (ie. must contain a program name).  Note that the "
24787 "command runs directly, and is I<not> invoked via the shell (see "
24788 "C<guestfs_sh>)."
24789 msgstr ""
24790
24791 #. type: textblock
24792 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156 ../src/guestfs-actions.pod:1732
24793 msgid "(Added in 0.9.1)"
24794 msgstr ""
24795
24796 #. type: =head2
24797 #: ../src/guestfs-actions.pod:1138
24798 msgid "guestfs_command_lines"
24799 msgstr ""
24800
24801 #. type: verbatim
24802 #: ../src/guestfs-actions.pod:1140
24803 #, no-wrap
24804 msgid ""
24805 " char **\n"
24806 " guestfs_command_lines (guestfs_h *g,\n"
24807 "                        char *const *arguments);\n"
24808 "\n"
24809 msgstr ""
24810
24811 #. type: textblock
24812 #: ../src/guestfs-actions.pod:1144
24813 msgid ""
24814 "This is the same as C<guestfs_command>, but splits the result into a list of "
24815 "lines."
24816 msgstr ""
24817
24818 #. type: textblock
24819 #: ../src/guestfs-actions.pod:1147
24820 msgid "See also: C<guestfs_sh_lines>"
24821 msgstr ""
24822
24823 #. type: =head2
24824 #: ../src/guestfs-actions.pod:1158
24825 msgid "guestfs_compress_device_out"
24826 msgstr ""
24827
24828 #. type: verbatim
24829 #: ../src/guestfs-actions.pod:1160
24830 #, no-wrap
24831 msgid ""
24832 " int\n"
24833 " guestfs_compress_device_out (guestfs_h *g,\n"
24834 "                              const char *ctype,\n"
24835 "                              const char *device,\n"
24836 "                              const char *zdevice,\n"
24837 "                              ...);\n"
24838 "\n"
24839 msgstr ""
24840
24841 #. type: verbatim
24842 #: ../src/guestfs-actions.pod:1172
24843 #, no-wrap
24844 msgid ""
24845 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
24846 "\n"
24847 msgstr ""
24848
24849 #. type: textblock
24850 #: ../src/guestfs-actions.pod:1177
24851 msgid ""
24852 "The C<ctype> and optional C<level> parameters have the same meaning as in "
24853 "C<guestfs_compress_out>."
24854 msgstr ""
24855
24856 #. type: textblock
24857 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
24858 msgid "(Added in 1.13.15)"
24859 msgstr ""
24860
24861 #. type: =head2
24862 #: ../src/guestfs-actions.pod:1184
24863 msgid "guestfs_compress_device_out_va"
24864 msgstr ""
24865
24866 #. type: verbatim
24867 #: ../src/guestfs-actions.pod:1186
24868 #, no-wrap
24869 msgid ""
24870 " int\n"
24871 " guestfs_compress_device_out_va (guestfs_h *g,\n"
24872 "                                 const char *ctype,\n"
24873 "                                 const char *device,\n"
24874 "                                 const char *zdevice,\n"
24875 "                                 va_list args);\n"
24876 "\n"
24877 msgstr ""
24878
24879 #. type: textblock
24880 #: ../src/guestfs-actions.pod:1193
24881 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
24882 msgstr ""
24883
24884 #. type: =head2
24885 #: ../src/guestfs-actions.pod:1197
24886 msgid "guestfs_compress_device_out_argv"
24887 msgstr ""
24888
24889 #. type: verbatim
24890 #: ../src/guestfs-actions.pod:1199
24891 #, no-wrap
24892 msgid ""
24893 " int\n"
24894 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
24895 "                                   const char *ctype,\n"
24896 "                                   const char *device,\n"
24897 "                                   const char *zdevice,\n"
24898 "                                   const struct "
24899 "guestfs_compress_device_out_argv *optargs);\n"
24900 "\n"
24901 msgstr ""
24902
24903 #. type: textblock
24904 #: ../src/guestfs-actions.pod:1206
24905 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
24906 msgstr ""
24907
24908 #. type: =head2
24909 #: ../src/guestfs-actions.pod:1210
24910 msgid "guestfs_compress_out"
24911 msgstr ""
24912
24913 #. type: verbatim
24914 #: ../src/guestfs-actions.pod:1212
24915 #, no-wrap
24916 msgid ""
24917 " int\n"
24918 " guestfs_compress_out (guestfs_h *g,\n"
24919 "                       const char *ctype,\n"
24920 "                       const char *file,\n"
24921 "                       const char *zfile,\n"
24922 "                       ...);\n"
24923 "\n"
24924 msgstr ""
24925
24926 #. type: verbatim
24927 #: ../src/guestfs-actions.pod:1224
24928 #, no-wrap
24929 msgid ""
24930 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
24931 "\n"
24932 msgstr ""
24933
24934 #. type: =head2
24935 #: ../src/guestfs-actions.pod:1243
24936 msgid "guestfs_compress_out_va"
24937 msgstr ""
24938
24939 #. type: verbatim
24940 #: ../src/guestfs-actions.pod:1245
24941 #, no-wrap
24942 msgid ""
24943 " int\n"
24944 " guestfs_compress_out_va (guestfs_h *g,\n"
24945 "                          const char *ctype,\n"
24946 "                          const char *file,\n"
24947 "                          const char *zfile,\n"
24948 "                          va_list args);\n"
24949 "\n"
24950 msgstr ""
24951
24952 #. type: textblock
24953 #: ../src/guestfs-actions.pod:1252
24954 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
24955 msgstr ""
24956
24957 #. type: =head2
24958 #: ../src/guestfs-actions.pod:1256
24959 msgid "guestfs_compress_out_argv"
24960 msgstr ""
24961
24962 #. type: verbatim
24963 #: ../src/guestfs-actions.pod:1258
24964 #, no-wrap
24965 msgid ""
24966 " int\n"
24967 " guestfs_compress_out_argv (guestfs_h *g,\n"
24968 "                            const char *ctype,\n"
24969 "                            const char *file,\n"
24970 "                            const char *zfile,\n"
24971 "                            const struct guestfs_compress_out_argv "
24972 "*optargs);\n"
24973 "\n"
24974 msgstr ""
24975
24976 #. type: textblock
24977 #: ../src/guestfs-actions.pod:1265
24978 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
24979 msgstr ""
24980
24981 #. type: =head2
24982 #: ../src/guestfs-actions.pod:1269
24983 msgid "guestfs_config"
24984 msgstr ""
24985
24986 #. type: verbatim
24987 #: ../src/guestfs-actions.pod:1271
24988 #, no-wrap
24989 msgid ""
24990 " int\n"
24991 " guestfs_config (guestfs_h *g,\n"
24992 "                 const char *qemuparam,\n"
24993 "                 const char *qemuvalue);\n"
24994 "\n"
24995 msgstr ""
24996
24997 #. type: =head2
24998 #: ../src/guestfs-actions.pod:1289
24999 msgid "guestfs_copy_size"
25000 msgstr ""
25001
25002 #. type: verbatim
25003 #: ../src/guestfs-actions.pod:1291
25004 #, no-wrap
25005 msgid ""
25006 " int\n"
25007 " guestfs_copy_size (guestfs_h *g,\n"
25008 "                    const char *src,\n"
25009 "                    const char *dest,\n"
25010 "                    int64_t size);\n"
25011 "\n"
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428 ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903 ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416 ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957 ../src/guestfs-actions.pod:7980
25016 msgid ""
25017 "This long-running command can generate progress notification messages so "
25018 "that the caller can display a progress bar or indicator.  To receive these "
25019 "messages, the caller must register a progress event callback.  See "
25020 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
25021 msgstr ""
25022
25023 #. type: textblock
25024 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651 ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
25025 msgid "(Added in 1.0.87)"
25026 msgstr ""
25027
25028 #. type: =head2
25029 #: ../src/guestfs-actions.pod:1312
25030 msgid "guestfs_cp"
25031 msgstr ""
25032
25033 #. type: verbatim
25034 #: ../src/guestfs-actions.pod:1314
25035 #, no-wrap
25036 msgid ""
25037 " int\n"
25038 " guestfs_cp (guestfs_h *g,\n"
25039 "             const char *src,\n"
25040 "             const char *dest);\n"
25041 "\n"
25042 msgstr ""
25043
25044 #. type: textblock
25045 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338 ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484 ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278 ../src/guestfs-actions.pod:5753
25046 msgid "(Added in 1.0.18)"
25047 msgstr ""
25048
25049 #. type: =head2
25050 #: ../src/guestfs-actions.pod:1326
25051 msgid "guestfs_cp_a"
25052 msgstr ""
25053
25054 #. type: verbatim
25055 #: ../src/guestfs-actions.pod:1328
25056 #, no-wrap
25057 msgid ""
25058 " int\n"
25059 " guestfs_cp_a (guestfs_h *g,\n"
25060 "               const char *src,\n"
25061 "               const char *dest);\n"
25062 "\n"
25063 msgstr ""
25064
25065 #. type: =head2
25066 #: ../src/guestfs-actions.pod:1340
25067 msgid "guestfs_dd"
25068 msgstr ""
25069
25070 #. type: verbatim
25071 #: ../src/guestfs-actions.pod:1342
25072 #, no-wrap
25073 msgid ""
25074 " int\n"
25075 " guestfs_dd (guestfs_h *g,\n"
25076 "             const char *src,\n"
25077 "             const char *dest);\n"
25078 "\n"
25079 msgstr ""
25080
25081 #. type: textblock
25082 #: ../src/guestfs-actions.pod:1352
25083 msgid ""
25084 "If the destination is a device, it must be as large or larger than the "
25085 "source file or device, otherwise the copy will fail.  This command cannot do "
25086 "partial copies (see C<guestfs_copy_size>)."
25087 msgstr ""
25088
25089 #. type: =head2
25090 #: ../src/guestfs-actions.pod:1360
25091 msgid "guestfs_df"
25092 msgstr ""
25093
25094 #. type: verbatim
25095 #: ../src/guestfs-actions.pod:1362
25096 #, no-wrap
25097 msgid ""
25098 " char *\n"
25099 " guestfs_df (guestfs_h *g);\n"
25100 "\n"
25101 msgstr ""
25102
25103 #. type: textblock
25104 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
25105 msgid ""
25106 "This command is mostly useful for interactive sessions.  It is I<not> "
25107 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
25108 "from programs."
25109 msgstr ""
25110
25111 #. type: textblock
25112 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178 ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178 ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810 ../src/guestfs-actions.pod:7823
25113 msgid "(Added in 1.0.54)"
25114 msgstr ""
25115
25116 #. type: =head2
25117 #: ../src/guestfs-actions.pod:1376
25118 msgid "guestfs_df_h"
25119 msgstr ""
25120
25121 #. type: verbatim
25122 #: ../src/guestfs-actions.pod:1378
25123 #, no-wrap
25124 msgid ""
25125 " char *\n"
25126 " guestfs_df_h (guestfs_h *g);\n"
25127 "\n"
25128 msgstr ""
25129
25130 #. type: =head2
25131 #: ../src/guestfs-actions.pod:1393
25132 msgid "guestfs_dmesg"
25133 msgstr ""
25134
25135 #. type: verbatim
25136 #: ../src/guestfs-actions.pod:1395
25137 #, no-wrap
25138 msgid ""
25139 " char *\n"
25140 " guestfs_dmesg (guestfs_h *g);\n"
25141 "\n"
25142 msgstr ""
25143
25144 #. type: textblock
25145 #: ../src/guestfs-actions.pod:1402
25146 msgid ""
25147 "Another way to get the same information is to enable verbose messages with "
25148 "C<guestfs_set_verbose> or by setting the environment variable "
25149 "C<LIBGUESTFS_DEBUG=1> before running the program."
25150 msgstr ""
25151
25152 #. type: =head2
25153 #: ../src/guestfs-actions.pod:1412
25154 msgid "guestfs_download"
25155 msgstr ""
25156
25157 #. type: verbatim
25158 #: ../src/guestfs-actions.pod:1414
25159 #, no-wrap
25160 msgid ""
25161 " int\n"
25162 " guestfs_download (guestfs_h *g,\n"
25163 "                   const char *remotefilename,\n"
25164 "                   const char *filename);\n"
25165 "\n"
25166 msgstr ""
25167
25168 #. type: textblock
25169 #: ../src/guestfs-actions.pod:1424
25170 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25171 msgstr ""
25172
25173 #. type: =head2
25174 #: ../src/guestfs-actions.pod:1435
25175 msgid "guestfs_download_offset"
25176 msgstr ""
25177
25178 #. type: verbatim
25179 #: ../src/guestfs-actions.pod:1437
25180 #, no-wrap
25181 msgid ""
25182 " int\n"
25183 " guestfs_download_offset (guestfs_h *g,\n"
25184 "                          const char *remotefilename,\n"
25185 "                          const char *filename,\n"
25186 "                          int64_t offset,\n"
25187 "                          int64_t size);\n"
25188 "\n"
25189 msgstr ""
25190
25191 #. type: textblock
25192 #: ../src/guestfs-actions.pod:1450
25193 msgid ""
25194 "Note that there is no limit on the amount of data that can be downloaded "
25195 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25196 "full amount unless an error occurs."
25197 msgstr ""
25198
25199 #. type: textblock
25200 #: ../src/guestfs-actions.pod:1455
25201 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25202 msgstr ""
25203
25204 #. type: textblock
25205 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
25206 msgid "(Added in 1.5.17)"
25207 msgstr ""
25208
25209 #. type: =head2
25210 #: ../src/guestfs-actions.pod:1466
25211 msgid "guestfs_drop_caches"
25212 msgstr ""
25213
25214 #. type: verbatim
25215 #: ../src/guestfs-actions.pod:1468
25216 #, no-wrap
25217 msgid ""
25218 " int\n"
25219 " guestfs_drop_caches (guestfs_h *g,\n"
25220 "                      int whattodrop);\n"
25221 "\n"
25222 msgstr ""
25223
25224 #. type: =head2
25225 #: ../src/guestfs-actions.pod:1486
25226 msgid "guestfs_du"
25227 msgstr ""
25228
25229 #. type: verbatim
25230 #: ../src/guestfs-actions.pod:1488
25231 #, no-wrap
25232 msgid ""
25233 " int64_t\n"
25234 " guestfs_du (guestfs_h *g,\n"
25235 "             const char *path);\n"
25236 "\n"
25237 msgstr ""
25238
25239 #. type: =head2
25240 #: ../src/guestfs-actions.pod:1511
25241 msgid "guestfs_e2fsck_f"
25242 msgstr ""
25243
25244 #. type: verbatim
25245 #: ../src/guestfs-actions.pod:1513
25246 #, no-wrap
25247 msgid ""
25248 " int\n"
25249 " guestfs_e2fsck_f (guestfs_h *g,\n"
25250 "                   const char *device);\n"
25251 "\n"
25252 msgstr ""
25253
25254 #. type: textblock
25255 #: ../src/guestfs-actions.pod:1521
25256 msgid ""
25257 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
25258 "Normally you should use C<guestfs_fsck>."
25259 msgstr ""
25260
25261 #. type: textblock
25262 #: ../src/guestfs-actions.pod:1526
25263 msgid "(Added in 1.0.29)"
25264 msgstr ""
25265
25266 #. type: =head2
25267 #: ../src/guestfs-actions.pod:1528
25268 msgid "guestfs_echo_daemon"
25269 msgstr ""
25270
25271 #. type: verbatim
25272 #: ../src/guestfs-actions.pod:1530
25273 #, no-wrap
25274 msgid ""
25275 " char *\n"
25276 " guestfs_echo_daemon (guestfs_h *g,\n"
25277 "                      char *const *words);\n"
25278 "\n"
25279 msgstr ""
25280
25281 #. type: textblock
25282 #: ../src/guestfs-actions.pod:1539
25283 msgid "See also C<guestfs_ping_daemon>."
25284 msgstr ""
25285
25286 #. type: textblock
25287 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302 ../src/guestfs-actions.pod:6626
25288 msgid "(Added in 1.0.69)"
25289 msgstr ""
25290
25291 #. type: =head2
25292 #: ../src/guestfs-actions.pod:1546
25293 msgid "guestfs_egrep"
25294 msgstr ""
25295
25296 #. type: verbatim
25297 #: ../src/guestfs-actions.pod:1548
25298 #, no-wrap
25299 msgid ""
25300 " char **\n"
25301 " guestfs_egrep (guestfs_h *g,\n"
25302 "                const char *regex,\n"
25303 "                const char *path);\n"
25304 "\n"
25305 msgstr ""
25306
25307 #. type: textblock
25308 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685 ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629 ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725 ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024 ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066 ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136 ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034 ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060 ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095 ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934 ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047 ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
25309 msgid "(Added in 1.0.66)"
25310 msgstr ""
25311
25312 #. type: =head2
25313 #: ../src/guestfs-actions.pod:1565
25314 msgid "guestfs_egrepi"
25315 msgstr ""
25316
25317 #. type: verbatim
25318 #: ../src/guestfs-actions.pod:1567
25319 #, no-wrap
25320 msgid ""
25321 " char **\n"
25322 " guestfs_egrepi (guestfs_h *g,\n"
25323 "                 const char *regex,\n"
25324 "                 const char *path);\n"
25325 "\n"
25326 msgstr ""
25327
25328 #. type: =head2
25329 #: ../src/guestfs-actions.pod:1584
25330 msgid "guestfs_equal"
25331 msgstr ""
25332
25333 #. type: verbatim
25334 #: ../src/guestfs-actions.pod:1586
25335 #, no-wrap
25336 msgid ""
25337 " int\n"
25338 " guestfs_equal (guestfs_h *g,\n"
25339 "                const char *file1,\n"
25340 "                const char *file2);\n"
25341 "\n"
25342 msgstr ""
25343
25344 #. type: =head2
25345 #: ../src/guestfs-actions.pod:1600
25346 msgid "guestfs_exists"
25347 msgstr ""
25348
25349 #. type: verbatim
25350 #: ../src/guestfs-actions.pod:1602
25351 #, no-wrap
25352 msgid ""
25353 " int\n"
25354 " guestfs_exists (guestfs_h *g,\n"
25355 "                 const char *path);\n"
25356 "\n"
25357 msgstr ""
25358
25359 #. type: textblock
25360 #: ../src/guestfs-actions.pod:1609
25361 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25362 msgstr ""
25363
25364 #. type: =head2
25365 #: ../src/guestfs-actions.pod:1615
25366 msgid "guestfs_fallocate"
25367 msgstr ""
25368
25369 #. type: verbatim
25370 #: ../src/guestfs-actions.pod:1617
25371 #, no-wrap
25372 msgid ""
25373 " int\n"
25374 " guestfs_fallocate (guestfs_h *g,\n"
25375 "                    const char *path,\n"
25376 "                    int len);\n"
25377 "\n"
25378 msgstr ""
25379
25380 #. type: textblock
25381 #: ../src/guestfs-actions.pod:1622
25382 msgid ""
25383 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25384 "call instead."
25385 msgstr ""
25386
25387 #. type: =head2
25388 #: ../src/guestfs-actions.pod:1641
25389 msgid "guestfs_fallocate64"
25390 msgstr ""
25391
25392 #. type: verbatim
25393 #: ../src/guestfs-actions.pod:1643
25394 #, no-wrap
25395 msgid ""
25396 " int\n"
25397 " guestfs_fallocate64 (guestfs_h *g,\n"
25398 "                      const char *path,\n"
25399 "                      int64_t len);\n"
25400 "\n"
25401 msgstr ""
25402
25403 #. type: textblock
25404 #: ../src/guestfs-actions.pod:1652
25405 msgid ""
25406 "Note that this call allocates disk blocks for the file.  To create a sparse "
25407 "file use C<guestfs_truncate_size> instead."
25408 msgstr ""
25409
25410 #. type: textblock
25411 #: ../src/guestfs-actions.pod:1655
25412 msgid ""
25413 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25414 "oversight it only allowed 30 bit lengths to be specified, effectively "
25415 "limiting the maximum size of files created through that call to 1GB."
25416 msgstr ""
25417
25418 #. type: textblock
25419 #: ../src/guestfs-actions.pod:1666
25420 msgid "(Added in 1.3.17)"
25421 msgstr ""
25422
25423 #. type: =head2
25424 #: ../src/guestfs-actions.pod:1668
25425 msgid "guestfs_fgrep"
25426 msgstr ""
25427
25428 #. type: verbatim
25429 #: ../src/guestfs-actions.pod:1670
25430 #, no-wrap
25431 msgid ""
25432 " char **\n"
25433 " guestfs_fgrep (guestfs_h *g,\n"
25434 "                const char *pattern,\n"
25435 "                const char *path);\n"
25436 "\n"
25437 msgstr ""
25438
25439 #. type: =head2
25440 #: ../src/guestfs-actions.pod:1687
25441 msgid "guestfs_fgrepi"
25442 msgstr ""
25443
25444 #. type: verbatim
25445 #: ../src/guestfs-actions.pod:1689
25446 #, no-wrap
25447 msgid ""
25448 " char **\n"
25449 " guestfs_fgrepi (guestfs_h *g,\n"
25450 "                 const char *pattern,\n"
25451 "                 const char *path);\n"
25452 "\n"
25453 msgstr ""
25454
25455 #. type: =head2
25456 #: ../src/guestfs-actions.pod:1706
25457 msgid "guestfs_file"
25458 msgstr ""
25459
25460 #. type: verbatim
25461 #: ../src/guestfs-actions.pod:1708
25462 #, no-wrap
25463 msgid ""
25464 " char *\n"
25465 " guestfs_file (guestfs_h *g,\n"
25466 "               const char *path);\n"
25467 "\n"
25468 msgstr ""
25469
25470 #. type: textblock
25471 #: ../src/guestfs-actions.pod:1726
25472 msgid ""
25473 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25474 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25475 msgstr ""
25476
25477 #. type: =head2
25478 #: ../src/guestfs-actions.pod:1734
25479 msgid "guestfs_file_architecture"
25480 msgstr ""
25481
25482 #. type: verbatim
25483 #: ../src/guestfs-actions.pod:1736
25484 #, no-wrap
25485 msgid ""
25486 " char *\n"
25487 " guestfs_file_architecture (guestfs_h *g,\n"
25488 "                            const char *filename);\n"
25489 "\n"
25490 msgstr ""
25491
25492 #. type: textblock
25493 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926 ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131 ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3713
25494 msgid "(Added in 1.5.3)"
25495 msgstr ""
25496
25497 #. type: =head2
25498 #: ../src/guestfs-actions.pod:1846
25499 msgid "guestfs_filesize"
25500 msgstr ""
25501
25502 #. type: verbatim
25503 #: ../src/guestfs-actions.pod:1848
25504 #, no-wrap
25505 msgid ""
25506 " int64_t\n"
25507 " guestfs_filesize (guestfs_h *g,\n"
25508 "                   const char *file);\n"
25509 "\n"
25510 msgstr ""
25511
25512 #. type: textblock
25513 #: ../src/guestfs-actions.pod:1854
25514 msgid ""
25515 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25516 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25517 "devices, use C<guestfs_blockdev_getsize64>."
25518 msgstr ""
25519
25520 #. type: textblock
25521 #: ../src/guestfs-actions.pod:1860
25522 msgid "(Added in 1.0.82)"
25523 msgstr ""
25524
25525 #. type: =head2
25526 #: ../src/guestfs-actions.pod:1862
25527 msgid "guestfs_fill"
25528 msgstr ""
25529
25530 #. type: verbatim
25531 #: ../src/guestfs-actions.pod:1864
25532 #, no-wrap
25533 msgid ""
25534 " int\n"
25535 " guestfs_fill (guestfs_h *g,\n"
25536 "               int c,\n"
25537 "               int len,\n"
25538 "               const char *path);\n"
25539 "\n"
25540 msgstr ""
25541
25542 #. type: textblock
25543 #: ../src/guestfs-actions.pod:1874
25544 msgid ""
25545 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25546 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25547 "bytes use C<guestfs_fill_pattern>."
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../src/guestfs-actions.pod:1886
25552 msgid "(Added in 1.0.79)"
25553 msgstr ""
25554
25555 #. type: =head2
25556 #: ../src/guestfs-actions.pod:1888
25557 msgid "guestfs_fill_pattern"
25558 msgstr ""
25559
25560 #. type: verbatim
25561 #: ../src/guestfs-actions.pod:1890
25562 #, no-wrap
25563 msgid ""
25564 " int\n"
25565 " guestfs_fill_pattern (guestfs_h *g,\n"
25566 "                       const char *pattern,\n"
25567 "                       int len,\n"
25568 "                       const char *path);\n"
25569 "\n"
25570 msgstr ""
25571
25572 #. type: textblock
25573 #: ../src/guestfs-actions.pod:1896
25574 msgid ""
25575 "This function is like C<guestfs_fill> except that it creates a new file of "
25576 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25577 "pattern is truncated if necessary to ensure the length of the file is "
25578 "exactly C<len> bytes."
25579 msgstr ""
25580
25581 #. type: textblock
25582 #: ../src/guestfs-actions.pod:1908
25583 msgid "(Added in 1.3.12)"
25584 msgstr ""
25585
25586 #. type: =head2
25587 #: ../src/guestfs-actions.pod:1910
25588 msgid "guestfs_find"
25589 msgstr ""
25590
25591 #. type: verbatim
25592 #: ../src/guestfs-actions.pod:1912
25593 #, no-wrap
25594 msgid ""
25595 " char **\n"
25596 " guestfs_find (guestfs_h *g,\n"
25597 "               const char *directory);\n"
25598 "\n"
25599 msgstr ""
25600
25601 #. type: textblock
25602 #: ../src/guestfs-actions.pod:1928
25603 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25604 msgstr ""
25605
25606 #. type: textblock
25607 #: ../src/guestfs-actions.pod:1941
25608 msgid "See also C<guestfs_find0>."
25609 msgstr ""
25610
25611 #. type: textblock
25612 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471 ../src/guestfs-actions.pod:6171
25613 msgid "(Added in 1.0.27)"
25614 msgstr ""
25615
25616 #. type: =head2
25617 #: ../src/guestfs-actions.pod:1952
25618 msgid "guestfs_find0"
25619 msgstr ""
25620
25621 #. type: verbatim
25622 #: ../src/guestfs-actions.pod:1954
25623 #, no-wrap
25624 msgid ""
25625 " int\n"
25626 " guestfs_find0 (guestfs_h *g,\n"
25627 "                const char *directory,\n"
25628 "                const char *files);\n"
25629 "\n"
25630 msgstr ""
25631
25632 #. type: textblock
25633 #: ../src/guestfs-actions.pod:1963
25634 msgid ""
25635 "This command works the same way as C<guestfs_find> with the following "
25636 "exceptions:"
25637 msgstr ""
25638
25639 #. type: textblock
25640 #: ../src/guestfs-actions.pod:1990
25641 msgid "(Added in 1.0.74)"
25642 msgstr ""
25643
25644 #. type: =head2
25645 #: ../src/guestfs-actions.pod:1992
25646 msgid "guestfs_findfs_label"
25647 msgstr ""
25648
25649 #. type: verbatim
25650 #: ../src/guestfs-actions.pod:1994
25651 #, no-wrap
25652 msgid ""
25653 " char *\n"
25654 " guestfs_findfs_label (guestfs_h *g,\n"
25655 "                       const char *label);\n"
25656 "\n"
25657 msgstr ""
25658
25659 #. type: textblock
25660 #: ../src/guestfs-actions.pod:2002
25661 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25662 msgstr ""
25663
25664 #. type: =head2
25665 #: ../src/guestfs-actions.pod:2009
25666 msgid "guestfs_findfs_uuid"
25667 msgstr ""
25668
25669 #. type: verbatim
25670 #: ../src/guestfs-actions.pod:2011
25671 #, no-wrap
25672 msgid ""
25673 " char *\n"
25674 " guestfs_findfs_uuid (guestfs_h *g,\n"
25675 "                      const char *uuid);\n"
25676 "\n"
25677 msgstr ""
25678
25679 #. type: textblock
25680 #: ../src/guestfs-actions.pod:2019
25681 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25682 msgstr ""
25683
25684 #. type: =head2
25685 #: ../src/guestfs-actions.pod:2026
25686 msgid "guestfs_fsck"
25687 msgstr ""
25688
25689 #. type: verbatim
25690 #: ../src/guestfs-actions.pod:2028
25691 #, no-wrap
25692 msgid ""
25693 " int\n"
25694 " guestfs_fsck (guestfs_h *g,\n"
25695 "               const char *fstype,\n"
25696 "               const char *device);\n"
25697 "\n"
25698 msgstr ""
25699
25700 #. type: textblock
25701 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
25702 msgid "(Added in 1.0.16)"
25703 msgstr ""
25704
25705 #. type: =head2
25706 #: ../src/guestfs-actions.pod:2065
25707 msgid "guestfs_get_append"
25708 msgstr ""
25709
25710 #. type: verbatim
25711 #: ../src/guestfs-actions.pod:2067
25712 #, no-wrap
25713 msgid ""
25714 " const char *\n"
25715 " guestfs_get_append (guestfs_h *g);\n"
25716 "\n"
25717 msgstr ""
25718
25719 #. type: textblock
25720 #: ../src/guestfs-actions.pod:2075
25721 msgid ""
25722 "This function returns a string which may be NULL.  There is no way to return "
25723 "an error from this function.  The string is owned by the guest handle and "
25724 "must I<not> be freed."
25725 msgstr ""
25726
25727 #. type: textblock
25728 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849 ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824 ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
25729 msgid "(Added in 1.0.26)"
25730 msgstr ""
25731
25732 #. type: =head2
25733 #: ../src/guestfs-actions.pod:2081
25734 msgid "guestfs_get_attach_method"
25735 msgstr ""
25736
25737 #. type: verbatim
25738 #: ../src/guestfs-actions.pod:2083
25739 #, no-wrap
25740 msgid ""
25741 " char *\n"
25742 " guestfs_get_attach_method (guestfs_h *g);\n"
25743 "\n"
25744 msgstr ""
25745
25746 #. type: textblock
25747 #: ../src/guestfs-actions.pod:2086
25748 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25749 msgstr ""
25750
25751 #. type: textblock
25752 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
25753 msgid "(Added in 1.9.8)"
25754 msgstr ""
25755
25756 #. type: =head2
25757 #: ../src/guestfs-actions.pod:2093
25758 msgid "guestfs_get_autosync"
25759 msgstr ""
25760
25761 #. type: verbatim
25762 #: ../src/guestfs-actions.pod:2095
25763 #, no-wrap
25764 msgid ""
25765 " int\n"
25766 " guestfs_get_autosync (guestfs_h *g);\n"
25767 "\n"
25768 msgstr ""
25769
25770 #. type: =head2
25771 #: ../src/guestfs-actions.pod:2104
25772 msgid "guestfs_get_direct"
25773 msgstr ""
25774
25775 #. type: verbatim
25776 #: ../src/guestfs-actions.pod:2106
25777 #, no-wrap
25778 msgid ""
25779 " int\n"
25780 " guestfs_get_direct (guestfs_h *g);\n"
25781 "\n"
25782 msgstr ""
25783
25784 #. type: textblock
25785 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
25786 msgid "(Added in 1.0.72)"
25787 msgstr ""
25788
25789 #. type: =head2
25790 #: ../src/guestfs-actions.pod:2115
25791 msgid "guestfs_get_e2label"
25792 msgstr ""
25793
25794 #. type: verbatim
25795 #: ../src/guestfs-actions.pod:2117
25796 #, no-wrap
25797 msgid ""
25798 " char *\n"
25799 " guestfs_get_e2label (guestfs_h *g,\n"
25800 "                      const char *device);\n"
25801 "\n"
25802 msgstr ""
25803
25804 #. type: textblock
25805 #: ../src/guestfs-actions.pod:2121
25806 msgid ""
25807 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25808 "call instead."
25809 msgstr ""
25810
25811 #. type: textblock
25812 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
25813 msgid "(Added in 1.0.15)"
25814 msgstr ""
25815
25816 #. type: =head2
25817 #: ../src/guestfs-actions.pod:2136
25818 msgid "guestfs_get_e2uuid"
25819 msgstr ""
25820
25821 #. type: verbatim
25822 #: ../src/guestfs-actions.pod:2138
25823 #, no-wrap
25824 msgid ""
25825 " char *\n"
25826 " guestfs_get_e2uuid (guestfs_h *g,\n"
25827 "                     const char *device);\n"
25828 "\n"
25829 msgstr ""
25830
25831 #. type: textblock
25832 #: ../src/guestfs-actions.pod:2142
25833 msgid ""
25834 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25835 "call instead."
25836 msgstr ""
25837
25838 #. type: =head2
25839 #: ../src/guestfs-actions.pod:2157
25840 msgid "guestfs_get_memsize"
25841 msgstr ""
25842
25843 #. type: verbatim
25844 #: ../src/guestfs-actions.pod:2159
25845 #, no-wrap
25846 msgid ""
25847 " int\n"
25848 " guestfs_get_memsize (guestfs_h *g);\n"
25849 "\n"
25850 msgstr ""
25851
25852 #. type: textblock
25853 #: ../src/guestfs-actions.pod:2165
25854 msgid ""
25855 "If C<guestfs_set_memsize> was not called on this handle, and if "
25856 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25857 "value for memsize."
25858 msgstr ""
25859
25860 #. type: textblock
25861 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762 ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051 ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460 ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
25862 msgid "(Added in 1.0.55)"
25863 msgstr ""
25864
25865 #. type: =head2
25866 #: ../src/guestfs-actions.pod:2176
25867 msgid "guestfs_get_network"
25868 msgstr ""
25869
25870 #. type: verbatim
25871 #: ../src/guestfs-actions.pod:2178
25872 #, no-wrap
25873 msgid ""
25874 " int\n"
25875 " guestfs_get_network (guestfs_h *g);\n"
25876 "\n"
25877 msgstr ""
25878
25879 #. type: textblock
25880 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
25881 msgid "(Added in 1.5.4)"
25882 msgstr ""
25883
25884 #. type: =head2
25885 #: ../src/guestfs-actions.pod:2187
25886 msgid "guestfs_get_path"
25887 msgstr ""
25888
25889 #. type: verbatim
25890 #: ../src/guestfs-actions.pod:2189
25891 #, no-wrap
25892 msgid ""
25893 " const char *\n"
25894 " guestfs_get_path (guestfs_h *g);\n"
25895 "\n"
25896 msgstr ""
25897
25898 #. type: textblock
25899 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
25900 msgid ""
25901 "This function returns a string, or NULL on error.  The string is owned by "
25902 "the guest handle and must I<not> be freed."
25903 msgstr ""
25904
25905 #. type: =head2
25906 #: ../src/guestfs-actions.pod:2202
25907 msgid "guestfs_get_pgroup"
25908 msgstr ""
25909
25910 #. type: verbatim
25911 #: ../src/guestfs-actions.pod:2204
25912 #, no-wrap
25913 msgid ""
25914 " int\n"
25915 " guestfs_get_pgroup (guestfs_h *g);\n"
25916 "\n"
25917 msgstr ""
25918
25919 #. type: textblock
25920 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515 ../src/guestfs-actions.pod:7863
25921 msgid "(Added in 1.11.18)"
25922 msgstr ""
25923
25924 #. type: =head2
25925 #: ../src/guestfs-actions.pod:2213
25926 msgid "guestfs_get_pid"
25927 msgstr ""
25928
25929 #. type: verbatim
25930 #: ../src/guestfs-actions.pod:2215
25931 #, no-wrap
25932 msgid ""
25933 " int\n"
25934 " guestfs_get_pid (guestfs_h *g);\n"
25935 "\n"
25936 msgstr ""
25937
25938 #. type: textblock
25939 #: ../src/guestfs-actions.pod:2225
25940 msgid "(Added in 1.0.56)"
25941 msgstr ""
25942
25943 #. type: =head2
25944 #: ../src/guestfs-actions.pod:2227
25945 msgid "guestfs_get_qemu"
25946 msgstr ""
25947
25948 #. type: verbatim
25949 #: ../src/guestfs-actions.pod:2229
25950 #, no-wrap
25951 msgid ""
25952 " const char *\n"
25953 " guestfs_get_qemu (guestfs_h *g);\n"
25954 "\n"
25955 msgstr ""
25956
25957 #. type: textblock
25958 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
25959 msgid "(Added in 1.0.6)"
25960 msgstr ""
25961
25962 #. type: =head2
25963 #: ../src/guestfs-actions.pod:2242
25964 msgid "guestfs_get_recovery_proc"
25965 msgstr ""
25966
25967 #. type: verbatim
25968 #: ../src/guestfs-actions.pod:2244
25969 #, no-wrap
25970 msgid ""
25971 " int\n"
25972 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25973 "\n"
25974 msgstr ""
25975
25976 #. type: textblock
25977 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835 ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294 ../src/guestfs-actions.pod:7486
25978 msgid "(Added in 1.0.77)"
25979 msgstr ""
25980
25981 #. type: =head2
25982 #: ../src/guestfs-actions.pod:2253
25983 msgid "guestfs_get_selinux"
25984 msgstr ""
25985
25986 #. type: verbatim
25987 #: ../src/guestfs-actions.pod:2255
25988 #, no-wrap
25989 msgid ""
25990 " int\n"
25991 " guestfs_get_selinux (guestfs_h *g);\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: textblock
25996 #: ../src/guestfs-actions.pod:2258
25997 msgid ""
25998 "This returns the current setting of the selinux flag which is passed to the "
25999 "appliance at boot time.  See C<guestfs_set_selinux>."
26000 msgstr ""
26001
26002 #. type: textblock
26003 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340 ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
26004 msgid "(Added in 1.0.67)"
26005 msgstr ""
26006
26007 #. type: =head2
26008 #: ../src/guestfs-actions.pod:2268
26009 msgid "guestfs_get_smp"
26010 msgstr ""
26011
26012 #. type: verbatim
26013 #: ../src/guestfs-actions.pod:2270
26014 #, no-wrap
26015 msgid ""
26016 " int\n"
26017 " guestfs_get_smp (guestfs_h *g);\n"
26018 "\n"
26019 msgstr ""
26020
26021 #. type: =head2
26022 #: ../src/guestfs-actions.pod:2279
26023 msgid "guestfs_get_state"
26024 msgstr ""
26025
26026 #. type: verbatim
26027 #: ../src/guestfs-actions.pod:2281
26028 #, no-wrap
26029 msgid ""
26030 " int\n"
26031 " guestfs_get_state (guestfs_h *g);\n"
26032 "\n"
26033 msgstr ""
26034
26035 #. type: =head2
26036 #: ../src/guestfs-actions.pod:2293
26037 msgid "guestfs_get_trace"
26038 msgstr ""
26039
26040 #. type: verbatim
26041 #: ../src/guestfs-actions.pod:2295
26042 #, no-wrap
26043 msgid ""
26044 " int\n"
26045 " guestfs_get_trace (guestfs_h *g);\n"
26046 "\n"
26047 msgstr ""
26048
26049 #. type: =head2
26050 #: ../src/guestfs-actions.pod:2304
26051 msgid "guestfs_get_umask"
26052 msgstr ""
26053
26054 #. type: verbatim
26055 #: ../src/guestfs-actions.pod:2306
26056 #, no-wrap
26057 msgid ""
26058 " int\n"
26059 " guestfs_get_umask (guestfs_h *g);\n"
26060 "\n"
26061 msgstr ""
26062
26063 #. type: textblock
26064 #: ../src/guestfs-actions.pod:2309
26065 msgid ""
26066 "Return the current umask.  By default the umask is C<022> unless it has been "
26067 "set by calling C<guestfs_umask>."
26068 msgstr ""
26069
26070 #. type: =head2
26071 #: ../src/guestfs-actions.pod:2316
26072 msgid "guestfs_get_verbose"
26073 msgstr ""
26074
26075 #. type: verbatim
26076 #: ../src/guestfs-actions.pod:2318
26077 #, no-wrap
26078 msgid ""
26079 " int\n"
26080 " guestfs_get_verbose (guestfs_h *g);\n"
26081 "\n"
26082 msgstr ""
26083
26084 #. type: =head2
26085 #: ../src/guestfs-actions.pod:2327
26086 msgid "guestfs_getcon"
26087 msgstr ""
26088
26089 #. type: verbatim
26090 #: ../src/guestfs-actions.pod:2329
26091 #, no-wrap
26092 msgid ""
26093 " char *\n"
26094 " guestfs_getcon (guestfs_h *g);\n"
26095 "\n"
26096 msgstr ""
26097
26098 #. type: textblock
26099 #: ../src/guestfs-actions.pod:2334
26100 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26101 msgstr ""
26102
26103 #. type: =head2
26104 #: ../src/guestfs-actions.pod:2342
26105 msgid "guestfs_getxattr"
26106 msgstr ""
26107
26108 #. type: verbatim
26109 #: ../src/guestfs-actions.pod:2344
26110 #, no-wrap
26111 msgid ""
26112 " char *\n"
26113 " guestfs_getxattr (guestfs_h *g,\n"
26114 "                   const char *path,\n"
26115 "                   const char *name,\n"
26116 "                   size_t *size_r);\n"
26117 "\n"
26118 msgstr ""
26119
26120 #. type: textblock
26121 #: ../src/guestfs-actions.pod:2350
26122 msgid ""
26123 "Get a single extended attribute from file C<path> named C<name>.  This call "
26124 "follows symlinks.  If you want to lookup an extended attribute for the "
26125 "symlink itself, use C<guestfs_lgetxattr>."
26126 msgstr ""
26127
26128 #. type: textblock
26129 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
26130 msgid ""
26131 "Normally it is better to get all extended attributes from a file in one go "
26132 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
26133 "implementations are buggy and do not provide a way to list out attributes.  "
26134 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
26135 "extended attributes you want in advance and call this function."
26136 msgstr ""
26137
26138 #. type: textblock
26139 #: ../src/guestfs-actions.pod:2364
26140 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26141 msgstr ""
26142
26143 #. type: textblock
26144 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579 ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861 ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5979
26145 msgid ""
26146 "This function returns a buffer, or NULL on error.  The size of the returned "
26147 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
26148 "after use>."
26149 msgstr ""
26150
26151 #. type: textblock
26152 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
26153 msgid "(Added in 1.7.24)"
26154 msgstr ""
26155
26156 #. type: =head2
26157 #: ../src/guestfs-actions.pod:2372
26158 msgid "guestfs_getxattrs"
26159 msgstr ""
26160
26161 #. type: verbatim
26162 #: ../src/guestfs-actions.pod:2374
26163 #, no-wrap
26164 msgid ""
26165 " struct guestfs_xattr_list *\n"
26166 " guestfs_getxattrs (guestfs_h *g,\n"
26167 "                    const char *path);\n"
26168 "\n"
26169 msgstr ""
26170
26171 #. type: textblock
26172 #: ../src/guestfs-actions.pod:2384
26173 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26174 msgstr ""
26175
26176 #. type: textblock
26177 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877 ../src/guestfs-actions.pod:4565
26178 msgid ""
26179 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26180 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
26181 msgstr ""
26182
26183 #. type: textblock
26184 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679 ../src/guestfs-actions.pod:8074
26185 msgid "(Added in 1.0.59)"
26186 msgstr ""
26187
26188 #. type: =head2
26189 #: ../src/guestfs-actions.pod:2392
26190 msgid "guestfs_glob_expand"
26191 msgstr ""
26192
26193 #. type: verbatim
26194 #: ../src/guestfs-actions.pod:2394
26195 #, no-wrap
26196 msgid ""
26197 " char **\n"
26198 " guestfs_glob_expand (guestfs_h *g,\n"
26199 "                      const char *pattern);\n"
26200 "\n"
26201 msgstr ""
26202
26203 #. type: textblock
26204 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6889
26205 msgid "(Added in 1.0.50)"
26206 msgstr ""
26207
26208 #. type: =head2
26209 #: ../src/guestfs-actions.pod:2415
26210 msgid "guestfs_grep"
26211 msgstr ""
26212
26213 #. type: verbatim
26214 #: ../src/guestfs-actions.pod:2417
26215 #, no-wrap
26216 msgid ""
26217 " char **\n"
26218 " guestfs_grep (guestfs_h *g,\n"
26219 "               const char *regex,\n"
26220 "               const char *path);\n"
26221 "\n"
26222 msgstr ""
26223
26224 #. type: =head2
26225 #: ../src/guestfs-actions.pod:2434
26226 msgid "guestfs_grepi"
26227 msgstr ""
26228
26229 #. type: verbatim
26230 #: ../src/guestfs-actions.pod:2436
26231 #, no-wrap
26232 msgid ""
26233 " char **\n"
26234 " guestfs_grepi (guestfs_h *g,\n"
26235 "                const char *regex,\n"
26236 "                const char *path);\n"
26237 "\n"
26238 msgstr ""
26239
26240 #. type: =head2
26241 #: ../src/guestfs-actions.pod:2453
26242 msgid "guestfs_grub_install"
26243 msgstr ""
26244
26245 #. type: verbatim
26246 #: ../src/guestfs-actions.pod:2455
26247 #, no-wrap
26248 msgid ""
26249 " int\n"
26250 " guestfs_grub_install (guestfs_h *g,\n"
26251 "                       const char *root,\n"
26252 "                       const char *device);\n"
26253 "\n"
26254 msgstr ""
26255
26256 #. type: textblock
26257 #: ../src/guestfs-actions.pod:2498
26258 msgid "(Added in 1.0.17)"
26259 msgstr ""
26260
26261 #. type: =head2
26262 #: ../src/guestfs-actions.pod:2500
26263 msgid "guestfs_head"
26264 msgstr ""
26265
26266 #. type: verbatim
26267 #: ../src/guestfs-actions.pod:2502
26268 #, no-wrap
26269 msgid ""
26270 " char **\n"
26271 " guestfs_head (guestfs_h *g,\n"
26272 "               const char *path);\n"
26273 "\n"
26274 msgstr ""
26275
26276 #. type: =head2
26277 #: ../src/guestfs-actions.pod:2518
26278 msgid "guestfs_head_n"
26279 msgstr ""
26280
26281 #. type: verbatim
26282 #: ../src/guestfs-actions.pod:2520
26283 #, no-wrap
26284 msgid ""
26285 " char **\n"
26286 " guestfs_head_n (guestfs_h *g,\n"
26287 "                 int nrlines,\n"
26288 "                 const char *path);\n"
26289 "\n"
26290 msgstr ""
26291
26292 #. type: =head2
26293 #: ../src/guestfs-actions.pod:2542
26294 msgid "guestfs_hexdump"
26295 msgstr ""
26296
26297 #. type: verbatim
26298 #: ../src/guestfs-actions.pod:2544
26299 #, no-wrap
26300 msgid ""
26301 " char *\n"
26302 " guestfs_hexdump (guestfs_h *g,\n"
26303 "                  const char *path);\n"
26304 "\n"
26305 msgstr ""
26306
26307 #. type: textblock
26308 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953 ../src/guestfs-actions.pod:7008
26309 msgid "(Added in 1.0.22)"
26310 msgstr ""
26311
26312 #. type: =head2
26313 #: ../src/guestfs-actions.pod:2559
26314 msgid "guestfs_initrd_cat"
26315 msgstr ""
26316
26317 #. type: verbatim
26318 #: ../src/guestfs-actions.pod:2561
26319 #, no-wrap
26320 msgid ""
26321 " char *\n"
26322 " guestfs_initrd_cat (guestfs_h *g,\n"
26323 "                     const char *initrdpath,\n"
26324 "                     const char *filename,\n"
26325 "                     size_t *size_r);\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: textblock
26330 #: ../src/guestfs-actions.pod:2577
26331 msgid "See also C<guestfs_initrd_list>."
26332 msgstr ""
26333
26334 #. type: =head2
26335 #: ../src/guestfs-actions.pod:2588
26336 msgid "guestfs_initrd_list"
26337 msgstr ""
26338
26339 #. type: verbatim
26340 #: ../src/guestfs-actions.pod:2590
26341 #, no-wrap
26342 msgid ""
26343 " char **\n"
26344 " guestfs_initrd_list (guestfs_h *g,\n"
26345 "                      const char *path);\n"
26346 "\n"
26347 msgstr ""
26348
26349 #. type: =head2
26350 #: ../src/guestfs-actions.pod:2610
26351 msgid "guestfs_inotify_add_watch"
26352 msgstr ""
26353
26354 #. type: verbatim
26355 #: ../src/guestfs-actions.pod:2612
26356 #, no-wrap
26357 msgid ""
26358 " int64_t\n"
26359 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26360 "                            const char *path,\n"
26361 "                            int mask);\n"
26362 "\n"
26363 msgstr ""
26364
26365 #. type: =head2
26366 #: ../src/guestfs-actions.pod:2631
26367 msgid "guestfs_inotify_close"
26368 msgstr ""
26369
26370 #. type: verbatim
26371 #: ../src/guestfs-actions.pod:2633
26372 #, no-wrap
26373 msgid ""
26374 " int\n"
26375 " guestfs_inotify_close (guestfs_h *g);\n"
26376 "\n"
26377 msgstr ""
26378
26379 #. type: =head2
26380 #: ../src/guestfs-actions.pod:2644
26381 msgid "guestfs_inotify_files"
26382 msgstr ""
26383
26384 #. type: verbatim
26385 #: ../src/guestfs-actions.pod:2646
26386 #, no-wrap
26387 msgid ""
26388 " char **\n"
26389 " guestfs_inotify_files (guestfs_h *g);\n"
26390 "\n"
26391 msgstr ""
26392
26393 #. type: textblock
26394 #: ../src/guestfs-actions.pod:2649
26395 msgid ""
26396 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26397 "returns a list of pathnames of objects that were touched.  The returned "
26398 "pathnames are sorted and deduplicated."
26399 msgstr ""
26400
26401 #. type: =head2
26402 #: ../src/guestfs-actions.pod:2659
26403 msgid "guestfs_inotify_init"
26404 msgstr ""
26405
26406 #. type: verbatim
26407 #: ../src/guestfs-actions.pod:2661
26408 #, no-wrap
26409 msgid ""
26410 " int\n"
26411 " guestfs_inotify_init (guestfs_h *g,\n"
26412 "                       int maxevents);\n"
26413 "\n"
26414 msgstr ""
26415
26416 #. type: textblock
26417 #: ../src/guestfs-actions.pod:2669
26418 msgid ""
26419 "C<maxevents> is the maximum number of events which will be queued up between "
26420 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26421 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26422 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26423 "throws away events, but records the fact that it threw them away by setting "
26424 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26425 "C<guestfs_inotify_read>)."
26426 msgstr ""
26427
26428 #. type: textblock
26429 #: ../src/guestfs-actions.pod:2679
26430 msgid ""
26431 "Before any events are generated, you have to add some watches to the "
26432 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26433 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26434 msgstr ""
26435
26436 #. type: textblock
26437 #: ../src/guestfs-actions.pod:2685
26438 msgid ""
26439 "Queued up events should be read periodically by calling "
26440 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26441 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26442 "often enough then you risk the internal queue overflowing."
26443 msgstr ""
26444
26445 #. type: textblock
26446 #: ../src/guestfs-actions.pod:2692
26447 msgid ""
26448 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26449 "This also removes any watches automatically."
26450 msgstr ""
26451
26452 #. type: =head2
26453 #: ../src/guestfs-actions.pod:2705
26454 msgid "guestfs_inotify_read"
26455 msgstr ""
26456
26457 #. type: verbatim
26458 #: ../src/guestfs-actions.pod:2707
26459 #, no-wrap
26460 msgid ""
26461 " struct guestfs_inotify_event_list *\n"
26462 " guestfs_inotify_read (guestfs_h *g);\n"
26463 "\n"
26464 msgstr ""
26465
26466 #. type: textblock
26467 #: ../src/guestfs-actions.pod:2721
26468 msgid ""
26469 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26470 "there was an error.  I<The caller must call "
26471 "C<guestfs_free_inotify_event_list> after use>."
26472 msgstr ""
26473
26474 #. type: =head2
26475 #: ../src/guestfs-actions.pod:2727
26476 msgid "guestfs_inotify_rm_watch"
26477 msgstr ""
26478
26479 #. type: verbatim
26480 #: ../src/guestfs-actions.pod:2729
26481 #, no-wrap
26482 msgid ""
26483 " int\n"
26484 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26485 "                           int wd);\n"
26486 "\n"
26487 msgstr ""
26488
26489 #. type: textblock
26490 #: ../src/guestfs-actions.pod:2733
26491 msgid ""
26492 "Remove a previously defined inotify watch.  See "
26493 "C<guestfs_inotify_add_watch>."
26494 msgstr ""
26495
26496 #. type: =head2
26497 #: ../src/guestfs-actions.pod:2740
26498 msgid "guestfs_inspect_get_arch"
26499 msgstr ""
26500
26501 #. type: verbatim
26502 #: ../src/guestfs-actions.pod:2742
26503 #, no-wrap
26504 msgid ""
26505 " char *\n"
26506 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26507 "                           const char *root);\n"
26508 "\n"
26509 msgstr ""
26510
26511 #. type: textblock
26512 #: ../src/guestfs-actions.pod:2746
26513 msgid ""
26514 "This returns the architecture of the inspected operating system.  The "
26515 "possible return values are listed under C<guestfs_file_architecture>."
26516 msgstr ""
26517
26518 #. type: =head2
26519 #: ../src/guestfs-actions.pod:2760
26520 msgid "guestfs_inspect_get_distro"
26521 msgstr ""
26522
26523 #. type: verbatim
26524 #: ../src/guestfs-actions.pod:2762
26525 #, no-wrap
26526 msgid ""
26527 " char *\n"
26528 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26529 "                             const char *root);\n"
26530 "\n"
26531 msgstr ""
26532
26533 #. type: =head2
26534 #: ../src/guestfs-actions.pod:2862
26535 msgid "guestfs_inspect_get_drive_mappings"
26536 msgstr ""
26537
26538 #. type: verbatim
26539 #: ../src/guestfs-actions.pod:2864
26540 #, no-wrap
26541 msgid ""
26542 " char **\n"
26543 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26544 "                                     const char *root);\n"
26545 "\n"
26546 msgstr ""
26547
26548 #. type: textblock
26549 #: ../src/guestfs-actions.pod:2893
26550 msgid ""
26551 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26552 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26553 msgstr ""
26554
26555 #. type: textblock
26556 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165 ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:7310
26557 msgid ""
26558 "This function returns a NULL-terminated array of strings, or NULL if there "
26559 "was an error.  The array of strings will always have length C<2n+1>, where "
26560 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26561 "caller must free the strings and the array after use>."
26562 msgstr ""
26563
26564 #. type: textblock
26565 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
26566 msgid "(Added in 1.9.17)"
26567 msgstr ""
26568
26569 #. type: =head2
26570 #: ../src/guestfs-actions.pod:2905
26571 msgid "guestfs_inspect_get_filesystems"
26572 msgstr ""
26573
26574 #. type: verbatim
26575 #: ../src/guestfs-actions.pod:2907
26576 #, no-wrap
26577 msgid ""
26578 " char **\n"
26579 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26580 "                                  const char *root);\n"
26581 "\n"
26582 msgstr ""
26583
26584 #. type: textblock
26585 #: ../src/guestfs-actions.pod:2919
26586 msgid ""
26587 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26588 "C<guestfs_inspect_get_mountpoints>."
26589 msgstr ""
26590
26591 #. type: =head2
26592 #: ../src/guestfs-actions.pod:2928
26593 msgid "guestfs_inspect_get_format"
26594 msgstr ""
26595
26596 #. type: verbatim
26597 #: ../src/guestfs-actions.pod:2930
26598 #, no-wrap
26599 msgid ""
26600 " char *\n"
26601 " guestfs_inspect_get_format (guestfs_h *g,\n"
26602 "                             const char *root);\n"
26603 "\n"
26604 msgstr ""
26605
26606 #. type: textblock
26607 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:6190
26608 msgid "(Added in 1.9.4)"
26609 msgstr ""
26610
26611 #. type: =head2
26612 #: ../src/guestfs-actions.pod:2966
26613 msgid "guestfs_inspect_get_hostname"
26614 msgstr ""
26615
26616 #. type: verbatim
26617 #: ../src/guestfs-actions.pod:2968
26618 #, no-wrap
26619 msgid ""
26620 " char *\n"
26621 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26622 "                               const char *root);\n"
26623 "\n"
26624 msgstr ""
26625
26626 #. type: textblock
26627 #: ../src/guestfs-actions.pod:2983
26628 msgid "(Added in 1.7.9)"
26629 msgstr ""
26630
26631 #. type: =head2
26632 #: ../src/guestfs-actions.pod:2985
26633 msgid "guestfs_inspect_get_icon"
26634 msgstr ""
26635
26636 #. type: verbatim
26637 #: ../src/guestfs-actions.pod:2987
26638 #, no-wrap
26639 msgid ""
26640 " char *\n"
26641 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26642 "                           const char *root,\n"
26643 "                           size_t *size_r,\n"
26644 "                           ...);\n"
26645 "\n"
26646 msgstr ""
26647
26648 #. type: verbatim
26649 #: ../src/guestfs-actions.pod:2998
26650 #, no-wrap
26651 msgid ""
26652 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26653 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26654 "\n"
26655 msgstr ""
26656
26657 #. type: textblock
26658 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:5139
26659 msgid "(Added in 1.11.12)"
26660 msgstr ""
26661
26662 #. type: =head2
26663 #: ../src/guestfs-actions.pod:3067
26664 msgid "guestfs_inspect_get_icon_va"
26665 msgstr ""
26666
26667 #. type: verbatim
26668 #: ../src/guestfs-actions.pod:3069
26669 #, no-wrap
26670 msgid ""
26671 " char *\n"
26672 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26673 "                              const char *root,\n"
26674 "                              size_t *size_r,\n"
26675 "                              va_list args);\n"
26676 "\n"
26677 msgstr ""
26678
26679 #. type: textblock
26680 #: ../src/guestfs-actions.pod:3075
26681 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26682 msgstr ""
26683
26684 #. type: =head2
26685 #: ../src/guestfs-actions.pod:3079
26686 msgid "guestfs_inspect_get_icon_argv"
26687 msgstr ""
26688
26689 #. type: verbatim
26690 #: ../src/guestfs-actions.pod:3081
26691 #, no-wrap
26692 msgid ""
26693 " char *\n"
26694 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26695 "                                const char *root,\n"
26696 "                                size_t *size_r,\n"
26697 "                                const struct guestfs_inspect_get_icon_argv "
26698 "*optargs);\n"
26699 "\n"
26700 msgstr ""
26701
26702 #. type: textblock
26703 #: ../src/guestfs-actions.pod:3087
26704 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26705 msgstr ""
26706
26707 #. type: =head2
26708 #: ../src/guestfs-actions.pod:3091
26709 msgid "guestfs_inspect_get_major_version"
26710 msgstr ""
26711
26712 #. type: verbatim
26713 #: ../src/guestfs-actions.pod:3093
26714 #, no-wrap
26715 msgid ""
26716 " int\n"
26717 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26718 "                                    const char *root);\n"
26719 "\n"
26720 msgstr ""
26721
26722 #. type: =head2
26723 #: ../src/guestfs-actions.pod:3115
26724 msgid "guestfs_inspect_get_minor_version"
26725 msgstr ""
26726
26727 #. type: verbatim
26728 #: ../src/guestfs-actions.pod:3117
26729 #, no-wrap
26730 msgid ""
26731 " int\n"
26732 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26733 "                                    const char *root);\n"
26734 "\n"
26735 msgstr ""
26736
26737 #. type: textblock
26738 #: ../src/guestfs-actions.pod:3126
26739 msgid ""
26740 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26741 "C<guestfs_inspect_get_major_version>."
26742 msgstr ""
26743
26744 #. type: =head2
26745 #: ../src/guestfs-actions.pod:3133
26746 msgid "guestfs_inspect_get_mountpoints"
26747 msgstr ""
26748
26749 #. type: verbatim
26750 #: ../src/guestfs-actions.pod:3135
26751 #, no-wrap
26752 msgid ""
26753 " char **\n"
26754 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26755 "                                  const char *root);\n"
26756 "\n"
26757 msgstr ""
26758
26759 #. type: textblock
26760 #: ../src/guestfs-actions.pod:3156
26761 msgid ""
26762 "For operating systems like Windows which still use drive letters, this call "
26763 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26764 "information about the mapping of drive letters to partitions, see "
26765 "C<guestfs_inspect_get_drive_mappings>."
26766 msgstr ""
26767
26768 #. type: textblock
26769 #: ../src/guestfs-actions.pod:3162
26770 msgid ""
26771 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26772 "C<guestfs_inspect_get_filesystems>."
26773 msgstr ""
26774
26775 #. type: =head2
26776 #: ../src/guestfs-actions.pod:3173
26777 msgid "guestfs_inspect_get_package_format"
26778 msgstr ""
26779
26780 #. type: verbatim
26781 #: ../src/guestfs-actions.pod:3175
26782 #, no-wrap
26783 msgid ""
26784 " char *\n"
26785 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26786 "                                     const char *root);\n"
26787 "\n"
26788 msgstr ""
26789
26790 #. type: textblock
26791 #: ../src/guestfs-actions.pod:3179
26792 msgid ""
26793 "This function and C<guestfs_inspect_get_package_management> return the "
26794 "package format and package management tool used by the inspected operating "
26795 "system.  For example for Fedora these functions would return C<rpm> (package "
26796 "format) and C<yum> (package management)."
26797 msgstr ""
26798
26799 #. type: textblock
26800 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
26801 msgid "(Added in 1.7.5)"
26802 msgstr ""
26803
26804 #. type: =head2
26805 #: ../src/guestfs-actions.pod:3200
26806 msgid "guestfs_inspect_get_package_management"
26807 msgstr ""
26808
26809 #. type: verbatim
26810 #: ../src/guestfs-actions.pod:3202
26811 #, no-wrap
26812 msgid ""
26813 " char *\n"
26814 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26815 "                                         const char *root);\n"
26816 "\n"
26817 msgstr ""
26818
26819 #. type: textblock
26820 #: ../src/guestfs-actions.pod:3206
26821 msgid ""
26822 "C<guestfs_inspect_get_package_format> and this function return the package "
26823 "format and package management tool used by the inspected operating system.  "
26824 "For example for Fedora these functions would return C<rpm> (package format) "
26825 "and C<yum> (package management)."
26826 msgstr ""
26827
26828 #. type: =head2
26829 #: ../src/guestfs-actions.pod:3228
26830 msgid "guestfs_inspect_get_product_name"
26831 msgstr ""
26832
26833 #. type: verbatim
26834 #: ../src/guestfs-actions.pod:3230
26835 #, no-wrap
26836 msgid ""
26837 " char *\n"
26838 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26839 "                                   const char *root);\n"
26840 "\n"
26841 msgstr ""
26842
26843 #. type: =head2
26844 #: ../src/guestfs-actions.pod:3249
26845 msgid "guestfs_inspect_get_product_variant"
26846 msgstr ""
26847
26848 #. type: verbatim
26849 #: ../src/guestfs-actions.pod:3251
26850 #, no-wrap
26851 msgid ""
26852 " char *\n"
26853 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26854 "                                      const char *root);\n"
26855 "\n"
26856 msgstr ""
26857
26858 #. type: textblock
26859 #: ../src/guestfs-actions.pod:3274
26860 msgid ""
26861 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26862 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26863 msgstr ""
26864
26865 #. type: textblock
26866 #: ../src/guestfs-actions.pod:3281
26867 msgid "(Added in 1.9.13)"
26868 msgstr ""
26869
26870 #. type: =head2
26871 #: ../src/guestfs-actions.pod:3283
26872 msgid "guestfs_inspect_get_roots"
26873 msgstr ""
26874
26875 #. type: verbatim
26876 #: ../src/guestfs-actions.pod:3285
26877 #, no-wrap
26878 msgid ""
26879 " char **\n"
26880 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26881 "\n"
26882 msgstr ""
26883
26884 #. type: textblock
26885 #: ../src/guestfs-actions.pod:3288
26886 msgid ""
26887 "This function is a convenient way to get the list of root devices, as "
26888 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26889 "the whole inspection process."
26890 msgstr ""
26891
26892 #. type: textblock
26893 #: ../src/guestfs-actions.pod:3292
26894 msgid ""
26895 "This returns an empty list if either no root devices were found or the "
26896 "caller has not called C<guestfs_inspect_os>."
26897 msgstr ""
26898
26899 #. type: textblock
26900 #: ../src/guestfs-actions.pod:3301
26901 msgid "(Added in 1.7.3)"
26902 msgstr ""
26903
26904 #. type: =head2
26905 #: ../src/guestfs-actions.pod:3303
26906 msgid "guestfs_inspect_get_type"
26907 msgstr ""
26908
26909 #. type: verbatim
26910 #: ../src/guestfs-actions.pod:3305
26911 #, no-wrap
26912 msgid ""
26913 " char *\n"
26914 " guestfs_inspect_get_type (guestfs_h *g,\n"
26915 "                           const char *root);\n"
26916 "\n"
26917 msgstr ""
26918
26919 #. type: =head2
26920 #: ../src/guestfs-actions.pod:3346
26921 msgid "guestfs_inspect_get_windows_current_control_set"
26922 msgstr ""
26923
26924 #. type: verbatim
26925 #: ../src/guestfs-actions.pod:3348
26926 #, no-wrap
26927 msgid ""
26928 " char *\n"
26929 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26930 "                                                  const char *root);\n"
26931 "\n"
26932 msgstr ""
26933
26934 #. type: =head2
26935 #: ../src/guestfs-actions.pod:3366
26936 msgid "guestfs_inspect_get_windows_systemroot"
26937 msgstr ""
26938
26939 #. type: verbatim
26940 #: ../src/guestfs-actions.pod:3368
26941 #, no-wrap
26942 msgid ""
26943 " char *\n"
26944 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26945 "                                         const char *root);\n"
26946 "\n"
26947 msgstr ""
26948
26949 #. type: textblock
26950 #: ../src/guestfs-actions.pod:3384
26951 msgid "(Added in 1.5.25)"
26952 msgstr ""
26953
26954 #. type: =head2
26955 #: ../src/guestfs-actions.pod:3386
26956 msgid "guestfs_inspect_is_live"
26957 msgstr ""
26958
26959 #. type: verbatim
26960 #: ../src/guestfs-actions.pod:3388
26961 #, no-wrap
26962 msgid ""
26963 " int\n"
26964 " guestfs_inspect_is_live (guestfs_h *g,\n"
26965 "                          const char *root);\n"
26966 "\n"
26967 msgstr ""
26968
26969 #. type: textblock
26970 #: ../src/guestfs-actions.pod:3392
26971 msgid ""
26972 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26973 "disk), then this returns true if a live image was detected on the disk."
26974 msgstr ""
26975
26976 #. type: =head2
26977 #: ../src/guestfs-actions.pod:3402
26978 msgid "guestfs_inspect_is_multipart"
26979 msgstr ""
26980
26981 #. type: verbatim
26982 #: ../src/guestfs-actions.pod:3404
26983 #, no-wrap
26984 msgid ""
26985 " int\n"
26986 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26987 "                               const char *root);\n"
26988 "\n"
26989 msgstr ""
26990
26991 #. type: textblock
26992 #: ../src/guestfs-actions.pod:3408
26993 msgid ""
26994 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26995 "disk), then this returns true if the disk is part of a set."
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../src/guestfs-actions.pod:3418
27000 msgid "guestfs_inspect_is_netinst"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../src/guestfs-actions.pod:3420
27005 #, no-wrap
27006 msgid ""
27007 " int\n"
27008 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27009 "                             const char *root);\n"
27010 "\n"
27011 msgstr ""
27012
27013 #. type: textblock
27014 #: ../src/guestfs-actions.pod:3424
27015 msgid ""
27016 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27017 "disk), then this returns true if the disk is a network installer, ie. not a "
27018 "self-contained install CD but one which is likely to require network access "
27019 "to complete the install."
27020 msgstr ""
27021
27022 #. type: =head2
27023 #: ../src/guestfs-actions.pod:3436
27024 msgid "guestfs_inspect_list_applications"
27025 msgstr ""
27026
27027 #. type: verbatim
27028 #: ../src/guestfs-actions.pod:3438
27029 #, no-wrap
27030 msgid ""
27031 " struct guestfs_application_list *\n"
27032 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27033 "                                    const char *root);\n"
27034 "\n"
27035 msgstr ""
27036
27037 #. type: textblock
27038 #: ../src/guestfs-actions.pod:3444
27039 msgid ""
27040 "I<Note:> This call works differently from other parts of the inspection "
27041 "API.  You have to call C<guestfs_inspect_os>, then "
27042 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27043 "this.  Listing applications is a significantly more difficult operation "
27044 "which requires access to the full filesystem.  Also note that unlike the "
27045 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27046 "the libguestfs handle, this call actually reads parts of the mounted "
27047 "filesystems during the call."
27048 msgstr ""
27049
27050 #. type: textblock
27051 #: ../src/guestfs-actions.pod:3534
27052 msgid ""
27053 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27054 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
27055 "after use>."
27056 msgstr ""
27057
27058 #. type: textblock
27059 #: ../src/guestfs-actions.pod:3538
27060 msgid "(Added in 1.7.8)"
27061 msgstr ""
27062
27063 #. type: =head2
27064 #: ../src/guestfs-actions.pod:3540
27065 msgid "guestfs_inspect_os"
27066 msgstr ""
27067
27068 #. type: verbatim
27069 #: ../src/guestfs-actions.pod:3542
27070 #, no-wrap
27071 msgid ""
27072 " char **\n"
27073 " guestfs_inspect_os (guestfs_h *g);\n"
27074 "\n"
27075 msgstr ""
27076
27077 #. type: textblock
27078 #: ../src/guestfs-actions.pod:3558
27079 msgid ""
27080 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27081 "functions in order to query further information about each operating system, "
27082 "such as the name and version."
27083 msgstr ""
27084
27085 #. type: textblock
27086 #: ../src/guestfs-actions.pod:3563
27087 msgid ""
27088 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27089 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27090 "the contents.  This should be called with no disks currently mounted.  The "
27091 "function may also use Augeas, so any existing Augeas handle will be closed."
27092 msgstr ""
27093
27094 #. type: textblock
27095 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3988
27096 msgid "See also C<guestfs_list_filesystems>."
27097 msgstr ""
27098
27099 #. type: =head2
27100 #: ../src/guestfs-actions.pod:3583
27101 msgid "guestfs_is_blockdev"
27102 msgstr ""
27103
27104 #. type: verbatim
27105 #: ../src/guestfs-actions.pod:3585
27106 #, no-wrap
27107 msgid ""
27108 " int\n"
27109 " guestfs_is_blockdev (guestfs_h *g,\n"
27110 "                      const char *path);\n"
27111 "\n"
27112 msgstr ""
27113
27114 #. type: textblock
27115 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738 ../src/guestfs-actions.pod:3753
27116 msgid "See also C<guestfs_stat>."
27117 msgstr ""
27118
27119 #. type: textblock
27120 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3757
27121 msgid "(Added in 1.5.10)"
27122 msgstr ""
27123
27124 #. type: =head2
27125 #: ../src/guestfs-actions.pod:3598
27126 msgid "guestfs_is_busy"
27127 msgstr ""
27128
27129 #. type: verbatim
27130 #: ../src/guestfs-actions.pod:3600
27131 #, no-wrap
27132 msgid ""
27133 " int\n"
27134 " guestfs_is_busy (guestfs_h *g);\n"
27135 "\n"
27136 msgstr ""
27137
27138 #. type: =head2
27139 #: ../src/guestfs-actions.pod:3612
27140 msgid "guestfs_is_chardev"
27141 msgstr ""
27142
27143 #. type: verbatim
27144 #: ../src/guestfs-actions.pod:3614
27145 #, no-wrap
27146 msgid ""
27147 " int\n"
27148 " guestfs_is_chardev (guestfs_h *g,\n"
27149 "                     const char *path);\n"
27150 "\n"
27151 msgstr ""
27152
27153 #. type: =head2
27154 #: ../src/guestfs-actions.pod:3627
27155 msgid "guestfs_is_config"
27156 msgstr ""
27157
27158 #. type: verbatim
27159 #: ../src/guestfs-actions.pod:3629
27160 #, no-wrap
27161 msgid ""
27162 " int\n"
27163 " guestfs_is_config (guestfs_h *g);\n"
27164 "\n"
27165 msgstr ""
27166
27167 #. type: =head2
27168 #: ../src/guestfs-actions.pod:3641
27169 msgid "guestfs_is_dir"
27170 msgstr ""
27171
27172 #. type: verbatim
27173 #: ../src/guestfs-actions.pod:3643
27174 #, no-wrap
27175 msgid ""
27176 " int\n"
27177 " guestfs_is_dir (guestfs_h *g,\n"
27178 "                 const char *path);\n"
27179 "\n"
27180 msgstr ""
27181
27182 #. type: =head2
27183 #: ../src/guestfs-actions.pod:3657
27184 msgid "guestfs_is_fifo"
27185 msgstr ""
27186
27187 #. type: verbatim
27188 #: ../src/guestfs-actions.pod:3659
27189 #, no-wrap
27190 msgid ""
27191 " int\n"
27192 " guestfs_is_fifo (guestfs_h *g,\n"
27193 "                  const char *path);\n"
27194 "\n"
27195 msgstr ""
27196
27197 #. type: =head2
27198 #: ../src/guestfs-actions.pod:3672
27199 msgid "guestfs_is_file"
27200 msgstr ""
27201
27202 #. type: verbatim
27203 #: ../src/guestfs-actions.pod:3674
27204 #, no-wrap
27205 msgid ""
27206 " int\n"
27207 " guestfs_is_file (guestfs_h *g,\n"
27208 "                  const char *path);\n"
27209 "\n"
27210 msgstr ""
27211
27212 #. type: =head2
27213 #: ../src/guestfs-actions.pod:3688
27214 msgid "guestfs_is_launching"
27215 msgstr ""
27216
27217 #. type: verbatim
27218 #: ../src/guestfs-actions.pod:3690
27219 #, no-wrap
27220 msgid ""
27221 " int\n"
27222 " guestfs_is_launching (guestfs_h *g);\n"
27223 "\n"
27224 msgstr ""
27225
27226 #. type: =head2
27227 #: ../src/guestfs-actions.pod:3702
27228 msgid "guestfs_is_lv"
27229 msgstr ""
27230
27231 #. type: verbatim
27232 #: ../src/guestfs-actions.pod:3704
27233 #, no-wrap
27234 msgid ""
27235 " int\n"
27236 " guestfs_is_lv (guestfs_h *g,\n"
27237 "                const char *device);\n"
27238 "\n"
27239 msgstr ""
27240
27241 #. type: =head2
27242 #: ../src/guestfs-actions.pod:3715
27243 msgid "guestfs_is_ready"
27244 msgstr ""
27245
27246 #. type: verbatim
27247 #: ../src/guestfs-actions.pod:3717
27248 #, no-wrap
27249 msgid ""
27250 " int\n"
27251 " guestfs_is_ready (guestfs_h *g);\n"
27252 "\n"
27253 msgstr ""
27254
27255 #. type: =head2
27256 #: ../src/guestfs-actions.pod:3729
27257 msgid "guestfs_is_socket"
27258 msgstr ""
27259
27260 #. type: verbatim
27261 #: ../src/guestfs-actions.pod:3731
27262 #, no-wrap
27263 msgid ""
27264 " int\n"
27265 " guestfs_is_socket (guestfs_h *g,\n"
27266 "                    const char *path);\n"
27267 "\n"
27268 msgstr ""
27269
27270 #. type: =head2
27271 #: ../src/guestfs-actions.pod:3744
27272 msgid "guestfs_is_symlink"
27273 msgstr ""
27274
27275 #. type: verbatim
27276 #: ../src/guestfs-actions.pod:3746
27277 #, no-wrap
27278 msgid ""
27279 " int\n"
27280 " guestfs_is_symlink (guestfs_h *g,\n"
27281 "                     const char *path);\n"
27282 "\n"
27283 msgstr ""
27284
27285 #. type: =head2
27286 #: ../src/guestfs-actions.pod:3759
27287 msgid "guestfs_is_zero"
27288 msgstr ""
27289
27290 #. type: verbatim
27291 #: ../src/guestfs-actions.pod:3761
27292 #, no-wrap
27293 msgid ""
27294 " int\n"
27295 " guestfs_is_zero (guestfs_h *g,\n"
27296 "                  const char *path);\n"
27297 "\n"
27298 msgstr ""
27299
27300 #. type: textblock
27301 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
27302 msgid "(Added in 1.11.8)"
27303 msgstr ""
27304
27305 #. type: =head2
27306 #: ../src/guestfs-actions.pod:3772
27307 msgid "guestfs_is_zero_device"
27308 msgstr ""
27309
27310 #. type: verbatim
27311 #: ../src/guestfs-actions.pod:3774
27312 #, no-wrap
27313 msgid ""
27314 " int\n"
27315 " guestfs_is_zero_device (guestfs_h *g,\n"
27316 "                         const char *device);\n"
27317 "\n"
27318 msgstr ""
27319
27320 #. type: =head2
27321 #: ../src/guestfs-actions.pod:3786
27322 msgid "guestfs_kill_subprocess"
27323 msgstr ""
27324
27325 #. type: verbatim
27326 #: ../src/guestfs-actions.pod:3788
27327 #, no-wrap
27328 msgid ""
27329 " int\n"
27330 " guestfs_kill_subprocess (guestfs_h *g);\n"
27331 "\n"
27332 msgstr ""
27333
27334 #. type: =head2
27335 #: ../src/guestfs-actions.pod:3797
27336 msgid "guestfs_launch"
27337 msgstr ""
27338
27339 #. type: verbatim
27340 #: ../src/guestfs-actions.pod:3799
27341 #, no-wrap
27342 msgid ""
27343 " int\n"
27344 " guestfs_launch (guestfs_h *g);\n"
27345 "\n"
27346 msgstr ""
27347
27348 #. type: =head2
27349 #: ../src/guestfs-actions.pod:3817
27350 msgid "guestfs_lchown"
27351 msgstr ""
27352
27353 #. type: verbatim
27354 #: ../src/guestfs-actions.pod:3819
27355 #, no-wrap
27356 msgid ""
27357 " int\n"
27358 " guestfs_lchown (guestfs_h *g,\n"
27359 "                 int owner,\n"
27360 "                 int group,\n"
27361 "                 const char *path);\n"
27362 "\n"
27363 msgstr ""
27364
27365 #. type: textblock
27366 #: ../src/guestfs-actions.pod:3825
27367 msgid ""
27368 "Change the file owner to C<owner> and group to C<group>.  This is like "
27369 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27370 "changed, not the target."
27371 msgstr ""
27372
27373 #. type: =head2
27374 #: ../src/guestfs-actions.pod:3837
27375 msgid "guestfs_lgetxattr"
27376 msgstr ""
27377
27378 #. type: verbatim
27379 #: ../src/guestfs-actions.pod:3839
27380 #, no-wrap
27381 msgid ""
27382 " char *\n"
27383 " guestfs_lgetxattr (guestfs_h *g,\n"
27384 "                    const char *path,\n"
27385 "                    const char *name,\n"
27386 "                    size_t *size_r);\n"
27387 "\n"
27388 msgstr ""
27389
27390 #. type: textblock
27391 #: ../src/guestfs-actions.pod:3859
27392 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27393 msgstr ""
27394
27395 #. type: =head2
27396 #: ../src/guestfs-actions.pod:3867
27397 msgid "guestfs_lgetxattrs"
27398 msgstr ""
27399
27400 #. type: verbatim
27401 #: ../src/guestfs-actions.pod:3869
27402 #, no-wrap
27403 msgid ""
27404 " struct guestfs_xattr_list *\n"
27405 " guestfs_lgetxattrs (guestfs_h *g,\n"
27406 "                     const char *path);\n"
27407 "\n"
27408 msgstr ""
27409
27410 #. type: textblock
27411 #: ../src/guestfs-actions.pod:3873
27412 msgid ""
27413 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27414 "then it returns the extended attributes of the link itself."
27415 msgstr ""
27416
27417 #. type: =head2
27418 #: ../src/guestfs-actions.pod:3883
27419 msgid "guestfs_list_9p"
27420 msgstr ""
27421
27422 #. type: verbatim
27423 #: ../src/guestfs-actions.pod:3885
27424 #, no-wrap
27425 msgid ""
27426 " char **\n"
27427 " guestfs_list_9p (guestfs_h *g);\n"
27428 "\n"
27429 msgstr ""
27430
27431 #. type: =head2
27432 #: ../src/guestfs-actions.pod:3897
27433 msgid "guestfs_list_devices"
27434 msgstr ""
27435
27436 #. type: verbatim
27437 #: ../src/guestfs-actions.pod:3899
27438 #, no-wrap
27439 msgid ""
27440 " char **\n"
27441 " guestfs_list_devices (guestfs_h *g);\n"
27442 "\n"
27443 msgstr ""
27444
27445 #. type: =head2
27446 #: ../src/guestfs-actions.pod:3914
27447 msgid "guestfs_list_dm_devices"
27448 msgstr ""
27449
27450 #. type: verbatim
27451 #: ../src/guestfs-actions.pod:3916
27452 #, no-wrap
27453 msgid ""
27454 " char **\n"
27455 " guestfs_list_dm_devices (guestfs_h *g);\n"
27456 "\n"
27457 msgstr ""
27458
27459 #. type: textblock
27460 #: ../src/guestfs-actions.pod:3921
27461 msgid ""
27462 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27463 "previous call to C<guestfs_luks_open>."
27464 msgstr ""
27465
27466 #. type: textblock
27467 #: ../src/guestfs-actions.pod:3924
27468 msgid ""
27469 "Device mapper devices which correspond to logical volumes are I<not> "
27470 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27471 "volumes."
27472 msgstr ""
27473
27474 #. type: textblock
27475 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
27476 msgid "(Added in 1.11.15)"
27477 msgstr ""
27478
27479 #. type: =head2
27480 #: ../src/guestfs-actions.pod:3934
27481 msgid "guestfs_list_filesystems"
27482 msgstr ""
27483
27484 #. type: verbatim
27485 #: ../src/guestfs-actions.pod:3936
27486 #, no-wrap
27487 msgid ""
27488 " char **\n"
27489 " guestfs_list_filesystems (guestfs_h *g);\n"
27490 "\n"
27491 msgstr ""
27492
27493 #. type: textblock
27494 #: ../src/guestfs-actions.pod:3956
27495 msgid ""
27496 "This command runs other libguestfs commands, which might include "
27497 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27498 "soon after launch and only when nothing is mounted."
27499 msgstr ""
27500
27501 #. type: textblock
27502 #: ../src/guestfs-actions.pod:3960
27503 msgid ""
27504 "Not all of the filesystems returned will be mountable.  In particular, swap "
27505 "partitions are returned in the list.  Also this command does not check that "
27506 "each filesystem found is valid and mountable, and some filesystems might be "
27507 "mountable but require special options.  Filesystems may not all belong to a "
27508 "single logical operating system (use C<guestfs_inspect_os> to look for "
27509 "OSes)."
27510 msgstr ""
27511
27512 #. type: textblock
27513 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
27514 msgid "(Added in 1.5.15)"
27515 msgstr ""
27516
27517 #. type: =head2
27518 #: ../src/guestfs-actions.pod:3976
27519 msgid "guestfs_list_partitions"
27520 msgstr ""
27521
27522 #. type: verbatim
27523 #: ../src/guestfs-actions.pod:3978
27524 #, no-wrap
27525 msgid ""
27526 " char **\n"
27527 " guestfs_list_partitions (guestfs_h *g);\n"
27528 "\n"
27529 msgstr ""
27530
27531 #. type: textblock
27532 #: ../src/guestfs-actions.pod:3985
27533 msgid ""
27534 "This does not return logical volumes.  For that you will need to call "
27535 "C<guestfs_lvs>."
27536 msgstr ""
27537
27538 #. type: =head2
27539 #: ../src/guestfs-actions.pod:3996
27540 msgid "guestfs_ll"
27541 msgstr ""
27542
27543 #. type: verbatim
27544 #: ../src/guestfs-actions.pod:3998
27545 #, no-wrap
27546 msgid ""
27547 " char *\n"
27548 " guestfs_ll (guestfs_h *g,\n"
27549 "             const char *directory);\n"
27550 "\n"
27551 msgstr ""
27552
27553 #. type: =head2
27554 #: ../src/guestfs-actions.pod:4013
27555 msgid "guestfs_ln"
27556 msgstr ""
27557
27558 #. type: verbatim
27559 #: ../src/guestfs-actions.pod:4015
27560 #, no-wrap
27561 msgid ""
27562 " int\n"
27563 " guestfs_ln (guestfs_h *g,\n"
27564 "             const char *target,\n"
27565 "             const char *linkname);\n"
27566 "\n"
27567 msgstr ""
27568
27569 #. type: =head2
27570 #: ../src/guestfs-actions.pod:4026
27571 msgid "guestfs_ln_f"
27572 msgstr ""
27573
27574 #. type: verbatim
27575 #: ../src/guestfs-actions.pod:4028
27576 #, no-wrap
27577 msgid ""
27578 " int\n"
27579 " guestfs_ln_f (guestfs_h *g,\n"
27580 "               const char *target,\n"
27581 "               const char *linkname);\n"
27582 "\n"
27583 msgstr ""
27584
27585 #. type: =head2
27586 #: ../src/guestfs-actions.pod:4040
27587 msgid "guestfs_ln_s"
27588 msgstr ""
27589
27590 #. type: verbatim
27591 #: ../src/guestfs-actions.pod:4042
27592 #, no-wrap
27593 msgid ""
27594 " int\n"
27595 " guestfs_ln_s (guestfs_h *g,\n"
27596 "               const char *target,\n"
27597 "               const char *linkname);\n"
27598 "\n"
27599 msgstr ""
27600
27601 #. type: =head2
27602 #: ../src/guestfs-actions.pod:4053
27603 msgid "guestfs_ln_sf"
27604 msgstr ""
27605
27606 #. type: verbatim
27607 #: ../src/guestfs-actions.pod:4055
27608 #, no-wrap
27609 msgid ""
27610 " int\n"
27611 " guestfs_ln_sf (guestfs_h *g,\n"
27612 "                const char *target,\n"
27613 "                const char *linkname);\n"
27614 "\n"
27615 msgstr ""
27616
27617 #. type: =head2
27618 #: ../src/guestfs-actions.pod:4067
27619 msgid "guestfs_lremovexattr"
27620 msgstr ""
27621
27622 #. type: verbatim
27623 #: ../src/guestfs-actions.pod:4069
27624 #, no-wrap
27625 msgid ""
27626 " int\n"
27627 " guestfs_lremovexattr (guestfs_h *g,\n"
27628 "                       const char *xattr,\n"
27629 "                       const char *path);\n"
27630 "\n"
27631 msgstr ""
27632
27633 #. type: textblock
27634 #: ../src/guestfs-actions.pod:4074
27635 msgid ""
27636 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27637 "link, then it removes an extended attribute of the link itself."
27638 msgstr ""
27639
27640 #. type: =head2
27641 #: ../src/guestfs-actions.pod:4082
27642 msgid "guestfs_ls"
27643 msgstr ""
27644
27645 #. type: verbatim
27646 #: ../src/guestfs-actions.pod:4084
27647 #, no-wrap
27648 msgid ""
27649 " char **\n"
27650 " guestfs_ls (guestfs_h *g,\n"
27651 "             const char *directory);\n"
27652 "\n"
27653 msgstr ""
27654
27655 #. type: textblock
27656 #: ../src/guestfs-actions.pod:4092
27657 msgid ""
27658 "This command is mostly useful for interactive sessions.  Programs should "
27659 "probably use C<guestfs_readdir> instead."
27660 msgstr ""
27661
27662 #. type: =head2
27663 #: ../src/guestfs-actions.pod:4101
27664 msgid "guestfs_lsetxattr"
27665 msgstr ""
27666
27667 #. type: verbatim
27668 #: ../src/guestfs-actions.pod:4103
27669 #, no-wrap
27670 msgid ""
27671 " int\n"
27672 " guestfs_lsetxattr (guestfs_h *g,\n"
27673 "                    const char *xattr,\n"
27674 "                    const char *val,\n"
27675 "                    int vallen,\n"
27676 "                    const char *path);\n"
27677 "\n"
27678 msgstr ""
27679
27680 #. type: textblock
27681 #: ../src/guestfs-actions.pod:4110
27682 msgid ""
27683 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27684 "then it sets an extended attribute of the link itself."
27685 msgstr ""
27686
27687 #. type: =head2
27688 #: ../src/guestfs-actions.pod:4118
27689 msgid "guestfs_lstat"
27690 msgstr ""
27691
27692 #. type: verbatim
27693 #: ../src/guestfs-actions.pod:4120
27694 #, no-wrap
27695 msgid ""
27696 " struct guestfs_stat *\n"
27697 " guestfs_lstat (guestfs_h *g,\n"
27698 "                const char *path);\n"
27699 "\n"
27700 msgstr ""
27701
27702 #. type: textblock
27703 #: ../src/guestfs-actions.pod:4126
27704 msgid ""
27705 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27706 "link, then the link is stat-ed, not the file it refers to."
27707 msgstr ""
27708
27709 #. type: textblock
27710 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
27711 msgid ""
27712 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27713 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27714 msgstr ""
27715
27716 #. type: textblock
27717 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917 ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
27718 msgid "(Added in 0.9.2)"
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../src/guestfs-actions.pod:4138
27723 msgid "guestfs_lstatlist"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../src/guestfs-actions.pod:4140
27728 #, no-wrap
27729 msgid ""
27730 " struct guestfs_stat_list *\n"
27731 " guestfs_lstatlist (guestfs_h *g,\n"
27732 "                    const char *path,\n"
27733 "                    char *const *names);\n"
27734 "\n"
27735 msgstr ""
27736
27737 #. type: textblock
27738 #: ../src/guestfs-actions.pod:4145
27739 msgid ""
27740 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27741 "files, where all files are in the directory C<path>.  C<names> is the list "
27742 "of files from this directory."
27743 msgstr ""
27744
27745 #. type: textblock
27746 #: ../src/guestfs-actions.pod:4154
27747 msgid ""
27748 "This call is intended for programs that want to efficiently list a directory "
27749 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27750 "for a similarly efficient call for getting extended attributes.  Very long "
27751 "directory listings might cause the protocol message size to be exceeded, "
27752 "causing this call to fail.  The caller must split up such requests into "
27753 "smaller groups of names."
27754 msgstr ""
27755
27756 #. type: textblock
27757 #: ../src/guestfs-actions.pod:4162
27758 msgid ""
27759 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27760 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27761 msgstr ""
27762
27763 #. type: =head2
27764 #: ../src/guestfs-actions.pod:4168
27765 msgid "guestfs_luks_add_key"
27766 msgstr ""
27767
27768 #. type: verbatim
27769 #: ../src/guestfs-actions.pod:4170
27770 #, no-wrap
27771 msgid ""
27772 " int\n"
27773 " guestfs_luks_add_key (guestfs_h *g,\n"
27774 "                       const char *device,\n"
27775 "                       const char *key,\n"
27776 "                       const char *newkey,\n"
27777 "                       int keyslot);\n"
27778 "\n"
27779 msgstr ""
27780
27781 #. type: textblock
27782 #: ../src/guestfs-actions.pod:4182
27783 msgid ""
27784 "Note that if C<keyslot> already contains a key, then this command will "
27785 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27786 msgstr ""
27787
27788 #. type: textblock
27789 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228 ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
27790 msgid ""
27791 "This function takes a key or passphrase parameter which could contain "
27792 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27793 "information."
27794 msgstr ""
27795
27796 #. type: textblock
27797 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
27798 msgid "(Added in 1.5.2)"
27799 msgstr ""
27800
27801 #. type: =head2
27802 #: ../src/guestfs-actions.pod:4194
27803 msgid "guestfs_luks_close"
27804 msgstr ""
27805
27806 #. type: verbatim
27807 #: ../src/guestfs-actions.pod:4196
27808 #, no-wrap
27809 msgid ""
27810 " int\n"
27811 " guestfs_luks_close (guestfs_h *g,\n"
27812 "                     const char *device);\n"
27813 "\n"
27814 msgstr ""
27815
27816 #. type: textblock
27817 #: ../src/guestfs-actions.pod:4200
27818 msgid ""
27819 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27820 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27821 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27822 "underlying block device."
27823 msgstr ""
27824
27825 #. type: textblock
27826 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379 ../src/guestfs-actions.pod:4427
27827 msgid "(Added in 1.5.1)"
27828 msgstr ""
27829
27830 #. type: =head2
27831 #: ../src/guestfs-actions.pod:4210
27832 msgid "guestfs_luks_format"
27833 msgstr ""
27834
27835 #. type: verbatim
27836 #: ../src/guestfs-actions.pod:4212
27837 #, no-wrap
27838 msgid ""
27839 " int\n"
27840 " guestfs_luks_format (guestfs_h *g,\n"
27841 "                      const char *device,\n"
27842 "                      const char *key,\n"
27843 "                      int keyslot);\n"
27844 "\n"
27845 msgstr ""
27846
27847 #. type: =head2
27848 #: ../src/guestfs-actions.pod:4234
27849 msgid "guestfs_luks_format_cipher"
27850 msgstr ""
27851
27852 #. type: verbatim
27853 #: ../src/guestfs-actions.pod:4236
27854 #, no-wrap
27855 msgid ""
27856 " int\n"
27857 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27858 "                             const char *device,\n"
27859 "                             const char *key,\n"
27860 "                             int keyslot,\n"
27861 "                             const char *cipher);\n"
27862 "\n"
27863 msgstr ""
27864
27865 #. type: textblock
27866 #: ../src/guestfs-actions.pod:4243
27867 msgid ""
27868 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27869 "set the C<cipher> used."
27870 msgstr ""
27871
27872 #. type: =head2
27873 #: ../src/guestfs-actions.pod:4257
27874 msgid "guestfs_luks_kill_slot"
27875 msgstr ""
27876
27877 #. type: verbatim
27878 #: ../src/guestfs-actions.pod:4259
27879 #, no-wrap
27880 msgid ""
27881 " int\n"
27882 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27883 "                         const char *device,\n"
27884 "                         const char *key,\n"
27885 "                         int keyslot);\n"
27886 "\n"
27887 msgstr ""
27888
27889 #. type: =head2
27890 #: ../src/guestfs-actions.pod:4277
27891 msgid "guestfs_luks_open"
27892 msgstr ""
27893
27894 #. type: verbatim
27895 #: ../src/guestfs-actions.pod:4279
27896 #, no-wrap
27897 msgid ""
27898 " int\n"
27899 " guestfs_luks_open (guestfs_h *g,\n"
27900 "                    const char *device,\n"
27901 "                    const char *key,\n"
27902 "                    const char *mapname);\n"
27903 "\n"
27904 msgstr ""
27905
27906 #. type: textblock
27907 #: ../src/guestfs-actions.pod:4297
27908 msgid ""
27909 "If this block device contains LVM volume groups, then calling "
27910 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27911 "visible."
27912 msgstr ""
27913
27914 #. type: textblock
27915 #: ../src/guestfs-actions.pod:4301
27916 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27917 msgstr ""
27918
27919 #. type: =head2
27920 #: ../src/guestfs-actions.pod:4312
27921 msgid "guestfs_luks_open_ro"
27922 msgstr ""
27923
27924 #. type: verbatim
27925 #: ../src/guestfs-actions.pod:4314
27926 #, no-wrap
27927 msgid ""
27928 " int\n"
27929 " guestfs_luks_open_ro (guestfs_h *g,\n"
27930 "                       const char *device,\n"
27931 "                       const char *key,\n"
27932 "                       const char *mapname);\n"
27933 "\n"
27934 msgstr ""
27935
27936 #. type: textblock
27937 #: ../src/guestfs-actions.pod:4320
27938 msgid ""
27939 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27940 "created."
27941 msgstr ""
27942
27943 #. type: =head2
27944 #: ../src/guestfs-actions.pod:4331
27945 msgid "guestfs_lvcreate"
27946 msgstr ""
27947
27948 #. type: verbatim
27949 #: ../src/guestfs-actions.pod:4333
27950 #, no-wrap
27951 msgid ""
27952 " int\n"
27953 " guestfs_lvcreate (guestfs_h *g,\n"
27954 "                   const char *logvol,\n"
27955 "                   const char *volgroup,\n"
27956 "                   int mbytes);\n"
27957 "\n"
27958 msgstr ""
27959
27960 #. type: =head2
27961 #: ../src/guestfs-actions.pod:4346
27962 msgid "guestfs_lvm_canonical_lv_name"
27963 msgstr ""
27964
27965 #. type: verbatim
27966 #: ../src/guestfs-actions.pod:4348
27967 #, no-wrap
27968 msgid ""
27969 " char *\n"
27970 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27971 "                                const char *lvname);\n"
27972 "\n"
27973 msgstr ""
27974
27975 #. type: textblock
27976 #: ../src/guestfs-actions.pod:4359
27977 msgid "See also C<guestfs_is_lv>."
27978 msgstr ""
27979
27980 #. type: textblock
27981 #: ../src/guestfs-actions.pod:4364
27982 msgid "(Added in 1.5.24)"
27983 msgstr ""
27984
27985 #. type: =head2
27986 #: ../src/guestfs-actions.pod:4366
27987 msgid "guestfs_lvm_clear_filter"
27988 msgstr ""
27989
27990 #. type: verbatim
27991 #: ../src/guestfs-actions.pod:4368
27992 #, no-wrap
27993 msgid ""
27994 " int\n"
27995 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27996 "\n"
27997 msgstr ""
27998
27999 #. type: textblock
28000 #: ../src/guestfs-actions.pod:4371
28001 msgid ""
28002 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
28003 "see every block device."
28004 msgstr ""
28005
28006 #. type: =head2
28007 #: ../src/guestfs-actions.pod:4381
28008 msgid "guestfs_lvm_remove_all"
28009 msgstr ""
28010
28011 #. type: verbatim
28012 #: ../src/guestfs-actions.pod:4383
28013 #, no-wrap
28014 msgid ""
28015 " int\n"
28016 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28017 "\n"
28018 msgstr ""
28019
28020 #. type: =head2
28021 #: ../src/guestfs-actions.pod:4396
28022 msgid "guestfs_lvm_set_filter"
28023 msgstr ""
28024
28025 #. type: verbatim
28026 #: ../src/guestfs-actions.pod:4398
28027 #, no-wrap
28028 msgid ""
28029 " int\n"
28030 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28031 "                         char *const *devices);\n"
28032 "\n"
28033 msgstr ""
28034
28035 #. type: =head2
28036 #: ../src/guestfs-actions.pod:4429
28037 msgid "guestfs_lvremove"
28038 msgstr ""
28039
28040 #. type: verbatim
28041 #: ../src/guestfs-actions.pod:4431
28042 #, no-wrap
28043 msgid ""
28044 " int\n"
28045 " guestfs_lvremove (guestfs_h *g,\n"
28046 "                   const char *device);\n"
28047 "\n"
28048 msgstr ""
28049
28050 #. type: textblock
28051 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836 ../src/guestfs-actions.pod:7686
28052 msgid "(Added in 1.0.13)"
28053 msgstr ""
28054
28055 #. type: =head2
28056 #: ../src/guestfs-actions.pod:4445
28057 msgid "guestfs_lvrename"
28058 msgstr ""
28059
28060 #. type: verbatim
28061 #: ../src/guestfs-actions.pod:4447
28062 #, no-wrap
28063 msgid ""
28064 " int\n"
28065 " guestfs_lvrename (guestfs_h *g,\n"
28066 "                   const char *logvol,\n"
28067 "                   const char *newlogvol);\n"
28068 "\n"
28069 msgstr ""
28070
28071 #. type: textblock
28072 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
28073 msgid "(Added in 1.0.83)"
28074 msgstr ""
28075
28076 #. type: =head2
28077 #: ../src/guestfs-actions.pod:4458
28078 msgid "guestfs_lvresize"
28079 msgstr ""
28080
28081 #. type: verbatim
28082 #: ../src/guestfs-actions.pod:4460
28083 #, no-wrap
28084 msgid ""
28085 " int\n"
28086 " guestfs_lvresize (guestfs_h *g,\n"
28087 "                   const char *device,\n"
28088 "                   int mbytes);\n"
28089 "\n"
28090 msgstr ""
28091
28092 #. type: =head2
28093 #: ../src/guestfs-actions.pod:4473
28094 msgid "guestfs_lvresize_free"
28095 msgstr ""
28096
28097 #. type: verbatim
28098 #: ../src/guestfs-actions.pod:4475
28099 #, no-wrap
28100 msgid ""
28101 " int\n"
28102 " guestfs_lvresize_free (guestfs_h *g,\n"
28103 "                        const char *lv,\n"
28104 "                        int percent);\n"
28105 "\n"
28106 msgstr ""
28107
28108 #. type: textblock
28109 #: ../src/guestfs-actions.pod:4488
28110 msgid "(Added in 1.3.3)"
28111 msgstr ""
28112
28113 #. type: =head2
28114 #: ../src/guestfs-actions.pod:4490
28115 msgid "guestfs_lvs"
28116 msgstr ""
28117
28118 #. type: verbatim
28119 #: ../src/guestfs-actions.pod:4492
28120 #, no-wrap
28121 msgid ""
28122 " char **\n"
28123 " guestfs_lvs (guestfs_h *g);\n"
28124 "\n"
28125 msgstr ""
28126
28127 #. type: textblock
28128 #: ../src/guestfs-actions.pod:4501
28129 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28130 msgstr ""
28131
28132 #. type: =head2
28133 #: ../src/guestfs-actions.pod:4509
28134 msgid "guestfs_lvs_full"
28135 msgstr ""
28136
28137 #. type: verbatim
28138 #: ../src/guestfs-actions.pod:4511
28139 #, no-wrap
28140 msgid ""
28141 " struct guestfs_lvm_lv_list *\n"
28142 " guestfs_lvs_full (guestfs_h *g);\n"
28143 "\n"
28144 msgstr ""
28145
28146 #. type: textblock
28147 #: ../src/guestfs-actions.pod:4517
28148 msgid ""
28149 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28150 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
28151 "use>."
28152 msgstr ""
28153
28154 #. type: =head2
28155 #: ../src/guestfs-actions.pod:4523
28156 msgid "guestfs_lvuuid"
28157 msgstr ""
28158
28159 #. type: verbatim
28160 #: ../src/guestfs-actions.pod:4525
28161 #, no-wrap
28162 msgid ""
28163 " char *\n"
28164 " guestfs_lvuuid (guestfs_h *g,\n"
28165 "                 const char *device);\n"
28166 "\n"
28167 msgstr ""
28168
28169 #. type: =head2
28170 #: ../src/guestfs-actions.pod:4536
28171 msgid "guestfs_lxattrlist"
28172 msgstr ""
28173
28174 #. type: verbatim
28175 #: ../src/guestfs-actions.pod:4538
28176 #, no-wrap
28177 msgid ""
28178 " struct guestfs_xattr_list *\n"
28179 " guestfs_lxattrlist (guestfs_h *g,\n"
28180 "                     const char *path,\n"
28181 "                     char *const *names);\n"
28182 "\n"
28183 msgstr ""
28184
28185 #. type: textblock
28186 #: ../src/guestfs-actions.pod:4557
28187 msgid ""
28188 "This call is intended for programs that want to efficiently list a directory "
28189 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28190 "a similarly efficient call for getting standard stats.  Very long directory "
28191 "listings might cause the protocol message size to be exceeded, causing this "
28192 "call to fail.  The caller must split up such requests into smaller groups of "
28193 "names."
28194 msgstr ""
28195
28196 #. type: =head2
28197 #: ../src/guestfs-actions.pod:4571
28198 msgid "guestfs_mkdir"
28199 msgstr ""
28200
28201 #. type: verbatim
28202 #: ../src/guestfs-actions.pod:4573
28203 #, no-wrap
28204 msgid ""
28205 " int\n"
28206 " guestfs_mkdir (guestfs_h *g,\n"
28207 "                const char *path);\n"
28208 "\n"
28209 msgstr ""
28210
28211 #. type: =head2
28212 #: ../src/guestfs-actions.pod:4583
28213 msgid "guestfs_mkdir_mode"
28214 msgstr ""
28215
28216 #. type: verbatim
28217 #: ../src/guestfs-actions.pod:4585
28218 #, no-wrap
28219 msgid ""
28220 " int\n"
28221 " guestfs_mkdir_mode (guestfs_h *g,\n"
28222 "                     const char *path,\n"
28223 "                     int mode);\n"
28224 "\n"
28225 msgstr ""
28226
28227 #. type: textblock
28228 #: ../src/guestfs-actions.pod:4597
28229 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28230 msgstr ""
28231
28232 #. type: =head2
28233 #: ../src/guestfs-actions.pod:4603
28234 msgid "guestfs_mkdir_p"
28235 msgstr ""
28236
28237 #. type: verbatim
28238 #: ../src/guestfs-actions.pod:4605
28239 #, no-wrap
28240 msgid ""
28241 " int\n"
28242 " guestfs_mkdir_p (guestfs_h *g,\n"
28243 "                  const char *path);\n"
28244 "\n"
28245 msgstr ""
28246
28247 #. type: =head2
28248 #: ../src/guestfs-actions.pod:4616
28249 msgid "guestfs_mkdtemp"
28250 msgstr ""
28251
28252 #. type: verbatim
28253 #: ../src/guestfs-actions.pod:4618
28254 #, no-wrap
28255 msgid ""
28256 " char *\n"
28257 " guestfs_mkdtemp (guestfs_h *g,\n"
28258 "                  const char *template);\n"
28259 "\n"
28260 msgstr ""
28261
28262 #. type: =head2
28263 #: ../src/guestfs-actions.pod:4646
28264 msgid "guestfs_mke2fs_J"
28265 msgstr ""
28266
28267 #. type: verbatim
28268 #: ../src/guestfs-actions.pod:4648
28269 #, no-wrap
28270 msgid ""
28271 " int\n"
28272 " guestfs_mke2fs_J (guestfs_h *g,\n"
28273 "                   const char *fstype,\n"
28274 "                   int blocksize,\n"
28275 "                   const char *device,\n"
28276 "                   const char *journal);\n"
28277 "\n"
28278 msgstr ""
28279
28280 #. type: textblock
28281 #: ../src/guestfs-actions.pod:4661
28282 msgid "See also C<guestfs_mke2journal>."
28283 msgstr ""
28284
28285 #. type: textblock
28286 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745 ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
28287 msgid "(Added in 1.0.68)"
28288 msgstr ""
28289
28290 #. type: =head2
28291 #: ../src/guestfs-actions.pod:4667
28292 msgid "guestfs_mke2fs_JL"
28293 msgstr ""
28294
28295 #. type: verbatim
28296 #: ../src/guestfs-actions.pod:4669
28297 #, no-wrap
28298 msgid ""
28299 " int\n"
28300 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28301 "                    const char *fstype,\n"
28302 "                    int blocksize,\n"
28303 "                    const char *device,\n"
28304 "                    const char *label);\n"
28305 "\n"
28306 msgstr ""
28307
28308 #. type: textblock
28309 #: ../src/guestfs-actions.pod:4679
28310 msgid "See also C<guestfs_mke2journal_L>."
28311 msgstr ""
28312
28313 #. type: =head2
28314 #: ../src/guestfs-actions.pod:4685
28315 msgid "guestfs_mke2fs_JU"
28316 msgstr ""
28317
28318 #. type: verbatim
28319 #: ../src/guestfs-actions.pod:4687
28320 #, no-wrap
28321 msgid ""
28322 " int\n"
28323 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28324 "                    const char *fstype,\n"
28325 "                    int blocksize,\n"
28326 "                    const char *device,\n"
28327 "                    const char *uuid);\n"
28328 "\n"
28329 msgstr ""
28330
28331 #. type: textblock
28332 #: ../src/guestfs-actions.pod:4697
28333 msgid "See also C<guestfs_mke2journal_U>."
28334 msgstr ""
28335
28336 #. type: =head2
28337 #: ../src/guestfs-actions.pod:4703
28338 msgid "guestfs_mke2journal"
28339 msgstr ""
28340
28341 #. type: verbatim
28342 #: ../src/guestfs-actions.pod:4705
28343 #, no-wrap
28344 msgid ""
28345 " int\n"
28346 " guestfs_mke2journal (guestfs_h *g,\n"
28347 "                      int blocksize,\n"
28348 "                      const char *device);\n"
28349 "\n"
28350 msgstr ""
28351
28352 #. type: =head2
28353 #: ../src/guestfs-actions.pod:4719
28354 msgid "guestfs_mke2journal_L"
28355 msgstr ""
28356
28357 #. type: verbatim
28358 #: ../src/guestfs-actions.pod:4721
28359 #, no-wrap
28360 msgid ""
28361 " int\n"
28362 " guestfs_mke2journal_L (guestfs_h *g,\n"
28363 "                        int blocksize,\n"
28364 "                        const char *label,\n"
28365 "                        const char *device);\n"
28366 "\n"
28367 msgstr ""
28368
28369 #. type: =head2
28370 #: ../src/guestfs-actions.pod:4733
28371 msgid "guestfs_mke2journal_U"
28372 msgstr ""
28373
28374 #. type: verbatim
28375 #: ../src/guestfs-actions.pod:4735
28376 #, no-wrap
28377 msgid ""
28378 " int\n"
28379 " guestfs_mke2journal_U (guestfs_h *g,\n"
28380 "                        int blocksize,\n"
28381 "                        const char *uuid,\n"
28382 "                        const char *device);\n"
28383 "\n"
28384 msgstr ""
28385
28386 #. type: =head2
28387 #: ../src/guestfs-actions.pod:4747
28388 msgid "guestfs_mkfifo"
28389 msgstr ""
28390
28391 #. type: verbatim
28392 #: ../src/guestfs-actions.pod:4749
28393 #, no-wrap
28394 msgid ""
28395 " int\n"
28396 " guestfs_mkfifo (guestfs_h *g,\n"
28397 "                 int mode,\n"
28398 "                 const char *path);\n"
28399 "\n"
28400 msgstr ""
28401
28402 #. type: textblock
28403 #: ../src/guestfs-actions.pod:4754
28404 msgid ""
28405 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28406 "is just a convenient wrapper around C<guestfs_mknod>."
28407 msgstr ""
28408
28409 #. type: =head2
28410 #: ../src/guestfs-actions.pod:4764
28411 msgid "guestfs_mkfs"
28412 msgstr ""
28413
28414 #. type: verbatim
28415 #: ../src/guestfs-actions.pod:4766
28416 #, no-wrap
28417 msgid ""
28418 " int\n"
28419 " guestfs_mkfs (guestfs_h *g,\n"
28420 "               const char *fstype,\n"
28421 "               const char *device);\n"
28422 "\n"
28423 msgstr ""
28424
28425 #. type: =head2
28426 #: ../src/guestfs-actions.pod:4779
28427 msgid "guestfs_mkfs_b"
28428 msgstr ""
28429
28430 #. type: verbatim
28431 #: ../src/guestfs-actions.pod:4781
28432 #, no-wrap
28433 msgid ""
28434 " int\n"
28435 " guestfs_mkfs_b (guestfs_h *g,\n"
28436 "                 const char *fstype,\n"
28437 "                 int blocksize,\n"
28438 "                 const char *device);\n"
28439 "\n"
28440 msgstr ""
28441
28442 #. type: textblock
28443 #: ../src/guestfs-actions.pod:4787
28444 msgid ""
28445 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28446 "call instead."
28447 msgstr ""
28448
28449 #. type: textblock
28450 #: ../src/guestfs-actions.pod:4794
28451 msgid ""
28452 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28453 "block size of the resulting filesystem.  Supported block sizes depend on the "
28454 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28455 msgstr ""
28456
28457 #. type: =head2
28458 #: ../src/guestfs-actions.pod:4806
28459 msgid "guestfs_mkfs_opts"
28460 msgstr ""
28461
28462 #. type: verbatim
28463 #: ../src/guestfs-actions.pod:4808
28464 #, no-wrap
28465 msgid ""
28466 " int\n"
28467 " guestfs_mkfs_opts (guestfs_h *g,\n"
28468 "                    const char *fstype,\n"
28469 "                    const char *device,\n"
28470 "                    ...);\n"
28471 "\n"
28472 msgstr ""
28473
28474 #. type: verbatim
28475 #: ../src/guestfs-actions.pod:4819
28476 #, no-wrap
28477 msgid ""
28478 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28479 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28480 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28481 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28482 "\n"
28483 msgstr ""
28484
28485 #. type: textblock
28486 #: ../src/guestfs-actions.pod:4867
28487 msgid "(Added in 1.7.19)"
28488 msgstr ""
28489
28490 #. type: =head2
28491 #: ../src/guestfs-actions.pod:4869
28492 msgid "guestfs_mkfs_opts_va"
28493 msgstr ""
28494
28495 #. type: verbatim
28496 #: ../src/guestfs-actions.pod:4871
28497 #, no-wrap
28498 msgid ""
28499 " int\n"
28500 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28501 "                       const char *fstype,\n"
28502 "                       const char *device,\n"
28503 "                       va_list args);\n"
28504 "\n"
28505 msgstr ""
28506
28507 #. type: textblock
28508 #: ../src/guestfs-actions.pod:4877
28509 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28510 msgstr ""
28511
28512 #. type: =head2
28513 #: ../src/guestfs-actions.pod:4881
28514 msgid "guestfs_mkfs_opts_argv"
28515 msgstr ""
28516
28517 #. type: verbatim
28518 #: ../src/guestfs-actions.pod:4883
28519 #, no-wrap
28520 msgid ""
28521 " int\n"
28522 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28523 "                         const char *fstype,\n"
28524 "                         const char *device,\n"
28525 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28526 "\n"
28527 msgstr ""
28528
28529 #. type: textblock
28530 #: ../src/guestfs-actions.pod:4889
28531 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28532 msgstr ""
28533
28534 #. type: =head2
28535 #: ../src/guestfs-actions.pod:4893
28536 msgid "guestfs_mkmountpoint"
28537 msgstr ""
28538
28539 #. type: verbatim
28540 #: ../src/guestfs-actions.pod:4895
28541 #, no-wrap
28542 msgid ""
28543 " int\n"
28544 " guestfs_mkmountpoint (guestfs_h *g,\n"
28545 "                       const char *exemptpath);\n"
28546 "\n"
28547 msgstr ""
28548
28549 #. type: textblock
28550 #: ../src/guestfs-actions.pod:4899
28551 msgid ""
28552 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28553 "that can be used to create extra mountpoints before mounting the first "
28554 "filesystem."
28555 msgstr ""
28556
28557 #. type: textblock
28558 #: ../src/guestfs-actions.pod:4923
28559 msgid ""
28560 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28561 "may get unexpected errors if you try to mix these calls.  It is safest to "
28562 "manually unmount filesystems and remove mountpoints after use."
28563 msgstr ""
28564
28565 #. type: textblock
28566 #: ../src/guestfs-actions.pod:4927
28567 msgid ""
28568 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28569 "first, so for this to work for manual mountpoints, you must ensure that the "
28570 "innermost mountpoints have the longest pathnames, as in the example code "
28571 "above."
28572 msgstr ""
28573
28574 #. type: textblock
28575 #: ../src/guestfs-actions.pod:4934
28576 msgid ""
28577 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28578 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28579 "can also trigger these issues."
28580 msgstr ""
28581
28582 #. type: textblock
28583 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246 ../src/guestfs-actions.pod:6256
28584 msgid "(Added in 1.0.62)"
28585 msgstr ""
28586
28587 #. type: =head2
28588 #: ../src/guestfs-actions.pod:4942
28589 msgid "guestfs_mknod"
28590 msgstr ""
28591
28592 #. type: verbatim
28593 #: ../src/guestfs-actions.pod:4944
28594 #, no-wrap
28595 msgid ""
28596 " int\n"
28597 " guestfs_mknod (guestfs_h *g,\n"
28598 "                int mode,\n"
28599 "                int devmajor,\n"
28600 "                int devminor,\n"
28601 "                const char *path);\n"
28602 "\n"
28603 msgstr ""
28604
28605 #. type: textblock
28606 #: ../src/guestfs-actions.pod:4959
28607 msgid ""
28608 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28609 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28610 "regular file).  These constants are available in the standard Linux header "
28611 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28612 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28613 "the appropriate constant for you."
28614 msgstr ""
28615
28616 #. type: =head2
28617 #: ../src/guestfs-actions.pod:4973
28618 msgid "guestfs_mknod_b"
28619 msgstr ""
28620
28621 #. type: verbatim
28622 #: ../src/guestfs-actions.pod:4975
28623 #, no-wrap
28624 msgid ""
28625 " int\n"
28626 " guestfs_mknod_b (guestfs_h *g,\n"
28627 "                  int mode,\n"
28628 "                  int devmajor,\n"
28629 "                  int devminor,\n"
28630 "                  const char *path);\n"
28631 "\n"
28632 msgstr ""
28633
28634 #. type: textblock
28635 #: ../src/guestfs-actions.pod:4982
28636 msgid ""
28637 "This call creates a block device node called C<path> with mode C<mode> and "
28638 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28639 "wrapper around C<guestfs_mknod>."
28640 msgstr ""
28641
28642 #. type: =head2
28643 #: ../src/guestfs-actions.pod:4992
28644 msgid "guestfs_mknod_c"
28645 msgstr ""
28646
28647 #. type: verbatim
28648 #: ../src/guestfs-actions.pod:4994
28649 #, no-wrap
28650 msgid ""
28651 " int\n"
28652 " guestfs_mknod_c (guestfs_h *g,\n"
28653 "                  int mode,\n"
28654 "                  int devmajor,\n"
28655 "                  int devminor,\n"
28656 "                  const char *path);\n"
28657 "\n"
28658 msgstr ""
28659
28660 #. type: textblock
28661 #: ../src/guestfs-actions.pod:5001
28662 msgid ""
28663 "This call creates a char device node called C<path> with mode C<mode> and "
28664 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28665 "wrapper around C<guestfs_mknod>."
28666 msgstr ""
28667
28668 #. type: =head2
28669 #: ../src/guestfs-actions.pod:5011
28670 msgid "guestfs_mkswap"
28671 msgstr ""
28672
28673 #. type: verbatim
28674 #: ../src/guestfs-actions.pod:5013
28675 #, no-wrap
28676 msgid ""
28677 " int\n"
28678 " guestfs_mkswap (guestfs_h *g,\n"
28679 "                 const char *device);\n"
28680 "\n"
28681 msgstr ""
28682
28683 #. type: =head2
28684 #: ../src/guestfs-actions.pod:5023
28685 msgid "guestfs_mkswap_L"
28686 msgstr ""
28687
28688 #. type: verbatim
28689 #: ../src/guestfs-actions.pod:5025
28690 #, no-wrap
28691 msgid ""
28692 " int\n"
28693 " guestfs_mkswap_L (guestfs_h *g,\n"
28694 "                   const char *label,\n"
28695 "                   const char *device);\n"
28696 "\n"
28697 msgstr ""
28698
28699 #. type: =head2
28700 #: ../src/guestfs-actions.pod:5040
28701 msgid "guestfs_mkswap_U"
28702 msgstr ""
28703
28704 #. type: verbatim
28705 #: ../src/guestfs-actions.pod:5042
28706 #, no-wrap
28707 msgid ""
28708 " int\n"
28709 " guestfs_mkswap_U (guestfs_h *g,\n"
28710 "                   const char *uuid,\n"
28711 "                   const char *device);\n"
28712 "\n"
28713 msgstr ""
28714
28715 #. type: =head2
28716 #: ../src/guestfs-actions.pod:5053
28717 msgid "guestfs_mkswap_file"
28718 msgstr ""
28719
28720 #. type: verbatim
28721 #: ../src/guestfs-actions.pod:5055
28722 #, no-wrap
28723 msgid ""
28724 " int\n"
28725 " guestfs_mkswap_file (guestfs_h *g,\n"
28726 "                      const char *path);\n"
28727 "\n"
28728 msgstr ""
28729
28730 #. type: textblock
28731 #: ../src/guestfs-actions.pod:5061
28732 msgid ""
28733 "This command just writes a swap file signature to an existing file.  To "
28734 "create the file itself, use something like C<guestfs_fallocate>."
28735 msgstr ""
28736
28737 #. type: =head2
28738 #: ../src/guestfs-actions.pod:5068
28739 msgid "guestfs_modprobe"
28740 msgstr ""
28741
28742 #. type: verbatim
28743 #: ../src/guestfs-actions.pod:5070
28744 #, no-wrap
28745 msgid ""
28746 " int\n"
28747 " guestfs_modprobe (guestfs_h *g,\n"
28748 "                   const char *modulename);\n"
28749 "\n"
28750 msgstr ""
28751
28752 #. type: =head2
28753 #: ../src/guestfs-actions.pod:5083
28754 msgid "guestfs_mount"
28755 msgstr ""
28756
28757 #. type: verbatim
28758 #: ../src/guestfs-actions.pod:5085
28759 #, no-wrap
28760 msgid ""
28761 " int\n"
28762 " guestfs_mount (guestfs_h *g,\n"
28763 "                const char *device,\n"
28764 "                const char *mountpoint);\n"
28765 "\n"
28766 msgstr ""
28767
28768 #. type: textblock
28769 #: ../src/guestfs-actions.pod:5104
28770 msgid ""
28771 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
28772 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
28773 "problems for users.  If your program might need to work with older versions "
28774 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
28775 "for the first parameter if you don't want any options)."
28776 msgstr ""
28777
28778 #. type: =head2
28779 #: ../src/guestfs-actions.pod:5115
28780 msgid "guestfs_mount_9p"
28781 msgstr ""
28782
28783 #. type: verbatim
28784 #: ../src/guestfs-actions.pod:5117
28785 #, no-wrap
28786 msgid ""
28787 " int\n"
28788 " guestfs_mount_9p (guestfs_h *g,\n"
28789 "                   const char *mounttag,\n"
28790 "                   const char *mountpoint,\n"
28791 "                   ...);\n"
28792 "\n"
28793 msgstr ""
28794
28795 #. type: verbatim
28796 #: ../src/guestfs-actions.pod:5128
28797 #, no-wrap
28798 msgid ""
28799 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28800 "\n"
28801 msgstr ""
28802
28803 #. type: =head2
28804 #: ../src/guestfs-actions.pod:5141
28805 msgid "guestfs_mount_9p_va"
28806 msgstr ""
28807
28808 #. type: verbatim
28809 #: ../src/guestfs-actions.pod:5143
28810 #, no-wrap
28811 msgid ""
28812 " int\n"
28813 " guestfs_mount_9p_va (guestfs_h *g,\n"
28814 "                      const char *mounttag,\n"
28815 "                      const char *mountpoint,\n"
28816 "                      va_list args);\n"
28817 "\n"
28818 msgstr ""
28819
28820 #. type: textblock
28821 #: ../src/guestfs-actions.pod:5149
28822 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28823 msgstr ""
28824
28825 #. type: =head2
28826 #: ../src/guestfs-actions.pod:5153
28827 msgid "guestfs_mount_9p_argv"
28828 msgstr ""
28829
28830 #. type: verbatim
28831 #: ../src/guestfs-actions.pod:5155
28832 #, no-wrap
28833 msgid ""
28834 " int\n"
28835 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28836 "                        const char *mounttag,\n"
28837 "                        const char *mountpoint,\n"
28838 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28839 "\n"
28840 msgstr ""
28841
28842 #. type: textblock
28843 #: ../src/guestfs-actions.pod:5161
28844 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28845 msgstr ""
28846
28847 #. type: =head2
28848 #: ../src/guestfs-actions.pod:5165
28849 msgid "guestfs_mount_loop"
28850 msgstr ""
28851
28852 #. type: verbatim
28853 #: ../src/guestfs-actions.pod:5167
28854 #, no-wrap
28855 msgid ""
28856 " int\n"
28857 " guestfs_mount_loop (guestfs_h *g,\n"
28858 "                     const char *file,\n"
28859 "                     const char *mountpoint);\n"
28860 "\n"
28861 msgstr ""
28862
28863 #. type: =head2
28864 #: ../src/guestfs-actions.pod:5180
28865 msgid "guestfs_mount_options"
28866 msgstr ""
28867
28868 #. type: verbatim
28869 #: ../src/guestfs-actions.pod:5182
28870 #, no-wrap
28871 msgid ""
28872 " int\n"
28873 " guestfs_mount_options (guestfs_h *g,\n"
28874 "                        const char *options,\n"
28875 "                        const char *device,\n"
28876 "                        const char *mountpoint);\n"
28877 "\n"
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../src/guestfs-actions.pod:5188
28882 msgid ""
28883 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28884 "the mount options as for the L<mount(8)> I<-o> flag."
28885 msgstr ""
28886
28887 #. type: textblock
28888 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5229
28889 msgid "(Added in 1.0.10)"
28890 msgstr ""
28891
28892 #. type: =head2
28893 #: ../src/guestfs-actions.pod:5200
28894 msgid "guestfs_mount_ro"
28895 msgstr ""
28896
28897 #. type: verbatim
28898 #: ../src/guestfs-actions.pod:5202
28899 #, no-wrap
28900 msgid ""
28901 " int\n"
28902 " guestfs_mount_ro (guestfs_h *g,\n"
28903 "                   const char *device,\n"
28904 "                   const char *mountpoint);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: textblock
28909 #: ../src/guestfs-actions.pod:5207
28910 msgid ""
28911 "This is the same as the C<guestfs_mount> command, but it mounts the "
28912 "filesystem with the read-only (I<-o ro>) flag."
28913 msgstr ""
28914
28915 #. type: =head2
28916 #: ../src/guestfs-actions.pod:5214
28917 msgid "guestfs_mount_vfs"
28918 msgstr ""
28919
28920 #. type: verbatim
28921 #: ../src/guestfs-actions.pod:5216
28922 #, no-wrap
28923 msgid ""
28924 " int\n"
28925 " guestfs_mount_vfs (guestfs_h *g,\n"
28926 "                    const char *options,\n"
28927 "                    const char *vfstype,\n"
28928 "                    const char *device,\n"
28929 "                    const char *mountpoint);\n"
28930 "\n"
28931 msgstr ""
28932
28933 #. type: textblock
28934 #: ../src/guestfs-actions.pod:5223
28935 msgid ""
28936 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28937 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
28938 "I<-t> flags."
28939 msgstr ""
28940
28941 #. type: =head2
28942 #: ../src/guestfs-actions.pod:5231
28943 msgid "guestfs_mountpoints"
28944 msgstr ""
28945
28946 #. type: verbatim
28947 #: ../src/guestfs-actions.pod:5233
28948 #, no-wrap
28949 msgid ""
28950 " char **\n"
28951 " guestfs_mountpoints (guestfs_h *g);\n"
28952 "\n"
28953 msgstr ""
28954
28955 #. type: textblock
28956 #: ../src/guestfs-actions.pod:5236
28957 msgid ""
28958 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28959 "devices.  This one returns a hash table (map) of device name to directory "
28960 "where the device is mounted."
28961 msgstr ""
28962
28963 #. type: =head2
28964 #: ../src/guestfs-actions.pod:5248
28965 msgid "guestfs_mounts"
28966 msgstr ""
28967
28968 #. type: verbatim
28969 #: ../src/guestfs-actions.pod:5250
28970 #, no-wrap
28971 msgid ""
28972 " char **\n"
28973 " guestfs_mounts (guestfs_h *g);\n"
28974 "\n"
28975 msgstr ""
28976
28977 #. type: textblock
28978 #: ../src/guestfs-actions.pod:5258
28979 msgid "See also: C<guestfs_mountpoints>"
28980 msgstr ""
28981
28982 #. type: =head2
28983 #: ../src/guestfs-actions.pod:5266
28984 msgid "guestfs_mv"
28985 msgstr ""
28986
28987 #. type: verbatim
28988 #: ../src/guestfs-actions.pod:5268
28989 #, no-wrap
28990 msgid ""
28991 " int\n"
28992 " guestfs_mv (guestfs_h *g,\n"
28993 "             const char *src,\n"
28994 "             const char *dest);\n"
28995 "\n"
28996 msgstr ""
28997
28998 #. type: =head2
28999 #: ../src/guestfs-actions.pod:5280
29000 msgid "guestfs_ntfs_3g_probe"
29001 msgstr ""
29002
29003 #. type: verbatim
29004 #: ../src/guestfs-actions.pod:5282
29005 #, no-wrap
29006 msgid ""
29007 " int\n"
29008 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29009 "                        int rw,\n"
29010 "                        const char *device);\n"
29011 "\n"
29012 msgstr ""
29013
29014 #. type: textblock
29015 #: ../src/guestfs-actions.pod:5301
29016 msgid "(Added in 1.0.43)"
29017 msgstr ""
29018
29019 #. type: =head2
29020 #: ../src/guestfs-actions.pod:5303
29021 msgid "guestfs_ntfsresize"
29022 msgstr ""
29023
29024 #. type: verbatim
29025 #: ../src/guestfs-actions.pod:5305
29026 #, no-wrap
29027 msgid ""
29028 " int\n"
29029 " guestfs_ntfsresize (guestfs_h *g,\n"
29030 "                     const char *device);\n"
29031 "\n"
29032 msgstr ""
29033
29034 #. type: textblock
29035 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
29036 msgid ""
29037 "I<This function is deprecated.> In new code, use the "
29038 "L</guestfs_ntfsresize_opts> call instead."
29039 msgstr ""
29040
29041 #. type: =head2
29042 #: ../src/guestfs-actions.pod:5333
29043 msgid "guestfs_ntfsresize_opts"
29044 msgstr ""
29045
29046 #. type: verbatim
29047 #: ../src/guestfs-actions.pod:5335
29048 #, no-wrap
29049 msgid ""
29050 " int\n"
29051 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29052 "                          const char *device,\n"
29053 "                          ...);\n"
29054 "\n"
29055 msgstr ""
29056
29057 #. type: verbatim
29058 #: ../src/guestfs-actions.pod:5345
29059 #, no-wrap
29060 msgid ""
29061 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29062 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29063 "\n"
29064 msgstr ""
29065
29066 #. type: textblock
29067 #: ../src/guestfs-actions.pod:5365
29068 msgid ""
29069 "After the resize operation, the filesystem is always marked as requiring a "
29070 "consistency check (for safety).  You have to boot into Windows to perform "
29071 "this check and clear this condition.  If you I<don't> set the C<force> "
29072 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29073 "times on a single filesystem without booting into Windows between each "
29074 "resize."
29075 msgstr ""
29076
29077 #. type: =head2
29078 #: ../src/guestfs-actions.pod:5380
29079 msgid "guestfs_ntfsresize_opts_va"
29080 msgstr ""
29081
29082 #. type: verbatim
29083 #: ../src/guestfs-actions.pod:5382
29084 #, no-wrap
29085 msgid ""
29086 " int\n"
29087 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29088 "                             const char *device,\n"
29089 "                             va_list args);\n"
29090 "\n"
29091 msgstr ""
29092
29093 #. type: textblock
29094 #: ../src/guestfs-actions.pod:5387
29095 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29096 msgstr ""
29097
29098 #. type: =head2
29099 #: ../src/guestfs-actions.pod:5391
29100 msgid "guestfs_ntfsresize_opts_argv"
29101 msgstr ""
29102
29103 #. type: verbatim
29104 #: ../src/guestfs-actions.pod:5393
29105 #, no-wrap
29106 msgid ""
29107 " int\n"
29108 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29109 "                               const char *device,\n"
29110 "                               const struct guestfs_ntfsresize_opts_argv "
29111 "*optargs);\n"
29112 "\n"
29113 msgstr ""
29114
29115 #. type: textblock
29116 #: ../src/guestfs-actions.pod:5398
29117 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29118 msgstr ""
29119
29120 #. type: =head2
29121 #: ../src/guestfs-actions.pod:5402
29122 msgid "guestfs_ntfsresize_size"
29123 msgstr ""
29124
29125 #. type: verbatim
29126 #: ../src/guestfs-actions.pod:5404
29127 #, no-wrap
29128 msgid ""
29129 " int\n"
29130 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29131 "                          const char *device,\n"
29132 "                          int64_t size);\n"
29133 "\n"
29134 msgstr ""
29135
29136 #. type: textblock
29137 #: ../src/guestfs-actions.pod:5416
29138 msgid ""
29139 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29140 "to specify the new size (in bytes) explicitly."
29141 msgstr ""
29142
29143 #. type: textblock
29144 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204 ../src/guestfs-actions.pod:7843
29145 msgid "(Added in 1.3.14)"
29146 msgstr ""
29147
29148 #. type: =head2
29149 #: ../src/guestfs-actions.pod:5423
29150 msgid "guestfs_part_add"
29151 msgstr ""
29152
29153 #. type: verbatim
29154 #: ../src/guestfs-actions.pod:5425
29155 #, no-wrap
29156 msgid ""
29157 " int\n"
29158 " guestfs_part_add (guestfs_h *g,\n"
29159 "                   const char *device,\n"
29160 "                   const char *prlogex,\n"
29161 "                   int64_t startsect,\n"
29162 "                   int64_t endsect);\n"
29163 "\n"
29164 msgstr ""
29165
29166 #. type: textblock
29167 #: ../src/guestfs-actions.pod:5432
29168 msgid ""
29169 "This command adds a partition to C<device>.  If there is no partition table "
29170 "on the device, call C<guestfs_part_init> first."
29171 msgstr ""
29172
29173 #. type: textblock
29174 #: ../src/guestfs-actions.pod:5444
29175 msgid ""
29176 "Creating a partition which covers the whole disk is not so easy.  Use "
29177 "C<guestfs_part_disk> to do that."
29178 msgstr ""
29179
29180 #. type: textblock
29181 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487 ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681 ../src/guestfs-actions.pod:5721
29182 msgid "(Added in 1.0.78)"
29183 msgstr ""
29184
29185 #. type: =head2
29186 #: ../src/guestfs-actions.pod:5451
29187 msgid "guestfs_part_del"
29188 msgstr ""
29189
29190 #. type: verbatim
29191 #: ../src/guestfs-actions.pod:5453
29192 #, no-wrap
29193 msgid ""
29194 " int\n"
29195 " guestfs_part_del (guestfs_h *g,\n"
29196 "                   const char *device,\n"
29197 "                   int partnum);\n"
29198 "\n"
29199 msgstr ""
29200
29201 #. type: =head2
29202 #: ../src/guestfs-actions.pod:5468
29203 msgid "guestfs_part_disk"
29204 msgstr ""
29205
29206 #. type: verbatim
29207 #: ../src/guestfs-actions.pod:5470
29208 #, no-wrap
29209 msgid ""
29210 " int\n"
29211 " guestfs_part_disk (guestfs_h *g,\n"
29212 "                    const char *device,\n"
29213 "                    const char *parttype);\n"
29214 "\n"
29215 msgstr ""
29216
29217 #. type: textblock
29218 #: ../src/guestfs-actions.pod:5475
29219 msgid ""
29220 "This command is simply a combination of C<guestfs_part_init> followed by "
29221 "C<guestfs_part_add> to create a single primary partition covering the whole "
29222 "disk."
29223 msgstr ""
29224
29225 #. type: textblock
29226 #: ../src/guestfs-actions.pod:5479
29227 msgid ""
29228 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29229 "possible values are described in C<guestfs_part_init>."
29230 msgstr ""
29231
29232 #. type: =head2
29233 #: ../src/guestfs-actions.pod:5489
29234 msgid "guestfs_part_get_bootable"
29235 msgstr ""
29236
29237 #. type: verbatim
29238 #: ../src/guestfs-actions.pod:5491
29239 #, no-wrap
29240 msgid ""
29241 " int\n"
29242 " guestfs_part_get_bootable (guestfs_h *g,\n"
29243 "                            const char *device,\n"
29244 "                            int partnum);\n"
29245 "\n"
29246 msgstr ""
29247
29248 #. type: textblock
29249 #: ../src/guestfs-actions.pod:5499
29250 msgid "See also C<guestfs_part_set_bootable>."
29251 msgstr ""
29252
29253 #. type: =head2
29254 #: ../src/guestfs-actions.pod:5505
29255 msgid "guestfs_part_get_mbr_id"
29256 msgstr ""
29257
29258 #. type: verbatim
29259 #: ../src/guestfs-actions.pod:5507
29260 #, no-wrap
29261 msgid ""
29262 " int\n"
29263 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29264 "                          const char *device,\n"
29265 "                          int partnum);\n"
29266 "\n"
29267 msgstr ""
29268
29269 #. type: textblock
29270 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
29271 msgid ""
29272 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29273 "undefined results for other partition table types (see "
29274 "C<guestfs_part_get_parttype>)."
29275 msgstr ""
29276
29277 #. type: =head2
29278 #: ../src/guestfs-actions.pod:5523
29279 msgid "guestfs_part_get_parttype"
29280 msgstr ""
29281
29282 #. type: verbatim
29283 #: ../src/guestfs-actions.pod:5525
29284 #, no-wrap
29285 msgid ""
29286 " char *\n"
29287 " guestfs_part_get_parttype (guestfs_h *g,\n"
29288 "                            const char *device);\n"
29289 "\n"
29290 msgstr ""
29291
29292 #. type: textblock
29293 #: ../src/guestfs-actions.pod:5532
29294 msgid ""
29295 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29296 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29297 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29298 msgstr ""
29299
29300 #. type: =head2
29301 #: ../src/guestfs-actions.pod:5542
29302 msgid "guestfs_part_init"
29303 msgstr ""
29304
29305 #. type: verbatim
29306 #: ../src/guestfs-actions.pod:5544
29307 #, no-wrap
29308 msgid ""
29309 " int\n"
29310 " guestfs_part_init (guestfs_h *g,\n"
29311 "                    const char *device,\n"
29312 "                    const char *parttype);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: textblock
29317 #: ../src/guestfs-actions.pod:5553
29318 msgid ""
29319 "Initially there are no partitions.  Following this, you should call "
29320 "C<guestfs_part_add> for each partition required."
29321 msgstr ""
29322
29323 #. type: =head2
29324 #: ../src/guestfs-actions.pod:5626
29325 msgid "guestfs_part_list"
29326 msgstr ""
29327
29328 #. type: verbatim
29329 #: ../src/guestfs-actions.pod:5628
29330 #, no-wrap
29331 msgid ""
29332 " struct guestfs_partition_list *\n"
29333 " guestfs_part_list (guestfs_h *g,\n"
29334 "                    const char *device);\n"
29335 "\n"
29336 msgstr ""
29337
29338 #. type: textblock
29339 #: ../src/guestfs-actions.pod:5645
29340 msgid ""
29341 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29342 "the device's sector size, see C<guestfs_blockdev_getss>."
29343 msgstr ""
29344
29345 #. type: textblock
29346 #: ../src/guestfs-actions.pod:5658
29347 msgid ""
29348 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29349 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29350 "use>."
29351 msgstr ""
29352
29353 #. type: =head2
29354 #: ../src/guestfs-actions.pod:5664
29355 msgid "guestfs_part_set_bootable"
29356 msgstr ""
29357
29358 #. type: verbatim
29359 #: ../src/guestfs-actions.pod:5666
29360 #, no-wrap
29361 msgid ""
29362 " int\n"
29363 " guestfs_part_set_bootable (guestfs_h *g,\n"
29364 "                            const char *device,\n"
29365 "                            int partnum,\n"
29366 "                            int bootable);\n"
29367 "\n"
29368 msgstr ""
29369
29370 #. type: =head2
29371 #: ../src/guestfs-actions.pod:5683
29372 msgid "guestfs_part_set_mbr_id"
29373 msgstr ""
29374
29375 #. type: verbatim
29376 #: ../src/guestfs-actions.pod:5685
29377 #, no-wrap
29378 msgid ""
29379 " int\n"
29380 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29381 "                          const char *device,\n"
29382 "                          int partnum,\n"
29383 "                          int idbyte);\n"
29384 "\n"
29385 msgstr ""
29386
29387 #. type: =head2
29388 #: ../src/guestfs-actions.pod:5705
29389 msgid "guestfs_part_set_name"
29390 msgstr ""
29391
29392 #. type: verbatim
29393 #: ../src/guestfs-actions.pod:5707
29394 #, no-wrap
29395 msgid ""
29396 " int\n"
29397 " guestfs_part_set_name (guestfs_h *g,\n"
29398 "                        const char *device,\n"
29399 "                        int partnum,\n"
29400 "                        const char *name);\n"
29401 "\n"
29402 msgstr ""
29403
29404 #. type: =head2
29405 #: ../src/guestfs-actions.pod:5723
29406 msgid "guestfs_part_to_dev"
29407 msgstr ""
29408
29409 #. type: verbatim
29410 #: ../src/guestfs-actions.pod:5725
29411 #, no-wrap
29412 msgid ""
29413 " char *\n"
29414 " guestfs_part_to_dev (guestfs_h *g,\n"
29415 "                      const char *partition);\n"
29416 "\n"
29417 msgstr ""
29418
29419 #. type: textblock
29420 #: ../src/guestfs-actions.pod:5733
29421 msgid ""
29422 "The named partition must exist, for example as a string returned from "
29423 "C<guestfs_list_partitions>."
29424 msgstr ""
29425
29426 #. type: =head2
29427 #: ../src/guestfs-actions.pod:5741
29428 msgid "guestfs_ping_daemon"
29429 msgstr ""
29430
29431 #. type: verbatim
29432 #: ../src/guestfs-actions.pod:5743
29433 #, no-wrap
29434 msgid ""
29435 " int\n"
29436 " guestfs_ping_daemon (guestfs_h *g);\n"
29437 "\n"
29438 msgstr ""
29439
29440 #. type: =head2
29441 #: ../src/guestfs-actions.pod:5755
29442 msgid "guestfs_pread"
29443 msgstr ""
29444
29445 #. type: verbatim
29446 #: ../src/guestfs-actions.pod:5757
29447 #, no-wrap
29448 msgid ""
29449 " char *\n"
29450 " guestfs_pread (guestfs_h *g,\n"
29451 "                const char *path,\n"
29452 "                int count,\n"
29453 "                int64_t offset,\n"
29454 "                size_t *size_r);\n"
29455 "\n"
29456 msgstr ""
29457
29458 #. type: textblock
29459 #: ../src/guestfs-actions.pod:5770
29460 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29461 msgstr ""
29462
29463 #. type: =head2
29464 #: ../src/guestfs-actions.pod:5781
29465 msgid "guestfs_pread_device"
29466 msgstr ""
29467
29468 #. type: verbatim
29469 #: ../src/guestfs-actions.pod:5783
29470 #, no-wrap
29471 msgid ""
29472 " char *\n"
29473 " guestfs_pread_device (guestfs_h *g,\n"
29474 "                       const char *device,\n"
29475 "                       int count,\n"
29476 "                       int64_t offset,\n"
29477 "                       size_t *size_r);\n"
29478 "\n"
29479 msgstr ""
29480
29481 #. type: textblock
29482 #: ../src/guestfs-actions.pod:5796
29483 msgid "See also C<guestfs_pread>."
29484 msgstr ""
29485
29486 #. type: textblock
29487 #: ../src/guestfs-actions.pod:5805
29488 msgid "(Added in 1.5.21)"
29489 msgstr ""
29490
29491 #. type: =head2
29492 #: ../src/guestfs-actions.pod:5807
29493 msgid "guestfs_pvcreate"
29494 msgstr ""
29495
29496 #. type: verbatim
29497 #: ../src/guestfs-actions.pod:5809
29498 #, no-wrap
29499 msgid ""
29500 " int\n"
29501 " guestfs_pvcreate (guestfs_h *g,\n"
29502 "                   const char *device);\n"
29503 "\n"
29504 msgstr ""
29505
29506 #. type: =head2
29507 #: ../src/guestfs-actions.pod:5821
29508 msgid "guestfs_pvremove"
29509 msgstr ""
29510
29511 #. type: verbatim
29512 #: ../src/guestfs-actions.pod:5823
29513 #, no-wrap
29514 msgid ""
29515 " int\n"
29516 " guestfs_pvremove (guestfs_h *g,\n"
29517 "                   const char *device);\n"
29518 "\n"
29519 msgstr ""
29520
29521 #. type: =head2
29522 #: ../src/guestfs-actions.pod:5838
29523 msgid "guestfs_pvresize"
29524 msgstr ""
29525
29526 #. type: verbatim
29527 #: ../src/guestfs-actions.pod:5840
29528 #, no-wrap
29529 msgid ""
29530 " int\n"
29531 " guestfs_pvresize (guestfs_h *g,\n"
29532 "                   const char *device);\n"
29533 "\n"
29534 msgstr ""
29535
29536 #. type: =head2
29537 #: ../src/guestfs-actions.pod:5851
29538 msgid "guestfs_pvresize_size"
29539 msgstr ""
29540
29541 #. type: verbatim
29542 #: ../src/guestfs-actions.pod:5853
29543 #, no-wrap
29544 msgid ""
29545 " int\n"
29546 " guestfs_pvresize_size (guestfs_h *g,\n"
29547 "                        const char *device,\n"
29548 "                        int64_t size);\n"
29549 "\n"
29550 msgstr ""
29551
29552 #. type: textblock
29553 #: ../src/guestfs-actions.pod:5858
29554 msgid ""
29555 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29556 "specify the new size (in bytes) explicitly."
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../src/guestfs-actions.pod:5865
29561 msgid "guestfs_pvs"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-actions.pod:5867
29566 #, no-wrap
29567 msgid ""
29568 " char **\n"
29569 " guestfs_pvs (guestfs_h *g);\n"
29570 "\n"
29571 msgstr ""
29572
29573 #. type: textblock
29574 #: ../src/guestfs-actions.pod:5876
29575 msgid "See also C<guestfs_pvs_full>."
29576 msgstr ""
29577
29578 #. type: =head2
29579 #: ../src/guestfs-actions.pod:5884
29580 msgid "guestfs_pvs_full"
29581 msgstr ""
29582
29583 #. type: verbatim
29584 #: ../src/guestfs-actions.pod:5886
29585 #, no-wrap
29586 msgid ""
29587 " struct guestfs_lvm_pv_list *\n"
29588 " guestfs_pvs_full (guestfs_h *g);\n"
29589 "\n"
29590 msgstr ""
29591
29592 #. type: textblock
29593 #: ../src/guestfs-actions.pod:5892
29594 msgid ""
29595 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29596 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
29597 "use>."
29598 msgstr ""
29599
29600 #. type: =head2
29601 #: ../src/guestfs-actions.pod:5898
29602 msgid "guestfs_pvuuid"
29603 msgstr ""
29604
29605 #. type: verbatim
29606 #: ../src/guestfs-actions.pod:5900
29607 #, no-wrap
29608 msgid ""
29609 " char *\n"
29610 " guestfs_pvuuid (guestfs_h *g,\n"
29611 "                 const char *device);\n"
29612 "\n"
29613 msgstr ""
29614
29615 #. type: =head2
29616 #: ../src/guestfs-actions.pod:5911
29617 msgid "guestfs_pwrite"
29618 msgstr ""
29619
29620 #. type: verbatim
29621 #: ../src/guestfs-actions.pod:5913
29622 #, no-wrap
29623 msgid ""
29624 " int\n"
29625 " guestfs_pwrite (guestfs_h *g,\n"
29626 "                 const char *path,\n"
29627 "                 const char *content,\n"
29628 "                 size_t content_size,\n"
29629 "                 int64_t offset);\n"
29630 "\n"
29631 msgstr ""
29632
29633 #. type: textblock
29634 #: ../src/guestfs-actions.pod:5929
29635 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29636 msgstr ""
29637
29638 #. type: =head2
29639 #: ../src/guestfs-actions.pod:5938
29640 msgid "guestfs_pwrite_device"
29641 msgstr ""
29642
29643 #. type: verbatim
29644 #: ../src/guestfs-actions.pod:5940
29645 #, no-wrap
29646 msgid ""
29647 " int\n"
29648 " guestfs_pwrite_device (guestfs_h *g,\n"
29649 "                        const char *device,\n"
29650 "                        const char *content,\n"
29651 "                        size_t content_size,\n"
29652 "                        int64_t offset);\n"
29653 "\n"
29654 msgstr ""
29655
29656 #. type: textblock
29657 #: ../src/guestfs-actions.pod:5955
29658 msgid "See also C<guestfs_pwrite>."
29659 msgstr ""
29660
29661 #. type: textblock
29662 #: ../src/guestfs-actions.pod:5962
29663 msgid "(Added in 1.5.20)"
29664 msgstr ""
29665
29666 #. type: =head2
29667 #: ../src/guestfs-actions.pod:5964
29668 msgid "guestfs_read_file"
29669 msgstr ""
29670
29671 #. type: verbatim
29672 #: ../src/guestfs-actions.pod:5966
29673 #, no-wrap
29674 msgid ""
29675 " char *\n"
29676 " guestfs_read_file (guestfs_h *g,\n"
29677 "                    const char *path,\n"
29678 "                    size_t *size_r);\n"
29679 "\n"
29680 msgstr ""
29681
29682 #. type: textblock
29683 #: ../src/guestfs-actions.pod:5974
29684 msgid ""
29685 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29686 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29687 "function is limited in the total size of file that can be handled."
29688 msgstr ""
29689
29690 #. type: textblock
29691 #: ../src/guestfs-actions.pod:5986
29692 msgid "(Added in 1.0.63)"
29693 msgstr ""
29694
29695 #. type: =head2
29696 #: ../src/guestfs-actions.pod:5988
29697 msgid "guestfs_read_lines"
29698 msgstr ""
29699
29700 #. type: verbatim
29701 #: ../src/guestfs-actions.pod:5990
29702 #, no-wrap
29703 msgid ""
29704 " char **\n"
29705 " guestfs_read_lines (guestfs_h *g,\n"
29706 "                     const char *path);\n"
29707 "\n"
29708 msgstr ""
29709
29710 #. type: textblock
29711 #: ../src/guestfs-actions.pod:5999
29712 msgid ""
29713 "Note that this function cannot correctly handle binary files (specifically, "
29714 "files containing C<\\0> character which is treated as end of line).  For "
29715 "those you need to use the C<guestfs_read_file> function which has a more "
29716 "complex interface."
29717 msgstr ""
29718
29719 #. type: =head2
29720 #: ../src/guestfs-actions.pod:6010
29721 msgid "guestfs_readdir"
29722 msgstr ""
29723
29724 #. type: verbatim
29725 #: ../src/guestfs-actions.pod:6012
29726 #, no-wrap
29727 msgid ""
29728 " struct guestfs_dirent_list *\n"
29729 " guestfs_readdir (guestfs_h *g,\n"
29730 "                  const char *dir);\n"
29731 "\n"
29732 msgstr ""
29733
29734 #. type: textblock
29735 #: ../src/guestfs-actions.pod:6066
29736 msgid ""
29737 "This function is primarily intended for use by programs.  To get a simple "
29738 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29739 "consumption, use C<guestfs_ll>."
29740 msgstr ""
29741
29742 #. type: textblock
29743 #: ../src/guestfs-actions.pod:6070
29744 msgid ""
29745 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29746 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
29747 "use>."
29748 msgstr ""
29749
29750 #. type: =head2
29751 #: ../src/guestfs-actions.pod:6076
29752 msgid "guestfs_readlink"
29753 msgstr ""
29754
29755 #. type: verbatim
29756 #: ../src/guestfs-actions.pod:6078
29757 #, no-wrap
29758 msgid ""
29759 " char *\n"
29760 " guestfs_readlink (guestfs_h *g,\n"
29761 "                   const char *path);\n"
29762 "\n"
29763 msgstr ""
29764
29765 #. type: =head2
29766 #: ../src/guestfs-actions.pod:6089
29767 msgid "guestfs_readlinklist"
29768 msgstr ""
29769
29770 #. type: verbatim
29771 #: ../src/guestfs-actions.pod:6091
29772 #, no-wrap
29773 msgid ""
29774 " char **\n"
29775 " guestfs_readlinklist (guestfs_h *g,\n"
29776 "                       const char *path,\n"
29777 "                       char *const *names);\n"
29778 "\n"
29779 msgstr ""
29780
29781 #. type: =head2
29782 #: ../src/guestfs-actions.pod:6124
29783 msgid "guestfs_realpath"
29784 msgstr ""
29785
29786 #. type: verbatim
29787 #: ../src/guestfs-actions.pod:6126
29788 #, no-wrap
29789 msgid ""
29790 " char *\n"
29791 " guestfs_realpath (guestfs_h *g,\n"
29792 "                   const char *path);\n"
29793 "\n"
29794 msgstr ""
29795
29796 #. type: =head2
29797 #: ../src/guestfs-actions.pod:6138
29798 msgid "guestfs_removexattr"
29799 msgstr ""
29800
29801 #. type: verbatim
29802 #: ../src/guestfs-actions.pod:6140
29803 #, no-wrap
29804 msgid ""
29805 " int\n"
29806 " guestfs_removexattr (guestfs_h *g,\n"
29807 "                      const char *xattr,\n"
29808 "                      const char *path);\n"
29809 "\n"
29810 msgstr ""
29811
29812 #. type: textblock
29813 #: ../src/guestfs-actions.pod:6148
29814 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29815 msgstr ""
29816
29817 #. type: =head2
29818 #: ../src/guestfs-actions.pod:6154
29819 msgid "guestfs_resize2fs"
29820 msgstr ""
29821
29822 #. type: verbatim
29823 #: ../src/guestfs-actions.pod:6156
29824 #, no-wrap
29825 msgid ""
29826 " int\n"
29827 " guestfs_resize2fs (guestfs_h *g,\n"
29828 "                    const char *device);\n"
29829 "\n"
29830 msgstr ""
29831
29832 #. type: textblock
29833 #: ../src/guestfs-actions.pod:6163
29834 msgid ""
29835 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29836 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29837 "sometimes gives an error about this and sometimes not.  In any case, it is "
29838 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29839 msgstr ""
29840
29841 #. type: =head2
29842 #: ../src/guestfs-actions.pod:6173
29843 msgid "guestfs_resize2fs_M"
29844 msgstr ""
29845
29846 #. type: verbatim
29847 #: ../src/guestfs-actions.pod:6175
29848 #, no-wrap
29849 msgid ""
29850 " int\n"
29851 " guestfs_resize2fs_M (guestfs_h *g,\n"
29852 "                      const char *device);\n"
29853 "\n"
29854 msgstr ""
29855
29856 #. type: textblock
29857 #: ../src/guestfs-actions.pod:6179
29858 msgid ""
29859 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29860 "resized to its minimum size.  This works like the I<-M> option to the "
29861 "C<resize2fs> command."
29862 msgstr ""
29863
29864 #. type: textblock
29865 #: ../src/guestfs-actions.pod:6183
29866 msgid ""
29867 "To get the resulting size of the filesystem you should call "
29868 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29869 "These two numbers, multiplied together, give the resulting size of the "
29870 "minimal filesystem in bytes."
29871 msgstr ""
29872
29873 #. type: =head2
29874 #: ../src/guestfs-actions.pod:6192
29875 msgid "guestfs_resize2fs_size"
29876 msgstr ""
29877
29878 #. type: verbatim
29879 #: ../src/guestfs-actions.pod:6194
29880 #, no-wrap
29881 msgid ""
29882 " int\n"
29883 " guestfs_resize2fs_size (guestfs_h *g,\n"
29884 "                         const char *device,\n"
29885 "                         int64_t size);\n"
29886 "\n"
29887 msgstr ""
29888
29889 #. type: textblock
29890 #: ../src/guestfs-actions.pod:6199
29891 msgid ""
29892 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29893 "to specify the new size (in bytes) explicitly."
29894 msgstr ""
29895
29896 #. type: =head2
29897 #: ../src/guestfs-actions.pod:6206
29898 msgid "guestfs_rm"
29899 msgstr ""
29900
29901 #. type: verbatim
29902 #: ../src/guestfs-actions.pod:6208
29903 #, no-wrap
29904 msgid ""
29905 " int\n"
29906 " guestfs_rm (guestfs_h *g,\n"
29907 "             const char *path);\n"
29908 "\n"
29909 msgstr ""
29910
29911 #. type: =head2
29912 #: ../src/guestfs-actions.pod:6218
29913 msgid "guestfs_rm_rf"
29914 msgstr ""
29915
29916 #. type: verbatim
29917 #: ../src/guestfs-actions.pod:6220
29918 #, no-wrap
29919 msgid ""
29920 " int\n"
29921 " guestfs_rm_rf (guestfs_h *g,\n"
29922 "                const char *path);\n"
29923 "\n"
29924 msgstr ""
29925
29926 #. type: =head2
29927 #: ../src/guestfs-actions.pod:6232
29928 msgid "guestfs_rmdir"
29929 msgstr ""
29930
29931 #. type: verbatim
29932 #: ../src/guestfs-actions.pod:6234
29933 #, no-wrap
29934 msgid ""
29935 " int\n"
29936 " guestfs_rmdir (guestfs_h *g,\n"
29937 "                const char *path);\n"
29938 "\n"
29939 msgstr ""
29940
29941 #. type: =head2
29942 #: ../src/guestfs-actions.pod:6244
29943 msgid "guestfs_rmmountpoint"
29944 msgstr ""
29945
29946 #. type: verbatim
29947 #: ../src/guestfs-actions.pod:6246
29948 #, no-wrap
29949 msgid ""
29950 " int\n"
29951 " guestfs_rmmountpoint (guestfs_h *g,\n"
29952 "                       const char *exemptpath);\n"
29953 "\n"
29954 msgstr ""
29955
29956 #. type: textblock
29957 #: ../src/guestfs-actions.pod:6250
29958 msgid ""
29959 "This calls removes a mountpoint that was previously created with "
29960 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29961 msgstr ""
29962
29963 #. type: =head2
29964 #: ../src/guestfs-actions.pod:6258
29965 msgid "guestfs_scrub_device"
29966 msgstr ""
29967
29968 #. type: verbatim
29969 #: ../src/guestfs-actions.pod:6260
29970 #, no-wrap
29971 msgid ""
29972 " int\n"
29973 " guestfs_scrub_device (guestfs_h *g,\n"
29974 "                       const char *device);\n"
29975 "\n"
29976 msgstr ""
29977
29978 #. type: textblock
29979 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6312
29980 msgid "(Added in 1.0.52)"
29981 msgstr ""
29982
29983 #. type: =head2
29984 #: ../src/guestfs-actions.pod:6277
29985 msgid "guestfs_scrub_file"
29986 msgstr ""
29987
29988 #. type: verbatim
29989 #: ../src/guestfs-actions.pod:6279
29990 #, no-wrap
29991 msgid ""
29992 " int\n"
29993 " guestfs_scrub_file (guestfs_h *g,\n"
29994 "                     const char *file);\n"
29995 "\n"
29996 msgstr ""
29997
29998 #. type: =head2
29999 #: ../src/guestfs-actions.pod:6295
30000 msgid "guestfs_scrub_freespace"
30001 msgstr ""
30002
30003 #. type: verbatim
30004 #: ../src/guestfs-actions.pod:6297
30005 #, no-wrap
30006 msgid ""
30007 " int\n"
30008 " guestfs_scrub_freespace (guestfs_h *g,\n"
30009 "                          const char *dir);\n"
30010 "\n"
30011 msgstr ""
30012
30013 #. type: textblock
30014 #: ../src/guestfs-actions.pod:6301
30015 msgid ""
30016 "This command creates the directory C<dir> and then fills it with files until "
30017 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30018 "and deletes them.  The intention is to scrub any free space on the partition "
30019 "containing C<dir>."
30020 msgstr ""
30021
30022 #. type: =head2
30023 #: ../src/guestfs-actions.pod:6314
30024 msgid "guestfs_set_append"
30025 msgstr ""
30026
30027 #. type: verbatim
30028 #: ../src/guestfs-actions.pod:6316
30029 #, no-wrap
30030 msgid ""
30031 " int\n"
30032 " guestfs_set_append (guestfs_h *g,\n"
30033 "                     const char *append);\n"
30034 "\n"
30035 msgstr ""
30036
30037 #. type: =head2
30038 #: ../src/guestfs-actions.pod:6333
30039 msgid "guestfs_set_attach_method"
30040 msgstr ""
30041
30042 #. type: verbatim
30043 #: ../src/guestfs-actions.pod:6335
30044 #, no-wrap
30045 msgid ""
30046 " int\n"
30047 " guestfs_set_attach_method (guestfs_h *g,\n"
30048 "                            const char *attachmethod);\n"
30049 "\n"
30050 msgstr ""
30051
30052 #. type: =head2
30053 #: ../src/guestfs-actions.pod:6363
30054 msgid "guestfs_set_autosync"
30055 msgstr ""
30056
30057 #. type: verbatim
30058 #: ../src/guestfs-actions.pod:6365
30059 #, no-wrap
30060 msgid ""
30061 " int\n"
30062 " guestfs_set_autosync (guestfs_h *g,\n"
30063 "                       int autosync);\n"
30064 "\n"
30065 msgstr ""
30066
30067 #. type: =head2
30068 #: ../src/guestfs-actions.pod:6381
30069 msgid "guestfs_set_direct"
30070 msgstr ""
30071
30072 #. type: verbatim
30073 #: ../src/guestfs-actions.pod:6383
30074 #, no-wrap
30075 msgid ""
30076 " int\n"
30077 " guestfs_set_direct (guestfs_h *g,\n"
30078 "                     int direct);\n"
30079 "\n"
30080 msgstr ""
30081
30082 #. type: textblock
30083 #: ../src/guestfs-actions.pod:6391
30084 msgid ""
30085 "One consequence of this is that log messages aren't caught by the library "
30086 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30087 "stdout."
30088 msgstr ""
30089
30090 #. type: =head2
30091 #: ../src/guestfs-actions.pod:6404
30092 msgid "guestfs_set_e2label"
30093 msgstr ""
30094
30095 #. type: verbatim
30096 #: ../src/guestfs-actions.pod:6406
30097 #, no-wrap
30098 msgid ""
30099 " int\n"
30100 " guestfs_set_e2label (guestfs_h *g,\n"
30101 "                      const char *device,\n"
30102 "                      const char *label);\n"
30103 "\n"
30104 msgstr ""
30105
30106 #. type: textblock
30107 #: ../src/guestfs-actions.pod:6415
30108 msgid ""
30109 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30110 "the existing label on a filesystem."
30111 msgstr ""
30112
30113 #. type: =head2
30114 #: ../src/guestfs-actions.pod:6422
30115 msgid "guestfs_set_e2uuid"
30116 msgstr ""
30117
30118 #. type: verbatim
30119 #: ../src/guestfs-actions.pod:6424
30120 #, no-wrap
30121 msgid ""
30122 " int\n"
30123 " guestfs_set_e2uuid (guestfs_h *g,\n"
30124 "                     const char *device,\n"
30125 "                     const char *uuid);\n"
30126 "\n"
30127 msgstr ""
30128
30129 #. type: textblock
30130 #: ../src/guestfs-actions.pod:6434
30131 msgid ""
30132 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30133 "the existing UUID of a filesystem."
30134 msgstr ""
30135
30136 #. type: =head2
30137 #: ../src/guestfs-actions.pod:6441
30138 msgid "guestfs_set_memsize"
30139 msgstr ""
30140
30141 #. type: verbatim
30142 #: ../src/guestfs-actions.pod:6443
30143 #, no-wrap
30144 msgid ""
30145 " int\n"
30146 " guestfs_set_memsize (guestfs_h *g,\n"
30147 "                      int memsize);\n"
30148 "\n"
30149 msgstr ""
30150
30151 #. type: textblock
30152 #: ../src/guestfs-actions.pod:6447
30153 msgid ""
30154 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30155 "This only has any effect if called before C<guestfs_launch>."
30156 msgstr ""
30157
30158 #. type: =head2
30159 #: ../src/guestfs-actions.pod:6462
30160 msgid "guestfs_set_network"
30161 msgstr ""
30162
30163 #. type: verbatim
30164 #: ../src/guestfs-actions.pod:6464
30165 #, no-wrap
30166 msgid ""
30167 " int\n"
30168 " guestfs_set_network (guestfs_h *g,\n"
30169 "                      int network);\n"
30170 "\n"
30171 msgstr ""
30172
30173 #. type: textblock
30174 #: ../src/guestfs-actions.pod:6474
30175 msgid ""
30176 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30177 "effect."
30178 msgstr ""
30179
30180 #. type: =head2
30181 #: ../src/guestfs-actions.pod:6481
30182 msgid "guestfs_set_path"
30183 msgstr ""
30184
30185 #. type: verbatim
30186 #: ../src/guestfs-actions.pod:6483
30187 #, no-wrap
30188 msgid ""
30189 " int\n"
30190 " guestfs_set_path (guestfs_h *g,\n"
30191 "                   const char *searchpath);\n"
30192 "\n"
30193 msgstr ""
30194
30195 #. type: =head2
30196 #: ../src/guestfs-actions.pod:6498
30197 msgid "guestfs_set_pgroup"
30198 msgstr ""
30199
30200 #. type: verbatim
30201 #: ../src/guestfs-actions.pod:6500
30202 #, no-wrap
30203 msgid ""
30204 " int\n"
30205 " guestfs_set_pgroup (guestfs_h *g,\n"
30206 "                     int pgroup);\n"
30207 "\n"
30208 msgstr ""
30209
30210 #. type: =head2
30211 #: ../src/guestfs-actions.pod:6517
30212 msgid "guestfs_set_qemu"
30213 msgstr ""
30214
30215 #. type: verbatim
30216 #: ../src/guestfs-actions.pod:6519
30217 #, no-wrap
30218 msgid ""
30219 " int\n"
30220 " guestfs_set_qemu (guestfs_h *g,\n"
30221 "                   const char *qemu);\n"
30222 "\n"
30223 msgstr ""
30224
30225 #. type: =head2
30226 #: ../src/guestfs-actions.pod:6545
30227 msgid "guestfs_set_recovery_proc"
30228 msgstr ""
30229
30230 #. type: verbatim
30231 #: ../src/guestfs-actions.pod:6547
30232 #, no-wrap
30233 msgid ""
30234 " int\n"
30235 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30236 "                            int recoveryproc);\n"
30237 "\n"
30238 msgstr ""
30239
30240 #. type: textblock
30241 #: ../src/guestfs-actions.pod:6551
30242 msgid ""
30243 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30244 "not create a recovery process.  The purpose of the recovery process is to "
30245 "stop runaway qemu processes in the case where the main program aborts "
30246 "abruptly."
30247 msgstr ""
30248
30249 #. type: textblock
30250 #: ../src/guestfs-actions.pod:6556
30251 msgid ""
30252 "This only has any effect if called before C<guestfs_launch>, and the default "
30253 "is true."
30254 msgstr ""
30255
30256 #. type: =head2
30257 #: ../src/guestfs-actions.pod:6569
30258 msgid "guestfs_set_selinux"
30259 msgstr ""
30260
30261 #. type: verbatim
30262 #: ../src/guestfs-actions.pod:6571
30263 #, no-wrap
30264 msgid ""
30265 " int\n"
30266 " guestfs_set_selinux (guestfs_h *g,\n"
30267 "                      int selinux);\n"
30268 "\n"
30269 msgstr ""
30270
30271 #. type: =head2
30272 #: ../src/guestfs-actions.pod:6588
30273 msgid "guestfs_set_smp"
30274 msgstr ""
30275
30276 #. type: verbatim
30277 #: ../src/guestfs-actions.pod:6590
30278 #, no-wrap
30279 msgid ""
30280 " int\n"
30281 " guestfs_set_smp (guestfs_h *g,\n"
30282 "                  int smp);\n"
30283 "\n"
30284 msgstr ""
30285
30286 #. type: textblock
30287 #: ../src/guestfs-actions.pod:6598
30288 msgid "This function must be called before C<guestfs_launch>."
30289 msgstr ""
30290
30291 #. type: =head2
30292 #: ../src/guestfs-actions.pod:6604
30293 msgid "guestfs_set_trace"
30294 msgstr ""
30295
30296 #. type: verbatim
30297 #: ../src/guestfs-actions.pod:6606
30298 #, no-wrap
30299 msgid ""
30300 " int\n"
30301 " guestfs_set_trace (guestfs_h *g,\n"
30302 "                    int trace);\n"
30303 "\n"
30304 msgstr ""
30305
30306 #. type: textblock
30307 #: ../src/guestfs-actions.pod:6620
30308 msgid ""
30309 "Trace messages are normally sent to C<stderr>, unless you register a "
30310 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30311 msgstr ""
30312
30313 #. type: =head2
30314 #: ../src/guestfs-actions.pod:6628
30315 msgid "guestfs_set_verbose"
30316 msgstr ""
30317
30318 #. type: verbatim
30319 #: ../src/guestfs-actions.pod:6630
30320 #, no-wrap
30321 msgid ""
30322 " int\n"
30323 " guestfs_set_verbose (guestfs_h *g,\n"
30324 "                      int verbose);\n"
30325 "\n"
30326 msgstr ""
30327
30328 #. type: textblock
30329 #: ../src/guestfs-actions.pod:6639
30330 msgid ""
30331 "Verbose messages are normally sent to C<stderr>, unless you register a "
30332 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30333 msgstr ""
30334
30335 #. type: =head2
30336 #: ../src/guestfs-actions.pod:6647
30337 msgid "guestfs_setcon"
30338 msgstr ""
30339
30340 #. type: verbatim
30341 #: ../src/guestfs-actions.pod:6649
30342 #, no-wrap
30343 msgid ""
30344 " int\n"
30345 " guestfs_setcon (guestfs_h *g,\n"
30346 "                 const char *context);\n"
30347 "\n"
30348 msgstr ""
30349
30350 #. type: =head2
30351 #: ../src/guestfs-actions.pod:6662
30352 msgid "guestfs_setxattr"
30353 msgstr ""
30354
30355 #. type: verbatim
30356 #: ../src/guestfs-actions.pod:6664
30357 #, no-wrap
30358 msgid ""
30359 " int\n"
30360 " guestfs_setxattr (guestfs_h *g,\n"
30361 "                   const char *xattr,\n"
30362 "                   const char *val,\n"
30363 "                   int vallen,\n"
30364 "                   const char *path);\n"
30365 "\n"
30366 msgstr ""
30367
30368 #. type: textblock
30369 #: ../src/guestfs-actions.pod:6675
30370 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30371 msgstr ""
30372
30373 #. type: =head2
30374 #: ../src/guestfs-actions.pod:6681
30375 msgid "guestfs_sfdisk"
30376 msgstr ""
30377
30378 #. type: verbatim
30379 #: ../src/guestfs-actions.pod:6683
30380 #, no-wrap
30381 msgid ""
30382 " int\n"
30383 " guestfs_sfdisk (guestfs_h *g,\n"
30384 "                 const char *device,\n"
30385 "                 int cyls,\n"
30386 "                 int heads,\n"
30387 "                 int sectors,\n"
30388 "                 char *const *lines);\n"
30389 "\n"
30390 msgstr ""
30391
30392 #. type: textblock
30393 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735 ../src/guestfs-actions.pod:6769
30394 msgid ""
30395 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30396 "call instead."
30397 msgstr ""
30398
30399 #. type: textblock
30400 #: ../src/guestfs-actions.pod:6718
30401 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30402 msgstr ""
30403
30404 #. type: =head2
30405 #: ../src/guestfs-actions.pod:6728
30406 msgid "guestfs_sfdiskM"
30407 msgstr ""
30408
30409 #. type: verbatim
30410 #: ../src/guestfs-actions.pod:6730
30411 #, no-wrap
30412 msgid ""
30413 " int\n"
30414 " guestfs_sfdiskM (guestfs_h *g,\n"
30415 "                  const char *device,\n"
30416 "                  char *const *lines);\n"
30417 "\n"
30418 msgstr ""
30419
30420 #. type: textblock
30421 #: ../src/guestfs-actions.pod:6742
30422 msgid ""
30423 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30424 "partition sizes are specified in megabytes only (rounded to the nearest "
30425 "cylinder) and you don't need to specify the cyls, heads and sectors "
30426 "parameters which were rarely if ever used anyway."
30427 msgstr ""
30428
30429 #. type: textblock
30430 #: ../src/guestfs-actions.pod:6748
30431 msgid ""
30432 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30433 "C<guestfs_part_disk>"
30434 msgstr ""
30435
30436 #. type: =head2
30437 #: ../src/guestfs-actions.pod:6758
30438 msgid "guestfs_sfdisk_N"
30439 msgstr ""
30440
30441 #. type: verbatim
30442 #: ../src/guestfs-actions.pod:6760
30443 #, no-wrap
30444 msgid ""
30445 " int\n"
30446 " guestfs_sfdisk_N (guestfs_h *g,\n"
30447 "                   const char *device,\n"
30448 "                   int partnum,\n"
30449 "                   int cyls,\n"
30450 "                   int heads,\n"
30451 "                   int sectors,\n"
30452 "                   const char *line);\n"
30453 "\n"
30454 msgstr ""
30455
30456 #. type: textblock
30457 #: ../src/guestfs-actions.pod:6779
30458 msgid ""
30459 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30460 "for the cyls/heads/sectors parameters."
30461 msgstr ""
30462
30463 #. type: textblock
30464 #: ../src/guestfs-actions.pod:6782
30465 msgid "See also: C<guestfs_part_add>"
30466 msgstr ""
30467
30468 #. type: =head2
30469 #: ../src/guestfs-actions.pod:6791
30470 msgid "guestfs_sfdisk_disk_geometry"
30471 msgstr ""
30472
30473 #. type: verbatim
30474 #: ../src/guestfs-actions.pod:6793
30475 #, no-wrap
30476 msgid ""
30477 " char *\n"
30478 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30479 "                               const char *device);\n"
30480 "\n"
30481 msgstr ""
30482
30483 #. type: textblock
30484 #: ../src/guestfs-actions.pod:6797
30485 msgid ""
30486 "This displays the disk geometry of C<device> read from the partition table.  "
30487 "Especially in the case where the underlying block device has been resized, "
30488 "this can be different from the kernel's idea of the geometry (see "
30489 "C<guestfs_sfdisk_kernel_geometry>)."
30490 msgstr ""
30491
30492 #. type: =head2
30493 #: ../src/guestfs-actions.pod:6810
30494 msgid "guestfs_sfdisk_kernel_geometry"
30495 msgstr ""
30496
30497 #. type: verbatim
30498 #: ../src/guestfs-actions.pod:6812
30499 #, no-wrap
30500 msgid ""
30501 " char *\n"
30502 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30503 "                                 const char *device);\n"
30504 "\n"
30505 msgstr ""
30506
30507 #. type: =head2
30508 #: ../src/guestfs-actions.pod:6826
30509 msgid "guestfs_sfdisk_l"
30510 msgstr ""
30511
30512 #. type: verbatim
30513 #: ../src/guestfs-actions.pod:6828
30514 #, no-wrap
30515 msgid ""
30516 " char *\n"
30517 " guestfs_sfdisk_l (guestfs_h *g,\n"
30518 "                   const char *device);\n"
30519 "\n"
30520 msgstr ""
30521
30522 #. type: textblock
30523 #: ../src/guestfs-actions.pod:6832
30524 msgid ""
30525 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30526 "call instead."
30527 msgstr ""
30528
30529 #. type: textblock
30530 #: ../src/guestfs-actions.pod:6843
30531 msgid "See also: C<guestfs_part_list>"
30532 msgstr ""
30533
30534 #. type: =head2
30535 #: ../src/guestfs-actions.pod:6850
30536 msgid "guestfs_sh"
30537 msgstr ""
30538
30539 #. type: verbatim
30540 #: ../src/guestfs-actions.pod:6852
30541 #, no-wrap
30542 msgid ""
30543 " char *\n"
30544 " guestfs_sh (guestfs_h *g,\n"
30545 "             const char *command);\n"
30546 "\n"
30547 msgstr ""
30548
30549 #. type: textblock
30550 #: ../src/guestfs-actions.pod:6859
30551 msgid "This is like C<guestfs_command>, but passes the command to:"
30552 msgstr ""
30553
30554 #. type: textblock
30555 #: ../src/guestfs-actions.pod:6867
30556 msgid "All the provisos about C<guestfs_command> apply to this call."
30557 msgstr ""
30558
30559 #. type: =head2
30560 #: ../src/guestfs-actions.pod:6874
30561 msgid "guestfs_sh_lines"
30562 msgstr ""
30563
30564 #. type: verbatim
30565 #: ../src/guestfs-actions.pod:6876
30566 #, no-wrap
30567 msgid ""
30568 " char **\n"
30569 " guestfs_sh_lines (guestfs_h *g,\n"
30570 "                   const char *command);\n"
30571 "\n"
30572 msgstr ""
30573
30574 #. type: textblock
30575 #: ../src/guestfs-actions.pod:6880
30576 msgid ""
30577 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30578 "lines."
30579 msgstr ""
30580
30581 #. type: textblock
30582 #: ../src/guestfs-actions.pod:6883
30583 msgid "See also: C<guestfs_command_lines>"
30584 msgstr ""
30585
30586 #. type: =head2
30587 #: ../src/guestfs-actions.pod:6891
30588 msgid "guestfs_sleep"
30589 msgstr ""
30590
30591 #. type: verbatim
30592 #: ../src/guestfs-actions.pod:6893
30593 #, no-wrap
30594 msgid ""
30595 " int\n"
30596 " guestfs_sleep (guestfs_h *g,\n"
30597 "                int secs);\n"
30598 "\n"
30599 msgstr ""
30600
30601 #. type: textblock
30602 #: ../src/guestfs-actions.pod:6901
30603 msgid "(Added in 1.0.41)"
30604 msgstr ""
30605
30606 #. type: =head2
30607 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
30608 msgid "guestfs_stat"
30609 msgstr ""
30610
30611 #. type: verbatim
30612 #: ../src/guestfs-actions.pod:6905
30613 #, no-wrap
30614 msgid ""
30615 " struct guestfs_stat *\n"
30616 " guestfs_stat (guestfs_h *g,\n"
30617 "               const char *path);\n"
30618 "\n"
30619 msgstr ""
30620
30621 #. type: =head2
30622 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
30623 msgid "guestfs_statvfs"
30624 msgstr ""
30625
30626 #. type: verbatim
30627 #: ../src/guestfs-actions.pod:6921
30628 #, no-wrap
30629 msgid ""
30630 " struct guestfs_statvfs *\n"
30631 " guestfs_statvfs (guestfs_h *g,\n"
30632 "                  const char *path);\n"
30633 "\n"
30634 msgstr ""
30635
30636 #. type: textblock
30637 #: ../src/guestfs-actions.pod:6931
30638 msgid ""
30639 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30640 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30641 msgstr ""
30642
30643 #. type: =head2
30644 #: ../src/guestfs-actions.pod:6937
30645 msgid "guestfs_strings"
30646 msgstr ""
30647
30648 #. type: verbatim
30649 #: ../src/guestfs-actions.pod:6939
30650 #, no-wrap
30651 msgid ""
30652 " char **\n"
30653 " guestfs_strings (guestfs_h *g,\n"
30654 "                  const char *path);\n"
30655 "\n"
30656 msgstr ""
30657
30658 #. type: =head2
30659 #: ../src/guestfs-actions.pod:6955
30660 msgid "guestfs_strings_e"
30661 msgstr ""
30662
30663 #. type: verbatim
30664 #: ../src/guestfs-actions.pod:6957
30665 #, no-wrap
30666 msgid ""
30667 " char **\n"
30668 " guestfs_strings_e (guestfs_h *g,\n"
30669 "                    const char *encoding,\n"
30670 "                    const char *path);\n"
30671 "\n"
30672 msgstr ""
30673
30674 #. type: textblock
30675 #: ../src/guestfs-actions.pod:6962
30676 msgid ""
30677 "This is like the C<guestfs_strings> command, but allows you to specify the "
30678 "encoding of strings that are looked for in the source file C<path>."
30679 msgstr ""
30680
30681 #. type: textblock
30682 #: ../src/guestfs-actions.pod:6972
30683 msgid ""
30684 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30685 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30686 msgstr ""
30687
30688 #. type: =head2
30689 #: ../src/guestfs-actions.pod:7010
30690 msgid "guestfs_swapoff_device"
30691 msgstr ""
30692
30693 #. type: verbatim
30694 #: ../src/guestfs-actions.pod:7012
30695 #, no-wrap
30696 msgid ""
30697 " int\n"
30698 " guestfs_swapoff_device (guestfs_h *g,\n"
30699 "                         const char *device);\n"
30700 "\n"
30701 msgstr ""
30702
30703 #. type: textblock
30704 #: ../src/guestfs-actions.pod:7016
30705 msgid ""
30706 "This command disables the libguestfs appliance swap device or partition "
30707 "named C<device>.  See C<guestfs_swapon_device>."
30708 msgstr ""
30709
30710 #. type: =head2
30711 #: ../src/guestfs-actions.pod:7024
30712 msgid "guestfs_swapoff_file"
30713 msgstr ""
30714
30715 #. type: verbatim
30716 #: ../src/guestfs-actions.pod:7026
30717 #, no-wrap
30718 msgid ""
30719 " int\n"
30720 " guestfs_swapoff_file (guestfs_h *g,\n"
30721 "                       const char *file);\n"
30722 "\n"
30723 msgstr ""
30724
30725 #. type: =head2
30726 #: ../src/guestfs-actions.pod:7036
30727 msgid "guestfs_swapoff_label"
30728 msgstr ""
30729
30730 #. type: verbatim
30731 #: ../src/guestfs-actions.pod:7038
30732 #, no-wrap
30733 msgid ""
30734 " int\n"
30735 " guestfs_swapoff_label (guestfs_h *g,\n"
30736 "                        const char *label);\n"
30737 "\n"
30738 msgstr ""
30739
30740 #. type: =head2
30741 #: ../src/guestfs-actions.pod:7049
30742 msgid "guestfs_swapoff_uuid"
30743 msgstr ""
30744
30745 #. type: verbatim
30746 #: ../src/guestfs-actions.pod:7051
30747 #, no-wrap
30748 msgid ""
30749 " int\n"
30750 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30751 "                       const char *uuid);\n"
30752 "\n"
30753 msgstr ""
30754
30755 #. type: =head2
30756 #: ../src/guestfs-actions.pod:7062
30757 msgid "guestfs_swapon_device"
30758 msgstr ""
30759
30760 #. type: verbatim
30761 #: ../src/guestfs-actions.pod:7064
30762 #, no-wrap
30763 msgid ""
30764 " int\n"
30765 " guestfs_swapon_device (guestfs_h *g,\n"
30766 "                        const char *device);\n"
30767 "\n"
30768 msgstr ""
30769
30770 #. type: textblock
30771 #: ../src/guestfs-actions.pod:7068
30772 msgid ""
30773 "This command enables the libguestfs appliance to use the swap device or "
30774 "partition named C<device>.  The increased memory is made available for all "
30775 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30776 msgstr ""
30777
30778 #. type: =head2
30779 #: ../src/guestfs-actions.pod:7084
30780 msgid "guestfs_swapon_file"
30781 msgstr ""
30782
30783 #. type: verbatim
30784 #: ../src/guestfs-actions.pod:7086
30785 #, no-wrap
30786 msgid ""
30787 " int\n"
30788 " guestfs_swapon_file (guestfs_h *g,\n"
30789 "                      const char *file);\n"
30790 "\n"
30791 msgstr ""
30792
30793 #. type: textblock
30794 #: ../src/guestfs-actions.pod:7090
30795 msgid ""
30796 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30797 "notes."
30798 msgstr ""
30799
30800 #. type: =head2
30801 #: ../src/guestfs-actions.pod:7097
30802 msgid "guestfs_swapon_label"
30803 msgstr ""
30804
30805 #. type: verbatim
30806 #: ../src/guestfs-actions.pod:7099
30807 #, no-wrap
30808 msgid ""
30809 " int\n"
30810 " guestfs_swapon_label (guestfs_h *g,\n"
30811 "                       const char *label);\n"
30812 "\n"
30813 msgstr ""
30814
30815 #. type: textblock
30816 #: ../src/guestfs-actions.pod:7103
30817 msgid ""
30818 "This command enables swap to a labeled swap partition.  See "
30819 "C<guestfs_swapon_device> for other notes."
30820 msgstr ""
30821
30822 #. type: =head2
30823 #: ../src/guestfs-actions.pod:7110
30824 msgid "guestfs_swapon_uuid"
30825 msgstr ""
30826
30827 #. type: verbatim
30828 #: ../src/guestfs-actions.pod:7112
30829 #, no-wrap
30830 msgid ""
30831 " int\n"
30832 " guestfs_swapon_uuid (guestfs_h *g,\n"
30833 "                      const char *uuid);\n"
30834 "\n"
30835 msgstr ""
30836
30837 #. type: textblock
30838 #: ../src/guestfs-actions.pod:7116
30839 msgid ""
30840 "This command enables swap to a swap partition with the given UUID.  See "
30841 "C<guestfs_swapon_device> for other notes."
30842 msgstr ""
30843
30844 #. type: =head2
30845 #: ../src/guestfs-actions.pod:7123
30846 msgid "guestfs_sync"
30847 msgstr ""
30848
30849 #. type: verbatim
30850 #: ../src/guestfs-actions.pod:7125
30851 #, no-wrap
30852 msgid ""
30853 " int\n"
30854 " guestfs_sync (guestfs_h *g);\n"
30855 "\n"
30856 msgstr ""
30857
30858 #. type: =head2
30859 #: ../src/guestfs-actions.pod:7138
30860 msgid "guestfs_tail"
30861 msgstr ""
30862
30863 #. type: verbatim
30864 #: ../src/guestfs-actions.pod:7140
30865 #, no-wrap
30866 msgid ""
30867 " char **\n"
30868 " guestfs_tail (guestfs_h *g,\n"
30869 "               const char *path);\n"
30870 "\n"
30871 msgstr ""
30872
30873 #. type: =head2
30874 #: ../src/guestfs-actions.pod:7156
30875 msgid "guestfs_tail_n"
30876 msgstr ""
30877
30878 #. type: verbatim
30879 #: ../src/guestfs-actions.pod:7158
30880 #, no-wrap
30881 msgid ""
30882 " char **\n"
30883 " guestfs_tail_n (guestfs_h *g,\n"
30884 "                 int nrlines,\n"
30885 "                 const char *path);\n"
30886 "\n"
30887 msgstr ""
30888
30889 #. type: =head2
30890 #: ../src/guestfs-actions.pod:7180
30891 msgid "guestfs_tar_in"
30892 msgstr ""
30893
30894 #. type: verbatim
30895 #: ../src/guestfs-actions.pod:7182
30896 #, no-wrap
30897 msgid ""
30898 " int\n"
30899 " guestfs_tar_in (guestfs_h *g,\n"
30900 "                 const char *tarfile,\n"
30901 "                 const char *directory);\n"
30902 "\n"
30903 msgstr ""
30904
30905 #. type: textblock
30906 #: ../src/guestfs-actions.pod:7190
30907 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30908 msgstr ""
30909
30910 #. type: textblock
30911 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212 ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
30912 msgid "(Added in 1.0.3)"
30913 msgstr ""
30914
30915 #. type: =head2
30916 #: ../src/guestfs-actions.pod:7197
30917 msgid "guestfs_tar_out"
30918 msgstr ""
30919
30920 #. type: verbatim
30921 #: ../src/guestfs-actions.pod:7199
30922 #, no-wrap
30923 msgid ""
30924 " int\n"
30925 " guestfs_tar_out (guestfs_h *g,\n"
30926 "                  const char *directory,\n"
30927 "                  const char *tarfile);\n"
30928 "\n"
30929 msgstr ""
30930
30931 #. type: textblock
30932 #: ../src/guestfs-actions.pod:7207
30933 msgid ""
30934 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30935 "C<guestfs_txz_out>."
30936 msgstr ""
30937
30938 #. type: =head2
30939 #: ../src/guestfs-actions.pod:7214
30940 msgid "guestfs_tgz_in"
30941 msgstr ""
30942
30943 #. type: verbatim
30944 #: ../src/guestfs-actions.pod:7216
30945 #, no-wrap
30946 msgid ""
30947 " int\n"
30948 " guestfs_tgz_in (guestfs_h *g,\n"
30949 "                 const char *tarball,\n"
30950 "                 const char *directory);\n"
30951 "\n"
30952 msgstr ""
30953
30954 #. type: textblock
30955 #: ../src/guestfs-actions.pod:7224
30956 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30957 msgstr ""
30958
30959 #. type: =head2
30960 #: ../src/guestfs-actions.pod:7230
30961 msgid "guestfs_tgz_out"
30962 msgstr ""
30963
30964 #. type: verbatim
30965 #: ../src/guestfs-actions.pod:7232
30966 #, no-wrap
30967 msgid ""
30968 " int\n"
30969 " guestfs_tgz_out (guestfs_h *g,\n"
30970 "                  const char *directory,\n"
30971 "                  const char *tarball);\n"
30972 "\n"
30973 msgstr ""
30974
30975 #. type: textblock
30976 #: ../src/guestfs-actions.pod:7240
30977 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30978 msgstr ""
30979
30980 #. type: =head2
30981 #: ../src/guestfs-actions.pod:7246
30982 msgid "guestfs_touch"
30983 msgstr ""
30984
30985 #. type: verbatim
30986 #: ../src/guestfs-actions.pod:7248
30987 #, no-wrap
30988 msgid ""
30989 " int\n"
30990 " guestfs_touch (guestfs_h *g,\n"
30991 "                const char *path);\n"
30992 "\n"
30993 msgstr ""
30994
30995 #. type: =head2
30996 #: ../src/guestfs-actions.pod:7263
30997 msgid "guestfs_truncate"
30998 msgstr ""
30999
31000 #. type: verbatim
31001 #: ../src/guestfs-actions.pod:7265
31002 #, no-wrap
31003 msgid ""
31004 " int\n"
31005 " guestfs_truncate (guestfs_h *g,\n"
31006 "                   const char *path);\n"
31007 "\n"
31008 msgstr ""
31009
31010 #. type: =head2
31011 #: ../src/guestfs-actions.pod:7276
31012 msgid "guestfs_truncate_size"
31013 msgstr ""
31014
31015 #. type: verbatim
31016 #: ../src/guestfs-actions.pod:7278
31017 #, no-wrap
31018 msgid ""
31019 " int\n"
31020 " guestfs_truncate_size (guestfs_h *g,\n"
31021 "                        const char *path,\n"
31022 "                        int64_t size);\n"
31023 "\n"
31024 msgstr ""
31025
31026 #. type: textblock
31027 #: ../src/guestfs-actions.pod:7286
31028 msgid ""
31029 "If the current file size is less than C<size> then the file is extended to "
31030 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31031 "blocks are not allocated for the file until you write to it).  To create a "
31032 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31033 msgstr ""
31034
31035 #. type: =head2
31036 #: ../src/guestfs-actions.pod:7296
31037 msgid "guestfs_tune2fs_l"
31038 msgstr ""
31039
31040 #. type: verbatim
31041 #: ../src/guestfs-actions.pod:7298
31042 #, no-wrap
31043 msgid ""
31044 " char **\n"
31045 " guestfs_tune2fs_l (guestfs_h *g,\n"
31046 "                    const char *device);\n"
31047 "\n"
31048 msgstr ""
31049
31050 #. type: =head2
31051 #: ../src/guestfs-actions.pod:7318
31052 msgid "guestfs_txz_in"
31053 msgstr ""
31054
31055 #. type: verbatim
31056 #: ../src/guestfs-actions.pod:7320
31057 #, no-wrap
31058 msgid ""
31059 " int\n"
31060 " guestfs_txz_in (guestfs_h *g,\n"
31061 "                 const char *tarball,\n"
31062 "                 const char *directory);\n"
31063 "\n"
31064 msgstr ""
31065
31066 #. type: =head2
31067 #: ../src/guestfs-actions.pod:7332
31068 msgid "guestfs_txz_out"
31069 msgstr ""
31070
31071 #. type: verbatim
31072 #: ../src/guestfs-actions.pod:7334
31073 #, no-wrap
31074 msgid ""
31075 " int\n"
31076 " guestfs_txz_out (guestfs_h *g,\n"
31077 "                  const char *directory,\n"
31078 "                  const char *tarball);\n"
31079 "\n"
31080 msgstr ""
31081
31082 #. type: =head2
31083 #: ../src/guestfs-actions.pod:7346
31084 msgid "guestfs_umask"
31085 msgstr ""
31086
31087 #. type: verbatim
31088 #: ../src/guestfs-actions.pod:7348
31089 #, no-wrap
31090 msgid ""
31091 " int\n"
31092 " guestfs_umask (guestfs_h *g,\n"
31093 "                int mask);\n"
31094 "\n"
31095 msgstr ""
31096
31097 #. type: textblock
31098 #: ../src/guestfs-actions.pod:7364
31099 msgid ""
31100 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31101 "C<guestfs_mkdir>."
31102 msgstr ""
31103
31104 #. type: =head2
31105 #: ../src/guestfs-actions.pod:7373
31106 msgid "guestfs_umount"
31107 msgstr ""
31108
31109 #. type: verbatim
31110 #: ../src/guestfs-actions.pod:7375
31111 #, no-wrap
31112 msgid ""
31113 " int\n"
31114 " guestfs_umount (guestfs_h *g,\n"
31115 "                 const char *pathordevice);\n"
31116 "\n"
31117 msgstr ""
31118
31119 #. type: =head2
31120 #: ../src/guestfs-actions.pod:7387
31121 msgid "guestfs_umount_all"
31122 msgstr ""
31123
31124 #. type: verbatim
31125 #: ../src/guestfs-actions.pod:7389
31126 #, no-wrap
31127 msgid ""
31128 " int\n"
31129 " guestfs_umount_all (guestfs_h *g);\n"
31130 "\n"
31131 msgstr ""
31132
31133 #. type: =head2
31134 #: ../src/guestfs-actions.pod:7400
31135 msgid "guestfs_upload"
31136 msgstr ""
31137
31138 #. type: verbatim
31139 #: ../src/guestfs-actions.pod:7402
31140 #, no-wrap
31141 msgid ""
31142 " int\n"
31143 " guestfs_upload (guestfs_h *g,\n"
31144 "                 const char *filename,\n"
31145 "                 const char *remotefilename);\n"
31146 "\n"
31147 msgstr ""
31148
31149 #. type: textblock
31150 #: ../src/guestfs-actions.pod:7412
31151 msgid "See also C<guestfs_download>."
31152 msgstr ""
31153
31154 #. type: =head2
31155 #: ../src/guestfs-actions.pod:7423
31156 msgid "guestfs_upload_offset"
31157 msgstr ""
31158
31159 #. type: verbatim
31160 #: ../src/guestfs-actions.pod:7425
31161 #, no-wrap
31162 msgid ""
31163 " int\n"
31164 " guestfs_upload_offset (guestfs_h *g,\n"
31165 "                        const char *filename,\n"
31166 "                        const char *remotefilename,\n"
31167 "                        int64_t offset);\n"
31168 "\n"
31169 msgstr ""
31170
31171 #. type: textblock
31172 #: ../src/guestfs-actions.pod:7441
31173 msgid ""
31174 "Note that there is no limit on the amount of data that can be uploaded with "
31175 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31176 "full amount unless an error occurs."
31177 msgstr ""
31178
31179 #. type: textblock
31180 #: ../src/guestfs-actions.pod:7446
31181 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31182 msgstr ""
31183
31184 #. type: =head2
31185 #: ../src/guestfs-actions.pod:7457
31186 msgid "guestfs_utimens"
31187 msgstr ""
31188
31189 #. type: verbatim
31190 #: ../src/guestfs-actions.pod:7459
31191 #, no-wrap
31192 msgid ""
31193 " int\n"
31194 " guestfs_utimens (guestfs_h *g,\n"
31195 "                  const char *path,\n"
31196 "                  int64_t atsecs,\n"
31197 "                  int64_t atnsecs,\n"
31198 "                  int64_t mtsecs,\n"
31199 "                  int64_t mtnsecs);\n"
31200 "\n"
31201 msgstr ""
31202
31203 #. type: =head2
31204 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
31205 msgid "guestfs_version"
31206 msgstr ""
31207
31208 #. type: verbatim
31209 #: ../src/guestfs-actions.pod:7490
31210 #, no-wrap
31211 msgid ""
31212 " struct guestfs_version *\n"
31213 " guestfs_version (guestfs_h *g);\n"
31214 "\n"
31215 msgstr ""
31216
31217 #. type: textblock
31218 #: ../src/guestfs-actions.pod:7518
31219 msgid ""
31220 "I<Note:> Don't use this call to test for availability of features.  In "
31221 "enterprise distributions we backport features from later versions into "
31222 "earlier versions, making this an unreliable way to test for features.  Use "
31223 "C<guestfs_available> instead."
31224 msgstr ""
31225
31226 #. type: textblock
31227 #: ../src/guestfs-actions.pod:7524
31228 msgid ""
31229 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31230 "error.  I<The caller must call C<guestfs_free_version> after use>."
31231 msgstr ""
31232
31233 #. type: textblock
31234 #: ../src/guestfs-actions.pod:7528
31235 msgid "(Added in 1.0.58)"
31236 msgstr ""
31237
31238 #. type: =head2
31239 #: ../src/guestfs-actions.pod:7530
31240 msgid "guestfs_vfs_label"
31241 msgstr ""
31242
31243 #. type: verbatim
31244 #: ../src/guestfs-actions.pod:7532
31245 #, no-wrap
31246 msgid ""
31247 " char *\n"
31248 " guestfs_vfs_label (guestfs_h *g,\n"
31249 "                    const char *device);\n"
31250 "\n"
31251 msgstr ""
31252
31253 #. type: textblock
31254 #: ../src/guestfs-actions.pod:7541
31255 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31256 msgstr ""
31257
31258 #. type: textblock
31259 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
31260 msgid "(Added in 1.3.18)"
31261 msgstr ""
31262
31263 #. type: =head2
31264 #: ../src/guestfs-actions.pod:7548
31265 msgid "guestfs_vfs_type"
31266 msgstr ""
31267
31268 #. type: verbatim
31269 #: ../src/guestfs-actions.pod:7550
31270 #, no-wrap
31271 msgid ""
31272 " char *\n"
31273 " guestfs_vfs_type (guestfs_h *g,\n"
31274 "                   const char *device);\n"
31275 "\n"
31276 msgstr ""
31277
31278 #. type: =head2
31279 #: ../src/guestfs-actions.pod:7567
31280 msgid "guestfs_vfs_uuid"
31281 msgstr ""
31282
31283 #. type: verbatim
31284 #: ../src/guestfs-actions.pod:7569
31285 #, no-wrap
31286 msgid ""
31287 " char *\n"
31288 " guestfs_vfs_uuid (guestfs_h *g,\n"
31289 "                   const char *device);\n"
31290 "\n"
31291 msgstr ""
31292
31293 #. type: textblock
31294 #: ../src/guestfs-actions.pod:7578
31295 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31296 msgstr ""
31297
31298 #. type: =head2
31299 #: ../src/guestfs-actions.pod:7585
31300 msgid "guestfs_vg_activate"
31301 msgstr ""
31302
31303 #. type: verbatim
31304 #: ../src/guestfs-actions.pod:7587
31305 #, no-wrap
31306 msgid ""
31307 " int\n"
31308 " guestfs_vg_activate (guestfs_h *g,\n"
31309 "                      int activate,\n"
31310 "                      char *const *volgroups);\n"
31311 "\n"
31312 msgstr ""
31313
31314 #. type: =head2
31315 #: ../src/guestfs-actions.pod:7604
31316 msgid "guestfs_vg_activate_all"
31317 msgstr ""
31318
31319 #. type: verbatim
31320 #: ../src/guestfs-actions.pod:7606
31321 #, no-wrap
31322 msgid ""
31323 " int\n"
31324 " guestfs_vg_activate_all (guestfs_h *g,\n"
31325 "                          int activate);\n"
31326 "\n"
31327 msgstr ""
31328
31329 #. type: =head2
31330 #: ../src/guestfs-actions.pod:7619
31331 msgid "guestfs_vgcreate"
31332 msgstr ""
31333
31334 #. type: verbatim
31335 #: ../src/guestfs-actions.pod:7621
31336 #, no-wrap
31337 msgid ""
31338 " int\n"
31339 " guestfs_vgcreate (guestfs_h *g,\n"
31340 "                   const char *volgroup,\n"
31341 "                   char *const *physvols);\n"
31342 "\n"
31343 msgstr ""
31344
31345 #. type: =head2
31346 #: ../src/guestfs-actions.pod:7633
31347 msgid "guestfs_vglvuuids"
31348 msgstr ""
31349
31350 #. type: verbatim
31351 #: ../src/guestfs-actions.pod:7635
31352 #, no-wrap
31353 msgid ""
31354 " char **\n"
31355 " guestfs_vglvuuids (guestfs_h *g,\n"
31356 "                    const char *vgname);\n"
31357 "\n"
31358 msgstr ""
31359
31360 #. type: textblock
31361 #: ../src/guestfs-actions.pod:7642
31362 msgid ""
31363 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31364 "associate logical volumes and volume groups."
31365 msgstr ""
31366
31367 #. type: textblock
31368 #: ../src/guestfs-actions.pod:7645
31369 msgid "See also C<guestfs_vgpvuuids>."
31370 msgstr ""
31371
31372 #. type: =head2
31373 #: ../src/guestfs-actions.pod:7653
31374 msgid "guestfs_vgpvuuids"
31375 msgstr ""
31376
31377 #. type: verbatim
31378 #: ../src/guestfs-actions.pod:7655
31379 #, no-wrap
31380 msgid ""
31381 " char **\n"
31382 " guestfs_vgpvuuids (guestfs_h *g,\n"
31383 "                    const char *vgname);\n"
31384 "\n"
31385 msgstr ""
31386
31387 #. type: textblock
31388 #: ../src/guestfs-actions.pod:7662
31389 msgid ""
31390 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31391 "associate physical volumes and volume groups."
31392 msgstr ""
31393
31394 #. type: textblock
31395 #: ../src/guestfs-actions.pod:7665
31396 msgid "See also C<guestfs_vglvuuids>."
31397 msgstr ""
31398
31399 #. type: =head2
31400 #: ../src/guestfs-actions.pod:7673
31401 msgid "guestfs_vgremove"
31402 msgstr ""
31403
31404 #. type: verbatim
31405 #: ../src/guestfs-actions.pod:7675
31406 #, no-wrap
31407 msgid ""
31408 " int\n"
31409 " guestfs_vgremove (guestfs_h *g,\n"
31410 "                   const char *vgname);\n"
31411 "\n"
31412 msgstr ""
31413
31414 #. type: =head2
31415 #: ../src/guestfs-actions.pod:7688
31416 msgid "guestfs_vgrename"
31417 msgstr ""
31418
31419 #. type: verbatim
31420 #: ../src/guestfs-actions.pod:7690
31421 #, no-wrap
31422 msgid ""
31423 " int\n"
31424 " guestfs_vgrename (guestfs_h *g,\n"
31425 "                   const char *volgroup,\n"
31426 "                   const char *newvolgroup);\n"
31427 "\n"
31428 msgstr ""
31429
31430 #. type: =head2
31431 #: ../src/guestfs-actions.pod:7701
31432 msgid "guestfs_vgs"
31433 msgstr ""
31434
31435 #. type: verbatim
31436 #: ../src/guestfs-actions.pod:7703
31437 #, no-wrap
31438 msgid ""
31439 " char **\n"
31440 " guestfs_vgs (guestfs_h *g);\n"
31441 "\n"
31442 msgstr ""
31443
31444 #. type: textblock
31445 #: ../src/guestfs-actions.pod:7712
31446 msgid "See also C<guestfs_vgs_full>."
31447 msgstr ""
31448
31449 #. type: =head2
31450 #: ../src/guestfs-actions.pod:7720
31451 msgid "guestfs_vgs_full"
31452 msgstr ""
31453
31454 #. type: verbatim
31455 #: ../src/guestfs-actions.pod:7722
31456 #, no-wrap
31457 msgid ""
31458 " struct guestfs_lvm_vg_list *\n"
31459 " guestfs_vgs_full (guestfs_h *g);\n"
31460 "\n"
31461 msgstr ""
31462
31463 #. type: textblock
31464 #: ../src/guestfs-actions.pod:7728
31465 msgid ""
31466 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31467 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
31468 "use>."
31469 msgstr ""
31470
31471 #. type: =head2
31472 #: ../src/guestfs-actions.pod:7734
31473 msgid "guestfs_vgscan"
31474 msgstr ""
31475
31476 #. type: verbatim
31477 #: ../src/guestfs-actions.pod:7736
31478 #, no-wrap
31479 msgid ""
31480 " int\n"
31481 " guestfs_vgscan (guestfs_h *g);\n"
31482 "\n"
31483 msgstr ""
31484
31485 #. type: =head2
31486 #: ../src/guestfs-actions.pod:7746
31487 msgid "guestfs_vguuid"
31488 msgstr ""
31489
31490 #. type: verbatim
31491 #: ../src/guestfs-actions.pod:7748
31492 #, no-wrap
31493 msgid ""
31494 " char *\n"
31495 " guestfs_vguuid (guestfs_h *g,\n"
31496 "                 const char *vgname);\n"
31497 "\n"
31498 msgstr ""
31499
31500 #. type: =head2
31501 #: ../src/guestfs-actions.pod:7759
31502 msgid "guestfs_wait_ready"
31503 msgstr ""
31504
31505 #. type: verbatim
31506 #: ../src/guestfs-actions.pod:7761
31507 #, no-wrap
31508 msgid ""
31509 " int\n"
31510 " guestfs_wait_ready (guestfs_h *g);\n"
31511 "\n"
31512 msgstr ""
31513
31514 #. type: textblock
31515 #: ../src/guestfs-actions.pod:7764
31516 msgid ""
31517 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31518 "instead."
31519 msgstr ""
31520
31521 #. type: textblock
31522 #: ../src/guestfs-actions.pod:7771
31523 msgid "This function is a no op."
31524 msgstr ""
31525
31526 #. type: textblock
31527 #: ../src/guestfs-actions.pod:7773
31528 msgid ""
31529 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31530 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31531 "is no longer necessary because C<guestfs_launch> now does the waiting."
31532 msgstr ""
31533
31534 #. type: textblock
31535 #: ../src/guestfs-actions.pod:7778
31536 msgid ""
31537 "If you see any calls to this function in code then you can just remove them, "
31538 "unless you want to retain compatibility with older versions of the API."
31539 msgstr ""
31540
31541 #. type: =head2
31542 #: ../src/guestfs-actions.pod:7786
31543 msgid "guestfs_wc_c"
31544 msgstr ""
31545
31546 #. type: verbatim
31547 #: ../src/guestfs-actions.pod:7788
31548 #, no-wrap
31549 msgid ""
31550 " int\n"
31551 " guestfs_wc_c (guestfs_h *g,\n"
31552 "               const char *path);\n"
31553 "\n"
31554 msgstr ""
31555
31556 #. type: =head2
31557 #: ../src/guestfs-actions.pod:7799
31558 msgid "guestfs_wc_l"
31559 msgstr ""
31560
31561 #. type: verbatim
31562 #: ../src/guestfs-actions.pod:7801
31563 #, no-wrap
31564 msgid ""
31565 " int\n"
31566 " guestfs_wc_l (guestfs_h *g,\n"
31567 "               const char *path);\n"
31568 "\n"
31569 msgstr ""
31570
31571 #. type: =head2
31572 #: ../src/guestfs-actions.pod:7812
31573 msgid "guestfs_wc_w"
31574 msgstr ""
31575
31576 #. type: verbatim
31577 #: ../src/guestfs-actions.pod:7814
31578 #, no-wrap
31579 msgid ""
31580 " int\n"
31581 " guestfs_wc_w (guestfs_h *g,\n"
31582 "               const char *path);\n"
31583 "\n"
31584 msgstr ""
31585
31586 #. type: =head2
31587 #: ../src/guestfs-actions.pod:7825
31588 msgid "guestfs_write"
31589 msgstr ""
31590
31591 #. type: verbatim
31592 #: ../src/guestfs-actions.pod:7827
31593 #, no-wrap
31594 msgid ""
31595 " int\n"
31596 " guestfs_write (guestfs_h *g,\n"
31597 "                const char *path,\n"
31598 "                const char *content,\n"
31599 "                size_t content_size);\n"
31600 "\n"
31601 msgstr ""
31602
31603 #. type: textblock
31604 #: ../src/guestfs-actions.pod:7836
31605 msgid "See also C<guestfs_write_append>."
31606 msgstr ""
31607
31608 #. type: =head2
31609 #: ../src/guestfs-actions.pod:7845
31610 msgid "guestfs_write_append"
31611 msgstr ""
31612
31613 #. type: verbatim
31614 #: ../src/guestfs-actions.pod:7847
31615 #, no-wrap
31616 msgid ""
31617 " int\n"
31618 " guestfs_write_append (guestfs_h *g,\n"
31619 "                       const char *path,\n"
31620 "                       const char *content,\n"
31621 "                       size_t content_size);\n"
31622 "\n"
31623 msgstr ""
31624
31625 #. type: textblock
31626 #: ../src/guestfs-actions.pod:7856
31627 msgid "See also C<guestfs_write>."
31628 msgstr ""
31629
31630 #. type: =head2
31631 #: ../src/guestfs-actions.pod:7865
31632 msgid "guestfs_write_file"
31633 msgstr ""
31634
31635 #. type: verbatim
31636 #: ../src/guestfs-actions.pod:7867
31637 #, no-wrap
31638 msgid ""
31639 " int\n"
31640 " guestfs_write_file (guestfs_h *g,\n"
31641 "                     const char *path,\n"
31642 "                     const char *content,\n"
31643 "                     int size);\n"
31644 "\n"
31645 msgstr ""
31646
31647 #. type: textblock
31648 #: ../src/guestfs-actions.pod:7873
31649 msgid ""
31650 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31651 "instead."
31652 msgstr ""
31653
31654 #. type: =head2
31655 #: ../src/guestfs-actions.pod:7898
31656 msgid "guestfs_zegrep"
31657 msgstr ""
31658
31659 #. type: verbatim
31660 #: ../src/guestfs-actions.pod:7900
31661 #, no-wrap
31662 msgid ""
31663 " char **\n"
31664 " guestfs_zegrep (guestfs_h *g,\n"
31665 "                 const char *regex,\n"
31666 "                 const char *path);\n"
31667 "\n"
31668 msgstr ""
31669
31670 #. type: =head2
31671 #: ../src/guestfs-actions.pod:7917
31672 msgid "guestfs_zegrepi"
31673 msgstr ""
31674
31675 #. type: verbatim
31676 #: ../src/guestfs-actions.pod:7919
31677 #, no-wrap
31678 msgid ""
31679 " char **\n"
31680 " guestfs_zegrepi (guestfs_h *g,\n"
31681 "                  const char *regex,\n"
31682 "                  const char *path);\n"
31683 "\n"
31684 msgstr ""
31685
31686 #. type: =head2
31687 #: ../src/guestfs-actions.pod:7936
31688 msgid "guestfs_zero"
31689 msgstr ""
31690
31691 #. type: verbatim
31692 #: ../src/guestfs-actions.pod:7938
31693 #, no-wrap
31694 msgid ""
31695 " int\n"
31696 " guestfs_zero (guestfs_h *g,\n"
31697 "               const char *device);\n"
31698 "\n"
31699 msgstr ""
31700
31701 #. type: textblock
31702 #: ../src/guestfs-actions.pod:7952
31703 msgid ""
31704 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31705 "C<guestfs_is_zero_device>"
31706 msgstr ""
31707
31708 #. type: =head2
31709 #: ../src/guestfs-actions.pod:7964
31710 msgid "guestfs_zero_device"
31711 msgstr ""
31712
31713 #. type: verbatim
31714 #: ../src/guestfs-actions.pod:7966
31715 #, no-wrap
31716 msgid ""
31717 " int\n"
31718 " guestfs_zero_device (guestfs_h *g,\n"
31719 "                      const char *device);\n"
31720 "\n"
31721 msgstr ""
31722
31723 #. type: textblock
31724 #: ../src/guestfs-actions.pod:7970
31725 msgid ""
31726 "This command writes zeroes over the entire C<device>.  Compare with "
31727 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31728 msgstr ""
31729
31730 #. type: textblock
31731 #: ../src/guestfs-actions.pod:7988
31732 msgid "(Added in 1.3.1)"
31733 msgstr ""
31734
31735 #. type: =head2
31736 #: ../src/guestfs-actions.pod:7990
31737 msgid "guestfs_zerofree"
31738 msgstr ""
31739
31740 #. type: verbatim
31741 #: ../src/guestfs-actions.pod:7992
31742 #, no-wrap
31743 msgid ""
31744 " int\n"
31745 " guestfs_zerofree (guestfs_h *g,\n"
31746 "                   const char *device);\n"
31747 "\n"
31748 msgstr ""
31749
31750 #. type: =head2
31751 #: ../src/guestfs-actions.pod:8011
31752 msgid "guestfs_zfgrep"
31753 msgstr ""
31754
31755 #. type: verbatim
31756 #: ../src/guestfs-actions.pod:8013
31757 #, no-wrap
31758 msgid ""
31759 " char **\n"
31760 " guestfs_zfgrep (guestfs_h *g,\n"
31761 "                 const char *pattern,\n"
31762 "                 const char *path);\n"
31763 "\n"
31764 msgstr ""
31765
31766 #. type: =head2
31767 #: ../src/guestfs-actions.pod:8030
31768 msgid "guestfs_zfgrepi"
31769 msgstr ""
31770
31771 #. type: verbatim
31772 #: ../src/guestfs-actions.pod:8032
31773 #, no-wrap
31774 msgid ""
31775 " char **\n"
31776 " guestfs_zfgrepi (guestfs_h *g,\n"
31777 "                  const char *pattern,\n"
31778 "                  const char *path);\n"
31779 "\n"
31780 msgstr ""
31781
31782 #. type: =head2
31783 #: ../src/guestfs-actions.pod:8049
31784 msgid "guestfs_zfile"
31785 msgstr ""
31786
31787 #. type: verbatim
31788 #: ../src/guestfs-actions.pod:8051
31789 #, no-wrap
31790 msgid ""
31791 " char *\n"
31792 " guestfs_zfile (guestfs_h *g,\n"
31793 "                const char *meth,\n"
31794 "                const char *path);\n"
31795 "\n"
31796 msgstr ""
31797
31798 #. type: textblock
31799 #: ../src/guestfs-actions.pod:8056
31800 msgid ""
31801 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31802 "instead."
31803 msgstr ""
31804
31805 #. type: textblock
31806 #: ../src/guestfs-actions.pod:8068
31807 msgid ""
31808 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31809 "files."
31810 msgstr ""
31811
31812 #. type: =head2
31813 #: ../src/guestfs-actions.pod:8076
31814 msgid "guestfs_zgrep"
31815 msgstr ""
31816
31817 #. type: verbatim
31818 #: ../src/guestfs-actions.pod:8078
31819 #, no-wrap
31820 msgid ""
31821 " char **\n"
31822 " guestfs_zgrep (guestfs_h *g,\n"
31823 "                const char *regex,\n"
31824 "                const char *path);\n"
31825 "\n"
31826 msgstr ""
31827
31828 #. type: =head2
31829 #: ../src/guestfs-actions.pod:8095
31830 msgid "guestfs_zgrepi"
31831 msgstr ""
31832
31833 #. type: verbatim
31834 #: ../src/guestfs-actions.pod:8097
31835 #, no-wrap
31836 msgid ""
31837 " char **\n"
31838 " guestfs_zgrepi (guestfs_h *g,\n"
31839 "                 const char *regex,\n"
31840 "                 const char *path);\n"
31841 "\n"
31842 msgstr ""
31843
31844 #. type: =item
31845 #: ../src/guestfs-availability.pod:3
31846 msgid "B<augeas>"
31847 msgstr ""
31848
31849 #. type: textblock
31850 #: ../src/guestfs-availability.pod:5
31851 msgid ""
31852 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
31853 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
31854 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
31855 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
31856 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
31857 msgstr ""
31858
31859 #. type: =item
31860 #: ../src/guestfs-availability.pod:21
31861 msgid "B<btrfs>"
31862 msgstr ""
31863
31864 #. type: textblock
31865 #: ../src/guestfs-availability.pod:23
31866 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31867 msgstr ""
31868
31869 #. type: =item
31870 #: ../src/guestfs-availability.pod:26
31871 msgid "B<grub>"
31872 msgstr ""
31873
31874 #. type: textblock
31875 #: ../src/guestfs-availability.pod:28
31876 msgid "The following functions: L</guestfs_grub_install>"
31877 msgstr ""
31878
31879 #. type: =item
31880 #: ../src/guestfs-availability.pod:31
31881 msgid "B<inotify>"
31882 msgstr ""
31883
31884 #. type: textblock
31885 #: ../src/guestfs-availability.pod:33
31886 msgid ""
31887 "The following functions: L</guestfs_inotify_add_watch> "
31888 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
31889 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31890 msgstr ""
31891
31892 #. type: =item
31893 #: ../src/guestfs-availability.pod:41
31894 msgid "B<linuxfsuuid>"
31895 msgstr ""
31896
31897 #. type: textblock
31898 #: ../src/guestfs-availability.pod:43
31899 msgid ""
31900 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
31901 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31902 msgstr ""
31903
31904 #. type: =item
31905 #: ../src/guestfs-availability.pod:50
31906 msgid "B<linuxmodules>"
31907 msgstr ""
31908
31909 #. type: textblock
31910 #: ../src/guestfs-availability.pod:52
31911 msgid "The following functions: L</guestfs_modprobe>"
31912 msgstr ""
31913
31914 #. type: =item
31915 #: ../src/guestfs-availability.pod:55
31916 msgid "B<linuxxattrs>"
31917 msgstr ""
31918
31919 #. type: textblock
31920 #: ../src/guestfs-availability.pod:57
31921 msgid ""
31922 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
31923 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
31924 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
31925 "L</guestfs_setxattr>"
31926 msgstr ""
31927
31928 #. type: =item
31929 #: ../src/guestfs-availability.pod:68
31930 msgid "B<luks>"
31931 msgstr ""
31932
31933 #. type: textblock
31934 #: ../src/guestfs-availability.pod:70
31935 msgid ""
31936 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
31937 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
31938 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31939 msgstr ""
31940
31941 #. type: =item
31942 #: ../src/guestfs-availability.pod:79
31943 msgid "B<lvm2>"
31944 msgstr ""
31945
31946 #. type: textblock
31947 #: ../src/guestfs-availability.pod:81
31948 msgid ""
31949 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
31950 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
31951 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
31952 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
31953 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
31954 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
31955 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
31956 "L</guestfs_vgs_full>"
31957 msgstr ""
31958
31959 #. type: =item
31960 #: ../src/guestfs-availability.pod:104
31961 msgid "B<mknod>"
31962 msgstr ""
31963
31964 #. type: textblock
31965 #: ../src/guestfs-availability.pod:106
31966 msgid ""
31967 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
31968 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
31969 msgstr ""
31970
31971 #. type: =item
31972 #: ../src/guestfs-availability.pod:112
31973 msgid "B<ntfs3g>"
31974 msgstr ""
31975
31976 #. type: textblock
31977 #: ../src/guestfs-availability.pod:114
31978 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31979 msgstr ""
31980
31981 #. type: =item
31982 #: ../src/guestfs-availability.pod:117
31983 msgid "B<ntfsprogs>"
31984 msgstr ""
31985
31986 #. type: textblock
31987 #: ../src/guestfs-availability.pod:119
31988 msgid ""
31989 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31990 "L</guestfs_ntfsresize_size>"
31991 msgstr ""
31992
31993 #. type: =item
31994 #: ../src/guestfs-availability.pod:124
31995 msgid "B<realpath>"
31996 msgstr ""
31997
31998 #. type: textblock
31999 #: ../src/guestfs-availability.pod:126
32000 msgid "The following functions: L</guestfs_realpath>"
32001 msgstr ""
32002
32003 #. type: =item
32004 #: ../src/guestfs-availability.pod:129
32005 msgid "B<scrub>"
32006 msgstr ""
32007
32008 #. type: textblock
32009 #: ../src/guestfs-availability.pod:131
32010 msgid ""
32011 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
32012 "L</guestfs_scrub_freespace>"
32013 msgstr ""
32014
32015 #. type: =item
32016 #: ../src/guestfs-availability.pod:136
32017 msgid "B<selinux>"
32018 msgstr ""
32019
32020 #. type: textblock
32021 #: ../src/guestfs-availability.pod:138
32022 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32023 msgstr ""
32024
32025 #. type: =item
32026 #: ../src/guestfs-availability.pod:142
32027 msgid "B<xz>"
32028 msgstr ""
32029
32030 #. type: textblock
32031 #: ../src/guestfs-availability.pod:144
32032 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32033 msgstr ""
32034
32035 #. type: =item
32036 #: ../src/guestfs-availability.pod:148
32037 msgid "B<zerofree>"
32038 msgstr ""
32039
32040 #. type: textblock
32041 #: ../src/guestfs-availability.pod:150
32042 msgid "The following functions: L</guestfs_zerofree>"
32043 msgstr ""
32044
32045 #. type: =head2
32046 #: ../src/guestfs-structs.pod:1
32047 msgid "guestfs_int_bool"
32048 msgstr ""
32049
32050 #. type: verbatim
32051 #: ../src/guestfs-structs.pod:3
32052 #, no-wrap
32053 msgid ""
32054 " struct guestfs_int_bool {\n"
32055 "   int32_t i;\n"
32056 "   int32_t b;\n"
32057 " };\n"
32058 " \n"
32059 msgstr ""
32060
32061 #. type: verbatim
32062 #: ../src/guestfs-structs.pod:8
32063 #, no-wrap
32064 msgid ""
32065 " struct guestfs_int_bool_list {\n"
32066 "   uint32_t len; /* Number of elements in list. */\n"
32067 "   struct guestfs_int_bool *val; /* Elements. */\n"
32068 " };\n"
32069 " \n"
32070 msgstr ""
32071
32072 #. type: verbatim
32073 #: ../src/guestfs-structs.pod:13
32074 #, no-wrap
32075 msgid ""
32076 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32077 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32078 "\n"
32079 msgstr ""
32080
32081 #. type: =head2
32082 #: ../src/guestfs-structs.pod:16
32083 msgid "guestfs_lvm_pv"
32084 msgstr ""
32085
32086 #. type: verbatim
32087 #: ../src/guestfs-structs.pod:18
32088 #, no-wrap
32089 msgid ""
32090 " struct guestfs_lvm_pv {\n"
32091 "   char *pv_name;\n"
32092 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32093 "*/\n"
32094 "   char pv_uuid[32];\n"
32095 "   char *pv_fmt;\n"
32096 "   uint64_t pv_size;\n"
32097 "   uint64_t dev_size;\n"
32098 "   uint64_t pv_free;\n"
32099 "   uint64_t pv_used;\n"
32100 "   char *pv_attr;\n"
32101 "   int64_t pv_pe_count;\n"
32102 "   int64_t pv_pe_alloc_count;\n"
32103 "   char *pv_tags;\n"
32104 "   uint64_t pe_start;\n"
32105 "   int64_t pv_mda_count;\n"
32106 "   uint64_t pv_mda_free;\n"
32107 " };\n"
32108 " \n"
32109 msgstr ""
32110
32111 #. type: verbatim
32112 #: ../src/guestfs-structs.pod:36
32113 #, no-wrap
32114 msgid ""
32115 " struct guestfs_lvm_pv_list {\n"
32116 "   uint32_t len; /* Number of elements in list. */\n"
32117 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32118 " };\n"
32119 " \n"
32120 msgstr ""
32121
32122 #. type: verbatim
32123 #: ../src/guestfs-structs.pod:41
32124 #, no-wrap
32125 msgid ""
32126 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32127 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32128 "\n"
32129 msgstr ""
32130
32131 #. type: =head2
32132 #: ../src/guestfs-structs.pod:44
32133 msgid "guestfs_lvm_vg"
32134 msgstr ""
32135
32136 #. type: verbatim
32137 #: ../src/guestfs-structs.pod:46
32138 #, no-wrap
32139 msgid ""
32140 " struct guestfs_lvm_vg {\n"
32141 "   char *vg_name;\n"
32142 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32143 "*/\n"
32144 "   char vg_uuid[32];\n"
32145 "   char *vg_fmt;\n"
32146 "   char *vg_attr;\n"
32147 "   uint64_t vg_size;\n"
32148 "   uint64_t vg_free;\n"
32149 "   char *vg_sysid;\n"
32150 "   uint64_t vg_extent_size;\n"
32151 "   int64_t vg_extent_count;\n"
32152 "   int64_t vg_free_count;\n"
32153 "   int64_t max_lv;\n"
32154 "   int64_t max_pv;\n"
32155 "   int64_t pv_count;\n"
32156 "   int64_t lv_count;\n"
32157 "   int64_t snap_count;\n"
32158 "   int64_t vg_seqno;\n"
32159 "   char *vg_tags;\n"
32160 "   int64_t vg_mda_count;\n"
32161 "   uint64_t vg_mda_free;\n"
32162 " };\n"
32163 " \n"
32164 msgstr ""
32165
32166 #. type: verbatim
32167 #: ../src/guestfs-structs.pod:69
32168 #, no-wrap
32169 msgid ""
32170 " struct guestfs_lvm_vg_list {\n"
32171 "   uint32_t len; /* Number of elements in list. */\n"
32172 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32173 " };\n"
32174 " \n"
32175 msgstr ""
32176
32177 #. type: verbatim
32178 #: ../src/guestfs-structs.pod:74
32179 #, no-wrap
32180 msgid ""
32181 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32182 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32183 "\n"
32184 msgstr ""
32185
32186 #. type: =head2
32187 #: ../src/guestfs-structs.pod:77
32188 msgid "guestfs_lvm_lv"
32189 msgstr ""
32190
32191 #. type: verbatim
32192 #: ../src/guestfs-structs.pod:79
32193 #, no-wrap
32194 msgid ""
32195 " struct guestfs_lvm_lv {\n"
32196 "   char *lv_name;\n"
32197 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32198 "*/\n"
32199 "   char lv_uuid[32];\n"
32200 "   char *lv_attr;\n"
32201 "   int64_t lv_major;\n"
32202 "   int64_t lv_minor;\n"
32203 "   int64_t lv_kernel_major;\n"
32204 "   int64_t lv_kernel_minor;\n"
32205 "   uint64_t lv_size;\n"
32206 "   int64_t seg_count;\n"
32207 "   char *origin;\n"
32208 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32209 "   float snap_percent;\n"
32210 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32211 "   float copy_percent;\n"
32212 "   char *move_pv;\n"
32213 "   char *lv_tags;\n"
32214 "   char *mirror_log;\n"
32215 "   char *modules;\n"
32216 " };\n"
32217 " \n"
32218 msgstr ""
32219
32220 #. type: verbatim
32221 #: ../src/guestfs-structs.pod:101
32222 #, no-wrap
32223 msgid ""
32224 " struct guestfs_lvm_lv_list {\n"
32225 "   uint32_t len; /* Number of elements in list. */\n"
32226 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32227 " };\n"
32228 " \n"
32229 msgstr ""
32230
32231 #. type: verbatim
32232 #: ../src/guestfs-structs.pod:106
32233 #, no-wrap
32234 msgid ""
32235 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32236 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32237 "\n"
32238 msgstr ""
32239
32240 #. type: verbatim
32241 #: ../src/guestfs-structs.pod:111
32242 #, no-wrap
32243 msgid ""
32244 " struct guestfs_stat {\n"
32245 "   int64_t dev;\n"
32246 "   int64_t ino;\n"
32247 "   int64_t mode;\n"
32248 "   int64_t nlink;\n"
32249 "   int64_t uid;\n"
32250 "   int64_t gid;\n"
32251 "   int64_t rdev;\n"
32252 "   int64_t size;\n"
32253 "   int64_t blksize;\n"
32254 "   int64_t blocks;\n"
32255 "   int64_t atime;\n"
32256 "   int64_t mtime;\n"
32257 "   int64_t ctime;\n"
32258 " };\n"
32259 " \n"
32260 msgstr ""
32261
32262 #. type: verbatim
32263 #: ../src/guestfs-structs.pod:127
32264 #, no-wrap
32265 msgid ""
32266 " struct guestfs_stat_list {\n"
32267 "   uint32_t len; /* Number of elements in list. */\n"
32268 "   struct guestfs_stat *val; /* Elements. */\n"
32269 " };\n"
32270 " \n"
32271 msgstr ""
32272
32273 #. type: verbatim
32274 #: ../src/guestfs-structs.pod:132
32275 #, no-wrap
32276 msgid ""
32277 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32278 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32279 "\n"
32280 msgstr ""
32281
32282 #. type: verbatim
32283 #: ../src/guestfs-structs.pod:137
32284 #, no-wrap
32285 msgid ""
32286 " struct guestfs_statvfs {\n"
32287 "   int64_t bsize;\n"
32288 "   int64_t frsize;\n"
32289 "   int64_t blocks;\n"
32290 "   int64_t bfree;\n"
32291 "   int64_t bavail;\n"
32292 "   int64_t files;\n"
32293 "   int64_t ffree;\n"
32294 "   int64_t favail;\n"
32295 "   int64_t fsid;\n"
32296 "   int64_t flag;\n"
32297 "   int64_t namemax;\n"
32298 " };\n"
32299 " \n"
32300 msgstr ""
32301
32302 #. type: verbatim
32303 #: ../src/guestfs-structs.pod:151
32304 #, no-wrap
32305 msgid ""
32306 " struct guestfs_statvfs_list {\n"
32307 "   uint32_t len; /* Number of elements in list. */\n"
32308 "   struct guestfs_statvfs *val; /* Elements. */\n"
32309 " };\n"
32310 " \n"
32311 msgstr ""
32312
32313 #. type: verbatim
32314 #: ../src/guestfs-structs.pod:156
32315 #, no-wrap
32316 msgid ""
32317 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32318 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32319 "\n"
32320 msgstr ""
32321
32322 #. type: =head2
32323 #: ../src/guestfs-structs.pod:159
32324 msgid "guestfs_dirent"
32325 msgstr ""
32326
32327 #. type: verbatim
32328 #: ../src/guestfs-structs.pod:161
32329 #, no-wrap
32330 msgid ""
32331 " struct guestfs_dirent {\n"
32332 "   int64_t ino;\n"
32333 "   char ftyp;\n"
32334 "   char *name;\n"
32335 " };\n"
32336 " \n"
32337 msgstr ""
32338
32339 #. type: verbatim
32340 #: ../src/guestfs-structs.pod:167
32341 #, no-wrap
32342 msgid ""
32343 " struct guestfs_dirent_list {\n"
32344 "   uint32_t len; /* Number of elements in list. */\n"
32345 "   struct guestfs_dirent *val; /* Elements. */\n"
32346 " };\n"
32347 " \n"
32348 msgstr ""
32349
32350 #. type: verbatim
32351 #: ../src/guestfs-structs.pod:172
32352 #, no-wrap
32353 msgid ""
32354 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32355 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32356 "\n"
32357 msgstr ""
32358
32359 #. type: verbatim
32360 #: ../src/guestfs-structs.pod:177
32361 #, no-wrap
32362 msgid ""
32363 " struct guestfs_version {\n"
32364 "   int64_t major;\n"
32365 "   int64_t minor;\n"
32366 "   int64_t release;\n"
32367 "   char *extra;\n"
32368 " };\n"
32369 " \n"
32370 msgstr ""
32371
32372 #. type: verbatim
32373 #: ../src/guestfs-structs.pod:184
32374 #, no-wrap
32375 msgid ""
32376 " struct guestfs_version_list {\n"
32377 "   uint32_t len; /* Number of elements in list. */\n"
32378 "   struct guestfs_version *val; /* Elements. */\n"
32379 " };\n"
32380 " \n"
32381 msgstr ""
32382
32383 #. type: verbatim
32384 #: ../src/guestfs-structs.pod:189
32385 #, no-wrap
32386 msgid ""
32387 " void guestfs_free_version (struct guestfs_free_version *);\n"
32388 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32389 "\n"
32390 msgstr ""
32391
32392 #. type: =head2
32393 #: ../src/guestfs-structs.pod:192
32394 msgid "guestfs_xattr"
32395 msgstr ""
32396
32397 #. type: verbatim
32398 #: ../src/guestfs-structs.pod:194
32399 #, no-wrap
32400 msgid ""
32401 " struct guestfs_xattr {\n"
32402 "   char *attrname;\n"
32403 "   /* The next two fields describe a byte array. */\n"
32404 "   uint32_t attrval_len;\n"
32405 "   char *attrval;\n"
32406 " };\n"
32407 " \n"
32408 msgstr ""
32409
32410 #. type: verbatim
32411 #: ../src/guestfs-structs.pod:201
32412 #, no-wrap
32413 msgid ""
32414 " struct guestfs_xattr_list {\n"
32415 "   uint32_t len; /* Number of elements in list. */\n"
32416 "   struct guestfs_xattr *val; /* Elements. */\n"
32417 " };\n"
32418 " \n"
32419 msgstr ""
32420
32421 #. type: verbatim
32422 #: ../src/guestfs-structs.pod:206
32423 #, no-wrap
32424 msgid ""
32425 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32426 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32427 "\n"
32428 msgstr ""
32429
32430 #. type: =head2
32431 #: ../src/guestfs-structs.pod:209
32432 msgid "guestfs_inotify_event"
32433 msgstr ""
32434
32435 #. type: verbatim
32436 #: ../src/guestfs-structs.pod:211
32437 #, no-wrap
32438 msgid ""
32439 " struct guestfs_inotify_event {\n"
32440 "   int64_t in_wd;\n"
32441 "   uint32_t in_mask;\n"
32442 "   uint32_t in_cookie;\n"
32443 "   char *in_name;\n"
32444 " };\n"
32445 " \n"
32446 msgstr ""
32447
32448 #. type: verbatim
32449 #: ../src/guestfs-structs.pod:218
32450 #, no-wrap
32451 msgid ""
32452 " struct guestfs_inotify_event_list {\n"
32453 "   uint32_t len; /* Number of elements in list. */\n"
32454 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32455 " };\n"
32456 " \n"
32457 msgstr ""
32458
32459 #. type: verbatim
32460 #: ../src/guestfs-structs.pod:223
32461 #, no-wrap
32462 msgid ""
32463 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32464 " void guestfs_free_inotify_event_list (struct "
32465 "guestfs_free_inotify_event_list *);\n"
32466 "\n"
32467 msgstr ""
32468
32469 #. type: =head2
32470 #: ../src/guestfs-structs.pod:226
32471 msgid "guestfs_partition"
32472 msgstr ""
32473
32474 #. type: verbatim
32475 #: ../src/guestfs-structs.pod:228
32476 #, no-wrap
32477 msgid ""
32478 " struct guestfs_partition {\n"
32479 "   int32_t part_num;\n"
32480 "   uint64_t part_start;\n"
32481 "   uint64_t part_end;\n"
32482 "   uint64_t part_size;\n"
32483 " };\n"
32484 " \n"
32485 msgstr ""
32486
32487 #. type: verbatim
32488 #: ../src/guestfs-structs.pod:235
32489 #, no-wrap
32490 msgid ""
32491 " struct guestfs_partition_list {\n"
32492 "   uint32_t len; /* Number of elements in list. */\n"
32493 "   struct guestfs_partition *val; /* Elements. */\n"
32494 " };\n"
32495 " \n"
32496 msgstr ""
32497
32498 #. type: verbatim
32499 #: ../src/guestfs-structs.pod:240
32500 #, no-wrap
32501 msgid ""
32502 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32503 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32504 "\n"
32505 msgstr ""
32506
32507 #. type: =head2
32508 #: ../src/guestfs-structs.pod:243
32509 msgid "guestfs_application"
32510 msgstr ""
32511
32512 #. type: verbatim
32513 #: ../src/guestfs-structs.pod:245
32514 #, no-wrap
32515 msgid ""
32516 " struct guestfs_application {\n"
32517 "   char *app_name;\n"
32518 "   char *app_display_name;\n"
32519 "   int32_t app_epoch;\n"
32520 "   char *app_version;\n"
32521 "   char *app_release;\n"
32522 "   char *app_install_path;\n"
32523 "   char *app_trans_path;\n"
32524 "   char *app_publisher;\n"
32525 "   char *app_url;\n"
32526 "   char *app_source_package;\n"
32527 "   char *app_summary;\n"
32528 "   char *app_description;\n"
32529 " };\n"
32530 " \n"
32531 msgstr ""
32532
32533 #. type: verbatim
32534 #: ../src/guestfs-structs.pod:260
32535 #, no-wrap
32536 msgid ""
32537 " struct guestfs_application_list {\n"
32538 "   uint32_t len; /* Number of elements in list. */\n"
32539 "   struct guestfs_application *val; /* Elements. */\n"
32540 " };\n"
32541 " \n"
32542 msgstr ""
32543
32544 #. type: verbatim
32545 #: ../src/guestfs-structs.pod:265
32546 #, no-wrap
32547 msgid ""
32548 " void guestfs_free_application (struct guestfs_free_application *);\n"
32549 " void guestfs_free_application_list (struct guestfs_free_application_list "
32550 "*);\n"
32551 "\n"
32552 msgstr ""
32553
32554 #. type: textblock
32555 #: ../src/guestfs.pod:5
32556 msgid "guestfs - Library for accessing and modifying virtual machine images"
32557 msgstr ""
32558
32559 #. type: verbatim
32560 #: ../src/guestfs.pod:11
32561 #, no-wrap
32562 msgid ""
32563 " guestfs_h *g = guestfs_create ();\n"
32564 " guestfs_add_drive (g, \"guest.img\");\n"
32565 " guestfs_launch (g);\n"
32566 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32567 " guestfs_touch (g, \"/hello\");\n"
32568 " guestfs_umount (g, \"/\");\n"
32569 " guestfs_close (g);\n"
32570 "\n"
32571 msgstr ""
32572
32573 #. type: textblock
32574 #: ../src/guestfs.pod:25
32575 msgid ""
32576 "Libguestfs is a library for accessing and modifying guest disk images.  "
32577 "Amongst the things this is good for: making batch configuration changes to "
32578 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32579 "between virtualization systems (see also: virt-p2v), performing partial "
32580 "backups, performing partial guest clones, cloning guests and changing "
32581 "registry/UUID/hostname info, and much else besides."
32582 msgstr ""
32583
32584 #. type: textblock
32585 #: ../src/guestfs.pod:33
32586 msgid ""
32587 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32588 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32589 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32590 "qcow2, vmdk."
32591 msgstr ""
32592
32593 #. type: textblock
32594 #: ../src/guestfs.pod:38
32595 msgid ""
32596 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32597 "what filesystem is in each LV, etc.).  It can also run commands in the "
32598 "context of the guest.  Also you can access filesystems over FUSE."
32599 msgstr ""
32600
32601 #. type: textblock
32602 #: ../src/guestfs.pod:43
32603 msgid ""
32604 "Libguestfs is a library that can be linked with C and C++ management "
32605 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32606 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
32607 "command line."
32608 msgstr ""
32609
32610 #. type: textblock
32611 #: ../src/guestfs.pod:48
32612 msgid ""
32613 "You don't need to be root to use libguestfs, although obviously you do need "
32614 "enough permissions to access the disk images."
32615 msgstr ""
32616
32617 #. type: textblock
32618 #: ../src/guestfs.pod:51
32619 msgid ""
32620 "Libguestfs is a large API because it can do many things.  For a gentle "
32621 "introduction, please read the L</API OVERVIEW> section next."
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs.pod:54
32626 msgid ""
32627 "There are also some example programs in the L<guestfs-examples(3)> manual "
32628 "page."
32629 msgstr ""
32630
32631 #. type: =head1
32632 #: ../src/guestfs.pod:57
32633 msgid "API OVERVIEW"
32634 msgstr ""
32635
32636 #. type: textblock
32637 #: ../src/guestfs.pod:59
32638 msgid ""
32639 "This section provides a gentler overview of the libguestfs API.  We also try "
32640 "to group API calls together, where that may not be obvious from reading "
32641 "about the individual calls in the main section of this manual."
32642 msgstr ""
32643
32644 #. type: =head2
32645 #: ../src/guestfs.pod:64
32646 msgid "HANDLES"
32647 msgstr ""
32648
32649 #. type: textblock
32650 #: ../src/guestfs.pod:66
32651 msgid ""
32652 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32653 "must add at least one disk image to the handle, followed by launching the "
32654 "handle, then performing whatever operations you want, and finally closing "
32655 "the handle.  By convention we use the single letter C<g> for the name of the "
32656 "handle variable, although of course you can use any name you want."
32657 msgstr ""
32658
32659 #. type: textblock
32660 #: ../src/guestfs.pod:73
32661 msgid "The general structure of all libguestfs-using programs looks like this:"
32662 msgstr ""
32663
32664 #. type: verbatim
32665 #: ../src/guestfs.pod:76
32666 #, no-wrap
32667 msgid ""
32668 " guestfs_h *g = guestfs_create ();\n"
32669 " \n"
32670 msgstr ""
32671
32672 #. type: verbatim
32673 #: ../src/guestfs.pod:78
32674 #, no-wrap
32675 msgid ""
32676 " /* Call guestfs_add_drive additional times if there are\n"
32677 "  * multiple disk images.\n"
32678 "  */\n"
32679 " guestfs_add_drive (g, \"guest.img\");\n"
32680 " \n"
32681 msgstr ""
32682
32683 #. type: verbatim
32684 #: ../src/guestfs.pod:83
32685 #, no-wrap
32686 msgid ""
32687 " /* Most manipulation calls won't work until you've launched\n"
32688 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32689 "  * and _before_ other commands.\n"
32690 "  */\n"
32691 " guestfs_launch (g);\n"
32692 " \n"
32693 msgstr ""
32694
32695 #. type: verbatim
32696 #: ../src/guestfs.pod:89
32697 #, no-wrap
32698 msgid ""
32699 " /* Now you can examine what partitions, LVs etc are available.\n"
32700 "  */\n"
32701 " char **partitions = guestfs_list_partitions (g);\n"
32702 " char **logvols = guestfs_lvs (g);\n"
32703 " \n"
32704 msgstr ""
32705
32706 #. type: verbatim
32707 #: ../src/guestfs.pod:94
32708 #, no-wrap
32709 msgid ""
32710 " /* To access a filesystem in the image, you must mount it.\n"
32711 "  */\n"
32712 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32713 " \n"
32714 msgstr ""
32715
32716 #. type: verbatim
32717 #: ../src/guestfs.pod:98
32718 #, no-wrap
32719 msgid ""
32720 " /* Now you can perform filesystem actions on the guest\n"
32721 "  * disk image.\n"
32722 "  */\n"
32723 " guestfs_touch (g, \"/hello\");\n"
32724 " \n"
32725 msgstr ""
32726
32727 #. type: verbatim
32728 #: ../src/guestfs.pod:103
32729 #, no-wrap
32730 msgid ""
32731 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32732 "  * it is done automatically when you close the handle.  See\n"
32733 "  * discussion of autosync in this page.\n"
32734 "  */\n"
32735 " guestfs_sync (g);\n"
32736 " \n"
32737 msgstr ""
32738
32739 #. type: verbatim
32740 #: ../src/guestfs.pod:109
32741 #, no-wrap
32742 msgid ""
32743 " /* Close the handle 'g'. */\n"
32744 " guestfs_close (g);\n"
32745 "\n"
32746 msgstr ""
32747
32748 #. type: textblock
32749 #: ../src/guestfs.pod:112
32750 msgid ""
32751 "The code above doesn't include any error checking.  In real code you should "
32752 "check return values carefully for errors.  In general all functions that "
32753 "return integers return C<-1> on error, and all functions that return "
32754 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32755 "how to handle errors, and consult the documentation for each function call "
32756 "below to see precisely how they return error indications.  See "
32757 "L<guestfs-examples(3)> for fully worked examples."
32758 msgstr ""
32759
32760 #. type: =head2
32761 #: ../src/guestfs.pod:121
32762 msgid "DISK IMAGES"
32763 msgstr ""
32764
32765 #. type: textblock
32766 #: ../src/guestfs.pod:123
32767 msgid ""
32768 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32769 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32770 "actual block device, or simply an empty file of zeroes that you have created "
32771 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32772 "of these."
32773 msgstr ""
32774
32775 #. type: textblock
32776 #: ../src/guestfs.pod:129
32777 msgid ""
32778 "The call you should use in modern code for adding drives is "
32779 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32780 "specifying that the format is raw, do:"
32781 msgstr ""
32782
32783 #. type: verbatim
32784 #: ../src/guestfs.pod:133
32785 #, no-wrap
32786 msgid ""
32787 " guestfs_add_drive_opts (g, filename,\n"
32788 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32789 "                         -1);\n"
32790 "\n"
32791 msgstr ""
32792
32793 #. type: textblock
32794 #: ../src/guestfs.pod:137
32795 msgid "You can add a disk read-only using:"
32796 msgstr ""
32797
32798 #. type: verbatim
32799 #: ../src/guestfs.pod:139
32800 #, no-wrap
32801 msgid ""
32802 " guestfs_add_drive_opts (g, filename,\n"
32803 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32804 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32805 "                         -1);\n"
32806 "\n"
32807 msgstr ""
32808
32809 #. type: textblock
32810 #: ../src/guestfs.pod:144
32811 msgid ""
32812 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32813 "libguestfs won't modify the file."
32814 msgstr ""
32815
32816 #. type: textblock
32817 #: ../src/guestfs.pod:147
32818 msgid ""
32819 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32820 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32821 "corruption, but adding it read-only is safe."
32822 msgstr ""
32823
32824 #. type: textblock
32825 #: ../src/guestfs.pod:151
32826 msgid ""
32827 "You must add at least one disk image, and you may add multiple disk images.  "
32828 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32829 "first one you added), C</dev/sdb> (for the second one you added), etc."
32830 msgstr ""
32831
32832 #. type: textblock
32833 #: ../src/guestfs.pod:156
32834 msgid ""
32835 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32836 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32837 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32838 msgstr ""
32839
32840 #. type: =head2
32841 #: ../src/guestfs.pod:161
32842 msgid "MOUNTING"
32843 msgstr ""
32844
32845 #. type: textblock
32846 #: ../src/guestfs.pod:163
32847 msgid ""
32848 "Before you can read or write files, create directories and so on in a disk "
32849 "image that contains filesystems, you have to mount those filesystems using "
32850 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32851 "a disk image contains (for example) one partition with a filesystem on that "
32852 "partition, then you can mount it directly:"
32853 msgstr ""
32854
32855 #. type: verbatim
32856 #: ../src/guestfs.pod:170
32857 #, no-wrap
32858 msgid ""
32859 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32860 "\n"
32861 msgstr ""
32862
32863 #. type: textblock
32864 #: ../src/guestfs.pod:172
32865 msgid ""
32866 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32867 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32868 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32869 "that these are libguestfs virtual devices, and are nothing to do with host "
32870 "devices."
32871 msgstr ""
32872
32873 #. type: textblock
32874 #: ../src/guestfs.pod:178
32875 msgid ""
32876 "If you are given a disk image and you don't know what it contains then you "
32877 "have to find out.  Libguestfs can do that too: use "
32878 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
32879 "and LVs, and either try mounting each to see what is mountable, or else "
32880 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32881 "filesystems, use L</guestfs_list_filesystems>."
32882 msgstr ""
32883
32884 #. type: textblock
32885 #: ../src/guestfs.pod:186
32886 msgid ""
32887 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32888 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32889 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32890 msgstr ""
32891
32892 #. type: textblock
32893 #: ../src/guestfs.pod:191
32894 msgid ""
32895 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32896 "several other variations of the C<guestfs_mount_*> call."
32897 msgstr ""
32898
32899 #. type: =head2
32900 #: ../src/guestfs.pod:194
32901 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32902 msgstr ""
32903
32904 #. type: textblock
32905 #: ../src/guestfs.pod:196
32906 msgid ""
32907 "The majority of the libguestfs API consists of fairly low-level calls for "
32908 "accessing and modifying the files, directories, symlinks etc on mounted "
32909 "filesystems.  There are over a hundred such calls which you can find listed "
32910 "in detail below in this man page, and we don't even pretend to cover them "
32911 "all in this overview."
32912 msgstr ""
32913
32914 #. type: textblock
32915 #: ../src/guestfs.pod:202
32916 msgid ""
32917 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32918 "mount point."
32919 msgstr ""
32920
32921 #. type: textblock
32922 #: ../src/guestfs.pod:205
32923 msgid ""
32924 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32925 "the file called C<\"etc/passwd\"> then you could do:"
32926 msgstr ""
32927
32928 #. type: verbatim
32929 #: ../src/guestfs.pod:208
32930 #, no-wrap
32931 msgid ""
32932 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32933 "\n"
32934 msgstr ""
32935
32936 #. type: textblock
32937 #: ../src/guestfs.pod:210
32938 msgid ""
32939 "This would return C<data> as a newly allocated buffer containing the full "
32940 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32941 "or C<NULL> if there was an error."
32942 msgstr ""
32943
32944 #. type: textblock
32945 #: ../src/guestfs.pod:214
32946 msgid ""
32947 "As another example, to create a top-level directory on that filesystem "
32948 "called C<\"var\"> you would do:"
32949 msgstr ""
32950
32951 #. type: verbatim
32952 #: ../src/guestfs.pod:217
32953 #, no-wrap
32954 msgid ""
32955 " guestfs_mkdir (g, \"/var\");\n"
32956 "\n"
32957 msgstr ""
32958
32959 #. type: textblock
32960 #: ../src/guestfs.pod:219
32961 msgid "To create a symlink you could do:"
32962 msgstr ""
32963
32964 #. type: verbatim
32965 #: ../src/guestfs.pod:221
32966 #, no-wrap
32967 msgid ""
32968 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32969 "               \"/etc/rc3.d/S30portmap\");\n"
32970 "\n"
32971 msgstr ""
32972
32973 #. type: textblock
32974 #: ../src/guestfs.pod:224
32975 msgid ""
32976 "Libguestfs will reject attempts to use relative paths and there is no "
32977 "concept of a current working directory."
32978 msgstr ""
32979
32980 #. type: textblock
32981 #: ../src/guestfs.pod:227
32982 msgid ""
32983 "Libguestfs can return errors in many situations: for example if the "
32984 "filesystem isn't writable, or if a file or directory that you requested "
32985 "doesn't exist.  If you are using the C API (documented here)  you have to "
32986 "check for those error conditions after each call.  (Other language bindings "
32987 "turn these errors into exceptions)."
32988 msgstr ""
32989
32990 #. type: textblock
32991 #: ../src/guestfs.pod:233
32992 msgid ""
32993 "File writes are affected by the per-handle umask, set by calling "
32994 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
32995 msgstr ""
32996
32997 #. type: =head2
32998 #: ../src/guestfs.pod:236
32999 msgid "PARTITIONING"
33000 msgstr ""
33001
33002 #. type: textblock
33003 #: ../src/guestfs.pod:238
33004 msgid ""
33005 "Libguestfs contains API calls to read, create and modify partition tables on "
33006 "disk images."
33007 msgstr ""
33008
33009 #. type: textblock
33010 #: ../src/guestfs.pod:241
33011 msgid ""
33012 "In the common case where you want to create a single partition covering the "
33013 "whole disk, you should use the L</guestfs_part_disk> call:"
33014 msgstr ""
33015
33016 #. type: verbatim
33017 #: ../src/guestfs.pod:245
33018 #, no-wrap
33019 msgid ""
33020 " const char *parttype = \"mbr\";\n"
33021 " if (disk_is_larger_than_2TB)\n"
33022 "   parttype = \"gpt\";\n"
33023 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33024 "\n"
33025 msgstr ""
33026
33027 #. type: textblock
33028 #: ../src/guestfs.pod:250
33029 msgid ""
33030 "Obviously this effectively wipes anything that was on that disk image "
33031 "before."
33032 msgstr ""
33033
33034 #. type: =head2
33035 #: ../src/guestfs.pod:253
33036 msgid "LVM2"
33037 msgstr ""
33038
33039 #. type: textblock
33040 #: ../src/guestfs.pod:255
33041 msgid ""
33042 "Libguestfs provides access to a large part of the LVM2 API, such as "
33043 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
33044 "unless you familiarize yourself with the concepts of physical volumes, "
33045 "volume groups and logical volumes."
33046 msgstr ""
33047
33048 #. type: textblock
33049 #: ../src/guestfs.pod:260
33050 msgid ""
33051 "This author strongly recommends reading the LVM HOWTO, online at "
33052 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
33053 msgstr ""
33054
33055 #. type: =head2
33056 #: ../src/guestfs.pod:263
33057 msgid "DOWNLOADING"
33058 msgstr ""
33059
33060 #. type: textblock
33061 #: ../src/guestfs.pod:265
33062 msgid ""
33063 "Use L</guestfs_cat> to download small, text only files.  This call is "
33064 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33065 "NUL (C<\\0>) characters.  However the API is very simple to use."
33066 msgstr ""
33067
33068 #. type: textblock
33069 #: ../src/guestfs.pod:269
33070 msgid ""
33071 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33072 "bit data, since it returns a (pointer, size) pair.  However it is still "
33073 "limited to \"small\" files, less than 2 MB."
33074 msgstr ""
33075
33076 #. type: textblock
33077 #: ../src/guestfs.pod:273
33078 msgid ""
33079 "L</guestfs_download> can be used to download any file, with no limits on "
33080 "content or size (even files larger than 4 GB)."
33081 msgstr ""
33082
33083 #. type: textblock
33084 #: ../src/guestfs.pod:276
33085 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33086 msgstr ""
33087
33088 #. type: =head2
33089 #: ../src/guestfs.pod:279
33090 msgid "UPLOADING"
33091 msgstr ""
33092
33093 #. type: textblock
33094 #: ../src/guestfs.pod:281
33095 msgid ""
33096 "It's often the case that you want to write a file or files to the disk "
33097 "image."
33098 msgstr ""
33099
33100 #. type: textblock
33101 #: ../src/guestfs.pod:284
33102 msgid ""
33103 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33104 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
33105 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
33106 "variety of other functions for creating test files, for example "
33107 "L</guestfs_fill> and L</guestfs_fill_pattern>."
33108 msgstr ""
33109
33110 #. type: textblock
33111 #: ../src/guestfs.pod:290
33112 msgid ""
33113 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33114 "file content or size (even files larger than 4 GB)."
33115 msgstr ""
33116
33117 #. type: textblock
33118 #: ../src/guestfs.pod:293
33119 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33120 msgstr ""
33121
33122 #. type: textblock
33123 #: ../src/guestfs.pod:295
33124 msgid ""
33125 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33126 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
33127 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
33128 "the drive in a predictable way (eg. adding it last after all other drives) "
33129 "then you can get the device name from L</guestfs_list_devices> and mount it "
33130 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
33131 "sometimes non-portable between kernel versions, and they don't support "
33132 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
33133 "using a label or UUID, use an ISO image instead."
33134 msgstr ""
33135
33136 #. type: =head2
33137 #: ../src/guestfs.pod:306
33138 msgid "COPYING"
33139 msgstr ""
33140
33141 #. type: textblock
33142 #: ../src/guestfs.pod:308
33143 msgid ""
33144 "There are various different commands for copying between files and devices "
33145 "and in and out of the guest filesystem.  These are summarised in the table "
33146 "below."
33147 msgstr ""
33148
33149 #. type: =item
33150 #: ../src/guestfs.pod:314
33151 msgid "B<file> to B<file>"
33152 msgstr ""
33153
33154 #. type: textblock
33155 #: ../src/guestfs.pod:316
33156 msgid ""
33157 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33158 "directories recursively."
33159 msgstr ""
33160
33161 #. type: =item
33162 #: ../src/guestfs.pod:319
33163 msgid "B<file or device> to B<file or device>"
33164 msgstr ""
33165
33166 #. type: textblock
33167 #: ../src/guestfs.pod:321
33168 msgid ""
33169 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33170 "devices in the guest."
33171 msgstr ""
33172
33173 #. type: textblock
33174 #: ../src/guestfs.pod:324
33175 msgid "Example: duplicate the contents of an LV:"
33176 msgstr ""
33177
33178 #. type: verbatim
33179 #: ../src/guestfs.pod:326
33180 #, no-wrap
33181 msgid ""
33182 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33183 "\n"
33184 msgstr ""
33185
33186 #. type: textblock
33187 #: ../src/guestfs.pod:328
33188 msgid ""
33189 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33190 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
33191 "L</guestfs_copy_size>."
33192 msgstr ""
33193
33194 #. type: =item
33195 #: ../src/guestfs.pod:332
33196 msgid "B<file on the host> to B<file or device>"
33197 msgstr ""
33198
33199 #. type: textblock
33200 #: ../src/guestfs.pod:334
33201 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33202 msgstr ""
33203
33204 #. type: =item
33205 #: ../src/guestfs.pod:336
33206 msgid "B<file or device> to B<file on the host>"
33207 msgstr ""
33208
33209 #. type: textblock
33210 #: ../src/guestfs.pod:338
33211 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33212 msgstr ""
33213
33214 #. type: =head2
33215 #: ../src/guestfs.pod:342
33216 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33217 msgstr ""
33218
33219 #. type: textblock
33220 #: ../src/guestfs.pod:344
33221 msgid ""
33222 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
33223 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33224 "appears you can only upload and download to files.  However many Un*x-like "
33225 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
33226 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
33227 "stderr, and arbitrary file descriptor N."
33228 msgstr ""
33229
33230 #. type: textblock
33231 #: ../src/guestfs.pod:352
33232 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33233 msgstr ""
33234
33235 #. type: verbatim
33236 #: ../src/guestfs.pod:355
33237 #, no-wrap
33238 msgid ""
33239 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33240 "\n"
33241 msgstr ""
33242
33243 #. type: textblock
33244 #: ../src/guestfs.pod:357
33245 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33246 msgstr ""
33247
33248 #. type: verbatim
33249 #: ../src/guestfs.pod:359
33250 #, no-wrap
33251 msgid ""
33252 " char devfd[64];\n"
33253 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33254 " guestfs_tar_out (g, \"/\", devfd);\n"
33255 "\n"
33256 msgstr ""
33257
33258 #. type: =head2
33259 #: ../src/guestfs.pod:363
33260 msgid "LISTING FILES"
33261 msgstr ""
33262
33263 #. type: textblock
33264 #: ../src/guestfs.pod:365
33265 msgid ""
33266 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33267 "L<guestfish(1)>-equivalent command C<ll>)."
33268 msgstr ""
33269
33270 #. type: textblock
33271 #: ../src/guestfs.pod:368
33272 msgid ""
33273 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33274 "programs, as a flat list of strings."
33275 msgstr ""
33276
33277 #. type: textblock
33278 #: ../src/guestfs.pod:371
33279 msgid ""
33280 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33281 "directory, plus additional information about each one.  It is more "
33282 "equivalent to using the L<readdir(3)> call on a local filesystem."
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs.pod:375
33287 msgid ""
33288 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
33289 "files."
33290 msgstr ""
33291
33292 #. type: =head2
33293 #: ../src/guestfs.pod:378
33294 msgid "RUNNING COMMANDS"
33295 msgstr ""
33296
33297 #. type: textblock
33298 #: ../src/guestfs.pod:380
33299 msgid ""
33300 "Although libguestfs is primarily an API for manipulating files inside guest "
33301 "images, we also provide some limited facilities for running commands inside "
33302 "guests."
33303 msgstr ""
33304
33305 #. type: textblock
33306 #: ../src/guestfs.pod:384
33307 msgid "There are many limitations to this:"
33308 msgstr ""
33309
33310 #. type: textblock
33311 #: ../src/guestfs.pod:390
33312 msgid ""
33313 "The kernel version that the command runs under will be different from what "
33314 "it expects."
33315 msgstr ""
33316
33317 #. type: textblock
33318 #: ../src/guestfs.pod:395
33319 msgid ""
33320 "If the command needs to communicate with daemons, then most likely they "
33321 "won't be running."
33322 msgstr ""
33323
33324 #. type: textblock
33325 #: ../src/guestfs.pod:400
33326 msgid "The command will be running in limited memory."
33327 msgstr ""
33328
33329 #. type: textblock
33330 #: ../src/guestfs.pod:404
33331 msgid ""
33332 "The network may not be available unless you enable it (see "
33333 "L</guestfs_set_network>)."
33334 msgstr ""
33335
33336 #. type: textblock
33337 #: ../src/guestfs.pod:409
33338 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33339 msgstr ""
33340
33341 #. type: textblock
33342 #: ../src/guestfs.pod:413
33343 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33344 msgstr ""
33345
33346 #. type: textblock
33347 #: ../src/guestfs.pod:418
33348 msgid ""
33349 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33350 "See L</SELINUX> in this manpage."
33351 msgstr ""
33352
33353 #. type: textblock
33354 #: ../src/guestfs.pod:423
33355 msgid ""
33356 "I<Security:> It is not safe to run commands from untrusted, possibly "
33357 "malicious guests.  These commands may attempt to exploit your program by "
33358 "sending unexpected output.  They could also try to exploit the Linux kernel "
33359 "or qemu provided by the libguestfs appliance.  They could use the network "
33360 "provided by the libguestfs appliance to bypass ordinary network partitions "
33361 "and firewalls.  They could use the elevated privileges or different SELinux "
33362 "context of your program to their advantage."
33363 msgstr ""
33364
33365 #. type: textblock
33366 #: ../src/guestfs.pod:432
33367 msgid ""
33368 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33369 "(a script which runs when the guest next boots normally), and to have this "
33370 "script run the commands you want in the normal context of the running guest, "
33371 "network security and so on.  For information about other security issues, "
33372 "see L</SECURITY>."
33373 msgstr ""
33374
33375 #. type: textblock
33376 #: ../src/guestfs.pod:440
33377 msgid ""
33378 "The two main API calls to run commands are L</guestfs_command> and "
33379 "L</guestfs_sh> (there are also variations)."
33380 msgstr ""
33381
33382 #. type: textblock
33383 #: ../src/guestfs.pod:443
33384 msgid ""
33385 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33386 "shell globs, redirections, etc will work."
33387 msgstr ""
33388
33389 #. type: =head2
33390 #: ../src/guestfs.pod:446
33391 msgid "CONFIGURATION FILES"
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs.pod:448
33396 msgid ""
33397 "To read and write configuration files in Linux guest filesystems, we "
33398 "strongly recommend using Augeas.  For example, Augeas understands how to "
33399 "read and write, say, a Linux shadow password file or X.org configuration "
33400 "file, and so avoids you having to write that code."
33401 msgstr ""
33402
33403 #. type: textblock
33404 #: ../src/guestfs.pod:453
33405 msgid ""
33406 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33407 "document Augeas itself here because there is excellent documentation on the "
33408 "L<http://augeas.net/> website."
33409 msgstr ""
33410
33411 #. type: textblock
33412 #: ../src/guestfs.pod:457
33413 msgid ""
33414 "If you don't want to use Augeas (you fool!) then try calling "
33415 "L</guestfs_read_lines> to get the file as a list of lines which you can "
33416 "iterate over."
33417 msgstr ""
33418
33419 #. type: =head2
33420 #: ../src/guestfs.pod:461
33421 msgid "SELINUX"
33422 msgstr ""
33423
33424 #. type: textblock
33425 #: ../src/guestfs.pod:463
33426 msgid ""
33427 "We support SELinux guests.  To ensure that labeling happens correctly in "
33428 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33429 msgstr ""
33430
33431 #. type: textblock
33432 #: ../src/guestfs.pod:471
33433 msgid "Before launching, do:"
33434 msgstr ""
33435
33436 #. type: verbatim
33437 #: ../src/guestfs.pod:473
33438 #, no-wrap
33439 msgid ""
33440 " guestfs_set_selinux (g, 1);\n"
33441 "\n"
33442 msgstr ""
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:477
33446 msgid ""
33447 "After mounting the guest's filesystem(s), load the policy.  This is best "
33448 "done by running the L<load_policy(8)> command in the guest itself:"
33449 msgstr ""
33450
33451 #. type: verbatim
33452 #: ../src/guestfs.pod:481
33453 #, no-wrap
33454 msgid ""
33455 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33456 "\n"
33457 msgstr ""
33458
33459 #. type: textblock
33460 #: ../src/guestfs.pod:483
33461 msgid ""
33462 "(Older versions of C<load_policy> require you to specify the name of the "
33463 "policy file)."
33464 msgstr ""
33465
33466 #. type: textblock
33467 #: ../src/guestfs.pod:488
33468 msgid ""
33469 "Optionally, set the security context for the API.  The correct security "
33470 "context to use can only be known by inspecting the guest.  As an example:"
33471 msgstr ""
33472
33473 #. type: verbatim
33474 #: ../src/guestfs.pod:492
33475 #, no-wrap
33476 msgid ""
33477 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33478 "\n"
33479 msgstr ""
33480
33481 #. type: textblock
33482 #: ../src/guestfs.pod:496
33483 msgid "This will work for running commands and editing existing files."
33484 msgstr ""
33485
33486 #. type: textblock
33487 #: ../src/guestfs.pod:498
33488 msgid ""
33489 "When new files are created, you may need to label them explicitly, for "
33490 "example by running the external command C<restorecon pathname>."
33491 msgstr ""
33492
33493 #. type: =head2
33494 #: ../src/guestfs.pod:502
33495 msgid "UMASK"
33496 msgstr ""
33497
33498 #. type: textblock
33499 #: ../src/guestfs.pod:504
33500 msgid ""
33501 "Certain calls are affected by the current file mode creation mask (the "
33502 "\"umask\").  In particular ones which create files or directories, such as "
33503 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33504 "either the default mode that the file is created with or modifies the mode "
33505 "that you supply."
33506 msgstr ""
33507
33508 #. type: textblock
33509 #: ../src/guestfs.pod:510
33510 msgid ""
33511 "The default umask is C<022>, so files are created with modes such as C<0644> "
33512 "and directories with C<0755>."
33513 msgstr ""
33514
33515 #. type: textblock
33516 #: ../src/guestfs.pod:513
33517 msgid ""
33518 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33519 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
33520 "L</guestfs_chmod> after creating each file or directory."
33521 msgstr ""
33522
33523 #. type: textblock
33524 #: ../src/guestfs.pod:517
33525 msgid "For more information about umask, see L<umask(2)>."
33526 msgstr ""
33527
33528 #. type: textblock
33529 #: ../src/guestfs.pod:521
33530 msgid ""
33531 "Libguestfs allows you to access Linux guests which have been encrypted using "
33532 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33533 "standard.  This includes nearly all whole disk encryption systems used by "
33534 "modern Linux guests."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:527
33539 msgid ""
33540 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33541 "returns the string C<crypto_LUKS>)."
33542 msgstr ""
33543
33544 #. type: textblock
33545 #: ../src/guestfs.pod:530
33546 msgid ""
33547 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33548 "will require the passphrase!"
33549 msgstr ""
33550
33551 #. type: textblock
33552 #: ../src/guestfs.pod:533
33553 msgid ""
33554 "Opening a LUKS device creates a new device mapper device called "
33555 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
33556 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
33557 "decrypted from and encrypted to the underlying block device respectively."
33558 msgstr ""
33559
33560 #. type: textblock
33561 #: ../src/guestfs.pod:539
33562 msgid ""
33563 "LVM volume groups on the device can be made visible by calling "
33564 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
33565 "volume(s) can now be mounted in the usual way."
33566 msgstr ""
33567
33568 #. type: textblock
33569 #: ../src/guestfs.pod:543
33570 msgid ""
33571 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33572 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33573 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
33574 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33575 "underlying encrypted block device)."
33576 msgstr ""
33577
33578 #. type: =head2
33579 #: ../src/guestfs.pod:550
33580 msgid "INSPECTION"
33581 msgstr ""
33582
33583 #. type: textblock
33584 #: ../src/guestfs.pod:552
33585 msgid ""
33586 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33587 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33588 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33589 "version 1.5.3 the most frequently used part of this library has been "
33590 "rewritten in C and moved into the core code)."
33591 msgstr ""
33592
33593 #. type: textblock
33594 #: ../src/guestfs.pod:559
33595 msgid ""
33596 "Add all disks belonging to the unknown virtual machine and call "
33597 "L</guestfs_launch> in the usual way."
33598 msgstr ""
33599
33600 #. type: textblock
33601 #: ../src/guestfs.pod:562
33602 msgid ""
33603 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33604 "and certain heuristics, and returns a list of operating systems that were "
33605 "found.  An empty list means none were found.  A single element is the root "
33606 "filesystem of the operating system.  For dual- or multi-boot guests, "
33607 "multiple roots can be returned, each one corresponding to a separate "
33608 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33609 "world of virtualization, but since this scenario can happen, we have built "
33610 "libguestfs to deal with it.)"
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs.pod:571
33615 msgid ""
33616 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33617 "to get additional details about that operating system.  For example, call "
33618 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33619 "Windows and Linux-based operating systems respectively."
33620 msgstr ""
33621
33622 #. type: textblock
33623 #: ../src/guestfs.pod:577
33624 msgid ""
33625 "Un*x-like and Linux-based operating systems usually consist of several "
33626 "filesystems which are mounted at boot time (for example, a separate boot "
33627 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33628 "filesystems correspond to mount points.  Call "
33629 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33630 "hash table like this example:"
33631 msgstr ""
33632
33633 #. type: verbatim
33634 #: ../src/guestfs.pod:584
33635 #, no-wrap
33636 msgid ""
33637 " /boot => /dev/sda1\n"
33638 " /     => /dev/vg_guest/lv_root\n"
33639 " /usr  => /dev/vg_guest/lv_usr\n"
33640 "\n"
33641 msgstr ""
33642
33643 #. type: textblock
33644 #: ../src/guestfs.pod:588
33645 msgid ""
33646 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33647 "filesystems as suggested."
33648 msgstr ""
33649
33650 #. type: textblock
33651 #: ../src/guestfs.pod:591
33652 msgid ""
33653 "Be careful to mount filesystems in the right order (eg. C</> before "
33654 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
33655 "work."
33656 msgstr ""
33657
33658 #. type: textblock
33659 #: ../src/guestfs.pod:595
33660 msgid ""
33661 "Inspection currently only works for some common operating systems.  "
33662 "Contributors are welcome to send patches for other operating systems that we "
33663 "currently cannot detect."
33664 msgstr ""
33665
33666 #. type: textblock
33667 #: ../src/guestfs.pod:599
33668 msgid ""
33669 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33670 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33671 "encrypted devices."
33672 msgstr ""
33673
33674 #. type: textblock
33675 #: ../src/guestfs.pod:603
33676 msgid ""
33677 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33678 "inspection and caches the results in the guest handle.  Subsequent calls to "
33679 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
33680 "re-read the disks.  If you change the content of the guest disks, you can "
33681 "redo inspection by calling L</guestfs_inspect_os> again.  "
33682 "(L</guestfs_inspect_list_applications> works a little differently from the "
33683 "other calls and does read the disks.  See documentation for that function "
33684 "for details)."
33685 msgstr ""
33686
33687 #. type: =head3
33688 #: ../src/guestfs.pod:612
33689 msgid "INSPECTING INSTALL DISKS"
33690 msgstr ""
33691
33692 #. type: textblock
33693 #: ../src/guestfs.pod:614
33694 msgid ""
33695 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33696 "CDs and more."
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:617
33701 msgid ""
33702 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33703 "system, which currently can be C<installed> (a regular operating system) or "
33704 "C<installer> (some sort of install disk)."
33705 msgstr ""
33706
33707 #. type: textblock
33708 #: ../src/guestfs.pod:621
33709 msgid ""
33710 "Further information is available about the operating system that can be "
33711 "installed using the regular inspection APIs like "
33712 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
33713 "etc."
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs.pod:626
33718 msgid ""
33719 "Some additional information specific to installer disks is also available "
33720 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
33721 "L</guestfs_inspect_is_multipart> calls."
33722 msgstr ""
33723
33724 #. type: =head2
33725 #: ../src/guestfs.pod:631
33726 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33727 msgstr ""
33728
33729 #. type: textblock
33730 #: ../src/guestfs.pod:633
33731 msgid ""
33732 "Libguestfs can mount NTFS partitions.  It does this using the "
33733 "L<http://www.ntfs-3g.org/> driver."
33734 msgstr ""
33735
33736 #. type: =head3
33737 #: ../src/guestfs.pod:636
33738 msgid "DRIVE LETTERS AND PATHS"
33739 msgstr ""
33740
33741 #. type: textblock
33742 #: ../src/guestfs.pod:638
33743 msgid ""
33744 "DOS and Windows still use drive letters, and the filesystems are always "
33745 "treated as case insensitive by Windows itself, and therefore you might find "
33746 "a Windows configuration file referring to a path like "
33747 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
33748 "that directory might be referred to as C</WINDOWS/System32>."
33749 msgstr ""
33750
33751 #. type: textblock
33752 #: ../src/guestfs.pod:644
33753 msgid ""
33754 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33755 "L</guestfs_inspect_get_drive_mappings>)"
33756 msgstr ""
33757
33758 #. type: textblock
33759 #: ../src/guestfs.pod:647
33760 msgid ""
33761 "Dealing with separator characters (backslash vs forward slash) is outside "
33762 "the scope of libguestfs, but usually a simple character replacement will "
33763 "work."
33764 msgstr ""
33765
33766 #. type: textblock
33767 #: ../src/guestfs.pod:651
33768 msgid ""
33769 "To resolve the case insensitivity of paths, call "
33770 "L</guestfs_case_sensitive_path>."
33771 msgstr ""
33772
33773 #. type: =head3
33774 #: ../src/guestfs.pod:654
33775 msgid "ACCESSING THE WINDOWS REGISTRY"
33776 msgstr ""
33777
33778 #. type: textblock
33779 #: ../src/guestfs.pod:656
33780 msgid ""
33781 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33782 "files, through the library C<hivex> which is part of the libguestfs project "
33783 "although ships as a separate tarball.  You have to locate and download the "
33784 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33785 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
33786 "L<virt-win-reg(1)> for more help on this issue."
33787 msgstr ""
33788
33789 #. type: =head3
33790 #: ../src/guestfs.pod:664
33791 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33792 msgstr ""
33793
33794 #. type: textblock
33795 #: ../src/guestfs.pod:666
33796 msgid ""
33797 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33798 "provide something which looks like a Linux symlink.  The way it tries to do "
33799 "the rewriting is described here:"
33800 msgstr ""
33801
33802 #. type: textblock
33803 #: ../src/guestfs.pod:670
33804 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
33805 msgstr ""
33806
33807 #. type: textblock
33808 #: ../src/guestfs.pod:672
33809 msgid ""
33810 "The essential problem is that ntfs-3g simply does not have enough "
33811 "information to do a correct job.  NTFS links can contain drive letters and "
33812 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33813 "It is almost certainly the case that libguestfs callers should ignore what "
33814 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33815 msgstr ""
33816
33817 #. type: textblock
33818 #: ../src/guestfs.pod:679
33819 msgid ""
33820 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
33821 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33822 "attribute, and read the raw reparse data from that (you can find the format "
33823 "documented in various places around the web)."
33824 msgstr ""
33825
33826 #. type: =head3
33827 #: ../src/guestfs.pod:684
33828 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33829 msgstr ""
33830
33831 #. type: textblock
33832 #: ../src/guestfs.pod:686
33833 msgid ""
33834 "There are other useful extended attributes that can be read from ntfs-3g "
33835 "filesystems (using L</guestfs_getxattr>).  See:"
33836 msgstr ""
33837
33838 #. type: textblock
33839 #: ../src/guestfs.pod:689
33840 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33841 msgstr ""
33842
33843 #. type: =head2
33844 #: ../src/guestfs.pod:691
33845 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33846 msgstr ""
33847
33848 #. type: textblock
33849 #: ../src/guestfs.pod:693
33850 msgid ""
33851 "Although we don't want to discourage you from using the C API, we will "
33852 "mention here that the same API is also available in other languages."
33853 msgstr ""
33854
33855 #. type: textblock
33856 #: ../src/guestfs.pod:696
33857 msgid ""
33858 "The API is broadly identical in all supported languages.  This means that "
33859 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33860 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33861 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33862 "each language."
33863 msgstr ""
33864
33865 #. type: textblock
33866 #: ../src/guestfs.pod:702
33867 msgid ""
33868 "Error messages are automatically transformed into exceptions if the language "
33869 "supports it."
33870 msgstr ""
33871
33872 #. type: textblock
33873 #: ../src/guestfs.pod:705
33874 msgid ""
33875 "We don't try to \"object orientify\" parts of the API in OO languages, "
33876 "although contributors are welcome to write higher level APIs above what we "
33877 "provide in their favourite languages if they wish."
33878 msgstr ""
33879
33880 #. type: =item
33881 #: ../src/guestfs.pod:711
33882 msgid "B<C++>"
33883 msgstr ""
33884
33885 #. type: textblock
33886 #: ../src/guestfs.pod:713
33887 msgid ""
33888 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33889 "identical to the C API.  C++ classes and exceptions are not used."
33890 msgstr ""
33891
33892 #. type: =item
33893 #: ../src/guestfs.pod:717
33894 msgid "B<C#>"
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:719
33899 msgid ""
33900 "The C# bindings are highly experimental.  Please read the warnings at the "
33901 "top of C<csharp/Libguestfs.cs>."
33902 msgstr ""
33903
33904 #. type: =item
33905 #: ../src/guestfs.pod:722
33906 msgid "B<Erlang>"
33907 msgstr ""
33908
33909 #. type: textblock
33910 #: ../src/guestfs.pod:724
33911 msgid "See L<guestfs-erlang(3)>."
33912 msgstr ""
33913
33914 #. type: =item
33915 #: ../src/guestfs.pod:726
33916 msgid "B<Haskell>"
33917 msgstr ""
33918
33919 #. type: textblock
33920 #: ../src/guestfs.pod:728
33921 msgid ""
33922 "This is the only language binding that is working but incomplete.  Only "
33923 "calls which return simple integers have been bound in Haskell, and we are "
33924 "looking for help to complete this binding."
33925 msgstr ""
33926
33927 #. type: =item
33928 #: ../src/guestfs.pod:732
33929 msgid "B<Java>"
33930 msgstr ""
33931
33932 #. type: textblock
33933 #: ../src/guestfs.pod:734
33934 msgid ""
33935 "Full documentation is contained in the Javadoc which is distributed with "
33936 "libguestfs.  For examples, see L<guestfs-java(3)>."
33937 msgstr ""
33938
33939 #. type: =item
33940 #: ../src/guestfs.pod:737
33941 msgid "B<OCaml>"
33942 msgstr ""
33943
33944 #. type: textblock
33945 #: ../src/guestfs.pod:739
33946 msgid "See L<guestfs-ocaml(3)>."
33947 msgstr ""
33948
33949 #. type: =item
33950 #: ../src/guestfs.pod:741
33951 msgid "B<Perl>"
33952 msgstr ""
33953
33954 #. type: textblock
33955 #: ../src/guestfs.pod:743
33956 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33957 msgstr ""
33958
33959 #. type: =item
33960 #: ../src/guestfs.pod:745
33961 msgid "B<PHP>"
33962 msgstr ""
33963
33964 #. type: textblock
33965 #: ../src/guestfs.pod:747
33966 msgid ""
33967 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33968 "the php-libguestfs package for your distribution."
33969 msgstr ""
33970
33971 #. type: textblock
33972 #: ../src/guestfs.pod:750
33973 msgid "The PHP binding only works correctly on 64 bit machines."
33974 msgstr ""
33975
33976 #. type: =item
33977 #: ../src/guestfs.pod:752
33978 msgid "B<Python>"
33979 msgstr ""
33980
33981 #. type: textblock
33982 #: ../src/guestfs.pod:754
33983 msgid "See L<guestfs-python(3)>."
33984 msgstr ""
33985
33986 #. type: =item
33987 #: ../src/guestfs.pod:756
33988 msgid "B<Ruby>"
33989 msgstr ""
33990
33991 #. type: textblock
33992 #: ../src/guestfs.pod:758
33993 msgid "See L<guestfs-ruby(3)>."
33994 msgstr ""
33995
33996 #. type: =item
33997 #: ../src/guestfs.pod:760
33998 msgid "B<shell scripts>"
33999 msgstr ""
34000
34001 #. type: textblock
34002 #: ../src/guestfs.pod:762
34003 msgid "See L<guestfish(1)>."
34004 msgstr ""
34005
34006 #. type: =head2
34007 #: ../src/guestfs.pod:766
34008 msgid "LIBGUESTFS GOTCHAS"
34009 msgstr ""
34010
34011 #. type: textblock
34012 #: ../src/guestfs.pod:768
34013 msgid ""
34014 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34015 "system [...] that works in the way it is documented but is counterintuitive "
34016 "and almost invites mistakes.\""
34017 msgstr ""
34018
34019 #. type: textblock
34020 #: ../src/guestfs.pod:772
34021 msgid ""
34022 "Since we developed libguestfs and the associated tools, there are several "
34023 "things we would have designed differently, but are now stuck with for "
34024 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34025 "release, you can expect these to change.  Beware of them."
34026 msgstr ""
34027
34028 #. type: =item
34029 #: ../src/guestfs.pod:780
34030 msgid "Autosync / forgetting to sync."
34031 msgstr ""
34032
34033 #. type: textblock
34034 #: ../src/guestfs.pod:782
34035 msgid ""
34036 "I<Update:> Autosync is enabled by default for all API users starting from "
34037 "libguestfs 1.5.24.  This section only applies to older versions."
34038 msgstr ""
34039
34040 #. type: textblock
34041 #: ../src/guestfs.pod:785
34042 msgid ""
34043 "When modifying a filesystem from C or another language, you B<must> unmount "
34044 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34045 "libguestfs handle.  You can also call:"
34046 msgstr ""
34047
34048 #. type: verbatim
34049 #: ../src/guestfs.pod:789
34050 #, no-wrap
34051 msgid ""
34052 " guestfs_set_autosync (g, 1);\n"
34053 "\n"
34054 msgstr ""
34055
34056 #. type: textblock
34057 #: ../src/guestfs.pod:791
34058 msgid ""
34059 "to have the unmount/sync done automatically for you when the handle 'g' is "
34060 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
34061 "q.v.)"
34062 msgstr ""
34063
34064 #. type: textblock
34065 #: ../src/guestfs.pod:795
34066 msgid ""
34067 "If you forget to do this, then it is entirely possible that your changes "
34068 "won't be written out, or will be partially written, or (very rarely) that "
34069 "you'll get disk corruption."
34070 msgstr ""
34071
34072 #. type: textblock
34073 #: ../src/guestfs.pod:799
34074 msgid ""
34075 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34076 "guestfish scripts that forget to sync will work just fine, which can make "
34077 "this very puzzling if you are trying to debug a problem."
34078 msgstr ""
34079
34080 #. type: =item
34081 #: ../src/guestfs.pod:803
34082 msgid "Mount option C<-o sync> should not be the default."
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:805
34087 msgid ""
34088 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
34089 "libguestfs 1.13.16.  This section only applies to older versions."
34090 msgstr ""
34091
34092 #. type: textblock
34093 #: ../src/guestfs.pod:808
34094 msgid ""
34095 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34096 "However C<-o sync> does not add any reliability benefit, but does have a "
34097 "very large performance impact."
34098 msgstr ""
34099
34100 #. type: textblock
34101 #: ../src/guestfs.pod:812
34102 msgid ""
34103 "The work around is to use L</guestfs_mount_options> and set the mount "
34104 "options that you actually want to use."
34105 msgstr ""
34106
34107 #. type: =item
34108 #: ../src/guestfs.pod:815
34109 msgid "Read-only should be the default."
34110 msgstr ""
34111
34112 #. type: textblock
34113 #: ../src/guestfs.pod:817
34114 msgid ""
34115 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34116 "specify I<--rw> if you want to make changes to the image."
34117 msgstr ""
34118
34119 #. type: textblock
34120 #: ../src/guestfs.pod:820
34121 msgid "This would reduce the potential to corrupt live VM images."
34122 msgstr ""
34123
34124 #. type: textblock
34125 #: ../src/guestfs.pod:822
34126 msgid ""
34127 "Note that many filesystems change the disk when you just mount and unmount, "
34128 "even if you didn't perform any writes.  You need to use "
34129 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
34130 msgstr ""
34131
34132 #. type: =item
34133 #: ../src/guestfs.pod:826
34134 msgid "guestfish command line is hard to use."
34135 msgstr ""
34136
34137 #. type: textblock
34138 #: ../src/guestfs.pod:828
34139 msgid ""
34140 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34141 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34142 "exist, so it fails.  In earlier versions of guestfish the error message was "
34143 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34144 "we should have used C<guestfish -c command> to run commands."
34145 msgstr ""
34146
34147 #. type: =item
34148 #: ../src/guestfs.pod:835
34149 msgid "guestfish megabyte modifiers don't work right on all commands"
34150 msgstr ""
34151
34152 #. type: textblock
34153 #: ../src/guestfs.pod:837
34154 msgid ""
34155 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34156 "other modifiers).  What guestfish actually does is to multiply the number "
34157 "part by the modifier part and pass the result to the C API.  However this "
34158 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34159 "expecting some other unit (eg. megabytes)."
34160 msgstr ""
34161
34162 #. type: textblock
34163 #: ../src/guestfs.pod:844
34164 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34165 msgstr ""
34166
34167 #. type: verbatim
34168 #: ../src/guestfs.pod:846
34169 #, no-wrap
34170 msgid ""
34171 " lvcreate LV VG 100M\n"
34172 "\n"
34173 msgstr ""
34174
34175 #. type: textblock
34176 #: ../src/guestfs.pod:848
34177 msgid ""
34178 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34179 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34180 "megabytes * megabytes) logical volume.  The error message you get from this "
34181 "is also a little obscure."
34182 msgstr ""
34183
34184 #. type: textblock
34185 #: ../src/guestfs.pod:853
34186 msgid ""
34187 "This could be fixed in the generator by specially marking parameters and "
34188 "return values which take bytes or other units."
34189 msgstr ""
34190
34191 #. type: =item
34192 #: ../src/guestfs.pod:856
34193 msgid "Ambiguity between devices and paths"
34194 msgstr ""
34195
34196 #. type: textblock
34197 #: ../src/guestfs.pod:858
34198 msgid ""
34199 "There is a subtle ambiguity in the API between a device name "
34200 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
34201 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34202 msgstr ""
34203
34204 #. type: textblock
34205 #: ../src/guestfs.pod:863
34206 msgid ""
34207 "In the current API we usually resolve this ambiguity by having two separate "
34208 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34209 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34210 "detecting if the path supplied begins with C</dev/>."
34211 msgstr ""
34212
34213 #. type: textblock
34214 #: ../src/guestfs.pod:869
34215 msgid ""
34216 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34217 "make paths/devices into structured names.  One way to do this would be to "
34218 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34219 "aspect of grub.  Another way would be to use a structured type, equivalent "
34220 "to this OCaml type:"
34221 msgstr ""
34222
34223 #. type: verbatim
34224 #: ../src/guestfs.pod:875
34225 #, no-wrap
34226 msgid ""
34227 " type path = Path of string | Device of int | Partition of int * int\n"
34228 "\n"
34229 msgstr ""
34230
34231 #. type: textblock
34232 #: ../src/guestfs.pod:877
34233 msgid "which would allow you to pass arguments like:"
34234 msgstr ""
34235
34236 #. type: verbatim
34237 #: ../src/guestfs.pod:879
34238 #, no-wrap
34239 msgid ""
34240 " Path \"/foo/bar\"\n"
34241 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34242 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34243 " Path \"/dev/sdb2\"    (* not a device *)\n"
34244 "\n"
34245 msgstr ""
34246
34247 #. type: textblock
34248 #: ../src/guestfs.pod:884
34249 msgid ""
34250 "As you can see there are still problems to resolve even with this "
34251 "representation.  Also consider how it might work in guestfish."
34252 msgstr ""
34253
34254 #. type: =head2
34255 #: ../src/guestfs.pod:889
34256 msgid "KEYS AND PASSPHRASES"
34257 msgstr ""
34258
34259 #. type: textblock
34260 #: ../src/guestfs.pod:891
34261 msgid ""
34262 "Certain libguestfs calls take a parameter that contains sensitive key "
34263 "material, passed in as a C string."
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:894
34268 msgid ""
34269 "In the future we would hope to change the libguestfs implementation so that "
34270 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34271 "swap.  However this is I<not> done at the moment, because of the complexity "
34272 "of such an implementation."
34273 msgstr ""
34274
34275 #. type: textblock
34276 #: ../src/guestfs.pod:899
34277 msgid ""
34278 "Therefore you should be aware that any key parameter you pass to libguestfs "
34279 "might end up being written out to the swap partition.  If this is a concern, "
34280 "scrub the swap partition or don't use libguestfs on encrypted devices."
34281 msgstr ""
34282
34283 #. type: =head2
34284 #: ../src/guestfs.pod:904
34285 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34286 msgstr ""
34287
34288 #. type: textblock
34289 #: ../src/guestfs.pod:906
34290 msgid ""
34291 "All high-level libguestfs actions are synchronous.  If you want to use "
34292 "libguestfs asynchronously then you must create a thread."
34293 msgstr ""
34294
34295 #. type: textblock
34296 #: ../src/guestfs.pod:909
34297 msgid ""
34298 "Only use the handle from a single thread.  Either use the handle exclusively "
34299 "from one thread, or provide your own mutex so that two threads cannot issue "
34300 "calls on the same handle at the same time."
34301 msgstr ""
34302
34303 #. type: textblock
34304 #: ../src/guestfs.pod:913
34305 msgid ""
34306 "See the graphical program guestfs-browser for one possible architecture for "
34307 "multithreaded programs using libvirt and libguestfs."
34308 msgstr ""
34309
34310 #. type: =head2
34311 #: ../src/guestfs.pod:916
34312 msgid "PATH"
34313 msgstr ""
34314
34315 #. type: textblock
34316 #: ../src/guestfs.pod:918
34317 msgid ""
34318 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34319 "internal path."
34320 msgstr ""
34321
34322 #. type: textblock
34323 #: ../src/guestfs.pod:921
34324 msgid ""
34325 "By default it looks for these in the directory C<$libdir/guestfs> "
34326 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34327 msgstr ""
34328
34329 #. type: textblock
34330 #: ../src/guestfs.pod:924
34331 msgid ""
34332 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34333 "to change the directories that libguestfs will search in.  The value is a "
34334 "colon-separated list of paths.  The current directory is I<not> searched "
34335 "unless the path contains an empty element or C<.>.  For example "
34336 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34337 "then C</usr/lib/guestfs>."
34338 msgstr ""
34339
34340 #. type: =head2
34341 #: ../src/guestfs.pod:931
34342 msgid "QEMU WRAPPERS"
34343 msgstr ""
34344
34345 #. type: textblock
34346 #: ../src/guestfs.pod:933
34347 msgid ""
34348 "If you want to compile your own qemu, run qemu from a non-standard location, "
34349 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34350 "around qemu."
34351 msgstr ""
34352
34353 #. type: textblock
34354 #: ../src/guestfs.pod:937
34355 msgid ""
34356 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34357 "last command in the shell script (so that qemu replaces the shell and "
34358 "becomes the direct child of the libguestfs-using program).  If you don't do "
34359 "this, then the qemu process won't be cleaned up correctly."
34360 msgstr ""
34361
34362 #. type: textblock
34363 #: ../src/guestfs.pod:942
34364 msgid ""
34365 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34366 "source:"
34367 msgstr ""
34368
34369 #. type: verbatim
34370 #: ../src/guestfs.pod:945
34371 #, no-wrap
34372 msgid ""
34373 " #!/bin/sh -\n"
34374 " qemudir=/home/rjones/d/qemu\n"
34375 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
34376 "\"$@\"\n"
34377 "\n"
34378 msgstr ""
34379
34380 #. type: textblock
34381 #: ../src/guestfs.pod:949
34382 msgid ""
34383 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34384 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34385 "example:"
34386 msgstr ""
34387
34388 #. type: verbatim
34389 #: ../src/guestfs.pod:953
34390 #, no-wrap
34391 msgid ""
34392 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34393 "\n"
34394 msgstr ""
34395
34396 #. type: textblock
34397 #: ../src/guestfs.pod:955
34398 msgid ""
34399 "Note that libguestfs also calls qemu with the -help and -version options in "
34400 "order to determine features."
34401 msgstr ""
34402
34403 #. type: textblock
34404 #: ../src/guestfs.pod:958
34405 msgid ""
34406 "Wrappers can also be used to edit the options passed to qemu.  In the "
34407 "following example, the C<-machine ...> option (C<-machine> and the following "
34408 "argument) are removed from the command line and replaced with C<-machine "
34409 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
34410 "right one to remove, putting the remaining options into the C<args> array."
34411 msgstr ""
34412
34413 #. type: verbatim
34414 #: ../src/guestfs.pod:967
34415 #, no-wrap
34416 msgid ""
34417 " i=0\n"
34418 " while [ $# -gt 0 ]; do\n"
34419 "     case \"$1\" in\n"
34420 "     -machine)\n"
34421 "         shift 2;;\n"
34422 "     *)\n"
34423 "         args[i]=\"$1\"\n"
34424 "         (( i++ ))\n"
34425 "         shift ;;\n"
34426 "     esac\n"
34427 " done\n"
34428 " \n"
34429 msgstr ""
34430
34431 #. type: verbatim
34432 #: ../src/guestfs.pod:979
34433 #, no-wrap
34434 msgid ""
34435 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
34436 "\n"
34437 msgstr ""
34438
34439 #. type: =head2
34440 #: ../src/guestfs.pod:981
34441 msgid "ATTACHING TO RUNNING DAEMONS"
34442 msgstr ""
34443
34444 #. type: textblock
34445 #: ../src/guestfs.pod:983
34446 msgid ""
34447 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34448 "babies.  Use with caution."
34449 msgstr ""
34450
34451 #. type: textblock
34452 #: ../src/guestfs.pod:986
34453 msgid ""
34454 "I<Note (2):> This section explains how to attach to a running daemon from a "
34455 "low level perspective.  For most users, simply using virt tools such as "
34456 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34457 msgstr ""
34458
34459 #. type: =head3
34460 #: ../src/guestfs.pod:990
34461 msgid "Using guestfs_set_attach_method"
34462 msgstr ""
34463
34464 #. type: textblock
34465 #: ../src/guestfs.pod:992
34466 msgid ""
34467 "By calling L</guestfs_set_attach_method> you can change how the library "
34468 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
34469 "L</ARCHITECTURE> for some background)."
34470 msgstr ""
34471
34472 #. type: textblock
34473 #: ../src/guestfs.pod:996
34474 msgid ""
34475 "The normal attach method is C<appliance>, where a small appliance is created "
34476 "containing the daemon, and then the library connects to this."
34477 msgstr ""
34478
34479 #. type: textblock
34480 #: ../src/guestfs.pod:999
34481 msgid ""
34482 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34483 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34484 "daemon over the Unix domain socket."
34485 msgstr ""
34486
34487 #. type: textblock
34488 #: ../src/guestfs.pod:1003
34489 msgid ""
34490 "The normal use for this is to connect to a running virtual machine that "
34491 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34492 "files inside the live virtual machine."
34493 msgstr ""
34494
34495 #. type: =head3
34496 #: ../src/guestfs.pod:1007
34497 msgid "Using guestfs_add_domain with live flag"
34498 msgstr ""
34499
34500 #. type: textblock
34501 #: ../src/guestfs.pod:1009
34502 msgid ""
34503 "L</guestfs_add_domain> provides some help for getting the correct attach "
34504 "method.  If you pass the C<live> option to this function, then (if the "
34505 "virtual machine is running) it will examine the libvirt XML looking for a "
34506 "virtio-serial channel to connect to:"
34507 msgstr ""
34508
34509 #. type: verbatim
34510 #: ../src/guestfs.pod:1015
34511 #, no-wrap
34512 msgid ""
34513 " <domain>\n"
34514 "   ...\n"
34515 "   <devices>\n"
34516 "     ...\n"
34517 "     <channel type='unix'>\n"
34518 "       <source mode='bind' path='/path/to/socket'/>\n"
34519 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34520 "     </channel>\n"
34521 "     ...\n"
34522 "   </devices>\n"
34523 " </domain>\n"
34524 "\n"
34525 msgstr ""
34526
34527 #. type: textblock
34528 #: ../src/guestfs.pod:1027
34529 msgid ""
34530 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34531 "method to C<unix:/path/to/socket>."
34532 msgstr ""
34533
34534 #. type: textblock
34535 #: ../src/guestfs.pod:1030
34536 msgid ""
34537 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34538 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34539 "to attach to and modify live virtual machines."
34540 msgstr ""
34541
34542 #. type: textblock
34543 #: ../src/guestfs.pod:1034
34544 msgid ""
34545 "The virtual machine needs to have been set up beforehand so that it has the "
34546 "virtio-serial channel and so that guestfsd is running inside it."
34547 msgstr ""
34548
34549 #. type: =head2
34550 #: ../src/guestfs.pod:1038
34551 msgid "ABI GUARANTEE"
34552 msgstr ""
34553
34554 #. type: textblock
34555 #: ../src/guestfs.pod:1040
34556 msgid ""
34557 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34558 "actions as outlined in this section.  Although we will deprecate some "
34559 "actions, for example if they get replaced by newer calls, we will keep the "
34560 "old actions forever.  This allows you the developer to program in confidence "
34561 "against the libguestfs API."
34562 msgstr ""
34563
34564 #. type: =head2
34565 #: ../src/guestfs.pod:1046
34566 msgid "BLOCK DEVICE NAMING"
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../src/guestfs.pod:1048
34571 msgid ""
34572 "In the kernel there is now quite a profusion of schemata for naming block "
34573 "devices (in this context, by I<block device> I mean a physical or virtual "
34574 "hard drive).  The original Linux IDE driver used names starting with "
34575 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
34576 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
34577 "replacement for the old IDE driver (particularly for SATA devices) those "
34578 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
34579 "machines with paravirtualized drivers.  This has created several different "
34580 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
34581 "Xen PV disks."
34582 msgstr ""
34583
34584 #. type: textblock
34585 #: ../src/guestfs.pod:1060
34586 msgid ""
34587 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34588 "Linux kernel to access block devices.  We can run a variety of appliances "
34589 "based on a variety of Linux kernels."
34590 msgstr ""
34591
34592 #. type: textblock
34593 #: ../src/guestfs.pod:1064
34594 msgid ""
34595 "This causes a problem for libguestfs because many API calls use device or "
34596 "partition names.  Working scripts and the recipe (example) scripts that we "
34597 "make available over the internet could fail if the naming scheme changes."
34598 msgstr ""
34599
34600 #. type: textblock
34601 #: ../src/guestfs.pod:1069
34602 msgid ""
34603 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34604 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34605 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34606 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34607 msgstr ""
34608
34609 #. type: textblock
34610 #: ../src/guestfs.pod:1075
34611 msgid ""
34612 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34613 "L</guestfs_list_partitions> and similar calls return the true names of the "
34614 "devices and partitions as known to the appliance."
34615 msgstr ""
34616
34617 #. type: =head3
34618 #: ../src/guestfs.pod:1080
34619 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34620 msgstr ""
34621
34622 #. type: textblock
34623 #: ../src/guestfs.pod:1082
34624 msgid ""
34625 "Usually this translation is transparent.  However in some (very rare)  cases "
34626 "you may need to know the exact algorithm.  Such cases include where you use "
34627 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
34628 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
34629 "devices."
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:1088
34634 msgid ""
34635 "The algorithm is applied only to I<parameters> which are known to be either "
34636 "device or partition names.  Return values from functions such as "
34637 "L</guestfs_list_devices> are never changed."
34638 msgstr ""
34639
34640 #. type: textblock
34641 #: ../src/guestfs.pod:1096
34642 msgid "Is the string a parameter which is a device or partition name?"
34643 msgstr ""
34644
34645 #. type: textblock
34646 #: ../src/guestfs.pod:1100
34647 msgid "Does the string begin with C</dev/sd>?"
34648 msgstr ""
34649
34650 #. type: textblock
34651 #: ../src/guestfs.pod:1104
34652 msgid ""
34653 "Does the named device exist? If so, we use that device.  However if I<not> "
34654 "then we continue with this algorithm."
34655 msgstr ""
34656
34657 #. type: textblock
34658 #: ../src/guestfs.pod:1109
34659 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34660 msgstr ""
34661
34662 #. type: textblock
34663 #: ../src/guestfs.pod:1111
34664 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../src/guestfs.pod:1113
34669 msgid "If that named device exists, use it.  If not, continue."
34670 msgstr ""
34671
34672 #. type: textblock
34673 #: ../src/guestfs.pod:1117
34674 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34675 msgstr ""
34676
34677 #. type: textblock
34678 #: ../src/guestfs.pod:1119
34679 msgid "If that named device exists, use it.  If not, return an error."
34680 msgstr ""
34681
34682 #. type: =head3
34683 #: ../src/guestfs.pod:1123
34684 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34685 msgstr ""
34686
34687 #. type: textblock
34688 #: ../src/guestfs.pod:1125
34689 msgid ""
34690 "Although the standard naming scheme and automatic translation is useful for "
34691 "simple programs and guestfish scripts, for larger programs it is best not to "
34692 "rely on this mechanism."
34693 msgstr ""
34694
34695 #. type: textblock
34696 #: ../src/guestfs.pod:1129
34697 msgid ""
34698 "Where possible for maximum future portability programs using libguestfs "
34699 "should use these future-proof techniques:"
34700 msgstr ""
34701
34702 #. type: textblock
34703 #: ../src/guestfs.pod:1136
34704 msgid ""
34705 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34706 "device names, and then use those names directly."
34707 msgstr ""
34708
34709 #. type: textblock
34710 #: ../src/guestfs.pod:1139
34711 msgid "Since those device names exist by definition, they will never be translated."
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:1144
34716 msgid ""
34717 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34718 "filesystem labels."
34719 msgstr ""
34720
34721 #. type: textblock
34722 #: ../src/guestfs.pod:1151
34723 msgid ""
34724 "This section discusses security implications of using libguestfs, "
34725 "particularly with untrusted or malicious guests or disk images."
34726 msgstr ""
34727
34728 #. type: =head2
34729 #: ../src/guestfs.pod:1154
34730 msgid "GENERAL SECURITY CONSIDERATIONS"
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:1156
34735 msgid ""
34736 "Be careful with any files or data that you download from a guest (by "
34737 "\"download\" we mean not just the L</guestfs_download> command but any "
34738 "command that reads files, filenames, directories or anything else from a "
34739 "disk image).  An attacker could manipulate the data to fool your program "
34740 "into doing the wrong thing.  Consider cases such as:"
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:1166
34745 msgid "the data (file etc) not being present"
34746 msgstr ""
34747
34748 #. type: textblock
34749 #: ../src/guestfs.pod:1170
34750 msgid "being present but empty"
34751 msgstr ""
34752
34753 #. type: textblock
34754 #: ../src/guestfs.pod:1174
34755 msgid "being much larger than normal"
34756 msgstr ""
34757
34758 #. type: textblock
34759 #: ../src/guestfs.pod:1178
34760 msgid "containing arbitrary 8 bit data"
34761 msgstr ""
34762
34763 #. type: textblock
34764 #: ../src/guestfs.pod:1182
34765 msgid "being in an unexpected character encoding"
34766 msgstr ""
34767
34768 #. type: textblock
34769 #: ../src/guestfs.pod:1186
34770 msgid "containing homoglyphs."
34771 msgstr ""
34772
34773 #. type: =head2
34774 #: ../src/guestfs.pod:1190
34775 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34776 msgstr ""
34777
34778 #. type: textblock
34779 #: ../src/guestfs.pod:1192
34780 msgid ""
34781 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34782 "(VFS) module can sometimes be escalated into exploits by deliberately "
34783 "creating a malicious, malformed filesystem.  These exploits are very severe "
34784 "for two reasons.  Firstly there are very many filesystem drivers in the "
34785 "kernel, and many of them are infrequently used and not much developer "
34786 "attention has been paid to the code.  Linux userspace helps potential "
34787 "crackers by detecting the filesystem type and automatically choosing the "
34788 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34789 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34790 "exploit (worse in some ways), giving immediate and total access to the "
34791 "system right down to the hardware level."
34792 msgstr ""
34793
34794 #. type: textblock
34795 #: ../src/guestfs.pod:1205
34796 msgid ""
34797 "That explains why you should never mount a filesystem from an untrusted "
34798 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34799 "inside a qemu virtual machine, usually running as a non-root user.  The "
34800 "attacker would need to write a filesystem which first exploited the kernel, "
34801 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34802 "the libguestfs protocol, and finally to be as serious as the host kernel "
34803 "exploit it would need to escalate its privileges to root.  This multi-step "
34804 "escalation, performed by a static piece of data, is thought to be extremely "
34805 "hard to do, although we never say 'never' about security issues."
34806 msgstr ""
34807
34808 #. type: textblock
34809 #: ../src/guestfs.pod:1216
34810 msgid ""
34811 "In any case callers can reduce the attack surface by forcing the filesystem "
34812 "type when mounting (use L</guestfs_mount_vfs>)."
34813 msgstr ""
34814
34815 #. type: =head2
34816 #: ../src/guestfs.pod:1219
34817 msgid "PROTOCOL SECURITY"
34818 msgstr ""
34819
34820 #. type: textblock
34821 #: ../src/guestfs.pod:1221
34822 msgid ""
34823 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34824 "defined upper message size.  However a program that uses libguestfs must "
34825 "also take care - for example you can write a program that downloads a binary "
34826 "from a disk image and executes it locally, and no amount of protocol "
34827 "security will save you from the consequences."
34828 msgstr ""
34829
34830 #. type: =head2
34831 #: ../src/guestfs.pod:1227
34832 msgid "INSPECTION SECURITY"
34833 msgstr ""
34834
34835 #. type: textblock
34836 #: ../src/guestfs.pod:1229
34837 msgid ""
34838 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34839 "directly from the guest, and these could contain any 8 bit data.  Callers "
34840 "should be careful to escape these before printing them to a structured file "
34841 "(for example, use HTML escaping if creating a web page)."
34842 msgstr ""
34843
34844 #. type: textblock
34845 #: ../src/guestfs.pod:1235
34846 msgid ""
34847 "Guest configuration may be altered in unusual ways by the administrator of "
34848 "the virtual machine, and may not reflect reality (particularly for untrusted "
34849 "or actively malicious guests).  For example we parse the hostname from "
34850 "configuration files like C</etc/sysconfig/network> that we find in the "
34851 "guest, but the guest administrator can easily manipulate these files to "
34852 "provide the wrong hostname."
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:1243
34857 msgid ""
34858 "The inspection API parses guest configuration using two external libraries: "
34859 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34860 "designed to be robust in the face of malicious data, although denial of "
34861 "service attacks are still possible, for example with oversized configuration "
34862 "files."
34863 msgstr ""
34864
34865 #. type: =head2
34866 #: ../src/guestfs.pod:1249
34867 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34868 msgstr ""
34869
34870 #. type: textblock
34871 #: ../src/guestfs.pod:1251
34872 msgid ""
34873 "Be very cautious about running commands from the guest.  By running a "
34874 "command in the guest, you are giving CPU time to a binary that you do not "
34875 "control, under the same user account as the library, albeit wrapped in qemu "
34876 "virtualization.  More information and alternatives can be found in the "
34877 "section L</RUNNING COMMANDS>."
34878 msgstr ""
34879
34880 #. type: =head2
34881 #: ../src/guestfs.pod:1257
34882 msgid "CVE-2010-3851"
34883 msgstr ""
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:1259
34887 msgid "https://bugzilla.redhat.com/642934"
34888 msgstr ""
34889
34890 #. type: textblock
34891 #: ../src/guestfs.pod:1261
34892 msgid ""
34893 "This security bug concerns the automatic disk format detection that qemu "
34894 "does on disk images."
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:1264
34899 msgid ""
34900 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34901 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34902 "for one of the known headers, and if none is found then assuming the disk "
34903 "image must be raw."
34904 msgstr ""
34905
34906 #. type: textblock
34907 #: ../src/guestfs.pod:1269
34908 msgid ""
34909 "This allows a guest which has been given a raw disk image to write some "
34910 "other header.  At next boot (or when the disk image is accessed by "
34911 "libguestfs) qemu would do autodetection and think the disk image format was, "
34912 "say, qcow2 based on the header written by the guest."
34913 msgstr ""
34914
34915 #. type: textblock
34916 #: ../src/guestfs.pod:1274
34917 msgid ""
34918 "This in itself would not be a problem, but qcow2 offers many features, one "
34919 "of which is to allow a disk image to refer to another image (called the "
34920 "\"backing disk\").  It does this by placing the path to the backing disk "
34921 "into the qcow2 header.  This path is not validated and could point to any "
34922 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34923 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34924 "control of the attacker."
34925 msgstr ""
34926
34927 #. type: textblock
34928 #: ../src/guestfs.pod:1282
34929 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:1289
34934 msgid "You have enabled the network or have opened the disk in write mode."
34935 msgstr ""
34936
34937 #. type: textblock
34938 #: ../src/guestfs.pod:1293
34939 msgid ""
34940 "You are also running untrusted code from the guest (see L</RUNNING "
34941 "COMMANDS>)."
34942 msgstr ""
34943
34944 #. type: textblock
34945 #: ../src/guestfs.pod:1298
34946 msgid ""
34947 "The way to avoid this is to specify the expected disk format when adding "
34948 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34949 "should always do this if the disk is raw format, and it's a good idea for "
34950 "other cases too."
34951 msgstr ""
34952
34953 #. type: textblock
34954 #: ../src/guestfs.pod:1303
34955 msgid ""
34956 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34957 "format is fetched from libvirt and passed through."
34958 msgstr ""
34959
34960 #. type: textblock
34961 #: ../src/guestfs.pod:1306
34962 msgid ""
34963 "For libguestfs tools, use the I<--format> command line parameter as "
34964 "appropriate."
34965 msgstr ""
34966
34967 #. type: =head1
34968 #: ../src/guestfs.pod:1309
34969 msgid "CONNECTION MANAGEMENT"
34970 msgstr ""
34971
34972 #. type: =head2
34973 #: ../src/guestfs.pod:1311
34974 msgid "guestfs_h *"
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs.pod:1313
34979 msgid ""
34980 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34981 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34982 "handle and release all resources used."
34983 msgstr ""
34984
34985 #. type: textblock
34986 #: ../src/guestfs.pod:1317
34987 msgid ""
34988 "For information on using multiple handles and threads, see the section "
34989 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34990 msgstr ""
34991
34992 #. type: =head2
34993 #: ../src/guestfs.pod:1320
34994 msgid "guestfs_create"
34995 msgstr ""
34996
34997 #. type: verbatim
34998 #: ../src/guestfs.pod:1322
34999 #, no-wrap
35000 msgid ""
35001 " guestfs_h *guestfs_create (void);\n"
35002 "\n"
35003 msgstr ""
35004
35005 #. type: textblock
35006 #: ../src/guestfs.pod:1324
35007 msgid "Create a connection handle."
35008 msgstr ""
35009
35010 #. type: textblock
35011 #: ../src/guestfs.pod:1326
35012 msgid ""
35013 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35014 "NULL."
35015 msgstr ""
35016
35017 #. type: textblock
35018 #: ../src/guestfs.pod:1329
35019 msgid ""
35020 "You have to \"configure\" the handle after creating it.  This includes "
35021 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35022 "handle at least once."
35023 msgstr ""
35024
35025 #. type: textblock
35026 #: ../src/guestfs.pod:1333
35027 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35028 msgstr ""
35029
35030 #. type: textblock
35031 #: ../src/guestfs.pod:1335
35032 msgid ""
35033 "You may also want to configure error handling for the handle.  See the "
35034 "L</ERROR HANDLING> section below."
35035 msgstr ""
35036
35037 #. type: =head2
35038 #: ../src/guestfs.pod:1338
35039 msgid "guestfs_close"
35040 msgstr ""
35041
35042 #. type: verbatim
35043 #: ../src/guestfs.pod:1340
35044 #, no-wrap
35045 msgid ""
35046 " void guestfs_close (guestfs_h *g);\n"
35047 "\n"
35048 msgstr ""
35049
35050 #. type: textblock
35051 #: ../src/guestfs.pod:1342
35052 msgid "This closes the connection handle and frees up all resources used."
35053 msgstr ""
35054
35055 #. type: textblock
35056 #: ../src/guestfs.pod:1344
35057 msgid ""
35058 "If autosync was set on the handle and the handle was launched, then this "
35059 "implicitly calls various functions to unmount filesystems and sync the "
35060 "disk.  See L</guestfs_set_autosync> for more details."
35061 msgstr ""
35062
35063 #. type: textblock
35064 #: ../src/guestfs.pod:1348
35065 msgid "If a close callback was set on the handle, then it is called."
35066 msgstr ""
35067
35068 #. type: =head1
35069 #: ../src/guestfs.pod:1350
35070 msgid "ERROR HANDLING"
35071 msgstr ""
35072
35073 #. type: textblock
35074 #: ../src/guestfs.pod:1352
35075 msgid ""
35076 "API functions can return errors.  For example, almost all functions that "
35077 "return C<int> will return C<-1> to indicate an error."
35078 msgstr ""
35079
35080 #. type: textblock
35081 #: ../src/guestfs.pod:1355
35082 msgid ""
35083 "Additional information is available for errors: an error message string and "
35084 "optionally an error number (errno) if the thing that failed was a system "
35085 "call."
35086 msgstr ""
35087
35088 #. type: textblock
35089 #: ../src/guestfs.pod:1359
35090 msgid ""
35091 "You can get at the additional information about the last error on the handle "
35092 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35093 "up an error handler with L</guestfs_set_error_handler>."
35094 msgstr ""
35095
35096 #. type: textblock
35097 #: ../src/guestfs.pod:1364
35098 msgid ""
35099 "When the handle is created, a default error handler is installed which "
35100 "prints the error message string to C<stderr>.  For small short-running "
35101 "command line programs it is sufficient to do:"
35102 msgstr ""
35103
35104 #. type: verbatim
35105 #: ../src/guestfs.pod:1368
35106 #, no-wrap
35107 msgid ""
35108 " if (guestfs_launch (g) == -1)\n"
35109 "   exit (EXIT_FAILURE);\n"
35110 "\n"
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:1371
35115 msgid ""
35116 "since the default error handler will ensure that an error message has been "
35117 "printed to C<stderr> before the program exits."
35118 msgstr ""
35119
35120 #. type: textblock
35121 #: ../src/guestfs.pod:1374
35122 msgid ""
35123 "For other programs the caller will almost certainly want to install an "
35124 "alternate error handler or do error handling in-line like this:"
35125 msgstr ""
35126
35127 #. type: verbatim
35128 #: ../src/guestfs.pod:1377
35129 #, no-wrap
35130 msgid ""
35131 " /* This disables the default behaviour of printing errors\n"
35132 "    on stderr. */\n"
35133 " guestfs_set_error_handler (g, NULL, NULL);\n"
35134 " \n"
35135 msgstr ""
35136
35137 #. type: verbatim
35138 #: ../src/guestfs.pod:1381
35139 #, no-wrap
35140 msgid ""
35141 " if (guestfs_launch (g) == -1) {\n"
35142 "   /* Examine the error message and print it etc. */\n"
35143 "   char *msg = guestfs_last_error (g);\n"
35144 "   int errnum = guestfs_last_errno (g);\n"
35145 "   fprintf (stderr, \"%s\", msg);\n"
35146 "   if (errnum != 0)\n"
35147 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35148 "   fprintf (stderr, \"\\n\");\n"
35149 "   /* ... */\n"
35150 " }\n"
35151 "\n"
35152 msgstr ""
35153
35154 #. type: textblock
35155 #: ../src/guestfs.pod:1392
35156 msgid ""
35157 "Out of memory errors are handled differently.  The default action is to call "
35158 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
35159 "L</guestfs_set_out_of_memory_handler>."
35160 msgstr ""
35161
35162 #. type: textblock
35163 #: ../src/guestfs.pod:1396
35164 msgid ""
35165 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35166 "because there is no handle if this happens there is no way to get additional "
35167 "error information.  However L</guestfs_create> is supposed to be a "
35168 "lightweight operation which can only fail because of insufficient memory (it "
35169 "returns NULL in this case)."
35170 msgstr ""
35171
35172 #. type: =head2
35173 #: ../src/guestfs.pod:1402
35174 msgid "guestfs_last_error"
35175 msgstr ""
35176
35177 #. type: verbatim
35178 #: ../src/guestfs.pod:1404
35179 #, no-wrap
35180 msgid ""
35181 " const char *guestfs_last_error (guestfs_h *g);\n"
35182 "\n"
35183 msgstr ""
35184
35185 #. type: textblock
35186 #: ../src/guestfs.pod:1406
35187 msgid ""
35188 "This returns the last error message that happened on C<g>.  If there has not "
35189 "been an error since the handle was created, then this returns C<NULL>."
35190 msgstr ""
35191
35192 #. type: textblock
35193 #: ../src/guestfs.pod:1410
35194 msgid ""
35195 "The lifetime of the returned string is until the next error occurs, or "
35196 "L</guestfs_close> is called."
35197 msgstr ""
35198
35199 #. type: =head2
35200 #: ../src/guestfs.pod:1413
35201 msgid "guestfs_last_errno"
35202 msgstr ""
35203
35204 #. type: verbatim
35205 #: ../src/guestfs.pod:1415
35206 #, no-wrap
35207 msgid ""
35208 " int guestfs_last_errno (guestfs_h *g);\n"
35209 "\n"
35210 msgstr ""
35211
35212 #. type: textblock
35213 #: ../src/guestfs.pod:1417
35214 msgid "This returns the last error number (errno) that happened on C<g>."
35215 msgstr ""
35216
35217 #. type: textblock
35218 #: ../src/guestfs.pod:1419
35219 msgid "If successful, an errno integer not equal to zero is returned."
35220 msgstr ""
35221
35222 #. type: textblock
35223 #: ../src/guestfs.pod:1421
35224 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
35225 msgstr ""
35226
35227 #. type: textblock
35228 #: ../src/guestfs.pod:1428
35229 msgid "There has not been any error on the handle."
35230 msgstr ""
35231
35232 #. type: textblock
35233 #: ../src/guestfs.pod:1432
35234 msgid ""
35235 "There has been an error but the errno was meaningless.  This corresponds to "
35236 "the case where the error did not come from a failed system call, but for "
35237 "some other reason."
35238 msgstr ""
35239
35240 #. type: textblock
35241 #: ../src/guestfs.pod:1438
35242 msgid ""
35243 "There was an error from a failed system call, but for some reason the errno "
35244 "was not captured and returned.  This usually indicates a bug in libguestfs."
35245 msgstr ""
35246
35247 #. type: textblock
35248 #: ../src/guestfs.pod:1444
35249 msgid ""
35250 "Libguestfs tries to convert the errno from inside the applicance into a "
35251 "corresponding errno for the caller (not entirely trivial: the appliance "
35252 "might be running a completely different operating system from the library "
35253 "and error numbers are not standardized across Un*xen).  If this could not be "
35254 "done, then the error is translated to C<EINVAL>.  In practice this should "
35255 "only happen in very rare circumstances."
35256 msgstr ""
35257
35258 #. type: =head2
35259 #: ../src/guestfs.pod:1452
35260 msgid "guestfs_set_error_handler"
35261 msgstr ""
35262
35263 #. type: verbatim
35264 #: ../src/guestfs.pod:1454
35265 #, no-wrap
35266 msgid ""
35267 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35268 "                                           void *opaque,\n"
35269 "                                           const char *msg);\n"
35270 " void guestfs_set_error_handler (guestfs_h *g,\n"
35271 "                                 guestfs_error_handler_cb cb,\n"
35272 "                                 void *opaque);\n"
35273 "\n"
35274 msgstr ""
35275
35276 #. type: textblock
35277 #: ../src/guestfs.pod:1461
35278 msgid ""
35279 "The callback C<cb> will be called if there is an error.  The parameters "
35280 "passed to the callback are an opaque data pointer and the error message "
35281 "string."
35282 msgstr ""
35283
35284 #. type: textblock
35285 #: ../src/guestfs.pod:1465
35286 msgid ""
35287 "C<errno> is not passed to the callback.  To get that the callback must call "
35288 "L</guestfs_last_errno>."
35289 msgstr ""
35290
35291 #. type: textblock
35292 #: ../src/guestfs.pod:1468
35293 msgid ""
35294 "Note that the message string C<msg> is freed as soon as the callback "
35295 "function returns, so if you want to stash it somewhere you must make your "
35296 "own copy."
35297 msgstr ""
35298
35299 #. type: textblock
35300 #: ../src/guestfs.pod:1472
35301 msgid "The default handler prints messages on C<stderr>."
35302 msgstr ""
35303
35304 #. type: textblock
35305 #: ../src/guestfs.pod:1474
35306 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35307 msgstr ""
35308
35309 #. type: =head2
35310 #: ../src/guestfs.pod:1476
35311 msgid "guestfs_get_error_handler"
35312 msgstr ""
35313
35314 #. type: verbatim
35315 #: ../src/guestfs.pod:1478
35316 #, no-wrap
35317 msgid ""
35318 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35319 "                                                     void **opaque_rtn);\n"
35320 "\n"
35321 msgstr ""
35322
35323 #. type: textblock
35324 #: ../src/guestfs.pod:1481
35325 msgid "Returns the current error handler callback."
35326 msgstr ""
35327
35328 #. type: =head2
35329 #: ../src/guestfs.pod:1483
35330 msgid "guestfs_set_out_of_memory_handler"
35331 msgstr ""
35332
35333 #. type: verbatim
35334 #: ../src/guestfs.pod:1485
35335 #, no-wrap
35336 msgid ""
35337 " typedef void (*guestfs_abort_cb) (void);\n"
35338 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35339 "                                         guestfs_abort_cb);\n"
35340 "\n"
35341 msgstr ""
35342
35343 #. type: textblock
35344 #: ../src/guestfs.pod:1489
35345 msgid ""
35346 "The callback C<cb> will be called if there is an out of memory situation.  "
35347 "I<Note this callback must not return>."
35348 msgstr ""
35349
35350 #. type: textblock
35351 #: ../src/guestfs.pod:1492
35352 msgid "The default is to call L<abort(3)>."
35353 msgstr ""
35354
35355 #. type: textblock
35356 #: ../src/guestfs.pod:1494
35357 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35358 msgstr ""
35359
35360 #. type: =head2
35361 #: ../src/guestfs.pod:1497
35362 msgid "guestfs_get_out_of_memory_handler"
35363 msgstr ""
35364
35365 #. type: verbatim
35366 #: ../src/guestfs.pod:1499
35367 #, no-wrap
35368 msgid ""
35369 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35370 "\n"
35371 msgstr ""
35372
35373 #. type: textblock
35374 #: ../src/guestfs.pod:1501
35375 msgid "This returns the current out of memory handler."
35376 msgstr ""
35377
35378 #. type: =head1
35379 #: ../src/guestfs.pod:1503
35380 msgid "API CALLS"
35381 msgstr ""
35382
35383 #. type: =head1
35384 #: ../src/guestfs.pod:1507
35385 msgid "STRUCTURES"
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:1509
35390 msgid "@STRUCTS@"
35391 msgstr ""
35392
35393 #. type: =head1
35394 #: ../src/guestfs.pod:1511
35395 msgid "AVAILABILITY"
35396 msgstr ""
35397
35398 #. type: =head2
35399 #: ../src/guestfs.pod:1513
35400 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35401 msgstr ""
35402
35403 #. type: textblock
35404 #: ../src/guestfs.pod:1515
35405 msgid ""
35406 "Using L</guestfs_available> you can test availability of the following "
35407 "groups of functions.  This test queries the appliance to see if the "
35408 "appliance you are currently using supports the functionality."
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:1520
35413 msgid "@AVAILABILITY@"
35414 msgstr ""
35415
35416 #. type: =head2
35417 #: ../src/guestfs.pod:1522
35418 msgid "GUESTFISH supported COMMAND"
35419 msgstr ""
35420
35421 #. type: textblock
35422 #: ../src/guestfs.pod:1524
35423 msgid ""
35424 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35425 "prints out the available groups and whether they are supported by this build "
35426 "of libguestfs.  Note however that you have to do C<run> first."
35427 msgstr ""
35428
35429 #. type: =head2
35430 #: ../src/guestfs.pod:1529
35431 msgid "SINGLE CALLS AT COMPILE TIME"
35432 msgstr ""
35433
35434 #. type: textblock
35435 #: ../src/guestfs.pod:1531
35436 msgid ""
35437 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35438 "function, such as:"
35439 msgstr ""
35440
35441 #. type: verbatim
35442 #: ../src/guestfs.pod:1534
35443 #, no-wrap
35444 msgid ""
35445 " #define LIBGUESTFS_HAVE_DD 1\n"
35446 "\n"
35447 msgstr ""
35448
35449 #. type: textblock
35450 #: ../src/guestfs.pod:1536
35451 msgid "if L</guestfs_dd> is available."
35452 msgstr ""
35453
35454 #. type: textblock
35455 #: ../src/guestfs.pod:1538
35456 msgid ""
35457 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35458 "function is available at compile time, we recommended using build tools such "
35459 "as autoconf or cmake.  For example in autotools you could use:"
35460 msgstr ""
35461
35462 #. type: verbatim
35463 #: ../src/guestfs.pod:1543
35464 #, no-wrap
35465 msgid ""
35466 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35467 " AC_CHECK_FUNCS([guestfs_dd])\n"
35468 "\n"
35469 msgstr ""
35470
35471 #. type: textblock
35472 #: ../src/guestfs.pod:1546
35473 msgid ""
35474 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35475 "in your program."
35476 msgstr ""
35477
35478 #. type: =head2
35479 #: ../src/guestfs.pod:1549
35480 msgid "SINGLE CALLS AT RUN TIME"
35481 msgstr ""
35482
35483 #. type: textblock
35484 #: ../src/guestfs.pod:1551
35485 msgid ""
35486 "Testing at compile time doesn't guarantee that a function really exists in "
35487 "the library.  The reason is that you might be dynamically linked against a "
35488 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35489 "This situation unfortunately results in a segmentation fault, which is a "
35490 "shortcoming of the C dynamic linking system itself."
35491 msgstr ""
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:1558
35495 msgid ""
35496 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35497 "in this example program (note that you still need the compile time check as "
35498 "well):"
35499 msgstr ""
35500
35501 #. type: verbatim
35502 #: ../src/guestfs.pod:1562
35503 #, no-wrap
35504 msgid ""
35505 " #include <stdio.h>\n"
35506 " #include <stdlib.h>\n"
35507 " #include <unistd.h>\n"
35508 " #include <dlfcn.h>\n"
35509 " #include <guestfs.h>\n"
35510 " \n"
35511 msgstr ""
35512
35513 #. type: verbatim
35514 #: ../src/guestfs.pod:1568
35515 #, no-wrap
35516 msgid ""
35517 " main ()\n"
35518 " {\n"
35519 " #ifdef LIBGUESTFS_HAVE_DD\n"
35520 "   void *dl;\n"
35521 "   int has_function;\n"
35522 " \n"
35523 msgstr ""
35524
35525 #. type: verbatim
35526 #: ../src/guestfs.pod:1574
35527 #, no-wrap
35528 msgid ""
35529 "   /* Test if the function guestfs_dd is really available. */\n"
35530 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35531 "   if (!dl) {\n"
35532 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35533 "     exit (EXIT_FAILURE);\n"
35534 "   }\n"
35535 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35536 "   dlclose (dl);\n"
35537 " \n"
35538 msgstr ""
35539
35540 #. type: verbatim
35541 #: ../src/guestfs.pod:1583
35542 #, no-wrap
35543 msgid ""
35544 "   if (!has_function)\n"
35545 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35546 "   else {\n"
35547 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35548 "     /* Now it's safe to call\n"
35549 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35550 "     */\n"
35551 "   }\n"
35552 " #else\n"
35553 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35554 " #endif\n"
35555 "  }\n"
35556 "\n"
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:1596
35561 msgid ""
35562 "You may think the above is an awful lot of hassle, and it is.  There are "
35563 "other ways outside of the C linking system to ensure that this kind of "
35564 "incompatibility never arises, such as using package versioning:"
35565 msgstr ""
35566
35567 #. type: verbatim
35568 #: ../src/guestfs.pod:1601
35569 #, no-wrap
35570 msgid ""
35571 " Requires: libguestfs >= 1.0.80\n"
35572 "\n"
35573 msgstr ""
35574
35575 #. type: =head1
35576 #: ../src/guestfs.pod:1603
35577 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35578 msgstr ""
35579
35580 #. type: textblock
35581 #: ../src/guestfs.pod:1605
35582 msgid ""
35583 "A recent feature of the API is the introduction of calls which take optional "
35584 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35585 "takes variable arguments (ie. C<...>), as in this example:"
35586 msgstr ""
35587
35588 #. type: verbatim
35589 #: ../src/guestfs.pod:1610
35590 #, no-wrap
35591 msgid ""
35592 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35593 "\n"
35594 msgstr ""
35595
35596 #. type: textblock
35597 #: ../src/guestfs.pod:1612
35598 msgid ""
35599 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35600 "call with no optional arguments specified:"
35601 msgstr ""
35602
35603 #. type: verbatim
35604 #: ../src/guestfs.pod:1615
35605 #, no-wrap
35606 msgid ""
35607 " guestfs_add_drive_opts (g, filename, -1);\n"
35608 "\n"
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:1617
35613 msgid "With a single optional argument:"
35614 msgstr ""
35615
35616 #. type: verbatim
35617 #: ../src/guestfs.pod:1619
35618 #, no-wrap
35619 msgid ""
35620 " guestfs_add_drive_opts (g, filename,\n"
35621 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35622 "                         -1);\n"
35623 "\n"
35624 msgstr ""
35625
35626 #. type: textblock
35627 #: ../src/guestfs.pod:1623
35628 msgid "With two:"
35629 msgstr ""
35630
35631 #. type: verbatim
35632 #: ../src/guestfs.pod:1625
35633 #, no-wrap
35634 msgid ""
35635 " guestfs_add_drive_opts (g, filename,\n"
35636 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35637 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35638 "                         -1);\n"
35639 "\n"
35640 msgstr ""
35641
35642 #. type: textblock
35643 #: ../src/guestfs.pod:1630
35644 msgid ""
35645 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35646 "happen!"
35647 msgstr ""
35648
35649 #. type: =head2
35650 #: ../src/guestfs.pod:1633
35651 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35652 msgstr ""
35653
35654 #. type: textblock
35655 #: ../src/guestfs.pod:1635
35656 msgid ""
35657 "The second variant has the same name with the suffix C<_va>, which works the "
35658 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35659 "example function, this is declared:"
35660 msgstr ""
35661
35662 #. type: verbatim
35663 #: ../src/guestfs.pod:1639
35664 #, no-wrap
35665 msgid ""
35666 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35667 "                                va_list args);\n"
35668 "\n"
35669 msgstr ""
35670
35671 #. type: =head2
35672 #: ../src/guestfs.pod:1642
35673 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs.pod:1644
35678 msgid ""
35679 "The third variant is useful where you need to construct these calls.  You "
35680 "pass in a structure where you fill in the optional fields.  The structure "
35681 "has a bitmask as the first element which you must set to indicate which "
35682 "fields you have filled in.  For our example function the structure and call "
35683 "are declared:"
35684 msgstr ""
35685
35686 #. type: verbatim
35687 #: ../src/guestfs.pod:1650
35688 #, no-wrap
35689 msgid ""
35690 " struct guestfs_add_drive_opts_argv {\n"
35691 "   uint64_t bitmask;\n"
35692 "   int readonly;\n"
35693 "   const char *format;\n"
35694 "   /* ... */\n"
35695 " };\n"
35696 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35697 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35698 "\n"
35699 msgstr ""
35700
35701 #. type: textblock
35702 #: ../src/guestfs.pod:1659
35703 msgid "You could call it like this:"
35704 msgstr ""
35705
35706 #. type: verbatim
35707 #: ../src/guestfs.pod:1661
35708 #, no-wrap
35709 msgid ""
35710 " struct guestfs_add_drive_opts_argv optargs = {\n"
35711 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35712 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35713 "   .readonly = 1,\n"
35714 "   .format = \"qcow2\"\n"
35715 " };\n"
35716 " \n"
35717 msgstr ""
35718
35719 #. type: verbatim
35720 #: ../src/guestfs.pod:1668
35721 #, no-wrap
35722 msgid ""
35723 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35724 "\n"
35725 msgstr ""
35726
35727 #. type: textblock
35728 #: ../src/guestfs.pod:1676
35729 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:1681
35734 msgid "You do not need to fill in all fields of the structure."
35735 msgstr ""
35736
35737 #. type: textblock
35738 #: ../src/guestfs.pod:1685
35739 msgid ""
35740 "There must be a one-to-one correspondence between fields of the structure "
35741 "that are filled in, and bits set in the bitmask."
35742 msgstr ""
35743
35744 #. type: =head2
35745 #: ../src/guestfs.pod:1690
35746 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35747 msgstr ""
35748
35749 #. type: textblock
35750 #: ../src/guestfs.pod:1692
35751 msgid ""
35752 "In other languages, optional arguments are expressed in the way that is "
35753 "natural for that language.  We refer you to the language-specific "
35754 "documentation for more details on that."
35755 msgstr ""
35756
35757 #. type: textblock
35758 #: ../src/guestfs.pod:1696
35759 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35760 msgstr ""
35761
35762 #. type: =head2
35763 #: ../src/guestfs.pod:1698
35764 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35765 msgstr ""
35766
35767 #. type: textblock
35768 #: ../src/guestfs.pod:1700
35769 msgid ""
35770 "B<Note:> This section documents the generic event mechanism introduced in "
35771 "libguestfs 1.10, which you should use in new code if possible.  The old "
35772 "functions C<guestfs_set_log_message_callback>, "
35773 "C<guestfs_set_subprocess_quit_callback>, "
35774 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35775 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35776 "page.  Because of the ABI guarantee, the old functions continue to work."
35777 msgstr ""
35778
35779 #. type: textblock
35780 #: ../src/guestfs.pod:1709
35781 msgid ""
35782 "Handles generate events when certain things happen, such as log messages "
35783 "being generated, progress messages during long-running operations, or the "
35784 "handle being closed.  The API calls described below let you register a "
35785 "callback to be called when events happen.  You can register multiple "
35786 "callbacks (for the same, different or overlapping sets of events), and "
35787 "individually remove callbacks.  If callbacks are not removed, then they "
35788 "remain in force until the handle is closed."
35789 msgstr ""
35790
35791 #. type: textblock
35792 #: ../src/guestfs.pod:1717
35793 msgid ""
35794 "In the current implementation, events are only generated synchronously: that "
35795 "means that events (and hence callbacks) can only happen while you are in the "
35796 "middle of making another libguestfs call.  The callback is called in the "
35797 "same thread."
35798 msgstr ""
35799
35800 #. type: textblock
35801 #: ../src/guestfs.pod:1722
35802 msgid ""
35803 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35804 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35805 msgstr ""
35806
35807 #. type: =head3
35808 #: ../src/guestfs.pod:1726
35809 msgid "CLASSES OF EVENTS"
35810 msgstr ""
35811
35812 #. type: =item
35813 #: ../src/guestfs.pod:1730
35814 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35815 msgstr ""
35816
35817 #. type: textblock
35818 #: ../src/guestfs.pod:1733
35819 msgid ""
35820 "The callback function will be called while the handle is being closed "
35821 "(synchronously from L</guestfs_close>)."
35822 msgstr ""
35823
35824 #. type: textblock
35825 #: ../src/guestfs.pod:1736
35826 msgid ""
35827 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35828 "handles that are open when the program exits.  This means that this callback "
35829 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35830 "problems in higher-level languages (eg. if your HLL interpreter has already "
35831 "been cleaned up by the time this is called, and if your callback then jumps "
35832 "into some HLL function)."
35833 msgstr ""
35834
35835 #. type: textblock
35836 #: ../src/guestfs.pod:1743
35837 msgid ""
35838 "If no callback is registered: the handle is closed without any callback "
35839 "being invoked."
35840 msgstr ""
35841
35842 #. type: =item
35843 #: ../src/guestfs.pod:1746
35844 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35845 msgstr ""
35846
35847 #. type: textblock
35848 #: ../src/guestfs.pod:1749
35849 msgid ""
35850 "The callback function will be called when the child process quits, either "
35851 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35852 "corresponds to a transition from any state to the CONFIG state)."
35853 msgstr ""
35854
35855 #. type: textblock
35856 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
35857 msgid "If no callback is registered: the event is ignored."
35858 msgstr ""
35859
35860 #. type: =item
35861 #: ../src/guestfs.pod:1755
35862 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:1758
35867 msgid ""
35868 "The callback function will be called when the child process becomes ready "
35869 "first time after it has been launched.  (This corresponds to a transition "
35870 "from LAUNCHING to the READY state)."
35871 msgstr ""
35872
35873 #. type: =item
35874 #: ../src/guestfs.pod:1764
35875 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35876 msgstr ""
35877
35878 #. type: textblock
35879 #: ../src/guestfs.pod:1767
35880 msgid ""
35881 "Some long-running operations can generate progress messages.  If this "
35882 "callback is registered, then it will be called each time a progress message "
35883 "is generated (usually two seconds after the operation started, and three "
35884 "times per second thereafter until it completes, although the frequency may "
35885 "change in future versions)."
35886 msgstr ""
35887
35888 #. type: textblock
35889 #: ../src/guestfs.pod:1773
35890 msgid ""
35891 "The callback receives in the payload four unsigned 64 bit numbers which are "
35892 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35893 msgstr ""
35894
35895 #. type: textblock
35896 #: ../src/guestfs.pod:1776
35897 msgid ""
35898 "The units of C<total> are not defined, although for some operations C<total> "
35899 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35900 "or megabytes), and C<position> may be the portion which has been "
35901 "transferred."
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:1781
35906 msgid "The only defined and stable parts of the API are:"
35907 msgstr ""
35908
35909 #. type: textblock
35910 #: ../src/guestfs.pod:1787
35911 msgid ""
35912 "The callback can display to the user some type of progress bar or indicator "
35913 "which shows the ratio of C<position>:C<total>."
35914 msgstr ""
35915
35916 #. type: textblock
35917 #: ../src/guestfs.pod:1792
35918 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35919 msgstr ""
35920
35921 #. type: textblock
35922 #: ../src/guestfs.pod:1796
35923 msgid ""
35924 "If any progress notification is sent during a call, then a final progress "
35925 "notification is always sent when C<position> = C<total> (I<unless> the call "
35926 "fails with an error)."
35927 msgstr ""
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:1800
35931 msgid ""
35932 "This is to simplify caller code, so callers can easily set the progress "
35933 "indicator to \"100%\" at the end of the operation, without requiring special "
35934 "code to detect this case."
35935 msgstr ""
35936
35937 #. type: textblock
35938 #: ../src/guestfs.pod:1806
35939 msgid ""
35940 "For some calls we are unable to estimate the progress of the call, but we "
35941 "can still generate progress messages to indicate activity.  This is known as "
35942 "\"pulse mode\", and is directly supported by certain progress bar "
35943 "implementations (eg. GtkProgressBar)."
35944 msgstr ""
35945
35946 #. type: textblock
35947 #: ../src/guestfs.pod:1811
35948 msgid ""
35949 "For these calls, zero or more progress messages are generated with "
35950 "C<position = 0> and C<total = 1>, followed by a final message with "
35951 "C<position = total = 1>."
35952 msgstr ""
35953
35954 #. type: textblock
35955 #: ../src/guestfs.pod:1815
35956 msgid ""
35957 "As noted above, if the call fails with an error then the final message may "
35958 "not be generated."
35959 msgstr ""
35960
35961 #. type: textblock
35962 #: ../src/guestfs.pod:1820
35963 msgid ""
35964 "The callback also receives the procedure number (C<proc_nr>) and serial "
35965 "number (C<serial>) of the call.  These are only useful for debugging "
35966 "protocol issues, and the callback can normally ignore them.  The callback "
35967 "may want to print these numbers in error messages or debugging messages."
35968 msgstr ""
35969
35970 #. type: textblock
35971 #: ../src/guestfs.pod:1826
35972 msgid "If no callback is registered: progress messages are discarded."
35973 msgstr ""
35974
35975 #. type: =item
35976 #: ../src/guestfs.pod:1828
35977 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:1831
35982 msgid ""
35983 "The callback function is called whenever a log message is generated by qemu, "
35984 "the appliance kernel, guestfsd (daemon), or utility programs."
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:1834
35989 msgid ""
35990 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
35991 "(L</guestfs_launch>) then additional debug messages are generated."
35992 msgstr ""
35993
35994 #. type: textblock
35995 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
35996 msgid ""
35997 "If no callback is registered: the messages are discarded unless the verbose "
35998 "flag is set in which case they are sent to stderr.  You can override the "
35999 "printing of verbose messages to stderr by setting up a callback."
36000 msgstr ""
36001
36002 #. type: =item
36003 #: ../src/guestfs.pod:1842
36004 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36005 msgstr ""
36006
36007 #. type: textblock
36008 #: ../src/guestfs.pod:1845
36009 msgid ""
36010 "The callback function is called whenever a log message is generated by the "
36011 "library part of libguestfs."
36012 msgstr ""
36013
36014 #. type: textblock
36015 #: ../src/guestfs.pod:1848
36016 msgid ""
36017 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36018 "messages are generated."
36019 msgstr ""
36020
36021 #. type: =item
36022 #: ../src/guestfs.pod:1856
36023 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36024 msgstr ""
36025
36026 #. type: textblock
36027 #: ../src/guestfs.pod:1859
36028 msgid ""
36029 "The callback function is called whenever a trace message is generated.  This "
36030 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36031 msgstr ""
36032
36033 #. type: textblock
36034 #: ../src/guestfs.pod:1862
36035 msgid ""
36036 "If no callback is registered: the messages are sent to stderr.  You can "
36037 "override the printing of trace messages to stderr by setting up a callback."
36038 msgstr ""
36039
36040 #. type: =item
36041 #: ../src/guestfs.pod:1866
36042 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36043 msgstr ""
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:1869
36047 msgid "The callback function is called whenever a libguestfs function is entered."
36048 msgstr ""
36049
36050 #. type: textblock
36051 #: ../src/guestfs.pod:1872
36052 msgid ""
36053 "The payload is a string which contains the name of the function that we are "
36054 "entering (not including C<guestfs_> prefix)."
36055 msgstr ""
36056
36057 #. type: textblock
36058 #: ../src/guestfs.pod:1875
36059 msgid ""
36060 "Note that libguestfs functions can call themselves, so you may see many "
36061 "events from a single call.  A few libguestfs functions do not generate this "
36062 "event."
36063 msgstr ""
36064
36065 #. type: =head3
36066 #: ../src/guestfs.pod:1883
36067 msgid "guestfs_set_event_callback"
36068 msgstr ""
36069
36070 #. type: verbatim
36071 #: ../src/guestfs.pod:1885
36072 #, no-wrap
36073 msgid ""
36074 " int guestfs_set_event_callback (guestfs_h *g,\n"
36075 "                                 guestfs_event_callback cb,\n"
36076 "                                 uint64_t event_bitmask,\n"
36077 "                                 int flags,\n"
36078 "                                 void *opaque);\n"
36079 "\n"
36080 msgstr ""
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:1891
36084 msgid ""
36085 "This function registers a callback (C<cb>) for all event classes in the "
36086 "C<event_bitmask>."
36087 msgstr ""
36088
36089 #. type: textblock
36090 #: ../src/guestfs.pod:1894
36091 msgid ""
36092 "For example, to register for all log message events, you could call this "
36093 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36094 "To register a single callback for all possible classes of events, use "
36095 "C<GUESTFS_EVENT_ALL>."
36096 msgstr ""
36097
36098 #. type: textblock
36099 #: ../src/guestfs.pod:1900
36100 msgid "C<flags> should always be passed as 0."
36101 msgstr ""
36102
36103 #. type: textblock
36104 #: ../src/guestfs.pod:1902
36105 msgid ""
36106 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36107 "it for any purpose."
36108 msgstr ""
36109
36110 #. type: textblock
36111 #: ../src/guestfs.pod:1905
36112 msgid ""
36113 "The return value is the event handle (an integer) which you can use to "
36114 "delete the callback (see below)."
36115 msgstr ""
36116
36117 #. type: textblock
36118 #: ../src/guestfs.pod:1908
36119 msgid ""
36120 "If there is an error, this function returns C<-1>, and sets the error in the "
36121 "handle in the usual way (see L</guestfs_last_error> etc.)"
36122 msgstr ""
36123
36124 #. type: textblock
36125 #: ../src/guestfs.pod:1911
36126 msgid ""
36127 "Callbacks remain in effect until they are deleted, or until the handle is "
36128 "closed."
36129 msgstr ""
36130
36131 #. type: textblock
36132 #: ../src/guestfs.pod:1914
36133 msgid ""
36134 "In the case where multiple callbacks are registered for a particular event "
36135 "class, all of the callbacks are called.  The order in which multiple "
36136 "callbacks are called is not defined."
36137 msgstr ""
36138
36139 #. type: =head3
36140 #: ../src/guestfs.pod:1918
36141 msgid "guestfs_delete_event_callback"
36142 msgstr ""
36143
36144 #. type: verbatim
36145 #: ../src/guestfs.pod:1920
36146 #, no-wrap
36147 msgid ""
36148 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36149 "\n"
36150 msgstr ""
36151
36152 #. type: textblock
36153 #: ../src/guestfs.pod:1922
36154 msgid ""
36155 "Delete a callback that was previously registered.  C<event_handle> should be "
36156 "the integer that was returned by a previous call to "
36157 "C<guestfs_set_event_callback> on the same handle."
36158 msgstr ""
36159
36160 #. type: =head3
36161 #: ../src/guestfs.pod:1926
36162 msgid "guestfs_event_callback"
36163 msgstr ""
36164
36165 #. type: verbatim
36166 #: ../src/guestfs.pod:1928
36167 #, no-wrap
36168 msgid ""
36169 " typedef void (*guestfs_event_callback) (\n"
36170 "                  guestfs_h *g,\n"
36171 "                  void *opaque,\n"
36172 "                  uint64_t event,\n"
36173 "                  int event_handle,\n"
36174 "                  int flags,\n"
36175 "                  const char *buf, size_t buf_len,\n"
36176 "                  const uint64_t *array, size_t array_len);\n"
36177 "\n"
36178 msgstr ""
36179
36180 #. type: textblock
36181 #: ../src/guestfs.pod:1937
36182 msgid "This is the type of the event callback function that you have to provide."
36183 msgstr ""
36184
36185 #. type: textblock
36186 #: ../src/guestfs.pod:1940
36187 msgid ""
36188 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36189 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36190 "handle, and C<flags> which in the current API you should ignore."
36191 msgstr ""
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:1944
36195 msgid ""
36196 "The remaining parameters contain the event payload (if any).  Each event may "
36197 "contain a payload, which usually relates to the event class, but for future "
36198 "proofing your code should be written to handle any payload for any event "
36199 "class."
36200 msgstr ""
36201
36202 #. type: textblock
36203 #: ../src/guestfs.pod:1949
36204 msgid ""
36205 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36206 "there is no message buffer).  Note that this message buffer can contain "
36207 "arbitrary 8 bit data, including NUL bytes."
36208 msgstr ""
36209
36210 #. type: textblock
36211 #: ../src/guestfs.pod:1953
36212 msgid ""
36213 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36214 "moment this is only used for progress messages."
36215 msgstr ""
36216
36217 #. type: =head3
36218 #: ../src/guestfs.pod:1956
36219 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:1958
36224 msgid ""
36225 "One motivation for the generic event API was to allow GUI programs to "
36226 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36227 "unconditionally to C<stderr>."
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../src/guestfs.pod:1962
36232 msgid ""
36233 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36234 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36235 "messages are not events; you must capture error messages separately)."
36236 msgstr ""
36237
36238 #. type: textblock
36239 #: ../src/guestfs.pod:1967
36240 msgid ""
36241 "Programs have to set up a callback to capture the classes of events of "
36242 "interest:"
36243 msgstr ""
36244
36245 #. type: verbatim
36246 #: ../src/guestfs.pod:1970
36247 #, no-wrap
36248 msgid ""
36249 " int eh =\n"
36250 "   guestfs_set_event_callback\n"
36251 "     (g, message_callback,\n"
36252 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36253 "      GUESTFS_EVENT_TRACE,\n"
36254 "      0, NULL) == -1)\n"
36255 " if (eh == -1) {\n"
36256 "   // handle error in the usual way\n"
36257 " }\n"
36258 "\n"
36259 msgstr ""
36260
36261 #. type: textblock
36262 #: ../src/guestfs.pod:1980
36263 msgid ""
36264 "The callback can then direct messages to the appropriate place.  In this "
36265 "example, messages are directed to syslog:"
36266 msgstr ""
36267
36268 #. type: verbatim
36269 #: ../src/guestfs.pod:1983
36270 #, no-wrap
36271 msgid ""
36272 " static void\n"
36273 " message_callback (\n"
36274 "         guestfs_h *g,\n"
36275 "         void *opaque,\n"
36276 "         uint64_t event,\n"
36277 "         int event_handle,\n"
36278 "         int flags,\n"
36279 "         const char *buf, size_t buf_len,\n"
36280 "         const uint64_t *array, size_t array_len)\n"
36281 " {\n"
36282 "   const int priority = LOG_USER|LOG_INFO;\n"
36283 "   if (buf_len > 0)\n"
36284 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36285 " }\n"
36286 "\n"
36287 msgstr ""
36288
36289 #. type: =head1
36290 #: ../src/guestfs.pod:1998
36291 msgid "CANCELLING LONG TRANSFERS"
36292 msgstr ""
36293
36294 #. type: textblock
36295 #: ../src/guestfs.pod:2000
36296 msgid ""
36297 "Some operations can be cancelled by the caller while they are in progress.  "
36298 "Currently only operations that involve uploading or downloading data can be "
36299 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36300 "parameters in the generator)."
36301 msgstr ""
36302
36303 #. type: =head2
36304 #: ../src/guestfs.pod:2005
36305 msgid "guestfs_user_cancel"
36306 msgstr ""
36307
36308 #. type: verbatim
36309 #: ../src/guestfs.pod:2007
36310 #, no-wrap
36311 msgid ""
36312 " void guestfs_user_cancel (guestfs_h *g);\n"
36313 "\n"
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:2009
36318 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
36319 msgstr ""
36320
36321 #. type: textblock
36322 #: ../src/guestfs.pod:2012
36323 msgid ""
36324 "Unlike most other libguestfs calls, this function is signal safe and thread "
36325 "safe.  You can call it from a signal handler or from another thread, without "
36326 "needing to do any locking."
36327 msgstr ""
36328
36329 #. type: textblock
36330 #: ../src/guestfs.pod:2016
36331 msgid ""
36332 "The transfer that was in progress (if there is one) will stop shortly "
36333 "afterwards, and will return an error.  The errno (see "
36334 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36335 "out if the operation was cancelled or failed because of another error."
36336 msgstr ""
36337
36338 #. type: textblock
36339 #: ../src/guestfs.pod:2022
36340 msgid ""
36341 "No cleanup is performed: for example, if a file was being uploaded then "
36342 "after cancellation there may be a partially uploaded file.  It is the "
36343 "caller's responsibility to clean up if necessary."
36344 msgstr ""
36345
36346 #. type: textblock
36347 #: ../src/guestfs.pod:2026
36348 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36349 msgstr ""
36350
36351 #. type: textblock
36352 #: ../src/guestfs.pod:2028
36353 msgid ""
36354 "In an interactive text-based program, you might call it from a C<SIGINT> "
36355 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36356 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36357 "receive the C<^C> signal)."
36358 msgstr ""
36359
36360 #. type: textblock
36361 #: ../src/guestfs.pod:2033
36362 msgid ""
36363 "In a graphical program, when the main thread is displaying a progress bar "
36364 "with a cancel button, wire up the cancel button to call this function."
36365 msgstr ""
36366
36367 #. type: =head1
36368 #: ../src/guestfs.pod:2037
36369 msgid "PRIVATE DATA AREA"
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../src/guestfs.pod:2039
36374 msgid ""
36375 "You can attach named pieces of private data to the libguestfs handle, fetch "
36376 "them by name, and walk over them, for the lifetime of the handle.  This is "
36377 "called the private data area and is only available from the C API."
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:2044
36382 msgid "To attach a named piece of data, use the following call:"
36383 msgstr ""
36384
36385 #. type: verbatim
36386 #: ../src/guestfs.pod:2046
36387 #, no-wrap
36388 msgid ""
36389 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36390 "\n"
36391 msgstr ""
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:2048
36395 msgid ""
36396 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36397 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36398 "overwritten."
36399 msgstr ""
36400
36401 #. type: textblock
36402 #: ../src/guestfs.pod:2052
36403 msgid ""
36404 "You can use any C<key> you want, but your key should I<not> start with an "
36405 "underscore character.  Keys beginning with an underscore character are "
36406 "reserved for internal libguestfs purposes (eg. for implementing language "
36407 "bindings).  It is recommended that you prefix the key with some unique "
36408 "string to avoid collisions with other users."
36409 msgstr ""
36410
36411 #. type: textblock
36412 #: ../src/guestfs.pod:2058
36413 msgid "To retrieve the pointer, use:"
36414 msgstr ""
36415
36416 #. type: verbatim
36417 #: ../src/guestfs.pod:2060
36418 #, no-wrap
36419 msgid ""
36420 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36421 "\n"
36422 msgstr ""
36423
36424 #. type: textblock
36425 #: ../src/guestfs.pod:2062
36426 msgid ""
36427 "This function returns C<NULL> if either no data is found associated with "
36428 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36429 "C<NULL>."
36430 msgstr ""
36431
36432 #. type: textblock
36433 #: ../src/guestfs.pod:2066
36434 msgid ""
36435 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36436 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36437 "all.  In particular, libguestfs does I<not> try to free the data when the "
36438 "handle is closed.  If the data must be freed, then the caller must either "
36439 "free it before calling L</guestfs_close> or must set up a close callback to "
36440 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36441 msgstr ""
36442
36443 #. type: textblock
36444 #: ../src/guestfs.pod:2073
36445 msgid "To walk over all entries, use these two functions:"
36446 msgstr ""
36447
36448 #. type: verbatim
36449 #: ../src/guestfs.pod:2075
36450 #, no-wrap
36451 msgid ""
36452 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36453 "\n"
36454 msgstr ""
36455
36456 #. type: verbatim
36457 #: ../src/guestfs.pod:2077
36458 #, no-wrap
36459 msgid ""
36460 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36461 "\n"
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:2079
36466 msgid ""
36467 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36468 "not have any particular meaning -- keys are not returned in any defined "
36469 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36470 "corresponding data pointer is returned from the function.  C<NULL> is "
36471 "returned if there are no keys stored in the handle."
36472 msgstr ""
36473
36474 #. type: textblock
36475 #: ../src/guestfs.pod:2085
36476 msgid ""
36477 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36478 "value of this function is also C<NULL> is there are no further entries to "
36479 "return."
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:2089
36484 msgid "Notes about walking over entries:"
36485 msgstr ""
36486
36487 #. type: textblock
36488 #: ../src/guestfs.pod:2095
36489 msgid "You must not call C<guestfs_set_private> while walking over the entries."
36490 msgstr ""
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:2100
36494 msgid ""
36495 "The handle maintains an internal iterator which is reset when you call "
36496 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36497 "call C<guestfs_set_private>."
36498 msgstr ""
36499
36500 #. type: textblock
36501 #: ../src/guestfs.pod:2106
36502 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36503 msgstr ""
36504
36505 #. type: verbatim
36506 #: ../src/guestfs.pod:2108
36507 #, no-wrap
36508 msgid ""
36509 " guestfs_set_private (g, key, NULL);\n"
36510 "\n"
36511 msgstr ""
36512
36513 #. type: textblock
36514 #: ../src/guestfs.pod:2110
36515 msgid "then that C<key> is not returned when walking."
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:2114
36520 msgid ""
36521 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36522 "C<guestfs_next_private> or C<guestfs_set_private>."
36523 msgstr ""
36524
36525 #. type: textblock
36526 #: ../src/guestfs.pod:2120
36527 msgid ""
36528 "The following example code shows how to print all keys and data pointers "
36529 "that are associated with the handle C<g>:"
36530 msgstr ""
36531
36532 #. type: verbatim
36533 #: ../src/guestfs.pod:2123
36534 #, no-wrap
36535 msgid ""
36536 " const char *key;\n"
36537 " void *data = guestfs_first_private (g, &key);\n"
36538 " while (data != NULL)\n"
36539 "   {\n"
36540 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36541 "     data = guestfs_next_private (g, &key);\n"
36542 "   }\n"
36543 "\n"
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:2131
36548 msgid ""
36549 "More commonly you are only interested in keys that begin with an "
36550 "application-specific prefix C<foo_>.  Modify the loop like so:"
36551 msgstr ""
36552
36553 #. type: verbatim
36554 #: ../src/guestfs.pod:2134
36555 #, no-wrap
36556 msgid ""
36557 " const char *key;\n"
36558 " void *data = guestfs_first_private (g, &key);\n"
36559 " while (data != NULL)\n"
36560 "   {\n"
36561 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36562 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36563 "     data = guestfs_next_private (g, &key);\n"
36564 "   }\n"
36565 "\n"
36566 msgstr ""
36567
36568 #. type: textblock
36569 #: ../src/guestfs.pod:2143
36570 msgid ""
36571 "If you need to modify keys while walking, then you have to jump back to the "
36572 "beginning of the loop.  For example, to delete all keys prefixed with "
36573 "C<foo_>:"
36574 msgstr ""
36575
36576 #. type: verbatim
36577 #: ../src/guestfs.pod:2147
36578 #, no-wrap
36579 msgid ""
36580 "  const char *key;\n"
36581 "  void *data;\n"
36582 " again:\n"
36583 "  data = guestfs_first_private (g, &key);\n"
36584 "  while (data != NULL)\n"
36585 "    {\n"
36586 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36587 "        {\n"
36588 "          guestfs_set_private (g, key, NULL);\n"
36589 "          /* note that 'key' pointer is now invalid, and so is\n"
36590 "             the internal iterator */\n"
36591 "          goto again;\n"
36592 "        }\n"
36593 "      data = guestfs_next_private (g, &key);\n"
36594 "    }\n"
36595 "\n"
36596 msgstr ""
36597
36598 #. type: textblock
36599 #: ../src/guestfs.pod:2163
36600 msgid ""
36601 "Note that the above loop is guaranteed to terminate because the keys are "
36602 "being deleted, but other manipulations of keys within the loop might not "
36603 "terminate unless you also maintain an indication of which keys have been "
36604 "visited."
36605 msgstr ""
36606
36607 #. type: =head1
36608 #: ../src/guestfs.pod:2168
36609 msgid "SYSTEMTAP"
36610 msgstr ""
36611
36612 #. type: textblock
36613 #: ../src/guestfs.pod:2170
36614 msgid ""
36615 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
36616 "true of any library, not just libguestfs.  However libguestfs also contains "
36617 "static markers to help in probing internal operations."
36618 msgstr ""
36619
36620 #. type: textblock
36621 #: ../src/guestfs.pod:2174
36622 msgid "You can list all the static markers by doing:"
36623 msgstr ""
36624
36625 #. type: verbatim
36626 #: ../src/guestfs.pod:2176
36627 #, no-wrap
36628 msgid ""
36629 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
36630 "              .provider(\"guestfs\").mark(\"*\")'\n"
36631 "\n"
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:2179
36636 msgid ""
36637 "B<Note:> These static markers are I<not> part of the stable API and may "
36638 "change in future versions."
36639 msgstr ""
36640
36641 #. type: =head2
36642 #: ../src/guestfs.pod:2182
36643 msgid "SYSTEMTAP SCRIPT EXAMPLE"
36644 msgstr ""
36645
36646 #. type: textblock
36647 #: ../src/guestfs.pod:2184
36648 msgid ""
36649 "This script contains examples of displaying both the static markers and some "
36650 "ordinary C entry points:"
36651 msgstr ""
36652
36653 #. type: verbatim
36654 #: ../src/guestfs.pod:2187
36655 #, no-wrap
36656 msgid ""
36657 " global last;\n"
36658 " \n"
36659 msgstr ""
36660
36661 #. type: verbatim
36662 #: ../src/guestfs.pod:2189
36663 #, no-wrap
36664 msgid ""
36665 " function display_time () {\n"
36666 "       now = gettimeofday_us ();\n"
36667 "       delta = 0;\n"
36668 "       if (last > 0)\n"
36669 "             delta = now - last;\n"
36670 "       last = now;\n"
36671 " \n"
36672 msgstr ""
36673
36674 #. type: verbatim
36675 #: ../src/guestfs.pod:2196
36676 #, no-wrap
36677 msgid ""
36678 "       printf (\"%d (+%d):\", now, delta);\n"
36679 " }\n"
36680 " \n"
36681 msgstr ""
36682
36683 #. type: verbatim
36684 #: ../src/guestfs.pod:2199
36685 #, no-wrap
36686 msgid ""
36687 " probe begin {\n"
36688 "       last = 0;\n"
36689 "       printf (\"ready\\n\");\n"
36690 " }\n"
36691 " \n"
36692 msgstr ""
36693
36694 #. type: verbatim
36695 #: ../src/guestfs.pod:2204
36696 #, no-wrap
36697 msgid ""
36698 " /* Display all calls to static markers. */\n"
36699 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
36700 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
36701 "       display_time();\n"
36702 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
36703 " }\n"
36704 " \n"
36705 msgstr ""
36706
36707 #. type: verbatim
36708 #: ../src/guestfs.pod:2211
36709 #, no-wrap
36710 msgid ""
36711 " /* Display all calls to guestfs_mkfs* functions. */\n"
36712 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
36713 "           .function(\"guestfs_mkfs*\") ? {\n"
36714 "       display_time();\n"
36715 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
36716 " }\n"
36717 "\n"
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../src/guestfs.pod:2218
36722 msgid ""
36723 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
36724 "program.  Note that you either have to be root, or you have to add yourself "
36725 "to several special stap groups.  Consult the systemtap documentation for "
36726 "more information."
36727 msgstr ""
36728
36729 #. type: verbatim
36730 #: ../src/guestfs.pod:2223
36731 #, no-wrap
36732 msgid ""
36733 " # stap /tmp/test.stap\n"
36734 " ready\n"
36735 "\n"
36736 msgstr ""
36737
36738 #. type: textblock
36739 #: ../src/guestfs.pod:2226
36740 msgid "In another terminal, run a guestfish command such as this:"
36741 msgstr ""
36742
36743 #. type: textblock
36744 #: ../src/guestfs.pod:2230
36745 msgid "In the first terminal, stap trace output similar to this is shown:"
36746 msgstr ""
36747
36748 #. type: verbatim
36749 #: ../src/guestfs.pod:2232
36750 #, no-wrap
36751 msgid ""
36752 " 1318248056692655 (+0):\tlaunch_start\n"
36753 " 1318248056692850 (+195):       launch_build_appliance_start\n"
36754 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
36755 " 1318248056838059 (+19774):     launch_run_qemu\n"
36756 " 1318248061071167 (+4233108):   launch_end\n"
36757 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
36758 "device=0x1024e60\n"
36759 "\n"
36760 msgstr ""
36761
36762 #. type: =end
36763 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
36764 msgid "html"
36765 msgstr ""
36766
36767 #. type: textblock
36768 #: ../src/guestfs.pod:2241
36769 msgid ""
36770 "<!-- old anchor for the next section --> <a "
36771 "name=\"state_machine_and_low_level_event_api\"/>"
36772 msgstr ""
36773
36774 #. type: =head1
36775 #: ../src/guestfs.pod:2246
36776 msgid "ARCHITECTURE"
36777 msgstr ""
36778
36779 #. type: textblock
36780 #: ../src/guestfs.pod:2248
36781 msgid ""
36782 "Internally, libguestfs is implemented by running an appliance (a special "
36783 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36784 "process of the main program."
36785 msgstr ""
36786
36787 #. type: verbatim
36788 #: ../src/guestfs.pod:2252
36789 #, no-wrap
36790 msgid ""
36791 "  ___________________\n"
36792 " /                   \\\n"
36793 " | main program      |\n"
36794 " |                   |\n"
36795 " |                   |           child process / appliance\n"
36796 " |                   |           __________________________\n"
36797 " |                   |          / qemu                     \\\n"
36798 " +-------------------+   RPC    |      +-----------------+ |\n"
36799 " | libguestfs     <--------------------> guestfsd        | |\n"
36800 " |                   |          |      +-----------------+ |\n"
36801 " \\___________________/          |      | Linux kernel    | |\n"
36802 "                                |      +--^--------------+ |\n"
36803 "                                \\_________|________________/\n"
36804 "                                          |\n"
36805 "                                   _______v______\n"
36806 "                                  /              \\\n"
36807 "                                  | Device or    |\n"
36808 "                                  | disk image   |\n"
36809 "                                  \\______________/\n"
36810 "\n"
36811 msgstr ""
36812
36813 #. type: textblock
36814 #: ../src/guestfs.pod:2272
36815 msgid ""
36816 "The library, linked to the main program, creates the child process and hence "
36817 "the appliance in the L</guestfs_launch> function."
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../src/guestfs.pod:2275
36822 msgid ""
36823 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36824 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36825 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36826 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36827 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36828 "attached to the qemu process which translates device access by the "
36829 "appliance's Linux kernel into accesses to the image."
36830 msgstr ""
36831
36832 #. type: textblock
36833 #: ../src/guestfs.pod:2284
36834 msgid ""
36835 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36836 "Although the disk image you are attached to might also be used by some "
36837 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36838 "care if both libguestfs's qemu process and your virtual machine are trying "
36839 "to update the disk image at the same time, since these usually results in "
36840 "massive disk corruption)."
36841 msgstr ""
36842
36843 #. type: =head1
36844 #: ../src/guestfs.pod:2291
36845 msgid "STATE MACHINE"
36846 msgstr ""
36847
36848 #. type: textblock
36849 #: ../src/guestfs.pod:2293
36850 msgid "libguestfs uses a state machine to model the child process:"
36851 msgstr ""
36852
36853 #. type: verbatim
36854 #: ../src/guestfs.pod:2295
36855 #, no-wrap
36856 msgid ""
36857 "                         |\n"
36858 "                    guestfs_create\n"
36859 "                         |\n"
36860 "                         |\n"
36861 "                     ____V_____\n"
36862 "                    /          \\\n"
36863 "                    |  CONFIG  |\n"
36864 "                    \\__________/\n"
36865 "                     ^ ^   ^  \\\n"
36866 "                    /  |    \\  \\ guestfs_launch\n"
36867 "                   /   |    _\\__V______\n"
36868 "                  /    |   /           \\\n"
36869 "                 /     |   | LAUNCHING |\n"
36870 "                /      |   \\___________/\n"
36871 "               /       |       /\n"
36872 "              /        |  guestfs_launch\n"
36873 "             /         |     /\n"
36874 "    ______  /        __|____V\n"
36875 "   /      \\ ------> /        \\\n"
36876 "   | BUSY |         | READY  |\n"
36877 "   \\______/ <------ \\________/\n"
36878 "\n"
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:2317
36883 msgid ""
36884 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36885 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36886 "(3) alternating between READY and BUSY as commands are issued to, and "
36887 "carried out by, the child process."
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../src/guestfs.pod:2322
36892 msgid ""
36893 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36894 "asynchronously at any time (eg. due to some internal error), and that causes "
36895 "the state to transition back to CONFIG."
36896 msgstr ""
36897
36898 #. type: textblock
36899 #: ../src/guestfs.pod:2326
36900 msgid ""
36901 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36902 "issued when in the CONFIG state."
36903 msgstr ""
36904
36905 #. type: textblock
36906 #: ../src/guestfs.pod:2329
36907 msgid ""
36908 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36909 "L</guestfs_launch> blocks until the child process is READY to accept "
36910 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36911 "moves the state from CONFIG to LAUNCHING while it is running."
36912 msgstr ""
36913
36914 #. type: textblock
36915 #: ../src/guestfs.pod:2335
36916 msgid ""
36917 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36918 "state.  These API calls block waiting for the command to be carried out "
36919 "(ie. the state to transition to BUSY and then back to READY).  There are no "
36920 "non-blocking versions, and no way to issue more than one command per handle "
36921 "at the same time."
36922 msgstr ""
36923
36924 #. type: textblock
36925 #: ../src/guestfs.pod:2341
36926 msgid ""
36927 "Finally, the child process sends asynchronous messages back to the main "
36928 "program, such as kernel log messages.  You can register a callback to "
36929 "receive these messages."
36930 msgstr ""
36931
36932 #. type: =head1
36933 #: ../src/guestfs.pod:2345
36934 msgid "INTERNALS"
36935 msgstr ""
36936
36937 #. type: =head2
36938 #: ../src/guestfs.pod:2347
36939 msgid "APPLIANCE BOOT PROCESS"
36940 msgstr ""
36941
36942 #. type: textblock
36943 #: ../src/guestfs.pod:2349
36944 msgid ""
36945 "This process has evolved and continues to evolve.  The description here "
36946 "corresponds only to the current version of libguestfs and is provided for "
36947 "information only."
36948 msgstr ""
36949
36950 #. type: textblock
36951 #: ../src/guestfs.pod:2353
36952 msgid ""
36953 "In order to follow the stages involved below, enable libguestfs debugging "
36954 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36955 msgstr ""
36956
36957 #. type: =item
36958 #: ../src/guestfs.pod:2358
36959 msgid "Create the appliance"
36960 msgstr ""
36961
36962 #. type: textblock
36963 #: ../src/guestfs.pod:2360
36964 msgid ""
36965 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36966 "initrd and the appliance."
36967 msgstr ""
36968
36969 #. type: textblock
36970 #: ../src/guestfs.pod:2363
36971 msgid ""
36972 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36973 "directory if C<TMPDIR> is set)."
36974 msgstr ""
36975
36976 #. type: textblock
36977 #: ../src/guestfs.pod:2366
36978 msgid ""
36979 "For a complete description of how the appliance is created and cached, read "
36980 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36981 msgstr ""
36982
36983 #. type: =item
36984 #: ../src/guestfs.pod:2370
36985 msgid "Start qemu and boot the kernel"
36986 msgstr ""
36987
36988 #. type: textblock
36989 #: ../src/guestfs.pod:2372
36990 msgid "qemu is invoked to boot the kernel."
36991 msgstr ""
36992
36993 #. type: =item
36994 #: ../src/guestfs.pod:2374
36995 msgid "Run the initrd"
36996 msgstr ""
36997
36998 #. type: textblock
36999 #: ../src/guestfs.pod:2376
37000 msgid ""
37001 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
37002 "appliance.  The purpose of the initrd is to load enough kernel modules in "
37003 "order that the appliance itself can be mounted and started."
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../src/guestfs.pod:2380
37008 msgid ""
37009 "The initrd is a cpio archive called "
37010 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
37011 msgstr ""
37012
37013 #. type: textblock
37014 #: ../src/guestfs.pod:2383
37015 msgid ""
37016 "When the initrd has started you will see messages showing that kernel "
37017 "modules are being loaded, similar to this:"
37018 msgstr ""
37019
37020 #. type: verbatim
37021 #: ../src/guestfs.pod:2386
37022 #, no-wrap
37023 msgid ""
37024 " febootstrap: ext2 mini initrd starting up\n"
37025 " febootstrap: mounting /sys\n"
37026 " febootstrap: internal insmod libcrc32c.ko\n"
37027 " febootstrap: internal insmod crc32c-intel.ko\n"
37028 "\n"
37029 msgstr ""
37030
37031 #. type: =item
37032 #: ../src/guestfs.pod:2391
37033 msgid "Find and mount the appliance device"
37034 msgstr ""
37035
37036 #. type: textblock
37037 #: ../src/guestfs.pod:2393
37038 msgid ""
37039 "The appliance is a sparse file containing an ext2 filesystem which contains "
37040 "a familiar (although reduced in size) Linux operating system.  It would "
37041 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:2397
37046 msgid ""
37047 "The regular disks being inspected by libguestfs are the first devices "
37048 "exposed by qemu (eg. as C</dev/vda>)."
37049 msgstr ""
37050
37051 #. type: textblock
37052 #: ../src/guestfs.pod:2400
37053 msgid ""
37054 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37055 "there was only one regular disk)."
37056 msgstr ""
37057
37058 #. type: textblock
37059 #: ../src/guestfs.pod:2403
37060 msgid ""
37061 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37062 "and switch root into the appliance, and run C</init> from the appliance."
37063 msgstr ""
37064
37065 #. type: textblock
37066 #: ../src/guestfs.pod:2407
37067 msgid "If this works successfully you will see messages such as:"
37068 msgstr ""
37069
37070 #. type: verbatim
37071 #: ../src/guestfs.pod:2409
37072 #, no-wrap
37073 msgid ""
37074 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37075 " febootstrap: creating /dev/root as block special 252:16\n"
37076 " febootstrap: mounting new root on /root\n"
37077 " febootstrap: chroot\n"
37078 " Starting /init script ...\n"
37079 "\n"
37080 msgstr ""
37081
37082 #. type: textblock
37083 #: ../src/guestfs.pod:2415
37084 msgid ""
37085 "Note that C<Starting /init script ...> indicates that the appliance's init "
37086 "script is now running."
37087 msgstr ""
37088
37089 #. type: =item
37090 #: ../src/guestfs.pod:2418
37091 msgid "Initialize the appliance"
37092 msgstr ""
37093
37094 #. type: textblock
37095 #: ../src/guestfs.pod:2420
37096 msgid ""
37097 "The appliance itself now initializes itself.  This involves starting certain "
37098 "processes like C<udev>, possibly printing some debug information, and "
37099 "finally running the daemon (C<guestfsd>)."
37100 msgstr ""
37101
37102 #. type: =item
37103 #: ../src/guestfs.pod:2424
37104 msgid "The daemon"
37105 msgstr ""
37106
37107 #. type: textblock
37108 #: ../src/guestfs.pod:2426
37109 msgid ""
37110 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
37111 "should see:"
37112 msgstr ""
37113
37114 #. type: verbatim
37115 #: ../src/guestfs.pod:2429
37116 #, no-wrap
37117 msgid ""
37118 " verbose daemon enabled\n"
37119 "\n"
37120 msgstr ""
37121
37122 #. type: textblock
37123 #: ../src/guestfs.pod:2431
37124 msgid ""
37125 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37126 "connected on the other end to the library."
37127 msgstr ""
37128
37129 #. type: textblock
37130 #: ../src/guestfs.pod:2434
37131 msgid ""
37132 "The daemon connects to this port (and hence to the library) and sends a four "
37133 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37134 "protocol (see below)."
37135 msgstr ""
37136
37137 #. type: =head2
37138 #: ../src/guestfs.pod:2440
37139 msgid "COMMUNICATION PROTOCOL"
37140 msgstr ""
37141
37142 #. type: textblock
37143 #: ../src/guestfs.pod:2442
37144 msgid ""
37145 "Don't rely on using this protocol directly.  This section documents how it "
37146 "currently works, but it may change at any time."
37147 msgstr ""
37148
37149 #. type: textblock
37150 #: ../src/guestfs.pod:2445
37151 msgid ""
37152 "The protocol used to talk between the library and the daemon running inside "
37153 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37154 "1014, RFC 1832, RFC 4506)."
37155 msgstr ""
37156
37157 #. type: textblock
37158 #: ../src/guestfs.pod:2449
37159 msgid ""
37160 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37161 "this file is automatically generated)."
37162 msgstr ""
37163
37164 #. type: textblock
37165 #: ../src/guestfs.pod:2452
37166 msgid ""
37167 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37168 "and C<FileOut> parameters, which are handled with very simple request/reply "
37169 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37170 "parameters, which use the same request and reply messages, but they may also "
37171 "be followed by files sent using a chunked encoding."
37172 msgstr ""
37173
37174 #. type: =head3
37175 #: ../src/guestfs.pod:2459
37176 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:2461
37181 msgid "For ordinary functions, the request message is:"
37182 msgstr ""
37183
37184 #. type: verbatim
37185 #: ../src/guestfs.pod:2463
37186 #, no-wrap
37187 msgid ""
37188 " total length (header + arguments,\n"
37189 "      but not including the length word itself)\n"
37190 " struct guestfs_message_header (encoded as XDR)\n"
37191 " struct guestfs_<foo>_args (encoded as XDR)\n"
37192 "\n"
37193 msgstr ""
37194
37195 #. type: textblock
37196 #: ../src/guestfs.pod:2468
37197 msgid ""
37198 "The total length field allows the daemon to allocate a fixed size buffer "
37199 "into which it slurps the rest of the message.  As a result, the total length "
37200 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37201 "effective size of any request is limited to somewhere under this size."
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:2474
37206 msgid ""
37207 "Note also that many functions don't take any arguments, in which case the "
37208 "C<guestfs_I<foo>_args> is completely omitted."
37209 msgstr ""
37210
37211 #. type: textblock
37212 #: ../src/guestfs.pod:2477
37213 msgid ""
37214 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37215 "receiver knows what type of args structure to expect, or none at all."
37216 msgstr ""
37217
37218 #. type: textblock
37219 #: ../src/guestfs.pod:2481
37220 msgid ""
37221 "For functions that take optional arguments, the optional arguments are "
37222 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37223 "arguments.  A bitmask in the header indicates which optional arguments are "
37224 "meaningful.  The bitmask is also checked to see if it contains bits set "
37225 "which the daemon does not know about (eg. if more optional arguments were "
37226 "added in a later version of the library), and this causes the call to be "
37227 "rejected."
37228 msgstr ""
37229
37230 #. type: textblock
37231 #: ../src/guestfs.pod:2489
37232 msgid "The reply message for ordinary functions is:"
37233 msgstr ""
37234
37235 #. type: verbatim
37236 #: ../src/guestfs.pod:2491
37237 #, no-wrap
37238 msgid ""
37239 " total length (header + ret,\n"
37240 "      but not including the length word itself)\n"
37241 " struct guestfs_message_header (encoded as XDR)\n"
37242 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37243 "\n"
37244 msgstr ""
37245
37246 #. type: textblock
37247 #: ../src/guestfs.pod:2496
37248 msgid ""
37249 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37250 "functions that return no formal return values."
37251 msgstr ""
37252
37253 #. type: textblock
37254 #: ../src/guestfs.pod:2499
37255 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37256 msgstr ""
37257
37258 #. type: textblock
37259 #: ../src/guestfs.pod:2502
37260 msgid ""
37261 "In the case of an error, a flag is set in the header, and the reply message "
37262 "is slightly changed:"
37263 msgstr ""
37264
37265 #. type: verbatim
37266 #: ../src/guestfs.pod:2505
37267 #, no-wrap
37268 msgid ""
37269 " total length (header + error,\n"
37270 "      but not including the length word itself)\n"
37271 " struct guestfs_message_header (encoded as XDR)\n"
37272 " struct guestfs_message_error (encoded as XDR)\n"
37273 "\n"
37274 msgstr ""
37275
37276 #. type: textblock
37277 #: ../src/guestfs.pod:2510
37278 msgid ""
37279 "The C<guestfs_message_error> structure contains the error message as a "
37280 "string."
37281 msgstr ""
37282
37283 #. type: =head3
37284 #: ../src/guestfs.pod:2513
37285 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37286 msgstr ""
37287
37288 #. type: textblock
37289 #: ../src/guestfs.pod:2515
37290 msgid ""
37291 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37292 "The normal request message is sent (see above).  However this is followed by "
37293 "a sequence of file chunks."
37294 msgstr ""
37295
37296 #. type: verbatim
37297 #: ../src/guestfs.pod:2519
37298 #, no-wrap
37299 msgid ""
37300 " total length (header + arguments,\n"
37301 "      but not including the length word itself,\n"
37302 "      and not including the chunks)\n"
37303 " struct guestfs_message_header (encoded as XDR)\n"
37304 " struct guestfs_<foo>_args (encoded as XDR)\n"
37305 " sequence of chunks for FileIn param #0\n"
37306 " sequence of chunks for FileIn param #1 etc.\n"
37307 "\n"
37308 msgstr ""
37309
37310 #. type: textblock
37311 #: ../src/guestfs.pod:2527
37312 msgid "The \"sequence of chunks\" is:"
37313 msgstr ""
37314
37315 #. type: verbatim
37316 #: ../src/guestfs.pod:2529
37317 #, no-wrap
37318 msgid ""
37319 " length of chunk (not including length word itself)\n"
37320 " struct guestfs_chunk (encoded as XDR)\n"
37321 " length of chunk\n"
37322 " struct guestfs_chunk (encoded as XDR)\n"
37323 "   ...\n"
37324 " length of chunk\n"
37325 " struct guestfs_chunk (with data.data_len == 0)\n"
37326 "\n"
37327 msgstr ""
37328
37329 #. type: textblock
37330 #: ../src/guestfs.pod:2537
37331 msgid ""
37332 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37333 "is set in the final chunk to indicate either successful completion or early "
37334 "cancellation."
37335 msgstr ""
37336
37337 #. type: textblock
37338 #: ../src/guestfs.pod:2541
37339 msgid ""
37340 "At time of writing there are no functions that have more than one FileIn "
37341 "parameter.  However this is (theoretically) supported, by sending the "
37342 "sequence of chunks for each FileIn parameter one after another (from left to "
37343 "right)."
37344 msgstr ""
37345
37346 #. type: textblock
37347 #: ../src/guestfs.pod:2546
37348 msgid ""
37349 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37350 "transfer.  The library does this by sending a chunk with a special flag set "
37351 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
37352 "RPC, does I<not> send any reply, and goes back to reading the next request."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:2552
37357 msgid ""
37358 "The daemon may also cancel.  It does this by writing a special word "
37359 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
37360 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37361 "cancel chunk).  The special word is chosen so that even if cancellation "
37362 "happens right at the end of the transfer (after the library has finished "
37363 "writing and has started listening for the reply), the \"spurious\" cancel "
37364 "flag will not be confused with the reply message."
37365 msgstr ""
37366
37367 #. type: textblock
37368 #: ../src/guestfs.pod:2561
37369 msgid ""
37370 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37371 "limit), and also files where the size is not known in advance (eg. from "
37372 "pipes or sockets).  However the chunks are rather small "
37373 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37374 "to keep much in memory."
37375 msgstr ""
37376
37377 #. type: =head3
37378 #: ../src/guestfs.pod:2567
37379 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37380 msgstr ""
37381
37382 #. type: textblock
37383 #: ../src/guestfs.pod:2569
37384 msgid ""
37385 "The protocol for FileOut parameters is exactly the same as for FileIn "
37386 "parameters, but with the roles of daemon and library reversed."
37387 msgstr ""
37388
37389 #. type: verbatim
37390 #: ../src/guestfs.pod:2572
37391 #, no-wrap
37392 msgid ""
37393 " total length (header + ret,\n"
37394 "      but not including the length word itself,\n"
37395 "      and not including the chunks)\n"
37396 " struct guestfs_message_header (encoded as XDR)\n"
37397 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37398 " sequence of chunks for FileOut param #0\n"
37399 " sequence of chunks for FileOut param #1 etc.\n"
37400 "\n"
37401 msgstr ""
37402
37403 #. type: =head3
37404 #: ../src/guestfs.pod:2580
37405 msgid "INITIAL MESSAGE"
37406 msgstr ""
37407
37408 #. type: textblock
37409 #: ../src/guestfs.pod:2582
37410 msgid ""
37411 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37412 "which indicates that the guest and daemon is alive.  This is what "
37413 "L</guestfs_launch> waits for."
37414 msgstr ""
37415
37416 #. type: =head3
37417 #: ../src/guestfs.pod:2586
37418 msgid "PROGRESS NOTIFICATION MESSAGES"
37419 msgstr ""
37420
37421 #. type: textblock
37422 #: ../src/guestfs.pod:2588
37423 msgid ""
37424 "The daemon may send progress notification messages at any time.  These are "
37425 "distinguished by the normal length word being replaced by "
37426 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37427 msgstr ""
37428
37429 #. type: textblock
37430 #: ../src/guestfs.pod:2592
37431 msgid ""
37432 "The library turns them into progress callbacks (see "
37433 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
37434 "them if not."
37435 msgstr ""
37436
37437 #. type: textblock
37438 #: ../src/guestfs.pod:2596
37439 msgid ""
37440 "The daemon self-limits the frequency of progress messages it sends (see "
37441 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37442 "messages."
37443 msgstr ""
37444
37445 #. type: =head1
37446 #: ../src/guestfs.pod:2600
37447 msgid "LIBGUESTFS VERSION NUMBERS"
37448 msgstr ""
37449
37450 #. type: textblock
37451 #: ../src/guestfs.pod:2602
37452 msgid ""
37453 "Since April 2010, libguestfs has started to make separate development and "
37454 "stable releases, along with corresponding branches in our git repository.  "
37455 "These separate releases can be identified by version number:"
37456 msgstr ""
37457
37458 #. type: verbatim
37459 #: ../src/guestfs.pod:2607
37460 #, no-wrap
37461 msgid ""
37462 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37463 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37464 "       |\n"
37465 "       v\n"
37466 " 1  .  3  .  5\n"
37467 " ^           ^\n"
37468 " |           |\n"
37469 " |           `-------- sub-version\n"
37470 " |\n"
37471 " `------ always '1' because we don't change the ABI\n"
37472 "\n"
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:2618
37477 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37478 msgstr ""
37479
37480 #. type: textblock
37481 #: ../src/guestfs.pod:2620
37482 msgid ""
37483 "As time passes we cherry pick fixes from the development branch and backport "
37484 "those into the stable branch, the effect being that the stable branch should "
37485 "get more stable and less buggy over time.  So the stable releases are ideal "
37486 "for people who don't need new features but would just like the software to "
37487 "work."
37488 msgstr ""
37489
37490 #. type: textblock
37491 #: ../src/guestfs.pod:2626
37492 msgid "Our criteria for backporting changes are:"
37493 msgstr ""
37494
37495 #. type: textblock
37496 #: ../src/guestfs.pod:2632
37497 msgid ""
37498 "Documentation changes which don't affect any code are backported unless the "
37499 "documentation refers to a future feature which is not in stable."
37500 msgstr ""
37501
37502 #. type: textblock
37503 #: ../src/guestfs.pod:2638
37504 msgid ""
37505 "Bug fixes which are not controversial, fix obvious problems, and have been "
37506 "well tested are backported."
37507 msgstr ""
37508
37509 #. type: textblock
37510 #: ../src/guestfs.pod:2643
37511 msgid ""
37512 "Simple rearrangements of code which shouldn't affect how it works get "
37513 "backported.  This is so that the code in the two branches doesn't get too "
37514 "far out of step, allowing us to backport future fixes more easily."
37515 msgstr ""
37516
37517 #. type: textblock
37518 #: ../src/guestfs.pod:2649
37519 msgid ""
37520 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37521 "exceptional case: the new feature is required in order to implement an "
37522 "important bug fix."
37523 msgstr ""
37524
37525 #. type: textblock
37526 #: ../src/guestfs.pod:2655
37527 msgid ""
37528 "A new stable branch starts when we think the new features in development are "
37529 "substantial and compelling enough over the current stable branch to warrant "
37530 "it.  When that happens we create new stable and development versions 1.N.0 "
37531 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37532 "stable at this point, but by backporting fixes from development, that branch "
37533 "will stabilize over time."
37534 msgstr ""
37535
37536 #. type: =head1
37537 #: ../src/guestfs.pod:2663
37538 msgid "EXTENDING LIBGUESTFS"
37539 msgstr ""
37540
37541 #. type: =head2
37542 #: ../src/guestfs.pod:2665
37543 msgid "ADDING A NEW API ACTION"
37544 msgstr ""
37545
37546 #. type: textblock
37547 #: ../src/guestfs.pod:2667
37548 msgid ""
37549 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37550 "documentation) are generated, and this makes it easy to extend the "
37551 "libguestfs API."
37552 msgstr ""
37553
37554 #. type: textblock
37555 #: ../src/guestfs.pod:2671
37556 msgid "To add a new API action there are two changes:"
37557 msgstr ""
37558
37559 #. type: textblock
37560 #: ../src/guestfs.pod:2677
37561 msgid ""
37562 "You need to add a description of the call (name, parameters, return type, "
37563 "tests, documentation) to C<generator/generator_actions.ml>."
37564 msgstr ""
37565
37566 #. type: textblock
37567 #: ../src/guestfs.pod:2680
37568 msgid ""
37569 "There are two sorts of API action, depending on whether the call goes "
37570 "through to the daemon in the appliance, or is serviced entirely by the "
37571 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37572 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37573 "an example of the latter, since a trace flag is maintained in the handle and "
37574 "all tracing is done on the library side."
37575 msgstr ""
37576
37577 #. type: textblock
37578 #: ../src/guestfs.pod:2688
37579 msgid ""
37580 "Most new actions are of the first type, and get added to the "
37581 "C<daemon_functions> list.  Each function has a unique procedure number used "
37582 "in the RPC protocol which is assigned to that action when we publish "
37583 "libguestfs and cannot be reused.  Take the latest procedure number and "
37584 "increment it."
37585 msgstr ""
37586
37587 #. type: textblock
37588 #: ../src/guestfs.pod:2694
37589 msgid ""
37590 "For library-only actions of the second type, add to the "
37591 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37592 "library and do not travel over the RPC mechanism to the daemon, these "
37593 "functions do not need a procedure number, and so the procedure number is set "
37594 "to C<-1>."
37595 msgstr ""
37596
37597 #. type: textblock
37598 #: ../src/guestfs.pod:2702
37599 msgid "Implement the action (in C):"
37600 msgstr ""
37601
37602 #. type: textblock
37603 #: ../src/guestfs.pod:2704
37604 msgid ""
37605 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37606 "C<daemon/> directory."
37607 msgstr ""
37608
37609 #. type: textblock
37610 #: ../src/guestfs.pod:2707
37611 msgid ""
37612 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37613 "(note: double underscore) in the C<src/> directory."
37614 msgstr ""
37615
37616 #. type: textblock
37617 #: ../src/guestfs.pod:2710
37618 msgid "In either case, use another function as an example of what to do."
37619 msgstr ""
37620
37621 #. type: textblock
37622 #: ../src/guestfs.pod:2714
37623 msgid "After making these changes, use C<make> to compile."
37624 msgstr ""
37625
37626 #. type: textblock
37627 #: ../src/guestfs.pod:2716
37628 msgid ""
37629 "Note that you don't need to implement the RPC, language bindings, manual "
37630 "pages or anything else.  It's all automatically generated from the OCaml "
37631 "description."
37632 msgstr ""
37633
37634 #. type: =head2
37635 #: ../src/guestfs.pod:2720
37636 msgid "ADDING TESTS FOR AN API ACTION"
37637 msgstr ""
37638
37639 #. type: textblock
37640 #: ../src/guestfs.pod:2722
37641 msgid ""
37642 "You can supply zero or as many tests as you want per API call.  The tests "
37643 "can either be added as part of the API description "
37644 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
37645 "drop a script into C<regressions/>.  Note that adding a script to "
37646 "C<regressions/> is slower, so if possible use the first method."
37647 msgstr ""
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:2728
37651 msgid ""
37652 "The following describes the test environment used when you add an API test "
37653 "in C<generator_actions.ml>."
37654 msgstr ""
37655
37656 #. type: textblock
37657 #: ../src/guestfs.pod:2731
37658 msgid "The test environment has 4 block devices:"
37659 msgstr ""
37660
37661 #. type: =item
37662 #: ../src/guestfs.pod:2735
37663 msgid "C</dev/sda> 500MB"
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:2737
37668 msgid "General block device for testing."
37669 msgstr ""
37670
37671 #. type: =item
37672 #: ../src/guestfs.pod:2739
37673 msgid "C</dev/sdb> 50MB"
37674 msgstr ""
37675
37676 #. type: textblock
37677 #: ../src/guestfs.pod:2741
37678 msgid ""
37679 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37680 "operations."
37681 msgstr ""
37682
37683 #. type: =item
37684 #: ../src/guestfs.pod:2744
37685 msgid "C</dev/sdc> 10MB"
37686 msgstr ""
37687
37688 #. type: textblock
37689 #: ../src/guestfs.pod:2746
37690 msgid "Used in a few tests where two block devices are needed."
37691 msgstr ""
37692
37693 #. type: =item
37694 #: ../src/guestfs.pod:2748
37695 msgid "C</dev/sdd>"
37696 msgstr ""
37697
37698 #. type: textblock
37699 #: ../src/guestfs.pod:2750
37700 msgid "ISO with fixed content (see C<images/test.iso>)."
37701 msgstr ""
37702
37703 #. type: textblock
37704 #: ../src/guestfs.pod:2754
37705 msgid ""
37706 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37707 "appliance and block devices are reused between tests.  So don't try testing "
37708 "L</guestfs_kill_subprocess> :-x"
37709 msgstr ""
37710
37711 #. type: textblock
37712 #: ../src/guestfs.pod:2758
37713 msgid ""
37714 "Each test starts with an initial scenario, selected using one of the "
37715 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37716 "initialize the disks mentioned above in a particular way as documented in "
37717 "C<generator_types.ml>.  You should not assume anything about the previous "
37718 "contents of other disks that are not initialized."
37719 msgstr ""
37720
37721 #. type: textblock
37722 #: ../src/guestfs.pod:2764
37723 msgid ""
37724 "You can add a prerequisite clause to any individual test.  This is a "
37725 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
37726 "if testing a command which might not work on all variations of libguestfs "
37727 "builds.  A test that has prerequisite of C<Always> means to run "
37728 "unconditionally."
37729 msgstr ""
37730
37731 #. type: textblock
37732 #: ../src/guestfs.pod:2770
37733 msgid ""
37734 "In addition, packagers can skip individual tests by setting environment "
37735 "variables before running C<make check>."
37736 msgstr ""
37737
37738 #. type: verbatim
37739 #: ../src/guestfs.pod:2773
37740 #, no-wrap
37741 msgid ""
37742 " SKIP_TEST_<CMD>_<NUM>=1\n"
37743 "\n"
37744 msgstr ""
37745
37746 #. type: textblock
37747 #: ../src/guestfs.pod:2775
37748 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37749 msgstr ""
37750
37751 #. type: textblock
37752 #: ../src/guestfs.pod:2777
37753 msgid "or:"
37754 msgstr ""
37755
37756 #. type: verbatim
37757 #: ../src/guestfs.pod:2779
37758 #, no-wrap
37759 msgid ""
37760 " SKIP_TEST_<CMD>=1\n"
37761 "\n"
37762 msgstr ""
37763
37764 #. type: textblock
37765 #: ../src/guestfs.pod:2781
37766 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:2783
37771 msgid "Packagers can run only certain tests by setting for example:"
37772 msgstr ""
37773
37774 #. type: verbatim
37775 #: ../src/guestfs.pod:2785
37776 #, no-wrap
37777 msgid ""
37778 " TEST_ONLY=\"vfs_type zerofree\"\n"
37779 "\n"
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../src/guestfs.pod:2787
37784 msgid ""
37785 "See C<capitests/tests.c> for more details of how these environment variables "
37786 "work."
37787 msgstr ""
37788
37789 #. type: =head2
37790 #: ../src/guestfs.pod:2790
37791 msgid "DEBUGGING NEW API ACTIONS"
37792 msgstr ""
37793
37794 #. type: textblock
37795 #: ../src/guestfs.pod:2792
37796 msgid "Test new actions work before submitting them."
37797 msgstr ""
37798
37799 #. type: textblock
37800 #: ../src/guestfs.pod:2794
37801 msgid "You can use guestfish to try out new commands."
37802 msgstr ""
37803
37804 #. type: textblock
37805 #: ../src/guestfs.pod:2796
37806 msgid ""
37807 "Debugging the daemon is a problem because it runs inside a minimal "
37808 "environment.  However you can fprintf messages in the daemon to stderr, and "
37809 "they will show up if you use C<guestfish -v>."
37810 msgstr ""
37811
37812 #. type: =head2
37813 #: ../src/guestfs.pod:2800
37814 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../src/guestfs.pod:2802
37819 msgid ""
37820 "Our C source code generally adheres to some basic code-formatting "
37821 "conventions.  The existing code base is not totally consistent on this "
37822 "front, but we do prefer that contributed code be formatted similarly.  In "
37823 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37824 "indentation level, and other than that, follow the K&R style."
37825 msgstr ""
37826
37827 #. type: textblock
37828 #: ../src/guestfs.pod:2808
37829 msgid ""
37830 "If you use Emacs, add the following to one of one of your start-up files "
37831 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
37832 msgstr ""
37833
37834 #. type: verbatim
37835 #: ../src/guestfs.pod:2811
37836 #, no-wrap
37837 msgid ""
37838 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37839 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37840 " (add-hook 'find-file-hook\n"
37841 "     '(lambda () (if (and buffer-file-name\n"
37842 "                          (string-match \"/libguestfs\\\\>\"\n"
37843 "                              (buffer-file-name))\n"
37844 "                          (not (string-equal mode-name \"Change Log\"))\n"
37845 "                          (not (string-equal mode-name \"Makefile\")))\n"
37846 "                     (setq indent-tabs-mode nil))))\n"
37847 " \n"
37848 msgstr ""
37849
37850 #. type: verbatim
37851 #: ../src/guestfs.pod:2821
37852 #, no-wrap
37853 msgid ""
37854 " ;;; When editing C sources in libguestfs, use this style.\n"
37855 " (defun libguestfs-c-mode ()\n"
37856 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37857 "   (interactive)\n"
37858 "   (c-set-style \"K&R\")\n"
37859 "   (setq c-indent-level 2)\n"
37860 "   (setq c-basic-offset 2))\n"
37861 " (add-hook 'c-mode-hook\n"
37862 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37863 "                               (buffer-file-name))\n"
37864 "                           (libguestfs-c-mode))))\n"
37865 "\n"
37866 msgstr ""
37867
37868 #. type: textblock
37869 #: ../src/guestfs.pod:2833
37870 msgid "Enable warnings when compiling (and fix any problems this finds):"
37871 msgstr ""
37872
37873 #. type: verbatim
37874 #: ../src/guestfs.pod:2836
37875 #, no-wrap
37876 msgid ""
37877 " ./configure --enable-gcc-warnings\n"
37878 "\n"
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../src/guestfs.pod:2838
37883 msgid "Useful targets are:"
37884 msgstr ""
37885
37886 #. type: verbatim
37887 #: ../src/guestfs.pod:2840
37888 #, no-wrap
37889 msgid ""
37890 " make syntax-check  # checks the syntax of the C code\n"
37891 " make check         # runs the test suite\n"
37892 "\n"
37893 msgstr ""
37894
37895 #. type: =head2
37896 #: ../src/guestfs.pod:2843
37897 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37898 msgstr ""
37899
37900 #. type: textblock
37901 #: ../src/guestfs.pod:2845
37902 msgid ""
37903 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37904 "which are used to do shell quoting."
37905 msgstr ""
37906
37907 #. type: =item
37908 #: ../src/guestfs.pod:2850
37909 msgid "%Q"
37910 msgstr ""
37911
37912 #. type: textblock
37913 #: ../src/guestfs.pod:2852
37914 msgid ""
37915 "Simple shell quoted string.  Any spaces or other shell characters are "
37916 "escaped for you."
37917 msgstr ""
37918
37919 #. type: =item
37920 #: ../src/guestfs.pod:2855
37921 msgid "%R"
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:2857
37926 msgid ""
37927 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37928 "the sysroot."
37929 msgstr ""
37930
37931 #. type: verbatim
37932 #: ../src/guestfs.pod:2864
37933 #, no-wrap
37934 msgid ""
37935 " asprintf (&cmd, \"cat %R\", path);\n"
37936 "\n"
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../src/guestfs.pod:2866
37941 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37942 msgstr ""
37943
37944 #. type: textblock
37945 #: ../src/guestfs.pod:2868
37946 msgid ""
37947 "I<Note:> Do I<not> use these when you are passing parameters to the "
37948 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
37949 "because they are not passed via the shell (instead, straight to exec).  You "
37950 "probably want to use the C<sysroot_path()> function however."
37951 msgstr ""
37952
37953 #. type: =head2
37954 #: ../src/guestfs.pod:2874
37955 msgid "SUBMITTING YOUR NEW API ACTIONS"
37956 msgstr ""
37957
37958 #. type: textblock
37959 #: ../src/guestfs.pod:2876
37960 msgid ""
37961 "Submit patches to the mailing list: "
37962 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
37963 "L<rjones@redhat.com>."
37964 msgstr ""
37965
37966 #. type: =head2
37967 #: ../src/guestfs.pod:2880
37968 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37969 msgstr ""
37970
37971 #. type: textblock
37972 #: ../src/guestfs.pod:2882
37973 msgid "We support i18n (gettext anyhow) in the library."
37974 msgstr ""
37975
37976 #. type: textblock
37977 #: ../src/guestfs.pod:2884
37978 msgid ""
37979 "However many messages come from the daemon, and we don't translate those at "
37980 "the moment.  One reason is that the appliance generally has all locale files "
37981 "removed from it, because they take up a lot of space.  So we'd have to readd "
37982 "some of those, as well as copying our PO files into the appliance."
37983 msgstr ""
37984
37985 #. type: textblock
37986 #: ../src/guestfs.pod:2890
37987 msgid ""
37988 "Debugging messages are never translated, since they are intended for the "
37989 "programmers."
37990 msgstr ""
37991
37992 #. type: =head2
37993 #: ../src/guestfs.pod:2893
37994 msgid "SOURCE CODE SUBDIRECTORIES"
37995 msgstr ""
37996
37997 #. type: =item
37998 #: ../src/guestfs.pod:2897
37999 msgid "C<align>"
38000 msgstr ""
38001
38002 #. type: textblock
38003 #: ../src/guestfs.pod:2899
38004 msgid "L<virt-alignment-scan(1)> command and documentation."
38005 msgstr ""
38006
38007 #. type: textblock
38008 #: ../src/guestfs.pod:2903
38009 msgid "The libguestfs appliance, build scripts and so on."
38010 msgstr ""
38011
38012 #. type: =item
38013 #: ../src/guestfs.pod:2905
38014 msgid "C<capitests>"
38015 msgstr ""
38016
38017 #. type: textblock
38018 #: ../src/guestfs.pod:2907
38019 msgid "Automated tests of the C API."
38020 msgstr ""
38021
38022 #. type: =item
38023 #: ../src/guestfs.pod:2909
38024 msgid "C<cat>"
38025 msgstr ""
38026
38027 #. type: textblock
38028 #: ../src/guestfs.pod:2911
38029 msgid ""
38030 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38031 "documentation."
38032 msgstr ""
38033
38034 #. type: =item
38035 #: ../src/guestfs.pod:2914
38036 msgid "C<caution>"
38037 msgstr ""
38038
38039 #. type: textblock
38040 #: ../src/guestfs.pod:2916
38041 msgid ""
38042 "Safety and liveness tests of components that libguestfs depends upon (not of "
38043 "libguestfs itself).  Mainly this is for qemu and the kernel."
38044 msgstr ""
38045
38046 #. type: =item
38047 #: ../src/guestfs.pod:2919
38048 msgid "C<clone>"
38049 msgstr ""
38050
38051 #. type: textblock
38052 #: ../src/guestfs.pod:2921
38053 msgid ""
38054 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
38055 "command and documentation."
38056 msgstr ""
38057
38058 #. type: =item
38059 #: ../src/guestfs.pod:2924
38060 msgid "C<contrib>"
38061 msgstr ""
38062
38063 #. type: textblock
38064 #: ../src/guestfs.pod:2926
38065 msgid "Outside contributions, experimental parts."
38066 msgstr ""
38067
38068 #. type: =item
38069 #: ../src/guestfs.pod:2928
38070 msgid "C<daemon>"
38071 msgstr ""
38072
38073 #. type: textblock
38074 #: ../src/guestfs.pod:2930
38075 msgid ""
38076 "The daemon that runs inside the libguestfs appliance and carries out "
38077 "actions."
38078 msgstr ""
38079
38080 #. type: =item
38081 #: ../src/guestfs.pod:2933
38082 msgid "C<df>"
38083 msgstr ""
38084
38085 #. type: textblock
38086 #: ../src/guestfs.pod:2935
38087 msgid "L<virt-df(1)> command and documentation."
38088 msgstr ""
38089
38090 #. type: =item
38091 #: ../src/guestfs.pod:2937
38092 msgid "C<edit>"
38093 msgstr ""
38094
38095 #. type: textblock
38096 #: ../src/guestfs.pod:2939
38097 msgid "L<virt-edit(1)> command and documentation."
38098 msgstr ""
38099
38100 #. type: =item
38101 #: ../src/guestfs.pod:2941
38102 msgid "C<examples>"
38103 msgstr ""
38104
38105 #. type: textblock
38106 #: ../src/guestfs.pod:2943
38107 msgid "C API example code."
38108 msgstr ""
38109
38110 #. type: =item
38111 #: ../src/guestfs.pod:2945
38112 msgid "C<fish>"
38113 msgstr ""
38114
38115 #. type: textblock
38116 #: ../src/guestfs.pod:2947
38117 msgid ""
38118 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38119 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38120 "L<virt-tar-out(1)>."
38121 msgstr ""
38122
38123 #. type: =item
38124 #: ../src/guestfs.pod:2951
38125 msgid "C<fuse>"
38126 msgstr ""
38127
38128 #. type: textblock
38129 #: ../src/guestfs.pod:2953
38130 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38131 msgstr ""
38132
38133 #. type: =item
38134 #: ../src/guestfs.pod:2955
38135 msgid "C<generator>"
38136 msgstr ""
38137
38138 #. type: textblock
38139 #: ../src/guestfs.pod:2957
38140 msgid ""
38141 "The crucially important generator, used to automatically generate large "
38142 "amounts of boilerplate C code for things like RPC and bindings."
38143 msgstr ""
38144
38145 #. type: =item
38146 #: ../src/guestfs.pod:2960
38147 msgid "C<images>"
38148 msgstr ""
38149
38150 #. type: textblock
38151 #: ../src/guestfs.pod:2962
38152 msgid "Files used by the test suite."
38153 msgstr ""
38154
38155 #. type: textblock
38156 #: ../src/guestfs.pod:2964
38157 msgid "Some \"phony\" guest images which we test against."
38158 msgstr ""
38159
38160 #. type: =item
38161 #: ../src/guestfs.pod:2966
38162 msgid "C<inspector>"
38163 msgstr ""
38164
38165 #. type: textblock
38166 #: ../src/guestfs.pod:2968
38167 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38168 msgstr ""
38169
38170 #. type: =item
38171 #: ../src/guestfs.pod:2970
38172 msgid "C<logo>"
38173 msgstr ""
38174
38175 #. type: textblock
38176 #: ../src/guestfs.pod:2972
38177 msgid "Logo used on the website.  The fish is called Arthur by the way."
38178 msgstr ""
38179
38180 #. type: =item
38181 #: ../src/guestfs.pod:2974
38182 msgid "C<m4>"
38183 msgstr ""
38184
38185 #. type: textblock
38186 #: ../src/guestfs.pod:2976
38187 msgid "M4 macros used by autoconf."
38188 msgstr ""
38189
38190 #. type: =item
38191 #: ../src/guestfs.pod:2978
38192 msgid "C<po>"
38193 msgstr ""
38194
38195 #. type: textblock
38196 #: ../src/guestfs.pod:2980
38197 msgid "Translations of simple gettext strings."
38198 msgstr ""
38199
38200 #. type: =item
38201 #: ../src/guestfs.pod:2982
38202 msgid "C<po-docs>"
38203 msgstr ""
38204
38205 #. type: textblock
38206 #: ../src/guestfs.pod:2984
38207 msgid ""
38208 "The build infrastructure and PO files for translations of manpages and POD "
38209 "files.  Eventually this will be combined with the C<po> directory, but that "
38210 "is rather complicated."
38211 msgstr ""
38212
38213 #. type: =item
38214 #: ../src/guestfs.pod:2988
38215 msgid "C<regressions>"
38216 msgstr ""
38217
38218 #. type: textblock
38219 #: ../src/guestfs.pod:2990
38220 msgid "Regression tests."
38221 msgstr ""
38222
38223 #. type: =item
38224 #: ../src/guestfs.pod:2992
38225 msgid "C<rescue>"
38226 msgstr ""
38227
38228 #. type: textblock
38229 #: ../src/guestfs.pod:2994
38230 msgid "L<virt-rescue(1)> command and documentation."
38231 msgstr ""
38232
38233 #. type: =item
38234 #: ../src/guestfs.pod:2996
38235 msgid "C<resize>"
38236 msgstr ""
38237
38238 #. type: textblock
38239 #: ../src/guestfs.pod:2998
38240 msgid "L<virt-resize(1)> command and documentation."
38241 msgstr ""
38242
38243 #. type: =item
38244 #: ../src/guestfs.pod:3000
38245 msgid "C<sparsify>"
38246 msgstr ""
38247
38248 #. type: textblock
38249 #: ../src/guestfs.pod:3002
38250 msgid "L<virt-sparsify(1)> command and documentation."
38251 msgstr ""
38252
38253 #. type: =item
38254 #: ../src/guestfs.pod:3004
38255 msgid "C<src>"
38256 msgstr ""
38257
38258 #. type: textblock
38259 #: ../src/guestfs.pod:3006
38260 msgid "Source code to the C library."
38261 msgstr ""
38262
38263 #. type: =item
38264 #: ../src/guestfs.pod:3008
38265 msgid "C<tools>"
38266 msgstr ""
38267
38268 #. type: textblock
38269 #: ../src/guestfs.pod:3010
38270 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
38271 msgstr ""
38272
38273 #. type: =item
38274 #: ../src/guestfs.pod:3012
38275 msgid "C<test-tool>"
38276 msgstr ""
38277
38278 #. type: textblock
38279 #: ../src/guestfs.pod:3014
38280 msgid ""
38281 "Test tool for end users to test if their qemu/kernel combination will work "
38282 "with libguestfs."
38283 msgstr ""
38284
38285 #. type: =item
38286 #: ../src/guestfs.pod:3017
38287 msgid "C<csharp>"
38288 msgstr ""
38289
38290 #. type: =item
38291 #: ../src/guestfs.pod:3019
38292 msgid "C<erlang>"
38293 msgstr ""
38294
38295 #. type: =item
38296 #: ../src/guestfs.pod:3021
38297 msgid "C<haskell>"
38298 msgstr ""
38299
38300 #. type: =item
38301 #: ../src/guestfs.pod:3023
38302 msgid "C<java>"
38303 msgstr ""
38304
38305 #. type: =item
38306 #: ../src/guestfs.pod:3025
38307 msgid "C<ocaml>"
38308 msgstr ""
38309
38310 #. type: =item
38311 #: ../src/guestfs.pod:3027
38312 msgid "C<php>"
38313 msgstr ""
38314
38315 #. type: =item
38316 #: ../src/guestfs.pod:3029
38317 msgid "C<perl>"
38318 msgstr ""
38319
38320 #. type: =item
38321 #: ../src/guestfs.pod:3031
38322 msgid "C<python>"
38323 msgstr ""
38324
38325 #. type: =item
38326 #: ../src/guestfs.pod:3033
38327 msgid "C<ruby>"
38328 msgstr ""
38329
38330 #. type: textblock
38331 #: ../src/guestfs.pod:3035
38332 msgid "Language bindings."
38333 msgstr ""
38334
38335 #. type: =head2
38336 #: ../src/guestfs.pod:3039
38337 msgid "MAKING A STABLE RELEASE"
38338 msgstr ""
38339
38340 #. type: textblock
38341 #: ../src/guestfs.pod:3041
38342 msgid ""
38343 "When we make a stable release, there are several steps documented here.  See "
38344 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38345 "branch policy."
38346 msgstr ""
38347
38348 #. type: textblock
38349 #: ../src/guestfs.pod:3049
38350 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38351 msgstr ""
38352
38353 #. type: textblock
38354 #: ../src/guestfs.pod:3054
38355 msgid "Finalize RELEASE-NOTES."
38356 msgstr ""
38357
38358 #. type: textblock
38359 #: ../src/guestfs.pod:3058
38360 msgid "Update ROADMAP."
38361 msgstr ""
38362
38363 #. type: textblock
38364 #: ../src/guestfs.pod:3062
38365 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38366 msgstr ""
38367
38368 #. type: textblock
38369 #: ../src/guestfs.pod:3066
38370 msgid "Push and pull from Transifex."
38371 msgstr ""
38372
38373 #. type: textblock
38374 #: ../src/guestfs.pod:3068
38375 msgid "Run:"
38376 msgstr ""
38377
38378 #. type: verbatim
38379 #: ../src/guestfs.pod:3070
38380 #, no-wrap
38381 msgid ""
38382 " tx push -s\n"
38383 "\n"
38384 msgstr ""
38385
38386 #. type: textblock
38387 #: ../src/guestfs.pod:3072
38388 msgid "to push the latest POT files to Transifex.  Then run:"
38389 msgstr ""
38390
38391 #. type: verbatim
38392 #: ../src/guestfs.pod:3074
38393 #, no-wrap
38394 msgid ""
38395 " ./tx-pull.sh\n"
38396 "\n"
38397 msgstr ""
38398
38399 #. type: textblock
38400 #: ../src/guestfs.pod:3076
38401 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38402 msgstr ""
38403
38404 #. type: textblock
38405 #: ../src/guestfs.pod:3080
38406 msgid ""
38407 "Create new stable and development directories under "
38408 "L<http://libguestfs.org/download>."
38409 msgstr ""
38410
38411 #. type: textblock
38412 #: ../src/guestfs.pod:3085
38413 msgid "Create the branch in git:"
38414 msgstr ""
38415
38416 #. type: verbatim
38417 #: ../src/guestfs.pod:3087
38418 #, no-wrap
38419 msgid ""
38420 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38421 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38422 " git branch stable-1.XX\n"
38423 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38424 "\n"
38425 msgstr ""
38426
38427 #. type: =head1
38428 #: ../src/guestfs.pod:3094
38429 msgid "LIMITS"
38430 msgstr ""
38431
38432 #. type: =head2
38433 #: ../src/guestfs.pod:3096
38434 msgid "PROTOCOL LIMITS"
38435 msgstr ""
38436
38437 #. type: textblock
38438 #: ../src/guestfs.pod:3098
38439 msgid ""
38440 "Internally libguestfs uses a message-based protocol to pass API calls and "
38441 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38442 "plenty more detail about this).  The maximum message size used by the "
38443 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
38444 "aware of this limit.  The API calls which may be affected are individually "
38445 "documented, with a link back to this section of the documentation."
38446 msgstr ""
38447
38448 #. type: textblock
38449 #: ../src/guestfs.pod:3106
38450 msgid ""
38451 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38452 "a simple string.  Because this string is at some point internally encoded as "
38453 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38454 "the requested file is larger than this then you will get an error."
38455 msgstr ""
38456
38457 #. type: textblock
38458 #: ../src/guestfs.pod:3112
38459 msgid ""
38460 "In order to transfer large files into and out of the guest filesystem, you "
38461 "need to use particular calls that support this.  The sections L</UPLOADING> "
38462 "and L</DOWNLOADING> document how to do this."
38463 msgstr ""
38464
38465 #. type: textblock
38466 #: ../src/guestfs.pod:3116
38467 msgid ""
38468 "You might also consider mounting the disk image using our FUSE filesystem "
38469 "support (L<guestmount(1)>)."
38470 msgstr ""
38471
38472 #. type: =head2
38473 #: ../src/guestfs.pod:3119
38474 msgid "MAXIMUM NUMBER OF DISKS"
38475 msgstr ""
38476
38477 #. type: textblock
38478 #: ../src/guestfs.pod:3121
38479 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38480 msgstr ""
38481
38482 #. type: textblock
38483 #: ../src/guestfs.pod:3124
38484 msgid ""
38485 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38486 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38487 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38488 "purposes."
38489 msgstr ""
38490
38491 #. type: textblock
38492 #: ../src/guestfs.pod:3129
38493 msgid ""
38494 "We are working to substantially raise this limit in future versions but it "
38495 "requires complex changes to qemu."
38496 msgstr ""
38497
38498 #. type: textblock
38499 #: ../src/guestfs.pod:3132
38500 msgid ""
38501 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38502 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38503 "requires changes to qemu."
38504 msgstr ""
38505
38506 #. type: =head2
38507 #: ../src/guestfs.pod:3136
38508 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38509 msgstr ""
38510
38511 #. type: textblock
38512 #: ../src/guestfs.pod:3138
38513 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38514 msgstr ""
38515
38516 #. type: textblock
38517 #: ../src/guestfs.pod:3140
38518 msgid ""
38519 "This is because it reserves 4 bits for the minor device number (thus "
38520 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
38521 msgstr ""
38522
38523 #. type: textblock
38524 #: ../src/guestfs.pod:3143
38525 msgid ""
38526 "If you attach a disk with more than 15 partitions, the extra partitions are "
38527 "ignored by libguestfs."
38528 msgstr ""
38529
38530 #. type: =head2
38531 #: ../src/guestfs.pod:3146
38532 msgid "MAXIMUM SIZE OF A DISK"
38533 msgstr ""
38534
38535 #. type: textblock
38536 #: ../src/guestfs.pod:3148
38537 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38538 msgstr ""
38539
38540 #. type: textblock
38541 #: ../src/guestfs.pod:3150
38542 msgid ""
38543 "We have tested block devices up to 1 exabyte (2**60 or "
38544 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38545 "filesystem."
38546 msgstr ""
38547
38548 #. type: textblock
38549 #: ../src/guestfs.pod:3154
38550 msgid ""
38551 "Although libguestfs probably does not impose any limit, the underlying host "
38552 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38553 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38554 "TB).  If you store disk images as host logical volumes then you are limited "
38555 "by the maximum size of an LV."
38556 msgstr ""
38557
38558 #. type: textblock
38559 #: ../src/guestfs.pod:3160
38560 msgid ""
38561 "For the hugest disk image files, we recommend using XFS on the host for "
38562 "storage."
38563 msgstr ""
38564
38565 #. type: =head2
38566 #: ../src/guestfs.pod:3163
38567 msgid "MAXIMUM SIZE OF A PARTITION"
38568 msgstr ""
38569
38570 #. type: textblock
38571 #: ../src/guestfs.pod:3165
38572 msgid ""
38573 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38574 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38575 "address a partition located beyond 2 TB on the disk."
38576 msgstr ""
38577
38578 #. type: textblock
38579 #: ../src/guestfs.pod:3169
38580 msgid ""
38581 "It is recommended that you use GPT partitions on disks which are larger than "
38582 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38583 "which are theoretically larger than the largest disk we could support."
38584 msgstr ""
38585
38586 #. type: =head2
38587 #: ../src/guestfs.pod:3174
38588 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38589 msgstr ""
38590
38591 #. type: textblock
38592 #: ../src/guestfs.pod:3176
38593 msgid ""
38594 "This depends on the filesystem type.  libguestfs itself does not impose any "
38595 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38596 "what these limits are."
38597 msgstr ""
38598
38599 #. type: =head2
38600 #: ../src/guestfs.pod:3180
38601 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38602 msgstr ""
38603
38604 #. type: textblock
38605 #: ../src/guestfs.pod:3182
38606 msgid ""
38607 "The API functions L</guestfs_upload>, L</guestfs_download>, "
38608 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38609 "uploads and downloads."
38610 msgstr ""
38611
38612 #. type: =head2
38613 #: ../src/guestfs.pod:3186
38614 msgid "INSPECTION LIMITS"
38615 msgstr ""
38616
38617 #. type: textblock
38618 #: ../src/guestfs.pod:3188
38619 msgid ""
38620 "The inspection code has several arbitrary limits on things like the size of "
38621 "Windows Registry hive it will read, and the length of product name.  These "
38622 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38623 "memory and disk space on the host, and should not be reached in practice.  "
38624 "See the source code for more information."
38625 msgstr ""
38626
38627 #. type: textblock
38628 #: ../src/guestfs.pod:3214
38629 msgid ""
38630 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38631 "effect as calling C<guestfs_set_verbose (g, 1)>."
38632 msgstr ""
38633
38634 #. type: textblock
38635 #: ../src/guestfs.pod:3226
38636 msgid ""
38637 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38638 "the discussion of paths in section L</PATH> above."
38639 msgstr ""
38640
38641 #. type: textblock
38642 #: ../src/guestfs.pod:3235
38643 msgid "See also L</QEMU WRAPPERS> above."
38644 msgstr ""
38645
38646 #. type: textblock
38647 #: ../src/guestfs.pod:3239
38648 msgid ""
38649 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38650 "effect as calling C<guestfs_set_trace (g, 1)>."
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../src/guestfs.pod:3257
38655 msgid ""
38656 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
38657 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
38658 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
38659 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
38660 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
38661 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
38662 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
38663 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
38664 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
38665 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38666 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
38667 "L<http://libguestfs.org/>."
38668 msgstr ""
38669
38670 #. type: textblock
38671 #: ../src/guestfs.pod:3293
38672 msgid ""
38673 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
38674 "L<lvm(8)>, L<disktype(1)>."
38675 msgstr ""
38676
38677 #. type: =head1
38678 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
38679 msgid "BUGS"
38680 msgstr ""
38681
38682 #. type: textblock
38683 #: ../src/guestfs.pod:3302
38684 msgid "To get a list of bugs against libguestfs use this link:"
38685 msgstr ""
38686
38687 #. type: textblock
38688 #: ../src/guestfs.pod:3304
38689 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
38690 msgstr ""
38691
38692 #. type: textblock
38693 #: ../src/guestfs.pod:3306
38694 msgid "To report a new bug against libguestfs use this link:"
38695 msgstr ""
38696
38697 #. type: textblock
38698 #: ../src/guestfs.pod:3308
38699 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
38700 msgstr ""
38701
38702 #. type: textblock
38703 #: ../src/guestfs.pod:3310
38704 msgid "When reporting a bug, please check:"
38705 msgstr ""
38706
38707 #. type: textblock
38708 #: ../src/guestfs.pod:3316
38709 msgid "That the bug hasn't been reported already."
38710 msgstr ""
38711
38712 #. type: textblock
38713 #: ../src/guestfs.pod:3320
38714 msgid "That you are testing a recent version."
38715 msgstr ""
38716
38717 #. type: textblock
38718 #: ../src/guestfs.pod:3324
38719 msgid "Describe the bug accurately, and give a way to reproduce it."
38720 msgstr ""
38721
38722 #. type: textblock
38723 #: ../src/guestfs.pod:3328
38724 msgid ""
38725 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38726 "bug report."
38727 msgstr ""
38728
38729 #. type: textblock
38730 #: ../test-tool/libguestfs-test-tool.pod:5
38731 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38732 msgstr ""
38733
38734 #. type: verbatim
38735 #: ../test-tool/libguestfs-test-tool.pod:9
38736 #, no-wrap
38737 msgid ""
38738 " libguestfs-test-tool [--options]\n"
38739 "\n"
38740 msgstr ""
38741
38742 #. type: textblock
38743 #: ../test-tool/libguestfs-test-tool.pod:13
38744 msgid ""
38745 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38746 "to check basic libguestfs functionality is working.  This is needed because "
38747 "libguestfs occasionally breaks for reasons beyond our control: usually "
38748 "because of changes in the underlying qemu or kernel packages, or the host "
38749 "environment."
38750 msgstr ""
38751
38752 #. type: textblock
38753 #: ../test-tool/libguestfs-test-tool.pod:19
38754 msgid "If you suspect a problem in libguestfs, then just run:"
38755 msgstr ""
38756
38757 #. type: verbatim
38758 #: ../test-tool/libguestfs-test-tool.pod:21
38759 #, no-wrap
38760 msgid ""
38761 " libguestfs-test-tool\n"
38762 "\n"
38763 msgstr ""
38764
38765 #. type: textblock
38766 #: ../test-tool/libguestfs-test-tool.pod:23
38767 msgid "It will print lots of diagnostic messages."
38768 msgstr ""
38769
38770 #. type: textblock
38771 #: ../test-tool/libguestfs-test-tool.pod:25
38772 msgid "If it runs to completion successfully, you will see this near the end:"
38773 msgstr ""
38774
38775 #. type: verbatim
38776 #: ../test-tool/libguestfs-test-tool.pod:27
38777 #, no-wrap
38778 msgid ""
38779 " ===== TEST FINISHED OK =====\n"
38780 "\n"
38781 msgstr ""
38782
38783 #. type: textblock
38784 #: ../test-tool/libguestfs-test-tool.pod:29
38785 msgid "and the test tool will exit with code 0."
38786 msgstr ""
38787
38788 #. type: textblock
38789 #: ../test-tool/libguestfs-test-tool.pod:31
38790 msgid ""
38791 "If it fails (and/or exits with non-zero error code), please paste the "
38792 "I<complete, unedited> output of the test tool into a bug report.  More "
38793 "information about reporting bugs can be found on the "
38794 "L<http://libguestfs.org/> website."
38795 msgstr ""
38796
38797 #. type: textblock
38798 #: ../test-tool/libguestfs-test-tool.pod:42
38799 msgid "Display short usage information and exit."
38800 msgstr ""
38801
38802 #. type: =item
38803 #: ../test-tool/libguestfs-test-tool.pod:44
38804 msgid "B<--qemu qemu_binary>"
38805 msgstr ""
38806
38807 #. type: textblock
38808 #: ../test-tool/libguestfs-test-tool.pod:46
38809 msgid ""
38810 "If you have downloaded another qemu binary, point this option at the full "
38811 "path of the binary to try it."
38812 msgstr ""
38813
38814 #. type: =item
38815 #: ../test-tool/libguestfs-test-tool.pod:49
38816 msgid "B<--qemudir qemu_source_dir>"
38817 msgstr ""
38818
38819 #. type: textblock
38820 #: ../test-tool/libguestfs-test-tool.pod:51
38821 msgid ""
38822 "If you have compiled qemu from source, point this option at the source "
38823 "directory to try it."
38824 msgstr ""
38825
38826 #. type: =item
38827 #: ../test-tool/libguestfs-test-tool.pod:54
38828 msgid "B<-t N>"
38829 msgstr ""
38830
38831 #. type: =item
38832 #: ../test-tool/libguestfs-test-tool.pod:56
38833 msgid "B<--timeout N>"
38834 msgstr ""
38835
38836 #. type: textblock
38837 #: ../test-tool/libguestfs-test-tool.pod:58
38838 msgid ""
38839 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
38840 "minutes) which does not usually need to be adjusted."
38841 msgstr ""
38842
38843 #. type: =head1
38844 #: ../test-tool/libguestfs-test-tool.pod:63
38845 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38846 msgstr ""
38847
38848 #. type: textblock
38849 #: ../test-tool/libguestfs-test-tool.pod:65
38850 msgid ""
38851 "If you have compiled another version of qemu from source and would like to "
38852 "try that, then you can use the I<--qemudir> option to point to the qemu "
38853 "source directory."
38854 msgstr ""
38855
38856 #. type: textblock
38857 #: ../test-tool/libguestfs-test-tool.pod:69
38858 msgid ""
38859 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38860 "option to point to the binary."
38861 msgstr ""
38862
38863 #. type: textblock
38864 #: ../test-tool/libguestfs-test-tool.pod:72
38865 msgid ""
38866 "Note when using these options, you can ignore the business of qemu wrapper "
38867 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38868 "wrapper script for you if one is needed."
38869 msgstr ""
38870
38871 #. type: =head1
38872 #: ../test-tool/libguestfs-test-tool.pod:76
38873 msgid "TRYING OUT A DIFFERENT KERNEL"
38874 msgstr ""
38875
38876 #. type: textblock
38877 #: ../test-tool/libguestfs-test-tool.pod:78
38878 msgid ""
38879 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38880 "libguestfs tries.  You do this by setting the environment variables "
38881 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38882 msgstr ""
38883
38884 #. type: textblock
38885 #: ../test-tool/libguestfs-test-tool.pod:82
38886 msgid ""
38887 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38888 "information."
38889 msgstr ""
38890
38891 #. type: =head1
38892 #: ../test-tool/libguestfs-test-tool.pod:85
38893 msgid "SELF-DIAGNOSIS"
38894 msgstr ""
38895
38896 #. type: textblock
38897 #: ../test-tool/libguestfs-test-tool.pod:87
38898 msgid ""
38899 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38900 "produced by libguestfs-test-tool and/or possible errors."
38901 msgstr ""
38902
38903 #. type: textblock
38904 #: ../test-tool/libguestfs-test-tool.pod:92
38905 msgid ""
38906 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38907 "I<1> if there was an error."
38908 msgstr ""
38909
38910 #. type: textblock
38911 #: ../test-tool/libguestfs-test-tool.pod:97
38912 msgid ""
38913 "For the full list of environment variables which may affect libguestfs, "
38914 "please see the L<guestfs(3)> manual page."
38915 msgstr ""
38916
38917 #. type: textblock
38918 #: ../test-tool/libguestfs-test-tool.pod:102
38919 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38920 msgstr ""
38921
38922 #. type: textblock
38923 #: ../tools/virt-list-filesystems.pl:32
38924 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38925 msgstr ""
38926
38927 #. type: verbatim
38928 #: ../tools/virt-list-filesystems.pl:36
38929 #, no-wrap
38930 msgid ""
38931 " virt-list-filesystems [--options] domname\n"
38932 "\n"
38933 msgstr ""
38934
38935 #. type: verbatim
38936 #: ../tools/virt-list-filesystems.pl:38
38937 #, no-wrap
38938 msgid ""
38939 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38940 "\n"
38941 msgstr ""
38942
38943 #. type: textblock
38944 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38945 msgid ""
38946 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38947 "replacement."
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../tools/virt-list-filesystems.pl:45
38952 msgid ""
38953 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38954 "are contained in a virtual machine or disk image."
38955 msgstr ""
38956
38957 #. type: textblock
38958 #: ../tools/virt-list-filesystems.pl:49
38959 msgid ""
38960 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38961 "functionality.  For more complex cases you should look at the "
38962 "L<guestfish(1)> tool."
38963 msgstr ""
38964
38965 #. type: textblock
38966 #: ../tools/virt-list-filesystems.pl:112
38967 msgid ""
38968 "With this option, C<virt-list-filesystems> displays the type of each "
38969 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38970 msgstr ""
38971
38972 #. type: =item
38973 #: ../tools/virt-list-filesystems.pl:119
38974 msgid "B<-a>"
38975 msgstr ""
38976
38977 #. type: textblock
38978 #: ../tools/virt-list-filesystems.pl:123
38979 msgid ""
38980 "Normally we only show mountable filesystems.  If this option is given then "
38981 "swap devices are shown too."
38982 msgstr ""
38983
38984 #. type: textblock
38985 #: ../tools/virt-list-filesystems.pl:197
38986 msgid ""
38987 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
38988 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
38989 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38990 msgstr ""
38991
38992 #. type: textblock
38993 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38994 msgid "Copyright (C) 2009 Red Hat Inc."
38995 msgstr ""
38996
38997 #. type: textblock
38998 #: ../tools/virt-list-partitions.pl:32
38999 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
39000 msgstr ""
39001
39002 #. type: verbatim
39003 #: ../tools/virt-list-partitions.pl:36
39004 #, no-wrap
39005 msgid ""
39006 " virt-list-partitions [--options] domname\n"
39007 "\n"
39008 msgstr ""
39009
39010 #. type: verbatim
39011 #: ../tools/virt-list-partitions.pl:38
39012 #, no-wrap
39013 msgid ""
39014 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39015 "\n"
39016 msgstr ""
39017
39018 #. type: textblock
39019 #: ../tools/virt-list-partitions.pl:45
39020 msgid ""
39021 "C<virt-list-partitions> is a command line tool to list the partitions that "
39022 "are contained in a virtual machine or disk image.  It is mainly useful as a "
39023 "first step to using L<virt-resize(1)>."
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../tools/virt-list-partitions.pl:50
39028 msgid ""
39029 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39030 "functionality.  For more complex cases you should look at the "
39031 "L<guestfish(1)> tool."
39032 msgstr ""
39033
39034 #. type: textblock
39035 #: ../tools/virt-list-partitions.pl:113
39036 msgid "Show sizes in human-readable form (eg. \"1G\")."
39037 msgstr ""
39038
39039 #. type: textblock
39040 #: ../tools/virt-list-partitions.pl:123
39041 msgid ""
39042 "With this option, C<virt-list-partitions> displays the type and size of each "
39043 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39044 msgstr ""
39045
39046 #. type: =item
39047 #: ../tools/virt-list-partitions.pl:130
39048 msgid "B<-t>"
39049 msgstr ""
39050
39051 #. type: =item
39052 #: ../tools/virt-list-partitions.pl:132
39053 msgid "B<--total>"
39054 msgstr ""
39055
39056 #. type: textblock
39057 #: ../tools/virt-list-partitions.pl:134
39058 msgid "Display the total size of each block device (as a separate row or rows)."
39059 msgstr ""
39060
39061 #. type: textblock
39062 #: ../tools/virt-list-partitions.pl:267
39063 msgid ""
39064 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
39065 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
39066 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39067 msgstr ""
39068
39069 #. type: textblock
39070 #: ../tools/virt-list-partitions.pl:283
39071 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39072 msgstr ""
39073
39074 #. type: textblock
39075 #: ../tools/virt-make-fs.pl:37
39076 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39077 msgstr ""
39078
39079 #. type: verbatim
39080 #: ../tools/virt-make-fs.pl:41
39081 #, no-wrap
39082 msgid ""
39083 " virt-make-fs [--options] input.tar output.img\n"
39084 "\n"
39085 msgstr ""
39086
39087 #. type: verbatim
39088 #: ../tools/virt-make-fs.pl:43
39089 #, no-wrap
39090 msgid ""
39091 " virt-make-fs [--options] input.tar.gz output.img\n"
39092 "\n"
39093 msgstr ""
39094
39095 #. type: verbatim
39096 #: ../tools/virt-make-fs.pl:45
39097 #, no-wrap
39098 msgid ""
39099 " virt-make-fs [--options] directory output.img\n"
39100 "\n"
39101 msgstr ""
39102
39103 #. type: textblock
39104 #: ../tools/virt-make-fs.pl:49
39105 msgid ""
39106 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39107 "archive or some files in a directory.  It is similar to tools like "
39108 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
39109 "it can create common filesystem types like ext2/3 or NTFS, which can be "
39110 "useful if you want to attach these filesystems to existing virtual machines "
39111 "(eg. to import large amounts of read-only data to a VM)."
39112 msgstr ""
39113
39114 #. type: textblock
39115 #: ../tools/virt-make-fs.pl:57
39116 msgid "Basic usage is:"
39117 msgstr ""
39118
39119 #. type: verbatim
39120 #: ../tools/virt-make-fs.pl:59
39121 #, no-wrap
39122 msgid ""
39123 " virt-make-fs input output.img\n"
39124 "\n"
39125 msgstr ""
39126
39127 #. type: textblock
39128 #: ../tools/virt-make-fs.pl:61
39129 msgid ""
39130 "where C<input> is either a directory containing files that you want to add, "
39131 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39132 "C<output.img> is a disk image.  The input type is detected automatically.  "
39133 "The output disk image defaults to a raw ext2 sparse image unless you specify "
39134 "extra flags (see L</OPTIONS> below)."
39135 msgstr ""
39136
39137 #. type: =head2
39138 #: ../tools/virt-make-fs.pl:67
39139 msgid "FILESYSTEM TYPE"
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../tools/virt-make-fs.pl:69
39144 msgid ""
39145 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39146 "libguestfs supports can be used (but I<not> read-only formats like "
39147 "ISO9660).  Here are some of the more common choices:"
39148 msgstr ""
39149
39150 #. type: =item
39151 #: ../tools/virt-make-fs.pl:75
39152 msgid "I<ext3>"
39153 msgstr ""
39154
39155 #. type: textblock
39156 #: ../tools/virt-make-fs.pl:77
39157 msgid ""
39158 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39159 "you are not going to use the filesystem in a way that requires the journal, "
39160 "then this is just wasted overhead."
39161 msgstr ""
39162
39163 #. type: =item
39164 #: ../tools/virt-make-fs.pl:81
39165 msgid "I<ntfs> or I<vfat>"
39166 msgstr ""
39167
39168 #. type: textblock
39169 #: ../tools/virt-make-fs.pl:83
39170 msgid "Useful if exporting data to a Windows guest."
39171 msgstr ""
39172
39173 #. type: textblock
39174 #: ../tools/virt-make-fs.pl:85
39175 msgid ""
39176 "I<Note for vfat>: The tar archive or local directory must only contain files "
39177 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39178 "program running within libguestfs is unable to change the ownership of "
39179 "non-root files, since vfat itself does not support this."
39180 msgstr ""
39181
39182 #. type: =item
39183 #: ../tools/virt-make-fs.pl:90
39184 msgid "I<minix>"
39185 msgstr ""
39186
39187 #. type: textblock
39188 #: ../tools/virt-make-fs.pl:92
39189 msgid ""
39190 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39191 "total filesystem size."
39192 msgstr ""
39193
39194 #. type: =head3
39195 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
39196 msgid "EXAMPLE"
39197 msgstr ""
39198
39199 #. type: verbatim
39200 #: ../tools/virt-make-fs.pl:99
39201 #, no-wrap
39202 msgid ""
39203 " virt-make-fs --type=minix input minixfs.img\n"
39204 "\n"
39205 msgstr ""
39206
39207 #. type: =head2
39208 #: ../tools/virt-make-fs.pl:101
39209 msgid "TO PARTITION OR NOT TO PARTITION"
39210 msgstr ""
39211
39212 #. type: textblock
39213 #: ../tools/virt-make-fs.pl:103
39214 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39215 msgstr ""
39216
39217 #. type: textblock
39218 #: ../tools/virt-make-fs.pl:105
39219 msgid ""
39220 "Adding a partition can make the disk image more compatible with certain "
39221 "virtualized operating systems which don't expect to see a filesystem "
39222 "directly located on a block device (Linux doesn't care and will happily "
39223 "handle both types)."
39224 msgstr ""
39225
39226 #. type: textblock
39227 #: ../tools/virt-make-fs.pl:110
39228 msgid ""
39229 "On the other hand, if you have a partition table then the output image is no "
39230 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
39231 "directly on a partitioned disk image.  (However libguestfs tools such as "
39232 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39233 msgstr ""
39234
39235 #. type: textblock
39236 #: ../tools/virt-make-fs.pl:118
39237 msgid "Add an MBR partition:"
39238 msgstr ""
39239
39240 #. type: verbatim
39241 #: ../tools/virt-make-fs.pl:120
39242 #, no-wrap
39243 msgid ""
39244 " virt-make-fs --partition -- input disk.img\n"
39245 "\n"
39246 msgstr ""
39247
39248 #. type: textblock
39249 #: ../tools/virt-make-fs.pl:122
39250 msgid ""
39251 "If the output disk image could be terabyte-sized or larger, it's better to "
39252 "use an EFI/GPT-compatible partition table:"
39253 msgstr ""
39254
39255 #. type: verbatim
39256 #: ../tools/virt-make-fs.pl:125
39257 #, no-wrap
39258 msgid ""
39259 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39260 "\n"
39261 msgstr ""
39262
39263 #. type: =head2
39264 #: ../tools/virt-make-fs.pl:127
39265 msgid "EXTRA SPACE"
39266 msgstr ""
39267
39268 #. type: textblock
39269 #: ../tools/virt-make-fs.pl:129
39270 msgid ""
39271 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39272 "the files that it contains, but might have extra space.  Depending on how "
39273 "you are going to use the output, you might think this extra space is wasted "
39274 "and want to minimize it, or you might want to leave space so that more files "
39275 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39276 "but you can use the I<--size> flag to leave space in the filesystem if you "
39277 "want it."
39278 msgstr ""
39279
39280 #. type: textblock
39281 #: ../tools/virt-make-fs.pl:137
39282 msgid ""
39283 "An alternative way to leave extra space but not make the output image any "
39284 "bigger is to use an alternative disk image format (instead of the default "
39285 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39286 "image format (check your hypervisor supports this before using it).  This "
39287 "allows you to choose a large I<--size> but the extra space won't actually be "
39288 "allocated in the image until you try to store something in it."
39289 msgstr ""
39290
39291 #. type: textblock
39292 #: ../tools/virt-make-fs.pl:145
39293 msgid ""
39294 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39295 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39296 "to build another image from scratch."
39297 msgstr ""
39298
39299 #. type: verbatim
39300 #: ../tools/virt-make-fs.pl:151
39301 #, no-wrap
39302 msgid ""
39303 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39304 "\n"
39305 msgstr ""
39306
39307 #. type: textblock
39308 #: ../tools/virt-make-fs.pl:179
39309 msgid "Enable debugging information."
39310 msgstr ""
39311
39312 #. type: =item
39313 #: ../tools/virt-make-fs.pl:185
39314 msgid "B<--size=E<lt>NE<gt>>"
39315 msgstr ""
39316
39317 #. type: =item
39318 #: ../tools/virt-make-fs.pl:187
39319 msgid "B<--size=+E<lt>NE<gt>>"
39320 msgstr ""
39321
39322 #. type: =item
39323 #: ../tools/virt-make-fs.pl:189
39324 msgid "B<-s E<lt>NE<gt>>"
39325 msgstr ""
39326
39327 #. type: =item
39328 #: ../tools/virt-make-fs.pl:191
39329 msgid "B<-s +E<lt>NE<gt>>"
39330 msgstr ""
39331
39332 #. type: textblock
39333 #: ../tools/virt-make-fs.pl:193
39334 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39335 msgstr ""
39336
39337 #. type: textblock
39338 #: ../tools/virt-make-fs.pl:196
39339 msgid ""
39340 "If this option is I<not> given, then the output image will be just large "
39341 "enough to contain all the files, with not much wasted space."
39342 msgstr ""
39343
39344 #. type: textblock
39345 #: ../tools/virt-make-fs.pl:199
39346 msgid ""
39347 "To choose a fixed size output disk, specify an absolute number followed by "
39348 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39349 "Petabytes or Exabytes.  This must be large enough to contain all the input "
39350 "files, else you will get an error."
39351 msgstr ""
39352
39353 #. type: textblock
39354 #: ../tools/virt-make-fs.pl:204
39355 msgid ""
39356 "To leave extra space, specify C<+> (plus sign) and a number followed by "
39357 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39358 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
39359 "the input files, and (approximately) an extra 200 MB free space."
39360 msgstr ""
39361
39362 #. type: textblock
39363 #: ../tools/virt-make-fs.pl:210
39364 msgid ""
39365 "Note that virt-make-fs estimates free space, and therefore will not produce "
39366 "filesystems containing precisely the free space requested.  (It is much more "
39367 "expensive and time-consuming to produce a filesystem which has precisely the "
39368 "desired free space)."
39369 msgstr ""
39370
39371 #. type: =item
39372 #: ../tools/virt-make-fs.pl:219
39373 msgid "B<--format=E<lt>fmtE<gt>>"
39374 msgstr ""
39375
39376 #. type: =item
39377 #: ../tools/virt-make-fs.pl:221
39378 msgid "B<-F E<lt>fmtE<gt>>"
39379 msgstr ""
39380
39381 #. type: textblock
39382 #: ../tools/virt-make-fs.pl:223
39383 msgid "Choose the output disk image format."
39384 msgstr ""
39385
39386 #. type: textblock
39387 #: ../tools/virt-make-fs.pl:225
39388 msgid "The default is C<raw> (raw sparse disk image)."
39389 msgstr ""
39390
39391 #. type: textblock
39392 #: ../tools/virt-make-fs.pl:227
39393 msgid ""
39394 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
39395 "that would really make sense here is C<qcow2>."
39396 msgstr ""
39397
39398 #. type: =item
39399 #: ../tools/virt-make-fs.pl:234
39400 msgid "B<--type=E<lt>fsE<gt>>"
39401 msgstr ""
39402
39403 #. type: =item
39404 #: ../tools/virt-make-fs.pl:236
39405 msgid "B<-t E<lt>fsE<gt>>"
39406 msgstr ""
39407
39408 #. type: textblock
39409 #: ../tools/virt-make-fs.pl:238
39410 msgid "Choose the output filesystem type."
39411 msgstr ""
39412
39413 #. type: textblock
39414 #: ../tools/virt-make-fs.pl:240
39415 msgid "The default is C<ext2>."
39416 msgstr ""
39417
39418 #. type: textblock
39419 #: ../tools/virt-make-fs.pl:242
39420 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
39421 msgstr ""
39422
39423 #. type: =item
39424 #: ../tools/virt-make-fs.pl:249
39425 msgid "B<--partition>"
39426 msgstr ""
39427
39428 #. type: =item
39429 #: ../tools/virt-make-fs.pl:251
39430 msgid "B<--partition=E<lt>parttypeE<gt>>"
39431 msgstr ""
39432
39433 #. type: textblock
39434 #: ../tools/virt-make-fs.pl:253
39435 msgid ""
39436 "If specified, this flag adds an MBR partition table to the output disk "
39437 "image."
39438 msgstr ""
39439
39440 #. type: textblock
39441 #: ../tools/virt-make-fs.pl:256
39442 msgid ""
39443 "You can change the partition table type, eg. I<--partition=gpt> for large "
39444 "disks."
39445 msgstr ""
39446
39447 #. type: textblock
39448 #: ../tools/virt-make-fs.pl:259
39449 msgid ""
39450 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39451 "might consider the next parameter to be the partition type.  For example:"
39452 msgstr ""
39453
39454 #. type: verbatim
39455 #: ../tools/virt-make-fs.pl:263
39456 #, no-wrap
39457 msgid ""
39458 " virt-make-fs --partition input.tar output.img\n"
39459 "\n"
39460 msgstr ""
39461
39462 #. type: textblock
39463 #: ../tools/virt-make-fs.pl:265
39464 msgid ""
39465 "would cause virt-make-fs to think you wanted to use a partition type of "
39466 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39467 "dash) between options and the input and output arguments:"
39468 msgstr ""
39469
39470 #. type: verbatim
39471 #: ../tools/virt-make-fs.pl:269
39472 #, no-wrap
39473 msgid ""
39474 " virt-make-fs --partition -- input.tar output.img\n"
39475 "\n"
39476 msgstr ""
39477
39478 #. type: textblock
39479 #: ../tools/virt-make-fs.pl:271
39480 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
39481 msgstr ""
39482
39483 #. type: textblock
39484 #: ../tools/virt-make-fs.pl:559
39485 msgid ""
39486 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39487 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
39488 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39489 msgstr ""
39490
39491 #. type: textblock
39492 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
39493 msgid ""
39494 "When reporting bugs, please enable debugging and capture the I<complete> "
39495 "output:"
39496 msgstr ""
39497
39498 #. type: verbatim
39499 #: ../tools/virt-make-fs.pl:576
39500 #, no-wrap
39501 msgid ""
39502 " export LIBGUESTFS_DEBUG=1\n"
39503 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39504 "\n"
39505 msgstr ""
39506
39507 #. type: textblock
39508 #: ../tools/virt-make-fs.pl:579
39509 msgid ""
39510 "Attach /tmp/virt-make-fs.log to a new bug report at "
39511 "L<https://bugzilla.redhat.com/>"
39512 msgstr ""
39513
39514 #. type: textblock
39515 #: ../tools/virt-tar.pl:33
39516 msgid "virt-tar - Extract or upload files to a virtual machine"
39517 msgstr ""
39518
39519 #. type: verbatim
39520 #: ../tools/virt-tar.pl:37
39521 #, no-wrap
39522 msgid ""
39523 " virt-tar [--options] -x domname directory tarball\n"
39524 "\n"
39525 msgstr ""
39526
39527 #. type: verbatim
39528 #: ../tools/virt-tar.pl:39
39529 #, no-wrap
39530 msgid ""
39531 " virt-tar [--options] -u domname tarball directory\n"
39532 "\n"
39533 msgstr ""
39534
39535 #. type: verbatim
39536 #: ../tools/virt-tar.pl:41
39537 #, no-wrap
39538 msgid ""
39539 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39540 "\n"
39541 msgstr ""
39542
39543 #. type: verbatim
39544 #: ../tools/virt-tar.pl:43
39545 #, no-wrap
39546 msgid ""
39547 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39548 "\n"
39549 msgstr ""
39550
39551 #. type: =head2
39552 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39553 msgid "NOTE"
39554 msgstr ""
39555
39556 #. type: textblock
39557 #: ../tools/virt-tar.pl:47
39558 msgid ""
39559 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
39560 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../tools/virt-tar.pl:52
39565 msgid "Download C</home> from the VM into a local tarball:"
39566 msgstr ""
39567
39568 #. type: verbatim
39569 #: ../tools/virt-tar.pl:54
39570 #, no-wrap
39571 msgid ""
39572 " virt-tar -x domname /home home.tar\n"
39573 "\n"
39574 msgstr ""
39575
39576 #. type: verbatim
39577 #: ../tools/virt-tar.pl:56
39578 #, no-wrap
39579 msgid ""
39580 " virt-tar -zx domname /home home.tar.gz\n"
39581 "\n"
39582 msgstr ""
39583
39584 #. type: textblock
39585 #: ../tools/virt-tar.pl:58
39586 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39587 msgstr ""
39588
39589 #. type: verbatim
39590 #: ../tools/virt-tar.pl:60
39591 #, no-wrap
39592 msgid ""
39593 " virt-tar -u domname uploadstuff.tar /tmp\n"
39594 "\n"
39595 msgstr ""
39596
39597 #. type: verbatim
39598 #: ../tools/virt-tar.pl:62
39599 #, no-wrap
39600 msgid ""
39601 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39602 "\n"
39603 msgstr ""
39604
39605 #. type: textblock
39606 #: ../tools/virt-tar.pl:66
39607 msgid ""
39608 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39609 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39610 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39611 msgstr ""
39612
39613 #. type: textblock
39614 #: ../tools/virt-tar.pl:71
39615 msgid ""
39616 "You can use I<-x> (extract) on live virtual machines, but you might get "
39617 "inconsistent results or errors if there is filesystem activity inside the "
39618 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39619 "work, but the only way to guarantee consistent results is if the virtual "
39620 "machine is shut down."
39621 msgstr ""
39622
39623 #. type: textblock
39624 #: ../tools/virt-tar.pl:79
39625 msgid ""
39626 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39627 "parts of a guest filesystem.  There are many possibilities: making backups, "
39628 "uploading data files, snooping on guest activity, fixing or customizing "
39629 "guests, etc."
39630 msgstr ""
39631
39632 #. type: textblock
39633 #: ../tools/virt-tar.pl:84
39634 msgid ""
39635 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39636 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39637 "should look at the L<guestfish(1)> tool."
39638 msgstr ""
39639
39640 #. type: textblock
39641 #: ../tools/virt-tar.pl:88
39642 msgid ""
39643 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39644 "its contents (recursively) from the virtual machine into a local tarball.  "
39645 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39646 "virtual machine.  You cannot use these two options together."
39647 msgstr ""
39648
39649 #. type: textblock
39650 #: ../tools/virt-tar.pl:94
39651 msgid ""
39652 "In addition, you may need to use the I<-z> (gZip) option to enable "
39653 "compression.  When uploading, you have to specify I<-z> if the upload file "
39654 "is compressed because virt-tar won't detect this on its own."
39655 msgstr ""
39656
39657 #. type: textblock
39658 #: ../tools/virt-tar.pl:98
39659 msgid ""
39660 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39661 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39662 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39663 "the L<libguestfs(3)> API)."
39664 msgstr ""
39665
39666 #. type: =item
39667 #: ../tools/virt-tar.pl:160
39668 msgid "B<--extract>"
39669 msgstr ""
39670
39671 #. type: =item
39672 #: ../tools/virt-tar.pl:162
39673 msgid "B<--download>"
39674 msgstr ""
39675
39676 #. type: =item
39677 #: ../tools/virt-tar.pl:164
39678 msgid "B<-u>"
39679 msgstr ""
39680
39681 #. type: =item
39682 #: ../tools/virt-tar.pl:166
39683 msgid "B<--upload>"
39684 msgstr ""
39685
39686 #. type: textblock
39687 #: ../tools/virt-tar.pl:168
39688 msgid ""
39689 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39690 "local tarball."
39691 msgstr ""
39692
39693 #. type: textblock
39694 #: ../tools/virt-tar.pl:171
39695 msgid ""
39696 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39697 "Please read the L</WARNING> section above before using this option."
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../tools/virt-tar.pl:175
39702 msgid "You must specify exactly one of these options."
39703 msgstr ""
39704
39705 #. type: =item
39706 #: ../tools/virt-tar.pl:181
39707 msgid "B<-z>"
39708 msgstr ""
39709
39710 #. type: =item
39711 #: ../tools/virt-tar.pl:183
39712 msgid "B<--gzip>"
39713 msgstr ""
39714
39715 #. type: textblock
39716 #: ../tools/virt-tar.pl:185
39717 msgid "Specify that the input or output tarball is gzip-compressed."
39718 msgstr ""
39719
39720 #. type: textblock
39721 #: ../tools/virt-tar.pl:298
39722 msgid ""
39723 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
39724 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39725 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
39726 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39727 msgstr ""
39728
39729 #. type: textblock
39730 #: ../tools/virt-win-reg.pl:37
39731 msgid ""
39732 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
39733 "guest"
39734 msgstr ""
39735
39736 #. type: verbatim
39737 #: ../tools/virt-win-reg.pl:41
39738 #, no-wrap
39739 msgid ""
39740 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39741 "\n"
39742 msgstr ""
39743
39744 #. type: verbatim
39745 #: ../tools/virt-win-reg.pl:43
39746 #, no-wrap
39747 msgid ""
39748 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39749 "\n"
39750 msgstr ""
39751
39752 #. type: verbatim
39753 #: ../tools/virt-win-reg.pl:45
39754 #, no-wrap
39755 msgid ""
39756 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39757 "\n"
39758 msgstr ""
39759
39760 #. type: verbatim
39761 #: ../tools/virt-win-reg.pl:47
39762 #, no-wrap
39763 msgid ""
39764 " virt-win-reg --merge domname [input.reg ...]\n"
39765 "\n"
39766 msgstr ""
39767
39768 #. type: verbatim
39769 #: ../tools/virt-win-reg.pl:49
39770 #, no-wrap
39771 msgid ""
39772 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39773 "\n"
39774 msgstr ""
39775
39776 #. type: textblock
39777 #: ../tools/virt-win-reg.pl:53
39778 msgid ""
39779 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39780 "virtual machines.  If you do this, you I<will> get irreversible disk "
39781 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39782 "but doesn't catch all cases."
39783 msgstr ""
39784
39785 #. type: textblock
39786 #: ../tools/virt-win-reg.pl:58
39787 msgid ""
39788 "Modifying the Windows Registry is an inherently risky operation.  The format "
39789 "is deliberately obscure and undocumented, and Registry changes can leave the "
39790 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39791 "you have a reliable backup first."
39792 msgstr ""
39793
39794 #. type: textblock
39795 #: ../tools/virt-win-reg.pl:65
39796 msgid ""
39797 "This program can export and merge Windows Registry entries from a Windows "
39798 "guest."
39799 msgstr ""
39800
39801 #. type: textblock
39802 #: ../tools/virt-win-reg.pl:68
39803 msgid ""
39804 "The first parameter is the libvirt guest name or the raw disk image of a "
39805 "Windows guest."
39806 msgstr ""
39807
39808 #. type: textblock
39809 #: ../tools/virt-win-reg.pl:71
39810 msgid ""
39811 "If I<--merge> is I<not> specified, then the chosen registry key is "
39812 "displayed/exported (recursively).  For example:"
39813 msgstr ""
39814
39815 #. type: verbatim
39816 #: ../tools/virt-win-reg.pl:74
39817 #, no-wrap
39818 msgid ""
39819 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39820 "\n"
39821 msgstr ""
39822
39823 #. type: textblock
39824 #: ../tools/virt-win-reg.pl:76
39825 msgid "You can also display single values from within registry keys, for example:"
39826 msgstr ""
39827
39828 #. type: verbatim
39829 #: ../tools/virt-win-reg.pl:79
39830 #, no-wrap
39831 msgid ""
39832 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39833 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39834 " Windows 7 Enterprise\n"
39835 "\n"
39836 msgstr ""
39837
39838 #. type: textblock
39839 #: ../tools/virt-win-reg.pl:83
39840 msgid ""
39841 "With I<--merge>, you can merge a textual regedit file into the Windows "
39842 "Registry:"
39843 msgstr ""
39844
39845 #. type: verbatim
39846 #: ../tools/virt-win-reg.pl:86
39847 #, no-wrap
39848 msgid ""
39849 " $ virt-win-reg --merge Windows7 changes.reg\n"
39850 "\n"
39851 msgstr ""
39852
39853 #. type: textblock
39854 #: ../tools/virt-win-reg.pl:90
39855 msgid ""
39856 "This program is only meant for simple access to the registry.  If you want "
39857 "to do complicated things with the registry, we suggest you download the "
39858 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39859 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39860 "L<hivexregedit(1)>."
39861 msgstr ""
39862
39863 #. type: =item
39864 #: ../tools/virt-win-reg.pl:159
39865 msgid "B<--merge>"
39866 msgstr ""
39867
39868 #. type: textblock
39869 #: ../tools/virt-win-reg.pl:161
39870 msgid ""
39871 "In merge mode, this merges a textual regedit file into the Windows Registry "
39872 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39873 "displays or exports Registry entries instead."
39874 msgstr ""
39875
39876 #. type: textblock
39877 #: ../tools/virt-win-reg.pl:165
39878 msgid ""
39879 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39880 "result in disk corruption.  However exporting (without this flag)  is always "
39881 "safe."
39882 msgstr ""
39883
39884 #. type: =item
39885 #: ../tools/virt-win-reg.pl:173
39886 msgid "B<--encoding> UTF-16LE|ASCII"
39887 msgstr ""
39888
39889 #. type: textblock
39890 #: ../tools/virt-win-reg.pl:175
39891 msgid ""
39892 "When merging (only), you may need to specify the encoding for strings to be "
39893 "used in the hive file.  This is explained in detail in "
39894 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
39895 msgstr ""
39896
39897 #. type: textblock
39898 #: ../tools/virt-win-reg.pl:179
39899 msgid ""
39900 "The default is to use UTF-16LE, which should work with recent versions of "
39901 "Windows."
39902 msgstr ""
39903
39904 #. type: =item
39905 #: ../tools/virt-win-reg.pl:186
39906 msgid "B<--unsafe-printable-strings>"
39907 msgstr ""
39908
39909 #. type: textblock
39910 #: ../tools/virt-win-reg.pl:188
39911 msgid ""
39912 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39913 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39914 "present."
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../tools/virt-win-reg.pl:192
39919 msgid ""
39920 "This is unsafe and does not preserve the fidelity of strings in the original "
39921 "Registry for various reasons:"
39922 msgstr ""
39923
39924 #. type: textblock
39925 #: ../tools/virt-win-reg.pl:199
39926 msgid ""
39927 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39928 "other encodings will be corrupted by this transformation."
39929 msgstr ""
39930
39931 #. type: textblock
39932 #: ../tools/virt-win-reg.pl:204
39933 msgid ""
39934 "Assumes that everything which has type 1 or 2 is really a string and that "
39935 "everything else is not a string, but the type field in real Registries is "
39936 "not reliable."
39937 msgstr ""
39938
39939 #. type: textblock
39940 #: ../tools/virt-win-reg.pl:210
39941 msgid ""
39942 "Loses information about whether a zero codepoint followed the string in the "
39943 "Registry or not."
39944 msgstr ""
39945
39946 #. type: textblock
39947 #: ../tools/virt-win-reg.pl:215
39948 msgid ""
39949 "This all happens because the Registry itself contains no information about "
39950 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../tools/virt-win-reg.pl:219
39955 msgid ""
39956 "You should only use this option for quick hacking and debugging of the "
39957 "Registry contents, and I<never> use it if the output is going to be passed "
39958 "into another program or stored in another Registry."
39959 msgstr ""
39960
39961 #. type: =head1
39962 #: ../tools/virt-win-reg.pl:556
39963 msgid "SUPPORTED SYSTEMS"
39964 msgstr ""
39965
39966 #. type: textblock
39967 #: ../tools/virt-win-reg.pl:558
39968 msgid ""
39969 "The program currently supports Windows NT-derived guests starting with "
39970 "Windows XP through to at least Windows 7."
39971 msgstr ""
39972
39973 #. type: textblock
39974 #: ../tools/virt-win-reg.pl:561
39975 msgid "The following Registry keys are supported:"
39976 msgstr ""
39977
39978 #. type: =item
39979 #: ../tools/virt-win-reg.pl:565
39980 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39981 msgstr ""
39982
39983 #. type: =item
39984 #: ../tools/virt-win-reg.pl:567
39985 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39986 msgstr ""
39987
39988 #. type: =item
39989 #: ../tools/virt-win-reg.pl:569
39990 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39991 msgstr ""
39992
39993 #. type: =item
39994 #: ../tools/virt-win-reg.pl:571
39995 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39996 msgstr ""
39997
39998 #. type: =item
39999 #: ../tools/virt-win-reg.pl:573
40000 msgid "C<HKEY_USERS\\.DEFAULT>"
40001 msgstr ""
40002
40003 #. type: =item
40004 #: ../tools/virt-win-reg.pl:575
40005 msgid "C<HKEY_USERS\\I<SID>>"
40006 msgstr ""
40007
40008 #. type: textblock
40009 #: ../tools/virt-win-reg.pl:577
40010 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40011 msgstr ""
40012
40013 #. type: =item
40014 #: ../tools/virt-win-reg.pl:579
40015 msgid "C<HKEY_USERS\\I<username>>"
40016 msgstr ""
40017
40018 #. type: textblock
40019 #: ../tools/virt-win-reg.pl:581
40020 msgid "where I<username> is a local user name (this is a libguestfs extension)."
40021 msgstr ""
40022
40023 #. type: textblock
40024 #: ../tools/virt-win-reg.pl:585
40025 msgid ""
40026 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40027 "C<HKEY_USERS>."
40028 msgstr ""
40029
40030 #. type: textblock
40031 #: ../tools/virt-win-reg.pl:588
40032 msgid ""
40033 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40034 "supported (there is no \"current user\")."
40035 msgstr ""
40036
40037 #. type: =head1
40038 #: ../tools/virt-win-reg.pl:591
40039 msgid "ENCODING"
40040 msgstr ""
40041
40042 #. type: textblock
40043 #: ../tools/virt-win-reg.pl:593
40044 msgid ""
40045 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40046 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
40047 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
40048 "with Windows-style line endings, you may need to reencode the whole file "
40049 "before or after processing."
40050 msgstr ""
40051
40052 #. type: textblock
40053 #: ../tools/virt-win-reg.pl:599
40054 msgid ""
40055 "To reencode a file from Windows format to Linux (before processing it with "
40056 "the I<--merge> option), you would do something like this:"
40057 msgstr ""
40058
40059 #. type: verbatim
40060 #: ../tools/virt-win-reg.pl:602
40061 #, no-wrap
40062 msgid ""
40063 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40064 "\n"
40065 msgstr ""
40066
40067 #. type: textblock
40068 #: ../tools/virt-win-reg.pl:604
40069 msgid ""
40070 "To go in the opposite direction, after exporting and before sending the file "
40071 "to a Windows user, do something like this:"
40072 msgstr ""
40073
40074 #. type: verbatim
40075 #: ../tools/virt-win-reg.pl:607
40076 #, no-wrap
40077 msgid ""
40078 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40079 "\n"
40080 msgstr ""
40081
40082 #. type: textblock
40083 #: ../tools/virt-win-reg.pl:609
40084 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40085 msgstr ""
40086
40087 #. type: textblock
40088 #: ../tools/virt-win-reg.pl:611
40089 msgid ""
40090 "If you are unsure about the current encoding, use the L<file(1)> command.  "
40091 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
40092 "Windows-style (CRLF) line endings, like this:"
40093 msgstr ""
40094
40095 #. type: verbatim
40096 #: ../tools/virt-win-reg.pl:615
40097 #, no-wrap
40098 msgid ""
40099 " $ file software.reg\n"
40100 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40101 " with CRLF line terminators\n"
40102 "\n"
40103 msgstr ""
40104
40105 #. type: textblock
40106 #: ../tools/virt-win-reg.pl:619
40107 msgid "This file would need conversion before you could I<--merge> it."
40108 msgstr ""
40109
40110 #. type: =head1
40111 #: ../tools/virt-win-reg.pl:621
40112 msgid "CurrentControlSet etc."
40113 msgstr ""
40114
40115 #. type: textblock
40116 #: ../tools/virt-win-reg.pl:623
40117 msgid ""
40118 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40119 "Registry at the level of the hive file, and therefore you cannot modify "
40120 "these."
40121 msgstr ""
40122
40123 #. type: textblock
40124 #: ../tools/virt-win-reg.pl:627
40125 msgid ""
40126 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40127 "circumstances it might refer to another control set.  The way to find out is "
40128 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40129 msgstr ""
40130
40131 #. type: verbatim
40132 #: ../tools/virt-win-reg.pl:631
40133 #, no-wrap
40134 msgid ""
40135 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40136 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40137 " \"Current\"=dword:00000001\n"
40138 " \"Default\"=dword:00000001\n"
40139 " \"Failed\"=dword:00000000\n"
40140 " \"LastKnownGood\"=dword:00000002\n"
40141 "\n"
40142 msgstr ""
40143
40144 #. type: textblock
40145 #: ../tools/virt-win-reg.pl:638
40146 msgid "\"Current\" is the one which Windows will choose when it boots."
40147 msgstr ""
40148
40149 #. type: textblock
40150 #: ../tools/virt-win-reg.pl:640
40151 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
40152 msgstr ""
40153
40154 #. type: =head1
40155 #: ../tools/virt-win-reg.pl:643
40156 msgid "DELETING REGISTRY KEYS AND VALUES"
40157 msgstr ""
40158
40159 #. type: textblock
40160 #: ../tools/virt-win-reg.pl:645
40161 msgid "To delete a whole registry key, use the syntax:"
40162 msgstr ""
40163
40164 #. type: verbatim
40165 #: ../tools/virt-win-reg.pl:647
40166 #, no-wrap
40167 msgid ""
40168 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
40169 "\n"
40170 msgstr ""
40171
40172 #. type: textblock
40173 #: ../tools/virt-win-reg.pl:649
40174 msgid "To delete a single value within a key, use the syntax:"
40175 msgstr ""
40176
40177 #. type: verbatim
40178 #: ../tools/virt-win-reg.pl:651
40179 #, no-wrap
40180 msgid ""
40181 " [HKEY_LOCAL_MACHINE\\Foo]\n"
40182 " \"Value\"=-\n"
40183 "\n"
40184 msgstr ""
40185
40186 #. type: =head1
40187 #: ../tools/virt-win-reg.pl:654
40188 msgid "WINDOWS TIPS"
40189 msgstr ""
40190
40191 #. type: textblock
40192 #: ../tools/virt-win-reg.pl:656
40193 msgid ""
40194 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40195 "be shut off, else you will get disk corruption."
40196 msgstr ""
40197
40198 #. type: =head2
40199 #: ../tools/virt-win-reg.pl:659
40200 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40201 msgstr ""
40202
40203 #. type: textblock
40204 #: ../tools/virt-win-reg.pl:661
40205 msgid ""
40206 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40207 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40208 "is uploaded into C<C:\\>:"
40209 msgstr ""
40210
40211 #. type: verbatim
40212 #: ../tools/virt-win-reg.pl:665
40213 #, no-wrap
40214 msgid ""
40215 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40216 "\n"
40217 msgstr ""
40218
40219 #. type: textblock
40220 #: ../tools/virt-win-reg.pl:667
40221 msgid "Prepare a regedit file containing the registry change:"
40222 msgstr ""
40223
40224 #. type: verbatim
40225 #: ../tools/virt-win-reg.pl:669
40226 #, no-wrap
40227 msgid ""
40228 " cat > test.reg <<'EOF'\n"
40229 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40230 " \"Test\"=\"c:\\\\test.bat\"\n"
40231 " EOF\n"
40232 "\n"
40233 msgstr ""
40234
40235 #. type: textblock
40236 #: ../tools/virt-win-reg.pl:674
40237 msgid ""
40238 "In this example we use the key C<RunOnce> which means that the script will "
40239 "run precisely once when the first user logs in.  If you want it to run every "
40240 "time a user logs in, replace C<RunOnce> with C<Run>."
40241 msgstr ""
40242
40243 #. type: textblock
40244 #: ../tools/virt-win-reg.pl:678
40245 msgid "Now update the registry:"
40246 msgstr ""
40247
40248 #. type: verbatim
40249 #: ../tools/virt-win-reg.pl:680
40250 #, no-wrap
40251 msgid ""
40252 " virt-win-reg --merge WindowsGuest test.reg\n"
40253 "\n"
40254 msgstr ""
40255
40256 #. type: =head2
40257 #: ../tools/virt-win-reg.pl:682
40258 msgid "INSTALLING A SERVICE"
40259 msgstr ""
40260
40261 #. type: textblock
40262 #: ../tools/virt-win-reg.pl:684
40263 msgid ""
40264 "This section assumes you are familiar with Windows services, and you either "
40265 "have a program which handles the Windows Service Control Protocol directly "
40266 "or you want to run any program using a service wrapper like SrvAny or the "
40267 "free RHSrvAny."
40268 msgstr ""
40269
40270 #. type: textblock
40271 #: ../tools/virt-win-reg.pl:689
40272 msgid ""
40273 "First upload the program and optionally the service wrapper.  In this case "
40274 "the test program is called C<test.exe> and we are using the RHSrvAny "
40275 "wrapper:"
40276 msgstr ""
40277
40278 #. type: verbatim
40279 #: ../tools/virt-win-reg.pl:693
40280 #, no-wrap
40281 msgid ""
40282 " guestfish -i -d WindowsGuest <<EOF\n"
40283 "   upload rhsrvany.exe /rhsrvany.exe\n"
40284 "   upload test.exe /test.exe\n"
40285 " EOF\n"
40286 "\n"
40287 msgstr ""
40288
40289 #. type: textblock
40290 #: ../tools/virt-win-reg.pl:698
40291 msgid ""
40292 "Prepare a regedit file containing the registry changes.  In this example, "
40293 "the first registry change is needed for the service itself or the service "
40294 "wrapper (if used).  The second registry change is only needed because I am "
40295 "using the RHSrvAny service wrapper."
40296 msgstr ""
40297
40298 #. type: verbatim
40299 #: ../tools/virt-win-reg.pl:703
40300 #, no-wrap
40301 msgid ""
40302 " cat > service.reg <<'EOF'\n"
40303 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40304 " \"Type\"=dword:00000010\n"
40305 " \"Start\"=dword:00000002\n"
40306 " \"ErrorControl\"=dword:00000001\n"
40307 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40308 " \"DisplayName\"=\"RHSrvAny\"\n"
40309 " \"ObjectName\"=\"NetworkService\"\n"
40310 " \n"
40311 msgstr ""
40312
40313 #. type: verbatim
40314 #: ../tools/virt-win-reg.pl:712
40315 #, no-wrap
40316 msgid ""
40317 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40318 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40319 " \"PWD\"=\"c:\\\\Temp\"\n"
40320 " EOF\n"
40321 "\n"
40322 msgstr ""
40323
40324 #. type: textblock
40325 #: ../tools/virt-win-reg.pl:723
40326 msgid ""
40327 "For use of C<ControlSet001> see the section above in this manual page.  You "
40328 "may need to adjust this according to the control set that is in use by the "
40329 "guest."
40330 msgstr ""
40331
40332 #. type: textblock
40333 #: ../tools/virt-win-reg.pl:729
40334 msgid ""
40335 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40336 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40337 "privileged account."
40338 msgstr ""
40339
40340 #. type: textblock
40341 #: ../tools/virt-win-reg.pl:735
40342 msgid ""
40343 "For the meaning of the magic numbers, see this Microsoft KB article: "
40344 "L<http://support.microsoft.com/kb/103000>."
40345 msgstr ""
40346
40347 #. type: textblock
40348 #: ../tools/virt-win-reg.pl:740
40349 msgid "Update the registry:"
40350 msgstr ""
40351
40352 #. type: verbatim
40353 #: ../tools/virt-win-reg.pl:742
40354 #, no-wrap
40355 msgid ""
40356 " virt-win-reg --merge WindowsGuest service.reg\n"
40357 "\n"
40358 msgstr ""
40359
40360 #. type: textblock
40361 #: ../tools/virt-win-reg.pl:746
40362 msgid ""
40363 "Be careful when passing parameters containing C<\\> (backslash) in the "
40364 "shell.  Usually you will have to use 'single quotes' or double backslashes "
40365 "(but not both) to protect them from the shell."
40366 msgstr ""
40367
40368 #. type: textblock
40369 #: ../tools/virt-win-reg.pl:750
40370 msgid "Paths and value names are case-insensitive."
40371 msgstr ""
40372
40373 #. type: textblock
40374 #: ../tools/virt-win-reg.pl:759
40375 msgid ""
40376 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
40377 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
40378 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
40379 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40380 msgstr ""
40381
40382 #. type: verbatim
40383 #: ../tools/virt-win-reg.pl:777
40384 #, no-wrap
40385 msgid ""
40386 " export LIBGUESTFS_DEBUG=1\n"
40387 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40388 "\n"
40389 msgstr ""
40390
40391 #. type: textblock
40392 #: ../tools/virt-win-reg.pl:780
40393 msgid ""
40394 "Attach /tmp/virt-win-reg.log to a new bug report at "
40395 "L<https://bugzilla.redhat.com/>"
40396 msgstr ""