7b55259f099d13919c935995c8cbab8613fde396
[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.6\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-24 20:18+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:4494
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:3398 ../fish/guestfish-actions.pod:3709 ../fish/guestfish-actions.pod:3757 ../fish/guestfish-actions.pod:4675 ../fish/guestfish-actions.pod:4695 ../fish/guestfish-actions.pod:4714 ../fish/guestfish-actions.pod:4752 ../fish/guestfish-actions.pod:5480 ../fish/guestfish-actions.pod:5583 ../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:5248 ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5870 ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7238 ../src/guestfs-actions.pod:7298 ../src/guestfs-actions.pod:8352 ../src/guestfs-actions.pod:8461 ../src/guestfs-actions.pod:8641
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:3215 ../fish/guestfish-actions.pod:3447 ../fish/guestfish-actions.pod:3610 ../fish/guestfish-actions.pod:3745 ../fish/guestfish-actions.pod:5116
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:3409 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5285
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:3242 ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:4996
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:4972 ../fish/guestfish-actions.pod:4984 ../fish/guestfish-actions.pod:4995 ../fish/guestfish-actions.pod:5006 ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5146 ../fish/guestfish-actions.pod:5200 ../fish/guestfish-actions.pod:5223
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:3164 ../fish/guestfish-actions.pod:3720 ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:5809 ../src/guestfs-actions.pod:7785
7261 msgid "The optional parameters are:"
7262 msgstr ""
7263
7264 #. type: =item
7265 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5813
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:4151 ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6469
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:4021 ../fish/guestfish-actions.pod:4036 ../fish/guestfish-actions.pod:4112 ../fish/guestfish-actions.pod:4129 ../fish/guestfish-actions.pod:4144 ../fish/guestfish-actions.pod:4813 ../fish/guestfish-actions.pod:4859 ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4959 ../fish/guestfish-actions.pod:5444 ../fish/guestfish-actions.pod:5456 ../fish/guestfish-actions.pod:5474 ../fish/guestfish-actions.pod:5491 ../fish/guestfish-actions.pod:5501 ../fish/guestfish-actions.pod:5555 ../fish/guestfish-actions.pod:5565 ../fish/guestfish-actions.pod:5594 ../fish/guestfish-actions.pod:5604 ../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:6251 ../src/guestfs-actions.pod:6277 ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6434 ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7468 ../src/guestfs-actions.pod:7614 ../src/guestfs-actions.pod:7638 ../src/guestfs-actions.pod:8425 ../src/guestfs-actions.pod:8445 ../src/guestfs-actions.pod:8478 ../src/guestfs-actions.pod:8497 ../src/guestfs-actions.pod:8516 ../src/guestfs-actions.pod:8607 ../src/guestfs-actions.pod:8626 ../src/guestfs-actions.pod:8672 ../src/guestfs-actions.pod:8691
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:3373 ../fish/guestfish-actions.pod:3512 ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:5216 ../src/guestfs-actions.pod:5425 ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:5463
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:2703 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
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:5196 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7995
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:4474 ../fish/guestfish-actions.pod:4576 ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556 ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:7053
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:2570 ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626 ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582 ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
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:2715
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:2722 ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
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:4957 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7632
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:2362 ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388 ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516 ../fish/guestfish-actions.pod:2550 ../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:3634 ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725 ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
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:2353 ../src/guestfs-actions.pod:3136 ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
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:2359 ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
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: textblock
10816 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10817 msgid "The operating system type could not be determined."
10818 msgstr ""
10819
10820 #. type: =head2
10821 #: ../fish/guestfish-actions.pod:2364
10822 msgid "inspect-get-windows-current-control-set"
10823 msgstr ""
10824
10825 #. type: verbatim
10826 #: ../fish/guestfish-actions.pod:2366
10827 #, no-wrap
10828 msgid ""
10829 " inspect-get-windows-current-control-set root\n"
10830 "\n"
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10835 msgid ""
10836 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10837 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10838 msgstr ""
10839
10840 #. type: textblock
10841 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10842 msgid ""
10843 "This call assumes that the guest is Windows and that the Registry could be "
10844 "examined by inspection.  If this is not the case then an error is returned."
10845 msgstr ""
10846
10847 #. type: =head2
10848 #: ../fish/guestfish-actions.pod:2377
10849 msgid "inspect-get-windows-systemroot"
10850 msgstr ""
10851
10852 #. type: verbatim
10853 #: ../fish/guestfish-actions.pod:2379
10854 #, no-wrap
10855 msgid ""
10856 " inspect-get-windows-systemroot root\n"
10857 "\n"
10858 msgstr ""
10859
10860 #. type: textblock
10861 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
10862 msgid ""
10863 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10864 "is a directory path such as C</WINDOWS>."
10865 msgstr ""
10866
10867 #. type: textblock
10868 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
10869 msgid ""
10870 "This call assumes that the guest is Windows and that the systemroot could be "
10871 "determined by inspection.  If this is not the case then an error is "
10872 "returned."
10873 msgstr ""
10874
10875 #. type: =head2
10876 #: ../fish/guestfish-actions.pod:2390
10877 msgid "inspect-is-live"
10878 msgstr ""
10879
10880 #. type: verbatim
10881 #: ../fish/guestfish-actions.pod:2392
10882 #, no-wrap
10883 msgid ""
10884 " inspect-is-live root\n"
10885 "\n"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:2394
10890 msgid ""
10891 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10892 "then this returns true if a live image was detected on the disk."
10893 msgstr ""
10894
10895 #. type: =head2
10896 #: ../fish/guestfish-actions.pod:2400
10897 msgid "inspect-is-multipart"
10898 msgstr ""
10899
10900 #. type: verbatim
10901 #: ../fish/guestfish-actions.pod:2402
10902 #, no-wrap
10903 msgid ""
10904 " inspect-is-multipart root\n"
10905 "\n"
10906 msgstr ""
10907
10908 #. type: textblock
10909 #: ../fish/guestfish-actions.pod:2404
10910 msgid ""
10911 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10912 "then this returns true if the disk is part of a set."
10913 msgstr ""
10914
10915 #. type: =head2
10916 #: ../fish/guestfish-actions.pod:2410
10917 msgid "inspect-is-netinst"
10918 msgstr ""
10919
10920 #. type: verbatim
10921 #: ../fish/guestfish-actions.pod:2412
10922 #, no-wrap
10923 msgid ""
10924 " inspect-is-netinst root\n"
10925 "\n"
10926 msgstr ""
10927
10928 #. type: textblock
10929 #: ../fish/guestfish-actions.pod:2414
10930 msgid ""
10931 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10932 "then this returns true if the disk is a network installer, ie. not a "
10933 "self-contained install CD but one which is likely to require network access "
10934 "to complete the install."
10935 msgstr ""
10936
10937 #. type: =head2
10938 #: ../fish/guestfish-actions.pod:2422
10939 msgid "inspect-list-applications"
10940 msgstr ""
10941
10942 #. type: verbatim
10943 #: ../fish/guestfish-actions.pod:2424
10944 #, no-wrap
10945 msgid ""
10946 " inspect-list-applications root\n"
10947 "\n"
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
10952 msgid "Return the list of applications installed in the operating system."
10953 msgstr ""
10954
10955 #. type: textblock
10956 #: ../fish/guestfish-actions.pod:2428
10957 msgid ""
10958 "I<Note:> This call works differently from other parts of the inspection "
10959 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10960 "then mount up the disks, before calling this.  Listing applications is a "
10961 "significantly more difficult operation which requires access to the full "
10962 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10963 "are just returning data cached in the libguestfs handle, this call actually "
10964 "reads parts of the mounted filesystems during the call."
10965 msgstr ""
10966
10967 #. type: textblock
10968 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
10969 msgid ""
10970 "This returns an empty list if the inspection code was not able to determine "
10971 "the list of applications."
10972 msgstr ""
10973
10974 #. type: textblock
10975 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
10976 msgid "The application structure contains the following fields:"
10977 msgstr ""
10978
10979 #. type: =item
10980 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10981 msgid "C<app_name>"
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
10986 msgid ""
10987 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10988 "guests, this is the package name."
10989 msgstr ""
10990
10991 #. type: =item
10992 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
10993 msgid "C<app_display_name>"
10994 msgstr ""
10995
10996 #. type: textblock
10997 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
10998 msgid ""
10999 "The display name of the application, sometimes localized to the install "
11000 "language of the guest operating system."
11001 msgstr ""
11002
11003 #. type: textblock
11004 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11005 msgid ""
11006 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11007 "to display something can use C<app_name> instead."
11008 msgstr ""
11009
11010 #. type: =item
11011 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11012 msgid "C<app_epoch>"
11013 msgstr ""
11014
11015 #. type: textblock
11016 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11017 msgid ""
11018 "For package managers which use epochs, this contains the epoch of the "
11019 "package (an integer).  If unavailable, this is returned as C<0>."
11020 msgstr ""
11021
11022 #. type: =item
11023 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11024 msgid "C<app_version>"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11029 msgid ""
11030 "The version string of the application or package.  If unavailable this is "
11031 "returned as an empty string C<\"\">."
11032 msgstr ""
11033
11034 #. type: =item
11035 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11036 msgid "C<app_release>"
11037 msgstr ""
11038
11039 #. type: textblock
11040 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11041 msgid ""
11042 "The release string of the application or package, for package managers that "
11043 "use this.  If unavailable this is returned as an empty string C<\"\">."
11044 msgstr ""
11045
11046 #. type: =item
11047 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11048 msgid "C<app_install_path>"
11049 msgstr ""
11050
11051 #. type: textblock
11052 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11053 msgid ""
11054 "The installation path of the application (on operating systems such as "
11055 "Windows which use installation paths).  This path is in the format used by "
11056 "the guest operating system, it is not a libguestfs path."
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11061 msgid "If unavailable this is returned as an empty string C<\"\">."
11062 msgstr ""
11063
11064 #. type: =item
11065 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11066 msgid "C<app_trans_path>"
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11071 msgid ""
11072 "The install path translated into a libguestfs path.  If unavailable this is "
11073 "returned as an empty string C<\"\">."
11074 msgstr ""
11075
11076 #. type: =item
11077 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11078 msgid "C<app_publisher>"
11079 msgstr ""
11080
11081 #. type: textblock
11082 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11083 msgid ""
11084 "The name of the publisher of the application, for package managers that use "
11085 "this.  If unavailable this is returned as an empty string C<\"\">."
11086 msgstr ""
11087
11088 #. type: =item
11089 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11090 msgid "C<app_url>"
11091 msgstr ""
11092
11093 #. type: textblock
11094 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11095 msgid ""
11096 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11097 "returned as an empty string C<\"\">."
11098 msgstr ""
11099
11100 #. type: =item
11101 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11102 msgid "C<app_source_package>"
11103 msgstr ""
11104
11105 #. type: textblock
11106 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11107 msgid ""
11108 "For packaging systems which support this, the name of the source package.  "
11109 "If unavailable this is returned as an empty string C<\"\">."
11110 msgstr ""
11111
11112 #. type: =item
11113 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11114 msgid "C<app_summary>"
11115 msgstr ""
11116
11117 #. type: textblock
11118 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11119 msgid ""
11120 "A short (usually one line) description of the application or package.  If "
11121 "unavailable this is returned as an empty string C<\"\">."
11122 msgstr ""
11123
11124 #. type: =item
11125 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11126 msgid "C<app_description>"
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11131 msgid ""
11132 "A longer description of the application or package.  If unavailable this is "
11133 "returned as an empty string C<\"\">."
11134 msgstr ""
11135
11136 #. type: =head2
11137 #: ../fish/guestfish-actions.pod:2518
11138 msgid "inspect-os"
11139 msgstr ""
11140
11141 #. type: verbatim
11142 #: ../fish/guestfish-actions.pod:2520
11143 #, no-wrap
11144 msgid ""
11145 " inspect-os\n"
11146 "\n"
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11151 msgid ""
11152 "This function uses other libguestfs functions and certain heuristics to "
11153 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11154 "for operating systems."
11155 msgstr ""
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11159 msgid "The list returned is empty if no operating systems were found."
11160 msgstr ""
11161
11162 #. type: textblock
11163 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11164 msgid ""
11165 "If one operating system was found, then this returns a list with a single "
11166 "element, which is the name of the root filesystem of this operating system.  "
11167 "It is also possible for this function to return a list containing more than "
11168 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11169 "element being the root filesystem of one of the operating systems."
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:2535
11174 msgid ""
11175 "You can pass the root string(s) returned to other L</inspect-get-*> "
11176 "functions in order to query further information about each operating system, "
11177 "such as the name and version."
11178 msgstr ""
11179
11180 #. type: textblock
11181 #: ../fish/guestfish-actions.pod:2540
11182 msgid ""
11183 "This function uses other libguestfs features such as L</mount-ro> and "
11184 "L</umount-all> in order to mount and unmount filesystems and look at the "
11185 "contents.  This should be called with no disks currently mounted.  The "
11186 "function may also use Augeas, so any existing Augeas handle will be closed."
11187 msgstr ""
11188
11189 #. type: textblock
11190 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11191 msgid ""
11192 "This function cannot decrypt encrypted disks.  The caller must do that first "
11193 "(supplying the necessary keys) if the disk is encrypted."
11194 msgstr ""
11195
11196 #. type: textblock
11197 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2815
11198 msgid "See also L</list-filesystems>."
11199 msgstr ""
11200
11201 #. type: =head2
11202 #: ../fish/guestfish-actions.pod:2554
11203 msgid "is-blockdev"
11204 msgstr ""
11205
11206 #. type: verbatim
11207 #: ../fish/guestfish-actions.pod:2556
11208 #, no-wrap
11209 msgid ""
11210 " is-blockdev path\n"
11211 "\n"
11212 msgstr ""
11213
11214 #. type: textblock
11215 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11216 msgid ""
11217 "This returns C<true> if and only if there is a block device with the given "
11218 "C<path> name."
11219 msgstr ""
11220
11221 #. type: textblock
11222 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579 ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607 ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651 ../fish/guestfish-actions.pod:2660
11223 msgid "See also L</stat>."
11224 msgstr ""
11225
11226 #. type: =head2
11227 #: ../fish/guestfish-actions.pod:2563
11228 msgid "is-busy"
11229 msgstr ""
11230
11231 #. type: verbatim
11232 #: ../fish/guestfish-actions.pod:2565
11233 #, no-wrap
11234 msgid ""
11235 " is-busy\n"
11236 "\n"
11237 msgstr ""
11238
11239 #. type: textblock
11240 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11241 msgid ""
11242 "This returns true iff this handle is busy processing a command (in the "
11243 "C<BUSY> state)."
11244 msgstr ""
11245
11246 #. type: =head2
11247 #: ../fish/guestfish-actions.pod:2572
11248 msgid "is-chardev"
11249 msgstr ""
11250
11251 #. type: verbatim
11252 #: ../fish/guestfish-actions.pod:2574
11253 #, no-wrap
11254 msgid ""
11255 " is-chardev path\n"
11256 "\n"
11257 msgstr ""
11258
11259 #. type: textblock
11260 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11261 msgid ""
11262 "This returns C<true> if and only if there is a character device with the "
11263 "given C<path> name."
11264 msgstr ""
11265
11266 #. type: =head2
11267 #: ../fish/guestfish-actions.pod:2581
11268 msgid "is-config"
11269 msgstr ""
11270
11271 #. type: verbatim
11272 #: ../fish/guestfish-actions.pod:2583
11273 #, no-wrap
11274 msgid ""
11275 " is-config\n"
11276 "\n"
11277 msgstr ""
11278
11279 #. type: textblock
11280 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11281 msgid ""
11282 "This returns true iff this handle is being configured (in the C<CONFIG> "
11283 "state)."
11284 msgstr ""
11285
11286 #. type: =head2
11287 #: ../fish/guestfish-actions.pod:2590
11288 msgid "is-dir"
11289 msgstr ""
11290
11291 #. type: verbatim
11292 #: ../fish/guestfish-actions.pod:2592
11293 #, no-wrap
11294 msgid ""
11295 " is-dir path\n"
11296 "\n"
11297 msgstr ""
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11301 msgid ""
11302 "This returns C<true> if and only if there is a directory with the given "
11303 "C<path> name.  Note that it returns false for other objects like files."
11304 msgstr ""
11305
11306 #. type: =head2
11307 #: ../fish/guestfish-actions.pod:2600
11308 msgid "is-fifo"
11309 msgstr ""
11310
11311 #. type: verbatim
11312 #: ../fish/guestfish-actions.pod:2602
11313 #, no-wrap
11314 msgid ""
11315 " is-fifo path\n"
11316 "\n"
11317 msgstr ""
11318
11319 #. type: textblock
11320 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11321 msgid ""
11322 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11323 "given C<path> name."
11324 msgstr ""
11325
11326 #. type: =head2
11327 #: ../fish/guestfish-actions.pod:2609
11328 msgid "is-file"
11329 msgstr ""
11330
11331 #. type: verbatim
11332 #: ../fish/guestfish-actions.pod:2611
11333 #, no-wrap
11334 msgid ""
11335 " is-file path\n"
11336 "\n"
11337 msgstr ""
11338
11339 #. type: textblock
11340 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11341 msgid ""
11342 "This returns C<true> if and only if there is a regular file with the given "
11343 "C<path> name.  Note that it returns false for other objects like "
11344 "directories."
11345 msgstr ""
11346
11347 #. type: =head2
11348 #: ../fish/guestfish-actions.pod:2619
11349 msgid "is-launching"
11350 msgstr ""
11351
11352 #. type: verbatim
11353 #: ../fish/guestfish-actions.pod:2621
11354 #, no-wrap
11355 msgid ""
11356 " is-launching\n"
11357 "\n"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11362 msgid ""
11363 "This returns true iff this handle is launching the subprocess (in the "
11364 "C<LAUNCHING> state)."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:2628
11369 msgid "is-lv"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:2630
11374 #, no-wrap
11375 msgid ""
11376 " is-lv device\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11382 msgid ""
11383 "This command tests whether C<device> is a logical volume, and returns true "
11384 "iff this is the case."
11385 msgstr ""
11386
11387 #. type: =head2
11388 #: ../fish/guestfish-actions.pod:2635
11389 msgid "is-ready"
11390 msgstr ""
11391
11392 #. type: verbatim
11393 #: ../fish/guestfish-actions.pod:2637
11394 #, no-wrap
11395 msgid ""
11396 " is-ready\n"
11397 "\n"
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11402 msgid ""
11403 "This returns true iff this handle is ready to accept commands (in the "
11404 "C<READY> state)."
11405 msgstr ""
11406
11407 #. type: =head2
11408 #: ../fish/guestfish-actions.pod:2644
11409 msgid "is-socket"
11410 msgstr ""
11411
11412 #. type: verbatim
11413 #: ../fish/guestfish-actions.pod:2646
11414 #, no-wrap
11415 msgid ""
11416 " is-socket path\n"
11417 "\n"
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11422 msgid ""
11423 "This returns C<true> if and only if there is a Unix domain socket with the "
11424 "given C<path> name."
11425 msgstr ""
11426
11427 #. type: =head2
11428 #: ../fish/guestfish-actions.pod:2653
11429 msgid "is-symlink"
11430 msgstr ""
11431
11432 #. type: verbatim
11433 #: ../fish/guestfish-actions.pod:2655
11434 #, no-wrap
11435 msgid ""
11436 " is-symlink path\n"
11437 "\n"
11438 msgstr ""
11439
11440 #. type: textblock
11441 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11442 msgid ""
11443 "This returns C<true> if and only if there is a symbolic link with the given "
11444 "C<path> name."
11445 msgstr ""
11446
11447 #. type: =head2
11448 #: ../fish/guestfish-actions.pod:2662
11449 msgid "is-zero"
11450 msgstr ""
11451
11452 #. type: verbatim
11453 #: ../fish/guestfish-actions.pod:2664
11454 #, no-wrap
11455 msgid ""
11456 " is-zero path\n"
11457 "\n"
11458 msgstr ""
11459
11460 #. type: textblock
11461 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11462 msgid ""
11463 "This returns true iff the file exists and the file is empty or it contains "
11464 "all zero bytes."
11465 msgstr ""
11466
11467 #. type: =head2
11468 #: ../fish/guestfish-actions.pod:2669
11469 msgid "is-zero-device"
11470 msgstr ""
11471
11472 #. type: verbatim
11473 #: ../fish/guestfish-actions.pod:2671
11474 #, no-wrap
11475 msgid ""
11476 " is-zero-device device\n"
11477 "\n"
11478 msgstr ""
11479
11480 #. type: textblock
11481 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11482 msgid "This returns true iff the device exists and contains all zero bytes."
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11487 msgid "Note that for large devices this can take a long time to run."
11488 msgstr ""
11489
11490 #. type: =head2
11491 #: ../fish/guestfish-actions.pod:2677
11492 msgid "kill-subprocess"
11493 msgstr ""
11494
11495 #. type: verbatim
11496 #: ../fish/guestfish-actions.pod:2679
11497 #, no-wrap
11498 msgid ""
11499 " kill-subprocess\n"
11500 "\n"
11501 msgstr ""
11502
11503 #. type: textblock
11504 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11505 msgid "This kills the qemu subprocess.  You should never need to call this."
11506 msgstr ""
11507
11508 #. type: =head2
11509 #: ../fish/guestfish-actions.pod:2683
11510 msgid "launch"
11511 msgstr ""
11512
11513 #. type: =head2
11514 #: ../fish/guestfish-actions.pod:2685
11515 msgid "run"
11516 msgstr ""
11517
11518 #. type: verbatim
11519 #: ../fish/guestfish-actions.pod:2687
11520 #, no-wrap
11521 msgid ""
11522 " launch\n"
11523 "\n"
11524 msgstr ""
11525
11526 #. type: textblock
11527 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11528 msgid ""
11529 "Internally libguestfs is implemented by running a virtual machine using "
11530 "L<qemu(1)>."
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11535 msgid ""
11536 "You should call this after configuring the handle (eg. adding drives) but "
11537 "before performing any actions."
11538 msgstr ""
11539
11540 #. type: =head2
11541 #: ../fish/guestfish-actions.pod:2695
11542 msgid "lchown"
11543 msgstr ""
11544
11545 #. type: verbatim
11546 #: ../fish/guestfish-actions.pod:2697
11547 #, no-wrap
11548 msgid ""
11549 " lchown owner group path\n"
11550 "\n"
11551 msgstr ""
11552
11553 #. type: textblock
11554 #: ../fish/guestfish-actions.pod:2699
11555 msgid ""
11556 "Change the file owner to C<owner> and group to C<group>.  This is like "
11557 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11558 "the target."
11559 msgstr ""
11560
11561 #. type: =head2
11562 #: ../fish/guestfish-actions.pod:2707
11563 msgid "lgetxattr"
11564 msgstr ""
11565
11566 #. type: verbatim
11567 #: ../fish/guestfish-actions.pod:2709
11568 #, no-wrap
11569 msgid ""
11570 " lgetxattr path name\n"
11571 "\n"
11572 msgstr ""
11573
11574 #. type: textblock
11575 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11576 msgid ""
11577 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11578 "is a symlink, then this call returns an extended attribute from the symlink."
11579 msgstr ""
11580
11581 #. type: textblock
11582 #: ../fish/guestfish-actions.pod:2725
11583 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11584 msgstr ""
11585
11586 #. type: =head2
11587 #: ../fish/guestfish-actions.pod:2727
11588 msgid "lgetxattrs"
11589 msgstr ""
11590
11591 #. type: verbatim
11592 #: ../fish/guestfish-actions.pod:2729
11593 #, no-wrap
11594 msgid ""
11595 " lgetxattrs path\n"
11596 "\n"
11597 msgstr ""
11598
11599 #. type: textblock
11600 #: ../fish/guestfish-actions.pod:2731
11601 msgid ""
11602 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11603 "it returns the extended attributes of the link itself."
11604 msgstr ""
11605
11606 #. type: =head2
11607 #: ../fish/guestfish-actions.pod:2735
11608 msgid "list-9p"
11609 msgstr ""
11610
11611 #. type: verbatim
11612 #: ../fish/guestfish-actions.pod:2737
11613 #, no-wrap
11614 msgid ""
11615 " list-9p\n"
11616 "\n"
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11621 msgid ""
11622 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11623 "returned."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:2742
11628 msgid "list-devices"
11629 msgstr ""
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:2744
11633 #, no-wrap
11634 msgid ""
11635 " list-devices\n"
11636 "\n"
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11641 msgid "List all the block devices."
11642 msgstr ""
11643
11644 #. type: textblock
11645 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11646 msgid "The full block device names are returned, eg. C</dev/sda>."
11647 msgstr ""
11648
11649 #. type: =head2
11650 #: ../fish/guestfish-actions.pod:2752
11651 msgid "list-dm-devices"
11652 msgstr ""
11653
11654 #. type: verbatim
11655 #: ../fish/guestfish-actions.pod:2754
11656 #, no-wrap
11657 msgid ""
11658 " list-dm-devices\n"
11659 "\n"
11660 msgstr ""
11661
11662 #. type: textblock
11663 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11664 msgid "List all device mapper devices."
11665 msgstr ""
11666
11667 #. type: textblock
11668 #: ../fish/guestfish-actions.pod:2758
11669 msgid ""
11670 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11671 "previous call to L</luks-open>."
11672 msgstr ""
11673
11674 #. type: textblock
11675 #: ../fish/guestfish-actions.pod:2761
11676 msgid ""
11677 "Device mapper devices which correspond to logical volumes are I<not> "
11678 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11679 msgstr ""
11680
11681 #. type: =head2
11682 #: ../fish/guestfish-actions.pod:2765
11683 msgid "list-filesystems"
11684 msgstr ""
11685
11686 #. type: verbatim
11687 #: ../fish/guestfish-actions.pod:2767
11688 #, no-wrap
11689 msgid ""
11690 " list-filesystems\n"
11691 "\n"
11692 msgstr ""
11693
11694 #. type: textblock
11695 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11696 msgid ""
11697 "This inspection command looks for filesystems on partitions, block devices "
11698 "and logical volumes, returning a list of devices containing filesystems and "
11699 "their type."
11700 msgstr ""
11701
11702 #. type: textblock
11703 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11704 msgid ""
11705 "The return value is a hash, where the keys are the devices containing "
11706 "filesystems, and the values are the filesystem types.  For example:"
11707 msgstr ""
11708
11709 #. type: verbatim
11710 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11711 #, no-wrap
11712 msgid ""
11713 " \"/dev/sda1\" => \"ntfs\"\n"
11714 " \"/dev/sda2\" => \"ext2\"\n"
11715 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11716 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11717 "\n"
11718 msgstr ""
11719
11720 #. type: textblock
11721 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11722 msgid ""
11723 "The value can have the special value \"unknown\", meaning the content of the "
11724 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:2786
11729 msgid ""
11730 "This command runs other libguestfs commands, which might include L</mount> "
11731 "and L</umount>, and therefore you should use this soon after launch and only "
11732 "when nothing is mounted."
11733 msgstr ""
11734
11735 #. type: textblock
11736 #: ../fish/guestfish-actions.pod:2790
11737 msgid ""
11738 "Not all of the filesystems returned will be mountable.  In particular, swap "
11739 "partitions are returned in the list.  Also this command does not check that "
11740 "each filesystem found is valid and mountable, and some filesystems might be "
11741 "mountable but require special options.  Filesystems may not all belong to a "
11742 "single logical operating system (use L</inspect-os> to look for OSes)."
11743 msgstr ""
11744
11745 #. type: =head2
11746 #: ../fish/guestfish-actions.pod:2798
11747 msgid "list-md-devices"
11748 msgstr ""
11749
11750 #. type: verbatim
11751 #: ../fish/guestfish-actions.pod:2800
11752 #, no-wrap
11753 msgid ""
11754 " list-md-devices\n"
11755 "\n"
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11760 msgid "List all Linux md devices."
11761 msgstr ""
11762
11763 #. type: =head2
11764 #: ../fish/guestfish-actions.pod:2804
11765 msgid "list-partitions"
11766 msgstr ""
11767
11768 #. type: verbatim
11769 #: ../fish/guestfish-actions.pod:2806
11770 #, no-wrap
11771 msgid ""
11772 " list-partitions\n"
11773 "\n"
11774 msgstr ""
11775
11776 #. type: textblock
11777 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4289
11778 msgid "List all the partitions detected on all block devices."
11779 msgstr ""
11780
11781 #. type: textblock
11782 #: ../fish/guestfish-actions.pod:2810 ../src/guestfs-actions.pod:4291
11783 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11784 msgstr ""
11785
11786 #. type: textblock
11787 #: ../fish/guestfish-actions.pod:2812
11788 msgid ""
11789 "This does not return logical volumes.  For that you will need to call "
11790 "L</lvs>."
11791 msgstr ""
11792
11793 #. type: =head2
11794 #: ../fish/guestfish-actions.pod:2817
11795 msgid "ll"
11796 msgstr ""
11797
11798 #. type: verbatim
11799 #: ../fish/guestfish-actions.pod:2819
11800 #, no-wrap
11801 msgid ""
11802 " ll directory\n"
11803 "\n"
11804 msgstr ""
11805
11806 #. type: textblock
11807 #: ../fish/guestfish-actions.pod:2821 ../src/guestfs-actions.pod:4310
11808 msgid ""
11809 "List the files in C<directory> (relative to the root directory, there is no "
11810 "cwd) in the format of 'ls -la'."
11811 msgstr ""
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:2824 ../src/guestfs-actions.pod:4313
11815 msgid ""
11816 "This command is mostly useful for interactive sessions.  It is I<not> "
11817 "intended that you try to parse the output string."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:2827
11822 msgid "ln"
11823 msgstr ""
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:2829
11827 #, no-wrap
11828 msgid ""
11829 " ln target linkname\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
11835 msgid "This command creates a hard link using the C<ln> command."
11836 msgstr ""
11837
11838 #. type: =head2
11839 #: ../fish/guestfish-actions.pod:2833
11840 msgid "ln-f"
11841 msgstr ""
11842
11843 #. type: verbatim
11844 #: ../fish/guestfish-actions.pod:2835
11845 #, no-wrap
11846 msgid ""
11847 " ln-f target linkname\n"
11848 "\n"
11849 msgstr ""
11850
11851 #. type: textblock
11852 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4341
11853 msgid ""
11854 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11855 "option removes the link (C<linkname>) if it exists already."
11856 msgstr ""
11857
11858 #. type: =head2
11859 #: ../fish/guestfish-actions.pod:2840
11860 msgid "ln-s"
11861 msgstr ""
11862
11863 #. type: verbatim
11864 #: ../fish/guestfish-actions.pod:2842
11865 #, no-wrap
11866 msgid ""
11867 " ln-s target linkname\n"
11868 "\n"
11869 msgstr ""
11870
11871 #. type: textblock
11872 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
11873 msgid "This command creates a symbolic link using the C<ln -s> command."
11874 msgstr ""
11875
11876 #. type: =head2
11877 #: ../fish/guestfish-actions.pod:2846
11878 msgid "ln-sf"
11879 msgstr ""
11880
11881 #. type: verbatim
11882 #: ../fish/guestfish-actions.pod:2848
11883 #, no-wrap
11884 msgid ""
11885 " ln-sf target linkname\n"
11886 "\n"
11887 msgstr ""
11888
11889 #. type: textblock
11890 #: ../fish/guestfish-actions.pod:2850 ../src/guestfs-actions.pod:4368
11891 msgid ""
11892 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11893 "option removes the link (C<linkname>) if it exists already."
11894 msgstr ""
11895
11896 #. type: =head2
11897 #: ../fish/guestfish-actions.pod:2853
11898 msgid "lremovexattr"
11899 msgstr ""
11900
11901 #. type: verbatim
11902 #: ../fish/guestfish-actions.pod:2855
11903 #, no-wrap
11904 msgid ""
11905 " lremovexattr xattr path\n"
11906 "\n"
11907 msgstr ""
11908
11909 #. type: textblock
11910 #: ../fish/guestfish-actions.pod:2857
11911 msgid ""
11912 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11913 "it removes an extended attribute of the link itself."
11914 msgstr ""
11915
11916 #. type: =head2
11917 #: ../fish/guestfish-actions.pod:2861
11918 msgid "ls"
11919 msgstr ""
11920
11921 #. type: verbatim
11922 #: ../fish/guestfish-actions.pod:2863
11923 #, no-wrap
11924 msgid ""
11925 " ls directory\n"
11926 "\n"
11927 msgstr ""
11928
11929 #. type: textblock
11930 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4396
11931 msgid ""
11932 "List the files in C<directory> (relative to the root directory, there is no "
11933 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11934 "shown."
11935 msgstr ""
11936
11937 #. type: textblock
11938 #: ../fish/guestfish-actions.pod:2869
11939 msgid ""
11940 "This command is mostly useful for interactive sessions.  Programs should "
11941 "probably use L</readdir> instead."
11942 msgstr ""
11943
11944 #. type: =head2
11945 #: ../fish/guestfish-actions.pod:2872
11946 msgid "lsetxattr"
11947 msgstr ""
11948
11949 #. type: verbatim
11950 #: ../fish/guestfish-actions.pod:2874
11951 #, no-wrap
11952 msgid ""
11953 " lsetxattr xattr val vallen path\n"
11954 "\n"
11955 msgstr ""
11956
11957 #. type: textblock
11958 #: ../fish/guestfish-actions.pod:2876
11959 msgid ""
11960 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11961 "sets an extended attribute of the link itself."
11962 msgstr ""
11963
11964 #. type: =head2
11965 #: ../fish/guestfish-actions.pod:2880
11966 msgid "lstat"
11967 msgstr ""
11968
11969 #. type: verbatim
11970 #: ../fish/guestfish-actions.pod:2882
11971 #, no-wrap
11972 msgid ""
11973 " lstat path\n"
11974 "\n"
11975 msgstr ""
11976
11977 #. type: textblock
11978 #: ../fish/guestfish-actions.pod:2884 ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:7372
11979 msgid "Returns file information for the given C<path>."
11980 msgstr ""
11981
11982 #. type: textblock
11983 #: ../fish/guestfish-actions.pod:2886
11984 msgid ""
11985 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11986 "the link is stat-ed, not the file it refers to."
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4438
11991 msgid "This is the same as the C<lstat(2)> system call."
11992 msgstr ""
11993
11994 #. type: =head2
11995 #: ../fish/guestfish-actions.pod:2892
11996 msgid "lstatlist"
11997 msgstr ""
11998
11999 #. type: verbatim
12000 #: ../fish/guestfish-actions.pod:2894
12001 #, no-wrap
12002 msgid ""
12003 " lstatlist path 'names ...'\n"
12004 "\n"
12005 msgstr ""
12006
12007 #. type: textblock
12008 #: ../fish/guestfish-actions.pod:2896
12009 msgid ""
12010 "This call allows you to perform the L</lstat> operation on multiple files, "
12011 "where all files are in the directory C<path>.  C<names> is the list of files "
12012 "from this directory."
12013 msgstr ""
12014
12015 #. type: textblock
12016 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4457
12017 msgid ""
12018 "On return you get a list of stat structs, with a one-to-one correspondence "
12019 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12020 "then the C<ino> field of that structure is set to C<-1>."
12021 msgstr ""
12022
12023 #. type: textblock
12024 #: ../fish/guestfish-actions.pod:2905
12025 msgid ""
12026 "This call is intended for programs that want to efficiently list a directory "
12027 "contents without making many round-trips.  See also L</lxattrlist> for a "
12028 "similarly efficient call for getting extended attributes.  Very long "
12029 "directory listings might cause the protocol message size to be exceeded, "
12030 "causing this call to fail.  The caller must split up such requests into "
12031 "smaller groups of names."
12032 msgstr ""
12033
12034 #. type: =head2
12035 #: ../fish/guestfish-actions.pod:2913
12036 msgid "luks-add-key"
12037 msgstr ""
12038
12039 #. type: verbatim
12040 #: ../fish/guestfish-actions.pod:2915
12041 #, no-wrap
12042 msgid ""
12043 " luks-add-key device keyslot\n"
12044 "\n"
12045 msgstr ""
12046
12047 #. type: textblock
12048 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4485
12049 msgid ""
12050 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12051 "existing key, and is used to access the device.  C<newkey> is the new key to "
12052 "add.  C<keyslot> is the key slot that will be replaced."
12053 msgstr ""
12054
12055 #. type: textblock
12056 #: ../fish/guestfish-actions.pod:2922
12057 msgid ""
12058 "Note that if C<keyslot> already contains a key, then this command will "
12059 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12060 msgstr ""
12061
12062 #. type: textblock
12063 #: ../fish/guestfish-actions.pod:2926 ../fish/guestfish-actions.pod:2948 ../fish/guestfish-actions.pod:2958 ../fish/guestfish-actions.pod:2969 ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
12064 msgid ""
12065 "This command has one or more key or passphrase parameters.  Guestfish will "
12066 "prompt for these separately."
12067 msgstr ""
12068
12069 #. type: =head2
12070 #: ../fish/guestfish-actions.pod:2929
12071 msgid "luks-close"
12072 msgstr ""
12073
12074 #. type: verbatim
12075 #: ../fish/guestfish-actions.pod:2931
12076 #, no-wrap
12077 msgid ""
12078 " luks-close device\n"
12079 "\n"
12080 msgstr ""
12081
12082 #. type: textblock
12083 #: ../fish/guestfish-actions.pod:2933
12084 msgid ""
12085 "This closes a LUKS device that was created earlier by L</luks-open> or "
12086 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
12087 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12088 "underlying block device."
12089 msgstr ""
12090
12091 #. type: =head2
12092 #: ../fish/guestfish-actions.pod:2939
12093 msgid "luks-format"
12094 msgstr ""
12095
12096 #. type: verbatim
12097 #: ../fish/guestfish-actions.pod:2941
12098 #, no-wrap
12099 msgid ""
12100 " luks-format device keyslot\n"
12101 "\n"
12102 msgstr ""
12103
12104 #. type: textblock
12105 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4526
12106 msgid ""
12107 "This command erases existing data on C<device> and formats the device as a "
12108 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12109 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12110 msgstr ""
12111
12112 #. type: =head2
12113 #: ../fish/guestfish-actions.pod:2951
12114 msgid "luks-format-cipher"
12115 msgstr ""
12116
12117 #. type: verbatim
12118 #: ../fish/guestfish-actions.pod:2953
12119 #, no-wrap
12120 msgid ""
12121 " luks-format-cipher device keyslot cipher\n"
12122 "\n"
12123 msgstr ""
12124
12125 #. type: textblock
12126 #: ../fish/guestfish-actions.pod:2955
12127 msgid ""
12128 "This command is the same as L</luks-format> but it also allows you to set "
12129 "the C<cipher> used."
12130 msgstr ""
12131
12132 #. type: =head2
12133 #: ../fish/guestfish-actions.pod:2961
12134 msgid "luks-kill-slot"
12135 msgstr ""
12136
12137 #. type: verbatim
12138 #: ../fish/guestfish-actions.pod:2963
12139 #, no-wrap
12140 msgid ""
12141 " luks-kill-slot device keyslot\n"
12142 "\n"
12143 msgstr ""
12144
12145 #. type: textblock
12146 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4567
12147 msgid ""
12148 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12149 "device C<device>.  C<key> must be one of the I<other> keys."
12150 msgstr ""
12151
12152 #. type: =head2
12153 #: ../fish/guestfish-actions.pod:2972
12154 msgid "luks-open"
12155 msgstr ""
12156
12157 #. type: verbatim
12158 #: ../fish/guestfish-actions.pod:2974
12159 #, no-wrap
12160 msgid ""
12161 " luks-open device mapname\n"
12162 "\n"
12163 msgstr ""
12164
12165 #. type: textblock
12166 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4587
12167 msgid ""
12168 "This command opens a block device which has been encrypted according to the "
12169 "Linux Unified Key Setup (LUKS) standard."
12170 msgstr ""
12171
12172 #. type: textblock
12173 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4590
12174 msgid "C<device> is the encrypted block device or partition."
12175 msgstr ""
12176
12177 #. type: textblock
12178 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4592
12179 msgid ""
12180 "The caller must supply one of the keys associated with the LUKS block "
12181 "device, in the C<key> parameter."
12182 msgstr ""
12183
12184 #. type: textblock
12185 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4595
12186 msgid ""
12187 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12188 "writes to this block device are decrypted from and encrypted to the "
12189 "underlying C<device> respectively."
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../fish/guestfish-actions.pod:2988
12194 msgid ""
12195 "If this block device contains LVM volume groups, then calling L</vgscan> "
12196 "followed by L</vg-activate-all> will make them visible."
12197 msgstr ""
12198
12199 #. type: textblock
12200 #: ../fish/guestfish-actions.pod:2992
12201 msgid "Use L</list-dm-devices> to list all device mapper devices."
12202 msgstr ""
12203
12204 #. type: =head2
12205 #: ../fish/guestfish-actions.pod:2998
12206 msgid "luks-open-ro"
12207 msgstr ""
12208
12209 #. type: verbatim
12210 #: ../fish/guestfish-actions.pod:3000
12211 #, no-wrap
12212 msgid ""
12213 " luks-open-ro device mapname\n"
12214 "\n"
12215 msgstr ""
12216
12217 #. type: textblock
12218 #: ../fish/guestfish-actions.pod:3002
12219 msgid ""
12220 "This is the same as L</luks-open> except that a read-only mapping is "
12221 "created."
12222 msgstr ""
12223
12224 #. type: =head2
12225 #: ../fish/guestfish-actions.pod:3008
12226 msgid "lvcreate"
12227 msgstr ""
12228
12229 #. type: verbatim
12230 #: ../fish/guestfish-actions.pod:3010
12231 #, no-wrap
12232 msgid ""
12233 " lvcreate logvol volgroup mbytes\n"
12234 "\n"
12235 msgstr ""
12236
12237 #. type: textblock
12238 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4641
12239 msgid ""
12240 "This creates an LVM logical volume called C<logvol> on the volume group "
12241 "C<volgroup>, with C<size> megabytes."
12242 msgstr ""
12243
12244 #. type: =head2
12245 #: ../fish/guestfish-actions.pod:3015
12246 msgid "lvm-canonical-lv-name"
12247 msgstr ""
12248
12249 #. type: verbatim
12250 #: ../fish/guestfish-actions.pod:3017
12251 #, no-wrap
12252 msgid ""
12253 " lvm-canonical-lv-name lvname\n"
12254 "\n"
12255 msgstr ""
12256
12257 #. type: textblock
12258 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4654
12259 msgid ""
12260 "This converts alternative naming schemes for LVs that you might find to the "
12261 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12262 "C</dev/VG/LV>."
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4658
12267 msgid ""
12268 "This command returns an error if the C<lvname> parameter does not refer to a "
12269 "logical volume."
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:3026
12274 msgid "See also L</is-lv>."
12275 msgstr ""
12276
12277 #. type: =head2
12278 #: ../fish/guestfish-actions.pod:3028
12279 msgid "lvm-clear-filter"
12280 msgstr ""
12281
12282 #. type: verbatim
12283 #: ../fish/guestfish-actions.pod:3030
12284 #, no-wrap
12285 msgid ""
12286 " lvm-clear-filter\n"
12287 "\n"
12288 msgstr ""
12289
12290 #. type: textblock
12291 #: ../fish/guestfish-actions.pod:3032
12292 msgid ""
12293 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12294 "block device."
12295 msgstr ""
12296
12297 #. type: textblock
12298 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3063 ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4715
12299 msgid "This command also clears the LVM cache and performs a volume group scan."
12300 msgstr ""
12301
12302 #. type: =head2
12303 #: ../fish/guestfish-actions.pod:3038
12304 msgid "lvm-remove-all"
12305 msgstr ""
12306
12307 #. type: verbatim
12308 #: ../fish/guestfish-actions.pod:3040
12309 #, no-wrap
12310 msgid ""
12311 " lvm-remove-all\n"
12312 "\n"
12313 msgstr ""
12314
12315 #. type: textblock
12316 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4688
12317 msgid ""
12318 "This command removes all LVM logical volumes, volume groups and physical "
12319 "volumes."
12320 msgstr ""
12321
12322 #. type: =head2
12323 #: ../fish/guestfish-actions.pod:3045
12324 msgid "lvm-set-filter"
12325 msgstr ""
12326
12327 #. type: verbatim
12328 #: ../fish/guestfish-actions.pod:3047
12329 #, no-wrap
12330 msgid ""
12331 " lvm-set-filter 'devices ...'\n"
12332 "\n"
12333 msgstr ""
12334
12335 #. type: textblock
12336 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4701
12337 msgid ""
12338 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12339 "block devices in the list C<devices>, and will ignore all other attached "
12340 "block devices."
12341 msgstr ""
12342
12343 #. type: textblock
12344 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4705
12345 msgid ""
12346 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12347 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12348 "there are two types of duplication possible: either cloned PVs/VGs which "
12349 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12350 "same name.  In normal operation you cannot create this situation, but you "
12351 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12352 "inside the LVM metadata."
12353 msgstr ""
12354
12355 #. type: textblock
12356 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4718
12357 msgid "You can filter whole block devices or individual partitions."
12358 msgstr ""
12359
12360 #. type: textblock
12361 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4720
12362 msgid ""
12363 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12364 "filesystem), even if you are not filtering out that VG."
12365 msgstr ""
12366
12367 #. type: =head2
12368 #: ../fish/guestfish-actions.pod:3072
12369 msgid "lvremove"
12370 msgstr ""
12371
12372 #. type: verbatim
12373 #: ../fish/guestfish-actions.pod:3074
12374 #, no-wrap
12375 msgid ""
12376 " lvremove device\n"
12377 "\n"
12378 msgstr ""
12379
12380 #. type: textblock
12381 #: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4734
12382 msgid ""
12383 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12384 "LV, such as C</dev/VG/LV>."
12385 msgstr ""
12386
12387 #. type: textblock
12388 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4737
12389 msgid ""
12390 "You can also remove all LVs in a volume group by specifying the VG name, "
12391 "C</dev/VG>."
12392 msgstr ""
12393
12394 #. type: =head2
12395 #: ../fish/guestfish-actions.pod:3082
12396 msgid "lvrename"
12397 msgstr ""
12398
12399 #. type: verbatim
12400 #: ../fish/guestfish-actions.pod:3084
12401 #, no-wrap
12402 msgid ""
12403 " lvrename logvol newlogvol\n"
12404 "\n"
12405 msgstr ""
12406
12407 #. type: textblock
12408 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
12409 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12410 msgstr ""
12411
12412 #. type: =head2
12413 #: ../fish/guestfish-actions.pod:3088
12414 msgid "lvresize"
12415 msgstr ""
12416
12417 #. type: verbatim
12418 #: ../fish/guestfish-actions.pod:3090
12419 #, no-wrap
12420 msgid ""
12421 " lvresize device mbytes\n"
12422 "\n"
12423 msgstr ""
12424
12425 #. type: textblock
12426 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4764
12427 msgid ""
12428 "This resizes (expands or shrinks) an existing LVM logical volume to "
12429 "C<mbytes>.  When reducing, data in the reduced part is lost."
12430 msgstr ""
12431
12432 #. type: =head2
12433 #: ../fish/guestfish-actions.pod:3096
12434 msgid "lvresize-free"
12435 msgstr ""
12436
12437 #. type: verbatim
12438 #: ../fish/guestfish-actions.pod:3098
12439 #, no-wrap
12440 msgid ""
12441 " lvresize-free lv percent\n"
12442 "\n"
12443 msgstr ""
12444
12445 #. type: textblock
12446 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4779
12447 msgid ""
12448 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12449 "remaining free space in the volume group.  Commonly you would call this with "
12450 "pc = 100 which expands the logical volume as much as possible, using all "
12451 "remaining free space in the volume group."
12452 msgstr ""
12453
12454 #. type: =head2
12455 #: ../fish/guestfish-actions.pod:3106
12456 msgid "lvs"
12457 msgstr ""
12458
12459 #. type: verbatim
12460 #: ../fish/guestfish-actions.pod:3108
12461 #, no-wrap
12462 msgid ""
12463 " lvs\n"
12464 "\n"
12465 msgstr ""
12466
12467 #. type: textblock
12468 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4794
12469 msgid ""
12470 "List all the logical volumes detected.  This is the equivalent of the "
12471 "L<lvs(8)> command."
12472 msgstr ""
12473
12474 #. type: textblock
12475 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4797
12476 msgid ""
12477 "This returns a list of the logical volume device names "
12478 "(eg. C</dev/VolGroup00/LogVol00>)."
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3116
12483 msgid "See also L</lvs-full>, L</list-filesystems>."
12484 msgstr ""
12485
12486 #. type: =head2
12487 #: ../fish/guestfish-actions.pod:3118
12488 msgid "lvs-full"
12489 msgstr ""
12490
12491 #. type: verbatim
12492 #: ../fish/guestfish-actions.pod:3120
12493 #, no-wrap
12494 msgid ""
12495 " lvs-full\n"
12496 "\n"
12497 msgstr ""
12498
12499 #. type: textblock
12500 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4813
12501 msgid ""
12502 "List all the logical volumes detected.  This is the equivalent of the "
12503 "L<lvs(8)> command.  The \"full\" version includes all fields."
12504 msgstr ""
12505
12506 #. type: =head2
12507 #: ../fish/guestfish-actions.pod:3125
12508 msgid "lvuuid"
12509 msgstr ""
12510
12511 #. type: verbatim
12512 #: ../fish/guestfish-actions.pod:3127
12513 #, no-wrap
12514 msgid ""
12515 " lvuuid device\n"
12516 "\n"
12517 msgstr ""
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4828
12521 msgid "This command returns the UUID of the LVM LV C<device>."
12522 msgstr ""
12523
12524 #. type: =head2
12525 #: ../fish/guestfish-actions.pod:3131
12526 msgid "lxattrlist"
12527 msgstr ""
12528
12529 #. type: verbatim
12530 #: ../fish/guestfish-actions.pod:3133
12531 #, no-wrap
12532 msgid ""
12533 " lxattrlist path 'names ...'\n"
12534 "\n"
12535 msgstr ""
12536
12537 #. type: textblock
12538 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4842
12539 msgid ""
12540 "This call allows you to get the extended attributes of multiple files, where "
12541 "all files are in the directory C<path>.  C<names> is the list of files from "
12542 "this directory."
12543 msgstr ""
12544
12545 #. type: textblock
12546 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4846
12547 msgid ""
12548 "On return you get a flat list of xattr structs which must be interpreted "
12549 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12550 "C<attrval> in this struct is zero-length to indicate there was an error "
12551 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12552 "number (the number of following attributes for this file, which could be "
12553 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12554 "attributes for the first named file.  This repeats for the second and "
12555 "subsequent files."
12556 msgstr ""
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:3149
12560 msgid ""
12561 "This call is intended for programs that want to efficiently list a directory "
12562 "contents without making many round-trips.  See also L</lstatlist> for a "
12563 "similarly efficient call for getting standard stats.  Very long directory "
12564 "listings might cause the protocol message size to be exceeded, causing this "
12565 "call to fail.  The caller must split up such requests into smaller groups of "
12566 "names."
12567 msgstr ""
12568
12569 #. type: =head2
12570 #: ../fish/guestfish-actions.pod:3157
12571 msgid "md-create"
12572 msgstr ""
12573
12574 #. type: verbatim
12575 #: ../fish/guestfish-actions.pod:3159
12576 #, no-wrap
12577 msgid ""
12578 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] "
12579 "[chunk:N] [level:..]\n"
12580 "\n"
12581 msgstr ""
12582
12583 #. type: textblock
12584 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4889
12585 msgid ""
12586 "Create a Linux md (RAID) device named C<name> on the devices in the list "
12587 "C<devices>."
12588 msgstr ""
12589
12590 #. type: =item
12591 #: ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:4896
12592 msgid "C<missingbitmap>"
12593 msgstr ""
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4898
12597 msgid ""
12598 "A bitmap of missing devices.  If a bit is set it means that a missing device "
12599 "is added to the array.  The least significant bit corresponds to the first "
12600 "device in the array."
12601 msgstr ""
12602
12603 #. type: textblock
12604 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4902
12605 msgid "As examples:"
12606 msgstr ""
12607
12608 #. type: textblock
12609 #: ../fish/guestfish-actions.pod:3176 ../src/guestfs-actions.pod:4904
12610 msgid ""
12611 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
12612 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4907
12617 msgid ""
12618 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
12619 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3182 ../src/guestfs-actions.pod:4910
12624 msgid "This defaults to C<0> (no missing devices)."
12625 msgstr ""
12626
12627 #. type: textblock
12628 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4912
12629 msgid ""
12630 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
12631 "equal C<nrdevices> + C<spare>."
12632 msgstr ""
12633
12634 #. type: =item
12635 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4915
12636 msgid "C<nrdevices>"
12637 msgstr ""
12638
12639 #. type: textblock
12640 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4917
12641 msgid "The number of active RAID devices."
12642 msgstr ""
12643
12644 #. type: textblock
12645 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4919
12646 msgid ""
12647 "If not set, this defaults to the length of C<devices> plus the number of "
12648 "bits set in C<missingbitmap>."
12649 msgstr ""
12650
12651 #. type: =item
12652 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4922
12653 msgid "C<spare>"
12654 msgstr ""
12655
12656 #. type: textblock
12657 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4924
12658 msgid "The number of spare devices."
12659 msgstr ""
12660
12661 #. type: textblock
12662 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4926
12663 msgid "If not set, this defaults to C<0>."
12664 msgstr ""
12665
12666 #. type: =item
12667 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4928
12668 msgid "C<chunk>"
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4930
12673 msgid "The chunk size in bytes."
12674 msgstr ""
12675
12676 #. type: =item
12677 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:4932 ../src/guestfs-actions.pod:4980
12678 msgid "C<level>"
12679 msgstr ""
12680
12681 #. type: textblock
12682 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4934
12683 msgid ""
12684 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
12685 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
12686 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
12687 "added in future."
12688 msgstr ""
12689
12690 #. type: textblock
12691 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4939
12692 msgid "If not set, this defaults to C<raid1>."
12693 msgstr ""
12694
12695 #. type: =head2
12696 #: ../fish/guestfish-actions.pod:3217
12697 msgid "md-detail"
12698 msgstr ""
12699
12700 #. type: verbatim
12701 #: ../fish/guestfish-actions.pod:3219
12702 #, no-wrap
12703 msgid ""
12704 " md-detail md\n"
12705 "\n"
12706 msgstr ""
12707
12708 #. type: textblock
12709 #: ../fish/guestfish-actions.pod:3221 ../src/guestfs-actions.pod:4975
12710 msgid ""
12711 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
12712 "are usually present in the returned hash. Other fields may also be present."
12713 msgstr ""
12714
12715 #. type: textblock
12716 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:4982
12717 msgid "The raid level of the MD device."
12718 msgstr ""
12719
12720 #. type: =item
12721 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4984
12722 msgid "C<devices>"
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4986
12727 msgid "The number of underlying devices in the MD device."
12728 msgstr ""
12729
12730 #. type: =item
12731 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4988
12732 msgid "C<metadata>"
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4990
12737 msgid "The metadata version used."
12738 msgstr ""
12739
12740 #. type: =item
12741 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4992
12742 msgid "C<uuid>"
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4994
12747 msgid "The UUID of the MD device."
12748 msgstr ""
12749
12750 #. type: textblock
12751 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4998
12752 msgid "The name of the MD device."
12753 msgstr ""
12754
12755 #. type: =head2
12756 #: ../fish/guestfish-actions.pod:3248
12757 msgid "md-stop"
12758 msgstr ""
12759
12760 #. type: verbatim
12761 #: ../fish/guestfish-actions.pod:3250
12762 #, no-wrap
12763 msgid ""
12764 " md-stop md\n"
12765 "\n"
12766 msgstr ""
12767
12768 #. type: textblock
12769 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5014
12770 msgid ""
12771 "This command deactivates the MD array named C<md>.  The device is stopped, "
12772 "but it is not destroyed or zeroed."
12773 msgstr ""
12774
12775 #. type: textblock
12776 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:5017
12777 msgid "The parameter is:"
12778 msgstr ""
12779
12780 #. type: =item
12781 #: ../fish/guestfish-actions.pod:3259 ../src/guestfs-actions.pod:5021
12782 msgid "C<md>"
12783 msgstr ""
12784
12785 #. type: textblock
12786 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:5023
12787 msgid "The md (RAID) device which to be deactivated."
12788 msgstr ""
12789
12790 #. type: =head2
12791 #: ../fish/guestfish-actions.pod:3265
12792 msgid "mkdir"
12793 msgstr ""
12794
12795 #. type: verbatim
12796 #: ../fish/guestfish-actions.pod:3267
12797 #, no-wrap
12798 msgid ""
12799 " mkdir path\n"
12800 "\n"
12801 msgstr ""
12802
12803 #. type: textblock
12804 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5035
12805 msgid "Create a directory named C<path>."
12806 msgstr ""
12807
12808 #. type: =head2
12809 #: ../fish/guestfish-actions.pod:3271
12810 msgid "mkdir-mode"
12811 msgstr ""
12812
12813 #. type: verbatim
12814 #: ../fish/guestfish-actions.pod:3273
12815 #, no-wrap
12816 msgid ""
12817 " mkdir-mode path mode\n"
12818 "\n"
12819 msgstr ""
12820
12821 #. type: textblock
12822 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5048
12823 msgid ""
12824 "This command creates a directory, setting the initial permissions of the "
12825 "directory to C<mode>."
12826 msgstr ""
12827
12828 #. type: textblock
12829 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:5051
12830 msgid ""
12831 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12832 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12833 "other ways."
12834 msgstr ""
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:3282
12838 msgid "See also L</mkdir>, L</umask>"
12839 msgstr ""
12840
12841 #. type: =head2
12842 #: ../fish/guestfish-actions.pod:3284
12843 msgid "mkdir-p"
12844 msgstr ""
12845
12846 #. type: verbatim
12847 #: ../fish/guestfish-actions.pod:3286
12848 #, no-wrap
12849 msgid ""
12850 " mkdir-p path\n"
12851 "\n"
12852 msgstr ""
12853
12854 #. type: textblock
12855 #: ../fish/guestfish-actions.pod:3288 ../src/guestfs-actions.pod:5067
12856 msgid ""
12857 "Create a directory named C<path>, creating any parent directories as "
12858 "necessary.  This is like the C<mkdir -p> shell command."
12859 msgstr ""
12860
12861 #. type: =head2
12862 #: ../fish/guestfish-actions.pod:3291
12863 msgid "mkdtemp"
12864 msgstr ""
12865
12866 #. type: verbatim
12867 #: ../fish/guestfish-actions.pod:3293
12868 #, no-wrap
12869 msgid ""
12870 " mkdtemp template\n"
12871 "\n"
12872 msgstr ""
12873
12874 #. type: textblock
12875 #: ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:5080
12876 msgid ""
12877 "This command creates a temporary directory.  The C<template> parameter "
12878 "should be a full pathname for the temporary directory name with the final "
12879 "six characters being \"XXXXXX\"."
12880 msgstr ""
12881
12882 #. type: textblock
12883 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5085
12884 msgid ""
12885 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12886 "being suitable for Windows filesystems."
12887 msgstr ""
12888
12889 #. type: textblock
12890 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5088
12891 msgid "The name of the temporary directory that was created is returned."
12892 msgstr ""
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5091
12896 msgid "The temporary directory is created with mode 0700 and is owned by root."
12897 msgstr ""
12898
12899 #. type: textblock
12900 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:5094
12901 msgid ""
12902 "The caller is responsible for deleting the temporary directory and its "
12903 "contents after use."
12904 msgstr ""
12905
12906 #. type: textblock
12907 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5097
12908 msgid "See also: L<mkdtemp(3)>"
12909 msgstr ""
12910
12911 #. type: =head2
12912 #: ../fish/guestfish-actions.pod:3314
12913 msgid "mke2fs-J"
12914 msgstr ""
12915
12916 #. type: verbatim
12917 #: ../fish/guestfish-actions.pod:3316
12918 #, no-wrap
12919 msgid ""
12920 " mke2fs-J fstype blocksize device journal\n"
12921 "\n"
12922 msgstr ""
12923
12924 #. type: textblock
12925 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5113
12926 msgid ""
12927 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12928 "C<journal>.  It is equivalent to the command:"
12929 msgstr ""
12930
12931 #. type: verbatim
12932 #: ../fish/guestfish-actions.pod:3322 ../src/guestfs-actions.pod:5117
12933 #, no-wrap
12934 msgid ""
12935 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12936 "\n"
12937 msgstr ""
12938
12939 #. type: textblock
12940 #: ../fish/guestfish-actions.pod:3324
12941 msgid "See also L</mke2journal>."
12942 msgstr ""
12943
12944 #. type: =head2
12945 #: ../fish/guestfish-actions.pod:3326
12946 msgid "mke2fs-JL"
12947 msgstr ""
12948
12949 #. type: verbatim
12950 #: ../fish/guestfish-actions.pod:3328
12951 #, no-wrap
12952 msgid ""
12953 " mke2fs-JL fstype blocksize device label\n"
12954 "\n"
12955 msgstr ""
12956
12957 #. type: textblock
12958 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5134
12959 msgid ""
12960 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12961 "the journal labeled C<label>."
12962 msgstr ""
12963
12964 #. type: textblock
12965 #: ../fish/guestfish-actions.pod:3333
12966 msgid "See also L</mke2journal-L>."
12967 msgstr ""
12968
12969 #. type: =head2
12970 #: ../fish/guestfish-actions.pod:3335
12971 msgid "mke2fs-JU"
12972 msgstr ""
12973
12974 #. type: verbatim
12975 #: ../fish/guestfish-actions.pod:3337
12976 #, no-wrap
12977 msgid ""
12978 " mke2fs-JU fstype blocksize device uuid\n"
12979 "\n"
12980 msgstr ""
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:3339 ../src/guestfs-actions.pod:5152
12984 msgid ""
12985 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12986 "the journal with UUID C<uuid>."
12987 msgstr ""
12988
12989 #. type: textblock
12990 #: ../fish/guestfish-actions.pod:3342
12991 msgid "See also L</mke2journal-U>."
12992 msgstr ""
12993
12994 #. type: =head2
12995 #: ../fish/guestfish-actions.pod:3344
12996 msgid "mke2journal"
12997 msgstr ""
12998
12999 #. type: verbatim
13000 #: ../fish/guestfish-actions.pod:3346
13001 #, no-wrap
13002 msgid ""
13003 " mke2journal blocksize device\n"
13004 "\n"
13005 msgstr ""
13006
13007 #. type: textblock
13008 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5168
13009 msgid ""
13010 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13011 "command:"
13012 msgstr ""
13013
13014 #. type: verbatim
13015 #: ../fish/guestfish-actions.pod:3351 ../src/guestfs-actions.pod:5171
13016 #, no-wrap
13017 msgid ""
13018 " mke2fs -O journal_dev -b blocksize device\n"
13019 "\n"
13020 msgstr ""
13021
13022 #. type: =head2
13023 #: ../fish/guestfish-actions.pod:3353
13024 msgid "mke2journal-L"
13025 msgstr ""
13026
13027 #. type: verbatim
13028 #: ../fish/guestfish-actions.pod:3355
13029 #, no-wrap
13030 msgid ""
13031 " mke2journal-L blocksize label device\n"
13032 "\n"
13033 msgstr ""
13034
13035 #. type: textblock
13036 #: ../fish/guestfish-actions.pod:3357 ../src/guestfs-actions.pod:5185
13037 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13038 msgstr ""
13039
13040 #. type: =head2
13041 #: ../fish/guestfish-actions.pod:3359
13042 msgid "mke2journal-U"
13043 msgstr ""
13044
13045 #. type: verbatim
13046 #: ../fish/guestfish-actions.pod:3361
13047 #, no-wrap
13048 msgid ""
13049 " mke2journal-U blocksize uuid device\n"
13050 "\n"
13051 msgstr ""
13052
13053 #. type: textblock
13054 #: ../fish/guestfish-actions.pod:3363 ../src/guestfs-actions.pod:5199
13055 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13056 msgstr ""
13057
13058 #. type: =head2
13059 #: ../fish/guestfish-actions.pod:3365
13060 msgid "mkfifo"
13061 msgstr ""
13062
13063 #. type: verbatim
13064 #: ../fish/guestfish-actions.pod:3367
13065 #, no-wrap
13066 msgid ""
13067 " mkfifo mode path\n"
13068 "\n"
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3369
13073 msgid ""
13074 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13075 "is just a convenient wrapper around L</mknod>."
13076 msgstr ""
13077
13078 #. type: =head2
13079 #: ../fish/guestfish-actions.pod:3375
13080 msgid "mkfs"
13081 msgstr ""
13082
13083 #. type: verbatim
13084 #: ../fish/guestfish-actions.pod:3377
13085 #, no-wrap
13086 msgid ""
13087 " mkfs fstype device\n"
13088 "\n"
13089 msgstr ""
13090
13091 #. type: textblock
13092 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5229
13093 msgid ""
13094 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13095 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13096 msgstr ""
13097
13098 #. type: =head2
13099 #: ../fish/guestfish-actions.pod:3383
13100 msgid "mkfs-b"
13101 msgstr ""
13102
13103 #. type: verbatim
13104 #: ../fish/guestfish-actions.pod:3385
13105 #, no-wrap
13106 msgid ""
13107 " mkfs-b fstype blocksize device\n"
13108 "\n"
13109 msgstr ""
13110
13111 #. type: textblock
13112 #: ../fish/guestfish-actions.pod:3387
13113 msgid ""
13114 "This call is similar to L</mkfs>, but it allows you to control the block "
13115 "size of the resulting filesystem.  Supported block sizes depend on the "
13116 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../fish/guestfish-actions.pod:3392 ../fish/guestfish-actions.pod:3419 ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5295
13121 msgid ""
13122 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13123 "cluster size."
13124 msgstr ""
13125
13126 #. type: textblock
13127 #: ../fish/guestfish-actions.pod:3395
13128 msgid ""
13129 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13130 "instead."
13131 msgstr ""
13132
13133 #. type: =head2
13134 #: ../fish/guestfish-actions.pod:3402
13135 msgid "mkfs-opts"
13136 msgstr ""
13137
13138 #. type: verbatim
13139 #: ../fish/guestfish-actions.pod:3404
13140 #, no-wrap
13141 msgid ""
13142 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] "
13143 "[sectorsize:N]\n"
13144 "\n"
13145 msgstr ""
13146
13147 #. type: textblock
13148 #: ../fish/guestfish-actions.pod:3406 ../src/guestfs-actions.pod:5282
13149 msgid ""
13150 "This function creates a filesystem on C<device>.  The filesystem type is "
13151 "C<fstype>, for example C<ext3>."
13152 msgstr ""
13153
13154 #. type: =item
13155 #: ../fish/guestfish-actions.pod:3413 ../src/guestfs-actions.pod:5289
13156 msgid "C<blocksize>"
13157 msgstr ""
13158
13159 #. type: textblock
13160 #: ../fish/guestfish-actions.pod:3415 ../src/guestfs-actions.pod:5291
13161 msgid ""
13162 "The filesystem block size.  Supported block sizes depend on the filesystem "
13163 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13164 "filesystems."
13165 msgstr ""
13166
13167 #. type: textblock
13168 #: ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:5298
13169 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13170 msgstr ""
13171
13172 #. type: =item
13173 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5300
13174 msgid "C<features>"
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5302
13179 msgid "This passes the I<-O> parameter to the external mkfs program."
13180 msgstr ""
13181
13182 #. type: textblock
13183 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5304
13184 msgid ""
13185 "For certain filesystem types, this allows extra filesystem features to be "
13186 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13187 msgstr ""
13188
13189 #. type: textblock
13190 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5308
13191 msgid ""
13192 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13193 "type."
13194 msgstr ""
13195
13196 #. type: =item
13197 #: ../fish/guestfish-actions.pod:3435 ../src/guestfs-actions.pod:5311
13198 msgid "C<inode>"
13199 msgstr ""
13200
13201 #. type: textblock
13202 #: ../fish/guestfish-actions.pod:3437 ../src/guestfs-actions.pod:5313
13203 msgid ""
13204 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13205 "sets the inode size (only for ext2/3/4 filesystems at present)."
13206 msgstr ""
13207
13208 #. type: =item
13209 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5316
13210 msgid "C<sectorsize>"
13211 msgstr ""
13212
13213 #. type: textblock
13214 #: ../fish/guestfish-actions.pod:3442 ../src/guestfs-actions.pod:5318
13215 msgid ""
13216 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13217 "sets sector size for ufs filesystem."
13218 msgstr ""
13219
13220 #. type: =head2
13221 #: ../fish/guestfish-actions.pod:3449
13222 msgid "mkmountpoint"
13223 msgstr ""
13224
13225 #. type: verbatim
13226 #: ../fish/guestfish-actions.pod:3451
13227 #, no-wrap
13228 msgid ""
13229 " mkmountpoint exemptpath\n"
13230 "\n"
13231 msgstr ""
13232
13233 #. type: textblock
13234 #: ../fish/guestfish-actions.pod:3453
13235 msgid ""
13236 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13237 "to create extra mountpoints before mounting the first filesystem."
13238 msgstr ""
13239
13240 #. type: textblock
13241 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5361
13242 msgid ""
13243 "These calls are I<only> necessary in some very limited circumstances, mainly "
13244 "the case where you want to mount a mix of unrelated and/or read-only "
13245 "filesystems together."
13246 msgstr ""
13247
13248 #. type: textblock
13249 #: ../fish/guestfish-actions.pod:3461 ../src/guestfs-actions.pod:5365
13250 msgid ""
13251 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13252 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13253 "inside that.  You can unpack this as follows in guestfish:"
13254 msgstr ""
13255
13256 #. type: verbatim
13257 #: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5370
13258 #, no-wrap
13259 msgid ""
13260 " add-ro Fedora-11-i686-Live.iso\n"
13261 " run\n"
13262 " mkmountpoint /cd\n"
13263 " mkmountpoint /sqsh\n"
13264 " mkmountpoint /ext3fs\n"
13265 " mount /dev/sda /cd\n"
13266 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13267 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13268 "\n"
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5379
13273 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13274 msgstr ""
13275
13276 #. type: textblock
13277 #: ../fish/guestfish-actions.pod:3477
13278 msgid ""
13279 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13280 "unexpected errors if you try to mix these calls.  It is safest to manually "
13281 "unmount filesystems and remove mountpoints after use."
13282 msgstr ""
13283
13284 #. type: textblock
13285 #: ../fish/guestfish-actions.pod:3481
13286 msgid ""
13287 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13288 "for this to work for manual mountpoints, you must ensure that the innermost "
13289 "mountpoints have the longest pathnames, as in the example code above."
13290 msgstr ""
13291
13292 #. type: textblock
13293 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5390
13294 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13295 msgstr ""
13296
13297 #. type: textblock
13298 #: ../fish/guestfish-actions.pod:3488
13299 msgid ""
13300 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13301 "L</umount-all> to be called when the handle is closed which can also trigger "
13302 "these issues."
13303 msgstr ""
13304
13305 #. type: =head2
13306 #: ../fish/guestfish-actions.pod:3492
13307 msgid "mknod"
13308 msgstr ""
13309
13310 #. type: verbatim
13311 #: ../fish/guestfish-actions.pod:3494
13312 #, no-wrap
13313 msgid ""
13314 " mknod mode devmajor devminor path\n"
13315 "\n"
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:3496 ../src/guestfs-actions.pod:5409
13320 msgid ""
13321 "This call creates block or character special devices, or named pipes "
13322 "(FIFOs)."
13323 msgstr ""
13324
13325 #. type: textblock
13326 #: ../fish/guestfish-actions.pod:3499 ../src/guestfs-actions.pod:5412
13327 msgid ""
13328 "The C<mode> parameter should be the mode, using the standard constants.  "
13329 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13330 "used when creating block and character special devices."
13331 msgstr ""
13332
13333 #. type: textblock
13334 #: ../fish/guestfish-actions.pod:3504
13335 msgid ""
13336 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13337 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13338 "regular file).  These constants are available in the standard Linux header "
13339 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13340 "wrappers around this command which bitwise OR in the appropriate constant "
13341 "for you."
13342 msgstr ""
13343
13344 #. type: =head2
13345 #: ../fish/guestfish-actions.pod:3514
13346 msgid "mknod-b"
13347 msgstr ""
13348
13349 #. type: verbatim
13350 #: ../fish/guestfish-actions.pod:3516
13351 #, no-wrap
13352 msgid ""
13353 " mknod-b mode devmajor devminor path\n"
13354 "\n"
13355 msgstr ""
13356
13357 #. type: textblock
13358 #: ../fish/guestfish-actions.pod:3518
13359 msgid ""
13360 "This call creates a block device node called C<path> with mode C<mode> and "
13361 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13362 "wrapper around L</mknod>."
13363 msgstr ""
13364
13365 #. type: =head2
13366 #: ../fish/guestfish-actions.pod:3524
13367 msgid "mknod-c"
13368 msgstr ""
13369
13370 #. type: verbatim
13371 #: ../fish/guestfish-actions.pod:3526
13372 #, no-wrap
13373 msgid ""
13374 " mknod-c mode devmajor devminor path\n"
13375 "\n"
13376 msgstr ""
13377
13378 #. type: textblock
13379 #: ../fish/guestfish-actions.pod:3528
13380 msgid ""
13381 "This call creates a char device node called C<path> with mode C<mode> and "
13382 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13383 "wrapper around L</mknod>."
13384 msgstr ""
13385
13386 #. type: =head2
13387 #: ../fish/guestfish-actions.pod:3534
13388 msgid "mkswap"
13389 msgstr ""
13390
13391 #. type: verbatim
13392 #: ../fish/guestfish-actions.pod:3536
13393 #, no-wrap
13394 msgid ""
13395 " mkswap device\n"
13396 "\n"
13397 msgstr ""
13398
13399 #. type: textblock
13400 #: ../fish/guestfish-actions.pod:3538 ../src/guestfs-actions.pod:5475
13401 msgid "Create a swap partition on C<device>."
13402 msgstr ""
13403
13404 #. type: =head2
13405 #: ../fish/guestfish-actions.pod:3540
13406 msgid "mkswap-L"
13407 msgstr ""
13408
13409 #. type: verbatim
13410 #: ../fish/guestfish-actions.pod:3542
13411 #, no-wrap
13412 msgid ""
13413 " mkswap-L label device\n"
13414 "\n"
13415 msgstr ""
13416
13417 #. type: textblock
13418 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5488
13419 msgid "Create a swap partition on C<device> with label C<label>."
13420 msgstr ""
13421
13422 #. type: textblock
13423 #: ../fish/guestfish-actions.pod:3546 ../src/guestfs-actions.pod:5490
13424 msgid ""
13425 "Note that you cannot attach a swap label to a block device "
13426 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13427 "the kernel or swap tools."
13428 msgstr ""
13429
13430 #. type: =head2
13431 #: ../fish/guestfish-actions.pod:3550
13432 msgid "mkswap-U"
13433 msgstr ""
13434
13435 #. type: verbatim
13436 #: ../fish/guestfish-actions.pod:3552
13437 #, no-wrap
13438 msgid ""
13439 " mkswap-U uuid device\n"
13440 "\n"
13441 msgstr ""
13442
13443 #. type: textblock
13444 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5505
13445 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13446 msgstr ""
13447
13448 #. type: =head2
13449 #: ../fish/guestfish-actions.pod:3556
13450 msgid "mkswap-file"
13451 msgstr ""
13452
13453 #. type: verbatim
13454 #: ../fish/guestfish-actions.pod:3558
13455 #, no-wrap
13456 msgid ""
13457 " mkswap-file path\n"
13458 "\n"
13459 msgstr ""
13460
13461 #. type: textblock
13462 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5517
13463 msgid "Create a swap file."
13464 msgstr ""
13465
13466 #. type: textblock
13467 #: ../fish/guestfish-actions.pod:3562
13468 msgid ""
13469 "This command just writes a swap file signature to an existing file.  To "
13470 "create the file itself, use something like L</fallocate>."
13471 msgstr ""
13472
13473 #. type: =head2
13474 #: ../fish/guestfish-actions.pod:3565
13475 msgid "modprobe"
13476 msgstr ""
13477
13478 #. type: verbatim
13479 #: ../fish/guestfish-actions.pod:3567
13480 #, no-wrap
13481 msgid ""
13482 " modprobe modulename\n"
13483 "\n"
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5532
13488 msgid "This loads a kernel module in the appliance."
13489 msgstr ""
13490
13491 #. type: textblock
13492 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5534
13493 msgid ""
13494 "The kernel module must have been whitelisted when libguestfs was built (see "
13495 "C<appliance/kmod.whitelist.in> in the source)."
13496 msgstr ""
13497
13498 #. type: =head2
13499 #: ../fish/guestfish-actions.pod:3574
13500 msgid "mount"
13501 msgstr ""
13502
13503 #. type: verbatim
13504 #: ../fish/guestfish-actions.pod:3576
13505 #, no-wrap
13506 msgid ""
13507 " mount device mountpoint\n"
13508 "\n"
13509 msgstr ""
13510
13511 #. type: textblock
13512 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5548
13513 msgid ""
13514 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13515 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13516 "those block devices contain partitions, they will have the usual names "
13517 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13518 msgstr ""
13519
13520 #. type: textblock
13521 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5554
13522 msgid ""
13523 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13524 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13525 "mounted on directories which already exist."
13526 msgstr ""
13527
13528 #. type: textblock
13529 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5559
13530 msgid ""
13531 "The mounted filesystem is writable, if we have sufficient permissions on the "
13532 "underlying device."
13533 msgstr ""
13534
13535 #. type: textblock
13536 #: ../fish/guestfish-actions.pod:3592
13537 msgid ""
13538 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13539 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13540 "problems for users.  If your program might need to work with older versions "
13541 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13542 "first parameter if you don't want any options)."
13543 msgstr ""
13544
13545 #. type: =head2
13546 #: ../fish/guestfish-actions.pod:3599
13547 msgid "mount-9p"
13548 msgstr ""
13549
13550 #. type: verbatim
13551 #: ../fish/guestfish-actions.pod:3601
13552 #, no-wrap
13553 msgid ""
13554 " mount-9p mounttag mountpoint [options:..]\n"
13555 "\n"
13556 msgstr ""
13557
13558 #. type: textblock
13559 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5588
13560 msgid ""
13561 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13562 "C<mountpoint>."
13563 msgstr ""
13564
13565 #. type: textblock
13566 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5591
13567 msgid ""
13568 "If required, C<trans=virtio> will be automatically added to the options.  "
13569 "Any other options required can be passed in the optional C<options> "
13570 "parameter."
13571 msgstr ""
13572
13573 #. type: =head2
13574 #: ../fish/guestfish-actions.pod:3612
13575 msgid "mount-loop"
13576 msgstr ""
13577
13578 #. type: verbatim
13579 #: ../fish/guestfish-actions.pod:3614
13580 #, no-wrap
13581 msgid ""
13582 " mount-loop file mountpoint\n"
13583 "\n"
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5630
13588 msgid ""
13589 "This command lets you mount C<file> (a filesystem image in a file) on a "
13590 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13591 "mountpoint>."
13592 msgstr ""
13593
13594 #. type: =head2
13595 #: ../fish/guestfish-actions.pod:3620
13596 msgid "mount-options"
13597 msgstr ""
13598
13599 #. type: verbatim
13600 #: ../fish/guestfish-actions.pod:3622
13601 #, no-wrap
13602 msgid ""
13603 " mount-options options device mountpoint\n"
13604 "\n"
13605 msgstr ""
13606
13607 #. type: textblock
13608 #: ../fish/guestfish-actions.pod:3624
13609 msgid ""
13610 "This is the same as the L</mount> command, but it allows you to set the "
13611 "mount options as for the L<mount(8)> I<-o> flag."
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5650
13616 msgid ""
13617 "If the C<options> parameter is an empty string, then no options are passed "
13618 "(all options default to whatever the filesystem uses)."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../fish/guestfish-actions.pod:3632
13623 msgid "mount-ro"
13624 msgstr ""
13625
13626 #. type: verbatim
13627 #: ../fish/guestfish-actions.pod:3634
13628 #, no-wrap
13629 msgid ""
13630 " mount-ro device mountpoint\n"
13631 "\n"
13632 msgstr ""
13633
13634 #. type: textblock
13635 #: ../fish/guestfish-actions.pod:3636
13636 msgid ""
13637 "This is the same as the L</mount> command, but it mounts the filesystem with "
13638 "the read-only (I<-o ro>) flag."
13639 msgstr ""
13640
13641 #. type: =head2
13642 #: ../fish/guestfish-actions.pod:3639
13643 msgid "mount-vfs"
13644 msgstr ""
13645
13646 #. type: verbatim
13647 #: ../fish/guestfish-actions.pod:3641
13648 #, no-wrap
13649 msgid ""
13650 " mount-vfs options vfstype device mountpoint\n"
13651 "\n"
13652 msgstr ""
13653
13654 #. type: textblock
13655 #: ../fish/guestfish-actions.pod:3643
13656 msgid ""
13657 "This is the same as the L</mount> command, but it allows you to set both the "
13658 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13659 msgstr ""
13660
13661 #. type: =head2
13662 #: ../fish/guestfish-actions.pod:3647
13663 msgid "mountpoints"
13664 msgstr ""
13665
13666 #. type: verbatim
13667 #: ../fish/guestfish-actions.pod:3649
13668 #, no-wrap
13669 msgid ""
13670 " mountpoints\n"
13671 "\n"
13672 msgstr ""
13673
13674 #. type: textblock
13675 #: ../fish/guestfish-actions.pod:3651
13676 msgid ""
13677 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13678 "This one returns a hash table (map) of device name to directory where the "
13679 "device is mounted."
13680 msgstr ""
13681
13682 #. type: =head2
13683 #: ../fish/guestfish-actions.pod:3655
13684 msgid "mounts"
13685 msgstr ""
13686
13687 #. type: verbatim
13688 #: ../fish/guestfish-actions.pod:3657
13689 #, no-wrap
13690 msgid ""
13691 " mounts\n"
13692 "\n"
13693 msgstr ""
13694
13695 #. type: textblock
13696 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5711
13697 msgid ""
13698 "This returns the list of currently mounted filesystems.  It returns the list "
13699 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5714
13704 msgid "Some internal mounts are not shown."
13705 msgstr ""
13706
13707 #. type: textblock
13708 #: ../fish/guestfish-actions.pod:3664
13709 msgid "See also: L</mountpoints>"
13710 msgstr ""
13711
13712 #. type: =head2
13713 #: ../fish/guestfish-actions.pod:3666
13714 msgid "mv"
13715 msgstr ""
13716
13717 #. type: verbatim
13718 #: ../fish/guestfish-actions.pod:3668
13719 #, no-wrap
13720 msgid ""
13721 " mv src dest\n"
13722 "\n"
13723 msgstr ""
13724
13725 #. type: textblock
13726 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5731
13727 msgid ""
13728 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13729 "destination filename or destination directory."
13730 msgstr ""
13731
13732 #. type: =head2
13733 #: ../fish/guestfish-actions.pod:3673
13734 msgid "ntfs-3g-probe"
13735 msgstr ""
13736
13737 #. type: verbatim
13738 #: ../fish/guestfish-actions.pod:3675
13739 #, no-wrap
13740 msgid ""
13741 " ntfs-3g-probe true|false device\n"
13742 "\n"
13743 msgstr ""
13744
13745 #. type: textblock
13746 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5745
13747 msgid ""
13748 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13749 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13750 "read-write, and some cannot be mounted at all)."
13751 msgstr ""
13752
13753 #. type: textblock
13754 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5749
13755 msgid ""
13756 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13757 "can be mounted read-write.  Set it to false if you want to test if the "
13758 "volume can be mounted read-only."
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5753
13763 msgid ""
13764 "The return value is an integer which C<0> if the operation would succeed, or "
13765 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13766 msgstr ""
13767
13768 #. type: =head2
13769 #: ../fish/guestfish-actions.pod:3689
13770 msgid "ntfsresize"
13771 msgstr ""
13772
13773 #. type: verbatim
13774 #: ../fish/guestfish-actions.pod:3691
13775 #, no-wrap
13776 msgid ""
13777 " ntfsresize device\n"
13778 "\n"
13779 msgstr ""
13780
13781 #. type: textblock
13782 #: ../fish/guestfish-actions.pod:3693 ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5806
13783 msgid ""
13784 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13785 "size of the underlying device."
13786 msgstr ""
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5777
13790 msgid ""
13791 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13792 "consistency check (for safety).  You have to boot into Windows to perform "
13793 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13794 "resize filesystems which have been marked in this way.  So in effect it is "
13795 "not possible to call ntfsresize multiple times on a single filesystem "
13796 "without booting into Windows between each resize."
13797 msgstr ""
13798
13799 #. type: textblock
13800 #: ../fish/guestfish-actions.pod:3704 ../fish/guestfish-actions.pod:3743 ../src/guestfs-actions.pod:5785 ../src/guestfs-actions.pod:5832
13801 msgid "See also L<ntfsresize(8)>."
13802 msgstr ""
13803
13804 #. type: textblock
13805 #: ../fish/guestfish-actions.pod:3706 ../fish/guestfish-actions.pod:3754
13806 msgid ""
13807 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13808 "call instead."
13809 msgstr ""
13810
13811 #. type: =head2
13812 #: ../fish/guestfish-actions.pod:3713
13813 msgid "ntfsresize-opts"
13814 msgstr ""
13815
13816 #. type: verbatim
13817 #: ../fish/guestfish-actions.pod:3715
13818 #, no-wrap
13819 msgid ""
13820 " ntfsresize-opts device [size:N] [force:true|false]\n"
13821 "\n"
13822 msgstr ""
13823
13824 #. type: textblock
13825 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5815
13826 msgid ""
13827 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13828 "resized to fit the container (eg. partition)."
13829 msgstr ""
13830
13831 #. type: =item
13832 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:5050 ../src/guestfs-actions.pod:5818 ../src/guestfs-actions.pod:7789
13833 msgid "C<force>"
13834 msgstr ""
13835
13836 #. type: textblock
13837 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5820
13838 msgid ""
13839 "If this option is true, then force the resize of the filesystem even if the "
13840 "filesystem is marked as requiring a consistency check."
13841 msgstr ""
13842
13843 #. type: textblock
13844 #: ../fish/guestfish-actions.pod:3734
13845 msgid ""
13846 "After the resize operation, the filesystem is always marked as requiring a "
13847 "consistency check (for safety).  You have to boot into Windows to perform "
13848 "this check and clear this condition.  If you I<don't> set the C<force> "
13849 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13850 "a single filesystem without booting into Windows between each resize."
13851 msgstr ""
13852
13853 #. type: =head2
13854 #: ../fish/guestfish-actions.pod:3747
13855 msgid "ntfsresize-size"
13856 msgstr ""
13857
13858 #. type: verbatim
13859 #: ../fish/guestfish-actions.pod:3749
13860 #, no-wrap
13861 msgid ""
13862 " ntfsresize-size device size\n"
13863 "\n"
13864 msgstr ""
13865
13866 #. type: textblock
13867 #: ../fish/guestfish-actions.pod:3751
13868 msgid ""
13869 "This command is the same as L</ntfsresize> except that it allows you to "
13870 "specify the new size (in bytes) explicitly."
13871 msgstr ""
13872
13873 #. type: =head2
13874 #: ../fish/guestfish-actions.pod:3761
13875 msgid "part-add"
13876 msgstr ""
13877
13878 #. type: verbatim
13879 #: ../fish/guestfish-actions.pod:3763
13880 #, no-wrap
13881 msgid ""
13882 " part-add device prlogex startsect endsect\n"
13883 "\n"
13884 msgstr ""
13885
13886 #. type: textblock
13887 #: ../fish/guestfish-actions.pod:3765
13888 msgid ""
13889 "This command adds a partition to C<device>.  If there is no partition table "
13890 "on the device, call L</part-init> first."
13891 msgstr ""
13892
13893 #. type: textblock
13894 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5893
13895 msgid ""
13896 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13897 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13898 "C<logical>) and C<e> (or C<extended>) partition types."
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:3773 ../src/guestfs-actions.pod:5898
13903 msgid ""
13904 "C<startsect> and C<endsect> are the start and end of the partition in "
13905 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13906 "from the end of the disk (C<-1> is the last sector)."
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:3777
13911 msgid ""
13912 "Creating a partition which covers the whole disk is not so easy.  Use "
13913 "L</part-disk> to do that."
13914 msgstr ""
13915
13916 #. type: =head2
13917 #: ../fish/guestfish-actions.pod:3780
13918 msgid "part-del"
13919 msgstr ""
13920
13921 #. type: verbatim
13922 #: ../fish/guestfish-actions.pod:3782
13923 #, no-wrap
13924 msgid ""
13925 " part-del device partnum\n"
13926 "\n"
13927 msgstr ""
13928
13929 #. type: textblock
13930 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5916
13931 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13932 msgstr ""
13933
13934 #. type: textblock
13935 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5918
13936 msgid ""
13937 "Note that in the case of MBR partitioning, deleting an extended partition "
13938 "also deletes any logical partitions it contains."
13939 msgstr ""
13940
13941 #. type: =head2
13942 #: ../fish/guestfish-actions.pod:3790
13943 msgid "part-disk"
13944 msgstr ""
13945
13946 #. type: verbatim
13947 #: ../fish/guestfish-actions.pod:3792
13948 #, no-wrap
13949 msgid ""
13950 " part-disk device parttype\n"
13951 "\n"
13952 msgstr ""
13953
13954 #. type: textblock
13955 #: ../fish/guestfish-actions.pod:3794
13956 msgid ""
13957 "This command is simply a combination of L</part-init> followed by "
13958 "L</part-add> to create a single primary partition covering the whole disk."
13959 msgstr ""
13960
13961 #. type: textblock
13962 #: ../fish/guestfish-actions.pod:3798
13963 msgid ""
13964 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13965 "possible values are described in L</part-init>."
13966 msgstr ""
13967
13968 #. type: =head2
13969 #: ../fish/guestfish-actions.pod:3801
13970 msgid "part-get-bootable"
13971 msgstr ""
13972
13973 #. type: verbatim
13974 #: ../fish/guestfish-actions.pod:3803
13975 #, no-wrap
13976 msgid ""
13977 " part-get-bootable device partnum\n"
13978 "\n"
13979 msgstr ""
13980
13981 #. type: textblock
13982 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5951
13983 msgid ""
13984 "This command returns true if the partition C<partnum> on C<device> has the "
13985 "bootable flag set."
13986 msgstr ""
13987
13988 #. type: textblock
13989 #: ../fish/guestfish-actions.pod:3808
13990 msgid "See also L</part-set-bootable>."
13991 msgstr ""
13992
13993 #. type: =head2
13994 #: ../fish/guestfish-actions.pod:3810
13995 msgid "part-get-mbr-id"
13996 msgstr ""
13997
13998 #. type: verbatim
13999 #: ../fish/guestfish-actions.pod:3812
14000 #, no-wrap
14001 msgid ""
14002 " part-get-mbr-id device partnum\n"
14003 "\n"
14004 msgstr ""
14005
14006 #. type: textblock
14007 #: ../fish/guestfish-actions.pod:3814 ../src/guestfs-actions.pod:5967
14008 msgid ""
14009 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14010 "partition C<partnum>."
14011 msgstr ""
14012
14013 #. type: textblock
14014 #: ../fish/guestfish-actions.pod:3817 ../fish/guestfish-actions.pod:3961
14015 msgid ""
14016 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14017 "undefined results for other partition table types (see "
14018 "L</part-get-parttype>)."
14019 msgstr ""
14020
14021 #. type: =head2
14022 #: ../fish/guestfish-actions.pod:3821
14023 msgid "part-get-parttype"
14024 msgstr ""
14025
14026 #. type: verbatim
14027 #: ../fish/guestfish-actions.pod:3823
14028 #, no-wrap
14029 msgid ""
14030 " part-get-parttype device\n"
14031 "\n"
14032 msgstr ""
14033
14034 #. type: textblock
14035 #: ../fish/guestfish-actions.pod:3825 ../src/guestfs-actions.pod:5984
14036 msgid ""
14037 "This command examines the partition table on C<device> and returns the "
14038 "partition table type (format) being used."
14039 msgstr ""
14040
14041 #. type: textblock
14042 #: ../fish/guestfish-actions.pod:3828
14043 msgid ""
14044 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14045 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14046 "possible, although unusual.  See L</part-init> for a full list."
14047 msgstr ""
14048
14049 #. type: =head2
14050 #: ../fish/guestfish-actions.pod:3833
14051 msgid "part-init"
14052 msgstr ""
14053
14054 #. type: verbatim
14055 #: ../fish/guestfish-actions.pod:3835
14056 #, no-wrap
14057 msgid ""
14058 " part-init device parttype\n"
14059 "\n"
14060 msgstr ""
14061
14062 #. type: textblock
14063 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:6004
14064 msgid ""
14065 "This creates an empty partition table on C<device> of one of the partition "
14066 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14067 "(for large disks)."
14068 msgstr ""
14069
14070 #. type: textblock
14071 #: ../fish/guestfish-actions.pod:3841
14072 msgid ""
14073 "Initially there are no partitions.  Following this, you should call "
14074 "L</part-add> for each partition required."
14075 msgstr ""
14076
14077 #. type: textblock
14078 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:6011
14079 msgid "Possible values for C<parttype> are:"
14080 msgstr ""
14081
14082 #. type: =item
14083 #: ../fish/guestfish-actions.pod:3848 ../src/guestfs-actions.pod:6015
14084 msgid "B<efi>"
14085 msgstr ""
14086
14087 #. type: =item
14088 #: ../fish/guestfish-actions.pod:3850 ../src/guestfs-actions.pod:6017
14089 msgid "B<gpt>"
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6019
14094 msgid "Intel EFI / GPT partition table."
14095 msgstr ""
14096
14097 #. type: textblock
14098 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:6021
14099 msgid ""
14100 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14101 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14102 "the C<mbr> format."
14103 msgstr ""
14104
14105 #. type: =item
14106 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:6025
14107 msgid "B<mbr>"
14108 msgstr ""
14109
14110 #. type: =item
14111 #: ../fish/guestfish-actions.pod:3860 ../src/guestfs-actions.pod:6027
14112 msgid "B<msdos>"
14113 msgstr ""
14114
14115 #. type: textblock
14116 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:6029
14117 msgid ""
14118 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14119 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14120 "TB.  For large disks we recommend using C<gpt>."
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6036
14125 msgid "Other partition table types that may work but are not supported include:"
14126 msgstr ""
14127
14128 #. type: =item
14129 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:6041
14130 msgid "B<aix>"
14131 msgstr ""
14132
14133 #. type: textblock
14134 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:6043
14135 msgid "AIX disk labels."
14136 msgstr ""
14137
14138 #. type: =item
14139 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6045
14140 msgid "B<amiga>"
14141 msgstr ""
14142
14143 #. type: =item
14144 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6047
14145 msgid "B<rdb>"
14146 msgstr ""
14147
14148 #. type: textblock
14149 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:6049
14150 msgid "Amiga \"Rigid Disk Block\" format."
14151 msgstr ""
14152
14153 #. type: =item
14154 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:6051
14155 msgid "B<bsd>"
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:6053
14160 msgid "BSD disk labels."
14161 msgstr ""
14162
14163 #. type: =item
14164 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:6055
14165 msgid "B<dasd>"
14166 msgstr ""
14167
14168 #. type: textblock
14169 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6057
14170 msgid "DASD, used on IBM mainframes."
14171 msgstr ""
14172
14173 #. type: =item
14174 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:6059
14175 msgid "B<dvh>"
14176 msgstr ""
14177
14178 #. type: textblock
14179 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6061
14180 msgid "MIPS/SGI volumes."
14181 msgstr ""
14182
14183 #. type: =item
14184 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:6063
14185 msgid "B<mac>"
14186 msgstr ""
14187
14188 #. type: textblock
14189 #: ../fish/guestfish-actions.pod:3898 ../src/guestfs-actions.pod:6065
14190 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14191 msgstr ""
14192
14193 #. type: =item
14194 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14195 msgid "B<pc98>"
14196 msgstr ""
14197
14198 #. type: textblock
14199 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:6069
14200 msgid "NEC PC-98 format, common in Japan apparently."
14201 msgstr ""
14202
14203 #. type: =item
14204 #: ../fish/guestfish-actions.pod:3904 ../src/guestfs-actions.pod:6071
14205 msgid "B<sun>"
14206 msgstr ""
14207
14208 #. type: textblock
14209 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6073
14210 msgid "Sun disk labels."
14211 msgstr ""
14212
14213 #. type: =head2
14214 #: ../fish/guestfish-actions.pod:3910
14215 msgid "part-list"
14216 msgstr ""
14217
14218 #. type: verbatim
14219 #: ../fish/guestfish-actions.pod:3912
14220 #, no-wrap
14221 msgid ""
14222 " part-list device\n"
14223 "\n"
14224 msgstr ""
14225
14226 #. type: textblock
14227 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6087
14228 msgid ""
14229 "This command parses the partition table on C<device> and returns the list of "
14230 "partitions found."
14231 msgstr ""
14232
14233 #. type: textblock
14234 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6090
14235 msgid "The fields in the returned structure are:"
14236 msgstr ""
14237
14238 #. type: =item
14239 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:6094
14240 msgid "B<part_num>"
14241 msgstr ""
14242
14243 #. type: textblock
14244 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6096
14245 msgid "Partition number, counting from 1."
14246 msgstr ""
14247
14248 #. type: =item
14249 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6098
14250 msgid "B<part_start>"
14251 msgstr ""
14252
14253 #. type: textblock
14254 #: ../fish/guestfish-actions.pod:3927
14255 msgid ""
14256 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14257 "the device's sector size, see L</blockdev-getss>."
14258 msgstr ""
14259
14260 #. type: =item
14261 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6103
14262 msgid "B<part_end>"
14263 msgstr ""
14264
14265 #. type: textblock
14266 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6105
14267 msgid "End of the partition in bytes."
14268 msgstr ""
14269
14270 #. type: =item
14271 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6107
14272 msgid "B<part_size>"
14273 msgstr ""
14274
14275 #. type: textblock
14276 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6109
14277 msgid "Size of the partition in bytes."
14278 msgstr ""
14279
14280 #. type: =head2
14281 #: ../fish/guestfish-actions.pod:3940
14282 msgid "part-set-bootable"
14283 msgstr ""
14284
14285 #. type: verbatim
14286 #: ../fish/guestfish-actions.pod:3942
14287 #, no-wrap
14288 msgid ""
14289 " part-set-bootable device partnum true|false\n"
14290 "\n"
14291 msgstr ""
14292
14293 #. type: textblock
14294 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6127
14295 msgid ""
14296 "This sets the bootable flag on partition numbered C<partnum> on device "
14297 "C<device>.  Note that partitions are numbered from 1."
14298 msgstr ""
14299
14300 #. type: textblock
14301 #: ../fish/guestfish-actions.pod:3947 ../src/guestfs-actions.pod:6130
14302 msgid ""
14303 "The bootable flag is used by some operating systems (notably Windows) to "
14304 "determine which partition to boot from.  It is by no means universally "
14305 "recognized."
14306 msgstr ""
14307
14308 #. type: =head2
14309 #: ../fish/guestfish-actions.pod:3951
14310 msgid "part-set-mbr-id"
14311 msgstr ""
14312
14313 #. type: verbatim
14314 #: ../fish/guestfish-actions.pod:3953
14315 #, no-wrap
14316 msgid ""
14317 " part-set-mbr-id device partnum idbyte\n"
14318 "\n"
14319 msgstr ""
14320
14321 #. type: textblock
14322 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6146
14323 msgid ""
14324 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14325 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14326 "documentation are in fact hexadecimal numbers, but usually documented "
14327 "without any leading \"0x\" which might be confusing."
14328 msgstr ""
14329
14330 #. type: =head2
14331 #: ../fish/guestfish-actions.pod:3965
14332 msgid "part-set-name"
14333 msgstr ""
14334
14335 #. type: verbatim
14336 #: ../fish/guestfish-actions.pod:3967
14337 #, no-wrap
14338 msgid ""
14339 " part-set-name device partnum name\n"
14340 "\n"
14341 msgstr ""
14342
14343 #. type: textblock
14344 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6168
14345 msgid ""
14346 "This sets the partition name on partition numbered C<partnum> on device "
14347 "C<device>.  Note that partitions are numbered from 1."
14348 msgstr ""
14349
14350 #. type: textblock
14351 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6171
14352 msgid ""
14353 "The partition name can only be set on certain types of partition table.  "
14354 "This works on C<gpt> but not on C<mbr> partitions."
14355 msgstr ""
14356
14357 #. type: =head2
14358 #: ../fish/guestfish-actions.pod:3975
14359 msgid "part-to-dev"
14360 msgstr ""
14361
14362 #. type: verbatim
14363 #: ../fish/guestfish-actions.pod:3977
14364 #, no-wrap
14365 msgid ""
14366 " part-to-dev partition\n"
14367 "\n"
14368 msgstr ""
14369
14370 #. type: textblock
14371 #: ../fish/guestfish-actions.pod:3979 ../src/guestfs-actions.pod:6184
14372 msgid ""
14373 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14374 "partition number, returning the device name (eg. \"/dev/sdb\")."
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../fish/guestfish-actions.pod:3983 ../fish/guestfish-actions.pod:3995
14379 msgid ""
14380 "The named partition must exist, for example as a string returned from "
14381 "L</list-partitions>."
14382 msgstr ""
14383
14384 #. type: textblock
14385 #: ../fish/guestfish-actions.pod:3986
14386 msgid "See also L</part-to-partnum>."
14387 msgstr ""
14388
14389 #. type: =head2
14390 #: ../fish/guestfish-actions.pod:3988
14391 msgid "part-to-partnum"
14392 msgstr ""
14393
14394 #. type: verbatim
14395 #: ../fish/guestfish-actions.pod:3990
14396 #, no-wrap
14397 msgid ""
14398 " part-to-partnum partition\n"
14399 "\n"
14400 msgstr ""
14401
14402 #. type: textblock
14403 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6204
14404 msgid ""
14405 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14406 "partition number (eg. C<1>)."
14407 msgstr ""
14408
14409 #. type: textblock
14410 #: ../fish/guestfish-actions.pod:3998
14411 msgid "See also L</part-to-dev>."
14412 msgstr ""
14413
14414 #. type: =head2
14415 #: ../fish/guestfish-actions.pod:4000
14416 msgid "ping-daemon"
14417 msgstr ""
14418
14419 #. type: verbatim
14420 #: ../fish/guestfish-actions.pod:4002
14421 #, no-wrap
14422 msgid ""
14423 " ping-daemon\n"
14424 "\n"
14425 msgstr ""
14426
14427 #. type: textblock
14428 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6221
14429 msgid ""
14430 "This is a test probe into the guestfs daemon running inside the qemu "
14431 "subprocess.  Calling this function checks that the daemon responds to the "
14432 "ping message, without affecting the daemon or attached block device(s) in "
14433 "any other way."
14434 msgstr ""
14435
14436 #. type: =head2
14437 #: ../fish/guestfish-actions.pod:4009
14438 msgid "pread"
14439 msgstr ""
14440
14441 #. type: verbatim
14442 #: ../fish/guestfish-actions.pod:4011
14443 #, no-wrap
14444 msgid ""
14445 " pread path count offset\n"
14446 "\n"
14447 msgstr ""
14448
14449 #. type: textblock
14450 #: ../fish/guestfish-actions.pod:4013 ../src/guestfs-actions.pod:6239
14451 msgid ""
14452 "This command lets you read part of a file.  It reads C<count> bytes of the "
14453 "file, starting at C<offset>, from file C<path>."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:4016 ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6242 ../src/guestfs-actions.pod:6268
14458 msgid ""
14459 "This may read fewer bytes than requested.  For further details see the "
14460 "L<pread(2)> system call."
14461 msgstr ""
14462
14463 #. type: textblock
14464 #: ../fish/guestfish-actions.pod:4019
14465 msgid "See also L</pwrite>, L</pread-device>."
14466 msgstr ""
14467
14468 #. type: =head2
14469 #: ../fish/guestfish-actions.pod:4024
14470 msgid "pread-device"
14471 msgstr ""
14472
14473 #. type: verbatim
14474 #: ../fish/guestfish-actions.pod:4026
14475 #, no-wrap
14476 msgid ""
14477 " pread-device device count offset\n"
14478 "\n"
14479 msgstr ""
14480
14481 #. type: textblock
14482 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6265
14483 msgid ""
14484 "This command lets you read part of a file.  It reads C<count> bytes of "
14485 "C<device>, starting at C<offset>."
14486 msgstr ""
14487
14488 #. type: textblock
14489 #: ../fish/guestfish-actions.pod:4034
14490 msgid "See also L</pread>."
14491 msgstr ""
14492
14493 #. type: =head2
14494 #: ../fish/guestfish-actions.pod:4039
14495 msgid "pvcreate"
14496 msgstr ""
14497
14498 #. type: verbatim
14499 #: ../fish/guestfish-actions.pod:4041
14500 #, no-wrap
14501 msgid ""
14502 " pvcreate device\n"
14503 "\n"
14504 msgstr ""
14505
14506 #. type: textblock
14507 #: ../fish/guestfish-actions.pod:4043 ../src/guestfs-actions.pod:6288
14508 msgid ""
14509 "This creates an LVM physical volume on the named C<device>, where C<device> "
14510 "should usually be a partition name such as C</dev/sda1>."
14511 msgstr ""
14512
14513 #. type: =head2
14514 #: ../fish/guestfish-actions.pod:4047
14515 msgid "pvremove"
14516 msgstr ""
14517
14518 #. type: verbatim
14519 #: ../fish/guestfish-actions.pod:4049
14520 #, no-wrap
14521 msgid ""
14522 " pvremove device\n"
14523 "\n"
14524 msgstr ""
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6302
14528 msgid ""
14529 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14530 "it."
14531 msgstr ""
14532
14533 #. type: textblock
14534 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6305
14535 msgid ""
14536 "The implementation uses the C<pvremove> command which refuses to wipe "
14537 "physical volumes that contain any volume groups, so you have to remove those "
14538 "first."
14539 msgstr ""
14540
14541 #. type: =head2
14542 #: ../fish/guestfish-actions.pod:4058
14543 msgid "pvresize"
14544 msgstr ""
14545
14546 #. type: verbatim
14547 #: ../fish/guestfish-actions.pod:4060
14548 #, no-wrap
14549 msgid ""
14550 " pvresize device\n"
14551 "\n"
14552 msgstr ""
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6319
14556 msgid ""
14557 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14558 "the new size of the underlying device."
14559 msgstr ""
14560
14561 #. type: =head2
14562 #: ../fish/guestfish-actions.pod:4065
14563 msgid "pvresize-size"
14564 msgstr ""
14565
14566 #. type: verbatim
14567 #: ../fish/guestfish-actions.pod:4067
14568 #, no-wrap
14569 msgid ""
14570 " pvresize-size device size\n"
14571 "\n"
14572 msgstr ""
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:4069
14576 msgid ""
14577 "This command is the same as L</pvresize> except that it allows you to "
14578 "specify the new size (in bytes) explicitly."
14579 msgstr ""
14580
14581 #. type: =head2
14582 #: ../fish/guestfish-actions.pod:4072
14583 msgid "pvs"
14584 msgstr ""
14585
14586 #. type: verbatim
14587 #: ../fish/guestfish-actions.pod:4074
14588 #, no-wrap
14589 msgid ""
14590 " pvs\n"
14591 "\n"
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6345
14596 msgid ""
14597 "List all the physical volumes detected.  This is the equivalent of the "
14598 "L<pvs(8)> command."
14599 msgstr ""
14600
14601 #. type: textblock
14602 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6348
14603 msgid ""
14604 "This returns a list of just the device names that contain PVs "
14605 "(eg. C</dev/sda2>)."
14606 msgstr ""
14607
14608 #. type: textblock
14609 #: ../fish/guestfish-actions.pod:4082
14610 msgid "See also L</pvs-full>."
14611 msgstr ""
14612
14613 #. type: =head2
14614 #: ../fish/guestfish-actions.pod:4084
14615 msgid "pvs-full"
14616 msgstr ""
14617
14618 #. type: verbatim
14619 #: ../fish/guestfish-actions.pod:4086
14620 #, no-wrap
14621 msgid ""
14622 " pvs-full\n"
14623 "\n"
14624 msgstr ""
14625
14626 #. type: textblock
14627 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6364
14628 msgid ""
14629 "List all the physical volumes detected.  This is the equivalent of the "
14630 "L<pvs(8)> command.  The \"full\" version includes all fields."
14631 msgstr ""
14632
14633 #. type: =head2
14634 #: ../fish/guestfish-actions.pod:4091
14635 msgid "pvuuid"
14636 msgstr ""
14637
14638 #. type: verbatim
14639 #: ../fish/guestfish-actions.pod:4093
14640 #, no-wrap
14641 msgid ""
14642 " pvuuid device\n"
14643 "\n"
14644 msgstr ""
14645
14646 #. type: textblock
14647 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6379
14648 msgid "This command returns the UUID of the LVM PV C<device>."
14649 msgstr ""
14650
14651 #. type: =head2
14652 #: ../fish/guestfish-actions.pod:4097
14653 msgid "pwrite"
14654 msgstr ""
14655
14656 #. type: verbatim
14657 #: ../fish/guestfish-actions.pod:4099
14658 #, no-wrap
14659 msgid ""
14660 " pwrite path content offset\n"
14661 "\n"
14662 msgstr ""
14663
14664 #. type: textblock
14665 #: ../fish/guestfish-actions.pod:4101 ../src/guestfs-actions.pod:6395
14666 msgid ""
14667 "This command writes to part of a file.  It writes the data buffer C<content> "
14668 "to the file C<path> starting at offset C<offset>."
14669 msgstr ""
14670
14671 #. type: textblock
14672 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6398
14673 msgid ""
14674 "This command implements the L<pwrite(2)> system call, and like that system "
14675 "call it may not write the full data requested.  The return value is the "
14676 "number of bytes that were actually written to the file.  This could even be "
14677 "0, although short writes are unlikely for regular files in ordinary "
14678 "circumstances."
14679 msgstr ""
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:4110
14683 msgid "See also L</pread>, L</pwrite-device>."
14684 msgstr ""
14685
14686 #. type: =head2
14687 #: ../fish/guestfish-actions.pod:4115
14688 msgid "pwrite-device"
14689 msgstr ""
14690
14691 #. type: verbatim
14692 #: ../fish/guestfish-actions.pod:4117
14693 #, no-wrap
14694 msgid ""
14695 " pwrite-device device content offset\n"
14696 "\n"
14697 msgstr ""
14698
14699 #. type: textblock
14700 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6422
14701 msgid ""
14702 "This command writes to part of a device.  It writes the data buffer "
14703 "C<content> to C<device> starting at offset C<offset>."
14704 msgstr ""
14705
14706 #. type: textblock
14707 #: ../fish/guestfish-actions.pod:4122 ../src/guestfs-actions.pod:6425
14708 msgid ""
14709 "This command implements the L<pwrite(2)> system call, and like that system "
14710 "call it may not write the full data requested (although short writes to disk "
14711 "devices and partitions are probably impossible with standard Linux kernels)."
14712 msgstr ""
14713
14714 #. type: textblock
14715 #: ../fish/guestfish-actions.pod:4127
14716 msgid "See also L</pwrite>."
14717 msgstr ""
14718
14719 #. type: =head2
14720 #: ../fish/guestfish-actions.pod:4132
14721 msgid "read-file"
14722 msgstr ""
14723
14724 #. type: verbatim
14725 #: ../fish/guestfish-actions.pod:4134
14726 #, no-wrap
14727 msgid ""
14728 " read-file path\n"
14729 "\n"
14730 msgstr ""
14731
14732 #. type: textblock
14733 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6446
14734 msgid "This calls returns the contents of the file C<path> as a buffer."
14735 msgstr ""
14736
14737 #. type: textblock
14738 #: ../fish/guestfish-actions.pod:4139
14739 msgid ""
14740 "Unlike L</cat>, this function can correctly handle files that contain "
14741 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14742 "is limited in the total size of file that can be handled."
14743 msgstr ""
14744
14745 #. type: =head2
14746 #: ../fish/guestfish-actions.pod:4147
14747 msgid "read-lines"
14748 msgstr ""
14749
14750 #. type: verbatim
14751 #: ../fish/guestfish-actions.pod:4149
14752 #, no-wrap
14753 msgid ""
14754 " read-lines path\n"
14755 "\n"
14756 msgstr ""
14757
14758 #. type: textblock
14759 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6471
14760 msgid ""
14761 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14762 "C<CRLF> character sequences are I<not> returned."
14763 msgstr ""
14764
14765 #. type: textblock
14766 #: ../fish/guestfish-actions.pod:4156
14767 msgid ""
14768 "Note that this function cannot correctly handle binary files (specifically, "
14769 "files containing C<\\0> character which is treated as end of line).  For "
14770 "those you need to use the L</read-file> function which has a more complex "
14771 "interface."
14772 msgstr ""
14773
14774 #. type: =head2
14775 #: ../fish/guestfish-actions.pod:4161
14776 msgid "readdir"
14777 msgstr ""
14778
14779 #. type: verbatim
14780 #: ../fish/guestfish-actions.pod:4163
14781 #, no-wrap
14782 msgid ""
14783 " readdir dir\n"
14784 "\n"
14785 msgstr ""
14786
14787 #. type: textblock
14788 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6491
14789 msgid "This returns the list of directory entries in directory C<dir>."
14790 msgstr ""
14791
14792 #. type: textblock
14793 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6493
14794 msgid ""
14795 "All entries in the directory are returned, including C<.> and C<..>.  The "
14796 "entries are I<not> sorted, but returned in the same order as the underlying "
14797 "filesystem."
14798 msgstr ""
14799
14800 #. type: textblock
14801 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6497
14802 msgid ""
14803 "Also this call returns basic file type information about each file.  The "
14804 "C<ftyp> field will contain one of the following characters:"
14805 msgstr ""
14806
14807 #. type: =item
14808 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6502
14809 msgid "'b'"
14810 msgstr ""
14811
14812 #. type: textblock
14813 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
14814 msgid "Block special"
14815 msgstr ""
14816
14817 #. type: =item
14818 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6506
14819 msgid "'c'"
14820 msgstr ""
14821
14822 #. type: textblock
14823 #: ../fish/guestfish-actions.pod:4182 ../src/guestfs-actions.pod:6508
14824 msgid "Char special"
14825 msgstr ""
14826
14827 #. type: =item
14828 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6510
14829 msgid "'d'"
14830 msgstr ""
14831
14832 #. type: textblock
14833 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6512
14834 msgid "Directory"
14835 msgstr ""
14836
14837 #. type: =item
14838 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6514
14839 msgid "'f'"
14840 msgstr ""
14841
14842 #. type: textblock
14843 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6516
14844 msgid "FIFO (named pipe)"
14845 msgstr ""
14846
14847 #. type: =item
14848 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6518
14849 msgid "'l'"
14850 msgstr ""
14851
14852 #. type: textblock
14853 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6520
14854 msgid "Symbolic link"
14855 msgstr ""
14856
14857 #. type: =item
14858 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6522
14859 msgid "'r'"
14860 msgstr ""
14861
14862 #. type: textblock
14863 #: ../fish/guestfish-actions.pod:4198 ../src/guestfs-actions.pod:6524
14864 msgid "Regular file"
14865 msgstr ""
14866
14867 #. type: =item
14868 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6526
14869 msgid "'s'"
14870 msgstr ""
14871
14872 #. type: textblock
14873 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6528
14874 msgid "Socket"
14875 msgstr ""
14876
14877 #. type: =item
14878 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6530
14879 msgid "'u'"
14880 msgstr ""
14881
14882 #. type: textblock
14883 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6532
14884 msgid "Unknown file type"
14885 msgstr ""
14886
14887 #. type: =item
14888 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6534
14889 msgid "'?'"
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6536
14894 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14895 msgstr ""
14896
14897 #. type: textblock
14898 #: ../fish/guestfish-actions.pod:4215
14899 msgid ""
14900 "This function is primarily intended for use by programs.  To get a simple "
14901 "list of names, use L</ls>.  To get a printable directory for human "
14902 "consumption, use L</ll>."
14903 msgstr ""
14904
14905 #. type: =head2
14906 #: ../fish/guestfish-actions.pod:4219
14907 msgid "readlink"
14908 msgstr ""
14909
14910 #. type: verbatim
14911 #: ../fish/guestfish-actions.pod:4221
14912 #, no-wrap
14913 msgid ""
14914 " readlink path\n"
14915 "\n"
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6557
14920 msgid "This command reads the target of a symbolic link."
14921 msgstr ""
14922
14923 #. type: =head2
14924 #: ../fish/guestfish-actions.pod:4225
14925 msgid "readlinklist"
14926 msgstr ""
14927
14928 #. type: verbatim
14929 #: ../fish/guestfish-actions.pod:4227
14930 #, no-wrap
14931 msgid ""
14932 " readlinklist path 'names ...'\n"
14933 "\n"
14934 msgstr ""
14935
14936 #. type: textblock
14937 #: ../fish/guestfish-actions.pod:4229 ../src/guestfs-actions.pod:6571
14938 msgid ""
14939 "This call allows you to do a C<readlink> operation on multiple files, where "
14940 "all files are in the directory C<path>.  C<names> is the list of files from "
14941 "this directory."
14942 msgstr ""
14943
14944 #. type: textblock
14945 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6575
14946 msgid ""
14947 "On return you get a list of strings, with a one-to-one correspondence to the "
14948 "C<names> list.  Each string is the value of the symbolic link."
14949 msgstr ""
14950
14951 #. type: textblock
14952 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6579
14953 msgid ""
14954 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14955 "result string is the empty string C<\"\">.  However the whole operation is "
14956 "completed even if there were C<readlink(2)> errors, and so you can call this "
14957 "function with names where you don't know if they are symbolic links already "
14958 "(albeit slightly less efficient)."
14959 msgstr ""
14960
14961 #. type: textblock
14962 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6586
14963 msgid ""
14964 "This call is intended for programs that want to efficiently list a directory "
14965 "contents without making many round-trips.  Very long directory listings "
14966 "might cause the protocol message size to be exceeded, causing this call to "
14967 "fail.  The caller must split up such requests into smaller groups of names."
14968 msgstr ""
14969
14970 #. type: =head2
14971 #: ../fish/guestfish-actions.pod:4251
14972 msgid "realpath"
14973 msgstr ""
14974
14975 #. type: verbatim
14976 #: ../fish/guestfish-actions.pod:4253
14977 #, no-wrap
14978 msgid ""
14979 " realpath path\n"
14980 "\n"
14981 msgstr ""
14982
14983 #. type: textblock
14984 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6605
14985 msgid ""
14986 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14987 "has no C<.>, C<..> or symbolic link path elements."
14988 msgstr ""
14989
14990 #. type: =head2
14991 #: ../fish/guestfish-actions.pod:4258
14992 msgid "removexattr"
14993 msgstr ""
14994
14995 #. type: verbatim
14996 #: ../fish/guestfish-actions.pod:4260
14997 #, no-wrap
14998 msgid ""
14999 " removexattr xattr path\n"
15000 "\n"
15001 msgstr ""
15002
15003 #. type: textblock
15004 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6620
15005 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
15006 msgstr ""
15007
15008 #. type: textblock
15009 #: ../fish/guestfish-actions.pod:4265
15010 msgid "See also: L</lremovexattr>, L<attr(5)>."
15011 msgstr ""
15012
15013 #. type: =head2
15014 #: ../fish/guestfish-actions.pod:4267
15015 msgid "resize2fs"
15016 msgstr ""
15017
15018 #. type: verbatim
15019 #: ../fish/guestfish-actions.pod:4269
15020 #, no-wrap
15021 msgid ""
15022 " resize2fs device\n"
15023 "\n"
15024 msgstr ""
15025
15026 #. type: textblock
15027 #: ../fish/guestfish-actions.pod:4271 ../src/guestfs-actions.pod:6635
15028 msgid ""
15029 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15030 "underlying device."
15031 msgstr ""
15032
15033 #. type: textblock
15034 #: ../fish/guestfish-actions.pod:4274
15035 msgid ""
15036 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15037 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15038 "gives an error about this and sometimes not.  In any case, it is always safe "
15039 "to call L</e2fsck-f> before calling this function."
15040 msgstr ""
15041
15042 #. type: =head2
15043 #: ../fish/guestfish-actions.pod:4280
15044 msgid "resize2fs-M"
15045 msgstr ""
15046
15047 #. type: verbatim
15048 #: ../fish/guestfish-actions.pod:4282
15049 #, no-wrap
15050 msgid ""
15051 " resize2fs-M device\n"
15052 "\n"
15053 msgstr ""
15054
15055 #. type: textblock
15056 #: ../fish/guestfish-actions.pod:4284
15057 msgid ""
15058 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15059 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15060 "command."
15061 msgstr ""
15062
15063 #. type: textblock
15064 #: ../fish/guestfish-actions.pod:4288
15065 msgid ""
15066 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15067 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15068 "multiplied together, give the resulting size of the minimal filesystem in "
15069 "bytes."
15070 msgstr ""
15071
15072 #. type: =head2
15073 #: ../fish/guestfish-actions.pod:4293
15074 msgid "resize2fs-size"
15075 msgstr ""
15076
15077 #. type: verbatim
15078 #: ../fish/guestfish-actions.pod:4295
15079 #, no-wrap
15080 msgid ""
15081 " resize2fs-size device size\n"
15082 "\n"
15083 msgstr ""
15084
15085 #. type: textblock
15086 #: ../fish/guestfish-actions.pod:4297
15087 msgid ""
15088 "This command is the same as L</resize2fs> except that it allows you to "
15089 "specify the new size (in bytes) explicitly."
15090 msgstr ""
15091
15092 #. type: =head2
15093 #: ../fish/guestfish-actions.pod:4300
15094 msgid "rm"
15095 msgstr ""
15096
15097 #. type: verbatim
15098 #: ../fish/guestfish-actions.pod:4302
15099 #, no-wrap
15100 msgid ""
15101 " rm path\n"
15102 "\n"
15103 msgstr ""
15104
15105 #. type: textblock
15106 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6687
15107 msgid "Remove the single file C<path>."
15108 msgstr ""
15109
15110 #. type: =head2
15111 #: ../fish/guestfish-actions.pod:4306
15112 msgid "rm-rf"
15113 msgstr ""
15114
15115 #. type: verbatim
15116 #: ../fish/guestfish-actions.pod:4308
15117 #, no-wrap
15118 msgid ""
15119 " rm-rf path\n"
15120 "\n"
15121 msgstr ""
15122
15123 #. type: textblock
15124 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6699
15125 msgid ""
15126 "Remove the file or directory C<path>, recursively removing the contents if "
15127 "its a directory.  This is like the C<rm -rf> shell command."
15128 msgstr ""
15129
15130 #. type: =head2
15131 #: ../fish/guestfish-actions.pod:4314
15132 msgid "rmdir"
15133 msgstr ""
15134
15135 #. type: verbatim
15136 #: ../fish/guestfish-actions.pod:4316
15137 #, no-wrap
15138 msgid ""
15139 " rmdir path\n"
15140 "\n"
15141 msgstr ""
15142
15143 #. type: textblock
15144 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6713
15145 msgid "Remove the single directory C<path>."
15146 msgstr ""
15147
15148 #. type: =head2
15149 #: ../fish/guestfish-actions.pod:4320
15150 msgid "rmmountpoint"
15151 msgstr ""
15152
15153 #. type: verbatim
15154 #: ../fish/guestfish-actions.pod:4322
15155 #, no-wrap
15156 msgid ""
15157 " rmmountpoint exemptpath\n"
15158 "\n"
15159 msgstr ""
15160
15161 #. type: textblock
15162 #: ../fish/guestfish-actions.pod:4324
15163 msgid ""
15164 "This calls removes a mountpoint that was previously created with "
15165 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
15166 msgstr ""
15167
15168 #. type: =head2
15169 #: ../fish/guestfish-actions.pod:4328
15170 msgid "scrub-device"
15171 msgstr ""
15172
15173 #. type: verbatim
15174 #: ../fish/guestfish-actions.pod:4330
15175 #, no-wrap
15176 msgid ""
15177 " scrub-device device\n"
15178 "\n"
15179 msgstr ""
15180
15181 #. type: textblock
15182 #: ../fish/guestfish-actions.pod:4332 ../src/guestfs-actions.pod:6739
15183 msgid ""
15184 "This command writes patterns over C<device> to make data retrieval more "
15185 "difficult."
15186 msgstr ""
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-actions.pod:4335 ../fish/guestfish-actions.pod:4347 ../fish/guestfish-actions.pod:4360 ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6779
15190 msgid ""
15191 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15192 "more details."
15193 msgstr ""
15194
15195 #. type: =head2
15196 #: ../fish/guestfish-actions.pod:4338
15197 msgid "scrub-file"
15198 msgstr ""
15199
15200 #. type: verbatim
15201 #: ../fish/guestfish-actions.pod:4340
15202 #, no-wrap
15203 msgid ""
15204 " scrub-file file\n"
15205 "\n"
15206 msgstr ""
15207
15208 #. type: textblock
15209 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6755
15210 msgid ""
15211 "This command writes patterns over a file to make data retrieval more "
15212 "difficult."
15213 msgstr ""
15214
15215 #. type: textblock
15216 #: ../fish/guestfish-actions.pod:4345 ../src/guestfs-actions.pod:6758
15217 msgid "The file is I<removed> after scrubbing."
15218 msgstr ""
15219
15220 #. type: =head2
15221 #: ../fish/guestfish-actions.pod:4350
15222 msgid "scrub-freespace"
15223 msgstr ""
15224
15225 #. type: verbatim
15226 #: ../fish/guestfish-actions.pod:4352
15227 #, no-wrap
15228 msgid ""
15229 " scrub-freespace dir\n"
15230 "\n"
15231 msgstr ""
15232
15233 #. type: textblock
15234 #: ../fish/guestfish-actions.pod:4354
15235 msgid ""
15236 "This command creates the directory C<dir> and then fills it with files until "
15237 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15238 "deletes them.  The intention is to scrub any free space on the partition "
15239 "containing C<dir>."
15240 msgstr ""
15241
15242 #. type: =head2
15243 #: ../fish/guestfish-actions.pod:4363
15244 msgid "set-append"
15245 msgstr ""
15246
15247 #. type: =head2
15248 #: ../fish/guestfish-actions.pod:4365
15249 msgid "append"
15250 msgstr ""
15251
15252 #. type: verbatim
15253 #: ../fish/guestfish-actions.pod:4367
15254 #, no-wrap
15255 msgid ""
15256 " set-append append\n"
15257 "\n"
15258 msgstr ""
15259
15260 #. type: textblock
15261 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6792
15262 msgid ""
15263 "This function is used to add additional options to the guest kernel command "
15264 "line."
15265 msgstr ""
15266
15267 #. type: textblock
15268 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6795
15269 msgid ""
15270 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15271 "environment variable."
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:4375 ../src/guestfs-actions.pod:6798
15276 msgid ""
15277 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15278 "(libguestfs always adds a few of its own)."
15279 msgstr ""
15280
15281 #. type: =head2
15282 #: ../fish/guestfish-actions.pod:4378
15283 msgid "set-attach-method"
15284 msgstr ""
15285
15286 #. type: =head2
15287 #: ../fish/guestfish-actions.pod:4380
15288 msgid "attach-method"
15289 msgstr ""
15290
15291 #. type: verbatim
15292 #: ../fish/guestfish-actions.pod:4382
15293 #, no-wrap
15294 msgid ""
15295 " set-attach-method attachmethod\n"
15296 "\n"
15297 msgstr ""
15298
15299 #. type: textblock
15300 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6811
15301 msgid ""
15302 "Set the method that libguestfs uses to connect to the back end guestfsd "
15303 "daemon.  Possible methods are:"
15304 msgstr ""
15305
15306 #. type: =item
15307 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6816 ../src/guestfs.pod:2916
15308 msgid "C<appliance>"
15309 msgstr ""
15310
15311 #. type: textblock
15312 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6818
15313 msgid ""
15314 "Launch an appliance and connect to it.  This is the ordinary method and the "
15315 "default."
15316 msgstr ""
15317
15318 #. type: =item
15319 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6821
15320 msgid "C<unix:I<path>>"
15321 msgstr ""
15322
15323 #. type: textblock
15324 #: ../fish/guestfish-actions.pod:4396 ../src/guestfs-actions.pod:6823
15325 msgid "Connect to the Unix domain socket I<path>."
15326 msgstr ""
15327
15328 #. type: textblock
15329 #: ../fish/guestfish-actions.pod:4398 ../src/guestfs-actions.pod:6825
15330 msgid ""
15331 "This method lets you connect to an existing daemon or (using virtio-serial) "
15332 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15333 "RUNNING DAEMONS>."
15334 msgstr ""
15335
15336 #. type: =head2
15337 #: ../fish/guestfish-actions.pod:4404
15338 msgid "set-autosync"
15339 msgstr ""
15340
15341 #. type: =head2
15342 #: ../fish/guestfish-actions.pod:4406
15343 msgid "autosync"
15344 msgstr ""
15345
15346 #. type: verbatim
15347 #: ../fish/guestfish-actions.pod:4408
15348 #, no-wrap
15349 msgid ""
15350 " set-autosync true|false\n"
15351 "\n"
15352 msgstr ""
15353
15354 #. type: textblock
15355 #: ../fish/guestfish-actions.pod:4410 ../src/guestfs-actions.pod:6841
15356 msgid ""
15357 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15358 "effort attempt to make filesystems consistent and synchronized when the "
15359 "handle is closed (also if the program exits without closing handles)."
15360 msgstr ""
15361
15362 #. type: textblock
15363 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6846
15364 msgid ""
15365 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15366 "disabled by default)."
15367 msgstr ""
15368
15369 #. type: =head2
15370 #: ../fish/guestfish-actions.pod:4418
15371 msgid "set-direct"
15372 msgstr ""
15373
15374 #. type: =head2
15375 #: ../fish/guestfish-actions.pod:4420
15376 msgid "direct"
15377 msgstr ""
15378
15379 #. type: verbatim
15380 #: ../fish/guestfish-actions.pod:4422
15381 #, no-wrap
15382 msgid ""
15383 " set-direct true|false\n"
15384 "\n"
15385 msgstr ""
15386
15387 #. type: textblock
15388 #: ../fish/guestfish-actions.pod:4424 ../src/guestfs-actions.pod:6859
15389 msgid ""
15390 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15391 "passed directly through to the appliance once it is launched."
15392 msgstr ""
15393
15394 #. type: textblock
15395 #: ../fish/guestfish-actions.pod:4428
15396 msgid ""
15397 "One consequence of this is that log messages aren't caught by the library "
15398 "and handled by L</set-log-message-callback>, but go straight to stdout."
15399 msgstr ""
15400
15401 #. type: textblock
15402 #: ../fish/guestfish-actions.pod:4432 ../src/guestfs-actions.pod:6867
15403 msgid "You probably don't want to use this unless you know what you are doing."
15404 msgstr ""
15405
15406 #. type: textblock
15407 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6870
15408 msgid "The default is disabled."
15409 msgstr ""
15410
15411 #. type: =head2
15412 #: ../fish/guestfish-actions.pod:4437
15413 msgid "set-e2label"
15414 msgstr ""
15415
15416 #. type: verbatim
15417 #: ../fish/guestfish-actions.pod:4439
15418 #, no-wrap
15419 msgid ""
15420 " set-e2label device label\n"
15421 "\n"
15422 msgstr ""
15423
15424 #. type: textblock
15425 #: ../fish/guestfish-actions.pod:4441 ../src/guestfs-actions.pod:6883
15426 msgid ""
15427 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15428 "C<label>.  Filesystem labels are limited to 16 characters."
15429 msgstr ""
15430
15431 #. type: textblock
15432 #: ../fish/guestfish-actions.pod:4445
15433 msgid ""
15434 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15435 "label on a filesystem."
15436 msgstr ""
15437
15438 #. type: =head2
15439 #: ../fish/guestfish-actions.pod:4448
15440 msgid "set-e2uuid"
15441 msgstr ""
15442
15443 #. type: verbatim
15444 #: ../fish/guestfish-actions.pod:4450
15445 #, no-wrap
15446 msgid ""
15447 " set-e2uuid device uuid\n"
15448 "\n"
15449 msgstr ""
15450
15451 #. type: textblock
15452 #: ../fish/guestfish-actions.pod:4452 ../src/guestfs-actions.pod:6901
15453 msgid ""
15454 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15455 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15456 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15457 msgstr ""
15458
15459 #. type: textblock
15460 #: ../fish/guestfish-actions.pod:4457
15461 msgid ""
15462 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15463 "UUID of a filesystem."
15464 msgstr ""
15465
15466 #. type: =head2
15467 #: ../fish/guestfish-actions.pod:4460
15468 msgid "set-memsize"
15469 msgstr ""
15470
15471 #. type: =head2
15472 #: ../fish/guestfish-actions.pod:4462
15473 msgid "memsize"
15474 msgstr ""
15475
15476 #. type: verbatim
15477 #: ../fish/guestfish-actions.pod:4464
15478 #, no-wrap
15479 msgid ""
15480 " set-memsize memsize\n"
15481 "\n"
15482 msgstr ""
15483
15484 #. type: textblock
15485 #: ../fish/guestfish-actions.pod:4466
15486 msgid ""
15487 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15488 "This only has any effect if called before L</launch>."
15489 msgstr ""
15490
15491 #. type: textblock
15492 #: ../fish/guestfish-actions.pod:4470 ../src/guestfs-actions.pod:6923
15493 msgid ""
15494 "You can also change this by setting the environment variable "
15495 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15496 msgstr ""
15497
15498 #. type: =head2
15499 #: ../fish/guestfish-actions.pod:4477
15500 msgid "set-network"
15501 msgstr ""
15502
15503 #. type: =head2
15504 #: ../fish/guestfish-actions.pod:4479
15505 msgid "network"
15506 msgstr ""
15507
15508 #. type: verbatim
15509 #: ../fish/guestfish-actions.pod:4481
15510 #, no-wrap
15511 msgid ""
15512 " set-network true|false\n"
15513 "\n"
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6940
15518 msgid ""
15519 "If C<network> is true, then the network is enabled in the libguestfs "
15520 "appliance.  The default is false."
15521 msgstr ""
15522
15523 #. type: textblock
15524 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6943
15525 msgid ""
15526 "This affects whether commands are able to access the network (see "
15527 "L<guestfs(3)/RUNNING COMMANDS>)."
15528 msgstr ""
15529
15530 #. type: textblock
15531 #: ../fish/guestfish-actions.pod:4489
15532 msgid "You must call this before calling L</launch>, otherwise it has no effect."
15533 msgstr ""
15534
15535 #. type: =head2
15536 #: ../fish/guestfish-actions.pod:4492
15537 msgid "set-path"
15538 msgstr ""
15539
15540 #. type: verbatim
15541 #: ../fish/guestfish-actions.pod:4496
15542 #, no-wrap
15543 msgid ""
15544 " set-path searchpath\n"
15545 "\n"
15546 msgstr ""
15547
15548 #. type: textblock
15549 #: ../fish/guestfish-actions.pod:4498 ../src/guestfs-actions.pod:6959
15550 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15551 msgstr ""
15552
15553 #. type: textblock
15554 #: ../fish/guestfish-actions.pod:4500 ../src/guestfs-actions.pod:6961
15555 msgid ""
15556 "The default is C<$libdir/guestfs> unless overridden by setting "
15557 "C<LIBGUESTFS_PATH> environment variable."
15558 msgstr ""
15559
15560 #. type: textblock
15561 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6964
15562 msgid "Setting C<path> to C<NULL> restores the default path."
15563 msgstr ""
15564
15565 #. type: =head2
15566 #: ../fish/guestfish-actions.pod:4505
15567 msgid "set-pgroup"
15568 msgstr ""
15569
15570 #. type: =head2
15571 #: ../fish/guestfish-actions.pod:4507
15572 msgid "pgroup"
15573 msgstr ""
15574
15575 #. type: verbatim
15576 #: ../fish/guestfish-actions.pod:4509
15577 #, no-wrap
15578 msgid ""
15579 " set-pgroup true|false\n"
15580 "\n"
15581 msgstr ""
15582
15583 #. type: textblock
15584 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
15585 msgid ""
15586 "If C<pgroup> is true, child processes are placed into their own process "
15587 "group."
15588 msgstr ""
15589
15590 #. type: textblock
15591 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6979
15592 msgid ""
15593 "The practical upshot of this is that signals like C<SIGINT> (from users "
15594 "pressing C<^C>) won't be received by the child process."
15595 msgstr ""
15596
15597 #. type: textblock
15598 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6982
15599 msgid ""
15600 "The default for this flag is false, because usually you want C<^C> to kill "
15601 "the subprocess."
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../fish/guestfish-actions.pod:4520
15606 msgid "set-qemu"
15607 msgstr ""
15608
15609 #. type: =head2
15610 #: ../fish/guestfish-actions.pod:4522
15611 msgid "qemu"
15612 msgstr ""
15613
15614 #. type: verbatim
15615 #: ../fish/guestfish-actions.pod:4524
15616 #, no-wrap
15617 msgid ""
15618 " set-qemu qemu\n"
15619 "\n"
15620 msgstr ""
15621
15622 #. type: textblock
15623 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6995
15624 msgid "Set the qemu binary that we will use."
15625 msgstr ""
15626
15627 #. type: textblock
15628 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
15629 msgid "The default is chosen when the library was compiled by the configure script."
15630 msgstr ""
15631
15632 #. type: textblock
15633 #: ../fish/guestfish-actions.pod:4531 ../src/guestfs-actions.pod:7000
15634 msgid ""
15635 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15636 "variable."
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4534 ../src/guestfs-actions.pod:7003
15641 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15642 msgstr ""
15643
15644 #. type: textblock
15645 #: ../fish/guestfish-actions.pod:4536 ../src/guestfs-actions.pod:7005
15646 msgid ""
15647 "Note that you should call this function as early as possible after creating "
15648 "the handle.  This is because some pre-launch operations depend on testing "
15649 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15650 "don't retest features, and so you might see inconsistent results.  Using the "
15651 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15652 "the qemu binary at the same time as the handle is created."
15653 msgstr ""
15654
15655 #. type: =head2
15656 #: ../fish/guestfish-actions.pod:4544
15657 msgid "set-recovery-proc"
15658 msgstr ""
15659
15660 #. type: =head2
15661 #: ../fish/guestfish-actions.pod:4546
15662 msgid "recovery-proc"
15663 msgstr ""
15664
15665 #. type: verbatim
15666 #: ../fish/guestfish-actions.pod:4548
15667 #, no-wrap
15668 msgid ""
15669 " set-recovery-proc true|false\n"
15670 "\n"
15671 msgstr ""
15672
15673 #. type: textblock
15674 #: ../fish/guestfish-actions.pod:4550
15675 msgid ""
15676 "If this is called with the parameter C<false> then L</launch> does not "
15677 "create a recovery process.  The purpose of the recovery process is to stop "
15678 "runaway qemu processes in the case where the main program aborts abruptly."
15679 msgstr ""
15680
15681 #. type: textblock
15682 #: ../fish/guestfish-actions.pod:4555
15683 msgid ""
15684 "This only has any effect if called before L</launch>, and the default is "
15685 "true."
15686 msgstr ""
15687
15688 #. type: textblock
15689 #: ../fish/guestfish-actions.pod:4558 ../src/guestfs-actions.pod:7031
15690 msgid ""
15691 "About the only time when you would want to disable this is if the main "
15692 "process will fork itself into the background (\"daemonize\" itself).  In "
15693 "this case the recovery process thinks that the main program has disappeared "
15694 "and so kills qemu, which is not very helpful."
15695 msgstr ""
15696
15697 #. type: =head2
15698 #: ../fish/guestfish-actions.pod:4564
15699 msgid "set-selinux"
15700 msgstr ""
15701
15702 #. type: =head2
15703 #: ../fish/guestfish-actions.pod:4566
15704 msgid "selinux"
15705 msgstr ""
15706
15707 #. type: verbatim
15708 #: ../fish/guestfish-actions.pod:4568
15709 #, no-wrap
15710 msgid ""
15711 " set-selinux true|false\n"
15712 "\n"
15713 msgstr ""
15714
15715 #. type: textblock
15716 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:7047
15717 msgid ""
15718 "This sets the selinux flag that is passed to the appliance at boot time.  "
15719 "The default is C<selinux=0> (disabled)."
15720 msgstr ""
15721
15722 #. type: textblock
15723 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:7050
15724 msgid ""
15725 "Note that if SELinux is enabled, it is always in Permissive mode "
15726 "(C<enforcing=0>)."
15727 msgstr ""
15728
15729 #. type: =head2
15730 #: ../fish/guestfish-actions.pod:4579
15731 msgid "set-smp"
15732 msgstr ""
15733
15734 #. type: =head2
15735 #: ../fish/guestfish-actions.pod:4581
15736 msgid "smp"
15737 msgstr ""
15738
15739 #. type: verbatim
15740 #: ../fish/guestfish-actions.pod:4583
15741 #, no-wrap
15742 msgid ""
15743 " set-smp smp\n"
15744 "\n"
15745 msgstr ""
15746
15747 #. type: textblock
15748 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:7066
15749 msgid ""
15750 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15751 "C<1>.  Increasing this may improve performance, though often it has no "
15752 "effect."
15753 msgstr ""
15754
15755 #. type: textblock
15756 #: ../fish/guestfish-actions.pod:4589
15757 msgid "This function must be called before L</launch>."
15758 msgstr ""
15759
15760 #. type: =head2
15761 #: ../fish/guestfish-actions.pod:4591
15762 msgid "set-trace"
15763 msgstr ""
15764
15765 #. type: =head2
15766 #: ../fish/guestfish-actions.pod:4593
15767 msgid "trace"
15768 msgstr ""
15769
15770 #. type: verbatim
15771 #: ../fish/guestfish-actions.pod:4595
15772 #, no-wrap
15773 msgid ""
15774 " set-trace true|false\n"
15775 "\n"
15776 msgstr ""
15777
15778 #. type: textblock
15779 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:7082
15780 msgid ""
15781 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15782 "return values are traced."
15783 msgstr ""
15784
15785 #. type: textblock
15786 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:7085
15787 msgid ""
15788 "If you want to trace C API calls into libguestfs (and other libraries) then "
15789 "possibly a better way is to use the external ltrace(1) command."
15790 msgstr ""
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:7089
15794 msgid ""
15795 "Command traces are disabled unless the environment variable "
15796 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-actions.pod:4607
15801 msgid ""
15802 "Trace messages are normally sent to C<stderr>, unless you register a "
15803 "callback to send them somewhere else (see L</set-event-callback>)."
15804 msgstr ""
15805
15806 #. type: =head2
15807 #: ../fish/guestfish-actions.pod:4611
15808 msgid "set-verbose"
15809 msgstr ""
15810
15811 #. type: =head2
15812 #: ../fish/guestfish-actions.pod:4613
15813 msgid "verbose"
15814 msgstr ""
15815
15816 #. type: verbatim
15817 #: ../fish/guestfish-actions.pod:4615
15818 #, no-wrap
15819 msgid ""
15820 " set-verbose true|false\n"
15821 "\n"
15822 msgstr ""
15823
15824 #. type: textblock
15825 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:7106
15826 msgid "If C<verbose> is true, this turns on verbose messages."
15827 msgstr ""
15828
15829 #. type: textblock
15830 #: ../fish/guestfish-actions.pod:4619 ../src/guestfs-actions.pod:7108
15831 msgid ""
15832 "Verbose messages are disabled unless the environment variable "
15833 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15834 msgstr ""
15835
15836 #. type: textblock
15837 #: ../fish/guestfish-actions.pod:4622
15838 msgid ""
15839 "Verbose messages are normally sent to C<stderr>, unless you register a "
15840 "callback to send them somewhere else (see L</set-event-callback>)."
15841 msgstr ""
15842
15843 #. type: =head2
15844 #: ../fish/guestfish-actions.pod:4626
15845 msgid "setcon"
15846 msgstr ""
15847
15848 #. type: verbatim
15849 #: ../fish/guestfish-actions.pod:4628
15850 #, no-wrap
15851 msgid ""
15852 " setcon context\n"
15853 "\n"
15854 msgstr ""
15855
15856 #. type: textblock
15857 #: ../fish/guestfish-actions.pod:4630 ../src/guestfs-actions.pod:7125
15858 msgid ""
15859 "This sets the SELinux security context of the daemon to the string "
15860 "C<context>."
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../fish/guestfish-actions.pod:4633 ../src/guestfs-actions.pod:7128
15865 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15866 msgstr ""
15867
15868 #. type: =head2
15869 #: ../fish/guestfish-actions.pod:4635
15870 msgid "setxattr"
15871 msgstr ""
15872
15873 #. type: verbatim
15874 #: ../fish/guestfish-actions.pod:4637
15875 #, no-wrap
15876 msgid ""
15877 " setxattr xattr val vallen path\n"
15878 "\n"
15879 msgstr ""
15880
15881 #. type: textblock
15882 #: ../fish/guestfish-actions.pod:4639 ../src/guestfs-actions.pod:7143
15883 msgid ""
15884 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15885 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15886 msgstr ""
15887
15888 #. type: textblock
15889 #: ../fish/guestfish-actions.pod:4643
15890 msgid "See also: L</lsetxattr>, L<attr(5)>."
15891 msgstr ""
15892
15893 #. type: =head2
15894 #: ../fish/guestfish-actions.pod:4645
15895 msgid "sfdisk"
15896 msgstr ""
15897
15898 #. type: verbatim
15899 #: ../fish/guestfish-actions.pod:4647
15900 #, no-wrap
15901 msgid ""
15902 " sfdisk device cyls heads sectors 'lines ...'\n"
15903 "\n"
15904 msgstr ""
15905
15906 #. type: textblock
15907 #: ../fish/guestfish-actions.pod:4649 ../src/guestfs-actions.pod:7170
15908 msgid ""
15909 "This is a direct interface to the L<sfdisk(8)> program for creating "
15910 "partitions on block devices."
15911 msgstr ""
15912
15913 #. type: textblock
15914 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7173
15915 msgid "C<device> should be a block device, for example C</dev/sda>."
15916 msgstr ""
15917
15918 #. type: textblock
15919 #: ../fish/guestfish-actions.pod:4654 ../src/guestfs-actions.pod:7175
15920 msgid ""
15921 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15922 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15923 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15924 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15925 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15926 "the kernel) cannot work out the right geometry and you will need to tell it."
15927 msgstr ""
15928
15929 #. type: textblock
15930 #: ../fish/guestfish-actions.pod:4662 ../src/guestfs-actions.pod:7183
15931 msgid ""
15932 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15933 "refer to the L<sfdisk(8)> manpage."
15934 msgstr ""
15935
15936 #. type: textblock
15937 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7186
15938 msgid ""
15939 "To create a single partition occupying the whole disk, you would pass "
15940 "C<lines> as a single element list, when the single element being the string "
15941 "C<,> (comma)."
15942 msgstr ""
15943
15944 #. type: textblock
15945 #: ../fish/guestfish-actions.pod:4669
15946 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15947 msgstr ""
15948
15949 #. type: textblock
15950 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:4692 ../fish/guestfish-actions.pod:4711
15951 msgid ""
15952 "I<This function is deprecated.> In new code, use the L</part_add> call "
15953 "instead."
15954 msgstr ""
15955
15956 #. type: =head2
15957 #: ../fish/guestfish-actions.pod:4679
15958 msgid "sfdiskM"
15959 msgstr ""
15960
15961 #. type: verbatim
15962 #: ../fish/guestfish-actions.pod:4681
15963 #, no-wrap
15964 msgid ""
15965 " sfdiskM device 'lines ...'\n"
15966 "\n"
15967 msgstr ""
15968
15969 #. type: textblock
15970 #: ../fish/guestfish-actions.pod:4683
15971 msgid ""
15972 "This is a simplified interface to the L</sfdisk> command, where partition "
15973 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15974 "you don't need to specify the cyls, heads and sectors parameters which were "
15975 "rarely if ever used anyway."
15976 msgstr ""
15977
15978 #. type: textblock
15979 #: ../fish/guestfish-actions.pod:4689
15980 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15981 msgstr ""
15982
15983 #. type: =head2
15984 #: ../fish/guestfish-actions.pod:4699
15985 msgid "sfdisk-N"
15986 msgstr ""
15987
15988 #. type: verbatim
15989 #: ../fish/guestfish-actions.pod:4701
15990 #, no-wrap
15991 msgid ""
15992 " sfdisk-N device partnum cyls heads sectors line\n"
15993 "\n"
15994 msgstr ""
15995
15996 #. type: textblock
15997 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7242
15998 msgid ""
15999 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16000 "(note: C<n> counts from 1)."
16001 msgstr ""
16002
16003 #. type: textblock
16004 #: ../fish/guestfish-actions.pod:4706
16005 msgid ""
16006 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16007 "cyls/heads/sectors parameters."
16008 msgstr ""
16009
16010 #. type: textblock
16011 #: ../fish/guestfish-actions.pod:4709
16012 msgid "See also: L</part-add>"
16013 msgstr ""
16014
16015 #. type: =head2
16016 #: ../fish/guestfish-actions.pod:4718
16017 msgid "sfdisk-disk-geometry"
16018 msgstr ""
16019
16020 #. type: verbatim
16021 #: ../fish/guestfish-actions.pod:4720
16022 #, no-wrap
16023 msgid ""
16024 " sfdisk-disk-geometry device\n"
16025 "\n"
16026 msgstr ""
16027
16028 #. type: textblock
16029 #: ../fish/guestfish-actions.pod:4722
16030 msgid ""
16031 "This displays the disk geometry of C<device> read from the partition table.  "
16032 "Especially in the case where the underlying block device has been resized, "
16033 "this can be different from the kernel's idea of the geometry (see "
16034 "L</sfdisk-kernel-geometry>)."
16035 msgstr ""
16036
16037 #. type: textblock
16038 #: ../fish/guestfish-actions.pod:4727 ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7281
16039 msgid "The result is in human-readable format, and not designed to be parsed."
16040 msgstr ""
16041
16042 #. type: =head2
16043 #: ../fish/guestfish-actions.pod:4730
16044 msgid "sfdisk-kernel-geometry"
16045 msgstr ""
16046
16047 #. type: verbatim
16048 #: ../fish/guestfish-actions.pod:4732
16049 #, no-wrap
16050 msgid ""
16051 " sfdisk-kernel-geometry device\n"
16052 "\n"
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7279
16057 msgid "This displays the kernel's idea of the geometry of C<device>."
16058 msgstr ""
16059
16060 #. type: =head2
16061 #: ../fish/guestfish-actions.pod:4739
16062 msgid "sfdisk-l"
16063 msgstr ""
16064
16065 #. type: verbatim
16066 #: ../fish/guestfish-actions.pod:4741
16067 #, no-wrap
16068 msgid ""
16069 " sfdisk-l device\n"
16070 "\n"
16071 msgstr ""
16072
16073 #. type: textblock
16074 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7302
16075 msgid ""
16076 "This displays the partition table on C<device>, in the human-readable output "
16077 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16078 msgstr ""
16079
16080 #. type: textblock
16081 #: ../fish/guestfish-actions.pod:4747
16082 msgid "See also: L</part-list>"
16083 msgstr ""
16084
16085 #. type: textblock
16086 #: ../fish/guestfish-actions.pod:4749
16087 msgid ""
16088 "I<This function is deprecated.> In new code, use the L</part_list> call "
16089 "instead."
16090 msgstr ""
16091
16092 #. type: =head2
16093 #: ../fish/guestfish-actions.pod:4756
16094 msgid "sh"
16095 msgstr ""
16096
16097 #. type: verbatim
16098 #: ../fish/guestfish-actions.pod:4758
16099 #, no-wrap
16100 msgid ""
16101 " sh command\n"
16102 "\n"
16103 msgstr ""
16104
16105 #. type: textblock
16106 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7319
16107 msgid ""
16108 "This call runs a command from the guest filesystem via the guest's "
16109 "C</bin/sh>."
16110 msgstr ""
16111
16112 #. type: textblock
16113 #: ../fish/guestfish-actions.pod:4763
16114 msgid "This is like L</command>, but passes the command to:"
16115 msgstr ""
16116
16117 #. type: verbatim
16118 #: ../fish/guestfish-actions.pod:4765 ../src/guestfs-actions.pod:7324
16119 #, no-wrap
16120 msgid ""
16121 " /bin/sh -c \"command\"\n"
16122 "\n"
16123 msgstr ""
16124
16125 #. type: textblock
16126 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7326
16127 msgid ""
16128 "Depending on the guest's shell, this usually results in wildcards being "
16129 "expanded, shell expressions being interpolated and so on."
16130 msgstr ""
16131
16132 #. type: textblock
16133 #: ../fish/guestfish-actions.pod:4771
16134 msgid "All the provisos about L</command> apply to this call."
16135 msgstr ""
16136
16137 #. type: =head2
16138 #: ../fish/guestfish-actions.pod:4773
16139 msgid "sh-lines"
16140 msgstr ""
16141
16142 #. type: verbatim
16143 #: ../fish/guestfish-actions.pod:4775
16144 #, no-wrap
16145 msgid ""
16146 " sh-lines command\n"
16147 "\n"
16148 msgstr ""
16149
16150 #. type: textblock
16151 #: ../fish/guestfish-actions.pod:4777
16152 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16153 msgstr ""
16154
16155 #. type: textblock
16156 #: ../fish/guestfish-actions.pod:4780
16157 msgid "See also: L</command-lines>"
16158 msgstr ""
16159
16160 #. type: =head2
16161 #: ../fish/guestfish-actions.pod:4782
16162 msgid "sleep"
16163 msgstr ""
16164
16165 #. type: verbatim
16166 #: ../fish/guestfish-actions.pod:4784
16167 #, no-wrap
16168 msgid ""
16169 " sleep secs\n"
16170 "\n"
16171 msgstr ""
16172
16173 #. type: textblock
16174 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7360
16175 msgid "Sleep for C<secs> seconds."
16176 msgstr ""
16177
16178 #. type: =head2
16179 #: ../fish/guestfish-actions.pod:4788
16180 msgid "stat"
16181 msgstr ""
16182
16183 #. type: verbatim
16184 #: ../fish/guestfish-actions.pod:4790
16185 #, no-wrap
16186 msgid ""
16187 " stat path\n"
16188 "\n"
16189 msgstr ""
16190
16191 #. type: textblock
16192 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7374
16193 msgid "This is the same as the C<stat(2)> system call."
16194 msgstr ""
16195
16196 #. type: =head2
16197 #: ../fish/guestfish-actions.pod:4796
16198 msgid "statvfs"
16199 msgstr ""
16200
16201 #. type: verbatim
16202 #: ../fish/guestfish-actions.pod:4798
16203 #, no-wrap
16204 msgid ""
16205 " statvfs path\n"
16206 "\n"
16207 msgstr ""
16208
16209 #. type: textblock
16210 #: ../fish/guestfish-actions.pod:4800 ../src/guestfs-actions.pod:7388
16211 msgid ""
16212 "Returns file system statistics for any mounted file system.  C<path> should "
16213 "be a file or directory in the mounted file system (typically it is the mount "
16214 "point itself, but it doesn't need to be)."
16215 msgstr ""
16216
16217 #. type: textblock
16218 #: ../fish/guestfish-actions.pod:4804 ../src/guestfs-actions.pod:7392
16219 msgid "This is the same as the C<statvfs(2)> system call."
16220 msgstr ""
16221
16222 #. type: =head2
16223 #: ../fish/guestfish-actions.pod:4806
16224 msgid "strings"
16225 msgstr ""
16226
16227 #. type: verbatim
16228 #: ../fish/guestfish-actions.pod:4808
16229 #, no-wrap
16230 msgid ""
16231 " strings path\n"
16232 "\n"
16233 msgstr ""
16234
16235 #. type: textblock
16236 #: ../fish/guestfish-actions.pod:4810 ../src/guestfs-actions.pod:7406
16237 msgid ""
16238 "This runs the L<strings(1)> command on a file and returns the list of "
16239 "printable strings found."
16240 msgstr ""
16241
16242 #. type: =head2
16243 #: ../fish/guestfish-actions.pod:4816
16244 msgid "strings-e"
16245 msgstr ""
16246
16247 #. type: verbatim
16248 #: ../fish/guestfish-actions.pod:4818
16249 #, no-wrap
16250 msgid ""
16251 " strings-e encoding path\n"
16252 "\n"
16253 msgstr ""
16254
16255 #. type: textblock
16256 #: ../fish/guestfish-actions.pod:4820
16257 msgid ""
16258 "This is like the L</strings> command, but allows you to specify the encoding "
16259 "of strings that are looked for in the source file C<path>."
16260 msgstr ""
16261
16262 #. type: textblock
16263 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7429
16264 msgid "Allowed encodings are:"
16265 msgstr ""
16266
16267 #. type: =item
16268 #: ../fish/guestfish-actions.pod:4828 ../src/guestfs-actions.pod:7433
16269 msgid "s"
16270 msgstr ""
16271
16272 #. type: textblock
16273 #: ../fish/guestfish-actions.pod:4830
16274 msgid ""
16275 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16276 "ISO-8859-X (this is what L</strings> uses)."
16277 msgstr ""
16278
16279 #. type: =item
16280 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7438
16281 msgid "S"
16282 msgstr ""
16283
16284 #. type: textblock
16285 #: ../fish/guestfish-actions.pod:4835 ../src/guestfs-actions.pod:7440
16286 msgid "Single 8-bit-byte characters."
16287 msgstr ""
16288
16289 #. type: =item
16290 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7442
16291 msgid "b"
16292 msgstr ""
16293
16294 #. type: textblock
16295 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7444
16296 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16297 msgstr ""
16298
16299 #. type: =item
16300 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7447
16301 msgid "l (lower case letter L)"
16302 msgstr ""
16303
16304 #. type: textblock
16305 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7449
16306 msgid ""
16307 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16308 "examining binaries in Windows guests."
16309 msgstr ""
16310
16311 #. type: =item
16312 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7452
16313 msgid "B"
16314 msgstr ""
16315
16316 #. type: textblock
16317 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7454
16318 msgid "32-bit big endian such as UCS-4BE."
16319 msgstr ""
16320
16321 #. type: =item
16322 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7456
16323 msgid "L"
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish-actions.pod:4853 ../src/guestfs-actions.pod:7458
16328 msgid "32-bit little endian such as UCS-4LE."
16329 msgstr ""
16330
16331 #. type: textblock
16332 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7462
16333 msgid "The returned strings are transcoded to UTF-8."
16334 msgstr ""
16335
16336 #. type: =head2
16337 #: ../fish/guestfish-actions.pod:4862
16338 msgid "swapoff-device"
16339 msgstr ""
16340
16341 #. type: verbatim
16342 #: ../fish/guestfish-actions.pod:4864
16343 #, no-wrap
16344 msgid ""
16345 " swapoff-device device\n"
16346 "\n"
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish-actions.pod:4866
16351 msgid ""
16352 "This command disables the libguestfs appliance swap device or partition "
16353 "named C<device>.  See L</swapon-device>."
16354 msgstr ""
16355
16356 #. type: =head2
16357 #: ../fish/guestfish-actions.pod:4870
16358 msgid "swapoff-file"
16359 msgstr ""
16360
16361 #. type: verbatim
16362 #: ../fish/guestfish-actions.pod:4872
16363 #, no-wrap
16364 msgid ""
16365 " swapoff-file file\n"
16366 "\n"
16367 msgstr ""
16368
16369 #. type: textblock
16370 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7493
16371 msgid "This command disables the libguestfs appliance swap on file."
16372 msgstr ""
16373
16374 #. type: =head2
16375 #: ../fish/guestfish-actions.pod:4876
16376 msgid "swapoff-label"
16377 msgstr ""
16378
16379 #. type: verbatim
16380 #: ../fish/guestfish-actions.pod:4878
16381 #, no-wrap
16382 msgid ""
16383 " swapoff-label label\n"
16384 "\n"
16385 msgstr ""
16386
16387 #. type: textblock
16388 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7505
16389 msgid ""
16390 "This command disables the libguestfs appliance swap on labeled swap "
16391 "partition."
16392 msgstr ""
16393
16394 #. type: =head2
16395 #: ../fish/guestfish-actions.pod:4883
16396 msgid "swapoff-uuid"
16397 msgstr ""
16398
16399 #. type: verbatim
16400 #: ../fish/guestfish-actions.pod:4885
16401 #, no-wrap
16402 msgid ""
16403 " swapoff-uuid uuid\n"
16404 "\n"
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7518
16409 msgid ""
16410 "This command disables the libguestfs appliance swap partition with the given "
16411 "UUID."
16412 msgstr ""
16413
16414 #. type: =head2
16415 #: ../fish/guestfish-actions.pod:4890
16416 msgid "swapon-device"
16417 msgstr ""
16418
16419 #. type: verbatim
16420 #: ../fish/guestfish-actions.pod:4892
16421 #, no-wrap
16422 msgid ""
16423 " swapon-device device\n"
16424 "\n"
16425 msgstr ""
16426
16427 #. type: textblock
16428 #: ../fish/guestfish-actions.pod:4894
16429 msgid ""
16430 "This command enables the libguestfs appliance to use the swap device or "
16431 "partition named C<device>.  The increased memory is made available for all "
16432 "commands, for example those run using L</command> or L</sh>."
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../fish/guestfish-actions.pod:4899 ../src/guestfs-actions.pod:7536
16437 msgid ""
16438 "Note that you should not swap to existing guest swap partitions unless you "
16439 "know what you are doing.  They may contain hibernation information, or other "
16440 "information that the guest doesn't want you to trash.  You also risk leaking "
16441 "information about the host to the guest this way.  Instead, attach a new "
16442 "host device to the guest and swap on that."
16443 msgstr ""
16444
16445 #. type: =head2
16446 #: ../fish/guestfish-actions.pod:4906
16447 msgid "swapon-file"
16448 msgstr ""
16449
16450 #. type: verbatim
16451 #: ../fish/guestfish-actions.pod:4908
16452 #, no-wrap
16453 msgid ""
16454 " swapon-file file\n"
16455 "\n"
16456 msgstr ""
16457
16458 #. type: textblock
16459 #: ../fish/guestfish-actions.pod:4910
16460 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
16461 msgstr ""
16462
16463 #. type: =head2
16464 #: ../fish/guestfish-actions.pod:4913
16465 msgid "swapon-label"
16466 msgstr ""
16467
16468 #. type: verbatim
16469 #: ../fish/guestfish-actions.pod:4915
16470 #, no-wrap
16471 msgid ""
16472 " swapon-label label\n"
16473 "\n"
16474 msgstr ""
16475
16476 #. type: textblock
16477 #: ../fish/guestfish-actions.pod:4917
16478 msgid ""
16479 "This command enables swap to a labeled swap partition.  See "
16480 "L</swapon-device> for other notes."
16481 msgstr ""
16482
16483 #. type: =head2
16484 #: ../fish/guestfish-actions.pod:4920
16485 msgid "swapon-uuid"
16486 msgstr ""
16487
16488 #. type: verbatim
16489 #: ../fish/guestfish-actions.pod:4922
16490 #, no-wrap
16491 msgid ""
16492 " swapon-uuid uuid\n"
16493 "\n"
16494 msgstr ""
16495
16496 #. type: textblock
16497 #: ../fish/guestfish-actions.pod:4924
16498 msgid ""
16499 "This command enables swap to a swap partition with the given UUID.  See "
16500 "L</swapon-device> for other notes."
16501 msgstr ""
16502
16503 #. type: =head2
16504 #: ../fish/guestfish-actions.pod:4927
16505 msgid "sync"
16506 msgstr ""
16507
16508 #. type: verbatim
16509 #: ../fish/guestfish-actions.pod:4929
16510 #, no-wrap
16511 msgid ""
16512 " sync\n"
16513 "\n"
16514 msgstr ""
16515
16516 #. type: textblock
16517 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7591
16518 msgid ""
16519 "This syncs the disk, so that any writes are flushed through to the "
16520 "underlying disk image."
16521 msgstr ""
16522
16523 #. type: textblock
16524 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7594
16525 msgid ""
16526 "You should always call this if you have modified a disk image, before "
16527 "closing the handle."
16528 msgstr ""
16529
16530 #. type: =head2
16531 #: ../fish/guestfish-actions.pod:4937
16532 msgid "tail"
16533 msgstr ""
16534
16535 #. type: verbatim
16536 #: ../fish/guestfish-actions.pod:4939
16537 #, no-wrap
16538 msgid ""
16539 " tail path\n"
16540 "\n"
16541 msgstr ""
16542
16543 #. type: textblock
16544 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7607
16545 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16546 msgstr ""
16547
16548 #. type: =head2
16549 #: ../fish/guestfish-actions.pod:4947
16550 msgid "tail-n"
16551 msgstr ""
16552
16553 #. type: verbatim
16554 #: ../fish/guestfish-actions.pod:4949
16555 #, no-wrap
16556 msgid ""
16557 " tail-n nrlines path\n"
16558 "\n"
16559 msgstr ""
16560
16561 #. type: textblock
16562 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7626
16563 msgid ""
16564 "If the parameter C<nrlines> is a positive number, this returns the last "
16565 "C<nrlines> lines of the file C<path>."
16566 msgstr ""
16567
16568 #. type: textblock
16569 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7629
16570 msgid ""
16571 "If the parameter C<nrlines> is a negative number, this returns lines from "
16572 "the file C<path>, starting with the C<-nrlines>th line."
16573 msgstr ""
16574
16575 #. type: =head2
16576 #: ../fish/guestfish-actions.pod:4962
16577 msgid "tar-in"
16578 msgstr ""
16579
16580 #. type: verbatim
16581 #: ../fish/guestfish-actions.pod:4964
16582 #, no-wrap
16583 msgid ""
16584 " tar-in (tarfile|-) directory\n"
16585 "\n"
16586 msgstr ""
16587
16588 #. type: textblock
16589 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7650
16590 msgid ""
16591 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16592 "tar file) into C<directory>."
16593 msgstr ""
16594
16595 #. type: textblock
16596 #: ../fish/guestfish-actions.pod:4969
16597 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16598 msgstr ""
16599
16600 #. type: =head2
16601 #: ../fish/guestfish-actions.pod:4974
16602 msgid "tar-out"
16603 msgstr ""
16604
16605 #. type: verbatim
16606 #: ../fish/guestfish-actions.pod:4976
16607 #, no-wrap
16608 msgid ""
16609 " tar-out directory (tarfile|-)\n"
16610 "\n"
16611 msgstr ""
16612
16613 #. type: textblock
16614 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7667
16615 msgid ""
16616 "This command packs the contents of C<directory> and downloads it to local "
16617 "file C<tarfile>."
16618 msgstr ""
16619
16620 #. type: textblock
16621 #: ../fish/guestfish-actions.pod:4981
16622 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16623 msgstr ""
16624
16625 #. type: =head2
16626 #: ../fish/guestfish-actions.pod:4986
16627 msgid "tgz-in"
16628 msgstr ""
16629
16630 #. type: verbatim
16631 #: ../fish/guestfish-actions.pod:4988
16632 #, no-wrap
16633 msgid ""
16634 " tgz-in (tarball|-) directory\n"
16635 "\n"
16636 msgstr ""
16637
16638 #. type: textblock
16639 #: ../fish/guestfish-actions.pod:4990 ../src/guestfs-actions.pod:7684
16640 msgid ""
16641 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16642 "tar file) into C<directory>."
16643 msgstr ""
16644
16645 #. type: textblock
16646 #: ../fish/guestfish-actions.pod:4993
16647 msgid "To upload an uncompressed tarball, use L</tar-in>."
16648 msgstr ""
16649
16650 #. type: =head2
16651 #: ../fish/guestfish-actions.pod:4997
16652 msgid "tgz-out"
16653 msgstr ""
16654
16655 #. type: verbatim
16656 #: ../fish/guestfish-actions.pod:4999
16657 #, no-wrap
16658 msgid ""
16659 " tgz-out directory (tarball|-)\n"
16660 "\n"
16661 msgstr ""
16662
16663 #. type: textblock
16664 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7700
16665 msgid ""
16666 "This command packs the contents of C<directory> and downloads it to local "
16667 "file C<tarball>."
16668 msgstr ""
16669
16670 #. type: textblock
16671 #: ../fish/guestfish-actions.pod:5004
16672 msgid "To download an uncompressed tarball, use L</tar-out>."
16673 msgstr ""
16674
16675 #. type: =head2
16676 #: ../fish/guestfish-actions.pod:5008
16677 msgid "touch"
16678 msgstr ""
16679
16680 #. type: verbatim
16681 #: ../fish/guestfish-actions.pod:5010
16682 #, no-wrap
16683 msgid ""
16684 " touch path\n"
16685 "\n"
16686 msgstr ""
16687
16688 #. type: textblock
16689 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7715
16690 msgid ""
16691 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16692 "timestamps on a file, or, if the file does not exist, to create a new "
16693 "zero-length file."
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7719
16698 msgid ""
16699 "This command only works on regular files, and will fail on other file types "
16700 "such as directories, symbolic links, block special etc."
16701 msgstr ""
16702
16703 #. type: =head2
16704 #: ../fish/guestfish-actions.pod:5019
16705 msgid "truncate"
16706 msgstr ""
16707
16708 #. type: verbatim
16709 #: ../fish/guestfish-actions.pod:5021
16710 #, no-wrap
16711 msgid ""
16712 " truncate path\n"
16713 "\n"
16714 msgstr ""
16715
16716 #. type: textblock
16717 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7732
16718 msgid ""
16719 "This command truncates C<path> to a zero-length file.  The file must exist "
16720 "already."
16721 msgstr ""
16722
16723 #. type: =head2
16724 #: ../fish/guestfish-actions.pod:5026
16725 msgid "truncate-size"
16726 msgstr ""
16727
16728 #. type: verbatim
16729 #: ../fish/guestfish-actions.pod:5028
16730 #, no-wrap
16731 msgid ""
16732 " truncate-size path size\n"
16733 "\n"
16734 msgstr ""
16735
16736 #. type: textblock
16737 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7746
16738 msgid ""
16739 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16740 "already."
16741 msgstr ""
16742
16743 #. type: textblock
16744 #: ../fish/guestfish-actions.pod:5033
16745 msgid ""
16746 "If the current file size is less than C<size> then the file is extended to "
16747 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16748 "blocks are not allocated for the file until you write to it).  To create a "
16749 "non-sparse file of zeroes, use L</fallocate64> instead."
16750 msgstr ""
16751
16752 #. type: =head2
16753 #: ../fish/guestfish-actions.pod:5039
16754 msgid "tune2fs"
16755 msgstr ""
16756
16757 #. type: verbatim
16758 #: ../fish/guestfish-actions.pod:5041
16759 #, no-wrap
16760 msgid ""
16761 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] "
16762 "[errorbehavior:..] [group:N] [intervalbetweenchecks:N] "
16763 "[reservedblockspercentage:N] [lastmounteddirectory:..] "
16764 "[reservedblockscount:N] [user:N]\n"
16765 "\n"
16766 msgstr ""
16767
16768 #. type: textblock
16769 #: ../fish/guestfish-actions.pod:5043 ../src/guestfs-actions.pod:7782
16770 msgid ""
16771 "This call allows you to adjust various filesystem parameters of an "
16772 "ext2/ext3/ext4 filesystem called C<device>."
16773 msgstr ""
16774
16775 #. type: textblock
16776 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7791
16777 msgid ""
16778 "Force tune2fs to complete the operation even in the face of errors.  This is "
16779 "the same as the tune2fs C<-f> option."
16780 msgstr ""
16781
16782 #. type: =item
16783 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7794
16784 msgid "C<maxmountcount>"
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7796
16789 msgid ""
16790 "Set the number of mounts after which the filesystem is checked by "
16791 "L<e2fsck(8)>.  If this is C<0> then the number of mounts is disregarded.  "
16792 "This is the same as the tune2fs C<-c> option."
16793 msgstr ""
16794
16795 #. type: =item
16796 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7800
16797 msgid "C<mountcount>"
16798 msgstr ""
16799
16800 #. type: textblock
16801 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7802
16802 msgid ""
16803 "Set the number of times the filesystem has been mounted.  This is the same "
16804 "as the tune2fs C<-C> option."
16805 msgstr ""
16806
16807 #. type: =item
16808 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7805
16809 msgid "C<errorbehavior>"
16810 msgstr ""
16811
16812 #. type: textblock
16813 #: ../fish/guestfish-actions.pod:5068 ../src/guestfs-actions.pod:7807
16814 msgid ""
16815 "Change the behavior of the kernel code when errors are detected.  Possible "
16816 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
16817 "these options don't really make any difference, particularly for write "
16818 "errors."
16819 msgstr ""
16820
16821 #. type: textblock
16822 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7812
16823 msgid "This is the same as the tune2fs C<-e> option."
16824 msgstr ""
16825
16826 #. type: =item
16827 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7814
16828 msgid "C<group>"
16829 msgstr ""
16830
16831 #. type: textblock
16832 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7816
16833 msgid ""
16834 "Set the group which can use reserved filesystem blocks.  This is the same as "
16835 "the tune2fs C<-g> option except that it can only be specified as a number."
16836 msgstr ""
16837
16838 #. type: =item
16839 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7820
16840 msgid "C<intervalbetweenchecks>"
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7822
16845 msgid ""
16846 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
16847 "option is passed as C<0> then time-dependent checking is disabled."
16848 msgstr ""
16849
16850 #. type: textblock
16851 #: ../fish/guestfish-actions.pod:5087 ../src/guestfs-actions.pod:7826
16852 msgid "This is the same as the tune2fs C<-i> option."
16853 msgstr ""
16854
16855 #. type: =item
16856 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7828
16857 msgid "C<reservedblockspercentage>"
16858 msgstr ""
16859
16860 #. type: textblock
16861 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7830
16862 msgid ""
16863 "Set the percentage of the filesystem which may only be allocated by "
16864 "privileged processes.  This is the same as the tune2fs C<-m> option."
16865 msgstr ""
16866
16867 #. type: =item
16868 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7834
16869 msgid "C<lastmounteddirectory>"
16870 msgstr ""
16871
16872 #. type: textblock
16873 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7836
16874 msgid ""
16875 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
16876 "option."
16877 msgstr ""
16878
16879 #. type: =item
16880 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7839
16881 msgid ""
16882 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
16883 "is the same as the tune2fs C<-r> option."
16884 msgstr ""
16885
16886 #. type: =item
16887 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7843
16888 msgid "C<user>"
16889 msgstr ""
16890
16891 #. type: textblock
16892 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7845
16893 msgid ""
16894 "Set the user who can use the reserved filesystem blocks.  This is the same "
16895 "as the tune2fs C<-u> option except that it can only be specified as a "
16896 "number."
16897 msgstr ""
16898
16899 #. type: textblock
16900 #: ../fish/guestfish-actions.pod:5112
16901 msgid ""
16902 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
16903 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
16904 msgstr ""
16905
16906 #. type: =head2
16907 #: ../fish/guestfish-actions.pod:5118
16908 msgid "tune2fs-l"
16909 msgstr ""
16910
16911 #. type: verbatim
16912 #: ../fish/guestfish-actions.pod:5120
16913 #, no-wrap
16914 msgid ""
16915 " tune2fs-l device\n"
16916 "\n"
16917 msgstr ""
16918
16919 #. type: textblock
16920 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7887
16921 msgid ""
16922 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16923 "C<device>."
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7890
16928 msgid ""
16929 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16930 "for more details.  The list of fields returned isn't clearly defined, and "
16931 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16932 "and the filesystem itself."
16933 msgstr ""
16934
16935 #. type: =head2
16936 #: ../fish/guestfish-actions.pod:5130
16937 msgid "txz-in"
16938 msgstr ""
16939
16940 #. type: verbatim
16941 #: ../fish/guestfish-actions.pod:5132
16942 #, no-wrap
16943 msgid ""
16944 " txz-in (tarball|-) directory\n"
16945 "\n"
16946 msgstr ""
16947
16948 #. type: textblock
16949 #: ../fish/guestfish-actions.pod:5134 ../src/guestfs-actions.pod:7910
16950 msgid ""
16951 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16952 "tar file) into C<directory>."
16953 msgstr ""
16954
16955 #. type: =head2
16956 #: ../fish/guestfish-actions.pod:5139
16957 msgid "txz-out"
16958 msgstr ""
16959
16960 #. type: verbatim
16961 #: ../fish/guestfish-actions.pod:5141
16962 #, no-wrap
16963 msgid ""
16964 " txz-out directory (tarball|-)\n"
16965 "\n"
16966 msgstr ""
16967
16968 #. type: textblock
16969 #: ../fish/guestfish-actions.pod:5143 ../src/guestfs-actions.pod:7924
16970 msgid ""
16971 "This command packs the contents of C<directory> and downloads it to local "
16972 "file C<tarball> (as an xz compressed tar archive)."
16973 msgstr ""
16974
16975 #. type: =head2
16976 #: ../fish/guestfish-actions.pod:5148
16977 msgid "umask"
16978 msgstr ""
16979
16980 #. type: verbatim
16981 #: ../fish/guestfish-actions.pod:5150
16982 #, no-wrap
16983 msgid ""
16984 " umask mask\n"
16985 "\n"
16986 msgstr ""
16987
16988 #. type: textblock
16989 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7937
16990 msgid ""
16991 "This function sets the mask used for creating new files and device nodes to "
16992 "C<mask & 0777>."
16993 msgstr ""
16994
16995 #. type: textblock
16996 #: ../fish/guestfish-actions.pod:5155 ../src/guestfs-actions.pod:7940
16997 msgid ""
16998 "Typical umask values would be C<022> which creates new files with "
16999 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17000 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17001 msgstr ""
17002
17003 #. type: textblock
17004 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7945
17005 msgid ""
17006 "The default umask is C<022>.  This is important because it means that "
17007 "directories and device nodes will be created with C<0644> or C<0755> mode "
17008 "even if you specify C<0777>."
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../fish/guestfish-actions.pod:5164
17013 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17014 msgstr ""
17015
17016 #. type: textblock
17017 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7952
17018 msgid "This call returns the previous umask."
17019 msgstr ""
17020
17021 #. type: =head2
17022 #: ../fish/guestfish-actions.pod:5169
17023 msgid "umount"
17024 msgstr ""
17025
17026 #. type: =head2
17027 #: ../fish/guestfish-actions.pod:5171
17028 msgid "unmount"
17029 msgstr ""
17030
17031 #. type: verbatim
17032 #: ../fish/guestfish-actions.pod:5173
17033 #, no-wrap
17034 msgid ""
17035 " umount pathordevice\n"
17036 "\n"
17037 msgstr ""
17038
17039 #. type: textblock
17040 #: ../fish/guestfish-actions.pod:5175 ../src/guestfs-actions.pod:7964
17041 msgid ""
17042 "This unmounts the given filesystem.  The filesystem may be specified either "
17043 "by its mountpoint (path) or the device which contains the filesystem."
17044 msgstr ""
17045
17046 #. type: =head2
17047 #: ../fish/guestfish-actions.pod:5179
17048 msgid "umount-all"
17049 msgstr ""
17050
17051 #. type: =head2
17052 #: ../fish/guestfish-actions.pod:5181
17053 msgid "unmount-all"
17054 msgstr ""
17055
17056 #. type: verbatim
17057 #: ../fish/guestfish-actions.pod:5183
17058 #, no-wrap
17059 msgid ""
17060 " umount-all\n"
17061 "\n"
17062 msgstr ""
17063
17064 #. type: textblock
17065 #: ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:7977
17066 msgid "This unmounts all mounted filesystems."
17067 msgstr ""
17068
17069 #. type: textblock
17070 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7979
17071 msgid "Some internal mounts are not unmounted by this call."
17072 msgstr ""
17073
17074 #. type: =head2
17075 #: ../fish/guestfish-actions.pod:5189
17076 msgid "upload"
17077 msgstr ""
17078
17079 #. type: verbatim
17080 #: ../fish/guestfish-actions.pod:5191
17081 #, no-wrap
17082 msgid ""
17083 " upload (filename|-) remotefilename\n"
17084 "\n"
17085 msgstr ""
17086
17087 #. type: textblock
17088 #: ../fish/guestfish-actions.pod:5193 ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7992 ../src/guestfs-actions.pod:8016
17089 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17090 msgstr ""
17091
17092 #. type: textblock
17093 #: ../fish/guestfish-actions.pod:5198
17094 msgid "See also L</download>."
17095 msgstr ""
17096
17097 #. type: =head2
17098 #: ../fish/guestfish-actions.pod:5202
17099 msgid "upload-offset"
17100 msgstr ""
17101
17102 #. type: verbatim
17103 #: ../fish/guestfish-actions.pod:5204
17104 #, no-wrap
17105 msgid ""
17106 " upload-offset (filename|-) remotefilename offset\n"
17107 "\n"
17108 msgstr ""
17109
17110 #. type: textblock
17111 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:8019
17112 msgid ""
17113 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17114 "The intention is to overwrite parts of existing files or devices, although "
17115 "if a non-existant file is specified then it is created with a \"hole\" "
17116 "before C<offset>.  The size of the data written is implicit in the size of "
17117 "the source C<filename>."
17118 msgstr ""
17119
17120 #. type: textblock
17121 #: ../fish/guestfish-actions.pod:5216
17122 msgid ""
17123 "Note that there is no limit on the amount of data that can be uploaded with "
17124 "this call, unlike with L</pwrite>, and this call always writes the full "
17125 "amount unless an error occurs."
17126 msgstr ""
17127
17128 #. type: textblock
17129 #: ../fish/guestfish-actions.pod:5221
17130 msgid "See also L</upload>, L</pwrite>."
17131 msgstr ""
17132
17133 #. type: =head2
17134 #: ../fish/guestfish-actions.pod:5225
17135 msgid "utimens"
17136 msgstr ""
17137
17138 #. type: verbatim
17139 #: ../fish/guestfish-actions.pod:5227
17140 #, no-wrap
17141 msgid ""
17142 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17143 "\n"
17144 msgstr ""
17145
17146 #. type: textblock
17147 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8052
17148 msgid "This command sets the timestamps of a file with nanosecond precision."
17149 msgstr ""
17150
17151 #. type: textblock
17152 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8055
17153 msgid ""
17154 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17155 "from the epoch."
17156 msgstr ""
17157
17158 #. type: textblock
17159 #: ../fish/guestfish-actions.pod:5235 ../src/guestfs-actions.pod:8058
17160 msgid ""
17161 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17162 "nanoseconds from the epoch."
17163 msgstr ""
17164
17165 #. type: textblock
17166 #: ../fish/guestfish-actions.pod:5238 ../src/guestfs-actions.pod:8061
17167 msgid ""
17168 "If the C<*nsecs> field contains the special value C<-1> then the "
17169 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17170 "ignored in this case)."
17171 msgstr ""
17172
17173 #. type: textblock
17174 #: ../fish/guestfish-actions.pod:5242 ../src/guestfs-actions.pod:8065
17175 msgid ""
17176 "If the C<*nsecs> field contains the special value C<-2> then the "
17177 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17178 "in this case)."
17179 msgstr ""
17180
17181 #. type: =head2
17182 #: ../fish/guestfish-actions.pod:5246
17183 msgid "version"
17184 msgstr ""
17185
17186 #. type: verbatim
17187 #: ../fish/guestfish-actions.pod:5248
17188 #, no-wrap
17189 msgid ""
17190 " version\n"
17191 "\n"
17192 msgstr ""
17193
17194 #. type: textblock
17195 #: ../fish/guestfish-actions.pod:5250 ../src/guestfs-actions.pod:8078
17196 msgid "Return the libguestfs version number that the program is linked against."
17197 msgstr ""
17198
17199 #. type: textblock
17200 #: ../fish/guestfish-actions.pod:5253 ../src/guestfs-actions.pod:8081
17201 msgid ""
17202 "Note that because of dynamic linking this is not necessarily the version of "
17203 "libguestfs that you compiled against.  You can compile the program, and then "
17204 "at runtime dynamically link against a completely different C<libguestfs.so> "
17205 "library."
17206 msgstr ""
17207
17208 #. type: textblock
17209 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8086
17210 msgid ""
17211 "This call was added in version C<1.0.58>.  In previous versions of "
17212 "libguestfs there was no way to get the version number.  From C code you can "
17213 "use dynamic linker functions to find out if this symbol exists (if it "
17214 "doesn't, then it's an earlier version)."
17215 msgstr ""
17216
17217 #. type: textblock
17218 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8092
17219 msgid ""
17220 "The call returns a structure with four elements.  The first three (C<major>, "
17221 "C<minor> and C<release>) are numbers and correspond to the usual version "
17222 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17223 "but may be used for distro-specific information."
17224 msgstr ""
17225
17226 #. type: textblock
17227 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8098
17228 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish-actions.pod:5273 ../src/guestfs-actions.pod:8101
17233 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17234 msgstr ""
17235
17236 #. type: textblock
17237 #: ../fish/guestfish-actions.pod:5275
17238 msgid ""
17239 "I<Note:> Don't use this call to test for availability of features.  In "
17240 "enterprise distributions we backport features from later versions into "
17241 "earlier versions, making this an unreliable way to test for features.  Use "
17242 "L</available> instead."
17243 msgstr ""
17244
17245 #. type: =head2
17246 #: ../fish/guestfish-actions.pod:5281
17247 msgid "vfs-label"
17248 msgstr ""
17249
17250 #. type: verbatim
17251 #: ../fish/guestfish-actions.pod:5283
17252 #, no-wrap
17253 msgid ""
17254 " vfs-label device\n"
17255 "\n"
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8121
17260 msgid "This returns the filesystem label of the filesystem on C<device>."
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish-actions.pod:5288 ../src/guestfs-actions.pod:8124
17265 msgid "If the filesystem is unlabeled, this returns the empty string."
17266 msgstr ""
17267
17268 #. type: textblock
17269 #: ../fish/guestfish-actions.pod:5290
17270 msgid "To find a filesystem from the label, use L</findfs-label>."
17271 msgstr ""
17272
17273 #. type: =head2
17274 #: ../fish/guestfish-actions.pod:5292
17275 msgid "vfs-type"
17276 msgstr ""
17277
17278 #. type: verbatim
17279 #: ../fish/guestfish-actions.pod:5294
17280 #, no-wrap
17281 msgid ""
17282 " vfs-type device\n"
17283 "\n"
17284 msgstr ""
17285
17286 #. type: textblock
17287 #: ../fish/guestfish-actions.pod:5296 ../src/guestfs-actions.pod:8139
17288 msgid ""
17289 "This command gets the filesystem type corresponding to the filesystem on "
17290 "C<device>."
17291 msgstr ""
17292
17293 #. type: textblock
17294 #: ../fish/guestfish-actions.pod:5299 ../src/guestfs-actions.pod:8142
17295 msgid ""
17296 "For most filesystems, the result is the name of the Linux VFS module which "
17297 "would be used to mount this filesystem if you mounted it without specifying "
17298 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17299 msgstr ""
17300
17301 #. type: =head2
17302 #: ../fish/guestfish-actions.pod:5304
17303 msgid "vfs-uuid"
17304 msgstr ""
17305
17306 #. type: verbatim
17307 #: ../fish/guestfish-actions.pod:5306
17308 #, no-wrap
17309 msgid ""
17310 " vfs-uuid device\n"
17311 "\n"
17312 msgstr ""
17313
17314 #. type: textblock
17315 #: ../fish/guestfish-actions.pod:5308 ../src/guestfs-actions.pod:8158
17316 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17317 msgstr ""
17318
17319 #. type: textblock
17320 #: ../fish/guestfish-actions.pod:5311 ../src/guestfs-actions.pod:8161
17321 msgid "If the filesystem does not have a UUID, this returns the empty string."
17322 msgstr ""
17323
17324 #. type: textblock
17325 #: ../fish/guestfish-actions.pod:5313
17326 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17327 msgstr ""
17328
17329 #. type: =head2
17330 #: ../fish/guestfish-actions.pod:5315
17331 msgid "vg-activate"
17332 msgstr ""
17333
17334 #. type: verbatim
17335 #: ../fish/guestfish-actions.pod:5317
17336 #, no-wrap
17337 msgid ""
17338 " vg-activate true|false 'volgroups ...'\n"
17339 "\n"
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish-actions.pod:5319 ../src/guestfs-actions.pod:8177
17344 msgid ""
17345 "This command activates or (if C<activate> is false) deactivates all logical "
17346 "volumes in the listed volume groups C<volgroups>."
17347 msgstr ""
17348
17349 #. type: textblock
17350 #: ../fish/guestfish-actions.pod:5322 ../src/guestfs-actions.pod:8180
17351 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17352 msgstr ""
17353
17354 #. type: textblock
17355 #: ../fish/guestfish-actions.pod:5324 ../src/guestfs-actions.pod:8182
17356 msgid ""
17357 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17358 "activated or deactivated."
17359 msgstr ""
17360
17361 #. type: =head2
17362 #: ../fish/guestfish-actions.pod:5327
17363 msgid "vg-activate-all"
17364 msgstr ""
17365
17366 #. type: verbatim
17367 #: ../fish/guestfish-actions.pod:5329
17368 #, no-wrap
17369 msgid ""
17370 " vg-activate-all true|false\n"
17371 "\n"
17372 msgstr ""
17373
17374 #. type: textblock
17375 #: ../fish/guestfish-actions.pod:5331 ../src/guestfs-actions.pod:8195
17376 msgid ""
17377 "This command activates or (if C<activate> is false) deactivates all logical "
17378 "volumes in all volume groups."
17379 msgstr ""
17380
17381 #. type: textblock
17382 #: ../fish/guestfish-actions.pod:5334 ../src/guestfs-actions.pod:8198
17383 msgid "This command is the same as running C<vgchange -a y|n>"
17384 msgstr ""
17385
17386 #. type: =head2
17387 #: ../fish/guestfish-actions.pod:5336
17388 msgid "vgcreate"
17389 msgstr ""
17390
17391 #. type: verbatim
17392 #: ../fish/guestfish-actions.pod:5338
17393 #, no-wrap
17394 msgid ""
17395 " vgcreate volgroup 'physvols ...'\n"
17396 "\n"
17397 msgstr ""
17398
17399 #. type: textblock
17400 #: ../fish/guestfish-actions.pod:5340 ../src/guestfs-actions.pod:8211
17401 msgid ""
17402 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17403 "of physical volumes C<physvols>."
17404 msgstr ""
17405
17406 #. type: =head2
17407 #: ../fish/guestfish-actions.pod:5343
17408 msgid "vglvuuids"
17409 msgstr ""
17410
17411 #. type: verbatim
17412 #: ../fish/guestfish-actions.pod:5345
17413 #, no-wrap
17414 msgid ""
17415 " vglvuuids vgname\n"
17416 "\n"
17417 msgstr ""
17418
17419 #. type: textblock
17420 #: ../fish/guestfish-actions.pod:5347 ../src/guestfs-actions.pod:8224
17421 msgid ""
17422 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17423 "volumes created in this volume group."
17424 msgstr ""
17425
17426 #. type: textblock
17427 #: ../fish/guestfish-actions.pod:5350
17428 msgid ""
17429 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17430 "logical volumes and volume groups."
17431 msgstr ""
17432
17433 #. type: textblock
17434 #: ../fish/guestfish-actions.pod:5353
17435 msgid "See also L</vgpvuuids>."
17436 msgstr ""
17437
17438 #. type: =head2
17439 #: ../fish/guestfish-actions.pod:5355
17440 msgid "vgpvuuids"
17441 msgstr ""
17442
17443 #. type: verbatim
17444 #: ../fish/guestfish-actions.pod:5357
17445 #, no-wrap
17446 msgid ""
17447 " vgpvuuids vgname\n"
17448 "\n"
17449 msgstr ""
17450
17451 #. type: textblock
17452 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8244
17453 msgid ""
17454 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17455 "volumes that this volume group resides on."
17456 msgstr ""
17457
17458 #. type: textblock
17459 #: ../fish/guestfish-actions.pod:5362
17460 msgid ""
17461 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17462 "physical volumes and volume groups."
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish-actions.pod:5365
17467 msgid "See also L</vglvuuids>."
17468 msgstr ""
17469
17470 #. type: =head2
17471 #: ../fish/guestfish-actions.pod:5367
17472 msgid "vgremove"
17473 msgstr ""
17474
17475 #. type: verbatim
17476 #: ../fish/guestfish-actions.pod:5369
17477 #, no-wrap
17478 msgid ""
17479 " vgremove vgname\n"
17480 "\n"
17481 msgstr ""
17482
17483 #. type: textblock
17484 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:8264
17485 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17486 msgstr ""
17487
17488 #. type: textblock
17489 #: ../fish/guestfish-actions.pod:5373 ../src/guestfs-actions.pod:8266
17490 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17491 msgstr ""
17492
17493 #. type: =head2
17494 #: ../fish/guestfish-actions.pod:5376
17495 msgid "vgrename"
17496 msgstr ""
17497
17498 #. type: verbatim
17499 #: ../fish/guestfish-actions.pod:5378
17500 #, no-wrap
17501 msgid ""
17502 " vgrename volgroup newvolgroup\n"
17503 "\n"
17504 msgstr ""
17505
17506 #. type: textblock
17507 #: ../fish/guestfish-actions.pod:5380 ../src/guestfs-actions.pod:8280
17508 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17509 msgstr ""
17510
17511 #. type: =head2
17512 #: ../fish/guestfish-actions.pod:5382
17513 msgid "vgs"
17514 msgstr ""
17515
17516 #. type: verbatim
17517 #: ../fish/guestfish-actions.pod:5384
17518 #, no-wrap
17519 msgid ""
17520 " vgs\n"
17521 "\n"
17522 msgstr ""
17523
17524 #. type: textblock
17525 #: ../fish/guestfish-actions.pod:5386 ../src/guestfs-actions.pod:8291
17526 msgid ""
17527 "List all the volumes groups detected.  This is the equivalent of the "
17528 "L<vgs(8)> command."
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish-actions.pod:5389 ../src/guestfs-actions.pod:8294
17533 msgid ""
17534 "This returns a list of just the volume group names that were detected "
17535 "(eg. C<VolGroup00>)."
17536 msgstr ""
17537
17538 #. type: textblock
17539 #: ../fish/guestfish-actions.pod:5392
17540 msgid "See also L</vgs-full>."
17541 msgstr ""
17542
17543 #. type: =head2
17544 #: ../fish/guestfish-actions.pod:5394
17545 msgid "vgs-full"
17546 msgstr ""
17547
17548 #. type: verbatim
17549 #: ../fish/guestfish-actions.pod:5396
17550 #, no-wrap
17551 msgid ""
17552 " vgs-full\n"
17553 "\n"
17554 msgstr ""
17555
17556 #. type: textblock
17557 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8310
17558 msgid ""
17559 "List all the volumes groups detected.  This is the equivalent of the "
17560 "L<vgs(8)> command.  The \"full\" version includes all fields."
17561 msgstr ""
17562
17563 #. type: =head2
17564 #: ../fish/guestfish-actions.pod:5401
17565 msgid "vgscan"
17566 msgstr ""
17567
17568 #. type: verbatim
17569 #: ../fish/guestfish-actions.pod:5403
17570 #, no-wrap
17571 msgid ""
17572 " vgscan\n"
17573 "\n"
17574 msgstr ""
17575
17576 #. type: textblock
17577 #: ../fish/guestfish-actions.pod:5405 ../src/guestfs-actions.pod:8324
17578 msgid ""
17579 "This rescans all block devices and rebuilds the list of LVM physical "
17580 "volumes, volume groups and logical volumes."
17581 msgstr ""
17582
17583 #. type: =head2
17584 #: ../fish/guestfish-actions.pod:5408
17585 msgid "vguuid"
17586 msgstr ""
17587
17588 #. type: verbatim
17589 #: ../fish/guestfish-actions.pod:5410
17590 #, no-wrap
17591 msgid ""
17592 " vguuid vgname\n"
17593 "\n"
17594 msgstr ""
17595
17596 #. type: textblock
17597 #: ../fish/guestfish-actions.pod:5412 ../src/guestfs-actions.pod:8337
17598 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17599 msgstr ""
17600
17601 #. type: =head2
17602 #: ../fish/guestfish-actions.pod:5414
17603 msgid "wc-c"
17604 msgstr ""
17605
17606 #. type: verbatim
17607 #: ../fish/guestfish-actions.pod:5416
17608 #, no-wrap
17609 msgid ""
17610 " wc-c path\n"
17611 "\n"
17612 msgstr ""
17613
17614 #. type: textblock
17615 #: ../fish/guestfish-actions.pod:5418 ../src/guestfs-actions.pod:8377
17616 msgid ""
17617 "This command counts the characters in a file, using the C<wc -c> external "
17618 "command."
17619 msgstr ""
17620
17621 #. type: =head2
17622 #: ../fish/guestfish-actions.pod:5421
17623 msgid "wc-l"
17624 msgstr ""
17625
17626 #. type: verbatim
17627 #: ../fish/guestfish-actions.pod:5423
17628 #, no-wrap
17629 msgid ""
17630 " wc-l path\n"
17631 "\n"
17632 msgstr ""
17633
17634 #. type: textblock
17635 #: ../fish/guestfish-actions.pod:5425 ../src/guestfs-actions.pod:8390
17636 msgid ""
17637 "This command counts the lines in a file, using the C<wc -l> external "
17638 "command."
17639 msgstr ""
17640
17641 #. type: =head2
17642 #: ../fish/guestfish-actions.pod:5428
17643 msgid "wc-w"
17644 msgstr ""
17645
17646 #. type: verbatim
17647 #: ../fish/guestfish-actions.pod:5430
17648 #, no-wrap
17649 msgid ""
17650 " wc-w path\n"
17651 "\n"
17652 msgstr ""
17653
17654 #. type: textblock
17655 #: ../fish/guestfish-actions.pod:5432 ../src/guestfs-actions.pod:8403
17656 msgid ""
17657 "This command counts the words in a file, using the C<wc -w> external "
17658 "command."
17659 msgstr ""
17660
17661 #. type: =head2
17662 #: ../fish/guestfish-actions.pod:5435
17663 msgid "write"
17664 msgstr ""
17665
17666 #. type: verbatim
17667 #: ../fish/guestfish-actions.pod:5437
17668 #, no-wrap
17669 msgid ""
17670 " write path content\n"
17671 "\n"
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../fish/guestfish-actions.pod:5439 ../src/guestfs-actions.pod:8418
17676 msgid ""
17677 "This call creates a file called C<path>.  The content of the file is the "
17678 "string C<content> (which can contain any 8 bit data)."
17679 msgstr ""
17680
17681 #. type: textblock
17682 #: ../fish/guestfish-actions.pod:5442
17683 msgid "See also L</write-append>."
17684 msgstr ""
17685
17686 #. type: =head2
17687 #: ../fish/guestfish-actions.pod:5447
17688 msgid "write-append"
17689 msgstr ""
17690
17691 #. type: verbatim
17692 #: ../fish/guestfish-actions.pod:5449
17693 #, no-wrap
17694 msgid ""
17695 " write-append path content\n"
17696 "\n"
17697 msgstr ""
17698
17699 #. type: textblock
17700 #: ../fish/guestfish-actions.pod:5451 ../src/guestfs-actions.pod:8438
17701 msgid ""
17702 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17703 "not exist, then a new file is created."
17704 msgstr ""
17705
17706 #. type: textblock
17707 #: ../fish/guestfish-actions.pod:5454
17708 msgid "See also L</write>."
17709 msgstr ""
17710
17711 #. type: =head2
17712 #: ../fish/guestfish-actions.pod:5459
17713 msgid "write-file"
17714 msgstr ""
17715
17716 #. type: verbatim
17717 #: ../fish/guestfish-actions.pod:5461
17718 #, no-wrap
17719 msgid ""
17720 " write-file path content size\n"
17721 "\n"
17722 msgstr ""
17723
17724 #. type: textblock
17725 #: ../fish/guestfish-actions.pod:5463 ../src/guestfs-actions.pod:8465
17726 msgid ""
17727 "This call creates a file called C<path>.  The contents of the file is the "
17728 "string C<content> (which can contain any 8 bit data), with length C<size>."
17729 msgstr ""
17730
17731 #. type: textblock
17732 #: ../fish/guestfish-actions.pod:5467 ../src/guestfs-actions.pod:8469
17733 msgid ""
17734 "As a special case, if C<size> is C<0> then the length is calculated using "
17735 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17736 msgstr ""
17737
17738 #. type: textblock
17739 #: ../fish/guestfish-actions.pod:5471 ../src/guestfs-actions.pod:8473
17740 msgid ""
17741 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17742 "I<not> work, even if the length is specified."
17743 msgstr ""
17744
17745 #. type: textblock
17746 #: ../fish/guestfish-actions.pod:5477
17747 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
17748 msgstr ""
17749
17750 #. type: =head2
17751 #: ../fish/guestfish-actions.pod:5484
17752 msgid "zegrep"
17753 msgstr ""
17754
17755 #. type: verbatim
17756 #: ../fish/guestfish-actions.pod:5486
17757 #, no-wrap
17758 msgid ""
17759 " zegrep regex path\n"
17760 "\n"
17761 msgstr ""
17762
17763 #. type: textblock
17764 #: ../fish/guestfish-actions.pod:5488 ../src/guestfs-actions.pod:8490
17765 msgid "This calls the external C<zegrep> program and returns the matching lines."
17766 msgstr ""
17767
17768 #. type: =head2
17769 #: ../fish/guestfish-actions.pod:5494
17770 msgid "zegrepi"
17771 msgstr ""
17772
17773 #. type: verbatim
17774 #: ../fish/guestfish-actions.pod:5496
17775 #, no-wrap
17776 msgid ""
17777 " zegrepi regex path\n"
17778 "\n"
17779 msgstr ""
17780
17781 #. type: textblock
17782 #: ../fish/guestfish-actions.pod:5498 ../src/guestfs-actions.pod:8509
17783 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17784 msgstr ""
17785
17786 #. type: =head2
17787 #: ../fish/guestfish-actions.pod:5504
17788 msgid "zero"
17789 msgstr ""
17790
17791 #. type: verbatim
17792 #: ../fish/guestfish-actions.pod:5506
17793 #, no-wrap
17794 msgid ""
17795 " zero device\n"
17796 "\n"
17797 msgstr ""
17798
17799 #. type: textblock
17800 #: ../fish/guestfish-actions.pod:5508 ../src/guestfs-actions.pod:8527
17801 msgid "This command writes zeroes over the first few blocks of C<device>."
17802 msgstr ""
17803
17804 #. type: textblock
17805 #: ../fish/guestfish-actions.pod:5510 ../src/guestfs-actions.pod:8529
17806 msgid ""
17807 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17808 "securely wipe the device).  It should be sufficient to remove any partition "
17809 "tables, filesystem superblocks and so on."
17810 msgstr ""
17811
17812 #. type: textblock
17813 #: ../fish/guestfish-actions.pod:5514 ../fish/guestfish-actions.pod:5529 ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8559
17814 msgid ""
17815 "If blocks are already zero, then this command avoids writing zeroes.  This "
17816 "prevents the underlying device from becoming non-sparse or growing "
17817 "unnecessarily."
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../fish/guestfish-actions.pod:5518
17822 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17823 msgstr ""
17824
17825 #. type: =head2
17826 #: ../fish/guestfish-actions.pod:5521
17827 msgid "zero-device"
17828 msgstr ""
17829
17830 #. type: verbatim
17831 #: ../fish/guestfish-actions.pod:5523
17832 #, no-wrap
17833 msgid ""
17834 " zero-device device\n"
17835 "\n"
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish-actions.pod:5525
17840 msgid ""
17841 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17842 "which just zeroes the first few blocks of a device."
17843 msgstr ""
17844
17845 #. type: =head2
17846 #: ../fish/guestfish-actions.pod:5533
17847 msgid "zerofree"
17848 msgstr ""
17849
17850 #. type: verbatim
17851 #: ../fish/guestfish-actions.pod:5535
17852 #, no-wrap
17853 msgid ""
17854 " zerofree device\n"
17855 "\n"
17856 msgstr ""
17857
17858 #. type: textblock
17859 #: ../fish/guestfish-actions.pod:5537 ../src/guestfs-actions.pod:8578
17860 msgid ""
17861 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17862 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17863 "possible to compress the filesystem more effectively."
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish-actions.pod:5542 ../src/guestfs-actions.pod:8583
17868 msgid "You should B<not> run this program if the filesystem is mounted."
17869 msgstr ""
17870
17871 #. type: textblock
17872 #: ../fish/guestfish-actions.pod:5545 ../src/guestfs-actions.pod:8586
17873 msgid ""
17874 "It is possible that using this program can damage the filesystem or data on "
17875 "the filesystem."
17876 msgstr ""
17877
17878 #. type: =head2
17879 #: ../fish/guestfish-actions.pod:5548
17880 msgid "zfgrep"
17881 msgstr ""
17882
17883 #. type: verbatim
17884 #: ../fish/guestfish-actions.pod:5550
17885 #, no-wrap
17886 msgid ""
17887 " zfgrep pattern path\n"
17888 "\n"
17889 msgstr ""
17890
17891 #. type: textblock
17892 #: ../fish/guestfish-actions.pod:5552 ../src/guestfs-actions.pod:8600
17893 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17894 msgstr ""
17895
17896 #. type: =head2
17897 #: ../fish/guestfish-actions.pod:5558
17898 msgid "zfgrepi"
17899 msgstr ""
17900
17901 #. type: verbatim
17902 #: ../fish/guestfish-actions.pod:5560
17903 #, no-wrap
17904 msgid ""
17905 " zfgrepi pattern path\n"
17906 "\n"
17907 msgstr ""
17908
17909 #. type: textblock
17910 #: ../fish/guestfish-actions.pod:5562 ../src/guestfs-actions.pod:8619
17911 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17912 msgstr ""
17913
17914 #. type: =head2
17915 #: ../fish/guestfish-actions.pod:5568
17916 msgid "zfile"
17917 msgstr ""
17918
17919 #. type: verbatim
17920 #: ../fish/guestfish-actions.pod:5570
17921 #, no-wrap
17922 msgid ""
17923 " zfile meth path\n"
17924 "\n"
17925 msgstr ""
17926
17927 #. type: textblock
17928 #: ../fish/guestfish-actions.pod:5572 ../src/guestfs-actions.pod:8645
17929 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17930 msgstr ""
17931
17932 #. type: textblock
17933 #: ../fish/guestfish-actions.pod:5575 ../src/guestfs-actions.pod:8648
17934 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17935 msgstr ""
17936
17937 #. type: textblock
17938 #: ../fish/guestfish-actions.pod:5577
17939 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
17940 msgstr ""
17941
17942 #. type: textblock
17943 #: ../fish/guestfish-actions.pod:5580
17944 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
17945 msgstr ""
17946
17947 #. type: =head2
17948 #: ../fish/guestfish-actions.pod:5587
17949 msgid "zgrep"
17950 msgstr ""
17951
17952 #. type: verbatim
17953 #: ../fish/guestfish-actions.pod:5589
17954 #, no-wrap
17955 msgid ""
17956 " zgrep regex path\n"
17957 "\n"
17958 msgstr ""
17959
17960 #. type: textblock
17961 #: ../fish/guestfish-actions.pod:5591 ../src/guestfs-actions.pod:8665
17962 msgid "This calls the external C<zgrep> program and returns the matching lines."
17963 msgstr ""
17964
17965 #. type: =head2
17966 #: ../fish/guestfish-actions.pod:5597
17967 msgid "zgrepi"
17968 msgstr ""
17969
17970 #. type: verbatim
17971 #: ../fish/guestfish-actions.pod:5599
17972 #, no-wrap
17973 msgid ""
17974 " zgrepi regex path\n"
17975 "\n"
17976 msgstr ""
17977
17978 #. type: textblock
17979 #: ../fish/guestfish-actions.pod:5601 ../src/guestfs-actions.pod:8684
17980 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
17981 msgstr ""
17982
17983 #. type: =head2
17984 #: ../fish/guestfish-commands.pod:1
17985 msgid "alloc"
17986 msgstr ""
17987
17988 #. type: =head2
17989 #: ../fish/guestfish-commands.pod:3
17990 msgid "allocate"
17991 msgstr ""
17992
17993 #. type: verbatim
17994 #: ../fish/guestfish-commands.pod:5
17995 #, no-wrap
17996 msgid ""
17997 " alloc filename size\n"
17998 "\n"
17999 msgstr ""
18000
18001 #. type: textblock
18002 #: ../fish/guestfish-commands.pod:7
18003 msgid ""
18004 "This creates an empty (zeroed) file of the given size, and then adds so it "
18005 "can be further examined."
18006 msgstr ""
18007
18008 #. type: textblock
18009 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18010 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18015 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18016 msgstr ""
18017
18018 #. type: textblock
18019 #: ../fish/guestfish-commands.pod:14
18020 msgid ""
18021 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18022 "image, see L</PREPARED DISK IMAGES>."
18023 msgstr ""
18024
18025 #. type: =head2
18026 #: ../fish/guestfish-commands.pod:17
18027 msgid "copy-in"
18028 msgstr ""
18029
18030 #. type: verbatim
18031 #: ../fish/guestfish-commands.pod:19
18032 #, no-wrap
18033 msgid ""
18034 " copy-in local [local ...] /remotedir\n"
18035 "\n"
18036 msgstr ""
18037
18038 #. type: textblock
18039 #: ../fish/guestfish-commands.pod:21
18040 msgid ""
18041 "C<copy-in> copies local files or directories recursively into the disk "
18042 "image, placing them in the directory called C</remotedir> (which must "
18043 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18044 "other commands as necessary."
18045 msgstr ""
18046
18047 #. type: textblock
18048 #: ../fish/guestfish-commands.pod:26
18049 msgid ""
18050 "Multiple local files and directories can be specified, but the last "
18051 "parameter must always be a remote directory.  Wildcards cannot be used."
18052 msgstr ""
18053
18054 #. type: =head2
18055 #: ../fish/guestfish-commands.pod:30
18056 msgid "copy-out"
18057 msgstr ""
18058
18059 #. type: verbatim
18060 #: ../fish/guestfish-commands.pod:32
18061 #, no-wrap
18062 msgid ""
18063 " copy-out remote [remote ...] localdir\n"
18064 "\n"
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../fish/guestfish-commands.pod:34
18069 msgid ""
18070 "C<copy-out> copies remote files or directories recursively out of the disk "
18071 "image, placing them on the host disk in a local directory called C<localdir> "
18072 "(which must exist).  This guestfish meta-command turns into a sequence of "
18073 "L</download>, L</tar-out> and other commands as necessary."
18074 msgstr ""
18075
18076 #. type: textblock
18077 #: ../fish/guestfish-commands.pod:40
18078 msgid ""
18079 "Multiple remote files and directories can be specified, but the last "
18080 "parameter must always be a local directory.  To download to the current "
18081 "directory, use C<.> as in:"
18082 msgstr ""
18083
18084 #. type: verbatim
18085 #: ../fish/guestfish-commands.pod:44
18086 #, no-wrap
18087 msgid ""
18088 " copy-out /home .\n"
18089 "\n"
18090 msgstr ""
18091
18092 #. type: textblock
18093 #: ../fish/guestfish-commands.pod:46
18094 msgid ""
18095 "Wildcards cannot be used in the ordinary command, but you can use them with "
18096 "the help of L</glob> like this:"
18097 msgstr ""
18098
18099 #. type: verbatim
18100 #: ../fish/guestfish-commands.pod:49
18101 #, no-wrap
18102 msgid ""
18103 " glob copy-out /home/* .\n"
18104 "\n"
18105 msgstr ""
18106
18107 #. type: =head2
18108 #: ../fish/guestfish-commands.pod:51
18109 msgid "display"
18110 msgstr ""
18111
18112 #. type: verbatim
18113 #: ../fish/guestfish-commands.pod:53
18114 #, no-wrap
18115 msgid ""
18116 " display filename\n"
18117 "\n"
18118 msgstr ""
18119
18120 #. type: textblock
18121 #: ../fish/guestfish-commands.pod:55
18122 msgid ""
18123 "Use C<display> (a graphical display program) to display an image file.  It "
18124 "downloads the file, and runs C<display> on it."
18125 msgstr ""
18126
18127 #. type: textblock
18128 #: ../fish/guestfish-commands.pod:58
18129 msgid ""
18130 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18131 "environment variable.  For example to use the GNOME display program:"
18132 msgstr ""
18133
18134 #. type: verbatim
18135 #: ../fish/guestfish-commands.pod:61
18136 #, no-wrap
18137 msgid ""
18138 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18139 "\n"
18140 msgstr ""
18141
18142 #. type: textblock
18143 #: ../fish/guestfish-commands.pod:63
18144 msgid "See also L<display(1)>."
18145 msgstr ""
18146
18147 #. type: =head2
18148 #: ../fish/guestfish-commands.pod:65
18149 msgid "echo"
18150 msgstr ""
18151
18152 #. type: verbatim
18153 #: ../fish/guestfish-commands.pod:67
18154 #, no-wrap
18155 msgid ""
18156 " echo [params ...]\n"
18157 "\n"
18158 msgstr ""
18159
18160 #. type: textblock
18161 #: ../fish/guestfish-commands.pod:69
18162 msgid "This echos the parameters to the terminal."
18163 msgstr ""
18164
18165 #. type: =head2
18166 #: ../fish/guestfish-commands.pod:71
18167 msgid "edit"
18168 msgstr ""
18169
18170 #. type: =head2
18171 #: ../fish/guestfish-commands.pod:73
18172 msgid "vi"
18173 msgstr ""
18174
18175 #. type: =head2
18176 #: ../fish/guestfish-commands.pod:75
18177 msgid "emacs"
18178 msgstr ""
18179
18180 #. type: verbatim
18181 #: ../fish/guestfish-commands.pod:77
18182 #, no-wrap
18183 msgid ""
18184 " edit filename\n"
18185 "\n"
18186 msgstr ""
18187
18188 #. type: textblock
18189 #: ../fish/guestfish-commands.pod:79
18190 msgid ""
18191 "This is used to edit a file.  It downloads the file, edits it locally using "
18192 "your editor, then uploads the result."
18193 msgstr ""
18194
18195 #. type: textblock
18196 #: ../fish/guestfish-commands.pod:82
18197 msgid ""
18198 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18199 "or C<emacs> you will get those corresponding editors."
18200 msgstr ""
18201
18202 #. type: =head2
18203 #: ../fish/guestfish-commands.pod:86
18204 msgid "glob"
18205 msgstr ""
18206
18207 #. type: verbatim
18208 #: ../fish/guestfish-commands.pod:88
18209 #, no-wrap
18210 msgid ""
18211 " glob command args...\n"
18212 "\n"
18213 msgstr ""
18214
18215 #. type: textblock
18216 #: ../fish/guestfish-commands.pod:90
18217 msgid ""
18218 "Expand wildcards in any paths in the args list, and run C<command> "
18219 "repeatedly on each matching path."
18220 msgstr ""
18221
18222 #. type: textblock
18223 #: ../fish/guestfish-commands.pod:93
18224 msgid "See L</WILDCARDS AND GLOBBING>."
18225 msgstr ""
18226
18227 #. type: =head2
18228 #: ../fish/guestfish-commands.pod:95
18229 msgid "hexedit"
18230 msgstr ""
18231
18232 #. type: verbatim
18233 #: ../fish/guestfish-commands.pod:97
18234 #, no-wrap
18235 msgid ""
18236 " hexedit <filename|device>\n"
18237 " hexedit <filename|device> <max>\n"
18238 " hexedit <filename|device> <start> <max>\n"
18239 "\n"
18240 msgstr ""
18241
18242 #. type: textblock
18243 #: ../fish/guestfish-commands.pod:101
18244 msgid ""
18245 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18246 "device."
18247 msgstr ""
18248
18249 #. type: textblock
18250 #: ../fish/guestfish-commands.pod:104
18251 msgid ""
18252 "This command works by downloading potentially the whole file or device, "
18253 "editing it locally, then uploading it.  If the file or device is large, you "
18254 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18255 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18256 "usual modifiers allowed such as C<1M> (1 megabyte)."
18257 msgstr ""
18258
18259 #. type: textblock
18260 #: ../fish/guestfish-commands.pod:111
18261 msgid "For example to edit the first few sectors of a disk you might do:"
18262 msgstr ""
18263
18264 #. type: verbatim
18265 #: ../fish/guestfish-commands.pod:114
18266 #, no-wrap
18267 msgid ""
18268 " hexedit /dev/sda 1M\n"
18269 "\n"
18270 msgstr ""
18271
18272 #. type: textblock
18273 #: ../fish/guestfish-commands.pod:116
18274 msgid ""
18275 "which would allow you to edit anywhere within the first megabyte of the "
18276 "disk."
18277 msgstr ""
18278
18279 #. type: textblock
18280 #: ../fish/guestfish-commands.pod:119
18281 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18282 msgstr ""
18283
18284 #. type: verbatim
18285 #: ../fish/guestfish-commands.pod:121
18286 #, no-wrap
18287 msgid ""
18288 " hexedit /dev/sda1 0x400 0x400\n"
18289 "\n"
18290 msgstr ""
18291
18292 #. type: textblock
18293 #: ../fish/guestfish-commands.pod:123
18294 msgid "(assuming the superblock is in the standard location)."
18295 msgstr ""
18296
18297 #. type: textblock
18298 #: ../fish/guestfish-commands.pod:125
18299 msgid ""
18300 "This command requires the external L<hexedit(1)> program.  You can specify "
18301 "another program to use by setting the C<HEXEDITOR> environment variable."
18302 msgstr ""
18303
18304 #. type: textblock
18305 #: ../fish/guestfish-commands.pod:129
18306 msgid "See also L</hexdump>."
18307 msgstr ""
18308
18309 #. type: =head2
18310 #: ../fish/guestfish-commands.pod:131
18311 msgid "lcd"
18312 msgstr ""
18313
18314 #. type: verbatim
18315 #: ../fish/guestfish-commands.pod:133
18316 #, no-wrap
18317 msgid ""
18318 " lcd directory\n"
18319 "\n"
18320 msgstr ""
18321
18322 #. type: textblock
18323 #: ../fish/guestfish-commands.pod:135
18324 msgid "Change the local directory, ie. the current directory of guestfish itself."
18325 msgstr ""
18326
18327 #. type: textblock
18328 #: ../fish/guestfish-commands.pod:138
18329 msgid "Note that C<!cd> won't do what you might expect."
18330 msgstr ""
18331
18332 #. type: =head2
18333 #: ../fish/guestfish-commands.pod:140
18334 msgid "man"
18335 msgstr ""
18336
18337 #. type: =head2
18338 #: ../fish/guestfish-commands.pod:142
18339 msgid "manual"
18340 msgstr ""
18341
18342 #. type: verbatim
18343 #: ../fish/guestfish-commands.pod:144
18344 #, no-wrap
18345 msgid ""
18346 "  man\n"
18347 "\n"
18348 msgstr ""
18349
18350 #. type: textblock
18351 #: ../fish/guestfish-commands.pod:146
18352 msgid "Opens the manual page for guestfish."
18353 msgstr ""
18354
18355 #. type: =head2
18356 #: ../fish/guestfish-commands.pod:148
18357 msgid "more"
18358 msgstr ""
18359
18360 #. type: =head2
18361 #: ../fish/guestfish-commands.pod:150
18362 msgid "less"
18363 msgstr ""
18364
18365 #. type: verbatim
18366 #: ../fish/guestfish-commands.pod:152
18367 #, no-wrap
18368 msgid ""
18369 " more filename\n"
18370 "\n"
18371 msgstr ""
18372
18373 #. type: verbatim
18374 #: ../fish/guestfish-commands.pod:154
18375 #, no-wrap
18376 msgid ""
18377 " less filename\n"
18378 "\n"
18379 msgstr ""
18380
18381 #. type: textblock
18382 #: ../fish/guestfish-commands.pod:156
18383 msgid "This is used to view a file."
18384 msgstr ""
18385
18386 #. type: textblock
18387 #: ../fish/guestfish-commands.pod:158
18388 msgid ""
18389 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18390 "C<less> you will get the C<less> command specifically."
18391 msgstr ""
18392
18393 #. type: =head2
18394 #: ../fish/guestfish-commands.pod:161
18395 msgid "reopen"
18396 msgstr ""
18397
18398 #. type: verbatim
18399 #: ../fish/guestfish-commands.pod:163
18400 #, no-wrap
18401 msgid ""
18402 "  reopen\n"
18403 "\n"
18404 msgstr ""
18405
18406 #. type: textblock
18407 #: ../fish/guestfish-commands.pod:165
18408 msgid ""
18409 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18410 "normally, because the handle is closed properly when guestfish exits.  "
18411 "However this is occasionally useful for testing."
18412 msgstr ""
18413
18414 #. type: =head2
18415 #: ../fish/guestfish-commands.pod:169
18416 msgid "setenv"
18417 msgstr ""
18418
18419 #. type: verbatim
18420 #: ../fish/guestfish-commands.pod:171
18421 #, no-wrap
18422 msgid ""
18423 "  setenv VAR value\n"
18424 "\n"
18425 msgstr ""
18426
18427 #. type: textblock
18428 #: ../fish/guestfish-commands.pod:173
18429 msgid "Set the environment variable C<VAR> to the string C<value>."
18430 msgstr ""
18431
18432 #. type: textblock
18433 #: ../fish/guestfish-commands.pod:175
18434 msgid "To print the value of an environment variable use a shell command such as:"
18435 msgstr ""
18436
18437 #. type: verbatim
18438 #: ../fish/guestfish-commands.pod:178
18439 #, no-wrap
18440 msgid ""
18441 " !echo $VAR\n"
18442 "\n"
18443 msgstr ""
18444
18445 #. type: =head2
18446 #: ../fish/guestfish-commands.pod:180
18447 msgid "sparse"
18448 msgstr ""
18449
18450 #. type: verbatim
18451 #: ../fish/guestfish-commands.pod:182
18452 #, no-wrap
18453 msgid ""
18454 " sparse filename size\n"
18455 "\n"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/guestfish-commands.pod:184
18460 msgid ""
18461 "This creates an empty sparse file of the given size, and then adds so it can "
18462 "be further examined."
18463 msgstr ""
18464
18465 #. type: textblock
18466 #: ../fish/guestfish-commands.pod:187
18467 msgid ""
18468 "In all respects it works the same as the L</alloc> command, except that the "
18469 "image file is allocated sparsely, which means that disk blocks are not "
18470 "assigned to the file until they are needed.  Sparse disk files only use "
18471 "space when written to, but they are slower and there is a danger you could "
18472 "run out of real disk space during a write operation."
18473 msgstr ""
18474
18475 #. type: =head2
18476 #: ../fish/guestfish-commands.pod:197
18477 msgid "supported"
18478 msgstr ""
18479
18480 #. type: verbatim
18481 #: ../fish/guestfish-commands.pod:199
18482 #, no-wrap
18483 msgid ""
18484 " supported\n"
18485 "\n"
18486 msgstr ""
18487
18488 #. type: textblock
18489 #: ../fish/guestfish-commands.pod:201
18490 msgid ""
18491 "This command returns a list of the optional groups known to the daemon, and "
18492 "indicates which ones are supported by this build of the libguestfs "
18493 "appliance."
18494 msgstr ""
18495
18496 #. type: textblock
18497 #: ../fish/guestfish-commands.pod:205
18498 msgid "See also L<guestfs(3)/AVAILABILITY>."
18499 msgstr ""
18500
18501 #. type: =head2
18502 #: ../fish/guestfish-commands.pod:207
18503 msgid "time"
18504 msgstr ""
18505
18506 #. type: verbatim
18507 #: ../fish/guestfish-commands.pod:209
18508 #, no-wrap
18509 msgid ""
18510 " time command args...\n"
18511 "\n"
18512 msgstr ""
18513
18514 #. type: textblock
18515 #: ../fish/guestfish-commands.pod:211
18516 msgid ""
18517 "Run the command as usual, but print the elapsed time afterwards.  This can "
18518 "be useful for benchmarking operations."
18519 msgstr ""
18520
18521 #. type: =head2
18522 #: ../fish/guestfish-commands.pod:214
18523 msgid "unsetenv"
18524 msgstr ""
18525
18526 #. type: verbatim
18527 #: ../fish/guestfish-commands.pod:216
18528 #, no-wrap
18529 msgid ""
18530 "  unsetenv VAR\n"
18531 "\n"
18532 msgstr ""
18533
18534 #. type: textblock
18535 #: ../fish/guestfish-commands.pod:218
18536 msgid "Remove C<VAR> from the environment."
18537 msgstr ""
18538
18539 #. type: textblock
18540 #: ../fish/guestfish.pod:5
18541 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18542 msgstr ""
18543
18544 #. type: verbatim
18545 #: ../fish/guestfish.pod:9
18546 #, no-wrap
18547 msgid ""
18548 " guestfish [--options] [commands]\n"
18549 "\n"
18550 msgstr ""
18551
18552 #. type: verbatim
18553 #: ../fish/guestfish.pod:11
18554 #, no-wrap
18555 msgid ""
18556 " guestfish\n"
18557 "\n"
18558 msgstr ""
18559
18560 #. type: verbatim
18561 #: ../fish/guestfish.pod:13
18562 #, no-wrap
18563 msgid ""
18564 " guestfish [--ro|--rw] -a disk.img\n"
18565 "\n"
18566 msgstr ""
18567
18568 #. type: verbatim
18569 #: ../fish/guestfish.pod:15
18570 #, no-wrap
18571 msgid ""
18572 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18573 "\n"
18574 msgstr ""
18575
18576 #. type: verbatim
18577 #: ../fish/guestfish.pod:17
18578 #, no-wrap
18579 msgid ""
18580 " guestfish -d libvirt-domain\n"
18581 "\n"
18582 msgstr ""
18583
18584 #. type: verbatim
18585 #: ../fish/guestfish.pod:19
18586 #, no-wrap
18587 msgid ""
18588 " guestfish [--ro|--rw] -a disk.img -i\n"
18589 "\n"
18590 msgstr ""
18591
18592 #. type: verbatim
18593 #: ../fish/guestfish.pod:21
18594 #, no-wrap
18595 msgid ""
18596 " guestfish -d libvirt-domain -i\n"
18597 "\n"
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/guestfish.pod:25
18602 msgid ""
18603 "Using guestfish in read/write mode on live virtual machines can be "
18604 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18605 "option to use guestfish safely if the disk image or virtual machine might be "
18606 "live."
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish.pod:32
18611 msgid ""
18612 "Guestfish is a shell and command-line tool for examining and modifying "
18613 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18614 "functionality of the guestfs API, see L<guestfs(3)>."
18615 msgstr ""
18616
18617 #. type: textblock
18618 #: ../fish/guestfish.pod:36
18619 msgid ""
18620 "Guestfish gives you structured access to the libguestfs API, from shell "
18621 "scripts or the command line or interactively.  If you want to rescue a "
18622 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18623 "command."
18624 msgstr ""
18625
18626 #. type: =head2
18627 #: ../fish/guestfish.pod:43
18628 msgid "As an interactive shell"
18629 msgstr ""
18630
18631 #. type: verbatim
18632 #: ../fish/guestfish.pod:45
18633 #, no-wrap
18634 msgid ""
18635 " $ guestfish\n"
18636 " \n"
18637 msgstr ""
18638
18639 #. type: verbatim
18640 #: ../fish/guestfish.pod:47
18641 #, no-wrap
18642 msgid ""
18643 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18644 " editing virtual machine filesystems.\n"
18645 " \n"
18646 msgstr ""
18647
18648 #. type: verbatim
18649 #: ../fish/guestfish.pod:50
18650 #, no-wrap
18651 msgid ""
18652 " Type: 'help' for a list of commands\n"
18653 "       'man' to read the manual\n"
18654 "       'quit' to quit the shell\n"
18655 " \n"
18656 msgstr ""
18657
18658 #. type: verbatim
18659 #: ../fish/guestfish.pod:54
18660 #, no-wrap
18661 msgid ""
18662 " ><fs> add-ro disk.img\n"
18663 " ><fs> run\n"
18664 " ><fs> list-filesystems\n"
18665 " /dev/sda1: ext4\n"
18666 " /dev/vg_guest/lv_root: ext4\n"
18667 " /dev/vg_guest/lv_swap: swap\n"
18668 " ><fs> mount /dev/vg_guest/lv_root /\n"
18669 " ><fs> cat /etc/fstab\n"
18670 " # /etc/fstab\n"
18671 " # Created by anaconda\n"
18672 " [...]\n"
18673 " ><fs> exit\n"
18674 "\n"
18675 msgstr ""
18676
18677 #. type: =head2
18678 #: ../fish/guestfish.pod:67
18679 msgid "From shell scripts"
18680 msgstr ""
18681
18682 #. type: textblock
18683 #: ../fish/guestfish.pod:69
18684 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18685 msgstr ""
18686
18687 #. type: verbatim
18688 #: ../fish/guestfish.pod:71
18689 #, no-wrap
18690 msgid ""
18691 " guestfish <<_EOF_\n"
18692 " add disk.img\n"
18693 " run\n"
18694 " mount /dev/vg_guest/lv_root /\n"
18695 " write /etc/motd \"Welcome, new users\"\n"
18696 " _EOF_\n"
18697 "\n"
18698 msgstr ""
18699
18700 #. type: textblock
18701 #: ../fish/guestfish.pod:78
18702 msgid "List the LVM logical volumes in a disk image:"
18703 msgstr ""
18704
18705 #. type: verbatim
18706 #: ../fish/guestfish.pod:80
18707 #, no-wrap
18708 msgid ""
18709 " guestfish -a disk.img --ro <<_EOF_\n"
18710 " run\n"
18711 " lvs\n"
18712 " _EOF_\n"
18713 "\n"
18714 msgstr ""
18715
18716 #. type: textblock
18717 #: ../fish/guestfish.pod:85
18718 msgid "List all the filesystems in a disk image:"
18719 msgstr ""
18720
18721 #. type: verbatim
18722 #: ../fish/guestfish.pod:87
18723 #, no-wrap
18724 msgid ""
18725 " guestfish -a disk.img --ro <<_EOF_\n"
18726 " run\n"
18727 " list-filesystems\n"
18728 " _EOF_\n"
18729 "\n"
18730 msgstr ""
18731
18732 #. type: =head2
18733 #: ../fish/guestfish.pod:92
18734 msgid "On one command line"
18735 msgstr ""
18736
18737 #. type: textblock
18738 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18739 msgid "Update C</etc/resolv.conf> in a guest:"
18740 msgstr ""
18741
18742 #. type: verbatim
18743 #: ../fish/guestfish.pod:96
18744 #, no-wrap
18745 msgid ""
18746 " guestfish \\\n"
18747 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18748 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18749 "\n"
18750 msgstr ""
18751
18752 #. type: textblock
18753 #: ../fish/guestfish.pod:100
18754 msgid "Edit C</boot/grub/grub.conf> interactively:"
18755 msgstr ""
18756
18757 #. type: verbatim
18758 #: ../fish/guestfish.pod:102
18759 #, no-wrap
18760 msgid ""
18761 " guestfish --rw --add disk.img \\\n"
18762 "   --mount /dev/vg_guest/lv_root \\\n"
18763 "   --mount /dev/sda1:/boot \\\n"
18764 "   edit /boot/grub/grub.conf\n"
18765 "\n"
18766 msgstr ""
18767
18768 #. type: =head2
18769 #: ../fish/guestfish.pod:107
18770 msgid "Mount disks automatically"
18771 msgstr ""
18772
18773 #. type: textblock
18774 #: ../fish/guestfish.pod:109
18775 msgid ""
18776 "Use the I<-i> option to automatically mount the disks from a virtual "
18777 "machine:"
18778 msgstr ""
18779
18780 #. type: verbatim
18781 #: ../fish/guestfish.pod:112
18782 #, no-wrap
18783 msgid ""
18784 " guestfish --ro -a disk.img -i cat /etc/group\n"
18785 "\n"
18786 msgstr ""
18787
18788 #. type: verbatim
18789 #: ../fish/guestfish.pod:114
18790 #, no-wrap
18791 msgid ""
18792 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18793 "\n"
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/guestfish.pod:116
18798 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18799 msgstr ""
18800
18801 #. type: verbatim
18802 #: ../fish/guestfish.pod:118
18803 #, no-wrap
18804 msgid ""
18805 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18806 "\n"
18807 msgstr ""
18808
18809 #. type: =head2
18810 #: ../fish/guestfish.pod:120
18811 msgid "As a script interpreter"
18812 msgstr ""
18813
18814 #. type: textblock
18815 #: ../fish/guestfish.pod:122
18816 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18817 msgstr ""
18818
18819 #. type: verbatim
18820 #: ../fish/guestfish.pod:124
18821 #, no-wrap
18822 msgid ""
18823 " #!/usr/bin/guestfish -f\n"
18824 " sparse test1.img 100M\n"
18825 " run\n"
18826 " part-disk /dev/sda mbr\n"
18827 " mkfs ext2 /dev/sda1\n"
18828 "\n"
18829 msgstr ""
18830
18831 #. type: =head2
18832 #: ../fish/guestfish.pod:130
18833 msgid "Start with a prepared disk"
18834 msgstr ""
18835
18836 #. type: textblock
18837 #: ../fish/guestfish.pod:132
18838 msgid ""
18839 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18840 "single ext2-formatted partition:"
18841 msgstr ""
18842
18843 #. type: verbatim
18844 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18845 #, no-wrap
18846 msgid ""
18847 " guestfish -N fs\n"
18848 "\n"
18849 msgstr ""
18850
18851 #. type: textblock
18852 #: ../fish/guestfish.pod:137
18853 msgid "To list what is available do:"
18854 msgstr ""
18855
18856 #. type: verbatim
18857 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18858 #, no-wrap
18859 msgid ""
18860 " guestfish -N help | less\n"
18861 "\n"
18862 msgstr ""
18863
18864 #. type: =head2
18865 #: ../fish/guestfish.pod:141
18866 msgid "Remote control"
18867 msgstr ""
18868
18869 #. type: verbatim
18870 #: ../fish/guestfish.pod:143
18871 #, no-wrap
18872 msgid ""
18873 " eval \"`guestfish --listen`\"\n"
18874 " guestfish --remote add-ro disk.img\n"
18875 " guestfish --remote run\n"
18876 " guestfish --remote lvs\n"
18877 "\n"
18878 msgstr ""
18879
18880 #. type: textblock
18881 #: ../fish/guestfish.pod:154
18882 msgid "Displays general help on options."
18883 msgstr ""
18884
18885 #. type: =item
18886 #: ../fish/guestfish.pod:158
18887 msgid "B<--cmd-help>"
18888 msgstr ""
18889
18890 #. type: textblock
18891 #: ../fish/guestfish.pod:160
18892 msgid "Lists all available guestfish commands."
18893 msgstr ""
18894
18895 #. type: =item
18896 #: ../fish/guestfish.pod:162
18897 msgid "B<-h cmd>"
18898 msgstr ""
18899
18900 #. type: =item
18901 #: ../fish/guestfish.pod:164
18902 msgid "B<--cmd-help cmd>"
18903 msgstr ""
18904
18905 #. type: textblock
18906 #: ../fish/guestfish.pod:166
18907 msgid "Displays detailed help on a single command C<cmd>."
18908 msgstr ""
18909
18910 #. type: =item
18911 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18912 msgid "B<-a image>"
18913 msgstr ""
18914
18915 #. type: =item
18916 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18917 msgid "B<--add image>"
18918 msgstr ""
18919
18920 #. type: textblock
18921 #: ../fish/guestfish.pod:172
18922 msgid "Add a block device or virtual machine image to the shell."
18923 msgstr ""
18924
18925 #. type: textblock
18926 #: ../fish/guestfish.pod:177
18927 msgid ""
18928 "Using this flag is mostly equivalent to using the C<add> command, with "
18929 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18930 "the I<--format=...> flag was given."
18931 msgstr ""
18932
18933 #. type: textblock
18934 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18935 msgid ""
18936 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18937 "URI to use.  The default is to use the default libvirt connection."
18938 msgstr ""
18939
18940 #. type: =item
18941 #: ../fish/guestfish.pod:189
18942 msgid "B<--csh>"
18943 msgstr ""
18944
18945 #. type: textblock
18946 #: ../fish/guestfish.pod:191
18947 msgid ""
18948 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18949 "section L</REMOTE CONTROL AND CSH> below."
18950 msgstr ""
18951
18952 #. type: =item
18953 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18954 msgid "B<-d libvirt-domain>"
18955 msgstr ""
18956
18957 #. type: =item
18958 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18959 msgid "B<--domain libvirt-domain>"
18960 msgstr ""
18961
18962 #. type: textblock
18963 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18964 msgid ""
18965 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18966 "used, then any libvirt domain can be used.  However in write mode, only "
18967 "libvirt domains which are shut down can be named here."
18968 msgstr ""
18969
18970 #. type: textblock
18971 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18972 msgid "Domain UUIDs can be used instead of names."
18973 msgstr ""
18974
18975 #. type: textblock
18976 #: ../fish/guestfish.pod:204
18977 msgid ""
18978 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18979 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18980 "if the I<--format:...> flag was given."
18981 msgstr ""
18982
18983 #. type: =item
18984 #: ../fish/guestfish.pod:208
18985 msgid "B<-D>"
18986 msgstr ""
18987
18988 #. type: =item
18989 #: ../fish/guestfish.pod:210
18990 msgid "B<--no-dest-paths>"
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/guestfish.pod:212
18995 msgid ""
18996 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18997 "to hit the tab key to complete paths on the guest filesystem, but this "
18998 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18999 "allow this feature to be disabled."
19000 msgstr ""
19001
19002 #. type: textblock
19003 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19004 msgid ""
19005 "When prompting for keys and passphrases, guestfish normally turns echoing "
19006 "off so you cannot see what you are typing.  If you are not worried about "
19007 "Tempest attacks and there is no one else in the room you can specify this "
19008 "flag to see what you are typing."
19009 msgstr ""
19010
19011 #. type: =item
19012 #: ../fish/guestfish.pod:224
19013 msgid "B<-f file>"
19014 msgstr ""
19015
19016 #. type: =item
19017 #: ../fish/guestfish.pod:226
19018 msgid "B<--file file>"
19019 msgstr ""
19020
19021 #. type: textblock
19022 #: ../fish/guestfish.pod:228
19023 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19024 msgstr ""
19025
19026 #. type: verbatim
19027 #: ../fish/guestfish.pod:231
19028 #, no-wrap
19029 msgid ""
19030 " #!/usr/bin/guestfish -f\n"
19031 "\n"
19032 msgstr ""
19033
19034 #. type: verbatim
19035 #: ../fish/guestfish.pod:244
19036 #, no-wrap
19037 msgid ""
19038 " guestfish --format=raw -a disk.img\n"
19039 "\n"
19040 msgstr ""
19041
19042 #. type: verbatim
19043 #: ../fish/guestfish.pod:248
19044 #, no-wrap
19045 msgid ""
19046 " guestfish --format=raw -a disk.img --format -a another.img\n"
19047 "\n"
19048 msgstr ""
19049
19050 #. type: textblock
19051 #: ../fish/guestfish.pod:253
19052 msgid ""
19053 "If you have untrusted raw-format guest disk images, you should use this "
19054 "option to specify the disk format.  This avoids a possible security problem "
19055 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19056 msgstr ""
19057
19058 #. type: =item
19059 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19060 msgid "B<--inspector>"
19061 msgstr ""
19062
19063 #. type: textblock
19064 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19065 msgid ""
19066 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19067 "system and mount filesystems as they would be mounted on the real virtual "
19068 "machine."
19069 msgstr ""
19070
19071 #. type: textblock
19072 #: ../fish/guestfish.pod:266
19073 msgid "Typical usage is either:"
19074 msgstr ""
19075
19076 #. type: verbatim
19077 #: ../fish/guestfish.pod:268
19078 #, no-wrap
19079 msgid ""
19080 " guestfish -d myguest -i\n"
19081 "\n"
19082 msgstr ""
19083
19084 #. type: textblock
19085 #: ../fish/guestfish.pod:270
19086 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19087 msgstr ""
19088
19089 #. type: verbatim
19090 #: ../fish/guestfish.pod:272
19091 #, no-wrap
19092 msgid ""
19093 " guestfish --ro -d myguest -i\n"
19094 "\n"
19095 msgstr ""
19096
19097 #. type: textblock
19098 #: ../fish/guestfish.pod:274
19099 msgid "(for active domains, readonly), or specify the block device directly:"
19100 msgstr ""
19101
19102 #. type: verbatim
19103 #: ../fish/guestfish.pod:276
19104 #, no-wrap
19105 msgid ""
19106 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19107 "\n"
19108 msgstr ""
19109
19110 #. type: textblock
19111 #: ../fish/guestfish.pod:278
19112 msgid ""
19113 "Note that the command line syntax changed slightly over older versions of "
19114 "guestfish.  You can still use the old syntax:"
19115 msgstr ""
19116
19117 #. type: verbatim
19118 #: ../fish/guestfish.pod:281
19119 #, no-wrap
19120 msgid ""
19121 " guestfish [--ro] -i disk.img\n"
19122 "\n"
19123 msgstr ""
19124
19125 #. type: verbatim
19126 #: ../fish/guestfish.pod:283
19127 #, no-wrap
19128 msgid ""
19129 " guestfish [--ro] -i libvirt-domain\n"
19130 "\n"
19131 msgstr ""
19132
19133 #. type: textblock
19134 #: ../fish/guestfish.pod:285
19135 msgid ""
19136 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19137 "then using other commands to mount the filesystems that were found."
19138 msgstr ""
19139
19140 #. type: =item
19141 #: ../fish/guestfish.pod:294
19142 msgid "B<--listen>"
19143 msgstr ""
19144
19145 #. type: textblock
19146 #: ../fish/guestfish.pod:296
19147 msgid ""
19148 "Fork into the background and listen for remote commands.  See section "
19149 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19150 msgstr ""
19151
19152 #. type: =item
19153 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19154 msgid "B<--live>"
19155 msgstr ""
19156
19157 #. type: textblock
19158 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19159 msgid ""
19160 "Connect to a live virtual machine.  (Experimental, see "
19161 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
19162 msgstr ""
19163
19164 #. type: =item
19165 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19166 msgid "B<-m dev[:mountpoint[:options]]>"
19167 msgstr ""
19168
19169 #. type: =item
19170 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19171 msgid "B<--mount dev[:mountpoint[:options]]>"
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/guestfish.pod:308
19176 msgid "Mount the named partition or logical volume on the given mountpoint."
19177 msgstr ""
19178
19179 #. type: textblock
19180 #: ../fish/guestfish.pod:310
19181 msgid "If the mountpoint is omitted, it defaults to C</>."
19182 msgstr ""
19183
19184 #. type: textblock
19185 #: ../fish/guestfish.pod:312
19186 msgid "You have to mount something on C</> before most commands will work."
19187 msgstr ""
19188
19189 #. type: textblock
19190 #: ../fish/guestfish.pod:314
19191 msgid ""
19192 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19193 "launched."
19194 msgstr ""
19195
19196 #. type: textblock
19197 #: ../fish/guestfish.pod:317
19198 msgid ""
19199 "If you don't know what filesystems a disk image contains, you can either run "
19200 "guestfish without this option, then list the partitions, filesystems and LVs "
19201 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19202 "commands), or you can use the L<virt-filesystems(1)> program."
19203 msgstr ""
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19207 msgid ""
19208 "The third (and rarely used) part of the mount parameter is the list of mount "
19209 "options used to mount the underlying filesystem.  If this is not given, then "
19210 "the mount options are either the empty string or C<ro> (the latter if the "
19211 "I<--ro> flag is used).  By specifying the mount options, you override this "
19212 "default choice.  Probably the only time you would use this is to enable ACLs "
19213 "and/or extended attributes if the filesystem can support them:"
19214 msgstr ""
19215
19216 #. type: verbatim
19217 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19218 #, no-wrap
19219 msgid ""
19220 " -m /dev/sda1:/:acl,user_xattr\n"
19221 "\n"
19222 msgstr ""
19223
19224 #. type: textblock
19225 #: ../fish/guestfish.pod:333
19226 msgid "Using this flag is equivalent to using the C<mount-options> command."
19227 msgstr ""
19228
19229 #. type: =item
19230 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:435
19231 msgid "B<-n>"
19232 msgstr ""
19233
19234 #. type: =item
19235 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19236 msgid "B<--no-sync>"
19237 msgstr ""
19238
19239 #. type: textblock
19240 #: ../fish/guestfish.pod:339
19241 msgid ""
19242 "Disable autosync.  This is enabled by default.  See the discussion of "
19243 "autosync in the L<guestfs(3)> manpage."
19244 msgstr ""
19245
19246 #. type: =item
19247 #: ../fish/guestfish.pod:342
19248 msgid "B<-N type>"
19249 msgstr ""
19250
19251 #. type: =item
19252 #: ../fish/guestfish.pod:344
19253 msgid "B<--new type>"
19254 msgstr ""
19255
19256 #. type: =item
19257 #: ../fish/guestfish.pod:346
19258 msgid "B<-N help>"
19259 msgstr ""
19260
19261 #. type: textblock
19262 #: ../fish/guestfish.pod:348
19263 msgid ""
19264 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19265 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19266 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19267 "IMAGES> below."
19268 msgstr ""
19269
19270 #. type: =item
19271 #: ../fish/guestfish.pod:353
19272 msgid "B<--progress-bars>"
19273 msgstr ""
19274
19275 #. type: textblock
19276 #: ../fish/guestfish.pod:355
19277 msgid "Enable progress bars, even when guestfish is used non-interactively."
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:357
19282 msgid ""
19283 "Progress bars are enabled by default when guestfish is used as an "
19284 "interactive shell."
19285 msgstr ""
19286
19287 #. type: =item
19288 #: ../fish/guestfish.pod:360
19289 msgid "B<--no-progress-bars>"
19290 msgstr ""
19291
19292 #. type: textblock
19293 #: ../fish/guestfish.pod:362
19294 msgid "Disable progress bars."
19295 msgstr ""
19296
19297 #. type: =item
19298 #: ../fish/guestfish.pod:364
19299 msgid "B<--remote[=pid]>"
19300 msgstr ""
19301
19302 #. type: textblock
19303 #: ../fish/guestfish.pod:366
19304 msgid ""
19305 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19306 "CONTROL GUESTFISH OVER A SOCKET> below."
19307 msgstr ""
19308
19309 #. type: =item
19310 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:189
19311 msgid "B<-r>"
19312 msgstr ""
19313
19314 #. type: =item
19315 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:191
19316 msgid "B<--ro>"
19317 msgstr ""
19318
19319 #. type: textblock
19320 #: ../fish/guestfish.pod:373
19321 msgid ""
19322 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19323 "mounts are done read-only."
19324 msgstr ""
19325
19326 #. type: textblock
19327 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19328 msgid ""
19329 "The option must always be used if the disk image or virtual machine might be "
19330 "running, and is generally recommended in cases where you don't need write "
19331 "access to the disk."
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../fish/guestfish.pod:380
19336 msgid ""
19337 "Note that prepared disk images created with I<-N> are not affected by this "
19338 "option.  Also commands like C<add> are not affected - you have to specify "
19339 "the C<readonly:true> option explicitly if you need it."
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../fish/guestfish.pod:384
19344 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19345 msgstr ""
19346
19347 #. type: =item
19348 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:201
19349 msgid "B<--selinux>"
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../fish/guestfish.pod:388
19354 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19355 msgstr ""
19356
19357 #. type: textblock
19358 #: ../fish/guestfish.pod:394
19359 msgid ""
19360 "Enable very verbose messages.  This is particularly useful if you find a "
19361 "bug."
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../fish/guestfish.pod:401
19366 msgid "Display the guestfish / libguestfs version number and exit."
19367 msgstr ""
19368
19369 #. type: =item
19370 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:231
19371 msgid "B<-w>"
19372 msgstr ""
19373
19374 #. type: =item
19375 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:233
19376 msgid "B<--rw>"
19377 msgstr ""
19378
19379 #. type: textblock
19380 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19381 msgid ""
19382 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19383 "mounts are done read-write."
19384 msgstr ""
19385
19386 #. type: textblock
19387 #: ../fish/guestfish.pod:410
19388 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19389 msgstr ""
19390
19391 #. type: textblock
19392 #: ../fish/guestfish.pod:414
19393 msgid "Echo each command before executing it."
19394 msgstr ""
19395
19396 #. type: =head1
19397 #: ../fish/guestfish.pod:418
19398 msgid "COMMANDS ON COMMAND LINE"
19399 msgstr ""
19400
19401 #. type: textblock
19402 #: ../fish/guestfish.pod:420
19403 msgid "Any additional (non-option) arguments are treated as commands to execute."
19404 msgstr ""
19405
19406 #. type: textblock
19407 #: ../fish/guestfish.pod:423
19408 msgid ""
19409 "Commands to execute should be separated by a colon (C<:>), where the colon "
19410 "is a separate parameter.  Thus:"
19411 msgstr ""
19412
19413 #. type: verbatim
19414 #: ../fish/guestfish.pod:426
19415 #, no-wrap
19416 msgid ""
19417 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19418 "\n"
19419 msgstr ""
19420
19421 #. type: textblock
19422 #: ../fish/guestfish.pod:428
19423 msgid ""
19424 "If there are no additional arguments, then we enter a shell, either an "
19425 "interactive shell with a prompt (if the input is a terminal) or a "
19426 "non-interactive shell."
19427 msgstr ""
19428
19429 #. type: textblock
19430 #: ../fish/guestfish.pod:432
19431 msgid ""
19432 "In either command line mode or non-interactive shell, the first command that "
19433 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19434 "prompt) if a command fails, you can continue to enter commands."
19435 msgstr ""
19436
19437 #. type: =head1
19438 #: ../fish/guestfish.pod:437
19439 msgid "USING launch (OR run)"
19440 msgstr ""
19441
19442 #. type: textblock
19443 #: ../fish/guestfish.pod:439
19444 msgid ""
19445 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19446 "then launch it, then mount any disks you need, and finally issue "
19447 "actions/commands.  So the general order of the day is:"
19448 msgstr ""
19449
19450 #. type: textblock
19451 #: ../fish/guestfish.pod:447
19452 msgid "add or -a/--add"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fish/guestfish.pod:451
19457 msgid "launch (aka run)"
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:455
19462 msgid "mount or -m/--mount"
19463 msgstr ""
19464
19465 #. type: textblock
19466 #: ../fish/guestfish.pod:459
19467 msgid "any other commands"
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../fish/guestfish.pod:463
19472 msgid ""
19473 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19474 "guest before mounting or performing any other commands."
19475 msgstr ""
19476
19477 #. type: textblock
19478 #: ../fish/guestfish.pod:466
19479 msgid ""
19480 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19481 "I<--new> options were given then C<run> is done automatically, simply "
19482 "because guestfish can't perform the action you asked for without doing this."
19483 msgstr ""
19484
19485 #. type: =head1
19486 #: ../fish/guestfish.pod:471
19487 msgid "OPENING DISKS FOR READ AND WRITE"
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../fish/guestfish.pod:473
19492 msgid ""
19493 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19494 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19495 "I<-i> and I<-m> open disk images read-only or for writing."
19496 msgstr ""
19497
19498 #. type: textblock
19499 #: ../fish/guestfish.pod:478
19500 msgid ""
19501 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19502 "opening disk images supplied on the command line for write.  To open a disk "
19503 "image read-only you have to do I<-a image --ro>."
19504 msgstr ""
19505
19506 #. type: textblock
19507 #: ../fish/guestfish.pod:482
19508 msgid ""
19509 "This matters: If you accidentally open a live VM disk image writable then "
19510 "you will cause irreversible disk corruption."
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:485
19515 msgid ""
19516 "In a future libguestfs we intend to change the default the other way.  Disk "
19517 "images will be opened read-only.  You will have to either specify "
19518 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19519 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19520 "access for disk images specified by those other command line options."
19521 msgstr ""
19522
19523 #. type: textblock
19524 #: ../fish/guestfish.pod:492
19525 msgid ""
19526 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19527 "which does nothing (it is already the default).  However it is highly "
19528 "recommended that you use this option to indicate that you need write access, "
19529 "and prepare your scripts for the day when this option will be required for "
19530 "write access."
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:498
19535 msgid ""
19536 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19537 "other libguestfs program apart from guestfish and guestmount."
19538 msgstr ""
19539
19540 #. type: =head1
19541 #: ../fish/guestfish.pod:501
19542 msgid "QUOTING"
19543 msgstr ""
19544
19545 #. type: textblock
19546 #: ../fish/guestfish.pod:503
19547 msgid ""
19548 "You can quote ordinary parameters using either single or double quotes.  For "
19549 "example:"
19550 msgstr ""
19551
19552 #. type: verbatim
19553 #: ../fish/guestfish.pod:506
19554 #, no-wrap
19555 msgid ""
19556 " add \"file with a space.img\"\n"
19557 "\n"
19558 msgstr ""
19559
19560 #. type: verbatim
19561 #: ../fish/guestfish.pod:508
19562 #, no-wrap
19563 msgid ""
19564 " rm '/file name'\n"
19565 "\n"
19566 msgstr ""
19567
19568 #. type: verbatim
19569 #: ../fish/guestfish.pod:510
19570 #, no-wrap
19571 msgid ""
19572 " rm '/\"'\n"
19573 "\n"
19574 msgstr ""
19575
19576 #. type: textblock
19577 #: ../fish/guestfish.pod:512
19578 msgid ""
19579 "A few commands require a list of strings to be passed.  For these, use a "
19580 "whitespace-separated list, enclosed in quotes.  Strings containing "
19581 "whitespace to be passed through must be enclosed in single quotes.  A "
19582 "literal single quote must be escaped with a backslash."
19583 msgstr ""
19584
19585 #. type: verbatim
19586 #: ../fish/guestfish.pod:517
19587 #, no-wrap
19588 msgid ""
19589 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19590 " command \"/bin/echo 'foo      bar'\"\n"
19591 " command \"/bin/echo \\'foo\\'\"\n"
19592 "\n"
19593 msgstr ""
19594
19595 #. type: =head2
19596 #: ../fish/guestfish.pod:521
19597 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19598 msgstr ""
19599
19600 #. type: textblock
19601 #: ../fish/guestfish.pod:523
19602 msgid ""
19603 "In double-quoted arguments (only) use backslash to insert special "
19604 "characters:"
19605 msgstr ""
19606
19607 #. type: =item
19608 #: ../fish/guestfish.pod:528
19609 msgid "C<\\a>"
19610 msgstr ""
19611
19612 #. type: textblock
19613 #: ../fish/guestfish.pod:530
19614 msgid "Alert (bell) character."
19615 msgstr ""
19616
19617 #. type: =item
19618 #: ../fish/guestfish.pod:532
19619 msgid "C<\\b>"
19620 msgstr ""
19621
19622 #. type: textblock
19623 #: ../fish/guestfish.pod:534
19624 msgid "Backspace character."
19625 msgstr ""
19626
19627 #. type: =item
19628 #: ../fish/guestfish.pod:536
19629 msgid "C<\\f>"
19630 msgstr ""
19631
19632 #. type: textblock
19633 #: ../fish/guestfish.pod:538
19634 msgid "Form feed character."
19635 msgstr ""
19636
19637 #. type: =item
19638 #: ../fish/guestfish.pod:540
19639 msgid "C<\\n>"
19640 msgstr ""
19641
19642 #. type: textblock
19643 #: ../fish/guestfish.pod:542
19644 msgid "Newline character."
19645 msgstr ""
19646
19647 #. type: =item
19648 #: ../fish/guestfish.pod:544
19649 msgid "C<\\r>"
19650 msgstr ""
19651
19652 #. type: textblock
19653 #: ../fish/guestfish.pod:546
19654 msgid "Carriage return character."
19655 msgstr ""
19656
19657 #. type: =item
19658 #: ../fish/guestfish.pod:548
19659 msgid "C<\\t>"
19660 msgstr ""
19661
19662 #. type: textblock
19663 #: ../fish/guestfish.pod:550
19664 msgid "Horizontal tab character."
19665 msgstr ""
19666
19667 #. type: =item
19668 #: ../fish/guestfish.pod:552
19669 msgid "C<\\v>"
19670 msgstr ""
19671
19672 #. type: textblock
19673 #: ../fish/guestfish.pod:554
19674 msgid "Vertical tab character."
19675 msgstr ""
19676
19677 #. type: =item
19678 #: ../fish/guestfish.pod:556
19679 msgid "C<\\\">"
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../fish/guestfish.pod:558
19684 msgid "A literal double quote character."
19685 msgstr ""
19686
19687 #. type: =item
19688 #: ../fish/guestfish.pod:560
19689 msgid "C<\\ooo>"
19690 msgstr ""
19691
19692 #. type: textblock
19693 #: ../fish/guestfish.pod:562
19694 msgid ""
19695 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19696 "(unlike C)."
19697 msgstr ""
19698
19699 #. type: =item
19700 #: ../fish/guestfish.pod:565
19701 msgid "C<\\xhh>"
19702 msgstr ""
19703
19704 #. type: textblock
19705 #: ../fish/guestfish.pod:567
19706 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19707 msgstr ""
19708
19709 #. type: textblock
19710 #: ../fish/guestfish.pod:570
19711 msgid ""
19712 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19713 "strings."
19714 msgstr ""
19715
19716 #. type: =item
19717 #: ../fish/guestfish.pod:573
19718 msgid "C<\\\\>"
19719 msgstr ""
19720
19721 #. type: textblock
19722 #: ../fish/guestfish.pod:575
19723 msgid "A literal backslash character."
19724 msgstr ""
19725
19726 #. type: =head1
19727 #: ../fish/guestfish.pod:579
19728 msgid "OPTIONAL ARGUMENTS"
19729 msgstr ""
19730
19731 #. type: textblock
19732 #: ../fish/guestfish.pod:581
19733 msgid ""
19734 "Some commands take optional arguments.  These arguments appear in this "
19735 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19736 msgstr ""
19737
19738 #. type: verbatim
19739 #: ../fish/guestfish.pod:585
19740 #, no-wrap
19741 msgid ""
19742 " add-drive-opts filename\n"
19743 "\n"
19744 msgstr ""
19745
19746 #. type: verbatim
19747 #: ../fish/guestfish.pod:587
19748 #, no-wrap
19749 msgid ""
19750 " add-drive-opts filename readonly:true\n"
19751 "\n"
19752 msgstr ""
19753
19754 #. type: verbatim
19755 #: ../fish/guestfish.pod:589
19756 #, no-wrap
19757 msgid ""
19758 " add-drive-opts filename format:qcow2 readonly:false\n"
19759 "\n"
19760 msgstr ""
19761
19762 #. type: textblock
19763 #: ../fish/guestfish.pod:591
19764 msgid ""
19765 "Each optional argument can appear at most once.  All optional arguments must "
19766 "appear after the required ones."
19767 msgstr ""
19768
19769 #. type: =head1
19770 #: ../fish/guestfish.pod:594
19771 msgid "NUMBERS"
19772 msgstr ""
19773
19774 #. type: textblock
19775 #: ../fish/guestfish.pod:596
19776 msgid "This section applies to all commands which can take integers as parameters."
19777 msgstr ""
19778
19779 #. type: =head2
19780 #: ../fish/guestfish.pod:599
19781 msgid "SIZE SUFFIX"
19782 msgstr ""
19783
19784 #. type: textblock
19785 #: ../fish/guestfish.pod:601
19786 msgid ""
19787 "When the command takes a parameter measured in bytes, you can use one of the "
19788 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19789 msgstr ""
19790
19791 #. type: =item
19792 #: ../fish/guestfish.pod:607
19793 msgid "B<k> or B<K> or B<KiB>"
19794 msgstr ""
19795
19796 #. type: textblock
19797 #: ../fish/guestfish.pod:609
19798 msgid "The size in kilobytes (multiplied by 1024)."
19799 msgstr ""
19800
19801 #. type: =item
19802 #: ../fish/guestfish.pod:611
19803 msgid "B<KB>"
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../fish/guestfish.pod:613
19808 msgid "The size in SI 1000 byte units."
19809 msgstr ""
19810
19811 #. type: =item
19812 #: ../fish/guestfish.pod:615
19813 msgid "B<M> or B<MiB>"
19814 msgstr ""
19815
19816 #. type: textblock
19817 #: ../fish/guestfish.pod:617
19818 msgid "The size in megabytes (multiplied by 1048576)."
19819 msgstr ""
19820
19821 #. type: =item
19822 #: ../fish/guestfish.pod:619
19823 msgid "B<MB>"
19824 msgstr ""
19825
19826 #. type: textblock
19827 #: ../fish/guestfish.pod:621
19828 msgid "The size in SI 1000000 byte units."
19829 msgstr ""
19830
19831 #. type: =item
19832 #: ../fish/guestfish.pod:623
19833 msgid "B<G> or B<GiB>"
19834 msgstr ""
19835
19836 #. type: textblock
19837 #: ../fish/guestfish.pod:625
19838 msgid "The size in gigabytes (multiplied by 2**30)."
19839 msgstr ""
19840
19841 #. type: =item
19842 #: ../fish/guestfish.pod:627
19843 msgid "B<GB>"
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../fish/guestfish.pod:629
19848 msgid "The size in SI 10**9 byte units."
19849 msgstr ""
19850
19851 #. type: =item
19852 #: ../fish/guestfish.pod:631
19853 msgid "B<T> or B<TiB>"
19854 msgstr ""
19855
19856 #. type: textblock
19857 #: ../fish/guestfish.pod:633
19858 msgid "The size in terabytes (multiplied by 2**40)."
19859 msgstr ""
19860
19861 #. type: =item
19862 #: ../fish/guestfish.pod:635
19863 msgid "B<TB>"
19864 msgstr ""
19865
19866 #. type: textblock
19867 #: ../fish/guestfish.pod:637
19868 msgid "The size in SI 10**12 byte units."
19869 msgstr ""
19870
19871 #. type: =item
19872 #: ../fish/guestfish.pod:639
19873 msgid "B<P> or B<PiB>"
19874 msgstr ""
19875
19876 #. type: textblock
19877 #: ../fish/guestfish.pod:641
19878 msgid "The size in petabytes (multiplied by 2**50)."
19879 msgstr ""
19880
19881 #. type: =item
19882 #: ../fish/guestfish.pod:643
19883 msgid "B<PB>"
19884 msgstr ""
19885
19886 #. type: textblock
19887 #: ../fish/guestfish.pod:645
19888 msgid "The size in SI 10**15 byte units."
19889 msgstr ""
19890
19891 #. type: =item
19892 #: ../fish/guestfish.pod:647
19893 msgid "B<E> or B<EiB>"
19894 msgstr ""
19895
19896 #. type: textblock
19897 #: ../fish/guestfish.pod:649
19898 msgid "The size in exabytes (multiplied by 2**60)."
19899 msgstr ""
19900
19901 #. type: =item
19902 #: ../fish/guestfish.pod:651
19903 msgid "B<EB>"
19904 msgstr ""
19905
19906 #. type: textblock
19907 #: ../fish/guestfish.pod:653
19908 msgid "The size in SI 10**18 byte units."
19909 msgstr ""
19910
19911 #. type: =item
19912 #: ../fish/guestfish.pod:655
19913 msgid "B<Z> or B<ZiB>"
19914 msgstr ""
19915
19916 #. type: textblock
19917 #: ../fish/guestfish.pod:657
19918 msgid "The size in zettabytes (multiplied by 2**70)."
19919 msgstr ""
19920
19921 #. type: =item
19922 #: ../fish/guestfish.pod:659
19923 msgid "B<ZB>"
19924 msgstr ""
19925
19926 #. type: textblock
19927 #: ../fish/guestfish.pod:661
19928 msgid "The size in SI 10**21 byte units."
19929 msgstr ""
19930
19931 #. type: =item
19932 #: ../fish/guestfish.pod:663
19933 msgid "B<Y> or B<YiB>"
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../fish/guestfish.pod:665
19938 msgid "The size in yottabytes (multiplied by 2**80)."
19939 msgstr ""
19940
19941 #. type: =item
19942 #: ../fish/guestfish.pod:667
19943 msgid "B<YB>"
19944 msgstr ""
19945
19946 #. type: textblock
19947 #: ../fish/guestfish.pod:669
19948 msgid "The size in SI 10**24 byte units."
19949 msgstr ""
19950
19951 #. type: verbatim
19952 #: ../fish/guestfish.pod:675
19953 #, no-wrap
19954 msgid ""
19955 " truncate-size /file 1G\n"
19956 "\n"
19957 msgstr ""
19958
19959 #. type: textblock
19960 #: ../fish/guestfish.pod:677
19961 msgid "would truncate the file to 1 gigabyte."
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../fish/guestfish.pod:679
19966 msgid ""
19967 "Be careful because a few commands take sizes in kilobytes or megabytes "
19968 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
19969 "Adding a suffix will probably not do what you expect."
19970 msgstr ""
19971
19972 #. type: =head2
19973 #: ../fish/guestfish.pod:683
19974 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19975 msgstr ""
19976
19977 #. type: textblock
19978 #: ../fish/guestfish.pod:685
19979 msgid ""
19980 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19981 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19982 msgstr ""
19983
19984 #. type: verbatim
19985 #: ../fish/guestfish.pod:688
19986 #, no-wrap
19987 msgid ""
19988 " 1234      decimal number 1234\n"
19989 " 02322     octal number, equivalent to decimal 1234\n"
19990 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19991 "\n"
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../fish/guestfish.pod:692
19996 msgid ""
19997 "When using the C<chmod> command, you almost always want to specify an octal "
19998 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19999 "L<chmod(1)> program):"
20000 msgstr ""
20001
20002 #. type: verbatim
20003 #: ../fish/guestfish.pod:696
20004 #, no-wrap
20005 msgid ""
20006 " chmod 0777 /public  # OK\n"
20007 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20008 "\n"
20009 msgstr ""
20010
20011 #. type: textblock
20012 #: ../fish/guestfish.pod:699
20013 msgid ""
20014 "Commands that return numbers usually print them in decimal, but some "
20015 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20016 "octal, preceeded by C<0>)."
20017 msgstr ""
20018
20019 #. type: =head1
20020 #: ../fish/guestfish.pod:703
20021 msgid "WILDCARDS AND GLOBBING"
20022 msgstr ""
20023
20024 #. type: textblock
20025 #: ../fish/guestfish.pod:705
20026 msgid ""
20027 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20028 "(globbing) by default.  So for example the following will not do what you "
20029 "expect:"
20030 msgstr ""
20031
20032 #. type: verbatim
20033 #: ../fish/guestfish.pod:709
20034 #, no-wrap
20035 msgid ""
20036 " rm-rf /home/*\n"
20037 "\n"
20038 msgstr ""
20039
20040 #. type: textblock
20041 #: ../fish/guestfish.pod:711
20042 msgid ""
20043 "Assuming you don't have a directory called literally C</home/*> then the "
20044 "above command will return an error."
20045 msgstr ""
20046
20047 #. type: textblock
20048 #: ../fish/guestfish.pod:714
20049 msgid "To perform wildcard expansion, use the C<glob> command."
20050 msgstr ""
20051
20052 #. type: verbatim
20053 #: ../fish/guestfish.pod:716
20054 #, no-wrap
20055 msgid ""
20056 " glob rm-rf /home/*\n"
20057 "\n"
20058 msgstr ""
20059
20060 #. type: textblock
20061 #: ../fish/guestfish.pod:718
20062 msgid ""
20063 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20064 "many times), equivalent to:"
20065 msgstr ""
20066
20067 #. type: verbatim
20068 #: ../fish/guestfish.pod:721
20069 #, no-wrap
20070 msgid ""
20071 " rm-rf /home/jim\n"
20072 " rm-rf /home/joe\n"
20073 " rm-rf /home/mary\n"
20074 "\n"
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../fish/guestfish.pod:725
20079 msgid "C<glob> only works on simple guest paths and not on device names."
20080 msgstr ""
20081
20082 #. type: textblock
20083 #: ../fish/guestfish.pod:727
20084 msgid ""
20085 "If you have several parameters, each containing a wildcard, then glob will "
20086 "perform a Cartesian product."
20087 msgstr ""
20088
20089 #. type: =head1
20090 #: ../fish/guestfish.pod:730
20091 msgid "COMMENTS"
20092 msgstr ""
20093
20094 #. type: textblock
20095 #: ../fish/guestfish.pod:732
20096 msgid ""
20097 "Any line which starts with a I<#> character is treated as a comment and "
20098 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20099 "a command.  For example:"
20100 msgstr ""
20101
20102 #. type: verbatim
20103 #: ../fish/guestfish.pod:736
20104 #, no-wrap
20105 msgid ""
20106 " # this is a comment\n"
20107 "         # this is a comment\n"
20108 " foo # NOT a comment\n"
20109 "\n"
20110 msgstr ""
20111
20112 #. type: textblock
20113 #: ../fish/guestfish.pod:740
20114 msgid "Blank lines are also ignored."
20115 msgstr ""
20116
20117 #. type: =head1
20118 #: ../fish/guestfish.pod:742
20119 msgid "RUNNING COMMANDS LOCALLY"
20120 msgstr ""
20121
20122 #. type: textblock
20123 #: ../fish/guestfish.pod:744
20124 msgid ""
20125 "Any line which starts with a I<!> character is treated as a command sent to "
20126 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20127 msgstr ""
20128
20129 #. type: verbatim
20130 #: ../fish/guestfish.pod:748
20131 #, no-wrap
20132 msgid ""
20133 " !mkdir local\n"
20134 " tgz-out /remote local/remote-data.tar.gz\n"
20135 "\n"
20136 msgstr ""
20137
20138 #. type: textblock
20139 #: ../fish/guestfish.pod:751
20140 msgid ""
20141 "will create a directory C<local> on the host, and then export the contents "
20142 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20143 "(See C<tgz-out>)."
20144 msgstr ""
20145
20146 #. type: textblock
20147 #: ../fish/guestfish.pod:755
20148 msgid ""
20149 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20150 "effect, due to the way that subprocesses work in Unix."
20151 msgstr ""
20152
20153 #. type: =head2
20154 #: ../fish/guestfish.pod:758
20155 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20156 msgstr ""
20157
20158 #. type: textblock
20159 #: ../fish/guestfish.pod:760
20160 msgid ""
20161 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20162 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20163 "and executed as guestfish commands."
20164 msgstr ""
20165
20166 #. type: textblock
20167 #: ../fish/guestfish.pod:764
20168 msgid ""
20169 "Thus you can use shell script to construct arbitrary guestfish commands "
20170 "which are then parsed by guestfish."
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fish/guestfish.pod:767
20175 msgid ""
20176 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20177 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20178 "if we use a shell script to create the guestfish commands for us:"
20179 msgstr ""
20180
20181 #. type: verbatim
20182 #: ../fish/guestfish.pod:772
20183 #, no-wrap
20184 msgid ""
20185 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20186 "\n"
20187 msgstr ""
20188
20189 #. type: textblock
20190 #: ../fish/guestfish.pod:774
20191 msgid "or with names like C</foo.001>:"
20192 msgstr ""
20193
20194 #. type: verbatim
20195 #: ../fish/guestfish.pod:776
20196 #, no-wrap
20197 msgid ""
20198 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20199 "\n"
20200 msgstr ""
20201
20202 #. type: textblock
20203 #: ../fish/guestfish.pod:778
20204 msgid ""
20205 "When using guestfish interactively it can be helpful to just run the shell "
20206 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20207 "ordinary I<!> local command), see what guestfish commands it would run, and "
20208 "when you are happy with those prepend the C<E<lt>> character to run the "
20209 "guestfish commands for real."
20210 msgstr ""
20211
20212 #. type: =head1
20213 #: ../fish/guestfish.pod:784
20214 msgid "PIPES"
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../fish/guestfish.pod:786
20219 msgid ""
20220 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20221 "command (a guestfish command) to the second command (any host command).  For "
20222 "example:"
20223 msgstr ""
20224
20225 #. type: verbatim
20226 #: ../fish/guestfish.pod:790
20227 #, no-wrap
20228 msgid ""
20229 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20230 "\n"
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/guestfish.pod:792
20235 msgid ""
20236 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20237 "program).  The above command would list all accounts in the guest filesystem "
20238 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20239 msgstr ""
20240
20241 #. type: verbatim
20242 #: ../fish/guestfish.pod:797
20243 #, no-wrap
20244 msgid ""
20245 " hexdump /bin/ls | head\n"
20246 " list-devices | tail -1\n"
20247 " tgz-out / - | tar ztf -\n"
20248 "\n"
20249 msgstr ""
20250
20251 #. type: textblock
20252 #: ../fish/guestfish.pod:801
20253 msgid ""
20254 "The space before the pipe symbol is required, any space after the pipe "
20255 "symbol is optional.  Everything after the pipe symbol is just passed "
20256 "straight to the host shell, so it can contain redirections, globs and "
20257 "anything else that makes sense on the host side."
20258 msgstr ""
20259
20260 #. type: textblock
20261 #: ../fish/guestfish.pod:806
20262 msgid ""
20263 "To use a literal argument which begins with a pipe symbol, you have to quote "
20264 "it, eg:"
20265 msgstr ""
20266
20267 #. type: verbatim
20268 #: ../fish/guestfish.pod:809
20269 #, no-wrap
20270 msgid ""
20271 " echo \"|\"\n"
20272 "\n"
20273 msgstr ""
20274
20275 #. type: =head1
20276 #: ../fish/guestfish.pod:811
20277 msgid "HOME DIRECTORIES"
20278 msgstr ""
20279
20280 #. type: textblock
20281 #: ../fish/guestfish.pod:813
20282 msgid ""
20283 "If a parameter starts with the character C<~> then the tilde may be expanded "
20284 "as a home directory path (either C<~> for the current user's home directory, "
20285 "or C<~user> for another user)."
20286 msgstr ""
20287
20288 #. type: textblock
20289 #: ../fish/guestfish.pod:817
20290 msgid ""
20291 "Note that home directory expansion happens for users known I<on the host>, "
20292 "not in the guest filesystem."
20293 msgstr ""
20294
20295 #. type: textblock
20296 #: ../fish/guestfish.pod:820
20297 msgid ""
20298 "To use a literal argument which begins with a tilde, you have to quote it, "
20299 "eg:"
20300 msgstr ""
20301
20302 #. type: verbatim
20303 #: ../fish/guestfish.pod:823
20304 #, no-wrap
20305 msgid ""
20306 " echo \"~\"\n"
20307 "\n"
20308 msgstr ""
20309
20310 #. type: =head2
20311 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20312 msgid "ENCRYPTED DISKS"
20313 msgstr ""
20314
20315 #. type: textblock
20316 #: ../fish/guestfish.pod:827
20317 msgid ""
20318 "Libguestfs has some support for Linux guests encrypted according to the "
20319 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20320 "disk encryption systems used by modern Linux guests.  Currently only "
20321 "LVM-on-LUKS is supported."
20322 msgstr ""
20323
20324 #. type: textblock
20325 #: ../fish/guestfish.pod:832
20326 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20327 msgstr ""
20328
20329 #. type: verbatim
20330 #: ../fish/guestfish.pod:834
20331 #, no-wrap
20332 msgid ""
20333 " ><fs> vfs-type /dev/sda2\n"
20334 " crypto_LUKS\n"
20335 "\n"
20336 msgstr ""
20337
20338 #. type: textblock
20339 #: ../fish/guestfish.pod:837
20340 msgid ""
20341 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20342 "device called C</dev/mapper/luksdev>."
20343 msgstr ""
20344
20345 #. type: verbatim
20346 #: ../fish/guestfish.pod:840
20347 #, no-wrap
20348 msgid ""
20349 " ><fs> luks-open /dev/sda2 luksdev\n"
20350 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20351 "\n"
20352 msgstr ""
20353
20354 #. type: textblock
20355 #: ../fish/guestfish.pod:843
20356 msgid ""
20357 "Finally you have to tell LVM to scan for volume groups on the newly created "
20358 "mapper device:"
20359 msgstr ""
20360
20361 #. type: verbatim
20362 #: ../fish/guestfish.pod:846
20363 #, no-wrap
20364 msgid ""
20365 " vgscan\n"
20366 " vg-activate-all true\n"
20367 "\n"
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:849
20372 msgid "The logical volume(s) can now be mounted in the usual way."
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../fish/guestfish.pod:851
20377 msgid ""
20378 "Before closing a LUKS device you must unmount any logical volumes on it and "
20379 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20380 "one.  Then you can close the mapper device:"
20381 msgstr ""
20382
20383 #. type: verbatim
20384 #: ../fish/guestfish.pod:855
20385 #, no-wrap
20386 msgid ""
20387 " vg-activate false /dev/VG\n"
20388 " luks-close /dev/mapper/luksdev\n"
20389 "\n"
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../fish/guestfish.pod:860
20394 msgid ""
20395 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20396 "letters and paths (with some limitations).  The following commands are "
20397 "equivalent:"
20398 msgstr ""
20399
20400 #. type: verbatim
20401 #: ../fish/guestfish.pod:864
20402 #, no-wrap
20403 msgid ""
20404 " file /WINDOWS/system32/config/system.LOG\n"
20405 "\n"
20406 msgstr ""
20407
20408 #. type: verbatim
20409 #: ../fish/guestfish.pod:866
20410 #, no-wrap
20411 msgid ""
20412 " file win:\\windows\\system32\\config\\system.log\n"
20413 "\n"
20414 msgstr ""
20415
20416 #. type: verbatim
20417 #: ../fish/guestfish.pod:868
20418 #, no-wrap
20419 msgid ""
20420 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20421 "\n"
20422 msgstr ""
20423
20424 #. type: textblock
20425 #: ../fish/guestfish.pod:870
20426 msgid ""
20427 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20428 "where the drive is mounted, prepending that to the path, changing all "
20429 "backslash characters to forward slash, then resolving the result using "
20430 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20431 "then the parameter might be rewritten like this:"
20432 msgstr ""
20433
20434 #. type: verbatim
20435 #: ../fish/guestfish.pod:876
20436 #, no-wrap
20437 msgid ""
20438 " win:e:\\foo\\bar => /e/FOO/bar\n"
20439 "\n"
20440 msgstr ""
20441
20442 #. type: textblock
20443 #: ../fish/guestfish.pod:878
20444 msgid "This only works in argument positions that expect a path."
20445 msgstr ""
20446
20447 #. type: =head1
20448 #: ../fish/guestfish.pod:880
20449 msgid "UPLOADING AND DOWNLOADING FILES"
20450 msgstr ""
20451
20452 #. type: textblock
20453 #: ../fish/guestfish.pod:882
20454 msgid ""
20455 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20456 "others which upload from or download to a local file, you can use the "
20457 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20458 msgstr ""
20459
20460 #. type: verbatim
20461 #: ../fish/guestfish.pod:886
20462 #, no-wrap
20463 msgid ""
20464 " upload - /foo\n"
20465 "\n"
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../fish/guestfish.pod:888
20470 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20471 msgstr ""
20472
20473 #. type: verbatim
20474 #: ../fish/guestfish.pod:891
20475 #, no-wrap
20476 msgid ""
20477 " tar-out /etc - | tar tf -\n"
20478 "\n"
20479 msgstr ""
20480
20481 #. type: textblock
20482 #: ../fish/guestfish.pod:893
20483 msgid ""
20484 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20485 "command (see L</PIPES>)."
20486 msgstr ""
20487
20488 #. type: textblock
20489 #: ../fish/guestfish.pod:896
20490 msgid ""
20491 "When using C<-> to read from stdin, the input is read up to the end of "
20492 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20493 "some arbitrary end marker:"
20494 msgstr ""
20495
20496 #. type: verbatim
20497 #: ../fish/guestfish.pod:900
20498 #, no-wrap
20499 msgid ""
20500 " upload -<<END /foo\n"
20501 " input line 1\n"
20502 " input line 2\n"
20503 " input line 3\n"
20504 " END\n"
20505 "\n"
20506 msgstr ""
20507
20508 #. type: textblock
20509 #: ../fish/guestfish.pod:906
20510 msgid ""
20511 "Any string of characters can be used instead of C<END>.  The end marker must "
20512 "appear on a line of its own, without any preceeding or following characters "
20513 "(not even spaces)."
20514 msgstr ""
20515
20516 #. type: textblock
20517 #: ../fish/guestfish.pod:910
20518 msgid ""
20519 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20520 "upload local files (so-called \"FileIn\" parameters in the generator)."
20521 msgstr ""
20522
20523 #. type: =head1
20524 #: ../fish/guestfish.pod:913
20525 msgid "EXIT ON ERROR BEHAVIOUR"
20526 msgstr ""
20527
20528 #. type: textblock
20529 #: ../fish/guestfish.pod:915
20530 msgid ""
20531 "By default, guestfish will ignore any errors when in interactive mode "
20532 "(ie. taking commands from a human over a tty), and will exit on the first "
20533 "error in non-interactive mode (scripts, commands given on the command line)."
20534 msgstr ""
20535
20536 #. type: textblock
20537 #: ../fish/guestfish.pod:920
20538 msgid ""
20539 "If you prefix a command with a I<-> character, then that command will not "
20540 "cause guestfish to exit, even if that (one) command returns an error."
20541 msgstr ""
20542
20543 #. type: =head1
20544 #: ../fish/guestfish.pod:924
20545 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../fish/guestfish.pod:926
20550 msgid ""
20551 "Guestfish can be remote-controlled over a socket.  This is useful "
20552 "particularly in shell scripts where you want to make several different "
20553 "changes to a filesystem, but you don't want the overhead of starting up a "
20554 "guestfish process each time."
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../fish/guestfish.pod:931
20559 msgid "Start a guestfish server process using:"
20560 msgstr ""
20561
20562 #. type: verbatim
20563 #: ../fish/guestfish.pod:933
20564 #, no-wrap
20565 msgid ""
20566 " eval \"`guestfish --listen`\"\n"
20567 "\n"
20568 msgstr ""
20569
20570 #. type: textblock
20571 #: ../fish/guestfish.pod:935
20572 msgid "and then send it commands by doing:"
20573 msgstr ""
20574
20575 #. type: verbatim
20576 #: ../fish/guestfish.pod:937
20577 #, no-wrap
20578 msgid ""
20579 " guestfish --remote cmd [...]\n"
20580 "\n"
20581 msgstr ""
20582
20583 #. type: textblock
20584 #: ../fish/guestfish.pod:939
20585 msgid "To cause the server to exit, send it the exit command:"
20586 msgstr ""
20587
20588 #. type: textblock
20589 #: ../fish/guestfish.pod:943
20590 msgid ""
20591 "Note that the server will normally exit if there is an error in a command.  "
20592 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20593 "BEHAVIOUR>."
20594 msgstr ""
20595
20596 #. type: =head2
20597 #: ../fish/guestfish.pod:947
20598 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20599 msgstr ""
20600
20601 #. type: textblock
20602 #: ../fish/guestfish.pod:949
20603 msgid ""
20604 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20605 "is how the I<--remote> option knows where to send the commands.  You can "
20606 "have several guestfish listener processes running using:"
20607 msgstr ""
20608
20609 #. type: verbatim
20610 #: ../fish/guestfish.pod:953
20611 #, no-wrap
20612 msgid ""
20613 " eval \"`guestfish --listen`\"\n"
20614 " pid1=$GUESTFISH_PID\n"
20615 " eval \"`guestfish --listen`\"\n"
20616 " pid2=$GUESTFISH_PID\n"
20617 " ...\n"
20618 " guestfish --remote=$pid1 cmd\n"
20619 " guestfish --remote=$pid2 cmd\n"
20620 "\n"
20621 msgstr ""
20622
20623 #. type: =head2
20624 #: ../fish/guestfish.pod:961
20625 msgid "REMOTE CONTROL AND CSH"
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../fish/guestfish.pod:963
20630 msgid ""
20631 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20632 "option:"
20633 msgstr ""
20634
20635 #. type: verbatim
20636 #: ../fish/guestfish.pod:966
20637 #, no-wrap
20638 msgid ""
20639 " eval \"`guestfish --listen --csh`\"\n"
20640 "\n"
20641 msgstr ""
20642
20643 #. type: =head2
20644 #: ../fish/guestfish.pod:968
20645 msgid "REMOTE CONTROL DETAILS"
20646 msgstr ""
20647
20648 #. type: textblock
20649 #: ../fish/guestfish.pod:970
20650 msgid ""
20651 "Remote control happens over a Unix domain socket called "
20652 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20653 "of the process, and C<$PID> is the process ID of the server."
20654 msgstr ""
20655
20656 #. type: textblock
20657 #: ../fish/guestfish.pod:974
20658 msgid "Guestfish client and server versions must match exactly."
20659 msgstr ""
20660
20661 #. type: =head2
20662 #: ../fish/guestfish.pod:976
20663 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20664 msgstr ""
20665
20666 #. type: textblock
20667 #: ../fish/guestfish.pod:978
20668 msgid ""
20669 "From Bash, you can use the following code which creates a guestfish "
20670 "instance, correctly quotes the command line, handles failure to start, and "
20671 "cleans up guestfish when the script exits:"
20672 msgstr ""
20673
20674 #. type: verbatim
20675 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20676 #, no-wrap
20677 msgid ""
20678 " #!/bin/bash -\n"
20679 " \n"
20680 msgstr ""
20681
20682 #. type: verbatim
20683 #: ../fish/guestfish.pod:986
20684 #, no-wrap
20685 msgid ""
20686 " guestfish[0]=\"guestfish\"\n"
20687 " guestfish[1]=\"--listen\"\n"
20688 " guestfish[2]=\"--ro\"\n"
20689 " guestfish[3]=\"-a\"\n"
20690 " guestfish[4]=\"disk.img\"\n"
20691 " \n"
20692 msgstr ""
20693
20694 #. type: verbatim
20695 #: ../fish/guestfish.pod:992
20696 #, no-wrap
20697 msgid ""
20698 " GUESTFISH_PID=\n"
20699 " eval $(\"${guestfish[@]}\")\n"
20700 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20701 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20702 "     exit 1\n"
20703 " fi\n"
20704 " \n"
20705 msgstr ""
20706
20707 #. type: verbatim
20708 #: ../fish/guestfish.pod:999
20709 #, no-wrap
20710 msgid ""
20711 " cleanup_guestfish ()\n"
20712 " {\n"
20713 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20714 " }\n"
20715 " trap cleanup_guestfish EXIT ERR\n"
20716 " \n"
20717 msgstr ""
20718
20719 #. type: verbatim
20720 #: ../fish/guestfish.pod:1005
20721 #, no-wrap
20722 msgid ""
20723 " guestfish --remote -- run\n"
20724 " \n"
20725 msgstr ""
20726
20727 #. type: verbatim
20728 #: ../fish/guestfish.pod:1007
20729 #, no-wrap
20730 msgid ""
20731 " # ...\n"
20732 "\n"
20733 msgstr ""
20734
20735 #. type: =head2
20736 #: ../fish/guestfish.pod:1009
20737 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20738 msgstr ""
20739
20740 #. type: textblock
20741 #: ../fish/guestfish.pod:1011
20742 msgid ""
20743 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20744 "context hangs, ie. don't do (note the backquotes):"
20745 msgstr ""
20746
20747 #. type: verbatim
20748 #: ../fish/guestfish.pod:1014
20749 #, no-wrap
20750 msgid ""
20751 " a=`guestfish --remote run`\n"
20752 "\n"
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../fish/guestfish.pod:1016
20757 msgid ""
20758 "Since the C<run> command produces no output on stdout, this is not useful "
20759 "anyway.  For further information see "
20760 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20761 msgstr ""
20762
20763 #. type: =head1
20764 #: ../fish/guestfish.pod:1020
20765 msgid "PREPARED DISK IMAGES"
20766 msgstr ""
20767
20768 #. type: textblock
20769 #: ../fish/guestfish.pod:1022
20770 msgid ""
20771 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20772 "preformatted disk images that guestfish can make for you to save typing.  "
20773 "This is particularly useful for testing purposes.  This option is used "
20774 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20775 "can be mixed with I<-a>)."
20776 msgstr ""
20777
20778 #. type: textblock
20779 #: ../fish/guestfish.pod:1028
20780 msgid ""
20781 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20782 "the second and so on.  Existing files in the current directory are "
20783 "I<overwritten>."
20784 msgstr ""
20785
20786 #. type: textblock
20787 #: ../fish/guestfish.pod:1032
20788 msgid ""
20789 "The type briefly describes how the disk should be sized, partitioned, how "
20790 "filesystem(s) should be created, and how content should be added.  "
20791 "Optionally the type can be followed by extra parameters, separated by C<:> "
20792 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20793 "sparsely-allocated disk, containing a single partition, with the partition "
20794 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20795 "on a 1GB disk instead."
20796 msgstr ""
20797
20798 #. type: textblock
20799 #: ../fish/guestfish.pod:1040
20800 msgid "To list the available types and any extra parameters they take, run:"
20801 msgstr ""
20802
20803 #. type: textblock
20804 #: ../fish/guestfish.pod:1044
20805 msgid ""
20806 "Note that the prepared filesystem is not mounted.  You would usually have to "
20807 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20808 msgstr ""
20809
20810 #. type: textblock
20811 #: ../fish/guestfish.pod:1048
20812 msgid ""
20813 "If any I<-N> or I<--new> options are given, the guest is automatically "
20814 "launched."
20815 msgstr ""
20816
20817 #. type: textblock
20818 #: ../fish/guestfish.pod:1053
20819 msgid "Create a 100MB disk with an ext4-formatted partition:"
20820 msgstr ""
20821
20822 #. type: verbatim
20823 #: ../fish/guestfish.pod:1055
20824 #, no-wrap
20825 msgid ""
20826 " guestfish -N fs:ext4\n"
20827 "\n"
20828 msgstr ""
20829
20830 #. type: textblock
20831 #: ../fish/guestfish.pod:1057
20832 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20833 msgstr ""
20834
20835 #. type: verbatim
20836 #: ../fish/guestfish.pod:1059
20837 #, no-wrap
20838 msgid ""
20839 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20840 "\n"
20841 msgstr ""
20842
20843 #. type: textblock
20844 #: ../fish/guestfish.pod:1061
20845 msgid "Create a blank 200MB disk:"
20846 msgstr ""
20847
20848 #. type: verbatim
20849 #: ../fish/guestfish.pod:1063
20850 #, no-wrap
20851 msgid ""
20852 " guestfish -N disk:200M\n"
20853 "\n"
20854 msgstr ""
20855
20856 #. type: =head1
20857 #: ../fish/guestfish.pod:1065
20858 msgid "PROGRESS BARS"
20859 msgstr ""
20860
20861 #. type: textblock
20862 #: ../fish/guestfish.pod:1067
20863 msgid ""
20864 "Some (not all) long-running commands send progress notification messages as "
20865 "they are running.  Guestfish turns these messages into progress bars."
20866 msgstr ""
20867
20868 #. type: textblock
20869 #: ../fish/guestfish.pod:1071
20870 msgid ""
20871 "When a command that supports progress bars takes longer than two seconds to "
20872 "run, and if progress bars are enabled, then you will see one appearing below "
20873 "the command:"
20874 msgstr ""
20875
20876 #. type: verbatim
20877 #: ../fish/guestfish.pod:1075
20878 #, no-wrap
20879 msgid ""
20880 " ><fs> copy-size /large-file /another-file 2048M\n"
20881 " / 10% [#####-----------------------------------------] 00:30\n"
20882 "\n"
20883 msgstr ""
20884
20885 #. type: textblock
20886 #: ../fish/guestfish.pod:1078
20887 msgid ""
20888 "The spinner on the left hand side moves round once for every progress "
20889 "notification received from the backend.  This is a (reasonably) golden "
20890 "assurance that the command is \"doing something\" even if the progress bar "
20891 "is not moving, because the command is able to send the progress "
20892 "notifications.  When the bar reaches 100% and the command finishes, the "
20893 "spinner disappears."
20894 msgstr ""
20895
20896 #. type: textblock
20897 #: ../fish/guestfish.pod:1085
20898 msgid ""
20899 "Progress bars are enabled by default when guestfish is used interactively.  "
20900 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20901 "and you can disable them completely using I<--no-progress-bars>."
20902 msgstr ""
20903
20904 #. type: =head1
20905 #: ../fish/guestfish.pod:1090
20906 msgid "GUESTFISH COMMANDS"
20907 msgstr ""
20908
20909 #. type: textblock
20910 #: ../fish/guestfish.pod:1092
20911 msgid ""
20912 "The commands in this section are guestfish convenience commands, in other "
20913 "words, they are not part of the L<guestfs(3)> API."
20914 msgstr ""
20915
20916 #. type: =head2
20917 #: ../fish/guestfish.pod:1095
20918 msgid "help"
20919 msgstr ""
20920
20921 #. type: verbatim
20922 #: ../fish/guestfish.pod:1097
20923 #, no-wrap
20924 msgid ""
20925 " help\n"
20926 " help cmd\n"
20927 "\n"
20928 msgstr ""
20929
20930 #. type: textblock
20931 #: ../fish/guestfish.pod:1100
20932 msgid "Without any parameter, this provides general help."
20933 msgstr ""
20934
20935 #. type: textblock
20936 #: ../fish/guestfish.pod:1102
20937 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20938 msgstr ""
20939
20940 #. type: =head2
20941 #: ../fish/guestfish.pod:1104
20942 msgid "quit | exit"
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../fish/guestfish.pod:1106
20947 msgid "This exits guestfish.  You can also use C<^D> key."
20948 msgstr ""
20949
20950 #. type: textblock
20951 #: ../fish/guestfish.pod:1108
20952 msgid "@FISH_COMMANDS@"
20953 msgstr ""
20954
20955 #. type: =head1
20956 #: ../fish/guestfish.pod:1110
20957 msgid "COMMANDS"
20958 msgstr ""
20959
20960 #. type: textblock
20961 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20962 msgid "@ACTIONS@"
20963 msgstr ""
20964
20965 #. type: textblock
20966 #: ../fish/guestfish.pod:1116
20967 msgid ""
20968 "guestfish returns 0 if the commands completed without error, or 1 if there "
20969 "was an error."
20970 msgstr ""
20971
20972 #. type: =item
20973 #: ../fish/guestfish.pod:1123
20974 msgid "EDITOR"
20975 msgstr ""
20976
20977 #. type: textblock
20978 #: ../fish/guestfish.pod:1125
20979 msgid ""
20980 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20981 "C<vi>."
20982 msgstr ""
20983
20984 #. type: =item
20985 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
20986 msgid "FEBOOTSTRAP_KERNEL"
20987 msgstr ""
20988
20989 #. type: =item
20990 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
20991 msgid "FEBOOTSTRAP_MODULES"
20992 msgstr ""
20993
20994 #. type: textblock
20995 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
20996 msgid ""
20997 "These two environment variables allow the kernel that libguestfs uses in the "
20998 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20999 "most recent host kernel is chosen.  For more information about kernel "
21000 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21001 "available in febootstrap E<ge> 3.8."
21002 msgstr ""
21003
21004 #. type: =item
21005 #: ../fish/guestfish.pod:1138
21006 msgid "GUESTFISH_DISPLAY_IMAGE"
21007 msgstr ""
21008
21009 #. type: textblock
21010 #: ../fish/guestfish.pod:1140
21011 msgid ""
21012 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21013 "If not set, it uses L<display(1)>."
21014 msgstr ""
21015
21016 #. type: =item
21017 #: ../fish/guestfish.pod:1143
21018 msgid "GUESTFISH_PID"
21019 msgstr ""
21020
21021 #. type: textblock
21022 #: ../fish/guestfish.pod:1145
21023 msgid ""
21024 "Used with the I<--remote> option to specify the remote guestfish process to "
21025 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21026 msgstr ""
21027
21028 #. type: =item
21029 #: ../fish/guestfish.pod:1149
21030 msgid "HEXEDITOR"
21031 msgstr ""
21032
21033 #. type: textblock
21034 #: ../fish/guestfish.pod:1151
21035 msgid ""
21036 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21037 "not specified, the external L<hexedit(1)> program is used."
21038 msgstr ""
21039
21040 #. type: =item
21041 #: ../fish/guestfish.pod:1155
21042 msgid "HOME"
21043 msgstr ""
21044
21045 #. type: textblock
21046 #: ../fish/guestfish.pod:1157
21047 msgid ""
21048 "If compiled with GNU readline support, various files in the home directory "
21049 "can be used.  See L</FILES>."
21050 msgstr ""
21051
21052 #. type: =item
21053 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
21054 msgid "LIBGUESTFS_APPEND"
21055 msgstr ""
21056
21057 #. type: textblock
21058 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
21059 msgid "Pass additional options to the guest kernel."
21060 msgstr ""
21061
21062 #. type: =item
21063 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
21064 msgid "LIBGUESTFS_DEBUG"
21065 msgstr ""
21066
21067 #. type: textblock
21068 #: ../fish/guestfish.pod:1166
21069 msgid ""
21070 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21071 "effect as using the B<-v> option."
21072 msgstr ""
21073
21074 #. type: =item
21075 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
21076 msgid "LIBGUESTFS_MEMSIZE"
21077 msgstr ""
21078
21079 #. type: textblock
21080 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
21081 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
21082 msgstr ""
21083
21084 #. type: verbatim
21085 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
21086 #, no-wrap
21087 msgid ""
21088 " LIBGUESTFS_MEMSIZE=700\n"
21089 "\n"
21090 msgstr ""
21091
21092 #. type: =item
21093 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
21094 msgid "LIBGUESTFS_PATH"
21095 msgstr ""
21096
21097 #. type: textblock
21098 #: ../fish/guestfish.pod:1178
21099 msgid ""
21100 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21101 "the discussion of paths in L<guestfs(3)>."
21102 msgstr ""
21103
21104 #. type: =item
21105 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
21106 msgid "LIBGUESTFS_QEMU"
21107 msgstr ""
21108
21109 #. type: textblock
21110 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
21111 msgid ""
21112 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21113 "which was found at compile time by the configure script is used."
21114 msgstr ""
21115
21116 #. type: =item
21117 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
21118 msgid "LIBGUESTFS_TRACE"
21119 msgstr ""
21120
21121 #. type: textblock
21122 #: ../fish/guestfish.pod:1189
21123 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21124 msgstr ""
21125
21126 #. type: =item
21127 #: ../fish/guestfish.pod:1191
21128 msgid "PAGER"
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../fish/guestfish.pod:1193
21133 msgid ""
21134 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21135 "C<more>."
21136 msgstr ""
21137
21138 #. type: =item
21139 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:254 ../src/guestfs.pod:3262
21140 msgid "TMPDIR"
21141 msgstr ""
21142
21143 #. type: textblock
21144 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
21145 msgid ""
21146 "Location of temporary directory, defaults to C</tmp> except for the cached "
21147 "supermin appliance which defaults to C</var/tmp>."
21148 msgstr ""
21149
21150 #. type: textblock
21151 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
21152 msgid ""
21153 "If libguestfs was compiled to use the supermin appliance then the real "
21154 "appliance is cached in this directory, shared between all handles belonging "
21155 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21156 "use in case C</var/tmp> is not large enough."
21157 msgstr ""
21158
21159 #. type: =head1
21160 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:310
21161 msgid "FILES"
21162 msgstr ""
21163
21164 #. type: =item
21165 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:314
21166 msgid "$HOME/.libguestfs-tools.rc"
21167 msgstr ""
21168
21169 #. type: =item
21170 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:316
21171 msgid "/etc/libguestfs-tools.conf"
21172 msgstr ""
21173
21174 #. type: textblock
21175 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:318
21176 msgid ""
21177 "This configuration file controls the default read-only or read-write mode "
21178 "(I<--ro> or I<--rw>)."
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../fish/guestfish.pod:1220
21183 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21184 msgstr ""
21185
21186 #. type: =item
21187 #: ../fish/guestfish.pod:1222
21188 msgid "$HOME/.guestfish"
21189 msgstr ""
21190
21191 #. type: textblock
21192 #: ../fish/guestfish.pod:1224
21193 msgid ""
21194 "If compiled with GNU readline support, then the command history is saved in "
21195 "this file."
21196 msgstr ""
21197
21198 #. type: =item
21199 #: ../fish/guestfish.pod:1227
21200 msgid "$HOME/.inputrc"
21201 msgstr ""
21202
21203 #. type: =item
21204 #: ../fish/guestfish.pod:1229
21205 msgid "/etc/inputrc"
21206 msgstr ""
21207
21208 #. type: textblock
21209 #: ../fish/guestfish.pod:1231
21210 msgid ""
21211 "If compiled with GNU readline support, then these files can be used to "
21212 "configure readline.  For further information, please see "
21213 "L<readline(3)/INITIALIZATION FILE>."
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../fish/guestfish.pod:1235
21218 msgid "To write rules which only apply to guestfish, use:"
21219 msgstr ""
21220
21221 #. type: verbatim
21222 #: ../fish/guestfish.pod:1237
21223 #, no-wrap
21224 msgid ""
21225 " $if guestfish\n"
21226 " ...\n"
21227 " $endif\n"
21228 "\n"
21229 msgstr ""
21230
21231 #. type: textblock
21232 #: ../fish/guestfish.pod:1241
21233 msgid ""
21234 "Variables that you can set in inputrc that change the behaviour of guestfish "
21235 "in useful ways include:"
21236 msgstr ""
21237
21238 #. type: =item
21239 #: ../fish/guestfish.pod:1246
21240 msgid "completion-ignore-case (default: on)"
21241 msgstr ""
21242
21243 #. type: textblock
21244 #: ../fish/guestfish.pod:1248
21245 msgid ""
21246 "By default, guestfish will ignore case when tab-completing paths on the "
21247 "disk.  Use:"
21248 msgstr ""
21249
21250 #. type: verbatim
21251 #: ../fish/guestfish.pod:1251
21252 #, no-wrap
21253 msgid ""
21254 " set completion-ignore-case off\n"
21255 "\n"
21256 msgstr ""
21257
21258 #. type: textblock
21259 #: ../fish/guestfish.pod:1253
21260 msgid "to make guestfish case sensitive."
21261 msgstr ""
21262
21263 #. type: =item
21264 #: ../fish/guestfish.pod:1257
21265 msgid "test1.img"
21266 msgstr ""
21267
21268 #. type: =item
21269 #: ../fish/guestfish.pod:1259
21270 msgid "test2.img (etc)"
21271 msgstr ""
21272
21273 #. type: textblock
21274 #: ../fish/guestfish.pod:1261
21275 msgid ""
21276 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21277 "will be created in the file C<test1.img> in the current directory.  The "
21278 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21279 "the same name will be overwritten."
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../fish/guestfish.pod:1270
21284 msgid ""
21285 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
21286 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
21287 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
21288 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
21289 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
21290 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
21291 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
21292 "L<febootstrap-supermin-helper(8)>."
21293 msgstr ""
21294
21295 #. type: textblock
21296 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360 ../test-tool/libguestfs-test-tool.pod:112
21297 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21298 msgstr ""
21299
21300 #. type: textblock
21301 #: ../fish/virt-copy-in.pod:5
21302 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
21303 msgstr ""
21304
21305 #. type: verbatim
21306 #: ../fish/virt-copy-in.pod:9
21307 #, no-wrap
21308 msgid ""
21309 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21310 "\n"
21311 msgstr ""
21312
21313 #. type: verbatim
21314 #: ../fish/virt-copy-in.pod:11
21315 #, no-wrap
21316 msgid ""
21317 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21318 "\n"
21319 msgstr ""
21320
21321 #. type: textblock
21322 #: ../fish/virt-copy-in.pod:15
21323 msgid ""
21324 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21325 "causing disk corruption.  The virtual machine must be shut down before you "
21326 "use this command."
21327 msgstr ""
21328
21329 #. type: textblock
21330 #: ../fish/virt-copy-in.pod:21
21331 msgid ""
21332 "C<virt-copy-in> copies files and directories from the local disk into a "
21333 "virtual machine disk image or named libvirt domain."
21334 msgstr ""
21335
21336 #. type: textblock
21337 #: ../fish/virt-copy-in.pod:24
21338 msgid ""
21339 "You can give one of more filenames and directories on the command line.  "
21340 "Directories are copied in recursively.  The final parameter must be the "
21341 "destination directory in the disk image which must be an absolute path "
21342 "starting with a C</> character."
21343 msgstr ""
21344
21345 #. type: verbatim
21346 #: ../fish/virt-copy-in.pod:33
21347 #, no-wrap
21348 msgid ""
21349 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21350 "\n"
21351 msgstr ""
21352
21353 #. type: textblock
21354 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21355 msgid "Upload a home directory to a guest:"
21356 msgstr ""
21357
21358 #. type: verbatim
21359 #: ../fish/virt-copy-in.pod:37
21360 #, no-wrap
21361 msgid ""
21362 " virt-copy-in -d MyGuest skel /home\n"
21363 "\n"
21364 msgstr ""
21365
21366 #. type: =head1
21367 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21368 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../fish/virt-copy-in.pod:41
21373 msgid ""
21374 "This command is just a simple shell script wrapper around the "
21375 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
21376 "trivial copy, you are probably better off using guestfish directly."
21377 msgstr ""
21378
21379 #. type: textblock
21380 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21381 msgid ""
21382 "Since the shell script just passes options straight to guestfish, read "
21383 "L<guestfish(1)> to see the full list of options."
21384 msgstr ""
21385
21386 #. type: textblock
21387 #: ../fish/virt-copy-in.pod:52
21388 msgid ""
21389 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21390 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21395 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21396 msgstr ""
21397
21398 #. type: textblock
21399 #: ../fish/virt-copy-out.pod:5
21400 msgid ""
21401 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21402 "image."
21403 msgstr ""
21404
21405 #. type: verbatim
21406 #: ../fish/virt-copy-out.pod:9
21407 #, no-wrap
21408 msgid ""
21409 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21410 "\n"
21411 msgstr ""
21412
21413 #. type: verbatim
21414 #: ../fish/virt-copy-out.pod:11
21415 #, no-wrap
21416 msgid ""
21417 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21418 "\n"
21419 msgstr ""
21420
21421 #. type: textblock
21422 #: ../fish/virt-copy-out.pod:15
21423 msgid ""
21424 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21425 "image or named libvirt domain."
21426 msgstr ""
21427
21428 #. type: textblock
21429 #: ../fish/virt-copy-out.pod:18
21430 msgid ""
21431 "You can give one of more filenames and directories on the command line.  "
21432 "Directories are copied out recursively."
21433 msgstr ""
21434
21435 #. type: textblock
21436 #: ../fish/virt-copy-out.pod:23
21437 msgid "Download the home directories from a virtual machine:"
21438 msgstr ""
21439
21440 #. type: verbatim
21441 #: ../fish/virt-copy-out.pod:25
21442 #, no-wrap
21443 msgid ""
21444 " mkdir homes\n"
21445 " virt-copy-out -d MyGuest /home homes\n"
21446 "\n"
21447 msgstr ""
21448
21449 #. type: textblock
21450 #: ../fish/virt-copy-out.pod:30
21451 msgid ""
21452 "This command is just a simple shell script wrapper around the "
21453 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
21454 "trivial copy, you are probably better off using guestfish directly."
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../fish/virt-copy-out.pod:41
21459 msgid ""
21460 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
21461 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21462 msgstr ""
21463
21464 #. type: textblock
21465 #: ../fish/virt-tar-in.pod:5
21466 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21467 msgstr ""
21468
21469 #. type: verbatim
21470 #: ../fish/virt-tar-in.pod:9
21471 #, no-wrap
21472 msgid ""
21473 " virt-tar-in -a disk.img data.tar /destination\n"
21474 "\n"
21475 msgstr ""
21476
21477 #. type: verbatim
21478 #: ../fish/virt-tar-in.pod:11
21479 #, no-wrap
21480 msgid ""
21481 " virt-tar-in -d domain data.tar /destination\n"
21482 "\n"
21483 msgstr ""
21484
21485 #. type: verbatim
21486 #: ../fish/virt-tar-in.pod:13
21487 #, no-wrap
21488 msgid ""
21489 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21490 "\n"
21491 msgstr ""
21492
21493 #. type: textblock
21494 #: ../fish/virt-tar-in.pod:17
21495 msgid ""
21496 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21497 "causing disk corruption.  The virtual machine must be shut down before you "
21498 "use this command."
21499 msgstr ""
21500
21501 #. type: textblock
21502 #: ../fish/virt-tar-in.pod:23
21503 msgid ""
21504 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21505 "image or named libvirt domain."
21506 msgstr ""
21507
21508 #. type: textblock
21509 #: ../fish/virt-tar-in.pod:26
21510 msgid ""
21511 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21512 "standard input.  The second parameter is the absolute target directory to "
21513 "unpack into."
21514 msgstr ""
21515
21516 #. type: verbatim
21517 #: ../fish/virt-tar-in.pod:34
21518 #, no-wrap
21519 msgid ""
21520 " virt-tar-in -d MyGuest homes.tar /home\n"
21521 "\n"
21522 msgstr ""
21523
21524 #. type: textblock
21525 #: ../fish/virt-tar-in.pod:38
21526 msgid ""
21527 "This command is just a simple shell script wrapper around the "
21528 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
21529 "copy, you are probably better off using guestfish directly."
21530 msgstr ""
21531
21532 #. type: textblock
21533 #: ../fish/virt-tar-in.pod:49
21534 msgid ""
21535 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21536 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21537 "L<http://libguestfs.org/>."
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../fish/virt-tar-out.pod:5
21542 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21543 msgstr ""
21544
21545 #. type: verbatim
21546 #: ../fish/virt-tar-out.pod:9
21547 #, no-wrap
21548 msgid ""
21549 " virt-tar-out -a disk.img /dir files.tar\n"
21550 "\n"
21551 msgstr ""
21552
21553 #. type: verbatim
21554 #: ../fish/virt-tar-out.pod:11
21555 #, no-wrap
21556 msgid ""
21557 " virt-tar-out -d domain /dir files.tar\n"
21558 "\n"
21559 msgstr ""
21560
21561 #. type: verbatim
21562 #: ../fish/virt-tar-out.pod:13
21563 #, no-wrap
21564 msgid ""
21565 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21566 "\n"
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../fish/virt-tar-out.pod:17
21571 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21572 msgstr ""
21573
21574 #. type: textblock
21575 #: ../fish/virt-tar-out.pod:20
21576 msgid ""
21577 "The first parameter is the absolute path of the virtual machine directory.  "
21578 "The second parameter is the tar file to write.  Use C<-> to write to "
21579 "standard output."
21580 msgstr ""
21581
21582 #. type: textblock
21583 #: ../fish/virt-tar-out.pod:26
21584 msgid "Download the home directories from a guest:"
21585 msgstr ""
21586
21587 #. type: verbatim
21588 #: ../fish/virt-tar-out.pod:28
21589 #, no-wrap
21590 msgid ""
21591 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21592 "\n"
21593 msgstr ""
21594
21595 #. type: textblock
21596 #: ../fish/virt-tar-out.pod:32
21597 msgid ""
21598 "This command is just a simple shell script wrapper around the "
21599 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
21600 "trivial copy, you are probably better off using guestfish directly."
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../fish/virt-tar-out.pod:43
21605 msgid ""
21606 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21607 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21608 msgstr ""
21609
21610 #. type: textblock
21611 #: ../fuse/guestmount.pod:5
21612 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21613 msgstr ""
21614
21615 #. type: verbatim
21616 #: ../fuse/guestmount.pod:9
21617 #, no-wrap
21618 msgid ""
21619 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21620 "\n"
21621 msgstr ""
21622
21623 #. type: verbatim
21624 #: ../fuse/guestmount.pod:11
21625 #, no-wrap
21626 msgid ""
21627 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21628 "\n"
21629 msgstr ""
21630
21631 #. type: verbatim
21632 #: ../fuse/guestmount.pod:13
21633 #, no-wrap
21634 msgid ""
21635 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21636 "\n"
21637 msgstr ""
21638
21639 #. type: textblock
21640 #: ../fuse/guestmount.pod:17
21641 msgid ""
21642 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21643 "machines.  If you do this, you risk disk corruption in the VM."
21644 msgstr ""
21645
21646 #. type: textblock
21647 #: ../fuse/guestmount.pod:22
21648 msgid ""
21649 "The guestmount program can be used to mount virtual machine filesystems and "
21650 "other disk images on the host.  It uses libguestfs for access to the guest "
21651 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21652 "a mountable device."
21653 msgstr ""
21654
21655 #. type: textblock
21656 #: ../fuse/guestmount.pod:27
21657 msgid ""
21658 "Along with other options, you have to give at least one device (I<-a> "
21659 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21660 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21661 "this works is better explained in the L<guestfish(1)> manual page, or by "
21662 "looking at the examples below."
21663 msgstr ""
21664
21665 #. type: textblock
21666 #: ../fuse/guestmount.pod:33
21667 msgid ""
21668 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21669 "by you, and the filesystem will not be visible to any other users unless you "
21670 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21671 "the filesystem, use the C<fusermount -u> command."
21672 msgstr ""
21673
21674 #. type: textblock
21675 #: ../fuse/guestmount.pod:41
21676 msgid ""
21677 "For a typical Windows guest which has its main filesystem on the first "
21678 "partition:"
21679 msgstr ""
21680
21681 #. type: verbatim
21682 #: ../fuse/guestmount.pod:44
21683 #, no-wrap
21684 msgid ""
21685 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21686 "\n"
21687 msgstr ""
21688
21689 #. type: textblock
21690 #: ../fuse/guestmount.pod:46
21691 msgid ""
21692 "For a typical Linux guest which has a /boot filesystem on the first "
21693 "partition, and the root filesystem on a logical volume:"
21694 msgstr ""
21695
21696 #. type: verbatim
21697 #: ../fuse/guestmount.pod:49
21698 #, no-wrap
21699 msgid ""
21700 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21701 "\n"
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../fuse/guestmount.pod:51
21706 msgid "To get libguestfs to detect guest mountpoints for you:"
21707 msgstr ""
21708
21709 #. type: verbatim
21710 #: ../fuse/guestmount.pod:53
21711 #, no-wrap
21712 msgid ""
21713 " guestmount -a guest.img -i --ro /mnt\n"
21714 "\n"
21715 msgstr ""
21716
21717 #. type: textblock
21718 #: ../fuse/guestmount.pod:55
21719 msgid "For a libvirt guest called \"Guest\" you could do:"
21720 msgstr ""
21721
21722 #. type: verbatim
21723 #: ../fuse/guestmount.pod:57
21724 #, no-wrap
21725 msgid ""
21726 " guestmount -d Guest -i --ro /mnt\n"
21727 "\n"
21728 msgstr ""
21729
21730 #. type: textblock
21731 #: ../fuse/guestmount.pod:59
21732 msgid ""
21733 "If you don't know what filesystems are contained in a guest or disk image, "
21734 "use L<virt-filesystems(1)> first:"
21735 msgstr ""
21736
21737 #. type: verbatim
21738 #: ../fuse/guestmount.pod:62
21739 #, no-wrap
21740 msgid ""
21741 " virt-filesystems MyGuest\n"
21742 "\n"
21743 msgstr ""
21744
21745 #. type: textblock
21746 #: ../fuse/guestmount.pod:64
21747 msgid ""
21748 "If you want to trace the libguestfs calls but without excessive debugging "
21749 "information, we recommend:"
21750 msgstr ""
21751
21752 #. type: verbatim
21753 #: ../fuse/guestmount.pod:67
21754 #, no-wrap
21755 msgid ""
21756 " guestmount [...] --trace /mnt\n"
21757 "\n"
21758 msgstr ""
21759
21760 #. type: textblock
21761 #: ../fuse/guestmount.pod:69
21762 msgid "If you want to debug the program, we recommend:"
21763 msgstr ""
21764
21765 #. type: verbatim
21766 #: ../fuse/guestmount.pod:71
21767 #, no-wrap
21768 msgid ""
21769 " guestmount [...] --trace --verbose /mnt\n"
21770 "\n"
21771 msgstr ""
21772
21773 #. type: =head1
21774 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96 ../resize/virt-resize.pod:621
21775 msgid "NOTES"
21776 msgstr ""
21777
21778 #. type: =head2
21779 #: ../fuse/guestmount.pod:75
21780 msgid "Other users cannot see the filesystem by default"
21781 msgstr ""
21782
21783 #. type: textblock
21784 #: ../fuse/guestmount.pod:77
21785 msgid ""
21786 "If you mount a filesystem as one user (eg. root), then other users will not "
21787 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21788 "option when mounting:"
21789 msgstr ""
21790
21791 #. type: verbatim
21792 #: ../fuse/guestmount.pod:81
21793 #, no-wrap
21794 msgid ""
21795 " sudo guestmount [...] -o allow_other /mnt\n"
21796 "\n"
21797 msgstr ""
21798
21799 #. type: =head2
21800 #: ../fuse/guestmount.pod:83
21801 msgid "Enabling FUSE"
21802 msgstr ""
21803
21804 #. type: textblock
21805 #: ../fuse/guestmount.pod:85
21806 msgid ""
21807 "On some distros, you may need to add yourself to a special group "
21808 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21809 "Debian and derivatives."
21810 msgstr ""
21811
21812 #. type: textblock
21813 #: ../fuse/guestmount.pod:89
21814 msgid ""
21815 "On other distros, no special group is required.  It is not necessary on "
21816 "Fedora or Red Hat Enterprise Linux."
21817 msgstr ""
21818
21819 #. type: textblock
21820 #: ../fuse/guestmount.pod:100
21821 msgid "Add a block device or virtual machine image."
21822 msgstr ""
21823
21824 #. type: =item
21825 #: ../fuse/guestmount.pod:123
21826 msgid "B<--dir-cache-timeout N>"
21827 msgstr ""
21828
21829 #. type: textblock
21830 #: ../fuse/guestmount.pod:125
21831 msgid ""
21832 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21833 "seconds.  The readdir cache [actually, there are several semi-independent "
21834 "caches] is populated after a readdir(2) call with the stat and extended "
21835 "attributes of the files in the directory, in anticipation that they will be "
21836 "requested soon after."
21837 msgstr ""
21838
21839 #. type: textblock
21840 #: ../fuse/guestmount.pod:131
21841 msgid ""
21842 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21843 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21844 "requests, only cache existing ones."
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../fuse/guestmount.pod:151
21849 msgid ""
21850 "If you have untrusted raw-format guest disk images, you should use this "
21851 "option to specify the disk format.  This avoids a possible security problem "
21852 "with malicious guests (CVE-2010-3851).  See also "
21853 "L<guestfs(3)/guestfs_add_drive_opts>."
21854 msgstr ""
21855
21856 #. type: =item
21857 #: ../fuse/guestmount.pod:156
21858 msgid "B<--fuse-help>"
21859 msgstr ""
21860
21861 #. type: textblock
21862 #: ../fuse/guestmount.pod:158
21863 msgid "Display help on special FUSE options (see I<-o> below)."
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../fuse/guestmount.pod:162
21868 msgid "Display brief help and exit."
21869 msgstr ""
21870
21871 #. type: textblock
21872 #: ../fuse/guestmount.pod:186
21873 msgid ""
21874 "Mount the named partition or logical volume on the given mountpoint B<in the "
21875 "guest> (this has nothing to do with mountpoints in the host)."
21876 msgstr ""
21877
21878 #. type: textblock
21879 #: ../fuse/guestmount.pod:189
21880 msgid ""
21881 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21882 "something on C</>."
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../fuse/guestmount.pod:206
21887 msgid ""
21888 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21889 "unmounted.  If you specify this option, then we don't attempt to sync the "
21890 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21891 msgstr ""
21892
21893 #. type: =item
21894 #: ../fuse/guestmount.pod:211
21895 msgid "B<-o option>"
21896 msgstr ""
21897
21898 #. type: =item
21899 #: ../fuse/guestmount.pod:213
21900 msgid "B<--option option>"
21901 msgstr ""
21902
21903 #. type: textblock
21904 #: ../fuse/guestmount.pod:215
21905 msgid "Pass extra options to FUSE."
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../fuse/guestmount.pod:217
21910 msgid ""
21911 "To get a list of all the extra options supported by FUSE, use the command "
21912 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21913 "of them are a good idea."
21914 msgstr ""
21915
21916 #. type: verbatim
21917 #: ../fuse/guestmount.pod:221
21918 #, no-wrap
21919 msgid ""
21920 " guestmount --fuse-help\n"
21921 "\n"
21922 msgstr ""
21923
21924 #. type: textblock
21925 #: ../fuse/guestmount.pod:223
21926 msgid "Some potentially useful FUSE options:"
21927 msgstr ""
21928
21929 #. type: =item
21930 #: ../fuse/guestmount.pod:227
21931 msgid "B<-o allow_other>"
21932 msgstr ""
21933
21934 #. type: textblock
21935 #: ../fuse/guestmount.pod:229
21936 msgid "Allow other users to see the filesystem."
21937 msgstr ""
21938
21939 #. type: =item
21940 #: ../fuse/guestmount.pod:231
21941 msgid "B<-o attr_timeout=N>"
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../fuse/guestmount.pod:233
21946 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21947 msgstr ""
21948
21949 #. type: =item
21950 #: ../fuse/guestmount.pod:235
21951 msgid "B<-o kernel_cache>"
21952 msgstr ""
21953
21954 #. type: textblock
21955 #: ../fuse/guestmount.pod:237
21956 msgid ""
21957 "Allow the kernel to cache files (reduces the number of reads that have to go "
21958 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21959 "afford the extra memory usage."
21960 msgstr ""
21961
21962 #. type: =item
21963 #: ../fuse/guestmount.pod:241
21964 msgid "B<-o uid=N> B<-o gid=N>"
21965 msgstr ""
21966
21967 #. type: textblock
21968 #: ../fuse/guestmount.pod:243
21969 msgid ""
21970 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21971 "the chosen values."
21972 msgstr ""
21973
21974 #. type: textblock
21975 #: ../fuse/guestmount.pod:252
21976 msgid ""
21977 "Add devices and mount everything read-only.  Also disallow writes and make "
21978 "the disk appear read-only to FUSE."
21979 msgstr ""
21980
21981 #. type: textblock
21982 #: ../fuse/guestmount.pod:255
21983 msgid ""
21984 "This is highly recommended if you are not going to edit the guest disk.  If "
21985 "the guest is running and this option is I<not> supplied, then there is a "
21986 "strong risk of disk corruption in the guest.  We try to prevent this from "
21987 "happening, but it is not always possible."
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
21992 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../fuse/guestmount.pod:264
21997 msgid "Enable SELinux support for the guest."
21998 msgstr ""
21999
22000 #. type: textblock
22001 #: ../fuse/guestmount.pod:270
22002 msgid "Enable verbose messages from underlying libguestfs."
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../fuse/guestmount.pod:276
22007 msgid "Display the program version and exit."
22008 msgstr ""
22009
22010 #. type: textblock
22011 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22012 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22013 msgstr ""
22014
22015 #. type: =item
22016 #: ../fuse/guestmount.pod:289
22017 msgid "B<--trace>"
22018 msgstr ""
22019
22020 #. type: textblock
22021 #: ../fuse/guestmount.pod:291
22022 msgid "Trace libguestfs calls and entry into each FUSE function."
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../fuse/guestmount.pod:293
22027 msgid "This also stops the daemon from forking into the background."
22028 msgstr ""
22029
22030 #. type: textblock
22031 #: ../fuse/guestmount.pod:319
22032 msgid ""
22033 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22034 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22035 "L<http://fuse.sf.net/>."
22036 msgstr ""
22037
22038 #. type: textblock
22039 #: ../fuse/guestmount.pod:334
22040 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../inspector/virt-inspector.pod:5
22045 msgid ""
22046 "virt-inspector - Display operating system version and other information "
22047 "about a virtual machine"
22048 msgstr ""
22049
22050 #. type: verbatim
22051 #: ../inspector/virt-inspector.pod:9
22052 #, no-wrap
22053 msgid ""
22054 " virt-inspector [--options] -d domname\n"
22055 "\n"
22056 msgstr ""
22057
22058 #. type: verbatim
22059 #: ../inspector/virt-inspector.pod:11
22060 #, no-wrap
22061 msgid ""
22062 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22063 "\n"
22064 msgstr ""
22065
22066 #. type: verbatim
22067 #: ../inspector/virt-inspector.pod:15
22068 #, no-wrap
22069 msgid ""
22070 " virt-inspector domname\n"
22071 "\n"
22072 msgstr ""
22073
22074 #. type: verbatim
22075 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22076 #, no-wrap
22077 msgid ""
22078 " virt-inspector disk.img [disk.img ...]\n"
22079 "\n"
22080 msgstr ""
22081
22082 #. type: textblock
22083 #: ../inspector/virt-inspector.pod:21
22084 msgid ""
22085 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22086 "determine the version of the operating system and other information about "
22087 "the virtual machine."
22088 msgstr ""
22089
22090 #. type: textblock
22091 #: ../inspector/virt-inspector.pod:25
22092 msgid "Virt-inspector produces XML output for feeding into other programs."
22093 msgstr ""
22094
22095 #. type: textblock
22096 #: ../inspector/virt-inspector.pod:27
22097 msgid ""
22098 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22099 "the libvirt domain (see: C<virsh list --all>)."
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../inspector/virt-inspector.pod:30
22104 msgid ""
22105 "You can also run virt-inspector directly on disk images from a single "
22106 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22107 "has several block devices, in which case you should list several I<-a> "
22108 "options one after another, with the first corresponding to the guest's "
22109 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
22110 msgstr ""
22111
22112 #. type: textblock
22113 #: ../inspector/virt-inspector.pod:37
22114 msgid ""
22115 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22116 "keys and similar."
22117 msgstr ""
22118
22119 #. type: textblock
22120 #: ../inspector/virt-inspector.pod:40
22121 msgid ""
22122 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22123 "inspect several virtual machines, you have to run virt-inspector several "
22124 "times (for example, from a shell script for-loop)."
22125 msgstr ""
22126
22127 #. type: textblock
22128 #: ../inspector/virt-inspector.pod:45
22129 msgid ""
22130 "Because virt-inspector needs direct access to guest images, it won't "
22131 "normally work over remote libvirt connections."
22132 msgstr ""
22133
22134 #. type: textblock
22135 #: ../inspector/virt-inspector.pod:48
22136 msgid ""
22137 "All of the information available from virt-inspector is also available "
22138 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22139 "The same information can also be fetched using guestfish or via libguestfs "
22140 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22141 "WITH OTHER PROGRAMMING LANGUAGES>)."
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../inspector/virt-inspector.pod:81
22146 msgid ""
22147 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22148 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22149 "at all."
22150 msgstr ""
22151
22152 #. type: textblock
22153 #: ../inspector/virt-inspector.pod:94
22154 msgid ""
22155 "When prompting for keys and passphrases, virt-inspector normally turns "
22156 "echoing off so you cannot see what you are typing.  If you are not worried "
22157 "about Tempest attacks and there is no one else in the room you can specify "
22158 "this flag to see what you are typing."
22159 msgstr ""
22160
22161 #. type: textblock
22162 #: ../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
22163 msgid ""
22164 "Specify the format of disk images given on the command line.  If this is "
22165 "omitted then the format is autodetected from the content of the disk image."
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../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
22170 msgid ""
22171 "If disk images are requested from libvirt, then this program asks libvirt "
22172 "for this information.  In this case, the value of the format parameter is "
22173 "ignored."
22174 msgstr ""
22175
22176 #. type: textblock
22177 #: ../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
22178 msgid ""
22179 "If working with untrusted raw-format guest disk images, you should ensure "
22180 "the format is always specified."
22181 msgstr ""
22182
22183 #. type: =item
22184 #: ../inspector/virt-inspector.pod:135
22185 msgid "B<--xpath> query"
22186 msgstr ""
22187
22188 #. type: textblock
22189 #: ../inspector/virt-inspector.pod:137
22190 msgid ""
22191 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22192 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22193 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22194 msgstr ""
22195
22196 #. type: textblock
22197 #: ../inspector/virt-inspector.pod:146
22198 msgid "Previous versions of virt-inspector allowed you to write either:"
22199 msgstr ""
22200
22201 #. type: verbatim
22202 #: ../inspector/virt-inspector.pod:152
22203 #, no-wrap
22204 msgid ""
22205 " virt-inspector guestname\n"
22206 "\n"
22207 msgstr ""
22208
22209 #. type: =head1
22210 #: ../inspector/virt-inspector.pod:160
22211 msgid "XML FORMAT"
22212 msgstr ""
22213
22214 #. type: textblock
22215 #: ../inspector/virt-inspector.pod:162
22216 msgid ""
22217 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22218 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22219 "just an overview."
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../inspector/virt-inspector.pod:166
22224 msgid ""
22225 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22226 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22227 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22228 "which is vanishingly rare in real world VMs."
22229 msgstr ""
22230
22231 #. type: =head2
22232 #: ../inspector/virt-inspector.pod:171
22233 msgid "E<lt>operatingsystemE<gt>"
22234 msgstr ""
22235
22236 #. type: textblock
22237 #: ../inspector/virt-inspector.pod:173
22238 msgid ""
22239 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22240 "describe the operating system, its architecture, the descriptive \"product "
22241 "name\" string, the type of OS and so on, as in this example:"
22242 msgstr ""
22243
22244 #. type: verbatim
22245 #: ../inspector/virt-inspector.pod:177
22246 #, no-wrap
22247 msgid ""
22248 " <operatingsystems>\n"
22249 "   <operatingsystem>\n"
22250 "     <root>/dev/sda2</root>\n"
22251 "     <name>windows</name>\n"
22252 "     <arch>i386</arch>\n"
22253 "     <distro>windows</distro>\n"
22254 "     <product_name>Windows 7 Enterprise</product_name>\n"
22255 "     <product_variant>Client</product_variant>\n"
22256 "     <major_version>6</major_version>\n"
22257 "     <minor_version>1</minor_version>\n"
22258 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22259 "     <format>installed</format>\n"
22260 "\n"
22261 msgstr ""
22262
22263 #. type: textblock
22264 #: ../inspector/virt-inspector.pod:190
22265 msgid ""
22266 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22267 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22268 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22269 "architecture.  The other fields are fairly self-explanatory, but because "
22270 "these fields are taken directly from the libguestfs inspection API you can "
22271 "find precise information from L<guestfs(3)/INSPECTION>."
22272 msgstr ""
22273
22274 #. type: textblock
22275 #: ../inspector/virt-inspector.pod:198
22276 msgid ""
22277 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22278 "of view of libguestfs (block devices may have completely different names "
22279 "inside the VM itself)."
22280 msgstr ""
22281
22282 #. type: =head2
22283 #: ../inspector/virt-inspector.pod:202
22284 msgid "E<lt>mountpointsE<gt>"
22285 msgstr ""
22286
22287 #. type: textblock
22288 #: ../inspector/virt-inspector.pod:204
22289 msgid ""
22290 "Un*x-like guests typically have multiple filesystems which are mounted at "
22291 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22292 "element which looks like this:"
22293 msgstr ""
22294
22295 #. type: verbatim
22296 #: ../inspector/virt-inspector.pod:208
22297 #, no-wrap
22298 msgid ""
22299 " <operatingsystems>\n"
22300 "   <operatingsystem>\n"
22301 "     ...\n"
22302 "     <mountpoints>\n"
22303 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22304 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22305 "     </mountpoints>\n"
22306 "\n"
22307 msgstr ""
22308
22309 #. type: textblock
22310 #: ../inspector/virt-inspector.pod:216
22311 msgid ""
22312 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22313 "and may have completely different names inside the guest.  Only mountable "
22314 "filesystems appear in this list, not things like swap devices."
22315 msgstr ""
22316
22317 #. type: =head2
22318 #: ../inspector/virt-inspector.pod:221
22319 msgid "E<lt>filesystemsE<gt>"
22320 msgstr ""
22321
22322 #. type: textblock
22323 #: ../inspector/virt-inspector.pod:223
22324 msgid ""
22325 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22326 "filesystems belonging to the guest, including swap and empty partitions.  "
22327 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22328 "this OS or shared with this OS and other OSes)."
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../inspector/virt-inspector.pod:229
22333 msgid "You might see something like this:"
22334 msgstr ""
22335
22336 #. type: verbatim
22337 #: ../inspector/virt-inspector.pod:231
22338 #, no-wrap
22339 msgid ""
22340 " <operatingsystems>\n"
22341 "   <operatingsystem>\n"
22342 "     ...\n"
22343 "     <filesystems>\n"
22344 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22345 "         <type>ext4</type>\n"
22346 "         <label>Fedora-13-x86_64</label>\n"
22347 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22348 "       </filesystem>\n"
22349 "\n"
22350 msgstr ""
22351
22352 #. type: textblock
22353 #: ../inspector/virt-inspector.pod:241
22354 msgid ""
22355 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22356 "the label, and the UUID."
22357 msgstr ""
22358
22359 #. type: =head2
22360 #: ../inspector/virt-inspector.pod:244
22361 msgid "E<lt>applicationsE<gt>"
22362 msgstr ""
22363
22364 #. type: textblock
22365 #: ../inspector/virt-inspector.pod:246
22366 msgid ""
22367 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22368 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22369 "machine."
22370 msgstr ""
22371
22372 #. type: textblock
22373 #: ../inspector/virt-inspector.pod:250
22374 msgid ""
22375 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22376 "Typical values would be C<rpm> and C<deb>."
22377 msgstr ""
22378
22379 #. type: textblock
22380 #: ../inspector/virt-inspector.pod:253
22381 msgid ""
22382 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22383 "Typical values include C<yum>, C<up2date> and C<apt>"
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../inspector/virt-inspector.pod:256
22388 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22389 msgstr ""
22390
22391 #. type: verbatim
22392 #: ../inspector/virt-inspector.pod:259
22393 #, no-wrap
22394 msgid ""
22395 " <operatingsystems>\n"
22396 "   <operatingsystem>\n"
22397 "     ...\n"
22398 "     <applications>\n"
22399 "       <application>\n"
22400 "         <name>coreutils</name>\n"
22401 "         <version>8.5</version>\n"
22402 "         <release>1</release>\n"
22403 "       </application>\n"
22404 "\n"
22405 msgstr ""
22406
22407 #. type: textblock
22408 #: ../inspector/virt-inspector.pod:269
22409 msgid ""
22410 "The version and release fields may not be available for some types guests.  "
22411 "Other fields are possible, see "
22412 "L<guestfs(3)/guestfs_inspect_list_applications>."
22413 msgstr ""
22414
22415 #. type: =head2
22416 #: ../inspector/virt-inspector.pod:273
22417 msgid "E<lt>drive_mappingsE<gt>"
22418 msgstr ""
22419
22420 #. type: textblock
22421 #: ../inspector/virt-inspector.pod:275
22422 msgid ""
22423 "For operating systems like Windows which use drive letters, virt-inspector "
22424 "is able to find out how drive letters map to filesystems."
22425 msgstr ""
22426
22427 #. type: verbatim
22428 #: ../inspector/virt-inspector.pod:279
22429 #, no-wrap
22430 msgid ""
22431 " <operatingsystems>\n"
22432 "   <operatingsystem>\n"
22433 "     ...\n"
22434 "     <drive_mappings>\n"
22435 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22436 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22437 "     </drive_mappings>\n"
22438 "\n"
22439 msgstr ""
22440
22441 #. type: textblock
22442 #: ../inspector/virt-inspector.pod:287
22443 msgid ""
22444 "In the example above, drive C maps to the filesystem on the second partition "
22445 "on the first disk, and drive E maps to the filesystem on the first partition "
22446 "on the second disk."
22447 msgstr ""
22448
22449 #. type: textblock
22450 #: ../inspector/virt-inspector.pod:291
22451 msgid ""
22452 "Note that this only covers permanent local filesystem mappings, not things "
22453 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22454 "here."
22455 msgstr ""
22456
22457 #. type: =head2
22458 #: ../inspector/virt-inspector.pod:295
22459 msgid "E<lt>iconE<gt>"
22460 msgstr ""
22461
22462 #. type: textblock
22463 #: ../inspector/virt-inspector.pod:297
22464 msgid ""
22465 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22466 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22467 "very large and high quality."
22468 msgstr ""
22469
22470 #. type: verbatim
22471 #: ../inspector/virt-inspector.pod:301
22472 #, no-wrap
22473 msgid ""
22474 " <operatingsystems>\n"
22475 "   <operatingsystem>\n"
22476 "     ...\n"
22477 "     <icon>\n"
22478 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22479 "       [... many lines of base64 data ...]\n"
22480 "     </icon>\n"
22481 "\n"
22482 msgstr ""
22483
22484 #. type: textblock
22485 #: ../inspector/virt-inspector.pod:309
22486 msgid ""
22487 "To display the icon, you have to extract it and convert the base64 data back "
22488 "to a binary file.  Use an XPath query or simply an editor to extract the "
22489 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22490 "to a PNG file:"
22491 msgstr ""
22492
22493 #. type: verbatim
22494 #: ../inspector/virt-inspector.pod:314
22495 #, no-wrap
22496 msgid ""
22497 " base64 -i -d < icon.data > icon.png\n"
22498 "\n"
22499 msgstr ""
22500
22501 #. type: =head2
22502 #: ../inspector/virt-inspector.pod:316
22503 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22504 msgstr ""
22505
22506 #. type: textblock
22507 #: ../inspector/virt-inspector.pod:318
22508 msgid ""
22509 "Virt-inspector can detect some operating system installers on install disks, "
22510 "live CDs, bootable USB keys and more."
22511 msgstr ""
22512
22513 #. type: textblock
22514 #: ../inspector/virt-inspector.pod:321
22515 msgid ""
22516 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22517 "fields may be present to indicate a live CD, network installer, or one part "
22518 "of a multipart CD.  For example:"
22519 msgstr ""
22520
22521 #. type: verbatim
22522 #: ../inspector/virt-inspector.pod:325
22523 #, no-wrap
22524 msgid ""
22525 " <operatingsystems>\n"
22526 "   <operatingsystem>\n"
22527 "     <root>/dev/sda</root>\n"
22528 "     <name>linux</name>\n"
22529 "     <arch>i386</arch>\n"
22530 "     <distro>ubuntu</distro>\n"
22531 "     <product_name>Ubuntu 10.10 &quot;Maverick "
22532 "Meerkat&quot;</product_name>\n"
22533 "     <major_version>10</major_version>\n"
22534 "     <minor_version>10</minor_version>\n"
22535 "     <format>installer</format>\n"
22536 "     <live/>\n"
22537 "\n"
22538 msgstr ""
22539
22540 #. type: =head1
22541 #: ../inspector/virt-inspector.pod:337
22542 msgid "XPATH QUERIES"
22543 msgstr ""
22544
22545 #. type: textblock
22546 #: ../inspector/virt-inspector.pod:339
22547 msgid ""
22548 "Virt-inspector includes built in support for running XPath queries.  The "
22549 "reason for including XPath support directly in virt-inspector is simply that "
22550 "there are no good and widely available command line programs that can do "
22551 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22552 "available on Red Hat Enterprise Linux."
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../inspector/virt-inspector.pod:346
22557 msgid ""
22558 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22559 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22560 "result on stdout.  All other inspection features are disabled in this mode."
22561 msgstr ""
22562
22563 #. type: verbatim
22564 #: ../inspector/virt-inspector.pod:353
22565 #, no-wrap
22566 msgid ""
22567 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22568 " <filesystems>\n"
22569 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22570 "        <type>ext4</type>\n"
22571 " [...]\n"
22572 "\n"
22573 msgstr ""
22574
22575 #. type: verbatim
22576 #: ../inspector/virt-inspector.pod:359
22577 #, no-wrap
22578 msgid ""
22579 " $ virt-inspector -d Guest | \\\n"
22580 "     virt-inspector --xpath "
22581 "\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22582 " ext4\n"
22583 "\n"
22584 msgstr ""
22585
22586 #. type: verbatim
22587 #: ../inspector/virt-inspector.pod:363
22588 #, no-wrap
22589 msgid ""
22590 " $ virt-inspector -d Guest | \\\n"
22591 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22592 " [displays the guest icon, if there is one]\n"
22593 "\n"
22594 msgstr ""
22595
22596 #. type: =head1
22597 #: ../inspector/virt-inspector.pod:374
22598 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22599 msgstr ""
22600
22601 #. type: textblock
22602 #: ../inspector/virt-inspector.pod:376
22603 msgid ""
22604 "Early versions of libguestfs shipped with a different virt-inspector program "
22605 "written in Perl (the current version is written in C).  The XML output of "
22606 "the Perl virt-inspector was different and it could also output in other "
22607 "formats like text."
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../inspector/virt-inspector.pod:381
22612 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
22613 msgstr ""
22614
22615 #. type: textblock
22616 #: ../inspector/virt-inspector.pod:384
22617 msgid ""
22618 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22619 "versions of virt-inspector with different names:"
22620 msgstr ""
22621
22622 #. type: verbatim
22623 #: ../inspector/virt-inspector.pod:387
22624 #, no-wrap
22625 msgid ""
22626 " virt-inspector     Old Perl version.\n"
22627 " virt-inspector2    New C version.\n"
22628 "\n"
22629 msgstr ""
22630
22631 #. type: textblock
22632 #: ../inspector/virt-inspector.pod:397
22633 msgid ""
22634 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22635 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../inspector/virt-inspector.pod:414
22640 msgid "Matthew Booth L<mbooth@redhat.com>"
22641 msgstr ""
22642
22643 #. type: textblock
22644 #: ../java/examples/guestfs-java.pod:5
22645 msgid "guestfs-java - How to use libguestfs from Java"
22646 msgstr ""
22647
22648 #. type: verbatim
22649 #: ../java/examples/guestfs-java.pod:9
22650 #, no-wrap
22651 msgid ""
22652 " import com.redhat.et.libguestfs.*;\n"
22653 " \n"
22654 msgstr ""
22655
22656 #. type: verbatim
22657 #: ../java/examples/guestfs-java.pod:11
22658 #, no-wrap
22659 msgid ""
22660 " GuestFS g = new GuestFS ();\n"
22661 " g.add_drive_opts (\"disk.img\", null);\n"
22662 " g.launch ();\n"
22663 "\n"
22664 msgstr ""
22665
22666 #. type: textblock
22667 #: ../java/examples/guestfs-java.pod:17
22668 msgid ""
22669 "This manual page documents how to call libguestfs from the Java programming "
22670 "language.  This page just documents the differences from the C API and gives "
22671 "some examples.  If you are not familiar with using libguestfs, you also need "
22672 "to read L<guestfs(3)>."
22673 msgstr ""
22674
22675 #. type: =head2
22676 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22677 msgid "CLOSING THE HANDLE"
22678 msgstr ""
22679
22680 #. type: textblock
22681 #: ../java/examples/guestfs-java.pod:24
22682 msgid ""
22683 "The handle is closed when it is reaped by the garbage collector.  Because "
22684 "libguestfs handles include a lot of state, it is also possible to close (and "
22685 "hence free) them explicitly by calling the C<close> method."
22686 msgstr ""
22687
22688 #. type: =head2
22689 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
22690 msgid "EXCEPTIONS"
22691 msgstr ""
22692
22693 #. type: textblock
22694 #: ../java/examples/guestfs-java.pod:31
22695 msgid ""
22696 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22697 "exception.  This has a single parameter which is the error message (a "
22698 "C<String>)."
22699 msgstr ""
22700
22701 #. type: textblock
22702 #: ../java/examples/guestfs-java.pod:35
22703 msgid "Calling any method on a closed handle raises the same exception."
22704 msgstr ""
22705
22706 #. type: textblock
22707 #: ../java/examples/guestfs-java.pod:47
22708 msgid ""
22709 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22710 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22711 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22712 "L<http://caml.inria.fr/>."
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../ocaml/examples/guestfs-ocaml.pod:5
22717 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22718 msgstr ""
22719
22720 #. type: textblock
22721 #: ../ocaml/examples/guestfs-ocaml.pod:9
22722 msgid "Module style:"
22723 msgstr ""
22724
22725 #. type: verbatim
22726 #: ../ocaml/examples/guestfs-ocaml.pod:11
22727 #, no-wrap
22728 msgid ""
22729 " let g = Guestfs.create () in\n"
22730 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22731 " Guestfs.launch g;\n"
22732 "\n"
22733 msgstr ""
22734
22735 #. type: textblock
22736 #: ../ocaml/examples/guestfs-ocaml.pod:15
22737 msgid "Object-oriented style:"
22738 msgstr ""
22739
22740 #. type: verbatim
22741 #: ../ocaml/examples/guestfs-ocaml.pod:17
22742 #, no-wrap
22743 msgid ""
22744 " let g = new Guestfs.guestfs () in\n"
22745 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22746 " g#launch ();\n"
22747 "\n"
22748 msgstr ""
22749
22750 #. type: verbatim
22751 #: ../ocaml/examples/guestfs-ocaml.pod:21
22752 #, no-wrap
22753 msgid ""
22754 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22755 "or:\n"
22756 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22757 "\n"
22758 msgstr ""
22759
22760 #. type: textblock
22761 #: ../ocaml/examples/guestfs-ocaml.pod:27
22762 msgid ""
22763 "This manual page documents how to call libguestfs from the OCaml programming "
22764 "language.  This page just documents the differences from the C API and gives "
22765 "some examples.  If you are not familiar with using libguestfs, you also need "
22766 "to read L<guestfs(3)>."
22767 msgstr ""
22768
22769 #. type: =head2
22770 #: ../ocaml/examples/guestfs-ocaml.pod:32
22771 msgid "PROGRAMMING STYLES"
22772 msgstr ""
22773
22774 #. type: textblock
22775 #: ../ocaml/examples/guestfs-ocaml.pod:34
22776 msgid ""
22777 "There are two different programming styles supported by the OCaml bindings.  "
22778 "You can use a module style, with each C function mapped to an OCaml "
22779 "function:"
22780 msgstr ""
22781
22782 #. type: verbatim
22783 #: ../ocaml/examples/guestfs-ocaml.pod:38
22784 #, no-wrap
22785 msgid ""
22786 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22787 "\n"
22788 msgstr ""
22789
22790 #. type: textblock
22791 #: ../ocaml/examples/guestfs-ocaml.pod:40
22792 msgid "becomes:"
22793 msgstr ""
22794
22795 #. type: verbatim
22796 #: ../ocaml/examples/guestfs-ocaml.pod:42
22797 #, no-wrap
22798 msgid ""
22799 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22800 "\n"
22801 msgstr ""
22802
22803 #. type: textblock
22804 #: ../ocaml/examples/guestfs-ocaml.pod:44
22805 msgid ""
22806 "Alternately you can use an object-oriented style, calling methods on the "
22807 "class C<Guestfs.guestfs>:"
22808 msgstr ""
22809
22810 #. type: verbatim
22811 #: ../ocaml/examples/guestfs-ocaml.pod:47
22812 #, no-wrap
22813 msgid ""
22814 " method set_verbose : bool -> unit\n"
22815 "\n"
22816 msgstr ""
22817
22818 #. type: textblock
22819 #: ../ocaml/examples/guestfs-ocaml.pod:49
22820 msgid ""
22821 "The object-oriented style is usually briefer, and the minor performance "
22822 "penalty isn't noticable in the general overhead of performing libguestfs "
22823 "functions."
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../ocaml/examples/guestfs-ocaml.pod:55
22828 msgid ""
22829 "The handle is closed when it is reaped by the garbage collector.  Because "
22830 "libguestfs handles include a lot of state, it is also possible to close (and "
22831 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22832 "method."
22833 msgstr ""
22834
22835 #. type: textblock
22836 #: ../ocaml/examples/guestfs-ocaml.pod:62
22837 msgid ""
22838 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22839 "exception.  This has a single parameter which is the error message (a "
22840 "string)."
22841 msgstr ""
22842
22843 #. type: textblock
22844 #: ../ocaml/examples/guestfs-ocaml.pod:66
22845 msgid ""
22846 "Calling any function/method on a closed handle raises "
22847 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
22848 "that you called."
22849 msgstr ""
22850
22851 #. type: textblock
22852 #: ../ocaml/examples/guestfs-ocaml.pod:80
22853 msgid ""
22854 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22855 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22856 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22857 "L<http://caml.inria.fr/>."
22858 msgstr ""
22859
22860 #. type: textblock
22861 #: ../perl/examples/guestfs-perl.pod:5
22862 msgid "guestfs-perl - How to use libguestfs from Perl"
22863 msgstr ""
22864
22865 #. type: verbatim
22866 #: ../perl/examples/guestfs-perl.pod:9
22867 #, no-wrap
22868 msgid ""
22869 " use Sys::Guestfs;\n"
22870 " \n"
22871 msgstr ""
22872
22873 #. type: verbatim
22874 #: ../perl/examples/guestfs-perl.pod:11
22875 #, no-wrap
22876 msgid ""
22877 " my $h = Sys::Guestfs->new ();\n"
22878 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22879 " $h->launch ();\n"
22880 " $h->mount_options ('', '/dev/sda1', '/');\n"
22881 " $h->touch ('/hello');\n"
22882 " $h->sync ();\n"
22883 "\n"
22884 msgstr ""
22885
22886 #. type: textblock
22887 #: ../perl/examples/guestfs-perl.pod:20
22888 msgid ""
22889 "This manual page documents how to call libguestfs from the Perl programming "
22890 "language.  This page just documents the differences from the C API and gives "
22891 "some examples.  If you are not familiar with using libguestfs, you also need "
22892 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22893 msgstr ""
22894
22895 #. type: =head2
22896 #: ../perl/examples/guestfs-perl.pod:26
22897 msgid "ERRORS"
22898 msgstr ""
22899
22900 #. type: textblock
22901 #: ../perl/examples/guestfs-perl.pod:28
22902 msgid ""
22903 "Errors from libguestfs functions turn into calls to C<croak> (see "
22904 "L<Carp(3)>)."
22905 msgstr ""
22906
22907 #. type: textblock
22908 #: ../perl/examples/guestfs-perl.pod:41
22909 msgid ""
22910 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
22911 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
22912 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
22913 "L<http://libguestfs.org/>."
22914 msgstr ""
22915
22916 #. type: textblock
22917 #: ../python/examples/guestfs-python.pod:5
22918 msgid "guestfs-python - How to use libguestfs from Python"
22919 msgstr ""
22920
22921 #. type: verbatim
22922 #: ../python/examples/guestfs-python.pod:9
22923 #, no-wrap
22924 msgid ""
22925 " import guestfs\n"
22926 " g = guestfs.GuestFS ()\n"
22927 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22928 " g.launch\n"
22929 "\n"
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../python/examples/guestfs-python.pod:16
22934 msgid ""
22935 "This manual page documents how to call libguestfs from the Python "
22936 "programming language.  This page just documents the differences from the C "
22937 "API and gives some examples.  If you are not familiar with using libguestfs, "
22938 "you also need to read L<guestfs(3)>."
22939 msgstr ""
22940
22941 #. type: textblock
22942 #: ../python/examples/guestfs-python.pod:23
22943 msgid ""
22944 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22945 "single string argument which is the error message."
22946 msgstr ""
22947
22948 #. type: =head2
22949 #: ../python/examples/guestfs-python.pod:26
22950 msgid "MORE DOCUMENTATION"
22951 msgstr ""
22952
22953 #. type: textblock
22954 #: ../python/examples/guestfs-python.pod:28
22955 msgid "Type:"
22956 msgstr ""
22957
22958 #. type: verbatim
22959 #: ../python/examples/guestfs-python.pod:30
22960 #, no-wrap
22961 msgid ""
22962 " $ python\n"
22963 " >>> import guestfs\n"
22964 " >>> help (guestfs)\n"
22965 "\n"
22966 msgstr ""
22967
22968 #. type: textblock
22969 #: ../python/examples/guestfs-python.pod:44
22970 msgid ""
22971 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22972 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
22973 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22974 msgstr ""
22975
22976 #. type: textblock
22977 #: ../rescue/virt-rescue.pod:5
22978 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22979 msgstr ""
22980
22981 #. type: verbatim
22982 #: ../rescue/virt-rescue.pod:9
22983 #, no-wrap
22984 msgid ""
22985 " virt-rescue [--options] -d domname\n"
22986 "\n"
22987 msgstr ""
22988
22989 #. type: verbatim
22990 #: ../rescue/virt-rescue.pod:11
22991 #, no-wrap
22992 msgid ""
22993 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22994 "\n"
22995 msgstr ""
22996
22997 #. type: verbatim
22998 #: ../rescue/virt-rescue.pod:13
22999 #, no-wrap
23000 msgid ""
23001 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23002 "\n"
23003 msgstr ""
23004
23005 #. type: verbatim
23006 #: ../rescue/virt-rescue.pod:17
23007 #, no-wrap
23008 msgid ""
23009 " virt-rescue [--options] domname\n"
23010 "\n"
23011 msgstr ""
23012
23013 #. type: verbatim
23014 #: ../rescue/virt-rescue.pod:19
23015 #, no-wrap
23016 msgid ""
23017 " virt-rescue [--options] disk.img [disk.img ...]\n"
23018 "\n"
23019 msgstr ""
23020
23021 #. type: textblock
23022 #: ../rescue/virt-rescue.pod:23
23023 msgid ""
23024 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23025 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23026 "you from doing this, but doesn't catch all cases."
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../rescue/virt-rescue.pod:27
23031 msgid ""
23032 "However if you use the I<--ro> (read only) option, then you can attach a "
23033 "shell to a live virtual machine.  The results might be strange or "
23034 "inconsistent at times but you won't get disk corruption."
23035 msgstr ""
23036
23037 #. type: textblock
23038 #: ../rescue/virt-rescue.pod:33
23039 msgid ""
23040 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23041 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23042 "recovery tools which you can use to examine or rescue a virtual machine or "
23043 "disk image."
23044 msgstr ""
23045
23046 #. type: textblock
23047 #: ../rescue/virt-rescue.pod:38
23048 msgid ""
23049 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23050 "on disk image(s):"
23051 msgstr ""
23052
23053 #. type: verbatim
23054 #: ../rescue/virt-rescue.pod:41
23055 #, no-wrap
23056 msgid ""
23057 " virt-rescue -d GuestName\n"
23058 "\n"
23059 msgstr ""
23060
23061 #. type: verbatim
23062 #: ../rescue/virt-rescue.pod:43
23063 #, no-wrap
23064 msgid ""
23065 " virt-rescue --ro -a /path/to/disk.img\n"
23066 "\n"
23067 msgstr ""
23068
23069 #. type: verbatim
23070 #: ../rescue/virt-rescue.pod:45
23071 #, no-wrap
23072 msgid ""
23073 " virt-rescue -a /dev/sdc\n"
23074 "\n"
23075 msgstr ""
23076
23077 #. type: textblock
23078 #: ../rescue/virt-rescue.pod:47
23079 msgid "For live VMs you I<must> use the --ro option."
23080 msgstr ""
23081
23082 #. type: textblock
23083 #: ../rescue/virt-rescue.pod:49
23084 msgid ""
23085 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23086 "in an interactive bash shell where you can use many ordinary Linux "
23087 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23088 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23089 "is an empty directory called C</sysroot> where you can mount filesystems."
23090 msgstr ""
23091
23092 #. type: textblock
23093 #: ../rescue/virt-rescue.pod:56
23094 msgid ""
23095 "You can get virt-rescue to suggest mount commands for you by using the "
23096 "I<--suggest> option (in another terminal):"
23097 msgstr ""
23098
23099 #. type: verbatim
23100 #: ../rescue/virt-rescue.pod:59
23101 #, no-wrap
23102 msgid ""
23103 " $ virt-rescue --suggest -d Fedora15\n"
23104 " Inspecting the virtual machine or disk image ...\n"
23105 " \n"
23106 msgstr ""
23107
23108 #. type: verbatim
23109 #: ../rescue/virt-rescue.pod:62
23110 #, no-wrap
23111 msgid ""
23112 " This disk contains one or more operating systems.  You can use these\n"
23113 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23114 " filesystems.\n"
23115 " \n"
23116 msgstr ""
23117
23118 #. type: verbatim
23119 #: ../rescue/virt-rescue.pod:66
23120 #, no-wrap
23121 msgid ""
23122 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23123 " # type: linux, distro: fedora, version: 15.0\n"
23124 " # Fedora release 15 (Lovelock)\n"
23125 " \n"
23126 msgstr ""
23127
23128 #. type: verbatim
23129 #: ../rescue/virt-rescue.pod:70
23130 #, no-wrap
23131 msgid ""
23132 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23133 " mount /dev/vda1 /sysroot/boot\n"
23134 " mount --bind /dev /sysroot/dev\n"
23135 " mount --bind /dev/pts /sysroot/dev/pts\n"
23136 " mount --bind /proc /sysroot/proc\n"
23137 " mount --bind /sys /sysroot/sys\n"
23138 "\n"
23139 msgstr ""
23140
23141 #. type: textblock
23142 #: ../rescue/virt-rescue.pod:77
23143 msgid ""
23144 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23145 "(with L<parted(8)>) and mount them by hand:"
23146 msgstr ""
23147
23148 #. type: verbatim
23149 #: ../rescue/virt-rescue.pod:80
23150 #, no-wrap
23151 msgid ""
23152 " ><rescue> lvs\n"
23153 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23154 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23155 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23156 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23157 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23158 " ><rescue> ls /sysroot\n"
23159 "\n"
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../rescue/virt-rescue.pod:88
23164 msgid "Another command to list available filesystems is L<virt-filesystems(1)>."
23165 msgstr ""
23166
23167 #. type: textblock
23168 #: ../rescue/virt-rescue.pod:91
23169 msgid ""
23170 "To run commands in a Linux guest (for example, grub), you should chroot into "
23171 "the /sysroot directory first:"
23172 msgstr ""
23173
23174 #. type: verbatim
23175 #: ../rescue/virt-rescue.pod:94
23176 #, no-wrap
23177 msgid ""
23178 " ><rescue> chroot /sysroot\n"
23179 "\n"
23180 msgstr ""
23181
23182 #. type: textblock
23183 #: ../rescue/virt-rescue.pod:98
23184 msgid ""
23185 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23186 "virtual machine.  For example you can use it on a blank file if you want to "
23187 "partition that file (although we would recommend using L<guestfish(1)> "
23188 "instead as it is more suitable for this purpose).  You can even use "
23189 "virt-rescue on things like SD cards."
23190 msgstr ""
23191
23192 #. type: textblock
23193 #: ../rescue/virt-rescue.pod:104
23194 msgid ""
23195 "Virt-rescue does not require root.  You only need to run it as root if you "
23196 "need root to open the disk image."
23197 msgstr ""
23198
23199 #. type: textblock
23200 #: ../rescue/virt-rescue.pod:107
23201 msgid ""
23202 "This tool is just designed for quick interactive hacking on a virtual "
23203 "machine.  For more structured access to a virtual machine disk image, you "
23204 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23205 "make scripted changes to guests, use L<guestfish(1)>."
23206 msgstr ""
23207
23208 #. type: =item
23209 #: ../rescue/virt-rescue.pod:131
23210 msgid "B<--append kernelopts>"
23211 msgstr ""
23212
23213 #. type: textblock
23214 #: ../rescue/virt-rescue.pod:133
23215 msgid "Pass additional options to the rescue kernel."
23216 msgstr ""
23217
23218 #. type: verbatim
23219 #: ../rescue/virt-rescue.pod:163
23220 #, no-wrap
23221 msgid ""
23222 " virt-rescue --format=raw -a disk.img\n"
23223 "\n"
23224 msgstr ""
23225
23226 #. type: verbatim
23227 #: ../rescue/virt-rescue.pod:167
23228 #, no-wrap
23229 msgid ""
23230 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23231 "\n"
23232 msgstr ""
23233
23234 #. type: =item
23235 #: ../rescue/virt-rescue.pod:176
23236 msgid "B<-m MB>"
23237 msgstr ""
23238
23239 #. type: =item
23240 #: ../rescue/virt-rescue.pod:178
23241 msgid "B<--memsize MB>"
23242 msgstr ""
23243
23244 #. type: textblock
23245 #: ../rescue/virt-rescue.pod:180
23246 msgid ""
23247 "Change the amount of memory allocated to the rescue system.  The default is "
23248 "set by libguestfs and is small but adequate for running system tools.  The "
23249 "occasional program might need more memory.  The parameter is specified in "
23250 "megabytes."
23251 msgstr ""
23252
23253 #. type: =item
23254 #: ../rescue/virt-rescue.pod:185
23255 msgid "B<--network>"
23256 msgstr ""
23257
23258 #. type: textblock
23259 #: ../rescue/virt-rescue.pod:187
23260 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23261 msgstr ""
23262
23263 #. type: textblock
23264 #: ../rescue/virt-rescue.pod:193
23265 msgid "Open the image read-only."
23266 msgstr ""
23267
23268 #. type: textblock
23269 #: ../rescue/virt-rescue.pod:203
23270 msgid ""
23271 "Enable SELinux in the rescue appliance.  You should read "
23272 "L<guestfs(3)/SELINUX> before using this option."
23273 msgstr ""
23274
23275 #. type: =item
23276 #: ../rescue/virt-rescue.pod:206
23277 msgid "B<--smp> N"
23278 msgstr ""
23279
23280 #. type: textblock
23281 #: ../rescue/virt-rescue.pod:208
23282 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23283 msgstr ""
23284
23285 #. type: =item
23286 #: ../rescue/virt-rescue.pod:210
23287 msgid "B<--suggest>"
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../rescue/virt-rescue.pod:212
23292 msgid ""
23293 "Inspect the disk image and suggest what mount commands should be used to "
23294 "mount the disks.  You should use the I<--suggest> option in a second "
23295 "terminal, then paste the commands into another virt-rescue."
23296 msgstr ""
23297
23298 #. type: textblock
23299 #: ../rescue/virt-rescue.pod:216
23300 msgid ""
23301 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23302 "another virt-rescue is running."
23303 msgstr ""
23304
23305 #. type: textblock
23306 #: ../rescue/virt-rescue.pod:235
23307 msgid ""
23308 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23309 "are done read-write."
23310 msgstr ""
23311
23312 #. type: textblock
23313 #: ../rescue/virt-rescue.pod:248
23314 msgid "Previous versions of virt-rescue allowed you to write either:"
23315 msgstr ""
23316
23317 #. type: verbatim
23318 #: ../rescue/virt-rescue.pod:250
23319 #, no-wrap
23320 msgid ""
23321 " virt-rescue disk.img [disk.img ...]\n"
23322 "\n"
23323 msgstr ""
23324
23325 #. type: verbatim
23326 #: ../rescue/virt-rescue.pod:254
23327 #, no-wrap
23328 msgid ""
23329 " virt-rescue guestname\n"
23330 "\n"
23331 msgstr ""
23332
23333 #. type: =head1
23334 #: ../rescue/virt-rescue.pod:262
23335 msgid "NETWORK"
23336 msgstr ""
23337
23338 #. type: textblock
23339 #: ../rescue/virt-rescue.pod:264
23340 msgid ""
23341 "Adding the I<--network> option enables QEMU user networking in the rescue "
23342 "appliance.  There are some differences between user networking and ordinary "
23343 "networking:"
23344 msgstr ""
23345
23346 #. type: =item
23347 #: ../rescue/virt-rescue.pod:270
23348 msgid "ping does not work"
23349 msgstr ""
23350
23351 #. type: textblock
23352 #: ../rescue/virt-rescue.pod:272
23353 msgid ""
23354 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23355 "send the ping packets, and because virt-rescue must be able to run as "
23356 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
23357 "command.  The ping command will appear to resolve addresses but will not be "
23358 "able to send or receive any packets.  This does not mean that the network is "
23359 "not working."
23360 msgstr ""
23361
23362 #. type: =item
23363 #: ../rescue/virt-rescue.pod:279
23364 msgid "cannot receive connections"
23365 msgstr ""
23366
23367 #. type: textblock
23368 #: ../rescue/virt-rescue.pod:281
23369 msgid "QEMU user networking cannot receive incoming connections."
23370 msgstr ""
23371
23372 #. type: =item
23373 #: ../rescue/virt-rescue.pod:283
23374 msgid "making TCP connections"
23375 msgstr ""
23376
23377 #. type: textblock
23378 #: ../rescue/virt-rescue.pod:285
23379 msgid ""
23380 "The virt-rescue appliance needs to be small and so does not include many "
23381 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23382 "make TCP connections from the shell using the magical "
23383 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23384 msgstr ""
23385
23386 #. type: verbatim
23387 #: ../rescue/virt-rescue.pod:290
23388 #, no-wrap
23389 msgid ""
23390 " exec 3<>/dev/tcp/redhat.com/80\n"
23391 " echo \"GET /\" >&3\n"
23392 " cat <&3\n"
23393 "\n"
23394 msgstr ""
23395
23396 #. type: textblock
23397 #: ../rescue/virt-rescue.pod:294
23398 msgid "See L<bash(1)> for more details."
23399 msgstr ""
23400
23401 #. type: textblock
23402 #: ../rescue/virt-rescue.pod:300
23403 msgid ""
23404 "Several environment variables affect virt-rescue.  See "
23405 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
23406 msgstr ""
23407
23408 #. type: textblock
23409 #: ../rescue/virt-rescue.pod:327
23410 msgid ""
23411 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23412 "L<virt-filesystems(1)>, L<http://libguestfs.org/>."
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../resize/virt-resize.pod:5
23417 msgid "virt-resize - Resize a virtual machine disk"
23418 msgstr ""
23419
23420 #. type: verbatim
23421 #: ../resize/virt-resize.pod:9
23422 #, no-wrap
23423 msgid ""
23424 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23425 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23426 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23427 "\n"
23428 msgstr ""
23429
23430 #. type: textblock
23431 #: ../resize/virt-resize.pod:15
23432 msgid ""
23433 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23434 "larger or smaller overall, and resizing or deleting any partitions contained "
23435 "within."
23436 msgstr ""
23437
23438 #. type: textblock
23439 #: ../resize/virt-resize.pod:19
23440 msgid ""
23441 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23442 "not> be used on live virtual machines - for consistent results, shut the "
23443 "virtual machine down before resizing it."
23444 msgstr ""
23445
23446 #. type: textblock
23447 #: ../resize/virt-resize.pod:23
23448 msgid ""
23449 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23450 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23451 msgstr ""
23452
23453 #. type: =item
23454 #: ../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
23455 msgid "1."
23456 msgstr ""
23457
23458 #. type: textblock
23459 #: ../resize/virt-resize.pod:33
23460 msgid ""
23461 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23462 "fill the extra 5GB of space."
23463 msgstr ""
23464
23465 #. type: verbatim
23466 #: ../resize/virt-resize.pod:36
23467 #, no-wrap
23468 msgid ""
23469 " virt-filesystems --long -h --all -a olddisk\n"
23470 " \n"
23471 msgstr ""
23472
23473 #. type: verbatim
23474 #: ../resize/virt-resize.pod:38
23475 #, no-wrap
23476 msgid ""
23477 " truncate -r olddisk newdisk\n"
23478 " truncate -s +5G newdisk\n"
23479 " \n"
23480 msgstr ""
23481
23482 #. type: verbatim
23483 #: ../resize/virt-resize.pod:41
23484 #, no-wrap
23485 msgid ""
23486 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23487 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23488 "\n"
23489 msgstr ""
23490
23491 #. type: =item
23492 #: ../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
23493 msgid "2."
23494 msgstr ""
23495
23496 #. type: textblock
23497 #: ../resize/virt-resize.pod:46
23498 msgid ""
23499 "As above, but make the /boot partition 200MB bigger, while giving the "
23500 "remaining space to /dev/sda2:"
23501 msgstr ""
23502
23503 #. type: verbatim
23504 #: ../resize/virt-resize.pod:49
23505 #, no-wrap
23506 msgid ""
23507 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23508 "   olddisk newdisk\n"
23509 "\n"
23510 msgstr ""
23511
23512 #. type: =item
23513 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
23514 msgid "3."
23515 msgstr ""
23516
23517 #. type: textblock
23518 #: ../resize/virt-resize.pod:54
23519 msgid ""
23520 "As in the first example, but expand a logical volume as the final step.  "
23521 "This is what you would typically use for Linux guests that use LVM:"
23522 msgstr ""
23523
23524 #. type: verbatim
23525 #: ../resize/virt-resize.pod:58
23526 #, no-wrap
23527 msgid ""
23528 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23529 "   olddisk newdisk\n"
23530 "\n"
23531 msgstr ""
23532
23533 #. type: =item
23534 #: ../resize/virt-resize.pod:61
23535 msgid "4."
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../resize/virt-resize.pod:63
23540 msgid ""
23541 "As in the first example, but the output format will be qcow2 instead of a "
23542 "raw disk:"
23543 msgstr ""
23544
23545 #. type: verbatim
23546 #: ../resize/virt-resize.pod:66
23547 #, no-wrap
23548 msgid ""
23549 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23550 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23551 "\n"
23552 msgstr ""
23553
23554 #. type: =head1
23555 #: ../resize/virt-resize.pod:71
23556 msgid "DETAILED USAGE"
23557 msgstr ""
23558
23559 #. type: =head2
23560 #: ../resize/virt-resize.pod:73
23561 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23562 msgstr ""
23563
23564 #. type: =item
23565 #: ../resize/virt-resize.pod:77
23566 msgid "1. Shut down the virtual machine"
23567 msgstr ""
23568
23569 #. type: =item
23570 #: ../resize/virt-resize.pod:79
23571 msgid "2. Locate input disk image"
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../resize/virt-resize.pod:81
23576 msgid ""
23577 "Locate the input disk image (ie. the file or device on the host containing "
23578 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23579 "dumpxml> like this to find the disk image name:"
23580 msgstr ""
23581
23582 #. type: verbatim
23583 #: ../resize/virt-resize.pod:85
23584 #, no-wrap
23585 msgid ""
23586 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23587 " Found 1 nodes:\n"
23588 " -- NODE --\n"
23589 " <source dev=\"/dev/vg/lv_guest\" />\n"
23590 "\n"
23591 msgstr ""
23592
23593 #. type: =item
23594 #: ../resize/virt-resize.pod:90
23595 msgid "3. Look at current sizing"
23596 msgstr ""
23597
23598 #. type: textblock
23599 #: ../resize/virt-resize.pod:92
23600 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23601 msgstr ""
23602
23603 #. type: verbatim
23604 #: ../resize/virt-resize.pod:95
23605 #, no-wrap
23606 msgid ""
23607 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23608 " Name       Type       Size  Parent\n"
23609 " /dev/sda1  partition  101M  /dev/sda\n"
23610 " /dev/sda2  partition  7.9G  /dev/sda\n"
23611 " /dev/sda   device     8.0G  -\n"
23612 "\n"
23613 msgstr ""
23614
23615 #. type: textblock
23616 #: ../resize/virt-resize.pod:101
23617 msgid ""
23618 "(This example is a virtual machine with an 8 GB disk which we would like to "
23619 "expand up to 10 GB)."
23620 msgstr ""
23621
23622 #. type: =item
23623 #: ../resize/virt-resize.pod:104
23624 msgid "4. Create output disk"
23625 msgstr ""
23626
23627 #. type: textblock
23628 #: ../resize/virt-resize.pod:106
23629 msgid ""
23630 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23631 "to store the resized output disk."
23632 msgstr ""
23633
23634 #. type: textblock
23635 #: ../resize/virt-resize.pod:109
23636 msgid "To store the resized disk image in a file, create a file of a suitable size:"
23637 msgstr ""
23638
23639 #. type: verbatim
23640 #: ../resize/virt-resize.pod:112
23641 #, no-wrap
23642 msgid ""
23643 " # rm -f outdisk\n"
23644 " # truncate -s 10G outdisk\n"
23645 "\n"
23646 msgstr ""
23647
23648 #. type: textblock
23649 #: ../resize/virt-resize.pod:115
23650 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23651 msgstr ""
23652
23653 #. type: verbatim
23654 #: ../resize/virt-resize.pod:117
23655 #, no-wrap
23656 msgid ""
23657 " # lvcreate -L 10G -n lv_name vg_name\n"
23658 "\n"
23659 msgstr ""
23660
23661 #. type: textblock
23662 #: ../resize/virt-resize.pod:119
23663 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23664 msgstr ""
23665
23666 #. type: verbatim
23667 #: ../resize/virt-resize.pod:121
23668 #, no-wrap
23669 msgid ""
23670 " # virsh pool-list\n"
23671 " # virsh vol-create-as poolname newvol 10G\n"
23672 "\n"
23673 msgstr ""
23674
23675 #. type: =item
23676 #: ../resize/virt-resize.pod:124
23677 msgid "5. Resize"
23678 msgstr ""
23679
23680 #. type: textblock
23681 #: ../resize/virt-resize.pod:126
23682 msgid ""
23683 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23684 "file) and the output disk.  The output disk is the one created in the "
23685 "previous step."
23686 msgstr ""
23687
23688 #. type: verbatim
23689 #: ../resize/virt-resize.pod:130
23690 #, no-wrap
23691 msgid ""
23692 " # virt-resize indisk outdisk\n"
23693 "\n"
23694 msgstr ""
23695
23696 #. type: textblock
23697 #: ../resize/virt-resize.pod:132
23698 msgid ""
23699 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23700 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23701 "larger, then an extra, empty partition is created at the end of the disk "
23702 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23703 "error."
23704 msgstr ""
23705
23706 #. type: textblock
23707 #: ../resize/virt-resize.pod:138
23708 msgid ""
23709 "More realistically you'd want to expand existing partitions in the disk "
23710 "image by passing extra options (for the full list see the L</OPTIONS> "
23711 "section below)."
23712 msgstr ""
23713
23714 #. type: textblock
23715 #: ../resize/virt-resize.pod:142
23716 msgid ""
23717 "L</--expand> is the most useful option.  It expands the named partition "
23718 "within the disk to fill any extra space:"
23719 msgstr ""
23720
23721 #. type: verbatim
23722 #: ../resize/virt-resize.pod:145
23723 #, no-wrap
23724 msgid ""
23725 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23726 "\n"
23727 msgstr ""
23728
23729 #. type: textblock
23730 #: ../resize/virt-resize.pod:147
23731 msgid ""
23732 "(In this case, an extra partition is I<not> created at the end of the disk, "
23733 "because there will be no unused space)."
23734 msgstr ""
23735
23736 #. type: textblock
23737 #: ../resize/virt-resize.pod:150
23738 msgid ""
23739 "L</--resize> is the other commonly used option.  The following would "
23740 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23741 "rest of the available space:"
23742 msgstr ""
23743
23744 #. type: verbatim
23745 #: ../resize/virt-resize.pod:154
23746 #, no-wrap
23747 msgid ""
23748 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23749 "     indisk outdisk\n"
23750 "\n"
23751 msgstr ""
23752
23753 #. type: textblock
23754 #: ../resize/virt-resize.pod:157
23755 msgid ""
23756 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23757 "if virt-resize knows how, it will resize the contents, the equivalent of "
23758 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23759 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23760 "filesystems, so you would have to online resize them after booting the "
23761 "guest."
23762 msgstr ""
23763
23764 #. type: textblock
23765 #: ../resize/virt-resize.pod:164
23766 msgid "Other options are covered below."
23767 msgstr ""
23768
23769 #. type: =item
23770 #: ../resize/virt-resize.pod:166
23771 msgid "6. Test"
23772 msgstr ""
23773
23774 #. type: textblock
23775 #: ../resize/virt-resize.pod:168
23776 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23777 msgstr ""
23778
23779 #. type: textblock
23780 #: ../resize/virt-resize.pod:170
23781 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23782 msgstr ""
23783
23784 #. type: verbatim
23785 #: ../resize/virt-resize.pod:172
23786 #, no-wrap
23787 msgid ""
23788 " # virsh edit guestname\n"
23789 "\n"
23790 msgstr ""
23791
23792 #. type: textblock
23793 #: ../resize/virt-resize.pod:174
23794 msgid ""
23795 "Change E<lt>source ...E<gt>, see "
23796 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23797 msgstr ""
23798
23799 #. type: textblock
23800 #: ../resize/virt-resize.pod:177
23801 msgid "Then start up the domain with the new, resized disk:"
23802 msgstr ""
23803
23804 #. type: verbatim
23805 #: ../resize/virt-resize.pod:179
23806 #, no-wrap
23807 msgid ""
23808 " # virsh start guestname\n"
23809 "\n"
23810 msgstr ""
23811
23812 #. type: textblock
23813 #: ../resize/virt-resize.pod:181
23814 msgid ""
23815 "and check that it still works.  See also the L</NOTES> section below for "
23816 "additional information."
23817 msgstr ""
23818
23819 #. type: =item
23820 #: ../resize/virt-resize.pod:184
23821 msgid "7. Resize LVs etc inside the guest"
23822 msgstr ""
23823
23824 #. type: textblock
23825 #: ../resize/virt-resize.pod:186
23826 msgid "(This can also be done offline using L<guestfish(1)>)"
23827 msgstr ""
23828
23829 #. type: textblock
23830 #: ../resize/virt-resize.pod:188
23831 msgid ""
23832 "Once the guest has booted you should see the new space available, at least "
23833 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23834 "may need to resize LVs inside PVs, and also resize filesystem types that "
23835 "virt-resize does not know how to expand."
23836 msgstr ""
23837
23838 #. type: =head2
23839 #: ../resize/virt-resize.pod:195
23840 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23841 msgstr ""
23842
23843 #. type: textblock
23844 #: ../resize/virt-resize.pod:197
23845 msgid ""
23846 "Shrinking is somewhat more complex than expanding, and only an overview is "
23847 "given here."
23848 msgstr ""
23849
23850 #. type: textblock
23851 #: ../resize/virt-resize.pod:200
23852 msgid ""
23853 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23854 "filesystems).  The user has to shrink content before passing the disk image "
23855 "to virt-resize, and virt-resize will check that the content has been shrunk "
23856 "properly."
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../resize/virt-resize.pod:205
23861 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23862 msgstr ""
23863
23864 #. type: textblock
23865 #: ../resize/virt-resize.pod:207
23866 msgid ""
23867 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23868 "steps 3 and 4 above to allocate a new disk image."
23869 msgstr ""
23870
23871 #. type: textblock
23872 #: ../resize/virt-resize.pod:210
23873 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23874 msgstr ""
23875
23876 #. type: =head2
23877 #: ../resize/virt-resize.pod:213
23878 msgid "IGNORING OR DELETING PARTITIONS"
23879 msgstr ""
23880
23881 #. type: textblock
23882 #: ../resize/virt-resize.pod:215
23883 msgid ""
23884 "virt-resize also gives a convenient way to ignore or delete partitions when "
23885 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23886 "up the copy where you don't care about the existing contents of a "
23887 "partition.  Deleting a partition removes it completely, but note that it "
23888 "also renumbers any partitions after the one which is deleted, which can "
23889 "leave some guests unbootable."
23890 msgstr ""
23891
23892 #. type: =head2
23893 #: ../resize/virt-resize.pod:222
23894 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23895 msgstr ""
23896
23897 #. type: textblock
23898 #: ../resize/virt-resize.pod:224
23899 msgid ""
23900 "If the input disk is in qcow2 format, then you may prefer that the output is "
23901 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23902 "the fly.  The output format is simply determined by the format of the empty "
23903 "output container that you provide.  Thus to create qcow2 output, use:"
23904 msgstr ""
23905
23906 #. type: verbatim
23907 #: ../resize/virt-resize.pod:230
23908 #, no-wrap
23909 msgid ""
23910 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23911 "\n"
23912 msgstr ""
23913
23914 #. type: textblock
23915 #: ../resize/virt-resize.pod:232
23916 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23917 msgstr ""
23918
23919 #. type: textblock
23920 #: ../resize/virt-resize.pod:234
23921 msgid "Similarly, to get non-sparse raw output use:"
23922 msgstr ""
23923
23924 #. type: verbatim
23925 #: ../resize/virt-resize.pod:236
23926 #, no-wrap
23927 msgid ""
23928 " fallocate -l size outdisk\n"
23929 "\n"
23930 msgstr ""
23931
23932 #. type: textblock
23933 #: ../resize/virt-resize.pod:238
23934 msgid ""
23935 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
23936 "if=/dev/zero of=outdisk bs=1M count=..>)"
23937 msgstr ""
23938
23939 #. type: =head2
23940 #: ../resize/virt-resize.pod:241
23941 msgid "LOGICAL PARTITIONS"
23942 msgstr ""
23943
23944 #. type: textblock
23945 #: ../resize/virt-resize.pod:243
23946 msgid ""
23947 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23948 "tables) cannot be resized."
23949 msgstr ""
23950
23951 #. type: textblock
23952 #: ../resize/virt-resize.pod:246
23953 msgid ""
23954 "To understand what is going on, firstly one of the four partitions "
23955 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
23956 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
23957 "partition type."
23958 msgstr ""
23959
23960 #. type: textblock
23961 #: ../resize/virt-resize.pod:251
23962 msgid "Logical partitions live inside the extended partition."
23963 msgstr ""
23964
23965 #. type: textblock
23966 #: ../resize/virt-resize.pod:253
23967 msgid ""
23968 "The extended partition can be expanded, but not shrunk (unless you force it, "
23969 "which is not advisable).  When the extended partition is copied across, all "
23970 "the logical partitions contained inside are copied over implicitly.  "
23971 "Virt-resize does not look inside the extended partition, so it copies the "
23972 "logical partitions blindly."
23973 msgstr ""
23974
23975 #. type: textblock
23976 #: ../resize/virt-resize.pod:259
23977 msgid ""
23978 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23979 "line.  Doing so will give an error."
23980 msgstr ""
23981
23982 #. type: textblock
23983 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23984 msgid "Display help."
23985 msgstr ""
23986
23987 #. type: =item
23988 #: ../resize/virt-resize.pod:270
23989 msgid "B<--align-first auto>"
23990 msgstr ""
23991
23992 #. type: =item
23993 #: ../resize/virt-resize.pod:272
23994 msgid "B<--align-first never>"
23995 msgstr ""
23996
23997 #. type: =item
23998 #: ../resize/virt-resize.pod:274
23999 msgid "B<--align-first always>"
24000 msgstr ""
24001
24002 #. type: textblock
24003 #: ../resize/virt-resize.pod:276
24004 msgid ""
24005 "Align the first partition for improved performance (see also the "
24006 "I<--alignment> option)."
24007 msgstr ""
24008
24009 #. type: textblock
24010 #: ../resize/virt-resize.pod:279
24011 msgid ""
24012 "The default is I<--align-first auto> which only aligns the first partition "
24013 "if it is safe to do so.  That is, only when we know how to fix the "
24014 "bootloader automatically, and at the moment that can only be done for "
24015 "Windows guests."
24016 msgstr ""
24017
24018 #. type: textblock
24019 #: ../resize/virt-resize.pod:284
24020 msgid ""
24021 "I<--align-first never> means we never move the first partition.  This is the "
24022 "safest option.  Try this if the guest does not boot after resizing."
24023 msgstr ""
24024
24025 #. type: textblock
24026 #: ../resize/virt-resize.pod:288
24027 msgid ""
24028 "I<--align-first always> means we always align the first partition (if it "
24029 "needs to be aligned).  For some guests this will break the bootloader, "
24030 "making the guest unbootable."
24031 msgstr ""
24032
24033 #. type: =item
24034 #: ../resize/virt-resize.pod:292
24035 msgid "B<--alignment N>"
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../resize/virt-resize.pod:294
24040 msgid ""
24041 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24042 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24043 msgstr ""
24044
24045 #. type: textblock
24046 #: ../resize/virt-resize.pod:298
24047 msgid ""
24048 "Assuming 512 byte sector size inside the guest, here are some suitable "
24049 "values for this:"
24050 msgstr ""
24051
24052 #. type: =item
24053 #: ../resize/virt-resize.pod:303
24054 msgid "I<--alignment 1> (512 bytes)"
24055 msgstr ""
24056
24057 #. type: textblock
24058 #: ../resize/virt-resize.pod:305
24059 msgid ""
24060 "The partitions would be packed together as closely as possible, but would be "
24061 "completely unaligned.  In some cases this can cause very poor performance.  "
24062 "See L<virt-alignment-scan(1)> for further details."
24063 msgstr ""
24064
24065 #. type: =item
24066 #: ../resize/virt-resize.pod:309
24067 msgid "I<--alignment 8> (4K)"
24068 msgstr ""
24069
24070 #. type: textblock
24071 #: ../resize/virt-resize.pod:311
24072 msgid ""
24073 "This would be the minimum acceptable alignment for reasonable performance on "
24074 "modern hosts."
24075 msgstr ""
24076
24077 #. type: =item
24078 #: ../resize/virt-resize.pod:314
24079 msgid "I<--alignment 128> (64K)"
24080 msgstr ""
24081
24082 #. type: textblock
24083 #: ../resize/virt-resize.pod:316
24084 msgid ""
24085 "This alignment provides good performance when the host is using high end "
24086 "network storage."
24087 msgstr ""
24088
24089 #. type: =item
24090 #: ../resize/virt-resize.pod:319
24091 msgid "I<--alignment 2048> (1M)"
24092 msgstr ""
24093
24094 #. type: textblock
24095 #: ../resize/virt-resize.pod:321
24096 msgid ""
24097 "This is the standard alignment used by all newly installed guests since "
24098 "around 2008."
24099 msgstr ""
24100
24101 #. type: =item
24102 #: ../resize/virt-resize.pod:326
24103 msgid "B<-d>"
24104 msgstr ""
24105
24106 #. type: =item
24107 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
24108 msgid "B<--debug>"
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24113 msgid "Enable debugging messages."
24114 msgstr ""
24115
24116 #. type: =item
24117 #: ../resize/virt-resize.pod:332
24118 msgid "B<--delete part>"
24119 msgstr ""
24120
24121 #. type: textblock
24122 #: ../resize/virt-resize.pod:334
24123 msgid ""
24124 "Delete the named partition.  It would be more accurate to describe this as "
24125 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24126 "the original disk image is left intact."
24127 msgstr ""
24128
24129 #. type: textblock
24130 #: ../resize/virt-resize.pod:338
24131 msgid ""
24132 "Note that when you delete a partition, then anything contained in the "
24133 "partition is also deleted.  Furthermore, this causes any partitions that "
24134 "come after to be I<renumbered>, which can easily make your guest unbootable."
24135 msgstr ""
24136
24137 #. type: textblock
24138 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404 ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:151
24139 msgid "You can give this option multiple times."
24140 msgstr ""
24141
24142 #. type: =item
24143 #: ../resize/virt-resize.pod:345
24144 msgid "B<--expand part>"
24145 msgstr ""
24146
24147 #. type: textblock
24148 #: ../resize/virt-resize.pod:347
24149 msgid ""
24150 "Expand the named partition so it uses up all extra space (space left over "
24151 "after any other resize changes that you request have been done)."
24152 msgstr ""
24153
24154 #. type: textblock
24155 #: ../resize/virt-resize.pod:350
24156 msgid ""
24157 "If virt-resize knows how, it will expand the direct content of the "
24158 "partition.  For example, if the partition is an LVM PV, it will expand the "
24159 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24160 "content it doesn't know about alone."
24161 msgstr ""
24162
24163 #. type: textblock
24164 #: ../resize/virt-resize.pod:355
24165 msgid "Currently virt-resize can resize:"
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../resize/virt-resize.pod:361
24170 msgid "ext2, ext3 and ext4 filesystems."
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../resize/virt-resize.pod:365
24175 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../resize/virt-resize.pod:367
24180 msgid ""
24181 "The filesystem must have been shut down consistently last time it was used.  "
24182 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24183 "consistency check, so at the first boot after resizing Windows will check "
24184 "the disk."
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../resize/virt-resize.pod:374
24189 msgid ""
24190 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24191 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24192 "resize LVs as desired after boot."
24193 msgstr ""
24194
24195 #. type: textblock
24196 #: ../resize/virt-resize.pod:380
24197 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24202 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24203 msgstr ""
24204
24205 #. type: =item
24206 #: ../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
24207 msgid "B<--format> raw"
24208 msgstr ""
24209
24210 #. type: textblock
24211 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:135
24212 msgid ""
24213 "Specify the format of the input disk image.  If this flag is not given then "
24214 "it is auto-detected from the image itself."
24215 msgstr ""
24216
24217 #. type: textblock
24218 #: ../resize/virt-resize.pod:394
24219 msgid ""
24220 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24221 "AND NON-SPARSE RAW FORMATS>."
24222 msgstr ""
24223
24224 #. type: =item
24225 #: ../resize/virt-resize.pod:397
24226 msgid "B<--ignore part>"
24227 msgstr ""
24228
24229 #. type: textblock
24230 #: ../resize/virt-resize.pod:399
24231 msgid ""
24232 "Ignore the named partition.  Effectively this means the partition is "
24233 "allocated on the destination disk, but the content is not copied across from "
24234 "the source disk.  The content of the partition will be blank (all zero "
24235 "bytes)."
24236 msgstr ""
24237
24238 #. type: =item
24239 #: ../resize/virt-resize.pod:406
24240 msgid "B<--LV-expand logvol>"
24241 msgstr ""
24242
24243 #. type: textblock
24244 #: ../resize/virt-resize.pod:408
24245 msgid ""
24246 "This takes the logical volume and, as a final step, expands it to fill all "
24247 "the space available in its volume group.  A typical usage, assuming a Linux "
24248 "guest with a single PV C</dev/sda2> and a root device called "
24249 "C</dev/vg_guest/lv_root> would be:"
24250 msgstr ""
24251
24252 #. type: verbatim
24253 #: ../resize/virt-resize.pod:413
24254 #, no-wrap
24255 msgid ""
24256 " virt-resize indisk outdisk \\\n"
24257 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24258 "\n"
24259 msgstr ""
24260
24261 #. type: textblock
24262 #: ../resize/virt-resize.pod:416
24263 msgid ""
24264 "This would first expand the partition (and PV), and then expand the root "
24265 "device to fill the extra space in the PV."
24266 msgstr ""
24267
24268 #. type: textblock
24269 #: ../resize/virt-resize.pod:419
24270 msgid ""
24271 "The contents of the LV are also resized if virt-resize knows how to do "
24272 "that.  You can stop virt-resize from trying to expand the content by using "
24273 "the option I<--no-expand-content>."
24274 msgstr ""
24275
24276 #. type: textblock
24277 #: ../resize/virt-resize.pod:423
24278 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24279 msgstr ""
24280
24281 #. type: textblock
24282 #: ../resize/virt-resize.pod:425
24283 msgid ""
24284 "You can give this option multiple times, I<but> it doesn't make sense to do "
24285 "this unless the logical volumes you specify are all in different volume "
24286 "groups."
24287 msgstr ""
24288
24289 #. type: =item
24290 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:153
24291 msgid "B<--machine-readable>"
24292 msgstr ""
24293
24294 #. type: textblock
24295 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:155
24296 msgid ""
24297 "This option is used to make the output more machine friendly when being "
24298 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24299 msgstr ""
24300
24301 #. type: =item
24302 #: ../resize/virt-resize.pod:437
24303 msgid "B<--dryrun>"
24304 msgstr ""
24305
24306 #. type: textblock
24307 #: ../resize/virt-resize.pod:439
24308 msgid "Print a summary of what would be done, but don't do anything."
24309 msgstr ""
24310
24311 #. type: =item
24312 #: ../resize/virt-resize.pod:441
24313 msgid "B<--no-copy-boot-loader>"
24314 msgstr ""
24315
24316 #. type: textblock
24317 #: ../resize/virt-resize.pod:443
24318 msgid ""
24319 "By default, virt-resize copies over some sectors at the start of the disk "
24320 "(up to the beginning of the first partition).  Commonly these sectors "
24321 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24322 "in order for the guest to boot correctly."
24323 msgstr ""
24324
24325 #. type: textblock
24326 #: ../resize/virt-resize.pod:448
24327 msgid ""
24328 "If you specify this flag, then this initial copy is not done.  You may need "
24329 "to reinstall the boot loader in this case."
24330 msgstr ""
24331
24332 #. type: =item
24333 #: ../resize/virt-resize.pod:451
24334 msgid "B<--no-extra-partition>"
24335 msgstr ""
24336
24337 #. type: textblock
24338 #: ../resize/virt-resize.pod:453
24339 msgid ""
24340 "By default, virt-resize creates an extra partition if there is any extra, "
24341 "unused space after all resizing has happened.  Use this option to prevent "
24342 "the extra partition from being created.  If you do this then the extra space "
24343 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24344 "tool in the guest."
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../resize/virt-resize.pod:459
24349 msgid ""
24350 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24351 "will be created."
24352 msgstr ""
24353
24354 #. type: =item
24355 #: ../resize/virt-resize.pod:462
24356 msgid "B<--no-expand-content>"
24357 msgstr ""
24358
24359 #. type: textblock
24360 #: ../resize/virt-resize.pod:464
24361 msgid ""
24362 "By default, virt-resize will try to expand the direct contents of "
24363 "partitions, if it knows how (see I<--expand> option above)."
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../resize/virt-resize.pod:467
24368 msgid ""
24369 "If you give the I<--no-expand-content> option then virt-resize will not "
24370 "attempt this."
24371 msgstr ""
24372
24373 #. type: =item
24374 #: ../resize/virt-resize.pod:470
24375 msgid "B<--ntfsresize-force>"
24376 msgstr ""
24377
24378 #. type: textblock
24379 #: ../resize/virt-resize.pod:472
24380 msgid ""
24381 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24382 "the NTFS disk is marked as needing a consistency check.  You have to use "
24383 "this option if you want to resize a Windows guest multiple times without "
24384 "booting into Windows between each resize."
24385 msgstr ""
24386
24387 #. type: =item
24388 #: ../resize/virt-resize.pod:478
24389 msgid "B<--output-format> raw"
24390 msgstr ""
24391
24392 #. type: textblock
24393 #: ../resize/virt-resize.pod:480
24394 msgid ""
24395 "Specify the format of the output disk image.  If this flag is not given then "
24396 "it is auto-detected from the image itself."
24397 msgstr ""
24398
24399 #. type: textblock
24400 #: ../resize/virt-resize.pod:486
24401 msgid ""
24402 "Note that this option I<does not create> the output format.  This option "
24403 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24404 "need to create the output disk with the right format.  See L</QCOW2 AND "
24405 "NON-SPARSE RAW FORMATS>."
24406 msgstr ""
24407
24408 #. type: textblock
24409 #: ../resize/virt-resize.pod:495
24410 msgid "Don't print the summary."
24411 msgstr ""
24412
24413 #. type: =item
24414 #: ../resize/virt-resize.pod:497
24415 msgid "B<--resize part=size>"
24416 msgstr ""
24417
24418 #. type: textblock
24419 #: ../resize/virt-resize.pod:499
24420 msgid ""
24421 "Resize the named partition (expanding or shrinking it) so that it has the "
24422 "given size."
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../resize/virt-resize.pod:502
24427 msgid ""
24428 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24429 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24430 "size; or as a relative number or percentage.  For example:"
24431 msgstr ""
24432
24433 #. type: verbatim
24434 #: ../resize/virt-resize.pod:508
24435 #, no-wrap
24436 msgid ""
24437 " --resize /dev/sda2=10G\n"
24438 "\n"
24439 msgstr ""
24440
24441 #. type: verbatim
24442 #: ../resize/virt-resize.pod:510
24443 #, no-wrap
24444 msgid ""
24445 " --resize /dev/sda4=90%\n"
24446 "\n"
24447 msgstr ""
24448
24449 #. type: verbatim
24450 #: ../resize/virt-resize.pod:512
24451 #, no-wrap
24452 msgid ""
24453 " --resize /dev/sda2=+1G\n"
24454 "\n"
24455 msgstr ""
24456
24457 #. type: verbatim
24458 #: ../resize/virt-resize.pod:514
24459 #, no-wrap
24460 msgid ""
24461 " --resize /dev/sda2=-200M\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: verbatim
24466 #: ../resize/virt-resize.pod:516
24467 #, no-wrap
24468 msgid ""
24469 " --resize /dev/sda1=+128K\n"
24470 "\n"
24471 msgstr ""
24472
24473 #. type: verbatim
24474 #: ../resize/virt-resize.pod:518
24475 #, no-wrap
24476 msgid ""
24477 " --resize /dev/sda1=+10%\n"
24478 "\n"
24479 msgstr ""
24480
24481 #. type: verbatim
24482 #: ../resize/virt-resize.pod:520
24483 #, no-wrap
24484 msgid ""
24485 " --resize /dev/sda1=-10%\n"
24486 "\n"
24487 msgstr ""
24488
24489 #. type: textblock
24490 #: ../resize/virt-resize.pod:522
24491 msgid ""
24492 "You can increase the size of any partition.  Virt-resize will expand the "
24493 "direct content of the partition if it knows how (see I<--expand> below)."
24494 msgstr ""
24495
24496 #. type: textblock
24497 #: ../resize/virt-resize.pod:526
24498 msgid ""
24499 "You can only I<decrease> the size of partitions that contain filesystems or "
24500 "PVs which have already been shrunk.  Virt-resize will check this has been "
24501 "done before proceeding, or else will print an error (see also "
24502 "I<--resize-force>)."
24503 msgstr ""
24504
24505 #. type: =item
24506 #: ../resize/virt-resize.pod:533
24507 msgid "B<--resize-force part=size>"
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../resize/virt-resize.pod:535
24512 msgid ""
24513 "This is the same as I<--resize> except that it will let you decrease the "
24514 "size of any partition.  Generally this means you will lose any data which "
24515 "was at the end of the partition you shrink, but you may not care about that "
24516 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24517 "as a swap partition)."
24518 msgstr ""
24519
24520 #. type: textblock
24521 #: ../resize/virt-resize.pod:541
24522 msgid "See also the I<--ignore> option."
24523 msgstr ""
24524
24525 #. type: =item
24526 #: ../resize/virt-resize.pod:543
24527 msgid "B<--shrink part>"
24528 msgstr ""
24529
24530 #. type: textblock
24531 #: ../resize/virt-resize.pod:545
24532 msgid ""
24533 "Shrink the named partition until the overall disk image fits in the "
24534 "destination.  The named partition B<must> contain a filesystem or PV which "
24535 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24536 "online tools).  Virt-resize will check this and give an error if it has not "
24537 "been done."
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../resize/virt-resize.pod:551
24542 msgid ""
24543 "The amount by which the overall disk must be shrunk (after carrying out all "
24544 "other operations requested by the user) is called the \"deficit\".  For "
24545 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24546 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24547 "would give an error unless the user specified a partition to shrink and that "
24548 "partition had more than a gigabyte of free space."
24549 msgstr ""
24550
24551 #. type: =head1
24552 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:195
24553 msgid "MACHINE READABLE OUTPUT"
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../resize/virt-resize.pod:571
24558 msgid ""
24559 "The I<--machine-readable> option can be used to make the output more machine "
24560 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24561 "etc."
24562 msgstr ""
24563
24564 #. type: textblock
24565 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
24566 msgid "There are two ways to use this option."
24567 msgstr ""
24568
24569 #. type: textblock
24570 #: ../resize/virt-resize.pod:577
24571 msgid ""
24572 "Firstly use the option on its own to query the capabilities of the "
24573 "virt-resize binary.  Typical output looks like this:"
24574 msgstr ""
24575
24576 #. type: verbatim
24577 #: ../resize/virt-resize.pod:580
24578 #, no-wrap
24579 msgid ""
24580 " $ virt-resize --machine-readable\n"
24581 " virt-resize\n"
24582 " ntfsresize-force\n"
24583 " 32bitok\n"
24584 " ntfs\n"
24585 " btrfs\n"
24586 "\n"
24587 msgstr ""
24588
24589 #. type: textblock
24590 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:211
24591 msgid ""
24592 "A list of features is printed, one per line, and the program exits with "
24593 "status 0."
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:214
24598 msgid ""
24599 "Secondly use the option in conjunction with other options to make the "
24600 "regular program output more machine friendly."
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
24605 msgid "At the moment this means:"
24606 msgstr ""
24607
24608 #. type: textblock
24609 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
24610 msgid ""
24611 "Progress bar messages can be parsed from stdout by looking for this regular "
24612 "expression:"
24613 msgstr ""
24614
24615 #. type: verbatim
24616 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:226
24617 #, no-wrap
24618 msgid ""
24619 " ^[0-9]+/[0-9]+$\n"
24620 "\n"
24621 msgstr ""
24622
24623 #. type: textblock
24624 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:230
24625 msgid ""
24626 "The calling program should treat messages sent to stdout (except for "
24627 "progress bar messages) as status messages.  They can be logged and/or "
24628 "displayed to the user."
24629 msgstr ""
24630
24631 #. type: textblock
24632 #: ../resize/virt-resize.pod:612
24633 msgid ""
24634 "The calling program should treat messages sent to stderr as error messages.  "
24635 "In addition, virt-resize exits with a non-zero status code if there was a "
24636 "fatal error."
24637 msgstr ""
24638
24639 #. type: textblock
24640 #: ../resize/virt-resize.pod:618
24641 msgid ""
24642 "Versions of the program prior to 1.13.9 did not support the "
24643 "I<--machine-readable> option and will return an error."
24644 msgstr ""
24645
24646 #. type: =head2
24647 #: ../resize/virt-resize.pod:623
24648 msgid "\"Partition 1 does not end on cylinder boundary.\""
24649 msgstr ""
24650
24651 #. type: textblock
24652 #: ../resize/virt-resize.pod:625
24653 msgid ""
24654 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24655 "I<--alignment> parameter).  Usually this means the partitions will not be "
24656 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24657 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24658 "drives.  Alignment of partitions to cylinders is not required by any modern "
24659 "operating system."
24660 msgstr ""
24661
24662 #. type: =head2
24663 #: ../resize/virt-resize.pod:632
24664 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24665 msgstr ""
24666
24667 #. type: textblock
24668 #: ../resize/virt-resize.pod:634
24669 msgid ""
24670 "In Windows Vista and later versions, Microsoft switched to using a separate "
24671 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24672 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24673 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24674 "the second partition (ie. C: drive)  should work."
24675 msgstr ""
24676
24677 #. type: textblock
24678 #: ../resize/virt-resize.pod:641
24679 msgid ""
24680 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24681 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24682 "it find errors) is nothing to worry about."
24683 msgstr ""
24684
24685 #. type: =head2
24686 #: ../resize/virt-resize.pod:645
24687 msgid "GUEST BOOT STUCK AT \"GRUB\""
24688 msgstr ""
24689
24690 #. type: textblock
24691 #: ../resize/virt-resize.pod:647
24692 msgid ""
24693 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24694 "printing C<GRUB> on the console, try reinstalling grub."
24695 msgstr ""
24696
24697 #. type: verbatim
24698 #: ../resize/virt-resize.pod:650
24699 #, no-wrap
24700 msgid ""
24701 " guestfish -i -a newdisk\n"
24702 " ><fs> cat /boot/grub/device.map\n"
24703 " # check the contents of this file are sensible or\n"
24704 " # edit the file if necessary\n"
24705 " ><fs> grub-install / /dev/vda\n"
24706 " ><fs> exit\n"
24707 "\n"
24708 msgstr ""
24709
24710 #. type: textblock
24711 #: ../resize/virt-resize.pod:657
24712 msgid ""
24713 "For more flexible guest reconfiguration, including if you need to specify "
24714 "other parameters to grub-install, use L<virt-rescue(1)>."
24715 msgstr ""
24716
24717 #. type: =head1
24718 #: ../resize/virt-resize.pod:660
24719 msgid "ALTERNATIVE TOOLS"
24720 msgstr ""
24721
24722 #. type: textblock
24723 #: ../resize/virt-resize.pod:662
24724 msgid ""
24725 "There are several proprietary tools for resizing partitions.  We won't "
24726 "mention any here."
24727 msgstr ""
24728
24729 #. type: textblock
24730 #: ../resize/virt-resize.pod:665
24731 msgid ""
24732 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24733 "operations on disk images.  They can resize and move partitions, but I don't "
24734 "think they can do anything with the contents, and they certainly don't "
24735 "understand LVM."
24736 msgstr ""
24737
24738 #. type: textblock
24739 #: ../resize/virt-resize.pod:670
24740 msgid ""
24741 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24742 "but at a much lower level.  You will probably end up hand-calculating sector "
24743 "offsets, which is something that virt-resize was designed to avoid.  If you "
24744 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24745 "I<--debug> flag."
24746 msgstr ""
24747
24748 #. type: textblock
24749 #: ../resize/virt-resize.pod:690
24750 msgid ""
24751 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24752 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24753 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24754 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
24755 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24756 msgstr ""
24757
24758 #. type: textblock
24759 #: ../ruby/examples/guestfs-ruby.pod:5
24760 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24761 msgstr ""
24762
24763 #. type: verbatim
24764 #: ../ruby/examples/guestfs-ruby.pod:9
24765 #, no-wrap
24766 msgid ""
24767 " require 'guestfs'\n"
24768 " g = Guestfs::Guestfs.new()\n"
24769 " g.add_drive_opts(\"disk.img\",\n"
24770 "                  :readonly => 1, :format => \"raw\")\n"
24771 " g.launch()\n"
24772 "\n"
24773 msgstr ""
24774
24775 #. type: textblock
24776 #: ../ruby/examples/guestfs-ruby.pod:17
24777 msgid ""
24778 "This manual page documents how to call libguestfs from the Ruby programming "
24779 "language.  This page just documents the differences from the C API and gives "
24780 "some examples.  If you are not familiar with using libguestfs, you also need "
24781 "to read L<guestfs(3)>."
24782 msgstr ""
24783
24784 #. type: textblock
24785 #: ../ruby/examples/guestfs-ruby.pod:24
24786 msgid ""
24787 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24788 "This has a single parameter which is the error message (a string)."
24789 msgstr ""
24790
24791 #. type: textblock
24792 #: ../ruby/examples/guestfs-ruby.pod:38
24793 msgid ""
24794 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
24795 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
24796 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24797 msgstr ""
24798
24799 #. type: textblock
24800 #: ../sparsify/virt-sparsify.pod:5
24801 msgid "virt-sparsify - Make a virtual machine disk sparse"
24802 msgstr ""
24803
24804 #. type: verbatim
24805 #: ../sparsify/virt-sparsify.pod:9
24806 #, no-wrap
24807 msgid ""
24808 " virt-sparsify [--options] indisk outdisk\n"
24809 "\n"
24810 msgstr ""
24811
24812 #. type: textblock
24813 #: ../sparsify/virt-sparsify.pod:13
24814 msgid ""
24815 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24816 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24817 "the disk image can be converted back to free space on the host."
24818 msgstr ""
24819
24820 #. type: textblock
24821 #: ../sparsify/virt-sparsify.pod:18
24822 msgid ""
24823 "Virt-sparsify can locate and sparsify free space in most filesystems "
24824 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24825 msgstr ""
24826
24827 #. type: textblock
24828 #: ../sparsify/virt-sparsify.pod:21
24829 msgid ""
24830 "Virt-sparsify can also convert between some disk formats, for example "
24831 "converting a raw disk image to a thin-provisioned qcow2 image."
24832 msgstr ""
24833
24834 #. type: textblock
24835 #: ../sparsify/virt-sparsify.pod:24
24836 msgid ""
24837 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24838 "machines.  If a virtual machine has more than one attached disk, you must "
24839 "sparsify each one separately."
24840 msgstr ""
24841
24842 #. type: =head2
24843 #: ../sparsify/virt-sparsify.pod:28
24844 msgid "IMPORTANT LIMITATIONS"
24845 msgstr ""
24846
24847 #. type: textblock
24848 #: ../sparsify/virt-sparsify.pod:34
24849 msgid ""
24850 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24851 "image to a destination image, leaving the source unchanged.  I<Check that "
24852 "the sparsification was successful before deleting the source image>."
24853 msgstr ""
24854
24855 #. type: textblock
24856 #: ../sparsify/virt-sparsify.pod:41
24857 msgid "The virtual machine I<must be shut down> before using this tool."
24858 msgstr ""
24859
24860 #. type: textblock
24861 #: ../sparsify/virt-sparsify.pod:45
24862 msgid ""
24863 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24864 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24865 "usually much less space is required."
24866 msgstr ""
24867
24868 #. type: textblock
24869 #: ../sparsify/virt-sparsify.pod:51
24870 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24871 msgstr ""
24872
24873 #. type: textblock
24874 #: ../sparsify/virt-sparsify.pod:56
24875 msgid "Virt-sparsify cannot handle encrypted disks."
24876 msgstr ""
24877
24878 #. type: textblock
24879 #: ../sparsify/virt-sparsify.pod:60
24880 msgid ""
24881 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24882 "this space is often used for critical items like bootloaders so it's not "
24883 "really unused."
24884 msgstr ""
24885
24886 #. type: textblock
24887 #: ../sparsify/virt-sparsify.pod:66
24888 msgid ""
24889 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24890 "to do this unless we can be sure there is no hibernation data, so at the "
24891 "moment swap partitions are ignored."
24892 msgstr ""
24893
24894 #. type: textblock
24895 #: ../sparsify/virt-sparsify.pod:72
24896 msgid ""
24897 "You may also want to read the manual pages for the associated tools "
24898 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../sparsify/virt-sparsify.pod:77
24903 msgid "Typical usage is:"
24904 msgstr ""
24905
24906 #. type: verbatim
24907 #: ../sparsify/virt-sparsify.pod:79
24908 #, no-wrap
24909 msgid ""
24910 " virt-sparsify indisk outdisk\n"
24911 "\n"
24912 msgstr ""
24913
24914 #. type: textblock
24915 #: ../sparsify/virt-sparsify.pod:81
24916 msgid ""
24917 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24918 "is created, or overwritten if it already exists.  The format of the input "
24919 "disk is detected (eg. qcow2) and the same format is used for the output "
24920 "disk."
24921 msgstr ""
24922
24923 #. type: textblock
24924 #: ../sparsify/virt-sparsify.pod:86
24925 msgid "To convert between formats, use the I<--convert> option:"
24926 msgstr ""
24927
24928 #. type: verbatim
24929 #: ../sparsify/virt-sparsify.pod:88
24930 #, no-wrap
24931 msgid ""
24932 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24933 "\n"
24934 msgstr ""
24935
24936 #. type: textblock
24937 #: ../sparsify/virt-sparsify.pod:90
24938 msgid ""
24939 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24940 "can find within the source disk image.  You can get it to ignore (don't zero "
24941 "free space on) certain filesystems by doing:"
24942 msgstr ""
24943
24944 #. type: verbatim
24945 #: ../sparsify/virt-sparsify.pod:94
24946 #, no-wrap
24947 msgid ""
24948 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24949 "\n"
24950 msgstr ""
24951
24952 #. type: textblock
24953 #: ../sparsify/virt-sparsify.pod:96
24954 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24955 msgstr ""
24956
24957 #. type: =item
24958 #: ../sparsify/virt-sparsify.pod:107
24959 msgid "B<--compress>"
24960 msgstr ""
24961
24962 #. type: textblock
24963 #: ../sparsify/virt-sparsify.pod:109
24964 msgid ""
24965 "Compress the output file.  This I<only> works if the output format is "
24966 "C<qcow2>."
24967 msgstr ""
24968
24969 #. type: =item
24970 #: ../sparsify/virt-sparsify.pod:112
24971 msgid "B<--convert> raw"
24972 msgstr ""
24973
24974 #. type: =item
24975 #: ../sparsify/virt-sparsify.pod:114
24976 msgid "B<--convert> qcow2"
24977 msgstr ""
24978
24979 #. type: =item
24980 #: ../sparsify/virt-sparsify.pod:116
24981 msgid "B<--convert> [other formats]"
24982 msgstr ""
24983
24984 #. type: textblock
24985 #: ../sparsify/virt-sparsify.pod:118
24986 msgid ""
24987 "Use C<output-format> as the format for the destination image.  If this is "
24988 "not specified, then the input format is used."
24989 msgstr ""
24990
24991 #. type: textblock
24992 #: ../sparsify/virt-sparsify.pod:121
24993 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
24994 msgstr ""
24995
24996 #. type: textblock
24997 #: ../sparsify/virt-sparsify.pod:123
24998 msgid ""
24999 "You can also use any format supported by the L<qemu-img(1)> program, "
25000 "eg. C<vmdk>, but support for other formats is reliant on qemu."
25001 msgstr ""
25002
25003 #. type: textblock
25004 #: ../sparsify/virt-sparsify.pod:126
25005 msgid ""
25006 "Specifying the I<--convert> option is usually a good idea, because then "
25007 "virt-sparsify doesn't need to try to guess the input format."
25008 msgstr ""
25009
25010 #. type: textblock
25011 #: ../sparsify/virt-sparsify.pod:129
25012 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
25013 msgstr ""
25014
25015 #. type: =item
25016 #: ../sparsify/virt-sparsify.pod:133
25017 msgid "B<--format> qcow2"
25018 msgstr ""
25019
25020 #. type: =item
25021 #: ../sparsify/virt-sparsify.pod:141
25022 msgid "B<--ignore> filesystem"
25023 msgstr ""
25024
25025 #. type: =item
25026 #: ../sparsify/virt-sparsify.pod:143
25027 msgid "B<--ignore> volgroup"
25028 msgstr ""
25029
25030 #. type: textblock
25031 #: ../sparsify/virt-sparsify.pod:145
25032 msgid ""
25033 "Ignore the named filesystem.  Free space on the filesystem will not be "
25034 "zeroed, but existing blocks of zeroes will still be sparsified."
25035 msgstr ""
25036
25037 #. type: textblock
25038 #: ../sparsify/virt-sparsify.pod:148
25039 msgid ""
25040 "In the second form, this ignores the named volume group.  Use the volume "
25041 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25042 msgstr ""
25043
25044 #. type: =item
25045 #: ../sparsify/virt-sparsify.pod:159
25046 msgid "B<-o> option[,option,...]"
25047 msgstr ""
25048
25049 #. type: textblock
25050 #: ../sparsify/virt-sparsify.pod:161
25051 msgid ""
25052 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
25053 "format.  Options available depend on the output format (see I<--convert>) "
25054 "and the installed version of the qemu-img program."
25055 msgstr ""
25056
25057 #. type: textblock
25058 #: ../sparsify/virt-sparsify.pod:165
25059 msgid ""
25060 "You should use I<-o> at most once.  To pass multiple options, separate them "
25061 "with commas, eg:"
25062 msgstr ""
25063
25064 #. type: verbatim
25065 #: ../sparsify/virt-sparsify.pod:168
25066 #, no-wrap
25067 msgid ""
25068 " virt-sparsify --convert qcow2 \\\n"
25069 "   -o cluster_size=512,preallocation=metadata ...\n"
25070 "\n"
25071 msgstr ""
25072
25073 #. type: textblock
25074 #: ../sparsify/virt-sparsify.pod:175
25075 msgid "This disables progress bars and other unnecessary output."
25076 msgstr ""
25077
25078 #. type: textblock
25079 #: ../sparsify/virt-sparsify.pod:197
25080 msgid ""
25081 "The I<--machine-readable> option can be used to make the output more machine "
25082 "friendly, which is useful when calling virt-sparsify from other programs, "
25083 "GUIs etc."
25084 msgstr ""
25085
25086 #. type: textblock
25087 #: ../sparsify/virt-sparsify.pod:203
25088 msgid ""
25089 "Firstly use the option on its own to query the capabilities of the "
25090 "virt-sparsify binary.  Typical output looks like this:"
25091 msgstr ""
25092
25093 #. type: verbatim
25094 #: ../sparsify/virt-sparsify.pod:206
25095 #, no-wrap
25096 msgid ""
25097 " $ virt-sparsify --machine-readable\n"
25098 " virt-sparsify\n"
25099 " ntfs\n"
25100 " btrfs\n"
25101 "\n"
25102 msgstr ""
25103
25104 #. type: textblock
25105 #: ../sparsify/virt-sparsify.pod:236
25106 msgid ""
25107 "The calling program should treat messages sent to stderr as error messages.  "
25108 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25109 "fatal error."
25110 msgstr ""
25111
25112 #. type: textblock
25113 #: ../sparsify/virt-sparsify.pod:242
25114 msgid ""
25115 "All versions of virt-sparsify have supported the I<--machine-readable> "
25116 "option."
25117 msgstr ""
25118
25119 #. type: textblock
25120 #: ../sparsify/virt-sparsify.pod:256
25121 msgid ""
25122 "Location of the temporary directory used for the potentially large temporary "
25123 "overlay file."
25124 msgstr ""
25125
25126 #. type: textblock
25127 #: ../sparsify/virt-sparsify.pod:259
25128 msgid ""
25129 "You should ensure there is enough free space in the worst case for a full "
25130 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25131 "to another directory that has enough space."
25132 msgstr ""
25133
25134 #. type: textblock
25135 #: ../sparsify/virt-sparsify.pod:263
25136 msgid "This defaults to C</tmp>."
25137 msgstr ""
25138
25139 #. type: textblock
25140 #: ../sparsify/virt-sparsify.pod:267
25141 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25142 msgstr ""
25143
25144 #. type: textblock
25145 #: ../sparsify/virt-sparsify.pod:271
25146 msgid ""
25147 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25148 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
25149 "L<qemu-img(1)>, L<http://libguestfs.org/>."
25150 msgstr ""
25151
25152 #. type: =head2
25153 #: ../src/guestfs-actions.pod:1
25154 msgid "guestfs_add_cdrom"
25155 msgstr ""
25156
25157 #. type: verbatim
25158 #: ../src/guestfs-actions.pod:3
25159 #, no-wrap
25160 msgid ""
25161 " int\n"
25162 " guestfs_add_cdrom (guestfs_h *g,\n"
25163 "                    const char *filename);\n"
25164 "\n"
25165 msgstr ""
25166
25167 #. type: textblock
25168 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
25169 msgid ""
25170 "I<This function is deprecated.> In new code, use the "
25171 "L</guestfs_add_drive_opts> call instead."
25172 msgstr ""
25173
25174 #. type: textblock
25175 #: ../src/guestfs-actions.pod:24
25176 msgid ""
25177 "This call checks for the existence of C<filename>.  This stops you from "
25178 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25179 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25180 "instead."
25181 msgstr ""
25182
25183 #. type: textblock
25184 #: ../src/guestfs-actions.pod:31
25185 msgid ""
25186 "If you just want to add an ISO file (often you use this as an efficient way "
25187 "to transfer large files into the guest), then you should probably use "
25188 "C<guestfs_add_drive_ro> instead."
25189 msgstr ""
25190
25191 #. type: textblock
25192 #: ../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:4088 ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4330 ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4357 ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4494 ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4551 ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4679 ../src/guestfs-actions.pod:4691 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:4943 ../src/guestfs-actions.pod:5027 ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5057 ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5121 ../src/guestfs-actions.pod:5139 ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5187 ../src/guestfs-actions.pod:5201 ../src/guestfs-actions.pod:5218 ../src/guestfs-actions.pod:5233 ../src/guestfs-actions.pod:5260 ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5396 ../src/guestfs-actions.pod:5427 ../src/guestfs-actions.pod:5446 ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5477 ../src/guestfs-actions.pod:5494 ../src/guestfs-actions.pod:5507 ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5569 ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5634 ../src/guestfs-actions.pod:5654 ../src/guestfs-actions.pod:5668 ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5787 ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5922 ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6134 ../src/guestfs-actions.pod:6156 ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6226 ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6309 ../src/guestfs-actions.pod:6322 ../src/guestfs-actions.pod:6336 ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6644 ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6689 ../src/guestfs-actions.pod:6703 ../src/guestfs-actions.pod:6715 ../src/guestfs-actions.pod:6729 ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6763 ../src/guestfs-actions.pod:6782 ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6831 ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6890 ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6949 ../src/guestfs-actions.pod:6966 ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7056 ../src/guestfs-actions.pod:7072 ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7115 ../src/guestfs-actions.pod:7130 ../src/guestfs-actions.pod:7149 ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7250 ../src/guestfs-actions.pod:7362 ../src/guestfs-actions.pod:7483 ../src/guestfs-actions.pod:7495 ../src/guestfs-actions.pod:7508 ../src/guestfs-actions.pod:7521 ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7556 ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7582 ../src/guestfs-actions.pod:7597 ../src/guestfs-actions.pod:7656 ../src/guestfs-actions.pod:7673 ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7705 ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7913 ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:7968 ../src/guestfs-actions.pod:7981 ../src/guestfs-actions.pod:7999 ../src/guestfs-actions.pod:8033 ../src/guestfs-actions.pod:8069 ../src/guestfs-actions.pod:8185 ../src/guestfs-actions.pod:8200 ../src/guestfs-actions.pod:8214 ../src/guestfs-actions.pod:8269 ../src/guestfs-actions.pod:8282 ../src/guestfs-actions.pod:8327 ../src/guestfs-actions.pod:8367 ../src/guestfs-actions.pod:8423 ../src/guestfs-actions.pod:8443 ../src/guestfs-actions.pod:8476 ../src/guestfs-actions.pod:8540 ../src/guestfs-actions.pod:8563 ../src/guestfs-actions.pod:8589
25193 msgid "This function returns 0 on success or -1 on error."
25194 msgstr ""
25195
25196 #. type: textblock
25197 #: ../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:4090 ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:5571 ../src/guestfs-actions.pod:6851 ../src/guestfs-actions.pod:6968 ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7599 ../src/guestfs-actions.pod:7724 ../src/guestfs-actions.pod:8369
25198 msgid "(Added in 0.3)"
25199 msgstr ""
25200
25201 #. type: =head2
25202 #: ../src/guestfs-actions.pod:41
25203 msgid "guestfs_add_domain"
25204 msgstr ""
25205
25206 #. type: verbatim
25207 #: ../src/guestfs-actions.pod:43
25208 #, no-wrap
25209 msgid ""
25210 " int\n"
25211 " guestfs_add_domain (guestfs_h *g,\n"
25212 "                     const char *dom,\n"
25213 "                     ...);\n"
25214 "\n"
25215 msgstr ""
25216
25217 #. type: textblock
25218 #: ../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:4878 ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:7766
25219 msgid ""
25220 "You may supply a list of optional arguments to this call.  Use zero or more "
25221 "of the following pairs of parameters, and terminate the list with C<-1> on "
25222 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25223 msgstr ""
25224
25225 #. type: verbatim
25226 #: ../src/guestfs-actions.pod:53
25227 #, no-wrap
25228 msgid ""
25229 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25230 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25231 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25232 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25233 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25234 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25235 "\n"
25236 msgstr ""
25237
25238 #. type: textblock
25239 #: ../src/guestfs-actions.pod:60
25240 msgid ""
25241 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25242 "It works by connecting to libvirt, requesting the domain and domain XML from "
25243 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25244 "one."
25245 msgstr ""
25246
25247 #. type: textblock
25248 #: ../src/guestfs-actions.pod:141
25249 msgid ""
25250 "The other optional parameters are passed directly through to "
25251 "C<guestfs_add_drive_opts>."
25252 msgstr ""
25253
25254 #. type: textblock
25255 #: ../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:5757 ../src/guestfs-actions.pod:5974 ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6406 ../src/guestfs-actions.pod:6432 ../src/guestfs-actions.pod:7954 ../src/guestfs-actions.pod:8380 ../src/guestfs-actions.pod:8393 ../src/guestfs-actions.pod:8406
25256 msgid "On error this function returns -1."
25257 msgstr ""
25258
25259 #. type: textblock
25260 #: ../src/guestfs-actions.pod:146
25261 msgid "(Added in 1.7.4)"
25262 msgstr ""
25263
25264 #. type: =head2
25265 #: ../src/guestfs-actions.pod:148
25266 msgid "guestfs_add_domain_va"
25267 msgstr ""
25268
25269 #. type: verbatim
25270 #: ../src/guestfs-actions.pod:150
25271 #, no-wrap
25272 msgid ""
25273 " int\n"
25274 " guestfs_add_domain_va (guestfs_h *g,\n"
25275 "                        const char *dom,\n"
25276 "                        va_list args);\n"
25277 "\n"
25278 msgstr ""
25279
25280 #. type: textblock
25281 #: ../src/guestfs-actions.pod:155
25282 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25283 msgstr ""
25284
25285 #. type: textblock
25286 #: ../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:4955 ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:5337 ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:5609 ../src/guestfs-actions.pod:5621 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5858 ../src/guestfs-actions.pod:7868 ../src/guestfs-actions.pod:7879
25287 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25288 msgstr ""
25289
25290 #. type: =head2
25291 #: ../src/guestfs-actions.pod:159
25292 msgid "guestfs_add_domain_argv"
25293 msgstr ""
25294
25295 #. type: verbatim
25296 #: ../src/guestfs-actions.pod:161
25297 #, no-wrap
25298 msgid ""
25299 " int\n"
25300 " guestfs_add_domain_argv (guestfs_h *g,\n"
25301 "                          const char *dom,\n"
25302 "                          const struct guestfs_add_domain_argv *optargs);\n"
25303 "\n"
25304 msgstr ""
25305
25306 #. type: textblock
25307 #: ../src/guestfs-actions.pod:166
25308 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25309 msgstr ""
25310
25311 #. type: =head2
25312 #: ../src/guestfs-actions.pod:170
25313 msgid "guestfs_add_drive"
25314 msgstr ""
25315
25316 #. type: verbatim
25317 #: ../src/guestfs-actions.pod:172
25318 #, no-wrap
25319 msgid ""
25320 " int\n"
25321 " guestfs_add_drive (guestfs_h *g,\n"
25322 "                    const char *filename);\n"
25323 "\n"
25324 msgstr ""
25325
25326 #. type: textblock
25327 #: ../src/guestfs-actions.pod:176
25328 msgid ""
25329 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25330 "optional parameters, so the disk is added writable, with the format being "
25331 "detected automatically."
25332 msgstr ""
25333
25334 #. type: textblock
25335 #: ../src/guestfs-actions.pod:180
25336 msgid ""
25337 "Automatic detection of the format opens you up to a potential security hole "
25338 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25339 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25340 "you should think about replacing calls to this function with calls to "
25341 "C<guestfs_add_drive_opts>, and specifying the format."
25342 msgstr ""
25343
25344 #. type: =head2
25345 #: ../src/guestfs-actions.pod:191
25346 msgid "guestfs_add_drive_opts"
25347 msgstr ""
25348
25349 #. type: verbatim
25350 #: ../src/guestfs-actions.pod:193
25351 #, no-wrap
25352 msgid ""
25353 " int\n"
25354 " guestfs_add_drive_opts (guestfs_h *g,\n"
25355 "                         const char *filename,\n"
25356 "                         ...);\n"
25357 "\n"
25358 msgstr ""
25359
25360 #. type: verbatim
25361 #: ../src/guestfs-actions.pod:203
25362 #, no-wrap
25363 msgid ""
25364 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25365 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25366 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25367 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25368 "\n"
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../src/guestfs-actions.pod:233
25373 msgid ""
25374 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25375 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25376 "Possible formats include C<raw> and C<qcow2>."
25377 msgstr ""
25378
25379 #. type: textblock
25380 #: ../src/guestfs-actions.pod:244
25381 msgid ""
25382 "This rarely-used option lets you emulate the behaviour of the deprecated "
25383 "C<guestfs_add_drive_with_if> call (q.v.)"
25384 msgstr ""
25385
25386 #. type: textblock
25387 #: ../src/guestfs-actions.pod:256
25388 msgid "(Added in 1.5.23)"
25389 msgstr ""
25390
25391 #. type: =head2
25392 #: ../src/guestfs-actions.pod:258
25393 msgid "guestfs_add_drive_opts_va"
25394 msgstr ""
25395
25396 #. type: verbatim
25397 #: ../src/guestfs-actions.pod:260
25398 #, no-wrap
25399 msgid ""
25400 " int\n"
25401 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25402 "                            const char *filename,\n"
25403 "                            va_list args);\n"
25404 "\n"
25405 msgstr ""
25406
25407 #. type: textblock
25408 #: ../src/guestfs-actions.pod:265
25409 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25410 msgstr ""
25411
25412 #. type: =head2
25413 #: ../src/guestfs-actions.pod:269
25414 msgid "guestfs_add_drive_opts_argv"
25415 msgstr ""
25416
25417 #. type: verbatim
25418 #: ../src/guestfs-actions.pod:271
25419 #, no-wrap
25420 msgid ""
25421 " int\n"
25422 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25423 "                              const char *filename,\n"
25424 "                              const struct guestfs_add_drive_opts_argv "
25425 "*optargs);\n"
25426 "\n"
25427 msgstr ""
25428
25429 #. type: textblock
25430 #: ../src/guestfs-actions.pod:276
25431 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25432 msgstr ""
25433
25434 #. type: =head2
25435 #: ../src/guestfs-actions.pod:280
25436 msgid "guestfs_add_drive_ro"
25437 msgstr ""
25438
25439 #. type: verbatim
25440 #: ../src/guestfs-actions.pod:282
25441 #, no-wrap
25442 msgid ""
25443 " int\n"
25444 " guestfs_add_drive_ro (guestfs_h *g,\n"
25445 "                       const char *filename);\n"
25446 "\n"
25447 msgstr ""
25448
25449 #. type: textblock
25450 #: ../src/guestfs-actions.pod:286
25451 msgid ""
25452 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25453 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25454 "disk is added read-only, with the format being detected automatically."
25455 msgstr ""
25456
25457 #. type: textblock
25458 #: ../src/guestfs-actions.pod:293
25459 msgid "(Added in 1.0.38)"
25460 msgstr ""
25461
25462 #. type: =head2
25463 #: ../src/guestfs-actions.pod:295
25464 msgid "guestfs_add_drive_ro_with_if"
25465 msgstr ""
25466
25467 #. type: verbatim
25468 #: ../src/guestfs-actions.pod:297
25469 #, no-wrap
25470 msgid ""
25471 " int\n"
25472 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25473 "                               const char *filename,\n"
25474 "                               const char *iface);\n"
25475 "\n"
25476 msgstr ""
25477
25478 #. type: textblock
25479 #: ../src/guestfs-actions.pod:309
25480 msgid ""
25481 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25482 "QEMU interface emulation to use at run time."
25483 msgstr ""
25484
25485 #. type: textblock
25486 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2881
25487 msgid "(Added in 1.0.84)"
25488 msgstr ""
25489
25490 #. type: =head2
25491 #: ../src/guestfs-actions.pod:316
25492 msgid "guestfs_add_drive_with_if"
25493 msgstr ""
25494
25495 #. type: verbatim
25496 #: ../src/guestfs-actions.pod:318
25497 #, no-wrap
25498 msgid ""
25499 " int\n"
25500 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25501 "                            const char *filename,\n"
25502 "                            const char *iface);\n"
25503 "\n"
25504 msgstr ""
25505
25506 #. type: textblock
25507 #: ../src/guestfs-actions.pod:330
25508 msgid ""
25509 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25510 "QEMU interface emulation to use at run time."
25511 msgstr ""
25512
25513 #. type: =head2
25514 #: ../src/guestfs-actions.pod:337
25515 msgid "guestfs_aug_clear"
25516 msgstr ""
25517
25518 #. type: verbatim
25519 #: ../src/guestfs-actions.pod:339
25520 #, no-wrap
25521 msgid ""
25522 " int\n"
25523 " guestfs_aug_clear (guestfs_h *g,\n"
25524 "                    const char *augpath);\n"
25525 "\n"
25526 msgstr ""
25527
25528 #. type: textblock
25529 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25530 msgid "(Added in 1.3.4)"
25531 msgstr ""
25532
25533 #. type: =head2
25534 #: ../src/guestfs-actions.pod:350
25535 msgid "guestfs_aug_close"
25536 msgstr ""
25537
25538 #. type: verbatim
25539 #: ../src/guestfs-actions.pod:352
25540 #, no-wrap
25541 msgid ""
25542 " int\n"
25543 " guestfs_aug_close (guestfs_h *g);\n"
25544 "\n"
25545 msgstr ""
25546
25547 #. type: textblock
25548 #: ../src/guestfs-actions.pod:355
25549 msgid ""
25550 "Close the current Augeas handle and free up any resources used by it.  After "
25551 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25552 "any other Augeas functions."
25553 msgstr ""
25554
25555 #. type: textblock
25556 #: ../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:6483
25557 msgid "(Added in 0.7)"
25558 msgstr ""
25559
25560 #. type: =head2
25561 #: ../src/guestfs-actions.pod:364
25562 msgid "guestfs_aug_defnode"
25563 msgstr ""
25564
25565 #. type: verbatim
25566 #: ../src/guestfs-actions.pod:366
25567 #, no-wrap
25568 msgid ""
25569 " struct guestfs_int_bool *\n"
25570 " guestfs_aug_defnode (guestfs_h *g,\n"
25571 "                      const char *name,\n"
25572 "                      const char *expr,\n"
25573 "                      const char *val);\n"
25574 "\n"
25575 msgstr ""
25576
25577 #. type: textblock
25578 #: ../src/guestfs-actions.pod:375
25579 msgid ""
25580 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25581 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25582 "containing that single node."
25583 msgstr ""
25584
25585 #. type: textblock
25586 #: ../src/guestfs-actions.pod:383
25587 msgid ""
25588 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25589 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25590 msgstr ""
25591
25592 #. type: =head2
25593 #: ../src/guestfs-actions.pod:389
25594 msgid "guestfs_aug_defvar"
25595 msgstr ""
25596
25597 #. type: verbatim
25598 #: ../src/guestfs-actions.pod:391
25599 #, no-wrap
25600 msgid ""
25601 " int\n"
25602 " guestfs_aug_defvar (guestfs_h *g,\n"
25603 "                     const char *name,\n"
25604 "                     const char *expr);\n"
25605 "\n"
25606 msgstr ""
25607
25608 #. type: =head2
25609 #: ../src/guestfs-actions.pod:407
25610 msgid "guestfs_aug_get"
25611 msgstr ""
25612
25613 #. type: verbatim
25614 #: ../src/guestfs-actions.pod:409
25615 #, no-wrap
25616 msgid ""
25617 " char *\n"
25618 " guestfs_aug_get (guestfs_h *g,\n"
25619 "                  const char *augpath);\n"
25620 "\n"
25621 msgstr ""
25622
25623 #. type: textblock
25624 #: ../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:3636 ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:4316 ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4830 ../src/guestfs-actions.pod:5099 ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6193 ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6559 ../src/guestfs-actions.pod:6608 ../src/guestfs-actions.pod:7268 ../src/guestfs-actions.pod:7284 ../src/guestfs-actions.pod:7308 ../src/guestfs-actions.pod:7332 ../src/guestfs-actions.pod:8128 ../src/guestfs-actions.pod:8147 ../src/guestfs-actions.pod:8165 ../src/guestfs-actions.pod:8339 ../src/guestfs-actions.pod:8653
25625 msgid ""
25626 "This function returns a string, or NULL on error.  I<The caller must free "
25627 "the returned string after use>."
25628 msgstr ""
25629
25630 #. type: =head2
25631 #: ../src/guestfs-actions.pod:421
25632 msgid "guestfs_aug_init"
25633 msgstr ""
25634
25635 #. type: verbatim
25636 #: ../src/guestfs-actions.pod:423
25637 #, no-wrap
25638 msgid ""
25639 " int\n"
25640 " guestfs_aug_init (guestfs_h *g,\n"
25641 "                   const char *root,\n"
25642 "                   int flags);\n"
25643 "\n"
25644 msgstr ""
25645
25646 #. type: textblock
25647 #: ../src/guestfs-actions.pod:432
25648 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25649 msgstr ""
25650
25651 #. type: textblock
25652 #: ../src/guestfs-actions.pod:457
25653 msgid ""
25654 "This option is only useful when debugging Augeas lenses.  Use of this option "
25655 "may require additional memory for the libguestfs appliance.  You may need to "
25656 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25657 "C<guestfs_set_memsize>."
25658 msgstr ""
25659
25660 #. type: textblock
25661 #: ../src/guestfs-actions.pod:472
25662 msgid "Do not load the tree in C<guestfs_aug_init>."
25663 msgstr ""
25664
25665 #. type: textblock
25666 #: ../src/guestfs-actions.pod:476
25667 msgid "To close the handle, you can call C<guestfs_aug_close>."
25668 msgstr ""
25669
25670 #. type: =head2
25671 #: ../src/guestfs-actions.pod:484
25672 msgid "guestfs_aug_insert"
25673 msgstr ""
25674
25675 #. type: verbatim
25676 #: ../src/guestfs-actions.pod:486
25677 #, no-wrap
25678 msgid ""
25679 " int\n"
25680 " guestfs_aug_insert (guestfs_h *g,\n"
25681 "                     const char *augpath,\n"
25682 "                     const char *label,\n"
25683 "                     int before);\n"
25684 "\n"
25685 msgstr ""
25686
25687 #. type: =head2
25688 #: ../src/guestfs-actions.pod:504
25689 msgid "guestfs_aug_load"
25690 msgstr ""
25691
25692 #. type: verbatim
25693 #: ../src/guestfs-actions.pod:506
25694 #, no-wrap
25695 msgid ""
25696 " int\n"
25697 " guestfs_aug_load (guestfs_h *g);\n"
25698 "\n"
25699 msgstr ""
25700
25701 #. type: =head2
25702 #: ../src/guestfs-actions.pod:518
25703 msgid "guestfs_aug_ls"
25704 msgstr ""
25705
25706 #. type: verbatim
25707 #: ../src/guestfs-actions.pod:520
25708 #, no-wrap
25709 msgid ""
25710 " char **\n"
25711 " guestfs_aug_ls (guestfs_h *g,\n"
25712 "                 const char *augpath);\n"
25713 "\n"
25714 msgstr ""
25715
25716 #. type: textblock
25717 #: ../src/guestfs-actions.pod:524
25718 msgid ""
25719 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25720 "sorting the resulting nodes into alphabetical order."
25721 msgstr ""
25722
25723 #. type: textblock
25724 #: ../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:3872 ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:5718 ../src/guestfs-actions.pod:6353 ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:7348 ../src/guestfs-actions.pod:7409 ../src/guestfs-actions.pod:7464 ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7634 ../src/guestfs-actions.pod:8232 ../src/guestfs-actions.pod:8252 ../src/guestfs-actions.pod:8299 ../src/guestfs-actions.pod:8493 ../src/guestfs-actions.pod:8512 ../src/guestfs-actions.pod:8603 ../src/guestfs-actions.pod:8622 ../src/guestfs-actions.pod:8668 ../src/guestfs-actions.pod:8687
25725 msgid ""
25726 "This function returns a NULL-terminated array of strings (like "
25727 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
25728 "strings and the array after use>."
25729 msgstr ""
25730
25731 #. type: textblock
25732 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908 ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4693 ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5235 ../src/guestfs-actions.pod:5722 ../src/guestfs-actions.pod:6294 ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7970 ../src/guestfs-actions.pod:7983 ../src/guestfs-actions.pod:8216 ../src/guestfs-actions.pod:8481
25733 msgid "(Added in 0.8)"
25734 msgstr ""
25735
25736 #. type: =head2
25737 #: ../src/guestfs-actions.pod:533
25738 msgid "guestfs_aug_match"
25739 msgstr ""
25740
25741 #. type: verbatim
25742 #: ../src/guestfs-actions.pod:535
25743 #, no-wrap
25744 msgid ""
25745 " char **\n"
25746 " guestfs_aug_match (guestfs_h *g,\n"
25747 "                    const char *augpath);\n"
25748 "\n"
25749 msgstr ""
25750
25751 #. type: =head2
25752 #: ../src/guestfs-actions.pod:549
25753 msgid "guestfs_aug_mv"
25754 msgstr ""
25755
25756 #. type: verbatim
25757 #: ../src/guestfs-actions.pod:551
25758 #, no-wrap
25759 msgid ""
25760 " int\n"
25761 " guestfs_aug_mv (guestfs_h *g,\n"
25762 "                 const char *src,\n"
25763 "                 const char *dest);\n"
25764 "\n"
25765 msgstr ""
25766
25767 #. type: =head2
25768 #: ../src/guestfs-actions.pod:563
25769 msgid "guestfs_aug_rm"
25770 msgstr ""
25771
25772 #. type: verbatim
25773 #: ../src/guestfs-actions.pod:565
25774 #, no-wrap
25775 msgid ""
25776 " int\n"
25777 " guestfs_aug_rm (guestfs_h *g,\n"
25778 "                 const char *augpath);\n"
25779 "\n"
25780 msgstr ""
25781
25782 #. type: =head2
25783 #: ../src/guestfs-actions.pod:577
25784 msgid "guestfs_aug_save"
25785 msgstr ""
25786
25787 #. type: verbatim
25788 #: ../src/guestfs-actions.pod:579
25789 #, no-wrap
25790 msgid ""
25791 " int\n"
25792 " guestfs_aug_save (guestfs_h *g);\n"
25793 "\n"
25794 msgstr ""
25795
25796 #. type: textblock
25797 #: ../src/guestfs-actions.pod:584
25798 msgid ""
25799 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25800 "are saved."
25801 msgstr ""
25802
25803 #. type: =head2
25804 #: ../src/guestfs-actions.pod:591
25805 msgid "guestfs_aug_set"
25806 msgstr ""
25807
25808 #. type: verbatim
25809 #: ../src/guestfs-actions.pod:593
25810 #, no-wrap
25811 msgid ""
25812 " int\n"
25813 " guestfs_aug_set (guestfs_h *g,\n"
25814 "                  const char *augpath,\n"
25815 "                  const char *val);\n"
25816 "\n"
25817 msgstr ""
25818
25819 #. type: textblock
25820 #: ../src/guestfs-actions.pod:600
25821 msgid ""
25822 "In the Augeas API, it is possible to clear a node by setting the value to "
25823 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25824 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25825 msgstr ""
25826
25827 #. type: =head2
25828 #: ../src/guestfs-actions.pod:609
25829 msgid "guestfs_available"
25830 msgstr ""
25831
25832 #. type: verbatim
25833 #: ../src/guestfs-actions.pod:611
25834 #, no-wrap
25835 msgid ""
25836 " int\n"
25837 " guestfs_available (guestfs_h *g,\n"
25838 "                    char *const *groups);\n"
25839 "\n"
25840 msgstr ""
25841
25842 #. type: textblock
25843 #: ../src/guestfs-actions.pod:619
25844 msgid ""
25845 "The libguestfs groups, and the functions that those groups correspond to, "
25846 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25847 "runtime by calling C<guestfs_available_all_groups>."
25848 msgstr ""
25849
25850 #. type: textblock
25851 #: ../src/guestfs-actions.pod:643
25852 msgid "You must call C<guestfs_launch> before calling this function."
25853 msgstr ""
25854
25855 #. type: textblock
25856 #: ../src/guestfs-actions.pod:665
25857 msgid ""
25858 "This call was added in version C<1.0.80>.  In previous versions of "
25859 "libguestfs all you could do would be to speculatively execute a command to "
25860 "find out if the daemon implemented it.  See also C<guestfs_version>."
25861 msgstr ""
25862
25863 #. type: textblock
25864 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25865 msgid "(Added in 1.0.80)"
25866 msgstr ""
25867
25868 #. type: =head2
25869 #: ../src/guestfs-actions.pod:676
25870 msgid "guestfs_available_all_groups"
25871 msgstr ""
25872
25873 #. type: verbatim
25874 #: ../src/guestfs-actions.pod:678
25875 #, no-wrap
25876 msgid ""
25877 " char **\n"
25878 " guestfs_available_all_groups (guestfs_h *g);\n"
25879 "\n"
25880 msgstr ""
25881
25882 #. type: textblock
25883 #: ../src/guestfs-actions.pod:681
25884 msgid ""
25885 "This command returns a list of all optional groups that this daemon knows "
25886 "about.  Note this returns both supported and unsupported groups.  To find "
25887 "out which ones the daemon can actually support you have to call "
25888 "C<guestfs_available> on each member of the returned list."
25889 msgstr ""
25890
25891 #. type: textblock
25892 #: ../src/guestfs-actions.pod:687
25893 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25894 msgstr ""
25895
25896 #. type: textblock
25897 #: ../src/guestfs-actions.pod:693
25898 msgid "(Added in 1.3.15)"
25899 msgstr ""
25900
25901 #. type: =head2
25902 #: ../src/guestfs-actions.pod:695
25903 msgid "guestfs_base64_in"
25904 msgstr ""
25905
25906 #. type: verbatim
25907 #: ../src/guestfs-actions.pod:697
25908 #, no-wrap
25909 msgid ""
25910 " int\n"
25911 " guestfs_base64_in (guestfs_h *g,\n"
25912 "                    const char *base64file,\n"
25913 "                    const char *filename);\n"
25914 "\n"
25915 msgstr ""
25916
25917 #. type: textblock
25918 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25919 msgid "(Added in 1.3.5)"
25920 msgstr ""
25921
25922 #. type: =head2
25923 #: ../src/guestfs-actions.pod:709
25924 msgid "guestfs_base64_out"
25925 msgstr ""
25926
25927 #. type: verbatim
25928 #: ../src/guestfs-actions.pod:711
25929 #, no-wrap
25930 msgid ""
25931 " int\n"
25932 " guestfs_base64_out (guestfs_h *g,\n"
25933 "                     const char *filename,\n"
25934 "                     const char *base64file);\n"
25935 "\n"
25936 msgstr ""
25937
25938 #. type: =head2
25939 #: ../src/guestfs-actions.pod:723
25940 msgid "guestfs_blockdev_flushbufs"
25941 msgstr ""
25942
25943 #. type: verbatim
25944 #: ../src/guestfs-actions.pod:725
25945 #, no-wrap
25946 msgid ""
25947 " int\n"
25948 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25949 "                             const char *device);\n"
25950 "\n"
25951 msgstr ""
25952
25953 #. type: textblock
25954 #: ../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
25955 msgid "(Added in 0.9.3)"
25956 msgstr ""
25957
25958 #. type: =head2
25959 #: ../src/guestfs-actions.pod:738
25960 msgid "guestfs_blockdev_getbsz"
25961 msgstr ""
25962
25963 #. type: verbatim
25964 #: ../src/guestfs-actions.pod:740
25965 #, no-wrap
25966 msgid ""
25967 " int\n"
25968 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25969 "                          const char *device);\n"
25970 "\n"
25971 msgstr ""
25972
25973 #. type: =head2
25974 #: ../src/guestfs-actions.pod:755
25975 msgid "guestfs_blockdev_getro"
25976 msgstr ""
25977
25978 #. type: verbatim
25979 #: ../src/guestfs-actions.pod:757
25980 #, no-wrap
25981 msgid ""
25982 " int\n"
25983 " guestfs_blockdev_getro (guestfs_h *g,\n"
25984 "                         const char *device);\n"
25985 "\n"
25986 msgstr ""
25987
25988 #. type: textblock
25989 #: ../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:3693 ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903 ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963 ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:5956
25990 msgid "This function returns a C truth value on success or -1 on error."
25991 msgstr ""
25992
25993 #. type: =head2
25994 #: ../src/guestfs-actions.pod:770
25995 msgid "guestfs_blockdev_getsize64"
25996 msgstr ""
25997
25998 #. type: verbatim
25999 #: ../src/guestfs-actions.pod:772
26000 #, no-wrap
26001 msgid ""
26002 " int64_t\n"
26003 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26004 "                             const char *device);\n"
26005 "\n"
26006 msgstr ""
26007
26008 #. type: textblock
26009 #: ../src/guestfs-actions.pod:778
26010 msgid "See also C<guestfs_blockdev_getsz>."
26011 msgstr ""
26012
26013 #. type: =head2
26014 #: ../src/guestfs-actions.pod:786
26015 msgid "guestfs_blockdev_getss"
26016 msgstr ""
26017
26018 #. type: verbatim
26019 #: ../src/guestfs-actions.pod:788
26020 #, no-wrap
26021 msgid ""
26022 " int\n"
26023 " guestfs_blockdev_getss (guestfs_h *g,\n"
26024 "                         const char *device);\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../src/guestfs-actions.pod:795
26030 msgid ""
26031 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26032 "that)."
26033 msgstr ""
26034
26035 #. type: =head2
26036 #: ../src/guestfs-actions.pod:804
26037 msgid "guestfs_blockdev_getsz"
26038 msgstr ""
26039
26040 #. type: verbatim
26041 #: ../src/guestfs-actions.pod:806
26042 #, no-wrap
26043 msgid ""
26044 " int64_t\n"
26045 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26046 "                         const char *device);\n"
26047 "\n"
26048 msgstr ""
26049
26050 #. type: textblock
26051 #: ../src/guestfs-actions.pod:813
26052 msgid ""
26053 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26054 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26055 msgstr ""
26056
26057 #. type: =head2
26058 #: ../src/guestfs-actions.pod:823
26059 msgid "guestfs_blockdev_rereadpt"
26060 msgstr ""
26061
26062 #. type: verbatim
26063 #: ../src/guestfs-actions.pod:825
26064 #, no-wrap
26065 msgid ""
26066 " int\n"
26067 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26068 "                            const char *device);\n"
26069 "\n"
26070 msgstr ""
26071
26072 #. type: =head2
26073 #: ../src/guestfs-actions.pod:837
26074 msgid "guestfs_blockdev_setbsz"
26075 msgstr ""
26076
26077 #. type: verbatim
26078 #: ../src/guestfs-actions.pod:839
26079 #, no-wrap
26080 msgid ""
26081 " int\n"
26082 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26083 "                          const char *device,\n"
26084 "                          int blocksize);\n"
26085 "\n"
26086 msgstr ""
26087
26088 #. type: =head2
26089 #: ../src/guestfs-actions.pod:855
26090 msgid "guestfs_blockdev_setro"
26091 msgstr ""
26092
26093 #. type: verbatim
26094 #: ../src/guestfs-actions.pod:857
26095 #, no-wrap
26096 msgid ""
26097 " int\n"
26098 " guestfs_blockdev_setro (guestfs_h *g,\n"
26099 "                         const char *device);\n"
26100 "\n"
26101 msgstr ""
26102
26103 #. type: =head2
26104 #: ../src/guestfs-actions.pod:869
26105 msgid "guestfs_blockdev_setrw"
26106 msgstr ""
26107
26108 #. type: verbatim
26109 #: ../src/guestfs-actions.pod:871
26110 #, no-wrap
26111 msgid ""
26112 " int\n"
26113 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26114 "                         const char *device);\n"
26115 "\n"
26116 msgstr ""
26117
26118 #. type: =head2
26119 #: ../src/guestfs-actions.pod:883
26120 msgid "guestfs_btrfs_filesystem_resize"
26121 msgstr ""
26122
26123 #. type: verbatim
26124 #: ../src/guestfs-actions.pod:885
26125 #, no-wrap
26126 msgid ""
26127 " int\n"
26128 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26129 "                                  const char *mountpoint,\n"
26130 "                                  ...);\n"
26131 "\n"
26132 msgstr ""
26133
26134 #. type: verbatim
26135 #: ../src/guestfs-actions.pod:895
26136 #, no-wrap
26137 msgid ""
26138 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26139 "\n"
26140 msgstr ""
26141
26142 #. type: textblock
26143 #: ../src/guestfs-actions.pod:918
26144 msgid "(Added in 1.11.17)"
26145 msgstr ""
26146
26147 #. type: =head2
26148 #: ../src/guestfs-actions.pod:920
26149 msgid "guestfs_btrfs_filesystem_resize_va"
26150 msgstr ""
26151
26152 #. type: verbatim
26153 #: ../src/guestfs-actions.pod:922
26154 #, no-wrap
26155 msgid ""
26156 " int\n"
26157 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26158 "                                     const char *mountpoint,\n"
26159 "                                     va_list args);\n"
26160 "\n"
26161 msgstr ""
26162
26163 #. type: textblock
26164 #: ../src/guestfs-actions.pod:927
26165 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26166 msgstr ""
26167
26168 #. type: =head2
26169 #: ../src/guestfs-actions.pod:931
26170 msgid "guestfs_btrfs_filesystem_resize_argv"
26171 msgstr ""
26172
26173 #. type: verbatim
26174 #: ../src/guestfs-actions.pod:933
26175 #, no-wrap
26176 msgid ""
26177 " int\n"
26178 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26179 "                                       const char *mountpoint,\n"
26180 "                                       const struct "
26181 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26182 "\n"
26183 msgstr ""
26184
26185 #. type: textblock
26186 #: ../src/guestfs-actions.pod:938
26187 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26188 msgstr ""
26189
26190 #. type: =head2
26191 #: ../src/guestfs-actions.pod:942
26192 msgid "guestfs_case_sensitive_path"
26193 msgstr ""
26194
26195 #. type: verbatim
26196 #: ../src/guestfs-actions.pod:944
26197 #, no-wrap
26198 msgid ""
26199 " char *\n"
26200 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26201 "                              const char *path);\n"
26202 "\n"
26203 msgstr ""
26204
26205 #. type: textblock
26206 #: ../src/guestfs-actions.pod:970
26207 msgid ""
26208 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
26209 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26210 "how the directories were originally created under Windows)."
26211 msgstr ""
26212
26213 #. type: textblock
26214 #: ../src/guestfs-actions.pod:978
26215 msgid "See also C<guestfs_realpath>."
26216 msgstr ""
26217
26218 #. type: textblock
26219 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8150
26220 msgid "(Added in 1.0.75)"
26221 msgstr ""
26222
26223 #. type: =head2
26224 #: ../src/guestfs-actions.pod:985
26225 msgid "guestfs_cat"
26226 msgstr ""
26227
26228 #. type: verbatim
26229 #: ../src/guestfs-actions.pod:987
26230 #, no-wrap
26231 msgid ""
26232 " char *\n"
26233 " guestfs_cat (guestfs_h *g,\n"
26234 "              const char *path);\n"
26235 "\n"
26236 msgstr ""
26237
26238 #. type: textblock
26239 #: ../src/guestfs-actions.pod:993
26240 msgid ""
26241 "Note that this function cannot correctly handle binary files (specifically, "
26242 "files containing C<\\0> character which is treated as end of string).  For "
26243 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26244 "functions which have a more complex interface."
26245 msgstr ""
26246
26247 #. type: textblock
26248 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4806 ../src/guestfs-actions.pod:4820 ../src/guestfs-actions.pod:6357 ../src/guestfs-actions.pod:6371 ../src/guestfs-actions.pod:8303 ../src/guestfs-actions.pod:8317
26249 msgid "(Added in 0.4)"
26250 msgstr ""
26251
26252 #. type: =head2
26253 #: ../src/guestfs-actions.pod:1006
26254 msgid "guestfs_checksum"
26255 msgstr ""
26256
26257 #. type: verbatim
26258 #: ../src/guestfs-actions.pod:1008
26259 #, no-wrap
26260 msgid ""
26261 " char *\n"
26262 " guestfs_checksum (guestfs_h *g,\n"
26263 "                   const char *csumtype,\n"
26264 "                   const char *path);\n"
26265 "\n"
26266 msgstr ""
26267
26268 #. type: textblock
26269 #: ../src/guestfs-actions.pod:1054
26270 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26271 msgstr ""
26272
26273 #. type: textblock
26274 #: ../src/guestfs-actions.pod:1056
26275 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26276 msgstr ""
26277
26278 #. type: textblock
26279 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728 ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:8006
26280 msgid "(Added in 1.0.2)"
26281 msgstr ""
26282
26283 #. type: =head2
26284 #: ../src/guestfs-actions.pod:1063
26285 msgid "guestfs_checksum_device"
26286 msgstr ""
26287
26288 #. type: verbatim
26289 #: ../src/guestfs-actions.pod:1065
26290 #, no-wrap
26291 msgid ""
26292 " char *\n"
26293 " guestfs_checksum_device (guestfs_h *g,\n"
26294 "                          const char *csumtype,\n"
26295 "                          const char *device);\n"
26296 "\n"
26297 msgstr ""
26298
26299 #. type: textblock
26300 #: ../src/guestfs-actions.pod:1070
26301 msgid ""
26302 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26303 "device named C<device>.  For the types of checksums supported see the "
26304 "C<guestfs_checksum> command."
26305 msgstr ""
26306
26307 #. type: textblock
26308 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5789 ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5958 ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6158 ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:8329
26309 msgid "(Added in 1.3.2)"
26310 msgstr ""
26311
26312 #. type: =head2
26313 #: ../src/guestfs-actions.pod:1079
26314 msgid "guestfs_checksums_out"
26315 msgstr ""
26316
26317 #. type: verbatim
26318 #: ../src/guestfs-actions.pod:1081
26319 #, no-wrap
26320 msgid ""
26321 " int\n"
26322 " guestfs_checksums_out (guestfs_h *g,\n"
26323 "                        const char *csumtype,\n"
26324 "                        const char *directory,\n"
26325 "                        const char *sumsfile);\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: textblock
26330 #: ../src/guestfs-actions.pod:1101
26331 msgid "(Added in 1.3.7)"
26332 msgstr ""
26333
26334 #. type: =head2
26335 #: ../src/guestfs-actions.pod:1103
26336 msgid "guestfs_chmod"
26337 msgstr ""
26338
26339 #. type: verbatim
26340 #: ../src/guestfs-actions.pod:1105
26341 #, no-wrap
26342 msgid ""
26343 " int\n"
26344 " guestfs_chmod (guestfs_h *g,\n"
26345 "                int mode,\n"
26346 "                const char *path);\n"
26347 "\n"
26348 msgstr ""
26349
26350 #. type: =head2
26351 #: ../src/guestfs-actions.pod:1123
26352 msgid "guestfs_chown"
26353 msgstr ""
26354
26355 #. type: verbatim
26356 #: ../src/guestfs-actions.pod:1125
26357 #, no-wrap
26358 msgid ""
26359 " int\n"
26360 " guestfs_chown (guestfs_h *g,\n"
26361 "                int owner,\n"
26362 "                int group,\n"
26363 "                const char *path);\n"
26364 "\n"
26365 msgstr ""
26366
26367 #. type: =head2
26368 #: ../src/guestfs-actions.pod:1141
26369 msgid "guestfs_command"
26370 msgstr ""
26371
26372 #. type: verbatim
26373 #: ../src/guestfs-actions.pod:1143
26374 #, no-wrap
26375 msgid ""
26376 " char *\n"
26377 " guestfs_command (guestfs_h *g,\n"
26378 "                  char *const *arguments);\n"
26379 "\n"
26380 msgstr ""
26381
26382 #. type: textblock
26383 #: ../src/guestfs-actions.pod:1152
26384 msgid ""
26385 "The single parameter is an argv-style list of arguments.  The first element "
26386 "is the name of the program to run.  Subsequent elements are parameters.  The "
26387 "list must be non-empty (ie. must contain a program name).  Note that the "
26388 "command runs directly, and is I<not> invoked via the shell (see "
26389 "C<guestfs_sh>)."
26390 msgstr ""
26391
26392 #. type: textblock
26393 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203 ../src/guestfs-actions.pod:2027
26394 msgid "(Added in 0.9.1)"
26395 msgstr ""
26396
26397 #. type: =head2
26398 #: ../src/guestfs-actions.pod:1185
26399 msgid "guestfs_command_lines"
26400 msgstr ""
26401
26402 #. type: verbatim
26403 #: ../src/guestfs-actions.pod:1187
26404 #, no-wrap
26405 msgid ""
26406 " char **\n"
26407 " guestfs_command_lines (guestfs_h *g,\n"
26408 "                        char *const *arguments);\n"
26409 "\n"
26410 msgstr ""
26411
26412 #. type: textblock
26413 #: ../src/guestfs-actions.pod:1191
26414 msgid ""
26415 "This is the same as C<guestfs_command>, but splits the result into a list of "
26416 "lines."
26417 msgstr ""
26418
26419 #. type: textblock
26420 #: ../src/guestfs-actions.pod:1194
26421 msgid "See also: C<guestfs_sh_lines>"
26422 msgstr ""
26423
26424 #. type: =head2
26425 #: ../src/guestfs-actions.pod:1205
26426 msgid "guestfs_compress_device_out"
26427 msgstr ""
26428
26429 #. type: verbatim
26430 #: ../src/guestfs-actions.pod:1207
26431 #, no-wrap
26432 msgid ""
26433 " int\n"
26434 " guestfs_compress_device_out (guestfs_h *g,\n"
26435 "                              const char *ctype,\n"
26436 "                              const char *device,\n"
26437 "                              const char *zdevice,\n"
26438 "                              ...);\n"
26439 "\n"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:1219
26444 #, no-wrap
26445 msgid ""
26446 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26447 "\n"
26448 msgstr ""
26449
26450 #. type: textblock
26451 #: ../src/guestfs-actions.pod:1224
26452 msgid ""
26453 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26454 "C<guestfs_compress_out>."
26455 msgstr ""
26456
26457 #. type: textblock
26458 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7074
26459 msgid "(Added in 1.13.15)"
26460 msgstr ""
26461
26462 #. type: =head2
26463 #: ../src/guestfs-actions.pod:1231
26464 msgid "guestfs_compress_device_out_va"
26465 msgstr ""
26466
26467 #. type: verbatim
26468 #: ../src/guestfs-actions.pod:1233
26469 #, no-wrap
26470 msgid ""
26471 " int\n"
26472 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26473 "                                 const char *ctype,\n"
26474 "                                 const char *device,\n"
26475 "                                 const char *zdevice,\n"
26476 "                                 va_list args);\n"
26477 "\n"
26478 msgstr ""
26479
26480 #. type: textblock
26481 #: ../src/guestfs-actions.pod:1240
26482 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26483 msgstr ""
26484
26485 #. type: =head2
26486 #: ../src/guestfs-actions.pod:1244
26487 msgid "guestfs_compress_device_out_argv"
26488 msgstr ""
26489
26490 #. type: verbatim
26491 #: ../src/guestfs-actions.pod:1246
26492 #, no-wrap
26493 msgid ""
26494 " int\n"
26495 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26496 "                                   const char *ctype,\n"
26497 "                                   const char *device,\n"
26498 "                                   const char *zdevice,\n"
26499 "                                   const struct "
26500 "guestfs_compress_device_out_argv *optargs);\n"
26501 "\n"
26502 msgstr ""
26503
26504 #. type: textblock
26505 #: ../src/guestfs-actions.pod:1253
26506 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26507 msgstr ""
26508
26509 #. type: =head2
26510 #: ../src/guestfs-actions.pod:1257
26511 msgid "guestfs_compress_out"
26512 msgstr ""
26513
26514 #. type: verbatim
26515 #: ../src/guestfs-actions.pod:1259
26516 #, no-wrap
26517 msgid ""
26518 " int\n"
26519 " guestfs_compress_out (guestfs_h *g,\n"
26520 "                       const char *ctype,\n"
26521 "                       const char *file,\n"
26522 "                       const char *zfile,\n"
26523 "                       ...);\n"
26524 "\n"
26525 msgstr ""
26526
26527 #. type: verbatim
26528 #: ../src/guestfs-actions.pod:1271
26529 #, no-wrap
26530 msgid ""
26531 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26532 "\n"
26533 msgstr ""
26534
26535 #. type: =head2
26536 #: ../src/guestfs-actions.pod:1290
26537 msgid "guestfs_compress_out_va"
26538 msgstr ""
26539
26540 #. type: verbatim
26541 #: ../src/guestfs-actions.pod:1292
26542 #, no-wrap
26543 msgid ""
26544 " int\n"
26545 " guestfs_compress_out_va (guestfs_h *g,\n"
26546 "                          const char *ctype,\n"
26547 "                          const char *file,\n"
26548 "                          const char *zfile,\n"
26549 "                          va_list args);\n"
26550 "\n"
26551 msgstr ""
26552
26553 #. type: textblock
26554 #: ../src/guestfs-actions.pod:1299
26555 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26556 msgstr ""
26557
26558 #. type: =head2
26559 #: ../src/guestfs-actions.pod:1303
26560 msgid "guestfs_compress_out_argv"
26561 msgstr ""
26562
26563 #. type: verbatim
26564 #: ../src/guestfs-actions.pod:1305
26565 #, no-wrap
26566 msgid ""
26567 " int\n"
26568 " guestfs_compress_out_argv (guestfs_h *g,\n"
26569 "                            const char *ctype,\n"
26570 "                            const char *file,\n"
26571 "                            const char *zfile,\n"
26572 "                            const struct guestfs_compress_out_argv "
26573 "*optargs);\n"
26574 "\n"
26575 msgstr ""
26576
26577 #. type: textblock
26578 #: ../src/guestfs-actions.pod:1312
26579 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26580 msgstr ""
26581
26582 #. type: =head2
26583 #: ../src/guestfs-actions.pod:1316
26584 msgid "guestfs_config"
26585 msgstr ""
26586
26587 #. type: verbatim
26588 #: ../src/guestfs-actions.pod:1318
26589 #, no-wrap
26590 msgid ""
26591 " int\n"
26592 " guestfs_config (guestfs_h *g,\n"
26593 "                 const char *qemuparam,\n"
26594 "                 const char *qemuvalue);\n"
26595 "\n"
26596 msgstr ""
26597
26598 #. type: =head2
26599 #: ../src/guestfs-actions.pod:1336
26600 msgid "guestfs_copy_device_to_device"
26601 msgstr ""
26602
26603 #. type: verbatim
26604 #: ../src/guestfs-actions.pod:1338
26605 #, no-wrap
26606 msgid ""
26607 " int\n"
26608 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26609 "                                const char *src,\n"
26610 "                                const char *dest,\n"
26611 "                                ...);\n"
26612 "\n"
26613 msgstr ""
26614
26615 #. type: verbatim
26616 #: ../src/guestfs-actions.pod:1349
26617 #, no-wrap
26618 msgid ""
26619 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26620 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26621 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26622 "\n"
26623 msgstr ""
26624
26625 #. type: textblock
26626 #: ../src/guestfs-actions.pod:1353
26627 msgid ""
26628 "The four calls C<guestfs_copy_device_to_device>, "
26629 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26630 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26631 "destination (device|file)."
26632 msgstr ""
26633
26634 #. type: textblock
26635 #: ../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:4105 ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8035 ../src/guestfs-actions.pod:8542 ../src/guestfs-actions.pod:8565
26636 msgid ""
26637 "This long-running command can generate progress notification messages so "
26638 "that the caller can display a progress bar or indicator.  To receive these "
26639 "messages, the caller must register a progress event callback.  See "
26640 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
26641 msgstr ""
26642
26643 #. type: textblock
26644 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543 ../src/guestfs-actions.pod:6214
26645 msgid "(Added in 1.13.25)"
26646 msgstr ""
26647
26648 #. type: =head2
26649 #: ../src/guestfs-actions.pod:1381
26650 msgid "guestfs_copy_device_to_device_va"
26651 msgstr ""
26652
26653 #. type: verbatim
26654 #: ../src/guestfs-actions.pod:1383
26655 #, no-wrap
26656 msgid ""
26657 " int\n"
26658 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26659 "                                   const char *src,\n"
26660 "                                   const char *dest,\n"
26661 "                                   va_list args);\n"
26662 "\n"
26663 msgstr ""
26664
26665 #. type: textblock
26666 #: ../src/guestfs-actions.pod:1389
26667 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26668 msgstr ""
26669
26670 #. type: =head2
26671 #: ../src/guestfs-actions.pod:1393
26672 msgid "guestfs_copy_device_to_device_argv"
26673 msgstr ""
26674
26675 #. type: verbatim
26676 #: ../src/guestfs-actions.pod:1395
26677 #, no-wrap
26678 msgid ""
26679 " int\n"
26680 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26681 "                                     const char *src,\n"
26682 "                                     const char *dest,\n"
26683 "                                     const struct "
26684 "guestfs_copy_device_to_device_argv *optargs);\n"
26685 "\n"
26686 msgstr ""
26687
26688 #. type: textblock
26689 #: ../src/guestfs-actions.pod:1401
26690 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26691 msgstr ""
26692
26693 #. type: =head2
26694 #: ../src/guestfs-actions.pod:1405
26695 msgid "guestfs_copy_device_to_file"
26696 msgstr ""
26697
26698 #. type: verbatim
26699 #: ../src/guestfs-actions.pod:1407
26700 #, no-wrap
26701 msgid ""
26702 " int\n"
26703 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26704 "                              const char *src,\n"
26705 "                              const char *dest,\n"
26706 "                              ...);\n"
26707 "\n"
26708 msgstr ""
26709
26710 #. type: verbatim
26711 #: ../src/guestfs-actions.pod:1418
26712 #, no-wrap
26713 msgid ""
26714 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26715 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26716 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26717 "\n"
26718 msgstr ""
26719
26720 #. type: textblock
26721 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:1528
26722 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
26723 msgstr ""
26724
26725 #. type: =head2
26726 #: ../src/guestfs-actions.pod:1434
26727 msgid "guestfs_copy_device_to_file_va"
26728 msgstr ""
26729
26730 #. type: verbatim
26731 #: ../src/guestfs-actions.pod:1436
26732 #, no-wrap
26733 msgid ""
26734 " int\n"
26735 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26736 "                                 const char *src,\n"
26737 "                                 const char *dest,\n"
26738 "                                 va_list args);\n"
26739 "\n"
26740 msgstr ""
26741
26742 #. type: textblock
26743 #: ../src/guestfs-actions.pod:1442
26744 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26745 msgstr ""
26746
26747 #. type: =head2
26748 #: ../src/guestfs-actions.pod:1446
26749 msgid "guestfs_copy_device_to_file_argv"
26750 msgstr ""
26751
26752 #. type: verbatim
26753 #: ../src/guestfs-actions.pod:1448
26754 #, no-wrap
26755 msgid ""
26756 " int\n"
26757 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26758 "                                   const char *src,\n"
26759 "                                   const char *dest,\n"
26760 "                                   const struct "
26761 "guestfs_copy_device_to_file_argv *optargs);\n"
26762 "\n"
26763 msgstr ""
26764
26765 #. type: textblock
26766 #: ../src/guestfs-actions.pod:1454
26767 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26768 msgstr ""
26769
26770 #. type: =head2
26771 #: ../src/guestfs-actions.pod:1458
26772 msgid "guestfs_copy_file_to_device"
26773 msgstr ""
26774
26775 #. type: verbatim
26776 #: ../src/guestfs-actions.pod:1460
26777 #, no-wrap
26778 msgid ""
26779 " int\n"
26780 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26781 "                              const char *src,\n"
26782 "                              const char *dest,\n"
26783 "                              ...);\n"
26784 "\n"
26785 msgstr ""
26786
26787 #. type: verbatim
26788 #: ../src/guestfs-actions.pod:1471
26789 #, no-wrap
26790 msgid ""
26791 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26792 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26793 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26794 "\n"
26795 msgstr ""
26796
26797 #. type: =head2
26798 #: ../src/guestfs-actions.pod:1487
26799 msgid "guestfs_copy_file_to_device_va"
26800 msgstr ""
26801
26802 #. type: verbatim
26803 #: ../src/guestfs-actions.pod:1489
26804 #, no-wrap
26805 msgid ""
26806 " int\n"
26807 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26808 "                                 const char *src,\n"
26809 "                                 const char *dest,\n"
26810 "                                 va_list args);\n"
26811 "\n"
26812 msgstr ""
26813
26814 #. type: textblock
26815 #: ../src/guestfs-actions.pod:1495
26816 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26817 msgstr ""
26818
26819 #. type: =head2
26820 #: ../src/guestfs-actions.pod:1499
26821 msgid "guestfs_copy_file_to_device_argv"
26822 msgstr ""
26823
26824 #. type: verbatim
26825 #: ../src/guestfs-actions.pod:1501
26826 #, no-wrap
26827 msgid ""
26828 " int\n"
26829 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26830 "                                   const char *src,\n"
26831 "                                   const char *dest,\n"
26832 "                                   const struct "
26833 "guestfs_copy_file_to_device_argv *optargs);\n"
26834 "\n"
26835 msgstr ""
26836
26837 #. type: textblock
26838 #: ../src/guestfs-actions.pod:1507
26839 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26840 msgstr ""
26841
26842 #. type: =head2
26843 #: ../src/guestfs-actions.pod:1511
26844 msgid "guestfs_copy_file_to_file"
26845 msgstr ""
26846
26847 #. type: verbatim
26848 #: ../src/guestfs-actions.pod:1513
26849 #, no-wrap
26850 msgid ""
26851 " int\n"
26852 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26853 "                            const char *src,\n"
26854 "                            const char *dest,\n"
26855 "                            ...);\n"
26856 "\n"
26857 msgstr ""
26858
26859 #. type: verbatim
26860 #: ../src/guestfs-actions.pod:1524
26861 #, no-wrap
26862 msgid ""
26863 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26864 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26865 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26866 "\n"
26867 msgstr ""
26868
26869 #. type: textblock
26870 #: ../src/guestfs-actions.pod:1531
26871 msgid ""
26872 "This is B<not> the function you want for copying files.  This is for copying "
26873 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26874 "C<guestfs_mv> for general file copying and moving functions."
26875 msgstr ""
26876
26877 #. type: =head2
26878 #: ../src/guestfs-actions.pod:1545
26879 msgid "guestfs_copy_file_to_file_va"
26880 msgstr ""
26881
26882 #. type: verbatim
26883 #: ../src/guestfs-actions.pod:1547
26884 #, no-wrap
26885 msgid ""
26886 " int\n"
26887 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26888 "                               const char *src,\n"
26889 "                               const char *dest,\n"
26890 "                               va_list args);\n"
26891 "\n"
26892 msgstr ""
26893
26894 #. type: textblock
26895 #: ../src/guestfs-actions.pod:1553
26896 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26897 msgstr ""
26898
26899 #. type: =head2
26900 #: ../src/guestfs-actions.pod:1557
26901 msgid "guestfs_copy_file_to_file_argv"
26902 msgstr ""
26903
26904 #. type: verbatim
26905 #: ../src/guestfs-actions.pod:1559
26906 #, no-wrap
26907 msgid ""
26908 " int\n"
26909 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26910 "                                 const char *src,\n"
26911 "                                 const char *dest,\n"
26912 "                                 const struct guestfs_copy_file_to_file_argv "
26913 "*optargs);\n"
26914 "\n"
26915 msgstr ""
26916
26917 #. type: textblock
26918 #: ../src/guestfs-actions.pod:1565
26919 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26920 msgstr ""
26921
26922 #. type: =head2
26923 #: ../src/guestfs-actions.pod:1569
26924 msgid "guestfs_copy_size"
26925 msgstr ""
26926
26927 #. type: verbatim
26928 #: ../src/guestfs-actions.pod:1571
26929 #, no-wrap
26930 msgid ""
26931 " int\n"
26932 " guestfs_copy_size (guestfs_h *g,\n"
26933 "                    const char *src,\n"
26934 "                    const char *dest,\n"
26935 "                    int64_t size);\n"
26936 "\n"
26937 msgstr ""
26938
26939 #. type: textblock
26940 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26941 msgid ""
26942 "I<This function is deprecated.> In new code, use the "
26943 "L</guestfs_copy_device_to_device> call instead."
26944 msgstr ""
26945
26946 #. type: textblock
26947 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4833 ../src/guestfs-actions.pod:6384 ../src/guestfs-actions.pod:8236 ../src/guestfs-actions.pod:8256 ../src/guestfs-actions.pod:8342
26948 msgid "(Added in 1.0.87)"
26949 msgstr ""
26950
26951 #. type: =head2
26952 #: ../src/guestfs-actions.pod:1599
26953 msgid "guestfs_cp"
26954 msgstr ""
26955
26956 #. type: verbatim
26957 #: ../src/guestfs-actions.pod:1601
26958 #, no-wrap
26959 msgid ""
26960 " int\n"
26961 " guestfs_cp (guestfs_h *g,\n"
26962 "             const char *src,\n"
26963 "             const char *dest);\n"
26964 "\n"
26965 msgstr ""
26966
26967 #. type: textblock
26968 #: ../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:5736 ../src/guestfs-actions.pod:6228
26969 msgid "(Added in 1.0.18)"
26970 msgstr ""
26971
26972 #. type: =head2
26973 #: ../src/guestfs-actions.pod:1613
26974 msgid "guestfs_cp_a"
26975 msgstr ""
26976
26977 #. type: verbatim
26978 #: ../src/guestfs-actions.pod:1615
26979 #, no-wrap
26980 msgid ""
26981 " int\n"
26982 " guestfs_cp_a (guestfs_h *g,\n"
26983 "               const char *src,\n"
26984 "               const char *dest);\n"
26985 "\n"
26986 msgstr ""
26987
26988 #. type: =head2
26989 #: ../src/guestfs-actions.pod:1627
26990 msgid "guestfs_dd"
26991 msgstr ""
26992
26993 #. type: verbatim
26994 #: ../src/guestfs-actions.pod:1629
26995 #, no-wrap
26996 msgid ""
26997 " int\n"
26998 " guestfs_dd (guestfs_h *g,\n"
26999 "             const char *src,\n"
27000 "             const char *dest);\n"
27001 "\n"
27002 msgstr ""
27003
27004 #. type: textblock
27005 #: ../src/guestfs-actions.pod:1646
27006 msgid ""
27007 "If the destination is a device, it must be as large or larger than the "
27008 "source file or device, otherwise the copy will fail.  This command cannot do "
27009 "partial copies (see C<guestfs_copy_device_to_device>)."
27010 msgstr ""
27011
27012 #. type: =head2
27013 #: ../src/guestfs-actions.pod:1655
27014 msgid "guestfs_df"
27015 msgstr ""
27016
27017 #. type: verbatim
27018 #: ../src/guestfs-actions.pod:1657
27019 #, no-wrap
27020 msgid ""
27021 " char *\n"
27022 " guestfs_df (guestfs_h *g);\n"
27023 "\n"
27024 msgstr ""
27025
27026 #. type: textblock
27027 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27028 msgid ""
27029 "This command is mostly useful for interactive sessions.  It is I<not> "
27030 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27031 "from programs."
27032 msgstr ""
27033
27034 #. type: textblock
27035 #: ../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:5102 ../src/guestfs-actions.pod:5636 ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7641 ../src/guestfs-actions.pod:8382 ../src/guestfs-actions.pod:8395 ../src/guestfs-actions.pod:8408
27036 msgid "(Added in 1.0.54)"
27037 msgstr ""
27038
27039 #. type: =head2
27040 #: ../src/guestfs-actions.pod:1671
27041 msgid "guestfs_df_h"
27042 msgstr ""
27043
27044 #. type: verbatim
27045 #: ../src/guestfs-actions.pod:1673
27046 #, no-wrap
27047 msgid ""
27048 " char *\n"
27049 " guestfs_df_h (guestfs_h *g);\n"
27050 "\n"
27051 msgstr ""
27052
27053 #. type: =head2
27054 #: ../src/guestfs-actions.pod:1688
27055 msgid "guestfs_dmesg"
27056 msgstr ""
27057
27058 #. type: verbatim
27059 #: ../src/guestfs-actions.pod:1690
27060 #, no-wrap
27061 msgid ""
27062 " char *\n"
27063 " guestfs_dmesg (guestfs_h *g);\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: textblock
27068 #: ../src/guestfs-actions.pod:1697
27069 msgid ""
27070 "Another way to get the same information is to enable verbose messages with "
27071 "C<guestfs_set_verbose> or by setting the environment variable "
27072 "C<LIBGUESTFS_DEBUG=1> before running the program."
27073 msgstr ""
27074
27075 #. type: =head2
27076 #: ../src/guestfs-actions.pod:1707
27077 msgid "guestfs_download"
27078 msgstr ""
27079
27080 #. type: verbatim
27081 #: ../src/guestfs-actions.pod:1709
27082 #, no-wrap
27083 msgid ""
27084 " int\n"
27085 " guestfs_download (guestfs_h *g,\n"
27086 "                   const char *remotefilename,\n"
27087 "                   const char *filename);\n"
27088 "\n"
27089 msgstr ""
27090
27091 #. type: textblock
27092 #: ../src/guestfs-actions.pod:1719
27093 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27094 msgstr ""
27095
27096 #. type: =head2
27097 #: ../src/guestfs-actions.pod:1730
27098 msgid "guestfs_download_offset"
27099 msgstr ""
27100
27101 #. type: verbatim
27102 #: ../src/guestfs-actions.pod:1732
27103 #, no-wrap
27104 msgid ""
27105 " int\n"
27106 " guestfs_download_offset (guestfs_h *g,\n"
27107 "                          const char *remotefilename,\n"
27108 "                          const char *filename,\n"
27109 "                          int64_t offset,\n"
27110 "                          int64_t size);\n"
27111 "\n"
27112 msgstr ""
27113
27114 #. type: textblock
27115 #: ../src/guestfs-actions.pod:1745
27116 msgid ""
27117 "Note that there is no limit on the amount of data that can be downloaded "
27118 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27119 "full amount unless an error occurs."
27120 msgstr ""
27121
27122 #. type: textblock
27123 #: ../src/guestfs-actions.pod:1750
27124 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27125 msgstr ""
27126
27127 #. type: textblock
27128 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8040
27129 msgid "(Added in 1.5.17)"
27130 msgstr ""
27131
27132 #. type: =head2
27133 #: ../src/guestfs-actions.pod:1761
27134 msgid "guestfs_drop_caches"
27135 msgstr ""
27136
27137 #. type: verbatim
27138 #: ../src/guestfs-actions.pod:1763
27139 #, no-wrap
27140 msgid ""
27141 " int\n"
27142 " guestfs_drop_caches (guestfs_h *g,\n"
27143 "                      int whattodrop);\n"
27144 "\n"
27145 msgstr ""
27146
27147 #. type: =head2
27148 #: ../src/guestfs-actions.pod:1781
27149 msgid "guestfs_du"
27150 msgstr ""
27151
27152 #. type: verbatim
27153 #: ../src/guestfs-actions.pod:1783
27154 #, no-wrap
27155 msgid ""
27156 " int64_t\n"
27157 " guestfs_du (guestfs_h *g,\n"
27158 "             const char *path);\n"
27159 "\n"
27160 msgstr ""
27161
27162 #. type: =head2
27163 #: ../src/guestfs-actions.pod:1806
27164 msgid "guestfs_e2fsck_f"
27165 msgstr ""
27166
27167 #. type: verbatim
27168 #: ../src/guestfs-actions.pod:1808
27169 #, no-wrap
27170 msgid ""
27171 " int\n"
27172 " guestfs_e2fsck_f (guestfs_h *g,\n"
27173 "                   const char *device);\n"
27174 "\n"
27175 msgstr ""
27176
27177 #. type: textblock
27178 #: ../src/guestfs-actions.pod:1816
27179 msgid ""
27180 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27181 "Normally you should use C<guestfs_fsck>."
27182 msgstr ""
27183
27184 #. type: textblock
27185 #: ../src/guestfs-actions.pod:1821
27186 msgid "(Added in 1.0.29)"
27187 msgstr ""
27188
27189 #. type: =head2
27190 #: ../src/guestfs-actions.pod:1823
27191 msgid "guestfs_echo_daemon"
27192 msgstr ""
27193
27194 #. type: verbatim
27195 #: ../src/guestfs-actions.pod:1825
27196 #, no-wrap
27197 msgid ""
27198 " char *\n"
27199 " guestfs_echo_daemon (guestfs_h *g,\n"
27200 "                      char *const *words);\n"
27201 "\n"
27202 msgstr ""
27203
27204 #. type: textblock
27205 #: ../src/guestfs-actions.pod:1834
27206 msgid "See also C<guestfs_ping_daemon>."
27207 msgstr ""
27208
27209 #. type: textblock
27210 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:7098
27211 msgid "(Added in 1.0.69)"
27212 msgstr ""
27213
27214 #. type: =head2
27215 #: ../src/guestfs-actions.pod:1841
27216 msgid "guestfs_egrep"
27217 msgstr ""
27218
27219 #. type: verbatim
27220 #: ../src/guestfs-actions.pod:1843
27221 #, no-wrap
27222 msgid ""
27223 " char **\n"
27224 " guestfs_egrep (guestfs_h *g,\n"
27225 "                const char *regex,\n"
27226 "                const char *path);\n"
27227 "\n"
27228 msgstr ""
27229
27230 #. type: textblock
27231 #: ../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:4332 ../src/guestfs-actions.pod:4346 ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:5524 ../src/guestfs-actions.pod:6562 ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7497 ../src/guestfs-actions.pod:7510 ../src/guestfs-actions.pod:7523 ../src/guestfs-actions.pod:7545 ../src/guestfs-actions.pod:7558 ../src/guestfs-actions.pod:7571 ../src/guestfs-actions.pod:7584 ../src/guestfs-actions.pod:8500 ../src/guestfs-actions.pod:8519 ../src/guestfs-actions.pod:8610 ../src/guestfs-actions.pod:8629 ../src/guestfs-actions.pod:8675 ../src/guestfs-actions.pod:8694
27232 msgid "(Added in 1.0.66)"
27233 msgstr ""
27234
27235 #. type: =head2
27236 #: ../src/guestfs-actions.pod:1860
27237 msgid "guestfs_egrepi"
27238 msgstr ""
27239
27240 #. type: verbatim
27241 #: ../src/guestfs-actions.pod:1862
27242 #, no-wrap
27243 msgid ""
27244 " char **\n"
27245 " guestfs_egrepi (guestfs_h *g,\n"
27246 "                 const char *regex,\n"
27247 "                 const char *path);\n"
27248 "\n"
27249 msgstr ""
27250
27251 #. type: =head2
27252 #: ../src/guestfs-actions.pod:1879
27253 msgid "guestfs_equal"
27254 msgstr ""
27255
27256 #. type: verbatim
27257 #: ../src/guestfs-actions.pod:1881
27258 #, no-wrap
27259 msgid ""
27260 " int\n"
27261 " guestfs_equal (guestfs_h *g,\n"
27262 "                const char *file1,\n"
27263 "                const char *file2);\n"
27264 "\n"
27265 msgstr ""
27266
27267 #. type: =head2
27268 #: ../src/guestfs-actions.pod:1895
27269 msgid "guestfs_exists"
27270 msgstr ""
27271
27272 #. type: verbatim
27273 #: ../src/guestfs-actions.pod:1897
27274 #, no-wrap
27275 msgid ""
27276 " int\n"
27277 " guestfs_exists (guestfs_h *g,\n"
27278 "                 const char *path);\n"
27279 "\n"
27280 msgstr ""
27281
27282 #. type: textblock
27283 #: ../src/guestfs-actions.pod:1904
27284 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27285 msgstr ""
27286
27287 #. type: =head2
27288 #: ../src/guestfs-actions.pod:1910
27289 msgid "guestfs_fallocate"
27290 msgstr ""
27291
27292 #. type: verbatim
27293 #: ../src/guestfs-actions.pod:1912
27294 #, no-wrap
27295 msgid ""
27296 " int\n"
27297 " guestfs_fallocate (guestfs_h *g,\n"
27298 "                    const char *path,\n"
27299 "                    int len);\n"
27300 "\n"
27301 msgstr ""
27302
27303 #. type: textblock
27304 #: ../src/guestfs-actions.pod:1917
27305 msgid ""
27306 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27307 "call instead."
27308 msgstr ""
27309
27310 #. type: =head2
27311 #: ../src/guestfs-actions.pod:1936
27312 msgid "guestfs_fallocate64"
27313 msgstr ""
27314
27315 #. type: verbatim
27316 #: ../src/guestfs-actions.pod:1938
27317 #, no-wrap
27318 msgid ""
27319 " int\n"
27320 " guestfs_fallocate64 (guestfs_h *g,\n"
27321 "                      const char *path,\n"
27322 "                      int64_t len);\n"
27323 "\n"
27324 msgstr ""
27325
27326 #. type: textblock
27327 #: ../src/guestfs-actions.pod:1947
27328 msgid ""
27329 "Note that this call allocates disk blocks for the file.  To create a sparse "
27330 "file use C<guestfs_truncate_size> instead."
27331 msgstr ""
27332
27333 #. type: textblock
27334 #: ../src/guestfs-actions.pod:1950
27335 msgid ""
27336 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27337 "oversight it only allowed 30 bit lengths to be specified, effectively "
27338 "limiting the maximum size of files created through that call to 1GB."
27339 msgstr ""
27340
27341 #. type: textblock
27342 #: ../src/guestfs-actions.pod:1961
27343 msgid "(Added in 1.3.17)"
27344 msgstr ""
27345
27346 #. type: =head2
27347 #: ../src/guestfs-actions.pod:1963
27348 msgid "guestfs_fgrep"
27349 msgstr ""
27350
27351 #. type: verbatim
27352 #: ../src/guestfs-actions.pod:1965
27353 #, no-wrap
27354 msgid ""
27355 " char **\n"
27356 " guestfs_fgrep (guestfs_h *g,\n"
27357 "                const char *pattern,\n"
27358 "                const char *path);\n"
27359 "\n"
27360 msgstr ""
27361
27362 #. type: =head2
27363 #: ../src/guestfs-actions.pod:1982
27364 msgid "guestfs_fgrepi"
27365 msgstr ""
27366
27367 #. type: verbatim
27368 #: ../src/guestfs-actions.pod:1984
27369 #, no-wrap
27370 msgid ""
27371 " char **\n"
27372 " guestfs_fgrepi (guestfs_h *g,\n"
27373 "                 const char *pattern,\n"
27374 "                 const char *path);\n"
27375 "\n"
27376 msgstr ""
27377
27378 #. type: =head2
27379 #: ../src/guestfs-actions.pod:2001
27380 msgid "guestfs_file"
27381 msgstr ""
27382
27383 #. type: verbatim
27384 #: ../src/guestfs-actions.pod:2003
27385 #, no-wrap
27386 msgid ""
27387 " char *\n"
27388 " guestfs_file (guestfs_h *g,\n"
27389 "               const char *path);\n"
27390 "\n"
27391 msgstr ""
27392
27393 #. type: textblock
27394 #: ../src/guestfs-actions.pod:2021
27395 msgid ""
27396 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27397 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27398 msgstr ""
27399
27400 #. type: =head2
27401 #: ../src/guestfs-actions.pod:2029
27402 msgid "guestfs_file_architecture"
27403 msgstr ""
27404
27405 #. type: verbatim
27406 #: ../src/guestfs-actions.pod:2031
27407 #, no-wrap
27408 msgid ""
27409 " char *\n"
27410 " guestfs_file_architecture (guestfs_h *g,\n"
27411 "                            const char *filename);\n"
27412 "\n"
27413 msgstr ""
27414
27415 #. type: textblock
27416 #: ../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:3639 ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4008
27417 msgid "(Added in 1.5.3)"
27418 msgstr ""
27419
27420 #. type: =head2
27421 #: ../src/guestfs-actions.pod:2141
27422 msgid "guestfs_filesize"
27423 msgstr ""
27424
27425 #. type: verbatim
27426 #: ../src/guestfs-actions.pod:2143
27427 #, no-wrap
27428 msgid ""
27429 " int64_t\n"
27430 " guestfs_filesize (guestfs_h *g,\n"
27431 "                   const char *file);\n"
27432 "\n"
27433 msgstr ""
27434
27435 #. type: textblock
27436 #: ../src/guestfs-actions.pod:2149
27437 msgid ""
27438 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27439 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27440 "devices, use C<guestfs_blockdev_getsize64>."
27441 msgstr ""
27442
27443 #. type: textblock
27444 #: ../src/guestfs-actions.pod:2155
27445 msgid "(Added in 1.0.82)"
27446 msgstr ""
27447
27448 #. type: =head2
27449 #: ../src/guestfs-actions.pod:2157
27450 msgid "guestfs_fill"
27451 msgstr ""
27452
27453 #. type: verbatim
27454 #: ../src/guestfs-actions.pod:2159
27455 #, no-wrap
27456 msgid ""
27457 " int\n"
27458 " guestfs_fill (guestfs_h *g,\n"
27459 "               int c,\n"
27460 "               int len,\n"
27461 "               const char *path);\n"
27462 "\n"
27463 msgstr ""
27464
27465 #. type: textblock
27466 #: ../src/guestfs-actions.pod:2169
27467 msgid ""
27468 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27469 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27470 "bytes use C<guestfs_fill_pattern>."
27471 msgstr ""
27472
27473 #. type: textblock
27474 #: ../src/guestfs-actions.pod:2181
27475 msgid "(Added in 1.0.79)"
27476 msgstr ""
27477
27478 #. type: =head2
27479 #: ../src/guestfs-actions.pod:2183
27480 msgid "guestfs_fill_pattern"
27481 msgstr ""
27482
27483 #. type: verbatim
27484 #: ../src/guestfs-actions.pod:2185
27485 #, no-wrap
27486 msgid ""
27487 " int\n"
27488 " guestfs_fill_pattern (guestfs_h *g,\n"
27489 "                       const char *pattern,\n"
27490 "                       int len,\n"
27491 "                       const char *path);\n"
27492 "\n"
27493 msgstr ""
27494
27495 #. type: textblock
27496 #: ../src/guestfs-actions.pod:2191
27497 msgid ""
27498 "This function is like C<guestfs_fill> except that it creates a new file of "
27499 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27500 "pattern is truncated if necessary to ensure the length of the file is "
27501 "exactly C<len> bytes."
27502 msgstr ""
27503
27504 #. type: textblock
27505 #: ../src/guestfs-actions.pod:2203
27506 msgid "(Added in 1.3.12)"
27507 msgstr ""
27508
27509 #. type: =head2
27510 #: ../src/guestfs-actions.pod:2205
27511 msgid "guestfs_find"
27512 msgstr ""
27513
27514 #. type: verbatim
27515 #: ../src/guestfs-actions.pod:2207
27516 #, no-wrap
27517 msgid ""
27518 " char **\n"
27519 " guestfs_find (guestfs_h *g,\n"
27520 "               const char *directory);\n"
27521 "\n"
27522 msgstr ""
27523
27524 #. type: textblock
27525 #: ../src/guestfs-actions.pod:2223
27526 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27527 msgstr ""
27528
27529 #. type: textblock
27530 #: ../src/guestfs-actions.pod:2236
27531 msgid "See also C<guestfs_find0>."
27532 msgstr ""
27533
27534 #. type: textblock
27535 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4770 ../src/guestfs-actions.pod:6646
27536 msgid "(Added in 1.0.27)"
27537 msgstr ""
27538
27539 #. type: =head2
27540 #: ../src/guestfs-actions.pod:2247
27541 msgid "guestfs_find0"
27542 msgstr ""
27543
27544 #. type: verbatim
27545 #: ../src/guestfs-actions.pod:2249
27546 #, no-wrap
27547 msgid ""
27548 " int\n"
27549 " guestfs_find0 (guestfs_h *g,\n"
27550 "                const char *directory,\n"
27551 "                const char *files);\n"
27552 "\n"
27553 msgstr ""
27554
27555 #. type: textblock
27556 #: ../src/guestfs-actions.pod:2258
27557 msgid ""
27558 "This command works the same way as C<guestfs_find> with the following "
27559 "exceptions:"
27560 msgstr ""
27561
27562 #. type: textblock
27563 #: ../src/guestfs-actions.pod:2285
27564 msgid "(Added in 1.0.74)"
27565 msgstr ""
27566
27567 #. type: =head2
27568 #: ../src/guestfs-actions.pod:2287
27569 msgid "guestfs_findfs_label"
27570 msgstr ""
27571
27572 #. type: verbatim
27573 #: ../src/guestfs-actions.pod:2289
27574 #, no-wrap
27575 msgid ""
27576 " char *\n"
27577 " guestfs_findfs_label (guestfs_h *g,\n"
27578 "                       const char *label);\n"
27579 "\n"
27580 msgstr ""
27581
27582 #. type: textblock
27583 #: ../src/guestfs-actions.pod:2297
27584 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27585 msgstr ""
27586
27587 #. type: =head2
27588 #: ../src/guestfs-actions.pod:2304
27589 msgid "guestfs_findfs_uuid"
27590 msgstr ""
27591
27592 #. type: verbatim
27593 #: ../src/guestfs-actions.pod:2306
27594 #, no-wrap
27595 msgid ""
27596 " char *\n"
27597 " guestfs_findfs_uuid (guestfs_h *g,\n"
27598 "                      const char *uuid);\n"
27599 "\n"
27600 msgstr ""
27601
27602 #. type: textblock
27603 #: ../src/guestfs-actions.pod:2314
27604 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27605 msgstr ""
27606
27607 #. type: =head2
27608 #: ../src/guestfs-actions.pod:2321
27609 msgid "guestfs_fsck"
27610 msgstr ""
27611
27612 #. type: verbatim
27613 #: ../src/guestfs-actions.pod:2323
27614 #, no-wrap
27615 msgid ""
27616 " int\n"
27617 " guestfs_fsck (guestfs_h *g,\n"
27618 "               const char *fstype,\n"
27619 "               const char *device);\n"
27620 "\n"
27621 msgstr ""
27622
27623 #. type: textblock
27624 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8547
27625 msgid "(Added in 1.0.16)"
27626 msgstr ""
27627
27628 #. type: =head2
27629 #: ../src/guestfs-actions.pod:2360
27630 msgid "guestfs_get_append"
27631 msgstr ""
27632
27633 #. type: verbatim
27634 #: ../src/guestfs-actions.pod:2362
27635 #, no-wrap
27636 msgid ""
27637 " const char *\n"
27638 " guestfs_get_append (guestfs_h *g);\n"
27639 "\n"
27640 msgstr ""
27641
27642 #. type: textblock
27643 #: ../src/guestfs-actions.pod:2370
27644 msgid ""
27645 "This function returns a string which may be NULL.  There is no way to return "
27646 "an error from this function.  The string is owned by the guest handle and "
27647 "must I<not> be freed."
27648 msgstr ""
27649
27650 #. type: textblock
27651 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6803 ../src/guestfs-actions.pod:7252 ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7287 ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:8187 ../src/guestfs-actions.pod:8202 ../src/guestfs-actions.pod:8591
27652 msgid "(Added in 1.0.26)"
27653 msgstr ""
27654
27655 #. type: =head2
27656 #: ../src/guestfs-actions.pod:2376
27657 msgid "guestfs_get_attach_method"
27658 msgstr ""
27659
27660 #. type: verbatim
27661 #: ../src/guestfs-actions.pod:2378
27662 #, no-wrap
27663 msgid ""
27664 " char *\n"
27665 " guestfs_get_attach_method (guestfs_h *g);\n"
27666 "\n"
27667 msgstr ""
27668
27669 #. type: textblock
27670 #: ../src/guestfs-actions.pod:2381
27671 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27672 msgstr ""
27673
27674 #. type: textblock
27675 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6833
27676 msgid "(Added in 1.9.8)"
27677 msgstr ""
27678
27679 #. type: =head2
27680 #: ../src/guestfs-actions.pod:2388
27681 msgid "guestfs_get_autosync"
27682 msgstr ""
27683
27684 #. type: verbatim
27685 #: ../src/guestfs-actions.pod:2390
27686 #, no-wrap
27687 msgid ""
27688 " int\n"
27689 " guestfs_get_autosync (guestfs_h *g);\n"
27690 "\n"
27691 msgstr ""
27692
27693 #. type: =head2
27694 #: ../src/guestfs-actions.pod:2399
27695 msgid "guestfs_get_direct"
27696 msgstr ""
27697
27698 #. type: verbatim
27699 #: ../src/guestfs-actions.pod:2401
27700 #, no-wrap
27701 msgid ""
27702 " int\n"
27703 " guestfs_get_direct (guestfs_h *g);\n"
27704 "\n"
27705 msgstr ""
27706
27707 #. type: textblock
27708 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6874
27709 msgid "(Added in 1.0.72)"
27710 msgstr ""
27711
27712 #. type: =head2
27713 #: ../src/guestfs-actions.pod:2410
27714 msgid "guestfs_get_e2label"
27715 msgstr ""
27716
27717 #. type: verbatim
27718 #: ../src/guestfs-actions.pod:2412
27719 #, no-wrap
27720 msgid ""
27721 " char *\n"
27722 " guestfs_get_e2label (guestfs_h *g,\n"
27723 "                      const char *device);\n"
27724 "\n"
27725 msgstr ""
27726
27727 #. type: textblock
27728 #: ../src/guestfs-actions.pod:2416
27729 msgid ""
27730 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27731 "call instead."
27732 msgstr ""
27733
27734 #. type: textblock
27735 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6911
27736 msgid "(Added in 1.0.15)"
27737 msgstr ""
27738
27739 #. type: =head2
27740 #: ../src/guestfs-actions.pod:2431
27741 msgid "guestfs_get_e2uuid"
27742 msgstr ""
27743
27744 #. type: verbatim
27745 #: ../src/guestfs-actions.pod:2433
27746 #, no-wrap
27747 msgid ""
27748 " char *\n"
27749 " guestfs_get_e2uuid (guestfs_h *g,\n"
27750 "                     const char *device);\n"
27751 "\n"
27752 msgstr ""
27753
27754 #. type: textblock
27755 #: ../src/guestfs-actions.pod:2437
27756 msgid ""
27757 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27758 "call instead."
27759 msgstr ""
27760
27761 #. type: =head2
27762 #: ../src/guestfs-actions.pod:2452
27763 msgid "guestfs_get_memsize"
27764 msgstr ""
27765
27766 #. type: verbatim
27767 #: ../src/guestfs-actions.pod:2454
27768 #, no-wrap
27769 msgid ""
27770 " int\n"
27771 " guestfs_get_memsize (guestfs_h *g);\n"
27772 "\n"
27773 msgstr ""
27774
27775 #. type: textblock
27776 #: ../src/guestfs-actions.pod:2460
27777 msgid ""
27778 "If C<guestfs_set_memsize> was not called on this handle, and if "
27779 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27780 "value for memsize."
27781 msgstr ""
27782
27783 #. type: textblock
27784 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5220 ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5448 ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5479 ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5509 ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6932 ../src/guestfs-actions.pod:7222 ../src/guestfs-actions.pod:7956
27785 msgid "(Added in 1.0.55)"
27786 msgstr ""
27787
27788 #. type: =head2
27789 #: ../src/guestfs-actions.pod:2471
27790 msgid "guestfs_get_network"
27791 msgstr ""
27792
27793 #. type: verbatim
27794 #: ../src/guestfs-actions.pod:2473
27795 #, no-wrap
27796 msgid ""
27797 " int\n"
27798 " guestfs_get_network (guestfs_h *g);\n"
27799 "\n"
27800 msgstr ""
27801
27802 #. type: textblock
27803 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6951
27804 msgid "(Added in 1.5.4)"
27805 msgstr ""
27806
27807 #. type: =head2
27808 #: ../src/guestfs-actions.pod:2482
27809 msgid "guestfs_get_path"
27810 msgstr ""
27811
27812 #. type: verbatim
27813 #: ../src/guestfs-actions.pod:2484
27814 #, no-wrap
27815 msgid ""
27816 " const char *\n"
27817 " guestfs_get_path (guestfs_h *g);\n"
27818 "\n"
27819 msgstr ""
27820
27821 #. type: textblock
27822 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27823 msgid ""
27824 "This function returns a string, or NULL on error.  The string is owned by "
27825 "the guest handle and must I<not> be freed."
27826 msgstr ""
27827
27828 #. type: =head2
27829 #: ../src/guestfs-actions.pod:2497
27830 msgid "guestfs_get_pgroup"
27831 msgstr ""
27832
27833 #. type: verbatim
27834 #: ../src/guestfs-actions.pod:2499
27835 #, no-wrap
27836 msgid ""
27837 " int\n"
27838 " guestfs_get_pgroup (guestfs_h *g);\n"
27839 "\n"
27840 msgstr ""
27841
27842 #. type: textblock
27843 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6987 ../src/guestfs-actions.pod:8448
27844 msgid "(Added in 1.11.18)"
27845 msgstr ""
27846
27847 #. type: =head2
27848 #: ../src/guestfs-actions.pod:2508
27849 msgid "guestfs_get_pid"
27850 msgstr ""
27851
27852 #. type: verbatim
27853 #: ../src/guestfs-actions.pod:2510
27854 #, no-wrap
27855 msgid ""
27856 " int\n"
27857 " guestfs_get_pid (guestfs_h *g);\n"
27858 "\n"
27859 msgstr ""
27860
27861 #. type: textblock
27862 #: ../src/guestfs-actions.pod:2520
27863 msgid "(Added in 1.0.56)"
27864 msgstr ""
27865
27866 #. type: =head2
27867 #: ../src/guestfs-actions.pod:2522
27868 msgid "guestfs_get_qemu"
27869 msgstr ""
27870
27871 #. type: verbatim
27872 #: ../src/guestfs-actions.pod:2524
27873 #, no-wrap
27874 msgid ""
27875 " const char *\n"
27876 " guestfs_get_qemu (guestfs_h *g);\n"
27877 "\n"
27878 msgstr ""
27879
27880 #. type: textblock
27881 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:7015
27882 msgid "(Added in 1.0.6)"
27883 msgstr ""
27884
27885 #. type: =head2
27886 #: ../src/guestfs-actions.pod:2537
27887 msgid "guestfs_get_recovery_proc"
27888 msgstr ""
27889
27890 #. type: verbatim
27891 #: ../src/guestfs-actions.pod:2539
27892 #, no-wrap
27893 msgid ""
27894 " int\n"
27895 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27896 "\n"
27897 msgstr ""
27898
27899 #. type: textblock
27900 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4474 ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6597 ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7757 ../src/guestfs-actions.pod:8071
27901 msgid "(Added in 1.0.77)"
27902 msgstr ""
27903
27904 #. type: =head2
27905 #: ../src/guestfs-actions.pod:2548
27906 msgid "guestfs_get_selinux"
27907 msgstr ""
27908
27909 #. type: verbatim
27910 #: ../src/guestfs-actions.pod:2550
27911 #, no-wrap
27912 msgid ""
27913 " int\n"
27914 " guestfs_get_selinux (guestfs_h *g);\n"
27915 "\n"
27916 msgstr ""
27917
27918 #. type: textblock
27919 #: ../src/guestfs-actions.pod:2553
27920 msgid ""
27921 "This returns the current setting of the selinux flag which is passed to the "
27922 "appliance at boot time.  See C<guestfs_set_selinux>."
27923 msgstr ""
27924
27925 #. type: textblock
27926 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635 ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7132
27927 msgid "(Added in 1.0.67)"
27928 msgstr ""
27929
27930 #. type: =head2
27931 #: ../src/guestfs-actions.pod:2563
27932 msgid "guestfs_get_smp"
27933 msgstr ""
27934
27935 #. type: verbatim
27936 #: ../src/guestfs-actions.pod:2565
27937 #, no-wrap
27938 msgid ""
27939 " int\n"
27940 " guestfs_get_smp (guestfs_h *g);\n"
27941 "\n"
27942 msgstr ""
27943
27944 #. type: =head2
27945 #: ../src/guestfs-actions.pod:2574
27946 msgid "guestfs_get_state"
27947 msgstr ""
27948
27949 #. type: verbatim
27950 #: ../src/guestfs-actions.pod:2576
27951 #, no-wrap
27952 msgid ""
27953 " int\n"
27954 " guestfs_get_state (guestfs_h *g);\n"
27955 "\n"
27956 msgstr ""
27957
27958 #. type: =head2
27959 #: ../src/guestfs-actions.pod:2588
27960 msgid "guestfs_get_trace"
27961 msgstr ""
27962
27963 #. type: verbatim
27964 #: ../src/guestfs-actions.pod:2590
27965 #, no-wrap
27966 msgid ""
27967 " int\n"
27968 " guestfs_get_trace (guestfs_h *g);\n"
27969 "\n"
27970 msgstr ""
27971
27972 #. type: =head2
27973 #: ../src/guestfs-actions.pod:2599
27974 msgid "guestfs_get_umask"
27975 msgstr ""
27976
27977 #. type: verbatim
27978 #: ../src/guestfs-actions.pod:2601
27979 #, no-wrap
27980 msgid ""
27981 " int\n"
27982 " guestfs_get_umask (guestfs_h *g);\n"
27983 "\n"
27984 msgstr ""
27985
27986 #. type: textblock
27987 #: ../src/guestfs-actions.pod:2604
27988 msgid ""
27989 "Return the current umask.  By default the umask is C<022> unless it has been "
27990 "set by calling C<guestfs_umask>."
27991 msgstr ""
27992
27993 #. type: =head2
27994 #: ../src/guestfs-actions.pod:2611
27995 msgid "guestfs_get_verbose"
27996 msgstr ""
27997
27998 #. type: verbatim
27999 #: ../src/guestfs-actions.pod:2613
28000 #, no-wrap
28001 msgid ""
28002 " int\n"
28003 " guestfs_get_verbose (guestfs_h *g);\n"
28004 "\n"
28005 msgstr ""
28006
28007 #. type: =head2
28008 #: ../src/guestfs-actions.pod:2622
28009 msgid "guestfs_getcon"
28010 msgstr ""
28011
28012 #. type: verbatim
28013 #: ../src/guestfs-actions.pod:2624
28014 #, no-wrap
28015 msgid ""
28016 " char *\n"
28017 " guestfs_getcon (guestfs_h *g);\n"
28018 "\n"
28019 msgstr ""
28020
28021 #. type: textblock
28022 #: ../src/guestfs-actions.pod:2629
28023 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28024 msgstr ""
28025
28026 #. type: =head2
28027 #: ../src/guestfs-actions.pod:2637
28028 msgid "guestfs_getxattr"
28029 msgstr ""
28030
28031 #. type: verbatim
28032 #: ../src/guestfs-actions.pod:2639
28033 #, no-wrap
28034 msgid ""
28035 " char *\n"
28036 " guestfs_getxattr (guestfs_h *g,\n"
28037 "                   const char *path,\n"
28038 "                   const char *name,\n"
28039 "                   size_t *size_r);\n"
28040 "\n"
28041 msgstr ""
28042
28043 #. type: textblock
28044 #: ../src/guestfs-actions.pod:2645
28045 msgid ""
28046 "Get a single extended attribute from file C<path> named C<name>.  This call "
28047 "follows symlinks.  If you want to lookup an extended attribute for the "
28048 "symlink itself, use C<guestfs_lgetxattr>."
28049 msgstr ""
28050
28051 #. type: textblock
28052 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
28053 msgid ""
28054 "Normally it is better to get all extended attributes from a file in one go "
28055 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28056 "implementations are buggy and do not provide a way to list out attributes.  "
28057 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28058 "extended attributes you want in advance and call this function."
28059 msgstr ""
28060
28061 #. type: textblock
28062 #: ../src/guestfs-actions.pod:2659
28063 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28064 msgstr ""
28065
28066 #. type: textblock
28067 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6273 ../src/guestfs-actions.pod:6454
28068 msgid ""
28069 "This function returns a buffer, or NULL on error.  The size of the returned "
28070 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28071 "after use>."
28072 msgstr ""
28073
28074 #. type: textblock
28075 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
28076 msgid "(Added in 1.7.24)"
28077 msgstr ""
28078
28079 #. type: =head2
28080 #: ../src/guestfs-actions.pod:2667
28081 msgid "guestfs_getxattrs"
28082 msgstr ""
28083
28084 #. type: verbatim
28085 #: ../src/guestfs-actions.pod:2669
28086 #, no-wrap
28087 msgid ""
28088 " struct guestfs_xattr_list *\n"
28089 " guestfs_getxattrs (guestfs_h *g,\n"
28090 "                    const char *path);\n"
28091 "\n"
28092 msgstr ""
28093
28094 #. type: textblock
28095 #: ../src/guestfs-actions.pod:2679
28096 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28097 msgstr ""
28098
28099 #. type: textblock
28100 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4864
28101 msgid ""
28102 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28103 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28104 msgstr ""
28105
28106 #. type: textblock
28107 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176 ../src/guestfs-actions.pod:4388 ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:6627 ../src/guestfs-actions.pod:7151 ../src/guestfs-actions.pod:8656
28108 msgid "(Added in 1.0.59)"
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:2687
28113 msgid "guestfs_glob_expand"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:2689
28118 #, no-wrap
28119 msgid ""
28120 " char **\n"
28121 " guestfs_glob_expand (guestfs_h *g,\n"
28122 "                      const char *pattern);\n"
28123 "\n"
28124 msgstr ""
28125
28126 #. type: textblock
28127 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7335 ../src/guestfs-actions.pod:7352
28128 msgid "(Added in 1.0.50)"
28129 msgstr ""
28130
28131 #. type: =head2
28132 #: ../src/guestfs-actions.pod:2710
28133 msgid "guestfs_grep"
28134 msgstr ""
28135
28136 #. type: verbatim
28137 #: ../src/guestfs-actions.pod:2712
28138 #, no-wrap
28139 msgid ""
28140 " char **\n"
28141 " guestfs_grep (guestfs_h *g,\n"
28142 "               const char *regex,\n"
28143 "               const char *path);\n"
28144 "\n"
28145 msgstr ""
28146
28147 #. type: =head2
28148 #: ../src/guestfs-actions.pod:2729
28149 msgid "guestfs_grepi"
28150 msgstr ""
28151
28152 #. type: verbatim
28153 #: ../src/guestfs-actions.pod:2731
28154 #, no-wrap
28155 msgid ""
28156 " char **\n"
28157 " guestfs_grepi (guestfs_h *g,\n"
28158 "                const char *regex,\n"
28159 "                const char *path);\n"
28160 "\n"
28161 msgstr ""
28162
28163 #. type: =head2
28164 #: ../src/guestfs-actions.pod:2748
28165 msgid "guestfs_grub_install"
28166 msgstr ""
28167
28168 #. type: verbatim
28169 #: ../src/guestfs-actions.pod:2750
28170 #, no-wrap
28171 msgid ""
28172 " int\n"
28173 " guestfs_grub_install (guestfs_h *g,\n"
28174 "                       const char *root,\n"
28175 "                       const char *device);\n"
28176 "\n"
28177 msgstr ""
28178
28179 #. type: textblock
28180 #: ../src/guestfs-actions.pod:2793
28181 msgid "(Added in 1.0.17)"
28182 msgstr ""
28183
28184 #. type: =head2
28185 #: ../src/guestfs-actions.pod:2795
28186 msgid "guestfs_head"
28187 msgstr ""
28188
28189 #. type: verbatim
28190 #: ../src/guestfs-actions.pod:2797
28191 #, no-wrap
28192 msgid ""
28193 " char **\n"
28194 " guestfs_head (guestfs_h *g,\n"
28195 "               const char *path);\n"
28196 "\n"
28197 msgstr ""
28198
28199 #. type: =head2
28200 #: ../src/guestfs-actions.pod:2813
28201 msgid "guestfs_head_n"
28202 msgstr ""
28203
28204 #. type: verbatim
28205 #: ../src/guestfs-actions.pod:2815
28206 #, no-wrap
28207 msgid ""
28208 " char **\n"
28209 " guestfs_head_n (guestfs_h *g,\n"
28210 "                 int nrlines,\n"
28211 "                 const char *path);\n"
28212 "\n"
28213 msgstr ""
28214
28215 #. type: =head2
28216 #: ../src/guestfs-actions.pod:2837
28217 msgid "guestfs_hexdump"
28218 msgstr ""
28219
28220 #. type: verbatim
28221 #: ../src/guestfs-actions.pod:2839
28222 #, no-wrap
28223 msgid ""
28224 " char *\n"
28225 " guestfs_hexdump (guestfs_h *g,\n"
28226 "                  const char *path);\n"
28227 "\n"
28228 msgstr ""
28229
28230 #. type: textblock
28231 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7416 ../src/guestfs-actions.pod:7471
28232 msgid "(Added in 1.0.22)"
28233 msgstr ""
28234
28235 #. type: =head2
28236 #: ../src/guestfs-actions.pod:2854
28237 msgid "guestfs_initrd_cat"
28238 msgstr ""
28239
28240 #. type: verbatim
28241 #: ../src/guestfs-actions.pod:2856
28242 #, no-wrap
28243 msgid ""
28244 " char *\n"
28245 " guestfs_initrd_cat (guestfs_h *g,\n"
28246 "                     const char *initrdpath,\n"
28247 "                     const char *filename,\n"
28248 "                     size_t *size_r);\n"
28249 "\n"
28250 msgstr ""
28251
28252 #. type: textblock
28253 #: ../src/guestfs-actions.pod:2872
28254 msgid "See also C<guestfs_initrd_list>."
28255 msgstr ""
28256
28257 #. type: =head2
28258 #: ../src/guestfs-actions.pod:2883
28259 msgid "guestfs_initrd_list"
28260 msgstr ""
28261
28262 #. type: verbatim
28263 #: ../src/guestfs-actions.pod:2885
28264 #, no-wrap
28265 msgid ""
28266 " char **\n"
28267 " guestfs_initrd_list (guestfs_h *g,\n"
28268 "                      const char *path);\n"
28269 "\n"
28270 msgstr ""
28271
28272 #. type: =head2
28273 #: ../src/guestfs-actions.pod:2905
28274 msgid "guestfs_inotify_add_watch"
28275 msgstr ""
28276
28277 #. type: verbatim
28278 #: ../src/guestfs-actions.pod:2907
28279 #, no-wrap
28280 msgid ""
28281 " int64_t\n"
28282 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28283 "                            const char *path,\n"
28284 "                            int mask);\n"
28285 "\n"
28286 msgstr ""
28287
28288 #. type: =head2
28289 #: ../src/guestfs-actions.pod:2926
28290 msgid "guestfs_inotify_close"
28291 msgstr ""
28292
28293 #. type: verbatim
28294 #: ../src/guestfs-actions.pod:2928
28295 #, no-wrap
28296 msgid ""
28297 " int\n"
28298 " guestfs_inotify_close (guestfs_h *g);\n"
28299 "\n"
28300 msgstr ""
28301
28302 #. type: =head2
28303 #: ../src/guestfs-actions.pod:2939
28304 msgid "guestfs_inotify_files"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../src/guestfs-actions.pod:2941
28309 #, no-wrap
28310 msgid ""
28311 " char **\n"
28312 " guestfs_inotify_files (guestfs_h *g);\n"
28313 "\n"
28314 msgstr ""
28315
28316 #. type: textblock
28317 #: ../src/guestfs-actions.pod:2944
28318 msgid ""
28319 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28320 "returns a list of pathnames of objects that were touched.  The returned "
28321 "pathnames are sorted and deduplicated."
28322 msgstr ""
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:2954
28326 msgid "guestfs_inotify_init"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:2956
28331 #, no-wrap
28332 msgid ""
28333 " int\n"
28334 " guestfs_inotify_init (guestfs_h *g,\n"
28335 "                       int maxevents);\n"
28336 "\n"
28337 msgstr ""
28338
28339 #. type: textblock
28340 #: ../src/guestfs-actions.pod:2964
28341 msgid ""
28342 "C<maxevents> is the maximum number of events which will be queued up between "
28343 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28344 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28345 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28346 "throws away events, but records the fact that it threw them away by setting "
28347 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28348 "C<guestfs_inotify_read>)."
28349 msgstr ""
28350
28351 #. type: textblock
28352 #: ../src/guestfs-actions.pod:2974
28353 msgid ""
28354 "Before any events are generated, you have to add some watches to the "
28355 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28356 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28357 msgstr ""
28358
28359 #. type: textblock
28360 #: ../src/guestfs-actions.pod:2980
28361 msgid ""
28362 "Queued up events should be read periodically by calling "
28363 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28364 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28365 "often enough then you risk the internal queue overflowing."
28366 msgstr ""
28367
28368 #. type: textblock
28369 #: ../src/guestfs-actions.pod:2987
28370 msgid ""
28371 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28372 "This also removes any watches automatically."
28373 msgstr ""
28374
28375 #. type: =head2
28376 #: ../src/guestfs-actions.pod:3000
28377 msgid "guestfs_inotify_read"
28378 msgstr ""
28379
28380 #. type: verbatim
28381 #: ../src/guestfs-actions.pod:3002
28382 #, no-wrap
28383 msgid ""
28384 " struct guestfs_inotify_event_list *\n"
28385 " guestfs_inotify_read (guestfs_h *g);\n"
28386 "\n"
28387 msgstr ""
28388
28389 #. type: textblock
28390 #: ../src/guestfs-actions.pod:3016
28391 msgid ""
28392 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28393 "there was an error.  I<The caller must call "
28394 "C<guestfs_free_inotify_event_list> after use>."
28395 msgstr ""
28396
28397 #. type: =head2
28398 #: ../src/guestfs-actions.pod:3022
28399 msgid "guestfs_inotify_rm_watch"
28400 msgstr ""
28401
28402 #. type: verbatim
28403 #: ../src/guestfs-actions.pod:3024
28404 #, no-wrap
28405 msgid ""
28406 " int\n"
28407 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28408 "                           int wd);\n"
28409 "\n"
28410 msgstr ""
28411
28412 #. type: textblock
28413 #: ../src/guestfs-actions.pod:3028
28414 msgid ""
28415 "Remove a previously defined inotify watch.  See "
28416 "C<guestfs_inotify_add_watch>."
28417 msgstr ""
28418
28419 #. type: =head2
28420 #: ../src/guestfs-actions.pod:3035
28421 msgid "guestfs_inspect_get_arch"
28422 msgstr ""
28423
28424 #. type: verbatim
28425 #: ../src/guestfs-actions.pod:3037
28426 #, no-wrap
28427 msgid ""
28428 " char *\n"
28429 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28430 "                           const char *root);\n"
28431 "\n"
28432 msgstr ""
28433
28434 #. type: textblock
28435 #: ../src/guestfs-actions.pod:3041
28436 msgid ""
28437 "This returns the architecture of the inspected operating system.  The "
28438 "possible return values are listed under C<guestfs_file_architecture>."
28439 msgstr ""
28440
28441 #. type: =head2
28442 #: ../src/guestfs-actions.pod:3055
28443 msgid "guestfs_inspect_get_distro"
28444 msgstr ""
28445
28446 #. type: verbatim
28447 #: ../src/guestfs-actions.pod:3057
28448 #, no-wrap
28449 msgid ""
28450 " char *\n"
28451 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28452 "                             const char *root);\n"
28453 "\n"
28454 msgstr ""
28455
28456 #. type: =head2
28457 #: ../src/guestfs-actions.pod:3157
28458 msgid "guestfs_inspect_get_drive_mappings"
28459 msgstr ""
28460
28461 #. type: verbatim
28462 #: ../src/guestfs-actions.pod:3159
28463 #, no-wrap
28464 msgid ""
28465 " char **\n"
28466 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28467 "                                     const char *root);\n"
28468 "\n"
28469 msgstr ""
28470
28471 #. type: textblock
28472 #: ../src/guestfs-actions.pod:3188
28473 msgid ""
28474 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28475 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28476 msgstr ""
28477
28478 #. type: textblock
28479 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:7895
28480 msgid ""
28481 "This function returns a NULL-terminated array of strings, or NULL if there "
28482 "was an error.  The array of strings will always have length C<2n+1>, where "
28483 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28484 "caller must free the strings and the array after use>."
28485 msgstr ""
28486
28487 #. type: textblock
28488 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
28489 msgid "(Added in 1.9.17)"
28490 msgstr ""
28491
28492 #. type: =head2
28493 #: ../src/guestfs-actions.pod:3200
28494 msgid "guestfs_inspect_get_filesystems"
28495 msgstr ""
28496
28497 #. type: verbatim
28498 #: ../src/guestfs-actions.pod:3202
28499 #, no-wrap
28500 msgid ""
28501 " char **\n"
28502 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28503 "                                  const char *root);\n"
28504 "\n"
28505 msgstr ""
28506
28507 #. type: textblock
28508 #: ../src/guestfs-actions.pod:3214
28509 msgid ""
28510 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28511 "C<guestfs_inspect_get_mountpoints>."
28512 msgstr ""
28513
28514 #. type: =head2
28515 #: ../src/guestfs-actions.pod:3223
28516 msgid "guestfs_inspect_get_format"
28517 msgstr ""
28518
28519 #. type: verbatim
28520 #: ../src/guestfs-actions.pod:3225
28521 #, no-wrap
28522 msgid ""
28523 " char *\n"
28524 " guestfs_inspect_get_format (guestfs_h *g,\n"
28525 "                             const char *root);\n"
28526 "\n"
28527 msgstr ""
28528
28529 #. type: textblock
28530 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:6665
28531 msgid "(Added in 1.9.4)"
28532 msgstr ""
28533
28534 #. type: =head2
28535 #: ../src/guestfs-actions.pod:3261
28536 msgid "guestfs_inspect_get_hostname"
28537 msgstr ""
28538
28539 #. type: verbatim
28540 #: ../src/guestfs-actions.pod:3263
28541 #, no-wrap
28542 msgid ""
28543 " char *\n"
28544 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28545 "                               const char *root);\n"
28546 "\n"
28547 msgstr ""
28548
28549 #. type: textblock
28550 #: ../src/guestfs-actions.pod:3278
28551 msgid "(Added in 1.7.9)"
28552 msgstr ""
28553
28554 #. type: =head2
28555 #: ../src/guestfs-actions.pod:3280
28556 msgid "guestfs_inspect_get_icon"
28557 msgstr ""
28558
28559 #. type: verbatim
28560 #: ../src/guestfs-actions.pod:3282
28561 #, no-wrap
28562 msgid ""
28563 " char *\n"
28564 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28565 "                           const char *root,\n"
28566 "                           size_t *size_r,\n"
28567 "                           ...);\n"
28568 "\n"
28569 msgstr ""
28570
28571 #. type: verbatim
28572 #: ../src/guestfs-actions.pod:3293
28573 #, no-wrap
28574 msgid ""
28575 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28576 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28577 "\n"
28578 msgstr ""
28579
28580 #. type: textblock
28581 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:5597
28582 msgid "(Added in 1.11.12)"
28583 msgstr ""
28584
28585 #. type: =head2
28586 #: ../src/guestfs-actions.pod:3362
28587 msgid "guestfs_inspect_get_icon_va"
28588 msgstr ""
28589
28590 #. type: verbatim
28591 #: ../src/guestfs-actions.pod:3364
28592 #, no-wrap
28593 msgid ""
28594 " char *\n"
28595 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28596 "                              const char *root,\n"
28597 "                              size_t *size_r,\n"
28598 "                              va_list args);\n"
28599 "\n"
28600 msgstr ""
28601
28602 #. type: textblock
28603 #: ../src/guestfs-actions.pod:3370
28604 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28605 msgstr ""
28606
28607 #. type: =head2
28608 #: ../src/guestfs-actions.pod:3374
28609 msgid "guestfs_inspect_get_icon_argv"
28610 msgstr ""
28611
28612 #. type: verbatim
28613 #: ../src/guestfs-actions.pod:3376
28614 #, no-wrap
28615 msgid ""
28616 " char *\n"
28617 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28618 "                                const char *root,\n"
28619 "                                size_t *size_r,\n"
28620 "                                const struct guestfs_inspect_get_icon_argv "
28621 "*optargs);\n"
28622 "\n"
28623 msgstr ""
28624
28625 #. type: textblock
28626 #: ../src/guestfs-actions.pod:3382
28627 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28628 msgstr ""
28629
28630 #. type: =head2
28631 #: ../src/guestfs-actions.pod:3386
28632 msgid "guestfs_inspect_get_major_version"
28633 msgstr ""
28634
28635 #. type: verbatim
28636 #: ../src/guestfs-actions.pod:3388
28637 #, no-wrap
28638 msgid ""
28639 " int\n"
28640 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28641 "                                    const char *root);\n"
28642 "\n"
28643 msgstr ""
28644
28645 #. type: =head2
28646 #: ../src/guestfs-actions.pod:3410
28647 msgid "guestfs_inspect_get_minor_version"
28648 msgstr ""
28649
28650 #. type: verbatim
28651 #: ../src/guestfs-actions.pod:3412
28652 #, no-wrap
28653 msgid ""
28654 " int\n"
28655 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28656 "                                    const char *root);\n"
28657 "\n"
28658 msgstr ""
28659
28660 #. type: textblock
28661 #: ../src/guestfs-actions.pod:3421
28662 msgid ""
28663 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28664 "C<guestfs_inspect_get_major_version>."
28665 msgstr ""
28666
28667 #. type: =head2
28668 #: ../src/guestfs-actions.pod:3428
28669 msgid "guestfs_inspect_get_mountpoints"
28670 msgstr ""
28671
28672 #. type: verbatim
28673 #: ../src/guestfs-actions.pod:3430
28674 #, no-wrap
28675 msgid ""
28676 " char **\n"
28677 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28678 "                                  const char *root);\n"
28679 "\n"
28680 msgstr ""
28681
28682 #. type: textblock
28683 #: ../src/guestfs-actions.pod:3451
28684 msgid ""
28685 "For operating systems like Windows which still use drive letters, this call "
28686 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28687 "information about the mapping of drive letters to partitions, see "
28688 "C<guestfs_inspect_get_drive_mappings>."
28689 msgstr ""
28690
28691 #. type: textblock
28692 #: ../src/guestfs-actions.pod:3457
28693 msgid ""
28694 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28695 "C<guestfs_inspect_get_filesystems>."
28696 msgstr ""
28697
28698 #. type: =head2
28699 #: ../src/guestfs-actions.pod:3468
28700 msgid "guestfs_inspect_get_package_format"
28701 msgstr ""
28702
28703 #. type: verbatim
28704 #: ../src/guestfs-actions.pod:3470
28705 #, no-wrap
28706 msgid ""
28707 " char *\n"
28708 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28709 "                                     const char *root);\n"
28710 "\n"
28711 msgstr ""
28712
28713 #. type: textblock
28714 #: ../src/guestfs-actions.pod:3474
28715 msgid ""
28716 "This function and C<guestfs_inspect_get_package_management> return the "
28717 "package format and package management tool used by the inspected operating "
28718 "system.  For example for Fedora these functions would return C<rpm> (package "
28719 "format) and C<yum> (package management)."
28720 msgstr ""
28721
28722 #. type: textblock
28723 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28724 msgid "(Added in 1.7.5)"
28725 msgstr ""
28726
28727 #. type: =head2
28728 #: ../src/guestfs-actions.pod:3495
28729 msgid "guestfs_inspect_get_package_management"
28730 msgstr ""
28731
28732 #. type: verbatim
28733 #: ../src/guestfs-actions.pod:3497
28734 #, no-wrap
28735 msgid ""
28736 " char *\n"
28737 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28738 "                                         const char *root);\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: textblock
28743 #: ../src/guestfs-actions.pod:3501
28744 msgid ""
28745 "C<guestfs_inspect_get_package_format> and this function return the package "
28746 "format and package management tool used by the inspected operating system.  "
28747 "For example for Fedora these functions would return C<rpm> (package format) "
28748 "and C<yum> (package management)."
28749 msgstr ""
28750
28751 #. type: =head2
28752 #: ../src/guestfs-actions.pod:3523
28753 msgid "guestfs_inspect_get_product_name"
28754 msgstr ""
28755
28756 #. type: verbatim
28757 #: ../src/guestfs-actions.pod:3525
28758 #, no-wrap
28759 msgid ""
28760 " char *\n"
28761 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28762 "                                   const char *root);\n"
28763 "\n"
28764 msgstr ""
28765
28766 #. type: =head2
28767 #: ../src/guestfs-actions.pod:3544
28768 msgid "guestfs_inspect_get_product_variant"
28769 msgstr ""
28770
28771 #. type: verbatim
28772 #: ../src/guestfs-actions.pod:3546
28773 #, no-wrap
28774 msgid ""
28775 " char *\n"
28776 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28777 "                                      const char *root);\n"
28778 "\n"
28779 msgstr ""
28780
28781 #. type: textblock
28782 #: ../src/guestfs-actions.pod:3569
28783 msgid ""
28784 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28785 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28786 msgstr ""
28787
28788 #. type: textblock
28789 #: ../src/guestfs-actions.pod:3576
28790 msgid "(Added in 1.9.13)"
28791 msgstr ""
28792
28793 #. type: =head2
28794 #: ../src/guestfs-actions.pod:3578
28795 msgid "guestfs_inspect_get_roots"
28796 msgstr ""
28797
28798 #. type: verbatim
28799 #: ../src/guestfs-actions.pod:3580
28800 #, no-wrap
28801 msgid ""
28802 " char **\n"
28803 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28804 "\n"
28805 msgstr ""
28806
28807 #. type: textblock
28808 #: ../src/guestfs-actions.pod:3583
28809 msgid ""
28810 "This function is a convenient way to get the list of root devices, as "
28811 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28812 "the whole inspection process."
28813 msgstr ""
28814
28815 #. type: textblock
28816 #: ../src/guestfs-actions.pod:3587
28817 msgid ""
28818 "This returns an empty list if either no root devices were found or the "
28819 "caller has not called C<guestfs_inspect_os>."
28820 msgstr ""
28821
28822 #. type: textblock
28823 #: ../src/guestfs-actions.pod:3596
28824 msgid "(Added in 1.7.3)"
28825 msgstr ""
28826
28827 #. type: =head2
28828 #: ../src/guestfs-actions.pod:3598
28829 msgid "guestfs_inspect_get_type"
28830 msgstr ""
28831
28832 #. type: verbatim
28833 #: ../src/guestfs-actions.pod:3600
28834 #, no-wrap
28835 msgid ""
28836 " char *\n"
28837 " guestfs_inspect_get_type (guestfs_h *g,\n"
28838 "                           const char *root);\n"
28839 "\n"
28840 msgstr ""
28841
28842 #. type: =head2
28843 #: ../src/guestfs-actions.pod:3641
28844 msgid "guestfs_inspect_get_windows_current_control_set"
28845 msgstr ""
28846
28847 #. type: verbatim
28848 #: ../src/guestfs-actions.pod:3643
28849 #, no-wrap
28850 msgid ""
28851 " char *\n"
28852 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28853 "                                                  const char *root);\n"
28854 "\n"
28855 msgstr ""
28856
28857 #. type: =head2
28858 #: ../src/guestfs-actions.pod:3661
28859 msgid "guestfs_inspect_get_windows_systemroot"
28860 msgstr ""
28861
28862 #. type: verbatim
28863 #: ../src/guestfs-actions.pod:3663
28864 #, no-wrap
28865 msgid ""
28866 " char *\n"
28867 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28868 "                                         const char *root);\n"
28869 "\n"
28870 msgstr ""
28871
28872 #. type: textblock
28873 #: ../src/guestfs-actions.pod:3679
28874 msgid "(Added in 1.5.25)"
28875 msgstr ""
28876
28877 #. type: =head2
28878 #: ../src/guestfs-actions.pod:3681
28879 msgid "guestfs_inspect_is_live"
28880 msgstr ""
28881
28882 #. type: verbatim
28883 #: ../src/guestfs-actions.pod:3683
28884 #, no-wrap
28885 msgid ""
28886 " int\n"
28887 " guestfs_inspect_is_live (guestfs_h *g,\n"
28888 "                          const char *root);\n"
28889 "\n"
28890 msgstr ""
28891
28892 #. type: textblock
28893 #: ../src/guestfs-actions.pod:3687
28894 msgid ""
28895 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28896 "disk), then this returns true if a live image was detected on the disk."
28897 msgstr ""
28898
28899 #. type: =head2
28900 #: ../src/guestfs-actions.pod:3697
28901 msgid "guestfs_inspect_is_multipart"
28902 msgstr ""
28903
28904 #. type: verbatim
28905 #: ../src/guestfs-actions.pod:3699
28906 #, no-wrap
28907 msgid ""
28908 " int\n"
28909 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28910 "                               const char *root);\n"
28911 "\n"
28912 msgstr ""
28913
28914 #. type: textblock
28915 #: ../src/guestfs-actions.pod:3703
28916 msgid ""
28917 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28918 "disk), then this returns true if the disk is part of a set."
28919 msgstr ""
28920
28921 #. type: =head2
28922 #: ../src/guestfs-actions.pod:3713
28923 msgid "guestfs_inspect_is_netinst"
28924 msgstr ""
28925
28926 #. type: verbatim
28927 #: ../src/guestfs-actions.pod:3715
28928 #, no-wrap
28929 msgid ""
28930 " int\n"
28931 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28932 "                             const char *root);\n"
28933 "\n"
28934 msgstr ""
28935
28936 #. type: textblock
28937 #: ../src/guestfs-actions.pod:3719
28938 msgid ""
28939 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28940 "disk), then this returns true if the disk is a network installer, ie. not a "
28941 "self-contained install CD but one which is likely to require network access "
28942 "to complete the install."
28943 msgstr ""
28944
28945 #. type: =head2
28946 #: ../src/guestfs-actions.pod:3731
28947 msgid "guestfs_inspect_list_applications"
28948 msgstr ""
28949
28950 #. type: verbatim
28951 #: ../src/guestfs-actions.pod:3733
28952 #, no-wrap
28953 msgid ""
28954 " struct guestfs_application_list *\n"
28955 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28956 "                                    const char *root);\n"
28957 "\n"
28958 msgstr ""
28959
28960 #. type: textblock
28961 #: ../src/guestfs-actions.pod:3739
28962 msgid ""
28963 "I<Note:> This call works differently from other parts of the inspection "
28964 "API.  You have to call C<guestfs_inspect_os>, then "
28965 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28966 "this.  Listing applications is a significantly more difficult operation "
28967 "which requires access to the full filesystem.  Also note that unlike the "
28968 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28969 "the libguestfs handle, this call actually reads parts of the mounted "
28970 "filesystems during the call."
28971 msgstr ""
28972
28973 #. type: textblock
28974 #: ../src/guestfs-actions.pod:3829
28975 msgid ""
28976 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28977 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28978 "after use>."
28979 msgstr ""
28980
28981 #. type: textblock
28982 #: ../src/guestfs-actions.pod:3833
28983 msgid "(Added in 1.7.8)"
28984 msgstr ""
28985
28986 #. type: =head2
28987 #: ../src/guestfs-actions.pod:3835
28988 msgid "guestfs_inspect_os"
28989 msgstr ""
28990
28991 #. type: verbatim
28992 #: ../src/guestfs-actions.pod:3837
28993 #, no-wrap
28994 msgid ""
28995 " char **\n"
28996 " guestfs_inspect_os (guestfs_h *g);\n"
28997 "\n"
28998 msgstr ""
28999
29000 #. type: textblock
29001 #: ../src/guestfs-actions.pod:3853
29002 msgid ""
29003 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29004 "functions in order to query further information about each operating system, "
29005 "such as the name and version."
29006 msgstr ""
29007
29008 #. type: textblock
29009 #: ../src/guestfs-actions.pod:3858
29010 msgid ""
29011 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29012 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29013 "the contents.  This should be called with no disks currently mounted.  The "
29014 "function may also use Augeas, so any existing Augeas handle will be closed."
29015 msgstr ""
29016
29017 #. type: textblock
29018 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4296
29019 msgid "See also C<guestfs_list_filesystems>."
29020 msgstr ""
29021
29022 #. type: =head2
29023 #: ../src/guestfs-actions.pod:3878
29024 msgid "guestfs_is_blockdev"
29025 msgstr ""
29026
29027 #. type: verbatim
29028 #: ../src/guestfs-actions.pod:3880
29029 #, no-wrap
29030 msgid ""
29031 " int\n"
29032 " guestfs_is_blockdev (guestfs_h *g,\n"
29033 "                      const char *path);\n"
29034 "\n"
29035 msgstr ""
29036
29037 #. type: textblock
29038 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033 ../src/guestfs-actions.pod:4048
29039 msgid "See also C<guestfs_stat>."
29040 msgstr ""
29041
29042 #. type: textblock
29043 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037 ../src/guestfs-actions.pod:4052
29044 msgid "(Added in 1.5.10)"
29045 msgstr ""
29046
29047 #. type: =head2
29048 #: ../src/guestfs-actions.pod:3893
29049 msgid "guestfs_is_busy"
29050 msgstr ""
29051
29052 #. type: verbatim
29053 #: ../src/guestfs-actions.pod:3895
29054 #, no-wrap
29055 msgid ""
29056 " int\n"
29057 " guestfs_is_busy (guestfs_h *g);\n"
29058 "\n"
29059 msgstr ""
29060
29061 #. type: =head2
29062 #: ../src/guestfs-actions.pod:3907
29063 msgid "guestfs_is_chardev"
29064 msgstr ""
29065
29066 #. type: verbatim
29067 #: ../src/guestfs-actions.pod:3909
29068 #, no-wrap
29069 msgid ""
29070 " int\n"
29071 " guestfs_is_chardev (guestfs_h *g,\n"
29072 "                     const char *path);\n"
29073 "\n"
29074 msgstr ""
29075
29076 #. type: =head2
29077 #: ../src/guestfs-actions.pod:3922
29078 msgid "guestfs_is_config"
29079 msgstr ""
29080
29081 #. type: verbatim
29082 #: ../src/guestfs-actions.pod:3924
29083 #, no-wrap
29084 msgid ""
29085 " int\n"
29086 " guestfs_is_config (guestfs_h *g);\n"
29087 "\n"
29088 msgstr ""
29089
29090 #. type: =head2
29091 #: ../src/guestfs-actions.pod:3936
29092 msgid "guestfs_is_dir"
29093 msgstr ""
29094
29095 #. type: verbatim
29096 #: ../src/guestfs-actions.pod:3938
29097 #, no-wrap
29098 msgid ""
29099 " int\n"
29100 " guestfs_is_dir (guestfs_h *g,\n"
29101 "                 const char *path);\n"
29102 "\n"
29103 msgstr ""
29104
29105 #. type: =head2
29106 #: ../src/guestfs-actions.pod:3952
29107 msgid "guestfs_is_fifo"
29108 msgstr ""
29109
29110 #. type: verbatim
29111 #: ../src/guestfs-actions.pod:3954
29112 #, no-wrap
29113 msgid ""
29114 " int\n"
29115 " guestfs_is_fifo (guestfs_h *g,\n"
29116 "                  const char *path);\n"
29117 "\n"
29118 msgstr ""
29119
29120 #. type: =head2
29121 #: ../src/guestfs-actions.pod:3967
29122 msgid "guestfs_is_file"
29123 msgstr ""
29124
29125 #. type: verbatim
29126 #: ../src/guestfs-actions.pod:3969
29127 #, no-wrap
29128 msgid ""
29129 " int\n"
29130 " guestfs_is_file (guestfs_h *g,\n"
29131 "                  const char *path);\n"
29132 "\n"
29133 msgstr ""
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:3983
29137 msgid "guestfs_is_launching"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:3985
29142 #, no-wrap
29143 msgid ""
29144 " int\n"
29145 " guestfs_is_launching (guestfs_h *g);\n"
29146 "\n"
29147 msgstr ""
29148
29149 #. type: =head2
29150 #: ../src/guestfs-actions.pod:3997
29151 msgid "guestfs_is_lv"
29152 msgstr ""
29153
29154 #. type: verbatim
29155 #: ../src/guestfs-actions.pod:3999
29156 #, no-wrap
29157 msgid ""
29158 " int\n"
29159 " guestfs_is_lv (guestfs_h *g,\n"
29160 "                const char *device);\n"
29161 "\n"
29162 msgstr ""
29163
29164 #. type: =head2
29165 #: ../src/guestfs-actions.pod:4010
29166 msgid "guestfs_is_ready"
29167 msgstr ""
29168
29169 #. type: verbatim
29170 #: ../src/guestfs-actions.pod:4012
29171 #, no-wrap
29172 msgid ""
29173 " int\n"
29174 " guestfs_is_ready (guestfs_h *g);\n"
29175 "\n"
29176 msgstr ""
29177
29178 #. type: =head2
29179 #: ../src/guestfs-actions.pod:4024
29180 msgid "guestfs_is_socket"
29181 msgstr ""
29182
29183 #. type: verbatim
29184 #: ../src/guestfs-actions.pod:4026
29185 #, no-wrap
29186 msgid ""
29187 " int\n"
29188 " guestfs_is_socket (guestfs_h *g,\n"
29189 "                    const char *path);\n"
29190 "\n"
29191 msgstr ""
29192
29193 #. type: =head2
29194 #: ../src/guestfs-actions.pod:4039
29195 msgid "guestfs_is_symlink"
29196 msgstr ""
29197
29198 #. type: verbatim
29199 #: ../src/guestfs-actions.pod:4041
29200 #, no-wrap
29201 msgid ""
29202 " int\n"
29203 " guestfs_is_symlink (guestfs_h *g,\n"
29204 "                     const char *path);\n"
29205 "\n"
29206 msgstr ""
29207
29208 #. type: =head2
29209 #: ../src/guestfs-actions.pod:4054
29210 msgid "guestfs_is_zero"
29211 msgstr ""
29212
29213 #. type: verbatim
29214 #: ../src/guestfs-actions.pod:4056
29215 #, no-wrap
29216 msgid ""
29217 " int\n"
29218 " guestfs_is_zero (guestfs_h *g,\n"
29219 "                  const char *path);\n"
29220 "\n"
29221 msgstr ""
29222
29223 #. type: textblock
29224 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
29225 msgid "(Added in 1.11.8)"
29226 msgstr ""
29227
29228 #. type: =head2
29229 #: ../src/guestfs-actions.pod:4067
29230 msgid "guestfs_is_zero_device"
29231 msgstr ""
29232
29233 #. type: verbatim
29234 #: ../src/guestfs-actions.pod:4069
29235 #, no-wrap
29236 msgid ""
29237 " int\n"
29238 " guestfs_is_zero_device (guestfs_h *g,\n"
29239 "                         const char *device);\n"
29240 "\n"
29241 msgstr ""
29242
29243 #. type: =head2
29244 #: ../src/guestfs-actions.pod:4081
29245 msgid "guestfs_kill_subprocess"
29246 msgstr ""
29247
29248 #. type: verbatim
29249 #: ../src/guestfs-actions.pod:4083
29250 #, no-wrap
29251 msgid ""
29252 " int\n"
29253 " guestfs_kill_subprocess (guestfs_h *g);\n"
29254 "\n"
29255 msgstr ""
29256
29257 #. type: =head2
29258 #: ../src/guestfs-actions.pod:4092
29259 msgid "guestfs_launch"
29260 msgstr ""
29261
29262 #. type: verbatim
29263 #: ../src/guestfs-actions.pod:4094
29264 #, no-wrap
29265 msgid ""
29266 " int\n"
29267 " guestfs_launch (guestfs_h *g);\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: =head2
29272 #: ../src/guestfs-actions.pod:4112
29273 msgid "guestfs_lchown"
29274 msgstr ""
29275
29276 #. type: verbatim
29277 #: ../src/guestfs-actions.pod:4114
29278 #, no-wrap
29279 msgid ""
29280 " int\n"
29281 " guestfs_lchown (guestfs_h *g,\n"
29282 "                 int owner,\n"
29283 "                 int group,\n"
29284 "                 const char *path);\n"
29285 "\n"
29286 msgstr ""
29287
29288 #. type: textblock
29289 #: ../src/guestfs-actions.pod:4120
29290 msgid ""
29291 "Change the file owner to C<owner> and group to C<group>.  This is like "
29292 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29293 "changed, not the target."
29294 msgstr ""
29295
29296 #. type: =head2
29297 #: ../src/guestfs-actions.pod:4132
29298 msgid "guestfs_lgetxattr"
29299 msgstr ""
29300
29301 #. type: verbatim
29302 #: ../src/guestfs-actions.pod:4134
29303 #, no-wrap
29304 msgid ""
29305 " char *\n"
29306 " guestfs_lgetxattr (guestfs_h *g,\n"
29307 "                    const char *path,\n"
29308 "                    const char *name,\n"
29309 "                    size_t *size_r);\n"
29310 "\n"
29311 msgstr ""
29312
29313 #. type: textblock
29314 #: ../src/guestfs-actions.pod:4154
29315 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29316 msgstr ""
29317
29318 #. type: =head2
29319 #: ../src/guestfs-actions.pod:4162
29320 msgid "guestfs_lgetxattrs"
29321 msgstr ""
29322
29323 #. type: verbatim
29324 #: ../src/guestfs-actions.pod:4164
29325 #, no-wrap
29326 msgid ""
29327 " struct guestfs_xattr_list *\n"
29328 " guestfs_lgetxattrs (guestfs_h *g,\n"
29329 "                     const char *path);\n"
29330 "\n"
29331 msgstr ""
29332
29333 #. type: textblock
29334 #: ../src/guestfs-actions.pod:4168
29335 msgid ""
29336 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29337 "then it returns the extended attributes of the link itself."
29338 msgstr ""
29339
29340 #. type: =head2
29341 #: ../src/guestfs-actions.pod:4178
29342 msgid "guestfs_list_9p"
29343 msgstr ""
29344
29345 #. type: verbatim
29346 #: ../src/guestfs-actions.pod:4180
29347 #, no-wrap
29348 msgid ""
29349 " char **\n"
29350 " guestfs_list_9p (guestfs_h *g);\n"
29351 "\n"
29352 msgstr ""
29353
29354 #. type: =head2
29355 #: ../src/guestfs-actions.pod:4192
29356 msgid "guestfs_list_devices"
29357 msgstr ""
29358
29359 #. type: verbatim
29360 #: ../src/guestfs-actions.pod:4194
29361 #, no-wrap
29362 msgid ""
29363 " char **\n"
29364 " guestfs_list_devices (guestfs_h *g);\n"
29365 "\n"
29366 msgstr ""
29367
29368 #. type: =head2
29369 #: ../src/guestfs-actions.pod:4209
29370 msgid "guestfs_list_dm_devices"
29371 msgstr ""
29372
29373 #. type: verbatim
29374 #: ../src/guestfs-actions.pod:4211
29375 #, no-wrap
29376 msgid ""
29377 " char **\n"
29378 " guestfs_list_dm_devices (guestfs_h *g);\n"
29379 "\n"
29380 msgstr ""
29381
29382 #. type: textblock
29383 #: ../src/guestfs-actions.pod:4216
29384 msgid ""
29385 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29386 "previous call to C<guestfs_luks_open>."
29387 msgstr ""
29388
29389 #. type: textblock
29390 #: ../src/guestfs-actions.pod:4219
29391 msgid ""
29392 "Device mapper devices which correspond to logical volumes are I<not> "
29393 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29394 "volumes."
29395 msgstr ""
29396
29397 #. type: textblock
29398 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5836
29399 msgid "(Added in 1.11.15)"
29400 msgstr ""
29401
29402 #. type: =head2
29403 #: ../src/guestfs-actions.pod:4229
29404 msgid "guestfs_list_filesystems"
29405 msgstr ""
29406
29407 #. type: verbatim
29408 #: ../src/guestfs-actions.pod:4231
29409 #, no-wrap
29410 msgid ""
29411 " char **\n"
29412 " guestfs_list_filesystems (guestfs_h *g);\n"
29413 "\n"
29414 msgstr ""
29415
29416 #. type: textblock
29417 #: ../src/guestfs-actions.pod:4251
29418 msgid ""
29419 "This command runs other libguestfs commands, which might include "
29420 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29421 "soon after launch and only when nothing is mounted."
29422 msgstr ""
29423
29424 #. type: textblock
29425 #: ../src/guestfs-actions.pod:4255
29426 msgid ""
29427 "Not all of the filesystems returned will be mountable.  In particular, swap "
29428 "partitions are returned in the list.  Also this command does not check that "
29429 "each filesystem found is valid and mountable, and some filesystems might be "
29430 "mountable but require special options.  Filesystems may not all belong to a "
29431 "single logical operating system (use C<guestfs_inspect_os> to look for "
29432 "OSes)."
29433 msgstr ""
29434
29435 #. type: textblock
29436 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6196
29437 msgid "(Added in 1.5.15)"
29438 msgstr ""
29439
29440 #. type: =head2
29441 #: ../src/guestfs-actions.pod:4271
29442 msgid "guestfs_list_md_devices"
29443 msgstr ""
29444
29445 #. type: verbatim
29446 #: ../src/guestfs-actions.pod:4273
29447 #, no-wrap
29448 msgid ""
29449 " char **\n"
29450 " guestfs_list_md_devices (guestfs_h *g);\n"
29451 "\n"
29452 msgstr ""
29453
29454 #. type: textblock
29455 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:7857
29456 msgid "(Added in 1.15.4)"
29457 msgstr ""
29458
29459 #. type: =head2
29460 #: ../src/guestfs-actions.pod:4284
29461 msgid "guestfs_list_partitions"
29462 msgstr ""
29463
29464 #. type: verbatim
29465 #: ../src/guestfs-actions.pod:4286
29466 #, no-wrap
29467 msgid ""
29468 " char **\n"
29469 " guestfs_list_partitions (guestfs_h *g);\n"
29470 "\n"
29471 msgstr ""
29472
29473 #. type: textblock
29474 #: ../src/guestfs-actions.pod:4293
29475 msgid ""
29476 "This does not return logical volumes.  For that you will need to call "
29477 "C<guestfs_lvs>."
29478 msgstr ""
29479
29480 #. type: =head2
29481 #: ../src/guestfs-actions.pod:4304
29482 msgid "guestfs_ll"
29483 msgstr ""
29484
29485 #. type: verbatim
29486 #: ../src/guestfs-actions.pod:4306
29487 #, no-wrap
29488 msgid ""
29489 " char *\n"
29490 " guestfs_ll (guestfs_h *g,\n"
29491 "             const char *directory);\n"
29492 "\n"
29493 msgstr ""
29494
29495 #. type: =head2
29496 #: ../src/guestfs-actions.pod:4321
29497 msgid "guestfs_ln"
29498 msgstr ""
29499
29500 #. type: verbatim
29501 #: ../src/guestfs-actions.pod:4323
29502 #, no-wrap
29503 msgid ""
29504 " int\n"
29505 " guestfs_ln (guestfs_h *g,\n"
29506 "             const char *target,\n"
29507 "             const char *linkname);\n"
29508 "\n"
29509 msgstr ""
29510
29511 #. type: =head2
29512 #: ../src/guestfs-actions.pod:4334
29513 msgid "guestfs_ln_f"
29514 msgstr ""
29515
29516 #. type: verbatim
29517 #: ../src/guestfs-actions.pod:4336
29518 #, no-wrap
29519 msgid ""
29520 " int\n"
29521 " guestfs_ln_f (guestfs_h *g,\n"
29522 "               const char *target,\n"
29523 "               const char *linkname);\n"
29524 "\n"
29525 msgstr ""
29526
29527 #. type: =head2
29528 #: ../src/guestfs-actions.pod:4348
29529 msgid "guestfs_ln_s"
29530 msgstr ""
29531
29532 #. type: verbatim
29533 #: ../src/guestfs-actions.pod:4350
29534 #, no-wrap
29535 msgid ""
29536 " int\n"
29537 " guestfs_ln_s (guestfs_h *g,\n"
29538 "               const char *target,\n"
29539 "               const char *linkname);\n"
29540 "\n"
29541 msgstr ""
29542
29543 #. type: =head2
29544 #: ../src/guestfs-actions.pod:4361
29545 msgid "guestfs_ln_sf"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../src/guestfs-actions.pod:4363
29550 #, no-wrap
29551 msgid ""
29552 " int\n"
29553 " guestfs_ln_sf (guestfs_h *g,\n"
29554 "                const char *target,\n"
29555 "                const char *linkname);\n"
29556 "\n"
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../src/guestfs-actions.pod:4375
29561 msgid "guestfs_lremovexattr"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-actions.pod:4377
29566 #, no-wrap
29567 msgid ""
29568 " int\n"
29569 " guestfs_lremovexattr (guestfs_h *g,\n"
29570 "                       const char *xattr,\n"
29571 "                       const char *path);\n"
29572 "\n"
29573 msgstr ""
29574
29575 #. type: textblock
29576 #: ../src/guestfs-actions.pod:4382
29577 msgid ""
29578 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29579 "link, then it removes an extended attribute of the link itself."
29580 msgstr ""
29581
29582 #. type: =head2
29583 #: ../src/guestfs-actions.pod:4390
29584 msgid "guestfs_ls"
29585 msgstr ""
29586
29587 #. type: verbatim
29588 #: ../src/guestfs-actions.pod:4392
29589 #, no-wrap
29590 msgid ""
29591 " char **\n"
29592 " guestfs_ls (guestfs_h *g,\n"
29593 "             const char *directory);\n"
29594 "\n"
29595 msgstr ""
29596
29597 #. type: textblock
29598 #: ../src/guestfs-actions.pod:4400
29599 msgid ""
29600 "This command is mostly useful for interactive sessions.  Programs should "
29601 "probably use C<guestfs_readdir> instead."
29602 msgstr ""
29603
29604 #. type: =head2
29605 #: ../src/guestfs-actions.pod:4409
29606 msgid "guestfs_lsetxattr"
29607 msgstr ""
29608
29609 #. type: verbatim
29610 #: ../src/guestfs-actions.pod:4411
29611 #, no-wrap
29612 msgid ""
29613 " int\n"
29614 " guestfs_lsetxattr (guestfs_h *g,\n"
29615 "                    const char *xattr,\n"
29616 "                    const char *val,\n"
29617 "                    int vallen,\n"
29618 "                    const char *path);\n"
29619 "\n"
29620 msgstr ""
29621
29622 #. type: textblock
29623 #: ../src/guestfs-actions.pod:4418
29624 msgid ""
29625 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29626 "then it sets an extended attribute of the link itself."
29627 msgstr ""
29628
29629 #. type: =head2
29630 #: ../src/guestfs-actions.pod:4426
29631 msgid "guestfs_lstat"
29632 msgstr ""
29633
29634 #. type: verbatim
29635 #: ../src/guestfs-actions.pod:4428
29636 #, no-wrap
29637 msgid ""
29638 " struct guestfs_stat *\n"
29639 " guestfs_lstat (guestfs_h *g,\n"
29640 "                const char *path);\n"
29641 "\n"
29642 msgstr ""
29643
29644 #. type: textblock
29645 #: ../src/guestfs-actions.pod:4434
29646 msgid ""
29647 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29648 "link, then the link is stat-ed, not the file it refers to."
29649 msgstr ""
29650
29651 #. type: textblock
29652 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:7376
29653 msgid ""
29654 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29655 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29656 msgstr ""
29657
29658 #. type: textblock
29659 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:7380 ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7901
29660 msgid "(Added in 0.9.2)"
29661 msgstr ""
29662
29663 #. type: =head2
29664 #: ../src/guestfs-actions.pod:4446
29665 msgid "guestfs_lstatlist"
29666 msgstr ""
29667
29668 #. type: verbatim
29669 #: ../src/guestfs-actions.pod:4448
29670 #, no-wrap
29671 msgid ""
29672 " struct guestfs_stat_list *\n"
29673 " guestfs_lstatlist (guestfs_h *g,\n"
29674 "                    const char *path,\n"
29675 "                    char *const *names);\n"
29676 "\n"
29677 msgstr ""
29678
29679 #. type: textblock
29680 #: ../src/guestfs-actions.pod:4453
29681 msgid ""
29682 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29683 "files, where all files are in the directory C<path>.  C<names> is the list "
29684 "of files from this directory."
29685 msgstr ""
29686
29687 #. type: textblock
29688 #: ../src/guestfs-actions.pod:4462
29689 msgid ""
29690 "This call is intended for programs that want to efficiently list a directory "
29691 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29692 "for a similarly efficient call for getting extended attributes.  Very long "
29693 "directory listings might cause the protocol message size to be exceeded, "
29694 "causing this call to fail.  The caller must split up such requests into "
29695 "smaller groups of names."
29696 msgstr ""
29697
29698 #. type: textblock
29699 #: ../src/guestfs-actions.pod:4470
29700 msgid ""
29701 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29702 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29703 msgstr ""
29704
29705 #. type: =head2
29706 #: ../src/guestfs-actions.pod:4476
29707 msgid "guestfs_luks_add_key"
29708 msgstr ""
29709
29710 #. type: verbatim
29711 #: ../src/guestfs-actions.pod:4478
29712 #, no-wrap
29713 msgid ""
29714 " int\n"
29715 " guestfs_luks_add_key (guestfs_h *g,\n"
29716 "                       const char *device,\n"
29717 "                       const char *key,\n"
29718 "                       const char *newkey,\n"
29719 "                       int keyslot);\n"
29720 "\n"
29721 msgstr ""
29722
29723 #. type: textblock
29724 #: ../src/guestfs-actions.pod:4490
29725 msgid ""
29726 "Note that if C<keyslot> already contains a key, then this command will "
29727 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29728 msgstr ""
29729
29730 #. type: textblock
29731 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4553 ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4627
29732 msgid ""
29733 "This function takes a key or passphrase parameter which could contain "
29734 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29735 "information."
29736 msgstr ""
29737
29738 #. type: textblock
29739 #: ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:4537 ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4577
29740 msgid "(Added in 1.5.2)"
29741 msgstr ""
29742
29743 #. type: =head2
29744 #: ../src/guestfs-actions.pod:4502
29745 msgid "guestfs_luks_close"
29746 msgstr ""
29747
29748 #. type: verbatim
29749 #: ../src/guestfs-actions.pod:4504
29750 #, no-wrap
29751 msgid ""
29752 " int\n"
29753 " guestfs_luks_close (guestfs_h *g,\n"
29754 "                     const char *device);\n"
29755 "\n"
29756 msgstr ""
29757
29758 #. type: textblock
29759 #: ../src/guestfs-actions.pod:4508
29760 msgid ""
29761 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29762 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29763 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29764 "underlying block device."
29765 msgstr ""
29766
29767 #. type: textblock
29768 #: ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4726
29769 msgid "(Added in 1.5.1)"
29770 msgstr ""
29771
29772 #. type: =head2
29773 #: ../src/guestfs-actions.pod:4518
29774 msgid "guestfs_luks_format"
29775 msgstr ""
29776
29777 #. type: verbatim
29778 #: ../src/guestfs-actions.pod:4520
29779 #, no-wrap
29780 msgid ""
29781 " int\n"
29782 " guestfs_luks_format (guestfs_h *g,\n"
29783 "                      const char *device,\n"
29784 "                      const char *key,\n"
29785 "                      int keyslot);\n"
29786 "\n"
29787 msgstr ""
29788
29789 #. type: =head2
29790 #: ../src/guestfs-actions.pod:4539
29791 msgid "guestfs_luks_format_cipher"
29792 msgstr ""
29793
29794 #. type: verbatim
29795 #: ../src/guestfs-actions.pod:4541
29796 #, no-wrap
29797 msgid ""
29798 " int\n"
29799 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29800 "                             const char *device,\n"
29801 "                             const char *key,\n"
29802 "                             int keyslot,\n"
29803 "                             const char *cipher);\n"
29804 "\n"
29805 msgstr ""
29806
29807 #. type: textblock
29808 #: ../src/guestfs-actions.pod:4548
29809 msgid ""
29810 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29811 "set the C<cipher> used."
29812 msgstr ""
29813
29814 #. type: =head2
29815 #: ../src/guestfs-actions.pod:4559
29816 msgid "guestfs_luks_kill_slot"
29817 msgstr ""
29818
29819 #. type: verbatim
29820 #: ../src/guestfs-actions.pod:4561
29821 #, no-wrap
29822 msgid ""
29823 " int\n"
29824 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29825 "                         const char *device,\n"
29826 "                         const char *key,\n"
29827 "                         int keyslot);\n"
29828 "\n"
29829 msgstr ""
29830
29831 #. type: =head2
29832 #: ../src/guestfs-actions.pod:4579
29833 msgid "guestfs_luks_open"
29834 msgstr ""
29835
29836 #. type: verbatim
29837 #: ../src/guestfs-actions.pod:4581
29838 #, no-wrap
29839 msgid ""
29840 " int\n"
29841 " guestfs_luks_open (guestfs_h *g,\n"
29842 "                    const char *device,\n"
29843 "                    const char *key,\n"
29844 "                    const char *mapname);\n"
29845 "\n"
29846 msgstr ""
29847
29848 #. type: textblock
29849 #: ../src/guestfs-actions.pod:4599
29850 msgid ""
29851 "If this block device contains LVM volume groups, then calling "
29852 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29853 "visible."
29854 msgstr ""
29855
29856 #. type: textblock
29857 #: ../src/guestfs-actions.pod:4603
29858 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29859 msgstr ""
29860
29861 #. type: =head2
29862 #: ../src/guestfs-actions.pod:4614
29863 msgid "guestfs_luks_open_ro"
29864 msgstr ""
29865
29866 #. type: verbatim
29867 #: ../src/guestfs-actions.pod:4616
29868 #, no-wrap
29869 msgid ""
29870 " int\n"
29871 " guestfs_luks_open_ro (guestfs_h *g,\n"
29872 "                       const char *device,\n"
29873 "                       const char *key,\n"
29874 "                       const char *mapname);\n"
29875 "\n"
29876 msgstr ""
29877
29878 #. type: textblock
29879 #: ../src/guestfs-actions.pod:4622
29880 msgid ""
29881 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29882 "created."
29883 msgstr ""
29884
29885 #. type: =head2
29886 #: ../src/guestfs-actions.pod:4633
29887 msgid "guestfs_lvcreate"
29888 msgstr ""
29889
29890 #. type: verbatim
29891 #: ../src/guestfs-actions.pod:4635
29892 #, no-wrap
29893 msgid ""
29894 " int\n"
29895 " guestfs_lvcreate (guestfs_h *g,\n"
29896 "                   const char *logvol,\n"
29897 "                   const char *volgroup,\n"
29898 "                   int mbytes);\n"
29899 "\n"
29900 msgstr ""
29901
29902 #. type: =head2
29903 #: ../src/guestfs-actions.pod:4648
29904 msgid "guestfs_lvm_canonical_lv_name"
29905 msgstr ""
29906
29907 #. type: verbatim
29908 #: ../src/guestfs-actions.pod:4650
29909 #, no-wrap
29910 msgid ""
29911 " char *\n"
29912 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29913 "                                const char *lvname);\n"
29914 "\n"
29915 msgstr ""
29916
29917 #. type: textblock
29918 #: ../src/guestfs-actions.pod:4661
29919 msgid "See also C<guestfs_is_lv>."
29920 msgstr ""
29921
29922 #. type: textblock
29923 #: ../src/guestfs-actions.pod:4666
29924 msgid "(Added in 1.5.24)"
29925 msgstr ""
29926
29927 #. type: =head2
29928 #: ../src/guestfs-actions.pod:4668
29929 msgid "guestfs_lvm_clear_filter"
29930 msgstr ""
29931
29932 #. type: verbatim
29933 #: ../src/guestfs-actions.pod:4670
29934 #, no-wrap
29935 msgid ""
29936 " int\n"
29937 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29938 "\n"
29939 msgstr ""
29940
29941 #. type: textblock
29942 #: ../src/guestfs-actions.pod:4673
29943 msgid ""
29944 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29945 "see every block device."
29946 msgstr ""
29947
29948 #. type: =head2
29949 #: ../src/guestfs-actions.pod:4683
29950 msgid "guestfs_lvm_remove_all"
29951 msgstr ""
29952
29953 #. type: verbatim
29954 #: ../src/guestfs-actions.pod:4685
29955 #, no-wrap
29956 msgid ""
29957 " int\n"
29958 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29959 "\n"
29960 msgstr ""
29961
29962 #. type: =head2
29963 #: ../src/guestfs-actions.pod:4695
29964 msgid "guestfs_lvm_set_filter"
29965 msgstr ""
29966
29967 #. type: verbatim
29968 #: ../src/guestfs-actions.pod:4697
29969 #, no-wrap
29970 msgid ""
29971 " int\n"
29972 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29973 "                         char *const *devices);\n"
29974 "\n"
29975 msgstr ""
29976
29977 #. type: =head2
29978 #: ../src/guestfs-actions.pod:4728
29979 msgid "guestfs_lvremove"
29980 msgstr ""
29981
29982 #. type: verbatim
29983 #: ../src/guestfs-actions.pod:4730
29984 #, no-wrap
29985 msgid ""
29986 " int\n"
29987 " guestfs_lvremove (guestfs_h *g,\n"
29988 "                   const char *device);\n"
29989 "\n"
29990 msgstr ""
29991
29992 #. type: textblock
29993 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:6311 ../src/guestfs-actions.pod:8271
29994 msgid "(Added in 1.0.13)"
29995 msgstr ""
29996
29997 #. type: =head2
29998 #: ../src/guestfs-actions.pod:4744
29999 msgid "guestfs_lvrename"
30000 msgstr ""
30001
30002 #. type: verbatim
30003 #: ../src/guestfs-actions.pod:4746
30004 #, no-wrap
30005 msgid ""
30006 " int\n"
30007 " guestfs_lvrename (guestfs_h *g,\n"
30008 "                   const char *logvol,\n"
30009 "                   const char *newlogvol);\n"
30010 "\n"
30011 msgstr ""
30012
30013 #. type: textblock
30014 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:8284
30015 msgid "(Added in 1.0.83)"
30016 msgstr ""
30017
30018 #. type: =head2
30019 #: ../src/guestfs-actions.pod:4757
30020 msgid "guestfs_lvresize"
30021 msgstr ""
30022
30023 #. type: verbatim
30024 #: ../src/guestfs-actions.pod:4759
30025 #, no-wrap
30026 msgid ""
30027 " int\n"
30028 " guestfs_lvresize (guestfs_h *g,\n"
30029 "                   const char *device,\n"
30030 "                   int mbytes);\n"
30031 "\n"
30032 msgstr ""
30033
30034 #. type: =head2
30035 #: ../src/guestfs-actions.pod:4772
30036 msgid "guestfs_lvresize_free"
30037 msgstr ""
30038
30039 #. type: verbatim
30040 #: ../src/guestfs-actions.pod:4774
30041 #, no-wrap
30042 msgid ""
30043 " int\n"
30044 " guestfs_lvresize_free (guestfs_h *g,\n"
30045 "                        const char *lv,\n"
30046 "                        int percent);\n"
30047 "\n"
30048 msgstr ""
30049
30050 #. type: textblock
30051 #: ../src/guestfs-actions.pod:4787
30052 msgid "(Added in 1.3.3)"
30053 msgstr ""
30054
30055 #. type: =head2
30056 #: ../src/guestfs-actions.pod:4789
30057 msgid "guestfs_lvs"
30058 msgstr ""
30059
30060 #. type: verbatim
30061 #: ../src/guestfs-actions.pod:4791
30062 #, no-wrap
30063 msgid ""
30064 " char **\n"
30065 " guestfs_lvs (guestfs_h *g);\n"
30066 "\n"
30067 msgstr ""
30068
30069 #. type: textblock
30070 #: ../src/guestfs-actions.pod:4800
30071 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30072 msgstr ""
30073
30074 #. type: =head2
30075 #: ../src/guestfs-actions.pod:4808
30076 msgid "guestfs_lvs_full"
30077 msgstr ""
30078
30079 #. type: verbatim
30080 #: ../src/guestfs-actions.pod:4810
30081 #, no-wrap
30082 msgid ""
30083 " struct guestfs_lvm_lv_list *\n"
30084 " guestfs_lvs_full (guestfs_h *g);\n"
30085 "\n"
30086 msgstr ""
30087
30088 #. type: textblock
30089 #: ../src/guestfs-actions.pod:4816
30090 msgid ""
30091 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30092 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
30093 "use>."
30094 msgstr ""
30095
30096 #. type: =head2
30097 #: ../src/guestfs-actions.pod:4822
30098 msgid "guestfs_lvuuid"
30099 msgstr ""
30100
30101 #. type: verbatim
30102 #: ../src/guestfs-actions.pod:4824
30103 #, no-wrap
30104 msgid ""
30105 " char *\n"
30106 " guestfs_lvuuid (guestfs_h *g,\n"
30107 "                 const char *device);\n"
30108 "\n"
30109 msgstr ""
30110
30111 #. type: =head2
30112 #: ../src/guestfs-actions.pod:4835
30113 msgid "guestfs_lxattrlist"
30114 msgstr ""
30115
30116 #. type: verbatim
30117 #: ../src/guestfs-actions.pod:4837
30118 #, no-wrap
30119 msgid ""
30120 " struct guestfs_xattr_list *\n"
30121 " guestfs_lxattrlist (guestfs_h *g,\n"
30122 "                     const char *path,\n"
30123 "                     char *const *names);\n"
30124 "\n"
30125 msgstr ""
30126
30127 #. type: textblock
30128 #: ../src/guestfs-actions.pod:4856
30129 msgid ""
30130 "This call is intended for programs that want to efficiently list a directory "
30131 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30132 "a similarly efficient call for getting standard stats.  Very long directory "
30133 "listings might cause the protocol message size to be exceeded, causing this "
30134 "call to fail.  The caller must split up such requests into smaller groups of "
30135 "names."
30136 msgstr ""
30137
30138 #. type: =head2
30139 #: ../src/guestfs-actions.pod:4870
30140 msgid "guestfs_md_create"
30141 msgstr ""
30142
30143 #. type: verbatim
30144 #: ../src/guestfs-actions.pod:4872
30145 #, no-wrap
30146 msgid ""
30147 " int\n"
30148 " guestfs_md_create (guestfs_h *g,\n"
30149 "                    const char *name,\n"
30150 "                    char *const *devices,\n"
30151 "                    ...);\n"
30152 "\n"
30153 msgstr ""
30154
30155 #. type: verbatim
30156 #: ../src/guestfs-actions.pod:4883
30157 #, no-wrap
30158 msgid ""
30159 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
30160 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
30161 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
30162 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
30163 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
30164 "\n"
30165 msgstr ""
30166
30167 #. type: =head2
30168 #: ../src/guestfs-actions.pod:4945
30169 msgid "guestfs_md_create_va"
30170 msgstr ""
30171
30172 #. type: verbatim
30173 #: ../src/guestfs-actions.pod:4947
30174 #, no-wrap
30175 msgid ""
30176 " int\n"
30177 " guestfs_md_create_va (guestfs_h *g,\n"
30178 "                       const char *name,\n"
30179 "                       char *const *devices,\n"
30180 "                       va_list args);\n"
30181 "\n"
30182 msgstr ""
30183
30184 #. type: textblock
30185 #: ../src/guestfs-actions.pod:4953
30186 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
30187 msgstr ""
30188
30189 #. type: =head2
30190 #: ../src/guestfs-actions.pod:4957
30191 msgid "guestfs_md_create_argv"
30192 msgstr ""
30193
30194 #. type: verbatim
30195 #: ../src/guestfs-actions.pod:4959
30196 #, no-wrap
30197 msgid ""
30198 " int\n"
30199 " guestfs_md_create_argv (guestfs_h *g,\n"
30200 "                         const char *name,\n"
30201 "                         char *const *devices,\n"
30202 "                         const struct guestfs_md_create_argv *optargs);\n"
30203 "\n"
30204 msgstr ""
30205
30206 #. type: textblock
30207 #: ../src/guestfs-actions.pod:4965
30208 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
30209 msgstr ""
30210
30211 #. type: =head2
30212 #: ../src/guestfs-actions.pod:4969
30213 msgid "guestfs_md_detail"
30214 msgstr ""
30215
30216 #. type: verbatim
30217 #: ../src/guestfs-actions.pod:4971
30218 #, no-wrap
30219 msgid ""
30220 " char **\n"
30221 " guestfs_md_detail (guestfs_h *g,\n"
30222 "                    const char *md);\n"
30223 "\n"
30224 msgstr ""
30225
30226 #. type: =head2
30227 #: ../src/guestfs-actions.pod:5008
30228 msgid "guestfs_md_stop"
30229 msgstr ""
30230
30231 #. type: verbatim
30232 #: ../src/guestfs-actions.pod:5010
30233 #, no-wrap
30234 msgid ""
30235 " int\n"
30236 " guestfs_md_stop (guestfs_h *g,\n"
30237 "                  const char *md);\n"
30238 "\n"
30239 msgstr ""
30240
30241 #. type: =head2
30242 #: ../src/guestfs-actions.pod:5029
30243 msgid "guestfs_mkdir"
30244 msgstr ""
30245
30246 #. type: verbatim
30247 #: ../src/guestfs-actions.pod:5031
30248 #, no-wrap
30249 msgid ""
30250 " int\n"
30251 " guestfs_mkdir (guestfs_h *g,\n"
30252 "                const char *path);\n"
30253 "\n"
30254 msgstr ""
30255
30256 #. type: =head2
30257 #: ../src/guestfs-actions.pod:5041
30258 msgid "guestfs_mkdir_mode"
30259 msgstr ""
30260
30261 #. type: verbatim
30262 #: ../src/guestfs-actions.pod:5043
30263 #, no-wrap
30264 msgid ""
30265 " int\n"
30266 " guestfs_mkdir_mode (guestfs_h *g,\n"
30267 "                     const char *path,\n"
30268 "                     int mode);\n"
30269 "\n"
30270 msgstr ""
30271
30272 #. type: textblock
30273 #: ../src/guestfs-actions.pod:5055
30274 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30275 msgstr ""
30276
30277 #. type: =head2
30278 #: ../src/guestfs-actions.pod:5061
30279 msgid "guestfs_mkdir_p"
30280 msgstr ""
30281
30282 #. type: verbatim
30283 #: ../src/guestfs-actions.pod:5063
30284 #, no-wrap
30285 msgid ""
30286 " int\n"
30287 " guestfs_mkdir_p (guestfs_h *g,\n"
30288 "                  const char *path);\n"
30289 "\n"
30290 msgstr ""
30291
30292 #. type: =head2
30293 #: ../src/guestfs-actions.pod:5074
30294 msgid "guestfs_mkdtemp"
30295 msgstr ""
30296
30297 #. type: verbatim
30298 #: ../src/guestfs-actions.pod:5076
30299 #, no-wrap
30300 msgid ""
30301 " char *\n"
30302 " guestfs_mkdtemp (guestfs_h *g,\n"
30303 "                  const char *template);\n"
30304 "\n"
30305 msgstr ""
30306
30307 #. type: =head2
30308 #: ../src/guestfs-actions.pod:5104
30309 msgid "guestfs_mke2fs_J"
30310 msgstr ""
30311
30312 #. type: verbatim
30313 #: ../src/guestfs-actions.pod:5106
30314 #, no-wrap
30315 msgid ""
30316 " int\n"
30317 " guestfs_mke2fs_J (guestfs_h *g,\n"
30318 "                   const char *fstype,\n"
30319 "                   int blocksize,\n"
30320 "                   const char *device,\n"
30321 "                   const char *journal);\n"
30322 "\n"
30323 msgstr ""
30324
30325 #. type: textblock
30326 #: ../src/guestfs-actions.pod:5119
30327 msgid "See also C<guestfs_mke2journal>."
30328 msgstr ""
30329
30330 #. type: textblock
30331 #: ../src/guestfs-actions.pod:5123 ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5175 ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5203 ../src/guestfs-actions.pod:5262 ../src/guestfs-actions.pod:5539
30332 msgid "(Added in 1.0.68)"
30333 msgstr ""
30334
30335 #. type: =head2
30336 #: ../src/guestfs-actions.pod:5125
30337 msgid "guestfs_mke2fs_JL"
30338 msgstr ""
30339
30340 #. type: verbatim
30341 #: ../src/guestfs-actions.pod:5127
30342 #, no-wrap
30343 msgid ""
30344 " int\n"
30345 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30346 "                    const char *fstype,\n"
30347 "                    int blocksize,\n"
30348 "                    const char *device,\n"
30349 "                    const char *label);\n"
30350 "\n"
30351 msgstr ""
30352
30353 #. type: textblock
30354 #: ../src/guestfs-actions.pod:5137
30355 msgid "See also C<guestfs_mke2journal_L>."
30356 msgstr ""
30357
30358 #. type: =head2
30359 #: ../src/guestfs-actions.pod:5143
30360 msgid "guestfs_mke2fs_JU"
30361 msgstr ""
30362
30363 #. type: verbatim
30364 #: ../src/guestfs-actions.pod:5145
30365 #, no-wrap
30366 msgid ""
30367 " int\n"
30368 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30369 "                    const char *fstype,\n"
30370 "                    int blocksize,\n"
30371 "                    const char *device,\n"
30372 "                    const char *uuid);\n"
30373 "\n"
30374 msgstr ""
30375
30376 #. type: textblock
30377 #: ../src/guestfs-actions.pod:5155
30378 msgid "See also C<guestfs_mke2journal_U>."
30379 msgstr ""
30380
30381 #. type: =head2
30382 #: ../src/guestfs-actions.pod:5161
30383 msgid "guestfs_mke2journal"
30384 msgstr ""
30385
30386 #. type: verbatim
30387 #: ../src/guestfs-actions.pod:5163
30388 #, no-wrap
30389 msgid ""
30390 " int\n"
30391 " guestfs_mke2journal (guestfs_h *g,\n"
30392 "                      int blocksize,\n"
30393 "                      const char *device);\n"
30394 "\n"
30395 msgstr ""
30396
30397 #. type: =head2
30398 #: ../src/guestfs-actions.pod:5177
30399 msgid "guestfs_mke2journal_L"
30400 msgstr ""
30401
30402 #. type: verbatim
30403 #: ../src/guestfs-actions.pod:5179
30404 #, no-wrap
30405 msgid ""
30406 " int\n"
30407 " guestfs_mke2journal_L (guestfs_h *g,\n"
30408 "                        int blocksize,\n"
30409 "                        const char *label,\n"
30410 "                        const char *device);\n"
30411 "\n"
30412 msgstr ""
30413
30414 #. type: =head2
30415 #: ../src/guestfs-actions.pod:5191
30416 msgid "guestfs_mke2journal_U"
30417 msgstr ""
30418
30419 #. type: verbatim
30420 #: ../src/guestfs-actions.pod:5193
30421 #, no-wrap
30422 msgid ""
30423 " int\n"
30424 " guestfs_mke2journal_U (guestfs_h *g,\n"
30425 "                        int blocksize,\n"
30426 "                        const char *uuid,\n"
30427 "                        const char *device);\n"
30428 "\n"
30429 msgstr ""
30430
30431 #. type: =head2
30432 #: ../src/guestfs-actions.pod:5205
30433 msgid "guestfs_mkfifo"
30434 msgstr ""
30435
30436 #. type: verbatim
30437 #: ../src/guestfs-actions.pod:5207
30438 #, no-wrap
30439 msgid ""
30440 " int\n"
30441 " guestfs_mkfifo (guestfs_h *g,\n"
30442 "                 int mode,\n"
30443 "                 const char *path);\n"
30444 "\n"
30445 msgstr ""
30446
30447 #. type: textblock
30448 #: ../src/guestfs-actions.pod:5212
30449 msgid ""
30450 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30451 "is just a convenient wrapper around C<guestfs_mknod>."
30452 msgstr ""
30453
30454 #. type: =head2
30455 #: ../src/guestfs-actions.pod:5222
30456 msgid "guestfs_mkfs"
30457 msgstr ""
30458
30459 #. type: verbatim
30460 #: ../src/guestfs-actions.pod:5224
30461 #, no-wrap
30462 msgid ""
30463 " int\n"
30464 " guestfs_mkfs (guestfs_h *g,\n"
30465 "               const char *fstype,\n"
30466 "               const char *device);\n"
30467 "\n"
30468 msgstr ""
30469
30470 #. type: =head2
30471 #: ../src/guestfs-actions.pod:5237
30472 msgid "guestfs_mkfs_b"
30473 msgstr ""
30474
30475 #. type: verbatim
30476 #: ../src/guestfs-actions.pod:5239
30477 #, no-wrap
30478 msgid ""
30479 " int\n"
30480 " guestfs_mkfs_b (guestfs_h *g,\n"
30481 "                 const char *fstype,\n"
30482 "                 int blocksize,\n"
30483 "                 const char *device);\n"
30484 "\n"
30485 msgstr ""
30486
30487 #. type: textblock
30488 #: ../src/guestfs-actions.pod:5245
30489 msgid ""
30490 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30491 "call instead."
30492 msgstr ""
30493
30494 #. type: textblock
30495 #: ../src/guestfs-actions.pod:5252
30496 msgid ""
30497 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30498 "block size of the resulting filesystem.  Supported block sizes depend on the "
30499 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30500 msgstr ""
30501
30502 #. type: =head2
30503 #: ../src/guestfs-actions.pod:5264
30504 msgid "guestfs_mkfs_opts"
30505 msgstr ""
30506
30507 #. type: verbatim
30508 #: ../src/guestfs-actions.pod:5266
30509 #, no-wrap
30510 msgid ""
30511 " int\n"
30512 " guestfs_mkfs_opts (guestfs_h *g,\n"
30513 "                    const char *fstype,\n"
30514 "                    const char *device,\n"
30515 "                    ...);\n"
30516 "\n"
30517 msgstr ""
30518
30519 #. type: verbatim
30520 #: ../src/guestfs-actions.pod:5277
30521 #, no-wrap
30522 msgid ""
30523 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30524 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30525 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30526 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30527 "\n"
30528 msgstr ""
30529
30530 #. type: textblock
30531 #: ../src/guestfs-actions.pod:5325
30532 msgid "(Added in 1.7.19)"
30533 msgstr ""
30534
30535 #. type: =head2
30536 #: ../src/guestfs-actions.pod:5327
30537 msgid "guestfs_mkfs_opts_va"
30538 msgstr ""
30539
30540 #. type: verbatim
30541 #: ../src/guestfs-actions.pod:5329
30542 #, no-wrap
30543 msgid ""
30544 " int\n"
30545 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30546 "                       const char *fstype,\n"
30547 "                       const char *device,\n"
30548 "                       va_list args);\n"
30549 "\n"
30550 msgstr ""
30551
30552 #. type: textblock
30553 #: ../src/guestfs-actions.pod:5335
30554 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30555 msgstr ""
30556
30557 #. type: =head2
30558 #: ../src/guestfs-actions.pod:5339
30559 msgid "guestfs_mkfs_opts_argv"
30560 msgstr ""
30561
30562 #. type: verbatim
30563 #: ../src/guestfs-actions.pod:5341
30564 #, no-wrap
30565 msgid ""
30566 " int\n"
30567 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30568 "                         const char *fstype,\n"
30569 "                         const char *device,\n"
30570 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30571 "\n"
30572 msgstr ""
30573
30574 #. type: textblock
30575 #: ../src/guestfs-actions.pod:5347
30576 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30577 msgstr ""
30578
30579 #. type: =head2
30580 #: ../src/guestfs-actions.pod:5351
30581 msgid "guestfs_mkmountpoint"
30582 msgstr ""
30583
30584 #. type: verbatim
30585 #: ../src/guestfs-actions.pod:5353
30586 #, no-wrap
30587 msgid ""
30588 " int\n"
30589 " guestfs_mkmountpoint (guestfs_h *g,\n"
30590 "                       const char *exemptpath);\n"
30591 "\n"
30592 msgstr ""
30593
30594 #. type: textblock
30595 #: ../src/guestfs-actions.pod:5357
30596 msgid ""
30597 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30598 "that can be used to create extra mountpoints before mounting the first "
30599 "filesystem."
30600 msgstr ""
30601
30602 #. type: textblock
30603 #: ../src/guestfs-actions.pod:5381
30604 msgid ""
30605 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30606 "may get unexpected errors if you try to mix these calls.  It is safest to "
30607 "manually unmount filesystems and remove mountpoints after use."
30608 msgstr ""
30609
30610 #. type: textblock
30611 #: ../src/guestfs-actions.pod:5385
30612 msgid ""
30613 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30614 "first, so for this to work for manual mountpoints, you must ensure that the "
30615 "innermost mountpoints have the longest pathnames, as in the example code "
30616 "above."
30617 msgstr ""
30618
30619 #. type: textblock
30620 #: ../src/guestfs-actions.pod:5392
30621 msgid ""
30622 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30623 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30624 "can also trigger these issues."
30625 msgstr ""
30626
30627 #. type: textblock
30628 #: ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:6731
30629 msgid "(Added in 1.0.62)"
30630 msgstr ""
30631
30632 #. type: =head2
30633 #: ../src/guestfs-actions.pod:5400
30634 msgid "guestfs_mknod"
30635 msgstr ""
30636
30637 #. type: verbatim
30638 #: ../src/guestfs-actions.pod:5402
30639 #, no-wrap
30640 msgid ""
30641 " int\n"
30642 " guestfs_mknod (guestfs_h *g,\n"
30643 "                int mode,\n"
30644 "                int devmajor,\n"
30645 "                int devminor,\n"
30646 "                const char *path);\n"
30647 "\n"
30648 msgstr ""
30649
30650 #. type: textblock
30651 #: ../src/guestfs-actions.pod:5417
30652 msgid ""
30653 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30654 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30655 "regular file).  These constants are available in the standard Linux header "
30656 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30657 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30658 "the appropriate constant for you."
30659 msgstr ""
30660
30661 #. type: =head2
30662 #: ../src/guestfs-actions.pod:5431
30663 msgid "guestfs_mknod_b"
30664 msgstr ""
30665
30666 #. type: verbatim
30667 #: ../src/guestfs-actions.pod:5433
30668 #, no-wrap
30669 msgid ""
30670 " int\n"
30671 " guestfs_mknod_b (guestfs_h *g,\n"
30672 "                  int mode,\n"
30673 "                  int devmajor,\n"
30674 "                  int devminor,\n"
30675 "                  const char *path);\n"
30676 "\n"
30677 msgstr ""
30678
30679 #. type: textblock
30680 #: ../src/guestfs-actions.pod:5440
30681 msgid ""
30682 "This call creates a block device node called C<path> with mode C<mode> and "
30683 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30684 "wrapper around C<guestfs_mknod>."
30685 msgstr ""
30686
30687 #. type: =head2
30688 #: ../src/guestfs-actions.pod:5450
30689 msgid "guestfs_mknod_c"
30690 msgstr ""
30691
30692 #. type: verbatim
30693 #: ../src/guestfs-actions.pod:5452
30694 #, no-wrap
30695 msgid ""
30696 " int\n"
30697 " guestfs_mknod_c (guestfs_h *g,\n"
30698 "                  int mode,\n"
30699 "                  int devmajor,\n"
30700 "                  int devminor,\n"
30701 "                  const char *path);\n"
30702 "\n"
30703 msgstr ""
30704
30705 #. type: textblock
30706 #: ../src/guestfs-actions.pod:5459
30707 msgid ""
30708 "This call creates a char device node called C<path> with mode C<mode> and "
30709 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30710 "wrapper around C<guestfs_mknod>."
30711 msgstr ""
30712
30713 #. type: =head2
30714 #: ../src/guestfs-actions.pod:5469
30715 msgid "guestfs_mkswap"
30716 msgstr ""
30717
30718 #. type: verbatim
30719 #: ../src/guestfs-actions.pod:5471
30720 #, no-wrap
30721 msgid ""
30722 " int\n"
30723 " guestfs_mkswap (guestfs_h *g,\n"
30724 "                 const char *device);\n"
30725 "\n"
30726 msgstr ""
30727
30728 #. type: =head2
30729 #: ../src/guestfs-actions.pod:5481
30730 msgid "guestfs_mkswap_L"
30731 msgstr ""
30732
30733 #. type: verbatim
30734 #: ../src/guestfs-actions.pod:5483
30735 #, no-wrap
30736 msgid ""
30737 " int\n"
30738 " guestfs_mkswap_L (guestfs_h *g,\n"
30739 "                   const char *label,\n"
30740 "                   const char *device);\n"
30741 "\n"
30742 msgstr ""
30743
30744 #. type: =head2
30745 #: ../src/guestfs-actions.pod:5498
30746 msgid "guestfs_mkswap_U"
30747 msgstr ""
30748
30749 #. type: verbatim
30750 #: ../src/guestfs-actions.pod:5500
30751 #, no-wrap
30752 msgid ""
30753 " int\n"
30754 " guestfs_mkswap_U (guestfs_h *g,\n"
30755 "                   const char *uuid,\n"
30756 "                   const char *device);\n"
30757 "\n"
30758 msgstr ""
30759
30760 #. type: =head2
30761 #: ../src/guestfs-actions.pod:5511
30762 msgid "guestfs_mkswap_file"
30763 msgstr ""
30764
30765 #. type: verbatim
30766 #: ../src/guestfs-actions.pod:5513
30767 #, no-wrap
30768 msgid ""
30769 " int\n"
30770 " guestfs_mkswap_file (guestfs_h *g,\n"
30771 "                      const char *path);\n"
30772 "\n"
30773 msgstr ""
30774
30775 #. type: textblock
30776 #: ../src/guestfs-actions.pod:5519
30777 msgid ""
30778 "This command just writes a swap file signature to an existing file.  To "
30779 "create the file itself, use something like C<guestfs_fallocate>."
30780 msgstr ""
30781
30782 #. type: =head2
30783 #: ../src/guestfs-actions.pod:5526
30784 msgid "guestfs_modprobe"
30785 msgstr ""
30786
30787 #. type: verbatim
30788 #: ../src/guestfs-actions.pod:5528
30789 #, no-wrap
30790 msgid ""
30791 " int\n"
30792 " guestfs_modprobe (guestfs_h *g,\n"
30793 "                   const char *modulename);\n"
30794 "\n"
30795 msgstr ""
30796
30797 #. type: =head2
30798 #: ../src/guestfs-actions.pod:5541
30799 msgid "guestfs_mount"
30800 msgstr ""
30801
30802 #. type: verbatim
30803 #: ../src/guestfs-actions.pod:5543
30804 #, no-wrap
30805 msgid ""
30806 " int\n"
30807 " guestfs_mount (guestfs_h *g,\n"
30808 "                const char *device,\n"
30809 "                const char *mountpoint);\n"
30810 "\n"
30811 msgstr ""
30812
30813 #. type: textblock
30814 #: ../src/guestfs-actions.pod:5562
30815 msgid ""
30816 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30817 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30818 "problems for users.  If your program might need to work with older versions "
30819 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30820 "for the first parameter if you don't want any options)."
30821 msgstr ""
30822
30823 #. type: =head2
30824 #: ../src/guestfs-actions.pod:5573
30825 msgid "guestfs_mount_9p"
30826 msgstr ""
30827
30828 #. type: verbatim
30829 #: ../src/guestfs-actions.pod:5575
30830 #, no-wrap
30831 msgid ""
30832 " int\n"
30833 " guestfs_mount_9p (guestfs_h *g,\n"
30834 "                   const char *mounttag,\n"
30835 "                   const char *mountpoint,\n"
30836 "                   ...);\n"
30837 "\n"
30838 msgstr ""
30839
30840 #. type: verbatim
30841 #: ../src/guestfs-actions.pod:5586
30842 #, no-wrap
30843 msgid ""
30844 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30845 "\n"
30846 msgstr ""
30847
30848 #. type: =head2
30849 #: ../src/guestfs-actions.pod:5599
30850 msgid "guestfs_mount_9p_va"
30851 msgstr ""
30852
30853 #. type: verbatim
30854 #: ../src/guestfs-actions.pod:5601
30855 #, no-wrap
30856 msgid ""
30857 " int\n"
30858 " guestfs_mount_9p_va (guestfs_h *g,\n"
30859 "                      const char *mounttag,\n"
30860 "                      const char *mountpoint,\n"
30861 "                      va_list args);\n"
30862 "\n"
30863 msgstr ""
30864
30865 #. type: textblock
30866 #: ../src/guestfs-actions.pod:5607
30867 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30868 msgstr ""
30869
30870 #. type: =head2
30871 #: ../src/guestfs-actions.pod:5611
30872 msgid "guestfs_mount_9p_argv"
30873 msgstr ""
30874
30875 #. type: verbatim
30876 #: ../src/guestfs-actions.pod:5613
30877 #, no-wrap
30878 msgid ""
30879 " int\n"
30880 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30881 "                        const char *mounttag,\n"
30882 "                        const char *mountpoint,\n"
30883 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30884 "\n"
30885 msgstr ""
30886
30887 #. type: textblock
30888 #: ../src/guestfs-actions.pod:5619
30889 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30890 msgstr ""
30891
30892 #. type: =head2
30893 #: ../src/guestfs-actions.pod:5623
30894 msgid "guestfs_mount_loop"
30895 msgstr ""
30896
30897 #. type: verbatim
30898 #: ../src/guestfs-actions.pod:5625
30899 #, no-wrap
30900 msgid ""
30901 " int\n"
30902 " guestfs_mount_loop (guestfs_h *g,\n"
30903 "                     const char *file,\n"
30904 "                     const char *mountpoint);\n"
30905 "\n"
30906 msgstr ""
30907
30908 #. type: =head2
30909 #: ../src/guestfs-actions.pod:5638
30910 msgid "guestfs_mount_options"
30911 msgstr ""
30912
30913 #. type: verbatim
30914 #: ../src/guestfs-actions.pod:5640
30915 #, no-wrap
30916 msgid ""
30917 " int\n"
30918 " guestfs_mount_options (guestfs_h *g,\n"
30919 "                        const char *options,\n"
30920 "                        const char *device,\n"
30921 "                        const char *mountpoint);\n"
30922 "\n"
30923 msgstr ""
30924
30925 #. type: textblock
30926 #: ../src/guestfs-actions.pod:5646
30927 msgid ""
30928 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30929 "the mount options as for the L<mount(8)> I<-o> flag."
30930 msgstr ""
30931
30932 #. type: textblock
30933 #: ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5670 ../src/guestfs-actions.pod:5687
30934 msgid "(Added in 1.0.10)"
30935 msgstr ""
30936
30937 #. type: =head2
30938 #: ../src/guestfs-actions.pod:5658
30939 msgid "guestfs_mount_ro"
30940 msgstr ""
30941
30942 #. type: verbatim
30943 #: ../src/guestfs-actions.pod:5660
30944 #, no-wrap
30945 msgid ""
30946 " int\n"
30947 " guestfs_mount_ro (guestfs_h *g,\n"
30948 "                   const char *device,\n"
30949 "                   const char *mountpoint);\n"
30950 "\n"
30951 msgstr ""
30952
30953 #. type: textblock
30954 #: ../src/guestfs-actions.pod:5665
30955 msgid ""
30956 "This is the same as the C<guestfs_mount> command, but it mounts the "
30957 "filesystem with the read-only (I<-o ro>) flag."
30958 msgstr ""
30959
30960 #. type: =head2
30961 #: ../src/guestfs-actions.pod:5672
30962 msgid "guestfs_mount_vfs"
30963 msgstr ""
30964
30965 #. type: verbatim
30966 #: ../src/guestfs-actions.pod:5674
30967 #, no-wrap
30968 msgid ""
30969 " int\n"
30970 " guestfs_mount_vfs (guestfs_h *g,\n"
30971 "                    const char *options,\n"
30972 "                    const char *vfstype,\n"
30973 "                    const char *device,\n"
30974 "                    const char *mountpoint);\n"
30975 "\n"
30976 msgstr ""
30977
30978 #. type: textblock
30979 #: ../src/guestfs-actions.pod:5681
30980 msgid ""
30981 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30982 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
30983 "I<-t> flags."
30984 msgstr ""
30985
30986 #. type: =head2
30987 #: ../src/guestfs-actions.pod:5689
30988 msgid "guestfs_mountpoints"
30989 msgstr ""
30990
30991 #. type: verbatim
30992 #: ../src/guestfs-actions.pod:5691
30993 #, no-wrap
30994 msgid ""
30995 " char **\n"
30996 " guestfs_mountpoints (guestfs_h *g);\n"
30997 "\n"
30998 msgstr ""
30999
31000 #. type: textblock
31001 #: ../src/guestfs-actions.pod:5694
31002 msgid ""
31003 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31004 "devices.  This one returns a hash table (map) of device name to directory "
31005 "where the device is mounted."
31006 msgstr ""
31007
31008 #. type: =head2
31009 #: ../src/guestfs-actions.pod:5706
31010 msgid "guestfs_mounts"
31011 msgstr ""
31012
31013 #. type: verbatim
31014 #: ../src/guestfs-actions.pod:5708
31015 #, no-wrap
31016 msgid ""
31017 " char **\n"
31018 " guestfs_mounts (guestfs_h *g);\n"
31019 "\n"
31020 msgstr ""
31021
31022 #. type: textblock
31023 #: ../src/guestfs-actions.pod:5716
31024 msgid "See also: C<guestfs_mountpoints>"
31025 msgstr ""
31026
31027 #. type: =head2
31028 #: ../src/guestfs-actions.pod:5724
31029 msgid "guestfs_mv"
31030 msgstr ""
31031
31032 #. type: verbatim
31033 #: ../src/guestfs-actions.pod:5726
31034 #, no-wrap
31035 msgid ""
31036 " int\n"
31037 " guestfs_mv (guestfs_h *g,\n"
31038 "             const char *src,\n"
31039 "             const char *dest);\n"
31040 "\n"
31041 msgstr ""
31042
31043 #. type: =head2
31044 #: ../src/guestfs-actions.pod:5738
31045 msgid "guestfs_ntfs_3g_probe"
31046 msgstr ""
31047
31048 #. type: verbatim
31049 #: ../src/guestfs-actions.pod:5740
31050 #, no-wrap
31051 msgid ""
31052 " int\n"
31053 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31054 "                        int rw,\n"
31055 "                        const char *device);\n"
31056 "\n"
31057 msgstr ""
31058
31059 #. type: textblock
31060 #: ../src/guestfs-actions.pod:5759
31061 msgid "(Added in 1.0.43)"
31062 msgstr ""
31063
31064 #. type: =head2
31065 #: ../src/guestfs-actions.pod:5761
31066 msgid "guestfs_ntfsresize"
31067 msgstr ""
31068
31069 #. type: verbatim
31070 #: ../src/guestfs-actions.pod:5763
31071 #, no-wrap
31072 msgid ""
31073 " int\n"
31074 " guestfs_ntfsresize (guestfs_h *g,\n"
31075 "                     const char *device);\n"
31076 "\n"
31077 msgstr ""
31078
31079 #. type: textblock
31080 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5867
31081 msgid ""
31082 "I<This function is deprecated.> In new code, use the "
31083 "L</guestfs_ntfsresize_opts> call instead."
31084 msgstr ""
31085
31086 #. type: =head2
31087 #: ../src/guestfs-actions.pod:5791
31088 msgid "guestfs_ntfsresize_opts"
31089 msgstr ""
31090
31091 #. type: verbatim
31092 #: ../src/guestfs-actions.pod:5793
31093 #, no-wrap
31094 msgid ""
31095 " int\n"
31096 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31097 "                          const char *device,\n"
31098 "                          ...);\n"
31099 "\n"
31100 msgstr ""
31101
31102 #. type: verbatim
31103 #: ../src/guestfs-actions.pod:5803
31104 #, no-wrap
31105 msgid ""
31106 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31107 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31108 "\n"
31109 msgstr ""
31110
31111 #. type: textblock
31112 #: ../src/guestfs-actions.pod:5823
31113 msgid ""
31114 "After the resize operation, the filesystem is always marked as requiring a "
31115 "consistency check (for safety).  You have to boot into Windows to perform "
31116 "this check and clear this condition.  If you I<don't> set the C<force> "
31117 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31118 "times on a single filesystem without booting into Windows between each "
31119 "resize."
31120 msgstr ""
31121
31122 #. type: =head2
31123 #: ../src/guestfs-actions.pod:5838
31124 msgid "guestfs_ntfsresize_opts_va"
31125 msgstr ""
31126
31127 #. type: verbatim
31128 #: ../src/guestfs-actions.pod:5840
31129 #, no-wrap
31130 msgid ""
31131 " int\n"
31132 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31133 "                             const char *device,\n"
31134 "                             va_list args);\n"
31135 "\n"
31136 msgstr ""
31137
31138 #. type: textblock
31139 #: ../src/guestfs-actions.pod:5845
31140 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31141 msgstr ""
31142
31143 #. type: =head2
31144 #: ../src/guestfs-actions.pod:5849
31145 msgid "guestfs_ntfsresize_opts_argv"
31146 msgstr ""
31147
31148 #. type: verbatim
31149 #: ../src/guestfs-actions.pod:5851
31150 #, no-wrap
31151 msgid ""
31152 " int\n"
31153 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31154 "                               const char *device,\n"
31155 "                               const struct guestfs_ntfsresize_opts_argv "
31156 "*optargs);\n"
31157 "\n"
31158 msgstr ""
31159
31160 #. type: textblock
31161 #: ../src/guestfs-actions.pod:5856
31162 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31163 msgstr ""
31164
31165 #. type: =head2
31166 #: ../src/guestfs-actions.pod:5860
31167 msgid "guestfs_ntfsresize_size"
31168 msgstr ""
31169
31170 #. type: verbatim
31171 #: ../src/guestfs-actions.pod:5862
31172 #, no-wrap
31173 msgid ""
31174 " int\n"
31175 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31176 "                          const char *device,\n"
31177 "                          int64_t size);\n"
31178 "\n"
31179 msgstr ""
31180
31181 #. type: textblock
31182 #: ../src/guestfs-actions.pod:5874
31183 msgid ""
31184 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31185 "to specify the new size (in bytes) explicitly."
31186 msgstr ""
31187
31188 #. type: textblock
31189 #: ../src/guestfs-actions.pod:5879 ../src/guestfs-actions.pod:6338 ../src/guestfs-actions.pod:6411 ../src/guestfs-actions.pod:6679 ../src/guestfs-actions.pod:8428
31190 msgid "(Added in 1.3.14)"
31191 msgstr ""
31192
31193 #. type: =head2
31194 #: ../src/guestfs-actions.pod:5881
31195 msgid "guestfs_part_add"
31196 msgstr ""
31197
31198 #. type: verbatim
31199 #: ../src/guestfs-actions.pod:5883
31200 #, no-wrap
31201 msgid ""
31202 " int\n"
31203 " guestfs_part_add (guestfs_h *g,\n"
31204 "                   const char *device,\n"
31205 "                   const char *prlogex,\n"
31206 "                   int64_t startsect,\n"
31207 "                   int64_t endsect);\n"
31208 "\n"
31209 msgstr ""
31210
31211 #. type: textblock
31212 #: ../src/guestfs-actions.pod:5890
31213 msgid ""
31214 "This command adds a partition to C<device>.  If there is no partition table "
31215 "on the device, call C<guestfs_part_init> first."
31216 msgstr ""
31217
31218 #. type: textblock
31219 #: ../src/guestfs-actions.pod:5902
31220 msgid ""
31221 "Creating a partition which covers the whole disk is not so easy.  Use "
31222 "C<guestfs_part_disk> to do that."
31223 msgstr ""
31224
31225 #. type: textblock
31226 #: ../src/guestfs-actions.pod:5907 ../src/guestfs-actions.pod:5942 ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:6136 ../src/guestfs-actions.pod:6176
31227 msgid "(Added in 1.0.78)"
31228 msgstr ""
31229
31230 #. type: =head2
31231 #: ../src/guestfs-actions.pod:5909
31232 msgid "guestfs_part_del"
31233 msgstr ""
31234
31235 #. type: verbatim
31236 #: ../src/guestfs-actions.pod:5911
31237 #, no-wrap
31238 msgid ""
31239 " int\n"
31240 " guestfs_part_del (guestfs_h *g,\n"
31241 "                   const char *device,\n"
31242 "                   int partnum);\n"
31243 "\n"
31244 msgstr ""
31245
31246 #. type: =head2
31247 #: ../src/guestfs-actions.pod:5926
31248 msgid "guestfs_part_disk"
31249 msgstr ""
31250
31251 #. type: verbatim
31252 #: ../src/guestfs-actions.pod:5928
31253 #, no-wrap
31254 msgid ""
31255 " int\n"
31256 " guestfs_part_disk (guestfs_h *g,\n"
31257 "                    const char *device,\n"
31258 "                    const char *parttype);\n"
31259 "\n"
31260 msgstr ""
31261
31262 #. type: textblock
31263 #: ../src/guestfs-actions.pod:5933
31264 msgid ""
31265 "This command is simply a combination of C<guestfs_part_init> followed by "
31266 "C<guestfs_part_add> to create a single primary partition covering the whole "
31267 "disk."
31268 msgstr ""
31269
31270 #. type: textblock
31271 #: ../src/guestfs-actions.pod:5937
31272 msgid ""
31273 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31274 "possible values are described in C<guestfs_part_init>."
31275 msgstr ""
31276
31277 #. type: =head2
31278 #: ../src/guestfs-actions.pod:5944
31279 msgid "guestfs_part_get_bootable"
31280 msgstr ""
31281
31282 #. type: verbatim
31283 #: ../src/guestfs-actions.pod:5946
31284 #, no-wrap
31285 msgid ""
31286 " int\n"
31287 " guestfs_part_get_bootable (guestfs_h *g,\n"
31288 "                            const char *device,\n"
31289 "                            int partnum);\n"
31290 "\n"
31291 msgstr ""
31292
31293 #. type: textblock
31294 #: ../src/guestfs-actions.pod:5954
31295 msgid "See also C<guestfs_part_set_bootable>."
31296 msgstr ""
31297
31298 #. type: =head2
31299 #: ../src/guestfs-actions.pod:5960
31300 msgid "guestfs_part_get_mbr_id"
31301 msgstr ""
31302
31303 #. type: verbatim
31304 #: ../src/guestfs-actions.pod:5962
31305 #, no-wrap
31306 msgid ""
31307 " int\n"
31308 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31309 "                          const char *device,\n"
31310 "                          int partnum);\n"
31311 "\n"
31312 msgstr ""
31313
31314 #. type: textblock
31315 #: ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6152
31316 msgid ""
31317 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31318 "undefined results for other partition table types (see "
31319 "C<guestfs_part_get_parttype>)."
31320 msgstr ""
31321
31322 #. type: =head2
31323 #: ../src/guestfs-actions.pod:5978
31324 msgid "guestfs_part_get_parttype"
31325 msgstr ""
31326
31327 #. type: verbatim
31328 #: ../src/guestfs-actions.pod:5980
31329 #, no-wrap
31330 msgid ""
31331 " char *\n"
31332 " guestfs_part_get_parttype (guestfs_h *g,\n"
31333 "                            const char *device);\n"
31334 "\n"
31335 msgstr ""
31336
31337 #. type: textblock
31338 #: ../src/guestfs-actions.pod:5987
31339 msgid ""
31340 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31341 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31342 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31343 msgstr ""
31344
31345 #. type: =head2
31346 #: ../src/guestfs-actions.pod:5997
31347 msgid "guestfs_part_init"
31348 msgstr ""
31349
31350 #. type: verbatim
31351 #: ../src/guestfs-actions.pod:5999
31352 #, no-wrap
31353 msgid ""
31354 " int\n"
31355 " guestfs_part_init (guestfs_h *g,\n"
31356 "                    const char *device,\n"
31357 "                    const char *parttype);\n"
31358 "\n"
31359 msgstr ""
31360
31361 #. type: textblock
31362 #: ../src/guestfs-actions.pod:6008
31363 msgid ""
31364 "Initially there are no partitions.  Following this, you should call "
31365 "C<guestfs_part_add> for each partition required."
31366 msgstr ""
31367
31368 #. type: =head2
31369 #: ../src/guestfs-actions.pod:6081
31370 msgid "guestfs_part_list"
31371 msgstr ""
31372
31373 #. type: verbatim
31374 #: ../src/guestfs-actions.pod:6083
31375 #, no-wrap
31376 msgid ""
31377 " struct guestfs_partition_list *\n"
31378 " guestfs_part_list (guestfs_h *g,\n"
31379 "                    const char *device);\n"
31380 "\n"
31381 msgstr ""
31382
31383 #. type: textblock
31384 #: ../src/guestfs-actions.pod:6100
31385 msgid ""
31386 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31387 "the device's sector size, see C<guestfs_blockdev_getss>."
31388 msgstr ""
31389
31390 #. type: textblock
31391 #: ../src/guestfs-actions.pod:6113
31392 msgid ""
31393 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31394 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31395 "use>."
31396 msgstr ""
31397
31398 #. type: =head2
31399 #: ../src/guestfs-actions.pod:6119
31400 msgid "guestfs_part_set_bootable"
31401 msgstr ""
31402
31403 #. type: verbatim
31404 #: ../src/guestfs-actions.pod:6121
31405 #, no-wrap
31406 msgid ""
31407 " int\n"
31408 " guestfs_part_set_bootable (guestfs_h *g,\n"
31409 "                            const char *device,\n"
31410 "                            int partnum,\n"
31411 "                            int bootable);\n"
31412 "\n"
31413 msgstr ""
31414
31415 #. type: =head2
31416 #: ../src/guestfs-actions.pod:6138
31417 msgid "guestfs_part_set_mbr_id"
31418 msgstr ""
31419
31420 #. type: verbatim
31421 #: ../src/guestfs-actions.pod:6140
31422 #, no-wrap
31423 msgid ""
31424 " int\n"
31425 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31426 "                          const char *device,\n"
31427 "                          int partnum,\n"
31428 "                          int idbyte);\n"
31429 "\n"
31430 msgstr ""
31431
31432 #. type: =head2
31433 #: ../src/guestfs-actions.pod:6160
31434 msgid "guestfs_part_set_name"
31435 msgstr ""
31436
31437 #. type: verbatim
31438 #: ../src/guestfs-actions.pod:6162
31439 #, no-wrap
31440 msgid ""
31441 " int\n"
31442 " guestfs_part_set_name (guestfs_h *g,\n"
31443 "                        const char *device,\n"
31444 "                        int partnum,\n"
31445 "                        const char *name);\n"
31446 "\n"
31447 msgstr ""
31448
31449 #. type: =head2
31450 #: ../src/guestfs-actions.pod:6178
31451 msgid "guestfs_part_to_dev"
31452 msgstr ""
31453
31454 #. type: verbatim
31455 #: ../src/guestfs-actions.pod:6180
31456 #, no-wrap
31457 msgid ""
31458 " char *\n"
31459 " guestfs_part_to_dev (guestfs_h *g,\n"
31460 "                      const char *partition);\n"
31461 "\n"
31462 msgstr ""
31463
31464 #. type: textblock
31465 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6207
31466 msgid ""
31467 "The named partition must exist, for example as a string returned from "
31468 "C<guestfs_list_partitions>."
31469 msgstr ""
31470
31471 #. type: textblock
31472 #: ../src/guestfs-actions.pod:6191
31473 msgid "See also C<guestfs_part_to_partnum>."
31474 msgstr ""
31475
31476 #. type: =head2
31477 #: ../src/guestfs-actions.pod:6198
31478 msgid "guestfs_part_to_partnum"
31479 msgstr ""
31480
31481 #. type: verbatim
31482 #: ../src/guestfs-actions.pod:6200
31483 #, no-wrap
31484 msgid ""
31485 " int\n"
31486 " guestfs_part_to_partnum (guestfs_h *g,\n"
31487 "                          const char *partition);\n"
31488 "\n"
31489 msgstr ""
31490
31491 #. type: textblock
31492 #: ../src/guestfs-actions.pod:6210
31493 msgid "See also C<guestfs_part_to_dev>."
31494 msgstr ""
31495
31496 #. type: =head2
31497 #: ../src/guestfs-actions.pod:6216
31498 msgid "guestfs_ping_daemon"
31499 msgstr ""
31500
31501 #. type: verbatim
31502 #: ../src/guestfs-actions.pod:6218
31503 #, no-wrap
31504 msgid ""
31505 " int\n"
31506 " guestfs_ping_daemon (guestfs_h *g);\n"
31507 "\n"
31508 msgstr ""
31509
31510 #. type: =head2
31511 #: ../src/guestfs-actions.pod:6230
31512 msgid "guestfs_pread"
31513 msgstr ""
31514
31515 #. type: verbatim
31516 #: ../src/guestfs-actions.pod:6232
31517 #, no-wrap
31518 msgid ""
31519 " char *\n"
31520 " guestfs_pread (guestfs_h *g,\n"
31521 "                const char *path,\n"
31522 "                int count,\n"
31523 "                int64_t offset,\n"
31524 "                size_t *size_r);\n"
31525 "\n"
31526 msgstr ""
31527
31528 #. type: textblock
31529 #: ../src/guestfs-actions.pod:6245
31530 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31531 msgstr ""
31532
31533 #. type: =head2
31534 #: ../src/guestfs-actions.pod:6256
31535 msgid "guestfs_pread_device"
31536 msgstr ""
31537
31538 #. type: verbatim
31539 #: ../src/guestfs-actions.pod:6258
31540 #, no-wrap
31541 msgid ""
31542 " char *\n"
31543 " guestfs_pread_device (guestfs_h *g,\n"
31544 "                       const char *device,\n"
31545 "                       int count,\n"
31546 "                       int64_t offset,\n"
31547 "                       size_t *size_r);\n"
31548 "\n"
31549 msgstr ""
31550
31551 #. type: textblock
31552 #: ../src/guestfs-actions.pod:6271
31553 msgid "See also C<guestfs_pread>."
31554 msgstr ""
31555
31556 #. type: textblock
31557 #: ../src/guestfs-actions.pod:6280
31558 msgid "(Added in 1.5.21)"
31559 msgstr ""
31560
31561 #. type: =head2
31562 #: ../src/guestfs-actions.pod:6282
31563 msgid "guestfs_pvcreate"
31564 msgstr ""
31565
31566 #. type: verbatim
31567 #: ../src/guestfs-actions.pod:6284
31568 #, no-wrap
31569 msgid ""
31570 " int\n"
31571 " guestfs_pvcreate (guestfs_h *g,\n"
31572 "                   const char *device);\n"
31573 "\n"
31574 msgstr ""
31575
31576 #. type: =head2
31577 #: ../src/guestfs-actions.pod:6296
31578 msgid "guestfs_pvremove"
31579 msgstr ""
31580
31581 #. type: verbatim
31582 #: ../src/guestfs-actions.pod:6298
31583 #, no-wrap
31584 msgid ""
31585 " int\n"
31586 " guestfs_pvremove (guestfs_h *g,\n"
31587 "                   const char *device);\n"
31588 "\n"
31589 msgstr ""
31590
31591 #. type: =head2
31592 #: ../src/guestfs-actions.pod:6313
31593 msgid "guestfs_pvresize"
31594 msgstr ""
31595
31596 #. type: verbatim
31597 #: ../src/guestfs-actions.pod:6315
31598 #, no-wrap
31599 msgid ""
31600 " int\n"
31601 " guestfs_pvresize (guestfs_h *g,\n"
31602 "                   const char *device);\n"
31603 "\n"
31604 msgstr ""
31605
31606 #. type: =head2
31607 #: ../src/guestfs-actions.pod:6326
31608 msgid "guestfs_pvresize_size"
31609 msgstr ""
31610
31611 #. type: verbatim
31612 #: ../src/guestfs-actions.pod:6328
31613 #, no-wrap
31614 msgid ""
31615 " int\n"
31616 " guestfs_pvresize_size (guestfs_h *g,\n"
31617 "                        const char *device,\n"
31618 "                        int64_t size);\n"
31619 "\n"
31620 msgstr ""
31621
31622 #. type: textblock
31623 #: ../src/guestfs-actions.pod:6333
31624 msgid ""
31625 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31626 "specify the new size (in bytes) explicitly."
31627 msgstr ""
31628
31629 #. type: =head2
31630 #: ../src/guestfs-actions.pod:6340
31631 msgid "guestfs_pvs"
31632 msgstr ""
31633
31634 #. type: verbatim
31635 #: ../src/guestfs-actions.pod:6342
31636 #, no-wrap
31637 msgid ""
31638 " char **\n"
31639 " guestfs_pvs (guestfs_h *g);\n"
31640 "\n"
31641 msgstr ""
31642
31643 #. type: textblock
31644 #: ../src/guestfs-actions.pod:6351
31645 msgid "See also C<guestfs_pvs_full>."
31646 msgstr ""
31647
31648 #. type: =head2
31649 #: ../src/guestfs-actions.pod:6359
31650 msgid "guestfs_pvs_full"
31651 msgstr ""
31652
31653 #. type: verbatim
31654 #: ../src/guestfs-actions.pod:6361
31655 #, no-wrap
31656 msgid ""
31657 " struct guestfs_lvm_pv_list *\n"
31658 " guestfs_pvs_full (guestfs_h *g);\n"
31659 "\n"
31660 msgstr ""
31661
31662 #. type: textblock
31663 #: ../src/guestfs-actions.pod:6367
31664 msgid ""
31665 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31666 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
31667 "use>."
31668 msgstr ""
31669
31670 #. type: =head2
31671 #: ../src/guestfs-actions.pod:6373
31672 msgid "guestfs_pvuuid"
31673 msgstr ""
31674
31675 #. type: verbatim
31676 #: ../src/guestfs-actions.pod:6375
31677 #, no-wrap
31678 msgid ""
31679 " char *\n"
31680 " guestfs_pvuuid (guestfs_h *g,\n"
31681 "                 const char *device);\n"
31682 "\n"
31683 msgstr ""
31684
31685 #. type: =head2
31686 #: ../src/guestfs-actions.pod:6386
31687 msgid "guestfs_pwrite"
31688 msgstr ""
31689
31690 #. type: verbatim
31691 #: ../src/guestfs-actions.pod:6388
31692 #, no-wrap
31693 msgid ""
31694 " int\n"
31695 " guestfs_pwrite (guestfs_h *g,\n"
31696 "                 const char *path,\n"
31697 "                 const char *content,\n"
31698 "                 size_t content_size,\n"
31699 "                 int64_t offset);\n"
31700 "\n"
31701 msgstr ""
31702
31703 #. type: textblock
31704 #: ../src/guestfs-actions.pod:6404
31705 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31706 msgstr ""
31707
31708 #. type: =head2
31709 #: ../src/guestfs-actions.pod:6413
31710 msgid "guestfs_pwrite_device"
31711 msgstr ""
31712
31713 #. type: verbatim
31714 #: ../src/guestfs-actions.pod:6415
31715 #, no-wrap
31716 msgid ""
31717 " int\n"
31718 " guestfs_pwrite_device (guestfs_h *g,\n"
31719 "                        const char *device,\n"
31720 "                        const char *content,\n"
31721 "                        size_t content_size,\n"
31722 "                        int64_t offset);\n"
31723 "\n"
31724 msgstr ""
31725
31726 #. type: textblock
31727 #: ../src/guestfs-actions.pod:6430
31728 msgid "See also C<guestfs_pwrite>."
31729 msgstr ""
31730
31731 #. type: textblock
31732 #: ../src/guestfs-actions.pod:6437
31733 msgid "(Added in 1.5.20)"
31734 msgstr ""
31735
31736 #. type: =head2
31737 #: ../src/guestfs-actions.pod:6439
31738 msgid "guestfs_read_file"
31739 msgstr ""
31740
31741 #. type: verbatim
31742 #: ../src/guestfs-actions.pod:6441
31743 #, no-wrap
31744 msgid ""
31745 " char *\n"
31746 " guestfs_read_file (guestfs_h *g,\n"
31747 "                    const char *path,\n"
31748 "                    size_t *size_r);\n"
31749 "\n"
31750 msgstr ""
31751
31752 #. type: textblock
31753 #: ../src/guestfs-actions.pod:6449
31754 msgid ""
31755 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31756 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31757 "function is limited in the total size of file that can be handled."
31758 msgstr ""
31759
31760 #. type: textblock
31761 #: ../src/guestfs-actions.pod:6461
31762 msgid "(Added in 1.0.63)"
31763 msgstr ""
31764
31765 #. type: =head2
31766 #: ../src/guestfs-actions.pod:6463
31767 msgid "guestfs_read_lines"
31768 msgstr ""
31769
31770 #. type: verbatim
31771 #: ../src/guestfs-actions.pod:6465
31772 #, no-wrap
31773 msgid ""
31774 " char **\n"
31775 " guestfs_read_lines (guestfs_h *g,\n"
31776 "                     const char *path);\n"
31777 "\n"
31778 msgstr ""
31779
31780 #. type: textblock
31781 #: ../src/guestfs-actions.pod:6474
31782 msgid ""
31783 "Note that this function cannot correctly handle binary files (specifically, "
31784 "files containing C<\\0> character which is treated as end of line).  For "
31785 "those you need to use the C<guestfs_read_file> function which has a more "
31786 "complex interface."
31787 msgstr ""
31788
31789 #. type: =head2
31790 #: ../src/guestfs-actions.pod:6485
31791 msgid "guestfs_readdir"
31792 msgstr ""
31793
31794 #. type: verbatim
31795 #: ../src/guestfs-actions.pod:6487
31796 #, no-wrap
31797 msgid ""
31798 " struct guestfs_dirent_list *\n"
31799 " guestfs_readdir (guestfs_h *g,\n"
31800 "                  const char *dir);\n"
31801 "\n"
31802 msgstr ""
31803
31804 #. type: textblock
31805 #: ../src/guestfs-actions.pod:6541
31806 msgid ""
31807 "This function is primarily intended for use by programs.  To get a simple "
31808 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31809 "consumption, use C<guestfs_ll>."
31810 msgstr ""
31811
31812 #. type: textblock
31813 #: ../src/guestfs-actions.pod:6545
31814 msgid ""
31815 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31816 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
31817 "use>."
31818 msgstr ""
31819
31820 #. type: =head2
31821 #: ../src/guestfs-actions.pod:6551
31822 msgid "guestfs_readlink"
31823 msgstr ""
31824
31825 #. type: verbatim
31826 #: ../src/guestfs-actions.pod:6553
31827 #, no-wrap
31828 msgid ""
31829 " char *\n"
31830 " guestfs_readlink (guestfs_h *g,\n"
31831 "                   const char *path);\n"
31832 "\n"
31833 msgstr ""
31834
31835 #. type: =head2
31836 #: ../src/guestfs-actions.pod:6564
31837 msgid "guestfs_readlinklist"
31838 msgstr ""
31839
31840 #. type: verbatim
31841 #: ../src/guestfs-actions.pod:6566
31842 #, no-wrap
31843 msgid ""
31844 " char **\n"
31845 " guestfs_readlinklist (guestfs_h *g,\n"
31846 "                       const char *path,\n"
31847 "                       char *const *names);\n"
31848 "\n"
31849 msgstr ""
31850
31851 #. type: =head2
31852 #: ../src/guestfs-actions.pod:6599
31853 msgid "guestfs_realpath"
31854 msgstr ""
31855
31856 #. type: verbatim
31857 #: ../src/guestfs-actions.pod:6601
31858 #, no-wrap
31859 msgid ""
31860 " char *\n"
31861 " guestfs_realpath (guestfs_h *g,\n"
31862 "                   const char *path);\n"
31863 "\n"
31864 msgstr ""
31865
31866 #. type: =head2
31867 #: ../src/guestfs-actions.pod:6613
31868 msgid "guestfs_removexattr"
31869 msgstr ""
31870
31871 #. type: verbatim
31872 #: ../src/guestfs-actions.pod:6615
31873 #, no-wrap
31874 msgid ""
31875 " int\n"
31876 " guestfs_removexattr (guestfs_h *g,\n"
31877 "                      const char *xattr,\n"
31878 "                      const char *path);\n"
31879 "\n"
31880 msgstr ""
31881
31882 #. type: textblock
31883 #: ../src/guestfs-actions.pod:6623
31884 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31885 msgstr ""
31886
31887 #. type: =head2
31888 #: ../src/guestfs-actions.pod:6629
31889 msgid "guestfs_resize2fs"
31890 msgstr ""
31891
31892 #. type: verbatim
31893 #: ../src/guestfs-actions.pod:6631
31894 #, no-wrap
31895 msgid ""
31896 " int\n"
31897 " guestfs_resize2fs (guestfs_h *g,\n"
31898 "                    const char *device);\n"
31899 "\n"
31900 msgstr ""
31901
31902 #. type: textblock
31903 #: ../src/guestfs-actions.pod:6638
31904 msgid ""
31905 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31906 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31907 "sometimes gives an error about this and sometimes not.  In any case, it is "
31908 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31909 msgstr ""
31910
31911 #. type: =head2
31912 #: ../src/guestfs-actions.pod:6648
31913 msgid "guestfs_resize2fs_M"
31914 msgstr ""
31915
31916 #. type: verbatim
31917 #: ../src/guestfs-actions.pod:6650
31918 #, no-wrap
31919 msgid ""
31920 " int\n"
31921 " guestfs_resize2fs_M (guestfs_h *g,\n"
31922 "                      const char *device);\n"
31923 "\n"
31924 msgstr ""
31925
31926 #. type: textblock
31927 #: ../src/guestfs-actions.pod:6654
31928 msgid ""
31929 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31930 "resized to its minimum size.  This works like the I<-M> option to the "
31931 "C<resize2fs> command."
31932 msgstr ""
31933
31934 #. type: textblock
31935 #: ../src/guestfs-actions.pod:6658
31936 msgid ""
31937 "To get the resulting size of the filesystem you should call "
31938 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31939 "These two numbers, multiplied together, give the resulting size of the "
31940 "minimal filesystem in bytes."
31941 msgstr ""
31942
31943 #. type: =head2
31944 #: ../src/guestfs-actions.pod:6667
31945 msgid "guestfs_resize2fs_size"
31946 msgstr ""
31947
31948 #. type: verbatim
31949 #: ../src/guestfs-actions.pod:6669
31950 #, no-wrap
31951 msgid ""
31952 " int\n"
31953 " guestfs_resize2fs_size (guestfs_h *g,\n"
31954 "                         const char *device,\n"
31955 "                         int64_t size);\n"
31956 "\n"
31957 msgstr ""
31958
31959 #. type: textblock
31960 #: ../src/guestfs-actions.pod:6674
31961 msgid ""
31962 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31963 "to specify the new size (in bytes) explicitly."
31964 msgstr ""
31965
31966 #. type: =head2
31967 #: ../src/guestfs-actions.pod:6681
31968 msgid "guestfs_rm"
31969 msgstr ""
31970
31971 #. type: verbatim
31972 #: ../src/guestfs-actions.pod:6683
31973 #, no-wrap
31974 msgid ""
31975 " int\n"
31976 " guestfs_rm (guestfs_h *g,\n"
31977 "             const char *path);\n"
31978 "\n"
31979 msgstr ""
31980
31981 #. type: =head2
31982 #: ../src/guestfs-actions.pod:6693
31983 msgid "guestfs_rm_rf"
31984 msgstr ""
31985
31986 #. type: verbatim
31987 #: ../src/guestfs-actions.pod:6695
31988 #, no-wrap
31989 msgid ""
31990 " int\n"
31991 " guestfs_rm_rf (guestfs_h *g,\n"
31992 "                const char *path);\n"
31993 "\n"
31994 msgstr ""
31995
31996 #. type: =head2
31997 #: ../src/guestfs-actions.pod:6707
31998 msgid "guestfs_rmdir"
31999 msgstr ""
32000
32001 #. type: verbatim
32002 #: ../src/guestfs-actions.pod:6709
32003 #, no-wrap
32004 msgid ""
32005 " int\n"
32006 " guestfs_rmdir (guestfs_h *g,\n"
32007 "                const char *path);\n"
32008 "\n"
32009 msgstr ""
32010
32011 #. type: =head2
32012 #: ../src/guestfs-actions.pod:6719
32013 msgid "guestfs_rmmountpoint"
32014 msgstr ""
32015
32016 #. type: verbatim
32017 #: ../src/guestfs-actions.pod:6721
32018 #, no-wrap
32019 msgid ""
32020 " int\n"
32021 " guestfs_rmmountpoint (guestfs_h *g,\n"
32022 "                       const char *exemptpath);\n"
32023 "\n"
32024 msgstr ""
32025
32026 #. type: textblock
32027 #: ../src/guestfs-actions.pod:6725
32028 msgid ""
32029 "This calls removes a mountpoint that was previously created with "
32030 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32031 msgstr ""
32032
32033 #. type: =head2
32034 #: ../src/guestfs-actions.pod:6733
32035 msgid "guestfs_scrub_device"
32036 msgstr ""
32037
32038 #. type: verbatim
32039 #: ../src/guestfs-actions.pod:6735
32040 #, no-wrap
32041 msgid ""
32042 " int\n"
32043 " guestfs_scrub_device (guestfs_h *g,\n"
32044 "                       const char *device);\n"
32045 "\n"
32046 msgstr ""
32047
32048 #. type: textblock
32049 #: ../src/guestfs-actions.pod:6747 ../src/guestfs-actions.pod:6765 ../src/guestfs-actions.pod:6784
32050 msgid "(Added in 1.0.52)"
32051 msgstr ""
32052
32053 #. type: =head2
32054 #: ../src/guestfs-actions.pod:6749
32055 msgid "guestfs_scrub_file"
32056 msgstr ""
32057
32058 #. type: verbatim
32059 #: ../src/guestfs-actions.pod:6751
32060 #, no-wrap
32061 msgid ""
32062 " int\n"
32063 " guestfs_scrub_file (guestfs_h *g,\n"
32064 "                     const char *file);\n"
32065 "\n"
32066 msgstr ""
32067
32068 #. type: =head2
32069 #: ../src/guestfs-actions.pod:6767
32070 msgid "guestfs_scrub_freespace"
32071 msgstr ""
32072
32073 #. type: verbatim
32074 #: ../src/guestfs-actions.pod:6769
32075 #, no-wrap
32076 msgid ""
32077 " int\n"
32078 " guestfs_scrub_freespace (guestfs_h *g,\n"
32079 "                          const char *dir);\n"
32080 "\n"
32081 msgstr ""
32082
32083 #. type: textblock
32084 #: ../src/guestfs-actions.pod:6773
32085 msgid ""
32086 "This command creates the directory C<dir> and then fills it with files until "
32087 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32088 "and deletes them.  The intention is to scrub any free space on the partition "
32089 "containing C<dir>."
32090 msgstr ""
32091
32092 #. type: =head2
32093 #: ../src/guestfs-actions.pod:6786
32094 msgid "guestfs_set_append"
32095 msgstr ""
32096
32097 #. type: verbatim
32098 #: ../src/guestfs-actions.pod:6788
32099 #, no-wrap
32100 msgid ""
32101 " int\n"
32102 " guestfs_set_append (guestfs_h *g,\n"
32103 "                     const char *append);\n"
32104 "\n"
32105 msgstr ""
32106
32107 #. type: =head2
32108 #: ../src/guestfs-actions.pod:6805
32109 msgid "guestfs_set_attach_method"
32110 msgstr ""
32111
32112 #. type: verbatim
32113 #: ../src/guestfs-actions.pod:6807
32114 #, no-wrap
32115 msgid ""
32116 " int\n"
32117 " guestfs_set_attach_method (guestfs_h *g,\n"
32118 "                            const char *attachmethod);\n"
32119 "\n"
32120 msgstr ""
32121
32122 #. type: =head2
32123 #: ../src/guestfs-actions.pod:6835
32124 msgid "guestfs_set_autosync"
32125 msgstr ""
32126
32127 #. type: verbatim
32128 #: ../src/guestfs-actions.pod:6837
32129 #, no-wrap
32130 msgid ""
32131 " int\n"
32132 " guestfs_set_autosync (guestfs_h *g,\n"
32133 "                       int autosync);\n"
32134 "\n"
32135 msgstr ""
32136
32137 #. type: =head2
32138 #: ../src/guestfs-actions.pod:6853
32139 msgid "guestfs_set_direct"
32140 msgstr ""
32141
32142 #. type: verbatim
32143 #: ../src/guestfs-actions.pod:6855
32144 #, no-wrap
32145 msgid ""
32146 " int\n"
32147 " guestfs_set_direct (guestfs_h *g,\n"
32148 "                     int direct);\n"
32149 "\n"
32150 msgstr ""
32151
32152 #. type: textblock
32153 #: ../src/guestfs-actions.pod:6863
32154 msgid ""
32155 "One consequence of this is that log messages aren't caught by the library "
32156 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32157 "stdout."
32158 msgstr ""
32159
32160 #. type: =head2
32161 #: ../src/guestfs-actions.pod:6876
32162 msgid "guestfs_set_e2label"
32163 msgstr ""
32164
32165 #. type: verbatim
32166 #: ../src/guestfs-actions.pod:6878
32167 #, no-wrap
32168 msgid ""
32169 " int\n"
32170 " guestfs_set_e2label (guestfs_h *g,\n"
32171 "                      const char *device,\n"
32172 "                      const char *label);\n"
32173 "\n"
32174 msgstr ""
32175
32176 #. type: textblock
32177 #: ../src/guestfs-actions.pod:6887
32178 msgid ""
32179 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32180 "the existing label on a filesystem."
32181 msgstr ""
32182
32183 #. type: =head2
32184 #: ../src/guestfs-actions.pod:6894
32185 msgid "guestfs_set_e2uuid"
32186 msgstr ""
32187
32188 #. type: verbatim
32189 #: ../src/guestfs-actions.pod:6896
32190 #, no-wrap
32191 msgid ""
32192 " int\n"
32193 " guestfs_set_e2uuid (guestfs_h *g,\n"
32194 "                     const char *device,\n"
32195 "                     const char *uuid);\n"
32196 "\n"
32197 msgstr ""
32198
32199 #. type: textblock
32200 #: ../src/guestfs-actions.pod:6906
32201 msgid ""
32202 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32203 "the existing UUID of a filesystem."
32204 msgstr ""
32205
32206 #. type: =head2
32207 #: ../src/guestfs-actions.pod:6913
32208 msgid "guestfs_set_memsize"
32209 msgstr ""
32210
32211 #. type: verbatim
32212 #: ../src/guestfs-actions.pod:6915
32213 #, no-wrap
32214 msgid ""
32215 " int\n"
32216 " guestfs_set_memsize (guestfs_h *g,\n"
32217 "                      int memsize);\n"
32218 "\n"
32219 msgstr ""
32220
32221 #. type: textblock
32222 #: ../src/guestfs-actions.pod:6919
32223 msgid ""
32224 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32225 "This only has any effect if called before C<guestfs_launch>."
32226 msgstr ""
32227
32228 #. type: =head2
32229 #: ../src/guestfs-actions.pod:6934
32230 msgid "guestfs_set_network"
32231 msgstr ""
32232
32233 #. type: verbatim
32234 #: ../src/guestfs-actions.pod:6936
32235 #, no-wrap
32236 msgid ""
32237 " int\n"
32238 " guestfs_set_network (guestfs_h *g,\n"
32239 "                      int network);\n"
32240 "\n"
32241 msgstr ""
32242
32243 #. type: textblock
32244 #: ../src/guestfs-actions.pod:6946
32245 msgid ""
32246 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32247 "effect."
32248 msgstr ""
32249
32250 #. type: =head2
32251 #: ../src/guestfs-actions.pod:6953
32252 msgid "guestfs_set_path"
32253 msgstr ""
32254
32255 #. type: verbatim
32256 #: ../src/guestfs-actions.pod:6955
32257 #, no-wrap
32258 msgid ""
32259 " int\n"
32260 " guestfs_set_path (guestfs_h *g,\n"
32261 "                   const char *searchpath);\n"
32262 "\n"
32263 msgstr ""
32264
32265 #. type: =head2
32266 #: ../src/guestfs-actions.pod:6970
32267 msgid "guestfs_set_pgroup"
32268 msgstr ""
32269
32270 #. type: verbatim
32271 #: ../src/guestfs-actions.pod:6972
32272 #, no-wrap
32273 msgid ""
32274 " int\n"
32275 " guestfs_set_pgroup (guestfs_h *g,\n"
32276 "                     int pgroup);\n"
32277 "\n"
32278 msgstr ""
32279
32280 #. type: =head2
32281 #: ../src/guestfs-actions.pod:6989
32282 msgid "guestfs_set_qemu"
32283 msgstr ""
32284
32285 #. type: verbatim
32286 #: ../src/guestfs-actions.pod:6991
32287 #, no-wrap
32288 msgid ""
32289 " int\n"
32290 " guestfs_set_qemu (guestfs_h *g,\n"
32291 "                   const char *qemu);\n"
32292 "\n"
32293 msgstr ""
32294
32295 #. type: =head2
32296 #: ../src/guestfs-actions.pod:7017
32297 msgid "guestfs_set_recovery_proc"
32298 msgstr ""
32299
32300 #. type: verbatim
32301 #: ../src/guestfs-actions.pod:7019
32302 #, no-wrap
32303 msgid ""
32304 " int\n"
32305 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32306 "                            int recoveryproc);\n"
32307 "\n"
32308 msgstr ""
32309
32310 #. type: textblock
32311 #: ../src/guestfs-actions.pod:7023
32312 msgid ""
32313 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32314 "not create a recovery process.  The purpose of the recovery process is to "
32315 "stop runaway qemu processes in the case where the main program aborts "
32316 "abruptly."
32317 msgstr ""
32318
32319 #. type: textblock
32320 #: ../src/guestfs-actions.pod:7028
32321 msgid ""
32322 "This only has any effect if called before C<guestfs_launch>, and the default "
32323 "is true."
32324 msgstr ""
32325
32326 #. type: =head2
32327 #: ../src/guestfs-actions.pod:7041
32328 msgid "guestfs_set_selinux"
32329 msgstr ""
32330
32331 #. type: verbatim
32332 #: ../src/guestfs-actions.pod:7043
32333 #, no-wrap
32334 msgid ""
32335 " int\n"
32336 " guestfs_set_selinux (guestfs_h *g,\n"
32337 "                      int selinux);\n"
32338 "\n"
32339 msgstr ""
32340
32341 #. type: =head2
32342 #: ../src/guestfs-actions.pod:7060
32343 msgid "guestfs_set_smp"
32344 msgstr ""
32345
32346 #. type: verbatim
32347 #: ../src/guestfs-actions.pod:7062
32348 #, no-wrap
32349 msgid ""
32350 " int\n"
32351 " guestfs_set_smp (guestfs_h *g,\n"
32352 "                  int smp);\n"
32353 "\n"
32354 msgstr ""
32355
32356 #. type: textblock
32357 #: ../src/guestfs-actions.pod:7070
32358 msgid "This function must be called before C<guestfs_launch>."
32359 msgstr ""
32360
32361 #. type: =head2
32362 #: ../src/guestfs-actions.pod:7076
32363 msgid "guestfs_set_trace"
32364 msgstr ""
32365
32366 #. type: verbatim
32367 #: ../src/guestfs-actions.pod:7078
32368 #, no-wrap
32369 msgid ""
32370 " int\n"
32371 " guestfs_set_trace (guestfs_h *g,\n"
32372 "                    int trace);\n"
32373 "\n"
32374 msgstr ""
32375
32376 #. type: textblock
32377 #: ../src/guestfs-actions.pod:7092
32378 msgid ""
32379 "Trace messages are normally sent to C<stderr>, unless you register a "
32380 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32381 msgstr ""
32382
32383 #. type: =head2
32384 #: ../src/guestfs-actions.pod:7100
32385 msgid "guestfs_set_verbose"
32386 msgstr ""
32387
32388 #. type: verbatim
32389 #: ../src/guestfs-actions.pod:7102
32390 #, no-wrap
32391 msgid ""
32392 " int\n"
32393 " guestfs_set_verbose (guestfs_h *g,\n"
32394 "                      int verbose);\n"
32395 "\n"
32396 msgstr ""
32397
32398 #. type: textblock
32399 #: ../src/guestfs-actions.pod:7111
32400 msgid ""
32401 "Verbose messages are normally sent to C<stderr>, unless you register a "
32402 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32403 msgstr ""
32404
32405 #. type: =head2
32406 #: ../src/guestfs-actions.pod:7119
32407 msgid "guestfs_setcon"
32408 msgstr ""
32409
32410 #. type: verbatim
32411 #: ../src/guestfs-actions.pod:7121
32412 #, no-wrap
32413 msgid ""
32414 " int\n"
32415 " guestfs_setcon (guestfs_h *g,\n"
32416 "                 const char *context);\n"
32417 "\n"
32418 msgstr ""
32419
32420 #. type: =head2
32421 #: ../src/guestfs-actions.pod:7134
32422 msgid "guestfs_setxattr"
32423 msgstr ""
32424
32425 #. type: verbatim
32426 #: ../src/guestfs-actions.pod:7136
32427 #, no-wrap
32428 msgid ""
32429 " int\n"
32430 " guestfs_setxattr (guestfs_h *g,\n"
32431 "                   const char *xattr,\n"
32432 "                   const char *val,\n"
32433 "                   int vallen,\n"
32434 "                   const char *path);\n"
32435 "\n"
32436 msgstr ""
32437
32438 #. type: textblock
32439 #: ../src/guestfs-actions.pod:7147
32440 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32441 msgstr ""
32442
32443 #. type: =head2
32444 #: ../src/guestfs-actions.pod:7153
32445 msgid "guestfs_sfdisk"
32446 msgstr ""
32447
32448 #. type: verbatim
32449 #: ../src/guestfs-actions.pod:7155
32450 #, no-wrap
32451 msgid ""
32452 " int\n"
32453 " guestfs_sfdisk (guestfs_h *g,\n"
32454 "                 const char *device,\n"
32455 "                 int cyls,\n"
32456 "                 int heads,\n"
32457 "                 int sectors,\n"
32458 "                 char *const *lines);\n"
32459 "\n"
32460 msgstr ""
32461
32462 #. type: textblock
32463 #: ../src/guestfs-actions.pod:7163 ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7235
32464 msgid ""
32465 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32466 "call instead."
32467 msgstr ""
32468
32469 #. type: textblock
32470 #: ../src/guestfs-actions.pod:7190
32471 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32472 msgstr ""
32473
32474 #. type: =head2
32475 #: ../src/guestfs-actions.pod:7197
32476 msgid "guestfs_sfdiskM"
32477 msgstr ""
32478
32479 #. type: verbatim
32480 #: ../src/guestfs-actions.pod:7199
32481 #, no-wrap
32482 msgid ""
32483 " int\n"
32484 " guestfs_sfdiskM (guestfs_h *g,\n"
32485 "                  const char *device,\n"
32486 "                  char *const *lines);\n"
32487 "\n"
32488 msgstr ""
32489
32490 #. type: textblock
32491 #: ../src/guestfs-actions.pod:7211
32492 msgid ""
32493 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32494 "partition sizes are specified in megabytes only (rounded to the nearest "
32495 "cylinder) and you don't need to specify the cyls, heads and sectors "
32496 "parameters which were rarely if ever used anyway."
32497 msgstr ""
32498
32499 #. type: textblock
32500 #: ../src/guestfs-actions.pod:7217
32501 msgid ""
32502 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32503 "C<guestfs_part_disk>"
32504 msgstr ""
32505
32506 #. type: =head2
32507 #: ../src/guestfs-actions.pod:7224
32508 msgid "guestfs_sfdisk_N"
32509 msgstr ""
32510
32511 #. type: verbatim
32512 #: ../src/guestfs-actions.pod:7226
32513 #, no-wrap
32514 msgid ""
32515 " int\n"
32516 " guestfs_sfdisk_N (guestfs_h *g,\n"
32517 "                   const char *device,\n"
32518 "                   int partnum,\n"
32519 "                   int cyls,\n"
32520 "                   int heads,\n"
32521 "                   int sectors,\n"
32522 "                   const char *line);\n"
32523 "\n"
32524 msgstr ""
32525
32526 #. type: textblock
32527 #: ../src/guestfs-actions.pod:7245
32528 msgid ""
32529 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32530 "for the cyls/heads/sectors parameters."
32531 msgstr ""
32532
32533 #. type: textblock
32534 #: ../src/guestfs-actions.pod:7248
32535 msgid "See also: C<guestfs_part_add>"
32536 msgstr ""
32537
32538 #. type: =head2
32539 #: ../src/guestfs-actions.pod:7254
32540 msgid "guestfs_sfdisk_disk_geometry"
32541 msgstr ""
32542
32543 #. type: verbatim
32544 #: ../src/guestfs-actions.pod:7256
32545 #, no-wrap
32546 msgid ""
32547 " char *\n"
32548 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32549 "                               const char *device);\n"
32550 "\n"
32551 msgstr ""
32552
32553 #. type: textblock
32554 #: ../src/guestfs-actions.pod:7260
32555 msgid ""
32556 "This displays the disk geometry of C<device> read from the partition table.  "
32557 "Especially in the case where the underlying block device has been resized, "
32558 "this can be different from the kernel's idea of the geometry (see "
32559 "C<guestfs_sfdisk_kernel_geometry>)."
32560 msgstr ""
32561
32562 #. type: =head2
32563 #: ../src/guestfs-actions.pod:7273
32564 msgid "guestfs_sfdisk_kernel_geometry"
32565 msgstr ""
32566
32567 #. type: verbatim
32568 #: ../src/guestfs-actions.pod:7275
32569 #, no-wrap
32570 msgid ""
32571 " char *\n"
32572 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32573 "                                 const char *device);\n"
32574 "\n"
32575 msgstr ""
32576
32577 #. type: =head2
32578 #: ../src/guestfs-actions.pod:7289
32579 msgid "guestfs_sfdisk_l"
32580 msgstr ""
32581
32582 #. type: verbatim
32583 #: ../src/guestfs-actions.pod:7291
32584 #, no-wrap
32585 msgid ""
32586 " char *\n"
32587 " guestfs_sfdisk_l (guestfs_h *g,\n"
32588 "                   const char *device);\n"
32589 "\n"
32590 msgstr ""
32591
32592 #. type: textblock
32593 #: ../src/guestfs-actions.pod:7295
32594 msgid ""
32595 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32596 "call instead."
32597 msgstr ""
32598
32599 #. type: textblock
32600 #: ../src/guestfs-actions.pod:7306
32601 msgid "See also: C<guestfs_part_list>"
32602 msgstr ""
32603
32604 #. type: =head2
32605 #: ../src/guestfs-actions.pod:7313
32606 msgid "guestfs_sh"
32607 msgstr ""
32608
32609 #. type: verbatim
32610 #: ../src/guestfs-actions.pod:7315
32611 #, no-wrap
32612 msgid ""
32613 " char *\n"
32614 " guestfs_sh (guestfs_h *g,\n"
32615 "             const char *command);\n"
32616 "\n"
32617 msgstr ""
32618
32619 #. type: textblock
32620 #: ../src/guestfs-actions.pod:7322
32621 msgid "This is like C<guestfs_command>, but passes the command to:"
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs-actions.pod:7330
32626 msgid "All the provisos about C<guestfs_command> apply to this call."
32627 msgstr ""
32628
32629 #. type: =head2
32630 #: ../src/guestfs-actions.pod:7337
32631 msgid "guestfs_sh_lines"
32632 msgstr ""
32633
32634 #. type: verbatim
32635 #: ../src/guestfs-actions.pod:7339
32636 #, no-wrap
32637 msgid ""
32638 " char **\n"
32639 " guestfs_sh_lines (guestfs_h *g,\n"
32640 "                   const char *command);\n"
32641 "\n"
32642 msgstr ""
32643
32644 #. type: textblock
32645 #: ../src/guestfs-actions.pod:7343
32646 msgid ""
32647 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32648 "lines."
32649 msgstr ""
32650
32651 #. type: textblock
32652 #: ../src/guestfs-actions.pod:7346
32653 msgid "See also: C<guestfs_command_lines>"
32654 msgstr ""
32655
32656 #. type: =head2
32657 #: ../src/guestfs-actions.pod:7354
32658 msgid "guestfs_sleep"
32659 msgstr ""
32660
32661 #. type: verbatim
32662 #: ../src/guestfs-actions.pod:7356
32663 #, no-wrap
32664 msgid ""
32665 " int\n"
32666 " guestfs_sleep (guestfs_h *g,\n"
32667 "                int secs);\n"
32668 "\n"
32669 msgstr ""
32670
32671 #. type: textblock
32672 #: ../src/guestfs-actions.pod:7364
32673 msgid "(Added in 1.0.41)"
32674 msgstr ""
32675
32676 #. type: =head2
32677 #: ../src/guestfs-actions.pod:7366 ../src/guestfs-structs.pod:109
32678 msgid "guestfs_stat"
32679 msgstr ""
32680
32681 #. type: verbatim
32682 #: ../src/guestfs-actions.pod:7368
32683 #, no-wrap
32684 msgid ""
32685 " struct guestfs_stat *\n"
32686 " guestfs_stat (guestfs_h *g,\n"
32687 "               const char *path);\n"
32688 "\n"
32689 msgstr ""
32690
32691 #. type: =head2
32692 #: ../src/guestfs-actions.pod:7382 ../src/guestfs-structs.pod:135
32693 msgid "guestfs_statvfs"
32694 msgstr ""
32695
32696 #. type: verbatim
32697 #: ../src/guestfs-actions.pod:7384
32698 #, no-wrap
32699 msgid ""
32700 " struct guestfs_statvfs *\n"
32701 " guestfs_statvfs (guestfs_h *g,\n"
32702 "                  const char *path);\n"
32703 "\n"
32704 msgstr ""
32705
32706 #. type: textblock
32707 #: ../src/guestfs-actions.pod:7394
32708 msgid ""
32709 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32710 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32711 msgstr ""
32712
32713 #. type: =head2
32714 #: ../src/guestfs-actions.pod:7400
32715 msgid "guestfs_strings"
32716 msgstr ""
32717
32718 #. type: verbatim
32719 #: ../src/guestfs-actions.pod:7402
32720 #, no-wrap
32721 msgid ""
32722 " char **\n"
32723 " guestfs_strings (guestfs_h *g,\n"
32724 "                  const char *path);\n"
32725 "\n"
32726 msgstr ""
32727
32728 #. type: =head2
32729 #: ../src/guestfs-actions.pod:7418
32730 msgid "guestfs_strings_e"
32731 msgstr ""
32732
32733 #. type: verbatim
32734 #: ../src/guestfs-actions.pod:7420
32735 #, no-wrap
32736 msgid ""
32737 " char **\n"
32738 " guestfs_strings_e (guestfs_h *g,\n"
32739 "                    const char *encoding,\n"
32740 "                    const char *path);\n"
32741 "\n"
32742 msgstr ""
32743
32744 #. type: textblock
32745 #: ../src/guestfs-actions.pod:7425
32746 msgid ""
32747 "This is like the C<guestfs_strings> command, but allows you to specify the "
32748 "encoding of strings that are looked for in the source file C<path>."
32749 msgstr ""
32750
32751 #. type: textblock
32752 #: ../src/guestfs-actions.pod:7435
32753 msgid ""
32754 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32755 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32756 msgstr ""
32757
32758 #. type: =head2
32759 #: ../src/guestfs-actions.pod:7473
32760 msgid "guestfs_swapoff_device"
32761 msgstr ""
32762
32763 #. type: verbatim
32764 #: ../src/guestfs-actions.pod:7475
32765 #, no-wrap
32766 msgid ""
32767 " int\n"
32768 " guestfs_swapoff_device (guestfs_h *g,\n"
32769 "                         const char *device);\n"
32770 "\n"
32771 msgstr ""
32772
32773 #. type: textblock
32774 #: ../src/guestfs-actions.pod:7479
32775 msgid ""
32776 "This command disables the libguestfs appliance swap device or partition "
32777 "named C<device>.  See C<guestfs_swapon_device>."
32778 msgstr ""
32779
32780 #. type: =head2
32781 #: ../src/guestfs-actions.pod:7487
32782 msgid "guestfs_swapoff_file"
32783 msgstr ""
32784
32785 #. type: verbatim
32786 #: ../src/guestfs-actions.pod:7489
32787 #, no-wrap
32788 msgid ""
32789 " int\n"
32790 " guestfs_swapoff_file (guestfs_h *g,\n"
32791 "                       const char *file);\n"
32792 "\n"
32793 msgstr ""
32794
32795 #. type: =head2
32796 #: ../src/guestfs-actions.pod:7499
32797 msgid "guestfs_swapoff_label"
32798 msgstr ""
32799
32800 #. type: verbatim
32801 #: ../src/guestfs-actions.pod:7501
32802 #, no-wrap
32803 msgid ""
32804 " int\n"
32805 " guestfs_swapoff_label (guestfs_h *g,\n"
32806 "                        const char *label);\n"
32807 "\n"
32808 msgstr ""
32809
32810 #. type: =head2
32811 #: ../src/guestfs-actions.pod:7512
32812 msgid "guestfs_swapoff_uuid"
32813 msgstr ""
32814
32815 #. type: verbatim
32816 #: ../src/guestfs-actions.pod:7514
32817 #, no-wrap
32818 msgid ""
32819 " int\n"
32820 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32821 "                       const char *uuid);\n"
32822 "\n"
32823 msgstr ""
32824
32825 #. type: =head2
32826 #: ../src/guestfs-actions.pod:7525
32827 msgid "guestfs_swapon_device"
32828 msgstr ""
32829
32830 #. type: verbatim
32831 #: ../src/guestfs-actions.pod:7527
32832 #, no-wrap
32833 msgid ""
32834 " int\n"
32835 " guestfs_swapon_device (guestfs_h *g,\n"
32836 "                        const char *device);\n"
32837 "\n"
32838 msgstr ""
32839
32840 #. type: textblock
32841 #: ../src/guestfs-actions.pod:7531
32842 msgid ""
32843 "This command enables the libguestfs appliance to use the swap device or "
32844 "partition named C<device>.  The increased memory is made available for all "
32845 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32846 msgstr ""
32847
32848 #. type: =head2
32849 #: ../src/guestfs-actions.pod:7547
32850 msgid "guestfs_swapon_file"
32851 msgstr ""
32852
32853 #. type: verbatim
32854 #: ../src/guestfs-actions.pod:7549
32855 #, no-wrap
32856 msgid ""
32857 " int\n"
32858 " guestfs_swapon_file (guestfs_h *g,\n"
32859 "                      const char *file);\n"
32860 "\n"
32861 msgstr ""
32862
32863 #. type: textblock
32864 #: ../src/guestfs-actions.pod:7553
32865 msgid ""
32866 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32867 "notes."
32868 msgstr ""
32869
32870 #. type: =head2
32871 #: ../src/guestfs-actions.pod:7560
32872 msgid "guestfs_swapon_label"
32873 msgstr ""
32874
32875 #. type: verbatim
32876 #: ../src/guestfs-actions.pod:7562
32877 #, no-wrap
32878 msgid ""
32879 " int\n"
32880 " guestfs_swapon_label (guestfs_h *g,\n"
32881 "                       const char *label);\n"
32882 "\n"
32883 msgstr ""
32884
32885 #. type: textblock
32886 #: ../src/guestfs-actions.pod:7566
32887 msgid ""
32888 "This command enables swap to a labeled swap partition.  See "
32889 "C<guestfs_swapon_device> for other notes."
32890 msgstr ""
32891
32892 #. type: =head2
32893 #: ../src/guestfs-actions.pod:7573
32894 msgid "guestfs_swapon_uuid"
32895 msgstr ""
32896
32897 #. type: verbatim
32898 #: ../src/guestfs-actions.pod:7575
32899 #, no-wrap
32900 msgid ""
32901 " int\n"
32902 " guestfs_swapon_uuid (guestfs_h *g,\n"
32903 "                      const char *uuid);\n"
32904 "\n"
32905 msgstr ""
32906
32907 #. type: textblock
32908 #: ../src/guestfs-actions.pod:7579
32909 msgid ""
32910 "This command enables swap to a swap partition with the given UUID.  See "
32911 "C<guestfs_swapon_device> for other notes."
32912 msgstr ""
32913
32914 #. type: =head2
32915 #: ../src/guestfs-actions.pod:7586
32916 msgid "guestfs_sync"
32917 msgstr ""
32918
32919 #. type: verbatim
32920 #: ../src/guestfs-actions.pod:7588
32921 #, no-wrap
32922 msgid ""
32923 " int\n"
32924 " guestfs_sync (guestfs_h *g);\n"
32925 "\n"
32926 msgstr ""
32927
32928 #. type: =head2
32929 #: ../src/guestfs-actions.pod:7601
32930 msgid "guestfs_tail"
32931 msgstr ""
32932
32933 #. type: verbatim
32934 #: ../src/guestfs-actions.pod:7603
32935 #, no-wrap
32936 msgid ""
32937 " char **\n"
32938 " guestfs_tail (guestfs_h *g,\n"
32939 "               const char *path);\n"
32940 "\n"
32941 msgstr ""
32942
32943 #. type: =head2
32944 #: ../src/guestfs-actions.pod:7619
32945 msgid "guestfs_tail_n"
32946 msgstr ""
32947
32948 #. type: verbatim
32949 #: ../src/guestfs-actions.pod:7621
32950 #, no-wrap
32951 msgid ""
32952 " char **\n"
32953 " guestfs_tail_n (guestfs_h *g,\n"
32954 "                 int nrlines,\n"
32955 "                 const char *path);\n"
32956 "\n"
32957 msgstr ""
32958
32959 #. type: =head2
32960 #: ../src/guestfs-actions.pod:7643
32961 msgid "guestfs_tar_in"
32962 msgstr ""
32963
32964 #. type: verbatim
32965 #: ../src/guestfs-actions.pod:7645
32966 #, no-wrap
32967 msgid ""
32968 " int\n"
32969 " guestfs_tar_in (guestfs_h *g,\n"
32970 "                 const char *tarfile,\n"
32971 "                 const char *directory);\n"
32972 "\n"
32973 msgstr ""
32974
32975 #. type: textblock
32976 #: ../src/guestfs-actions.pod:7653
32977 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32978 msgstr ""
32979
32980 #. type: textblock
32981 #: ../src/guestfs-actions.pod:7658 ../src/guestfs-actions.pod:7675 ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7707
32982 msgid "(Added in 1.0.3)"
32983 msgstr ""
32984
32985 #. type: =head2
32986 #: ../src/guestfs-actions.pod:7660
32987 msgid "guestfs_tar_out"
32988 msgstr ""
32989
32990 #. type: verbatim
32991 #: ../src/guestfs-actions.pod:7662
32992 #, no-wrap
32993 msgid ""
32994 " int\n"
32995 " guestfs_tar_out (guestfs_h *g,\n"
32996 "                  const char *directory,\n"
32997 "                  const char *tarfile);\n"
32998 "\n"
32999 msgstr ""
33000
33001 #. type: textblock
33002 #: ../src/guestfs-actions.pod:7670
33003 msgid ""
33004 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33005 "C<guestfs_txz_out>."
33006 msgstr ""
33007
33008 #. type: =head2
33009 #: ../src/guestfs-actions.pod:7677
33010 msgid "guestfs_tgz_in"
33011 msgstr ""
33012
33013 #. type: verbatim
33014 #: ../src/guestfs-actions.pod:7679
33015 #, no-wrap
33016 msgid ""
33017 " int\n"
33018 " guestfs_tgz_in (guestfs_h *g,\n"
33019 "                 const char *tarball,\n"
33020 "                 const char *directory);\n"
33021 "\n"
33022 msgstr ""
33023
33024 #. type: textblock
33025 #: ../src/guestfs-actions.pod:7687
33026 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33027 msgstr ""
33028
33029 #. type: =head2
33030 #: ../src/guestfs-actions.pod:7693
33031 msgid "guestfs_tgz_out"
33032 msgstr ""
33033
33034 #. type: verbatim
33035 #: ../src/guestfs-actions.pod:7695
33036 #, no-wrap
33037 msgid ""
33038 " int\n"
33039 " guestfs_tgz_out (guestfs_h *g,\n"
33040 "                  const char *directory,\n"
33041 "                  const char *tarball);\n"
33042 "\n"
33043 msgstr ""
33044
33045 #. type: textblock
33046 #: ../src/guestfs-actions.pod:7703
33047 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33048 msgstr ""
33049
33050 #. type: =head2
33051 #: ../src/guestfs-actions.pod:7709
33052 msgid "guestfs_touch"
33053 msgstr ""
33054
33055 #. type: verbatim
33056 #: ../src/guestfs-actions.pod:7711
33057 #, no-wrap
33058 msgid ""
33059 " int\n"
33060 " guestfs_touch (guestfs_h *g,\n"
33061 "                const char *path);\n"
33062 "\n"
33063 msgstr ""
33064
33065 #. type: =head2
33066 #: ../src/guestfs-actions.pod:7726
33067 msgid "guestfs_truncate"
33068 msgstr ""
33069
33070 #. type: verbatim
33071 #: ../src/guestfs-actions.pod:7728
33072 #, no-wrap
33073 msgid ""
33074 " int\n"
33075 " guestfs_truncate (guestfs_h *g,\n"
33076 "                   const char *path);\n"
33077 "\n"
33078 msgstr ""
33079
33080 #. type: =head2
33081 #: ../src/guestfs-actions.pod:7739
33082 msgid "guestfs_truncate_size"
33083 msgstr ""
33084
33085 #. type: verbatim
33086 #: ../src/guestfs-actions.pod:7741
33087 #, no-wrap
33088 msgid ""
33089 " int\n"
33090 " guestfs_truncate_size (guestfs_h *g,\n"
33091 "                        const char *path,\n"
33092 "                        int64_t size);\n"
33093 "\n"
33094 msgstr ""
33095
33096 #. type: textblock
33097 #: ../src/guestfs-actions.pod:7749
33098 msgid ""
33099 "If the current file size is less than C<size> then the file is extended to "
33100 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33101 "blocks are not allocated for the file until you write to it).  To create a "
33102 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33103 msgstr ""
33104
33105 #. type: =head2
33106 #: ../src/guestfs-actions.pod:7759
33107 msgid "guestfs_tune2fs"
33108 msgstr ""
33109
33110 #. type: verbatim
33111 #: ../src/guestfs-actions.pod:7761
33112 #, no-wrap
33113 msgid ""
33114 " int\n"
33115 " guestfs_tune2fs (guestfs_h *g,\n"
33116 "                  const char *device,\n"
33117 "                  ...);\n"
33118 "\n"
33119 msgstr ""
33120
33121 #. type: verbatim
33122 #: ../src/guestfs-actions.pod:7771
33123 #, no-wrap
33124 msgid ""
33125 " GUESTFS_TUNE2FS_FORCE, int force,\n"
33126 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
33127 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
33128 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
33129 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
33130 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
33131 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
33132 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
33133 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
33134 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
33135 "\n"
33136 msgstr ""
33137
33138 #. type: textblock
33139 #: ../src/guestfs-actions.pod:7851
33140 msgid ""
33141 "To get the current values of filesystem parameters, see "
33142 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
33143 "L<tune2fs(8)> man page."
33144 msgstr ""
33145
33146 #. type: =head2
33147 #: ../src/guestfs-actions.pod:7859
33148 msgid "guestfs_tune2fs_va"
33149 msgstr ""
33150
33151 #. type: verbatim
33152 #: ../src/guestfs-actions.pod:7861
33153 #, no-wrap
33154 msgid ""
33155 " int\n"
33156 " guestfs_tune2fs_va (guestfs_h *g,\n"
33157 "                     const char *device,\n"
33158 "                     va_list args);\n"
33159 "\n"
33160 msgstr ""
33161
33162 #. type: textblock
33163 #: ../src/guestfs-actions.pod:7866
33164 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
33165 msgstr ""
33166
33167 #. type: =head2
33168 #: ../src/guestfs-actions.pod:7870
33169 msgid "guestfs_tune2fs_argv"
33170 msgstr ""
33171
33172 #. type: verbatim
33173 #: ../src/guestfs-actions.pod:7872
33174 #, no-wrap
33175 msgid ""
33176 " int\n"
33177 " guestfs_tune2fs_argv (guestfs_h *g,\n"
33178 "                       const char *device,\n"
33179 "                       const struct guestfs_tune2fs_argv *optargs);\n"
33180 "\n"
33181 msgstr ""
33182
33183 #. type: textblock
33184 #: ../src/guestfs-actions.pod:7877
33185 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
33186 msgstr ""
33187
33188 #. type: =head2
33189 #: ../src/guestfs-actions.pod:7881
33190 msgid "guestfs_tune2fs_l"
33191 msgstr ""
33192
33193 #. type: verbatim
33194 #: ../src/guestfs-actions.pod:7883
33195 #, no-wrap
33196 msgid ""
33197 " char **\n"
33198 " guestfs_tune2fs_l (guestfs_h *g,\n"
33199 "                    const char *device);\n"
33200 "\n"
33201 msgstr ""
33202
33203 #. type: =head2
33204 #: ../src/guestfs-actions.pod:7903
33205 msgid "guestfs_txz_in"
33206 msgstr ""
33207
33208 #. type: verbatim
33209 #: ../src/guestfs-actions.pod:7905
33210 #, no-wrap
33211 msgid ""
33212 " int\n"
33213 " guestfs_txz_in (guestfs_h *g,\n"
33214 "                 const char *tarball,\n"
33215 "                 const char *directory);\n"
33216 "\n"
33217 msgstr ""
33218
33219 #. type: =head2
33220 #: ../src/guestfs-actions.pod:7917
33221 msgid "guestfs_txz_out"
33222 msgstr ""
33223
33224 #. type: verbatim
33225 #: ../src/guestfs-actions.pod:7919
33226 #, no-wrap
33227 msgid ""
33228 " int\n"
33229 " guestfs_txz_out (guestfs_h *g,\n"
33230 "                  const char *directory,\n"
33231 "                  const char *tarball);\n"
33232 "\n"
33233 msgstr ""
33234
33235 #. type: =head2
33236 #: ../src/guestfs-actions.pod:7931
33237 msgid "guestfs_umask"
33238 msgstr ""
33239
33240 #. type: verbatim
33241 #: ../src/guestfs-actions.pod:7933
33242 #, no-wrap
33243 msgid ""
33244 " int\n"
33245 " guestfs_umask (guestfs_h *g,\n"
33246 "                int mask);\n"
33247 "\n"
33248 msgstr ""
33249
33250 #. type: textblock
33251 #: ../src/guestfs-actions.pod:7949
33252 msgid ""
33253 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33254 "C<guestfs_mkdir>."
33255 msgstr ""
33256
33257 #. type: =head2
33258 #: ../src/guestfs-actions.pod:7958
33259 msgid "guestfs_umount"
33260 msgstr ""
33261
33262 #. type: verbatim
33263 #: ../src/guestfs-actions.pod:7960
33264 #, no-wrap
33265 msgid ""
33266 " int\n"
33267 " guestfs_umount (guestfs_h *g,\n"
33268 "                 const char *pathordevice);\n"
33269 "\n"
33270 msgstr ""
33271
33272 #. type: =head2
33273 #: ../src/guestfs-actions.pod:7972
33274 msgid "guestfs_umount_all"
33275 msgstr ""
33276
33277 #. type: verbatim
33278 #: ../src/guestfs-actions.pod:7974
33279 #, no-wrap
33280 msgid ""
33281 " int\n"
33282 " guestfs_umount_all (guestfs_h *g);\n"
33283 "\n"
33284 msgstr ""
33285
33286 #. type: =head2
33287 #: ../src/guestfs-actions.pod:7985
33288 msgid "guestfs_upload"
33289 msgstr ""
33290
33291 #. type: verbatim
33292 #: ../src/guestfs-actions.pod:7987
33293 #, no-wrap
33294 msgid ""
33295 " int\n"
33296 " guestfs_upload (guestfs_h *g,\n"
33297 "                 const char *filename,\n"
33298 "                 const char *remotefilename);\n"
33299 "\n"
33300 msgstr ""
33301
33302 #. type: textblock
33303 #: ../src/guestfs-actions.pod:7997
33304 msgid "See also C<guestfs_download>."
33305 msgstr ""
33306
33307 #. type: =head2
33308 #: ../src/guestfs-actions.pod:8008
33309 msgid "guestfs_upload_offset"
33310 msgstr ""
33311
33312 #. type: verbatim
33313 #: ../src/guestfs-actions.pod:8010
33314 #, no-wrap
33315 msgid ""
33316 " int\n"
33317 " guestfs_upload_offset (guestfs_h *g,\n"
33318 "                        const char *filename,\n"
33319 "                        const char *remotefilename,\n"
33320 "                        int64_t offset);\n"
33321 "\n"
33322 msgstr ""
33323
33324 #. type: textblock
33325 #: ../src/guestfs-actions.pod:8026
33326 msgid ""
33327 "Note that there is no limit on the amount of data that can be uploaded with "
33328 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33329 "full amount unless an error occurs."
33330 msgstr ""
33331
33332 #. type: textblock
33333 #: ../src/guestfs-actions.pod:8031
33334 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33335 msgstr ""
33336
33337 #. type: =head2
33338 #: ../src/guestfs-actions.pod:8042
33339 msgid "guestfs_utimens"
33340 msgstr ""
33341
33342 #. type: verbatim
33343 #: ../src/guestfs-actions.pod:8044
33344 #, no-wrap
33345 msgid ""
33346 " int\n"
33347 " guestfs_utimens (guestfs_h *g,\n"
33348 "                  const char *path,\n"
33349 "                  int64_t atsecs,\n"
33350 "                  int64_t atnsecs,\n"
33351 "                  int64_t mtsecs,\n"
33352 "                  int64_t mtnsecs);\n"
33353 "\n"
33354 msgstr ""
33355
33356 #. type: =head2
33357 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-structs.pod:175
33358 msgid "guestfs_version"
33359 msgstr ""
33360
33361 #. type: verbatim
33362 #: ../src/guestfs-actions.pod:8075
33363 #, no-wrap
33364 msgid ""
33365 " struct guestfs_version *\n"
33366 " guestfs_version (guestfs_h *g);\n"
33367 "\n"
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs-actions.pod:8103
33372 msgid ""
33373 "I<Note:> Don't use this call to test for availability of features.  In "
33374 "enterprise distributions we backport features from later versions into "
33375 "earlier versions, making this an unreliable way to test for features.  Use "
33376 "C<guestfs_available> instead."
33377 msgstr ""
33378
33379 #. type: textblock
33380 #: ../src/guestfs-actions.pod:8109
33381 msgid ""
33382 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33383 "error.  I<The caller must call C<guestfs_free_version> after use>."
33384 msgstr ""
33385
33386 #. type: textblock
33387 #: ../src/guestfs-actions.pod:8113
33388 msgid "(Added in 1.0.58)"
33389 msgstr ""
33390
33391 #. type: =head2
33392 #: ../src/guestfs-actions.pod:8115
33393 msgid "guestfs_vfs_label"
33394 msgstr ""
33395
33396 #. type: verbatim
33397 #: ../src/guestfs-actions.pod:8117
33398 #, no-wrap
33399 msgid ""
33400 " char *\n"
33401 " guestfs_vfs_label (guestfs_h *g,\n"
33402 "                    const char *device);\n"
33403 "\n"
33404 msgstr ""
33405
33406 #. type: textblock
33407 #: ../src/guestfs-actions.pod:8126
33408 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33409 msgstr ""
33410
33411 #. type: textblock
33412 #: ../src/guestfs-actions.pod:8131 ../src/guestfs-actions.pod:8168
33413 msgid "(Added in 1.3.18)"
33414 msgstr ""
33415
33416 #. type: =head2
33417 #: ../src/guestfs-actions.pod:8133
33418 msgid "guestfs_vfs_type"
33419 msgstr ""
33420
33421 #. type: verbatim
33422 #: ../src/guestfs-actions.pod:8135
33423 #, no-wrap
33424 msgid ""
33425 " char *\n"
33426 " guestfs_vfs_type (guestfs_h *g,\n"
33427 "                   const char *device);\n"
33428 "\n"
33429 msgstr ""
33430
33431 #. type: =head2
33432 #: ../src/guestfs-actions.pod:8152
33433 msgid "guestfs_vfs_uuid"
33434 msgstr ""
33435
33436 #. type: verbatim
33437 #: ../src/guestfs-actions.pod:8154
33438 #, no-wrap
33439 msgid ""
33440 " char *\n"
33441 " guestfs_vfs_uuid (guestfs_h *g,\n"
33442 "                   const char *device);\n"
33443 "\n"
33444 msgstr ""
33445
33446 #. type: textblock
33447 #: ../src/guestfs-actions.pod:8163
33448 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33449 msgstr ""
33450
33451 #. type: =head2
33452 #: ../src/guestfs-actions.pod:8170
33453 msgid "guestfs_vg_activate"
33454 msgstr ""
33455
33456 #. type: verbatim
33457 #: ../src/guestfs-actions.pod:8172
33458 #, no-wrap
33459 msgid ""
33460 " int\n"
33461 " guestfs_vg_activate (guestfs_h *g,\n"
33462 "                      int activate,\n"
33463 "                      char *const *volgroups);\n"
33464 "\n"
33465 msgstr ""
33466
33467 #. type: =head2
33468 #: ../src/guestfs-actions.pod:8189
33469 msgid "guestfs_vg_activate_all"
33470 msgstr ""
33471
33472 #. type: verbatim
33473 #: ../src/guestfs-actions.pod:8191
33474 #, no-wrap
33475 msgid ""
33476 " int\n"
33477 " guestfs_vg_activate_all (guestfs_h *g,\n"
33478 "                          int activate);\n"
33479 "\n"
33480 msgstr ""
33481
33482 #. type: =head2
33483 #: ../src/guestfs-actions.pod:8204
33484 msgid "guestfs_vgcreate"
33485 msgstr ""
33486
33487 #. type: verbatim
33488 #: ../src/guestfs-actions.pod:8206
33489 #, no-wrap
33490 msgid ""
33491 " int\n"
33492 " guestfs_vgcreate (guestfs_h *g,\n"
33493 "                   const char *volgroup,\n"
33494 "                   char *const *physvols);\n"
33495 "\n"
33496 msgstr ""
33497
33498 #. type: =head2
33499 #: ../src/guestfs-actions.pod:8218
33500 msgid "guestfs_vglvuuids"
33501 msgstr ""
33502
33503 #. type: verbatim
33504 #: ../src/guestfs-actions.pod:8220
33505 #, no-wrap
33506 msgid ""
33507 " char **\n"
33508 " guestfs_vglvuuids (guestfs_h *g,\n"
33509 "                    const char *vgname);\n"
33510 "\n"
33511 msgstr ""
33512
33513 #. type: textblock
33514 #: ../src/guestfs-actions.pod:8227
33515 msgid ""
33516 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33517 "associate logical volumes and volume groups."
33518 msgstr ""
33519
33520 #. type: textblock
33521 #: ../src/guestfs-actions.pod:8230
33522 msgid "See also C<guestfs_vgpvuuids>."
33523 msgstr ""
33524
33525 #. type: =head2
33526 #: ../src/guestfs-actions.pod:8238
33527 msgid "guestfs_vgpvuuids"
33528 msgstr ""
33529
33530 #. type: verbatim
33531 #: ../src/guestfs-actions.pod:8240
33532 #, no-wrap
33533 msgid ""
33534 " char **\n"
33535 " guestfs_vgpvuuids (guestfs_h *g,\n"
33536 "                    const char *vgname);\n"
33537 "\n"
33538 msgstr ""
33539
33540 #. type: textblock
33541 #: ../src/guestfs-actions.pod:8247
33542 msgid ""
33543 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33544 "associate physical volumes and volume groups."
33545 msgstr ""
33546
33547 #. type: textblock
33548 #: ../src/guestfs-actions.pod:8250
33549 msgid "See also C<guestfs_vglvuuids>."
33550 msgstr ""
33551
33552 #. type: =head2
33553 #: ../src/guestfs-actions.pod:8258
33554 msgid "guestfs_vgremove"
33555 msgstr ""
33556
33557 #. type: verbatim
33558 #: ../src/guestfs-actions.pod:8260
33559 #, no-wrap
33560 msgid ""
33561 " int\n"
33562 " guestfs_vgremove (guestfs_h *g,\n"
33563 "                   const char *vgname);\n"
33564 "\n"
33565 msgstr ""
33566
33567 #. type: =head2
33568 #: ../src/guestfs-actions.pod:8273
33569 msgid "guestfs_vgrename"
33570 msgstr ""
33571
33572 #. type: verbatim
33573 #: ../src/guestfs-actions.pod:8275
33574 #, no-wrap
33575 msgid ""
33576 " int\n"
33577 " guestfs_vgrename (guestfs_h *g,\n"
33578 "                   const char *volgroup,\n"
33579 "                   const char *newvolgroup);\n"
33580 "\n"
33581 msgstr ""
33582
33583 #. type: =head2
33584 #: ../src/guestfs-actions.pod:8286
33585 msgid "guestfs_vgs"
33586 msgstr ""
33587
33588 #. type: verbatim
33589 #: ../src/guestfs-actions.pod:8288
33590 #, no-wrap
33591 msgid ""
33592 " char **\n"
33593 " guestfs_vgs (guestfs_h *g);\n"
33594 "\n"
33595 msgstr ""
33596
33597 #. type: textblock
33598 #: ../src/guestfs-actions.pod:8297
33599 msgid "See also C<guestfs_vgs_full>."
33600 msgstr ""
33601
33602 #. type: =head2
33603 #: ../src/guestfs-actions.pod:8305
33604 msgid "guestfs_vgs_full"
33605 msgstr ""
33606
33607 #. type: verbatim
33608 #: ../src/guestfs-actions.pod:8307
33609 #, no-wrap
33610 msgid ""
33611 " struct guestfs_lvm_vg_list *\n"
33612 " guestfs_vgs_full (guestfs_h *g);\n"
33613 "\n"
33614 msgstr ""
33615
33616 #. type: textblock
33617 #: ../src/guestfs-actions.pod:8313
33618 msgid ""
33619 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33620 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
33621 "use>."
33622 msgstr ""
33623
33624 #. type: =head2
33625 #: ../src/guestfs-actions.pod:8319
33626 msgid "guestfs_vgscan"
33627 msgstr ""
33628
33629 #. type: verbatim
33630 #: ../src/guestfs-actions.pod:8321
33631 #, no-wrap
33632 msgid ""
33633 " int\n"
33634 " guestfs_vgscan (guestfs_h *g);\n"
33635 "\n"
33636 msgstr ""
33637
33638 #. type: =head2
33639 #: ../src/guestfs-actions.pod:8331
33640 msgid "guestfs_vguuid"
33641 msgstr ""
33642
33643 #. type: verbatim
33644 #: ../src/guestfs-actions.pod:8333
33645 #, no-wrap
33646 msgid ""
33647 " char *\n"
33648 " guestfs_vguuid (guestfs_h *g,\n"
33649 "                 const char *vgname);\n"
33650 "\n"
33651 msgstr ""
33652
33653 #. type: =head2
33654 #: ../src/guestfs-actions.pod:8344
33655 msgid "guestfs_wait_ready"
33656 msgstr ""
33657
33658 #. type: verbatim
33659 #: ../src/guestfs-actions.pod:8346
33660 #, no-wrap
33661 msgid ""
33662 " int\n"
33663 " guestfs_wait_ready (guestfs_h *g);\n"
33664 "\n"
33665 msgstr ""
33666
33667 #. type: textblock
33668 #: ../src/guestfs-actions.pod:8349
33669 msgid ""
33670 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33671 "instead."
33672 msgstr ""
33673
33674 #. type: textblock
33675 #: ../src/guestfs-actions.pod:8356
33676 msgid "This function is a no op."
33677 msgstr ""
33678
33679 #. type: textblock
33680 #: ../src/guestfs-actions.pod:8358
33681 msgid ""
33682 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33683 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33684 "is no longer necessary because C<guestfs_launch> now does the waiting."
33685 msgstr ""
33686
33687 #. type: textblock
33688 #: ../src/guestfs-actions.pod:8363
33689 msgid ""
33690 "If you see any calls to this function in code then you can just remove them, "
33691 "unless you want to retain compatibility with older versions of the API."
33692 msgstr ""
33693
33694 #. type: =head2
33695 #: ../src/guestfs-actions.pod:8371
33696 msgid "guestfs_wc_c"
33697 msgstr ""
33698
33699 #. type: verbatim
33700 #: ../src/guestfs-actions.pod:8373
33701 #, no-wrap
33702 msgid ""
33703 " int\n"
33704 " guestfs_wc_c (guestfs_h *g,\n"
33705 "               const char *path);\n"
33706 "\n"
33707 msgstr ""
33708
33709 #. type: =head2
33710 #: ../src/guestfs-actions.pod:8384
33711 msgid "guestfs_wc_l"
33712 msgstr ""
33713
33714 #. type: verbatim
33715 #: ../src/guestfs-actions.pod:8386
33716 #, no-wrap
33717 msgid ""
33718 " int\n"
33719 " guestfs_wc_l (guestfs_h *g,\n"
33720 "               const char *path);\n"
33721 "\n"
33722 msgstr ""
33723
33724 #. type: =head2
33725 #: ../src/guestfs-actions.pod:8397
33726 msgid "guestfs_wc_w"
33727 msgstr ""
33728
33729 #. type: verbatim
33730 #: ../src/guestfs-actions.pod:8399
33731 #, no-wrap
33732 msgid ""
33733 " int\n"
33734 " guestfs_wc_w (guestfs_h *g,\n"
33735 "               const char *path);\n"
33736 "\n"
33737 msgstr ""
33738
33739 #. type: =head2
33740 #: ../src/guestfs-actions.pod:8410
33741 msgid "guestfs_write"
33742 msgstr ""
33743
33744 #. type: verbatim
33745 #: ../src/guestfs-actions.pod:8412
33746 #, no-wrap
33747 msgid ""
33748 " int\n"
33749 " guestfs_write (guestfs_h *g,\n"
33750 "                const char *path,\n"
33751 "                const char *content,\n"
33752 "                size_t content_size);\n"
33753 "\n"
33754 msgstr ""
33755
33756 #. type: textblock
33757 #: ../src/guestfs-actions.pod:8421
33758 msgid "See also C<guestfs_write_append>."
33759 msgstr ""
33760
33761 #. type: =head2
33762 #: ../src/guestfs-actions.pod:8430
33763 msgid "guestfs_write_append"
33764 msgstr ""
33765
33766 #. type: verbatim
33767 #: ../src/guestfs-actions.pod:8432
33768 #, no-wrap
33769 msgid ""
33770 " int\n"
33771 " guestfs_write_append (guestfs_h *g,\n"
33772 "                       const char *path,\n"
33773 "                       const char *content,\n"
33774 "                       size_t content_size);\n"
33775 "\n"
33776 msgstr ""
33777
33778 #. type: textblock
33779 #: ../src/guestfs-actions.pod:8441
33780 msgid "See also C<guestfs_write>."
33781 msgstr ""
33782
33783 #. type: =head2
33784 #: ../src/guestfs-actions.pod:8450
33785 msgid "guestfs_write_file"
33786 msgstr ""
33787
33788 #. type: verbatim
33789 #: ../src/guestfs-actions.pod:8452
33790 #, no-wrap
33791 msgid ""
33792 " int\n"
33793 " guestfs_write_file (guestfs_h *g,\n"
33794 "                     const char *path,\n"
33795 "                     const char *content,\n"
33796 "                     int size);\n"
33797 "\n"
33798 msgstr ""
33799
33800 #. type: textblock
33801 #: ../src/guestfs-actions.pod:8458
33802 msgid ""
33803 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33804 "instead."
33805 msgstr ""
33806
33807 #. type: =head2
33808 #: ../src/guestfs-actions.pod:8483
33809 msgid "guestfs_zegrep"
33810 msgstr ""
33811
33812 #. type: verbatim
33813 #: ../src/guestfs-actions.pod:8485
33814 #, no-wrap
33815 msgid ""
33816 " char **\n"
33817 " guestfs_zegrep (guestfs_h *g,\n"
33818 "                 const char *regex,\n"
33819 "                 const char *path);\n"
33820 "\n"
33821 msgstr ""
33822
33823 #. type: =head2
33824 #: ../src/guestfs-actions.pod:8502
33825 msgid "guestfs_zegrepi"
33826 msgstr ""
33827
33828 #. type: verbatim
33829 #: ../src/guestfs-actions.pod:8504
33830 #, no-wrap
33831 msgid ""
33832 " char **\n"
33833 " guestfs_zegrepi (guestfs_h *g,\n"
33834 "                  const char *regex,\n"
33835 "                  const char *path);\n"
33836 "\n"
33837 msgstr ""
33838
33839 #. type: =head2
33840 #: ../src/guestfs-actions.pod:8521
33841 msgid "guestfs_zero"
33842 msgstr ""
33843
33844 #. type: verbatim
33845 #: ../src/guestfs-actions.pod:8523
33846 #, no-wrap
33847 msgid ""
33848 " int\n"
33849 " guestfs_zero (guestfs_h *g,\n"
33850 "               const char *device);\n"
33851 "\n"
33852 msgstr ""
33853
33854 #. type: textblock
33855 #: ../src/guestfs-actions.pod:8537
33856 msgid ""
33857 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33858 "C<guestfs_is_zero_device>"
33859 msgstr ""
33860
33861 #. type: =head2
33862 #: ../src/guestfs-actions.pod:8549
33863 msgid "guestfs_zero_device"
33864 msgstr ""
33865
33866 #. type: verbatim
33867 #: ../src/guestfs-actions.pod:8551
33868 #, no-wrap
33869 msgid ""
33870 " int\n"
33871 " guestfs_zero_device (guestfs_h *g,\n"
33872 "                      const char *device);\n"
33873 "\n"
33874 msgstr ""
33875
33876 #. type: textblock
33877 #: ../src/guestfs-actions.pod:8555
33878 msgid ""
33879 "This command writes zeroes over the entire C<device>.  Compare with "
33880 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33881 msgstr ""
33882
33883 #. type: textblock
33884 #: ../src/guestfs-actions.pod:8570
33885 msgid "(Added in 1.3.1)"
33886 msgstr ""
33887
33888 #. type: =head2
33889 #: ../src/guestfs-actions.pod:8572
33890 msgid "guestfs_zerofree"
33891 msgstr ""
33892
33893 #. type: verbatim
33894 #: ../src/guestfs-actions.pod:8574
33895 #, no-wrap
33896 msgid ""
33897 " int\n"
33898 " guestfs_zerofree (guestfs_h *g,\n"
33899 "                   const char *device);\n"
33900 "\n"
33901 msgstr ""
33902
33903 #. type: =head2
33904 #: ../src/guestfs-actions.pod:8593
33905 msgid "guestfs_zfgrep"
33906 msgstr ""
33907
33908 #. type: verbatim
33909 #: ../src/guestfs-actions.pod:8595
33910 #, no-wrap
33911 msgid ""
33912 " char **\n"
33913 " guestfs_zfgrep (guestfs_h *g,\n"
33914 "                 const char *pattern,\n"
33915 "                 const char *path);\n"
33916 "\n"
33917 msgstr ""
33918
33919 #. type: =head2
33920 #: ../src/guestfs-actions.pod:8612
33921 msgid "guestfs_zfgrepi"
33922 msgstr ""
33923
33924 #. type: verbatim
33925 #: ../src/guestfs-actions.pod:8614
33926 #, no-wrap
33927 msgid ""
33928 " char **\n"
33929 " guestfs_zfgrepi (guestfs_h *g,\n"
33930 "                  const char *pattern,\n"
33931 "                  const char *path);\n"
33932 "\n"
33933 msgstr ""
33934
33935 #. type: =head2
33936 #: ../src/guestfs-actions.pod:8631
33937 msgid "guestfs_zfile"
33938 msgstr ""
33939
33940 #. type: verbatim
33941 #: ../src/guestfs-actions.pod:8633
33942 #, no-wrap
33943 msgid ""
33944 " char *\n"
33945 " guestfs_zfile (guestfs_h *g,\n"
33946 "                const char *meth,\n"
33947 "                const char *path);\n"
33948 "\n"
33949 msgstr ""
33950
33951 #. type: textblock
33952 #: ../src/guestfs-actions.pod:8638
33953 msgid ""
33954 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33955 "instead."
33956 msgstr ""
33957
33958 #. type: textblock
33959 #: ../src/guestfs-actions.pod:8650
33960 msgid ""
33961 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33962 "files."
33963 msgstr ""
33964
33965 #. type: =head2
33966 #: ../src/guestfs-actions.pod:8658
33967 msgid "guestfs_zgrep"
33968 msgstr ""
33969
33970 #. type: verbatim
33971 #: ../src/guestfs-actions.pod:8660
33972 #, no-wrap
33973 msgid ""
33974 " char **\n"
33975 " guestfs_zgrep (guestfs_h *g,\n"
33976 "                const char *regex,\n"
33977 "                const char *path);\n"
33978 "\n"
33979 msgstr ""
33980
33981 #. type: =head2
33982 #: ../src/guestfs-actions.pod:8677
33983 msgid "guestfs_zgrepi"
33984 msgstr ""
33985
33986 #. type: verbatim
33987 #: ../src/guestfs-actions.pod:8679
33988 #, no-wrap
33989 msgid ""
33990 " char **\n"
33991 " guestfs_zgrepi (guestfs_h *g,\n"
33992 "                 const char *regex,\n"
33993 "                 const char *path);\n"
33994 "\n"
33995 msgstr ""
33996
33997 #. type: =item
33998 #: ../src/guestfs-availability.pod:3
33999 msgid "B<augeas>"
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs-availability.pod:5
34004 msgid ""
34005 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
34006 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
34007 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
34008 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
34009 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
34010 msgstr ""
34011
34012 #. type: =item
34013 #: ../src/guestfs-availability.pod:21
34014 msgid "B<btrfs>"
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs-availability.pod:23
34019 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34020 msgstr ""
34021
34022 #. type: =item
34023 #: ../src/guestfs-availability.pod:26
34024 msgid "B<grub>"
34025 msgstr ""
34026
34027 #. type: textblock
34028 #: ../src/guestfs-availability.pod:28
34029 msgid "The following functions: L</guestfs_grub_install>"
34030 msgstr ""
34031
34032 #. type: =item
34033 #: ../src/guestfs-availability.pod:31
34034 msgid "B<inotify>"
34035 msgstr ""
34036
34037 #. type: textblock
34038 #: ../src/guestfs-availability.pod:33
34039 msgid ""
34040 "The following functions: L</guestfs_inotify_add_watch> "
34041 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
34042 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34043 msgstr ""
34044
34045 #. type: =item
34046 #: ../src/guestfs-availability.pod:41
34047 msgid "B<linuxfsuuid>"
34048 msgstr ""
34049
34050 #. type: textblock
34051 #: ../src/guestfs-availability.pod:43
34052 msgid ""
34053 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
34054 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34055 msgstr ""
34056
34057 #. type: =item
34058 #: ../src/guestfs-availability.pod:50
34059 msgid "B<linuxmodules>"
34060 msgstr ""
34061
34062 #. type: textblock
34063 #: ../src/guestfs-availability.pod:52
34064 msgid "The following functions: L</guestfs_modprobe>"
34065 msgstr ""
34066
34067 #. type: =item
34068 #: ../src/guestfs-availability.pod:55
34069 msgid "B<linuxxattrs>"
34070 msgstr ""
34071
34072 #. type: textblock
34073 #: ../src/guestfs-availability.pod:57
34074 msgid ""
34075 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
34076 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
34077 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
34078 "L</guestfs_setxattr>"
34079 msgstr ""
34080
34081 #. type: =item
34082 #: ../src/guestfs-availability.pod:68
34083 msgid "B<luks>"
34084 msgstr ""
34085
34086 #. type: textblock
34087 #: ../src/guestfs-availability.pod:70
34088 msgid ""
34089 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
34090 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
34091 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34092 msgstr ""
34093
34094 #. type: =item
34095 #: ../src/guestfs-availability.pod:79
34096 msgid "B<lvm2>"
34097 msgstr ""
34098
34099 #. type: textblock
34100 #: ../src/guestfs-availability.pod:81
34101 msgid ""
34102 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
34103 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
34104 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
34105 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
34106 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
34107 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
34108 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
34109 "L</guestfs_vgs_full>"
34110 msgstr ""
34111
34112 #. type: =item
34113 #: ../src/guestfs-availability.pod:104
34114 msgid "B<mdadm>"
34115 msgstr ""
34116
34117 #. type: textblock
34118 #: ../src/guestfs-availability.pod:106
34119 msgid ""
34120 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> "
34121 "L</guestfs_md_stop>"
34122 msgstr ""
34123
34124 #. type: =item
34125 #: ../src/guestfs-availability.pod:111
34126 msgid "B<mknod>"
34127 msgstr ""
34128
34129 #. type: textblock
34130 #: ../src/guestfs-availability.pod:113
34131 msgid ""
34132 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
34133 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
34134 msgstr ""
34135
34136 #. type: =item
34137 #: ../src/guestfs-availability.pod:119
34138 msgid "B<ntfs3g>"
34139 msgstr ""
34140
34141 #. type: textblock
34142 #: ../src/guestfs-availability.pod:121
34143 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34144 msgstr ""
34145
34146 #. type: =item
34147 #: ../src/guestfs-availability.pod:124
34148 msgid "B<ntfsprogs>"
34149 msgstr ""
34150
34151 #. type: textblock
34152 #: ../src/guestfs-availability.pod:126
34153 msgid ""
34154 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34155 "L</guestfs_ntfsresize_size>"
34156 msgstr ""
34157
34158 #. type: =item
34159 #: ../src/guestfs-availability.pod:131
34160 msgid "B<realpath>"
34161 msgstr ""
34162
34163 #. type: textblock
34164 #: ../src/guestfs-availability.pod:133
34165 msgid "The following functions: L</guestfs_realpath>"
34166 msgstr ""
34167
34168 #. type: =item
34169 #: ../src/guestfs-availability.pod:136
34170 msgid "B<scrub>"
34171 msgstr ""
34172
34173 #. type: textblock
34174 #: ../src/guestfs-availability.pod:138
34175 msgid ""
34176 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
34177 "L</guestfs_scrub_freespace>"
34178 msgstr ""
34179
34180 #. type: =item
34181 #: ../src/guestfs-availability.pod:143
34182 msgid "B<selinux>"
34183 msgstr ""
34184
34185 #. type: textblock
34186 #: ../src/guestfs-availability.pod:145
34187 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34188 msgstr ""
34189
34190 #. type: =item
34191 #: ../src/guestfs-availability.pod:149
34192 msgid "B<xz>"
34193 msgstr ""
34194
34195 #. type: textblock
34196 #: ../src/guestfs-availability.pod:151
34197 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34198 msgstr ""
34199
34200 #. type: =item
34201 #: ../src/guestfs-availability.pod:155
34202 msgid "B<zerofree>"
34203 msgstr ""
34204
34205 #. type: textblock
34206 #: ../src/guestfs-availability.pod:157
34207 msgid "The following functions: L</guestfs_zerofree>"
34208 msgstr ""
34209
34210 #. type: =head2
34211 #: ../src/guestfs-structs.pod:1
34212 msgid "guestfs_int_bool"
34213 msgstr ""
34214
34215 #. type: verbatim
34216 #: ../src/guestfs-structs.pod:3
34217 #, no-wrap
34218 msgid ""
34219 " struct guestfs_int_bool {\n"
34220 "   int32_t i;\n"
34221 "   int32_t b;\n"
34222 " };\n"
34223 " \n"
34224 msgstr ""
34225
34226 #. type: verbatim
34227 #: ../src/guestfs-structs.pod:8
34228 #, no-wrap
34229 msgid ""
34230 " struct guestfs_int_bool_list {\n"
34231 "   uint32_t len; /* Number of elements in list. */\n"
34232 "   struct guestfs_int_bool *val; /* Elements. */\n"
34233 " };\n"
34234 " \n"
34235 msgstr ""
34236
34237 #. type: verbatim
34238 #: ../src/guestfs-structs.pod:13
34239 #, no-wrap
34240 msgid ""
34241 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34242 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34243 "\n"
34244 msgstr ""
34245
34246 #. type: =head2
34247 #: ../src/guestfs-structs.pod:16
34248 msgid "guestfs_lvm_pv"
34249 msgstr ""
34250
34251 #. type: verbatim
34252 #: ../src/guestfs-structs.pod:18
34253 #, no-wrap
34254 msgid ""
34255 " struct guestfs_lvm_pv {\n"
34256 "   char *pv_name;\n"
34257 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34258 "*/\n"
34259 "   char pv_uuid[32];\n"
34260 "   char *pv_fmt;\n"
34261 "   uint64_t pv_size;\n"
34262 "   uint64_t dev_size;\n"
34263 "   uint64_t pv_free;\n"
34264 "   uint64_t pv_used;\n"
34265 "   char *pv_attr;\n"
34266 "   int64_t pv_pe_count;\n"
34267 "   int64_t pv_pe_alloc_count;\n"
34268 "   char *pv_tags;\n"
34269 "   uint64_t pe_start;\n"
34270 "   int64_t pv_mda_count;\n"
34271 "   uint64_t pv_mda_free;\n"
34272 " };\n"
34273 " \n"
34274 msgstr ""
34275
34276 #. type: verbatim
34277 #: ../src/guestfs-structs.pod:36
34278 #, no-wrap
34279 msgid ""
34280 " struct guestfs_lvm_pv_list {\n"
34281 "   uint32_t len; /* Number of elements in list. */\n"
34282 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34283 " };\n"
34284 " \n"
34285 msgstr ""
34286
34287 #. type: verbatim
34288 #: ../src/guestfs-structs.pod:41
34289 #, no-wrap
34290 msgid ""
34291 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34292 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34293 "\n"
34294 msgstr ""
34295
34296 #. type: =head2
34297 #: ../src/guestfs-structs.pod:44
34298 msgid "guestfs_lvm_vg"
34299 msgstr ""
34300
34301 #. type: verbatim
34302 #: ../src/guestfs-structs.pod:46
34303 #, no-wrap
34304 msgid ""
34305 " struct guestfs_lvm_vg {\n"
34306 "   char *vg_name;\n"
34307 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34308 "*/\n"
34309 "   char vg_uuid[32];\n"
34310 "   char *vg_fmt;\n"
34311 "   char *vg_attr;\n"
34312 "   uint64_t vg_size;\n"
34313 "   uint64_t vg_free;\n"
34314 "   char *vg_sysid;\n"
34315 "   uint64_t vg_extent_size;\n"
34316 "   int64_t vg_extent_count;\n"
34317 "   int64_t vg_free_count;\n"
34318 "   int64_t max_lv;\n"
34319 "   int64_t max_pv;\n"
34320 "   int64_t pv_count;\n"
34321 "   int64_t lv_count;\n"
34322 "   int64_t snap_count;\n"
34323 "   int64_t vg_seqno;\n"
34324 "   char *vg_tags;\n"
34325 "   int64_t vg_mda_count;\n"
34326 "   uint64_t vg_mda_free;\n"
34327 " };\n"
34328 " \n"
34329 msgstr ""
34330
34331 #. type: verbatim
34332 #: ../src/guestfs-structs.pod:69
34333 #, no-wrap
34334 msgid ""
34335 " struct guestfs_lvm_vg_list {\n"
34336 "   uint32_t len; /* Number of elements in list. */\n"
34337 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34338 " };\n"
34339 " \n"
34340 msgstr ""
34341
34342 #. type: verbatim
34343 #: ../src/guestfs-structs.pod:74
34344 #, no-wrap
34345 msgid ""
34346 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34347 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34348 "\n"
34349 msgstr ""
34350
34351 #. type: =head2
34352 #: ../src/guestfs-structs.pod:77
34353 msgid "guestfs_lvm_lv"
34354 msgstr ""
34355
34356 #. type: verbatim
34357 #: ../src/guestfs-structs.pod:79
34358 #, no-wrap
34359 msgid ""
34360 " struct guestfs_lvm_lv {\n"
34361 "   char *lv_name;\n"
34362 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34363 "*/\n"
34364 "   char lv_uuid[32];\n"
34365 "   char *lv_attr;\n"
34366 "   int64_t lv_major;\n"
34367 "   int64_t lv_minor;\n"
34368 "   int64_t lv_kernel_major;\n"
34369 "   int64_t lv_kernel_minor;\n"
34370 "   uint64_t lv_size;\n"
34371 "   int64_t seg_count;\n"
34372 "   char *origin;\n"
34373 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34374 "   float snap_percent;\n"
34375 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34376 "   float copy_percent;\n"
34377 "   char *move_pv;\n"
34378 "   char *lv_tags;\n"
34379 "   char *mirror_log;\n"
34380 "   char *modules;\n"
34381 " };\n"
34382 " \n"
34383 msgstr ""
34384
34385 #. type: verbatim
34386 #: ../src/guestfs-structs.pod:101
34387 #, no-wrap
34388 msgid ""
34389 " struct guestfs_lvm_lv_list {\n"
34390 "   uint32_t len; /* Number of elements in list. */\n"
34391 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34392 " };\n"
34393 " \n"
34394 msgstr ""
34395
34396 #. type: verbatim
34397 #: ../src/guestfs-structs.pod:106
34398 #, no-wrap
34399 msgid ""
34400 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34401 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34402 "\n"
34403 msgstr ""
34404
34405 #. type: verbatim
34406 #: ../src/guestfs-structs.pod:111
34407 #, no-wrap
34408 msgid ""
34409 " struct guestfs_stat {\n"
34410 "   int64_t dev;\n"
34411 "   int64_t ino;\n"
34412 "   int64_t mode;\n"
34413 "   int64_t nlink;\n"
34414 "   int64_t uid;\n"
34415 "   int64_t gid;\n"
34416 "   int64_t rdev;\n"
34417 "   int64_t size;\n"
34418 "   int64_t blksize;\n"
34419 "   int64_t blocks;\n"
34420 "   int64_t atime;\n"
34421 "   int64_t mtime;\n"
34422 "   int64_t ctime;\n"
34423 " };\n"
34424 " \n"
34425 msgstr ""
34426
34427 #. type: verbatim
34428 #: ../src/guestfs-structs.pod:127
34429 #, no-wrap
34430 msgid ""
34431 " struct guestfs_stat_list {\n"
34432 "   uint32_t len; /* Number of elements in list. */\n"
34433 "   struct guestfs_stat *val; /* Elements. */\n"
34434 " };\n"
34435 " \n"
34436 msgstr ""
34437
34438 #. type: verbatim
34439 #: ../src/guestfs-structs.pod:132
34440 #, no-wrap
34441 msgid ""
34442 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34443 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34444 "\n"
34445 msgstr ""
34446
34447 #. type: verbatim
34448 #: ../src/guestfs-structs.pod:137
34449 #, no-wrap
34450 msgid ""
34451 " struct guestfs_statvfs {\n"
34452 "   int64_t bsize;\n"
34453 "   int64_t frsize;\n"
34454 "   int64_t blocks;\n"
34455 "   int64_t bfree;\n"
34456 "   int64_t bavail;\n"
34457 "   int64_t files;\n"
34458 "   int64_t ffree;\n"
34459 "   int64_t favail;\n"
34460 "   int64_t fsid;\n"
34461 "   int64_t flag;\n"
34462 "   int64_t namemax;\n"
34463 " };\n"
34464 " \n"
34465 msgstr ""
34466
34467 #. type: verbatim
34468 #: ../src/guestfs-structs.pod:151
34469 #, no-wrap
34470 msgid ""
34471 " struct guestfs_statvfs_list {\n"
34472 "   uint32_t len; /* Number of elements in list. */\n"
34473 "   struct guestfs_statvfs *val; /* Elements. */\n"
34474 " };\n"
34475 " \n"
34476 msgstr ""
34477
34478 #. type: verbatim
34479 #: ../src/guestfs-structs.pod:156
34480 #, no-wrap
34481 msgid ""
34482 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34483 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34484 "\n"
34485 msgstr ""
34486
34487 #. type: =head2
34488 #: ../src/guestfs-structs.pod:159
34489 msgid "guestfs_dirent"
34490 msgstr ""
34491
34492 #. type: verbatim
34493 #: ../src/guestfs-structs.pod:161
34494 #, no-wrap
34495 msgid ""
34496 " struct guestfs_dirent {\n"
34497 "   int64_t ino;\n"
34498 "   char ftyp;\n"
34499 "   char *name;\n"
34500 " };\n"
34501 " \n"
34502 msgstr ""
34503
34504 #. type: verbatim
34505 #: ../src/guestfs-structs.pod:167
34506 #, no-wrap
34507 msgid ""
34508 " struct guestfs_dirent_list {\n"
34509 "   uint32_t len; /* Number of elements in list. */\n"
34510 "   struct guestfs_dirent *val; /* Elements. */\n"
34511 " };\n"
34512 " \n"
34513 msgstr ""
34514
34515 #. type: verbatim
34516 #: ../src/guestfs-structs.pod:172
34517 #, no-wrap
34518 msgid ""
34519 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34520 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34521 "\n"
34522 msgstr ""
34523
34524 #. type: verbatim
34525 #: ../src/guestfs-structs.pod:177
34526 #, no-wrap
34527 msgid ""
34528 " struct guestfs_version {\n"
34529 "   int64_t major;\n"
34530 "   int64_t minor;\n"
34531 "   int64_t release;\n"
34532 "   char *extra;\n"
34533 " };\n"
34534 " \n"
34535 msgstr ""
34536
34537 #. type: verbatim
34538 #: ../src/guestfs-structs.pod:184
34539 #, no-wrap
34540 msgid ""
34541 " struct guestfs_version_list {\n"
34542 "   uint32_t len; /* Number of elements in list. */\n"
34543 "   struct guestfs_version *val; /* Elements. */\n"
34544 " };\n"
34545 " \n"
34546 msgstr ""
34547
34548 #. type: verbatim
34549 #: ../src/guestfs-structs.pod:189
34550 #, no-wrap
34551 msgid ""
34552 " void guestfs_free_version (struct guestfs_free_version *);\n"
34553 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34554 "\n"
34555 msgstr ""
34556
34557 #. type: =head2
34558 #: ../src/guestfs-structs.pod:192
34559 msgid "guestfs_xattr"
34560 msgstr ""
34561
34562 #. type: verbatim
34563 #: ../src/guestfs-structs.pod:194
34564 #, no-wrap
34565 msgid ""
34566 " struct guestfs_xattr {\n"
34567 "   char *attrname;\n"
34568 "   /* The next two fields describe a byte array. */\n"
34569 "   uint32_t attrval_len;\n"
34570 "   char *attrval;\n"
34571 " };\n"
34572 " \n"
34573 msgstr ""
34574
34575 #. type: verbatim
34576 #: ../src/guestfs-structs.pod:201
34577 #, no-wrap
34578 msgid ""
34579 " struct guestfs_xattr_list {\n"
34580 "   uint32_t len; /* Number of elements in list. */\n"
34581 "   struct guestfs_xattr *val; /* Elements. */\n"
34582 " };\n"
34583 " \n"
34584 msgstr ""
34585
34586 #. type: verbatim
34587 #: ../src/guestfs-structs.pod:206
34588 #, no-wrap
34589 msgid ""
34590 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34591 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34592 "\n"
34593 msgstr ""
34594
34595 #. type: =head2
34596 #: ../src/guestfs-structs.pod:209
34597 msgid "guestfs_inotify_event"
34598 msgstr ""
34599
34600 #. type: verbatim
34601 #: ../src/guestfs-structs.pod:211
34602 #, no-wrap
34603 msgid ""
34604 " struct guestfs_inotify_event {\n"
34605 "   int64_t in_wd;\n"
34606 "   uint32_t in_mask;\n"
34607 "   uint32_t in_cookie;\n"
34608 "   char *in_name;\n"
34609 " };\n"
34610 " \n"
34611 msgstr ""
34612
34613 #. type: verbatim
34614 #: ../src/guestfs-structs.pod:218
34615 #, no-wrap
34616 msgid ""
34617 " struct guestfs_inotify_event_list {\n"
34618 "   uint32_t len; /* Number of elements in list. */\n"
34619 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34620 " };\n"
34621 " \n"
34622 msgstr ""
34623
34624 #. type: verbatim
34625 #: ../src/guestfs-structs.pod:223
34626 #, no-wrap
34627 msgid ""
34628 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34629 " void guestfs_free_inotify_event_list (struct "
34630 "guestfs_free_inotify_event_list *);\n"
34631 "\n"
34632 msgstr ""
34633
34634 #. type: =head2
34635 #: ../src/guestfs-structs.pod:226
34636 msgid "guestfs_partition"
34637 msgstr ""
34638
34639 #. type: verbatim
34640 #: ../src/guestfs-structs.pod:228
34641 #, no-wrap
34642 msgid ""
34643 " struct guestfs_partition {\n"
34644 "   int32_t part_num;\n"
34645 "   uint64_t part_start;\n"
34646 "   uint64_t part_end;\n"
34647 "   uint64_t part_size;\n"
34648 " };\n"
34649 " \n"
34650 msgstr ""
34651
34652 #. type: verbatim
34653 #: ../src/guestfs-structs.pod:235
34654 #, no-wrap
34655 msgid ""
34656 " struct guestfs_partition_list {\n"
34657 "   uint32_t len; /* Number of elements in list. */\n"
34658 "   struct guestfs_partition *val; /* Elements. */\n"
34659 " };\n"
34660 " \n"
34661 msgstr ""
34662
34663 #. type: verbatim
34664 #: ../src/guestfs-structs.pod:240
34665 #, no-wrap
34666 msgid ""
34667 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34668 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34669 "\n"
34670 msgstr ""
34671
34672 #. type: =head2
34673 #: ../src/guestfs-structs.pod:243
34674 msgid "guestfs_application"
34675 msgstr ""
34676
34677 #. type: verbatim
34678 #: ../src/guestfs-structs.pod:245
34679 #, no-wrap
34680 msgid ""
34681 " struct guestfs_application {\n"
34682 "   char *app_name;\n"
34683 "   char *app_display_name;\n"
34684 "   int32_t app_epoch;\n"
34685 "   char *app_version;\n"
34686 "   char *app_release;\n"
34687 "   char *app_install_path;\n"
34688 "   char *app_trans_path;\n"
34689 "   char *app_publisher;\n"
34690 "   char *app_url;\n"
34691 "   char *app_source_package;\n"
34692 "   char *app_summary;\n"
34693 "   char *app_description;\n"
34694 " };\n"
34695 " \n"
34696 msgstr ""
34697
34698 #. type: verbatim
34699 #: ../src/guestfs-structs.pod:260
34700 #, no-wrap
34701 msgid ""
34702 " struct guestfs_application_list {\n"
34703 "   uint32_t len; /* Number of elements in list. */\n"
34704 "   struct guestfs_application *val; /* Elements. */\n"
34705 " };\n"
34706 " \n"
34707 msgstr ""
34708
34709 #. type: verbatim
34710 #: ../src/guestfs-structs.pod:265
34711 #, no-wrap
34712 msgid ""
34713 " void guestfs_free_application (struct guestfs_free_application *);\n"
34714 " void guestfs_free_application_list (struct guestfs_free_application_list "
34715 "*);\n"
34716 "\n"
34717 msgstr ""
34718
34719 #. type: textblock
34720 #: ../src/guestfs.pod:5
34721 msgid "guestfs - Library for accessing and modifying virtual machine images"
34722 msgstr ""
34723
34724 #. type: verbatim
34725 #: ../src/guestfs.pod:11
34726 #, no-wrap
34727 msgid ""
34728 " guestfs_h *g = guestfs_create ();\n"
34729 " guestfs_add_drive (g, \"guest.img\");\n"
34730 " guestfs_launch (g);\n"
34731 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34732 " guestfs_touch (g, \"/hello\");\n"
34733 " guestfs_umount (g, \"/\");\n"
34734 " guestfs_close (g);\n"
34735 "\n"
34736 msgstr ""
34737
34738 #. type: textblock
34739 #: ../src/guestfs.pod:25
34740 msgid ""
34741 "Libguestfs is a library for accessing and modifying guest disk images.  "
34742 "Amongst the things this is good for: making batch configuration changes to "
34743 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34744 "between virtualization systems (see also: virt-p2v), performing partial "
34745 "backups, performing partial guest clones, cloning guests and changing "
34746 "registry/UUID/hostname info, and much else besides."
34747 msgstr ""
34748
34749 #. type: textblock
34750 #: ../src/guestfs.pod:33
34751 msgid ""
34752 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34753 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34754 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34755 "qcow2, vmdk."
34756 msgstr ""
34757
34758 #. type: textblock
34759 #: ../src/guestfs.pod:38
34760 msgid ""
34761 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34762 "what filesystem is in each LV, etc.).  It can also run commands in the "
34763 "context of the guest.  Also you can access filesystems over FUSE."
34764 msgstr ""
34765
34766 #. type: textblock
34767 #: ../src/guestfs.pod:43
34768 msgid ""
34769 "Libguestfs is a library that can be linked with C and C++ management "
34770 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34771 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34772 "command line."
34773 msgstr ""
34774
34775 #. type: textblock
34776 #: ../src/guestfs.pod:48
34777 msgid ""
34778 "You don't need to be root to use libguestfs, although obviously you do need "
34779 "enough permissions to access the disk images."
34780 msgstr ""
34781
34782 #. type: textblock
34783 #: ../src/guestfs.pod:51
34784 msgid ""
34785 "Libguestfs is a large API because it can do many things.  For a gentle "
34786 "introduction, please read the L</API OVERVIEW> section next."
34787 msgstr ""
34788
34789 #. type: textblock
34790 #: ../src/guestfs.pod:54
34791 msgid ""
34792 "There are also some example programs in the L<guestfs-examples(3)> manual "
34793 "page."
34794 msgstr ""
34795
34796 #. type: =head1
34797 #: ../src/guestfs.pod:57
34798 msgid "API OVERVIEW"
34799 msgstr ""
34800
34801 #. type: textblock
34802 #: ../src/guestfs.pod:59
34803 msgid ""
34804 "This section provides a gentler overview of the libguestfs API.  We also try "
34805 "to group API calls together, where that may not be obvious from reading "
34806 "about the individual calls in the main section of this manual."
34807 msgstr ""
34808
34809 #. type: =head2
34810 #: ../src/guestfs.pod:64
34811 msgid "HANDLES"
34812 msgstr ""
34813
34814 #. type: textblock
34815 #: ../src/guestfs.pod:66
34816 msgid ""
34817 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34818 "must add at least one disk image to the handle, followed by launching the "
34819 "handle, then performing whatever operations you want, and finally closing "
34820 "the handle.  By convention we use the single letter C<g> for the name of the "
34821 "handle variable, although of course you can use any name you want."
34822 msgstr ""
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:73
34826 msgid "The general structure of all libguestfs-using programs looks like this:"
34827 msgstr ""
34828
34829 #. type: verbatim
34830 #: ../src/guestfs.pod:76
34831 #, no-wrap
34832 msgid ""
34833 " guestfs_h *g = guestfs_create ();\n"
34834 " \n"
34835 msgstr ""
34836
34837 #. type: verbatim
34838 #: ../src/guestfs.pod:78
34839 #, no-wrap
34840 msgid ""
34841 " /* Call guestfs_add_drive additional times if there are\n"
34842 "  * multiple disk images.\n"
34843 "  */\n"
34844 " guestfs_add_drive (g, \"guest.img\");\n"
34845 " \n"
34846 msgstr ""
34847
34848 #. type: verbatim
34849 #: ../src/guestfs.pod:83
34850 #, no-wrap
34851 msgid ""
34852 " /* Most manipulation calls won't work until you've launched\n"
34853 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34854 "  * and _before_ other commands.\n"
34855 "  */\n"
34856 " guestfs_launch (g);\n"
34857 " \n"
34858 msgstr ""
34859
34860 #. type: verbatim
34861 #: ../src/guestfs.pod:89
34862 #, no-wrap
34863 msgid ""
34864 " /* Now you can examine what partitions, LVs etc are available.\n"
34865 "  */\n"
34866 " char **partitions = guestfs_list_partitions (g);\n"
34867 " char **logvols = guestfs_lvs (g);\n"
34868 " \n"
34869 msgstr ""
34870
34871 #. type: verbatim
34872 #: ../src/guestfs.pod:94
34873 #, no-wrap
34874 msgid ""
34875 " /* To access a filesystem in the image, you must mount it.\n"
34876 "  */\n"
34877 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34878 " \n"
34879 msgstr ""
34880
34881 #. type: verbatim
34882 #: ../src/guestfs.pod:98
34883 #, no-wrap
34884 msgid ""
34885 " /* Now you can perform filesystem actions on the guest\n"
34886 "  * disk image.\n"
34887 "  */\n"
34888 " guestfs_touch (g, \"/hello\");\n"
34889 " \n"
34890 msgstr ""
34891
34892 #. type: verbatim
34893 #: ../src/guestfs.pod:103
34894 #, no-wrap
34895 msgid ""
34896 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34897 "  * it is done automatically when you close the handle.  See\n"
34898 "  * discussion of autosync in this page.\n"
34899 "  */\n"
34900 " guestfs_sync (g);\n"
34901 " \n"
34902 msgstr ""
34903
34904 #. type: verbatim
34905 #: ../src/guestfs.pod:109
34906 #, no-wrap
34907 msgid ""
34908 " /* Close the handle 'g'. */\n"
34909 " guestfs_close (g);\n"
34910 "\n"
34911 msgstr ""
34912
34913 #. type: textblock
34914 #: ../src/guestfs.pod:112
34915 msgid ""
34916 "The code above doesn't include any error checking.  In real code you should "
34917 "check return values carefully for errors.  In general all functions that "
34918 "return integers return C<-1> on error, and all functions that return "
34919 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34920 "how to handle errors, and consult the documentation for each function call "
34921 "below to see precisely how they return error indications.  See "
34922 "L<guestfs-examples(3)> for fully worked examples."
34923 msgstr ""
34924
34925 #. type: =head2
34926 #: ../src/guestfs.pod:121
34927 msgid "DISK IMAGES"
34928 msgstr ""
34929
34930 #. type: textblock
34931 #: ../src/guestfs.pod:123
34932 msgid ""
34933 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34934 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34935 "actual block device, or simply an empty file of zeroes that you have created "
34936 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34937 "of these."
34938 msgstr ""
34939
34940 #. type: textblock
34941 #: ../src/guestfs.pod:129
34942 msgid ""
34943 "The call you should use in modern code for adding drives is "
34944 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34945 "specifying that the format is raw, do:"
34946 msgstr ""
34947
34948 #. type: verbatim
34949 #: ../src/guestfs.pod:133
34950 #, no-wrap
34951 msgid ""
34952 " guestfs_add_drive_opts (g, filename,\n"
34953 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34954 "                         -1);\n"
34955 "\n"
34956 msgstr ""
34957
34958 #. type: textblock
34959 #: ../src/guestfs.pod:137
34960 msgid "You can add a disk read-only using:"
34961 msgstr ""
34962
34963 #. type: verbatim
34964 #: ../src/guestfs.pod:139
34965 #, no-wrap
34966 msgid ""
34967 " guestfs_add_drive_opts (g, filename,\n"
34968 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34969 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34970 "                         -1);\n"
34971 "\n"
34972 msgstr ""
34973
34974 #. type: textblock
34975 #: ../src/guestfs.pod:144
34976 msgid ""
34977 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34978 "libguestfs won't modify the file."
34979 msgstr ""
34980
34981 #. type: textblock
34982 #: ../src/guestfs.pod:147
34983 msgid ""
34984 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34985 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34986 "corruption, but adding it read-only is safe."
34987 msgstr ""
34988
34989 #. type: textblock
34990 #: ../src/guestfs.pod:151
34991 msgid ""
34992 "You must add at least one disk image, and you may add multiple disk images.  "
34993 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34994 "first one you added), C</dev/sdb> (for the second one you added), etc."
34995 msgstr ""
34996
34997 #. type: textblock
34998 #: ../src/guestfs.pod:156
34999 msgid ""
35000 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35001 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35002 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35003 msgstr ""
35004
35005 #. type: =head2
35006 #: ../src/guestfs.pod:161
35007 msgid "MOUNTING"
35008 msgstr ""
35009
35010 #. type: textblock
35011 #: ../src/guestfs.pod:163
35012 msgid ""
35013 "Before you can read or write files, create directories and so on in a disk "
35014 "image that contains filesystems, you have to mount those filesystems using "
35015 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35016 "a disk image contains (for example) one partition with a filesystem on that "
35017 "partition, then you can mount it directly:"
35018 msgstr ""
35019
35020 #. type: verbatim
35021 #: ../src/guestfs.pod:170
35022 #, no-wrap
35023 msgid ""
35024 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35025 "\n"
35026 msgstr ""
35027
35028 #. type: textblock
35029 #: ../src/guestfs.pod:172
35030 msgid ""
35031 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35032 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35033 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35034 "that these are libguestfs virtual devices, and are nothing to do with host "
35035 "devices."
35036 msgstr ""
35037
35038 #. type: textblock
35039 #: ../src/guestfs.pod:178
35040 msgid ""
35041 "If you are given a disk image and you don't know what it contains then you "
35042 "have to find out.  Libguestfs can do that too: use "
35043 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
35044 "and LVs, and either try mounting each to see what is mountable, or else "
35045 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35046 "filesystems, use L</guestfs_list_filesystems>."
35047 msgstr ""
35048
35049 #. type: textblock
35050 #: ../src/guestfs.pod:186
35051 msgid ""
35052 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35053 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35054 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35055 msgstr ""
35056
35057 #. type: textblock
35058 #: ../src/guestfs.pod:191
35059 msgid ""
35060 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35061 "several other variations of the C<guestfs_mount_*> call."
35062 msgstr ""
35063
35064 #. type: =head2
35065 #: ../src/guestfs.pod:194
35066 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35067 msgstr ""
35068
35069 #. type: textblock
35070 #: ../src/guestfs.pod:196
35071 msgid ""
35072 "The majority of the libguestfs API consists of fairly low-level calls for "
35073 "accessing and modifying the files, directories, symlinks etc on mounted "
35074 "filesystems.  There are over a hundred such calls which you can find listed "
35075 "in detail below in this man page, and we don't even pretend to cover them "
35076 "all in this overview."
35077 msgstr ""
35078
35079 #. type: textblock
35080 #: ../src/guestfs.pod:202
35081 msgid ""
35082 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35083 "mount point."
35084 msgstr ""
35085
35086 #. type: textblock
35087 #: ../src/guestfs.pod:205
35088 msgid ""
35089 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35090 "the file called C<\"etc/passwd\"> then you could do:"
35091 msgstr ""
35092
35093 #. type: verbatim
35094 #: ../src/guestfs.pod:208
35095 #, no-wrap
35096 msgid ""
35097 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35098 "\n"
35099 msgstr ""
35100
35101 #. type: textblock
35102 #: ../src/guestfs.pod:210
35103 msgid ""
35104 "This would return C<data> as a newly allocated buffer containing the full "
35105 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35106 "or C<NULL> if there was an error."
35107 msgstr ""
35108
35109 #. type: textblock
35110 #: ../src/guestfs.pod:214
35111 msgid ""
35112 "As another example, to create a top-level directory on that filesystem "
35113 "called C<\"var\"> you would do:"
35114 msgstr ""
35115
35116 #. type: verbatim
35117 #: ../src/guestfs.pod:217
35118 #, no-wrap
35119 msgid ""
35120 " guestfs_mkdir (g, \"/var\");\n"
35121 "\n"
35122 msgstr ""
35123
35124 #. type: textblock
35125 #: ../src/guestfs.pod:219
35126 msgid "To create a symlink you could do:"
35127 msgstr ""
35128
35129 #. type: verbatim
35130 #: ../src/guestfs.pod:221
35131 #, no-wrap
35132 msgid ""
35133 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35134 "               \"/etc/rc3.d/S30portmap\");\n"
35135 "\n"
35136 msgstr ""
35137
35138 #. type: textblock
35139 #: ../src/guestfs.pod:224
35140 msgid ""
35141 "Libguestfs will reject attempts to use relative paths and there is no "
35142 "concept of a current working directory."
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs.pod:227
35147 msgid ""
35148 "Libguestfs can return errors in many situations: for example if the "
35149 "filesystem isn't writable, or if a file or directory that you requested "
35150 "doesn't exist.  If you are using the C API (documented here)  you have to "
35151 "check for those error conditions after each call.  (Other language bindings "
35152 "turn these errors into exceptions)."
35153 msgstr ""
35154
35155 #. type: textblock
35156 #: ../src/guestfs.pod:233
35157 msgid ""
35158 "File writes are affected by the per-handle umask, set by calling "
35159 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
35160 msgstr ""
35161
35162 #. type: =head2
35163 #: ../src/guestfs.pod:236
35164 msgid "PARTITIONING"
35165 msgstr ""
35166
35167 #. type: textblock
35168 #: ../src/guestfs.pod:238
35169 msgid ""
35170 "Libguestfs contains API calls to read, create and modify partition tables on "
35171 "disk images."
35172 msgstr ""
35173
35174 #. type: textblock
35175 #: ../src/guestfs.pod:241
35176 msgid ""
35177 "In the common case where you want to create a single partition covering the "
35178 "whole disk, you should use the L</guestfs_part_disk> call:"
35179 msgstr ""
35180
35181 #. type: verbatim
35182 #: ../src/guestfs.pod:245
35183 #, no-wrap
35184 msgid ""
35185 " const char *parttype = \"mbr\";\n"
35186 " if (disk_is_larger_than_2TB)\n"
35187 "   parttype = \"gpt\";\n"
35188 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35189 "\n"
35190 msgstr ""
35191
35192 #. type: textblock
35193 #: ../src/guestfs.pod:250
35194 msgid ""
35195 "Obviously this effectively wipes anything that was on that disk image "
35196 "before."
35197 msgstr ""
35198
35199 #. type: =head2
35200 #: ../src/guestfs.pod:253
35201 msgid "LVM2"
35202 msgstr ""
35203
35204 #. type: textblock
35205 #: ../src/guestfs.pod:255
35206 msgid ""
35207 "Libguestfs provides access to a large part of the LVM2 API, such as "
35208 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
35209 "unless you familiarize yourself with the concepts of physical volumes, "
35210 "volume groups and logical volumes."
35211 msgstr ""
35212
35213 #. type: textblock
35214 #: ../src/guestfs.pod:260
35215 msgid ""
35216 "This author strongly recommends reading the LVM HOWTO, online at "
35217 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
35218 msgstr ""
35219
35220 #. type: =head2
35221 #: ../src/guestfs.pod:263
35222 msgid "DOWNLOADING"
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:265
35227 msgid ""
35228 "Use L</guestfs_cat> to download small, text only files.  This call is "
35229 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35230 "NUL (C<\\0>) characters.  However the API is very simple to use."
35231 msgstr ""
35232
35233 #. type: textblock
35234 #: ../src/guestfs.pod:269
35235 msgid ""
35236 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35237 "bit data, since it returns a (pointer, size) pair.  However it is still "
35238 "limited to \"small\" files, less than 2 MB."
35239 msgstr ""
35240
35241 #. type: textblock
35242 #: ../src/guestfs.pod:273
35243 msgid ""
35244 "L</guestfs_download> can be used to download any file, with no limits on "
35245 "content or size (even files larger than 4 GB)."
35246 msgstr ""
35247
35248 #. type: textblock
35249 #: ../src/guestfs.pod:276
35250 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35251 msgstr ""
35252
35253 #. type: =head2
35254 #: ../src/guestfs.pod:279
35255 msgid "UPLOADING"
35256 msgstr ""
35257
35258 #. type: textblock
35259 #: ../src/guestfs.pod:281
35260 msgid ""
35261 "It's often the case that you want to write a file or files to the disk "
35262 "image."
35263 msgstr ""
35264
35265 #. type: textblock
35266 #: ../src/guestfs.pod:284
35267 msgid ""
35268 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35269 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
35270 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
35271 "variety of other functions for creating test files, for example "
35272 "L</guestfs_fill> and L</guestfs_fill_pattern>."
35273 msgstr ""
35274
35275 #. type: textblock
35276 #: ../src/guestfs.pod:290
35277 msgid ""
35278 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35279 "file content or size (even files larger than 4 GB)."
35280 msgstr ""
35281
35282 #. type: textblock
35283 #: ../src/guestfs.pod:293
35284 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35285 msgstr ""
35286
35287 #. type: textblock
35288 #: ../src/guestfs.pod:295
35289 msgid ""
35290 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35291 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
35292 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
35293 "the drive in a predictable way (eg. adding it last after all other drives) "
35294 "then you can get the device name from L</guestfs_list_devices> and mount it "
35295 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
35296 "sometimes non-portable between kernel versions, and they don't support "
35297 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
35298 "using a label or UUID, use an ISO image instead."
35299 msgstr ""
35300
35301 #. type: =head2
35302 #: ../src/guestfs.pod:306
35303 msgid "COPYING"
35304 msgstr ""
35305
35306 #. type: textblock
35307 #: ../src/guestfs.pod:308
35308 msgid ""
35309 "There are various different commands for copying between files and devices "
35310 "and in and out of the guest filesystem.  These are summarised in the table "
35311 "below."
35312 msgstr ""
35313
35314 #. type: =item
35315 #: ../src/guestfs.pod:314
35316 msgid "B<file> to B<file>"
35317 msgstr ""
35318
35319 #. type: textblock
35320 #: ../src/guestfs.pod:316
35321 msgid ""
35322 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35323 "directories recursively."
35324 msgstr ""
35325
35326 #. type: textblock
35327 #: ../src/guestfs.pod:319
35328 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35329 msgstr ""
35330
35331 #. type: =item
35332 #: ../src/guestfs.pod:322
35333 msgid "B<file> to B<device>"
35334 msgstr ""
35335
35336 #. type: =item
35337 #: ../src/guestfs.pod:324
35338 msgid "B<device> to B<file>"
35339 msgstr ""
35340
35341 #. type: =item
35342 #: ../src/guestfs.pod:326
35343 msgid "B<device> to B<device>"
35344 msgstr ""
35345
35346 #. type: textblock
35347 #: ../src/guestfs.pod:328
35348 msgid ""
35349 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
35350 "L</guestfs_copy_device_to_device>."
35351 msgstr ""
35352
35353 #. type: textblock
35354 #: ../src/guestfs.pod:331
35355 msgid "Example: duplicate the contents of an LV:"
35356 msgstr ""
35357
35358 #. type: verbatim
35359 #: ../src/guestfs.pod:333
35360 #, no-wrap
35361 msgid ""
35362 " guestfs_copy_device_to_device (g,\n"
35363 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35364 "         /* -1 marks the end of the list of optional parameters */\n"
35365 "         -1);\n"
35366 "\n"
35367 msgstr ""
35368
35369 #. type: textblock
35370 #: ../src/guestfs.pod:338
35371 msgid ""
35372 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35373 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
35374 "optional C<size> parameter:"
35375 msgstr ""
35376
35377 #. type: verbatim
35378 #: ../src/guestfs.pod:342
35379 #, no-wrap
35380 msgid ""
35381 " guestfs_copy_device_to_device (g,\n"
35382 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35383 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
35384 "         -1);\n"
35385 "\n"
35386 msgstr ""
35387
35388 #. type: =item
35389 #: ../src/guestfs.pod:347
35390 msgid "B<file on the host> to B<file or device>"
35391 msgstr ""
35392
35393 #. type: textblock
35394 #: ../src/guestfs.pod:349
35395 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35396 msgstr ""
35397
35398 #. type: =item
35399 #: ../src/guestfs.pod:351
35400 msgid "B<file or device> to B<file on the host>"
35401 msgstr ""
35402
35403 #. type: textblock
35404 #: ../src/guestfs.pod:353
35405 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35406 msgstr ""
35407
35408 #. type: =head2
35409 #: ../src/guestfs.pod:357
35410 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35411 msgstr ""
35412
35413 #. type: textblock
35414 #: ../src/guestfs.pod:359
35415 msgid ""
35416 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
35417 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35418 "appears you can only upload and download to files.  However many Un*x-like "
35419 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
35420 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
35421 "stderr, and arbitrary file descriptor N."
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:367
35426 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35427 msgstr ""
35428
35429 #. type: verbatim
35430 #: ../src/guestfs.pod:370
35431 #, no-wrap
35432 msgid ""
35433 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35434 "\n"
35435 msgstr ""
35436
35437 #. type: textblock
35438 #: ../src/guestfs.pod:372
35439 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35440 msgstr ""
35441
35442 #. type: verbatim
35443 #: ../src/guestfs.pod:374
35444 #, no-wrap
35445 msgid ""
35446 " char devfd[64];\n"
35447 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35448 " guestfs_tar_out (g, \"/\", devfd);\n"
35449 "\n"
35450 msgstr ""
35451
35452 #. type: =head2
35453 #: ../src/guestfs.pod:378
35454 msgid "LISTING FILES"
35455 msgstr ""
35456
35457 #. type: textblock
35458 #: ../src/guestfs.pod:380
35459 msgid ""
35460 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35461 "L<guestfish(1)>-equivalent command C<ll>)."
35462 msgstr ""
35463
35464 #. type: textblock
35465 #: ../src/guestfs.pod:383
35466 msgid ""
35467 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35468 "programs, as a flat list of strings."
35469 msgstr ""
35470
35471 #. type: textblock
35472 #: ../src/guestfs.pod:386
35473 msgid ""
35474 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35475 "directory, plus additional information about each one.  It is more "
35476 "equivalent to using the L<readdir(3)> call on a local filesystem."
35477 msgstr ""
35478
35479 #. type: textblock
35480 #: ../src/guestfs.pod:390
35481 msgid ""
35482 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
35483 "files."
35484 msgstr ""
35485
35486 #. type: =head2
35487 #: ../src/guestfs.pod:393
35488 msgid "RUNNING COMMANDS"
35489 msgstr ""
35490
35491 #. type: textblock
35492 #: ../src/guestfs.pod:395
35493 msgid ""
35494 "Although libguestfs is primarily an API for manipulating files inside guest "
35495 "images, we also provide some limited facilities for running commands inside "
35496 "guests."
35497 msgstr ""
35498
35499 #. type: textblock
35500 #: ../src/guestfs.pod:399
35501 msgid "There are many limitations to this:"
35502 msgstr ""
35503
35504 #. type: textblock
35505 #: ../src/guestfs.pod:405
35506 msgid ""
35507 "The kernel version that the command runs under will be different from what "
35508 "it expects."
35509 msgstr ""
35510
35511 #. type: textblock
35512 #: ../src/guestfs.pod:410
35513 msgid ""
35514 "If the command needs to communicate with daemons, then most likely they "
35515 "won't be running."
35516 msgstr ""
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:415
35520 msgid "The command will be running in limited memory."
35521 msgstr ""
35522
35523 #. type: textblock
35524 #: ../src/guestfs.pod:419
35525 msgid ""
35526 "The network may not be available unless you enable it (see "
35527 "L</guestfs_set_network>)."
35528 msgstr ""
35529
35530 #. type: textblock
35531 #: ../src/guestfs.pod:424
35532 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35533 msgstr ""
35534
35535 #. type: textblock
35536 #: ../src/guestfs.pod:428
35537 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:433
35542 msgid ""
35543 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35544 "See L</SELINUX> in this manpage."
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:438
35549 msgid ""
35550 "I<Security:> It is not safe to run commands from untrusted, possibly "
35551 "malicious guests.  These commands may attempt to exploit your program by "
35552 "sending unexpected output.  They could also try to exploit the Linux kernel "
35553 "or qemu provided by the libguestfs appliance.  They could use the network "
35554 "provided by the libguestfs appliance to bypass ordinary network partitions "
35555 "and firewalls.  They could use the elevated privileges or different SELinux "
35556 "context of your program to their advantage."
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:447
35561 msgid ""
35562 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35563 "(a script which runs when the guest next boots normally), and to have this "
35564 "script run the commands you want in the normal context of the running guest, "
35565 "network security and so on.  For information about other security issues, "
35566 "see L</SECURITY>."
35567 msgstr ""
35568
35569 #. type: textblock
35570 #: ../src/guestfs.pod:455
35571 msgid ""
35572 "The two main API calls to run commands are L</guestfs_command> and "
35573 "L</guestfs_sh> (there are also variations)."
35574 msgstr ""
35575
35576 #. type: textblock
35577 #: ../src/guestfs.pod:458
35578 msgid ""
35579 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35580 "shell globs, redirections, etc will work."
35581 msgstr ""
35582
35583 #. type: =head2
35584 #: ../src/guestfs.pod:461
35585 msgid "CONFIGURATION FILES"
35586 msgstr ""
35587
35588 #. type: textblock
35589 #: ../src/guestfs.pod:463
35590 msgid ""
35591 "To read and write configuration files in Linux guest filesystems, we "
35592 "strongly recommend using Augeas.  For example, Augeas understands how to "
35593 "read and write, say, a Linux shadow password file or X.org configuration "
35594 "file, and so avoids you having to write that code."
35595 msgstr ""
35596
35597 #. type: textblock
35598 #: ../src/guestfs.pod:468
35599 msgid ""
35600 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35601 "document Augeas itself here because there is excellent documentation on the "
35602 "L<http://augeas.net/> website."
35603 msgstr ""
35604
35605 #. type: textblock
35606 #: ../src/guestfs.pod:472
35607 msgid ""
35608 "If you don't want to use Augeas (you fool!) then try calling "
35609 "L</guestfs_read_lines> to get the file as a list of lines which you can "
35610 "iterate over."
35611 msgstr ""
35612
35613 #. type: =head2
35614 #: ../src/guestfs.pod:476
35615 msgid "SELINUX"
35616 msgstr ""
35617
35618 #. type: textblock
35619 #: ../src/guestfs.pod:478
35620 msgid ""
35621 "We support SELinux guests.  To ensure that labeling happens correctly in "
35622 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35623 msgstr ""
35624
35625 #. type: textblock
35626 #: ../src/guestfs.pod:486
35627 msgid "Before launching, do:"
35628 msgstr ""
35629
35630 #. type: verbatim
35631 #: ../src/guestfs.pod:488
35632 #, no-wrap
35633 msgid ""
35634 " guestfs_set_selinux (g, 1);\n"
35635 "\n"
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:492
35640 msgid ""
35641 "After mounting the guest's filesystem(s), load the policy.  This is best "
35642 "done by running the L<load_policy(8)> command in the guest itself:"
35643 msgstr ""
35644
35645 #. type: verbatim
35646 #: ../src/guestfs.pod:496
35647 #, no-wrap
35648 msgid ""
35649 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35650 "\n"
35651 msgstr ""
35652
35653 #. type: textblock
35654 #: ../src/guestfs.pod:498
35655 msgid ""
35656 "(Older versions of C<load_policy> require you to specify the name of the "
35657 "policy file)."
35658 msgstr ""
35659
35660 #. type: textblock
35661 #: ../src/guestfs.pod:503
35662 msgid ""
35663 "Optionally, set the security context for the API.  The correct security "
35664 "context to use can only be known by inspecting the guest.  As an example:"
35665 msgstr ""
35666
35667 #. type: verbatim
35668 #: ../src/guestfs.pod:507
35669 #, no-wrap
35670 msgid ""
35671 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35672 "\n"
35673 msgstr ""
35674
35675 #. type: textblock
35676 #: ../src/guestfs.pod:511
35677 msgid "This will work for running commands and editing existing files."
35678 msgstr ""
35679
35680 #. type: textblock
35681 #: ../src/guestfs.pod:513
35682 msgid ""
35683 "When new files are created, you may need to label them explicitly, for "
35684 "example by running the external command C<restorecon pathname>."
35685 msgstr ""
35686
35687 #. type: =head2
35688 #: ../src/guestfs.pod:517
35689 msgid "UMASK"
35690 msgstr ""
35691
35692 #. type: textblock
35693 #: ../src/guestfs.pod:519
35694 msgid ""
35695 "Certain calls are affected by the current file mode creation mask (the "
35696 "\"umask\").  In particular ones which create files or directories, such as "
35697 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35698 "either the default mode that the file is created with or modifies the mode "
35699 "that you supply."
35700 msgstr ""
35701
35702 #. type: textblock
35703 #: ../src/guestfs.pod:525
35704 msgid ""
35705 "The default umask is C<022>, so files are created with modes such as C<0644> "
35706 "and directories with C<0755>."
35707 msgstr ""
35708
35709 #. type: textblock
35710 #: ../src/guestfs.pod:528
35711 msgid ""
35712 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35713 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
35714 "L</guestfs_chmod> after creating each file or directory."
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../src/guestfs.pod:532
35719 msgid "For more information about umask, see L<umask(2)>."
35720 msgstr ""
35721
35722 #. type: textblock
35723 #: ../src/guestfs.pod:536
35724 msgid ""
35725 "Libguestfs allows you to access Linux guests which have been encrypted using "
35726 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35727 "standard.  This includes nearly all whole disk encryption systems used by "
35728 "modern Linux guests."
35729 msgstr ""
35730
35731 #. type: textblock
35732 #: ../src/guestfs.pod:542
35733 msgid ""
35734 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35735 "returns the string C<crypto_LUKS>)."
35736 msgstr ""
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:545
35740 msgid ""
35741 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35742 "will require the passphrase!"
35743 msgstr ""
35744
35745 #. type: textblock
35746 #: ../src/guestfs.pod:548
35747 msgid ""
35748 "Opening a LUKS device creates a new device mapper device called "
35749 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
35750 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
35751 "decrypted from and encrypted to the underlying block device respectively."
35752 msgstr ""
35753
35754 #. type: textblock
35755 #: ../src/guestfs.pod:554
35756 msgid ""
35757 "LVM volume groups on the device can be made visible by calling "
35758 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
35759 "volume(s) can now be mounted in the usual way."
35760 msgstr ""
35761
35762 #. type: textblock
35763 #: ../src/guestfs.pod:558
35764 msgid ""
35765 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35766 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35767 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
35768 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35769 "underlying encrypted block device)."
35770 msgstr ""
35771
35772 #. type: =head2
35773 #: ../src/guestfs.pod:565
35774 msgid "INSPECTION"
35775 msgstr ""
35776
35777 #. type: textblock
35778 #: ../src/guestfs.pod:567
35779 msgid ""
35780 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35781 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35782 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35783 "version 1.5.3 the most frequently used part of this library has been "
35784 "rewritten in C and moved into the core code)."
35785 msgstr ""
35786
35787 #. type: textblock
35788 #: ../src/guestfs.pod:574
35789 msgid ""
35790 "Add all disks belonging to the unknown virtual machine and call "
35791 "L</guestfs_launch> in the usual way."
35792 msgstr ""
35793
35794 #. type: textblock
35795 #: ../src/guestfs.pod:577
35796 msgid ""
35797 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35798 "and certain heuristics, and returns a list of operating systems that were "
35799 "found.  An empty list means none were found.  A single element is the root "
35800 "filesystem of the operating system.  For dual- or multi-boot guests, "
35801 "multiple roots can be returned, each one corresponding to a separate "
35802 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35803 "world of virtualization, but since this scenario can happen, we have built "
35804 "libguestfs to deal with it.)"
35805 msgstr ""
35806
35807 #. type: textblock
35808 #: ../src/guestfs.pod:586
35809 msgid ""
35810 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35811 "to get additional details about that operating system.  For example, call "
35812 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35813 "Windows and Linux-based operating systems respectively."
35814 msgstr ""
35815
35816 #. type: textblock
35817 #: ../src/guestfs.pod:592
35818 msgid ""
35819 "Un*x-like and Linux-based operating systems usually consist of several "
35820 "filesystems which are mounted at boot time (for example, a separate boot "
35821 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35822 "filesystems correspond to mount points.  Call "
35823 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35824 "hash table like this example:"
35825 msgstr ""
35826
35827 #. type: verbatim
35828 #: ../src/guestfs.pod:599
35829 #, no-wrap
35830 msgid ""
35831 " /boot => /dev/sda1\n"
35832 " /     => /dev/vg_guest/lv_root\n"
35833 " /usr  => /dev/vg_guest/lv_usr\n"
35834 "\n"
35835 msgstr ""
35836
35837 #. type: textblock
35838 #: ../src/guestfs.pod:603
35839 msgid ""
35840 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35841 "filesystems as suggested."
35842 msgstr ""
35843
35844 #. type: textblock
35845 #: ../src/guestfs.pod:606
35846 msgid ""
35847 "Be careful to mount filesystems in the right order (eg. C</> before "
35848 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
35849 "work."
35850 msgstr ""
35851
35852 #. type: textblock
35853 #: ../src/guestfs.pod:610
35854 msgid ""
35855 "Inspection currently only works for some common operating systems.  "
35856 "Contributors are welcome to send patches for other operating systems that we "
35857 "currently cannot detect."
35858 msgstr ""
35859
35860 #. type: textblock
35861 #: ../src/guestfs.pod:614
35862 msgid ""
35863 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35864 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35865 "encrypted devices."
35866 msgstr ""
35867
35868 #. type: textblock
35869 #: ../src/guestfs.pod:618
35870 msgid ""
35871 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35872 "inspection and caches the results in the guest handle.  Subsequent calls to "
35873 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
35874 "re-read the disks.  If you change the content of the guest disks, you can "
35875 "redo inspection by calling L</guestfs_inspect_os> again.  "
35876 "(L</guestfs_inspect_list_applications> works a little differently from the "
35877 "other calls and does read the disks.  See documentation for that function "
35878 "for details)."
35879 msgstr ""
35880
35881 #. type: =head3
35882 #: ../src/guestfs.pod:627
35883 msgid "INSPECTING INSTALL DISKS"
35884 msgstr ""
35885
35886 #. type: textblock
35887 #: ../src/guestfs.pod:629
35888 msgid ""
35889 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35890 "CDs and more."
35891 msgstr ""
35892
35893 #. type: textblock
35894 #: ../src/guestfs.pod:632
35895 msgid ""
35896 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35897 "system, which currently can be C<installed> (a regular operating system) or "
35898 "C<installer> (some sort of install disk)."
35899 msgstr ""
35900
35901 #. type: textblock
35902 #: ../src/guestfs.pod:636
35903 msgid ""
35904 "Further information is available about the operating system that can be "
35905 "installed using the regular inspection APIs like "
35906 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
35907 "etc."
35908 msgstr ""
35909
35910 #. type: textblock
35911 #: ../src/guestfs.pod:641
35912 msgid ""
35913 "Some additional information specific to installer disks is also available "
35914 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
35915 "L</guestfs_inspect_is_multipart> calls."
35916 msgstr ""
35917
35918 #. type: =head2
35919 #: ../src/guestfs.pod:646
35920 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35921 msgstr ""
35922
35923 #. type: textblock
35924 #: ../src/guestfs.pod:648
35925 msgid ""
35926 "Libguestfs can mount NTFS partitions.  It does this using the "
35927 "L<http://www.ntfs-3g.org/> driver."
35928 msgstr ""
35929
35930 #. type: =head3
35931 #: ../src/guestfs.pod:651
35932 msgid "DRIVE LETTERS AND PATHS"
35933 msgstr ""
35934
35935 #. type: textblock
35936 #: ../src/guestfs.pod:653
35937 msgid ""
35938 "DOS and Windows still use drive letters, and the filesystems are always "
35939 "treated as case insensitive by Windows itself, and therefore you might find "
35940 "a Windows configuration file referring to a path like "
35941 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
35942 "that directory might be referred to as C</WINDOWS/System32>."
35943 msgstr ""
35944
35945 #. type: textblock
35946 #: ../src/guestfs.pod:659
35947 msgid ""
35948 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35949 "L</guestfs_inspect_get_drive_mappings>)"
35950 msgstr ""
35951
35952 #. type: textblock
35953 #: ../src/guestfs.pod:662
35954 msgid ""
35955 "Dealing with separator characters (backslash vs forward slash) is outside "
35956 "the scope of libguestfs, but usually a simple character replacement will "
35957 "work."
35958 msgstr ""
35959
35960 #. type: textblock
35961 #: ../src/guestfs.pod:666
35962 msgid ""
35963 "To resolve the case insensitivity of paths, call "
35964 "L</guestfs_case_sensitive_path>."
35965 msgstr ""
35966
35967 #. type: =head3
35968 #: ../src/guestfs.pod:669
35969 msgid "ACCESSING THE WINDOWS REGISTRY"
35970 msgstr ""
35971
35972 #. type: textblock
35973 #: ../src/guestfs.pod:671
35974 msgid ""
35975 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35976 "files, through the library C<hivex> which is part of the libguestfs project "
35977 "although ships as a separate tarball.  You have to locate and download the "
35978 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35979 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
35980 "L<virt-win-reg(1)> for more help on this issue."
35981 msgstr ""
35982
35983 #. type: =head3
35984 #: ../src/guestfs.pod:679
35985 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35986 msgstr ""
35987
35988 #. type: textblock
35989 #: ../src/guestfs.pod:681
35990 msgid ""
35991 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35992 "provide something which looks like a Linux symlink.  The way it tries to do "
35993 "the rewriting is described here:"
35994 msgstr ""
35995
35996 #. type: textblock
35997 #: ../src/guestfs.pod:685
35998 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:687
36003 msgid ""
36004 "The essential problem is that ntfs-3g simply does not have enough "
36005 "information to do a correct job.  NTFS links can contain drive letters and "
36006 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36007 "It is almost certainly the case that libguestfs callers should ignore what "
36008 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36009 msgstr ""
36010
36011 #. type: textblock
36012 #: ../src/guestfs.pod:694
36013 msgid ""
36014 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
36015 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36016 "attribute, and read the raw reparse data from that (you can find the format "
36017 "documented in various places around the web)."
36018 msgstr ""
36019
36020 #. type: =head3
36021 #: ../src/guestfs.pod:699
36022 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:701
36027 msgid ""
36028 "There are other useful extended attributes that can be read from ntfs-3g "
36029 "filesystems (using L</guestfs_getxattr>).  See:"
36030 msgstr ""
36031
36032 #. type: textblock
36033 #: ../src/guestfs.pod:704
36034 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36035 msgstr ""
36036
36037 #. type: =head2
36038 #: ../src/guestfs.pod:706
36039 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36040 msgstr ""
36041
36042 #. type: textblock
36043 #: ../src/guestfs.pod:708
36044 msgid ""
36045 "Although we don't want to discourage you from using the C API, we will "
36046 "mention here that the same API is also available in other languages."
36047 msgstr ""
36048
36049 #. type: textblock
36050 #: ../src/guestfs.pod:711
36051 msgid ""
36052 "The API is broadly identical in all supported languages.  This means that "
36053 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36054 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36055 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36056 "each language."
36057 msgstr ""
36058
36059 #. type: textblock
36060 #: ../src/guestfs.pod:717
36061 msgid ""
36062 "Error messages are automatically transformed into exceptions if the language "
36063 "supports it."
36064 msgstr ""
36065
36066 #. type: textblock
36067 #: ../src/guestfs.pod:720
36068 msgid ""
36069 "We don't try to \"object orientify\" parts of the API in OO languages, "
36070 "although contributors are welcome to write higher level APIs above what we "
36071 "provide in their favourite languages if they wish."
36072 msgstr ""
36073
36074 #. type: =item
36075 #: ../src/guestfs.pod:726
36076 msgid "B<C++>"
36077 msgstr ""
36078
36079 #. type: textblock
36080 #: ../src/guestfs.pod:728
36081 msgid ""
36082 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36083 "identical to the C API.  C++ classes and exceptions are not used."
36084 msgstr ""
36085
36086 #. type: =item
36087 #: ../src/guestfs.pod:732
36088 msgid "B<C#>"
36089 msgstr ""
36090
36091 #. type: textblock
36092 #: ../src/guestfs.pod:734
36093 msgid ""
36094 "The C# bindings are highly experimental.  Please read the warnings at the "
36095 "top of C<csharp/Libguestfs.cs>."
36096 msgstr ""
36097
36098 #. type: =item
36099 #: ../src/guestfs.pod:737
36100 msgid "B<Erlang>"
36101 msgstr ""
36102
36103 #. type: textblock
36104 #: ../src/guestfs.pod:739
36105 msgid "See L<guestfs-erlang(3)>."
36106 msgstr ""
36107
36108 #. type: =item
36109 #: ../src/guestfs.pod:741
36110 msgid "B<Haskell>"
36111 msgstr ""
36112
36113 #. type: textblock
36114 #: ../src/guestfs.pod:743
36115 msgid ""
36116 "This is the only language binding that is working but incomplete.  Only "
36117 "calls which return simple integers have been bound in Haskell, and we are "
36118 "looking for help to complete this binding."
36119 msgstr ""
36120
36121 #. type: =item
36122 #: ../src/guestfs.pod:747
36123 msgid "B<Java>"
36124 msgstr ""
36125
36126 #. type: textblock
36127 #: ../src/guestfs.pod:749
36128 msgid ""
36129 "Full documentation is contained in the Javadoc which is distributed with "
36130 "libguestfs.  For examples, see L<guestfs-java(3)>."
36131 msgstr ""
36132
36133 #. type: =item
36134 #: ../src/guestfs.pod:752
36135 msgid "B<OCaml>"
36136 msgstr ""
36137
36138 #. type: textblock
36139 #: ../src/guestfs.pod:754
36140 msgid "See L<guestfs-ocaml(3)>."
36141 msgstr ""
36142
36143 #. type: =item
36144 #: ../src/guestfs.pod:756
36145 msgid "B<Perl>"
36146 msgstr ""
36147
36148 #. type: textblock
36149 #: ../src/guestfs.pod:758
36150 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36151 msgstr ""
36152
36153 #. type: =item
36154 #: ../src/guestfs.pod:760
36155 msgid "B<PHP>"
36156 msgstr ""
36157
36158 #. type: textblock
36159 #: ../src/guestfs.pod:762
36160 msgid ""
36161 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36162 "the php-libguestfs package for your distribution."
36163 msgstr ""
36164
36165 #. type: textblock
36166 #: ../src/guestfs.pod:765
36167 msgid "The PHP binding only works correctly on 64 bit machines."
36168 msgstr ""
36169
36170 #. type: =item
36171 #: ../src/guestfs.pod:767
36172 msgid "B<Python>"
36173 msgstr ""
36174
36175 #. type: textblock
36176 #: ../src/guestfs.pod:769
36177 msgid "See L<guestfs-python(3)>."
36178 msgstr ""
36179
36180 #. type: =item
36181 #: ../src/guestfs.pod:771
36182 msgid "B<Ruby>"
36183 msgstr ""
36184
36185 #. type: textblock
36186 #: ../src/guestfs.pod:773
36187 msgid "See L<guestfs-ruby(3)>."
36188 msgstr ""
36189
36190 #. type: =item
36191 #: ../src/guestfs.pod:775
36192 msgid "B<shell scripts>"
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../src/guestfs.pod:777
36197 msgid "See L<guestfish(1)>."
36198 msgstr ""
36199
36200 #. type: =head2
36201 #: ../src/guestfs.pod:781
36202 msgid "LIBGUESTFS GOTCHAS"
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:783
36207 msgid ""
36208 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36209 "system [...] that works in the way it is documented but is counterintuitive "
36210 "and almost invites mistakes.\""
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:787
36215 msgid ""
36216 "Since we developed libguestfs and the associated tools, there are several "
36217 "things we would have designed differently, but are now stuck with for "
36218 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36219 "release, you can expect these to change.  Beware of them."
36220 msgstr ""
36221
36222 #. type: =item
36223 #: ../src/guestfs.pod:795
36224 msgid "Autosync / forgetting to sync."
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../src/guestfs.pod:797
36229 msgid ""
36230 "I<Update:> Autosync is enabled by default for all API users starting from "
36231 "libguestfs 1.5.24.  This section only applies to older versions."
36232 msgstr ""
36233
36234 #. type: textblock
36235 #: ../src/guestfs.pod:800
36236 msgid ""
36237 "When modifying a filesystem from C or another language, you B<must> unmount "
36238 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36239 "libguestfs handle.  You can also call:"
36240 msgstr ""
36241
36242 #. type: verbatim
36243 #: ../src/guestfs.pod:804
36244 #, no-wrap
36245 msgid ""
36246 " guestfs_set_autosync (g, 1);\n"
36247 "\n"
36248 msgstr ""
36249
36250 #. type: textblock
36251 #: ../src/guestfs.pod:806
36252 msgid ""
36253 "to have the unmount/sync done automatically for you when the handle 'g' is "
36254 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
36255 "q.v.)"
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../src/guestfs.pod:810
36260 msgid ""
36261 "If you forget to do this, then it is entirely possible that your changes "
36262 "won't be written out, or will be partially written, or (very rarely) that "
36263 "you'll get disk corruption."
36264 msgstr ""
36265
36266 #. type: textblock
36267 #: ../src/guestfs.pod:814
36268 msgid ""
36269 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36270 "guestfish scripts that forget to sync will work just fine, which can make "
36271 "this very puzzling if you are trying to debug a problem."
36272 msgstr ""
36273
36274 #. type: =item
36275 #: ../src/guestfs.pod:818
36276 msgid "Mount option C<-o sync> should not be the default."
36277 msgstr ""
36278
36279 #. type: textblock
36280 #: ../src/guestfs.pod:820
36281 msgid ""
36282 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36283 "libguestfs 1.13.16.  This section only applies to older versions."
36284 msgstr ""
36285
36286 #. type: textblock
36287 #: ../src/guestfs.pod:823
36288 msgid ""
36289 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36290 "However C<-o sync> does not add any reliability benefit, but does have a "
36291 "very large performance impact."
36292 msgstr ""
36293
36294 #. type: textblock
36295 #: ../src/guestfs.pod:827
36296 msgid ""
36297 "The work around is to use L</guestfs_mount_options> and set the mount "
36298 "options that you actually want to use."
36299 msgstr ""
36300
36301 #. type: =item
36302 #: ../src/guestfs.pod:830
36303 msgid "Read-only should be the default."
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../src/guestfs.pod:832
36308 msgid ""
36309 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36310 "specify I<--rw> if you want to make changes to the image."
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:835
36315 msgid "This would reduce the potential to corrupt live VM images."
36316 msgstr ""
36317
36318 #. type: textblock
36319 #: ../src/guestfs.pod:837
36320 msgid ""
36321 "Note that many filesystems change the disk when you just mount and unmount, "
36322 "even if you didn't perform any writes.  You need to use "
36323 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
36324 msgstr ""
36325
36326 #. type: =item
36327 #: ../src/guestfs.pod:841
36328 msgid "guestfish command line is hard to use."
36329 msgstr ""
36330
36331 #. type: textblock
36332 #: ../src/guestfs.pod:843
36333 msgid ""
36334 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36335 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36336 "exist, so it fails.  In earlier versions of guestfish the error message was "
36337 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36338 "we should have used C<guestfish -c command> to run commands."
36339 msgstr ""
36340
36341 #. type: =item
36342 #: ../src/guestfs.pod:850
36343 msgid "guestfish megabyte modifiers don't work right on all commands"
36344 msgstr ""
36345
36346 #. type: textblock
36347 #: ../src/guestfs.pod:852
36348 msgid ""
36349 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36350 "other modifiers).  What guestfish actually does is to multiply the number "
36351 "part by the modifier part and pass the result to the C API.  However this "
36352 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36353 "expecting some other unit (eg. megabytes)."
36354 msgstr ""
36355
36356 #. type: textblock
36357 #: ../src/guestfs.pod:859
36358 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36359 msgstr ""
36360
36361 #. type: verbatim
36362 #: ../src/guestfs.pod:861
36363 #, no-wrap
36364 msgid ""
36365 " lvcreate LV VG 100M\n"
36366 "\n"
36367 msgstr ""
36368
36369 #. type: textblock
36370 #: ../src/guestfs.pod:863
36371 msgid ""
36372 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36373 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36374 "megabytes * megabytes) logical volume.  The error message you get from this "
36375 "is also a little obscure."
36376 msgstr ""
36377
36378 #. type: textblock
36379 #: ../src/guestfs.pod:868
36380 msgid ""
36381 "This could be fixed in the generator by specially marking parameters and "
36382 "return values which take bytes or other units."
36383 msgstr ""
36384
36385 #. type: =item
36386 #: ../src/guestfs.pod:871
36387 msgid "Ambiguity between devices and paths"
36388 msgstr ""
36389
36390 #. type: textblock
36391 #: ../src/guestfs.pod:873
36392 msgid ""
36393 "There is a subtle ambiguity in the API between a device name "
36394 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
36395 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:878
36400 msgid ""
36401 "In the current API we usually resolve this ambiguity by having two separate "
36402 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36403 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36404 "detecting if the path supplied begins with C</dev/>."
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:884
36409 msgid ""
36410 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36411 "make paths/devices into structured names.  One way to do this would be to "
36412 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36413 "aspect of grub.  Another way would be to use a structured type, equivalent "
36414 "to this OCaml type:"
36415 msgstr ""
36416
36417 #. type: verbatim
36418 #: ../src/guestfs.pod:890
36419 #, no-wrap
36420 msgid ""
36421 " type path = Path of string | Device of int | Partition of int * int\n"
36422 "\n"
36423 msgstr ""
36424
36425 #. type: textblock
36426 #: ../src/guestfs.pod:892
36427 msgid "which would allow you to pass arguments like:"
36428 msgstr ""
36429
36430 #. type: verbatim
36431 #: ../src/guestfs.pod:894
36432 #, no-wrap
36433 msgid ""
36434 " Path \"/foo/bar\"\n"
36435 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36436 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36437 " Path \"/dev/sdb2\"    (* not a device *)\n"
36438 "\n"
36439 msgstr ""
36440
36441 #. type: textblock
36442 #: ../src/guestfs.pod:899
36443 msgid ""
36444 "As you can see there are still problems to resolve even with this "
36445 "representation.  Also consider how it might work in guestfish."
36446 msgstr ""
36447
36448 #. type: =head2
36449 #: ../src/guestfs.pod:904
36450 msgid "KEYS AND PASSPHRASES"
36451 msgstr ""
36452
36453 #. type: textblock
36454 #: ../src/guestfs.pod:906
36455 msgid ""
36456 "Certain libguestfs calls take a parameter that contains sensitive key "
36457 "material, passed in as a C string."
36458 msgstr ""
36459
36460 #. type: textblock
36461 #: ../src/guestfs.pod:909
36462 msgid ""
36463 "In the future we would hope to change the libguestfs implementation so that "
36464 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36465 "swap.  However this is I<not> done at the moment, because of the complexity "
36466 "of such an implementation."
36467 msgstr ""
36468
36469 #. type: textblock
36470 #: ../src/guestfs.pod:914
36471 msgid ""
36472 "Therefore you should be aware that any key parameter you pass to libguestfs "
36473 "might end up being written out to the swap partition.  If this is a concern, "
36474 "scrub the swap partition or don't use libguestfs on encrypted devices."
36475 msgstr ""
36476
36477 #. type: =head2
36478 #: ../src/guestfs.pod:919
36479 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:921
36484 msgid ""
36485 "All high-level libguestfs actions are synchronous.  If you want to use "
36486 "libguestfs asynchronously then you must create a thread."
36487 msgstr ""
36488
36489 #. type: textblock
36490 #: ../src/guestfs.pod:924
36491 msgid ""
36492 "Only use the handle from a single thread.  Either use the handle exclusively "
36493 "from one thread, or provide your own mutex so that two threads cannot issue "
36494 "calls on the same handle at the same time."
36495 msgstr ""
36496
36497 #. type: textblock
36498 #: ../src/guestfs.pod:928
36499 msgid ""
36500 "See the graphical program guestfs-browser for one possible architecture for "
36501 "multithreaded programs using libvirt and libguestfs."
36502 msgstr ""
36503
36504 #. type: =head2
36505 #: ../src/guestfs.pod:931
36506 msgid "PATH"
36507 msgstr ""
36508
36509 #. type: textblock
36510 #: ../src/guestfs.pod:933
36511 msgid ""
36512 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36513 "internal path."
36514 msgstr ""
36515
36516 #. type: textblock
36517 #: ../src/guestfs.pod:936
36518 msgid ""
36519 "By default it looks for these in the directory C<$libdir/guestfs> "
36520 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36521 msgstr ""
36522
36523 #. type: textblock
36524 #: ../src/guestfs.pod:939
36525 msgid ""
36526 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36527 "to change the directories that libguestfs will search in.  The value is a "
36528 "colon-separated list of paths.  The current directory is I<not> searched "
36529 "unless the path contains an empty element or C<.>.  For example "
36530 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36531 "then C</usr/lib/guestfs>."
36532 msgstr ""
36533
36534 #. type: =head2
36535 #: ../src/guestfs.pod:946
36536 msgid "QEMU WRAPPERS"
36537 msgstr ""
36538
36539 #. type: textblock
36540 #: ../src/guestfs.pod:948
36541 msgid ""
36542 "If you want to compile your own qemu, run qemu from a non-standard location, "
36543 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36544 "around qemu."
36545 msgstr ""
36546
36547 #. type: textblock
36548 #: ../src/guestfs.pod:952
36549 msgid ""
36550 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36551 "last command in the shell script (so that qemu replaces the shell and "
36552 "becomes the direct child of the libguestfs-using program).  If you don't do "
36553 "this, then the qemu process won't be cleaned up correctly."
36554 msgstr ""
36555
36556 #. type: textblock
36557 #: ../src/guestfs.pod:957
36558 msgid ""
36559 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36560 "source:"
36561 msgstr ""
36562
36563 #. type: verbatim
36564 #: ../src/guestfs.pod:960
36565 #, no-wrap
36566 msgid ""
36567 " #!/bin/sh -\n"
36568 " qemudir=/home/rjones/d/qemu\n"
36569 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
36570 "\"$@\"\n"
36571 "\n"
36572 msgstr ""
36573
36574 #. type: textblock
36575 #: ../src/guestfs.pod:964
36576 msgid ""
36577 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36578 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36579 "example:"
36580 msgstr ""
36581
36582 #. type: verbatim
36583 #: ../src/guestfs.pod:968
36584 #, no-wrap
36585 msgid ""
36586 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36587 "\n"
36588 msgstr ""
36589
36590 #. type: textblock
36591 #: ../src/guestfs.pod:970
36592 msgid ""
36593 "Note that libguestfs also calls qemu with the -help and -version options in "
36594 "order to determine features."
36595 msgstr ""
36596
36597 #. type: textblock
36598 #: ../src/guestfs.pod:973
36599 msgid ""
36600 "Wrappers can also be used to edit the options passed to qemu.  In the "
36601 "following example, the C<-machine ...> option (C<-machine> and the following "
36602 "argument) are removed from the command line and replaced with C<-machine "
36603 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
36604 "right one to remove, putting the remaining options into the C<args> array."
36605 msgstr ""
36606
36607 #. type: verbatim
36608 #: ../src/guestfs.pod:982
36609 #, no-wrap
36610 msgid ""
36611 " i=0\n"
36612 " while [ $# -gt 0 ]; do\n"
36613 "     case \"$1\" in\n"
36614 "     -machine)\n"
36615 "         shift 2;;\n"
36616 "     *)\n"
36617 "         args[i]=\"$1\"\n"
36618 "         (( i++ ))\n"
36619 "         shift ;;\n"
36620 "     esac\n"
36621 " done\n"
36622 " \n"
36623 msgstr ""
36624
36625 #. type: verbatim
36626 #: ../src/guestfs.pod:994
36627 #, no-wrap
36628 msgid ""
36629 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36630 "\n"
36631 msgstr ""
36632
36633 #. type: =head2
36634 #: ../src/guestfs.pod:996
36635 msgid "ATTACHING TO RUNNING DAEMONS"
36636 msgstr ""
36637
36638 #. type: textblock
36639 #: ../src/guestfs.pod:998
36640 msgid ""
36641 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36642 "babies.  Use with caution."
36643 msgstr ""
36644
36645 #. type: textblock
36646 #: ../src/guestfs.pod:1001
36647 msgid ""
36648 "I<Note (2):> This section explains how to attach to a running daemon from a "
36649 "low level perspective.  For most users, simply using virt tools such as "
36650 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36651 msgstr ""
36652
36653 #. type: =head3
36654 #: ../src/guestfs.pod:1005
36655 msgid "Using guestfs_set_attach_method"
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:1007
36660 msgid ""
36661 "By calling L</guestfs_set_attach_method> you can change how the library "
36662 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
36663 "L</ARCHITECTURE> for some background)."
36664 msgstr ""
36665
36666 #. type: textblock
36667 #: ../src/guestfs.pod:1011
36668 msgid ""
36669 "The normal attach method is C<appliance>, where a small appliance is created "
36670 "containing the daemon, and then the library connects to this."
36671 msgstr ""
36672
36673 #. type: textblock
36674 #: ../src/guestfs.pod:1014
36675 msgid ""
36676 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36677 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36678 "daemon over the Unix domain socket."
36679 msgstr ""
36680
36681 #. type: textblock
36682 #: ../src/guestfs.pod:1018
36683 msgid ""
36684 "The normal use for this is to connect to a running virtual machine that "
36685 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36686 "files inside the live virtual machine."
36687 msgstr ""
36688
36689 #. type: =head3
36690 #: ../src/guestfs.pod:1022
36691 msgid "Using guestfs_add_domain with live flag"
36692 msgstr ""
36693
36694 #. type: textblock
36695 #: ../src/guestfs.pod:1024
36696 msgid ""
36697 "L</guestfs_add_domain> provides some help for getting the correct attach "
36698 "method.  If you pass the C<live> option to this function, then (if the "
36699 "virtual machine is running) it will examine the libvirt XML looking for a "
36700 "virtio-serial channel to connect to:"
36701 msgstr ""
36702
36703 #. type: verbatim
36704 #: ../src/guestfs.pod:1030
36705 #, no-wrap
36706 msgid ""
36707 " <domain>\n"
36708 "   ...\n"
36709 "   <devices>\n"
36710 "     ...\n"
36711 "     <channel type='unix'>\n"
36712 "       <source mode='bind' path='/path/to/socket'/>\n"
36713 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36714 "     </channel>\n"
36715 "     ...\n"
36716 "   </devices>\n"
36717 " </domain>\n"
36718 "\n"
36719 msgstr ""
36720
36721 #. type: textblock
36722 #: ../src/guestfs.pod:1042
36723 msgid ""
36724 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36725 "method to C<unix:/path/to/socket>."
36726 msgstr ""
36727
36728 #. type: textblock
36729 #: ../src/guestfs.pod:1045
36730 msgid ""
36731 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36732 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36733 "to attach to and modify live virtual machines."
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:1049
36738 msgid ""
36739 "The virtual machine needs to have been set up beforehand so that it has the "
36740 "virtio-serial channel and so that guestfsd is running inside it."
36741 msgstr ""
36742
36743 #. type: =head2
36744 #: ../src/guestfs.pod:1053
36745 msgid "ABI GUARANTEE"
36746 msgstr ""
36747
36748 #. type: textblock
36749 #: ../src/guestfs.pod:1055
36750 msgid ""
36751 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36752 "actions as outlined in this section.  Although we will deprecate some "
36753 "actions, for example if they get replaced by newer calls, we will keep the "
36754 "old actions forever.  This allows you the developer to program in confidence "
36755 "against the libguestfs API."
36756 msgstr ""
36757
36758 #. type: =head2
36759 #: ../src/guestfs.pod:1061
36760 msgid "BLOCK DEVICE NAMING"
36761 msgstr ""
36762
36763 #. type: textblock
36764 #: ../src/guestfs.pod:1063
36765 msgid ""
36766 "In the kernel there is now quite a profusion of schemata for naming block "
36767 "devices (in this context, by I<block device> I mean a physical or virtual "
36768 "hard drive).  The original Linux IDE driver used names starting with "
36769 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
36770 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
36771 "replacement for the old IDE driver (particularly for SATA devices) those "
36772 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
36773 "machines with paravirtualized drivers.  This has created several different "
36774 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
36775 "Xen PV disks."
36776 msgstr ""
36777
36778 #. type: textblock
36779 #: ../src/guestfs.pod:1075
36780 msgid ""
36781 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36782 "Linux kernel to access block devices.  We can run a variety of appliances "
36783 "based on a variety of Linux kernels."
36784 msgstr ""
36785
36786 #. type: textblock
36787 #: ../src/guestfs.pod:1079
36788 msgid ""
36789 "This causes a problem for libguestfs because many API calls use device or "
36790 "partition names.  Working scripts and the recipe (example) scripts that we "
36791 "make available over the internet could fail if the naming scheme changes."
36792 msgstr ""
36793
36794 #. type: textblock
36795 #: ../src/guestfs.pod:1084
36796 msgid ""
36797 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36798 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36799 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36800 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../src/guestfs.pod:1090
36805 msgid ""
36806 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36807 "L</guestfs_list_partitions> and similar calls return the true names of the "
36808 "devices and partitions as known to the appliance."
36809 msgstr ""
36810
36811 #. type: =head3
36812 #: ../src/guestfs.pod:1095
36813 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:1097
36818 msgid ""
36819 "Usually this translation is transparent.  However in some (very rare)  cases "
36820 "you may need to know the exact algorithm.  Such cases include where you use "
36821 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
36822 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
36823 "devices."
36824 msgstr ""
36825
36826 #. type: textblock
36827 #: ../src/guestfs.pod:1103
36828 msgid ""
36829 "The algorithm is applied only to I<parameters> which are known to be either "
36830 "device or partition names.  Return values from functions such as "
36831 "L</guestfs_list_devices> are never changed."
36832 msgstr ""
36833
36834 #. type: textblock
36835 #: ../src/guestfs.pod:1111
36836 msgid "Is the string a parameter which is a device or partition name?"
36837 msgstr ""
36838
36839 #. type: textblock
36840 #: ../src/guestfs.pod:1115
36841 msgid "Does the string begin with C</dev/sd>?"
36842 msgstr ""
36843
36844 #. type: textblock
36845 #: ../src/guestfs.pod:1119
36846 msgid ""
36847 "Does the named device exist? If so, we use that device.  However if I<not> "
36848 "then we continue with this algorithm."
36849 msgstr ""
36850
36851 #. type: textblock
36852 #: ../src/guestfs.pod:1124
36853 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36854 msgstr ""
36855
36856 #. type: textblock
36857 #: ../src/guestfs.pod:1126
36858 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36859 msgstr ""
36860
36861 #. type: textblock
36862 #: ../src/guestfs.pod:1128
36863 msgid "If that named device exists, use it.  If not, continue."
36864 msgstr ""
36865
36866 #. type: textblock
36867 #: ../src/guestfs.pod:1132
36868 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../src/guestfs.pod:1134
36873 msgid "If that named device exists, use it.  If not, return an error."
36874 msgstr ""
36875
36876 #. type: =head3
36877 #: ../src/guestfs.pod:1138
36878 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:1140
36883 msgid ""
36884 "Although the standard naming scheme and automatic translation is useful for "
36885 "simple programs and guestfish scripts, for larger programs it is best not to "
36886 "rely on this mechanism."
36887 msgstr ""
36888
36889 #. type: textblock
36890 #: ../src/guestfs.pod:1144
36891 msgid ""
36892 "Where possible for maximum future portability programs using libguestfs "
36893 "should use these future-proof techniques:"
36894 msgstr ""
36895
36896 #. type: textblock
36897 #: ../src/guestfs.pod:1151
36898 msgid ""
36899 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36900 "device names, and then use those names directly."
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../src/guestfs.pod:1154
36905 msgid "Since those device names exist by definition, they will never be translated."
36906 msgstr ""
36907
36908 #. type: textblock
36909 #: ../src/guestfs.pod:1159
36910 msgid ""
36911 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36912 "filesystem labels."
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:1166
36917 msgid ""
36918 "This section discusses security implications of using libguestfs, "
36919 "particularly with untrusted or malicious guests or disk images."
36920 msgstr ""
36921
36922 #. type: =head2
36923 #: ../src/guestfs.pod:1169
36924 msgid "GENERAL SECURITY CONSIDERATIONS"
36925 msgstr ""
36926
36927 #. type: textblock
36928 #: ../src/guestfs.pod:1171
36929 msgid ""
36930 "Be careful with any files or data that you download from a guest (by "
36931 "\"download\" we mean not just the L</guestfs_download> command but any "
36932 "command that reads files, filenames, directories or anything else from a "
36933 "disk image).  An attacker could manipulate the data to fool your program "
36934 "into doing the wrong thing.  Consider cases such as:"
36935 msgstr ""
36936
36937 #. type: textblock
36938 #: ../src/guestfs.pod:1181
36939 msgid "the data (file etc) not being present"
36940 msgstr ""
36941
36942 #. type: textblock
36943 #: ../src/guestfs.pod:1185
36944 msgid "being present but empty"
36945 msgstr ""
36946
36947 #. type: textblock
36948 #: ../src/guestfs.pod:1189
36949 msgid "being much larger than normal"
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../src/guestfs.pod:1193
36954 msgid "containing arbitrary 8 bit data"
36955 msgstr ""
36956
36957 #. type: textblock
36958 #: ../src/guestfs.pod:1197
36959 msgid "being in an unexpected character encoding"
36960 msgstr ""
36961
36962 #. type: textblock
36963 #: ../src/guestfs.pod:1201
36964 msgid "containing homoglyphs."
36965 msgstr ""
36966
36967 #. type: =head2
36968 #: ../src/guestfs.pod:1205
36969 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36970 msgstr ""
36971
36972 #. type: textblock
36973 #: ../src/guestfs.pod:1207
36974 msgid ""
36975 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36976 "(VFS) module can sometimes be escalated into exploits by deliberately "
36977 "creating a malicious, malformed filesystem.  These exploits are very severe "
36978 "for two reasons.  Firstly there are very many filesystem drivers in the "
36979 "kernel, and many of them are infrequently used and not much developer "
36980 "attention has been paid to the code.  Linux userspace helps potential "
36981 "crackers by detecting the filesystem type and automatically choosing the "
36982 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36983 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36984 "exploit (worse in some ways), giving immediate and total access to the "
36985 "system right down to the hardware level."
36986 msgstr ""
36987
36988 #. type: textblock
36989 #: ../src/guestfs.pod:1220
36990 msgid ""
36991 "That explains why you should never mount a filesystem from an untrusted "
36992 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36993 "inside a qemu virtual machine, usually running as a non-root user.  The "
36994 "attacker would need to write a filesystem which first exploited the kernel, "
36995 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36996 "the libguestfs protocol, and finally to be as serious as the host kernel "
36997 "exploit it would need to escalate its privileges to root.  This multi-step "
36998 "escalation, performed by a static piece of data, is thought to be extremely "
36999 "hard to do, although we never say 'never' about security issues."
37000 msgstr ""
37001
37002 #. type: textblock
37003 #: ../src/guestfs.pod:1231
37004 msgid ""
37005 "In any case callers can reduce the attack surface by forcing the filesystem "
37006 "type when mounting (use L</guestfs_mount_vfs>)."
37007 msgstr ""
37008
37009 #. type: =head2
37010 #: ../src/guestfs.pod:1234
37011 msgid "PROTOCOL SECURITY"
37012 msgstr ""
37013
37014 #. type: textblock
37015 #: ../src/guestfs.pod:1236
37016 msgid ""
37017 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37018 "defined upper message size.  However a program that uses libguestfs must "
37019 "also take care - for example you can write a program that downloads a binary "
37020 "from a disk image and executes it locally, and no amount of protocol "
37021 "security will save you from the consequences."
37022 msgstr ""
37023
37024 #. type: =head2
37025 #: ../src/guestfs.pod:1242
37026 msgid "INSPECTION SECURITY"
37027 msgstr ""
37028
37029 #. type: textblock
37030 #: ../src/guestfs.pod:1244
37031 msgid ""
37032 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37033 "directly from the guest, and these could contain any 8 bit data.  Callers "
37034 "should be careful to escape these before printing them to a structured file "
37035 "(for example, use HTML escaping if creating a web page)."
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../src/guestfs.pod:1250
37040 msgid ""
37041 "Guest configuration may be altered in unusual ways by the administrator of "
37042 "the virtual machine, and may not reflect reality (particularly for untrusted "
37043 "or actively malicious guests).  For example we parse the hostname from "
37044 "configuration files like C</etc/sysconfig/network> that we find in the "
37045 "guest, but the guest administrator can easily manipulate these files to "
37046 "provide the wrong hostname."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:1258
37051 msgid ""
37052 "The inspection API parses guest configuration using two external libraries: "
37053 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37054 "designed to be robust in the face of malicious data, although denial of "
37055 "service attacks are still possible, for example with oversized configuration "
37056 "files."
37057 msgstr ""
37058
37059 #. type: =head2
37060 #: ../src/guestfs.pod:1264
37061 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37062 msgstr ""
37063
37064 #. type: textblock
37065 #: ../src/guestfs.pod:1266
37066 msgid ""
37067 "Be very cautious about running commands from the guest.  By running a "
37068 "command in the guest, you are giving CPU time to a binary that you do not "
37069 "control, under the same user account as the library, albeit wrapped in qemu "
37070 "virtualization.  More information and alternatives can be found in the "
37071 "section L</RUNNING COMMANDS>."
37072 msgstr ""
37073
37074 #. type: =head2
37075 #: ../src/guestfs.pod:1272
37076 msgid "CVE-2010-3851"
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../src/guestfs.pod:1274
37081 msgid "https://bugzilla.redhat.com/642934"
37082 msgstr ""
37083
37084 #. type: textblock
37085 #: ../src/guestfs.pod:1276
37086 msgid ""
37087 "This security bug concerns the automatic disk format detection that qemu "
37088 "does on disk images."
37089 msgstr ""
37090
37091 #. type: textblock
37092 #: ../src/guestfs.pod:1279
37093 msgid ""
37094 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37095 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37096 "for one of the known headers, and if none is found then assuming the disk "
37097 "image must be raw."
37098 msgstr ""
37099
37100 #. type: textblock
37101 #: ../src/guestfs.pod:1284
37102 msgid ""
37103 "This allows a guest which has been given a raw disk image to write some "
37104 "other header.  At next boot (or when the disk image is accessed by "
37105 "libguestfs) qemu would do autodetection and think the disk image format was, "
37106 "say, qcow2 based on the header written by the guest."
37107 msgstr ""
37108
37109 #. type: textblock
37110 #: ../src/guestfs.pod:1289
37111 msgid ""
37112 "This in itself would not be a problem, but qcow2 offers many features, one "
37113 "of which is to allow a disk image to refer to another image (called the "
37114 "\"backing disk\").  It does this by placing the path to the backing disk "
37115 "into the qcow2 header.  This path is not validated and could point to any "
37116 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37117 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37118 "control of the attacker."
37119 msgstr ""
37120
37121 #. type: textblock
37122 #: ../src/guestfs.pod:1297
37123 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
37124 msgstr ""
37125
37126 #. type: textblock
37127 #: ../src/guestfs.pod:1304
37128 msgid "You have enabled the network or have opened the disk in write mode."
37129 msgstr ""
37130
37131 #. type: textblock
37132 #: ../src/guestfs.pod:1308
37133 msgid ""
37134 "You are also running untrusted code from the guest (see L</RUNNING "
37135 "COMMANDS>)."
37136 msgstr ""
37137
37138 #. type: textblock
37139 #: ../src/guestfs.pod:1313
37140 msgid ""
37141 "The way to avoid this is to specify the expected disk format when adding "
37142 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37143 "should always do this if the disk is raw format, and it's a good idea for "
37144 "other cases too."
37145 msgstr ""
37146
37147 #. type: textblock
37148 #: ../src/guestfs.pod:1318
37149 msgid ""
37150 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37151 "format is fetched from libvirt and passed through."
37152 msgstr ""
37153
37154 #. type: textblock
37155 #: ../src/guestfs.pod:1321
37156 msgid ""
37157 "For libguestfs tools, use the I<--format> command line parameter as "
37158 "appropriate."
37159 msgstr ""
37160
37161 #. type: =head1
37162 #: ../src/guestfs.pod:1324
37163 msgid "CONNECTION MANAGEMENT"
37164 msgstr ""
37165
37166 #. type: =head2
37167 #: ../src/guestfs.pod:1326
37168 msgid "guestfs_h *"
37169 msgstr ""
37170
37171 #. type: textblock
37172 #: ../src/guestfs.pod:1328
37173 msgid ""
37174 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37175 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37176 "handle and release all resources used."
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:1332
37181 msgid ""
37182 "For information on using multiple handles and threads, see the section "
37183 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37184 msgstr ""
37185
37186 #. type: =head2
37187 #: ../src/guestfs.pod:1335
37188 msgid "guestfs_create"
37189 msgstr ""
37190
37191 #. type: verbatim
37192 #: ../src/guestfs.pod:1337
37193 #, no-wrap
37194 msgid ""
37195 " guestfs_h *guestfs_create (void);\n"
37196 "\n"
37197 msgstr ""
37198
37199 #. type: textblock
37200 #: ../src/guestfs.pod:1339
37201 msgid "Create a connection handle."
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:1341
37206 msgid ""
37207 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37208 "NULL."
37209 msgstr ""
37210
37211 #. type: textblock
37212 #: ../src/guestfs.pod:1344
37213 msgid ""
37214 "You have to \"configure\" the handle after creating it.  This includes "
37215 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37216 "handle at least once."
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:1348
37221 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37222 msgstr ""
37223
37224 #. type: textblock
37225 #: ../src/guestfs.pod:1350
37226 msgid ""
37227 "You may also want to configure error handling for the handle.  See the "
37228 "L</ERROR HANDLING> section below."
37229 msgstr ""
37230
37231 #. type: =head2
37232 #: ../src/guestfs.pod:1353
37233 msgid "guestfs_close"
37234 msgstr ""
37235
37236 #. type: verbatim
37237 #: ../src/guestfs.pod:1355
37238 #, no-wrap
37239 msgid ""
37240 " void guestfs_close (guestfs_h *g);\n"
37241 "\n"
37242 msgstr ""
37243
37244 #. type: textblock
37245 #: ../src/guestfs.pod:1357
37246 msgid "This closes the connection handle and frees up all resources used."
37247 msgstr ""
37248
37249 #. type: textblock
37250 #: ../src/guestfs.pod:1359
37251 msgid ""
37252 "If autosync was set on the handle and the handle was launched, then this "
37253 "implicitly calls various functions to unmount filesystems and sync the "
37254 "disk.  See L</guestfs_set_autosync> for more details."
37255 msgstr ""
37256
37257 #. type: textblock
37258 #: ../src/guestfs.pod:1363
37259 msgid "If a close callback was set on the handle, then it is called."
37260 msgstr ""
37261
37262 #. type: =head1
37263 #: ../src/guestfs.pod:1365
37264 msgid "ERROR HANDLING"
37265 msgstr ""
37266
37267 #. type: textblock
37268 #: ../src/guestfs.pod:1367
37269 msgid ""
37270 "API functions can return errors.  For example, almost all functions that "
37271 "return C<int> will return C<-1> to indicate an error."
37272 msgstr ""
37273
37274 #. type: textblock
37275 #: ../src/guestfs.pod:1370
37276 msgid ""
37277 "Additional information is available for errors: an error message string and "
37278 "optionally an error number (errno) if the thing that failed was a system "
37279 "call."
37280 msgstr ""
37281
37282 #. type: textblock
37283 #: ../src/guestfs.pod:1374
37284 msgid ""
37285 "You can get at the additional information about the last error on the handle "
37286 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37287 "up an error handler with L</guestfs_set_error_handler>."
37288 msgstr ""
37289
37290 #. type: textblock
37291 #: ../src/guestfs.pod:1379
37292 msgid ""
37293 "When the handle is created, a default error handler is installed which "
37294 "prints the error message string to C<stderr>.  For small short-running "
37295 "command line programs it is sufficient to do:"
37296 msgstr ""
37297
37298 #. type: verbatim
37299 #: ../src/guestfs.pod:1383
37300 #, no-wrap
37301 msgid ""
37302 " if (guestfs_launch (g) == -1)\n"
37303 "   exit (EXIT_FAILURE);\n"
37304 "\n"
37305 msgstr ""
37306
37307 #. type: textblock
37308 #: ../src/guestfs.pod:1386
37309 msgid ""
37310 "since the default error handler will ensure that an error message has been "
37311 "printed to C<stderr> before the program exits."
37312 msgstr ""
37313
37314 #. type: textblock
37315 #: ../src/guestfs.pod:1389
37316 msgid ""
37317 "For other programs the caller will almost certainly want to install an "
37318 "alternate error handler or do error handling in-line like this:"
37319 msgstr ""
37320
37321 #. type: verbatim
37322 #: ../src/guestfs.pod:1392
37323 #, no-wrap
37324 msgid ""
37325 " /* This disables the default behaviour of printing errors\n"
37326 "    on stderr. */\n"
37327 " guestfs_set_error_handler (g, NULL, NULL);\n"
37328 " \n"
37329 msgstr ""
37330
37331 #. type: verbatim
37332 #: ../src/guestfs.pod:1396
37333 #, no-wrap
37334 msgid ""
37335 " if (guestfs_launch (g) == -1) {\n"
37336 "   /* Examine the error message and print it etc. */\n"
37337 "   char *msg = guestfs_last_error (g);\n"
37338 "   int errnum = guestfs_last_errno (g);\n"
37339 "   fprintf (stderr, \"%s\", msg);\n"
37340 "   if (errnum != 0)\n"
37341 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37342 "   fprintf (stderr, \"\\n\");\n"
37343 "   /* ... */\n"
37344 " }\n"
37345 "\n"
37346 msgstr ""
37347
37348 #. type: textblock
37349 #: ../src/guestfs.pod:1407
37350 msgid ""
37351 "Out of memory errors are handled differently.  The default action is to call "
37352 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
37353 "L</guestfs_set_out_of_memory_handler>."
37354 msgstr ""
37355
37356 #. type: textblock
37357 #: ../src/guestfs.pod:1411
37358 msgid ""
37359 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37360 "because there is no handle if this happens there is no way to get additional "
37361 "error information.  However L</guestfs_create> is supposed to be a "
37362 "lightweight operation which can only fail because of insufficient memory (it "
37363 "returns NULL in this case)."
37364 msgstr ""
37365
37366 #. type: =head2
37367 #: ../src/guestfs.pod:1417
37368 msgid "guestfs_last_error"
37369 msgstr ""
37370
37371 #. type: verbatim
37372 #: ../src/guestfs.pod:1419
37373 #, no-wrap
37374 msgid ""
37375 " const char *guestfs_last_error (guestfs_h *g);\n"
37376 "\n"
37377 msgstr ""
37378
37379 #. type: textblock
37380 #: ../src/guestfs.pod:1421
37381 msgid ""
37382 "This returns the last error message that happened on C<g>.  If there has not "
37383 "been an error since the handle was created, then this returns C<NULL>."
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:1425
37388 msgid ""
37389 "The lifetime of the returned string is until the next error occurs, or "
37390 "L</guestfs_close> is called."
37391 msgstr ""
37392
37393 #. type: =head2
37394 #: ../src/guestfs.pod:1428
37395 msgid "guestfs_last_errno"
37396 msgstr ""
37397
37398 #. type: verbatim
37399 #: ../src/guestfs.pod:1430
37400 #, no-wrap
37401 msgid ""
37402 " int guestfs_last_errno (guestfs_h *g);\n"
37403 "\n"
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../src/guestfs.pod:1432
37408 msgid "This returns the last error number (errno) that happened on C<g>."
37409 msgstr ""
37410
37411 #. type: textblock
37412 #: ../src/guestfs.pod:1434
37413 msgid "If successful, an errno integer not equal to zero is returned."
37414 msgstr ""
37415
37416 #. type: textblock
37417 #: ../src/guestfs.pod:1436
37418 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
37419 msgstr ""
37420
37421 #. type: textblock
37422 #: ../src/guestfs.pod:1443
37423 msgid "There has not been any error on the handle."
37424 msgstr ""
37425
37426 #. type: textblock
37427 #: ../src/guestfs.pod:1447
37428 msgid ""
37429 "There has been an error but the errno was meaningless.  This corresponds to "
37430 "the case where the error did not come from a failed system call, but for "
37431 "some other reason."
37432 msgstr ""
37433
37434 #. type: textblock
37435 #: ../src/guestfs.pod:1453
37436 msgid ""
37437 "There was an error from a failed system call, but for some reason the errno "
37438 "was not captured and returned.  This usually indicates a bug in libguestfs."
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:1459
37443 msgid ""
37444 "Libguestfs tries to convert the errno from inside the applicance into a "
37445 "corresponding errno for the caller (not entirely trivial: the appliance "
37446 "might be running a completely different operating system from the library "
37447 "and error numbers are not standardized across Un*xen).  If this could not be "
37448 "done, then the error is translated to C<EINVAL>.  In practice this should "
37449 "only happen in very rare circumstances."
37450 msgstr ""
37451
37452 #. type: =head2
37453 #: ../src/guestfs.pod:1467
37454 msgid "guestfs_set_error_handler"
37455 msgstr ""
37456
37457 #. type: verbatim
37458 #: ../src/guestfs.pod:1469
37459 #, no-wrap
37460 msgid ""
37461 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37462 "                                           void *opaque,\n"
37463 "                                           const char *msg);\n"
37464 " void guestfs_set_error_handler (guestfs_h *g,\n"
37465 "                                 guestfs_error_handler_cb cb,\n"
37466 "                                 void *opaque);\n"
37467 "\n"
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../src/guestfs.pod:1476
37472 msgid ""
37473 "The callback C<cb> will be called if there is an error.  The parameters "
37474 "passed to the callback are an opaque data pointer and the error message "
37475 "string."
37476 msgstr ""
37477
37478 #. type: textblock
37479 #: ../src/guestfs.pod:1480
37480 msgid ""
37481 "C<errno> is not passed to the callback.  To get that the callback must call "
37482 "L</guestfs_last_errno>."
37483 msgstr ""
37484
37485 #. type: textblock
37486 #: ../src/guestfs.pod:1483
37487 msgid ""
37488 "Note that the message string C<msg> is freed as soon as the callback "
37489 "function returns, so if you want to stash it somewhere you must make your "
37490 "own copy."
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:1487
37495 msgid "The default handler prints messages on C<stderr>."
37496 msgstr ""
37497
37498 #. type: textblock
37499 #: ../src/guestfs.pod:1489
37500 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37501 msgstr ""
37502
37503 #. type: =head2
37504 #: ../src/guestfs.pod:1491
37505 msgid "guestfs_get_error_handler"
37506 msgstr ""
37507
37508 #. type: verbatim
37509 #: ../src/guestfs.pod:1493
37510 #, no-wrap
37511 msgid ""
37512 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37513 "                                                     void **opaque_rtn);\n"
37514 "\n"
37515 msgstr ""
37516
37517 #. type: textblock
37518 #: ../src/guestfs.pod:1496
37519 msgid "Returns the current error handler callback."
37520 msgstr ""
37521
37522 #. type: =head2
37523 #: ../src/guestfs.pod:1498
37524 msgid "guestfs_set_out_of_memory_handler"
37525 msgstr ""
37526
37527 #. type: verbatim
37528 #: ../src/guestfs.pod:1500
37529 #, no-wrap
37530 msgid ""
37531 " typedef void (*guestfs_abort_cb) (void);\n"
37532 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37533 "                                         guestfs_abort_cb);\n"
37534 "\n"
37535 msgstr ""
37536
37537 #. type: textblock
37538 #: ../src/guestfs.pod:1504
37539 msgid ""
37540 "The callback C<cb> will be called if there is an out of memory situation.  "
37541 "I<Note this callback must not return>."
37542 msgstr ""
37543
37544 #. type: textblock
37545 #: ../src/guestfs.pod:1507
37546 msgid "The default is to call L<abort(3)>."
37547 msgstr ""
37548
37549 #. type: textblock
37550 #: ../src/guestfs.pod:1509
37551 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37552 msgstr ""
37553
37554 #. type: =head2
37555 #: ../src/guestfs.pod:1512
37556 msgid "guestfs_get_out_of_memory_handler"
37557 msgstr ""
37558
37559 #. type: verbatim
37560 #: ../src/guestfs.pod:1514
37561 #, no-wrap
37562 msgid ""
37563 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37564 "\n"
37565 msgstr ""
37566
37567 #. type: textblock
37568 #: ../src/guestfs.pod:1516
37569 msgid "This returns the current out of memory handler."
37570 msgstr ""
37571
37572 #. type: =head1
37573 #: ../src/guestfs.pod:1518
37574 msgid "API CALLS"
37575 msgstr ""
37576
37577 #. type: =head1
37578 #: ../src/guestfs.pod:1522
37579 msgid "STRUCTURES"
37580 msgstr ""
37581
37582 #. type: textblock
37583 #: ../src/guestfs.pod:1524
37584 msgid "@STRUCTS@"
37585 msgstr ""
37586
37587 #. type: =head1
37588 #: ../src/guestfs.pod:1526
37589 msgid "AVAILABILITY"
37590 msgstr ""
37591
37592 #. type: =head2
37593 #: ../src/guestfs.pod:1528
37594 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37595 msgstr ""
37596
37597 #. type: textblock
37598 #: ../src/guestfs.pod:1530
37599 msgid ""
37600 "Using L</guestfs_available> you can test availability of the following "
37601 "groups of functions.  This test queries the appliance to see if the "
37602 "appliance you are currently using supports the functionality."
37603 msgstr ""
37604
37605 #. type: textblock
37606 #: ../src/guestfs.pod:1535
37607 msgid "@AVAILABILITY@"
37608 msgstr ""
37609
37610 #. type: =head2
37611 #: ../src/guestfs.pod:1537
37612 msgid "GUESTFISH supported COMMAND"
37613 msgstr ""
37614
37615 #. type: textblock
37616 #: ../src/guestfs.pod:1539
37617 msgid ""
37618 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37619 "prints out the available groups and whether they are supported by this build "
37620 "of libguestfs.  Note however that you have to do C<run> first."
37621 msgstr ""
37622
37623 #. type: =head2
37624 #: ../src/guestfs.pod:1544
37625 msgid "SINGLE CALLS AT COMPILE TIME"
37626 msgstr ""
37627
37628 #. type: textblock
37629 #: ../src/guestfs.pod:1546
37630 msgid ""
37631 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37632 "function, such as:"
37633 msgstr ""
37634
37635 #. type: verbatim
37636 #: ../src/guestfs.pod:1549
37637 #, no-wrap
37638 msgid ""
37639 " #define LIBGUESTFS_HAVE_DD 1\n"
37640 "\n"
37641 msgstr ""
37642
37643 #. type: textblock
37644 #: ../src/guestfs.pod:1551
37645 msgid "if L</guestfs_dd> is available."
37646 msgstr ""
37647
37648 #. type: textblock
37649 #: ../src/guestfs.pod:1553
37650 msgid ""
37651 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37652 "function is available at compile time, we recommended using build tools such "
37653 "as autoconf or cmake.  For example in autotools you could use:"
37654 msgstr ""
37655
37656 #. type: verbatim
37657 #: ../src/guestfs.pod:1558
37658 #, no-wrap
37659 msgid ""
37660 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37661 " AC_CHECK_FUNCS([guestfs_dd])\n"
37662 "\n"
37663 msgstr ""
37664
37665 #. type: textblock
37666 #: ../src/guestfs.pod:1561
37667 msgid ""
37668 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37669 "in your program."
37670 msgstr ""
37671
37672 #. type: =head2
37673 #: ../src/guestfs.pod:1564
37674 msgid "SINGLE CALLS AT RUN TIME"
37675 msgstr ""
37676
37677 #. type: textblock
37678 #: ../src/guestfs.pod:1566
37679 msgid ""
37680 "Testing at compile time doesn't guarantee that a function really exists in "
37681 "the library.  The reason is that you might be dynamically linked against a "
37682 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37683 "This situation unfortunately results in a segmentation fault, which is a "
37684 "shortcoming of the C dynamic linking system itself."
37685 msgstr ""
37686
37687 #. type: textblock
37688 #: ../src/guestfs.pod:1573
37689 msgid ""
37690 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37691 "in this example program (note that you still need the compile time check as "
37692 "well):"
37693 msgstr ""
37694
37695 #. type: verbatim
37696 #: ../src/guestfs.pod:1577
37697 #, no-wrap
37698 msgid ""
37699 " #include <stdio.h>\n"
37700 " #include <stdlib.h>\n"
37701 " #include <unistd.h>\n"
37702 " #include <dlfcn.h>\n"
37703 " #include <guestfs.h>\n"
37704 " \n"
37705 msgstr ""
37706
37707 #. type: verbatim
37708 #: ../src/guestfs.pod:1583
37709 #, no-wrap
37710 msgid ""
37711 " main ()\n"
37712 " {\n"
37713 " #ifdef LIBGUESTFS_HAVE_DD\n"
37714 "   void *dl;\n"
37715 "   int has_function;\n"
37716 " \n"
37717 msgstr ""
37718
37719 #. type: verbatim
37720 #: ../src/guestfs.pod:1589
37721 #, no-wrap
37722 msgid ""
37723 "   /* Test if the function guestfs_dd is really available. */\n"
37724 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37725 "   if (!dl) {\n"
37726 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37727 "     exit (EXIT_FAILURE);\n"
37728 "   }\n"
37729 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37730 "   dlclose (dl);\n"
37731 " \n"
37732 msgstr ""
37733
37734 #. type: verbatim
37735 #: ../src/guestfs.pod:1598
37736 #, no-wrap
37737 msgid ""
37738 "   if (!has_function)\n"
37739 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37740 "   else {\n"
37741 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37742 "     /* Now it's safe to call\n"
37743 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37744 "     */\n"
37745 "   }\n"
37746 " #else\n"
37747 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37748 " #endif\n"
37749 "  }\n"
37750 "\n"
37751 msgstr ""
37752
37753 #. type: textblock
37754 #: ../src/guestfs.pod:1611
37755 msgid ""
37756 "You may think the above is an awful lot of hassle, and it is.  There are "
37757 "other ways outside of the C linking system to ensure that this kind of "
37758 "incompatibility never arises, such as using package versioning:"
37759 msgstr ""
37760
37761 #. type: verbatim
37762 #: ../src/guestfs.pod:1616
37763 #, no-wrap
37764 msgid ""
37765 " Requires: libguestfs >= 1.0.80\n"
37766 "\n"
37767 msgstr ""
37768
37769 #. type: =head1
37770 #: ../src/guestfs.pod:1618
37771 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37772 msgstr ""
37773
37774 #. type: textblock
37775 #: ../src/guestfs.pod:1620
37776 msgid ""
37777 "A recent feature of the API is the introduction of calls which take optional "
37778 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37779 "takes variable arguments (ie. C<...>), as in this example:"
37780 msgstr ""
37781
37782 #. type: verbatim
37783 #: ../src/guestfs.pod:1625
37784 #, no-wrap
37785 msgid ""
37786 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37787 "\n"
37788 msgstr ""
37789
37790 #. type: textblock
37791 #: ../src/guestfs.pod:1627
37792 msgid ""
37793 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37794 "call with no optional arguments specified:"
37795 msgstr ""
37796
37797 #. type: verbatim
37798 #: ../src/guestfs.pod:1630
37799 #, no-wrap
37800 msgid ""
37801 " guestfs_add_drive_opts (g, filename, -1);\n"
37802 "\n"
37803 msgstr ""
37804
37805 #. type: textblock
37806 #: ../src/guestfs.pod:1632
37807 msgid "With a single optional argument:"
37808 msgstr ""
37809
37810 #. type: verbatim
37811 #: ../src/guestfs.pod:1634
37812 #, no-wrap
37813 msgid ""
37814 " guestfs_add_drive_opts (g, filename,\n"
37815 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37816 "                         -1);\n"
37817 "\n"
37818 msgstr ""
37819
37820 #. type: textblock
37821 #: ../src/guestfs.pod:1638
37822 msgid "With two:"
37823 msgstr ""
37824
37825 #. type: verbatim
37826 #: ../src/guestfs.pod:1640
37827 #, no-wrap
37828 msgid ""
37829 " guestfs_add_drive_opts (g, filename,\n"
37830 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37831 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37832 "                         -1);\n"
37833 "\n"
37834 msgstr ""
37835
37836 #. type: textblock
37837 #: ../src/guestfs.pod:1645
37838 msgid ""
37839 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37840 "happen!"
37841 msgstr ""
37842
37843 #. type: =head2
37844 #: ../src/guestfs.pod:1648
37845 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37846 msgstr ""
37847
37848 #. type: textblock
37849 #: ../src/guestfs.pod:1650
37850 msgid ""
37851 "The second variant has the same name with the suffix C<_va>, which works the "
37852 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37853 "example function, this is declared:"
37854 msgstr ""
37855
37856 #. type: verbatim
37857 #: ../src/guestfs.pod:1654
37858 #, no-wrap
37859 msgid ""
37860 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37861 "                                va_list args);\n"
37862 "\n"
37863 msgstr ""
37864
37865 #. type: =head2
37866 #: ../src/guestfs.pod:1657
37867 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37868 msgstr ""
37869
37870 #. type: textblock
37871 #: ../src/guestfs.pod:1659
37872 msgid ""
37873 "The third variant is useful where you need to construct these calls.  You "
37874 "pass in a structure where you fill in the optional fields.  The structure "
37875 "has a bitmask as the first element which you must set to indicate which "
37876 "fields you have filled in.  For our example function the structure and call "
37877 "are declared:"
37878 msgstr ""
37879
37880 #. type: verbatim
37881 #: ../src/guestfs.pod:1665
37882 #, no-wrap
37883 msgid ""
37884 " struct guestfs_add_drive_opts_argv {\n"
37885 "   uint64_t bitmask;\n"
37886 "   int readonly;\n"
37887 "   const char *format;\n"
37888 "   /* ... */\n"
37889 " };\n"
37890 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37891 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37892 "\n"
37893 msgstr ""
37894
37895 #. type: textblock
37896 #: ../src/guestfs.pod:1674
37897 msgid "You could call it like this:"
37898 msgstr ""
37899
37900 #. type: verbatim
37901 #: ../src/guestfs.pod:1676
37902 #, no-wrap
37903 msgid ""
37904 " struct guestfs_add_drive_opts_argv optargs = {\n"
37905 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37906 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37907 "   .readonly = 1,\n"
37908 "   .format = \"qcow2\"\n"
37909 " };\n"
37910 " \n"
37911 msgstr ""
37912
37913 #. type: verbatim
37914 #: ../src/guestfs.pod:1683
37915 #, no-wrap
37916 msgid ""
37917 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37918 "\n"
37919 msgstr ""
37920
37921 #. type: textblock
37922 #: ../src/guestfs.pod:1691
37923 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37924 msgstr ""
37925
37926 #. type: textblock
37927 #: ../src/guestfs.pod:1696
37928 msgid "You do not need to fill in all fields of the structure."
37929 msgstr ""
37930
37931 #. type: textblock
37932 #: ../src/guestfs.pod:1700
37933 msgid ""
37934 "There must be a one-to-one correspondence between fields of the structure "
37935 "that are filled in, and bits set in the bitmask."
37936 msgstr ""
37937
37938 #. type: =head2
37939 #: ../src/guestfs.pod:1705
37940 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37941 msgstr ""
37942
37943 #. type: textblock
37944 #: ../src/guestfs.pod:1707
37945 msgid ""
37946 "In other languages, optional arguments are expressed in the way that is "
37947 "natural for that language.  We refer you to the language-specific "
37948 "documentation for more details on that."
37949 msgstr ""
37950
37951 #. type: textblock
37952 #: ../src/guestfs.pod:1711
37953 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37954 msgstr ""
37955
37956 #. type: =head2
37957 #: ../src/guestfs.pod:1713
37958 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37959 msgstr ""
37960
37961 #. type: textblock
37962 #: ../src/guestfs.pod:1715
37963 msgid ""
37964 "B<Note:> This section documents the generic event mechanism introduced in "
37965 "libguestfs 1.10, which you should use in new code if possible.  The old "
37966 "functions C<guestfs_set_log_message_callback>, "
37967 "C<guestfs_set_subprocess_quit_callback>, "
37968 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37969 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37970 "page.  Because of the ABI guarantee, the old functions continue to work."
37971 msgstr ""
37972
37973 #. type: textblock
37974 #: ../src/guestfs.pod:1724
37975 msgid ""
37976 "Handles generate events when certain things happen, such as log messages "
37977 "being generated, progress messages during long-running operations, or the "
37978 "handle being closed.  The API calls described below let you register a "
37979 "callback to be called when events happen.  You can register multiple "
37980 "callbacks (for the same, different or overlapping sets of events), and "
37981 "individually remove callbacks.  If callbacks are not removed, then they "
37982 "remain in force until the handle is closed."
37983 msgstr ""
37984
37985 #. type: textblock
37986 #: ../src/guestfs.pod:1732
37987 msgid ""
37988 "In the current implementation, events are only generated synchronously: that "
37989 "means that events (and hence callbacks) can only happen while you are in the "
37990 "middle of making another libguestfs call.  The callback is called in the "
37991 "same thread."
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../src/guestfs.pod:1737
37996 msgid ""
37997 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37998 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37999 msgstr ""
38000
38001 #. type: =head3
38002 #: ../src/guestfs.pod:1741
38003 msgid "CLASSES OF EVENTS"
38004 msgstr ""
38005
38006 #. type: =item
38007 #: ../src/guestfs.pod:1745
38008 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38009 msgstr ""
38010
38011 #. type: textblock
38012 #: ../src/guestfs.pod:1748
38013 msgid ""
38014 "The callback function will be called while the handle is being closed "
38015 "(synchronously from L</guestfs_close>)."
38016 msgstr ""
38017
38018 #. type: textblock
38019 #: ../src/guestfs.pod:1751
38020 msgid ""
38021 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38022 "handles that are open when the program exits.  This means that this callback "
38023 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38024 "problems in higher-level languages (eg. if your HLL interpreter has already "
38025 "been cleaned up by the time this is called, and if your callback then jumps "
38026 "into some HLL function)."
38027 msgstr ""
38028
38029 #. type: textblock
38030 #: ../src/guestfs.pod:1758
38031 msgid ""
38032 "If no callback is registered: the handle is closed without any callback "
38033 "being invoked."
38034 msgstr ""
38035
38036 #. type: =item
38037 #: ../src/guestfs.pod:1761
38038 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38039 msgstr ""
38040
38041 #. type: textblock
38042 #: ../src/guestfs.pod:1764
38043 msgid ""
38044 "The callback function will be called when the child process quits, either "
38045 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38046 "corresponds to a transition from any state to the CONFIG state)."
38047 msgstr ""
38048
38049 #. type: textblock
38050 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38051 msgid "If no callback is registered: the event is ignored."
38052 msgstr ""
38053
38054 #. type: =item
38055 #: ../src/guestfs.pod:1770
38056 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../src/guestfs.pod:1773
38061 msgid ""
38062 "The callback function will be called when the child process becomes ready "
38063 "first time after it has been launched.  (This corresponds to a transition "
38064 "from LAUNCHING to the READY state)."
38065 msgstr ""
38066
38067 #. type: =item
38068 #: ../src/guestfs.pod:1779
38069 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38070 msgstr ""
38071
38072 #. type: textblock
38073 #: ../src/guestfs.pod:1782
38074 msgid ""
38075 "Some long-running operations can generate progress messages.  If this "
38076 "callback is registered, then it will be called each time a progress message "
38077 "is generated (usually two seconds after the operation started, and three "
38078 "times per second thereafter until it completes, although the frequency may "
38079 "change in future versions)."
38080 msgstr ""
38081
38082 #. type: textblock
38083 #: ../src/guestfs.pod:1788
38084 msgid ""
38085 "The callback receives in the payload four unsigned 64 bit numbers which are "
38086 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38087 msgstr ""
38088
38089 #. type: textblock
38090 #: ../src/guestfs.pod:1791
38091 msgid ""
38092 "The units of C<total> are not defined, although for some operations C<total> "
38093 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38094 "or megabytes), and C<position> may be the portion which has been "
38095 "transferred."
38096 msgstr ""
38097
38098 #. type: textblock
38099 #: ../src/guestfs.pod:1796
38100 msgid "The only defined and stable parts of the API are:"
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../src/guestfs.pod:1802
38105 msgid ""
38106 "The callback can display to the user some type of progress bar or indicator "
38107 "which shows the ratio of C<position>:C<total>."
38108 msgstr ""
38109
38110 #. type: textblock
38111 #: ../src/guestfs.pod:1807
38112 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38113 msgstr ""
38114
38115 #. type: textblock
38116 #: ../src/guestfs.pod:1811
38117 msgid ""
38118 "If any progress notification is sent during a call, then a final progress "
38119 "notification is always sent when C<position> = C<total> (I<unless> the call "
38120 "fails with an error)."
38121 msgstr ""
38122
38123 #. type: textblock
38124 #: ../src/guestfs.pod:1815
38125 msgid ""
38126 "This is to simplify caller code, so callers can easily set the progress "
38127 "indicator to \"100%\" at the end of the operation, without requiring special "
38128 "code to detect this case."
38129 msgstr ""
38130
38131 #. type: textblock
38132 #: ../src/guestfs.pod:1821
38133 msgid ""
38134 "For some calls we are unable to estimate the progress of the call, but we "
38135 "can still generate progress messages to indicate activity.  This is known as "
38136 "\"pulse mode\", and is directly supported by certain progress bar "
38137 "implementations (eg. GtkProgressBar)."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:1826
38142 msgid ""
38143 "For these calls, zero or more progress messages are generated with "
38144 "C<position = 0> and C<total = 1>, followed by a final message with "
38145 "C<position = total = 1>."
38146 msgstr ""
38147
38148 #. type: textblock
38149 #: ../src/guestfs.pod:1830
38150 msgid ""
38151 "As noted above, if the call fails with an error then the final message may "
38152 "not be generated."
38153 msgstr ""
38154
38155 #. type: textblock
38156 #: ../src/guestfs.pod:1835
38157 msgid ""
38158 "The callback also receives the procedure number (C<proc_nr>) and serial "
38159 "number (C<serial>) of the call.  These are only useful for debugging "
38160 "protocol issues, and the callback can normally ignore them.  The callback "
38161 "may want to print these numbers in error messages or debugging messages."
38162 msgstr ""
38163
38164 #. type: textblock
38165 #: ../src/guestfs.pod:1841
38166 msgid "If no callback is registered: progress messages are discarded."
38167 msgstr ""
38168
38169 #. type: =item
38170 #: ../src/guestfs.pod:1843
38171 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38172 msgstr ""
38173
38174 #. type: textblock
38175 #: ../src/guestfs.pod:1846
38176 msgid ""
38177 "The callback function is called whenever a log message is generated by qemu, "
38178 "the appliance kernel, guestfsd (daemon), or utility programs."
38179 msgstr ""
38180
38181 #. type: textblock
38182 #: ../src/guestfs.pod:1849
38183 msgid ""
38184 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
38185 "(L</guestfs_launch>) then additional debug messages are generated."
38186 msgstr ""
38187
38188 #. type: textblock
38189 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38190 msgid ""
38191 "If no callback is registered: the messages are discarded unless the verbose "
38192 "flag is set in which case they are sent to stderr.  You can override the "
38193 "printing of verbose messages to stderr by setting up a callback."
38194 msgstr ""
38195
38196 #. type: =item
38197 #: ../src/guestfs.pod:1857
38198 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38199 msgstr ""
38200
38201 #. type: textblock
38202 #: ../src/guestfs.pod:1860
38203 msgid ""
38204 "The callback function is called whenever a log message is generated by the "
38205 "library part of libguestfs."
38206 msgstr ""
38207
38208 #. type: textblock
38209 #: ../src/guestfs.pod:1863
38210 msgid ""
38211 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38212 "messages are generated."
38213 msgstr ""
38214
38215 #. type: =item
38216 #: ../src/guestfs.pod:1871
38217 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38218 msgstr ""
38219
38220 #. type: textblock
38221 #: ../src/guestfs.pod:1874
38222 msgid ""
38223 "The callback function is called whenever a trace message is generated.  This "
38224 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38225 msgstr ""
38226
38227 #. type: textblock
38228 #: ../src/guestfs.pod:1877
38229 msgid ""
38230 "If no callback is registered: the messages are sent to stderr.  You can "
38231 "override the printing of trace messages to stderr by setting up a callback."
38232 msgstr ""
38233
38234 #. type: =item
38235 #: ../src/guestfs.pod:1881
38236 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38237 msgstr ""
38238
38239 #. type: textblock
38240 #: ../src/guestfs.pod:1884
38241 msgid "The callback function is called whenever a libguestfs function is entered."
38242 msgstr ""
38243
38244 #. type: textblock
38245 #: ../src/guestfs.pod:1887
38246 msgid ""
38247 "The payload is a string which contains the name of the function that we are "
38248 "entering (not including C<guestfs_> prefix)."
38249 msgstr ""
38250
38251 #. type: textblock
38252 #: ../src/guestfs.pod:1890
38253 msgid ""
38254 "Note that libguestfs functions can call themselves, so you may see many "
38255 "events from a single call.  A few libguestfs functions do not generate this "
38256 "event."
38257 msgstr ""
38258
38259 #. type: =head3
38260 #: ../src/guestfs.pod:1898
38261 msgid "guestfs_set_event_callback"
38262 msgstr ""
38263
38264 #. type: verbatim
38265 #: ../src/guestfs.pod:1900
38266 #, no-wrap
38267 msgid ""
38268 " int guestfs_set_event_callback (guestfs_h *g,\n"
38269 "                                 guestfs_event_callback cb,\n"
38270 "                                 uint64_t event_bitmask,\n"
38271 "                                 int flags,\n"
38272 "                                 void *opaque);\n"
38273 "\n"
38274 msgstr ""
38275
38276 #. type: textblock
38277 #: ../src/guestfs.pod:1906
38278 msgid ""
38279 "This function registers a callback (C<cb>) for all event classes in the "
38280 "C<event_bitmask>."
38281 msgstr ""
38282
38283 #. type: textblock
38284 #: ../src/guestfs.pod:1909
38285 msgid ""
38286 "For example, to register for all log message events, you could call this "
38287 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38288 "To register a single callback for all possible classes of events, use "
38289 "C<GUESTFS_EVENT_ALL>."
38290 msgstr ""
38291
38292 #. type: textblock
38293 #: ../src/guestfs.pod:1915
38294 msgid "C<flags> should always be passed as 0."
38295 msgstr ""
38296
38297 #. type: textblock
38298 #: ../src/guestfs.pod:1917
38299 msgid ""
38300 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38301 "it for any purpose."
38302 msgstr ""
38303
38304 #. type: textblock
38305 #: ../src/guestfs.pod:1920
38306 msgid ""
38307 "The return value is the event handle (an integer) which you can use to "
38308 "delete the callback (see below)."
38309 msgstr ""
38310
38311 #. type: textblock
38312 #: ../src/guestfs.pod:1923
38313 msgid ""
38314 "If there is an error, this function returns C<-1>, and sets the error in the "
38315 "handle in the usual way (see L</guestfs_last_error> etc.)"
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../src/guestfs.pod:1926
38320 msgid ""
38321 "Callbacks remain in effect until they are deleted, or until the handle is "
38322 "closed."
38323 msgstr ""
38324
38325 #. type: textblock
38326 #: ../src/guestfs.pod:1929
38327 msgid ""
38328 "In the case where multiple callbacks are registered for a particular event "
38329 "class, all of the callbacks are called.  The order in which multiple "
38330 "callbacks are called is not defined."
38331 msgstr ""
38332
38333 #. type: =head3
38334 #: ../src/guestfs.pod:1933
38335 msgid "guestfs_delete_event_callback"
38336 msgstr ""
38337
38338 #. type: verbatim
38339 #: ../src/guestfs.pod:1935
38340 #, no-wrap
38341 msgid ""
38342 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38343 "\n"
38344 msgstr ""
38345
38346 #. type: textblock
38347 #: ../src/guestfs.pod:1937
38348 msgid ""
38349 "Delete a callback that was previously registered.  C<event_handle> should be "
38350 "the integer that was returned by a previous call to "
38351 "C<guestfs_set_event_callback> on the same handle."
38352 msgstr ""
38353
38354 #. type: =head3
38355 #: ../src/guestfs.pod:1941
38356 msgid "guestfs_event_callback"
38357 msgstr ""
38358
38359 #. type: verbatim
38360 #: ../src/guestfs.pod:1943
38361 #, no-wrap
38362 msgid ""
38363 " typedef void (*guestfs_event_callback) (\n"
38364 "                  guestfs_h *g,\n"
38365 "                  void *opaque,\n"
38366 "                  uint64_t event,\n"
38367 "                  int event_handle,\n"
38368 "                  int flags,\n"
38369 "                  const char *buf, size_t buf_len,\n"
38370 "                  const uint64_t *array, size_t array_len);\n"
38371 "\n"
38372 msgstr ""
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:1952
38376 msgid "This is the type of the event callback function that you have to provide."
38377 msgstr ""
38378
38379 #. type: textblock
38380 #: ../src/guestfs.pod:1955
38381 msgid ""
38382 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38383 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38384 "handle, and C<flags> which in the current API you should ignore."
38385 msgstr ""
38386
38387 #. type: textblock
38388 #: ../src/guestfs.pod:1959
38389 msgid ""
38390 "The remaining parameters contain the event payload (if any).  Each event may "
38391 "contain a payload, which usually relates to the event class, but for future "
38392 "proofing your code should be written to handle any payload for any event "
38393 "class."
38394 msgstr ""
38395
38396 #. type: textblock
38397 #: ../src/guestfs.pod:1964
38398 msgid ""
38399 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38400 "there is no message buffer).  Note that this message buffer can contain "
38401 "arbitrary 8 bit data, including NUL bytes."
38402 msgstr ""
38403
38404 #. type: textblock
38405 #: ../src/guestfs.pod:1968
38406 msgid ""
38407 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38408 "moment this is only used for progress messages."
38409 msgstr ""
38410
38411 #. type: =head3
38412 #: ../src/guestfs.pod:1971
38413 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38414 msgstr ""
38415
38416 #. type: textblock
38417 #: ../src/guestfs.pod:1973
38418 msgid ""
38419 "One motivation for the generic event API was to allow GUI programs to "
38420 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38421 "unconditionally to C<stderr>."
38422 msgstr ""
38423
38424 #. type: textblock
38425 #: ../src/guestfs.pod:1977
38426 msgid ""
38427 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38428 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38429 "messages are not events; you must capture error messages separately)."
38430 msgstr ""
38431
38432 #. type: textblock
38433 #: ../src/guestfs.pod:1982
38434 msgid ""
38435 "Programs have to set up a callback to capture the classes of events of "
38436 "interest:"
38437 msgstr ""
38438
38439 #. type: verbatim
38440 #: ../src/guestfs.pod:1985
38441 #, no-wrap
38442 msgid ""
38443 " int eh =\n"
38444 "   guestfs_set_event_callback\n"
38445 "     (g, message_callback,\n"
38446 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38447 "      GUESTFS_EVENT_TRACE,\n"
38448 "      0, NULL) == -1)\n"
38449 " if (eh == -1) {\n"
38450 "   // handle error in the usual way\n"
38451 " }\n"
38452 "\n"
38453 msgstr ""
38454
38455 #. type: textblock
38456 #: ../src/guestfs.pod:1995
38457 msgid ""
38458 "The callback can then direct messages to the appropriate place.  In this "
38459 "example, messages are directed to syslog:"
38460 msgstr ""
38461
38462 #. type: verbatim
38463 #: ../src/guestfs.pod:1998
38464 #, no-wrap
38465 msgid ""
38466 " static void\n"
38467 " message_callback (\n"
38468 "         guestfs_h *g,\n"
38469 "         void *opaque,\n"
38470 "         uint64_t event,\n"
38471 "         int event_handle,\n"
38472 "         int flags,\n"
38473 "         const char *buf, size_t buf_len,\n"
38474 "         const uint64_t *array, size_t array_len)\n"
38475 " {\n"
38476 "   const int priority = LOG_USER|LOG_INFO;\n"
38477 "   if (buf_len > 0)\n"
38478 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38479 " }\n"
38480 "\n"
38481 msgstr ""
38482
38483 #. type: =head1
38484 #: ../src/guestfs.pod:2013
38485 msgid "CANCELLING LONG TRANSFERS"
38486 msgstr ""
38487
38488 #. type: textblock
38489 #: ../src/guestfs.pod:2015
38490 msgid ""
38491 "Some operations can be cancelled by the caller while they are in progress.  "
38492 "Currently only operations that involve uploading or downloading data can be "
38493 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38494 "parameters in the generator)."
38495 msgstr ""
38496
38497 #. type: =head2
38498 #: ../src/guestfs.pod:2020
38499 msgid "guestfs_user_cancel"
38500 msgstr ""
38501
38502 #. type: verbatim
38503 #: ../src/guestfs.pod:2022
38504 #, no-wrap
38505 msgid ""
38506 " void guestfs_user_cancel (guestfs_h *g);\n"
38507 "\n"
38508 msgstr ""
38509
38510 #. type: textblock
38511 #: ../src/guestfs.pod:2024
38512 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
38513 msgstr ""
38514
38515 #. type: textblock
38516 #: ../src/guestfs.pod:2027
38517 msgid ""
38518 "Unlike most other libguestfs calls, this function is signal safe and thread "
38519 "safe.  You can call it from a signal handler or from another thread, without "
38520 "needing to do any locking."
38521 msgstr ""
38522
38523 #. type: textblock
38524 #: ../src/guestfs.pod:2031
38525 msgid ""
38526 "The transfer that was in progress (if there is one) will stop shortly "
38527 "afterwards, and will return an error.  The errno (see "
38528 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38529 "out if the operation was cancelled or failed because of another error."
38530 msgstr ""
38531
38532 #. type: textblock
38533 #: ../src/guestfs.pod:2037
38534 msgid ""
38535 "No cleanup is performed: for example, if a file was being uploaded then "
38536 "after cancellation there may be a partially uploaded file.  It is the "
38537 "caller's responsibility to clean up if necessary."
38538 msgstr ""
38539
38540 #. type: textblock
38541 #: ../src/guestfs.pod:2041
38542 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38543 msgstr ""
38544
38545 #. type: textblock
38546 #: ../src/guestfs.pod:2043
38547 msgid ""
38548 "In an interactive text-based program, you might call it from a C<SIGINT> "
38549 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38550 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38551 "receive the C<^C> signal)."
38552 msgstr ""
38553
38554 #. type: textblock
38555 #: ../src/guestfs.pod:2048
38556 msgid ""
38557 "In a graphical program, when the main thread is displaying a progress bar "
38558 "with a cancel button, wire up the cancel button to call this function."
38559 msgstr ""
38560
38561 #. type: =head1
38562 #: ../src/guestfs.pod:2052
38563 msgid "PRIVATE DATA AREA"
38564 msgstr ""
38565
38566 #. type: textblock
38567 #: ../src/guestfs.pod:2054
38568 msgid ""
38569 "You can attach named pieces of private data to the libguestfs handle, fetch "
38570 "them by name, and walk over them, for the lifetime of the handle.  This is "
38571 "called the private data area and is only available from the C API."
38572 msgstr ""
38573
38574 #. type: textblock
38575 #: ../src/guestfs.pod:2059
38576 msgid "To attach a named piece of data, use the following call:"
38577 msgstr ""
38578
38579 #. type: verbatim
38580 #: ../src/guestfs.pod:2061
38581 #, no-wrap
38582 msgid ""
38583 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38584 "\n"
38585 msgstr ""
38586
38587 #. type: textblock
38588 #: ../src/guestfs.pod:2063
38589 msgid ""
38590 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38591 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38592 "overwritten."
38593 msgstr ""
38594
38595 #. type: textblock
38596 #: ../src/guestfs.pod:2067
38597 msgid ""
38598 "You can use any C<key> you want, but your key should I<not> start with an "
38599 "underscore character.  Keys beginning with an underscore character are "
38600 "reserved for internal libguestfs purposes (eg. for implementing language "
38601 "bindings).  It is recommended that you prefix the key with some unique "
38602 "string to avoid collisions with other users."
38603 msgstr ""
38604
38605 #. type: textblock
38606 #: ../src/guestfs.pod:2073
38607 msgid "To retrieve the pointer, use:"
38608 msgstr ""
38609
38610 #. type: verbatim
38611 #: ../src/guestfs.pod:2075
38612 #, no-wrap
38613 msgid ""
38614 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38615 "\n"
38616 msgstr ""
38617
38618 #. type: textblock
38619 #: ../src/guestfs.pod:2077
38620 msgid ""
38621 "This function returns C<NULL> if either no data is found associated with "
38622 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38623 "C<NULL>."
38624 msgstr ""
38625
38626 #. type: textblock
38627 #: ../src/guestfs.pod:2081
38628 msgid ""
38629 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38630 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38631 "all.  In particular, libguestfs does I<not> try to free the data when the "
38632 "handle is closed.  If the data must be freed, then the caller must either "
38633 "free it before calling L</guestfs_close> or must set up a close callback to "
38634 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38635 msgstr ""
38636
38637 #. type: textblock
38638 #: ../src/guestfs.pod:2088
38639 msgid "To walk over all entries, use these two functions:"
38640 msgstr ""
38641
38642 #. type: verbatim
38643 #: ../src/guestfs.pod:2090
38644 #, no-wrap
38645 msgid ""
38646 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38647 "\n"
38648 msgstr ""
38649
38650 #. type: verbatim
38651 #: ../src/guestfs.pod:2092
38652 #, no-wrap
38653 msgid ""
38654 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38655 "\n"
38656 msgstr ""
38657
38658 #. type: textblock
38659 #: ../src/guestfs.pod:2094
38660 msgid ""
38661 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38662 "not have any particular meaning -- keys are not returned in any defined "
38663 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38664 "corresponding data pointer is returned from the function.  C<NULL> is "
38665 "returned if there are no keys stored in the handle."
38666 msgstr ""
38667
38668 #. type: textblock
38669 #: ../src/guestfs.pod:2100
38670 msgid ""
38671 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38672 "value of this function is also C<NULL> is there are no further entries to "
38673 "return."
38674 msgstr ""
38675
38676 #. type: textblock
38677 #: ../src/guestfs.pod:2104
38678 msgid "Notes about walking over entries:"
38679 msgstr ""
38680
38681 #. type: textblock
38682 #: ../src/guestfs.pod:2110
38683 msgid "You must not call C<guestfs_set_private> while walking over the entries."
38684 msgstr ""
38685
38686 #. type: textblock
38687 #: ../src/guestfs.pod:2115
38688 msgid ""
38689 "The handle maintains an internal iterator which is reset when you call "
38690 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38691 "call C<guestfs_set_private>."
38692 msgstr ""
38693
38694 #. type: textblock
38695 #: ../src/guestfs.pod:2121
38696 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38697 msgstr ""
38698
38699 #. type: verbatim
38700 #: ../src/guestfs.pod:2123
38701 #, no-wrap
38702 msgid ""
38703 " guestfs_set_private (g, key, NULL);\n"
38704 "\n"
38705 msgstr ""
38706
38707 #. type: textblock
38708 #: ../src/guestfs.pod:2125
38709 msgid "then that C<key> is not returned when walking."
38710 msgstr ""
38711
38712 #. type: textblock
38713 #: ../src/guestfs.pod:2129
38714 msgid ""
38715 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38716 "C<guestfs_next_private> or C<guestfs_set_private>."
38717 msgstr ""
38718
38719 #. type: textblock
38720 #: ../src/guestfs.pod:2135
38721 msgid ""
38722 "The following example code shows how to print all keys and data pointers "
38723 "that are associated with the handle C<g>:"
38724 msgstr ""
38725
38726 #. type: verbatim
38727 #: ../src/guestfs.pod:2138
38728 #, no-wrap
38729 msgid ""
38730 " const char *key;\n"
38731 " void *data = guestfs_first_private (g, &key);\n"
38732 " while (data != NULL)\n"
38733 "   {\n"
38734 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38735 "     data = guestfs_next_private (g, &key);\n"
38736 "   }\n"
38737 "\n"
38738 msgstr ""
38739
38740 #. type: textblock
38741 #: ../src/guestfs.pod:2146
38742 msgid ""
38743 "More commonly you are only interested in keys that begin with an "
38744 "application-specific prefix C<foo_>.  Modify the loop like so:"
38745 msgstr ""
38746
38747 #. type: verbatim
38748 #: ../src/guestfs.pod:2149
38749 #, no-wrap
38750 msgid ""
38751 " const char *key;\n"
38752 " void *data = guestfs_first_private (g, &key);\n"
38753 " while (data != NULL)\n"
38754 "   {\n"
38755 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38756 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38757 "     data = guestfs_next_private (g, &key);\n"
38758 "   }\n"
38759 "\n"
38760 msgstr ""
38761
38762 #. type: textblock
38763 #: ../src/guestfs.pod:2158
38764 msgid ""
38765 "If you need to modify keys while walking, then you have to jump back to the "
38766 "beginning of the loop.  For example, to delete all keys prefixed with "
38767 "C<foo_>:"
38768 msgstr ""
38769
38770 #. type: verbatim
38771 #: ../src/guestfs.pod:2162
38772 #, no-wrap
38773 msgid ""
38774 "  const char *key;\n"
38775 "  void *data;\n"
38776 " again:\n"
38777 "  data = guestfs_first_private (g, &key);\n"
38778 "  while (data != NULL)\n"
38779 "    {\n"
38780 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38781 "        {\n"
38782 "          guestfs_set_private (g, key, NULL);\n"
38783 "          /* note that 'key' pointer is now invalid, and so is\n"
38784 "             the internal iterator */\n"
38785 "          goto again;\n"
38786 "        }\n"
38787 "      data = guestfs_next_private (g, &key);\n"
38788 "    }\n"
38789 "\n"
38790 msgstr ""
38791
38792 #. type: textblock
38793 #: ../src/guestfs.pod:2178
38794 msgid ""
38795 "Note that the above loop is guaranteed to terminate because the keys are "
38796 "being deleted, but other manipulations of keys within the loop might not "
38797 "terminate unless you also maintain an indication of which keys have been "
38798 "visited."
38799 msgstr ""
38800
38801 #. type: =head1
38802 #: ../src/guestfs.pod:2183
38803 msgid "SYSTEMTAP"
38804 msgstr ""
38805
38806 #. type: textblock
38807 #: ../src/guestfs.pod:2185
38808 msgid ""
38809 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38810 "true of any library, not just libguestfs.  However libguestfs also contains "
38811 "static markers to help in probing internal operations."
38812 msgstr ""
38813
38814 #. type: textblock
38815 #: ../src/guestfs.pod:2189
38816 msgid "You can list all the static markers by doing:"
38817 msgstr ""
38818
38819 #. type: verbatim
38820 #: ../src/guestfs.pod:2191
38821 #, no-wrap
38822 msgid ""
38823 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38824 "              .provider(\"guestfs\").mark(\"*\")'\n"
38825 "\n"
38826 msgstr ""
38827
38828 #. type: textblock
38829 #: ../src/guestfs.pod:2194
38830 msgid ""
38831 "B<Note:> These static markers are I<not> part of the stable API and may "
38832 "change in future versions."
38833 msgstr ""
38834
38835 #. type: =head2
38836 #: ../src/guestfs.pod:2197
38837 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38838 msgstr ""
38839
38840 #. type: textblock
38841 #: ../src/guestfs.pod:2199
38842 msgid ""
38843 "This script contains examples of displaying both the static markers and some "
38844 "ordinary C entry points:"
38845 msgstr ""
38846
38847 #. type: verbatim
38848 #: ../src/guestfs.pod:2202
38849 #, no-wrap
38850 msgid ""
38851 " global last;\n"
38852 " \n"
38853 msgstr ""
38854
38855 #. type: verbatim
38856 #: ../src/guestfs.pod:2204
38857 #, no-wrap
38858 msgid ""
38859 " function display_time () {\n"
38860 "       now = gettimeofday_us ();\n"
38861 "       delta = 0;\n"
38862 "       if (last > 0)\n"
38863 "             delta = now - last;\n"
38864 "       last = now;\n"
38865 " \n"
38866 msgstr ""
38867
38868 #. type: verbatim
38869 #: ../src/guestfs.pod:2211
38870 #, no-wrap
38871 msgid ""
38872 "       printf (\"%d (+%d):\", now, delta);\n"
38873 " }\n"
38874 " \n"
38875 msgstr ""
38876
38877 #. type: verbatim
38878 #: ../src/guestfs.pod:2214
38879 #, no-wrap
38880 msgid ""
38881 " probe begin {\n"
38882 "       last = 0;\n"
38883 "       printf (\"ready\\n\");\n"
38884 " }\n"
38885 " \n"
38886 msgstr ""
38887
38888 #. type: verbatim
38889 #: ../src/guestfs.pod:2219
38890 #, no-wrap
38891 msgid ""
38892 " /* Display all calls to static markers. */\n"
38893 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38894 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38895 "       display_time();\n"
38896 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38897 " }\n"
38898 " \n"
38899 msgstr ""
38900
38901 #. type: verbatim
38902 #: ../src/guestfs.pod:2226
38903 #, no-wrap
38904 msgid ""
38905 " /* Display all calls to guestfs_mkfs* functions. */\n"
38906 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38907 "           .function(\"guestfs_mkfs*\") ? {\n"
38908 "       display_time();\n"
38909 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38910 " }\n"
38911 "\n"
38912 msgstr ""
38913
38914 #. type: textblock
38915 #: ../src/guestfs.pod:2233
38916 msgid ""
38917 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38918 "program.  Note that you either have to be root, or you have to add yourself "
38919 "to several special stap groups.  Consult the systemtap documentation for "
38920 "more information."
38921 msgstr ""
38922
38923 #. type: verbatim
38924 #: ../src/guestfs.pod:2238
38925 #, no-wrap
38926 msgid ""
38927 " # stap /tmp/test.stap\n"
38928 " ready\n"
38929 "\n"
38930 msgstr ""
38931
38932 #. type: textblock
38933 #: ../src/guestfs.pod:2241
38934 msgid "In another terminal, run a guestfish command such as this:"
38935 msgstr ""
38936
38937 #. type: textblock
38938 #: ../src/guestfs.pod:2245
38939 msgid "In the first terminal, stap trace output similar to this is shown:"
38940 msgstr ""
38941
38942 #. type: verbatim
38943 #: ../src/guestfs.pod:2247
38944 #, no-wrap
38945 msgid ""
38946 " 1318248056692655 (+0):\tlaunch_start\n"
38947 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38948 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38949 " 1318248056838059 (+19774):     launch_run_qemu\n"
38950 " 1318248061071167 (+4233108):   launch_end\n"
38951 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
38952 "device=0x1024e60\n"
38953 "\n"
38954 msgstr ""
38955
38956 #. type: =end
38957 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38958 msgid "html"
38959 msgstr ""
38960
38961 #. type: textblock
38962 #: ../src/guestfs.pod:2256
38963 msgid ""
38964 "<!-- old anchor for the next section --> <a "
38965 "name=\"state_machine_and_low_level_event_api\"/>"
38966 msgstr ""
38967
38968 #. type: =head1
38969 #: ../src/guestfs.pod:2261
38970 msgid "ARCHITECTURE"
38971 msgstr ""
38972
38973 #. type: textblock
38974 #: ../src/guestfs.pod:2263
38975 msgid ""
38976 "Internally, libguestfs is implemented by running an appliance (a special "
38977 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38978 "process of the main program."
38979 msgstr ""
38980
38981 #. type: verbatim
38982 #: ../src/guestfs.pod:2267
38983 #, no-wrap
38984 msgid ""
38985 "  ___________________\n"
38986 " /                   \\\n"
38987 " | main program      |\n"
38988 " |                   |\n"
38989 " |                   |           child process / appliance\n"
38990 " |                   |           __________________________\n"
38991 " |                   |          / qemu                     \\\n"
38992 " +-------------------+   RPC    |      +-----------------+ |\n"
38993 " | libguestfs     <--------------------> guestfsd        | |\n"
38994 " |                   |          |      +-----------------+ |\n"
38995 " \\___________________/          |      | Linux kernel    | |\n"
38996 "                                |      +--^--------------+ |\n"
38997 "                                \\_________|________________/\n"
38998 "                                          |\n"
38999 "                                   _______v______\n"
39000 "                                  /              \\\n"
39001 "                                  | Device or    |\n"
39002 "                                  | disk image   |\n"
39003 "                                  \\______________/\n"
39004 "\n"
39005 msgstr ""
39006
39007 #. type: textblock
39008 #: ../src/guestfs.pod:2287
39009 msgid ""
39010 "The library, linked to the main program, creates the child process and hence "
39011 "the appliance in the L</guestfs_launch> function."
39012 msgstr ""
39013
39014 #. type: textblock
39015 #: ../src/guestfs.pod:2290
39016 msgid ""
39017 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39018 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39019 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39020 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39021 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39022 "attached to the qemu process which translates device access by the "
39023 "appliance's Linux kernel into accesses to the image."
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../src/guestfs.pod:2299
39028 msgid ""
39029 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39030 "Although the disk image you are attached to might also be used by some "
39031 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39032 "care if both libguestfs's qemu process and your virtual machine are trying "
39033 "to update the disk image at the same time, since these usually results in "
39034 "massive disk corruption)."
39035 msgstr ""
39036
39037 #. type: =head1
39038 #: ../src/guestfs.pod:2306
39039 msgid "STATE MACHINE"
39040 msgstr ""
39041
39042 #. type: textblock
39043 #: ../src/guestfs.pod:2308
39044 msgid "libguestfs uses a state machine to model the child process:"
39045 msgstr ""
39046
39047 #. type: verbatim
39048 #: ../src/guestfs.pod:2310
39049 #, no-wrap
39050 msgid ""
39051 "                         |\n"
39052 "                    guestfs_create\n"
39053 "                         |\n"
39054 "                         |\n"
39055 "                     ____V_____\n"
39056 "                    /          \\\n"
39057 "                    |  CONFIG  |\n"
39058 "                    \\__________/\n"
39059 "                     ^ ^   ^  \\\n"
39060 "                    /  |    \\  \\ guestfs_launch\n"
39061 "                   /   |    _\\__V______\n"
39062 "                  /    |   /           \\\n"
39063 "                 /     |   | LAUNCHING |\n"
39064 "                /      |   \\___________/\n"
39065 "               /       |       /\n"
39066 "              /        |  guestfs_launch\n"
39067 "             /         |     /\n"
39068 "    ______  /        __|____V\n"
39069 "   /      \\ ------> /        \\\n"
39070 "   | BUSY |         | READY  |\n"
39071 "   \\______/ <------ \\________/\n"
39072 "\n"
39073 msgstr ""
39074
39075 #. type: textblock
39076 #: ../src/guestfs.pod:2332
39077 msgid ""
39078 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39079 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39080 "(3) alternating between READY and BUSY as commands are issued to, and "
39081 "carried out by, the child process."
39082 msgstr ""
39083
39084 #. type: textblock
39085 #: ../src/guestfs.pod:2337
39086 msgid ""
39087 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39088 "asynchronously at any time (eg. due to some internal error), and that causes "
39089 "the state to transition back to CONFIG."
39090 msgstr ""
39091
39092 #. type: textblock
39093 #: ../src/guestfs.pod:2341
39094 msgid ""
39095 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39096 "issued when in the CONFIG state."
39097 msgstr ""
39098
39099 #. type: textblock
39100 #: ../src/guestfs.pod:2344
39101 msgid ""
39102 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39103 "L</guestfs_launch> blocks until the child process is READY to accept "
39104 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39105 "moves the state from CONFIG to LAUNCHING while it is running."
39106 msgstr ""
39107
39108 #. type: textblock
39109 #: ../src/guestfs.pod:2350
39110 msgid ""
39111 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39112 "state.  These API calls block waiting for the command to be carried out "
39113 "(ie. the state to transition to BUSY and then back to READY).  There are no "
39114 "non-blocking versions, and no way to issue more than one command per handle "
39115 "at the same time."
39116 msgstr ""
39117
39118 #. type: textblock
39119 #: ../src/guestfs.pod:2356
39120 msgid ""
39121 "Finally, the child process sends asynchronous messages back to the main "
39122 "program, such as kernel log messages.  You can register a callback to "
39123 "receive these messages."
39124 msgstr ""
39125
39126 #. type: =head1
39127 #: ../src/guestfs.pod:2360
39128 msgid "INTERNALS"
39129 msgstr ""
39130
39131 #. type: =head2
39132 #: ../src/guestfs.pod:2362
39133 msgid "APPLIANCE BOOT PROCESS"
39134 msgstr ""
39135
39136 #. type: textblock
39137 #: ../src/guestfs.pod:2364
39138 msgid ""
39139 "This process has evolved and continues to evolve.  The description here "
39140 "corresponds only to the current version of libguestfs and is provided for "
39141 "information only."
39142 msgstr ""
39143
39144 #. type: textblock
39145 #: ../src/guestfs.pod:2368
39146 msgid ""
39147 "In order to follow the stages involved below, enable libguestfs debugging "
39148 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39149 msgstr ""
39150
39151 #. type: =item
39152 #: ../src/guestfs.pod:2373
39153 msgid "Create the appliance"
39154 msgstr ""
39155
39156 #. type: textblock
39157 #: ../src/guestfs.pod:2375
39158 msgid ""
39159 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39160 "initrd and the appliance."
39161 msgstr ""
39162
39163 #. type: textblock
39164 #: ../src/guestfs.pod:2378
39165 msgid ""
39166 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39167 "directory if C<TMPDIR> is set)."
39168 msgstr ""
39169
39170 #. type: textblock
39171 #: ../src/guestfs.pod:2381
39172 msgid ""
39173 "For a complete description of how the appliance is created and cached, read "
39174 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39175 msgstr ""
39176
39177 #. type: =item
39178 #: ../src/guestfs.pod:2385
39179 msgid "Start qemu and boot the kernel"
39180 msgstr ""
39181
39182 #. type: textblock
39183 #: ../src/guestfs.pod:2387
39184 msgid "qemu is invoked to boot the kernel."
39185 msgstr ""
39186
39187 #. type: =item
39188 #: ../src/guestfs.pod:2389
39189 msgid "Run the initrd"
39190 msgstr ""
39191
39192 #. type: textblock
39193 #: ../src/guestfs.pod:2391
39194 msgid ""
39195 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39196 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39197 "order that the appliance itself can be mounted and started."
39198 msgstr ""
39199
39200 #. type: textblock
39201 #: ../src/guestfs.pod:2395
39202 msgid ""
39203 "The initrd is a cpio archive called "
39204 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
39205 msgstr ""
39206
39207 #. type: textblock
39208 #: ../src/guestfs.pod:2398
39209 msgid ""
39210 "When the initrd has started you will see messages showing that kernel "
39211 "modules are being loaded, similar to this:"
39212 msgstr ""
39213
39214 #. type: verbatim
39215 #: ../src/guestfs.pod:2401
39216 #, no-wrap
39217 msgid ""
39218 " febootstrap: ext2 mini initrd starting up\n"
39219 " febootstrap: mounting /sys\n"
39220 " febootstrap: internal insmod libcrc32c.ko\n"
39221 " febootstrap: internal insmod crc32c-intel.ko\n"
39222 "\n"
39223 msgstr ""
39224
39225 #. type: =item
39226 #: ../src/guestfs.pod:2406
39227 msgid "Find and mount the appliance device"
39228 msgstr ""
39229
39230 #. type: textblock
39231 #: ../src/guestfs.pod:2408
39232 msgid ""
39233 "The appliance is a sparse file containing an ext2 filesystem which contains "
39234 "a familiar (although reduced in size) Linux operating system.  It would "
39235 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39236 msgstr ""
39237
39238 #. type: textblock
39239 #: ../src/guestfs.pod:2412
39240 msgid ""
39241 "The regular disks being inspected by libguestfs are the first devices "
39242 "exposed by qemu (eg. as C</dev/vda>)."
39243 msgstr ""
39244
39245 #. type: textblock
39246 #: ../src/guestfs.pod:2415
39247 msgid ""
39248 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39249 "there was only one regular disk)."
39250 msgstr ""
39251
39252 #. type: textblock
39253 #: ../src/guestfs.pod:2418
39254 msgid ""
39255 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39256 "and switch root into the appliance, and run C</init> from the appliance."
39257 msgstr ""
39258
39259 #. type: textblock
39260 #: ../src/guestfs.pod:2422
39261 msgid "If this works successfully you will see messages such as:"
39262 msgstr ""
39263
39264 #. type: verbatim
39265 #: ../src/guestfs.pod:2424
39266 #, no-wrap
39267 msgid ""
39268 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39269 " febootstrap: creating /dev/root as block special 252:16\n"
39270 " febootstrap: mounting new root on /root\n"
39271 " febootstrap: chroot\n"
39272 " Starting /init script ...\n"
39273 "\n"
39274 msgstr ""
39275
39276 #. type: textblock
39277 #: ../src/guestfs.pod:2430
39278 msgid ""
39279 "Note that C<Starting /init script ...> indicates that the appliance's init "
39280 "script is now running."
39281 msgstr ""
39282
39283 #. type: =item
39284 #: ../src/guestfs.pod:2433
39285 msgid "Initialize the appliance"
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../src/guestfs.pod:2435
39290 msgid ""
39291 "The appliance itself now initializes itself.  This involves starting certain "
39292 "processes like C<udev>, possibly printing some debug information, and "
39293 "finally running the daemon (C<guestfsd>)."
39294 msgstr ""
39295
39296 #. type: =item
39297 #: ../src/guestfs.pod:2439
39298 msgid "The daemon"
39299 msgstr ""
39300
39301 #. type: textblock
39302 #: ../src/guestfs.pod:2441
39303 msgid ""
39304 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39305 "should see:"
39306 msgstr ""
39307
39308 #. type: verbatim
39309 #: ../src/guestfs.pod:2444
39310 #, no-wrap
39311 msgid ""
39312 " verbose daemon enabled\n"
39313 "\n"
39314 msgstr ""
39315
39316 #. type: textblock
39317 #: ../src/guestfs.pod:2446
39318 msgid ""
39319 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39320 "connected on the other end to the library."
39321 msgstr ""
39322
39323 #. type: textblock
39324 #: ../src/guestfs.pod:2449
39325 msgid ""
39326 "The daemon connects to this port (and hence to the library) and sends a four "
39327 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39328 "protocol (see below)."
39329 msgstr ""
39330
39331 #. type: =head2
39332 #: ../src/guestfs.pod:2455
39333 msgid "COMMUNICATION PROTOCOL"
39334 msgstr ""
39335
39336 #. type: textblock
39337 #: ../src/guestfs.pod:2457
39338 msgid ""
39339 "Don't rely on using this protocol directly.  This section documents how it "
39340 "currently works, but it may change at any time."
39341 msgstr ""
39342
39343 #. type: textblock
39344 #: ../src/guestfs.pod:2460
39345 msgid ""
39346 "The protocol used to talk between the library and the daemon running inside "
39347 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39348 "1014, RFC 1832, RFC 4506)."
39349 msgstr ""
39350
39351 #. type: textblock
39352 #: ../src/guestfs.pod:2464
39353 msgid ""
39354 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39355 "this file is automatically generated)."
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:2467
39360 msgid ""
39361 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39362 "and C<FileOut> parameters, which are handled with very simple request/reply "
39363 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39364 "parameters, which use the same request and reply messages, but they may also "
39365 "be followed by files sent using a chunked encoding."
39366 msgstr ""
39367
39368 #. type: =head3
39369 #: ../src/guestfs.pod:2474
39370 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39371 msgstr ""
39372
39373 #. type: textblock
39374 #: ../src/guestfs.pod:2476
39375 msgid "For ordinary functions, the request message is:"
39376 msgstr ""
39377
39378 #. type: verbatim
39379 #: ../src/guestfs.pod:2478
39380 #, no-wrap
39381 msgid ""
39382 " total length (header + arguments,\n"
39383 "      but not including the length word itself)\n"
39384 " struct guestfs_message_header (encoded as XDR)\n"
39385 " struct guestfs_<foo>_args (encoded as XDR)\n"
39386 "\n"
39387 msgstr ""
39388
39389 #. type: textblock
39390 #: ../src/guestfs.pod:2483
39391 msgid ""
39392 "The total length field allows the daemon to allocate a fixed size buffer "
39393 "into which it slurps the rest of the message.  As a result, the total length "
39394 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39395 "effective size of any request is limited to somewhere under this size."
39396 msgstr ""
39397
39398 #. type: textblock
39399 #: ../src/guestfs.pod:2489
39400 msgid ""
39401 "Note also that many functions don't take any arguments, in which case the "
39402 "C<guestfs_I<foo>_args> is completely omitted."
39403 msgstr ""
39404
39405 #. type: textblock
39406 #: ../src/guestfs.pod:2492
39407 msgid ""
39408 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39409 "receiver knows what type of args structure to expect, or none at all."
39410 msgstr ""
39411
39412 #. type: textblock
39413 #: ../src/guestfs.pod:2496
39414 msgid ""
39415 "For functions that take optional arguments, the optional arguments are "
39416 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39417 "arguments.  A bitmask in the header indicates which optional arguments are "
39418 "meaningful.  The bitmask is also checked to see if it contains bits set "
39419 "which the daemon does not know about (eg. if more optional arguments were "
39420 "added in a later version of the library), and this causes the call to be "
39421 "rejected."
39422 msgstr ""
39423
39424 #. type: textblock
39425 #: ../src/guestfs.pod:2504
39426 msgid "The reply message for ordinary functions is:"
39427 msgstr ""
39428
39429 #. type: verbatim
39430 #: ../src/guestfs.pod:2506
39431 #, no-wrap
39432 msgid ""
39433 " total length (header + ret,\n"
39434 "      but not including the length word itself)\n"
39435 " struct guestfs_message_header (encoded as XDR)\n"
39436 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39437 "\n"
39438 msgstr ""
39439
39440 #. type: textblock
39441 #: ../src/guestfs.pod:2511
39442 msgid ""
39443 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39444 "functions that return no formal return values."
39445 msgstr ""
39446
39447 #. type: textblock
39448 #: ../src/guestfs.pod:2514
39449 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39450 msgstr ""
39451
39452 #. type: textblock
39453 #: ../src/guestfs.pod:2517
39454 msgid ""
39455 "In the case of an error, a flag is set in the header, and the reply message "
39456 "is slightly changed:"
39457 msgstr ""
39458
39459 #. type: verbatim
39460 #: ../src/guestfs.pod:2520
39461 #, no-wrap
39462 msgid ""
39463 " total length (header + error,\n"
39464 "      but not including the length word itself)\n"
39465 " struct guestfs_message_header (encoded as XDR)\n"
39466 " struct guestfs_message_error (encoded as XDR)\n"
39467 "\n"
39468 msgstr ""
39469
39470 #. type: textblock
39471 #: ../src/guestfs.pod:2525
39472 msgid ""
39473 "The C<guestfs_message_error> structure contains the error message as a "
39474 "string."
39475 msgstr ""
39476
39477 #. type: =head3
39478 #: ../src/guestfs.pod:2528
39479 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39480 msgstr ""
39481
39482 #. type: textblock
39483 #: ../src/guestfs.pod:2530
39484 msgid ""
39485 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39486 "The normal request message is sent (see above).  However this is followed by "
39487 "a sequence of file chunks."
39488 msgstr ""
39489
39490 #. type: verbatim
39491 #: ../src/guestfs.pod:2534
39492 #, no-wrap
39493 msgid ""
39494 " total length (header + arguments,\n"
39495 "      but not including the length word itself,\n"
39496 "      and not including the chunks)\n"
39497 " struct guestfs_message_header (encoded as XDR)\n"
39498 " struct guestfs_<foo>_args (encoded as XDR)\n"
39499 " sequence of chunks for FileIn param #0\n"
39500 " sequence of chunks for FileIn param #1 etc.\n"
39501 "\n"
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../src/guestfs.pod:2542
39506 msgid "The \"sequence of chunks\" is:"
39507 msgstr ""
39508
39509 #. type: verbatim
39510 #: ../src/guestfs.pod:2544
39511 #, no-wrap
39512 msgid ""
39513 " length of chunk (not including length word itself)\n"
39514 " struct guestfs_chunk (encoded as XDR)\n"
39515 " length of chunk\n"
39516 " struct guestfs_chunk (encoded as XDR)\n"
39517 "   ...\n"
39518 " length of chunk\n"
39519 " struct guestfs_chunk (with data.data_len == 0)\n"
39520 "\n"
39521 msgstr ""
39522
39523 #. type: textblock
39524 #: ../src/guestfs.pod:2552
39525 msgid ""
39526 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39527 "is set in the final chunk to indicate either successful completion or early "
39528 "cancellation."
39529 msgstr ""
39530
39531 #. type: textblock
39532 #: ../src/guestfs.pod:2556
39533 msgid ""
39534 "At time of writing there are no functions that have more than one FileIn "
39535 "parameter.  However this is (theoretically) supported, by sending the "
39536 "sequence of chunks for each FileIn parameter one after another (from left to "
39537 "right)."
39538 msgstr ""
39539
39540 #. type: textblock
39541 #: ../src/guestfs.pod:2561
39542 msgid ""
39543 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39544 "transfer.  The library does this by sending a chunk with a special flag set "
39545 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39546 "RPC, does I<not> send any reply, and goes back to reading the next request."
39547 msgstr ""
39548
39549 #. type: textblock
39550 #: ../src/guestfs.pod:2567
39551 msgid ""
39552 "The daemon may also cancel.  It does this by writing a special word "
39553 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39554 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39555 "cancel chunk).  The special word is chosen so that even if cancellation "
39556 "happens right at the end of the transfer (after the library has finished "
39557 "writing and has started listening for the reply), the \"spurious\" cancel "
39558 "flag will not be confused with the reply message."
39559 msgstr ""
39560
39561 #. type: textblock
39562 #: ../src/guestfs.pod:2576
39563 msgid ""
39564 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39565 "limit), and also files where the size is not known in advance (eg. from "
39566 "pipes or sockets).  However the chunks are rather small "
39567 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39568 "to keep much in memory."
39569 msgstr ""
39570
39571 #. type: =head3
39572 #: ../src/guestfs.pod:2582
39573 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39574 msgstr ""
39575
39576 #. type: textblock
39577 #: ../src/guestfs.pod:2584
39578 msgid ""
39579 "The protocol for FileOut parameters is exactly the same as for FileIn "
39580 "parameters, but with the roles of daemon and library reversed."
39581 msgstr ""
39582
39583 #. type: verbatim
39584 #: ../src/guestfs.pod:2587
39585 #, no-wrap
39586 msgid ""
39587 " total length (header + ret,\n"
39588 "      but not including the length word itself,\n"
39589 "      and not including the chunks)\n"
39590 " struct guestfs_message_header (encoded as XDR)\n"
39591 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39592 " sequence of chunks for FileOut param #0\n"
39593 " sequence of chunks for FileOut param #1 etc.\n"
39594 "\n"
39595 msgstr ""
39596
39597 #. type: =head3
39598 #: ../src/guestfs.pod:2595
39599 msgid "INITIAL MESSAGE"
39600 msgstr ""
39601
39602 #. type: textblock
39603 #: ../src/guestfs.pod:2597
39604 msgid ""
39605 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39606 "which indicates that the guest and daemon is alive.  This is what "
39607 "L</guestfs_launch> waits for."
39608 msgstr ""
39609
39610 #. type: =head3
39611 #: ../src/guestfs.pod:2601
39612 msgid "PROGRESS NOTIFICATION MESSAGES"
39613 msgstr ""
39614
39615 #. type: textblock
39616 #: ../src/guestfs.pod:2603
39617 msgid ""
39618 "The daemon may send progress notification messages at any time.  These are "
39619 "distinguished by the normal length word being replaced by "
39620 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39621 msgstr ""
39622
39623 #. type: textblock
39624 #: ../src/guestfs.pod:2607
39625 msgid ""
39626 "The library turns them into progress callbacks (see "
39627 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
39628 "them if not."
39629 msgstr ""
39630
39631 #. type: textblock
39632 #: ../src/guestfs.pod:2611
39633 msgid ""
39634 "The daemon self-limits the frequency of progress messages it sends (see "
39635 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39636 "messages."
39637 msgstr ""
39638
39639 #. type: =head1
39640 #: ../src/guestfs.pod:2615
39641 msgid "LIBGUESTFS VERSION NUMBERS"
39642 msgstr ""
39643
39644 #. type: textblock
39645 #: ../src/guestfs.pod:2617
39646 msgid ""
39647 "Since April 2010, libguestfs has started to make separate development and "
39648 "stable releases, along with corresponding branches in our git repository.  "
39649 "These separate releases can be identified by version number:"
39650 msgstr ""
39651
39652 #. type: verbatim
39653 #: ../src/guestfs.pod:2622
39654 #, no-wrap
39655 msgid ""
39656 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39657 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39658 "       |\n"
39659 "       v\n"
39660 " 1  .  3  .  5\n"
39661 " ^           ^\n"
39662 " |           |\n"
39663 " |           `-------- sub-version\n"
39664 " |\n"
39665 " `------ always '1' because we don't change the ABI\n"
39666 "\n"
39667 msgstr ""
39668
39669 #. type: textblock
39670 #: ../src/guestfs.pod:2633
39671 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39672 msgstr ""
39673
39674 #. type: textblock
39675 #: ../src/guestfs.pod:2635
39676 msgid ""
39677 "As time passes we cherry pick fixes from the development branch and backport "
39678 "those into the stable branch, the effect being that the stable branch should "
39679 "get more stable and less buggy over time.  So the stable releases are ideal "
39680 "for people who don't need new features but would just like the software to "
39681 "work."
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../src/guestfs.pod:2641
39686 msgid "Our criteria for backporting changes are:"
39687 msgstr ""
39688
39689 #. type: textblock
39690 #: ../src/guestfs.pod:2647
39691 msgid ""
39692 "Documentation changes which don't affect any code are backported unless the "
39693 "documentation refers to a future feature which is not in stable."
39694 msgstr ""
39695
39696 #. type: textblock
39697 #: ../src/guestfs.pod:2653
39698 msgid ""
39699 "Bug fixes which are not controversial, fix obvious problems, and have been "
39700 "well tested are backported."
39701 msgstr ""
39702
39703 #. type: textblock
39704 #: ../src/guestfs.pod:2658
39705 msgid ""
39706 "Simple rearrangements of code which shouldn't affect how it works get "
39707 "backported.  This is so that the code in the two branches doesn't get too "
39708 "far out of step, allowing us to backport future fixes more easily."
39709 msgstr ""
39710
39711 #. type: textblock
39712 #: ../src/guestfs.pod:2664
39713 msgid ""
39714 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39715 "exceptional case: the new feature is required in order to implement an "
39716 "important bug fix."
39717 msgstr ""
39718
39719 #. type: textblock
39720 #: ../src/guestfs.pod:2670
39721 msgid ""
39722 "A new stable branch starts when we think the new features in development are "
39723 "substantial and compelling enough over the current stable branch to warrant "
39724 "it.  When that happens we create new stable and development versions 1.N.0 "
39725 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39726 "stable at this point, but by backporting fixes from development, that branch "
39727 "will stabilize over time."
39728 msgstr ""
39729
39730 #. type: =head1
39731 #: ../src/guestfs.pod:2678
39732 msgid "EXTENDING LIBGUESTFS"
39733 msgstr ""
39734
39735 #. type: =head2
39736 #: ../src/guestfs.pod:2680
39737 msgid "ADDING A NEW API ACTION"
39738 msgstr ""
39739
39740 #. type: textblock
39741 #: ../src/guestfs.pod:2682
39742 msgid ""
39743 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39744 "documentation) are generated, and this makes it easy to extend the "
39745 "libguestfs API."
39746 msgstr ""
39747
39748 #. type: textblock
39749 #: ../src/guestfs.pod:2686
39750 msgid "To add a new API action there are two changes:"
39751 msgstr ""
39752
39753 #. type: textblock
39754 #: ../src/guestfs.pod:2692
39755 msgid ""
39756 "You need to add a description of the call (name, parameters, return type, "
39757 "tests, documentation) to C<generator/generator_actions.ml>."
39758 msgstr ""
39759
39760 #. type: textblock
39761 #: ../src/guestfs.pod:2695
39762 msgid ""
39763 "There are two sorts of API action, depending on whether the call goes "
39764 "through to the daemon in the appliance, or is serviced entirely by the "
39765 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39766 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39767 "an example of the latter, since a trace flag is maintained in the handle and "
39768 "all tracing is done on the library side."
39769 msgstr ""
39770
39771 #. type: textblock
39772 #: ../src/guestfs.pod:2703
39773 msgid ""
39774 "Most new actions are of the first type, and get added to the "
39775 "C<daemon_functions> list.  Each function has a unique procedure number used "
39776 "in the RPC protocol which is assigned to that action when we publish "
39777 "libguestfs and cannot be reused.  Take the latest procedure number and "
39778 "increment it."
39779 msgstr ""
39780
39781 #. type: textblock
39782 #: ../src/guestfs.pod:2709
39783 msgid ""
39784 "For library-only actions of the second type, add to the "
39785 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39786 "library and do not travel over the RPC mechanism to the daemon, these "
39787 "functions do not need a procedure number, and so the procedure number is set "
39788 "to C<-1>."
39789 msgstr ""
39790
39791 #. type: textblock
39792 #: ../src/guestfs.pod:2717
39793 msgid "Implement the action (in C):"
39794 msgstr ""
39795
39796 #. type: textblock
39797 #: ../src/guestfs.pod:2719
39798 msgid ""
39799 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39800 "C<daemon/> directory."
39801 msgstr ""
39802
39803 #. type: textblock
39804 #: ../src/guestfs.pod:2722
39805 msgid ""
39806 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39807 "(note: double underscore) in the C<src/> directory."
39808 msgstr ""
39809
39810 #. type: textblock
39811 #: ../src/guestfs.pod:2725
39812 msgid "In either case, use another function as an example of what to do."
39813 msgstr ""
39814
39815 #. type: textblock
39816 #: ../src/guestfs.pod:2729
39817 msgid "After making these changes, use C<make> to compile."
39818 msgstr ""
39819
39820 #. type: textblock
39821 #: ../src/guestfs.pod:2731
39822 msgid ""
39823 "Note that you don't need to implement the RPC, language bindings, manual "
39824 "pages or anything else.  It's all automatically generated from the OCaml "
39825 "description."
39826 msgstr ""
39827
39828 #. type: =head2
39829 #: ../src/guestfs.pod:2735
39830 msgid "ADDING TESTS FOR AN API ACTION"
39831 msgstr ""
39832
39833 #. type: textblock
39834 #: ../src/guestfs.pod:2737
39835 msgid ""
39836 "You can supply zero or as many tests as you want per API call.  The tests "
39837 "can either be added as part of the API description "
39838 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
39839 "drop a script into C<regressions/>.  Note that adding a script to "
39840 "C<regressions/> is slower, so if possible use the first method."
39841 msgstr ""
39842
39843 #. type: textblock
39844 #: ../src/guestfs.pod:2743
39845 msgid ""
39846 "The following describes the test environment used when you add an API test "
39847 "in C<generator_actions.ml>."
39848 msgstr ""
39849
39850 #. type: textblock
39851 #: ../src/guestfs.pod:2746
39852 msgid "The test environment has 4 block devices:"
39853 msgstr ""
39854
39855 #. type: =item
39856 #: ../src/guestfs.pod:2750
39857 msgid "C</dev/sda> 500MB"
39858 msgstr ""
39859
39860 #. type: textblock
39861 #: ../src/guestfs.pod:2752
39862 msgid "General block device for testing."
39863 msgstr ""
39864
39865 #. type: =item
39866 #: ../src/guestfs.pod:2754
39867 msgid "C</dev/sdb> 50MB"
39868 msgstr ""
39869
39870 #. type: textblock
39871 #: ../src/guestfs.pod:2756
39872 msgid ""
39873 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39874 "operations."
39875 msgstr ""
39876
39877 #. type: =item
39878 #: ../src/guestfs.pod:2759
39879 msgid "C</dev/sdc> 10MB"
39880 msgstr ""
39881
39882 #. type: textblock
39883 #: ../src/guestfs.pod:2761
39884 msgid "Used in a few tests where two block devices are needed."
39885 msgstr ""
39886
39887 #. type: =item
39888 #: ../src/guestfs.pod:2763
39889 msgid "C</dev/sdd>"
39890 msgstr ""
39891
39892 #. type: textblock
39893 #: ../src/guestfs.pod:2765
39894 msgid "ISO with fixed content (see C<images/test.iso>)."
39895 msgstr ""
39896
39897 #. type: textblock
39898 #: ../src/guestfs.pod:2769
39899 msgid ""
39900 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39901 "appliance and block devices are reused between tests.  So don't try testing "
39902 "L</guestfs_kill_subprocess> :-x"
39903 msgstr ""
39904
39905 #. type: textblock
39906 #: ../src/guestfs.pod:2773
39907 msgid ""
39908 "Each test starts with an initial scenario, selected using one of the "
39909 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39910 "initialize the disks mentioned above in a particular way as documented in "
39911 "C<generator_types.ml>.  You should not assume anything about the previous "
39912 "contents of other disks that are not initialized."
39913 msgstr ""
39914
39915 #. type: textblock
39916 #: ../src/guestfs.pod:2779
39917 msgid ""
39918 "You can add a prerequisite clause to any individual test.  This is a "
39919 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
39920 "if testing a command which might not work on all variations of libguestfs "
39921 "builds.  A test that has prerequisite of C<Always> means to run "
39922 "unconditionally."
39923 msgstr ""
39924
39925 #. type: textblock
39926 #: ../src/guestfs.pod:2785
39927 msgid ""
39928 "In addition, packagers can skip individual tests by setting environment "
39929 "variables before running C<make check>."
39930 msgstr ""
39931
39932 #. type: verbatim
39933 #: ../src/guestfs.pod:2788
39934 #, no-wrap
39935 msgid ""
39936 " SKIP_TEST_<CMD>_<NUM>=1\n"
39937 "\n"
39938 msgstr ""
39939
39940 #. type: textblock
39941 #: ../src/guestfs.pod:2790
39942 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39943 msgstr ""
39944
39945 #. type: verbatim
39946 #: ../src/guestfs.pod:2794
39947 #, no-wrap
39948 msgid ""
39949 " SKIP_TEST_<CMD>=1\n"
39950 "\n"
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../src/guestfs.pod:2796
39955 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39956 msgstr ""
39957
39958 #. type: textblock
39959 #: ../src/guestfs.pod:2798
39960 msgid "Packagers can run only certain tests by setting for example:"
39961 msgstr ""
39962
39963 #. type: verbatim
39964 #: ../src/guestfs.pod:2800
39965 #, no-wrap
39966 msgid ""
39967 " TEST_ONLY=\"vfs_type zerofree\"\n"
39968 "\n"
39969 msgstr ""
39970
39971 #. type: textblock
39972 #: ../src/guestfs.pod:2802
39973 msgid ""
39974 "See C<capitests/tests.c> for more details of how these environment variables "
39975 "work."
39976 msgstr ""
39977
39978 #. type: =head2
39979 #: ../src/guestfs.pod:2805
39980 msgid "DEBUGGING NEW API ACTIONS"
39981 msgstr ""
39982
39983 #. type: textblock
39984 #: ../src/guestfs.pod:2807
39985 msgid "Test new actions work before submitting them."
39986 msgstr ""
39987
39988 #. type: textblock
39989 #: ../src/guestfs.pod:2809
39990 msgid "You can use guestfish to try out new commands."
39991 msgstr ""
39992
39993 #. type: textblock
39994 #: ../src/guestfs.pod:2811
39995 msgid ""
39996 "Debugging the daemon is a problem because it runs inside a minimal "
39997 "environment.  However you can fprintf messages in the daemon to stderr, and "
39998 "they will show up if you use C<guestfish -v>."
39999 msgstr ""
40000
40001 #. type: =head2
40002 #: ../src/guestfs.pod:2815
40003 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40004 msgstr ""
40005
40006 #. type: textblock
40007 #: ../src/guestfs.pod:2817
40008 msgid ""
40009 "Our C source code generally adheres to some basic code-formatting "
40010 "conventions.  The existing code base is not totally consistent on this "
40011 "front, but we do prefer that contributed code be formatted similarly.  In "
40012 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40013 "indentation level, and other than that, follow the K&R style."
40014 msgstr ""
40015
40016 #. type: textblock
40017 #: ../src/guestfs.pod:2823
40018 msgid ""
40019 "If you use Emacs, add the following to one of one of your start-up files "
40020 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
40021 msgstr ""
40022
40023 #. type: verbatim
40024 #: ../src/guestfs.pod:2826
40025 #, no-wrap
40026 msgid ""
40027 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40028 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40029 " (add-hook 'find-file-hook\n"
40030 "     '(lambda () (if (and buffer-file-name\n"
40031 "                          (string-match \"/libguestfs\\\\>\"\n"
40032 "                              (buffer-file-name))\n"
40033 "                          (not (string-equal mode-name \"Change Log\"))\n"
40034 "                          (not (string-equal mode-name \"Makefile\")))\n"
40035 "                     (setq indent-tabs-mode nil))))\n"
40036 " \n"
40037 msgstr ""
40038
40039 #. type: verbatim
40040 #: ../src/guestfs.pod:2836
40041 #, no-wrap
40042 msgid ""
40043 " ;;; When editing C sources in libguestfs, use this style.\n"
40044 " (defun libguestfs-c-mode ()\n"
40045 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40046 "   (interactive)\n"
40047 "   (c-set-style \"K&R\")\n"
40048 "   (setq c-indent-level 2)\n"
40049 "   (setq c-basic-offset 2))\n"
40050 " (add-hook 'c-mode-hook\n"
40051 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40052 "                               (buffer-file-name))\n"
40053 "                           (libguestfs-c-mode))))\n"
40054 "\n"
40055 msgstr ""
40056
40057 #. type: textblock
40058 #: ../src/guestfs.pod:2848
40059 msgid "Enable warnings when compiling (and fix any problems this finds):"
40060 msgstr ""
40061
40062 #. type: verbatim
40063 #: ../src/guestfs.pod:2851
40064 #, no-wrap
40065 msgid ""
40066 " ./configure --enable-gcc-warnings\n"
40067 "\n"
40068 msgstr ""
40069
40070 #. type: textblock
40071 #: ../src/guestfs.pod:2853
40072 msgid "Useful targets are:"
40073 msgstr ""
40074
40075 #. type: verbatim
40076 #: ../src/guestfs.pod:2855
40077 #, no-wrap
40078 msgid ""
40079 " make syntax-check  # checks the syntax of the C code\n"
40080 " make check         # runs the test suite\n"
40081 "\n"
40082 msgstr ""
40083
40084 #. type: =head2
40085 #: ../src/guestfs.pod:2858
40086 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40087 msgstr ""
40088
40089 #. type: textblock
40090 #: ../src/guestfs.pod:2860
40091 msgid ""
40092 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40093 "which are used to do shell quoting."
40094 msgstr ""
40095
40096 #. type: =item
40097 #: ../src/guestfs.pod:2865
40098 msgid "%Q"
40099 msgstr ""
40100
40101 #. type: textblock
40102 #: ../src/guestfs.pod:2867
40103 msgid ""
40104 "Simple shell quoted string.  Any spaces or other shell characters are "
40105 "escaped for you."
40106 msgstr ""
40107
40108 #. type: =item
40109 #: ../src/guestfs.pod:2870
40110 msgid "%R"
40111 msgstr ""
40112
40113 #. type: textblock
40114 #: ../src/guestfs.pod:2872
40115 msgid ""
40116 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40117 "the sysroot."
40118 msgstr ""
40119
40120 #. type: verbatim
40121 #: ../src/guestfs.pod:2879
40122 #, no-wrap
40123 msgid ""
40124 " asprintf (&cmd, \"cat %R\", path);\n"
40125 "\n"
40126 msgstr ""
40127
40128 #. type: textblock
40129 #: ../src/guestfs.pod:2881
40130 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40131 msgstr ""
40132
40133 #. type: textblock
40134 #: ../src/guestfs.pod:2883
40135 msgid ""
40136 "I<Note:> Do I<not> use these when you are passing parameters to the "
40137 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
40138 "because they are not passed via the shell (instead, straight to exec).  You "
40139 "probably want to use the C<sysroot_path()> function however."
40140 msgstr ""
40141
40142 #. type: =head2
40143 #: ../src/guestfs.pod:2889
40144 msgid "SUBMITTING YOUR NEW API ACTIONS"
40145 msgstr ""
40146
40147 #. type: textblock
40148 #: ../src/guestfs.pod:2891
40149 msgid ""
40150 "Submit patches to the mailing list: "
40151 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
40152 "L<rjones@redhat.com>."
40153 msgstr ""
40154
40155 #. type: =head2
40156 #: ../src/guestfs.pod:2895
40157 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40158 msgstr ""
40159
40160 #. type: textblock
40161 #: ../src/guestfs.pod:2897
40162 msgid "We support i18n (gettext anyhow) in the library."
40163 msgstr ""
40164
40165 #. type: textblock
40166 #: ../src/guestfs.pod:2899
40167 msgid ""
40168 "However many messages come from the daemon, and we don't translate those at "
40169 "the moment.  One reason is that the appliance generally has all locale files "
40170 "removed from it, because they take up a lot of space.  So we'd have to readd "
40171 "some of those, as well as copying our PO files into the appliance."
40172 msgstr ""
40173
40174 #. type: textblock
40175 #: ../src/guestfs.pod:2905
40176 msgid ""
40177 "Debugging messages are never translated, since they are intended for the "
40178 "programmers."
40179 msgstr ""
40180
40181 #. type: =head2
40182 #: ../src/guestfs.pod:2908
40183 msgid "SOURCE CODE SUBDIRECTORIES"
40184 msgstr ""
40185
40186 #. type: =item
40187 #: ../src/guestfs.pod:2912
40188 msgid "C<align>"
40189 msgstr ""
40190
40191 #. type: textblock
40192 #: ../src/guestfs.pod:2914
40193 msgid "L<virt-alignment-scan(1)> command and documentation."
40194 msgstr ""
40195
40196 #. type: textblock
40197 #: ../src/guestfs.pod:2918
40198 msgid "The libguestfs appliance, build scripts and so on."
40199 msgstr ""
40200
40201 #. type: =item
40202 #: ../src/guestfs.pod:2920
40203 msgid "C<capitests>"
40204 msgstr ""
40205
40206 #. type: textblock
40207 #: ../src/guestfs.pod:2922
40208 msgid "Automated tests of the C API."
40209 msgstr ""
40210
40211 #. type: =item
40212 #: ../src/guestfs.pod:2924
40213 msgid "C<cat>"
40214 msgstr ""
40215
40216 #. type: textblock
40217 #: ../src/guestfs.pod:2926
40218 msgid ""
40219 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40220 "documentation."
40221 msgstr ""
40222
40223 #. type: =item
40224 #: ../src/guestfs.pod:2929
40225 msgid "C<caution>"
40226 msgstr ""
40227
40228 #. type: textblock
40229 #: ../src/guestfs.pod:2931
40230 msgid ""
40231 "Safety and liveness tests of components that libguestfs depends upon (not of "
40232 "libguestfs itself).  Mainly this is for qemu and the kernel."
40233 msgstr ""
40234
40235 #. type: =item
40236 #: ../src/guestfs.pod:2934
40237 msgid "C<clone>"
40238 msgstr ""
40239
40240 #. type: textblock
40241 #: ../src/guestfs.pod:2936
40242 msgid ""
40243 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40244 "command and documentation."
40245 msgstr ""
40246
40247 #. type: =item
40248 #: ../src/guestfs.pod:2939
40249 msgid "C<contrib>"
40250 msgstr ""
40251
40252 #. type: textblock
40253 #: ../src/guestfs.pod:2941
40254 msgid "Outside contributions, experimental parts."
40255 msgstr ""
40256
40257 #. type: =item
40258 #: ../src/guestfs.pod:2943
40259 msgid "C<daemon>"
40260 msgstr ""
40261
40262 #. type: textblock
40263 #: ../src/guestfs.pod:2945
40264 msgid ""
40265 "The daemon that runs inside the libguestfs appliance and carries out "
40266 "actions."
40267 msgstr ""
40268
40269 #. type: =item
40270 #: ../src/guestfs.pod:2948
40271 msgid "C<df>"
40272 msgstr ""
40273
40274 #. type: textblock
40275 #: ../src/guestfs.pod:2950
40276 msgid "L<virt-df(1)> command and documentation."
40277 msgstr ""
40278
40279 #. type: =item
40280 #: ../src/guestfs.pod:2952
40281 msgid "C<edit>"
40282 msgstr ""
40283
40284 #. type: textblock
40285 #: ../src/guestfs.pod:2954
40286 msgid "L<virt-edit(1)> command and documentation."
40287 msgstr ""
40288
40289 #. type: =item
40290 #: ../src/guestfs.pod:2956
40291 msgid "C<examples>"
40292 msgstr ""
40293
40294 #. type: textblock
40295 #: ../src/guestfs.pod:2958
40296 msgid "C API example code."
40297 msgstr ""
40298
40299 #. type: =item
40300 #: ../src/guestfs.pod:2960
40301 msgid "C<extratests>"
40302 msgstr ""
40303
40304 #. type: textblock
40305 #: ../src/guestfs.pod:2962
40306 msgid ""
40307 "Extra tests.  These are not run by default because they require special "
40308 "tools or configuration."
40309 msgstr ""
40310
40311 #. type: =item
40312 #: ../src/guestfs.pod:2965
40313 msgid "C<fish>"
40314 msgstr ""
40315
40316 #. type: textblock
40317 #: ../src/guestfs.pod:2967
40318 msgid ""
40319 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40320 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40321 "L<virt-tar-out(1)>."
40322 msgstr ""
40323
40324 #. type: =item
40325 #: ../src/guestfs.pod:2971
40326 msgid "C<fuse>"
40327 msgstr ""
40328
40329 #. type: textblock
40330 #: ../src/guestfs.pod:2973
40331 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40332 msgstr ""
40333
40334 #. type: =item
40335 #: ../src/guestfs.pod:2975
40336 msgid "C<generator>"
40337 msgstr ""
40338
40339 #. type: textblock
40340 #: ../src/guestfs.pod:2977
40341 msgid ""
40342 "The crucially important generator, used to automatically generate large "
40343 "amounts of boilerplate C code for things like RPC and bindings."
40344 msgstr ""
40345
40346 #. type: =item
40347 #: ../src/guestfs.pod:2980
40348 msgid "C<images>"
40349 msgstr ""
40350
40351 #. type: textblock
40352 #: ../src/guestfs.pod:2982
40353 msgid "Files used by the test suite."
40354 msgstr ""
40355
40356 #. type: textblock
40357 #: ../src/guestfs.pod:2984
40358 msgid "Some \"phony\" guest images which we test against."
40359 msgstr ""
40360
40361 #. type: =item
40362 #: ../src/guestfs.pod:2986
40363 msgid "C<inspector>"
40364 msgstr ""
40365
40366 #. type: textblock
40367 #: ../src/guestfs.pod:2988
40368 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40369 msgstr ""
40370
40371 #. type: =item
40372 #: ../src/guestfs.pod:2990
40373 msgid "C<logo>"
40374 msgstr ""
40375
40376 #. type: textblock
40377 #: ../src/guestfs.pod:2992
40378 msgid "Logo used on the website.  The fish is called Arthur by the way."
40379 msgstr ""
40380
40381 #. type: =item
40382 #: ../src/guestfs.pod:2994
40383 msgid "C<m4>"
40384 msgstr ""
40385
40386 #. type: textblock
40387 #: ../src/guestfs.pod:2996
40388 msgid "M4 macros used by autoconf."
40389 msgstr ""
40390
40391 #. type: =item
40392 #: ../src/guestfs.pod:2998
40393 msgid "C<po>"
40394 msgstr ""
40395
40396 #. type: textblock
40397 #: ../src/guestfs.pod:3000
40398 msgid "Translations of simple gettext strings."
40399 msgstr ""
40400
40401 #. type: =item
40402 #: ../src/guestfs.pod:3002
40403 msgid "C<po-docs>"
40404 msgstr ""
40405
40406 #. type: textblock
40407 #: ../src/guestfs.pod:3004
40408 msgid ""
40409 "The build infrastructure and PO files for translations of manpages and POD "
40410 "files.  Eventually this will be combined with the C<po> directory, but that "
40411 "is rather complicated."
40412 msgstr ""
40413
40414 #. type: =item
40415 #: ../src/guestfs.pod:3008
40416 msgid "C<regressions>"
40417 msgstr ""
40418
40419 #. type: textblock
40420 #: ../src/guestfs.pod:3010
40421 msgid "Regression tests."
40422 msgstr ""
40423
40424 #. type: =item
40425 #: ../src/guestfs.pod:3012
40426 msgid "C<rescue>"
40427 msgstr ""
40428
40429 #. type: textblock
40430 #: ../src/guestfs.pod:3014
40431 msgid "L<virt-rescue(1)> command and documentation."
40432 msgstr ""
40433
40434 #. type: =item
40435 #: ../src/guestfs.pod:3016
40436 msgid "C<resize>"
40437 msgstr ""
40438
40439 #. type: textblock
40440 #: ../src/guestfs.pod:3018
40441 msgid "L<virt-resize(1)> command and documentation."
40442 msgstr ""
40443
40444 #. type: =item
40445 #: ../src/guestfs.pod:3020
40446 msgid "C<sparsify>"
40447 msgstr ""
40448
40449 #. type: textblock
40450 #: ../src/guestfs.pod:3022
40451 msgid "L<virt-sparsify(1)> command and documentation."
40452 msgstr ""
40453
40454 #. type: =item
40455 #: ../src/guestfs.pod:3024
40456 msgid "C<src>"
40457 msgstr ""
40458
40459 #. type: textblock
40460 #: ../src/guestfs.pod:3026
40461 msgid "Source code to the C library."
40462 msgstr ""
40463
40464 #. type: =item
40465 #: ../src/guestfs.pod:3028
40466 msgid "C<tools>"
40467 msgstr ""
40468
40469 #. type: textblock
40470 #: ../src/guestfs.pod:3030
40471 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40472 msgstr ""
40473
40474 #. type: =item
40475 #: ../src/guestfs.pod:3032
40476 msgid "C<test-tool>"
40477 msgstr ""
40478
40479 #. type: textblock
40480 #: ../src/guestfs.pod:3034
40481 msgid ""
40482 "Test tool for end users to test if their qemu/kernel combination will work "
40483 "with libguestfs."
40484 msgstr ""
40485
40486 #. type: =item
40487 #: ../src/guestfs.pod:3037
40488 msgid "C<csharp>"
40489 msgstr ""
40490
40491 #. type: =item
40492 #: ../src/guestfs.pod:3039
40493 msgid "C<erlang>"
40494 msgstr ""
40495
40496 #. type: =item
40497 #: ../src/guestfs.pod:3041
40498 msgid "C<haskell>"
40499 msgstr ""
40500
40501 #. type: =item
40502 #: ../src/guestfs.pod:3043
40503 msgid "C<java>"
40504 msgstr ""
40505
40506 #. type: =item
40507 #: ../src/guestfs.pod:3045
40508 msgid "C<ocaml>"
40509 msgstr ""
40510
40511 #. type: =item
40512 #: ../src/guestfs.pod:3047
40513 msgid "C<php>"
40514 msgstr ""
40515
40516 #. type: =item
40517 #: ../src/guestfs.pod:3049
40518 msgid "C<perl>"
40519 msgstr ""
40520
40521 #. type: =item
40522 #: ../src/guestfs.pod:3051
40523 msgid "C<python>"
40524 msgstr ""
40525
40526 #. type: =item
40527 #: ../src/guestfs.pod:3053
40528 msgid "C<ruby>"
40529 msgstr ""
40530
40531 #. type: textblock
40532 #: ../src/guestfs.pod:3055
40533 msgid "Language bindings."
40534 msgstr ""
40535
40536 #. type: =head2
40537 #: ../src/guestfs.pod:3059
40538 msgid "MAKING A STABLE RELEASE"
40539 msgstr ""
40540
40541 #. type: textblock
40542 #: ../src/guestfs.pod:3061
40543 msgid ""
40544 "When we make a stable release, there are several steps documented here.  See "
40545 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40546 "branch policy."
40547 msgstr ""
40548
40549 #. type: textblock
40550 #: ../src/guestfs.pod:3069
40551 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40552 msgstr ""
40553
40554 #. type: textblock
40555 #: ../src/guestfs.pod:3074
40556 msgid "Finalize RELEASE-NOTES."
40557 msgstr ""
40558
40559 #. type: textblock
40560 #: ../src/guestfs.pod:3078
40561 msgid "Update ROADMAP."
40562 msgstr ""
40563
40564 #. type: textblock
40565 #: ../src/guestfs.pod:3082
40566 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40567 msgstr ""
40568
40569 #. type: textblock
40570 #: ../src/guestfs.pod:3086
40571 msgid "Push and pull from Transifex."
40572 msgstr ""
40573
40574 #. type: verbatim
40575 #: ../src/guestfs.pod:3090
40576 #, no-wrap
40577 msgid ""
40578 " tx push -s\n"
40579 "\n"
40580 msgstr ""
40581
40582 #. type: textblock
40583 #: ../src/guestfs.pod:3092
40584 msgid "to push the latest POT files to Transifex.  Then run:"
40585 msgstr ""
40586
40587 #. type: verbatim
40588 #: ../src/guestfs.pod:3094
40589 #, no-wrap
40590 msgid ""
40591 " ./tx-pull.sh\n"
40592 "\n"
40593 msgstr ""
40594
40595 #. type: textblock
40596 #: ../src/guestfs.pod:3096
40597 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40598 msgstr ""
40599
40600 #. type: textblock
40601 #: ../src/guestfs.pod:3100
40602 msgid ""
40603 "Create new stable and development directories under "
40604 "L<http://libguestfs.org/download>."
40605 msgstr ""
40606
40607 #. type: textblock
40608 #: ../src/guestfs.pod:3105
40609 msgid "Create the branch in git:"
40610 msgstr ""
40611
40612 #. type: verbatim
40613 #: ../src/guestfs.pod:3107
40614 #, no-wrap
40615 msgid ""
40616 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40617 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40618 " git branch stable-1.XX\n"
40619 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40620 "\n"
40621 msgstr ""
40622
40623 #. type: =head1
40624 #: ../src/guestfs.pod:3114
40625 msgid "LIMITS"
40626 msgstr ""
40627
40628 #. type: =head2
40629 #: ../src/guestfs.pod:3116
40630 msgid "PROTOCOL LIMITS"
40631 msgstr ""
40632
40633 #. type: textblock
40634 #: ../src/guestfs.pod:3118
40635 msgid ""
40636 "Internally libguestfs uses a message-based protocol to pass API calls and "
40637 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40638 "plenty more detail about this).  The maximum message size used by the "
40639 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40640 "aware of this limit.  The API calls which may be affected are individually "
40641 "documented, with a link back to this section of the documentation."
40642 msgstr ""
40643
40644 #. type: textblock
40645 #: ../src/guestfs.pod:3126
40646 msgid ""
40647 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40648 "a simple string.  Because this string is at some point internally encoded as "
40649 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40650 "the requested file is larger than this then you will get an error."
40651 msgstr ""
40652
40653 #. type: textblock
40654 #: ../src/guestfs.pod:3132
40655 msgid ""
40656 "In order to transfer large files into and out of the guest filesystem, you "
40657 "need to use particular calls that support this.  The sections L</UPLOADING> "
40658 "and L</DOWNLOADING> document how to do this."
40659 msgstr ""
40660
40661 #. type: textblock
40662 #: ../src/guestfs.pod:3136
40663 msgid ""
40664 "You might also consider mounting the disk image using our FUSE filesystem "
40665 "support (L<guestmount(1)>)."
40666 msgstr ""
40667
40668 #. type: =head2
40669 #: ../src/guestfs.pod:3139
40670 msgid "MAXIMUM NUMBER OF DISKS"
40671 msgstr ""
40672
40673 #. type: textblock
40674 #: ../src/guestfs.pod:3141
40675 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40676 msgstr ""
40677
40678 #. type: textblock
40679 #: ../src/guestfs.pod:3144
40680 msgid ""
40681 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40682 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40683 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40684 "purposes."
40685 msgstr ""
40686
40687 #. type: textblock
40688 #: ../src/guestfs.pod:3149
40689 msgid ""
40690 "We are working to substantially raise this limit in future versions but it "
40691 "requires complex changes to qemu."
40692 msgstr ""
40693
40694 #. type: textblock
40695 #: ../src/guestfs.pod:3152
40696 msgid ""
40697 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40698 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40699 "requires changes to qemu."
40700 msgstr ""
40701
40702 #. type: =head2
40703 #: ../src/guestfs.pod:3156
40704 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40705 msgstr ""
40706
40707 #. type: textblock
40708 #: ../src/guestfs.pod:3158
40709 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40710 msgstr ""
40711
40712 #. type: textblock
40713 #: ../src/guestfs.pod:3160
40714 msgid ""
40715 "This is because it reserves 4 bits for the minor device number (thus "
40716 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
40717 msgstr ""
40718
40719 #. type: textblock
40720 #: ../src/guestfs.pod:3163
40721 msgid ""
40722 "If you attach a disk with more than 15 partitions, the extra partitions are "
40723 "ignored by libguestfs."
40724 msgstr ""
40725
40726 #. type: =head2
40727 #: ../src/guestfs.pod:3166
40728 msgid "MAXIMUM SIZE OF A DISK"
40729 msgstr ""
40730
40731 #. type: textblock
40732 #: ../src/guestfs.pod:3168
40733 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40734 msgstr ""
40735
40736 #. type: textblock
40737 #: ../src/guestfs.pod:3170
40738 msgid ""
40739 "We have tested block devices up to 1 exabyte (2**60 or "
40740 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40741 "filesystem."
40742 msgstr ""
40743
40744 #. type: textblock
40745 #: ../src/guestfs.pod:3174
40746 msgid ""
40747 "Although libguestfs probably does not impose any limit, the underlying host "
40748 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40749 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40750 "TB).  If you store disk images as host logical volumes then you are limited "
40751 "by the maximum size of an LV."
40752 msgstr ""
40753
40754 #. type: textblock
40755 #: ../src/guestfs.pod:3180
40756 msgid ""
40757 "For the hugest disk image files, we recommend using XFS on the host for "
40758 "storage."
40759 msgstr ""
40760
40761 #. type: =head2
40762 #: ../src/guestfs.pod:3183
40763 msgid "MAXIMUM SIZE OF A PARTITION"
40764 msgstr ""
40765
40766 #. type: textblock
40767 #: ../src/guestfs.pod:3185
40768 msgid ""
40769 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40770 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40771 "address a partition located beyond 2 TB on the disk."
40772 msgstr ""
40773
40774 #. type: textblock
40775 #: ../src/guestfs.pod:3189
40776 msgid ""
40777 "It is recommended that you use GPT partitions on disks which are larger than "
40778 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40779 "which are theoretically larger than the largest disk we could support."
40780 msgstr ""
40781
40782 #. type: =head2
40783 #: ../src/guestfs.pod:3194
40784 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40785 msgstr ""
40786
40787 #. type: textblock
40788 #: ../src/guestfs.pod:3196
40789 msgid ""
40790 "This depends on the filesystem type.  libguestfs itself does not impose any "
40791 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40792 "what these limits are."
40793 msgstr ""
40794
40795 #. type: =head2
40796 #: ../src/guestfs.pod:3200
40797 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40798 msgstr ""
40799
40800 #. type: textblock
40801 #: ../src/guestfs.pod:3202
40802 msgid ""
40803 "The API functions L</guestfs_upload>, L</guestfs_download>, "
40804 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40805 "uploads and downloads."
40806 msgstr ""
40807
40808 #. type: =head2
40809 #: ../src/guestfs.pod:3206
40810 msgid "INSPECTION LIMITS"
40811 msgstr ""
40812
40813 #. type: textblock
40814 #: ../src/guestfs.pod:3208
40815 msgid ""
40816 "The inspection code has several arbitrary limits on things like the size of "
40817 "Windows Registry hive it will read, and the length of product name.  These "
40818 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40819 "memory and disk space on the host, and should not be reached in practice.  "
40820 "See the source code for more information."
40821 msgstr ""
40822
40823 #. type: textblock
40824 #: ../src/guestfs.pod:3234
40825 msgid ""
40826 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40827 "effect as calling C<guestfs_set_verbose (g, 1)>."
40828 msgstr ""
40829
40830 #. type: textblock
40831 #: ../src/guestfs.pod:3246
40832 msgid ""
40833 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40834 "the discussion of paths in section L</PATH> above."
40835 msgstr ""
40836
40837 #. type: textblock
40838 #: ../src/guestfs.pod:3255
40839 msgid "See also L</QEMU WRAPPERS> above."
40840 msgstr ""
40841
40842 #. type: textblock
40843 #: ../src/guestfs.pod:3259
40844 msgid ""
40845 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40846 "effect as calling C<guestfs_set_trace (g, 1)>."
40847 msgstr ""
40848
40849 #. type: textblock
40850 #: ../src/guestfs.pod:3277
40851 msgid ""
40852 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
40853 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
40854 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
40855 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
40856 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
40857 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40858 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
40859 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
40860 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
40861 "L<virt-win-reg(1)>, L<guestfs-testing(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40862 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
40863 "L<http://libguestfs.org/>."
40864 msgstr ""
40865
40866 #. type: textblock
40867 #: ../src/guestfs.pod:3314
40868 msgid ""
40869 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
40870 "L<lvm(8)>, L<disktype(1)>."
40871 msgstr ""
40872
40873 #. type: =head1
40874 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
40875 msgid "BUGS"
40876 msgstr ""
40877
40878 #. type: textblock
40879 #: ../src/guestfs.pod:3323
40880 msgid "To get a list of bugs against libguestfs use this link:"
40881 msgstr ""
40882
40883 #. type: textblock
40884 #: ../src/guestfs.pod:3325
40885 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
40886 msgstr ""
40887
40888 #. type: textblock
40889 #: ../src/guestfs.pod:3327
40890 msgid "To report a new bug against libguestfs use this link:"
40891 msgstr ""
40892
40893 #. type: textblock
40894 #: ../src/guestfs.pod:3329
40895 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
40896 msgstr ""
40897
40898 #. type: textblock
40899 #: ../src/guestfs.pod:3331
40900 msgid "When reporting a bug, please check:"
40901 msgstr ""
40902
40903 #. type: textblock
40904 #: ../src/guestfs.pod:3337
40905 msgid "That the bug hasn't been reported already."
40906 msgstr ""
40907
40908 #. type: textblock
40909 #: ../src/guestfs.pod:3341
40910 msgid "That you are testing a recent version."
40911 msgstr ""
40912
40913 #. type: textblock
40914 #: ../src/guestfs.pod:3345
40915 msgid "Describe the bug accurately, and give a way to reproduce it."
40916 msgstr ""
40917
40918 #. type: textblock
40919 #: ../src/guestfs.pod:3349
40920 msgid ""
40921 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40922 "bug report."
40923 msgstr ""
40924
40925 #. type: textblock
40926 #: ../test-tool/libguestfs-test-tool.pod:5
40927 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40928 msgstr ""
40929
40930 #. type: verbatim
40931 #: ../test-tool/libguestfs-test-tool.pod:9
40932 #, no-wrap
40933 msgid ""
40934 " libguestfs-test-tool [--options]\n"
40935 "\n"
40936 msgstr ""
40937
40938 #. type: textblock
40939 #: ../test-tool/libguestfs-test-tool.pod:13
40940 msgid ""
40941 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40942 "to check basic libguestfs functionality is working.  This is needed because "
40943 "libguestfs occasionally breaks for reasons beyond our control: usually "
40944 "because of changes in the underlying qemu or kernel packages, or the host "
40945 "environment."
40946 msgstr ""
40947
40948 #. type: textblock
40949 #: ../test-tool/libguestfs-test-tool.pod:19
40950 msgid "If you suspect a problem in libguestfs, then just run:"
40951 msgstr ""
40952
40953 #. type: verbatim
40954 #: ../test-tool/libguestfs-test-tool.pod:21
40955 #, no-wrap
40956 msgid ""
40957 " libguestfs-test-tool\n"
40958 "\n"
40959 msgstr ""
40960
40961 #. type: textblock
40962 #: ../test-tool/libguestfs-test-tool.pod:23
40963 msgid "It will print lots of diagnostic messages."
40964 msgstr ""
40965
40966 #. type: textblock
40967 #: ../test-tool/libguestfs-test-tool.pod:25
40968 msgid "If it runs to completion successfully, you will see this near the end:"
40969 msgstr ""
40970
40971 #. type: verbatim
40972 #: ../test-tool/libguestfs-test-tool.pod:27
40973 #, no-wrap
40974 msgid ""
40975 " ===== TEST FINISHED OK =====\n"
40976 "\n"
40977 msgstr ""
40978
40979 #. type: textblock
40980 #: ../test-tool/libguestfs-test-tool.pod:29
40981 msgid "and the test tool will exit with code 0."
40982 msgstr ""
40983
40984 #. type: textblock
40985 #: ../test-tool/libguestfs-test-tool.pod:31
40986 msgid ""
40987 "If it fails (and/or exits with non-zero error code), please paste the "
40988 "I<complete, unedited> output of the test tool into a bug report.  More "
40989 "information about reporting bugs can be found on the "
40990 "L<http://libguestfs.org/> website."
40991 msgstr ""
40992
40993 #. type: textblock
40994 #: ../test-tool/libguestfs-test-tool.pod:42
40995 msgid "Display short usage information and exit."
40996 msgstr ""
40997
40998 #. type: =item
40999 #: ../test-tool/libguestfs-test-tool.pod:44
41000 msgid "B<--qemu qemu_binary>"
41001 msgstr ""
41002
41003 #. type: textblock
41004 #: ../test-tool/libguestfs-test-tool.pod:46
41005 msgid ""
41006 "If you have downloaded another qemu binary, point this option at the full "
41007 "path of the binary to try it."
41008 msgstr ""
41009
41010 #. type: =item
41011 #: ../test-tool/libguestfs-test-tool.pod:49
41012 msgid "B<--qemudir qemu_source_dir>"
41013 msgstr ""
41014
41015 #. type: textblock
41016 #: ../test-tool/libguestfs-test-tool.pod:51
41017 msgid ""
41018 "If you have compiled qemu from source, point this option at the source "
41019 "directory to try it."
41020 msgstr ""
41021
41022 #. type: =item
41023 #: ../test-tool/libguestfs-test-tool.pod:54
41024 msgid "B<-t N>"
41025 msgstr ""
41026
41027 #. type: =item
41028 #: ../test-tool/libguestfs-test-tool.pod:56
41029 msgid "B<--timeout N>"
41030 msgstr ""
41031
41032 #. type: textblock
41033 #: ../test-tool/libguestfs-test-tool.pod:58
41034 msgid ""
41035 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41036 "minutes) which does not usually need to be adjusted."
41037 msgstr ""
41038
41039 #. type: =head1
41040 #: ../test-tool/libguestfs-test-tool.pod:63
41041 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41042 msgstr ""
41043
41044 #. type: textblock
41045 #: ../test-tool/libguestfs-test-tool.pod:65
41046 msgid ""
41047 "If you have compiled another version of qemu from source and would like to "
41048 "try that, then you can use the I<--qemudir> option to point to the qemu "
41049 "source directory."
41050 msgstr ""
41051
41052 #. type: textblock
41053 #: ../test-tool/libguestfs-test-tool.pod:69
41054 msgid ""
41055 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41056 "option to point to the binary."
41057 msgstr ""
41058
41059 #. type: textblock
41060 #: ../test-tool/libguestfs-test-tool.pod:72
41061 msgid ""
41062 "Note when using these options, you can ignore the business of qemu wrapper "
41063 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41064 "wrapper script for you if one is needed."
41065 msgstr ""
41066
41067 #. type: =head1
41068 #: ../test-tool/libguestfs-test-tool.pod:76
41069 msgid "TRYING OUT A DIFFERENT KERNEL"
41070 msgstr ""
41071
41072 #. type: textblock
41073 #: ../test-tool/libguestfs-test-tool.pod:78
41074 msgid ""
41075 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41076 "libguestfs tries.  You do this by setting the environment variables "
41077 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41078 msgstr ""
41079
41080 #. type: textblock
41081 #: ../test-tool/libguestfs-test-tool.pod:82
41082 msgid ""
41083 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41084 "information."
41085 msgstr ""
41086
41087 #. type: =head1
41088 #: ../test-tool/libguestfs-test-tool.pod:85
41089 msgid "SELF-DIAGNOSIS"
41090 msgstr ""
41091
41092 #. type: textblock
41093 #: ../test-tool/libguestfs-test-tool.pod:87
41094 msgid ""
41095 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41096 "produced by libguestfs-test-tool and/or possible errors."
41097 msgstr ""
41098
41099 #. type: textblock
41100 #: ../test-tool/libguestfs-test-tool.pod:92
41101 msgid ""
41102 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41103 "I<1> if there was an error."
41104 msgstr ""
41105
41106 #. type: textblock
41107 #: ../test-tool/libguestfs-test-tool.pod:97
41108 msgid ""
41109 "For the full list of environment variables which may affect libguestfs, "
41110 "please see the L<guestfs(3)> manual page."
41111 msgstr ""
41112
41113 #. type: textblock
41114 #: ../test-tool/libguestfs-test-tool.pod:102
41115 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41116 msgstr ""
41117
41118 #. type: textblock
41119 #: ../tools/virt-list-filesystems.pl:32
41120 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41121 msgstr ""
41122
41123 #. type: verbatim
41124 #: ../tools/virt-list-filesystems.pl:36
41125 #, no-wrap
41126 msgid ""
41127 " virt-list-filesystems [--options] domname\n"
41128 "\n"
41129 msgstr ""
41130
41131 #. type: verbatim
41132 #: ../tools/virt-list-filesystems.pl:38
41133 #, no-wrap
41134 msgid ""
41135 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41136 "\n"
41137 msgstr ""
41138
41139 #. type: textblock
41140 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41141 msgid ""
41142 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41143 "replacement."
41144 msgstr ""
41145
41146 #. type: textblock
41147 #: ../tools/virt-list-filesystems.pl:45
41148 msgid ""
41149 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41150 "are contained in a virtual machine or disk image."
41151 msgstr ""
41152
41153 #. type: textblock
41154 #: ../tools/virt-list-filesystems.pl:49
41155 msgid ""
41156 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41157 "functionality.  For more complex cases you should look at the "
41158 "L<guestfish(1)> tool."
41159 msgstr ""
41160
41161 #. type: textblock
41162 #: ../tools/virt-list-filesystems.pl:112
41163 msgid ""
41164 "With this option, C<virt-list-filesystems> displays the type of each "
41165 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41166 msgstr ""
41167
41168 #. type: =item
41169 #: ../tools/virt-list-filesystems.pl:119
41170 msgid "B<-a>"
41171 msgstr ""
41172
41173 #. type: textblock
41174 #: ../tools/virt-list-filesystems.pl:123
41175 msgid ""
41176 "Normally we only show mountable filesystems.  If this option is given then "
41177 "swap devices are shown too."
41178 msgstr ""
41179
41180 #. type: textblock
41181 #: ../tools/virt-list-filesystems.pl:197
41182 msgid ""
41183 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
41184 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
41185 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41186 msgstr ""
41187
41188 #. type: textblock
41189 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41190 msgid "Copyright (C) 2009 Red Hat Inc."
41191 msgstr ""
41192
41193 #. type: textblock
41194 #: ../tools/virt-list-partitions.pl:32
41195 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
41196 msgstr ""
41197
41198 #. type: verbatim
41199 #: ../tools/virt-list-partitions.pl:36
41200 #, no-wrap
41201 msgid ""
41202 " virt-list-partitions [--options] domname\n"
41203 "\n"
41204 msgstr ""
41205
41206 #. type: verbatim
41207 #: ../tools/virt-list-partitions.pl:38
41208 #, no-wrap
41209 msgid ""
41210 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41211 "\n"
41212 msgstr ""
41213
41214 #. type: textblock
41215 #: ../tools/virt-list-partitions.pl:45
41216 msgid ""
41217 "C<virt-list-partitions> is a command line tool to list the partitions that "
41218 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41219 "first step to using L<virt-resize(1)>."
41220 msgstr ""
41221
41222 #. type: textblock
41223 #: ../tools/virt-list-partitions.pl:50
41224 msgid ""
41225 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41226 "functionality.  For more complex cases you should look at the "
41227 "L<guestfish(1)> tool."
41228 msgstr ""
41229
41230 #. type: textblock
41231 #: ../tools/virt-list-partitions.pl:113
41232 msgid "Show sizes in human-readable form (eg. \"1G\")."
41233 msgstr ""
41234
41235 #. type: textblock
41236 #: ../tools/virt-list-partitions.pl:123
41237 msgid ""
41238 "With this option, C<virt-list-partitions> displays the type and size of each "
41239 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41240 msgstr ""
41241
41242 #. type: =item
41243 #: ../tools/virt-list-partitions.pl:130
41244 msgid "B<-t>"
41245 msgstr ""
41246
41247 #. type: =item
41248 #: ../tools/virt-list-partitions.pl:132
41249 msgid "B<--total>"
41250 msgstr ""
41251
41252 #. type: textblock
41253 #: ../tools/virt-list-partitions.pl:134
41254 msgid "Display the total size of each block device (as a separate row or rows)."
41255 msgstr ""
41256
41257 #. type: textblock
41258 #: ../tools/virt-list-partitions.pl:267
41259 msgid ""
41260 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
41261 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
41262 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41263 msgstr ""
41264
41265 #. type: textblock
41266 #: ../tools/virt-list-partitions.pl:283
41267 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41268 msgstr ""
41269
41270 #. type: textblock
41271 #: ../tools/virt-make-fs.pl:37
41272 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41273 msgstr ""
41274
41275 #. type: verbatim
41276 #: ../tools/virt-make-fs.pl:41
41277 #, no-wrap
41278 msgid ""
41279 " virt-make-fs [--options] input.tar output.img\n"
41280 "\n"
41281 msgstr ""
41282
41283 #. type: verbatim
41284 #: ../tools/virt-make-fs.pl:43
41285 #, no-wrap
41286 msgid ""
41287 " virt-make-fs [--options] input.tar.gz output.img\n"
41288 "\n"
41289 msgstr ""
41290
41291 #. type: verbatim
41292 #: ../tools/virt-make-fs.pl:45
41293 #, no-wrap
41294 msgid ""
41295 " virt-make-fs [--options] directory output.img\n"
41296 "\n"
41297 msgstr ""
41298
41299 #. type: textblock
41300 #: ../tools/virt-make-fs.pl:49
41301 msgid ""
41302 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41303 "archive or some files in a directory.  It is similar to tools like "
41304 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
41305 "it can create common filesystem types like ext2/3 or NTFS, which can be "
41306 "useful if you want to attach these filesystems to existing virtual machines "
41307 "(eg. to import large amounts of read-only data to a VM)."
41308 msgstr ""
41309
41310 #. type: textblock
41311 #: ../tools/virt-make-fs.pl:57
41312 msgid "Basic usage is:"
41313 msgstr ""
41314
41315 #. type: verbatim
41316 #: ../tools/virt-make-fs.pl:59
41317 #, no-wrap
41318 msgid ""
41319 " virt-make-fs input output.img\n"
41320 "\n"
41321 msgstr ""
41322
41323 #. type: textblock
41324 #: ../tools/virt-make-fs.pl:61
41325 msgid ""
41326 "where C<input> is either a directory containing files that you want to add, "
41327 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41328 "C<output.img> is a disk image.  The input type is detected automatically.  "
41329 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41330 "extra flags (see L</OPTIONS> below)."
41331 msgstr ""
41332
41333 #. type: =head2
41334 #: ../tools/virt-make-fs.pl:67
41335 msgid "FILESYSTEM TYPE"
41336 msgstr ""
41337
41338 #. type: textblock
41339 #: ../tools/virt-make-fs.pl:69
41340 msgid ""
41341 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41342 "libguestfs supports can be used (but I<not> read-only formats like "
41343 "ISO9660).  Here are some of the more common choices:"
41344 msgstr ""
41345
41346 #. type: =item
41347 #: ../tools/virt-make-fs.pl:75
41348 msgid "I<ext3>"
41349 msgstr ""
41350
41351 #. type: textblock
41352 #: ../tools/virt-make-fs.pl:77
41353 msgid ""
41354 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41355 "you are not going to use the filesystem in a way that requires the journal, "
41356 "then this is just wasted overhead."
41357 msgstr ""
41358
41359 #. type: =item
41360 #: ../tools/virt-make-fs.pl:81
41361 msgid "I<ntfs> or I<vfat>"
41362 msgstr ""
41363
41364 #. type: textblock
41365 #: ../tools/virt-make-fs.pl:83
41366 msgid "Useful if exporting data to a Windows guest."
41367 msgstr ""
41368
41369 #. type: textblock
41370 #: ../tools/virt-make-fs.pl:85
41371 msgid ""
41372 "I<Note for vfat>: The tar archive or local directory must only contain files "
41373 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41374 "program running within libguestfs is unable to change the ownership of "
41375 "non-root files, since vfat itself does not support this."
41376 msgstr ""
41377
41378 #. type: =item
41379 #: ../tools/virt-make-fs.pl:90
41380 msgid "I<minix>"
41381 msgstr ""
41382
41383 #. type: textblock
41384 #: ../tools/virt-make-fs.pl:92
41385 msgid ""
41386 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41387 "total filesystem size."
41388 msgstr ""
41389
41390 #. type: =head3
41391 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
41392 msgid "EXAMPLE"
41393 msgstr ""
41394
41395 #. type: verbatim
41396 #: ../tools/virt-make-fs.pl:99
41397 #, no-wrap
41398 msgid ""
41399 " virt-make-fs --type=minix input minixfs.img\n"
41400 "\n"
41401 msgstr ""
41402
41403 #. type: =head2
41404 #: ../tools/virt-make-fs.pl:101
41405 msgid "TO PARTITION OR NOT TO PARTITION"
41406 msgstr ""
41407
41408 #. type: textblock
41409 #: ../tools/virt-make-fs.pl:103
41410 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41411 msgstr ""
41412
41413 #. type: textblock
41414 #: ../tools/virt-make-fs.pl:105
41415 msgid ""
41416 "Adding a partition can make the disk image more compatible with certain "
41417 "virtualized operating systems which don't expect to see a filesystem "
41418 "directly located on a block device (Linux doesn't care and will happily "
41419 "handle both types)."
41420 msgstr ""
41421
41422 #. type: textblock
41423 #: ../tools/virt-make-fs.pl:110
41424 msgid ""
41425 "On the other hand, if you have a partition table then the output image is no "
41426 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41427 "directly on a partitioned disk image.  (However libguestfs tools such as "
41428 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41429 msgstr ""
41430
41431 #. type: textblock
41432 #: ../tools/virt-make-fs.pl:118
41433 msgid "Add an MBR partition:"
41434 msgstr ""
41435
41436 #. type: verbatim
41437 #: ../tools/virt-make-fs.pl:120
41438 #, no-wrap
41439 msgid ""
41440 " virt-make-fs --partition -- input disk.img\n"
41441 "\n"
41442 msgstr ""
41443
41444 #. type: textblock
41445 #: ../tools/virt-make-fs.pl:122
41446 msgid ""
41447 "If the output disk image could be terabyte-sized or larger, it's better to "
41448 "use an EFI/GPT-compatible partition table:"
41449 msgstr ""
41450
41451 #. type: verbatim
41452 #: ../tools/virt-make-fs.pl:125
41453 #, no-wrap
41454 msgid ""
41455 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41456 "\n"
41457 msgstr ""
41458
41459 #. type: =head2
41460 #: ../tools/virt-make-fs.pl:127
41461 msgid "EXTRA SPACE"
41462 msgstr ""
41463
41464 #. type: textblock
41465 #: ../tools/virt-make-fs.pl:129
41466 msgid ""
41467 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41468 "the files that it contains, but might have extra space.  Depending on how "
41469 "you are going to use the output, you might think this extra space is wasted "
41470 "and want to minimize it, or you might want to leave space so that more files "
41471 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41472 "but you can use the I<--size> flag to leave space in the filesystem if you "
41473 "want it."
41474 msgstr ""
41475
41476 #. type: textblock
41477 #: ../tools/virt-make-fs.pl:137
41478 msgid ""
41479 "An alternative way to leave extra space but not make the output image any "
41480 "bigger is to use an alternative disk image format (instead of the default "
41481 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41482 "image format (check your hypervisor supports this before using it).  This "
41483 "allows you to choose a large I<--size> but the extra space won't actually be "
41484 "allocated in the image until you try to store something in it."
41485 msgstr ""
41486
41487 #. type: textblock
41488 #: ../tools/virt-make-fs.pl:145
41489 msgid ""
41490 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41491 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41492 "to build another image from scratch."
41493 msgstr ""
41494
41495 #. type: verbatim
41496 #: ../tools/virt-make-fs.pl:151
41497 #, no-wrap
41498 msgid ""
41499 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41500 "\n"
41501 msgstr ""
41502
41503 #. type: textblock
41504 #: ../tools/virt-make-fs.pl:179
41505 msgid "Enable debugging information."
41506 msgstr ""
41507
41508 #. type: =item
41509 #: ../tools/virt-make-fs.pl:185
41510 msgid "B<--size=E<lt>NE<gt>>"
41511 msgstr ""
41512
41513 #. type: =item
41514 #: ../tools/virt-make-fs.pl:187
41515 msgid "B<--size=+E<lt>NE<gt>>"
41516 msgstr ""
41517
41518 #. type: =item
41519 #: ../tools/virt-make-fs.pl:189
41520 msgid "B<-s E<lt>NE<gt>>"
41521 msgstr ""
41522
41523 #. type: =item
41524 #: ../tools/virt-make-fs.pl:191
41525 msgid "B<-s +E<lt>NE<gt>>"
41526 msgstr ""
41527
41528 #. type: textblock
41529 #: ../tools/virt-make-fs.pl:193
41530 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41531 msgstr ""
41532
41533 #. type: textblock
41534 #: ../tools/virt-make-fs.pl:196
41535 msgid ""
41536 "If this option is I<not> given, then the output image will be just large "
41537 "enough to contain all the files, with not much wasted space."
41538 msgstr ""
41539
41540 #. type: textblock
41541 #: ../tools/virt-make-fs.pl:199
41542 msgid ""
41543 "To choose a fixed size output disk, specify an absolute number followed by "
41544 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41545 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41546 "files, else you will get an error."
41547 msgstr ""
41548
41549 #. type: textblock
41550 #: ../tools/virt-make-fs.pl:204
41551 msgid ""
41552 "To leave extra space, specify C<+> (plus sign) and a number followed by "
41553 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41554 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41555 "the input files, and (approximately) an extra 200 MB free space."
41556 msgstr ""
41557
41558 #. type: textblock
41559 #: ../tools/virt-make-fs.pl:210
41560 msgid ""
41561 "Note that virt-make-fs estimates free space, and therefore will not produce "
41562 "filesystems containing precisely the free space requested.  (It is much more "
41563 "expensive and time-consuming to produce a filesystem which has precisely the "
41564 "desired free space)."
41565 msgstr ""
41566
41567 #. type: =item
41568 #: ../tools/virt-make-fs.pl:219
41569 msgid "B<--format=E<lt>fmtE<gt>>"
41570 msgstr ""
41571
41572 #. type: =item
41573 #: ../tools/virt-make-fs.pl:221
41574 msgid "B<-F E<lt>fmtE<gt>>"
41575 msgstr ""
41576
41577 #. type: textblock
41578 #: ../tools/virt-make-fs.pl:223
41579 msgid "Choose the output disk image format."
41580 msgstr ""
41581
41582 #. type: textblock
41583 #: ../tools/virt-make-fs.pl:225
41584 msgid "The default is C<raw> (raw sparse disk image)."
41585 msgstr ""
41586
41587 #. type: textblock
41588 #: ../tools/virt-make-fs.pl:227
41589 msgid ""
41590 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41591 "that would really make sense here is C<qcow2>."
41592 msgstr ""
41593
41594 #. type: =item
41595 #: ../tools/virt-make-fs.pl:234
41596 msgid "B<--type=E<lt>fsE<gt>>"
41597 msgstr ""
41598
41599 #. type: =item
41600 #: ../tools/virt-make-fs.pl:236
41601 msgid "B<-t E<lt>fsE<gt>>"
41602 msgstr ""
41603
41604 #. type: textblock
41605 #: ../tools/virt-make-fs.pl:238
41606 msgid "Choose the output filesystem type."
41607 msgstr ""
41608
41609 #. type: textblock
41610 #: ../tools/virt-make-fs.pl:240
41611 msgid "The default is C<ext2>."
41612 msgstr ""
41613
41614 #. type: textblock
41615 #: ../tools/virt-make-fs.pl:242
41616 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
41617 msgstr ""
41618
41619 #. type: =item
41620 #: ../tools/virt-make-fs.pl:249
41621 msgid "B<--partition>"
41622 msgstr ""
41623
41624 #. type: =item
41625 #: ../tools/virt-make-fs.pl:251
41626 msgid "B<--partition=E<lt>parttypeE<gt>>"
41627 msgstr ""
41628
41629 #. type: textblock
41630 #: ../tools/virt-make-fs.pl:253
41631 msgid ""
41632 "If specified, this flag adds an MBR partition table to the output disk "
41633 "image."
41634 msgstr ""
41635
41636 #. type: textblock
41637 #: ../tools/virt-make-fs.pl:256
41638 msgid ""
41639 "You can change the partition table type, eg. I<--partition=gpt> for large "
41640 "disks."
41641 msgstr ""
41642
41643 #. type: textblock
41644 #: ../tools/virt-make-fs.pl:259
41645 msgid ""
41646 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41647 "might consider the next parameter to be the partition type.  For example:"
41648 msgstr ""
41649
41650 #. type: verbatim
41651 #: ../tools/virt-make-fs.pl:263
41652 #, no-wrap
41653 msgid ""
41654 " virt-make-fs --partition input.tar output.img\n"
41655 "\n"
41656 msgstr ""
41657
41658 #. type: textblock
41659 #: ../tools/virt-make-fs.pl:265
41660 msgid ""
41661 "would cause virt-make-fs to think you wanted to use a partition type of "
41662 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41663 "dash) between options and the input and output arguments:"
41664 msgstr ""
41665
41666 #. type: verbatim
41667 #: ../tools/virt-make-fs.pl:269
41668 #, no-wrap
41669 msgid ""
41670 " virt-make-fs --partition -- input.tar output.img\n"
41671 "\n"
41672 msgstr ""
41673
41674 #. type: textblock
41675 #: ../tools/virt-make-fs.pl:271
41676 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41677 msgstr ""
41678
41679 #. type: textblock
41680 #: ../tools/virt-make-fs.pl:559
41681 msgid ""
41682 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41683 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
41684 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41685 msgstr ""
41686
41687 #. type: textblock
41688 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41689 msgid ""
41690 "When reporting bugs, please enable debugging and capture the I<complete> "
41691 "output:"
41692 msgstr ""
41693
41694 #. type: verbatim
41695 #: ../tools/virt-make-fs.pl:576
41696 #, no-wrap
41697 msgid ""
41698 " export LIBGUESTFS_DEBUG=1\n"
41699 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41700 "\n"
41701 msgstr ""
41702
41703 #. type: textblock
41704 #: ../tools/virt-make-fs.pl:579
41705 msgid ""
41706 "Attach /tmp/virt-make-fs.log to a new bug report at "
41707 "L<https://bugzilla.redhat.com/>"
41708 msgstr ""
41709
41710 #. type: textblock
41711 #: ../tools/virt-tar.pl:33
41712 msgid "virt-tar - Extract or upload files to a virtual machine"
41713 msgstr ""
41714
41715 #. type: verbatim
41716 #: ../tools/virt-tar.pl:37
41717 #, no-wrap
41718 msgid ""
41719 " virt-tar [--options] -x domname directory tarball\n"
41720 "\n"
41721 msgstr ""
41722
41723 #. type: verbatim
41724 #: ../tools/virt-tar.pl:39
41725 #, no-wrap
41726 msgid ""
41727 " virt-tar [--options] -u domname tarball directory\n"
41728 "\n"
41729 msgstr ""
41730
41731 #. type: verbatim
41732 #: ../tools/virt-tar.pl:41
41733 #, no-wrap
41734 msgid ""
41735 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41736 "\n"
41737 msgstr ""
41738
41739 #. type: verbatim
41740 #: ../tools/virt-tar.pl:43
41741 #, no-wrap
41742 msgid ""
41743 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41744 "\n"
41745 msgstr ""
41746
41747 #. type: =head2
41748 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41749 msgid "NOTE"
41750 msgstr ""
41751
41752 #. type: textblock
41753 #: ../tools/virt-tar.pl:47
41754 msgid ""
41755 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
41756 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
41757 msgstr ""
41758
41759 #. type: textblock
41760 #: ../tools/virt-tar.pl:52
41761 msgid "Download C</home> from the VM into a local tarball:"
41762 msgstr ""
41763
41764 #. type: verbatim
41765 #: ../tools/virt-tar.pl:54
41766 #, no-wrap
41767 msgid ""
41768 " virt-tar -x domname /home home.tar\n"
41769 "\n"
41770 msgstr ""
41771
41772 #. type: verbatim
41773 #: ../tools/virt-tar.pl:56
41774 #, no-wrap
41775 msgid ""
41776 " virt-tar -zx domname /home home.tar.gz\n"
41777 "\n"
41778 msgstr ""
41779
41780 #. type: textblock
41781 #: ../tools/virt-tar.pl:58
41782 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41783 msgstr ""
41784
41785 #. type: verbatim
41786 #: ../tools/virt-tar.pl:60
41787 #, no-wrap
41788 msgid ""
41789 " virt-tar -u domname uploadstuff.tar /tmp\n"
41790 "\n"
41791 msgstr ""
41792
41793 #. type: verbatim
41794 #: ../tools/virt-tar.pl:62
41795 #, no-wrap
41796 msgid ""
41797 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41798 "\n"
41799 msgstr ""
41800
41801 #. type: textblock
41802 #: ../tools/virt-tar.pl:66
41803 msgid ""
41804 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41805 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41806 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41807 msgstr ""
41808
41809 #. type: textblock
41810 #: ../tools/virt-tar.pl:71
41811 msgid ""
41812 "You can use I<-x> (extract) on live virtual machines, but you might get "
41813 "inconsistent results or errors if there is filesystem activity inside the "
41814 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41815 "work, but the only way to guarantee consistent results is if the virtual "
41816 "machine is shut down."
41817 msgstr ""
41818
41819 #. type: textblock
41820 #: ../tools/virt-tar.pl:79
41821 msgid ""
41822 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41823 "parts of a guest filesystem.  There are many possibilities: making backups, "
41824 "uploading data files, snooping on guest activity, fixing or customizing "
41825 "guests, etc."
41826 msgstr ""
41827
41828 #. type: textblock
41829 #: ../tools/virt-tar.pl:84
41830 msgid ""
41831 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41832 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41833 "should look at the L<guestfish(1)> tool."
41834 msgstr ""
41835
41836 #. type: textblock
41837 #: ../tools/virt-tar.pl:88
41838 msgid ""
41839 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41840 "its contents (recursively) from the virtual machine into a local tarball.  "
41841 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41842 "virtual machine.  You cannot use these two options together."
41843 msgstr ""
41844
41845 #. type: textblock
41846 #: ../tools/virt-tar.pl:94
41847 msgid ""
41848 "In addition, you may need to use the I<-z> (gZip) option to enable "
41849 "compression.  When uploading, you have to specify I<-z> if the upload file "
41850 "is compressed because virt-tar won't detect this on its own."
41851 msgstr ""
41852
41853 #. type: textblock
41854 #: ../tools/virt-tar.pl:98
41855 msgid ""
41856 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41857 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41858 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41859 "the L<libguestfs(3)> API)."
41860 msgstr ""
41861
41862 #. type: =item
41863 #: ../tools/virt-tar.pl:160
41864 msgid "B<--extract>"
41865 msgstr ""
41866
41867 #. type: =item
41868 #: ../tools/virt-tar.pl:162
41869 msgid "B<--download>"
41870 msgstr ""
41871
41872 #. type: =item
41873 #: ../tools/virt-tar.pl:164
41874 msgid "B<-u>"
41875 msgstr ""
41876
41877 #. type: =item
41878 #: ../tools/virt-tar.pl:166
41879 msgid "B<--upload>"
41880 msgstr ""
41881
41882 #. type: textblock
41883 #: ../tools/virt-tar.pl:168
41884 msgid ""
41885 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41886 "local tarball."
41887 msgstr ""
41888
41889 #. type: textblock
41890 #: ../tools/virt-tar.pl:171
41891 msgid ""
41892 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41893 "Please read the L</WARNING> section above before using this option."
41894 msgstr ""
41895
41896 #. type: textblock
41897 #: ../tools/virt-tar.pl:175
41898 msgid "You must specify exactly one of these options."
41899 msgstr ""
41900
41901 #. type: =item
41902 #: ../tools/virt-tar.pl:181
41903 msgid "B<-z>"
41904 msgstr ""
41905
41906 #. type: =item
41907 #: ../tools/virt-tar.pl:183
41908 msgid "B<--gzip>"
41909 msgstr ""
41910
41911 #. type: textblock
41912 #: ../tools/virt-tar.pl:185
41913 msgid "Specify that the input or output tarball is gzip-compressed."
41914 msgstr ""
41915
41916 #. type: textblock
41917 #: ../tools/virt-tar.pl:298
41918 msgid ""
41919 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
41920 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41921 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
41922 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41923 msgstr ""
41924
41925 #. type: textblock
41926 #: ../tools/virt-win-reg.pl:37
41927 msgid ""
41928 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
41929 "guest"
41930 msgstr ""
41931
41932 #. type: verbatim
41933 #: ../tools/virt-win-reg.pl:41
41934 #, no-wrap
41935 msgid ""
41936 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41937 "\n"
41938 msgstr ""
41939
41940 #. type: verbatim
41941 #: ../tools/virt-win-reg.pl:43
41942 #, no-wrap
41943 msgid ""
41944 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41945 "\n"
41946 msgstr ""
41947
41948 #. type: verbatim
41949 #: ../tools/virt-win-reg.pl:45
41950 #, no-wrap
41951 msgid ""
41952 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41953 "\n"
41954 msgstr ""
41955
41956 #. type: verbatim
41957 #: ../tools/virt-win-reg.pl:47
41958 #, no-wrap
41959 msgid ""
41960 " virt-win-reg --merge domname [input.reg ...]\n"
41961 "\n"
41962 msgstr ""
41963
41964 #. type: verbatim
41965 #: ../tools/virt-win-reg.pl:49
41966 #, no-wrap
41967 msgid ""
41968 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41969 "\n"
41970 msgstr ""
41971
41972 #. type: textblock
41973 #: ../tools/virt-win-reg.pl:53
41974 msgid ""
41975 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41976 "virtual machines.  If you do this, you I<will> get irreversible disk "
41977 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41978 "but doesn't catch all cases."
41979 msgstr ""
41980
41981 #. type: textblock
41982 #: ../tools/virt-win-reg.pl:58
41983 msgid ""
41984 "Modifying the Windows Registry is an inherently risky operation.  The format "
41985 "is deliberately obscure and undocumented, and Registry changes can leave the "
41986 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41987 "you have a reliable backup first."
41988 msgstr ""
41989
41990 #. type: textblock
41991 #: ../tools/virt-win-reg.pl:65
41992 msgid ""
41993 "This program can export and merge Windows Registry entries from a Windows "
41994 "guest."
41995 msgstr ""
41996
41997 #. type: textblock
41998 #: ../tools/virt-win-reg.pl:68
41999 msgid ""
42000 "The first parameter is the libvirt guest name or the raw disk image of a "
42001 "Windows guest."
42002 msgstr ""
42003
42004 #. type: textblock
42005 #: ../tools/virt-win-reg.pl:71
42006 msgid ""
42007 "If I<--merge> is I<not> specified, then the chosen registry key is "
42008 "displayed/exported (recursively).  For example:"
42009 msgstr ""
42010
42011 #. type: verbatim
42012 #: ../tools/virt-win-reg.pl:74
42013 #, no-wrap
42014 msgid ""
42015 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42016 "\n"
42017 msgstr ""
42018
42019 #. type: textblock
42020 #: ../tools/virt-win-reg.pl:76
42021 msgid "You can also display single values from within registry keys, for example:"
42022 msgstr ""
42023
42024 #. type: verbatim
42025 #: ../tools/virt-win-reg.pl:79
42026 #, no-wrap
42027 msgid ""
42028 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42029 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42030 " Windows 7 Enterprise\n"
42031 "\n"
42032 msgstr ""
42033
42034 #. type: textblock
42035 #: ../tools/virt-win-reg.pl:83
42036 msgid ""
42037 "With I<--merge>, you can merge a textual regedit file into the Windows "
42038 "Registry:"
42039 msgstr ""
42040
42041 #. type: verbatim
42042 #: ../tools/virt-win-reg.pl:86
42043 #, no-wrap
42044 msgid ""
42045 " $ virt-win-reg --merge Windows7 changes.reg\n"
42046 "\n"
42047 msgstr ""
42048
42049 #. type: textblock
42050 #: ../tools/virt-win-reg.pl:90
42051 msgid ""
42052 "This program is only meant for simple access to the registry.  If you want "
42053 "to do complicated things with the registry, we suggest you download the "
42054 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42055 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42056 "L<hivexregedit(1)>."
42057 msgstr ""
42058
42059 #. type: =item
42060 #: ../tools/virt-win-reg.pl:159
42061 msgid "B<--merge>"
42062 msgstr ""
42063
42064 #. type: textblock
42065 #: ../tools/virt-win-reg.pl:161
42066 msgid ""
42067 "In merge mode, this merges a textual regedit file into the Windows Registry "
42068 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42069 "displays or exports Registry entries instead."
42070 msgstr ""
42071
42072 #. type: textblock
42073 #: ../tools/virt-win-reg.pl:165
42074 msgid ""
42075 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42076 "result in disk corruption.  However exporting (without this flag)  is always "
42077 "safe."
42078 msgstr ""
42079
42080 #. type: =item
42081 #: ../tools/virt-win-reg.pl:173
42082 msgid "B<--encoding> UTF-16LE|ASCII"
42083 msgstr ""
42084
42085 #. type: textblock
42086 #: ../tools/virt-win-reg.pl:175
42087 msgid ""
42088 "When merging (only), you may need to specify the encoding for strings to be "
42089 "used in the hive file.  This is explained in detail in "
42090 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
42091 msgstr ""
42092
42093 #. type: textblock
42094 #: ../tools/virt-win-reg.pl:179
42095 msgid ""
42096 "The default is to use UTF-16LE, which should work with recent versions of "
42097 "Windows."
42098 msgstr ""
42099
42100 #. type: =item
42101 #: ../tools/virt-win-reg.pl:186
42102 msgid "B<--unsafe-printable-strings>"
42103 msgstr ""
42104
42105 #. type: textblock
42106 #: ../tools/virt-win-reg.pl:188
42107 msgid ""
42108 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42109 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42110 "present."
42111 msgstr ""
42112
42113 #. type: textblock
42114 #: ../tools/virt-win-reg.pl:192
42115 msgid ""
42116 "This is unsafe and does not preserve the fidelity of strings in the original "
42117 "Registry for various reasons:"
42118 msgstr ""
42119
42120 #. type: textblock
42121 #: ../tools/virt-win-reg.pl:199
42122 msgid ""
42123 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42124 "other encodings will be corrupted by this transformation."
42125 msgstr ""
42126
42127 #. type: textblock
42128 #: ../tools/virt-win-reg.pl:204
42129 msgid ""
42130 "Assumes that everything which has type 1 or 2 is really a string and that "
42131 "everything else is not a string, but the type field in real Registries is "
42132 "not reliable."
42133 msgstr ""
42134
42135 #. type: textblock
42136 #: ../tools/virt-win-reg.pl:210
42137 msgid ""
42138 "Loses information about whether a zero codepoint followed the string in the "
42139 "Registry or not."
42140 msgstr ""
42141
42142 #. type: textblock
42143 #: ../tools/virt-win-reg.pl:215
42144 msgid ""
42145 "This all happens because the Registry itself contains no information about "
42146 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42147 msgstr ""
42148
42149 #. type: textblock
42150 #: ../tools/virt-win-reg.pl:219
42151 msgid ""
42152 "You should only use this option for quick hacking and debugging of the "
42153 "Registry contents, and I<never> use it if the output is going to be passed "
42154 "into another program or stored in another Registry."
42155 msgstr ""
42156
42157 #. type: =head1
42158 #: ../tools/virt-win-reg.pl:556
42159 msgid "SUPPORTED SYSTEMS"
42160 msgstr ""
42161
42162 #. type: textblock
42163 #: ../tools/virt-win-reg.pl:558
42164 msgid ""
42165 "The program currently supports Windows NT-derived guests starting with "
42166 "Windows XP through to at least Windows 7."
42167 msgstr ""
42168
42169 #. type: textblock
42170 #: ../tools/virt-win-reg.pl:561
42171 msgid "The following Registry keys are supported:"
42172 msgstr ""
42173
42174 #. type: =item
42175 #: ../tools/virt-win-reg.pl:565
42176 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42177 msgstr ""
42178
42179 #. type: =item
42180 #: ../tools/virt-win-reg.pl:567
42181 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42182 msgstr ""
42183
42184 #. type: =item
42185 #: ../tools/virt-win-reg.pl:569
42186 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42187 msgstr ""
42188
42189 #. type: =item
42190 #: ../tools/virt-win-reg.pl:571
42191 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42192 msgstr ""
42193
42194 #. type: =item
42195 #: ../tools/virt-win-reg.pl:573
42196 msgid "C<HKEY_USERS\\.DEFAULT>"
42197 msgstr ""
42198
42199 #. type: =item
42200 #: ../tools/virt-win-reg.pl:575
42201 msgid "C<HKEY_USERS\\I<SID>>"
42202 msgstr ""
42203
42204 #. type: textblock
42205 #: ../tools/virt-win-reg.pl:577
42206 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42207 msgstr ""
42208
42209 #. type: =item
42210 #: ../tools/virt-win-reg.pl:579
42211 msgid "C<HKEY_USERS\\I<username>>"
42212 msgstr ""
42213
42214 #. type: textblock
42215 #: ../tools/virt-win-reg.pl:581
42216 msgid "where I<username> is a local user name (this is a libguestfs extension)."
42217 msgstr ""
42218
42219 #. type: textblock
42220 #: ../tools/virt-win-reg.pl:585
42221 msgid ""
42222 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42223 "C<HKEY_USERS>."
42224 msgstr ""
42225
42226 #. type: textblock
42227 #: ../tools/virt-win-reg.pl:588
42228 msgid ""
42229 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42230 "supported (there is no \"current user\")."
42231 msgstr ""
42232
42233 #. type: =head1
42234 #: ../tools/virt-win-reg.pl:591
42235 msgid "ENCODING"
42236 msgstr ""
42237
42238 #. type: textblock
42239 #: ../tools/virt-win-reg.pl:593
42240 msgid ""
42241 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42242 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
42243 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
42244 "with Windows-style line endings, you may need to reencode the whole file "
42245 "before or after processing."
42246 msgstr ""
42247
42248 #. type: textblock
42249 #: ../tools/virt-win-reg.pl:599
42250 msgid ""
42251 "To reencode a file from Windows format to Linux (before processing it with "
42252 "the I<--merge> option), you would do something like this:"
42253 msgstr ""
42254
42255 #. type: verbatim
42256 #: ../tools/virt-win-reg.pl:602
42257 #, no-wrap
42258 msgid ""
42259 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42260 "\n"
42261 msgstr ""
42262
42263 #. type: textblock
42264 #: ../tools/virt-win-reg.pl:604
42265 msgid ""
42266 "To go in the opposite direction, after exporting and before sending the file "
42267 "to a Windows user, do something like this:"
42268 msgstr ""
42269
42270 #. type: verbatim
42271 #: ../tools/virt-win-reg.pl:607
42272 #, no-wrap
42273 msgid ""
42274 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42275 "\n"
42276 msgstr ""
42277
42278 #. type: textblock
42279 #: ../tools/virt-win-reg.pl:609
42280 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42281 msgstr ""
42282
42283 #. type: textblock
42284 #: ../tools/virt-win-reg.pl:611
42285 msgid ""
42286 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42287 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
42288 "Windows-style (CRLF) line endings, like this:"
42289 msgstr ""
42290
42291 #. type: verbatim
42292 #: ../tools/virt-win-reg.pl:615
42293 #, no-wrap
42294 msgid ""
42295 " $ file software.reg\n"
42296 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42297 " with CRLF line terminators\n"
42298 "\n"
42299 msgstr ""
42300
42301 #. type: textblock
42302 #: ../tools/virt-win-reg.pl:619
42303 msgid "This file would need conversion before you could I<--merge> it."
42304 msgstr ""
42305
42306 #. type: =head1
42307 #: ../tools/virt-win-reg.pl:621
42308 msgid "CurrentControlSet etc."
42309 msgstr ""
42310
42311 #. type: textblock
42312 #: ../tools/virt-win-reg.pl:623
42313 msgid ""
42314 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42315 "Registry at the level of the hive file, and therefore you cannot modify "
42316 "these."
42317 msgstr ""
42318
42319 #. type: textblock
42320 #: ../tools/virt-win-reg.pl:627
42321 msgid ""
42322 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42323 "circumstances it might refer to another control set.  The way to find out is "
42324 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42325 msgstr ""
42326
42327 #. type: verbatim
42328 #: ../tools/virt-win-reg.pl:631
42329 #, no-wrap
42330 msgid ""
42331 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42332 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42333 " \"Current\"=dword:00000001\n"
42334 " \"Default\"=dword:00000001\n"
42335 " \"Failed\"=dword:00000000\n"
42336 " \"LastKnownGood\"=dword:00000002\n"
42337 "\n"
42338 msgstr ""
42339
42340 #. type: textblock
42341 #: ../tools/virt-win-reg.pl:638
42342 msgid "\"Current\" is the one which Windows will choose when it boots."
42343 msgstr ""
42344
42345 #. type: textblock
42346 #: ../tools/virt-win-reg.pl:640
42347 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
42348 msgstr ""
42349
42350 #. type: =head1
42351 #: ../tools/virt-win-reg.pl:643
42352 msgid "DELETING REGISTRY KEYS AND VALUES"
42353 msgstr ""
42354
42355 #. type: textblock
42356 #: ../tools/virt-win-reg.pl:645
42357 msgid "To delete a whole registry key, use the syntax:"
42358 msgstr ""
42359
42360 #. type: verbatim
42361 #: ../tools/virt-win-reg.pl:647
42362 #, no-wrap
42363 msgid ""
42364 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42365 "\n"
42366 msgstr ""
42367
42368 #. type: textblock
42369 #: ../tools/virt-win-reg.pl:649
42370 msgid "To delete a single value within a key, use the syntax:"
42371 msgstr ""
42372
42373 #. type: verbatim
42374 #: ../tools/virt-win-reg.pl:651
42375 #, no-wrap
42376 msgid ""
42377 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42378 " \"Value\"=-\n"
42379 "\n"
42380 msgstr ""
42381
42382 #. type: =head1
42383 #: ../tools/virt-win-reg.pl:654
42384 msgid "WINDOWS TIPS"
42385 msgstr ""
42386
42387 #. type: textblock
42388 #: ../tools/virt-win-reg.pl:656
42389 msgid ""
42390 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42391 "be shut off, else you will get disk corruption."
42392 msgstr ""
42393
42394 #. type: =head2
42395 #: ../tools/virt-win-reg.pl:659
42396 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42397 msgstr ""
42398
42399 #. type: textblock
42400 #: ../tools/virt-win-reg.pl:661
42401 msgid ""
42402 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42403 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42404 "is uploaded into C<C:\\>:"
42405 msgstr ""
42406
42407 #. type: verbatim
42408 #: ../tools/virt-win-reg.pl:665
42409 #, no-wrap
42410 msgid ""
42411 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42412 "\n"
42413 msgstr ""
42414
42415 #. type: textblock
42416 #: ../tools/virt-win-reg.pl:667
42417 msgid "Prepare a regedit file containing the registry change:"
42418 msgstr ""
42419
42420 #. type: verbatim
42421 #: ../tools/virt-win-reg.pl:669
42422 #, no-wrap
42423 msgid ""
42424 " cat > test.reg <<'EOF'\n"
42425 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42426 " \"Test\"=\"c:\\\\test.bat\"\n"
42427 " EOF\n"
42428 "\n"
42429 msgstr ""
42430
42431 #. type: textblock
42432 #: ../tools/virt-win-reg.pl:674
42433 msgid ""
42434 "In this example we use the key C<RunOnce> which means that the script will "
42435 "run precisely once when the first user logs in.  If you want it to run every "
42436 "time a user logs in, replace C<RunOnce> with C<Run>."
42437 msgstr ""
42438
42439 #. type: textblock
42440 #: ../tools/virt-win-reg.pl:678
42441 msgid "Now update the registry:"
42442 msgstr ""
42443
42444 #. type: verbatim
42445 #: ../tools/virt-win-reg.pl:680
42446 #, no-wrap
42447 msgid ""
42448 " virt-win-reg --merge WindowsGuest test.reg\n"
42449 "\n"
42450 msgstr ""
42451
42452 #. type: =head2
42453 #: ../tools/virt-win-reg.pl:682
42454 msgid "INSTALLING A SERVICE"
42455 msgstr ""
42456
42457 #. type: textblock
42458 #: ../tools/virt-win-reg.pl:684
42459 msgid ""
42460 "This section assumes you are familiar with Windows services, and you either "
42461 "have a program which handles the Windows Service Control Protocol directly "
42462 "or you want to run any program using a service wrapper like SrvAny or the "
42463 "free RHSrvAny."
42464 msgstr ""
42465
42466 #. type: textblock
42467 #: ../tools/virt-win-reg.pl:689
42468 msgid ""
42469 "First upload the program and optionally the service wrapper.  In this case "
42470 "the test program is called C<test.exe> and we are using the RHSrvAny "
42471 "wrapper:"
42472 msgstr ""
42473
42474 #. type: verbatim
42475 #: ../tools/virt-win-reg.pl:693
42476 #, no-wrap
42477 msgid ""
42478 " guestfish -i -d WindowsGuest <<EOF\n"
42479 "   upload rhsrvany.exe /rhsrvany.exe\n"
42480 "   upload test.exe /test.exe\n"
42481 " EOF\n"
42482 "\n"
42483 msgstr ""
42484
42485 #. type: textblock
42486 #: ../tools/virt-win-reg.pl:698
42487 msgid ""
42488 "Prepare a regedit file containing the registry changes.  In this example, "
42489 "the first registry change is needed for the service itself or the service "
42490 "wrapper (if used).  The second registry change is only needed because I am "
42491 "using the RHSrvAny service wrapper."
42492 msgstr ""
42493
42494 #. type: verbatim
42495 #: ../tools/virt-win-reg.pl:703
42496 #, no-wrap
42497 msgid ""
42498 " cat > service.reg <<'EOF'\n"
42499 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42500 " \"Type\"=dword:00000010\n"
42501 " \"Start\"=dword:00000002\n"
42502 " \"ErrorControl\"=dword:00000001\n"
42503 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42504 " \"DisplayName\"=\"RHSrvAny\"\n"
42505 " \"ObjectName\"=\"NetworkService\"\n"
42506 " \n"
42507 msgstr ""
42508
42509 #. type: verbatim
42510 #: ../tools/virt-win-reg.pl:712
42511 #, no-wrap
42512 msgid ""
42513 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42514 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42515 " \"PWD\"=\"c:\\\\Temp\"\n"
42516 " EOF\n"
42517 "\n"
42518 msgstr ""
42519
42520 #. type: textblock
42521 #: ../tools/virt-win-reg.pl:723
42522 msgid ""
42523 "For use of C<ControlSet001> see the section above in this manual page.  You "
42524 "may need to adjust this according to the control set that is in use by the "
42525 "guest."
42526 msgstr ""
42527
42528 #. type: textblock
42529 #: ../tools/virt-win-reg.pl:729
42530 msgid ""
42531 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42532 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42533 "privileged account."
42534 msgstr ""
42535
42536 #. type: textblock
42537 #: ../tools/virt-win-reg.pl:735
42538 msgid ""
42539 "For the meaning of the magic numbers, see this Microsoft KB article: "
42540 "L<http://support.microsoft.com/kb/103000>."
42541 msgstr ""
42542
42543 #. type: textblock
42544 #: ../tools/virt-win-reg.pl:740
42545 msgid "Update the registry:"
42546 msgstr ""
42547
42548 #. type: verbatim
42549 #: ../tools/virt-win-reg.pl:742
42550 #, no-wrap
42551 msgid ""
42552 " virt-win-reg --merge WindowsGuest service.reg\n"
42553 "\n"
42554 msgstr ""
42555
42556 #. type: textblock
42557 #: ../tools/virt-win-reg.pl:746
42558 msgid ""
42559 "Be careful when passing parameters containing C<\\> (backslash) in the "
42560 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42561 "(but not both) to protect them from the shell."
42562 msgstr ""
42563
42564 #. type: textblock
42565 #: ../tools/virt-win-reg.pl:750
42566 msgid "Paths and value names are case-insensitive."
42567 msgstr ""
42568
42569 #. type: textblock
42570 #: ../tools/virt-win-reg.pl:759
42571 msgid ""
42572 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
42573 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
42574 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
42575 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42576 msgstr ""
42577
42578 #. type: verbatim
42579 #: ../tools/virt-win-reg.pl:777
42580 #, no-wrap
42581 msgid ""
42582 " export LIBGUESTFS_DEBUG=1\n"
42583 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42584 "\n"
42585 msgstr ""
42586
42587 #. type: textblock
42588 #: ../tools/virt-win-reg.pl:780
42589 msgid ""
42590 "Attach /tmp/virt-win-reg.log to a new bug report at "
42591 "L<https://bugzilla.redhat.com/>"
42592 msgstr ""