98fbe59632ed81d4ffe63b6c4aad24530e804cd4
[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.15.7\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-29 14:22+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "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 ../examples/guestfs-testing.pod:3 ../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 ../examples/guestfs-testing.pod:7 ../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:31 ../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:112 ../resize/virt-resize.pod:262 ../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:116 ../resize/virt-resize.pod:266 ../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:118 ../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:120
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:122
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:128
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:135
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:137
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:139 ../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:142
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:145
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:147
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:149
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:152
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:154
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:156
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:351 ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
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:165
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:169
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:172
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:491 ../sparsify/virt-sparsify.pod:171
354 msgid "B<-q>"
355 msgstr ""
356
357 #. type: =item
358 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493 ../sparsify/virt-sparsify.pod:173
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:219 ../sparsify/virt-sparsify.pod:177
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:221 ../sparsify/virt-sparsify.pod:179
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:223 ../sparsify/virt-sparsify.pod:181
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:225 ../resize/virt-resize.pod:561 ../sparsify/virt-sparsify.pod:183
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:227 ../resize/virt-resize.pod:563 ../sparsify/virt-sparsify.pod:185 ../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:229 ../resize/virt-resize.pod:565 ../sparsify/virt-sparsify.pod:187 ../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:240 ../sparsify/virt-sparsify.pod:189 ../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:242 ../sparsify/virt-sparsify.pod:191
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 consumer 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/hw_sector_size\n"
534 " 512\n"
535 " $ cat /sys/block/sda/queue/physical_block_size\n"
536 " 512\n"
537 " $ cat /sys/block/sda/queue/logical_block_size\n"
538 " 512\n"
539 " $ cat /sys/block/sda/queue/minimum_io_size\n"
540 " 512\n"
541 " $ cat /sys/block/sda/queue/optimal_io_size\n"
542 " 0\n"
543 "\n"
544 msgstr ""
545
546 #. type: textblock
547 #: ../align/virt-alignment-scan.pod:245
548 msgid "For a new consumer hard drive with 4Kbyte sectors:"
549 msgstr ""
550
551 #. type: verbatim
552 #: ../align/virt-alignment-scan.pod:247
553 #, no-wrap
554 msgid ""
555 " $ cat /sys/block/sda/queue/hw_sector_size\n"
556 " 4096\n"
557 " $ cat /sys/block/sda/queue/physical_block_size\n"
558 " 4096\n"
559 " $ cat /sys/block/sda/queue/logical_block_size\n"
560 " 4096\n"
561 " $ cat /sys/block/sda/queue/minimum_io_size\n"
562 " 4096\n"
563 " $ cat /sys/block/sda/queue/optimal_io_size\n"
564 " 0\n"
565 "\n"
566 msgstr ""
567
568 #. type: textblock
569 #: ../align/virt-alignment-scan.pod:258
570 msgid "For a NetApp LUN:"
571 msgstr ""
572
573 #. type: verbatim
574 #: ../align/virt-alignment-scan.pod:260
575 #, no-wrap
576 msgid ""
577 " $ cat /sys/block/sdc/queue/logical_block_size\n"
578 " 512\n"
579 " $ cat /sys/block/sdc/queue/physical_block_size\n"
580 " 512\n"
581 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
582 " 4096\n"
583 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
584 " 65536\n"
585 "\n"
586 msgstr ""
587
588 #. type: textblock
589 #: ../align/virt-alignment-scan.pod:269
590 msgid ""
591 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
592 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
593 msgstr ""
594
595 #. type: textblock
596 #: ../align/virt-alignment-scan.pod:273
597 msgid ""
598 "For detailed information about what these numbers mean, see "
599 "L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
600 msgstr ""
601
602 #. type: textblock
603 #: ../align/virt-alignment-scan.pod:276
604 msgid ""
605 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
606 "for providing NetApp data and additional information.]"
607 msgstr ""
608
609 #. type: =head2
610 #: ../align/virt-alignment-scan.pod:279
611 msgid "1 MB PARTITION ALIGNMENT"
612 msgstr ""
613
614 #. type: textblock
615 #: ../align/virt-alignment-scan.pod:281
616 msgid ""
617 "Microsoft picked 1 MB as the default alignment for all partitions starting "
618 "with Windows 2008 Server, and Linux has followed this."
619 msgstr ""
620
621 #. type: textblock
622 #: ../align/virt-alignment-scan.pod:284
623 msgid ""
624 "Assuming 512 byte sectors in the guest, you will now see the first partition "
625 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
626 "multiple of 2048 sectors."
627 msgstr ""
628
629 #. type: textblock
630 #: ../align/virt-alignment-scan.pod:288
631 msgid ""
632 "1 MB alignment is compatible with all current alignment requirements (4K, "
633 "64K) and provides room for future growth in physical block sizes."
634 msgstr ""
635
636 #. type: =head2
637 #: ../align/virt-alignment-scan.pod:291
638 msgid "SETTING ALIGNMENT"
639 msgstr ""
640
641 #. type: textblock
642 #: ../align/virt-alignment-scan.pod:293
643 msgid ""
644 "L<virt-resize(1)> can change the alignment of the partitions of some "
645 "guests.  Currently it can fully align all the partitions of all Windows "
646 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
647 "it can align the second and subsequent partitions, so the majority of OS "
648 "accesses except at boot will be aligned."
649 msgstr ""
650
651 #. type: textblock
652 #: ../align/virt-alignment-scan.pod:299
653 msgid ""
654 "Another way to correct partition alignment problems is to reinstall your "
655 "guest operating systems.  If you install operating systems from templates, "
656 "ensure these have correct partition alignment too."
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:303
661 msgid ""
662 "For older versions of Windows, the following NetApp document contains useful "
663 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:306
668 msgid ""
669 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
670 "an explicit C<%pre> section that creates aligned partitions using "
671 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
672 "document above contains an example."
673 msgstr ""
674
675 #. type: =head1
676 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231 ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483 ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367 ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:676 ../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
677 msgid "SHELL QUOTING"
678 msgstr ""
679
680 #. type: textblock
681 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233 ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485 ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369 ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:678 ../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
682 msgid ""
683 "Libvirt guest names can contain arbitrary characters, some of which have "
684 "meaning to the shell such as C<#> and space.  You may need to quote or "
685 "escape these characters on the command line.  See the shell manual page "
686 "L<sh(1)> for details."
687 msgstr ""
688
689 #. type: =head1
690 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238 ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490 ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390 ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:245 ../test-tool/libguestfs-test-tool.pod:90
691 msgid "EXIT STATUS"
692 msgstr ""
693
694 #. type: textblock
695 #: ../align/virt-alignment-scan.pod:320
696 msgid "This program returns:"
697 msgstr ""
698
699 #. type: =item
700 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343 ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187 ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202 ../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 ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114 ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:359 ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372 ../resize/virt-resize.pod:378 ../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:641 ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098 ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339 ../src/guestfs.pod:3343 ../src/guestfs.pod:3347 ../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
701 msgid "*"
702 msgstr ""
703
704 #. type: textblock
705 #: ../align/virt-alignment-scan.pod:326
706 msgid "0"
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:328
711 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
712 msgstr ""
713
714 #. type: textblock
715 #: ../align/virt-alignment-scan.pod:332
716 msgid "1"
717 msgstr ""
718
719 #. type: textblock
720 #: ../align/virt-alignment-scan.pod:334
721 msgid "an error scanning the disk image or guest"
722 msgstr ""
723
724 #. type: textblock
725 #: ../align/virt-alignment-scan.pod:338
726 msgid "2"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:340
731 msgid ""
732 "successful exit, some partitions have alignment E<lt> 64K which can result "
733 "in poor performance on high end network storage"
734 msgstr ""
735
736 #. type: textblock
737 #: ../align/virt-alignment-scan.pod:345
738 msgid "3"
739 msgstr ""
740
741 #. type: textblock
742 #: ../align/virt-alignment-scan.pod:347
743 msgid ""
744 "successful exit, some partitions have alignment E<lt> 4K which can result in "
745 "poor performance on most hypervisors"
746 msgstr ""
747
748 #. type: =head1
749 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243 ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495 ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253 ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../examples/guestfs-testing.pod:291 ../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:395 ../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:325 ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:269 ../src/guestfs.pod:3275 ../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
750 msgid "SEE ALSO"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:354
755 msgid ""
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
757 "L<virt-resize(1)>, L<http://libguestfs.org/>."
758 msgstr ""
759
760 #. type: =head1
761 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507 ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334 ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:282 ../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
762 msgid "AUTHOR"
763 msgstr ""
764
765 #. type: textblock
766 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254 ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509 ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410 ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:713 ../sparsify/virt-sparsify.pod:284 ../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
767 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
768 msgstr ""
769
770 #. type: =head1
771 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511 ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265 ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 ../examples/guestfs-testing.pod:302 ../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:418 ../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:338 ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:286 ../src/guestfs.pod:3358 ../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
772 msgid "COPYRIGHT"
773 msgstr ""
774
775 #. type: textblock
776 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507 ../sparsify/virt-sparsify.pod:288
777 msgid "Copyright (C) 2011 Red Hat Inc."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260 ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515 ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269 ../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:422 ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:719 ../sparsify/virt-sparsify.pod:290 ../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
782 msgid ""
783 "This program is free software; you can redistribute it and/or modify it "
784 "under the terms of the GNU General Public License as published by the Free "
785 "Software Foundation; either version 2 of the License, or (at your option) "
786 "any later version."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265 ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520 ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274 ../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:427 ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:724 ../sparsify/virt-sparsify.pod:295 ../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
791 msgid ""
792 "This program is distributed in the hope that it will be useful, but WITHOUT "
793 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
794 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
795 "more details."
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270 ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525 ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279 ../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:432 ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:729 ../sparsify/virt-sparsify.pod:300 ../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
800 msgid ""
801 "You should have received a copy of the GNU General Public License along with "
802 "this program; if not, write to the Free Software Foundation, Inc., 51 "
803 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
804 msgstr ""
805
806 #. type: textblock
807 #: ../cat/virt-cat.pod:5
808 msgid "virt-cat - Display files in a virtual machine"
809 msgstr ""
810
811 #. type: verbatim
812 #: ../cat/virt-cat.pod:9
813 #, no-wrap
814 msgid ""
815 " virt-cat [--options] -d domname file [file ...]\n"
816 "\n"
817 msgstr ""
818
819 #. type: verbatim
820 #: ../cat/virt-cat.pod:11
821 #, no-wrap
822 msgid ""
823 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
824 "\n"
825 msgstr ""
826
827 #. type: textblock
828 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
829 msgid "Old-style:"
830 msgstr ""
831
832 #. type: verbatim
833 #: ../cat/virt-cat.pod:15
834 #, no-wrap
835 msgid ""
836 " virt-cat domname file\n"
837 "\n"
838 msgstr ""
839
840 #. type: verbatim
841 #: ../cat/virt-cat.pod:17
842 #, no-wrap
843 msgid ""
844 " virt-cat disk.img file\n"
845 "\n"
846 msgstr ""
847
848 #. type: textblock
849 #: ../cat/virt-cat.pod:21
850 msgid ""
851 "C<virt-cat> is a command line tool to display the contents of C<file> where "
852 "C<file> exists in the named virtual machine (or disk image)."
853 msgstr ""
854
855 #. type: textblock
856 #: ../cat/virt-cat.pod:24
857 msgid ""
858 "Multiple filenames can be given, in which case they are concatenated "
859 "together.  Each filename must be a full path, starting at the root directory "
860 "(starting with '/')."
861 msgstr ""
862
863 #. type: textblock
864 #: ../cat/virt-cat.pod:28
865 msgid ""
866 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
867 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
868 "tool (see L</USING GUESTFISH> below)."
869 msgstr ""
870
871 #. type: =head1
872 #: ../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
873 msgid "EXAMPLES"
874 msgstr ""
875
876 #. type: textblock
877 #: ../cat/virt-cat.pod:34
878 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
879 msgstr ""
880
881 #. type: verbatim
882 #: ../cat/virt-cat.pod:37
883 #, no-wrap
884 msgid ""
885 " virt-cat -d mydomain /etc/fstab\n"
886 "\n"
887 msgstr ""
888
889 #. type: textblock
890 #: ../cat/virt-cat.pod:39
891 msgid "List syslog messages from a VM disk image file:"
892 msgstr ""
893
894 #. type: verbatim
895 #: ../cat/virt-cat.pod:41
896 #, no-wrap
897 msgid ""
898 " virt-cat -a disk.img /var/log/messages | tail\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-cat.pod:43
904 msgid "Find out what DHCP IP address a VM acquired:"
905 msgstr ""
906
907 #. type: verbatim
908 #: ../cat/virt-cat.pod:45
909 #, no-wrap
910 msgid ""
911 " virt-cat -d mydomain /var/log/messages | \\\n"
912 "   grep 'dhclient: bound to' | tail\n"
913 "\n"
914 msgstr ""
915
916 #. type: textblock
917 #: ../cat/virt-cat.pod:48
918 msgid "Find out what packages were recently installed:"
919 msgstr ""
920
921 #. type: verbatim
922 #: ../cat/virt-cat.pod:50
923 #, no-wrap
924 msgid ""
925 " virt-cat -d mydomain /var/log/yum.log | tail\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-cat.pod:52
931 msgid "Find out who is logged on inside a virtual machine:"
932 msgstr ""
933
934 #. type: verbatim
935 #: ../cat/virt-cat.pod:54
936 #, no-wrap
937 msgid ""
938 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
939 " who /tmp/utmp\n"
940 "\n"
941 msgstr ""
942
943 #. type: textblock
944 #: ../cat/virt-cat.pod:57
945 msgid "or who was logged on:"
946 msgstr ""
947
948 #. type: verbatim
949 #: ../cat/virt-cat.pod:59
950 #, no-wrap
951 msgid ""
952 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
953 " last -f /tmp/wtmp\n"
954 "\n"
955 msgstr ""
956
957 #. type: textblock
958 #: ../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:124
959 msgid ""
960 "Add I<file> which should be a disk image from a virtual machine.  If the "
961 "virtual machine has multiple block devices, you must supply all of them with "
962 "separate I<-a> options."
963 msgstr ""
964
965 #. type: =item
966 #: ../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
967 msgid "B<--echo-keys>"
968 msgstr ""
969
970 #. type: textblock
971 #: ../cat/virt-cat.pod:100
972 msgid ""
973 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
974 "so you cannot see what you are typing.  If you are not worried about Tempest "
975 "attacks and there is no one else in the room you can specify this flag to "
976 "see what you are typing."
977 msgstr ""
978
979 #. type: verbatim
980 #: ../cat/virt-cat.pod:116
981 #, no-wrap
982 msgid ""
983 " virt-cat --format=raw -a disk.img file\n"
984 "\n"
985 msgstr ""
986
987 #. type: verbatim
988 #: ../cat/virt-cat.pod:120
989 #, no-wrap
990 msgid ""
991 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
992 "\n"
993 msgstr ""
994
995 #. type: =item
996 #: ../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
997 msgid "B<--keys-from-stdin>"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../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
1002 msgid ""
1003 "Read key or passphrase parameters from stdin.  The default is to try to read "
1004 "passphrases from the user by opening C</dev/tty>."
1005 msgstr ""
1006
1007 #. type: =head1
1008 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1009 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1010 msgstr ""
1011
1012 #. type: textblock
1013 #: ../cat/virt-cat.pod:154
1014 msgid "Previous versions of virt-cat allowed you to write either:"
1015 msgstr ""
1016
1017 #. type: verbatim
1018 #: ../cat/virt-cat.pod:156
1019 #, no-wrap
1020 msgid ""
1021 " virt-cat disk.img [disk.img ...] file\n"
1022 "\n"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1027 msgid "or"
1028 msgstr ""
1029
1030 #. type: verbatim
1031 #: ../cat/virt-cat.pod:160
1032 #, no-wrap
1033 msgid ""
1034 " virt-cat guestname file\n"
1035 "\n"
1036 msgstr ""
1037
1038 #. type: textblock
1039 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1040 msgid ""
1041 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1042 "the confusing case where a disk image might have the same name as a guest."
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1047 msgid "For compatibility the old style is still supported."
1048 msgstr ""
1049
1050 #. type: =head1
1051 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1052 msgid "WINDOWS PATHS"
1053 msgstr ""
1054
1055 #. type: textblock
1056 #: ../cat/virt-cat.pod:170
1057 msgid ""
1058 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1059 "paths (eg. C<E:\\foo\\bar.txt>)."
1060 msgstr ""
1061
1062 #. type: textblock
1063 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1064 msgid "If and only if the guest is running Windows then:"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1069 msgid ""
1070 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1071 "to the correct filesystem."
1072 msgstr ""
1073
1074 #. type: textblock
1075 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1076 msgid ""
1077 "Any backslash (C<\\>) characters in the path are replaced with forward "
1078 "slashes so that libguestfs can process it."
1079 msgstr ""
1080
1081 #. type: textblock
1082 #: ../cat/virt-cat.pod:189
1083 msgid ""
1084 "The path is resolved case insensitively to locate the file that should be "
1085 "displayed."
1086 msgstr ""
1087
1088 #. type: textblock
1089 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1090 msgid "There are some known shortcomings:"
1091 msgstr ""
1092
1093 #. type: textblock
1094 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1095 msgid "Some NTFS symbolic links may not be followed correctly."
1096 msgstr ""
1097
1098 #. type: textblock
1099 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1100 msgid "NTFS junction points that cross filesystems are not followed."
1101 msgstr ""
1102
1103 #. type: =head1
1104 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1105 msgid "USING GUESTFISH"
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../cat/virt-cat.pod:210
1110 msgid ""
1111 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1112 "C<virt-cat> doesn't work."
1113 msgstr ""
1114
1115 #. type: textblock
1116 #: ../cat/virt-cat.pod:213
1117 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1118 msgstr ""
1119
1120 #. type: verbatim
1121 #: ../cat/virt-cat.pod:215
1122 #, no-wrap
1123 msgid ""
1124 " guestfish --ro -i -d domname download file -\n"
1125 "\n"
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../cat/virt-cat.pod:217
1130 msgid ""
1131 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1132 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-cat.pod:221
1137 msgid ""
1138 "The command above uses libguestfs's guest inspection feature and so does not "
1139 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1140 "disk images that don't contain guests.  To display a file from a disk image "
1141 "directly, use:"
1142 msgstr ""
1143
1144 #. type: verbatim
1145 #: ../cat/virt-cat.pod:226
1146 #, no-wrap
1147 msgid ""
1148 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1149 "\n"
1150 msgstr ""
1151
1152 #. type: textblock
1153 #: ../cat/virt-cat.pod:228
1154 msgid ""
1155 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1156 "the disk image, and C<file> is the full path to the file."
1157 msgstr ""
1158
1159 #. type: textblock
1160 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382 ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392 ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:247
1161 msgid "This program returns 0 if successful, or non-zero if there was an error."
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../cat/virt-cat.pod:245
1166 msgid ""
1167 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
1168 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
1169 msgstr ""
1170
1171 #. type: textblock
1172 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420 ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1173 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1174 msgstr ""
1175
1176 #. type: textblock
1177 #: ../cat/virt-filesystems.pod:5
1178 msgid ""
1179 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1180 "virtual machine or disk image"
1181 msgstr ""
1182
1183 #. type: verbatim
1184 #: ../cat/virt-filesystems.pod:9
1185 #, no-wrap
1186 msgid ""
1187 " virt-filesystems [--options] -d domname\n"
1188 "\n"
1189 msgstr ""
1190
1191 #. type: verbatim
1192 #: ../cat/virt-filesystems.pod:11
1193 #, no-wrap
1194 msgid ""
1195 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1196 "\n"
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-filesystems.pod:15
1201 msgid ""
1202 "This tool allows you to discover filesystems, partitions, logical volumes, "
1203 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1204 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1205 msgstr ""
1206
1207 #. type: textblock
1208 #: ../cat/virt-filesystems.pod:20
1209 msgid ""
1210 "One use for this tool is from shell scripts to iterate over all filesystems "
1211 "from a disk image:"
1212 msgstr ""
1213
1214 #. type: verbatim
1215 #: ../cat/virt-filesystems.pod:23
1216 #, no-wrap
1217 msgid ""
1218 " for fs in $(virt-filesystems -a disk.img); do\n"
1219 "   # ...\n"
1220 " done\n"
1221 "\n"
1222 msgstr ""
1223
1224 #. type: textblock
1225 #: ../cat/virt-filesystems.pod:27
1226 msgid ""
1227 "Another use is to list partitions before using another tool to modify those "
1228 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1229 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1230 msgstr ""
1231
1232 #. type: textblock
1233 #: ../cat/virt-filesystems.pod:32
1234 msgid ""
1235 "Various command line options control what this program displays.  You need "
1236 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1237 "guest respectively.  If you just specify that then the program shows "
1238 "filesystems found, one per line, like this:"
1239 msgstr ""
1240
1241 #. type: verbatim
1242 #: ../cat/virt-filesystems.pod:37
1243 #, no-wrap
1244 msgid ""
1245 " $ virt-filesystems -a disk.img\n"
1246 " /dev/sda1\n"
1247 " /dev/vg_guest/lv_root\n"
1248 "\n"
1249 msgstr ""
1250
1251 #. type: textblock
1252 #: ../cat/virt-filesystems.pod:41
1253 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
1254 msgstr ""
1255
1256 #. type: verbatim
1257 #: ../cat/virt-filesystems.pod:44
1258 #, no-wrap
1259 msgid ""
1260 " $ virt-filesystems -a disk.img -l\n"
1261 " Name                   Type         VFS   Label  Size\n"
1262 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1263 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1264 "\n"
1265 msgstr ""
1266
1267 #. type: textblock
1268 #: ../cat/virt-filesystems.pod:49
1269 msgid ""
1270 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1271 "shown as well:"
1272 msgstr ""
1273
1274 #. type: verbatim
1275 #: ../cat/virt-filesystems.pod:52
1276 #, no-wrap
1277 msgid ""
1278 " $ virt-filesystems -a disk.img --extra\n"
1279 " /dev/sda1\n"
1280 " /dev/vg_guest/lv_root\n"
1281 " /dev/vg_guest/lv_swap\n"
1282 " /dev/vg_guest/lv_data\n"
1283 "\n"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-filesystems.pod:58
1288 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
1289 msgstr ""
1290
1291 #. type: verbatim
1292 #: ../cat/virt-filesystems.pod:60
1293 #, no-wrap
1294 msgid ""
1295 " $ virt-filesystems -a disk.img --partitions\n"
1296 " /dev/sda1\n"
1297 " /dev/sda2\n"
1298 "\n"
1299 msgstr ""
1300
1301 #. type: textblock
1302 #: ../cat/virt-filesystems.pod:64
1303 msgid ""
1304 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
1305 "I<--physical-volumes>, I<--block-devices> to list those items."
1306 msgstr ""
1307
1308 #. type: textblock
1309 #: ../cat/virt-filesystems.pod:67
1310 msgid ""
1311 "You can use these options in combination as well (if you want a combination "
1312 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1313 "items fall into several categories (eg. C</dev/sda1> might be both a "
1314 "partition and a filesystem).  These items are listed several times.  To get "
1315 "a list which includes absolutely everything that virt-filesystems knows "
1316 "about, use the I<--all> option."
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:74
1321 msgid ""
1322 "UUIDs (because they are quite long) are not shown by default.  Add the "
1323 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-filesystems.pod:78
1328 msgid ""
1329 "I<--all --long --uuid> is a useful combination to display all possible "
1330 "information about everything."
1331 msgstr ""
1332
1333 #. type: verbatim
1334 #: ../cat/virt-filesystems.pod:81
1335 #, no-wrap
1336 msgid ""
1337 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1338 " Name      Type       VFS  Label           Size Parent   UUID\n"
1339 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1340 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1341 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1342 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1343 " /dev/sda  device     -    -               20G  -        -\n"
1344 "\n"
1345 msgstr ""
1346
1347 #. type: textblock
1348 #: ../cat/virt-filesystems.pod:89
1349 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1350 msgstr ""
1351
1352 #. type: =item
1353 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1354 msgid "B<--all>"
1355 msgstr ""
1356
1357 #. type: textblock
1358 #: ../cat/virt-filesystems.pod:112
1359 msgid ""
1360 "Display everything.  This is currently the same as specifying these options: "
1361 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1362 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1363 "be added to this list in future)."
1364 msgstr ""
1365
1366 #. type: textblock
1367 #: ../cat/virt-filesystems.pod:117
1368 msgid "See also I<--long>."
1369 msgstr ""
1370
1371 #. type: =item
1372 #: ../cat/virt-filesystems.pod:119
1373 msgid "B<--blkdevs>"
1374 msgstr ""
1375
1376 #. type: =item
1377 #: ../cat/virt-filesystems.pod:121
1378 msgid "B<--block-devices>"
1379 msgstr ""
1380
1381 #. type: textblock
1382 #: ../cat/virt-filesystems.pod:123
1383 msgid "Display block devices."
1384 msgstr ""
1385
1386 #. type: =item
1387 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1388 msgid "B<--csv>"
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1393 msgid ""
1394 "Write out the results in CSV format (comma-separated values).  This format "
1395 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1396 "ABOUT CSV FORMAT> below."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:150
1401 msgid ""
1402 "When prompting for keys and passphrases, virt-filesystems normally turns "
1403 "echoing off so you cannot see what you are typing.  If you are not worried "
1404 "about Tempest attacks and there is no one else in the room you can specify "
1405 "this flag to see what you are typing."
1406 msgstr ""
1407
1408 #. type: =item
1409 #: ../cat/virt-filesystems.pod:155
1410 msgid "B<--extra>"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:157
1415 msgid ""
1416 "This causes filesystems that are not ordinary, mountable filesystems to be "
1417 "displayed.  This category includes swapspace, and filesystems that are empty "
1418 "or contain unknown data."
1419 msgstr ""
1420
1421 #. type: textblock
1422 #: ../cat/virt-filesystems.pod:161
1423 msgid "This option implies I<--filesystems>."
1424 msgstr ""
1425
1426 #. type: =item
1427 #: ../cat/virt-filesystems.pod:163
1428 msgid "B<--filesystems>"
1429 msgstr ""
1430
1431 #. type: textblock
1432 #: ../cat/virt-filesystems.pod:165
1433 msgid ""
1434 "Display mountable filesystems.  If no display option was selected then this "
1435 "option is implied."
1436 msgstr ""
1437
1438 #. type: textblock
1439 #: ../cat/virt-filesystems.pod:168
1440 msgid "With I<--extra>, non-mountable filesystems are shown too."
1441 msgstr ""
1442
1443 #. type: verbatim
1444 #: ../cat/virt-filesystems.pod:181
1445 #, no-wrap
1446 msgid ""
1447 " virt-filesystems --format=raw -a disk.img\n"
1448 "\n"
1449 msgstr ""
1450
1451 #. type: verbatim
1452 #: ../cat/virt-filesystems.pod:185
1453 #, no-wrap
1454 msgid ""
1455 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1456 "\n"
1457 msgstr ""
1458
1459 #. type: =item
1460 #: ../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
1461 msgid "B<-h>"
1462 msgstr ""
1463
1464 #. type: =item
1465 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1466 msgid "B<--human-readable>"
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-filesystems.pod:198
1471 msgid "In I<--long> mode, display sizes in human-readable format."
1472 msgstr ""
1473
1474 #. type: =item
1475 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1476 msgid "B<-l>"
1477 msgstr ""
1478
1479 #. type: =item
1480 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1481 msgid "B<--long>"
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../cat/virt-filesystems.pod:209
1486 msgid "Display extra columns of data (\"long format\")."
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../cat/virt-filesystems.pod:211
1491 msgid "A title row is added unless you also specify I<--no-title>."
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../cat/virt-filesystems.pod:213
1496 msgid ""
1497 "The extra columns displayed depend on what output you select, and the "
1498 "ordering of columns may change in future versions.  Use the title row, "
1499 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1500 "programs."
1501 msgstr ""
1502
1503 #. type: textblock
1504 #: ../cat/virt-filesystems.pod:218
1505 msgid ""
1506 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1507 "default is to show raw numbers of I<bytes>."
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-filesystems.pod:221
1512 msgid "Use I<--uuid> to display UUIDs too."
1513 msgstr ""
1514
1515 #. type: =item
1516 #: ../cat/virt-filesystems.pod:223
1517 msgid "B<--lvs>"
1518 msgstr ""
1519
1520 #. type: =item
1521 #: ../cat/virt-filesystems.pod:225
1522 msgid "B<--logvols>"
1523 msgstr ""
1524
1525 #. type: =item
1526 #: ../cat/virt-filesystems.pod:227
1527 msgid "B<--logical-volumes>"
1528 msgstr ""
1529
1530 #. type: textblock
1531 #: ../cat/virt-filesystems.pod:229
1532 msgid ""
1533 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1534 "of whether the LVs contain filesystems."
1535 msgstr ""
1536
1537 #. type: =item
1538 #: ../cat/virt-filesystems.pod:232
1539 msgid "B<--no-title>"
1540 msgstr ""
1541
1542 #. type: textblock
1543 #: ../cat/virt-filesystems.pod:234
1544 msgid "In I<--long> mode, don't add a title row."
1545 msgstr ""
1546
1547 #. type: textblock
1548 #: ../cat/virt-filesystems.pod:236
1549 msgid ""
1550 "Note that the order of the columns is not fixed, and may change in future "
1551 "versions of virt-filesystems, so using this option may give you unexpected "
1552 "surprises."
1553 msgstr ""
1554
1555 #. type: =item
1556 #: ../cat/virt-filesystems.pod:240
1557 msgid "B<--parts>"
1558 msgstr ""
1559
1560 #. type: =item
1561 #: ../cat/virt-filesystems.pod:242
1562 msgid "B<--partitions>"
1563 msgstr ""
1564
1565 #. type: textblock
1566 #: ../cat/virt-filesystems.pod:244
1567 msgid ""
1568 "Display partitions.  In this mode, these are displayed irrespective of "
1569 "whether the partitions contain filesystems."
1570 msgstr ""
1571
1572 #. type: =item
1573 #: ../cat/virt-filesystems.pod:247
1574 msgid "B<--pvs>"
1575 msgstr ""
1576
1577 #. type: =item
1578 #: ../cat/virt-filesystems.pod:249
1579 msgid "B<--physvols>"
1580 msgstr ""
1581
1582 #. type: =item
1583 #: ../cat/virt-filesystems.pod:251
1584 msgid "B<--physical-volumes>"
1585 msgstr ""
1586
1587 #. type: textblock
1588 #: ../cat/virt-filesystems.pod:253
1589 msgid "Display LVM physical volumes."
1590 msgstr ""
1591
1592 #. type: =item
1593 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1594 msgid "B<--uuid>"
1595 msgstr ""
1596
1597 #. type: =item
1598 #: ../cat/virt-filesystems.pod:257
1599 msgid "B<--uuids>"
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-filesystems.pod:259
1604 msgid "In I<--long> mode, display UUIDs as well."
1605 msgstr ""
1606
1607 #. type: =item
1608 #: ../cat/virt-filesystems.pod:273
1609 msgid "B<--vgs>"
1610 msgstr ""
1611
1612 #. type: =item
1613 #: ../cat/virt-filesystems.pod:275
1614 msgid "B<--volgroups>"
1615 msgstr ""
1616
1617 #. type: =item
1618 #: ../cat/virt-filesystems.pod:277
1619 msgid "B<--volume-groups>"
1620 msgstr ""
1621
1622 #. type: textblock
1623 #: ../cat/virt-filesystems.pod:279
1624 msgid "Display LVM volume groups."
1625 msgstr ""
1626
1627 #. type: =head1
1628 #: ../cat/virt-filesystems.pod:287
1629 msgid "COLUMNS"
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-filesystems.pod:289
1634 msgid ""
1635 "Note that columns in the output are subject to reordering and change in "
1636 "future versions of this tool."
1637 msgstr ""
1638
1639 #. type: =item
1640 #: ../cat/virt-filesystems.pod:294
1641 msgid "B<Name>"
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-filesystems.pod:296
1646 msgid "The filesystem, partition, block device or LVM name."
1647 msgstr ""
1648
1649 #. type: textblock
1650 #: ../cat/virt-filesystems.pod:298
1651 msgid ""
1652 "For device and partition names these are displayed as canonical libguestfs "
1653 "names, so that for example C</dev/sda2> is the second partition on the first "
1654 "device."
1655 msgstr ""
1656
1657 #. type: textblock
1658 #: ../cat/virt-filesystems.pod:302
1659 msgid ""
1660 "If the I<--long> option is B<not> specified, then only the name column is "
1661 "shown in the output."
1662 msgstr ""
1663
1664 #. type: =item
1665 #: ../cat/virt-filesystems.pod:305
1666 msgid "B<Type>"
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-filesystems.pod:307
1671 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1672 msgstr ""
1673
1674 #. type: =item
1675 #: ../cat/virt-filesystems.pod:309
1676 msgid "B<VFS>"
1677 msgstr ""
1678
1679 #. type: textblock
1680 #: ../cat/virt-filesystems.pod:311
1681 msgid ""
1682 "If there is a filesystem, then this column displays the filesystem type if "
1683 "one could be detected, eg. C<ext4>."
1684 msgstr ""
1685
1686 #. type: =item
1687 #: ../cat/virt-filesystems.pod:314
1688 msgid "B<Label>"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-filesystems.pod:316
1693 msgid ""
1694 "If the object has a label (used for identifying and mounting filesystems) "
1695 "then this column contains the label."
1696 msgstr ""
1697
1698 #. type: =item
1699 #: ../cat/virt-filesystems.pod:319
1700 msgid "B<MBR>"
1701 msgstr ""
1702
1703 #. type: textblock
1704 #: ../cat/virt-filesystems.pod:321
1705 msgid ""
1706 "The partition type byte, displayed as a two digit hexadecimal number.  A "
1707 "comprehensive list of partition types can be found here: "
1708 "L<http://www.win.tue.nl/~aeb/partitions/partition_types-1.html>"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:325
1713 msgid "This is only applicable for DOS (MBR) partitions."
1714 msgstr ""
1715
1716 #. type: =item
1717 #: ../cat/virt-filesystems.pod:327
1718 msgid "B<Size>"
1719 msgstr ""
1720
1721 #. type: textblock
1722 #: ../cat/virt-filesystems.pod:329
1723 msgid ""
1724 "The size of the object in bytes.  If the I<--human> option is used then the "
1725 "size is displayed in a human-readable form."
1726 msgstr ""
1727
1728 #. type: =item
1729 #: ../cat/virt-filesystems.pod:332
1730 msgid "B<Parent>"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../cat/virt-filesystems.pod:334
1735 msgid ""
1736 "The parent column records the parent relationship between objects.  For "
1737 "example, if the object is a partition, then this column contains the name of "
1738 "the containing device.  If the object is a logical volume, then this column "
1739 "is the name of the volume group."
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-filesystems.pod:339
1744 msgid "B<UUID>"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-filesystems.pod:341
1749 msgid ""
1750 "If the object has a UUID (used for identifying and mounting filesystems and "
1751 "block devices) then this column contains the UUID as a string."
1752 msgstr ""
1753
1754 #. type: textblock
1755 #: ../cat/virt-filesystems.pod:345
1756 msgid "The UUID is only displayed if the I<--uuid> option is given."
1757 msgstr ""
1758
1759 #. type: =head1
1760 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459 ../df/virt-df.pod:217
1761 msgid "NOTE ABOUT CSV FORMAT"
1762 msgstr ""
1763
1764 #. type: textblock
1765 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461 ../df/virt-df.pod:219
1766 msgid ""
1767 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1768 "should be easy to parse, but it is definitely not easy to parse."
1769 msgstr ""
1770
1771 #. type: textblock
1772 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464 ../df/virt-df.pod:222
1773 msgid ""
1774 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1775 "reliably.  This example has two columns:"
1776 msgstr ""
1777
1778 #. type: verbatim
1779 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467 ../df/virt-df.pod:225
1780 #, no-wrap
1781 msgid ""
1782 " \"foo,bar\",baz\n"
1783 "\n"
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469 ../df/virt-df.pod:227
1788 msgid ""
1789 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1790 "reliably.  This example has one row:"
1791 msgstr ""
1792
1793 #. type: verbatim
1794 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472 ../df/virt-df.pod:230
1795 #, no-wrap
1796 msgid ""
1797 " \"foo\n"
1798 " bar\",baz\n"
1799 "\n"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475 ../df/virt-df.pod:233
1804 msgid ""
1805 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1806 "packaged in major Linux distributions)."
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478 ../df/virt-df.pod:236
1811 msgid ""
1812 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1813 "or Python's built-in csv library)."
1814 msgstr ""
1815
1816 #. type: textblock
1817 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481 ../df/virt-df.pod:239
1818 msgid "Most spreadsheets and databases can import CSV directly."
1819 msgstr ""
1820
1821 #. type: textblock
1822 #: ../cat/virt-filesystems.pod:387
1823 msgid ""
1824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1825 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1826 "L<http://libguestfs.org/>."
1827 msgstr ""
1828
1829 #. type: textblock
1830 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
1831 msgid "Copyright (C) 2010 Red Hat Inc."
1832 msgstr ""
1833
1834 #. type: textblock
1835 #: ../cat/virt-ls.pod:5
1836 msgid "virt-ls - List files in a virtual machine"
1837 msgstr ""
1838
1839 #. type: verbatim
1840 #: ../cat/virt-ls.pod:9
1841 #, no-wrap
1842 msgid ""
1843 " virt-ls [--options] -d domname directory [directory ...]\n"
1844 "\n"
1845 msgstr ""
1846
1847 #. type: verbatim
1848 #: ../cat/virt-ls.pod:11
1849 #, no-wrap
1850 msgid ""
1851 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1852 "...]\n"
1853 "\n"
1854 msgstr ""
1855
1856 #. type: textblock
1857 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
1858 msgid "Old style:"
1859 msgstr ""
1860
1861 #. type: verbatim
1862 #: ../cat/virt-ls.pod:15
1863 #, no-wrap
1864 msgid ""
1865 " virt-ls [--options] domname directory\n"
1866 "\n"
1867 msgstr ""
1868
1869 #. type: verbatim
1870 #: ../cat/virt-ls.pod:17
1871 #, no-wrap
1872 msgid ""
1873 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1874 "\n"
1875 msgstr ""
1876
1877 #. type: textblock
1878 #: ../cat/virt-ls.pod:21
1879 msgid ""
1880 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1881 "more from a virtual machine or disk image."
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:24
1886 msgid ""
1887 "Multiple directory names can be given, in which case the output from each is "
1888 "concatenated."
1889 msgstr ""
1890
1891 #. type: textblock
1892 #: ../cat/virt-ls.pod:27
1893 msgid ""
1894 "To list directories from a libvirt guest use the I<-d> option to specify the "
1895 "name of the guest.  For a disk image, use the I<-a> option."
1896 msgstr ""
1897
1898 #. type: textblock
1899 #: ../cat/virt-ls.pod:31
1900 msgid ""
1901 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1902 "may need to use L<guestfish(1)>, or write a program directly to the "
1903 "L<guestfs(3)> API."
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:37
1908 msgid "Get a list of all files and directories in a virtual machine:"
1909 msgstr ""
1910
1911 #. type: verbatim
1912 #: ../cat/virt-ls.pod:39
1913 #, no-wrap
1914 msgid ""
1915 " virt-ls -R -d guest /\n"
1916 "\n"
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
1921 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1922 msgstr ""
1923
1924 #. type: verbatim
1925 #: ../cat/virt-ls.pod:43
1926 #, no-wrap
1927 msgid ""
1928 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1929 "\n"
1930 msgstr ""
1931
1932 #. type: textblock
1933 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
1934 msgid "List all public-writable directories in a Linux virtual machine:"
1935 msgstr ""
1936
1937 #. type: verbatim
1938 #: ../cat/virt-ls.pod:47
1939 #, no-wrap
1940 msgid ""
1941 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1942 "\n"
1943 msgstr ""
1944
1945 #. type: textblock
1946 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
1947 msgid "List all Unix domain sockets in a Linux virtual machine:"
1948 msgstr ""
1949
1950 #. type: verbatim
1951 #: ../cat/virt-ls.pod:51
1952 #, no-wrap
1953 msgid ""
1954 " virt-ls -lR -d guest / | grep '^s'\n"
1955 "\n"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
1960 msgid "List all regular files with filenames ending in '.png':"
1961 msgstr ""
1962
1963 #. type: verbatim
1964 #: ../cat/virt-ls.pod:55
1965 #, no-wrap
1966 msgid ""
1967 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1968 "\n"
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../cat/virt-ls.pod:57
1973 msgid "To display files larger than 10MB in home directories:"
1974 msgstr ""
1975
1976 #. type: verbatim
1977 #: ../cat/virt-ls.pod:59
1978 #, no-wrap
1979 msgid ""
1980 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1981 "\n"
1982 msgstr ""
1983
1984 #. type: textblock
1985 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
1986 msgid "Find everything modified in the last 7 days:"
1987 msgstr ""
1988
1989 #. type: verbatim
1990 #: ../cat/virt-ls.pod:63
1991 #, no-wrap
1992 msgid ""
1993 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1994 "\n"
1995 msgstr ""
1996
1997 #. type: textblock
1998 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
1999 msgid "Find regular files modified in the last 24 hours:"
2000 msgstr ""
2001
2002 #. type: verbatim
2003 #: ../cat/virt-ls.pod:67
2004 #, no-wrap
2005 msgid ""
2006 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2007 "\n"
2008 msgstr ""
2009
2010 #. type: =head2
2011 #: ../cat/virt-ls.pod:69
2012 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-ls.pod:71
2017 msgid ""
2018 "Find the differences between files in a guest and an earlier snapshot of the "
2019 "same guest."
2020 msgstr ""
2021
2022 #. type: verbatim
2023 #: ../cat/virt-ls.pod:74
2024 #, no-wrap
2025 msgid ""
2026 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2027 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2028 " diff -u old new | less\n"
2029 "\n"
2030 msgstr ""
2031
2032 #. type: textblock
2033 #: ../cat/virt-ls.pod:78
2034 msgid ""
2035 "The commands above won't find files where the content has changed but the "
2036 "metadata (eg. file size and modification date) is the same.  To do that, you "
2037 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
2038 "I<--checksum> can be quite slow since it has to read and compute a checksum "
2039 "of every regular file in the virtual machine."
2040 msgstr ""
2041
2042 #. type: =head1
2043 #: ../cat/virt-ls.pod:84
2044 msgid "OUTPUT MODES"
2045 msgstr ""
2046
2047 #. type: textblock
2048 #: ../cat/virt-ls.pod:86
2049 msgid ""
2050 "C<virt-ls> has four output modes, controlled by different combinations of "
2051 "the I<-l> and I<-R> options."
2052 msgstr ""
2053
2054 #. type: =head2
2055 #: ../cat/virt-ls.pod:89
2056 msgid "SIMPLE LISTING"
2057 msgstr ""
2058
2059 #. type: textblock
2060 #: ../cat/virt-ls.pod:91
2061 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2062 msgstr ""
2063
2064 #. type: verbatim
2065 #: ../cat/virt-ls.pod:93
2066 #, no-wrap
2067 msgid ""
2068 " $ virt-ls -d guest /\n"
2069 " bin\n"
2070 " boot\n"
2071 " [etc.]\n"
2072 "\n"
2073 msgstr ""
2074
2075 #. type: =head2
2076 #: ../cat/virt-ls.pod:98
2077 msgid "LONG LISTING"
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-ls.pod:100
2082 msgid ""
2083 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2084 "(more specifically, like the C<guestfs_ll> function)."
2085 msgstr ""
2086
2087 #. type: verbatim
2088 #: ../cat/virt-ls.pod:103
2089 #, no-wrap
2090 msgid ""
2091 " $ virt-ls -l -d guest /\n"
2092 " total 204\n"
2093 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2094 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2095 " [etc.]\n"
2096 "\n"
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../cat/virt-ls.pod:109
2101 msgid ""
2102 "Note that while this is useful for displaying a directory, do not try "
2103 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2104 "instead."
2105 msgstr ""
2106
2107 #. type: =head2
2108 #: ../cat/virt-ls.pod:113
2109 msgid "RECURSIVE LISTING"
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-ls.pod:115
2114 msgid ""
2115 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2116 "and directories recursively:"
2117 msgstr ""
2118
2119 #. type: verbatim
2120 #: ../cat/virt-ls.pod:118
2121 #, no-wrap
2122 msgid ""
2123 " $ virt-ls -R -d guest /tmp\n"
2124 " foo\n"
2125 " foo/bar\n"
2126 " [etc.]\n"
2127 "\n"
2128 msgstr ""
2129
2130 #. type: textblock
2131 #: ../cat/virt-ls.pod:123
2132 msgid ""
2133 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2134 "converts C<\\0> characters to C<\\n>."
2135 msgstr ""
2136
2137 #. type: =head2
2138 #: ../cat/virt-ls.pod:126
2139 msgid "RECURSIVE LONG LISTING"
2140 msgstr ""
2141
2142 #. type: textblock
2143 #: ../cat/virt-ls.pod:128
2144 msgid ""
2145 "Using I<-lR> options together changes the output to display directories "
2146 "recursively, with file stats, and optionally other features such as "
2147 "checksums and extended attributes."
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../cat/virt-ls.pod:132
2152 msgid ""
2153 "Most of the interesting features of C<virt-ls> are only available when using "
2154 "I<-lR> mode."
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../cat/virt-ls.pod:135
2159 msgid ""
2160 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2161 "you cannot use the output in another program (because filenames can contain "
2162 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2163 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2164 "on you by creating filenames with embedded newline characters.  To B<safely> "
2165 "parse the output in another program, use the I<--csv> (Comma-Separated "
2166 "Values) option."
2167 msgstr ""
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:143
2171 msgid ""
2172 "Note that this output format is completely unrelated to the C<ls -lR> "
2173 "command."
2174 msgstr ""
2175
2176 #. type: verbatim
2177 #: ../cat/virt-ls.pod:146
2178 #, no-wrap
2179 msgid ""
2180 " $ virt-ls -lR -d guest /bin\n"
2181 " d 0555       4096 /bin\n"
2182 " - 0755        123 /bin/alsaunmute\n"
2183 " - 0755      28328 /bin/arch\n"
2184 " l 0777          4 /bin/awk -> gawk\n"
2185 " - 0755      27216 /bin/basename\n"
2186 " - 0755     943360 /bin/bash\n"
2187 " [etc.]\n"
2188 "\n"
2189 msgstr ""
2190
2191 #. type: textblock
2192 #: ../cat/virt-ls.pod:155
2193 msgid "These basic fields are always shown:"
2194 msgstr ""
2195
2196 #. type: =item
2197 #: ../cat/virt-ls.pod:159
2198 msgid "type"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-ls.pod:161
2203 msgid ""
2204 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2205 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2206 "link), C<s> (socket) or C<u> (unknown)."
2207 msgstr ""
2208
2209 #. type: =item
2210 #: ../cat/virt-ls.pod:171
2211 msgid "permissions"
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:173
2216 msgid "The Unix permissions, displayed as a 4 digit octal number."
2217 msgstr ""
2218
2219 #. type: =item
2220 #: ../cat/virt-ls.pod:175
2221 msgid "size"
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../cat/virt-ls.pod:177
2226 msgid ""
2227 "The size of the file.  This is shown in bytes unless I<-h> or "
2228 "I<--human-readable> option is given, in which case this is shown as a "
2229 "human-readable number."
2230 msgstr ""
2231
2232 #. type: =head2
2233 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4488
2234 msgid "path"
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-ls.pod:183
2239 msgid "The full path of the file or directory."
2240 msgstr ""
2241
2242 #. type: =item
2243 #: ../cat/virt-ls.pod:185
2244 msgid "link"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../cat/virt-ls.pod:187
2249 msgid "For symbolic links only, the link target."
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../cat/virt-ls.pod:191
2254 msgid ""
2255 "In I<-lR> mode, additional command line options enable the display of more "
2256 "fields."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../cat/virt-ls.pod:194
2261 msgid ""
2262 "With the I<--uids> flag, these additional fields are displayed before the "
2263 "path:"
2264 msgstr ""
2265
2266 #. type: =item
2267 #: ../cat/virt-ls.pod:199
2268 msgid "uid"
2269 msgstr ""
2270
2271 #. type: =item
2272 #: ../cat/virt-ls.pod:201
2273 msgid "gid"
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:203
2278 msgid ""
2279 "The UID and GID of the owner of the file (displayed numerically).  Note "
2280 "these only make sense in the context of a Unix-like guest."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:208
2285 msgid "With the I<--times> flag, these additional fields are displayed:"
2286 msgstr ""
2287
2288 #. type: =item
2289 #: ../cat/virt-ls.pod:212
2290 msgid "atime"
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:214
2295 msgid "The time of last access."
2296 msgstr ""
2297
2298 #. type: =item
2299 #: ../cat/virt-ls.pod:216
2300 msgid "mtime"
2301 msgstr ""
2302
2303 #. type: textblock
2304 #: ../cat/virt-ls.pod:218
2305 msgid "The time of last modification."
2306 msgstr ""
2307
2308 #. type: =item
2309 #: ../cat/virt-ls.pod:220
2310 msgid "ctime"
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:222
2315 msgid "The time of last status change."
2316 msgstr ""
2317
2318 #. type: textblock
2319 #: ../cat/virt-ls.pod:226
2320 msgid ""
2321 "The time fields are displayed as string dates and times, unless one of the "
2322 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2323 msgstr ""
2324
2325 #. type: textblock
2326 #: ../cat/virt-ls.pod:229
2327 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2328 msgstr ""
2329
2330 #. type: =item
2331 #: ../cat/virt-ls.pod:233
2332 msgid "device"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../cat/virt-ls.pod:235
2337 msgid ""
2338 "The device containing the file (displayed as major:minor).  This may not "
2339 "match devices as known to the guest."
2340 msgstr ""
2341
2342 #. type: =item
2343 #: ../cat/virt-ls.pod:238
2344 msgid "inode"
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:240
2349 msgid "The inode number."
2350 msgstr ""
2351
2352 #. type: =item
2353 #: ../cat/virt-ls.pod:242
2354 msgid "nlink"
2355 msgstr ""
2356
2357 #. type: textblock
2358 #: ../cat/virt-ls.pod:244
2359 msgid "The number of hard links."
2360 msgstr ""
2361
2362 #. type: =item
2363 #: ../cat/virt-ls.pod:246
2364 msgid "rdev"
2365 msgstr ""
2366
2367 #. type: textblock
2368 #: ../cat/virt-ls.pod:248
2369 msgid "For block and char special files, the device (displayed as major:minor)."
2370 msgstr ""
2371
2372 #. type: =item
2373 #: ../cat/virt-ls.pod:251
2374 msgid "blocks"
2375 msgstr ""
2376
2377 #. type: textblock
2378 #: ../cat/virt-ls.pod:253
2379 msgid "The number of 512 byte blocks allocated to the file."
2380 msgstr ""
2381
2382 #. type: textblock
2383 #: ../cat/virt-ls.pod:257
2384 msgid ""
2385 "With the I<--checksum> flag, the checksum of the file contents is shown "
2386 "(only for regular files).  Computing file checksums can take a considerable "
2387 "amount of time."
2388 msgstr ""
2389
2390 #. type: =item
2391 #: ../cat/virt-ls.pod:280
2392 msgid "B<--checksum>"
2393 msgstr ""
2394
2395 #. type: =item
2396 #: ../cat/virt-ls.pod:282
2397 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2398 msgstr ""
2399
2400 #. type: textblock
2401 #: ../cat/virt-ls.pod:284
2402 msgid ""
2403 "Display checksum over file contents for regular files.  With no argument, "
2404 "this defaults to using I<md5>.  Using an argument, you can select the "
2405 "checksum type to use."
2406 msgstr ""
2407
2408 #. type: textblock
2409 #: ../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
2410 msgid ""
2411 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2412 "LISTING> above."
2413 msgstr ""
2414
2415 #. type: textblock
2416 #: ../cat/virt-ls.pod:316
2417 msgid ""
2418 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2419 "so you cannot see what you are typing.  If you are not worried about Tempest "
2420 "attacks and there is no one else in the room you can specify this flag to "
2421 "see what you are typing."
2422 msgstr ""
2423
2424 #. type: =item
2425 #: ../cat/virt-ls.pod:321
2426 msgid "B<--extra-stats>"
2427 msgstr ""
2428
2429 #. type: textblock
2430 #: ../cat/virt-ls.pod:323
2431 msgid "Display extra stats."
2432 msgstr ""
2433
2434 #. type: verbatim
2435 #: ../cat/virt-ls.pod:339
2436 #, no-wrap
2437 msgid ""
2438 " virt-ls --format=raw -a disk.img /dir\n"
2439 "\n"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:343
2444 #, no-wrap
2445 msgid ""
2446 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2447 "\n"
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../cat/virt-ls.pod:356
2452 msgid "Display file sizes in human-readable format."
2453 msgstr ""
2454
2455 #. type: =item
2456 #: ../cat/virt-ls.pod:370
2457 msgid "B<-R>"
2458 msgstr ""
2459
2460 #. type: =item
2461 #: ../cat/virt-ls.pod:372
2462 msgid "B<--recursive>"
2463 msgstr ""
2464
2465 #. type: textblock
2466 #: ../cat/virt-ls.pod:374
2467 msgid ""
2468 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2469 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2470 "LISTING>."
2471 msgstr ""
2472
2473 #. type: textblock
2474 #: ../cat/virt-ls.pod:378
2475 msgid ""
2476 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2477 "L</LONG LISTING>."
2478 msgstr ""
2479
2480 #. type: textblock
2481 #: ../cat/virt-ls.pod:381
2482 msgid ""
2483 "C<virt-ls -R> produces a recursive list of files starting at the named "
2484 "directory.  See L</RECURSIVE LISTING>."
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:384
2489 msgid ""
2490 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2491 "parsed.  See L</RECURSIVE LONG LISTING>."
2492 msgstr ""
2493
2494 #. type: =item
2495 #: ../cat/virt-ls.pod:387
2496 msgid "B<--times>"
2497 msgstr ""
2498
2499 #. type: textblock
2500 #: ../cat/virt-ls.pod:389
2501 msgid "Display time fields."
2502 msgstr ""
2503
2504 #. type: =item
2505 #: ../cat/virt-ls.pod:394
2506 msgid "B<--time-days>"
2507 msgstr ""
2508
2509 #. type: textblock
2510 #: ../cat/virt-ls.pod:396
2511 msgid "Display time fields as days before now (negative if in the future)."
2512 msgstr ""
2513
2514 #. type: textblock
2515 #: ../cat/virt-ls.pod:398
2516 msgid ""
2517 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2518 "of the file is between 0 and 86399 seconds."
2519 msgstr ""
2520
2521 #. type: =item
2522 #: ../cat/virt-ls.pod:404
2523 msgid "B<--time-relative>"
2524 msgstr ""
2525
2526 #. type: textblock
2527 #: ../cat/virt-ls.pod:406
2528 msgid "Display time fields as seconds before now (negative if in the future)."
2529 msgstr ""
2530
2531 #. type: =item
2532 #: ../cat/virt-ls.pod:411
2533 msgid "B<--time-t>"
2534 msgstr ""
2535
2536 #. type: textblock
2537 #: ../cat/virt-ls.pod:413
2538 msgid "Display time fields as seconds since the Unix epoch."
2539 msgstr ""
2540
2541 #. type: =item
2542 #: ../cat/virt-ls.pod:418
2543 msgid "B<--uids>"
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../cat/virt-ls.pod:420
2548 msgid "Display UID and GID fields."
2549 msgstr ""
2550
2551 #. type: textblock
2552 #: ../cat/virt-ls.pod:445
2553 msgid "Previous versions of virt-ls allowed you to write either:"
2554 msgstr ""
2555
2556 #. type: verbatim
2557 #: ../cat/virt-ls.pod:447
2558 #, no-wrap
2559 msgid ""
2560 " virt-ls disk.img [disk.img ...] /dir\n"
2561 "\n"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../cat/virt-ls.pod:451
2566 #, no-wrap
2567 msgid ""
2568 " virt-ls guestname /dir\n"
2569 "\n"
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../cat/virt-ls.pod:497
2574 msgid ""
2575 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2576 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2577 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2578 msgstr ""
2579
2580 #. type: textblock
2581 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:340
2582 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2583 msgstr ""
2584
2585 #. type: textblock
2586 #: ../clone/virt-sysprep.pod:5
2587 msgid "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2588 msgstr ""
2589
2590 #. type: verbatim
2591 #: ../clone/virt-sysprep.pod:9
2592 #, no-wrap
2593 msgid ""
2594 " virt-sysprep [--options] -d domname\n"
2595 "\n"
2596 msgstr ""
2597
2598 #. type: verbatim
2599 #: ../clone/virt-sysprep.pod:11
2600 #, no-wrap
2601 msgid ""
2602 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2603 "\n"
2604 msgstr ""
2605
2606 #. type: textblock
2607 #: ../clone/virt-sysprep.pod:15
2608 msgid ""
2609 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2610 "can be made from it.  Steps in this process include removing SSH host keys, "
2611 "removing persistent network MAC configuration, and removing user accounts.  "
2612 "Each step can be enabled or disabled as required."
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../clone/virt-sysprep.pod:21
2617 msgid ""
2618 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2619 "customization by the system administrator."
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../clone/virt-sysprep.pod:24
2624 msgid ""
2625 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2626 "be shut down.  If you want to preserve the existing contents of the guest, "
2627 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
2628 "below."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../clone/virt-sysprep.pod:29
2633 msgid ""
2634 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2635 "recommend that you don't.  The time you might want to run it as root is when "
2636 "you need root in order to access the disk image, but even in this case it "
2637 "would be better to change the permissions on the disk image to be writable "
2638 "as the non-root user running virt-sysprep."
2639 msgstr ""
2640
2641 #. type: textblock
2642 #: ../clone/virt-sysprep.pod:35
2643 msgid ""
2644 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2645 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2646 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2647 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2648 "Windows sysprepping in a future version, and we already have code to do it."
2649 msgstr ""
2650
2651 #. type: =item
2652 #: ../clone/virt-sysprep.pod:76
2653 msgid "B<--enable=...>"
2654 msgstr ""
2655
2656 #. type: textblock
2657 #: ../clone/virt-sysprep.pod:78
2658 msgid ""
2659 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2660 "operations, for example:"
2661 msgstr ""
2662
2663 #. type: verbatim
2664 #: ../clone/virt-sysprep.pod:81
2665 #, no-wrap
2666 msgid ""
2667 " --enable=ssh-hostkeys,udev-persistent-net\n"
2668 "\n"
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../clone/virt-sysprep.pod:83
2673 msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2674 msgstr ""
2675
2676 #. type: textblock
2677 #: ../clone/virt-sysprep.pod:85
2678 msgid ""
2679 "If the I<--enable> option is not given, then we default to trying all "
2680 "possible sysprep operations.  But some sysprep operations are skipped for "
2681 "some guest types."
2682 msgstr ""
2683
2684 #. type: textblock
2685 #: ../clone/virt-sysprep.pod:89
2686 msgid ""
2687 "Use I<--list-operations> to list operations supported by a particular "
2688 "version of virt-sysprep."
2689 msgstr ""
2690
2691 #. type: textblock
2692 #: ../clone/virt-sysprep.pod:92
2693 msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
2694 msgstr ""
2695
2696 #. type: verbatim
2697 #: ../clone/virt-sysprep.pod:106
2698 #, no-wrap
2699 msgid ""
2700 " virt-sysprep --format=raw -a disk.img\n"
2701 "\n"
2702 msgstr ""
2703
2704 #. type: verbatim
2705 #: ../clone/virt-sysprep.pod:110
2706 #, no-wrap
2707 msgid ""
2708 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
2709 "\n"
2710 msgstr ""
2711
2712 #. type: =item
2713 #: ../clone/virt-sysprep.pod:119
2714 msgid "B<--hostname> newhostname"
2715 msgstr ""
2716
2717 #. type: textblock
2718 #: ../clone/virt-sysprep.pod:121
2719 msgid ""
2720 "Change the hostname.  See the L</hostname> operation below.  If not given, "
2721 "defaults to C<localhost.localdomain>."
2722 msgstr ""
2723
2724 #. type: =item
2725 #: ../clone/virt-sysprep.pod:124
2726 msgid "B<--list-operations>"
2727 msgstr ""
2728
2729 #. type: textblock
2730 #: ../clone/virt-sysprep.pod:126
2731 msgid "List the operations supported by the virt-sysprep program."
2732 msgstr ""
2733
2734 #. type: =item
2735 #: ../clone/virt-sysprep.pod:128
2736 msgid "B<--selinux-relabel>"
2737 msgstr ""
2738
2739 #. type: =item
2740 #: ../clone/virt-sysprep.pod:130
2741 msgid "B<--no-selinux-relabel>"
2742 msgstr ""
2743
2744 #. type: textblock
2745 #: ../clone/virt-sysprep.pod:132
2746 msgid ""
2747 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
2748 "I<--no-selinux-relabel> disables relabelling."
2749 msgstr ""
2750
2751 #. type: textblock
2752 #: ../clone/virt-sysprep.pod:135
2753 msgid ""
2754 "The default is to try to detect if SELinux relabelling is required.  See "
2755 "L</SELINUX RELABELLING> below for more details."
2756 msgstr ""
2757
2758 #. type: =head1
2759 #: ../clone/virt-sysprep.pod:156
2760 msgid "OPERATIONS"
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../clone/virt-sysprep.pod:158
2765 msgid ""
2766 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
2767 "enabled>, although some are skipped depending on the type of guest."
2768 msgstr ""
2769
2770 #. type: textblock
2771 #: ../clone/virt-sysprep.pod:162
2772 msgid ""
2773 "Operations can be individually enabled using the I<--enable> option.  Use a "
2774 "comma-separated list, for example:"
2775 msgstr ""
2776
2777 #. type: verbatim
2778 #: ../clone/virt-sysprep.pod:165
2779 #, no-wrap
2780 msgid ""
2781 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
2782 "\n"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../clone/virt-sysprep.pod:167
2787 msgid ""
2788 "To list the operations supported by the current version of virt-sysprep, use "
2789 "I<--list-operations>."
2790 msgstr ""
2791
2792 #. type: textblock
2793 #: ../clone/virt-sysprep.pod:170
2794 msgid ""
2795 "Future versions of virt-sysprep may add more operations.  If you are using "
2796 "virt-sysprep and want predictable behaviour, specify only the operations "
2797 "that you want to have enabled."
2798 msgstr ""
2799
2800 #. type: =head2
2801 #: ../clone/virt-sysprep.pod:174
2802 msgid "cron-spool"
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../clone/virt-sysprep.pod:176
2807 msgid "Remove user at-jobs and cron-jobs."
2808 msgstr ""
2809
2810 #. type: =head2
2811 #: ../clone/virt-sysprep.pod:178
2812 msgid "dhcp-client-state"
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../clone/virt-sysprep.pod:180
2817 msgid "Remove DHCP client leases."
2818 msgstr ""
2819
2820 #. type: =head2
2821 #: ../clone/virt-sysprep.pod:182
2822 msgid "dhcp-server-state"
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../clone/virt-sysprep.pod:184
2827 msgid "Remove DHCP server leases."
2828 msgstr ""
2829
2830 #. type: =head2
2831 #: ../clone/virt-sysprep.pod:186
2832 msgid "hostname"
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../clone/virt-sysprep.pod:188
2837 msgid ""
2838 "Changes the hostname of the guest to the value given in the I<--hostname> "
2839 "parameter."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../clone/virt-sysprep.pod:191
2844 msgid ""
2845 "If the I<--hostname> parameter is not given, then the hostname is changed to "
2846 "C<localhost.localdomain>."
2847 msgstr ""
2848
2849 #. type: =head2
2850 #: ../clone/virt-sysprep.pod:194
2851 msgid "logfiles"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../clone/virt-sysprep.pod:196
2856 msgid "Remove many log files."
2857 msgstr ""
2858
2859 #. type: =head2
2860 #: ../clone/virt-sysprep.pod:198
2861 msgid "mail-spool"
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../clone/virt-sysprep.pod:200
2866 msgid "Remove email from the local mail spool directory."
2867 msgstr ""
2868
2869 #. type: =head2
2870 #: ../clone/virt-sysprep.pod:202
2871 msgid "net-hwaddr"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../clone/virt-sysprep.pod:204
2876 msgid ""
2877 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
2878 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
2879 msgstr ""
2880
2881 #. type: =head2
2882 #: ../clone/virt-sysprep.pod:207
2883 msgid "random-seed"
2884 msgstr ""
2885
2886 #. type: textblock
2887 #: ../clone/virt-sysprep.pod:209
2888 msgid ""
2889 "Write some random bytes from the host into the random seed file of the "
2890 "guest."
2891 msgstr ""
2892
2893 #. type: textblock
2894 #: ../clone/virt-sysprep.pod:212
2895 msgid "See L</RANDOM SEED> below."
2896 msgstr ""
2897
2898 #. type: =head2
2899 #: ../clone/virt-sysprep.pod:214
2900 msgid "rhn-systemid"
2901 msgstr ""
2902
2903 #. type: textblock
2904 #: ../clone/virt-sysprep.pod:216
2905 msgid "Remove the RHN system ID."
2906 msgstr ""
2907
2908 #. type: =head2
2909 #: ../clone/virt-sysprep.pod:218
2910 msgid "smolt-uuid"
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../clone/virt-sysprep.pod:220
2915 msgid "Remove the Smolt hardware UUID."
2916 msgstr ""
2917
2918 #. type: =head2
2919 #: ../clone/virt-sysprep.pod:222
2920 msgid "ssh-hostkeys"
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../clone/virt-sysprep.pod:224
2925 msgid "Remove the SSH host keys in the guest."
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../clone/virt-sysprep.pod:226
2930 msgid ""
2931 "The SSH host keys are regenerated (differently) next time the guest is "
2932 "booted."
2933 msgstr ""
2934
2935 #. type: textblock
2936 #: ../clone/virt-sysprep.pod:229
2937 msgid ""
2938 "If, after cloning, the guest gets the same IP address, ssh will give you a "
2939 "stark warning about the host key changing:"
2940 msgstr ""
2941
2942 #. type: verbatim
2943 #: ../clone/virt-sysprep.pod:232
2944 #, no-wrap
2945 msgid ""
2946 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2947 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
2948 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2949 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
2950 "\n"
2951 msgstr ""
2952
2953 #. type: =head2
2954 #: ../clone/virt-sysprep.pod:237
2955 msgid "udev-persistent-net"
2956 msgstr ""
2957
2958 #. type: textblock
2959 #: ../clone/virt-sysprep.pod:239
2960 msgid ""
2961 "Remove udev persistent net rules which map the guest's existing MAC address "
2962 "to a fixed ethernet device (eg. eth0)."
2963 msgstr ""
2964
2965 #. type: textblock
2966 #: ../clone/virt-sysprep.pod:242
2967 msgid ""
2968 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
2969 "address occupies the old name (eg. eth0), this means the fresh MAC address "
2970 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
2971 "Erasing the udev persistent net rules avoids this."
2972 msgstr ""
2973
2974 #. type: =head2
2975 #: ../clone/virt-sysprep.pod:247
2976 msgid "utmp"
2977 msgstr ""
2978
2979 #. type: textblock
2980 #: ../clone/virt-sysprep.pod:249
2981 msgid "Remove the utmp file."
2982 msgstr ""
2983
2984 #. type: textblock
2985 #: ../clone/virt-sysprep.pod:251
2986 msgid ""
2987 "This records who is currently logged in on a machine.  In modern Linux "
2988 "distros it is stored in a ramdisk and hence not part of the virtual "
2989 "machine's disk, but it was stored on disk in older distros."
2990 msgstr ""
2991
2992 #. type: =head2
2993 #: ../clone/virt-sysprep.pod:255
2994 msgid "yum-uuid"
2995 msgstr ""
2996
2997 #. type: textblock
2998 #: ../clone/virt-sysprep.pod:257
2999 msgid "Remove the yum UUID."
3000 msgstr ""
3001
3002 #. type: textblock
3003 #: ../clone/virt-sysprep.pod:259
3004 msgid ""
3005 "Yum creates a fresh UUID the next time it runs when it notices that the "
3006 "original UUID has been erased."
3007 msgstr ""
3008
3009 #. type: =head1
3010 #: ../clone/virt-sysprep.pod:262
3011 msgid "COPYING AND CLONING"
3012 msgstr ""
3013
3014 #. type: textblock
3015 #: ../clone/virt-sysprep.pod:264
3016 msgid ""
3017 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3018 "prepare a template from which guests can be cloned.  There are many "
3019 "different ways to achieve this using the virt tools, and this section is "
3020 "just an introduction."
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../clone/virt-sysprep.pod:269
3025 msgid "A virtual machine (when switched off) consists of two parts:"
3026 msgstr ""
3027
3028 #. type: =item
3029 #: ../clone/virt-sysprep.pod:273
3030 msgid "I<configuration>"
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../clone/virt-sysprep.pod:275
3035 msgid ""
3036 "The configuration or description of the guest.  eg. The libvirt XML (see "
3037 "C<virsh dumpxml>), the running configuration of the guest, or another "
3038 "external format like OVF."
3039 msgstr ""
3040
3041 #. type: textblock
3042 #: ../clone/virt-sysprep.pod:279
3043 msgid "Some configuration items that might need to be changed:"
3044 msgstr ""
3045
3046 #. type: textblock
3047 #: ../clone/virt-sysprep.pod:285
3048 msgid "name"
3049 msgstr ""
3050
3051 #. type: textblock
3052 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3053 msgid "UUID"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../clone/virt-sysprep.pod:293
3058 msgid "path to block device(s)"
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../clone/virt-sysprep.pod:297
3063 msgid "network card MAC address"
3064 msgstr ""
3065
3066 #. type: =item
3067 #: ../clone/virt-sysprep.pod:301
3068 msgid "I<block device(s)>"
3069 msgstr ""
3070
3071 #. type: textblock
3072 #: ../clone/virt-sysprep.pod:303
3073 msgid ""
3074 "One or more hard disk images, themselves containing files, directories, "
3075 "applications, kernels, configuration, etc."
3076 msgstr ""
3077
3078 #. type: textblock
3079 #: ../clone/virt-sysprep.pod:306
3080 msgid "Some things inside the block devices that might need to be changed:"
3081 msgstr ""
3082
3083 #. type: textblock
3084 #: ../clone/virt-sysprep.pod:312
3085 msgid "hostname and other net configuration"
3086 msgstr ""
3087
3088 #. type: textblock
3089 #: ../clone/virt-sysprep.pod:320
3090 msgid "SSH host keys"
3091 msgstr ""
3092
3093 #. type: textblock
3094 #: ../clone/virt-sysprep.pod:324
3095 msgid "Windows unique security ID (SID)"
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../clone/virt-sysprep.pod:328
3100 msgid "Puppet registration"
3101 msgstr ""
3102
3103 #. type: =head2
3104 #: ../clone/virt-sysprep.pod:334
3105 msgid "COPYING THE BLOCK DEVICE"
3106 msgstr ""
3107
3108 #. type: textblock
3109 #: ../clone/virt-sysprep.pod:336
3110 msgid ""
3111 "Starting with an original guest, you probably wish to copy the guest block "
3112 "device and its configuration to make a template.  Then once you are happy "
3113 "with the template, you will want to make many clones from it."
3114 msgstr ""
3115
3116 #. type: verbatim
3117 #: ../clone/virt-sysprep.pod:341
3118 #, no-wrap
3119 msgid ""
3120 "                        virt-sysprep\n"
3121 "                             |\n"
3122 "                             v\n"
3123 " original guest --------> template ---------->\n"
3124 "                                      \\------> cloned\n"
3125 "                                       \\-----> guests\n"
3126 "                                        \\---->\n"
3127 "\n"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../clone/virt-sysprep.pod:349
3132 msgid ""
3133 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3134 "L<dd(1)>."
3135 msgstr ""
3136
3137 #. type: verbatim
3138 #: ../clone/virt-sysprep.pod:352
3139 #, no-wrap
3140 msgid ""
3141 "                   dd                 dd\n"
3142 " original guest --------> template ---------->\n"
3143 "                                      \\------> cloned\n"
3144 "                                       \\-----> guests\n"
3145 "                                        \\---->\n"
3146 "\n"
3147 msgstr ""
3148
3149 #. type: textblock
3150 #: ../clone/virt-sysprep.pod:358
3151 msgid "There are some smarter (and faster) ways too:"
3152 msgstr ""
3153
3154 #. type: verbatim
3155 #: ../clone/virt-sysprep.pod:364
3156 #, no-wrap
3157 msgid ""
3158 "                          snapshot\n"
3159 "                template ---------->\n"
3160 "                            \\------> cloned\n"
3161 "                             \\-----> guests\n"
3162 "                              \\---->\n"
3163 "\n"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../clone/virt-sysprep.pod:370
3168 msgid ""
3169 "Use the block device as a backing file and create a snapshot on top for each "
3170 "guest.  The advantage is that you don't need to copy the block device (very "
3171 "fast) and only changes are stored (less storage required)."
3172 msgstr ""
3173
3174 #. type: textblock
3175 #: ../clone/virt-sysprep.pod:375
3176 msgid ""
3177 "Note that writing to the backing file once you have created guests on top of "
3178 "it is not possible: you will corrupt the guests."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../clone/virt-sysprep.pod:378
3183 msgid ""
3184 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3185 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3186 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3187 "also create cheap snapshots from files or LUNs."
3188 msgstr ""
3189
3190 #. type: textblock
3191 #: ../clone/virt-sysprep.pod:386
3192 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../clone/virt-sysprep.pod:390
3197 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3198 msgstr ""
3199
3200 #. type: =head2
3201 #: ../clone/virt-sysprep.pod:394
3202 msgid "VIRT-CLONE"
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../clone/virt-sysprep.pod:396
3207 msgid ""
3208 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3209 "and/or modify the external libvirt configuration of a guest.  It will reset "
3210 "the name, UUID and MAC address of the guest in the libvirt XML."
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../clone/virt-sysprep.pod:401
3215 msgid ""
3216 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3217 "image.  This was the original motivation to write virt-sysprep."
3218 msgstr ""
3219
3220 #. type: =head2
3221 #: ../clone/virt-sysprep.pod:404
3222 msgid "SPARSIFY"
3223 msgstr ""
3224
3225 #. type: verbatim
3226 #: ../clone/virt-sysprep.pod:406
3227 #, no-wrap
3228 msgid ""
3229 "              virt-sparsify\n"
3230 " original guest --------> template\n"
3231 "\n"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../clone/virt-sysprep.pod:409
3236 msgid ""
3237 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3238 "it easier to compress and/or faster to copy."
3239 msgstr ""
3240
3241 #. type: textblock
3242 #: ../clone/virt-sysprep.pod:412
3243 msgid ""
3244 "Notice that since virt-sparsify also copies the image, you can use it to "
3245 "make the initial copy (instead of C<dd>)."
3246 msgstr ""
3247
3248 #. type: =head2
3249 #: ../clone/virt-sysprep.pod:415
3250 msgid "RESIZE"
3251 msgstr ""
3252
3253 #. type: verbatim
3254 #: ../clone/virt-sysprep.pod:417
3255 #, no-wrap
3256 msgid ""
3257 "                         virt-resize\n"
3258 "                template ---------->\n"
3259 "                            \\------> cloned\n"
3260 "                             \\-----> guests\n"
3261 "                              \\---->\n"
3262 "\n"
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../clone/virt-sysprep.pod:423
3267 msgid ""
3268 "If you want to give people cloned guests, but let them pick the size of the "
3269 "guest themselves (eg. depending on how much they are prepared to pay for "
3270 "disk space), then instead of copying the template, you can run "
3271 "L<virt-resize(1)>.  Virt-resize performs a copy and resize, and thus is "
3272 "ideal for cloning guests from a template."
3273 msgstr ""
3274
3275 #. type: =head1
3276 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3277 msgid "SECURITY"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../clone/virt-sysprep.pod:431
3282 msgid ""
3283 "Although virt-sysprep removes some sensitive information from the guest, it "
3284 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3285 "above, and the implementation of the operations in the shell script.  You "
3286 "should also examine the guest afterwards."
3287 msgstr ""
3288
3289 #. type: textblock
3290 #: ../clone/virt-sysprep.pod:436
3291 msgid ""
3292 "Sensitive files are simply removed.  The data they contained may still exist "
3293 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3294 "L<virt-sparsify(1)> as one way to remove this content.  See also the "
3295 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3296 "inodes."
3297 msgstr ""
3298
3299 #. type: =head2
3300 #: ../clone/virt-sysprep.pod:442
3301 msgid "RANDOM SEED"
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../clone/virt-sysprep.pod:444
3306 msgid "I<(This section applies to Linux guests only)>"
3307 msgstr ""
3308
3309 #. type: textblock
3310 #: ../clone/virt-sysprep.pod:446
3311 msgid ""
3312 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3313 "from the host into the guest's random seed file."
3314 msgstr ""
3315
3316 #. type: textblock
3317 #: ../clone/virt-sysprep.pod:449
3318 msgid ""
3319 "If this is just done once and the guest is cloned from the same template, "
3320 "then each guest will start with the same entropy, and things like SSH host "
3321 "keys and TCP sequence numbers may be predictable."
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:453
3326 msgid ""
3327 "Therefore you should arrange to add more randomness I<after> cloning from a "
3328 "template too, which can be done by just enabling the C<random-seed> "
3329 "operation:"
3330 msgstr ""
3331
3332 #. type: verbatim
3333 #: ../clone/virt-sysprep.pod:457
3334 #, no-wrap
3335 msgid ""
3336 " cp template.img newguest.img\n"
3337 " virt-sysprep --enable=random-seed -a newguest.img\n"
3338 "\n"
3339 msgstr ""
3340
3341 #. type: =head2
3342 #: ../clone/virt-sysprep.pod:460
3343 msgid "SELINUX RELABELLING"
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../clone/virt-sysprep.pod:462
3348 msgid "I<(This section applies to Linux guests using SELinux only)>"
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../clone/virt-sysprep.pod:464
3353 msgid ""
3354 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3355 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3356 "next time the guest is booted.  This process interrupts boot and can take "
3357 "some time."
3358 msgstr ""
3359
3360 #. type: textblock
3361 #: ../clone/virt-sysprep.pod:469
3362 msgid ""
3363 "You can force relabelling for all guests by supplying the "
3364 "I<--selinux-relabel> option."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:472
3369 msgid ""
3370 "You can disable relabelling entirely by supplying the "
3371 "I<--no-selinux-relabel> option."
3372 msgstr ""
3373
3374 #. type: textblock
3375 #: ../clone/virt-sysprep.pod:484
3376 msgid "This program returns 0 on success, or 1 if there was an error."
3377 msgstr ""
3378
3379 #. type: textblock
3380 #: ../clone/virt-sysprep.pod:488
3381 msgid ""
3382 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, "
3383 "L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, "
3384 "L<qemu-img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, "
3385 "L<http://libvirt.org/>."
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../df/virt-df.pod:5
3390 msgid "virt-df - Display free space on virtual filesystems"
3391 msgstr ""
3392
3393 #. type: verbatim
3394 #: ../df/virt-df.pod:9
3395 #, no-wrap
3396 msgid ""
3397 " virt-df [--options]\n"
3398 "\n"
3399 msgstr ""
3400
3401 #. type: verbatim
3402 #: ../df/virt-df.pod:11
3403 #, no-wrap
3404 msgid ""
3405 " virt-df [--options] -d domname\n"
3406 "\n"
3407 msgstr ""
3408
3409 #. type: verbatim
3410 #: ../df/virt-df.pod:13
3411 #, no-wrap
3412 msgid ""
3413 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3414 "\n"
3415 msgstr ""
3416
3417 #. type: verbatim
3418 #: ../df/virt-df.pod:17
3419 #, no-wrap
3420 msgid ""
3421 " virt-df [--options] domname\n"
3422 "\n"
3423 msgstr ""
3424
3425 #. type: verbatim
3426 #: ../df/virt-df.pod:19
3427 #, no-wrap
3428 msgid ""
3429 " virt-df [--options] disk.img [disk.img ...]\n"
3430 "\n"
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../df/virt-df.pod:23
3435 msgid ""
3436 "C<virt-df> is a command line tool to display free space on virtual machine "
3437 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3438 "allocated to a virtual machine, but can look inside disk images to see how "
3439 "much space is really being used."
3440 msgstr ""
3441
3442 #. type: textblock
3443 #: ../df/virt-df.pod:28
3444 msgid ""
3445 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3446 "to get a list of all active and inactive guests, and performs a C<df>-type "
3447 "operation on each one in turn, printing out the results."
3448 msgstr ""
3449
3450 #. type: textblock
3451 #: ../df/virt-df.pod:32
3452 msgid ""
3453 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3454 "C<df>-type operation on either the single named libvirt domain, or on the "
3455 "disk image(s) listed on the command line (which must all belong to a single "
3456 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3457 "single guest>.  If you want to run on multiple guests, then you have to "
3458 "invoke C<virt-df> multiple times."
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../df/virt-df.pod:39
3463 msgid ""
3464 "Use the I<--csv> option to get a format which can be easily parsed by other "
3465 "programs.  Other options are similar to the standard L<df(1)> command."
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../df/virt-df.pod:45
3470 msgid ""
3471 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3472 "output human-readable:"
3473 msgstr ""
3474
3475 #. type: verbatim
3476 #: ../df/virt-df.pod:48
3477 #, no-wrap
3478 msgid ""
3479 " # virt-df -d F14x64 -h\n"
3480 " Filesystem                       Size     Used  Available  Use%\n"
3481 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3482 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3483 "\n"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../df/virt-df.pod:53
3488 msgid "Show disk usage for a disk image file called C<test.img>:"
3489 msgstr ""
3490
3491 #. type: verbatim
3492 #: ../df/virt-df.pod:55
3493 #, no-wrap
3494 msgid ""
3495 " $ virt-df -a test1.img\n"
3496 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3497 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3498 "\n"
3499 msgstr ""
3500
3501 #. type: verbatim
3502 #: ../df/virt-df.pod:112
3503 #, no-wrap
3504 msgid ""
3505 " virt-df --format=raw -a disk.img\n"
3506 "\n"
3507 msgstr ""
3508
3509 #. type: verbatim
3510 #: ../df/virt-df.pod:116
3511 #, no-wrap
3512 msgid ""
3513 " virt-df --format=raw -a disk.img --format -a another.img\n"
3514 "\n"
3515 msgstr ""
3516
3517 #. type: textblock
3518 #: ../df/virt-df.pod:129
3519 msgid "Print sizes in human-readable format."
3520 msgstr ""
3521
3522 #. type: textblock
3523 #: ../df/virt-df.pod:131
3524 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3525 msgstr ""
3526
3527 #. type: =item
3528 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3529 msgid "B<-i>"
3530 msgstr ""
3531
3532 #. type: =item
3533 #: ../df/virt-df.pod:135
3534 msgid "B<--inodes>"
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../df/virt-df.pod:137
3539 msgid "Print inodes instead of blocks."
3540 msgstr ""
3541
3542 #. type: =item
3543 #: ../df/virt-df.pod:139
3544 msgid "B<--one-per-guest>"
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../df/virt-df.pod:141
3549 msgid ""
3550 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3551 "disks from several guests to a single libguestfs appliance."
3552 msgstr ""
3553
3554 #. type: textblock
3555 #: ../df/virt-df.pod:144
3556 msgid "You might use this option in the following circumstances:"
3557 msgstr ""
3558
3559 #. type: textblock
3560 #: ../df/virt-df.pod:150
3561 msgid ""
3562 "If you think an untrusted guest might actively try to exploit the libguestfs "
3563 "appliance kernel, then this prevents one guest from interfering with the "
3564 "stats printed for another guest."
3565 msgstr ""
3566
3567 #. type: textblock
3568 #: ../df/virt-df.pod:156
3569 msgid ""
3570 "If the kernel has a bug which stops it from accessing a filesystem in one "
3571 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3572 "and report stats for further guests."
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../df/virt-df.pod:165
3577 msgid ""
3578 "Print UUIDs instead of names.  This is useful for following a guest even "
3579 "when the guest is migrated or renamed, or when two guests happen to have the "
3580 "same name."
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../df/virt-df.pod:169
3585 msgid ""
3586 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3587 "images, we still print the disk image name even when this option is "
3588 "specified."
3589 msgstr ""
3590
3591 #. type: =head1
3592 #: ../df/virt-df.pod:191
3593 msgid "STATVFS NUMBERS"
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../df/virt-df.pod:193
3598 msgid ""
3599 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
3600 "call.  You can get the same information directly, either from the host "
3601 "(using libguestfs) or inside the guest:"
3602 msgstr ""
3603
3604 #. type: =item
3605 #: ../df/virt-df.pod:199
3606 msgid "From the host"
3607 msgstr ""
3608
3609 #. type: textblock
3610 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
3611 msgid "Run this command:"
3612 msgstr ""
3613
3614 #. type: verbatim
3615 #: ../df/virt-df.pod:203
3616 #, no-wrap
3617 msgid ""
3618 " guestfish --ro -d GuestName -i statvfs /\n"
3619 "\n"
3620 msgstr ""
3621
3622 #. type: textblock
3623 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
3624 msgid "(change C</> to see stats for other filesystems)."
3625 msgstr ""
3626
3627 #. type: =item
3628 #: ../df/virt-df.pod:207
3629 msgid "From inside the guest"
3630 msgstr ""
3631
3632 #. type: verbatim
3633 #: ../df/virt-df.pod:211
3634 #, no-wrap
3635 msgid ""
3636 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
3637 "\n"
3638 msgstr ""
3639
3640 #. type: textblock
3641 #: ../df/virt-df.pod:255
3642 msgid ""
3643 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3644 "L<http://libguestfs.org/>."
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../edit/virt-edit.pod:5
3649 msgid "virt-edit - Edit a file in a virtual machine"
3650 msgstr ""
3651
3652 #. type: verbatim
3653 #: ../edit/virt-edit.pod:9
3654 #, no-wrap
3655 msgid ""
3656 " virt-edit [--options] -d domname file [file ...]\n"
3657 "\n"
3658 msgstr ""
3659
3660 #. type: verbatim
3661 #: ../edit/virt-edit.pod:11
3662 #, no-wrap
3663 msgid ""
3664 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3665 "\n"
3666 msgstr ""
3667
3668 #. type: verbatim
3669 #: ../edit/virt-edit.pod:13
3670 #, no-wrap
3671 msgid ""
3672 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3673 "\n"
3674 msgstr ""
3675
3676 #. type: verbatim
3677 #: ../edit/virt-edit.pod:17
3678 #, no-wrap
3679 msgid ""
3680 " virt-edit domname file\n"
3681 "\n"
3682 msgstr ""
3683
3684 #. type: verbatim
3685 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3686 #, no-wrap
3687 msgid ""
3688 " virt-edit disk.img [disk.img ...] file\n"
3689 "\n"
3690 msgstr ""
3691
3692 #. type: =head1
3693 #: ../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:21 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3694 msgid "WARNING"
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../edit/virt-edit.pod:23
3699 msgid ""
3700 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3701 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3702 "doing this, but doesn't catch all cases."
3703 msgstr ""
3704
3705 #. type: textblock
3706 #: ../edit/virt-edit.pod:29
3707 msgid ""
3708 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3709 "exists in the named virtual machine (or disk image)."
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../edit/virt-edit.pod:32
3714 msgid ""
3715 "Multiple filenames can be given, in which case they are each edited in "
3716 "turn.  Each filename must be a full path, starting at the root directory "
3717 "(starting with '/')."
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../edit/virt-edit.pod:36
3722 msgid "If you want to just view a file, use L<virt-cat(1)>."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../edit/virt-edit.pod:38
3727 msgid ""
3728 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3729 "L</USING GUESTFISH> below)."
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../edit/virt-edit.pod:41
3734 msgid ""
3735 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3736 "that and much more."
3737 msgstr ""
3738
3739 #. type: textblock
3740 #: ../edit/virt-edit.pod:46
3741 msgid "Edit the named files interactively:"
3742 msgstr ""
3743
3744 #. type: verbatim
3745 #: ../edit/virt-edit.pod:48
3746 #, no-wrap
3747 msgid ""
3748 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3749 "\n"
3750 msgstr ""
3751
3752 #. type: verbatim
3753 #: ../edit/virt-edit.pod:50
3754 #, no-wrap
3755 msgid ""
3756 " virt-edit -d mydomain /etc/passwd\n"
3757 "\n"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../edit/virt-edit.pod:52
3762 msgid "For Windows guests, some Windows paths are understood:"
3763 msgstr ""
3764
3765 #. type: verbatim
3766 #: ../edit/virt-edit.pod:54
3767 #, no-wrap
3768 msgid ""
3769 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3770 "\n"
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../edit/virt-edit.pod:56
3775 msgid ""
3776 "If Perl is installed, you can also edit files non-interactively (see "
3777 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3778 msgstr ""
3779
3780 #. type: verbatim
3781 #: ../edit/virt-edit.pod:60
3782 #, no-wrap
3783 msgid ""
3784 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3785 "\n"
3786 msgstr ""
3787
3788 #. type: =item
3789 #: ../edit/virt-edit.pod:81
3790 msgid "B<-b> extension"
3791 msgstr ""
3792
3793 #. type: =item
3794 #: ../edit/virt-edit.pod:83
3795 msgid "B<--backup> extension"
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../edit/virt-edit.pod:85
3800 msgid ""
3801 "Create a backup of the original file I<in the guest disk image>.  The backup "
3802 "has the original filename with C<extension> added."
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../edit/virt-edit.pod:88
3807 msgid ""
3808 "Usually the first character of C<extension> would be a dot C<.> so you would "
3809 "write:"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../edit/virt-edit.pod:91
3814 #, no-wrap
3815 msgid ""
3816 " virt-edit -b .orig [etc]\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../edit/virt-edit.pod:93
3822 msgid "By default, no backup file is made."
3823 msgstr ""
3824
3825 #. type: =item
3826 #: ../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
3827 msgid "B<-c URI>"
3828 msgstr ""
3829
3830 #. type: =item
3831 #: ../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
3832 msgid "B<--connect URI>"
3833 msgstr ""
3834
3835 #. type: textblock
3836 #: ../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
3837 msgid ""
3838 "If you specify guest block devices directly, then libvirt is not used at "
3839 "all."
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../edit/virt-edit.pod:114
3844 msgid ""
3845 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3846 "off so you cannot see what you are typing.  If you are not worried about "
3847 "Tempest attacks and there is no one else in the room you can specify this "
3848 "flag to see what you are typing."
3849 msgstr ""
3850
3851 #. type: =item
3852 #: ../edit/virt-edit.pod:119
3853 msgid "B<-e> EXPR"
3854 msgstr ""
3855
3856 #. type: =item
3857 #: ../edit/virt-edit.pod:121
3858 msgid "B<--expr> EXPR"
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../edit/virt-edit.pod:123
3863 msgid ""
3864 "Instead of launching the external editor, non-interactively apply the Perl "
3865 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3866 "EDITING> below."
3867 msgstr ""
3868
3869 #. type: textblock
3870 #: ../edit/virt-edit.pod:127
3871 msgid ""
3872 "Be careful to properly quote the expression to prevent it from being altered "
3873 "by the shell."
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../edit/virt-edit.pod:130
3878 msgid "Note that this option is only available when Perl 5 is installed."
3879 msgstr ""
3880
3881 #. type: =item
3882 #: ../edit/virt-edit.pod:132
3883 msgid "B<--format> raw|qcow2|..."
3884 msgstr ""
3885
3886 #. type: verbatim
3887 #: ../edit/virt-edit.pod:143
3888 #, no-wrap
3889 msgid ""
3890 " virt-edit --format=raw -a disk.img file\n"
3891 "\n"
3892 msgstr ""
3893
3894 #. type: verbatim
3895 #: ../edit/virt-edit.pod:147
3896 #, no-wrap
3897 msgid ""
3898 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3899 "\n"
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../edit/virt-edit.pod:181
3904 msgid "Previous versions of virt-edit allowed you to write either:"
3905 msgstr ""
3906
3907 #. type: verbatim
3908 #: ../edit/virt-edit.pod:187
3909 #, no-wrap
3910 msgid ""
3911 " virt-edit guestname file\n"
3912 "\n"
3913 msgstr ""
3914
3915 #. type: =head1
3916 #: ../edit/virt-edit.pod:195
3917 msgid "NON-INTERACTIVE EDITING"
3918 msgstr ""
3919
3920 #. type: textblock
3921 #: ../edit/virt-edit.pod:197
3922 msgid ""
3923 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3924 "administrator can interactively edit the file."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../edit/virt-edit.pod:200
3929 msgid ""
3930 "There are two ways also to use C<virt-edit> from scripts in order to make "
3931 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3932 "like this, it's less error-prone to write scripts directly using the "
3933 "libguestfs API and Augeas for configuration file editing.)"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../edit/virt-edit.pod:206
3938 msgid ""
3939 "The first method is to temporarily set C<$EDITOR> to any script or program "
3940 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3941 "update C<tmpfile> in place however it likes."
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../edit/virt-edit.pod:210
3946 msgid ""
3947 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3948 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3949 "instances of C<foo> with C<bar> in a file:"
3950 msgstr ""
3951
3952 #. type: verbatim
3953 #: ../edit/virt-edit.pod:214
3954 #, no-wrap
3955 msgid ""
3956 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3957 "\n"
3958 msgstr ""
3959
3960 #. type: textblock
3961 #: ../edit/virt-edit.pod:216
3962 msgid ""
3963 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3964 "For example to delete root's password you could do:"
3965 msgstr ""
3966
3967 #. type: verbatim
3968 #: ../edit/virt-edit.pod:219
3969 #, no-wrap
3970 msgid ""
3971 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3972 "\n"
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../edit/virt-edit.pod:221
3977 msgid ""
3978 "What really happens is that the snippet is evaluated as a Perl expression "
3979 "for each line of the file.  The line, including the final C<\\n>, is passed "
3980 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../edit/virt-edit.pod:226
3985 msgid ""
3986 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3987 "C<apache> user account from the password file you can do:"
3988 msgstr ""
3989
3990 #. type: verbatim
3991 #: ../edit/virt-edit.pod:229
3992 #, no-wrap
3993 msgid ""
3994 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3995 "\n"
3996 msgstr ""
3997
3998 #. type: textblock
3999 #: ../edit/virt-edit.pod:231
4000 msgid ""
4001 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4002 "the end of the file is rather difficult this way since there is no concept "
4003 "of \"last line of the file\" - your expression just doesn't get called "
4004 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4005 "want to do this."
4006 msgstr ""
4007
4008 #. type: textblock
4009 #: ../edit/virt-edit.pod:237
4010 msgid ""
4011 "The variable C<$lineno> contains the current line number.  As is "
4012 "traditional, the first line in the file is number C<1>."
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../edit/virt-edit.pod:240
4017 msgid ""
4018 "The return value from the expression is ignored, but the expression may call "
4019 "C<die> in order to abort the whole program, leaving the original file "
4020 "untouched."
4021 msgstr ""
4022
4023 #. type: textblock
4024 #: ../edit/virt-edit.pod:244
4025 msgid ""
4026 "Remember when matching the end of a line that C<$_> may contain the final "
4027 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4028 "newline then neither of these.  Thus to match or substitute some text at the "
4029 "end of a line, use this regular expression:"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:249
4034 #, no-wrap
4035 msgid ""
4036 " /some text(\\r?\\n)?$/\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../edit/virt-edit.pod:251
4042 msgid ""
4043 "Alternately, use the perl C<chomp> function, being careful not to chomp "
4044 "C<$_> itself (since that would remove all newlines from the file):"
4045 msgstr ""
4046
4047 #. type: verbatim
4048 #: ../edit/virt-edit.pod:255
4049 #, no-wrap
4050 msgid ""
4051 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4052 "\n"
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../edit/virt-edit.pod:259
4057 msgid ""
4058 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4059 "paths (eg. C<E:\\foo\\bar.txt>)."
4060 msgstr ""
4061
4062 #. type: textblock
4063 #: ../edit/virt-edit.pod:278
4064 msgid ""
4065 "The path is resolved case insensitively to locate the file that should be "
4066 "edited."
4067 msgstr ""
4068
4069 #. type: textblock
4070 #: ../edit/virt-edit.pod:299
4071 msgid ""
4072 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4073 "C<virt-edit> doesn't work."
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../edit/virt-edit.pod:302
4078 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4079 msgstr ""
4080
4081 #. type: verbatim
4082 #: ../edit/virt-edit.pod:304
4083 #, no-wrap
4084 msgid ""
4085 " guestfish --rw -i -d domname edit /file\n"
4086 "\n"
4087 msgstr ""
4088
4089 #. type: textblock
4090 #: ../edit/virt-edit.pod:306
4091 msgid ""
4092 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4093 "path to the file."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../edit/virt-edit.pod:309
4098 msgid ""
4099 "The command above uses libguestfs's guest inspection feature and so does not "
4100 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4101 "disk images that don't contain guests.  To edit a file on a disk image "
4102 "directly, use:"
4103 msgstr ""
4104
4105 #. type: verbatim
4106 #: ../edit/virt-edit.pod:314
4107 #, no-wrap
4108 msgid ""
4109 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4110 "\n"
4111 msgstr ""
4112
4113 #. type: textblock
4114 #: ../edit/virt-edit.pod:316
4115 msgid ""
4116 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4117 "the disk image to edit, and C</file> is the full path to the file."
4118 msgstr ""
4119
4120 #. type: textblock
4121 #: ../edit/virt-edit.pod:320
4122 msgid ""
4123 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4124 "C<write> or C<upload> instead:"
4125 msgstr ""
4126
4127 #. type: verbatim
4128 #: ../edit/virt-edit.pod:323
4129 #, no-wrap
4130 msgid ""
4131 " guestfish --rw -i -d domname touch /newfile\n"
4132 "\n"
4133 msgstr ""
4134
4135 #. type: verbatim
4136 #: ../edit/virt-edit.pod:325
4137 #, no-wrap
4138 msgid ""
4139 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4140 "\n"
4141 msgstr ""
4142
4143 #. type: verbatim
4144 #: ../edit/virt-edit.pod:327
4145 #, no-wrap
4146 msgid ""
4147 " guestfish --rw -i -d domname upload localfile /newfile\n"
4148 "\n"
4149 msgstr ""
4150
4151 #. type: =head1
4152 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:250 ../src/guestfs.pod:3214 ../test-tool/libguestfs-test-tool.pod:95
4153 msgid "ENVIRONMENT VARIABLES"
4154 msgstr ""
4155
4156 #. type: =item
4157 #: ../edit/virt-edit.pod:333
4158 msgid "C<EDITOR>"
4159 msgstr ""
4160
4161 #. type: textblock
4162 #: ../edit/virt-edit.pod:335
4163 msgid ""
4164 "If set, this string is used as the editor.  It may contain arguments, "
4165 "eg. C<\"emacs -nw\">"
4166 msgstr ""
4167
4168 #. type: textblock
4169 #: ../edit/virt-edit.pod:338
4170 msgid "If not set, C<vi> is used."
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:356
4175 msgid ""
4176 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
4177 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
4178 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../erlang/examples/guestfs-erlang.pod:5
4183 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4184 msgstr ""
4185
4186 #. type: verbatim
4187 #: ../erlang/examples/guestfs-erlang.pod:9
4188 #, no-wrap
4189 msgid ""
4190 " {ok, G} = guestfs:create(),\n"
4191 " ok = guestfs:add_drive_opts(G, Disk,\n"
4192 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4193 " ok = guestfs:launch(G),\n"
4194 " [Device] = guestfs:list_devices(G),\n"
4195 " ok = guestfs:close(G).\n"
4196 "\n"
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../erlang/examples/guestfs-erlang.pod:18
4201 msgid ""
4202 "This manual page documents how to call libguestfs from the Erlang "
4203 "programming language.  This page just documents the differences from the C "
4204 "API and gives some examples.  If you are not familiar with using libguestfs, "
4205 "you also need to read L<guestfs(3)>."
4206 msgstr ""
4207
4208 #. type: =head2
4209 #: ../erlang/examples/guestfs-erlang.pod:23
4210 msgid "OPENING AND CLOSING THE HANDLE"
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../erlang/examples/guestfs-erlang.pod:25
4215 msgid ""
4216 "The Erlang bindings are implemented using an external program called "
4217 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
4218 "should specify the full path to the program:"
4219 msgstr ""
4220
4221 #. type: verbatim
4222 #: ../erlang/examples/guestfs-erlang.pod:29
4223 #, no-wrap
4224 msgid ""
4225 " {ok, G} = guestfs:create().\n"
4226 "\n"
4227 msgstr ""
4228
4229 #. type: verbatim
4230 #: ../erlang/examples/guestfs-erlang.pod:31
4231 #, no-wrap
4232 msgid ""
4233 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4234 "\n"
4235 msgstr ""
4236
4237 #. type: textblock
4238 #: ../erlang/examples/guestfs-erlang.pod:33
4239 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../erlang/examples/guestfs-erlang.pod:36
4244 msgid "To close the handle:"
4245 msgstr ""
4246
4247 #. type: verbatim
4248 #: ../erlang/examples/guestfs-erlang.pod:38
4249 #, no-wrap
4250 msgid ""
4251 " ok = guestfs:close(G).\n"
4252 "\n"
4253 msgstr ""
4254
4255 #. type: =head2
4256 #: ../erlang/examples/guestfs-erlang.pod:40
4257 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4258 msgstr ""
4259
4260 #. type: textblock
4261 #: ../erlang/examples/guestfs-erlang.pod:42
4262 msgid ""
4263 "For functions that take optional arguments, the first arguments are the "
4264 "non-optional ones.  The last argument is a list of tuples supplying the "
4265 "remaining optional arguments."
4266 msgstr ""
4267
4268 #. type: verbatim
4269 #: ../erlang/examples/guestfs-erlang.pod:46
4270 #, no-wrap
4271 msgid ""
4272 " ok = guestfs:add_drive_opts(G, Disk,\n"
4273 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4274 "\n"
4275 msgstr ""
4276
4277 #. type: textblock
4278 #: ../erlang/examples/guestfs-erlang.pod:49
4279 msgid "If the last argument would be an empty list, you can also omit it:"
4280 msgstr ""
4281
4282 #. type: verbatim
4283 #: ../erlang/examples/guestfs-erlang.pod:51
4284 #, no-wrap
4285 msgid ""
4286 " ok = guestfs:add_drive_opts(G, Disk).\n"
4287 "\n"
4288 msgstr ""
4289
4290 #. type: =head2
4291 #: ../erlang/examples/guestfs-erlang.pod:53
4292 msgid "RETURN VALUES AND ERRORS"
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../erlang/examples/guestfs-erlang.pod:55
4297 msgid ""
4298 "On success, most functions return a C<Result> term (which could be a list, "
4299 "string, tuple etc.).  If there is nothing for the function to return, then "
4300 "the atom C<ok> is returned."
4301 msgstr ""
4302
4303 #. type: textblock
4304 #: ../erlang/examples/guestfs-erlang.pod:59
4305 msgid "On error, you would see one of the following tuples:"
4306 msgstr ""
4307
4308 #. type: =item
4309 #: ../erlang/examples/guestfs-erlang.pod:63
4310 msgid "C<{error, Msg, Errno}>"
4311 msgstr ""
4312
4313 #. type: textblock
4314 #: ../erlang/examples/guestfs-erlang.pod:65
4315 msgid "This indicates an ordinary error from the function."
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../erlang/examples/guestfs-erlang.pod:67
4320 msgid ""
4321 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4322 "(integer)."
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../erlang/examples/guestfs-erlang.pod:70
4327 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4328 msgstr ""
4329
4330 #. type: =item
4331 #: ../erlang/examples/guestfs-erlang.pod:72
4332 msgid "C<{unknown, Function}>"
4333 msgstr ""
4334
4335 #. type: textblock
4336 #: ../erlang/examples/guestfs-erlang.pod:74
4337 msgid ""
4338 "This indicates that the function you called is not known.  Generally this "
4339 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4340 "which you should not do."
4341 msgstr ""
4342
4343 #. type: textblock
4344 #: ../erlang/examples/guestfs-erlang.pod:78
4345 msgid "C<Function> is the name of the unknown function."
4346 msgstr ""
4347
4348 #. type: =item
4349 #: ../erlang/examples/guestfs-erlang.pod:80
4350 msgid "C<{unknownarg, Arg}>"
4351 msgstr ""
4352
4353 #. type: textblock
4354 #: ../erlang/examples/guestfs-erlang.pod:82
4355 msgid ""
4356 "This indicates that you called a function with optional arguments, with an "
4357 "unknown argument name."
4358 msgstr ""
4359
4360 #. type: textblock
4361 #: ../erlang/examples/guestfs-erlang.pod:85
4362 msgid "C<Arg> is the name of the unknown argument."
4363 msgstr ""
4364
4365 #. type: =head1
4366 #: ../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
4367 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../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
4372 msgid "@EXAMPLE1@"
4373 msgstr ""
4374
4375 #. type: =head1
4376 #: ../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
4377 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4378 msgstr ""
4379
4380 #. type: textblock
4381 #: ../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
4382 msgid "@EXAMPLE2@"
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../erlang/examples/guestfs-erlang.pod:99
4387 msgid ""
4388 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4389 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4390 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
4391 "L<http://libguestfs.org/>."
4392 msgstr ""
4393
4394 #. type: =head1
4395 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../examples/guestfs-testing.pod:298 ../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:404 ../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:3354 ../test-tool/libguestfs-test-tool.pod:106
4396 msgid "AUTHORS"
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../examples/guestfs-testing.pod:300 ../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:3356 ../test-tool/libguestfs-test-tool.pod:108
4401 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../erlang/examples/guestfs-erlang.pod:116 ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4406 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4407 msgstr ""
4408
4409 #. type: textblock
4410 #: ../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
4411 msgid ""
4412 "The examples in this manual page may be freely copied, modified and "
4413 "distributed without any restrictions."
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../erlang/examples/guestfs-erlang.pod:121 ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 ../examples/guestfs-testing.pod:306 ../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:3363
4418 msgid ""
4419 "This library is free software; you can redistribute it and/or modify it "
4420 "under the terms of the GNU Lesser General Public License as published by the "
4421 "Free Software Foundation; either version 2 of the License, or (at your "
4422 "option) any later version."
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../erlang/examples/guestfs-erlang.pod:126 ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 ../examples/guestfs-testing.pod:311 ../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:3368
4427 msgid ""
4428 "This library is distributed in the hope that it will be useful, but WITHOUT "
4429 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4430 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4431 "for more details."
4432 msgstr ""
4433
4434 #. type: textblock
4435 #: ../erlang/examples/guestfs-erlang.pod:131 ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 ../examples/guestfs-testing.pod:316 ../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:3373
4436 msgid ""
4437 "You should have received a copy of the GNU Lesser General Public License "
4438 "along with this library; if not, write to the Free Software Foundation, "
4439 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../examples/guestfs-examples.pod:5
4444 msgid "guestfs-examples - Examples of using libguestfs from C"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4449 #, no-wrap
4450 msgid ""
4451 " #include <guestfs.h>\n"
4452 " \n"
4453 msgstr ""
4454
4455 #. type: verbatim
4456 #: ../examples/guestfs-examples.pod:11
4457 #, no-wrap
4458 msgid ""
4459 " guestfs_h *g = guestfs_create ();\n"
4460 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4461 " guestfs_launch (g);\n"
4462 "\n"
4463 msgstr ""
4464
4465 #. type: verbatim
4466 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4467 #, no-wrap
4468 msgid ""
4469 " cc prog.c -o prog -lguestfs\n"
4470 "or:\n"
4471 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4472 "\n"
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../examples/guestfs-examples.pod:21
4477 msgid ""
4478 "This manual page contains examples of calling libguestfs from the C "
4479 "programming language.  If you are not familiar with using libguestfs, you "
4480 "also need to read L<guestfs(3)>."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../examples/guestfs-examples.pod:35
4485 msgid ""
4486 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
4487 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4488 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4489 msgstr ""
4490
4491 #. type: textblock
4492 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
4493 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4494 msgstr ""
4495
4496 #. type: =end
4497 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4498 msgid "comment"
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../examples/guestfs-recipes.pod:5
4503 msgid ""
4504 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4505 "here.  The only way which works for both sorts of output is to just write "
4506 "the URL directly.  Do NOT use L<...> for URLs."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../examples/guestfs-recipes.pod:9
4511 msgid ""
4512 "We break with tradition here and don't use ALL CAPS for the section "
4513 "headings, as this makes them much easier to read."
4514 msgstr ""
4515
4516 #. type: textblock
4517 #: ../examples/guestfs-recipes.pod:16
4518 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4519 msgstr ""
4520
4521 #. type: textblock
4522 #: ../examples/guestfs-recipes.pod:20
4523 msgid ""
4524 "This page contains recipes for and links to things you can do using "
4525 "libguestfs, L<guestfish(1)> and the virt tools."
4526 msgstr ""
4527
4528 #. type: =head1
4529 #: ../examples/guestfs-recipes.pod:23
4530 msgid "Audit a virtual machine for setuid files"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../examples/guestfs-recipes.pod:25
4535 msgid ""
4536 "The link below contains a small program which can be used to audit a Linux "
4537 "virtual machine to see what setuid and setgid files it contains."
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../examples/guestfs-recipes.pod:28
4542 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
4543 msgstr ""
4544
4545 #. type: =head1
4546 #: ../examples/guestfs-recipes.pod:30
4547 msgid "Change the background image in a Windows XP VM"
4548 msgstr ""
4549
4550 #. type: textblock
4551 #: ../examples/guestfs-recipes.pod:32
4552 msgid ""
4553 "The links below explain how to use L<guestfish(1)> to change the background "
4554 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4555 "be substantially different for each version of Windows."
4556 msgstr ""
4557
4558 #. type: textblock
4559 #: ../examples/guestfs-recipes.pod:37
4560 msgid ""
4561 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4562 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4563 msgstr ""
4564
4565 #. type: =head1
4566 #: ../examples/guestfs-recipes.pod:40
4567 msgid "Cloning a virtual machine (Linux)"
4568 msgstr ""
4569
4570 #. type: textblock
4571 #: ../examples/guestfs-recipes.pod:42
4572 msgid ""
4573 "The guestfish technique described in the link below works well for most "
4574 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4575 "slightly."
4576 msgstr ""
4577
4578 #. type: textblock
4579 #: ../examples/guestfs-recipes.pod:46
4580 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
4581 msgstr ""
4582
4583 #. type: textblock
4584 #: ../examples/guestfs-recipes.pod:48
4585 msgid ""
4586 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4587 "discussion."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../examples/guestfs-recipes.pod:51
4592 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4593 msgstr ""
4594
4595 #. type: =head1
4596 #: ../examples/guestfs-recipes.pod:53
4597 msgid "Cloning a virtual machine (Windows)"
4598 msgstr ""
4599
4600 #. type: textblock
4601 #: ../examples/guestfs-recipes.pod:55
4602 msgid ""
4603 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4604 "straightforward.  Currently there is code in the Aeolus Oz project which "
4605 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4606 "we may add sysprepping ability."
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../examples/guestfs-recipes.pod:60
4611 msgid ""
4612 "https://github.com/clalancette/oz "
4613 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4614 msgstr ""
4615
4616 #. type: =head1
4617 #: ../examples/guestfs-recipes.pod:63
4618 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../examples/guestfs-recipes.pod:65
4623 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4624 msgstr ""
4625
4626 #. type: verbatim
4627 #: ../examples/guestfs-recipes.pod:67
4628 #, no-wrap
4629 msgid ""
4630 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4631 "\n"
4632 msgstr ""
4633
4634 #. type: textblock
4635 #: ../examples/guestfs-recipes.pod:69
4636 msgid "To export just a subdirectory, eg. C</files>, do:"
4637 msgstr ""
4638
4639 #. type: verbatim
4640 #: ../examples/guestfs-recipes.pod:71
4641 #, no-wrap
4642 msgid ""
4643 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4644 "\n"
4645 msgstr ""
4646
4647 #. type: =head1
4648 #: ../examples/guestfs-recipes.pod:73
4649 msgid "Create empty disk images"
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../examples/guestfs-recipes.pod:75
4654 msgid ""
4655 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4656 "The useful guide below explains the options available."
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../examples/guestfs-recipes.pod:78
4661 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
4662 msgstr ""
4663
4664 #. type: =head1
4665 #: ../examples/guestfs-recipes.pod:80
4666 msgid "Dump raw filesystem content from inside a disk image or VM"
4667 msgstr ""
4668
4669 #. type: textblock
4670 #: ../examples/guestfs-recipes.pod:82
4671 msgid ""
4672 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4673 "filesystem content from any filesystem in a disk image or a VM (even one "
4674 "which is encrypted or buried inside an LV):"
4675 msgstr ""
4676
4677 #. type: verbatim
4678 #: ../examples/guestfs-recipes.pod:86
4679 #, no-wrap
4680 msgid ""
4681 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4682 "\n"
4683 msgstr ""
4684
4685 #. type: verbatim
4686 #: ../examples/guestfs-recipes.pod:88
4687 #, no-wrap
4688 msgid ""
4689 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4690 "\n"
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../examples/guestfs-recipes.pod:90
4695 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4696 msgstr ""
4697
4698 #. type: =head1
4699 #: ../examples/guestfs-recipes.pod:92
4700 msgid "Edit grub configuration in a VM"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../examples/guestfs-recipes.pod:94
4705 msgid "You can use this to:"
4706 msgstr ""
4707
4708 #. type: textblock
4709 #: ../examples/guestfs-recipes.pod:100
4710 msgid "Fix a virtual machine that does not boot."
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../examples/guestfs-recipes.pod:104
4715 msgid "Change which kernel is used to boot the VM."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../examples/guestfs-recipes.pod:108
4720 msgid "Change kernel command line options."
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../examples/guestfs-recipes.pod:112
4725 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../examples/guestfs-recipes.pod:114
4730 #, no-wrap
4731 msgid ""
4732 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../examples/guestfs-recipes.pod:116
4738 msgid ""
4739 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4740 "this:"
4741 msgstr ""
4742
4743 #. type: verbatim
4744 #: ../examples/guestfs-recipes.pod:119
4745 #, no-wrap
4746 msgid ""
4747 " virt-rescue -d BrokenGuest\n"
4748 "\n"
4749 msgstr ""
4750
4751 #. type: =head1
4752 #: ../examples/guestfs-recipes.pod:121
4753 msgid "Export any directory from a VM"
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../examples/guestfs-recipes.pod:123
4758 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4759 msgstr ""
4760
4761 #. type: verbatim
4762 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
4763 #, no-wrap
4764 msgid ""
4765 " virt-copy-out -d Guest /home .\n"
4766 "\n"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685 ../tools/virt-win-reg.pl:717
4771 msgid "Notes:"
4772 msgstr ""
4773
4774 #. type: textblock
4775 #: ../examples/guestfs-recipes.pod:134
4776 msgid ""
4777 "The final dot of the command is not a printing error.  It means we want to "
4778 "copy out to the current directory."
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../examples/guestfs-recipes.pod:139
4783 msgid "This creates a directory called C<home> under the current directory."
4784 msgstr ""
4785
4786 #. type: textblock
4787 #: ../examples/guestfs-recipes.pod:143
4788 msgid ""
4789 "If the guest is a Windows guest then you can use drive letters and "
4790 "backslashes, but you must prefix the path with C<win:> and quote it to "
4791 "protect it from the shell, like this:"
4792 msgstr ""
4793
4794 #. type: verbatim
4795 #: ../examples/guestfs-recipes.pod:147
4796 #, no-wrap
4797 msgid ""
4798 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4799 "\n"
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../examples/guestfs-recipes.pod:149
4804 msgid "To get the output as a compressed tarball, do:"
4805 msgstr ""
4806
4807 #. type: verbatim
4808 #: ../examples/guestfs-recipes.pod:151
4809 #, no-wrap
4810 msgid ""
4811 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4812 "\n"
4813 msgstr ""
4814
4815 #. type: textblock
4816 #: ../examples/guestfs-recipes.pod:153
4817 msgid ""
4818 "Although it sounds tempting, this is usually not a reliable way to get a "
4819 "backup from a running guest.  See the entry in the FAQ: "
4820 "http://libguestfs.org/FAQ.html#backup"
4821 msgstr ""
4822
4823 #. type: =head1
4824 #: ../examples/guestfs-recipes.pod:157
4825 msgid "Find out which user is using the most space"
4826 msgstr ""
4827
4828 #. type: textblock
4829 #: ../examples/guestfs-recipes.pod:159
4830 msgid ""
4831 "This simple script examines a Linux guest to find out which user is using "
4832 "the most space in their home directory:"
4833 msgstr ""
4834
4835 #. type: verbatim
4836 #: ../examples/guestfs-recipes.pod:162
4837 #, no-wrap
4838 msgid ""
4839 " #!/bin/sh -\n"
4840 " \n"
4841 msgstr ""
4842
4843 #. type: verbatim
4844 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4845 #, no-wrap
4846 msgid ""
4847 " set -e\n"
4848 " \n"
4849 msgstr ""
4850
4851 #. type: verbatim
4852 #: ../examples/guestfs-recipes.pod:166
4853 #, no-wrap
4854 msgid ""
4855 " vm=\"$1\"\n"
4856 " dir=/home\n"
4857 " \n"
4858 msgstr ""
4859
4860 #. type: verbatim
4861 #: ../examples/guestfs-recipes.pod:169
4862 #, no-wrap
4863 msgid ""
4864 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4865 " \n"
4866 msgstr ""
4867
4868 #. type: verbatim
4869 #: ../examples/guestfs-recipes.pod:171
4870 #, no-wrap
4871 msgid ""
4872 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4873 "     echo -n \"$dir/$d\"\n"
4874 "     echo -ne '\\t'\n"
4875 "     guestfish --remote du \"$dir/$d\";\n"
4876 " done | sort -nr -k 2\n"
4877 " \n"
4878 msgstr ""
4879
4880 #. type: verbatim
4881 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4882 #, no-wrap
4883 msgid ""
4884 " guestfish --remote exit\n"
4885 "\n"
4886 msgstr ""
4887
4888 #. type: =head1
4889 #: ../examples/guestfs-recipes.pod:179
4890 msgid "Get DHCP address from a VM"
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../examples/guestfs-recipes.pod:181
4895 msgid ""
4896 "The link below explains the many different possible techniques for getting "
4897 "the last assigned DHCP address of a virtual machine."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../examples/guestfs-recipes.pod:184
4902 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../examples/guestfs-recipes.pod:186
4907 msgid ""
4908 "In the libguestfs source examples directory you will find the latest version "
4909 "of the C<virt-dhcp-address.c> program."
4910 msgstr ""
4911
4912 #. type: =head1
4913 #: ../examples/guestfs-recipes.pod:189
4914 msgid "Get the operating system product name string"
4915 msgstr ""
4916
4917 #. type: textblock
4918 #: ../examples/guestfs-recipes.pod:191
4919 msgid "Save the following script into a file called C<product-name.sh>:"
4920 msgstr ""
4921
4922 #. type: verbatim
4923 #: ../examples/guestfs-recipes.pod:193
4924 #, no-wrap
4925 msgid ""
4926 " #!/bin/sh -\n"
4927 " set -e\n"
4928 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4929 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4930 " guestfish --remote inspect-get-product-name \"$root\"\n"
4931 " guestfish --remote exit\n"
4932 "\n"
4933 msgstr ""
4934
4935 #. type: textblock
4936 #: ../examples/guestfs-recipes.pod:200
4937 msgid "Make the script executable and run it on a named guest:"
4938 msgstr ""
4939
4940 #. type: verbatim
4941 #: ../examples/guestfs-recipes.pod:202
4942 #, no-wrap
4943 msgid ""
4944 " # product-name.sh RHEL60x64\n"
4945 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4946 "\n"
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../examples/guestfs-recipes.pod:205
4951 msgid ""
4952 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4953 "C<xpath> command line tool or from your favourite programming language:"
4954 msgstr ""
4955
4956 #. type: verbatim
4957 #: ../examples/guestfs-recipes.pod:209
4958 #, no-wrap
4959 msgid ""
4960 " # virt-inspector RHEL60x64 > xml\n"
4961 " # xpath '//product_name' < xml\n"
4962 " Found 1 nodes:\n"
4963 " -- NODE --\n"
4964 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
4965 "(Santiago)</product_name>\n"
4966 "\n"
4967 msgstr ""
4968
4969 #. type: =head1
4970 #: ../examples/guestfs-recipes.pod:215
4971 msgid "Get the default boot kernel for a Linux VM"
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../examples/guestfs-recipes.pod:217
4976 msgid ""
4977 "The link below contains a program to print the default boot kernel for a "
4978 "Linux VM."
4979 msgstr ""
4980
4981 #. type: textblock
4982 #: ../examples/guestfs-recipes.pod:220
4983 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
4984 msgstr ""
4985
4986 #. type: textblock
4987 #: ../examples/guestfs-recipes.pod:222
4988 msgid ""
4989 "It uses Augeas, and the technique is generally applicable for many different "
4990 "tasks, such as:"
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../examples/guestfs-recipes.pod:229
4995 msgid "listing the user accounts in the guest"
4996 msgstr ""
4997
4998 #. type: textblock
4999 #: ../examples/guestfs-recipes.pod:233
5000 msgid "what repositories is it configured to use"
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:237
5005 msgid "what NTP servers does it connect to"
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../examples/guestfs-recipes.pod:241
5010 msgid "what were the boot messages last time it booted"
5011 msgstr ""
5012
5013 #. type: textblock
5014 #: ../examples/guestfs-recipes.pod:245
5015 msgid "listing who was logged in recently"
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../examples/guestfs-recipes.pod:249
5020 msgid "http://augeas.net/"
5021 msgstr ""
5022
5023 #. type: =head1
5024 #: ../examples/guestfs-recipes.pod:251
5025 msgid "Install RPMs in a guest"
5026 msgstr ""
5027
5028 #. type: textblock
5029 #: ../examples/guestfs-recipes.pod:253
5030 msgid ""
5031 "The link below contains a method to install RPMs in a guest.  In fact the "
5032 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5033 "installs them next time the guest is booted.  You could use this technique "
5034 "to install vital security updates in an offline guest."
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../examples/guestfs-recipes.pod:259
5039 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5040 msgstr ""
5041
5042 #. type: =head1
5043 #: ../examples/guestfs-recipes.pod:261
5044 msgid "List applications installed in a VM"
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../examples/guestfs-recipes.pod:263
5049 msgid "Save the following to a file C<list-apps.sh>:"
5050 msgstr ""
5051
5052 #. type: verbatim
5053 #: ../examples/guestfs-recipes.pod:265
5054 #, no-wrap
5055 msgid ""
5056 " #!/bin/sh -\n"
5057 " set -e\n"
5058 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5059 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5060 " guestfish --remote inspect-list-applications \"$root\"\n"
5061 " guestfish --remote exit\n"
5062 "\n"
5063 msgstr ""
5064
5065 #. type: textblock
5066 #: ../examples/guestfs-recipes.pod:272
5067 msgid ""
5068 "Make the file executable and then you can run it on any named virtual "
5069 "machine:"
5070 msgstr ""
5071
5072 #. type: verbatim
5073 #: ../examples/guestfs-recipes.pod:275
5074 #, no-wrap
5075 msgid ""
5076 " # list-apps.sh WinGuest\n"
5077 " [0] = {\n"
5078 "   app_name: Mozilla Firefox (3.6.12)\n"
5079 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5080 "   app_epoch: 0\n"
5081 "   app_version: 3.6.12 (en-GB)\n"
5082 "   app_release:\n"
5083 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5084 "   app_trans_path:\n"
5085 "   app_publisher: Mozilla\n"
5086 "   app_url: http://www.mozilla.com/en-GB/\n"
5087 "   app_source_package:\n"
5088 "   app_summary:\n"
5089 "   app_description: Mozilla Firefox\n"
5090 " }\n"
5091 " [1] = {\n"
5092 "   app_name: VLC media player\n"
5093 "   app_display_name: VLC media player 1.1.5\n"
5094 "   app_epoch: 0\n"
5095 "   app_version: 1.1.5\n"
5096 "   app_release:\n"
5097 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5098 "   app_trans_path:\n"
5099 "   app_publisher: VideoLAN\n"
5100 "   app_url: http://www.videolan.org/\n"
5101 "   app_source_package:\n"
5102 "   app_summary:\n"
5103 "   app_description:\n"
5104 " }\n"
5105 "\n"
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-recipes.pod:305
5110 msgid ""
5111 "If you want to run the script on disk images (instead of libvirt virtual "
5112 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
5113 "L<virt-inspector(1)>."
5114 msgstr ""
5115
5116 #. type: =head1
5117 #: ../examples/guestfs-recipes.pod:309
5118 msgid "List files and directories in a VM"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../examples/guestfs-recipes.pod:311
5123 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5124 msgstr ""
5125
5126 #. type: verbatim
5127 #: ../examples/guestfs-recipes.pod:313
5128 #, no-wrap
5129 msgid ""
5130 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5131 "\n"
5132 msgstr ""
5133
5134 #. type: =head1
5135 #: ../examples/guestfs-recipes.pod:315
5136 msgid "List services in a Windows VM"
5137 msgstr ""
5138
5139 #. type: textblock
5140 #: ../examples/guestfs-recipes.pod:317
5141 msgid ""
5142 "The link below contains a script that can be used to list out the services "
5143 "from a Windows VM, and whether those services run at boot time or are loaded "
5144 "on demand."
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../examples/guestfs-recipes.pod:321
5149 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
5150 msgstr ""
5151
5152 #. type: =head1
5153 #: ../examples/guestfs-recipes.pod:323
5154 msgid "Make a disk image sparse"
5155 msgstr ""
5156
5157 #. type: textblock
5158 #: ../examples/guestfs-recipes.pod:325
5159 msgid ""
5160 "The link below contains some guides for making a disk image sparse (or "
5161 "reintroducing sparseness)."
5162 msgstr ""
5163
5164 #. type: textblock
5165 #: ../examples/guestfs-recipes.pod:328
5166 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5167 msgstr ""
5168
5169 #. type: =head1
5170 #: ../examples/guestfs-recipes.pod:330
5171 msgid "Monitor disk usage over time"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../examples/guestfs-recipes.pod:332
5176 msgid ""
5177 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5178 "The link below contains a guide."
5179 msgstr ""
5180
5181 #. type: textblock
5182 #: ../examples/guestfs-recipes.pod:335
5183 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5184 msgstr ""
5185
5186 #. type: =head1
5187 #: ../examples/guestfs-recipes.pod:337
5188 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../examples/guestfs-recipes.pod:339
5193 msgid ""
5194 "L<guestfish(1)> plus the tools described in the link below can be used to "
5195 "read out the Windows Event Log from any virtual machine running Windows "
5196 "Vista or a later version."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:343
5201 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
5202 msgstr ""
5203
5204 #. type: =head1
5205 #: ../examples/guestfs-recipes.pod:345
5206 msgid "Remove root password (Linux)"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../examples/guestfs-recipes.pod:347
5211 msgid ""
5212 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5213 "files.  One use is to remove the root password from a Linux guest:"
5214 msgstr ""
5215
5216 #. type: verbatim
5217 #: ../examples/guestfs-recipes.pod:350
5218 #, no-wrap
5219 msgid ""
5220 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5221 "\n"
5222 msgstr ""
5223
5224 #. type: =head1
5225 #: ../examples/guestfs-recipes.pod:352
5226 msgid "Remove Administrator password (Windows)"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:354
5231 msgid ""
5232 "The link below contains one technique for removing the Administrator "
5233 "password from a Windows VM, or to be more precise, it gives you a command "
5234 "prompt the next time you log in which you can use to bypass any security:"
5235 msgstr ""
5236
5237 #. type: textblock
5238 #: ../examples/guestfs-recipes.pod:359
5239 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
5240 msgstr ""
5241
5242 #. type: =head1
5243 #: ../examples/guestfs-recipes.pod:361
5244 msgid "Unpack a live CD"
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../examples/guestfs-recipes.pod:363
5249 msgid ""
5250 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5251 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5252 "layers, as outlined in the guide below."
5253 msgstr ""
5254
5255 #. type: textblock
5256 #: ../examples/guestfs-recipes.pod:367
5257 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
5258 msgstr ""
5259
5260 #. type: =head1
5261 #: ../examples/guestfs-recipes.pod:369
5262 msgid "Uploading and downloading files"
5263 msgstr ""
5264
5265 #. type: textblock
5266 #: ../examples/guestfs-recipes.pod:371
5267 msgid ""
5268 "The link below contains general tips on uploading (copying in)  and "
5269 "downloading (copying out) files from VMs."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../examples/guestfs-recipes.pod:374
5274 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5275 msgstr ""
5276
5277 #. type: =head1
5278 #: ../examples/guestfs-recipes.pod:376
5279 msgid "Use libguestfs tools on VMware ESX guests"
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../examples/guestfs-recipes.pod:378
5284 msgid ""
5285 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5286 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5287 msgstr ""
5288
5289 #. type: textblock
5290 #: ../examples/guestfs-recipes.pod:382
5291 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../examples/guestfs-recipes.pod:386
5296 msgid ""
5297 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
5298 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
5299 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
5300 "L<http://libguestfs.org/>."
5301 msgstr ""
5302
5303 #. type: textblock
5304 #: ../examples/guestfs-recipes.pod:403
5305 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../examples/guestfs-testing.pod:5
5310 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5311 msgstr ""
5312
5313 #. type: textblock
5314 #: ../examples/guestfs-testing.pod:9
5315 msgid ""
5316 "This page has manual tests you can try on libguestfs.  Everyone has a "
5317 "slightly different combination of platform, hardware and guests, so this "
5318 "testing is very valuable.  Thanks for helping out!"
5319 msgstr ""
5320
5321 #. type: textblock
5322 #: ../examples/guestfs-testing.pod:13
5323 msgid "These tests require libguestfs E<ge> 1.14."
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../examples/guestfs-testing.pod:15
5328 msgid ""
5329 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5330 "careful.  The others are safe and won't modify anything."
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../examples/guestfs-testing.pod:18
5335 msgid "You can report bugs you find through this link:"
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../examples/guestfs-testing.pod:20
5340 msgid "https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools"
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-testing.pod:22
5345 msgid ""
5346 "or post on the mailing list (registration is B<not> required, but if you're "
5347 "not registered then you'll have to wait for a moderator to manually approve "
5348 "your message):"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../examples/guestfs-testing.pod:26
5353 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
5354 msgstr ""
5355
5356 #. type: =head1
5357 #: ../examples/guestfs-testing.pod:28
5358 msgid "TESTS"
5359 msgstr ""
5360
5361 #. type: =head2
5362 #: ../examples/guestfs-testing.pod:30
5363 msgid "Check KVM acceleration is being used."
5364 msgstr ""
5365
5366 #. type: textblock
5367 #: ../examples/guestfs-testing.pod:32
5368 msgid ""
5369 "If your host has hardware virt acceleration, then with a hot cache "
5370 "libguestfs should be able to start up in a few seconds.  Run the following "
5371 "command a few times:"
5372 msgstr ""
5373
5374 #. type: verbatim
5375 #: ../examples/guestfs-testing.pod:36
5376 #, no-wrap
5377 msgid ""
5378 " time guestfish -a /dev/null run\n"
5379 "\n"
5380 msgstr ""
5381
5382 #. type: textblock
5383 #: ../examples/guestfs-testing.pod:38
5384 msgid ""
5385 "After a few runs, the time should settle down to a few seconds (under 5 "
5386 "seconds on fast 64 bit hardware)."
5387 msgstr ""
5388
5389 #. type: textblock
5390 #: ../examples/guestfs-testing.pod:41
5391 msgid "How to check for hardware virt:"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../examples/guestfs-testing.pod:43
5396 msgid "http://virt-tools.org/learning/check-hardware-virt/"
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../examples/guestfs-testing.pod:45
5401 msgid "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
5402 msgstr ""
5403
5404 #. type: =head2
5405 #: ../examples/guestfs-testing.pod:48
5406 msgid "Run virt-alignment-scan on all your guests."
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../examples/guestfs-testing.pod:50
5411 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
5412 msgstr ""
5413
5414 #. type: verbatim
5415 #: ../examples/guestfs-testing.pod:52
5416 #, no-wrap
5417 msgid ""
5418 " virt-alignment-scan -a /path/to/disk.img\n"
5419 "\n"
5420 msgstr ""
5421
5422 #. type: textblock
5423 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161 ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234 ../src/guestfs.pod:2792
5424 msgid "or:"
5425 msgstr ""
5426
5427 #. type: verbatim
5428 #: ../examples/guestfs-testing.pod:56
5429 #, no-wrap
5430 msgid ""
5431 " virt-alignment-scan -d Guest\n"
5432 "\n"
5433 msgstr ""
5434
5435 #. type: textblock
5436 #: ../examples/guestfs-testing.pod:58
5437 msgid "Does the alignment report match how the guest partitions are aligned?"
5438 msgstr ""
5439
5440 #. type: =head2
5441 #: ../examples/guestfs-testing.pod:60
5442 msgid "Run virt-cat on some files in guests."
5443 msgstr ""
5444
5445 #. type: textblock
5446 #: ../examples/guestfs-testing.pod:62
5447 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
5448 msgstr ""
5449
5450 #. type: verbatim
5451 #: ../examples/guestfs-testing.pod:64
5452 #, no-wrap
5453 msgid ""
5454 " virt-cat LinuxGuest /etc/passwd\n"
5455 "\n"
5456 msgstr ""
5457
5458 #. type: textblock
5459 #: ../examples/guestfs-testing.pod:66
5460 msgid "A recent feature is support for Windows paths, for example:"
5461 msgstr ""
5462
5463 #. type: verbatim
5464 #: ../examples/guestfs-testing.pod:68
5465 #, no-wrap
5466 msgid ""
5467 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
5468 "\n"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../examples/guestfs-testing.pod:70
5473 msgid ""
5474 "An even better test is if you have a Windows guest with multiple drives.  Do "
5475 "C<D:>, C<E:> etc paths work correctly?"
5476 msgstr ""
5477
5478 #. type: =head2
5479 #: ../examples/guestfs-testing.pod:73
5480 msgid "B<*> Copy some files into a B<shut off> guest."
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../examples/guestfs-testing.pod:75
5485 msgid ""
5486 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
5487 "or disk image."
5488 msgstr ""
5489
5490 #. type: verbatim
5491 #: ../examples/guestfs-testing.pod:78
5492 #, no-wrap
5493 msgid ""
5494 " virt-copy-in -d Guest /etc /tmp\n"
5495 "\n"
5496 msgstr ""
5497
5498 #. type: textblock
5499 #: ../examples/guestfs-testing.pod:80
5500 msgid ""
5501 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
5502 "(recursively).  If you boot the guest, can you see all of the copied files "
5503 "and directories?"
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../examples/guestfs-testing.pod:84
5508 msgid "Shut the guest down and try copying multiple files and directories:"
5509 msgstr ""
5510
5511 #. type: verbatim
5512 #: ../examples/guestfs-testing.pod:86
5513 #, no-wrap
5514 msgid ""
5515 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
5516 "\n"
5517 msgstr ""
5518
5519 #. type: =head2
5520 #: ../examples/guestfs-testing.pod:88
5521 msgid "Copy some files out of a guest."
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../examples/guestfs-testing.pod:90
5526 msgid ""
5527 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
5528 "guest or disk image."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../examples/guestfs-testing.pod:95
5533 msgid "Note the final space and period in the command is not a typo."
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../examples/guestfs-testing.pod:97
5538 msgid "This should copy C</home> from the guest into the current directory."
5539 msgstr ""
5540
5541 #. type: =head2
5542 #: ../examples/guestfs-testing.pod:99
5543 msgid "Run virt-df."
5544 msgstr ""
5545
5546 #. type: textblock
5547 #: ../examples/guestfs-testing.pod:101
5548 msgid "L<virt-df(1)> lists disk space.  Run:"
5549 msgstr ""
5550
5551 #. type: verbatim
5552 #: ../examples/guestfs-testing.pod:103
5553 #, no-wrap
5554 msgid ""
5555 " virt-df\n"
5556 "\n"
5557 msgstr ""
5558
5559 #. type: textblock
5560 #: ../examples/guestfs-testing.pod:105
5561 msgid ""
5562 "You can try comparing this to the results from L<df(1)> inside the guest, "
5563 "but there are some provisos:"
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../examples/guestfs-testing.pod:112
5568 msgid "The guest must be idle."
5569 msgstr ""
5570
5571 #. type: textblock
5572 #: ../examples/guestfs-testing.pod:116
5573 msgid "The guest disks must be synched using L<sync(1)>."
5574 msgstr ""
5575
5576 #. type: textblock
5577 #: ../examples/guestfs-testing.pod:120
5578 msgid ""
5579 "Any action such as booting the guest will write log files causing the "
5580 "numbers to change."
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../examples/guestfs-testing.pod:125
5585 msgid ""
5586 "We don't guarantee that the numbers will be identical even under these "
5587 "circumstances.  They should be similar.  It would indicate a bug if you saw "
5588 "greatly differing numbers."
5589 msgstr ""
5590
5591 #. type: =head2
5592 #: ../examples/guestfs-testing.pod:129
5593 msgid "Try importing virt-df CSV output into a spreadsheet or database."
5594 msgstr ""
5595
5596 #. type: textblock
5597 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088
5598 msgid "Run:"
5599 msgstr ""
5600
5601 #. type: verbatim
5602 #: ../examples/guestfs-testing.pod:133
5603 #, no-wrap
5604 msgid ""
5605 " virt-df --csv > /tmp/report.csv\n"
5606 "\n"
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../examples/guestfs-testing.pod:135
5611 msgid ""
5612 "Now try to load this into your favorite spreadsheet or database.  Are the "
5613 "results reproduced faithfully in the spreadsheet/database?"
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../examples/guestfs-testing.pod:138
5618 msgid ""
5619 "http://www.postgresql.org/docs/8.1/static/sql-copy.html "
5620 "http://dev.mysql.com/doc/refman/5.1/en/load-data.html"
5621 msgstr ""
5622
5623 #. type: =head2
5624 #: ../examples/guestfs-testing.pod:141
5625 msgid "B<*> Edit a file in a B<shut off> guest."
5626 msgstr ""
5627
5628 #. type: textblock
5629 #: ../examples/guestfs-testing.pod:143
5630 msgid ""
5631 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
5632 "Fedora guest:"
5633 msgstr ""
5634
5635 #. type: verbatim
5636 #: ../examples/guestfs-testing.pod:146
5637 #, no-wrap
5638 msgid ""
5639 " virt-edit LinuxGuest /etc/sysconfig/network\n"
5640 "\n"
5641 msgstr ""
5642
5643 #. type: textblock
5644 #: ../examples/guestfs-testing.pod:148
5645 msgid "On other Linux guests try editing other files such as:"
5646 msgstr ""
5647
5648 #. type: verbatim
5649 #: ../examples/guestfs-testing.pod:150
5650 #, no-wrap
5651 msgid ""
5652 " virt-edit LinuxGuest /etc/motd\n"
5653 "\n"
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../examples/guestfs-testing.pod:152
5658 msgid "Are the changes seen inside the guest when it is booted?"
5659 msgstr ""
5660
5661 #. type: =head2
5662 #: ../examples/guestfs-testing.pod:154
5663 msgid "Display the filesystems / partitions / LVs in a guest."
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../examples/guestfs-testing.pod:156
5668 msgid ""
5669 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
5670 "this command on any disk image or guest:"
5671 msgstr ""
5672
5673 #. type: verbatim
5674 #: ../examples/guestfs-testing.pod:159
5675 #, no-wrap
5676 msgid ""
5677 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
5678 "\n"
5679 msgstr ""
5680
5681 #. type: verbatim
5682 #: ../examples/guestfs-testing.pod:163
5683 #, no-wrap
5684 msgid ""
5685 " virt-filesystems -d Guest --all --long -h\n"
5686 "\n"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-testing.pod:165
5691 msgid "Do the results match what is seen in the guest?"
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../examples/guestfs-testing.pod:167
5696 msgid "Run virt-inspector on all your guests."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../examples/guestfs-testing.pod:169
5701 msgid ""
5702 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
5703 "images:"
5704 msgstr ""
5705
5706 #. type: verbatim
5707 #: ../examples/guestfs-testing.pod:172
5708 #, no-wrap
5709 msgid ""
5710 " virt-inspector -a /path/to/disk.img | less\n"
5711 "\n"
5712 msgstr ""
5713
5714 #. type: verbatim
5715 #: ../examples/guestfs-testing.pod:176
5716 #, no-wrap
5717 msgid ""
5718 " virt-inspector -d Guest | less\n"
5719 "\n"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../examples/guestfs-testing.pod:178
5724 msgid "Do the results match what is actually in the guest?"
5725 msgstr ""
5726
5727 #. type: =head2
5728 #: ../examples/guestfs-testing.pod:180
5729 msgid "Try the auditing features of virt-ls on all your guests."
5730 msgstr ""
5731
5732 #. type: verbatim
5733 #: ../examples/guestfs-testing.pod:184
5734 #, no-wrap
5735 msgid ""
5736 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
5737 "\n"
5738 msgstr ""
5739
5740 #. type: verbatim
5741 #: ../examples/guestfs-testing.pod:188
5742 #, no-wrap
5743 msgid ""
5744 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
5745 "\n"
5746 msgstr ""
5747
5748 #. type: verbatim
5749 #: ../examples/guestfs-testing.pod:192
5750 #, no-wrap
5751 msgid ""
5752 " virt-ls -lR -d Guest / | grep '^s'\n"
5753 "\n"
5754 msgstr ""
5755
5756 #. type: verbatim
5757 #: ../examples/guestfs-testing.pod:196
5758 #, no-wrap
5759 msgid ""
5760 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
5761 "\n"
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../examples/guestfs-testing.pod:198
5766 msgid "Display files larger than 10MB in home directories:"
5767 msgstr ""
5768
5769 #. type: verbatim
5770 #: ../examples/guestfs-testing.pod:200
5771 #, no-wrap
5772 msgid ""
5773 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
5774 "\n"
5775 msgstr ""
5776
5777 #. type: verbatim
5778 #: ../examples/guestfs-testing.pod:204
5779 #, no-wrap
5780 msgid ""
5781 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
5782 "\n"
5783 msgstr ""
5784
5785 #. type: verbatim
5786 #: ../examples/guestfs-testing.pod:208
5787 #, no-wrap
5788 msgid ""
5789 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
5790 "\n"
5791 msgstr ""
5792
5793 #. type: textblock
5794 #: ../examples/guestfs-testing.pod:210
5795 msgid "Do the results match what is in the guest?"
5796 msgstr ""
5797
5798 #. type: =head2
5799 #: ../examples/guestfs-testing.pod:212
5800 msgid "Create a disk image from a tarball."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../examples/guestfs-testing.pod:214
5805 msgid ""
5806 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
5807 "happen to have:"
5808 msgstr ""
5809
5810 #. type: verbatim
5811 #: ../examples/guestfs-testing.pod:217
5812 #, no-wrap
5813 msgid ""
5814 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
5815 "\n"
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../examples/guestfs-testing.pod:219
5820 msgid ""
5821 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
5822 "see the files.  This test is particularly useful if you try it with a "
5823 "Windows guest."
5824 msgstr ""
5825
5826 #. type: textblock
5827 #: ../examples/guestfs-testing.pod:223
5828 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../examples/guestfs-testing.pod:225
5833 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
5834 msgstr ""
5835
5836 #. type: =head2
5837 #: ../examples/guestfs-testing.pod:227
5838 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../examples/guestfs-testing.pod:229
5843 msgid ""
5844 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
5845 "disk image:"
5846 msgstr ""
5847
5848 #. type: verbatim
5849 #: ../examples/guestfs-testing.pod:232
5850 #, no-wrap
5851 msgid ""
5852 " virt-rescue -a /path/to/disk.img\n"
5853 "\n"
5854 msgstr ""
5855
5856 #. type: verbatim
5857 #: ../examples/guestfs-testing.pod:236
5858 #, no-wrap
5859 msgid ""
5860 " virt-rescue -d Guest\n"
5861 "\n"
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../examples/guestfs-testing.pod:238
5866 msgid "Can you use ordinary shell commands to examine the guest?"
5867 msgstr ""
5868
5869 #. type: =head2
5870 #: ../examples/guestfs-testing.pod:240
5871 msgid "B<*> Resize your guests."
5872 msgstr ""
5873
5874 #. type: textblock
5875 #: ../examples/guestfs-testing.pod:242
5876 msgid ""
5877 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
5878 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
5879 msgstr ""
5880
5881 #. type: verbatim
5882 #: ../examples/guestfs-testing.pod:246
5883 #, no-wrap
5884 msgid ""
5885 " truncate -s 30G newdisk.img\n"
5886 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
5887 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
5888 " qemu-kvm -m 1024 -hda newdisk.img\n"
5889 "\n"
5890 msgstr ""
5891
5892 #. type: textblock
5893 #: ../examples/guestfs-testing.pod:251
5894 msgid "Does the guest still boot? Try expanding other partitions."
5895 msgstr ""
5896
5897 #. type: =head2
5898 #: ../examples/guestfs-testing.pod:253
5899 msgid "B<*> Sparsify a guest disk."
5900 msgstr ""
5901
5902 #. type: textblock
5903 #: ../examples/guestfs-testing.pod:255
5904 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
5905 msgstr ""
5906
5907 #. type: verbatim
5908 #: ../examples/guestfs-testing.pod:257
5909 #, no-wrap
5910 msgid ""
5911 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
5912 "\n"
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../examples/guestfs-testing.pod:259
5917 msgid ""
5918 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
5919 "image smaller (use C<du> to check)?"
5920 msgstr ""
5921
5922 #. type: =head2
5923 #: ../examples/guestfs-testing.pod:262
5924 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-testing.pod:264
5929 msgid ""
5930 "Note that this really will mess up an existing guest, so it's better to "
5931 "clone the guest before trying this."
5932 msgstr ""
5933
5934 #. type: verbatim
5935 #: ../examples/guestfs-testing.pod:267
5936 #, no-wrap
5937 msgid ""
5938 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
5939 "\n"
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../examples/guestfs-testing.pod:269
5944 msgid ""
5945 "Was the sysprep successful? After booting, what changes were made and were "
5946 "they successful?"
5947 msgstr ""
5948
5949 #. type: =head2
5950 #: ../examples/guestfs-testing.pod:272
5951 msgid "Dump the Windows Registry from your Windows guests."
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:274
5956 msgid ""
5957 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
5958 "guests that you have."
5959 msgstr ""
5960
5961 #. type: verbatim
5962 #: ../examples/guestfs-testing.pod:277
5963 #, no-wrap
5964 msgid ""
5965 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
5966 "   less\n"
5967 "\n"
5968 msgstr ""
5969
5970 #. type: verbatim
5971 #: ../examples/guestfs-testing.pod:280
5972 #, no-wrap
5973 msgid ""
5974 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
5975 "   less\n"
5976 "\n"
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../examples/guestfs-testing.pod:283
5981 msgid "Does the output match running C<regedit> inside the guest?"
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../examples/guestfs-testing.pod:285
5986 msgid ""
5987 "A recent feature is the ability to dump user registries, so try this, "
5988 "replacing I<username> with the name of a local user in the guest:"
5989 msgstr ""
5990
5991 #. type: verbatim
5992 #: ../examples/guestfs-testing.pod:288
5993 #, no-wrap
5994 msgid ""
5995 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' "
5996 "|\n"
5997 "   less\n"
5998 "\n"
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../examples/guestfs-testing.pod:293
6003 msgid ""
6004 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
6005 "L<http://libguestfs.org/>."
6006 msgstr ""
6007
6008 #. type: =head2
6009 #: ../fish/guestfish-actions.pod:1
6010 msgid "add-cdrom"
6011 msgstr ""
6012
6013 #. type: verbatim
6014 #: ../fish/guestfish-actions.pod:3
6015 #, no-wrap
6016 msgid ""
6017 " add-cdrom filename\n"
6018 "\n"
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6023 msgid "This function adds a virtual CD-ROM disk image to the guest."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6028 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6029 msgstr ""
6030
6031 #. type: textblock
6032 #: ../fish/guestfish-actions.pod:15
6033 msgid ""
6034 "This call checks for the existence of C<filename>.  This stops you from "
6035 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6036 "and C<http:> URLs.  To specify those, use the general L</config> call "
6037 "instead."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:22
6042 msgid ""
6043 "If you just want to add an ISO file (often you use this as an efficient way "
6044 "to transfer large files into the guest), then you should probably use "
6045 "L</add-drive-ro> instead."
6046 msgstr ""
6047
6048 #. type: textblock
6049 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214 ../fish/guestfish-actions.pod:228
6050 msgid ""
6051 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6052 "instead."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217 ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941 ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149 ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523 ../fish/guestfish-actions.pod:3392 ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3751 ../fish/guestfish-actions.pod:4669 ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4708 ../fish/guestfish-actions.pod:4746 ../fish/guestfish-actions.pod:5474 ../fish/guestfish-actions.pod:5577 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326 ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637 ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5242 ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5864 ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7201 ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:8346 ../src/guestfs-actions.pod:8455 ../src/guestfs-actions.pod:8635
6057 msgid ""
6058 "Deprecated functions will not be removed from the API, but the fact that "
6059 "they are deprecated indicates that there are problems with correct use of "
6060 "these functions."
6061 msgstr ""
6062
6063 #. type: =head2
6064 #: ../fish/guestfish-actions.pod:35
6065 msgid "add-domain"
6066 msgstr ""
6067
6068 #. type: =head2
6069 #: ../fish/guestfish-actions.pod:37
6070 msgid "domain"
6071 msgstr ""
6072
6073 #. type: verbatim
6074 #: ../fish/guestfish-actions.pod:39
6075 #, no-wrap
6076 msgid ""
6077 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] "
6078 "[live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:41
6084 msgid ""
6085 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6086 "It works by connecting to libvirt, requesting the domain and domain XML from "
6087 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6092 msgid ""
6093 "The number of disks added is returned.  This operation is atomic: if an "
6094 "error is returned, then no disks are added."
6095 msgstr ""
6096
6097 #. type: textblock
6098 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6099 msgid ""
6100 "This function does some minimal checks to make sure the libvirt domain is "
6101 "not running (unless C<readonly> is true).  In a future version we will try "
6102 "to acquire the libvirt lock on each disk."
6103 msgstr ""
6104
6105 #. type: textblock
6106 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6107 msgid ""
6108 "Disks must be accessible locally.  This often means that adding disks from a "
6109 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6110 "unless those disks are accessible via the same device path locally too."
6111 msgstr ""
6112
6113 #. type: textblock
6114 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6115 msgid ""
6116 "The optional C<libvirturi> parameter sets the libvirt URI (see "
6117 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
6118 "default libvirt URI (or one set through an environment variable, see the "
6119 "libvirt documentation for full details)."
6120 msgstr ""
6121
6122 #. type: textblock
6123 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6124 msgid ""
6125 "The optional C<live> flag controls whether this call will try to connect to "
6126 "a running virtual machine C<guestfsd> process if it sees a suitable "
6127 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6128 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6129 "DAEMONS> for more information."
6130 msgstr ""
6131
6132 #. type: textblock
6133 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6134 msgid ""
6135 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6136 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6137 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6138 "as usual."
6139 msgstr ""
6140
6141 #. type: textblock
6142 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6143 msgid ""
6144 "The optional C<readonlydisk> parameter controls what we do for disks which "
6145 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6146 msgstr ""
6147
6148 #. type: =item
6149 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6150 msgid "readonlydisk = \"error\""
6151 msgstr ""
6152
6153 #. type: textblock
6154 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95 ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103 ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6155 msgid "If C<readonly> is false:"
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6160 msgid ""
6161 "The whole call is aborted with an error if any disk with the "
6162 "E<lt>readonly/E<gt> flag is found."
6163 msgstr ""
6164
6165 #. type: textblock
6166 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100 ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108 ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6167 msgid "If C<readonly> is true:"
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102 ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6172 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6173 msgstr ""
6174
6175 #. type: =item
6176 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6177 msgid "readonlydisk = \"read\""
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6182 msgid ""
6183 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6184 "are added read/write."
6185 msgstr ""
6186
6187 #. type: =item
6188 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6189 msgid "readonlydisk = \"write\" (default)"
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6194 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6195 msgstr ""
6196
6197 #. type: =item
6198 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6199 msgid "readonlydisk = \"ignore\""
6200 msgstr ""
6201
6202 #. type: textblock
6203 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6204 msgid "If C<readonly> is true or false:"
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6209 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../fish/guestfish-actions.pod:122
6214 msgid ""
6215 "The other optional parameters are passed directly through to "
6216 "L</add-drive-opts>."
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194 ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835 ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912 ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171 ../fish/guestfish-actions.pod:3219 ../fish/guestfish-actions.pod:3441 ../fish/guestfish-actions.pod:3604 ../fish/guestfish-actions.pod:3739 ../fish/guestfish-actions.pod:5110
6221 msgid ""
6222 "This command has one or more optional arguments.  See L</OPTIONAL "
6223 "ARGUMENTS>."
6224 msgstr ""
6225
6226 #. type: =head2
6227 #: ../fish/guestfish-actions.pod:127
6228 msgid "add-drive"
6229 msgstr ""
6230
6231 #. type: verbatim
6232 #: ../fish/guestfish-actions.pod:129
6233 #, no-wrap
6234 msgid ""
6235 " add-drive filename\n"
6236 "\n"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:131
6241 msgid ""
6242 "This function is the equivalent of calling L</add-drive-opts> with no "
6243 "optional parameters, so the disk is added writable, with the format being "
6244 "detected automatically."
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:135
6249 msgid ""
6250 "Automatic detection of the format opens you up to a potential security hole "
6251 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6252 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6253 "you should think about replacing calls to this function with calls to "
6254 "L</add-drive-opts>, and specifying the format."
6255 msgstr ""
6256
6257 #. type: =head2
6258 #: ../fish/guestfish-actions.pod:142
6259 msgid "add-drive-opts"
6260 msgstr ""
6261
6262 #. type: =head2
6263 #: ../fish/guestfish-actions.pod:144
6264 msgid "add"
6265 msgstr ""
6266
6267 #. type: verbatim
6268 #: ../fish/guestfish-actions.pod:146
6269 #, no-wrap
6270 msgid ""
6271 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] "
6272 "[name:..]\n"
6273 "\n"
6274 msgstr ""
6275
6276 #. type: textblock
6277 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6278 msgid ""
6279 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6280 "The first time you call this function, the disk appears as C</dev/sda>, the "
6281 "second time as C</dev/sdb>, and so on."
6282 msgstr ""
6283
6284 #. type: textblock
6285 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6286 msgid ""
6287 "You don't necessarily need to be root when using libguestfs.  However you "
6288 "obviously do need sufficient permissions to access the filename for whatever "
6289 "operations you want to perform (ie. read access if you just want to read the "
6290 "image or write access if you want to modify the image)."
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6295 msgid "This call checks that C<filename> exists."
6296 msgstr ""
6297
6298 #. type: textblock
6299 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3403 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5279
6300 msgid "The optional arguments are:"
6301 msgstr ""
6302
6303 #. type: =item
6304 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6305 msgid "C<readonly>"
6306 msgstr ""
6307
6308 #. type: textblock
6309 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6310 msgid ""
6311 "If true then the image is treated as read-only.  Writes are still allowed, "
6312 "but they are stored in a temporary snapshot overlay which is discarded at "
6313 "the end.  The disk that you add is not modified."
6314 msgstr ""
6315
6316 #. type: =item
6317 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6318 msgid "C<format>"
6319 msgstr ""
6320
6321 #. type: textblock
6322 #: ../fish/guestfish-actions.pod:173
6323 msgid ""
6324 "This forces the image format.  If you omit this (or use L</add-drive> or "
6325 "L</add-drive-ro>) then the format is automatically detected.  Possible "
6326 "formats include C<raw> and C<qcow2>."
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6331 msgid ""
6332 "Automatic detection of the format opens you up to a potential security hole "
6333 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6334 "RHBZ#642934.  Specifying the format closes this security hole."
6335 msgstr ""
6336
6337 #. type: =item
6338 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6339 msgid "C<iface>"
6340 msgstr ""
6341
6342 #. type: textblock
6343 #: ../fish/guestfish-actions.pod:184
6344 msgid ""
6345 "This rarely-used option lets you emulate the behaviour of the deprecated "
6346 "L</add-drive-with-if> call (q.v.)"
6347 msgstr ""
6348
6349 #. type: =item
6350 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5000
6351 msgid "C<name>"
6352 msgstr ""
6353
6354 #. type: textblock
6355 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6356 msgid ""
6357 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6358 "a hint to the guest inspection process if it is available."
6359 msgstr ""
6360
6361 #. type: =head2
6362 #: ../fish/guestfish-actions.pod:196
6363 msgid "add-drive-ro"
6364 msgstr ""
6365
6366 #. type: =head2
6367 #: ../fish/guestfish-actions.pod:198
6368 msgid "add-ro"
6369 msgstr ""
6370
6371 #. type: verbatim
6372 #: ../fish/guestfish-actions.pod:200
6373 #, no-wrap
6374 msgid ""
6375 " add-drive-ro filename\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:202
6381 msgid ""
6382 "This function is the equivalent of calling L</add-drive-opts> with the "
6383 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6384 "is added read-only, with the format being detected automatically."
6385 msgstr ""
6386
6387 #. type: =head2
6388 #: ../fish/guestfish-actions.pod:207
6389 msgid "add-drive-ro-with-if"
6390 msgstr ""
6391
6392 #. type: verbatim
6393 #: ../fish/guestfish-actions.pod:209
6394 #, no-wrap
6395 msgid ""
6396 " add-drive-ro-with-if filename iface\n"
6397 "\n"
6398 msgstr ""
6399
6400 #. type: textblock
6401 #: ../fish/guestfish-actions.pod:211
6402 msgid ""
6403 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6404 "interface emulation to use at run time."
6405 msgstr ""
6406
6407 #. type: =head2
6408 #: ../fish/guestfish-actions.pod:221
6409 msgid "add-drive-with-if"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../fish/guestfish-actions.pod:223
6414 #, no-wrap
6415 msgid ""
6416 " add-drive-with-if filename iface\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:225
6422 msgid ""
6423 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6424 "interface emulation to use at run time."
6425 msgstr ""
6426
6427 #. type: =head2
6428 #: ../fish/guestfish-actions.pod:235
6429 msgid "aug-clear"
6430 msgstr ""
6431
6432 #. type: verbatim
6433 #: ../fish/guestfish-actions.pod:237
6434 #, no-wrap
6435 msgid ""
6436 " aug-clear augpath\n"
6437 "\n"
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6442 msgid ""
6443 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6444 "L<augtool(1)> C<clear> command."
6445 msgstr ""
6446
6447 #. type: =head2
6448 #: ../fish/guestfish-actions.pod:242
6449 msgid "aug-close"
6450 msgstr ""
6451
6452 #. type: verbatim
6453 #: ../fish/guestfish-actions.pod:244
6454 #, no-wrap
6455 msgid ""
6456 " aug-close\n"
6457 "\n"
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:246
6462 msgid ""
6463 "Close the current Augeas handle and free up any resources used by it.  After "
6464 "calling this, you have to call L</aug-init> again before you can use any "
6465 "other Augeas functions."
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../fish/guestfish-actions.pod:251
6470 msgid "aug-defnode"
6471 msgstr ""
6472
6473 #. type: verbatim
6474 #: ../fish/guestfish-actions.pod:253
6475 #, no-wrap
6476 msgid ""
6477 " aug-defnode name expr val\n"
6478 "\n"
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6483 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6484 msgstr ""
6485
6486 #. type: textblock
6487 #: ../fish/guestfish-actions.pod:258
6488 msgid ""
6489 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6490 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6491 "containing that single node."
6492 msgstr ""
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6496 msgid ""
6497 "On success this returns a pair containing the number of nodes in the "
6498 "nodeset, and a boolean flag if a node was created."
6499 msgstr ""
6500
6501 #. type: =head2
6502 #: ../fish/guestfish-actions.pod:266
6503 msgid "aug-defvar"
6504 msgstr ""
6505
6506 #. type: verbatim
6507 #: ../fish/guestfish-actions.pod:268
6508 #, no-wrap
6509 msgid ""
6510 " aug-defvar name expr\n"
6511 "\n"
6512 msgstr ""
6513
6514 #. type: textblock
6515 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6516 msgid ""
6517 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6518 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6523 msgid ""
6524 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6525 "evaluates to something which is not a nodeset."
6526 msgstr ""
6527
6528 #. type: =head2
6529 #: ../fish/guestfish-actions.pod:277
6530 msgid "aug-get"
6531 msgstr ""
6532
6533 #. type: verbatim
6534 #: ../fish/guestfish-actions.pod:279
6535 #, no-wrap
6536 msgid ""
6537 " aug-get augpath\n"
6538 "\n"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6543 msgid ""
6544 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6545 "node, the C<value> is returned."
6546 msgstr ""
6547
6548 #. type: =head2
6549 #: ../fish/guestfish-actions.pod:284
6550 msgid "aug-init"
6551 msgstr ""
6552
6553 #. type: verbatim
6554 #: ../fish/guestfish-actions.pod:286
6555 #, no-wrap
6556 msgid ""
6557 " aug-init root flags\n"
6558 "\n"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6563 msgid ""
6564 "Create a new Augeas handle for editing configuration files.  If there was "
6565 "any previous Augeas handle associated with this guestfs session, then it is "
6566 "closed."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:292
6571 msgid "You must call this before using any other L</aug-*> commands."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6576 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6581 msgid ""
6582 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6583 "logical I<or> of the following integers:"
6584 msgstr ""
6585
6586 #. type: =item
6587 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6588 msgid "C<AUG_SAVE_BACKUP> = 1"
6589 msgstr ""
6590
6591 #. type: textblock
6592 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6593 msgid "Keep the original file with a C<.augsave> extension."
6594 msgstr ""
6595
6596 #. type: =item
6597 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6598 msgid "C<AUG_SAVE_NEWFILE> = 2"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6603 msgid ""
6604 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6605 "original.  Overrides C<AUG_SAVE_BACKUP>."
6606 msgstr ""
6607
6608 #. type: =item
6609 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6610 msgid "C<AUG_TYPE_CHECK> = 4"
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6615 msgid "Typecheck lenses."
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../fish/guestfish-actions.pod:317
6620 msgid ""
6621 "This option is only useful when debugging Augeas lenses.  Use of this option "
6622 "may require additional memory for the libguestfs appliance.  You may need to "
6623 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6624 msgstr ""
6625
6626 #. type: =item
6627 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6628 msgid "C<AUG_NO_STDINC> = 8"
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6633 msgid "Do not use standard load path for modules."
6634 msgstr ""
6635
6636 #. type: =item
6637 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6638 msgid "C<AUG_SAVE_NOOP> = 16"
6639 msgstr ""
6640
6641 #. type: textblock
6642 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6643 msgid "Make save a no-op, just record what would have been changed."
6644 msgstr ""
6645
6646 #. type: =item
6647 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6648 msgid "C<AUG_NO_LOAD> = 32"
6649 msgstr ""
6650
6651 #. type: textblock
6652 #: ../fish/guestfish-actions.pod:332
6653 msgid "Do not load the tree in L</aug-init>."
6654 msgstr ""
6655
6656 #. type: textblock
6657 #: ../fish/guestfish-actions.pod:336
6658 msgid "To close the handle, you can call L</aug-close>."
6659 msgstr ""
6660
6661 #. type: textblock
6662 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6663 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6664 msgstr ""
6665
6666 #. type: =head2
6667 #: ../fish/guestfish-actions.pod:340
6668 msgid "aug-insert"
6669 msgstr ""
6670
6671 #. type: verbatim
6672 #: ../fish/guestfish-actions.pod:342
6673 #, no-wrap
6674 msgid ""
6675 " aug-insert augpath label true|false\n"
6676 "\n"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6681 msgid ""
6682 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6683 "or after C<path> (depending on the boolean flag C<before>)."
6684 msgstr ""
6685
6686 #. type: textblock
6687 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6688 msgid ""
6689 "C<path> must match exactly one existing node in the tree, and C<label> must "
6690 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6691 msgstr ""
6692
6693 #. type: =head2
6694 #: ../fish/guestfish-actions.pod:352
6695 msgid "aug-load"
6696 msgstr ""
6697
6698 #. type: verbatim
6699 #: ../fish/guestfish-actions.pod:354
6700 #, no-wrap
6701 msgid ""
6702 " aug-load\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6708 msgid "Load files into the tree."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6713 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6714 msgstr ""
6715
6716 #. type: =head2
6717 #: ../fish/guestfish-actions.pod:361
6718 msgid "aug-ls"
6719 msgstr ""
6720
6721 #. type: verbatim
6722 #: ../fish/guestfish-actions.pod:363
6723 #, no-wrap
6724 msgid ""
6725 " aug-ls augpath\n"
6726 "\n"
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:365
6731 msgid ""
6732 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6733 "resulting nodes into alphabetical order."
6734 msgstr ""
6735
6736 #. type: =head2
6737 #: ../fish/guestfish-actions.pod:368
6738 msgid "aug-match"
6739 msgstr ""
6740
6741 #. type: verbatim
6742 #: ../fish/guestfish-actions.pod:370
6743 #, no-wrap
6744 msgid ""
6745 " aug-match augpath\n"
6746 "\n"
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6751 msgid ""
6752 "Returns a list of paths which match the path expression C<path>.  The "
6753 "returned paths are sufficiently qualified so that they match exactly one "
6754 "node in the current tree."
6755 msgstr ""
6756
6757 #. type: =head2
6758 #: ../fish/guestfish-actions.pod:376
6759 msgid "aug-mv"
6760 msgstr ""
6761
6762 #. type: verbatim
6763 #: ../fish/guestfish-actions.pod:378
6764 #, no-wrap
6765 msgid ""
6766 " aug-mv src dest\n"
6767 "\n"
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6772 msgid ""
6773 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6774 "C<dest> is overwritten if it exists."
6775 msgstr ""
6776
6777 #. type: =head2
6778 #: ../fish/guestfish-actions.pod:383
6779 msgid "aug-rm"
6780 msgstr ""
6781
6782 #. type: verbatim
6783 #: ../fish/guestfish-actions.pod:385
6784 #, no-wrap
6785 msgid ""
6786 " aug-rm augpath\n"
6787 "\n"
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6792 msgid "Remove C<path> and all of its children."
6793 msgstr ""
6794
6795 #. type: textblock
6796 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6797 msgid "On success this returns the number of entries which were removed."
6798 msgstr ""
6799
6800 #. type: =head2
6801 #: ../fish/guestfish-actions.pod:391
6802 msgid "aug-save"
6803 msgstr ""
6804
6805 #. type: verbatim
6806 #: ../fish/guestfish-actions.pod:393
6807 #, no-wrap
6808 msgid ""
6809 " aug-save\n"
6810 "\n"
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6815 msgid "This writes all pending changes to disk."
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:397
6820 msgid ""
6821 "The flags which were passed to L</aug-init> affect exactly how files are "
6822 "saved."
6823 msgstr ""
6824
6825 #. type: =head2
6826 #: ../fish/guestfish-actions.pod:400
6827 msgid "aug-set"
6828 msgstr ""
6829
6830 #. type: verbatim
6831 #: ../fish/guestfish-actions.pod:402
6832 #, no-wrap
6833 msgid ""
6834 " aug-set augpath val\n"
6835 "\n"
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6840 msgid "Set the value associated with C<path> to C<val>."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:406
6845 msgid ""
6846 "In the Augeas API, it is possible to clear a node by setting the value to "
6847 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6848 "this call.  Instead you must use the L</aug-clear> call."
6849 msgstr ""
6850
6851 #. type: =head2
6852 #: ../fish/guestfish-actions.pod:411
6853 msgid "available"
6854 msgstr ""
6855
6856 #. type: verbatim
6857 #: ../fish/guestfish-actions.pod:413
6858 #, no-wrap
6859 msgid ""
6860 " available 'groups ...'\n"
6861 "\n"
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6866 msgid ""
6867 "This command is used to check the availability of some groups of "
6868 "functionality in the appliance, which not all builds of the libguestfs "
6869 "appliance will be able to provide."
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:419
6874 msgid ""
6875 "The libguestfs groups, and the functions that those groups correspond to, "
6876 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6877 "runtime by calling L</available-all-groups>."
6878 msgstr ""
6879
6880 #. type: textblock
6881 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6882 msgid ""
6883 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6884 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6885 "and Augeas (configuration file editing) functions."
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6890 msgid "The command returns no error if I<all> requested groups are available."
6891 msgstr ""
6892
6893 #. type: textblock
6894 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6895 msgid ""
6896 "It fails with an error if one or more of the requested groups is unavailable "
6897 "in the appliance."
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6902 msgid ""
6903 "If an unknown group name is included in the list of groups then an error is "
6904 "always returned."
6905 msgstr ""
6906
6907 #. type: textblock
6908 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6909 msgid "I<Notes:>"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:443
6914 msgid "You must call L</launch> before calling this function."
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6919 msgid ""
6920 "The reason is because we don't know what groups are supported by the "
6921 "appliance/daemon until it is running and can be queried."
6922 msgstr ""
6923
6924 #. type: textblock
6925 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6926 msgid ""
6927 "If a group of functions is available, this does not necessarily mean that "
6928 "they will work.  You still have to check for errors when calling individual "
6929 "API functions even if they are available."
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6934 msgid ""
6935 "It is usually the job of distro packagers to build complete functionality "
6936 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6937 "with all requirements satisfied, will support everything."
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:465
6942 msgid ""
6943 "This call was added in version C<1.0.80>.  In previous versions of "
6944 "libguestfs all you could do would be to speculatively execute a command to "
6945 "find out if the daemon implemented it.  See also L</version>."
6946 msgstr ""
6947
6948 #. type: =head2
6949 #: ../fish/guestfish-actions.pod:472
6950 msgid "available-all-groups"
6951 msgstr ""
6952
6953 #. type: verbatim
6954 #: ../fish/guestfish-actions.pod:474
6955 #, no-wrap
6956 msgid ""
6957 " available-all-groups\n"
6958 "\n"
6959 msgstr ""
6960
6961 #. type: textblock
6962 #: ../fish/guestfish-actions.pod:476
6963 msgid ""
6964 "This command returns a list of all optional groups that this daemon knows "
6965 "about.  Note this returns both supported and unsupported groups.  To find "
6966 "out which ones the daemon can actually support you have to call "
6967 "L</available> on each member of the returned list."
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:482
6972 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:484
6977 msgid "base64-in"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:486
6982 #, no-wrap
6983 msgid ""
6984 " base64-in (base64file|-) filename\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6990 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025 ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418 ../fish/guestfish-actions.pod:4966 ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4989 ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5131 ../fish/guestfish-actions.pod:5140 ../fish/guestfish-actions.pod:5194 ../fish/guestfish-actions.pod:5217
6995 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6996 msgstr ""
6997
6998 #. type: =head2
6999 #: ../fish/guestfish-actions.pod:493
7000 msgid "base64-out"
7001 msgstr ""
7002
7003 #. type: verbatim
7004 #: ../fish/guestfish-actions.pod:495
7005 #, no-wrap
7006 msgid ""
7007 " base64-out filename (base64file|-)\n"
7008 "\n"
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7013 msgid ""
7014 "This command downloads the contents of C<filename>, writing it out to local "
7015 "file C<base64file> encoded as base64."
7016 msgstr ""
7017
7018 #. type: =head2
7019 #: ../fish/guestfish-actions.pod:502
7020 msgid "blockdev-flushbufs"
7021 msgstr ""
7022
7023 #. type: verbatim
7024 #: ../fish/guestfish-actions.pod:504
7025 #, no-wrap
7026 msgid ""
7027 " blockdev-flushbufs device\n"
7028 "\n"
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7033 msgid "This tells the kernel to flush internal buffers associated with C<device>."
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520 ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583 ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599 ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817 ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7038 msgid "This uses the L<blockdev(8)> command."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:511
7043 msgid "blockdev-getbsz"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:513
7048 #, no-wrap
7049 msgid ""
7050 " blockdev-getbsz device\n"
7051 "\n"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7056 msgid "This returns the block size of a device."
7057 msgstr ""
7058
7059 #. type: textblock
7060 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580 ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7061 msgid ""
7062 "(Note this is different from both I<size in blocks> and I<filesystem block "
7063 "size>)."
7064 msgstr ""
7065
7066 #. type: =head2
7067 #: ../fish/guestfish-actions.pod:522
7068 msgid "blockdev-getro"
7069 msgstr ""
7070
7071 #. type: verbatim
7072 #: ../fish/guestfish-actions.pod:524
7073 #, no-wrap
7074 msgid ""
7075 " blockdev-getro device\n"
7076 "\n"
7077 msgstr ""
7078
7079 #. type: textblock
7080 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7081 msgid ""
7082 "Returns a boolean indicating if the block device is read-only (true if "
7083 "read-only, false if not)."
7084 msgstr ""
7085
7086 #. type: =head2
7087 #: ../fish/guestfish-actions.pod:531
7088 msgid "blockdev-getsize64"
7089 msgstr ""
7090
7091 #. type: verbatim
7092 #: ../fish/guestfish-actions.pod:533
7093 #, no-wrap
7094 msgid ""
7095 " blockdev-getsize64 device\n"
7096 "\n"
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7101 msgid "This returns the size of the device in bytes."
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:537
7106 msgid "See also L</blockdev-getsz>."
7107 msgstr ""
7108
7109 #. type: =head2
7110 #: ../fish/guestfish-actions.pod:541
7111 msgid "blockdev-getss"
7112 msgstr ""
7113
7114 #. type: verbatim
7115 #: ../fish/guestfish-actions.pod:543
7116 #, no-wrap
7117 msgid ""
7118 " blockdev-getss device\n"
7119 "\n"
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7124 msgid ""
7125 "This returns the size of sectors on a block device.  Usually 512, but can be "
7126 "larger for modern devices."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:548
7131 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7132 msgstr ""
7133
7134 #. type: =head2
7135 #: ../fish/guestfish-actions.pod:553
7136 msgid "blockdev-getsz"
7137 msgstr ""
7138
7139 #. type: verbatim
7140 #: ../fish/guestfish-actions.pod:555
7141 #, no-wrap
7142 msgid ""
7143 " blockdev-getsz device\n"
7144 "\n"
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7149 msgid ""
7150 "This returns the size of the device in units of 512-byte sectors (even if "
7151 "the sectorsize isn't 512 bytes ... weird)."
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:560
7156 msgid ""
7157 "See also L</blockdev-getss> for the real sector size of the device, and "
7158 "L</blockdev-getsize64> for the more useful I<size in bytes>."
7159 msgstr ""
7160
7161 #. type: =head2
7162 #: ../fish/guestfish-actions.pod:566
7163 msgid "blockdev-rereadpt"
7164 msgstr ""
7165
7166 #. type: verbatim
7167 #: ../fish/guestfish-actions.pod:568
7168 #, no-wrap
7169 msgid ""
7170 " blockdev-rereadpt device\n"
7171 "\n"
7172 msgstr ""
7173
7174 #. type: textblock
7175 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7176 msgid "Reread the partition table on C<device>."
7177 msgstr ""
7178
7179 #. type: =head2
7180 #: ../fish/guestfish-actions.pod:574
7181 msgid "blockdev-setbsz"
7182 msgstr ""
7183
7184 #. type: verbatim
7185 #: ../fish/guestfish-actions.pod:576
7186 #, no-wrap
7187 msgid ""
7188 " blockdev-setbsz device blocksize\n"
7189 "\n"
7190 msgstr ""
7191
7192 #. type: textblock
7193 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7194 msgid "This sets the block size of a device."
7195 msgstr ""
7196
7197 #. type: =head2
7198 #: ../fish/guestfish-actions.pod:585
7199 msgid "blockdev-setro"
7200 msgstr ""
7201
7202 #. type: verbatim
7203 #: ../fish/guestfish-actions.pod:587
7204 #, no-wrap
7205 msgid ""
7206 " blockdev-setro device\n"
7207 "\n"
7208 msgstr ""
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7212 msgid "Sets the block device named C<device> to read-only."
7213 msgstr ""
7214
7215 #. type: =head2
7216 #: ../fish/guestfish-actions.pod:593
7217 msgid "blockdev-setrw"
7218 msgstr ""
7219
7220 #. type: verbatim
7221 #: ../fish/guestfish-actions.pod:595
7222 #, no-wrap
7223 msgid ""
7224 " blockdev-setrw device\n"
7225 "\n"
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7230 msgid "Sets the block device named C<device> to read-write."
7231 msgstr ""
7232
7233 #. type: =head2
7234 #: ../fish/guestfish-actions.pod:601
7235 msgid "btrfs-filesystem-resize"
7236 msgstr ""
7237
7238 #. type: verbatim
7239 #: ../fish/guestfish-actions.pod:603
7240 #, no-wrap
7241 msgid ""
7242 " btrfs-filesystem-resize mountpoint [size:N]\n"
7243 "\n"
7244 msgstr ""
7245
7246 #. type: textblock
7247 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7248 msgid "This command resizes a btrfs filesystem."
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7253 msgid ""
7254 "Note that unlike other resize calls, the filesystem has to be mounted and "
7255 "the parameter is the mountpoint not the device (this is a requirement of "
7256 "btrfs itself)."
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3168 ../fish/guestfish-actions.pod:3714 ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4896 ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:7779
7261 msgid "The optional parameters are:"
7262 msgstr ""
7263
7264 #. type: =item
7265 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3718 ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5807
7266 msgid "C<size>"
7267 msgstr ""
7268
7269 #. type: textblock
7270 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7271 msgid ""
7272 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7273 "resized to the maximum size."
7274 msgstr ""
7275
7276 #. type: textblock
7277 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7278 msgid "See also L<btrfs(8)>."
7279 msgstr ""
7280
7281 #. type: =head2
7282 #: ../fish/guestfish-actions.pod:626
7283 msgid "case-sensitive-path"
7284 msgstr ""
7285
7286 #. type: verbatim
7287 #: ../fish/guestfish-actions.pod:628
7288 #, no-wrap
7289 msgid ""
7290 " case-sensitive-path path\n"
7291 "\n"
7292 msgstr ""
7293
7294 #. type: textblock
7295 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7296 msgid ""
7297 "This can be used to resolve case insensitive paths on a filesystem which is "
7298 "case sensitive.  The use case is to resolve paths which you have read from "
7299 "Windows configuration files or the Windows Registry, to the true path."
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7304 msgid ""
7305 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7306 "(and probably others), which is that although the underlying filesystem is "
7307 "case-insensitive, the driver exports the filesystem to Linux as "
7308 "case-sensitive."
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7313 msgid ""
7314 "One consequence of this is that special directories such as C<c:\\windows> "
7315 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7316 "precise details of how they were created.  In Windows itself this would not "
7317 "be a problem."
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7322 msgid ""
7323 "Bug or feature? You decide: "
7324 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7325 msgstr ""
7326
7327 #. type: textblock
7328 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7329 msgid ""
7330 "This function resolves the true case of each element in the path and returns "
7331 "the case-sensitive path."
7332 msgstr ""
7333
7334 #. type: textblock
7335 #: ../fish/guestfish-actions.pod:652
7336 msgid ""
7337 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
7338 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7339 "how the directories were originally created under Windows)."
7340 msgstr ""
7341
7342 #. type: textblock
7343 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7344 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:660
7349 msgid "See also L</realpath>."
7350 msgstr ""
7351
7352 #. type: =head2
7353 #: ../fish/guestfish-actions.pod:662
7354 msgid "cat"
7355 msgstr ""
7356
7357 #. type: verbatim
7358 #: ../fish/guestfish-actions.pod:664
7359 #, no-wrap
7360 msgid ""
7361 " cat path\n"
7362 "\n"
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6463
7367 msgid "Return the contents of the file named C<path>."
7368 msgstr ""
7369
7370 #. type: textblock
7371 #: ../fish/guestfish-actions.pod:668
7372 msgid ""
7373 "Note that this function cannot correctly handle binary files (specifically, "
7374 "files containing C<\\0> character which is treated as end of string).  For "
7375 "those you need to use the L</read-file> or L</download> functions which have "
7376 "a more complex interface."
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180 ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382 ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705 ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4106 ../fish/guestfish-actions.pod:4123 ../fish/guestfish-actions.pod:4138 ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4853 ../fish/guestfish-actions.pod:4938 ../fish/guestfish-actions.pod:4953 ../fish/guestfish-actions.pod:5438 ../fish/guestfish-actions.pod:5450 ../fish/guestfish-actions.pod:5468 ../fish/guestfish-actions.pod:5485 ../fish/guestfish-actions.pod:5495 ../fish/guestfish-actions.pod:5549 ../fish/guestfish-actions.pod:5559 ../fish/guestfish-actions.pod:5588 ../fish/guestfish-actions.pod:5598 ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832 ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6402 ../src/guestfs-actions.pod:6428 ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7608 ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:8419 ../src/guestfs-actions.pod:8439 ../src/guestfs-actions.pod:8472 ../src/guestfs-actions.pod:8491 ../src/guestfs-actions.pod:8510 ../src/guestfs-actions.pod:8601 ../src/guestfs-actions.pod:8620 ../src/guestfs-actions.pod:8666 ../src/guestfs-actions.pod:8685
7381 msgid ""
7382 "Because of the message protocol, there is a transfer limit of somewhere "
7383 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7384 msgstr ""
7385
7386 #. type: =head2
7387 #: ../fish/guestfish-actions.pod:676
7388 msgid "checksum"
7389 msgstr ""
7390
7391 #. type: verbatim
7392 #: ../fish/guestfish-actions.pod:678
7393 #, no-wrap
7394 msgid ""
7395 " checksum csumtype path\n"
7396 "\n"
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7401 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7406 msgid ""
7407 "The type of checksum to compute is given by the C<csumtype> parameter which "
7408 "must have one of the following values:"
7409 msgstr ""
7410
7411 #. type: =item
7412 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7413 msgid "C<crc>"
7414 msgstr ""
7415
7416 #. type: textblock
7417 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7418 msgid ""
7419 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7420 "C<cksum> command."
7421 msgstr ""
7422
7423 #. type: =item
7424 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7425 msgid "C<md5>"
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7430 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7431 msgstr ""
7432
7433 #. type: =item
7434 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7435 msgid "C<sha1>"
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7440 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7441 msgstr ""
7442
7443 #. type: =item
7444 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7445 msgid "C<sha224>"
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7450 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7451 msgstr ""
7452
7453 #. type: =item
7454 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7455 msgid "C<sha256>"
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7460 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7461 msgstr ""
7462
7463 #. type: =item
7464 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7465 msgid "C<sha384>"
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7470 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7471 msgstr ""
7472
7473 #. type: =item
7474 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7475 msgid "C<sha512>"
7476 msgstr ""
7477
7478 #. type: textblock
7479 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7480 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7481 msgstr ""
7482
7483 #. type: textblock
7484 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7485 msgid "The checksum is returned as a printable string."
7486 msgstr ""
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:721
7490 msgid "To get the checksum for a device, use L</checksum-device>."
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../fish/guestfish-actions.pod:723
7495 msgid "To get the checksums for many files, use L</checksums-out>."
7496 msgstr ""
7497
7498 #. type: =head2
7499 #: ../fish/guestfish-actions.pod:725
7500 msgid "checksum-device"
7501 msgstr ""
7502
7503 #. type: verbatim
7504 #: ../fish/guestfish-actions.pod:727
7505 #, no-wrap
7506 msgid ""
7507 " checksum-device csumtype device\n"
7508 "\n"
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:729
7513 msgid ""
7514 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7515 "device named C<device>.  For the types of checksums supported see the "
7516 "L</checksum> command."
7517 msgstr ""
7518
7519 #. type: =head2
7520 #: ../fish/guestfish-actions.pod:733
7521 msgid "checksums-out"
7522 msgstr ""
7523
7524 #. type: verbatim
7525 #: ../fish/guestfish-actions.pod:735
7526 #, no-wrap
7527 msgid ""
7528 " checksums-out csumtype directory (sumsfile|-)\n"
7529 "\n"
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7534 msgid ""
7535 "This command computes the checksums of all regular files in C<directory> and "
7536 "then emits a list of those checksums to the local output file C<sumsfile>."
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7541 msgid ""
7542 "This can be used for verifying the integrity of a virtual machine.  However "
7543 "to be properly secure you should pay attention to the output of the checksum "
7544 "command (it uses the ones from GNU coreutils).  In particular when the "
7545 "filename is not printable, coreutils uses a special backslash syntax.  For "
7546 "more information, see the GNU coreutils info file."
7547 msgstr ""
7548
7549 #. type: =head2
7550 #: ../fish/guestfish-actions.pod:751
7551 msgid "chmod"
7552 msgstr ""
7553
7554 #. type: verbatim
7555 #: ../fish/guestfish-actions.pod:753
7556 #, no-wrap
7557 msgid ""
7558 " chmod mode path\n"
7559 "\n"
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7564 msgid ""
7565 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7566 "supported."
7567 msgstr ""
7568
7569 #. type: textblock
7570 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7571 msgid ""
7572 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7573 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7574 "C<700>."
7575 msgstr ""
7576
7577 #. type: textblock
7578 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3367 ../fish/guestfish-actions.pod:3506 ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:3526 ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5419 ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5457
7579 msgid "The mode actually set is affected by the umask."
7580 msgstr ""
7581
7582 #. type: =head2
7583 #: ../fish/guestfish-actions.pod:764
7584 msgid "chown"
7585 msgstr ""
7586
7587 #. type: verbatim
7588 #: ../fish/guestfish-actions.pod:766
7589 #, no-wrap
7590 msgid ""
7591 " chown owner group path\n"
7592 "\n"
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7597 msgid "Change the file owner to C<owner> and group to C<group>."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4128
7602 msgid ""
7603 "Only numeric uid and gid are supported.  If you want to use names, you will "
7604 "need to locate and parse the password file yourself (Augeas support makes "
7605 "this relatively easy)."
7606 msgstr ""
7607
7608 #. type: =head2
7609 #: ../fish/guestfish-actions.pod:774
7610 msgid "command"
7611 msgstr ""
7612
7613 #. type: verbatim
7614 #: ../fish/guestfish-actions.pod:776
7615 #, no-wrap
7616 msgid ""
7617 " command 'arguments ...'\n"
7618 "\n"
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7623 msgid ""
7624 "This call runs a command from the guest filesystem.  The filesystem must be "
7625 "mounted, and must contain a compatible operating system (ie. something "
7626 "Linux, with the same or compatible processor architecture)."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:783
7631 msgid ""
7632 "The single parameter is an argv-style list of arguments.  The first element "
7633 "is the name of the program to run.  Subsequent elements are parameters.  The "
7634 "list must be non-empty (ie. must contain a program name).  Note that the "
7635 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7640 msgid "The return value is anything printed to I<stdout> by the command."
7641 msgstr ""
7642
7643 #. type: textblock
7644 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7645 msgid ""
7646 "If the command returns a non-zero exit status, then this function returns an "
7647 "error message.  The error message string is the content of I<stderr> from "
7648 "the command."
7649 msgstr ""
7650
7651 #. type: textblock
7652 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7653 msgid ""
7654 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7655 "C</bin>.  If you require a program from another location, you should provide "
7656 "the full path in the first parameter."
7657 msgstr ""
7658
7659 #. type: textblock
7660 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7661 msgid ""
7662 "Shared libraries and data files required by the program must be available on "
7663 "filesystems which are mounted in the correct places.  It is the caller's "
7664 "responsibility to ensure all filesystems that are needed are mounted at the "
7665 "right locations."
7666 msgstr ""
7667
7668 #. type: =head2
7669 #: ../fish/guestfish-actions.pod:811
7670 msgid "command-lines"
7671 msgstr ""
7672
7673 #. type: verbatim
7674 #: ../fish/guestfish-actions.pod:813
7675 #, no-wrap
7676 msgid ""
7677 " command-lines 'arguments ...'\n"
7678 "\n"
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:815
7683 msgid "This is the same as L</command>, but splits the result into a list of lines."
7684 msgstr ""
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:818
7688 msgid "See also: L</sh-lines>"
7689 msgstr ""
7690
7691 #. type: =head2
7692 #: ../fish/guestfish-actions.pod:823
7693 msgid "compress-device-out"
7694 msgstr ""
7695
7696 #. type: verbatim
7697 #: ../fish/guestfish-actions.pod:825
7698 #, no-wrap
7699 msgid ""
7700 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7701 "\n"
7702 msgstr ""
7703
7704 #. type: textblock
7705 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7706 msgid ""
7707 "This command compresses C<device> and writes it out to the local file "
7708 "C<zdevice>."
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:830
7713 msgid ""
7714 "The C<ctype> and optional C<level> parameters have the same meaning as in "
7715 "L</compress-out>."
7716 msgstr ""
7717
7718 #. type: =head2
7719 #: ../fish/guestfish-actions.pod:837
7720 msgid "compress-out"
7721 msgstr ""
7722
7723 #. type: verbatim
7724 #: ../fish/guestfish-actions.pod:839
7725 #, no-wrap
7726 msgid ""
7727 " compress-out ctype file (zfile|-) [level:N]\n"
7728 "\n"
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7733 msgid ""
7734 "This command compresses C<file> and writes it out to the local file "
7735 "C<zfile>."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7740 msgid ""
7741 "The compression program used is controlled by the C<ctype> parameter.  "
7742 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7743 "Some compression types may not be supported by particular builds of "
7744 "libguestfs, in which case you will get an error containing the substring "
7745 "\"not supported\"."
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7750 msgid ""
7751 "The optional C<level> parameter controls compression level.  The meaning and "
7752 "default for this parameter depends on the compression program being used."
7753 msgstr ""
7754
7755 #. type: =head2
7756 #: ../fish/guestfish-actions.pod:858
7757 msgid "config"
7758 msgstr ""
7759
7760 #. type: verbatim
7761 #: ../fish/guestfish-actions.pod:860
7762 #, no-wrap
7763 msgid ""
7764 " config qemuparam qemuvalue\n"
7765 "\n"
7766 msgstr ""
7767
7768 #. type: textblock
7769 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7770 msgid ""
7771 "This can be used to add arbitrary qemu command line parameters of the form "
7772 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7773 "setting some parameters which would interfere with parameters that we use."
7774 msgstr ""
7775
7776 #. type: textblock
7777 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7778 msgid "The first character of C<param> string must be a C<-> (dash)."
7779 msgstr ""
7780
7781 #. type: textblock
7782 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7783 msgid "C<value> can be NULL."
7784 msgstr ""
7785
7786 #. type: =head2
7787 #: ../fish/guestfish-actions.pod:871
7788 msgid "copy-device-to-device"
7789 msgstr ""
7790
7791 #. type: verbatim
7792 #: ../fish/guestfish-actions.pod:873
7793 #, no-wrap
7794 msgid ""
7795 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7796 "\n"
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:875
7801 msgid ""
7802 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
7803 "L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
7804 "source (device|file) to a destination (device|file)."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7809 msgid ""
7810 "Partial copies can be made since you can specify optionally the source "
7811 "offset, destination offset and size to copy.  These values are all specified "
7812 "in bytes.  If not given, the offsets both default to zero, and the size "
7813 "defaults to copying as much as possible until we hit the end of the source."
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7818 msgid ""
7819 "The source and destination may be the same object.  However overlapping "
7820 "regions may not be copied correctly."
7821 msgstr ""
7822
7823 #. type: textblock
7824 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7825 msgid ""
7826 "If the destination is a file, it is created if required.  If the destination "
7827 "file is not large enough, it is extended."
7828 msgstr ""
7829
7830 #. type: =head2
7831 #: ../fish/guestfish-actions.pod:896
7832 msgid "copy-device-to-file"
7833 msgstr ""
7834
7835 #. type: verbatim
7836 #: ../fish/guestfish-actions.pod:898
7837 #, no-wrap
7838 msgid ""
7839 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7840 "\n"
7841 msgstr ""
7842
7843 #. type: textblock
7844 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909 ../fish/guestfish-actions.pod:918
7845 msgid "See L</copy-device-to-device> for a general overview of this call."
7846 msgstr ""
7847
7848 #. type: =head2
7849 #: ../fish/guestfish-actions.pod:905
7850 msgid "copy-file-to-device"
7851 msgstr ""
7852
7853 #. type: verbatim
7854 #: ../fish/guestfish-actions.pod:907
7855 #, no-wrap
7856 msgid ""
7857 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7858 "\n"
7859 msgstr ""
7860
7861 #. type: =head2
7862 #: ../fish/guestfish-actions.pod:914
7863 msgid "copy-file-to-file"
7864 msgstr ""
7865
7866 #. type: verbatim
7867 #: ../fish/guestfish-actions.pod:916
7868 #, no-wrap
7869 msgid ""
7870 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7871 "\n"
7872 msgstr ""
7873
7874 #. type: textblock
7875 #: ../fish/guestfish-actions.pod:921
7876 msgid ""
7877 "This is B<not> the function you want for copying files.  This is for copying "
7878 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7879 "file copying and moving functions."
7880 msgstr ""
7881
7882 #. type: =head2
7883 #: ../fish/guestfish-actions.pod:928
7884 msgid "copy-size"
7885 msgstr ""
7886
7887 #. type: verbatim
7888 #: ../fish/guestfish-actions.pod:930
7889 #, no-wrap
7890 msgid ""
7891 " copy-size src dest size\n"
7892 "\n"
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7897 msgid ""
7898 "This command copies exactly C<size> bytes from one source device or file "
7899 "C<src> to another destination device or file C<dest>."
7900 msgstr ""
7901
7902 #. type: textblock
7903 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7904 msgid ""
7905 "Note this will fail if the source is too short or if the destination is not "
7906 "large enough."
7907 msgstr ""
7908
7909 #. type: textblock
7910 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7911 msgid ""
7912 "I<This function is deprecated.> In new code, use the "
7913 "L</copy_device_to_device> call instead."
7914 msgstr ""
7915
7916 #. type: =head2
7917 #: ../fish/guestfish-actions.pod:945
7918 msgid "cp"
7919 msgstr ""
7920
7921 #. type: verbatim
7922 #: ../fish/guestfish-actions.pod:947
7923 #, no-wrap
7924 msgid ""
7925 " cp src dest\n"
7926 "\n"
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7931 msgid ""
7932 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7933 "destination filename or destination directory."
7934 msgstr ""
7935
7936 #. type: =head2
7937 #: ../fish/guestfish-actions.pod:952
7938 msgid "cp-a"
7939 msgstr ""
7940
7941 #. type: verbatim
7942 #: ../fish/guestfish-actions.pod:954
7943 #, no-wrap
7944 msgid ""
7945 " cp-a src dest\n"
7946 "\n"
7947 msgstr ""
7948
7949 #. type: textblock
7950 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7951 msgid ""
7952 "This copies a file or directory from C<src> to C<dest> recursively using the "
7953 "C<cp -a> command."
7954 msgstr ""
7955
7956 #. type: =head2
7957 #: ../fish/guestfish-actions.pod:959
7958 msgid "dd"
7959 msgstr ""
7960
7961 #. type: verbatim
7962 #: ../fish/guestfish-actions.pod:961
7963 #, no-wrap
7964 msgid ""
7965 " dd src dest\n"
7966 "\n"
7967 msgstr ""
7968
7969 #. type: textblock
7970 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7971 msgid ""
7972 "This command copies from one source device or file C<src> to another "
7973 "destination device or file C<dest>.  Normally you would use this to copy to "
7974 "or from a device or partition, for example to duplicate a filesystem."
7975 msgstr ""
7976
7977 #. type: textblock
7978 #: ../fish/guestfish-actions.pod:968
7979 msgid ""
7980 "If the destination is a device, it must be as large or larger than the "
7981 "source file or device, otherwise the copy will fail.  This command cannot do "
7982 "partial copies (see L</copy-device-to-device>)."
7983 msgstr ""
7984
7985 #. type: =head2
7986 #: ../fish/guestfish-actions.pod:980
7987 msgid "df"
7988 msgstr ""
7989
7990 #. type: verbatim
7991 #: ../fish/guestfish-actions.pod:982
7992 #, no-wrap
7993 msgid ""
7994 " df\n"
7995 "\n"
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8000 msgid "This command runs the C<df> command to report disk space used."
8001 msgstr ""
8002
8003 #. type: textblock
8004 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8005 msgid ""
8006 "This command is mostly useful for interactive sessions.  It is I<not> "
8007 "intended that you try to parse the output string.  Use L</statvfs> from "
8008 "programs."
8009 msgstr ""
8010
8011 #. type: =head2
8012 #: ../fish/guestfish-actions.pod:990
8013 msgid "df-h"
8014 msgstr ""
8015
8016 #. type: verbatim
8017 #: ../fish/guestfish-actions.pod:992
8018 #, no-wrap
8019 msgid ""
8020 " df-h\n"
8021 "\n"
8022 msgstr ""
8023
8024 #. type: textblock
8025 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8026 msgid ""
8027 "This command runs the C<df -h> command to report disk space used in "
8028 "human-readable format."
8029 msgstr ""
8030
8031 #. type: =head2
8032 #: ../fish/guestfish-actions.pod:1001
8033 msgid "dmesg"
8034 msgstr ""
8035
8036 #. type: verbatim
8037 #: ../fish/guestfish-actions.pod:1003
8038 #, no-wrap
8039 msgid ""
8040 " dmesg\n"
8041 "\n"
8042 msgstr ""
8043
8044 #. type: textblock
8045 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8046 msgid ""
8047 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8048 "This is sometimes useful for extended debugging of problems."
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../fish/guestfish-actions.pod:1009
8053 msgid ""
8054 "Another way to get the same information is to enable verbose messages with "
8055 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8056 "before running the program."
8057 msgstr ""
8058
8059 #. type: =head2
8060 #: ../fish/guestfish-actions.pod:1014
8061 msgid "download"
8062 msgstr ""
8063
8064 #. type: verbatim
8065 #: ../fish/guestfish-actions.pod:1016
8066 #, no-wrap
8067 msgid ""
8068 " download remotefilename (filename|-)\n"
8069 "\n"
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031 ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8074 msgid ""
8075 "Download file C<remotefilename> and save it as C<filename> on the local "
8076 "machine."
8077 msgstr ""
8078
8079 #. type: textblock
8080 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7989
8081 msgid "C<filename> can also be a named pipe."
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:1023
8086 msgid "See also L</upload>, L</cat>."
8087 msgstr ""
8088
8089 #. type: =head2
8090 #: ../fish/guestfish-actions.pod:1027
8091 msgid "download-offset"
8092 msgstr ""
8093
8094 #. type: verbatim
8095 #: ../fish/guestfish-actions.pod:1029
8096 #, no-wrap
8097 msgid ""
8098 " download-offset remotefilename (filename|-) offset size\n"
8099 "\n"
8100 msgstr ""
8101
8102 #. type: textblock
8103 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8104 msgid ""
8105 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8106 "region must be within the file or device)."
8107 msgstr ""
8108
8109 #. type: textblock
8110 #: ../fish/guestfish-actions.pod:1037
8111 msgid ""
8112 "Note that there is no limit on the amount of data that can be downloaded "
8113 "with this call, unlike with L</pread>, and this call always reads the full "
8114 "amount unless an error occurs."
8115 msgstr ""
8116
8117 #. type: textblock
8118 #: ../fish/guestfish-actions.pod:1042
8119 msgid "See also L</download>, L</pread>."
8120 msgstr ""
8121
8122 #. type: =head2
8123 #: ../fish/guestfish-actions.pod:1046
8124 msgid "drop-caches"
8125 msgstr ""
8126
8127 #. type: verbatim
8128 #: ../fish/guestfish-actions.pod:1048
8129 #, no-wrap
8130 msgid ""
8131 " drop-caches whattodrop\n"
8132 "\n"
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8137 msgid ""
8138 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8139 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8140 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8145 msgid "Setting C<whattodrop> to 3 should drop everything."
8146 msgstr ""
8147
8148 #. type: textblock
8149 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8150 msgid ""
8151 "This automatically calls L<sync(2)> before the operation, so that the "
8152 "maximum guest memory is freed."
8153 msgstr ""
8154
8155 #. type: =head2
8156 #: ../fish/guestfish-actions.pod:1060
8157 msgid "du"
8158 msgstr ""
8159
8160 #. type: verbatim
8161 #: ../fish/guestfish-actions.pod:1062
8162 #, no-wrap
8163 msgid ""
8164 " du path\n"
8165 "\n"
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8170 msgid ""
8171 "This command runs the C<du -s> command to estimate file space usage for "
8172 "C<path>."
8173 msgstr ""
8174
8175 #. type: textblock
8176 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8177 msgid ""
8178 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8179 "estimate includes the contents of the directory and all subdirectories "
8180 "(recursively)."
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8185 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8186 msgstr ""
8187
8188 #. type: =head2
8189 #: ../fish/guestfish-actions.pod:1074
8190 msgid "e2fsck-f"
8191 msgstr ""
8192
8193 #. type: verbatim
8194 #: ../fish/guestfish-actions.pod:1076
8195 #, no-wrap
8196 msgid ""
8197 " e2fsck-f device\n"
8198 "\n"
8199 msgstr ""
8200
8201 #. type: textblock
8202 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8203 msgid ""
8204 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8205 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8206 "clean (I<-f>)."
8207 msgstr ""
8208
8209 #. type: textblock
8210 #: ../fish/guestfish-actions.pod:1082
8211 msgid ""
8212 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8213 "should use L</fsck>."
8214 msgstr ""
8215
8216 #. type: =head2
8217 #: ../fish/guestfish-actions.pod:1085
8218 msgid "echo-daemon"
8219 msgstr ""
8220
8221 #. type: verbatim
8222 #: ../fish/guestfish-actions.pod:1087
8223 #, no-wrap
8224 msgid ""
8225 " echo-daemon 'words ...'\n"
8226 "\n"
8227 msgstr ""
8228
8229 #. type: textblock
8230 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8231 msgid ""
8232 "This command concatenates the list of C<words> passed with single spaces "
8233 "between them and returns the resulting string."
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8238 msgid "You can use this command to test the connection through to the daemon."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1094
8243 msgid "See also L</ping-daemon>."
8244 msgstr ""
8245
8246 #. type: =head2
8247 #: ../fish/guestfish-actions.pod:1096
8248 msgid "egrep"
8249 msgstr ""
8250
8251 #. type: verbatim
8252 #: ../fish/guestfish-actions.pod:1098
8253 #, no-wrap
8254 msgid ""
8255 " egrep regex path\n"
8256 "\n"
8257 msgstr ""
8258
8259 #. type: textblock
8260 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8261 msgid "This calls the external C<egrep> program and returns the matching lines."
8262 msgstr ""
8263
8264 #. type: =head2
8265 #: ../fish/guestfish-actions.pod:1106
8266 msgid "egrepi"
8267 msgstr ""
8268
8269 #. type: verbatim
8270 #: ../fish/guestfish-actions.pod:1108
8271 #, no-wrap
8272 msgid ""
8273 " egrepi regex path\n"
8274 "\n"
8275 msgstr ""
8276
8277 #. type: textblock
8278 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8279 msgid "This calls the external C<egrep -i> program and returns the matching lines."
8280 msgstr ""
8281
8282 #. type: =head2
8283 #: ../fish/guestfish-actions.pod:1116
8284 msgid "equal"
8285 msgstr ""
8286
8287 #. type: verbatim
8288 #: ../fish/guestfish-actions.pod:1118
8289 #, no-wrap
8290 msgid ""
8291 " equal file1 file2\n"
8292 "\n"
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8297 msgid ""
8298 "This compares the two files C<file1> and C<file2> and returns true if their "
8299 "content is exactly equal, or false otherwise."
8300 msgstr ""
8301
8302 #. type: textblock
8303 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8304 msgid "The external L<cmp(1)> program is used for the comparison."
8305 msgstr ""
8306
8307 #. type: =head2
8308 #: ../fish/guestfish-actions.pod:1125
8309 msgid "exists"
8310 msgstr ""
8311
8312 #. type: verbatim
8313 #: ../fish/guestfish-actions.pod:1127
8314 #, no-wrap
8315 msgid ""
8316 " exists path\n"
8317 "\n"
8318 msgstr ""
8319
8320 #. type: textblock
8321 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8322 msgid ""
8323 "This returns C<true> if and only if there is a file, directory (or anything) "
8324 "with the given C<path> name."
8325 msgstr ""
8326
8327 #. type: textblock
8328 #: ../fish/guestfish-actions.pod:1132
8329 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8330 msgstr ""
8331
8332 #. type: =head2
8333 #: ../fish/guestfish-actions.pod:1134
8334 msgid "fallocate"
8335 msgstr ""
8336
8337 #. type: verbatim
8338 #: ../fish/guestfish-actions.pod:1136
8339 #, no-wrap
8340 msgid ""
8341 " fallocate path len\n"
8342 "\n"
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8347 msgid ""
8348 "This command preallocates a file (containing zero bytes) named C<path> of "
8349 "size C<len> bytes.  If the file exists already, it is overwritten."
8350 msgstr ""
8351
8352 #. type: textblock
8353 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8354 msgid ""
8355 "Do not confuse this with the guestfish-specific C<alloc> command which "
8356 "allocates a file in the host and attaches it as a device."
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1146
8361 msgid ""
8362 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8363 "instead."
8364 msgstr ""
8365
8366 #. type: =head2
8367 #: ../fish/guestfish-actions.pod:1153
8368 msgid "fallocate64"
8369 msgstr ""
8370
8371 #. type: verbatim
8372 #: ../fish/guestfish-actions.pod:1155
8373 #, no-wrap
8374 msgid ""
8375 " fallocate64 path len\n"
8376 "\n"
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1161
8381 msgid ""
8382 "Note that this call allocates disk blocks for the file.  To create a sparse "
8383 "file use L</truncate-size> instead."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1164
8388 msgid ""
8389 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8390 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8391 "maximum size of files created through that call to 1GB."
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8396 msgid ""
8397 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8398 "commands which create a file in the host and attach it as a device."
8399 msgstr ""
8400
8401 #. type: =head2
8402 #: ../fish/guestfish-actions.pod:1173
8403 msgid "fgrep"
8404 msgstr ""
8405
8406 #. type: verbatim
8407 #: ../fish/guestfish-actions.pod:1175
8408 #, no-wrap
8409 msgid ""
8410 " fgrep pattern path\n"
8411 "\n"
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8416 msgid "This calls the external C<fgrep> program and returns the matching lines."
8417 msgstr ""
8418
8419 #. type: =head2
8420 #: ../fish/guestfish-actions.pod:1183
8421 msgid "fgrepi"
8422 msgstr ""
8423
8424 #. type: verbatim
8425 #: ../fish/guestfish-actions.pod:1185
8426 #, no-wrap
8427 msgid ""
8428 " fgrepi pattern path\n"
8429 "\n"
8430 msgstr ""
8431
8432 #. type: textblock
8433 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8434 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8435 msgstr ""
8436
8437 #. type: =head2
8438 #: ../fish/guestfish-actions.pod:1193
8439 msgid "file"
8440 msgstr ""
8441
8442 #. type: verbatim
8443 #: ../fish/guestfish-actions.pod:1195
8444 #, no-wrap
8445 msgid ""
8446 " file path\n"
8447 "\n"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8452 msgid ""
8453 "This call uses the standard L<file(1)> command to determine the type or "
8454 "contents of the file."
8455 msgstr ""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8459 msgid ""
8460 "This call will also transparently look inside various types of compressed "
8461 "file."
8462 msgstr ""
8463
8464 #. type: textblock
8465 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8466 msgid ""
8467 "The exact command which runs is C<file -zb path>.  Note in particular that "
8468 "the filename is not prepended to the output (the I<-b> option)."
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8473 msgid ""
8474 "The output depends on the output of the underlying L<file(1)> command and it "
8475 "can change in future in ways beyond our control.  In other words, the output "
8476 "is not guaranteed by the ABI."
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1211
8481 msgid ""
8482 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8483 "(etc), L</is-zero>."
8484 msgstr ""
8485
8486 #. type: =head2
8487 #: ../fish/guestfish-actions.pod:1214
8488 msgid "file-architecture"
8489 msgstr ""
8490
8491 #. type: verbatim
8492 #: ../fish/guestfish-actions.pod:1216
8493 #, no-wrap
8494 msgid ""
8495 " file-architecture filename\n"
8496 "\n"
8497 msgstr ""
8498
8499 #. type: textblock
8500 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8501 msgid ""
8502 "This detects the architecture of the binary C<filename>, and returns it if "
8503 "known."
8504 msgstr ""
8505
8506 #. type: textblock
8507 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8508 msgid "Currently defined architectures are:"
8509 msgstr ""
8510
8511 #. type: =item
8512 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8513 msgid "\"i386\""
8514 msgstr ""
8515
8516 #. type: textblock
8517 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8518 msgid ""
8519 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8520 "irrespective of the precise processor requirements of the binary."
8521 msgstr ""
8522
8523 #. type: =item
8524 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8525 msgid "\"x86_64\""
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8530 msgid "64 bit x86-64."
8531 msgstr ""
8532
8533 #. type: =item
8534 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8535 msgid "\"sparc\""
8536 msgstr ""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8540 msgid "32 bit SPARC."
8541 msgstr ""
8542
8543 #. type: =item
8544 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8545 msgid "\"sparc64\""
8546 msgstr ""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8550 msgid "64 bit SPARC V9 and above."
8551 msgstr ""
8552
8553 #. type: =item
8554 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8555 msgid "\"ia64\""
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8560 msgid "Intel Itanium."
8561 msgstr ""
8562
8563 #. type: =item
8564 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8565 msgid "\"ppc\""
8566 msgstr ""
8567
8568 #. type: textblock
8569 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8570 msgid "32 bit Power PC."
8571 msgstr ""
8572
8573 #. type: =item
8574 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8575 msgid "\"ppc64\""
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8580 msgid "64 bit Power PC."
8581 msgstr ""
8582
8583 #. type: textblock
8584 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8585 msgid "Libguestfs may return other architecture strings in future."
8586 msgstr ""
8587
8588 #. type: textblock
8589 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8590 msgid "The function works on at least the following types of files:"
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8595 msgid "many types of Un*x and Linux binary"
8596 msgstr ""
8597
8598 #. type: textblock
8599 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8600 msgid "many types of Un*x and Linux shared library"
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8605 msgid "Windows Win32 and Win64 binaries"
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8610 msgid "Windows Win32 and Win64 DLLs"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8615 msgid "Win32 binaries and DLLs return C<i386>."
8616 msgstr ""
8617
8618 #. type: textblock
8619 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8620 msgid "Win64 binaries and DLLs return C<x86_64>."
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8625 msgid "Linux kernel modules"
8626 msgstr ""
8627
8628 #. type: textblock
8629 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8630 msgid "Linux new-style initrd images"
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8635 msgid "some non-x86 Linux vmlinuz kernels"
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8640 msgid "What it can't do currently:"
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8645 msgid "static libraries (libfoo.a)"
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8650 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8655 msgid "x86 Linux vmlinuz kernels"
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8660 msgid ""
8661 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8662 "compressed code, and are horribly hard to unpack.  If you want to find the "
8663 "architecture of a kernel, use the architecture of the associated initrd or "
8664 "kernel module(s) instead."
8665 msgstr ""
8666
8667 #. type: =head2
8668 #: ../fish/guestfish-actions.pod:1319
8669 msgid "filesize"
8670 msgstr ""
8671
8672 #. type: verbatim
8673 #: ../fish/guestfish-actions.pod:1321
8674 #, no-wrap
8675 msgid ""
8676 " filesize file\n"
8677 "\n"
8678 msgstr ""
8679
8680 #. type: textblock
8681 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8682 msgid "This command returns the size of C<file> in bytes."
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1325
8687 msgid ""
8688 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
8689 "L</is-file> etc.  To get the size of block devices, use "
8690 "L</blockdev-getsize64>."
8691 msgstr ""
8692
8693 #. type: =head2
8694 #: ../fish/guestfish-actions.pod:1329
8695 msgid "fill"
8696 msgstr ""
8697
8698 #. type: verbatim
8699 #: ../fish/guestfish-actions.pod:1331
8700 #, no-wrap
8701 msgid ""
8702 " fill c len path\n"
8703 "\n"
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8708 msgid ""
8709 "This command creates a new file called C<path>.  The initial content of the "
8710 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8711 "C<[0..255]>."
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../fish/guestfish-actions.pod:1337
8716 msgid ""
8717 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8718 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8719 "L</fill-pattern>."
8720 msgstr ""
8721
8722 #. type: =head2
8723 #: ../fish/guestfish-actions.pod:1342
8724 msgid "fill-pattern"
8725 msgstr ""
8726
8727 #. type: verbatim
8728 #: ../fish/guestfish-actions.pod:1344
8729 #, no-wrap
8730 msgid ""
8731 " fill-pattern pattern len path\n"
8732 "\n"
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:1346
8737 msgid ""
8738 "This function is like L</fill> except that it creates a new file of length "
8739 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8740 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8741 "bytes."
8742 msgstr ""
8743
8744 #. type: =head2
8745 #: ../fish/guestfish-actions.pod:1351
8746 msgid "find"
8747 msgstr ""
8748
8749 #. type: verbatim
8750 #: ../fish/guestfish-actions.pod:1353
8751 #, no-wrap
8752 msgid ""
8753 " find directory\n"
8754 "\n"
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8759 msgid ""
8760 "This command lists out all files and directories, recursively, starting at "
8761 "C<directory>.  It is essentially equivalent to running the shell command "
8762 "C<find directory -print> but some post-processing happens on the output, "
8763 "described below."
8764 msgstr ""
8765
8766 #. type: textblock
8767 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8768 msgid ""
8769 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8770 "structure was:"
8771 msgstr ""
8772
8773 #. type: verbatim
8774 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8775 #, no-wrap
8776 msgid ""
8777 " /tmp/a\n"
8778 " /tmp/b\n"
8779 " /tmp/c/d\n"
8780 "\n"
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:1367
8785 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8786 msgstr ""
8787
8788 #. type: verbatim
8789 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8790 #, no-wrap
8791 msgid ""
8792 " a\n"
8793 " b\n"
8794 " c\n"
8795 " c/d\n"
8796 "\n"
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8801 msgid "If C<directory> is not a directory, then this command returns an error."
8802 msgstr ""
8803
8804 #. type: textblock
8805 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8806 msgid "The returned list is sorted."
8807 msgstr ""
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1380
8811 msgid "See also L</find0>."
8812 msgstr ""
8813
8814 #. type: =head2
8815 #: ../fish/guestfish-actions.pod:1385
8816 msgid "find0"
8817 msgstr ""
8818
8819 #. type: verbatim
8820 #: ../fish/guestfish-actions.pod:1387
8821 #, no-wrap
8822 msgid ""
8823 " find0 directory (files|-)\n"
8824 "\n"
8825 msgstr ""
8826
8827 #. type: textblock
8828 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8829 msgid ""
8830 "This command lists out all files and directories, recursively, starting at "
8831 "C<directory>, placing the resulting list in the external file called "
8832 "C<files>."
8833 msgstr ""
8834
8835 #. type: textblock
8836 #: ../fish/guestfish-actions.pod:1393
8837 msgid "This command works the same way as L</find> with the following exceptions:"
8838 msgstr ""
8839
8840 #. type: textblock
8841 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8842 msgid "The resulting list is written to an external file."
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8847 msgid ""
8848 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8849 "L<find(1)> option I<-print0>."
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8854 msgid "This command is not limited in the number of names that it can return."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8859 msgid "The result list is not sorted."
8860 msgstr ""
8861
8862 #. type: =head2
8863 #: ../fish/guestfish-actions.pod:1420
8864 msgid "findfs-label"
8865 msgstr ""
8866
8867 #. type: verbatim
8868 #: ../fish/guestfish-actions.pod:1422
8869 #, no-wrap
8870 msgid ""
8871 " findfs-label label\n"
8872 "\n"
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8877 msgid ""
8878 "This command searches the filesystems and returns the one which has the "
8879 "given label.  An error is returned if no such filesystem can be found."
8880 msgstr ""
8881
8882 #. type: textblock
8883 #: ../fish/guestfish-actions.pod:1428
8884 msgid "To find the label of a filesystem, use L</vfs-label>."
8885 msgstr ""
8886
8887 #. type: =head2
8888 #: ../fish/guestfish-actions.pod:1430
8889 msgid "findfs-uuid"
8890 msgstr ""
8891
8892 #. type: verbatim
8893 #: ../fish/guestfish-actions.pod:1432
8894 #, no-wrap
8895 msgid ""
8896 " findfs-uuid uuid\n"
8897 "\n"
8898 msgstr ""
8899
8900 #. type: textblock
8901 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8902 msgid ""
8903 "This command searches the filesystems and returns the one which has the "
8904 "given UUID.  An error is returned if no such filesystem can be found."
8905 msgstr ""
8906
8907 #. type: textblock
8908 #: ../fish/guestfish-actions.pod:1438
8909 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8910 msgstr ""
8911
8912 #. type: =head2
8913 #: ../fish/guestfish-actions.pod:1440
8914 msgid "fsck"
8915 msgstr ""
8916
8917 #. type: verbatim
8918 #: ../fish/guestfish-actions.pod:1442
8919 #, no-wrap
8920 msgid ""
8921 " fsck fstype device\n"
8922 "\n"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8927 msgid ""
8928 "This runs the filesystem checker (fsck) on C<device> which should have "
8929 "filesystem type C<fstype>."
8930 msgstr ""
8931
8932 #. type: textblock
8933 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8934 msgid ""
8935 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8936 "codes from C<fsck>."
8937 msgstr ""
8938
8939 #. type: textblock
8940 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8941 msgid "Multiple status codes can be summed together."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8946 msgid ""
8947 "A non-zero return code can mean \"success\", for example if errors have been "
8948 "corrected on the filesystem."
8949 msgstr ""
8950
8951 #. type: textblock
8952 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8953 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8958 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8959 msgstr ""
8960
8961 #. type: =head2
8962 #: ../fish/guestfish-actions.pod:1472
8963 msgid "get-append"
8964 msgstr ""
8965
8966 #. type: verbatim
8967 #: ../fish/guestfish-actions.pod:1474
8968 #, no-wrap
8969 msgid ""
8970 " get-append\n"
8971 "\n"
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8976 msgid ""
8977 "Return the additional kernel options which are added to the guest kernel "
8978 "command line."
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
8983 msgid "If C<NULL> then no options are added."
8984 msgstr ""
8985
8986 #. type: =head2
8987 #: ../fish/guestfish-actions.pod:1481
8988 msgid "get-attach-method"
8989 msgstr ""
8990
8991 #. type: verbatim
8992 #: ../fish/guestfish-actions.pod:1483
8993 #, no-wrap
8994 msgid ""
8995 " get-attach-method\n"
8996 "\n"
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:1485
9001 msgid "Return the current attach method.  See L</set-attach-method>."
9002 msgstr ""
9003
9004 #. type: =head2
9005 #: ../fish/guestfish-actions.pod:1487
9006 msgid "get-autosync"
9007 msgstr ""
9008
9009 #. type: verbatim
9010 #: ../fish/guestfish-actions.pod:1489
9011 #, no-wrap
9012 msgid ""
9013 " get-autosync\n"
9014 "\n"
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9019 msgid "Get the autosync flag."
9020 msgstr ""
9021
9022 #. type: =head2
9023 #: ../fish/guestfish-actions.pod:1493
9024 msgid "get-direct"
9025 msgstr ""
9026
9027 #. type: verbatim
9028 #: ../fish/guestfish-actions.pod:1495
9029 #, no-wrap
9030 msgid ""
9031 " get-direct\n"
9032 "\n"
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9037 msgid "Return the direct appliance mode flag."
9038 msgstr ""
9039
9040 #. type: =head2
9041 #: ../fish/guestfish-actions.pod:1499
9042 msgid "get-e2label"
9043 msgstr ""
9044
9045 #. type: verbatim
9046 #: ../fish/guestfish-actions.pod:1501
9047 #, no-wrap
9048 msgid ""
9049 " get-e2label device\n"
9050 "\n"
9051 msgstr ""
9052
9053 #. type: textblock
9054 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9055 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:1506
9060 msgid ""
9061 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9062 "instead."
9063 msgstr ""
9064
9065 #. type: =head2
9066 #: ../fish/guestfish-actions.pod:1513
9067 msgid "get-e2uuid"
9068 msgstr ""
9069
9070 #. type: verbatim
9071 #: ../fish/guestfish-actions.pod:1515
9072 #, no-wrap
9073 msgid ""
9074 " get-e2uuid device\n"
9075 "\n"
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9080 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:1520
9085 msgid ""
9086 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9087 "instead."
9088 msgstr ""
9089
9090 #. type: =head2
9091 #: ../fish/guestfish-actions.pod:1527
9092 msgid "get-memsize"
9093 msgstr ""
9094
9095 #. type: verbatim
9096 #: ../fish/guestfish-actions.pod:1529
9097 #, no-wrap
9098 msgid ""
9099 " get-memsize\n"
9100 "\n"
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9105 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
9106 msgstr ""
9107
9108 #. type: textblock
9109 #: ../fish/guestfish-actions.pod:1534
9110 msgid ""
9111 "If L</set-memsize> was not called on this handle, and if "
9112 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9113 "value for memsize."
9114 msgstr ""
9115
9116 #. type: textblock
9117 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595 ../fish/guestfish-actions.pod:4468 ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556 ../src/guestfs-actions.pod:6921 ../src/guestfs-actions.pod:7047
9118 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9119 msgstr ""
9120
9121 #. type: =head2
9122 #: ../fish/guestfish-actions.pod:1541
9123 msgid "get-network"
9124 msgstr ""
9125
9126 #. type: verbatim
9127 #: ../fish/guestfish-actions.pod:1543
9128 #, no-wrap
9129 msgid ""
9130 " get-network\n"
9131 "\n"
9132 msgstr ""
9133
9134 #. type: textblock
9135 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9136 msgid "This returns the enable network flag."
9137 msgstr ""
9138
9139 #. type: =head2
9140 #: ../fish/guestfish-actions.pod:1547
9141 msgid "get-path"
9142 msgstr ""
9143
9144 #. type: verbatim
9145 #: ../fish/guestfish-actions.pod:1549
9146 #, no-wrap
9147 msgid ""
9148 " get-path\n"
9149 "\n"
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9154 msgid "Return the current search path."
9155 msgstr ""
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9159 msgid ""
9160 "This is always non-NULL.  If it wasn't set already, then this will return "
9161 "the default path."
9162 msgstr ""
9163
9164 #. type: =head2
9165 #: ../fish/guestfish-actions.pod:1556
9166 msgid "get-pgroup"
9167 msgstr ""
9168
9169 #. type: verbatim
9170 #: ../fish/guestfish-actions.pod:1558
9171 #, no-wrap
9172 msgid ""
9173 " get-pgroup\n"
9174 "\n"
9175 msgstr ""
9176
9177 #. type: textblock
9178 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9179 msgid "This returns the process group flag."
9180 msgstr ""
9181
9182 #. type: =head2
9183 #: ../fish/guestfish-actions.pod:1562
9184 msgid "get-pid"
9185 msgstr ""
9186
9187 #. type: =head2
9188 #: ../fish/guestfish-actions.pod:1564
9189 msgid "pid"
9190 msgstr ""
9191
9192 #. type: verbatim
9193 #: ../fish/guestfish-actions.pod:1566
9194 #, no-wrap
9195 msgid ""
9196 " get-pid\n"
9197 "\n"
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9202 msgid ""
9203 "Return the process ID of the qemu subprocess.  If there is no qemu "
9204 "subprocess, then this will return an error."
9205 msgstr ""
9206
9207 #. type: textblock
9208 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9209 msgid "This is an internal call used for debugging and testing."
9210 msgstr ""
9211
9212 #. type: =head2
9213 #: ../fish/guestfish-actions.pod:1573
9214 msgid "get-qemu"
9215 msgstr ""
9216
9217 #. type: verbatim
9218 #: ../fish/guestfish-actions.pod:1575
9219 #, no-wrap
9220 msgid ""
9221 " get-qemu\n"
9222 "\n"
9223 msgstr ""
9224
9225 #. type: textblock
9226 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9227 msgid "Return the current qemu binary."
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9232 msgid ""
9233 "This is always non-NULL.  If it wasn't set already, then this will return "
9234 "the default qemu binary name."
9235 msgstr ""
9236
9237 #. type: =head2
9238 #: ../fish/guestfish-actions.pod:1582
9239 msgid "get-recovery-proc"
9240 msgstr ""
9241
9242 #. type: verbatim
9243 #: ../fish/guestfish-actions.pod:1584
9244 #, no-wrap
9245 msgid ""
9246 " get-recovery-proc\n"
9247 "\n"
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9252 msgid "Return the recovery process enabled flag."
9253 msgstr ""
9254
9255 #. type: =head2
9256 #: ../fish/guestfish-actions.pod:1588
9257 msgid "get-selinux"
9258 msgstr ""
9259
9260 #. type: verbatim
9261 #: ../fish/guestfish-actions.pod:1590
9262 #, no-wrap
9263 msgid ""
9264 " get-selinux\n"
9265 "\n"
9266 msgstr ""
9267
9268 #. type: textblock
9269 #: ../fish/guestfish-actions.pod:1592
9270 msgid ""
9271 "This returns the current setting of the selinux flag which is passed to the "
9272 "appliance at boot time.  See L</set-selinux>."
9273 msgstr ""
9274
9275 #. type: =head2
9276 #: ../fish/guestfish-actions.pod:1598
9277 msgid "get-smp"
9278 msgstr ""
9279
9280 #. type: verbatim
9281 #: ../fish/guestfish-actions.pod:1600
9282 #, no-wrap
9283 msgid ""
9284 " get-smp\n"
9285 "\n"
9286 msgstr ""
9287
9288 #. type: textblock
9289 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9290 msgid "This returns the number of virtual CPUs assigned to the appliance."
9291 msgstr ""
9292
9293 #. type: =head2
9294 #: ../fish/guestfish-actions.pod:1604
9295 msgid "get-state"
9296 msgstr ""
9297
9298 #. type: verbatim
9299 #: ../fish/guestfish-actions.pod:1606
9300 #, no-wrap
9301 msgid ""
9302 " get-state\n"
9303 "\n"
9304 msgstr ""
9305
9306 #. type: textblock
9307 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9308 msgid ""
9309 "This returns the current state as an opaque integer.  This is only useful "
9310 "for printing debug and internal error messages."
9311 msgstr ""
9312
9313 #. type: textblock
9314 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2574 ../fish/guestfish-actions.pod:2592 ../fish/guestfish-actions.pod:2630 ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:2582 ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4022
9315 msgid "For more information on states, see L<guestfs(3)>."
9316 msgstr ""
9317
9318 #. type: =head2
9319 #: ../fish/guestfish-actions.pod:1613
9320 msgid "get-trace"
9321 msgstr ""
9322
9323 #. type: verbatim
9324 #: ../fish/guestfish-actions.pod:1615
9325 #, no-wrap
9326 msgid ""
9327 " get-trace\n"
9328 "\n"
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9333 msgid "Return the command trace flag."
9334 msgstr ""
9335
9336 #. type: =head2
9337 #: ../fish/guestfish-actions.pod:1619
9338 msgid "get-umask"
9339 msgstr ""
9340
9341 #. type: verbatim
9342 #: ../fish/guestfish-actions.pod:1621
9343 #, no-wrap
9344 msgid ""
9345 " get-umask\n"
9346 "\n"
9347 msgstr ""
9348
9349 #. type: textblock
9350 #: ../fish/guestfish-actions.pod:1623
9351 msgid ""
9352 "Return the current umask.  By default the umask is C<022> unless it has been "
9353 "set by calling L</umask>."
9354 msgstr ""
9355
9356 #. type: =head2
9357 #: ../fish/guestfish-actions.pod:1626
9358 msgid "get-verbose"
9359 msgstr ""
9360
9361 #. type: verbatim
9362 #: ../fish/guestfish-actions.pod:1628
9363 #, no-wrap
9364 msgid ""
9365 " get-verbose\n"
9366 "\n"
9367 msgstr ""
9368
9369 #. type: textblock
9370 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9371 msgid "This returns the verbose messages flag."
9372 msgstr ""
9373
9374 #. type: =head2
9375 #: ../fish/guestfish-actions.pod:1632
9376 msgid "getcon"
9377 msgstr ""
9378
9379 #. type: verbatim
9380 #: ../fish/guestfish-actions.pod:1634
9381 #, no-wrap
9382 msgid ""
9383 " getcon\n"
9384 "\n"
9385 msgstr ""
9386
9387 #. type: textblock
9388 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9389 msgid "This gets the SELinux security context of the daemon."
9390 msgstr ""
9391
9392 #. type: textblock
9393 #: ../fish/guestfish-actions.pod:1638
9394 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9395 msgstr ""
9396
9397 #. type: =head2
9398 #: ../fish/guestfish-actions.pod:1641
9399 msgid "getxattr"
9400 msgstr ""
9401
9402 #. type: verbatim
9403 #: ../fish/guestfish-actions.pod:1643
9404 #, no-wrap
9405 msgid ""
9406 " getxattr path name\n"
9407 "\n"
9408 msgstr ""
9409
9410 #. type: textblock
9411 #: ../fish/guestfish-actions.pod:1645
9412 msgid ""
9413 "Get a single extended attribute from file C<path> named C<name>.  This call "
9414 "follows symlinks.  If you want to lookup an extended attribute for the "
9415 "symlink itself, use L</lgetxattr>."
9416 msgstr ""
9417
9418 #. type: textblock
9419 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2719
9420 msgid ""
9421 "Normally it is better to get all extended attributes from a file in one go "
9422 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9423 "buggy and do not provide a way to list out attributes.  For these "
9424 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9425 "attributes you want in advance and call this function."
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4155
9430 msgid ""
9431 "Extended attribute values are blobs of binary data.  If there is no extended "
9432 "attribute named C<name>, this returns an error."
9433 msgstr ""
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1659
9437 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9438 msgstr ""
9439
9440 #. type: =head2
9441 #: ../fish/guestfish-actions.pod:1661
9442 msgid "getxattrs"
9443 msgstr ""
9444
9445 #. type: verbatim
9446 #: ../fish/guestfish-actions.pod:1663
9447 #, no-wrap
9448 msgid ""
9449 " getxattrs path\n"
9450 "\n"
9451 msgstr ""
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9455 msgid "This call lists the extended attributes of the file or directory C<path>."
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9460 msgid ""
9461 "At the system call level, this is a combination of the L<listxattr(2)> and "
9462 "L<getxattr(2)> calls."
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:1671
9467 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9468 msgstr ""
9469
9470 #. type: =head2
9471 #: ../fish/guestfish-actions.pod:1673
9472 msgid "glob-expand"
9473 msgstr ""
9474
9475 #. type: verbatim
9476 #: ../fish/guestfish-actions.pod:1675
9477 #, no-wrap
9478 msgid ""
9479 " glob-expand pattern\n"
9480 "\n"
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9485 msgid ""
9486 "This command searches for all the pathnames matching C<pattern> according to "
9487 "the wildcard expansion rules used by the shell."
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9492 msgid "If no paths match, then this returns an empty list (note: not an error)."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9497 msgid ""
9498 "It is just a wrapper around the C L<glob(3)> function with flags "
9499 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9500 msgstr ""
9501
9502 #. type: =head2
9503 #: ../fish/guestfish-actions.pod:1688
9504 msgid "grep"
9505 msgstr ""
9506
9507 #. type: verbatim
9508 #: ../fish/guestfish-actions.pod:1690
9509 #, no-wrap
9510 msgid ""
9511 " grep regex path\n"
9512 "\n"
9513 msgstr ""
9514
9515 #. type: textblock
9516 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9517 msgid "This calls the external C<grep> program and returns the matching lines."
9518 msgstr ""
9519
9520 #. type: =head2
9521 #: ../fish/guestfish-actions.pod:1698
9522 msgid "grepi"
9523 msgstr ""
9524
9525 #. type: verbatim
9526 #: ../fish/guestfish-actions.pod:1700
9527 #, no-wrap
9528 msgid ""
9529 " grepi regex path\n"
9530 "\n"
9531 msgstr ""
9532
9533 #. type: textblock
9534 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9535 msgid "This calls the external C<grep -i> program and returns the matching lines."
9536 msgstr ""
9537
9538 #. type: =head2
9539 #: ../fish/guestfish-actions.pod:1708
9540 msgid "grub-install"
9541 msgstr ""
9542
9543 #. type: verbatim
9544 #: ../fish/guestfish-actions.pod:1710
9545 #, no-wrap
9546 msgid ""
9547 " grub-install root device\n"
9548 "\n"
9549 msgstr ""
9550
9551 #. type: textblock
9552 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9553 msgid ""
9554 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9555 "with the root directory being C<root>."
9556 msgstr ""
9557
9558 #. type: textblock
9559 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9560 msgid ""
9561 "There is currently no way in the API to install grub2, which is used by most "
9562 "modern Linux guests.  It is possible to run the grub2 command from the "
9563 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9568 msgid ""
9569 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9570 "compatible with itself, so this only works in rather narrow circumstances.  "
9571 "Careful testing with each guest version is advisable."
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9576 msgid ""
9577 "If grub-install reports the error \"No suitable drive was found in the "
9578 "generated device map.\" it may be that you need to create a "
9579 "C</boot/grub/device.map> file first that contains the mapping between grub "
9580 "device names and Linux device names.  It is usually sufficient to create a "
9581 "file containing:"
9582 msgstr ""
9583
9584 #. type: verbatim
9585 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9586 #, no-wrap
9587 msgid ""
9588 " (hd0) /dev/vda\n"
9589 "\n"
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9594 msgid "replacing C</dev/vda> with the name of the installation device."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../fish/guestfish-actions.pod:1748
9599 msgid "head"
9600 msgstr ""
9601
9602 #. type: verbatim
9603 #: ../fish/guestfish-actions.pod:1750
9604 #, no-wrap
9605 msgid ""
9606 " head path\n"
9607 "\n"
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9612 msgid ""
9613 "This command returns up to the first 10 lines of a file as a list of "
9614 "strings."
9615 msgstr ""
9616
9617 #. type: =head2
9618 #: ../fish/guestfish-actions.pod:1758
9619 msgid "head-n"
9620 msgstr ""
9621
9622 #. type: verbatim
9623 #: ../fish/guestfish-actions.pod:1760
9624 #, no-wrap
9625 msgid ""
9626 " head-n nrlines path\n"
9627 "\n"
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9632 msgid ""
9633 "If the parameter C<nrlines> is a positive number, this returns the first "
9634 "C<nrlines> lines of the file C<path>."
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9639 msgid ""
9640 "If the parameter C<nrlines> is a negative number, this returns lines from "
9641 "the file C<path>, excluding the last C<nrlines> lines."
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7626
9646 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9647 msgstr ""
9648
9649 #. type: =head2
9650 #: ../fish/guestfish-actions.pod:1773
9651 msgid "hexdump"
9652 msgstr ""
9653
9654 #. type: verbatim
9655 #: ../fish/guestfish-actions.pod:1775
9656 #, no-wrap
9657 msgid ""
9658 " hexdump path\n"
9659 "\n"
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9664 msgid ""
9665 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9666 "human-readable, canonical hex dump of the file."
9667 msgstr ""
9668
9669 #. type: =head2
9670 #: ../fish/guestfish-actions.pod:1783
9671 msgid "initrd-cat"
9672 msgstr ""
9673
9674 #. type: verbatim
9675 #: ../fish/guestfish-actions.pod:1785
9676 #, no-wrap
9677 msgid ""
9678 " initrd-cat initrdpath filename\n"
9679 "\n"
9680 msgstr ""
9681
9682 #. type: textblock
9683 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9684 msgid ""
9685 "This command unpacks the file C<filename> from the initrd file called "
9686 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9687 "character."
9688 msgstr ""
9689
9690 #. type: textblock
9691 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9692 msgid ""
9693 "For example, in guestfish you could use the following command to examine the "
9694 "boot script (usually called C</init>)  contained in a Linux initrd or "
9695 "initramfs image:"
9696 msgstr ""
9697
9698 #. type: verbatim
9699 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9700 #, no-wrap
9701 msgid ""
9702 " initrd-cat /boot/initrd-<version>.img init\n"
9703 "\n"
9704 msgstr ""
9705
9706 #. type: textblock
9707 #: ../fish/guestfish-actions.pod:1797
9708 msgid "See also L</initrd-list>."
9709 msgstr ""
9710
9711 #. type: =head2
9712 #: ../fish/guestfish-actions.pod:1802
9713 msgid "initrd-list"
9714 msgstr ""
9715
9716 #. type: verbatim
9717 #: ../fish/guestfish-actions.pod:1804
9718 #, no-wrap
9719 msgid ""
9720 " initrd-list path\n"
9721 "\n"
9722 msgstr ""
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9726 msgid "This command lists out files contained in an initrd."
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9731 msgid ""
9732 "The files are listed without any initial C</> character.  The files are "
9733 "listed in the order they appear (not necessarily alphabetical).  Directory "
9734 "names are listed as separate items."
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9739 msgid ""
9740 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9741 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9742 "files)."
9743 msgstr ""
9744
9745 #. type: =head2
9746 #: ../fish/guestfish-actions.pod:1816
9747 msgid "inotify-add-watch"
9748 msgstr ""
9749
9750 #. type: verbatim
9751 #: ../fish/guestfish-actions.pod:1818
9752 #, no-wrap
9753 msgid ""
9754 " inotify-add-watch path mask\n"
9755 "\n"
9756 msgstr ""
9757
9758 #. type: textblock
9759 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9760 msgid "Watch C<path> for the events listed in C<mask>."
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9765 msgid ""
9766 "Note that if C<path> is a directory then events within that directory are "
9767 "watched, but this does I<not> happen recursively (in subdirectories)."
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9772 msgid ""
9773 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9774 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9775 msgstr ""
9776
9777 #. type: =head2
9778 #: ../fish/guestfish-actions.pod:1830
9779 msgid "inotify-close"
9780 msgstr ""
9781
9782 #. type: verbatim
9783 #: ../fish/guestfish-actions.pod:1832
9784 #, no-wrap
9785 msgid ""
9786 " inotify-close\n"
9787 "\n"
9788 msgstr ""
9789
9790 #. type: textblock
9791 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9792 msgid ""
9793 "This closes the inotify handle which was previously opened by inotify_init.  "
9794 "It removes all watches, throws away any pending events, and deallocates all "
9795 "resources."
9796 msgstr ""
9797
9798 #. type: =head2
9799 #: ../fish/guestfish-actions.pod:1838
9800 msgid "inotify-files"
9801 msgstr ""
9802
9803 #. type: verbatim
9804 #: ../fish/guestfish-actions.pod:1840
9805 #, no-wrap
9806 msgid ""
9807 " inotify-files\n"
9808 "\n"
9809 msgstr ""
9810
9811 #. type: textblock
9812 #: ../fish/guestfish-actions.pod:1842
9813 msgid ""
9814 "This function is a helpful wrapper around L</inotify-read> which just "
9815 "returns a list of pathnames of objects that were touched.  The returned "
9816 "pathnames are sorted and deduplicated."
9817 msgstr ""
9818
9819 #. type: =head2
9820 #: ../fish/guestfish-actions.pod:1846
9821 msgid "inotify-init"
9822 msgstr ""
9823
9824 #. type: verbatim
9825 #: ../fish/guestfish-actions.pod:1848
9826 #, no-wrap
9827 msgid ""
9828 " inotify-init maxevents\n"
9829 "\n"
9830 msgstr ""
9831
9832 #. type: textblock
9833 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9834 msgid ""
9835 "This command creates a new inotify handle.  The inotify subsystem can be "
9836 "used to notify events which happen to objects in the guest filesystem."
9837 msgstr ""
9838
9839 #. type: textblock
9840 #: ../fish/guestfish-actions.pod:1854
9841 msgid ""
9842 "C<maxevents> is the maximum number of events which will be queued up between "
9843 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9844 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9845 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9846 "but records the fact that it threw them away by setting a flag "
9847 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9848 msgstr ""
9849
9850 #. type: textblock
9851 #: ../fish/guestfish-actions.pod:1864
9852 msgid ""
9853 "Before any events are generated, you have to add some watches to the "
9854 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9855 "L</inotify-watch-all>."
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:1870
9860 msgid ""
9861 "Queued up events should be read periodically by calling L</inotify-read> (or "
9862 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9863 "If you don't read the events out often enough then you risk the internal "
9864 "queue overflowing."
9865 msgstr ""
9866
9867 #. type: textblock
9868 #: ../fish/guestfish-actions.pod:1877
9869 msgid ""
9870 "The handle should be closed after use by calling L</inotify-close>.  This "
9871 "also removes any watches automatically."
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9876 msgid ""
9877 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9878 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9879 "that there is one global inotify handle per libguestfs instance."
9880 msgstr ""
9881
9882 #. type: =head2
9883 #: ../fish/guestfish-actions.pod:1886
9884 msgid "inotify-read"
9885 msgstr ""
9886
9887 #. type: verbatim
9888 #: ../fish/guestfish-actions.pod:1888
9889 #, no-wrap
9890 msgid ""
9891 " inotify-read\n"
9892 "\n"
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9897 msgid ""
9898 "Return the complete queue of events that have happened since the previous "
9899 "read call."
9900 msgstr ""
9901
9902 #. type: textblock
9903 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
9904 msgid "If no events have happened, this returns an empty list."
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
9909 msgid ""
9910 "I<Note>: In order to make sure that all events have been read, you must call "
9911 "this function repeatedly until it returns an empty list.  The reason is that "
9912 "the call will read events up to the maximum appliance-to-host message size "
9913 "and leave remaining events in the queue."
9914 msgstr ""
9915
9916 #. type: =head2
9917 #: ../fish/guestfish-actions.pod:1901
9918 msgid "inotify-rm-watch"
9919 msgstr ""
9920
9921 #. type: verbatim
9922 #: ../fish/guestfish-actions.pod:1903
9923 #, no-wrap
9924 msgid ""
9925 " inotify-rm-watch wd\n"
9926 "\n"
9927 msgstr ""
9928
9929 #. type: textblock
9930 #: ../fish/guestfish-actions.pod:1905
9931 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9932 msgstr ""
9933
9934 #. type: =head2
9935 #: ../fish/guestfish-actions.pod:1908
9936 msgid "inspect-get-arch"
9937 msgstr ""
9938
9939 #. type: verbatim
9940 #: ../fish/guestfish-actions.pod:1910
9941 #, no-wrap
9942 msgid ""
9943 " inspect-get-arch root\n"
9944 "\n"
9945 msgstr ""
9946
9947 #. type: textblock
9948 #: ../fish/guestfish-actions.pod:1912
9949 msgid ""
9950 "This returns the architecture of the inspected operating system.  The "
9951 "possible return values are listed under L</file-architecture>."
9952 msgstr ""
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
9956 msgid ""
9957 "If the architecture could not be determined, then the string C<unknown> is "
9958 "returned."
9959 msgstr ""
9960
9961 #. type: textblock
9962 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014 ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105 ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286 ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:2379 ../fish/guestfish-actions.pod:2392 ../fish/guestfish-actions.pod:2402 ../fish/guestfish-actions.pod:2412 ../fish/guestfish-actions.pod:2424 ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2554 ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254 ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404 ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516 ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:3658 ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:3831 ../src/guestfs-actions.pod:3872
9963 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9964 msgstr ""
9965
9966 #. type: =head2
9967 #: ../fish/guestfish-actions.pod:1921
9968 msgid "inspect-get-distro"
9969 msgstr ""
9970
9971 #. type: verbatim
9972 #: ../fish/guestfish-actions.pod:1923
9973 #, no-wrap
9974 msgid ""
9975 " inspect-get-distro root\n"
9976 "\n"
9977 msgstr ""
9978
9979 #. type: textblock
9980 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
9981 msgid "This returns the distro (distribution) of the inspected operating system."
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
9986 msgid "Currently defined distros are:"
9987 msgstr ""
9988
9989 #. type: =item
9990 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
9991 msgid "\"archlinux\""
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
9996 msgid "Arch Linux."
9997 msgstr ""
9998
9999 #. type: =item
10000 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10001 msgid "\"centos\""
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10006 msgid "CentOS."
10007 msgstr ""
10008
10009 #. type: =item
10010 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10011 msgid "\"debian\""
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10016 msgid "Debian."
10017 msgstr ""
10018
10019 #. type: =item
10020 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10021 msgid "\"fedora\""
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10026 msgid "Fedora."
10027 msgstr ""
10028
10029 #. type: =item
10030 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10031 msgid "\"gentoo\""
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10036 msgid "Gentoo."
10037 msgstr ""
10038
10039 #. type: =item
10040 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10041 msgid "\"linuxmint\""
10042 msgstr ""
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10046 msgid "Linux Mint."
10047 msgstr ""
10048
10049 #. type: =item
10050 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10051 msgid "\"mageia\""
10052 msgstr ""
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10056 msgid "Mageia."
10057 msgstr ""
10058
10059 #. type: =item
10060 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10061 msgid "\"mandriva\""
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10066 msgid "Mandriva."
10067 msgstr ""
10068
10069 #. type: =item
10070 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10071 msgid "\"meego\""
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10076 msgid "MeeGo."
10077 msgstr ""
10078
10079 #. type: =item
10080 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10081 msgid "\"opensuse\""
10082 msgstr ""
10083
10084 #. type: textblock
10085 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10086 msgid "OpenSUSE."
10087 msgstr ""
10088
10089 #. type: =item
10090 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10091 msgid "\"pardus\""
10092 msgstr ""
10093
10094 #. type: textblock
10095 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10096 msgid "Pardus."
10097 msgstr ""
10098
10099 #. type: =item
10100 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10101 msgid "\"redhat-based\""
10102 msgstr ""
10103
10104 #. type: textblock
10105 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10106 msgid "Some Red Hat-derived distro."
10107 msgstr ""
10108
10109 #. type: =item
10110 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10111 msgid "\"rhel\""
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10116 msgid "Red Hat Enterprise Linux."
10117 msgstr ""
10118
10119 #. type: =item
10120 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10121 msgid "\"scientificlinux\""
10122 msgstr ""
10123
10124 #. type: textblock
10125 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10126 msgid "Scientific Linux."
10127 msgstr ""
10128
10129 #. type: =item
10130 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10131 msgid "\"slackware\""
10132 msgstr ""
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10136 msgid "Slackware."
10137 msgstr ""
10138
10139 #. type: =item
10140 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10141 msgid "\"ttylinux\""
10142 msgstr ""
10143
10144 #. type: textblock
10145 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10146 msgid "ttylinux."
10147 msgstr ""
10148
10149 #. type: =item
10150 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10151 msgid "\"ubuntu\""
10152 msgstr ""
10153
10154 #. type: textblock
10155 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10156 msgid "Ubuntu."
10157 msgstr ""
10158
10159 #. type: =item
10160 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084 ../fish/guestfish-actions.pod:2357 ../src/guestfs-actions.pod:3136 ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3629
10161 msgid "\"unknown\""
10162 msgstr ""
10163
10164 #. type: textblock
10165 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10166 msgid "The distro could not be determined."
10167 msgstr ""
10168
10169 #. type: =item
10170 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10171 msgid "\"windows\""
10172 msgstr ""
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10176 msgid ""
10177 "Windows does not have distributions.  This string is returned if the OS type "
10178 "is Windows."
10179 msgstr ""
10180
10181 #. type: textblock
10182 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090 ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3635
10183 msgid ""
10184 "Future versions of libguestfs may return other strings here.  The caller "
10185 "should be prepared to handle any string."
10186 msgstr ""
10187
10188 #. type: =head2
10189 #: ../fish/guestfish-actions.pod:2016
10190 msgid "inspect-get-drive-mappings"
10191 msgstr ""
10192
10193 #. type: verbatim
10194 #: ../fish/guestfish-actions.pod:2018
10195 #, no-wrap
10196 msgid ""
10197 " inspect-get-drive-mappings root\n"
10198 "\n"
10199 msgstr ""
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10203 msgid ""
10204 "This call is useful for Windows which uses a primitive system of assigning "
10205 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10206 "Windows Registry to find out how disks/partitions are mapped to drive "
10207 "letters, and returns a hash table as in the example below:"
10208 msgstr ""
10209
10210 #. type: verbatim
10211 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10212 #, no-wrap
10213 msgid ""
10214 " C      =>     /dev/vda2\n"
10215 " E      =>     /dev/vdb1\n"
10216 " F      =>     /dev/vdc1\n"
10217 "\n"
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10222 msgid ""
10223 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10224 "and just contains the drive letter, without the customary colon separator "
10225 "character."
10226 msgstr ""
10227
10228 #. type: textblock
10229 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10230 msgid ""
10231 "In future we may support other operating systems that also used drive "
10232 "letters, but the keys for those might not be case insensitive and might be "
10233 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10234 "C<h1> etc."
10235 msgstr ""
10236
10237 #. type: textblock
10238 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10239 msgid ""
10240 "For Windows guests, currently only hard drive mappings are returned.  "
10241 "Removable disks (eg. DVD-ROMs) are ignored."
10242 msgstr ""
10243
10244 #. type: textblock
10245 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10246 msgid ""
10247 "For guests that do not use drive mappings, or if the drive mappings could "
10248 "not be determined, this returns an empty hash table."
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../fish/guestfish-actions.pod:2045
10253 msgid ""
10254 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10255 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
10256 msgstr ""
10257
10258 #. type: =head2
10259 #: ../fish/guestfish-actions.pod:2049
10260 msgid "inspect-get-filesystems"
10261 msgstr ""
10262
10263 #. type: verbatim
10264 #: ../fish/guestfish-actions.pod:2051
10265 #, no-wrap
10266 msgid ""
10267 " inspect-get-filesystems root\n"
10268 "\n"
10269 msgstr ""
10270
10271 #. type: textblock
10272 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10273 msgid ""
10274 "This returns a list of all the filesystems that we think are associated with "
10275 "this operating system.  This includes the root filesystem, other ordinary "
10276 "filesystems, and non-mounted devices like swap partitions."
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10281 msgid ""
10282 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10283 "to be shared between operating systems."
10284 msgstr ""
10285
10286 #. type: textblock
10287 #: ../fish/guestfish-actions.pod:2061
10288 msgid ""
10289 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10290 "L</inspect-get-mountpoints>."
10291 msgstr ""
10292
10293 #. type: =head2
10294 #: ../fish/guestfish-actions.pod:2064
10295 msgid "inspect-get-format"
10296 msgstr ""
10297
10298 #. type: verbatim
10299 #: ../fish/guestfish-actions.pod:2066
10300 #, no-wrap
10301 msgid ""
10302 " inspect-get-format root\n"
10303 "\n"
10304 msgstr ""
10305
10306 #. type: textblock
10307 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10308 msgid ""
10309 "This returns the format of the inspected operating system.  You can use it "
10310 "to detect install images, live CDs and similar."
10311 msgstr ""
10312
10313 #. type: textblock
10314 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10315 msgid "Currently defined formats are:"
10316 msgstr ""
10317
10318 #. type: =item
10319 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10320 msgid "\"installed\""
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10325 msgid "This is an installed operating system."
10326 msgstr ""
10327
10328 #. type: =item
10329 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10330 msgid "\"installer\""
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10335 msgid ""
10336 "The disk image being inspected is not an installed operating system, but a "
10337 "I<bootable> install disk, live CD, or similar."
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10342 msgid "The format of this disk image is not known."
10343 msgstr ""
10344
10345 #. type: =head2
10346 #: ../fish/guestfish-actions.pod:2095
10347 msgid "inspect-get-hostname"
10348 msgstr ""
10349
10350 #. type: verbatim
10351 #: ../fish/guestfish-actions.pod:2097
10352 #, no-wrap
10353 msgid ""
10354 " inspect-get-hostname root\n"
10355 "\n"
10356 msgstr ""
10357
10358 #. type: textblock
10359 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10360 msgid ""
10361 "This function returns the hostname of the operating system as found by "
10362 "inspection of the guest's configuration files."
10363 msgstr ""
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10367 msgid ""
10368 "If the hostname could not be determined, then the string C<unknown> is "
10369 "returned."
10370 msgstr ""
10371
10372 #. type: =head2
10373 #: ../fish/guestfish-actions.pod:2107
10374 msgid "inspect-get-icon"
10375 msgstr ""
10376
10377 #. type: verbatim
10378 #: ../fish/guestfish-actions.pod:2109
10379 #, no-wrap
10380 msgid ""
10381 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10382 "\n"
10383 msgstr ""
10384
10385 #. type: textblock
10386 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10387 msgid ""
10388 "This function returns an icon corresponding to the inspected operating "
10389 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10390 "to PNG if necessary)."
10391 msgstr ""
10392
10393 #. type: textblock
10394 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10395 msgid ""
10396 "If it was not possible to get an icon this function returns a zero-length "
10397 "(non-NULL) buffer.  I<Callers must check for this case>."
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10402 msgid ""
10403 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10404 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10405 "this file will be returned.  You can disable favicons by passing the "
10406 "optional C<favicon> boolean as false (default is true)."
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10411 msgid ""
10412 "If finding the favicon fails, then we look in other places in the guest for "
10413 "a suitable icon."
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10418 msgid ""
10419 "If the optional C<highquality> boolean is true then only high quality icons "
10420 "are returned, which means only icons of high resolution with an alpha "
10421 "channel.  The default (false) is to return any icon we can, even if it is of "
10422 "substandard quality."
10423 msgstr ""
10424
10425 #. type: textblock
10426 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10427 msgid ""
10428 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10429 "before you call this, since it needs to read information from the guest "
10430 "filesystem during the call."
10431 msgstr ""
10432
10433 #. type: textblock
10434 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10435 msgid ""
10436 "B<Security:> The icon data comes from the untrusted guest, and should be "
10437 "treated with caution.  PNG files have been known to contain exploits.  "
10438 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10439 "trying to process or display the icon."
10440 msgstr ""
10441
10442 #. type: textblock
10443 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10444 msgid ""
10445 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10446 "tries to return the largest, highest quality icon available.  The "
10447 "application must scale the icon to the required size."
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10452 msgid ""
10453 "Extracting icons from Windows guests requires the external C<wrestool> "
10454 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10455 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10456 "installed separately."
10457 msgstr ""
10458
10459 #. type: textblock
10460 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10461 msgid ""
10462 "Operating system icons are usually trademarks.  Seek legal advice before "
10463 "using trademarks in applications."
10464 msgstr ""
10465
10466 #. type: =head2
10467 #: ../fish/guestfish-actions.pod:2173
10468 msgid "inspect-get-major-version"
10469 msgstr ""
10470
10471 #. type: verbatim
10472 #: ../fish/guestfish-actions.pod:2175
10473 #, no-wrap
10474 msgid ""
10475 " inspect-get-major-version root\n"
10476 "\n"
10477 msgstr ""
10478
10479 #. type: textblock
10480 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10481 msgid "This returns the major version number of the inspected operating system."
10482 msgstr ""
10483
10484 #. type: textblock
10485 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10486 msgid ""
10487 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10488 "popular public names used by the operating system.  Notably the operating "
10489 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10490 "1).  You can find out the real versions corresponding to releases of Windows "
10491 "by consulting Wikipedia or MSDN."
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198 ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10496 msgid "If the version could not be determined, then C<0> is returned."
10497 msgstr ""
10498
10499 #. type: =head2
10500 #: ../fish/guestfish-actions.pod:2191
10501 msgid "inspect-get-minor-version"
10502 msgstr ""
10503
10504 #. type: verbatim
10505 #: ../fish/guestfish-actions.pod:2193
10506 #, no-wrap
10507 msgid ""
10508 " inspect-get-minor-version root\n"
10509 "\n"
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10514 msgid "This returns the minor version number of the inspected operating system."
10515 msgstr ""
10516
10517 #. type: textblock
10518 #: ../fish/guestfish-actions.pod:2200
10519 msgid ""
10520 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10521 "L</inspect-get-major-version>."
10522 msgstr ""
10523
10524 #. type: =head2
10525 #: ../fish/guestfish-actions.pod:2203
10526 msgid "inspect-get-mountpoints"
10527 msgstr ""
10528
10529 #. type: verbatim
10530 #: ../fish/guestfish-actions.pod:2205
10531 #, no-wrap
10532 msgid ""
10533 " inspect-get-mountpoints root\n"
10534 "\n"
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10539 msgid ""
10540 "This returns a hash of where we think the filesystems associated with this "
10541 "operating system should be mounted.  Callers should note that this is at "
10542 "best an educated guess made by reading configuration files such as "
10543 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10544 "are non-existent or not mountable and callers should be prepared to handle "
10545 "or ignore failures if they try to mount them."
10546 msgstr ""
10547
10548 #. type: textblock
10549 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10550 msgid ""
10551 "Each element in the returned hashtable has a key which is the path of the "
10552 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10553 "mounted there (eg. C</dev/sda1>)."
10554 msgstr ""
10555
10556 #. type: textblock
10557 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10558 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10559 msgstr ""
10560
10561 #. type: textblock
10562 #: ../fish/guestfish-actions.pod:2224
10563 msgid ""
10564 "For operating systems like Windows which still use drive letters, this call "
10565 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10566 "information about the mapping of drive letters to partitions, see "
10567 "L</inspect-get-drive-mappings>."
10568 msgstr ""
10569
10570 #. type: textblock
10571 #: ../fish/guestfish-actions.pod:2230
10572 msgid ""
10573 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10574 "L</inspect-get-filesystems>."
10575 msgstr ""
10576
10577 #. type: =head2
10578 #: ../fish/guestfish-actions.pod:2233
10579 msgid "inspect-get-package-format"
10580 msgstr ""
10581
10582 #. type: verbatim
10583 #: ../fish/guestfish-actions.pod:2235
10584 #, no-wrap
10585 msgid ""
10586 " inspect-get-package-format root\n"
10587 "\n"
10588 msgstr ""
10589
10590 #. type: textblock
10591 #: ../fish/guestfish-actions.pod:2237
10592 msgid ""
10593 "This function and L</inspect-get-package-management> return the package "
10594 "format and package management tool used by the inspected operating system.  "
10595 "For example for Fedora these functions would return C<rpm> (package format) "
10596 "and C<yum> (package management)."
10597 msgstr ""
10598
10599 #. type: textblock
10600 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10601 msgid ""
10602 "This returns the string C<unknown> if we could not determine the package "
10603 "format I<or> if the operating system does not have a real packaging system "
10604 "(eg. Windows)."
10605 msgstr ""
10606
10607 #. type: textblock
10608 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10609 msgid ""
10610 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10611 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10612 msgstr ""
10613
10614 #. type: =head2
10615 #: ../fish/guestfish-actions.pod:2253
10616 msgid "inspect-get-package-management"
10617 msgstr ""
10618
10619 #. type: verbatim
10620 #: ../fish/guestfish-actions.pod:2255
10621 #, no-wrap
10622 msgid ""
10623 " inspect-get-package-management root\n"
10624 "\n"
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:2257
10629 msgid ""
10630 "L</inspect-get-package-format> and this function return the package format "
10631 "and package management tool used by the inspected operating system.  For "
10632 "example for Fedora these functions would return C<rpm> (package format) and "
10633 "C<yum> (package management)."
10634 msgstr ""
10635
10636 #. type: textblock
10637 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10638 msgid ""
10639 "This returns the string C<unknown> if we could not determine the package "
10640 "management tool I<or> if the operating system does not have a real packaging "
10641 "system (eg. Windows)."
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10646 msgid ""
10647 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10648 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10649 "versions of libguestfs may return other strings."
10650 msgstr ""
10651
10652 #. type: =head2
10653 #: ../fish/guestfish-actions.pod:2274
10654 msgid "inspect-get-product-name"
10655 msgstr ""
10656
10657 #. type: verbatim
10658 #: ../fish/guestfish-actions.pod:2276
10659 #, no-wrap
10660 msgid ""
10661 " inspect-get-product-name root\n"
10662 "\n"
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10667 msgid ""
10668 "This returns the product name of the inspected operating system.  The "
10669 "product name is generally some freeform string which can be displayed to the "
10670 "user, but should not be parsed by programs."
10671 msgstr ""
10672
10673 #. type: textblock
10674 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10675 msgid ""
10676 "If the product name could not be determined, then the string C<unknown> is "
10677 "returned."
10678 msgstr ""
10679
10680 #. type: =head2
10681 #: ../fish/guestfish-actions.pod:2288
10682 msgid "inspect-get-product-variant"
10683 msgstr ""
10684
10685 #. type: verbatim
10686 #: ../fish/guestfish-actions.pod:2290
10687 #, no-wrap
10688 msgid ""
10689 " inspect-get-product-variant root\n"
10690 "\n"
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10695 msgid "This returns the product variant of the inspected operating system."
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10700 msgid ""
10701 "For Windows guests, this returns the contents of the Registry key "
10702 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
10703 "which is usually a string such as C<Client> or C<Server> (other values are "
10704 "possible).  This can be used to distinguish consumer and enterprise versions "
10705 "of Windows that have the same version number (for example, Windows 7 and "
10706 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10707 "the latter is C<Server>)."
10708 msgstr ""
10709
10710 #. type: textblock
10711 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10712 msgid ""
10713 "For enterprise Linux guests, in future we intend this to return the product "
10714 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10715 "implemented at present."
10716 msgstr ""
10717
10718 #. type: textblock
10719 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10720 msgid ""
10721 "If the product variant could not be determined, then the string C<unknown> "
10722 "is returned."
10723 msgstr ""
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2311
10727 msgid ""
10728 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10729 "L</inspect-get-product-name>, L</inspect-get-major-version>."
10730 msgstr ""
10731
10732 #. type: =head2
10733 #: ../fish/guestfish-actions.pod:2315
10734 msgid "inspect-get-roots"
10735 msgstr ""
10736
10737 #. type: verbatim
10738 #: ../fish/guestfish-actions.pod:2317
10739 #, no-wrap
10740 msgid ""
10741 " inspect-get-roots\n"
10742 "\n"
10743 msgstr ""
10744
10745 #. type: textblock
10746 #: ../fish/guestfish-actions.pod:2319
10747 msgid ""
10748 "This function is a convenient way to get the list of root devices, as "
10749 "returned from a previous call to L</inspect-os>, but without redoing the "
10750 "whole inspection process."
10751 msgstr ""
10752
10753 #. type: textblock
10754 #: ../fish/guestfish-actions.pod:2323
10755 msgid ""
10756 "This returns an empty list if either no root devices were found or the "
10757 "caller has not called L</inspect-os>."
10758 msgstr ""
10759
10760 #. type: =head2
10761 #: ../fish/guestfish-actions.pod:2328
10762 msgid "inspect-get-type"
10763 msgstr ""
10764
10765 #. type: verbatim
10766 #: ../fish/guestfish-actions.pod:2330
10767 #, no-wrap
10768 msgid ""
10769 " inspect-get-type root\n"
10770 "\n"
10771 msgstr ""
10772
10773 #. type: textblock
10774 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10775 msgid ""
10776 "This returns the type of the inspected operating system.  Currently defined "
10777 "types are:"
10778 msgstr ""
10779
10780 #. type: =item
10781 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10782 msgid "\"linux\""
10783 msgstr ""
10784
10785 #. type: textblock
10786 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10787 msgid "Any Linux-based operating system."
10788 msgstr ""
10789
10790 #. type: textblock
10791 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10792 msgid "Any Microsoft Windows operating system."
10793 msgstr ""
10794
10795 #. type: =item
10796 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10797 msgid "\"freebsd\""
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10802 msgid "FreeBSD."
10803 msgstr ""
10804
10805 #. type: =item
10806 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10807 msgid "\"netbsd\""
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10812 msgid "NetBSD."
10813 msgstr ""
10814
10815 #. type: =item
10816 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3625
10817 msgid "\"hurd\""
10818 msgstr ""
10819
10820 #. type: textblock
10821 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10822 msgid "GNU/Hurd."
10823 msgstr ""
10824
10825 #. type: textblock
10826 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3631
10827 msgid "The operating system type could not be determined."
10828 msgstr ""
10829
10830 #. type: =head2
10831 #: ../fish/guestfish-actions.pod:2368
10832 msgid "inspect-get-windows-current-control-set"
10833 msgstr ""
10834
10835 #. type: verbatim
10836 #: ../fish/guestfish-actions.pod:2370
10837 #, no-wrap
10838 msgid ""
10839 " inspect-get-windows-current-control-set root\n"
10840 "\n"
10841 msgstr ""
10842
10843 #. type: textblock
10844 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3651
10845 msgid ""
10846 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10847 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10848 msgstr ""
10849
10850 #. type: textblock
10851 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3654
10852 msgid ""
10853 "This call assumes that the guest is Windows and that the Registry could be "
10854 "examined by inspection.  If this is not the case then an error is returned."
10855 msgstr ""
10856
10857 #. type: =head2
10858 #: ../fish/guestfish-actions.pod:2381
10859 msgid "inspect-get-windows-systemroot"
10860 msgstr ""
10861
10862 #. type: verbatim
10863 #: ../fish/guestfish-actions.pod:2383
10864 #, no-wrap
10865 msgid ""
10866 " inspect-get-windows-systemroot root\n"
10867 "\n"
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:2385 ../src/guestfs-actions.pod:3671
10872 msgid ""
10873 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10874 "is a directory path such as C</WINDOWS>."
10875 msgstr ""
10876
10877 #. type: textblock
10878 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3674
10879 msgid ""
10880 "This call assumes that the guest is Windows and that the systemroot could be "
10881 "determined by inspection.  If this is not the case then an error is "
10882 "returned."
10883 msgstr ""
10884
10885 #. type: =head2
10886 #: ../fish/guestfish-actions.pod:2394
10887 msgid "inspect-is-live"
10888 msgstr ""
10889
10890 #. type: verbatim
10891 #: ../fish/guestfish-actions.pod:2396
10892 #, no-wrap
10893 msgid ""
10894 " inspect-is-live root\n"
10895 "\n"
10896 msgstr ""
10897
10898 #. type: textblock
10899 #: ../fish/guestfish-actions.pod:2398
10900 msgid ""
10901 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10902 "then this returns true if a live image was detected on the disk."
10903 msgstr ""
10904
10905 #. type: =head2
10906 #: ../fish/guestfish-actions.pod:2404
10907 msgid "inspect-is-multipart"
10908 msgstr ""
10909
10910 #. type: verbatim
10911 #: ../fish/guestfish-actions.pod:2406
10912 #, no-wrap
10913 msgid ""
10914 " inspect-is-multipart root\n"
10915 "\n"
10916 msgstr ""
10917
10918 #. type: textblock
10919 #: ../fish/guestfish-actions.pod:2408
10920 msgid ""
10921 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10922 "then this returns true if the disk is part of a set."
10923 msgstr ""
10924
10925 #. type: =head2
10926 #: ../fish/guestfish-actions.pod:2414
10927 msgid "inspect-is-netinst"
10928 msgstr ""
10929
10930 #. type: verbatim
10931 #: ../fish/guestfish-actions.pod:2416
10932 #, no-wrap
10933 msgid ""
10934 " inspect-is-netinst root\n"
10935 "\n"
10936 msgstr ""
10937
10938 #. type: textblock
10939 #: ../fish/guestfish-actions.pod:2418
10940 msgid ""
10941 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10942 "then this returns true if the disk is a network installer, ie. not a "
10943 "self-contained install CD but one which is likely to require network access "
10944 "to complete the install."
10945 msgstr ""
10946
10947 #. type: =head2
10948 #: ../fish/guestfish-actions.pod:2426
10949 msgid "inspect-list-applications"
10950 msgstr ""
10951
10952 #. type: verbatim
10953 #: ../fish/guestfish-actions.pod:2428
10954 #, no-wrap
10955 msgid ""
10956 " inspect-list-applications root\n"
10957 "\n"
10958 msgstr ""
10959
10960 #. type: textblock
10961 #: ../fish/guestfish-actions.pod:2430 ../src/guestfs-actions.pod:3741
10962 msgid "Return the list of applications installed in the operating system."
10963 msgstr ""
10964
10965 #. type: textblock
10966 #: ../fish/guestfish-actions.pod:2432
10967 msgid ""
10968 "I<Note:> This call works differently from other parts of the inspection "
10969 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10970 "then mount up the disks, before calling this.  Listing applications is a "
10971 "significantly more difficult operation which requires access to the full "
10972 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10973 "are just returning data cached in the libguestfs handle, this call actually "
10974 "reads parts of the mounted filesystems during the call."
10975 msgstr ""
10976
10977 #. type: textblock
10978 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3753
10979 msgid ""
10980 "This returns an empty list if the inspection code was not able to determine "
10981 "the list of applications."
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10986 msgid "The application structure contains the following fields:"
10987 msgstr ""
10988
10989 #. type: =item
10990 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3760
10991 msgid "C<app_name>"
10992 msgstr ""
10993
10994 #. type: textblock
10995 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3762
10996 msgid ""
10997 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10998 "guests, this is the package name."
10999 msgstr ""
11000
11001 #. type: =item
11002 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3765
11003 msgid "C<app_display_name>"
11004 msgstr ""
11005
11006 #. type: textblock
11007 #: ../fish/guestfish-actions.pod:2456 ../src/guestfs-actions.pod:3767
11008 msgid ""
11009 "The display name of the application, sometimes localized to the install "
11010 "language of the guest operating system."
11011 msgstr ""
11012
11013 #. type: textblock
11014 #: ../fish/guestfish-actions.pod:2459 ../src/guestfs-actions.pod:3770
11015 msgid ""
11016 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11017 "to display something can use C<app_name> instead."
11018 msgstr ""
11019
11020 #. type: =item
11021 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3773
11022 msgid "C<app_epoch>"
11023 msgstr ""
11024
11025 #. type: textblock
11026 #: ../fish/guestfish-actions.pod:2464 ../src/guestfs-actions.pod:3775
11027 msgid ""
11028 "For package managers which use epochs, this contains the epoch of the "
11029 "package (an integer).  If unavailable, this is returned as C<0>."
11030 msgstr ""
11031
11032 #. type: =item
11033 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3778
11034 msgid "C<app_version>"
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:2469 ../src/guestfs-actions.pod:3780
11039 msgid ""
11040 "The version string of the application or package.  If unavailable this is "
11041 "returned as an empty string C<\"\">."
11042 msgstr ""
11043
11044 #. type: =item
11045 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3783
11046 msgid "C<app_release>"
11047 msgstr ""
11048
11049 #. type: textblock
11050 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11051 msgid ""
11052 "The release string of the application or package, for package managers that "
11053 "use this.  If unavailable this is returned as an empty string C<\"\">."
11054 msgstr ""
11055
11056 #. type: =item
11057 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3789
11058 msgid "C<app_install_path>"
11059 msgstr ""
11060
11061 #. type: textblock
11062 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3791
11063 msgid ""
11064 "The installation path of the application (on operating systems such as "
11065 "Windows which use installation paths).  This path is in the format used by "
11066 "the guest operating system, it is not a libguestfs path."
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11071 msgid "If unavailable this is returned as an empty string C<\"\">."
11072 msgstr ""
11073
11074 #. type: =item
11075 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3798
11076 msgid "C<app_trans_path>"
11077 msgstr ""
11078
11079 #. type: textblock
11080 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3800
11081 msgid ""
11082 "The install path translated into a libguestfs path.  If unavailable this is "
11083 "returned as an empty string C<\"\">."
11084 msgstr ""
11085
11086 #. type: =item
11087 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3803
11088 msgid "C<app_publisher>"
11089 msgstr ""
11090
11091 #. type: textblock
11092 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11093 msgid ""
11094 "The name of the publisher of the application, for package managers that use "
11095 "this.  If unavailable this is returned as an empty string C<\"\">."
11096 msgstr ""
11097
11098 #. type: =item
11099 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3809
11100 msgid "C<app_url>"
11101 msgstr ""
11102
11103 #. type: textblock
11104 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3811
11105 msgid ""
11106 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11107 "returned as an empty string C<\"\">."
11108 msgstr ""
11109
11110 #. type: =item
11111 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3814
11112 msgid "C<app_source_package>"
11113 msgstr ""
11114
11115 #. type: textblock
11116 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3816
11117 msgid ""
11118 "For packaging systems which support this, the name of the source package.  "
11119 "If unavailable this is returned as an empty string C<\"\">."
11120 msgstr ""
11121
11122 #. type: =item
11123 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3819
11124 msgid "C<app_summary>"
11125 msgstr ""
11126
11127 #. type: textblock
11128 #: ../fish/guestfish-actions.pod:2510 ../src/guestfs-actions.pod:3821
11129 msgid ""
11130 "A short (usually one line) description of the application or package.  If "
11131 "unavailable this is returned as an empty string C<\"\">."
11132 msgstr ""
11133
11134 #. type: =item
11135 #: ../fish/guestfish-actions.pod:2513 ../src/guestfs-actions.pod:3824
11136 msgid "C<app_description>"
11137 msgstr ""
11138
11139 #. type: textblock
11140 #: ../fish/guestfish-actions.pod:2515 ../src/guestfs-actions.pod:3826
11141 msgid ""
11142 "A longer description of the application or package.  If unavailable this is "
11143 "returned as an empty string C<\"\">."
11144 msgstr ""
11145
11146 #. type: =head2
11147 #: ../fish/guestfish-actions.pod:2522
11148 msgid "inspect-os"
11149 msgstr ""
11150
11151 #. type: verbatim
11152 #: ../fish/guestfish-actions.pod:2524
11153 #, no-wrap
11154 msgid ""
11155 " inspect-os\n"
11156 "\n"
11157 msgstr ""
11158
11159 #. type: textblock
11160 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11161 msgid ""
11162 "This function uses other libguestfs functions and certain heuristics to "
11163 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11164 "for operating systems."
11165 msgstr ""
11166
11167 #. type: textblock
11168 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3848
11169 msgid "The list returned is empty if no operating systems were found."
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:2532 ../src/guestfs-actions.pod:3850
11174 msgid ""
11175 "If one operating system was found, then this returns a list with a single "
11176 "element, which is the name of the root filesystem of this operating system.  "
11177 "It is also possible for this function to return a list containing more than "
11178 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11179 "element being the root filesystem of one of the operating systems."
11180 msgstr ""
11181
11182 #. type: textblock
11183 #: ../fish/guestfish-actions.pod:2539
11184 msgid ""
11185 "You can pass the root string(s) returned to other L</inspect-get-*> "
11186 "functions in order to query further information about each operating system, "
11187 "such as the name and version."
11188 msgstr ""
11189
11190 #. type: textblock
11191 #: ../fish/guestfish-actions.pod:2544
11192 msgid ""
11193 "This function uses other libguestfs features such as L</mount-ro> and "
11194 "L</umount-all> in order to mount and unmount filesystems and look at the "
11195 "contents.  This should be called with no disks currently mounted.  The "
11196 "function may also use Augeas, so any existing Augeas handle will be closed."
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3868
11201 msgid ""
11202 "This function cannot decrypt encrypted disks.  The caller must do that first "
11203 "(supplying the necessary keys) if the disk is encrypted."
11204 msgstr ""
11205
11206 #. type: textblock
11207 #: ../fish/guestfish-actions.pod:2556 ../fish/guestfish-actions.pod:2754 ../fish/guestfish-actions.pod:2819
11208 msgid "See also L</list-filesystems>."
11209 msgstr ""
11210
11211 #. type: =head2
11212 #: ../fish/guestfish-actions.pod:2558
11213 msgid "is-blockdev"
11214 msgstr ""
11215
11216 #. type: verbatim
11217 #: ../fish/guestfish-actions.pod:2560
11218 #, no-wrap
11219 msgid ""
11220 " is-blockdev path\n"
11221 "\n"
11222 msgstr ""
11223
11224 #. type: textblock
11225 #: ../fish/guestfish-actions.pod:2562 ../src/guestfs-actions.pod:3888
11226 msgid ""
11227 "This returns C<true> if and only if there is a block device with the given "
11228 "C<path> name."
11229 msgstr ""
11230
11231 #. type: textblock
11232 #: ../fish/guestfish-actions.pod:2565 ../fish/guestfish-actions.pod:2583 ../fish/guestfish-actions.pod:2602 ../fish/guestfish-actions.pod:2611 ../fish/guestfish-actions.pod:2621 ../fish/guestfish-actions.pod:2655 ../fish/guestfish-actions.pod:2664
11233 msgid "See also L</stat>."
11234 msgstr ""
11235
11236 #. type: =head2
11237 #: ../fish/guestfish-actions.pod:2567
11238 msgid "is-busy"
11239 msgstr ""
11240
11241 #. type: verbatim
11242 #: ../fish/guestfish-actions.pod:2569
11243 #, no-wrap
11244 msgid ""
11245 " is-busy\n"
11246 "\n"
11247 msgstr ""
11248
11249 #. type: textblock
11250 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3902
11251 msgid ""
11252 "This returns true iff this handle is busy processing a command (in the "
11253 "C<BUSY> state)."
11254 msgstr ""
11255
11256 #. type: =head2
11257 #: ../fish/guestfish-actions.pod:2576
11258 msgid "is-chardev"
11259 msgstr ""
11260
11261 #. type: verbatim
11262 #: ../fish/guestfish-actions.pod:2578
11263 #, no-wrap
11264 msgid ""
11265 " is-chardev path\n"
11266 "\n"
11267 msgstr ""
11268
11269 #. type: textblock
11270 #: ../fish/guestfish-actions.pod:2580 ../src/guestfs-actions.pod:3917
11271 msgid ""
11272 "This returns C<true> if and only if there is a character device with the "
11273 "given C<path> name."
11274 msgstr ""
11275
11276 #. type: =head2
11277 #: ../fish/guestfish-actions.pod:2585
11278 msgid "is-config"
11279 msgstr ""
11280
11281 #. type: verbatim
11282 #: ../fish/guestfish-actions.pod:2587
11283 #, no-wrap
11284 msgid ""
11285 " is-config\n"
11286 "\n"
11287 msgstr ""
11288
11289 #. type: textblock
11290 #: ../fish/guestfish-actions.pod:2589 ../src/guestfs-actions.pod:3931
11291 msgid ""
11292 "This returns true iff this handle is being configured (in the C<CONFIG> "
11293 "state)."
11294 msgstr ""
11295
11296 #. type: =head2
11297 #: ../fish/guestfish-actions.pod:2594
11298 msgid "is-dir"
11299 msgstr ""
11300
11301 #. type: verbatim
11302 #: ../fish/guestfish-actions.pod:2596
11303 #, no-wrap
11304 msgid ""
11305 " is-dir path\n"
11306 "\n"
11307 msgstr ""
11308
11309 #. type: textblock
11310 #: ../fish/guestfish-actions.pod:2598 ../src/guestfs-actions.pod:3946
11311 msgid ""
11312 "This returns C<true> if and only if there is a directory with the given "
11313 "C<path> name.  Note that it returns false for other objects like files."
11314 msgstr ""
11315
11316 #. type: =head2
11317 #: ../fish/guestfish-actions.pod:2604
11318 msgid "is-fifo"
11319 msgstr ""
11320
11321 #. type: verbatim
11322 #: ../fish/guestfish-actions.pod:2606
11323 #, no-wrap
11324 msgid ""
11325 " is-fifo path\n"
11326 "\n"
11327 msgstr ""
11328
11329 #. type: textblock
11330 #: ../fish/guestfish-actions.pod:2608 ../src/guestfs-actions.pod:3962
11331 msgid ""
11332 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11333 "given C<path> name."
11334 msgstr ""
11335
11336 #. type: =head2
11337 #: ../fish/guestfish-actions.pod:2613
11338 msgid "is-file"
11339 msgstr ""
11340
11341 #. type: verbatim
11342 #: ../fish/guestfish-actions.pod:2615
11343 #, no-wrap
11344 msgid ""
11345 " is-file path\n"
11346 "\n"
11347 msgstr ""
11348
11349 #. type: textblock
11350 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3977
11351 msgid ""
11352 "This returns C<true> if and only if there is a regular file with the given "
11353 "C<path> name.  Note that it returns false for other objects like "
11354 "directories."
11355 msgstr ""
11356
11357 #. type: =head2
11358 #: ../fish/guestfish-actions.pod:2623
11359 msgid "is-launching"
11360 msgstr ""
11361
11362 #. type: verbatim
11363 #: ../fish/guestfish-actions.pod:2625
11364 #, no-wrap
11365 msgid ""
11366 " is-launching\n"
11367 "\n"
11368 msgstr ""
11369
11370 #. type: textblock
11371 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:3992
11372 msgid ""
11373 "This returns true iff this handle is launching the subprocess (in the "
11374 "C<LAUNCHING> state)."
11375 msgstr ""
11376
11377 #. type: =head2
11378 #: ../fish/guestfish-actions.pod:2632
11379 msgid "is-lv"
11380 msgstr ""
11381
11382 #. type: verbatim
11383 #: ../fish/guestfish-actions.pod:2634
11384 #, no-wrap
11385 msgid ""
11386 " is-lv device\n"
11387 "\n"
11388 msgstr ""
11389
11390 #. type: textblock
11391 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:4007
11392 msgid ""
11393 "This command tests whether C<device> is a logical volume, and returns true "
11394 "iff this is the case."
11395 msgstr ""
11396
11397 #. type: =head2
11398 #: ../fish/guestfish-actions.pod:2639
11399 msgid "is-ready"
11400 msgstr ""
11401
11402 #. type: verbatim
11403 #: ../fish/guestfish-actions.pod:2641
11404 #, no-wrap
11405 msgid ""
11406 " is-ready\n"
11407 "\n"
11408 msgstr ""
11409
11410 #. type: textblock
11411 #: ../fish/guestfish-actions.pod:2643 ../src/guestfs-actions.pod:4019
11412 msgid ""
11413 "This returns true iff this handle is ready to accept commands (in the "
11414 "C<READY> state)."
11415 msgstr ""
11416
11417 #. type: =head2
11418 #: ../fish/guestfish-actions.pod:2648
11419 msgid "is-socket"
11420 msgstr ""
11421
11422 #. type: verbatim
11423 #: ../fish/guestfish-actions.pod:2650
11424 #, no-wrap
11425 msgid ""
11426 " is-socket path\n"
11427 "\n"
11428 msgstr ""
11429
11430 #. type: textblock
11431 #: ../fish/guestfish-actions.pod:2652 ../src/guestfs-actions.pod:4034
11432 msgid ""
11433 "This returns C<true> if and only if there is a Unix domain socket with the "
11434 "given C<path> name."
11435 msgstr ""
11436
11437 #. type: =head2
11438 #: ../fish/guestfish-actions.pod:2657
11439 msgid "is-symlink"
11440 msgstr ""
11441
11442 #. type: verbatim
11443 #: ../fish/guestfish-actions.pod:2659
11444 #, no-wrap
11445 msgid ""
11446 " is-symlink path\n"
11447 "\n"
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:2661 ../src/guestfs-actions.pod:4049
11452 msgid ""
11453 "This returns C<true> if and only if there is a symbolic link with the given "
11454 "C<path> name."
11455 msgstr ""
11456
11457 #. type: =head2
11458 #: ../fish/guestfish-actions.pod:2666
11459 msgid "is-zero"
11460 msgstr ""
11461
11462 #. type: verbatim
11463 #: ../fish/guestfish-actions.pod:2668
11464 #, no-wrap
11465 msgid ""
11466 " is-zero path\n"
11467 "\n"
11468 msgstr ""
11469
11470 #. type: textblock
11471 #: ../fish/guestfish-actions.pod:2670 ../src/guestfs-actions.pod:4064
11472 msgid ""
11473 "This returns true iff the file exists and the file is empty or it contains "
11474 "all zero bytes."
11475 msgstr ""
11476
11477 #. type: =head2
11478 #: ../fish/guestfish-actions.pod:2673
11479 msgid "is-zero-device"
11480 msgstr ""
11481
11482 #. type: verbatim
11483 #: ../fish/guestfish-actions.pod:2675
11484 #, no-wrap
11485 msgid ""
11486 " is-zero-device device\n"
11487 "\n"
11488 msgstr ""
11489
11490 #. type: textblock
11491 #: ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:4077
11492 msgid "This returns true iff the device exists and contains all zero bytes."
11493 msgstr ""
11494
11495 #. type: textblock
11496 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:4079
11497 msgid "Note that for large devices this can take a long time to run."
11498 msgstr ""
11499
11500 #. type: =head2
11501 #: ../fish/guestfish-actions.pod:2681
11502 msgid "kill-subprocess"
11503 msgstr ""
11504
11505 #. type: verbatim
11506 #: ../fish/guestfish-actions.pod:2683
11507 #, no-wrap
11508 msgid ""
11509 " kill-subprocess\n"
11510 "\n"
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:2685 ../src/guestfs-actions.pod:4090
11515 msgid "This kills the qemu subprocess.  You should never need to call this."
11516 msgstr ""
11517
11518 #. type: =head2
11519 #: ../fish/guestfish-actions.pod:2687
11520 msgid "launch"
11521 msgstr ""
11522
11523 #. type: =head2
11524 #: ../fish/guestfish-actions.pod:2689
11525 msgid "run"
11526 msgstr ""
11527
11528 #. type: verbatim
11529 #: ../fish/guestfish-actions.pod:2691
11530 #, no-wrap
11531 msgid ""
11532 " launch\n"
11533 "\n"
11534 msgstr ""
11535
11536 #. type: textblock
11537 #: ../fish/guestfish-actions.pod:2693 ../src/guestfs-actions.pod:4101
11538 msgid ""
11539 "Internally libguestfs is implemented by running a virtual machine using "
11540 "L<qemu(1)>."
11541 msgstr ""
11542
11543 #. type: textblock
11544 #: ../fish/guestfish-actions.pod:2696 ../src/guestfs-actions.pod:4104
11545 msgid ""
11546 "You should call this after configuring the handle (eg. adding drives) but "
11547 "before performing any actions."
11548 msgstr ""
11549
11550 #. type: =head2
11551 #: ../fish/guestfish-actions.pod:2699
11552 msgid "lchown"
11553 msgstr ""
11554
11555 #. type: verbatim
11556 #: ../fish/guestfish-actions.pod:2701
11557 #, no-wrap
11558 msgid ""
11559 " lchown owner group path\n"
11560 "\n"
11561 msgstr ""
11562
11563 #. type: textblock
11564 #: ../fish/guestfish-actions.pod:2703
11565 msgid ""
11566 "Change the file owner to C<owner> and group to C<group>.  This is like "
11567 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11568 "the target."
11569 msgstr ""
11570
11571 #. type: =head2
11572 #: ../fish/guestfish-actions.pod:2711
11573 msgid "lgetxattr"
11574 msgstr ""
11575
11576 #. type: verbatim
11577 #: ../fish/guestfish-actions.pod:2713
11578 #, no-wrap
11579 msgid ""
11580 " lgetxattr path name\n"
11581 "\n"
11582 msgstr ""
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:2715 ../src/guestfs-actions.pod:4144
11586 msgid ""
11587 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11588 "is a symlink, then this call returns an extended attribute from the symlink."
11589 msgstr ""
11590
11591 #. type: textblock
11592 #: ../fish/guestfish-actions.pod:2729
11593 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11594 msgstr ""
11595
11596 #. type: =head2
11597 #: ../fish/guestfish-actions.pod:2731
11598 msgid "lgetxattrs"
11599 msgstr ""
11600
11601 #. type: verbatim
11602 #: ../fish/guestfish-actions.pod:2733
11603 #, no-wrap
11604 msgid ""
11605 " lgetxattrs path\n"
11606 "\n"
11607 msgstr ""
11608
11609 #. type: textblock
11610 #: ../fish/guestfish-actions.pod:2735
11611 msgid ""
11612 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11613 "it returns the extended attributes of the link itself."
11614 msgstr ""
11615
11616 #. type: =head2
11617 #: ../fish/guestfish-actions.pod:2739
11618 msgid "list-9p"
11619 msgstr ""
11620
11621 #. type: verbatim
11622 #: ../fish/guestfish-actions.pod:2741
11623 #, no-wrap
11624 msgid ""
11625 " list-9p\n"
11626 "\n"
11627 msgstr ""
11628
11629 #. type: textblock
11630 #: ../fish/guestfish-actions.pod:2743 ../src/guestfs-actions.pod:4187
11631 msgid ""
11632 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11633 "returned."
11634 msgstr ""
11635
11636 #. type: =head2
11637 #: ../fish/guestfish-actions.pod:2746
11638 msgid "list-devices"
11639 msgstr ""
11640
11641 #. type: verbatim
11642 #: ../fish/guestfish-actions.pod:2748
11643 #, no-wrap
11644 msgid ""
11645 " list-devices\n"
11646 "\n"
11647 msgstr ""
11648
11649 #. type: textblock
11650 #: ../fish/guestfish-actions.pod:2750 ../src/guestfs-actions.pod:4201
11651 msgid "List all the block devices."
11652 msgstr ""
11653
11654 #. type: textblock
11655 #: ../fish/guestfish-actions.pod:2752 ../src/guestfs-actions.pod:4203
11656 msgid "The full block device names are returned, eg. C</dev/sda>."
11657 msgstr ""
11658
11659 #. type: =head2
11660 #: ../fish/guestfish-actions.pod:2756
11661 msgid "list-dm-devices"
11662 msgstr ""
11663
11664 #. type: verbatim
11665 #: ../fish/guestfish-actions.pod:2758
11666 #, no-wrap
11667 msgid ""
11668 " list-dm-devices\n"
11669 "\n"
11670 msgstr ""
11671
11672 #. type: textblock
11673 #: ../fish/guestfish-actions.pod:2760 ../src/guestfs-actions.pod:4218
11674 msgid "List all device mapper devices."
11675 msgstr ""
11676
11677 #. type: textblock
11678 #: ../fish/guestfish-actions.pod:2762
11679 msgid ""
11680 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11681 "previous call to L</luks-open>."
11682 msgstr ""
11683
11684 #. type: textblock
11685 #: ../fish/guestfish-actions.pod:2765
11686 msgid ""
11687 "Device mapper devices which correspond to logical volumes are I<not> "
11688 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11689 msgstr ""
11690
11691 #. type: =head2
11692 #: ../fish/guestfish-actions.pod:2769
11693 msgid "list-filesystems"
11694 msgstr ""
11695
11696 #. type: verbatim
11697 #: ../fish/guestfish-actions.pod:2771
11698 #, no-wrap
11699 msgid ""
11700 " list-filesystems\n"
11701 "\n"
11702 msgstr ""
11703
11704 #. type: textblock
11705 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11706 msgid ""
11707 "This inspection command looks for filesystems on partitions, block devices "
11708 "and logical volumes, returning a list of devices containing filesystems and "
11709 "their type."
11710 msgstr ""
11711
11712 #. type: textblock
11713 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11714 msgid ""
11715 "The return value is a hash, where the keys are the devices containing "
11716 "filesystems, and the values are the filesystem types.  For example:"
11717 msgstr ""
11718
11719 #. type: verbatim
11720 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4246
11721 #, no-wrap
11722 msgid ""
11723 " \"/dev/sda1\" => \"ntfs\"\n"
11724 " \"/dev/sda2\" => \"ext2\"\n"
11725 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11726 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11727 "\n"
11728 msgstr ""
11729
11730 #. type: textblock
11731 #: ../fish/guestfish-actions.pod:2786 ../src/guestfs-actions.pod:4251
11732 msgid ""
11733 "The value can have the special value \"unknown\", meaning the content of the "
11734 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11735 msgstr ""
11736
11737 #. type: textblock
11738 #: ../fish/guestfish-actions.pod:2790
11739 msgid ""
11740 "This command runs other libguestfs commands, which might include L</mount> "
11741 "and L</umount>, and therefore you should use this soon after launch and only "
11742 "when nothing is mounted."
11743 msgstr ""
11744
11745 #. type: textblock
11746 #: ../fish/guestfish-actions.pod:2794
11747 msgid ""
11748 "Not all of the filesystems returned will be mountable.  In particular, swap "
11749 "partitions are returned in the list.  Also this command does not check that "
11750 "each filesystem found is valid and mountable, and some filesystems might be "
11751 "mountable but require special options.  Filesystems may not all belong to a "
11752 "single logical operating system (use L</inspect-os> to look for OSes)."
11753 msgstr ""
11754
11755 #. type: =head2
11756 #: ../fish/guestfish-actions.pod:2802
11757 msgid "list-md-devices"
11758 msgstr ""
11759
11760 #. type: verbatim
11761 #: ../fish/guestfish-actions.pod:2804
11762 #, no-wrap
11763 msgid ""
11764 " list-md-devices\n"
11765 "\n"
11766 msgstr ""
11767
11768 #. type: textblock
11769 #: ../fish/guestfish-actions.pod:2806 ../src/guestfs-actions.pod:4280
11770 msgid "List all Linux md devices."
11771 msgstr ""
11772
11773 #. type: =head2
11774 #: ../fish/guestfish-actions.pod:2808
11775 msgid "list-partitions"
11776 msgstr ""
11777
11778 #. type: verbatim
11779 #: ../fish/guestfish-actions.pod:2810
11780 #, no-wrap
11781 msgid ""
11782 " list-partitions\n"
11783 "\n"
11784 msgstr ""
11785
11786 #. type: textblock
11787 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4293
11788 msgid "List all the partitions detected on all block devices."
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../fish/guestfish-actions.pod:2814 ../src/guestfs-actions.pod:4295
11793 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11794 msgstr ""
11795
11796 #. type: textblock
11797 #: ../fish/guestfish-actions.pod:2816
11798 msgid ""
11799 "This does not return logical volumes.  For that you will need to call "
11800 "L</lvs>."
11801 msgstr ""
11802
11803 #. type: =head2
11804 #: ../fish/guestfish-actions.pod:2821
11805 msgid "ll"
11806 msgstr ""
11807
11808 #. type: verbatim
11809 #: ../fish/guestfish-actions.pod:2823
11810 #, no-wrap
11811 msgid ""
11812 " ll directory\n"
11813 "\n"
11814 msgstr ""
11815
11816 #. type: textblock
11817 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4314
11818 msgid ""
11819 "List the files in C<directory> (relative to the root directory, there is no "
11820 "cwd) in the format of 'ls -la'."
11821 msgstr ""
11822
11823 #. type: textblock
11824 #: ../fish/guestfish-actions.pod:2828 ../src/guestfs-actions.pod:4317
11825 msgid ""
11826 "This command is mostly useful for interactive sessions.  It is I<not> "
11827 "intended that you try to parse the output string."
11828 msgstr ""
11829
11830 #. type: =head2
11831 #: ../fish/guestfish-actions.pod:2831
11832 msgid "ln"
11833 msgstr ""
11834
11835 #. type: verbatim
11836 #: ../fish/guestfish-actions.pod:2833
11837 #, no-wrap
11838 msgid ""
11839 " ln target linkname\n"
11840 "\n"
11841 msgstr ""
11842
11843 #. type: textblock
11844 #: ../fish/guestfish-actions.pod:2835 ../src/guestfs-actions.pod:4332
11845 msgid "This command creates a hard link using the C<ln> command."
11846 msgstr ""
11847
11848 #. type: =head2
11849 #: ../fish/guestfish-actions.pod:2837
11850 msgid "ln-f"
11851 msgstr ""
11852
11853 #. type: verbatim
11854 #: ../fish/guestfish-actions.pod:2839
11855 #, no-wrap
11856 msgid ""
11857 " ln-f target linkname\n"
11858 "\n"
11859 msgstr ""
11860
11861 #. type: textblock
11862 #: ../fish/guestfish-actions.pod:2841 ../src/guestfs-actions.pod:4345
11863 msgid ""
11864 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11865 "option removes the link (C<linkname>) if it exists already."
11866 msgstr ""
11867
11868 #. type: =head2
11869 #: ../fish/guestfish-actions.pod:2844
11870 msgid "ln-s"
11871 msgstr ""
11872
11873 #. type: verbatim
11874 #: ../fish/guestfish-actions.pod:2846
11875 #, no-wrap
11876 msgid ""
11877 " ln-s target linkname\n"
11878 "\n"
11879 msgstr ""
11880
11881 #. type: textblock
11882 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4359
11883 msgid "This command creates a symbolic link using the C<ln -s> command."
11884 msgstr ""
11885
11886 #. type: =head2
11887 #: ../fish/guestfish-actions.pod:2850
11888 msgid "ln-sf"
11889 msgstr ""
11890
11891 #. type: verbatim
11892 #: ../fish/guestfish-actions.pod:2852
11893 #, no-wrap
11894 msgid ""
11895 " ln-sf target linkname\n"
11896 "\n"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:2854 ../src/guestfs-actions.pod:4372
11901 msgid ""
11902 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11903 "option removes the link (C<linkname>) if it exists already."
11904 msgstr ""
11905
11906 #. type: =head2
11907 #: ../fish/guestfish-actions.pod:2857
11908 msgid "lremovexattr"
11909 msgstr ""
11910
11911 #. type: verbatim
11912 #: ../fish/guestfish-actions.pod:2859
11913 #, no-wrap
11914 msgid ""
11915 " lremovexattr xattr path\n"
11916 "\n"
11917 msgstr ""
11918
11919 #. type: textblock
11920 #: ../fish/guestfish-actions.pod:2861
11921 msgid ""
11922 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11923 "it removes an extended attribute of the link itself."
11924 msgstr ""
11925
11926 #. type: =head2
11927 #: ../fish/guestfish-actions.pod:2865
11928 msgid "ls"
11929 msgstr ""
11930
11931 #. type: verbatim
11932 #: ../fish/guestfish-actions.pod:2867
11933 #, no-wrap
11934 msgid ""
11935 " ls directory\n"
11936 "\n"
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:2869 ../src/guestfs-actions.pod:4400
11941 msgid ""
11942 "List the files in C<directory> (relative to the root directory, there is no "
11943 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11944 "shown."
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:2873
11949 msgid ""
11950 "This command is mostly useful for interactive sessions.  Programs should "
11951 "probably use L</readdir> instead."
11952 msgstr ""
11953
11954 #. type: =head2
11955 #: ../fish/guestfish-actions.pod:2876
11956 msgid "lsetxattr"
11957 msgstr ""
11958
11959 #. type: verbatim
11960 #: ../fish/guestfish-actions.pod:2878
11961 #, no-wrap
11962 msgid ""
11963 " lsetxattr xattr val vallen path\n"
11964 "\n"
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:2880
11969 msgid ""
11970 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11971 "sets an extended attribute of the link itself."
11972 msgstr ""
11973
11974 #. type: =head2
11975 #: ../fish/guestfish-actions.pod:2884
11976 msgid "lstat"
11977 msgstr ""
11978
11979 #. type: verbatim
11980 #: ../fish/guestfish-actions.pod:2886
11981 #, no-wrap
11982 msgid ""
11983 " lstat path\n"
11984 "\n"
11985 msgstr ""
11986
11987 #. type: textblock
11988 #: ../fish/guestfish-actions.pod:2888 ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:7366
11989 msgid "Returns file information for the given C<path>."
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../fish/guestfish-actions.pod:2890
11994 msgid ""
11995 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11996 "the link is stat-ed, not the file it refers to."
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4442
12001 msgid "This is the same as the C<lstat(2)> system call."
12002 msgstr ""
12003
12004 #. type: =head2
12005 #: ../fish/guestfish-actions.pod:2896
12006 msgid "lstatlist"
12007 msgstr ""
12008
12009 #. type: verbatim
12010 #: ../fish/guestfish-actions.pod:2898
12011 #, no-wrap
12012 msgid ""
12013 " lstatlist path 'names ...'\n"
12014 "\n"
12015 msgstr ""
12016
12017 #. type: textblock
12018 #: ../fish/guestfish-actions.pod:2900
12019 msgid ""
12020 "This call allows you to perform the L</lstat> operation on multiple files, "
12021 "where all files are in the directory C<path>.  C<names> is the list of files "
12022 "from this directory."
12023 msgstr ""
12024
12025 #. type: textblock
12026 #: ../fish/guestfish-actions.pod:2904 ../src/guestfs-actions.pod:4461
12027 msgid ""
12028 "On return you get a list of stat structs, with a one-to-one correspondence "
12029 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12030 "then the C<ino> field of that structure is set to C<-1>."
12031 msgstr ""
12032
12033 #. type: textblock
12034 #: ../fish/guestfish-actions.pod:2909
12035 msgid ""
12036 "This call is intended for programs that want to efficiently list a directory "
12037 "contents without making many round-trips.  See also L</lxattrlist> for a "
12038 "similarly efficient call for getting extended attributes.  Very long "
12039 "directory listings might cause the protocol message size to be exceeded, "
12040 "causing this call to fail.  The caller must split up such requests into "
12041 "smaller groups of names."
12042 msgstr ""
12043
12044 #. type: =head2
12045 #: ../fish/guestfish-actions.pod:2917
12046 msgid "luks-add-key"
12047 msgstr ""
12048
12049 #. type: verbatim
12050 #: ../fish/guestfish-actions.pod:2919
12051 #, no-wrap
12052 msgid ""
12053 " luks-add-key device keyslot\n"
12054 "\n"
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:2921 ../src/guestfs-actions.pod:4489
12059 msgid ""
12060 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12061 "existing key, and is used to access the device.  C<newkey> is the new key to "
12062 "add.  C<keyslot> is the key slot that will be replaced."
12063 msgstr ""
12064
12065 #. type: textblock
12066 #: ../fish/guestfish-actions.pod:2926
12067 msgid ""
12068 "Note that if C<keyslot> already contains a key, then this command will "
12069 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12070 msgstr ""
12071
12072 #. type: textblock
12073 #: ../fish/guestfish-actions.pod:2930 ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2962 ../fish/guestfish-actions.pod:2973 ../fish/guestfish-actions.pod:2999 ../fish/guestfish-actions.pod:3009
12074 msgid ""
12075 "This command has one or more key or passphrase parameters.  Guestfish will "
12076 "prompt for these separately."
12077 msgstr ""
12078
12079 #. type: =head2
12080 #: ../fish/guestfish-actions.pod:2933
12081 msgid "luks-close"
12082 msgstr ""
12083
12084 #. type: verbatim
12085 #: ../fish/guestfish-actions.pod:2935
12086 #, no-wrap
12087 msgid ""
12088 " luks-close device\n"
12089 "\n"
12090 msgstr ""
12091
12092 #. type: textblock
12093 #: ../fish/guestfish-actions.pod:2937
12094 msgid ""
12095 "This closes a LUKS device that was created earlier by L</luks-open> or "
12096 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
12097 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12098 "underlying block device."
12099 msgstr ""
12100
12101 #. type: =head2
12102 #: ../fish/guestfish-actions.pod:2943
12103 msgid "luks-format"
12104 msgstr ""
12105
12106 #. type: verbatim
12107 #: ../fish/guestfish-actions.pod:2945
12108 #, no-wrap
12109 msgid ""
12110 " luks-format device keyslot\n"
12111 "\n"
12112 msgstr ""
12113
12114 #. type: textblock
12115 #: ../fish/guestfish-actions.pod:2947 ../src/guestfs-actions.pod:4530
12116 msgid ""
12117 "This command erases existing data on C<device> and formats the device as a "
12118 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12119 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12120 msgstr ""
12121
12122 #. type: =head2
12123 #: ../fish/guestfish-actions.pod:2955
12124 msgid "luks-format-cipher"
12125 msgstr ""
12126
12127 #. type: verbatim
12128 #: ../fish/guestfish-actions.pod:2957
12129 #, no-wrap
12130 msgid ""
12131 " luks-format-cipher device keyslot cipher\n"
12132 "\n"
12133 msgstr ""
12134
12135 #. type: textblock
12136 #: ../fish/guestfish-actions.pod:2959
12137 msgid ""
12138 "This command is the same as L</luks-format> but it also allows you to set "
12139 "the C<cipher> used."
12140 msgstr ""
12141
12142 #. type: =head2
12143 #: ../fish/guestfish-actions.pod:2965
12144 msgid "luks-kill-slot"
12145 msgstr ""
12146
12147 #. type: verbatim
12148 #: ../fish/guestfish-actions.pod:2967
12149 #, no-wrap
12150 msgid ""
12151 " luks-kill-slot device keyslot\n"
12152 "\n"
12153 msgstr ""
12154
12155 #. type: textblock
12156 #: ../fish/guestfish-actions.pod:2969 ../src/guestfs-actions.pod:4571
12157 msgid ""
12158 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12159 "device C<device>.  C<key> must be one of the I<other> keys."
12160 msgstr ""
12161
12162 #. type: =head2
12163 #: ../fish/guestfish-actions.pod:2976
12164 msgid "luks-open"
12165 msgstr ""
12166
12167 #. type: verbatim
12168 #: ../fish/guestfish-actions.pod:2978
12169 #, no-wrap
12170 msgid ""
12171 " luks-open device mapname\n"
12172 "\n"
12173 msgstr ""
12174
12175 #. type: textblock
12176 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4591
12177 msgid ""
12178 "This command opens a block device which has been encrypted according to the "
12179 "Linux Unified Key Setup (LUKS) standard."
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4594
12184 msgid "C<device> is the encrypted block device or partition."
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4596
12189 msgid ""
12190 "The caller must supply one of the keys associated with the LUKS block "
12191 "device, in the C<key> parameter."
12192 msgstr ""
12193
12194 #. type: textblock
12195 #: ../fish/guestfish-actions.pod:2988 ../src/guestfs-actions.pod:4599
12196 msgid ""
12197 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12198 "writes to this block device are decrypted from and encrypted to the "
12199 "underlying C<device> respectively."
12200 msgstr ""
12201
12202 #. type: textblock
12203 #: ../fish/guestfish-actions.pod:2992
12204 msgid ""
12205 "If this block device contains LVM volume groups, then calling L</vgscan> "
12206 "followed by L</vg-activate-all> will make them visible."
12207 msgstr ""
12208
12209 #. type: textblock
12210 #: ../fish/guestfish-actions.pod:2996
12211 msgid "Use L</list-dm-devices> to list all device mapper devices."
12212 msgstr ""
12213
12214 #. type: =head2
12215 #: ../fish/guestfish-actions.pod:3002
12216 msgid "luks-open-ro"
12217 msgstr ""
12218
12219 #. type: verbatim
12220 #: ../fish/guestfish-actions.pod:3004
12221 #, no-wrap
12222 msgid ""
12223 " luks-open-ro device mapname\n"
12224 "\n"
12225 msgstr ""
12226
12227 #. type: textblock
12228 #: ../fish/guestfish-actions.pod:3006
12229 msgid ""
12230 "This is the same as L</luks-open> except that a read-only mapping is "
12231 "created."
12232 msgstr ""
12233
12234 #. type: =head2
12235 #: ../fish/guestfish-actions.pod:3012
12236 msgid "lvcreate"
12237 msgstr ""
12238
12239 #. type: verbatim
12240 #: ../fish/guestfish-actions.pod:3014
12241 #, no-wrap
12242 msgid ""
12243 " lvcreate logvol volgroup mbytes\n"
12244 "\n"
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4645
12249 msgid ""
12250 "This creates an LVM logical volume called C<logvol> on the volume group "
12251 "C<volgroup>, with C<size> megabytes."
12252 msgstr ""
12253
12254 #. type: =head2
12255 #: ../fish/guestfish-actions.pod:3019
12256 msgid "lvm-canonical-lv-name"
12257 msgstr ""
12258
12259 #. type: verbatim
12260 #: ../fish/guestfish-actions.pod:3021
12261 #, no-wrap
12262 msgid ""
12263 " lvm-canonical-lv-name lvname\n"
12264 "\n"
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4658
12269 msgid ""
12270 "This converts alternative naming schemes for LVs that you might find to the "
12271 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12272 "C</dev/VG/LV>."
12273 msgstr ""
12274
12275 #. type: textblock
12276 #: ../fish/guestfish-actions.pod:3027 ../src/guestfs-actions.pod:4662
12277 msgid ""
12278 "This command returns an error if the C<lvname> parameter does not refer to a "
12279 "logical volume."
12280 msgstr ""
12281
12282 #. type: textblock
12283 #: ../fish/guestfish-actions.pod:3030
12284 msgid "See also L</is-lv>."
12285 msgstr ""
12286
12287 #. type: =head2
12288 #: ../fish/guestfish-actions.pod:3032
12289 msgid "lvm-clear-filter"
12290 msgstr ""
12291
12292 #. type: verbatim
12293 #: ../fish/guestfish-actions.pod:3034
12294 #, no-wrap
12295 msgid ""
12296 " lvm-clear-filter\n"
12297 "\n"
12298 msgstr ""
12299
12300 #. type: textblock
12301 #: ../fish/guestfish-actions.pod:3036
12302 msgid ""
12303 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12304 "block device."
12305 msgstr ""
12306
12307 #. type: textblock
12308 #: ../fish/guestfish-actions.pod:3039 ../fish/guestfish-actions.pod:3067 ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4719
12309 msgid "This command also clears the LVM cache and performs a volume group scan."
12310 msgstr ""
12311
12312 #. type: =head2
12313 #: ../fish/guestfish-actions.pod:3042
12314 msgid "lvm-remove-all"
12315 msgstr ""
12316
12317 #. type: verbatim
12318 #: ../fish/guestfish-actions.pod:3044
12319 #, no-wrap
12320 msgid ""
12321 " lvm-remove-all\n"
12322 "\n"
12323 msgstr ""
12324
12325 #. type: textblock
12326 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4692
12327 msgid ""
12328 "This command removes all LVM logical volumes, volume groups and physical "
12329 "volumes."
12330 msgstr ""
12331
12332 #. type: =head2
12333 #: ../fish/guestfish-actions.pod:3049
12334 msgid "lvm-set-filter"
12335 msgstr ""
12336
12337 #. type: verbatim
12338 #: ../fish/guestfish-actions.pod:3051
12339 #, no-wrap
12340 msgid ""
12341 " lvm-set-filter 'devices ...'\n"
12342 "\n"
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4705
12347 msgid ""
12348 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12349 "block devices in the list C<devices>, and will ignore all other attached "
12350 "block devices."
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4709
12355 msgid ""
12356 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12357 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12358 "there are two types of duplication possible: either cloned PVs/VGs which "
12359 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12360 "same name.  In normal operation you cannot create this situation, but you "
12361 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12362 "inside the LVM metadata."
12363 msgstr ""
12364
12365 #. type: textblock
12366 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4722
12367 msgid "You can filter whole block devices or individual partitions."
12368 msgstr ""
12369
12370 #. type: textblock
12371 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4724
12372 msgid ""
12373 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12374 "filesystem), even if you are not filtering out that VG."
12375 msgstr ""
12376
12377 #. type: =head2
12378 #: ../fish/guestfish-actions.pod:3076
12379 msgid "lvremove"
12380 msgstr ""
12381
12382 #. type: verbatim
12383 #: ../fish/guestfish-actions.pod:3078
12384 #, no-wrap
12385 msgid ""
12386 " lvremove device\n"
12387 "\n"
12388 msgstr ""
12389
12390 #. type: textblock
12391 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
12392 msgid ""
12393 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12394 "LV, such as C</dev/VG/LV>."
12395 msgstr ""
12396
12397 #. type: textblock
12398 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4741
12399 msgid ""
12400 "You can also remove all LVs in a volume group by specifying the VG name, "
12401 "C</dev/VG>."
12402 msgstr ""
12403
12404 #. type: =head2
12405 #: ../fish/guestfish-actions.pod:3086
12406 msgid "lvrename"
12407 msgstr ""
12408
12409 #. type: verbatim
12410 #: ../fish/guestfish-actions.pod:3088
12411 #, no-wrap
12412 msgid ""
12413 " lvrename logvol newlogvol\n"
12414 "\n"
12415 msgstr ""
12416
12417 #. type: textblock
12418 #: ../fish/guestfish-actions.pod:3090 ../src/guestfs-actions.pod:4755
12419 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12420 msgstr ""
12421
12422 #. type: =head2
12423 #: ../fish/guestfish-actions.pod:3092
12424 msgid "lvresize"
12425 msgstr ""
12426
12427 #. type: verbatim
12428 #: ../fish/guestfish-actions.pod:3094
12429 #, no-wrap
12430 msgid ""
12431 " lvresize device mbytes\n"
12432 "\n"
12433 msgstr ""
12434
12435 #. type: textblock
12436 #: ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:4768
12437 msgid ""
12438 "This resizes (expands or shrinks) an existing LVM logical volume to "
12439 "C<mbytes>.  When reducing, data in the reduced part is lost."
12440 msgstr ""
12441
12442 #. type: =head2
12443 #: ../fish/guestfish-actions.pod:3100
12444 msgid "lvresize-free"
12445 msgstr ""
12446
12447 #. type: verbatim
12448 #: ../fish/guestfish-actions.pod:3102
12449 #, no-wrap
12450 msgid ""
12451 " lvresize-free lv percent\n"
12452 "\n"
12453 msgstr ""
12454
12455 #. type: textblock
12456 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4783
12457 msgid ""
12458 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12459 "remaining free space in the volume group.  Commonly you would call this with "
12460 "pc = 100 which expands the logical volume as much as possible, using all "
12461 "remaining free space in the volume group."
12462 msgstr ""
12463
12464 #. type: =head2
12465 #: ../fish/guestfish-actions.pod:3110
12466 msgid "lvs"
12467 msgstr ""
12468
12469 #. type: verbatim
12470 #: ../fish/guestfish-actions.pod:3112
12471 #, no-wrap
12472 msgid ""
12473 " lvs\n"
12474 "\n"
12475 msgstr ""
12476
12477 #. type: textblock
12478 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4798
12479 msgid ""
12480 "List all the logical volumes detected.  This is the equivalent of the "
12481 "L<lvs(8)> command."
12482 msgstr ""
12483
12484 #. type: textblock
12485 #: ../fish/guestfish-actions.pod:3117 ../src/guestfs-actions.pod:4801
12486 msgid ""
12487 "This returns a list of the logical volume device names "
12488 "(eg. C</dev/VolGroup00/LogVol00>)."
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3120
12493 msgid "See also L</lvs-full>, L</list-filesystems>."
12494 msgstr ""
12495
12496 #. type: =head2
12497 #: ../fish/guestfish-actions.pod:3122
12498 msgid "lvs-full"
12499 msgstr ""
12500
12501 #. type: verbatim
12502 #: ../fish/guestfish-actions.pod:3124
12503 #, no-wrap
12504 msgid ""
12505 " lvs-full\n"
12506 "\n"
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:3126 ../src/guestfs-actions.pod:4817
12511 msgid ""
12512 "List all the logical volumes detected.  This is the equivalent of the "
12513 "L<lvs(8)> command.  The \"full\" version includes all fields."
12514 msgstr ""
12515
12516 #. type: =head2
12517 #: ../fish/guestfish-actions.pod:3129
12518 msgid "lvuuid"
12519 msgstr ""
12520
12521 #. type: verbatim
12522 #: ../fish/guestfish-actions.pod:3131
12523 #, no-wrap
12524 msgid ""
12525 " lvuuid device\n"
12526 "\n"
12527 msgstr ""
12528
12529 #. type: textblock
12530 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4832
12531 msgid "This command returns the UUID of the LVM LV C<device>."
12532 msgstr ""
12533
12534 #. type: =head2
12535 #: ../fish/guestfish-actions.pod:3135
12536 msgid "lxattrlist"
12537 msgstr ""
12538
12539 #. type: verbatim
12540 #: ../fish/guestfish-actions.pod:3137
12541 #, no-wrap
12542 msgid ""
12543 " lxattrlist path 'names ...'\n"
12544 "\n"
12545 msgstr ""
12546
12547 #. type: textblock
12548 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4846
12549 msgid ""
12550 "This call allows you to get the extended attributes of multiple files, where "
12551 "all files are in the directory C<path>.  C<names> is the list of files from "
12552 "this directory."
12553 msgstr ""
12554
12555 #. type: textblock
12556 #: ../fish/guestfish-actions.pod:3143 ../src/guestfs-actions.pod:4850
12557 msgid ""
12558 "On return you get a flat list of xattr structs which must be interpreted "
12559 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12560 "C<attrval> in this struct is zero-length to indicate there was an error "
12561 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12562 "number (the number of following attributes for this file, which could be "
12563 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12564 "attributes for the first named file.  This repeats for the second and "
12565 "subsequent files."
12566 msgstr ""
12567
12568 #. type: textblock
12569 #: ../fish/guestfish-actions.pod:3153
12570 msgid ""
12571 "This call is intended for programs that want to efficiently list a directory "
12572 "contents without making many round-trips.  See also L</lstatlist> for a "
12573 "similarly efficient call for getting standard stats.  Very long directory "
12574 "listings might cause the protocol message size to be exceeded, causing this "
12575 "call to fail.  The caller must split up such requests into smaller groups of "
12576 "names."
12577 msgstr ""
12578
12579 #. type: =head2
12580 #: ../fish/guestfish-actions.pod:3161
12581 msgid "md-create"
12582 msgstr ""
12583
12584 #. type: verbatim
12585 #: ../fish/guestfish-actions.pod:3163
12586 #, no-wrap
12587 msgid ""
12588 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] "
12589 "[chunk:N] [level:..]\n"
12590 "\n"
12591 msgstr ""
12592
12593 #. type: textblock
12594 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4893
12595 msgid ""
12596 "Create a Linux md (RAID) device named C<name> on the devices in the list "
12597 "C<devices>."
12598 msgstr ""
12599
12600 #. type: =item
12601 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4900
12602 msgid "C<missingbitmap>"
12603 msgstr ""
12604
12605 #. type: textblock
12606 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4902
12607 msgid ""
12608 "A bitmap of missing devices.  If a bit is set it means that a missing device "
12609 "is added to the array.  The least significant bit corresponds to the first "
12610 "device in the array."
12611 msgstr ""
12612
12613 #. type: textblock
12614 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4906
12615 msgid "As examples:"
12616 msgstr ""
12617
12618 #. type: textblock
12619 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4908
12620 msgid ""
12621 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
12622 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4911
12627 msgid ""
12628 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
12629 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
12630 msgstr ""
12631
12632 #. type: textblock
12633 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4914
12634 msgid "This defaults to C<0> (no missing devices)."
12635 msgstr ""
12636
12637 #. type: textblock
12638 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4916
12639 msgid ""
12640 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
12641 "equal C<nrdevices> + C<spare>."
12642 msgstr ""
12643
12644 #. type: =item
12645 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4919
12646 msgid "C<nrdevices>"
12647 msgstr ""
12648
12649 #. type: textblock
12650 #: ../fish/guestfish-actions.pod:3193 ../src/guestfs-actions.pod:4921
12651 msgid "The number of active RAID devices."
12652 msgstr ""
12653
12654 #. type: textblock
12655 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4923
12656 msgid ""
12657 "If not set, this defaults to the length of C<devices> plus the number of "
12658 "bits set in C<missingbitmap>."
12659 msgstr ""
12660
12661 #. type: =item
12662 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4926
12663 msgid "C<spare>"
12664 msgstr ""
12665
12666 #. type: textblock
12667 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4928
12668 msgid "The number of spare devices."
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4930
12673 msgid "If not set, this defaults to C<0>."
12674 msgstr ""
12675
12676 #. type: =item
12677 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4932
12678 msgid "C<chunk>"
12679 msgstr ""
12680
12681 #. type: textblock
12682 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4934
12683 msgid "The chunk size in bytes."
12684 msgstr ""
12685
12686 #. type: =item
12687 #: ../fish/guestfish-actions.pod:3208 ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:4984
12688 msgid "C<level>"
12689 msgstr ""
12690
12691 #. type: textblock
12692 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4938
12693 msgid ""
12694 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
12695 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
12696 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
12697 "added in future."
12698 msgstr ""
12699
12700 #. type: textblock
12701 #: ../fish/guestfish-actions.pod:3215 ../src/guestfs-actions.pod:4943
12702 msgid "If not set, this defaults to C<raid1>."
12703 msgstr ""
12704
12705 #. type: =head2
12706 #: ../fish/guestfish-actions.pod:3221
12707 msgid "md-detail"
12708 msgstr ""
12709
12710 #. type: verbatim
12711 #: ../fish/guestfish-actions.pod:3223
12712 #, no-wrap
12713 msgid ""
12714 " md-detail md\n"
12715 "\n"
12716 msgstr ""
12717
12718 #. type: textblock
12719 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4979
12720 msgid ""
12721 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
12722 "are usually present in the returned hash. Other fields may also be present."
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4986
12727 msgid "The raid level of the MD device."
12728 msgstr ""
12729
12730 #. type: =item
12731 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4988
12732 msgid "C<devices>"
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4990
12737 msgid "The number of underlying devices in the MD device."
12738 msgstr ""
12739
12740 #. type: =item
12741 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4992
12742 msgid "C<metadata>"
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4994
12747 msgid "The metadata version used."
12748 msgstr ""
12749
12750 #. type: =item
12751 #: ../fish/guestfish-actions.pod:3242 ../src/guestfs-actions.pod:4996
12752 msgid "C<uuid>"
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4998
12757 msgid "The UUID of the MD device."
12758 msgstr ""
12759
12760 #. type: textblock
12761 #: ../fish/guestfish-actions.pod:3248 ../src/guestfs-actions.pod:5002
12762 msgid "The name of the MD device."
12763 msgstr ""
12764
12765 #. type: =head2
12766 #: ../fish/guestfish-actions.pod:3252
12767 msgid "md-stop"
12768 msgstr ""
12769
12770 #. type: verbatim
12771 #: ../fish/guestfish-actions.pod:3254
12772 #, no-wrap
12773 msgid ""
12774 " md-stop md\n"
12775 "\n"
12776 msgstr ""
12777
12778 #. type: textblock
12779 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
12780 msgid ""
12781 "This command deactivates the MD array named C<md>.  The device is stopped, "
12782 "but it is not destroyed or zeroed."
12783 msgstr ""
12784
12785 #. type: =head2
12786 #: ../fish/guestfish-actions.pod:3259
12787 msgid "mkdir"
12788 msgstr ""
12789
12790 #. type: verbatim
12791 #: ../fish/guestfish-actions.pod:3261
12792 #, no-wrap
12793 msgid ""
12794 " mkdir path\n"
12795 "\n"
12796 msgstr ""
12797
12798 #. type: textblock
12799 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5029
12800 msgid "Create a directory named C<path>."
12801 msgstr ""
12802
12803 #. type: =head2
12804 #: ../fish/guestfish-actions.pod:3265
12805 msgid "mkdir-mode"
12806 msgstr ""
12807
12808 #. type: verbatim
12809 #: ../fish/guestfish-actions.pod:3267
12810 #, no-wrap
12811 msgid ""
12812 " mkdir-mode path mode\n"
12813 "\n"
12814 msgstr ""
12815
12816 #. type: textblock
12817 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5042
12818 msgid ""
12819 "This command creates a directory, setting the initial permissions of the "
12820 "directory to C<mode>."
12821 msgstr ""
12822
12823 #. type: textblock
12824 #: ../fish/guestfish-actions.pod:3272 ../src/guestfs-actions.pod:5045
12825 msgid ""
12826 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12827 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12828 "other ways."
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:3276
12833 msgid "See also L</mkdir>, L</umask>"
12834 msgstr ""
12835
12836 #. type: =head2
12837 #: ../fish/guestfish-actions.pod:3278
12838 msgid "mkdir-p"
12839 msgstr ""
12840
12841 #. type: verbatim
12842 #: ../fish/guestfish-actions.pod:3280
12843 #, no-wrap
12844 msgid ""
12845 " mkdir-p path\n"
12846 "\n"
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:3282 ../src/guestfs-actions.pod:5061
12851 msgid ""
12852 "Create a directory named C<path>, creating any parent directories as "
12853 "necessary.  This is like the C<mkdir -p> shell command."
12854 msgstr ""
12855
12856 #. type: =head2
12857 #: ../fish/guestfish-actions.pod:3285
12858 msgid "mkdtemp"
12859 msgstr ""
12860
12861 #. type: verbatim
12862 #: ../fish/guestfish-actions.pod:3287
12863 #, no-wrap
12864 msgid ""
12865 " mkdtemp template\n"
12866 "\n"
12867 msgstr ""
12868
12869 #. type: textblock
12870 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5074
12871 msgid ""
12872 "This command creates a temporary directory.  The C<template> parameter "
12873 "should be a full pathname for the temporary directory name with the final "
12874 "six characters being \"XXXXXX\"."
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5079
12879 msgid ""
12880 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12881 "being suitable for Windows filesystems."
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:5082
12886 msgid "The name of the temporary directory that was created is returned."
12887 msgstr ""
12888
12889 #. type: textblock
12890 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5085
12891 msgid "The temporary directory is created with mode 0700 and is owned by root."
12892 msgstr ""
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5088
12896 msgid ""
12897 "The caller is responsible for deleting the temporary directory and its "
12898 "contents after use."
12899 msgstr ""
12900
12901 #. type: textblock
12902 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5091
12903 msgid "See also: L<mkdtemp(3)>"
12904 msgstr ""
12905
12906 #. type: =head2
12907 #: ../fish/guestfish-actions.pod:3308
12908 msgid "mke2fs-J"
12909 msgstr ""
12910
12911 #. type: verbatim
12912 #: ../fish/guestfish-actions.pod:3310
12913 #, no-wrap
12914 msgid ""
12915 " mke2fs-J fstype blocksize device journal\n"
12916 "\n"
12917 msgstr ""
12918
12919 #. type: textblock
12920 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5107
12921 msgid ""
12922 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12923 "C<journal>.  It is equivalent to the command:"
12924 msgstr ""
12925
12926 #. type: verbatim
12927 #: ../fish/guestfish-actions.pod:3316 ../src/guestfs-actions.pod:5111
12928 #, no-wrap
12929 msgid ""
12930 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12931 "\n"
12932 msgstr ""
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:3318
12936 msgid "See also L</mke2journal>."
12937 msgstr ""
12938
12939 #. type: =head2
12940 #: ../fish/guestfish-actions.pod:3320
12941 msgid "mke2fs-JL"
12942 msgstr ""
12943
12944 #. type: verbatim
12945 #: ../fish/guestfish-actions.pod:3322
12946 #, no-wrap
12947 msgid ""
12948 " mke2fs-JL fstype blocksize device label\n"
12949 "\n"
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:3324 ../src/guestfs-actions.pod:5128
12954 msgid ""
12955 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12956 "the journal labeled C<label>."
12957 msgstr ""
12958
12959 #. type: textblock
12960 #: ../fish/guestfish-actions.pod:3327
12961 msgid "See also L</mke2journal-L>."
12962 msgstr ""
12963
12964 #. type: =head2
12965 #: ../fish/guestfish-actions.pod:3329
12966 msgid "mke2fs-JU"
12967 msgstr ""
12968
12969 #. type: verbatim
12970 #: ../fish/guestfish-actions.pod:3331
12971 #, no-wrap
12972 msgid ""
12973 " mke2fs-JU fstype blocksize device uuid\n"
12974 "\n"
12975 msgstr ""
12976
12977 #. type: textblock
12978 #: ../fish/guestfish-actions.pod:3333 ../src/guestfs-actions.pod:5146
12979 msgid ""
12980 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12981 "the journal with UUID C<uuid>."
12982 msgstr ""
12983
12984 #. type: textblock
12985 #: ../fish/guestfish-actions.pod:3336
12986 msgid "See also L</mke2journal-U>."
12987 msgstr ""
12988
12989 #. type: =head2
12990 #: ../fish/guestfish-actions.pod:3338
12991 msgid "mke2journal"
12992 msgstr ""
12993
12994 #. type: verbatim
12995 #: ../fish/guestfish-actions.pod:3340
12996 #, no-wrap
12997 msgid ""
12998 " mke2journal blocksize device\n"
12999 "\n"
13000 msgstr ""
13001
13002 #. type: textblock
13003 #: ../fish/guestfish-actions.pod:3342 ../src/guestfs-actions.pod:5162
13004 msgid ""
13005 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13006 "command:"
13007 msgstr ""
13008
13009 #. type: verbatim
13010 #: ../fish/guestfish-actions.pod:3345 ../src/guestfs-actions.pod:5165
13011 #, no-wrap
13012 msgid ""
13013 " mke2fs -O journal_dev -b blocksize device\n"
13014 "\n"
13015 msgstr ""
13016
13017 #. type: =head2
13018 #: ../fish/guestfish-actions.pod:3347
13019 msgid "mke2journal-L"
13020 msgstr ""
13021
13022 #. type: verbatim
13023 #: ../fish/guestfish-actions.pod:3349
13024 #, no-wrap
13025 msgid ""
13026 " mke2journal-L blocksize label device\n"
13027 "\n"
13028 msgstr ""
13029
13030 #. type: textblock
13031 #: ../fish/guestfish-actions.pod:3351 ../src/guestfs-actions.pod:5179
13032 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13033 msgstr ""
13034
13035 #. type: =head2
13036 #: ../fish/guestfish-actions.pod:3353
13037 msgid "mke2journal-U"
13038 msgstr ""
13039
13040 #. type: verbatim
13041 #: ../fish/guestfish-actions.pod:3355
13042 #, no-wrap
13043 msgid ""
13044 " mke2journal-U blocksize uuid device\n"
13045 "\n"
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:3357 ../src/guestfs-actions.pod:5193
13050 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13051 msgstr ""
13052
13053 #. type: =head2
13054 #: ../fish/guestfish-actions.pod:3359
13055 msgid "mkfifo"
13056 msgstr ""
13057
13058 #. type: verbatim
13059 #: ../fish/guestfish-actions.pod:3361
13060 #, no-wrap
13061 msgid ""
13062 " mkfifo mode path\n"
13063 "\n"
13064 msgstr ""
13065
13066 #. type: textblock
13067 #: ../fish/guestfish-actions.pod:3363
13068 msgid ""
13069 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13070 "is just a convenient wrapper around L</mknod>."
13071 msgstr ""
13072
13073 #. type: =head2
13074 #: ../fish/guestfish-actions.pod:3369
13075 msgid "mkfs"
13076 msgstr ""
13077
13078 #. type: verbatim
13079 #: ../fish/guestfish-actions.pod:3371
13080 #, no-wrap
13081 msgid ""
13082 " mkfs fstype device\n"
13083 "\n"
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5223
13088 msgid ""
13089 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13090 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13091 msgstr ""
13092
13093 #. type: =head2
13094 #: ../fish/guestfish-actions.pod:3377
13095 msgid "mkfs-b"
13096 msgstr ""
13097
13098 #. type: verbatim
13099 #: ../fish/guestfish-actions.pod:3379
13100 #, no-wrap
13101 msgid ""
13102 " mkfs-b fstype blocksize device\n"
13103 "\n"
13104 msgstr ""
13105
13106 #. type: textblock
13107 #: ../fish/guestfish-actions.pod:3381
13108 msgid ""
13109 "This call is similar to L</mkfs>, but it allows you to control the block "
13110 "size of the resulting filesystem.  Supported block sizes depend on the "
13111 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13112 msgstr ""
13113
13114 #. type: textblock
13115 #: ../fish/guestfish-actions.pod:3386 ../fish/guestfish-actions.pod:3413 ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5289
13116 msgid ""
13117 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13118 "cluster size."
13119 msgstr ""
13120
13121 #. type: textblock
13122 #: ../fish/guestfish-actions.pod:3389
13123 msgid ""
13124 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13125 "instead."
13126 msgstr ""
13127
13128 #. type: =head2
13129 #: ../fish/guestfish-actions.pod:3396
13130 msgid "mkfs-opts"
13131 msgstr ""
13132
13133 #. type: verbatim
13134 #: ../fish/guestfish-actions.pod:3398
13135 #, no-wrap
13136 msgid ""
13137 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] "
13138 "[sectorsize:N]\n"
13139 "\n"
13140 msgstr ""
13141
13142 #. type: textblock
13143 #: ../fish/guestfish-actions.pod:3400 ../src/guestfs-actions.pod:5276
13144 msgid ""
13145 "This function creates a filesystem on C<device>.  The filesystem type is "
13146 "C<fstype>, for example C<ext3>."
13147 msgstr ""
13148
13149 #. type: =item
13150 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5283
13151 msgid "C<blocksize>"
13152 msgstr ""
13153
13154 #. type: textblock
13155 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5285
13156 msgid ""
13157 "The filesystem block size.  Supported block sizes depend on the filesystem "
13158 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13159 "filesystems."
13160 msgstr ""
13161
13162 #. type: textblock
13163 #: ../fish/guestfish-actions.pod:3416 ../src/guestfs-actions.pod:5292
13164 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13165 msgstr ""
13166
13167 #. type: =item
13168 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5294
13169 msgid "C<features>"
13170 msgstr ""
13171
13172 #. type: textblock
13173 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5296
13174 msgid "This passes the I<-O> parameter to the external mkfs program."
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:5298
13179 msgid ""
13180 "For certain filesystem types, this allows extra filesystem features to be "
13181 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13182 msgstr ""
13183
13184 #. type: textblock
13185 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5302
13186 msgid ""
13187 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13188 "type."
13189 msgstr ""
13190
13191 #. type: =item
13192 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5305
13193 msgid "C<inode>"
13194 msgstr ""
13195
13196 #. type: textblock
13197 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5307
13198 msgid ""
13199 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13200 "sets the inode size (only for ext2/3/4 filesystems at present)."
13201 msgstr ""
13202
13203 #. type: =item
13204 #: ../fish/guestfish-actions.pod:3434 ../src/guestfs-actions.pod:5310
13205 msgid "C<sectorsize>"
13206 msgstr ""
13207
13208 #. type: textblock
13209 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5312
13210 msgid ""
13211 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13212 "sets sector size for ufs filesystem."
13213 msgstr ""
13214
13215 #. type: =head2
13216 #: ../fish/guestfish-actions.pod:3443
13217 msgid "mkmountpoint"
13218 msgstr ""
13219
13220 #. type: verbatim
13221 #: ../fish/guestfish-actions.pod:3445
13222 #, no-wrap
13223 msgid ""
13224 " mkmountpoint exemptpath\n"
13225 "\n"
13226 msgstr ""
13227
13228 #. type: textblock
13229 #: ../fish/guestfish-actions.pod:3447
13230 msgid ""
13231 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13232 "to create extra mountpoints before mounting the first filesystem."
13233 msgstr ""
13234
13235 #. type: textblock
13236 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5355
13237 msgid ""
13238 "These calls are I<only> necessary in some very limited circumstances, mainly "
13239 "the case where you want to mount a mix of unrelated and/or read-only "
13240 "filesystems together."
13241 msgstr ""
13242
13243 #. type: textblock
13244 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5359
13245 msgid ""
13246 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13247 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13248 "inside that.  You can unpack this as follows in guestfish:"
13249 msgstr ""
13250
13251 #. type: verbatim
13252 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5364
13253 #, no-wrap
13254 msgid ""
13255 " add-ro Fedora-11-i686-Live.iso\n"
13256 " run\n"
13257 " mkmountpoint /cd\n"
13258 " mkmountpoint /sqsh\n"
13259 " mkmountpoint /ext3fs\n"
13260 " mount /dev/sda /cd\n"
13261 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13262 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13263 "\n"
13264 msgstr ""
13265
13266 #. type: textblock
13267 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5373
13268 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3471
13273 msgid ""
13274 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13275 "unexpected errors if you try to mix these calls.  It is safest to manually "
13276 "unmount filesystems and remove mountpoints after use."
13277 msgstr ""
13278
13279 #. type: textblock
13280 #: ../fish/guestfish-actions.pod:3475
13281 msgid ""
13282 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13283 "for this to work for manual mountpoints, you must ensure that the innermost "
13284 "mountpoints have the longest pathnames, as in the example code above."
13285 msgstr ""
13286
13287 #. type: textblock
13288 #: ../fish/guestfish-actions.pod:3480 ../src/guestfs-actions.pod:5384
13289 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13290 msgstr ""
13291
13292 #. type: textblock
13293 #: ../fish/guestfish-actions.pod:3482
13294 msgid ""
13295 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13296 "L</umount-all> to be called when the handle is closed which can also trigger "
13297 "these issues."
13298 msgstr ""
13299
13300 #. type: =head2
13301 #: ../fish/guestfish-actions.pod:3486
13302 msgid "mknod"
13303 msgstr ""
13304
13305 #. type: verbatim
13306 #: ../fish/guestfish-actions.pod:3488
13307 #, no-wrap
13308 msgid ""
13309 " mknod mode devmajor devminor path\n"
13310 "\n"
13311 msgstr ""
13312
13313 #. type: textblock
13314 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5403
13315 msgid ""
13316 "This call creates block or character special devices, or named pipes "
13317 "(FIFOs)."
13318 msgstr ""
13319
13320 #. type: textblock
13321 #: ../fish/guestfish-actions.pod:3493 ../src/guestfs-actions.pod:5406
13322 msgid ""
13323 "The C<mode> parameter should be the mode, using the standard constants.  "
13324 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13325 "used when creating block and character special devices."
13326 msgstr ""
13327
13328 #. type: textblock
13329 #: ../fish/guestfish-actions.pod:3498
13330 msgid ""
13331 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13332 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13333 "regular file).  These constants are available in the standard Linux header "
13334 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13335 "wrappers around this command which bitwise OR in the appropriate constant "
13336 "for you."
13337 msgstr ""
13338
13339 #. type: =head2
13340 #: ../fish/guestfish-actions.pod:3508
13341 msgid "mknod-b"
13342 msgstr ""
13343
13344 #. type: verbatim
13345 #: ../fish/guestfish-actions.pod:3510
13346 #, no-wrap
13347 msgid ""
13348 " mknod-b mode devmajor devminor path\n"
13349 "\n"
13350 msgstr ""
13351
13352 #. type: textblock
13353 #: ../fish/guestfish-actions.pod:3512
13354 msgid ""
13355 "This call creates a block device node called C<path> with mode C<mode> and "
13356 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13357 "wrapper around L</mknod>."
13358 msgstr ""
13359
13360 #. type: =head2
13361 #: ../fish/guestfish-actions.pod:3518
13362 msgid "mknod-c"
13363 msgstr ""
13364
13365 #. type: verbatim
13366 #: ../fish/guestfish-actions.pod:3520
13367 #, no-wrap
13368 msgid ""
13369 " mknod-c mode devmajor devminor path\n"
13370 "\n"
13371 msgstr ""
13372
13373 #. type: textblock
13374 #: ../fish/guestfish-actions.pod:3522
13375 msgid ""
13376 "This call creates a char device node called C<path> with mode C<mode> and "
13377 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13378 "wrapper around L</mknod>."
13379 msgstr ""
13380
13381 #. type: =head2
13382 #: ../fish/guestfish-actions.pod:3528
13383 msgid "mkswap"
13384 msgstr ""
13385
13386 #. type: verbatim
13387 #: ../fish/guestfish-actions.pod:3530
13388 #, no-wrap
13389 msgid ""
13390 " mkswap device\n"
13391 "\n"
13392 msgstr ""
13393
13394 #. type: textblock
13395 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5469
13396 msgid "Create a swap partition on C<device>."
13397 msgstr ""
13398
13399 #. type: =head2
13400 #: ../fish/guestfish-actions.pod:3534
13401 msgid "mkswap-L"
13402 msgstr ""
13403
13404 #. type: verbatim
13405 #: ../fish/guestfish-actions.pod:3536
13406 #, no-wrap
13407 msgid ""
13408 " mkswap-L label device\n"
13409 "\n"
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:3538 ../src/guestfs-actions.pod:5482
13414 msgid "Create a swap partition on C<device> with label C<label>."
13415 msgstr ""
13416
13417 #. type: textblock
13418 #: ../fish/guestfish-actions.pod:3540 ../src/guestfs-actions.pod:5484
13419 msgid ""
13420 "Note that you cannot attach a swap label to a block device "
13421 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13422 "the kernel or swap tools."
13423 msgstr ""
13424
13425 #. type: =head2
13426 #: ../fish/guestfish-actions.pod:3544
13427 msgid "mkswap-U"
13428 msgstr ""
13429
13430 #. type: verbatim
13431 #: ../fish/guestfish-actions.pod:3546
13432 #, no-wrap
13433 msgid ""
13434 " mkswap-U uuid device\n"
13435 "\n"
13436 msgstr ""
13437
13438 #. type: textblock
13439 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5499
13440 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13441 msgstr ""
13442
13443 #. type: =head2
13444 #: ../fish/guestfish-actions.pod:3550
13445 msgid "mkswap-file"
13446 msgstr ""
13447
13448 #. type: verbatim
13449 #: ../fish/guestfish-actions.pod:3552
13450 #, no-wrap
13451 msgid ""
13452 " mkswap-file path\n"
13453 "\n"
13454 msgstr ""
13455
13456 #. type: textblock
13457 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
13458 msgid "Create a swap file."
13459 msgstr ""
13460
13461 #. type: textblock
13462 #: ../fish/guestfish-actions.pod:3556
13463 msgid ""
13464 "This command just writes a swap file signature to an existing file.  To "
13465 "create the file itself, use something like L</fallocate>."
13466 msgstr ""
13467
13468 #. type: =head2
13469 #: ../fish/guestfish-actions.pod:3559
13470 msgid "modprobe"
13471 msgstr ""
13472
13473 #. type: verbatim
13474 #: ../fish/guestfish-actions.pod:3561
13475 #, no-wrap
13476 msgid ""
13477 " modprobe modulename\n"
13478 "\n"
13479 msgstr ""
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5526
13483 msgid "This loads a kernel module in the appliance."
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5528
13488 msgid ""
13489 "The kernel module must have been whitelisted when libguestfs was built (see "
13490 "C<appliance/kmod.whitelist.in> in the source)."
13491 msgstr ""
13492
13493 #. type: =head2
13494 #: ../fish/guestfish-actions.pod:3568
13495 msgid "mount"
13496 msgstr ""
13497
13498 #. type: verbatim
13499 #: ../fish/guestfish-actions.pod:3570
13500 #, no-wrap
13501 msgid ""
13502 " mount device mountpoint\n"
13503 "\n"
13504 msgstr ""
13505
13506 #. type: textblock
13507 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5542
13508 msgid ""
13509 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13510 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13511 "those block devices contain partitions, they will have the usual names "
13512 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5548
13517 msgid ""
13518 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13519 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13520 "mounted on directories which already exist."
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5553
13525 msgid ""
13526 "The mounted filesystem is writable, if we have sufficient permissions on the "
13527 "underlying device."
13528 msgstr ""
13529
13530 #. type: textblock
13531 #: ../fish/guestfish-actions.pod:3586
13532 msgid ""
13533 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13534 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13535 "problems for users.  If your program might need to work with older versions "
13536 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13537 "first parameter if you don't want any options)."
13538 msgstr ""
13539
13540 #. type: =head2
13541 #: ../fish/guestfish-actions.pod:3593
13542 msgid "mount-9p"
13543 msgstr ""
13544
13545 #. type: verbatim
13546 #: ../fish/guestfish-actions.pod:3595
13547 #, no-wrap
13548 msgid ""
13549 " mount-9p mounttag mountpoint [options:..]\n"
13550 "\n"
13551 msgstr ""
13552
13553 #. type: textblock
13554 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5582
13555 msgid ""
13556 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13557 "C<mountpoint>."
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5585
13562 msgid ""
13563 "If required, C<trans=virtio> will be automatically added to the options.  "
13564 "Any other options required can be passed in the optional C<options> "
13565 "parameter."
13566 msgstr ""
13567
13568 #. type: =head2
13569 #: ../fish/guestfish-actions.pod:3606
13570 msgid "mount-loop"
13571 msgstr ""
13572
13573 #. type: verbatim
13574 #: ../fish/guestfish-actions.pod:3608
13575 #, no-wrap
13576 msgid ""
13577 " mount-loop file mountpoint\n"
13578 "\n"
13579 msgstr ""
13580
13581 #. type: textblock
13582 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5624
13583 msgid ""
13584 "This command lets you mount C<file> (a filesystem image in a file) on a "
13585 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13586 "mountpoint>."
13587 msgstr ""
13588
13589 #. type: =head2
13590 #: ../fish/guestfish-actions.pod:3614
13591 msgid "mount-options"
13592 msgstr ""
13593
13594 #. type: verbatim
13595 #: ../fish/guestfish-actions.pod:3616
13596 #, no-wrap
13597 msgid ""
13598 " mount-options options device mountpoint\n"
13599 "\n"
13600 msgstr ""
13601
13602 #. type: textblock
13603 #: ../fish/guestfish-actions.pod:3618
13604 msgid ""
13605 "This is the same as the L</mount> command, but it allows you to set the "
13606 "mount options as for the L<mount(8)> I<-o> flag."
13607 msgstr ""
13608
13609 #. type: textblock
13610 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5644
13611 msgid ""
13612 "If the C<options> parameter is an empty string, then no options are passed "
13613 "(all options default to whatever the filesystem uses)."
13614 msgstr ""
13615
13616 #. type: =head2
13617 #: ../fish/guestfish-actions.pod:3626
13618 msgid "mount-ro"
13619 msgstr ""
13620
13621 #. type: verbatim
13622 #: ../fish/guestfish-actions.pod:3628
13623 #, no-wrap
13624 msgid ""
13625 " mount-ro device mountpoint\n"
13626 "\n"
13627 msgstr ""
13628
13629 #. type: textblock
13630 #: ../fish/guestfish-actions.pod:3630
13631 msgid ""
13632 "This is the same as the L</mount> command, but it mounts the filesystem with "
13633 "the read-only (I<-o ro>) flag."
13634 msgstr ""
13635
13636 #. type: =head2
13637 #: ../fish/guestfish-actions.pod:3633
13638 msgid "mount-vfs"
13639 msgstr ""
13640
13641 #. type: verbatim
13642 #: ../fish/guestfish-actions.pod:3635
13643 #, no-wrap
13644 msgid ""
13645 " mount-vfs options vfstype device mountpoint\n"
13646 "\n"
13647 msgstr ""
13648
13649 #. type: textblock
13650 #: ../fish/guestfish-actions.pod:3637
13651 msgid ""
13652 "This is the same as the L</mount> command, but it allows you to set both the "
13653 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13654 msgstr ""
13655
13656 #. type: =head2
13657 #: ../fish/guestfish-actions.pod:3641
13658 msgid "mountpoints"
13659 msgstr ""
13660
13661 #. type: verbatim
13662 #: ../fish/guestfish-actions.pod:3643
13663 #, no-wrap
13664 msgid ""
13665 " mountpoints\n"
13666 "\n"
13667 msgstr ""
13668
13669 #. type: textblock
13670 #: ../fish/guestfish-actions.pod:3645
13671 msgid ""
13672 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13673 "This one returns a hash table (map) of device name to directory where the "
13674 "device is mounted."
13675 msgstr ""
13676
13677 #. type: =head2
13678 #: ../fish/guestfish-actions.pod:3649
13679 msgid "mounts"
13680 msgstr ""
13681
13682 #. type: verbatim
13683 #: ../fish/guestfish-actions.pod:3651
13684 #, no-wrap
13685 msgid ""
13686 " mounts\n"
13687 "\n"
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5705
13692 msgid ""
13693 "This returns the list of currently mounted filesystems.  It returns the list "
13694 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13695 msgstr ""
13696
13697 #. type: textblock
13698 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5708
13699 msgid "Some internal mounts are not shown."
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:3658
13704 msgid "See also: L</mountpoints>"
13705 msgstr ""
13706
13707 #. type: =head2
13708 #: ../fish/guestfish-actions.pod:3660
13709 msgid "mv"
13710 msgstr ""
13711
13712 #. type: verbatim
13713 #: ../fish/guestfish-actions.pod:3662
13714 #, no-wrap
13715 msgid ""
13716 " mv src dest\n"
13717 "\n"
13718 msgstr ""
13719
13720 #. type: textblock
13721 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5725
13722 msgid ""
13723 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13724 "destination filename or destination directory."
13725 msgstr ""
13726
13727 #. type: =head2
13728 #: ../fish/guestfish-actions.pod:3667
13729 msgid "ntfs-3g-probe"
13730 msgstr ""
13731
13732 #. type: verbatim
13733 #: ../fish/guestfish-actions.pod:3669
13734 #, no-wrap
13735 msgid ""
13736 " ntfs-3g-probe true|false device\n"
13737 "\n"
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5739
13742 msgid ""
13743 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13744 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13745 "read-write, and some cannot be mounted at all)."
13746 msgstr ""
13747
13748 #. type: textblock
13749 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5743
13750 msgid ""
13751 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13752 "can be mounted read-write.  Set it to false if you want to test if the "
13753 "volume can be mounted read-only."
13754 msgstr ""
13755
13756 #. type: textblock
13757 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5747
13758 msgid ""
13759 "The return value is an integer which C<0> if the operation would succeed, or "
13760 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13761 msgstr ""
13762
13763 #. type: =head2
13764 #: ../fish/guestfish-actions.pod:3683
13765 msgid "ntfsresize"
13766 msgstr ""
13767
13768 #. type: verbatim
13769 #: ../fish/guestfish-actions.pod:3685
13770 #, no-wrap
13771 msgid ""
13772 " ntfsresize device\n"
13773 "\n"
13774 msgstr ""
13775
13776 #. type: textblock
13777 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5800
13778 msgid ""
13779 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13780 "size of the underlying device."
13781 msgstr ""
13782
13783 #. type: textblock
13784 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5771
13785 msgid ""
13786 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13787 "consistency check (for safety).  You have to boot into Windows to perform "
13788 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13789 "resize filesystems which have been marked in this way.  So in effect it is "
13790 "not possible to call ntfsresize multiple times on a single filesystem "
13791 "without booting into Windows between each resize."
13792 msgstr ""
13793
13794 #. type: textblock
13795 #: ../fish/guestfish-actions.pod:3698 ../fish/guestfish-actions.pod:3737 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:5826
13796 msgid "See also L<ntfsresize(8)>."
13797 msgstr ""
13798
13799 #. type: textblock
13800 #: ../fish/guestfish-actions.pod:3700 ../fish/guestfish-actions.pod:3748
13801 msgid ""
13802 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13803 "call instead."
13804 msgstr ""
13805
13806 #. type: =head2
13807 #: ../fish/guestfish-actions.pod:3707
13808 msgid "ntfsresize-opts"
13809 msgstr ""
13810
13811 #. type: verbatim
13812 #: ../fish/guestfish-actions.pod:3709
13813 #, no-wrap
13814 msgid ""
13815 " ntfsresize-opts device [size:N] [force:true|false]\n"
13816 "\n"
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../fish/guestfish-actions.pod:3720 ../src/guestfs-actions.pod:5809
13821 msgid ""
13822 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13823 "resized to fit the container (eg. partition)."
13824 msgstr ""
13825
13826 #. type: =item
13827 #: ../fish/guestfish-actions.pod:3723 ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:5812 ../src/guestfs-actions.pod:7783
13828 msgid "C<force>"
13829 msgstr ""
13830
13831 #. type: textblock
13832 #: ../fish/guestfish-actions.pod:3725 ../src/guestfs-actions.pod:5814
13833 msgid ""
13834 "If this option is true, then force the resize of the filesystem even if the "
13835 "filesystem is marked as requiring a consistency check."
13836 msgstr ""
13837
13838 #. type: textblock
13839 #: ../fish/guestfish-actions.pod:3728
13840 msgid ""
13841 "After the resize operation, the filesystem is always marked as requiring a "
13842 "consistency check (for safety).  You have to boot into Windows to perform "
13843 "this check and clear this condition.  If you I<don't> set the C<force> "
13844 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13845 "a single filesystem without booting into Windows between each resize."
13846 msgstr ""
13847
13848 #. type: =head2
13849 #: ../fish/guestfish-actions.pod:3741
13850 msgid "ntfsresize-size"
13851 msgstr ""
13852
13853 #. type: verbatim
13854 #: ../fish/guestfish-actions.pod:3743
13855 #, no-wrap
13856 msgid ""
13857 " ntfsresize-size device size\n"
13858 "\n"
13859 msgstr ""
13860
13861 #. type: textblock
13862 #: ../fish/guestfish-actions.pod:3745
13863 msgid ""
13864 "This command is the same as L</ntfsresize> except that it allows you to "
13865 "specify the new size (in bytes) explicitly."
13866 msgstr ""
13867
13868 #. type: =head2
13869 #: ../fish/guestfish-actions.pod:3755
13870 msgid "part-add"
13871 msgstr ""
13872
13873 #. type: verbatim
13874 #: ../fish/guestfish-actions.pod:3757
13875 #, no-wrap
13876 msgid ""
13877 " part-add device prlogex startsect endsect\n"
13878 "\n"
13879 msgstr ""
13880
13881 #. type: textblock
13882 #: ../fish/guestfish-actions.pod:3759
13883 msgid ""
13884 "This command adds a partition to C<device>.  If there is no partition table "
13885 "on the device, call L</part-init> first."
13886 msgstr ""
13887
13888 #. type: textblock
13889 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5887
13890 msgid ""
13891 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13892 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13893 "C<logical>) and C<e> (or C<extended>) partition types."
13894 msgstr ""
13895
13896 #. type: textblock
13897 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5892
13898 msgid ""
13899 "C<startsect> and C<endsect> are the start and end of the partition in "
13900 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13901 "from the end of the disk (C<-1> is the last sector)."
13902 msgstr ""
13903
13904 #. type: textblock
13905 #: ../fish/guestfish-actions.pod:3771
13906 msgid ""
13907 "Creating a partition which covers the whole disk is not so easy.  Use "
13908 "L</part-disk> to do that."
13909 msgstr ""
13910
13911 #. type: =head2
13912 #: ../fish/guestfish-actions.pod:3774
13913 msgid "part-del"
13914 msgstr ""
13915
13916 #. type: verbatim
13917 #: ../fish/guestfish-actions.pod:3776
13918 #, no-wrap
13919 msgid ""
13920 " part-del device partnum\n"
13921 "\n"
13922 msgstr ""
13923
13924 #. type: textblock
13925 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5910
13926 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13927 msgstr ""
13928
13929 #. type: textblock
13930 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5912
13931 msgid ""
13932 "Note that in the case of MBR partitioning, deleting an extended partition "
13933 "also deletes any logical partitions it contains."
13934 msgstr ""
13935
13936 #. type: =head2
13937 #: ../fish/guestfish-actions.pod:3784
13938 msgid "part-disk"
13939 msgstr ""
13940
13941 #. type: verbatim
13942 #: ../fish/guestfish-actions.pod:3786
13943 #, no-wrap
13944 msgid ""
13945 " part-disk device parttype\n"
13946 "\n"
13947 msgstr ""
13948
13949 #. type: textblock
13950 #: ../fish/guestfish-actions.pod:3788
13951 msgid ""
13952 "This command is simply a combination of L</part-init> followed by "
13953 "L</part-add> to create a single primary partition covering the whole disk."
13954 msgstr ""
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:3792
13958 msgid ""
13959 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13960 "possible values are described in L</part-init>."
13961 msgstr ""
13962
13963 #. type: =head2
13964 #: ../fish/guestfish-actions.pod:3795
13965 msgid "part-get-bootable"
13966 msgstr ""
13967
13968 #. type: verbatim
13969 #: ../fish/guestfish-actions.pod:3797
13970 #, no-wrap
13971 msgid ""
13972 " part-get-bootable device partnum\n"
13973 "\n"
13974 msgstr ""
13975
13976 #. type: textblock
13977 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5945
13978 msgid ""
13979 "This command returns true if the partition C<partnum> on C<device> has the "
13980 "bootable flag set."
13981 msgstr ""
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:3802
13985 msgid "See also L</part-set-bootable>."
13986 msgstr ""
13987
13988 #. type: =head2
13989 #: ../fish/guestfish-actions.pod:3804
13990 msgid "part-get-mbr-id"
13991 msgstr ""
13992
13993 #. type: verbatim
13994 #: ../fish/guestfish-actions.pod:3806
13995 #, no-wrap
13996 msgid ""
13997 " part-get-mbr-id device partnum\n"
13998 "\n"
13999 msgstr ""
14000
14001 #. type: textblock
14002 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
14003 msgid ""
14004 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14005 "partition C<partnum>."
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../fish/guestfish-actions.pod:3811 ../fish/guestfish-actions.pod:3955
14010 msgid ""
14011 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14012 "undefined results for other partition table types (see "
14013 "L</part-get-parttype>)."
14014 msgstr ""
14015
14016 #. type: =head2
14017 #: ../fish/guestfish-actions.pod:3815
14018 msgid "part-get-parttype"
14019 msgstr ""
14020
14021 #. type: verbatim
14022 #: ../fish/guestfish-actions.pod:3817
14023 #, no-wrap
14024 msgid ""
14025 " part-get-parttype device\n"
14026 "\n"
14027 msgstr ""
14028
14029 #. type: textblock
14030 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5978
14031 msgid ""
14032 "This command examines the partition table on C<device> and returns the "
14033 "partition table type (format) being used."
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../fish/guestfish-actions.pod:3822
14038 msgid ""
14039 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14040 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14041 "possible, although unusual.  See L</part-init> for a full list."
14042 msgstr ""
14043
14044 #. type: =head2
14045 #: ../fish/guestfish-actions.pod:3827
14046 msgid "part-init"
14047 msgstr ""
14048
14049 #. type: verbatim
14050 #: ../fish/guestfish-actions.pod:3829
14051 #, no-wrap
14052 msgid ""
14053 " part-init device parttype\n"
14054 "\n"
14055 msgstr ""
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5998
14059 msgid ""
14060 "This creates an empty partition table on C<device> of one of the partition "
14061 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14062 "(for large disks)."
14063 msgstr ""
14064
14065 #. type: textblock
14066 #: ../fish/guestfish-actions.pod:3835
14067 msgid ""
14068 "Initially there are no partitions.  Following this, you should call "
14069 "L</part-add> for each partition required."
14070 msgstr ""
14071
14072 #. type: textblock
14073 #: ../fish/guestfish-actions.pod:3838 ../src/guestfs-actions.pod:6005
14074 msgid "Possible values for C<parttype> are:"
14075 msgstr ""
14076
14077 #. type: =item
14078 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:6009
14079 msgid "B<efi>"
14080 msgstr ""
14081
14082 #. type: =item
14083 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:6011
14084 msgid "B<gpt>"
14085 msgstr ""
14086
14087 #. type: textblock
14088 #: ../fish/guestfish-actions.pod:3846 ../src/guestfs-actions.pod:6013
14089 msgid "Intel EFI / GPT partition table."
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../fish/guestfish-actions.pod:3848 ../src/guestfs-actions.pod:6015
14094 msgid ""
14095 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14096 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14097 "the C<mbr> format."
14098 msgstr ""
14099
14100 #. type: =item
14101 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6019
14102 msgid "B<mbr>"
14103 msgstr ""
14104
14105 #. type: =item
14106 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:6021
14107 msgid "B<msdos>"
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:6023
14112 msgid ""
14113 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14114 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14115 "TB.  For large disks we recommend using C<gpt>."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6030
14120 msgid "Other partition table types that may work but are not supported include:"
14121 msgstr ""
14122
14123 #. type: =item
14124 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:6035
14125 msgid "B<aix>"
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6037
14130 msgid "AIX disk labels."
14131 msgstr ""
14132
14133 #. type: =item
14134 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:6039
14135 msgid "B<amiga>"
14136 msgstr ""
14137
14138 #. type: =item
14139 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:6041
14140 msgid "B<rdb>"
14141 msgstr ""
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:6043
14145 msgid "Amiga \"Rigid Disk Block\" format."
14146 msgstr ""
14147
14148 #. type: =item
14149 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6045
14150 msgid "B<bsd>"
14151 msgstr ""
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6047
14155 msgid "BSD disk labels."
14156 msgstr ""
14157
14158 #. type: =item
14159 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:6049
14160 msgid "B<dasd>"
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:6051
14165 msgid "DASD, used on IBM mainframes."
14166 msgstr ""
14167
14168 #. type: =item
14169 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:6053
14170 msgid "B<dvh>"
14171 msgstr ""
14172
14173 #. type: textblock
14174 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:6055
14175 msgid "MIPS/SGI volumes."
14176 msgstr ""
14177
14178 #. type: =item
14179 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6057
14180 msgid "B<mac>"
14181 msgstr ""
14182
14183 #. type: textblock
14184 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:6059
14185 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14186 msgstr ""
14187
14188 #. type: =item
14189 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6061
14190 msgid "B<pc98>"
14191 msgstr ""
14192
14193 #. type: textblock
14194 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:6063
14195 msgid "NEC PC-98 format, common in Japan apparently."
14196 msgstr ""
14197
14198 #. type: =item
14199 #: ../fish/guestfish-actions.pod:3898 ../src/guestfs-actions.pod:6065
14200 msgid "B<sun>"
14201 msgstr ""
14202
14203 #. type: textblock
14204 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14205 msgid "Sun disk labels."
14206 msgstr ""
14207
14208 #. type: =head2
14209 #: ../fish/guestfish-actions.pod:3904
14210 msgid "part-list"
14211 msgstr ""
14212
14213 #. type: verbatim
14214 #: ../fish/guestfish-actions.pod:3906
14215 #, no-wrap
14216 msgid ""
14217 " part-list device\n"
14218 "\n"
14219 msgstr ""
14220
14221 #. type: textblock
14222 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6081
14223 msgid ""
14224 "This command parses the partition table on C<device> and returns the list of "
14225 "partitions found."
14226 msgstr ""
14227
14228 #. type: textblock
14229 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6084
14230 msgid "The fields in the returned structure are:"
14231 msgstr ""
14232
14233 #. type: =item
14234 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6088
14235 msgid "B<part_num>"
14236 msgstr ""
14237
14238 #. type: textblock
14239 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6090
14240 msgid "Partition number, counting from 1."
14241 msgstr ""
14242
14243 #. type: =item
14244 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6092
14245 msgid "B<part_start>"
14246 msgstr ""
14247
14248 #. type: textblock
14249 #: ../fish/guestfish-actions.pod:3921
14250 msgid ""
14251 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14252 "the device's sector size, see L</blockdev-getss>."
14253 msgstr ""
14254
14255 #. type: =item
14256 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6097
14257 msgid "B<part_end>"
14258 msgstr ""
14259
14260 #. type: textblock
14261 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6099
14262 msgid "End of the partition in bytes."
14263 msgstr ""
14264
14265 #. type: =item
14266 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6101
14267 msgid "B<part_size>"
14268 msgstr ""
14269
14270 #. type: textblock
14271 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6103
14272 msgid "Size of the partition in bytes."
14273 msgstr ""
14274
14275 #. type: =head2
14276 #: ../fish/guestfish-actions.pod:3934
14277 msgid "part-set-bootable"
14278 msgstr ""
14279
14280 #. type: verbatim
14281 #: ../fish/guestfish-actions.pod:3936
14282 #, no-wrap
14283 msgid ""
14284 " part-set-bootable device partnum true|false\n"
14285 "\n"
14286 msgstr ""
14287
14288 #. type: textblock
14289 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6121
14290 msgid ""
14291 "This sets the bootable flag on partition numbered C<partnum> on device "
14292 "C<device>.  Note that partitions are numbered from 1."
14293 msgstr ""
14294
14295 #. type: textblock
14296 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6124
14297 msgid ""
14298 "The bootable flag is used by some operating systems (notably Windows) to "
14299 "determine which partition to boot from.  It is by no means universally "
14300 "recognized."
14301 msgstr ""
14302
14303 #. type: =head2
14304 #: ../fish/guestfish-actions.pod:3945
14305 msgid "part-set-mbr-id"
14306 msgstr ""
14307
14308 #. type: verbatim
14309 #: ../fish/guestfish-actions.pod:3947
14310 #, no-wrap
14311 msgid ""
14312 " part-set-mbr-id device partnum idbyte\n"
14313 "\n"
14314 msgstr ""
14315
14316 #. type: textblock
14317 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6140
14318 msgid ""
14319 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14320 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14321 "documentation are in fact hexadecimal numbers, but usually documented "
14322 "without any leading \"0x\" which might be confusing."
14323 msgstr ""
14324
14325 #. type: =head2
14326 #: ../fish/guestfish-actions.pod:3959
14327 msgid "part-set-name"
14328 msgstr ""
14329
14330 #. type: verbatim
14331 #: ../fish/guestfish-actions.pod:3961
14332 #, no-wrap
14333 msgid ""
14334 " part-set-name device partnum name\n"
14335 "\n"
14336 msgstr ""
14337
14338 #. type: textblock
14339 #: ../fish/guestfish-actions.pod:3963 ../src/guestfs-actions.pod:6162
14340 msgid ""
14341 "This sets the partition name on partition numbered C<partnum> on device "
14342 "C<device>.  Note that partitions are numbered from 1."
14343 msgstr ""
14344
14345 #. type: textblock
14346 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6165
14347 msgid ""
14348 "The partition name can only be set on certain types of partition table.  "
14349 "This works on C<gpt> but not on C<mbr> partitions."
14350 msgstr ""
14351
14352 #. type: =head2
14353 #: ../fish/guestfish-actions.pod:3969
14354 msgid "part-to-dev"
14355 msgstr ""
14356
14357 #. type: verbatim
14358 #: ../fish/guestfish-actions.pod:3971
14359 #, no-wrap
14360 msgid ""
14361 " part-to-dev partition\n"
14362 "\n"
14363 msgstr ""
14364
14365 #. type: textblock
14366 #: ../fish/guestfish-actions.pod:3973 ../src/guestfs-actions.pod:6178
14367 msgid ""
14368 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14369 "partition number, returning the device name (eg. \"/dev/sdb\")."
14370 msgstr ""
14371
14372 #. type: textblock
14373 #: ../fish/guestfish-actions.pod:3977 ../fish/guestfish-actions.pod:3989
14374 msgid ""
14375 "The named partition must exist, for example as a string returned from "
14376 "L</list-partitions>."
14377 msgstr ""
14378
14379 #. type: textblock
14380 #: ../fish/guestfish-actions.pod:3980
14381 msgid "See also L</part-to-partnum>."
14382 msgstr ""
14383
14384 #. type: =head2
14385 #: ../fish/guestfish-actions.pod:3982
14386 msgid "part-to-partnum"
14387 msgstr ""
14388
14389 #. type: verbatim
14390 #: ../fish/guestfish-actions.pod:3984
14391 #, no-wrap
14392 msgid ""
14393 " part-to-partnum partition\n"
14394 "\n"
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6198
14399 msgid ""
14400 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14401 "partition number (eg. C<1>)."
14402 msgstr ""
14403
14404 #. type: textblock
14405 #: ../fish/guestfish-actions.pod:3992
14406 msgid "See also L</part-to-dev>."
14407 msgstr ""
14408
14409 #. type: =head2
14410 #: ../fish/guestfish-actions.pod:3994
14411 msgid "ping-daemon"
14412 msgstr ""
14413
14414 #. type: verbatim
14415 #: ../fish/guestfish-actions.pod:3996
14416 #, no-wrap
14417 msgid ""
14418 " ping-daemon\n"
14419 "\n"
14420 msgstr ""
14421
14422 #. type: textblock
14423 #: ../fish/guestfish-actions.pod:3998 ../src/guestfs-actions.pod:6215
14424 msgid ""
14425 "This is a test probe into the guestfs daemon running inside the qemu "
14426 "subprocess.  Calling this function checks that the daemon responds to the "
14427 "ping message, without affecting the daemon or attached block device(s) in "
14428 "any other way."
14429 msgstr ""
14430
14431 #. type: =head2
14432 #: ../fish/guestfish-actions.pod:4003
14433 msgid "pread"
14434 msgstr ""
14435
14436 #. type: verbatim
14437 #: ../fish/guestfish-actions.pod:4005
14438 #, no-wrap
14439 msgid ""
14440 " pread path count offset\n"
14441 "\n"
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../fish/guestfish-actions.pod:4007 ../src/guestfs-actions.pod:6233
14446 msgid ""
14447 "This command lets you read part of a file.  It reads C<count> bytes of the "
14448 "file, starting at C<offset>, from file C<path>."
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4025 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
14453 msgid ""
14454 "This may read fewer bytes than requested.  For further details see the "
14455 "L<pread(2)> system call."
14456 msgstr ""
14457
14458 #. type: textblock
14459 #: ../fish/guestfish-actions.pod:4013
14460 msgid "See also L</pwrite>, L</pread-device>."
14461 msgstr ""
14462
14463 #. type: =head2
14464 #: ../fish/guestfish-actions.pod:4018
14465 msgid "pread-device"
14466 msgstr ""
14467
14468 #. type: verbatim
14469 #: ../fish/guestfish-actions.pod:4020
14470 #, no-wrap
14471 msgid ""
14472 " pread-device device count offset\n"
14473 "\n"
14474 msgstr ""
14475
14476 #. type: textblock
14477 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6259
14478 msgid ""
14479 "This command lets you read part of a file.  It reads C<count> bytes of "
14480 "C<device>, starting at C<offset>."
14481 msgstr ""
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:4028
14485 msgid "See also L</pread>."
14486 msgstr ""
14487
14488 #. type: =head2
14489 #: ../fish/guestfish-actions.pod:4033
14490 msgid "pvcreate"
14491 msgstr ""
14492
14493 #. type: verbatim
14494 #: ../fish/guestfish-actions.pod:4035
14495 #, no-wrap
14496 msgid ""
14497 " pvcreate device\n"
14498 "\n"
14499 msgstr ""
14500
14501 #. type: textblock
14502 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
14503 msgid ""
14504 "This creates an LVM physical volume on the named C<device>, where C<device> "
14505 "should usually be a partition name such as C</dev/sda1>."
14506 msgstr ""
14507
14508 #. type: =head2
14509 #: ../fish/guestfish-actions.pod:4041
14510 msgid "pvremove"
14511 msgstr ""
14512
14513 #. type: verbatim
14514 #: ../fish/guestfish-actions.pod:4043
14515 #, no-wrap
14516 msgid ""
14517 " pvremove device\n"
14518 "\n"
14519 msgstr ""
14520
14521 #. type: textblock
14522 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
14523 msgid ""
14524 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14525 "it."
14526 msgstr ""
14527
14528 #. type: textblock
14529 #: ../fish/guestfish-actions.pod:4048 ../src/guestfs-actions.pod:6299
14530 msgid ""
14531 "The implementation uses the C<pvremove> command which refuses to wipe "
14532 "physical volumes that contain any volume groups, so you have to remove those "
14533 "first."
14534 msgstr ""
14535
14536 #. type: =head2
14537 #: ../fish/guestfish-actions.pod:4052
14538 msgid "pvresize"
14539 msgstr ""
14540
14541 #. type: verbatim
14542 #: ../fish/guestfish-actions.pod:4054
14543 #, no-wrap
14544 msgid ""
14545 " pvresize device\n"
14546 "\n"
14547 msgstr ""
14548
14549 #. type: textblock
14550 #: ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6313
14551 msgid ""
14552 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14553 "the new size of the underlying device."
14554 msgstr ""
14555
14556 #. type: =head2
14557 #: ../fish/guestfish-actions.pod:4059
14558 msgid "pvresize-size"
14559 msgstr ""
14560
14561 #. type: verbatim
14562 #: ../fish/guestfish-actions.pod:4061
14563 #, no-wrap
14564 msgid ""
14565 " pvresize-size device size\n"
14566 "\n"
14567 msgstr ""
14568
14569 #. type: textblock
14570 #: ../fish/guestfish-actions.pod:4063
14571 msgid ""
14572 "This command is the same as L</pvresize> except that it allows you to "
14573 "specify the new size (in bytes) explicitly."
14574 msgstr ""
14575
14576 #. type: =head2
14577 #: ../fish/guestfish-actions.pod:4066
14578 msgid "pvs"
14579 msgstr ""
14580
14581 #. type: verbatim
14582 #: ../fish/guestfish-actions.pod:4068
14583 #, no-wrap
14584 msgid ""
14585 " pvs\n"
14586 "\n"
14587 msgstr ""
14588
14589 #. type: textblock
14590 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6339
14591 msgid ""
14592 "List all the physical volumes detected.  This is the equivalent of the "
14593 "L<pvs(8)> command."
14594 msgstr ""
14595
14596 #. type: textblock
14597 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6342
14598 msgid ""
14599 "This returns a list of just the device names that contain PVs "
14600 "(eg. C</dev/sda2>)."
14601 msgstr ""
14602
14603 #. type: textblock
14604 #: ../fish/guestfish-actions.pod:4076
14605 msgid "See also L</pvs-full>."
14606 msgstr ""
14607
14608 #. type: =head2
14609 #: ../fish/guestfish-actions.pod:4078
14610 msgid "pvs-full"
14611 msgstr ""
14612
14613 #. type: verbatim
14614 #: ../fish/guestfish-actions.pod:4080
14615 #, no-wrap
14616 msgid ""
14617 " pvs-full\n"
14618 "\n"
14619 msgstr ""
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6358
14623 msgid ""
14624 "List all the physical volumes detected.  This is the equivalent of the "
14625 "L<pvs(8)> command.  The \"full\" version includes all fields."
14626 msgstr ""
14627
14628 #. type: =head2
14629 #: ../fish/guestfish-actions.pod:4085
14630 msgid "pvuuid"
14631 msgstr ""
14632
14633 #. type: verbatim
14634 #: ../fish/guestfish-actions.pod:4087
14635 #, no-wrap
14636 msgid ""
14637 " pvuuid device\n"
14638 "\n"
14639 msgstr ""
14640
14641 #. type: textblock
14642 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6373
14643 msgid "This command returns the UUID of the LVM PV C<device>."
14644 msgstr ""
14645
14646 #. type: =head2
14647 #: ../fish/guestfish-actions.pod:4091
14648 msgid "pwrite"
14649 msgstr ""
14650
14651 #. type: verbatim
14652 #: ../fish/guestfish-actions.pod:4093
14653 #, no-wrap
14654 msgid ""
14655 " pwrite path content offset\n"
14656 "\n"
14657 msgstr ""
14658
14659 #. type: textblock
14660 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6389
14661 msgid ""
14662 "This command writes to part of a file.  It writes the data buffer C<content> "
14663 "to the file C<path> starting at offset C<offset>."
14664 msgstr ""
14665
14666 #. type: textblock
14667 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6392
14668 msgid ""
14669 "This command implements the L<pwrite(2)> system call, and like that system "
14670 "call it may not write the full data requested.  The return value is the "
14671 "number of bytes that were actually written to the file.  This could even be "
14672 "0, although short writes are unlikely for regular files in ordinary "
14673 "circumstances."
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:4104
14678 msgid "See also L</pread>, L</pwrite-device>."
14679 msgstr ""
14680
14681 #. type: =head2
14682 #: ../fish/guestfish-actions.pod:4109
14683 msgid "pwrite-device"
14684 msgstr ""
14685
14686 #. type: verbatim
14687 #: ../fish/guestfish-actions.pod:4111
14688 #, no-wrap
14689 msgid ""
14690 " pwrite-device device content offset\n"
14691 "\n"
14692 msgstr ""
14693
14694 #. type: textblock
14695 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6416
14696 msgid ""
14697 "This command writes to part of a device.  It writes the data buffer "
14698 "C<content> to C<device> starting at offset C<offset>."
14699 msgstr ""
14700
14701 #. type: textblock
14702 #: ../fish/guestfish-actions.pod:4116 ../src/guestfs-actions.pod:6419
14703 msgid ""
14704 "This command implements the L<pwrite(2)> system call, and like that system "
14705 "call it may not write the full data requested (although short writes to disk "
14706 "devices and partitions are probably impossible with standard Linux kernels)."
14707 msgstr ""
14708
14709 #. type: textblock
14710 #: ../fish/guestfish-actions.pod:4121
14711 msgid "See also L</pwrite>."
14712 msgstr ""
14713
14714 #. type: =head2
14715 #: ../fish/guestfish-actions.pod:4126
14716 msgid "read-file"
14717 msgstr ""
14718
14719 #. type: verbatim
14720 #: ../fish/guestfish-actions.pod:4128
14721 #, no-wrap
14722 msgid ""
14723 " read-file path\n"
14724 "\n"
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6440
14729 msgid "This calls returns the contents of the file C<path> as a buffer."
14730 msgstr ""
14731
14732 #. type: textblock
14733 #: ../fish/guestfish-actions.pod:4133
14734 msgid ""
14735 "Unlike L</cat>, this function can correctly handle files that contain "
14736 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14737 "is limited in the total size of file that can be handled."
14738 msgstr ""
14739
14740 #. type: =head2
14741 #: ../fish/guestfish-actions.pod:4141
14742 msgid "read-lines"
14743 msgstr ""
14744
14745 #. type: verbatim
14746 #: ../fish/guestfish-actions.pod:4143
14747 #, no-wrap
14748 msgid ""
14749 " read-lines path\n"
14750 "\n"
14751 msgstr ""
14752
14753 #. type: textblock
14754 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6465
14755 msgid ""
14756 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14757 "C<CRLF> character sequences are I<not> returned."
14758 msgstr ""
14759
14760 #. type: textblock
14761 #: ../fish/guestfish-actions.pod:4150
14762 msgid ""
14763 "Note that this function cannot correctly handle binary files (specifically, "
14764 "files containing C<\\0> character which is treated as end of line).  For "
14765 "those you need to use the L</read-file> function which has a more complex "
14766 "interface."
14767 msgstr ""
14768
14769 #. type: =head2
14770 #: ../fish/guestfish-actions.pod:4155
14771 msgid "readdir"
14772 msgstr ""
14773
14774 #. type: verbatim
14775 #: ../fish/guestfish-actions.pod:4157
14776 #, no-wrap
14777 msgid ""
14778 " readdir dir\n"
14779 "\n"
14780 msgstr ""
14781
14782 #. type: textblock
14783 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6485
14784 msgid "This returns the list of directory entries in directory C<dir>."
14785 msgstr ""
14786
14787 #. type: textblock
14788 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6487
14789 msgid ""
14790 "All entries in the directory are returned, including C<.> and C<..>.  The "
14791 "entries are I<not> sorted, but returned in the same order as the underlying "
14792 "filesystem."
14793 msgstr ""
14794
14795 #. type: textblock
14796 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6491
14797 msgid ""
14798 "Also this call returns basic file type information about each file.  The "
14799 "C<ftyp> field will contain one of the following characters:"
14800 msgstr ""
14801
14802 #. type: =item
14803 #: ../fish/guestfish-actions.pod:4170 ../src/guestfs-actions.pod:6496
14804 msgid "'b'"
14805 msgstr ""
14806
14807 #. type: textblock
14808 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6498
14809 msgid "Block special"
14810 msgstr ""
14811
14812 #. type: =item
14813 #: ../fish/guestfish-actions.pod:4174 ../src/guestfs-actions.pod:6500
14814 msgid "'c'"
14815 msgstr ""
14816
14817 #. type: textblock
14818 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6502
14819 msgid "Char special"
14820 msgstr ""
14821
14822 #. type: =item
14823 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
14824 msgid "'d'"
14825 msgstr ""
14826
14827 #. type: textblock
14828 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6506
14829 msgid "Directory"
14830 msgstr ""
14831
14832 #. type: =item
14833 #: ../fish/guestfish-actions.pod:4182 ../src/guestfs-actions.pod:6508
14834 msgid "'f'"
14835 msgstr ""
14836
14837 #. type: textblock
14838 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6510
14839 msgid "FIFO (named pipe)"
14840 msgstr ""
14841
14842 #. type: =item
14843 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6512
14844 msgid "'l'"
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6514
14849 msgid "Symbolic link"
14850 msgstr ""
14851
14852 #. type: =item
14853 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6516
14854 msgid "'r'"
14855 msgstr ""
14856
14857 #. type: textblock
14858 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6518
14859 msgid "Regular file"
14860 msgstr ""
14861
14862 #. type: =item
14863 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6520
14864 msgid "'s'"
14865 msgstr ""
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6522
14869 msgid "Socket"
14870 msgstr ""
14871
14872 #. type: =item
14873 #: ../fish/guestfish-actions.pod:4198 ../src/guestfs-actions.pod:6524
14874 msgid "'u'"
14875 msgstr ""
14876
14877 #. type: textblock
14878 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6526
14879 msgid "Unknown file type"
14880 msgstr ""
14881
14882 #. type: =item
14883 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6528
14884 msgid "'?'"
14885 msgstr ""
14886
14887 #. type: textblock
14888 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6530
14889 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-actions.pod:4209
14894 msgid ""
14895 "This function is primarily intended for use by programs.  To get a simple "
14896 "list of names, use L</ls>.  To get a printable directory for human "
14897 "consumption, use L</ll>."
14898 msgstr ""
14899
14900 #. type: =head2
14901 #: ../fish/guestfish-actions.pod:4213
14902 msgid "readlink"
14903 msgstr ""
14904
14905 #. type: verbatim
14906 #: ../fish/guestfish-actions.pod:4215
14907 #, no-wrap
14908 msgid ""
14909 " readlink path\n"
14910 "\n"
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
14915 msgid "This command reads the target of a symbolic link."
14916 msgstr ""
14917
14918 #. type: =head2
14919 #: ../fish/guestfish-actions.pod:4219
14920 msgid "readlinklist"
14921 msgstr ""
14922
14923 #. type: verbatim
14924 #: ../fish/guestfish-actions.pod:4221
14925 #, no-wrap
14926 msgid ""
14927 " readlinklist path 'names ...'\n"
14928 "\n"
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6565
14933 msgid ""
14934 "This call allows you to do a C<readlink> operation on multiple files, where "
14935 "all files are in the directory C<path>.  C<names> is the list of files from "
14936 "this directory."
14937 msgstr ""
14938
14939 #. type: textblock
14940 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6569
14941 msgid ""
14942 "On return you get a list of strings, with a one-to-one correspondence to the "
14943 "C<names> list.  Each string is the value of the symbolic link."
14944 msgstr ""
14945
14946 #. type: textblock
14947 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6573
14948 msgid ""
14949 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14950 "result string is the empty string C<\"\">.  However the whole operation is "
14951 "completed even if there were C<readlink(2)> errors, and so you can call this "
14952 "function with names where you don't know if they are symbolic links already "
14953 "(albeit slightly less efficient)."
14954 msgstr ""
14955
14956 #. type: textblock
14957 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6580
14958 msgid ""
14959 "This call is intended for programs that want to efficiently list a directory "
14960 "contents without making many round-trips.  Very long directory listings "
14961 "might cause the protocol message size to be exceeded, causing this call to "
14962 "fail.  The caller must split up such requests into smaller groups of names."
14963 msgstr ""
14964
14965 #. type: =head2
14966 #: ../fish/guestfish-actions.pod:4245
14967 msgid "realpath"
14968 msgstr ""
14969
14970 #. type: verbatim
14971 #: ../fish/guestfish-actions.pod:4247
14972 #, no-wrap
14973 msgid ""
14974 " realpath path\n"
14975 "\n"
14976 msgstr ""
14977
14978 #. type: textblock
14979 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6599
14980 msgid ""
14981 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14982 "has no C<.>, C<..> or symbolic link path elements."
14983 msgstr ""
14984
14985 #. type: =head2
14986 #: ../fish/guestfish-actions.pod:4252
14987 msgid "removexattr"
14988 msgstr ""
14989
14990 #. type: verbatim
14991 #: ../fish/guestfish-actions.pod:4254
14992 #, no-wrap
14993 msgid ""
14994 " removexattr xattr path\n"
14995 "\n"
14996 msgstr ""
14997
14998 #. type: textblock
14999 #: ../fish/guestfish-actions.pod:4256 ../src/guestfs-actions.pod:6614
15000 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
15001 msgstr ""
15002
15003 #. type: textblock
15004 #: ../fish/guestfish-actions.pod:4259
15005 msgid "See also: L</lremovexattr>, L<attr(5)>."
15006 msgstr ""
15007
15008 #. type: =head2
15009 #: ../fish/guestfish-actions.pod:4261
15010 msgid "resize2fs"
15011 msgstr ""
15012
15013 #. type: verbatim
15014 #: ../fish/guestfish-actions.pod:4263
15015 #, no-wrap
15016 msgid ""
15017 " resize2fs device\n"
15018 "\n"
15019 msgstr ""
15020
15021 #. type: textblock
15022 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6629
15023 msgid ""
15024 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15025 "underlying device."
15026 msgstr ""
15027
15028 #. type: textblock
15029 #: ../fish/guestfish-actions.pod:4268
15030 msgid ""
15031 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15032 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15033 "gives an error about this and sometimes not.  In any case, it is always safe "
15034 "to call L</e2fsck-f> before calling this function."
15035 msgstr ""
15036
15037 #. type: =head2
15038 #: ../fish/guestfish-actions.pod:4274
15039 msgid "resize2fs-M"
15040 msgstr ""
15041
15042 #. type: verbatim
15043 #: ../fish/guestfish-actions.pod:4276
15044 #, no-wrap
15045 msgid ""
15046 " resize2fs-M device\n"
15047 "\n"
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:4278
15052 msgid ""
15053 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15054 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15055 "command."
15056 msgstr ""
15057
15058 #. type: textblock
15059 #: ../fish/guestfish-actions.pod:4282
15060 msgid ""
15061 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15062 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15063 "multiplied together, give the resulting size of the minimal filesystem in "
15064 "bytes."
15065 msgstr ""
15066
15067 #. type: =head2
15068 #: ../fish/guestfish-actions.pod:4287
15069 msgid "resize2fs-size"
15070 msgstr ""
15071
15072 #. type: verbatim
15073 #: ../fish/guestfish-actions.pod:4289
15074 #, no-wrap
15075 msgid ""
15076 " resize2fs-size device size\n"
15077 "\n"
15078 msgstr ""
15079
15080 #. type: textblock
15081 #: ../fish/guestfish-actions.pod:4291
15082 msgid ""
15083 "This command is the same as L</resize2fs> except that it allows you to "
15084 "specify the new size (in bytes) explicitly."
15085 msgstr ""
15086
15087 #. type: =head2
15088 #: ../fish/guestfish-actions.pod:4294
15089 msgid "rm"
15090 msgstr ""
15091
15092 #. type: verbatim
15093 #: ../fish/guestfish-actions.pod:4296
15094 #, no-wrap
15095 msgid ""
15096 " rm path\n"
15097 "\n"
15098 msgstr ""
15099
15100 #. type: textblock
15101 #: ../fish/guestfish-actions.pod:4298 ../src/guestfs-actions.pod:6681
15102 msgid "Remove the single file C<path>."
15103 msgstr ""
15104
15105 #. type: =head2
15106 #: ../fish/guestfish-actions.pod:4300
15107 msgid "rm-rf"
15108 msgstr ""
15109
15110 #. type: verbatim
15111 #: ../fish/guestfish-actions.pod:4302
15112 #, no-wrap
15113 msgid ""
15114 " rm-rf path\n"
15115 "\n"
15116 msgstr ""
15117
15118 #. type: textblock
15119 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6693
15120 msgid ""
15121 "Remove the file or directory C<path>, recursively removing the contents if "
15122 "its a directory.  This is like the C<rm -rf> shell command."
15123 msgstr ""
15124
15125 #. type: =head2
15126 #: ../fish/guestfish-actions.pod:4308
15127 msgid "rmdir"
15128 msgstr ""
15129
15130 #. type: verbatim
15131 #: ../fish/guestfish-actions.pod:4310
15132 #, no-wrap
15133 msgid ""
15134 " rmdir path\n"
15135 "\n"
15136 msgstr ""
15137
15138 #. type: textblock
15139 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6707
15140 msgid "Remove the single directory C<path>."
15141 msgstr ""
15142
15143 #. type: =head2
15144 #: ../fish/guestfish-actions.pod:4314
15145 msgid "rmmountpoint"
15146 msgstr ""
15147
15148 #. type: verbatim
15149 #: ../fish/guestfish-actions.pod:4316
15150 #, no-wrap
15151 msgid ""
15152 " rmmountpoint exemptpath\n"
15153 "\n"
15154 msgstr ""
15155
15156 #. type: textblock
15157 #: ../fish/guestfish-actions.pod:4318
15158 msgid ""
15159 "This calls removes a mountpoint that was previously created with "
15160 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
15161 msgstr ""
15162
15163 #. type: =head2
15164 #: ../fish/guestfish-actions.pod:4322
15165 msgid "scrub-device"
15166 msgstr ""
15167
15168 #. type: verbatim
15169 #: ../fish/guestfish-actions.pod:4324
15170 #, no-wrap
15171 msgid ""
15172 " scrub-device device\n"
15173 "\n"
15174 msgstr ""
15175
15176 #. type: textblock
15177 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6733
15178 msgid ""
15179 "This command writes patterns over C<device> to make data retrieval more "
15180 "difficult."
15181 msgstr ""
15182
15183 #. type: textblock
15184 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4341 ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6736 ../src/guestfs-actions.pod:6754 ../src/guestfs-actions.pod:6773
15185 msgid ""
15186 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15187 "more details."
15188 msgstr ""
15189
15190 #. type: =head2
15191 #: ../fish/guestfish-actions.pod:4332
15192 msgid "scrub-file"
15193 msgstr ""
15194
15195 #. type: verbatim
15196 #: ../fish/guestfish-actions.pod:4334
15197 #, no-wrap
15198 msgid ""
15199 " scrub-file file\n"
15200 "\n"
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6749
15205 msgid ""
15206 "This command writes patterns over a file to make data retrieval more "
15207 "difficult."
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6752
15212 msgid "The file is I<removed> after scrubbing."
15213 msgstr ""
15214
15215 #. type: =head2
15216 #: ../fish/guestfish-actions.pod:4344
15217 msgid "scrub-freespace"
15218 msgstr ""
15219
15220 #. type: verbatim
15221 #: ../fish/guestfish-actions.pod:4346
15222 #, no-wrap
15223 msgid ""
15224 " scrub-freespace dir\n"
15225 "\n"
15226 msgstr ""
15227
15228 #. type: textblock
15229 #: ../fish/guestfish-actions.pod:4348
15230 msgid ""
15231 "This command creates the directory C<dir> and then fills it with files until "
15232 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15233 "deletes them.  The intention is to scrub any free space on the partition "
15234 "containing C<dir>."
15235 msgstr ""
15236
15237 #. type: =head2
15238 #: ../fish/guestfish-actions.pod:4357
15239 msgid "set-append"
15240 msgstr ""
15241
15242 #. type: =head2
15243 #: ../fish/guestfish-actions.pod:4359
15244 msgid "append"
15245 msgstr ""
15246
15247 #. type: verbatim
15248 #: ../fish/guestfish-actions.pod:4361
15249 #, no-wrap
15250 msgid ""
15251 " set-append append\n"
15252 "\n"
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../fish/guestfish-actions.pod:4363 ../src/guestfs-actions.pod:6786
15257 msgid ""
15258 "This function is used to add additional options to the guest kernel command "
15259 "line."
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6789
15264 msgid ""
15265 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15266 "environment variable."
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6792
15271 msgid ""
15272 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15273 "(libguestfs always adds a few of its own)."
15274 msgstr ""
15275
15276 #. type: =head2
15277 #: ../fish/guestfish-actions.pod:4372
15278 msgid "set-attach-method"
15279 msgstr ""
15280
15281 #. type: =head2
15282 #: ../fish/guestfish-actions.pod:4374
15283 msgid "attach-method"
15284 msgstr ""
15285
15286 #. type: verbatim
15287 #: ../fish/guestfish-actions.pod:4376
15288 #, no-wrap
15289 msgid ""
15290 " set-attach-method attachmethod\n"
15291 "\n"
15292 msgstr ""
15293
15294 #. type: textblock
15295 #: ../fish/guestfish-actions.pod:4378 ../src/guestfs-actions.pod:6805
15296 msgid ""
15297 "Set the method that libguestfs uses to connect to the back end guestfsd "
15298 "daemon.  Possible methods are:"
15299 msgstr ""
15300
15301 #. type: =item
15302 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6810 ../src/guestfs.pod:2916
15303 msgid "C<appliance>"
15304 msgstr ""
15305
15306 #. type: textblock
15307 #: ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6812
15308 msgid ""
15309 "Launch an appliance and connect to it.  This is the ordinary method and the "
15310 "default."
15311 msgstr ""
15312
15313 #. type: =item
15314 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6815
15315 msgid "C<unix:I<path>>"
15316 msgstr ""
15317
15318 #. type: textblock
15319 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6817
15320 msgid "Connect to the Unix domain socket I<path>."
15321 msgstr ""
15322
15323 #. type: textblock
15324 #: ../fish/guestfish-actions.pod:4392 ../src/guestfs-actions.pod:6819
15325 msgid ""
15326 "This method lets you connect to an existing daemon or (using virtio-serial) "
15327 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15328 "RUNNING DAEMONS>."
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../fish/guestfish-actions.pod:4398
15333 msgid "set-autosync"
15334 msgstr ""
15335
15336 #. type: =head2
15337 #: ../fish/guestfish-actions.pod:4400
15338 msgid "autosync"
15339 msgstr ""
15340
15341 #. type: verbatim
15342 #: ../fish/guestfish-actions.pod:4402
15343 #, no-wrap
15344 msgid ""
15345 " set-autosync true|false\n"
15346 "\n"
15347 msgstr ""
15348
15349 #. type: textblock
15350 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6835
15351 msgid ""
15352 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15353 "effort attempt to make filesystems consistent and synchronized when the "
15354 "handle is closed (also if the program exits without closing handles)."
15355 msgstr ""
15356
15357 #. type: textblock
15358 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6840
15359 msgid ""
15360 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15361 "disabled by default)."
15362 msgstr ""
15363
15364 #. type: =head2
15365 #: ../fish/guestfish-actions.pod:4412
15366 msgid "set-direct"
15367 msgstr ""
15368
15369 #. type: =head2
15370 #: ../fish/guestfish-actions.pod:4414
15371 msgid "direct"
15372 msgstr ""
15373
15374 #. type: verbatim
15375 #: ../fish/guestfish-actions.pod:4416
15376 #, no-wrap
15377 msgid ""
15378 " set-direct true|false\n"
15379 "\n"
15380 msgstr ""
15381
15382 #. type: textblock
15383 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6853
15384 msgid ""
15385 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15386 "passed directly through to the appliance once it is launched."
15387 msgstr ""
15388
15389 #. type: textblock
15390 #: ../fish/guestfish-actions.pod:4422
15391 msgid ""
15392 "One consequence of this is that log messages aren't caught by the library "
15393 "and handled by L</set-log-message-callback>, but go straight to stdout."
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6861
15398 msgid "You probably don't want to use this unless you know what you are doing."
15399 msgstr ""
15400
15401 #. type: textblock
15402 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6864
15403 msgid "The default is disabled."
15404 msgstr ""
15405
15406 #. type: =head2
15407 #: ../fish/guestfish-actions.pod:4431
15408 msgid "set-e2label"
15409 msgstr ""
15410
15411 #. type: verbatim
15412 #: ../fish/guestfish-actions.pod:4433
15413 #, no-wrap
15414 msgid ""
15415 " set-e2label device label\n"
15416 "\n"
15417 msgstr ""
15418
15419 #. type: textblock
15420 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6877
15421 msgid ""
15422 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15423 "C<label>.  Filesystem labels are limited to 16 characters."
15424 msgstr ""
15425
15426 #. type: textblock
15427 #: ../fish/guestfish-actions.pod:4439
15428 msgid ""
15429 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15430 "label on a filesystem."
15431 msgstr ""
15432
15433 #. type: =head2
15434 #: ../fish/guestfish-actions.pod:4442
15435 msgid "set-e2uuid"
15436 msgstr ""
15437
15438 #. type: verbatim
15439 #: ../fish/guestfish-actions.pod:4444
15440 #, no-wrap
15441 msgid ""
15442 " set-e2uuid device uuid\n"
15443 "\n"
15444 msgstr ""
15445
15446 #. type: textblock
15447 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6895
15448 msgid ""
15449 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15450 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15451 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-actions.pod:4451
15456 msgid ""
15457 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15458 "UUID of a filesystem."
15459 msgstr ""
15460
15461 #. type: =head2
15462 #: ../fish/guestfish-actions.pod:4454
15463 msgid "set-memsize"
15464 msgstr ""
15465
15466 #. type: =head2
15467 #: ../fish/guestfish-actions.pod:4456
15468 msgid "memsize"
15469 msgstr ""
15470
15471 #. type: verbatim
15472 #: ../fish/guestfish-actions.pod:4458
15473 #, no-wrap
15474 msgid ""
15475 " set-memsize memsize\n"
15476 "\n"
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../fish/guestfish-actions.pod:4460
15481 msgid ""
15482 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15483 "This only has any effect if called before L</launch>."
15484 msgstr ""
15485
15486 #. type: textblock
15487 #: ../fish/guestfish-actions.pod:4464 ../src/guestfs-actions.pod:6917
15488 msgid ""
15489 "You can also change this by setting the environment variable "
15490 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15491 msgstr ""
15492
15493 #. type: =head2
15494 #: ../fish/guestfish-actions.pod:4471
15495 msgid "set-network"
15496 msgstr ""
15497
15498 #. type: =head2
15499 #: ../fish/guestfish-actions.pod:4473
15500 msgid "network"
15501 msgstr ""
15502
15503 #. type: verbatim
15504 #: ../fish/guestfish-actions.pod:4475
15505 #, no-wrap
15506 msgid ""
15507 " set-network true|false\n"
15508 "\n"
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
15513 msgid ""
15514 "If C<network> is true, then the network is enabled in the libguestfs "
15515 "appliance.  The default is false."
15516 msgstr ""
15517
15518 #. type: textblock
15519 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6937
15520 msgid ""
15521 "This affects whether commands are able to access the network (see "
15522 "L<guestfs(3)/RUNNING COMMANDS>)."
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4483
15527 msgid "You must call this before calling L</launch>, otherwise it has no effect."
15528 msgstr ""
15529
15530 #. type: =head2
15531 #: ../fish/guestfish-actions.pod:4486
15532 msgid "set-path"
15533 msgstr ""
15534
15535 #. type: verbatim
15536 #: ../fish/guestfish-actions.pod:4490
15537 #, no-wrap
15538 msgid ""
15539 " set-path searchpath\n"
15540 "\n"
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../fish/guestfish-actions.pod:4492 ../src/guestfs-actions.pod:6953
15545 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15546 msgstr ""
15547
15548 #. type: textblock
15549 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6955
15550 msgid ""
15551 "The default is C<$libdir/guestfs> unless overridden by setting "
15552 "C<LIBGUESTFS_PATH> environment variable."
15553 msgstr ""
15554
15555 #. type: textblock
15556 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6958
15557 msgid "Setting C<path> to C<NULL> restores the default path."
15558 msgstr ""
15559
15560 #. type: =head2
15561 #: ../fish/guestfish-actions.pod:4499
15562 msgid "set-pgroup"
15563 msgstr ""
15564
15565 #. type: =head2
15566 #: ../fish/guestfish-actions.pod:4501
15567 msgid "pgroup"
15568 msgstr ""
15569
15570 #. type: verbatim
15571 #: ../fish/guestfish-actions.pod:4503
15572 #, no-wrap
15573 msgid ""
15574 " set-pgroup true|false\n"
15575 "\n"
15576 msgstr ""
15577
15578 #. type: textblock
15579 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6970
15580 msgid ""
15581 "If C<pgroup> is true, child processes are placed into their own process "
15582 "group."
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
15587 msgid ""
15588 "The practical upshot of this is that signals like C<SIGINT> (from users "
15589 "pressing C<^C>) won't be received by the child process."
15590 msgstr ""
15591
15592 #. type: textblock
15593 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
15594 msgid ""
15595 "The default for this flag is false, because usually you want C<^C> to kill "
15596 "the subprocess."
15597 msgstr ""
15598
15599 #. type: =head2
15600 #: ../fish/guestfish-actions.pod:4514
15601 msgid "set-qemu"
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../fish/guestfish-actions.pod:4516
15606 msgid "qemu"
15607 msgstr ""
15608
15609 #. type: verbatim
15610 #: ../fish/guestfish-actions.pod:4518
15611 #, no-wrap
15612 msgid ""
15613 " set-qemu qemu\n"
15614 "\n"
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6989
15619 msgid "Set the qemu binary that we will use."
15620 msgstr ""
15621
15622 #. type: textblock
15623 #: ../fish/guestfish-actions.pod:4522 ../src/guestfs-actions.pod:6991
15624 msgid "The default is chosen when the library was compiled by the configure script."
15625 msgstr ""
15626
15627 #. type: textblock
15628 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
15629 msgid ""
15630 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15631 "variable."
15632 msgstr ""
15633
15634 #. type: textblock
15635 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
15636 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6999
15641 msgid ""
15642 "Note that you should call this function as early as possible after creating "
15643 "the handle.  This is because some pre-launch operations depend on testing "
15644 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15645 "don't retest features, and so you might see inconsistent results.  Using the "
15646 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15647 "the qemu binary at the same time as the handle is created."
15648 msgstr ""
15649
15650 #. type: =head2
15651 #: ../fish/guestfish-actions.pod:4538
15652 msgid "set-recovery-proc"
15653 msgstr ""
15654
15655 #. type: =head2
15656 #: ../fish/guestfish-actions.pod:4540
15657 msgid "recovery-proc"
15658 msgstr ""
15659
15660 #. type: verbatim
15661 #: ../fish/guestfish-actions.pod:4542
15662 #, no-wrap
15663 msgid ""
15664 " set-recovery-proc true|false\n"
15665 "\n"
15666 msgstr ""
15667
15668 #. type: textblock
15669 #: ../fish/guestfish-actions.pod:4544
15670 msgid ""
15671 "If this is called with the parameter C<false> then L</launch> does not "
15672 "create a recovery process.  The purpose of the recovery process is to stop "
15673 "runaway qemu processes in the case where the main program aborts abruptly."
15674 msgstr ""
15675
15676 #. type: textblock
15677 #: ../fish/guestfish-actions.pod:4549
15678 msgid ""
15679 "This only has any effect if called before L</launch>, and the default is "
15680 "true."
15681 msgstr ""
15682
15683 #. type: textblock
15684 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:7025
15685 msgid ""
15686 "About the only time when you would want to disable this is if the main "
15687 "process will fork itself into the background (\"daemonize\" itself).  In "
15688 "this case the recovery process thinks that the main program has disappeared "
15689 "and so kills qemu, which is not very helpful."
15690 msgstr ""
15691
15692 #. type: =head2
15693 #: ../fish/guestfish-actions.pod:4558
15694 msgid "set-selinux"
15695 msgstr ""
15696
15697 #. type: =head2
15698 #: ../fish/guestfish-actions.pod:4560
15699 msgid "selinux"
15700 msgstr ""
15701
15702 #. type: verbatim
15703 #: ../fish/guestfish-actions.pod:4562
15704 #, no-wrap
15705 msgid ""
15706 " set-selinux true|false\n"
15707 "\n"
15708 msgstr ""
15709
15710 #. type: textblock
15711 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:7041
15712 msgid ""
15713 "This sets the selinux flag that is passed to the appliance at boot time.  "
15714 "The default is C<selinux=0> (disabled)."
15715 msgstr ""
15716
15717 #. type: textblock
15718 #: ../fish/guestfish-actions.pod:4567 ../src/guestfs-actions.pod:7044
15719 msgid ""
15720 "Note that if SELinux is enabled, it is always in Permissive mode "
15721 "(C<enforcing=0>)."
15722 msgstr ""
15723
15724 #. type: =head2
15725 #: ../fish/guestfish-actions.pod:4573
15726 msgid "set-smp"
15727 msgstr ""
15728
15729 #. type: =head2
15730 #: ../fish/guestfish-actions.pod:4575
15731 msgid "smp"
15732 msgstr ""
15733
15734 #. type: verbatim
15735 #: ../fish/guestfish-actions.pod:4577
15736 #, no-wrap
15737 msgid ""
15738 " set-smp smp\n"
15739 "\n"
15740 msgstr ""
15741
15742 #. type: textblock
15743 #: ../fish/guestfish-actions.pod:4579 ../src/guestfs-actions.pod:7060
15744 msgid ""
15745 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15746 "C<1>.  Increasing this may improve performance, though often it has no "
15747 "effect."
15748 msgstr ""
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-actions.pod:4583
15752 msgid "This function must be called before L</launch>."
15753 msgstr ""
15754
15755 #. type: =head2
15756 #: ../fish/guestfish-actions.pod:4585
15757 msgid "set-trace"
15758 msgstr ""
15759
15760 #. type: =head2
15761 #: ../fish/guestfish-actions.pod:4587
15762 msgid "trace"
15763 msgstr ""
15764
15765 #. type: verbatim
15766 #: ../fish/guestfish-actions.pod:4589
15767 #, no-wrap
15768 msgid ""
15769 " set-trace true|false\n"
15770 "\n"
15771 msgstr ""
15772
15773 #. type: textblock
15774 #: ../fish/guestfish-actions.pod:4591 ../src/guestfs-actions.pod:7076
15775 msgid ""
15776 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15777 "return values are traced."
15778 msgstr ""
15779
15780 #. type: textblock
15781 #: ../fish/guestfish-actions.pod:4594 ../src/guestfs-actions.pod:7079
15782 msgid ""
15783 "If you want to trace C API calls into libguestfs (and other libraries) then "
15784 "possibly a better way is to use the external ltrace(1) command."
15785 msgstr ""
15786
15787 #. type: textblock
15788 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
15789 msgid ""
15790 "Command traces are disabled unless the environment variable "
15791 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15792 msgstr ""
15793
15794 #. type: textblock
15795 #: ../fish/guestfish-actions.pod:4601
15796 msgid ""
15797 "Trace messages are normally sent to C<stderr>, unless you register a "
15798 "callback to send them somewhere else (see L</set-event-callback>)."
15799 msgstr ""
15800
15801 #. type: =head2
15802 #: ../fish/guestfish-actions.pod:4605
15803 msgid "set-verbose"
15804 msgstr ""
15805
15806 #. type: =head2
15807 #: ../fish/guestfish-actions.pod:4607
15808 msgid "verbose"
15809 msgstr ""
15810
15811 #. type: verbatim
15812 #: ../fish/guestfish-actions.pod:4609
15813 #, no-wrap
15814 msgid ""
15815 " set-verbose true|false\n"
15816 "\n"
15817 msgstr ""
15818
15819 #. type: textblock
15820 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:7100
15821 msgid "If C<verbose> is true, this turns on verbose messages."
15822 msgstr ""
15823
15824 #. type: textblock
15825 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
15826 msgid ""
15827 "Verbose messages are disabled unless the environment variable "
15828 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15829 msgstr ""
15830
15831 #. type: textblock
15832 #: ../fish/guestfish-actions.pod:4616
15833 msgid ""
15834 "Verbose messages are normally sent to C<stderr>, unless you register a "
15835 "callback to send them somewhere else (see L</set-event-callback>)."
15836 msgstr ""
15837
15838 #. type: =head2
15839 #: ../fish/guestfish-actions.pod:4620
15840 msgid "setcon"
15841 msgstr ""
15842
15843 #. type: verbatim
15844 #: ../fish/guestfish-actions.pod:4622
15845 #, no-wrap
15846 msgid ""
15847 " setcon context\n"
15848 "\n"
15849 msgstr ""
15850
15851 #. type: textblock
15852 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:7119
15853 msgid ""
15854 "This sets the SELinux security context of the daemon to the string "
15855 "C<context>."
15856 msgstr ""
15857
15858 #. type: textblock
15859 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:7122
15860 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15861 msgstr ""
15862
15863 #. type: =head2
15864 #: ../fish/guestfish-actions.pod:4629
15865 msgid "setxattr"
15866 msgstr ""
15867
15868 #. type: verbatim
15869 #: ../fish/guestfish-actions.pod:4631
15870 #, no-wrap
15871 msgid ""
15872 " setxattr xattr val vallen path\n"
15873 "\n"
15874 msgstr ""
15875
15876 #. type: textblock
15877 #: ../fish/guestfish-actions.pod:4633 ../src/guestfs-actions.pod:7137
15878 msgid ""
15879 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15880 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15881 msgstr ""
15882
15883 #. type: textblock
15884 #: ../fish/guestfish-actions.pod:4637
15885 msgid "See also: L</lsetxattr>, L<attr(5)>."
15886 msgstr ""
15887
15888 #. type: =head2
15889 #: ../fish/guestfish-actions.pod:4639
15890 msgid "sfdisk"
15891 msgstr ""
15892
15893 #. type: verbatim
15894 #: ../fish/guestfish-actions.pod:4641
15895 #, no-wrap
15896 msgid ""
15897 " sfdisk device cyls heads sectors 'lines ...'\n"
15898 "\n"
15899 msgstr ""
15900
15901 #. type: textblock
15902 #: ../fish/guestfish-actions.pod:4643 ../src/guestfs-actions.pod:7164
15903 msgid ""
15904 "This is a direct interface to the L<sfdisk(8)> program for creating "
15905 "partitions on block devices."
15906 msgstr ""
15907
15908 #. type: textblock
15909 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7167
15910 msgid "C<device> should be a block device, for example C</dev/sda>."
15911 msgstr ""
15912
15913 #. type: textblock
15914 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7169
15915 msgid ""
15916 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15917 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15918 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15919 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15920 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15921 "the kernel) cannot work out the right geometry and you will need to tell it."
15922 msgstr ""
15923
15924 #. type: textblock
15925 #: ../fish/guestfish-actions.pod:4656 ../src/guestfs-actions.pod:7177
15926 msgid ""
15927 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15928 "refer to the L<sfdisk(8)> manpage."
15929 msgstr ""
15930
15931 #. type: textblock
15932 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7180
15933 msgid ""
15934 "To create a single partition occupying the whole disk, you would pass "
15935 "C<lines> as a single element list, when the single element being the string "
15936 "C<,> (comma)."
15937 msgstr ""
15938
15939 #. type: textblock
15940 #: ../fish/guestfish-actions.pod:4663
15941 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15942 msgstr ""
15943
15944 #. type: textblock
15945 #: ../fish/guestfish-actions.pod:4666 ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4705
15946 msgid ""
15947 "I<This function is deprecated.> In new code, use the L</part_add> call "
15948 "instead."
15949 msgstr ""
15950
15951 #. type: =head2
15952 #: ../fish/guestfish-actions.pod:4673
15953 msgid "sfdiskM"
15954 msgstr ""
15955
15956 #. type: verbatim
15957 #: ../fish/guestfish-actions.pod:4675
15958 #, no-wrap
15959 msgid ""
15960 " sfdiskM device 'lines ...'\n"
15961 "\n"
15962 msgstr ""
15963
15964 #. type: textblock
15965 #: ../fish/guestfish-actions.pod:4677
15966 msgid ""
15967 "This is a simplified interface to the L</sfdisk> command, where partition "
15968 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15969 "you don't need to specify the cyls, heads and sectors parameters which were "
15970 "rarely if ever used anyway."
15971 msgstr ""
15972
15973 #. type: textblock
15974 #: ../fish/guestfish-actions.pod:4683
15975 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15976 msgstr ""
15977
15978 #. type: =head2
15979 #: ../fish/guestfish-actions.pod:4693
15980 msgid "sfdisk-N"
15981 msgstr ""
15982
15983 #. type: verbatim
15984 #: ../fish/guestfish-actions.pod:4695
15985 #, no-wrap
15986 msgid ""
15987 " sfdisk-N device partnum cyls heads sectors line\n"
15988 "\n"
15989 msgstr ""
15990
15991 #. type: textblock
15992 #: ../fish/guestfish-actions.pod:4697 ../src/guestfs-actions.pod:7236
15993 msgid ""
15994 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15995 "(note: C<n> counts from 1)."
15996 msgstr ""
15997
15998 #. type: textblock
15999 #: ../fish/guestfish-actions.pod:4700
16000 msgid ""
16001 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16002 "cyls/heads/sectors parameters."
16003 msgstr ""
16004
16005 #. type: textblock
16006 #: ../fish/guestfish-actions.pod:4703
16007 msgid "See also: L</part-add>"
16008 msgstr ""
16009
16010 #. type: =head2
16011 #: ../fish/guestfish-actions.pod:4712
16012 msgid "sfdisk-disk-geometry"
16013 msgstr ""
16014
16015 #. type: verbatim
16016 #: ../fish/guestfish-actions.pod:4714
16017 #, no-wrap
16018 msgid ""
16019 " sfdisk-disk-geometry device\n"
16020 "\n"
16021 msgstr ""
16022
16023 #. type: textblock
16024 #: ../fish/guestfish-actions.pod:4716
16025 msgid ""
16026 "This displays the disk geometry of C<device> read from the partition table.  "
16027 "Especially in the case where the underlying block device has been resized, "
16028 "this can be different from the kernel's idea of the geometry (see "
16029 "L</sfdisk-kernel-geometry>)."
16030 msgstr ""
16031
16032 #. type: textblock
16033 #: ../fish/guestfish-actions.pod:4721 ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7275
16034 msgid "The result is in human-readable format, and not designed to be parsed."
16035 msgstr ""
16036
16037 #. type: =head2
16038 #: ../fish/guestfish-actions.pod:4724
16039 msgid "sfdisk-kernel-geometry"
16040 msgstr ""
16041
16042 #. type: verbatim
16043 #: ../fish/guestfish-actions.pod:4726
16044 #, no-wrap
16045 msgid ""
16046 " sfdisk-kernel-geometry device\n"
16047 "\n"
16048 msgstr ""
16049
16050 #. type: textblock
16051 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7273
16052 msgid "This displays the kernel's idea of the geometry of C<device>."
16053 msgstr ""
16054
16055 #. type: =head2
16056 #: ../fish/guestfish-actions.pod:4733
16057 msgid "sfdisk-l"
16058 msgstr ""
16059
16060 #. type: verbatim
16061 #: ../fish/guestfish-actions.pod:4735
16062 #, no-wrap
16063 msgid ""
16064 " sfdisk-l device\n"
16065 "\n"
16066 msgstr ""
16067
16068 #. type: textblock
16069 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7296
16070 msgid ""
16071 "This displays the partition table on C<device>, in the human-readable output "
16072 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16073 msgstr ""
16074
16075 #. type: textblock
16076 #: ../fish/guestfish-actions.pod:4741
16077 msgid "See also: L</part-list>"
16078 msgstr ""
16079
16080 #. type: textblock
16081 #: ../fish/guestfish-actions.pod:4743
16082 msgid ""
16083 "I<This function is deprecated.> In new code, use the L</part_list> call "
16084 "instead."
16085 msgstr ""
16086
16087 #. type: =head2
16088 #: ../fish/guestfish-actions.pod:4750
16089 msgid "sh"
16090 msgstr ""
16091
16092 #. type: verbatim
16093 #: ../fish/guestfish-actions.pod:4752
16094 #, no-wrap
16095 msgid ""
16096 " sh command\n"
16097 "\n"
16098 msgstr ""
16099
16100 #. type: textblock
16101 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7313
16102 msgid ""
16103 "This call runs a command from the guest filesystem via the guest's "
16104 "C</bin/sh>."
16105 msgstr ""
16106
16107 #. type: textblock
16108 #: ../fish/guestfish-actions.pod:4757
16109 msgid "This is like L</command>, but passes the command to:"
16110 msgstr ""
16111
16112 #. type: verbatim
16113 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7318
16114 #, no-wrap
16115 msgid ""
16116 " /bin/sh -c \"command\"\n"
16117 "\n"
16118 msgstr ""
16119
16120 #. type: textblock
16121 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7320
16122 msgid ""
16123 "Depending on the guest's shell, this usually results in wildcards being "
16124 "expanded, shell expressions being interpolated and so on."
16125 msgstr ""
16126
16127 #. type: textblock
16128 #: ../fish/guestfish-actions.pod:4765
16129 msgid "All the provisos about L</command> apply to this call."
16130 msgstr ""
16131
16132 #. type: =head2
16133 #: ../fish/guestfish-actions.pod:4767
16134 msgid "sh-lines"
16135 msgstr ""
16136
16137 #. type: verbatim
16138 #: ../fish/guestfish-actions.pod:4769
16139 #, no-wrap
16140 msgid ""
16141 " sh-lines command\n"
16142 "\n"
16143 msgstr ""
16144
16145 #. type: textblock
16146 #: ../fish/guestfish-actions.pod:4771
16147 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16148 msgstr ""
16149
16150 #. type: textblock
16151 #: ../fish/guestfish-actions.pod:4774
16152 msgid "See also: L</command-lines>"
16153 msgstr ""
16154
16155 #. type: =head2
16156 #: ../fish/guestfish-actions.pod:4776
16157 msgid "sleep"
16158 msgstr ""
16159
16160 #. type: verbatim
16161 #: ../fish/guestfish-actions.pod:4778
16162 #, no-wrap
16163 msgid ""
16164 " sleep secs\n"
16165 "\n"
16166 msgstr ""
16167
16168 #. type: textblock
16169 #: ../fish/guestfish-actions.pod:4780 ../src/guestfs-actions.pod:7354
16170 msgid "Sleep for C<secs> seconds."
16171 msgstr ""
16172
16173 #. type: =head2
16174 #: ../fish/guestfish-actions.pod:4782
16175 msgid "stat"
16176 msgstr ""
16177
16178 #. type: verbatim
16179 #: ../fish/guestfish-actions.pod:4784
16180 #, no-wrap
16181 msgid ""
16182 " stat path\n"
16183 "\n"
16184 msgstr ""
16185
16186 #. type: textblock
16187 #: ../fish/guestfish-actions.pod:4788 ../src/guestfs-actions.pod:7368
16188 msgid "This is the same as the C<stat(2)> system call."
16189 msgstr ""
16190
16191 #. type: =head2
16192 #: ../fish/guestfish-actions.pod:4790
16193 msgid "statvfs"
16194 msgstr ""
16195
16196 #. type: verbatim
16197 #: ../fish/guestfish-actions.pod:4792
16198 #, no-wrap
16199 msgid ""
16200 " statvfs path\n"
16201 "\n"
16202 msgstr ""
16203
16204 #. type: textblock
16205 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7382
16206 msgid ""
16207 "Returns file system statistics for any mounted file system.  C<path> should "
16208 "be a file or directory in the mounted file system (typically it is the mount "
16209 "point itself, but it doesn't need to be)."
16210 msgstr ""
16211
16212 #. type: textblock
16213 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7386
16214 msgid "This is the same as the C<statvfs(2)> system call."
16215 msgstr ""
16216
16217 #. type: =head2
16218 #: ../fish/guestfish-actions.pod:4800
16219 msgid "strings"
16220 msgstr ""
16221
16222 #. type: verbatim
16223 #: ../fish/guestfish-actions.pod:4802
16224 #, no-wrap
16225 msgid ""
16226 " strings path\n"
16227 "\n"
16228 msgstr ""
16229
16230 #. type: textblock
16231 #: ../fish/guestfish-actions.pod:4804 ../src/guestfs-actions.pod:7400
16232 msgid ""
16233 "This runs the L<strings(1)> command on a file and returns the list of "
16234 "printable strings found."
16235 msgstr ""
16236
16237 #. type: =head2
16238 #: ../fish/guestfish-actions.pod:4810
16239 msgid "strings-e"
16240 msgstr ""
16241
16242 #. type: verbatim
16243 #: ../fish/guestfish-actions.pod:4812
16244 #, no-wrap
16245 msgid ""
16246 " strings-e encoding path\n"
16247 "\n"
16248 msgstr ""
16249
16250 #. type: textblock
16251 #: ../fish/guestfish-actions.pod:4814
16252 msgid ""
16253 "This is like the L</strings> command, but allows you to specify the encoding "
16254 "of strings that are looked for in the source file C<path>."
16255 msgstr ""
16256
16257 #. type: textblock
16258 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7423
16259 msgid "Allowed encodings are:"
16260 msgstr ""
16261
16262 #. type: =item
16263 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7427
16264 msgid "s"
16265 msgstr ""
16266
16267 #. type: textblock
16268 #: ../fish/guestfish-actions.pod:4824
16269 msgid ""
16270 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16271 "ISO-8859-X (this is what L</strings> uses)."
16272 msgstr ""
16273
16274 #. type: =item
16275 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7432
16276 msgid "S"
16277 msgstr ""
16278
16279 #. type: textblock
16280 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7434
16281 msgid "Single 8-bit-byte characters."
16282 msgstr ""
16283
16284 #. type: =item
16285 #: ../fish/guestfish-actions.pod:4831 ../src/guestfs-actions.pod:7436
16286 msgid "b"
16287 msgstr ""
16288
16289 #. type: textblock
16290 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7438
16291 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16292 msgstr ""
16293
16294 #. type: =item
16295 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7441
16296 msgid "l (lower case letter L)"
16297 msgstr ""
16298
16299 #. type: textblock
16300 #: ../fish/guestfish-actions.pod:4838 ../src/guestfs-actions.pod:7443
16301 msgid ""
16302 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16303 "examining binaries in Windows guests."
16304 msgstr ""
16305
16306 #. type: =item
16307 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7446
16308 msgid "B"
16309 msgstr ""
16310
16311 #. type: textblock
16312 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7448
16313 msgid "32-bit big endian such as UCS-4BE."
16314 msgstr ""
16315
16316 #. type: =item
16317 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7450
16318 msgid "L"
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7452
16323 msgid "32-bit little endian such as UCS-4LE."
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7456
16328 msgid "The returned strings are transcoded to UTF-8."
16329 msgstr ""
16330
16331 #. type: =head2
16332 #: ../fish/guestfish-actions.pod:4856
16333 msgid "swapoff-device"
16334 msgstr ""
16335
16336 #. type: verbatim
16337 #: ../fish/guestfish-actions.pod:4858
16338 #, no-wrap
16339 msgid ""
16340 " swapoff-device device\n"
16341 "\n"
16342 msgstr ""
16343
16344 #. type: textblock
16345 #: ../fish/guestfish-actions.pod:4860
16346 msgid ""
16347 "This command disables the libguestfs appliance swap device or partition "
16348 "named C<device>.  See L</swapon-device>."
16349 msgstr ""
16350
16351 #. type: =head2
16352 #: ../fish/guestfish-actions.pod:4864
16353 msgid "swapoff-file"
16354 msgstr ""
16355
16356 #. type: verbatim
16357 #: ../fish/guestfish-actions.pod:4866
16358 #, no-wrap
16359 msgid ""
16360 " swapoff-file file\n"
16361 "\n"
16362 msgstr ""
16363
16364 #. type: textblock
16365 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7487
16366 msgid "This command disables the libguestfs appliance swap on file."
16367 msgstr ""
16368
16369 #. type: =head2
16370 #: ../fish/guestfish-actions.pod:4870
16371 msgid "swapoff-label"
16372 msgstr ""
16373
16374 #. type: verbatim
16375 #: ../fish/guestfish-actions.pod:4872
16376 #, no-wrap
16377 msgid ""
16378 " swapoff-label label\n"
16379 "\n"
16380 msgstr ""
16381
16382 #. type: textblock
16383 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7499
16384 msgid ""
16385 "This command disables the libguestfs appliance swap on labeled swap "
16386 "partition."
16387 msgstr ""
16388
16389 #. type: =head2
16390 #: ../fish/guestfish-actions.pod:4877
16391 msgid "swapoff-uuid"
16392 msgstr ""
16393
16394 #. type: verbatim
16395 #: ../fish/guestfish-actions.pod:4879
16396 #, no-wrap
16397 msgid ""
16398 " swapoff-uuid uuid\n"
16399 "\n"
16400 msgstr ""
16401
16402 #. type: textblock
16403 #: ../fish/guestfish-actions.pod:4881 ../src/guestfs-actions.pod:7512
16404 msgid ""
16405 "This command disables the libguestfs appliance swap partition with the given "
16406 "UUID."
16407 msgstr ""
16408
16409 #. type: =head2
16410 #: ../fish/guestfish-actions.pod:4884
16411 msgid "swapon-device"
16412 msgstr ""
16413
16414 #. type: verbatim
16415 #: ../fish/guestfish-actions.pod:4886
16416 #, no-wrap
16417 msgid ""
16418 " swapon-device device\n"
16419 "\n"
16420 msgstr ""
16421
16422 #. type: textblock
16423 #: ../fish/guestfish-actions.pod:4888
16424 msgid ""
16425 "This command enables the libguestfs appliance to use the swap device or "
16426 "partition named C<device>.  The increased memory is made available for all "
16427 "commands, for example those run using L</command> or L</sh>."
16428 msgstr ""
16429
16430 #. type: textblock
16431 #: ../fish/guestfish-actions.pod:4893 ../src/guestfs-actions.pod:7530
16432 msgid ""
16433 "Note that you should not swap to existing guest swap partitions unless you "
16434 "know what you are doing.  They may contain hibernation information, or other "
16435 "information that the guest doesn't want you to trash.  You also risk leaking "
16436 "information about the host to the guest this way.  Instead, attach a new "
16437 "host device to the guest and swap on that."
16438 msgstr ""
16439
16440 #. type: =head2
16441 #: ../fish/guestfish-actions.pod:4900
16442 msgid "swapon-file"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../fish/guestfish-actions.pod:4902
16447 #, no-wrap
16448 msgid ""
16449 " swapon-file file\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish-actions.pod:4904
16455 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
16456 msgstr ""
16457
16458 #. type: =head2
16459 #: ../fish/guestfish-actions.pod:4907
16460 msgid "swapon-label"
16461 msgstr ""
16462
16463 #. type: verbatim
16464 #: ../fish/guestfish-actions.pod:4909
16465 #, no-wrap
16466 msgid ""
16467 " swapon-label label\n"
16468 "\n"
16469 msgstr ""
16470
16471 #. type: textblock
16472 #: ../fish/guestfish-actions.pod:4911
16473 msgid ""
16474 "This command enables swap to a labeled swap partition.  See "
16475 "L</swapon-device> for other notes."
16476 msgstr ""
16477
16478 #. type: =head2
16479 #: ../fish/guestfish-actions.pod:4914
16480 msgid "swapon-uuid"
16481 msgstr ""
16482
16483 #. type: verbatim
16484 #: ../fish/guestfish-actions.pod:4916
16485 #, no-wrap
16486 msgid ""
16487 " swapon-uuid uuid\n"
16488 "\n"
16489 msgstr ""
16490
16491 #. type: textblock
16492 #: ../fish/guestfish-actions.pod:4918
16493 msgid ""
16494 "This command enables swap to a swap partition with the given UUID.  See "
16495 "L</swapon-device> for other notes."
16496 msgstr ""
16497
16498 #. type: =head2
16499 #: ../fish/guestfish-actions.pod:4921
16500 msgid "sync"
16501 msgstr ""
16502
16503 #. type: verbatim
16504 #: ../fish/guestfish-actions.pod:4923
16505 #, no-wrap
16506 msgid ""
16507 " sync\n"
16508 "\n"
16509 msgstr ""
16510
16511 #. type: textblock
16512 #: ../fish/guestfish-actions.pod:4925 ../src/guestfs-actions.pod:7585
16513 msgid ""
16514 "This syncs the disk, so that any writes are flushed through to the "
16515 "underlying disk image."
16516 msgstr ""
16517
16518 #. type: textblock
16519 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7588
16520 msgid ""
16521 "You should always call this if you have modified a disk image, before "
16522 "closing the handle."
16523 msgstr ""
16524
16525 #. type: =head2
16526 #: ../fish/guestfish-actions.pod:4931
16527 msgid "tail"
16528 msgstr ""
16529
16530 #. type: verbatim
16531 #: ../fish/guestfish-actions.pod:4933
16532 #, no-wrap
16533 msgid ""
16534 " tail path\n"
16535 "\n"
16536 msgstr ""
16537
16538 #. type: textblock
16539 #: ../fish/guestfish-actions.pod:4935 ../src/guestfs-actions.pod:7601
16540 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16541 msgstr ""
16542
16543 #. type: =head2
16544 #: ../fish/guestfish-actions.pod:4941
16545 msgid "tail-n"
16546 msgstr ""
16547
16548 #. type: verbatim
16549 #: ../fish/guestfish-actions.pod:4943
16550 #, no-wrap
16551 msgid ""
16552 " tail-n nrlines path\n"
16553 "\n"
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7620
16558 msgid ""
16559 "If the parameter C<nrlines> is a positive number, this returns the last "
16560 "C<nrlines> lines of the file C<path>."
16561 msgstr ""
16562
16563 #. type: textblock
16564 #: ../fish/guestfish-actions.pod:4948 ../src/guestfs-actions.pod:7623
16565 msgid ""
16566 "If the parameter C<nrlines> is a negative number, this returns lines from "
16567 "the file C<path>, starting with the C<-nrlines>th line."
16568 msgstr ""
16569
16570 #. type: =head2
16571 #: ../fish/guestfish-actions.pod:4956
16572 msgid "tar-in"
16573 msgstr ""
16574
16575 #. type: verbatim
16576 #: ../fish/guestfish-actions.pod:4958
16577 #, no-wrap
16578 msgid ""
16579 " tar-in (tarfile|-) directory\n"
16580 "\n"
16581 msgstr ""
16582
16583 #. type: textblock
16584 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7644
16585 msgid ""
16586 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16587 "tar file) into C<directory>."
16588 msgstr ""
16589
16590 #. type: textblock
16591 #: ../fish/guestfish-actions.pod:4963
16592 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16593 msgstr ""
16594
16595 #. type: =head2
16596 #: ../fish/guestfish-actions.pod:4968
16597 msgid "tar-out"
16598 msgstr ""
16599
16600 #. type: verbatim
16601 #: ../fish/guestfish-actions.pod:4970
16602 #, no-wrap
16603 msgid ""
16604 " tar-out directory (tarfile|-)\n"
16605 "\n"
16606 msgstr ""
16607
16608 #. type: textblock
16609 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7661
16610 msgid ""
16611 "This command packs the contents of C<directory> and downloads it to local "
16612 "file C<tarfile>."
16613 msgstr ""
16614
16615 #. type: textblock
16616 #: ../fish/guestfish-actions.pod:4975
16617 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16618 msgstr ""
16619
16620 #. type: =head2
16621 #: ../fish/guestfish-actions.pod:4980
16622 msgid "tgz-in"
16623 msgstr ""
16624
16625 #. type: verbatim
16626 #: ../fish/guestfish-actions.pod:4982
16627 #, no-wrap
16628 msgid ""
16629 " tgz-in (tarball|-) directory\n"
16630 "\n"
16631 msgstr ""
16632
16633 #. type: textblock
16634 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7678
16635 msgid ""
16636 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16637 "tar file) into C<directory>."
16638 msgstr ""
16639
16640 #. type: textblock
16641 #: ../fish/guestfish-actions.pod:4987
16642 msgid "To upload an uncompressed tarball, use L</tar-in>."
16643 msgstr ""
16644
16645 #. type: =head2
16646 #: ../fish/guestfish-actions.pod:4991
16647 msgid "tgz-out"
16648 msgstr ""
16649
16650 #. type: verbatim
16651 #: ../fish/guestfish-actions.pod:4993
16652 #, no-wrap
16653 msgid ""
16654 " tgz-out directory (tarball|-)\n"
16655 "\n"
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7694
16660 msgid ""
16661 "This command packs the contents of C<directory> and downloads it to local "
16662 "file C<tarball>."
16663 msgstr ""
16664
16665 #. type: textblock
16666 #: ../fish/guestfish-actions.pod:4998
16667 msgid "To download an uncompressed tarball, use L</tar-out>."
16668 msgstr ""
16669
16670 #. type: =head2
16671 #: ../fish/guestfish-actions.pod:5002
16672 msgid "touch"
16673 msgstr ""
16674
16675 #. type: verbatim
16676 #: ../fish/guestfish-actions.pod:5004
16677 #, no-wrap
16678 msgid ""
16679 " touch path\n"
16680 "\n"
16681 msgstr ""
16682
16683 #. type: textblock
16684 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
16685 msgid ""
16686 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16687 "timestamps on a file, or, if the file does not exist, to create a new "
16688 "zero-length file."
16689 msgstr ""
16690
16691 #. type: textblock
16692 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7713
16693 msgid ""
16694 "This command only works on regular files, and will fail on other file types "
16695 "such as directories, symbolic links, block special etc."
16696 msgstr ""
16697
16698 #. type: =head2
16699 #: ../fish/guestfish-actions.pod:5013
16700 msgid "truncate"
16701 msgstr ""
16702
16703 #. type: verbatim
16704 #: ../fish/guestfish-actions.pod:5015
16705 #, no-wrap
16706 msgid ""
16707 " truncate path\n"
16708 "\n"
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7726
16713 msgid ""
16714 "This command truncates C<path> to a zero-length file.  The file must exist "
16715 "already."
16716 msgstr ""
16717
16718 #. type: =head2
16719 #: ../fish/guestfish-actions.pod:5020
16720 msgid "truncate-size"
16721 msgstr ""
16722
16723 #. type: verbatim
16724 #: ../fish/guestfish-actions.pod:5022
16725 #, no-wrap
16726 msgid ""
16727 " truncate-size path size\n"
16728 "\n"
16729 msgstr ""
16730
16731 #. type: textblock
16732 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7740
16733 msgid ""
16734 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16735 "already."
16736 msgstr ""
16737
16738 #. type: textblock
16739 #: ../fish/guestfish-actions.pod:5027
16740 msgid ""
16741 "If the current file size is less than C<size> then the file is extended to "
16742 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16743 "blocks are not allocated for the file until you write to it).  To create a "
16744 "non-sparse file of zeroes, use L</fallocate64> instead."
16745 msgstr ""
16746
16747 #. type: =head2
16748 #: ../fish/guestfish-actions.pod:5033
16749 msgid "tune2fs"
16750 msgstr ""
16751
16752 #. type: verbatim
16753 #: ../fish/guestfish-actions.pod:5035
16754 #, no-wrap
16755 msgid ""
16756 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] "
16757 "[errorbehavior:..] [group:N] [intervalbetweenchecks:N] "
16758 "[reservedblockspercentage:N] [lastmounteddirectory:..] "
16759 "[reservedblockscount:N] [user:N]\n"
16760 "\n"
16761 msgstr ""
16762
16763 #. type: textblock
16764 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7776
16765 msgid ""
16766 "This call allows you to adjust various filesystem parameters of an "
16767 "ext2/ext3/ext4 filesystem called C<device>."
16768 msgstr ""
16769
16770 #. type: textblock
16771 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7785
16772 msgid ""
16773 "Force tune2fs to complete the operation even in the face of errors.  This is "
16774 "the same as the tune2fs C<-f> option."
16775 msgstr ""
16776
16777 #. type: =item
16778 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7788
16779 msgid "C<maxmountcount>"
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7790
16784 msgid ""
16785 "Set the number of mounts after which the filesystem is checked by "
16786 "L<e2fsck(8)>.  If this is C<0> then the number of mounts is disregarded.  "
16787 "This is the same as the tune2fs C<-c> option."
16788 msgstr ""
16789
16790 #. type: =item
16791 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7794
16792 msgid "C<mountcount>"
16793 msgstr ""
16794
16795 #. type: textblock
16796 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7796
16797 msgid ""
16798 "Set the number of times the filesystem has been mounted.  This is the same "
16799 "as the tune2fs C<-C> option."
16800 msgstr ""
16801
16802 #. type: =item
16803 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7799
16804 msgid "C<errorbehavior>"
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../fish/guestfish-actions.pod:5062 ../src/guestfs-actions.pod:7801
16809 msgid ""
16810 "Change the behavior of the kernel code when errors are detected.  Possible "
16811 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
16812 "these options don't really make any difference, particularly for write "
16813 "errors."
16814 msgstr ""
16815
16816 #. type: textblock
16817 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7806
16818 msgid "This is the same as the tune2fs C<-e> option."
16819 msgstr ""
16820
16821 #. type: =item
16822 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7808
16823 msgid "C<group>"
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7810
16828 msgid ""
16829 "Set the group which can use reserved filesystem blocks.  This is the same as "
16830 "the tune2fs C<-g> option except that it can only be specified as a number."
16831 msgstr ""
16832
16833 #. type: =item
16834 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7814
16835 msgid "C<intervalbetweenchecks>"
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7816
16840 msgid ""
16841 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
16842 "option is passed as C<0> then time-dependent checking is disabled."
16843 msgstr ""
16844
16845 #. type: textblock
16846 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7820
16847 msgid "This is the same as the tune2fs C<-i> option."
16848 msgstr ""
16849
16850 #. type: =item
16851 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7822
16852 msgid "C<reservedblockspercentage>"
16853 msgstr ""
16854
16855 #. type: textblock
16856 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7824
16857 msgid ""
16858 "Set the percentage of the filesystem which may only be allocated by "
16859 "privileged processes.  This is the same as the tune2fs C<-m> option."
16860 msgstr ""
16861
16862 #. type: =item
16863 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7828
16864 msgid "C<lastmounteddirectory>"
16865 msgstr ""
16866
16867 #. type: textblock
16868 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7830
16869 msgid ""
16870 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
16871 "option."
16872 msgstr ""
16873
16874 #. type: =item
16875 #: ../fish/guestfish-actions.pod:5094 ../src/guestfs-actions.pod:7833
16876 msgid ""
16877 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
16878 "is the same as the tune2fs C<-r> option."
16879 msgstr ""
16880
16881 #. type: =item
16882 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7837
16883 msgid "C<user>"
16884 msgstr ""
16885
16886 #. type: textblock
16887 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7839
16888 msgid ""
16889 "Set the user who can use the reserved filesystem blocks.  This is the same "
16890 "as the tune2fs C<-u> option except that it can only be specified as a "
16891 "number."
16892 msgstr ""
16893
16894 #. type: textblock
16895 #: ../fish/guestfish-actions.pod:5106
16896 msgid ""
16897 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
16898 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
16899 msgstr ""
16900
16901 #. type: =head2
16902 #: ../fish/guestfish-actions.pod:5112
16903 msgid "tune2fs-l"
16904 msgstr ""
16905
16906 #. type: verbatim
16907 #: ../fish/guestfish-actions.pod:5114
16908 #, no-wrap
16909 msgid ""
16910 " tune2fs-l device\n"
16911 "\n"
16912 msgstr ""
16913
16914 #. type: textblock
16915 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7881
16916 msgid ""
16917 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16918 "C<device>."
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7884
16923 msgid ""
16924 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16925 "for more details.  The list of fields returned isn't clearly defined, and "
16926 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16927 "and the filesystem itself."
16928 msgstr ""
16929
16930 #. type: =head2
16931 #: ../fish/guestfish-actions.pod:5124
16932 msgid "txz-in"
16933 msgstr ""
16934
16935 #. type: verbatim
16936 #: ../fish/guestfish-actions.pod:5126
16937 #, no-wrap
16938 msgid ""
16939 " txz-in (tarball|-) directory\n"
16940 "\n"
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../fish/guestfish-actions.pod:5128 ../src/guestfs-actions.pod:7904
16945 msgid ""
16946 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16947 "tar file) into C<directory>."
16948 msgstr ""
16949
16950 #. type: =head2
16951 #: ../fish/guestfish-actions.pod:5133
16952 msgid "txz-out"
16953 msgstr ""
16954
16955 #. type: verbatim
16956 #: ../fish/guestfish-actions.pod:5135
16957 #, no-wrap
16958 msgid ""
16959 " txz-out directory (tarball|-)\n"
16960 "\n"
16961 msgstr ""
16962
16963 #. type: textblock
16964 #: ../fish/guestfish-actions.pod:5137 ../src/guestfs-actions.pod:7918
16965 msgid ""
16966 "This command packs the contents of C<directory> and downloads it to local "
16967 "file C<tarball> (as an xz compressed tar archive)."
16968 msgstr ""
16969
16970 #. type: =head2
16971 #: ../fish/guestfish-actions.pod:5142
16972 msgid "umask"
16973 msgstr ""
16974
16975 #. type: verbatim
16976 #: ../fish/guestfish-actions.pod:5144
16977 #, no-wrap
16978 msgid ""
16979 " umask mask\n"
16980 "\n"
16981 msgstr ""
16982
16983 #. type: textblock
16984 #: ../fish/guestfish-actions.pod:5146 ../src/guestfs-actions.pod:7931
16985 msgid ""
16986 "This function sets the mask used for creating new files and device nodes to "
16987 "C<mask & 0777>."
16988 msgstr ""
16989
16990 #. type: textblock
16991 #: ../fish/guestfish-actions.pod:5149 ../src/guestfs-actions.pod:7934
16992 msgid ""
16993 "Typical umask values would be C<022> which creates new files with "
16994 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16995 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16996 msgstr ""
16997
16998 #. type: textblock
16999 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7939
17000 msgid ""
17001 "The default umask is C<022>.  This is important because it means that "
17002 "directories and device nodes will be created with C<0644> or C<0755> mode "
17003 "even if you specify C<0777>."
17004 msgstr ""
17005
17006 #. type: textblock
17007 #: ../fish/guestfish-actions.pod:5158
17008 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../fish/guestfish-actions.pod:5161 ../src/guestfs-actions.pod:7946
17013 msgid "This call returns the previous umask."
17014 msgstr ""
17015
17016 #. type: =head2
17017 #: ../fish/guestfish-actions.pod:5163
17018 msgid "umount"
17019 msgstr ""
17020
17021 #. type: =head2
17022 #: ../fish/guestfish-actions.pod:5165
17023 msgid "unmount"
17024 msgstr ""
17025
17026 #. type: verbatim
17027 #: ../fish/guestfish-actions.pod:5167
17028 #, no-wrap
17029 msgid ""
17030 " umount pathordevice\n"
17031 "\n"
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7958
17036 msgid ""
17037 "This unmounts the given filesystem.  The filesystem may be specified either "
17038 "by its mountpoint (path) or the device which contains the filesystem."
17039 msgstr ""
17040
17041 #. type: =head2
17042 #: ../fish/guestfish-actions.pod:5173
17043 msgid "umount-all"
17044 msgstr ""
17045
17046 #. type: =head2
17047 #: ../fish/guestfish-actions.pod:5175
17048 msgid "unmount-all"
17049 msgstr ""
17050
17051 #. type: verbatim
17052 #: ../fish/guestfish-actions.pod:5177
17053 #, no-wrap
17054 msgid ""
17055 " umount-all\n"
17056 "\n"
17057 msgstr ""
17058
17059 #. type: textblock
17060 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7971
17061 msgid "This unmounts all mounted filesystems."
17062 msgstr ""
17063
17064 #. type: textblock
17065 #: ../fish/guestfish-actions.pod:5181 ../src/guestfs-actions.pod:7973
17066 msgid "Some internal mounts are not unmounted by this call."
17067 msgstr ""
17068
17069 #. type: =head2
17070 #: ../fish/guestfish-actions.pod:5183
17071 msgid "upload"
17072 msgstr ""
17073
17074 #. type: verbatim
17075 #: ../fish/guestfish-actions.pod:5185
17076 #, no-wrap
17077 msgid ""
17078 " upload (filename|-) remotefilename\n"
17079 "\n"
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish-actions.pod:5187 ../fish/guestfish-actions.pod:5200 ../src/guestfs-actions.pod:7986 ../src/guestfs-actions.pod:8010
17084 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17085 msgstr ""
17086
17087 #. type: textblock
17088 #: ../fish/guestfish-actions.pod:5192
17089 msgid "See also L</download>."
17090 msgstr ""
17091
17092 #. type: =head2
17093 #: ../fish/guestfish-actions.pod:5196
17094 msgid "upload-offset"
17095 msgstr ""
17096
17097 #. type: verbatim
17098 #: ../fish/guestfish-actions.pod:5198
17099 #, no-wrap
17100 msgid ""
17101 " upload-offset (filename|-) remotefilename offset\n"
17102 "\n"
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:8013
17107 msgid ""
17108 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17109 "The intention is to overwrite parts of existing files or devices, although "
17110 "if a non-existant file is specified then it is created with a \"hole\" "
17111 "before C<offset>.  The size of the data written is implicit in the size of "
17112 "the source C<filename>."
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../fish/guestfish-actions.pod:5210
17117 msgid ""
17118 "Note that there is no limit on the amount of data that can be uploaded with "
17119 "this call, unlike with L</pwrite>, and this call always writes the full "
17120 "amount unless an error occurs."
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish-actions.pod:5215
17125 msgid "See also L</upload>, L</pwrite>."
17126 msgstr ""
17127
17128 #. type: =head2
17129 #: ../fish/guestfish-actions.pod:5219
17130 msgid "utimens"
17131 msgstr ""
17132
17133 #. type: verbatim
17134 #: ../fish/guestfish-actions.pod:5221
17135 #, no-wrap
17136 msgid ""
17137 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17138 "\n"
17139 msgstr ""
17140
17141 #. type: textblock
17142 #: ../fish/guestfish-actions.pod:5223 ../src/guestfs-actions.pod:8046
17143 msgid "This command sets the timestamps of a file with nanosecond precision."
17144 msgstr ""
17145
17146 #. type: textblock
17147 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:8049
17148 msgid ""
17149 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17150 "from the epoch."
17151 msgstr ""
17152
17153 #. type: textblock
17154 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8052
17155 msgid ""
17156 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17157 "nanoseconds from the epoch."
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8055
17162 msgid ""
17163 "If the C<*nsecs> field contains the special value C<-1> then the "
17164 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17165 "ignored in this case)."
17166 msgstr ""
17167
17168 #. type: textblock
17169 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8059
17170 msgid ""
17171 "If the C<*nsecs> field contains the special value C<-2> then the "
17172 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17173 "in this case)."
17174 msgstr ""
17175
17176 #. type: =head2
17177 #: ../fish/guestfish-actions.pod:5240
17178 msgid "version"
17179 msgstr ""
17180
17181 #. type: verbatim
17182 #: ../fish/guestfish-actions.pod:5242
17183 #, no-wrap
17184 msgid ""
17185 " version\n"
17186 "\n"
17187 msgstr ""
17188
17189 #. type: textblock
17190 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8072
17191 msgid "Return the libguestfs version number that the program is linked against."
17192 msgstr ""
17193
17194 #. type: textblock
17195 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8075
17196 msgid ""
17197 "Note that because of dynamic linking this is not necessarily the version of "
17198 "libguestfs that you compiled against.  You can compile the program, and then "
17199 "at runtime dynamically link against a completely different C<libguestfs.so> "
17200 "library."
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../fish/guestfish-actions.pod:5252 ../src/guestfs-actions.pod:8080
17205 msgid ""
17206 "This call was added in version C<1.0.58>.  In previous versions of "
17207 "libguestfs there was no way to get the version number.  From C code you can "
17208 "use dynamic linker functions to find out if this symbol exists (if it "
17209 "doesn't, then it's an earlier version)."
17210 msgstr ""
17211
17212 #. type: textblock
17213 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8086
17214 msgid ""
17215 "The call returns a structure with four elements.  The first three (C<major>, "
17216 "C<minor> and C<release>) are numbers and correspond to the usual version "
17217 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17218 "but may be used for distro-specific information."
17219 msgstr ""
17220
17221 #. type: textblock
17222 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8092
17223 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
17224 msgstr ""
17225
17226 #. type: textblock
17227 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8095
17228 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish-actions.pod:5269
17233 msgid ""
17234 "I<Note:> Don't use this call to test for availability of features.  In "
17235 "enterprise distributions we backport features from later versions into "
17236 "earlier versions, making this an unreliable way to test for features.  Use "
17237 "L</available> instead."
17238 msgstr ""
17239
17240 #. type: =head2
17241 #: ../fish/guestfish-actions.pod:5275
17242 msgid "vfs-label"
17243 msgstr ""
17244
17245 #. type: verbatim
17246 #: ../fish/guestfish-actions.pod:5277
17247 #, no-wrap
17248 msgid ""
17249 " vfs-label device\n"
17250 "\n"
17251 msgstr ""
17252
17253 #. type: textblock
17254 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8115
17255 msgid "This returns the filesystem label of the filesystem on C<device>."
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8118
17260 msgid "If the filesystem is unlabeled, this returns the empty string."
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish-actions.pod:5284
17265 msgid "To find a filesystem from the label, use L</findfs-label>."
17266 msgstr ""
17267
17268 #. type: =head2
17269 #: ../fish/guestfish-actions.pod:5286
17270 msgid "vfs-type"
17271 msgstr ""
17272
17273 #. type: verbatim
17274 #: ../fish/guestfish-actions.pod:5288
17275 #, no-wrap
17276 msgid ""
17277 " vfs-type device\n"
17278 "\n"
17279 msgstr ""
17280
17281 #. type: textblock
17282 #: ../fish/guestfish-actions.pod:5290 ../src/guestfs-actions.pod:8133
17283 msgid ""
17284 "This command gets the filesystem type corresponding to the filesystem on "
17285 "C<device>."
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8136
17290 msgid ""
17291 "For most filesystems, the result is the name of the Linux VFS module which "
17292 "would be used to mount this filesystem if you mounted it without specifying "
17293 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17294 msgstr ""
17295
17296 #. type: =head2
17297 #: ../fish/guestfish-actions.pod:5298
17298 msgid "vfs-uuid"
17299 msgstr ""
17300
17301 #. type: verbatim
17302 #: ../fish/guestfish-actions.pod:5300
17303 #, no-wrap
17304 msgid ""
17305 " vfs-uuid device\n"
17306 "\n"
17307 msgstr ""
17308
17309 #. type: textblock
17310 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
17311 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17312 msgstr ""
17313
17314 #. type: textblock
17315 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
17316 msgid "If the filesystem does not have a UUID, this returns the empty string."
17317 msgstr ""
17318
17319 #. type: textblock
17320 #: ../fish/guestfish-actions.pod:5307
17321 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17322 msgstr ""
17323
17324 #. type: =head2
17325 #: ../fish/guestfish-actions.pod:5309
17326 msgid "vg-activate"
17327 msgstr ""
17328
17329 #. type: verbatim
17330 #: ../fish/guestfish-actions.pod:5311
17331 #, no-wrap
17332 msgid ""
17333 " vg-activate true|false 'volgroups ...'\n"
17334 "\n"
17335 msgstr ""
17336
17337 #. type: textblock
17338 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8171
17339 msgid ""
17340 "This command activates or (if C<activate> is false) deactivates all logical "
17341 "volumes in the listed volume groups C<volgroups>."
17342 msgstr ""
17343
17344 #. type: textblock
17345 #: ../fish/guestfish-actions.pod:5316 ../src/guestfs-actions.pod:8174
17346 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17347 msgstr ""
17348
17349 #. type: textblock
17350 #: ../fish/guestfish-actions.pod:5318 ../src/guestfs-actions.pod:8176
17351 msgid ""
17352 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17353 "activated or deactivated."
17354 msgstr ""
17355
17356 #. type: =head2
17357 #: ../fish/guestfish-actions.pod:5321
17358 msgid "vg-activate-all"
17359 msgstr ""
17360
17361 #. type: verbatim
17362 #: ../fish/guestfish-actions.pod:5323
17363 #, no-wrap
17364 msgid ""
17365 " vg-activate-all true|false\n"
17366 "\n"
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:5325 ../src/guestfs-actions.pod:8189
17371 msgid ""
17372 "This command activates or (if C<activate> is false) deactivates all logical "
17373 "volumes in all volume groups."
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../fish/guestfish-actions.pod:5328 ../src/guestfs-actions.pod:8192
17378 msgid "This command is the same as running C<vgchange -a y|n>"
17379 msgstr ""
17380
17381 #. type: =head2
17382 #: ../fish/guestfish-actions.pod:5330
17383 msgid "vgcreate"
17384 msgstr ""
17385
17386 #. type: verbatim
17387 #: ../fish/guestfish-actions.pod:5332
17388 #, no-wrap
17389 msgid ""
17390 " vgcreate volgroup 'physvols ...'\n"
17391 "\n"
17392 msgstr ""
17393
17394 #. type: textblock
17395 #: ../fish/guestfish-actions.pod:5334 ../src/guestfs-actions.pod:8205
17396 msgid ""
17397 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17398 "of physical volumes C<physvols>."
17399 msgstr ""
17400
17401 #. type: =head2
17402 #: ../fish/guestfish-actions.pod:5337
17403 msgid "vglvuuids"
17404 msgstr ""
17405
17406 #. type: verbatim
17407 #: ../fish/guestfish-actions.pod:5339
17408 #, no-wrap
17409 msgid ""
17410 " vglvuuids vgname\n"
17411 "\n"
17412 msgstr ""
17413
17414 #. type: textblock
17415 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8218
17416 msgid ""
17417 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17418 "volumes created in this volume group."
17419 msgstr ""
17420
17421 #. type: textblock
17422 #: ../fish/guestfish-actions.pod:5344
17423 msgid ""
17424 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17425 "logical volumes and volume groups."
17426 msgstr ""
17427
17428 #. type: textblock
17429 #: ../fish/guestfish-actions.pod:5347
17430 msgid "See also L</vgpvuuids>."
17431 msgstr ""
17432
17433 #. type: =head2
17434 #: ../fish/guestfish-actions.pod:5349
17435 msgid "vgpvuuids"
17436 msgstr ""
17437
17438 #. type: verbatim
17439 #: ../fish/guestfish-actions.pod:5351
17440 #, no-wrap
17441 msgid ""
17442 " vgpvuuids vgname\n"
17443 "\n"
17444 msgstr ""
17445
17446 #. type: textblock
17447 #: ../fish/guestfish-actions.pod:5353 ../src/guestfs-actions.pod:8238
17448 msgid ""
17449 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17450 "volumes that this volume group resides on."
17451 msgstr ""
17452
17453 #. type: textblock
17454 #: ../fish/guestfish-actions.pod:5356
17455 msgid ""
17456 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17457 "physical volumes and volume groups."
17458 msgstr ""
17459
17460 #. type: textblock
17461 #: ../fish/guestfish-actions.pod:5359
17462 msgid "See also L</vglvuuids>."
17463 msgstr ""
17464
17465 #. type: =head2
17466 #: ../fish/guestfish-actions.pod:5361
17467 msgid "vgremove"
17468 msgstr ""
17469
17470 #. type: verbatim
17471 #: ../fish/guestfish-actions.pod:5363
17472 #, no-wrap
17473 msgid ""
17474 " vgremove vgname\n"
17475 "\n"
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8258
17480 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17481 msgstr ""
17482
17483 #. type: textblock
17484 #: ../fish/guestfish-actions.pod:5367 ../src/guestfs-actions.pod:8260
17485 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17486 msgstr ""
17487
17488 #. type: =head2
17489 #: ../fish/guestfish-actions.pod:5370
17490 msgid "vgrename"
17491 msgstr ""
17492
17493 #. type: verbatim
17494 #: ../fish/guestfish-actions.pod:5372
17495 #, no-wrap
17496 msgid ""
17497 " vgrename volgroup newvolgroup\n"
17498 "\n"
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../fish/guestfish-actions.pod:5374 ../src/guestfs-actions.pod:8274
17503 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17504 msgstr ""
17505
17506 #. type: =head2
17507 #: ../fish/guestfish-actions.pod:5376
17508 msgid "vgs"
17509 msgstr ""
17510
17511 #. type: verbatim
17512 #: ../fish/guestfish-actions.pod:5378
17513 #, no-wrap
17514 msgid ""
17515 " vgs\n"
17516 "\n"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish-actions.pod:5380 ../src/guestfs-actions.pod:8285
17521 msgid ""
17522 "List all the volumes groups detected.  This is the equivalent of the "
17523 "L<vgs(8)> command."
17524 msgstr ""
17525
17526 #. type: textblock
17527 #: ../fish/guestfish-actions.pod:5383 ../src/guestfs-actions.pod:8288
17528 msgid ""
17529 "This returns a list of just the volume group names that were detected "
17530 "(eg. C<VolGroup00>)."
17531 msgstr ""
17532
17533 #. type: textblock
17534 #: ../fish/guestfish-actions.pod:5386
17535 msgid "See also L</vgs-full>."
17536 msgstr ""
17537
17538 #. type: =head2
17539 #: ../fish/guestfish-actions.pod:5388
17540 msgid "vgs-full"
17541 msgstr ""
17542
17543 #. type: verbatim
17544 #: ../fish/guestfish-actions.pod:5390
17545 #, no-wrap
17546 msgid ""
17547 " vgs-full\n"
17548 "\n"
17549 msgstr ""
17550
17551 #. type: textblock
17552 #: ../fish/guestfish-actions.pod:5392 ../src/guestfs-actions.pod:8304
17553 msgid ""
17554 "List all the volumes groups detected.  This is the equivalent of the "
17555 "L<vgs(8)> command.  The \"full\" version includes all fields."
17556 msgstr ""
17557
17558 #. type: =head2
17559 #: ../fish/guestfish-actions.pod:5395
17560 msgid "vgscan"
17561 msgstr ""
17562
17563 #. type: verbatim
17564 #: ../fish/guestfish-actions.pod:5397
17565 #, no-wrap
17566 msgid ""
17567 " vgscan\n"
17568 "\n"
17569 msgstr ""
17570
17571 #. type: textblock
17572 #: ../fish/guestfish-actions.pod:5399 ../src/guestfs-actions.pod:8318
17573 msgid ""
17574 "This rescans all block devices and rebuilds the list of LVM physical "
17575 "volumes, volume groups and logical volumes."
17576 msgstr ""
17577
17578 #. type: =head2
17579 #: ../fish/guestfish-actions.pod:5402
17580 msgid "vguuid"
17581 msgstr ""
17582
17583 #. type: verbatim
17584 #: ../fish/guestfish-actions.pod:5404
17585 #, no-wrap
17586 msgid ""
17587 " vguuid vgname\n"
17588 "\n"
17589 msgstr ""
17590
17591 #. type: textblock
17592 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8331
17593 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17594 msgstr ""
17595
17596 #. type: =head2
17597 #: ../fish/guestfish-actions.pod:5408
17598 msgid "wc-c"
17599 msgstr ""
17600
17601 #. type: verbatim
17602 #: ../fish/guestfish-actions.pod:5410
17603 #, no-wrap
17604 msgid ""
17605 " wc-c path\n"
17606 "\n"
17607 msgstr ""
17608
17609 #. type: textblock
17610 #: ../fish/guestfish-actions.pod:5412 ../src/guestfs-actions.pod:8371
17611 msgid ""
17612 "This command counts the characters in a file, using the C<wc -c> external "
17613 "command."
17614 msgstr ""
17615
17616 #. type: =head2
17617 #: ../fish/guestfish-actions.pod:5415
17618 msgid "wc-l"
17619 msgstr ""
17620
17621 #. type: verbatim
17622 #: ../fish/guestfish-actions.pod:5417
17623 #, no-wrap
17624 msgid ""
17625 " wc-l path\n"
17626 "\n"
17627 msgstr ""
17628
17629 #. type: textblock
17630 #: ../fish/guestfish-actions.pod:5419 ../src/guestfs-actions.pod:8384
17631 msgid ""
17632 "This command counts the lines in a file, using the C<wc -l> external "
17633 "command."
17634 msgstr ""
17635
17636 #. type: =head2
17637 #: ../fish/guestfish-actions.pod:5422
17638 msgid "wc-w"
17639 msgstr ""
17640
17641 #. type: verbatim
17642 #: ../fish/guestfish-actions.pod:5424
17643 #, no-wrap
17644 msgid ""
17645 " wc-w path\n"
17646 "\n"
17647 msgstr ""
17648
17649 #. type: textblock
17650 #: ../fish/guestfish-actions.pod:5426 ../src/guestfs-actions.pod:8397
17651 msgid ""
17652 "This command counts the words in a file, using the C<wc -w> external "
17653 "command."
17654 msgstr ""
17655
17656 #. type: =head2
17657 #: ../fish/guestfish-actions.pod:5429
17658 msgid "write"
17659 msgstr ""
17660
17661 #. type: verbatim
17662 #: ../fish/guestfish-actions.pod:5431
17663 #, no-wrap
17664 msgid ""
17665 " write path content\n"
17666 "\n"
17667 msgstr ""
17668
17669 #. type: textblock
17670 #: ../fish/guestfish-actions.pod:5433 ../src/guestfs-actions.pod:8412
17671 msgid ""
17672 "This call creates a file called C<path>.  The content of the file is the "
17673 "string C<content> (which can contain any 8 bit data)."
17674 msgstr ""
17675
17676 #. type: textblock
17677 #: ../fish/guestfish-actions.pod:5436
17678 msgid "See also L</write-append>."
17679 msgstr ""
17680
17681 #. type: =head2
17682 #: ../fish/guestfish-actions.pod:5441
17683 msgid "write-append"
17684 msgstr ""
17685
17686 #. type: verbatim
17687 #: ../fish/guestfish-actions.pod:5443
17688 #, no-wrap
17689 msgid ""
17690 " write-append path content\n"
17691 "\n"
17692 msgstr ""
17693
17694 #. type: textblock
17695 #: ../fish/guestfish-actions.pod:5445 ../src/guestfs-actions.pod:8432
17696 msgid ""
17697 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17698 "not exist, then a new file is created."
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish-actions.pod:5448
17703 msgid "See also L</write>."
17704 msgstr ""
17705
17706 #. type: =head2
17707 #: ../fish/guestfish-actions.pod:5453
17708 msgid "write-file"
17709 msgstr ""
17710
17711 #. type: verbatim
17712 #: ../fish/guestfish-actions.pod:5455
17713 #, no-wrap
17714 msgid ""
17715 " write-file path content size\n"
17716 "\n"
17717 msgstr ""
17718
17719 #. type: textblock
17720 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8459
17721 msgid ""
17722 "This call creates a file called C<path>.  The contents of the file is the "
17723 "string C<content> (which can contain any 8 bit data), with length C<size>."
17724 msgstr ""
17725
17726 #. type: textblock
17727 #: ../fish/guestfish-actions.pod:5461 ../src/guestfs-actions.pod:8463
17728 msgid ""
17729 "As a special case, if C<size> is C<0> then the length is calculated using "
17730 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17731 msgstr ""
17732
17733 #. type: textblock
17734 #: ../fish/guestfish-actions.pod:5465 ../src/guestfs-actions.pod:8467
17735 msgid ""
17736 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17737 "I<not> work, even if the length is specified."
17738 msgstr ""
17739
17740 #. type: textblock
17741 #: ../fish/guestfish-actions.pod:5471
17742 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
17743 msgstr ""
17744
17745 #. type: =head2
17746 #: ../fish/guestfish-actions.pod:5478
17747 msgid "zegrep"
17748 msgstr ""
17749
17750 #. type: verbatim
17751 #: ../fish/guestfish-actions.pod:5480
17752 #, no-wrap
17753 msgid ""
17754 " zegrep regex path\n"
17755 "\n"
17756 msgstr ""
17757
17758 #. type: textblock
17759 #: ../fish/guestfish-actions.pod:5482 ../src/guestfs-actions.pod:8484
17760 msgid "This calls the external C<zegrep> program and returns the matching lines."
17761 msgstr ""
17762
17763 #. type: =head2
17764 #: ../fish/guestfish-actions.pod:5488
17765 msgid "zegrepi"
17766 msgstr ""
17767
17768 #. type: verbatim
17769 #: ../fish/guestfish-actions.pod:5490
17770 #, no-wrap
17771 msgid ""
17772 " zegrepi regex path\n"
17773 "\n"
17774 msgstr ""
17775
17776 #. type: textblock
17777 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8503
17778 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17779 msgstr ""
17780
17781 #. type: =head2
17782 #: ../fish/guestfish-actions.pod:5498
17783 msgid "zero"
17784 msgstr ""
17785
17786 #. type: verbatim
17787 #: ../fish/guestfish-actions.pod:5500
17788 #, no-wrap
17789 msgid ""
17790 " zero device\n"
17791 "\n"
17792 msgstr ""
17793
17794 #. type: textblock
17795 #: ../fish/guestfish-actions.pod:5502 ../src/guestfs-actions.pod:8521
17796 msgid "This command writes zeroes over the first few blocks of C<device>."
17797 msgstr ""
17798
17799 #. type: textblock
17800 #: ../fish/guestfish-actions.pod:5504 ../src/guestfs-actions.pod:8523
17801 msgid ""
17802 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17803 "securely wipe the device).  It should be sufficient to remove any partition "
17804 "tables, filesystem superblocks and so on."
17805 msgstr ""
17806
17807 #. type: textblock
17808 #: ../fish/guestfish-actions.pod:5508 ../fish/guestfish-actions.pod:5523 ../src/guestfs-actions.pod:8527 ../src/guestfs-actions.pod:8553
17809 msgid ""
17810 "If blocks are already zero, then this command avoids writing zeroes.  This "
17811 "prevents the underlying device from becoming non-sparse or growing "
17812 "unnecessarily."
17813 msgstr ""
17814
17815 #. type: textblock
17816 #: ../fish/guestfish-actions.pod:5512
17817 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17818 msgstr ""
17819
17820 #. type: =head2
17821 #: ../fish/guestfish-actions.pod:5515
17822 msgid "zero-device"
17823 msgstr ""
17824
17825 #. type: verbatim
17826 #: ../fish/guestfish-actions.pod:5517
17827 #, no-wrap
17828 msgid ""
17829 " zero-device device\n"
17830 "\n"
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../fish/guestfish-actions.pod:5519
17835 msgid ""
17836 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17837 "which just zeroes the first few blocks of a device."
17838 msgstr ""
17839
17840 #. type: =head2
17841 #: ../fish/guestfish-actions.pod:5527
17842 msgid "zerofree"
17843 msgstr ""
17844
17845 #. type: verbatim
17846 #: ../fish/guestfish-actions.pod:5529
17847 #, no-wrap
17848 msgid ""
17849 " zerofree device\n"
17850 "\n"
17851 msgstr ""
17852
17853 #. type: textblock
17854 #: ../fish/guestfish-actions.pod:5531 ../src/guestfs-actions.pod:8572
17855 msgid ""
17856 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17857 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17858 "possible to compress the filesystem more effectively."
17859 msgstr ""
17860
17861 #. type: textblock
17862 #: ../fish/guestfish-actions.pod:5536 ../src/guestfs-actions.pod:8577
17863 msgid "You should B<not> run this program if the filesystem is mounted."
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish-actions.pod:5539 ../src/guestfs-actions.pod:8580
17868 msgid ""
17869 "It is possible that using this program can damage the filesystem or data on "
17870 "the filesystem."
17871 msgstr ""
17872
17873 #. type: =head2
17874 #: ../fish/guestfish-actions.pod:5542
17875 msgid "zfgrep"
17876 msgstr ""
17877
17878 #. type: verbatim
17879 #: ../fish/guestfish-actions.pod:5544
17880 #, no-wrap
17881 msgid ""
17882 " zfgrep pattern path\n"
17883 "\n"
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-actions.pod:5546 ../src/guestfs-actions.pod:8594
17888 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17889 msgstr ""
17890
17891 #. type: =head2
17892 #: ../fish/guestfish-actions.pod:5552
17893 msgid "zfgrepi"
17894 msgstr ""
17895
17896 #. type: verbatim
17897 #: ../fish/guestfish-actions.pod:5554
17898 #, no-wrap
17899 msgid ""
17900 " zfgrepi pattern path\n"
17901 "\n"
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish-actions.pod:5556 ../src/guestfs-actions.pod:8613
17906 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17907 msgstr ""
17908
17909 #. type: =head2
17910 #: ../fish/guestfish-actions.pod:5562
17911 msgid "zfile"
17912 msgstr ""
17913
17914 #. type: verbatim
17915 #: ../fish/guestfish-actions.pod:5564
17916 #, no-wrap
17917 msgid ""
17918 " zfile meth path\n"
17919 "\n"
17920 msgstr ""
17921
17922 #. type: textblock
17923 #: ../fish/guestfish-actions.pod:5566 ../src/guestfs-actions.pod:8639
17924 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17925 msgstr ""
17926
17927 #. type: textblock
17928 #: ../fish/guestfish-actions.pod:5569 ../src/guestfs-actions.pod:8642
17929 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17930 msgstr ""
17931
17932 #. type: textblock
17933 #: ../fish/guestfish-actions.pod:5571
17934 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
17935 msgstr ""
17936
17937 #. type: textblock
17938 #: ../fish/guestfish-actions.pod:5574
17939 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
17940 msgstr ""
17941
17942 #. type: =head2
17943 #: ../fish/guestfish-actions.pod:5581
17944 msgid "zgrep"
17945 msgstr ""
17946
17947 #. type: verbatim
17948 #: ../fish/guestfish-actions.pod:5583
17949 #, no-wrap
17950 msgid ""
17951 " zgrep regex path\n"
17952 "\n"
17953 msgstr ""
17954
17955 #. type: textblock
17956 #: ../fish/guestfish-actions.pod:5585 ../src/guestfs-actions.pod:8659
17957 msgid "This calls the external C<zgrep> program and returns the matching lines."
17958 msgstr ""
17959
17960 #. type: =head2
17961 #: ../fish/guestfish-actions.pod:5591
17962 msgid "zgrepi"
17963 msgstr ""
17964
17965 #. type: verbatim
17966 #: ../fish/guestfish-actions.pod:5593
17967 #, no-wrap
17968 msgid ""
17969 " zgrepi regex path\n"
17970 "\n"
17971 msgstr ""
17972
17973 #. type: textblock
17974 #: ../fish/guestfish-actions.pod:5595 ../src/guestfs-actions.pod:8678
17975 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
17976 msgstr ""
17977
17978 #. type: =head2
17979 #: ../fish/guestfish-commands.pod:1
17980 msgid "alloc"
17981 msgstr ""
17982
17983 #. type: =head2
17984 #: ../fish/guestfish-commands.pod:3
17985 msgid "allocate"
17986 msgstr ""
17987
17988 #. type: verbatim
17989 #: ../fish/guestfish-commands.pod:5
17990 #, no-wrap
17991 msgid ""
17992 " alloc filename size\n"
17993 "\n"
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish-commands.pod:7
17998 msgid ""
17999 "This creates an empty (zeroed) file of the given size, and then adds so it "
18000 "can be further examined."
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18005 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18006 msgstr ""
18007
18008 #. type: textblock
18009 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18010 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish-commands.pod:14
18015 msgid ""
18016 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18017 "image, see L</PREPARED DISK IMAGES>."
18018 msgstr ""
18019
18020 #. type: =head2
18021 #: ../fish/guestfish-commands.pod:17
18022 msgid "copy-in"
18023 msgstr ""
18024
18025 #. type: verbatim
18026 #: ../fish/guestfish-commands.pod:19
18027 #, no-wrap
18028 msgid ""
18029 " copy-in local [local ...] /remotedir\n"
18030 "\n"
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish-commands.pod:21
18035 msgid ""
18036 "C<copy-in> copies local files or directories recursively into the disk "
18037 "image, placing them in the directory called C</remotedir> (which must "
18038 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18039 "other commands as necessary."
18040 msgstr ""
18041
18042 #. type: textblock
18043 #: ../fish/guestfish-commands.pod:26
18044 msgid ""
18045 "Multiple local files and directories can be specified, but the last "
18046 "parameter must always be a remote directory.  Wildcards cannot be used."
18047 msgstr ""
18048
18049 #. type: =head2
18050 #: ../fish/guestfish-commands.pod:30
18051 msgid "copy-out"
18052 msgstr ""
18053
18054 #. type: verbatim
18055 #: ../fish/guestfish-commands.pod:32
18056 #, no-wrap
18057 msgid ""
18058 " copy-out remote [remote ...] localdir\n"
18059 "\n"
18060 msgstr ""
18061
18062 #. type: textblock
18063 #: ../fish/guestfish-commands.pod:34
18064 msgid ""
18065 "C<copy-out> copies remote files or directories recursively out of the disk "
18066 "image, placing them on the host disk in a local directory called C<localdir> "
18067 "(which must exist).  This guestfish meta-command turns into a sequence of "
18068 "L</download>, L</tar-out> and other commands as necessary."
18069 msgstr ""
18070
18071 #. type: textblock
18072 #: ../fish/guestfish-commands.pod:40
18073 msgid ""
18074 "Multiple remote files and directories can be specified, but the last "
18075 "parameter must always be a local directory.  To download to the current "
18076 "directory, use C<.> as in:"
18077 msgstr ""
18078
18079 #. type: verbatim
18080 #: ../fish/guestfish-commands.pod:44
18081 #, no-wrap
18082 msgid ""
18083 " copy-out /home .\n"
18084 "\n"
18085 msgstr ""
18086
18087 #. type: textblock
18088 #: ../fish/guestfish-commands.pod:46
18089 msgid ""
18090 "Wildcards cannot be used in the ordinary command, but you can use them with "
18091 "the help of L</glob> like this:"
18092 msgstr ""
18093
18094 #. type: verbatim
18095 #: ../fish/guestfish-commands.pod:49
18096 #, no-wrap
18097 msgid ""
18098 " glob copy-out /home/* .\n"
18099 "\n"
18100 msgstr ""
18101
18102 #. type: =head2
18103 #: ../fish/guestfish-commands.pod:51
18104 msgid "display"
18105 msgstr ""
18106
18107 #. type: verbatim
18108 #: ../fish/guestfish-commands.pod:53
18109 #, no-wrap
18110 msgid ""
18111 " display filename\n"
18112 "\n"
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/guestfish-commands.pod:55
18117 msgid ""
18118 "Use C<display> (a graphical display program) to display an image file.  It "
18119 "downloads the file, and runs C<display> on it."
18120 msgstr ""
18121
18122 #. type: textblock
18123 #: ../fish/guestfish-commands.pod:58
18124 msgid ""
18125 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18126 "environment variable.  For example to use the GNOME display program:"
18127 msgstr ""
18128
18129 #. type: verbatim
18130 #: ../fish/guestfish-commands.pod:61
18131 #, no-wrap
18132 msgid ""
18133 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18134 "\n"
18135 msgstr ""
18136
18137 #. type: textblock
18138 #: ../fish/guestfish-commands.pod:63
18139 msgid "See also L<display(1)>."
18140 msgstr ""
18141
18142 #. type: =head2
18143 #: ../fish/guestfish-commands.pod:65
18144 msgid "echo"
18145 msgstr ""
18146
18147 #. type: verbatim
18148 #: ../fish/guestfish-commands.pod:67
18149 #, no-wrap
18150 msgid ""
18151 " echo [params ...]\n"
18152 "\n"
18153 msgstr ""
18154
18155 #. type: textblock
18156 #: ../fish/guestfish-commands.pod:69
18157 msgid "This echos the parameters to the terminal."
18158 msgstr ""
18159
18160 #. type: =head2
18161 #: ../fish/guestfish-commands.pod:71
18162 msgid "edit"
18163 msgstr ""
18164
18165 #. type: =head2
18166 #: ../fish/guestfish-commands.pod:73
18167 msgid "vi"
18168 msgstr ""
18169
18170 #. type: =head2
18171 #: ../fish/guestfish-commands.pod:75
18172 msgid "emacs"
18173 msgstr ""
18174
18175 #. type: verbatim
18176 #: ../fish/guestfish-commands.pod:77
18177 #, no-wrap
18178 msgid ""
18179 " edit filename\n"
18180 "\n"
18181 msgstr ""
18182
18183 #. type: textblock
18184 #: ../fish/guestfish-commands.pod:79
18185 msgid ""
18186 "This is used to edit a file.  It downloads the file, edits it locally using "
18187 "your editor, then uploads the result."
18188 msgstr ""
18189
18190 #. type: textblock
18191 #: ../fish/guestfish-commands.pod:82
18192 msgid ""
18193 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18194 "or C<emacs> you will get those corresponding editors."
18195 msgstr ""
18196
18197 #. type: =head2
18198 #: ../fish/guestfish-commands.pod:86
18199 msgid "glob"
18200 msgstr ""
18201
18202 #. type: verbatim
18203 #: ../fish/guestfish-commands.pod:88
18204 #, no-wrap
18205 msgid ""
18206 " glob command args...\n"
18207 "\n"
18208 msgstr ""
18209
18210 #. type: textblock
18211 #: ../fish/guestfish-commands.pod:90
18212 msgid ""
18213 "Expand wildcards in any paths in the args list, and run C<command> "
18214 "repeatedly on each matching path."
18215 msgstr ""
18216
18217 #. type: textblock
18218 #: ../fish/guestfish-commands.pod:93
18219 msgid "See L</WILDCARDS AND GLOBBING>."
18220 msgstr ""
18221
18222 #. type: =head2
18223 #: ../fish/guestfish-commands.pod:95
18224 msgid "hexedit"
18225 msgstr ""
18226
18227 #. type: verbatim
18228 #: ../fish/guestfish-commands.pod:97
18229 #, no-wrap
18230 msgid ""
18231 " hexedit <filename|device>\n"
18232 " hexedit <filename|device> <max>\n"
18233 " hexedit <filename|device> <start> <max>\n"
18234 "\n"
18235 msgstr ""
18236
18237 #. type: textblock
18238 #: ../fish/guestfish-commands.pod:101
18239 msgid ""
18240 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18241 "device."
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish-commands.pod:104
18246 msgid ""
18247 "This command works by downloading potentially the whole file or device, "
18248 "editing it locally, then uploading it.  If the file or device is large, you "
18249 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18250 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18251 "usual modifiers allowed such as C<1M> (1 megabyte)."
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish-commands.pod:111
18256 msgid "For example to edit the first few sectors of a disk you might do:"
18257 msgstr ""
18258
18259 #. type: verbatim
18260 #: ../fish/guestfish-commands.pod:114
18261 #, no-wrap
18262 msgid ""
18263 " hexedit /dev/sda 1M\n"
18264 "\n"
18265 msgstr ""
18266
18267 #. type: textblock
18268 #: ../fish/guestfish-commands.pod:116
18269 msgid ""
18270 "which would allow you to edit anywhere within the first megabyte of the "
18271 "disk."
18272 msgstr ""
18273
18274 #. type: textblock
18275 #: ../fish/guestfish-commands.pod:119
18276 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18277 msgstr ""
18278
18279 #. type: verbatim
18280 #: ../fish/guestfish-commands.pod:121
18281 #, no-wrap
18282 msgid ""
18283 " hexedit /dev/sda1 0x400 0x400\n"
18284 "\n"
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/guestfish-commands.pod:123
18289 msgid "(assuming the superblock is in the standard location)."
18290 msgstr ""
18291
18292 #. type: textblock
18293 #: ../fish/guestfish-commands.pod:125
18294 msgid ""
18295 "This command requires the external L<hexedit(1)> program.  You can specify "
18296 "another program to use by setting the C<HEXEDITOR> environment variable."
18297 msgstr ""
18298
18299 #. type: textblock
18300 #: ../fish/guestfish-commands.pod:129
18301 msgid "See also L</hexdump>."
18302 msgstr ""
18303
18304 #. type: =head2
18305 #: ../fish/guestfish-commands.pod:131
18306 msgid "lcd"
18307 msgstr ""
18308
18309 #. type: verbatim
18310 #: ../fish/guestfish-commands.pod:133
18311 #, no-wrap
18312 msgid ""
18313 " lcd directory\n"
18314 "\n"
18315 msgstr ""
18316
18317 #. type: textblock
18318 #: ../fish/guestfish-commands.pod:135
18319 msgid "Change the local directory, ie. the current directory of guestfish itself."
18320 msgstr ""
18321
18322 #. type: textblock
18323 #: ../fish/guestfish-commands.pod:138
18324 msgid "Note that C<!cd> won't do what you might expect."
18325 msgstr ""
18326
18327 #. type: =head2
18328 #: ../fish/guestfish-commands.pod:140
18329 msgid "man"
18330 msgstr ""
18331
18332 #. type: =head2
18333 #: ../fish/guestfish-commands.pod:142
18334 msgid "manual"
18335 msgstr ""
18336
18337 #. type: verbatim
18338 #: ../fish/guestfish-commands.pod:144
18339 #, no-wrap
18340 msgid ""
18341 "  man\n"
18342 "\n"
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish-commands.pod:146
18347 msgid "Opens the manual page for guestfish."
18348 msgstr ""
18349
18350 #. type: =head2
18351 #: ../fish/guestfish-commands.pod:148
18352 msgid "more"
18353 msgstr ""
18354
18355 #. type: =head2
18356 #: ../fish/guestfish-commands.pod:150
18357 msgid "less"
18358 msgstr ""
18359
18360 #. type: verbatim
18361 #: ../fish/guestfish-commands.pod:152
18362 #, no-wrap
18363 msgid ""
18364 " more filename\n"
18365 "\n"
18366 msgstr ""
18367
18368 #. type: verbatim
18369 #: ../fish/guestfish-commands.pod:154
18370 #, no-wrap
18371 msgid ""
18372 " less filename\n"
18373 "\n"
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fish/guestfish-commands.pod:156
18378 msgid "This is used to view a file."
18379 msgstr ""
18380
18381 #. type: textblock
18382 #: ../fish/guestfish-commands.pod:158
18383 msgid ""
18384 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18385 "C<less> you will get the C<less> command specifically."
18386 msgstr ""
18387
18388 #. type: =head2
18389 #: ../fish/guestfish-commands.pod:161
18390 msgid "reopen"
18391 msgstr ""
18392
18393 #. type: verbatim
18394 #: ../fish/guestfish-commands.pod:163
18395 #, no-wrap
18396 msgid ""
18397 "  reopen\n"
18398 "\n"
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../fish/guestfish-commands.pod:165
18403 msgid ""
18404 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18405 "normally, because the handle is closed properly when guestfish exits.  "
18406 "However this is occasionally useful for testing."
18407 msgstr ""
18408
18409 #. type: =head2
18410 #: ../fish/guestfish-commands.pod:169
18411 msgid "setenv"
18412 msgstr ""
18413
18414 #. type: verbatim
18415 #: ../fish/guestfish-commands.pod:171
18416 #, no-wrap
18417 msgid ""
18418 "  setenv VAR value\n"
18419 "\n"
18420 msgstr ""
18421
18422 #. type: textblock
18423 #: ../fish/guestfish-commands.pod:173
18424 msgid "Set the environment variable C<VAR> to the string C<value>."
18425 msgstr ""
18426
18427 #. type: textblock
18428 #: ../fish/guestfish-commands.pod:175
18429 msgid "To print the value of an environment variable use a shell command such as:"
18430 msgstr ""
18431
18432 #. type: verbatim
18433 #: ../fish/guestfish-commands.pod:178
18434 #, no-wrap
18435 msgid ""
18436 " !echo $VAR\n"
18437 "\n"
18438 msgstr ""
18439
18440 #. type: =head2
18441 #: ../fish/guestfish-commands.pod:180
18442 msgid "sparse"
18443 msgstr ""
18444
18445 #. type: verbatim
18446 #: ../fish/guestfish-commands.pod:182
18447 #, no-wrap
18448 msgid ""
18449 " sparse filename size\n"
18450 "\n"
18451 msgstr ""
18452
18453 #. type: textblock
18454 #: ../fish/guestfish-commands.pod:184
18455 msgid ""
18456 "This creates an empty sparse file of the given size, and then adds so it can "
18457 "be further examined."
18458 msgstr ""
18459
18460 #. type: textblock
18461 #: ../fish/guestfish-commands.pod:187
18462 msgid ""
18463 "In all respects it works the same as the L</alloc> command, except that the "
18464 "image file is allocated sparsely, which means that disk blocks are not "
18465 "assigned to the file until they are needed.  Sparse disk files only use "
18466 "space when written to, but they are slower and there is a danger you could "
18467 "run out of real disk space during a write operation."
18468 msgstr ""
18469
18470 #. type: =head2
18471 #: ../fish/guestfish-commands.pod:197
18472 msgid "supported"
18473 msgstr ""
18474
18475 #. type: verbatim
18476 #: ../fish/guestfish-commands.pod:199
18477 #, no-wrap
18478 msgid ""
18479 " supported\n"
18480 "\n"
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish-commands.pod:201
18485 msgid ""
18486 "This command returns a list of the optional groups known to the daemon, and "
18487 "indicates which ones are supported by this build of the libguestfs "
18488 "appliance."
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish-commands.pod:205
18493 msgid "See also L<guestfs(3)/AVAILABILITY>."
18494 msgstr ""
18495
18496 #. type: =head2
18497 #: ../fish/guestfish-commands.pod:207
18498 msgid "time"
18499 msgstr ""
18500
18501 #. type: verbatim
18502 #: ../fish/guestfish-commands.pod:209
18503 #, no-wrap
18504 msgid ""
18505 " time command args...\n"
18506 "\n"
18507 msgstr ""
18508
18509 #. type: textblock
18510 #: ../fish/guestfish-commands.pod:211
18511 msgid ""
18512 "Run the command as usual, but print the elapsed time afterwards.  This can "
18513 "be useful for benchmarking operations."
18514 msgstr ""
18515
18516 #. type: =head2
18517 #: ../fish/guestfish-commands.pod:214
18518 msgid "unsetenv"
18519 msgstr ""
18520
18521 #. type: verbatim
18522 #: ../fish/guestfish-commands.pod:216
18523 #, no-wrap
18524 msgid ""
18525 "  unsetenv VAR\n"
18526 "\n"
18527 msgstr ""
18528
18529 #. type: textblock
18530 #: ../fish/guestfish-commands.pod:218
18531 msgid "Remove C<VAR> from the environment."
18532 msgstr ""
18533
18534 #. type: textblock
18535 #: ../fish/guestfish.pod:5
18536 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18537 msgstr ""
18538
18539 #. type: verbatim
18540 #: ../fish/guestfish.pod:9
18541 #, no-wrap
18542 msgid ""
18543 " guestfish [--options] [commands]\n"
18544 "\n"
18545 msgstr ""
18546
18547 #. type: verbatim
18548 #: ../fish/guestfish.pod:11
18549 #, no-wrap
18550 msgid ""
18551 " guestfish\n"
18552 "\n"
18553 msgstr ""
18554
18555 #. type: verbatim
18556 #: ../fish/guestfish.pod:13
18557 #, no-wrap
18558 msgid ""
18559 " guestfish [--ro|--rw] -a disk.img\n"
18560 "\n"
18561 msgstr ""
18562
18563 #. type: verbatim
18564 #: ../fish/guestfish.pod:15
18565 #, no-wrap
18566 msgid ""
18567 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18568 "\n"
18569 msgstr ""
18570
18571 #. type: verbatim
18572 #: ../fish/guestfish.pod:17
18573 #, no-wrap
18574 msgid ""
18575 " guestfish -d libvirt-domain\n"
18576 "\n"
18577 msgstr ""
18578
18579 #. type: verbatim
18580 #: ../fish/guestfish.pod:19
18581 #, no-wrap
18582 msgid ""
18583 " guestfish [--ro|--rw] -a disk.img -i\n"
18584 "\n"
18585 msgstr ""
18586
18587 #. type: verbatim
18588 #: ../fish/guestfish.pod:21
18589 #, no-wrap
18590 msgid ""
18591 " guestfish -d libvirt-domain -i\n"
18592 "\n"
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fish/guestfish.pod:25
18597 msgid ""
18598 "Using guestfish in read/write mode on live virtual machines can be "
18599 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18600 "option to use guestfish safely if the disk image or virtual machine might be "
18601 "live."
18602 msgstr ""
18603
18604 #. type: textblock
18605 #: ../fish/guestfish.pod:32
18606 msgid ""
18607 "Guestfish is a shell and command-line tool for examining and modifying "
18608 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18609 "functionality of the guestfs API, see L<guestfs(3)>."
18610 msgstr ""
18611
18612 #. type: textblock
18613 #: ../fish/guestfish.pod:36
18614 msgid ""
18615 "Guestfish gives you structured access to the libguestfs API, from shell "
18616 "scripts or the command line or interactively.  If you want to rescue a "
18617 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18618 "command."
18619 msgstr ""
18620
18621 #. type: =head2
18622 #: ../fish/guestfish.pod:43
18623 msgid "As an interactive shell"
18624 msgstr ""
18625
18626 #. type: verbatim
18627 #: ../fish/guestfish.pod:45
18628 #, no-wrap
18629 msgid ""
18630 " $ guestfish\n"
18631 " \n"
18632 msgstr ""
18633
18634 #. type: verbatim
18635 #: ../fish/guestfish.pod:47
18636 #, no-wrap
18637 msgid ""
18638 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18639 " editing virtual machine filesystems.\n"
18640 " \n"
18641 msgstr ""
18642
18643 #. type: verbatim
18644 #: ../fish/guestfish.pod:50
18645 #, no-wrap
18646 msgid ""
18647 " Type: 'help' for a list of commands\n"
18648 "       'man' to read the manual\n"
18649 "       'quit' to quit the shell\n"
18650 " \n"
18651 msgstr ""
18652
18653 #. type: verbatim
18654 #: ../fish/guestfish.pod:54
18655 #, no-wrap
18656 msgid ""
18657 " ><fs> add-ro disk.img\n"
18658 " ><fs> run\n"
18659 " ><fs> list-filesystems\n"
18660 " /dev/sda1: ext4\n"
18661 " /dev/vg_guest/lv_root: ext4\n"
18662 " /dev/vg_guest/lv_swap: swap\n"
18663 " ><fs> mount /dev/vg_guest/lv_root /\n"
18664 " ><fs> cat /etc/fstab\n"
18665 " # /etc/fstab\n"
18666 " # Created by anaconda\n"
18667 " [...]\n"
18668 " ><fs> exit\n"
18669 "\n"
18670 msgstr ""
18671
18672 #. type: =head2
18673 #: ../fish/guestfish.pod:67
18674 msgid "From shell scripts"
18675 msgstr ""
18676
18677 #. type: textblock
18678 #: ../fish/guestfish.pod:69
18679 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18680 msgstr ""
18681
18682 #. type: verbatim
18683 #: ../fish/guestfish.pod:71
18684 #, no-wrap
18685 msgid ""
18686 " guestfish <<_EOF_\n"
18687 " add disk.img\n"
18688 " run\n"
18689 " mount /dev/vg_guest/lv_root /\n"
18690 " write /etc/motd \"Welcome, new users\"\n"
18691 " _EOF_\n"
18692 "\n"
18693 msgstr ""
18694
18695 #. type: textblock
18696 #: ../fish/guestfish.pod:78
18697 msgid "List the LVM logical volumes in a disk image:"
18698 msgstr ""
18699
18700 #. type: verbatim
18701 #: ../fish/guestfish.pod:80
18702 #, no-wrap
18703 msgid ""
18704 " guestfish -a disk.img --ro <<_EOF_\n"
18705 " run\n"
18706 " lvs\n"
18707 " _EOF_\n"
18708 "\n"
18709 msgstr ""
18710
18711 #. type: textblock
18712 #: ../fish/guestfish.pod:85
18713 msgid "List all the filesystems in a disk image:"
18714 msgstr ""
18715
18716 #. type: verbatim
18717 #: ../fish/guestfish.pod:87
18718 #, no-wrap
18719 msgid ""
18720 " guestfish -a disk.img --ro <<_EOF_\n"
18721 " run\n"
18722 " list-filesystems\n"
18723 " _EOF_\n"
18724 "\n"
18725 msgstr ""
18726
18727 #. type: =head2
18728 #: ../fish/guestfish.pod:92
18729 msgid "On one command line"
18730 msgstr ""
18731
18732 #. type: textblock
18733 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18734 msgid "Update C</etc/resolv.conf> in a guest:"
18735 msgstr ""
18736
18737 #. type: verbatim
18738 #: ../fish/guestfish.pod:96
18739 #, no-wrap
18740 msgid ""
18741 " guestfish \\\n"
18742 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18743 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18744 "\n"
18745 msgstr ""
18746
18747 #. type: textblock
18748 #: ../fish/guestfish.pod:100
18749 msgid "Edit C</boot/grub/grub.conf> interactively:"
18750 msgstr ""
18751
18752 #. type: verbatim
18753 #: ../fish/guestfish.pod:102
18754 #, no-wrap
18755 msgid ""
18756 " guestfish --rw --add disk.img \\\n"
18757 "   --mount /dev/vg_guest/lv_root \\\n"
18758 "   --mount /dev/sda1:/boot \\\n"
18759 "   edit /boot/grub/grub.conf\n"
18760 "\n"
18761 msgstr ""
18762
18763 #. type: =head2
18764 #: ../fish/guestfish.pod:107
18765 msgid "Mount disks automatically"
18766 msgstr ""
18767
18768 #. type: textblock
18769 #: ../fish/guestfish.pod:109
18770 msgid ""
18771 "Use the I<-i> option to automatically mount the disks from a virtual "
18772 "machine:"
18773 msgstr ""
18774
18775 #. type: verbatim
18776 #: ../fish/guestfish.pod:112
18777 #, no-wrap
18778 msgid ""
18779 " guestfish --ro -a disk.img -i cat /etc/group\n"
18780 "\n"
18781 msgstr ""
18782
18783 #. type: verbatim
18784 #: ../fish/guestfish.pod:114
18785 #, no-wrap
18786 msgid ""
18787 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18788 "\n"
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fish/guestfish.pod:116
18793 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18794 msgstr ""
18795
18796 #. type: verbatim
18797 #: ../fish/guestfish.pod:118
18798 #, no-wrap
18799 msgid ""
18800 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18801 "\n"
18802 msgstr ""
18803
18804 #. type: =head2
18805 #: ../fish/guestfish.pod:120
18806 msgid "As a script interpreter"
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../fish/guestfish.pod:122
18811 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18812 msgstr ""
18813
18814 #. type: verbatim
18815 #: ../fish/guestfish.pod:124
18816 #, no-wrap
18817 msgid ""
18818 " #!/usr/bin/guestfish -f\n"
18819 " sparse test1.img 100M\n"
18820 " run\n"
18821 " part-disk /dev/sda mbr\n"
18822 " mkfs ext2 /dev/sda1\n"
18823 "\n"
18824 msgstr ""
18825
18826 #. type: =head2
18827 #: ../fish/guestfish.pod:130
18828 msgid "Start with a prepared disk"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:132
18833 msgid ""
18834 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18835 "single ext2-formatted partition:"
18836 msgstr ""
18837
18838 #. type: verbatim
18839 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18840 #, no-wrap
18841 msgid ""
18842 " guestfish -N fs\n"
18843 "\n"
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/guestfish.pod:137
18848 msgid "To list what is available do:"
18849 msgstr ""
18850
18851 #. type: verbatim
18852 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18853 #, no-wrap
18854 msgid ""
18855 " guestfish -N help | less\n"
18856 "\n"
18857 msgstr ""
18858
18859 #. type: =head2
18860 #: ../fish/guestfish.pod:141
18861 msgid "Remote control"
18862 msgstr ""
18863
18864 #. type: verbatim
18865 #: ../fish/guestfish.pod:143
18866 #, no-wrap
18867 msgid ""
18868 " eval \"`guestfish --listen`\"\n"
18869 " guestfish --remote add-ro disk.img\n"
18870 " guestfish --remote run\n"
18871 " guestfish --remote lvs\n"
18872 "\n"
18873 msgstr ""
18874
18875 #. type: textblock
18876 #: ../fish/guestfish.pod:154
18877 msgid "Displays general help on options."
18878 msgstr ""
18879
18880 #. type: =item
18881 #: ../fish/guestfish.pod:158
18882 msgid "B<--cmd-help>"
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/guestfish.pod:160
18887 msgid "Lists all available guestfish commands."
18888 msgstr ""
18889
18890 #. type: =item
18891 #: ../fish/guestfish.pod:162
18892 msgid "B<-h cmd>"
18893 msgstr ""
18894
18895 #. type: =item
18896 #: ../fish/guestfish.pod:164
18897 msgid "B<--cmd-help cmd>"
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../fish/guestfish.pod:166
18902 msgid "Displays detailed help on a single command C<cmd>."
18903 msgstr ""
18904
18905 #. type: =item
18906 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18907 msgid "B<-a image>"
18908 msgstr ""
18909
18910 #. type: =item
18911 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18912 msgid "B<--add image>"
18913 msgstr ""
18914
18915 #. type: textblock
18916 #: ../fish/guestfish.pod:172
18917 msgid "Add a block device or virtual machine image to the shell."
18918 msgstr ""
18919
18920 #. type: textblock
18921 #: ../fish/guestfish.pod:177
18922 msgid ""
18923 "Using this flag is mostly equivalent to using the C<add> command, with "
18924 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18925 "the I<--format=...> flag was given."
18926 msgstr ""
18927
18928 #. type: textblock
18929 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18930 msgid ""
18931 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18932 "URI to use.  The default is to use the default libvirt connection."
18933 msgstr ""
18934
18935 #. type: =item
18936 #: ../fish/guestfish.pod:189
18937 msgid "B<--csh>"
18938 msgstr ""
18939
18940 #. type: textblock
18941 #: ../fish/guestfish.pod:191
18942 msgid ""
18943 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18944 "section L</REMOTE CONTROL AND CSH> below."
18945 msgstr ""
18946
18947 #. type: =item
18948 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18949 msgid "B<-d libvirt-domain>"
18950 msgstr ""
18951
18952 #. type: =item
18953 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18954 msgid "B<--domain libvirt-domain>"
18955 msgstr ""
18956
18957 #. type: textblock
18958 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18959 msgid ""
18960 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18961 "used, then any libvirt domain can be used.  However in write mode, only "
18962 "libvirt domains which are shut down can be named here."
18963 msgstr ""
18964
18965 #. type: textblock
18966 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18967 msgid "Domain UUIDs can be used instead of names."
18968 msgstr ""
18969
18970 #. type: textblock
18971 #: ../fish/guestfish.pod:204
18972 msgid ""
18973 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18974 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18975 "if the I<--format:...> flag was given."
18976 msgstr ""
18977
18978 #. type: =item
18979 #: ../fish/guestfish.pod:208
18980 msgid "B<-D>"
18981 msgstr ""
18982
18983 #. type: =item
18984 #: ../fish/guestfish.pod:210
18985 msgid "B<--no-dest-paths>"
18986 msgstr ""
18987
18988 #. type: textblock
18989 #: ../fish/guestfish.pod:212
18990 msgid ""
18991 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18992 "to hit the tab key to complete paths on the guest filesystem, but this "
18993 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18994 "allow this feature to be disabled."
18995 msgstr ""
18996
18997 #. type: textblock
18998 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18999 msgid ""
19000 "When prompting for keys and passphrases, guestfish normally turns echoing "
19001 "off so you cannot see what you are typing.  If you are not worried about "
19002 "Tempest attacks and there is no one else in the room you can specify this "
19003 "flag to see what you are typing."
19004 msgstr ""
19005
19006 #. type: =item
19007 #: ../fish/guestfish.pod:224
19008 msgid "B<-f file>"
19009 msgstr ""
19010
19011 #. type: =item
19012 #: ../fish/guestfish.pod:226
19013 msgid "B<--file file>"
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../fish/guestfish.pod:228
19018 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19019 msgstr ""
19020
19021 #. type: verbatim
19022 #: ../fish/guestfish.pod:231
19023 #, no-wrap
19024 msgid ""
19025 " #!/usr/bin/guestfish -f\n"
19026 "\n"
19027 msgstr ""
19028
19029 #. type: verbatim
19030 #: ../fish/guestfish.pod:244
19031 #, no-wrap
19032 msgid ""
19033 " guestfish --format=raw -a disk.img\n"
19034 "\n"
19035 msgstr ""
19036
19037 #. type: verbatim
19038 #: ../fish/guestfish.pod:248
19039 #, no-wrap
19040 msgid ""
19041 " guestfish --format=raw -a disk.img --format -a another.img\n"
19042 "\n"
19043 msgstr ""
19044
19045 #. type: textblock
19046 #: ../fish/guestfish.pod:253
19047 msgid ""
19048 "If you have untrusted raw-format guest disk images, you should use this "
19049 "option to specify the disk format.  This avoids a possible security problem "
19050 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19051 msgstr ""
19052
19053 #. type: =item
19054 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19055 msgid "B<--inspector>"
19056 msgstr ""
19057
19058 #. type: textblock
19059 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19060 msgid ""
19061 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19062 "system and mount filesystems as they would be mounted on the real virtual "
19063 "machine."
19064 msgstr ""
19065
19066 #. type: textblock
19067 #: ../fish/guestfish.pod:266
19068 msgid "Typical usage is either:"
19069 msgstr ""
19070
19071 #. type: verbatim
19072 #: ../fish/guestfish.pod:268
19073 #, no-wrap
19074 msgid ""
19075 " guestfish -d myguest -i\n"
19076 "\n"
19077 msgstr ""
19078
19079 #. type: textblock
19080 #: ../fish/guestfish.pod:270
19081 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19082 msgstr ""
19083
19084 #. type: verbatim
19085 #: ../fish/guestfish.pod:272
19086 #, no-wrap
19087 msgid ""
19088 " guestfish --ro -d myguest -i\n"
19089 "\n"
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/guestfish.pod:274
19094 msgid "(for active domains, readonly), or specify the block device directly:"
19095 msgstr ""
19096
19097 #. type: verbatim
19098 #: ../fish/guestfish.pod:276
19099 #, no-wrap
19100 msgid ""
19101 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19102 "\n"
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../fish/guestfish.pod:278
19107 msgid ""
19108 "Note that the command line syntax changed slightly over older versions of "
19109 "guestfish.  You can still use the old syntax:"
19110 msgstr ""
19111
19112 #. type: verbatim
19113 #: ../fish/guestfish.pod:281
19114 #, no-wrap
19115 msgid ""
19116 " guestfish [--ro] -i disk.img\n"
19117 "\n"
19118 msgstr ""
19119
19120 #. type: verbatim
19121 #: ../fish/guestfish.pod:283
19122 #, no-wrap
19123 msgid ""
19124 " guestfish [--ro] -i libvirt-domain\n"
19125 "\n"
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:285
19130 msgid ""
19131 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19132 "then using other commands to mount the filesystems that were found."
19133 msgstr ""
19134
19135 #. type: =item
19136 #: ../fish/guestfish.pod:294
19137 msgid "B<--listen>"
19138 msgstr ""
19139
19140 #. type: textblock
19141 #: ../fish/guestfish.pod:296
19142 msgid ""
19143 "Fork into the background and listen for remote commands.  See section "
19144 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19145 msgstr ""
19146
19147 #. type: =item
19148 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19149 msgid "B<--live>"
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19154 msgid ""
19155 "Connect to a live virtual machine.  (Experimental, see "
19156 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
19157 msgstr ""
19158
19159 #. type: =item
19160 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19161 msgid "B<-m dev[:mountpoint[:options]]>"
19162 msgstr ""
19163
19164 #. type: =item
19165 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19166 msgid "B<--mount dev[:mountpoint[:options]]>"
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fish/guestfish.pod:308
19171 msgid "Mount the named partition or logical volume on the given mountpoint."
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/guestfish.pod:310
19176 msgid "If the mountpoint is omitted, it defaults to C</>."
19177 msgstr ""
19178
19179 #. type: textblock
19180 #: ../fish/guestfish.pod:312
19181 msgid "You have to mount something on C</> before most commands will work."
19182 msgstr ""
19183
19184 #. type: textblock
19185 #: ../fish/guestfish.pod:314
19186 msgid ""
19187 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19188 "launched."
19189 msgstr ""
19190
19191 #. type: textblock
19192 #: ../fish/guestfish.pod:317
19193 msgid ""
19194 "If you don't know what filesystems a disk image contains, you can either run "
19195 "guestfish without this option, then list the partitions, filesystems and LVs "
19196 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19197 "commands), or you can use the L<virt-filesystems(1)> program."
19198 msgstr ""
19199
19200 #. type: textblock
19201 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19202 msgid ""
19203 "The third (and rarely used) part of the mount parameter is the list of mount "
19204 "options used to mount the underlying filesystem.  If this is not given, then "
19205 "the mount options are either the empty string or C<ro> (the latter if the "
19206 "I<--ro> flag is used).  By specifying the mount options, you override this "
19207 "default choice.  Probably the only time you would use this is to enable ACLs "
19208 "and/or extended attributes if the filesystem can support them:"
19209 msgstr ""
19210
19211 #. type: verbatim
19212 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19213 #, no-wrap
19214 msgid ""
19215 " -m /dev/sda1:/:acl,user_xattr\n"
19216 "\n"
19217 msgstr ""
19218
19219 #. type: textblock
19220 #: ../fish/guestfish.pod:333
19221 msgid "Using this flag is equivalent to using the C<mount-options> command."
19222 msgstr ""
19223
19224 #. type: =item
19225 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:435
19226 msgid "B<-n>"
19227 msgstr ""
19228
19229 #. type: =item
19230 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19231 msgid "B<--no-sync>"
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../fish/guestfish.pod:339
19236 msgid ""
19237 "Disable autosync.  This is enabled by default.  See the discussion of "
19238 "autosync in the L<guestfs(3)> manpage."
19239 msgstr ""
19240
19241 #. type: =item
19242 #: ../fish/guestfish.pod:342
19243 msgid "B<-N type>"
19244 msgstr ""
19245
19246 #. type: =item
19247 #: ../fish/guestfish.pod:344
19248 msgid "B<--new type>"
19249 msgstr ""
19250
19251 #. type: =item
19252 #: ../fish/guestfish.pod:346
19253 msgid "B<-N help>"
19254 msgstr ""
19255
19256 #. type: textblock
19257 #: ../fish/guestfish.pod:348
19258 msgid ""
19259 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19260 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19261 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19262 "IMAGES> below."
19263 msgstr ""
19264
19265 #. type: =item
19266 #: ../fish/guestfish.pod:353
19267 msgid "B<--progress-bars>"
19268 msgstr ""
19269
19270 #. type: textblock
19271 #: ../fish/guestfish.pod:355
19272 msgid "Enable progress bars, even when guestfish is used non-interactively."
19273 msgstr ""
19274
19275 #. type: textblock
19276 #: ../fish/guestfish.pod:357
19277 msgid ""
19278 "Progress bars are enabled by default when guestfish is used as an "
19279 "interactive shell."
19280 msgstr ""
19281
19282 #. type: =item
19283 #: ../fish/guestfish.pod:360
19284 msgid "B<--no-progress-bars>"
19285 msgstr ""
19286
19287 #. type: textblock
19288 #: ../fish/guestfish.pod:362
19289 msgid "Disable progress bars."
19290 msgstr ""
19291
19292 #. type: =item
19293 #: ../fish/guestfish.pod:364
19294 msgid "B<--remote[=pid]>"
19295 msgstr ""
19296
19297 #. type: textblock
19298 #: ../fish/guestfish.pod:366
19299 msgid ""
19300 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19301 "CONTROL GUESTFISH OVER A SOCKET> below."
19302 msgstr ""
19303
19304 #. type: =item
19305 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:189
19306 msgid "B<-r>"
19307 msgstr ""
19308
19309 #. type: =item
19310 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:191
19311 msgid "B<--ro>"
19312 msgstr ""
19313
19314 #. type: textblock
19315 #: ../fish/guestfish.pod:373
19316 msgid ""
19317 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19318 "mounts are done read-only."
19319 msgstr ""
19320
19321 #. type: textblock
19322 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19323 msgid ""
19324 "The option must always be used if the disk image or virtual machine might be "
19325 "running, and is generally recommended in cases where you don't need write "
19326 "access to the disk."
19327 msgstr ""
19328
19329 #. type: textblock
19330 #: ../fish/guestfish.pod:380
19331 msgid ""
19332 "Note that prepared disk images created with I<-N> are not affected by this "
19333 "option.  Also commands like C<add> are not affected - you have to specify "
19334 "the C<readonly:true> option explicitly if you need it."
19335 msgstr ""
19336
19337 #. type: textblock
19338 #: ../fish/guestfish.pod:384
19339 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19340 msgstr ""
19341
19342 #. type: =item
19343 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:201
19344 msgid "B<--selinux>"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:388
19349 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../fish/guestfish.pod:394
19354 msgid ""
19355 "Enable very verbose messages.  This is particularly useful if you find a "
19356 "bug."
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/guestfish.pod:401
19361 msgid "Display the guestfish / libguestfs version number and exit."
19362 msgstr ""
19363
19364 #. type: =item
19365 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:231
19366 msgid "B<-w>"
19367 msgstr ""
19368
19369 #. type: =item
19370 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:233
19371 msgid "B<--rw>"
19372 msgstr ""
19373
19374 #. type: textblock
19375 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19376 msgid ""
19377 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19378 "mounts are done read-write."
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish.pod:410
19383 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19384 msgstr ""
19385
19386 #. type: textblock
19387 #: ../fish/guestfish.pod:414
19388 msgid "Echo each command before executing it."
19389 msgstr ""
19390
19391 #. type: =head1
19392 #: ../fish/guestfish.pod:418
19393 msgid "COMMANDS ON COMMAND LINE"
19394 msgstr ""
19395
19396 #. type: textblock
19397 #: ../fish/guestfish.pod:420
19398 msgid "Any additional (non-option) arguments are treated as commands to execute."
19399 msgstr ""
19400
19401 #. type: textblock
19402 #: ../fish/guestfish.pod:423
19403 msgid ""
19404 "Commands to execute should be separated by a colon (C<:>), where the colon "
19405 "is a separate parameter.  Thus:"
19406 msgstr ""
19407
19408 #. type: verbatim
19409 #: ../fish/guestfish.pod:426
19410 #, no-wrap
19411 msgid ""
19412 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19413 "\n"
19414 msgstr ""
19415
19416 #. type: textblock
19417 #: ../fish/guestfish.pod:428
19418 msgid ""
19419 "If there are no additional arguments, then we enter a shell, either an "
19420 "interactive shell with a prompt (if the input is a terminal) or a "
19421 "non-interactive shell."
19422 msgstr ""
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:432
19426 msgid ""
19427 "In either command line mode or non-interactive shell, the first command that "
19428 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19429 "prompt) if a command fails, you can continue to enter commands."
19430 msgstr ""
19431
19432 #. type: =head1
19433 #: ../fish/guestfish.pod:437
19434 msgid "USING launch (OR run)"
19435 msgstr ""
19436
19437 #. type: textblock
19438 #: ../fish/guestfish.pod:439
19439 msgid ""
19440 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19441 "then launch it, then mount any disks you need, and finally issue "
19442 "actions/commands.  So the general order of the day is:"
19443 msgstr ""
19444
19445 #. type: textblock
19446 #: ../fish/guestfish.pod:447
19447 msgid "add or -a/--add"
19448 msgstr ""
19449
19450 #. type: textblock
19451 #: ../fish/guestfish.pod:451
19452 msgid "launch (aka run)"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fish/guestfish.pod:455
19457 msgid "mount or -m/--mount"
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:459
19462 msgid "any other commands"
19463 msgstr ""
19464
19465 #. type: textblock
19466 #: ../fish/guestfish.pod:463
19467 msgid ""
19468 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19469 "guest before mounting or performing any other commands."
19470 msgstr ""
19471
19472 #. type: textblock
19473 #: ../fish/guestfish.pod:466
19474 msgid ""
19475 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19476 "I<--new> options were given then C<run> is done automatically, simply "
19477 "because guestfish can't perform the action you asked for without doing this."
19478 msgstr ""
19479
19480 #. type: =head1
19481 #: ../fish/guestfish.pod:471
19482 msgid "OPENING DISKS FOR READ AND WRITE"
19483 msgstr ""
19484
19485 #. type: textblock
19486 #: ../fish/guestfish.pod:473
19487 msgid ""
19488 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19489 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19490 "I<-i> and I<-m> open disk images read-only or for writing."
19491 msgstr ""
19492
19493 #. type: textblock
19494 #: ../fish/guestfish.pod:478
19495 msgid ""
19496 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19497 "opening disk images supplied on the command line for write.  To open a disk "
19498 "image read-only you have to do I<-a image --ro>."
19499 msgstr ""
19500
19501 #. type: textblock
19502 #: ../fish/guestfish.pod:482
19503 msgid ""
19504 "This matters: If you accidentally open a live VM disk image writable then "
19505 "you will cause irreversible disk corruption."
19506 msgstr ""
19507
19508 #. type: textblock
19509 #: ../fish/guestfish.pod:485
19510 msgid ""
19511 "In a future libguestfs we intend to change the default the other way.  Disk "
19512 "images will be opened read-only.  You will have to either specify "
19513 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19514 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19515 "access for disk images specified by those other command line options."
19516 msgstr ""
19517
19518 #. type: textblock
19519 #: ../fish/guestfish.pod:492
19520 msgid ""
19521 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19522 "which does nothing (it is already the default).  However it is highly "
19523 "recommended that you use this option to indicate that you need write access, "
19524 "and prepare your scripts for the day when this option will be required for "
19525 "write access."
19526 msgstr ""
19527
19528 #. type: textblock
19529 #: ../fish/guestfish.pod:498
19530 msgid ""
19531 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19532 "other libguestfs program apart from guestfish and guestmount."
19533 msgstr ""
19534
19535 #. type: =head1
19536 #: ../fish/guestfish.pod:501
19537 msgid "QUOTING"
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/guestfish.pod:503
19542 msgid ""
19543 "You can quote ordinary parameters using either single or double quotes.  For "
19544 "example:"
19545 msgstr ""
19546
19547 #. type: verbatim
19548 #: ../fish/guestfish.pod:506
19549 #, no-wrap
19550 msgid ""
19551 " add \"file with a space.img\"\n"
19552 "\n"
19553 msgstr ""
19554
19555 #. type: verbatim
19556 #: ../fish/guestfish.pod:508
19557 #, no-wrap
19558 msgid ""
19559 " rm '/file name'\n"
19560 "\n"
19561 msgstr ""
19562
19563 #. type: verbatim
19564 #: ../fish/guestfish.pod:510
19565 #, no-wrap
19566 msgid ""
19567 " rm '/\"'\n"
19568 "\n"
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:512
19573 msgid ""
19574 "A few commands require a list of strings to be passed.  For these, use a "
19575 "whitespace-separated list, enclosed in quotes.  Strings containing "
19576 "whitespace to be passed through must be enclosed in single quotes.  A "
19577 "literal single quote must be escaped with a backslash."
19578 msgstr ""
19579
19580 #. type: verbatim
19581 #: ../fish/guestfish.pod:517
19582 #, no-wrap
19583 msgid ""
19584 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19585 " command \"/bin/echo 'foo      bar'\"\n"
19586 " command \"/bin/echo \\'foo\\'\"\n"
19587 "\n"
19588 msgstr ""
19589
19590 #. type: =head2
19591 #: ../fish/guestfish.pod:521
19592 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19593 msgstr ""
19594
19595 #. type: textblock
19596 #: ../fish/guestfish.pod:523
19597 msgid ""
19598 "In double-quoted arguments (only) use backslash to insert special "
19599 "characters:"
19600 msgstr ""
19601
19602 #. type: =item
19603 #: ../fish/guestfish.pod:528
19604 msgid "C<\\a>"
19605 msgstr ""
19606
19607 #. type: textblock
19608 #: ../fish/guestfish.pod:530
19609 msgid "Alert (bell) character."
19610 msgstr ""
19611
19612 #. type: =item
19613 #: ../fish/guestfish.pod:532
19614 msgid "C<\\b>"
19615 msgstr ""
19616
19617 #. type: textblock
19618 #: ../fish/guestfish.pod:534
19619 msgid "Backspace character."
19620 msgstr ""
19621
19622 #. type: =item
19623 #: ../fish/guestfish.pod:536
19624 msgid "C<\\f>"
19625 msgstr ""
19626
19627 #. type: textblock
19628 #: ../fish/guestfish.pod:538
19629 msgid "Form feed character."
19630 msgstr ""
19631
19632 #. type: =item
19633 #: ../fish/guestfish.pod:540
19634 msgid "C<\\n>"
19635 msgstr ""
19636
19637 #. type: textblock
19638 #: ../fish/guestfish.pod:542
19639 msgid "Newline character."
19640 msgstr ""
19641
19642 #. type: =item
19643 #: ../fish/guestfish.pod:544
19644 msgid "C<\\r>"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:546
19649 msgid "Carriage return character."
19650 msgstr ""
19651
19652 #. type: =item
19653 #: ../fish/guestfish.pod:548
19654 msgid "C<\\t>"
19655 msgstr ""
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:550
19659 msgid "Horizontal tab character."
19660 msgstr ""
19661
19662 #. type: =item
19663 #: ../fish/guestfish.pod:552
19664 msgid "C<\\v>"
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../fish/guestfish.pod:554
19669 msgid "Vertical tab character."
19670 msgstr ""
19671
19672 #. type: =item
19673 #: ../fish/guestfish.pod:556
19674 msgid "C<\\\">"
19675 msgstr ""
19676
19677 #. type: textblock
19678 #: ../fish/guestfish.pod:558
19679 msgid "A literal double quote character."
19680 msgstr ""
19681
19682 #. type: =item
19683 #: ../fish/guestfish.pod:560
19684 msgid "C<\\ooo>"
19685 msgstr ""
19686
19687 #. type: textblock
19688 #: ../fish/guestfish.pod:562
19689 msgid ""
19690 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19691 "(unlike C)."
19692 msgstr ""
19693
19694 #. type: =item
19695 #: ../fish/guestfish.pod:565
19696 msgid "C<\\xhh>"
19697 msgstr ""
19698
19699 #. type: textblock
19700 #: ../fish/guestfish.pod:567
19701 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19702 msgstr ""
19703
19704 #. type: textblock
19705 #: ../fish/guestfish.pod:570
19706 msgid ""
19707 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19708 "strings."
19709 msgstr ""
19710
19711 #. type: =item
19712 #: ../fish/guestfish.pod:573
19713 msgid "C<\\\\>"
19714 msgstr ""
19715
19716 #. type: textblock
19717 #: ../fish/guestfish.pod:575
19718 msgid "A literal backslash character."
19719 msgstr ""
19720
19721 #. type: =head1
19722 #: ../fish/guestfish.pod:579
19723 msgid "OPTIONAL ARGUMENTS"
19724 msgstr ""
19725
19726 #. type: textblock
19727 #: ../fish/guestfish.pod:581
19728 msgid ""
19729 "Some commands take optional arguments.  These arguments appear in this "
19730 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19731 msgstr ""
19732
19733 #. type: verbatim
19734 #: ../fish/guestfish.pod:585
19735 #, no-wrap
19736 msgid ""
19737 " add-drive-opts filename\n"
19738 "\n"
19739 msgstr ""
19740
19741 #. type: verbatim
19742 #: ../fish/guestfish.pod:587
19743 #, no-wrap
19744 msgid ""
19745 " add-drive-opts filename readonly:true\n"
19746 "\n"
19747 msgstr ""
19748
19749 #. type: verbatim
19750 #: ../fish/guestfish.pod:589
19751 #, no-wrap
19752 msgid ""
19753 " add-drive-opts filename format:qcow2 readonly:false\n"
19754 "\n"
19755 msgstr ""
19756
19757 #. type: textblock
19758 #: ../fish/guestfish.pod:591
19759 msgid ""
19760 "Each optional argument can appear at most once.  All optional arguments must "
19761 "appear after the required ones."
19762 msgstr ""
19763
19764 #. type: =head1
19765 #: ../fish/guestfish.pod:594
19766 msgid "NUMBERS"
19767 msgstr ""
19768
19769 #. type: textblock
19770 #: ../fish/guestfish.pod:596
19771 msgid "This section applies to all commands which can take integers as parameters."
19772 msgstr ""
19773
19774 #. type: =head2
19775 #: ../fish/guestfish.pod:599
19776 msgid "SIZE SUFFIX"
19777 msgstr ""
19778
19779 #. type: textblock
19780 #: ../fish/guestfish.pod:601
19781 msgid ""
19782 "When the command takes a parameter measured in bytes, you can use one of the "
19783 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19784 msgstr ""
19785
19786 #. type: =item
19787 #: ../fish/guestfish.pod:607
19788 msgid "B<k> or B<K> or B<KiB>"
19789 msgstr ""
19790
19791 #. type: textblock
19792 #: ../fish/guestfish.pod:609
19793 msgid "The size in kilobytes (multiplied by 1024)."
19794 msgstr ""
19795
19796 #. type: =item
19797 #: ../fish/guestfish.pod:611
19798 msgid "B<KB>"
19799 msgstr ""
19800
19801 #. type: textblock
19802 #: ../fish/guestfish.pod:613
19803 msgid "The size in SI 1000 byte units."
19804 msgstr ""
19805
19806 #. type: =item
19807 #: ../fish/guestfish.pod:615
19808 msgid "B<M> or B<MiB>"
19809 msgstr ""
19810
19811 #. type: textblock
19812 #: ../fish/guestfish.pod:617
19813 msgid "The size in megabytes (multiplied by 1048576)."
19814 msgstr ""
19815
19816 #. type: =item
19817 #: ../fish/guestfish.pod:619
19818 msgid "B<MB>"
19819 msgstr ""
19820
19821 #. type: textblock
19822 #: ../fish/guestfish.pod:621
19823 msgid "The size in SI 1000000 byte units."
19824 msgstr ""
19825
19826 #. type: =item
19827 #: ../fish/guestfish.pod:623
19828 msgid "B<G> or B<GiB>"
19829 msgstr ""
19830
19831 #. type: textblock
19832 #: ../fish/guestfish.pod:625
19833 msgid "The size in gigabytes (multiplied by 2**30)."
19834 msgstr ""
19835
19836 #. type: =item
19837 #: ../fish/guestfish.pod:627
19838 msgid "B<GB>"
19839 msgstr ""
19840
19841 #. type: textblock
19842 #: ../fish/guestfish.pod:629
19843 msgid "The size in SI 10**9 byte units."
19844 msgstr ""
19845
19846 #. type: =item
19847 #: ../fish/guestfish.pod:631
19848 msgid "B<T> or B<TiB>"
19849 msgstr ""
19850
19851 #. type: textblock
19852 #: ../fish/guestfish.pod:633
19853 msgid "The size in terabytes (multiplied by 2**40)."
19854 msgstr ""
19855
19856 #. type: =item
19857 #: ../fish/guestfish.pod:635
19858 msgid "B<TB>"
19859 msgstr ""
19860
19861 #. type: textblock
19862 #: ../fish/guestfish.pod:637
19863 msgid "The size in SI 10**12 byte units."
19864 msgstr ""
19865
19866 #. type: =item
19867 #: ../fish/guestfish.pod:639
19868 msgid "B<P> or B<PiB>"
19869 msgstr ""
19870
19871 #. type: textblock
19872 #: ../fish/guestfish.pod:641
19873 msgid "The size in petabytes (multiplied by 2**50)."
19874 msgstr ""
19875
19876 #. type: =item
19877 #: ../fish/guestfish.pod:643
19878 msgid "B<PB>"
19879 msgstr ""
19880
19881 #. type: textblock
19882 #: ../fish/guestfish.pod:645
19883 msgid "The size in SI 10**15 byte units."
19884 msgstr ""
19885
19886 #. type: =item
19887 #: ../fish/guestfish.pod:647
19888 msgid "B<E> or B<EiB>"
19889 msgstr ""
19890
19891 #. type: textblock
19892 #: ../fish/guestfish.pod:649
19893 msgid "The size in exabytes (multiplied by 2**60)."
19894 msgstr ""
19895
19896 #. type: =item
19897 #: ../fish/guestfish.pod:651
19898 msgid "B<EB>"
19899 msgstr ""
19900
19901 #. type: textblock
19902 #: ../fish/guestfish.pod:653
19903 msgid "The size in SI 10**18 byte units."
19904 msgstr ""
19905
19906 #. type: =item
19907 #: ../fish/guestfish.pod:655
19908 msgid "B<Z> or B<ZiB>"
19909 msgstr ""
19910
19911 #. type: textblock
19912 #: ../fish/guestfish.pod:657
19913 msgid "The size in zettabytes (multiplied by 2**70)."
19914 msgstr ""
19915
19916 #. type: =item
19917 #: ../fish/guestfish.pod:659
19918 msgid "B<ZB>"
19919 msgstr ""
19920
19921 #. type: textblock
19922 #: ../fish/guestfish.pod:661
19923 msgid "The size in SI 10**21 byte units."
19924 msgstr ""
19925
19926 #. type: =item
19927 #: ../fish/guestfish.pod:663
19928 msgid "B<Y> or B<YiB>"
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:665
19933 msgid "The size in yottabytes (multiplied by 2**80)."
19934 msgstr ""
19935
19936 #. type: =item
19937 #: ../fish/guestfish.pod:667
19938 msgid "B<YB>"
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../fish/guestfish.pod:669
19943 msgid "The size in SI 10**24 byte units."
19944 msgstr ""
19945
19946 #. type: verbatim
19947 #: ../fish/guestfish.pod:675
19948 #, no-wrap
19949 msgid ""
19950 " truncate-size /file 1G\n"
19951 "\n"
19952 msgstr ""
19953
19954 #. type: textblock
19955 #: ../fish/guestfish.pod:677
19956 msgid "would truncate the file to 1 gigabyte."
19957 msgstr ""
19958
19959 #. type: textblock
19960 #: ../fish/guestfish.pod:679
19961 msgid ""
19962 "Be careful because a few commands take sizes in kilobytes or megabytes "
19963 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
19964 "Adding a suffix will probably not do what you expect."
19965 msgstr ""
19966
19967 #. type: =head2
19968 #: ../fish/guestfish.pod:683
19969 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19970 msgstr ""
19971
19972 #. type: textblock
19973 #: ../fish/guestfish.pod:685
19974 msgid ""
19975 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19976 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19977 msgstr ""
19978
19979 #. type: verbatim
19980 #: ../fish/guestfish.pod:688
19981 #, no-wrap
19982 msgid ""
19983 " 1234      decimal number 1234\n"
19984 " 02322     octal number, equivalent to decimal 1234\n"
19985 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19986 "\n"
19987 msgstr ""
19988
19989 #. type: textblock
19990 #: ../fish/guestfish.pod:692
19991 msgid ""
19992 "When using the C<chmod> command, you almost always want to specify an octal "
19993 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19994 "L<chmod(1)> program):"
19995 msgstr ""
19996
19997 #. type: verbatim
19998 #: ../fish/guestfish.pod:696
19999 #, no-wrap
20000 msgid ""
20001 " chmod 0777 /public  # OK\n"
20002 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20003 "\n"
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fish/guestfish.pod:699
20008 msgid ""
20009 "Commands that return numbers usually print them in decimal, but some "
20010 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20011 "octal, preceeded by C<0>)."
20012 msgstr ""
20013
20014 #. type: =head1
20015 #: ../fish/guestfish.pod:703
20016 msgid "WILDCARDS AND GLOBBING"
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../fish/guestfish.pod:705
20021 msgid ""
20022 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20023 "(globbing) by default.  So for example the following will not do what you "
20024 "expect:"
20025 msgstr ""
20026
20027 #. type: verbatim
20028 #: ../fish/guestfish.pod:709
20029 #, no-wrap
20030 msgid ""
20031 " rm-rf /home/*\n"
20032 "\n"
20033 msgstr ""
20034
20035 #. type: textblock
20036 #: ../fish/guestfish.pod:711
20037 msgid ""
20038 "Assuming you don't have a directory called literally C</home/*> then the "
20039 "above command will return an error."
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../fish/guestfish.pod:714
20044 msgid "To perform wildcard expansion, use the C<glob> command."
20045 msgstr ""
20046
20047 #. type: verbatim
20048 #: ../fish/guestfish.pod:716
20049 #, no-wrap
20050 msgid ""
20051 " glob rm-rf /home/*\n"
20052 "\n"
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../fish/guestfish.pod:718
20057 msgid ""
20058 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20059 "many times), equivalent to:"
20060 msgstr ""
20061
20062 #. type: verbatim
20063 #: ../fish/guestfish.pod:721
20064 #, no-wrap
20065 msgid ""
20066 " rm-rf /home/jim\n"
20067 " rm-rf /home/joe\n"
20068 " rm-rf /home/mary\n"
20069 "\n"
20070 msgstr ""
20071
20072 #. type: textblock
20073 #: ../fish/guestfish.pod:725
20074 msgid "C<glob> only works on simple guest paths and not on device names."
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../fish/guestfish.pod:727
20079 msgid ""
20080 "If you have several parameters, each containing a wildcard, then glob will "
20081 "perform a Cartesian product."
20082 msgstr ""
20083
20084 #. type: =head1
20085 #: ../fish/guestfish.pod:730
20086 msgid "COMMENTS"
20087 msgstr ""
20088
20089 #. type: textblock
20090 #: ../fish/guestfish.pod:732
20091 msgid ""
20092 "Any line which starts with a I<#> character is treated as a comment and "
20093 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20094 "a command.  For example:"
20095 msgstr ""
20096
20097 #. type: verbatim
20098 #: ../fish/guestfish.pod:736
20099 #, no-wrap
20100 msgid ""
20101 " # this is a comment\n"
20102 "         # this is a comment\n"
20103 " foo # NOT a comment\n"
20104 "\n"
20105 msgstr ""
20106
20107 #. type: textblock
20108 #: ../fish/guestfish.pod:740
20109 msgid "Blank lines are also ignored."
20110 msgstr ""
20111
20112 #. type: =head1
20113 #: ../fish/guestfish.pod:742
20114 msgid "RUNNING COMMANDS LOCALLY"
20115 msgstr ""
20116
20117 #. type: textblock
20118 #: ../fish/guestfish.pod:744
20119 msgid ""
20120 "Any line which starts with a I<!> character is treated as a command sent to "
20121 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20122 msgstr ""
20123
20124 #. type: verbatim
20125 #: ../fish/guestfish.pod:748
20126 #, no-wrap
20127 msgid ""
20128 " !mkdir local\n"
20129 " tgz-out /remote local/remote-data.tar.gz\n"
20130 "\n"
20131 msgstr ""
20132
20133 #. type: textblock
20134 #: ../fish/guestfish.pod:751
20135 msgid ""
20136 "will create a directory C<local> on the host, and then export the contents "
20137 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20138 "(See C<tgz-out>)."
20139 msgstr ""
20140
20141 #. type: textblock
20142 #: ../fish/guestfish.pod:755
20143 msgid ""
20144 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20145 "effect, due to the way that subprocesses work in Unix."
20146 msgstr ""
20147
20148 #. type: =head2
20149 #: ../fish/guestfish.pod:758
20150 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20151 msgstr ""
20152
20153 #. type: textblock
20154 #: ../fish/guestfish.pod:760
20155 msgid ""
20156 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20157 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20158 "and executed as guestfish commands."
20159 msgstr ""
20160
20161 #. type: textblock
20162 #: ../fish/guestfish.pod:764
20163 msgid ""
20164 "Thus you can use shell script to construct arbitrary guestfish commands "
20165 "which are then parsed by guestfish."
20166 msgstr ""
20167
20168 #. type: textblock
20169 #: ../fish/guestfish.pod:767
20170 msgid ""
20171 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20172 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20173 "if we use a shell script to create the guestfish commands for us:"
20174 msgstr ""
20175
20176 #. type: verbatim
20177 #: ../fish/guestfish.pod:772
20178 #, no-wrap
20179 msgid ""
20180 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20181 "\n"
20182 msgstr ""
20183
20184 #. type: textblock
20185 #: ../fish/guestfish.pod:774
20186 msgid "or with names like C</foo.001>:"
20187 msgstr ""
20188
20189 #. type: verbatim
20190 #: ../fish/guestfish.pod:776
20191 #, no-wrap
20192 msgid ""
20193 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20194 "\n"
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../fish/guestfish.pod:778
20199 msgid ""
20200 "When using guestfish interactively it can be helpful to just run the shell "
20201 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20202 "ordinary I<!> local command), see what guestfish commands it would run, and "
20203 "when you are happy with those prepend the C<E<lt>> character to run the "
20204 "guestfish commands for real."
20205 msgstr ""
20206
20207 #. type: =head1
20208 #: ../fish/guestfish.pod:784
20209 msgid "PIPES"
20210 msgstr ""
20211
20212 #. type: textblock
20213 #: ../fish/guestfish.pod:786
20214 msgid ""
20215 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20216 "command (a guestfish command) to the second command (any host command).  For "
20217 "example:"
20218 msgstr ""
20219
20220 #. type: verbatim
20221 #: ../fish/guestfish.pod:790
20222 #, no-wrap
20223 msgid ""
20224 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20225 "\n"
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fish/guestfish.pod:792
20230 msgid ""
20231 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20232 "program).  The above command would list all accounts in the guest filesystem "
20233 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20234 msgstr ""
20235
20236 #. type: verbatim
20237 #: ../fish/guestfish.pod:797
20238 #, no-wrap
20239 msgid ""
20240 " hexdump /bin/ls | head\n"
20241 " list-devices | tail -1\n"
20242 " tgz-out / - | tar ztf -\n"
20243 "\n"
20244 msgstr ""
20245
20246 #. type: textblock
20247 #: ../fish/guestfish.pod:801
20248 msgid ""
20249 "The space before the pipe symbol is required, any space after the pipe "
20250 "symbol is optional.  Everything after the pipe symbol is just passed "
20251 "straight to the host shell, so it can contain redirections, globs and "
20252 "anything else that makes sense on the host side."
20253 msgstr ""
20254
20255 #. type: textblock
20256 #: ../fish/guestfish.pod:806
20257 msgid ""
20258 "To use a literal argument which begins with a pipe symbol, you have to quote "
20259 "it, eg:"
20260 msgstr ""
20261
20262 #. type: verbatim
20263 #: ../fish/guestfish.pod:809
20264 #, no-wrap
20265 msgid ""
20266 " echo \"|\"\n"
20267 "\n"
20268 msgstr ""
20269
20270 #. type: =head1
20271 #: ../fish/guestfish.pod:811
20272 msgid "HOME DIRECTORIES"
20273 msgstr ""
20274
20275 #. type: textblock
20276 #: ../fish/guestfish.pod:813
20277 msgid ""
20278 "If a parameter starts with the character C<~> then the tilde may be expanded "
20279 "as a home directory path (either C<~> for the current user's home directory, "
20280 "or C<~user> for another user)."
20281 msgstr ""
20282
20283 #. type: textblock
20284 #: ../fish/guestfish.pod:817
20285 msgid ""
20286 "Note that home directory expansion happens for users known I<on the host>, "
20287 "not in the guest filesystem."
20288 msgstr ""
20289
20290 #. type: textblock
20291 #: ../fish/guestfish.pod:820
20292 msgid ""
20293 "To use a literal argument which begins with a tilde, you have to quote it, "
20294 "eg:"
20295 msgstr ""
20296
20297 #. type: verbatim
20298 #: ../fish/guestfish.pod:823
20299 #, no-wrap
20300 msgid ""
20301 " echo \"~\"\n"
20302 "\n"
20303 msgstr ""
20304
20305 #. type: =head2
20306 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20307 msgid "ENCRYPTED DISKS"
20308 msgstr ""
20309
20310 #. type: textblock
20311 #: ../fish/guestfish.pod:827
20312 msgid ""
20313 "Libguestfs has some support for Linux guests encrypted according to the "
20314 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20315 "disk encryption systems used by modern Linux guests.  Currently only "
20316 "LVM-on-LUKS is supported."
20317 msgstr ""
20318
20319 #. type: textblock
20320 #: ../fish/guestfish.pod:832
20321 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20322 msgstr ""
20323
20324 #. type: verbatim
20325 #: ../fish/guestfish.pod:834
20326 #, no-wrap
20327 msgid ""
20328 " ><fs> vfs-type /dev/sda2\n"
20329 " crypto_LUKS\n"
20330 "\n"
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../fish/guestfish.pod:837
20335 msgid ""
20336 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20337 "device called C</dev/mapper/luksdev>."
20338 msgstr ""
20339
20340 #. type: verbatim
20341 #: ../fish/guestfish.pod:840
20342 #, no-wrap
20343 msgid ""
20344 " ><fs> luks-open /dev/sda2 luksdev\n"
20345 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20346 "\n"
20347 msgstr ""
20348
20349 #. type: textblock
20350 #: ../fish/guestfish.pod:843
20351 msgid ""
20352 "Finally you have to tell LVM to scan for volume groups on the newly created "
20353 "mapper device:"
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../fish/guestfish.pod:846
20358 #, no-wrap
20359 msgid ""
20360 " vgscan\n"
20361 " vg-activate-all true\n"
20362 "\n"
20363 msgstr ""
20364
20365 #. type: textblock
20366 #: ../fish/guestfish.pod:849
20367 msgid "The logical volume(s) can now be mounted in the usual way."
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:851
20372 msgid ""
20373 "Before closing a LUKS device you must unmount any logical volumes on it and "
20374 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20375 "one.  Then you can close the mapper device:"
20376 msgstr ""
20377
20378 #. type: verbatim
20379 #: ../fish/guestfish.pod:855
20380 #, no-wrap
20381 msgid ""
20382 " vg-activate false /dev/VG\n"
20383 " luks-close /dev/mapper/luksdev\n"
20384 "\n"
20385 msgstr ""
20386
20387 #. type: textblock
20388 #: ../fish/guestfish.pod:860
20389 msgid ""
20390 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20391 "letters and paths (with some limitations).  The following commands are "
20392 "equivalent:"
20393 msgstr ""
20394
20395 #. type: verbatim
20396 #: ../fish/guestfish.pod:864
20397 #, no-wrap
20398 msgid ""
20399 " file /WINDOWS/system32/config/system.LOG\n"
20400 "\n"
20401 msgstr ""
20402
20403 #. type: verbatim
20404 #: ../fish/guestfish.pod:866
20405 #, no-wrap
20406 msgid ""
20407 " file win:\\windows\\system32\\config\\system.log\n"
20408 "\n"
20409 msgstr ""
20410
20411 #. type: verbatim
20412 #: ../fish/guestfish.pod:868
20413 #, no-wrap
20414 msgid ""
20415 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20416 "\n"
20417 msgstr ""
20418
20419 #. type: textblock
20420 #: ../fish/guestfish.pod:870
20421 msgid ""
20422 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20423 "where the drive is mounted, prepending that to the path, changing all "
20424 "backslash characters to forward slash, then resolving the result using "
20425 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20426 "then the parameter might be rewritten like this:"
20427 msgstr ""
20428
20429 #. type: verbatim
20430 #: ../fish/guestfish.pod:876
20431 #, no-wrap
20432 msgid ""
20433 " win:e:\\foo\\bar => /e/FOO/bar\n"
20434 "\n"
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../fish/guestfish.pod:878
20439 msgid "This only works in argument positions that expect a path."
20440 msgstr ""
20441
20442 #. type: =head1
20443 #: ../fish/guestfish.pod:880
20444 msgid "UPLOADING AND DOWNLOADING FILES"
20445 msgstr ""
20446
20447 #. type: textblock
20448 #: ../fish/guestfish.pod:882
20449 msgid ""
20450 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20451 "others which upload from or download to a local file, you can use the "
20452 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20453 msgstr ""
20454
20455 #. type: verbatim
20456 #: ../fish/guestfish.pod:886
20457 #, no-wrap
20458 msgid ""
20459 " upload - /foo\n"
20460 "\n"
20461 msgstr ""
20462
20463 #. type: textblock
20464 #: ../fish/guestfish.pod:888
20465 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20466 msgstr ""
20467
20468 #. type: verbatim
20469 #: ../fish/guestfish.pod:891
20470 #, no-wrap
20471 msgid ""
20472 " tar-out /etc - | tar tf -\n"
20473 "\n"
20474 msgstr ""
20475
20476 #. type: textblock
20477 #: ../fish/guestfish.pod:893
20478 msgid ""
20479 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20480 "command (see L</PIPES>)."
20481 msgstr ""
20482
20483 #. type: textblock
20484 #: ../fish/guestfish.pod:896
20485 msgid ""
20486 "When using C<-> to read from stdin, the input is read up to the end of "
20487 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20488 "some arbitrary end marker:"
20489 msgstr ""
20490
20491 #. type: verbatim
20492 #: ../fish/guestfish.pod:900
20493 #, no-wrap
20494 msgid ""
20495 " upload -<<END /foo\n"
20496 " input line 1\n"
20497 " input line 2\n"
20498 " input line 3\n"
20499 " END\n"
20500 "\n"
20501 msgstr ""
20502
20503 #. type: textblock
20504 #: ../fish/guestfish.pod:906
20505 msgid ""
20506 "Any string of characters can be used instead of C<END>.  The end marker must "
20507 "appear on a line of its own, without any preceeding or following characters "
20508 "(not even spaces)."
20509 msgstr ""
20510
20511 #. type: textblock
20512 #: ../fish/guestfish.pod:910
20513 msgid ""
20514 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20515 "upload local files (so-called \"FileIn\" parameters in the generator)."
20516 msgstr ""
20517
20518 #. type: =head1
20519 #: ../fish/guestfish.pod:913
20520 msgid "EXIT ON ERROR BEHAVIOUR"
20521 msgstr ""
20522
20523 #. type: textblock
20524 #: ../fish/guestfish.pod:915
20525 msgid ""
20526 "By default, guestfish will ignore any errors when in interactive mode "
20527 "(ie. taking commands from a human over a tty), and will exit on the first "
20528 "error in non-interactive mode (scripts, commands given on the command line)."
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../fish/guestfish.pod:920
20533 msgid ""
20534 "If you prefix a command with a I<-> character, then that command will not "
20535 "cause guestfish to exit, even if that (one) command returns an error."
20536 msgstr ""
20537
20538 #. type: =head1
20539 #: ../fish/guestfish.pod:924
20540 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20541 msgstr ""
20542
20543 #. type: textblock
20544 #: ../fish/guestfish.pod:926
20545 msgid ""
20546 "Guestfish can be remote-controlled over a socket.  This is useful "
20547 "particularly in shell scripts where you want to make several different "
20548 "changes to a filesystem, but you don't want the overhead of starting up a "
20549 "guestfish process each time."
20550 msgstr ""
20551
20552 #. type: textblock
20553 #: ../fish/guestfish.pod:931
20554 msgid "Start a guestfish server process using:"
20555 msgstr ""
20556
20557 #. type: verbatim
20558 #: ../fish/guestfish.pod:933
20559 #, no-wrap
20560 msgid ""
20561 " eval \"`guestfish --listen`\"\n"
20562 "\n"
20563 msgstr ""
20564
20565 #. type: textblock
20566 #: ../fish/guestfish.pod:935
20567 msgid "and then send it commands by doing:"
20568 msgstr ""
20569
20570 #. type: verbatim
20571 #: ../fish/guestfish.pod:937
20572 #, no-wrap
20573 msgid ""
20574 " guestfish --remote cmd [...]\n"
20575 "\n"
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../fish/guestfish.pod:939
20580 msgid "To cause the server to exit, send it the exit command:"
20581 msgstr ""
20582
20583 #. type: textblock
20584 #: ../fish/guestfish.pod:943
20585 msgid ""
20586 "Note that the server will normally exit if there is an error in a command.  "
20587 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20588 "BEHAVIOUR>."
20589 msgstr ""
20590
20591 #. type: =head2
20592 #: ../fish/guestfish.pod:947
20593 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20594 msgstr ""
20595
20596 #. type: textblock
20597 #: ../fish/guestfish.pod:949
20598 msgid ""
20599 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20600 "is how the I<--remote> option knows where to send the commands.  You can "
20601 "have several guestfish listener processes running using:"
20602 msgstr ""
20603
20604 #. type: verbatim
20605 #: ../fish/guestfish.pod:953
20606 #, no-wrap
20607 msgid ""
20608 " eval \"`guestfish --listen`\"\n"
20609 " pid1=$GUESTFISH_PID\n"
20610 " eval \"`guestfish --listen`\"\n"
20611 " pid2=$GUESTFISH_PID\n"
20612 " ...\n"
20613 " guestfish --remote=$pid1 cmd\n"
20614 " guestfish --remote=$pid2 cmd\n"
20615 "\n"
20616 msgstr ""
20617
20618 #. type: =head2
20619 #: ../fish/guestfish.pod:961
20620 msgid "REMOTE CONTROL AND CSH"
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../fish/guestfish.pod:963
20625 msgid ""
20626 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20627 "option:"
20628 msgstr ""
20629
20630 #. type: verbatim
20631 #: ../fish/guestfish.pod:966
20632 #, no-wrap
20633 msgid ""
20634 " eval \"`guestfish --listen --csh`\"\n"
20635 "\n"
20636 msgstr ""
20637
20638 #. type: =head2
20639 #: ../fish/guestfish.pod:968
20640 msgid "REMOTE CONTROL DETAILS"
20641 msgstr ""
20642
20643 #. type: textblock
20644 #: ../fish/guestfish.pod:970
20645 msgid ""
20646 "Remote control happens over a Unix domain socket called "
20647 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20648 "of the process, and C<$PID> is the process ID of the server."
20649 msgstr ""
20650
20651 #. type: textblock
20652 #: ../fish/guestfish.pod:974
20653 msgid "Guestfish client and server versions must match exactly."
20654 msgstr ""
20655
20656 #. type: =head2
20657 #: ../fish/guestfish.pod:976
20658 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20659 msgstr ""
20660
20661 #. type: textblock
20662 #: ../fish/guestfish.pod:978
20663 msgid ""
20664 "From Bash, you can use the following code which creates a guestfish "
20665 "instance, correctly quotes the command line, handles failure to start, and "
20666 "cleans up guestfish when the script exits:"
20667 msgstr ""
20668
20669 #. type: verbatim
20670 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20671 #, no-wrap
20672 msgid ""
20673 " #!/bin/bash -\n"
20674 " \n"
20675 msgstr ""
20676
20677 #. type: verbatim
20678 #: ../fish/guestfish.pod:986
20679 #, no-wrap
20680 msgid ""
20681 " guestfish[0]=\"guestfish\"\n"
20682 " guestfish[1]=\"--listen\"\n"
20683 " guestfish[2]=\"--ro\"\n"
20684 " guestfish[3]=\"-a\"\n"
20685 " guestfish[4]=\"disk.img\"\n"
20686 " \n"
20687 msgstr ""
20688
20689 #. type: verbatim
20690 #: ../fish/guestfish.pod:992
20691 #, no-wrap
20692 msgid ""
20693 " GUESTFISH_PID=\n"
20694 " eval $(\"${guestfish[@]}\")\n"
20695 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20696 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20697 "     exit 1\n"
20698 " fi\n"
20699 " \n"
20700 msgstr ""
20701
20702 #. type: verbatim
20703 #: ../fish/guestfish.pod:999
20704 #, no-wrap
20705 msgid ""
20706 " cleanup_guestfish ()\n"
20707 " {\n"
20708 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20709 " }\n"
20710 " trap cleanup_guestfish EXIT ERR\n"
20711 " \n"
20712 msgstr ""
20713
20714 #. type: verbatim
20715 #: ../fish/guestfish.pod:1005
20716 #, no-wrap
20717 msgid ""
20718 " guestfish --remote -- run\n"
20719 " \n"
20720 msgstr ""
20721
20722 #. type: verbatim
20723 #: ../fish/guestfish.pod:1007
20724 #, no-wrap
20725 msgid ""
20726 " # ...\n"
20727 "\n"
20728 msgstr ""
20729
20730 #. type: =head2
20731 #: ../fish/guestfish.pod:1009
20732 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20733 msgstr ""
20734
20735 #. type: textblock
20736 #: ../fish/guestfish.pod:1011
20737 msgid ""
20738 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20739 "context hangs, ie. don't do (note the backquotes):"
20740 msgstr ""
20741
20742 #. type: verbatim
20743 #: ../fish/guestfish.pod:1014
20744 #, no-wrap
20745 msgid ""
20746 " a=`guestfish --remote run`\n"
20747 "\n"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:1016
20752 msgid ""
20753 "Since the C<run> command produces no output on stdout, this is not useful "
20754 "anyway.  For further information see "
20755 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20756 msgstr ""
20757
20758 #. type: =head1
20759 #: ../fish/guestfish.pod:1020
20760 msgid "PREPARED DISK IMAGES"
20761 msgstr ""
20762
20763 #. type: textblock
20764 #: ../fish/guestfish.pod:1022
20765 msgid ""
20766 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20767 "preformatted disk images that guestfish can make for you to save typing.  "
20768 "This is particularly useful for testing purposes.  This option is used "
20769 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20770 "can be mixed with I<-a>)."
20771 msgstr ""
20772
20773 #. type: textblock
20774 #: ../fish/guestfish.pod:1028
20775 msgid ""
20776 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20777 "the second and so on.  Existing files in the current directory are "
20778 "I<overwritten>."
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../fish/guestfish.pod:1032
20783 msgid ""
20784 "The type briefly describes how the disk should be sized, partitioned, how "
20785 "filesystem(s) should be created, and how content should be added.  "
20786 "Optionally the type can be followed by extra parameters, separated by C<:> "
20787 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20788 "sparsely-allocated disk, containing a single partition, with the partition "
20789 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20790 "on a 1GB disk instead."
20791 msgstr ""
20792
20793 #. type: textblock
20794 #: ../fish/guestfish.pod:1040
20795 msgid "To list the available types and any extra parameters they take, run:"
20796 msgstr ""
20797
20798 #. type: textblock
20799 #: ../fish/guestfish.pod:1044
20800 msgid ""
20801 "Note that the prepared filesystem is not mounted.  You would usually have to "
20802 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../fish/guestfish.pod:1048
20807 msgid ""
20808 "If any I<-N> or I<--new> options are given, the guest is automatically "
20809 "launched."
20810 msgstr ""
20811
20812 #. type: textblock
20813 #: ../fish/guestfish.pod:1053
20814 msgid "Create a 100MB disk with an ext4-formatted partition:"
20815 msgstr ""
20816
20817 #. type: verbatim
20818 #: ../fish/guestfish.pod:1055
20819 #, no-wrap
20820 msgid ""
20821 " guestfish -N fs:ext4\n"
20822 "\n"
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../fish/guestfish.pod:1057
20827 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20828 msgstr ""
20829
20830 #. type: verbatim
20831 #: ../fish/guestfish.pod:1059
20832 #, no-wrap
20833 msgid ""
20834 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20835 "\n"
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../fish/guestfish.pod:1061
20840 msgid "Create a blank 200MB disk:"
20841 msgstr ""
20842
20843 #. type: verbatim
20844 #: ../fish/guestfish.pod:1063
20845 #, no-wrap
20846 msgid ""
20847 " guestfish -N disk:200M\n"
20848 "\n"
20849 msgstr ""
20850
20851 #. type: =head1
20852 #: ../fish/guestfish.pod:1065
20853 msgid "PROGRESS BARS"
20854 msgstr ""
20855
20856 #. type: textblock
20857 #: ../fish/guestfish.pod:1067
20858 msgid ""
20859 "Some (not all) long-running commands send progress notification messages as "
20860 "they are running.  Guestfish turns these messages into progress bars."
20861 msgstr ""
20862
20863 #. type: textblock
20864 #: ../fish/guestfish.pod:1071
20865 msgid ""
20866 "When a command that supports progress bars takes longer than two seconds to "
20867 "run, and if progress bars are enabled, then you will see one appearing below "
20868 "the command:"
20869 msgstr ""
20870
20871 #. type: verbatim
20872 #: ../fish/guestfish.pod:1075
20873 #, no-wrap
20874 msgid ""
20875 " ><fs> copy-size /large-file /another-file 2048M\n"
20876 " / 10% [#####-----------------------------------------] 00:30\n"
20877 "\n"
20878 msgstr ""
20879
20880 #. type: textblock
20881 #: ../fish/guestfish.pod:1078
20882 msgid ""
20883 "The spinner on the left hand side moves round once for every progress "
20884 "notification received from the backend.  This is a (reasonably) golden "
20885 "assurance that the command is \"doing something\" even if the progress bar "
20886 "is not moving, because the command is able to send the progress "
20887 "notifications.  When the bar reaches 100% and the command finishes, the "
20888 "spinner disappears."
20889 msgstr ""
20890
20891 #. type: textblock
20892 #: ../fish/guestfish.pod:1085
20893 msgid ""
20894 "Progress bars are enabled by default when guestfish is used interactively.  "
20895 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20896 "and you can disable them completely using I<--no-progress-bars>."
20897 msgstr ""
20898
20899 #. type: =head1
20900 #: ../fish/guestfish.pod:1090
20901 msgid "GUESTFISH COMMANDS"
20902 msgstr ""
20903
20904 #. type: textblock
20905 #: ../fish/guestfish.pod:1092
20906 msgid ""
20907 "The commands in this section are guestfish convenience commands, in other "
20908 "words, they are not part of the L<guestfs(3)> API."
20909 msgstr ""
20910
20911 #. type: =head2
20912 #: ../fish/guestfish.pod:1095
20913 msgid "help"
20914 msgstr ""
20915
20916 #. type: verbatim
20917 #: ../fish/guestfish.pod:1097
20918 #, no-wrap
20919 msgid ""
20920 " help\n"
20921 " help cmd\n"
20922 "\n"
20923 msgstr ""
20924
20925 #. type: textblock
20926 #: ../fish/guestfish.pod:1100
20927 msgid "Without any parameter, this provides general help."
20928 msgstr ""
20929
20930 #. type: textblock
20931 #: ../fish/guestfish.pod:1102
20932 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20933 msgstr ""
20934
20935 #. type: =head2
20936 #: ../fish/guestfish.pod:1104
20937 msgid "quit | exit"
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../fish/guestfish.pod:1106
20942 msgid "This exits guestfish.  You can also use C<^D> key."
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../fish/guestfish.pod:1108
20947 msgid "@FISH_COMMANDS@"
20948 msgstr ""
20949
20950 #. type: =head1
20951 #: ../fish/guestfish.pod:1110
20952 msgid "COMMANDS"
20953 msgstr ""
20954
20955 #. type: textblock
20956 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20957 msgid "@ACTIONS@"
20958 msgstr ""
20959
20960 #. type: textblock
20961 #: ../fish/guestfish.pod:1116
20962 msgid ""
20963 "guestfish returns 0 if the commands completed without error, or 1 if there "
20964 "was an error."
20965 msgstr ""
20966
20967 #. type: =item
20968 #: ../fish/guestfish.pod:1123
20969 msgid "EDITOR"
20970 msgstr ""
20971
20972 #. type: textblock
20973 #: ../fish/guestfish.pod:1125
20974 msgid ""
20975 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20976 "C<vi>."
20977 msgstr ""
20978
20979 #. type: =item
20980 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
20981 msgid "FEBOOTSTRAP_KERNEL"
20982 msgstr ""
20983
20984 #. type: =item
20985 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
20986 msgid "FEBOOTSTRAP_MODULES"
20987 msgstr ""
20988
20989 #. type: textblock
20990 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
20991 msgid ""
20992 "These two environment variables allow the kernel that libguestfs uses in the "
20993 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20994 "most recent host kernel is chosen.  For more information about kernel "
20995 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20996 "available in febootstrap E<ge> 3.8."
20997 msgstr ""
20998
20999 #. type: =item
21000 #: ../fish/guestfish.pod:1138
21001 msgid "GUESTFISH_DISPLAY_IMAGE"
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../fish/guestfish.pod:1140
21006 msgid ""
21007 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21008 "If not set, it uses L<display(1)>."
21009 msgstr ""
21010
21011 #. type: =item
21012 #: ../fish/guestfish.pod:1143
21013 msgid "GUESTFISH_PID"
21014 msgstr ""
21015
21016 #. type: textblock
21017 #: ../fish/guestfish.pod:1145
21018 msgid ""
21019 "Used with the I<--remote> option to specify the remote guestfish process to "
21020 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21021 msgstr ""
21022
21023 #. type: =item
21024 #: ../fish/guestfish.pod:1149
21025 msgid "HEXEDITOR"
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../fish/guestfish.pod:1151
21030 msgid ""
21031 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21032 "not specified, the external L<hexedit(1)> program is used."
21033 msgstr ""
21034
21035 #. type: =item
21036 #: ../fish/guestfish.pod:1155
21037 msgid "HOME"
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../fish/guestfish.pod:1157
21042 msgid ""
21043 "If compiled with GNU readline support, various files in the home directory "
21044 "can be used.  See L</FILES>."
21045 msgstr ""
21046
21047 #. type: =item
21048 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
21049 msgid "LIBGUESTFS_APPEND"
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
21054 msgid "Pass additional options to the guest kernel."
21055 msgstr ""
21056
21057 #. type: =item
21058 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
21059 msgid "LIBGUESTFS_DEBUG"
21060 msgstr ""
21061
21062 #. type: textblock
21063 #: ../fish/guestfish.pod:1166
21064 msgid ""
21065 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21066 "effect as using the B<-v> option."
21067 msgstr ""
21068
21069 #. type: =item
21070 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
21071 msgid "LIBGUESTFS_MEMSIZE"
21072 msgstr ""
21073
21074 #. type: textblock
21075 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
21076 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
21077 msgstr ""
21078
21079 #. type: verbatim
21080 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
21081 #, no-wrap
21082 msgid ""
21083 " LIBGUESTFS_MEMSIZE=700\n"
21084 "\n"
21085 msgstr ""
21086
21087 #. type: =item
21088 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
21089 msgid "LIBGUESTFS_PATH"
21090 msgstr ""
21091
21092 #. type: textblock
21093 #: ../fish/guestfish.pod:1178
21094 msgid ""
21095 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21096 "the discussion of paths in L<guestfs(3)>."
21097 msgstr ""
21098
21099 #. type: =item
21100 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
21101 msgid "LIBGUESTFS_QEMU"
21102 msgstr ""
21103
21104 #. type: textblock
21105 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
21106 msgid ""
21107 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21108 "which was found at compile time by the configure script is used."
21109 msgstr ""
21110
21111 #. type: =item
21112 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
21113 msgid "LIBGUESTFS_TRACE"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../fish/guestfish.pod:1189
21118 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21119 msgstr ""
21120
21121 #. type: =item
21122 #: ../fish/guestfish.pod:1191
21123 msgid "PAGER"
21124 msgstr ""
21125
21126 #. type: textblock
21127 #: ../fish/guestfish.pod:1193
21128 msgid ""
21129 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21130 "C<more>."
21131 msgstr ""
21132
21133 #. type: =item
21134 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:254 ../src/guestfs.pod:3262
21135 msgid "TMPDIR"
21136 msgstr ""
21137
21138 #. type: textblock
21139 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
21140 msgid ""
21141 "Location of temporary directory, defaults to C</tmp> except for the cached "
21142 "supermin appliance which defaults to C</var/tmp>."
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
21147 msgid ""
21148 "If libguestfs was compiled to use the supermin appliance then the real "
21149 "appliance is cached in this directory, shared between all handles belonging "
21150 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21151 "use in case C</var/tmp> is not large enough."
21152 msgstr ""
21153
21154 #. type: =head1
21155 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:310
21156 msgid "FILES"
21157 msgstr ""
21158
21159 #. type: =item
21160 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:314
21161 msgid "$HOME/.libguestfs-tools.rc"
21162 msgstr ""
21163
21164 #. type: =item
21165 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:316
21166 msgid "/etc/libguestfs-tools.conf"
21167 msgstr ""
21168
21169 #. type: textblock
21170 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:318
21171 msgid ""
21172 "This configuration file controls the default read-only or read-write mode "
21173 "(I<--ro> or I<--rw>)."
21174 msgstr ""
21175
21176 #. type: textblock
21177 #: ../fish/guestfish.pod:1220
21178 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21179 msgstr ""
21180
21181 #. type: =item
21182 #: ../fish/guestfish.pod:1222
21183 msgid "$HOME/.guestfish"
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../fish/guestfish.pod:1224
21188 msgid ""
21189 "If compiled with GNU readline support, then the command history is saved in "
21190 "this file."
21191 msgstr ""
21192
21193 #. type: =item
21194 #: ../fish/guestfish.pod:1227
21195 msgid "$HOME/.inputrc"
21196 msgstr ""
21197
21198 #. type: =item
21199 #: ../fish/guestfish.pod:1229
21200 msgid "/etc/inputrc"
21201 msgstr ""
21202
21203 #. type: textblock
21204 #: ../fish/guestfish.pod:1231
21205 msgid ""
21206 "If compiled with GNU readline support, then these files can be used to "
21207 "configure readline.  For further information, please see "
21208 "L<readline(3)/INITIALIZATION FILE>."
21209 msgstr ""
21210
21211 #. type: textblock
21212 #: ../fish/guestfish.pod:1235
21213 msgid "To write rules which only apply to guestfish, use:"
21214 msgstr ""
21215
21216 #. type: verbatim
21217 #: ../fish/guestfish.pod:1237
21218 #, no-wrap
21219 msgid ""
21220 " $if guestfish\n"
21221 " ...\n"
21222 " $endif\n"
21223 "\n"
21224 msgstr ""
21225
21226 #. type: textblock
21227 #: ../fish/guestfish.pod:1241
21228 msgid ""
21229 "Variables that you can set in inputrc that change the behaviour of guestfish "
21230 "in useful ways include:"
21231 msgstr ""
21232
21233 #. type: =item
21234 #: ../fish/guestfish.pod:1246
21235 msgid "completion-ignore-case (default: on)"
21236 msgstr ""
21237
21238 #. type: textblock
21239 #: ../fish/guestfish.pod:1248
21240 msgid ""
21241 "By default, guestfish will ignore case when tab-completing paths on the "
21242 "disk.  Use:"
21243 msgstr ""
21244
21245 #. type: verbatim
21246 #: ../fish/guestfish.pod:1251
21247 #, no-wrap
21248 msgid ""
21249 " set completion-ignore-case off\n"
21250 "\n"
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../fish/guestfish.pod:1253
21255 msgid "to make guestfish case sensitive."
21256 msgstr ""
21257
21258 #. type: =item
21259 #: ../fish/guestfish.pod:1257
21260 msgid "test1.img"
21261 msgstr ""
21262
21263 #. type: =item
21264 #: ../fish/guestfish.pod:1259
21265 msgid "test2.img (etc)"
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../fish/guestfish.pod:1261
21270 msgid ""
21271 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21272 "will be created in the file C<test1.img> in the current directory.  The "
21273 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21274 "the same name will be overwritten."
21275 msgstr ""
21276
21277 #. type: textblock
21278 #: ../fish/guestfish.pod:1270
21279 msgid ""
21280 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
21281 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
21282 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
21283 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
21284 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
21285 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
21286 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
21287 "L<febootstrap-supermin-helper(8)>."
21288 msgstr ""
21289
21290 #. type: textblock
21291 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360 ../test-tool/libguestfs-test-tool.pod:112
21292 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21293 msgstr ""
21294
21295 #. type: textblock
21296 #: ../fish/virt-copy-in.pod:5
21297 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
21298 msgstr ""
21299
21300 #. type: verbatim
21301 #: ../fish/virt-copy-in.pod:9
21302 #, no-wrap
21303 msgid ""
21304 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21305 "\n"
21306 msgstr ""
21307
21308 #. type: verbatim
21309 #: ../fish/virt-copy-in.pod:11
21310 #, no-wrap
21311 msgid ""
21312 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21313 "\n"
21314 msgstr ""
21315
21316 #. type: textblock
21317 #: ../fish/virt-copy-in.pod:15
21318 msgid ""
21319 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21320 "causing disk corruption.  The virtual machine must be shut down before you "
21321 "use this command."
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../fish/virt-copy-in.pod:21
21326 msgid ""
21327 "C<virt-copy-in> copies files and directories from the local disk into a "
21328 "virtual machine disk image or named libvirt domain."
21329 msgstr ""
21330
21331 #. type: textblock
21332 #: ../fish/virt-copy-in.pod:24
21333 msgid ""
21334 "You can give one of more filenames and directories on the command line.  "
21335 "Directories are copied in recursively.  The final parameter must be the "
21336 "destination directory in the disk image which must be an absolute path "
21337 "starting with a C</> character."
21338 msgstr ""
21339
21340 #. type: verbatim
21341 #: ../fish/virt-copy-in.pod:33
21342 #, no-wrap
21343 msgid ""
21344 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21345 "\n"
21346 msgstr ""
21347
21348 #. type: textblock
21349 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21350 msgid "Upload a home directory to a guest:"
21351 msgstr ""
21352
21353 #. type: verbatim
21354 #: ../fish/virt-copy-in.pod:37
21355 #, no-wrap
21356 msgid ""
21357 " virt-copy-in -d MyGuest skel /home\n"
21358 "\n"
21359 msgstr ""
21360
21361 #. type: =head1
21362 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21363 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../fish/virt-copy-in.pod:41
21368 msgid ""
21369 "This command is just a simple shell script wrapper around the "
21370 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
21371 "trivial copy, you are probably better off using guestfish directly."
21372 msgstr ""
21373
21374 #. type: textblock
21375 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21376 msgid ""
21377 "Since the shell script just passes options straight to guestfish, read "
21378 "L<guestfish(1)> to see the full list of options."
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../fish/virt-copy-in.pod:52
21383 msgid ""
21384 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21385 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21390 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../fish/virt-copy-out.pod:5
21395 msgid ""
21396 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21397 "image."
21398 msgstr ""
21399
21400 #. type: verbatim
21401 #: ../fish/virt-copy-out.pod:9
21402 #, no-wrap
21403 msgid ""
21404 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21405 "\n"
21406 msgstr ""
21407
21408 #. type: verbatim
21409 #: ../fish/virt-copy-out.pod:11
21410 #, no-wrap
21411 msgid ""
21412 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21413 "\n"
21414 msgstr ""
21415
21416 #. type: textblock
21417 #: ../fish/virt-copy-out.pod:15
21418 msgid ""
21419 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21420 "image or named libvirt domain."
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../fish/virt-copy-out.pod:18
21425 msgid ""
21426 "You can give one of more filenames and directories on the command line.  "
21427 "Directories are copied out recursively."
21428 msgstr ""
21429
21430 #. type: textblock
21431 #: ../fish/virt-copy-out.pod:23
21432 msgid "Download the home directories from a virtual machine:"
21433 msgstr ""
21434
21435 #. type: verbatim
21436 #: ../fish/virt-copy-out.pod:25
21437 #, no-wrap
21438 msgid ""
21439 " mkdir homes\n"
21440 " virt-copy-out -d MyGuest /home homes\n"
21441 "\n"
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../fish/virt-copy-out.pod:30
21446 msgid ""
21447 "This command is just a simple shell script wrapper around the "
21448 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
21449 "trivial copy, you are probably better off using guestfish directly."
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../fish/virt-copy-out.pod:41
21454 msgid ""
21455 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
21456 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21457 msgstr ""
21458
21459 #. type: textblock
21460 #: ../fish/virt-tar-in.pod:5
21461 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21462 msgstr ""
21463
21464 #. type: verbatim
21465 #: ../fish/virt-tar-in.pod:9
21466 #, no-wrap
21467 msgid ""
21468 " virt-tar-in -a disk.img data.tar /destination\n"
21469 "\n"
21470 msgstr ""
21471
21472 #. type: verbatim
21473 #: ../fish/virt-tar-in.pod:11
21474 #, no-wrap
21475 msgid ""
21476 " virt-tar-in -d domain data.tar /destination\n"
21477 "\n"
21478 msgstr ""
21479
21480 #. type: verbatim
21481 #: ../fish/virt-tar-in.pod:13
21482 #, no-wrap
21483 msgid ""
21484 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21485 "\n"
21486 msgstr ""
21487
21488 #. type: textblock
21489 #: ../fish/virt-tar-in.pod:17
21490 msgid ""
21491 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21492 "causing disk corruption.  The virtual machine must be shut down before you "
21493 "use this command."
21494 msgstr ""
21495
21496 #. type: textblock
21497 #: ../fish/virt-tar-in.pod:23
21498 msgid ""
21499 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21500 "image or named libvirt domain."
21501 msgstr ""
21502
21503 #. type: textblock
21504 #: ../fish/virt-tar-in.pod:26
21505 msgid ""
21506 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21507 "standard input.  The second parameter is the absolute target directory to "
21508 "unpack into."
21509 msgstr ""
21510
21511 #. type: verbatim
21512 #: ../fish/virt-tar-in.pod:34
21513 #, no-wrap
21514 msgid ""
21515 " virt-tar-in -d MyGuest homes.tar /home\n"
21516 "\n"
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../fish/virt-tar-in.pod:38
21521 msgid ""
21522 "This command is just a simple shell script wrapper around the "
21523 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
21524 "copy, you are probably better off using guestfish directly."
21525 msgstr ""
21526
21527 #. type: textblock
21528 #: ../fish/virt-tar-in.pod:49
21529 msgid ""
21530 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21531 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21532 "L<http://libguestfs.org/>."
21533 msgstr ""
21534
21535 #. type: textblock
21536 #: ../fish/virt-tar-out.pod:5
21537 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21538 msgstr ""
21539
21540 #. type: verbatim
21541 #: ../fish/virt-tar-out.pod:9
21542 #, no-wrap
21543 msgid ""
21544 " virt-tar-out -a disk.img /dir files.tar\n"
21545 "\n"
21546 msgstr ""
21547
21548 #. type: verbatim
21549 #: ../fish/virt-tar-out.pod:11
21550 #, no-wrap
21551 msgid ""
21552 " virt-tar-out -d domain /dir files.tar\n"
21553 "\n"
21554 msgstr ""
21555
21556 #. type: verbatim
21557 #: ../fish/virt-tar-out.pod:13
21558 #, no-wrap
21559 msgid ""
21560 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21561 "\n"
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../fish/virt-tar-out.pod:17
21566 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../fish/virt-tar-out.pod:20
21571 msgid ""
21572 "The first parameter is the absolute path of the virtual machine directory.  "
21573 "The second parameter is the tar file to write.  Use C<-> to write to "
21574 "standard output."
21575 msgstr ""
21576
21577 #. type: textblock
21578 #: ../fish/virt-tar-out.pod:26
21579 msgid "Download the home directories from a guest:"
21580 msgstr ""
21581
21582 #. type: verbatim
21583 #: ../fish/virt-tar-out.pod:28
21584 #, no-wrap
21585 msgid ""
21586 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21587 "\n"
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../fish/virt-tar-out.pod:32
21592 msgid ""
21593 "This command is just a simple shell script wrapper around the "
21594 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
21595 "trivial copy, you are probably better off using guestfish directly."
21596 msgstr ""
21597
21598 #. type: textblock
21599 #: ../fish/virt-tar-out.pod:43
21600 msgid ""
21601 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21602 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21603 msgstr ""
21604
21605 #. type: textblock
21606 #: ../fuse/guestmount.pod:5
21607 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21608 msgstr ""
21609
21610 #. type: verbatim
21611 #: ../fuse/guestmount.pod:9
21612 #, no-wrap
21613 msgid ""
21614 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21615 "\n"
21616 msgstr ""
21617
21618 #. type: verbatim
21619 #: ../fuse/guestmount.pod:11
21620 #, no-wrap
21621 msgid ""
21622 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21623 "\n"
21624 msgstr ""
21625
21626 #. type: verbatim
21627 #: ../fuse/guestmount.pod:13
21628 #, no-wrap
21629 msgid ""
21630 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../fuse/guestmount.pod:17
21636 msgid ""
21637 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21638 "machines.  If you do this, you risk disk corruption in the VM."
21639 msgstr ""
21640
21641 #. type: textblock
21642 #: ../fuse/guestmount.pod:22
21643 msgid ""
21644 "The guestmount program can be used to mount virtual machine filesystems and "
21645 "other disk images on the host.  It uses libguestfs for access to the guest "
21646 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21647 "a mountable device."
21648 msgstr ""
21649
21650 #. type: textblock
21651 #: ../fuse/guestmount.pod:27
21652 msgid ""
21653 "Along with other options, you have to give at least one device (I<-a> "
21654 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21655 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21656 "this works is better explained in the L<guestfish(1)> manual page, or by "
21657 "looking at the examples below."
21658 msgstr ""
21659
21660 #. type: textblock
21661 #: ../fuse/guestmount.pod:33
21662 msgid ""
21663 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21664 "by you, and the filesystem will not be visible to any other users unless you "
21665 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21666 "the filesystem, use the C<fusermount -u> command."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../fuse/guestmount.pod:41
21671 msgid ""
21672 "For a typical Windows guest which has its main filesystem on the first "
21673 "partition:"
21674 msgstr ""
21675
21676 #. type: verbatim
21677 #: ../fuse/guestmount.pod:44
21678 #, no-wrap
21679 msgid ""
21680 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21681 "\n"
21682 msgstr ""
21683
21684 #. type: textblock
21685 #: ../fuse/guestmount.pod:46
21686 msgid ""
21687 "For a typical Linux guest which has a /boot filesystem on the first "
21688 "partition, and the root filesystem on a logical volume:"
21689 msgstr ""
21690
21691 #. type: verbatim
21692 #: ../fuse/guestmount.pod:49
21693 #, no-wrap
21694 msgid ""
21695 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21696 "\n"
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../fuse/guestmount.pod:51
21701 msgid "To get libguestfs to detect guest mountpoints for you:"
21702 msgstr ""
21703
21704 #. type: verbatim
21705 #: ../fuse/guestmount.pod:53
21706 #, no-wrap
21707 msgid ""
21708 " guestmount -a guest.img -i --ro /mnt\n"
21709 "\n"
21710 msgstr ""
21711
21712 #. type: textblock
21713 #: ../fuse/guestmount.pod:55
21714 msgid "For a libvirt guest called \"Guest\" you could do:"
21715 msgstr ""
21716
21717 #. type: verbatim
21718 #: ../fuse/guestmount.pod:57
21719 #, no-wrap
21720 msgid ""
21721 " guestmount -d Guest -i --ro /mnt\n"
21722 "\n"
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../fuse/guestmount.pod:59
21727 msgid ""
21728 "If you don't know what filesystems are contained in a guest or disk image, "
21729 "use L<virt-filesystems(1)> first:"
21730 msgstr ""
21731
21732 #. type: verbatim
21733 #: ../fuse/guestmount.pod:62
21734 #, no-wrap
21735 msgid ""
21736 " virt-filesystems MyGuest\n"
21737 "\n"
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../fuse/guestmount.pod:64
21742 msgid ""
21743 "If you want to trace the libguestfs calls but without excessive debugging "
21744 "information, we recommend:"
21745 msgstr ""
21746
21747 #. type: verbatim
21748 #: ../fuse/guestmount.pod:67
21749 #, no-wrap
21750 msgid ""
21751 " guestmount [...] --trace /mnt\n"
21752 "\n"
21753 msgstr ""
21754
21755 #. type: textblock
21756 #: ../fuse/guestmount.pod:69
21757 msgid "If you want to debug the program, we recommend:"
21758 msgstr ""
21759
21760 #. type: verbatim
21761 #: ../fuse/guestmount.pod:71
21762 #, no-wrap
21763 msgid ""
21764 " guestmount [...] --trace --verbose /mnt\n"
21765 "\n"
21766 msgstr ""
21767
21768 #. type: =head1
21769 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96 ../resize/virt-resize.pod:621
21770 msgid "NOTES"
21771 msgstr ""
21772
21773 #. type: =head2
21774 #: ../fuse/guestmount.pod:75
21775 msgid "Other users cannot see the filesystem by default"
21776 msgstr ""
21777
21778 #. type: textblock
21779 #: ../fuse/guestmount.pod:77
21780 msgid ""
21781 "If you mount a filesystem as one user (eg. root), then other users will not "
21782 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21783 "option when mounting:"
21784 msgstr ""
21785
21786 #. type: verbatim
21787 #: ../fuse/guestmount.pod:81
21788 #, no-wrap
21789 msgid ""
21790 " sudo guestmount [...] -o allow_other /mnt\n"
21791 "\n"
21792 msgstr ""
21793
21794 #. type: =head2
21795 #: ../fuse/guestmount.pod:83
21796 msgid "Enabling FUSE"
21797 msgstr ""
21798
21799 #. type: textblock
21800 #: ../fuse/guestmount.pod:85
21801 msgid ""
21802 "On some distros, you may need to add yourself to a special group "
21803 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21804 "Debian and derivatives."
21805 msgstr ""
21806
21807 #. type: textblock
21808 #: ../fuse/guestmount.pod:89
21809 msgid ""
21810 "On other distros, no special group is required.  It is not necessary on "
21811 "Fedora or Red Hat Enterprise Linux."
21812 msgstr ""
21813
21814 #. type: textblock
21815 #: ../fuse/guestmount.pod:100
21816 msgid "Add a block device or virtual machine image."
21817 msgstr ""
21818
21819 #. type: =item
21820 #: ../fuse/guestmount.pod:123
21821 msgid "B<--dir-cache-timeout N>"
21822 msgstr ""
21823
21824 #. type: textblock
21825 #: ../fuse/guestmount.pod:125
21826 msgid ""
21827 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21828 "seconds.  The readdir cache [actually, there are several semi-independent "
21829 "caches] is populated after a readdir(2) call with the stat and extended "
21830 "attributes of the files in the directory, in anticipation that they will be "
21831 "requested soon after."
21832 msgstr ""
21833
21834 #. type: textblock
21835 #: ../fuse/guestmount.pod:131
21836 msgid ""
21837 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21838 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21839 "requests, only cache existing ones."
21840 msgstr ""
21841
21842 #. type: textblock
21843 #: ../fuse/guestmount.pod:151
21844 msgid ""
21845 "If you have untrusted raw-format guest disk images, you should use this "
21846 "option to specify the disk format.  This avoids a possible security problem "
21847 "with malicious guests (CVE-2010-3851).  See also "
21848 "L<guestfs(3)/guestfs_add_drive_opts>."
21849 msgstr ""
21850
21851 #. type: =item
21852 #: ../fuse/guestmount.pod:156
21853 msgid "B<--fuse-help>"
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../fuse/guestmount.pod:158
21858 msgid "Display help on special FUSE options (see I<-o> below)."
21859 msgstr ""
21860
21861 #. type: textblock
21862 #: ../fuse/guestmount.pod:162
21863 msgid "Display brief help and exit."
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../fuse/guestmount.pod:186
21868 msgid ""
21869 "Mount the named partition or logical volume on the given mountpoint B<in the "
21870 "guest> (this has nothing to do with mountpoints in the host)."
21871 msgstr ""
21872
21873 #. type: textblock
21874 #: ../fuse/guestmount.pod:189
21875 msgid ""
21876 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21877 "something on C</>."
21878 msgstr ""
21879
21880 #. type: textblock
21881 #: ../fuse/guestmount.pod:206
21882 msgid ""
21883 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21884 "unmounted.  If you specify this option, then we don't attempt to sync the "
21885 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21886 msgstr ""
21887
21888 #. type: =item
21889 #: ../fuse/guestmount.pod:211
21890 msgid "B<-o option>"
21891 msgstr ""
21892
21893 #. type: =item
21894 #: ../fuse/guestmount.pod:213
21895 msgid "B<--option option>"
21896 msgstr ""
21897
21898 #. type: textblock
21899 #: ../fuse/guestmount.pod:215
21900 msgid "Pass extra options to FUSE."
21901 msgstr ""
21902
21903 #. type: textblock
21904 #: ../fuse/guestmount.pod:217
21905 msgid ""
21906 "To get a list of all the extra options supported by FUSE, use the command "
21907 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21908 "of them are a good idea."
21909 msgstr ""
21910
21911 #. type: verbatim
21912 #: ../fuse/guestmount.pod:221
21913 #, no-wrap
21914 msgid ""
21915 " guestmount --fuse-help\n"
21916 "\n"
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../fuse/guestmount.pod:223
21921 msgid "Some potentially useful FUSE options:"
21922 msgstr ""
21923
21924 #. type: =item
21925 #: ../fuse/guestmount.pod:227
21926 msgid "B<-o allow_other>"
21927 msgstr ""
21928
21929 #. type: textblock
21930 #: ../fuse/guestmount.pod:229
21931 msgid "Allow other users to see the filesystem."
21932 msgstr ""
21933
21934 #. type: =item
21935 #: ../fuse/guestmount.pod:231
21936 msgid "B<-o attr_timeout=N>"
21937 msgstr ""
21938
21939 #. type: textblock
21940 #: ../fuse/guestmount.pod:233
21941 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21942 msgstr ""
21943
21944 #. type: =item
21945 #: ../fuse/guestmount.pod:235
21946 msgid "B<-o kernel_cache>"
21947 msgstr ""
21948
21949 #. type: textblock
21950 #: ../fuse/guestmount.pod:237
21951 msgid ""
21952 "Allow the kernel to cache files (reduces the number of reads that have to go "
21953 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21954 "afford the extra memory usage."
21955 msgstr ""
21956
21957 #. type: =item
21958 #: ../fuse/guestmount.pod:241
21959 msgid "B<-o uid=N> B<-o gid=N>"
21960 msgstr ""
21961
21962 #. type: textblock
21963 #: ../fuse/guestmount.pod:243
21964 msgid ""
21965 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21966 "the chosen values."
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../fuse/guestmount.pod:252
21971 msgid ""
21972 "Add devices and mount everything read-only.  Also disallow writes and make "
21973 "the disk appear read-only to FUSE."
21974 msgstr ""
21975
21976 #. type: textblock
21977 #: ../fuse/guestmount.pod:255
21978 msgid ""
21979 "This is highly recommended if you are not going to edit the guest disk.  If "
21980 "the guest is running and this option is I<not> supplied, then there is a "
21981 "strong risk of disk corruption in the guest.  We try to prevent this from "
21982 "happening, but it is not always possible."
21983 msgstr ""
21984
21985 #. type: textblock
21986 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
21987 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../fuse/guestmount.pod:264
21992 msgid "Enable SELinux support for the guest."
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../fuse/guestmount.pod:270
21997 msgid "Enable verbose messages from underlying libguestfs."
21998 msgstr ""
21999
22000 #. type: textblock
22001 #: ../fuse/guestmount.pod:276
22002 msgid "Display the program version and exit."
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22007 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22008 msgstr ""
22009
22010 #. type: =item
22011 #: ../fuse/guestmount.pod:289
22012 msgid "B<--trace>"
22013 msgstr ""
22014
22015 #. type: textblock
22016 #: ../fuse/guestmount.pod:291
22017 msgid "Trace libguestfs calls and entry into each FUSE function."
22018 msgstr ""
22019
22020 #. type: textblock
22021 #: ../fuse/guestmount.pod:293
22022 msgid "This also stops the daemon from forking into the background."
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../fuse/guestmount.pod:319
22027 msgid ""
22028 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22029 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22030 "L<http://fuse.sf.net/>."
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../fuse/guestmount.pod:334
22035 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22036 msgstr ""
22037
22038 #. type: textblock
22039 #: ../inspector/virt-inspector.pod:5
22040 msgid ""
22041 "virt-inspector - Display operating system version and other information "
22042 "about a virtual machine"
22043 msgstr ""
22044
22045 #. type: verbatim
22046 #: ../inspector/virt-inspector.pod:9
22047 #, no-wrap
22048 msgid ""
22049 " virt-inspector [--options] -d domname\n"
22050 "\n"
22051 msgstr ""
22052
22053 #. type: verbatim
22054 #: ../inspector/virt-inspector.pod:11
22055 #, no-wrap
22056 msgid ""
22057 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22058 "\n"
22059 msgstr ""
22060
22061 #. type: verbatim
22062 #: ../inspector/virt-inspector.pod:15
22063 #, no-wrap
22064 msgid ""
22065 " virt-inspector domname\n"
22066 "\n"
22067 msgstr ""
22068
22069 #. type: verbatim
22070 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22071 #, no-wrap
22072 msgid ""
22073 " virt-inspector disk.img [disk.img ...]\n"
22074 "\n"
22075 msgstr ""
22076
22077 #. type: textblock
22078 #: ../inspector/virt-inspector.pod:21
22079 msgid ""
22080 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22081 "determine the version of the operating system and other information about "
22082 "the virtual machine."
22083 msgstr ""
22084
22085 #. type: textblock
22086 #: ../inspector/virt-inspector.pod:25
22087 msgid "Virt-inspector produces XML output for feeding into other programs."
22088 msgstr ""
22089
22090 #. type: textblock
22091 #: ../inspector/virt-inspector.pod:27
22092 msgid ""
22093 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22094 "the libvirt domain (see: C<virsh list --all>)."
22095 msgstr ""
22096
22097 #. type: textblock
22098 #: ../inspector/virt-inspector.pod:30
22099 msgid ""
22100 "You can also run virt-inspector directly on disk images from a single "
22101 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22102 "has several block devices, in which case you should list several I<-a> "
22103 "options one after another, with the first corresponding to the guest's "
22104 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
22105 msgstr ""
22106
22107 #. type: textblock
22108 #: ../inspector/virt-inspector.pod:37
22109 msgid ""
22110 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22111 "keys and similar."
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../inspector/virt-inspector.pod:40
22116 msgid ""
22117 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22118 "inspect several virtual machines, you have to run virt-inspector several "
22119 "times (for example, from a shell script for-loop)."
22120 msgstr ""
22121
22122 #. type: textblock
22123 #: ../inspector/virt-inspector.pod:45
22124 msgid ""
22125 "Because virt-inspector needs direct access to guest images, it won't "
22126 "normally work over remote libvirt connections."
22127 msgstr ""
22128
22129 #. type: textblock
22130 #: ../inspector/virt-inspector.pod:48
22131 msgid ""
22132 "All of the information available from virt-inspector is also available "
22133 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22134 "The same information can also be fetched using guestfish or via libguestfs "
22135 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22136 "WITH OTHER PROGRAMMING LANGUAGES>)."
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../inspector/virt-inspector.pod:81
22141 msgid ""
22142 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22143 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22144 "at all."
22145 msgstr ""
22146
22147 #. type: textblock
22148 #: ../inspector/virt-inspector.pod:94
22149 msgid ""
22150 "When prompting for keys and passphrases, virt-inspector normally turns "
22151 "echoing off so you cannot see what you are typing.  If you are not worried "
22152 "about Tempest attacks and there is no one else in the room you can specify "
22153 "this flag to see what you are typing."
22154 msgstr ""
22155
22156 #. type: textblock
22157 #: ../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
22158 msgid ""
22159 "Specify the format of disk images given on the command line.  If this is "
22160 "omitted then the format is autodetected from the content of the disk image."
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../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
22165 msgid ""
22166 "If disk images are requested from libvirt, then this program asks libvirt "
22167 "for this information.  In this case, the value of the format parameter is "
22168 "ignored."
22169 msgstr ""
22170
22171 #. type: textblock
22172 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391 ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:138 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22173 msgid ""
22174 "If working with untrusted raw-format guest disk images, you should ensure "
22175 "the format is always specified."
22176 msgstr ""
22177
22178 #. type: =item
22179 #: ../inspector/virt-inspector.pod:135
22180 msgid "B<--xpath> query"
22181 msgstr ""
22182
22183 #. type: textblock
22184 #: ../inspector/virt-inspector.pod:137
22185 msgid ""
22186 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22187 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22188 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22189 msgstr ""
22190
22191 #. type: textblock
22192 #: ../inspector/virt-inspector.pod:146
22193 msgid "Previous versions of virt-inspector allowed you to write either:"
22194 msgstr ""
22195
22196 #. type: verbatim
22197 #: ../inspector/virt-inspector.pod:152
22198 #, no-wrap
22199 msgid ""
22200 " virt-inspector guestname\n"
22201 "\n"
22202 msgstr ""
22203
22204 #. type: =head1
22205 #: ../inspector/virt-inspector.pod:160
22206 msgid "XML FORMAT"
22207 msgstr ""
22208
22209 #. type: textblock
22210 #: ../inspector/virt-inspector.pod:162
22211 msgid ""
22212 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22213 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22214 "just an overview."
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../inspector/virt-inspector.pod:166
22219 msgid ""
22220 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22221 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22222 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22223 "which is vanishingly rare in real world VMs."
22224 msgstr ""
22225
22226 #. type: =head2
22227 #: ../inspector/virt-inspector.pod:171
22228 msgid "E<lt>operatingsystemE<gt>"
22229 msgstr ""
22230
22231 #. type: textblock
22232 #: ../inspector/virt-inspector.pod:173
22233 msgid ""
22234 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22235 "describe the operating system, its architecture, the descriptive \"product "
22236 "name\" string, the type of OS and so on, as in this example:"
22237 msgstr ""
22238
22239 #. type: verbatim
22240 #: ../inspector/virt-inspector.pod:177
22241 #, no-wrap
22242 msgid ""
22243 " <operatingsystems>\n"
22244 "   <operatingsystem>\n"
22245 "     <root>/dev/sda2</root>\n"
22246 "     <name>windows</name>\n"
22247 "     <arch>i386</arch>\n"
22248 "     <distro>windows</distro>\n"
22249 "     <product_name>Windows 7 Enterprise</product_name>\n"
22250 "     <product_variant>Client</product_variant>\n"
22251 "     <major_version>6</major_version>\n"
22252 "     <minor_version>1</minor_version>\n"
22253 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22254 "     <format>installed</format>\n"
22255 "\n"
22256 msgstr ""
22257
22258 #. type: textblock
22259 #: ../inspector/virt-inspector.pod:190
22260 msgid ""
22261 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22262 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22263 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22264 "architecture.  The other fields are fairly self-explanatory, but because "
22265 "these fields are taken directly from the libguestfs inspection API you can "
22266 "find precise information from L<guestfs(3)/INSPECTION>."
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../inspector/virt-inspector.pod:198
22271 msgid ""
22272 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22273 "of view of libguestfs (block devices may have completely different names "
22274 "inside the VM itself)."
22275 msgstr ""
22276
22277 #. type: =head2
22278 #: ../inspector/virt-inspector.pod:202
22279 msgid "E<lt>mountpointsE<gt>"
22280 msgstr ""
22281
22282 #. type: textblock
22283 #: ../inspector/virt-inspector.pod:204
22284 msgid ""
22285 "Un*x-like guests typically have multiple filesystems which are mounted at "
22286 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22287 "element which looks like this:"
22288 msgstr ""
22289
22290 #. type: verbatim
22291 #: ../inspector/virt-inspector.pod:208
22292 #, no-wrap
22293 msgid ""
22294 " <operatingsystems>\n"
22295 "   <operatingsystem>\n"
22296 "     ...\n"
22297 "     <mountpoints>\n"
22298 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22299 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22300 "     </mountpoints>\n"
22301 "\n"
22302 msgstr ""
22303
22304 #. type: textblock
22305 #: ../inspector/virt-inspector.pod:216
22306 msgid ""
22307 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22308 "and may have completely different names inside the guest.  Only mountable "
22309 "filesystems appear in this list, not things like swap devices."
22310 msgstr ""
22311
22312 #. type: =head2
22313 #: ../inspector/virt-inspector.pod:221
22314 msgid "E<lt>filesystemsE<gt>"
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../inspector/virt-inspector.pod:223
22319 msgid ""
22320 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22321 "filesystems belonging to the guest, including swap and empty partitions.  "
22322 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22323 "this OS or shared with this OS and other OSes)."
22324 msgstr ""
22325
22326 #. type: textblock
22327 #: ../inspector/virt-inspector.pod:229
22328 msgid "You might see something like this:"
22329 msgstr ""
22330
22331 #. type: verbatim
22332 #: ../inspector/virt-inspector.pod:231
22333 #, no-wrap
22334 msgid ""
22335 " <operatingsystems>\n"
22336 "   <operatingsystem>\n"
22337 "     ...\n"
22338 "     <filesystems>\n"
22339 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22340 "         <type>ext4</type>\n"
22341 "         <label>Fedora-13-x86_64</label>\n"
22342 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22343 "       </filesystem>\n"
22344 "\n"
22345 msgstr ""
22346
22347 #. type: textblock
22348 #: ../inspector/virt-inspector.pod:241
22349 msgid ""
22350 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22351 "the label, and the UUID."
22352 msgstr ""
22353
22354 #. type: =head2
22355 #: ../inspector/virt-inspector.pod:244
22356 msgid "E<lt>applicationsE<gt>"
22357 msgstr ""
22358
22359 #. type: textblock
22360 #: ../inspector/virt-inspector.pod:246
22361 msgid ""
22362 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22363 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22364 "machine."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../inspector/virt-inspector.pod:250
22369 msgid ""
22370 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22371 "Typical values would be C<rpm> and C<deb>."
22372 msgstr ""
22373
22374 #. type: textblock
22375 #: ../inspector/virt-inspector.pod:253
22376 msgid ""
22377 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22378 "Typical values include C<yum>, C<up2date> and C<apt>"
22379 msgstr ""
22380
22381 #. type: textblock
22382 #: ../inspector/virt-inspector.pod:256
22383 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22384 msgstr ""
22385
22386 #. type: verbatim
22387 #: ../inspector/virt-inspector.pod:259
22388 #, no-wrap
22389 msgid ""
22390 " <operatingsystems>\n"
22391 "   <operatingsystem>\n"
22392 "     ...\n"
22393 "     <applications>\n"
22394 "       <application>\n"
22395 "         <name>coreutils</name>\n"
22396 "         <version>8.5</version>\n"
22397 "         <release>1</release>\n"
22398 "       </application>\n"
22399 "\n"
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../inspector/virt-inspector.pod:269
22404 msgid ""
22405 "The version and release fields may not be available for some types guests.  "
22406 "Other fields are possible, see "
22407 "L<guestfs(3)/guestfs_inspect_list_applications>."
22408 msgstr ""
22409
22410 #. type: =head2
22411 #: ../inspector/virt-inspector.pod:273
22412 msgid "E<lt>drive_mappingsE<gt>"
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../inspector/virt-inspector.pod:275
22417 msgid ""
22418 "For operating systems like Windows which use drive letters, virt-inspector "
22419 "is able to find out how drive letters map to filesystems."
22420 msgstr ""
22421
22422 #. type: verbatim
22423 #: ../inspector/virt-inspector.pod:279
22424 #, no-wrap
22425 msgid ""
22426 " <operatingsystems>\n"
22427 "   <operatingsystem>\n"
22428 "     ...\n"
22429 "     <drive_mappings>\n"
22430 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22431 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22432 "     </drive_mappings>\n"
22433 "\n"
22434 msgstr ""
22435
22436 #. type: textblock
22437 #: ../inspector/virt-inspector.pod:287
22438 msgid ""
22439 "In the example above, drive C maps to the filesystem on the second partition "
22440 "on the first disk, and drive E maps to the filesystem on the first partition "
22441 "on the second disk."
22442 msgstr ""
22443
22444 #. type: textblock
22445 #: ../inspector/virt-inspector.pod:291
22446 msgid ""
22447 "Note that this only covers permanent local filesystem mappings, not things "
22448 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22449 "here."
22450 msgstr ""
22451
22452 #. type: =head2
22453 #: ../inspector/virt-inspector.pod:295
22454 msgid "E<lt>iconE<gt>"
22455 msgstr ""
22456
22457 #. type: textblock
22458 #: ../inspector/virt-inspector.pod:297
22459 msgid ""
22460 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22461 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22462 "very large and high quality."
22463 msgstr ""
22464
22465 #. type: verbatim
22466 #: ../inspector/virt-inspector.pod:301
22467 #, no-wrap
22468 msgid ""
22469 " <operatingsystems>\n"
22470 "   <operatingsystem>\n"
22471 "     ...\n"
22472 "     <icon>\n"
22473 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22474 "       [... many lines of base64 data ...]\n"
22475 "     </icon>\n"
22476 "\n"
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../inspector/virt-inspector.pod:309
22481 msgid ""
22482 "To display the icon, you have to extract it and convert the base64 data back "
22483 "to a binary file.  Use an XPath query or simply an editor to extract the "
22484 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22485 "to a PNG file:"
22486 msgstr ""
22487
22488 #. type: verbatim
22489 #: ../inspector/virt-inspector.pod:314
22490 #, no-wrap
22491 msgid ""
22492 " base64 -i -d < icon.data > icon.png\n"
22493 "\n"
22494 msgstr ""
22495
22496 #. type: =head2
22497 #: ../inspector/virt-inspector.pod:316
22498 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22499 msgstr ""
22500
22501 #. type: textblock
22502 #: ../inspector/virt-inspector.pod:318
22503 msgid ""
22504 "Virt-inspector can detect some operating system installers on install disks, "
22505 "live CDs, bootable USB keys and more."
22506 msgstr ""
22507
22508 #. type: textblock
22509 #: ../inspector/virt-inspector.pod:321
22510 msgid ""
22511 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22512 "fields may be present to indicate a live CD, network installer, or one part "
22513 "of a multipart CD.  For example:"
22514 msgstr ""
22515
22516 #. type: verbatim
22517 #: ../inspector/virt-inspector.pod:325
22518 #, no-wrap
22519 msgid ""
22520 " <operatingsystems>\n"
22521 "   <operatingsystem>\n"
22522 "     <root>/dev/sda</root>\n"
22523 "     <name>linux</name>\n"
22524 "     <arch>i386</arch>\n"
22525 "     <distro>ubuntu</distro>\n"
22526 "     <product_name>Ubuntu 10.10 &quot;Maverick "
22527 "Meerkat&quot;</product_name>\n"
22528 "     <major_version>10</major_version>\n"
22529 "     <minor_version>10</minor_version>\n"
22530 "     <format>installer</format>\n"
22531 "     <live/>\n"
22532 "\n"
22533 msgstr ""
22534
22535 #. type: =head1
22536 #: ../inspector/virt-inspector.pod:337
22537 msgid "XPATH QUERIES"
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../inspector/virt-inspector.pod:339
22542 msgid ""
22543 "Virt-inspector includes built in support for running XPath queries.  The "
22544 "reason for including XPath support directly in virt-inspector is simply that "
22545 "there are no good and widely available command line programs that can do "
22546 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22547 "available on Red Hat Enterprise Linux."
22548 msgstr ""
22549
22550 #. type: textblock
22551 #: ../inspector/virt-inspector.pod:346
22552 msgid ""
22553 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22554 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22555 "result on stdout.  All other inspection features are disabled in this mode."
22556 msgstr ""
22557
22558 #. type: verbatim
22559 #: ../inspector/virt-inspector.pod:353
22560 #, no-wrap
22561 msgid ""
22562 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22563 " <filesystems>\n"
22564 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22565 "        <type>ext4</type>\n"
22566 " [...]\n"
22567 "\n"
22568 msgstr ""
22569
22570 #. type: verbatim
22571 #: ../inspector/virt-inspector.pod:359
22572 #, no-wrap
22573 msgid ""
22574 " $ virt-inspector -d Guest | \\\n"
22575 "     virt-inspector --xpath "
22576 "\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22577 " ext4\n"
22578 "\n"
22579 msgstr ""
22580
22581 #. type: verbatim
22582 #: ../inspector/virt-inspector.pod:363
22583 #, no-wrap
22584 msgid ""
22585 " $ virt-inspector -d Guest | \\\n"
22586 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22587 " [displays the guest icon, if there is one]\n"
22588 "\n"
22589 msgstr ""
22590
22591 #. type: =head1
22592 #: ../inspector/virt-inspector.pod:374
22593 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22594 msgstr ""
22595
22596 #. type: textblock
22597 #: ../inspector/virt-inspector.pod:376
22598 msgid ""
22599 "Early versions of libguestfs shipped with a different virt-inspector program "
22600 "written in Perl (the current version is written in C).  The XML output of "
22601 "the Perl virt-inspector was different and it could also output in other "
22602 "formats like text."
22603 msgstr ""
22604
22605 #. type: textblock
22606 #: ../inspector/virt-inspector.pod:381
22607 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../inspector/virt-inspector.pod:384
22612 msgid ""
22613 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22614 "versions of virt-inspector with different names:"
22615 msgstr ""
22616
22617 #. type: verbatim
22618 #: ../inspector/virt-inspector.pod:387
22619 #, no-wrap
22620 msgid ""
22621 " virt-inspector     Old Perl version.\n"
22622 " virt-inspector2    New C version.\n"
22623 "\n"
22624 msgstr ""
22625
22626 #. type: textblock
22627 #: ../inspector/virt-inspector.pod:397
22628 msgid ""
22629 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22630 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../inspector/virt-inspector.pod:414
22635 msgid "Matthew Booth L<mbooth@redhat.com>"
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../java/examples/guestfs-java.pod:5
22640 msgid "guestfs-java - How to use libguestfs from Java"
22641 msgstr ""
22642
22643 #. type: verbatim
22644 #: ../java/examples/guestfs-java.pod:9
22645 #, no-wrap
22646 msgid ""
22647 " import com.redhat.et.libguestfs.*;\n"
22648 " \n"
22649 msgstr ""
22650
22651 #. type: verbatim
22652 #: ../java/examples/guestfs-java.pod:11
22653 #, no-wrap
22654 msgid ""
22655 " GuestFS g = new GuestFS ();\n"
22656 " g.add_drive_opts (\"disk.img\", null);\n"
22657 " g.launch ();\n"
22658 "\n"
22659 msgstr ""
22660
22661 #. type: textblock
22662 #: ../java/examples/guestfs-java.pod:17
22663 msgid ""
22664 "This manual page documents how to call libguestfs from the Java programming "
22665 "language.  This page just documents the differences from the C API and gives "
22666 "some examples.  If you are not familiar with using libguestfs, you also need "
22667 "to read L<guestfs(3)>."
22668 msgstr ""
22669
22670 #. type: =head2
22671 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22672 msgid "CLOSING THE HANDLE"
22673 msgstr ""
22674
22675 #. type: textblock
22676 #: ../java/examples/guestfs-java.pod:24
22677 msgid ""
22678 "The handle is closed when it is reaped by the garbage collector.  Because "
22679 "libguestfs handles include a lot of state, it is also possible to close (and "
22680 "hence free) them explicitly by calling the C<close> method."
22681 msgstr ""
22682
22683 #. type: =head2
22684 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
22685 msgid "EXCEPTIONS"
22686 msgstr ""
22687
22688 #. type: textblock
22689 #: ../java/examples/guestfs-java.pod:31
22690 msgid ""
22691 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22692 "exception.  This has a single parameter which is the error message (a "
22693 "C<String>)."
22694 msgstr ""
22695
22696 #. type: textblock
22697 #: ../java/examples/guestfs-java.pod:35
22698 msgid "Calling any method on a closed handle raises the same exception."
22699 msgstr ""
22700
22701 #. type: textblock
22702 #: ../java/examples/guestfs-java.pod:47
22703 msgid ""
22704 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22705 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22706 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22707 "L<http://caml.inria.fr/>."
22708 msgstr ""
22709
22710 #. type: textblock
22711 #: ../ocaml/examples/guestfs-ocaml.pod:5
22712 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../ocaml/examples/guestfs-ocaml.pod:9
22717 msgid "Module style:"
22718 msgstr ""
22719
22720 #. type: verbatim
22721 #: ../ocaml/examples/guestfs-ocaml.pod:11
22722 #, no-wrap
22723 msgid ""
22724 " let g = Guestfs.create () in\n"
22725 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22726 " Guestfs.launch g;\n"
22727 "\n"
22728 msgstr ""
22729
22730 #. type: textblock
22731 #: ../ocaml/examples/guestfs-ocaml.pod:15
22732 msgid "Object-oriented style:"
22733 msgstr ""
22734
22735 #. type: verbatim
22736 #: ../ocaml/examples/guestfs-ocaml.pod:17
22737 #, no-wrap
22738 msgid ""
22739 " let g = new Guestfs.guestfs () in\n"
22740 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22741 " g#launch ();\n"
22742 "\n"
22743 msgstr ""
22744
22745 #. type: verbatim
22746 #: ../ocaml/examples/guestfs-ocaml.pod:21
22747 #, no-wrap
22748 msgid ""
22749 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22750 "or:\n"
22751 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22752 "\n"
22753 msgstr ""
22754
22755 #. type: textblock
22756 #: ../ocaml/examples/guestfs-ocaml.pod:27
22757 msgid ""
22758 "This manual page documents how to call libguestfs from the OCaml programming "
22759 "language.  This page just documents the differences from the C API and gives "
22760 "some examples.  If you are not familiar with using libguestfs, you also need "
22761 "to read L<guestfs(3)>."
22762 msgstr ""
22763
22764 #. type: =head2
22765 #: ../ocaml/examples/guestfs-ocaml.pod:32
22766 msgid "PROGRAMMING STYLES"
22767 msgstr ""
22768
22769 #. type: textblock
22770 #: ../ocaml/examples/guestfs-ocaml.pod:34
22771 msgid ""
22772 "There are two different programming styles supported by the OCaml bindings.  "
22773 "You can use a module style, with each C function mapped to an OCaml "
22774 "function:"
22775 msgstr ""
22776
22777 #. type: verbatim
22778 #: ../ocaml/examples/guestfs-ocaml.pod:38
22779 #, no-wrap
22780 msgid ""
22781 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22782 "\n"
22783 msgstr ""
22784
22785 #. type: textblock
22786 #: ../ocaml/examples/guestfs-ocaml.pod:40
22787 msgid "becomes:"
22788 msgstr ""
22789
22790 #. type: verbatim
22791 #: ../ocaml/examples/guestfs-ocaml.pod:42
22792 #, no-wrap
22793 msgid ""
22794 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22795 "\n"
22796 msgstr ""
22797
22798 #. type: textblock
22799 #: ../ocaml/examples/guestfs-ocaml.pod:44
22800 msgid ""
22801 "Alternately you can use an object-oriented style, calling methods on the "
22802 "class C<Guestfs.guestfs>:"
22803 msgstr ""
22804
22805 #. type: verbatim
22806 #: ../ocaml/examples/guestfs-ocaml.pod:47
22807 #, no-wrap
22808 msgid ""
22809 " method set_verbose : bool -> unit\n"
22810 "\n"
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../ocaml/examples/guestfs-ocaml.pod:49
22815 msgid ""
22816 "The object-oriented style is usually briefer, and the minor performance "
22817 "penalty isn't noticable in the general overhead of performing libguestfs "
22818 "functions."
22819 msgstr ""
22820
22821 #. type: textblock
22822 #: ../ocaml/examples/guestfs-ocaml.pod:55
22823 msgid ""
22824 "The handle is closed when it is reaped by the garbage collector.  Because "
22825 "libguestfs handles include a lot of state, it is also possible to close (and "
22826 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22827 "method."
22828 msgstr ""
22829
22830 #. type: textblock
22831 #: ../ocaml/examples/guestfs-ocaml.pod:62
22832 msgid ""
22833 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22834 "exception.  This has a single parameter which is the error message (a "
22835 "string)."
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../ocaml/examples/guestfs-ocaml.pod:66
22840 msgid ""
22841 "Calling any function/method on a closed handle raises "
22842 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
22843 "that you called."
22844 msgstr ""
22845
22846 #. type: textblock
22847 #: ../ocaml/examples/guestfs-ocaml.pod:80
22848 msgid ""
22849 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22850 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22851 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22852 "L<http://caml.inria.fr/>."
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../perl/examples/guestfs-perl.pod:5
22857 msgid "guestfs-perl - How to use libguestfs from Perl"
22858 msgstr ""
22859
22860 #. type: verbatim
22861 #: ../perl/examples/guestfs-perl.pod:9
22862 #, no-wrap
22863 msgid ""
22864 " use Sys::Guestfs;\n"
22865 " \n"
22866 msgstr ""
22867
22868 #. type: verbatim
22869 #: ../perl/examples/guestfs-perl.pod:11
22870 #, no-wrap
22871 msgid ""
22872 " my $h = Sys::Guestfs->new ();\n"
22873 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22874 " $h->launch ();\n"
22875 " $h->mount_options ('', '/dev/sda1', '/');\n"
22876 " $h->touch ('/hello');\n"
22877 " $h->sync ();\n"
22878 "\n"
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../perl/examples/guestfs-perl.pod:20
22883 msgid ""
22884 "This manual page documents how to call libguestfs from the Perl programming "
22885 "language.  This page just documents the differences from the C API and gives "
22886 "some examples.  If you are not familiar with using libguestfs, you also need "
22887 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22888 msgstr ""
22889
22890 #. type: =head2
22891 #: ../perl/examples/guestfs-perl.pod:26
22892 msgid "ERRORS"
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../perl/examples/guestfs-perl.pod:28
22897 msgid ""
22898 "Errors from libguestfs functions turn into calls to C<croak> (see "
22899 "L<Carp(3)>)."
22900 msgstr ""
22901
22902 #. type: textblock
22903 #: ../perl/examples/guestfs-perl.pod:41
22904 msgid ""
22905 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
22906 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
22907 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
22908 "L<http://libguestfs.org/>."
22909 msgstr ""
22910
22911 #. type: textblock
22912 #: ../python/examples/guestfs-python.pod:5
22913 msgid "guestfs-python - How to use libguestfs from Python"
22914 msgstr ""
22915
22916 #. type: verbatim
22917 #: ../python/examples/guestfs-python.pod:9
22918 #, no-wrap
22919 msgid ""
22920 " import guestfs\n"
22921 " g = guestfs.GuestFS ()\n"
22922 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22923 " g.launch\n"
22924 "\n"
22925 msgstr ""
22926
22927 #. type: textblock
22928 #: ../python/examples/guestfs-python.pod:16
22929 msgid ""
22930 "This manual page documents how to call libguestfs from the Python "
22931 "programming language.  This page just documents the differences from the C "
22932 "API and gives some examples.  If you are not familiar with using libguestfs, "
22933 "you also need to read L<guestfs(3)>."
22934 msgstr ""
22935
22936 #. type: textblock
22937 #: ../python/examples/guestfs-python.pod:23
22938 msgid ""
22939 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22940 "single string argument which is the error message."
22941 msgstr ""
22942
22943 #. type: =head2
22944 #: ../python/examples/guestfs-python.pod:26
22945 msgid "MORE DOCUMENTATION"
22946 msgstr ""
22947
22948 #. type: textblock
22949 #: ../python/examples/guestfs-python.pod:28
22950 msgid "Type:"
22951 msgstr ""
22952
22953 #. type: verbatim
22954 #: ../python/examples/guestfs-python.pod:30
22955 #, no-wrap
22956 msgid ""
22957 " $ python\n"
22958 " >>> import guestfs\n"
22959 " >>> help (guestfs)\n"
22960 "\n"
22961 msgstr ""
22962
22963 #. type: textblock
22964 #: ../python/examples/guestfs-python.pod:44
22965 msgid ""
22966 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22967 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
22968 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22969 msgstr ""
22970
22971 #. type: textblock
22972 #: ../rescue/virt-rescue.pod:5
22973 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22974 msgstr ""
22975
22976 #. type: verbatim
22977 #: ../rescue/virt-rescue.pod:9
22978 #, no-wrap
22979 msgid ""
22980 " virt-rescue [--options] -d domname\n"
22981 "\n"
22982 msgstr ""
22983
22984 #. type: verbatim
22985 #: ../rescue/virt-rescue.pod:11
22986 #, no-wrap
22987 msgid ""
22988 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22989 "\n"
22990 msgstr ""
22991
22992 #. type: verbatim
22993 #: ../rescue/virt-rescue.pod:13
22994 #, no-wrap
22995 msgid ""
22996 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: verbatim
23001 #: ../rescue/virt-rescue.pod:17
23002 #, no-wrap
23003 msgid ""
23004 " virt-rescue [--options] domname\n"
23005 "\n"
23006 msgstr ""
23007
23008 #. type: verbatim
23009 #: ../rescue/virt-rescue.pod:19
23010 #, no-wrap
23011 msgid ""
23012 " virt-rescue [--options] disk.img [disk.img ...]\n"
23013 "\n"
23014 msgstr ""
23015
23016 #. type: textblock
23017 #: ../rescue/virt-rescue.pod:23
23018 msgid ""
23019 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23020 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23021 "you from doing this, but doesn't catch all cases."
23022 msgstr ""
23023
23024 #. type: textblock
23025 #: ../rescue/virt-rescue.pod:27
23026 msgid ""
23027 "However if you use the I<--ro> (read only) option, then you can attach a "
23028 "shell to a live virtual machine.  The results might be strange or "
23029 "inconsistent at times but you won't get disk corruption."
23030 msgstr ""
23031
23032 #. type: textblock
23033 #: ../rescue/virt-rescue.pod:33
23034 msgid ""
23035 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23036 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23037 "recovery tools which you can use to examine or rescue a virtual machine or "
23038 "disk image."
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../rescue/virt-rescue.pod:38
23043 msgid ""
23044 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23045 "on disk image(s):"
23046 msgstr ""
23047
23048 #. type: verbatim
23049 #: ../rescue/virt-rescue.pod:41
23050 #, no-wrap
23051 msgid ""
23052 " virt-rescue -d GuestName\n"
23053 "\n"
23054 msgstr ""
23055
23056 #. type: verbatim
23057 #: ../rescue/virt-rescue.pod:43
23058 #, no-wrap
23059 msgid ""
23060 " virt-rescue --ro -a /path/to/disk.img\n"
23061 "\n"
23062 msgstr ""
23063
23064 #. type: verbatim
23065 #: ../rescue/virt-rescue.pod:45
23066 #, no-wrap
23067 msgid ""
23068 " virt-rescue -a /dev/sdc\n"
23069 "\n"
23070 msgstr ""
23071
23072 #. type: textblock
23073 #: ../rescue/virt-rescue.pod:47
23074 msgid "For live VMs you I<must> use the --ro option."
23075 msgstr ""
23076
23077 #. type: textblock
23078 #: ../rescue/virt-rescue.pod:49
23079 msgid ""
23080 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23081 "in an interactive bash shell where you can use many ordinary Linux "
23082 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23083 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23084 "is an empty directory called C</sysroot> where you can mount filesystems."
23085 msgstr ""
23086
23087 #. type: textblock
23088 #: ../rescue/virt-rescue.pod:56
23089 msgid ""
23090 "You can get virt-rescue to suggest mount commands for you by using the "
23091 "I<--suggest> option (in another terminal):"
23092 msgstr ""
23093
23094 #. type: verbatim
23095 #: ../rescue/virt-rescue.pod:59
23096 #, no-wrap
23097 msgid ""
23098 " $ virt-rescue --suggest -d Fedora15\n"
23099 " Inspecting the virtual machine or disk image ...\n"
23100 " \n"
23101 msgstr ""
23102
23103 #. type: verbatim
23104 #: ../rescue/virt-rescue.pod:62
23105 #, no-wrap
23106 msgid ""
23107 " This disk contains one or more operating systems.  You can use these\n"
23108 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23109 " filesystems.\n"
23110 " \n"
23111 msgstr ""
23112
23113 #. type: verbatim
23114 #: ../rescue/virt-rescue.pod:66
23115 #, no-wrap
23116 msgid ""
23117 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23118 " # type: linux, distro: fedora, version: 15.0\n"
23119 " # Fedora release 15 (Lovelock)\n"
23120 " \n"
23121 msgstr ""
23122
23123 #. type: verbatim
23124 #: ../rescue/virt-rescue.pod:70
23125 #, no-wrap
23126 msgid ""
23127 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23128 " mount /dev/vda1 /sysroot/boot\n"
23129 " mount --bind /dev /sysroot/dev\n"
23130 " mount --bind /dev/pts /sysroot/dev/pts\n"
23131 " mount --bind /proc /sysroot/proc\n"
23132 " mount --bind /sys /sysroot/sys\n"
23133 "\n"
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../rescue/virt-rescue.pod:77
23138 msgid ""
23139 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23140 "(with L<parted(8)>) and mount them by hand:"
23141 msgstr ""
23142
23143 #. type: verbatim
23144 #: ../rescue/virt-rescue.pod:80
23145 #, no-wrap
23146 msgid ""
23147 " ><rescue> lvs\n"
23148 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23149 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23150 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23151 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23152 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23153 " ><rescue> ls /sysroot\n"
23154 "\n"
23155 msgstr ""
23156
23157 #. type: textblock
23158 #: ../rescue/virt-rescue.pod:88
23159 msgid "Another command to list available filesystems is L<virt-filesystems(1)>."
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../rescue/virt-rescue.pod:91
23164 msgid ""
23165 "To run commands in a Linux guest (for example, grub), you should chroot into "
23166 "the /sysroot directory first:"
23167 msgstr ""
23168
23169 #. type: verbatim
23170 #: ../rescue/virt-rescue.pod:94
23171 #, no-wrap
23172 msgid ""
23173 " ><rescue> chroot /sysroot\n"
23174 "\n"
23175 msgstr ""
23176
23177 #. type: textblock
23178 #: ../rescue/virt-rescue.pod:98
23179 msgid ""
23180 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23181 "virtual machine.  For example you can use it on a blank file if you want to "
23182 "partition that file (although we would recommend using L<guestfish(1)> "
23183 "instead as it is more suitable for this purpose).  You can even use "
23184 "virt-rescue on things like SD cards."
23185 msgstr ""
23186
23187 #. type: textblock
23188 #: ../rescue/virt-rescue.pod:104
23189 msgid ""
23190 "Virt-rescue does not require root.  You only need to run it as root if you "
23191 "need root to open the disk image."
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../rescue/virt-rescue.pod:107
23196 msgid ""
23197 "This tool is just designed for quick interactive hacking on a virtual "
23198 "machine.  For more structured access to a virtual machine disk image, you "
23199 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23200 "make scripted changes to guests, use L<guestfish(1)>."
23201 msgstr ""
23202
23203 #. type: =item
23204 #: ../rescue/virt-rescue.pod:131
23205 msgid "B<--append kernelopts>"
23206 msgstr ""
23207
23208 #. type: textblock
23209 #: ../rescue/virt-rescue.pod:133
23210 msgid "Pass additional options to the rescue kernel."
23211 msgstr ""
23212
23213 #. type: verbatim
23214 #: ../rescue/virt-rescue.pod:163
23215 #, no-wrap
23216 msgid ""
23217 " virt-rescue --format=raw -a disk.img\n"
23218 "\n"
23219 msgstr ""
23220
23221 #. type: verbatim
23222 #: ../rescue/virt-rescue.pod:167
23223 #, no-wrap
23224 msgid ""
23225 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23226 "\n"
23227 msgstr ""
23228
23229 #. type: =item
23230 #: ../rescue/virt-rescue.pod:176
23231 msgid "B<-m MB>"
23232 msgstr ""
23233
23234 #. type: =item
23235 #: ../rescue/virt-rescue.pod:178
23236 msgid "B<--memsize MB>"
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../rescue/virt-rescue.pod:180
23241 msgid ""
23242 "Change the amount of memory allocated to the rescue system.  The default is "
23243 "set by libguestfs and is small but adequate for running system tools.  The "
23244 "occasional program might need more memory.  The parameter is specified in "
23245 "megabytes."
23246 msgstr ""
23247
23248 #. type: =item
23249 #: ../rescue/virt-rescue.pod:185
23250 msgid "B<--network>"
23251 msgstr ""
23252
23253 #. type: textblock
23254 #: ../rescue/virt-rescue.pod:187
23255 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23256 msgstr ""
23257
23258 #. type: textblock
23259 #: ../rescue/virt-rescue.pod:193
23260 msgid "Open the image read-only."
23261 msgstr ""
23262
23263 #. type: textblock
23264 #: ../rescue/virt-rescue.pod:203
23265 msgid ""
23266 "Enable SELinux in the rescue appliance.  You should read "
23267 "L<guestfs(3)/SELINUX> before using this option."
23268 msgstr ""
23269
23270 #. type: =item
23271 #: ../rescue/virt-rescue.pod:206
23272 msgid "B<--smp> N"
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../rescue/virt-rescue.pod:208
23277 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23278 msgstr ""
23279
23280 #. type: =item
23281 #: ../rescue/virt-rescue.pod:210
23282 msgid "B<--suggest>"
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../rescue/virt-rescue.pod:212
23287 msgid ""
23288 "Inspect the disk image and suggest what mount commands should be used to "
23289 "mount the disks.  You should use the I<--suggest> option in a second "
23290 "terminal, then paste the commands into another virt-rescue."
23291 msgstr ""
23292
23293 #. type: textblock
23294 #: ../rescue/virt-rescue.pod:216
23295 msgid ""
23296 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23297 "another virt-rescue is running."
23298 msgstr ""
23299
23300 #. type: textblock
23301 #: ../rescue/virt-rescue.pod:235
23302 msgid ""
23303 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23304 "are done read-write."
23305 msgstr ""
23306
23307 #. type: textblock
23308 #: ../rescue/virt-rescue.pod:248
23309 msgid "Previous versions of virt-rescue allowed you to write either:"
23310 msgstr ""
23311
23312 #. type: verbatim
23313 #: ../rescue/virt-rescue.pod:250
23314 #, no-wrap
23315 msgid ""
23316 " virt-rescue disk.img [disk.img ...]\n"
23317 "\n"
23318 msgstr ""
23319
23320 #. type: verbatim
23321 #: ../rescue/virt-rescue.pod:254
23322 #, no-wrap
23323 msgid ""
23324 " virt-rescue guestname\n"
23325 "\n"
23326 msgstr ""
23327
23328 #. type: =head1
23329 #: ../rescue/virt-rescue.pod:262
23330 msgid "NETWORK"
23331 msgstr ""
23332
23333 #. type: textblock
23334 #: ../rescue/virt-rescue.pod:264
23335 msgid ""
23336 "Adding the I<--network> option enables QEMU user networking in the rescue "
23337 "appliance.  There are some differences between user networking and ordinary "
23338 "networking:"
23339 msgstr ""
23340
23341 #. type: =item
23342 #: ../rescue/virt-rescue.pod:270
23343 msgid "ping does not work"
23344 msgstr ""
23345
23346 #. type: textblock
23347 #: ../rescue/virt-rescue.pod:272
23348 msgid ""
23349 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23350 "send the ping packets, and because virt-rescue must be able to run as "
23351 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
23352 "command.  The ping command will appear to resolve addresses but will not be "
23353 "able to send or receive any packets.  This does not mean that the network is "
23354 "not working."
23355 msgstr ""
23356
23357 #. type: =item
23358 #: ../rescue/virt-rescue.pod:279
23359 msgid "cannot receive connections"
23360 msgstr ""
23361
23362 #. type: textblock
23363 #: ../rescue/virt-rescue.pod:281
23364 msgid "QEMU user networking cannot receive incoming connections."
23365 msgstr ""
23366
23367 #. type: =item
23368 #: ../rescue/virt-rescue.pod:283
23369 msgid "making TCP connections"
23370 msgstr ""
23371
23372 #. type: textblock
23373 #: ../rescue/virt-rescue.pod:285
23374 msgid ""
23375 "The virt-rescue appliance needs to be small and so does not include many "
23376 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23377 "make TCP connections from the shell using the magical "
23378 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23379 msgstr ""
23380
23381 #. type: verbatim
23382 #: ../rescue/virt-rescue.pod:290
23383 #, no-wrap
23384 msgid ""
23385 " exec 3<>/dev/tcp/redhat.com/80\n"
23386 " echo \"GET /\" >&3\n"
23387 " cat <&3\n"
23388 "\n"
23389 msgstr ""
23390
23391 #. type: textblock
23392 #: ../rescue/virt-rescue.pod:294
23393 msgid "See L<bash(1)> for more details."
23394 msgstr ""
23395
23396 #. type: textblock
23397 #: ../rescue/virt-rescue.pod:300
23398 msgid ""
23399 "Several environment variables affect virt-rescue.  See "
23400 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
23401 msgstr ""
23402
23403 #. type: textblock
23404 #: ../rescue/virt-rescue.pod:327
23405 msgid ""
23406 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23407 "L<virt-filesystems(1)>, L<http://libguestfs.org/>."
23408 msgstr ""
23409
23410 #. type: textblock
23411 #: ../resize/virt-resize.pod:5
23412 msgid "virt-resize - Resize a virtual machine disk"
23413 msgstr ""
23414
23415 #. type: verbatim
23416 #: ../resize/virt-resize.pod:9
23417 #, no-wrap
23418 msgid ""
23419 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23420 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23421 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23422 "\n"
23423 msgstr ""
23424
23425 #. type: textblock
23426 #: ../resize/virt-resize.pod:15
23427 msgid ""
23428 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23429 "larger or smaller overall, and resizing or deleting any partitions contained "
23430 "within."
23431 msgstr ""
23432
23433 #. type: textblock
23434 #: ../resize/virt-resize.pod:19
23435 msgid ""
23436 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23437 "not> be used on live virtual machines - for consistent results, shut the "
23438 "virtual machine down before resizing it."
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../resize/virt-resize.pod:23
23443 msgid ""
23444 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23445 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23446 msgstr ""
23447
23448 #. type: =item
23449 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597 ../sparsify/virt-sparsify.pod:221 ../src/guestfs.pod:484 ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23450 msgid "1."
23451 msgstr ""
23452
23453 #. type: textblock
23454 #: ../resize/virt-resize.pod:33
23455 msgid ""
23456 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23457 "fill the extra 5GB of space."
23458 msgstr ""
23459
23460 #. type: verbatim
23461 #: ../resize/virt-resize.pod:36
23462 #, no-wrap
23463 msgid ""
23464 " virt-filesystems --long -h --all -a olddisk\n"
23465 " \n"
23466 msgstr ""
23467
23468 #. type: verbatim
23469 #: ../resize/virt-resize.pod:38
23470 #, no-wrap
23471 msgid ""
23472 " truncate -r olddisk newdisk\n"
23473 " truncate -s +5G newdisk\n"
23474 " \n"
23475 msgstr ""
23476
23477 #. type: verbatim
23478 #: ../resize/virt-resize.pod:41
23479 #, no-wrap
23480 msgid ""
23481 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23482 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23483 "\n"
23484 msgstr ""
23485
23486 #. type: =item
23487 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604 ../sparsify/virt-sparsify.pod:228 ../src/guestfs.pod:490 ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23488 msgid "2."
23489 msgstr ""
23490
23491 #. type: textblock
23492 #: ../resize/virt-resize.pod:46
23493 msgid ""
23494 "As above, but make the /boot partition 200MB bigger, while giving the "
23495 "remaining space to /dev/sda2:"
23496 msgstr ""
23497
23498 #. type: verbatim
23499 #: ../resize/virt-resize.pod:49
23500 #, no-wrap
23501 msgid ""
23502 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23503 "   olddisk newdisk\n"
23504 "\n"
23505 msgstr ""
23506
23507 #. type: =item
23508 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
23509 msgid "3."
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../resize/virt-resize.pod:54
23514 msgid ""
23515 "As in the first example, but expand a logical volume as the final step.  "
23516 "This is what you would typically use for Linux guests that use LVM:"
23517 msgstr ""
23518
23519 #. type: verbatim
23520 #: ../resize/virt-resize.pod:58
23521 #, no-wrap
23522 msgid ""
23523 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23524 "   olddisk newdisk\n"
23525 "\n"
23526 msgstr ""
23527
23528 #. type: =item
23529 #: ../resize/virt-resize.pod:61
23530 msgid "4."
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../resize/virt-resize.pod:63
23535 msgid ""
23536 "As in the first example, but the output format will be qcow2 instead of a "
23537 "raw disk:"
23538 msgstr ""
23539
23540 #. type: verbatim
23541 #: ../resize/virt-resize.pod:66
23542 #, no-wrap
23543 msgid ""
23544 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23545 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23546 "\n"
23547 msgstr ""
23548
23549 #. type: =head1
23550 #: ../resize/virt-resize.pod:71
23551 msgid "DETAILED USAGE"
23552 msgstr ""
23553
23554 #. type: =head2
23555 #: ../resize/virt-resize.pod:73
23556 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23557 msgstr ""
23558
23559 #. type: =item
23560 #: ../resize/virt-resize.pod:77
23561 msgid "1. Shut down the virtual machine"
23562 msgstr ""
23563
23564 #. type: =item
23565 #: ../resize/virt-resize.pod:79
23566 msgid "2. Locate input disk image"
23567 msgstr ""
23568
23569 #. type: textblock
23570 #: ../resize/virt-resize.pod:81
23571 msgid ""
23572 "Locate the input disk image (ie. the file or device on the host containing "
23573 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23574 "dumpxml> like this to find the disk image name:"
23575 msgstr ""
23576
23577 #. type: verbatim
23578 #: ../resize/virt-resize.pod:85
23579 #, no-wrap
23580 msgid ""
23581 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23582 " Found 1 nodes:\n"
23583 " -- NODE --\n"
23584 " <source dev=\"/dev/vg/lv_guest\" />\n"
23585 "\n"
23586 msgstr ""
23587
23588 #. type: =item
23589 #: ../resize/virt-resize.pod:90
23590 msgid "3. Look at current sizing"
23591 msgstr ""
23592
23593 #. type: textblock
23594 #: ../resize/virt-resize.pod:92
23595 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23596 msgstr ""
23597
23598 #. type: verbatim
23599 #: ../resize/virt-resize.pod:95
23600 #, no-wrap
23601 msgid ""
23602 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23603 " Name       Type       Size  Parent\n"
23604 " /dev/sda1  partition  101M  /dev/sda\n"
23605 " /dev/sda2  partition  7.9G  /dev/sda\n"
23606 " /dev/sda   device     8.0G  -\n"
23607 "\n"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../resize/virt-resize.pod:101
23612 msgid ""
23613 "(This example is a virtual machine with an 8 GB disk which we would like to "
23614 "expand up to 10 GB)."
23615 msgstr ""
23616
23617 #. type: =item
23618 #: ../resize/virt-resize.pod:104
23619 msgid "4. Create output disk"
23620 msgstr ""
23621
23622 #. type: textblock
23623 #: ../resize/virt-resize.pod:106
23624 msgid ""
23625 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23626 "to store the resized output disk."
23627 msgstr ""
23628
23629 #. type: textblock
23630 #: ../resize/virt-resize.pod:109
23631 msgid "To store the resized disk image in a file, create a file of a suitable size:"
23632 msgstr ""
23633
23634 #. type: verbatim
23635 #: ../resize/virt-resize.pod:112
23636 #, no-wrap
23637 msgid ""
23638 " # rm -f outdisk\n"
23639 " # truncate -s 10G outdisk\n"
23640 "\n"
23641 msgstr ""
23642
23643 #. type: textblock
23644 #: ../resize/virt-resize.pod:115
23645 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23646 msgstr ""
23647
23648 #. type: verbatim
23649 #: ../resize/virt-resize.pod:117
23650 #, no-wrap
23651 msgid ""
23652 " # lvcreate -L 10G -n lv_name vg_name\n"
23653 "\n"
23654 msgstr ""
23655
23656 #. type: textblock
23657 #: ../resize/virt-resize.pod:119
23658 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23659 msgstr ""
23660
23661 #. type: verbatim
23662 #: ../resize/virt-resize.pod:121
23663 #, no-wrap
23664 msgid ""
23665 " # virsh pool-list\n"
23666 " # virsh vol-create-as poolname newvol 10G\n"
23667 "\n"
23668 msgstr ""
23669
23670 #. type: =item
23671 #: ../resize/virt-resize.pod:124
23672 msgid "5. Resize"
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../resize/virt-resize.pod:126
23677 msgid ""
23678 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23679 "file) and the output disk.  The output disk is the one created in the "
23680 "previous step."
23681 msgstr ""
23682
23683 #. type: verbatim
23684 #: ../resize/virt-resize.pod:130
23685 #, no-wrap
23686 msgid ""
23687 " # virt-resize indisk outdisk\n"
23688 "\n"
23689 msgstr ""
23690
23691 #. type: textblock
23692 #: ../resize/virt-resize.pod:132
23693 msgid ""
23694 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23695 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23696 "larger, then an extra, empty partition is created at the end of the disk "
23697 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23698 "error."
23699 msgstr ""
23700
23701 #. type: textblock
23702 #: ../resize/virt-resize.pod:138
23703 msgid ""
23704 "More realistically you'd want to expand existing partitions in the disk "
23705 "image by passing extra options (for the full list see the L</OPTIONS> "
23706 "section below)."
23707 msgstr ""
23708
23709 #. type: textblock
23710 #: ../resize/virt-resize.pod:142
23711 msgid ""
23712 "L</--expand> is the most useful option.  It expands the named partition "
23713 "within the disk to fill any extra space:"
23714 msgstr ""
23715
23716 #. type: verbatim
23717 #: ../resize/virt-resize.pod:145
23718 #, no-wrap
23719 msgid ""
23720 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23721 "\n"
23722 msgstr ""
23723
23724 #. type: textblock
23725 #: ../resize/virt-resize.pod:147
23726 msgid ""
23727 "(In this case, an extra partition is I<not> created at the end of the disk, "
23728 "because there will be no unused space)."
23729 msgstr ""
23730
23731 #. type: textblock
23732 #: ../resize/virt-resize.pod:150
23733 msgid ""
23734 "L</--resize> is the other commonly used option.  The following would "
23735 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23736 "rest of the available space:"
23737 msgstr ""
23738
23739 #. type: verbatim
23740 #: ../resize/virt-resize.pod:154
23741 #, no-wrap
23742 msgid ""
23743 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23744 "     indisk outdisk\n"
23745 "\n"
23746 msgstr ""
23747
23748 #. type: textblock
23749 #: ../resize/virt-resize.pod:157
23750 msgid ""
23751 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23752 "if virt-resize knows how, it will resize the contents, the equivalent of "
23753 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23754 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23755 "filesystems, so you would have to online resize them after booting the "
23756 "guest."
23757 msgstr ""
23758
23759 #. type: textblock
23760 #: ../resize/virt-resize.pod:164
23761 msgid "Other options are covered below."
23762 msgstr ""
23763
23764 #. type: =item
23765 #: ../resize/virt-resize.pod:166
23766 msgid "6. Test"
23767 msgstr ""
23768
23769 #. type: textblock
23770 #: ../resize/virt-resize.pod:168
23771 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23772 msgstr ""
23773
23774 #. type: textblock
23775 #: ../resize/virt-resize.pod:170
23776 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23777 msgstr ""
23778
23779 #. type: verbatim
23780 #: ../resize/virt-resize.pod:172
23781 #, no-wrap
23782 msgid ""
23783 " # virsh edit guestname\n"
23784 "\n"
23785 msgstr ""
23786
23787 #. type: textblock
23788 #: ../resize/virt-resize.pod:174
23789 msgid ""
23790 "Change E<lt>source ...E<gt>, see "
23791 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23792 msgstr ""
23793
23794 #. type: textblock
23795 #: ../resize/virt-resize.pod:177
23796 msgid "Then start up the domain with the new, resized disk:"
23797 msgstr ""
23798
23799 #. type: verbatim
23800 #: ../resize/virt-resize.pod:179
23801 #, no-wrap
23802 msgid ""
23803 " # virsh start guestname\n"
23804 "\n"
23805 msgstr ""
23806
23807 #. type: textblock
23808 #: ../resize/virt-resize.pod:181
23809 msgid ""
23810 "and check that it still works.  See also the L</NOTES> section below for "
23811 "additional information."
23812 msgstr ""
23813
23814 #. type: =item
23815 #: ../resize/virt-resize.pod:184
23816 msgid "7. Resize LVs etc inside the guest"
23817 msgstr ""
23818
23819 #. type: textblock
23820 #: ../resize/virt-resize.pod:186
23821 msgid "(This can also be done offline using L<guestfish(1)>)"
23822 msgstr ""
23823
23824 #. type: textblock
23825 #: ../resize/virt-resize.pod:188
23826 msgid ""
23827 "Once the guest has booted you should see the new space available, at least "
23828 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23829 "may need to resize LVs inside PVs, and also resize filesystem types that "
23830 "virt-resize does not know how to expand."
23831 msgstr ""
23832
23833 #. type: =head2
23834 #: ../resize/virt-resize.pod:195
23835 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23836 msgstr ""
23837
23838 #. type: textblock
23839 #: ../resize/virt-resize.pod:197
23840 msgid ""
23841 "Shrinking is somewhat more complex than expanding, and only an overview is "
23842 "given here."
23843 msgstr ""
23844
23845 #. type: textblock
23846 #: ../resize/virt-resize.pod:200
23847 msgid ""
23848 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23849 "filesystems).  The user has to shrink content before passing the disk image "
23850 "to virt-resize, and virt-resize will check that the content has been shrunk "
23851 "properly."
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../resize/virt-resize.pod:205
23856 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../resize/virt-resize.pod:207
23861 msgid ""
23862 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23863 "steps 3 and 4 above to allocate a new disk image."
23864 msgstr ""
23865
23866 #. type: textblock
23867 #: ../resize/virt-resize.pod:210
23868 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23869 msgstr ""
23870
23871 #. type: =head2
23872 #: ../resize/virt-resize.pod:213
23873 msgid "IGNORING OR DELETING PARTITIONS"
23874 msgstr ""
23875
23876 #. type: textblock
23877 #: ../resize/virt-resize.pod:215
23878 msgid ""
23879 "virt-resize also gives a convenient way to ignore or delete partitions when "
23880 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23881 "up the copy where you don't care about the existing contents of a "
23882 "partition.  Deleting a partition removes it completely, but note that it "
23883 "also renumbers any partitions after the one which is deleted, which can "
23884 "leave some guests unbootable."
23885 msgstr ""
23886
23887 #. type: =head2
23888 #: ../resize/virt-resize.pod:222
23889 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23890 msgstr ""
23891
23892 #. type: textblock
23893 #: ../resize/virt-resize.pod:224
23894 msgid ""
23895 "If the input disk is in qcow2 format, then you may prefer that the output is "
23896 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23897 "the fly.  The output format is simply determined by the format of the empty "
23898 "output container that you provide.  Thus to create qcow2 output, use:"
23899 msgstr ""
23900
23901 #. type: verbatim
23902 #: ../resize/virt-resize.pod:230
23903 #, no-wrap
23904 msgid ""
23905 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: textblock
23910 #: ../resize/virt-resize.pod:232
23911 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23912 msgstr ""
23913
23914 #. type: textblock
23915 #: ../resize/virt-resize.pod:234
23916 msgid "Similarly, to get non-sparse raw output use:"
23917 msgstr ""
23918
23919 #. type: verbatim
23920 #: ../resize/virt-resize.pod:236
23921 #, no-wrap
23922 msgid ""
23923 " fallocate -l size outdisk\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../resize/virt-resize.pod:238
23929 msgid ""
23930 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
23931 "if=/dev/zero of=outdisk bs=1M count=..>)"
23932 msgstr ""
23933
23934 #. type: =head2
23935 #: ../resize/virt-resize.pod:241
23936 msgid "LOGICAL PARTITIONS"
23937 msgstr ""
23938
23939 #. type: textblock
23940 #: ../resize/virt-resize.pod:243
23941 msgid ""
23942 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23943 "tables) cannot be resized."
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../resize/virt-resize.pod:246
23948 msgid ""
23949 "To understand what is going on, firstly one of the four partitions "
23950 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
23951 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
23952 "partition type."
23953 msgstr ""
23954
23955 #. type: textblock
23956 #: ../resize/virt-resize.pod:251
23957 msgid "Logical partitions live inside the extended partition."
23958 msgstr ""
23959
23960 #. type: textblock
23961 #: ../resize/virt-resize.pod:253
23962 msgid ""
23963 "The extended partition can be expanded, but not shrunk (unless you force it, "
23964 "which is not advisable).  When the extended partition is copied across, all "
23965 "the logical partitions contained inside are copied over implicitly.  "
23966 "Virt-resize does not look inside the extended partition, so it copies the "
23967 "logical partitions blindly."
23968 msgstr ""
23969
23970 #. type: textblock
23971 #: ../resize/virt-resize.pod:259
23972 msgid ""
23973 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23974 "line.  Doing so will give an error."
23975 msgstr ""
23976
23977 #. type: textblock
23978 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23979 msgid "Display help."
23980 msgstr ""
23981
23982 #. type: =item
23983 #: ../resize/virt-resize.pod:270
23984 msgid "B<--align-first auto>"
23985 msgstr ""
23986
23987 #. type: =item
23988 #: ../resize/virt-resize.pod:272
23989 msgid "B<--align-first never>"
23990 msgstr ""
23991
23992 #. type: =item
23993 #: ../resize/virt-resize.pod:274
23994 msgid "B<--align-first always>"
23995 msgstr ""
23996
23997 #. type: textblock
23998 #: ../resize/virt-resize.pod:276
23999 msgid ""
24000 "Align the first partition for improved performance (see also the "
24001 "I<--alignment> option)."
24002 msgstr ""
24003
24004 #. type: textblock
24005 #: ../resize/virt-resize.pod:279
24006 msgid ""
24007 "The default is I<--align-first auto> which only aligns the first partition "
24008 "if it is safe to do so.  That is, only when we know how to fix the "
24009 "bootloader automatically, and at the moment that can only be done for "
24010 "Windows guests."
24011 msgstr ""
24012
24013 #. type: textblock
24014 #: ../resize/virt-resize.pod:284
24015 msgid ""
24016 "I<--align-first never> means we never move the first partition.  This is the "
24017 "safest option.  Try this if the guest does not boot after resizing."
24018 msgstr ""
24019
24020 #. type: textblock
24021 #: ../resize/virt-resize.pod:288
24022 msgid ""
24023 "I<--align-first always> means we always align the first partition (if it "
24024 "needs to be aligned).  For some guests this will break the bootloader, "
24025 "making the guest unbootable."
24026 msgstr ""
24027
24028 #. type: =item
24029 #: ../resize/virt-resize.pod:292
24030 msgid "B<--alignment N>"
24031 msgstr ""
24032
24033 #. type: textblock
24034 #: ../resize/virt-resize.pod:294
24035 msgid ""
24036 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24037 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24038 msgstr ""
24039
24040 #. type: textblock
24041 #: ../resize/virt-resize.pod:298
24042 msgid ""
24043 "Assuming 512 byte sector size inside the guest, here are some suitable "
24044 "values for this:"
24045 msgstr ""
24046
24047 #. type: =item
24048 #: ../resize/virt-resize.pod:303
24049 msgid "I<--alignment 1> (512 bytes)"
24050 msgstr ""
24051
24052 #. type: textblock
24053 #: ../resize/virt-resize.pod:305
24054 msgid ""
24055 "The partitions would be packed together as closely as possible, but would be "
24056 "completely unaligned.  In some cases this can cause very poor performance.  "
24057 "See L<virt-alignment-scan(1)> for further details."
24058 msgstr ""
24059
24060 #. type: =item
24061 #: ../resize/virt-resize.pod:309
24062 msgid "I<--alignment 8> (4K)"
24063 msgstr ""
24064
24065 #. type: textblock
24066 #: ../resize/virt-resize.pod:311
24067 msgid ""
24068 "This would be the minimum acceptable alignment for reasonable performance on "
24069 "modern hosts."
24070 msgstr ""
24071
24072 #. type: =item
24073 #: ../resize/virt-resize.pod:314
24074 msgid "I<--alignment 128> (64K)"
24075 msgstr ""
24076
24077 #. type: textblock
24078 #: ../resize/virt-resize.pod:316
24079 msgid ""
24080 "This alignment provides good performance when the host is using high end "
24081 "network storage."
24082 msgstr ""
24083
24084 #. type: =item
24085 #: ../resize/virt-resize.pod:319
24086 msgid "I<--alignment 2048> (1M)"
24087 msgstr ""
24088
24089 #. type: textblock
24090 #: ../resize/virt-resize.pod:321
24091 msgid ""
24092 "This is the standard alignment used by all newly installed guests since "
24093 "around 2008."
24094 msgstr ""
24095
24096 #. type: =item
24097 #: ../resize/virt-resize.pod:326
24098 msgid "B<-d>"
24099 msgstr ""
24100
24101 #. type: =item
24102 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
24103 msgid "B<--debug>"
24104 msgstr ""
24105
24106 #. type: textblock
24107 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24108 msgid "Enable debugging messages."
24109 msgstr ""
24110
24111 #. type: =item
24112 #: ../resize/virt-resize.pod:332
24113 msgid "B<--delete part>"
24114 msgstr ""
24115
24116 #. type: textblock
24117 #: ../resize/virt-resize.pod:334
24118 msgid ""
24119 "Delete the named partition.  It would be more accurate to describe this as "
24120 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24121 "the original disk image is left intact."
24122 msgstr ""
24123
24124 #. type: textblock
24125 #: ../resize/virt-resize.pod:338
24126 msgid ""
24127 "Note that when you delete a partition, then anything contained in the "
24128 "partition is also deleted.  Furthermore, this causes any partitions that "
24129 "come after to be I<renumbered>, which can easily make your guest unbootable."
24130 msgstr ""
24131
24132 #. type: textblock
24133 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404 ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:151
24134 msgid "You can give this option multiple times."
24135 msgstr ""
24136
24137 #. type: =item
24138 #: ../resize/virt-resize.pod:345
24139 msgid "B<--expand part>"
24140 msgstr ""
24141
24142 #. type: textblock
24143 #: ../resize/virt-resize.pod:347
24144 msgid ""
24145 "Expand the named partition so it uses up all extra space (space left over "
24146 "after any other resize changes that you request have been done)."
24147 msgstr ""
24148
24149 #. type: textblock
24150 #: ../resize/virt-resize.pod:350
24151 msgid ""
24152 "If virt-resize knows how, it will expand the direct content of the "
24153 "partition.  For example, if the partition is an LVM PV, it will expand the "
24154 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24155 "content it doesn't know about alone."
24156 msgstr ""
24157
24158 #. type: textblock
24159 #: ../resize/virt-resize.pod:355
24160 msgid "Currently virt-resize can resize:"
24161 msgstr ""
24162
24163 #. type: textblock
24164 #: ../resize/virt-resize.pod:361
24165 msgid "ext2, ext3 and ext4 filesystems."
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../resize/virt-resize.pod:365
24170 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../resize/virt-resize.pod:367
24175 msgid ""
24176 "The filesystem must have been shut down consistently last time it was used.  "
24177 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24178 "consistency check, so at the first boot after resizing Windows will check "
24179 "the disk."
24180 msgstr ""
24181
24182 #. type: textblock
24183 #: ../resize/virt-resize.pod:374
24184 msgid ""
24185 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24186 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24187 "resize LVs as desired after boot."
24188 msgstr ""
24189
24190 #. type: textblock
24191 #: ../resize/virt-resize.pod:380
24192 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24193 msgstr ""
24194
24195 #. type: textblock
24196 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24197 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24198 msgstr ""
24199
24200 #. type: =item
24201 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:131 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24202 msgid "B<--format> raw"
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:135
24207 msgid ""
24208 "Specify the format of the input disk image.  If this flag is not given then "
24209 "it is auto-detected from the image itself."
24210 msgstr ""
24211
24212 #. type: textblock
24213 #: ../resize/virt-resize.pod:394
24214 msgid ""
24215 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24216 "AND NON-SPARSE RAW FORMATS>."
24217 msgstr ""
24218
24219 #. type: =item
24220 #: ../resize/virt-resize.pod:397
24221 msgid "B<--ignore part>"
24222 msgstr ""
24223
24224 #. type: textblock
24225 #: ../resize/virt-resize.pod:399
24226 msgid ""
24227 "Ignore the named partition.  Effectively this means the partition is "
24228 "allocated on the destination disk, but the content is not copied across from "
24229 "the source disk.  The content of the partition will be blank (all zero "
24230 "bytes)."
24231 msgstr ""
24232
24233 #. type: =item
24234 #: ../resize/virt-resize.pod:406
24235 msgid "B<--LV-expand logvol>"
24236 msgstr ""
24237
24238 #. type: textblock
24239 #: ../resize/virt-resize.pod:408
24240 msgid ""
24241 "This takes the logical volume and, as a final step, expands it to fill all "
24242 "the space available in its volume group.  A typical usage, assuming a Linux "
24243 "guest with a single PV C</dev/sda2> and a root device called "
24244 "C</dev/vg_guest/lv_root> would be:"
24245 msgstr ""
24246
24247 #. type: verbatim
24248 #: ../resize/virt-resize.pod:413
24249 #, no-wrap
24250 msgid ""
24251 " virt-resize indisk outdisk \\\n"
24252 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24253 "\n"
24254 msgstr ""
24255
24256 #. type: textblock
24257 #: ../resize/virt-resize.pod:416
24258 msgid ""
24259 "This would first expand the partition (and PV), and then expand the root "
24260 "device to fill the extra space in the PV."
24261 msgstr ""
24262
24263 #. type: textblock
24264 #: ../resize/virt-resize.pod:419
24265 msgid ""
24266 "The contents of the LV are also resized if virt-resize knows how to do "
24267 "that.  You can stop virt-resize from trying to expand the content by using "
24268 "the option I<--no-expand-content>."
24269 msgstr ""
24270
24271 #. type: textblock
24272 #: ../resize/virt-resize.pod:423
24273 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24274 msgstr ""
24275
24276 #. type: textblock
24277 #: ../resize/virt-resize.pod:425
24278 msgid ""
24279 "You can give this option multiple times, I<but> it doesn't make sense to do "
24280 "this unless the logical volumes you specify are all in different volume "
24281 "groups."
24282 msgstr ""
24283
24284 #. type: =item
24285 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:153
24286 msgid "B<--machine-readable>"
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:155
24291 msgid ""
24292 "This option is used to make the output more machine friendly when being "
24293 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24294 msgstr ""
24295
24296 #. type: =item
24297 #: ../resize/virt-resize.pod:437
24298 msgid "B<--dryrun>"
24299 msgstr ""
24300
24301 #. type: textblock
24302 #: ../resize/virt-resize.pod:439
24303 msgid "Print a summary of what would be done, but don't do anything."
24304 msgstr ""
24305
24306 #. type: =item
24307 #: ../resize/virt-resize.pod:441
24308 msgid "B<--no-copy-boot-loader>"
24309 msgstr ""
24310
24311 #. type: textblock
24312 #: ../resize/virt-resize.pod:443
24313 msgid ""
24314 "By default, virt-resize copies over some sectors at the start of the disk "
24315 "(up to the beginning of the first partition).  Commonly these sectors "
24316 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24317 "in order for the guest to boot correctly."
24318 msgstr ""
24319
24320 #. type: textblock
24321 #: ../resize/virt-resize.pod:448
24322 msgid ""
24323 "If you specify this flag, then this initial copy is not done.  You may need "
24324 "to reinstall the boot loader in this case."
24325 msgstr ""
24326
24327 #. type: =item
24328 #: ../resize/virt-resize.pod:451
24329 msgid "B<--no-extra-partition>"
24330 msgstr ""
24331
24332 #. type: textblock
24333 #: ../resize/virt-resize.pod:453
24334 msgid ""
24335 "By default, virt-resize creates an extra partition if there is any extra, "
24336 "unused space after all resizing has happened.  Use this option to prevent "
24337 "the extra partition from being created.  If you do this then the extra space "
24338 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24339 "tool in the guest."
24340 msgstr ""
24341
24342 #. type: textblock
24343 #: ../resize/virt-resize.pod:459
24344 msgid ""
24345 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24346 "will be created."
24347 msgstr ""
24348
24349 #. type: =item
24350 #: ../resize/virt-resize.pod:462
24351 msgid "B<--no-expand-content>"
24352 msgstr ""
24353
24354 #. type: textblock
24355 #: ../resize/virt-resize.pod:464
24356 msgid ""
24357 "By default, virt-resize will try to expand the direct contents of "
24358 "partitions, if it knows how (see I<--expand> option above)."
24359 msgstr ""
24360
24361 #. type: textblock
24362 #: ../resize/virt-resize.pod:467
24363 msgid ""
24364 "If you give the I<--no-expand-content> option then virt-resize will not "
24365 "attempt this."
24366 msgstr ""
24367
24368 #. type: =item
24369 #: ../resize/virt-resize.pod:470
24370 msgid "B<--ntfsresize-force>"
24371 msgstr ""
24372
24373 #. type: textblock
24374 #: ../resize/virt-resize.pod:472
24375 msgid ""
24376 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24377 "the NTFS disk is marked as needing a consistency check.  You have to use "
24378 "this option if you want to resize a Windows guest multiple times without "
24379 "booting into Windows between each resize."
24380 msgstr ""
24381
24382 #. type: =item
24383 #: ../resize/virt-resize.pod:478
24384 msgid "B<--output-format> raw"
24385 msgstr ""
24386
24387 #. type: textblock
24388 #: ../resize/virt-resize.pod:480
24389 msgid ""
24390 "Specify the format of the output disk image.  If this flag is not given then "
24391 "it is auto-detected from the image itself."
24392 msgstr ""
24393
24394 #. type: textblock
24395 #: ../resize/virt-resize.pod:486
24396 msgid ""
24397 "Note that this option I<does not create> the output format.  This option "
24398 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24399 "need to create the output disk with the right format.  See L</QCOW2 AND "
24400 "NON-SPARSE RAW FORMATS>."
24401 msgstr ""
24402
24403 #. type: textblock
24404 #: ../resize/virt-resize.pod:495
24405 msgid "Don't print the summary."
24406 msgstr ""
24407
24408 #. type: =item
24409 #: ../resize/virt-resize.pod:497
24410 msgid "B<--resize part=size>"
24411 msgstr ""
24412
24413 #. type: textblock
24414 #: ../resize/virt-resize.pod:499
24415 msgid ""
24416 "Resize the named partition (expanding or shrinking it) so that it has the "
24417 "given size."
24418 msgstr ""
24419
24420 #. type: textblock
24421 #: ../resize/virt-resize.pod:502
24422 msgid ""
24423 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24424 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24425 "size; or as a relative number or percentage.  For example:"
24426 msgstr ""
24427
24428 #. type: verbatim
24429 #: ../resize/virt-resize.pod:508
24430 #, no-wrap
24431 msgid ""
24432 " --resize /dev/sda2=10G\n"
24433 "\n"
24434 msgstr ""
24435
24436 #. type: verbatim
24437 #: ../resize/virt-resize.pod:510
24438 #, no-wrap
24439 msgid ""
24440 " --resize /dev/sda4=90%\n"
24441 "\n"
24442 msgstr ""
24443
24444 #. type: verbatim
24445 #: ../resize/virt-resize.pod:512
24446 #, no-wrap
24447 msgid ""
24448 " --resize /dev/sda2=+1G\n"
24449 "\n"
24450 msgstr ""
24451
24452 #. type: verbatim
24453 #: ../resize/virt-resize.pod:514
24454 #, no-wrap
24455 msgid ""
24456 " --resize /dev/sda2=-200M\n"
24457 "\n"
24458 msgstr ""
24459
24460 #. type: verbatim
24461 #: ../resize/virt-resize.pod:516
24462 #, no-wrap
24463 msgid ""
24464 " --resize /dev/sda1=+128K\n"
24465 "\n"
24466 msgstr ""
24467
24468 #. type: verbatim
24469 #: ../resize/virt-resize.pod:518
24470 #, no-wrap
24471 msgid ""
24472 " --resize /dev/sda1=+10%\n"
24473 "\n"
24474 msgstr ""
24475
24476 #. type: verbatim
24477 #: ../resize/virt-resize.pod:520
24478 #, no-wrap
24479 msgid ""
24480 " --resize /dev/sda1=-10%\n"
24481 "\n"
24482 msgstr ""
24483
24484 #. type: textblock
24485 #: ../resize/virt-resize.pod:522
24486 msgid ""
24487 "You can increase the size of any partition.  Virt-resize will expand the "
24488 "direct content of the partition if it knows how (see I<--expand> below)."
24489 msgstr ""
24490
24491 #. type: textblock
24492 #: ../resize/virt-resize.pod:526
24493 msgid ""
24494 "You can only I<decrease> the size of partitions that contain filesystems or "
24495 "PVs which have already been shrunk.  Virt-resize will check this has been "
24496 "done before proceeding, or else will print an error (see also "
24497 "I<--resize-force>)."
24498 msgstr ""
24499
24500 #. type: =item
24501 #: ../resize/virt-resize.pod:533
24502 msgid "B<--resize-force part=size>"
24503 msgstr ""
24504
24505 #. type: textblock
24506 #: ../resize/virt-resize.pod:535
24507 msgid ""
24508 "This is the same as I<--resize> except that it will let you decrease the "
24509 "size of any partition.  Generally this means you will lose any data which "
24510 "was at the end of the partition you shrink, but you may not care about that "
24511 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24512 "as a swap partition)."
24513 msgstr ""
24514
24515 #. type: textblock
24516 #: ../resize/virt-resize.pod:541
24517 msgid "See also the I<--ignore> option."
24518 msgstr ""
24519
24520 #. type: =item
24521 #: ../resize/virt-resize.pod:543
24522 msgid "B<--shrink part>"
24523 msgstr ""
24524
24525 #. type: textblock
24526 #: ../resize/virt-resize.pod:545
24527 msgid ""
24528 "Shrink the named partition until the overall disk image fits in the "
24529 "destination.  The named partition B<must> contain a filesystem or PV which "
24530 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24531 "online tools).  Virt-resize will check this and give an error if it has not "
24532 "been done."
24533 msgstr ""
24534
24535 #. type: textblock
24536 #: ../resize/virt-resize.pod:551
24537 msgid ""
24538 "The amount by which the overall disk must be shrunk (after carrying out all "
24539 "other operations requested by the user) is called the \"deficit\".  For "
24540 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24541 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24542 "would give an error unless the user specified a partition to shrink and that "
24543 "partition had more than a gigabyte of free space."
24544 msgstr ""
24545
24546 #. type: =head1
24547 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:195
24548 msgid "MACHINE READABLE OUTPUT"
24549 msgstr ""
24550
24551 #. type: textblock
24552 #: ../resize/virt-resize.pod:571
24553 msgid ""
24554 "The I<--machine-readable> option can be used to make the output more machine "
24555 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24556 "etc."
24557 msgstr ""
24558
24559 #. type: textblock
24560 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
24561 msgid "There are two ways to use this option."
24562 msgstr ""
24563
24564 #. type: textblock
24565 #: ../resize/virt-resize.pod:577
24566 msgid ""
24567 "Firstly use the option on its own to query the capabilities of the "
24568 "virt-resize binary.  Typical output looks like this:"
24569 msgstr ""
24570
24571 #. type: verbatim
24572 #: ../resize/virt-resize.pod:580
24573 #, no-wrap
24574 msgid ""
24575 " $ virt-resize --machine-readable\n"
24576 " virt-resize\n"
24577 " ntfsresize-force\n"
24578 " 32bitok\n"
24579 " ntfs\n"
24580 " btrfs\n"
24581 "\n"
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:211
24586 msgid ""
24587 "A list of features is printed, one per line, and the program exits with "
24588 "status 0."
24589 msgstr ""
24590
24591 #. type: textblock
24592 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:214
24593 msgid ""
24594 "Secondly use the option in conjunction with other options to make the "
24595 "regular program output more machine friendly."
24596 msgstr ""
24597
24598 #. type: textblock
24599 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
24600 msgid "At the moment this means:"
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
24605 msgid ""
24606 "Progress bar messages can be parsed from stdout by looking for this regular "
24607 "expression:"
24608 msgstr ""
24609
24610 #. type: verbatim
24611 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:226
24612 #, no-wrap
24613 msgid ""
24614 " ^[0-9]+/[0-9]+$\n"
24615 "\n"
24616 msgstr ""
24617
24618 #. type: textblock
24619 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:230
24620 msgid ""
24621 "The calling program should treat messages sent to stdout (except for "
24622 "progress bar messages) as status messages.  They can be logged and/or "
24623 "displayed to the user."
24624 msgstr ""
24625
24626 #. type: textblock
24627 #: ../resize/virt-resize.pod:612
24628 msgid ""
24629 "The calling program should treat messages sent to stderr as error messages.  "
24630 "In addition, virt-resize exits with a non-zero status code if there was a "
24631 "fatal error."
24632 msgstr ""
24633
24634 #. type: textblock
24635 #: ../resize/virt-resize.pod:618
24636 msgid ""
24637 "Versions of the program prior to 1.13.9 did not support the "
24638 "I<--machine-readable> option and will return an error."
24639 msgstr ""
24640
24641 #. type: =head2
24642 #: ../resize/virt-resize.pod:623
24643 msgid "\"Partition 1 does not end on cylinder boundary.\""
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../resize/virt-resize.pod:625
24648 msgid ""
24649 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24650 "I<--alignment> parameter).  Usually this means the partitions will not be "
24651 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24652 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24653 "drives.  Alignment of partitions to cylinders is not required by any modern "
24654 "operating system."
24655 msgstr ""
24656
24657 #. type: =head2
24658 #: ../resize/virt-resize.pod:632
24659 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24660 msgstr ""
24661
24662 #. type: textblock
24663 #: ../resize/virt-resize.pod:634
24664 msgid ""
24665 "In Windows Vista and later versions, Microsoft switched to using a separate "
24666 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24667 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24668 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24669 "the second partition (ie. C: drive)  should work."
24670 msgstr ""
24671
24672 #. type: textblock
24673 #: ../resize/virt-resize.pod:641
24674 msgid ""
24675 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24676 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24677 "it find errors) is nothing to worry about."
24678 msgstr ""
24679
24680 #. type: =head2
24681 #: ../resize/virt-resize.pod:645
24682 msgid "GUEST BOOT STUCK AT \"GRUB\""
24683 msgstr ""
24684
24685 #. type: textblock
24686 #: ../resize/virt-resize.pod:647
24687 msgid ""
24688 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24689 "printing C<GRUB> on the console, try reinstalling grub."
24690 msgstr ""
24691
24692 #. type: verbatim
24693 #: ../resize/virt-resize.pod:650
24694 #, no-wrap
24695 msgid ""
24696 " guestfish -i -a newdisk\n"
24697 " ><fs> cat /boot/grub/device.map\n"
24698 " # check the contents of this file are sensible or\n"
24699 " # edit the file if necessary\n"
24700 " ><fs> grub-install / /dev/vda\n"
24701 " ><fs> exit\n"
24702 "\n"
24703 msgstr ""
24704
24705 #. type: textblock
24706 #: ../resize/virt-resize.pod:657
24707 msgid ""
24708 "For more flexible guest reconfiguration, including if you need to specify "
24709 "other parameters to grub-install, use L<virt-rescue(1)>."
24710 msgstr ""
24711
24712 #. type: =head1
24713 #: ../resize/virt-resize.pod:660
24714 msgid "ALTERNATIVE TOOLS"
24715 msgstr ""
24716
24717 #. type: textblock
24718 #: ../resize/virt-resize.pod:662
24719 msgid ""
24720 "There are several proprietary tools for resizing partitions.  We won't "
24721 "mention any here."
24722 msgstr ""
24723
24724 #. type: textblock
24725 #: ../resize/virt-resize.pod:665
24726 msgid ""
24727 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24728 "operations on disk images.  They can resize and move partitions, but I don't "
24729 "think they can do anything with the contents, and they certainly don't "
24730 "understand LVM."
24731 msgstr ""
24732
24733 #. type: textblock
24734 #: ../resize/virt-resize.pod:670
24735 msgid ""
24736 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24737 "but at a much lower level.  You will probably end up hand-calculating sector "
24738 "offsets, which is something that virt-resize was designed to avoid.  If you "
24739 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24740 "I<--debug> flag."
24741 msgstr ""
24742
24743 #. type: textblock
24744 #: ../resize/virt-resize.pod:690
24745 msgid ""
24746 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24747 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24748 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24749 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
24750 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24751 msgstr ""
24752
24753 #. type: textblock
24754 #: ../ruby/examples/guestfs-ruby.pod:5
24755 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24756 msgstr ""
24757
24758 #. type: verbatim
24759 #: ../ruby/examples/guestfs-ruby.pod:9
24760 #, no-wrap
24761 msgid ""
24762 " require 'guestfs'\n"
24763 " g = Guestfs::Guestfs.new()\n"
24764 " g.add_drive_opts(\"disk.img\",\n"
24765 "                  :readonly => 1, :format => \"raw\")\n"
24766 " g.launch()\n"
24767 "\n"
24768 msgstr ""
24769
24770 #. type: textblock
24771 #: ../ruby/examples/guestfs-ruby.pod:17
24772 msgid ""
24773 "This manual page documents how to call libguestfs from the Ruby programming "
24774 "language.  This page just documents the differences from the C API and gives "
24775 "some examples.  If you are not familiar with using libguestfs, you also need "
24776 "to read L<guestfs(3)>."
24777 msgstr ""
24778
24779 #. type: textblock
24780 #: ../ruby/examples/guestfs-ruby.pod:24
24781 msgid ""
24782 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24783 "This has a single parameter which is the error message (a string)."
24784 msgstr ""
24785
24786 #. type: textblock
24787 #: ../ruby/examples/guestfs-ruby.pod:38
24788 msgid ""
24789 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
24790 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
24791 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24792 msgstr ""
24793
24794 #. type: textblock
24795 #: ../sparsify/virt-sparsify.pod:5
24796 msgid "virt-sparsify - Make a virtual machine disk sparse"
24797 msgstr ""
24798
24799 #. type: verbatim
24800 #: ../sparsify/virt-sparsify.pod:9
24801 #, no-wrap
24802 msgid ""
24803 " virt-sparsify [--options] indisk outdisk\n"
24804 "\n"
24805 msgstr ""
24806
24807 #. type: textblock
24808 #: ../sparsify/virt-sparsify.pod:13
24809 msgid ""
24810 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24811 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24812 "the disk image can be converted back to free space on the host."
24813 msgstr ""
24814
24815 #. type: textblock
24816 #: ../sparsify/virt-sparsify.pod:18
24817 msgid ""
24818 "Virt-sparsify can locate and sparsify free space in most filesystems "
24819 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24820 msgstr ""
24821
24822 #. type: textblock
24823 #: ../sparsify/virt-sparsify.pod:21
24824 msgid ""
24825 "Virt-sparsify can also convert between some disk formats, for example "
24826 "converting a raw disk image to a thin-provisioned qcow2 image."
24827 msgstr ""
24828
24829 #. type: textblock
24830 #: ../sparsify/virt-sparsify.pod:24
24831 msgid ""
24832 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24833 "machines.  If a virtual machine has more than one attached disk, you must "
24834 "sparsify each one separately."
24835 msgstr ""
24836
24837 #. type: =head2
24838 #: ../sparsify/virt-sparsify.pod:28
24839 msgid "IMPORTANT LIMITATIONS"
24840 msgstr ""
24841
24842 #. type: textblock
24843 #: ../sparsify/virt-sparsify.pod:34
24844 msgid ""
24845 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24846 "image to a destination image, leaving the source unchanged.  I<Check that "
24847 "the sparsification was successful before deleting the source image>."
24848 msgstr ""
24849
24850 #. type: textblock
24851 #: ../sparsify/virt-sparsify.pod:41
24852 msgid "The virtual machine I<must be shut down> before using this tool."
24853 msgstr ""
24854
24855 #. type: textblock
24856 #: ../sparsify/virt-sparsify.pod:45
24857 msgid ""
24858 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24859 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24860 "usually much less space is required."
24861 msgstr ""
24862
24863 #. type: textblock
24864 #: ../sparsify/virt-sparsify.pod:51
24865 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24866 msgstr ""
24867
24868 #. type: textblock
24869 #: ../sparsify/virt-sparsify.pod:56
24870 msgid "Virt-sparsify cannot handle encrypted disks."
24871 msgstr ""
24872
24873 #. type: textblock
24874 #: ../sparsify/virt-sparsify.pod:60
24875 msgid ""
24876 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24877 "this space is often used for critical items like bootloaders so it's not "
24878 "really unused."
24879 msgstr ""
24880
24881 #. type: textblock
24882 #: ../sparsify/virt-sparsify.pod:66
24883 msgid ""
24884 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24885 "to do this unless we can be sure there is no hibernation data, so at the "
24886 "moment swap partitions are ignored."
24887 msgstr ""
24888
24889 #. type: textblock
24890 #: ../sparsify/virt-sparsify.pod:72
24891 msgid ""
24892 "You may also want to read the manual pages for the associated tools "
24893 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
24894 msgstr ""
24895
24896 #. type: textblock
24897 #: ../sparsify/virt-sparsify.pod:77
24898 msgid "Typical usage is:"
24899 msgstr ""
24900
24901 #. type: verbatim
24902 #: ../sparsify/virt-sparsify.pod:79
24903 #, no-wrap
24904 msgid ""
24905 " virt-sparsify indisk outdisk\n"
24906 "\n"
24907 msgstr ""
24908
24909 #. type: textblock
24910 #: ../sparsify/virt-sparsify.pod:81
24911 msgid ""
24912 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24913 "is created, or overwritten if it already exists.  The format of the input "
24914 "disk is detected (eg. qcow2) and the same format is used for the output "
24915 "disk."
24916 msgstr ""
24917
24918 #. type: textblock
24919 #: ../sparsify/virt-sparsify.pod:86
24920 msgid "To convert between formats, use the I<--convert> option:"
24921 msgstr ""
24922
24923 #. type: verbatim
24924 #: ../sparsify/virt-sparsify.pod:88
24925 #, no-wrap
24926 msgid ""
24927 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24928 "\n"
24929 msgstr ""
24930
24931 #. type: textblock
24932 #: ../sparsify/virt-sparsify.pod:90
24933 msgid ""
24934 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24935 "can find within the source disk image.  You can get it to ignore (don't zero "
24936 "free space on) certain filesystems by doing:"
24937 msgstr ""
24938
24939 #. type: verbatim
24940 #: ../sparsify/virt-sparsify.pod:94
24941 #, no-wrap
24942 msgid ""
24943 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24944 "\n"
24945 msgstr ""
24946
24947 #. type: textblock
24948 #: ../sparsify/virt-sparsify.pod:96
24949 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24950 msgstr ""
24951
24952 #. type: =item
24953 #: ../sparsify/virt-sparsify.pod:107
24954 msgid "B<--compress>"
24955 msgstr ""
24956
24957 #. type: textblock
24958 #: ../sparsify/virt-sparsify.pod:109
24959 msgid ""
24960 "Compress the output file.  This I<only> works if the output format is "
24961 "C<qcow2>."
24962 msgstr ""
24963
24964 #. type: =item
24965 #: ../sparsify/virt-sparsify.pod:112
24966 msgid "B<--convert> raw"
24967 msgstr ""
24968
24969 #. type: =item
24970 #: ../sparsify/virt-sparsify.pod:114
24971 msgid "B<--convert> qcow2"
24972 msgstr ""
24973
24974 #. type: =item
24975 #: ../sparsify/virt-sparsify.pod:116
24976 msgid "B<--convert> [other formats]"
24977 msgstr ""
24978
24979 #. type: textblock
24980 #: ../sparsify/virt-sparsify.pod:118
24981 msgid ""
24982 "Use C<output-format> as the format for the destination image.  If this is "
24983 "not specified, then the input format is used."
24984 msgstr ""
24985
24986 #. type: textblock
24987 #: ../sparsify/virt-sparsify.pod:121
24988 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
24989 msgstr ""
24990
24991 #. type: textblock
24992 #: ../sparsify/virt-sparsify.pod:123
24993 msgid ""
24994 "You can also use any format supported by the L<qemu-img(1)> program, "
24995 "eg. C<vmdk>, but support for other formats is reliant on qemu."
24996 msgstr ""
24997
24998 #. type: textblock
24999 #: ../sparsify/virt-sparsify.pod:126
25000 msgid ""
25001 "Specifying the I<--convert> option is usually a good idea, because then "
25002 "virt-sparsify doesn't need to try to guess the input format."
25003 msgstr ""
25004
25005 #. type: textblock
25006 #: ../sparsify/virt-sparsify.pod:129
25007 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
25008 msgstr ""
25009
25010 #. type: =item
25011 #: ../sparsify/virt-sparsify.pod:133
25012 msgid "B<--format> qcow2"
25013 msgstr ""
25014
25015 #. type: =item
25016 #: ../sparsify/virt-sparsify.pod:141
25017 msgid "B<--ignore> filesystem"
25018 msgstr ""
25019
25020 #. type: =item
25021 #: ../sparsify/virt-sparsify.pod:143
25022 msgid "B<--ignore> volgroup"
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../sparsify/virt-sparsify.pod:145
25027 msgid ""
25028 "Ignore the named filesystem.  Free space on the filesystem will not be "
25029 "zeroed, but existing blocks of zeroes will still be sparsified."
25030 msgstr ""
25031
25032 #. type: textblock
25033 #: ../sparsify/virt-sparsify.pod:148
25034 msgid ""
25035 "In the second form, this ignores the named volume group.  Use the volume "
25036 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25037 msgstr ""
25038
25039 #. type: =item
25040 #: ../sparsify/virt-sparsify.pod:159
25041 msgid "B<-o> option[,option,...]"
25042 msgstr ""
25043
25044 #. type: textblock
25045 #: ../sparsify/virt-sparsify.pod:161
25046 msgid ""
25047 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
25048 "format.  Options available depend on the output format (see I<--convert>) "
25049 "and the installed version of the qemu-img program."
25050 msgstr ""
25051
25052 #. type: textblock
25053 #: ../sparsify/virt-sparsify.pod:165
25054 msgid ""
25055 "You should use I<-o> at most once.  To pass multiple options, separate them "
25056 "with commas, eg:"
25057 msgstr ""
25058
25059 #. type: verbatim
25060 #: ../sparsify/virt-sparsify.pod:168
25061 #, no-wrap
25062 msgid ""
25063 " virt-sparsify --convert qcow2 \\\n"
25064 "   -o cluster_size=512,preallocation=metadata ...\n"
25065 "\n"
25066 msgstr ""
25067
25068 #. type: textblock
25069 #: ../sparsify/virt-sparsify.pod:175
25070 msgid "This disables progress bars and other unnecessary output."
25071 msgstr ""
25072
25073 #. type: textblock
25074 #: ../sparsify/virt-sparsify.pod:197
25075 msgid ""
25076 "The I<--machine-readable> option can be used to make the output more machine "
25077 "friendly, which is useful when calling virt-sparsify from other programs, "
25078 "GUIs etc."
25079 msgstr ""
25080
25081 #. type: textblock
25082 #: ../sparsify/virt-sparsify.pod:203
25083 msgid ""
25084 "Firstly use the option on its own to query the capabilities of the "
25085 "virt-sparsify binary.  Typical output looks like this:"
25086 msgstr ""
25087
25088 #. type: verbatim
25089 #: ../sparsify/virt-sparsify.pod:206
25090 #, no-wrap
25091 msgid ""
25092 " $ virt-sparsify --machine-readable\n"
25093 " virt-sparsify\n"
25094 " ntfs\n"
25095 " btrfs\n"
25096 "\n"
25097 msgstr ""
25098
25099 #. type: textblock
25100 #: ../sparsify/virt-sparsify.pod:236
25101 msgid ""
25102 "The calling program should treat messages sent to stderr as error messages.  "
25103 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25104 "fatal error."
25105 msgstr ""
25106
25107 #. type: textblock
25108 #: ../sparsify/virt-sparsify.pod:242
25109 msgid ""
25110 "All versions of virt-sparsify have supported the I<--machine-readable> "
25111 "option."
25112 msgstr ""
25113
25114 #. type: textblock
25115 #: ../sparsify/virt-sparsify.pod:256
25116 msgid ""
25117 "Location of the temporary directory used for the potentially large temporary "
25118 "overlay file."
25119 msgstr ""
25120
25121 #. type: textblock
25122 #: ../sparsify/virt-sparsify.pod:259
25123 msgid ""
25124 "You should ensure there is enough free space in the worst case for a full "
25125 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25126 "to another directory that has enough space."
25127 msgstr ""
25128
25129 #. type: textblock
25130 #: ../sparsify/virt-sparsify.pod:263
25131 msgid "This defaults to C</tmp>."
25132 msgstr ""
25133
25134 #. type: textblock
25135 #: ../sparsify/virt-sparsify.pod:267
25136 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25137 msgstr ""
25138
25139 #. type: textblock
25140 #: ../sparsify/virt-sparsify.pod:271
25141 msgid ""
25142 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25143 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
25144 "L<qemu-img(1)>, L<http://libguestfs.org/>."
25145 msgstr ""
25146
25147 #. type: =head2
25148 #: ../src/guestfs-actions.pod:1
25149 msgid "guestfs_add_cdrom"
25150 msgstr ""
25151
25152 #. type: verbatim
25153 #: ../src/guestfs-actions.pod:3
25154 #, no-wrap
25155 msgid ""
25156 " int\n"
25157 " guestfs_add_cdrom (guestfs_h *g,\n"
25158 "                    const char *filename);\n"
25159 "\n"
25160 msgstr ""
25161
25162 #. type: textblock
25163 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
25164 msgid ""
25165 "I<This function is deprecated.> In new code, use the "
25166 "L</guestfs_add_drive_opts> call instead."
25167 msgstr ""
25168
25169 #. type: textblock
25170 #: ../src/guestfs-actions.pod:24
25171 msgid ""
25172 "This call checks for the existence of C<filename>.  This stops you from "
25173 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25174 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25175 "instead."
25176 msgstr ""
25177
25178 #. type: textblock
25179 #: ../src/guestfs-actions.pod:31
25180 msgid ""
25181 "If you just want to add an ISO file (often you use this as an efficient way "
25182 "to transfer large files into the guest), then you should probably use "
25183 "C<guestfs_add_drive_ro> instead."
25184 msgstr ""
25185
25186 #. type: textblock
25187 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291 ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333 ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360 ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500 ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559 ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705 ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851 ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879 ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099 ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286 ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372 ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721 ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777 ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935 ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4348 ../src/guestfs-actions.pod:4361 ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4426 ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575 ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4648 ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4728 ../src/guestfs-actions.pod:4744 ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5051 ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5115 ../src/guestfs-actions.pod:5133 ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5181 ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5317 ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440 ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:5471 ../src/guestfs-actions.pod:5488 ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5589 ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5648 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5781 ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5871 ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5916 ../src/guestfs-actions.pod:5934 ../src/guestfs-actions.pod:6071 ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6220 ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6303 ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6330 ../src/guestfs-actions.pod:6619 ../src/guestfs-actions.pod:6638 ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6671 ../src/guestfs-actions.pod:6683 ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6843 ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6884 ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6924 ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7090 ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7124 ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7187 ../src/guestfs-actions.pod:7214 ../src/guestfs-actions.pod:7244 ../src/guestfs-actions.pod:7356 ../src/guestfs-actions.pod:7477 ../src/guestfs-actions.pod:7489 ../src/guestfs-actions.pod:7502 ../src/guestfs-actions.pod:7515 ../src/guestfs-actions.pod:7537 ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:7683 ../src/guestfs-actions.pod:7699 ../src/guestfs-actions.pod:7716 ../src/guestfs-actions.pod:7729 ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7849 ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7921 ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:7975 ../src/guestfs-actions.pod:7993 ../src/guestfs-actions.pod:8027 ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8179 ../src/guestfs-actions.pod:8194 ../src/guestfs-actions.pod:8208 ../src/guestfs-actions.pod:8263 ../src/guestfs-actions.pod:8276 ../src/guestfs-actions.pod:8321 ../src/guestfs-actions.pod:8361 ../src/guestfs-actions.pod:8417 ../src/guestfs-actions.pod:8437 ../src/guestfs-actions.pod:8470 ../src/guestfs-actions.pod:8534 ../src/guestfs-actions.pod:8557 ../src/guestfs-actions.pod:8583
25188 msgid "This function returns 0 on success or -1 on error."
25189 msgstr ""
25190
25191 #. type: textblock
25192 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:6845 ../src/guestfs-actions.pod:6962 ../src/guestfs-actions.pod:7111 ../src/guestfs-actions.pod:7593 ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:8363
25193 msgid "(Added in 0.3)"
25194 msgstr ""
25195
25196 #. type: =head2
25197 #: ../src/guestfs-actions.pod:41
25198 msgid "guestfs_add_domain"
25199 msgstr ""
25200
25201 #. type: verbatim
25202 #: ../src/guestfs-actions.pod:43
25203 #, no-wrap
25204 msgid ""
25205 " int\n"
25206 " guestfs_add_domain (guestfs_h *g,\n"
25207 "                     const char *dom,\n"
25208 "                     ...);\n"
25209 "\n"
25210 msgstr ""
25211
25212 #. type: textblock
25213 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198 ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288 ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5575 ../src/guestfs-actions.pod:5792 ../src/guestfs-actions.pod:7760
25214 msgid ""
25215 "You may supply a list of optional arguments to this call.  Use zero or more "
25216 "of the following pairs of parameters, and terminate the list with C<-1> on "
25217 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25218 msgstr ""
25219
25220 #. type: verbatim
25221 #: ../src/guestfs-actions.pod:53
25222 #, no-wrap
25223 msgid ""
25224 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25225 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25226 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25227 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25228 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25229 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25230 "\n"
25231 msgstr ""
25232
25233 #. type: textblock
25234 #: ../src/guestfs-actions.pod:60
25235 msgid ""
25236 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25237 "It works by connecting to libvirt, requesting the domain and domain XML from "
25238 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25239 "one."
25240 msgstr ""
25241
25242 #. type: textblock
25243 #: ../src/guestfs-actions.pod:141
25244 msgid ""
25245 "The other optional parameters are passed directly through to "
25246 "C<guestfs_add_drive_opts>."
25247 msgstr ""
25248
25249 #. type: textblock
25250 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403 ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797 ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356 ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518 ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584 ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:8374 ../src/guestfs-actions.pod:8387 ../src/guestfs-actions.pod:8400
25251 msgid "On error this function returns -1."
25252 msgstr ""
25253
25254 #. type: textblock
25255 #: ../src/guestfs-actions.pod:146
25256 msgid "(Added in 1.7.4)"
25257 msgstr ""
25258
25259 #. type: =head2
25260 #: ../src/guestfs-actions.pod:148
25261 msgid "guestfs_add_domain_va"
25262 msgstr ""
25263
25264 #. type: verbatim
25265 #: ../src/guestfs-actions.pod:150
25266 #, no-wrap
25267 msgid ""
25268 " int\n"
25269 " guestfs_add_domain_va (guestfs_h *g,\n"
25270 "                        const char *dom,\n"
25271 "                        va_list args);\n"
25272 "\n"
25273 msgstr ""
25274
25275 #. type: textblock
25276 #: ../src/guestfs-actions.pod:155
25277 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25278 msgstr ""
25279
25280 #. type: textblock
25281 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168 ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255 ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403 ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456 ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384 ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5343 ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5852 ../src/guestfs-actions.pod:7862 ../src/guestfs-actions.pod:7873
25282 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25283 msgstr ""
25284
25285 #. type: =head2
25286 #: ../src/guestfs-actions.pod:159
25287 msgid "guestfs_add_domain_argv"
25288 msgstr ""
25289
25290 #. type: verbatim
25291 #: ../src/guestfs-actions.pod:161
25292 #, no-wrap
25293 msgid ""
25294 " int\n"
25295 " guestfs_add_domain_argv (guestfs_h *g,\n"
25296 "                          const char *dom,\n"
25297 "                          const struct guestfs_add_domain_argv *optargs);\n"
25298 "\n"
25299 msgstr ""
25300
25301 #. type: textblock
25302 #: ../src/guestfs-actions.pod:166
25303 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25304 msgstr ""
25305
25306 #. type: =head2
25307 #: ../src/guestfs-actions.pod:170
25308 msgid "guestfs_add_drive"
25309 msgstr ""
25310
25311 #. type: verbatim
25312 #: ../src/guestfs-actions.pod:172
25313 #, no-wrap
25314 msgid ""
25315 " int\n"
25316 " guestfs_add_drive (guestfs_h *g,\n"
25317 "                    const char *filename);\n"
25318 "\n"
25319 msgstr ""
25320
25321 #. type: textblock
25322 #: ../src/guestfs-actions.pod:176
25323 msgid ""
25324 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25325 "optional parameters, so the disk is added writable, with the format being "
25326 "detected automatically."
25327 msgstr ""
25328
25329 #. type: textblock
25330 #: ../src/guestfs-actions.pod:180
25331 msgid ""
25332 "Automatic detection of the format opens you up to a potential security hole "
25333 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25334 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25335 "you should think about replacing calls to this function with calls to "
25336 "C<guestfs_add_drive_opts>, and specifying the format."
25337 msgstr ""
25338
25339 #. type: =head2
25340 #: ../src/guestfs-actions.pod:191
25341 msgid "guestfs_add_drive_opts"
25342 msgstr ""
25343
25344 #. type: verbatim
25345 #: ../src/guestfs-actions.pod:193
25346 #, no-wrap
25347 msgid ""
25348 " int\n"
25349 " guestfs_add_drive_opts (guestfs_h *g,\n"
25350 "                         const char *filename,\n"
25351 "                         ...);\n"
25352 "\n"
25353 msgstr ""
25354
25355 #. type: verbatim
25356 #: ../src/guestfs-actions.pod:203
25357 #, no-wrap
25358 msgid ""
25359 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25360 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25361 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25362 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25363 "\n"
25364 msgstr ""
25365
25366 #. type: textblock
25367 #: ../src/guestfs-actions.pod:233
25368 msgid ""
25369 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25370 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25371 "Possible formats include C<raw> and C<qcow2>."
25372 msgstr ""
25373
25374 #. type: textblock
25375 #: ../src/guestfs-actions.pod:244
25376 msgid ""
25377 "This rarely-used option lets you emulate the behaviour of the deprecated "
25378 "C<guestfs_add_drive_with_if> call (q.v.)"
25379 msgstr ""
25380
25381 #. type: textblock
25382 #: ../src/guestfs-actions.pod:256
25383 msgid "(Added in 1.5.23)"
25384 msgstr ""
25385
25386 #. type: =head2
25387 #: ../src/guestfs-actions.pod:258
25388 msgid "guestfs_add_drive_opts_va"
25389 msgstr ""
25390
25391 #. type: verbatim
25392 #: ../src/guestfs-actions.pod:260
25393 #, no-wrap
25394 msgid ""
25395 " int\n"
25396 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25397 "                            const char *filename,\n"
25398 "                            va_list args);\n"
25399 "\n"
25400 msgstr ""
25401
25402 #. type: textblock
25403 #: ../src/guestfs-actions.pod:265
25404 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25405 msgstr ""
25406
25407 #. type: =head2
25408 #: ../src/guestfs-actions.pod:269
25409 msgid "guestfs_add_drive_opts_argv"
25410 msgstr ""
25411
25412 #. type: verbatim
25413 #: ../src/guestfs-actions.pod:271
25414 #, no-wrap
25415 msgid ""
25416 " int\n"
25417 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25418 "                              const char *filename,\n"
25419 "                              const struct guestfs_add_drive_opts_argv "
25420 "*optargs);\n"
25421 "\n"
25422 msgstr ""
25423
25424 #. type: textblock
25425 #: ../src/guestfs-actions.pod:276
25426 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25427 msgstr ""
25428
25429 #. type: =head2
25430 #: ../src/guestfs-actions.pod:280
25431 msgid "guestfs_add_drive_ro"
25432 msgstr ""
25433
25434 #. type: verbatim
25435 #: ../src/guestfs-actions.pod:282
25436 #, no-wrap
25437 msgid ""
25438 " int\n"
25439 " guestfs_add_drive_ro (guestfs_h *g,\n"
25440 "                       const char *filename);\n"
25441 "\n"
25442 msgstr ""
25443
25444 #. type: textblock
25445 #: ../src/guestfs-actions.pod:286
25446 msgid ""
25447 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25448 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25449 "disk is added read-only, with the format being detected automatically."
25450 msgstr ""
25451
25452 #. type: textblock
25453 #: ../src/guestfs-actions.pod:293
25454 msgid "(Added in 1.0.38)"
25455 msgstr ""
25456
25457 #. type: =head2
25458 #: ../src/guestfs-actions.pod:295
25459 msgid "guestfs_add_drive_ro_with_if"
25460 msgstr ""
25461
25462 #. type: verbatim
25463 #: ../src/guestfs-actions.pod:297
25464 #, no-wrap
25465 msgid ""
25466 " int\n"
25467 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25468 "                               const char *filename,\n"
25469 "                               const char *iface);\n"
25470 "\n"
25471 msgstr ""
25472
25473 #. type: textblock
25474 #: ../src/guestfs-actions.pod:309
25475 msgid ""
25476 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25477 "QEMU interface emulation to use at run time."
25478 msgstr ""
25479
25480 #. type: textblock
25481 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2881
25482 msgid "(Added in 1.0.84)"
25483 msgstr ""
25484
25485 #. type: =head2
25486 #: ../src/guestfs-actions.pod:316
25487 msgid "guestfs_add_drive_with_if"
25488 msgstr ""
25489
25490 #. type: verbatim
25491 #: ../src/guestfs-actions.pod:318
25492 #, no-wrap
25493 msgid ""
25494 " int\n"
25495 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25496 "                            const char *filename,\n"
25497 "                            const char *iface);\n"
25498 "\n"
25499 msgstr ""
25500
25501 #. type: textblock
25502 #: ../src/guestfs-actions.pod:330
25503 msgid ""
25504 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25505 "QEMU interface emulation to use at run time."
25506 msgstr ""
25507
25508 #. type: =head2
25509 #: ../src/guestfs-actions.pod:337
25510 msgid "guestfs_aug_clear"
25511 msgstr ""
25512
25513 #. type: verbatim
25514 #: ../src/guestfs-actions.pod:339
25515 #, no-wrap
25516 msgid ""
25517 " int\n"
25518 " guestfs_aug_clear (guestfs_h *g,\n"
25519 "                    const char *augpath);\n"
25520 "\n"
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25525 msgid "(Added in 1.3.4)"
25526 msgstr ""
25527
25528 #. type: =head2
25529 #: ../src/guestfs-actions.pod:350
25530 msgid "guestfs_aug_close"
25531 msgstr ""
25532
25533 #. type: verbatim
25534 #: ../src/guestfs-actions.pod:352
25535 #, no-wrap
25536 msgid ""
25537 " int\n"
25538 " guestfs_aug_close (guestfs_h *g);\n"
25539 "\n"
25540 msgstr ""
25541
25542 #. type: textblock
25543 #: ../src/guestfs-actions.pod:355
25544 msgid ""
25545 "Close the current Augeas handle and free up any resources used by it.  After "
25546 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25547 "any other Augeas functions."
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419 ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502 ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547 ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575 ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607 ../src/guestfs-actions.pod:6477
25552 msgid "(Added in 0.7)"
25553 msgstr ""
25554
25555 #. type: =head2
25556 #: ../src/guestfs-actions.pod:364
25557 msgid "guestfs_aug_defnode"
25558 msgstr ""
25559
25560 #. type: verbatim
25561 #: ../src/guestfs-actions.pod:366
25562 #, no-wrap
25563 msgid ""
25564 " struct guestfs_int_bool *\n"
25565 " guestfs_aug_defnode (guestfs_h *g,\n"
25566 "                      const char *name,\n"
25567 "                      const char *expr,\n"
25568 "                      const char *val);\n"
25569 "\n"
25570 msgstr ""
25571
25572 #. type: textblock
25573 #: ../src/guestfs-actions.pod:375
25574 msgid ""
25575 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25576 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25577 "containing that single node."
25578 msgstr ""
25579
25580 #. type: textblock
25581 #: ../src/guestfs-actions.pod:383
25582 msgid ""
25583 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25584 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25585 msgstr ""
25586
25587 #. type: =head2
25588 #: ../src/guestfs-actions.pod:389
25589 msgid "guestfs_aug_defvar"
25590 msgstr ""
25591
25592 #. type: verbatim
25593 #: ../src/guestfs-actions.pod:391
25594 #, no-wrap
25595 msgid ""
25596 " int\n"
25597 " guestfs_aug_defvar (guestfs_h *g,\n"
25598 "                     const char *name,\n"
25599 "                     const char *expr);\n"
25600 "\n"
25601 msgstr ""
25602
25603 #. type: =head2
25604 #: ../src/guestfs-actions.pod:407
25605 msgid "guestfs_aug_get"
25606 msgstr ""
25607
25608 #. type: verbatim
25609 #: ../src/guestfs-actions.pod:409
25610 #, no-wrap
25611 msgid ""
25612 " char *\n"
25613 " guestfs_aug_get (guestfs_h *g,\n"
25614 "                  const char *augpath);\n"
25615 "\n"
25616 msgstr ""
25617
25618 #. type: textblock
25619 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980 ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177 ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683 ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836 ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136 ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050 ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3680 ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4667 ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:5093 ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:6187 ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:7262 ../src/guestfs-actions.pod:7278 ../src/guestfs-actions.pod:7302 ../src/guestfs-actions.pod:7326 ../src/guestfs-actions.pod:8122 ../src/guestfs-actions.pod:8141 ../src/guestfs-actions.pod:8159 ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8647
25620 msgid ""
25621 "This function returns a string, or NULL on error.  I<The caller must free "
25622 "the returned string after use>."
25623 msgstr ""
25624
25625 #. type: =head2
25626 #: ../src/guestfs-actions.pod:421
25627 msgid "guestfs_aug_init"
25628 msgstr ""
25629
25630 #. type: verbatim
25631 #: ../src/guestfs-actions.pod:423
25632 #, no-wrap
25633 msgid ""
25634 " int\n"
25635 " guestfs_aug_init (guestfs_h *g,\n"
25636 "                   const char *root,\n"
25637 "                   int flags);\n"
25638 "\n"
25639 msgstr ""
25640
25641 #. type: textblock
25642 #: ../src/guestfs-actions.pod:432
25643 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25644 msgstr ""
25645
25646 #. type: textblock
25647 #: ../src/guestfs-actions.pod:457
25648 msgid ""
25649 "This option is only useful when debugging Augeas lenses.  Use of this option "
25650 "may require additional memory for the libguestfs appliance.  You may need to "
25651 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25652 "C<guestfs_set_memsize>."
25653 msgstr ""
25654
25655 #. type: textblock
25656 #: ../src/guestfs-actions.pod:472
25657 msgid "Do not load the tree in C<guestfs_aug_init>."
25658 msgstr ""
25659
25660 #. type: textblock
25661 #: ../src/guestfs-actions.pod:476
25662 msgid "To close the handle, you can call C<guestfs_aug_close>."
25663 msgstr ""
25664
25665 #. type: =head2
25666 #: ../src/guestfs-actions.pod:484
25667 msgid "guestfs_aug_insert"
25668 msgstr ""
25669
25670 #. type: verbatim
25671 #: ../src/guestfs-actions.pod:486
25672 #, no-wrap
25673 msgid ""
25674 " int\n"
25675 " guestfs_aug_insert (guestfs_h *g,\n"
25676 "                     const char *augpath,\n"
25677 "                     const char *label,\n"
25678 "                     int before);\n"
25679 "\n"
25680 msgstr ""
25681
25682 #. type: =head2
25683 #: ../src/guestfs-actions.pod:504
25684 msgid "guestfs_aug_load"
25685 msgstr ""
25686
25687 #. type: verbatim
25688 #: ../src/guestfs-actions.pod:506
25689 #, no-wrap
25690 msgid ""
25691 " int\n"
25692 " guestfs_aug_load (guestfs_h *g);\n"
25693 "\n"
25694 msgstr ""
25695
25696 #. type: =head2
25697 #: ../src/guestfs-actions.pod:518
25698 msgid "guestfs_aug_ls"
25699 msgstr ""
25700
25701 #. type: verbatim
25702 #: ../src/guestfs-actions.pod:520
25703 #, no-wrap
25704 msgid ""
25705 " char **\n"
25706 " guestfs_aug_ls (guestfs_h *g,\n"
25707 "                 const char *augpath);\n"
25708 "\n"
25709 msgstr ""
25710
25711 #. type: textblock
25712 #: ../src/guestfs-actions.pod:524
25713 msgid ""
25714 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25715 "sorting the resulting nodes into alphabetical order."
25716 msgstr ""
25717
25718 #. type: textblock
25719 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870 ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992 ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828 ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948 ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4806 ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6347 ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7403 ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:8226 ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8293 ../src/guestfs-actions.pod:8487 ../src/guestfs-actions.pod:8506 ../src/guestfs-actions.pod:8597 ../src/guestfs-actions.pod:8616 ../src/guestfs-actions.pod:8662 ../src/guestfs-actions.pod:8681
25720 msgid ""
25721 "This function returns a NULL-terminated array of strings (like "
25722 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
25723 "strings and the array after use>."
25724 msgstr ""
25725
25726 #. type: textblock
25727 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908 ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:3985 ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4697 ../src/guestfs-actions.pod:5033 ../src/guestfs-actions.pod:5066 ../src/guestfs-actions.pod:5229 ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6685 ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6711 ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7964 ../src/guestfs-actions.pod:7977 ../src/guestfs-actions.pod:8210 ../src/guestfs-actions.pod:8475
25728 msgid "(Added in 0.8)"
25729 msgstr ""
25730
25731 #. type: =head2
25732 #: ../src/guestfs-actions.pod:533
25733 msgid "guestfs_aug_match"
25734 msgstr ""
25735
25736 #. type: verbatim
25737 #: ../src/guestfs-actions.pod:535
25738 #, no-wrap
25739 msgid ""
25740 " char **\n"
25741 " guestfs_aug_match (guestfs_h *g,\n"
25742 "                    const char *augpath);\n"
25743 "\n"
25744 msgstr ""
25745
25746 #. type: =head2
25747 #: ../src/guestfs-actions.pod:549
25748 msgid "guestfs_aug_mv"
25749 msgstr ""
25750
25751 #. type: verbatim
25752 #: ../src/guestfs-actions.pod:551
25753 #, no-wrap
25754 msgid ""
25755 " int\n"
25756 " guestfs_aug_mv (guestfs_h *g,\n"
25757 "                 const char *src,\n"
25758 "                 const char *dest);\n"
25759 "\n"
25760 msgstr ""
25761
25762 #. type: =head2
25763 #: ../src/guestfs-actions.pod:563
25764 msgid "guestfs_aug_rm"
25765 msgstr ""
25766
25767 #. type: verbatim
25768 #: ../src/guestfs-actions.pod:565
25769 #, no-wrap
25770 msgid ""
25771 " int\n"
25772 " guestfs_aug_rm (guestfs_h *g,\n"
25773 "                 const char *augpath);\n"
25774 "\n"
25775 msgstr ""
25776
25777 #. type: =head2
25778 #: ../src/guestfs-actions.pod:577
25779 msgid "guestfs_aug_save"
25780 msgstr ""
25781
25782 #. type: verbatim
25783 #: ../src/guestfs-actions.pod:579
25784 #, no-wrap
25785 msgid ""
25786 " int\n"
25787 " guestfs_aug_save (guestfs_h *g);\n"
25788 "\n"
25789 msgstr ""
25790
25791 #. type: textblock
25792 #: ../src/guestfs-actions.pod:584
25793 msgid ""
25794 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25795 "are saved."
25796 msgstr ""
25797
25798 #. type: =head2
25799 #: ../src/guestfs-actions.pod:591
25800 msgid "guestfs_aug_set"
25801 msgstr ""
25802
25803 #. type: verbatim
25804 #: ../src/guestfs-actions.pod:593
25805 #, no-wrap
25806 msgid ""
25807 " int\n"
25808 " guestfs_aug_set (guestfs_h *g,\n"
25809 "                  const char *augpath,\n"
25810 "                  const char *val);\n"
25811 "\n"
25812 msgstr ""
25813
25814 #. type: textblock
25815 #: ../src/guestfs-actions.pod:600
25816 msgid ""
25817 "In the Augeas API, it is possible to clear a node by setting the value to "
25818 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25819 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25820 msgstr ""
25821
25822 #. type: =head2
25823 #: ../src/guestfs-actions.pod:609
25824 msgid "guestfs_available"
25825 msgstr ""
25826
25827 #. type: verbatim
25828 #: ../src/guestfs-actions.pod:611
25829 #, no-wrap
25830 msgid ""
25831 " int\n"
25832 " guestfs_available (guestfs_h *g,\n"
25833 "                    char *const *groups);\n"
25834 "\n"
25835 msgstr ""
25836
25837 #. type: textblock
25838 #: ../src/guestfs-actions.pod:619
25839 msgid ""
25840 "The libguestfs groups, and the functions that those groups correspond to, "
25841 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25842 "runtime by calling C<guestfs_available_all_groups>."
25843 msgstr ""
25844
25845 #. type: textblock
25846 #: ../src/guestfs-actions.pod:643
25847 msgid "You must call C<guestfs_launch> before calling this function."
25848 msgstr ""
25849
25850 #. type: textblock
25851 #: ../src/guestfs-actions.pod:665
25852 msgid ""
25853 "This call was added in version C<1.0.80>.  In previous versions of "
25854 "libguestfs all you could do would be to speculatively execute a command to "
25855 "find out if the daemon implemented it.  See also C<guestfs_version>."
25856 msgstr ""
25857
25858 #. type: textblock
25859 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25860 msgid "(Added in 1.0.80)"
25861 msgstr ""
25862
25863 #. type: =head2
25864 #: ../src/guestfs-actions.pod:676
25865 msgid "guestfs_available_all_groups"
25866 msgstr ""
25867
25868 #. type: verbatim
25869 #: ../src/guestfs-actions.pod:678
25870 #, no-wrap
25871 msgid ""
25872 " char **\n"
25873 " guestfs_available_all_groups (guestfs_h *g);\n"
25874 "\n"
25875 msgstr ""
25876
25877 #. type: textblock
25878 #: ../src/guestfs-actions.pod:681
25879 msgid ""
25880 "This command returns a list of all optional groups that this daemon knows "
25881 "about.  Note this returns both supported and unsupported groups.  To find "
25882 "out which ones the daemon can actually support you have to call "
25883 "C<guestfs_available> on each member of the returned list."
25884 msgstr ""
25885
25886 #. type: textblock
25887 #: ../src/guestfs-actions.pod:687
25888 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25889 msgstr ""
25890
25891 #. type: textblock
25892 #: ../src/guestfs-actions.pod:693
25893 msgid "(Added in 1.3.15)"
25894 msgstr ""
25895
25896 #. type: =head2
25897 #: ../src/guestfs-actions.pod:695
25898 msgid "guestfs_base64_in"
25899 msgstr ""
25900
25901 #. type: verbatim
25902 #: ../src/guestfs-actions.pod:697
25903 #, no-wrap
25904 msgid ""
25905 " int\n"
25906 " guestfs_base64_in (guestfs_h *g,\n"
25907 "                    const char *base64file,\n"
25908 "                    const char *filename);\n"
25909 "\n"
25910 msgstr ""
25911
25912 #. type: textblock
25913 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25914 msgid "(Added in 1.3.5)"
25915 msgstr ""
25916
25917 #. type: =head2
25918 #: ../src/guestfs-actions.pod:709
25919 msgid "guestfs_base64_out"
25920 msgstr ""
25921
25922 #. type: verbatim
25923 #: ../src/guestfs-actions.pod:711
25924 #, no-wrap
25925 msgid ""
25926 " int\n"
25927 " guestfs_base64_out (guestfs_h *g,\n"
25928 "                     const char *filename,\n"
25929 "                     const char *base64file);\n"
25930 "\n"
25931 msgstr ""
25932
25933 #. type: =head2
25934 #: ../src/guestfs-actions.pod:723
25935 msgid "guestfs_blockdev_flushbufs"
25936 msgstr ""
25937
25938 #. type: verbatim
25939 #: ../src/guestfs-actions.pod:725
25940 #, no-wrap
25941 msgid ""
25942 " int\n"
25943 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25944 "                             const char *device);\n"
25945 "\n"
25946 msgstr ""
25947
25948 #. type: textblock
25949 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753 ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853 ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
25950 msgid "(Added in 0.9.3)"
25951 msgstr ""
25952
25953 #. type: =head2
25954 #: ../src/guestfs-actions.pod:738
25955 msgid "guestfs_blockdev_getbsz"
25956 msgstr ""
25957
25958 #. type: verbatim
25959 #: ../src/guestfs-actions.pod:740
25960 #, no-wrap
25961 msgid ""
25962 " int\n"
25963 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25964 "                          const char *device);\n"
25965 "\n"
25966 msgstr ""
25967
25968 #. type: =head2
25969 #: ../src/guestfs-actions.pod:755
25970 msgid "guestfs_blockdev_getro"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../src/guestfs-actions.pod:757
25975 #, no-wrap
25976 msgid ""
25977 " int\n"
25978 " guestfs_blockdev_getro (guestfs_h *g,\n"
25979 "                         const char *device);\n"
25980 "\n"
25981 msgstr ""
25982
25983 #. type: textblock
25984 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595 ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3697 ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3731 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3936 ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:3967 ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:3997 ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4024 ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4054 ../src/guestfs-actions.pod:4067 ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:5950
25985 msgid "This function returns a C truth value on success or -1 on error."
25986 msgstr ""
25987
25988 #. type: =head2
25989 #: ../src/guestfs-actions.pod:770
25990 msgid "guestfs_blockdev_getsize64"
25991 msgstr ""
25992
25993 #. type: verbatim
25994 #: ../src/guestfs-actions.pod:772
25995 #, no-wrap
25996 msgid ""
25997 " int64_t\n"
25998 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25999 "                             const char *device);\n"
26000 "\n"
26001 msgstr ""
26002
26003 #. type: textblock
26004 #: ../src/guestfs-actions.pod:778
26005 msgid "See also C<guestfs_blockdev_getsz>."
26006 msgstr ""
26007
26008 #. type: =head2
26009 #: ../src/guestfs-actions.pod:786
26010 msgid "guestfs_blockdev_getss"
26011 msgstr ""
26012
26013 #. type: verbatim
26014 #: ../src/guestfs-actions.pod:788
26015 #, no-wrap
26016 msgid ""
26017 " int\n"
26018 " guestfs_blockdev_getss (guestfs_h *g,\n"
26019 "                         const char *device);\n"
26020 "\n"
26021 msgstr ""
26022
26023 #. type: textblock
26024 #: ../src/guestfs-actions.pod:795
26025 msgid ""
26026 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26027 "that)."
26028 msgstr ""
26029
26030 #. type: =head2
26031 #: ../src/guestfs-actions.pod:804
26032 msgid "guestfs_blockdev_getsz"
26033 msgstr ""
26034
26035 #. type: verbatim
26036 #: ../src/guestfs-actions.pod:806
26037 #, no-wrap
26038 msgid ""
26039 " int64_t\n"
26040 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26041 "                         const char *device);\n"
26042 "\n"
26043 msgstr ""
26044
26045 #. type: textblock
26046 #: ../src/guestfs-actions.pod:813
26047 msgid ""
26048 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26049 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26050 msgstr ""
26051
26052 #. type: =head2
26053 #: ../src/guestfs-actions.pod:823
26054 msgid "guestfs_blockdev_rereadpt"
26055 msgstr ""
26056
26057 #. type: verbatim
26058 #: ../src/guestfs-actions.pod:825
26059 #, no-wrap
26060 msgid ""
26061 " int\n"
26062 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26063 "                            const char *device);\n"
26064 "\n"
26065 msgstr ""
26066
26067 #. type: =head2
26068 #: ../src/guestfs-actions.pod:837
26069 msgid "guestfs_blockdev_setbsz"
26070 msgstr ""
26071
26072 #. type: verbatim
26073 #: ../src/guestfs-actions.pod:839
26074 #, no-wrap
26075 msgid ""
26076 " int\n"
26077 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26078 "                          const char *device,\n"
26079 "                          int blocksize);\n"
26080 "\n"
26081 msgstr ""
26082
26083 #. type: =head2
26084 #: ../src/guestfs-actions.pod:855
26085 msgid "guestfs_blockdev_setro"
26086 msgstr ""
26087
26088 #. type: verbatim
26089 #: ../src/guestfs-actions.pod:857
26090 #, no-wrap
26091 msgid ""
26092 " int\n"
26093 " guestfs_blockdev_setro (guestfs_h *g,\n"
26094 "                         const char *device);\n"
26095 "\n"
26096 msgstr ""
26097
26098 #. type: =head2
26099 #: ../src/guestfs-actions.pod:869
26100 msgid "guestfs_blockdev_setrw"
26101 msgstr ""
26102
26103 #. type: verbatim
26104 #: ../src/guestfs-actions.pod:871
26105 #, no-wrap
26106 msgid ""
26107 " int\n"
26108 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26109 "                         const char *device);\n"
26110 "\n"
26111 msgstr ""
26112
26113 #. type: =head2
26114 #: ../src/guestfs-actions.pod:883
26115 msgid "guestfs_btrfs_filesystem_resize"
26116 msgstr ""
26117
26118 #. type: verbatim
26119 #: ../src/guestfs-actions.pod:885
26120 #, no-wrap
26121 msgid ""
26122 " int\n"
26123 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26124 "                                  const char *mountpoint,\n"
26125 "                                  ...);\n"
26126 "\n"
26127 msgstr ""
26128
26129 #. type: verbatim
26130 #: ../src/guestfs-actions.pod:895
26131 #, no-wrap
26132 msgid ""
26133 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26134 "\n"
26135 msgstr ""
26136
26137 #. type: textblock
26138 #: ../src/guestfs-actions.pod:918
26139 msgid "(Added in 1.11.17)"
26140 msgstr ""
26141
26142 #. type: =head2
26143 #: ../src/guestfs-actions.pod:920
26144 msgid "guestfs_btrfs_filesystem_resize_va"
26145 msgstr ""
26146
26147 #. type: verbatim
26148 #: ../src/guestfs-actions.pod:922
26149 #, no-wrap
26150 msgid ""
26151 " int\n"
26152 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26153 "                                     const char *mountpoint,\n"
26154 "                                     va_list args);\n"
26155 "\n"
26156 msgstr ""
26157
26158 #. type: textblock
26159 #: ../src/guestfs-actions.pod:927
26160 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26161 msgstr ""
26162
26163 #. type: =head2
26164 #: ../src/guestfs-actions.pod:931
26165 msgid "guestfs_btrfs_filesystem_resize_argv"
26166 msgstr ""
26167
26168 #. type: verbatim
26169 #: ../src/guestfs-actions.pod:933
26170 #, no-wrap
26171 msgid ""
26172 " int\n"
26173 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26174 "                                       const char *mountpoint,\n"
26175 "                                       const struct "
26176 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26177 "\n"
26178 msgstr ""
26179
26180 #. type: textblock
26181 #: ../src/guestfs-actions.pod:938
26182 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26183 msgstr ""
26184
26185 #. type: =head2
26186 #: ../src/guestfs-actions.pod:942
26187 msgid "guestfs_case_sensitive_path"
26188 msgstr ""
26189
26190 #. type: verbatim
26191 #: ../src/guestfs-actions.pod:944
26192 #, no-wrap
26193 msgid ""
26194 " char *\n"
26195 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26196 "                              const char *path);\n"
26197 "\n"
26198 msgstr ""
26199
26200 #. type: textblock
26201 #: ../src/guestfs-actions.pod:970
26202 msgid ""
26203 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
26204 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26205 "how the directories were originally created under Windows)."
26206 msgstr ""
26207
26208 #. type: textblock
26209 #: ../src/guestfs-actions.pod:978
26210 msgid "See also C<guestfs_realpath>."
26211 msgstr ""
26212
26213 #. type: textblock
26214 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8144
26215 msgid "(Added in 1.0.75)"
26216 msgstr ""
26217
26218 #. type: =head2
26219 #: ../src/guestfs-actions.pod:985
26220 msgid "guestfs_cat"
26221 msgstr ""
26222
26223 #. type: verbatim
26224 #: ../src/guestfs-actions.pod:987
26225 #, no-wrap
26226 msgid ""
26227 " char *\n"
26228 " guestfs_cat (guestfs_h *g,\n"
26229 "              const char *path);\n"
26230 "\n"
26231 msgstr ""
26232
26233 #. type: textblock
26234 #: ../src/guestfs-actions.pod:993
26235 msgid ""
26236 "Note that this function cannot correctly handle binary files (specifically, "
26237 "files containing C<\\0> character which is treated as end of string).  For "
26238 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26239 "functions which have a more complex interface."
26240 msgstr ""
26241
26242 #. type: textblock
26243 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4211 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:4810 ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:8297 ../src/guestfs-actions.pod:8311
26244 msgid "(Added in 0.4)"
26245 msgstr ""
26246
26247 #. type: =head2
26248 #: ../src/guestfs-actions.pod:1006
26249 msgid "guestfs_checksum"
26250 msgstr ""
26251
26252 #. type: verbatim
26253 #: ../src/guestfs-actions.pod:1008
26254 #, no-wrap
26255 msgid ""
26256 " char *\n"
26257 " guestfs_checksum (guestfs_h *g,\n"
26258 "                   const char *csumtype,\n"
26259 "                   const char *path);\n"
26260 "\n"
26261 msgstr ""
26262
26263 #. type: textblock
26264 #: ../src/guestfs-actions.pod:1054
26265 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26266 msgstr ""
26267
26268 #. type: textblock
26269 #: ../src/guestfs-actions.pod:1056
26270 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26271 msgstr ""
26272
26273 #. type: textblock
26274 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728 ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3909 ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:8000
26275 msgid "(Added in 1.0.2)"
26276 msgstr ""
26277
26278 #. type: =head2
26279 #: ../src/guestfs-actions.pod:1063
26280 msgid "guestfs_checksum_device"
26281 msgstr ""
26282
26283 #. type: verbatim
26284 #: ../src/guestfs-actions.pod:1065
26285 #, no-wrap
26286 msgid ""
26287 " char *\n"
26288 " guestfs_checksum_device (guestfs_h *g,\n"
26289 "                          const char *csumtype,\n"
26290 "                          const char *device);\n"
26291 "\n"
26292 msgstr ""
26293
26294 #. type: textblock
26295 #: ../src/guestfs-actions.pod:1070
26296 msgid ""
26297 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26298 "device named C<device>.  For the types of checksums supported see the "
26299 "C<guestfs_checksum> command."
26300 msgstr ""
26301
26302 #. type: textblock
26303 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5783 ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7923 ../src/guestfs-actions.pod:8323
26304 msgid "(Added in 1.3.2)"
26305 msgstr ""
26306
26307 #. type: =head2
26308 #: ../src/guestfs-actions.pod:1079
26309 msgid "guestfs_checksums_out"
26310 msgstr ""
26311
26312 #. type: verbatim
26313 #: ../src/guestfs-actions.pod:1081
26314 #, no-wrap
26315 msgid ""
26316 " int\n"
26317 " guestfs_checksums_out (guestfs_h *g,\n"
26318 "                        const char *csumtype,\n"
26319 "                        const char *directory,\n"
26320 "                        const char *sumsfile);\n"
26321 "\n"
26322 msgstr ""
26323
26324 #. type: textblock
26325 #: ../src/guestfs-actions.pod:1101
26326 msgid "(Added in 1.3.7)"
26327 msgstr ""
26328
26329 #. type: =head2
26330 #: ../src/guestfs-actions.pod:1103
26331 msgid "guestfs_chmod"
26332 msgstr ""
26333
26334 #. type: verbatim
26335 #: ../src/guestfs-actions.pod:1105
26336 #, no-wrap
26337 msgid ""
26338 " int\n"
26339 " guestfs_chmod (guestfs_h *g,\n"
26340 "                int mode,\n"
26341 "                const char *path);\n"
26342 "\n"
26343 msgstr ""
26344
26345 #. type: =head2
26346 #: ../src/guestfs-actions.pod:1123
26347 msgid "guestfs_chown"
26348 msgstr ""
26349
26350 #. type: verbatim
26351 #: ../src/guestfs-actions.pod:1125
26352 #, no-wrap
26353 msgid ""
26354 " int\n"
26355 " guestfs_chown (guestfs_h *g,\n"
26356 "                int owner,\n"
26357 "                int group,\n"
26358 "                const char *path);\n"
26359 "\n"
26360 msgstr ""
26361
26362 #. type: =head2
26363 #: ../src/guestfs-actions.pod:1141
26364 msgid "guestfs_command"
26365 msgstr ""
26366
26367 #. type: verbatim
26368 #: ../src/guestfs-actions.pod:1143
26369 #, no-wrap
26370 msgid ""
26371 " char *\n"
26372 " guestfs_command (guestfs_h *g,\n"
26373 "                  char *const *arguments);\n"
26374 "\n"
26375 msgstr ""
26376
26377 #. type: textblock
26378 #: ../src/guestfs-actions.pod:1152
26379 msgid ""
26380 "The single parameter is an argv-style list of arguments.  The first element "
26381 "is the name of the program to run.  Subsequent elements are parameters.  The "
26382 "list must be non-empty (ie. must contain a program name).  Note that the "
26383 "command runs directly, and is I<not> invoked via the shell (see "
26384 "C<guestfs_sh>)."
26385 msgstr ""
26386
26387 #. type: textblock
26388 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203 ../src/guestfs-actions.pod:2027
26389 msgid "(Added in 0.9.1)"
26390 msgstr ""
26391
26392 #. type: =head2
26393 #: ../src/guestfs-actions.pod:1185
26394 msgid "guestfs_command_lines"
26395 msgstr ""
26396
26397 #. type: verbatim
26398 #: ../src/guestfs-actions.pod:1187
26399 #, no-wrap
26400 msgid ""
26401 " char **\n"
26402 " guestfs_command_lines (guestfs_h *g,\n"
26403 "                        char *const *arguments);\n"
26404 "\n"
26405 msgstr ""
26406
26407 #. type: textblock
26408 #: ../src/guestfs-actions.pod:1191
26409 msgid ""
26410 "This is the same as C<guestfs_command>, but splits the result into a list of "
26411 "lines."
26412 msgstr ""
26413
26414 #. type: textblock
26415 #: ../src/guestfs-actions.pod:1194
26416 msgid "See also: C<guestfs_sh_lines>"
26417 msgstr ""
26418
26419 #. type: =head2
26420 #: ../src/guestfs-actions.pod:1205
26421 msgid "guestfs_compress_device_out"
26422 msgstr ""
26423
26424 #. type: verbatim
26425 #: ../src/guestfs-actions.pod:1207
26426 #, no-wrap
26427 msgid ""
26428 " int\n"
26429 " guestfs_compress_device_out (guestfs_h *g,\n"
26430 "                              const char *ctype,\n"
26431 "                              const char *device,\n"
26432 "                              const char *zdevice,\n"
26433 "                              ...);\n"
26434 "\n"
26435 msgstr ""
26436
26437 #. type: verbatim
26438 #: ../src/guestfs-actions.pod:1219
26439 #, no-wrap
26440 msgid ""
26441 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26442 "\n"
26443 msgstr ""
26444
26445 #. type: textblock
26446 #: ../src/guestfs-actions.pod:1224
26447 msgid ""
26448 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26449 "C<guestfs_compress_out>."
26450 msgstr ""
26451
26452 #. type: textblock
26453 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7068
26454 msgid "(Added in 1.13.15)"
26455 msgstr ""
26456
26457 #. type: =head2
26458 #: ../src/guestfs-actions.pod:1231
26459 msgid "guestfs_compress_device_out_va"
26460 msgstr ""
26461
26462 #. type: verbatim
26463 #: ../src/guestfs-actions.pod:1233
26464 #, no-wrap
26465 msgid ""
26466 " int\n"
26467 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26468 "                                 const char *ctype,\n"
26469 "                                 const char *device,\n"
26470 "                                 const char *zdevice,\n"
26471 "                                 va_list args);\n"
26472 "\n"
26473 msgstr ""
26474
26475 #. type: textblock
26476 #: ../src/guestfs-actions.pod:1240
26477 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26478 msgstr ""
26479
26480 #. type: =head2
26481 #: ../src/guestfs-actions.pod:1244
26482 msgid "guestfs_compress_device_out_argv"
26483 msgstr ""
26484
26485 #. type: verbatim
26486 #: ../src/guestfs-actions.pod:1246
26487 #, no-wrap
26488 msgid ""
26489 " int\n"
26490 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26491 "                                   const char *ctype,\n"
26492 "                                   const char *device,\n"
26493 "                                   const char *zdevice,\n"
26494 "                                   const struct "
26495 "guestfs_compress_device_out_argv *optargs);\n"
26496 "\n"
26497 msgstr ""
26498
26499 #. type: textblock
26500 #: ../src/guestfs-actions.pod:1253
26501 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26502 msgstr ""
26503
26504 #. type: =head2
26505 #: ../src/guestfs-actions.pod:1257
26506 msgid "guestfs_compress_out"
26507 msgstr ""
26508
26509 #. type: verbatim
26510 #: ../src/guestfs-actions.pod:1259
26511 #, no-wrap
26512 msgid ""
26513 " int\n"
26514 " guestfs_compress_out (guestfs_h *g,\n"
26515 "                       const char *ctype,\n"
26516 "                       const char *file,\n"
26517 "                       const char *zfile,\n"
26518 "                       ...);\n"
26519 "\n"
26520 msgstr ""
26521
26522 #. type: verbatim
26523 #: ../src/guestfs-actions.pod:1271
26524 #, no-wrap
26525 msgid ""
26526 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26527 "\n"
26528 msgstr ""
26529
26530 #. type: =head2
26531 #: ../src/guestfs-actions.pod:1290
26532 msgid "guestfs_compress_out_va"
26533 msgstr ""
26534
26535 #. type: verbatim
26536 #: ../src/guestfs-actions.pod:1292
26537 #, no-wrap
26538 msgid ""
26539 " int\n"
26540 " guestfs_compress_out_va (guestfs_h *g,\n"
26541 "                          const char *ctype,\n"
26542 "                          const char *file,\n"
26543 "                          const char *zfile,\n"
26544 "                          va_list args);\n"
26545 "\n"
26546 msgstr ""
26547
26548 #. type: textblock
26549 #: ../src/guestfs-actions.pod:1299
26550 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26551 msgstr ""
26552
26553 #. type: =head2
26554 #: ../src/guestfs-actions.pod:1303
26555 msgid "guestfs_compress_out_argv"
26556 msgstr ""
26557
26558 #. type: verbatim
26559 #: ../src/guestfs-actions.pod:1305
26560 #, no-wrap
26561 msgid ""
26562 " int\n"
26563 " guestfs_compress_out_argv (guestfs_h *g,\n"
26564 "                            const char *ctype,\n"
26565 "                            const char *file,\n"
26566 "                            const char *zfile,\n"
26567 "                            const struct guestfs_compress_out_argv "
26568 "*optargs);\n"
26569 "\n"
26570 msgstr ""
26571
26572 #. type: textblock
26573 #: ../src/guestfs-actions.pod:1312
26574 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26575 msgstr ""
26576
26577 #. type: =head2
26578 #: ../src/guestfs-actions.pod:1316
26579 msgid "guestfs_config"
26580 msgstr ""
26581
26582 #. type: verbatim
26583 #: ../src/guestfs-actions.pod:1318
26584 #, no-wrap
26585 msgid ""
26586 " int\n"
26587 " guestfs_config (guestfs_h *g,\n"
26588 "                 const char *qemuparam,\n"
26589 "                 const char *qemuvalue);\n"
26590 "\n"
26591 msgstr ""
26592
26593 #. type: =head2
26594 #: ../src/guestfs-actions.pod:1336
26595 msgid "guestfs_copy_device_to_device"
26596 msgstr ""
26597
26598 #. type: verbatim
26599 #: ../src/guestfs-actions.pod:1338
26600 #, no-wrap
26601 msgid ""
26602 " int\n"
26603 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26604 "                                const char *src,\n"
26605 "                                const char *dest,\n"
26606 "                                ...);\n"
26607 "\n"
26608 msgstr ""
26609
26610 #. type: verbatim
26611 #: ../src/guestfs-actions.pod:1349
26612 #, no-wrap
26613 msgid ""
26614 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26615 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26616 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26617 "\n"
26618 msgstr ""
26619
26620 #. type: textblock
26621 #: ../src/guestfs-actions.pod:1353
26622 msgid ""
26623 "The four calls C<guestfs_copy_device_to_device>, "
26624 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26625 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26626 "destination (device|file)."
26627 msgstr ""
26628
26629 #. type: textblock
26630 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799 ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:4109 ../src/guestfs-actions.pod:7995 ../src/guestfs-actions.pod:8029 ../src/guestfs-actions.pod:8536 ../src/guestfs-actions.pod:8559
26631 msgid ""
26632 "This long-running command can generate progress notification messages so "
26633 "that the caller can display a progress bar or indicator.  To receive these "
26634 "messages, the caller must register a progress event callback.  See "
26635 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
26636 msgstr ""
26637
26638 #. type: textblock
26639 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543 ../src/guestfs-actions.pod:6208
26640 msgid "(Added in 1.13.25)"
26641 msgstr ""
26642
26643 #. type: =head2
26644 #: ../src/guestfs-actions.pod:1381
26645 msgid "guestfs_copy_device_to_device_va"
26646 msgstr ""
26647
26648 #. type: verbatim
26649 #: ../src/guestfs-actions.pod:1383
26650 #, no-wrap
26651 msgid ""
26652 " int\n"
26653 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26654 "                                   const char *src,\n"
26655 "                                   const char *dest,\n"
26656 "                                   va_list args);\n"
26657 "\n"
26658 msgstr ""
26659
26660 #. type: textblock
26661 #: ../src/guestfs-actions.pod:1389
26662 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26663 msgstr ""
26664
26665 #. type: =head2
26666 #: ../src/guestfs-actions.pod:1393
26667 msgid "guestfs_copy_device_to_device_argv"
26668 msgstr ""
26669
26670 #. type: verbatim
26671 #: ../src/guestfs-actions.pod:1395
26672 #, no-wrap
26673 msgid ""
26674 " int\n"
26675 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26676 "                                     const char *src,\n"
26677 "                                     const char *dest,\n"
26678 "                                     const struct "
26679 "guestfs_copy_device_to_device_argv *optargs);\n"
26680 "\n"
26681 msgstr ""
26682
26683 #. type: textblock
26684 #: ../src/guestfs-actions.pod:1401
26685 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26686 msgstr ""
26687
26688 #. type: =head2
26689 #: ../src/guestfs-actions.pod:1405
26690 msgid "guestfs_copy_device_to_file"
26691 msgstr ""
26692
26693 #. type: verbatim
26694 #: ../src/guestfs-actions.pod:1407
26695 #, no-wrap
26696 msgid ""
26697 " int\n"
26698 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26699 "                              const char *src,\n"
26700 "                              const char *dest,\n"
26701 "                              ...);\n"
26702 "\n"
26703 msgstr ""
26704
26705 #. type: verbatim
26706 #: ../src/guestfs-actions.pod:1418
26707 #, no-wrap
26708 msgid ""
26709 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26710 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26711 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26712 "\n"
26713 msgstr ""
26714
26715 #. type: textblock
26716 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:1528
26717 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
26718 msgstr ""
26719
26720 #. type: =head2
26721 #: ../src/guestfs-actions.pod:1434
26722 msgid "guestfs_copy_device_to_file_va"
26723 msgstr ""
26724
26725 #. type: verbatim
26726 #: ../src/guestfs-actions.pod:1436
26727 #, no-wrap
26728 msgid ""
26729 " int\n"
26730 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26731 "                                 const char *src,\n"
26732 "                                 const char *dest,\n"
26733 "                                 va_list args);\n"
26734 "\n"
26735 msgstr ""
26736
26737 #. type: textblock
26738 #: ../src/guestfs-actions.pod:1442
26739 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26740 msgstr ""
26741
26742 #. type: =head2
26743 #: ../src/guestfs-actions.pod:1446
26744 msgid "guestfs_copy_device_to_file_argv"
26745 msgstr ""
26746
26747 #. type: verbatim
26748 #: ../src/guestfs-actions.pod:1448
26749 #, no-wrap
26750 msgid ""
26751 " int\n"
26752 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26753 "                                   const char *src,\n"
26754 "                                   const char *dest,\n"
26755 "                                   const struct "
26756 "guestfs_copy_device_to_file_argv *optargs);\n"
26757 "\n"
26758 msgstr ""
26759
26760 #. type: textblock
26761 #: ../src/guestfs-actions.pod:1454
26762 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26763 msgstr ""
26764
26765 #. type: =head2
26766 #: ../src/guestfs-actions.pod:1458
26767 msgid "guestfs_copy_file_to_device"
26768 msgstr ""
26769
26770 #. type: verbatim
26771 #: ../src/guestfs-actions.pod:1460
26772 #, no-wrap
26773 msgid ""
26774 " int\n"
26775 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26776 "                              const char *src,\n"
26777 "                              const char *dest,\n"
26778 "                              ...);\n"
26779 "\n"
26780 msgstr ""
26781
26782 #. type: verbatim
26783 #: ../src/guestfs-actions.pod:1471
26784 #, no-wrap
26785 msgid ""
26786 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26787 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26788 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26789 "\n"
26790 msgstr ""
26791
26792 #. type: =head2
26793 #: ../src/guestfs-actions.pod:1487
26794 msgid "guestfs_copy_file_to_device_va"
26795 msgstr ""
26796
26797 #. type: verbatim
26798 #: ../src/guestfs-actions.pod:1489
26799 #, no-wrap
26800 msgid ""
26801 " int\n"
26802 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26803 "                                 const char *src,\n"
26804 "                                 const char *dest,\n"
26805 "                                 va_list args);\n"
26806 "\n"
26807 msgstr ""
26808
26809 #. type: textblock
26810 #: ../src/guestfs-actions.pod:1495
26811 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26812 msgstr ""
26813
26814 #. type: =head2
26815 #: ../src/guestfs-actions.pod:1499
26816 msgid "guestfs_copy_file_to_device_argv"
26817 msgstr ""
26818
26819 #. type: verbatim
26820 #: ../src/guestfs-actions.pod:1501
26821 #, no-wrap
26822 msgid ""
26823 " int\n"
26824 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26825 "                                   const char *src,\n"
26826 "                                   const char *dest,\n"
26827 "                                   const struct "
26828 "guestfs_copy_file_to_device_argv *optargs);\n"
26829 "\n"
26830 msgstr ""
26831
26832 #. type: textblock
26833 #: ../src/guestfs-actions.pod:1507
26834 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26835 msgstr ""
26836
26837 #. type: =head2
26838 #: ../src/guestfs-actions.pod:1511
26839 msgid "guestfs_copy_file_to_file"
26840 msgstr ""
26841
26842 #. type: verbatim
26843 #: ../src/guestfs-actions.pod:1513
26844 #, no-wrap
26845 msgid ""
26846 " int\n"
26847 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26848 "                            const char *src,\n"
26849 "                            const char *dest,\n"
26850 "                            ...);\n"
26851 "\n"
26852 msgstr ""
26853
26854 #. type: verbatim
26855 #: ../src/guestfs-actions.pod:1524
26856 #, no-wrap
26857 msgid ""
26858 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26859 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26860 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26861 "\n"
26862 msgstr ""
26863
26864 #. type: textblock
26865 #: ../src/guestfs-actions.pod:1531
26866 msgid ""
26867 "This is B<not> the function you want for copying files.  This is for copying "
26868 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26869 "C<guestfs_mv> for general file copying and moving functions."
26870 msgstr ""
26871
26872 #. type: =head2
26873 #: ../src/guestfs-actions.pod:1545
26874 msgid "guestfs_copy_file_to_file_va"
26875 msgstr ""
26876
26877 #. type: verbatim
26878 #: ../src/guestfs-actions.pod:1547
26879 #, no-wrap
26880 msgid ""
26881 " int\n"
26882 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26883 "                               const char *src,\n"
26884 "                               const char *dest,\n"
26885 "                               va_list args);\n"
26886 "\n"
26887 msgstr ""
26888
26889 #. type: textblock
26890 #: ../src/guestfs-actions.pod:1553
26891 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26892 msgstr ""
26893
26894 #. type: =head2
26895 #: ../src/guestfs-actions.pod:1557
26896 msgid "guestfs_copy_file_to_file_argv"
26897 msgstr ""
26898
26899 #. type: verbatim
26900 #: ../src/guestfs-actions.pod:1559
26901 #, no-wrap
26902 msgid ""
26903 " int\n"
26904 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26905 "                                 const char *src,\n"
26906 "                                 const char *dest,\n"
26907 "                                 const struct guestfs_copy_file_to_file_argv "
26908 "*optargs);\n"
26909 "\n"
26910 msgstr ""
26911
26912 #. type: textblock
26913 #: ../src/guestfs-actions.pod:1565
26914 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26915 msgstr ""
26916
26917 #. type: =head2
26918 #: ../src/guestfs-actions.pod:1569
26919 msgid "guestfs_copy_size"
26920 msgstr ""
26921
26922 #. type: verbatim
26923 #: ../src/guestfs-actions.pod:1571
26924 #, no-wrap
26925 msgid ""
26926 " int\n"
26927 " guestfs_copy_size (guestfs_h *g,\n"
26928 "                    const char *src,\n"
26929 "                    const char *dest,\n"
26930 "                    int64_t size);\n"
26931 "\n"
26932 msgstr ""
26933
26934 #. type: textblock
26935 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26936 msgid ""
26937 "I<This function is deprecated.> In new code, use the "
26938 "L</guestfs_copy_device_to_device> call instead."
26939 msgstr ""
26940
26941 #. type: textblock
26942 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:8230 ../src/guestfs-actions.pod:8250 ../src/guestfs-actions.pod:8336
26943 msgid "(Added in 1.0.87)"
26944 msgstr ""
26945
26946 #. type: =head2
26947 #: ../src/guestfs-actions.pod:1599
26948 msgid "guestfs_cp"
26949 msgstr ""
26950
26951 #. type: verbatim
26952 #: ../src/guestfs-actions.pod:1601
26953 #, no-wrap
26954 msgid ""
26955 " int\n"
26956 " guestfs_cp (guestfs_h *g,\n"
26957 "             const char *src,\n"
26958 "             const char *dest);\n"
26959 "\n"
26960 msgstr ""
26961
26962 #. type: textblock
26963 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:6222
26964 msgid "(Added in 1.0.18)"
26965 msgstr ""
26966
26967 #. type: =head2
26968 #: ../src/guestfs-actions.pod:1613
26969 msgid "guestfs_cp_a"
26970 msgstr ""
26971
26972 #. type: verbatim
26973 #: ../src/guestfs-actions.pod:1615
26974 #, no-wrap
26975 msgid ""
26976 " int\n"
26977 " guestfs_cp_a (guestfs_h *g,\n"
26978 "               const char *src,\n"
26979 "               const char *dest);\n"
26980 "\n"
26981 msgstr ""
26982
26983 #. type: =head2
26984 #: ../src/guestfs-actions.pod:1627
26985 msgid "guestfs_dd"
26986 msgstr ""
26987
26988 #. type: verbatim
26989 #: ../src/guestfs-actions.pod:1629
26990 #, no-wrap
26991 msgid ""
26992 " int\n"
26993 " guestfs_dd (guestfs_h *g,\n"
26994 "             const char *src,\n"
26995 "             const char *dest);\n"
26996 "\n"
26997 msgstr ""
26998
26999 #. type: textblock
27000 #: ../src/guestfs-actions.pod:1646
27001 msgid ""
27002 "If the destination is a device, it must be as large or larger than the "
27003 "source file or device, otherwise the copy will fail.  This command cannot do "
27004 "partial copies (see C<guestfs_copy_device_to_device>)."
27005 msgstr ""
27006
27007 #. type: =head2
27008 #: ../src/guestfs-actions.pod:1655
27009 msgid "guestfs_df"
27010 msgstr ""
27011
27012 #. type: verbatim
27013 #: ../src/guestfs-actions.pod:1657
27014 #, no-wrap
27015 msgid ""
27016 " char *\n"
27017 " guestfs_df (guestfs_h *g);\n"
27018 "\n"
27019 msgstr ""
27020
27021 #. type: textblock
27022 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27023 msgid ""
27024 "This command is mostly useful for interactive sessions.  It is I<not> "
27025 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27026 "from programs."
27027 msgstr ""
27028
27029 #. type: textblock
27030 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:8376 ../src/guestfs-actions.pod:8389 ../src/guestfs-actions.pod:8402
27031 msgid "(Added in 1.0.54)"
27032 msgstr ""
27033
27034 #. type: =head2
27035 #: ../src/guestfs-actions.pod:1671
27036 msgid "guestfs_df_h"
27037 msgstr ""
27038
27039 #. type: verbatim
27040 #: ../src/guestfs-actions.pod:1673
27041 #, no-wrap
27042 msgid ""
27043 " char *\n"
27044 " guestfs_df_h (guestfs_h *g);\n"
27045 "\n"
27046 msgstr ""
27047
27048 #. type: =head2
27049 #: ../src/guestfs-actions.pod:1688
27050 msgid "guestfs_dmesg"
27051 msgstr ""
27052
27053 #. type: verbatim
27054 #: ../src/guestfs-actions.pod:1690
27055 #, no-wrap
27056 msgid ""
27057 " char *\n"
27058 " guestfs_dmesg (guestfs_h *g);\n"
27059 "\n"
27060 msgstr ""
27061
27062 #. type: textblock
27063 #: ../src/guestfs-actions.pod:1697
27064 msgid ""
27065 "Another way to get the same information is to enable verbose messages with "
27066 "C<guestfs_set_verbose> or by setting the environment variable "
27067 "C<LIBGUESTFS_DEBUG=1> before running the program."
27068 msgstr ""
27069
27070 #. type: =head2
27071 #: ../src/guestfs-actions.pod:1707
27072 msgid "guestfs_download"
27073 msgstr ""
27074
27075 #. type: verbatim
27076 #: ../src/guestfs-actions.pod:1709
27077 #, no-wrap
27078 msgid ""
27079 " int\n"
27080 " guestfs_download (guestfs_h *g,\n"
27081 "                   const char *remotefilename,\n"
27082 "                   const char *filename);\n"
27083 "\n"
27084 msgstr ""
27085
27086 #. type: textblock
27087 #: ../src/guestfs-actions.pod:1719
27088 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27089 msgstr ""
27090
27091 #. type: =head2
27092 #: ../src/guestfs-actions.pod:1730
27093 msgid "guestfs_download_offset"
27094 msgstr ""
27095
27096 #. type: verbatim
27097 #: ../src/guestfs-actions.pod:1732
27098 #, no-wrap
27099 msgid ""
27100 " int\n"
27101 " guestfs_download_offset (guestfs_h *g,\n"
27102 "                          const char *remotefilename,\n"
27103 "                          const char *filename,\n"
27104 "                          int64_t offset,\n"
27105 "                          int64_t size);\n"
27106 "\n"
27107 msgstr ""
27108
27109 #. type: textblock
27110 #: ../src/guestfs-actions.pod:1745
27111 msgid ""
27112 "Note that there is no limit on the amount of data that can be downloaded "
27113 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27114 "full amount unless an error occurs."
27115 msgstr ""
27116
27117 #. type: textblock
27118 #: ../src/guestfs-actions.pod:1750
27119 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27120 msgstr ""
27121
27122 #. type: textblock
27123 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8034
27124 msgid "(Added in 1.5.17)"
27125 msgstr ""
27126
27127 #. type: =head2
27128 #: ../src/guestfs-actions.pod:1761
27129 msgid "guestfs_drop_caches"
27130 msgstr ""
27131
27132 #. type: verbatim
27133 #: ../src/guestfs-actions.pod:1763
27134 #, no-wrap
27135 msgid ""
27136 " int\n"
27137 " guestfs_drop_caches (guestfs_h *g,\n"
27138 "                      int whattodrop);\n"
27139 "\n"
27140 msgstr ""
27141
27142 #. type: =head2
27143 #: ../src/guestfs-actions.pod:1781
27144 msgid "guestfs_du"
27145 msgstr ""
27146
27147 #. type: verbatim
27148 #: ../src/guestfs-actions.pod:1783
27149 #, no-wrap
27150 msgid ""
27151 " int64_t\n"
27152 " guestfs_du (guestfs_h *g,\n"
27153 "             const char *path);\n"
27154 "\n"
27155 msgstr ""
27156
27157 #. type: =head2
27158 #: ../src/guestfs-actions.pod:1806
27159 msgid "guestfs_e2fsck_f"
27160 msgstr ""
27161
27162 #. type: verbatim
27163 #: ../src/guestfs-actions.pod:1808
27164 #, no-wrap
27165 msgid ""
27166 " int\n"
27167 " guestfs_e2fsck_f (guestfs_h *g,\n"
27168 "                   const char *device);\n"
27169 "\n"
27170 msgstr ""
27171
27172 #. type: textblock
27173 #: ../src/guestfs-actions.pod:1816
27174 msgid ""
27175 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27176 "Normally you should use C<guestfs_fsck>."
27177 msgstr ""
27178
27179 #. type: textblock
27180 #: ../src/guestfs-actions.pod:1821
27181 msgid "(Added in 1.0.29)"
27182 msgstr ""
27183
27184 #. type: =head2
27185 #: ../src/guestfs-actions.pod:1823
27186 msgid "guestfs_echo_daemon"
27187 msgstr ""
27188
27189 #. type: verbatim
27190 #: ../src/guestfs-actions.pod:1825
27191 #, no-wrap
27192 msgid ""
27193 " char *\n"
27194 " guestfs_echo_daemon (guestfs_h *g,\n"
27195 "                      char *const *words);\n"
27196 "\n"
27197 msgstr ""
27198
27199 #. type: textblock
27200 #: ../src/guestfs-actions.pod:1834
27201 msgid "See also C<guestfs_ping_daemon>."
27202 msgstr ""
27203
27204 #. type: textblock
27205 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:7092
27206 msgid "(Added in 1.0.69)"
27207 msgstr ""
27208
27209 #. type: =head2
27210 #: ../src/guestfs-actions.pod:1841
27211 msgid "guestfs_egrep"
27212 msgstr ""
27213
27214 #. type: verbatim
27215 #: ../src/guestfs-actions.pod:1843
27216 #, no-wrap
27217 msgid ""
27218 " char **\n"
27219 " guestfs_egrep (guestfs_h *g,\n"
27220 "                const char *regex,\n"
27221 "                const char *path);\n"
27222 "\n"
27223 msgstr ""
27224
27225 #. type: textblock
27226 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980 ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924 ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952 ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4363 ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:6556 ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:7479 ../src/guestfs-actions.pod:7491 ../src/guestfs-actions.pod:7504 ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7539 ../src/guestfs-actions.pod:7552 ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7578 ../src/guestfs-actions.pod:8494 ../src/guestfs-actions.pod:8513 ../src/guestfs-actions.pod:8604 ../src/guestfs-actions.pod:8623 ../src/guestfs-actions.pod:8669 ../src/guestfs-actions.pod:8688
27227 msgid "(Added in 1.0.66)"
27228 msgstr ""
27229
27230 #. type: =head2
27231 #: ../src/guestfs-actions.pod:1860
27232 msgid "guestfs_egrepi"
27233 msgstr ""
27234
27235 #. type: verbatim
27236 #: ../src/guestfs-actions.pod:1862
27237 #, no-wrap
27238 msgid ""
27239 " char **\n"
27240 " guestfs_egrepi (guestfs_h *g,\n"
27241 "                 const char *regex,\n"
27242 "                 const char *path);\n"
27243 "\n"
27244 msgstr ""
27245
27246 #. type: =head2
27247 #: ../src/guestfs-actions.pod:1879
27248 msgid "guestfs_equal"
27249 msgstr ""
27250
27251 #. type: verbatim
27252 #: ../src/guestfs-actions.pod:1881
27253 #, no-wrap
27254 msgid ""
27255 " int\n"
27256 " guestfs_equal (guestfs_h *g,\n"
27257 "                const char *file1,\n"
27258 "                const char *file2);\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: =head2
27263 #: ../src/guestfs-actions.pod:1895
27264 msgid "guestfs_exists"
27265 msgstr ""
27266
27267 #. type: verbatim
27268 #: ../src/guestfs-actions.pod:1897
27269 #, no-wrap
27270 msgid ""
27271 " int\n"
27272 " guestfs_exists (guestfs_h *g,\n"
27273 "                 const char *path);\n"
27274 "\n"
27275 msgstr ""
27276
27277 #. type: textblock
27278 #: ../src/guestfs-actions.pod:1904
27279 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27280 msgstr ""
27281
27282 #. type: =head2
27283 #: ../src/guestfs-actions.pod:1910
27284 msgid "guestfs_fallocate"
27285 msgstr ""
27286
27287 #. type: verbatim
27288 #: ../src/guestfs-actions.pod:1912
27289 #, no-wrap
27290 msgid ""
27291 " int\n"
27292 " guestfs_fallocate (guestfs_h *g,\n"
27293 "                    const char *path,\n"
27294 "                    int len);\n"
27295 "\n"
27296 msgstr ""
27297
27298 #. type: textblock
27299 #: ../src/guestfs-actions.pod:1917
27300 msgid ""
27301 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27302 "call instead."
27303 msgstr ""
27304
27305 #. type: =head2
27306 #: ../src/guestfs-actions.pod:1936
27307 msgid "guestfs_fallocate64"
27308 msgstr ""
27309
27310 #. type: verbatim
27311 #: ../src/guestfs-actions.pod:1938
27312 #, no-wrap
27313 msgid ""
27314 " int\n"
27315 " guestfs_fallocate64 (guestfs_h *g,\n"
27316 "                      const char *path,\n"
27317 "                      int64_t len);\n"
27318 "\n"
27319 msgstr ""
27320
27321 #. type: textblock
27322 #: ../src/guestfs-actions.pod:1947
27323 msgid ""
27324 "Note that this call allocates disk blocks for the file.  To create a sparse "
27325 "file use C<guestfs_truncate_size> instead."
27326 msgstr ""
27327
27328 #. type: textblock
27329 #: ../src/guestfs-actions.pod:1950
27330 msgid ""
27331 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27332 "oversight it only allowed 30 bit lengths to be specified, effectively "
27333 "limiting the maximum size of files created through that call to 1GB."
27334 msgstr ""
27335
27336 #. type: textblock
27337 #: ../src/guestfs-actions.pod:1961
27338 msgid "(Added in 1.3.17)"
27339 msgstr ""
27340
27341 #. type: =head2
27342 #: ../src/guestfs-actions.pod:1963
27343 msgid "guestfs_fgrep"
27344 msgstr ""
27345
27346 #. type: verbatim
27347 #: ../src/guestfs-actions.pod:1965
27348 #, no-wrap
27349 msgid ""
27350 " char **\n"
27351 " guestfs_fgrep (guestfs_h *g,\n"
27352 "                const char *pattern,\n"
27353 "                const char *path);\n"
27354 "\n"
27355 msgstr ""
27356
27357 #. type: =head2
27358 #: ../src/guestfs-actions.pod:1982
27359 msgid "guestfs_fgrepi"
27360 msgstr ""
27361
27362 #. type: verbatim
27363 #: ../src/guestfs-actions.pod:1984
27364 #, no-wrap
27365 msgid ""
27366 " char **\n"
27367 " guestfs_fgrepi (guestfs_h *g,\n"
27368 "                 const char *pattern,\n"
27369 "                 const char *path);\n"
27370 "\n"
27371 msgstr ""
27372
27373 #. type: =head2
27374 #: ../src/guestfs-actions.pod:2001
27375 msgid "guestfs_file"
27376 msgstr ""
27377
27378 #. type: verbatim
27379 #: ../src/guestfs-actions.pod:2003
27380 #, no-wrap
27381 msgid ""
27382 " char *\n"
27383 " guestfs_file (guestfs_h *g,\n"
27384 "               const char *path);\n"
27385 "\n"
27386 msgstr ""
27387
27388 #. type: textblock
27389 #: ../src/guestfs-actions.pod:2021
27390 msgid ""
27391 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27392 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27393 msgstr ""
27394
27395 #. type: =head2
27396 #: ../src/guestfs-actions.pod:2029
27397 msgid "guestfs_file_architecture"
27398 msgstr ""
27399
27400 #. type: verbatim
27401 #: ../src/guestfs-actions.pod:2031
27402 #, no-wrap
27403 msgid ""
27404 " char *\n"
27405 " guestfs_file_architecture (guestfs_h *g,\n"
27406 "                            const char *filename);\n"
27407 "\n"
27408 msgstr ""
27409
27410 #. type: textblock
27411 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302 ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3880 ../src/guestfs-actions.pod:4012
27412 msgid "(Added in 1.5.3)"
27413 msgstr ""
27414
27415 #. type: =head2
27416 #: ../src/guestfs-actions.pod:2141
27417 msgid "guestfs_filesize"
27418 msgstr ""
27419
27420 #. type: verbatim
27421 #: ../src/guestfs-actions.pod:2143
27422 #, no-wrap
27423 msgid ""
27424 " int64_t\n"
27425 " guestfs_filesize (guestfs_h *g,\n"
27426 "                   const char *file);\n"
27427 "\n"
27428 msgstr ""
27429
27430 #. type: textblock
27431 #: ../src/guestfs-actions.pod:2149
27432 msgid ""
27433 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27434 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27435 "devices, use C<guestfs_blockdev_getsize64>."
27436 msgstr ""
27437
27438 #. type: textblock
27439 #: ../src/guestfs-actions.pod:2155
27440 msgid "(Added in 1.0.82)"
27441 msgstr ""
27442
27443 #. type: =head2
27444 #: ../src/guestfs-actions.pod:2157
27445 msgid "guestfs_fill"
27446 msgstr ""
27447
27448 #. type: verbatim
27449 #: ../src/guestfs-actions.pod:2159
27450 #, no-wrap
27451 msgid ""
27452 " int\n"
27453 " guestfs_fill (guestfs_h *g,\n"
27454 "               int c,\n"
27455 "               int len,\n"
27456 "               const char *path);\n"
27457 "\n"
27458 msgstr ""
27459
27460 #. type: textblock
27461 #: ../src/guestfs-actions.pod:2169
27462 msgid ""
27463 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27464 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27465 "bytes use C<guestfs_fill_pattern>."
27466 msgstr ""
27467
27468 #. type: textblock
27469 #: ../src/guestfs-actions.pod:2181
27470 msgid "(Added in 1.0.79)"
27471 msgstr ""
27472
27473 #. type: =head2
27474 #: ../src/guestfs-actions.pod:2183
27475 msgid "guestfs_fill_pattern"
27476 msgstr ""
27477
27478 #. type: verbatim
27479 #: ../src/guestfs-actions.pod:2185
27480 #, no-wrap
27481 msgid ""
27482 " int\n"
27483 " guestfs_fill_pattern (guestfs_h *g,\n"
27484 "                       const char *pattern,\n"
27485 "                       int len,\n"
27486 "                       const char *path);\n"
27487 "\n"
27488 msgstr ""
27489
27490 #. type: textblock
27491 #: ../src/guestfs-actions.pod:2191
27492 msgid ""
27493 "This function is like C<guestfs_fill> except that it creates a new file of "
27494 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27495 "pattern is truncated if necessary to ensure the length of the file is "
27496 "exactly C<len> bytes."
27497 msgstr ""
27498
27499 #. type: textblock
27500 #: ../src/guestfs-actions.pod:2203
27501 msgid "(Added in 1.3.12)"
27502 msgstr ""
27503
27504 #. type: =head2
27505 #: ../src/guestfs-actions.pod:2205
27506 msgid "guestfs_find"
27507 msgstr ""
27508
27509 #. type: verbatim
27510 #: ../src/guestfs-actions.pod:2207
27511 #, no-wrap
27512 msgid ""
27513 " char **\n"
27514 " guestfs_find (guestfs_h *g,\n"
27515 "               const char *directory);\n"
27516 "\n"
27517 msgstr ""
27518
27519 #. type: textblock
27520 #: ../src/guestfs-actions.pod:2223
27521 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27522 msgstr ""
27523
27524 #. type: textblock
27525 #: ../src/guestfs-actions.pod:2236
27526 msgid "See also C<guestfs_find0>."
27527 msgstr ""
27528
27529 #. type: textblock
27530 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:6640
27531 msgid "(Added in 1.0.27)"
27532 msgstr ""
27533
27534 #. type: =head2
27535 #: ../src/guestfs-actions.pod:2247
27536 msgid "guestfs_find0"
27537 msgstr ""
27538
27539 #. type: verbatim
27540 #: ../src/guestfs-actions.pod:2249
27541 #, no-wrap
27542 msgid ""
27543 " int\n"
27544 " guestfs_find0 (guestfs_h *g,\n"
27545 "                const char *directory,\n"
27546 "                const char *files);\n"
27547 "\n"
27548 msgstr ""
27549
27550 #. type: textblock
27551 #: ../src/guestfs-actions.pod:2258
27552 msgid ""
27553 "This command works the same way as C<guestfs_find> with the following "
27554 "exceptions:"
27555 msgstr ""
27556
27557 #. type: textblock
27558 #: ../src/guestfs-actions.pod:2285
27559 msgid "(Added in 1.0.74)"
27560 msgstr ""
27561
27562 #. type: =head2
27563 #: ../src/guestfs-actions.pod:2287
27564 msgid "guestfs_findfs_label"
27565 msgstr ""
27566
27567 #. type: verbatim
27568 #: ../src/guestfs-actions.pod:2289
27569 #, no-wrap
27570 msgid ""
27571 " char *\n"
27572 " guestfs_findfs_label (guestfs_h *g,\n"
27573 "                       const char *label);\n"
27574 "\n"
27575 msgstr ""
27576
27577 #. type: textblock
27578 #: ../src/guestfs-actions.pod:2297
27579 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27580 msgstr ""
27581
27582 #. type: =head2
27583 #: ../src/guestfs-actions.pod:2304
27584 msgid "guestfs_findfs_uuid"
27585 msgstr ""
27586
27587 #. type: verbatim
27588 #: ../src/guestfs-actions.pod:2306
27589 #, no-wrap
27590 msgid ""
27591 " char *\n"
27592 " guestfs_findfs_uuid (guestfs_h *g,\n"
27593 "                      const char *uuid);\n"
27594 "\n"
27595 msgstr ""
27596
27597 #. type: textblock
27598 #: ../src/guestfs-actions.pod:2314
27599 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27600 msgstr ""
27601
27602 #. type: =head2
27603 #: ../src/guestfs-actions.pod:2321
27604 msgid "guestfs_fsck"
27605 msgstr ""
27606
27607 #. type: verbatim
27608 #: ../src/guestfs-actions.pod:2323
27609 #, no-wrap
27610 msgid ""
27611 " int\n"
27612 " guestfs_fsck (guestfs_h *g,\n"
27613 "               const char *fstype,\n"
27614 "               const char *device);\n"
27615 "\n"
27616 msgstr ""
27617
27618 #. type: textblock
27619 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8541
27620 msgid "(Added in 1.0.16)"
27621 msgstr ""
27622
27623 #. type: =head2
27624 #: ../src/guestfs-actions.pod:2360
27625 msgid "guestfs_get_append"
27626 msgstr ""
27627
27628 #. type: verbatim
27629 #: ../src/guestfs-actions.pod:2362
27630 #, no-wrap
27631 msgid ""
27632 " const char *\n"
27633 " guestfs_get_append (guestfs_h *g);\n"
27634 "\n"
27635 msgstr ""
27636
27637 #. type: textblock
27638 #: ../src/guestfs-actions.pod:2370
27639 msgid ""
27640 "This function returns a string which may be NULL.  There is no way to return "
27641 "an error from this function.  The string is owned by the guest handle and "
27642 "must I<not> be freed."
27643 msgstr ""
27644
27645 #. type: textblock
27646 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6318 ../src/guestfs-actions.pod:6797 ../src/guestfs-actions.pod:7246 ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7281 ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:8181 ../src/guestfs-actions.pod:8196 ../src/guestfs-actions.pod:8585
27647 msgid "(Added in 1.0.26)"
27648 msgstr ""
27649
27650 #. type: =head2
27651 #: ../src/guestfs-actions.pod:2376
27652 msgid "guestfs_get_attach_method"
27653 msgstr ""
27654
27655 #. type: verbatim
27656 #: ../src/guestfs-actions.pod:2378
27657 #, no-wrap
27658 msgid ""
27659 " char *\n"
27660 " guestfs_get_attach_method (guestfs_h *g);\n"
27661 "\n"
27662 msgstr ""
27663
27664 #. type: textblock
27665 #: ../src/guestfs-actions.pod:2381
27666 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27667 msgstr ""
27668
27669 #. type: textblock
27670 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6827
27671 msgid "(Added in 1.9.8)"
27672 msgstr ""
27673
27674 #. type: =head2
27675 #: ../src/guestfs-actions.pod:2388
27676 msgid "guestfs_get_autosync"
27677 msgstr ""
27678
27679 #. type: verbatim
27680 #: ../src/guestfs-actions.pod:2390
27681 #, no-wrap
27682 msgid ""
27683 " int\n"
27684 " guestfs_get_autosync (guestfs_h *g);\n"
27685 "\n"
27686 msgstr ""
27687
27688 #. type: =head2
27689 #: ../src/guestfs-actions.pod:2399
27690 msgid "guestfs_get_direct"
27691 msgstr ""
27692
27693 #. type: verbatim
27694 #: ../src/guestfs-actions.pod:2401
27695 #, no-wrap
27696 msgid ""
27697 " int\n"
27698 " guestfs_get_direct (guestfs_h *g);\n"
27699 "\n"
27700 msgstr ""
27701
27702 #. type: textblock
27703 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6868
27704 msgid "(Added in 1.0.72)"
27705 msgstr ""
27706
27707 #. type: =head2
27708 #: ../src/guestfs-actions.pod:2410
27709 msgid "guestfs_get_e2label"
27710 msgstr ""
27711
27712 #. type: verbatim
27713 #: ../src/guestfs-actions.pod:2412
27714 #, no-wrap
27715 msgid ""
27716 " char *\n"
27717 " guestfs_get_e2label (guestfs_h *g,\n"
27718 "                      const char *device);\n"
27719 "\n"
27720 msgstr ""
27721
27722 #. type: textblock
27723 #: ../src/guestfs-actions.pod:2416
27724 msgid ""
27725 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27726 "call instead."
27727 msgstr ""
27728
27729 #. type: textblock
27730 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6905
27731 msgid "(Added in 1.0.15)"
27732 msgstr ""
27733
27734 #. type: =head2
27735 #: ../src/guestfs-actions.pod:2431
27736 msgid "guestfs_get_e2uuid"
27737 msgstr ""
27738
27739 #. type: verbatim
27740 #: ../src/guestfs-actions.pod:2433
27741 #, no-wrap
27742 msgid ""
27743 " char *\n"
27744 " guestfs_get_e2uuid (guestfs_h *g,\n"
27745 "                     const char *device);\n"
27746 "\n"
27747 msgstr ""
27748
27749 #. type: textblock
27750 #: ../src/guestfs-actions.pod:2437
27751 msgid ""
27752 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27753 "call instead."
27754 msgstr ""
27755
27756 #. type: =head2
27757 #: ../src/guestfs-actions.pod:2452
27758 msgid "guestfs_get_memsize"
27759 msgstr ""
27760
27761 #. type: verbatim
27762 #: ../src/guestfs-actions.pod:2454
27763 #, no-wrap
27764 msgid ""
27765 " int\n"
27766 " guestfs_get_memsize (guestfs_h *g);\n"
27767 "\n"
27768 msgstr ""
27769
27770 #. type: textblock
27771 #: ../src/guestfs-actions.pod:2460
27772 msgid ""
27773 "If C<guestfs_set_memsize> was not called on this handle, and if "
27774 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27775 "value for memsize."
27776 msgstr ""
27777
27778 #. type: textblock
27779 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442 ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5503 ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6926 ../src/guestfs-actions.pod:7216 ../src/guestfs-actions.pod:7950
27780 msgid "(Added in 1.0.55)"
27781 msgstr ""
27782
27783 #. type: =head2
27784 #: ../src/guestfs-actions.pod:2471
27785 msgid "guestfs_get_network"
27786 msgstr ""
27787
27788 #. type: verbatim
27789 #: ../src/guestfs-actions.pod:2473
27790 #, no-wrap
27791 msgid ""
27792 " int\n"
27793 " guestfs_get_network (guestfs_h *g);\n"
27794 "\n"
27795 msgstr ""
27796
27797 #. type: textblock
27798 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6945
27799 msgid "(Added in 1.5.4)"
27800 msgstr ""
27801
27802 #. type: =head2
27803 #: ../src/guestfs-actions.pod:2482
27804 msgid "guestfs_get_path"
27805 msgstr ""
27806
27807 #. type: verbatim
27808 #: ../src/guestfs-actions.pod:2484
27809 #, no-wrap
27810 msgid ""
27811 " const char *\n"
27812 " guestfs_get_path (guestfs_h *g);\n"
27813 "\n"
27814 msgstr ""
27815
27816 #. type: textblock
27817 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27818 msgid ""
27819 "This function returns a string, or NULL on error.  The string is owned by "
27820 "the guest handle and must I<not> be freed."
27821 msgstr ""
27822
27823 #. type: =head2
27824 #: ../src/guestfs-actions.pod:2497
27825 msgid "guestfs_get_pgroup"
27826 msgstr ""
27827
27828 #. type: verbatim
27829 #: ../src/guestfs-actions.pod:2499
27830 #, no-wrap
27831 msgid ""
27832 " int\n"
27833 " guestfs_get_pgroup (guestfs_h *g);\n"
27834 "\n"
27835 msgstr ""
27836
27837 #. type: textblock
27838 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:8442
27839 msgid "(Added in 1.11.18)"
27840 msgstr ""
27841
27842 #. type: =head2
27843 #: ../src/guestfs-actions.pod:2508
27844 msgid "guestfs_get_pid"
27845 msgstr ""
27846
27847 #. type: verbatim
27848 #: ../src/guestfs-actions.pod:2510
27849 #, no-wrap
27850 msgid ""
27851 " int\n"
27852 " guestfs_get_pid (guestfs_h *g);\n"
27853 "\n"
27854 msgstr ""
27855
27856 #. type: textblock
27857 #: ../src/guestfs-actions.pod:2520
27858 msgid "(Added in 1.0.56)"
27859 msgstr ""
27860
27861 #. type: =head2
27862 #: ../src/guestfs-actions.pod:2522
27863 msgid "guestfs_get_qemu"
27864 msgstr ""
27865
27866 #. type: verbatim
27867 #: ../src/guestfs-actions.pod:2524
27868 #, no-wrap
27869 msgid ""
27870 " const char *\n"
27871 " guestfs_get_qemu (guestfs_h *g);\n"
27872 "\n"
27873 msgstr ""
27874
27875 #. type: textblock
27876 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:7009
27877 msgid "(Added in 1.0.6)"
27878 msgstr ""
27879
27880 #. type: =head2
27881 #: ../src/guestfs-actions.pod:2537
27882 msgid "guestfs_get_recovery_proc"
27883 msgstr ""
27884
27885 #. type: verbatim
27886 #: ../src/guestfs-actions.pod:2539
27887 #, no-wrap
27888 msgid ""
27889 " int\n"
27890 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27891 "\n"
27892 msgstr ""
27893
27894 #. type: textblock
27895 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4872 ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:7033 ../src/guestfs-actions.pod:7731 ../src/guestfs-actions.pod:7751 ../src/guestfs-actions.pod:8065
27896 msgid "(Added in 1.0.77)"
27897 msgstr ""
27898
27899 #. type: =head2
27900 #: ../src/guestfs-actions.pod:2548
27901 msgid "guestfs_get_selinux"
27902 msgstr ""
27903
27904 #. type: verbatim
27905 #: ../src/guestfs-actions.pod:2550
27906 #, no-wrap
27907 msgid ""
27908 " int\n"
27909 " guestfs_get_selinux (guestfs_h *g);\n"
27910 "\n"
27911 msgstr ""
27912
27913 #. type: textblock
27914 #: ../src/guestfs-actions.pod:2553
27915 msgid ""
27916 "This returns the current setting of the selinux flag which is passed to the "
27917 "appliance at boot time.  See C<guestfs_set_selinux>."
27918 msgstr ""
27919
27920 #. type: textblock
27921 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635 ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7126
27922 msgid "(Added in 1.0.67)"
27923 msgstr ""
27924
27925 #. type: =head2
27926 #: ../src/guestfs-actions.pod:2563
27927 msgid "guestfs_get_smp"
27928 msgstr ""
27929
27930 #. type: verbatim
27931 #: ../src/guestfs-actions.pod:2565
27932 #, no-wrap
27933 msgid ""
27934 " int\n"
27935 " guestfs_get_smp (guestfs_h *g);\n"
27936 "\n"
27937 msgstr ""
27938
27939 #. type: =head2
27940 #: ../src/guestfs-actions.pod:2574
27941 msgid "guestfs_get_state"
27942 msgstr ""
27943
27944 #. type: verbatim
27945 #: ../src/guestfs-actions.pod:2576
27946 #, no-wrap
27947 msgid ""
27948 " int\n"
27949 " guestfs_get_state (guestfs_h *g);\n"
27950 "\n"
27951 msgstr ""
27952
27953 #. type: =head2
27954 #: ../src/guestfs-actions.pod:2588
27955 msgid "guestfs_get_trace"
27956 msgstr ""
27957
27958 #. type: verbatim
27959 #: ../src/guestfs-actions.pod:2590
27960 #, no-wrap
27961 msgid ""
27962 " int\n"
27963 " guestfs_get_trace (guestfs_h *g);\n"
27964 "\n"
27965 msgstr ""
27966
27967 #. type: =head2
27968 #: ../src/guestfs-actions.pod:2599
27969 msgid "guestfs_get_umask"
27970 msgstr ""
27971
27972 #. type: verbatim
27973 #: ../src/guestfs-actions.pod:2601
27974 #, no-wrap
27975 msgid ""
27976 " int\n"
27977 " guestfs_get_umask (guestfs_h *g);\n"
27978 "\n"
27979 msgstr ""
27980
27981 #. type: textblock
27982 #: ../src/guestfs-actions.pod:2604
27983 msgid ""
27984 "Return the current umask.  By default the umask is C<022> unless it has been "
27985 "set by calling C<guestfs_umask>."
27986 msgstr ""
27987
27988 #. type: =head2
27989 #: ../src/guestfs-actions.pod:2611
27990 msgid "guestfs_get_verbose"
27991 msgstr ""
27992
27993 #. type: verbatim
27994 #: ../src/guestfs-actions.pod:2613
27995 #, no-wrap
27996 msgid ""
27997 " int\n"
27998 " guestfs_get_verbose (guestfs_h *g);\n"
27999 "\n"
28000 msgstr ""
28001
28002 #. type: =head2
28003 #: ../src/guestfs-actions.pod:2622
28004 msgid "guestfs_getcon"
28005 msgstr ""
28006
28007 #. type: verbatim
28008 #: ../src/guestfs-actions.pod:2624
28009 #, no-wrap
28010 msgid ""
28011 " char *\n"
28012 " guestfs_getcon (guestfs_h *g);\n"
28013 "\n"
28014 msgstr ""
28015
28016 #. type: textblock
28017 #: ../src/guestfs-actions.pod:2629
28018 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28019 msgstr ""
28020
28021 #. type: =head2
28022 #: ../src/guestfs-actions.pod:2637
28023 msgid "guestfs_getxattr"
28024 msgstr ""
28025
28026 #. type: verbatim
28027 #: ../src/guestfs-actions.pod:2639
28028 #, no-wrap
28029 msgid ""
28030 " char *\n"
28031 " guestfs_getxattr (guestfs_h *g,\n"
28032 "                   const char *path,\n"
28033 "                   const char *name,\n"
28034 "                   size_t *size_r);\n"
28035 "\n"
28036 msgstr ""
28037
28038 #. type: textblock
28039 #: ../src/guestfs-actions.pod:2645
28040 msgid ""
28041 "Get a single extended attribute from file C<path> named C<name>.  This call "
28042 "follows symlinks.  If you want to lookup an extended attribute for the "
28043 "symlink itself, use C<guestfs_lgetxattr>."
28044 msgstr ""
28045
28046 #. type: textblock
28047 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4148
28048 msgid ""
28049 "Normally it is better to get all extended attributes from a file in one go "
28050 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28051 "implementations are buggy and do not provide a way to list out attributes.  "
28052 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28053 "extended attributes you want in advance and call this function."
28054 msgstr ""
28055
28056 #. type: textblock
28057 #: ../src/guestfs-actions.pod:2659
28058 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28059 msgstr ""
28060
28061 #. type: textblock
28062 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4160 ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6448
28063 msgid ""
28064 "This function returns a buffer, or NULL on error.  The size of the returned "
28065 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28066 "after use>."
28067 msgstr ""
28068
28069 #. type: textblock
28070 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4164
28071 msgid "(Added in 1.7.24)"
28072 msgstr ""
28073
28074 #. type: =head2
28075 #: ../src/guestfs-actions.pod:2667
28076 msgid "guestfs_getxattrs"
28077 msgstr ""
28078
28079 #. type: verbatim
28080 #: ../src/guestfs-actions.pod:2669
28081 #, no-wrap
28082 msgid ""
28083 " struct guestfs_xattr_list *\n"
28084 " guestfs_getxattrs (guestfs_h *g,\n"
28085 "                    const char *path);\n"
28086 "\n"
28087 msgstr ""
28088
28089 #. type: textblock
28090 #: ../src/guestfs-actions.pod:2679
28091 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28092 msgstr ""
28093
28094 #. type: textblock
28095 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4176 ../src/guestfs-actions.pod:4868
28096 msgid ""
28097 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28098 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28099 msgstr ""
28100
28101 #. type: textblock
28102 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:7145 ../src/guestfs-actions.pod:8650
28103 msgid "(Added in 1.0.59)"
28104 msgstr ""
28105
28106 #. type: =head2
28107 #: ../src/guestfs-actions.pod:2687
28108 msgid "guestfs_glob_expand"
28109 msgstr ""
28110
28111 #. type: verbatim
28112 #: ../src/guestfs-actions.pod:2689
28113 #, no-wrap
28114 msgid ""
28115 " char **\n"
28116 " guestfs_glob_expand (guestfs_h *g,\n"
28117 "                      const char *pattern);\n"
28118 "\n"
28119 msgstr ""
28120
28121 #. type: textblock
28122 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7329 ../src/guestfs-actions.pod:7346
28123 msgid "(Added in 1.0.50)"
28124 msgstr ""
28125
28126 #. type: =head2
28127 #: ../src/guestfs-actions.pod:2710
28128 msgid "guestfs_grep"
28129 msgstr ""
28130
28131 #. type: verbatim
28132 #: ../src/guestfs-actions.pod:2712
28133 #, no-wrap
28134 msgid ""
28135 " char **\n"
28136 " guestfs_grep (guestfs_h *g,\n"
28137 "               const char *regex,\n"
28138 "               const char *path);\n"
28139 "\n"
28140 msgstr ""
28141
28142 #. type: =head2
28143 #: ../src/guestfs-actions.pod:2729
28144 msgid "guestfs_grepi"
28145 msgstr ""
28146
28147 #. type: verbatim
28148 #: ../src/guestfs-actions.pod:2731
28149 #, no-wrap
28150 msgid ""
28151 " char **\n"
28152 " guestfs_grepi (guestfs_h *g,\n"
28153 "                const char *regex,\n"
28154 "                const char *path);\n"
28155 "\n"
28156 msgstr ""
28157
28158 #. type: =head2
28159 #: ../src/guestfs-actions.pod:2748
28160 msgid "guestfs_grub_install"
28161 msgstr ""
28162
28163 #. type: verbatim
28164 #: ../src/guestfs-actions.pod:2750
28165 #, no-wrap
28166 msgid ""
28167 " int\n"
28168 " guestfs_grub_install (guestfs_h *g,\n"
28169 "                       const char *root,\n"
28170 "                       const char *device);\n"
28171 "\n"
28172 msgstr ""
28173
28174 #. type: textblock
28175 #: ../src/guestfs-actions.pod:2793
28176 msgid "(Added in 1.0.17)"
28177 msgstr ""
28178
28179 #. type: =head2
28180 #: ../src/guestfs-actions.pod:2795
28181 msgid "guestfs_head"
28182 msgstr ""
28183
28184 #. type: verbatim
28185 #: ../src/guestfs-actions.pod:2797
28186 #, no-wrap
28187 msgid ""
28188 " char **\n"
28189 " guestfs_head (guestfs_h *g,\n"
28190 "               const char *path);\n"
28191 "\n"
28192 msgstr ""
28193
28194 #. type: =head2
28195 #: ../src/guestfs-actions.pod:2813
28196 msgid "guestfs_head_n"
28197 msgstr ""
28198
28199 #. type: verbatim
28200 #: ../src/guestfs-actions.pod:2815
28201 #, no-wrap
28202 msgid ""
28203 " char **\n"
28204 " guestfs_head_n (guestfs_h *g,\n"
28205 "                 int nrlines,\n"
28206 "                 const char *path);\n"
28207 "\n"
28208 msgstr ""
28209
28210 #. type: =head2
28211 #: ../src/guestfs-actions.pod:2837
28212 msgid "guestfs_hexdump"
28213 msgstr ""
28214
28215 #. type: verbatim
28216 #: ../src/guestfs-actions.pod:2839
28217 #, no-wrap
28218 msgid ""
28219 " char *\n"
28220 " guestfs_hexdump (guestfs_h *g,\n"
28221 "                  const char *path);\n"
28222 "\n"
28223 msgstr ""
28224
28225 #. type: textblock
28226 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7465
28227 msgid "(Added in 1.0.22)"
28228 msgstr ""
28229
28230 #. type: =head2
28231 #: ../src/guestfs-actions.pod:2854
28232 msgid "guestfs_initrd_cat"
28233 msgstr ""
28234
28235 #. type: verbatim
28236 #: ../src/guestfs-actions.pod:2856
28237 #, no-wrap
28238 msgid ""
28239 " char *\n"
28240 " guestfs_initrd_cat (guestfs_h *g,\n"
28241 "                     const char *initrdpath,\n"
28242 "                     const char *filename,\n"
28243 "                     size_t *size_r);\n"
28244 "\n"
28245 msgstr ""
28246
28247 #. type: textblock
28248 #: ../src/guestfs-actions.pod:2872
28249 msgid "See also C<guestfs_initrd_list>."
28250 msgstr ""
28251
28252 #. type: =head2
28253 #: ../src/guestfs-actions.pod:2883
28254 msgid "guestfs_initrd_list"
28255 msgstr ""
28256
28257 #. type: verbatim
28258 #: ../src/guestfs-actions.pod:2885
28259 #, no-wrap
28260 msgid ""
28261 " char **\n"
28262 " guestfs_initrd_list (guestfs_h *g,\n"
28263 "                      const char *path);\n"
28264 "\n"
28265 msgstr ""
28266
28267 #. type: =head2
28268 #: ../src/guestfs-actions.pod:2905
28269 msgid "guestfs_inotify_add_watch"
28270 msgstr ""
28271
28272 #. type: verbatim
28273 #: ../src/guestfs-actions.pod:2907
28274 #, no-wrap
28275 msgid ""
28276 " int64_t\n"
28277 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28278 "                            const char *path,\n"
28279 "                            int mask);\n"
28280 "\n"
28281 msgstr ""
28282
28283 #. type: =head2
28284 #: ../src/guestfs-actions.pod:2926
28285 msgid "guestfs_inotify_close"
28286 msgstr ""
28287
28288 #. type: verbatim
28289 #: ../src/guestfs-actions.pod:2928
28290 #, no-wrap
28291 msgid ""
28292 " int\n"
28293 " guestfs_inotify_close (guestfs_h *g);\n"
28294 "\n"
28295 msgstr ""
28296
28297 #. type: =head2
28298 #: ../src/guestfs-actions.pod:2939
28299 msgid "guestfs_inotify_files"
28300 msgstr ""
28301
28302 #. type: verbatim
28303 #: ../src/guestfs-actions.pod:2941
28304 #, no-wrap
28305 msgid ""
28306 " char **\n"
28307 " guestfs_inotify_files (guestfs_h *g);\n"
28308 "\n"
28309 msgstr ""
28310
28311 #. type: textblock
28312 #: ../src/guestfs-actions.pod:2944
28313 msgid ""
28314 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28315 "returns a list of pathnames of objects that were touched.  The returned "
28316 "pathnames are sorted and deduplicated."
28317 msgstr ""
28318
28319 #. type: =head2
28320 #: ../src/guestfs-actions.pod:2954
28321 msgid "guestfs_inotify_init"
28322 msgstr ""
28323
28324 #. type: verbatim
28325 #: ../src/guestfs-actions.pod:2956
28326 #, no-wrap
28327 msgid ""
28328 " int\n"
28329 " guestfs_inotify_init (guestfs_h *g,\n"
28330 "                       int maxevents);\n"
28331 "\n"
28332 msgstr ""
28333
28334 #. type: textblock
28335 #: ../src/guestfs-actions.pod:2964
28336 msgid ""
28337 "C<maxevents> is the maximum number of events which will be queued up between "
28338 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28339 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28340 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28341 "throws away events, but records the fact that it threw them away by setting "
28342 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28343 "C<guestfs_inotify_read>)."
28344 msgstr ""
28345
28346 #. type: textblock
28347 #: ../src/guestfs-actions.pod:2974
28348 msgid ""
28349 "Before any events are generated, you have to add some watches to the "
28350 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28351 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28352 msgstr ""
28353
28354 #. type: textblock
28355 #: ../src/guestfs-actions.pod:2980
28356 msgid ""
28357 "Queued up events should be read periodically by calling "
28358 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28359 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28360 "often enough then you risk the internal queue overflowing."
28361 msgstr ""
28362
28363 #. type: textblock
28364 #: ../src/guestfs-actions.pod:2987
28365 msgid ""
28366 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28367 "This also removes any watches automatically."
28368 msgstr ""
28369
28370 #. type: =head2
28371 #: ../src/guestfs-actions.pod:3000
28372 msgid "guestfs_inotify_read"
28373 msgstr ""
28374
28375 #. type: verbatim
28376 #: ../src/guestfs-actions.pod:3002
28377 #, no-wrap
28378 msgid ""
28379 " struct guestfs_inotify_event_list *\n"
28380 " guestfs_inotify_read (guestfs_h *g);\n"
28381 "\n"
28382 msgstr ""
28383
28384 #. type: textblock
28385 #: ../src/guestfs-actions.pod:3016
28386 msgid ""
28387 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28388 "there was an error.  I<The caller must call "
28389 "C<guestfs_free_inotify_event_list> after use>."
28390 msgstr ""
28391
28392 #. type: =head2
28393 #: ../src/guestfs-actions.pod:3022
28394 msgid "guestfs_inotify_rm_watch"
28395 msgstr ""
28396
28397 #. type: verbatim
28398 #: ../src/guestfs-actions.pod:3024
28399 #, no-wrap
28400 msgid ""
28401 " int\n"
28402 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28403 "                           int wd);\n"
28404 "\n"
28405 msgstr ""
28406
28407 #. type: textblock
28408 #: ../src/guestfs-actions.pod:3028
28409 msgid ""
28410 "Remove a previously defined inotify watch.  See "
28411 "C<guestfs_inotify_add_watch>."
28412 msgstr ""
28413
28414 #. type: =head2
28415 #: ../src/guestfs-actions.pod:3035
28416 msgid "guestfs_inspect_get_arch"
28417 msgstr ""
28418
28419 #. type: verbatim
28420 #: ../src/guestfs-actions.pod:3037
28421 #, no-wrap
28422 msgid ""
28423 " char *\n"
28424 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28425 "                           const char *root);\n"
28426 "\n"
28427 msgstr ""
28428
28429 #. type: textblock
28430 #: ../src/guestfs-actions.pod:3041
28431 msgid ""
28432 "This returns the architecture of the inspected operating system.  The "
28433 "possible return values are listed under C<guestfs_file_architecture>."
28434 msgstr ""
28435
28436 #. type: =head2
28437 #: ../src/guestfs-actions.pod:3055
28438 msgid "guestfs_inspect_get_distro"
28439 msgstr ""
28440
28441 #. type: verbatim
28442 #: ../src/guestfs-actions.pod:3057
28443 #, no-wrap
28444 msgid ""
28445 " char *\n"
28446 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28447 "                             const char *root);\n"
28448 "\n"
28449 msgstr ""
28450
28451 #. type: =head2
28452 #: ../src/guestfs-actions.pod:3157
28453 msgid "guestfs_inspect_get_drive_mappings"
28454 msgstr ""
28455
28456 #. type: verbatim
28457 #: ../src/guestfs-actions.pod:3159
28458 #, no-wrap
28459 msgid ""
28460 " char **\n"
28461 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28462 "                                     const char *root);\n"
28463 "\n"
28464 msgstr ""
28465
28466 #. type: textblock
28467 #: ../src/guestfs-actions.pod:3188
28468 msgid ""
28469 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28470 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28471 msgstr ""
28472
28473 #. type: textblock
28474 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:7889
28475 msgid ""
28476 "This function returns a NULL-terminated array of strings, or NULL if there "
28477 "was an error.  The array of strings will always have length C<2n+1>, where "
28478 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28479 "caller must free the strings and the array after use>."
28480 msgstr ""
28481
28482 #. type: textblock
28483 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3663
28484 msgid "(Added in 1.9.17)"
28485 msgstr ""
28486
28487 #. type: =head2
28488 #: ../src/guestfs-actions.pod:3200
28489 msgid "guestfs_inspect_get_filesystems"
28490 msgstr ""
28491
28492 #. type: verbatim
28493 #: ../src/guestfs-actions.pod:3202
28494 #, no-wrap
28495 msgid ""
28496 " char **\n"
28497 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28498 "                                  const char *root);\n"
28499 "\n"
28500 msgstr ""
28501
28502 #. type: textblock
28503 #: ../src/guestfs-actions.pod:3214
28504 msgid ""
28505 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28506 "C<guestfs_inspect_get_mountpoints>."
28507 msgstr ""
28508
28509 #. type: =head2
28510 #: ../src/guestfs-actions.pod:3223
28511 msgid "guestfs_inspect_get_format"
28512 msgstr ""
28513
28514 #. type: verbatim
28515 #: ../src/guestfs-actions.pod:3225
28516 #, no-wrap
28517 msgid ""
28518 " char *\n"
28519 " guestfs_inspect_get_format (guestfs_h *g,\n"
28520 "                             const char *root);\n"
28521 "\n"
28522 msgstr ""
28523
28524 #. type: textblock
28525 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3733 ../src/guestfs-actions.pod:6659
28526 msgid "(Added in 1.9.4)"
28527 msgstr ""
28528
28529 #. type: =head2
28530 #: ../src/guestfs-actions.pod:3261
28531 msgid "guestfs_inspect_get_hostname"
28532 msgstr ""
28533
28534 #. type: verbatim
28535 #: ../src/guestfs-actions.pod:3263
28536 #, no-wrap
28537 msgid ""
28538 " char *\n"
28539 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28540 "                               const char *root);\n"
28541 "\n"
28542 msgstr ""
28543
28544 #. type: textblock
28545 #: ../src/guestfs-actions.pod:3278
28546 msgid "(Added in 1.7.9)"
28547 msgstr ""
28548
28549 #. type: =head2
28550 #: ../src/guestfs-actions.pod:3280
28551 msgid "guestfs_inspect_get_icon"
28552 msgstr ""
28553
28554 #. type: verbatim
28555 #: ../src/guestfs-actions.pod:3282
28556 #, no-wrap
28557 msgid ""
28558 " char *\n"
28559 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28560 "                           const char *root,\n"
28561 "                           size_t *size_r,\n"
28562 "                           ...);\n"
28563 "\n"
28564 msgstr ""
28565
28566 #. type: verbatim
28567 #: ../src/guestfs-actions.pod:3293
28568 #, no-wrap
28569 msgid ""
28570 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28571 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28572 "\n"
28573 msgstr ""
28574
28575 #. type: textblock
28576 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:5591
28577 msgid "(Added in 1.11.12)"
28578 msgstr ""
28579
28580 #. type: =head2
28581 #: ../src/guestfs-actions.pod:3362
28582 msgid "guestfs_inspect_get_icon_va"
28583 msgstr ""
28584
28585 #. type: verbatim
28586 #: ../src/guestfs-actions.pod:3364
28587 #, no-wrap
28588 msgid ""
28589 " char *\n"
28590 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28591 "                              const char *root,\n"
28592 "                              size_t *size_r,\n"
28593 "                              va_list args);\n"
28594 "\n"
28595 msgstr ""
28596
28597 #. type: textblock
28598 #: ../src/guestfs-actions.pod:3370
28599 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28600 msgstr ""
28601
28602 #. type: =head2
28603 #: ../src/guestfs-actions.pod:3374
28604 msgid "guestfs_inspect_get_icon_argv"
28605 msgstr ""
28606
28607 #. type: verbatim
28608 #: ../src/guestfs-actions.pod:3376
28609 #, no-wrap
28610 msgid ""
28611 " char *\n"
28612 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28613 "                                const char *root,\n"
28614 "                                size_t *size_r,\n"
28615 "                                const struct guestfs_inspect_get_icon_argv "
28616 "*optargs);\n"
28617 "\n"
28618 msgstr ""
28619
28620 #. type: textblock
28621 #: ../src/guestfs-actions.pod:3382
28622 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28623 msgstr ""
28624
28625 #. type: =head2
28626 #: ../src/guestfs-actions.pod:3386
28627 msgid "guestfs_inspect_get_major_version"
28628 msgstr ""
28629
28630 #. type: verbatim
28631 #: ../src/guestfs-actions.pod:3388
28632 #, no-wrap
28633 msgid ""
28634 " int\n"
28635 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28636 "                                    const char *root);\n"
28637 "\n"
28638 msgstr ""
28639
28640 #. type: =head2
28641 #: ../src/guestfs-actions.pod:3410
28642 msgid "guestfs_inspect_get_minor_version"
28643 msgstr ""
28644
28645 #. type: verbatim
28646 #: ../src/guestfs-actions.pod:3412
28647 #, no-wrap
28648 msgid ""
28649 " int\n"
28650 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28651 "                                    const char *root);\n"
28652 "\n"
28653 msgstr ""
28654
28655 #. type: textblock
28656 #: ../src/guestfs-actions.pod:3421
28657 msgid ""
28658 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28659 "C<guestfs_inspect_get_major_version>."
28660 msgstr ""
28661
28662 #. type: =head2
28663 #: ../src/guestfs-actions.pod:3428
28664 msgid "guestfs_inspect_get_mountpoints"
28665 msgstr ""
28666
28667 #. type: verbatim
28668 #: ../src/guestfs-actions.pod:3430
28669 #, no-wrap
28670 msgid ""
28671 " char **\n"
28672 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28673 "                                  const char *root);\n"
28674 "\n"
28675 msgstr ""
28676
28677 #. type: textblock
28678 #: ../src/guestfs-actions.pod:3451
28679 msgid ""
28680 "For operating systems like Windows which still use drive letters, this call "
28681 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28682 "information about the mapping of drive letters to partitions, see "
28683 "C<guestfs_inspect_get_drive_mappings>."
28684 msgstr ""
28685
28686 #. type: textblock
28687 #: ../src/guestfs-actions.pod:3457
28688 msgid ""
28689 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28690 "C<guestfs_inspect_get_filesystems>."
28691 msgstr ""
28692
28693 #. type: =head2
28694 #: ../src/guestfs-actions.pod:3468
28695 msgid "guestfs_inspect_get_package_format"
28696 msgstr ""
28697
28698 #. type: verbatim
28699 #: ../src/guestfs-actions.pod:3470
28700 #, no-wrap
28701 msgid ""
28702 " char *\n"
28703 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28704 "                                     const char *root);\n"
28705 "\n"
28706 msgstr ""
28707
28708 #. type: textblock
28709 #: ../src/guestfs-actions.pod:3474
28710 msgid ""
28711 "This function and C<guestfs_inspect_get_package_management> return the "
28712 "package format and package management tool used by the inspected operating "
28713 "system.  For example for Fedora these functions would return C<rpm> (package "
28714 "format) and C<yum> (package management)."
28715 msgstr ""
28716
28717 #. type: textblock
28718 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28719 msgid "(Added in 1.7.5)"
28720 msgstr ""
28721
28722 #. type: =head2
28723 #: ../src/guestfs-actions.pod:3495
28724 msgid "guestfs_inspect_get_package_management"
28725 msgstr ""
28726
28727 #. type: verbatim
28728 #: ../src/guestfs-actions.pod:3497
28729 #, no-wrap
28730 msgid ""
28731 " char *\n"
28732 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28733 "                                         const char *root);\n"
28734 "\n"
28735 msgstr ""
28736
28737 #. type: textblock
28738 #: ../src/guestfs-actions.pod:3501
28739 msgid ""
28740 "C<guestfs_inspect_get_package_format> and this function return the package "
28741 "format and package management tool used by the inspected operating system.  "
28742 "For example for Fedora these functions would return C<rpm> (package format) "
28743 "and C<yum> (package management)."
28744 msgstr ""
28745
28746 #. type: =head2
28747 #: ../src/guestfs-actions.pod:3523
28748 msgid "guestfs_inspect_get_product_name"
28749 msgstr ""
28750
28751 #. type: verbatim
28752 #: ../src/guestfs-actions.pod:3525
28753 #, no-wrap
28754 msgid ""
28755 " char *\n"
28756 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28757 "                                   const char *root);\n"
28758 "\n"
28759 msgstr ""
28760
28761 #. type: =head2
28762 #: ../src/guestfs-actions.pod:3544
28763 msgid "guestfs_inspect_get_product_variant"
28764 msgstr ""
28765
28766 #. type: verbatim
28767 #: ../src/guestfs-actions.pod:3546
28768 #, no-wrap
28769 msgid ""
28770 " char *\n"
28771 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28772 "                                      const char *root);\n"
28773 "\n"
28774 msgstr ""
28775
28776 #. type: textblock
28777 #: ../src/guestfs-actions.pod:3569
28778 msgid ""
28779 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28780 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28781 msgstr ""
28782
28783 #. type: textblock
28784 #: ../src/guestfs-actions.pod:3576
28785 msgid "(Added in 1.9.13)"
28786 msgstr ""
28787
28788 #. type: =head2
28789 #: ../src/guestfs-actions.pod:3578
28790 msgid "guestfs_inspect_get_roots"
28791 msgstr ""
28792
28793 #. type: verbatim
28794 #: ../src/guestfs-actions.pod:3580
28795 #, no-wrap
28796 msgid ""
28797 " char **\n"
28798 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28799 "\n"
28800 msgstr ""
28801
28802 #. type: textblock
28803 #: ../src/guestfs-actions.pod:3583
28804 msgid ""
28805 "This function is a convenient way to get the list of root devices, as "
28806 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28807 "the whole inspection process."
28808 msgstr ""
28809
28810 #. type: textblock
28811 #: ../src/guestfs-actions.pod:3587
28812 msgid ""
28813 "This returns an empty list if either no root devices were found or the "
28814 "caller has not called C<guestfs_inspect_os>."
28815 msgstr ""
28816
28817 #. type: textblock
28818 #: ../src/guestfs-actions.pod:3596
28819 msgid "(Added in 1.7.3)"
28820 msgstr ""
28821
28822 #. type: =head2
28823 #: ../src/guestfs-actions.pod:3598
28824 msgid "guestfs_inspect_get_type"
28825 msgstr ""
28826
28827 #. type: verbatim
28828 #: ../src/guestfs-actions.pod:3600
28829 #, no-wrap
28830 msgid ""
28831 " char *\n"
28832 " guestfs_inspect_get_type (guestfs_h *g,\n"
28833 "                           const char *root);\n"
28834 "\n"
28835 msgstr ""
28836
28837 #. type: =head2
28838 #: ../src/guestfs-actions.pod:3645
28839 msgid "guestfs_inspect_get_windows_current_control_set"
28840 msgstr ""
28841
28842 #. type: verbatim
28843 #: ../src/guestfs-actions.pod:3647
28844 #, no-wrap
28845 msgid ""
28846 " char *\n"
28847 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28848 "                                                  const char *root);\n"
28849 "\n"
28850 msgstr ""
28851
28852 #. type: =head2
28853 #: ../src/guestfs-actions.pod:3665
28854 msgid "guestfs_inspect_get_windows_systemroot"
28855 msgstr ""
28856
28857 #. type: verbatim
28858 #: ../src/guestfs-actions.pod:3667
28859 #, no-wrap
28860 msgid ""
28861 " char *\n"
28862 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28863 "                                         const char *root);\n"
28864 "\n"
28865 msgstr ""
28866
28867 #. type: textblock
28868 #: ../src/guestfs-actions.pod:3683
28869 msgid "(Added in 1.5.25)"
28870 msgstr ""
28871
28872 #. type: =head2
28873 #: ../src/guestfs-actions.pod:3685
28874 msgid "guestfs_inspect_is_live"
28875 msgstr ""
28876
28877 #. type: verbatim
28878 #: ../src/guestfs-actions.pod:3687
28879 #, no-wrap
28880 msgid ""
28881 " int\n"
28882 " guestfs_inspect_is_live (guestfs_h *g,\n"
28883 "                          const char *root);\n"
28884 "\n"
28885 msgstr ""
28886
28887 #. type: textblock
28888 #: ../src/guestfs-actions.pod:3691
28889 msgid ""
28890 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28891 "disk), then this returns true if a live image was detected on the disk."
28892 msgstr ""
28893
28894 #. type: =head2
28895 #: ../src/guestfs-actions.pod:3701
28896 msgid "guestfs_inspect_is_multipart"
28897 msgstr ""
28898
28899 #. type: verbatim
28900 #: ../src/guestfs-actions.pod:3703
28901 #, no-wrap
28902 msgid ""
28903 " int\n"
28904 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28905 "                               const char *root);\n"
28906 "\n"
28907 msgstr ""
28908
28909 #. type: textblock
28910 #: ../src/guestfs-actions.pod:3707
28911 msgid ""
28912 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28913 "disk), then this returns true if the disk is part of a set."
28914 msgstr ""
28915
28916 #. type: =head2
28917 #: ../src/guestfs-actions.pod:3717
28918 msgid "guestfs_inspect_is_netinst"
28919 msgstr ""
28920
28921 #. type: verbatim
28922 #: ../src/guestfs-actions.pod:3719
28923 #, no-wrap
28924 msgid ""
28925 " int\n"
28926 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28927 "                             const char *root);\n"
28928 "\n"
28929 msgstr ""
28930
28931 #. type: textblock
28932 #: ../src/guestfs-actions.pod:3723
28933 msgid ""
28934 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28935 "disk), then this returns true if the disk is a network installer, ie. not a "
28936 "self-contained install CD but one which is likely to require network access "
28937 "to complete the install."
28938 msgstr ""
28939
28940 #. type: =head2
28941 #: ../src/guestfs-actions.pod:3735
28942 msgid "guestfs_inspect_list_applications"
28943 msgstr ""
28944
28945 #. type: verbatim
28946 #: ../src/guestfs-actions.pod:3737
28947 #, no-wrap
28948 msgid ""
28949 " struct guestfs_application_list *\n"
28950 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28951 "                                    const char *root);\n"
28952 "\n"
28953 msgstr ""
28954
28955 #. type: textblock
28956 #: ../src/guestfs-actions.pod:3743
28957 msgid ""
28958 "I<Note:> This call works differently from other parts of the inspection "
28959 "API.  You have to call C<guestfs_inspect_os>, then "
28960 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28961 "this.  Listing applications is a significantly more difficult operation "
28962 "which requires access to the full filesystem.  Also note that unlike the "
28963 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28964 "the libguestfs handle, this call actually reads parts of the mounted "
28965 "filesystems during the call."
28966 msgstr ""
28967
28968 #. type: textblock
28969 #: ../src/guestfs-actions.pod:3833
28970 msgid ""
28971 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28972 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28973 "after use>."
28974 msgstr ""
28975
28976 #. type: textblock
28977 #: ../src/guestfs-actions.pod:3837
28978 msgid "(Added in 1.7.8)"
28979 msgstr ""
28980
28981 #. type: =head2
28982 #: ../src/guestfs-actions.pod:3839
28983 msgid "guestfs_inspect_os"
28984 msgstr ""
28985
28986 #. type: verbatim
28987 #: ../src/guestfs-actions.pod:3841
28988 #, no-wrap
28989 msgid ""
28990 " char **\n"
28991 " guestfs_inspect_os (guestfs_h *g);\n"
28992 "\n"
28993 msgstr ""
28994
28995 #. type: textblock
28996 #: ../src/guestfs-actions.pod:3857
28997 msgid ""
28998 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28999 "functions in order to query further information about each operating system, "
29000 "such as the name and version."
29001 msgstr ""
29002
29003 #. type: textblock
29004 #: ../src/guestfs-actions.pod:3862
29005 msgid ""
29006 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29007 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29008 "the contents.  This should be called with no disks currently mounted.  The "
29009 "function may also use Augeas, so any existing Augeas handle will be closed."
29010 msgstr ""
29011
29012 #. type: textblock
29013 #: ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:4205 ../src/guestfs-actions.pod:4300
29014 msgid "See also C<guestfs_list_filesystems>."
29015 msgstr ""
29016
29017 #. type: =head2
29018 #: ../src/guestfs-actions.pod:3882
29019 msgid "guestfs_is_blockdev"
29020 msgstr ""
29021
29022 #. type: verbatim
29023 #: ../src/guestfs-actions.pod:3884
29024 #, no-wrap
29025 msgid ""
29026 " int\n"
29027 " guestfs_is_blockdev (guestfs_h *g,\n"
29028 "                      const char *path);\n"
29029 "\n"
29030 msgstr ""
29031
29032 #. type: textblock
29033 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4037 ../src/guestfs-actions.pod:4052
29034 msgid "See also C<guestfs_stat>."
29035 msgstr ""
29036
29037 #. type: textblock
29038 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4056
29039 msgid "(Added in 1.5.10)"
29040 msgstr ""
29041
29042 #. type: =head2
29043 #: ../src/guestfs-actions.pod:3897
29044 msgid "guestfs_is_busy"
29045 msgstr ""
29046
29047 #. type: verbatim
29048 #: ../src/guestfs-actions.pod:3899
29049 #, no-wrap
29050 msgid ""
29051 " int\n"
29052 " guestfs_is_busy (guestfs_h *g);\n"
29053 "\n"
29054 msgstr ""
29055
29056 #. type: =head2
29057 #: ../src/guestfs-actions.pod:3911
29058 msgid "guestfs_is_chardev"
29059 msgstr ""
29060
29061 #. type: verbatim
29062 #: ../src/guestfs-actions.pod:3913
29063 #, no-wrap
29064 msgid ""
29065 " int\n"
29066 " guestfs_is_chardev (guestfs_h *g,\n"
29067 "                     const char *path);\n"
29068 "\n"
29069 msgstr ""
29070
29071 #. type: =head2
29072 #: ../src/guestfs-actions.pod:3926
29073 msgid "guestfs_is_config"
29074 msgstr ""
29075
29076 #. type: verbatim
29077 #: ../src/guestfs-actions.pod:3928
29078 #, no-wrap
29079 msgid ""
29080 " int\n"
29081 " guestfs_is_config (guestfs_h *g);\n"
29082 "\n"
29083 msgstr ""
29084
29085 #. type: =head2
29086 #: ../src/guestfs-actions.pod:3940
29087 msgid "guestfs_is_dir"
29088 msgstr ""
29089
29090 #. type: verbatim
29091 #: ../src/guestfs-actions.pod:3942
29092 #, no-wrap
29093 msgid ""
29094 " int\n"
29095 " guestfs_is_dir (guestfs_h *g,\n"
29096 "                 const char *path);\n"
29097 "\n"
29098 msgstr ""
29099
29100 #. type: =head2
29101 #: ../src/guestfs-actions.pod:3956
29102 msgid "guestfs_is_fifo"
29103 msgstr ""
29104
29105 #. type: verbatim
29106 #: ../src/guestfs-actions.pod:3958
29107 #, no-wrap
29108 msgid ""
29109 " int\n"
29110 " guestfs_is_fifo (guestfs_h *g,\n"
29111 "                  const char *path);\n"
29112 "\n"
29113 msgstr ""
29114
29115 #. type: =head2
29116 #: ../src/guestfs-actions.pod:3971
29117 msgid "guestfs_is_file"
29118 msgstr ""
29119
29120 #. type: verbatim
29121 #: ../src/guestfs-actions.pod:3973
29122 #, no-wrap
29123 msgid ""
29124 " int\n"
29125 " guestfs_is_file (guestfs_h *g,\n"
29126 "                  const char *path);\n"
29127 "\n"
29128 msgstr ""
29129
29130 #. type: =head2
29131 #: ../src/guestfs-actions.pod:3987
29132 msgid "guestfs_is_launching"
29133 msgstr ""
29134
29135 #. type: verbatim
29136 #: ../src/guestfs-actions.pod:3989
29137 #, no-wrap
29138 msgid ""
29139 " int\n"
29140 " guestfs_is_launching (guestfs_h *g);\n"
29141 "\n"
29142 msgstr ""
29143
29144 #. type: =head2
29145 #: ../src/guestfs-actions.pod:4001
29146 msgid "guestfs_is_lv"
29147 msgstr ""
29148
29149 #. type: verbatim
29150 #: ../src/guestfs-actions.pod:4003
29151 #, no-wrap
29152 msgid ""
29153 " int\n"
29154 " guestfs_is_lv (guestfs_h *g,\n"
29155 "                const char *device);\n"
29156 "\n"
29157 msgstr ""
29158
29159 #. type: =head2
29160 #: ../src/guestfs-actions.pod:4014
29161 msgid "guestfs_is_ready"
29162 msgstr ""
29163
29164 #. type: verbatim
29165 #: ../src/guestfs-actions.pod:4016
29166 #, no-wrap
29167 msgid ""
29168 " int\n"
29169 " guestfs_is_ready (guestfs_h *g);\n"
29170 "\n"
29171 msgstr ""
29172
29173 #. type: =head2
29174 #: ../src/guestfs-actions.pod:4028
29175 msgid "guestfs_is_socket"
29176 msgstr ""
29177
29178 #. type: verbatim
29179 #: ../src/guestfs-actions.pod:4030
29180 #, no-wrap
29181 msgid ""
29182 " int\n"
29183 " guestfs_is_socket (guestfs_h *g,\n"
29184 "                    const char *path);\n"
29185 "\n"
29186 msgstr ""
29187
29188 #. type: =head2
29189 #: ../src/guestfs-actions.pod:4043
29190 msgid "guestfs_is_symlink"
29191 msgstr ""
29192
29193 #. type: verbatim
29194 #: ../src/guestfs-actions.pod:4045
29195 #, no-wrap
29196 msgid ""
29197 " int\n"
29198 " guestfs_is_symlink (guestfs_h *g,\n"
29199 "                     const char *path);\n"
29200 "\n"
29201 msgstr ""
29202
29203 #. type: =head2
29204 #: ../src/guestfs-actions.pod:4058
29205 msgid "guestfs_is_zero"
29206 msgstr ""
29207
29208 #. type: verbatim
29209 #: ../src/guestfs-actions.pod:4060
29210 #, no-wrap
29211 msgid ""
29212 " int\n"
29213 " guestfs_is_zero (guestfs_h *g,\n"
29214 "                  const char *path);\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: textblock
29219 #: ../src/guestfs-actions.pod:4069 ../src/guestfs-actions.pod:4083
29220 msgid "(Added in 1.11.8)"
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../src/guestfs-actions.pod:4071
29225 msgid "guestfs_is_zero_device"
29226 msgstr ""
29227
29228 #. type: verbatim
29229 #: ../src/guestfs-actions.pod:4073
29230 #, no-wrap
29231 msgid ""
29232 " int\n"
29233 " guestfs_is_zero_device (guestfs_h *g,\n"
29234 "                         const char *device);\n"
29235 "\n"
29236 msgstr ""
29237
29238 #. type: =head2
29239 #: ../src/guestfs-actions.pod:4085
29240 msgid "guestfs_kill_subprocess"
29241 msgstr ""
29242
29243 #. type: verbatim
29244 #: ../src/guestfs-actions.pod:4087
29245 #, no-wrap
29246 msgid ""
29247 " int\n"
29248 " guestfs_kill_subprocess (guestfs_h *g);\n"
29249 "\n"
29250 msgstr ""
29251
29252 #. type: =head2
29253 #: ../src/guestfs-actions.pod:4096
29254 msgid "guestfs_launch"
29255 msgstr ""
29256
29257 #. type: verbatim
29258 #: ../src/guestfs-actions.pod:4098
29259 #, no-wrap
29260 msgid ""
29261 " int\n"
29262 " guestfs_launch (guestfs_h *g);\n"
29263 "\n"
29264 msgstr ""
29265
29266 #. type: =head2
29267 #: ../src/guestfs-actions.pod:4116
29268 msgid "guestfs_lchown"
29269 msgstr ""
29270
29271 #. type: verbatim
29272 #: ../src/guestfs-actions.pod:4118
29273 #, no-wrap
29274 msgid ""
29275 " int\n"
29276 " guestfs_lchown (guestfs_h *g,\n"
29277 "                 int owner,\n"
29278 "                 int group,\n"
29279 "                 const char *path);\n"
29280 "\n"
29281 msgstr ""
29282
29283 #. type: textblock
29284 #: ../src/guestfs-actions.pod:4124
29285 msgid ""
29286 "Change the file owner to C<owner> and group to C<group>.  This is like "
29287 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29288 "changed, not the target."
29289 msgstr ""
29290
29291 #. type: =head2
29292 #: ../src/guestfs-actions.pod:4136
29293 msgid "guestfs_lgetxattr"
29294 msgstr ""
29295
29296 #. type: verbatim
29297 #: ../src/guestfs-actions.pod:4138
29298 #, no-wrap
29299 msgid ""
29300 " char *\n"
29301 " guestfs_lgetxattr (guestfs_h *g,\n"
29302 "                    const char *path,\n"
29303 "                    const char *name,\n"
29304 "                    size_t *size_r);\n"
29305 "\n"
29306 msgstr ""
29307
29308 #. type: textblock
29309 #: ../src/guestfs-actions.pod:4158
29310 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29311 msgstr ""
29312
29313 #. type: =head2
29314 #: ../src/guestfs-actions.pod:4166
29315 msgid "guestfs_lgetxattrs"
29316 msgstr ""
29317
29318 #. type: verbatim
29319 #: ../src/guestfs-actions.pod:4168
29320 #, no-wrap
29321 msgid ""
29322 " struct guestfs_xattr_list *\n"
29323 " guestfs_lgetxattrs (guestfs_h *g,\n"
29324 "                     const char *path);\n"
29325 "\n"
29326 msgstr ""
29327
29328 #. type: textblock
29329 #: ../src/guestfs-actions.pod:4172
29330 msgid ""
29331 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29332 "then it returns the extended attributes of the link itself."
29333 msgstr ""
29334
29335 #. type: =head2
29336 #: ../src/guestfs-actions.pod:4182
29337 msgid "guestfs_list_9p"
29338 msgstr ""
29339
29340 #. type: verbatim
29341 #: ../src/guestfs-actions.pod:4184
29342 #, no-wrap
29343 msgid ""
29344 " char **\n"
29345 " guestfs_list_9p (guestfs_h *g);\n"
29346 "\n"
29347 msgstr ""
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:4196
29351 msgid "guestfs_list_devices"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:4198
29356 #, no-wrap
29357 msgid ""
29358 " char **\n"
29359 " guestfs_list_devices (guestfs_h *g);\n"
29360 "\n"
29361 msgstr ""
29362
29363 #. type: =head2
29364 #: ../src/guestfs-actions.pod:4213
29365 msgid "guestfs_list_dm_devices"
29366 msgstr ""
29367
29368 #. type: verbatim
29369 #: ../src/guestfs-actions.pod:4215
29370 #, no-wrap
29371 msgid ""
29372 " char **\n"
29373 " guestfs_list_dm_devices (guestfs_h *g);\n"
29374 "\n"
29375 msgstr ""
29376
29377 #. type: textblock
29378 #: ../src/guestfs-actions.pod:4220
29379 msgid ""
29380 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29381 "previous call to C<guestfs_luks_open>."
29382 msgstr ""
29383
29384 #. type: textblock
29385 #: ../src/guestfs-actions.pod:4223
29386 msgid ""
29387 "Device mapper devices which correspond to logical volumes are I<not> "
29388 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29389 "volumes."
29390 msgstr ""
29391
29392 #. type: textblock
29393 #: ../src/guestfs-actions.pod:4231 ../src/guestfs-actions.pod:5830
29394 msgid "(Added in 1.11.15)"
29395 msgstr ""
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:4233
29399 msgid "guestfs_list_filesystems"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:4235
29404 #, no-wrap
29405 msgid ""
29406 " char **\n"
29407 " guestfs_list_filesystems (guestfs_h *g);\n"
29408 "\n"
29409 msgstr ""
29410
29411 #. type: textblock
29412 #: ../src/guestfs-actions.pod:4255
29413 msgid ""
29414 "This command runs other libguestfs commands, which might include "
29415 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29416 "soon after launch and only when nothing is mounted."
29417 msgstr ""
29418
29419 #. type: textblock
29420 #: ../src/guestfs-actions.pod:4259
29421 msgid ""
29422 "Not all of the filesystems returned will be mountable.  In particular, swap "
29423 "partitions are returned in the list.  Also this command does not check that "
29424 "each filesystem found is valid and mountable, and some filesystems might be "
29425 "mountable but require special options.  Filesystems may not all belong to a "
29426 "single logical operating system (use C<guestfs_inspect_os> to look for "
29427 "OSes)."
29428 msgstr ""
29429
29430 #. type: textblock
29431 #: ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:6190
29432 msgid "(Added in 1.5.15)"
29433 msgstr ""
29434
29435 #. type: =head2
29436 #: ../src/guestfs-actions.pod:4275
29437 msgid "guestfs_list_md_devices"
29438 msgstr ""
29439
29440 #. type: verbatim
29441 #: ../src/guestfs-actions.pod:4277
29442 #, no-wrap
29443 msgid ""
29444 " char **\n"
29445 " guestfs_list_md_devices (guestfs_h *g);\n"
29446 "\n"
29447 msgstr ""
29448
29449 #. type: textblock
29450 #: ../src/guestfs-actions.pod:4286 ../src/guestfs-actions.pod:7851
29451 msgid "(Added in 1.15.4)"
29452 msgstr ""
29453
29454 #. type: =head2
29455 #: ../src/guestfs-actions.pod:4288
29456 msgid "guestfs_list_partitions"
29457 msgstr ""
29458
29459 #. type: verbatim
29460 #: ../src/guestfs-actions.pod:4290
29461 #, no-wrap
29462 msgid ""
29463 " char **\n"
29464 " guestfs_list_partitions (guestfs_h *g);\n"
29465 "\n"
29466 msgstr ""
29467
29468 #. type: textblock
29469 #: ../src/guestfs-actions.pod:4297
29470 msgid ""
29471 "This does not return logical volumes.  For that you will need to call "
29472 "C<guestfs_lvs>."
29473 msgstr ""
29474
29475 #. type: =head2
29476 #: ../src/guestfs-actions.pod:4308
29477 msgid "guestfs_ll"
29478 msgstr ""
29479
29480 #. type: verbatim
29481 #: ../src/guestfs-actions.pod:4310
29482 #, no-wrap
29483 msgid ""
29484 " char *\n"
29485 " guestfs_ll (guestfs_h *g,\n"
29486 "             const char *directory);\n"
29487 "\n"
29488 msgstr ""
29489
29490 #. type: =head2
29491 #: ../src/guestfs-actions.pod:4325
29492 msgid "guestfs_ln"
29493 msgstr ""
29494
29495 #. type: verbatim
29496 #: ../src/guestfs-actions.pod:4327
29497 #, no-wrap
29498 msgid ""
29499 " int\n"
29500 " guestfs_ln (guestfs_h *g,\n"
29501 "             const char *target,\n"
29502 "             const char *linkname);\n"
29503 "\n"
29504 msgstr ""
29505
29506 #. type: =head2
29507 #: ../src/guestfs-actions.pod:4338
29508 msgid "guestfs_ln_f"
29509 msgstr ""
29510
29511 #. type: verbatim
29512 #: ../src/guestfs-actions.pod:4340
29513 #, no-wrap
29514 msgid ""
29515 " int\n"
29516 " guestfs_ln_f (guestfs_h *g,\n"
29517 "               const char *target,\n"
29518 "               const char *linkname);\n"
29519 "\n"
29520 msgstr ""
29521
29522 #. type: =head2
29523 #: ../src/guestfs-actions.pod:4352
29524 msgid "guestfs_ln_s"
29525 msgstr ""
29526
29527 #. type: verbatim
29528 #: ../src/guestfs-actions.pod:4354
29529 #, no-wrap
29530 msgid ""
29531 " int\n"
29532 " guestfs_ln_s (guestfs_h *g,\n"
29533 "               const char *target,\n"
29534 "               const char *linkname);\n"
29535 "\n"
29536 msgstr ""
29537
29538 #. type: =head2
29539 #: ../src/guestfs-actions.pod:4365
29540 msgid "guestfs_ln_sf"
29541 msgstr ""
29542
29543 #. type: verbatim
29544 #: ../src/guestfs-actions.pod:4367
29545 #, no-wrap
29546 msgid ""
29547 " int\n"
29548 " guestfs_ln_sf (guestfs_h *g,\n"
29549 "                const char *target,\n"
29550 "                const char *linkname);\n"
29551 "\n"
29552 msgstr ""
29553
29554 #. type: =head2
29555 #: ../src/guestfs-actions.pod:4379
29556 msgid "guestfs_lremovexattr"
29557 msgstr ""
29558
29559 #. type: verbatim
29560 #: ../src/guestfs-actions.pod:4381
29561 #, no-wrap
29562 msgid ""
29563 " int\n"
29564 " guestfs_lremovexattr (guestfs_h *g,\n"
29565 "                       const char *xattr,\n"
29566 "                       const char *path);\n"
29567 "\n"
29568 msgstr ""
29569
29570 #. type: textblock
29571 #: ../src/guestfs-actions.pod:4386
29572 msgid ""
29573 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29574 "link, then it removes an extended attribute of the link itself."
29575 msgstr ""
29576
29577 #. type: =head2
29578 #: ../src/guestfs-actions.pod:4394
29579 msgid "guestfs_ls"
29580 msgstr ""
29581
29582 #. type: verbatim
29583 #: ../src/guestfs-actions.pod:4396
29584 #, no-wrap
29585 msgid ""
29586 " char **\n"
29587 " guestfs_ls (guestfs_h *g,\n"
29588 "             const char *directory);\n"
29589 "\n"
29590 msgstr ""
29591
29592 #. type: textblock
29593 #: ../src/guestfs-actions.pod:4404
29594 msgid ""
29595 "This command is mostly useful for interactive sessions.  Programs should "
29596 "probably use C<guestfs_readdir> instead."
29597 msgstr ""
29598
29599 #. type: =head2
29600 #: ../src/guestfs-actions.pod:4413
29601 msgid "guestfs_lsetxattr"
29602 msgstr ""
29603
29604 #. type: verbatim
29605 #: ../src/guestfs-actions.pod:4415
29606 #, no-wrap
29607 msgid ""
29608 " int\n"
29609 " guestfs_lsetxattr (guestfs_h *g,\n"
29610 "                    const char *xattr,\n"
29611 "                    const char *val,\n"
29612 "                    int vallen,\n"
29613 "                    const char *path);\n"
29614 "\n"
29615 msgstr ""
29616
29617 #. type: textblock
29618 #: ../src/guestfs-actions.pod:4422
29619 msgid ""
29620 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29621 "then it sets an extended attribute of the link itself."
29622 msgstr ""
29623
29624 #. type: =head2
29625 #: ../src/guestfs-actions.pod:4430
29626 msgid "guestfs_lstat"
29627 msgstr ""
29628
29629 #. type: verbatim
29630 #: ../src/guestfs-actions.pod:4432
29631 #, no-wrap
29632 msgid ""
29633 " struct guestfs_stat *\n"
29634 " guestfs_lstat (guestfs_h *g,\n"
29635 "                const char *path);\n"
29636 "\n"
29637 msgstr ""
29638
29639 #. type: textblock
29640 #: ../src/guestfs-actions.pod:4438
29641 msgid ""
29642 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29643 "link, then the link is stat-ed, not the file it refers to."
29644 msgstr ""
29645
29646 #. type: textblock
29647 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:7370
29648 msgid ""
29649 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29650 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29651 msgstr ""
29652
29653 #. type: textblock
29654 #: ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:7374 ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7895
29655 msgid "(Added in 0.9.2)"
29656 msgstr ""
29657
29658 #. type: =head2
29659 #: ../src/guestfs-actions.pod:4450
29660 msgid "guestfs_lstatlist"
29661 msgstr ""
29662
29663 #. type: verbatim
29664 #: ../src/guestfs-actions.pod:4452
29665 #, no-wrap
29666 msgid ""
29667 " struct guestfs_stat_list *\n"
29668 " guestfs_lstatlist (guestfs_h *g,\n"
29669 "                    const char *path,\n"
29670 "                    char *const *names);\n"
29671 "\n"
29672 msgstr ""
29673
29674 #. type: textblock
29675 #: ../src/guestfs-actions.pod:4457
29676 msgid ""
29677 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29678 "files, where all files are in the directory C<path>.  C<names> is the list "
29679 "of files from this directory."
29680 msgstr ""
29681
29682 #. type: textblock
29683 #: ../src/guestfs-actions.pod:4466
29684 msgid ""
29685 "This call is intended for programs that want to efficiently list a directory "
29686 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29687 "for a similarly efficient call for getting extended attributes.  Very long "
29688 "directory listings might cause the protocol message size to be exceeded, "
29689 "causing this call to fail.  The caller must split up such requests into "
29690 "smaller groups of names."
29691 msgstr ""
29692
29693 #. type: textblock
29694 #: ../src/guestfs-actions.pod:4474
29695 msgid ""
29696 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29697 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29698 msgstr ""
29699
29700 #. type: =head2
29701 #: ../src/guestfs-actions.pod:4480
29702 msgid "guestfs_luks_add_key"
29703 msgstr ""
29704
29705 #. type: verbatim
29706 #: ../src/guestfs-actions.pod:4482
29707 #, no-wrap
29708 msgid ""
29709 " int\n"
29710 " guestfs_luks_add_key (guestfs_h *g,\n"
29711 "                       const char *device,\n"
29712 "                       const char *key,\n"
29713 "                       const char *newkey,\n"
29714 "                       int keyslot);\n"
29715 "\n"
29716 msgstr ""
29717
29718 #. type: textblock
29719 #: ../src/guestfs-actions.pod:4494
29720 msgid ""
29721 "Note that if C<keyslot> already contains a key, then this command will "
29722 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29723 msgstr ""
29724
29725 #. type: textblock
29726 #: ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:4537 ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4577 ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4631
29727 msgid ""
29728 "This function takes a key or passphrase parameter which could contain "
29729 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29730 "information."
29731 msgstr ""
29732
29733 #. type: textblock
29734 #: ../src/guestfs-actions.pod:4504 ../src/guestfs-actions.pod:4541 ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4581
29735 msgid "(Added in 1.5.2)"
29736 msgstr ""
29737
29738 #. type: =head2
29739 #: ../src/guestfs-actions.pod:4506
29740 msgid "guestfs_luks_close"
29741 msgstr ""
29742
29743 #. type: verbatim
29744 #: ../src/guestfs-actions.pod:4508
29745 #, no-wrap
29746 msgid ""
29747 " int\n"
29748 " guestfs_luks_close (guestfs_h *g,\n"
29749 "                     const char *device);\n"
29750 "\n"
29751 msgstr ""
29752
29753 #. type: textblock
29754 #: ../src/guestfs-actions.pod:4512
29755 msgid ""
29756 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29757 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29758 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29759 "underlying block device."
29760 msgstr ""
29761
29762 #. type: textblock
29763 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:4685 ../src/guestfs-actions.pod:4730
29764 msgid "(Added in 1.5.1)"
29765 msgstr ""
29766
29767 #. type: =head2
29768 #: ../src/guestfs-actions.pod:4522
29769 msgid "guestfs_luks_format"
29770 msgstr ""
29771
29772 #. type: verbatim
29773 #: ../src/guestfs-actions.pod:4524
29774 #, no-wrap
29775 msgid ""
29776 " int\n"
29777 " guestfs_luks_format (guestfs_h *g,\n"
29778 "                      const char *device,\n"
29779 "                      const char *key,\n"
29780 "                      int keyslot);\n"
29781 "\n"
29782 msgstr ""
29783
29784 #. type: =head2
29785 #: ../src/guestfs-actions.pod:4543
29786 msgid "guestfs_luks_format_cipher"
29787 msgstr ""
29788
29789 #. type: verbatim
29790 #: ../src/guestfs-actions.pod:4545
29791 #, no-wrap
29792 msgid ""
29793 " int\n"
29794 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29795 "                             const char *device,\n"
29796 "                             const char *key,\n"
29797 "                             int keyslot,\n"
29798 "                             const char *cipher);\n"
29799 "\n"
29800 msgstr ""
29801
29802 #. type: textblock
29803 #: ../src/guestfs-actions.pod:4552
29804 msgid ""
29805 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29806 "set the C<cipher> used."
29807 msgstr ""
29808
29809 #. type: =head2
29810 #: ../src/guestfs-actions.pod:4563
29811 msgid "guestfs_luks_kill_slot"
29812 msgstr ""
29813
29814 #. type: verbatim
29815 #: ../src/guestfs-actions.pod:4565
29816 #, no-wrap
29817 msgid ""
29818 " int\n"
29819 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29820 "                         const char *device,\n"
29821 "                         const char *key,\n"
29822 "                         int keyslot);\n"
29823 "\n"
29824 msgstr ""
29825
29826 #. type: =head2
29827 #: ../src/guestfs-actions.pod:4583
29828 msgid "guestfs_luks_open"
29829 msgstr ""
29830
29831 #. type: verbatim
29832 #: ../src/guestfs-actions.pod:4585
29833 #, no-wrap
29834 msgid ""
29835 " int\n"
29836 " guestfs_luks_open (guestfs_h *g,\n"
29837 "                    const char *device,\n"
29838 "                    const char *key,\n"
29839 "                    const char *mapname);\n"
29840 "\n"
29841 msgstr ""
29842
29843 #. type: textblock
29844 #: ../src/guestfs-actions.pod:4603
29845 msgid ""
29846 "If this block device contains LVM volume groups, then calling "
29847 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29848 "visible."
29849 msgstr ""
29850
29851 #. type: textblock
29852 #: ../src/guestfs-actions.pod:4607
29853 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29854 msgstr ""
29855
29856 #. type: =head2
29857 #: ../src/guestfs-actions.pod:4618
29858 msgid "guestfs_luks_open_ro"
29859 msgstr ""
29860
29861 #. type: verbatim
29862 #: ../src/guestfs-actions.pod:4620
29863 #, no-wrap
29864 msgid ""
29865 " int\n"
29866 " guestfs_luks_open_ro (guestfs_h *g,\n"
29867 "                       const char *device,\n"
29868 "                       const char *key,\n"
29869 "                       const char *mapname);\n"
29870 "\n"
29871 msgstr ""
29872
29873 #. type: textblock
29874 #: ../src/guestfs-actions.pod:4626
29875 msgid ""
29876 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29877 "created."
29878 msgstr ""
29879
29880 #. type: =head2
29881 #: ../src/guestfs-actions.pod:4637
29882 msgid "guestfs_lvcreate"
29883 msgstr ""
29884
29885 #. type: verbatim
29886 #: ../src/guestfs-actions.pod:4639
29887 #, no-wrap
29888 msgid ""
29889 " int\n"
29890 " guestfs_lvcreate (guestfs_h *g,\n"
29891 "                   const char *logvol,\n"
29892 "                   const char *volgroup,\n"
29893 "                   int mbytes);\n"
29894 "\n"
29895 msgstr ""
29896
29897 #. type: =head2
29898 #: ../src/guestfs-actions.pod:4652
29899 msgid "guestfs_lvm_canonical_lv_name"
29900 msgstr ""
29901
29902 #. type: verbatim
29903 #: ../src/guestfs-actions.pod:4654
29904 #, no-wrap
29905 msgid ""
29906 " char *\n"
29907 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29908 "                                const char *lvname);\n"
29909 "\n"
29910 msgstr ""
29911
29912 #. type: textblock
29913 #: ../src/guestfs-actions.pod:4665
29914 msgid "See also C<guestfs_is_lv>."
29915 msgstr ""
29916
29917 #. type: textblock
29918 #: ../src/guestfs-actions.pod:4670
29919 msgid "(Added in 1.5.24)"
29920 msgstr ""
29921
29922 #. type: =head2
29923 #: ../src/guestfs-actions.pod:4672
29924 msgid "guestfs_lvm_clear_filter"
29925 msgstr ""
29926
29927 #. type: verbatim
29928 #: ../src/guestfs-actions.pod:4674
29929 #, no-wrap
29930 msgid ""
29931 " int\n"
29932 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29933 "\n"
29934 msgstr ""
29935
29936 #. type: textblock
29937 #: ../src/guestfs-actions.pod:4677
29938 msgid ""
29939 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29940 "see every block device."
29941 msgstr ""
29942
29943 #. type: =head2
29944 #: ../src/guestfs-actions.pod:4687
29945 msgid "guestfs_lvm_remove_all"
29946 msgstr ""
29947
29948 #. type: verbatim
29949 #: ../src/guestfs-actions.pod:4689
29950 #, no-wrap
29951 msgid ""
29952 " int\n"
29953 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29954 "\n"
29955 msgstr ""
29956
29957 #. type: =head2
29958 #: ../src/guestfs-actions.pod:4699
29959 msgid "guestfs_lvm_set_filter"
29960 msgstr ""
29961
29962 #. type: verbatim
29963 #: ../src/guestfs-actions.pod:4701
29964 #, no-wrap
29965 msgid ""
29966 " int\n"
29967 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29968 "                         char *const *devices);\n"
29969 "\n"
29970 msgstr ""
29971
29972 #. type: =head2
29973 #: ../src/guestfs-actions.pod:4732
29974 msgid "guestfs_lvremove"
29975 msgstr ""
29976
29977 #. type: verbatim
29978 #: ../src/guestfs-actions.pod:4734
29979 #, no-wrap
29980 msgid ""
29981 " int\n"
29982 " guestfs_lvremove (guestfs_h *g,\n"
29983 "                   const char *device);\n"
29984 "\n"
29985 msgstr ""
29986
29987 #. type: textblock
29988 #: ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:6305 ../src/guestfs-actions.pod:8265
29989 msgid "(Added in 1.0.13)"
29990 msgstr ""
29991
29992 #. type: =head2
29993 #: ../src/guestfs-actions.pod:4748
29994 msgid "guestfs_lvrename"
29995 msgstr ""
29996
29997 #. type: verbatim
29998 #: ../src/guestfs-actions.pod:4750
29999 #, no-wrap
30000 msgid ""
30001 " int\n"
30002 " guestfs_lvrename (guestfs_h *g,\n"
30003 "                   const char *logvol,\n"
30004 "                   const char *newlogvol);\n"
30005 "\n"
30006 msgstr ""
30007
30008 #. type: textblock
30009 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:8278
30010 msgid "(Added in 1.0.83)"
30011 msgstr ""
30012
30013 #. type: =head2
30014 #: ../src/guestfs-actions.pod:4761
30015 msgid "guestfs_lvresize"
30016 msgstr ""
30017
30018 #. type: verbatim
30019 #: ../src/guestfs-actions.pod:4763
30020 #, no-wrap
30021 msgid ""
30022 " int\n"
30023 " guestfs_lvresize (guestfs_h *g,\n"
30024 "                   const char *device,\n"
30025 "                   int mbytes);\n"
30026 "\n"
30027 msgstr ""
30028
30029 #. type: =head2
30030 #: ../src/guestfs-actions.pod:4776
30031 msgid "guestfs_lvresize_free"
30032 msgstr ""
30033
30034 #. type: verbatim
30035 #: ../src/guestfs-actions.pod:4778
30036 #, no-wrap
30037 msgid ""
30038 " int\n"
30039 " guestfs_lvresize_free (guestfs_h *g,\n"
30040 "                        const char *lv,\n"
30041 "                        int percent);\n"
30042 "\n"
30043 msgstr ""
30044
30045 #. type: textblock
30046 #: ../src/guestfs-actions.pod:4791
30047 msgid "(Added in 1.3.3)"
30048 msgstr ""
30049
30050 #. type: =head2
30051 #: ../src/guestfs-actions.pod:4793
30052 msgid "guestfs_lvs"
30053 msgstr ""
30054
30055 #. type: verbatim
30056 #: ../src/guestfs-actions.pod:4795
30057 #, no-wrap
30058 msgid ""
30059 " char **\n"
30060 " guestfs_lvs (guestfs_h *g);\n"
30061 "\n"
30062 msgstr ""
30063
30064 #. type: textblock
30065 #: ../src/guestfs-actions.pod:4804
30066 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30067 msgstr ""
30068
30069 #. type: =head2
30070 #: ../src/guestfs-actions.pod:4812
30071 msgid "guestfs_lvs_full"
30072 msgstr ""
30073
30074 #. type: verbatim
30075 #: ../src/guestfs-actions.pod:4814
30076 #, no-wrap
30077 msgid ""
30078 " struct guestfs_lvm_lv_list *\n"
30079 " guestfs_lvs_full (guestfs_h *g);\n"
30080 "\n"
30081 msgstr ""
30082
30083 #. type: textblock
30084 #: ../src/guestfs-actions.pod:4820
30085 msgid ""
30086 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30087 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
30088 "use>."
30089 msgstr ""
30090
30091 #. type: =head2
30092 #: ../src/guestfs-actions.pod:4826
30093 msgid "guestfs_lvuuid"
30094 msgstr ""
30095
30096 #. type: verbatim
30097 #: ../src/guestfs-actions.pod:4828
30098 #, no-wrap
30099 msgid ""
30100 " char *\n"
30101 " guestfs_lvuuid (guestfs_h *g,\n"
30102 "                 const char *device);\n"
30103 "\n"
30104 msgstr ""
30105
30106 #. type: =head2
30107 #: ../src/guestfs-actions.pod:4839
30108 msgid "guestfs_lxattrlist"
30109 msgstr ""
30110
30111 #. type: verbatim
30112 #: ../src/guestfs-actions.pod:4841
30113 #, no-wrap
30114 msgid ""
30115 " struct guestfs_xattr_list *\n"
30116 " guestfs_lxattrlist (guestfs_h *g,\n"
30117 "                     const char *path,\n"
30118 "                     char *const *names);\n"
30119 "\n"
30120 msgstr ""
30121
30122 #. type: textblock
30123 #: ../src/guestfs-actions.pod:4860
30124 msgid ""
30125 "This call is intended for programs that want to efficiently list a directory "
30126 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30127 "a similarly efficient call for getting standard stats.  Very long directory "
30128 "listings might cause the protocol message size to be exceeded, causing this "
30129 "call to fail.  The caller must split up such requests into smaller groups of "
30130 "names."
30131 msgstr ""
30132
30133 #. type: =head2
30134 #: ../src/guestfs-actions.pod:4874
30135 msgid "guestfs_md_create"
30136 msgstr ""
30137
30138 #. type: verbatim
30139 #: ../src/guestfs-actions.pod:4876
30140 #, no-wrap
30141 msgid ""
30142 " int\n"
30143 " guestfs_md_create (guestfs_h *g,\n"
30144 "                    const char *name,\n"
30145 "                    char *const *devices,\n"
30146 "                    ...);\n"
30147 "\n"
30148 msgstr ""
30149
30150 #. type: verbatim
30151 #: ../src/guestfs-actions.pod:4887
30152 #, no-wrap
30153 msgid ""
30154 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
30155 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
30156 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
30157 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
30158 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
30159 "\n"
30160 msgstr ""
30161
30162 #. type: =head2
30163 #: ../src/guestfs-actions.pod:4949
30164 msgid "guestfs_md_create_va"
30165 msgstr ""
30166
30167 #. type: verbatim
30168 #: ../src/guestfs-actions.pod:4951
30169 #, no-wrap
30170 msgid ""
30171 " int\n"
30172 " guestfs_md_create_va (guestfs_h *g,\n"
30173 "                       const char *name,\n"
30174 "                       char *const *devices,\n"
30175 "                       va_list args);\n"
30176 "\n"
30177 msgstr ""
30178
30179 #. type: textblock
30180 #: ../src/guestfs-actions.pod:4957
30181 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
30182 msgstr ""
30183
30184 #. type: =head2
30185 #: ../src/guestfs-actions.pod:4961
30186 msgid "guestfs_md_create_argv"
30187 msgstr ""
30188
30189 #. type: verbatim
30190 #: ../src/guestfs-actions.pod:4963
30191 #, no-wrap
30192 msgid ""
30193 " int\n"
30194 " guestfs_md_create_argv (guestfs_h *g,\n"
30195 "                         const char *name,\n"
30196 "                         char *const *devices,\n"
30197 "                         const struct guestfs_md_create_argv *optargs);\n"
30198 "\n"
30199 msgstr ""
30200
30201 #. type: textblock
30202 #: ../src/guestfs-actions.pod:4969
30203 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
30204 msgstr ""
30205
30206 #. type: =head2
30207 #: ../src/guestfs-actions.pod:4973
30208 msgid "guestfs_md_detail"
30209 msgstr ""
30210
30211 #. type: verbatim
30212 #: ../src/guestfs-actions.pod:4975
30213 #, no-wrap
30214 msgid ""
30215 " char **\n"
30216 " guestfs_md_detail (guestfs_h *g,\n"
30217 "                    const char *md);\n"
30218 "\n"
30219 msgstr ""
30220
30221 #. type: =head2
30222 #: ../src/guestfs-actions.pod:5012
30223 msgid "guestfs_md_stop"
30224 msgstr ""
30225
30226 #. type: verbatim
30227 #: ../src/guestfs-actions.pod:5014
30228 #, no-wrap
30229 msgid ""
30230 " int\n"
30231 " guestfs_md_stop (guestfs_h *g,\n"
30232 "                  const char *md);\n"
30233 "\n"
30234 msgstr ""
30235
30236 #. type: =head2
30237 #: ../src/guestfs-actions.pod:5023
30238 msgid "guestfs_mkdir"
30239 msgstr ""
30240
30241 #. type: verbatim
30242 #: ../src/guestfs-actions.pod:5025
30243 #, no-wrap
30244 msgid ""
30245 " int\n"
30246 " guestfs_mkdir (guestfs_h *g,\n"
30247 "                const char *path);\n"
30248 "\n"
30249 msgstr ""
30250
30251 #. type: =head2
30252 #: ../src/guestfs-actions.pod:5035
30253 msgid "guestfs_mkdir_mode"
30254 msgstr ""
30255
30256 #. type: verbatim
30257 #: ../src/guestfs-actions.pod:5037
30258 #, no-wrap
30259 msgid ""
30260 " int\n"
30261 " guestfs_mkdir_mode (guestfs_h *g,\n"
30262 "                     const char *path,\n"
30263 "                     int mode);\n"
30264 "\n"
30265 msgstr ""
30266
30267 #. type: textblock
30268 #: ../src/guestfs-actions.pod:5049
30269 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30270 msgstr ""
30271
30272 #. type: =head2
30273 #: ../src/guestfs-actions.pod:5055
30274 msgid "guestfs_mkdir_p"
30275 msgstr ""
30276
30277 #. type: verbatim
30278 #: ../src/guestfs-actions.pod:5057
30279 #, no-wrap
30280 msgid ""
30281 " int\n"
30282 " guestfs_mkdir_p (guestfs_h *g,\n"
30283 "                  const char *path);\n"
30284 "\n"
30285 msgstr ""
30286
30287 #. type: =head2
30288 #: ../src/guestfs-actions.pod:5068
30289 msgid "guestfs_mkdtemp"
30290 msgstr ""
30291
30292 #. type: verbatim
30293 #: ../src/guestfs-actions.pod:5070
30294 #, no-wrap
30295 msgid ""
30296 " char *\n"
30297 " guestfs_mkdtemp (guestfs_h *g,\n"
30298 "                  const char *template);\n"
30299 "\n"
30300 msgstr ""
30301
30302 #. type: =head2
30303 #: ../src/guestfs-actions.pod:5098
30304 msgid "guestfs_mke2fs_J"
30305 msgstr ""
30306
30307 #. type: verbatim
30308 #: ../src/guestfs-actions.pod:5100
30309 #, no-wrap
30310 msgid ""
30311 " int\n"
30312 " guestfs_mke2fs_J (guestfs_h *g,\n"
30313 "                   const char *fstype,\n"
30314 "                   int blocksize,\n"
30315 "                   const char *device,\n"
30316 "                   const char *journal);\n"
30317 "\n"
30318 msgstr ""
30319
30320 #. type: textblock
30321 #: ../src/guestfs-actions.pod:5113
30322 msgid "See also C<guestfs_mke2journal>."
30323 msgstr ""
30324
30325 #. type: textblock
30326 #: ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5197 ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5533
30327 msgid "(Added in 1.0.68)"
30328 msgstr ""
30329
30330 #. type: =head2
30331 #: ../src/guestfs-actions.pod:5119
30332 msgid "guestfs_mke2fs_JL"
30333 msgstr ""
30334
30335 #. type: verbatim
30336 #: ../src/guestfs-actions.pod:5121
30337 #, no-wrap
30338 msgid ""
30339 " int\n"
30340 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30341 "                    const char *fstype,\n"
30342 "                    int blocksize,\n"
30343 "                    const char *device,\n"
30344 "                    const char *label);\n"
30345 "\n"
30346 msgstr ""
30347
30348 #. type: textblock
30349 #: ../src/guestfs-actions.pod:5131
30350 msgid "See also C<guestfs_mke2journal_L>."
30351 msgstr ""
30352
30353 #. type: =head2
30354 #: ../src/guestfs-actions.pod:5137
30355 msgid "guestfs_mke2fs_JU"
30356 msgstr ""
30357
30358 #. type: verbatim
30359 #: ../src/guestfs-actions.pod:5139
30360 #, no-wrap
30361 msgid ""
30362 " int\n"
30363 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30364 "                    const char *fstype,\n"
30365 "                    int blocksize,\n"
30366 "                    const char *device,\n"
30367 "                    const char *uuid);\n"
30368 "\n"
30369 msgstr ""
30370
30371 #. type: textblock
30372 #: ../src/guestfs-actions.pod:5149
30373 msgid "See also C<guestfs_mke2journal_U>."
30374 msgstr ""
30375
30376 #. type: =head2
30377 #: ../src/guestfs-actions.pod:5155
30378 msgid "guestfs_mke2journal"
30379 msgstr ""
30380
30381 #. type: verbatim
30382 #: ../src/guestfs-actions.pod:5157
30383 #, no-wrap
30384 msgid ""
30385 " int\n"
30386 " guestfs_mke2journal (guestfs_h *g,\n"
30387 "                      int blocksize,\n"
30388 "                      const char *device);\n"
30389 "\n"
30390 msgstr ""
30391
30392 #. type: =head2
30393 #: ../src/guestfs-actions.pod:5171
30394 msgid "guestfs_mke2journal_L"
30395 msgstr ""
30396
30397 #. type: verbatim
30398 #: ../src/guestfs-actions.pod:5173
30399 #, no-wrap
30400 msgid ""
30401 " int\n"
30402 " guestfs_mke2journal_L (guestfs_h *g,\n"
30403 "                        int blocksize,\n"
30404 "                        const char *label,\n"
30405 "                        const char *device);\n"
30406 "\n"
30407 msgstr ""
30408
30409 #. type: =head2
30410 #: ../src/guestfs-actions.pod:5185
30411 msgid "guestfs_mke2journal_U"
30412 msgstr ""
30413
30414 #. type: verbatim
30415 #: ../src/guestfs-actions.pod:5187
30416 #, no-wrap
30417 msgid ""
30418 " int\n"
30419 " guestfs_mke2journal_U (guestfs_h *g,\n"
30420 "                        int blocksize,\n"
30421 "                        const char *uuid,\n"
30422 "                        const char *device);\n"
30423 "\n"
30424 msgstr ""
30425
30426 #. type: =head2
30427 #: ../src/guestfs-actions.pod:5199
30428 msgid "guestfs_mkfifo"
30429 msgstr ""
30430
30431 #. type: verbatim
30432 #: ../src/guestfs-actions.pod:5201
30433 #, no-wrap
30434 msgid ""
30435 " int\n"
30436 " guestfs_mkfifo (guestfs_h *g,\n"
30437 "                 int mode,\n"
30438 "                 const char *path);\n"
30439 "\n"
30440 msgstr ""
30441
30442 #. type: textblock
30443 #: ../src/guestfs-actions.pod:5206
30444 msgid ""
30445 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30446 "is just a convenient wrapper around C<guestfs_mknod>."
30447 msgstr ""
30448
30449 #. type: =head2
30450 #: ../src/guestfs-actions.pod:5216
30451 msgid "guestfs_mkfs"
30452 msgstr ""
30453
30454 #. type: verbatim
30455 #: ../src/guestfs-actions.pod:5218
30456 #, no-wrap
30457 msgid ""
30458 " int\n"
30459 " guestfs_mkfs (guestfs_h *g,\n"
30460 "               const char *fstype,\n"
30461 "               const char *device);\n"
30462 "\n"
30463 msgstr ""
30464
30465 #. type: =head2
30466 #: ../src/guestfs-actions.pod:5231
30467 msgid "guestfs_mkfs_b"
30468 msgstr ""
30469
30470 #. type: verbatim
30471 #: ../src/guestfs-actions.pod:5233
30472 #, no-wrap
30473 msgid ""
30474 " int\n"
30475 " guestfs_mkfs_b (guestfs_h *g,\n"
30476 "                 const char *fstype,\n"
30477 "                 int blocksize,\n"
30478 "                 const char *device);\n"
30479 "\n"
30480 msgstr ""
30481
30482 #. type: textblock
30483 #: ../src/guestfs-actions.pod:5239
30484 msgid ""
30485 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30486 "call instead."
30487 msgstr ""
30488
30489 #. type: textblock
30490 #: ../src/guestfs-actions.pod:5246
30491 msgid ""
30492 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30493 "block size of the resulting filesystem.  Supported block sizes depend on the "
30494 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30495 msgstr ""
30496
30497 #. type: =head2
30498 #: ../src/guestfs-actions.pod:5258
30499 msgid "guestfs_mkfs_opts"
30500 msgstr ""
30501
30502 #. type: verbatim
30503 #: ../src/guestfs-actions.pod:5260
30504 #, no-wrap
30505 msgid ""
30506 " int\n"
30507 " guestfs_mkfs_opts (guestfs_h *g,\n"
30508 "                    const char *fstype,\n"
30509 "                    const char *device,\n"
30510 "                    ...);\n"
30511 "\n"
30512 msgstr ""
30513
30514 #. type: verbatim
30515 #: ../src/guestfs-actions.pod:5271
30516 #, no-wrap
30517 msgid ""
30518 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30519 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30520 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30521 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30522 "\n"
30523 msgstr ""
30524
30525 #. type: textblock
30526 #: ../src/guestfs-actions.pod:5319
30527 msgid "(Added in 1.7.19)"
30528 msgstr ""
30529
30530 #. type: =head2
30531 #: ../src/guestfs-actions.pod:5321
30532 msgid "guestfs_mkfs_opts_va"
30533 msgstr ""
30534
30535 #. type: verbatim
30536 #: ../src/guestfs-actions.pod:5323
30537 #, no-wrap
30538 msgid ""
30539 " int\n"
30540 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30541 "                       const char *fstype,\n"
30542 "                       const char *device,\n"
30543 "                       va_list args);\n"
30544 "\n"
30545 msgstr ""
30546
30547 #. type: textblock
30548 #: ../src/guestfs-actions.pod:5329
30549 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30550 msgstr ""
30551
30552 #. type: =head2
30553 #: ../src/guestfs-actions.pod:5333
30554 msgid "guestfs_mkfs_opts_argv"
30555 msgstr ""
30556
30557 #. type: verbatim
30558 #: ../src/guestfs-actions.pod:5335
30559 #, no-wrap
30560 msgid ""
30561 " int\n"
30562 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30563 "                         const char *fstype,\n"
30564 "                         const char *device,\n"
30565 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30566 "\n"
30567 msgstr ""
30568
30569 #. type: textblock
30570 #: ../src/guestfs-actions.pod:5341
30571 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30572 msgstr ""
30573
30574 #. type: =head2
30575 #: ../src/guestfs-actions.pod:5345
30576 msgid "guestfs_mkmountpoint"
30577 msgstr ""
30578
30579 #. type: verbatim
30580 #: ../src/guestfs-actions.pod:5347
30581 #, no-wrap
30582 msgid ""
30583 " int\n"
30584 " guestfs_mkmountpoint (guestfs_h *g,\n"
30585 "                       const char *exemptpath);\n"
30586 "\n"
30587 msgstr ""
30588
30589 #. type: textblock
30590 #: ../src/guestfs-actions.pod:5351
30591 msgid ""
30592 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30593 "that can be used to create extra mountpoints before mounting the first "
30594 "filesystem."
30595 msgstr ""
30596
30597 #. type: textblock
30598 #: ../src/guestfs-actions.pod:5375
30599 msgid ""
30600 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30601 "may get unexpected errors if you try to mix these calls.  It is safest to "
30602 "manually unmount filesystems and remove mountpoints after use."
30603 msgstr ""
30604
30605 #. type: textblock
30606 #: ../src/guestfs-actions.pod:5379
30607 msgid ""
30608 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30609 "first, so for this to work for manual mountpoints, you must ensure that the "
30610 "innermost mountpoints have the longest pathnames, as in the example code "
30611 "above."
30612 msgstr ""
30613
30614 #. type: textblock
30615 #: ../src/guestfs-actions.pod:5386
30616 msgid ""
30617 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30618 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30619 "can also trigger these issues."
30620 msgstr ""
30621
30622 #. type: textblock
30623 #: ../src/guestfs-actions.pod:5392 ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:6725
30624 msgid "(Added in 1.0.62)"
30625 msgstr ""
30626
30627 #. type: =head2
30628 #: ../src/guestfs-actions.pod:5394
30629 msgid "guestfs_mknod"
30630 msgstr ""
30631
30632 #. type: verbatim
30633 #: ../src/guestfs-actions.pod:5396
30634 #, no-wrap
30635 msgid ""
30636 " int\n"
30637 " guestfs_mknod (guestfs_h *g,\n"
30638 "                int mode,\n"
30639 "                int devmajor,\n"
30640 "                int devminor,\n"
30641 "                const char *path);\n"
30642 "\n"
30643 msgstr ""
30644
30645 #. type: textblock
30646 #: ../src/guestfs-actions.pod:5411
30647 msgid ""
30648 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30649 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30650 "regular file).  These constants are available in the standard Linux header "
30651 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30652 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30653 "the appropriate constant for you."
30654 msgstr ""
30655
30656 #. type: =head2
30657 #: ../src/guestfs-actions.pod:5425
30658 msgid "guestfs_mknod_b"
30659 msgstr ""
30660
30661 #. type: verbatim
30662 #: ../src/guestfs-actions.pod:5427
30663 #, no-wrap
30664 msgid ""
30665 " int\n"
30666 " guestfs_mknod_b (guestfs_h *g,\n"
30667 "                  int mode,\n"
30668 "                  int devmajor,\n"
30669 "                  int devminor,\n"
30670 "                  const char *path);\n"
30671 "\n"
30672 msgstr ""
30673
30674 #. type: textblock
30675 #: ../src/guestfs-actions.pod:5434
30676 msgid ""
30677 "This call creates a block device node called C<path> with mode C<mode> and "
30678 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30679 "wrapper around C<guestfs_mknod>."
30680 msgstr ""
30681
30682 #. type: =head2
30683 #: ../src/guestfs-actions.pod:5444
30684 msgid "guestfs_mknod_c"
30685 msgstr ""
30686
30687 #. type: verbatim
30688 #: ../src/guestfs-actions.pod:5446
30689 #, no-wrap
30690 msgid ""
30691 " int\n"
30692 " guestfs_mknod_c (guestfs_h *g,\n"
30693 "                  int mode,\n"
30694 "                  int devmajor,\n"
30695 "                  int devminor,\n"
30696 "                  const char *path);\n"
30697 "\n"
30698 msgstr ""
30699
30700 #. type: textblock
30701 #: ../src/guestfs-actions.pod:5453
30702 msgid ""
30703 "This call creates a char device node called C<path> with mode C<mode> and "
30704 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30705 "wrapper around C<guestfs_mknod>."
30706 msgstr ""
30707
30708 #. type: =head2
30709 #: ../src/guestfs-actions.pod:5463
30710 msgid "guestfs_mkswap"
30711 msgstr ""
30712
30713 #. type: verbatim
30714 #: ../src/guestfs-actions.pod:5465
30715 #, no-wrap
30716 msgid ""
30717 " int\n"
30718 " guestfs_mkswap (guestfs_h *g,\n"
30719 "                 const char *device);\n"
30720 "\n"
30721 msgstr ""
30722
30723 #. type: =head2
30724 #: ../src/guestfs-actions.pod:5475
30725 msgid "guestfs_mkswap_L"
30726 msgstr ""
30727
30728 #. type: verbatim
30729 #: ../src/guestfs-actions.pod:5477
30730 #, no-wrap
30731 msgid ""
30732 " int\n"
30733 " guestfs_mkswap_L (guestfs_h *g,\n"
30734 "                   const char *label,\n"
30735 "                   const char *device);\n"
30736 "\n"
30737 msgstr ""
30738
30739 #. type: =head2
30740 #: ../src/guestfs-actions.pod:5492
30741 msgid "guestfs_mkswap_U"
30742 msgstr ""
30743
30744 #. type: verbatim
30745 #: ../src/guestfs-actions.pod:5494
30746 #, no-wrap
30747 msgid ""
30748 " int\n"
30749 " guestfs_mkswap_U (guestfs_h *g,\n"
30750 "                   const char *uuid,\n"
30751 "                   const char *device);\n"
30752 "\n"
30753 msgstr ""
30754
30755 #. type: =head2
30756 #: ../src/guestfs-actions.pod:5505
30757 msgid "guestfs_mkswap_file"
30758 msgstr ""
30759
30760 #. type: verbatim
30761 #: ../src/guestfs-actions.pod:5507
30762 #, no-wrap
30763 msgid ""
30764 " int\n"
30765 " guestfs_mkswap_file (guestfs_h *g,\n"
30766 "                      const char *path);\n"
30767 "\n"
30768 msgstr ""
30769
30770 #. type: textblock
30771 #: ../src/guestfs-actions.pod:5513
30772 msgid ""
30773 "This command just writes a swap file signature to an existing file.  To "
30774 "create the file itself, use something like C<guestfs_fallocate>."
30775 msgstr ""
30776
30777 #. type: =head2
30778 #: ../src/guestfs-actions.pod:5520
30779 msgid "guestfs_modprobe"
30780 msgstr ""
30781
30782 #. type: verbatim
30783 #: ../src/guestfs-actions.pod:5522
30784 #, no-wrap
30785 msgid ""
30786 " int\n"
30787 " guestfs_modprobe (guestfs_h *g,\n"
30788 "                   const char *modulename);\n"
30789 "\n"
30790 msgstr ""
30791
30792 #. type: =head2
30793 #: ../src/guestfs-actions.pod:5535
30794 msgid "guestfs_mount"
30795 msgstr ""
30796
30797 #. type: verbatim
30798 #: ../src/guestfs-actions.pod:5537
30799 #, no-wrap
30800 msgid ""
30801 " int\n"
30802 " guestfs_mount (guestfs_h *g,\n"
30803 "                const char *device,\n"
30804 "                const char *mountpoint);\n"
30805 "\n"
30806 msgstr ""
30807
30808 #. type: textblock
30809 #: ../src/guestfs-actions.pod:5556
30810 msgid ""
30811 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30812 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30813 "problems for users.  If your program might need to work with older versions "
30814 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30815 "for the first parameter if you don't want any options)."
30816 msgstr ""
30817
30818 #. type: =head2
30819 #: ../src/guestfs-actions.pod:5567
30820 msgid "guestfs_mount_9p"
30821 msgstr ""
30822
30823 #. type: verbatim
30824 #: ../src/guestfs-actions.pod:5569
30825 #, no-wrap
30826 msgid ""
30827 " int\n"
30828 " guestfs_mount_9p (guestfs_h *g,\n"
30829 "                   const char *mounttag,\n"
30830 "                   const char *mountpoint,\n"
30831 "                   ...);\n"
30832 "\n"
30833 msgstr ""
30834
30835 #. type: verbatim
30836 #: ../src/guestfs-actions.pod:5580
30837 #, no-wrap
30838 msgid ""
30839 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30840 "\n"
30841 msgstr ""
30842
30843 #. type: =head2
30844 #: ../src/guestfs-actions.pod:5593
30845 msgid "guestfs_mount_9p_va"
30846 msgstr ""
30847
30848 #. type: verbatim
30849 #: ../src/guestfs-actions.pod:5595
30850 #, no-wrap
30851 msgid ""
30852 " int\n"
30853 " guestfs_mount_9p_va (guestfs_h *g,\n"
30854 "                      const char *mounttag,\n"
30855 "                      const char *mountpoint,\n"
30856 "                      va_list args);\n"
30857 "\n"
30858 msgstr ""
30859
30860 #. type: textblock
30861 #: ../src/guestfs-actions.pod:5601
30862 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30863 msgstr ""
30864
30865 #. type: =head2
30866 #: ../src/guestfs-actions.pod:5605
30867 msgid "guestfs_mount_9p_argv"
30868 msgstr ""
30869
30870 #. type: verbatim
30871 #: ../src/guestfs-actions.pod:5607
30872 #, no-wrap
30873 msgid ""
30874 " int\n"
30875 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30876 "                        const char *mounttag,\n"
30877 "                        const char *mountpoint,\n"
30878 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30879 "\n"
30880 msgstr ""
30881
30882 #. type: textblock
30883 #: ../src/guestfs-actions.pod:5613
30884 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30885 msgstr ""
30886
30887 #. type: =head2
30888 #: ../src/guestfs-actions.pod:5617
30889 msgid "guestfs_mount_loop"
30890 msgstr ""
30891
30892 #. type: verbatim
30893 #: ../src/guestfs-actions.pod:5619
30894 #, no-wrap
30895 msgid ""
30896 " int\n"
30897 " guestfs_mount_loop (guestfs_h *g,\n"
30898 "                     const char *file,\n"
30899 "                     const char *mountpoint);\n"
30900 "\n"
30901 msgstr ""
30902
30903 #. type: =head2
30904 #: ../src/guestfs-actions.pod:5632
30905 msgid "guestfs_mount_options"
30906 msgstr ""
30907
30908 #. type: verbatim
30909 #: ../src/guestfs-actions.pod:5634
30910 #, no-wrap
30911 msgid ""
30912 " int\n"
30913 " guestfs_mount_options (guestfs_h *g,\n"
30914 "                        const char *options,\n"
30915 "                        const char *device,\n"
30916 "                        const char *mountpoint);\n"
30917 "\n"
30918 msgstr ""
30919
30920 #. type: textblock
30921 #: ../src/guestfs-actions.pod:5640
30922 msgid ""
30923 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30924 "the mount options as for the L<mount(8)> I<-o> flag."
30925 msgstr ""
30926
30927 #. type: textblock
30928 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5664 ../src/guestfs-actions.pod:5681
30929 msgid "(Added in 1.0.10)"
30930 msgstr ""
30931
30932 #. type: =head2
30933 #: ../src/guestfs-actions.pod:5652
30934 msgid "guestfs_mount_ro"
30935 msgstr ""
30936
30937 #. type: verbatim
30938 #: ../src/guestfs-actions.pod:5654
30939 #, no-wrap
30940 msgid ""
30941 " int\n"
30942 " guestfs_mount_ro (guestfs_h *g,\n"
30943 "                   const char *device,\n"
30944 "                   const char *mountpoint);\n"
30945 "\n"
30946 msgstr ""
30947
30948 #. type: textblock
30949 #: ../src/guestfs-actions.pod:5659
30950 msgid ""
30951 "This is the same as the C<guestfs_mount> command, but it mounts the "
30952 "filesystem with the read-only (I<-o ro>) flag."
30953 msgstr ""
30954
30955 #. type: =head2
30956 #: ../src/guestfs-actions.pod:5666
30957 msgid "guestfs_mount_vfs"
30958 msgstr ""
30959
30960 #. type: verbatim
30961 #: ../src/guestfs-actions.pod:5668
30962 #, no-wrap
30963 msgid ""
30964 " int\n"
30965 " guestfs_mount_vfs (guestfs_h *g,\n"
30966 "                    const char *options,\n"
30967 "                    const char *vfstype,\n"
30968 "                    const char *device,\n"
30969 "                    const char *mountpoint);\n"
30970 "\n"
30971 msgstr ""
30972
30973 #. type: textblock
30974 #: ../src/guestfs-actions.pod:5675
30975 msgid ""
30976 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30977 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
30978 "I<-t> flags."
30979 msgstr ""
30980
30981 #. type: =head2
30982 #: ../src/guestfs-actions.pod:5683
30983 msgid "guestfs_mountpoints"
30984 msgstr ""
30985
30986 #. type: verbatim
30987 #: ../src/guestfs-actions.pod:5685
30988 #, no-wrap
30989 msgid ""
30990 " char **\n"
30991 " guestfs_mountpoints (guestfs_h *g);\n"
30992 "\n"
30993 msgstr ""
30994
30995 #. type: textblock
30996 #: ../src/guestfs-actions.pod:5688
30997 msgid ""
30998 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30999 "devices.  This one returns a hash table (map) of device name to directory "
31000 "where the device is mounted."
31001 msgstr ""
31002
31003 #. type: =head2
31004 #: ../src/guestfs-actions.pod:5700
31005 msgid "guestfs_mounts"
31006 msgstr ""
31007
31008 #. type: verbatim
31009 #: ../src/guestfs-actions.pod:5702
31010 #, no-wrap
31011 msgid ""
31012 " char **\n"
31013 " guestfs_mounts (guestfs_h *g);\n"
31014 "\n"
31015 msgstr ""
31016
31017 #. type: textblock
31018 #: ../src/guestfs-actions.pod:5710
31019 msgid "See also: C<guestfs_mountpoints>"
31020 msgstr ""
31021
31022 #. type: =head2
31023 #: ../src/guestfs-actions.pod:5718
31024 msgid "guestfs_mv"
31025 msgstr ""
31026
31027 #. type: verbatim
31028 #: ../src/guestfs-actions.pod:5720
31029 #, no-wrap
31030 msgid ""
31031 " int\n"
31032 " guestfs_mv (guestfs_h *g,\n"
31033 "             const char *src,\n"
31034 "             const char *dest);\n"
31035 "\n"
31036 msgstr ""
31037
31038 #. type: =head2
31039 #: ../src/guestfs-actions.pod:5732
31040 msgid "guestfs_ntfs_3g_probe"
31041 msgstr ""
31042
31043 #. type: verbatim
31044 #: ../src/guestfs-actions.pod:5734
31045 #, no-wrap
31046 msgid ""
31047 " int\n"
31048 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31049 "                        int rw,\n"
31050 "                        const char *device);\n"
31051 "\n"
31052 msgstr ""
31053
31054 #. type: textblock
31055 #: ../src/guestfs-actions.pod:5753
31056 msgid "(Added in 1.0.43)"
31057 msgstr ""
31058
31059 #. type: =head2
31060 #: ../src/guestfs-actions.pod:5755
31061 msgid "guestfs_ntfsresize"
31062 msgstr ""
31063
31064 #. type: verbatim
31065 #: ../src/guestfs-actions.pod:5757
31066 #, no-wrap
31067 msgid ""
31068 " int\n"
31069 " guestfs_ntfsresize (guestfs_h *g,\n"
31070 "                     const char *device);\n"
31071 "\n"
31072 msgstr ""
31073
31074 #. type: textblock
31075 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5861
31076 msgid ""
31077 "I<This function is deprecated.> In new code, use the "
31078 "L</guestfs_ntfsresize_opts> call instead."
31079 msgstr ""
31080
31081 #. type: =head2
31082 #: ../src/guestfs-actions.pod:5785
31083 msgid "guestfs_ntfsresize_opts"
31084 msgstr ""
31085
31086 #. type: verbatim
31087 #: ../src/guestfs-actions.pod:5787
31088 #, no-wrap
31089 msgid ""
31090 " int\n"
31091 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31092 "                          const char *device,\n"
31093 "                          ...);\n"
31094 "\n"
31095 msgstr ""
31096
31097 #. type: verbatim
31098 #: ../src/guestfs-actions.pod:5797
31099 #, no-wrap
31100 msgid ""
31101 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31102 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31103 "\n"
31104 msgstr ""
31105
31106 #. type: textblock
31107 #: ../src/guestfs-actions.pod:5817
31108 msgid ""
31109 "After the resize operation, the filesystem is always marked as requiring a "
31110 "consistency check (for safety).  You have to boot into Windows to perform "
31111 "this check and clear this condition.  If you I<don't> set the C<force> "
31112 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31113 "times on a single filesystem without booting into Windows between each "
31114 "resize."
31115 msgstr ""
31116
31117 #. type: =head2
31118 #: ../src/guestfs-actions.pod:5832
31119 msgid "guestfs_ntfsresize_opts_va"
31120 msgstr ""
31121
31122 #. type: verbatim
31123 #: ../src/guestfs-actions.pod:5834
31124 #, no-wrap
31125 msgid ""
31126 " int\n"
31127 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31128 "                             const char *device,\n"
31129 "                             va_list args);\n"
31130 "\n"
31131 msgstr ""
31132
31133 #. type: textblock
31134 #: ../src/guestfs-actions.pod:5839
31135 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31136 msgstr ""
31137
31138 #. type: =head2
31139 #: ../src/guestfs-actions.pod:5843
31140 msgid "guestfs_ntfsresize_opts_argv"
31141 msgstr ""
31142
31143 #. type: verbatim
31144 #: ../src/guestfs-actions.pod:5845
31145 #, no-wrap
31146 msgid ""
31147 " int\n"
31148 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31149 "                               const char *device,\n"
31150 "                               const struct guestfs_ntfsresize_opts_argv "
31151 "*optargs);\n"
31152 "\n"
31153 msgstr ""
31154
31155 #. type: textblock
31156 #: ../src/guestfs-actions.pod:5850
31157 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31158 msgstr ""
31159
31160 #. type: =head2
31161 #: ../src/guestfs-actions.pod:5854
31162 msgid "guestfs_ntfsresize_size"
31163 msgstr ""
31164
31165 #. type: verbatim
31166 #: ../src/guestfs-actions.pod:5856
31167 #, no-wrap
31168 msgid ""
31169 " int\n"
31170 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31171 "                          const char *device,\n"
31172 "                          int64_t size);\n"
31173 "\n"
31174 msgstr ""
31175
31176 #. type: textblock
31177 #: ../src/guestfs-actions.pod:5868
31178 msgid ""
31179 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31180 "to specify the new size (in bytes) explicitly."
31181 msgstr ""
31182
31183 #. type: textblock
31184 #: ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6673 ../src/guestfs-actions.pod:8422
31185 msgid "(Added in 1.3.14)"
31186 msgstr ""
31187
31188 #. type: =head2
31189 #: ../src/guestfs-actions.pod:5875
31190 msgid "guestfs_part_add"
31191 msgstr ""
31192
31193 #. type: verbatim
31194 #: ../src/guestfs-actions.pod:5877
31195 #, no-wrap
31196 msgid ""
31197 " int\n"
31198 " guestfs_part_add (guestfs_h *g,\n"
31199 "                   const char *device,\n"
31200 "                   const char *prlogex,\n"
31201 "                   int64_t startsect,\n"
31202 "                   int64_t endsect);\n"
31203 "\n"
31204 msgstr ""
31205
31206 #. type: textblock
31207 #: ../src/guestfs-actions.pod:5884
31208 msgid ""
31209 "This command adds a partition to C<device>.  If there is no partition table "
31210 "on the device, call C<guestfs_part_init> first."
31211 msgstr ""
31212
31213 #. type: textblock
31214 #: ../src/guestfs-actions.pod:5896
31215 msgid ""
31216 "Creating a partition which covers the whole disk is not so easy.  Use "
31217 "C<guestfs_part_disk> to do that."
31218 msgstr ""
31219
31220 #. type: textblock
31221 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:5989 ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6130 ../src/guestfs-actions.pod:6170
31222 msgid "(Added in 1.0.78)"
31223 msgstr ""
31224
31225 #. type: =head2
31226 #: ../src/guestfs-actions.pod:5903
31227 msgid "guestfs_part_del"
31228 msgstr ""
31229
31230 #. type: verbatim
31231 #: ../src/guestfs-actions.pod:5905
31232 #, no-wrap
31233 msgid ""
31234 " int\n"
31235 " guestfs_part_del (guestfs_h *g,\n"
31236 "                   const char *device,\n"
31237 "                   int partnum);\n"
31238 "\n"
31239 msgstr ""
31240
31241 #. type: =head2
31242 #: ../src/guestfs-actions.pod:5920
31243 msgid "guestfs_part_disk"
31244 msgstr ""
31245
31246 #. type: verbatim
31247 #: ../src/guestfs-actions.pod:5922
31248 #, no-wrap
31249 msgid ""
31250 " int\n"
31251 " guestfs_part_disk (guestfs_h *g,\n"
31252 "                    const char *device,\n"
31253 "                    const char *parttype);\n"
31254 "\n"
31255 msgstr ""
31256
31257 #. type: textblock
31258 #: ../src/guestfs-actions.pod:5927
31259 msgid ""
31260 "This command is simply a combination of C<guestfs_part_init> followed by "
31261 "C<guestfs_part_add> to create a single primary partition covering the whole "
31262 "disk."
31263 msgstr ""
31264
31265 #. type: textblock
31266 #: ../src/guestfs-actions.pod:5931
31267 msgid ""
31268 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31269 "possible values are described in C<guestfs_part_init>."
31270 msgstr ""
31271
31272 #. type: =head2
31273 #: ../src/guestfs-actions.pod:5938
31274 msgid "guestfs_part_get_bootable"
31275 msgstr ""
31276
31277 #. type: verbatim
31278 #: ../src/guestfs-actions.pod:5940
31279 #, no-wrap
31280 msgid ""
31281 " int\n"
31282 " guestfs_part_get_bootable (guestfs_h *g,\n"
31283 "                            const char *device,\n"
31284 "                            int partnum);\n"
31285 "\n"
31286 msgstr ""
31287
31288 #. type: textblock
31289 #: ../src/guestfs-actions.pod:5948
31290 msgid "See also C<guestfs_part_set_bootable>."
31291 msgstr ""
31292
31293 #. type: =head2
31294 #: ../src/guestfs-actions.pod:5954
31295 msgid "guestfs_part_get_mbr_id"
31296 msgstr ""
31297
31298 #. type: verbatim
31299 #: ../src/guestfs-actions.pod:5956
31300 #, no-wrap
31301 msgid ""
31302 " int\n"
31303 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31304 "                          const char *device,\n"
31305 "                          int partnum);\n"
31306 "\n"
31307 msgstr ""
31308
31309 #. type: textblock
31310 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6146
31311 msgid ""
31312 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31313 "undefined results for other partition table types (see "
31314 "C<guestfs_part_get_parttype>)."
31315 msgstr ""
31316
31317 #. type: =head2
31318 #: ../src/guestfs-actions.pod:5972
31319 msgid "guestfs_part_get_parttype"
31320 msgstr ""
31321
31322 #. type: verbatim
31323 #: ../src/guestfs-actions.pod:5974
31324 #, no-wrap
31325 msgid ""
31326 " char *\n"
31327 " guestfs_part_get_parttype (guestfs_h *g,\n"
31328 "                            const char *device);\n"
31329 "\n"
31330 msgstr ""
31331
31332 #. type: textblock
31333 #: ../src/guestfs-actions.pod:5981
31334 msgid ""
31335 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31336 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31337 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31338 msgstr ""
31339
31340 #. type: =head2
31341 #: ../src/guestfs-actions.pod:5991
31342 msgid "guestfs_part_init"
31343 msgstr ""
31344
31345 #. type: verbatim
31346 #: ../src/guestfs-actions.pod:5993
31347 #, no-wrap
31348 msgid ""
31349 " int\n"
31350 " guestfs_part_init (guestfs_h *g,\n"
31351 "                    const char *device,\n"
31352 "                    const char *parttype);\n"
31353 "\n"
31354 msgstr ""
31355
31356 #. type: textblock
31357 #: ../src/guestfs-actions.pod:6002
31358 msgid ""
31359 "Initially there are no partitions.  Following this, you should call "
31360 "C<guestfs_part_add> for each partition required."
31361 msgstr ""
31362
31363 #. type: =head2
31364 #: ../src/guestfs-actions.pod:6075
31365 msgid "guestfs_part_list"
31366 msgstr ""
31367
31368 #. type: verbatim
31369 #: ../src/guestfs-actions.pod:6077
31370 #, no-wrap
31371 msgid ""
31372 " struct guestfs_partition_list *\n"
31373 " guestfs_part_list (guestfs_h *g,\n"
31374 "                    const char *device);\n"
31375 "\n"
31376 msgstr ""
31377
31378 #. type: textblock
31379 #: ../src/guestfs-actions.pod:6094
31380 msgid ""
31381 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31382 "the device's sector size, see C<guestfs_blockdev_getss>."
31383 msgstr ""
31384
31385 #. type: textblock
31386 #: ../src/guestfs-actions.pod:6107
31387 msgid ""
31388 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31389 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31390 "use>."
31391 msgstr ""
31392
31393 #. type: =head2
31394 #: ../src/guestfs-actions.pod:6113
31395 msgid "guestfs_part_set_bootable"
31396 msgstr ""
31397
31398 #. type: verbatim
31399 #: ../src/guestfs-actions.pod:6115
31400 #, no-wrap
31401 msgid ""
31402 " int\n"
31403 " guestfs_part_set_bootable (guestfs_h *g,\n"
31404 "                            const char *device,\n"
31405 "                            int partnum,\n"
31406 "                            int bootable);\n"
31407 "\n"
31408 msgstr ""
31409
31410 #. type: =head2
31411 #: ../src/guestfs-actions.pod:6132
31412 msgid "guestfs_part_set_mbr_id"
31413 msgstr ""
31414
31415 #. type: verbatim
31416 #: ../src/guestfs-actions.pod:6134
31417 #, no-wrap
31418 msgid ""
31419 " int\n"
31420 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31421 "                          const char *device,\n"
31422 "                          int partnum,\n"
31423 "                          int idbyte);\n"
31424 "\n"
31425 msgstr ""
31426
31427 #. type: =head2
31428 #: ../src/guestfs-actions.pod:6154
31429 msgid "guestfs_part_set_name"
31430 msgstr ""
31431
31432 #. type: verbatim
31433 #: ../src/guestfs-actions.pod:6156
31434 #, no-wrap
31435 msgid ""
31436 " int\n"
31437 " guestfs_part_set_name (guestfs_h *g,\n"
31438 "                        const char *device,\n"
31439 "                        int partnum,\n"
31440 "                        const char *name);\n"
31441 "\n"
31442 msgstr ""
31443
31444 #. type: =head2
31445 #: ../src/guestfs-actions.pod:6172
31446 msgid "guestfs_part_to_dev"
31447 msgstr ""
31448
31449 #. type: verbatim
31450 #: ../src/guestfs-actions.pod:6174
31451 #, no-wrap
31452 msgid ""
31453 " char *\n"
31454 " guestfs_part_to_dev (guestfs_h *g,\n"
31455 "                      const char *partition);\n"
31456 "\n"
31457 msgstr ""
31458
31459 #. type: textblock
31460 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6201
31461 msgid ""
31462 "The named partition must exist, for example as a string returned from "
31463 "C<guestfs_list_partitions>."
31464 msgstr ""
31465
31466 #. type: textblock
31467 #: ../src/guestfs-actions.pod:6185
31468 msgid "See also C<guestfs_part_to_partnum>."
31469 msgstr ""
31470
31471 #. type: =head2
31472 #: ../src/guestfs-actions.pod:6192
31473 msgid "guestfs_part_to_partnum"
31474 msgstr ""
31475
31476 #. type: verbatim
31477 #: ../src/guestfs-actions.pod:6194
31478 #, no-wrap
31479 msgid ""
31480 " int\n"
31481 " guestfs_part_to_partnum (guestfs_h *g,\n"
31482 "                          const char *partition);\n"
31483 "\n"
31484 msgstr ""
31485
31486 #. type: textblock
31487 #: ../src/guestfs-actions.pod:6204
31488 msgid "See also C<guestfs_part_to_dev>."
31489 msgstr ""
31490
31491 #. type: =head2
31492 #: ../src/guestfs-actions.pod:6210
31493 msgid "guestfs_ping_daemon"
31494 msgstr ""
31495
31496 #. type: verbatim
31497 #: ../src/guestfs-actions.pod:6212
31498 #, no-wrap
31499 msgid ""
31500 " int\n"
31501 " guestfs_ping_daemon (guestfs_h *g);\n"
31502 "\n"
31503 msgstr ""
31504
31505 #. type: =head2
31506 #: ../src/guestfs-actions.pod:6224
31507 msgid "guestfs_pread"
31508 msgstr ""
31509
31510 #. type: verbatim
31511 #: ../src/guestfs-actions.pod:6226
31512 #, no-wrap
31513 msgid ""
31514 " char *\n"
31515 " guestfs_pread (guestfs_h *g,\n"
31516 "                const char *path,\n"
31517 "                int count,\n"
31518 "                int64_t offset,\n"
31519 "                size_t *size_r);\n"
31520 "\n"
31521 msgstr ""
31522
31523 #. type: textblock
31524 #: ../src/guestfs-actions.pod:6239
31525 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31526 msgstr ""
31527
31528 #. type: =head2
31529 #: ../src/guestfs-actions.pod:6250
31530 msgid "guestfs_pread_device"
31531 msgstr ""
31532
31533 #. type: verbatim
31534 #: ../src/guestfs-actions.pod:6252
31535 #, no-wrap
31536 msgid ""
31537 " char *\n"
31538 " guestfs_pread_device (guestfs_h *g,\n"
31539 "                       const char *device,\n"
31540 "                       int count,\n"
31541 "                       int64_t offset,\n"
31542 "                       size_t *size_r);\n"
31543 "\n"
31544 msgstr ""
31545
31546 #. type: textblock
31547 #: ../src/guestfs-actions.pod:6265
31548 msgid "See also C<guestfs_pread>."
31549 msgstr ""
31550
31551 #. type: textblock
31552 #: ../src/guestfs-actions.pod:6274
31553 msgid "(Added in 1.5.21)"
31554 msgstr ""
31555
31556 #. type: =head2
31557 #: ../src/guestfs-actions.pod:6276
31558 msgid "guestfs_pvcreate"
31559 msgstr ""
31560
31561 #. type: verbatim
31562 #: ../src/guestfs-actions.pod:6278
31563 #, no-wrap
31564 msgid ""
31565 " int\n"
31566 " guestfs_pvcreate (guestfs_h *g,\n"
31567 "                   const char *device);\n"
31568 "\n"
31569 msgstr ""
31570
31571 #. type: =head2
31572 #: ../src/guestfs-actions.pod:6290
31573 msgid "guestfs_pvremove"
31574 msgstr ""
31575
31576 #. type: verbatim
31577 #: ../src/guestfs-actions.pod:6292
31578 #, no-wrap
31579 msgid ""
31580 " int\n"
31581 " guestfs_pvremove (guestfs_h *g,\n"
31582 "                   const char *device);\n"
31583 "\n"
31584 msgstr ""
31585
31586 #. type: =head2
31587 #: ../src/guestfs-actions.pod:6307
31588 msgid "guestfs_pvresize"
31589 msgstr ""
31590
31591 #. type: verbatim
31592 #: ../src/guestfs-actions.pod:6309
31593 #, no-wrap
31594 msgid ""
31595 " int\n"
31596 " guestfs_pvresize (guestfs_h *g,\n"
31597 "                   const char *device);\n"
31598 "\n"
31599 msgstr ""
31600
31601 #. type: =head2
31602 #: ../src/guestfs-actions.pod:6320
31603 msgid "guestfs_pvresize_size"
31604 msgstr ""
31605
31606 #. type: verbatim
31607 #: ../src/guestfs-actions.pod:6322
31608 #, no-wrap
31609 msgid ""
31610 " int\n"
31611 " guestfs_pvresize_size (guestfs_h *g,\n"
31612 "                        const char *device,\n"
31613 "                        int64_t size);\n"
31614 "\n"
31615 msgstr ""
31616
31617 #. type: textblock
31618 #: ../src/guestfs-actions.pod:6327
31619 msgid ""
31620 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31621 "specify the new size (in bytes) explicitly."
31622 msgstr ""
31623
31624 #. type: =head2
31625 #: ../src/guestfs-actions.pod:6334
31626 msgid "guestfs_pvs"
31627 msgstr ""
31628
31629 #. type: verbatim
31630 #: ../src/guestfs-actions.pod:6336
31631 #, no-wrap
31632 msgid ""
31633 " char **\n"
31634 " guestfs_pvs (guestfs_h *g);\n"
31635 "\n"
31636 msgstr ""
31637
31638 #. type: textblock
31639 #: ../src/guestfs-actions.pod:6345
31640 msgid "See also C<guestfs_pvs_full>."
31641 msgstr ""
31642
31643 #. type: =head2
31644 #: ../src/guestfs-actions.pod:6353
31645 msgid "guestfs_pvs_full"
31646 msgstr ""
31647
31648 #. type: verbatim
31649 #: ../src/guestfs-actions.pod:6355
31650 #, no-wrap
31651 msgid ""
31652 " struct guestfs_lvm_pv_list *\n"
31653 " guestfs_pvs_full (guestfs_h *g);\n"
31654 "\n"
31655 msgstr ""
31656
31657 #. type: textblock
31658 #: ../src/guestfs-actions.pod:6361
31659 msgid ""
31660 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31661 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
31662 "use>."
31663 msgstr ""
31664
31665 #. type: =head2
31666 #: ../src/guestfs-actions.pod:6367
31667 msgid "guestfs_pvuuid"
31668 msgstr ""
31669
31670 #. type: verbatim
31671 #: ../src/guestfs-actions.pod:6369
31672 #, no-wrap
31673 msgid ""
31674 " char *\n"
31675 " guestfs_pvuuid (guestfs_h *g,\n"
31676 "                 const char *device);\n"
31677 "\n"
31678 msgstr ""
31679
31680 #. type: =head2
31681 #: ../src/guestfs-actions.pod:6380
31682 msgid "guestfs_pwrite"
31683 msgstr ""
31684
31685 #. type: verbatim
31686 #: ../src/guestfs-actions.pod:6382
31687 #, no-wrap
31688 msgid ""
31689 " int\n"
31690 " guestfs_pwrite (guestfs_h *g,\n"
31691 "                 const char *path,\n"
31692 "                 const char *content,\n"
31693 "                 size_t content_size,\n"
31694 "                 int64_t offset);\n"
31695 "\n"
31696 msgstr ""
31697
31698 #. type: textblock
31699 #: ../src/guestfs-actions.pod:6398
31700 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31701 msgstr ""
31702
31703 #. type: =head2
31704 #: ../src/guestfs-actions.pod:6407
31705 msgid "guestfs_pwrite_device"
31706 msgstr ""
31707
31708 #. type: verbatim
31709 #: ../src/guestfs-actions.pod:6409
31710 #, no-wrap
31711 msgid ""
31712 " int\n"
31713 " guestfs_pwrite_device (guestfs_h *g,\n"
31714 "                        const char *device,\n"
31715 "                        const char *content,\n"
31716 "                        size_t content_size,\n"
31717 "                        int64_t offset);\n"
31718 "\n"
31719 msgstr ""
31720
31721 #. type: textblock
31722 #: ../src/guestfs-actions.pod:6424
31723 msgid "See also C<guestfs_pwrite>."
31724 msgstr ""
31725
31726 #. type: textblock
31727 #: ../src/guestfs-actions.pod:6431
31728 msgid "(Added in 1.5.20)"
31729 msgstr ""
31730
31731 #. type: =head2
31732 #: ../src/guestfs-actions.pod:6433
31733 msgid "guestfs_read_file"
31734 msgstr ""
31735
31736 #. type: verbatim
31737 #: ../src/guestfs-actions.pod:6435
31738 #, no-wrap
31739 msgid ""
31740 " char *\n"
31741 " guestfs_read_file (guestfs_h *g,\n"
31742 "                    const char *path,\n"
31743 "                    size_t *size_r);\n"
31744 "\n"
31745 msgstr ""
31746
31747 #. type: textblock
31748 #: ../src/guestfs-actions.pod:6443
31749 msgid ""
31750 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31751 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31752 "function is limited in the total size of file that can be handled."
31753 msgstr ""
31754
31755 #. type: textblock
31756 #: ../src/guestfs-actions.pod:6455
31757 msgid "(Added in 1.0.63)"
31758 msgstr ""
31759
31760 #. type: =head2
31761 #: ../src/guestfs-actions.pod:6457
31762 msgid "guestfs_read_lines"
31763 msgstr ""
31764
31765 #. type: verbatim
31766 #: ../src/guestfs-actions.pod:6459
31767 #, no-wrap
31768 msgid ""
31769 " char **\n"
31770 " guestfs_read_lines (guestfs_h *g,\n"
31771 "                     const char *path);\n"
31772 "\n"
31773 msgstr ""
31774
31775 #. type: textblock
31776 #: ../src/guestfs-actions.pod:6468
31777 msgid ""
31778 "Note that this function cannot correctly handle binary files (specifically, "
31779 "files containing C<\\0> character which is treated as end of line).  For "
31780 "those you need to use the C<guestfs_read_file> function which has a more "
31781 "complex interface."
31782 msgstr ""
31783
31784 #. type: =head2
31785 #: ../src/guestfs-actions.pod:6479
31786 msgid "guestfs_readdir"
31787 msgstr ""
31788
31789 #. type: verbatim
31790 #: ../src/guestfs-actions.pod:6481
31791 #, no-wrap
31792 msgid ""
31793 " struct guestfs_dirent_list *\n"
31794 " guestfs_readdir (guestfs_h *g,\n"
31795 "                  const char *dir);\n"
31796 "\n"
31797 msgstr ""
31798
31799 #. type: textblock
31800 #: ../src/guestfs-actions.pod:6535
31801 msgid ""
31802 "This function is primarily intended for use by programs.  To get a simple "
31803 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31804 "consumption, use C<guestfs_ll>."
31805 msgstr ""
31806
31807 #. type: textblock
31808 #: ../src/guestfs-actions.pod:6539
31809 msgid ""
31810 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31811 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
31812 "use>."
31813 msgstr ""
31814
31815 #. type: =head2
31816 #: ../src/guestfs-actions.pod:6545
31817 msgid "guestfs_readlink"
31818 msgstr ""
31819
31820 #. type: verbatim
31821 #: ../src/guestfs-actions.pod:6547
31822 #, no-wrap
31823 msgid ""
31824 " char *\n"
31825 " guestfs_readlink (guestfs_h *g,\n"
31826 "                   const char *path);\n"
31827 "\n"
31828 msgstr ""
31829
31830 #. type: =head2
31831 #: ../src/guestfs-actions.pod:6558
31832 msgid "guestfs_readlinklist"
31833 msgstr ""
31834
31835 #. type: verbatim
31836 #: ../src/guestfs-actions.pod:6560
31837 #, no-wrap
31838 msgid ""
31839 " char **\n"
31840 " guestfs_readlinklist (guestfs_h *g,\n"
31841 "                       const char *path,\n"
31842 "                       char *const *names);\n"
31843 "\n"
31844 msgstr ""
31845
31846 #. type: =head2
31847 #: ../src/guestfs-actions.pod:6593
31848 msgid "guestfs_realpath"
31849 msgstr ""
31850
31851 #. type: verbatim
31852 #: ../src/guestfs-actions.pod:6595
31853 #, no-wrap
31854 msgid ""
31855 " char *\n"
31856 " guestfs_realpath (guestfs_h *g,\n"
31857 "                   const char *path);\n"
31858 "\n"
31859 msgstr ""
31860
31861 #. type: =head2
31862 #: ../src/guestfs-actions.pod:6607
31863 msgid "guestfs_removexattr"
31864 msgstr ""
31865
31866 #. type: verbatim
31867 #: ../src/guestfs-actions.pod:6609
31868 #, no-wrap
31869 msgid ""
31870 " int\n"
31871 " guestfs_removexattr (guestfs_h *g,\n"
31872 "                      const char *xattr,\n"
31873 "                      const char *path);\n"
31874 "\n"
31875 msgstr ""
31876
31877 #. type: textblock
31878 #: ../src/guestfs-actions.pod:6617
31879 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31880 msgstr ""
31881
31882 #. type: =head2
31883 #: ../src/guestfs-actions.pod:6623
31884 msgid "guestfs_resize2fs"
31885 msgstr ""
31886
31887 #. type: verbatim
31888 #: ../src/guestfs-actions.pod:6625
31889 #, no-wrap
31890 msgid ""
31891 " int\n"
31892 " guestfs_resize2fs (guestfs_h *g,\n"
31893 "                    const char *device);\n"
31894 "\n"
31895 msgstr ""
31896
31897 #. type: textblock
31898 #: ../src/guestfs-actions.pod:6632
31899 msgid ""
31900 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31901 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31902 "sometimes gives an error about this and sometimes not.  In any case, it is "
31903 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31904 msgstr ""
31905
31906 #. type: =head2
31907 #: ../src/guestfs-actions.pod:6642
31908 msgid "guestfs_resize2fs_M"
31909 msgstr ""
31910
31911 #. type: verbatim
31912 #: ../src/guestfs-actions.pod:6644
31913 #, no-wrap
31914 msgid ""
31915 " int\n"
31916 " guestfs_resize2fs_M (guestfs_h *g,\n"
31917 "                      const char *device);\n"
31918 "\n"
31919 msgstr ""
31920
31921 #. type: textblock
31922 #: ../src/guestfs-actions.pod:6648
31923 msgid ""
31924 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31925 "resized to its minimum size.  This works like the I<-M> option to the "
31926 "C<resize2fs> command."
31927 msgstr ""
31928
31929 #. type: textblock
31930 #: ../src/guestfs-actions.pod:6652
31931 msgid ""
31932 "To get the resulting size of the filesystem you should call "
31933 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31934 "These two numbers, multiplied together, give the resulting size of the "
31935 "minimal filesystem in bytes."
31936 msgstr ""
31937
31938 #. type: =head2
31939 #: ../src/guestfs-actions.pod:6661
31940 msgid "guestfs_resize2fs_size"
31941 msgstr ""
31942
31943 #. type: verbatim
31944 #: ../src/guestfs-actions.pod:6663
31945 #, no-wrap
31946 msgid ""
31947 " int\n"
31948 " guestfs_resize2fs_size (guestfs_h *g,\n"
31949 "                         const char *device,\n"
31950 "                         int64_t size);\n"
31951 "\n"
31952 msgstr ""
31953
31954 #. type: textblock
31955 #: ../src/guestfs-actions.pod:6668
31956 msgid ""
31957 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31958 "to specify the new size (in bytes) explicitly."
31959 msgstr ""
31960
31961 #. type: =head2
31962 #: ../src/guestfs-actions.pod:6675
31963 msgid "guestfs_rm"
31964 msgstr ""
31965
31966 #. type: verbatim
31967 #: ../src/guestfs-actions.pod:6677
31968 #, no-wrap
31969 msgid ""
31970 " int\n"
31971 " guestfs_rm (guestfs_h *g,\n"
31972 "             const char *path);\n"
31973 "\n"
31974 msgstr ""
31975
31976 #. type: =head2
31977 #: ../src/guestfs-actions.pod:6687
31978 msgid "guestfs_rm_rf"
31979 msgstr ""
31980
31981 #. type: verbatim
31982 #: ../src/guestfs-actions.pod:6689
31983 #, no-wrap
31984 msgid ""
31985 " int\n"
31986 " guestfs_rm_rf (guestfs_h *g,\n"
31987 "                const char *path);\n"
31988 "\n"
31989 msgstr ""
31990
31991 #. type: =head2
31992 #: ../src/guestfs-actions.pod:6701
31993 msgid "guestfs_rmdir"
31994 msgstr ""
31995
31996 #. type: verbatim
31997 #: ../src/guestfs-actions.pod:6703
31998 #, no-wrap
31999 msgid ""
32000 " int\n"
32001 " guestfs_rmdir (guestfs_h *g,\n"
32002 "                const char *path);\n"
32003 "\n"
32004 msgstr ""
32005
32006 #. type: =head2
32007 #: ../src/guestfs-actions.pod:6713
32008 msgid "guestfs_rmmountpoint"
32009 msgstr ""
32010
32011 #. type: verbatim
32012 #: ../src/guestfs-actions.pod:6715
32013 #, no-wrap
32014 msgid ""
32015 " int\n"
32016 " guestfs_rmmountpoint (guestfs_h *g,\n"
32017 "                       const char *exemptpath);\n"
32018 "\n"
32019 msgstr ""
32020
32021 #. type: textblock
32022 #: ../src/guestfs-actions.pod:6719
32023 msgid ""
32024 "This calls removes a mountpoint that was previously created with "
32025 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32026 msgstr ""
32027
32028 #. type: =head2
32029 #: ../src/guestfs-actions.pod:6727
32030 msgid "guestfs_scrub_device"
32031 msgstr ""
32032
32033 #. type: verbatim
32034 #: ../src/guestfs-actions.pod:6729
32035 #, no-wrap
32036 msgid ""
32037 " int\n"
32038 " guestfs_scrub_device (guestfs_h *g,\n"
32039 "                       const char *device);\n"
32040 "\n"
32041 msgstr ""
32042
32043 #. type: textblock
32044 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:6778
32045 msgid "(Added in 1.0.52)"
32046 msgstr ""
32047
32048 #. type: =head2
32049 #: ../src/guestfs-actions.pod:6743
32050 msgid "guestfs_scrub_file"
32051 msgstr ""
32052
32053 #. type: verbatim
32054 #: ../src/guestfs-actions.pod:6745
32055 #, no-wrap
32056 msgid ""
32057 " int\n"
32058 " guestfs_scrub_file (guestfs_h *g,\n"
32059 "                     const char *file);\n"
32060 "\n"
32061 msgstr ""
32062
32063 #. type: =head2
32064 #: ../src/guestfs-actions.pod:6761
32065 msgid "guestfs_scrub_freespace"
32066 msgstr ""
32067
32068 #. type: verbatim
32069 #: ../src/guestfs-actions.pod:6763
32070 #, no-wrap
32071 msgid ""
32072 " int\n"
32073 " guestfs_scrub_freespace (guestfs_h *g,\n"
32074 "                          const char *dir);\n"
32075 "\n"
32076 msgstr ""
32077
32078 #. type: textblock
32079 #: ../src/guestfs-actions.pod:6767
32080 msgid ""
32081 "This command creates the directory C<dir> and then fills it with files until "
32082 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32083 "and deletes them.  The intention is to scrub any free space on the partition "
32084 "containing C<dir>."
32085 msgstr ""
32086
32087 #. type: =head2
32088 #: ../src/guestfs-actions.pod:6780
32089 msgid "guestfs_set_append"
32090 msgstr ""
32091
32092 #. type: verbatim
32093 #: ../src/guestfs-actions.pod:6782
32094 #, no-wrap
32095 msgid ""
32096 " int\n"
32097 " guestfs_set_append (guestfs_h *g,\n"
32098 "                     const char *append);\n"
32099 "\n"
32100 msgstr ""
32101
32102 #. type: =head2
32103 #: ../src/guestfs-actions.pod:6799
32104 msgid "guestfs_set_attach_method"
32105 msgstr ""
32106
32107 #. type: verbatim
32108 #: ../src/guestfs-actions.pod:6801
32109 #, no-wrap
32110 msgid ""
32111 " int\n"
32112 " guestfs_set_attach_method (guestfs_h *g,\n"
32113 "                            const char *attachmethod);\n"
32114 "\n"
32115 msgstr ""
32116
32117 #. type: =head2
32118 #: ../src/guestfs-actions.pod:6829
32119 msgid "guestfs_set_autosync"
32120 msgstr ""
32121
32122 #. type: verbatim
32123 #: ../src/guestfs-actions.pod:6831
32124 #, no-wrap
32125 msgid ""
32126 " int\n"
32127 " guestfs_set_autosync (guestfs_h *g,\n"
32128 "                       int autosync);\n"
32129 "\n"
32130 msgstr ""
32131
32132 #. type: =head2
32133 #: ../src/guestfs-actions.pod:6847
32134 msgid "guestfs_set_direct"
32135 msgstr ""
32136
32137 #. type: verbatim
32138 #: ../src/guestfs-actions.pod:6849
32139 #, no-wrap
32140 msgid ""
32141 " int\n"
32142 " guestfs_set_direct (guestfs_h *g,\n"
32143 "                     int direct);\n"
32144 "\n"
32145 msgstr ""
32146
32147 #. type: textblock
32148 #: ../src/guestfs-actions.pod:6857
32149 msgid ""
32150 "One consequence of this is that log messages aren't caught by the library "
32151 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32152 "stdout."
32153 msgstr ""
32154
32155 #. type: =head2
32156 #: ../src/guestfs-actions.pod:6870
32157 msgid "guestfs_set_e2label"
32158 msgstr ""
32159
32160 #. type: verbatim
32161 #: ../src/guestfs-actions.pod:6872
32162 #, no-wrap
32163 msgid ""
32164 " int\n"
32165 " guestfs_set_e2label (guestfs_h *g,\n"
32166 "                      const char *device,\n"
32167 "                      const char *label);\n"
32168 "\n"
32169 msgstr ""
32170
32171 #. type: textblock
32172 #: ../src/guestfs-actions.pod:6881
32173 msgid ""
32174 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32175 "the existing label on a filesystem."
32176 msgstr ""
32177
32178 #. type: =head2
32179 #: ../src/guestfs-actions.pod:6888
32180 msgid "guestfs_set_e2uuid"
32181 msgstr ""
32182
32183 #. type: verbatim
32184 #: ../src/guestfs-actions.pod:6890
32185 #, no-wrap
32186 msgid ""
32187 " int\n"
32188 " guestfs_set_e2uuid (guestfs_h *g,\n"
32189 "                     const char *device,\n"
32190 "                     const char *uuid);\n"
32191 "\n"
32192 msgstr ""
32193
32194 #. type: textblock
32195 #: ../src/guestfs-actions.pod:6900
32196 msgid ""
32197 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32198 "the existing UUID of a filesystem."
32199 msgstr ""
32200
32201 #. type: =head2
32202 #: ../src/guestfs-actions.pod:6907
32203 msgid "guestfs_set_memsize"
32204 msgstr ""
32205
32206 #. type: verbatim
32207 #: ../src/guestfs-actions.pod:6909
32208 #, no-wrap
32209 msgid ""
32210 " int\n"
32211 " guestfs_set_memsize (guestfs_h *g,\n"
32212 "                      int memsize);\n"
32213 "\n"
32214 msgstr ""
32215
32216 #. type: textblock
32217 #: ../src/guestfs-actions.pod:6913
32218 msgid ""
32219 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32220 "This only has any effect if called before C<guestfs_launch>."
32221 msgstr ""
32222
32223 #. type: =head2
32224 #: ../src/guestfs-actions.pod:6928
32225 msgid "guestfs_set_network"
32226 msgstr ""
32227
32228 #. type: verbatim
32229 #: ../src/guestfs-actions.pod:6930
32230 #, no-wrap
32231 msgid ""
32232 " int\n"
32233 " guestfs_set_network (guestfs_h *g,\n"
32234 "                      int network);\n"
32235 "\n"
32236 msgstr ""
32237
32238 #. type: textblock
32239 #: ../src/guestfs-actions.pod:6940
32240 msgid ""
32241 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32242 "effect."
32243 msgstr ""
32244
32245 #. type: =head2
32246 #: ../src/guestfs-actions.pod:6947
32247 msgid "guestfs_set_path"
32248 msgstr ""
32249
32250 #. type: verbatim
32251 #: ../src/guestfs-actions.pod:6949
32252 #, no-wrap
32253 msgid ""
32254 " int\n"
32255 " guestfs_set_path (guestfs_h *g,\n"
32256 "                   const char *searchpath);\n"
32257 "\n"
32258 msgstr ""
32259
32260 #. type: =head2
32261 #: ../src/guestfs-actions.pod:6964
32262 msgid "guestfs_set_pgroup"
32263 msgstr ""
32264
32265 #. type: verbatim
32266 #: ../src/guestfs-actions.pod:6966
32267 #, no-wrap
32268 msgid ""
32269 " int\n"
32270 " guestfs_set_pgroup (guestfs_h *g,\n"
32271 "                     int pgroup);\n"
32272 "\n"
32273 msgstr ""
32274
32275 #. type: =head2
32276 #: ../src/guestfs-actions.pod:6983
32277 msgid "guestfs_set_qemu"
32278 msgstr ""
32279
32280 #. type: verbatim
32281 #: ../src/guestfs-actions.pod:6985
32282 #, no-wrap
32283 msgid ""
32284 " int\n"
32285 " guestfs_set_qemu (guestfs_h *g,\n"
32286 "                   const char *qemu);\n"
32287 "\n"
32288 msgstr ""
32289
32290 #. type: =head2
32291 #: ../src/guestfs-actions.pod:7011
32292 msgid "guestfs_set_recovery_proc"
32293 msgstr ""
32294
32295 #. type: verbatim
32296 #: ../src/guestfs-actions.pod:7013
32297 #, no-wrap
32298 msgid ""
32299 " int\n"
32300 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32301 "                            int recoveryproc);\n"
32302 "\n"
32303 msgstr ""
32304
32305 #. type: textblock
32306 #: ../src/guestfs-actions.pod:7017
32307 msgid ""
32308 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32309 "not create a recovery process.  The purpose of the recovery process is to "
32310 "stop runaway qemu processes in the case where the main program aborts "
32311 "abruptly."
32312 msgstr ""
32313
32314 #. type: textblock
32315 #: ../src/guestfs-actions.pod:7022
32316 msgid ""
32317 "This only has any effect if called before C<guestfs_launch>, and the default "
32318 "is true."
32319 msgstr ""
32320
32321 #. type: =head2
32322 #: ../src/guestfs-actions.pod:7035
32323 msgid "guestfs_set_selinux"
32324 msgstr ""
32325
32326 #. type: verbatim
32327 #: ../src/guestfs-actions.pod:7037
32328 #, no-wrap
32329 msgid ""
32330 " int\n"
32331 " guestfs_set_selinux (guestfs_h *g,\n"
32332 "                      int selinux);\n"
32333 "\n"
32334 msgstr ""
32335
32336 #. type: =head2
32337 #: ../src/guestfs-actions.pod:7054
32338 msgid "guestfs_set_smp"
32339 msgstr ""
32340
32341 #. type: verbatim
32342 #: ../src/guestfs-actions.pod:7056
32343 #, no-wrap
32344 msgid ""
32345 " int\n"
32346 " guestfs_set_smp (guestfs_h *g,\n"
32347 "                  int smp);\n"
32348 "\n"
32349 msgstr ""
32350
32351 #. type: textblock
32352 #: ../src/guestfs-actions.pod:7064
32353 msgid "This function must be called before C<guestfs_launch>."
32354 msgstr ""
32355
32356 #. type: =head2
32357 #: ../src/guestfs-actions.pod:7070
32358 msgid "guestfs_set_trace"
32359 msgstr ""
32360
32361 #. type: verbatim
32362 #: ../src/guestfs-actions.pod:7072
32363 #, no-wrap
32364 msgid ""
32365 " int\n"
32366 " guestfs_set_trace (guestfs_h *g,\n"
32367 "                    int trace);\n"
32368 "\n"
32369 msgstr ""
32370
32371 #. type: textblock
32372 #: ../src/guestfs-actions.pod:7086
32373 msgid ""
32374 "Trace messages are normally sent to C<stderr>, unless you register a "
32375 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32376 msgstr ""
32377
32378 #. type: =head2
32379 #: ../src/guestfs-actions.pod:7094
32380 msgid "guestfs_set_verbose"
32381 msgstr ""
32382
32383 #. type: verbatim
32384 #: ../src/guestfs-actions.pod:7096
32385 #, no-wrap
32386 msgid ""
32387 " int\n"
32388 " guestfs_set_verbose (guestfs_h *g,\n"
32389 "                      int verbose);\n"
32390 "\n"
32391 msgstr ""
32392
32393 #. type: textblock
32394 #: ../src/guestfs-actions.pod:7105
32395 msgid ""
32396 "Verbose messages are normally sent to C<stderr>, unless you register a "
32397 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32398 msgstr ""
32399
32400 #. type: =head2
32401 #: ../src/guestfs-actions.pod:7113
32402 msgid "guestfs_setcon"
32403 msgstr ""
32404
32405 #. type: verbatim
32406 #: ../src/guestfs-actions.pod:7115
32407 #, no-wrap
32408 msgid ""
32409 " int\n"
32410 " guestfs_setcon (guestfs_h *g,\n"
32411 "                 const char *context);\n"
32412 "\n"
32413 msgstr ""
32414
32415 #. type: =head2
32416 #: ../src/guestfs-actions.pod:7128
32417 msgid "guestfs_setxattr"
32418 msgstr ""
32419
32420 #. type: verbatim
32421 #: ../src/guestfs-actions.pod:7130
32422 #, no-wrap
32423 msgid ""
32424 " int\n"
32425 " guestfs_setxattr (guestfs_h *g,\n"
32426 "                   const char *xattr,\n"
32427 "                   const char *val,\n"
32428 "                   int vallen,\n"
32429 "                   const char *path);\n"
32430 "\n"
32431 msgstr ""
32432
32433 #. type: textblock
32434 #: ../src/guestfs-actions.pod:7141
32435 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32436 msgstr ""
32437
32438 #. type: =head2
32439 #: ../src/guestfs-actions.pod:7147
32440 msgid "guestfs_sfdisk"
32441 msgstr ""
32442
32443 #. type: verbatim
32444 #: ../src/guestfs-actions.pod:7149
32445 #, no-wrap
32446 msgid ""
32447 " int\n"
32448 " guestfs_sfdisk (guestfs_h *g,\n"
32449 "                 const char *device,\n"
32450 "                 int cyls,\n"
32451 "                 int heads,\n"
32452 "                 int sectors,\n"
32453 "                 char *const *lines);\n"
32454 "\n"
32455 msgstr ""
32456
32457 #. type: textblock
32458 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7198 ../src/guestfs-actions.pod:7229
32459 msgid ""
32460 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32461 "call instead."
32462 msgstr ""
32463
32464 #. type: textblock
32465 #: ../src/guestfs-actions.pod:7184
32466 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32467 msgstr ""
32468
32469 #. type: =head2
32470 #: ../src/guestfs-actions.pod:7191
32471 msgid "guestfs_sfdiskM"
32472 msgstr ""
32473
32474 #. type: verbatim
32475 #: ../src/guestfs-actions.pod:7193
32476 #, no-wrap
32477 msgid ""
32478 " int\n"
32479 " guestfs_sfdiskM (guestfs_h *g,\n"
32480 "                  const char *device,\n"
32481 "                  char *const *lines);\n"
32482 "\n"
32483 msgstr ""
32484
32485 #. type: textblock
32486 #: ../src/guestfs-actions.pod:7205
32487 msgid ""
32488 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32489 "partition sizes are specified in megabytes only (rounded to the nearest "
32490 "cylinder) and you don't need to specify the cyls, heads and sectors "
32491 "parameters which were rarely if ever used anyway."
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs-actions.pod:7211
32496 msgid ""
32497 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32498 "C<guestfs_part_disk>"
32499 msgstr ""
32500
32501 #. type: =head2
32502 #: ../src/guestfs-actions.pod:7218
32503 msgid "guestfs_sfdisk_N"
32504 msgstr ""
32505
32506 #. type: verbatim
32507 #: ../src/guestfs-actions.pod:7220
32508 #, no-wrap
32509 msgid ""
32510 " int\n"
32511 " guestfs_sfdisk_N (guestfs_h *g,\n"
32512 "                   const char *device,\n"
32513 "                   int partnum,\n"
32514 "                   int cyls,\n"
32515 "                   int heads,\n"
32516 "                   int sectors,\n"
32517 "                   const char *line);\n"
32518 "\n"
32519 msgstr ""
32520
32521 #. type: textblock
32522 #: ../src/guestfs-actions.pod:7239
32523 msgid ""
32524 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32525 "for the cyls/heads/sectors parameters."
32526 msgstr ""
32527
32528 #. type: textblock
32529 #: ../src/guestfs-actions.pod:7242
32530 msgid "See also: C<guestfs_part_add>"
32531 msgstr ""
32532
32533 #. type: =head2
32534 #: ../src/guestfs-actions.pod:7248
32535 msgid "guestfs_sfdisk_disk_geometry"
32536 msgstr ""
32537
32538 #. type: verbatim
32539 #: ../src/guestfs-actions.pod:7250
32540 #, no-wrap
32541 msgid ""
32542 " char *\n"
32543 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32544 "                               const char *device);\n"
32545 "\n"
32546 msgstr ""
32547
32548 #. type: textblock
32549 #: ../src/guestfs-actions.pod:7254
32550 msgid ""
32551 "This displays the disk geometry of C<device> read from the partition table.  "
32552 "Especially in the case where the underlying block device has been resized, "
32553 "this can be different from the kernel's idea of the geometry (see "
32554 "C<guestfs_sfdisk_kernel_geometry>)."
32555 msgstr ""
32556
32557 #. type: =head2
32558 #: ../src/guestfs-actions.pod:7267
32559 msgid "guestfs_sfdisk_kernel_geometry"
32560 msgstr ""
32561
32562 #. type: verbatim
32563 #: ../src/guestfs-actions.pod:7269
32564 #, no-wrap
32565 msgid ""
32566 " char *\n"
32567 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32568 "                                 const char *device);\n"
32569 "\n"
32570 msgstr ""
32571
32572 #. type: =head2
32573 #: ../src/guestfs-actions.pod:7283
32574 msgid "guestfs_sfdisk_l"
32575 msgstr ""
32576
32577 #. type: verbatim
32578 #: ../src/guestfs-actions.pod:7285
32579 #, no-wrap
32580 msgid ""
32581 " char *\n"
32582 " guestfs_sfdisk_l (guestfs_h *g,\n"
32583 "                   const char *device);\n"
32584 "\n"
32585 msgstr ""
32586
32587 #. type: textblock
32588 #: ../src/guestfs-actions.pod:7289
32589 msgid ""
32590 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32591 "call instead."
32592 msgstr ""
32593
32594 #. type: textblock
32595 #: ../src/guestfs-actions.pod:7300
32596 msgid "See also: C<guestfs_part_list>"
32597 msgstr ""
32598
32599 #. type: =head2
32600 #: ../src/guestfs-actions.pod:7307
32601 msgid "guestfs_sh"
32602 msgstr ""
32603
32604 #. type: verbatim
32605 #: ../src/guestfs-actions.pod:7309
32606 #, no-wrap
32607 msgid ""
32608 " char *\n"
32609 " guestfs_sh (guestfs_h *g,\n"
32610 "             const char *command);\n"
32611 "\n"
32612 msgstr ""
32613
32614 #. type: textblock
32615 #: ../src/guestfs-actions.pod:7316
32616 msgid "This is like C<guestfs_command>, but passes the command to:"
32617 msgstr ""
32618
32619 #. type: textblock
32620 #: ../src/guestfs-actions.pod:7324
32621 msgid "All the provisos about C<guestfs_command> apply to this call."
32622 msgstr ""
32623
32624 #. type: =head2
32625 #: ../src/guestfs-actions.pod:7331
32626 msgid "guestfs_sh_lines"
32627 msgstr ""
32628
32629 #. type: verbatim
32630 #: ../src/guestfs-actions.pod:7333
32631 #, no-wrap
32632 msgid ""
32633 " char **\n"
32634 " guestfs_sh_lines (guestfs_h *g,\n"
32635 "                   const char *command);\n"
32636 "\n"
32637 msgstr ""
32638
32639 #. type: textblock
32640 #: ../src/guestfs-actions.pod:7337
32641 msgid ""
32642 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32643 "lines."
32644 msgstr ""
32645
32646 #. type: textblock
32647 #: ../src/guestfs-actions.pod:7340
32648 msgid "See also: C<guestfs_command_lines>"
32649 msgstr ""
32650
32651 #. type: =head2
32652 #: ../src/guestfs-actions.pod:7348
32653 msgid "guestfs_sleep"
32654 msgstr ""
32655
32656 #. type: verbatim
32657 #: ../src/guestfs-actions.pod:7350
32658 #, no-wrap
32659 msgid ""
32660 " int\n"
32661 " guestfs_sleep (guestfs_h *g,\n"
32662 "                int secs);\n"
32663 "\n"
32664 msgstr ""
32665
32666 #. type: textblock
32667 #: ../src/guestfs-actions.pod:7358
32668 msgid "(Added in 1.0.41)"
32669 msgstr ""
32670
32671 #. type: =head2
32672 #: ../src/guestfs-actions.pod:7360 ../src/guestfs-structs.pod:109
32673 msgid "guestfs_stat"
32674 msgstr ""
32675
32676 #. type: verbatim
32677 #: ../src/guestfs-actions.pod:7362
32678 #, no-wrap
32679 msgid ""
32680 " struct guestfs_stat *\n"
32681 " guestfs_stat (guestfs_h *g,\n"
32682 "               const char *path);\n"
32683 "\n"
32684 msgstr ""
32685
32686 #. type: =head2
32687 #: ../src/guestfs-actions.pod:7376 ../src/guestfs-structs.pod:135
32688 msgid "guestfs_statvfs"
32689 msgstr ""
32690
32691 #. type: verbatim
32692 #: ../src/guestfs-actions.pod:7378
32693 #, no-wrap
32694 msgid ""
32695 " struct guestfs_statvfs *\n"
32696 " guestfs_statvfs (guestfs_h *g,\n"
32697 "                  const char *path);\n"
32698 "\n"
32699 msgstr ""
32700
32701 #. type: textblock
32702 #: ../src/guestfs-actions.pod:7388
32703 msgid ""
32704 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32705 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32706 msgstr ""
32707
32708 #. type: =head2
32709 #: ../src/guestfs-actions.pod:7394
32710 msgid "guestfs_strings"
32711 msgstr ""
32712
32713 #. type: verbatim
32714 #: ../src/guestfs-actions.pod:7396
32715 #, no-wrap
32716 msgid ""
32717 " char **\n"
32718 " guestfs_strings (guestfs_h *g,\n"
32719 "                  const char *path);\n"
32720 "\n"
32721 msgstr ""
32722
32723 #. type: =head2
32724 #: ../src/guestfs-actions.pod:7412
32725 msgid "guestfs_strings_e"
32726 msgstr ""
32727
32728 #. type: verbatim
32729 #: ../src/guestfs-actions.pod:7414
32730 #, no-wrap
32731 msgid ""
32732 " char **\n"
32733 " guestfs_strings_e (guestfs_h *g,\n"
32734 "                    const char *encoding,\n"
32735 "                    const char *path);\n"
32736 "\n"
32737 msgstr ""
32738
32739 #. type: textblock
32740 #: ../src/guestfs-actions.pod:7419
32741 msgid ""
32742 "This is like the C<guestfs_strings> command, but allows you to specify the "
32743 "encoding of strings that are looked for in the source file C<path>."
32744 msgstr ""
32745
32746 #. type: textblock
32747 #: ../src/guestfs-actions.pod:7429
32748 msgid ""
32749 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32750 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32751 msgstr ""
32752
32753 #. type: =head2
32754 #: ../src/guestfs-actions.pod:7467
32755 msgid "guestfs_swapoff_device"
32756 msgstr ""
32757
32758 #. type: verbatim
32759 #: ../src/guestfs-actions.pod:7469
32760 #, no-wrap
32761 msgid ""
32762 " int\n"
32763 " guestfs_swapoff_device (guestfs_h *g,\n"
32764 "                         const char *device);\n"
32765 "\n"
32766 msgstr ""
32767
32768 #. type: textblock
32769 #: ../src/guestfs-actions.pod:7473
32770 msgid ""
32771 "This command disables the libguestfs appliance swap device or partition "
32772 "named C<device>.  See C<guestfs_swapon_device>."
32773 msgstr ""
32774
32775 #. type: =head2
32776 #: ../src/guestfs-actions.pod:7481
32777 msgid "guestfs_swapoff_file"
32778 msgstr ""
32779
32780 #. type: verbatim
32781 #: ../src/guestfs-actions.pod:7483
32782 #, no-wrap
32783 msgid ""
32784 " int\n"
32785 " guestfs_swapoff_file (guestfs_h *g,\n"
32786 "                       const char *file);\n"
32787 "\n"
32788 msgstr ""
32789
32790 #. type: =head2
32791 #: ../src/guestfs-actions.pod:7493
32792 msgid "guestfs_swapoff_label"
32793 msgstr ""
32794
32795 #. type: verbatim
32796 #: ../src/guestfs-actions.pod:7495
32797 #, no-wrap
32798 msgid ""
32799 " int\n"
32800 " guestfs_swapoff_label (guestfs_h *g,\n"
32801 "                        const char *label);\n"
32802 "\n"
32803 msgstr ""
32804
32805 #. type: =head2
32806 #: ../src/guestfs-actions.pod:7506
32807 msgid "guestfs_swapoff_uuid"
32808 msgstr ""
32809
32810 #. type: verbatim
32811 #: ../src/guestfs-actions.pod:7508
32812 #, no-wrap
32813 msgid ""
32814 " int\n"
32815 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32816 "                       const char *uuid);\n"
32817 "\n"
32818 msgstr ""
32819
32820 #. type: =head2
32821 #: ../src/guestfs-actions.pod:7519
32822 msgid "guestfs_swapon_device"
32823 msgstr ""
32824
32825 #. type: verbatim
32826 #: ../src/guestfs-actions.pod:7521
32827 #, no-wrap
32828 msgid ""
32829 " int\n"
32830 " guestfs_swapon_device (guestfs_h *g,\n"
32831 "                        const char *device);\n"
32832 "\n"
32833 msgstr ""
32834
32835 #. type: textblock
32836 #: ../src/guestfs-actions.pod:7525
32837 msgid ""
32838 "This command enables the libguestfs appliance to use the swap device or "
32839 "partition named C<device>.  The increased memory is made available for all "
32840 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32841 msgstr ""
32842
32843 #. type: =head2
32844 #: ../src/guestfs-actions.pod:7541
32845 msgid "guestfs_swapon_file"
32846 msgstr ""
32847
32848 #. type: verbatim
32849 #: ../src/guestfs-actions.pod:7543
32850 #, no-wrap
32851 msgid ""
32852 " int\n"
32853 " guestfs_swapon_file (guestfs_h *g,\n"
32854 "                      const char *file);\n"
32855 "\n"
32856 msgstr ""
32857
32858 #. type: textblock
32859 #: ../src/guestfs-actions.pod:7547
32860 msgid ""
32861 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32862 "notes."
32863 msgstr ""
32864
32865 #. type: =head2
32866 #: ../src/guestfs-actions.pod:7554
32867 msgid "guestfs_swapon_label"
32868 msgstr ""
32869
32870 #. type: verbatim
32871 #: ../src/guestfs-actions.pod:7556
32872 #, no-wrap
32873 msgid ""
32874 " int\n"
32875 " guestfs_swapon_label (guestfs_h *g,\n"
32876 "                       const char *label);\n"
32877 "\n"
32878 msgstr ""
32879
32880 #. type: textblock
32881 #: ../src/guestfs-actions.pod:7560
32882 msgid ""
32883 "This command enables swap to a labeled swap partition.  See "
32884 "C<guestfs_swapon_device> for other notes."
32885 msgstr ""
32886
32887 #. type: =head2
32888 #: ../src/guestfs-actions.pod:7567
32889 msgid "guestfs_swapon_uuid"
32890 msgstr ""
32891
32892 #. type: verbatim
32893 #: ../src/guestfs-actions.pod:7569
32894 #, no-wrap
32895 msgid ""
32896 " int\n"
32897 " guestfs_swapon_uuid (guestfs_h *g,\n"
32898 "                      const char *uuid);\n"
32899 "\n"
32900 msgstr ""
32901
32902 #. type: textblock
32903 #: ../src/guestfs-actions.pod:7573
32904 msgid ""
32905 "This command enables swap to a swap partition with the given UUID.  See "
32906 "C<guestfs_swapon_device> for other notes."
32907 msgstr ""
32908
32909 #. type: =head2
32910 #: ../src/guestfs-actions.pod:7580
32911 msgid "guestfs_sync"
32912 msgstr ""
32913
32914 #. type: verbatim
32915 #: ../src/guestfs-actions.pod:7582
32916 #, no-wrap
32917 msgid ""
32918 " int\n"
32919 " guestfs_sync (guestfs_h *g);\n"
32920 "\n"
32921 msgstr ""
32922
32923 #. type: =head2
32924 #: ../src/guestfs-actions.pod:7595
32925 msgid "guestfs_tail"
32926 msgstr ""
32927
32928 #. type: verbatim
32929 #: ../src/guestfs-actions.pod:7597
32930 #, no-wrap
32931 msgid ""
32932 " char **\n"
32933 " guestfs_tail (guestfs_h *g,\n"
32934 "               const char *path);\n"
32935 "\n"
32936 msgstr ""
32937
32938 #. type: =head2
32939 #: ../src/guestfs-actions.pod:7613
32940 msgid "guestfs_tail_n"
32941 msgstr ""
32942
32943 #. type: verbatim
32944 #: ../src/guestfs-actions.pod:7615
32945 #, no-wrap
32946 msgid ""
32947 " char **\n"
32948 " guestfs_tail_n (guestfs_h *g,\n"
32949 "                 int nrlines,\n"
32950 "                 const char *path);\n"
32951 "\n"
32952 msgstr ""
32953
32954 #. type: =head2
32955 #: ../src/guestfs-actions.pod:7637
32956 msgid "guestfs_tar_in"
32957 msgstr ""
32958
32959 #. type: verbatim
32960 #: ../src/guestfs-actions.pod:7639
32961 #, no-wrap
32962 msgid ""
32963 " int\n"
32964 " guestfs_tar_in (guestfs_h *g,\n"
32965 "                 const char *tarfile,\n"
32966 "                 const char *directory);\n"
32967 "\n"
32968 msgstr ""
32969
32970 #. type: textblock
32971 #: ../src/guestfs-actions.pod:7647
32972 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32973 msgstr ""
32974
32975 #. type: textblock
32976 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7669 ../src/guestfs-actions.pod:7685 ../src/guestfs-actions.pod:7701
32977 msgid "(Added in 1.0.3)"
32978 msgstr ""
32979
32980 #. type: =head2
32981 #: ../src/guestfs-actions.pod:7654
32982 msgid "guestfs_tar_out"
32983 msgstr ""
32984
32985 #. type: verbatim
32986 #: ../src/guestfs-actions.pod:7656
32987 #, no-wrap
32988 msgid ""
32989 " int\n"
32990 " guestfs_tar_out (guestfs_h *g,\n"
32991 "                  const char *directory,\n"
32992 "                  const char *tarfile);\n"
32993 "\n"
32994 msgstr ""
32995
32996 #. type: textblock
32997 #: ../src/guestfs-actions.pod:7664
32998 msgid ""
32999 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33000 "C<guestfs_txz_out>."
33001 msgstr ""
33002
33003 #. type: =head2
33004 #: ../src/guestfs-actions.pod:7671
33005 msgid "guestfs_tgz_in"
33006 msgstr ""
33007
33008 #. type: verbatim
33009 #: ../src/guestfs-actions.pod:7673
33010 #, no-wrap
33011 msgid ""
33012 " int\n"
33013 " guestfs_tgz_in (guestfs_h *g,\n"
33014 "                 const char *tarball,\n"
33015 "                 const char *directory);\n"
33016 "\n"
33017 msgstr ""
33018
33019 #. type: textblock
33020 #: ../src/guestfs-actions.pod:7681
33021 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33022 msgstr ""
33023
33024 #. type: =head2
33025 #: ../src/guestfs-actions.pod:7687
33026 msgid "guestfs_tgz_out"
33027 msgstr ""
33028
33029 #. type: verbatim
33030 #: ../src/guestfs-actions.pod:7689
33031 #, no-wrap
33032 msgid ""
33033 " int\n"
33034 " guestfs_tgz_out (guestfs_h *g,\n"
33035 "                  const char *directory,\n"
33036 "                  const char *tarball);\n"
33037 "\n"
33038 msgstr ""
33039
33040 #. type: textblock
33041 #: ../src/guestfs-actions.pod:7697
33042 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33043 msgstr ""
33044
33045 #. type: =head2
33046 #: ../src/guestfs-actions.pod:7703
33047 msgid "guestfs_touch"
33048 msgstr ""
33049
33050 #. type: verbatim
33051 #: ../src/guestfs-actions.pod:7705
33052 #, no-wrap
33053 msgid ""
33054 " int\n"
33055 " guestfs_touch (guestfs_h *g,\n"
33056 "                const char *path);\n"
33057 "\n"
33058 msgstr ""
33059
33060 #. type: =head2
33061 #: ../src/guestfs-actions.pod:7720
33062 msgid "guestfs_truncate"
33063 msgstr ""
33064
33065 #. type: verbatim
33066 #: ../src/guestfs-actions.pod:7722
33067 #, no-wrap
33068 msgid ""
33069 " int\n"
33070 " guestfs_truncate (guestfs_h *g,\n"
33071 "                   const char *path);\n"
33072 "\n"
33073 msgstr ""
33074
33075 #. type: =head2
33076 #: ../src/guestfs-actions.pod:7733
33077 msgid "guestfs_truncate_size"
33078 msgstr ""
33079
33080 #. type: verbatim
33081 #: ../src/guestfs-actions.pod:7735
33082 #, no-wrap
33083 msgid ""
33084 " int\n"
33085 " guestfs_truncate_size (guestfs_h *g,\n"
33086 "                        const char *path,\n"
33087 "                        int64_t size);\n"
33088 "\n"
33089 msgstr ""
33090
33091 #. type: textblock
33092 #: ../src/guestfs-actions.pod:7743
33093 msgid ""
33094 "If the current file size is less than C<size> then the file is extended to "
33095 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33096 "blocks are not allocated for the file until you write to it).  To create a "
33097 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33098 msgstr ""
33099
33100 #. type: =head2
33101 #: ../src/guestfs-actions.pod:7753
33102 msgid "guestfs_tune2fs"
33103 msgstr ""
33104
33105 #. type: verbatim
33106 #: ../src/guestfs-actions.pod:7755
33107 #, no-wrap
33108 msgid ""
33109 " int\n"
33110 " guestfs_tune2fs (guestfs_h *g,\n"
33111 "                  const char *device,\n"
33112 "                  ...);\n"
33113 "\n"
33114 msgstr ""
33115
33116 #. type: verbatim
33117 #: ../src/guestfs-actions.pod:7765
33118 #, no-wrap
33119 msgid ""
33120 " GUESTFS_TUNE2FS_FORCE, int force,\n"
33121 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
33122 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
33123 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
33124 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
33125 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
33126 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
33127 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
33128 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
33129 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
33130 "\n"
33131 msgstr ""
33132
33133 #. type: textblock
33134 #: ../src/guestfs-actions.pod:7845
33135 msgid ""
33136 "To get the current values of filesystem parameters, see "
33137 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
33138 "L<tune2fs(8)> man page."
33139 msgstr ""
33140
33141 #. type: =head2
33142 #: ../src/guestfs-actions.pod:7853
33143 msgid "guestfs_tune2fs_va"
33144 msgstr ""
33145
33146 #. type: verbatim
33147 #: ../src/guestfs-actions.pod:7855
33148 #, no-wrap
33149 msgid ""
33150 " int\n"
33151 " guestfs_tune2fs_va (guestfs_h *g,\n"
33152 "                     const char *device,\n"
33153 "                     va_list args);\n"
33154 "\n"
33155 msgstr ""
33156
33157 #. type: textblock
33158 #: ../src/guestfs-actions.pod:7860
33159 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
33160 msgstr ""
33161
33162 #. type: =head2
33163 #: ../src/guestfs-actions.pod:7864
33164 msgid "guestfs_tune2fs_argv"
33165 msgstr ""
33166
33167 #. type: verbatim
33168 #: ../src/guestfs-actions.pod:7866
33169 #, no-wrap
33170 msgid ""
33171 " int\n"
33172 " guestfs_tune2fs_argv (guestfs_h *g,\n"
33173 "                       const char *device,\n"
33174 "                       const struct guestfs_tune2fs_argv *optargs);\n"
33175 "\n"
33176 msgstr ""
33177
33178 #. type: textblock
33179 #: ../src/guestfs-actions.pod:7871
33180 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
33181 msgstr ""
33182
33183 #. type: =head2
33184 #: ../src/guestfs-actions.pod:7875
33185 msgid "guestfs_tune2fs_l"
33186 msgstr ""
33187
33188 #. type: verbatim
33189 #: ../src/guestfs-actions.pod:7877
33190 #, no-wrap
33191 msgid ""
33192 " char **\n"
33193 " guestfs_tune2fs_l (guestfs_h *g,\n"
33194 "                    const char *device);\n"
33195 "\n"
33196 msgstr ""
33197
33198 #. type: =head2
33199 #: ../src/guestfs-actions.pod:7897
33200 msgid "guestfs_txz_in"
33201 msgstr ""
33202
33203 #. type: verbatim
33204 #: ../src/guestfs-actions.pod:7899
33205 #, no-wrap
33206 msgid ""
33207 " int\n"
33208 " guestfs_txz_in (guestfs_h *g,\n"
33209 "                 const char *tarball,\n"
33210 "                 const char *directory);\n"
33211 "\n"
33212 msgstr ""
33213
33214 #. type: =head2
33215 #: ../src/guestfs-actions.pod:7911
33216 msgid "guestfs_txz_out"
33217 msgstr ""
33218
33219 #. type: verbatim
33220 #: ../src/guestfs-actions.pod:7913
33221 #, no-wrap
33222 msgid ""
33223 " int\n"
33224 " guestfs_txz_out (guestfs_h *g,\n"
33225 "                  const char *directory,\n"
33226 "                  const char *tarball);\n"
33227 "\n"
33228 msgstr ""
33229
33230 #. type: =head2
33231 #: ../src/guestfs-actions.pod:7925
33232 msgid "guestfs_umask"
33233 msgstr ""
33234
33235 #. type: verbatim
33236 #: ../src/guestfs-actions.pod:7927
33237 #, no-wrap
33238 msgid ""
33239 " int\n"
33240 " guestfs_umask (guestfs_h *g,\n"
33241 "                int mask);\n"
33242 "\n"
33243 msgstr ""
33244
33245 #. type: textblock
33246 #: ../src/guestfs-actions.pod:7943
33247 msgid ""
33248 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33249 "C<guestfs_mkdir>."
33250 msgstr ""
33251
33252 #. type: =head2
33253 #: ../src/guestfs-actions.pod:7952
33254 msgid "guestfs_umount"
33255 msgstr ""
33256
33257 #. type: verbatim
33258 #: ../src/guestfs-actions.pod:7954
33259 #, no-wrap
33260 msgid ""
33261 " int\n"
33262 " guestfs_umount (guestfs_h *g,\n"
33263 "                 const char *pathordevice);\n"
33264 "\n"
33265 msgstr ""
33266
33267 #. type: =head2
33268 #: ../src/guestfs-actions.pod:7966
33269 msgid "guestfs_umount_all"
33270 msgstr ""
33271
33272 #. type: verbatim
33273 #: ../src/guestfs-actions.pod:7968
33274 #, no-wrap
33275 msgid ""
33276 " int\n"
33277 " guestfs_umount_all (guestfs_h *g);\n"
33278 "\n"
33279 msgstr ""
33280
33281 #. type: =head2
33282 #: ../src/guestfs-actions.pod:7979
33283 msgid "guestfs_upload"
33284 msgstr ""
33285
33286 #. type: verbatim
33287 #: ../src/guestfs-actions.pod:7981
33288 #, no-wrap
33289 msgid ""
33290 " int\n"
33291 " guestfs_upload (guestfs_h *g,\n"
33292 "                 const char *filename,\n"
33293 "                 const char *remotefilename);\n"
33294 "\n"
33295 msgstr ""
33296
33297 #. type: textblock
33298 #: ../src/guestfs-actions.pod:7991
33299 msgid "See also C<guestfs_download>."
33300 msgstr ""
33301
33302 #. type: =head2
33303 #: ../src/guestfs-actions.pod:8002
33304 msgid "guestfs_upload_offset"
33305 msgstr ""
33306
33307 #. type: verbatim
33308 #: ../src/guestfs-actions.pod:8004
33309 #, no-wrap
33310 msgid ""
33311 " int\n"
33312 " guestfs_upload_offset (guestfs_h *g,\n"
33313 "                        const char *filename,\n"
33314 "                        const char *remotefilename,\n"
33315 "                        int64_t offset);\n"
33316 "\n"
33317 msgstr ""
33318
33319 #. type: textblock
33320 #: ../src/guestfs-actions.pod:8020
33321 msgid ""
33322 "Note that there is no limit on the amount of data that can be uploaded with "
33323 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33324 "full amount unless an error occurs."
33325 msgstr ""
33326
33327 #. type: textblock
33328 #: ../src/guestfs-actions.pod:8025
33329 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33330 msgstr ""
33331
33332 #. type: =head2
33333 #: ../src/guestfs-actions.pod:8036
33334 msgid "guestfs_utimens"
33335 msgstr ""
33336
33337 #. type: verbatim
33338 #: ../src/guestfs-actions.pod:8038
33339 #, no-wrap
33340 msgid ""
33341 " int\n"
33342 " guestfs_utimens (guestfs_h *g,\n"
33343 "                  const char *path,\n"
33344 "                  int64_t atsecs,\n"
33345 "                  int64_t atnsecs,\n"
33346 "                  int64_t mtsecs,\n"
33347 "                  int64_t mtnsecs);\n"
33348 "\n"
33349 msgstr ""
33350
33351 #. type: =head2
33352 #: ../src/guestfs-actions.pod:8067 ../src/guestfs-structs.pod:175
33353 msgid "guestfs_version"
33354 msgstr ""
33355
33356 #. type: verbatim
33357 #: ../src/guestfs-actions.pod:8069
33358 #, no-wrap
33359 msgid ""
33360 " struct guestfs_version *\n"
33361 " guestfs_version (guestfs_h *g);\n"
33362 "\n"
33363 msgstr ""
33364
33365 #. type: textblock
33366 #: ../src/guestfs-actions.pod:8097
33367 msgid ""
33368 "I<Note:> Don't use this call to test for availability of features.  In "
33369 "enterprise distributions we backport features from later versions into "
33370 "earlier versions, making this an unreliable way to test for features.  Use "
33371 "C<guestfs_available> instead."
33372 msgstr ""
33373
33374 #. type: textblock
33375 #: ../src/guestfs-actions.pod:8103
33376 msgid ""
33377 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33378 "error.  I<The caller must call C<guestfs_free_version> after use>."
33379 msgstr ""
33380
33381 #. type: textblock
33382 #: ../src/guestfs-actions.pod:8107
33383 msgid "(Added in 1.0.58)"
33384 msgstr ""
33385
33386 #. type: =head2
33387 #: ../src/guestfs-actions.pod:8109
33388 msgid "guestfs_vfs_label"
33389 msgstr ""
33390
33391 #. type: verbatim
33392 #: ../src/guestfs-actions.pod:8111
33393 #, no-wrap
33394 msgid ""
33395 " char *\n"
33396 " guestfs_vfs_label (guestfs_h *g,\n"
33397 "                    const char *device);\n"
33398 "\n"
33399 msgstr ""
33400
33401 #. type: textblock
33402 #: ../src/guestfs-actions.pod:8120
33403 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33404 msgstr ""
33405
33406 #. type: textblock
33407 #: ../src/guestfs-actions.pod:8125 ../src/guestfs-actions.pod:8162
33408 msgid "(Added in 1.3.18)"
33409 msgstr ""
33410
33411 #. type: =head2
33412 #: ../src/guestfs-actions.pod:8127
33413 msgid "guestfs_vfs_type"
33414 msgstr ""
33415
33416 #. type: verbatim
33417 #: ../src/guestfs-actions.pod:8129
33418 #, no-wrap
33419 msgid ""
33420 " char *\n"
33421 " guestfs_vfs_type (guestfs_h *g,\n"
33422 "                   const char *device);\n"
33423 "\n"
33424 msgstr ""
33425
33426 #. type: =head2
33427 #: ../src/guestfs-actions.pod:8146
33428 msgid "guestfs_vfs_uuid"
33429 msgstr ""
33430
33431 #. type: verbatim
33432 #: ../src/guestfs-actions.pod:8148
33433 #, no-wrap
33434 msgid ""
33435 " char *\n"
33436 " guestfs_vfs_uuid (guestfs_h *g,\n"
33437 "                   const char *device);\n"
33438 "\n"
33439 msgstr ""
33440
33441 #. type: textblock
33442 #: ../src/guestfs-actions.pod:8157
33443 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33444 msgstr ""
33445
33446 #. type: =head2
33447 #: ../src/guestfs-actions.pod:8164
33448 msgid "guestfs_vg_activate"
33449 msgstr ""
33450
33451 #. type: verbatim
33452 #: ../src/guestfs-actions.pod:8166
33453 #, no-wrap
33454 msgid ""
33455 " int\n"
33456 " guestfs_vg_activate (guestfs_h *g,\n"
33457 "                      int activate,\n"
33458 "                      char *const *volgroups);\n"
33459 "\n"
33460 msgstr ""
33461
33462 #. type: =head2
33463 #: ../src/guestfs-actions.pod:8183
33464 msgid "guestfs_vg_activate_all"
33465 msgstr ""
33466
33467 #. type: verbatim
33468 #: ../src/guestfs-actions.pod:8185
33469 #, no-wrap
33470 msgid ""
33471 " int\n"
33472 " guestfs_vg_activate_all (guestfs_h *g,\n"
33473 "                          int activate);\n"
33474 "\n"
33475 msgstr ""
33476
33477 #. type: =head2
33478 #: ../src/guestfs-actions.pod:8198
33479 msgid "guestfs_vgcreate"
33480 msgstr ""
33481
33482 #. type: verbatim
33483 #: ../src/guestfs-actions.pod:8200
33484 #, no-wrap
33485 msgid ""
33486 " int\n"
33487 " guestfs_vgcreate (guestfs_h *g,\n"
33488 "                   const char *volgroup,\n"
33489 "                   char *const *physvols);\n"
33490 "\n"
33491 msgstr ""
33492
33493 #. type: =head2
33494 #: ../src/guestfs-actions.pod:8212
33495 msgid "guestfs_vglvuuids"
33496 msgstr ""
33497
33498 #. type: verbatim
33499 #: ../src/guestfs-actions.pod:8214
33500 #, no-wrap
33501 msgid ""
33502 " char **\n"
33503 " guestfs_vglvuuids (guestfs_h *g,\n"
33504 "                    const char *vgname);\n"
33505 "\n"
33506 msgstr ""
33507
33508 #. type: textblock
33509 #: ../src/guestfs-actions.pod:8221
33510 msgid ""
33511 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33512 "associate logical volumes and volume groups."
33513 msgstr ""
33514
33515 #. type: textblock
33516 #: ../src/guestfs-actions.pod:8224
33517 msgid "See also C<guestfs_vgpvuuids>."
33518 msgstr ""
33519
33520 #. type: =head2
33521 #: ../src/guestfs-actions.pod:8232
33522 msgid "guestfs_vgpvuuids"
33523 msgstr ""
33524
33525 #. type: verbatim
33526 #: ../src/guestfs-actions.pod:8234
33527 #, no-wrap
33528 msgid ""
33529 " char **\n"
33530 " guestfs_vgpvuuids (guestfs_h *g,\n"
33531 "                    const char *vgname);\n"
33532 "\n"
33533 msgstr ""
33534
33535 #. type: textblock
33536 #: ../src/guestfs-actions.pod:8241
33537 msgid ""
33538 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33539 "associate physical volumes and volume groups."
33540 msgstr ""
33541
33542 #. type: textblock
33543 #: ../src/guestfs-actions.pod:8244
33544 msgid "See also C<guestfs_vglvuuids>."
33545 msgstr ""
33546
33547 #. type: =head2
33548 #: ../src/guestfs-actions.pod:8252
33549 msgid "guestfs_vgremove"
33550 msgstr ""
33551
33552 #. type: verbatim
33553 #: ../src/guestfs-actions.pod:8254
33554 #, no-wrap
33555 msgid ""
33556 " int\n"
33557 " guestfs_vgremove (guestfs_h *g,\n"
33558 "                   const char *vgname);\n"
33559 "\n"
33560 msgstr ""
33561
33562 #. type: =head2
33563 #: ../src/guestfs-actions.pod:8267
33564 msgid "guestfs_vgrename"
33565 msgstr ""
33566
33567 #. type: verbatim
33568 #: ../src/guestfs-actions.pod:8269
33569 #, no-wrap
33570 msgid ""
33571 " int\n"
33572 " guestfs_vgrename (guestfs_h *g,\n"
33573 "                   const char *volgroup,\n"
33574 "                   const char *newvolgroup);\n"
33575 "\n"
33576 msgstr ""
33577
33578 #. type: =head2
33579 #: ../src/guestfs-actions.pod:8280
33580 msgid "guestfs_vgs"
33581 msgstr ""
33582
33583 #. type: verbatim
33584 #: ../src/guestfs-actions.pod:8282
33585 #, no-wrap
33586 msgid ""
33587 " char **\n"
33588 " guestfs_vgs (guestfs_h *g);\n"
33589 "\n"
33590 msgstr ""
33591
33592 #. type: textblock
33593 #: ../src/guestfs-actions.pod:8291
33594 msgid "See also C<guestfs_vgs_full>."
33595 msgstr ""
33596
33597 #. type: =head2
33598 #: ../src/guestfs-actions.pod:8299
33599 msgid "guestfs_vgs_full"
33600 msgstr ""
33601
33602 #. type: verbatim
33603 #: ../src/guestfs-actions.pod:8301
33604 #, no-wrap
33605 msgid ""
33606 " struct guestfs_lvm_vg_list *\n"
33607 " guestfs_vgs_full (guestfs_h *g);\n"
33608 "\n"
33609 msgstr ""
33610
33611 #. type: textblock
33612 #: ../src/guestfs-actions.pod:8307
33613 msgid ""
33614 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33615 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
33616 "use>."
33617 msgstr ""
33618
33619 #. type: =head2
33620 #: ../src/guestfs-actions.pod:8313
33621 msgid "guestfs_vgscan"
33622 msgstr ""
33623
33624 #. type: verbatim
33625 #: ../src/guestfs-actions.pod:8315
33626 #, no-wrap
33627 msgid ""
33628 " int\n"
33629 " guestfs_vgscan (guestfs_h *g);\n"
33630 "\n"
33631 msgstr ""
33632
33633 #. type: =head2
33634 #: ../src/guestfs-actions.pod:8325
33635 msgid "guestfs_vguuid"
33636 msgstr ""
33637
33638 #. type: verbatim
33639 #: ../src/guestfs-actions.pod:8327
33640 #, no-wrap
33641 msgid ""
33642 " char *\n"
33643 " guestfs_vguuid (guestfs_h *g,\n"
33644 "                 const char *vgname);\n"
33645 "\n"
33646 msgstr ""
33647
33648 #. type: =head2
33649 #: ../src/guestfs-actions.pod:8338
33650 msgid "guestfs_wait_ready"
33651 msgstr ""
33652
33653 #. type: verbatim
33654 #: ../src/guestfs-actions.pod:8340
33655 #, no-wrap
33656 msgid ""
33657 " int\n"
33658 " guestfs_wait_ready (guestfs_h *g);\n"
33659 "\n"
33660 msgstr ""
33661
33662 #. type: textblock
33663 #: ../src/guestfs-actions.pod:8343
33664 msgid ""
33665 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33666 "instead."
33667 msgstr ""
33668
33669 #. type: textblock
33670 #: ../src/guestfs-actions.pod:8350
33671 msgid "This function is a no op."
33672 msgstr ""
33673
33674 #. type: textblock
33675 #: ../src/guestfs-actions.pod:8352
33676 msgid ""
33677 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33678 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33679 "is no longer necessary because C<guestfs_launch> now does the waiting."
33680 msgstr ""
33681
33682 #. type: textblock
33683 #: ../src/guestfs-actions.pod:8357
33684 msgid ""
33685 "If you see any calls to this function in code then you can just remove them, "
33686 "unless you want to retain compatibility with older versions of the API."
33687 msgstr ""
33688
33689 #. type: =head2
33690 #: ../src/guestfs-actions.pod:8365
33691 msgid "guestfs_wc_c"
33692 msgstr ""
33693
33694 #. type: verbatim
33695 #: ../src/guestfs-actions.pod:8367
33696 #, no-wrap
33697 msgid ""
33698 " int\n"
33699 " guestfs_wc_c (guestfs_h *g,\n"
33700 "               const char *path);\n"
33701 "\n"
33702 msgstr ""
33703
33704 #. type: =head2
33705 #: ../src/guestfs-actions.pod:8378
33706 msgid "guestfs_wc_l"
33707 msgstr ""
33708
33709 #. type: verbatim
33710 #: ../src/guestfs-actions.pod:8380
33711 #, no-wrap
33712 msgid ""
33713 " int\n"
33714 " guestfs_wc_l (guestfs_h *g,\n"
33715 "               const char *path);\n"
33716 "\n"
33717 msgstr ""
33718
33719 #. type: =head2
33720 #: ../src/guestfs-actions.pod:8391
33721 msgid "guestfs_wc_w"
33722 msgstr ""
33723
33724 #. type: verbatim
33725 #: ../src/guestfs-actions.pod:8393
33726 #, no-wrap
33727 msgid ""
33728 " int\n"
33729 " guestfs_wc_w (guestfs_h *g,\n"
33730 "               const char *path);\n"
33731 "\n"
33732 msgstr ""
33733
33734 #. type: =head2
33735 #: ../src/guestfs-actions.pod:8404
33736 msgid "guestfs_write"
33737 msgstr ""
33738
33739 #. type: verbatim
33740 #: ../src/guestfs-actions.pod:8406
33741 #, no-wrap
33742 msgid ""
33743 " int\n"
33744 " guestfs_write (guestfs_h *g,\n"
33745 "                const char *path,\n"
33746 "                const char *content,\n"
33747 "                size_t content_size);\n"
33748 "\n"
33749 msgstr ""
33750
33751 #. type: textblock
33752 #: ../src/guestfs-actions.pod:8415
33753 msgid "See also C<guestfs_write_append>."
33754 msgstr ""
33755
33756 #. type: =head2
33757 #: ../src/guestfs-actions.pod:8424
33758 msgid "guestfs_write_append"
33759 msgstr ""
33760
33761 #. type: verbatim
33762 #: ../src/guestfs-actions.pod:8426
33763 #, no-wrap
33764 msgid ""
33765 " int\n"
33766 " guestfs_write_append (guestfs_h *g,\n"
33767 "                       const char *path,\n"
33768 "                       const char *content,\n"
33769 "                       size_t content_size);\n"
33770 "\n"
33771 msgstr ""
33772
33773 #. type: textblock
33774 #: ../src/guestfs-actions.pod:8435
33775 msgid "See also C<guestfs_write>."
33776 msgstr ""
33777
33778 #. type: =head2
33779 #: ../src/guestfs-actions.pod:8444
33780 msgid "guestfs_write_file"
33781 msgstr ""
33782
33783 #. type: verbatim
33784 #: ../src/guestfs-actions.pod:8446
33785 #, no-wrap
33786 msgid ""
33787 " int\n"
33788 " guestfs_write_file (guestfs_h *g,\n"
33789 "                     const char *path,\n"
33790 "                     const char *content,\n"
33791 "                     int size);\n"
33792 "\n"
33793 msgstr ""
33794
33795 #. type: textblock
33796 #: ../src/guestfs-actions.pod:8452
33797 msgid ""
33798 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33799 "instead."
33800 msgstr ""
33801
33802 #. type: =head2
33803 #: ../src/guestfs-actions.pod:8477
33804 msgid "guestfs_zegrep"
33805 msgstr ""
33806
33807 #. type: verbatim
33808 #: ../src/guestfs-actions.pod:8479
33809 #, no-wrap
33810 msgid ""
33811 " char **\n"
33812 " guestfs_zegrep (guestfs_h *g,\n"
33813 "                 const char *regex,\n"
33814 "                 const char *path);\n"
33815 "\n"
33816 msgstr ""
33817
33818 #. type: =head2
33819 #: ../src/guestfs-actions.pod:8496
33820 msgid "guestfs_zegrepi"
33821 msgstr ""
33822
33823 #. type: verbatim
33824 #: ../src/guestfs-actions.pod:8498
33825 #, no-wrap
33826 msgid ""
33827 " char **\n"
33828 " guestfs_zegrepi (guestfs_h *g,\n"
33829 "                  const char *regex,\n"
33830 "                  const char *path);\n"
33831 "\n"
33832 msgstr ""
33833
33834 #. type: =head2
33835 #: ../src/guestfs-actions.pod:8515
33836 msgid "guestfs_zero"
33837 msgstr ""
33838
33839 #. type: verbatim
33840 #: ../src/guestfs-actions.pod:8517
33841 #, no-wrap
33842 msgid ""
33843 " int\n"
33844 " guestfs_zero (guestfs_h *g,\n"
33845 "               const char *device);\n"
33846 "\n"
33847 msgstr ""
33848
33849 #. type: textblock
33850 #: ../src/guestfs-actions.pod:8531
33851 msgid ""
33852 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33853 "C<guestfs_is_zero_device>"
33854 msgstr ""
33855
33856 #. type: =head2
33857 #: ../src/guestfs-actions.pod:8543
33858 msgid "guestfs_zero_device"
33859 msgstr ""
33860
33861 #. type: verbatim
33862 #: ../src/guestfs-actions.pod:8545
33863 #, no-wrap
33864 msgid ""
33865 " int\n"
33866 " guestfs_zero_device (guestfs_h *g,\n"
33867 "                      const char *device);\n"
33868 "\n"
33869 msgstr ""
33870
33871 #. type: textblock
33872 #: ../src/guestfs-actions.pod:8549
33873 msgid ""
33874 "This command writes zeroes over the entire C<device>.  Compare with "
33875 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33876 msgstr ""
33877
33878 #. type: textblock
33879 #: ../src/guestfs-actions.pod:8564
33880 msgid "(Added in 1.3.1)"
33881 msgstr ""
33882
33883 #. type: =head2
33884 #: ../src/guestfs-actions.pod:8566
33885 msgid "guestfs_zerofree"
33886 msgstr ""
33887
33888 #. type: verbatim
33889 #: ../src/guestfs-actions.pod:8568
33890 #, no-wrap
33891 msgid ""
33892 " int\n"
33893 " guestfs_zerofree (guestfs_h *g,\n"
33894 "                   const char *device);\n"
33895 "\n"
33896 msgstr ""
33897
33898 #. type: =head2
33899 #: ../src/guestfs-actions.pod:8587
33900 msgid "guestfs_zfgrep"
33901 msgstr ""
33902
33903 #. type: verbatim
33904 #: ../src/guestfs-actions.pod:8589
33905 #, no-wrap
33906 msgid ""
33907 " char **\n"
33908 " guestfs_zfgrep (guestfs_h *g,\n"
33909 "                 const char *pattern,\n"
33910 "                 const char *path);\n"
33911 "\n"
33912 msgstr ""
33913
33914 #. type: =head2
33915 #: ../src/guestfs-actions.pod:8606
33916 msgid "guestfs_zfgrepi"
33917 msgstr ""
33918
33919 #. type: verbatim
33920 #: ../src/guestfs-actions.pod:8608
33921 #, no-wrap
33922 msgid ""
33923 " char **\n"
33924 " guestfs_zfgrepi (guestfs_h *g,\n"
33925 "                  const char *pattern,\n"
33926 "                  const char *path);\n"
33927 "\n"
33928 msgstr ""
33929
33930 #. type: =head2
33931 #: ../src/guestfs-actions.pod:8625
33932 msgid "guestfs_zfile"
33933 msgstr ""
33934
33935 #. type: verbatim
33936 #: ../src/guestfs-actions.pod:8627
33937 #, no-wrap
33938 msgid ""
33939 " char *\n"
33940 " guestfs_zfile (guestfs_h *g,\n"
33941 "                const char *meth,\n"
33942 "                const char *path);\n"
33943 "\n"
33944 msgstr ""
33945
33946 #. type: textblock
33947 #: ../src/guestfs-actions.pod:8632
33948 msgid ""
33949 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33950 "instead."
33951 msgstr ""
33952
33953 #. type: textblock
33954 #: ../src/guestfs-actions.pod:8644
33955 msgid ""
33956 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33957 "files."
33958 msgstr ""
33959
33960 #. type: =head2
33961 #: ../src/guestfs-actions.pod:8652
33962 msgid "guestfs_zgrep"
33963 msgstr ""
33964
33965 #. type: verbatim
33966 #: ../src/guestfs-actions.pod:8654
33967 #, no-wrap
33968 msgid ""
33969 " char **\n"
33970 " guestfs_zgrep (guestfs_h *g,\n"
33971 "                const char *regex,\n"
33972 "                const char *path);\n"
33973 "\n"
33974 msgstr ""
33975
33976 #. type: =head2
33977 #: ../src/guestfs-actions.pod:8671
33978 msgid "guestfs_zgrepi"
33979 msgstr ""
33980
33981 #. type: verbatim
33982 #: ../src/guestfs-actions.pod:8673
33983 #, no-wrap
33984 msgid ""
33985 " char **\n"
33986 " guestfs_zgrepi (guestfs_h *g,\n"
33987 "                 const char *regex,\n"
33988 "                 const char *path);\n"
33989 "\n"
33990 msgstr ""
33991
33992 #. type: =item
33993 #: ../src/guestfs-availability.pod:3
33994 msgid "B<augeas>"
33995 msgstr ""
33996
33997 #. type: textblock
33998 #: ../src/guestfs-availability.pod:5
33999 msgid ""
34000 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
34001 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
34002 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
34003 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
34004 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
34005 msgstr ""
34006
34007 #. type: =item
34008 #: ../src/guestfs-availability.pod:21
34009 msgid "B<btrfs>"
34010 msgstr ""
34011
34012 #. type: textblock
34013 #: ../src/guestfs-availability.pod:23
34014 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34015 msgstr ""
34016
34017 #. type: =item
34018 #: ../src/guestfs-availability.pod:26
34019 msgid "B<grub>"
34020 msgstr ""
34021
34022 #. type: textblock
34023 #: ../src/guestfs-availability.pod:28
34024 msgid "The following functions: L</guestfs_grub_install>"
34025 msgstr ""
34026
34027 #. type: =item
34028 #: ../src/guestfs-availability.pod:31
34029 msgid "B<inotify>"
34030 msgstr ""
34031
34032 #. type: textblock
34033 #: ../src/guestfs-availability.pod:33
34034 msgid ""
34035 "The following functions: L</guestfs_inotify_add_watch> "
34036 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
34037 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34038 msgstr ""
34039
34040 #. type: =item
34041 #: ../src/guestfs-availability.pod:41
34042 msgid "B<linuxfsuuid>"
34043 msgstr ""
34044
34045 #. type: textblock
34046 #: ../src/guestfs-availability.pod:43
34047 msgid ""
34048 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
34049 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34050 msgstr ""
34051
34052 #. type: =item
34053 #: ../src/guestfs-availability.pod:50
34054 msgid "B<linuxmodules>"
34055 msgstr ""
34056
34057 #. type: textblock
34058 #: ../src/guestfs-availability.pod:52
34059 msgid "The following functions: L</guestfs_modprobe>"
34060 msgstr ""
34061
34062 #. type: =item
34063 #: ../src/guestfs-availability.pod:55
34064 msgid "B<linuxxattrs>"
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs-availability.pod:57
34069 msgid ""
34070 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
34071 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
34072 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
34073 "L</guestfs_setxattr>"
34074 msgstr ""
34075
34076 #. type: =item
34077 #: ../src/guestfs-availability.pod:68
34078 msgid "B<luks>"
34079 msgstr ""
34080
34081 #. type: textblock
34082 #: ../src/guestfs-availability.pod:70
34083 msgid ""
34084 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
34085 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
34086 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34087 msgstr ""
34088
34089 #. type: =item
34090 #: ../src/guestfs-availability.pod:79
34091 msgid "B<lvm2>"
34092 msgstr ""
34093
34094 #. type: textblock
34095 #: ../src/guestfs-availability.pod:81
34096 msgid ""
34097 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
34098 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
34099 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
34100 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
34101 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
34102 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
34103 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
34104 "L</guestfs_vgs_full>"
34105 msgstr ""
34106
34107 #. type: =item
34108 #: ../src/guestfs-availability.pod:104
34109 msgid "B<mdadm>"
34110 msgstr ""
34111
34112 #. type: textblock
34113 #: ../src/guestfs-availability.pod:106
34114 msgid ""
34115 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> "
34116 "L</guestfs_md_stop>"
34117 msgstr ""
34118
34119 #. type: =item
34120 #: ../src/guestfs-availability.pod:111
34121 msgid "B<mknod>"
34122 msgstr ""
34123
34124 #. type: textblock
34125 #: ../src/guestfs-availability.pod:113
34126 msgid ""
34127 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
34128 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
34129 msgstr ""
34130
34131 #. type: =item
34132 #: ../src/guestfs-availability.pod:119
34133 msgid "B<ntfs3g>"
34134 msgstr ""
34135
34136 #. type: textblock
34137 #: ../src/guestfs-availability.pod:121
34138 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34139 msgstr ""
34140
34141 #. type: =item
34142 #: ../src/guestfs-availability.pod:124
34143 msgid "B<ntfsprogs>"
34144 msgstr ""
34145
34146 #. type: textblock
34147 #: ../src/guestfs-availability.pod:126
34148 msgid ""
34149 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34150 "L</guestfs_ntfsresize_size>"
34151 msgstr ""
34152
34153 #. type: =item
34154 #: ../src/guestfs-availability.pod:131
34155 msgid "B<realpath>"
34156 msgstr ""
34157
34158 #. type: textblock
34159 #: ../src/guestfs-availability.pod:133
34160 msgid "The following functions: L</guestfs_realpath>"
34161 msgstr ""
34162
34163 #. type: =item
34164 #: ../src/guestfs-availability.pod:136
34165 msgid "B<scrub>"
34166 msgstr ""
34167
34168 #. type: textblock
34169 #: ../src/guestfs-availability.pod:138
34170 msgid ""
34171 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
34172 "L</guestfs_scrub_freespace>"
34173 msgstr ""
34174
34175 #. type: =item
34176 #: ../src/guestfs-availability.pod:143
34177 msgid "B<selinux>"
34178 msgstr ""
34179
34180 #. type: textblock
34181 #: ../src/guestfs-availability.pod:145
34182 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34183 msgstr ""
34184
34185 #. type: =item
34186 #: ../src/guestfs-availability.pod:149
34187 msgid "B<xz>"
34188 msgstr ""
34189
34190 #. type: textblock
34191 #: ../src/guestfs-availability.pod:151
34192 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34193 msgstr ""
34194
34195 #. type: =item
34196 #: ../src/guestfs-availability.pod:155
34197 msgid "B<zerofree>"
34198 msgstr ""
34199
34200 #. type: textblock
34201 #: ../src/guestfs-availability.pod:157
34202 msgid "The following functions: L</guestfs_zerofree>"
34203 msgstr ""
34204
34205 #. type: =head2
34206 #: ../src/guestfs-structs.pod:1
34207 msgid "guestfs_int_bool"
34208 msgstr ""
34209
34210 #. type: verbatim
34211 #: ../src/guestfs-structs.pod:3
34212 #, no-wrap
34213 msgid ""
34214 " struct guestfs_int_bool {\n"
34215 "   int32_t i;\n"
34216 "   int32_t b;\n"
34217 " };\n"
34218 " \n"
34219 msgstr ""
34220
34221 #. type: verbatim
34222 #: ../src/guestfs-structs.pod:8
34223 #, no-wrap
34224 msgid ""
34225 " struct guestfs_int_bool_list {\n"
34226 "   uint32_t len; /* Number of elements in list. */\n"
34227 "   struct guestfs_int_bool *val; /* Elements. */\n"
34228 " };\n"
34229 " \n"
34230 msgstr ""
34231
34232 #. type: verbatim
34233 #: ../src/guestfs-structs.pod:13
34234 #, no-wrap
34235 msgid ""
34236 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34237 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34238 "\n"
34239 msgstr ""
34240
34241 #. type: =head2
34242 #: ../src/guestfs-structs.pod:16
34243 msgid "guestfs_lvm_pv"
34244 msgstr ""
34245
34246 #. type: verbatim
34247 #: ../src/guestfs-structs.pod:18
34248 #, no-wrap
34249 msgid ""
34250 " struct guestfs_lvm_pv {\n"
34251 "   char *pv_name;\n"
34252 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34253 "*/\n"
34254 "   char pv_uuid[32];\n"
34255 "   char *pv_fmt;\n"
34256 "   uint64_t pv_size;\n"
34257 "   uint64_t dev_size;\n"
34258 "   uint64_t pv_free;\n"
34259 "   uint64_t pv_used;\n"
34260 "   char *pv_attr;\n"
34261 "   int64_t pv_pe_count;\n"
34262 "   int64_t pv_pe_alloc_count;\n"
34263 "   char *pv_tags;\n"
34264 "   uint64_t pe_start;\n"
34265 "   int64_t pv_mda_count;\n"
34266 "   uint64_t pv_mda_free;\n"
34267 " };\n"
34268 " \n"
34269 msgstr ""
34270
34271 #. type: verbatim
34272 #: ../src/guestfs-structs.pod:36
34273 #, no-wrap
34274 msgid ""
34275 " struct guestfs_lvm_pv_list {\n"
34276 "   uint32_t len; /* Number of elements in list. */\n"
34277 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34278 " };\n"
34279 " \n"
34280 msgstr ""
34281
34282 #. type: verbatim
34283 #: ../src/guestfs-structs.pod:41
34284 #, no-wrap
34285 msgid ""
34286 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34287 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34288 "\n"
34289 msgstr ""
34290
34291 #. type: =head2
34292 #: ../src/guestfs-structs.pod:44
34293 msgid "guestfs_lvm_vg"
34294 msgstr ""
34295
34296 #. type: verbatim
34297 #: ../src/guestfs-structs.pod:46
34298 #, no-wrap
34299 msgid ""
34300 " struct guestfs_lvm_vg {\n"
34301 "   char *vg_name;\n"
34302 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34303 "*/\n"
34304 "   char vg_uuid[32];\n"
34305 "   char *vg_fmt;\n"
34306 "   char *vg_attr;\n"
34307 "   uint64_t vg_size;\n"
34308 "   uint64_t vg_free;\n"
34309 "   char *vg_sysid;\n"
34310 "   uint64_t vg_extent_size;\n"
34311 "   int64_t vg_extent_count;\n"
34312 "   int64_t vg_free_count;\n"
34313 "   int64_t max_lv;\n"
34314 "   int64_t max_pv;\n"
34315 "   int64_t pv_count;\n"
34316 "   int64_t lv_count;\n"
34317 "   int64_t snap_count;\n"
34318 "   int64_t vg_seqno;\n"
34319 "   char *vg_tags;\n"
34320 "   int64_t vg_mda_count;\n"
34321 "   uint64_t vg_mda_free;\n"
34322 " };\n"
34323 " \n"
34324 msgstr ""
34325
34326 #. type: verbatim
34327 #: ../src/guestfs-structs.pod:69
34328 #, no-wrap
34329 msgid ""
34330 " struct guestfs_lvm_vg_list {\n"
34331 "   uint32_t len; /* Number of elements in list. */\n"
34332 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34333 " };\n"
34334 " \n"
34335 msgstr ""
34336
34337 #. type: verbatim
34338 #: ../src/guestfs-structs.pod:74
34339 #, no-wrap
34340 msgid ""
34341 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34342 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34343 "\n"
34344 msgstr ""
34345
34346 #. type: =head2
34347 #: ../src/guestfs-structs.pod:77
34348 msgid "guestfs_lvm_lv"
34349 msgstr ""
34350
34351 #. type: verbatim
34352 #: ../src/guestfs-structs.pod:79
34353 #, no-wrap
34354 msgid ""
34355 " struct guestfs_lvm_lv {\n"
34356 "   char *lv_name;\n"
34357 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34358 "*/\n"
34359 "   char lv_uuid[32];\n"
34360 "   char *lv_attr;\n"
34361 "   int64_t lv_major;\n"
34362 "   int64_t lv_minor;\n"
34363 "   int64_t lv_kernel_major;\n"
34364 "   int64_t lv_kernel_minor;\n"
34365 "   uint64_t lv_size;\n"
34366 "   int64_t seg_count;\n"
34367 "   char *origin;\n"
34368 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34369 "   float snap_percent;\n"
34370 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34371 "   float copy_percent;\n"
34372 "   char *move_pv;\n"
34373 "   char *lv_tags;\n"
34374 "   char *mirror_log;\n"
34375 "   char *modules;\n"
34376 " };\n"
34377 " \n"
34378 msgstr ""
34379
34380 #. type: verbatim
34381 #: ../src/guestfs-structs.pod:101
34382 #, no-wrap
34383 msgid ""
34384 " struct guestfs_lvm_lv_list {\n"
34385 "   uint32_t len; /* Number of elements in list. */\n"
34386 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34387 " };\n"
34388 " \n"
34389 msgstr ""
34390
34391 #. type: verbatim
34392 #: ../src/guestfs-structs.pod:106
34393 #, no-wrap
34394 msgid ""
34395 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34396 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34397 "\n"
34398 msgstr ""
34399
34400 #. type: verbatim
34401 #: ../src/guestfs-structs.pod:111
34402 #, no-wrap
34403 msgid ""
34404 " struct guestfs_stat {\n"
34405 "   int64_t dev;\n"
34406 "   int64_t ino;\n"
34407 "   int64_t mode;\n"
34408 "   int64_t nlink;\n"
34409 "   int64_t uid;\n"
34410 "   int64_t gid;\n"
34411 "   int64_t rdev;\n"
34412 "   int64_t size;\n"
34413 "   int64_t blksize;\n"
34414 "   int64_t blocks;\n"
34415 "   int64_t atime;\n"
34416 "   int64_t mtime;\n"
34417 "   int64_t ctime;\n"
34418 " };\n"
34419 " \n"
34420 msgstr ""
34421
34422 #. type: verbatim
34423 #: ../src/guestfs-structs.pod:127
34424 #, no-wrap
34425 msgid ""
34426 " struct guestfs_stat_list {\n"
34427 "   uint32_t len; /* Number of elements in list. */\n"
34428 "   struct guestfs_stat *val; /* Elements. */\n"
34429 " };\n"
34430 " \n"
34431 msgstr ""
34432
34433 #. type: verbatim
34434 #: ../src/guestfs-structs.pod:132
34435 #, no-wrap
34436 msgid ""
34437 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34438 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34439 "\n"
34440 msgstr ""
34441
34442 #. type: verbatim
34443 #: ../src/guestfs-structs.pod:137
34444 #, no-wrap
34445 msgid ""
34446 " struct guestfs_statvfs {\n"
34447 "   int64_t bsize;\n"
34448 "   int64_t frsize;\n"
34449 "   int64_t blocks;\n"
34450 "   int64_t bfree;\n"
34451 "   int64_t bavail;\n"
34452 "   int64_t files;\n"
34453 "   int64_t ffree;\n"
34454 "   int64_t favail;\n"
34455 "   int64_t fsid;\n"
34456 "   int64_t flag;\n"
34457 "   int64_t namemax;\n"
34458 " };\n"
34459 " \n"
34460 msgstr ""
34461
34462 #. type: verbatim
34463 #: ../src/guestfs-structs.pod:151
34464 #, no-wrap
34465 msgid ""
34466 " struct guestfs_statvfs_list {\n"
34467 "   uint32_t len; /* Number of elements in list. */\n"
34468 "   struct guestfs_statvfs *val; /* Elements. */\n"
34469 " };\n"
34470 " \n"
34471 msgstr ""
34472
34473 #. type: verbatim
34474 #: ../src/guestfs-structs.pod:156
34475 #, no-wrap
34476 msgid ""
34477 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34478 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34479 "\n"
34480 msgstr ""
34481
34482 #. type: =head2
34483 #: ../src/guestfs-structs.pod:159
34484 msgid "guestfs_dirent"
34485 msgstr ""
34486
34487 #. type: verbatim
34488 #: ../src/guestfs-structs.pod:161
34489 #, no-wrap
34490 msgid ""
34491 " struct guestfs_dirent {\n"
34492 "   int64_t ino;\n"
34493 "   char ftyp;\n"
34494 "   char *name;\n"
34495 " };\n"
34496 " \n"
34497 msgstr ""
34498
34499 #. type: verbatim
34500 #: ../src/guestfs-structs.pod:167
34501 #, no-wrap
34502 msgid ""
34503 " struct guestfs_dirent_list {\n"
34504 "   uint32_t len; /* Number of elements in list. */\n"
34505 "   struct guestfs_dirent *val; /* Elements. */\n"
34506 " };\n"
34507 " \n"
34508 msgstr ""
34509
34510 #. type: verbatim
34511 #: ../src/guestfs-structs.pod:172
34512 #, no-wrap
34513 msgid ""
34514 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34515 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34516 "\n"
34517 msgstr ""
34518
34519 #. type: verbatim
34520 #: ../src/guestfs-structs.pod:177
34521 #, no-wrap
34522 msgid ""
34523 " struct guestfs_version {\n"
34524 "   int64_t major;\n"
34525 "   int64_t minor;\n"
34526 "   int64_t release;\n"
34527 "   char *extra;\n"
34528 " };\n"
34529 " \n"
34530 msgstr ""
34531
34532 #. type: verbatim
34533 #: ../src/guestfs-structs.pod:184
34534 #, no-wrap
34535 msgid ""
34536 " struct guestfs_version_list {\n"
34537 "   uint32_t len; /* Number of elements in list. */\n"
34538 "   struct guestfs_version *val; /* Elements. */\n"
34539 " };\n"
34540 " \n"
34541 msgstr ""
34542
34543 #. type: verbatim
34544 #: ../src/guestfs-structs.pod:189
34545 #, no-wrap
34546 msgid ""
34547 " void guestfs_free_version (struct guestfs_free_version *);\n"
34548 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34549 "\n"
34550 msgstr ""
34551
34552 #. type: =head2
34553 #: ../src/guestfs-structs.pod:192
34554 msgid "guestfs_xattr"
34555 msgstr ""
34556
34557 #. type: verbatim
34558 #: ../src/guestfs-structs.pod:194
34559 #, no-wrap
34560 msgid ""
34561 " struct guestfs_xattr {\n"
34562 "   char *attrname;\n"
34563 "   /* The next two fields describe a byte array. */\n"
34564 "   uint32_t attrval_len;\n"
34565 "   char *attrval;\n"
34566 " };\n"
34567 " \n"
34568 msgstr ""
34569
34570 #. type: verbatim
34571 #: ../src/guestfs-structs.pod:201
34572 #, no-wrap
34573 msgid ""
34574 " struct guestfs_xattr_list {\n"
34575 "   uint32_t len; /* Number of elements in list. */\n"
34576 "   struct guestfs_xattr *val; /* Elements. */\n"
34577 " };\n"
34578 " \n"
34579 msgstr ""
34580
34581 #. type: verbatim
34582 #: ../src/guestfs-structs.pod:206
34583 #, no-wrap
34584 msgid ""
34585 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34586 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34587 "\n"
34588 msgstr ""
34589
34590 #. type: =head2
34591 #: ../src/guestfs-structs.pod:209
34592 msgid "guestfs_inotify_event"
34593 msgstr ""
34594
34595 #. type: verbatim
34596 #: ../src/guestfs-structs.pod:211
34597 #, no-wrap
34598 msgid ""
34599 " struct guestfs_inotify_event {\n"
34600 "   int64_t in_wd;\n"
34601 "   uint32_t in_mask;\n"
34602 "   uint32_t in_cookie;\n"
34603 "   char *in_name;\n"
34604 " };\n"
34605 " \n"
34606 msgstr ""
34607
34608 #. type: verbatim
34609 #: ../src/guestfs-structs.pod:218
34610 #, no-wrap
34611 msgid ""
34612 " struct guestfs_inotify_event_list {\n"
34613 "   uint32_t len; /* Number of elements in list. */\n"
34614 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34615 " };\n"
34616 " \n"
34617 msgstr ""
34618
34619 #. type: verbatim
34620 #: ../src/guestfs-structs.pod:223
34621 #, no-wrap
34622 msgid ""
34623 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34624 " void guestfs_free_inotify_event_list (struct "
34625 "guestfs_free_inotify_event_list *);\n"
34626 "\n"
34627 msgstr ""
34628
34629 #. type: =head2
34630 #: ../src/guestfs-structs.pod:226
34631 msgid "guestfs_partition"
34632 msgstr ""
34633
34634 #. type: verbatim
34635 #: ../src/guestfs-structs.pod:228
34636 #, no-wrap
34637 msgid ""
34638 " struct guestfs_partition {\n"
34639 "   int32_t part_num;\n"
34640 "   uint64_t part_start;\n"
34641 "   uint64_t part_end;\n"
34642 "   uint64_t part_size;\n"
34643 " };\n"
34644 " \n"
34645 msgstr ""
34646
34647 #. type: verbatim
34648 #: ../src/guestfs-structs.pod:235
34649 #, no-wrap
34650 msgid ""
34651 " struct guestfs_partition_list {\n"
34652 "   uint32_t len; /* Number of elements in list. */\n"
34653 "   struct guestfs_partition *val; /* Elements. */\n"
34654 " };\n"
34655 " \n"
34656 msgstr ""
34657
34658 #. type: verbatim
34659 #: ../src/guestfs-structs.pod:240
34660 #, no-wrap
34661 msgid ""
34662 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34663 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34664 "\n"
34665 msgstr ""
34666
34667 #. type: =head2
34668 #: ../src/guestfs-structs.pod:243
34669 msgid "guestfs_application"
34670 msgstr ""
34671
34672 #. type: verbatim
34673 #: ../src/guestfs-structs.pod:245
34674 #, no-wrap
34675 msgid ""
34676 " struct guestfs_application {\n"
34677 "   char *app_name;\n"
34678 "   char *app_display_name;\n"
34679 "   int32_t app_epoch;\n"
34680 "   char *app_version;\n"
34681 "   char *app_release;\n"
34682 "   char *app_install_path;\n"
34683 "   char *app_trans_path;\n"
34684 "   char *app_publisher;\n"
34685 "   char *app_url;\n"
34686 "   char *app_source_package;\n"
34687 "   char *app_summary;\n"
34688 "   char *app_description;\n"
34689 " };\n"
34690 " \n"
34691 msgstr ""
34692
34693 #. type: verbatim
34694 #: ../src/guestfs-structs.pod:260
34695 #, no-wrap
34696 msgid ""
34697 " struct guestfs_application_list {\n"
34698 "   uint32_t len; /* Number of elements in list. */\n"
34699 "   struct guestfs_application *val; /* Elements. */\n"
34700 " };\n"
34701 " \n"
34702 msgstr ""
34703
34704 #. type: verbatim
34705 #: ../src/guestfs-structs.pod:265
34706 #, no-wrap
34707 msgid ""
34708 " void guestfs_free_application (struct guestfs_free_application *);\n"
34709 " void guestfs_free_application_list (struct guestfs_free_application_list "
34710 "*);\n"
34711 "\n"
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:5
34716 msgid "guestfs - Library for accessing and modifying virtual machine images"
34717 msgstr ""
34718
34719 #. type: verbatim
34720 #: ../src/guestfs.pod:11
34721 #, no-wrap
34722 msgid ""
34723 " guestfs_h *g = guestfs_create ();\n"
34724 " guestfs_add_drive (g, \"guest.img\");\n"
34725 " guestfs_launch (g);\n"
34726 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34727 " guestfs_touch (g, \"/hello\");\n"
34728 " guestfs_umount (g, \"/\");\n"
34729 " guestfs_close (g);\n"
34730 "\n"
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:25
34735 msgid ""
34736 "Libguestfs is a library for accessing and modifying guest disk images.  "
34737 "Amongst the things this is good for: making batch configuration changes to "
34738 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34739 "between virtualization systems (see also: virt-p2v), performing partial "
34740 "backups, performing partial guest clones, cloning guests and changing "
34741 "registry/UUID/hostname info, and much else besides."
34742 msgstr ""
34743
34744 #. type: textblock
34745 #: ../src/guestfs.pod:33
34746 msgid ""
34747 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34748 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34749 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34750 "qcow2, vmdk."
34751 msgstr ""
34752
34753 #. type: textblock
34754 #: ../src/guestfs.pod:38
34755 msgid ""
34756 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34757 "what filesystem is in each LV, etc.).  It can also run commands in the "
34758 "context of the guest.  Also you can access filesystems over FUSE."
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:43
34763 msgid ""
34764 "Libguestfs is a library that can be linked with C and C++ management "
34765 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34766 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34767 "command line."
34768 msgstr ""
34769
34770 #. type: textblock
34771 #: ../src/guestfs.pod:48
34772 msgid ""
34773 "You don't need to be root to use libguestfs, although obviously you do need "
34774 "enough permissions to access the disk images."
34775 msgstr ""
34776
34777 #. type: textblock
34778 #: ../src/guestfs.pod:51
34779 msgid ""
34780 "Libguestfs is a large API because it can do many things.  For a gentle "
34781 "introduction, please read the L</API OVERVIEW> section next."
34782 msgstr ""
34783
34784 #. type: textblock
34785 #: ../src/guestfs.pod:54
34786 msgid ""
34787 "There are also some example programs in the L<guestfs-examples(3)> manual "
34788 "page."
34789 msgstr ""
34790
34791 #. type: =head1
34792 #: ../src/guestfs.pod:57
34793 msgid "API OVERVIEW"
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs.pod:59
34798 msgid ""
34799 "This section provides a gentler overview of the libguestfs API.  We also try "
34800 "to group API calls together, where that may not be obvious from reading "
34801 "about the individual calls in the main section of this manual."
34802 msgstr ""
34803
34804 #. type: =head2
34805 #: ../src/guestfs.pod:64
34806 msgid "HANDLES"
34807 msgstr ""
34808
34809 #. type: textblock
34810 #: ../src/guestfs.pod:66
34811 msgid ""
34812 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34813 "must add at least one disk image to the handle, followed by launching the "
34814 "handle, then performing whatever operations you want, and finally closing "
34815 "the handle.  By convention we use the single letter C<g> for the name of the "
34816 "handle variable, although of course you can use any name you want."
34817 msgstr ""
34818
34819 #. type: textblock
34820 #: ../src/guestfs.pod:73
34821 msgid "The general structure of all libguestfs-using programs looks like this:"
34822 msgstr ""
34823
34824 #. type: verbatim
34825 #: ../src/guestfs.pod:76
34826 #, no-wrap
34827 msgid ""
34828 " guestfs_h *g = guestfs_create ();\n"
34829 " \n"
34830 msgstr ""
34831
34832 #. type: verbatim
34833 #: ../src/guestfs.pod:78
34834 #, no-wrap
34835 msgid ""
34836 " /* Call guestfs_add_drive additional times if there are\n"
34837 "  * multiple disk images.\n"
34838 "  */\n"
34839 " guestfs_add_drive (g, \"guest.img\");\n"
34840 " \n"
34841 msgstr ""
34842
34843 #. type: verbatim
34844 #: ../src/guestfs.pod:83
34845 #, no-wrap
34846 msgid ""
34847 " /* Most manipulation calls won't work until you've launched\n"
34848 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34849 "  * and _before_ other commands.\n"
34850 "  */\n"
34851 " guestfs_launch (g);\n"
34852 " \n"
34853 msgstr ""
34854
34855 #. type: verbatim
34856 #: ../src/guestfs.pod:89
34857 #, no-wrap
34858 msgid ""
34859 " /* Now you can examine what partitions, LVs etc are available.\n"
34860 "  */\n"
34861 " char **partitions = guestfs_list_partitions (g);\n"
34862 " char **logvols = guestfs_lvs (g);\n"
34863 " \n"
34864 msgstr ""
34865
34866 #. type: verbatim
34867 #: ../src/guestfs.pod:94
34868 #, no-wrap
34869 msgid ""
34870 " /* To access a filesystem in the image, you must mount it.\n"
34871 "  */\n"
34872 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34873 " \n"
34874 msgstr ""
34875
34876 #. type: verbatim
34877 #: ../src/guestfs.pod:98
34878 #, no-wrap
34879 msgid ""
34880 " /* Now you can perform filesystem actions on the guest\n"
34881 "  * disk image.\n"
34882 "  */\n"
34883 " guestfs_touch (g, \"/hello\");\n"
34884 " \n"
34885 msgstr ""
34886
34887 #. type: verbatim
34888 #: ../src/guestfs.pod:103
34889 #, no-wrap
34890 msgid ""
34891 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34892 "  * it is done automatically when you close the handle.  See\n"
34893 "  * discussion of autosync in this page.\n"
34894 "  */\n"
34895 " guestfs_sync (g);\n"
34896 " \n"
34897 msgstr ""
34898
34899 #. type: verbatim
34900 #: ../src/guestfs.pod:109
34901 #, no-wrap
34902 msgid ""
34903 " /* Close the handle 'g'. */\n"
34904 " guestfs_close (g);\n"
34905 "\n"
34906 msgstr ""
34907
34908 #. type: textblock
34909 #: ../src/guestfs.pod:112
34910 msgid ""
34911 "The code above doesn't include any error checking.  In real code you should "
34912 "check return values carefully for errors.  In general all functions that "
34913 "return integers return C<-1> on error, and all functions that return "
34914 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34915 "how to handle errors, and consult the documentation for each function call "
34916 "below to see precisely how they return error indications.  See "
34917 "L<guestfs-examples(3)> for fully worked examples."
34918 msgstr ""
34919
34920 #. type: =head2
34921 #: ../src/guestfs.pod:121
34922 msgid "DISK IMAGES"
34923 msgstr ""
34924
34925 #. type: textblock
34926 #: ../src/guestfs.pod:123
34927 msgid ""
34928 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34929 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34930 "actual block device, or simply an empty file of zeroes that you have created "
34931 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34932 "of these."
34933 msgstr ""
34934
34935 #. type: textblock
34936 #: ../src/guestfs.pod:129
34937 msgid ""
34938 "The call you should use in modern code for adding drives is "
34939 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34940 "specifying that the format is raw, do:"
34941 msgstr ""
34942
34943 #. type: verbatim
34944 #: ../src/guestfs.pod:133
34945 #, no-wrap
34946 msgid ""
34947 " guestfs_add_drive_opts (g, filename,\n"
34948 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34949 "                         -1);\n"
34950 "\n"
34951 msgstr ""
34952
34953 #. type: textblock
34954 #: ../src/guestfs.pod:137
34955 msgid "You can add a disk read-only using:"
34956 msgstr ""
34957
34958 #. type: verbatim
34959 #: ../src/guestfs.pod:139
34960 #, no-wrap
34961 msgid ""
34962 " guestfs_add_drive_opts (g, filename,\n"
34963 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34964 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34965 "                         -1);\n"
34966 "\n"
34967 msgstr ""
34968
34969 #. type: textblock
34970 #: ../src/guestfs.pod:144
34971 msgid ""
34972 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34973 "libguestfs won't modify the file."
34974 msgstr ""
34975
34976 #. type: textblock
34977 #: ../src/guestfs.pod:147
34978 msgid ""
34979 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34980 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34981 "corruption, but adding it read-only is safe."
34982 msgstr ""
34983
34984 #. type: textblock
34985 #: ../src/guestfs.pod:151
34986 msgid ""
34987 "You must add at least one disk image, and you may add multiple disk images.  "
34988 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34989 "first one you added), C</dev/sdb> (for the second one you added), etc."
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:156
34994 msgid ""
34995 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34996 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34997 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34998 msgstr ""
34999
35000 #. type: =head2
35001 #: ../src/guestfs.pod:161
35002 msgid "MOUNTING"
35003 msgstr ""
35004
35005 #. type: textblock
35006 #: ../src/guestfs.pod:163
35007 msgid ""
35008 "Before you can read or write files, create directories and so on in a disk "
35009 "image that contains filesystems, you have to mount those filesystems using "
35010 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35011 "a disk image contains (for example) one partition with a filesystem on that "
35012 "partition, then you can mount it directly:"
35013 msgstr ""
35014
35015 #. type: verbatim
35016 #: ../src/guestfs.pod:170
35017 #, no-wrap
35018 msgid ""
35019 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35020 "\n"
35021 msgstr ""
35022
35023 #. type: textblock
35024 #: ../src/guestfs.pod:172
35025 msgid ""
35026 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35027 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35028 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35029 "that these are libguestfs virtual devices, and are nothing to do with host "
35030 "devices."
35031 msgstr ""
35032
35033 #. type: textblock
35034 #: ../src/guestfs.pod:178
35035 msgid ""
35036 "If you are given a disk image and you don't know what it contains then you "
35037 "have to find out.  Libguestfs can do that too: use "
35038 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
35039 "and LVs, and either try mounting each to see what is mountable, or else "
35040 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35041 "filesystems, use L</guestfs_list_filesystems>."
35042 msgstr ""
35043
35044 #. type: textblock
35045 #: ../src/guestfs.pod:186
35046 msgid ""
35047 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35048 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35049 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35050 msgstr ""
35051
35052 #. type: textblock
35053 #: ../src/guestfs.pod:191
35054 msgid ""
35055 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35056 "several other variations of the C<guestfs_mount_*> call."
35057 msgstr ""
35058
35059 #. type: =head2
35060 #: ../src/guestfs.pod:194
35061 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35062 msgstr ""
35063
35064 #. type: textblock
35065 #: ../src/guestfs.pod:196
35066 msgid ""
35067 "The majority of the libguestfs API consists of fairly low-level calls for "
35068 "accessing and modifying the files, directories, symlinks etc on mounted "
35069 "filesystems.  There are over a hundred such calls which you can find listed "
35070 "in detail below in this man page, and we don't even pretend to cover them "
35071 "all in this overview."
35072 msgstr ""
35073
35074 #. type: textblock
35075 #: ../src/guestfs.pod:202
35076 msgid ""
35077 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35078 "mount point."
35079 msgstr ""
35080
35081 #. type: textblock
35082 #: ../src/guestfs.pod:205
35083 msgid ""
35084 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35085 "the file called C<\"etc/passwd\"> then you could do:"
35086 msgstr ""
35087
35088 #. type: verbatim
35089 #: ../src/guestfs.pod:208
35090 #, no-wrap
35091 msgid ""
35092 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35093 "\n"
35094 msgstr ""
35095
35096 #. type: textblock
35097 #: ../src/guestfs.pod:210
35098 msgid ""
35099 "This would return C<data> as a newly allocated buffer containing the full "
35100 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35101 "or C<NULL> if there was an error."
35102 msgstr ""
35103
35104 #. type: textblock
35105 #: ../src/guestfs.pod:214
35106 msgid ""
35107 "As another example, to create a top-level directory on that filesystem "
35108 "called C<\"var\"> you would do:"
35109 msgstr ""
35110
35111 #. type: verbatim
35112 #: ../src/guestfs.pod:217
35113 #, no-wrap
35114 msgid ""
35115 " guestfs_mkdir (g, \"/var\");\n"
35116 "\n"
35117 msgstr ""
35118
35119 #. type: textblock
35120 #: ../src/guestfs.pod:219
35121 msgid "To create a symlink you could do:"
35122 msgstr ""
35123
35124 #. type: verbatim
35125 #: ../src/guestfs.pod:221
35126 #, no-wrap
35127 msgid ""
35128 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35129 "               \"/etc/rc3.d/S30portmap\");\n"
35130 "\n"
35131 msgstr ""
35132
35133 #. type: textblock
35134 #: ../src/guestfs.pod:224
35135 msgid ""
35136 "Libguestfs will reject attempts to use relative paths and there is no "
35137 "concept of a current working directory."
35138 msgstr ""
35139
35140 #. type: textblock
35141 #: ../src/guestfs.pod:227
35142 msgid ""
35143 "Libguestfs can return errors in many situations: for example if the "
35144 "filesystem isn't writable, or if a file or directory that you requested "
35145 "doesn't exist.  If you are using the C API (documented here)  you have to "
35146 "check for those error conditions after each call.  (Other language bindings "
35147 "turn these errors into exceptions)."
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:233
35152 msgid ""
35153 "File writes are affected by the per-handle umask, set by calling "
35154 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
35155 msgstr ""
35156
35157 #. type: =head2
35158 #: ../src/guestfs.pod:236
35159 msgid "PARTITIONING"
35160 msgstr ""
35161
35162 #. type: textblock
35163 #: ../src/guestfs.pod:238
35164 msgid ""
35165 "Libguestfs contains API calls to read, create and modify partition tables on "
35166 "disk images."
35167 msgstr ""
35168
35169 #. type: textblock
35170 #: ../src/guestfs.pod:241
35171 msgid ""
35172 "In the common case where you want to create a single partition covering the "
35173 "whole disk, you should use the L</guestfs_part_disk> call:"
35174 msgstr ""
35175
35176 #. type: verbatim
35177 #: ../src/guestfs.pod:245
35178 #, no-wrap
35179 msgid ""
35180 " const char *parttype = \"mbr\";\n"
35181 " if (disk_is_larger_than_2TB)\n"
35182 "   parttype = \"gpt\";\n"
35183 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35184 "\n"
35185 msgstr ""
35186
35187 #. type: textblock
35188 #: ../src/guestfs.pod:250
35189 msgid ""
35190 "Obviously this effectively wipes anything that was on that disk image "
35191 "before."
35192 msgstr ""
35193
35194 #. type: =head2
35195 #: ../src/guestfs.pod:253
35196 msgid "LVM2"
35197 msgstr ""
35198
35199 #. type: textblock
35200 #: ../src/guestfs.pod:255
35201 msgid ""
35202 "Libguestfs provides access to a large part of the LVM2 API, such as "
35203 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
35204 "unless you familiarize yourself with the concepts of physical volumes, "
35205 "volume groups and logical volumes."
35206 msgstr ""
35207
35208 #. type: textblock
35209 #: ../src/guestfs.pod:260
35210 msgid ""
35211 "This author strongly recommends reading the LVM HOWTO, online at "
35212 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
35213 msgstr ""
35214
35215 #. type: =head2
35216 #: ../src/guestfs.pod:263
35217 msgid "DOWNLOADING"
35218 msgstr ""
35219
35220 #. type: textblock
35221 #: ../src/guestfs.pod:265
35222 msgid ""
35223 "Use L</guestfs_cat> to download small, text only files.  This call is "
35224 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35225 "NUL (C<\\0>) characters.  However the API is very simple to use."
35226 msgstr ""
35227
35228 #. type: textblock
35229 #: ../src/guestfs.pod:269
35230 msgid ""
35231 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35232 "bit data, since it returns a (pointer, size) pair.  However it is still "
35233 "limited to \"small\" files, less than 2 MB."
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:273
35238 msgid ""
35239 "L</guestfs_download> can be used to download any file, with no limits on "
35240 "content or size (even files larger than 4 GB)."
35241 msgstr ""
35242
35243 #. type: textblock
35244 #: ../src/guestfs.pod:276
35245 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35246 msgstr ""
35247
35248 #. type: =head2
35249 #: ../src/guestfs.pod:279
35250 msgid "UPLOADING"
35251 msgstr ""
35252
35253 #. type: textblock
35254 #: ../src/guestfs.pod:281
35255 msgid ""
35256 "It's often the case that you want to write a file or files to the disk "
35257 "image."
35258 msgstr ""
35259
35260 #. type: textblock
35261 #: ../src/guestfs.pod:284
35262 msgid ""
35263 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35264 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
35265 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
35266 "variety of other functions for creating test files, for example "
35267 "L</guestfs_fill> and L</guestfs_fill_pattern>."
35268 msgstr ""
35269
35270 #. type: textblock
35271 #: ../src/guestfs.pod:290
35272 msgid ""
35273 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35274 "file content or size (even files larger than 4 GB)."
35275 msgstr ""
35276
35277 #. type: textblock
35278 #: ../src/guestfs.pod:293
35279 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35280 msgstr ""
35281
35282 #. type: textblock
35283 #: ../src/guestfs.pod:295
35284 msgid ""
35285 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35286 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
35287 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
35288 "the drive in a predictable way (eg. adding it last after all other drives) "
35289 "then you can get the device name from L</guestfs_list_devices> and mount it "
35290 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
35291 "sometimes non-portable between kernel versions, and they don't support "
35292 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
35293 "using a label or UUID, use an ISO image instead."
35294 msgstr ""
35295
35296 #. type: =head2
35297 #: ../src/guestfs.pod:306
35298 msgid "COPYING"
35299 msgstr ""
35300
35301 #. type: textblock
35302 #: ../src/guestfs.pod:308
35303 msgid ""
35304 "There are various different commands for copying between files and devices "
35305 "and in and out of the guest filesystem.  These are summarised in the table "
35306 "below."
35307 msgstr ""
35308
35309 #. type: =item
35310 #: ../src/guestfs.pod:314
35311 msgid "B<file> to B<file>"
35312 msgstr ""
35313
35314 #. type: textblock
35315 #: ../src/guestfs.pod:316
35316 msgid ""
35317 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35318 "directories recursively."
35319 msgstr ""
35320
35321 #. type: textblock
35322 #: ../src/guestfs.pod:319
35323 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35324 msgstr ""
35325
35326 #. type: =item
35327 #: ../src/guestfs.pod:322
35328 msgid "B<file> to B<device>"
35329 msgstr ""
35330
35331 #. type: =item
35332 #: ../src/guestfs.pod:324
35333 msgid "B<device> to B<file>"
35334 msgstr ""
35335
35336 #. type: =item
35337 #: ../src/guestfs.pod:326
35338 msgid "B<device> to B<device>"
35339 msgstr ""
35340
35341 #. type: textblock
35342 #: ../src/guestfs.pod:328
35343 msgid ""
35344 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
35345 "L</guestfs_copy_device_to_device>."
35346 msgstr ""
35347
35348 #. type: textblock
35349 #: ../src/guestfs.pod:331
35350 msgid "Example: duplicate the contents of an LV:"
35351 msgstr ""
35352
35353 #. type: verbatim
35354 #: ../src/guestfs.pod:333
35355 #, no-wrap
35356 msgid ""
35357 " guestfs_copy_device_to_device (g,\n"
35358 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35359 "         /* -1 marks the end of the list of optional parameters */\n"
35360 "         -1);\n"
35361 "\n"
35362 msgstr ""
35363
35364 #. type: textblock
35365 #: ../src/guestfs.pod:338
35366 msgid ""
35367 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35368 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
35369 "optional C<size> parameter:"
35370 msgstr ""
35371
35372 #. type: verbatim
35373 #: ../src/guestfs.pod:342
35374 #, no-wrap
35375 msgid ""
35376 " guestfs_copy_device_to_device (g,\n"
35377 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35378 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
35379 "         -1);\n"
35380 "\n"
35381 msgstr ""
35382
35383 #. type: =item
35384 #: ../src/guestfs.pod:347
35385 msgid "B<file on the host> to B<file or device>"
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:349
35390 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35391 msgstr ""
35392
35393 #. type: =item
35394 #: ../src/guestfs.pod:351
35395 msgid "B<file or device> to B<file on the host>"
35396 msgstr ""
35397
35398 #. type: textblock
35399 #: ../src/guestfs.pod:353
35400 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35401 msgstr ""
35402
35403 #. type: =head2
35404 #: ../src/guestfs.pod:357
35405 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35406 msgstr ""
35407
35408 #. type: textblock
35409 #: ../src/guestfs.pod:359
35410 msgid ""
35411 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
35412 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35413 "appears you can only upload and download to files.  However many Un*x-like "
35414 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
35415 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
35416 "stderr, and arbitrary file descriptor N."
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:367
35421 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35422 msgstr ""
35423
35424 #. type: verbatim
35425 #: ../src/guestfs.pod:370
35426 #, no-wrap
35427 msgid ""
35428 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35429 "\n"
35430 msgstr ""
35431
35432 #. type: textblock
35433 #: ../src/guestfs.pod:372
35434 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35435 msgstr ""
35436
35437 #. type: verbatim
35438 #: ../src/guestfs.pod:374
35439 #, no-wrap
35440 msgid ""
35441 " char devfd[64];\n"
35442 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35443 " guestfs_tar_out (g, \"/\", devfd);\n"
35444 "\n"
35445 msgstr ""
35446
35447 #. type: =head2
35448 #: ../src/guestfs.pod:378
35449 msgid "LISTING FILES"
35450 msgstr ""
35451
35452 #. type: textblock
35453 #: ../src/guestfs.pod:380
35454 msgid ""
35455 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35456 "L<guestfish(1)>-equivalent command C<ll>)."
35457 msgstr ""
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:383
35461 msgid ""
35462 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35463 "programs, as a flat list of strings."
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:386
35468 msgid ""
35469 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35470 "directory, plus additional information about each one.  It is more "
35471 "equivalent to using the L<readdir(3)> call on a local filesystem."
35472 msgstr ""
35473
35474 #. type: textblock
35475 #: ../src/guestfs.pod:390
35476 msgid ""
35477 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
35478 "files."
35479 msgstr ""
35480
35481 #. type: =head2
35482 #: ../src/guestfs.pod:393
35483 msgid "RUNNING COMMANDS"
35484 msgstr ""
35485
35486 #. type: textblock
35487 #: ../src/guestfs.pod:395
35488 msgid ""
35489 "Although libguestfs is primarily an API for manipulating files inside guest "
35490 "images, we also provide some limited facilities for running commands inside "
35491 "guests."
35492 msgstr ""
35493
35494 #. type: textblock
35495 #: ../src/guestfs.pod:399
35496 msgid "There are many limitations to this:"
35497 msgstr ""
35498
35499 #. type: textblock
35500 #: ../src/guestfs.pod:405
35501 msgid ""
35502 "The kernel version that the command runs under will be different from what "
35503 "it expects."
35504 msgstr ""
35505
35506 #. type: textblock
35507 #: ../src/guestfs.pod:410
35508 msgid ""
35509 "If the command needs to communicate with daemons, then most likely they "
35510 "won't be running."
35511 msgstr ""
35512
35513 #. type: textblock
35514 #: ../src/guestfs.pod:415
35515 msgid "The command will be running in limited memory."
35516 msgstr ""
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:419
35520 msgid ""
35521 "The network may not be available unless you enable it (see "
35522 "L</guestfs_set_network>)."
35523 msgstr ""
35524
35525 #. type: textblock
35526 #: ../src/guestfs.pod:424
35527 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35528 msgstr ""
35529
35530 #. type: textblock
35531 #: ../src/guestfs.pod:428
35532 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35533 msgstr ""
35534
35535 #. type: textblock
35536 #: ../src/guestfs.pod:433
35537 msgid ""
35538 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35539 "See L</SELINUX> in this manpage."
35540 msgstr ""
35541
35542 #. type: textblock
35543 #: ../src/guestfs.pod:438
35544 msgid ""
35545 "I<Security:> It is not safe to run commands from untrusted, possibly "
35546 "malicious guests.  These commands may attempt to exploit your program by "
35547 "sending unexpected output.  They could also try to exploit the Linux kernel "
35548 "or qemu provided by the libguestfs appliance.  They could use the network "
35549 "provided by the libguestfs appliance to bypass ordinary network partitions "
35550 "and firewalls.  They could use the elevated privileges or different SELinux "
35551 "context of your program to their advantage."
35552 msgstr ""
35553
35554 #. type: textblock
35555 #: ../src/guestfs.pod:447
35556 msgid ""
35557 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35558 "(a script which runs when the guest next boots normally), and to have this "
35559 "script run the commands you want in the normal context of the running guest, "
35560 "network security and so on.  For information about other security issues, "
35561 "see L</SECURITY>."
35562 msgstr ""
35563
35564 #. type: textblock
35565 #: ../src/guestfs.pod:455
35566 msgid ""
35567 "The two main API calls to run commands are L</guestfs_command> and "
35568 "L</guestfs_sh> (there are also variations)."
35569 msgstr ""
35570
35571 #. type: textblock
35572 #: ../src/guestfs.pod:458
35573 msgid ""
35574 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35575 "shell globs, redirections, etc will work."
35576 msgstr ""
35577
35578 #. type: =head2
35579 #: ../src/guestfs.pod:461
35580 msgid "CONFIGURATION FILES"
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:463
35585 msgid ""
35586 "To read and write configuration files in Linux guest filesystems, we "
35587 "strongly recommend using Augeas.  For example, Augeas understands how to "
35588 "read and write, say, a Linux shadow password file or X.org configuration "
35589 "file, and so avoids you having to write that code."
35590 msgstr ""
35591
35592 #. type: textblock
35593 #: ../src/guestfs.pod:468
35594 msgid ""
35595 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35596 "document Augeas itself here because there is excellent documentation on the "
35597 "L<http://augeas.net/> website."
35598 msgstr ""
35599
35600 #. type: textblock
35601 #: ../src/guestfs.pod:472
35602 msgid ""
35603 "If you don't want to use Augeas (you fool!) then try calling "
35604 "L</guestfs_read_lines> to get the file as a list of lines which you can "
35605 "iterate over."
35606 msgstr ""
35607
35608 #. type: =head2
35609 #: ../src/guestfs.pod:476
35610 msgid "SELINUX"
35611 msgstr ""
35612
35613 #. type: textblock
35614 #: ../src/guestfs.pod:478
35615 msgid ""
35616 "We support SELinux guests.  To ensure that labeling happens correctly in "
35617 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35618 msgstr ""
35619
35620 #. type: textblock
35621 #: ../src/guestfs.pod:486
35622 msgid "Before launching, do:"
35623 msgstr ""
35624
35625 #. type: verbatim
35626 #: ../src/guestfs.pod:488
35627 #, no-wrap
35628 msgid ""
35629 " guestfs_set_selinux (g, 1);\n"
35630 "\n"
35631 msgstr ""
35632
35633 #. type: textblock
35634 #: ../src/guestfs.pod:492
35635 msgid ""
35636 "After mounting the guest's filesystem(s), load the policy.  This is best "
35637 "done by running the L<load_policy(8)> command in the guest itself:"
35638 msgstr ""
35639
35640 #. type: verbatim
35641 #: ../src/guestfs.pod:496
35642 #, no-wrap
35643 msgid ""
35644 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35645 "\n"
35646 msgstr ""
35647
35648 #. type: textblock
35649 #: ../src/guestfs.pod:498
35650 msgid ""
35651 "(Older versions of C<load_policy> require you to specify the name of the "
35652 "policy file)."
35653 msgstr ""
35654
35655 #. type: textblock
35656 #: ../src/guestfs.pod:503
35657 msgid ""
35658 "Optionally, set the security context for the API.  The correct security "
35659 "context to use can only be known by inspecting the guest.  As an example:"
35660 msgstr ""
35661
35662 #. type: verbatim
35663 #: ../src/guestfs.pod:507
35664 #, no-wrap
35665 msgid ""
35666 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35667 "\n"
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:511
35672 msgid "This will work for running commands and editing existing files."
35673 msgstr ""
35674
35675 #. type: textblock
35676 #: ../src/guestfs.pod:513
35677 msgid ""
35678 "When new files are created, you may need to label them explicitly, for "
35679 "example by running the external command C<restorecon pathname>."
35680 msgstr ""
35681
35682 #. type: =head2
35683 #: ../src/guestfs.pod:517
35684 msgid "UMASK"
35685 msgstr ""
35686
35687 #. type: textblock
35688 #: ../src/guestfs.pod:519
35689 msgid ""
35690 "Certain calls are affected by the current file mode creation mask (the "
35691 "\"umask\").  In particular ones which create files or directories, such as "
35692 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35693 "either the default mode that the file is created with or modifies the mode "
35694 "that you supply."
35695 msgstr ""
35696
35697 #. type: textblock
35698 #: ../src/guestfs.pod:525
35699 msgid ""
35700 "The default umask is C<022>, so files are created with modes such as C<0644> "
35701 "and directories with C<0755>."
35702 msgstr ""
35703
35704 #. type: textblock
35705 #: ../src/guestfs.pod:528
35706 msgid ""
35707 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35708 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
35709 "L</guestfs_chmod> after creating each file or directory."
35710 msgstr ""
35711
35712 #. type: textblock
35713 #: ../src/guestfs.pod:532
35714 msgid "For more information about umask, see L<umask(2)>."
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../src/guestfs.pod:536
35719 msgid ""
35720 "Libguestfs allows you to access Linux guests which have been encrypted using "
35721 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35722 "standard.  This includes nearly all whole disk encryption systems used by "
35723 "modern Linux guests."
35724 msgstr ""
35725
35726 #. type: textblock
35727 #: ../src/guestfs.pod:542
35728 msgid ""
35729 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35730 "returns the string C<crypto_LUKS>)."
35731 msgstr ""
35732
35733 #. type: textblock
35734 #: ../src/guestfs.pod:545
35735 msgid ""
35736 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35737 "will require the passphrase!"
35738 msgstr ""
35739
35740 #. type: textblock
35741 #: ../src/guestfs.pod:548
35742 msgid ""
35743 "Opening a LUKS device creates a new device mapper device called "
35744 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
35745 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
35746 "decrypted from and encrypted to the underlying block device respectively."
35747 msgstr ""
35748
35749 #. type: textblock
35750 #: ../src/guestfs.pod:554
35751 msgid ""
35752 "LVM volume groups on the device can be made visible by calling "
35753 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
35754 "volume(s) can now be mounted in the usual way."
35755 msgstr ""
35756
35757 #. type: textblock
35758 #: ../src/guestfs.pod:558
35759 msgid ""
35760 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35761 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35762 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
35763 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35764 "underlying encrypted block device)."
35765 msgstr ""
35766
35767 #. type: =head2
35768 #: ../src/guestfs.pod:565
35769 msgid "INSPECTION"
35770 msgstr ""
35771
35772 #. type: textblock
35773 #: ../src/guestfs.pod:567
35774 msgid ""
35775 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35776 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35777 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35778 "version 1.5.3 the most frequently used part of this library has been "
35779 "rewritten in C and moved into the core code)."
35780 msgstr ""
35781
35782 #. type: textblock
35783 #: ../src/guestfs.pod:574
35784 msgid ""
35785 "Add all disks belonging to the unknown virtual machine and call "
35786 "L</guestfs_launch> in the usual way."
35787 msgstr ""
35788
35789 #. type: textblock
35790 #: ../src/guestfs.pod:577
35791 msgid ""
35792 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35793 "and certain heuristics, and returns a list of operating systems that were "
35794 "found.  An empty list means none were found.  A single element is the root "
35795 "filesystem of the operating system.  For dual- or multi-boot guests, "
35796 "multiple roots can be returned, each one corresponding to a separate "
35797 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35798 "world of virtualization, but since this scenario can happen, we have built "
35799 "libguestfs to deal with it.)"
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:586
35804 msgid ""
35805 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35806 "to get additional details about that operating system.  For example, call "
35807 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35808 "Windows and Linux-based operating systems respectively."
35809 msgstr ""
35810
35811 #. type: textblock
35812 #: ../src/guestfs.pod:592
35813 msgid ""
35814 "Un*x-like and Linux-based operating systems usually consist of several "
35815 "filesystems which are mounted at boot time (for example, a separate boot "
35816 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35817 "filesystems correspond to mount points.  Call "
35818 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35819 "hash table like this example:"
35820 msgstr ""
35821
35822 #. type: verbatim
35823 #: ../src/guestfs.pod:599
35824 #, no-wrap
35825 msgid ""
35826 " /boot => /dev/sda1\n"
35827 " /     => /dev/vg_guest/lv_root\n"
35828 " /usr  => /dev/vg_guest/lv_usr\n"
35829 "\n"
35830 msgstr ""
35831
35832 #. type: textblock
35833 #: ../src/guestfs.pod:603
35834 msgid ""
35835 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35836 "filesystems as suggested."
35837 msgstr ""
35838
35839 #. type: textblock
35840 #: ../src/guestfs.pod:606
35841 msgid ""
35842 "Be careful to mount filesystems in the right order (eg. C</> before "
35843 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
35844 "work."
35845 msgstr ""
35846
35847 #. type: textblock
35848 #: ../src/guestfs.pod:610
35849 msgid ""
35850 "Inspection currently only works for some common operating systems.  "
35851 "Contributors are welcome to send patches for other operating systems that we "
35852 "currently cannot detect."
35853 msgstr ""
35854
35855 #. type: textblock
35856 #: ../src/guestfs.pod:614
35857 msgid ""
35858 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35859 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35860 "encrypted devices."
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:618
35865 msgid ""
35866 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35867 "inspection and caches the results in the guest handle.  Subsequent calls to "
35868 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
35869 "re-read the disks.  If you change the content of the guest disks, you can "
35870 "redo inspection by calling L</guestfs_inspect_os> again.  "
35871 "(L</guestfs_inspect_list_applications> works a little differently from the "
35872 "other calls and does read the disks.  See documentation for that function "
35873 "for details)."
35874 msgstr ""
35875
35876 #. type: =head3
35877 #: ../src/guestfs.pod:627
35878 msgid "INSPECTING INSTALL DISKS"
35879 msgstr ""
35880
35881 #. type: textblock
35882 #: ../src/guestfs.pod:629
35883 msgid ""
35884 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35885 "CDs and more."
35886 msgstr ""
35887
35888 #. type: textblock
35889 #: ../src/guestfs.pod:632
35890 msgid ""
35891 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35892 "system, which currently can be C<installed> (a regular operating system) or "
35893 "C<installer> (some sort of install disk)."
35894 msgstr ""
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:636
35898 msgid ""
35899 "Further information is available about the operating system that can be "
35900 "installed using the regular inspection APIs like "
35901 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
35902 "etc."
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:641
35907 msgid ""
35908 "Some additional information specific to installer disks is also available "
35909 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
35910 "L</guestfs_inspect_is_multipart> calls."
35911 msgstr ""
35912
35913 #. type: =head2
35914 #: ../src/guestfs.pod:646
35915 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35916 msgstr ""
35917
35918 #. type: textblock
35919 #: ../src/guestfs.pod:648
35920 msgid ""
35921 "Libguestfs can mount NTFS partitions.  It does this using the "
35922 "L<http://www.ntfs-3g.org/> driver."
35923 msgstr ""
35924
35925 #. type: =head3
35926 #: ../src/guestfs.pod:651
35927 msgid "DRIVE LETTERS AND PATHS"
35928 msgstr ""
35929
35930 #. type: textblock
35931 #: ../src/guestfs.pod:653
35932 msgid ""
35933 "DOS and Windows still use drive letters, and the filesystems are always "
35934 "treated as case insensitive by Windows itself, and therefore you might find "
35935 "a Windows configuration file referring to a path like "
35936 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
35937 "that directory might be referred to as C</WINDOWS/System32>."
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:659
35942 msgid ""
35943 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35944 "L</guestfs_inspect_get_drive_mappings>)"
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:662
35949 msgid ""
35950 "Dealing with separator characters (backslash vs forward slash) is outside "
35951 "the scope of libguestfs, but usually a simple character replacement will "
35952 "work."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:666
35957 msgid ""
35958 "To resolve the case insensitivity of paths, call "
35959 "L</guestfs_case_sensitive_path>."
35960 msgstr ""
35961
35962 #. type: =head3
35963 #: ../src/guestfs.pod:669
35964 msgid "ACCESSING THE WINDOWS REGISTRY"
35965 msgstr ""
35966
35967 #. type: textblock
35968 #: ../src/guestfs.pod:671
35969 msgid ""
35970 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35971 "files, through the library C<hivex> which is part of the libguestfs project "
35972 "although ships as a separate tarball.  You have to locate and download the "
35973 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35974 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
35975 "L<virt-win-reg(1)> for more help on this issue."
35976 msgstr ""
35977
35978 #. type: =head3
35979 #: ../src/guestfs.pod:679
35980 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35981 msgstr ""
35982
35983 #. type: textblock
35984 #: ../src/guestfs.pod:681
35985 msgid ""
35986 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35987 "provide something which looks like a Linux symlink.  The way it tries to do "
35988 "the rewriting is described here:"
35989 msgstr ""
35990
35991 #. type: textblock
35992 #: ../src/guestfs.pod:685
35993 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
35994 msgstr ""
35995
35996 #. type: textblock
35997 #: ../src/guestfs.pod:687
35998 msgid ""
35999 "The essential problem is that ntfs-3g simply does not have enough "
36000 "information to do a correct job.  NTFS links can contain drive letters and "
36001 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36002 "It is almost certainly the case that libguestfs callers should ignore what "
36003 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36004 msgstr ""
36005
36006 #. type: textblock
36007 #: ../src/guestfs.pod:694
36008 msgid ""
36009 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
36010 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36011 "attribute, and read the raw reparse data from that (you can find the format "
36012 "documented in various places around the web)."
36013 msgstr ""
36014
36015 #. type: =head3
36016 #: ../src/guestfs.pod:699
36017 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36018 msgstr ""
36019
36020 #. type: textblock
36021 #: ../src/guestfs.pod:701
36022 msgid ""
36023 "There are other useful extended attributes that can be read from ntfs-3g "
36024 "filesystems (using L</guestfs_getxattr>).  See:"
36025 msgstr ""
36026
36027 #. type: textblock
36028 #: ../src/guestfs.pod:704
36029 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36030 msgstr ""
36031
36032 #. type: =head2
36033 #: ../src/guestfs.pod:706
36034 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36035 msgstr ""
36036
36037 #. type: textblock
36038 #: ../src/guestfs.pod:708
36039 msgid ""
36040 "Although we don't want to discourage you from using the C API, we will "
36041 "mention here that the same API is also available in other languages."
36042 msgstr ""
36043
36044 #. type: textblock
36045 #: ../src/guestfs.pod:711
36046 msgid ""
36047 "The API is broadly identical in all supported languages.  This means that "
36048 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36049 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36050 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36051 "each language."
36052 msgstr ""
36053
36054 #. type: textblock
36055 #: ../src/guestfs.pod:717
36056 msgid ""
36057 "Error messages are automatically transformed into exceptions if the language "
36058 "supports it."
36059 msgstr ""
36060
36061 #. type: textblock
36062 #: ../src/guestfs.pod:720
36063 msgid ""
36064 "We don't try to \"object orientify\" parts of the API in OO languages, "
36065 "although contributors are welcome to write higher level APIs above what we "
36066 "provide in their favourite languages if they wish."
36067 msgstr ""
36068
36069 #. type: =item
36070 #: ../src/guestfs.pod:726
36071 msgid "B<C++>"
36072 msgstr ""
36073
36074 #. type: textblock
36075 #: ../src/guestfs.pod:728
36076 msgid ""
36077 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36078 "identical to the C API.  C++ classes and exceptions are not used."
36079 msgstr ""
36080
36081 #. type: =item
36082 #: ../src/guestfs.pod:732
36083 msgid "B<C#>"
36084 msgstr ""
36085
36086 #. type: textblock
36087 #: ../src/guestfs.pod:734
36088 msgid ""
36089 "The C# bindings are highly experimental.  Please read the warnings at the "
36090 "top of C<csharp/Libguestfs.cs>."
36091 msgstr ""
36092
36093 #. type: =item
36094 #: ../src/guestfs.pod:737
36095 msgid "B<Erlang>"
36096 msgstr ""
36097
36098 #. type: textblock
36099 #: ../src/guestfs.pod:739
36100 msgid "See L<guestfs-erlang(3)>."
36101 msgstr ""
36102
36103 #. type: =item
36104 #: ../src/guestfs.pod:741
36105 msgid "B<Haskell>"
36106 msgstr ""
36107
36108 #. type: textblock
36109 #: ../src/guestfs.pod:743
36110 msgid ""
36111 "This is the only language binding that is working but incomplete.  Only "
36112 "calls which return simple integers have been bound in Haskell, and we are "
36113 "looking for help to complete this binding."
36114 msgstr ""
36115
36116 #. type: =item
36117 #: ../src/guestfs.pod:747
36118 msgid "B<Java>"
36119 msgstr ""
36120
36121 #. type: textblock
36122 #: ../src/guestfs.pod:749
36123 msgid ""
36124 "Full documentation is contained in the Javadoc which is distributed with "
36125 "libguestfs.  For examples, see L<guestfs-java(3)>."
36126 msgstr ""
36127
36128 #. type: =item
36129 #: ../src/guestfs.pod:752
36130 msgid "B<OCaml>"
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../src/guestfs.pod:754
36135 msgid "See L<guestfs-ocaml(3)>."
36136 msgstr ""
36137
36138 #. type: =item
36139 #: ../src/guestfs.pod:756
36140 msgid "B<Perl>"
36141 msgstr ""
36142
36143 #. type: textblock
36144 #: ../src/guestfs.pod:758
36145 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36146 msgstr ""
36147
36148 #. type: =item
36149 #: ../src/guestfs.pod:760
36150 msgid "B<PHP>"
36151 msgstr ""
36152
36153 #. type: textblock
36154 #: ../src/guestfs.pod:762
36155 msgid ""
36156 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36157 "the php-libguestfs package for your distribution."
36158 msgstr ""
36159
36160 #. type: textblock
36161 #: ../src/guestfs.pod:765
36162 msgid "The PHP binding only works correctly on 64 bit machines."
36163 msgstr ""
36164
36165 #. type: =item
36166 #: ../src/guestfs.pod:767
36167 msgid "B<Python>"
36168 msgstr ""
36169
36170 #. type: textblock
36171 #: ../src/guestfs.pod:769
36172 msgid "See L<guestfs-python(3)>."
36173 msgstr ""
36174
36175 #. type: =item
36176 #: ../src/guestfs.pod:771
36177 msgid "B<Ruby>"
36178 msgstr ""
36179
36180 #. type: textblock
36181 #: ../src/guestfs.pod:773
36182 msgid "See L<guestfs-ruby(3)>."
36183 msgstr ""
36184
36185 #. type: =item
36186 #: ../src/guestfs.pod:775
36187 msgid "B<shell scripts>"
36188 msgstr ""
36189
36190 #. type: textblock
36191 #: ../src/guestfs.pod:777
36192 msgid "See L<guestfish(1)>."
36193 msgstr ""
36194
36195 #. type: =head2
36196 #: ../src/guestfs.pod:781
36197 msgid "LIBGUESTFS GOTCHAS"
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:783
36202 msgid ""
36203 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36204 "system [...] that works in the way it is documented but is counterintuitive "
36205 "and almost invites mistakes.\""
36206 msgstr ""
36207
36208 #. type: textblock
36209 #: ../src/guestfs.pod:787
36210 msgid ""
36211 "Since we developed libguestfs and the associated tools, there are several "
36212 "things we would have designed differently, but are now stuck with for "
36213 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36214 "release, you can expect these to change.  Beware of them."
36215 msgstr ""
36216
36217 #. type: =item
36218 #: ../src/guestfs.pod:795
36219 msgid "Autosync / forgetting to sync."
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:797
36224 msgid ""
36225 "I<Update:> Autosync is enabled by default for all API users starting from "
36226 "libguestfs 1.5.24.  This section only applies to older versions."
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:800
36231 msgid ""
36232 "When modifying a filesystem from C or another language, you B<must> unmount "
36233 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36234 "libguestfs handle.  You can also call:"
36235 msgstr ""
36236
36237 #. type: verbatim
36238 #: ../src/guestfs.pod:804
36239 #, no-wrap
36240 msgid ""
36241 " guestfs_set_autosync (g, 1);\n"
36242 "\n"
36243 msgstr ""
36244
36245 #. type: textblock
36246 #: ../src/guestfs.pod:806
36247 msgid ""
36248 "to have the unmount/sync done automatically for you when the handle 'g' is "
36249 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
36250 "q.v.)"
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:810
36255 msgid ""
36256 "If you forget to do this, then it is entirely possible that your changes "
36257 "won't be written out, or will be partially written, or (very rarely) that "
36258 "you'll get disk corruption."
36259 msgstr ""
36260
36261 #. type: textblock
36262 #: ../src/guestfs.pod:814
36263 msgid ""
36264 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36265 "guestfish scripts that forget to sync will work just fine, which can make "
36266 "this very puzzling if you are trying to debug a problem."
36267 msgstr ""
36268
36269 #. type: =item
36270 #: ../src/guestfs.pod:818
36271 msgid "Mount option C<-o sync> should not be the default."
36272 msgstr ""
36273
36274 #. type: textblock
36275 #: ../src/guestfs.pod:820
36276 msgid ""
36277 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36278 "libguestfs 1.13.16.  This section only applies to older versions."
36279 msgstr ""
36280
36281 #. type: textblock
36282 #: ../src/guestfs.pod:823
36283 msgid ""
36284 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36285 "However C<-o sync> does not add any reliability benefit, but does have a "
36286 "very large performance impact."
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:827
36291 msgid ""
36292 "The work around is to use L</guestfs_mount_options> and set the mount "
36293 "options that you actually want to use."
36294 msgstr ""
36295
36296 #. type: =item
36297 #: ../src/guestfs.pod:830
36298 msgid "Read-only should be the default."
36299 msgstr ""
36300
36301 #. type: textblock
36302 #: ../src/guestfs.pod:832
36303 msgid ""
36304 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36305 "specify I<--rw> if you want to make changes to the image."
36306 msgstr ""
36307
36308 #. type: textblock
36309 #: ../src/guestfs.pod:835
36310 msgid "This would reduce the potential to corrupt live VM images."
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:837
36315 msgid ""
36316 "Note that many filesystems change the disk when you just mount and unmount, "
36317 "even if you didn't perform any writes.  You need to use "
36318 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
36319 msgstr ""
36320
36321 #. type: =item
36322 #: ../src/guestfs.pod:841
36323 msgid "guestfish command line is hard to use."
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:843
36328 msgid ""
36329 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36330 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36331 "exist, so it fails.  In earlier versions of guestfish the error message was "
36332 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36333 "we should have used C<guestfish -c command> to run commands."
36334 msgstr ""
36335
36336 #. type: =item
36337 #: ../src/guestfs.pod:850
36338 msgid "guestfish megabyte modifiers don't work right on all commands"
36339 msgstr ""
36340
36341 #. type: textblock
36342 #: ../src/guestfs.pod:852
36343 msgid ""
36344 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36345 "other modifiers).  What guestfish actually does is to multiply the number "
36346 "part by the modifier part and pass the result to the C API.  However this "
36347 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36348 "expecting some other unit (eg. megabytes)."
36349 msgstr ""
36350
36351 #. type: textblock
36352 #: ../src/guestfs.pod:859
36353 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36354 msgstr ""
36355
36356 #. type: verbatim
36357 #: ../src/guestfs.pod:861
36358 #, no-wrap
36359 msgid ""
36360 " lvcreate LV VG 100M\n"
36361 "\n"
36362 msgstr ""
36363
36364 #. type: textblock
36365 #: ../src/guestfs.pod:863
36366 msgid ""
36367 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36368 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36369 "megabytes * megabytes) logical volume.  The error message you get from this "
36370 "is also a little obscure."
36371 msgstr ""
36372
36373 #. type: textblock
36374 #: ../src/guestfs.pod:868
36375 msgid ""
36376 "This could be fixed in the generator by specially marking parameters and "
36377 "return values which take bytes or other units."
36378 msgstr ""
36379
36380 #. type: =item
36381 #: ../src/guestfs.pod:871
36382 msgid "Ambiguity between devices and paths"
36383 msgstr ""
36384
36385 #. type: textblock
36386 #: ../src/guestfs.pod:873
36387 msgid ""
36388 "There is a subtle ambiguity in the API between a device name "
36389 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
36390 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36391 msgstr ""
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:878
36395 msgid ""
36396 "In the current API we usually resolve this ambiguity by having two separate "
36397 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36398 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36399 "detecting if the path supplied begins with C</dev/>."
36400 msgstr ""
36401
36402 #. type: textblock
36403 #: ../src/guestfs.pod:884
36404 msgid ""
36405 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36406 "make paths/devices into structured names.  One way to do this would be to "
36407 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36408 "aspect of grub.  Another way would be to use a structured type, equivalent "
36409 "to this OCaml type:"
36410 msgstr ""
36411
36412 #. type: verbatim
36413 #: ../src/guestfs.pod:890
36414 #, no-wrap
36415 msgid ""
36416 " type path = Path of string | Device of int | Partition of int * int\n"
36417 "\n"
36418 msgstr ""
36419
36420 #. type: textblock
36421 #: ../src/guestfs.pod:892
36422 msgid "which would allow you to pass arguments like:"
36423 msgstr ""
36424
36425 #. type: verbatim
36426 #: ../src/guestfs.pod:894
36427 #, no-wrap
36428 msgid ""
36429 " Path \"/foo/bar\"\n"
36430 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36431 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36432 " Path \"/dev/sdb2\"    (* not a device *)\n"
36433 "\n"
36434 msgstr ""
36435
36436 #. type: textblock
36437 #: ../src/guestfs.pod:899
36438 msgid ""
36439 "As you can see there are still problems to resolve even with this "
36440 "representation.  Also consider how it might work in guestfish."
36441 msgstr ""
36442
36443 #. type: =head2
36444 #: ../src/guestfs.pod:904
36445 msgid "KEYS AND PASSPHRASES"
36446 msgstr ""
36447
36448 #. type: textblock
36449 #: ../src/guestfs.pod:906
36450 msgid ""
36451 "Certain libguestfs calls take a parameter that contains sensitive key "
36452 "material, passed in as a C string."
36453 msgstr ""
36454
36455 #. type: textblock
36456 #: ../src/guestfs.pod:909
36457 msgid ""
36458 "In the future we would hope to change the libguestfs implementation so that "
36459 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36460 "swap.  However this is I<not> done at the moment, because of the complexity "
36461 "of such an implementation."
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:914
36466 msgid ""
36467 "Therefore you should be aware that any key parameter you pass to libguestfs "
36468 "might end up being written out to the swap partition.  If this is a concern, "
36469 "scrub the swap partition or don't use libguestfs on encrypted devices."
36470 msgstr ""
36471
36472 #. type: =head2
36473 #: ../src/guestfs.pod:919
36474 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../src/guestfs.pod:921
36479 msgid ""
36480 "All high-level libguestfs actions are synchronous.  If you want to use "
36481 "libguestfs asynchronously then you must create a thread."
36482 msgstr ""
36483
36484 #. type: textblock
36485 #: ../src/guestfs.pod:924
36486 msgid ""
36487 "Only use the handle from a single thread.  Either use the handle exclusively "
36488 "from one thread, or provide your own mutex so that two threads cannot issue "
36489 "calls on the same handle at the same time."
36490 msgstr ""
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:928
36494 msgid ""
36495 "See the graphical program guestfs-browser for one possible architecture for "
36496 "multithreaded programs using libvirt and libguestfs."
36497 msgstr ""
36498
36499 #. type: =head2
36500 #: ../src/guestfs.pod:931
36501 msgid "PATH"
36502 msgstr ""
36503
36504 #. type: textblock
36505 #: ../src/guestfs.pod:933
36506 msgid ""
36507 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36508 "internal path."
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:936
36513 msgid ""
36514 "By default it looks for these in the directory C<$libdir/guestfs> "
36515 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:939
36520 msgid ""
36521 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36522 "to change the directories that libguestfs will search in.  The value is a "
36523 "colon-separated list of paths.  The current directory is I<not> searched "
36524 "unless the path contains an empty element or C<.>.  For example "
36525 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36526 "then C</usr/lib/guestfs>."
36527 msgstr ""
36528
36529 #. type: =head2
36530 #: ../src/guestfs.pod:946
36531 msgid "QEMU WRAPPERS"
36532 msgstr ""
36533
36534 #. type: textblock
36535 #: ../src/guestfs.pod:948
36536 msgid ""
36537 "If you want to compile your own qemu, run qemu from a non-standard location, "
36538 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36539 "around qemu."
36540 msgstr ""
36541
36542 #. type: textblock
36543 #: ../src/guestfs.pod:952
36544 msgid ""
36545 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36546 "last command in the shell script (so that qemu replaces the shell and "
36547 "becomes the direct child of the libguestfs-using program).  If you don't do "
36548 "this, then the qemu process won't be cleaned up correctly."
36549 msgstr ""
36550
36551 #. type: textblock
36552 #: ../src/guestfs.pod:957
36553 msgid ""
36554 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36555 "source:"
36556 msgstr ""
36557
36558 #. type: verbatim
36559 #: ../src/guestfs.pod:960
36560 #, no-wrap
36561 msgid ""
36562 " #!/bin/sh -\n"
36563 " qemudir=/home/rjones/d/qemu\n"
36564 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
36565 "\"$@\"\n"
36566 "\n"
36567 msgstr ""
36568
36569 #. type: textblock
36570 #: ../src/guestfs.pod:964
36571 msgid ""
36572 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36573 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36574 "example:"
36575 msgstr ""
36576
36577 #. type: verbatim
36578 #: ../src/guestfs.pod:968
36579 #, no-wrap
36580 msgid ""
36581 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36582 "\n"
36583 msgstr ""
36584
36585 #. type: textblock
36586 #: ../src/guestfs.pod:970
36587 msgid ""
36588 "Note that libguestfs also calls qemu with the -help and -version options in "
36589 "order to determine features."
36590 msgstr ""
36591
36592 #. type: textblock
36593 #: ../src/guestfs.pod:973
36594 msgid ""
36595 "Wrappers can also be used to edit the options passed to qemu.  In the "
36596 "following example, the C<-machine ...> option (C<-machine> and the following "
36597 "argument) are removed from the command line and replaced with C<-machine "
36598 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
36599 "right one to remove, putting the remaining options into the C<args> array."
36600 msgstr ""
36601
36602 #. type: verbatim
36603 #: ../src/guestfs.pod:982
36604 #, no-wrap
36605 msgid ""
36606 " i=0\n"
36607 " while [ $# -gt 0 ]; do\n"
36608 "     case \"$1\" in\n"
36609 "     -machine)\n"
36610 "         shift 2;;\n"
36611 "     *)\n"
36612 "         args[i]=\"$1\"\n"
36613 "         (( i++ ))\n"
36614 "         shift ;;\n"
36615 "     esac\n"
36616 " done\n"
36617 " \n"
36618 msgstr ""
36619
36620 #. type: verbatim
36621 #: ../src/guestfs.pod:994
36622 #, no-wrap
36623 msgid ""
36624 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36625 "\n"
36626 msgstr ""
36627
36628 #. type: =head2
36629 #: ../src/guestfs.pod:996
36630 msgid "ATTACHING TO RUNNING DAEMONS"
36631 msgstr ""
36632
36633 #. type: textblock
36634 #: ../src/guestfs.pod:998
36635 msgid ""
36636 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36637 "babies.  Use with caution."
36638 msgstr ""
36639
36640 #. type: textblock
36641 #: ../src/guestfs.pod:1001
36642 msgid ""
36643 "I<Note (2):> This section explains how to attach to a running daemon from a "
36644 "low level perspective.  For most users, simply using virt tools such as "
36645 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36646 msgstr ""
36647
36648 #. type: =head3
36649 #: ../src/guestfs.pod:1005
36650 msgid "Using guestfs_set_attach_method"
36651 msgstr ""
36652
36653 #. type: textblock
36654 #: ../src/guestfs.pod:1007
36655 msgid ""
36656 "By calling L</guestfs_set_attach_method> you can change how the library "
36657 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
36658 "L</ARCHITECTURE> for some background)."
36659 msgstr ""
36660
36661 #. type: textblock
36662 #: ../src/guestfs.pod:1011
36663 msgid ""
36664 "The normal attach method is C<appliance>, where a small appliance is created "
36665 "containing the daemon, and then the library connects to this."
36666 msgstr ""
36667
36668 #. type: textblock
36669 #: ../src/guestfs.pod:1014
36670 msgid ""
36671 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36672 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36673 "daemon over the Unix domain socket."
36674 msgstr ""
36675
36676 #. type: textblock
36677 #: ../src/guestfs.pod:1018
36678 msgid ""
36679 "The normal use for this is to connect to a running virtual machine that "
36680 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36681 "files inside the live virtual machine."
36682 msgstr ""
36683
36684 #. type: =head3
36685 #: ../src/guestfs.pod:1022
36686 msgid "Using guestfs_add_domain with live flag"
36687 msgstr ""
36688
36689 #. type: textblock
36690 #: ../src/guestfs.pod:1024
36691 msgid ""
36692 "L</guestfs_add_domain> provides some help for getting the correct attach "
36693 "method.  If you pass the C<live> option to this function, then (if the "
36694 "virtual machine is running) it will examine the libvirt XML looking for a "
36695 "virtio-serial channel to connect to:"
36696 msgstr ""
36697
36698 #. type: verbatim
36699 #: ../src/guestfs.pod:1030
36700 #, no-wrap
36701 msgid ""
36702 " <domain>\n"
36703 "   ...\n"
36704 "   <devices>\n"
36705 "     ...\n"
36706 "     <channel type='unix'>\n"
36707 "       <source mode='bind' path='/path/to/socket'/>\n"
36708 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36709 "     </channel>\n"
36710 "     ...\n"
36711 "   </devices>\n"
36712 " </domain>\n"
36713 "\n"
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:1042
36718 msgid ""
36719 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36720 "method to C<unix:/path/to/socket>."
36721 msgstr ""
36722
36723 #. type: textblock
36724 #: ../src/guestfs.pod:1045
36725 msgid ""
36726 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36727 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36728 "to attach to and modify live virtual machines."
36729 msgstr ""
36730
36731 #. type: textblock
36732 #: ../src/guestfs.pod:1049
36733 msgid ""
36734 "The virtual machine needs to have been set up beforehand so that it has the "
36735 "virtio-serial channel and so that guestfsd is running inside it."
36736 msgstr ""
36737
36738 #. type: =head2
36739 #: ../src/guestfs.pod:1053
36740 msgid "ABI GUARANTEE"
36741 msgstr ""
36742
36743 #. type: textblock
36744 #: ../src/guestfs.pod:1055
36745 msgid ""
36746 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36747 "actions as outlined in this section.  Although we will deprecate some "
36748 "actions, for example if they get replaced by newer calls, we will keep the "
36749 "old actions forever.  This allows you the developer to program in confidence "
36750 "against the libguestfs API."
36751 msgstr ""
36752
36753 #. type: =head2
36754 #: ../src/guestfs.pod:1061
36755 msgid "BLOCK DEVICE NAMING"
36756 msgstr ""
36757
36758 #. type: textblock
36759 #: ../src/guestfs.pod:1063
36760 msgid ""
36761 "In the kernel there is now quite a profusion of schemata for naming block "
36762 "devices (in this context, by I<block device> I mean a physical or virtual "
36763 "hard drive).  The original Linux IDE driver used names starting with "
36764 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
36765 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
36766 "replacement for the old IDE driver (particularly for SATA devices) those "
36767 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
36768 "machines with paravirtualized drivers.  This has created several different "
36769 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
36770 "Xen PV disks."
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../src/guestfs.pod:1075
36775 msgid ""
36776 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36777 "Linux kernel to access block devices.  We can run a variety of appliances "
36778 "based on a variety of Linux kernels."
36779 msgstr ""
36780
36781 #. type: textblock
36782 #: ../src/guestfs.pod:1079
36783 msgid ""
36784 "This causes a problem for libguestfs because many API calls use device or "
36785 "partition names.  Working scripts and the recipe (example) scripts that we "
36786 "make available over the internet could fail if the naming scheme changes."
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:1084
36791 msgid ""
36792 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36793 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36794 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36795 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36796 msgstr ""
36797
36798 #. type: textblock
36799 #: ../src/guestfs.pod:1090
36800 msgid ""
36801 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36802 "L</guestfs_list_partitions> and similar calls return the true names of the "
36803 "devices and partitions as known to the appliance."
36804 msgstr ""
36805
36806 #. type: =head3
36807 #: ../src/guestfs.pod:1095
36808 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36809 msgstr ""
36810
36811 #. type: textblock
36812 #: ../src/guestfs.pod:1097
36813 msgid ""
36814 "Usually this translation is transparent.  However in some (very rare)  cases "
36815 "you may need to know the exact algorithm.  Such cases include where you use "
36816 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
36817 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
36818 "devices."
36819 msgstr ""
36820
36821 #. type: textblock
36822 #: ../src/guestfs.pod:1103
36823 msgid ""
36824 "The algorithm is applied only to I<parameters> which are known to be either "
36825 "device or partition names.  Return values from functions such as "
36826 "L</guestfs_list_devices> are never changed."
36827 msgstr ""
36828
36829 #. type: textblock
36830 #: ../src/guestfs.pod:1111
36831 msgid "Is the string a parameter which is a device or partition name?"
36832 msgstr ""
36833
36834 #. type: textblock
36835 #: ../src/guestfs.pod:1115
36836 msgid "Does the string begin with C</dev/sd>?"
36837 msgstr ""
36838
36839 #. type: textblock
36840 #: ../src/guestfs.pod:1119
36841 msgid ""
36842 "Does the named device exist? If so, we use that device.  However if I<not> "
36843 "then we continue with this algorithm."
36844 msgstr ""
36845
36846 #. type: textblock
36847 #: ../src/guestfs.pod:1124
36848 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36849 msgstr ""
36850
36851 #. type: textblock
36852 #: ../src/guestfs.pod:1126
36853 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36854 msgstr ""
36855
36856 #. type: textblock
36857 #: ../src/guestfs.pod:1128
36858 msgid "If that named device exists, use it.  If not, continue."
36859 msgstr ""
36860
36861 #. type: textblock
36862 #: ../src/guestfs.pod:1132
36863 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36864 msgstr ""
36865
36866 #. type: textblock
36867 #: ../src/guestfs.pod:1134
36868 msgid "If that named device exists, use it.  If not, return an error."
36869 msgstr ""
36870
36871 #. type: =head3
36872 #: ../src/guestfs.pod:1138
36873 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36874 msgstr ""
36875
36876 #. type: textblock
36877 #: ../src/guestfs.pod:1140
36878 msgid ""
36879 "Although the standard naming scheme and automatic translation is useful for "
36880 "simple programs and guestfish scripts, for larger programs it is best not to "
36881 "rely on this mechanism."
36882 msgstr ""
36883
36884 #. type: textblock
36885 #: ../src/guestfs.pod:1144
36886 msgid ""
36887 "Where possible for maximum future portability programs using libguestfs "
36888 "should use these future-proof techniques:"
36889 msgstr ""
36890
36891 #. type: textblock
36892 #: ../src/guestfs.pod:1151
36893 msgid ""
36894 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36895 "device names, and then use those names directly."
36896 msgstr ""
36897
36898 #. type: textblock
36899 #: ../src/guestfs.pod:1154
36900 msgid "Since those device names exist by definition, they will never be translated."
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../src/guestfs.pod:1159
36905 msgid ""
36906 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36907 "filesystem labels."
36908 msgstr ""
36909
36910 #. type: textblock
36911 #: ../src/guestfs.pod:1166
36912 msgid ""
36913 "This section discusses security implications of using libguestfs, "
36914 "particularly with untrusted or malicious guests or disk images."
36915 msgstr ""
36916
36917 #. type: =head2
36918 #: ../src/guestfs.pod:1169
36919 msgid "GENERAL SECURITY CONSIDERATIONS"
36920 msgstr ""
36921
36922 #. type: textblock
36923 #: ../src/guestfs.pod:1171
36924 msgid ""
36925 "Be careful with any files or data that you download from a guest (by "
36926 "\"download\" we mean not just the L</guestfs_download> command but any "
36927 "command that reads files, filenames, directories or anything else from a "
36928 "disk image).  An attacker could manipulate the data to fool your program "
36929 "into doing the wrong thing.  Consider cases such as:"
36930 msgstr ""
36931
36932 #. type: textblock
36933 #: ../src/guestfs.pod:1181
36934 msgid "the data (file etc) not being present"
36935 msgstr ""
36936
36937 #. type: textblock
36938 #: ../src/guestfs.pod:1185
36939 msgid "being present but empty"
36940 msgstr ""
36941
36942 #. type: textblock
36943 #: ../src/guestfs.pod:1189
36944 msgid "being much larger than normal"
36945 msgstr ""
36946
36947 #. type: textblock
36948 #: ../src/guestfs.pod:1193
36949 msgid "containing arbitrary 8 bit data"
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../src/guestfs.pod:1197
36954 msgid "being in an unexpected character encoding"
36955 msgstr ""
36956
36957 #. type: textblock
36958 #: ../src/guestfs.pod:1201
36959 msgid "containing homoglyphs."
36960 msgstr ""
36961
36962 #. type: =head2
36963 #: ../src/guestfs.pod:1205
36964 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36965 msgstr ""
36966
36967 #. type: textblock
36968 #: ../src/guestfs.pod:1207
36969 msgid ""
36970 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36971 "(VFS) module can sometimes be escalated into exploits by deliberately "
36972 "creating a malicious, malformed filesystem.  These exploits are very severe "
36973 "for two reasons.  Firstly there are very many filesystem drivers in the "
36974 "kernel, and many of them are infrequently used and not much developer "
36975 "attention has been paid to the code.  Linux userspace helps potential "
36976 "crackers by detecting the filesystem type and automatically choosing the "
36977 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36978 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36979 "exploit (worse in some ways), giving immediate and total access to the "
36980 "system right down to the hardware level."
36981 msgstr ""
36982
36983 #. type: textblock
36984 #: ../src/guestfs.pod:1220
36985 msgid ""
36986 "That explains why you should never mount a filesystem from an untrusted "
36987 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36988 "inside a qemu virtual machine, usually running as a non-root user.  The "
36989 "attacker would need to write a filesystem which first exploited the kernel, "
36990 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36991 "the libguestfs protocol, and finally to be as serious as the host kernel "
36992 "exploit it would need to escalate its privileges to root.  This multi-step "
36993 "escalation, performed by a static piece of data, is thought to be extremely "
36994 "hard to do, although we never say 'never' about security issues."
36995 msgstr ""
36996
36997 #. type: textblock
36998 #: ../src/guestfs.pod:1231
36999 msgid ""
37000 "In any case callers can reduce the attack surface by forcing the filesystem "
37001 "type when mounting (use L</guestfs_mount_vfs>)."
37002 msgstr ""
37003
37004 #. type: =head2
37005 #: ../src/guestfs.pod:1234
37006 msgid "PROTOCOL SECURITY"
37007 msgstr ""
37008
37009 #. type: textblock
37010 #: ../src/guestfs.pod:1236
37011 msgid ""
37012 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37013 "defined upper message size.  However a program that uses libguestfs must "
37014 "also take care - for example you can write a program that downloads a binary "
37015 "from a disk image and executes it locally, and no amount of protocol "
37016 "security will save you from the consequences."
37017 msgstr ""
37018
37019 #. type: =head2
37020 #: ../src/guestfs.pod:1242
37021 msgid "INSPECTION SECURITY"
37022 msgstr ""
37023
37024 #. type: textblock
37025 #: ../src/guestfs.pod:1244
37026 msgid ""
37027 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37028 "directly from the guest, and these could contain any 8 bit data.  Callers "
37029 "should be careful to escape these before printing them to a structured file "
37030 "(for example, use HTML escaping if creating a web page)."
37031 msgstr ""
37032
37033 #. type: textblock
37034 #: ../src/guestfs.pod:1250
37035 msgid ""
37036 "Guest configuration may be altered in unusual ways by the administrator of "
37037 "the virtual machine, and may not reflect reality (particularly for untrusted "
37038 "or actively malicious guests).  For example we parse the hostname from "
37039 "configuration files like C</etc/sysconfig/network> that we find in the "
37040 "guest, but the guest administrator can easily manipulate these files to "
37041 "provide the wrong hostname."
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:1258
37046 msgid ""
37047 "The inspection API parses guest configuration using two external libraries: "
37048 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37049 "designed to be robust in the face of malicious data, although denial of "
37050 "service attacks are still possible, for example with oversized configuration "
37051 "files."
37052 msgstr ""
37053
37054 #. type: =head2
37055 #: ../src/guestfs.pod:1264
37056 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37057 msgstr ""
37058
37059 #. type: textblock
37060 #: ../src/guestfs.pod:1266
37061 msgid ""
37062 "Be very cautious about running commands from the guest.  By running a "
37063 "command in the guest, you are giving CPU time to a binary that you do not "
37064 "control, under the same user account as the library, albeit wrapped in qemu "
37065 "virtualization.  More information and alternatives can be found in the "
37066 "section L</RUNNING COMMANDS>."
37067 msgstr ""
37068
37069 #. type: =head2
37070 #: ../src/guestfs.pod:1272
37071 msgid "CVE-2010-3851"
37072 msgstr ""
37073
37074 #. type: textblock
37075 #: ../src/guestfs.pod:1274
37076 msgid "https://bugzilla.redhat.com/642934"
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../src/guestfs.pod:1276
37081 msgid ""
37082 "This security bug concerns the automatic disk format detection that qemu "
37083 "does on disk images."
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:1279
37088 msgid ""
37089 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37090 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37091 "for one of the known headers, and if none is found then assuming the disk "
37092 "image must be raw."
37093 msgstr ""
37094
37095 #. type: textblock
37096 #: ../src/guestfs.pod:1284
37097 msgid ""
37098 "This allows a guest which has been given a raw disk image to write some "
37099 "other header.  At next boot (or when the disk image is accessed by "
37100 "libguestfs) qemu would do autodetection and think the disk image format was, "
37101 "say, qcow2 based on the header written by the guest."
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../src/guestfs.pod:1289
37106 msgid ""
37107 "This in itself would not be a problem, but qcow2 offers many features, one "
37108 "of which is to allow a disk image to refer to another image (called the "
37109 "\"backing disk\").  It does this by placing the path to the backing disk "
37110 "into the qcow2 header.  This path is not validated and could point to any "
37111 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37112 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37113 "control of the attacker."
37114 msgstr ""
37115
37116 #. type: textblock
37117 #: ../src/guestfs.pod:1297
37118 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
37119 msgstr ""
37120
37121 #. type: textblock
37122 #: ../src/guestfs.pod:1304
37123 msgid "You have enabled the network or have opened the disk in write mode."
37124 msgstr ""
37125
37126 #. type: textblock
37127 #: ../src/guestfs.pod:1308
37128 msgid ""
37129 "You are also running untrusted code from the guest (see L</RUNNING "
37130 "COMMANDS>)."
37131 msgstr ""
37132
37133 #. type: textblock
37134 #: ../src/guestfs.pod:1313
37135 msgid ""
37136 "The way to avoid this is to specify the expected disk format when adding "
37137 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37138 "should always do this if the disk is raw format, and it's a good idea for "
37139 "other cases too."
37140 msgstr ""
37141
37142 #. type: textblock
37143 #: ../src/guestfs.pod:1318
37144 msgid ""
37145 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37146 "format is fetched from libvirt and passed through."
37147 msgstr ""
37148
37149 #. type: textblock
37150 #: ../src/guestfs.pod:1321
37151 msgid ""
37152 "For libguestfs tools, use the I<--format> command line parameter as "
37153 "appropriate."
37154 msgstr ""
37155
37156 #. type: =head1
37157 #: ../src/guestfs.pod:1324
37158 msgid "CONNECTION MANAGEMENT"
37159 msgstr ""
37160
37161 #. type: =head2
37162 #: ../src/guestfs.pod:1326
37163 msgid "guestfs_h *"
37164 msgstr ""
37165
37166 #. type: textblock
37167 #: ../src/guestfs.pod:1328
37168 msgid ""
37169 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37170 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37171 "handle and release all resources used."
37172 msgstr ""
37173
37174 #. type: textblock
37175 #: ../src/guestfs.pod:1332
37176 msgid ""
37177 "For information on using multiple handles and threads, see the section "
37178 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37179 msgstr ""
37180
37181 #. type: =head2
37182 #: ../src/guestfs.pod:1335
37183 msgid "guestfs_create"
37184 msgstr ""
37185
37186 #. type: verbatim
37187 #: ../src/guestfs.pod:1337
37188 #, no-wrap
37189 msgid ""
37190 " guestfs_h *guestfs_create (void);\n"
37191 "\n"
37192 msgstr ""
37193
37194 #. type: textblock
37195 #: ../src/guestfs.pod:1339
37196 msgid "Create a connection handle."
37197 msgstr ""
37198
37199 #. type: textblock
37200 #: ../src/guestfs.pod:1341
37201 msgid ""
37202 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37203 "NULL."
37204 msgstr ""
37205
37206 #. type: textblock
37207 #: ../src/guestfs.pod:1344
37208 msgid ""
37209 "You have to \"configure\" the handle after creating it.  This includes "
37210 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37211 "handle at least once."
37212 msgstr ""
37213
37214 #. type: textblock
37215 #: ../src/guestfs.pod:1348
37216 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:1350
37221 msgid ""
37222 "You may also want to configure error handling for the handle.  See the "
37223 "L</ERROR HANDLING> section below."
37224 msgstr ""
37225
37226 #. type: =head2
37227 #: ../src/guestfs.pod:1353
37228 msgid "guestfs_close"
37229 msgstr ""
37230
37231 #. type: verbatim
37232 #: ../src/guestfs.pod:1355
37233 #, no-wrap
37234 msgid ""
37235 " void guestfs_close (guestfs_h *g);\n"
37236 "\n"
37237 msgstr ""
37238
37239 #. type: textblock
37240 #: ../src/guestfs.pod:1357
37241 msgid "This closes the connection handle and frees up all resources used."
37242 msgstr ""
37243
37244 #. type: textblock
37245 #: ../src/guestfs.pod:1359
37246 msgid ""
37247 "If autosync was set on the handle and the handle was launched, then this "
37248 "implicitly calls various functions to unmount filesystems and sync the "
37249 "disk.  See L</guestfs_set_autosync> for more details."
37250 msgstr ""
37251
37252 #. type: textblock
37253 #: ../src/guestfs.pod:1363
37254 msgid "If a close callback was set on the handle, then it is called."
37255 msgstr ""
37256
37257 #. type: =head1
37258 #: ../src/guestfs.pod:1365
37259 msgid "ERROR HANDLING"
37260 msgstr ""
37261
37262 #. type: textblock
37263 #: ../src/guestfs.pod:1367
37264 msgid ""
37265 "API functions can return errors.  For example, almost all functions that "
37266 "return C<int> will return C<-1> to indicate an error."
37267 msgstr ""
37268
37269 #. type: textblock
37270 #: ../src/guestfs.pod:1370
37271 msgid ""
37272 "Additional information is available for errors: an error message string and "
37273 "optionally an error number (errno) if the thing that failed was a system "
37274 "call."
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../src/guestfs.pod:1374
37279 msgid ""
37280 "You can get at the additional information about the last error on the handle "
37281 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37282 "up an error handler with L</guestfs_set_error_handler>."
37283 msgstr ""
37284
37285 #. type: textblock
37286 #: ../src/guestfs.pod:1379
37287 msgid ""
37288 "When the handle is created, a default error handler is installed which "
37289 "prints the error message string to C<stderr>.  For small short-running "
37290 "command line programs it is sufficient to do:"
37291 msgstr ""
37292
37293 #. type: verbatim
37294 #: ../src/guestfs.pod:1383
37295 #, no-wrap
37296 msgid ""
37297 " if (guestfs_launch (g) == -1)\n"
37298 "   exit (EXIT_FAILURE);\n"
37299 "\n"
37300 msgstr ""
37301
37302 #. type: textblock
37303 #: ../src/guestfs.pod:1386
37304 msgid ""
37305 "since the default error handler will ensure that an error message has been "
37306 "printed to C<stderr> before the program exits."
37307 msgstr ""
37308
37309 #. type: textblock
37310 #: ../src/guestfs.pod:1389
37311 msgid ""
37312 "For other programs the caller will almost certainly want to install an "
37313 "alternate error handler or do error handling in-line like this:"
37314 msgstr ""
37315
37316 #. type: verbatim
37317 #: ../src/guestfs.pod:1392
37318 #, no-wrap
37319 msgid ""
37320 " /* This disables the default behaviour of printing errors\n"
37321 "    on stderr. */\n"
37322 " guestfs_set_error_handler (g, NULL, NULL);\n"
37323 " \n"
37324 msgstr ""
37325
37326 #. type: verbatim
37327 #: ../src/guestfs.pod:1396
37328 #, no-wrap
37329 msgid ""
37330 " if (guestfs_launch (g) == -1) {\n"
37331 "   /* Examine the error message and print it etc. */\n"
37332 "   char *msg = guestfs_last_error (g);\n"
37333 "   int errnum = guestfs_last_errno (g);\n"
37334 "   fprintf (stderr, \"%s\", msg);\n"
37335 "   if (errnum != 0)\n"
37336 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37337 "   fprintf (stderr, \"\\n\");\n"
37338 "   /* ... */\n"
37339 " }\n"
37340 "\n"
37341 msgstr ""
37342
37343 #. type: textblock
37344 #: ../src/guestfs.pod:1407
37345 msgid ""
37346 "Out of memory errors are handled differently.  The default action is to call "
37347 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
37348 "L</guestfs_set_out_of_memory_handler>."
37349 msgstr ""
37350
37351 #. type: textblock
37352 #: ../src/guestfs.pod:1411
37353 msgid ""
37354 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37355 "because there is no handle if this happens there is no way to get additional "
37356 "error information.  However L</guestfs_create> is supposed to be a "
37357 "lightweight operation which can only fail because of insufficient memory (it "
37358 "returns NULL in this case)."
37359 msgstr ""
37360
37361 #. type: =head2
37362 #: ../src/guestfs.pod:1417
37363 msgid "guestfs_last_error"
37364 msgstr ""
37365
37366 #. type: verbatim
37367 #: ../src/guestfs.pod:1419
37368 #, no-wrap
37369 msgid ""
37370 " const char *guestfs_last_error (guestfs_h *g);\n"
37371 "\n"
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:1421
37376 msgid ""
37377 "This returns the last error message that happened on C<g>.  If there has not "
37378 "been an error since the handle was created, then this returns C<NULL>."
37379 msgstr ""
37380
37381 #. type: textblock
37382 #: ../src/guestfs.pod:1425
37383 msgid ""
37384 "The lifetime of the returned string is until the next error occurs, or "
37385 "L</guestfs_close> is called."
37386 msgstr ""
37387
37388 #. type: =head2
37389 #: ../src/guestfs.pod:1428
37390 msgid "guestfs_last_errno"
37391 msgstr ""
37392
37393 #. type: verbatim
37394 #: ../src/guestfs.pod:1430
37395 #, no-wrap
37396 msgid ""
37397 " int guestfs_last_errno (guestfs_h *g);\n"
37398 "\n"
37399 msgstr ""
37400
37401 #. type: textblock
37402 #: ../src/guestfs.pod:1432
37403 msgid "This returns the last error number (errno) that happened on C<g>."
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../src/guestfs.pod:1434
37408 msgid "If successful, an errno integer not equal to zero is returned."
37409 msgstr ""
37410
37411 #. type: textblock
37412 #: ../src/guestfs.pod:1436
37413 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
37414 msgstr ""
37415
37416 #. type: textblock
37417 #: ../src/guestfs.pod:1443
37418 msgid "There has not been any error on the handle."
37419 msgstr ""
37420
37421 #. type: textblock
37422 #: ../src/guestfs.pod:1447
37423 msgid ""
37424 "There has been an error but the errno was meaningless.  This corresponds to "
37425 "the case where the error did not come from a failed system call, but for "
37426 "some other reason."
37427 msgstr ""
37428
37429 #. type: textblock
37430 #: ../src/guestfs.pod:1453
37431 msgid ""
37432 "There was an error from a failed system call, but for some reason the errno "
37433 "was not captured and returned.  This usually indicates a bug in libguestfs."
37434 msgstr ""
37435
37436 #. type: textblock
37437 #: ../src/guestfs.pod:1459
37438 msgid ""
37439 "Libguestfs tries to convert the errno from inside the applicance into a "
37440 "corresponding errno for the caller (not entirely trivial: the appliance "
37441 "might be running a completely different operating system from the library "
37442 "and error numbers are not standardized across Un*xen).  If this could not be "
37443 "done, then the error is translated to C<EINVAL>.  In practice this should "
37444 "only happen in very rare circumstances."
37445 msgstr ""
37446
37447 #. type: =head2
37448 #: ../src/guestfs.pod:1467
37449 msgid "guestfs_set_error_handler"
37450 msgstr ""
37451
37452 #. type: verbatim
37453 #: ../src/guestfs.pod:1469
37454 #, no-wrap
37455 msgid ""
37456 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37457 "                                           void *opaque,\n"
37458 "                                           const char *msg);\n"
37459 " void guestfs_set_error_handler (guestfs_h *g,\n"
37460 "                                 guestfs_error_handler_cb cb,\n"
37461 "                                 void *opaque);\n"
37462 "\n"
37463 msgstr ""
37464
37465 #. type: textblock
37466 #: ../src/guestfs.pod:1476
37467 msgid ""
37468 "The callback C<cb> will be called if there is an error.  The parameters "
37469 "passed to the callback are an opaque data pointer and the error message "
37470 "string."
37471 msgstr ""
37472
37473 #. type: textblock
37474 #: ../src/guestfs.pod:1480
37475 msgid ""
37476 "C<errno> is not passed to the callback.  To get that the callback must call "
37477 "L</guestfs_last_errno>."
37478 msgstr ""
37479
37480 #. type: textblock
37481 #: ../src/guestfs.pod:1483
37482 msgid ""
37483 "Note that the message string C<msg> is freed as soon as the callback "
37484 "function returns, so if you want to stash it somewhere you must make your "
37485 "own copy."
37486 msgstr ""
37487
37488 #. type: textblock
37489 #: ../src/guestfs.pod:1487
37490 msgid "The default handler prints messages on C<stderr>."
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:1489
37495 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37496 msgstr ""
37497
37498 #. type: =head2
37499 #: ../src/guestfs.pod:1491
37500 msgid "guestfs_get_error_handler"
37501 msgstr ""
37502
37503 #. type: verbatim
37504 #: ../src/guestfs.pod:1493
37505 #, no-wrap
37506 msgid ""
37507 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37508 "                                                     void **opaque_rtn);\n"
37509 "\n"
37510 msgstr ""
37511
37512 #. type: textblock
37513 #: ../src/guestfs.pod:1496
37514 msgid "Returns the current error handler callback."
37515 msgstr ""
37516
37517 #. type: =head2
37518 #: ../src/guestfs.pod:1498
37519 msgid "guestfs_set_out_of_memory_handler"
37520 msgstr ""
37521
37522 #. type: verbatim
37523 #: ../src/guestfs.pod:1500
37524 #, no-wrap
37525 msgid ""
37526 " typedef void (*guestfs_abort_cb) (void);\n"
37527 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37528 "                                         guestfs_abort_cb);\n"
37529 "\n"
37530 msgstr ""
37531
37532 #. type: textblock
37533 #: ../src/guestfs.pod:1504
37534 msgid ""
37535 "The callback C<cb> will be called if there is an out of memory situation.  "
37536 "I<Note this callback must not return>."
37537 msgstr ""
37538
37539 #. type: textblock
37540 #: ../src/guestfs.pod:1507
37541 msgid "The default is to call L<abort(3)>."
37542 msgstr ""
37543
37544 #. type: textblock
37545 #: ../src/guestfs.pod:1509
37546 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37547 msgstr ""
37548
37549 #. type: =head2
37550 #: ../src/guestfs.pod:1512
37551 msgid "guestfs_get_out_of_memory_handler"
37552 msgstr ""
37553
37554 #. type: verbatim
37555 #: ../src/guestfs.pod:1514
37556 #, no-wrap
37557 msgid ""
37558 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37559 "\n"
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../src/guestfs.pod:1516
37564 msgid "This returns the current out of memory handler."
37565 msgstr ""
37566
37567 #. type: =head1
37568 #: ../src/guestfs.pod:1518
37569 msgid "API CALLS"
37570 msgstr ""
37571
37572 #. type: =head1
37573 #: ../src/guestfs.pod:1522
37574 msgid "STRUCTURES"
37575 msgstr ""
37576
37577 #. type: textblock
37578 #: ../src/guestfs.pod:1524
37579 msgid "@STRUCTS@"
37580 msgstr ""
37581
37582 #. type: =head1
37583 #: ../src/guestfs.pod:1526
37584 msgid "AVAILABILITY"
37585 msgstr ""
37586
37587 #. type: =head2
37588 #: ../src/guestfs.pod:1528
37589 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37590 msgstr ""
37591
37592 #. type: textblock
37593 #: ../src/guestfs.pod:1530
37594 msgid ""
37595 "Using L</guestfs_available> you can test availability of the following "
37596 "groups of functions.  This test queries the appliance to see if the "
37597 "appliance you are currently using supports the functionality."
37598 msgstr ""
37599
37600 #. type: textblock
37601 #: ../src/guestfs.pod:1535
37602 msgid "@AVAILABILITY@"
37603 msgstr ""
37604
37605 #. type: =head2
37606 #: ../src/guestfs.pod:1537
37607 msgid "GUESTFISH supported COMMAND"
37608 msgstr ""
37609
37610 #. type: textblock
37611 #: ../src/guestfs.pod:1539
37612 msgid ""
37613 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37614 "prints out the available groups and whether they are supported by this build "
37615 "of libguestfs.  Note however that you have to do C<run> first."
37616 msgstr ""
37617
37618 #. type: =head2
37619 #: ../src/guestfs.pod:1544
37620 msgid "SINGLE CALLS AT COMPILE TIME"
37621 msgstr ""
37622
37623 #. type: textblock
37624 #: ../src/guestfs.pod:1546
37625 msgid ""
37626 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37627 "function, such as:"
37628 msgstr ""
37629
37630 #. type: verbatim
37631 #: ../src/guestfs.pod:1549
37632 #, no-wrap
37633 msgid ""
37634 " #define LIBGUESTFS_HAVE_DD 1\n"
37635 "\n"
37636 msgstr ""
37637
37638 #. type: textblock
37639 #: ../src/guestfs.pod:1551
37640 msgid "if L</guestfs_dd> is available."
37641 msgstr ""
37642
37643 #. type: textblock
37644 #: ../src/guestfs.pod:1553
37645 msgid ""
37646 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37647 "function is available at compile time, we recommended using build tools such "
37648 "as autoconf or cmake.  For example in autotools you could use:"
37649 msgstr ""
37650
37651 #. type: verbatim
37652 #: ../src/guestfs.pod:1558
37653 #, no-wrap
37654 msgid ""
37655 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37656 " AC_CHECK_FUNCS([guestfs_dd])\n"
37657 "\n"
37658 msgstr ""
37659
37660 #. type: textblock
37661 #: ../src/guestfs.pod:1561
37662 msgid ""
37663 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37664 "in your program."
37665 msgstr ""
37666
37667 #. type: =head2
37668 #: ../src/guestfs.pod:1564
37669 msgid "SINGLE CALLS AT RUN TIME"
37670 msgstr ""
37671
37672 #. type: textblock
37673 #: ../src/guestfs.pod:1566
37674 msgid ""
37675 "Testing at compile time doesn't guarantee that a function really exists in "
37676 "the library.  The reason is that you might be dynamically linked against a "
37677 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37678 "This situation unfortunately results in a segmentation fault, which is a "
37679 "shortcoming of the C dynamic linking system itself."
37680 msgstr ""
37681
37682 #. type: textblock
37683 #: ../src/guestfs.pod:1573
37684 msgid ""
37685 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37686 "in this example program (note that you still need the compile time check as "
37687 "well):"
37688 msgstr ""
37689
37690 #. type: verbatim
37691 #: ../src/guestfs.pod:1577
37692 #, no-wrap
37693 msgid ""
37694 " #include <stdio.h>\n"
37695 " #include <stdlib.h>\n"
37696 " #include <unistd.h>\n"
37697 " #include <dlfcn.h>\n"
37698 " #include <guestfs.h>\n"
37699 " \n"
37700 msgstr ""
37701
37702 #. type: verbatim
37703 #: ../src/guestfs.pod:1583
37704 #, no-wrap
37705 msgid ""
37706 " main ()\n"
37707 " {\n"
37708 " #ifdef LIBGUESTFS_HAVE_DD\n"
37709 "   void *dl;\n"
37710 "   int has_function;\n"
37711 " \n"
37712 msgstr ""
37713
37714 #. type: verbatim
37715 #: ../src/guestfs.pod:1589
37716 #, no-wrap
37717 msgid ""
37718 "   /* Test if the function guestfs_dd is really available. */\n"
37719 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37720 "   if (!dl) {\n"
37721 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37722 "     exit (EXIT_FAILURE);\n"
37723 "   }\n"
37724 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37725 "   dlclose (dl);\n"
37726 " \n"
37727 msgstr ""
37728
37729 #. type: verbatim
37730 #: ../src/guestfs.pod:1598
37731 #, no-wrap
37732 msgid ""
37733 "   if (!has_function)\n"
37734 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37735 "   else {\n"
37736 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37737 "     /* Now it's safe to call\n"
37738 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37739 "     */\n"
37740 "   }\n"
37741 " #else\n"
37742 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37743 " #endif\n"
37744 "  }\n"
37745 "\n"
37746 msgstr ""
37747
37748 #. type: textblock
37749 #: ../src/guestfs.pod:1611
37750 msgid ""
37751 "You may think the above is an awful lot of hassle, and it is.  There are "
37752 "other ways outside of the C linking system to ensure that this kind of "
37753 "incompatibility never arises, such as using package versioning:"
37754 msgstr ""
37755
37756 #. type: verbatim
37757 #: ../src/guestfs.pod:1616
37758 #, no-wrap
37759 msgid ""
37760 " Requires: libguestfs >= 1.0.80\n"
37761 "\n"
37762 msgstr ""
37763
37764 #. type: =head1
37765 #: ../src/guestfs.pod:1618
37766 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:1620
37771 msgid ""
37772 "A recent feature of the API is the introduction of calls which take optional "
37773 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37774 "takes variable arguments (ie. C<...>), as in this example:"
37775 msgstr ""
37776
37777 #. type: verbatim
37778 #: ../src/guestfs.pod:1625
37779 #, no-wrap
37780 msgid ""
37781 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37782 "\n"
37783 msgstr ""
37784
37785 #. type: textblock
37786 #: ../src/guestfs.pod:1627
37787 msgid ""
37788 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37789 "call with no optional arguments specified:"
37790 msgstr ""
37791
37792 #. type: verbatim
37793 #: ../src/guestfs.pod:1630
37794 #, no-wrap
37795 msgid ""
37796 " guestfs_add_drive_opts (g, filename, -1);\n"
37797 "\n"
37798 msgstr ""
37799
37800 #. type: textblock
37801 #: ../src/guestfs.pod:1632
37802 msgid "With a single optional argument:"
37803 msgstr ""
37804
37805 #. type: verbatim
37806 #: ../src/guestfs.pod:1634
37807 #, no-wrap
37808 msgid ""
37809 " guestfs_add_drive_opts (g, filename,\n"
37810 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37811 "                         -1);\n"
37812 "\n"
37813 msgstr ""
37814
37815 #. type: textblock
37816 #: ../src/guestfs.pod:1638
37817 msgid "With two:"
37818 msgstr ""
37819
37820 #. type: verbatim
37821 #: ../src/guestfs.pod:1640
37822 #, no-wrap
37823 msgid ""
37824 " guestfs_add_drive_opts (g, filename,\n"
37825 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37826 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37827 "                         -1);\n"
37828 "\n"
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../src/guestfs.pod:1645
37833 msgid ""
37834 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37835 "happen!"
37836 msgstr ""
37837
37838 #. type: =head2
37839 #: ../src/guestfs.pod:1648
37840 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37841 msgstr ""
37842
37843 #. type: textblock
37844 #: ../src/guestfs.pod:1650
37845 msgid ""
37846 "The second variant has the same name with the suffix C<_va>, which works the "
37847 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37848 "example function, this is declared:"
37849 msgstr ""
37850
37851 #. type: verbatim
37852 #: ../src/guestfs.pod:1654
37853 #, no-wrap
37854 msgid ""
37855 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37856 "                                va_list args);\n"
37857 "\n"
37858 msgstr ""
37859
37860 #. type: =head2
37861 #: ../src/guestfs.pod:1657
37862 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37863 msgstr ""
37864
37865 #. type: textblock
37866 #: ../src/guestfs.pod:1659
37867 msgid ""
37868 "The third variant is useful where you need to construct these calls.  You "
37869 "pass in a structure where you fill in the optional fields.  The structure "
37870 "has a bitmask as the first element which you must set to indicate which "
37871 "fields you have filled in.  For our example function the structure and call "
37872 "are declared:"
37873 msgstr ""
37874
37875 #. type: verbatim
37876 #: ../src/guestfs.pod:1665
37877 #, no-wrap
37878 msgid ""
37879 " struct guestfs_add_drive_opts_argv {\n"
37880 "   uint64_t bitmask;\n"
37881 "   int readonly;\n"
37882 "   const char *format;\n"
37883 "   /* ... */\n"
37884 " };\n"
37885 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37886 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37887 "\n"
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../src/guestfs.pod:1674
37892 msgid "You could call it like this:"
37893 msgstr ""
37894
37895 #. type: verbatim
37896 #: ../src/guestfs.pod:1676
37897 #, no-wrap
37898 msgid ""
37899 " struct guestfs_add_drive_opts_argv optargs = {\n"
37900 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37901 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37902 "   .readonly = 1,\n"
37903 "   .format = \"qcow2\"\n"
37904 " };\n"
37905 " \n"
37906 msgstr ""
37907
37908 #. type: verbatim
37909 #: ../src/guestfs.pod:1683
37910 #, no-wrap
37911 msgid ""
37912 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37913 "\n"
37914 msgstr ""
37915
37916 #. type: textblock
37917 #: ../src/guestfs.pod:1691
37918 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37919 msgstr ""
37920
37921 #. type: textblock
37922 #: ../src/guestfs.pod:1696
37923 msgid "You do not need to fill in all fields of the structure."
37924 msgstr ""
37925
37926 #. type: textblock
37927 #: ../src/guestfs.pod:1700
37928 msgid ""
37929 "There must be a one-to-one correspondence between fields of the structure "
37930 "that are filled in, and bits set in the bitmask."
37931 msgstr ""
37932
37933 #. type: =head2
37934 #: ../src/guestfs.pod:1705
37935 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37936 msgstr ""
37937
37938 #. type: textblock
37939 #: ../src/guestfs.pod:1707
37940 msgid ""
37941 "In other languages, optional arguments are expressed in the way that is "
37942 "natural for that language.  We refer you to the language-specific "
37943 "documentation for more details on that."
37944 msgstr ""
37945
37946 #. type: textblock
37947 #: ../src/guestfs.pod:1711
37948 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37949 msgstr ""
37950
37951 #. type: =head2
37952 #: ../src/guestfs.pod:1713
37953 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37954 msgstr ""
37955
37956 #. type: textblock
37957 #: ../src/guestfs.pod:1715
37958 msgid ""
37959 "B<Note:> This section documents the generic event mechanism introduced in "
37960 "libguestfs 1.10, which you should use in new code if possible.  The old "
37961 "functions C<guestfs_set_log_message_callback>, "
37962 "C<guestfs_set_subprocess_quit_callback>, "
37963 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37964 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37965 "page.  Because of the ABI guarantee, the old functions continue to work."
37966 msgstr ""
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:1724
37970 msgid ""
37971 "Handles generate events when certain things happen, such as log messages "
37972 "being generated, progress messages during long-running operations, or the "
37973 "handle being closed.  The API calls described below let you register a "
37974 "callback to be called when events happen.  You can register multiple "
37975 "callbacks (for the same, different or overlapping sets of events), and "
37976 "individually remove callbacks.  If callbacks are not removed, then they "
37977 "remain in force until the handle is closed."
37978 msgstr ""
37979
37980 #. type: textblock
37981 #: ../src/guestfs.pod:1732
37982 msgid ""
37983 "In the current implementation, events are only generated synchronously: that "
37984 "means that events (and hence callbacks) can only happen while you are in the "
37985 "middle of making another libguestfs call.  The callback is called in the "
37986 "same thread."
37987 msgstr ""
37988
37989 #. type: textblock
37990 #: ../src/guestfs.pod:1737
37991 msgid ""
37992 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37993 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37994 msgstr ""
37995
37996 #. type: =head3
37997 #: ../src/guestfs.pod:1741
37998 msgid "CLASSES OF EVENTS"
37999 msgstr ""
38000
38001 #. type: =item
38002 #: ../src/guestfs.pod:1745
38003 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../src/guestfs.pod:1748
38008 msgid ""
38009 "The callback function will be called while the handle is being closed "
38010 "(synchronously from L</guestfs_close>)."
38011 msgstr ""
38012
38013 #. type: textblock
38014 #: ../src/guestfs.pod:1751
38015 msgid ""
38016 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38017 "handles that are open when the program exits.  This means that this callback "
38018 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38019 "problems in higher-level languages (eg. if your HLL interpreter has already "
38020 "been cleaned up by the time this is called, and if your callback then jumps "
38021 "into some HLL function)."
38022 msgstr ""
38023
38024 #. type: textblock
38025 #: ../src/guestfs.pod:1758
38026 msgid ""
38027 "If no callback is registered: the handle is closed without any callback "
38028 "being invoked."
38029 msgstr ""
38030
38031 #. type: =item
38032 #: ../src/guestfs.pod:1761
38033 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38034 msgstr ""
38035
38036 #. type: textblock
38037 #: ../src/guestfs.pod:1764
38038 msgid ""
38039 "The callback function will be called when the child process quits, either "
38040 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38041 "corresponds to a transition from any state to the CONFIG state)."
38042 msgstr ""
38043
38044 #. type: textblock
38045 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38046 msgid "If no callback is registered: the event is ignored."
38047 msgstr ""
38048
38049 #. type: =item
38050 #: ../src/guestfs.pod:1770
38051 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38052 msgstr ""
38053
38054 #. type: textblock
38055 #: ../src/guestfs.pod:1773
38056 msgid ""
38057 "The callback function will be called when the child process becomes ready "
38058 "first time after it has been launched.  (This corresponds to a transition "
38059 "from LAUNCHING to the READY state)."
38060 msgstr ""
38061
38062 #. type: =item
38063 #: ../src/guestfs.pod:1779
38064 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../src/guestfs.pod:1782
38069 msgid ""
38070 "Some long-running operations can generate progress messages.  If this "
38071 "callback is registered, then it will be called each time a progress message "
38072 "is generated (usually two seconds after the operation started, and three "
38073 "times per second thereafter until it completes, although the frequency may "
38074 "change in future versions)."
38075 msgstr ""
38076
38077 #. type: textblock
38078 #: ../src/guestfs.pod:1788
38079 msgid ""
38080 "The callback receives in the payload four unsigned 64 bit numbers which are "
38081 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38082 msgstr ""
38083
38084 #. type: textblock
38085 #: ../src/guestfs.pod:1791
38086 msgid ""
38087 "The units of C<total> are not defined, although for some operations C<total> "
38088 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38089 "or megabytes), and C<position> may be the portion which has been "
38090 "transferred."
38091 msgstr ""
38092
38093 #. type: textblock
38094 #: ../src/guestfs.pod:1796
38095 msgid "The only defined and stable parts of the API are:"
38096 msgstr ""
38097
38098 #. type: textblock
38099 #: ../src/guestfs.pod:1802
38100 msgid ""
38101 "The callback can display to the user some type of progress bar or indicator "
38102 "which shows the ratio of C<position>:C<total>."
38103 msgstr ""
38104
38105 #. type: textblock
38106 #: ../src/guestfs.pod:1807
38107 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38108 msgstr ""
38109
38110 #. type: textblock
38111 #: ../src/guestfs.pod:1811
38112 msgid ""
38113 "If any progress notification is sent during a call, then a final progress "
38114 "notification is always sent when C<position> = C<total> (I<unless> the call "
38115 "fails with an error)."
38116 msgstr ""
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:1815
38120 msgid ""
38121 "This is to simplify caller code, so callers can easily set the progress "
38122 "indicator to \"100%\" at the end of the operation, without requiring special "
38123 "code to detect this case."
38124 msgstr ""
38125
38126 #. type: textblock
38127 #: ../src/guestfs.pod:1821
38128 msgid ""
38129 "For some calls we are unable to estimate the progress of the call, but we "
38130 "can still generate progress messages to indicate activity.  This is known as "
38131 "\"pulse mode\", and is directly supported by certain progress bar "
38132 "implementations (eg. GtkProgressBar)."
38133 msgstr ""
38134
38135 #. type: textblock
38136 #: ../src/guestfs.pod:1826
38137 msgid ""
38138 "For these calls, zero or more progress messages are generated with "
38139 "C<position = 0> and C<total = 1>, followed by a final message with "
38140 "C<position = total = 1>."
38141 msgstr ""
38142
38143 #. type: textblock
38144 #: ../src/guestfs.pod:1830
38145 msgid ""
38146 "As noted above, if the call fails with an error then the final message may "
38147 "not be generated."
38148 msgstr ""
38149
38150 #. type: textblock
38151 #: ../src/guestfs.pod:1835
38152 msgid ""
38153 "The callback also receives the procedure number (C<proc_nr>) and serial "
38154 "number (C<serial>) of the call.  These are only useful for debugging "
38155 "protocol issues, and the callback can normally ignore them.  The callback "
38156 "may want to print these numbers in error messages or debugging messages."
38157 msgstr ""
38158
38159 #. type: textblock
38160 #: ../src/guestfs.pod:1841
38161 msgid "If no callback is registered: progress messages are discarded."
38162 msgstr ""
38163
38164 #. type: =item
38165 #: ../src/guestfs.pod:1843
38166 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../src/guestfs.pod:1846
38171 msgid ""
38172 "The callback function is called whenever a log message is generated by qemu, "
38173 "the appliance kernel, guestfsd (daemon), or utility programs."
38174 msgstr ""
38175
38176 #. type: textblock
38177 #: ../src/guestfs.pod:1849
38178 msgid ""
38179 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
38180 "(L</guestfs_launch>) then additional debug messages are generated."
38181 msgstr ""
38182
38183 #. type: textblock
38184 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38185 msgid ""
38186 "If no callback is registered: the messages are discarded unless the verbose "
38187 "flag is set in which case they are sent to stderr.  You can override the "
38188 "printing of verbose messages to stderr by setting up a callback."
38189 msgstr ""
38190
38191 #. type: =item
38192 #: ../src/guestfs.pod:1857
38193 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38194 msgstr ""
38195
38196 #. type: textblock
38197 #: ../src/guestfs.pod:1860
38198 msgid ""
38199 "The callback function is called whenever a log message is generated by the "
38200 "library part of libguestfs."
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:1863
38205 msgid ""
38206 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38207 "messages are generated."
38208 msgstr ""
38209
38210 #. type: =item
38211 #: ../src/guestfs.pod:1871
38212 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38213 msgstr ""
38214
38215 #. type: textblock
38216 #: ../src/guestfs.pod:1874
38217 msgid ""
38218 "The callback function is called whenever a trace message is generated.  This "
38219 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38220 msgstr ""
38221
38222 #. type: textblock
38223 #: ../src/guestfs.pod:1877
38224 msgid ""
38225 "If no callback is registered: the messages are sent to stderr.  You can "
38226 "override the printing of trace messages to stderr by setting up a callback."
38227 msgstr ""
38228
38229 #. type: =item
38230 #: ../src/guestfs.pod:1881
38231 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38232 msgstr ""
38233
38234 #. type: textblock
38235 #: ../src/guestfs.pod:1884
38236 msgid "The callback function is called whenever a libguestfs function is entered."
38237 msgstr ""
38238
38239 #. type: textblock
38240 #: ../src/guestfs.pod:1887
38241 msgid ""
38242 "The payload is a string which contains the name of the function that we are "
38243 "entering (not including C<guestfs_> prefix)."
38244 msgstr ""
38245
38246 #. type: textblock
38247 #: ../src/guestfs.pod:1890
38248 msgid ""
38249 "Note that libguestfs functions can call themselves, so you may see many "
38250 "events from a single call.  A few libguestfs functions do not generate this "
38251 "event."
38252 msgstr ""
38253
38254 #. type: =head3
38255 #: ../src/guestfs.pod:1898
38256 msgid "guestfs_set_event_callback"
38257 msgstr ""
38258
38259 #. type: verbatim
38260 #: ../src/guestfs.pod:1900
38261 #, no-wrap
38262 msgid ""
38263 " int guestfs_set_event_callback (guestfs_h *g,\n"
38264 "                                 guestfs_event_callback cb,\n"
38265 "                                 uint64_t event_bitmask,\n"
38266 "                                 int flags,\n"
38267 "                                 void *opaque);\n"
38268 "\n"
38269 msgstr ""
38270
38271 #. type: textblock
38272 #: ../src/guestfs.pod:1906
38273 msgid ""
38274 "This function registers a callback (C<cb>) for all event classes in the "
38275 "C<event_bitmask>."
38276 msgstr ""
38277
38278 #. type: textblock
38279 #: ../src/guestfs.pod:1909
38280 msgid ""
38281 "For example, to register for all log message events, you could call this "
38282 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38283 "To register a single callback for all possible classes of events, use "
38284 "C<GUESTFS_EVENT_ALL>."
38285 msgstr ""
38286
38287 #. type: textblock
38288 #: ../src/guestfs.pod:1915
38289 msgid "C<flags> should always be passed as 0."
38290 msgstr ""
38291
38292 #. type: textblock
38293 #: ../src/guestfs.pod:1917
38294 msgid ""
38295 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38296 "it for any purpose."
38297 msgstr ""
38298
38299 #. type: textblock
38300 #: ../src/guestfs.pod:1920
38301 msgid ""
38302 "The return value is the event handle (an integer) which you can use to "
38303 "delete the callback (see below)."
38304 msgstr ""
38305
38306 #. type: textblock
38307 #: ../src/guestfs.pod:1923
38308 msgid ""
38309 "If there is an error, this function returns C<-1>, and sets the error in the "
38310 "handle in the usual way (see L</guestfs_last_error> etc.)"
38311 msgstr ""
38312
38313 #. type: textblock
38314 #: ../src/guestfs.pod:1926
38315 msgid ""
38316 "Callbacks remain in effect until they are deleted, or until the handle is "
38317 "closed."
38318 msgstr ""
38319
38320 #. type: textblock
38321 #: ../src/guestfs.pod:1929
38322 msgid ""
38323 "In the case where multiple callbacks are registered for a particular event "
38324 "class, all of the callbacks are called.  The order in which multiple "
38325 "callbacks are called is not defined."
38326 msgstr ""
38327
38328 #. type: =head3
38329 #: ../src/guestfs.pod:1933
38330 msgid "guestfs_delete_event_callback"
38331 msgstr ""
38332
38333 #. type: verbatim
38334 #: ../src/guestfs.pod:1935
38335 #, no-wrap
38336 msgid ""
38337 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38338 "\n"
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../src/guestfs.pod:1937
38343 msgid ""
38344 "Delete a callback that was previously registered.  C<event_handle> should be "
38345 "the integer that was returned by a previous call to "
38346 "C<guestfs_set_event_callback> on the same handle."
38347 msgstr ""
38348
38349 #. type: =head3
38350 #: ../src/guestfs.pod:1941
38351 msgid "guestfs_event_callback"
38352 msgstr ""
38353
38354 #. type: verbatim
38355 #: ../src/guestfs.pod:1943
38356 #, no-wrap
38357 msgid ""
38358 " typedef void (*guestfs_event_callback) (\n"
38359 "                  guestfs_h *g,\n"
38360 "                  void *opaque,\n"
38361 "                  uint64_t event,\n"
38362 "                  int event_handle,\n"
38363 "                  int flags,\n"
38364 "                  const char *buf, size_t buf_len,\n"
38365 "                  const uint64_t *array, size_t array_len);\n"
38366 "\n"
38367 msgstr ""
38368
38369 #. type: textblock
38370 #: ../src/guestfs.pod:1952
38371 msgid "This is the type of the event callback function that you have to provide."
38372 msgstr ""
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:1955
38376 msgid ""
38377 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38378 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38379 "handle, and C<flags> which in the current API you should ignore."
38380 msgstr ""
38381
38382 #. type: textblock
38383 #: ../src/guestfs.pod:1959
38384 msgid ""
38385 "The remaining parameters contain the event payload (if any).  Each event may "
38386 "contain a payload, which usually relates to the event class, but for future "
38387 "proofing your code should be written to handle any payload for any event "
38388 "class."
38389 msgstr ""
38390
38391 #. type: textblock
38392 #: ../src/guestfs.pod:1964
38393 msgid ""
38394 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38395 "there is no message buffer).  Note that this message buffer can contain "
38396 "arbitrary 8 bit data, including NUL bytes."
38397 msgstr ""
38398
38399 #. type: textblock
38400 #: ../src/guestfs.pod:1968
38401 msgid ""
38402 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38403 "moment this is only used for progress messages."
38404 msgstr ""
38405
38406 #. type: =head3
38407 #: ../src/guestfs.pod:1971
38408 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38409 msgstr ""
38410
38411 #. type: textblock
38412 #: ../src/guestfs.pod:1973
38413 msgid ""
38414 "One motivation for the generic event API was to allow GUI programs to "
38415 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38416 "unconditionally to C<stderr>."
38417 msgstr ""
38418
38419 #. type: textblock
38420 #: ../src/guestfs.pod:1977
38421 msgid ""
38422 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38423 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38424 "messages are not events; you must capture error messages separately)."
38425 msgstr ""
38426
38427 #. type: textblock
38428 #: ../src/guestfs.pod:1982
38429 msgid ""
38430 "Programs have to set up a callback to capture the classes of events of "
38431 "interest:"
38432 msgstr ""
38433
38434 #. type: verbatim
38435 #: ../src/guestfs.pod:1985
38436 #, no-wrap
38437 msgid ""
38438 " int eh =\n"
38439 "   guestfs_set_event_callback\n"
38440 "     (g, message_callback,\n"
38441 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38442 "      GUESTFS_EVENT_TRACE,\n"
38443 "      0, NULL) == -1)\n"
38444 " if (eh == -1) {\n"
38445 "   // handle error in the usual way\n"
38446 " }\n"
38447 "\n"
38448 msgstr ""
38449
38450 #. type: textblock
38451 #: ../src/guestfs.pod:1995
38452 msgid ""
38453 "The callback can then direct messages to the appropriate place.  In this "
38454 "example, messages are directed to syslog:"
38455 msgstr ""
38456
38457 #. type: verbatim
38458 #: ../src/guestfs.pod:1998
38459 #, no-wrap
38460 msgid ""
38461 " static void\n"
38462 " message_callback (\n"
38463 "         guestfs_h *g,\n"
38464 "         void *opaque,\n"
38465 "         uint64_t event,\n"
38466 "         int event_handle,\n"
38467 "         int flags,\n"
38468 "         const char *buf, size_t buf_len,\n"
38469 "         const uint64_t *array, size_t array_len)\n"
38470 " {\n"
38471 "   const int priority = LOG_USER|LOG_INFO;\n"
38472 "   if (buf_len > 0)\n"
38473 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38474 " }\n"
38475 "\n"
38476 msgstr ""
38477
38478 #. type: =head1
38479 #: ../src/guestfs.pod:2013
38480 msgid "CANCELLING LONG TRANSFERS"
38481 msgstr ""
38482
38483 #. type: textblock
38484 #: ../src/guestfs.pod:2015
38485 msgid ""
38486 "Some operations can be cancelled by the caller while they are in progress.  "
38487 "Currently only operations that involve uploading or downloading data can be "
38488 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38489 "parameters in the generator)."
38490 msgstr ""
38491
38492 #. type: =head2
38493 #: ../src/guestfs.pod:2020
38494 msgid "guestfs_user_cancel"
38495 msgstr ""
38496
38497 #. type: verbatim
38498 #: ../src/guestfs.pod:2022
38499 #, no-wrap
38500 msgid ""
38501 " void guestfs_user_cancel (guestfs_h *g);\n"
38502 "\n"
38503 msgstr ""
38504
38505 #. type: textblock
38506 #: ../src/guestfs.pod:2024
38507 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
38508 msgstr ""
38509
38510 #. type: textblock
38511 #: ../src/guestfs.pod:2027
38512 msgid ""
38513 "Unlike most other libguestfs calls, this function is signal safe and thread "
38514 "safe.  You can call it from a signal handler or from another thread, without "
38515 "needing to do any locking."
38516 msgstr ""
38517
38518 #. type: textblock
38519 #: ../src/guestfs.pod:2031
38520 msgid ""
38521 "The transfer that was in progress (if there is one) will stop shortly "
38522 "afterwards, and will return an error.  The errno (see "
38523 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38524 "out if the operation was cancelled or failed because of another error."
38525 msgstr ""
38526
38527 #. type: textblock
38528 #: ../src/guestfs.pod:2037
38529 msgid ""
38530 "No cleanup is performed: for example, if a file was being uploaded then "
38531 "after cancellation there may be a partially uploaded file.  It is the "
38532 "caller's responsibility to clean up if necessary."
38533 msgstr ""
38534
38535 #. type: textblock
38536 #: ../src/guestfs.pod:2041
38537 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38538 msgstr ""
38539
38540 #. type: textblock
38541 #: ../src/guestfs.pod:2043
38542 msgid ""
38543 "In an interactive text-based program, you might call it from a C<SIGINT> "
38544 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38545 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38546 "receive the C<^C> signal)."
38547 msgstr ""
38548
38549 #. type: textblock
38550 #: ../src/guestfs.pod:2048
38551 msgid ""
38552 "In a graphical program, when the main thread is displaying a progress bar "
38553 "with a cancel button, wire up the cancel button to call this function."
38554 msgstr ""
38555
38556 #. type: =head1
38557 #: ../src/guestfs.pod:2052
38558 msgid "PRIVATE DATA AREA"
38559 msgstr ""
38560
38561 #. type: textblock
38562 #: ../src/guestfs.pod:2054
38563 msgid ""
38564 "You can attach named pieces of private data to the libguestfs handle, fetch "
38565 "them by name, and walk over them, for the lifetime of the handle.  This is "
38566 "called the private data area and is only available from the C API."
38567 msgstr ""
38568
38569 #. type: textblock
38570 #: ../src/guestfs.pod:2059
38571 msgid "To attach a named piece of data, use the following call:"
38572 msgstr ""
38573
38574 #. type: verbatim
38575 #: ../src/guestfs.pod:2061
38576 #, no-wrap
38577 msgid ""
38578 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38579 "\n"
38580 msgstr ""
38581
38582 #. type: textblock
38583 #: ../src/guestfs.pod:2063
38584 msgid ""
38585 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38586 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38587 "overwritten."
38588 msgstr ""
38589
38590 #. type: textblock
38591 #: ../src/guestfs.pod:2067
38592 msgid ""
38593 "You can use any C<key> you want, but your key should I<not> start with an "
38594 "underscore character.  Keys beginning with an underscore character are "
38595 "reserved for internal libguestfs purposes (eg. for implementing language "
38596 "bindings).  It is recommended that you prefix the key with some unique "
38597 "string to avoid collisions with other users."
38598 msgstr ""
38599
38600 #. type: textblock
38601 #: ../src/guestfs.pod:2073
38602 msgid "To retrieve the pointer, use:"
38603 msgstr ""
38604
38605 #. type: verbatim
38606 #: ../src/guestfs.pod:2075
38607 #, no-wrap
38608 msgid ""
38609 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38610 "\n"
38611 msgstr ""
38612
38613 #. type: textblock
38614 #: ../src/guestfs.pod:2077
38615 msgid ""
38616 "This function returns C<NULL> if either no data is found associated with "
38617 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38618 "C<NULL>."
38619 msgstr ""
38620
38621 #. type: textblock
38622 #: ../src/guestfs.pod:2081
38623 msgid ""
38624 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38625 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38626 "all.  In particular, libguestfs does I<not> try to free the data when the "
38627 "handle is closed.  If the data must be freed, then the caller must either "
38628 "free it before calling L</guestfs_close> or must set up a close callback to "
38629 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38630 msgstr ""
38631
38632 #. type: textblock
38633 #: ../src/guestfs.pod:2088
38634 msgid "To walk over all entries, use these two functions:"
38635 msgstr ""
38636
38637 #. type: verbatim
38638 #: ../src/guestfs.pod:2090
38639 #, no-wrap
38640 msgid ""
38641 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38642 "\n"
38643 msgstr ""
38644
38645 #. type: verbatim
38646 #: ../src/guestfs.pod:2092
38647 #, no-wrap
38648 msgid ""
38649 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38650 "\n"
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../src/guestfs.pod:2094
38655 msgid ""
38656 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38657 "not have any particular meaning -- keys are not returned in any defined "
38658 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38659 "corresponding data pointer is returned from the function.  C<NULL> is "
38660 "returned if there are no keys stored in the handle."
38661 msgstr ""
38662
38663 #. type: textblock
38664 #: ../src/guestfs.pod:2100
38665 msgid ""
38666 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38667 "value of this function is also C<NULL> is there are no further entries to "
38668 "return."
38669 msgstr ""
38670
38671 #. type: textblock
38672 #: ../src/guestfs.pod:2104
38673 msgid "Notes about walking over entries:"
38674 msgstr ""
38675
38676 #. type: textblock
38677 #: ../src/guestfs.pod:2110
38678 msgid "You must not call C<guestfs_set_private> while walking over the entries."
38679 msgstr ""
38680
38681 #. type: textblock
38682 #: ../src/guestfs.pod:2115
38683 msgid ""
38684 "The handle maintains an internal iterator which is reset when you call "
38685 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38686 "call C<guestfs_set_private>."
38687 msgstr ""
38688
38689 #. type: textblock
38690 #: ../src/guestfs.pod:2121
38691 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38692 msgstr ""
38693
38694 #. type: verbatim
38695 #: ../src/guestfs.pod:2123
38696 #, no-wrap
38697 msgid ""
38698 " guestfs_set_private (g, key, NULL);\n"
38699 "\n"
38700 msgstr ""
38701
38702 #. type: textblock
38703 #: ../src/guestfs.pod:2125
38704 msgid "then that C<key> is not returned when walking."
38705 msgstr ""
38706
38707 #. type: textblock
38708 #: ../src/guestfs.pod:2129
38709 msgid ""
38710 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38711 "C<guestfs_next_private> or C<guestfs_set_private>."
38712 msgstr ""
38713
38714 #. type: textblock
38715 #: ../src/guestfs.pod:2135
38716 msgid ""
38717 "The following example code shows how to print all keys and data pointers "
38718 "that are associated with the handle C<g>:"
38719 msgstr ""
38720
38721 #. type: verbatim
38722 #: ../src/guestfs.pod:2138
38723 #, no-wrap
38724 msgid ""
38725 " const char *key;\n"
38726 " void *data = guestfs_first_private (g, &key);\n"
38727 " while (data != NULL)\n"
38728 "   {\n"
38729 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38730 "     data = guestfs_next_private (g, &key);\n"
38731 "   }\n"
38732 "\n"
38733 msgstr ""
38734
38735 #. type: textblock
38736 #: ../src/guestfs.pod:2146
38737 msgid ""
38738 "More commonly you are only interested in keys that begin with an "
38739 "application-specific prefix C<foo_>.  Modify the loop like so:"
38740 msgstr ""
38741
38742 #. type: verbatim
38743 #: ../src/guestfs.pod:2149
38744 #, no-wrap
38745 msgid ""
38746 " const char *key;\n"
38747 " void *data = guestfs_first_private (g, &key);\n"
38748 " while (data != NULL)\n"
38749 "   {\n"
38750 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38751 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38752 "     data = guestfs_next_private (g, &key);\n"
38753 "   }\n"
38754 "\n"
38755 msgstr ""
38756
38757 #. type: textblock
38758 #: ../src/guestfs.pod:2158
38759 msgid ""
38760 "If you need to modify keys while walking, then you have to jump back to the "
38761 "beginning of the loop.  For example, to delete all keys prefixed with "
38762 "C<foo_>:"
38763 msgstr ""
38764
38765 #. type: verbatim
38766 #: ../src/guestfs.pod:2162
38767 #, no-wrap
38768 msgid ""
38769 "  const char *key;\n"
38770 "  void *data;\n"
38771 " again:\n"
38772 "  data = guestfs_first_private (g, &key);\n"
38773 "  while (data != NULL)\n"
38774 "    {\n"
38775 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38776 "        {\n"
38777 "          guestfs_set_private (g, key, NULL);\n"
38778 "          /* note that 'key' pointer is now invalid, and so is\n"
38779 "             the internal iterator */\n"
38780 "          goto again;\n"
38781 "        }\n"
38782 "      data = guestfs_next_private (g, &key);\n"
38783 "    }\n"
38784 "\n"
38785 msgstr ""
38786
38787 #. type: textblock
38788 #: ../src/guestfs.pod:2178
38789 msgid ""
38790 "Note that the above loop is guaranteed to terminate because the keys are "
38791 "being deleted, but other manipulations of keys within the loop might not "
38792 "terminate unless you also maintain an indication of which keys have been "
38793 "visited."
38794 msgstr ""
38795
38796 #. type: =head1
38797 #: ../src/guestfs.pod:2183
38798 msgid "SYSTEMTAP"
38799 msgstr ""
38800
38801 #. type: textblock
38802 #: ../src/guestfs.pod:2185
38803 msgid ""
38804 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38805 "true of any library, not just libguestfs.  However libguestfs also contains "
38806 "static markers to help in probing internal operations."
38807 msgstr ""
38808
38809 #. type: textblock
38810 #: ../src/guestfs.pod:2189
38811 msgid "You can list all the static markers by doing:"
38812 msgstr ""
38813
38814 #. type: verbatim
38815 #: ../src/guestfs.pod:2191
38816 #, no-wrap
38817 msgid ""
38818 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38819 "              .provider(\"guestfs\").mark(\"*\")'\n"
38820 "\n"
38821 msgstr ""
38822
38823 #. type: textblock
38824 #: ../src/guestfs.pod:2194
38825 msgid ""
38826 "B<Note:> These static markers are I<not> part of the stable API and may "
38827 "change in future versions."
38828 msgstr ""
38829
38830 #. type: =head2
38831 #: ../src/guestfs.pod:2197
38832 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38833 msgstr ""
38834
38835 #. type: textblock
38836 #: ../src/guestfs.pod:2199
38837 msgid ""
38838 "This script contains examples of displaying both the static markers and some "
38839 "ordinary C entry points:"
38840 msgstr ""
38841
38842 #. type: verbatim
38843 #: ../src/guestfs.pod:2202
38844 #, no-wrap
38845 msgid ""
38846 " global last;\n"
38847 " \n"
38848 msgstr ""
38849
38850 #. type: verbatim
38851 #: ../src/guestfs.pod:2204
38852 #, no-wrap
38853 msgid ""
38854 " function display_time () {\n"
38855 "       now = gettimeofday_us ();\n"
38856 "       delta = 0;\n"
38857 "       if (last > 0)\n"
38858 "             delta = now - last;\n"
38859 "       last = now;\n"
38860 " \n"
38861 msgstr ""
38862
38863 #. type: verbatim
38864 #: ../src/guestfs.pod:2211
38865 #, no-wrap
38866 msgid ""
38867 "       printf (\"%d (+%d):\", now, delta);\n"
38868 " }\n"
38869 " \n"
38870 msgstr ""
38871
38872 #. type: verbatim
38873 #: ../src/guestfs.pod:2214
38874 #, no-wrap
38875 msgid ""
38876 " probe begin {\n"
38877 "       last = 0;\n"
38878 "       printf (\"ready\\n\");\n"
38879 " }\n"
38880 " \n"
38881 msgstr ""
38882
38883 #. type: verbatim
38884 #: ../src/guestfs.pod:2219
38885 #, no-wrap
38886 msgid ""
38887 " /* Display all calls to static markers. */\n"
38888 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38889 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38890 "       display_time();\n"
38891 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38892 " }\n"
38893 " \n"
38894 msgstr ""
38895
38896 #. type: verbatim
38897 #: ../src/guestfs.pod:2226
38898 #, no-wrap
38899 msgid ""
38900 " /* Display all calls to guestfs_mkfs* functions. */\n"
38901 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38902 "           .function(\"guestfs_mkfs*\") ? {\n"
38903 "       display_time();\n"
38904 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38905 " }\n"
38906 "\n"
38907 msgstr ""
38908
38909 #. type: textblock
38910 #: ../src/guestfs.pod:2233
38911 msgid ""
38912 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38913 "program.  Note that you either have to be root, or you have to add yourself "
38914 "to several special stap groups.  Consult the systemtap documentation for "
38915 "more information."
38916 msgstr ""
38917
38918 #. type: verbatim
38919 #: ../src/guestfs.pod:2238
38920 #, no-wrap
38921 msgid ""
38922 " # stap /tmp/test.stap\n"
38923 " ready\n"
38924 "\n"
38925 msgstr ""
38926
38927 #. type: textblock
38928 #: ../src/guestfs.pod:2241
38929 msgid "In another terminal, run a guestfish command such as this:"
38930 msgstr ""
38931
38932 #. type: textblock
38933 #: ../src/guestfs.pod:2245
38934 msgid "In the first terminal, stap trace output similar to this is shown:"
38935 msgstr ""
38936
38937 #. type: verbatim
38938 #: ../src/guestfs.pod:2247
38939 #, no-wrap
38940 msgid ""
38941 " 1318248056692655 (+0):\tlaunch_start\n"
38942 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38943 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38944 " 1318248056838059 (+19774):     launch_run_qemu\n"
38945 " 1318248061071167 (+4233108):   launch_end\n"
38946 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
38947 "device=0x1024e60\n"
38948 "\n"
38949 msgstr ""
38950
38951 #. type: =end
38952 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38953 msgid "html"
38954 msgstr ""
38955
38956 #. type: textblock
38957 #: ../src/guestfs.pod:2256
38958 msgid ""
38959 "<!-- old anchor for the next section --> <a "
38960 "name=\"state_machine_and_low_level_event_api\"/>"
38961 msgstr ""
38962
38963 #. type: =head1
38964 #: ../src/guestfs.pod:2261
38965 msgid "ARCHITECTURE"
38966 msgstr ""
38967
38968 #. type: textblock
38969 #: ../src/guestfs.pod:2263
38970 msgid ""
38971 "Internally, libguestfs is implemented by running an appliance (a special "
38972 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38973 "process of the main program."
38974 msgstr ""
38975
38976 #. type: verbatim
38977 #: ../src/guestfs.pod:2267
38978 #, no-wrap
38979 msgid ""
38980 "  ___________________\n"
38981 " /                   \\\n"
38982 " | main program      |\n"
38983 " |                   |\n"
38984 " |                   |           child process / appliance\n"
38985 " |                   |           __________________________\n"
38986 " |                   |          / qemu                     \\\n"
38987 " +-------------------+   RPC    |      +-----------------+ |\n"
38988 " | libguestfs     <--------------------> guestfsd        | |\n"
38989 " |                   |          |      +-----------------+ |\n"
38990 " \\___________________/          |      | Linux kernel    | |\n"
38991 "                                |      +--^--------------+ |\n"
38992 "                                \\_________|________________/\n"
38993 "                                          |\n"
38994 "                                   _______v______\n"
38995 "                                  /              \\\n"
38996 "                                  | Device or    |\n"
38997 "                                  | disk image   |\n"
38998 "                                  \\______________/\n"
38999 "\n"
39000 msgstr ""
39001
39002 #. type: textblock
39003 #: ../src/guestfs.pod:2287
39004 msgid ""
39005 "The library, linked to the main program, creates the child process and hence "
39006 "the appliance in the L</guestfs_launch> function."
39007 msgstr ""
39008
39009 #. type: textblock
39010 #: ../src/guestfs.pod:2290
39011 msgid ""
39012 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39013 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39014 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39015 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39016 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39017 "attached to the qemu process which translates device access by the "
39018 "appliance's Linux kernel into accesses to the image."
39019 msgstr ""
39020
39021 #. type: textblock
39022 #: ../src/guestfs.pod:2299
39023 msgid ""
39024 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39025 "Although the disk image you are attached to might also be used by some "
39026 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39027 "care if both libguestfs's qemu process and your virtual machine are trying "
39028 "to update the disk image at the same time, since these usually results in "
39029 "massive disk corruption)."
39030 msgstr ""
39031
39032 #. type: =head1
39033 #: ../src/guestfs.pod:2306
39034 msgid "STATE MACHINE"
39035 msgstr ""
39036
39037 #. type: textblock
39038 #: ../src/guestfs.pod:2308
39039 msgid "libguestfs uses a state machine to model the child process:"
39040 msgstr ""
39041
39042 #. type: verbatim
39043 #: ../src/guestfs.pod:2310
39044 #, no-wrap
39045 msgid ""
39046 "                         |\n"
39047 "                    guestfs_create\n"
39048 "                         |\n"
39049 "                         |\n"
39050 "                     ____V_____\n"
39051 "                    /          \\\n"
39052 "                    |  CONFIG  |\n"
39053 "                    \\__________/\n"
39054 "                     ^ ^   ^  \\\n"
39055 "                    /  |    \\  \\ guestfs_launch\n"
39056 "                   /   |    _\\__V______\n"
39057 "                  /    |   /           \\\n"
39058 "                 /     |   | LAUNCHING |\n"
39059 "                /      |   \\___________/\n"
39060 "               /       |       /\n"
39061 "              /        |  guestfs_launch\n"
39062 "             /         |     /\n"
39063 "    ______  /        __|____V\n"
39064 "   /      \\ ------> /        \\\n"
39065 "   | BUSY |         | READY  |\n"
39066 "   \\______/ <------ \\________/\n"
39067 "\n"
39068 msgstr ""
39069
39070 #. type: textblock
39071 #: ../src/guestfs.pod:2332
39072 msgid ""
39073 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39074 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39075 "(3) alternating between READY and BUSY as commands are issued to, and "
39076 "carried out by, the child process."
39077 msgstr ""
39078
39079 #. type: textblock
39080 #: ../src/guestfs.pod:2337
39081 msgid ""
39082 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39083 "asynchronously at any time (eg. due to some internal error), and that causes "
39084 "the state to transition back to CONFIG."
39085 msgstr ""
39086
39087 #. type: textblock
39088 #: ../src/guestfs.pod:2341
39089 msgid ""
39090 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39091 "issued when in the CONFIG state."
39092 msgstr ""
39093
39094 #. type: textblock
39095 #: ../src/guestfs.pod:2344
39096 msgid ""
39097 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39098 "L</guestfs_launch> blocks until the child process is READY to accept "
39099 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39100 "moves the state from CONFIG to LAUNCHING while it is running."
39101 msgstr ""
39102
39103 #. type: textblock
39104 #: ../src/guestfs.pod:2350
39105 msgid ""
39106 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39107 "state.  These API calls block waiting for the command to be carried out "
39108 "(ie. the state to transition to BUSY and then back to READY).  There are no "
39109 "non-blocking versions, and no way to issue more than one command per handle "
39110 "at the same time."
39111 msgstr ""
39112
39113 #. type: textblock
39114 #: ../src/guestfs.pod:2356
39115 msgid ""
39116 "Finally, the child process sends asynchronous messages back to the main "
39117 "program, such as kernel log messages.  You can register a callback to "
39118 "receive these messages."
39119 msgstr ""
39120
39121 #. type: =head1
39122 #: ../src/guestfs.pod:2360
39123 msgid "INTERNALS"
39124 msgstr ""
39125
39126 #. type: =head2
39127 #: ../src/guestfs.pod:2362
39128 msgid "APPLIANCE BOOT PROCESS"
39129 msgstr ""
39130
39131 #. type: textblock
39132 #: ../src/guestfs.pod:2364
39133 msgid ""
39134 "This process has evolved and continues to evolve.  The description here "
39135 "corresponds only to the current version of libguestfs and is provided for "
39136 "information only."
39137 msgstr ""
39138
39139 #. type: textblock
39140 #: ../src/guestfs.pod:2368
39141 msgid ""
39142 "In order to follow the stages involved below, enable libguestfs debugging "
39143 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39144 msgstr ""
39145
39146 #. type: =item
39147 #: ../src/guestfs.pod:2373
39148 msgid "Create the appliance"
39149 msgstr ""
39150
39151 #. type: textblock
39152 #: ../src/guestfs.pod:2375
39153 msgid ""
39154 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39155 "initrd and the appliance."
39156 msgstr ""
39157
39158 #. type: textblock
39159 #: ../src/guestfs.pod:2378
39160 msgid ""
39161 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39162 "directory if C<TMPDIR> is set)."
39163 msgstr ""
39164
39165 #. type: textblock
39166 #: ../src/guestfs.pod:2381
39167 msgid ""
39168 "For a complete description of how the appliance is created and cached, read "
39169 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39170 msgstr ""
39171
39172 #. type: =item
39173 #: ../src/guestfs.pod:2385
39174 msgid "Start qemu and boot the kernel"
39175 msgstr ""
39176
39177 #. type: textblock
39178 #: ../src/guestfs.pod:2387
39179 msgid "qemu is invoked to boot the kernel."
39180 msgstr ""
39181
39182 #. type: =item
39183 #: ../src/guestfs.pod:2389
39184 msgid "Run the initrd"
39185 msgstr ""
39186
39187 #. type: textblock
39188 #: ../src/guestfs.pod:2391
39189 msgid ""
39190 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39191 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39192 "order that the appliance itself can be mounted and started."
39193 msgstr ""
39194
39195 #. type: textblock
39196 #: ../src/guestfs.pod:2395
39197 msgid ""
39198 "The initrd is a cpio archive called "
39199 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
39200 msgstr ""
39201
39202 #. type: textblock
39203 #: ../src/guestfs.pod:2398
39204 msgid ""
39205 "When the initrd has started you will see messages showing that kernel "
39206 "modules are being loaded, similar to this:"
39207 msgstr ""
39208
39209 #. type: verbatim
39210 #: ../src/guestfs.pod:2401
39211 #, no-wrap
39212 msgid ""
39213 " febootstrap: ext2 mini initrd starting up\n"
39214 " febootstrap: mounting /sys\n"
39215 " febootstrap: internal insmod libcrc32c.ko\n"
39216 " febootstrap: internal insmod crc32c-intel.ko\n"
39217 "\n"
39218 msgstr ""
39219
39220 #. type: =item
39221 #: ../src/guestfs.pod:2406
39222 msgid "Find and mount the appliance device"
39223 msgstr ""
39224
39225 #. type: textblock
39226 #: ../src/guestfs.pod:2408
39227 msgid ""
39228 "The appliance is a sparse file containing an ext2 filesystem which contains "
39229 "a familiar (although reduced in size) Linux operating system.  It would "
39230 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39231 msgstr ""
39232
39233 #. type: textblock
39234 #: ../src/guestfs.pod:2412
39235 msgid ""
39236 "The regular disks being inspected by libguestfs are the first devices "
39237 "exposed by qemu (eg. as C</dev/vda>)."
39238 msgstr ""
39239
39240 #. type: textblock
39241 #: ../src/guestfs.pod:2415
39242 msgid ""
39243 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39244 "there was only one regular disk)."
39245 msgstr ""
39246
39247 #. type: textblock
39248 #: ../src/guestfs.pod:2418
39249 msgid ""
39250 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39251 "and switch root into the appliance, and run C</init> from the appliance."
39252 msgstr ""
39253
39254 #. type: textblock
39255 #: ../src/guestfs.pod:2422
39256 msgid "If this works successfully you will see messages such as:"
39257 msgstr ""
39258
39259 #. type: verbatim
39260 #: ../src/guestfs.pod:2424
39261 #, no-wrap
39262 msgid ""
39263 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39264 " febootstrap: creating /dev/root as block special 252:16\n"
39265 " febootstrap: mounting new root on /root\n"
39266 " febootstrap: chroot\n"
39267 " Starting /init script ...\n"
39268 "\n"
39269 msgstr ""
39270
39271 #. type: textblock
39272 #: ../src/guestfs.pod:2430
39273 msgid ""
39274 "Note that C<Starting /init script ...> indicates that the appliance's init "
39275 "script is now running."
39276 msgstr ""
39277
39278 #. type: =item
39279 #: ../src/guestfs.pod:2433
39280 msgid "Initialize the appliance"
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../src/guestfs.pod:2435
39285 msgid ""
39286 "The appliance itself now initializes itself.  This involves starting certain "
39287 "processes like C<udev>, possibly printing some debug information, and "
39288 "finally running the daemon (C<guestfsd>)."
39289 msgstr ""
39290
39291 #. type: =item
39292 #: ../src/guestfs.pod:2439
39293 msgid "The daemon"
39294 msgstr ""
39295
39296 #. type: textblock
39297 #: ../src/guestfs.pod:2441
39298 msgid ""
39299 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39300 "should see:"
39301 msgstr ""
39302
39303 #. type: verbatim
39304 #: ../src/guestfs.pod:2444
39305 #, no-wrap
39306 msgid ""
39307 " verbose daemon enabled\n"
39308 "\n"
39309 msgstr ""
39310
39311 #. type: textblock
39312 #: ../src/guestfs.pod:2446
39313 msgid ""
39314 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39315 "connected on the other end to the library."
39316 msgstr ""
39317
39318 #. type: textblock
39319 #: ../src/guestfs.pod:2449
39320 msgid ""
39321 "The daemon connects to this port (and hence to the library) and sends a four "
39322 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39323 "protocol (see below)."
39324 msgstr ""
39325
39326 #. type: =head2
39327 #: ../src/guestfs.pod:2455
39328 msgid "COMMUNICATION PROTOCOL"
39329 msgstr ""
39330
39331 #. type: textblock
39332 #: ../src/guestfs.pod:2457
39333 msgid ""
39334 "Don't rely on using this protocol directly.  This section documents how it "
39335 "currently works, but it may change at any time."
39336 msgstr ""
39337
39338 #. type: textblock
39339 #: ../src/guestfs.pod:2460
39340 msgid ""
39341 "The protocol used to talk between the library and the daemon running inside "
39342 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39343 "1014, RFC 1832, RFC 4506)."
39344 msgstr ""
39345
39346 #. type: textblock
39347 #: ../src/guestfs.pod:2464
39348 msgid ""
39349 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39350 "this file is automatically generated)."
39351 msgstr ""
39352
39353 #. type: textblock
39354 #: ../src/guestfs.pod:2467
39355 msgid ""
39356 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39357 "and C<FileOut> parameters, which are handled with very simple request/reply "
39358 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39359 "parameters, which use the same request and reply messages, but they may also "
39360 "be followed by files sent using a chunked encoding."
39361 msgstr ""
39362
39363 #. type: =head3
39364 #: ../src/guestfs.pod:2474
39365 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39366 msgstr ""
39367
39368 #. type: textblock
39369 #: ../src/guestfs.pod:2476
39370 msgid "For ordinary functions, the request message is:"
39371 msgstr ""
39372
39373 #. type: verbatim
39374 #: ../src/guestfs.pod:2478
39375 #, no-wrap
39376 msgid ""
39377 " total length (header + arguments,\n"
39378 "      but not including the length word itself)\n"
39379 " struct guestfs_message_header (encoded as XDR)\n"
39380 " struct guestfs_<foo>_args (encoded as XDR)\n"
39381 "\n"
39382 msgstr ""
39383
39384 #. type: textblock
39385 #: ../src/guestfs.pod:2483
39386 msgid ""
39387 "The total length field allows the daemon to allocate a fixed size buffer "
39388 "into which it slurps the rest of the message.  As a result, the total length "
39389 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39390 "effective size of any request is limited to somewhere under this size."
39391 msgstr ""
39392
39393 #. type: textblock
39394 #: ../src/guestfs.pod:2489
39395 msgid ""
39396 "Note also that many functions don't take any arguments, in which case the "
39397 "C<guestfs_I<foo>_args> is completely omitted."
39398 msgstr ""
39399
39400 #. type: textblock
39401 #: ../src/guestfs.pod:2492
39402 msgid ""
39403 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39404 "receiver knows what type of args structure to expect, or none at all."
39405 msgstr ""
39406
39407 #. type: textblock
39408 #: ../src/guestfs.pod:2496
39409 msgid ""
39410 "For functions that take optional arguments, the optional arguments are "
39411 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39412 "arguments.  A bitmask in the header indicates which optional arguments are "
39413 "meaningful.  The bitmask is also checked to see if it contains bits set "
39414 "which the daemon does not know about (eg. if more optional arguments were "
39415 "added in a later version of the library), and this causes the call to be "
39416 "rejected."
39417 msgstr ""
39418
39419 #. type: textblock
39420 #: ../src/guestfs.pod:2504
39421 msgid "The reply message for ordinary functions is:"
39422 msgstr ""
39423
39424 #. type: verbatim
39425 #: ../src/guestfs.pod:2506
39426 #, no-wrap
39427 msgid ""
39428 " total length (header + ret,\n"
39429 "      but not including the length word itself)\n"
39430 " struct guestfs_message_header (encoded as XDR)\n"
39431 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39432 "\n"
39433 msgstr ""
39434
39435 #. type: textblock
39436 #: ../src/guestfs.pod:2511
39437 msgid ""
39438 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39439 "functions that return no formal return values."
39440 msgstr ""
39441
39442 #. type: textblock
39443 #: ../src/guestfs.pod:2514
39444 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39445 msgstr ""
39446
39447 #. type: textblock
39448 #: ../src/guestfs.pod:2517
39449 msgid ""
39450 "In the case of an error, a flag is set in the header, and the reply message "
39451 "is slightly changed:"
39452 msgstr ""
39453
39454 #. type: verbatim
39455 #: ../src/guestfs.pod:2520
39456 #, no-wrap
39457 msgid ""
39458 " total length (header + error,\n"
39459 "      but not including the length word itself)\n"
39460 " struct guestfs_message_header (encoded as XDR)\n"
39461 " struct guestfs_message_error (encoded as XDR)\n"
39462 "\n"
39463 msgstr ""
39464
39465 #. type: textblock
39466 #: ../src/guestfs.pod:2525
39467 msgid ""
39468 "The C<guestfs_message_error> structure contains the error message as a "
39469 "string."
39470 msgstr ""
39471
39472 #. type: =head3
39473 #: ../src/guestfs.pod:2528
39474 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39475 msgstr ""
39476
39477 #. type: textblock
39478 #: ../src/guestfs.pod:2530
39479 msgid ""
39480 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39481 "The normal request message is sent (see above).  However this is followed by "
39482 "a sequence of file chunks."
39483 msgstr ""
39484
39485 #. type: verbatim
39486 #: ../src/guestfs.pod:2534
39487 #, no-wrap
39488 msgid ""
39489 " total length (header + arguments,\n"
39490 "      but not including the length word itself,\n"
39491 "      and not including the chunks)\n"
39492 " struct guestfs_message_header (encoded as XDR)\n"
39493 " struct guestfs_<foo>_args (encoded as XDR)\n"
39494 " sequence of chunks for FileIn param #0\n"
39495 " sequence of chunks for FileIn param #1 etc.\n"
39496 "\n"
39497 msgstr ""
39498
39499 #. type: textblock
39500 #: ../src/guestfs.pod:2542
39501 msgid "The \"sequence of chunks\" is:"
39502 msgstr ""
39503
39504 #. type: verbatim
39505 #: ../src/guestfs.pod:2544
39506 #, no-wrap
39507 msgid ""
39508 " length of chunk (not including length word itself)\n"
39509 " struct guestfs_chunk (encoded as XDR)\n"
39510 " length of chunk\n"
39511 " struct guestfs_chunk (encoded as XDR)\n"
39512 "   ...\n"
39513 " length of chunk\n"
39514 " struct guestfs_chunk (with data.data_len == 0)\n"
39515 "\n"
39516 msgstr ""
39517
39518 #. type: textblock
39519 #: ../src/guestfs.pod:2552
39520 msgid ""
39521 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39522 "is set in the final chunk to indicate either successful completion or early "
39523 "cancellation."
39524 msgstr ""
39525
39526 #. type: textblock
39527 #: ../src/guestfs.pod:2556
39528 msgid ""
39529 "At time of writing there are no functions that have more than one FileIn "
39530 "parameter.  However this is (theoretically) supported, by sending the "
39531 "sequence of chunks for each FileIn parameter one after another (from left to "
39532 "right)."
39533 msgstr ""
39534
39535 #. type: textblock
39536 #: ../src/guestfs.pod:2561
39537 msgid ""
39538 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39539 "transfer.  The library does this by sending a chunk with a special flag set "
39540 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39541 "RPC, does I<not> send any reply, and goes back to reading the next request."
39542 msgstr ""
39543
39544 #. type: textblock
39545 #: ../src/guestfs.pod:2567
39546 msgid ""
39547 "The daemon may also cancel.  It does this by writing a special word "
39548 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39549 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39550 "cancel chunk).  The special word is chosen so that even if cancellation "
39551 "happens right at the end of the transfer (after the library has finished "
39552 "writing and has started listening for the reply), the \"spurious\" cancel "
39553 "flag will not be confused with the reply message."
39554 msgstr ""
39555
39556 #. type: textblock
39557 #: ../src/guestfs.pod:2576
39558 msgid ""
39559 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39560 "limit), and also files where the size is not known in advance (eg. from "
39561 "pipes or sockets).  However the chunks are rather small "
39562 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39563 "to keep much in memory."
39564 msgstr ""
39565
39566 #. type: =head3
39567 #: ../src/guestfs.pod:2582
39568 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39569 msgstr ""
39570
39571 #. type: textblock
39572 #: ../src/guestfs.pod:2584
39573 msgid ""
39574 "The protocol for FileOut parameters is exactly the same as for FileIn "
39575 "parameters, but with the roles of daemon and library reversed."
39576 msgstr ""
39577
39578 #. type: verbatim
39579 #: ../src/guestfs.pod:2587
39580 #, no-wrap
39581 msgid ""
39582 " total length (header + ret,\n"
39583 "      but not including the length word itself,\n"
39584 "      and not including the chunks)\n"
39585 " struct guestfs_message_header (encoded as XDR)\n"
39586 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39587 " sequence of chunks for FileOut param #0\n"
39588 " sequence of chunks for FileOut param #1 etc.\n"
39589 "\n"
39590 msgstr ""
39591
39592 #. type: =head3
39593 #: ../src/guestfs.pod:2595
39594 msgid "INITIAL MESSAGE"
39595 msgstr ""
39596
39597 #. type: textblock
39598 #: ../src/guestfs.pod:2597
39599 msgid ""
39600 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39601 "which indicates that the guest and daemon is alive.  This is what "
39602 "L</guestfs_launch> waits for."
39603 msgstr ""
39604
39605 #. type: =head3
39606 #: ../src/guestfs.pod:2601
39607 msgid "PROGRESS NOTIFICATION MESSAGES"
39608 msgstr ""
39609
39610 #. type: textblock
39611 #: ../src/guestfs.pod:2603
39612 msgid ""
39613 "The daemon may send progress notification messages at any time.  These are "
39614 "distinguished by the normal length word being replaced by "
39615 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39616 msgstr ""
39617
39618 #. type: textblock
39619 #: ../src/guestfs.pod:2607
39620 msgid ""
39621 "The library turns them into progress callbacks (see "
39622 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
39623 "them if not."
39624 msgstr ""
39625
39626 #. type: textblock
39627 #: ../src/guestfs.pod:2611
39628 msgid ""
39629 "The daemon self-limits the frequency of progress messages it sends (see "
39630 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39631 "messages."
39632 msgstr ""
39633
39634 #. type: =head1
39635 #: ../src/guestfs.pod:2615
39636 msgid "LIBGUESTFS VERSION NUMBERS"
39637 msgstr ""
39638
39639 #. type: textblock
39640 #: ../src/guestfs.pod:2617
39641 msgid ""
39642 "Since April 2010, libguestfs has started to make separate development and "
39643 "stable releases, along with corresponding branches in our git repository.  "
39644 "These separate releases can be identified by version number:"
39645 msgstr ""
39646
39647 #. type: verbatim
39648 #: ../src/guestfs.pod:2622
39649 #, no-wrap
39650 msgid ""
39651 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39652 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39653 "       |\n"
39654 "       v\n"
39655 " 1  .  3  .  5\n"
39656 " ^           ^\n"
39657 " |           |\n"
39658 " |           `-------- sub-version\n"
39659 " |\n"
39660 " `------ always '1' because we don't change the ABI\n"
39661 "\n"
39662 msgstr ""
39663
39664 #. type: textblock
39665 #: ../src/guestfs.pod:2633
39666 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39667 msgstr ""
39668
39669 #. type: textblock
39670 #: ../src/guestfs.pod:2635
39671 msgid ""
39672 "As time passes we cherry pick fixes from the development branch and backport "
39673 "those into the stable branch, the effect being that the stable branch should "
39674 "get more stable and less buggy over time.  So the stable releases are ideal "
39675 "for people who don't need new features but would just like the software to "
39676 "work."
39677 msgstr ""
39678
39679 #. type: textblock
39680 #: ../src/guestfs.pod:2641
39681 msgid "Our criteria for backporting changes are:"
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../src/guestfs.pod:2647
39686 msgid ""
39687 "Documentation changes which don't affect any code are backported unless the "
39688 "documentation refers to a future feature which is not in stable."
39689 msgstr ""
39690
39691 #. type: textblock
39692 #: ../src/guestfs.pod:2653
39693 msgid ""
39694 "Bug fixes which are not controversial, fix obvious problems, and have been "
39695 "well tested are backported."
39696 msgstr ""
39697
39698 #. type: textblock
39699 #: ../src/guestfs.pod:2658
39700 msgid ""
39701 "Simple rearrangements of code which shouldn't affect how it works get "
39702 "backported.  This is so that the code in the two branches doesn't get too "
39703 "far out of step, allowing us to backport future fixes more easily."
39704 msgstr ""
39705
39706 #. type: textblock
39707 #: ../src/guestfs.pod:2664
39708 msgid ""
39709 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39710 "exceptional case: the new feature is required in order to implement an "
39711 "important bug fix."
39712 msgstr ""
39713
39714 #. type: textblock
39715 #: ../src/guestfs.pod:2670
39716 msgid ""
39717 "A new stable branch starts when we think the new features in development are "
39718 "substantial and compelling enough over the current stable branch to warrant "
39719 "it.  When that happens we create new stable and development versions 1.N.0 "
39720 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39721 "stable at this point, but by backporting fixes from development, that branch "
39722 "will stabilize over time."
39723 msgstr ""
39724
39725 #. type: =head1
39726 #: ../src/guestfs.pod:2678
39727 msgid "EXTENDING LIBGUESTFS"
39728 msgstr ""
39729
39730 #. type: =head2
39731 #: ../src/guestfs.pod:2680
39732 msgid "ADDING A NEW API ACTION"
39733 msgstr ""
39734
39735 #. type: textblock
39736 #: ../src/guestfs.pod:2682
39737 msgid ""
39738 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39739 "documentation) are generated, and this makes it easy to extend the "
39740 "libguestfs API."
39741 msgstr ""
39742
39743 #. type: textblock
39744 #: ../src/guestfs.pod:2686
39745 msgid "To add a new API action there are two changes:"
39746 msgstr ""
39747
39748 #. type: textblock
39749 #: ../src/guestfs.pod:2692
39750 msgid ""
39751 "You need to add a description of the call (name, parameters, return type, "
39752 "tests, documentation) to C<generator/generator_actions.ml>."
39753 msgstr ""
39754
39755 #. type: textblock
39756 #: ../src/guestfs.pod:2695
39757 msgid ""
39758 "There are two sorts of API action, depending on whether the call goes "
39759 "through to the daemon in the appliance, or is serviced entirely by the "
39760 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39761 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39762 "an example of the latter, since a trace flag is maintained in the handle and "
39763 "all tracing is done on the library side."
39764 msgstr ""
39765
39766 #. type: textblock
39767 #: ../src/guestfs.pod:2703
39768 msgid ""
39769 "Most new actions are of the first type, and get added to the "
39770 "C<daemon_functions> list.  Each function has a unique procedure number used "
39771 "in the RPC protocol which is assigned to that action when we publish "
39772 "libguestfs and cannot be reused.  Take the latest procedure number and "
39773 "increment it."
39774 msgstr ""
39775
39776 #. type: textblock
39777 #: ../src/guestfs.pod:2709
39778 msgid ""
39779 "For library-only actions of the second type, add to the "
39780 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39781 "library and do not travel over the RPC mechanism to the daemon, these "
39782 "functions do not need a procedure number, and so the procedure number is set "
39783 "to C<-1>."
39784 msgstr ""
39785
39786 #. type: textblock
39787 #: ../src/guestfs.pod:2717
39788 msgid "Implement the action (in C):"
39789 msgstr ""
39790
39791 #. type: textblock
39792 #: ../src/guestfs.pod:2719
39793 msgid ""
39794 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39795 "C<daemon/> directory."
39796 msgstr ""
39797
39798 #. type: textblock
39799 #: ../src/guestfs.pod:2722
39800 msgid ""
39801 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39802 "(note: double underscore) in the C<src/> directory."
39803 msgstr ""
39804
39805 #. type: textblock
39806 #: ../src/guestfs.pod:2725
39807 msgid "In either case, use another function as an example of what to do."
39808 msgstr ""
39809
39810 #. type: textblock
39811 #: ../src/guestfs.pod:2729
39812 msgid "After making these changes, use C<make> to compile."
39813 msgstr ""
39814
39815 #. type: textblock
39816 #: ../src/guestfs.pod:2731
39817 msgid ""
39818 "Note that you don't need to implement the RPC, language bindings, manual "
39819 "pages or anything else.  It's all automatically generated from the OCaml "
39820 "description."
39821 msgstr ""
39822
39823 #. type: =head2
39824 #: ../src/guestfs.pod:2735
39825 msgid "ADDING TESTS FOR AN API ACTION"
39826 msgstr ""
39827
39828 #. type: textblock
39829 #: ../src/guestfs.pod:2737
39830 msgid ""
39831 "You can supply zero or as many tests as you want per API call.  The tests "
39832 "can either be added as part of the API description "
39833 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
39834 "drop a script into C<regressions/>.  Note that adding a script to "
39835 "C<regressions/> is slower, so if possible use the first method."
39836 msgstr ""
39837
39838 #. type: textblock
39839 #: ../src/guestfs.pod:2743
39840 msgid ""
39841 "The following describes the test environment used when you add an API test "
39842 "in C<generator_actions.ml>."
39843 msgstr ""
39844
39845 #. type: textblock
39846 #: ../src/guestfs.pod:2746
39847 msgid "The test environment has 4 block devices:"
39848 msgstr ""
39849
39850 #. type: =item
39851 #: ../src/guestfs.pod:2750
39852 msgid "C</dev/sda> 500MB"
39853 msgstr ""
39854
39855 #. type: textblock
39856 #: ../src/guestfs.pod:2752
39857 msgid "General block device for testing."
39858 msgstr ""
39859
39860 #. type: =item
39861 #: ../src/guestfs.pod:2754
39862 msgid "C</dev/sdb> 50MB"
39863 msgstr ""
39864
39865 #. type: textblock
39866 #: ../src/guestfs.pod:2756
39867 msgid ""
39868 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39869 "operations."
39870 msgstr ""
39871
39872 #. type: =item
39873 #: ../src/guestfs.pod:2759
39874 msgid "C</dev/sdc> 10MB"
39875 msgstr ""
39876
39877 #. type: textblock
39878 #: ../src/guestfs.pod:2761
39879 msgid "Used in a few tests where two block devices are needed."
39880 msgstr ""
39881
39882 #. type: =item
39883 #: ../src/guestfs.pod:2763
39884 msgid "C</dev/sdd>"
39885 msgstr ""
39886
39887 #. type: textblock
39888 #: ../src/guestfs.pod:2765
39889 msgid "ISO with fixed content (see C<images/test.iso>)."
39890 msgstr ""
39891
39892 #. type: textblock
39893 #: ../src/guestfs.pod:2769
39894 msgid ""
39895 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39896 "appliance and block devices are reused between tests.  So don't try testing "
39897 "L</guestfs_kill_subprocess> :-x"
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../src/guestfs.pod:2773
39902 msgid ""
39903 "Each test starts with an initial scenario, selected using one of the "
39904 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39905 "initialize the disks mentioned above in a particular way as documented in "
39906 "C<generator_types.ml>.  You should not assume anything about the previous "
39907 "contents of other disks that are not initialized."
39908 msgstr ""
39909
39910 #. type: textblock
39911 #: ../src/guestfs.pod:2779
39912 msgid ""
39913 "You can add a prerequisite clause to any individual test.  This is a "
39914 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
39915 "if testing a command which might not work on all variations of libguestfs "
39916 "builds.  A test that has prerequisite of C<Always> means to run "
39917 "unconditionally."
39918 msgstr ""
39919
39920 #. type: textblock
39921 #: ../src/guestfs.pod:2785
39922 msgid ""
39923 "In addition, packagers can skip individual tests by setting environment "
39924 "variables before running C<make check>."
39925 msgstr ""
39926
39927 #. type: verbatim
39928 #: ../src/guestfs.pod:2788
39929 #, no-wrap
39930 msgid ""
39931 " SKIP_TEST_<CMD>_<NUM>=1\n"
39932 "\n"
39933 msgstr ""
39934
39935 #. type: textblock
39936 #: ../src/guestfs.pod:2790
39937 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39938 msgstr ""
39939
39940 #. type: verbatim
39941 #: ../src/guestfs.pod:2794
39942 #, no-wrap
39943 msgid ""
39944 " SKIP_TEST_<CMD>=1\n"
39945 "\n"
39946 msgstr ""
39947
39948 #. type: textblock
39949 #: ../src/guestfs.pod:2796
39950 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../src/guestfs.pod:2798
39955 msgid "Packagers can run only certain tests by setting for example:"
39956 msgstr ""
39957
39958 #. type: verbatim
39959 #: ../src/guestfs.pod:2800
39960 #, no-wrap
39961 msgid ""
39962 " TEST_ONLY=\"vfs_type zerofree\"\n"
39963 "\n"
39964 msgstr ""
39965
39966 #. type: textblock
39967 #: ../src/guestfs.pod:2802
39968 msgid ""
39969 "See C<capitests/tests.c> for more details of how these environment variables "
39970 "work."
39971 msgstr ""
39972
39973 #. type: =head2
39974 #: ../src/guestfs.pod:2805
39975 msgid "DEBUGGING NEW API ACTIONS"
39976 msgstr ""
39977
39978 #. type: textblock
39979 #: ../src/guestfs.pod:2807
39980 msgid "Test new actions work before submitting them."
39981 msgstr ""
39982
39983 #. type: textblock
39984 #: ../src/guestfs.pod:2809
39985 msgid "You can use guestfish to try out new commands."
39986 msgstr ""
39987
39988 #. type: textblock
39989 #: ../src/guestfs.pod:2811
39990 msgid ""
39991 "Debugging the daemon is a problem because it runs inside a minimal "
39992 "environment.  However you can fprintf messages in the daemon to stderr, and "
39993 "they will show up if you use C<guestfish -v>."
39994 msgstr ""
39995
39996 #. type: =head2
39997 #: ../src/guestfs.pod:2815
39998 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39999 msgstr ""
40000
40001 #. type: textblock
40002 #: ../src/guestfs.pod:2817
40003 msgid ""
40004 "Our C source code generally adheres to some basic code-formatting "
40005 "conventions.  The existing code base is not totally consistent on this "
40006 "front, but we do prefer that contributed code be formatted similarly.  In "
40007 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40008 "indentation level, and other than that, follow the K&R style."
40009 msgstr ""
40010
40011 #. type: textblock
40012 #: ../src/guestfs.pod:2823
40013 msgid ""
40014 "If you use Emacs, add the following to one of one of your start-up files "
40015 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
40016 msgstr ""
40017
40018 #. type: verbatim
40019 #: ../src/guestfs.pod:2826
40020 #, no-wrap
40021 msgid ""
40022 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40023 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40024 " (add-hook 'find-file-hook\n"
40025 "     '(lambda () (if (and buffer-file-name\n"
40026 "                          (string-match \"/libguestfs\\\\>\"\n"
40027 "                              (buffer-file-name))\n"
40028 "                          (not (string-equal mode-name \"Change Log\"))\n"
40029 "                          (not (string-equal mode-name \"Makefile\")))\n"
40030 "                     (setq indent-tabs-mode nil))))\n"
40031 " \n"
40032 msgstr ""
40033
40034 #. type: verbatim
40035 #: ../src/guestfs.pod:2836
40036 #, no-wrap
40037 msgid ""
40038 " ;;; When editing C sources in libguestfs, use this style.\n"
40039 " (defun libguestfs-c-mode ()\n"
40040 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40041 "   (interactive)\n"
40042 "   (c-set-style \"K&R\")\n"
40043 "   (setq c-indent-level 2)\n"
40044 "   (setq c-basic-offset 2))\n"
40045 " (add-hook 'c-mode-hook\n"
40046 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40047 "                               (buffer-file-name))\n"
40048 "                           (libguestfs-c-mode))))\n"
40049 "\n"
40050 msgstr ""
40051
40052 #. type: textblock
40053 #: ../src/guestfs.pod:2848
40054 msgid "Enable warnings when compiling (and fix any problems this finds):"
40055 msgstr ""
40056
40057 #. type: verbatim
40058 #: ../src/guestfs.pod:2851
40059 #, no-wrap
40060 msgid ""
40061 " ./configure --enable-gcc-warnings\n"
40062 "\n"
40063 msgstr ""
40064
40065 #. type: textblock
40066 #: ../src/guestfs.pod:2853
40067 msgid "Useful targets are:"
40068 msgstr ""
40069
40070 #. type: verbatim
40071 #: ../src/guestfs.pod:2855
40072 #, no-wrap
40073 msgid ""
40074 " make syntax-check  # checks the syntax of the C code\n"
40075 " make check         # runs the test suite\n"
40076 "\n"
40077 msgstr ""
40078
40079 #. type: =head2
40080 #: ../src/guestfs.pod:2858
40081 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40082 msgstr ""
40083
40084 #. type: textblock
40085 #: ../src/guestfs.pod:2860
40086 msgid ""
40087 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40088 "which are used to do shell quoting."
40089 msgstr ""
40090
40091 #. type: =item
40092 #: ../src/guestfs.pod:2865
40093 msgid "%Q"
40094 msgstr ""
40095
40096 #. type: textblock
40097 #: ../src/guestfs.pod:2867
40098 msgid ""
40099 "Simple shell quoted string.  Any spaces or other shell characters are "
40100 "escaped for you."
40101 msgstr ""
40102
40103 #. type: =item
40104 #: ../src/guestfs.pod:2870
40105 msgid "%R"
40106 msgstr ""
40107
40108 #. type: textblock
40109 #: ../src/guestfs.pod:2872
40110 msgid ""
40111 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40112 "the sysroot."
40113 msgstr ""
40114
40115 #. type: verbatim
40116 #: ../src/guestfs.pod:2879
40117 #, no-wrap
40118 msgid ""
40119 " asprintf (&cmd, \"cat %R\", path);\n"
40120 "\n"
40121 msgstr ""
40122
40123 #. type: textblock
40124 #: ../src/guestfs.pod:2881
40125 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40126 msgstr ""
40127
40128 #. type: textblock
40129 #: ../src/guestfs.pod:2883
40130 msgid ""
40131 "I<Note:> Do I<not> use these when you are passing parameters to the "
40132 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
40133 "because they are not passed via the shell (instead, straight to exec).  You "
40134 "probably want to use the C<sysroot_path()> function however."
40135 msgstr ""
40136
40137 #. type: =head2
40138 #: ../src/guestfs.pod:2889
40139 msgid "SUBMITTING YOUR NEW API ACTIONS"
40140 msgstr ""
40141
40142 #. type: textblock
40143 #: ../src/guestfs.pod:2891
40144 msgid ""
40145 "Submit patches to the mailing list: "
40146 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
40147 "L<rjones@redhat.com>."
40148 msgstr ""
40149
40150 #. type: =head2
40151 #: ../src/guestfs.pod:2895
40152 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40153 msgstr ""
40154
40155 #. type: textblock
40156 #: ../src/guestfs.pod:2897
40157 msgid "We support i18n (gettext anyhow) in the library."
40158 msgstr ""
40159
40160 #. type: textblock
40161 #: ../src/guestfs.pod:2899
40162 msgid ""
40163 "However many messages come from the daemon, and we don't translate those at "
40164 "the moment.  One reason is that the appliance generally has all locale files "
40165 "removed from it, because they take up a lot of space.  So we'd have to readd "
40166 "some of those, as well as copying our PO files into the appliance."
40167 msgstr ""
40168
40169 #. type: textblock
40170 #: ../src/guestfs.pod:2905
40171 msgid ""
40172 "Debugging messages are never translated, since they are intended for the "
40173 "programmers."
40174 msgstr ""
40175
40176 #. type: =head2
40177 #: ../src/guestfs.pod:2908
40178 msgid "SOURCE CODE SUBDIRECTORIES"
40179 msgstr ""
40180
40181 #. type: =item
40182 #: ../src/guestfs.pod:2912
40183 msgid "C<align>"
40184 msgstr ""
40185
40186 #. type: textblock
40187 #: ../src/guestfs.pod:2914
40188 msgid "L<virt-alignment-scan(1)> command and documentation."
40189 msgstr ""
40190
40191 #. type: textblock
40192 #: ../src/guestfs.pod:2918
40193 msgid "The libguestfs appliance, build scripts and so on."
40194 msgstr ""
40195
40196 #. type: =item
40197 #: ../src/guestfs.pod:2920
40198 msgid "C<capitests>"
40199 msgstr ""
40200
40201 #. type: textblock
40202 #: ../src/guestfs.pod:2922
40203 msgid "Automated tests of the C API."
40204 msgstr ""
40205
40206 #. type: =item
40207 #: ../src/guestfs.pod:2924
40208 msgid "C<cat>"
40209 msgstr ""
40210
40211 #. type: textblock
40212 #: ../src/guestfs.pod:2926
40213 msgid ""
40214 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40215 "documentation."
40216 msgstr ""
40217
40218 #. type: =item
40219 #: ../src/guestfs.pod:2929
40220 msgid "C<caution>"
40221 msgstr ""
40222
40223 #. type: textblock
40224 #: ../src/guestfs.pod:2931
40225 msgid ""
40226 "Safety and liveness tests of components that libguestfs depends upon (not of "
40227 "libguestfs itself).  Mainly this is for qemu and the kernel."
40228 msgstr ""
40229
40230 #. type: =item
40231 #: ../src/guestfs.pod:2934
40232 msgid "C<clone>"
40233 msgstr ""
40234
40235 #. type: textblock
40236 #: ../src/guestfs.pod:2936
40237 msgid ""
40238 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40239 "command and documentation."
40240 msgstr ""
40241
40242 #. type: =item
40243 #: ../src/guestfs.pod:2939
40244 msgid "C<contrib>"
40245 msgstr ""
40246
40247 #. type: textblock
40248 #: ../src/guestfs.pod:2941
40249 msgid "Outside contributions, experimental parts."
40250 msgstr ""
40251
40252 #. type: =item
40253 #: ../src/guestfs.pod:2943
40254 msgid "C<daemon>"
40255 msgstr ""
40256
40257 #. type: textblock
40258 #: ../src/guestfs.pod:2945
40259 msgid ""
40260 "The daemon that runs inside the libguestfs appliance and carries out "
40261 "actions."
40262 msgstr ""
40263
40264 #. type: =item
40265 #: ../src/guestfs.pod:2948
40266 msgid "C<df>"
40267 msgstr ""
40268
40269 #. type: textblock
40270 #: ../src/guestfs.pod:2950
40271 msgid "L<virt-df(1)> command and documentation."
40272 msgstr ""
40273
40274 #. type: =item
40275 #: ../src/guestfs.pod:2952
40276 msgid "C<edit>"
40277 msgstr ""
40278
40279 #. type: textblock
40280 #: ../src/guestfs.pod:2954
40281 msgid "L<virt-edit(1)> command and documentation."
40282 msgstr ""
40283
40284 #. type: =item
40285 #: ../src/guestfs.pod:2956
40286 msgid "C<examples>"
40287 msgstr ""
40288
40289 #. type: textblock
40290 #: ../src/guestfs.pod:2958
40291 msgid "C API example code."
40292 msgstr ""
40293
40294 #. type: =item
40295 #: ../src/guestfs.pod:2960
40296 msgid "C<extratests>"
40297 msgstr ""
40298
40299 #. type: textblock
40300 #: ../src/guestfs.pod:2962
40301 msgid ""
40302 "Extra tests.  These are not run by default because they require special "
40303 "tools or configuration."
40304 msgstr ""
40305
40306 #. type: =item
40307 #: ../src/guestfs.pod:2965
40308 msgid "C<fish>"
40309 msgstr ""
40310
40311 #. type: textblock
40312 #: ../src/guestfs.pod:2967
40313 msgid ""
40314 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40315 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40316 "L<virt-tar-out(1)>."
40317 msgstr ""
40318
40319 #. type: =item
40320 #: ../src/guestfs.pod:2971
40321 msgid "C<fuse>"
40322 msgstr ""
40323
40324 #. type: textblock
40325 #: ../src/guestfs.pod:2973
40326 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40327 msgstr ""
40328
40329 #. type: =item
40330 #: ../src/guestfs.pod:2975
40331 msgid "C<generator>"
40332 msgstr ""
40333
40334 #. type: textblock
40335 #: ../src/guestfs.pod:2977
40336 msgid ""
40337 "The crucially important generator, used to automatically generate large "
40338 "amounts of boilerplate C code for things like RPC and bindings."
40339 msgstr ""
40340
40341 #. type: =item
40342 #: ../src/guestfs.pod:2980
40343 msgid "C<images>"
40344 msgstr ""
40345
40346 #. type: textblock
40347 #: ../src/guestfs.pod:2982
40348 msgid "Files used by the test suite."
40349 msgstr ""
40350
40351 #. type: textblock
40352 #: ../src/guestfs.pod:2984
40353 msgid "Some \"phony\" guest images which we test against."
40354 msgstr ""
40355
40356 #. type: =item
40357 #: ../src/guestfs.pod:2986
40358 msgid "C<inspector>"
40359 msgstr ""
40360
40361 #. type: textblock
40362 #: ../src/guestfs.pod:2988
40363 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40364 msgstr ""
40365
40366 #. type: =item
40367 #: ../src/guestfs.pod:2990
40368 msgid "C<logo>"
40369 msgstr ""
40370
40371 #. type: textblock
40372 #: ../src/guestfs.pod:2992
40373 msgid "Logo used on the website.  The fish is called Arthur by the way."
40374 msgstr ""
40375
40376 #. type: =item
40377 #: ../src/guestfs.pod:2994
40378 msgid "C<m4>"
40379 msgstr ""
40380
40381 #. type: textblock
40382 #: ../src/guestfs.pod:2996
40383 msgid "M4 macros used by autoconf."
40384 msgstr ""
40385
40386 #. type: =item
40387 #: ../src/guestfs.pod:2998
40388 msgid "C<po>"
40389 msgstr ""
40390
40391 #. type: textblock
40392 #: ../src/guestfs.pod:3000
40393 msgid "Translations of simple gettext strings."
40394 msgstr ""
40395
40396 #. type: =item
40397 #: ../src/guestfs.pod:3002
40398 msgid "C<po-docs>"
40399 msgstr ""
40400
40401 #. type: textblock
40402 #: ../src/guestfs.pod:3004
40403 msgid ""
40404 "The build infrastructure and PO files for translations of manpages and POD "
40405 "files.  Eventually this will be combined with the C<po> directory, but that "
40406 "is rather complicated."
40407 msgstr ""
40408
40409 #. type: =item
40410 #: ../src/guestfs.pod:3008
40411 msgid "C<regressions>"
40412 msgstr ""
40413
40414 #. type: textblock
40415 #: ../src/guestfs.pod:3010
40416 msgid "Regression tests."
40417 msgstr ""
40418
40419 #. type: =item
40420 #: ../src/guestfs.pod:3012
40421 msgid "C<rescue>"
40422 msgstr ""
40423
40424 #. type: textblock
40425 #: ../src/guestfs.pod:3014
40426 msgid "L<virt-rescue(1)> command and documentation."
40427 msgstr ""
40428
40429 #. type: =item
40430 #: ../src/guestfs.pod:3016
40431 msgid "C<resize>"
40432 msgstr ""
40433
40434 #. type: textblock
40435 #: ../src/guestfs.pod:3018
40436 msgid "L<virt-resize(1)> command and documentation."
40437 msgstr ""
40438
40439 #. type: =item
40440 #: ../src/guestfs.pod:3020
40441 msgid "C<sparsify>"
40442 msgstr ""
40443
40444 #. type: textblock
40445 #: ../src/guestfs.pod:3022
40446 msgid "L<virt-sparsify(1)> command and documentation."
40447 msgstr ""
40448
40449 #. type: =item
40450 #: ../src/guestfs.pod:3024
40451 msgid "C<src>"
40452 msgstr ""
40453
40454 #. type: textblock
40455 #: ../src/guestfs.pod:3026
40456 msgid "Source code to the C library."
40457 msgstr ""
40458
40459 #. type: =item
40460 #: ../src/guestfs.pod:3028
40461 msgid "C<tools>"
40462 msgstr ""
40463
40464 #. type: textblock
40465 #: ../src/guestfs.pod:3030
40466 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40467 msgstr ""
40468
40469 #. type: =item
40470 #: ../src/guestfs.pod:3032
40471 msgid "C<test-tool>"
40472 msgstr ""
40473
40474 #. type: textblock
40475 #: ../src/guestfs.pod:3034
40476 msgid ""
40477 "Test tool for end users to test if their qemu/kernel combination will work "
40478 "with libguestfs."
40479 msgstr ""
40480
40481 #. type: =item
40482 #: ../src/guestfs.pod:3037
40483 msgid "C<csharp>"
40484 msgstr ""
40485
40486 #. type: =item
40487 #: ../src/guestfs.pod:3039
40488 msgid "C<erlang>"
40489 msgstr ""
40490
40491 #. type: =item
40492 #: ../src/guestfs.pod:3041
40493 msgid "C<haskell>"
40494 msgstr ""
40495
40496 #. type: =item
40497 #: ../src/guestfs.pod:3043
40498 msgid "C<java>"
40499 msgstr ""
40500
40501 #. type: =item
40502 #: ../src/guestfs.pod:3045
40503 msgid "C<ocaml>"
40504 msgstr ""
40505
40506 #. type: =item
40507 #: ../src/guestfs.pod:3047
40508 msgid "C<php>"
40509 msgstr ""
40510
40511 #. type: =item
40512 #: ../src/guestfs.pod:3049
40513 msgid "C<perl>"
40514 msgstr ""
40515
40516 #. type: =item
40517 #: ../src/guestfs.pod:3051
40518 msgid "C<python>"
40519 msgstr ""
40520
40521 #. type: =item
40522 #: ../src/guestfs.pod:3053
40523 msgid "C<ruby>"
40524 msgstr ""
40525
40526 #. type: textblock
40527 #: ../src/guestfs.pod:3055
40528 msgid "Language bindings."
40529 msgstr ""
40530
40531 #. type: =head2
40532 #: ../src/guestfs.pod:3059
40533 msgid "MAKING A STABLE RELEASE"
40534 msgstr ""
40535
40536 #. type: textblock
40537 #: ../src/guestfs.pod:3061
40538 msgid ""
40539 "When we make a stable release, there are several steps documented here.  See "
40540 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40541 "branch policy."
40542 msgstr ""
40543
40544 #. type: textblock
40545 #: ../src/guestfs.pod:3069
40546 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40547 msgstr ""
40548
40549 #. type: textblock
40550 #: ../src/guestfs.pod:3074
40551 msgid "Finalize RELEASE-NOTES."
40552 msgstr ""
40553
40554 #. type: textblock
40555 #: ../src/guestfs.pod:3078
40556 msgid "Update ROADMAP."
40557 msgstr ""
40558
40559 #. type: textblock
40560 #: ../src/guestfs.pod:3082
40561 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40562 msgstr ""
40563
40564 #. type: textblock
40565 #: ../src/guestfs.pod:3086
40566 msgid "Push and pull from Transifex."
40567 msgstr ""
40568
40569 #. type: verbatim
40570 #: ../src/guestfs.pod:3090
40571 #, no-wrap
40572 msgid ""
40573 " tx push -s\n"
40574 "\n"
40575 msgstr ""
40576
40577 #. type: textblock
40578 #: ../src/guestfs.pod:3092
40579 msgid "to push the latest POT files to Transifex.  Then run:"
40580 msgstr ""
40581
40582 #. type: verbatim
40583 #: ../src/guestfs.pod:3094
40584 #, no-wrap
40585 msgid ""
40586 " ./tx-pull.sh\n"
40587 "\n"
40588 msgstr ""
40589
40590 #. type: textblock
40591 #: ../src/guestfs.pod:3096
40592 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40593 msgstr ""
40594
40595 #. type: textblock
40596 #: ../src/guestfs.pod:3100
40597 msgid ""
40598 "Create new stable and development directories under "
40599 "L<http://libguestfs.org/download>."
40600 msgstr ""
40601
40602 #. type: textblock
40603 #: ../src/guestfs.pod:3105
40604 msgid "Create the branch in git:"
40605 msgstr ""
40606
40607 #. type: verbatim
40608 #: ../src/guestfs.pod:3107
40609 #, no-wrap
40610 msgid ""
40611 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40612 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40613 " git branch stable-1.XX\n"
40614 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40615 "\n"
40616 msgstr ""
40617
40618 #. type: =head1
40619 #: ../src/guestfs.pod:3114
40620 msgid "LIMITS"
40621 msgstr ""
40622
40623 #. type: =head2
40624 #: ../src/guestfs.pod:3116
40625 msgid "PROTOCOL LIMITS"
40626 msgstr ""
40627
40628 #. type: textblock
40629 #: ../src/guestfs.pod:3118
40630 msgid ""
40631 "Internally libguestfs uses a message-based protocol to pass API calls and "
40632 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40633 "plenty more detail about this).  The maximum message size used by the "
40634 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40635 "aware of this limit.  The API calls which may be affected are individually "
40636 "documented, with a link back to this section of the documentation."
40637 msgstr ""
40638
40639 #. type: textblock
40640 #: ../src/guestfs.pod:3126
40641 msgid ""
40642 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40643 "a simple string.  Because this string is at some point internally encoded as "
40644 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40645 "the requested file is larger than this then you will get an error."
40646 msgstr ""
40647
40648 #. type: textblock
40649 #: ../src/guestfs.pod:3132
40650 msgid ""
40651 "In order to transfer large files into and out of the guest filesystem, you "
40652 "need to use particular calls that support this.  The sections L</UPLOADING> "
40653 "and L</DOWNLOADING> document how to do this."
40654 msgstr ""
40655
40656 #. type: textblock
40657 #: ../src/guestfs.pod:3136
40658 msgid ""
40659 "You might also consider mounting the disk image using our FUSE filesystem "
40660 "support (L<guestmount(1)>)."
40661 msgstr ""
40662
40663 #. type: =head2
40664 #: ../src/guestfs.pod:3139
40665 msgid "MAXIMUM NUMBER OF DISKS"
40666 msgstr ""
40667
40668 #. type: textblock
40669 #: ../src/guestfs.pod:3141
40670 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40671 msgstr ""
40672
40673 #. type: textblock
40674 #: ../src/guestfs.pod:3144
40675 msgid ""
40676 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40677 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40678 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40679 "purposes."
40680 msgstr ""
40681
40682 #. type: textblock
40683 #: ../src/guestfs.pod:3149
40684 msgid ""
40685 "We are working to substantially raise this limit in future versions but it "
40686 "requires complex changes to qemu."
40687 msgstr ""
40688
40689 #. type: textblock
40690 #: ../src/guestfs.pod:3152
40691 msgid ""
40692 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40693 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40694 "requires changes to qemu."
40695 msgstr ""
40696
40697 #. type: =head2
40698 #: ../src/guestfs.pod:3156
40699 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40700 msgstr ""
40701
40702 #. type: textblock
40703 #: ../src/guestfs.pod:3158
40704 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40705 msgstr ""
40706
40707 #. type: textblock
40708 #: ../src/guestfs.pod:3160
40709 msgid ""
40710 "This is because it reserves 4 bits for the minor device number (thus "
40711 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
40712 msgstr ""
40713
40714 #. type: textblock
40715 #: ../src/guestfs.pod:3163
40716 msgid ""
40717 "If you attach a disk with more than 15 partitions, the extra partitions are "
40718 "ignored by libguestfs."
40719 msgstr ""
40720
40721 #. type: =head2
40722 #: ../src/guestfs.pod:3166
40723 msgid "MAXIMUM SIZE OF A DISK"
40724 msgstr ""
40725
40726 #. type: textblock
40727 #: ../src/guestfs.pod:3168
40728 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40729 msgstr ""
40730
40731 #. type: textblock
40732 #: ../src/guestfs.pod:3170
40733 msgid ""
40734 "We have tested block devices up to 1 exabyte (2**60 or "
40735 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40736 "filesystem."
40737 msgstr ""
40738
40739 #. type: textblock
40740 #: ../src/guestfs.pod:3174
40741 msgid ""
40742 "Although libguestfs probably does not impose any limit, the underlying host "
40743 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40744 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40745 "TB).  If you store disk images as host logical volumes then you are limited "
40746 "by the maximum size of an LV."
40747 msgstr ""
40748
40749 #. type: textblock
40750 #: ../src/guestfs.pod:3180
40751 msgid ""
40752 "For the hugest disk image files, we recommend using XFS on the host for "
40753 "storage."
40754 msgstr ""
40755
40756 #. type: =head2
40757 #: ../src/guestfs.pod:3183
40758 msgid "MAXIMUM SIZE OF A PARTITION"
40759 msgstr ""
40760
40761 #. type: textblock
40762 #: ../src/guestfs.pod:3185
40763 msgid ""
40764 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40765 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40766 "address a partition located beyond 2 TB on the disk."
40767 msgstr ""
40768
40769 #. type: textblock
40770 #: ../src/guestfs.pod:3189
40771 msgid ""
40772 "It is recommended that you use GPT partitions on disks which are larger than "
40773 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40774 "which are theoretically larger than the largest disk we could support."
40775 msgstr ""
40776
40777 #. type: =head2
40778 #: ../src/guestfs.pod:3194
40779 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40780 msgstr ""
40781
40782 #. type: textblock
40783 #: ../src/guestfs.pod:3196
40784 msgid ""
40785 "This depends on the filesystem type.  libguestfs itself does not impose any "
40786 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40787 "what these limits are."
40788 msgstr ""
40789
40790 #. type: =head2
40791 #: ../src/guestfs.pod:3200
40792 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40793 msgstr ""
40794
40795 #. type: textblock
40796 #: ../src/guestfs.pod:3202
40797 msgid ""
40798 "The API functions L</guestfs_upload>, L</guestfs_download>, "
40799 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40800 "uploads and downloads."
40801 msgstr ""
40802
40803 #. type: =head2
40804 #: ../src/guestfs.pod:3206
40805 msgid "INSPECTION LIMITS"
40806 msgstr ""
40807
40808 #. type: textblock
40809 #: ../src/guestfs.pod:3208
40810 msgid ""
40811 "The inspection code has several arbitrary limits on things like the size of "
40812 "Windows Registry hive it will read, and the length of product name.  These "
40813 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40814 "memory and disk space on the host, and should not be reached in practice.  "
40815 "See the source code for more information."
40816 msgstr ""
40817
40818 #. type: textblock
40819 #: ../src/guestfs.pod:3234
40820 msgid ""
40821 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40822 "effect as calling C<guestfs_set_verbose (g, 1)>."
40823 msgstr ""
40824
40825 #. type: textblock
40826 #: ../src/guestfs.pod:3246
40827 msgid ""
40828 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40829 "the discussion of paths in section L</PATH> above."
40830 msgstr ""
40831
40832 #. type: textblock
40833 #: ../src/guestfs.pod:3255
40834 msgid "See also L</QEMU WRAPPERS> above."
40835 msgstr ""
40836
40837 #. type: textblock
40838 #: ../src/guestfs.pod:3259
40839 msgid ""
40840 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40841 "effect as calling C<guestfs_set_trace (g, 1)>."
40842 msgstr ""
40843
40844 #. type: textblock
40845 #: ../src/guestfs.pod:3277
40846 msgid ""
40847 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
40848 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
40849 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
40850 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
40851 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
40852 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40853 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
40854 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
40855 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
40856 "L<virt-win-reg(1)>, L<guestfs-testing(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40857 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
40858 "L<http://libguestfs.org/>."
40859 msgstr ""
40860
40861 #. type: textblock
40862 #: ../src/guestfs.pod:3314
40863 msgid ""
40864 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
40865 "L<lvm(8)>, L<disktype(1)>."
40866 msgstr ""
40867
40868 #. type: =head1
40869 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
40870 msgid "BUGS"
40871 msgstr ""
40872
40873 #. type: textblock
40874 #: ../src/guestfs.pod:3323
40875 msgid "To get a list of bugs against libguestfs use this link:"
40876 msgstr ""
40877
40878 #. type: textblock
40879 #: ../src/guestfs.pod:3325
40880 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
40881 msgstr ""
40882
40883 #. type: textblock
40884 #: ../src/guestfs.pod:3327
40885 msgid "To report a new bug against libguestfs use this link:"
40886 msgstr ""
40887
40888 #. type: textblock
40889 #: ../src/guestfs.pod:3329
40890 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
40891 msgstr ""
40892
40893 #. type: textblock
40894 #: ../src/guestfs.pod:3331
40895 msgid "When reporting a bug, please check:"
40896 msgstr ""
40897
40898 #. type: textblock
40899 #: ../src/guestfs.pod:3337
40900 msgid "That the bug hasn't been reported already."
40901 msgstr ""
40902
40903 #. type: textblock
40904 #: ../src/guestfs.pod:3341
40905 msgid "That you are testing a recent version."
40906 msgstr ""
40907
40908 #. type: textblock
40909 #: ../src/guestfs.pod:3345
40910 msgid "Describe the bug accurately, and give a way to reproduce it."
40911 msgstr ""
40912
40913 #. type: textblock
40914 #: ../src/guestfs.pod:3349
40915 msgid ""
40916 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40917 "bug report."
40918 msgstr ""
40919
40920 #. type: textblock
40921 #: ../test-tool/libguestfs-test-tool.pod:5
40922 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40923 msgstr ""
40924
40925 #. type: verbatim
40926 #: ../test-tool/libguestfs-test-tool.pod:9
40927 #, no-wrap
40928 msgid ""
40929 " libguestfs-test-tool [--options]\n"
40930 "\n"
40931 msgstr ""
40932
40933 #. type: textblock
40934 #: ../test-tool/libguestfs-test-tool.pod:13
40935 msgid ""
40936 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40937 "to check basic libguestfs functionality is working.  This is needed because "
40938 "libguestfs occasionally breaks for reasons beyond our control: usually "
40939 "because of changes in the underlying qemu or kernel packages, or the host "
40940 "environment."
40941 msgstr ""
40942
40943 #. type: textblock
40944 #: ../test-tool/libguestfs-test-tool.pod:19
40945 msgid "If you suspect a problem in libguestfs, then just run:"
40946 msgstr ""
40947
40948 #. type: verbatim
40949 #: ../test-tool/libguestfs-test-tool.pod:21
40950 #, no-wrap
40951 msgid ""
40952 " libguestfs-test-tool\n"
40953 "\n"
40954 msgstr ""
40955
40956 #. type: textblock
40957 #: ../test-tool/libguestfs-test-tool.pod:23
40958 msgid "It will print lots of diagnostic messages."
40959 msgstr ""
40960
40961 #. type: textblock
40962 #: ../test-tool/libguestfs-test-tool.pod:25
40963 msgid "If it runs to completion successfully, you will see this near the end:"
40964 msgstr ""
40965
40966 #. type: verbatim
40967 #: ../test-tool/libguestfs-test-tool.pod:27
40968 #, no-wrap
40969 msgid ""
40970 " ===== TEST FINISHED OK =====\n"
40971 "\n"
40972 msgstr ""
40973
40974 #. type: textblock
40975 #: ../test-tool/libguestfs-test-tool.pod:29
40976 msgid "and the test tool will exit with code 0."
40977 msgstr ""
40978
40979 #. type: textblock
40980 #: ../test-tool/libguestfs-test-tool.pod:31
40981 msgid ""
40982 "If it fails (and/or exits with non-zero error code), please paste the "
40983 "I<complete, unedited> output of the test tool into a bug report.  More "
40984 "information about reporting bugs can be found on the "
40985 "L<http://libguestfs.org/> website."
40986 msgstr ""
40987
40988 #. type: textblock
40989 #: ../test-tool/libguestfs-test-tool.pod:42
40990 msgid "Display short usage information and exit."
40991 msgstr ""
40992
40993 #. type: =item
40994 #: ../test-tool/libguestfs-test-tool.pod:44
40995 msgid "B<--qemu qemu_binary>"
40996 msgstr ""
40997
40998 #. type: textblock
40999 #: ../test-tool/libguestfs-test-tool.pod:46
41000 msgid ""
41001 "If you have downloaded another qemu binary, point this option at the full "
41002 "path of the binary to try it."
41003 msgstr ""
41004
41005 #. type: =item
41006 #: ../test-tool/libguestfs-test-tool.pod:49
41007 msgid "B<--qemudir qemu_source_dir>"
41008 msgstr ""
41009
41010 #. type: textblock
41011 #: ../test-tool/libguestfs-test-tool.pod:51
41012 msgid ""
41013 "If you have compiled qemu from source, point this option at the source "
41014 "directory to try it."
41015 msgstr ""
41016
41017 #. type: =item
41018 #: ../test-tool/libguestfs-test-tool.pod:54
41019 msgid "B<-t N>"
41020 msgstr ""
41021
41022 #. type: =item
41023 #: ../test-tool/libguestfs-test-tool.pod:56
41024 msgid "B<--timeout N>"
41025 msgstr ""
41026
41027 #. type: textblock
41028 #: ../test-tool/libguestfs-test-tool.pod:58
41029 msgid ""
41030 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41031 "minutes) which does not usually need to be adjusted."
41032 msgstr ""
41033
41034 #. type: =head1
41035 #: ../test-tool/libguestfs-test-tool.pod:63
41036 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41037 msgstr ""
41038
41039 #. type: textblock
41040 #: ../test-tool/libguestfs-test-tool.pod:65
41041 msgid ""
41042 "If you have compiled another version of qemu from source and would like to "
41043 "try that, then you can use the I<--qemudir> option to point to the qemu "
41044 "source directory."
41045 msgstr ""
41046
41047 #. type: textblock
41048 #: ../test-tool/libguestfs-test-tool.pod:69
41049 msgid ""
41050 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41051 "option to point to the binary."
41052 msgstr ""
41053
41054 #. type: textblock
41055 #: ../test-tool/libguestfs-test-tool.pod:72
41056 msgid ""
41057 "Note when using these options, you can ignore the business of qemu wrapper "
41058 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41059 "wrapper script for you if one is needed."
41060 msgstr ""
41061
41062 #. type: =head1
41063 #: ../test-tool/libguestfs-test-tool.pod:76
41064 msgid "TRYING OUT A DIFFERENT KERNEL"
41065 msgstr ""
41066
41067 #. type: textblock
41068 #: ../test-tool/libguestfs-test-tool.pod:78
41069 msgid ""
41070 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41071 "libguestfs tries.  You do this by setting the environment variables "
41072 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41073 msgstr ""
41074
41075 #. type: textblock
41076 #: ../test-tool/libguestfs-test-tool.pod:82
41077 msgid ""
41078 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41079 "information."
41080 msgstr ""
41081
41082 #. type: =head1
41083 #: ../test-tool/libguestfs-test-tool.pod:85
41084 msgid "SELF-DIAGNOSIS"
41085 msgstr ""
41086
41087 #. type: textblock
41088 #: ../test-tool/libguestfs-test-tool.pod:87
41089 msgid ""
41090 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41091 "produced by libguestfs-test-tool and/or possible errors."
41092 msgstr ""
41093
41094 #. type: textblock
41095 #: ../test-tool/libguestfs-test-tool.pod:92
41096 msgid ""
41097 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41098 "I<1> if there was an error."
41099 msgstr ""
41100
41101 #. type: textblock
41102 #: ../test-tool/libguestfs-test-tool.pod:97
41103 msgid ""
41104 "For the full list of environment variables which may affect libguestfs, "
41105 "please see the L<guestfs(3)> manual page."
41106 msgstr ""
41107
41108 #. type: textblock
41109 #: ../test-tool/libguestfs-test-tool.pod:102
41110 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41111 msgstr ""
41112
41113 #. type: textblock
41114 #: ../tools/virt-list-filesystems.pl:32
41115 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41116 msgstr ""
41117
41118 #. type: verbatim
41119 #: ../tools/virt-list-filesystems.pl:36
41120 #, no-wrap
41121 msgid ""
41122 " virt-list-filesystems [--options] domname\n"
41123 "\n"
41124 msgstr ""
41125
41126 #. type: verbatim
41127 #: ../tools/virt-list-filesystems.pl:38
41128 #, no-wrap
41129 msgid ""
41130 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41131 "\n"
41132 msgstr ""
41133
41134 #. type: textblock
41135 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41136 msgid ""
41137 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41138 "replacement."
41139 msgstr ""
41140
41141 #. type: textblock
41142 #: ../tools/virt-list-filesystems.pl:45
41143 msgid ""
41144 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41145 "are contained in a virtual machine or disk image."
41146 msgstr ""
41147
41148 #. type: textblock
41149 #: ../tools/virt-list-filesystems.pl:49
41150 msgid ""
41151 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41152 "functionality.  For more complex cases you should look at the "
41153 "L<guestfish(1)> tool."
41154 msgstr ""
41155
41156 #. type: textblock
41157 #: ../tools/virt-list-filesystems.pl:112
41158 msgid ""
41159 "With this option, C<virt-list-filesystems> displays the type of each "
41160 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41161 msgstr ""
41162
41163 #. type: =item
41164 #: ../tools/virt-list-filesystems.pl:119
41165 msgid "B<-a>"
41166 msgstr ""
41167
41168 #. type: textblock
41169 #: ../tools/virt-list-filesystems.pl:123
41170 msgid ""
41171 "Normally we only show mountable filesystems.  If this option is given then "
41172 "swap devices are shown too."
41173 msgstr ""
41174
41175 #. type: textblock
41176 #: ../tools/virt-list-filesystems.pl:197
41177 msgid ""
41178 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
41179 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
41180 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41181 msgstr ""
41182
41183 #. type: textblock
41184 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41185 msgid "Copyright (C) 2009 Red Hat Inc."
41186 msgstr ""
41187
41188 #. type: textblock
41189 #: ../tools/virt-list-partitions.pl:32
41190 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
41191 msgstr ""
41192
41193 #. type: verbatim
41194 #: ../tools/virt-list-partitions.pl:36
41195 #, no-wrap
41196 msgid ""
41197 " virt-list-partitions [--options] domname\n"
41198 "\n"
41199 msgstr ""
41200
41201 #. type: verbatim
41202 #: ../tools/virt-list-partitions.pl:38
41203 #, no-wrap
41204 msgid ""
41205 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41206 "\n"
41207 msgstr ""
41208
41209 #. type: textblock
41210 #: ../tools/virt-list-partitions.pl:45
41211 msgid ""
41212 "C<virt-list-partitions> is a command line tool to list the partitions that "
41213 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41214 "first step to using L<virt-resize(1)>."
41215 msgstr ""
41216
41217 #. type: textblock
41218 #: ../tools/virt-list-partitions.pl:50
41219 msgid ""
41220 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41221 "functionality.  For more complex cases you should look at the "
41222 "L<guestfish(1)> tool."
41223 msgstr ""
41224
41225 #. type: textblock
41226 #: ../tools/virt-list-partitions.pl:113
41227 msgid "Show sizes in human-readable form (eg. \"1G\")."
41228 msgstr ""
41229
41230 #. type: textblock
41231 #: ../tools/virt-list-partitions.pl:123
41232 msgid ""
41233 "With this option, C<virt-list-partitions> displays the type and size of each "
41234 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41235 msgstr ""
41236
41237 #. type: =item
41238 #: ../tools/virt-list-partitions.pl:130
41239 msgid "B<-t>"
41240 msgstr ""
41241
41242 #. type: =item
41243 #: ../tools/virt-list-partitions.pl:132
41244 msgid "B<--total>"
41245 msgstr ""
41246
41247 #. type: textblock
41248 #: ../tools/virt-list-partitions.pl:134
41249 msgid "Display the total size of each block device (as a separate row or rows)."
41250 msgstr ""
41251
41252 #. type: textblock
41253 #: ../tools/virt-list-partitions.pl:267
41254 msgid ""
41255 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
41256 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
41257 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41258 msgstr ""
41259
41260 #. type: textblock
41261 #: ../tools/virt-list-partitions.pl:283
41262 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41263 msgstr ""
41264
41265 #. type: textblock
41266 #: ../tools/virt-make-fs.pl:37
41267 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41268 msgstr ""
41269
41270 #. type: verbatim
41271 #: ../tools/virt-make-fs.pl:41
41272 #, no-wrap
41273 msgid ""
41274 " virt-make-fs [--options] input.tar output.img\n"
41275 "\n"
41276 msgstr ""
41277
41278 #. type: verbatim
41279 #: ../tools/virt-make-fs.pl:43
41280 #, no-wrap
41281 msgid ""
41282 " virt-make-fs [--options] input.tar.gz output.img\n"
41283 "\n"
41284 msgstr ""
41285
41286 #. type: verbatim
41287 #: ../tools/virt-make-fs.pl:45
41288 #, no-wrap
41289 msgid ""
41290 " virt-make-fs [--options] directory output.img\n"
41291 "\n"
41292 msgstr ""
41293
41294 #. type: textblock
41295 #: ../tools/virt-make-fs.pl:49
41296 msgid ""
41297 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41298 "archive or some files in a directory.  It is similar to tools like "
41299 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
41300 "it can create common filesystem types like ext2/3 or NTFS, which can be "
41301 "useful if you want to attach these filesystems to existing virtual machines "
41302 "(eg. to import large amounts of read-only data to a VM)."
41303 msgstr ""
41304
41305 #. type: textblock
41306 #: ../tools/virt-make-fs.pl:57
41307 msgid "Basic usage is:"
41308 msgstr ""
41309
41310 #. type: verbatim
41311 #: ../tools/virt-make-fs.pl:59
41312 #, no-wrap
41313 msgid ""
41314 " virt-make-fs input output.img\n"
41315 "\n"
41316 msgstr ""
41317
41318 #. type: textblock
41319 #: ../tools/virt-make-fs.pl:61
41320 msgid ""
41321 "where C<input> is either a directory containing files that you want to add, "
41322 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41323 "C<output.img> is a disk image.  The input type is detected automatically.  "
41324 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41325 "extra flags (see L</OPTIONS> below)."
41326 msgstr ""
41327
41328 #. type: =head2
41329 #: ../tools/virt-make-fs.pl:67
41330 msgid "FILESYSTEM TYPE"
41331 msgstr ""
41332
41333 #. type: textblock
41334 #: ../tools/virt-make-fs.pl:69
41335 msgid ""
41336 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41337 "libguestfs supports can be used (but I<not> read-only formats like "
41338 "ISO9660).  Here are some of the more common choices:"
41339 msgstr ""
41340
41341 #. type: =item
41342 #: ../tools/virt-make-fs.pl:75
41343 msgid "I<ext3>"
41344 msgstr ""
41345
41346 #. type: textblock
41347 #: ../tools/virt-make-fs.pl:77
41348 msgid ""
41349 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41350 "you are not going to use the filesystem in a way that requires the journal, "
41351 "then this is just wasted overhead."
41352 msgstr ""
41353
41354 #. type: =item
41355 #: ../tools/virt-make-fs.pl:81
41356 msgid "I<ntfs> or I<vfat>"
41357 msgstr ""
41358
41359 #. type: textblock
41360 #: ../tools/virt-make-fs.pl:83
41361 msgid "Useful if exporting data to a Windows guest."
41362 msgstr ""
41363
41364 #. type: textblock
41365 #: ../tools/virt-make-fs.pl:85
41366 msgid ""
41367 "I<Note for vfat>: The tar archive or local directory must only contain files "
41368 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41369 "program running within libguestfs is unable to change the ownership of "
41370 "non-root files, since vfat itself does not support this."
41371 msgstr ""
41372
41373 #. type: =item
41374 #: ../tools/virt-make-fs.pl:90
41375 msgid "I<minix>"
41376 msgstr ""
41377
41378 #. type: textblock
41379 #: ../tools/virt-make-fs.pl:92
41380 msgid ""
41381 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41382 "total filesystem size."
41383 msgstr ""
41384
41385 #. type: =head3
41386 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
41387 msgid "EXAMPLE"
41388 msgstr ""
41389
41390 #. type: verbatim
41391 #: ../tools/virt-make-fs.pl:99
41392 #, no-wrap
41393 msgid ""
41394 " virt-make-fs --type=minix input minixfs.img\n"
41395 "\n"
41396 msgstr ""
41397
41398 #. type: =head2
41399 #: ../tools/virt-make-fs.pl:101
41400 msgid "TO PARTITION OR NOT TO PARTITION"
41401 msgstr ""
41402
41403 #. type: textblock
41404 #: ../tools/virt-make-fs.pl:103
41405 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41406 msgstr ""
41407
41408 #. type: textblock
41409 #: ../tools/virt-make-fs.pl:105
41410 msgid ""
41411 "Adding a partition can make the disk image more compatible with certain "
41412 "virtualized operating systems which don't expect to see a filesystem "
41413 "directly located on a block device (Linux doesn't care and will happily "
41414 "handle both types)."
41415 msgstr ""
41416
41417 #. type: textblock
41418 #: ../tools/virt-make-fs.pl:110
41419 msgid ""
41420 "On the other hand, if you have a partition table then the output image is no "
41421 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41422 "directly on a partitioned disk image.  (However libguestfs tools such as "
41423 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41424 msgstr ""
41425
41426 #. type: textblock
41427 #: ../tools/virt-make-fs.pl:118
41428 msgid "Add an MBR partition:"
41429 msgstr ""
41430
41431 #. type: verbatim
41432 #: ../tools/virt-make-fs.pl:120
41433 #, no-wrap
41434 msgid ""
41435 " virt-make-fs --partition -- input disk.img\n"
41436 "\n"
41437 msgstr ""
41438
41439 #. type: textblock
41440 #: ../tools/virt-make-fs.pl:122
41441 msgid ""
41442 "If the output disk image could be terabyte-sized or larger, it's better to "
41443 "use an EFI/GPT-compatible partition table:"
41444 msgstr ""
41445
41446 #. type: verbatim
41447 #: ../tools/virt-make-fs.pl:125
41448 #, no-wrap
41449 msgid ""
41450 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41451 "\n"
41452 msgstr ""
41453
41454 #. type: =head2
41455 #: ../tools/virt-make-fs.pl:127
41456 msgid "EXTRA SPACE"
41457 msgstr ""
41458
41459 #. type: textblock
41460 #: ../tools/virt-make-fs.pl:129
41461 msgid ""
41462 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41463 "the files that it contains, but might have extra space.  Depending on how "
41464 "you are going to use the output, you might think this extra space is wasted "
41465 "and want to minimize it, or you might want to leave space so that more files "
41466 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41467 "but you can use the I<--size> flag to leave space in the filesystem if you "
41468 "want it."
41469 msgstr ""
41470
41471 #. type: textblock
41472 #: ../tools/virt-make-fs.pl:137
41473 msgid ""
41474 "An alternative way to leave extra space but not make the output image any "
41475 "bigger is to use an alternative disk image format (instead of the default "
41476 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41477 "image format (check your hypervisor supports this before using it).  This "
41478 "allows you to choose a large I<--size> but the extra space won't actually be "
41479 "allocated in the image until you try to store something in it."
41480 msgstr ""
41481
41482 #. type: textblock
41483 #: ../tools/virt-make-fs.pl:145
41484 msgid ""
41485 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41486 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41487 "to build another image from scratch."
41488 msgstr ""
41489
41490 #. type: verbatim
41491 #: ../tools/virt-make-fs.pl:151
41492 #, no-wrap
41493 msgid ""
41494 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41495 "\n"
41496 msgstr ""
41497
41498 #. type: textblock
41499 #: ../tools/virt-make-fs.pl:179
41500 msgid "Enable debugging information."
41501 msgstr ""
41502
41503 #. type: =item
41504 #: ../tools/virt-make-fs.pl:185
41505 msgid "B<--size=E<lt>NE<gt>>"
41506 msgstr ""
41507
41508 #. type: =item
41509 #: ../tools/virt-make-fs.pl:187
41510 msgid "B<--size=+E<lt>NE<gt>>"
41511 msgstr ""
41512
41513 #. type: =item
41514 #: ../tools/virt-make-fs.pl:189
41515 msgid "B<-s E<lt>NE<gt>>"
41516 msgstr ""
41517
41518 #. type: =item
41519 #: ../tools/virt-make-fs.pl:191
41520 msgid "B<-s +E<lt>NE<gt>>"
41521 msgstr ""
41522
41523 #. type: textblock
41524 #: ../tools/virt-make-fs.pl:193
41525 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41526 msgstr ""
41527
41528 #. type: textblock
41529 #: ../tools/virt-make-fs.pl:196
41530 msgid ""
41531 "If this option is I<not> given, then the output image will be just large "
41532 "enough to contain all the files, with not much wasted space."
41533 msgstr ""
41534
41535 #. type: textblock
41536 #: ../tools/virt-make-fs.pl:199
41537 msgid ""
41538 "To choose a fixed size output disk, specify an absolute number followed by "
41539 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41540 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41541 "files, else you will get an error."
41542 msgstr ""
41543
41544 #. type: textblock
41545 #: ../tools/virt-make-fs.pl:204
41546 msgid ""
41547 "To leave extra space, specify C<+> (plus sign) and a number followed by "
41548 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41549 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41550 "the input files, and (approximately) an extra 200 MB free space."
41551 msgstr ""
41552
41553 #. type: textblock
41554 #: ../tools/virt-make-fs.pl:210
41555 msgid ""
41556 "Note that virt-make-fs estimates free space, and therefore will not produce "
41557 "filesystems containing precisely the free space requested.  (It is much more "
41558 "expensive and time-consuming to produce a filesystem which has precisely the "
41559 "desired free space)."
41560 msgstr ""
41561
41562 #. type: =item
41563 #: ../tools/virt-make-fs.pl:219
41564 msgid "B<--format=E<lt>fmtE<gt>>"
41565 msgstr ""
41566
41567 #. type: =item
41568 #: ../tools/virt-make-fs.pl:221
41569 msgid "B<-F E<lt>fmtE<gt>>"
41570 msgstr ""
41571
41572 #. type: textblock
41573 #: ../tools/virt-make-fs.pl:223
41574 msgid "Choose the output disk image format."
41575 msgstr ""
41576
41577 #. type: textblock
41578 #: ../tools/virt-make-fs.pl:225
41579 msgid "The default is C<raw> (raw sparse disk image)."
41580 msgstr ""
41581
41582 #. type: textblock
41583 #: ../tools/virt-make-fs.pl:227
41584 msgid ""
41585 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41586 "that would really make sense here is C<qcow2>."
41587 msgstr ""
41588
41589 #. type: =item
41590 #: ../tools/virt-make-fs.pl:234
41591 msgid "B<--type=E<lt>fsE<gt>>"
41592 msgstr ""
41593
41594 #. type: =item
41595 #: ../tools/virt-make-fs.pl:236
41596 msgid "B<-t E<lt>fsE<gt>>"
41597 msgstr ""
41598
41599 #. type: textblock
41600 #: ../tools/virt-make-fs.pl:238
41601 msgid "Choose the output filesystem type."
41602 msgstr ""
41603
41604 #. type: textblock
41605 #: ../tools/virt-make-fs.pl:240
41606 msgid "The default is C<ext2>."
41607 msgstr ""
41608
41609 #. type: textblock
41610 #: ../tools/virt-make-fs.pl:242
41611 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
41612 msgstr ""
41613
41614 #. type: =item
41615 #: ../tools/virt-make-fs.pl:249
41616 msgid "B<--partition>"
41617 msgstr ""
41618
41619 #. type: =item
41620 #: ../tools/virt-make-fs.pl:251
41621 msgid "B<--partition=E<lt>parttypeE<gt>>"
41622 msgstr ""
41623
41624 #. type: textblock
41625 #: ../tools/virt-make-fs.pl:253
41626 msgid ""
41627 "If specified, this flag adds an MBR partition table to the output disk "
41628 "image."
41629 msgstr ""
41630
41631 #. type: textblock
41632 #: ../tools/virt-make-fs.pl:256
41633 msgid ""
41634 "You can change the partition table type, eg. I<--partition=gpt> for large "
41635 "disks."
41636 msgstr ""
41637
41638 #. type: textblock
41639 #: ../tools/virt-make-fs.pl:259
41640 msgid ""
41641 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41642 "might consider the next parameter to be the partition type.  For example:"
41643 msgstr ""
41644
41645 #. type: verbatim
41646 #: ../tools/virt-make-fs.pl:263
41647 #, no-wrap
41648 msgid ""
41649 " virt-make-fs --partition input.tar output.img\n"
41650 "\n"
41651 msgstr ""
41652
41653 #. type: textblock
41654 #: ../tools/virt-make-fs.pl:265
41655 msgid ""
41656 "would cause virt-make-fs to think you wanted to use a partition type of "
41657 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41658 "dash) between options and the input and output arguments:"
41659 msgstr ""
41660
41661 #. type: verbatim
41662 #: ../tools/virt-make-fs.pl:269
41663 #, no-wrap
41664 msgid ""
41665 " virt-make-fs --partition -- input.tar output.img\n"
41666 "\n"
41667 msgstr ""
41668
41669 #. type: textblock
41670 #: ../tools/virt-make-fs.pl:271
41671 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41672 msgstr ""
41673
41674 #. type: textblock
41675 #: ../tools/virt-make-fs.pl:559
41676 msgid ""
41677 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41678 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
41679 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41680 msgstr ""
41681
41682 #. type: textblock
41683 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41684 msgid ""
41685 "When reporting bugs, please enable debugging and capture the I<complete> "
41686 "output:"
41687 msgstr ""
41688
41689 #. type: verbatim
41690 #: ../tools/virt-make-fs.pl:576
41691 #, no-wrap
41692 msgid ""
41693 " export LIBGUESTFS_DEBUG=1\n"
41694 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41695 "\n"
41696 msgstr ""
41697
41698 #. type: textblock
41699 #: ../tools/virt-make-fs.pl:579
41700 msgid ""
41701 "Attach /tmp/virt-make-fs.log to a new bug report at "
41702 "L<https://bugzilla.redhat.com/>"
41703 msgstr ""
41704
41705 #. type: textblock
41706 #: ../tools/virt-tar.pl:33
41707 msgid "virt-tar - Extract or upload files to a virtual machine"
41708 msgstr ""
41709
41710 #. type: verbatim
41711 #: ../tools/virt-tar.pl:37
41712 #, no-wrap
41713 msgid ""
41714 " virt-tar [--options] -x domname directory tarball\n"
41715 "\n"
41716 msgstr ""
41717
41718 #. type: verbatim
41719 #: ../tools/virt-tar.pl:39
41720 #, no-wrap
41721 msgid ""
41722 " virt-tar [--options] -u domname tarball directory\n"
41723 "\n"
41724 msgstr ""
41725
41726 #. type: verbatim
41727 #: ../tools/virt-tar.pl:41
41728 #, no-wrap
41729 msgid ""
41730 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41731 "\n"
41732 msgstr ""
41733
41734 #. type: verbatim
41735 #: ../tools/virt-tar.pl:43
41736 #, no-wrap
41737 msgid ""
41738 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41739 "\n"
41740 msgstr ""
41741
41742 #. type: =head2
41743 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41744 msgid "NOTE"
41745 msgstr ""
41746
41747 #. type: textblock
41748 #: ../tools/virt-tar.pl:47
41749 msgid ""
41750 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
41751 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
41752 msgstr ""
41753
41754 #. type: textblock
41755 #: ../tools/virt-tar.pl:52
41756 msgid "Download C</home> from the VM into a local tarball:"
41757 msgstr ""
41758
41759 #. type: verbatim
41760 #: ../tools/virt-tar.pl:54
41761 #, no-wrap
41762 msgid ""
41763 " virt-tar -x domname /home home.tar\n"
41764 "\n"
41765 msgstr ""
41766
41767 #. type: verbatim
41768 #: ../tools/virt-tar.pl:56
41769 #, no-wrap
41770 msgid ""
41771 " virt-tar -zx domname /home home.tar.gz\n"
41772 "\n"
41773 msgstr ""
41774
41775 #. type: textblock
41776 #: ../tools/virt-tar.pl:58
41777 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41778 msgstr ""
41779
41780 #. type: verbatim
41781 #: ../tools/virt-tar.pl:60
41782 #, no-wrap
41783 msgid ""
41784 " virt-tar -u domname uploadstuff.tar /tmp\n"
41785 "\n"
41786 msgstr ""
41787
41788 #. type: verbatim
41789 #: ../tools/virt-tar.pl:62
41790 #, no-wrap
41791 msgid ""
41792 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41793 "\n"
41794 msgstr ""
41795
41796 #. type: textblock
41797 #: ../tools/virt-tar.pl:66
41798 msgid ""
41799 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41800 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41801 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41802 msgstr ""
41803
41804 #. type: textblock
41805 #: ../tools/virt-tar.pl:71
41806 msgid ""
41807 "You can use I<-x> (extract) on live virtual machines, but you might get "
41808 "inconsistent results or errors if there is filesystem activity inside the "
41809 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41810 "work, but the only way to guarantee consistent results is if the virtual "
41811 "machine is shut down."
41812 msgstr ""
41813
41814 #. type: textblock
41815 #: ../tools/virt-tar.pl:79
41816 msgid ""
41817 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41818 "parts of a guest filesystem.  There are many possibilities: making backups, "
41819 "uploading data files, snooping on guest activity, fixing or customizing "
41820 "guests, etc."
41821 msgstr ""
41822
41823 #. type: textblock
41824 #: ../tools/virt-tar.pl:84
41825 msgid ""
41826 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41827 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41828 "should look at the L<guestfish(1)> tool."
41829 msgstr ""
41830
41831 #. type: textblock
41832 #: ../tools/virt-tar.pl:88
41833 msgid ""
41834 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41835 "its contents (recursively) from the virtual machine into a local tarball.  "
41836 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41837 "virtual machine.  You cannot use these two options together."
41838 msgstr ""
41839
41840 #. type: textblock
41841 #: ../tools/virt-tar.pl:94
41842 msgid ""
41843 "In addition, you may need to use the I<-z> (gZip) option to enable "
41844 "compression.  When uploading, you have to specify I<-z> if the upload file "
41845 "is compressed because virt-tar won't detect this on its own."
41846 msgstr ""
41847
41848 #. type: textblock
41849 #: ../tools/virt-tar.pl:98
41850 msgid ""
41851 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41852 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41853 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41854 "the L<libguestfs(3)> API)."
41855 msgstr ""
41856
41857 #. type: =item
41858 #: ../tools/virt-tar.pl:160
41859 msgid "B<--extract>"
41860 msgstr ""
41861
41862 #. type: =item
41863 #: ../tools/virt-tar.pl:162
41864 msgid "B<--download>"
41865 msgstr ""
41866
41867 #. type: =item
41868 #: ../tools/virt-tar.pl:164
41869 msgid "B<-u>"
41870 msgstr ""
41871
41872 #. type: =item
41873 #: ../tools/virt-tar.pl:166
41874 msgid "B<--upload>"
41875 msgstr ""
41876
41877 #. type: textblock
41878 #: ../tools/virt-tar.pl:168
41879 msgid ""
41880 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41881 "local tarball."
41882 msgstr ""
41883
41884 #. type: textblock
41885 #: ../tools/virt-tar.pl:171
41886 msgid ""
41887 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41888 "Please read the L</WARNING> section above before using this option."
41889 msgstr ""
41890
41891 #. type: textblock
41892 #: ../tools/virt-tar.pl:175
41893 msgid "You must specify exactly one of these options."
41894 msgstr ""
41895
41896 #. type: =item
41897 #: ../tools/virt-tar.pl:181
41898 msgid "B<-z>"
41899 msgstr ""
41900
41901 #. type: =item
41902 #: ../tools/virt-tar.pl:183
41903 msgid "B<--gzip>"
41904 msgstr ""
41905
41906 #. type: textblock
41907 #: ../tools/virt-tar.pl:185
41908 msgid "Specify that the input or output tarball is gzip-compressed."
41909 msgstr ""
41910
41911 #. type: textblock
41912 #: ../tools/virt-tar.pl:298
41913 msgid ""
41914 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
41915 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41916 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
41917 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41918 msgstr ""
41919
41920 #. type: textblock
41921 #: ../tools/virt-win-reg.pl:37
41922 msgid ""
41923 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
41924 "guest"
41925 msgstr ""
41926
41927 #. type: verbatim
41928 #: ../tools/virt-win-reg.pl:41
41929 #, no-wrap
41930 msgid ""
41931 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41932 "\n"
41933 msgstr ""
41934
41935 #. type: verbatim
41936 #: ../tools/virt-win-reg.pl:43
41937 #, no-wrap
41938 msgid ""
41939 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41940 "\n"
41941 msgstr ""
41942
41943 #. type: verbatim
41944 #: ../tools/virt-win-reg.pl:45
41945 #, no-wrap
41946 msgid ""
41947 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41948 "\n"
41949 msgstr ""
41950
41951 #. type: verbatim
41952 #: ../tools/virt-win-reg.pl:47
41953 #, no-wrap
41954 msgid ""
41955 " virt-win-reg --merge domname [input.reg ...]\n"
41956 "\n"
41957 msgstr ""
41958
41959 #. type: verbatim
41960 #: ../tools/virt-win-reg.pl:49
41961 #, no-wrap
41962 msgid ""
41963 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41964 "\n"
41965 msgstr ""
41966
41967 #. type: textblock
41968 #: ../tools/virt-win-reg.pl:53
41969 msgid ""
41970 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41971 "virtual machines.  If you do this, you I<will> get irreversible disk "
41972 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41973 "but doesn't catch all cases."
41974 msgstr ""
41975
41976 #. type: textblock
41977 #: ../tools/virt-win-reg.pl:58
41978 msgid ""
41979 "Modifying the Windows Registry is an inherently risky operation.  The format "
41980 "is deliberately obscure and undocumented, and Registry changes can leave the "
41981 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41982 "you have a reliable backup first."
41983 msgstr ""
41984
41985 #. type: textblock
41986 #: ../tools/virt-win-reg.pl:65
41987 msgid ""
41988 "This program can export and merge Windows Registry entries from a Windows "
41989 "guest."
41990 msgstr ""
41991
41992 #. type: textblock
41993 #: ../tools/virt-win-reg.pl:68
41994 msgid ""
41995 "The first parameter is the libvirt guest name or the raw disk image of a "
41996 "Windows guest."
41997 msgstr ""
41998
41999 #. type: textblock
42000 #: ../tools/virt-win-reg.pl:71
42001 msgid ""
42002 "If I<--merge> is I<not> specified, then the chosen registry key is "
42003 "displayed/exported (recursively).  For example:"
42004 msgstr ""
42005
42006 #. type: verbatim
42007 #: ../tools/virt-win-reg.pl:74
42008 #, no-wrap
42009 msgid ""
42010 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42011 "\n"
42012 msgstr ""
42013
42014 #. type: textblock
42015 #: ../tools/virt-win-reg.pl:76
42016 msgid "You can also display single values from within registry keys, for example:"
42017 msgstr ""
42018
42019 #. type: verbatim
42020 #: ../tools/virt-win-reg.pl:79
42021 #, no-wrap
42022 msgid ""
42023 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42024 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42025 " Windows 7 Enterprise\n"
42026 "\n"
42027 msgstr ""
42028
42029 #. type: textblock
42030 #: ../tools/virt-win-reg.pl:83
42031 msgid ""
42032 "With I<--merge>, you can merge a textual regedit file into the Windows "
42033 "Registry:"
42034 msgstr ""
42035
42036 #. type: verbatim
42037 #: ../tools/virt-win-reg.pl:86
42038 #, no-wrap
42039 msgid ""
42040 " $ virt-win-reg --merge Windows7 changes.reg\n"
42041 "\n"
42042 msgstr ""
42043
42044 #. type: textblock
42045 #: ../tools/virt-win-reg.pl:90
42046 msgid ""
42047 "This program is only meant for simple access to the registry.  If you want "
42048 "to do complicated things with the registry, we suggest you download the "
42049 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42050 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42051 "L<hivexregedit(1)>."
42052 msgstr ""
42053
42054 #. type: =item
42055 #: ../tools/virt-win-reg.pl:159
42056 msgid "B<--merge>"
42057 msgstr ""
42058
42059 #. type: textblock
42060 #: ../tools/virt-win-reg.pl:161
42061 msgid ""
42062 "In merge mode, this merges a textual regedit file into the Windows Registry "
42063 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42064 "displays or exports Registry entries instead."
42065 msgstr ""
42066
42067 #. type: textblock
42068 #: ../tools/virt-win-reg.pl:165
42069 msgid ""
42070 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42071 "result in disk corruption.  However exporting (without this flag)  is always "
42072 "safe."
42073 msgstr ""
42074
42075 #. type: =item
42076 #: ../tools/virt-win-reg.pl:173
42077 msgid "B<--encoding> UTF-16LE|ASCII"
42078 msgstr ""
42079
42080 #. type: textblock
42081 #: ../tools/virt-win-reg.pl:175
42082 msgid ""
42083 "When merging (only), you may need to specify the encoding for strings to be "
42084 "used in the hive file.  This is explained in detail in "
42085 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
42086 msgstr ""
42087
42088 #. type: textblock
42089 #: ../tools/virt-win-reg.pl:179
42090 msgid ""
42091 "The default is to use UTF-16LE, which should work with recent versions of "
42092 "Windows."
42093 msgstr ""
42094
42095 #. type: =item
42096 #: ../tools/virt-win-reg.pl:186
42097 msgid "B<--unsafe-printable-strings>"
42098 msgstr ""
42099
42100 #. type: textblock
42101 #: ../tools/virt-win-reg.pl:188
42102 msgid ""
42103 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42104 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42105 "present."
42106 msgstr ""
42107
42108 #. type: textblock
42109 #: ../tools/virt-win-reg.pl:192
42110 msgid ""
42111 "This is unsafe and does not preserve the fidelity of strings in the original "
42112 "Registry for various reasons:"
42113 msgstr ""
42114
42115 #. type: textblock
42116 #: ../tools/virt-win-reg.pl:199
42117 msgid ""
42118 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42119 "other encodings will be corrupted by this transformation."
42120 msgstr ""
42121
42122 #. type: textblock
42123 #: ../tools/virt-win-reg.pl:204
42124 msgid ""
42125 "Assumes that everything which has type 1 or 2 is really a string and that "
42126 "everything else is not a string, but the type field in real Registries is "
42127 "not reliable."
42128 msgstr ""
42129
42130 #. type: textblock
42131 #: ../tools/virt-win-reg.pl:210
42132 msgid ""
42133 "Loses information about whether a zero codepoint followed the string in the "
42134 "Registry or not."
42135 msgstr ""
42136
42137 #. type: textblock
42138 #: ../tools/virt-win-reg.pl:215
42139 msgid ""
42140 "This all happens because the Registry itself contains no information about "
42141 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42142 msgstr ""
42143
42144 #. type: textblock
42145 #: ../tools/virt-win-reg.pl:219
42146 msgid ""
42147 "You should only use this option for quick hacking and debugging of the "
42148 "Registry contents, and I<never> use it if the output is going to be passed "
42149 "into another program or stored in another Registry."
42150 msgstr ""
42151
42152 #. type: =head1
42153 #: ../tools/virt-win-reg.pl:556
42154 msgid "SUPPORTED SYSTEMS"
42155 msgstr ""
42156
42157 #. type: textblock
42158 #: ../tools/virt-win-reg.pl:558
42159 msgid ""
42160 "The program currently supports Windows NT-derived guests starting with "
42161 "Windows XP through to at least Windows 7."
42162 msgstr ""
42163
42164 #. type: textblock
42165 #: ../tools/virt-win-reg.pl:561
42166 msgid "The following Registry keys are supported:"
42167 msgstr ""
42168
42169 #. type: =item
42170 #: ../tools/virt-win-reg.pl:565
42171 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42172 msgstr ""
42173
42174 #. type: =item
42175 #: ../tools/virt-win-reg.pl:567
42176 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42177 msgstr ""
42178
42179 #. type: =item
42180 #: ../tools/virt-win-reg.pl:569
42181 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42182 msgstr ""
42183
42184 #. type: =item
42185 #: ../tools/virt-win-reg.pl:571
42186 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42187 msgstr ""
42188
42189 #. type: =item
42190 #: ../tools/virt-win-reg.pl:573
42191 msgid "C<HKEY_USERS\\.DEFAULT>"
42192 msgstr ""
42193
42194 #. type: =item
42195 #: ../tools/virt-win-reg.pl:575
42196 msgid "C<HKEY_USERS\\I<SID>>"
42197 msgstr ""
42198
42199 #. type: textblock
42200 #: ../tools/virt-win-reg.pl:577
42201 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42202 msgstr ""
42203
42204 #. type: =item
42205 #: ../tools/virt-win-reg.pl:579
42206 msgid "C<HKEY_USERS\\I<username>>"
42207 msgstr ""
42208
42209 #. type: textblock
42210 #: ../tools/virt-win-reg.pl:581
42211 msgid "where I<username> is a local user name (this is a libguestfs extension)."
42212 msgstr ""
42213
42214 #. type: textblock
42215 #: ../tools/virt-win-reg.pl:585
42216 msgid ""
42217 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42218 "C<HKEY_USERS>."
42219 msgstr ""
42220
42221 #. type: textblock
42222 #: ../tools/virt-win-reg.pl:588
42223 msgid ""
42224 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42225 "supported (there is no \"current user\")."
42226 msgstr ""
42227
42228 #. type: =head1
42229 #: ../tools/virt-win-reg.pl:591
42230 msgid "ENCODING"
42231 msgstr ""
42232
42233 #. type: textblock
42234 #: ../tools/virt-win-reg.pl:593
42235 msgid ""
42236 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42237 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
42238 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
42239 "with Windows-style line endings, you may need to reencode the whole file "
42240 "before or after processing."
42241 msgstr ""
42242
42243 #. type: textblock
42244 #: ../tools/virt-win-reg.pl:599
42245 msgid ""
42246 "To reencode a file from Windows format to Linux (before processing it with "
42247 "the I<--merge> option), you would do something like this:"
42248 msgstr ""
42249
42250 #. type: verbatim
42251 #: ../tools/virt-win-reg.pl:602
42252 #, no-wrap
42253 msgid ""
42254 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42255 "\n"
42256 msgstr ""
42257
42258 #. type: textblock
42259 #: ../tools/virt-win-reg.pl:604
42260 msgid ""
42261 "To go in the opposite direction, after exporting and before sending the file "
42262 "to a Windows user, do something like this:"
42263 msgstr ""
42264
42265 #. type: verbatim
42266 #: ../tools/virt-win-reg.pl:607
42267 #, no-wrap
42268 msgid ""
42269 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42270 "\n"
42271 msgstr ""
42272
42273 #. type: textblock
42274 #: ../tools/virt-win-reg.pl:609
42275 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42276 msgstr ""
42277
42278 #. type: textblock
42279 #: ../tools/virt-win-reg.pl:611
42280 msgid ""
42281 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42282 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
42283 "Windows-style (CRLF) line endings, like this:"
42284 msgstr ""
42285
42286 #. type: verbatim
42287 #: ../tools/virt-win-reg.pl:615
42288 #, no-wrap
42289 msgid ""
42290 " $ file software.reg\n"
42291 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42292 " with CRLF line terminators\n"
42293 "\n"
42294 msgstr ""
42295
42296 #. type: textblock
42297 #: ../tools/virt-win-reg.pl:619
42298 msgid "This file would need conversion before you could I<--merge> it."
42299 msgstr ""
42300
42301 #. type: =head1
42302 #: ../tools/virt-win-reg.pl:621
42303 msgid "CurrentControlSet etc."
42304 msgstr ""
42305
42306 #. type: textblock
42307 #: ../tools/virt-win-reg.pl:623
42308 msgid ""
42309 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42310 "Registry at the level of the hive file, and therefore you cannot modify "
42311 "these."
42312 msgstr ""
42313
42314 #. type: textblock
42315 #: ../tools/virt-win-reg.pl:627
42316 msgid ""
42317 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42318 "circumstances it might refer to another control set.  The way to find out is "
42319 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42320 msgstr ""
42321
42322 #. type: verbatim
42323 #: ../tools/virt-win-reg.pl:631
42324 #, no-wrap
42325 msgid ""
42326 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42327 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42328 " \"Current\"=dword:00000001\n"
42329 " \"Default\"=dword:00000001\n"
42330 " \"Failed\"=dword:00000000\n"
42331 " \"LastKnownGood\"=dword:00000002\n"
42332 "\n"
42333 msgstr ""
42334
42335 #. type: textblock
42336 #: ../tools/virt-win-reg.pl:638
42337 msgid "\"Current\" is the one which Windows will choose when it boots."
42338 msgstr ""
42339
42340 #. type: textblock
42341 #: ../tools/virt-win-reg.pl:640
42342 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
42343 msgstr ""
42344
42345 #. type: =head1
42346 #: ../tools/virt-win-reg.pl:643
42347 msgid "DELETING REGISTRY KEYS AND VALUES"
42348 msgstr ""
42349
42350 #. type: textblock
42351 #: ../tools/virt-win-reg.pl:645
42352 msgid "To delete a whole registry key, use the syntax:"
42353 msgstr ""
42354
42355 #. type: verbatim
42356 #: ../tools/virt-win-reg.pl:647
42357 #, no-wrap
42358 msgid ""
42359 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42360 "\n"
42361 msgstr ""
42362
42363 #. type: textblock
42364 #: ../tools/virt-win-reg.pl:649
42365 msgid "To delete a single value within a key, use the syntax:"
42366 msgstr ""
42367
42368 #. type: verbatim
42369 #: ../tools/virt-win-reg.pl:651
42370 #, no-wrap
42371 msgid ""
42372 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42373 " \"Value\"=-\n"
42374 "\n"
42375 msgstr ""
42376
42377 #. type: =head1
42378 #: ../tools/virt-win-reg.pl:654
42379 msgid "WINDOWS TIPS"
42380 msgstr ""
42381
42382 #. type: textblock
42383 #: ../tools/virt-win-reg.pl:656
42384 msgid ""
42385 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42386 "be shut off, else you will get disk corruption."
42387 msgstr ""
42388
42389 #. type: =head2
42390 #: ../tools/virt-win-reg.pl:659
42391 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42392 msgstr ""
42393
42394 #. type: textblock
42395 #: ../tools/virt-win-reg.pl:661
42396 msgid ""
42397 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42398 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42399 "is uploaded into C<C:\\>:"
42400 msgstr ""
42401
42402 #. type: verbatim
42403 #: ../tools/virt-win-reg.pl:665
42404 #, no-wrap
42405 msgid ""
42406 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42407 "\n"
42408 msgstr ""
42409
42410 #. type: textblock
42411 #: ../tools/virt-win-reg.pl:667
42412 msgid "Prepare a regedit file containing the registry change:"
42413 msgstr ""
42414
42415 #. type: verbatim
42416 #: ../tools/virt-win-reg.pl:669
42417 #, no-wrap
42418 msgid ""
42419 " cat > test.reg <<'EOF'\n"
42420 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42421 " \"Test\"=\"c:\\\\test.bat\"\n"
42422 " EOF\n"
42423 "\n"
42424 msgstr ""
42425
42426 #. type: textblock
42427 #: ../tools/virt-win-reg.pl:674
42428 msgid ""
42429 "In this example we use the key C<RunOnce> which means that the script will "
42430 "run precisely once when the first user logs in.  If you want it to run every "
42431 "time a user logs in, replace C<RunOnce> with C<Run>."
42432 msgstr ""
42433
42434 #. type: textblock
42435 #: ../tools/virt-win-reg.pl:678
42436 msgid "Now update the registry:"
42437 msgstr ""
42438
42439 #. type: verbatim
42440 #: ../tools/virt-win-reg.pl:680
42441 #, no-wrap
42442 msgid ""
42443 " virt-win-reg --merge WindowsGuest test.reg\n"
42444 "\n"
42445 msgstr ""
42446
42447 #. type: =head2
42448 #: ../tools/virt-win-reg.pl:682
42449 msgid "INSTALLING A SERVICE"
42450 msgstr ""
42451
42452 #. type: textblock
42453 #: ../tools/virt-win-reg.pl:684
42454 msgid ""
42455 "This section assumes you are familiar with Windows services, and you either "
42456 "have a program which handles the Windows Service Control Protocol directly "
42457 "or you want to run any program using a service wrapper like SrvAny or the "
42458 "free RHSrvAny."
42459 msgstr ""
42460
42461 #. type: textblock
42462 #: ../tools/virt-win-reg.pl:689
42463 msgid ""
42464 "First upload the program and optionally the service wrapper.  In this case "
42465 "the test program is called C<test.exe> and we are using the RHSrvAny "
42466 "wrapper:"
42467 msgstr ""
42468
42469 #. type: verbatim
42470 #: ../tools/virt-win-reg.pl:693
42471 #, no-wrap
42472 msgid ""
42473 " guestfish -i -d WindowsGuest <<EOF\n"
42474 "   upload rhsrvany.exe /rhsrvany.exe\n"
42475 "   upload test.exe /test.exe\n"
42476 " EOF\n"
42477 "\n"
42478 msgstr ""
42479
42480 #. type: textblock
42481 #: ../tools/virt-win-reg.pl:698
42482 msgid ""
42483 "Prepare a regedit file containing the registry changes.  In this example, "
42484 "the first registry change is needed for the service itself or the service "
42485 "wrapper (if used).  The second registry change is only needed because I am "
42486 "using the RHSrvAny service wrapper."
42487 msgstr ""
42488
42489 #. type: verbatim
42490 #: ../tools/virt-win-reg.pl:703
42491 #, no-wrap
42492 msgid ""
42493 " cat > service.reg <<'EOF'\n"
42494 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42495 " \"Type\"=dword:00000010\n"
42496 " \"Start\"=dword:00000002\n"
42497 " \"ErrorControl\"=dword:00000001\n"
42498 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42499 " \"DisplayName\"=\"RHSrvAny\"\n"
42500 " \"ObjectName\"=\"NetworkService\"\n"
42501 " \n"
42502 msgstr ""
42503
42504 #. type: verbatim
42505 #: ../tools/virt-win-reg.pl:712
42506 #, no-wrap
42507 msgid ""
42508 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42509 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42510 " \"PWD\"=\"c:\\\\Temp\"\n"
42511 " EOF\n"
42512 "\n"
42513 msgstr ""
42514
42515 #. type: textblock
42516 #: ../tools/virt-win-reg.pl:723
42517 msgid ""
42518 "For use of C<ControlSet001> see the section above in this manual page.  You "
42519 "may need to adjust this according to the control set that is in use by the "
42520 "guest."
42521 msgstr ""
42522
42523 #. type: textblock
42524 #: ../tools/virt-win-reg.pl:729
42525 msgid ""
42526 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42527 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42528 "privileged account."
42529 msgstr ""
42530
42531 #. type: textblock
42532 #: ../tools/virt-win-reg.pl:735
42533 msgid ""
42534 "For the meaning of the magic numbers, see this Microsoft KB article: "
42535 "L<http://support.microsoft.com/kb/103000>."
42536 msgstr ""
42537
42538 #. type: textblock
42539 #: ../tools/virt-win-reg.pl:740
42540 msgid "Update the registry:"
42541 msgstr ""
42542
42543 #. type: verbatim
42544 #: ../tools/virt-win-reg.pl:742
42545 #, no-wrap
42546 msgid ""
42547 " virt-win-reg --merge WindowsGuest service.reg\n"
42548 "\n"
42549 msgstr ""
42550
42551 #. type: textblock
42552 #: ../tools/virt-win-reg.pl:746
42553 msgid ""
42554 "Be careful when passing parameters containing C<\\> (backslash) in the "
42555 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42556 "(but not both) to protect them from the shell."
42557 msgstr ""
42558
42559 #. type: textblock
42560 #: ../tools/virt-win-reg.pl:750
42561 msgid "Paths and value names are case-insensitive."
42562 msgstr ""
42563
42564 #. type: textblock
42565 #: ../tools/virt-win-reg.pl:759
42566 msgid ""
42567 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
42568 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
42569 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
42570 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42571 msgstr ""
42572
42573 #. type: verbatim
42574 #: ../tools/virt-win-reg.pl:777
42575 #, no-wrap
42576 msgid ""
42577 " export LIBGUESTFS_DEBUG=1\n"
42578 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42579 "\n"
42580 msgstr ""
42581
42582 #. type: textblock
42583 #: ../tools/virt-win-reg.pl:780
42584 msgid ""
42585 "Attach /tmp/virt-win-reg.log to a new bug report at "
42586 "L<https://bugzilla.redhat.com/>"
42587 msgstr ""