Version 1.15.5.
[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.5\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-21 13:23+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:153
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:155
359 msgid "B<--quiet>"
360 msgstr ""
361
362 #. type: textblock
363 #: ../align/virt-alignment-scan.pod:151
364 msgid ""
365 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
366 "below)."
367 msgstr ""
368
369 #. type: =item
370 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:159
371 msgid "B<-v>"
372 msgstr ""
373
374 #. type: =item
375 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:161
376 msgid "B<--verbose>"
377 msgstr ""
378
379 #. type: textblock
380 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:163
381 msgid "Enable verbose messages for debugging."
382 msgstr ""
383
384 #. type: =item
385 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:561 ../sparsify/virt-sparsify.pod:165
386 msgid "B<-V>"
387 msgstr ""
388
389 #. type: =item
390 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:563 ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
391 msgid "B<--version>"
392 msgstr ""
393
394 #. type: textblock
395 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:565 ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
396 msgid "Display version number and exit."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
401 msgid "B<-x>"
402 msgstr ""
403
404 #. type: textblock
405 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:173
406 msgid "Enable tracing of libguestfs API calls."
407 msgstr ""
408
409 #. type: =head1
410 #: ../align/virt-alignment-scan.pod:172
411 msgid "RECOMMENDED ALIGNMENT"
412 msgstr ""
413
414 #. type: textblock
415 #: ../align/virt-alignment-scan.pod:174
416 msgid ""
417 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
418 "first sector of the first partition at sector 63, with a 512 byte sector "
419 "size.  This happens because of a historical accident.  Drives have to report "
420 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
421 "completely meaningless on modern drives, but it happens that the geometry "
422 "reported always has 63 sectors per track.  The operating system therefore "
423 "places the first partition at the start of the second \"track\", at sector "
424 "63."
425 msgstr ""
426
427 #. type: textblock
428 #: ../align/virt-alignment-scan.pod:183
429 msgid ""
430 "When the guest OS is virtualized, the host operating system and hypervisor "
431 "may prefer accesses aligned to one of:"
432 msgstr ""
433
434 #. type: =item
435 #: ../align/virt-alignment-scan.pod:188
436 msgid "* 512 bytes"
437 msgstr ""
438
439 #. type: textblock
440 #: ../align/virt-alignment-scan.pod:190
441 msgid ""
442 "if the host OS uses local storage directly on hard drive partitions, and the "
443 "hard drive has 512 byte physical sectors."
444 msgstr ""
445
446 #. type: =item
447 #: ../align/virt-alignment-scan.pod:193
448 msgid "* 4 Kbytes"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:195
453 msgid ""
454 "for local storage on new hard drives with 4Kbyte physical sectors; for "
455 "file-backed storage on filesystems with 4Kbyte block size; or for some types "
456 "of network-attached storage."
457 msgstr ""
458
459 #. type: =item
460 #: ../align/virt-alignment-scan.pod:199
461 msgid "* 64 Kbytes"
462 msgstr ""
463
464 #. type: textblock
465 #: ../align/virt-alignment-scan.pod:201
466 msgid ""
467 "for high-end network-attached storage.  This is the optimal block size for "
468 "some NetApp hardware."
469 msgstr ""
470
471 #. type: =item
472 #: ../align/virt-alignment-scan.pod:204
473 msgid "* 1 Mbyte"
474 msgstr ""
475
476 #. type: textblock
477 #: ../align/virt-alignment-scan.pod:206
478 msgid "see L</1 MB PARTITION ALIGNMENT> below."
479 msgstr ""
480
481 #. type: textblock
482 #: ../align/virt-alignment-scan.pod:210
483 msgid ""
484 "Partitions which are not aligned correctly to the underlying storage cause "
485 "extra I/O.  For example:"
486 msgstr ""
487
488 #. type: verbatim
489 #: ../align/virt-alignment-scan.pod:213
490 #, no-wrap
491 msgid ""
492 "                       sect#63\n"
493 "                       +--------------------------+------\n"
494 "                       |         guest            |\n"
495 "                       |    filesystem block      |\n"
496 " ---+------------------+------+-------------------+-----+---\n"
497 "    |  host block             |  host block             |\n"
498 "    |                         |                         |\n"
499 " ---+-------------------------+-------------------------+---\n"
500 "\n"
501 msgstr ""
502
503 #. type: textblock
504 #: ../align/virt-alignment-scan.pod:222
505 msgid ""
506 "In this example, each time a 4K guest block is read, two blocks on the host "
507 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
508 "written, two host blocks must first be read, the old and new data combined, "
509 "and the two blocks written back (4x I/O)."
510 msgstr ""
511
512 #. type: =head2
513 #: ../align/virt-alignment-scan.pod:227
514 msgid "LINUX HOST BLOCK AND I/O SIZE"
515 msgstr ""
516
517 #. type: textblock
518 #: ../align/virt-alignment-scan.pod:229
519 msgid ""
520 "New versions of the Linux kernel expose the physical and logical block size, "
521 "and minimum and recommended I/O size."
522 msgstr ""
523
524 #. type: textblock
525 #: ../align/virt-alignment-scan.pod:232
526 msgid "For a typical 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:215 ../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:217 ../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:222 ../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:227 ../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 ../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:3062 ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075 ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098 ../src/guestfs.pod:3330 ../src/guestfs.pod:3334 ../src/guestfs.pod:3338 ../src/guestfs.pod:3342 ../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:227 ../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:269 ../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:251 ../src/guestfs.pod:3270 ../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:235 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334 ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:783
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:237 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410 ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:713 ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
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:239 ../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:280 ../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:268 ../src/guestfs.pod:3353 ../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:270
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:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422 ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:719 ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:791
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:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427 ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:724 ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:796
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:253 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432 ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:729 ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:801
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:224 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392 ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
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:191
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:193
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:196
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:199
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:201
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:204
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:207
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:210
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:213
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:160
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:164
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:168
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:172
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:180
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:184
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:4477
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:241 ../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: textblock
3592 #: ../df/virt-df.pod:229
3593 msgid ""
3594 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3595 "L<http://libguestfs.org/>."
3596 msgstr ""
3597
3598 #. type: textblock
3599 #: ../edit/virt-edit.pod:5
3600 msgid "virt-edit - Edit a file in a virtual machine"
3601 msgstr ""
3602
3603 #. type: verbatim
3604 #: ../edit/virt-edit.pod:9
3605 #, no-wrap
3606 msgid ""
3607 " virt-edit [--options] -d domname file [file ...]\n"
3608 "\n"
3609 msgstr ""
3610
3611 #. type: verbatim
3612 #: ../edit/virt-edit.pod:11
3613 #, no-wrap
3614 msgid ""
3615 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3616 "\n"
3617 msgstr ""
3618
3619 #. type: verbatim
3620 #: ../edit/virt-edit.pod:13
3621 #, no-wrap
3622 msgid ""
3623 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3624 "\n"
3625 msgstr ""
3626
3627 #. type: verbatim
3628 #: ../edit/virt-edit.pod:17
3629 #, no-wrap
3630 msgid ""
3631 " virt-edit domname file\n"
3632 "\n"
3633 msgstr ""
3634
3635 #. type: verbatim
3636 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3637 #, no-wrap
3638 msgid ""
3639 " virt-edit disk.img [disk.img ...] file\n"
3640 "\n"
3641 msgstr ""
3642
3643 #. type: =head1
3644 #: ../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
3645 msgid "WARNING"
3646 msgstr ""
3647
3648 #. type: textblock
3649 #: ../edit/virt-edit.pod:23
3650 msgid ""
3651 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3652 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3653 "doing this, but doesn't catch all cases."
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../edit/virt-edit.pod:29
3658 msgid ""
3659 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3660 "exists in the named virtual machine (or disk image)."
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../edit/virt-edit.pod:32
3665 msgid ""
3666 "Multiple filenames can be given, in which case they are each edited in "
3667 "turn.  Each filename must be a full path, starting at the root directory "
3668 "(starting with '/')."
3669 msgstr ""
3670
3671 #. type: textblock
3672 #: ../edit/virt-edit.pod:36
3673 msgid "If you want to just view a file, use L<virt-cat(1)>."
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../edit/virt-edit.pod:38
3678 msgid ""
3679 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3680 "L</USING GUESTFISH> below)."
3681 msgstr ""
3682
3683 #. type: textblock
3684 #: ../edit/virt-edit.pod:41
3685 msgid ""
3686 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3687 "that and much more."
3688 msgstr ""
3689
3690 #. type: textblock
3691 #: ../edit/virt-edit.pod:46
3692 msgid "Edit the named files interactively:"
3693 msgstr ""
3694
3695 #. type: verbatim
3696 #: ../edit/virt-edit.pod:48
3697 #, no-wrap
3698 msgid ""
3699 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3700 "\n"
3701 msgstr ""
3702
3703 #. type: verbatim
3704 #: ../edit/virt-edit.pod:50
3705 #, no-wrap
3706 msgid ""
3707 " virt-edit -d mydomain /etc/passwd\n"
3708 "\n"
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../edit/virt-edit.pod:52
3713 msgid "For Windows guests, some Windows paths are understood:"
3714 msgstr ""
3715
3716 #. type: verbatim
3717 #: ../edit/virt-edit.pod:54
3718 #, no-wrap
3719 msgid ""
3720 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3721 "\n"
3722 msgstr ""
3723
3724 #. type: textblock
3725 #: ../edit/virt-edit.pod:56
3726 msgid ""
3727 "If Perl is installed, you can also edit files non-interactively (see "
3728 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3729 msgstr ""
3730
3731 #. type: verbatim
3732 #: ../edit/virt-edit.pod:60
3733 #, no-wrap
3734 msgid ""
3735 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3736 "\n"
3737 msgstr ""
3738
3739 #. type: =item
3740 #: ../edit/virt-edit.pod:81
3741 msgid "B<-b> extension"
3742 msgstr ""
3743
3744 #. type: =item
3745 #: ../edit/virt-edit.pod:83
3746 msgid "B<--backup> extension"
3747 msgstr ""
3748
3749 #. type: textblock
3750 #: ../edit/virt-edit.pod:85
3751 msgid ""
3752 "Create a backup of the original file I<in the guest disk image>.  The backup "
3753 "has the original filename with C<extension> added."
3754 msgstr ""
3755
3756 #. type: textblock
3757 #: ../edit/virt-edit.pod:88
3758 msgid ""
3759 "Usually the first character of C<extension> would be a dot C<.> so you would "
3760 "write:"
3761 msgstr ""
3762
3763 #. type: verbatim
3764 #: ../edit/virt-edit.pod:91
3765 #, no-wrap
3766 msgid ""
3767 " virt-edit -b .orig [etc]\n"
3768 "\n"
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../edit/virt-edit.pod:93
3773 msgid "By default, no backup file is made."
3774 msgstr ""
3775
3776 #. type: =item
3777 #: ../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
3778 msgid "B<-c URI>"
3779 msgstr ""
3780
3781 #. type: =item
3782 #: ../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
3783 msgid "B<--connect URI>"
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../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
3788 msgid ""
3789 "If you specify guest block devices directly, then libvirt is not used at "
3790 "all."
3791 msgstr ""
3792
3793 #. type: textblock
3794 #: ../edit/virt-edit.pod:114
3795 msgid ""
3796 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3797 "off so you cannot see what you are typing.  If you are not worried about "
3798 "Tempest attacks and there is no one else in the room you can specify this "
3799 "flag to see what you are typing."
3800 msgstr ""
3801
3802 #. type: =item
3803 #: ../edit/virt-edit.pod:119
3804 msgid "B<-e> EXPR"
3805 msgstr ""
3806
3807 #. type: =item
3808 #: ../edit/virt-edit.pod:121
3809 msgid "B<--expr> EXPR"
3810 msgstr ""
3811
3812 #. type: textblock
3813 #: ../edit/virt-edit.pod:123
3814 msgid ""
3815 "Instead of launching the external editor, non-interactively apply the Perl "
3816 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3817 "EDITING> below."
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../edit/virt-edit.pod:127
3822 msgid ""
3823 "Be careful to properly quote the expression to prevent it from being altered "
3824 "by the shell."
3825 msgstr ""
3826
3827 #. type: textblock
3828 #: ../edit/virt-edit.pod:130
3829 msgid "Note that this option is only available when Perl 5 is installed."
3830 msgstr ""
3831
3832 #. type: =item
3833 #: ../edit/virt-edit.pod:132
3834 msgid "B<--format> raw|qcow2|..."
3835 msgstr ""
3836
3837 #. type: verbatim
3838 #: ../edit/virt-edit.pod:143
3839 #, no-wrap
3840 msgid ""
3841 " virt-edit --format=raw -a disk.img file\n"
3842 "\n"
3843 msgstr ""
3844
3845 #. type: verbatim
3846 #: ../edit/virt-edit.pod:147
3847 #, no-wrap
3848 msgid ""
3849 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3850 "\n"
3851 msgstr ""
3852
3853 #. type: textblock
3854 #: ../edit/virt-edit.pod:181
3855 msgid "Previous versions of virt-edit allowed you to write either:"
3856 msgstr ""
3857
3858 #. type: verbatim
3859 #: ../edit/virt-edit.pod:187
3860 #, no-wrap
3861 msgid ""
3862 " virt-edit guestname file\n"
3863 "\n"
3864 msgstr ""
3865
3866 #. type: =head1
3867 #: ../edit/virt-edit.pod:195
3868 msgid "NON-INTERACTIVE EDITING"
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../edit/virt-edit.pod:197
3873 msgid ""
3874 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3875 "administrator can interactively edit the file."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../edit/virt-edit.pod:200
3880 msgid ""
3881 "There are two ways also to use C<virt-edit> from scripts in order to make "
3882 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3883 "like this, it's less error-prone to write scripts directly using the "
3884 "libguestfs API and Augeas for configuration file editing.)"
3885 msgstr ""
3886
3887 #. type: textblock
3888 #: ../edit/virt-edit.pod:206
3889 msgid ""
3890 "The first method is to temporarily set C<$EDITOR> to any script or program "
3891 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3892 "update C<tmpfile> in place however it likes."
3893 msgstr ""
3894
3895 #. type: textblock
3896 #: ../edit/virt-edit.pod:210
3897 msgid ""
3898 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3899 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3900 "instances of C<foo> with C<bar> in a file:"
3901 msgstr ""
3902
3903 #. type: verbatim
3904 #: ../edit/virt-edit.pod:214
3905 #, no-wrap
3906 msgid ""
3907 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3908 "\n"
3909 msgstr ""
3910
3911 #. type: textblock
3912 #: ../edit/virt-edit.pod:216
3913 msgid ""
3914 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3915 "For example to delete root's password you could do:"
3916 msgstr ""
3917
3918 #. type: verbatim
3919 #: ../edit/virt-edit.pod:219
3920 #, no-wrap
3921 msgid ""
3922 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3923 "\n"
3924 msgstr ""
3925
3926 #. type: textblock
3927 #: ../edit/virt-edit.pod:221
3928 msgid ""
3929 "What really happens is that the snippet is evaluated as a Perl expression "
3930 "for each line of the file.  The line, including the final C<\\n>, is passed "
3931 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3932 msgstr ""
3933
3934 #. type: textblock
3935 #: ../edit/virt-edit.pod:226
3936 msgid ""
3937 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3938 "C<apache> user account from the password file you can do:"
3939 msgstr ""
3940
3941 #. type: verbatim
3942 #: ../edit/virt-edit.pod:229
3943 #, no-wrap
3944 msgid ""
3945 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3946 "\n"
3947 msgstr ""
3948
3949 #. type: textblock
3950 #: ../edit/virt-edit.pod:231
3951 msgid ""
3952 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3953 "the end of the file is rather difficult this way since there is no concept "
3954 "of \"last line of the file\" - your expression just doesn't get called "
3955 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3956 "want to do this."
3957 msgstr ""
3958
3959 #. type: textblock
3960 #: ../edit/virt-edit.pod:237
3961 msgid ""
3962 "The variable C<$lineno> contains the current line number.  As is "
3963 "traditional, the first line in the file is number C<1>."
3964 msgstr ""
3965
3966 #. type: textblock
3967 #: ../edit/virt-edit.pod:240
3968 msgid ""
3969 "The return value from the expression is ignored, but the expression may call "
3970 "C<die> in order to abort the whole program, leaving the original file "
3971 "untouched."
3972 msgstr ""
3973
3974 #. type: textblock
3975 #: ../edit/virt-edit.pod:244
3976 msgid ""
3977 "Remember when matching the end of a line that C<$_> may contain the final "
3978 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3979 "newline then neither of these.  Thus to match or substitute some text at the "
3980 "end of a line, use this regular expression:"
3981 msgstr ""
3982
3983 #. type: verbatim
3984 #: ../edit/virt-edit.pod:249
3985 #, no-wrap
3986 msgid ""
3987 " /some text(\\r?\\n)?$/\n"
3988 "\n"
3989 msgstr ""
3990
3991 #. type: textblock
3992 #: ../edit/virt-edit.pod:251
3993 msgid ""
3994 "Alternately, use the perl C<chomp> function, being careful not to chomp "
3995 "C<$_> itself (since that would remove all newlines from the file):"
3996 msgstr ""
3997
3998 #. type: verbatim
3999 #: ../edit/virt-edit.pod:255
4000 #, no-wrap
4001 msgid ""
4002 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4003 "\n"
4004 msgstr ""
4005
4006 #. type: textblock
4007 #: ../edit/virt-edit.pod:259
4008 msgid ""
4009 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4010 "paths (eg. C<E:\\foo\\bar.txt>)."
4011 msgstr ""
4012
4013 #. type: textblock
4014 #: ../edit/virt-edit.pod:278
4015 msgid ""
4016 "The path is resolved case insensitively to locate the file that should be "
4017 "edited."
4018 msgstr ""
4019
4020 #. type: textblock
4021 #: ../edit/virt-edit.pod:299
4022 msgid ""
4023 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4024 "C<virt-edit> doesn't work."
4025 msgstr ""
4026
4027 #. type: textblock
4028 #: ../edit/virt-edit.pod:302
4029 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:304
4034 #, no-wrap
4035 msgid ""
4036 " guestfish --rw -i -d domname edit /file\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../edit/virt-edit.pod:306
4042 msgid ""
4043 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4044 "path to the file."
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../edit/virt-edit.pod:309
4049 msgid ""
4050 "The command above uses libguestfs's guest inspection feature and so does not "
4051 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4052 "disk images that don't contain guests.  To edit a file on a disk image "
4053 "directly, use:"
4054 msgstr ""
4055
4056 #. type: verbatim
4057 #: ../edit/virt-edit.pod:314
4058 #, no-wrap
4059 msgid ""
4060 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4061 "\n"
4062 msgstr ""
4063
4064 #. type: textblock
4065 #: ../edit/virt-edit.pod:316
4066 msgid ""
4067 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4068 "the disk image to edit, and C</file> is the full path to the file."
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../edit/virt-edit.pod:320
4073 msgid ""
4074 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4075 "C<write> or C<upload> instead:"
4076 msgstr ""
4077
4078 #. type: verbatim
4079 #: ../edit/virt-edit.pod:323
4080 #, no-wrap
4081 msgid ""
4082 " guestfish --rw -i -d domname touch /newfile\n"
4083 "\n"
4084 msgstr ""
4085
4086 #. type: verbatim
4087 #: ../edit/virt-edit.pod:325
4088 #, no-wrap
4089 msgid ""
4090 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4091 "\n"
4092 msgstr ""
4093
4094 #. type: verbatim
4095 #: ../edit/virt-edit.pod:327
4096 #, no-wrap
4097 msgid ""
4098 " guestfish --rw -i -d domname upload localfile /newfile\n"
4099 "\n"
4100 msgstr ""
4101
4102 #. type: =head1
4103 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:232 ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4104 msgid "ENVIRONMENT VARIABLES"
4105 msgstr ""
4106
4107 #. type: =item
4108 #: ../edit/virt-edit.pod:333
4109 msgid "C<EDITOR>"
4110 msgstr ""
4111
4112 #. type: textblock
4113 #: ../edit/virt-edit.pod:335
4114 msgid ""
4115 "If set, this string is used as the editor.  It may contain arguments, "
4116 "eg. C<\"emacs -nw\">"
4117 msgstr ""
4118
4119 #. type: textblock
4120 #: ../edit/virt-edit.pod:338
4121 msgid "If not set, C<vi> is used."
4122 msgstr ""
4123
4124 #. type: textblock
4125 #: ../edit/virt-edit.pod:356
4126 msgid ""
4127 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
4128 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
4129 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4130 msgstr ""
4131
4132 #. type: textblock
4133 #: ../erlang/examples/guestfs-erlang.pod:5
4134 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4135 msgstr ""
4136
4137 #. type: verbatim
4138 #: ../erlang/examples/guestfs-erlang.pod:9
4139 #, no-wrap
4140 msgid ""
4141 " {ok, G} = guestfs:create(),\n"
4142 " ok = guestfs:add_drive_opts(G, Disk,\n"
4143 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4144 " ok = guestfs:launch(G),\n"
4145 " [Device] = guestfs:list_devices(G),\n"
4146 " ok = guestfs:close(G).\n"
4147 "\n"
4148 msgstr ""
4149
4150 #. type: textblock
4151 #: ../erlang/examples/guestfs-erlang.pod:18
4152 msgid ""
4153 "This manual page documents how to call libguestfs from the Erlang "
4154 "programming language.  This page just documents the differences from the C "
4155 "API and gives some examples.  If you are not familiar with using libguestfs, "
4156 "you also need to read L<guestfs(3)>."
4157 msgstr ""
4158
4159 #. type: =head2
4160 #: ../erlang/examples/guestfs-erlang.pod:23
4161 msgid "OPENING AND CLOSING THE HANDLE"
4162 msgstr ""
4163
4164 #. type: textblock
4165 #: ../erlang/examples/guestfs-erlang.pod:25
4166 msgid ""
4167 "The Erlang bindings are implemented using an external program called "
4168 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
4169 "should specify the full path to the program:"
4170 msgstr ""
4171
4172 #. type: verbatim
4173 #: ../erlang/examples/guestfs-erlang.pod:29
4174 #, no-wrap
4175 msgid ""
4176 " {ok, G} = guestfs:create().\n"
4177 "\n"
4178 msgstr ""
4179
4180 #. type: verbatim
4181 #: ../erlang/examples/guestfs-erlang.pod:31
4182 #, no-wrap
4183 msgid ""
4184 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4185 "\n"
4186 msgstr ""
4187
4188 #. type: textblock
4189 #: ../erlang/examples/guestfs-erlang.pod:33
4190 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4191 msgstr ""
4192
4193 #. type: textblock
4194 #: ../erlang/examples/guestfs-erlang.pod:36
4195 msgid "To close the handle:"
4196 msgstr ""
4197
4198 #. type: verbatim
4199 #: ../erlang/examples/guestfs-erlang.pod:38
4200 #, no-wrap
4201 msgid ""
4202 " ok = guestfs:close(G).\n"
4203 "\n"
4204 msgstr ""
4205
4206 #. type: =head2
4207 #: ../erlang/examples/guestfs-erlang.pod:40
4208 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4209 msgstr ""
4210
4211 #. type: textblock
4212 #: ../erlang/examples/guestfs-erlang.pod:42
4213 msgid ""
4214 "For functions that take optional arguments, the first arguments are the "
4215 "non-optional ones.  The last argument is a list of tuples supplying the "
4216 "remaining optional arguments."
4217 msgstr ""
4218
4219 #. type: verbatim
4220 #: ../erlang/examples/guestfs-erlang.pod:46
4221 #, no-wrap
4222 msgid ""
4223 " ok = guestfs:add_drive_opts(G, Disk,\n"
4224 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4225 "\n"
4226 msgstr ""
4227
4228 #. type: textblock
4229 #: ../erlang/examples/guestfs-erlang.pod:49
4230 msgid "If the last argument would be an empty list, you can also omit it:"
4231 msgstr ""
4232
4233 #. type: verbatim
4234 #: ../erlang/examples/guestfs-erlang.pod:51
4235 #, no-wrap
4236 msgid ""
4237 " ok = guestfs:add_drive_opts(G, Disk).\n"
4238 "\n"
4239 msgstr ""
4240
4241 #. type: =head2
4242 #: ../erlang/examples/guestfs-erlang.pod:53
4243 msgid "RETURN VALUES AND ERRORS"
4244 msgstr ""
4245
4246 #. type: textblock
4247 #: ../erlang/examples/guestfs-erlang.pod:55
4248 msgid ""
4249 "On success, most functions return a C<Result> term (which could be a list, "
4250 "string, tuple etc.).  If there is nothing for the function to return, then "
4251 "the atom C<ok> is returned."
4252 msgstr ""
4253
4254 #. type: textblock
4255 #: ../erlang/examples/guestfs-erlang.pod:59
4256 msgid "On error, you would see one of the following tuples:"
4257 msgstr ""
4258
4259 #. type: =item
4260 #: ../erlang/examples/guestfs-erlang.pod:63
4261 msgid "C<{error, Msg, Errno}>"
4262 msgstr ""
4263
4264 #. type: textblock
4265 #: ../erlang/examples/guestfs-erlang.pod:65
4266 msgid "This indicates an ordinary error from the function."
4267 msgstr ""
4268
4269 #. type: textblock
4270 #: ../erlang/examples/guestfs-erlang.pod:67
4271 msgid ""
4272 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4273 "(integer)."
4274 msgstr ""
4275
4276 #. type: textblock
4277 #: ../erlang/examples/guestfs-erlang.pod:70
4278 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4279 msgstr ""
4280
4281 #. type: =item
4282 #: ../erlang/examples/guestfs-erlang.pod:72
4283 msgid "C<{unknown, Function}>"
4284 msgstr ""
4285
4286 #. type: textblock
4287 #: ../erlang/examples/guestfs-erlang.pod:74
4288 msgid ""
4289 "This indicates that the function you called is not known.  Generally this "
4290 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4291 "which you should not do."
4292 msgstr ""
4293
4294 #. type: textblock
4295 #: ../erlang/examples/guestfs-erlang.pod:78
4296 msgid "C<Function> is the name of the unknown function."
4297 msgstr ""
4298
4299 #. type: =item
4300 #: ../erlang/examples/guestfs-erlang.pod:80
4301 msgid "C<{unknownarg, Arg}>"
4302 msgstr ""
4303
4304 #. type: textblock
4305 #: ../erlang/examples/guestfs-erlang.pod:82
4306 msgid ""
4307 "This indicates that you called a function with optional arguments, with an "
4308 "unknown argument name."
4309 msgstr ""
4310
4311 #. type: textblock
4312 #: ../erlang/examples/guestfs-erlang.pod:85
4313 msgid "C<Arg> is the name of the unknown argument."
4314 msgstr ""
4315
4316 #. type: =head1
4317 #: ../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
4318 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4319 msgstr ""
4320
4321 #. type: textblock
4322 #: ../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
4323 msgid "@EXAMPLE1@"
4324 msgstr ""
4325
4326 #. type: =head1
4327 #: ../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
4328 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4329 msgstr ""
4330
4331 #. type: textblock
4332 #: ../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
4333 msgid "@EXAMPLE2@"
4334 msgstr ""
4335
4336 #. type: textblock
4337 #: ../erlang/examples/guestfs-erlang.pod:99
4338 msgid ""
4339 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4340 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4341 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
4342 "L<http://libguestfs.org/>."
4343 msgstr ""
4344
4345 #. type: =head1
4346 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../examples/guestfs-testing.pod:276 ../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:3349 ../test-tool/libguestfs-test-tool.pod:106
4347 msgid "AUTHORS"
4348 msgstr ""
4349
4350 #. type: textblock
4351 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../examples/guestfs-testing.pod:278 ../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:3351 ../test-tool/libguestfs-test-tool.pod:108
4352 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4353 msgstr ""
4354
4355 #. type: textblock
4356 #: ../erlang/examples/guestfs-erlang.pod:116 ../examples/guestfs-testing.pod:282 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4357 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4358 msgstr ""
4359
4360 #. type: textblock
4361 #: ../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
4362 msgid ""
4363 "The examples in this manual page may be freely copied, modified and "
4364 "distributed without any restrictions."
4365 msgstr ""
4366
4367 #. type: textblock
4368 #: ../erlang/examples/guestfs-erlang.pod:121 ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 ../examples/guestfs-testing.pod:284 ../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:3358
4369 msgid ""
4370 "This library is free software; you can redistribute it and/or modify it "
4371 "under the terms of the GNU Lesser General Public License as published by the "
4372 "Free Software Foundation; either version 2 of the License, or (at your "
4373 "option) any later version."
4374 msgstr ""
4375
4376 #. type: textblock
4377 #: ../erlang/examples/guestfs-erlang.pod:126 ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 ../examples/guestfs-testing.pod:289 ../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:3363
4378 msgid ""
4379 "This library is distributed in the hope that it will be useful, but WITHOUT "
4380 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4381 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4382 "for more details."
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../erlang/examples/guestfs-erlang.pod:131 ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 ../examples/guestfs-testing.pod:294 ../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:3368
4387 msgid ""
4388 "You should have received a copy of the GNU Lesser General Public License "
4389 "along with this library; if not, write to the Free Software Foundation, "
4390 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4391 msgstr ""
4392
4393 #. type: textblock
4394 #: ../examples/guestfs-examples.pod:5
4395 msgid "guestfs-examples - Examples of using libguestfs from C"
4396 msgstr ""
4397
4398 #. type: verbatim
4399 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4400 #, no-wrap
4401 msgid ""
4402 " #include <guestfs.h>\n"
4403 " \n"
4404 msgstr ""
4405
4406 #. type: verbatim
4407 #: ../examples/guestfs-examples.pod:11
4408 #, no-wrap
4409 msgid ""
4410 " guestfs_h *g = guestfs_create ();\n"
4411 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4412 " guestfs_launch (g);\n"
4413 "\n"
4414 msgstr ""
4415
4416 #. type: verbatim
4417 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4418 #, no-wrap
4419 msgid ""
4420 " cc prog.c -o prog -lguestfs\n"
4421 "or:\n"
4422 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4423 "\n"
4424 msgstr ""
4425
4426 #. type: textblock
4427 #: ../examples/guestfs-examples.pod:21
4428 msgid ""
4429 "This manual page contains examples of calling libguestfs from the C "
4430 "programming language.  If you are not familiar with using libguestfs, you "
4431 "also need to read L<guestfs(3)>."
4432 msgstr ""
4433
4434 #. type: textblock
4435 #: ../examples/guestfs-examples.pod:35
4436 msgid ""
4437 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
4438 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4439 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
4444 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4445 msgstr ""
4446
4447 #. type: =end
4448 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4449 msgid "comment"
4450 msgstr ""
4451
4452 #. type: textblock
4453 #: ../examples/guestfs-recipes.pod:5
4454 msgid ""
4455 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4456 "here.  The only way which works for both sorts of output is to just write "
4457 "the URL directly.  Do NOT use L<...> for URLs."
4458 msgstr ""
4459
4460 #. type: textblock
4461 #: ../examples/guestfs-recipes.pod:9
4462 msgid ""
4463 "We break with tradition here and don't use ALL CAPS for the section "
4464 "headings, as this makes them much easier to read."
4465 msgstr ""
4466
4467 #. type: textblock
4468 #: ../examples/guestfs-recipes.pod:16
4469 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4470 msgstr ""
4471
4472 #. type: textblock
4473 #: ../examples/guestfs-recipes.pod:20
4474 msgid ""
4475 "This page contains recipes for and links to things you can do using "
4476 "libguestfs, L<guestfish(1)> and the virt tools."
4477 msgstr ""
4478
4479 #. type: =head1
4480 #: ../examples/guestfs-recipes.pod:23
4481 msgid "Audit a virtual machine for setuid files"
4482 msgstr ""
4483
4484 #. type: textblock
4485 #: ../examples/guestfs-recipes.pod:25
4486 msgid ""
4487 "The link below contains a small program which can be used to audit a Linux "
4488 "virtual machine to see what setuid and setgid files it contains."
4489 msgstr ""
4490
4491 #. type: textblock
4492 #: ../examples/guestfs-recipes.pod:28
4493 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
4494 msgstr ""
4495
4496 #. type: =head1
4497 #: ../examples/guestfs-recipes.pod:30
4498 msgid "Change the background image in a Windows XP VM"
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../examples/guestfs-recipes.pod:32
4503 msgid ""
4504 "The links below explain how to use L<guestfish(1)> to change the background "
4505 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4506 "be substantially different for each version of Windows."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../examples/guestfs-recipes.pod:37
4511 msgid ""
4512 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4513 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4514 msgstr ""
4515
4516 #. type: =head1
4517 #: ../examples/guestfs-recipes.pod:40
4518 msgid "Cloning a virtual machine (Linux)"
4519 msgstr ""
4520
4521 #. type: textblock
4522 #: ../examples/guestfs-recipes.pod:42
4523 msgid ""
4524 "The guestfish technique described in the link below works well for most "
4525 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4526 "slightly."
4527 msgstr ""
4528
4529 #. type: textblock
4530 #: ../examples/guestfs-recipes.pod:46
4531 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
4532 msgstr ""
4533
4534 #. type: textblock
4535 #: ../examples/guestfs-recipes.pod:48
4536 msgid ""
4537 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4538 "discussion."
4539 msgstr ""
4540
4541 #. type: textblock
4542 #: ../examples/guestfs-recipes.pod:51
4543 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4544 msgstr ""
4545
4546 #. type: =head1
4547 #: ../examples/guestfs-recipes.pod:53
4548 msgid "Cloning a virtual machine (Windows)"
4549 msgstr ""
4550
4551 #. type: textblock
4552 #: ../examples/guestfs-recipes.pod:55
4553 msgid ""
4554 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4555 "straightforward.  Currently there is code in the Aeolus Oz project which "
4556 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4557 "we may add sysprepping ability."
4558 msgstr ""
4559
4560 #. type: textblock
4561 #: ../examples/guestfs-recipes.pod:60
4562 msgid ""
4563 "https://github.com/clalancette/oz "
4564 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4565 msgstr ""
4566
4567 #. type: =head1
4568 #: ../examples/guestfs-recipes.pod:63
4569 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4570 msgstr ""
4571
4572 #. type: textblock
4573 #: ../examples/guestfs-recipes.pod:65
4574 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4575 msgstr ""
4576
4577 #. type: verbatim
4578 #: ../examples/guestfs-recipes.pod:67
4579 #, no-wrap
4580 msgid ""
4581 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4582 "\n"
4583 msgstr ""
4584
4585 #. type: textblock
4586 #: ../examples/guestfs-recipes.pod:69
4587 msgid "To export just a subdirectory, eg. C</files>, do:"
4588 msgstr ""
4589
4590 #. type: verbatim
4591 #: ../examples/guestfs-recipes.pod:71
4592 #, no-wrap
4593 msgid ""
4594 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4595 "\n"
4596 msgstr ""
4597
4598 #. type: =head1
4599 #: ../examples/guestfs-recipes.pod:73
4600 msgid "Create empty disk images"
4601 msgstr ""
4602
4603 #. type: textblock
4604 #: ../examples/guestfs-recipes.pod:75
4605 msgid ""
4606 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4607 "The useful guide below explains the options available."
4608 msgstr ""
4609
4610 #. type: textblock
4611 #: ../examples/guestfs-recipes.pod:78
4612 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
4613 msgstr ""
4614
4615 #. type: =head1
4616 #: ../examples/guestfs-recipes.pod:80
4617 msgid "Dump raw filesystem content from inside a disk image or VM"
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../examples/guestfs-recipes.pod:82
4622 msgid ""
4623 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4624 "filesystem content from any filesystem in a disk image or a VM (even one "
4625 "which is encrypted or buried inside an LV):"
4626 msgstr ""
4627
4628 #. type: verbatim
4629 #: ../examples/guestfs-recipes.pod:86
4630 #, no-wrap
4631 msgid ""
4632 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4633 "\n"
4634 msgstr ""
4635
4636 #. type: verbatim
4637 #: ../examples/guestfs-recipes.pod:88
4638 #, no-wrap
4639 msgid ""
4640 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4641 "\n"
4642 msgstr ""
4643
4644 #. type: textblock
4645 #: ../examples/guestfs-recipes.pod:90
4646 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4647 msgstr ""
4648
4649 #. type: =head1
4650 #: ../examples/guestfs-recipes.pod:92
4651 msgid "Edit grub configuration in a VM"
4652 msgstr ""
4653
4654 #. type: textblock
4655 #: ../examples/guestfs-recipes.pod:94
4656 msgid "You can use this to:"
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../examples/guestfs-recipes.pod:100
4661 msgid "Fix a virtual machine that does not boot."
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../examples/guestfs-recipes.pod:104
4666 msgid "Change which kernel is used to boot the VM."
4667 msgstr ""
4668
4669 #. type: textblock
4670 #: ../examples/guestfs-recipes.pod:108
4671 msgid "Change kernel command line options."
4672 msgstr ""
4673
4674 #. type: textblock
4675 #: ../examples/guestfs-recipes.pod:112
4676 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4677 msgstr ""
4678
4679 #. type: verbatim
4680 #: ../examples/guestfs-recipes.pod:114
4681 #, no-wrap
4682 msgid ""
4683 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4684 "\n"
4685 msgstr ""
4686
4687 #. type: textblock
4688 #: ../examples/guestfs-recipes.pod:116
4689 msgid ""
4690 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4691 "this:"
4692 msgstr ""
4693
4694 #. type: verbatim
4695 #: ../examples/guestfs-recipes.pod:119
4696 #, no-wrap
4697 msgid ""
4698 " virt-rescue -d BrokenGuest\n"
4699 "\n"
4700 msgstr ""
4701
4702 #. type: =head1
4703 #: ../examples/guestfs-recipes.pod:121
4704 msgid "Export any directory from a VM"
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../examples/guestfs-recipes.pod:123
4709 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4710 msgstr ""
4711
4712 #. type: verbatim
4713 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
4714 #, no-wrap
4715 msgid ""
4716 " virt-copy-out -d Guest /home .\n"
4717 "\n"
4718 msgstr ""
4719
4720 #. type: textblock
4721 #: ../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
4722 msgid "Notes:"
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../examples/guestfs-recipes.pod:134
4727 msgid ""
4728 "The final dot of the command is not a printing error.  It means we want to "
4729 "copy out to the current directory."
4730 msgstr ""
4731
4732 #. type: textblock
4733 #: ../examples/guestfs-recipes.pod:139
4734 msgid "This creates a directory called C<home> under the current directory."
4735 msgstr ""
4736
4737 #. type: textblock
4738 #: ../examples/guestfs-recipes.pod:143
4739 msgid ""
4740 "If the guest is a Windows guest then you can use drive letters and "
4741 "backslashes, but you must prefix the path with C<win:> and quote it to "
4742 "protect it from the shell, like this:"
4743 msgstr ""
4744
4745 #. type: verbatim
4746 #: ../examples/guestfs-recipes.pod:147
4747 #, no-wrap
4748 msgid ""
4749 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4750 "\n"
4751 msgstr ""
4752
4753 #. type: textblock
4754 #: ../examples/guestfs-recipes.pod:149
4755 msgid "To get the output as a compressed tarball, do:"
4756 msgstr ""
4757
4758 #. type: verbatim
4759 #: ../examples/guestfs-recipes.pod:151
4760 #, no-wrap
4761 msgid ""
4762 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4763 "\n"
4764 msgstr ""
4765
4766 #. type: textblock
4767 #: ../examples/guestfs-recipes.pod:153
4768 msgid ""
4769 "Although it sounds tempting, this is usually not a reliable way to get a "
4770 "backup from a running guest.  See the entry in the FAQ: "
4771 "http://libguestfs.org/FAQ.html#backup"
4772 msgstr ""
4773
4774 #. type: =head1
4775 #: ../examples/guestfs-recipes.pod:157
4776 msgid "Find out which user is using the most space"
4777 msgstr ""
4778
4779 #. type: textblock
4780 #: ../examples/guestfs-recipes.pod:159
4781 msgid ""
4782 "This simple script examines a Linux guest to find out which user is using "
4783 "the most space in their home directory:"
4784 msgstr ""
4785
4786 #. type: verbatim
4787 #: ../examples/guestfs-recipes.pod:162
4788 #, no-wrap
4789 msgid ""
4790 " #!/bin/sh -\n"
4791 " \n"
4792 msgstr ""
4793
4794 #. type: verbatim
4795 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4796 #, no-wrap
4797 msgid ""
4798 " set -e\n"
4799 " \n"
4800 msgstr ""
4801
4802 #. type: verbatim
4803 #: ../examples/guestfs-recipes.pod:166
4804 #, no-wrap
4805 msgid ""
4806 " vm=\"$1\"\n"
4807 " dir=/home\n"
4808 " \n"
4809 msgstr ""
4810
4811 #. type: verbatim
4812 #: ../examples/guestfs-recipes.pod:169
4813 #, no-wrap
4814 msgid ""
4815 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4816 " \n"
4817 msgstr ""
4818
4819 #. type: verbatim
4820 #: ../examples/guestfs-recipes.pod:171
4821 #, no-wrap
4822 msgid ""
4823 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4824 "     echo -n \"$dir/$d\"\n"
4825 "     echo -ne '\\t'\n"
4826 "     guestfish --remote du \"$dir/$d\";\n"
4827 " done | sort -nr -k 2\n"
4828 " \n"
4829 msgstr ""
4830
4831 #. type: verbatim
4832 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4833 #, no-wrap
4834 msgid ""
4835 " guestfish --remote exit\n"
4836 "\n"
4837 msgstr ""
4838
4839 #. type: =head1
4840 #: ../examples/guestfs-recipes.pod:179
4841 msgid "Get DHCP address from a VM"
4842 msgstr ""
4843
4844 #. type: textblock
4845 #: ../examples/guestfs-recipes.pod:181
4846 msgid ""
4847 "The link below explains the many different possible techniques for getting "
4848 "the last assigned DHCP address of a virtual machine."
4849 msgstr ""
4850
4851 #. type: textblock
4852 #: ../examples/guestfs-recipes.pod:184
4853 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
4854 msgstr ""
4855
4856 #. type: textblock
4857 #: ../examples/guestfs-recipes.pod:186
4858 msgid ""
4859 "In the libguestfs source examples directory you will find the latest version "
4860 "of the C<virt-dhcp-address.c> program."
4861 msgstr ""
4862
4863 #. type: =head1
4864 #: ../examples/guestfs-recipes.pod:189
4865 msgid "Get the operating system product name string"
4866 msgstr ""
4867
4868 #. type: textblock
4869 #: ../examples/guestfs-recipes.pod:191
4870 msgid "Save the following script into a file called C<product-name.sh>:"
4871 msgstr ""
4872
4873 #. type: verbatim
4874 #: ../examples/guestfs-recipes.pod:193
4875 #, no-wrap
4876 msgid ""
4877 " #!/bin/sh -\n"
4878 " set -e\n"
4879 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4880 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4881 " guestfish --remote inspect-get-product-name \"$root\"\n"
4882 " guestfish --remote exit\n"
4883 "\n"
4884 msgstr ""
4885
4886 #. type: textblock
4887 #: ../examples/guestfs-recipes.pod:200
4888 msgid "Make the script executable and run it on a named guest:"
4889 msgstr ""
4890
4891 #. type: verbatim
4892 #: ../examples/guestfs-recipes.pod:202
4893 #, no-wrap
4894 msgid ""
4895 " # product-name.sh RHEL60x64\n"
4896 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4897 "\n"
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../examples/guestfs-recipes.pod:205
4902 msgid ""
4903 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4904 "C<xpath> command line tool or from your favourite programming language:"
4905 msgstr ""
4906
4907 #. type: verbatim
4908 #: ../examples/guestfs-recipes.pod:209
4909 #, no-wrap
4910 msgid ""
4911 " # virt-inspector RHEL60x64 > xml\n"
4912 " # xpath '//product_name' < xml\n"
4913 " Found 1 nodes:\n"
4914 " -- NODE --\n"
4915 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
4916 "(Santiago)</product_name>\n"
4917 "\n"
4918 msgstr ""
4919
4920 #. type: =head1
4921 #: ../examples/guestfs-recipes.pod:215
4922 msgid "Get the default boot kernel for a Linux VM"
4923 msgstr ""
4924
4925 #. type: textblock
4926 #: ../examples/guestfs-recipes.pod:217
4927 msgid ""
4928 "The link below contains a program to print the default boot kernel for a "
4929 "Linux VM."
4930 msgstr ""
4931
4932 #. type: textblock
4933 #: ../examples/guestfs-recipes.pod:220
4934 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
4935 msgstr ""
4936
4937 #. type: textblock
4938 #: ../examples/guestfs-recipes.pod:222
4939 msgid ""
4940 "It uses Augeas, and the technique is generally applicable for many different "
4941 "tasks, such as:"
4942 msgstr ""
4943
4944 #. type: textblock
4945 #: ../examples/guestfs-recipes.pod:229
4946 msgid "listing the user accounts in the guest"
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../examples/guestfs-recipes.pod:233
4951 msgid "what repositories is it configured to use"
4952 msgstr ""
4953
4954 #. type: textblock
4955 #: ../examples/guestfs-recipes.pod:237
4956 msgid "what NTP servers does it connect to"
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../examples/guestfs-recipes.pod:241
4961 msgid "what were the boot messages last time it booted"
4962 msgstr ""
4963
4964 #. type: textblock
4965 #: ../examples/guestfs-recipes.pod:245
4966 msgid "listing who was logged in recently"
4967 msgstr ""
4968
4969 #. type: textblock
4970 #: ../examples/guestfs-recipes.pod:249
4971 msgid "http://augeas.net/"
4972 msgstr ""
4973
4974 #. type: =head1
4975 #: ../examples/guestfs-recipes.pod:251
4976 msgid "Install RPMs in a guest"
4977 msgstr ""
4978
4979 #. type: textblock
4980 #: ../examples/guestfs-recipes.pod:253
4981 msgid ""
4982 "The link below contains a method to install RPMs in a guest.  In fact the "
4983 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4984 "installs them next time the guest is booted.  You could use this technique "
4985 "to install vital security updates in an offline guest."
4986 msgstr ""
4987
4988 #. type: textblock
4989 #: ../examples/guestfs-recipes.pod:259
4990 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4991 msgstr ""
4992
4993 #. type: =head1
4994 #: ../examples/guestfs-recipes.pod:261
4995 msgid "List applications installed in a VM"
4996 msgstr ""
4997
4998 #. type: textblock
4999 #: ../examples/guestfs-recipes.pod:263
5000 msgid "Save the following to a file C<list-apps.sh>:"
5001 msgstr ""
5002
5003 #. type: verbatim
5004 #: ../examples/guestfs-recipes.pod:265
5005 #, no-wrap
5006 msgid ""
5007 " #!/bin/sh -\n"
5008 " set -e\n"
5009 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5010 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5011 " guestfish --remote inspect-list-applications \"$root\"\n"
5012 " guestfish --remote exit\n"
5013 "\n"
5014 msgstr ""
5015
5016 #. type: textblock
5017 #: ../examples/guestfs-recipes.pod:272
5018 msgid ""
5019 "Make the file executable and then you can run it on any named virtual "
5020 "machine:"
5021 msgstr ""
5022
5023 #. type: verbatim
5024 #: ../examples/guestfs-recipes.pod:275
5025 #, no-wrap
5026 msgid ""
5027 " # list-apps.sh WinGuest\n"
5028 " [0] = {\n"
5029 "   app_name: Mozilla Firefox (3.6.12)\n"
5030 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5031 "   app_epoch: 0\n"
5032 "   app_version: 3.6.12 (en-GB)\n"
5033 "   app_release:\n"
5034 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5035 "   app_trans_path:\n"
5036 "   app_publisher: Mozilla\n"
5037 "   app_url: http://www.mozilla.com/en-GB/\n"
5038 "   app_source_package:\n"
5039 "   app_summary:\n"
5040 "   app_description: Mozilla Firefox\n"
5041 " }\n"
5042 " [1] = {\n"
5043 "   app_name: VLC media player\n"
5044 "   app_display_name: VLC media player 1.1.5\n"
5045 "   app_epoch: 0\n"
5046 "   app_version: 1.1.5\n"
5047 "   app_release:\n"
5048 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5049 "   app_trans_path:\n"
5050 "   app_publisher: VideoLAN\n"
5051 "   app_url: http://www.videolan.org/\n"
5052 "   app_source_package:\n"
5053 "   app_summary:\n"
5054 "   app_description:\n"
5055 " }\n"
5056 "\n"
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../examples/guestfs-recipes.pod:305
5061 msgid ""
5062 "If you want to run the script on disk images (instead of libvirt virtual "
5063 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
5064 "L<virt-inspector(1)>."
5065 msgstr ""
5066
5067 #. type: =head1
5068 #: ../examples/guestfs-recipes.pod:309
5069 msgid "List files and directories in a VM"
5070 msgstr ""
5071
5072 #. type: textblock
5073 #: ../examples/guestfs-recipes.pod:311
5074 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5075 msgstr ""
5076
5077 #. type: verbatim
5078 #: ../examples/guestfs-recipes.pod:313
5079 #, no-wrap
5080 msgid ""
5081 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5082 "\n"
5083 msgstr ""
5084
5085 #. type: =head1
5086 #: ../examples/guestfs-recipes.pod:315
5087 msgid "List services in a Windows VM"
5088 msgstr ""
5089
5090 #. type: textblock
5091 #: ../examples/guestfs-recipes.pod:317
5092 msgid ""
5093 "The link below contains a script that can be used to list out the services "
5094 "from a Windows VM, and whether those services run at boot time or are loaded "
5095 "on demand."
5096 msgstr ""
5097
5098 #. type: textblock
5099 #: ../examples/guestfs-recipes.pod:321
5100 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
5101 msgstr ""
5102
5103 #. type: =head1
5104 #: ../examples/guestfs-recipes.pod:323
5105 msgid "Make a disk image sparse"
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-recipes.pod:325
5110 msgid ""
5111 "The link below contains some guides for making a disk image sparse (or "
5112 "reintroducing sparseness)."
5113 msgstr ""
5114
5115 #. type: textblock
5116 #: ../examples/guestfs-recipes.pod:328
5117 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5118 msgstr ""
5119
5120 #. type: =head1
5121 #: ../examples/guestfs-recipes.pod:330
5122 msgid "Monitor disk usage over time"
5123 msgstr ""
5124
5125 #. type: textblock
5126 #: ../examples/guestfs-recipes.pod:332
5127 msgid ""
5128 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5129 "The link below contains a guide."
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../examples/guestfs-recipes.pod:335
5134 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5135 msgstr ""
5136
5137 #. type: =head1
5138 #: ../examples/guestfs-recipes.pod:337
5139 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5140 msgstr ""
5141
5142 #. type: textblock
5143 #: ../examples/guestfs-recipes.pod:339
5144 msgid ""
5145 "L<guestfish(1)> plus the tools described in the link below can be used to "
5146 "read out the Windows Event Log from any virtual machine running Windows "
5147 "Vista or a later version."
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../examples/guestfs-recipes.pod:343
5152 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
5153 msgstr ""
5154
5155 #. type: =head1
5156 #: ../examples/guestfs-recipes.pod:345
5157 msgid "Remove root password (Linux)"
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../examples/guestfs-recipes.pod:347
5162 msgid ""
5163 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5164 "files.  One use is to remove the root password from a Linux guest:"
5165 msgstr ""
5166
5167 #. type: verbatim
5168 #: ../examples/guestfs-recipes.pod:350
5169 #, no-wrap
5170 msgid ""
5171 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5172 "\n"
5173 msgstr ""
5174
5175 #. type: =head1
5176 #: ../examples/guestfs-recipes.pod:352
5177 msgid "Remove Administrator password (Windows)"
5178 msgstr ""
5179
5180 #. type: textblock
5181 #: ../examples/guestfs-recipes.pod:354
5182 msgid ""
5183 "The link below contains one technique for removing the Administrator "
5184 "password from a Windows VM, or to be more precise, it gives you a command "
5185 "prompt the next time you log in which you can use to bypass any security:"
5186 msgstr ""
5187
5188 #. type: textblock
5189 #: ../examples/guestfs-recipes.pod:359
5190 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
5191 msgstr ""
5192
5193 #. type: =head1
5194 #: ../examples/guestfs-recipes.pod:361
5195 msgid "Unpack a live CD"
5196 msgstr ""
5197
5198 #. type: textblock
5199 #: ../examples/guestfs-recipes.pod:363
5200 msgid ""
5201 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5202 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5203 "layers, as outlined in the guide below."
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:367
5208 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
5209 msgstr ""
5210
5211 #. type: =head1
5212 #: ../examples/guestfs-recipes.pod:369
5213 msgid "Uploading and downloading files"
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../examples/guestfs-recipes.pod:371
5218 msgid ""
5219 "The link below contains general tips on uploading (copying in)  and "
5220 "downloading (copying out) files from VMs."
5221 msgstr ""
5222
5223 #. type: textblock
5224 #: ../examples/guestfs-recipes.pod:374
5225 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5226 msgstr ""
5227
5228 #. type: =head1
5229 #: ../examples/guestfs-recipes.pod:376
5230 msgid "Use libguestfs tools on VMware ESX guests"
5231 msgstr ""
5232
5233 #. type: textblock
5234 #: ../examples/guestfs-recipes.pod:378
5235 msgid ""
5236 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5237 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5238 msgstr ""
5239
5240 #. type: textblock
5241 #: ../examples/guestfs-recipes.pod:382
5242 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
5243 msgstr ""
5244
5245 #. type: textblock
5246 #: ../examples/guestfs-recipes.pod:386
5247 msgid ""
5248 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
5249 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
5250 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
5251 "L<http://libguestfs.org/>."
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../examples/guestfs-recipes.pod:403
5256 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5257 msgstr ""
5258
5259 #. type: textblock
5260 #: ../examples/guestfs-testing.pod:5
5261 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../examples/guestfs-testing.pod:9
5266 msgid ""
5267 "This page has manual tests you can try on libguestfs.  Everyone has a "
5268 "slightly different combination of platform, hardware and guests, so this "
5269 "testing is very valuable.  Thanks for helping out!"
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../examples/guestfs-testing.pod:13
5274 msgid "These tests require libguestfs E<ge> 1.14."
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../examples/guestfs-testing.pod:15
5279 msgid ""
5280 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5281 "careful.  The others are safe and won't modify anything."
5282 msgstr ""
5283
5284 #. type: textblock
5285 #: ../examples/guestfs-testing.pod:18
5286 msgid "You can report bugs you find through this link:"
5287 msgstr ""
5288
5289 #. type: textblock
5290 #: ../examples/guestfs-testing.pod:20
5291 msgid "https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../examples/guestfs-testing.pod:22
5296 msgid ""
5297 "or post on the mailing list (registration is B<not> required, but if you're "
5298 "not registered then you'll have to wait for a moderator to manually approve "
5299 "your message):"
5300 msgstr ""
5301
5302 #. type: textblock
5303 #: ../examples/guestfs-testing.pod:26
5304 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
5305 msgstr ""
5306
5307 #. type: =head1
5308 #: ../examples/guestfs-testing.pod:28
5309 msgid "TESTS"
5310 msgstr ""
5311
5312 #. type: =head2
5313 #: ../examples/guestfs-testing.pod:30
5314 msgid "Check KVM acceleration is being used."
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../examples/guestfs-testing.pod:32
5319 msgid ""
5320 "If your host has hardware virt acceleration, then with a hot cache "
5321 "libguestfs should be able to start up in a few seconds.  Run the following "
5322 "command a few times:"
5323 msgstr ""
5324
5325 #. type: verbatim
5326 #: ../examples/guestfs-testing.pod:36
5327 #, no-wrap
5328 msgid ""
5329 " time guestfish -a /dev/null run\n"
5330 "\n"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../examples/guestfs-testing.pod:38
5335 msgid ""
5336 "After a few runs, the time should settle down to a few seconds (under 5 "
5337 "seconds on fast 64 bit hardware)."
5338 msgstr ""
5339
5340 #. type: textblock
5341 #: ../examples/guestfs-testing.pod:41
5342 msgid "How to check for hardware virt:"
5343 msgstr ""
5344
5345 #. type: textblock
5346 #: ../examples/guestfs-testing.pod:43
5347 msgid "http://virt-tools.org/learning/check-hardware-virt/"
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../examples/guestfs-testing.pod:45
5352 msgid "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
5353 msgstr ""
5354
5355 #. type: =head2
5356 #: ../examples/guestfs-testing.pod:48
5357 msgid "Run virt-alignment-scan on all your guests."
5358 msgstr ""
5359
5360 #. type: textblock
5361 #: ../examples/guestfs-testing.pod:50
5362 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
5363 msgstr ""
5364
5365 #. type: verbatim
5366 #: ../examples/guestfs-testing.pod:52
5367 #, no-wrap
5368 msgid ""
5369 " virt-alignment-scan -a /path/to/disk.img\n"
5370 "\n"
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:139 ../examples/guestfs-testing.pod:152 ../examples/guestfs-testing.pod:212 ../src/guestfs.pod:2792
5375 msgid "or:"
5376 msgstr ""
5377
5378 #. type: verbatim
5379 #: ../examples/guestfs-testing.pod:56
5380 #, no-wrap
5381 msgid ""
5382 " virt-alignment-scan -d Guest\n"
5383 "\n"
5384 msgstr ""
5385
5386 #. type: textblock
5387 #: ../examples/guestfs-testing.pod:58
5388 msgid "Does the alignment report match how the guest partitions are aligned?"
5389 msgstr ""
5390
5391 #. type: =head2
5392 #: ../examples/guestfs-testing.pod:60
5393 msgid "Run virt-cat on some files in guests."
5394 msgstr ""
5395
5396 #. type: textblock
5397 #: ../examples/guestfs-testing.pod:62
5398 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
5399 msgstr ""
5400
5401 #. type: verbatim
5402 #: ../examples/guestfs-testing.pod:64
5403 #, no-wrap
5404 msgid ""
5405 " virt-cat LinuxGuest /etc/passwd\n"
5406 "\n"
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../examples/guestfs-testing.pod:66
5411 msgid "A recent feature is support for Windows paths, for example:"
5412 msgstr ""
5413
5414 #. type: verbatim
5415 #: ../examples/guestfs-testing.pod:68
5416 #, no-wrap
5417 msgid ""
5418 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
5419 "\n"
5420 msgstr ""
5421
5422 #. type: textblock
5423 #: ../examples/guestfs-testing.pod:70
5424 msgid ""
5425 "An even better test is if you have a Windows guest with multiple drives.  Do "
5426 "C<D:>, C<E:> etc paths work correctly?"
5427 msgstr ""
5428
5429 #. type: =head2
5430 #: ../examples/guestfs-testing.pod:73
5431 msgid "B<*> Copy some files into a B<shut off> guest."
5432 msgstr ""
5433
5434 #. type: textblock
5435 #: ../examples/guestfs-testing.pod:75
5436 msgid ""
5437 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
5438 "or disk image."
5439 msgstr ""
5440
5441 #. type: verbatim
5442 #: ../examples/guestfs-testing.pod:78
5443 #, no-wrap
5444 msgid ""
5445 " virt-copy-in -d Guest /etc /tmp\n"
5446 "\n"
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../examples/guestfs-testing.pod:80
5451 msgid ""
5452 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
5453 "(recursively).  If you boot the guest, can you see all of the copied files "
5454 "and directories?"
5455 msgstr ""
5456
5457 #. type: textblock
5458 #: ../examples/guestfs-testing.pod:84
5459 msgid "Shut the guest down and try copying multiple files and directories:"
5460 msgstr ""
5461
5462 #. type: verbatim
5463 #: ../examples/guestfs-testing.pod:86
5464 #, no-wrap
5465 msgid ""
5466 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
5467 "\n"
5468 msgstr ""
5469
5470 #. type: =head2
5471 #: ../examples/guestfs-testing.pod:88
5472 msgid "Copy some files out of a guest."
5473 msgstr ""
5474
5475 #. type: textblock
5476 #: ../examples/guestfs-testing.pod:90
5477 msgid ""
5478 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
5479 "guest or disk image."
5480 msgstr ""
5481
5482 #. type: textblock
5483 #: ../examples/guestfs-testing.pod:95
5484 msgid "Note the final space and period in the command is not a typo."
5485 msgstr ""
5486
5487 #. type: textblock
5488 #: ../examples/guestfs-testing.pod:97
5489 msgid "This should copy C</home> from the guest into the current directory."
5490 msgstr ""
5491
5492 #. type: =head2
5493 #: ../examples/guestfs-testing.pod:99
5494 msgid "Run virt-df."
5495 msgstr ""
5496
5497 #. type: textblock
5498 #: ../examples/guestfs-testing.pod:101
5499 msgid "L<virt-df(1)> lists disk space.  Run:"
5500 msgstr ""
5501
5502 #. type: verbatim
5503 #: ../examples/guestfs-testing.pod:103
5504 #, no-wrap
5505 msgid ""
5506 " virt-df\n"
5507 "\n"
5508 msgstr ""
5509
5510 #. type: textblock
5511 #: ../examples/guestfs-testing.pod:105
5512 msgid "Do the results match what's reported inside the guests?"
5513 msgstr ""
5514
5515 #. type: =head2
5516 #: ../examples/guestfs-testing.pod:107
5517 msgid "Try importing virt-df CSV output into a spreadsheet or database."
5518 msgstr ""
5519
5520 #. type: textblock
5521 #: ../examples/guestfs-testing.pod:109 ../src/guestfs.pod:3083
5522 msgid "Run:"
5523 msgstr ""
5524
5525 #. type: verbatim
5526 #: ../examples/guestfs-testing.pod:111
5527 #, no-wrap
5528 msgid ""
5529 " virt-df --csv > /tmp/report.csv\n"
5530 "\n"
5531 msgstr ""
5532
5533 #. type: textblock
5534 #: ../examples/guestfs-testing.pod:113
5535 msgid ""
5536 "Now try to load this into your favorite spreadsheet or database.  Are the "
5537 "results reproduced faithfully in the spreadsheet/database?"
5538 msgstr ""
5539
5540 #. type: textblock
5541 #: ../examples/guestfs-testing.pod:116
5542 msgid ""
5543 "http://www.postgresql.org/docs/8.1/static/sql-copy.html "
5544 "http://dev.mysql.com/doc/refman/5.1/en/load-data.html"
5545 msgstr ""
5546
5547 #. type: =head2
5548 #: ../examples/guestfs-testing.pod:119
5549 msgid "B<*> Edit a file in a B<shut off> guest."
5550 msgstr ""
5551
5552 #. type: textblock
5553 #: ../examples/guestfs-testing.pod:121
5554 msgid ""
5555 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
5556 "Fedora guest:"
5557 msgstr ""
5558
5559 #. type: verbatim
5560 #: ../examples/guestfs-testing.pod:124
5561 #, no-wrap
5562 msgid ""
5563 " virt-edit LinuxGuest /etc/sysconfig/network\n"
5564 "\n"
5565 msgstr ""
5566
5567 #. type: textblock
5568 #: ../examples/guestfs-testing.pod:126
5569 msgid "On other Linux guests try editing other files such as:"
5570 msgstr ""
5571
5572 #. type: verbatim
5573 #: ../examples/guestfs-testing.pod:128
5574 #, no-wrap
5575 msgid ""
5576 " virt-edit LinuxGuest /etc/motd\n"
5577 "\n"
5578 msgstr ""
5579
5580 #. type: textblock
5581 #: ../examples/guestfs-testing.pod:130
5582 msgid "Are the changes seen inside the guest when it is booted?"
5583 msgstr ""
5584
5585 #. type: =head2
5586 #: ../examples/guestfs-testing.pod:132
5587 msgid "Display the filesystems / partitions / LVs in a guest."
5588 msgstr ""
5589
5590 #. type: textblock
5591 #: ../examples/guestfs-testing.pod:134
5592 msgid ""
5593 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
5594 "this command on any disk image or guest:"
5595 msgstr ""
5596
5597 #. type: verbatim
5598 #: ../examples/guestfs-testing.pod:137
5599 #, no-wrap
5600 msgid ""
5601 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
5602 "\n"
5603 msgstr ""
5604
5605 #. type: verbatim
5606 #: ../examples/guestfs-testing.pod:141
5607 #, no-wrap
5608 msgid ""
5609 " virt-filesystems -d Guest --all --long -h\n"
5610 "\n"
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../examples/guestfs-testing.pod:143
5615 msgid "Do the results match what is seen in the guest?"
5616 msgstr ""
5617
5618 #. type: =head2
5619 #: ../examples/guestfs-testing.pod:145
5620 msgid "Run virt-inspector on all your guests."
5621 msgstr ""
5622
5623 #. type: textblock
5624 #: ../examples/guestfs-testing.pod:147
5625 msgid ""
5626 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
5627 "images:"
5628 msgstr ""
5629
5630 #. type: verbatim
5631 #: ../examples/guestfs-testing.pod:150
5632 #, no-wrap
5633 msgid ""
5634 " virt-inspector -a /path/to/disk.img | less\n"
5635 "\n"
5636 msgstr ""
5637
5638 #. type: verbatim
5639 #: ../examples/guestfs-testing.pod:154
5640 #, no-wrap
5641 msgid ""
5642 " virt-inspector -d Guest | less\n"
5643 "\n"
5644 msgstr ""
5645
5646 #. type: textblock
5647 #: ../examples/guestfs-testing.pod:156
5648 msgid "Do the results match what is actually in the guest?"
5649 msgstr ""
5650
5651 #. type: =head2
5652 #: ../examples/guestfs-testing.pod:158
5653 msgid "Try the auditing features of virt-ls on all your guests."
5654 msgstr ""
5655
5656 #. type: verbatim
5657 #: ../examples/guestfs-testing.pod:162
5658 #, no-wrap
5659 msgid ""
5660 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
5661 "\n"
5662 msgstr ""
5663
5664 #. type: verbatim
5665 #: ../examples/guestfs-testing.pod:166
5666 #, no-wrap
5667 msgid ""
5668 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
5669 "\n"
5670 msgstr ""
5671
5672 #. type: verbatim
5673 #: ../examples/guestfs-testing.pod:170
5674 #, no-wrap
5675 msgid ""
5676 " virt-ls -lR -d Guest / | grep '^s'\n"
5677 "\n"
5678 msgstr ""
5679
5680 #. type: verbatim
5681 #: ../examples/guestfs-testing.pod:174
5682 #, no-wrap
5683 msgid ""
5684 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
5685 "\n"
5686 msgstr ""
5687
5688 #. type: textblock
5689 #: ../examples/guestfs-testing.pod:176
5690 msgid "Display files larger than 10MB in home directories:"
5691 msgstr ""
5692
5693 #. type: verbatim
5694 #: ../examples/guestfs-testing.pod:178
5695 #, no-wrap
5696 msgid ""
5697 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
5698 "\n"
5699 msgstr ""
5700
5701 #. type: verbatim
5702 #: ../examples/guestfs-testing.pod:182
5703 #, no-wrap
5704 msgid ""
5705 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
5706 "\n"
5707 msgstr ""
5708
5709 #. type: verbatim
5710 #: ../examples/guestfs-testing.pod:186
5711 #, no-wrap
5712 msgid ""
5713 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
5714 "\n"
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../examples/guestfs-testing.pod:188
5719 msgid "Do the results match what is in the guest?"
5720 msgstr ""
5721
5722 #. type: =head2
5723 #: ../examples/guestfs-testing.pod:190
5724 msgid "Create a disk image from a tarball."
5725 msgstr ""
5726
5727 #. type: textblock
5728 #: ../examples/guestfs-testing.pod:192
5729 msgid ""
5730 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
5731 "happen to have:"
5732 msgstr ""
5733
5734 #. type: verbatim
5735 #: ../examples/guestfs-testing.pod:195
5736 #, no-wrap
5737 msgid ""
5738 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
5739 "\n"
5740 msgstr ""
5741
5742 #. type: textblock
5743 #: ../examples/guestfs-testing.pod:197
5744 msgid ""
5745 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
5746 "see the files.  This test is particularly useful if you try it with a "
5747 "Windows guest."
5748 msgstr ""
5749
5750 #. type: textblock
5751 #: ../examples/guestfs-testing.pod:201
5752 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../examples/guestfs-testing.pod:203
5757 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
5758 msgstr ""
5759
5760 #. type: =head2
5761 #: ../examples/guestfs-testing.pod:205
5762 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
5763 msgstr ""
5764
5765 #. type: textblock
5766 #: ../examples/guestfs-testing.pod:207
5767 msgid ""
5768 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
5769 "disk image:"
5770 msgstr ""
5771
5772 #. type: verbatim
5773 #: ../examples/guestfs-testing.pod:210
5774 #, no-wrap
5775 msgid ""
5776 " virt-rescue -a /path/to/disk.img\n"
5777 "\n"
5778 msgstr ""
5779
5780 #. type: verbatim
5781 #: ../examples/guestfs-testing.pod:214
5782 #, no-wrap
5783 msgid ""
5784 " virt-rescue -d Guest\n"
5785 "\n"
5786 msgstr ""
5787
5788 #. type: textblock
5789 #: ../examples/guestfs-testing.pod:216
5790 msgid "Can you use ordinary shell commands to examine the guest?"
5791 msgstr ""
5792
5793 #. type: =head2
5794 #: ../examples/guestfs-testing.pod:218
5795 msgid "B<*> Resize your guests."
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../examples/guestfs-testing.pod:220
5800 msgid ""
5801 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
5802 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
5803 msgstr ""
5804
5805 #. type: verbatim
5806 #: ../examples/guestfs-testing.pod:224
5807 #, no-wrap
5808 msgid ""
5809 " truncate -s 30G newdisk.img\n"
5810 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
5811 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
5812 " qemu-kvm -m 1024 -hda newdisk.img\n"
5813 "\n"
5814 msgstr ""
5815
5816 #. type: textblock
5817 #: ../examples/guestfs-testing.pod:229
5818 msgid "Does the guest still boot? Try expanding other partitions."
5819 msgstr ""
5820
5821 #. type: =head2
5822 #: ../examples/guestfs-testing.pod:231
5823 msgid "B<*> Sparsify a guest disk."
5824 msgstr ""
5825
5826 #. type: textblock
5827 #: ../examples/guestfs-testing.pod:233
5828 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
5829 msgstr ""
5830
5831 #. type: verbatim
5832 #: ../examples/guestfs-testing.pod:235
5833 #, no-wrap
5834 msgid ""
5835 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
5836 "\n"
5837 msgstr ""
5838
5839 #. type: textblock
5840 #: ../examples/guestfs-testing.pod:237
5841 msgid ""
5842 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
5843 "image smaller (use C<du> to check)?"
5844 msgstr ""
5845
5846 #. type: =head2
5847 #: ../examples/guestfs-testing.pod:240
5848 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
5849 msgstr ""
5850
5851 #. type: textblock
5852 #: ../examples/guestfs-testing.pod:242
5853 msgid ""
5854 "Note that this really will mess up an existing guest, so it's better to "
5855 "clone the guest before trying this."
5856 msgstr ""
5857
5858 #. type: verbatim
5859 #: ../examples/guestfs-testing.pod:245
5860 #, no-wrap
5861 msgid ""
5862 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
5863 "\n"
5864 msgstr ""
5865
5866 #. type: textblock
5867 #: ../examples/guestfs-testing.pod:247
5868 msgid ""
5869 "Was the sysprep successful? After booting, what changes were made and were "
5870 "they successful?"
5871 msgstr ""
5872
5873 #. type: =head2
5874 #: ../examples/guestfs-testing.pod:250
5875 msgid "Dump the Windows Registry from your Windows guests."
5876 msgstr ""
5877
5878 #. type: textblock
5879 #: ../examples/guestfs-testing.pod:252
5880 msgid ""
5881 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
5882 "guests that you have."
5883 msgstr ""
5884
5885 #. type: verbatim
5886 #: ../examples/guestfs-testing.pod:255
5887 #, no-wrap
5888 msgid ""
5889 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
5890 "   less\n"
5891 "\n"
5892 msgstr ""
5893
5894 #. type: verbatim
5895 #: ../examples/guestfs-testing.pod:258
5896 #, no-wrap
5897 msgid ""
5898 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
5899 "   less\n"
5900 "\n"
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../examples/guestfs-testing.pod:261
5905 msgid "Does the output match running C<regedit> inside the guest?"
5906 msgstr ""
5907
5908 #. type: textblock
5909 #: ../examples/guestfs-testing.pod:263
5910 msgid ""
5911 "A recent feature is the ability to dump user registries, so try this, "
5912 "replacing I<username> with the name of a local user in the guest:"
5913 msgstr ""
5914
5915 #. type: verbatim
5916 #: ../examples/guestfs-testing.pod:266
5917 #, no-wrap
5918 msgid ""
5919 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' "
5920 "|\n"
5921 "   less\n"
5922 "\n"
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../examples/guestfs-testing.pod:271
5927 msgid ""
5928 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
5929 "L<http://libguestfs.org/>."
5930 msgstr ""
5931
5932 #. type: =head2
5933 #: ../fish/guestfish-actions.pod:1
5934 msgid "add-cdrom"
5935 msgstr ""
5936
5937 #. type: verbatim
5938 #: ../fish/guestfish-actions.pod:3
5939 #, no-wrap
5940 msgid ""
5941 " add-cdrom filename\n"
5942 "\n"
5943 msgstr ""
5944
5945 #. type: textblock
5946 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5947 msgid "This function adds a virtual CD-ROM disk image to the guest."
5948 msgstr ""
5949
5950 #. type: textblock
5951 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5952 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5953 msgstr ""
5954
5955 #. type: textblock
5956 #: ../fish/guestfish-actions.pod:15
5957 msgid ""
5958 "This call checks for the existence of C<filename>.  This stops you from "
5959 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5960 "and C<http:> URLs.  To specify those, use the general L</config> call "
5961 "instead."
5962 msgstr ""
5963
5964 #. type: textblock
5965 #: ../fish/guestfish-actions.pod:22
5966 msgid ""
5967 "If you just want to add an ISO file (often you use this as an efficient way "
5968 "to transfer large files into the guest), then you should probably use "
5969 "L</add-drive-ro> instead."
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214 ../fish/guestfish-actions.pod:228
5974 msgid ""
5975 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5976 "instead."
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../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:3381 ../fish/guestfish-actions.pod:3692 ../fish/guestfish-actions.pod:3740 ../fish/guestfish-actions.pod:4658 ../fish/guestfish-actions.pod:4678 ../fish/guestfish-actions.pod:4697 ../fish/guestfish-actions.pod:4735 ../fish/guestfish-actions.pod:5463 ../fish/guestfish-actions.pod:5566 ../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:5225 ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7184 ../src/guestfs-actions.pod:7215 ../src/guestfs-actions.pod:7275 ../src/guestfs-actions.pod:8327 ../src/guestfs-actions.pod:8436 ../src/guestfs-actions.pod:8616
5981 msgid ""
5982 "Deprecated functions will not be removed from the API, but the fact that "
5983 "they are deprecated indicates that there are problems with correct use of "
5984 "these functions."
5985 msgstr ""
5986
5987 #. type: =head2
5988 #: ../fish/guestfish-actions.pod:35
5989 msgid "add-domain"
5990 msgstr ""
5991
5992 #. type: =head2
5993 #: ../fish/guestfish-actions.pod:37
5994 msgid "domain"
5995 msgstr ""
5996
5997 #. type: verbatim
5998 #: ../fish/guestfish-actions.pod:39
5999 #, no-wrap
6000 msgid ""
6001 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] "
6002 "[live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6003 "\n"
6004 msgstr ""
6005
6006 #. type: textblock
6007 #: ../fish/guestfish-actions.pod:41
6008 msgid ""
6009 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6010 "It works by connecting to libvirt, requesting the domain and domain XML from "
6011 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6012 msgstr ""
6013
6014 #. type: textblock
6015 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6016 msgid ""
6017 "The number of disks added is returned.  This operation is atomic: if an "
6018 "error is returned, then no disks are added."
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6023 msgid ""
6024 "This function does some minimal checks to make sure the libvirt domain is "
6025 "not running (unless C<readonly> is true).  In a future version we will try "
6026 "to acquire the libvirt lock on each disk."
6027 msgstr ""
6028
6029 #. type: textblock
6030 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6031 msgid ""
6032 "Disks must be accessible locally.  This often means that adding disks from a "
6033 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6034 "unless those disks are accessible via the same device path locally too."
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6039 msgid ""
6040 "The optional C<libvirturi> parameter sets the libvirt URI (see "
6041 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
6042 "default libvirt URI (or one set through an environment variable, see the "
6043 "libvirt documentation for full details)."
6044 msgstr ""
6045
6046 #. type: textblock
6047 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6048 msgid ""
6049 "The optional C<live> flag controls whether this call will try to connect to "
6050 "a running virtual machine C<guestfsd> process if it sees a suitable "
6051 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6052 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6053 "DAEMONS> for more information."
6054 msgstr ""
6055
6056 #. type: textblock
6057 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6058 msgid ""
6059 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6060 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6061 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6062 "as usual."
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6067 msgid ""
6068 "The optional C<readonlydisk> parameter controls what we do for disks which "
6069 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6070 msgstr ""
6071
6072 #. type: =item
6073 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6074 msgid "readonlydisk = \"error\""
6075 msgstr ""
6076
6077 #. type: textblock
6078 #: ../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
6079 msgid "If C<readonly> is false:"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6084 msgid ""
6085 "The whole call is aborted with an error if any disk with the "
6086 "E<lt>readonly/E<gt> flag is found."
6087 msgstr ""
6088
6089 #. type: textblock
6090 #: ../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
6091 msgid "If C<readonly> is true:"
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../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
6096 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6097 msgstr ""
6098
6099 #. type: =item
6100 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6101 msgid "readonlydisk = \"read\""
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6106 msgid ""
6107 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6108 "are added read/write."
6109 msgstr ""
6110
6111 #. type: =item
6112 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6113 msgid "readonlydisk = \"write\" (default)"
6114 msgstr ""
6115
6116 #. type: textblock
6117 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6118 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6119 msgstr ""
6120
6121 #. type: =item
6122 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6123 msgid "readonlydisk = \"ignore\""
6124 msgstr ""
6125
6126 #. type: textblock
6127 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6128 msgid "If C<readonly> is true or false:"
6129 msgstr ""
6130
6131 #. type: textblock
6132 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6133 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6134 msgstr ""
6135
6136 #. type: textblock
6137 #: ../fish/guestfish-actions.pod:122
6138 msgid ""
6139 "The other optional parameters are passed directly through to "
6140 "L</add-drive-opts>."
6141 msgstr ""
6142
6143 #. type: textblock
6144 #: ../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:3430 ../fish/guestfish-actions.pod:3593 ../fish/guestfish-actions.pod:3728 ../fish/guestfish-actions.pod:5099
6145 msgid ""
6146 "This command has one or more optional arguments.  See L</OPTIONAL "
6147 "ARGUMENTS>."
6148 msgstr ""
6149
6150 #. type: =head2
6151 #: ../fish/guestfish-actions.pod:127
6152 msgid "add-drive"
6153 msgstr ""
6154
6155 #. type: verbatim
6156 #: ../fish/guestfish-actions.pod:129
6157 #, no-wrap
6158 msgid ""
6159 " add-drive filename\n"
6160 "\n"
6161 msgstr ""
6162
6163 #. type: textblock
6164 #: ../fish/guestfish-actions.pod:131
6165 msgid ""
6166 "This function is the equivalent of calling L</add-drive-opts> with no "
6167 "optional parameters, so the disk is added writable, with the format being "
6168 "detected automatically."
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../fish/guestfish-actions.pod:135
6173 msgid ""
6174 "Automatic detection of the format opens you up to a potential security hole "
6175 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6176 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6177 "you should think about replacing calls to this function with calls to "
6178 "L</add-drive-opts>, and specifying the format."
6179 msgstr ""
6180
6181 #. type: =head2
6182 #: ../fish/guestfish-actions.pod:142
6183 msgid "add-drive-opts"
6184 msgstr ""
6185
6186 #. type: =head2
6187 #: ../fish/guestfish-actions.pod:144
6188 msgid "add"
6189 msgstr ""
6190
6191 #. type: verbatim
6192 #: ../fish/guestfish-actions.pod:146
6193 #, no-wrap
6194 msgid ""
6195 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] "
6196 "[name:..]\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6202 msgid ""
6203 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6204 "The first time you call this function, the disk appears as C</dev/sda>, the "
6205 "second time as C</dev/sdb>, and so on."
6206 msgstr ""
6207
6208 #. type: textblock
6209 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6210 msgid ""
6211 "You don't necessarily need to be root when using libguestfs.  However you "
6212 "obviously do need sufficient permissions to access the filename for whatever "
6213 "operations you want to perform (ie. read access if you just want to read the "
6214 "image or write access if you want to modify the image)."
6215 msgstr ""
6216
6217 #. type: textblock
6218 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6219 msgid "This call checks that C<filename> exists."
6220 msgstr ""
6221
6222 #. type: textblock
6223 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3392 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5262
6224 msgid "The optional arguments are:"
6225 msgstr ""
6226
6227 #. type: =item
6228 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6229 msgid "C<readonly>"
6230 msgstr ""
6231
6232 #. type: textblock
6233 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6234 msgid ""
6235 "If true then the image is treated as read-only.  Writes are still allowed, "
6236 "but they are stored in a temporary snapshot overlay which is discarded at "
6237 "the end.  The disk that you add is not modified."
6238 msgstr ""
6239
6240 #. type: =item
6241 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6242 msgid "C<format>"
6243 msgstr ""
6244
6245 #. type: textblock
6246 #: ../fish/guestfish-actions.pod:173
6247 msgid ""
6248 "This forces the image format.  If you omit this (or use L</add-drive> or "
6249 "L</add-drive-ro>) then the format is automatically detected.  Possible "
6250 "formats include C<raw> and C<qcow2>."
6251 msgstr ""
6252
6253 #. type: textblock
6254 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6255 msgid ""
6256 "Automatic detection of the format opens you up to a potential security hole "
6257 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6258 "RHBZ#642934.  Specifying the format closes this security hole."
6259 msgstr ""
6260
6261 #. type: =item
6262 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6263 msgid "C<iface>"
6264 msgstr ""
6265
6266 #. type: textblock
6267 #: ../fish/guestfish-actions.pod:184
6268 msgid ""
6269 "This rarely-used option lets you emulate the behaviour of the deprecated "
6270 "L</add-drive-with-if> call (q.v.)"
6271 msgstr ""
6272
6273 #. type: =item
6274 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3242 ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:4994
6275 msgid "C<name>"
6276 msgstr ""
6277
6278 #. type: textblock
6279 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6280 msgid ""
6281 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6282 "a hint to the guest inspection process if it is available."
6283 msgstr ""
6284
6285 #. type: =head2
6286 #: ../fish/guestfish-actions.pod:196
6287 msgid "add-drive-ro"
6288 msgstr ""
6289
6290 #. type: =head2
6291 #: ../fish/guestfish-actions.pod:198
6292 msgid "add-ro"
6293 msgstr ""
6294
6295 #. type: verbatim
6296 #: ../fish/guestfish-actions.pod:200
6297 #, no-wrap
6298 msgid ""
6299 " add-drive-ro filename\n"
6300 "\n"
6301 msgstr ""
6302
6303 #. type: textblock
6304 #: ../fish/guestfish-actions.pod:202
6305 msgid ""
6306 "This function is the equivalent of calling L</add-drive-opts> with the "
6307 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6308 "is added read-only, with the format being detected automatically."
6309 msgstr ""
6310
6311 #. type: =head2
6312 #: ../fish/guestfish-actions.pod:207
6313 msgid "add-drive-ro-with-if"
6314 msgstr ""
6315
6316 #. type: verbatim
6317 #: ../fish/guestfish-actions.pod:209
6318 #, no-wrap
6319 msgid ""
6320 " add-drive-ro-with-if filename iface\n"
6321 "\n"
6322 msgstr ""
6323
6324 #. type: textblock
6325 #: ../fish/guestfish-actions.pod:211
6326 msgid ""
6327 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6328 "interface emulation to use at run time."
6329 msgstr ""
6330
6331 #. type: =head2
6332 #: ../fish/guestfish-actions.pod:221
6333 msgid "add-drive-with-if"
6334 msgstr ""
6335
6336 #. type: verbatim
6337 #: ../fish/guestfish-actions.pod:223
6338 #, no-wrap
6339 msgid ""
6340 " add-drive-with-if filename iface\n"
6341 "\n"
6342 msgstr ""
6343
6344 #. type: textblock
6345 #: ../fish/guestfish-actions.pod:225
6346 msgid ""
6347 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6348 "interface emulation to use at run time."
6349 msgstr ""
6350
6351 #. type: =head2
6352 #: ../fish/guestfish-actions.pod:235
6353 msgid "aug-clear"
6354 msgstr ""
6355
6356 #. type: verbatim
6357 #: ../fish/guestfish-actions.pod:237
6358 #, no-wrap
6359 msgid ""
6360 " aug-clear augpath\n"
6361 "\n"
6362 msgstr ""
6363
6364 #. type: textblock
6365 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6366 msgid ""
6367 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6368 "L<augtool(1)> C<clear> command."
6369 msgstr ""
6370
6371 #. type: =head2
6372 #: ../fish/guestfish-actions.pod:242
6373 msgid "aug-close"
6374 msgstr ""
6375
6376 #. type: verbatim
6377 #: ../fish/guestfish-actions.pod:244
6378 #, no-wrap
6379 msgid ""
6380 " aug-close\n"
6381 "\n"
6382 msgstr ""
6383
6384 #. type: textblock
6385 #: ../fish/guestfish-actions.pod:246
6386 msgid ""
6387 "Close the current Augeas handle and free up any resources used by it.  After "
6388 "calling this, you have to call L</aug-init> again before you can use any "
6389 "other Augeas functions."
6390 msgstr ""
6391
6392 #. type: =head2
6393 #: ../fish/guestfish-actions.pod:251
6394 msgid "aug-defnode"
6395 msgstr ""
6396
6397 #. type: verbatim
6398 #: ../fish/guestfish-actions.pod:253
6399 #, no-wrap
6400 msgid ""
6401 " aug-defnode name expr val\n"
6402 "\n"
6403 msgstr ""
6404
6405 #. type: textblock
6406 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6407 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6408 msgstr ""
6409
6410 #. type: textblock
6411 #: ../fish/guestfish-actions.pod:258
6412 msgid ""
6413 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6414 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6415 "containing that single node."
6416 msgstr ""
6417
6418 #. type: textblock
6419 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6420 msgid ""
6421 "On success this returns a pair containing the number of nodes in the "
6422 "nodeset, and a boolean flag if a node was created."
6423 msgstr ""
6424
6425 #. type: =head2
6426 #: ../fish/guestfish-actions.pod:266
6427 msgid "aug-defvar"
6428 msgstr ""
6429
6430 #. type: verbatim
6431 #: ../fish/guestfish-actions.pod:268
6432 #, no-wrap
6433 msgid ""
6434 " aug-defvar name expr\n"
6435 "\n"
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6440 msgid ""
6441 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6442 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6443 msgstr ""
6444
6445 #. type: textblock
6446 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6447 msgid ""
6448 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6449 "evaluates to something which is not a nodeset."
6450 msgstr ""
6451
6452 #. type: =head2
6453 #: ../fish/guestfish-actions.pod:277
6454 msgid "aug-get"
6455 msgstr ""
6456
6457 #. type: verbatim
6458 #: ../fish/guestfish-actions.pod:279
6459 #, no-wrap
6460 msgid ""
6461 " aug-get augpath\n"
6462 "\n"
6463 msgstr ""
6464
6465 #. type: textblock
6466 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6467 msgid ""
6468 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6469 "node, the C<value> is returned."
6470 msgstr ""
6471
6472 #. type: =head2
6473 #: ../fish/guestfish-actions.pod:284
6474 msgid "aug-init"
6475 msgstr ""
6476
6477 #. type: verbatim
6478 #: ../fish/guestfish-actions.pod:286
6479 #, no-wrap
6480 msgid ""
6481 " aug-init root flags\n"
6482 "\n"
6483 msgstr ""
6484
6485 #. type: textblock
6486 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6487 msgid ""
6488 "Create a new Augeas handle for editing configuration files.  If there was "
6489 "any previous Augeas handle associated with this guestfs session, then it is "
6490 "closed."
6491 msgstr ""
6492
6493 #. type: textblock
6494 #: ../fish/guestfish-actions.pod:292
6495 msgid "You must call this before using any other L</aug-*> commands."
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6500 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6505 msgid ""
6506 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6507 "logical I<or> of the following integers:"
6508 msgstr ""
6509
6510 #. type: =item
6511 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6512 msgid "C<AUG_SAVE_BACKUP> = 1"
6513 msgstr ""
6514
6515 #. type: textblock
6516 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6517 msgid "Keep the original file with a C<.augsave> extension."
6518 msgstr ""
6519
6520 #. type: =item
6521 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6522 msgid "C<AUG_SAVE_NEWFILE> = 2"
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6527 msgid ""
6528 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6529 "original.  Overrides C<AUG_SAVE_BACKUP>."
6530 msgstr ""
6531
6532 #. type: =item
6533 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6534 msgid "C<AUG_TYPE_CHECK> = 4"
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6539 msgid "Typecheck lenses."
6540 msgstr ""
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:317
6544 msgid ""
6545 "This option is only useful when debugging Augeas lenses.  Use of this option "
6546 "may require additional memory for the libguestfs appliance.  You may need to "
6547 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6548 msgstr ""
6549
6550 #. type: =item
6551 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6552 msgid "C<AUG_NO_STDINC> = 8"
6553 msgstr ""
6554
6555 #. type: textblock
6556 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6557 msgid "Do not use standard load path for modules."
6558 msgstr ""
6559
6560 #. type: =item
6561 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6562 msgid "C<AUG_SAVE_NOOP> = 16"
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6567 msgid "Make save a no-op, just record what would have been changed."
6568 msgstr ""
6569
6570 #. type: =item
6571 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6572 msgid "C<AUG_NO_LOAD> = 32"
6573 msgstr ""
6574
6575 #. type: textblock
6576 #: ../fish/guestfish-actions.pod:332
6577 msgid "Do not load the tree in L</aug-init>."
6578 msgstr ""
6579
6580 #. type: textblock
6581 #: ../fish/guestfish-actions.pod:336
6582 msgid "To close the handle, you can call L</aug-close>."
6583 msgstr ""
6584
6585 #. type: textblock
6586 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6587 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6588 msgstr ""
6589
6590 #. type: =head2
6591 #: ../fish/guestfish-actions.pod:340
6592 msgid "aug-insert"
6593 msgstr ""
6594
6595 #. type: verbatim
6596 #: ../fish/guestfish-actions.pod:342
6597 #, no-wrap
6598 msgid ""
6599 " aug-insert augpath label true|false\n"
6600 "\n"
6601 msgstr ""
6602
6603 #. type: textblock
6604 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6605 msgid ""
6606 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6607 "or after C<path> (depending on the boolean flag C<before>)."
6608 msgstr ""
6609
6610 #. type: textblock
6611 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6612 msgid ""
6613 "C<path> must match exactly one existing node in the tree, and C<label> must "
6614 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6615 msgstr ""
6616
6617 #. type: =head2
6618 #: ../fish/guestfish-actions.pod:352
6619 msgid "aug-load"
6620 msgstr ""
6621
6622 #. type: verbatim
6623 #: ../fish/guestfish-actions.pod:354
6624 #, no-wrap
6625 msgid ""
6626 " aug-load\n"
6627 "\n"
6628 msgstr ""
6629
6630 #. type: textblock
6631 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6632 msgid "Load files into the tree."
6633 msgstr ""
6634
6635 #. type: textblock
6636 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6637 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6638 msgstr ""
6639
6640 #. type: =head2
6641 #: ../fish/guestfish-actions.pod:361
6642 msgid "aug-ls"
6643 msgstr ""
6644
6645 #. type: verbatim
6646 #: ../fish/guestfish-actions.pod:363
6647 #, no-wrap
6648 msgid ""
6649 " aug-ls augpath\n"
6650 "\n"
6651 msgstr ""
6652
6653 #. type: textblock
6654 #: ../fish/guestfish-actions.pod:365
6655 msgid ""
6656 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6657 "resulting nodes into alphabetical order."
6658 msgstr ""
6659
6660 #. type: =head2
6661 #: ../fish/guestfish-actions.pod:368
6662 msgid "aug-match"
6663 msgstr ""
6664
6665 #. type: verbatim
6666 #: ../fish/guestfish-actions.pod:370
6667 #, no-wrap
6668 msgid ""
6669 " aug-match augpath\n"
6670 "\n"
6671 msgstr ""
6672
6673 #. type: textblock
6674 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6675 msgid ""
6676 "Returns a list of paths which match the path expression C<path>.  The "
6677 "returned paths are sufficiently qualified so that they match exactly one "
6678 "node in the current tree."
6679 msgstr ""
6680
6681 #. type: =head2
6682 #: ../fish/guestfish-actions.pod:376
6683 msgid "aug-mv"
6684 msgstr ""
6685
6686 #. type: verbatim
6687 #: ../fish/guestfish-actions.pod:378
6688 #, no-wrap
6689 msgid ""
6690 " aug-mv src dest\n"
6691 "\n"
6692 msgstr ""
6693
6694 #. type: textblock
6695 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6696 msgid ""
6697 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6698 "C<dest> is overwritten if it exists."
6699 msgstr ""
6700
6701 #. type: =head2
6702 #: ../fish/guestfish-actions.pod:383
6703 msgid "aug-rm"
6704 msgstr ""
6705
6706 #. type: verbatim
6707 #: ../fish/guestfish-actions.pod:385
6708 #, no-wrap
6709 msgid ""
6710 " aug-rm augpath\n"
6711 "\n"
6712 msgstr ""
6713
6714 #. type: textblock
6715 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6716 msgid "Remove C<path> and all of its children."
6717 msgstr ""
6718
6719 #. type: textblock
6720 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6721 msgid "On success this returns the number of entries which were removed."
6722 msgstr ""
6723
6724 #. type: =head2
6725 #: ../fish/guestfish-actions.pod:391
6726 msgid "aug-save"
6727 msgstr ""
6728
6729 #. type: verbatim
6730 #: ../fish/guestfish-actions.pod:393
6731 #, no-wrap
6732 msgid ""
6733 " aug-save\n"
6734 "\n"
6735 msgstr ""
6736
6737 #. type: textblock
6738 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6739 msgid "This writes all pending changes to disk."
6740 msgstr ""
6741
6742 #. type: textblock
6743 #: ../fish/guestfish-actions.pod:397
6744 msgid ""
6745 "The flags which were passed to L</aug-init> affect exactly how files are "
6746 "saved."
6747 msgstr ""
6748
6749 #. type: =head2
6750 #: ../fish/guestfish-actions.pod:400
6751 msgid "aug-set"
6752 msgstr ""
6753
6754 #. type: verbatim
6755 #: ../fish/guestfish-actions.pod:402
6756 #, no-wrap
6757 msgid ""
6758 " aug-set augpath val\n"
6759 "\n"
6760 msgstr ""
6761
6762 #. type: textblock
6763 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6764 msgid "Set the value associated with C<path> to C<val>."
6765 msgstr ""
6766
6767 #. type: textblock
6768 #: ../fish/guestfish-actions.pod:406
6769 msgid ""
6770 "In the Augeas API, it is possible to clear a node by setting the value to "
6771 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6772 "this call.  Instead you must use the L</aug-clear> call."
6773 msgstr ""
6774
6775 #. type: =head2
6776 #: ../fish/guestfish-actions.pod:411
6777 msgid "available"
6778 msgstr ""
6779
6780 #. type: verbatim
6781 #: ../fish/guestfish-actions.pod:413
6782 #, no-wrap
6783 msgid ""
6784 " available 'groups ...'\n"
6785 "\n"
6786 msgstr ""
6787
6788 #. type: textblock
6789 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6790 msgid ""
6791 "This command is used to check the availability of some groups of "
6792 "functionality in the appliance, which not all builds of the libguestfs "
6793 "appliance will be able to provide."
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:419
6798 msgid ""
6799 "The libguestfs groups, and the functions that those groups correspond to, "
6800 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6801 "runtime by calling L</available-all-groups>."
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6806 msgid ""
6807 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6808 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6809 "and Augeas (configuration file editing) functions."
6810 msgstr ""
6811
6812 #. type: textblock
6813 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6814 msgid "The command returns no error if I<all> requested groups are available."
6815 msgstr ""
6816
6817 #. type: textblock
6818 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6819 msgid ""
6820 "It fails with an error if one or more of the requested groups is unavailable "
6821 "in the appliance."
6822 msgstr ""
6823
6824 #. type: textblock
6825 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6826 msgid ""
6827 "If an unknown group name is included in the list of groups then an error is "
6828 "always returned."
6829 msgstr ""
6830
6831 #. type: textblock
6832 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6833 msgid "I<Notes:>"
6834 msgstr ""
6835
6836 #. type: textblock
6837 #: ../fish/guestfish-actions.pod:443
6838 msgid "You must call L</launch> before calling this function."
6839 msgstr ""
6840
6841 #. type: textblock
6842 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6843 msgid ""
6844 "The reason is because we don't know what groups are supported by the "
6845 "appliance/daemon until it is running and can be queried."
6846 msgstr ""
6847
6848 #. type: textblock
6849 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6850 msgid ""
6851 "If a group of functions is available, this does not necessarily mean that "
6852 "they will work.  You still have to check for errors when calling individual "
6853 "API functions even if they are available."
6854 msgstr ""
6855
6856 #. type: textblock
6857 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6858 msgid ""
6859 "It is usually the job of distro packagers to build complete functionality "
6860 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6861 "with all requirements satisfied, will support everything."
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:465
6866 msgid ""
6867 "This call was added in version C<1.0.80>.  In previous versions of "
6868 "libguestfs all you could do would be to speculatively execute a command to "
6869 "find out if the daemon implemented it.  See also L</version>."
6870 msgstr ""
6871
6872 #. type: =head2
6873 #: ../fish/guestfish-actions.pod:472
6874 msgid "available-all-groups"
6875 msgstr ""
6876
6877 #. type: verbatim
6878 #: ../fish/guestfish-actions.pod:474
6879 #, no-wrap
6880 msgid ""
6881 " available-all-groups\n"
6882 "\n"
6883 msgstr ""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:476
6887 msgid ""
6888 "This command returns a list of all optional groups that this daemon knows "
6889 "about.  Note this returns both supported and unsupported groups.  To find "
6890 "out which ones the daemon can actually support you have to call "
6891 "L</available> on each member of the returned list."
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../fish/guestfish-actions.pod:482
6896 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6897 msgstr ""
6898
6899 #. type: =head2
6900 #: ../fish/guestfish-actions.pod:484
6901 msgid "base64-in"
6902 msgstr ""
6903
6904 #. type: verbatim
6905 #: ../fish/guestfish-actions.pod:486
6906 #, no-wrap
6907 msgid ""
6908 " base64-in (base64file|-) filename\n"
6909 "\n"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6914 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../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:4955 ../fish/guestfish-actions.pod:4967 ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4989 ../fish/guestfish-actions.pod:5120 ../fish/guestfish-actions.pod:5129 ../fish/guestfish-actions.pod:5183 ../fish/guestfish-actions.pod:5206
6919 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6920 msgstr ""
6921
6922 #. type: =head2
6923 #: ../fish/guestfish-actions.pod:493
6924 msgid "base64-out"
6925 msgstr ""
6926
6927 #. type: verbatim
6928 #: ../fish/guestfish-actions.pod:495
6929 #, no-wrap
6930 msgid ""
6931 " base64-out filename (base64file|-)\n"
6932 "\n"
6933 msgstr ""
6934
6935 #. type: textblock
6936 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6937 msgid ""
6938 "This command downloads the contents of C<filename>, writing it out to local "
6939 "file C<base64file> encoded as base64."
6940 msgstr ""
6941
6942 #. type: =head2
6943 #: ../fish/guestfish-actions.pod:502
6944 msgid "blockdev-flushbufs"
6945 msgstr ""
6946
6947 #. type: verbatim
6948 #: ../fish/guestfish-actions.pod:504
6949 #, no-wrap
6950 msgid ""
6951 " blockdev-flushbufs device\n"
6952 "\n"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6957 msgid "This tells the kernel to flush internal buffers associated with C<device>."
6958 msgstr ""
6959
6960 #. type: textblock
6961 #: ../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
6962 msgid "This uses the L<blockdev(8)> command."
6963 msgstr ""
6964
6965 #. type: =head2
6966 #: ../fish/guestfish-actions.pod:511
6967 msgid "blockdev-getbsz"
6968 msgstr ""
6969
6970 #. type: verbatim
6971 #: ../fish/guestfish-actions.pod:513
6972 #, no-wrap
6973 msgid ""
6974 " blockdev-getbsz device\n"
6975 "\n"
6976 msgstr ""
6977
6978 #. type: textblock
6979 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6980 msgid "This returns the block size of a device."
6981 msgstr ""
6982
6983 #. type: textblock
6984 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580 ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6985 msgid ""
6986 "(Note this is different from both I<size in blocks> and I<filesystem block "
6987 "size>)."
6988 msgstr ""
6989
6990 #. type: =head2
6991 #: ../fish/guestfish-actions.pod:522
6992 msgid "blockdev-getro"
6993 msgstr ""
6994
6995 #. type: verbatim
6996 #: ../fish/guestfish-actions.pod:524
6997 #, no-wrap
6998 msgid ""
6999 " blockdev-getro device\n"
7000 "\n"
7001 msgstr ""
7002
7003 #. type: textblock
7004 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7005 msgid ""
7006 "Returns a boolean indicating if the block device is read-only (true if "
7007 "read-only, false if not)."
7008 msgstr ""
7009
7010 #. type: =head2
7011 #: ../fish/guestfish-actions.pod:531
7012 msgid "blockdev-getsize64"
7013 msgstr ""
7014
7015 #. type: verbatim
7016 #: ../fish/guestfish-actions.pod:533
7017 #, no-wrap
7018 msgid ""
7019 " blockdev-getsize64 device\n"
7020 "\n"
7021 msgstr ""
7022
7023 #. type: textblock
7024 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7025 msgid "This returns the size of the device in bytes."
7026 msgstr ""
7027
7028 #. type: textblock
7029 #: ../fish/guestfish-actions.pod:537
7030 msgid "See also L</blockdev-getsz>."
7031 msgstr ""
7032
7033 #. type: =head2
7034 #: ../fish/guestfish-actions.pod:541
7035 msgid "blockdev-getss"
7036 msgstr ""
7037
7038 #. type: verbatim
7039 #: ../fish/guestfish-actions.pod:543
7040 #, no-wrap
7041 msgid ""
7042 " blockdev-getss device\n"
7043 "\n"
7044 msgstr ""
7045
7046 #. type: textblock
7047 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7048 msgid ""
7049 "This returns the size of sectors on a block device.  Usually 512, but can be "
7050 "larger for modern devices."
7051 msgstr ""
7052
7053 #. type: textblock
7054 #: ../fish/guestfish-actions.pod:548
7055 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7056 msgstr ""
7057
7058 #. type: =head2
7059 #: ../fish/guestfish-actions.pod:553
7060 msgid "blockdev-getsz"
7061 msgstr ""
7062
7063 #. type: verbatim
7064 #: ../fish/guestfish-actions.pod:555
7065 #, no-wrap
7066 msgid ""
7067 " blockdev-getsz device\n"
7068 "\n"
7069 msgstr ""
7070
7071 #. type: textblock
7072 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7073 msgid ""
7074 "This returns the size of the device in units of 512-byte sectors (even if "
7075 "the sectorsize isn't 512 bytes ... weird)."
7076 msgstr ""
7077
7078 #. type: textblock
7079 #: ../fish/guestfish-actions.pod:560
7080 msgid ""
7081 "See also L</blockdev-getss> for the real sector size of the device, and "
7082 "L</blockdev-getsize64> for the more useful I<size in bytes>."
7083 msgstr ""
7084
7085 #. type: =head2
7086 #: ../fish/guestfish-actions.pod:566
7087 msgid "blockdev-rereadpt"
7088 msgstr ""
7089
7090 #. type: verbatim
7091 #: ../fish/guestfish-actions.pod:568
7092 #, no-wrap
7093 msgid ""
7094 " blockdev-rereadpt device\n"
7095 "\n"
7096 msgstr ""
7097
7098 #. type: textblock
7099 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7100 msgid "Reread the partition table on C<device>."
7101 msgstr ""
7102
7103 #. type: =head2
7104 #: ../fish/guestfish-actions.pod:574
7105 msgid "blockdev-setbsz"
7106 msgstr ""
7107
7108 #. type: verbatim
7109 #: ../fish/guestfish-actions.pod:576
7110 #, no-wrap
7111 msgid ""
7112 " blockdev-setbsz device blocksize\n"
7113 "\n"
7114 msgstr ""
7115
7116 #. type: textblock
7117 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7118 msgid "This sets the block size of a device."
7119 msgstr ""
7120
7121 #. type: =head2
7122 #: ../fish/guestfish-actions.pod:585
7123 msgid "blockdev-setro"
7124 msgstr ""
7125
7126 #. type: verbatim
7127 #: ../fish/guestfish-actions.pod:587
7128 #, no-wrap
7129 msgid ""
7130 " blockdev-setro device\n"
7131 "\n"
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7136 msgid "Sets the block device named C<device> to read-only."
7137 msgstr ""
7138
7139 #. type: =head2
7140 #: ../fish/guestfish-actions.pod:593
7141 msgid "blockdev-setrw"
7142 msgstr ""
7143
7144 #. type: verbatim
7145 #: ../fish/guestfish-actions.pod:595
7146 #, no-wrap
7147 msgid ""
7148 " blockdev-setrw device\n"
7149 "\n"
7150 msgstr ""
7151
7152 #. type: textblock
7153 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7154 msgid "Sets the block device named C<device> to read-write."
7155 msgstr ""
7156
7157 #. type: =head2
7158 #: ../fish/guestfish-actions.pod:601
7159 msgid "btrfs-filesystem-resize"
7160 msgstr ""
7161
7162 #. type: verbatim
7163 #: ../fish/guestfish-actions.pod:603
7164 #, no-wrap
7165 msgid ""
7166 " btrfs-filesystem-resize mountpoint [size:N]\n"
7167 "\n"
7168 msgstr ""
7169
7170 #. type: textblock
7171 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7172 msgid "This command resizes a btrfs filesystem."
7173 msgstr ""
7174
7175 #. type: textblock
7176 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7177 msgid ""
7178 "Note that unlike other resize calls, the filesystem has to be mounted and "
7179 "the parameter is the mountpoint not the device (this is a requirement of "
7180 "btrfs itself)."
7181 msgstr ""
7182
7183 #. type: textblock
7184 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3164 ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:5029 ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4890 ../src/guestfs-actions.pod:5786 ../src/guestfs-actions.pod:7762
7185 msgid "The optional parameters are:"
7186 msgstr ""
7187
7188 #. type: =item
7189 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3707 ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5790
7190 msgid "C<size>"
7191 msgstr ""
7192
7193 #. type: textblock
7194 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7195 msgid ""
7196 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7197 "resized to the maximum size."
7198 msgstr ""
7199
7200 #. type: textblock
7201 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7202 msgid "See also L<btrfs(8)>."
7203 msgstr ""
7204
7205 #. type: =head2
7206 #: ../fish/guestfish-actions.pod:626
7207 msgid "case-sensitive-path"
7208 msgstr ""
7209
7210 #. type: verbatim
7211 #: ../fish/guestfish-actions.pod:628
7212 #, no-wrap
7213 msgid ""
7214 " case-sensitive-path path\n"
7215 "\n"
7216 msgstr ""
7217
7218 #. type: textblock
7219 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7220 msgid ""
7221 "This can be used to resolve case insensitive paths on a filesystem which is "
7222 "case sensitive.  The use case is to resolve paths which you have read from "
7223 "Windows configuration files or the Windows Registry, to the true path."
7224 msgstr ""
7225
7226 #. type: textblock
7227 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7228 msgid ""
7229 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7230 "(and probably others), which is that although the underlying filesystem is "
7231 "case-insensitive, the driver exports the filesystem to Linux as "
7232 "case-sensitive."
7233 msgstr ""
7234
7235 #. type: textblock
7236 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7237 msgid ""
7238 "One consequence of this is that special directories such as C<c:\\windows> "
7239 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7240 "precise details of how they were created.  In Windows itself this would not "
7241 "be a problem."
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7246 msgid ""
7247 "Bug or feature? You decide: "
7248 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7253 msgid ""
7254 "This function resolves the true case of each element in the path and returns "
7255 "the case-sensitive path."
7256 msgstr ""
7257
7258 #. type: textblock
7259 #: ../fish/guestfish-actions.pod:652
7260 msgid ""
7261 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
7262 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7263 "how the directories were originally created under Windows)."
7264 msgstr ""
7265
7266 #. type: textblock
7267 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7268 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:660
7273 msgid "See also L</realpath>."
7274 msgstr ""
7275
7276 #. type: =head2
7277 #: ../fish/guestfish-actions.pod:662
7278 msgid "cat"
7279 msgstr ""
7280
7281 #. type: verbatim
7282 #: ../fish/guestfish-actions.pod:664
7283 #, no-wrap
7284 msgid ""
7285 " cat path\n"
7286 "\n"
7287 msgstr ""
7288
7289 #. type: textblock
7290 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4134 ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6446
7291 msgid "Return the contents of the file named C<path>."
7292 msgstr ""
7293
7294 #. type: textblock
7295 #: ../fish/guestfish-actions.pod:668
7296 msgid ""
7297 "Note that this function cannot correctly handle binary files (specifically, "
7298 "files containing C<\\0> character which is treated as end of string).  For "
7299 "those you need to use the L</read-file> or L</download> functions which have "
7300 "a more complex interface."
7301 msgstr ""
7302
7303 #. type: textblock
7304 #: ../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:4004 ../fish/guestfish-actions.pod:4019 ../fish/guestfish-actions.pod:4095 ../fish/guestfish-actions.pod:4112 ../fish/guestfish-actions.pod:4127 ../fish/guestfish-actions.pod:4796 ../fish/guestfish-actions.pod:4842 ../fish/guestfish-actions.pod:4927 ../fish/guestfish-actions.pod:4942 ../fish/guestfish-actions.pod:5427 ../fish/guestfish-actions.pod:5439 ../fish/guestfish-actions.pod:5457 ../fish/guestfish-actions.pod:5474 ../fish/guestfish-actions.pod:5484 ../fish/guestfish-actions.pod:5538 ../fish/guestfish-actions.pod:5548 ../fish/guestfish-actions.pod:5577 ../fish/guestfish-actions.pod:5587 ../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:6228 ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6411 ../src/guestfs-actions.pod:6435 ../src/guestfs-actions.pod:7390 ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:8400 ../src/guestfs-actions.pod:8420 ../src/guestfs-actions.pod:8453 ../src/guestfs-actions.pod:8472 ../src/guestfs-actions.pod:8491 ../src/guestfs-actions.pod:8582 ../src/guestfs-actions.pod:8601 ../src/guestfs-actions.pod:8647 ../src/guestfs-actions.pod:8666
7305 msgid ""
7306 "Because of the message protocol, there is a transfer limit of somewhere "
7307 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7308 msgstr ""
7309
7310 #. type: =head2
7311 #: ../fish/guestfish-actions.pod:676
7312 msgid "checksum"
7313 msgstr ""
7314
7315 #. type: verbatim
7316 #: ../fish/guestfish-actions.pod:678
7317 #, no-wrap
7318 msgid ""
7319 " checksum csumtype path\n"
7320 "\n"
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7325 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7326 msgstr ""
7327
7328 #. type: textblock
7329 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7330 msgid ""
7331 "The type of checksum to compute is given by the C<csumtype> parameter which "
7332 "must have one of the following values:"
7333 msgstr ""
7334
7335 #. type: =item
7336 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7337 msgid "C<crc>"
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7342 msgid ""
7343 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7344 "C<cksum> command."
7345 msgstr ""
7346
7347 #. type: =item
7348 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7349 msgid "C<md5>"
7350 msgstr ""
7351
7352 #. type: textblock
7353 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7354 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7355 msgstr ""
7356
7357 #. type: =item
7358 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7359 msgid "C<sha1>"
7360 msgstr ""
7361
7362 #. type: textblock
7363 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7364 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7365 msgstr ""
7366
7367 #. type: =item
7368 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7369 msgid "C<sha224>"
7370 msgstr ""
7371
7372 #. type: textblock
7373 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7374 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7375 msgstr ""
7376
7377 #. type: =item
7378 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7379 msgid "C<sha256>"
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7384 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7385 msgstr ""
7386
7387 #. type: =item
7388 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7389 msgid "C<sha384>"
7390 msgstr ""
7391
7392 #. type: textblock
7393 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7394 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7395 msgstr ""
7396
7397 #. type: =item
7398 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7399 msgid "C<sha512>"
7400 msgstr ""
7401
7402 #. type: textblock
7403 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7404 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7405 msgstr ""
7406
7407 #. type: textblock
7408 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7409 msgid "The checksum is returned as a printable string."
7410 msgstr ""
7411
7412 #. type: textblock
7413 #: ../fish/guestfish-actions.pod:721
7414 msgid "To get the checksum for a device, use L</checksum-device>."
7415 msgstr ""
7416
7417 #. type: textblock
7418 #: ../fish/guestfish-actions.pod:723
7419 msgid "To get the checksums for many files, use L</checksums-out>."
7420 msgstr ""
7421
7422 #. type: =head2
7423 #: ../fish/guestfish-actions.pod:725
7424 msgid "checksum-device"
7425 msgstr ""
7426
7427 #. type: verbatim
7428 #: ../fish/guestfish-actions.pod:727
7429 #, no-wrap
7430 msgid ""
7431 " checksum-device csumtype device\n"
7432 "\n"
7433 msgstr ""
7434
7435 #. type: textblock
7436 #: ../fish/guestfish-actions.pod:729
7437 msgid ""
7438 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7439 "device named C<device>.  For the types of checksums supported see the "
7440 "L</checksum> command."
7441 msgstr ""
7442
7443 #. type: =head2
7444 #: ../fish/guestfish-actions.pod:733
7445 msgid "checksums-out"
7446 msgstr ""
7447
7448 #. type: verbatim
7449 #: ../fish/guestfish-actions.pod:735
7450 #, no-wrap
7451 msgid ""
7452 " checksums-out csumtype directory (sumsfile|-)\n"
7453 "\n"
7454 msgstr ""
7455
7456 #. type: textblock
7457 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7458 msgid ""
7459 "This command computes the checksums of all regular files in C<directory> and "
7460 "then emits a list of those checksums to the local output file C<sumsfile>."
7461 msgstr ""
7462
7463 #. type: textblock
7464 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7465 msgid ""
7466 "This can be used for verifying the integrity of a virtual machine.  However "
7467 "to be properly secure you should pay attention to the output of the checksum "
7468 "command (it uses the ones from GNU coreutils).  In particular when the "
7469 "filename is not printable, coreutils uses a special backslash syntax.  For "
7470 "more information, see the GNU coreutils info file."
7471 msgstr ""
7472
7473 #. type: =head2
7474 #: ../fish/guestfish-actions.pod:751
7475 msgid "chmod"
7476 msgstr ""
7477
7478 #. type: verbatim
7479 #: ../fish/guestfish-actions.pod:753
7480 #, no-wrap
7481 msgid ""
7482 " chmod mode path\n"
7483 "\n"
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7488 msgid ""
7489 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7490 "supported."
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7495 msgid ""
7496 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7497 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7498 "C<700>."
7499 msgstr ""
7500
7501 #. type: textblock
7502 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3356 ../fish/guestfish-actions.pod:3495 ../fish/guestfish-actions.pod:3505 ../fish/guestfish-actions.pod:3515 ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440
7503 msgid "The mode actually set is affected by the umask."
7504 msgstr ""
7505
7506 #. type: =head2
7507 #: ../fish/guestfish-actions.pod:764
7508 msgid "chown"
7509 msgstr ""
7510
7511 #. type: verbatim
7512 #: ../fish/guestfish-actions.pod:766
7513 #, no-wrap
7514 msgid ""
7515 " chown owner group path\n"
7516 "\n"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7521 msgid "Change the file owner to C<owner> and group to C<group>."
7522 msgstr ""
7523
7524 #. type: textblock
7525 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7526 msgid ""
7527 "Only numeric uid and gid are supported.  If you want to use names, you will "
7528 "need to locate and parse the password file yourself (Augeas support makes "
7529 "this relatively easy)."
7530 msgstr ""
7531
7532 #. type: =head2
7533 #: ../fish/guestfish-actions.pod:774
7534 msgid "command"
7535 msgstr ""
7536
7537 #. type: verbatim
7538 #: ../fish/guestfish-actions.pod:776
7539 #, no-wrap
7540 msgid ""
7541 " command 'arguments ...'\n"
7542 "\n"
7543 msgstr ""
7544
7545 #. type: textblock
7546 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7547 msgid ""
7548 "This call runs a command from the guest filesystem.  The filesystem must be "
7549 "mounted, and must contain a compatible operating system (ie. something "
7550 "Linux, with the same or compatible processor architecture)."
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../fish/guestfish-actions.pod:783
7555 msgid ""
7556 "The single parameter is an argv-style list of arguments.  The first element "
7557 "is the name of the program to run.  Subsequent elements are parameters.  The "
7558 "list must be non-empty (ie. must contain a program name).  Note that the "
7559 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7564 msgid "The return value is anything printed to I<stdout> by the command."
7565 msgstr ""
7566
7567 #. type: textblock
7568 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7569 msgid ""
7570 "If the command returns a non-zero exit status, then this function returns an "
7571 "error message.  The error message string is the content of I<stderr> from "
7572 "the command."
7573 msgstr ""
7574
7575 #. type: textblock
7576 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7577 msgid ""
7578 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7579 "C</bin>.  If you require a program from another location, you should provide "
7580 "the full path in the first parameter."
7581 msgstr ""
7582
7583 #. type: textblock
7584 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7585 msgid ""
7586 "Shared libraries and data files required by the program must be available on "
7587 "filesystems which are mounted in the correct places.  It is the caller's "
7588 "responsibility to ensure all filesystems that are needed are mounted at the "
7589 "right locations."
7590 msgstr ""
7591
7592 #. type: =head2
7593 #: ../fish/guestfish-actions.pod:811
7594 msgid "command-lines"
7595 msgstr ""
7596
7597 #. type: verbatim
7598 #: ../fish/guestfish-actions.pod:813
7599 #, no-wrap
7600 msgid ""
7601 " command-lines 'arguments ...'\n"
7602 "\n"
7603 msgstr ""
7604
7605 #. type: textblock
7606 #: ../fish/guestfish-actions.pod:815
7607 msgid "This is the same as L</command>, but splits the result into a list of lines."
7608 msgstr ""
7609
7610 #. type: textblock
7611 #: ../fish/guestfish-actions.pod:818
7612 msgid "See also: L</sh-lines>"
7613 msgstr ""
7614
7615 #. type: =head2
7616 #: ../fish/guestfish-actions.pod:823
7617 msgid "compress-device-out"
7618 msgstr ""
7619
7620 #. type: verbatim
7621 #: ../fish/guestfish-actions.pod:825
7622 #, no-wrap
7623 msgid ""
7624 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7625 "\n"
7626 msgstr ""
7627
7628 #. type: textblock
7629 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7630 msgid ""
7631 "This command compresses C<device> and writes it out to the local file "
7632 "C<zdevice>."
7633 msgstr ""
7634
7635 #. type: textblock
7636 #: ../fish/guestfish-actions.pod:830
7637 msgid ""
7638 "The C<ctype> and optional C<level> parameters have the same meaning as in "
7639 "L</compress-out>."
7640 msgstr ""
7641
7642 #. type: =head2
7643 #: ../fish/guestfish-actions.pod:837
7644 msgid "compress-out"
7645 msgstr ""
7646
7647 #. type: verbatim
7648 #: ../fish/guestfish-actions.pod:839
7649 #, no-wrap
7650 msgid ""
7651 " compress-out ctype file (zfile|-) [level:N]\n"
7652 "\n"
7653 msgstr ""
7654
7655 #. type: textblock
7656 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7657 msgid ""
7658 "This command compresses C<file> and writes it out to the local file "
7659 "C<zfile>."
7660 msgstr ""
7661
7662 #. type: textblock
7663 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7664 msgid ""
7665 "The compression program used is controlled by the C<ctype> parameter.  "
7666 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7667 "Some compression types may not be supported by particular builds of "
7668 "libguestfs, in which case you will get an error containing the substring "
7669 "\"not supported\"."
7670 msgstr ""
7671
7672 #. type: textblock
7673 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7674 msgid ""
7675 "The optional C<level> parameter controls compression level.  The meaning and "
7676 "default for this parameter depends on the compression program being used."
7677 msgstr ""
7678
7679 #. type: =head2
7680 #: ../fish/guestfish-actions.pod:858
7681 msgid "config"
7682 msgstr ""
7683
7684 #. type: verbatim
7685 #: ../fish/guestfish-actions.pod:860
7686 #, no-wrap
7687 msgid ""
7688 " config qemuparam qemuvalue\n"
7689 "\n"
7690 msgstr ""
7691
7692 #. type: textblock
7693 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7694 msgid ""
7695 "This can be used to add arbitrary qemu command line parameters of the form "
7696 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7697 "setting some parameters which would interfere with parameters that we use."
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7702 msgid "The first character of C<param> string must be a C<-> (dash)."
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7707 msgid "C<value> can be NULL."
7708 msgstr ""
7709
7710 #. type: =head2
7711 #: ../fish/guestfish-actions.pod:871
7712 msgid "copy-device-to-device"
7713 msgstr ""
7714
7715 #. type: verbatim
7716 #: ../fish/guestfish-actions.pod:873
7717 #, no-wrap
7718 msgid ""
7719 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7720 "\n"
7721 msgstr ""
7722
7723 #. type: textblock
7724 #: ../fish/guestfish-actions.pod:875
7725 msgid ""
7726 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
7727 "L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
7728 "source (device|file) to a destination (device|file)."
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7733 msgid ""
7734 "Partial copies can be made since you can specify optionally the source "
7735 "offset, destination offset and size to copy.  These values are all specified "
7736 "in bytes.  If not given, the offsets both default to zero, and the size "
7737 "defaults to copying as much as possible until we hit the end of the source."
7738 msgstr ""
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7742 msgid ""
7743 "The source and destination may be the same object.  However overlapping "
7744 "regions may not be copied correctly."
7745 msgstr ""
7746
7747 #. type: textblock
7748 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7749 msgid ""
7750 "If the destination is a file, it is created if required.  If the destination "
7751 "file is not large enough, it is extended."
7752 msgstr ""
7753
7754 #. type: =head2
7755 #: ../fish/guestfish-actions.pod:896
7756 msgid "copy-device-to-file"
7757 msgstr ""
7758
7759 #. type: verbatim
7760 #: ../fish/guestfish-actions.pod:898
7761 #, no-wrap
7762 msgid ""
7763 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7764 "\n"
7765 msgstr ""
7766
7767 #. type: textblock
7768 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909 ../fish/guestfish-actions.pod:918
7769 msgid "See L</copy-device-to-device> for a general overview of this call."
7770 msgstr ""
7771
7772 #. type: =head2
7773 #: ../fish/guestfish-actions.pod:905
7774 msgid "copy-file-to-device"
7775 msgstr ""
7776
7777 #. type: verbatim
7778 #: ../fish/guestfish-actions.pod:907
7779 #, no-wrap
7780 msgid ""
7781 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7782 "\n"
7783 msgstr ""
7784
7785 #. type: =head2
7786 #: ../fish/guestfish-actions.pod:914
7787 msgid "copy-file-to-file"
7788 msgstr ""
7789
7790 #. type: verbatim
7791 #: ../fish/guestfish-actions.pod:916
7792 #, no-wrap
7793 msgid ""
7794 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7795 "\n"
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:921
7800 msgid ""
7801 "This is B<not> the function you want for copying files.  This is for copying "
7802 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7803 "file copying and moving functions."
7804 msgstr ""
7805
7806 #. type: =head2
7807 #: ../fish/guestfish-actions.pod:928
7808 msgid "copy-size"
7809 msgstr ""
7810
7811 #. type: verbatim
7812 #: ../fish/guestfish-actions.pod:930
7813 #, no-wrap
7814 msgid ""
7815 " copy-size src dest size\n"
7816 "\n"
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7821 msgid ""
7822 "This command copies exactly C<size> bytes from one source device or file "
7823 "C<src> to another destination device or file C<dest>."
7824 msgstr ""
7825
7826 #. type: textblock
7827 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7828 msgid ""
7829 "Note this will fail if the source is too short or if the destination is not "
7830 "large enough."
7831 msgstr ""
7832
7833 #. type: textblock
7834 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7835 msgid ""
7836 "I<This function is deprecated.> In new code, use the "
7837 "L</copy_device_to_device> call instead."
7838 msgstr ""
7839
7840 #. type: =head2
7841 #: ../fish/guestfish-actions.pod:945
7842 msgid "cp"
7843 msgstr ""
7844
7845 #. type: verbatim
7846 #: ../fish/guestfish-actions.pod:947
7847 #, no-wrap
7848 msgid ""
7849 " cp src dest\n"
7850 "\n"
7851 msgstr ""
7852
7853 #. type: textblock
7854 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7855 msgid ""
7856 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7857 "destination filename or destination directory."
7858 msgstr ""
7859
7860 #. type: =head2
7861 #: ../fish/guestfish-actions.pod:952
7862 msgid "cp-a"
7863 msgstr ""
7864
7865 #. type: verbatim
7866 #: ../fish/guestfish-actions.pod:954
7867 #, no-wrap
7868 msgid ""
7869 " cp-a src dest\n"
7870 "\n"
7871 msgstr ""
7872
7873 #. type: textblock
7874 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7875 msgid ""
7876 "This copies a file or directory from C<src> to C<dest> recursively using the "
7877 "C<cp -a> command."
7878 msgstr ""
7879
7880 #. type: =head2
7881 #: ../fish/guestfish-actions.pod:959
7882 msgid "dd"
7883 msgstr ""
7884
7885 #. type: verbatim
7886 #: ../fish/guestfish-actions.pod:961
7887 #, no-wrap
7888 msgid ""
7889 " dd src dest\n"
7890 "\n"
7891 msgstr ""
7892
7893 #. type: textblock
7894 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7895 msgid ""
7896 "This command copies from one source device or file C<src> to another "
7897 "destination device or file C<dest>.  Normally you would use this to copy to "
7898 "or from a device or partition, for example to duplicate a filesystem."
7899 msgstr ""
7900
7901 #. type: textblock
7902 #: ../fish/guestfish-actions.pod:968
7903 msgid ""
7904 "If the destination is a device, it must be as large or larger than the "
7905 "source file or device, otherwise the copy will fail.  This command cannot do "
7906 "partial copies (see L</copy-device-to-device>)."
7907 msgstr ""
7908
7909 #. type: =head2
7910 #: ../fish/guestfish-actions.pod:980
7911 msgid "df"
7912 msgstr ""
7913
7914 #. type: verbatim
7915 #: ../fish/guestfish-actions.pod:982
7916 #, no-wrap
7917 msgid ""
7918 " df\n"
7919 "\n"
7920 msgstr ""
7921
7922 #. type: textblock
7923 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
7924 msgid "This command runs the C<df> command to report disk space used."
7925 msgstr ""
7926
7927 #. type: textblock
7928 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7929 msgid ""
7930 "This command is mostly useful for interactive sessions.  It is I<not> "
7931 "intended that you try to parse the output string.  Use L</statvfs> from "
7932 "programs."
7933 msgstr ""
7934
7935 #. type: =head2
7936 #: ../fish/guestfish-actions.pod:990
7937 msgid "df-h"
7938 msgstr ""
7939
7940 #. type: verbatim
7941 #: ../fish/guestfish-actions.pod:992
7942 #, no-wrap
7943 msgid ""
7944 " df-h\n"
7945 "\n"
7946 msgstr ""
7947
7948 #. type: textblock
7949 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
7950 msgid ""
7951 "This command runs the C<df -h> command to report disk space used in "
7952 "human-readable format."
7953 msgstr ""
7954
7955 #. type: =head2
7956 #: ../fish/guestfish-actions.pod:1001
7957 msgid "dmesg"
7958 msgstr ""
7959
7960 #. type: verbatim
7961 #: ../fish/guestfish-actions.pod:1003
7962 #, no-wrap
7963 msgid ""
7964 " dmesg\n"
7965 "\n"
7966 msgstr ""
7967
7968 #. type: textblock
7969 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
7970 msgid ""
7971 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7972 "This is sometimes useful for extended debugging of problems."
7973 msgstr ""
7974
7975 #. type: textblock
7976 #: ../fish/guestfish-actions.pod:1009
7977 msgid ""
7978 "Another way to get the same information is to enable verbose messages with "
7979 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7980 "before running the program."
7981 msgstr ""
7982
7983 #. type: =head2
7984 #: ../fish/guestfish-actions.pod:1014
7985 msgid "download"
7986 msgstr ""
7987
7988 #. type: verbatim
7989 #: ../fish/guestfish-actions.pod:1016
7990 #, no-wrap
7991 msgid ""
7992 " download remotefilename (filename|-)\n"
7993 "\n"
7994 msgstr ""
7995
7996 #. type: textblock
7997 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031 ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
7998 msgid ""
7999 "Download file C<remotefilename> and save it as C<filename> on the local "
8000 "machine."
8001 msgstr ""
8002
8003 #. type: textblock
8004 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7970
8005 msgid "C<filename> can also be a named pipe."
8006 msgstr ""
8007
8008 #. type: textblock
8009 #: ../fish/guestfish-actions.pod:1023
8010 msgid "See also L</upload>, L</cat>."
8011 msgstr ""
8012
8013 #. type: =head2
8014 #: ../fish/guestfish-actions.pod:1027
8015 msgid "download-offset"
8016 msgstr ""
8017
8018 #. type: verbatim
8019 #: ../fish/guestfish-actions.pod:1029
8020 #, no-wrap
8021 msgid ""
8022 " download-offset remotefilename (filename|-) offset size\n"
8023 "\n"
8024 msgstr ""
8025
8026 #. type: textblock
8027 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8028 msgid ""
8029 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8030 "region must be within the file or device)."
8031 msgstr ""
8032
8033 #. type: textblock
8034 #: ../fish/guestfish-actions.pod:1037
8035 msgid ""
8036 "Note that there is no limit on the amount of data that can be downloaded "
8037 "with this call, unlike with L</pread>, and this call always reads the full "
8038 "amount unless an error occurs."
8039 msgstr ""
8040
8041 #. type: textblock
8042 #: ../fish/guestfish-actions.pod:1042
8043 msgid "See also L</download>, L</pread>."
8044 msgstr ""
8045
8046 #. type: =head2
8047 #: ../fish/guestfish-actions.pod:1046
8048 msgid "drop-caches"
8049 msgstr ""
8050
8051 #. type: verbatim
8052 #: ../fish/guestfish-actions.pod:1048
8053 #, no-wrap
8054 msgid ""
8055 " drop-caches whattodrop\n"
8056 "\n"
8057 msgstr ""
8058
8059 #. type: textblock
8060 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8061 msgid ""
8062 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8063 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8064 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8065 msgstr ""
8066
8067 #. type: textblock
8068 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8069 msgid "Setting C<whattodrop> to 3 should drop everything."
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8074 msgid ""
8075 "This automatically calls L<sync(2)> before the operation, so that the "
8076 "maximum guest memory is freed."
8077 msgstr ""
8078
8079 #. type: =head2
8080 #: ../fish/guestfish-actions.pod:1060
8081 msgid "du"
8082 msgstr ""
8083
8084 #. type: verbatim
8085 #: ../fish/guestfish-actions.pod:1062
8086 #, no-wrap
8087 msgid ""
8088 " du path\n"
8089 "\n"
8090 msgstr ""
8091
8092 #. type: textblock
8093 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8094 msgid ""
8095 "This command runs the C<du -s> command to estimate file space usage for "
8096 "C<path>."
8097 msgstr ""
8098
8099 #. type: textblock
8100 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8101 msgid ""
8102 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8103 "estimate includes the contents of the directory and all subdirectories "
8104 "(recursively)."
8105 msgstr ""
8106
8107 #. type: textblock
8108 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8109 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8110 msgstr ""
8111
8112 #. type: =head2
8113 #: ../fish/guestfish-actions.pod:1074
8114 msgid "e2fsck-f"
8115 msgstr ""
8116
8117 #. type: verbatim
8118 #: ../fish/guestfish-actions.pod:1076
8119 #, no-wrap
8120 msgid ""
8121 " e2fsck-f device\n"
8122 "\n"
8123 msgstr ""
8124
8125 #. type: textblock
8126 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8127 msgid ""
8128 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8129 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8130 "clean (I<-f>)."
8131 msgstr ""
8132
8133 #. type: textblock
8134 #: ../fish/guestfish-actions.pod:1082
8135 msgid ""
8136 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8137 "should use L</fsck>."
8138 msgstr ""
8139
8140 #. type: =head2
8141 #: ../fish/guestfish-actions.pod:1085
8142 msgid "echo-daemon"
8143 msgstr ""
8144
8145 #. type: verbatim
8146 #: ../fish/guestfish-actions.pod:1087
8147 #, no-wrap
8148 msgid ""
8149 " echo-daemon 'words ...'\n"
8150 "\n"
8151 msgstr ""
8152
8153 #. type: textblock
8154 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8155 msgid ""
8156 "This command concatenates the list of C<words> passed with single spaces "
8157 "between them and returns the resulting string."
8158 msgstr ""
8159
8160 #. type: textblock
8161 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8162 msgid "You can use this command to test the connection through to the daemon."
8163 msgstr ""
8164
8165 #. type: textblock
8166 #: ../fish/guestfish-actions.pod:1094
8167 msgid "See also L</ping-daemon>."
8168 msgstr ""
8169
8170 #. type: =head2
8171 #: ../fish/guestfish-actions.pod:1096
8172 msgid "egrep"
8173 msgstr ""
8174
8175 #. type: verbatim
8176 #: ../fish/guestfish-actions.pod:1098
8177 #, no-wrap
8178 msgid ""
8179 " egrep regex path\n"
8180 "\n"
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8185 msgid "This calls the external C<egrep> program and returns the matching lines."
8186 msgstr ""
8187
8188 #. type: =head2
8189 #: ../fish/guestfish-actions.pod:1106
8190 msgid "egrepi"
8191 msgstr ""
8192
8193 #. type: verbatim
8194 #: ../fish/guestfish-actions.pod:1108
8195 #, no-wrap
8196 msgid ""
8197 " egrepi regex path\n"
8198 "\n"
8199 msgstr ""
8200
8201 #. type: textblock
8202 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8203 msgid "This calls the external C<egrep -i> program and returns the matching lines."
8204 msgstr ""
8205
8206 #. type: =head2
8207 #: ../fish/guestfish-actions.pod:1116
8208 msgid "equal"
8209 msgstr ""
8210
8211 #. type: verbatim
8212 #: ../fish/guestfish-actions.pod:1118
8213 #, no-wrap
8214 msgid ""
8215 " equal file1 file2\n"
8216 "\n"
8217 msgstr ""
8218
8219 #. type: textblock
8220 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8221 msgid ""
8222 "This compares the two files C<file1> and C<file2> and returns true if their "
8223 "content is exactly equal, or false otherwise."
8224 msgstr ""
8225
8226 #. type: textblock
8227 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8228 msgid "The external L<cmp(1)> program is used for the comparison."
8229 msgstr ""
8230
8231 #. type: =head2
8232 #: ../fish/guestfish-actions.pod:1125
8233 msgid "exists"
8234 msgstr ""
8235
8236 #. type: verbatim
8237 #: ../fish/guestfish-actions.pod:1127
8238 #, no-wrap
8239 msgid ""
8240 " exists path\n"
8241 "\n"
8242 msgstr ""
8243
8244 #. type: textblock
8245 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8246 msgid ""
8247 "This returns C<true> if and only if there is a file, directory (or anything) "
8248 "with the given C<path> name."
8249 msgstr ""
8250
8251 #. type: textblock
8252 #: ../fish/guestfish-actions.pod:1132
8253 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8254 msgstr ""
8255
8256 #. type: =head2
8257 #: ../fish/guestfish-actions.pod:1134
8258 msgid "fallocate"
8259 msgstr ""
8260
8261 #. type: verbatim
8262 #: ../fish/guestfish-actions.pod:1136
8263 #, no-wrap
8264 msgid ""
8265 " fallocate path len\n"
8266 "\n"
8267 msgstr ""
8268
8269 #. type: textblock
8270 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8271 msgid ""
8272 "This command preallocates a file (containing zero bytes) named C<path> of "
8273 "size C<len> bytes.  If the file exists already, it is overwritten."
8274 msgstr ""
8275
8276 #. type: textblock
8277 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8278 msgid ""
8279 "Do not confuse this with the guestfish-specific C<alloc> command which "
8280 "allocates a file in the host and attaches it as a device."
8281 msgstr ""
8282
8283 #. type: textblock
8284 #: ../fish/guestfish-actions.pod:1146
8285 msgid ""
8286 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8287 "instead."
8288 msgstr ""
8289
8290 #. type: =head2
8291 #: ../fish/guestfish-actions.pod:1153
8292 msgid "fallocate64"
8293 msgstr ""
8294
8295 #. type: verbatim
8296 #: ../fish/guestfish-actions.pod:1155
8297 #, no-wrap
8298 msgid ""
8299 " fallocate64 path len\n"
8300 "\n"
8301 msgstr ""
8302
8303 #. type: textblock
8304 #: ../fish/guestfish-actions.pod:1161
8305 msgid ""
8306 "Note that this call allocates disk blocks for the file.  To create a sparse "
8307 "file use L</truncate-size> instead."
8308 msgstr ""
8309
8310 #. type: textblock
8311 #: ../fish/guestfish-actions.pod:1164
8312 msgid ""
8313 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8314 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8315 "maximum size of files created through that call to 1GB."
8316 msgstr ""
8317
8318 #. type: textblock
8319 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8320 msgid ""
8321 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8322 "commands which create a file in the host and attach it as a device."
8323 msgstr ""
8324
8325 #. type: =head2
8326 #: ../fish/guestfish-actions.pod:1173
8327 msgid "fgrep"
8328 msgstr ""
8329
8330 #. type: verbatim
8331 #: ../fish/guestfish-actions.pod:1175
8332 #, no-wrap
8333 msgid ""
8334 " fgrep pattern path\n"
8335 "\n"
8336 msgstr ""
8337
8338 #. type: textblock
8339 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8340 msgid "This calls the external C<fgrep> program and returns the matching lines."
8341 msgstr ""
8342
8343 #. type: =head2
8344 #: ../fish/guestfish-actions.pod:1183
8345 msgid "fgrepi"
8346 msgstr ""
8347
8348 #. type: verbatim
8349 #: ../fish/guestfish-actions.pod:1185
8350 #, no-wrap
8351 msgid ""
8352 " fgrepi pattern path\n"
8353 "\n"
8354 msgstr ""
8355
8356 #. type: textblock
8357 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8358 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8359 msgstr ""
8360
8361 #. type: =head2
8362 #: ../fish/guestfish-actions.pod:1193
8363 msgid "file"
8364 msgstr ""
8365
8366 #. type: verbatim
8367 #: ../fish/guestfish-actions.pod:1195
8368 #, no-wrap
8369 msgid ""
8370 " file path\n"
8371 "\n"
8372 msgstr ""
8373
8374 #. type: textblock
8375 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8376 msgid ""
8377 "This call uses the standard L<file(1)> command to determine the type or "
8378 "contents of the file."
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8383 msgid ""
8384 "This call will also transparently look inside various types of compressed "
8385 "file."
8386 msgstr ""
8387
8388 #. type: textblock
8389 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8390 msgid ""
8391 "The exact command which runs is C<file -zb path>.  Note in particular that "
8392 "the filename is not prepended to the output (the I<-b> option)."
8393 msgstr ""
8394
8395 #. type: textblock
8396 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8397 msgid ""
8398 "The output depends on the output of the underlying L<file(1)> command and it "
8399 "can change in future in ways beyond our control.  In other words, the output "
8400 "is not guaranteed by the ABI."
8401 msgstr ""
8402
8403 #. type: textblock
8404 #: ../fish/guestfish-actions.pod:1211
8405 msgid ""
8406 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8407 "(etc), L</is-zero>."
8408 msgstr ""
8409
8410 #. type: =head2
8411 #: ../fish/guestfish-actions.pod:1214
8412 msgid "file-architecture"
8413 msgstr ""
8414
8415 #. type: verbatim
8416 #: ../fish/guestfish-actions.pod:1216
8417 #, no-wrap
8418 msgid ""
8419 " file-architecture filename\n"
8420 "\n"
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8425 msgid ""
8426 "This detects the architecture of the binary C<filename>, and returns it if "
8427 "known."
8428 msgstr ""
8429
8430 #. type: textblock
8431 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8432 msgid "Currently defined architectures are:"
8433 msgstr ""
8434
8435 #. type: =item
8436 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8437 msgid "\"i386\""
8438 msgstr ""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8442 msgid ""
8443 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8444 "irrespective of the precise processor requirements of the binary."
8445 msgstr ""
8446
8447 #. type: =item
8448 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8449 msgid "\"x86_64\""
8450 msgstr ""
8451
8452 #. type: textblock
8453 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8454 msgid "64 bit x86-64."
8455 msgstr ""
8456
8457 #. type: =item
8458 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8459 msgid "\"sparc\""
8460 msgstr ""
8461
8462 #. type: textblock
8463 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8464 msgid "32 bit SPARC."
8465 msgstr ""
8466
8467 #. type: =item
8468 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8469 msgid "\"sparc64\""
8470 msgstr ""
8471
8472 #. type: textblock
8473 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8474 msgid "64 bit SPARC V9 and above."
8475 msgstr ""
8476
8477 #. type: =item
8478 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8479 msgid "\"ia64\""
8480 msgstr ""
8481
8482 #. type: textblock
8483 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8484 msgid "Intel Itanium."
8485 msgstr ""
8486
8487 #. type: =item
8488 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8489 msgid "\"ppc\""
8490 msgstr ""
8491
8492 #. type: textblock
8493 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8494 msgid "32 bit Power PC."
8495 msgstr ""
8496
8497 #. type: =item
8498 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8499 msgid "\"ppc64\""
8500 msgstr ""
8501
8502 #. type: textblock
8503 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8504 msgid "64 bit Power PC."
8505 msgstr ""
8506
8507 #. type: textblock
8508 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8509 msgid "Libguestfs may return other architecture strings in future."
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8514 msgid "The function works on at least the following types of files:"
8515 msgstr ""
8516
8517 #. type: textblock
8518 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8519 msgid "many types of Un*x and Linux binary"
8520 msgstr ""
8521
8522 #. type: textblock
8523 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8524 msgid "many types of Un*x and Linux shared library"
8525 msgstr ""
8526
8527 #. type: textblock
8528 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8529 msgid "Windows Win32 and Win64 binaries"
8530 msgstr ""
8531
8532 #. type: textblock
8533 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8534 msgid "Windows Win32 and Win64 DLLs"
8535 msgstr ""
8536
8537 #. type: textblock
8538 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8539 msgid "Win32 binaries and DLLs return C<i386>."
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8544 msgid "Win64 binaries and DLLs return C<x86_64>."
8545 msgstr ""
8546
8547 #. type: textblock
8548 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8549 msgid "Linux kernel modules"
8550 msgstr ""
8551
8552 #. type: textblock
8553 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8554 msgid "Linux new-style initrd images"
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8559 msgid "some non-x86 Linux vmlinuz kernels"
8560 msgstr ""
8561
8562 #. type: textblock
8563 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8564 msgid "What it can't do currently:"
8565 msgstr ""
8566
8567 #. type: textblock
8568 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8569 msgid "static libraries (libfoo.a)"
8570 msgstr ""
8571
8572 #. type: textblock
8573 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8574 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8575 msgstr ""
8576
8577 #. type: textblock
8578 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8579 msgid "x86 Linux vmlinuz kernels"
8580 msgstr ""
8581
8582 #. type: textblock
8583 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8584 msgid ""
8585 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8586 "compressed code, and are horribly hard to unpack.  If you want to find the "
8587 "architecture of a kernel, use the architecture of the associated initrd or "
8588 "kernel module(s) instead."
8589 msgstr ""
8590
8591 #. type: =head2
8592 #: ../fish/guestfish-actions.pod:1319
8593 msgid "filesize"
8594 msgstr ""
8595
8596 #. type: verbatim
8597 #: ../fish/guestfish-actions.pod:1321
8598 #, no-wrap
8599 msgid ""
8600 " filesize file\n"
8601 "\n"
8602 msgstr ""
8603
8604 #. type: textblock
8605 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8606 msgid "This command returns the size of C<file> in bytes."
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:1325
8611 msgid ""
8612 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
8613 "L</is-file> etc.  To get the size of block devices, use "
8614 "L</blockdev-getsize64>."
8615 msgstr ""
8616
8617 #. type: =head2
8618 #: ../fish/guestfish-actions.pod:1329
8619 msgid "fill"
8620 msgstr ""
8621
8622 #. type: verbatim
8623 #: ../fish/guestfish-actions.pod:1331
8624 #, no-wrap
8625 msgid ""
8626 " fill c len path\n"
8627 "\n"
8628 msgstr ""
8629
8630 #. type: textblock
8631 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8632 msgid ""
8633 "This command creates a new file called C<path>.  The initial content of the "
8634 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8635 "C<[0..255]>."
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:1337
8640 msgid ""
8641 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8642 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8643 "L</fill-pattern>."
8644 msgstr ""
8645
8646 #. type: =head2
8647 #: ../fish/guestfish-actions.pod:1342
8648 msgid "fill-pattern"
8649 msgstr ""
8650
8651 #. type: verbatim
8652 #: ../fish/guestfish-actions.pod:1344
8653 #, no-wrap
8654 msgid ""
8655 " fill-pattern pattern len path\n"
8656 "\n"
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:1346
8661 msgid ""
8662 "This function is like L</fill> except that it creates a new file of length "
8663 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8664 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8665 "bytes."
8666 msgstr ""
8667
8668 #. type: =head2
8669 #: ../fish/guestfish-actions.pod:1351
8670 msgid "find"
8671 msgstr ""
8672
8673 #. type: verbatim
8674 #: ../fish/guestfish-actions.pod:1353
8675 #, no-wrap
8676 msgid ""
8677 " find directory\n"
8678 "\n"
8679 msgstr ""
8680
8681 #. type: textblock
8682 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8683 msgid ""
8684 "This command lists out all files and directories, recursively, starting at "
8685 "C<directory>.  It is essentially equivalent to running the shell command "
8686 "C<find directory -print> but some post-processing happens on the output, "
8687 "described below."
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8692 msgid ""
8693 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8694 "structure was:"
8695 msgstr ""
8696
8697 #. type: verbatim
8698 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8699 #, no-wrap
8700 msgid ""
8701 " /tmp/a\n"
8702 " /tmp/b\n"
8703 " /tmp/c/d\n"
8704 "\n"
8705 msgstr ""
8706
8707 #. type: textblock
8708 #: ../fish/guestfish-actions.pod:1367
8709 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8710 msgstr ""
8711
8712 #. type: verbatim
8713 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8714 #, no-wrap
8715 msgid ""
8716 " a\n"
8717 " b\n"
8718 " c\n"
8719 " c/d\n"
8720 "\n"
8721 msgstr ""
8722
8723 #. type: textblock
8724 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8725 msgid "If C<directory> is not a directory, then this command returns an error."
8726 msgstr ""
8727
8728 #. type: textblock
8729 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8730 msgid "The returned list is sorted."
8731 msgstr ""
8732
8733 #. type: textblock
8734 #: ../fish/guestfish-actions.pod:1380
8735 msgid "See also L</find0>."
8736 msgstr ""
8737
8738 #. type: =head2
8739 #: ../fish/guestfish-actions.pod:1385
8740 msgid "find0"
8741 msgstr ""
8742
8743 #. type: verbatim
8744 #: ../fish/guestfish-actions.pod:1387
8745 #, no-wrap
8746 msgid ""
8747 " find0 directory (files|-)\n"
8748 "\n"
8749 msgstr ""
8750
8751 #. type: textblock
8752 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8753 msgid ""
8754 "This command lists out all files and directories, recursively, starting at "
8755 "C<directory>, placing the resulting list in the external file called "
8756 "C<files>."
8757 msgstr ""
8758
8759 #. type: textblock
8760 #: ../fish/guestfish-actions.pod:1393
8761 msgid "This command works the same way as L</find> with the following exceptions:"
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8766 msgid "The resulting list is written to an external file."
8767 msgstr ""
8768
8769 #. type: textblock
8770 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8771 msgid ""
8772 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8773 "L<find(1)> option I<-print0>."
8774 msgstr ""
8775
8776 #. type: textblock
8777 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8778 msgid "This command is not limited in the number of names that it can return."
8779 msgstr ""
8780
8781 #. type: textblock
8782 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8783 msgid "The result list is not sorted."
8784 msgstr ""
8785
8786 #. type: =head2
8787 #: ../fish/guestfish-actions.pod:1420
8788 msgid "findfs-label"
8789 msgstr ""
8790
8791 #. type: verbatim
8792 #: ../fish/guestfish-actions.pod:1422
8793 #, no-wrap
8794 msgid ""
8795 " findfs-label label\n"
8796 "\n"
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8801 msgid ""
8802 "This command searches the filesystems and returns the one which has the "
8803 "given label.  An error is returned if no such filesystem can be found."
8804 msgstr ""
8805
8806 #. type: textblock
8807 #: ../fish/guestfish-actions.pod:1428
8808 msgid "To find the label of a filesystem, use L</vfs-label>."
8809 msgstr ""
8810
8811 #. type: =head2
8812 #: ../fish/guestfish-actions.pod:1430
8813 msgid "findfs-uuid"
8814 msgstr ""
8815
8816 #. type: verbatim
8817 #: ../fish/guestfish-actions.pod:1432
8818 #, no-wrap
8819 msgid ""
8820 " findfs-uuid uuid\n"
8821 "\n"
8822 msgstr ""
8823
8824 #. type: textblock
8825 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8826 msgid ""
8827 "This command searches the filesystems and returns the one which has the "
8828 "given UUID.  An error is returned if no such filesystem can be found."
8829 msgstr ""
8830
8831 #. type: textblock
8832 #: ../fish/guestfish-actions.pod:1438
8833 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8834 msgstr ""
8835
8836 #. type: =head2
8837 #: ../fish/guestfish-actions.pod:1440
8838 msgid "fsck"
8839 msgstr ""
8840
8841 #. type: verbatim
8842 #: ../fish/guestfish-actions.pod:1442
8843 #, no-wrap
8844 msgid ""
8845 " fsck fstype device\n"
8846 "\n"
8847 msgstr ""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8851 msgid ""
8852 "This runs the filesystem checker (fsck) on C<device> which should have "
8853 "filesystem type C<fstype>."
8854 msgstr ""
8855
8856 #. type: textblock
8857 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8858 msgid ""
8859 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8860 "codes from C<fsck>."
8861 msgstr ""
8862
8863 #. type: textblock
8864 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8865 msgid "Multiple status codes can be summed together."
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8870 msgid ""
8871 "A non-zero return code can mean \"success\", for example if errors have been "
8872 "corrected on the filesystem."
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8877 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8878 msgstr ""
8879
8880 #. type: textblock
8881 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8882 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8883 msgstr ""
8884
8885 #. type: =head2
8886 #: ../fish/guestfish-actions.pod:1472
8887 msgid "get-append"
8888 msgstr ""
8889
8890 #. type: verbatim
8891 #: ../fish/guestfish-actions.pod:1474
8892 #, no-wrap
8893 msgid ""
8894 " get-append\n"
8895 "\n"
8896 msgstr ""
8897
8898 #. type: textblock
8899 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8900 msgid ""
8901 "Return the additional kernel options which are added to the guest kernel "
8902 "command line."
8903 msgstr ""
8904
8905 #. type: textblock
8906 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
8907 msgid "If C<NULL> then no options are added."
8908 msgstr ""
8909
8910 #. type: =head2
8911 #: ../fish/guestfish-actions.pod:1481
8912 msgid "get-attach-method"
8913 msgstr ""
8914
8915 #. type: verbatim
8916 #: ../fish/guestfish-actions.pod:1483
8917 #, no-wrap
8918 msgid ""
8919 " get-attach-method\n"
8920 "\n"
8921 msgstr ""
8922
8923 #. type: textblock
8924 #: ../fish/guestfish-actions.pod:1485
8925 msgid "Return the current attach method.  See L</set-attach-method>."
8926 msgstr ""
8927
8928 #. type: =head2
8929 #: ../fish/guestfish-actions.pod:1487
8930 msgid "get-autosync"
8931 msgstr ""
8932
8933 #. type: verbatim
8934 #: ../fish/guestfish-actions.pod:1489
8935 #, no-wrap
8936 msgid ""
8937 " get-autosync\n"
8938 "\n"
8939 msgstr ""
8940
8941 #. type: textblock
8942 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
8943 msgid "Get the autosync flag."
8944 msgstr ""
8945
8946 #. type: =head2
8947 #: ../fish/guestfish-actions.pod:1493
8948 msgid "get-direct"
8949 msgstr ""
8950
8951 #. type: verbatim
8952 #: ../fish/guestfish-actions.pod:1495
8953 #, no-wrap
8954 msgid ""
8955 " get-direct\n"
8956 "\n"
8957 msgstr ""
8958
8959 #. type: textblock
8960 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
8961 msgid "Return the direct appliance mode flag."
8962 msgstr ""
8963
8964 #. type: =head2
8965 #: ../fish/guestfish-actions.pod:1499
8966 msgid "get-e2label"
8967 msgstr ""
8968
8969 #. type: verbatim
8970 #: ../fish/guestfish-actions.pod:1501
8971 #, no-wrap
8972 msgid ""
8973 " get-e2label device\n"
8974 "\n"
8975 msgstr ""
8976
8977 #. type: textblock
8978 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
8979 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8980 msgstr ""
8981
8982 #. type: textblock
8983 #: ../fish/guestfish-actions.pod:1506
8984 msgid ""
8985 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8986 "instead."
8987 msgstr ""
8988
8989 #. type: =head2
8990 #: ../fish/guestfish-actions.pod:1513
8991 msgid "get-e2uuid"
8992 msgstr ""
8993
8994 #. type: verbatim
8995 #: ../fish/guestfish-actions.pod:1515
8996 #, no-wrap
8997 msgid ""
8998 " get-e2uuid device\n"
8999 "\n"
9000 msgstr ""
9001
9002 #. type: textblock
9003 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9004 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9005 msgstr ""
9006
9007 #. type: textblock
9008 #: ../fish/guestfish-actions.pod:1520
9009 msgid ""
9010 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9011 "instead."
9012 msgstr ""
9013
9014 #. type: =head2
9015 #: ../fish/guestfish-actions.pod:1527
9016 msgid "get-memsize"
9017 msgstr ""
9018
9019 #. type: verbatim
9020 #: ../fish/guestfish-actions.pod:1529
9021 #, no-wrap
9022 msgid ""
9023 " get-memsize\n"
9024 "\n"
9025 msgstr ""
9026
9027 #. type: textblock
9028 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9029 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
9030 msgstr ""
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:1534
9034 msgid ""
9035 "If L</set-memsize> was not called on this handle, and if "
9036 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9037 "value for memsize."
9038 msgstr ""
9039
9040 #. type: textblock
9041 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595 ../fish/guestfish-actions.pod:4457 ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556 ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:7030
9042 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9043 msgstr ""
9044
9045 #. type: =head2
9046 #: ../fish/guestfish-actions.pod:1541
9047 msgid "get-network"
9048 msgstr ""
9049
9050 #. type: verbatim
9051 #: ../fish/guestfish-actions.pod:1543
9052 #, no-wrap
9053 msgid ""
9054 " get-network\n"
9055 "\n"
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9060 msgid "This returns the enable network flag."
9061 msgstr ""
9062
9063 #. type: =head2
9064 #: ../fish/guestfish-actions.pod:1547
9065 msgid "get-path"
9066 msgstr ""
9067
9068 #. type: verbatim
9069 #: ../fish/guestfish-actions.pod:1549
9070 #, no-wrap
9071 msgid ""
9072 " get-path\n"
9073 "\n"
9074 msgstr ""
9075
9076 #. type: textblock
9077 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9078 msgid "Return the current search path."
9079 msgstr ""
9080
9081 #. type: textblock
9082 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9083 msgid ""
9084 "This is always non-NULL.  If it wasn't set already, then this will return "
9085 "the default path."
9086 msgstr ""
9087
9088 #. type: =head2
9089 #: ../fish/guestfish-actions.pod:1556
9090 msgid "get-pgroup"
9091 msgstr ""
9092
9093 #. type: verbatim
9094 #: ../fish/guestfish-actions.pod:1558
9095 #, no-wrap
9096 msgid ""
9097 " get-pgroup\n"
9098 "\n"
9099 msgstr ""
9100
9101 #. type: textblock
9102 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9103 msgid "This returns the process group flag."
9104 msgstr ""
9105
9106 #. type: =head2
9107 #: ../fish/guestfish-actions.pod:1562
9108 msgid "get-pid"
9109 msgstr ""
9110
9111 #. type: =head2
9112 #: ../fish/guestfish-actions.pod:1564
9113 msgid "pid"
9114 msgstr ""
9115
9116 #. type: verbatim
9117 #: ../fish/guestfish-actions.pod:1566
9118 #, no-wrap
9119 msgid ""
9120 " get-pid\n"
9121 "\n"
9122 msgstr ""
9123
9124 #. type: textblock
9125 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9126 msgid ""
9127 "Return the process ID of the qemu subprocess.  If there is no qemu "
9128 "subprocess, then this will return an error."
9129 msgstr ""
9130
9131 #. type: textblock
9132 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9133 msgid "This is an internal call used for debugging and testing."
9134 msgstr ""
9135
9136 #. type: =head2
9137 #: ../fish/guestfish-actions.pod:1573
9138 msgid "get-qemu"
9139 msgstr ""
9140
9141 #. type: verbatim
9142 #: ../fish/guestfish-actions.pod:1575
9143 #, no-wrap
9144 msgid ""
9145 " get-qemu\n"
9146 "\n"
9147 msgstr ""
9148
9149 #. type: textblock
9150 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9151 msgid "Return the current qemu binary."
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9156 msgid ""
9157 "This is always non-NULL.  If it wasn't set already, then this will return "
9158 "the default qemu binary name."
9159 msgstr ""
9160
9161 #. type: =head2
9162 #: ../fish/guestfish-actions.pod:1582
9163 msgid "get-recovery-proc"
9164 msgstr ""
9165
9166 #. type: verbatim
9167 #: ../fish/guestfish-actions.pod:1584
9168 #, no-wrap
9169 msgid ""
9170 " get-recovery-proc\n"
9171 "\n"
9172 msgstr ""
9173
9174 #. type: textblock
9175 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9176 msgid "Return the recovery process enabled flag."
9177 msgstr ""
9178
9179 #. type: =head2
9180 #: ../fish/guestfish-actions.pod:1588
9181 msgid "get-selinux"
9182 msgstr ""
9183
9184 #. type: verbatim
9185 #: ../fish/guestfish-actions.pod:1590
9186 #, no-wrap
9187 msgid ""
9188 " get-selinux\n"
9189 "\n"
9190 msgstr ""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:1592
9194 msgid ""
9195 "This returns the current setting of the selinux flag which is passed to the "
9196 "appliance at boot time.  See L</set-selinux>."
9197 msgstr ""
9198
9199 #. type: =head2
9200 #: ../fish/guestfish-actions.pod:1598
9201 msgid "get-smp"
9202 msgstr ""
9203
9204 #. type: verbatim
9205 #: ../fish/guestfish-actions.pod:1600
9206 #, no-wrap
9207 msgid ""
9208 " get-smp\n"
9209 "\n"
9210 msgstr ""
9211
9212 #. type: textblock
9213 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9214 msgid "This returns the number of virtual CPUs assigned to the appliance."
9215 msgstr ""
9216
9217 #. type: =head2
9218 #: ../fish/guestfish-actions.pod:1604
9219 msgid "get-state"
9220 msgstr ""
9221
9222 #. type: verbatim
9223 #: ../fish/guestfish-actions.pod:1606
9224 #, no-wrap
9225 msgid ""
9226 " get-state\n"
9227 "\n"
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9232 msgid ""
9233 "This returns the current state as an opaque integer.  This is only useful "
9234 "for printing debug and internal error messages."
9235 msgstr ""
9236
9237 #. type: textblock
9238 #: ../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
9239 msgid "For more information on states, see L<guestfs(3)>."
9240 msgstr ""
9241
9242 #. type: =head2
9243 #: ../fish/guestfish-actions.pod:1613
9244 msgid "get-trace"
9245 msgstr ""
9246
9247 #. type: verbatim
9248 #: ../fish/guestfish-actions.pod:1615
9249 #, no-wrap
9250 msgid ""
9251 " get-trace\n"
9252 "\n"
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9257 msgid "Return the command trace flag."
9258 msgstr ""
9259
9260 #. type: =head2
9261 #: ../fish/guestfish-actions.pod:1619
9262 msgid "get-umask"
9263 msgstr ""
9264
9265 #. type: verbatim
9266 #: ../fish/guestfish-actions.pod:1621
9267 #, no-wrap
9268 msgid ""
9269 " get-umask\n"
9270 "\n"
9271 msgstr ""
9272
9273 #. type: textblock
9274 #: ../fish/guestfish-actions.pod:1623
9275 msgid ""
9276 "Return the current umask.  By default the umask is C<022> unless it has been "
9277 "set by calling L</umask>."
9278 msgstr ""
9279
9280 #. type: =head2
9281 #: ../fish/guestfish-actions.pod:1626
9282 msgid "get-verbose"
9283 msgstr ""
9284
9285 #. type: verbatim
9286 #: ../fish/guestfish-actions.pod:1628
9287 #, no-wrap
9288 msgid ""
9289 " get-verbose\n"
9290 "\n"
9291 msgstr ""
9292
9293 #. type: textblock
9294 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9295 msgid "This returns the verbose messages flag."
9296 msgstr ""
9297
9298 #. type: =head2
9299 #: ../fish/guestfish-actions.pod:1632
9300 msgid "getcon"
9301 msgstr ""
9302
9303 #. type: verbatim
9304 #: ../fish/guestfish-actions.pod:1634
9305 #, no-wrap
9306 msgid ""
9307 " getcon\n"
9308 "\n"
9309 msgstr ""
9310
9311 #. type: textblock
9312 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9313 msgid "This gets the SELinux security context of the daemon."
9314 msgstr ""
9315
9316 #. type: textblock
9317 #: ../fish/guestfish-actions.pod:1638
9318 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9319 msgstr ""
9320
9321 #. type: =head2
9322 #: ../fish/guestfish-actions.pod:1641
9323 msgid "getxattr"
9324 msgstr ""
9325
9326 #. type: verbatim
9327 #: ../fish/guestfish-actions.pod:1643
9328 #, no-wrap
9329 msgid ""
9330 " getxattr path name\n"
9331 "\n"
9332 msgstr ""
9333
9334 #. type: textblock
9335 #: ../fish/guestfish-actions.pod:1645
9336 msgid ""
9337 "Get a single extended attribute from file C<path> named C<name>.  This call "
9338 "follows symlinks.  If you want to lookup an extended attribute for the "
9339 "symlink itself, use L</lgetxattr>."
9340 msgstr ""
9341
9342 #. type: textblock
9343 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9344 msgid ""
9345 "Normally it is better to get all extended attributes from a file in one go "
9346 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9347 "buggy and do not provide a way to list out attributes.  For these "
9348 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9349 "attributes you want in advance and call this function."
9350 msgstr ""
9351
9352 #. type: textblock
9353 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722 ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9354 msgid ""
9355 "Extended attribute values are blobs of binary data.  If there is no extended "
9356 "attribute named C<name>, this returns an error."
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../fish/guestfish-actions.pod:1659
9361 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9362 msgstr ""
9363
9364 #. type: =head2
9365 #: ../fish/guestfish-actions.pod:1661
9366 msgid "getxattrs"
9367 msgstr ""
9368
9369 #. type: verbatim
9370 #: ../fish/guestfish-actions.pod:1663
9371 #, no-wrap
9372 msgid ""
9373 " getxattrs path\n"
9374 "\n"
9375 msgstr ""
9376
9377 #. type: textblock
9378 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9379 msgid "This call lists the extended attributes of the file or directory C<path>."
9380 msgstr ""
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9384 msgid ""
9385 "At the system call level, this is a combination of the L<listxattr(2)> and "
9386 "L<getxattr(2)> calls."
9387 msgstr ""
9388
9389 #. type: textblock
9390 #: ../fish/guestfish-actions.pod:1671
9391 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9392 msgstr ""
9393
9394 #. type: =head2
9395 #: ../fish/guestfish-actions.pod:1673
9396 msgid "glob-expand"
9397 msgstr ""
9398
9399 #. type: verbatim
9400 #: ../fish/guestfish-actions.pod:1675
9401 #, no-wrap
9402 msgid ""
9403 " glob-expand pattern\n"
9404 "\n"
9405 msgstr ""
9406
9407 #. type: textblock
9408 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9409 msgid ""
9410 "This command searches for all the pathnames matching C<pattern> according to "
9411 "the wildcard expansion rules used by the shell."
9412 msgstr ""
9413
9414 #. type: textblock
9415 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9416 msgid "If no paths match, then this returns an empty list (note: not an error)."
9417 msgstr ""
9418
9419 #. type: textblock
9420 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9421 msgid ""
9422 "It is just a wrapper around the C L<glob(3)> function with flags "
9423 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9424 msgstr ""
9425
9426 #. type: =head2
9427 #: ../fish/guestfish-actions.pod:1688
9428 msgid "grep"
9429 msgstr ""
9430
9431 #. type: verbatim
9432 #: ../fish/guestfish-actions.pod:1690
9433 #, no-wrap
9434 msgid ""
9435 " grep regex path\n"
9436 "\n"
9437 msgstr ""
9438
9439 #. type: textblock
9440 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9441 msgid "This calls the external C<grep> program and returns the matching lines."
9442 msgstr ""
9443
9444 #. type: =head2
9445 #: ../fish/guestfish-actions.pod:1698
9446 msgid "grepi"
9447 msgstr ""
9448
9449 #. type: verbatim
9450 #: ../fish/guestfish-actions.pod:1700
9451 #, no-wrap
9452 msgid ""
9453 " grepi regex path\n"
9454 "\n"
9455 msgstr ""
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9459 msgid "This calls the external C<grep -i> program and returns the matching lines."
9460 msgstr ""
9461
9462 #. type: =head2
9463 #: ../fish/guestfish-actions.pod:1708
9464 msgid "grub-install"
9465 msgstr ""
9466
9467 #. type: verbatim
9468 #: ../fish/guestfish-actions.pod:1710
9469 #, no-wrap
9470 msgid ""
9471 " grub-install root device\n"
9472 "\n"
9473 msgstr ""
9474
9475 #. type: textblock
9476 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9477 msgid ""
9478 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9479 "with the root directory being C<root>."
9480 msgstr ""
9481
9482 #. type: textblock
9483 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9484 msgid ""
9485 "There is currently no way in the API to install grub2, which is used by most "
9486 "modern Linux guests.  It is possible to run the grub2 command from the "
9487 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9492 msgid ""
9493 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9494 "compatible with itself, so this only works in rather narrow circumstances.  "
9495 "Careful testing with each guest version is advisable."
9496 msgstr ""
9497
9498 #. type: textblock
9499 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9500 msgid ""
9501 "If grub-install reports the error \"No suitable drive was found in the "
9502 "generated device map.\" it may be that you need to create a "
9503 "C</boot/grub/device.map> file first that contains the mapping between grub "
9504 "device names and Linux device names.  It is usually sufficient to create a "
9505 "file containing:"
9506 msgstr ""
9507
9508 #. type: verbatim
9509 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9510 #, no-wrap
9511 msgid ""
9512 " (hd0) /dev/vda\n"
9513 "\n"
9514 msgstr ""
9515
9516 #. type: textblock
9517 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9518 msgid "replacing C</dev/vda> with the name of the installation device."
9519 msgstr ""
9520
9521 #. type: =head2
9522 #: ../fish/guestfish-actions.pod:1748
9523 msgid "head"
9524 msgstr ""
9525
9526 #. type: verbatim
9527 #: ../fish/guestfish-actions.pod:1750
9528 #, no-wrap
9529 msgid ""
9530 " head path\n"
9531 "\n"
9532 msgstr ""
9533
9534 #. type: textblock
9535 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9536 msgid ""
9537 "This command returns up to the first 10 lines of a file as a list of "
9538 "strings."
9539 msgstr ""
9540
9541 #. type: =head2
9542 #: ../fish/guestfish-actions.pod:1758
9543 msgid "head-n"
9544 msgstr ""
9545
9546 #. type: verbatim
9547 #: ../fish/guestfish-actions.pod:1760
9548 #, no-wrap
9549 msgid ""
9550 " head-n nrlines path\n"
9551 "\n"
9552 msgstr ""
9553
9554 #. type: textblock
9555 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9556 msgid ""
9557 "If the parameter C<nrlines> is a positive number, this returns the first "
9558 "C<nrlines> lines of the file C<path>."
9559 msgstr ""
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9563 msgid ""
9564 "If the parameter C<nrlines> is a negative number, this returns lines from "
9565 "the file C<path>, excluding the last C<nrlines> lines."
9566 msgstr ""
9567
9568 #. type: textblock
9569 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7609
9570 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9571 msgstr ""
9572
9573 #. type: =head2
9574 #: ../fish/guestfish-actions.pod:1773
9575 msgid "hexdump"
9576 msgstr ""
9577
9578 #. type: verbatim
9579 #: ../fish/guestfish-actions.pod:1775
9580 #, no-wrap
9581 msgid ""
9582 " hexdump path\n"
9583 "\n"
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9588 msgid ""
9589 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9590 "human-readable, canonical hex dump of the file."
9591 msgstr ""
9592
9593 #. type: =head2
9594 #: ../fish/guestfish-actions.pod:1783
9595 msgid "initrd-cat"
9596 msgstr ""
9597
9598 #. type: verbatim
9599 #: ../fish/guestfish-actions.pod:1785
9600 #, no-wrap
9601 msgid ""
9602 " initrd-cat initrdpath filename\n"
9603 "\n"
9604 msgstr ""
9605
9606 #. type: textblock
9607 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9608 msgid ""
9609 "This command unpacks the file C<filename> from the initrd file called "
9610 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9611 "character."
9612 msgstr ""
9613
9614 #. type: textblock
9615 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9616 msgid ""
9617 "For example, in guestfish you could use the following command to examine the "
9618 "boot script (usually called C</init>)  contained in a Linux initrd or "
9619 "initramfs image:"
9620 msgstr ""
9621
9622 #. type: verbatim
9623 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9624 #, no-wrap
9625 msgid ""
9626 " initrd-cat /boot/initrd-<version>.img init\n"
9627 "\n"
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../fish/guestfish-actions.pod:1797
9632 msgid "See also L</initrd-list>."
9633 msgstr ""
9634
9635 #. type: =head2
9636 #: ../fish/guestfish-actions.pod:1802
9637 msgid "initrd-list"
9638 msgstr ""
9639
9640 #. type: verbatim
9641 #: ../fish/guestfish-actions.pod:1804
9642 #, no-wrap
9643 msgid ""
9644 " initrd-list path\n"
9645 "\n"
9646 msgstr ""
9647
9648 #. type: textblock
9649 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9650 msgid "This command lists out files contained in an initrd."
9651 msgstr ""
9652
9653 #. type: textblock
9654 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9655 msgid ""
9656 "The files are listed without any initial C</> character.  The files are "
9657 "listed in the order they appear (not necessarily alphabetical).  Directory "
9658 "names are listed as separate items."
9659 msgstr ""
9660
9661 #. type: textblock
9662 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9663 msgid ""
9664 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9665 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9666 "files)."
9667 msgstr ""
9668
9669 #. type: =head2
9670 #: ../fish/guestfish-actions.pod:1816
9671 msgid "inotify-add-watch"
9672 msgstr ""
9673
9674 #. type: verbatim
9675 #: ../fish/guestfish-actions.pod:1818
9676 #, no-wrap
9677 msgid ""
9678 " inotify-add-watch path mask\n"
9679 "\n"
9680 msgstr ""
9681
9682 #. type: textblock
9683 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9684 msgid "Watch C<path> for the events listed in C<mask>."
9685 msgstr ""
9686
9687 #. type: textblock
9688 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9689 msgid ""
9690 "Note that if C<path> is a directory then events within that directory are "
9691 "watched, but this does I<not> happen recursively (in subdirectories)."
9692 msgstr ""
9693
9694 #. type: textblock
9695 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9696 msgid ""
9697 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9698 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9699 msgstr ""
9700
9701 #. type: =head2
9702 #: ../fish/guestfish-actions.pod:1830
9703 msgid "inotify-close"
9704 msgstr ""
9705
9706 #. type: verbatim
9707 #: ../fish/guestfish-actions.pod:1832
9708 #, no-wrap
9709 msgid ""
9710 " inotify-close\n"
9711 "\n"
9712 msgstr ""
9713
9714 #. type: textblock
9715 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9716 msgid ""
9717 "This closes the inotify handle which was previously opened by inotify_init.  "
9718 "It removes all watches, throws away any pending events, and deallocates all "
9719 "resources."
9720 msgstr ""
9721
9722 #. type: =head2
9723 #: ../fish/guestfish-actions.pod:1838
9724 msgid "inotify-files"
9725 msgstr ""
9726
9727 #. type: verbatim
9728 #: ../fish/guestfish-actions.pod:1840
9729 #, no-wrap
9730 msgid ""
9731 " inotify-files\n"
9732 "\n"
9733 msgstr ""
9734
9735 #. type: textblock
9736 #: ../fish/guestfish-actions.pod:1842
9737 msgid ""
9738 "This function is a helpful wrapper around L</inotify-read> which just "
9739 "returns a list of pathnames of objects that were touched.  The returned "
9740 "pathnames are sorted and deduplicated."
9741 msgstr ""
9742
9743 #. type: =head2
9744 #: ../fish/guestfish-actions.pod:1846
9745 msgid "inotify-init"
9746 msgstr ""
9747
9748 #. type: verbatim
9749 #: ../fish/guestfish-actions.pod:1848
9750 #, no-wrap
9751 msgid ""
9752 " inotify-init maxevents\n"
9753 "\n"
9754 msgstr ""
9755
9756 #. type: textblock
9757 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9758 msgid ""
9759 "This command creates a new inotify handle.  The inotify subsystem can be "
9760 "used to notify events which happen to objects in the guest filesystem."
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1854
9765 msgid ""
9766 "C<maxevents> is the maximum number of events which will be queued up between "
9767 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9768 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9769 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9770 "but records the fact that it threw them away by setting a flag "
9771 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9772 msgstr ""
9773
9774 #. type: textblock
9775 #: ../fish/guestfish-actions.pod:1864
9776 msgid ""
9777 "Before any events are generated, you have to add some watches to the "
9778 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9779 "L</inotify-watch-all>."
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:1870
9784 msgid ""
9785 "Queued up events should be read periodically by calling L</inotify-read> (or "
9786 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9787 "If you don't read the events out often enough then you risk the internal "
9788 "queue overflowing."
9789 msgstr ""
9790
9791 #. type: textblock
9792 #: ../fish/guestfish-actions.pod:1877
9793 msgid ""
9794 "The handle should be closed after use by calling L</inotify-close>.  This "
9795 "also removes any watches automatically."
9796 msgstr ""
9797
9798 #. type: textblock
9799 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9800 msgid ""
9801 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9802 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9803 "that there is one global inotify handle per libguestfs instance."
9804 msgstr ""
9805
9806 #. type: =head2
9807 #: ../fish/guestfish-actions.pod:1886
9808 msgid "inotify-read"
9809 msgstr ""
9810
9811 #. type: verbatim
9812 #: ../fish/guestfish-actions.pod:1888
9813 #, no-wrap
9814 msgid ""
9815 " inotify-read\n"
9816 "\n"
9817 msgstr ""
9818
9819 #. type: textblock
9820 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9821 msgid ""
9822 "Return the complete queue of events that have happened since the previous "
9823 "read call."
9824 msgstr ""
9825
9826 #. type: textblock
9827 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
9828 msgid "If no events have happened, this returns an empty list."
9829 msgstr ""
9830
9831 #. type: textblock
9832 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
9833 msgid ""
9834 "I<Note>: In order to make sure that all events have been read, you must call "
9835 "this function repeatedly until it returns an empty list.  The reason is that "
9836 "the call will read events up to the maximum appliance-to-host message size "
9837 "and leave remaining events in the queue."
9838 msgstr ""
9839
9840 #. type: =head2
9841 #: ../fish/guestfish-actions.pod:1901
9842 msgid "inotify-rm-watch"
9843 msgstr ""
9844
9845 #. type: verbatim
9846 #: ../fish/guestfish-actions.pod:1903
9847 #, no-wrap
9848 msgid ""
9849 " inotify-rm-watch wd\n"
9850 "\n"
9851 msgstr ""
9852
9853 #. type: textblock
9854 #: ../fish/guestfish-actions.pod:1905
9855 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9856 msgstr ""
9857
9858 #. type: =head2
9859 #: ../fish/guestfish-actions.pod:1908
9860 msgid "inspect-get-arch"
9861 msgstr ""
9862
9863 #. type: verbatim
9864 #: ../fish/guestfish-actions.pod:1910
9865 #, no-wrap
9866 msgid ""
9867 " inspect-get-arch root\n"
9868 "\n"
9869 msgstr ""
9870
9871 #. type: textblock
9872 #: ../fish/guestfish-actions.pod:1912
9873 msgid ""
9874 "This returns the architecture of the inspected operating system.  The "
9875 "possible return values are listed under L</file-architecture>."
9876 msgstr ""
9877
9878 #. type: textblock
9879 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
9880 msgid ""
9881 "If the architecture could not be determined, then the string C<unknown> is "
9882 "returned."
9883 msgstr ""
9884
9885 #. type: textblock
9886 #: ../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
9887 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9888 msgstr ""
9889
9890 #. type: =head2
9891 #: ../fish/guestfish-actions.pod:1921
9892 msgid "inspect-get-distro"
9893 msgstr ""
9894
9895 #. type: verbatim
9896 #: ../fish/guestfish-actions.pod:1923
9897 #, no-wrap
9898 msgid ""
9899 " inspect-get-distro root\n"
9900 "\n"
9901 msgstr ""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
9905 msgid "This returns the distro (distribution) of the inspected operating system."
9906 msgstr ""
9907
9908 #. type: textblock
9909 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
9910 msgid "Currently defined distros are:"
9911 msgstr ""
9912
9913 #. type: =item
9914 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
9915 msgid "\"archlinux\""
9916 msgstr ""
9917
9918 #. type: textblock
9919 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
9920 msgid "Arch Linux."
9921 msgstr ""
9922
9923 #. type: =item
9924 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
9925 msgid "\"centos\""
9926 msgstr ""
9927
9928 #. type: textblock
9929 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
9930 msgid "CentOS."
9931 msgstr ""
9932
9933 #. type: =item
9934 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
9935 msgid "\"debian\""
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
9940 msgid "Debian."
9941 msgstr ""
9942
9943 #. type: =item
9944 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
9945 msgid "\"fedora\""
9946 msgstr ""
9947
9948 #. type: textblock
9949 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
9950 msgid "Fedora."
9951 msgstr ""
9952
9953 #. type: =item
9954 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
9955 msgid "\"gentoo\""
9956 msgstr ""
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
9960 msgid "Gentoo."
9961 msgstr ""
9962
9963 #. type: =item
9964 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
9965 msgid "\"linuxmint\""
9966 msgstr ""
9967
9968 #. type: textblock
9969 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
9970 msgid "Linux Mint."
9971 msgstr ""
9972
9973 #. type: =item
9974 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
9975 msgid "\"mageia\""
9976 msgstr ""
9977
9978 #. type: textblock
9979 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
9980 msgid "Mageia."
9981 msgstr ""
9982
9983 #. type: =item
9984 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
9985 msgid "\"mandriva\""
9986 msgstr ""
9987
9988 #. type: textblock
9989 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
9990 msgid "Mandriva."
9991 msgstr ""
9992
9993 #. type: =item
9994 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
9995 msgid "\"meego\""
9996 msgstr ""
9997
9998 #. type: textblock
9999 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10000 msgid "MeeGo."
10001 msgstr ""
10002
10003 #. type: =item
10004 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10005 msgid "\"opensuse\""
10006 msgstr ""
10007
10008 #. type: textblock
10009 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10010 msgid "OpenSUSE."
10011 msgstr ""
10012
10013 #. type: =item
10014 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10015 msgid "\"pardus\""
10016 msgstr ""
10017
10018 #. type: textblock
10019 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10020 msgid "Pardus."
10021 msgstr ""
10022
10023 #. type: =item
10024 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10025 msgid "\"redhat-based\""
10026 msgstr ""
10027
10028 #. type: textblock
10029 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10030 msgid "Some Red Hat-derived distro."
10031 msgstr ""
10032
10033 #. type: =item
10034 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10035 msgid "\"rhel\""
10036 msgstr ""
10037
10038 #. type: textblock
10039 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10040 msgid "Red Hat Enterprise Linux."
10041 msgstr ""
10042
10043 #. type: =item
10044 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10045 msgid "\"scientificlinux\""
10046 msgstr ""
10047
10048 #. type: textblock
10049 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10050 msgid "Scientific Linux."
10051 msgstr ""
10052
10053 #. type: =item
10054 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10055 msgid "\"slackware\""
10056 msgstr ""
10057
10058 #. type: textblock
10059 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10060 msgid "Slackware."
10061 msgstr ""
10062
10063 #. type: =item
10064 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10065 msgid "\"ttylinux\""
10066 msgstr ""
10067
10068 #. type: textblock
10069 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10070 msgid "ttylinux."
10071 msgstr ""
10072
10073 #. type: =item
10074 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10075 msgid "\"ubuntu\""
10076 msgstr ""
10077
10078 #. type: textblock
10079 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10080 msgid "Ubuntu."
10081 msgstr ""
10082
10083 #. type: =item
10084 #: ../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
10085 msgid "\"unknown\""
10086 msgstr ""
10087
10088 #. type: textblock
10089 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10090 msgid "The distro could not be determined."
10091 msgstr ""
10092
10093 #. type: =item
10094 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10095 msgid "\"windows\""
10096 msgstr ""
10097
10098 #. type: textblock
10099 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10100 msgid ""
10101 "Windows does not have distributions.  This string is returned if the OS type "
10102 "is Windows."
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../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
10107 msgid ""
10108 "Future versions of libguestfs may return other strings here.  The caller "
10109 "should be prepared to handle any string."
10110 msgstr ""
10111
10112 #. type: =head2
10113 #: ../fish/guestfish-actions.pod:2016
10114 msgid "inspect-get-drive-mappings"
10115 msgstr ""
10116
10117 #. type: verbatim
10118 #: ../fish/guestfish-actions.pod:2018
10119 #, no-wrap
10120 msgid ""
10121 " inspect-get-drive-mappings root\n"
10122 "\n"
10123 msgstr ""
10124
10125 #. type: textblock
10126 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10127 msgid ""
10128 "This call is useful for Windows which uses a primitive system of assigning "
10129 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10130 "Windows Registry to find out how disks/partitions are mapped to drive "
10131 "letters, and returns a hash table as in the example below:"
10132 msgstr ""
10133
10134 #. type: verbatim
10135 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10136 #, no-wrap
10137 msgid ""
10138 " C      =>     /dev/vda2\n"
10139 " E      =>     /dev/vdb1\n"
10140 " F      =>     /dev/vdc1\n"
10141 "\n"
10142 msgstr ""
10143
10144 #. type: textblock
10145 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10146 msgid ""
10147 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10148 "and just contains the drive letter, without the customary colon separator "
10149 "character."
10150 msgstr ""
10151
10152 #. type: textblock
10153 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10154 msgid ""
10155 "In future we may support other operating systems that also used drive "
10156 "letters, but the keys for those might not be case insensitive and might be "
10157 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10158 "C<h1> etc."
10159 msgstr ""
10160
10161 #. type: textblock
10162 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10163 msgid ""
10164 "For Windows guests, currently only hard drive mappings are returned.  "
10165 "Removable disks (eg. DVD-ROMs) are ignored."
10166 msgstr ""
10167
10168 #. type: textblock
10169 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10170 msgid ""
10171 "For guests that do not use drive mappings, or if the drive mappings could "
10172 "not be determined, this returns an empty hash table."
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2045
10177 msgid ""
10178 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10179 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
10180 msgstr ""
10181
10182 #. type: =head2
10183 #: ../fish/guestfish-actions.pod:2049
10184 msgid "inspect-get-filesystems"
10185 msgstr ""
10186
10187 #. type: verbatim
10188 #: ../fish/guestfish-actions.pod:2051
10189 #, no-wrap
10190 msgid ""
10191 " inspect-get-filesystems root\n"
10192 "\n"
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10197 msgid ""
10198 "This returns a list of all the filesystems that we think are associated with "
10199 "this operating system.  This includes the root filesystem, other ordinary "
10200 "filesystems, and non-mounted devices like swap partitions."
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10205 msgid ""
10206 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10207 "to be shared between operating systems."
10208 msgstr ""
10209
10210 #. type: textblock
10211 #: ../fish/guestfish-actions.pod:2061
10212 msgid ""
10213 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10214 "L</inspect-get-mountpoints>."
10215 msgstr ""
10216
10217 #. type: =head2
10218 #: ../fish/guestfish-actions.pod:2064
10219 msgid "inspect-get-format"
10220 msgstr ""
10221
10222 #. type: verbatim
10223 #: ../fish/guestfish-actions.pod:2066
10224 #, no-wrap
10225 msgid ""
10226 " inspect-get-format root\n"
10227 "\n"
10228 msgstr ""
10229
10230 #. type: textblock
10231 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10232 msgid ""
10233 "This returns the format of the inspected operating system.  You can use it "
10234 "to detect install images, live CDs and similar."
10235 msgstr ""
10236
10237 #. type: textblock
10238 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10239 msgid "Currently defined formats are:"
10240 msgstr ""
10241
10242 #. type: =item
10243 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10244 msgid "\"installed\""
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10249 msgid "This is an installed operating system."
10250 msgstr ""
10251
10252 #. type: =item
10253 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10254 msgid "\"installer\""
10255 msgstr ""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10259 msgid ""
10260 "The disk image being inspected is not an installed operating system, but a "
10261 "I<bootable> install disk, live CD, or similar."
10262 msgstr ""
10263
10264 #. type: textblock
10265 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10266 msgid "The format of this disk image is not known."
10267 msgstr ""
10268
10269 #. type: =head2
10270 #: ../fish/guestfish-actions.pod:2095
10271 msgid "inspect-get-hostname"
10272 msgstr ""
10273
10274 #. type: verbatim
10275 #: ../fish/guestfish-actions.pod:2097
10276 #, no-wrap
10277 msgid ""
10278 " inspect-get-hostname root\n"
10279 "\n"
10280 msgstr ""
10281
10282 #. type: textblock
10283 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10284 msgid ""
10285 "This function returns the hostname of the operating system as found by "
10286 "inspection of the guest's configuration files."
10287 msgstr ""
10288
10289 #. type: textblock
10290 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10291 msgid ""
10292 "If the hostname could not be determined, then the string C<unknown> is "
10293 "returned."
10294 msgstr ""
10295
10296 #. type: =head2
10297 #: ../fish/guestfish-actions.pod:2107
10298 msgid "inspect-get-icon"
10299 msgstr ""
10300
10301 #. type: verbatim
10302 #: ../fish/guestfish-actions.pod:2109
10303 #, no-wrap
10304 msgid ""
10305 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10306 "\n"
10307 msgstr ""
10308
10309 #. type: textblock
10310 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10311 msgid ""
10312 "This function returns an icon corresponding to the inspected operating "
10313 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10314 "to PNG if necessary)."
10315 msgstr ""
10316
10317 #. type: textblock
10318 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10319 msgid ""
10320 "If it was not possible to get an icon this function returns a zero-length "
10321 "(non-NULL) buffer.  I<Callers must check for this case>."
10322 msgstr ""
10323
10324 #. type: textblock
10325 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10326 msgid ""
10327 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10328 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10329 "this file will be returned.  You can disable favicons by passing the "
10330 "optional C<favicon> boolean as false (default is true)."
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10335 msgid ""
10336 "If finding the favicon fails, then we look in other places in the guest for "
10337 "a suitable icon."
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10342 msgid ""
10343 "If the optional C<highquality> boolean is true then only high quality icons "
10344 "are returned, which means only icons of high resolution with an alpha "
10345 "channel.  The default (false) is to return any icon we can, even if it is of "
10346 "substandard quality."
10347 msgstr ""
10348
10349 #. type: textblock
10350 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10351 msgid ""
10352 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10353 "before you call this, since it needs to read information from the guest "
10354 "filesystem during the call."
10355 msgstr ""
10356
10357 #. type: textblock
10358 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10359 msgid ""
10360 "B<Security:> The icon data comes from the untrusted guest, and should be "
10361 "treated with caution.  PNG files have been known to contain exploits.  "
10362 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10363 "trying to process or display the icon."
10364 msgstr ""
10365
10366 #. type: textblock
10367 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10368 msgid ""
10369 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10370 "tries to return the largest, highest quality icon available.  The "
10371 "application must scale the icon to the required size."
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10376 msgid ""
10377 "Extracting icons from Windows guests requires the external C<wrestool> "
10378 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10379 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10380 "installed separately."
10381 msgstr ""
10382
10383 #. type: textblock
10384 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10385 msgid ""
10386 "Operating system icons are usually trademarks.  Seek legal advice before "
10387 "using trademarks in applications."
10388 msgstr ""
10389
10390 #. type: =head2
10391 #: ../fish/guestfish-actions.pod:2173
10392 msgid "inspect-get-major-version"
10393 msgstr ""
10394
10395 #. type: verbatim
10396 #: ../fish/guestfish-actions.pod:2175
10397 #, no-wrap
10398 msgid ""
10399 " inspect-get-major-version root\n"
10400 "\n"
10401 msgstr ""
10402
10403 #. type: textblock
10404 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10405 msgid "This returns the major version number of the inspected operating system."
10406 msgstr ""
10407
10408 #. type: textblock
10409 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10410 msgid ""
10411 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10412 "popular public names used by the operating system.  Notably the operating "
10413 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10414 "1).  You can find out the real versions corresponding to releases of Windows "
10415 "by consulting Wikipedia or MSDN."
10416 msgstr ""
10417
10418 #. type: textblock
10419 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198 ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10420 msgid "If the version could not be determined, then C<0> is returned."
10421 msgstr ""
10422
10423 #. type: =head2
10424 #: ../fish/guestfish-actions.pod:2191
10425 msgid "inspect-get-minor-version"
10426 msgstr ""
10427
10428 #. type: verbatim
10429 #: ../fish/guestfish-actions.pod:2193
10430 #, no-wrap
10431 msgid ""
10432 " inspect-get-minor-version root\n"
10433 "\n"
10434 msgstr ""
10435
10436 #. type: textblock
10437 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10438 msgid "This returns the minor version number of the inspected operating system."
10439 msgstr ""
10440
10441 #. type: textblock
10442 #: ../fish/guestfish-actions.pod:2200
10443 msgid ""
10444 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10445 "L</inspect-get-major-version>."
10446 msgstr ""
10447
10448 #. type: =head2
10449 #: ../fish/guestfish-actions.pod:2203
10450 msgid "inspect-get-mountpoints"
10451 msgstr ""
10452
10453 #. type: verbatim
10454 #: ../fish/guestfish-actions.pod:2205
10455 #, no-wrap
10456 msgid ""
10457 " inspect-get-mountpoints root\n"
10458 "\n"
10459 msgstr ""
10460
10461 #. type: textblock
10462 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10463 msgid ""
10464 "This returns a hash of where we think the filesystems associated with this "
10465 "operating system should be mounted.  Callers should note that this is at "
10466 "best an educated guess made by reading configuration files such as "
10467 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10468 "are non-existent or not mountable and callers should be prepared to handle "
10469 "or ignore failures if they try to mount them."
10470 msgstr ""
10471
10472 #. type: textblock
10473 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10474 msgid ""
10475 "Each element in the returned hashtable has a key which is the path of the "
10476 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10477 "mounted there (eg. C</dev/sda1>)."
10478 msgstr ""
10479
10480 #. type: textblock
10481 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10482 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10483 msgstr ""
10484
10485 #. type: textblock
10486 #: ../fish/guestfish-actions.pod:2224
10487 msgid ""
10488 "For operating systems like Windows which still use drive letters, this call "
10489 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10490 "information about the mapping of drive letters to partitions, see "
10491 "L</inspect-get-drive-mappings>."
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:2230
10496 msgid ""
10497 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10498 "L</inspect-get-filesystems>."
10499 msgstr ""
10500
10501 #. type: =head2
10502 #: ../fish/guestfish-actions.pod:2233
10503 msgid "inspect-get-package-format"
10504 msgstr ""
10505
10506 #. type: verbatim
10507 #: ../fish/guestfish-actions.pod:2235
10508 #, no-wrap
10509 msgid ""
10510 " inspect-get-package-format root\n"
10511 "\n"
10512 msgstr ""
10513
10514 #. type: textblock
10515 #: ../fish/guestfish-actions.pod:2237
10516 msgid ""
10517 "This function and L</inspect-get-package-management> return the package "
10518 "format and package management tool used by the inspected operating system.  "
10519 "For example for Fedora these functions would return C<rpm> (package format) "
10520 "and C<yum> (package management)."
10521 msgstr ""
10522
10523 #. type: textblock
10524 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10525 msgid ""
10526 "This returns the string C<unknown> if we could not determine the package "
10527 "format I<or> if the operating system does not have a real packaging system "
10528 "(eg. Windows)."
10529 msgstr ""
10530
10531 #. type: textblock
10532 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10533 msgid ""
10534 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10535 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10536 msgstr ""
10537
10538 #. type: =head2
10539 #: ../fish/guestfish-actions.pod:2253
10540 msgid "inspect-get-package-management"
10541 msgstr ""
10542
10543 #. type: verbatim
10544 #: ../fish/guestfish-actions.pod:2255
10545 #, no-wrap
10546 msgid ""
10547 " inspect-get-package-management root\n"
10548 "\n"
10549 msgstr ""
10550
10551 #. type: textblock
10552 #: ../fish/guestfish-actions.pod:2257
10553 msgid ""
10554 "L</inspect-get-package-format> and this function return the package format "
10555 "and package management tool used by the inspected operating system.  For "
10556 "example for Fedora these functions would return C<rpm> (package format) and "
10557 "C<yum> (package management)."
10558 msgstr ""
10559
10560 #. type: textblock
10561 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10562 msgid ""
10563 "This returns the string C<unknown> if we could not determine the package "
10564 "management tool I<or> if the operating system does not have a real packaging "
10565 "system (eg. Windows)."
10566 msgstr ""
10567
10568 #. type: textblock
10569 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10570 msgid ""
10571 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10572 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10573 "versions of libguestfs may return other strings."
10574 msgstr ""
10575
10576 #. type: =head2
10577 #: ../fish/guestfish-actions.pod:2274
10578 msgid "inspect-get-product-name"
10579 msgstr ""
10580
10581 #. type: verbatim
10582 #: ../fish/guestfish-actions.pod:2276
10583 #, no-wrap
10584 msgid ""
10585 " inspect-get-product-name root\n"
10586 "\n"
10587 msgstr ""
10588
10589 #. type: textblock
10590 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10591 msgid ""
10592 "This returns the product name of the inspected operating system.  The "
10593 "product name is generally some freeform string which can be displayed to the "
10594 "user, but should not be parsed by programs."
10595 msgstr ""
10596
10597 #. type: textblock
10598 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10599 msgid ""
10600 "If the product name could not be determined, then the string C<unknown> is "
10601 "returned."
10602 msgstr ""
10603
10604 #. type: =head2
10605 #: ../fish/guestfish-actions.pod:2288
10606 msgid "inspect-get-product-variant"
10607 msgstr ""
10608
10609 #. type: verbatim
10610 #: ../fish/guestfish-actions.pod:2290
10611 #, no-wrap
10612 msgid ""
10613 " inspect-get-product-variant root\n"
10614 "\n"
10615 msgstr ""
10616
10617 #. type: textblock
10618 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10619 msgid "This returns the product variant of the inspected operating system."
10620 msgstr ""
10621
10622 #. type: textblock
10623 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10624 msgid ""
10625 "For Windows guests, this returns the contents of the Registry key "
10626 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
10627 "which is usually a string such as C<Client> or C<Server> (other values are "
10628 "possible).  This can be used to distinguish consumer and enterprise versions "
10629 "of Windows that have the same version number (for example, Windows 7 and "
10630 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10631 "the latter is C<Server>)."
10632 msgstr ""
10633
10634 #. type: textblock
10635 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10636 msgid ""
10637 "For enterprise Linux guests, in future we intend this to return the product "
10638 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10639 "implemented at present."
10640 msgstr ""
10641
10642 #. type: textblock
10643 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10644 msgid ""
10645 "If the product variant could not be determined, then the string C<unknown> "
10646 "is returned."
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../fish/guestfish-actions.pod:2311
10651 msgid ""
10652 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10653 "L</inspect-get-product-name>, L</inspect-get-major-version>."
10654 msgstr ""
10655
10656 #. type: =head2
10657 #: ../fish/guestfish-actions.pod:2315
10658 msgid "inspect-get-roots"
10659 msgstr ""
10660
10661 #. type: verbatim
10662 #: ../fish/guestfish-actions.pod:2317
10663 #, no-wrap
10664 msgid ""
10665 " inspect-get-roots\n"
10666 "\n"
10667 msgstr ""
10668
10669 #. type: textblock
10670 #: ../fish/guestfish-actions.pod:2319
10671 msgid ""
10672 "This function is a convenient way to get the list of root devices, as "
10673 "returned from a previous call to L</inspect-os>, but without redoing the "
10674 "whole inspection process."
10675 msgstr ""
10676
10677 #. type: textblock
10678 #: ../fish/guestfish-actions.pod:2323
10679 msgid ""
10680 "This returns an empty list if either no root devices were found or the "
10681 "caller has not called L</inspect-os>."
10682 msgstr ""
10683
10684 #. type: =head2
10685 #: ../fish/guestfish-actions.pod:2328
10686 msgid "inspect-get-type"
10687 msgstr ""
10688
10689 #. type: verbatim
10690 #: ../fish/guestfish-actions.pod:2330
10691 #, no-wrap
10692 msgid ""
10693 " inspect-get-type root\n"
10694 "\n"
10695 msgstr ""
10696
10697 #. type: textblock
10698 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10699 msgid ""
10700 "This returns the type of the inspected operating system.  Currently defined "
10701 "types are:"
10702 msgstr ""
10703
10704 #. type: =item
10705 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10706 msgid "\"linux\""
10707 msgstr ""
10708
10709 #. type: textblock
10710 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10711 msgid "Any Linux-based operating system."
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10716 msgid "Any Microsoft Windows operating system."
10717 msgstr ""
10718
10719 #. type: =item
10720 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10721 msgid "\"freebsd\""
10722 msgstr ""
10723
10724 #. type: textblock
10725 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10726 msgid "FreeBSD."
10727 msgstr ""
10728
10729 #. type: =item
10730 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10731 msgid "\"netbsd\""
10732 msgstr ""
10733
10734 #. type: textblock
10735 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10736 msgid "NetBSD."
10737 msgstr ""
10738
10739 #. type: textblock
10740 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10741 msgid "The operating system type could not be determined."
10742 msgstr ""
10743
10744 #. type: =head2
10745 #: ../fish/guestfish-actions.pod:2364
10746 msgid "inspect-get-windows-current-control-set"
10747 msgstr ""
10748
10749 #. type: verbatim
10750 #: ../fish/guestfish-actions.pod:2366
10751 #, no-wrap
10752 msgid ""
10753 " inspect-get-windows-current-control-set root\n"
10754 "\n"
10755 msgstr ""
10756
10757 #. type: textblock
10758 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10759 msgid ""
10760 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10761 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10766 msgid ""
10767 "This call assumes that the guest is Windows and that the Registry could be "
10768 "examined by inspection.  If this is not the case then an error is returned."
10769 msgstr ""
10770
10771 #. type: =head2
10772 #: ../fish/guestfish-actions.pod:2377
10773 msgid "inspect-get-windows-systemroot"
10774 msgstr ""
10775
10776 #. type: verbatim
10777 #: ../fish/guestfish-actions.pod:2379
10778 #, no-wrap
10779 msgid ""
10780 " inspect-get-windows-systemroot root\n"
10781 "\n"
10782 msgstr ""
10783
10784 #. type: textblock
10785 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
10786 msgid ""
10787 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10788 "is a directory path such as C</WINDOWS>."
10789 msgstr ""
10790
10791 #. type: textblock
10792 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
10793 msgid ""
10794 "This call assumes that the guest is Windows and that the systemroot could be "
10795 "determined by inspection.  If this is not the case then an error is "
10796 "returned."
10797 msgstr ""
10798
10799 #. type: =head2
10800 #: ../fish/guestfish-actions.pod:2390
10801 msgid "inspect-is-live"
10802 msgstr ""
10803
10804 #. type: verbatim
10805 #: ../fish/guestfish-actions.pod:2392
10806 #, no-wrap
10807 msgid ""
10808 " inspect-is-live root\n"
10809 "\n"
10810 msgstr ""
10811
10812 #. type: textblock
10813 #: ../fish/guestfish-actions.pod:2394
10814 msgid ""
10815 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10816 "then this returns true if a live image was detected on the disk."
10817 msgstr ""
10818
10819 #. type: =head2
10820 #: ../fish/guestfish-actions.pod:2400
10821 msgid "inspect-is-multipart"
10822 msgstr ""
10823
10824 #. type: verbatim
10825 #: ../fish/guestfish-actions.pod:2402
10826 #, no-wrap
10827 msgid ""
10828 " inspect-is-multipart root\n"
10829 "\n"
10830 msgstr ""
10831
10832 #. type: textblock
10833 #: ../fish/guestfish-actions.pod:2404
10834 msgid ""
10835 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10836 "then this returns true if the disk is part of a set."
10837 msgstr ""
10838
10839 #. type: =head2
10840 #: ../fish/guestfish-actions.pod:2410
10841 msgid "inspect-is-netinst"
10842 msgstr ""
10843
10844 #. type: verbatim
10845 #: ../fish/guestfish-actions.pod:2412
10846 #, no-wrap
10847 msgid ""
10848 " inspect-is-netinst root\n"
10849 "\n"
10850 msgstr ""
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:2414
10854 msgid ""
10855 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10856 "then this returns true if the disk is a network installer, ie. not a "
10857 "self-contained install CD but one which is likely to require network access "
10858 "to complete the install."
10859 msgstr ""
10860
10861 #. type: =head2
10862 #: ../fish/guestfish-actions.pod:2422
10863 msgid "inspect-list-applications"
10864 msgstr ""
10865
10866 #. type: verbatim
10867 #: ../fish/guestfish-actions.pod:2424
10868 #, no-wrap
10869 msgid ""
10870 " inspect-list-applications root\n"
10871 "\n"
10872 msgstr ""
10873
10874 #. type: textblock
10875 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
10876 msgid "Return the list of applications installed in the operating system."
10877 msgstr ""
10878
10879 #. type: textblock
10880 #: ../fish/guestfish-actions.pod:2428
10881 msgid ""
10882 "I<Note:> This call works differently from other parts of the inspection "
10883 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10884 "then mount up the disks, before calling this.  Listing applications is a "
10885 "significantly more difficult operation which requires access to the full "
10886 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10887 "are just returning data cached in the libguestfs handle, this call actually "
10888 "reads parts of the mounted filesystems during the call."
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
10893 msgid ""
10894 "This returns an empty list if the inspection code was not able to determine "
10895 "the list of applications."
10896 msgstr ""
10897
10898 #. type: textblock
10899 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
10900 msgid "The application structure contains the following fields:"
10901 msgstr ""
10902
10903 #. type: =item
10904 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10905 msgid "C<app_name>"
10906 msgstr ""
10907
10908 #. type: textblock
10909 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
10910 msgid ""
10911 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10912 "guests, this is the package name."
10913 msgstr ""
10914
10915 #. type: =item
10916 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
10917 msgid "C<app_display_name>"
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
10922 msgid ""
10923 "The display name of the application, sometimes localized to the install "
10924 "language of the guest operating system."
10925 msgstr ""
10926
10927 #. type: textblock
10928 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
10929 msgid ""
10930 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10931 "to display something can use C<app_name> instead."
10932 msgstr ""
10933
10934 #. type: =item
10935 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
10936 msgid "C<app_epoch>"
10937 msgstr ""
10938
10939 #. type: textblock
10940 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
10941 msgid ""
10942 "For package managers which use epochs, this contains the epoch of the "
10943 "package (an integer).  If unavailable, this is returned as C<0>."
10944 msgstr ""
10945
10946 #. type: =item
10947 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
10948 msgid "C<app_version>"
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
10953 msgid ""
10954 "The version string of the application or package.  If unavailable this is "
10955 "returned as an empty string C<\"\">."
10956 msgstr ""
10957
10958 #. type: =item
10959 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
10960 msgid "C<app_release>"
10961 msgstr ""
10962
10963 #. type: textblock
10964 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
10965 msgid ""
10966 "The release string of the application or package, for package managers that "
10967 "use this.  If unavailable this is returned as an empty string C<\"\">."
10968 msgstr ""
10969
10970 #. type: =item
10971 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
10972 msgid "C<app_install_path>"
10973 msgstr ""
10974
10975 #. type: textblock
10976 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
10977 msgid ""
10978 "The installation path of the application (on operating systems such as "
10979 "Windows which use installation paths).  This path is in the format used by "
10980 "the guest operating system, it is not a libguestfs path."
10981 msgstr ""
10982
10983 #. type: textblock
10984 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
10985 msgid "If unavailable this is returned as an empty string C<\"\">."
10986 msgstr ""
10987
10988 #. type: =item
10989 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
10990 msgid "C<app_trans_path>"
10991 msgstr ""
10992
10993 #. type: textblock
10994 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
10995 msgid ""
10996 "The install path translated into a libguestfs path.  If unavailable this is "
10997 "returned as an empty string C<\"\">."
10998 msgstr ""
10999
11000 #. type: =item
11001 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11002 msgid "C<app_publisher>"
11003 msgstr ""
11004
11005 #. type: textblock
11006 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11007 msgid ""
11008 "The name of the publisher of the application, for package managers that use "
11009 "this.  If unavailable this is returned as an empty string C<\"\">."
11010 msgstr ""
11011
11012 #. type: =item
11013 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11014 msgid "C<app_url>"
11015 msgstr ""
11016
11017 #. type: textblock
11018 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11019 msgid ""
11020 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11021 "returned as an empty string C<\"\">."
11022 msgstr ""
11023
11024 #. type: =item
11025 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11026 msgid "C<app_source_package>"
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11031 msgid ""
11032 "For packaging systems which support this, the name of the source package.  "
11033 "If unavailable this is returned as an empty string C<\"\">."
11034 msgstr ""
11035
11036 #. type: =item
11037 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11038 msgid "C<app_summary>"
11039 msgstr ""
11040
11041 #. type: textblock
11042 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11043 msgid ""
11044 "A short (usually one line) description of the application or package.  If "
11045 "unavailable this is returned as an empty string C<\"\">."
11046 msgstr ""
11047
11048 #. type: =item
11049 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11050 msgid "C<app_description>"
11051 msgstr ""
11052
11053 #. type: textblock
11054 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11055 msgid ""
11056 "A longer description of the application or package.  If unavailable this is "
11057 "returned as an empty string C<\"\">."
11058 msgstr ""
11059
11060 #. type: =head2
11061 #: ../fish/guestfish-actions.pod:2518
11062 msgid "inspect-os"
11063 msgstr ""
11064
11065 #. type: verbatim
11066 #: ../fish/guestfish-actions.pod:2520
11067 #, no-wrap
11068 msgid ""
11069 " inspect-os\n"
11070 "\n"
11071 msgstr ""
11072
11073 #. type: textblock
11074 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11075 msgid ""
11076 "This function uses other libguestfs functions and certain heuristics to "
11077 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11078 "for operating systems."
11079 msgstr ""
11080
11081 #. type: textblock
11082 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11083 msgid "The list returned is empty if no operating systems were found."
11084 msgstr ""
11085
11086 #. type: textblock
11087 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11088 msgid ""
11089 "If one operating system was found, then this returns a list with a single "
11090 "element, which is the name of the root filesystem of this operating system.  "
11091 "It is also possible for this function to return a list containing more than "
11092 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11093 "element being the root filesystem of one of the operating systems."
11094 msgstr ""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:2535
11098 msgid ""
11099 "You can pass the root string(s) returned to other L</inspect-get-*> "
11100 "functions in order to query further information about each operating system, "
11101 "such as the name and version."
11102 msgstr ""
11103
11104 #. type: textblock
11105 #: ../fish/guestfish-actions.pod:2540
11106 msgid ""
11107 "This function uses other libguestfs features such as L</mount-ro> and "
11108 "L</umount-all> in order to mount and unmount filesystems and look at the "
11109 "contents.  This should be called with no disks currently mounted.  The "
11110 "function may also use Augeas, so any existing Augeas handle will be closed."
11111 msgstr ""
11112
11113 #. type: textblock
11114 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11115 msgid ""
11116 "This function cannot decrypt encrypted disks.  The caller must do that first "
11117 "(supplying the necessary keys) if the disk is encrypted."
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2815
11122 msgid "See also L</list-filesystems>."
11123 msgstr ""
11124
11125 #. type: =head2
11126 #: ../fish/guestfish-actions.pod:2554
11127 msgid "is-blockdev"
11128 msgstr ""
11129
11130 #. type: verbatim
11131 #: ../fish/guestfish-actions.pod:2556
11132 #, no-wrap
11133 msgid ""
11134 " is-blockdev path\n"
11135 "\n"
11136 msgstr ""
11137
11138 #. type: textblock
11139 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11140 msgid ""
11141 "This returns C<true> if and only if there is a block device with the given "
11142 "C<path> name."
11143 msgstr ""
11144
11145 #. type: textblock
11146 #: ../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
11147 msgid "See also L</stat>."
11148 msgstr ""
11149
11150 #. type: =head2
11151 #: ../fish/guestfish-actions.pod:2563
11152 msgid "is-busy"
11153 msgstr ""
11154
11155 #. type: verbatim
11156 #: ../fish/guestfish-actions.pod:2565
11157 #, no-wrap
11158 msgid ""
11159 " is-busy\n"
11160 "\n"
11161 msgstr ""
11162
11163 #. type: textblock
11164 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11165 msgid ""
11166 "This returns true iff this handle is busy processing a command (in the "
11167 "C<BUSY> state)."
11168 msgstr ""
11169
11170 #. type: =head2
11171 #: ../fish/guestfish-actions.pod:2572
11172 msgid "is-chardev"
11173 msgstr ""
11174
11175 #. type: verbatim
11176 #: ../fish/guestfish-actions.pod:2574
11177 #, no-wrap
11178 msgid ""
11179 " is-chardev path\n"
11180 "\n"
11181 msgstr ""
11182
11183 #. type: textblock
11184 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11185 msgid ""
11186 "This returns C<true> if and only if there is a character device with the "
11187 "given C<path> name."
11188 msgstr ""
11189
11190 #. type: =head2
11191 #: ../fish/guestfish-actions.pod:2581
11192 msgid "is-config"
11193 msgstr ""
11194
11195 #. type: verbatim
11196 #: ../fish/guestfish-actions.pod:2583
11197 #, no-wrap
11198 msgid ""
11199 " is-config\n"
11200 "\n"
11201 msgstr ""
11202
11203 #. type: textblock
11204 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11205 msgid ""
11206 "This returns true iff this handle is being configured (in the C<CONFIG> "
11207 "state)."
11208 msgstr ""
11209
11210 #. type: =head2
11211 #: ../fish/guestfish-actions.pod:2590
11212 msgid "is-dir"
11213 msgstr ""
11214
11215 #. type: verbatim
11216 #: ../fish/guestfish-actions.pod:2592
11217 #, no-wrap
11218 msgid ""
11219 " is-dir path\n"
11220 "\n"
11221 msgstr ""
11222
11223 #. type: textblock
11224 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11225 msgid ""
11226 "This returns C<true> if and only if there is a directory with the given "
11227 "C<path> name.  Note that it returns false for other objects like files."
11228 msgstr ""
11229
11230 #. type: =head2
11231 #: ../fish/guestfish-actions.pod:2600
11232 msgid "is-fifo"
11233 msgstr ""
11234
11235 #. type: verbatim
11236 #: ../fish/guestfish-actions.pod:2602
11237 #, no-wrap
11238 msgid ""
11239 " is-fifo path\n"
11240 "\n"
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11245 msgid ""
11246 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11247 "given C<path> name."
11248 msgstr ""
11249
11250 #. type: =head2
11251 #: ../fish/guestfish-actions.pod:2609
11252 msgid "is-file"
11253 msgstr ""
11254
11255 #. type: verbatim
11256 #: ../fish/guestfish-actions.pod:2611
11257 #, no-wrap
11258 msgid ""
11259 " is-file path\n"
11260 "\n"
11261 msgstr ""
11262
11263 #. type: textblock
11264 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11265 msgid ""
11266 "This returns C<true> if and only if there is a regular file with the given "
11267 "C<path> name.  Note that it returns false for other objects like "
11268 "directories."
11269 msgstr ""
11270
11271 #. type: =head2
11272 #: ../fish/guestfish-actions.pod:2619
11273 msgid "is-launching"
11274 msgstr ""
11275
11276 #. type: verbatim
11277 #: ../fish/guestfish-actions.pod:2621
11278 #, no-wrap
11279 msgid ""
11280 " is-launching\n"
11281 "\n"
11282 msgstr ""
11283
11284 #. type: textblock
11285 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11286 msgid ""
11287 "This returns true iff this handle is launching the subprocess (in the "
11288 "C<LAUNCHING> state)."
11289 msgstr ""
11290
11291 #. type: =head2
11292 #: ../fish/guestfish-actions.pod:2628
11293 msgid "is-lv"
11294 msgstr ""
11295
11296 #. type: verbatim
11297 #: ../fish/guestfish-actions.pod:2630
11298 #, no-wrap
11299 msgid ""
11300 " is-lv device\n"
11301 "\n"
11302 msgstr ""
11303
11304 #. type: textblock
11305 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11306 msgid ""
11307 "This command tests whether C<device> is a logical volume, and returns true "
11308 "iff this is the case."
11309 msgstr ""
11310
11311 #. type: =head2
11312 #: ../fish/guestfish-actions.pod:2635
11313 msgid "is-ready"
11314 msgstr ""
11315
11316 #. type: verbatim
11317 #: ../fish/guestfish-actions.pod:2637
11318 #, no-wrap
11319 msgid ""
11320 " is-ready\n"
11321 "\n"
11322 msgstr ""
11323
11324 #. type: textblock
11325 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11326 msgid ""
11327 "This returns true iff this handle is ready to accept commands (in the "
11328 "C<READY> state)."
11329 msgstr ""
11330
11331 #. type: =head2
11332 #: ../fish/guestfish-actions.pod:2644
11333 msgid "is-socket"
11334 msgstr ""
11335
11336 #. type: verbatim
11337 #: ../fish/guestfish-actions.pod:2646
11338 #, no-wrap
11339 msgid ""
11340 " is-socket path\n"
11341 "\n"
11342 msgstr ""
11343
11344 #. type: textblock
11345 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11346 msgid ""
11347 "This returns C<true> if and only if there is a Unix domain socket with the "
11348 "given C<path> name."
11349 msgstr ""
11350
11351 #. type: =head2
11352 #: ../fish/guestfish-actions.pod:2653
11353 msgid "is-symlink"
11354 msgstr ""
11355
11356 #. type: verbatim
11357 #: ../fish/guestfish-actions.pod:2655
11358 #, no-wrap
11359 msgid ""
11360 " is-symlink path\n"
11361 "\n"
11362 msgstr ""
11363
11364 #. type: textblock
11365 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11366 msgid ""
11367 "This returns C<true> if and only if there is a symbolic link with the given "
11368 "C<path> name."
11369 msgstr ""
11370
11371 #. type: =head2
11372 #: ../fish/guestfish-actions.pod:2662
11373 msgid "is-zero"
11374 msgstr ""
11375
11376 #. type: verbatim
11377 #: ../fish/guestfish-actions.pod:2664
11378 #, no-wrap
11379 msgid ""
11380 " is-zero path\n"
11381 "\n"
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11386 msgid ""
11387 "This returns true iff the file exists and the file is empty or it contains "
11388 "all zero bytes."
11389 msgstr ""
11390
11391 #. type: =head2
11392 #: ../fish/guestfish-actions.pod:2669
11393 msgid "is-zero-device"
11394 msgstr ""
11395
11396 #. type: verbatim
11397 #: ../fish/guestfish-actions.pod:2671
11398 #, no-wrap
11399 msgid ""
11400 " is-zero-device device\n"
11401 "\n"
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11406 msgid "This returns true iff the device exists and contains all zero bytes."
11407 msgstr ""
11408
11409 #. type: textblock
11410 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11411 msgid "Note that for large devices this can take a long time to run."
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../fish/guestfish-actions.pod:2677
11416 msgid "kill-subprocess"
11417 msgstr ""
11418
11419 #. type: verbatim
11420 #: ../fish/guestfish-actions.pod:2679
11421 #, no-wrap
11422 msgid ""
11423 " kill-subprocess\n"
11424 "\n"
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11429 msgid "This kills the qemu subprocess.  You should never need to call this."
11430 msgstr ""
11431
11432 #. type: =head2
11433 #: ../fish/guestfish-actions.pod:2683
11434 msgid "launch"
11435 msgstr ""
11436
11437 #. type: =head2
11438 #: ../fish/guestfish-actions.pod:2685
11439 msgid "run"
11440 msgstr ""
11441
11442 #. type: verbatim
11443 #: ../fish/guestfish-actions.pod:2687
11444 #, no-wrap
11445 msgid ""
11446 " launch\n"
11447 "\n"
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11452 msgid ""
11453 "Internally libguestfs is implemented by running a virtual machine using "
11454 "L<qemu(1)>."
11455 msgstr ""
11456
11457 #. type: textblock
11458 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11459 msgid ""
11460 "You should call this after configuring the handle (eg. adding drives) but "
11461 "before performing any actions."
11462 msgstr ""
11463
11464 #. type: =head2
11465 #: ../fish/guestfish-actions.pod:2695
11466 msgid "lchown"
11467 msgstr ""
11468
11469 #. type: verbatim
11470 #: ../fish/guestfish-actions.pod:2697
11471 #, no-wrap
11472 msgid ""
11473 " lchown owner group path\n"
11474 "\n"
11475 msgstr ""
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:2699
11479 msgid ""
11480 "Change the file owner to C<owner> and group to C<group>.  This is like "
11481 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11482 "the target."
11483 msgstr ""
11484
11485 #. type: =head2
11486 #: ../fish/guestfish-actions.pod:2707
11487 msgid "lgetxattr"
11488 msgstr ""
11489
11490 #. type: verbatim
11491 #: ../fish/guestfish-actions.pod:2709
11492 #, no-wrap
11493 msgid ""
11494 " lgetxattr path name\n"
11495 "\n"
11496 msgstr ""
11497
11498 #. type: textblock
11499 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11500 msgid ""
11501 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11502 "is a symlink, then this call returns an extended attribute from the symlink."
11503 msgstr ""
11504
11505 #. type: textblock
11506 #: ../fish/guestfish-actions.pod:2725
11507 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11508 msgstr ""
11509
11510 #. type: =head2
11511 #: ../fish/guestfish-actions.pod:2727
11512 msgid "lgetxattrs"
11513 msgstr ""
11514
11515 #. type: verbatim
11516 #: ../fish/guestfish-actions.pod:2729
11517 #, no-wrap
11518 msgid ""
11519 " lgetxattrs path\n"
11520 "\n"
11521 msgstr ""
11522
11523 #. type: textblock
11524 #: ../fish/guestfish-actions.pod:2731
11525 msgid ""
11526 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11527 "it returns the extended attributes of the link itself."
11528 msgstr ""
11529
11530 #. type: =head2
11531 #: ../fish/guestfish-actions.pod:2735
11532 msgid "list-9p"
11533 msgstr ""
11534
11535 #. type: verbatim
11536 #: ../fish/guestfish-actions.pod:2737
11537 #, no-wrap
11538 msgid ""
11539 " list-9p\n"
11540 "\n"
11541 msgstr ""
11542
11543 #. type: textblock
11544 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11545 msgid ""
11546 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11547 "returned."
11548 msgstr ""
11549
11550 #. type: =head2
11551 #: ../fish/guestfish-actions.pod:2742
11552 msgid "list-devices"
11553 msgstr ""
11554
11555 #. type: verbatim
11556 #: ../fish/guestfish-actions.pod:2744
11557 #, no-wrap
11558 msgid ""
11559 " list-devices\n"
11560 "\n"
11561 msgstr ""
11562
11563 #. type: textblock
11564 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11565 msgid "List all the block devices."
11566 msgstr ""
11567
11568 #. type: textblock
11569 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11570 msgid "The full block device names are returned, eg. C</dev/sda>."
11571 msgstr ""
11572
11573 #. type: =head2
11574 #: ../fish/guestfish-actions.pod:2752
11575 msgid "list-dm-devices"
11576 msgstr ""
11577
11578 #. type: verbatim
11579 #: ../fish/guestfish-actions.pod:2754
11580 #, no-wrap
11581 msgid ""
11582 " list-dm-devices\n"
11583 "\n"
11584 msgstr ""
11585
11586 #. type: textblock
11587 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11588 msgid "List all device mapper devices."
11589 msgstr ""
11590
11591 #. type: textblock
11592 #: ../fish/guestfish-actions.pod:2758
11593 msgid ""
11594 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11595 "previous call to L</luks-open>."
11596 msgstr ""
11597
11598 #. type: textblock
11599 #: ../fish/guestfish-actions.pod:2761
11600 msgid ""
11601 "Device mapper devices which correspond to logical volumes are I<not> "
11602 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11603 msgstr ""
11604
11605 #. type: =head2
11606 #: ../fish/guestfish-actions.pod:2765
11607 msgid "list-filesystems"
11608 msgstr ""
11609
11610 #. type: verbatim
11611 #: ../fish/guestfish-actions.pod:2767
11612 #, no-wrap
11613 msgid ""
11614 " list-filesystems\n"
11615 "\n"
11616 msgstr ""
11617
11618 #. type: textblock
11619 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11620 msgid ""
11621 "This inspection command looks for filesystems on partitions, block devices "
11622 "and logical volumes, returning a list of devices containing filesystems and "
11623 "their type."
11624 msgstr ""
11625
11626 #. type: textblock
11627 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11628 msgid ""
11629 "The return value is a hash, where the keys are the devices containing "
11630 "filesystems, and the values are the filesystem types.  For example:"
11631 msgstr ""
11632
11633 #. type: verbatim
11634 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11635 #, no-wrap
11636 msgid ""
11637 " \"/dev/sda1\" => \"ntfs\"\n"
11638 " \"/dev/sda2\" => \"ext2\"\n"
11639 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11640 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11641 "\n"
11642 msgstr ""
11643
11644 #. type: textblock
11645 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11646 msgid ""
11647 "The value can have the special value \"unknown\", meaning the content of the "
11648 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11649 msgstr ""
11650
11651 #. type: textblock
11652 #: ../fish/guestfish-actions.pod:2786
11653 msgid ""
11654 "This command runs other libguestfs commands, which might include L</mount> "
11655 "and L</umount>, and therefore you should use this soon after launch and only "
11656 "when nothing is mounted."
11657 msgstr ""
11658
11659 #. type: textblock
11660 #: ../fish/guestfish-actions.pod:2790
11661 msgid ""
11662 "Not all of the filesystems returned will be mountable.  In particular, swap "
11663 "partitions are returned in the list.  Also this command does not check that "
11664 "each filesystem found is valid and mountable, and some filesystems might be "
11665 "mountable but require special options.  Filesystems may not all belong to a "
11666 "single logical operating system (use L</inspect-os> to look for OSes)."
11667 msgstr ""
11668
11669 #. type: =head2
11670 #: ../fish/guestfish-actions.pod:2798
11671 msgid "list-md-devices"
11672 msgstr ""
11673
11674 #. type: verbatim
11675 #: ../fish/guestfish-actions.pod:2800
11676 #, no-wrap
11677 msgid ""
11678 " list-md-devices\n"
11679 "\n"
11680 msgstr ""
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11684 msgid "List all Linux md devices."
11685 msgstr ""
11686
11687 #. type: =head2
11688 #: ../fish/guestfish-actions.pod:2804
11689 msgid "list-partitions"
11690 msgstr ""
11691
11692 #. type: verbatim
11693 #: ../fish/guestfish-actions.pod:2806
11694 #, no-wrap
11695 msgid ""
11696 " list-partitions\n"
11697 "\n"
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4287
11702 msgid "List all the partitions detected on all block devices."
11703 msgstr ""
11704
11705 #. type: textblock
11706 #: ../fish/guestfish-actions.pod:2810 ../src/guestfs-actions.pod:4289
11707 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11708 msgstr ""
11709
11710 #. type: textblock
11711 #: ../fish/guestfish-actions.pod:2812
11712 msgid ""
11713 "This does not return logical volumes.  For that you will need to call "
11714 "L</lvs>."
11715 msgstr ""
11716
11717 #. type: =head2
11718 #: ../fish/guestfish-actions.pod:2817
11719 msgid "ll"
11720 msgstr ""
11721
11722 #. type: verbatim
11723 #: ../fish/guestfish-actions.pod:2819
11724 #, no-wrap
11725 msgid ""
11726 " ll directory\n"
11727 "\n"
11728 msgstr ""
11729
11730 #. type: textblock
11731 #: ../fish/guestfish-actions.pod:2821 ../src/guestfs-actions.pod:4308
11732 msgid ""
11733 "List the files in C<directory> (relative to the root directory, there is no "
11734 "cwd) in the format of 'ls -la'."
11735 msgstr ""
11736
11737 #. type: textblock
11738 #: ../fish/guestfish-actions.pod:2824 ../src/guestfs-actions.pod:4311
11739 msgid ""
11740 "This command is mostly useful for interactive sessions.  It is I<not> "
11741 "intended that you try to parse the output string."
11742 msgstr ""
11743
11744 #. type: =head2
11745 #: ../fish/guestfish-actions.pod:2827
11746 msgid "ln"
11747 msgstr ""
11748
11749 #. type: verbatim
11750 #: ../fish/guestfish-actions.pod:2829
11751 #, no-wrap
11752 msgid ""
11753 " ln target linkname\n"
11754 "\n"
11755 msgstr ""
11756
11757 #. type: textblock
11758 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4326
11759 msgid "This command creates a hard link using the C<ln> command."
11760 msgstr ""
11761
11762 #. type: =head2
11763 #: ../fish/guestfish-actions.pod:2833
11764 msgid "ln-f"
11765 msgstr ""
11766
11767 #. type: verbatim
11768 #: ../fish/guestfish-actions.pod:2835
11769 #, no-wrap
11770 msgid ""
11771 " ln-f target linkname\n"
11772 "\n"
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4339
11777 msgid ""
11778 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11779 "option removes the link (C<linkname>) if it exists already."
11780 msgstr ""
11781
11782 #. type: =head2
11783 #: ../fish/guestfish-actions.pod:2840
11784 msgid "ln-s"
11785 msgstr ""
11786
11787 #. type: verbatim
11788 #: ../fish/guestfish-actions.pod:2842
11789 #, no-wrap
11790 msgid ""
11791 " ln-s target linkname\n"
11792 "\n"
11793 msgstr ""
11794
11795 #. type: textblock
11796 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4353
11797 msgid "This command creates a symbolic link using the C<ln -s> command."
11798 msgstr ""
11799
11800 #. type: =head2
11801 #: ../fish/guestfish-actions.pod:2846
11802 msgid "ln-sf"
11803 msgstr ""
11804
11805 #. type: verbatim
11806 #: ../fish/guestfish-actions.pod:2848
11807 #, no-wrap
11808 msgid ""
11809 " ln-sf target linkname\n"
11810 "\n"
11811 msgstr ""
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:2850 ../src/guestfs-actions.pod:4366
11815 msgid ""
11816 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11817 "option removes the link (C<linkname>) if it exists already."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:2853
11822 msgid "lremovexattr"
11823 msgstr ""
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:2855
11827 #, no-wrap
11828 msgid ""
11829 " lremovexattr xattr path\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:2857
11835 msgid ""
11836 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11837 "it removes an extended attribute of the link itself."
11838 msgstr ""
11839
11840 #. type: =head2
11841 #: ../fish/guestfish-actions.pod:2861
11842 msgid "ls"
11843 msgstr ""
11844
11845 #. type: verbatim
11846 #: ../fish/guestfish-actions.pod:2863
11847 #, no-wrap
11848 msgid ""
11849 " ls directory\n"
11850 "\n"
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4394
11855 msgid ""
11856 "List the files in C<directory> (relative to the root directory, there is no "
11857 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11858 "shown."
11859 msgstr ""
11860
11861 #. type: textblock
11862 #: ../fish/guestfish-actions.pod:2869
11863 msgid ""
11864 "This command is mostly useful for interactive sessions.  Programs should "
11865 "probably use L</readdir> instead."
11866 msgstr ""
11867
11868 #. type: =head2
11869 #: ../fish/guestfish-actions.pod:2872
11870 msgid "lsetxattr"
11871 msgstr ""
11872
11873 #. type: verbatim
11874 #: ../fish/guestfish-actions.pod:2874
11875 #, no-wrap
11876 msgid ""
11877 " lsetxattr xattr val vallen path\n"
11878 "\n"
11879 msgstr ""
11880
11881 #. type: textblock
11882 #: ../fish/guestfish-actions.pod:2876
11883 msgid ""
11884 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11885 "sets an extended attribute of the link itself."
11886 msgstr ""
11887
11888 #. type: =head2
11889 #: ../fish/guestfish-actions.pod:2880
11890 msgid "lstat"
11891 msgstr ""
11892
11893 #. type: verbatim
11894 #: ../fish/guestfish-actions.pod:2882
11895 #, no-wrap
11896 msgid ""
11897 " lstat path\n"
11898 "\n"
11899 msgstr ""
11900
11901 #. type: textblock
11902 #: ../fish/guestfish-actions.pod:2884 ../fish/guestfish-actions.pod:4775 ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:7349
11903 msgid "Returns file information for the given C<path>."
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../fish/guestfish-actions.pod:2886
11908 msgid ""
11909 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11910 "the link is stat-ed, not the file it refers to."
11911 msgstr ""
11912
11913 #. type: textblock
11914 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4436
11915 msgid "This is the same as the C<lstat(2)> system call."
11916 msgstr ""
11917
11918 #. type: =head2
11919 #: ../fish/guestfish-actions.pod:2892
11920 msgid "lstatlist"
11921 msgstr ""
11922
11923 #. type: verbatim
11924 #: ../fish/guestfish-actions.pod:2894
11925 #, no-wrap
11926 msgid ""
11927 " lstatlist path 'names ...'\n"
11928 "\n"
11929 msgstr ""
11930
11931 #. type: textblock
11932 #: ../fish/guestfish-actions.pod:2896
11933 msgid ""
11934 "This call allows you to perform the L</lstat> operation on multiple files, "
11935 "where all files are in the directory C<path>.  C<names> is the list of files "
11936 "from this directory."
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4455
11941 msgid ""
11942 "On return you get a list of stat structs, with a one-to-one correspondence "
11943 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11944 "then the C<ino> field of that structure is set to C<-1>."
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:2905
11949 msgid ""
11950 "This call is intended for programs that want to efficiently list a directory "
11951 "contents without making many round-trips.  See also L</lxattrlist> for a "
11952 "similarly efficient call for getting extended attributes.  Very long "
11953 "directory listings might cause the protocol message size to be exceeded, "
11954 "causing this call to fail.  The caller must split up such requests into "
11955 "smaller groups of names."
11956 msgstr ""
11957
11958 #. type: =head2
11959 #: ../fish/guestfish-actions.pod:2913
11960 msgid "luks-add-key"
11961 msgstr ""
11962
11963 #. type: verbatim
11964 #: ../fish/guestfish-actions.pod:2915
11965 #, no-wrap
11966 msgid ""
11967 " luks-add-key device keyslot\n"
11968 "\n"
11969 msgstr ""
11970
11971 #. type: textblock
11972 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4483
11973 msgid ""
11974 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11975 "existing key, and is used to access the device.  C<newkey> is the new key to "
11976 "add.  C<keyslot> is the key slot that will be replaced."
11977 msgstr ""
11978
11979 #. type: textblock
11980 #: ../fish/guestfish-actions.pod:2922
11981 msgid ""
11982 "Note that if C<keyslot> already contains a key, then this command will "
11983 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11984 msgstr ""
11985
11986 #. type: textblock
11987 #: ../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
11988 msgid ""
11989 "This command has one or more key or passphrase parameters.  Guestfish will "
11990 "prompt for these separately."
11991 msgstr ""
11992
11993 #. type: =head2
11994 #: ../fish/guestfish-actions.pod:2929
11995 msgid "luks-close"
11996 msgstr ""
11997
11998 #. type: verbatim
11999 #: ../fish/guestfish-actions.pod:2931
12000 #, no-wrap
12001 msgid ""
12002 " luks-close device\n"
12003 "\n"
12004 msgstr ""
12005
12006 #. type: textblock
12007 #: ../fish/guestfish-actions.pod:2933
12008 msgid ""
12009 "This closes a LUKS device that was created earlier by L</luks-open> or "
12010 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
12011 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12012 "underlying block device."
12013 msgstr ""
12014
12015 #. type: =head2
12016 #: ../fish/guestfish-actions.pod:2939
12017 msgid "luks-format"
12018 msgstr ""
12019
12020 #. type: verbatim
12021 #: ../fish/guestfish-actions.pod:2941
12022 #, no-wrap
12023 msgid ""
12024 " luks-format device keyslot\n"
12025 "\n"
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4524
12030 msgid ""
12031 "This command erases existing data on C<device> and formats the device as a "
12032 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12033 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12034 msgstr ""
12035
12036 #. type: =head2
12037 #: ../fish/guestfish-actions.pod:2951
12038 msgid "luks-format-cipher"
12039 msgstr ""
12040
12041 #. type: verbatim
12042 #: ../fish/guestfish-actions.pod:2953
12043 #, no-wrap
12044 msgid ""
12045 " luks-format-cipher device keyslot cipher\n"
12046 "\n"
12047 msgstr ""
12048
12049 #. type: textblock
12050 #: ../fish/guestfish-actions.pod:2955
12051 msgid ""
12052 "This command is the same as L</luks-format> but it also allows you to set "
12053 "the C<cipher> used."
12054 msgstr ""
12055
12056 #. type: =head2
12057 #: ../fish/guestfish-actions.pod:2961
12058 msgid "luks-kill-slot"
12059 msgstr ""
12060
12061 #. type: verbatim
12062 #: ../fish/guestfish-actions.pod:2963
12063 #, no-wrap
12064 msgid ""
12065 " luks-kill-slot device keyslot\n"
12066 "\n"
12067 msgstr ""
12068
12069 #. type: textblock
12070 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4565
12071 msgid ""
12072 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12073 "device C<device>.  C<key> must be one of the I<other> keys."
12074 msgstr ""
12075
12076 #. type: =head2
12077 #: ../fish/guestfish-actions.pod:2972
12078 msgid "luks-open"
12079 msgstr ""
12080
12081 #. type: verbatim
12082 #: ../fish/guestfish-actions.pod:2974
12083 #, no-wrap
12084 msgid ""
12085 " luks-open device mapname\n"
12086 "\n"
12087 msgstr ""
12088
12089 #. type: textblock
12090 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4585
12091 msgid ""
12092 "This command opens a block device which has been encrypted according to the "
12093 "Linux Unified Key Setup (LUKS) standard."
12094 msgstr ""
12095
12096 #. type: textblock
12097 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4588
12098 msgid "C<device> is the encrypted block device or partition."
12099 msgstr ""
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4590
12103 msgid ""
12104 "The caller must supply one of the keys associated with the LUKS block "
12105 "device, in the C<key> parameter."
12106 msgstr ""
12107
12108 #. type: textblock
12109 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4593
12110 msgid ""
12111 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12112 "writes to this block device are decrypted from and encrypted to the "
12113 "underlying C<device> respectively."
12114 msgstr ""
12115
12116 #. type: textblock
12117 #: ../fish/guestfish-actions.pod:2988
12118 msgid ""
12119 "If this block device contains LVM volume groups, then calling L</vgscan> "
12120 "followed by L</vg-activate-all> will make them visible."
12121 msgstr ""
12122
12123 #. type: textblock
12124 #: ../fish/guestfish-actions.pod:2992
12125 msgid "Use L</list-dm-devices> to list all device mapper devices."
12126 msgstr ""
12127
12128 #. type: =head2
12129 #: ../fish/guestfish-actions.pod:2998
12130 msgid "luks-open-ro"
12131 msgstr ""
12132
12133 #. type: verbatim
12134 #: ../fish/guestfish-actions.pod:3000
12135 #, no-wrap
12136 msgid ""
12137 " luks-open-ro device mapname\n"
12138 "\n"
12139 msgstr ""
12140
12141 #. type: textblock
12142 #: ../fish/guestfish-actions.pod:3002
12143 msgid ""
12144 "This is the same as L</luks-open> except that a read-only mapping is "
12145 "created."
12146 msgstr ""
12147
12148 #. type: =head2
12149 #: ../fish/guestfish-actions.pod:3008
12150 msgid "lvcreate"
12151 msgstr ""
12152
12153 #. type: verbatim
12154 #: ../fish/guestfish-actions.pod:3010
12155 #, no-wrap
12156 msgid ""
12157 " lvcreate logvol volgroup mbytes\n"
12158 "\n"
12159 msgstr ""
12160
12161 #. type: textblock
12162 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4639
12163 msgid ""
12164 "This creates an LVM logical volume called C<logvol> on the volume group "
12165 "C<volgroup>, with C<size> megabytes."
12166 msgstr ""
12167
12168 #. type: =head2
12169 #: ../fish/guestfish-actions.pod:3015
12170 msgid "lvm-canonical-lv-name"
12171 msgstr ""
12172
12173 #. type: verbatim
12174 #: ../fish/guestfish-actions.pod:3017
12175 #, no-wrap
12176 msgid ""
12177 " lvm-canonical-lv-name lvname\n"
12178 "\n"
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4652
12183 msgid ""
12184 "This converts alternative naming schemes for LVs that you might find to the "
12185 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12186 "C</dev/VG/LV>."
12187 msgstr ""
12188
12189 #. type: textblock
12190 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4656
12191 msgid ""
12192 "This command returns an error if the C<lvname> parameter does not refer to a "
12193 "logical volume."
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:3026
12198 msgid "See also L</is-lv>."
12199 msgstr ""
12200
12201 #. type: =head2
12202 #: ../fish/guestfish-actions.pod:3028
12203 msgid "lvm-clear-filter"
12204 msgstr ""
12205
12206 #. type: verbatim
12207 #: ../fish/guestfish-actions.pod:3030
12208 #, no-wrap
12209 msgid ""
12210 " lvm-clear-filter\n"
12211 "\n"
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../fish/guestfish-actions.pod:3032
12216 msgid ""
12217 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12218 "block device."
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3063 ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4713
12223 msgid "This command also clears the LVM cache and performs a volume group scan."
12224 msgstr ""
12225
12226 #. type: =head2
12227 #: ../fish/guestfish-actions.pod:3038
12228 msgid "lvm-remove-all"
12229 msgstr ""
12230
12231 #. type: verbatim
12232 #: ../fish/guestfish-actions.pod:3040
12233 #, no-wrap
12234 msgid ""
12235 " lvm-remove-all\n"
12236 "\n"
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4686
12241 msgid ""
12242 "This command removes all LVM logical volumes, volume groups and physical "
12243 "volumes."
12244 msgstr ""
12245
12246 #. type: =head2
12247 #: ../fish/guestfish-actions.pod:3045
12248 msgid "lvm-set-filter"
12249 msgstr ""
12250
12251 #. type: verbatim
12252 #: ../fish/guestfish-actions.pod:3047
12253 #, no-wrap
12254 msgid ""
12255 " lvm-set-filter 'devices ...'\n"
12256 "\n"
12257 msgstr ""
12258
12259 #. type: textblock
12260 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4699
12261 msgid ""
12262 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12263 "block devices in the list C<devices>, and will ignore all other attached "
12264 "block devices."
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4703
12269 msgid ""
12270 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12271 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12272 "there are two types of duplication possible: either cloned PVs/VGs which "
12273 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12274 "same name.  In normal operation you cannot create this situation, but you "
12275 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12276 "inside the LVM metadata."
12277 msgstr ""
12278
12279 #. type: textblock
12280 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4716
12281 msgid "You can filter whole block devices or individual partitions."
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4718
12286 msgid ""
12287 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12288 "filesystem), even if you are not filtering out that VG."
12289 msgstr ""
12290
12291 #. type: =head2
12292 #: ../fish/guestfish-actions.pod:3072
12293 msgid "lvremove"
12294 msgstr ""
12295
12296 #. type: verbatim
12297 #: ../fish/guestfish-actions.pod:3074
12298 #, no-wrap
12299 msgid ""
12300 " lvremove device\n"
12301 "\n"
12302 msgstr ""
12303
12304 #. type: textblock
12305 #: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4732
12306 msgid ""
12307 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12308 "LV, such as C</dev/VG/LV>."
12309 msgstr ""
12310
12311 #. type: textblock
12312 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4735
12313 msgid ""
12314 "You can also remove all LVs in a volume group by specifying the VG name, "
12315 "C</dev/VG>."
12316 msgstr ""
12317
12318 #. type: =head2
12319 #: ../fish/guestfish-actions.pod:3082
12320 msgid "lvrename"
12321 msgstr ""
12322
12323 #. type: verbatim
12324 #: ../fish/guestfish-actions.pod:3084
12325 #, no-wrap
12326 msgid ""
12327 " lvrename logvol newlogvol\n"
12328 "\n"
12329 msgstr ""
12330
12331 #. type: textblock
12332 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4749
12333 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12334 msgstr ""
12335
12336 #. type: =head2
12337 #: ../fish/guestfish-actions.pod:3088
12338 msgid "lvresize"
12339 msgstr ""
12340
12341 #. type: verbatim
12342 #: ../fish/guestfish-actions.pod:3090
12343 #, no-wrap
12344 msgid ""
12345 " lvresize device mbytes\n"
12346 "\n"
12347 msgstr ""
12348
12349 #. type: textblock
12350 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4762
12351 msgid ""
12352 "This resizes (expands or shrinks) an existing LVM logical volume to "
12353 "C<mbytes>.  When reducing, data in the reduced part is lost."
12354 msgstr ""
12355
12356 #. type: =head2
12357 #: ../fish/guestfish-actions.pod:3096
12358 msgid "lvresize-free"
12359 msgstr ""
12360
12361 #. type: verbatim
12362 #: ../fish/guestfish-actions.pod:3098
12363 #, no-wrap
12364 msgid ""
12365 " lvresize-free lv percent\n"
12366 "\n"
12367 msgstr ""
12368
12369 #. type: textblock
12370 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4777
12371 msgid ""
12372 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12373 "remaining free space in the volume group.  Commonly you would call this with "
12374 "pc = 100 which expands the logical volume as much as possible, using all "
12375 "remaining free space in the volume group."
12376 msgstr ""
12377
12378 #. type: =head2
12379 #: ../fish/guestfish-actions.pod:3106
12380 msgid "lvs"
12381 msgstr ""
12382
12383 #. type: verbatim
12384 #: ../fish/guestfish-actions.pod:3108
12385 #, no-wrap
12386 msgid ""
12387 " lvs\n"
12388 "\n"
12389 msgstr ""
12390
12391 #. type: textblock
12392 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4792
12393 msgid ""
12394 "List all the logical volumes detected.  This is the equivalent of the "
12395 "L<lvs(8)> command."
12396 msgstr ""
12397
12398 #. type: textblock
12399 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4795
12400 msgid ""
12401 "This returns a list of the logical volume device names "
12402 "(eg. C</dev/VolGroup00/LogVol00>)."
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:3116
12407 msgid "See also L</lvs-full>, L</list-filesystems>."
12408 msgstr ""
12409
12410 #. type: =head2
12411 #: ../fish/guestfish-actions.pod:3118
12412 msgid "lvs-full"
12413 msgstr ""
12414
12415 #. type: verbatim
12416 #: ../fish/guestfish-actions.pod:3120
12417 #, no-wrap
12418 msgid ""
12419 " lvs-full\n"
12420 "\n"
12421 msgstr ""
12422
12423 #. type: textblock
12424 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4811
12425 msgid ""
12426 "List all the logical volumes detected.  This is the equivalent of the "
12427 "L<lvs(8)> command.  The \"full\" version includes all fields."
12428 msgstr ""
12429
12430 #. type: =head2
12431 #: ../fish/guestfish-actions.pod:3125
12432 msgid "lvuuid"
12433 msgstr ""
12434
12435 #. type: verbatim
12436 #: ../fish/guestfish-actions.pod:3127
12437 #, no-wrap
12438 msgid ""
12439 " lvuuid device\n"
12440 "\n"
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4826
12445 msgid "This command returns the UUID of the LVM LV C<device>."
12446 msgstr ""
12447
12448 #. type: =head2
12449 #: ../fish/guestfish-actions.pod:3131
12450 msgid "lxattrlist"
12451 msgstr ""
12452
12453 #. type: verbatim
12454 #: ../fish/guestfish-actions.pod:3133
12455 #, no-wrap
12456 msgid ""
12457 " lxattrlist path 'names ...'\n"
12458 "\n"
12459 msgstr ""
12460
12461 #. type: textblock
12462 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4840
12463 msgid ""
12464 "This call allows you to get the extended attributes of multiple files, where "
12465 "all files are in the directory C<path>.  C<names> is the list of files from "
12466 "this directory."
12467 msgstr ""
12468
12469 #. type: textblock
12470 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4844
12471 msgid ""
12472 "On return you get a flat list of xattr structs which must be interpreted "
12473 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12474 "C<attrval> in this struct is zero-length to indicate there was an error "
12475 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12476 "number (the number of following attributes for this file, which could be "
12477 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12478 "attributes for the first named file.  This repeats for the second and "
12479 "subsequent files."
12480 msgstr ""
12481
12482 #. type: textblock
12483 #: ../fish/guestfish-actions.pod:3149
12484 msgid ""
12485 "This call is intended for programs that want to efficiently list a directory "
12486 "contents without making many round-trips.  See also L</lstatlist> for a "
12487 "similarly efficient call for getting standard stats.  Very long directory "
12488 "listings might cause the protocol message size to be exceeded, causing this "
12489 "call to fail.  The caller must split up such requests into smaller groups of "
12490 "names."
12491 msgstr ""
12492
12493 #. type: =head2
12494 #: ../fish/guestfish-actions.pod:3157
12495 msgid "mdadm-create"
12496 msgstr ""
12497
12498 #. type: verbatim
12499 #: ../fish/guestfish-actions.pod:3159
12500 #, no-wrap
12501 msgid ""
12502 " mdadm-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] "
12503 "[chunk:N] [level:..]\n"
12504 "\n"
12505 msgstr ""
12506
12507 #. type: textblock
12508 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4887
12509 msgid ""
12510 "Create a Linux md (RAID) device named C<name> on the devices in the list "
12511 "C<devices>."
12512 msgstr ""
12513
12514 #. type: =item
12515 #: ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:4894
12516 msgid "C<missingbitmap>"
12517 msgstr ""
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4896
12521 msgid ""
12522 "A bitmap of missing devices.  If a bit is set it means that a missing device "
12523 "is added to the array.  The least significant bit corresponds to the first "
12524 "device in the array."
12525 msgstr ""
12526
12527 #. type: textblock
12528 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4900
12529 msgid "As examples:"
12530 msgstr ""
12531
12532 #. type: textblock
12533 #: ../fish/guestfish-actions.pod:3176 ../src/guestfs-actions.pod:4902
12534 msgid ""
12535 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
12536 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
12537 msgstr ""
12538
12539 #. type: textblock
12540 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4905
12541 msgid ""
12542 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
12543 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
12544 msgstr ""
12545
12546 #. type: textblock
12547 #: ../fish/guestfish-actions.pod:3182 ../src/guestfs-actions.pod:4908
12548 msgid "This defaults to C<0> (no missing devices)."
12549 msgstr ""
12550
12551 #. type: textblock
12552 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4910
12553 msgid ""
12554 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
12555 "equal C<nrdevices> + C<spare>."
12556 msgstr ""
12557
12558 #. type: =item
12559 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4913
12560 msgid "C<nrdevices>"
12561 msgstr ""
12562
12563 #. type: textblock
12564 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4915
12565 msgid "The number of active RAID devices."
12566 msgstr ""
12567
12568 #. type: textblock
12569 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4917
12570 msgid ""
12571 "If not set, this defaults to the length of C<devices> plus the number of "
12572 "bits set in C<missingbitmap>."
12573 msgstr ""
12574
12575 #. type: =item
12576 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4920
12577 msgid "C<spare>"
12578 msgstr ""
12579
12580 #. type: textblock
12581 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4922
12582 msgid "The number of spare devices."
12583 msgstr ""
12584
12585 #. type: textblock
12586 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4924
12587 msgid "If not set, this defaults to C<0>."
12588 msgstr ""
12589
12590 #. type: =item
12591 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4926
12592 msgid "C<chunk>"
12593 msgstr ""
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4928
12597 msgid "The chunk size in bytes."
12598 msgstr ""
12599
12600 #. type: =item
12601 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:4978
12602 msgid "C<level>"
12603 msgstr ""
12604
12605 #. type: textblock
12606 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4932
12607 msgid ""
12608 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
12609 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
12610 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
12611 "added in future."
12612 msgstr ""
12613
12614 #. type: textblock
12615 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4937
12616 msgid "If not set, this defaults to C<raid1>."
12617 msgstr ""
12618
12619 #. type: =head2
12620 #: ../fish/guestfish-actions.pod:3217
12621 msgid "mdadm-detail"
12622 msgstr ""
12623
12624 #. type: verbatim
12625 #: ../fish/guestfish-actions.pod:3219
12626 #, no-wrap
12627 msgid ""
12628 " mdadm-detail md\n"
12629 "\n"
12630 msgstr ""
12631
12632 #. type: textblock
12633 #: ../fish/guestfish-actions.pod:3221 ../src/guestfs-actions.pod:4973
12634 msgid ""
12635 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
12636 "are usually present in the returned hash. Other fields may also be present."
12637 msgstr ""
12638
12639 #. type: textblock
12640 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:4980
12641 msgid "The raid level of the MD device."
12642 msgstr ""
12643
12644 #. type: =item
12645 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4982
12646 msgid "C<devices>"
12647 msgstr ""
12648
12649 #. type: textblock
12650 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4984
12651 msgid "The number of underlying devices in the MD device."
12652 msgstr ""
12653
12654 #. type: =item
12655 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4986
12656 msgid "C<metadata>"
12657 msgstr ""
12658
12659 #. type: textblock
12660 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4988
12661 msgid "The metadata version used."
12662 msgstr ""
12663
12664 #. type: =item
12665 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4990
12666 msgid "C<uuid>"
12667 msgstr ""
12668
12669 #. type: textblock
12670 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4992
12671 msgid "The UUID of the MD device."
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4996
12676 msgid "The name of the MD device."
12677 msgstr ""
12678
12679 #. type: =head2
12680 #: ../fish/guestfish-actions.pod:3248
12681 msgid "mkdir"
12682 msgstr ""
12683
12684 #. type: verbatim
12685 #: ../fish/guestfish-actions.pod:3250
12686 #, no-wrap
12687 msgid ""
12688 " mkdir path\n"
12689 "\n"
12690 msgstr ""
12691
12692 #. type: textblock
12693 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5012
12694 msgid "Create a directory named C<path>."
12695 msgstr ""
12696
12697 #. type: =head2
12698 #: ../fish/guestfish-actions.pod:3254
12699 msgid "mkdir-mode"
12700 msgstr ""
12701
12702 #. type: verbatim
12703 #: ../fish/guestfish-actions.pod:3256
12704 #, no-wrap
12705 msgid ""
12706 " mkdir-mode path mode\n"
12707 "\n"
12708 msgstr ""
12709
12710 #. type: textblock
12711 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5025
12712 msgid ""
12713 "This command creates a directory, setting the initial permissions of the "
12714 "directory to C<mode>."
12715 msgstr ""
12716
12717 #. type: textblock
12718 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:5028
12719 msgid ""
12720 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12721 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12722 "other ways."
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3265
12727 msgid "See also L</mkdir>, L</umask>"
12728 msgstr ""
12729
12730 #. type: =head2
12731 #: ../fish/guestfish-actions.pod:3267
12732 msgid "mkdir-p"
12733 msgstr ""
12734
12735 #. type: verbatim
12736 #: ../fish/guestfish-actions.pod:3269
12737 #, no-wrap
12738 msgid ""
12739 " mkdir-p path\n"
12740 "\n"
12741 msgstr ""
12742
12743 #. type: textblock
12744 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5044
12745 msgid ""
12746 "Create a directory named C<path>, creating any parent directories as "
12747 "necessary.  This is like the C<mkdir -p> shell command."
12748 msgstr ""
12749
12750 #. type: =head2
12751 #: ../fish/guestfish-actions.pod:3274
12752 msgid "mkdtemp"
12753 msgstr ""
12754
12755 #. type: verbatim
12756 #: ../fish/guestfish-actions.pod:3276
12757 #, no-wrap
12758 msgid ""
12759 " mkdtemp template\n"
12760 "\n"
12761 msgstr ""
12762
12763 #. type: textblock
12764 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:5057
12765 msgid ""
12766 "This command creates a temporary directory.  The C<template> parameter "
12767 "should be a full pathname for the temporary directory name with the final "
12768 "six characters being \"XXXXXX\"."
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:5062
12773 msgid ""
12774 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12775 "being suitable for Windows filesystems."
12776 msgstr ""
12777
12778 #. type: textblock
12779 #: ../fish/guestfish-actions.pod:3286 ../src/guestfs-actions.pod:5065
12780 msgid "The name of the temporary directory that was created is returned."
12781 msgstr ""
12782
12783 #. type: textblock
12784 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5068
12785 msgid "The temporary directory is created with mode 0700 and is owned by root."
12786 msgstr ""
12787
12788 #. type: textblock
12789 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5071
12790 msgid ""
12791 "The caller is responsible for deleting the temporary directory and its "
12792 "contents after use."
12793 msgstr ""
12794
12795 #. type: textblock
12796 #: ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:5074
12797 msgid "See also: L<mkdtemp(3)>"
12798 msgstr ""
12799
12800 #. type: =head2
12801 #: ../fish/guestfish-actions.pod:3297
12802 msgid "mke2fs-J"
12803 msgstr ""
12804
12805 #. type: verbatim
12806 #: ../fish/guestfish-actions.pod:3299
12807 #, no-wrap
12808 msgid ""
12809 " mke2fs-J fstype blocksize device journal\n"
12810 "\n"
12811 msgstr ""
12812
12813 #. type: textblock
12814 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5090
12815 msgid ""
12816 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12817 "C<journal>.  It is equivalent to the command:"
12818 msgstr ""
12819
12820 #. type: verbatim
12821 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5094
12822 #, no-wrap
12823 msgid ""
12824 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12825 "\n"
12826 msgstr ""
12827
12828 #. type: textblock
12829 #: ../fish/guestfish-actions.pod:3307
12830 msgid "See also L</mke2journal>."
12831 msgstr ""
12832
12833 #. type: =head2
12834 #: ../fish/guestfish-actions.pod:3309
12835 msgid "mke2fs-JL"
12836 msgstr ""
12837
12838 #. type: verbatim
12839 #: ../fish/guestfish-actions.pod:3311
12840 #, no-wrap
12841 msgid ""
12842 " mke2fs-JL fstype blocksize device label\n"
12843 "\n"
12844 msgstr ""
12845
12846 #. type: textblock
12847 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5111
12848 msgid ""
12849 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12850 "the journal labeled C<label>."
12851 msgstr ""
12852
12853 #. type: textblock
12854 #: ../fish/guestfish-actions.pod:3316
12855 msgid "See also L</mke2journal-L>."
12856 msgstr ""
12857
12858 #. type: =head2
12859 #: ../fish/guestfish-actions.pod:3318
12860 msgid "mke2fs-JU"
12861 msgstr ""
12862
12863 #. type: verbatim
12864 #: ../fish/guestfish-actions.pod:3320
12865 #, no-wrap
12866 msgid ""
12867 " mke2fs-JU fstype blocksize device uuid\n"
12868 "\n"
12869 msgstr ""
12870
12871 #. type: textblock
12872 #: ../fish/guestfish-actions.pod:3322 ../src/guestfs-actions.pod:5129
12873 msgid ""
12874 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12875 "the journal with UUID C<uuid>."
12876 msgstr ""
12877
12878 #. type: textblock
12879 #: ../fish/guestfish-actions.pod:3325
12880 msgid "See also L</mke2journal-U>."
12881 msgstr ""
12882
12883 #. type: =head2
12884 #: ../fish/guestfish-actions.pod:3327
12885 msgid "mke2journal"
12886 msgstr ""
12887
12888 #. type: verbatim
12889 #: ../fish/guestfish-actions.pod:3329
12890 #, no-wrap
12891 msgid ""
12892 " mke2journal blocksize device\n"
12893 "\n"
12894 msgstr ""
12895
12896 #. type: textblock
12897 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5145
12898 msgid ""
12899 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12900 "command:"
12901 msgstr ""
12902
12903 #. type: verbatim
12904 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5148
12905 #, no-wrap
12906 msgid ""
12907 " mke2fs -O journal_dev -b blocksize device\n"
12908 "\n"
12909 msgstr ""
12910
12911 #. type: =head2
12912 #: ../fish/guestfish-actions.pod:3336
12913 msgid "mke2journal-L"
12914 msgstr ""
12915
12916 #. type: verbatim
12917 #: ../fish/guestfish-actions.pod:3338
12918 #, no-wrap
12919 msgid ""
12920 " mke2journal-L blocksize label device\n"
12921 "\n"
12922 msgstr ""
12923
12924 #. type: textblock
12925 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5162
12926 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12927 msgstr ""
12928
12929 #. type: =head2
12930 #: ../fish/guestfish-actions.pod:3342
12931 msgid "mke2journal-U"
12932 msgstr ""
12933
12934 #. type: verbatim
12935 #: ../fish/guestfish-actions.pod:3344
12936 #, no-wrap
12937 msgid ""
12938 " mke2journal-U blocksize uuid device\n"
12939 "\n"
12940 msgstr ""
12941
12942 #. type: textblock
12943 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5176
12944 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12945 msgstr ""
12946
12947 #. type: =head2
12948 #: ../fish/guestfish-actions.pod:3348
12949 msgid "mkfifo"
12950 msgstr ""
12951
12952 #. type: verbatim
12953 #: ../fish/guestfish-actions.pod:3350
12954 #, no-wrap
12955 msgid ""
12956 " mkfifo mode path\n"
12957 "\n"
12958 msgstr ""
12959
12960 #. type: textblock
12961 #: ../fish/guestfish-actions.pod:3352
12962 msgid ""
12963 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12964 "is just a convenient wrapper around L</mknod>."
12965 msgstr ""
12966
12967 #. type: =head2
12968 #: ../fish/guestfish-actions.pod:3358
12969 msgid "mkfs"
12970 msgstr ""
12971
12972 #. type: verbatim
12973 #: ../fish/guestfish-actions.pod:3360
12974 #, no-wrap
12975 msgid ""
12976 " mkfs fstype device\n"
12977 "\n"
12978 msgstr ""
12979
12980 #. type: textblock
12981 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5206
12982 msgid ""
12983 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12984 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12985 msgstr ""
12986
12987 #. type: =head2
12988 #: ../fish/guestfish-actions.pod:3366
12989 msgid "mkfs-b"
12990 msgstr ""
12991
12992 #. type: verbatim
12993 #: ../fish/guestfish-actions.pod:3368
12994 #, no-wrap
12995 msgid ""
12996 " mkfs-b fstype blocksize device\n"
12997 "\n"
12998 msgstr ""
12999
13000 #. type: textblock
13001 #: ../fish/guestfish-actions.pod:3370
13002 msgid ""
13003 "This call is similar to L</mkfs>, but it allows you to control the block "
13004 "size of the resulting filesystem.  Supported block sizes depend on the "
13005 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13006 msgstr ""
13007
13008 #. type: textblock
13009 #: ../fish/guestfish-actions.pod:3375 ../fish/guestfish-actions.pod:3402 ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5272
13010 msgid ""
13011 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13012 "cluster size."
13013 msgstr ""
13014
13015 #. type: textblock
13016 #: ../fish/guestfish-actions.pod:3378
13017 msgid ""
13018 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13019 "instead."
13020 msgstr ""
13021
13022 #. type: =head2
13023 #: ../fish/guestfish-actions.pod:3385
13024 msgid "mkfs-opts"
13025 msgstr ""
13026
13027 #. type: verbatim
13028 #: ../fish/guestfish-actions.pod:3387
13029 #, no-wrap
13030 msgid ""
13031 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] "
13032 "[sectorsize:N]\n"
13033 "\n"
13034 msgstr ""
13035
13036 #. type: textblock
13037 #: ../fish/guestfish-actions.pod:3389 ../src/guestfs-actions.pod:5259
13038 msgid ""
13039 "This function creates a filesystem on C<device>.  The filesystem type is "
13040 "C<fstype>, for example C<ext3>."
13041 msgstr ""
13042
13043 #. type: =item
13044 #: ../fish/guestfish-actions.pod:3396 ../src/guestfs-actions.pod:5266
13045 msgid "C<blocksize>"
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5268
13050 msgid ""
13051 "The filesystem block size.  Supported block sizes depend on the filesystem "
13052 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13053 "filesystems."
13054 msgstr ""
13055
13056 #. type: textblock
13057 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5275
13058 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13059 msgstr ""
13060
13061 #. type: =item
13062 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5277
13063 msgid "C<features>"
13064 msgstr ""
13065
13066 #. type: textblock
13067 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5279
13068 msgid "This passes the I<-O> parameter to the external mkfs program."
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3411 ../src/guestfs-actions.pod:5281
13073 msgid ""
13074 "For certain filesystem types, this allows extra filesystem features to be "
13075 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13076 msgstr ""
13077
13078 #. type: textblock
13079 #: ../fish/guestfish-actions.pod:3415 ../src/guestfs-actions.pod:5285
13080 msgid ""
13081 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13082 "type."
13083 msgstr ""
13084
13085 #. type: =item
13086 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5288
13087 msgid "C<inode>"
13088 msgstr ""
13089
13090 #. type: textblock
13091 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5290
13092 msgid ""
13093 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13094 "sets the inode size (only for ext2/3/4 filesystems at present)."
13095 msgstr ""
13096
13097 #. type: =item
13098 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5293
13099 msgid "C<sectorsize>"
13100 msgstr ""
13101
13102 #. type: textblock
13103 #: ../fish/guestfish-actions.pod:3425 ../src/guestfs-actions.pod:5295
13104 msgid ""
13105 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13106 "sets sector size for ufs filesystem."
13107 msgstr ""
13108
13109 #. type: =head2
13110 #: ../fish/guestfish-actions.pod:3432
13111 msgid "mkmountpoint"
13112 msgstr ""
13113
13114 #. type: verbatim
13115 #: ../fish/guestfish-actions.pod:3434
13116 #, no-wrap
13117 msgid ""
13118 " mkmountpoint exemptpath\n"
13119 "\n"
13120 msgstr ""
13121
13122 #. type: textblock
13123 #: ../fish/guestfish-actions.pod:3436
13124 msgid ""
13125 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13126 "to create extra mountpoints before mounting the first filesystem."
13127 msgstr ""
13128
13129 #. type: textblock
13130 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5338
13131 msgid ""
13132 "These calls are I<only> necessary in some very limited circumstances, mainly "
13133 "the case where you want to mount a mix of unrelated and/or read-only "
13134 "filesystems together."
13135 msgstr ""
13136
13137 #. type: textblock
13138 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5342
13139 msgid ""
13140 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13141 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13142 "inside that.  You can unpack this as follows in guestfish:"
13143 msgstr ""
13144
13145 #. type: verbatim
13146 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5347
13147 #, no-wrap
13148 msgid ""
13149 " add-ro Fedora-11-i686-Live.iso\n"
13150 " run\n"
13151 " mkmountpoint /cd\n"
13152 " mkmountpoint /sqsh\n"
13153 " mkmountpoint /ext3fs\n"
13154 " mount /dev/sda /cd\n"
13155 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13156 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13157 "\n"
13158 msgstr ""
13159
13160 #. type: textblock
13161 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5356
13162 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13163 msgstr ""
13164
13165 #. type: textblock
13166 #: ../fish/guestfish-actions.pod:3460
13167 msgid ""
13168 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13169 "unexpected errors if you try to mix these calls.  It is safest to manually "
13170 "unmount filesystems and remove mountpoints after use."
13171 msgstr ""
13172
13173 #. type: textblock
13174 #: ../fish/guestfish-actions.pod:3464
13175 msgid ""
13176 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13177 "for this to work for manual mountpoints, you must ensure that the innermost "
13178 "mountpoints have the longest pathnames, as in the example code above."
13179 msgstr ""
13180
13181 #. type: textblock
13182 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5367
13183 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13184 msgstr ""
13185
13186 #. type: textblock
13187 #: ../fish/guestfish-actions.pod:3471
13188 msgid ""
13189 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13190 "L</umount-all> to be called when the handle is closed which can also trigger "
13191 "these issues."
13192 msgstr ""
13193
13194 #. type: =head2
13195 #: ../fish/guestfish-actions.pod:3475
13196 msgid "mknod"
13197 msgstr ""
13198
13199 #. type: verbatim
13200 #: ../fish/guestfish-actions.pod:3477
13201 #, no-wrap
13202 msgid ""
13203 " mknod mode devmajor devminor path\n"
13204 "\n"
13205 msgstr ""
13206
13207 #. type: textblock
13208 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5386
13209 msgid ""
13210 "This call creates block or character special devices, or named pipes "
13211 "(FIFOs)."
13212 msgstr ""
13213
13214 #. type: textblock
13215 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5389
13216 msgid ""
13217 "The C<mode> parameter should be the mode, using the standard constants.  "
13218 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13219 "used when creating block and character special devices."
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../fish/guestfish-actions.pod:3487
13224 msgid ""
13225 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13226 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13227 "regular file).  These constants are available in the standard Linux header "
13228 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13229 "wrappers around this command which bitwise OR in the appropriate constant "
13230 "for you."
13231 msgstr ""
13232
13233 #. type: =head2
13234 #: ../fish/guestfish-actions.pod:3497
13235 msgid "mknod-b"
13236 msgstr ""
13237
13238 #. type: verbatim
13239 #: ../fish/guestfish-actions.pod:3499
13240 #, no-wrap
13241 msgid ""
13242 " mknod-b mode devmajor devminor path\n"
13243 "\n"
13244 msgstr ""
13245
13246 #. type: textblock
13247 #: ../fish/guestfish-actions.pod:3501
13248 msgid ""
13249 "This call creates a block device node called C<path> with mode C<mode> and "
13250 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13251 "wrapper around L</mknod>."
13252 msgstr ""
13253
13254 #. type: =head2
13255 #: ../fish/guestfish-actions.pod:3507
13256 msgid "mknod-c"
13257 msgstr ""
13258
13259 #. type: verbatim
13260 #: ../fish/guestfish-actions.pod:3509
13261 #, no-wrap
13262 msgid ""
13263 " mknod-c mode devmajor devminor path\n"
13264 "\n"
13265 msgstr ""
13266
13267 #. type: textblock
13268 #: ../fish/guestfish-actions.pod:3511
13269 msgid ""
13270 "This call creates a char device node called C<path> with mode C<mode> and "
13271 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13272 "wrapper around L</mknod>."
13273 msgstr ""
13274
13275 #. type: =head2
13276 #: ../fish/guestfish-actions.pod:3517
13277 msgid "mkswap"
13278 msgstr ""
13279
13280 #. type: verbatim
13281 #: ../fish/guestfish-actions.pod:3519
13282 #, no-wrap
13283 msgid ""
13284 " mkswap device\n"
13285 "\n"
13286 msgstr ""
13287
13288 #. type: textblock
13289 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5452
13290 msgid "Create a swap partition on C<device>."
13291 msgstr ""
13292
13293 #. type: =head2
13294 #: ../fish/guestfish-actions.pod:3523
13295 msgid "mkswap-L"
13296 msgstr ""
13297
13298 #. type: verbatim
13299 #: ../fish/guestfish-actions.pod:3525
13300 #, no-wrap
13301 msgid ""
13302 " mkswap-L label device\n"
13303 "\n"
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5465
13308 msgid "Create a swap partition on C<device> with label C<label>."
13309 msgstr ""
13310
13311 #. type: textblock
13312 #: ../fish/guestfish-actions.pod:3529 ../src/guestfs-actions.pod:5467
13313 msgid ""
13314 "Note that you cannot attach a swap label to a block device "
13315 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13316 "the kernel or swap tools."
13317 msgstr ""
13318
13319 #. type: =head2
13320 #: ../fish/guestfish-actions.pod:3533
13321 msgid "mkswap-U"
13322 msgstr ""
13323
13324 #. type: verbatim
13325 #: ../fish/guestfish-actions.pod:3535
13326 #, no-wrap
13327 msgid ""
13328 " mkswap-U uuid device\n"
13329 "\n"
13330 msgstr ""
13331
13332 #. type: textblock
13333 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5482
13334 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13335 msgstr ""
13336
13337 #. type: =head2
13338 #: ../fish/guestfish-actions.pod:3539
13339 msgid "mkswap-file"
13340 msgstr ""
13341
13342 #. type: verbatim
13343 #: ../fish/guestfish-actions.pod:3541
13344 #, no-wrap
13345 msgid ""
13346 " mkswap-file path\n"
13347 "\n"
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5494
13352 msgid "Create a swap file."
13353 msgstr ""
13354
13355 #. type: textblock
13356 #: ../fish/guestfish-actions.pod:3545
13357 msgid ""
13358 "This command just writes a swap file signature to an existing file.  To "
13359 "create the file itself, use something like L</fallocate>."
13360 msgstr ""
13361
13362 #. type: =head2
13363 #: ../fish/guestfish-actions.pod:3548
13364 msgid "modprobe"
13365 msgstr ""
13366
13367 #. type: verbatim
13368 #: ../fish/guestfish-actions.pod:3550
13369 #, no-wrap
13370 msgid ""
13371 " modprobe modulename\n"
13372 "\n"
13373 msgstr ""
13374
13375 #. type: textblock
13376 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5509
13377 msgid "This loads a kernel module in the appliance."
13378 msgstr ""
13379
13380 #. type: textblock
13381 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
13382 msgid ""
13383 "The kernel module must have been whitelisted when libguestfs was built (see "
13384 "C<appliance/kmod.whitelist.in> in the source)."
13385 msgstr ""
13386
13387 #. type: =head2
13388 #: ../fish/guestfish-actions.pod:3557
13389 msgid "mount"
13390 msgstr ""
13391
13392 #. type: verbatim
13393 #: ../fish/guestfish-actions.pod:3559
13394 #, no-wrap
13395 msgid ""
13396 " mount device mountpoint\n"
13397 "\n"
13398 msgstr ""
13399
13400 #. type: textblock
13401 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5525
13402 msgid ""
13403 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13404 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13405 "those block devices contain partitions, they will have the usual names "
13406 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13407 msgstr ""
13408
13409 #. type: textblock
13410 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5531
13411 msgid ""
13412 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13413 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13414 "mounted on directories which already exist."
13415 msgstr ""
13416
13417 #. type: textblock
13418 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5536
13419 msgid ""
13420 "The mounted filesystem is writable, if we have sufficient permissions on the "
13421 "underlying device."
13422 msgstr ""
13423
13424 #. type: textblock
13425 #: ../fish/guestfish-actions.pod:3575
13426 msgid ""
13427 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13428 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13429 "problems for users.  If your program might need to work with older versions "
13430 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13431 "first parameter if you don't want any options)."
13432 msgstr ""
13433
13434 #. type: =head2
13435 #: ../fish/guestfish-actions.pod:3582
13436 msgid "mount-9p"
13437 msgstr ""
13438
13439 #. type: verbatim
13440 #: ../fish/guestfish-actions.pod:3584
13441 #, no-wrap
13442 msgid ""
13443 " mount-9p mounttag mountpoint [options:..]\n"
13444 "\n"
13445 msgstr ""
13446
13447 #. type: textblock
13448 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5565
13449 msgid ""
13450 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13451 "C<mountpoint>."
13452 msgstr ""
13453
13454 #. type: textblock
13455 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5568
13456 msgid ""
13457 "If required, C<trans=virtio> will be automatically added to the options.  "
13458 "Any other options required can be passed in the optional C<options> "
13459 "parameter."
13460 msgstr ""
13461
13462 #. type: =head2
13463 #: ../fish/guestfish-actions.pod:3595
13464 msgid "mount-loop"
13465 msgstr ""
13466
13467 #. type: verbatim
13468 #: ../fish/guestfish-actions.pod:3597
13469 #, no-wrap
13470 msgid ""
13471 " mount-loop file mountpoint\n"
13472 "\n"
13473 msgstr ""
13474
13475 #. type: textblock
13476 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5607
13477 msgid ""
13478 "This command lets you mount C<file> (a filesystem image in a file) on a "
13479 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13480 "mountpoint>."
13481 msgstr ""
13482
13483 #. type: =head2
13484 #: ../fish/guestfish-actions.pod:3603
13485 msgid "mount-options"
13486 msgstr ""
13487
13488 #. type: verbatim
13489 #: ../fish/guestfish-actions.pod:3605
13490 #, no-wrap
13491 msgid ""
13492 " mount-options options device mountpoint\n"
13493 "\n"
13494 msgstr ""
13495
13496 #. type: textblock
13497 #: ../fish/guestfish-actions.pod:3607
13498 msgid ""
13499 "This is the same as the L</mount> command, but it allows you to set the "
13500 "mount options as for the L<mount(8)> I<-o> flag."
13501 msgstr ""
13502
13503 #. type: textblock
13504 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5627
13505 msgid ""
13506 "If the C<options> parameter is an empty string, then no options are passed "
13507 "(all options default to whatever the filesystem uses)."
13508 msgstr ""
13509
13510 #. type: =head2
13511 #: ../fish/guestfish-actions.pod:3615
13512 msgid "mount-ro"
13513 msgstr ""
13514
13515 #. type: verbatim
13516 #: ../fish/guestfish-actions.pod:3617
13517 #, no-wrap
13518 msgid ""
13519 " mount-ro device mountpoint\n"
13520 "\n"
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:3619
13525 msgid ""
13526 "This is the same as the L</mount> command, but it mounts the filesystem with "
13527 "the read-only (I<-o ro>) flag."
13528 msgstr ""
13529
13530 #. type: =head2
13531 #: ../fish/guestfish-actions.pod:3622
13532 msgid "mount-vfs"
13533 msgstr ""
13534
13535 #. type: verbatim
13536 #: ../fish/guestfish-actions.pod:3624
13537 #, no-wrap
13538 msgid ""
13539 " mount-vfs options vfstype device mountpoint\n"
13540 "\n"
13541 msgstr ""
13542
13543 #. type: textblock
13544 #: ../fish/guestfish-actions.pod:3626
13545 msgid ""
13546 "This is the same as the L</mount> command, but it allows you to set both the "
13547 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13548 msgstr ""
13549
13550 #. type: =head2
13551 #: ../fish/guestfish-actions.pod:3630
13552 msgid "mountpoints"
13553 msgstr ""
13554
13555 #. type: verbatim
13556 #: ../fish/guestfish-actions.pod:3632
13557 #, no-wrap
13558 msgid ""
13559 " mountpoints\n"
13560 "\n"
13561 msgstr ""
13562
13563 #. type: textblock
13564 #: ../fish/guestfish-actions.pod:3634
13565 msgid ""
13566 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13567 "This one returns a hash table (map) of device name to directory where the "
13568 "device is mounted."
13569 msgstr ""
13570
13571 #. type: =head2
13572 #: ../fish/guestfish-actions.pod:3638
13573 msgid "mounts"
13574 msgstr ""
13575
13576 #. type: verbatim
13577 #: ../fish/guestfish-actions.pod:3640
13578 #, no-wrap
13579 msgid ""
13580 " mounts\n"
13581 "\n"
13582 msgstr ""
13583
13584 #. type: textblock
13585 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5688
13586 msgid ""
13587 "This returns the list of currently mounted filesystems.  It returns the list "
13588 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13589 msgstr ""
13590
13591 #. type: textblock
13592 #: ../fish/guestfish-actions.pod:3645 ../src/guestfs-actions.pod:5691
13593 msgid "Some internal mounts are not shown."
13594 msgstr ""
13595
13596 #. type: textblock
13597 #: ../fish/guestfish-actions.pod:3647
13598 msgid "See also: L</mountpoints>"
13599 msgstr ""
13600
13601 #. type: =head2
13602 #: ../fish/guestfish-actions.pod:3649
13603 msgid "mv"
13604 msgstr ""
13605
13606 #. type: verbatim
13607 #: ../fish/guestfish-actions.pod:3651
13608 #, no-wrap
13609 msgid ""
13610 " mv src dest\n"
13611 "\n"
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5708
13616 msgid ""
13617 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13618 "destination filename or destination directory."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../fish/guestfish-actions.pod:3656
13623 msgid "ntfs-3g-probe"
13624 msgstr ""
13625
13626 #. type: verbatim
13627 #: ../fish/guestfish-actions.pod:3658
13628 #, no-wrap
13629 msgid ""
13630 " ntfs-3g-probe true|false device\n"
13631 "\n"
13632 msgstr ""
13633
13634 #. type: textblock
13635 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5722
13636 msgid ""
13637 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13638 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13639 "read-write, and some cannot be mounted at all)."
13640 msgstr ""
13641
13642 #. type: textblock
13643 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5726
13644 msgid ""
13645 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13646 "can be mounted read-write.  Set it to false if you want to test if the "
13647 "volume can be mounted read-only."
13648 msgstr ""
13649
13650 #. type: textblock
13651 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5730
13652 msgid ""
13653 "The return value is an integer which C<0> if the operation would succeed, or "
13654 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13655 msgstr ""
13656
13657 #. type: =head2
13658 #: ../fish/guestfish-actions.pod:3672
13659 msgid "ntfsresize"
13660 msgstr ""
13661
13662 #. type: verbatim
13663 #: ../fish/guestfish-actions.pod:3674
13664 #, no-wrap
13665 msgid ""
13666 " ntfsresize device\n"
13667 "\n"
13668 msgstr ""
13669
13670 #. type: textblock
13671 #: ../fish/guestfish-actions.pod:3676 ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5783
13672 msgid ""
13673 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13674 "size of the underlying device."
13675 msgstr ""
13676
13677 #. type: textblock
13678 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5754
13679 msgid ""
13680 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13681 "consistency check (for safety).  You have to boot into Windows to perform "
13682 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13683 "resize filesystems which have been marked in this way.  So in effect it is "
13684 "not possible to call ntfsresize multiple times on a single filesystem "
13685 "without booting into Windows between each resize."
13686 msgstr ""
13687
13688 #. type: textblock
13689 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5762 ../src/guestfs-actions.pod:5809
13690 msgid "See also L<ntfsresize(8)>."
13691 msgstr ""
13692
13693 #. type: textblock
13694 #: ../fish/guestfish-actions.pod:3689 ../fish/guestfish-actions.pod:3737
13695 msgid ""
13696 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13697 "call instead."
13698 msgstr ""
13699
13700 #. type: =head2
13701 #: ../fish/guestfish-actions.pod:3696
13702 msgid "ntfsresize-opts"
13703 msgstr ""
13704
13705 #. type: verbatim
13706 #: ../fish/guestfish-actions.pod:3698
13707 #, no-wrap
13708 msgid ""
13709 " ntfsresize-opts device [size:N] [force:true|false]\n"
13710 "\n"
13711 msgstr ""
13712
13713 #. type: textblock
13714 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5792
13715 msgid ""
13716 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13717 "resized to fit the container (eg. partition)."
13718 msgstr ""
13719
13720 #. type: =item
13721 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7766
13722 msgid "C<force>"
13723 msgstr ""
13724
13725 #. type: textblock
13726 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5797
13727 msgid ""
13728 "If this option is true, then force the resize of the filesystem even if the "
13729 "filesystem is marked as requiring a consistency check."
13730 msgstr ""
13731
13732 #. type: textblock
13733 #: ../fish/guestfish-actions.pod:3717
13734 msgid ""
13735 "After the resize operation, the filesystem is always marked as requiring a "
13736 "consistency check (for safety).  You have to boot into Windows to perform "
13737 "this check and clear this condition.  If you I<don't> set the C<force> "
13738 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13739 "a single filesystem without booting into Windows between each resize."
13740 msgstr ""
13741
13742 #. type: =head2
13743 #: ../fish/guestfish-actions.pod:3730
13744 msgid "ntfsresize-size"
13745 msgstr ""
13746
13747 #. type: verbatim
13748 #: ../fish/guestfish-actions.pod:3732
13749 #, no-wrap
13750 msgid ""
13751 " ntfsresize-size device size\n"
13752 "\n"
13753 msgstr ""
13754
13755 #. type: textblock
13756 #: ../fish/guestfish-actions.pod:3734
13757 msgid ""
13758 "This command is the same as L</ntfsresize> except that it allows you to "
13759 "specify the new size (in bytes) explicitly."
13760 msgstr ""
13761
13762 #. type: =head2
13763 #: ../fish/guestfish-actions.pod:3744
13764 msgid "part-add"
13765 msgstr ""
13766
13767 #. type: verbatim
13768 #: ../fish/guestfish-actions.pod:3746
13769 #, no-wrap
13770 msgid ""
13771 " part-add device prlogex startsect endsect\n"
13772 "\n"
13773 msgstr ""
13774
13775 #. type: textblock
13776 #: ../fish/guestfish-actions.pod:3748
13777 msgid ""
13778 "This command adds a partition to C<device>.  If there is no partition table "
13779 "on the device, call L</part-init> first."
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5870
13784 msgid ""
13785 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13786 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13787 "C<logical>) and C<e> (or C<extended>) partition types."
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5875
13792 msgid ""
13793 "C<startsect> and C<endsect> are the start and end of the partition in "
13794 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13795 "from the end of the disk (C<-1> is the last sector)."
13796 msgstr ""
13797
13798 #. type: textblock
13799 #: ../fish/guestfish-actions.pod:3760
13800 msgid ""
13801 "Creating a partition which covers the whole disk is not so easy.  Use "
13802 "L</part-disk> to do that."
13803 msgstr ""
13804
13805 #. type: =head2
13806 #: ../fish/guestfish-actions.pod:3763
13807 msgid "part-del"
13808 msgstr ""
13809
13810 #. type: verbatim
13811 #: ../fish/guestfish-actions.pod:3765
13812 #, no-wrap
13813 msgid ""
13814 " part-del device partnum\n"
13815 "\n"
13816 msgstr ""
13817
13818 #. type: textblock
13819 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5893
13820 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5895
13825 msgid ""
13826 "Note that in the case of MBR partitioning, deleting an extended partition "
13827 "also deletes any logical partitions it contains."
13828 msgstr ""
13829
13830 #. type: =head2
13831 #: ../fish/guestfish-actions.pod:3773
13832 msgid "part-disk"
13833 msgstr ""
13834
13835 #. type: verbatim
13836 #: ../fish/guestfish-actions.pod:3775
13837 #, no-wrap
13838 msgid ""
13839 " part-disk device parttype\n"
13840 "\n"
13841 msgstr ""
13842
13843 #. type: textblock
13844 #: ../fish/guestfish-actions.pod:3777
13845 msgid ""
13846 "This command is simply a combination of L</part-init> followed by "
13847 "L</part-add> to create a single primary partition covering the whole disk."
13848 msgstr ""
13849
13850 #. type: textblock
13851 #: ../fish/guestfish-actions.pod:3781
13852 msgid ""
13853 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13854 "possible values are described in L</part-init>."
13855 msgstr ""
13856
13857 #. type: =head2
13858 #: ../fish/guestfish-actions.pod:3784
13859 msgid "part-get-bootable"
13860 msgstr ""
13861
13862 #. type: verbatim
13863 #: ../fish/guestfish-actions.pod:3786
13864 #, no-wrap
13865 msgid ""
13866 " part-get-bootable device partnum\n"
13867 "\n"
13868 msgstr ""
13869
13870 #. type: textblock
13871 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5928
13872 msgid ""
13873 "This command returns true if the partition C<partnum> on C<device> has the "
13874 "bootable flag set."
13875 msgstr ""
13876
13877 #. type: textblock
13878 #: ../fish/guestfish-actions.pod:3791
13879 msgid "See also L</part-set-bootable>."
13880 msgstr ""
13881
13882 #. type: =head2
13883 #: ../fish/guestfish-actions.pod:3793
13884 msgid "part-get-mbr-id"
13885 msgstr ""
13886
13887 #. type: verbatim
13888 #: ../fish/guestfish-actions.pod:3795
13889 #, no-wrap
13890 msgid ""
13891 " part-get-mbr-id device partnum\n"
13892 "\n"
13893 msgstr ""
13894
13895 #. type: textblock
13896 #: ../fish/guestfish-actions.pod:3797 ../src/guestfs-actions.pod:5944
13897 msgid ""
13898 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13899 "partition C<partnum>."
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:3800 ../fish/guestfish-actions.pod:3944
13904 msgid ""
13905 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13906 "undefined results for other partition table types (see "
13907 "L</part-get-parttype>)."
13908 msgstr ""
13909
13910 #. type: =head2
13911 #: ../fish/guestfish-actions.pod:3804
13912 msgid "part-get-parttype"
13913 msgstr ""
13914
13915 #. type: verbatim
13916 #: ../fish/guestfish-actions.pod:3806
13917 #, no-wrap
13918 msgid ""
13919 " part-get-parttype device\n"
13920 "\n"
13921 msgstr ""
13922
13923 #. type: textblock
13924 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
13925 msgid ""
13926 "This command examines the partition table on C<device> and returns the "
13927 "partition table type (format) being used."
13928 msgstr ""
13929
13930 #. type: textblock
13931 #: ../fish/guestfish-actions.pod:3811
13932 msgid ""
13933 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13934 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13935 "possible, although unusual.  See L</part-init> for a full list."
13936 msgstr ""
13937
13938 #. type: =head2
13939 #: ../fish/guestfish-actions.pod:3816
13940 msgid "part-init"
13941 msgstr ""
13942
13943 #. type: verbatim
13944 #: ../fish/guestfish-actions.pod:3818
13945 #, no-wrap
13946 msgid ""
13947 " part-init device parttype\n"
13948 "\n"
13949 msgstr ""
13950
13951 #. type: textblock
13952 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5981
13953 msgid ""
13954 "This creates an empty partition table on C<device> of one of the partition "
13955 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13956 "(for large disks)."
13957 msgstr ""
13958
13959 #. type: textblock
13960 #: ../fish/guestfish-actions.pod:3824
13961 msgid ""
13962 "Initially there are no partitions.  Following this, you should call "
13963 "L</part-add> for each partition required."
13964 msgstr ""
13965
13966 #. type: textblock
13967 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5988
13968 msgid "Possible values for C<parttype> are:"
13969 msgstr ""
13970
13971 #. type: =item
13972 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5992
13973 msgid "B<efi>"
13974 msgstr ""
13975
13976 #. type: =item
13977 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5994
13978 msgid "B<gpt>"
13979 msgstr ""
13980
13981 #. type: textblock
13982 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5996
13983 msgid "Intel EFI / GPT partition table."
13984 msgstr ""
13985
13986 #. type: textblock
13987 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5998
13988 msgid ""
13989 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13990 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13991 "the C<mbr> format."
13992 msgstr ""
13993
13994 #. type: =item
13995 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:6002
13996 msgid "B<mbr>"
13997 msgstr ""
13998
13999 #. type: =item
14000 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:6004
14001 msgid "B<msdos>"
14002 msgstr ""
14003
14004 #. type: textblock
14005 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:6006
14006 msgid ""
14007 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14008 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14009 "TB.  For large disks we recommend using C<gpt>."
14010 msgstr ""
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6013
14014 msgid "Other partition table types that may work but are not supported include:"
14015 msgstr ""
14016
14017 #. type: =item
14018 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:6018
14019 msgid "B<aix>"
14020 msgstr ""
14021
14022 #. type: textblock
14023 #: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:6020
14024 msgid "AIX disk labels."
14025 msgstr ""
14026
14027 #. type: =item
14028 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:6022
14029 msgid "B<amiga>"
14030 msgstr ""
14031
14032 #. type: =item
14033 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6024
14034 msgid "B<rdb>"
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6026
14039 msgid "Amiga \"Rigid Disk Block\" format."
14040 msgstr ""
14041
14042 #. type: =item
14043 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6028
14044 msgid "B<bsd>"
14045 msgstr ""
14046
14047 #. type: textblock
14048 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6030
14049 msgid "BSD disk labels."
14050 msgstr ""
14051
14052 #. type: =item
14053 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:6032
14054 msgid "B<dasd>"
14055 msgstr ""
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6034
14059 msgid "DASD, used on IBM mainframes."
14060 msgstr ""
14061
14062 #. type: =item
14063 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6036
14064 msgid "B<dvh>"
14065 msgstr ""
14066
14067 #. type: textblock
14068 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6038
14069 msgid "MIPS/SGI volumes."
14070 msgstr ""
14071
14072 #. type: =item
14073 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6040
14074 msgid "B<mac>"
14075 msgstr ""
14076
14077 #. type: textblock
14078 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:6042
14079 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14080 msgstr ""
14081
14082 #. type: =item
14083 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6044
14084 msgid "B<pc98>"
14085 msgstr ""
14086
14087 #. type: textblock
14088 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6046
14089 msgid "NEC PC-98 format, common in Japan apparently."
14090 msgstr ""
14091
14092 #. type: =item
14093 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6048
14094 msgid "B<sun>"
14095 msgstr ""
14096
14097 #. type: textblock
14098 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:6050
14099 msgid "Sun disk labels."
14100 msgstr ""
14101
14102 #. type: =head2
14103 #: ../fish/guestfish-actions.pod:3893
14104 msgid "part-list"
14105 msgstr ""
14106
14107 #. type: verbatim
14108 #: ../fish/guestfish-actions.pod:3895
14109 #, no-wrap
14110 msgid ""
14111 " part-list device\n"
14112 "\n"
14113 msgstr ""
14114
14115 #. type: textblock
14116 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:6064
14117 msgid ""
14118 "This command parses the partition table on C<device> and returns the list of "
14119 "partitions found."
14120 msgstr ""
14121
14122 #. type: textblock
14123 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14124 msgid "The fields in the returned structure are:"
14125 msgstr ""
14126
14127 #. type: =item
14128 #: ../fish/guestfish-actions.pod:3904 ../src/guestfs-actions.pod:6071
14129 msgid "B<part_num>"
14130 msgstr ""
14131
14132 #. type: textblock
14133 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6073
14134 msgid "Partition number, counting from 1."
14135 msgstr ""
14136
14137 #. type: =item
14138 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6075
14139 msgid "B<part_start>"
14140 msgstr ""
14141
14142 #. type: textblock
14143 #: ../fish/guestfish-actions.pod:3910
14144 msgid ""
14145 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14146 "the device's sector size, see L</blockdev-getss>."
14147 msgstr ""
14148
14149 #. type: =item
14150 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6080
14151 msgid "B<part_end>"
14152 msgstr ""
14153
14154 #. type: textblock
14155 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6082
14156 msgid "End of the partition in bytes."
14157 msgstr ""
14158
14159 #. type: =item
14160 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6084
14161 msgid "B<part_size>"
14162 msgstr ""
14163
14164 #. type: textblock
14165 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6086
14166 msgid "Size of the partition in bytes."
14167 msgstr ""
14168
14169 #. type: =head2
14170 #: ../fish/guestfish-actions.pod:3923
14171 msgid "part-set-bootable"
14172 msgstr ""
14173
14174 #. type: verbatim
14175 #: ../fish/guestfish-actions.pod:3925
14176 #, no-wrap
14177 msgid ""
14178 " part-set-bootable device partnum true|false\n"
14179 "\n"
14180 msgstr ""
14181
14182 #. type: textblock
14183 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6104
14184 msgid ""
14185 "This sets the bootable flag on partition numbered C<partnum> on device "
14186 "C<device>.  Note that partitions are numbered from 1."
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6107
14191 msgid ""
14192 "The bootable flag is used by some operating systems (notably Windows) to "
14193 "determine which partition to boot from.  It is by no means universally "
14194 "recognized."
14195 msgstr ""
14196
14197 #. type: =head2
14198 #: ../fish/guestfish-actions.pod:3934
14199 msgid "part-set-mbr-id"
14200 msgstr ""
14201
14202 #. type: verbatim
14203 #: ../fish/guestfish-actions.pod:3936
14204 #, no-wrap
14205 msgid ""
14206 " part-set-mbr-id device partnum idbyte\n"
14207 "\n"
14208 msgstr ""
14209
14210 #. type: textblock
14211 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6123
14212 msgid ""
14213 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14214 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14215 "documentation are in fact hexadecimal numbers, but usually documented "
14216 "without any leading \"0x\" which might be confusing."
14217 msgstr ""
14218
14219 #. type: =head2
14220 #: ../fish/guestfish-actions.pod:3948
14221 msgid "part-set-name"
14222 msgstr ""
14223
14224 #. type: verbatim
14225 #: ../fish/guestfish-actions.pod:3950
14226 #, no-wrap
14227 msgid ""
14228 " part-set-name device partnum name\n"
14229 "\n"
14230 msgstr ""
14231
14232 #. type: textblock
14233 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6145
14234 msgid ""
14235 "This sets the partition name on partition numbered C<partnum> on device "
14236 "C<device>.  Note that partitions are numbered from 1."
14237 msgstr ""
14238
14239 #. type: textblock
14240 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6148
14241 msgid ""
14242 "The partition name can only be set on certain types of partition table.  "
14243 "This works on C<gpt> but not on C<mbr> partitions."
14244 msgstr ""
14245
14246 #. type: =head2
14247 #: ../fish/guestfish-actions.pod:3958
14248 msgid "part-to-dev"
14249 msgstr ""
14250
14251 #. type: verbatim
14252 #: ../fish/guestfish-actions.pod:3960
14253 #, no-wrap
14254 msgid ""
14255 " part-to-dev partition\n"
14256 "\n"
14257 msgstr ""
14258
14259 #. type: textblock
14260 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6161
14261 msgid ""
14262 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14263 "partition number, returning the device name (eg. \"/dev/sdb\")."
14264 msgstr ""
14265
14266 #. type: textblock
14267 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:3978
14268 msgid ""
14269 "The named partition must exist, for example as a string returned from "
14270 "L</list-partitions>."
14271 msgstr ""
14272
14273 #. type: textblock
14274 #: ../fish/guestfish-actions.pod:3969
14275 msgid "See also L</part-to-partnum>."
14276 msgstr ""
14277
14278 #. type: =head2
14279 #: ../fish/guestfish-actions.pod:3971
14280 msgid "part-to-partnum"
14281 msgstr ""
14282
14283 #. type: verbatim
14284 #: ../fish/guestfish-actions.pod:3973
14285 #, no-wrap
14286 msgid ""
14287 " part-to-partnum partition\n"
14288 "\n"
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6181
14293 msgid ""
14294 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14295 "partition number (eg. C<1>)."
14296 msgstr ""
14297
14298 #. type: textblock
14299 #: ../fish/guestfish-actions.pod:3981
14300 msgid "See also L</part-to-dev>."
14301 msgstr ""
14302
14303 #. type: =head2
14304 #: ../fish/guestfish-actions.pod:3983
14305 msgid "ping-daemon"
14306 msgstr ""
14307
14308 #. type: verbatim
14309 #: ../fish/guestfish-actions.pod:3985
14310 #, no-wrap
14311 msgid ""
14312 " ping-daemon\n"
14313 "\n"
14314 msgstr ""
14315
14316 #. type: textblock
14317 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6198
14318 msgid ""
14319 "This is a test probe into the guestfs daemon running inside the qemu "
14320 "subprocess.  Calling this function checks that the daemon responds to the "
14321 "ping message, without affecting the daemon or attached block device(s) in "
14322 "any other way."
14323 msgstr ""
14324
14325 #. type: =head2
14326 #: ../fish/guestfish-actions.pod:3992
14327 msgid "pread"
14328 msgstr ""
14329
14330 #. type: verbatim
14331 #: ../fish/guestfish-actions.pod:3994
14332 #, no-wrap
14333 msgid ""
14334 " pread path count offset\n"
14335 "\n"
14336 msgstr ""
14337
14338 #. type: textblock
14339 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6216
14340 msgid ""
14341 "This command lets you read part of a file.  It reads C<count> bytes of the "
14342 "file, starting at C<offset>, from file C<path>."
14343 msgstr ""
14344
14345 #. type: textblock
14346 #: ../fish/guestfish-actions.pod:3999 ../fish/guestfish-actions.pod:4014 ../src/guestfs-actions.pod:6219 ../src/guestfs-actions.pod:6245
14347 msgid ""
14348 "This may read fewer bytes than requested.  For further details see the "
14349 "L<pread(2)> system call."
14350 msgstr ""
14351
14352 #. type: textblock
14353 #: ../fish/guestfish-actions.pod:4002
14354 msgid "See also L</pwrite>, L</pread-device>."
14355 msgstr ""
14356
14357 #. type: =head2
14358 #: ../fish/guestfish-actions.pod:4007
14359 msgid "pread-device"
14360 msgstr ""
14361
14362 #. type: verbatim
14363 #: ../fish/guestfish-actions.pod:4009
14364 #, no-wrap
14365 msgid ""
14366 " pread-device device count offset\n"
14367 "\n"
14368 msgstr ""
14369
14370 #. type: textblock
14371 #: ../fish/guestfish-actions.pod:4011 ../src/guestfs-actions.pod:6242
14372 msgid ""
14373 "This command lets you read part of a file.  It reads C<count> bytes of "
14374 "C<device>, starting at C<offset>."
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../fish/guestfish-actions.pod:4017
14379 msgid "See also L</pread>."
14380 msgstr ""
14381
14382 #. type: =head2
14383 #: ../fish/guestfish-actions.pod:4022
14384 msgid "pvcreate"
14385 msgstr ""
14386
14387 #. type: verbatim
14388 #: ../fish/guestfish-actions.pod:4024
14389 #, no-wrap
14390 msgid ""
14391 " pvcreate device\n"
14392 "\n"
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../fish/guestfish-actions.pod:4026 ../src/guestfs-actions.pod:6265
14397 msgid ""
14398 "This creates an LVM physical volume on the named C<device>, where C<device> "
14399 "should usually be a partition name such as C</dev/sda1>."
14400 msgstr ""
14401
14402 #. type: =head2
14403 #: ../fish/guestfish-actions.pod:4030
14404 msgid "pvremove"
14405 msgstr ""
14406
14407 #. type: verbatim
14408 #: ../fish/guestfish-actions.pod:4032
14409 #, no-wrap
14410 msgid ""
14411 " pvremove device\n"
14412 "\n"
14413 msgstr ""
14414
14415 #. type: textblock
14416 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6279
14417 msgid ""
14418 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14419 "it."
14420 msgstr ""
14421
14422 #. type: textblock
14423 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
14424 msgid ""
14425 "The implementation uses the C<pvremove> command which refuses to wipe "
14426 "physical volumes that contain any volume groups, so you have to remove those "
14427 "first."
14428 msgstr ""
14429
14430 #. type: =head2
14431 #: ../fish/guestfish-actions.pod:4041
14432 msgid "pvresize"
14433 msgstr ""
14434
14435 #. type: verbatim
14436 #: ../fish/guestfish-actions.pod:4043
14437 #, no-wrap
14438 msgid ""
14439 " pvresize device\n"
14440 "\n"
14441 msgstr ""
14442
14443 #. type: textblock
14444 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
14445 msgid ""
14446 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14447 "the new size of the underlying device."
14448 msgstr ""
14449
14450 #. type: =head2
14451 #: ../fish/guestfish-actions.pod:4048
14452 msgid "pvresize-size"
14453 msgstr ""
14454
14455 #. type: verbatim
14456 #: ../fish/guestfish-actions.pod:4050
14457 #, no-wrap
14458 msgid ""
14459 " pvresize-size device size\n"
14460 "\n"
14461 msgstr ""
14462
14463 #. type: textblock
14464 #: ../fish/guestfish-actions.pod:4052
14465 msgid ""
14466 "This command is the same as L</pvresize> except that it allows you to "
14467 "specify the new size (in bytes) explicitly."
14468 msgstr ""
14469
14470 #. type: =head2
14471 #: ../fish/guestfish-actions.pod:4055
14472 msgid "pvs"
14473 msgstr ""
14474
14475 #. type: verbatim
14476 #: ../fish/guestfish-actions.pod:4057
14477 #, no-wrap
14478 msgid ""
14479 " pvs\n"
14480 "\n"
14481 msgstr ""
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:4059 ../src/guestfs-actions.pod:6322
14485 msgid ""
14486 "List all the physical volumes detected.  This is the equivalent of the "
14487 "L<pvs(8)> command."
14488 msgstr ""
14489
14490 #. type: textblock
14491 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6325
14492 msgid ""
14493 "This returns a list of just the device names that contain PVs "
14494 "(eg. C</dev/sda2>)."
14495 msgstr ""
14496
14497 #. type: textblock
14498 #: ../fish/guestfish-actions.pod:4065
14499 msgid "See also L</pvs-full>."
14500 msgstr ""
14501
14502 #. type: =head2
14503 #: ../fish/guestfish-actions.pod:4067
14504 msgid "pvs-full"
14505 msgstr ""
14506
14507 #. type: verbatim
14508 #: ../fish/guestfish-actions.pod:4069
14509 #, no-wrap
14510 msgid ""
14511 " pvs-full\n"
14512 "\n"
14513 msgstr ""
14514
14515 #. type: textblock
14516 #: ../fish/guestfish-actions.pod:4071 ../src/guestfs-actions.pod:6341
14517 msgid ""
14518 "List all the physical volumes detected.  This is the equivalent of the "
14519 "L<pvs(8)> command.  The \"full\" version includes all fields."
14520 msgstr ""
14521
14522 #. type: =head2
14523 #: ../fish/guestfish-actions.pod:4074
14524 msgid "pvuuid"
14525 msgstr ""
14526
14527 #. type: verbatim
14528 #: ../fish/guestfish-actions.pod:4076
14529 #, no-wrap
14530 msgid ""
14531 " pvuuid device\n"
14532 "\n"
14533 msgstr ""
14534
14535 #. type: textblock
14536 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6356
14537 msgid "This command returns the UUID of the LVM PV C<device>."
14538 msgstr ""
14539
14540 #. type: =head2
14541 #: ../fish/guestfish-actions.pod:4080
14542 msgid "pwrite"
14543 msgstr ""
14544
14545 #. type: verbatim
14546 #: ../fish/guestfish-actions.pod:4082
14547 #, no-wrap
14548 msgid ""
14549 " pwrite path content offset\n"
14550 "\n"
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6372
14555 msgid ""
14556 "This command writes to part of a file.  It writes the data buffer C<content> "
14557 "to the file C<path> starting at offset C<offset>."
14558 msgstr ""
14559
14560 #. type: textblock
14561 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6375
14562 msgid ""
14563 "This command implements the L<pwrite(2)> system call, and like that system "
14564 "call it may not write the full data requested.  The return value is the "
14565 "number of bytes that were actually written to the file.  This could even be "
14566 "0, although short writes are unlikely for regular files in ordinary "
14567 "circumstances."
14568 msgstr ""
14569
14570 #. type: textblock
14571 #: ../fish/guestfish-actions.pod:4093
14572 msgid "See also L</pread>, L</pwrite-device>."
14573 msgstr ""
14574
14575 #. type: =head2
14576 #: ../fish/guestfish-actions.pod:4098
14577 msgid "pwrite-device"
14578 msgstr ""
14579
14580 #. type: verbatim
14581 #: ../fish/guestfish-actions.pod:4100
14582 #, no-wrap
14583 msgid ""
14584 " pwrite-device device content offset\n"
14585 "\n"
14586 msgstr ""
14587
14588 #. type: textblock
14589 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6399
14590 msgid ""
14591 "This command writes to part of a device.  It writes the data buffer "
14592 "C<content> to C<device> starting at offset C<offset>."
14593 msgstr ""
14594
14595 #. type: textblock
14596 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6402
14597 msgid ""
14598 "This command implements the L<pwrite(2)> system call, and like that system "
14599 "call it may not write the full data requested (although short writes to disk "
14600 "devices and partitions are probably impossible with standard Linux kernels)."
14601 msgstr ""
14602
14603 #. type: textblock
14604 #: ../fish/guestfish-actions.pod:4110
14605 msgid "See also L</pwrite>."
14606 msgstr ""
14607
14608 #. type: =head2
14609 #: ../fish/guestfish-actions.pod:4115
14610 msgid "read-file"
14611 msgstr ""
14612
14613 #. type: verbatim
14614 #: ../fish/guestfish-actions.pod:4117
14615 #, no-wrap
14616 msgid ""
14617 " read-file path\n"
14618 "\n"
14619 msgstr ""
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6423
14623 msgid "This calls returns the contents of the file C<path> as a buffer."
14624 msgstr ""
14625
14626 #. type: textblock
14627 #: ../fish/guestfish-actions.pod:4122
14628 msgid ""
14629 "Unlike L</cat>, this function can correctly handle files that contain "
14630 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14631 "is limited in the total size of file that can be handled."
14632 msgstr ""
14633
14634 #. type: =head2
14635 #: ../fish/guestfish-actions.pod:4130
14636 msgid "read-lines"
14637 msgstr ""
14638
14639 #. type: verbatim
14640 #: ../fish/guestfish-actions.pod:4132
14641 #, no-wrap
14642 msgid ""
14643 " read-lines path\n"
14644 "\n"
14645 msgstr ""
14646
14647 #. type: textblock
14648 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6448
14649 msgid ""
14650 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14651 "C<CRLF> character sequences are I<not> returned."
14652 msgstr ""
14653
14654 #. type: textblock
14655 #: ../fish/guestfish-actions.pod:4139
14656 msgid ""
14657 "Note that this function cannot correctly handle binary files (specifically, "
14658 "files containing C<\\0> character which is treated as end of line).  For "
14659 "those you need to use the L</read-file> function which has a more complex "
14660 "interface."
14661 msgstr ""
14662
14663 #. type: =head2
14664 #: ../fish/guestfish-actions.pod:4144
14665 msgid "readdir"
14666 msgstr ""
14667
14668 #. type: verbatim
14669 #: ../fish/guestfish-actions.pod:4146
14670 #, no-wrap
14671 msgid ""
14672 " readdir dir\n"
14673 "\n"
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6468
14678 msgid "This returns the list of directory entries in directory C<dir>."
14679 msgstr ""
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:4150 ../src/guestfs-actions.pod:6470
14683 msgid ""
14684 "All entries in the directory are returned, including C<.> and C<..>.  The "
14685 "entries are I<not> sorted, but returned in the same order as the underlying "
14686 "filesystem."
14687 msgstr ""
14688
14689 #. type: textblock
14690 #: ../fish/guestfish-actions.pod:4154 ../src/guestfs-actions.pod:6474
14691 msgid ""
14692 "Also this call returns basic file type information about each file.  The "
14693 "C<ftyp> field will contain one of the following characters:"
14694 msgstr ""
14695
14696 #. type: =item
14697 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6479
14698 msgid "'b'"
14699 msgstr ""
14700
14701 #. type: textblock
14702 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6481
14703 msgid "Block special"
14704 msgstr ""
14705
14706 #. type: =item
14707 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6483
14708 msgid "'c'"
14709 msgstr ""
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6485
14713 msgid "Char special"
14714 msgstr ""
14715
14716 #. type: =item
14717 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6487
14718 msgid "'d'"
14719 msgstr ""
14720
14721 #. type: textblock
14722 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6489
14723 msgid "Directory"
14724 msgstr ""
14725
14726 #. type: =item
14727 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6491
14728 msgid "'f'"
14729 msgstr ""
14730
14731 #. type: textblock
14732 #: ../fish/guestfish-actions.pod:4173 ../src/guestfs-actions.pod:6493
14733 msgid "FIFO (named pipe)"
14734 msgstr ""
14735
14736 #. type: =item
14737 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6495
14738 msgid "'l'"
14739 msgstr ""
14740
14741 #. type: textblock
14742 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6497
14743 msgid "Symbolic link"
14744 msgstr ""
14745
14746 #. type: =item
14747 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6499
14748 msgid "'r'"
14749 msgstr ""
14750
14751 #. type: textblock
14752 #: ../fish/guestfish-actions.pod:4181 ../src/guestfs-actions.pod:6501
14753 msgid "Regular file"
14754 msgstr ""
14755
14756 #. type: =item
14757 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6503
14758 msgid "'s'"
14759 msgstr ""
14760
14761 #. type: textblock
14762 #: ../fish/guestfish-actions.pod:4185 ../src/guestfs-actions.pod:6505
14763 msgid "Socket"
14764 msgstr ""
14765
14766 #. type: =item
14767 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6507
14768 msgid "'u'"
14769 msgstr ""
14770
14771 #. type: textblock
14772 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6509
14773 msgid "Unknown file type"
14774 msgstr ""
14775
14776 #. type: =item
14777 #: ../fish/guestfish-actions.pod:4191 ../src/guestfs-actions.pod:6511
14778 msgid "'?'"
14779 msgstr ""
14780
14781 #. type: textblock
14782 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6513
14783 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14784 msgstr ""
14785
14786 #. type: textblock
14787 #: ../fish/guestfish-actions.pod:4198
14788 msgid ""
14789 "This function is primarily intended for use by programs.  To get a simple "
14790 "list of names, use L</ls>.  To get a printable directory for human "
14791 "consumption, use L</ll>."
14792 msgstr ""
14793
14794 #. type: =head2
14795 #: ../fish/guestfish-actions.pod:4202
14796 msgid "readlink"
14797 msgstr ""
14798
14799 #. type: verbatim
14800 #: ../fish/guestfish-actions.pod:4204
14801 #, no-wrap
14802 msgid ""
14803 " readlink path\n"
14804 "\n"
14805 msgstr ""
14806
14807 #. type: textblock
14808 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6534
14809 msgid "This command reads the target of a symbolic link."
14810 msgstr ""
14811
14812 #. type: =head2
14813 #: ../fish/guestfish-actions.pod:4208
14814 msgid "readlinklist"
14815 msgstr ""
14816
14817 #. type: verbatim
14818 #: ../fish/guestfish-actions.pod:4210
14819 #, no-wrap
14820 msgid ""
14821 " readlinklist path 'names ...'\n"
14822 "\n"
14823 msgstr ""
14824
14825 #. type: textblock
14826 #: ../fish/guestfish-actions.pod:4212 ../src/guestfs-actions.pod:6548
14827 msgid ""
14828 "This call allows you to do a C<readlink> operation on multiple files, where "
14829 "all files are in the directory C<path>.  C<names> is the list of files from "
14830 "this directory."
14831 msgstr ""
14832
14833 #. type: textblock
14834 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6552
14835 msgid ""
14836 "On return you get a list of strings, with a one-to-one correspondence to the "
14837 "C<names> list.  Each string is the value of the symbolic link."
14838 msgstr ""
14839
14840 #. type: textblock
14841 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6556
14842 msgid ""
14843 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14844 "result string is the empty string C<\"\">.  However the whole operation is "
14845 "completed even if there were C<readlink(2)> errors, and so you can call this "
14846 "function with names where you don't know if they are symbolic links already "
14847 "(albeit slightly less efficient)."
14848 msgstr ""
14849
14850 #. type: textblock
14851 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6563
14852 msgid ""
14853 "This call is intended for programs that want to efficiently list a directory "
14854 "contents without making many round-trips.  Very long directory listings "
14855 "might cause the protocol message size to be exceeded, causing this call to "
14856 "fail.  The caller must split up such requests into smaller groups of names."
14857 msgstr ""
14858
14859 #. type: =head2
14860 #: ../fish/guestfish-actions.pod:4234
14861 msgid "realpath"
14862 msgstr ""
14863
14864 #. type: verbatim
14865 #: ../fish/guestfish-actions.pod:4236
14866 #, no-wrap
14867 msgid ""
14868 " realpath path\n"
14869 "\n"
14870 msgstr ""
14871
14872 #. type: textblock
14873 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6582
14874 msgid ""
14875 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14876 "has no C<.>, C<..> or symbolic link path elements."
14877 msgstr ""
14878
14879 #. type: =head2
14880 #: ../fish/guestfish-actions.pod:4241
14881 msgid "removexattr"
14882 msgstr ""
14883
14884 #. type: verbatim
14885 #: ../fish/guestfish-actions.pod:4243
14886 #, no-wrap
14887 msgid ""
14888 " removexattr xattr path\n"
14889 "\n"
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-actions.pod:4245 ../src/guestfs-actions.pod:6597
14894 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
14895 msgstr ""
14896
14897 #. type: textblock
14898 #: ../fish/guestfish-actions.pod:4248
14899 msgid "See also: L</lremovexattr>, L<attr(5)>."
14900 msgstr ""
14901
14902 #. type: =head2
14903 #: ../fish/guestfish-actions.pod:4250
14904 msgid "resize2fs"
14905 msgstr ""
14906
14907 #. type: verbatim
14908 #: ../fish/guestfish-actions.pod:4252
14909 #, no-wrap
14910 msgid ""
14911 " resize2fs device\n"
14912 "\n"
14913 msgstr ""
14914
14915 #. type: textblock
14916 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6612
14917 msgid ""
14918 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14919 "underlying device."
14920 msgstr ""
14921
14922 #. type: textblock
14923 #: ../fish/guestfish-actions.pod:4257
14924 msgid ""
14925 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14926 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14927 "gives an error about this and sometimes not.  In any case, it is always safe "
14928 "to call L</e2fsck-f> before calling this function."
14929 msgstr ""
14930
14931 #. type: =head2
14932 #: ../fish/guestfish-actions.pod:4263
14933 msgid "resize2fs-M"
14934 msgstr ""
14935
14936 #. type: verbatim
14937 #: ../fish/guestfish-actions.pod:4265
14938 #, no-wrap
14939 msgid ""
14940 " resize2fs-M device\n"
14941 "\n"
14942 msgstr ""
14943
14944 #. type: textblock
14945 #: ../fish/guestfish-actions.pod:4267
14946 msgid ""
14947 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14948 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14949 "command."
14950 msgstr ""
14951
14952 #. type: textblock
14953 #: ../fish/guestfish-actions.pod:4271
14954 msgid ""
14955 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14956 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14957 "multiplied together, give the resulting size of the minimal filesystem in "
14958 "bytes."
14959 msgstr ""
14960
14961 #. type: =head2
14962 #: ../fish/guestfish-actions.pod:4276
14963 msgid "resize2fs-size"
14964 msgstr ""
14965
14966 #. type: verbatim
14967 #: ../fish/guestfish-actions.pod:4278
14968 #, no-wrap
14969 msgid ""
14970 " resize2fs-size device size\n"
14971 "\n"
14972 msgstr ""
14973
14974 #. type: textblock
14975 #: ../fish/guestfish-actions.pod:4280
14976 msgid ""
14977 "This command is the same as L</resize2fs> except that it allows you to "
14978 "specify the new size (in bytes) explicitly."
14979 msgstr ""
14980
14981 #. type: =head2
14982 #: ../fish/guestfish-actions.pod:4283
14983 msgid "rm"
14984 msgstr ""
14985
14986 #. type: verbatim
14987 #: ../fish/guestfish-actions.pod:4285
14988 #, no-wrap
14989 msgid ""
14990 " rm path\n"
14991 "\n"
14992 msgstr ""
14993
14994 #. type: textblock
14995 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6664
14996 msgid "Remove the single file C<path>."
14997 msgstr ""
14998
14999 #. type: =head2
15000 #: ../fish/guestfish-actions.pod:4289
15001 msgid "rm-rf"
15002 msgstr ""
15003
15004 #. type: verbatim
15005 #: ../fish/guestfish-actions.pod:4291
15006 #, no-wrap
15007 msgid ""
15008 " rm-rf path\n"
15009 "\n"
15010 msgstr ""
15011
15012 #. type: textblock
15013 #: ../fish/guestfish-actions.pod:4293 ../src/guestfs-actions.pod:6676
15014 msgid ""
15015 "Remove the file or directory C<path>, recursively removing the contents if "
15016 "its a directory.  This is like the C<rm -rf> shell command."
15017 msgstr ""
15018
15019 #. type: =head2
15020 #: ../fish/guestfish-actions.pod:4297
15021 msgid "rmdir"
15022 msgstr ""
15023
15024 #. type: verbatim
15025 #: ../fish/guestfish-actions.pod:4299
15026 #, no-wrap
15027 msgid ""
15028 " rmdir path\n"
15029 "\n"
15030 msgstr ""
15031
15032 #. type: textblock
15033 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6690
15034 msgid "Remove the single directory C<path>."
15035 msgstr ""
15036
15037 #. type: =head2
15038 #: ../fish/guestfish-actions.pod:4303
15039 msgid "rmmountpoint"
15040 msgstr ""
15041
15042 #. type: verbatim
15043 #: ../fish/guestfish-actions.pod:4305
15044 #, no-wrap
15045 msgid ""
15046 " rmmountpoint exemptpath\n"
15047 "\n"
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:4307
15052 msgid ""
15053 "This calls removes a mountpoint that was previously created with "
15054 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
15055 msgstr ""
15056
15057 #. type: =head2
15058 #: ../fish/guestfish-actions.pod:4311
15059 msgid "scrub-device"
15060 msgstr ""
15061
15062 #. type: verbatim
15063 #: ../fish/guestfish-actions.pod:4313
15064 #, no-wrap
15065 msgid ""
15066 " scrub-device device\n"
15067 "\n"
15068 msgstr ""
15069
15070 #. type: textblock
15071 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6716
15072 msgid ""
15073 "This command writes patterns over C<device> to make data retrieval more "
15074 "difficult."
15075 msgstr ""
15076
15077 #. type: textblock
15078 #: ../fish/guestfish-actions.pod:4318 ../fish/guestfish-actions.pod:4330 ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6756
15079 msgid ""
15080 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15081 "more details."
15082 msgstr ""
15083
15084 #. type: =head2
15085 #: ../fish/guestfish-actions.pod:4321
15086 msgid "scrub-file"
15087 msgstr ""
15088
15089 #. type: verbatim
15090 #: ../fish/guestfish-actions.pod:4323
15091 #, no-wrap
15092 msgid ""
15093 " scrub-file file\n"
15094 "\n"
15095 msgstr ""
15096
15097 #. type: textblock
15098 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6732
15099 msgid ""
15100 "This command writes patterns over a file to make data retrieval more "
15101 "difficult."
15102 msgstr ""
15103
15104 #. type: textblock
15105 #: ../fish/guestfish-actions.pod:4328 ../src/guestfs-actions.pod:6735
15106 msgid "The file is I<removed> after scrubbing."
15107 msgstr ""
15108
15109 #. type: =head2
15110 #: ../fish/guestfish-actions.pod:4333
15111 msgid "scrub-freespace"
15112 msgstr ""
15113
15114 #. type: verbatim
15115 #: ../fish/guestfish-actions.pod:4335
15116 #, no-wrap
15117 msgid ""
15118 " scrub-freespace dir\n"
15119 "\n"
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:4337
15124 msgid ""
15125 "This command creates the directory C<dir> and then fills it with files until "
15126 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15127 "deletes them.  The intention is to scrub any free space on the partition "
15128 "containing C<dir>."
15129 msgstr ""
15130
15131 #. type: =head2
15132 #: ../fish/guestfish-actions.pod:4346
15133 msgid "set-append"
15134 msgstr ""
15135
15136 #. type: =head2
15137 #: ../fish/guestfish-actions.pod:4348
15138 msgid "append"
15139 msgstr ""
15140
15141 #. type: verbatim
15142 #: ../fish/guestfish-actions.pod:4350
15143 #, no-wrap
15144 msgid ""
15145 " set-append append\n"
15146 "\n"
15147 msgstr ""
15148
15149 #. type: textblock
15150 #: ../fish/guestfish-actions.pod:4352 ../src/guestfs-actions.pod:6769
15151 msgid ""
15152 "This function is used to add additional options to the guest kernel command "
15153 "line."
15154 msgstr ""
15155
15156 #. type: textblock
15157 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6772
15158 msgid ""
15159 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15160 "environment variable."
15161 msgstr ""
15162
15163 #. type: textblock
15164 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6775
15165 msgid ""
15166 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15167 "(libguestfs always adds a few of its own)."
15168 msgstr ""
15169
15170 #. type: =head2
15171 #: ../fish/guestfish-actions.pod:4361
15172 msgid "set-attach-method"
15173 msgstr ""
15174
15175 #. type: =head2
15176 #: ../fish/guestfish-actions.pod:4363
15177 msgid "attach-method"
15178 msgstr ""
15179
15180 #. type: verbatim
15181 #: ../fish/guestfish-actions.pod:4365
15182 #, no-wrap
15183 msgid ""
15184 " set-attach-method attachmethod\n"
15185 "\n"
15186 msgstr ""
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
15190 msgid ""
15191 "Set the method that libguestfs uses to connect to the back end guestfsd "
15192 "daemon.  Possible methods are:"
15193 msgstr ""
15194
15195 #. type: =item
15196 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6793 ../src/guestfs.pod:2916
15197 msgid "C<appliance>"
15198 msgstr ""
15199
15200 #. type: textblock
15201 #: ../fish/guestfish-actions.pod:4374 ../src/guestfs-actions.pod:6795
15202 msgid ""
15203 "Launch an appliance and connect to it.  This is the ordinary method and the "
15204 "default."
15205 msgstr ""
15206
15207 #. type: =item
15208 #: ../fish/guestfish-actions.pod:4377 ../src/guestfs-actions.pod:6798
15209 msgid "C<unix:I<path>>"
15210 msgstr ""
15211
15212 #. type: textblock
15213 #: ../fish/guestfish-actions.pod:4379 ../src/guestfs-actions.pod:6800
15214 msgid "Connect to the Unix domain socket I<path>."
15215 msgstr ""
15216
15217 #. type: textblock
15218 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6802
15219 msgid ""
15220 "This method lets you connect to an existing daemon or (using virtio-serial) "
15221 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15222 "RUNNING DAEMONS>."
15223 msgstr ""
15224
15225 #. type: =head2
15226 #: ../fish/guestfish-actions.pod:4387
15227 msgid "set-autosync"
15228 msgstr ""
15229
15230 #. type: =head2
15231 #: ../fish/guestfish-actions.pod:4389
15232 msgid "autosync"
15233 msgstr ""
15234
15235 #. type: verbatim
15236 #: ../fish/guestfish-actions.pod:4391
15237 #, no-wrap
15238 msgid ""
15239 " set-autosync true|false\n"
15240 "\n"
15241 msgstr ""
15242
15243 #. type: textblock
15244 #: ../fish/guestfish-actions.pod:4393 ../src/guestfs-actions.pod:6818
15245 msgid ""
15246 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15247 "effort attempt to make filesystems consistent and synchronized when the "
15248 "handle is closed (also if the program exits without closing handles)."
15249 msgstr ""
15250
15251 #. type: textblock
15252 #: ../fish/guestfish-actions.pod:4398 ../src/guestfs-actions.pod:6823
15253 msgid ""
15254 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15255 "disabled by default)."
15256 msgstr ""
15257
15258 #. type: =head2
15259 #: ../fish/guestfish-actions.pod:4401
15260 msgid "set-direct"
15261 msgstr ""
15262
15263 #. type: =head2
15264 #: ../fish/guestfish-actions.pod:4403
15265 msgid "direct"
15266 msgstr ""
15267
15268 #. type: verbatim
15269 #: ../fish/guestfish-actions.pod:4405
15270 #, no-wrap
15271 msgid ""
15272 " set-direct true|false\n"
15273 "\n"
15274 msgstr ""
15275
15276 #. type: textblock
15277 #: ../fish/guestfish-actions.pod:4407 ../src/guestfs-actions.pod:6836
15278 msgid ""
15279 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15280 "passed directly through to the appliance once it is launched."
15281 msgstr ""
15282
15283 #. type: textblock
15284 #: ../fish/guestfish-actions.pod:4411
15285 msgid ""
15286 "One consequence of this is that log messages aren't caught by the library "
15287 "and handled by L</set-log-message-callback>, but go straight to stdout."
15288 msgstr ""
15289
15290 #. type: textblock
15291 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6844
15292 msgid "You probably don't want to use this unless you know what you are doing."
15293 msgstr ""
15294
15295 #. type: textblock
15296 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6847
15297 msgid "The default is disabled."
15298 msgstr ""
15299
15300 #. type: =head2
15301 #: ../fish/guestfish-actions.pod:4420
15302 msgid "set-e2label"
15303 msgstr ""
15304
15305 #. type: verbatim
15306 #: ../fish/guestfish-actions.pod:4422
15307 #, no-wrap
15308 msgid ""
15309 " set-e2label device label\n"
15310 "\n"
15311 msgstr ""
15312
15313 #. type: textblock
15314 #: ../fish/guestfish-actions.pod:4424 ../src/guestfs-actions.pod:6860
15315 msgid ""
15316 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15317 "C<label>.  Filesystem labels are limited to 16 characters."
15318 msgstr ""
15319
15320 #. type: textblock
15321 #: ../fish/guestfish-actions.pod:4428
15322 msgid ""
15323 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15324 "label on a filesystem."
15325 msgstr ""
15326
15327 #. type: =head2
15328 #: ../fish/guestfish-actions.pod:4431
15329 msgid "set-e2uuid"
15330 msgstr ""
15331
15332 #. type: verbatim
15333 #: ../fish/guestfish-actions.pod:4433
15334 #, no-wrap
15335 msgid ""
15336 " set-e2uuid device uuid\n"
15337 "\n"
15338 msgstr ""
15339
15340 #. type: textblock
15341 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6878
15342 msgid ""
15343 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15344 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15345 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15346 msgstr ""
15347
15348 #. type: textblock
15349 #: ../fish/guestfish-actions.pod:4440
15350 msgid ""
15351 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15352 "UUID of a filesystem."
15353 msgstr ""
15354
15355 #. type: =head2
15356 #: ../fish/guestfish-actions.pod:4443
15357 msgid "set-memsize"
15358 msgstr ""
15359
15360 #. type: =head2
15361 #: ../fish/guestfish-actions.pod:4445
15362 msgid "memsize"
15363 msgstr ""
15364
15365 #. type: verbatim
15366 #: ../fish/guestfish-actions.pod:4447
15367 #, no-wrap
15368 msgid ""
15369 " set-memsize memsize\n"
15370 "\n"
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4449
15375 msgid ""
15376 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15377 "This only has any effect if called before L</launch>."
15378 msgstr ""
15379
15380 #. type: textblock
15381 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6900
15382 msgid ""
15383 "You can also change this by setting the environment variable "
15384 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15385 msgstr ""
15386
15387 #. type: =head2
15388 #: ../fish/guestfish-actions.pod:4460
15389 msgid "set-network"
15390 msgstr ""
15391
15392 #. type: =head2
15393 #: ../fish/guestfish-actions.pod:4462
15394 msgid "network"
15395 msgstr ""
15396
15397 #. type: verbatim
15398 #: ../fish/guestfish-actions.pod:4464
15399 #, no-wrap
15400 msgid ""
15401 " set-network true|false\n"
15402 "\n"
15403 msgstr ""
15404
15405 #. type: textblock
15406 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6917
15407 msgid ""
15408 "If C<network> is true, then the network is enabled in the libguestfs "
15409 "appliance.  The default is false."
15410 msgstr ""
15411
15412 #. type: textblock
15413 #: ../fish/guestfish-actions.pod:4469 ../src/guestfs-actions.pod:6920
15414 msgid ""
15415 "This affects whether commands are able to access the network (see "
15416 "L<guestfs(3)/RUNNING COMMANDS>)."
15417 msgstr ""
15418
15419 #. type: textblock
15420 #: ../fish/guestfish-actions.pod:4472
15421 msgid "You must call this before calling L</launch>, otherwise it has no effect."
15422 msgstr ""
15423
15424 #. type: =head2
15425 #: ../fish/guestfish-actions.pod:4475
15426 msgid "set-path"
15427 msgstr ""
15428
15429 #. type: verbatim
15430 #: ../fish/guestfish-actions.pod:4479
15431 #, no-wrap
15432 msgid ""
15433 " set-path searchpath\n"
15434 "\n"
15435 msgstr ""
15436
15437 #. type: textblock
15438 #: ../fish/guestfish-actions.pod:4481 ../src/guestfs-actions.pod:6936
15439 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15440 msgstr ""
15441
15442 #. type: textblock
15443 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6938
15444 msgid ""
15445 "The default is C<$libdir/guestfs> unless overridden by setting "
15446 "C<LIBGUESTFS_PATH> environment variable."
15447 msgstr ""
15448
15449 #. type: textblock
15450 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6941
15451 msgid "Setting C<path> to C<NULL> restores the default path."
15452 msgstr ""
15453
15454 #. type: =head2
15455 #: ../fish/guestfish-actions.pod:4488
15456 msgid "set-pgroup"
15457 msgstr ""
15458
15459 #. type: =head2
15460 #: ../fish/guestfish-actions.pod:4490
15461 msgid "pgroup"
15462 msgstr ""
15463
15464 #. type: verbatim
15465 #: ../fish/guestfish-actions.pod:4492
15466 #, no-wrap
15467 msgid ""
15468 " set-pgroup true|false\n"
15469 "\n"
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6953
15474 msgid ""
15475 "If C<pgroup> is true, child processes are placed into their own process "
15476 "group."
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6956
15481 msgid ""
15482 "The practical upshot of this is that signals like C<SIGINT> (from users "
15483 "pressing C<^C>) won't be received by the child process."
15484 msgstr ""
15485
15486 #. type: textblock
15487 #: ../fish/guestfish-actions.pod:4500 ../src/guestfs-actions.pod:6959
15488 msgid ""
15489 "The default for this flag is false, because usually you want C<^C> to kill "
15490 "the subprocess."
15491 msgstr ""
15492
15493 #. type: =head2
15494 #: ../fish/guestfish-actions.pod:4503
15495 msgid "set-qemu"
15496 msgstr ""
15497
15498 #. type: =head2
15499 #: ../fish/guestfish-actions.pod:4505
15500 msgid "qemu"
15501 msgstr ""
15502
15503 #. type: verbatim
15504 #: ../fish/guestfish-actions.pod:4507
15505 #, no-wrap
15506 msgid ""
15507 " set-qemu qemu\n"
15508 "\n"
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6972
15513 msgid "Set the qemu binary that we will use."
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6974
15518 msgid "The default is chosen when the library was compiled by the configure script."
15519 msgstr ""
15520
15521 #. type: textblock
15522 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6977
15523 msgid ""
15524 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15525 "variable."
15526 msgstr ""
15527
15528 #. type: textblock
15529 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6980
15530 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15531 msgstr ""
15532
15533 #. type: textblock
15534 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6982
15535 msgid ""
15536 "Note that you should call this function as early as possible after creating "
15537 "the handle.  This is because some pre-launch operations depend on testing "
15538 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15539 "don't retest features, and so you might see inconsistent results.  Using the "
15540 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15541 "the qemu binary at the same time as the handle is created."
15542 msgstr ""
15543
15544 #. type: =head2
15545 #: ../fish/guestfish-actions.pod:4527
15546 msgid "set-recovery-proc"
15547 msgstr ""
15548
15549 #. type: =head2
15550 #: ../fish/guestfish-actions.pod:4529
15551 msgid "recovery-proc"
15552 msgstr ""
15553
15554 #. type: verbatim
15555 #: ../fish/guestfish-actions.pod:4531
15556 #, no-wrap
15557 msgid ""
15558 " set-recovery-proc true|false\n"
15559 "\n"
15560 msgstr ""
15561
15562 #. type: textblock
15563 #: ../fish/guestfish-actions.pod:4533
15564 msgid ""
15565 "If this is called with the parameter C<false> then L</launch> does not "
15566 "create a recovery process.  The purpose of the recovery process is to stop "
15567 "runaway qemu processes in the case where the main program aborts abruptly."
15568 msgstr ""
15569
15570 #. type: textblock
15571 #: ../fish/guestfish-actions.pod:4538
15572 msgid ""
15573 "This only has any effect if called before L</launch>, and the default is "
15574 "true."
15575 msgstr ""
15576
15577 #. type: textblock
15578 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:7008
15579 msgid ""
15580 "About the only time when you would want to disable this is if the main "
15581 "process will fork itself into the background (\"daemonize\" itself).  In "
15582 "this case the recovery process thinks that the main program has disappeared "
15583 "and so kills qemu, which is not very helpful."
15584 msgstr ""
15585
15586 #. type: =head2
15587 #: ../fish/guestfish-actions.pod:4547
15588 msgid "set-selinux"
15589 msgstr ""
15590
15591 #. type: =head2
15592 #: ../fish/guestfish-actions.pod:4549
15593 msgid "selinux"
15594 msgstr ""
15595
15596 #. type: verbatim
15597 #: ../fish/guestfish-actions.pod:4551
15598 #, no-wrap
15599 msgid ""
15600 " set-selinux true|false\n"
15601 "\n"
15602 msgstr ""
15603
15604 #. type: textblock
15605 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7024
15606 msgid ""
15607 "This sets the selinux flag that is passed to the appliance at boot time.  "
15608 "The default is C<selinux=0> (disabled)."
15609 msgstr ""
15610
15611 #. type: textblock
15612 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7027
15613 msgid ""
15614 "Note that if SELinux is enabled, it is always in Permissive mode "
15615 "(C<enforcing=0>)."
15616 msgstr ""
15617
15618 #. type: =head2
15619 #: ../fish/guestfish-actions.pod:4562
15620 msgid "set-smp"
15621 msgstr ""
15622
15623 #. type: =head2
15624 #: ../fish/guestfish-actions.pod:4564
15625 msgid "smp"
15626 msgstr ""
15627
15628 #. type: verbatim
15629 #: ../fish/guestfish-actions.pod:4566
15630 #, no-wrap
15631 msgid ""
15632 " set-smp smp\n"
15633 "\n"
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../fish/guestfish-actions.pod:4568 ../src/guestfs-actions.pod:7043
15638 msgid ""
15639 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15640 "C<1>.  Increasing this may improve performance, though often it has no "
15641 "effect."
15642 msgstr ""
15643
15644 #. type: textblock
15645 #: ../fish/guestfish-actions.pod:4572
15646 msgid "This function must be called before L</launch>."
15647 msgstr ""
15648
15649 #. type: =head2
15650 #: ../fish/guestfish-actions.pod:4574
15651 msgid "set-trace"
15652 msgstr ""
15653
15654 #. type: =head2
15655 #: ../fish/guestfish-actions.pod:4576
15656 msgid "trace"
15657 msgstr ""
15658
15659 #. type: verbatim
15660 #: ../fish/guestfish-actions.pod:4578
15661 #, no-wrap
15662 msgid ""
15663 " set-trace true|false\n"
15664 "\n"
15665 msgstr ""
15666
15667 #. type: textblock
15668 #: ../fish/guestfish-actions.pod:4580 ../src/guestfs-actions.pod:7059
15669 msgid ""
15670 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15671 "return values are traced."
15672 msgstr ""
15673
15674 #. type: textblock
15675 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7062
15676 msgid ""
15677 "If you want to trace C API calls into libguestfs (and other libraries) then "
15678 "possibly a better way is to use the external ltrace(1) command."
15679 msgstr ""
15680
15681 #. type: textblock
15682 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:7066
15683 msgid ""
15684 "Command traces are disabled unless the environment variable "
15685 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15686 msgstr ""
15687
15688 #. type: textblock
15689 #: ../fish/guestfish-actions.pod:4590
15690 msgid ""
15691 "Trace messages are normally sent to C<stderr>, unless you register a "
15692 "callback to send them somewhere else (see L</set-event-callback>)."
15693 msgstr ""
15694
15695 #. type: =head2
15696 #: ../fish/guestfish-actions.pod:4594
15697 msgid "set-verbose"
15698 msgstr ""
15699
15700 #. type: =head2
15701 #: ../fish/guestfish-actions.pod:4596
15702 msgid "verbose"
15703 msgstr ""
15704
15705 #. type: verbatim
15706 #: ../fish/guestfish-actions.pod:4598
15707 #, no-wrap
15708 msgid ""
15709 " set-verbose true|false\n"
15710 "\n"
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:7083
15715 msgid "If C<verbose> is true, this turns on verbose messages."
15716 msgstr ""
15717
15718 #. type: textblock
15719 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:7085
15720 msgid ""
15721 "Verbose messages are disabled unless the environment variable "
15722 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15723 msgstr ""
15724
15725 #. type: textblock
15726 #: ../fish/guestfish-actions.pod:4605
15727 msgid ""
15728 "Verbose messages are normally sent to C<stderr>, unless you register a "
15729 "callback to send them somewhere else (see L</set-event-callback>)."
15730 msgstr ""
15731
15732 #. type: =head2
15733 #: ../fish/guestfish-actions.pod:4609
15734 msgid "setcon"
15735 msgstr ""
15736
15737 #. type: verbatim
15738 #: ../fish/guestfish-actions.pod:4611
15739 #, no-wrap
15740 msgid ""
15741 " setcon context\n"
15742 "\n"
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
15747 msgid ""
15748 "This sets the SELinux security context of the daemon to the string "
15749 "C<context>."
15750 msgstr ""
15751
15752 #. type: textblock
15753 #: ../fish/guestfish-actions.pod:4616 ../src/guestfs-actions.pod:7105
15754 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15755 msgstr ""
15756
15757 #. type: =head2
15758 #: ../fish/guestfish-actions.pod:4618
15759 msgid "setxattr"
15760 msgstr ""
15761
15762 #. type: verbatim
15763 #: ../fish/guestfish-actions.pod:4620
15764 #, no-wrap
15765 msgid ""
15766 " setxattr xattr val vallen path\n"
15767 "\n"
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7120
15772 msgid ""
15773 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15774 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15775 msgstr ""
15776
15777 #. type: textblock
15778 #: ../fish/guestfish-actions.pod:4626
15779 msgid "See also: L</lsetxattr>, L<attr(5)>."
15780 msgstr ""
15781
15782 #. type: =head2
15783 #: ../fish/guestfish-actions.pod:4628
15784 msgid "sfdisk"
15785 msgstr ""
15786
15787 #. type: verbatim
15788 #: ../fish/guestfish-actions.pod:4630
15789 #, no-wrap
15790 msgid ""
15791 " sfdisk device cyls heads sectors 'lines ...'\n"
15792 "\n"
15793 msgstr ""
15794
15795 #. type: textblock
15796 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:7147
15797 msgid ""
15798 "This is a direct interface to the L<sfdisk(8)> program for creating "
15799 "partitions on block devices."
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:7150
15804 msgid "C<device> should be a block device, for example C</dev/sda>."
15805 msgstr ""
15806
15807 #. type: textblock
15808 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:7152
15809 msgid ""
15810 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15811 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15812 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15813 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15814 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15815 "the kernel) cannot work out the right geometry and you will need to tell it."
15816 msgstr ""
15817
15818 #. type: textblock
15819 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:7160
15820 msgid ""
15821 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15822 "refer to the L<sfdisk(8)> manpage."
15823 msgstr ""
15824
15825 #. type: textblock
15826 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7163
15827 msgid ""
15828 "To create a single partition occupying the whole disk, you would pass "
15829 "C<lines> as a single element list, when the single element being the string "
15830 "C<,> (comma)."
15831 msgstr ""
15832
15833 #. type: textblock
15834 #: ../fish/guestfish-actions.pod:4652
15835 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15836 msgstr ""
15837
15838 #. type: textblock
15839 #: ../fish/guestfish-actions.pod:4655 ../fish/guestfish-actions.pod:4675 ../fish/guestfish-actions.pod:4694
15840 msgid ""
15841 "I<This function is deprecated.> In new code, use the L</part_add> call "
15842 "instead."
15843 msgstr ""
15844
15845 #. type: =head2
15846 #: ../fish/guestfish-actions.pod:4662
15847 msgid "sfdiskM"
15848 msgstr ""
15849
15850 #. type: verbatim
15851 #: ../fish/guestfish-actions.pod:4664
15852 #, no-wrap
15853 msgid ""
15854 " sfdiskM device 'lines ...'\n"
15855 "\n"
15856 msgstr ""
15857
15858 #. type: textblock
15859 #: ../fish/guestfish-actions.pod:4666
15860 msgid ""
15861 "This is a simplified interface to the L</sfdisk> command, where partition "
15862 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15863 "you don't need to specify the cyls, heads and sectors parameters which were "
15864 "rarely if ever used anyway."
15865 msgstr ""
15866
15867 #. type: textblock
15868 #: ../fish/guestfish-actions.pod:4672
15869 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15870 msgstr ""
15871
15872 #. type: =head2
15873 #: ../fish/guestfish-actions.pod:4682
15874 msgid "sfdisk-N"
15875 msgstr ""
15876
15877 #. type: verbatim
15878 #: ../fish/guestfish-actions.pod:4684
15879 #, no-wrap
15880 msgid ""
15881 " sfdisk-N device partnum cyls heads sectors line\n"
15882 "\n"
15883 msgstr ""
15884
15885 #. type: textblock
15886 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7219
15887 msgid ""
15888 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15889 "(note: C<n> counts from 1)."
15890 msgstr ""
15891
15892 #. type: textblock
15893 #: ../fish/guestfish-actions.pod:4689
15894 msgid ""
15895 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15896 "cyls/heads/sectors parameters."
15897 msgstr ""
15898
15899 #. type: textblock
15900 #: ../fish/guestfish-actions.pod:4692
15901 msgid "See also: L</part-add>"
15902 msgstr ""
15903
15904 #. type: =head2
15905 #: ../fish/guestfish-actions.pod:4701
15906 msgid "sfdisk-disk-geometry"
15907 msgstr ""
15908
15909 #. type: verbatim
15910 #: ../fish/guestfish-actions.pod:4703
15911 #, no-wrap
15912 msgid ""
15913 " sfdisk-disk-geometry device\n"
15914 "\n"
15915 msgstr ""
15916
15917 #. type: textblock
15918 #: ../fish/guestfish-actions.pod:4705
15919 msgid ""
15920 "This displays the disk geometry of C<device> read from the partition table.  "
15921 "Especially in the case where the underlying block device has been resized, "
15922 "this can be different from the kernel's idea of the geometry (see "
15923 "L</sfdisk-kernel-geometry>)."
15924 msgstr ""
15925
15926 #. type: textblock
15927 #: ../fish/guestfish-actions.pod:4710 ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7258
15928 msgid "The result is in human-readable format, and not designed to be parsed."
15929 msgstr ""
15930
15931 #. type: =head2
15932 #: ../fish/guestfish-actions.pod:4713
15933 msgid "sfdisk-kernel-geometry"
15934 msgstr ""
15935
15936 #. type: verbatim
15937 #: ../fish/guestfish-actions.pod:4715
15938 #, no-wrap
15939 msgid ""
15940 " sfdisk-kernel-geometry device\n"
15941 "\n"
15942 msgstr ""
15943
15944 #. type: textblock
15945 #: ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:7256
15946 msgid "This displays the kernel's idea of the geometry of C<device>."
15947 msgstr ""
15948
15949 #. type: =head2
15950 #: ../fish/guestfish-actions.pod:4722
15951 msgid "sfdisk-l"
15952 msgstr ""
15953
15954 #. type: verbatim
15955 #: ../fish/guestfish-actions.pod:4724
15956 #, no-wrap
15957 msgid ""
15958 " sfdisk-l device\n"
15959 "\n"
15960 msgstr ""
15961
15962 #. type: textblock
15963 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7279
15964 msgid ""
15965 "This displays the partition table on C<device>, in the human-readable output "
15966 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15967 msgstr ""
15968
15969 #. type: textblock
15970 #: ../fish/guestfish-actions.pod:4730
15971 msgid "See also: L</part-list>"
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../fish/guestfish-actions.pod:4732
15976 msgid ""
15977 "I<This function is deprecated.> In new code, use the L</part_list> call "
15978 "instead."
15979 msgstr ""
15980
15981 #. type: =head2
15982 #: ../fish/guestfish-actions.pod:4739
15983 msgid "sh"
15984 msgstr ""
15985
15986 #. type: verbatim
15987 #: ../fish/guestfish-actions.pod:4741
15988 #, no-wrap
15989 msgid ""
15990 " sh command\n"
15991 "\n"
15992 msgstr ""
15993
15994 #. type: textblock
15995 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7296
15996 msgid ""
15997 "This call runs a command from the guest filesystem via the guest's "
15998 "C</bin/sh>."
15999 msgstr ""
16000
16001 #. type: textblock
16002 #: ../fish/guestfish-actions.pod:4746
16003 msgid "This is like L</command>, but passes the command to:"
16004 msgstr ""
16005
16006 #. type: verbatim
16007 #: ../fish/guestfish-actions.pod:4748 ../src/guestfs-actions.pod:7301
16008 #, no-wrap
16009 msgid ""
16010 " /bin/sh -c \"command\"\n"
16011 "\n"
16012 msgstr ""
16013
16014 #. type: textblock
16015 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7303
16016 msgid ""
16017 "Depending on the guest's shell, this usually results in wildcards being "
16018 "expanded, shell expressions being interpolated and so on."
16019 msgstr ""
16020
16021 #. type: textblock
16022 #: ../fish/guestfish-actions.pod:4754
16023 msgid "All the provisos about L</command> apply to this call."
16024 msgstr ""
16025
16026 #. type: =head2
16027 #: ../fish/guestfish-actions.pod:4756
16028 msgid "sh-lines"
16029 msgstr ""
16030
16031 #. type: verbatim
16032 #: ../fish/guestfish-actions.pod:4758
16033 #, no-wrap
16034 msgid ""
16035 " sh-lines command\n"
16036 "\n"
16037 msgstr ""
16038
16039 #. type: textblock
16040 #: ../fish/guestfish-actions.pod:4760
16041 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16042 msgstr ""
16043
16044 #. type: textblock
16045 #: ../fish/guestfish-actions.pod:4763
16046 msgid "See also: L</command-lines>"
16047 msgstr ""
16048
16049 #. type: =head2
16050 #: ../fish/guestfish-actions.pod:4765
16051 msgid "sleep"
16052 msgstr ""
16053
16054 #. type: verbatim
16055 #: ../fish/guestfish-actions.pod:4767
16056 #, no-wrap
16057 msgid ""
16058 " sleep secs\n"
16059 "\n"
16060 msgstr ""
16061
16062 #. type: textblock
16063 #: ../fish/guestfish-actions.pod:4769 ../src/guestfs-actions.pod:7337
16064 msgid "Sleep for C<secs> seconds."
16065 msgstr ""
16066
16067 #. type: =head2
16068 #: ../fish/guestfish-actions.pod:4771
16069 msgid "stat"
16070 msgstr ""
16071
16072 #. type: verbatim
16073 #: ../fish/guestfish-actions.pod:4773
16074 #, no-wrap
16075 msgid ""
16076 " stat path\n"
16077 "\n"
16078 msgstr ""
16079
16080 #. type: textblock
16081 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7351
16082 msgid "This is the same as the C<stat(2)> system call."
16083 msgstr ""
16084
16085 #. type: =head2
16086 #: ../fish/guestfish-actions.pod:4779
16087 msgid "statvfs"
16088 msgstr ""
16089
16090 #. type: verbatim
16091 #: ../fish/guestfish-actions.pod:4781
16092 #, no-wrap
16093 msgid ""
16094 " statvfs path\n"
16095 "\n"
16096 msgstr ""
16097
16098 #. type: textblock
16099 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7365
16100 msgid ""
16101 "Returns file system statistics for any mounted file system.  C<path> should "
16102 "be a file or directory in the mounted file system (typically it is the mount "
16103 "point itself, but it doesn't need to be)."
16104 msgstr ""
16105
16106 #. type: textblock
16107 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7369
16108 msgid "This is the same as the C<statvfs(2)> system call."
16109 msgstr ""
16110
16111 #. type: =head2
16112 #: ../fish/guestfish-actions.pod:4789
16113 msgid "strings"
16114 msgstr ""
16115
16116 #. type: verbatim
16117 #: ../fish/guestfish-actions.pod:4791
16118 #, no-wrap
16119 msgid ""
16120 " strings path\n"
16121 "\n"
16122 msgstr ""
16123
16124 #. type: textblock
16125 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7383
16126 msgid ""
16127 "This runs the L<strings(1)> command on a file and returns the list of "
16128 "printable strings found."
16129 msgstr ""
16130
16131 #. type: =head2
16132 #: ../fish/guestfish-actions.pod:4799
16133 msgid "strings-e"
16134 msgstr ""
16135
16136 #. type: verbatim
16137 #: ../fish/guestfish-actions.pod:4801
16138 #, no-wrap
16139 msgid ""
16140 " strings-e encoding path\n"
16141 "\n"
16142 msgstr ""
16143
16144 #. type: textblock
16145 #: ../fish/guestfish-actions.pod:4803
16146 msgid ""
16147 "This is like the L</strings> command, but allows you to specify the encoding "
16148 "of strings that are looked for in the source file C<path>."
16149 msgstr ""
16150
16151 #. type: textblock
16152 #: ../fish/guestfish-actions.pod:4807 ../src/guestfs-actions.pod:7406
16153 msgid "Allowed encodings are:"
16154 msgstr ""
16155
16156 #. type: =item
16157 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7410
16158 msgid "s"
16159 msgstr ""
16160
16161 #. type: textblock
16162 #: ../fish/guestfish-actions.pod:4813
16163 msgid ""
16164 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16165 "ISO-8859-X (this is what L</strings> uses)."
16166 msgstr ""
16167
16168 #. type: =item
16169 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7415
16170 msgid "S"
16171 msgstr ""
16172
16173 #. type: textblock
16174 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7417
16175 msgid "Single 8-bit-byte characters."
16176 msgstr ""
16177
16178 #. type: =item
16179 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7419
16180 msgid "b"
16181 msgstr ""
16182
16183 #. type: textblock
16184 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7421
16185 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16186 msgstr ""
16187
16188 #. type: =item
16189 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7424
16190 msgid "l (lower case letter L)"
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7426
16195 msgid ""
16196 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16197 "examining binaries in Windows guests."
16198 msgstr ""
16199
16200 #. type: =item
16201 #: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7429
16202 msgid "B"
16203 msgstr ""
16204
16205 #. type: textblock
16206 #: ../fish/guestfish-actions.pod:4832 ../src/guestfs-actions.pod:7431
16207 msgid "32-bit big endian such as UCS-4BE."
16208 msgstr ""
16209
16210 #. type: =item
16211 #: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7433
16212 msgid "L"
16213 msgstr ""
16214
16215 #. type: textblock
16216 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7435
16217 msgid "32-bit little endian such as UCS-4LE."
16218 msgstr ""
16219
16220 #. type: textblock
16221 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7439
16222 msgid "The returned strings are transcoded to UTF-8."
16223 msgstr ""
16224
16225 #. type: =head2
16226 #: ../fish/guestfish-actions.pod:4845
16227 msgid "swapoff-device"
16228 msgstr ""
16229
16230 #. type: verbatim
16231 #: ../fish/guestfish-actions.pod:4847
16232 #, no-wrap
16233 msgid ""
16234 " swapoff-device device\n"
16235 "\n"
16236 msgstr ""
16237
16238 #. type: textblock
16239 #: ../fish/guestfish-actions.pod:4849
16240 msgid ""
16241 "This command disables the libguestfs appliance swap device or partition "
16242 "named C<device>.  See L</swapon-device>."
16243 msgstr ""
16244
16245 #. type: =head2
16246 #: ../fish/guestfish-actions.pod:4853
16247 msgid "swapoff-file"
16248 msgstr ""
16249
16250 #. type: verbatim
16251 #: ../fish/guestfish-actions.pod:4855
16252 #, no-wrap
16253 msgid ""
16254 " swapoff-file file\n"
16255 "\n"
16256 msgstr ""
16257
16258 #. type: textblock
16259 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7470
16260 msgid "This command disables the libguestfs appliance swap on file."
16261 msgstr ""
16262
16263 #. type: =head2
16264 #: ../fish/guestfish-actions.pod:4859
16265 msgid "swapoff-label"
16266 msgstr ""
16267
16268 #. type: verbatim
16269 #: ../fish/guestfish-actions.pod:4861
16270 #, no-wrap
16271 msgid ""
16272 " swapoff-label label\n"
16273 "\n"
16274 msgstr ""
16275
16276 #. type: textblock
16277 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7482
16278 msgid ""
16279 "This command disables the libguestfs appliance swap on labeled swap "
16280 "partition."
16281 msgstr ""
16282
16283 #. type: =head2
16284 #: ../fish/guestfish-actions.pod:4866
16285 msgid "swapoff-uuid"
16286 msgstr ""
16287
16288 #. type: verbatim
16289 #: ../fish/guestfish-actions.pod:4868
16290 #, no-wrap
16291 msgid ""
16292 " swapoff-uuid uuid\n"
16293 "\n"
16294 msgstr ""
16295
16296 #. type: textblock
16297 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7495
16298 msgid ""
16299 "This command disables the libguestfs appliance swap partition with the given "
16300 "UUID."
16301 msgstr ""
16302
16303 #. type: =head2
16304 #: ../fish/guestfish-actions.pod:4873
16305 msgid "swapon-device"
16306 msgstr ""
16307
16308 #. type: verbatim
16309 #: ../fish/guestfish-actions.pod:4875
16310 #, no-wrap
16311 msgid ""
16312 " swapon-device device\n"
16313 "\n"
16314 msgstr ""
16315
16316 #. type: textblock
16317 #: ../fish/guestfish-actions.pod:4877
16318 msgid ""
16319 "This command enables the libguestfs appliance to use the swap device or "
16320 "partition named C<device>.  The increased memory is made available for all "
16321 "commands, for example those run using L</command> or L</sh>."
16322 msgstr ""
16323
16324 #. type: textblock
16325 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7513
16326 msgid ""
16327 "Note that you should not swap to existing guest swap partitions unless you "
16328 "know what you are doing.  They may contain hibernation information, or other "
16329 "information that the guest doesn't want you to trash.  You also risk leaking "
16330 "information about the host to the guest this way.  Instead, attach a new "
16331 "host device to the guest and swap on that."
16332 msgstr ""
16333
16334 #. type: =head2
16335 #: ../fish/guestfish-actions.pod:4889
16336 msgid "swapon-file"
16337 msgstr ""
16338
16339 #. type: verbatim
16340 #: ../fish/guestfish-actions.pod:4891
16341 #, no-wrap
16342 msgid ""
16343 " swapon-file file\n"
16344 "\n"
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../fish/guestfish-actions.pod:4893
16349 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
16350 msgstr ""
16351
16352 #. type: =head2
16353 #: ../fish/guestfish-actions.pod:4896
16354 msgid "swapon-label"
16355 msgstr ""
16356
16357 #. type: verbatim
16358 #: ../fish/guestfish-actions.pod:4898
16359 #, no-wrap
16360 msgid ""
16361 " swapon-label label\n"
16362 "\n"
16363 msgstr ""
16364
16365 #. type: textblock
16366 #: ../fish/guestfish-actions.pod:4900
16367 msgid ""
16368 "This command enables swap to a labeled swap partition.  See "
16369 "L</swapon-device> for other notes."
16370 msgstr ""
16371
16372 #. type: =head2
16373 #: ../fish/guestfish-actions.pod:4903
16374 msgid "swapon-uuid"
16375 msgstr ""
16376
16377 #. type: verbatim
16378 #: ../fish/guestfish-actions.pod:4905
16379 #, no-wrap
16380 msgid ""
16381 " swapon-uuid uuid\n"
16382 "\n"
16383 msgstr ""
16384
16385 #. type: textblock
16386 #: ../fish/guestfish-actions.pod:4907
16387 msgid ""
16388 "This command enables swap to a swap partition with the given UUID.  See "
16389 "L</swapon-device> for other notes."
16390 msgstr ""
16391
16392 #. type: =head2
16393 #: ../fish/guestfish-actions.pod:4910
16394 msgid "sync"
16395 msgstr ""
16396
16397 #. type: verbatim
16398 #: ../fish/guestfish-actions.pod:4912
16399 #, no-wrap
16400 msgid ""
16401 " sync\n"
16402 "\n"
16403 msgstr ""
16404
16405 #. type: textblock
16406 #: ../fish/guestfish-actions.pod:4914 ../src/guestfs-actions.pod:7568
16407 msgid ""
16408 "This syncs the disk, so that any writes are flushed through to the "
16409 "underlying disk image."
16410 msgstr ""
16411
16412 #. type: textblock
16413 #: ../fish/guestfish-actions.pod:4917 ../src/guestfs-actions.pod:7571
16414 msgid ""
16415 "You should always call this if you have modified a disk image, before "
16416 "closing the handle."
16417 msgstr ""
16418
16419 #. type: =head2
16420 #: ../fish/guestfish-actions.pod:4920
16421 msgid "tail"
16422 msgstr ""
16423
16424 #. type: verbatim
16425 #: ../fish/guestfish-actions.pod:4922
16426 #, no-wrap
16427 msgid ""
16428 " tail path\n"
16429 "\n"
16430 msgstr ""
16431
16432 #. type: textblock
16433 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7584
16434 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16435 msgstr ""
16436
16437 #. type: =head2
16438 #: ../fish/guestfish-actions.pod:4930
16439 msgid "tail-n"
16440 msgstr ""
16441
16442 #. type: verbatim
16443 #: ../fish/guestfish-actions.pod:4932
16444 #, no-wrap
16445 msgid ""
16446 " tail-n nrlines path\n"
16447 "\n"
16448 msgstr ""
16449
16450 #. type: textblock
16451 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7603
16452 msgid ""
16453 "If the parameter C<nrlines> is a positive number, this returns the last "
16454 "C<nrlines> lines of the file C<path>."
16455 msgstr ""
16456
16457 #. type: textblock
16458 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7606
16459 msgid ""
16460 "If the parameter C<nrlines> is a negative number, this returns lines from "
16461 "the file C<path>, starting with the C<-nrlines>th line."
16462 msgstr ""
16463
16464 #. type: =head2
16465 #: ../fish/guestfish-actions.pod:4945
16466 msgid "tar-in"
16467 msgstr ""
16468
16469 #. type: verbatim
16470 #: ../fish/guestfish-actions.pod:4947
16471 #, no-wrap
16472 msgid ""
16473 " tar-in (tarfile|-) directory\n"
16474 "\n"
16475 msgstr ""
16476
16477 #. type: textblock
16478 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7627
16479 msgid ""
16480 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16481 "tar file) into C<directory>."
16482 msgstr ""
16483
16484 #. type: textblock
16485 #: ../fish/guestfish-actions.pod:4952
16486 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16487 msgstr ""
16488
16489 #. type: =head2
16490 #: ../fish/guestfish-actions.pod:4957
16491 msgid "tar-out"
16492 msgstr ""
16493
16494 #. type: verbatim
16495 #: ../fish/guestfish-actions.pod:4959
16496 #, no-wrap
16497 msgid ""
16498 " tar-out directory (tarfile|-)\n"
16499 "\n"
16500 msgstr ""
16501
16502 #. type: textblock
16503 #: ../fish/guestfish-actions.pod:4961 ../src/guestfs-actions.pod:7644
16504 msgid ""
16505 "This command packs the contents of C<directory> and downloads it to local "
16506 "file C<tarfile>."
16507 msgstr ""
16508
16509 #. type: textblock
16510 #: ../fish/guestfish-actions.pod:4964
16511 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16512 msgstr ""
16513
16514 #. type: =head2
16515 #: ../fish/guestfish-actions.pod:4969
16516 msgid "tgz-in"
16517 msgstr ""
16518
16519 #. type: verbatim
16520 #: ../fish/guestfish-actions.pod:4971
16521 #, no-wrap
16522 msgid ""
16523 " tgz-in (tarball|-) directory\n"
16524 "\n"
16525 msgstr ""
16526
16527 #. type: textblock
16528 #: ../fish/guestfish-actions.pod:4973 ../src/guestfs-actions.pod:7661
16529 msgid ""
16530 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16531 "tar file) into C<directory>."
16532 msgstr ""
16533
16534 #. type: textblock
16535 #: ../fish/guestfish-actions.pod:4976
16536 msgid "To upload an uncompressed tarball, use L</tar-in>."
16537 msgstr ""
16538
16539 #. type: =head2
16540 #: ../fish/guestfish-actions.pod:4980
16541 msgid "tgz-out"
16542 msgstr ""
16543
16544 #. type: verbatim
16545 #: ../fish/guestfish-actions.pod:4982
16546 #, no-wrap
16547 msgid ""
16548 " tgz-out directory (tarball|-)\n"
16549 "\n"
16550 msgstr ""
16551
16552 #. type: textblock
16553 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7677
16554 msgid ""
16555 "This command packs the contents of C<directory> and downloads it to local "
16556 "file C<tarball>."
16557 msgstr ""
16558
16559 #. type: textblock
16560 #: ../fish/guestfish-actions.pod:4987
16561 msgid "To download an uncompressed tarball, use L</tar-out>."
16562 msgstr ""
16563
16564 #. type: =head2
16565 #: ../fish/guestfish-actions.pod:4991
16566 msgid "touch"
16567 msgstr ""
16568
16569 #. type: verbatim
16570 #: ../fish/guestfish-actions.pod:4993
16571 #, no-wrap
16572 msgid ""
16573 " touch path\n"
16574 "\n"
16575 msgstr ""
16576
16577 #. type: textblock
16578 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7692
16579 msgid ""
16580 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16581 "timestamps on a file, or, if the file does not exist, to create a new "
16582 "zero-length file."
16583 msgstr ""
16584
16585 #. type: textblock
16586 #: ../fish/guestfish-actions.pod:4999 ../src/guestfs-actions.pod:7696
16587 msgid ""
16588 "This command only works on regular files, and will fail on other file types "
16589 "such as directories, symbolic links, block special etc."
16590 msgstr ""
16591
16592 #. type: =head2
16593 #: ../fish/guestfish-actions.pod:5002
16594 msgid "truncate"
16595 msgstr ""
16596
16597 #. type: verbatim
16598 #: ../fish/guestfish-actions.pod:5004
16599 #, no-wrap
16600 msgid ""
16601 " truncate path\n"
16602 "\n"
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
16607 msgid ""
16608 "This command truncates C<path> to a zero-length file.  The file must exist "
16609 "already."
16610 msgstr ""
16611
16612 #. type: =head2
16613 #: ../fish/guestfish-actions.pod:5009
16614 msgid "truncate-size"
16615 msgstr ""
16616
16617 #. type: verbatim
16618 #: ../fish/guestfish-actions.pod:5011
16619 #, no-wrap
16620 msgid ""
16621 " truncate-size path size\n"
16622 "\n"
16623 msgstr ""
16624
16625 #. type: textblock
16626 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7723
16627 msgid ""
16628 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16629 "already."
16630 msgstr ""
16631
16632 #. type: textblock
16633 #: ../fish/guestfish-actions.pod:5016
16634 msgid ""
16635 "If the current file size is less than C<size> then the file is extended to "
16636 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16637 "blocks are not allocated for the file until you write to it).  To create a "
16638 "non-sparse file of zeroes, use L</fallocate64> instead."
16639 msgstr ""
16640
16641 #. type: =head2
16642 #: ../fish/guestfish-actions.pod:5022
16643 msgid "tune2fs"
16644 msgstr ""
16645
16646 #. type: verbatim
16647 #: ../fish/guestfish-actions.pod:5024
16648 #, no-wrap
16649 msgid ""
16650 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] "
16651 "[errorbehavior:..] [group:N] [intervalbetweenchecks:N] "
16652 "[reservedblockspercentage:N] [lastmounteddirectory:..] "
16653 "[reservedblockscount:N] [user:N]\n"
16654 "\n"
16655 msgstr ""
16656
16657 #. type: textblock
16658 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7759
16659 msgid ""
16660 "This call allows you to adjust various filesystem parameters of an "
16661 "ext2/ext3/ext4 filesystem called C<device>."
16662 msgstr ""
16663
16664 #. type: textblock
16665 #: ../fish/guestfish-actions.pod:5035 ../src/guestfs-actions.pod:7768
16666 msgid ""
16667 "Force tune2fs to complete the operation even in the face of errors.  This is "
16668 "the same as the tune2fs C<-f> option."
16669 msgstr ""
16670
16671 #. type: =item
16672 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7771
16673 msgid "C<maxmountcount>"
16674 msgstr ""
16675
16676 #. type: textblock
16677 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7773
16678 msgid ""
16679 "Set the number of mounts after which the filesystem is checked by "
16680 "L<e2fsck(8)>.  If this is C<0> then the number of mounts is disregarded.  "
16681 "This is the same as the tune2fs C<-c> option."
16682 msgstr ""
16683
16684 #. type: =item
16685 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7777
16686 msgid "C<mountcount>"
16687 msgstr ""
16688
16689 #. type: textblock
16690 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7779
16691 msgid ""
16692 "Set the number of times the filesystem has been mounted.  This is the same "
16693 "as the tune2fs C<-C> option."
16694 msgstr ""
16695
16696 #. type: =item
16697 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7782
16698 msgid "C<errorbehavior>"
16699 msgstr ""
16700
16701 #. type: textblock
16702 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7784
16703 msgid ""
16704 "Change the behavior of the kernel code when errors are detected.  Possible "
16705 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
16706 "these options don't really make any difference, particularly for write "
16707 "errors."
16708 msgstr ""
16709
16710 #. type: textblock
16711 #: ../fish/guestfish-actions.pod:5056 ../src/guestfs-actions.pod:7789
16712 msgid "This is the same as the tune2fs C<-e> option."
16713 msgstr ""
16714
16715 #. type: =item
16716 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7791
16717 msgid "C<group>"
16718 msgstr ""
16719
16720 #. type: textblock
16721 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7793
16722 msgid ""
16723 "Set the group which can use reserved filesystem blocks.  This is the same as "
16724 "the tune2fs C<-g> option except that it can only be specified as a number."
16725 msgstr ""
16726
16727 #. type: =item
16728 #: ../fish/guestfish-actions.pod:5064 ../src/guestfs-actions.pod:7797
16729 msgid "C<intervalbetweenchecks>"
16730 msgstr ""
16731
16732 #. type: textblock
16733 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7799
16734 msgid ""
16735 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
16736 "option is passed as C<0> then time-dependent checking is disabled."
16737 msgstr ""
16738
16739 #. type: textblock
16740 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7803
16741 msgid "This is the same as the tune2fs C<-i> option."
16742 msgstr ""
16743
16744 #. type: =item
16745 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7805
16746 msgid "C<reservedblockspercentage>"
16747 msgstr ""
16748
16749 #. type: textblock
16750 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7807
16751 msgid ""
16752 "Set the percentage of the filesystem which may only be allocated by "
16753 "privileged processes.  This is the same as the tune2fs C<-m> option."
16754 msgstr ""
16755
16756 #. type: =item
16757 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7811
16758 msgid "C<lastmounteddirectory>"
16759 msgstr ""
16760
16761 #. type: textblock
16762 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7813
16763 msgid ""
16764 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
16765 "option."
16766 msgstr ""
16767
16768 #. type: =item
16769 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7816
16770 msgid ""
16771 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
16772 "is the same as the tune2fs C<-r> option."
16773 msgstr ""
16774
16775 #. type: =item
16776 #: ../fish/guestfish-actions.pod:5087 ../src/guestfs-actions.pod:7820
16777 msgid "C<user>"
16778 msgstr ""
16779
16780 #. type: textblock
16781 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7822
16782 msgid ""
16783 "Set the user who can use the reserved filesystem blocks.  This is the same "
16784 "as the tune2fs C<-u> option except that it can only be specified as a "
16785 "number."
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../fish/guestfish-actions.pod:5095
16790 msgid ""
16791 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
16792 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
16793 msgstr ""
16794
16795 #. type: =head2
16796 #: ../fish/guestfish-actions.pod:5101
16797 msgid "tune2fs-l"
16798 msgstr ""
16799
16800 #. type: verbatim
16801 #: ../fish/guestfish-actions.pod:5103
16802 #, no-wrap
16803 msgid ""
16804 " tune2fs-l device\n"
16805 "\n"
16806 msgstr ""
16807
16808 #. type: textblock
16809 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7862
16810 msgid ""
16811 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16812 "C<device>."
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7865
16817 msgid ""
16818 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16819 "for more details.  The list of fields returned isn't clearly defined, and "
16820 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16821 "and the filesystem itself."
16822 msgstr ""
16823
16824 #. type: =head2
16825 #: ../fish/guestfish-actions.pod:5113
16826 msgid "txz-in"
16827 msgstr ""
16828
16829 #. type: verbatim
16830 #: ../fish/guestfish-actions.pod:5115
16831 #, no-wrap
16832 msgid ""
16833 " txz-in (tarball|-) directory\n"
16834 "\n"
16835 msgstr ""
16836
16837 #. type: textblock
16838 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7885
16839 msgid ""
16840 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16841 "tar file) into C<directory>."
16842 msgstr ""
16843
16844 #. type: =head2
16845 #: ../fish/guestfish-actions.pod:5122
16846 msgid "txz-out"
16847 msgstr ""
16848
16849 #. type: verbatim
16850 #: ../fish/guestfish-actions.pod:5124
16851 #, no-wrap
16852 msgid ""
16853 " txz-out directory (tarball|-)\n"
16854 "\n"
16855 msgstr ""
16856
16857 #. type: textblock
16858 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7899
16859 msgid ""
16860 "This command packs the contents of C<directory> and downloads it to local "
16861 "file C<tarball> (as an xz compressed tar archive)."
16862 msgstr ""
16863
16864 #. type: =head2
16865 #: ../fish/guestfish-actions.pod:5131
16866 msgid "umask"
16867 msgstr ""
16868
16869 #. type: verbatim
16870 #: ../fish/guestfish-actions.pod:5133
16871 #, no-wrap
16872 msgid ""
16873 " umask mask\n"
16874 "\n"
16875 msgstr ""
16876
16877 #. type: textblock
16878 #: ../fish/guestfish-actions.pod:5135 ../src/guestfs-actions.pod:7912
16879 msgid ""
16880 "This function sets the mask used for creating new files and device nodes to "
16881 "C<mask & 0777>."
16882 msgstr ""
16883
16884 #. type: textblock
16885 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7915
16886 msgid ""
16887 "Typical umask values would be C<022> which creates new files with "
16888 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16889 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16890 msgstr ""
16891
16892 #. type: textblock
16893 #: ../fish/guestfish-actions.pod:5143 ../src/guestfs-actions.pod:7920
16894 msgid ""
16895 "The default umask is C<022>.  This is important because it means that "
16896 "directories and device nodes will be created with C<0644> or C<0755> mode "
16897 "even if you specify C<0777>."
16898 msgstr ""
16899
16900 #. type: textblock
16901 #: ../fish/guestfish-actions.pod:5147
16902 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16903 msgstr ""
16904
16905 #. type: textblock
16906 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7927
16907 msgid "This call returns the previous umask."
16908 msgstr ""
16909
16910 #. type: =head2
16911 #: ../fish/guestfish-actions.pod:5152
16912 msgid "umount"
16913 msgstr ""
16914
16915 #. type: =head2
16916 #: ../fish/guestfish-actions.pod:5154
16917 msgid "unmount"
16918 msgstr ""
16919
16920 #. type: verbatim
16921 #: ../fish/guestfish-actions.pod:5156
16922 #, no-wrap
16923 msgid ""
16924 " umount pathordevice\n"
16925 "\n"
16926 msgstr ""
16927
16928 #. type: textblock
16929 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7939
16930 msgid ""
16931 "This unmounts the given filesystem.  The filesystem may be specified either "
16932 "by its mountpoint (path) or the device which contains the filesystem."
16933 msgstr ""
16934
16935 #. type: =head2
16936 #: ../fish/guestfish-actions.pod:5162
16937 msgid "umount-all"
16938 msgstr ""
16939
16940 #. type: =head2
16941 #: ../fish/guestfish-actions.pod:5164
16942 msgid "unmount-all"
16943 msgstr ""
16944
16945 #. type: verbatim
16946 #: ../fish/guestfish-actions.pod:5166
16947 #, no-wrap
16948 msgid ""
16949 " umount-all\n"
16950 "\n"
16951 msgstr ""
16952
16953 #. type: textblock
16954 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7952
16955 msgid "This unmounts all mounted filesystems."
16956 msgstr ""
16957
16958 #. type: textblock
16959 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7954
16960 msgid "Some internal mounts are not unmounted by this call."
16961 msgstr ""
16962
16963 #. type: =head2
16964 #: ../fish/guestfish-actions.pod:5172
16965 msgid "upload"
16966 msgstr ""
16967
16968 #. type: verbatim
16969 #: ../fish/guestfish-actions.pod:5174
16970 #, no-wrap
16971 msgid ""
16972 " upload (filename|-) remotefilename\n"
16973 "\n"
16974 msgstr ""
16975
16976 #. type: textblock
16977 #: ../fish/guestfish-actions.pod:5176 ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7967 ../src/guestfs-actions.pod:7991
16978 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish-actions.pod:5181
16983 msgid "See also L</download>."
16984 msgstr ""
16985
16986 #. type: =head2
16987 #: ../fish/guestfish-actions.pod:5185
16988 msgid "upload-offset"
16989 msgstr ""
16990
16991 #. type: verbatim
16992 #: ../fish/guestfish-actions.pod:5187
16993 #, no-wrap
16994 msgid ""
16995 " upload-offset (filename|-) remotefilename offset\n"
16996 "\n"
16997 msgstr ""
16998
16999 #. type: textblock
17000 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7994
17001 msgid ""
17002 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17003 "The intention is to overwrite parts of existing files or devices, although "
17004 "if a non-existant file is specified then it is created with a \"hole\" "
17005 "before C<offset>.  The size of the data written is implicit in the size of "
17006 "the source C<filename>."
17007 msgstr ""
17008
17009 #. type: textblock
17010 #: ../fish/guestfish-actions.pod:5199
17011 msgid ""
17012 "Note that there is no limit on the amount of data that can be uploaded with "
17013 "this call, unlike with L</pwrite>, and this call always writes the full "
17014 "amount unless an error occurs."
17015 msgstr ""
17016
17017 #. type: textblock
17018 #: ../fish/guestfish-actions.pod:5204
17019 msgid "See also L</upload>, L</pwrite>."
17020 msgstr ""
17021
17022 #. type: =head2
17023 #: ../fish/guestfish-actions.pod:5208
17024 msgid "utimens"
17025 msgstr ""
17026
17027 #. type: verbatim
17028 #: ../fish/guestfish-actions.pod:5210
17029 #, no-wrap
17030 msgid ""
17031 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17032 "\n"
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8027
17037 msgid "This command sets the timestamps of a file with nanosecond precision."
17038 msgstr ""
17039
17040 #. type: textblock
17041 #: ../fish/guestfish-actions.pod:5215 ../src/guestfs-actions.pod:8030
17042 msgid ""
17043 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17044 "from the epoch."
17045 msgstr ""
17046
17047 #. type: textblock
17048 #: ../fish/guestfish-actions.pod:5218 ../src/guestfs-actions.pod:8033
17049 msgid ""
17050 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17051 "nanoseconds from the epoch."
17052 msgstr ""
17053
17054 #. type: textblock
17055 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:8036
17056 msgid ""
17057 "If the C<*nsecs> field contains the special value C<-1> then the "
17058 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17059 "ignored in this case)."
17060 msgstr ""
17061
17062 #. type: textblock
17063 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8040
17064 msgid ""
17065 "If the C<*nsecs> field contains the special value C<-2> then the "
17066 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17067 "in this case)."
17068 msgstr ""
17069
17070 #. type: =head2
17071 #: ../fish/guestfish-actions.pod:5229
17072 msgid "version"
17073 msgstr ""
17074
17075 #. type: verbatim
17076 #: ../fish/guestfish-actions.pod:5231
17077 #, no-wrap
17078 msgid ""
17079 " version\n"
17080 "\n"
17081 msgstr ""
17082
17083 #. type: textblock
17084 #: ../fish/guestfish-actions.pod:5233 ../src/guestfs-actions.pod:8053
17085 msgid "Return the libguestfs version number that the program is linked against."
17086 msgstr ""
17087
17088 #. type: textblock
17089 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8056
17090 msgid ""
17091 "Note that because of dynamic linking this is not necessarily the version of "
17092 "libguestfs that you compiled against.  You can compile the program, and then "
17093 "at runtime dynamically link against a completely different C<libguestfs.so> "
17094 "library."
17095 msgstr ""
17096
17097 #. type: textblock
17098 #: ../fish/guestfish-actions.pod:5241 ../src/guestfs-actions.pod:8061
17099 msgid ""
17100 "This call was added in version C<1.0.58>.  In previous versions of "
17101 "libguestfs there was no way to get the version number.  From C code you can "
17102 "use dynamic linker functions to find out if this symbol exists (if it "
17103 "doesn't, then it's an earlier version)."
17104 msgstr ""
17105
17106 #. type: textblock
17107 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8067
17108 msgid ""
17109 "The call returns a structure with four elements.  The first three (C<major>, "
17110 "C<minor> and C<release>) are numbers and correspond to the usual version "
17111 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17112 "but may be used for distro-specific information."
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../fish/guestfish-actions.pod:5253 ../src/guestfs-actions.pod:8073
17117 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
17118 msgstr ""
17119
17120 #. type: textblock
17121 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8076
17122 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish-actions.pod:5258
17127 msgid ""
17128 "I<Note:> Don't use this call to test for availability of features.  In "
17129 "enterprise distributions we backport features from later versions into "
17130 "earlier versions, making this an unreliable way to test for features.  Use "
17131 "L</available> instead."
17132 msgstr ""
17133
17134 #. type: =head2
17135 #: ../fish/guestfish-actions.pod:5264
17136 msgid "vfs-label"
17137 msgstr ""
17138
17139 #. type: verbatim
17140 #: ../fish/guestfish-actions.pod:5266
17141 #, no-wrap
17142 msgid ""
17143 " vfs-label device\n"
17144 "\n"
17145 msgstr ""
17146
17147 #. type: textblock
17148 #: ../fish/guestfish-actions.pod:5268 ../src/guestfs-actions.pod:8096
17149 msgid "This returns the filesystem label of the filesystem on C<device>."
17150 msgstr ""
17151
17152 #. type: textblock
17153 #: ../fish/guestfish-actions.pod:5271 ../src/guestfs-actions.pod:8099
17154 msgid "If the filesystem is unlabeled, this returns the empty string."
17155 msgstr ""
17156
17157 #. type: textblock
17158 #: ../fish/guestfish-actions.pod:5273
17159 msgid "To find a filesystem from the label, use L</findfs-label>."
17160 msgstr ""
17161
17162 #. type: =head2
17163 #: ../fish/guestfish-actions.pod:5275
17164 msgid "vfs-type"
17165 msgstr ""
17166
17167 #. type: verbatim
17168 #: ../fish/guestfish-actions.pod:5277
17169 #, no-wrap
17170 msgid ""
17171 " vfs-type device\n"
17172 "\n"
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8114
17177 msgid ""
17178 "This command gets the filesystem type corresponding to the filesystem on "
17179 "C<device>."
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8117
17184 msgid ""
17185 "For most filesystems, the result is the name of the Linux VFS module which "
17186 "would be used to mount this filesystem if you mounted it without specifying "
17187 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17188 msgstr ""
17189
17190 #. type: =head2
17191 #: ../fish/guestfish-actions.pod:5287
17192 msgid "vfs-uuid"
17193 msgstr ""
17194
17195 #. type: verbatim
17196 #: ../fish/guestfish-actions.pod:5289
17197 #, no-wrap
17198 msgid ""
17199 " vfs-uuid device\n"
17200 "\n"
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../fish/guestfish-actions.pod:5291 ../src/guestfs-actions.pod:8133
17205 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17206 msgstr ""
17207
17208 #. type: textblock
17209 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8136
17210 msgid "If the filesystem does not have a UUID, this returns the empty string."
17211 msgstr ""
17212
17213 #. type: textblock
17214 #: ../fish/guestfish-actions.pod:5296
17215 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17216 msgstr ""
17217
17218 #. type: =head2
17219 #: ../fish/guestfish-actions.pod:5298
17220 msgid "vg-activate"
17221 msgstr ""
17222
17223 #. type: verbatim
17224 #: ../fish/guestfish-actions.pod:5300
17225 #, no-wrap
17226 msgid ""
17227 " vg-activate true|false 'volgroups ...'\n"
17228 "\n"
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
17233 msgid ""
17234 "This command activates or (if C<activate> is false) deactivates all logical "
17235 "volumes in the listed volume groups C<volgroups>."
17236 msgstr ""
17237
17238 #. type: textblock
17239 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
17240 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17241 msgstr ""
17242
17243 #. type: textblock
17244 #: ../fish/guestfish-actions.pod:5307 ../src/guestfs-actions.pod:8157
17245 msgid ""
17246 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17247 "activated or deactivated."
17248 msgstr ""
17249
17250 #. type: =head2
17251 #: ../fish/guestfish-actions.pod:5310
17252 msgid "vg-activate-all"
17253 msgstr ""
17254
17255 #. type: verbatim
17256 #: ../fish/guestfish-actions.pod:5312
17257 #, no-wrap
17258 msgid ""
17259 " vg-activate-all true|false\n"
17260 "\n"
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish-actions.pod:5314 ../src/guestfs-actions.pod:8170
17265 msgid ""
17266 "This command activates or (if C<activate> is false) deactivates all logical "
17267 "volumes in all volume groups."
17268 msgstr ""
17269
17270 #. type: textblock
17271 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8173
17272 msgid "This command is the same as running C<vgchange -a y|n>"
17273 msgstr ""
17274
17275 #. type: =head2
17276 #: ../fish/guestfish-actions.pod:5319
17277 msgid "vgcreate"
17278 msgstr ""
17279
17280 #. type: verbatim
17281 #: ../fish/guestfish-actions.pod:5321
17282 #, no-wrap
17283 msgid ""
17284 " vgcreate volgroup 'physvols ...'\n"
17285 "\n"
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish-actions.pod:5323 ../src/guestfs-actions.pod:8186
17290 msgid ""
17291 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17292 "of physical volumes C<physvols>."
17293 msgstr ""
17294
17295 #. type: =head2
17296 #: ../fish/guestfish-actions.pod:5326
17297 msgid "vglvuuids"
17298 msgstr ""
17299
17300 #. type: verbatim
17301 #: ../fish/guestfish-actions.pod:5328
17302 #, no-wrap
17303 msgid ""
17304 " vglvuuids vgname\n"
17305 "\n"
17306 msgstr ""
17307
17308 #. type: textblock
17309 #: ../fish/guestfish-actions.pod:5330 ../src/guestfs-actions.pod:8199
17310 msgid ""
17311 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17312 "volumes created in this volume group."
17313 msgstr ""
17314
17315 #. type: textblock
17316 #: ../fish/guestfish-actions.pod:5333
17317 msgid ""
17318 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17319 "logical volumes and volume groups."
17320 msgstr ""
17321
17322 #. type: textblock
17323 #: ../fish/guestfish-actions.pod:5336
17324 msgid "See also L</vgpvuuids>."
17325 msgstr ""
17326
17327 #. type: =head2
17328 #: ../fish/guestfish-actions.pod:5338
17329 msgid "vgpvuuids"
17330 msgstr ""
17331
17332 #. type: verbatim
17333 #: ../fish/guestfish-actions.pod:5340
17334 #, no-wrap
17335 msgid ""
17336 " vgpvuuids vgname\n"
17337 "\n"
17338 msgstr ""
17339
17340 #. type: textblock
17341 #: ../fish/guestfish-actions.pod:5342 ../src/guestfs-actions.pod:8219
17342 msgid ""
17343 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17344 "volumes that this volume group resides on."
17345 msgstr ""
17346
17347 #. type: textblock
17348 #: ../fish/guestfish-actions.pod:5345
17349 msgid ""
17350 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17351 "physical volumes and volume groups."
17352 msgstr ""
17353
17354 #. type: textblock
17355 #: ../fish/guestfish-actions.pod:5348
17356 msgid "See also L</vglvuuids>."
17357 msgstr ""
17358
17359 #. type: =head2
17360 #: ../fish/guestfish-actions.pod:5350
17361 msgid "vgremove"
17362 msgstr ""
17363
17364 #. type: verbatim
17365 #: ../fish/guestfish-actions.pod:5352
17366 #, no-wrap
17367 msgid ""
17368 " vgremove vgname\n"
17369 "\n"
17370 msgstr ""
17371
17372 #. type: textblock
17373 #: ../fish/guestfish-actions.pod:5354 ../src/guestfs-actions.pod:8239
17374 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17375 msgstr ""
17376
17377 #. type: textblock
17378 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8241
17379 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17380 msgstr ""
17381
17382 #. type: =head2
17383 #: ../fish/guestfish-actions.pod:5359
17384 msgid "vgrename"
17385 msgstr ""
17386
17387 #. type: verbatim
17388 #: ../fish/guestfish-actions.pod:5361
17389 #, no-wrap
17390 msgid ""
17391 " vgrename volgroup newvolgroup\n"
17392 "\n"
17393 msgstr ""
17394
17395 #. type: textblock
17396 #: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8255
17397 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17398 msgstr ""
17399
17400 #. type: =head2
17401 #: ../fish/guestfish-actions.pod:5365
17402 msgid "vgs"
17403 msgstr ""
17404
17405 #. type: verbatim
17406 #: ../fish/guestfish-actions.pod:5367
17407 #, no-wrap
17408 msgid ""
17409 " vgs\n"
17410 "\n"
17411 msgstr ""
17412
17413 #. type: textblock
17414 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8266
17415 msgid ""
17416 "List all the volumes groups detected.  This is the equivalent of the "
17417 "L<vgs(8)> command."
17418 msgstr ""
17419
17420 #. type: textblock
17421 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8269
17422 msgid ""
17423 "This returns a list of just the volume group names that were detected "
17424 "(eg. C<VolGroup00>)."
17425 msgstr ""
17426
17427 #. type: textblock
17428 #: ../fish/guestfish-actions.pod:5375
17429 msgid "See also L</vgs-full>."
17430 msgstr ""
17431
17432 #. type: =head2
17433 #: ../fish/guestfish-actions.pod:5377
17434 msgid "vgs-full"
17435 msgstr ""
17436
17437 #. type: verbatim
17438 #: ../fish/guestfish-actions.pod:5379
17439 #, no-wrap
17440 msgid ""
17441 " vgs-full\n"
17442 "\n"
17443 msgstr ""
17444
17445 #. type: textblock
17446 #: ../fish/guestfish-actions.pod:5381 ../src/guestfs-actions.pod:8285
17447 msgid ""
17448 "List all the volumes groups detected.  This is the equivalent of the "
17449 "L<vgs(8)> command.  The \"full\" version includes all fields."
17450 msgstr ""
17451
17452 #. type: =head2
17453 #: ../fish/guestfish-actions.pod:5384
17454 msgid "vgscan"
17455 msgstr ""
17456
17457 #. type: verbatim
17458 #: ../fish/guestfish-actions.pod:5386
17459 #, no-wrap
17460 msgid ""
17461 " vgscan\n"
17462 "\n"
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish-actions.pod:5388 ../src/guestfs-actions.pod:8299
17467 msgid ""
17468 "This rescans all block devices and rebuilds the list of LVM physical "
17469 "volumes, volume groups and logical volumes."
17470 msgstr ""
17471
17472 #. type: =head2
17473 #: ../fish/guestfish-actions.pod:5391
17474 msgid "vguuid"
17475 msgstr ""
17476
17477 #. type: verbatim
17478 #: ../fish/guestfish-actions.pod:5393
17479 #, no-wrap
17480 msgid ""
17481 " vguuid vgname\n"
17482 "\n"
17483 msgstr ""
17484
17485 #. type: textblock
17486 #: ../fish/guestfish-actions.pod:5395 ../src/guestfs-actions.pod:8312
17487 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17488 msgstr ""
17489
17490 #. type: =head2
17491 #: ../fish/guestfish-actions.pod:5397
17492 msgid "wc-c"
17493 msgstr ""
17494
17495 #. type: verbatim
17496 #: ../fish/guestfish-actions.pod:5399
17497 #, no-wrap
17498 msgid ""
17499 " wc-c path\n"
17500 "\n"
17501 msgstr ""
17502
17503 #. type: textblock
17504 #: ../fish/guestfish-actions.pod:5401 ../src/guestfs-actions.pod:8352
17505 msgid ""
17506 "This command counts the characters in a file, using the C<wc -c> external "
17507 "command."
17508 msgstr ""
17509
17510 #. type: =head2
17511 #: ../fish/guestfish-actions.pod:5404
17512 msgid "wc-l"
17513 msgstr ""
17514
17515 #. type: verbatim
17516 #: ../fish/guestfish-actions.pod:5406
17517 #, no-wrap
17518 msgid ""
17519 " wc-l path\n"
17520 "\n"
17521 msgstr ""
17522
17523 #. type: textblock
17524 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8365
17525 msgid ""
17526 "This command counts the lines in a file, using the C<wc -l> external "
17527 "command."
17528 msgstr ""
17529
17530 #. type: =head2
17531 #: ../fish/guestfish-actions.pod:5411
17532 msgid "wc-w"
17533 msgstr ""
17534
17535 #. type: verbatim
17536 #: ../fish/guestfish-actions.pod:5413
17537 #, no-wrap
17538 msgid ""
17539 " wc-w path\n"
17540 "\n"
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish-actions.pod:5415 ../src/guestfs-actions.pod:8378
17545 msgid ""
17546 "This command counts the words in a file, using the C<wc -w> external "
17547 "command."
17548 msgstr ""
17549
17550 #. type: =head2
17551 #: ../fish/guestfish-actions.pod:5418
17552 msgid "write"
17553 msgstr ""
17554
17555 #. type: verbatim
17556 #: ../fish/guestfish-actions.pod:5420
17557 #, no-wrap
17558 msgid ""
17559 " write path content\n"
17560 "\n"
17561 msgstr ""
17562
17563 #. type: textblock
17564 #: ../fish/guestfish-actions.pod:5422 ../src/guestfs-actions.pod:8393
17565 msgid ""
17566 "This call creates a file called C<path>.  The content of the file is the "
17567 "string C<content> (which can contain any 8 bit data)."
17568 msgstr ""
17569
17570 #. type: textblock
17571 #: ../fish/guestfish-actions.pod:5425
17572 msgid "See also L</write-append>."
17573 msgstr ""
17574
17575 #. type: =head2
17576 #: ../fish/guestfish-actions.pod:5430
17577 msgid "write-append"
17578 msgstr ""
17579
17580 #. type: verbatim
17581 #: ../fish/guestfish-actions.pod:5432
17582 #, no-wrap
17583 msgid ""
17584 " write-append path content\n"
17585 "\n"
17586 msgstr ""
17587
17588 #. type: textblock
17589 #: ../fish/guestfish-actions.pod:5434 ../src/guestfs-actions.pod:8413
17590 msgid ""
17591 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17592 "not exist, then a new file is created."
17593 msgstr ""
17594
17595 #. type: textblock
17596 #: ../fish/guestfish-actions.pod:5437
17597 msgid "See also L</write>."
17598 msgstr ""
17599
17600 #. type: =head2
17601 #: ../fish/guestfish-actions.pod:5442
17602 msgid "write-file"
17603 msgstr ""
17604
17605 #. type: verbatim
17606 #: ../fish/guestfish-actions.pod:5444
17607 #, no-wrap
17608 msgid ""
17609 " write-file path content size\n"
17610 "\n"
17611 msgstr ""
17612
17613 #. type: textblock
17614 #: ../fish/guestfish-actions.pod:5446 ../src/guestfs-actions.pod:8440
17615 msgid ""
17616 "This call creates a file called C<path>.  The contents of the file is the "
17617 "string C<content> (which can contain any 8 bit data), with length C<size>."
17618 msgstr ""
17619
17620 #. type: textblock
17621 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8444
17622 msgid ""
17623 "As a special case, if C<size> is C<0> then the length is calculated using "
17624 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17625 msgstr ""
17626
17627 #. type: textblock
17628 #: ../fish/guestfish-actions.pod:5454 ../src/guestfs-actions.pod:8448
17629 msgid ""
17630 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17631 "I<not> work, even if the length is specified."
17632 msgstr ""
17633
17634 #. type: textblock
17635 #: ../fish/guestfish-actions.pod:5460
17636 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
17637 msgstr ""
17638
17639 #. type: =head2
17640 #: ../fish/guestfish-actions.pod:5467
17641 msgid "zegrep"
17642 msgstr ""
17643
17644 #. type: verbatim
17645 #: ../fish/guestfish-actions.pod:5469
17646 #, no-wrap
17647 msgid ""
17648 " zegrep regex path\n"
17649 "\n"
17650 msgstr ""
17651
17652 #. type: textblock
17653 #: ../fish/guestfish-actions.pod:5471 ../src/guestfs-actions.pod:8465
17654 msgid "This calls the external C<zegrep> program and returns the matching lines."
17655 msgstr ""
17656
17657 #. type: =head2
17658 #: ../fish/guestfish-actions.pod:5477
17659 msgid "zegrepi"
17660 msgstr ""
17661
17662 #. type: verbatim
17663 #: ../fish/guestfish-actions.pod:5479
17664 #, no-wrap
17665 msgid ""
17666 " zegrepi regex path\n"
17667 "\n"
17668 msgstr ""
17669
17670 #. type: textblock
17671 #: ../fish/guestfish-actions.pod:5481 ../src/guestfs-actions.pod:8484
17672 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17673 msgstr ""
17674
17675 #. type: =head2
17676 #: ../fish/guestfish-actions.pod:5487
17677 msgid "zero"
17678 msgstr ""
17679
17680 #. type: verbatim
17681 #: ../fish/guestfish-actions.pod:5489
17682 #, no-wrap
17683 msgid ""
17684 " zero device\n"
17685 "\n"
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish-actions.pod:5491 ../src/guestfs-actions.pod:8502
17690 msgid "This command writes zeroes over the first few blocks of C<device>."
17691 msgstr ""
17692
17693 #. type: textblock
17694 #: ../fish/guestfish-actions.pod:5493 ../src/guestfs-actions.pod:8504
17695 msgid ""
17696 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17697 "securely wipe the device).  It should be sufficient to remove any partition "
17698 "tables, filesystem superblocks and so on."
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish-actions.pod:5497 ../fish/guestfish-actions.pod:5512 ../src/guestfs-actions.pod:8508 ../src/guestfs-actions.pod:8534
17703 msgid ""
17704 "If blocks are already zero, then this command avoids writing zeroes.  This "
17705 "prevents the underlying device from becoming non-sparse or growing "
17706 "unnecessarily."
17707 msgstr ""
17708
17709 #. type: textblock
17710 #: ../fish/guestfish-actions.pod:5501
17711 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17712 msgstr ""
17713
17714 #. type: =head2
17715 #: ../fish/guestfish-actions.pod:5504
17716 msgid "zero-device"
17717 msgstr ""
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish-actions.pod:5506
17721 #, no-wrap
17722 msgid ""
17723 " zero-device device\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish-actions.pod:5508
17729 msgid ""
17730 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17731 "which just zeroes the first few blocks of a device."
17732 msgstr ""
17733
17734 #. type: =head2
17735 #: ../fish/guestfish-actions.pod:5516
17736 msgid "zerofree"
17737 msgstr ""
17738
17739 #. type: verbatim
17740 #: ../fish/guestfish-actions.pod:5518
17741 #, no-wrap
17742 msgid ""
17743 " zerofree device\n"
17744 "\n"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish-actions.pod:5520 ../src/guestfs-actions.pod:8553
17749 msgid ""
17750 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17751 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17752 "possible to compress the filesystem more effectively."
17753 msgstr ""
17754
17755 #. type: textblock
17756 #: ../fish/guestfish-actions.pod:5525 ../src/guestfs-actions.pod:8558
17757 msgid "You should B<not> run this program if the filesystem is mounted."
17758 msgstr ""
17759
17760 #. type: textblock
17761 #: ../fish/guestfish-actions.pod:5528 ../src/guestfs-actions.pod:8561
17762 msgid ""
17763 "It is possible that using this program can damage the filesystem or data on "
17764 "the filesystem."
17765 msgstr ""
17766
17767 #. type: =head2
17768 #: ../fish/guestfish-actions.pod:5531
17769 msgid "zfgrep"
17770 msgstr ""
17771
17772 #. type: verbatim
17773 #: ../fish/guestfish-actions.pod:5533
17774 #, no-wrap
17775 msgid ""
17776 " zfgrep pattern path\n"
17777 "\n"
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8575
17782 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17783 msgstr ""
17784
17785 #. type: =head2
17786 #: ../fish/guestfish-actions.pod:5541
17787 msgid "zfgrepi"
17788 msgstr ""
17789
17790 #. type: verbatim
17791 #: ../fish/guestfish-actions.pod:5543
17792 #, no-wrap
17793 msgid ""
17794 " zfgrepi pattern path\n"
17795 "\n"
17796 msgstr ""
17797
17798 #. type: textblock
17799 #: ../fish/guestfish-actions.pod:5545 ../src/guestfs-actions.pod:8594
17800 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17801 msgstr ""
17802
17803 #. type: =head2
17804 #: ../fish/guestfish-actions.pod:5551
17805 msgid "zfile"
17806 msgstr ""
17807
17808 #. type: verbatim
17809 #: ../fish/guestfish-actions.pod:5553
17810 #, no-wrap
17811 msgid ""
17812 " zfile meth path\n"
17813 "\n"
17814 msgstr ""
17815
17816 #. type: textblock
17817 #: ../fish/guestfish-actions.pod:5555 ../src/guestfs-actions.pod:8620
17818 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17819 msgstr ""
17820
17821 #. type: textblock
17822 #: ../fish/guestfish-actions.pod:5558 ../src/guestfs-actions.pod:8623
17823 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../fish/guestfish-actions.pod:5560
17828 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
17829 msgstr ""
17830
17831 #. type: textblock
17832 #: ../fish/guestfish-actions.pod:5563
17833 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
17834 msgstr ""
17835
17836 #. type: =head2
17837 #: ../fish/guestfish-actions.pod:5570
17838 msgid "zgrep"
17839 msgstr ""
17840
17841 #. type: verbatim
17842 #: ../fish/guestfish-actions.pod:5572
17843 #, no-wrap
17844 msgid ""
17845 " zgrep regex path\n"
17846 "\n"
17847 msgstr ""
17848
17849 #. type: textblock
17850 #: ../fish/guestfish-actions.pod:5574 ../src/guestfs-actions.pod:8640
17851 msgid "This calls the external C<zgrep> program and returns the matching lines."
17852 msgstr ""
17853
17854 #. type: =head2
17855 #: ../fish/guestfish-actions.pod:5580
17856 msgid "zgrepi"
17857 msgstr ""
17858
17859 #. type: verbatim
17860 #: ../fish/guestfish-actions.pod:5582
17861 #, no-wrap
17862 msgid ""
17863 " zgrepi regex path\n"
17864 "\n"
17865 msgstr ""
17866
17867 #. type: textblock
17868 #: ../fish/guestfish-actions.pod:5584 ../src/guestfs-actions.pod:8659
17869 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
17870 msgstr ""
17871
17872 #. type: =head2
17873 #: ../fish/guestfish-commands.pod:1
17874 msgid "alloc"
17875 msgstr ""
17876
17877 #. type: =head2
17878 #: ../fish/guestfish-commands.pod:3
17879 msgid "allocate"
17880 msgstr ""
17881
17882 #. type: verbatim
17883 #: ../fish/guestfish-commands.pod:5
17884 #, no-wrap
17885 msgid ""
17886 " alloc filename size\n"
17887 "\n"
17888 msgstr ""
17889
17890 #. type: textblock
17891 #: ../fish/guestfish-commands.pod:7
17892 msgid ""
17893 "This creates an empty (zeroed) file of the given size, and then adds so it "
17894 "can be further examined."
17895 msgstr ""
17896
17897 #. type: textblock
17898 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17899 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17900 msgstr ""
17901
17902 #. type: textblock
17903 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17904 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17905 msgstr ""
17906
17907 #. type: textblock
17908 #: ../fish/guestfish-commands.pod:14
17909 msgid ""
17910 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17911 "image, see L</PREPARED DISK IMAGES>."
17912 msgstr ""
17913
17914 #. type: =head2
17915 #: ../fish/guestfish-commands.pod:17
17916 msgid "copy-in"
17917 msgstr ""
17918
17919 #. type: verbatim
17920 #: ../fish/guestfish-commands.pod:19
17921 #, no-wrap
17922 msgid ""
17923 " copy-in local [local ...] /remotedir\n"
17924 "\n"
17925 msgstr ""
17926
17927 #. type: textblock
17928 #: ../fish/guestfish-commands.pod:21
17929 msgid ""
17930 "C<copy-in> copies local files or directories recursively into the disk "
17931 "image, placing them in the directory called C</remotedir> (which must "
17932 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17933 "other commands as necessary."
17934 msgstr ""
17935
17936 #. type: textblock
17937 #: ../fish/guestfish-commands.pod:26
17938 msgid ""
17939 "Multiple local files and directories can be specified, but the last "
17940 "parameter must always be a remote directory.  Wildcards cannot be used."
17941 msgstr ""
17942
17943 #. type: =head2
17944 #: ../fish/guestfish-commands.pod:30
17945 msgid "copy-out"
17946 msgstr ""
17947
17948 #. type: verbatim
17949 #: ../fish/guestfish-commands.pod:32
17950 #, no-wrap
17951 msgid ""
17952 " copy-out remote [remote ...] localdir\n"
17953 "\n"
17954 msgstr ""
17955
17956 #. type: textblock
17957 #: ../fish/guestfish-commands.pod:34
17958 msgid ""
17959 "C<copy-out> copies remote files or directories recursively out of the disk "
17960 "image, placing them on the host disk in a local directory called C<localdir> "
17961 "(which must exist).  This guestfish meta-command turns into a sequence of "
17962 "L</download>, L</tar-out> and other commands as necessary."
17963 msgstr ""
17964
17965 #. type: textblock
17966 #: ../fish/guestfish-commands.pod:40
17967 msgid ""
17968 "Multiple remote files and directories can be specified, but the last "
17969 "parameter must always be a local directory.  To download to the current "
17970 "directory, use C<.> as in:"
17971 msgstr ""
17972
17973 #. type: verbatim
17974 #: ../fish/guestfish-commands.pod:44
17975 #, no-wrap
17976 msgid ""
17977 " copy-out /home .\n"
17978 "\n"
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish-commands.pod:46
17983 msgid ""
17984 "Wildcards cannot be used in the ordinary command, but you can use them with "
17985 "the help of L</glob> like this:"
17986 msgstr ""
17987
17988 #. type: verbatim
17989 #: ../fish/guestfish-commands.pod:49
17990 #, no-wrap
17991 msgid ""
17992 " glob copy-out /home/* .\n"
17993 "\n"
17994 msgstr ""
17995
17996 #. type: =head2
17997 #: ../fish/guestfish-commands.pod:51
17998 msgid "display"
17999 msgstr ""
18000
18001 #. type: verbatim
18002 #: ../fish/guestfish-commands.pod:53
18003 #, no-wrap
18004 msgid ""
18005 " display filename\n"
18006 "\n"
18007 msgstr ""
18008
18009 #. type: textblock
18010 #: ../fish/guestfish-commands.pod:55
18011 msgid ""
18012 "Use C<display> (a graphical display program) to display an image file.  It "
18013 "downloads the file, and runs C<display> on it."
18014 msgstr ""
18015
18016 #. type: textblock
18017 #: ../fish/guestfish-commands.pod:58
18018 msgid ""
18019 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18020 "environment variable.  For example to use the GNOME display program:"
18021 msgstr ""
18022
18023 #. type: verbatim
18024 #: ../fish/guestfish-commands.pod:61
18025 #, no-wrap
18026 msgid ""
18027 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18028 "\n"
18029 msgstr ""
18030
18031 #. type: textblock
18032 #: ../fish/guestfish-commands.pod:63
18033 msgid "See also L<display(1)>."
18034 msgstr ""
18035
18036 #. type: =head2
18037 #: ../fish/guestfish-commands.pod:65
18038 msgid "echo"
18039 msgstr ""
18040
18041 #. type: verbatim
18042 #: ../fish/guestfish-commands.pod:67
18043 #, no-wrap
18044 msgid ""
18045 " echo [params ...]\n"
18046 "\n"
18047 msgstr ""
18048
18049 #. type: textblock
18050 #: ../fish/guestfish-commands.pod:69
18051 msgid "This echos the parameters to the terminal."
18052 msgstr ""
18053
18054 #. type: =head2
18055 #: ../fish/guestfish-commands.pod:71
18056 msgid "edit"
18057 msgstr ""
18058
18059 #. type: =head2
18060 #: ../fish/guestfish-commands.pod:73
18061 msgid "vi"
18062 msgstr ""
18063
18064 #. type: =head2
18065 #: ../fish/guestfish-commands.pod:75
18066 msgid "emacs"
18067 msgstr ""
18068
18069 #. type: verbatim
18070 #: ../fish/guestfish-commands.pod:77
18071 #, no-wrap
18072 msgid ""
18073 " edit filename\n"
18074 "\n"
18075 msgstr ""
18076
18077 #. type: textblock
18078 #: ../fish/guestfish-commands.pod:79
18079 msgid ""
18080 "This is used to edit a file.  It downloads the file, edits it locally using "
18081 "your editor, then uploads the result."
18082 msgstr ""
18083
18084 #. type: textblock
18085 #: ../fish/guestfish-commands.pod:82
18086 msgid ""
18087 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18088 "or C<emacs> you will get those corresponding editors."
18089 msgstr ""
18090
18091 #. type: =head2
18092 #: ../fish/guestfish-commands.pod:86
18093 msgid "glob"
18094 msgstr ""
18095
18096 #. type: verbatim
18097 #: ../fish/guestfish-commands.pod:88
18098 #, no-wrap
18099 msgid ""
18100 " glob command args...\n"
18101 "\n"
18102 msgstr ""
18103
18104 #. type: textblock
18105 #: ../fish/guestfish-commands.pod:90
18106 msgid ""
18107 "Expand wildcards in any paths in the args list, and run C<command> "
18108 "repeatedly on each matching path."
18109 msgstr ""
18110
18111 #. type: textblock
18112 #: ../fish/guestfish-commands.pod:93
18113 msgid "See L</WILDCARDS AND GLOBBING>."
18114 msgstr ""
18115
18116 #. type: =head2
18117 #: ../fish/guestfish-commands.pod:95
18118 msgid "hexedit"
18119 msgstr ""
18120
18121 #. type: verbatim
18122 #: ../fish/guestfish-commands.pod:97
18123 #, no-wrap
18124 msgid ""
18125 " hexedit <filename|device>\n"
18126 " hexedit <filename|device> <max>\n"
18127 " hexedit <filename|device> <start> <max>\n"
18128 "\n"
18129 msgstr ""
18130
18131 #. type: textblock
18132 #: ../fish/guestfish-commands.pod:101
18133 msgid ""
18134 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18135 "device."
18136 msgstr ""
18137
18138 #. type: textblock
18139 #: ../fish/guestfish-commands.pod:104
18140 msgid ""
18141 "This command works by downloading potentially the whole file or device, "
18142 "editing it locally, then uploading it.  If the file or device is large, you "
18143 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18144 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18145 "usual modifiers allowed such as C<1M> (1 megabyte)."
18146 msgstr ""
18147
18148 #. type: textblock
18149 #: ../fish/guestfish-commands.pod:111
18150 msgid "For example to edit the first few sectors of a disk you might do:"
18151 msgstr ""
18152
18153 #. type: verbatim
18154 #: ../fish/guestfish-commands.pod:114
18155 #, no-wrap
18156 msgid ""
18157 " hexedit /dev/sda 1M\n"
18158 "\n"
18159 msgstr ""
18160
18161 #. type: textblock
18162 #: ../fish/guestfish-commands.pod:116
18163 msgid ""
18164 "which would allow you to edit anywhere within the first megabyte of the "
18165 "disk."
18166 msgstr ""
18167
18168 #. type: textblock
18169 #: ../fish/guestfish-commands.pod:119
18170 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18171 msgstr ""
18172
18173 #. type: verbatim
18174 #: ../fish/guestfish-commands.pod:121
18175 #, no-wrap
18176 msgid ""
18177 " hexedit /dev/sda1 0x400 0x400\n"
18178 "\n"
18179 msgstr ""
18180
18181 #. type: textblock
18182 #: ../fish/guestfish-commands.pod:123
18183 msgid "(assuming the superblock is in the standard location)."
18184 msgstr ""
18185
18186 #. type: textblock
18187 #: ../fish/guestfish-commands.pod:125
18188 msgid ""
18189 "This command requires the external L<hexedit(1)> program.  You can specify "
18190 "another program to use by setting the C<HEXEDITOR> environment variable."
18191 msgstr ""
18192
18193 #. type: textblock
18194 #: ../fish/guestfish-commands.pod:129
18195 msgid "See also L</hexdump>."
18196 msgstr ""
18197
18198 #. type: =head2
18199 #: ../fish/guestfish-commands.pod:131
18200 msgid "lcd"
18201 msgstr ""
18202
18203 #. type: verbatim
18204 #: ../fish/guestfish-commands.pod:133
18205 #, no-wrap
18206 msgid ""
18207 " lcd directory\n"
18208 "\n"
18209 msgstr ""
18210
18211 #. type: textblock
18212 #: ../fish/guestfish-commands.pod:135
18213 msgid "Change the local directory, ie. the current directory of guestfish itself."
18214 msgstr ""
18215
18216 #. type: textblock
18217 #: ../fish/guestfish-commands.pod:138
18218 msgid "Note that C<!cd> won't do what you might expect."
18219 msgstr ""
18220
18221 #. type: =head2
18222 #: ../fish/guestfish-commands.pod:140
18223 msgid "man"
18224 msgstr ""
18225
18226 #. type: =head2
18227 #: ../fish/guestfish-commands.pod:142
18228 msgid "manual"
18229 msgstr ""
18230
18231 #. type: verbatim
18232 #: ../fish/guestfish-commands.pod:144
18233 #, no-wrap
18234 msgid ""
18235 "  man\n"
18236 "\n"
18237 msgstr ""
18238
18239 #. type: textblock
18240 #: ../fish/guestfish-commands.pod:146
18241 msgid "Opens the manual page for guestfish."
18242 msgstr ""
18243
18244 #. type: =head2
18245 #: ../fish/guestfish-commands.pod:148
18246 msgid "more"
18247 msgstr ""
18248
18249 #. type: =head2
18250 #: ../fish/guestfish-commands.pod:150
18251 msgid "less"
18252 msgstr ""
18253
18254 #. type: verbatim
18255 #: ../fish/guestfish-commands.pod:152
18256 #, no-wrap
18257 msgid ""
18258 " more filename\n"
18259 "\n"
18260 msgstr ""
18261
18262 #. type: verbatim
18263 #: ../fish/guestfish-commands.pod:154
18264 #, no-wrap
18265 msgid ""
18266 " less filename\n"
18267 "\n"
18268 msgstr ""
18269
18270 #. type: textblock
18271 #: ../fish/guestfish-commands.pod:156
18272 msgid "This is used to view a file."
18273 msgstr ""
18274
18275 #. type: textblock
18276 #: ../fish/guestfish-commands.pod:158
18277 msgid ""
18278 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18279 "C<less> you will get the C<less> command specifically."
18280 msgstr ""
18281
18282 #. type: =head2
18283 #: ../fish/guestfish-commands.pod:161
18284 msgid "reopen"
18285 msgstr ""
18286
18287 #. type: verbatim
18288 #: ../fish/guestfish-commands.pod:163
18289 #, no-wrap
18290 msgid ""
18291 "  reopen\n"
18292 "\n"
18293 msgstr ""
18294
18295 #. type: textblock
18296 #: ../fish/guestfish-commands.pod:165
18297 msgid ""
18298 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18299 "normally, because the handle is closed properly when guestfish exits.  "
18300 "However this is occasionally useful for testing."
18301 msgstr ""
18302
18303 #. type: =head2
18304 #: ../fish/guestfish-commands.pod:169
18305 msgid "setenv"
18306 msgstr ""
18307
18308 #. type: verbatim
18309 #: ../fish/guestfish-commands.pod:171
18310 #, no-wrap
18311 msgid ""
18312 "  setenv VAR value\n"
18313 "\n"
18314 msgstr ""
18315
18316 #. type: textblock
18317 #: ../fish/guestfish-commands.pod:173
18318 msgid "Set the environment variable C<VAR> to the string C<value>."
18319 msgstr ""
18320
18321 #. type: textblock
18322 #: ../fish/guestfish-commands.pod:175
18323 msgid "To print the value of an environment variable use a shell command such as:"
18324 msgstr ""
18325
18326 #. type: verbatim
18327 #: ../fish/guestfish-commands.pod:178
18328 #, no-wrap
18329 msgid ""
18330 " !echo $VAR\n"
18331 "\n"
18332 msgstr ""
18333
18334 #. type: =head2
18335 #: ../fish/guestfish-commands.pod:180
18336 msgid "sparse"
18337 msgstr ""
18338
18339 #. type: verbatim
18340 #: ../fish/guestfish-commands.pod:182
18341 #, no-wrap
18342 msgid ""
18343 " sparse filename size\n"
18344 "\n"
18345 msgstr ""
18346
18347 #. type: textblock
18348 #: ../fish/guestfish-commands.pod:184
18349 msgid ""
18350 "This creates an empty sparse file of the given size, and then adds so it can "
18351 "be further examined."
18352 msgstr ""
18353
18354 #. type: textblock
18355 #: ../fish/guestfish-commands.pod:187
18356 msgid ""
18357 "In all respects it works the same as the L</alloc> command, except that the "
18358 "image file is allocated sparsely, which means that disk blocks are not "
18359 "assigned to the file until they are needed.  Sparse disk files only use "
18360 "space when written to, but they are slower and there is a danger you could "
18361 "run out of real disk space during a write operation."
18362 msgstr ""
18363
18364 #. type: =head2
18365 #: ../fish/guestfish-commands.pod:197
18366 msgid "supported"
18367 msgstr ""
18368
18369 #. type: verbatim
18370 #: ../fish/guestfish-commands.pod:199
18371 #, no-wrap
18372 msgid ""
18373 " supported\n"
18374 "\n"
18375 msgstr ""
18376
18377 #. type: textblock
18378 #: ../fish/guestfish-commands.pod:201
18379 msgid ""
18380 "This command returns a list of the optional groups known to the daemon, and "
18381 "indicates which ones are supported by this build of the libguestfs "
18382 "appliance."
18383 msgstr ""
18384
18385 #. type: textblock
18386 #: ../fish/guestfish-commands.pod:205
18387 msgid "See also L<guestfs(3)/AVAILABILITY>."
18388 msgstr ""
18389
18390 #. type: =head2
18391 #: ../fish/guestfish-commands.pod:207
18392 msgid "time"
18393 msgstr ""
18394
18395 #. type: verbatim
18396 #: ../fish/guestfish-commands.pod:209
18397 #, no-wrap
18398 msgid ""
18399 " time command args...\n"
18400 "\n"
18401 msgstr ""
18402
18403 #. type: textblock
18404 #: ../fish/guestfish-commands.pod:211
18405 msgid ""
18406 "Run the command as usual, but print the elapsed time afterwards.  This can "
18407 "be useful for benchmarking operations."
18408 msgstr ""
18409
18410 #. type: =head2
18411 #: ../fish/guestfish-commands.pod:214
18412 msgid "unsetenv"
18413 msgstr ""
18414
18415 #. type: verbatim
18416 #: ../fish/guestfish-commands.pod:216
18417 #, no-wrap
18418 msgid ""
18419 "  unsetenv VAR\n"
18420 "\n"
18421 msgstr ""
18422
18423 #. type: textblock
18424 #: ../fish/guestfish-commands.pod:218
18425 msgid "Remove C<VAR> from the environment."
18426 msgstr ""
18427
18428 #. type: textblock
18429 #: ../fish/guestfish.pod:5
18430 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18431 msgstr ""
18432
18433 #. type: verbatim
18434 #: ../fish/guestfish.pod:9
18435 #, no-wrap
18436 msgid ""
18437 " guestfish [--options] [commands]\n"
18438 "\n"
18439 msgstr ""
18440
18441 #. type: verbatim
18442 #: ../fish/guestfish.pod:11
18443 #, no-wrap
18444 msgid ""
18445 " guestfish\n"
18446 "\n"
18447 msgstr ""
18448
18449 #. type: verbatim
18450 #: ../fish/guestfish.pod:13
18451 #, no-wrap
18452 msgid ""
18453 " guestfish [--ro|--rw] -a disk.img\n"
18454 "\n"
18455 msgstr ""
18456
18457 #. type: verbatim
18458 #: ../fish/guestfish.pod:15
18459 #, no-wrap
18460 msgid ""
18461 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18462 "\n"
18463 msgstr ""
18464
18465 #. type: verbatim
18466 #: ../fish/guestfish.pod:17
18467 #, no-wrap
18468 msgid ""
18469 " guestfish -d libvirt-domain\n"
18470 "\n"
18471 msgstr ""
18472
18473 #. type: verbatim
18474 #: ../fish/guestfish.pod:19
18475 #, no-wrap
18476 msgid ""
18477 " guestfish [--ro|--rw] -a disk.img -i\n"
18478 "\n"
18479 msgstr ""
18480
18481 #. type: verbatim
18482 #: ../fish/guestfish.pod:21
18483 #, no-wrap
18484 msgid ""
18485 " guestfish -d libvirt-domain -i\n"
18486 "\n"
18487 msgstr ""
18488
18489 #. type: textblock
18490 #: ../fish/guestfish.pod:25
18491 msgid ""
18492 "Using guestfish in read/write mode on live virtual machines can be "
18493 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18494 "option to use guestfish safely if the disk image or virtual machine might be "
18495 "live."
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish.pod:32
18500 msgid ""
18501 "Guestfish is a shell and command-line tool for examining and modifying "
18502 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18503 "functionality of the guestfs API, see L<guestfs(3)>."
18504 msgstr ""
18505
18506 #. type: textblock
18507 #: ../fish/guestfish.pod:36
18508 msgid ""
18509 "Guestfish gives you structured access to the libguestfs API, from shell "
18510 "scripts or the command line or interactively.  If you want to rescue a "
18511 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18512 "command."
18513 msgstr ""
18514
18515 #. type: =head2
18516 #: ../fish/guestfish.pod:43
18517 msgid "As an interactive shell"
18518 msgstr ""
18519
18520 #. type: verbatim
18521 #: ../fish/guestfish.pod:45
18522 #, no-wrap
18523 msgid ""
18524 " $ guestfish\n"
18525 " \n"
18526 msgstr ""
18527
18528 #. type: verbatim
18529 #: ../fish/guestfish.pod:47
18530 #, no-wrap
18531 msgid ""
18532 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18533 " editing virtual machine filesystems.\n"
18534 " \n"
18535 msgstr ""
18536
18537 #. type: verbatim
18538 #: ../fish/guestfish.pod:50
18539 #, no-wrap
18540 msgid ""
18541 " Type: 'help' for a list of commands\n"
18542 "       'man' to read the manual\n"
18543 "       'quit' to quit the shell\n"
18544 " \n"
18545 msgstr ""
18546
18547 #. type: verbatim
18548 #: ../fish/guestfish.pod:54
18549 #, no-wrap
18550 msgid ""
18551 " ><fs> add-ro disk.img\n"
18552 " ><fs> run\n"
18553 " ><fs> list-filesystems\n"
18554 " /dev/sda1: ext4\n"
18555 " /dev/vg_guest/lv_root: ext4\n"
18556 " /dev/vg_guest/lv_swap: swap\n"
18557 " ><fs> mount /dev/vg_guest/lv_root /\n"
18558 " ><fs> cat /etc/fstab\n"
18559 " # /etc/fstab\n"
18560 " # Created by anaconda\n"
18561 " [...]\n"
18562 " ><fs> exit\n"
18563 "\n"
18564 msgstr ""
18565
18566 #. type: =head2
18567 #: ../fish/guestfish.pod:67
18568 msgid "From shell scripts"
18569 msgstr ""
18570
18571 #. type: textblock
18572 #: ../fish/guestfish.pod:69
18573 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18574 msgstr ""
18575
18576 #. type: verbatim
18577 #: ../fish/guestfish.pod:71
18578 #, no-wrap
18579 msgid ""
18580 " guestfish <<_EOF_\n"
18581 " add disk.img\n"
18582 " run\n"
18583 " mount /dev/vg_guest/lv_root /\n"
18584 " write /etc/motd \"Welcome, new users\"\n"
18585 " _EOF_\n"
18586 "\n"
18587 msgstr ""
18588
18589 #. type: textblock
18590 #: ../fish/guestfish.pod:78
18591 msgid "List the LVM logical volumes in a disk image:"
18592 msgstr ""
18593
18594 #. type: verbatim
18595 #: ../fish/guestfish.pod:80
18596 #, no-wrap
18597 msgid ""
18598 " guestfish -a disk.img --ro <<_EOF_\n"
18599 " run\n"
18600 " lvs\n"
18601 " _EOF_\n"
18602 "\n"
18603 msgstr ""
18604
18605 #. type: textblock
18606 #: ../fish/guestfish.pod:85
18607 msgid "List all the filesystems in a disk image:"
18608 msgstr ""
18609
18610 #. type: verbatim
18611 #: ../fish/guestfish.pod:87
18612 #, no-wrap
18613 msgid ""
18614 " guestfish -a disk.img --ro <<_EOF_\n"
18615 " run\n"
18616 " list-filesystems\n"
18617 " _EOF_\n"
18618 "\n"
18619 msgstr ""
18620
18621 #. type: =head2
18622 #: ../fish/guestfish.pod:92
18623 msgid "On one command line"
18624 msgstr ""
18625
18626 #. type: textblock
18627 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18628 msgid "Update C</etc/resolv.conf> in a guest:"
18629 msgstr ""
18630
18631 #. type: verbatim
18632 #: ../fish/guestfish.pod:96
18633 #, no-wrap
18634 msgid ""
18635 " guestfish \\\n"
18636 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18637 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18638 "\n"
18639 msgstr ""
18640
18641 #. type: textblock
18642 #: ../fish/guestfish.pod:100
18643 msgid "Edit C</boot/grub/grub.conf> interactively:"
18644 msgstr ""
18645
18646 #. type: verbatim
18647 #: ../fish/guestfish.pod:102
18648 #, no-wrap
18649 msgid ""
18650 " guestfish --rw --add disk.img \\\n"
18651 "   --mount /dev/vg_guest/lv_root \\\n"
18652 "   --mount /dev/sda1:/boot \\\n"
18653 "   edit /boot/grub/grub.conf\n"
18654 "\n"
18655 msgstr ""
18656
18657 #. type: =head2
18658 #: ../fish/guestfish.pod:107
18659 msgid "Mount disks automatically"
18660 msgstr ""
18661
18662 #. type: textblock
18663 #: ../fish/guestfish.pod:109
18664 msgid ""
18665 "Use the I<-i> option to automatically mount the disks from a virtual "
18666 "machine:"
18667 msgstr ""
18668
18669 #. type: verbatim
18670 #: ../fish/guestfish.pod:112
18671 #, no-wrap
18672 msgid ""
18673 " guestfish --ro -a disk.img -i cat /etc/group\n"
18674 "\n"
18675 msgstr ""
18676
18677 #. type: verbatim
18678 #: ../fish/guestfish.pod:114
18679 #, no-wrap
18680 msgid ""
18681 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18682 "\n"
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../fish/guestfish.pod:116
18687 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18688 msgstr ""
18689
18690 #. type: verbatim
18691 #: ../fish/guestfish.pod:118
18692 #, no-wrap
18693 msgid ""
18694 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18695 "\n"
18696 msgstr ""
18697
18698 #. type: =head2
18699 #: ../fish/guestfish.pod:120
18700 msgid "As a script interpreter"
18701 msgstr ""
18702
18703 #. type: textblock
18704 #: ../fish/guestfish.pod:122
18705 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18706 msgstr ""
18707
18708 #. type: verbatim
18709 #: ../fish/guestfish.pod:124
18710 #, no-wrap
18711 msgid ""
18712 " #!/usr/bin/guestfish -f\n"
18713 " sparse test1.img 100M\n"
18714 " run\n"
18715 " part-disk /dev/sda mbr\n"
18716 " mkfs ext2 /dev/sda1\n"
18717 "\n"
18718 msgstr ""
18719
18720 #. type: =head2
18721 #: ../fish/guestfish.pod:130
18722 msgid "Start with a prepared disk"
18723 msgstr ""
18724
18725 #. type: textblock
18726 #: ../fish/guestfish.pod:132
18727 msgid ""
18728 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18729 "single ext2-formatted partition:"
18730 msgstr ""
18731
18732 #. type: verbatim
18733 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18734 #, no-wrap
18735 msgid ""
18736 " guestfish -N fs\n"
18737 "\n"
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish.pod:137
18742 msgid "To list what is available do:"
18743 msgstr ""
18744
18745 #. type: verbatim
18746 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18747 #, no-wrap
18748 msgid ""
18749 " guestfish -N help | less\n"
18750 "\n"
18751 msgstr ""
18752
18753 #. type: =head2
18754 #: ../fish/guestfish.pod:141
18755 msgid "Remote control"
18756 msgstr ""
18757
18758 #. type: verbatim
18759 #: ../fish/guestfish.pod:143
18760 #, no-wrap
18761 msgid ""
18762 " eval \"`guestfish --listen`\"\n"
18763 " guestfish --remote add-ro disk.img\n"
18764 " guestfish --remote run\n"
18765 " guestfish --remote lvs\n"
18766 "\n"
18767 msgstr ""
18768
18769 #. type: textblock
18770 #: ../fish/guestfish.pod:154
18771 msgid "Displays general help on options."
18772 msgstr ""
18773
18774 #. type: =item
18775 #: ../fish/guestfish.pod:158
18776 msgid "B<--cmd-help>"
18777 msgstr ""
18778
18779 #. type: textblock
18780 #: ../fish/guestfish.pod:160
18781 msgid "Lists all available guestfish commands."
18782 msgstr ""
18783
18784 #. type: =item
18785 #: ../fish/guestfish.pod:162
18786 msgid "B<-h cmd>"
18787 msgstr ""
18788
18789 #. type: =item
18790 #: ../fish/guestfish.pod:164
18791 msgid "B<--cmd-help cmd>"
18792 msgstr ""
18793
18794 #. type: textblock
18795 #: ../fish/guestfish.pod:166
18796 msgid "Displays detailed help on a single command C<cmd>."
18797 msgstr ""
18798
18799 #. type: =item
18800 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18801 msgid "B<-a image>"
18802 msgstr ""
18803
18804 #. type: =item
18805 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18806 msgid "B<--add image>"
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../fish/guestfish.pod:172
18811 msgid "Add a block device or virtual machine image to the shell."
18812 msgstr ""
18813
18814 #. type: textblock
18815 #: ../fish/guestfish.pod:177
18816 msgid ""
18817 "Using this flag is mostly equivalent to using the C<add> command, with "
18818 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18819 "the I<--format=...> flag was given."
18820 msgstr ""
18821
18822 #. type: textblock
18823 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18824 msgid ""
18825 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18826 "URI to use.  The default is to use the default libvirt connection."
18827 msgstr ""
18828
18829 #. type: =item
18830 #: ../fish/guestfish.pod:189
18831 msgid "B<--csh>"
18832 msgstr ""
18833
18834 #. type: textblock
18835 #: ../fish/guestfish.pod:191
18836 msgid ""
18837 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18838 "section L</REMOTE CONTROL AND CSH> below."
18839 msgstr ""
18840
18841 #. type: =item
18842 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18843 msgid "B<-d libvirt-domain>"
18844 msgstr ""
18845
18846 #. type: =item
18847 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18848 msgid "B<--domain libvirt-domain>"
18849 msgstr ""
18850
18851 #. type: textblock
18852 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18853 msgid ""
18854 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18855 "used, then any libvirt domain can be used.  However in write mode, only "
18856 "libvirt domains which are shut down can be named here."
18857 msgstr ""
18858
18859 #. type: textblock
18860 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18861 msgid "Domain UUIDs can be used instead of names."
18862 msgstr ""
18863
18864 #. type: textblock
18865 #: ../fish/guestfish.pod:204
18866 msgid ""
18867 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18868 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18869 "if the I<--format:...> flag was given."
18870 msgstr ""
18871
18872 #. type: =item
18873 #: ../fish/guestfish.pod:208
18874 msgid "B<-D>"
18875 msgstr ""
18876
18877 #. type: =item
18878 #: ../fish/guestfish.pod:210
18879 msgid "B<--no-dest-paths>"
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/guestfish.pod:212
18884 msgid ""
18885 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18886 "to hit the tab key to complete paths on the guest filesystem, but this "
18887 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18888 "allow this feature to be disabled."
18889 msgstr ""
18890
18891 #. type: textblock
18892 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18893 msgid ""
18894 "When prompting for keys and passphrases, guestfish normally turns echoing "
18895 "off so you cannot see what you are typing.  If you are not worried about "
18896 "Tempest attacks and there is no one else in the room you can specify this "
18897 "flag to see what you are typing."
18898 msgstr ""
18899
18900 #. type: =item
18901 #: ../fish/guestfish.pod:224
18902 msgid "B<-f file>"
18903 msgstr ""
18904
18905 #. type: =item
18906 #: ../fish/guestfish.pod:226
18907 msgid "B<--file file>"
18908 msgstr ""
18909
18910 #. type: textblock
18911 #: ../fish/guestfish.pod:228
18912 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18913 msgstr ""
18914
18915 #. type: verbatim
18916 #: ../fish/guestfish.pod:231
18917 #, no-wrap
18918 msgid ""
18919 " #!/usr/bin/guestfish -f\n"
18920 "\n"
18921 msgstr ""
18922
18923 #. type: verbatim
18924 #: ../fish/guestfish.pod:244
18925 #, no-wrap
18926 msgid ""
18927 " guestfish --format=raw -a disk.img\n"
18928 "\n"
18929 msgstr ""
18930
18931 #. type: verbatim
18932 #: ../fish/guestfish.pod:248
18933 #, no-wrap
18934 msgid ""
18935 " guestfish --format=raw -a disk.img --format -a another.img\n"
18936 "\n"
18937 msgstr ""
18938
18939 #. type: textblock
18940 #: ../fish/guestfish.pod:253
18941 msgid ""
18942 "If you have untrusted raw-format guest disk images, you should use this "
18943 "option to specify the disk format.  This avoids a possible security problem "
18944 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18945 msgstr ""
18946
18947 #. type: =item
18948 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18949 msgid "B<--inspector>"
18950 msgstr ""
18951
18952 #. type: textblock
18953 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18954 msgid ""
18955 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18956 "system and mount filesystems as they would be mounted on the real virtual "
18957 "machine."
18958 msgstr ""
18959
18960 #. type: textblock
18961 #: ../fish/guestfish.pod:266
18962 msgid "Typical usage is either:"
18963 msgstr ""
18964
18965 #. type: verbatim
18966 #: ../fish/guestfish.pod:268
18967 #, no-wrap
18968 msgid ""
18969 " guestfish -d myguest -i\n"
18970 "\n"
18971 msgstr ""
18972
18973 #. type: textblock
18974 #: ../fish/guestfish.pod:270
18975 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18976 msgstr ""
18977
18978 #. type: verbatim
18979 #: ../fish/guestfish.pod:272
18980 #, no-wrap
18981 msgid ""
18982 " guestfish --ro -d myguest -i\n"
18983 "\n"
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../fish/guestfish.pod:274
18988 msgid "(for active domains, readonly), or specify the block device directly:"
18989 msgstr ""
18990
18991 #. type: verbatim
18992 #: ../fish/guestfish.pod:276
18993 #, no-wrap
18994 msgid ""
18995 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18996 "\n"
18997 msgstr ""
18998
18999 #. type: textblock
19000 #: ../fish/guestfish.pod:278
19001 msgid ""
19002 "Note that the command line syntax changed slightly over older versions of "
19003 "guestfish.  You can still use the old syntax:"
19004 msgstr ""
19005
19006 #. type: verbatim
19007 #: ../fish/guestfish.pod:281
19008 #, no-wrap
19009 msgid ""
19010 " guestfish [--ro] -i disk.img\n"
19011 "\n"
19012 msgstr ""
19013
19014 #. type: verbatim
19015 #: ../fish/guestfish.pod:283
19016 #, no-wrap
19017 msgid ""
19018 " guestfish [--ro] -i libvirt-domain\n"
19019 "\n"
19020 msgstr ""
19021
19022 #. type: textblock
19023 #: ../fish/guestfish.pod:285
19024 msgid ""
19025 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19026 "then using other commands to mount the filesystems that were found."
19027 msgstr ""
19028
19029 #. type: =item
19030 #: ../fish/guestfish.pod:294
19031 msgid "B<--listen>"
19032 msgstr ""
19033
19034 #. type: textblock
19035 #: ../fish/guestfish.pod:296
19036 msgid ""
19037 "Fork into the background and listen for remote commands.  See section "
19038 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19039 msgstr ""
19040
19041 #. type: =item
19042 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19043 msgid "B<--live>"
19044 msgstr ""
19045
19046 #. type: textblock
19047 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19048 msgid ""
19049 "Connect to a live virtual machine.  (Experimental, see "
19050 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
19051 msgstr ""
19052
19053 #. type: =item
19054 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19055 msgid "B<-m dev[:mountpoint[:options]]>"
19056 msgstr ""
19057
19058 #. type: =item
19059 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19060 msgid "B<--mount dev[:mountpoint[:options]]>"
19061 msgstr ""
19062
19063 #. type: textblock
19064 #: ../fish/guestfish.pod:308
19065 msgid "Mount the named partition or logical volume on the given mountpoint."
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fish/guestfish.pod:310
19070 msgid "If the mountpoint is omitted, it defaults to C</>."
19071 msgstr ""
19072
19073 #. type: textblock
19074 #: ../fish/guestfish.pod:312
19075 msgid "You have to mount something on C</> before most commands will work."
19076 msgstr ""
19077
19078 #. type: textblock
19079 #: ../fish/guestfish.pod:314
19080 msgid ""
19081 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19082 "launched."
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../fish/guestfish.pod:317
19087 msgid ""
19088 "If you don't know what filesystems a disk image contains, you can either run "
19089 "guestfish without this option, then list the partitions, filesystems and LVs "
19090 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19091 "commands), or you can use the L<virt-filesystems(1)> program."
19092 msgstr ""
19093
19094 #. type: textblock
19095 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19096 msgid ""
19097 "The third (and rarely used) part of the mount parameter is the list of mount "
19098 "options used to mount the underlying filesystem.  If this is not given, then "
19099 "the mount options are either the empty string or C<ro> (the latter if the "
19100 "I<--ro> flag is used).  By specifying the mount options, you override this "
19101 "default choice.  Probably the only time you would use this is to enable ACLs "
19102 "and/or extended attributes if the filesystem can support them:"
19103 msgstr ""
19104
19105 #. type: verbatim
19106 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19107 #, no-wrap
19108 msgid ""
19109 " -m /dev/sda1:/:acl,user_xattr\n"
19110 "\n"
19111 msgstr ""
19112
19113 #. type: textblock
19114 #: ../fish/guestfish.pod:333
19115 msgid "Using this flag is equivalent to using the C<mount-options> command."
19116 msgstr ""
19117
19118 #. type: =item
19119 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:435
19120 msgid "B<-n>"
19121 msgstr ""
19122
19123 #. type: =item
19124 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19125 msgid "B<--no-sync>"
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:339
19130 msgid ""
19131 "Disable autosync.  This is enabled by default.  See the discussion of "
19132 "autosync in the L<guestfs(3)> manpage."
19133 msgstr ""
19134
19135 #. type: =item
19136 #: ../fish/guestfish.pod:342
19137 msgid "B<-N type>"
19138 msgstr ""
19139
19140 #. type: =item
19141 #: ../fish/guestfish.pod:344
19142 msgid "B<--new type>"
19143 msgstr ""
19144
19145 #. type: =item
19146 #: ../fish/guestfish.pod:346
19147 msgid "B<-N help>"
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../fish/guestfish.pod:348
19152 msgid ""
19153 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19154 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19155 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19156 "IMAGES> below."
19157 msgstr ""
19158
19159 #. type: =item
19160 #: ../fish/guestfish.pod:353
19161 msgid "B<--progress-bars>"
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fish/guestfish.pod:355
19166 msgid "Enable progress bars, even when guestfish is used non-interactively."
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fish/guestfish.pod:357
19171 msgid ""
19172 "Progress bars are enabled by default when guestfish is used as an "
19173 "interactive shell."
19174 msgstr ""
19175
19176 #. type: =item
19177 #: ../fish/guestfish.pod:360
19178 msgid "B<--no-progress-bars>"
19179 msgstr ""
19180
19181 #. type: textblock
19182 #: ../fish/guestfish.pod:362
19183 msgid "Disable progress bars."
19184 msgstr ""
19185
19186 #. type: =item
19187 #: ../fish/guestfish.pod:364
19188 msgid "B<--remote[=pid]>"
19189 msgstr ""
19190
19191 #. type: textblock
19192 #: ../fish/guestfish.pod:366
19193 msgid ""
19194 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19195 "CONTROL GUESTFISH OVER A SOCKET> below."
19196 msgstr ""
19197
19198 #. type: =item
19199 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:189
19200 msgid "B<-r>"
19201 msgstr ""
19202
19203 #. type: =item
19204 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:191
19205 msgid "B<--ro>"
19206 msgstr ""
19207
19208 #. type: textblock
19209 #: ../fish/guestfish.pod:373
19210 msgid ""
19211 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19212 "mounts are done read-only."
19213 msgstr ""
19214
19215 #. type: textblock
19216 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19217 msgid ""
19218 "The option must always be used if the disk image or virtual machine might be "
19219 "running, and is generally recommended in cases where you don't need write "
19220 "access to the disk."
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:380
19225 msgid ""
19226 "Note that prepared disk images created with I<-N> are not affected by this "
19227 "option.  Also commands like C<add> are not affected - you have to specify "
19228 "the C<readonly:true> option explicitly if you need it."
19229 msgstr ""
19230
19231 #. type: textblock
19232 #: ../fish/guestfish.pod:384
19233 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19234 msgstr ""
19235
19236 #. type: =item
19237 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:201
19238 msgid "B<--selinux>"
19239 msgstr ""
19240
19241 #. type: textblock
19242 #: ../fish/guestfish.pod:388
19243 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19244 msgstr ""
19245
19246 #. type: textblock
19247 #: ../fish/guestfish.pod:394
19248 msgid ""
19249 "Enable very verbose messages.  This is particularly useful if you find a "
19250 "bug."
19251 msgstr ""
19252
19253 #. type: textblock
19254 #: ../fish/guestfish.pod:401
19255 msgid "Display the guestfish / libguestfs version number and exit."
19256 msgstr ""
19257
19258 #. type: =item
19259 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:231
19260 msgid "B<-w>"
19261 msgstr ""
19262
19263 #. type: =item
19264 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:233
19265 msgid "B<--rw>"
19266 msgstr ""
19267
19268 #. type: textblock
19269 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19270 msgid ""
19271 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19272 "mounts are done read-write."
19273 msgstr ""
19274
19275 #. type: textblock
19276 #: ../fish/guestfish.pod:410
19277 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:414
19282 msgid "Echo each command before executing it."
19283 msgstr ""
19284
19285 #. type: =head1
19286 #: ../fish/guestfish.pod:418
19287 msgid "COMMANDS ON COMMAND LINE"
19288 msgstr ""
19289
19290 #. type: textblock
19291 #: ../fish/guestfish.pod:420
19292 msgid "Any additional (non-option) arguments are treated as commands to execute."
19293 msgstr ""
19294
19295 #. type: textblock
19296 #: ../fish/guestfish.pod:423
19297 msgid ""
19298 "Commands to execute should be separated by a colon (C<:>), where the colon "
19299 "is a separate parameter.  Thus:"
19300 msgstr ""
19301
19302 #. type: verbatim
19303 #: ../fish/guestfish.pod:426
19304 #, no-wrap
19305 msgid ""
19306 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19307 "\n"
19308 msgstr ""
19309
19310 #. type: textblock
19311 #: ../fish/guestfish.pod:428
19312 msgid ""
19313 "If there are no additional arguments, then we enter a shell, either an "
19314 "interactive shell with a prompt (if the input is a terminal) or a "
19315 "non-interactive shell."
19316 msgstr ""
19317
19318 #. type: textblock
19319 #: ../fish/guestfish.pod:432
19320 msgid ""
19321 "In either command line mode or non-interactive shell, the first command that "
19322 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19323 "prompt) if a command fails, you can continue to enter commands."
19324 msgstr ""
19325
19326 #. type: =head1
19327 #: ../fish/guestfish.pod:437
19328 msgid "USING launch (OR run)"
19329 msgstr ""
19330
19331 #. type: textblock
19332 #: ../fish/guestfish.pod:439
19333 msgid ""
19334 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19335 "then launch it, then mount any disks you need, and finally issue "
19336 "actions/commands.  So the general order of the day is:"
19337 msgstr ""
19338
19339 #. type: textblock
19340 #: ../fish/guestfish.pod:447
19341 msgid "add or -a/--add"
19342 msgstr ""
19343
19344 #. type: textblock
19345 #: ../fish/guestfish.pod:451
19346 msgid "launch (aka run)"
19347 msgstr ""
19348
19349 #. type: textblock
19350 #: ../fish/guestfish.pod:455
19351 msgid "mount or -m/--mount"
19352 msgstr ""
19353
19354 #. type: textblock
19355 #: ../fish/guestfish.pod:459
19356 msgid "any other commands"
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/guestfish.pod:463
19361 msgid ""
19362 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19363 "guest before mounting or performing any other commands."
19364 msgstr ""
19365
19366 #. type: textblock
19367 #: ../fish/guestfish.pod:466
19368 msgid ""
19369 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19370 "I<--new> options were given then C<run> is done automatically, simply "
19371 "because guestfish can't perform the action you asked for without doing this."
19372 msgstr ""
19373
19374 #. type: =head1
19375 #: ../fish/guestfish.pod:471
19376 msgid "OPENING DISKS FOR READ AND WRITE"
19377 msgstr ""
19378
19379 #. type: textblock
19380 #: ../fish/guestfish.pod:473
19381 msgid ""
19382 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19383 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19384 "I<-i> and I<-m> open disk images read-only or for writing."
19385 msgstr ""
19386
19387 #. type: textblock
19388 #: ../fish/guestfish.pod:478
19389 msgid ""
19390 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19391 "opening disk images supplied on the command line for write.  To open a disk "
19392 "image read-only you have to do I<-a image --ro>."
19393 msgstr ""
19394
19395 #. type: textblock
19396 #: ../fish/guestfish.pod:482
19397 msgid ""
19398 "This matters: If you accidentally open a live VM disk image writable then "
19399 "you will cause irreversible disk corruption."
19400 msgstr ""
19401
19402 #. type: textblock
19403 #: ../fish/guestfish.pod:485
19404 msgid ""
19405 "In a future libguestfs we intend to change the default the other way.  Disk "
19406 "images will be opened read-only.  You will have to either specify "
19407 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19408 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19409 "access for disk images specified by those other command line options."
19410 msgstr ""
19411
19412 #. type: textblock
19413 #: ../fish/guestfish.pod:492
19414 msgid ""
19415 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19416 "which does nothing (it is already the default).  However it is highly "
19417 "recommended that you use this option to indicate that you need write access, "
19418 "and prepare your scripts for the day when this option will be required for "
19419 "write access."
19420 msgstr ""
19421
19422 #. type: textblock
19423 #: ../fish/guestfish.pod:498
19424 msgid ""
19425 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19426 "other libguestfs program apart from guestfish and guestmount."
19427 msgstr ""
19428
19429 #. type: =head1
19430 #: ../fish/guestfish.pod:501
19431 msgid "QUOTING"
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../fish/guestfish.pod:503
19436 msgid ""
19437 "You can quote ordinary parameters using either single or double quotes.  For "
19438 "example:"
19439 msgstr ""
19440
19441 #. type: verbatim
19442 #: ../fish/guestfish.pod:506
19443 #, no-wrap
19444 msgid ""
19445 " add \"file with a space.img\"\n"
19446 "\n"
19447 msgstr ""
19448
19449 #. type: verbatim
19450 #: ../fish/guestfish.pod:508
19451 #, no-wrap
19452 msgid ""
19453 " rm '/file name'\n"
19454 "\n"
19455 msgstr ""
19456
19457 #. type: verbatim
19458 #: ../fish/guestfish.pod:510
19459 #, no-wrap
19460 msgid ""
19461 " rm '/\"'\n"
19462 "\n"
19463 msgstr ""
19464
19465 #. type: textblock
19466 #: ../fish/guestfish.pod:512
19467 msgid ""
19468 "A few commands require a list of strings to be passed.  For these, use a "
19469 "whitespace-separated list, enclosed in quotes.  Strings containing "
19470 "whitespace to be passed through must be enclosed in single quotes.  A "
19471 "literal single quote must be escaped with a backslash."
19472 msgstr ""
19473
19474 #. type: verbatim
19475 #: ../fish/guestfish.pod:517
19476 #, no-wrap
19477 msgid ""
19478 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19479 " command \"/bin/echo 'foo      bar'\"\n"
19480 " command \"/bin/echo \\'foo\\'\"\n"
19481 "\n"
19482 msgstr ""
19483
19484 #. type: =head2
19485 #: ../fish/guestfish.pod:521
19486 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19487 msgstr ""
19488
19489 #. type: textblock
19490 #: ../fish/guestfish.pod:523
19491 msgid ""
19492 "In double-quoted arguments (only) use backslash to insert special "
19493 "characters:"
19494 msgstr ""
19495
19496 #. type: =item
19497 #: ../fish/guestfish.pod:528
19498 msgid "C<\\a>"
19499 msgstr ""
19500
19501 #. type: textblock
19502 #: ../fish/guestfish.pod:530
19503 msgid "Alert (bell) character."
19504 msgstr ""
19505
19506 #. type: =item
19507 #: ../fish/guestfish.pod:532
19508 msgid "C<\\b>"
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../fish/guestfish.pod:534
19513 msgid "Backspace character."
19514 msgstr ""
19515
19516 #. type: =item
19517 #: ../fish/guestfish.pod:536
19518 msgid "C<\\f>"
19519 msgstr ""
19520
19521 #. type: textblock
19522 #: ../fish/guestfish.pod:538
19523 msgid "Form feed character."
19524 msgstr ""
19525
19526 #. type: =item
19527 #: ../fish/guestfish.pod:540
19528 msgid "C<\\n>"
19529 msgstr ""
19530
19531 #. type: textblock
19532 #: ../fish/guestfish.pod:542
19533 msgid "Newline character."
19534 msgstr ""
19535
19536 #. type: =item
19537 #: ../fish/guestfish.pod:544
19538 msgid "C<\\r>"
19539 msgstr ""
19540
19541 #. type: textblock
19542 #: ../fish/guestfish.pod:546
19543 msgid "Carriage return character."
19544 msgstr ""
19545
19546 #. type: =item
19547 #: ../fish/guestfish.pod:548
19548 msgid "C<\\t>"
19549 msgstr ""
19550
19551 #. type: textblock
19552 #: ../fish/guestfish.pod:550
19553 msgid "Horizontal tab character."
19554 msgstr ""
19555
19556 #. type: =item
19557 #: ../fish/guestfish.pod:552
19558 msgid "C<\\v>"
19559 msgstr ""
19560
19561 #. type: textblock
19562 #: ../fish/guestfish.pod:554
19563 msgid "Vertical tab character."
19564 msgstr ""
19565
19566 #. type: =item
19567 #: ../fish/guestfish.pod:556
19568 msgid "C<\\\">"
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:558
19573 msgid "A literal double quote character."
19574 msgstr ""
19575
19576 #. type: =item
19577 #: ../fish/guestfish.pod:560
19578 msgid "C<\\ooo>"
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:562
19583 msgid ""
19584 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19585 "(unlike C)."
19586 msgstr ""
19587
19588 #. type: =item
19589 #: ../fish/guestfish.pod:565
19590 msgid "C<\\xhh>"
19591 msgstr ""
19592
19593 #. type: textblock
19594 #: ../fish/guestfish.pod:567
19595 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19596 msgstr ""
19597
19598 #. type: textblock
19599 #: ../fish/guestfish.pod:570
19600 msgid ""
19601 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19602 "strings."
19603 msgstr ""
19604
19605 #. type: =item
19606 #: ../fish/guestfish.pod:573
19607 msgid "C<\\\\>"
19608 msgstr ""
19609
19610 #. type: textblock
19611 #: ../fish/guestfish.pod:575
19612 msgid "A literal backslash character."
19613 msgstr ""
19614
19615 #. type: =head1
19616 #: ../fish/guestfish.pod:579
19617 msgid "OPTIONAL ARGUMENTS"
19618 msgstr ""
19619
19620 #. type: textblock
19621 #: ../fish/guestfish.pod:581
19622 msgid ""
19623 "Some commands take optional arguments.  These arguments appear in this "
19624 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19625 msgstr ""
19626
19627 #. type: verbatim
19628 #: ../fish/guestfish.pod:585
19629 #, no-wrap
19630 msgid ""
19631 " add-drive-opts filename\n"
19632 "\n"
19633 msgstr ""
19634
19635 #. type: verbatim
19636 #: ../fish/guestfish.pod:587
19637 #, no-wrap
19638 msgid ""
19639 " add-drive-opts filename readonly:true\n"
19640 "\n"
19641 msgstr ""
19642
19643 #. type: verbatim
19644 #: ../fish/guestfish.pod:589
19645 #, no-wrap
19646 msgid ""
19647 " add-drive-opts filename format:qcow2 readonly:false\n"
19648 "\n"
19649 msgstr ""
19650
19651 #. type: textblock
19652 #: ../fish/guestfish.pod:591
19653 msgid ""
19654 "Each optional argument can appear at most once.  All optional arguments must "
19655 "appear after the required ones."
19656 msgstr ""
19657
19658 #. type: =head1
19659 #: ../fish/guestfish.pod:594
19660 msgid "NUMBERS"
19661 msgstr ""
19662
19663 #. type: textblock
19664 #: ../fish/guestfish.pod:596
19665 msgid "This section applies to all commands which can take integers as parameters."
19666 msgstr ""
19667
19668 #. type: =head2
19669 #: ../fish/guestfish.pod:599
19670 msgid "SIZE SUFFIX"
19671 msgstr ""
19672
19673 #. type: textblock
19674 #: ../fish/guestfish.pod:601
19675 msgid ""
19676 "When the command takes a parameter measured in bytes, you can use one of the "
19677 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19678 msgstr ""
19679
19680 #. type: =item
19681 #: ../fish/guestfish.pod:607
19682 msgid "B<k> or B<K> or B<KiB>"
19683 msgstr ""
19684
19685 #. type: textblock
19686 #: ../fish/guestfish.pod:609
19687 msgid "The size in kilobytes (multiplied by 1024)."
19688 msgstr ""
19689
19690 #. type: =item
19691 #: ../fish/guestfish.pod:611
19692 msgid "B<KB>"
19693 msgstr ""
19694
19695 #. type: textblock
19696 #: ../fish/guestfish.pod:613
19697 msgid "The size in SI 1000 byte units."
19698 msgstr ""
19699
19700 #. type: =item
19701 #: ../fish/guestfish.pod:615
19702 msgid "B<M> or B<MiB>"
19703 msgstr ""
19704
19705 #. type: textblock
19706 #: ../fish/guestfish.pod:617
19707 msgid "The size in megabytes (multiplied by 1048576)."
19708 msgstr ""
19709
19710 #. type: =item
19711 #: ../fish/guestfish.pod:619
19712 msgid "B<MB>"
19713 msgstr ""
19714
19715 #. type: textblock
19716 #: ../fish/guestfish.pod:621
19717 msgid "The size in SI 1000000 byte units."
19718 msgstr ""
19719
19720 #. type: =item
19721 #: ../fish/guestfish.pod:623
19722 msgid "B<G> or B<GiB>"
19723 msgstr ""
19724
19725 #. type: textblock
19726 #: ../fish/guestfish.pod:625
19727 msgid "The size in gigabytes (multiplied by 2**30)."
19728 msgstr ""
19729
19730 #. type: =item
19731 #: ../fish/guestfish.pod:627
19732 msgid "B<GB>"
19733 msgstr ""
19734
19735 #. type: textblock
19736 #: ../fish/guestfish.pod:629
19737 msgid "The size in SI 10**9 byte units."
19738 msgstr ""
19739
19740 #. type: =item
19741 #: ../fish/guestfish.pod:631
19742 msgid "B<T> or B<TiB>"
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:633
19747 msgid "The size in terabytes (multiplied by 2**40)."
19748 msgstr ""
19749
19750 #. type: =item
19751 #: ../fish/guestfish.pod:635
19752 msgid "B<TB>"
19753 msgstr ""
19754
19755 #. type: textblock
19756 #: ../fish/guestfish.pod:637
19757 msgid "The size in SI 10**12 byte units."
19758 msgstr ""
19759
19760 #. type: =item
19761 #: ../fish/guestfish.pod:639
19762 msgid "B<P> or B<PiB>"
19763 msgstr ""
19764
19765 #. type: textblock
19766 #: ../fish/guestfish.pod:641
19767 msgid "The size in petabytes (multiplied by 2**50)."
19768 msgstr ""
19769
19770 #. type: =item
19771 #: ../fish/guestfish.pod:643
19772 msgid "B<PB>"
19773 msgstr ""
19774
19775 #. type: textblock
19776 #: ../fish/guestfish.pod:645
19777 msgid "The size in SI 10**15 byte units."
19778 msgstr ""
19779
19780 #. type: =item
19781 #: ../fish/guestfish.pod:647
19782 msgid "B<E> or B<EiB>"
19783 msgstr ""
19784
19785 #. type: textblock
19786 #: ../fish/guestfish.pod:649
19787 msgid "The size in exabytes (multiplied by 2**60)."
19788 msgstr ""
19789
19790 #. type: =item
19791 #: ../fish/guestfish.pod:651
19792 msgid "B<EB>"
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:653
19797 msgid "The size in SI 10**18 byte units."
19798 msgstr ""
19799
19800 #. type: =item
19801 #: ../fish/guestfish.pod:655
19802 msgid "B<Z> or B<ZiB>"
19803 msgstr ""
19804
19805 #. type: textblock
19806 #: ../fish/guestfish.pod:657
19807 msgid "The size in zettabytes (multiplied by 2**70)."
19808 msgstr ""
19809
19810 #. type: =item
19811 #: ../fish/guestfish.pod:659
19812 msgid "B<ZB>"
19813 msgstr ""
19814
19815 #. type: textblock
19816 #: ../fish/guestfish.pod:661
19817 msgid "The size in SI 10**21 byte units."
19818 msgstr ""
19819
19820 #. type: =item
19821 #: ../fish/guestfish.pod:663
19822 msgid "B<Y> or B<YiB>"
19823 msgstr ""
19824
19825 #. type: textblock
19826 #: ../fish/guestfish.pod:665
19827 msgid "The size in yottabytes (multiplied by 2**80)."
19828 msgstr ""
19829
19830 #. type: =item
19831 #: ../fish/guestfish.pod:667
19832 msgid "B<YB>"
19833 msgstr ""
19834
19835 #. type: textblock
19836 #: ../fish/guestfish.pod:669
19837 msgid "The size in SI 10**24 byte units."
19838 msgstr ""
19839
19840 #. type: verbatim
19841 #: ../fish/guestfish.pod:675
19842 #, no-wrap
19843 msgid ""
19844 " truncate-size /file 1G\n"
19845 "\n"
19846 msgstr ""
19847
19848 #. type: textblock
19849 #: ../fish/guestfish.pod:677
19850 msgid "would truncate the file to 1 gigabyte."
19851 msgstr ""
19852
19853 #. type: textblock
19854 #: ../fish/guestfish.pod:679
19855 msgid ""
19856 "Be careful because a few commands take sizes in kilobytes or megabytes "
19857 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
19858 "Adding a suffix will probably not do what you expect."
19859 msgstr ""
19860
19861 #. type: =head2
19862 #: ../fish/guestfish.pod:683
19863 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19864 msgstr ""
19865
19866 #. type: textblock
19867 #: ../fish/guestfish.pod:685
19868 msgid ""
19869 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19870 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19871 msgstr ""
19872
19873 #. type: verbatim
19874 #: ../fish/guestfish.pod:688
19875 #, no-wrap
19876 msgid ""
19877 " 1234      decimal number 1234\n"
19878 " 02322     octal number, equivalent to decimal 1234\n"
19879 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19880 "\n"
19881 msgstr ""
19882
19883 #. type: textblock
19884 #: ../fish/guestfish.pod:692
19885 msgid ""
19886 "When using the C<chmod> command, you almost always want to specify an octal "
19887 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19888 "L<chmod(1)> program):"
19889 msgstr ""
19890
19891 #. type: verbatim
19892 #: ../fish/guestfish.pod:696
19893 #, no-wrap
19894 msgid ""
19895 " chmod 0777 /public  # OK\n"
19896 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19897 "\n"
19898 msgstr ""
19899
19900 #. type: textblock
19901 #: ../fish/guestfish.pod:699
19902 msgid ""
19903 "Commands that return numbers usually print them in decimal, but some "
19904 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19905 "octal, preceeded by C<0>)."
19906 msgstr ""
19907
19908 #. type: =head1
19909 #: ../fish/guestfish.pod:703
19910 msgid "WILDCARDS AND GLOBBING"
19911 msgstr ""
19912
19913 #. type: textblock
19914 #: ../fish/guestfish.pod:705
19915 msgid ""
19916 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19917 "(globbing) by default.  So for example the following will not do what you "
19918 "expect:"
19919 msgstr ""
19920
19921 #. type: verbatim
19922 #: ../fish/guestfish.pod:709
19923 #, no-wrap
19924 msgid ""
19925 " rm-rf /home/*\n"
19926 "\n"
19927 msgstr ""
19928
19929 #. type: textblock
19930 #: ../fish/guestfish.pod:711
19931 msgid ""
19932 "Assuming you don't have a directory called literally C</home/*> then the "
19933 "above command will return an error."
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../fish/guestfish.pod:714
19938 msgid "To perform wildcard expansion, use the C<glob> command."
19939 msgstr ""
19940
19941 #. type: verbatim
19942 #: ../fish/guestfish.pod:716
19943 #, no-wrap
19944 msgid ""
19945 " glob rm-rf /home/*\n"
19946 "\n"
19947 msgstr ""
19948
19949 #. type: textblock
19950 #: ../fish/guestfish.pod:718
19951 msgid ""
19952 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19953 "many times), equivalent to:"
19954 msgstr ""
19955
19956 #. type: verbatim
19957 #: ../fish/guestfish.pod:721
19958 #, no-wrap
19959 msgid ""
19960 " rm-rf /home/jim\n"
19961 " rm-rf /home/joe\n"
19962 " rm-rf /home/mary\n"
19963 "\n"
19964 msgstr ""
19965
19966 #. type: textblock
19967 #: ../fish/guestfish.pod:725
19968 msgid "C<glob> only works on simple guest paths and not on device names."
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../fish/guestfish.pod:727
19973 msgid ""
19974 "If you have several parameters, each containing a wildcard, then glob will "
19975 "perform a Cartesian product."
19976 msgstr ""
19977
19978 #. type: =head1
19979 #: ../fish/guestfish.pod:730
19980 msgid "COMMENTS"
19981 msgstr ""
19982
19983 #. type: textblock
19984 #: ../fish/guestfish.pod:732
19985 msgid ""
19986 "Any line which starts with a I<#> character is treated as a comment and "
19987 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19988 "a command.  For example:"
19989 msgstr ""
19990
19991 #. type: verbatim
19992 #: ../fish/guestfish.pod:736
19993 #, no-wrap
19994 msgid ""
19995 " # this is a comment\n"
19996 "         # this is a comment\n"
19997 " foo # NOT a comment\n"
19998 "\n"
19999 msgstr ""
20000
20001 #. type: textblock
20002 #: ../fish/guestfish.pod:740
20003 msgid "Blank lines are also ignored."
20004 msgstr ""
20005
20006 #. type: =head1
20007 #: ../fish/guestfish.pod:742
20008 msgid "RUNNING COMMANDS LOCALLY"
20009 msgstr ""
20010
20011 #. type: textblock
20012 #: ../fish/guestfish.pod:744
20013 msgid ""
20014 "Any line which starts with a I<!> character is treated as a command sent to "
20015 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20016 msgstr ""
20017
20018 #. type: verbatim
20019 #: ../fish/guestfish.pod:748
20020 #, no-wrap
20021 msgid ""
20022 " !mkdir local\n"
20023 " tgz-out /remote local/remote-data.tar.gz\n"
20024 "\n"
20025 msgstr ""
20026
20027 #. type: textblock
20028 #: ../fish/guestfish.pod:751
20029 msgid ""
20030 "will create a directory C<local> on the host, and then export the contents "
20031 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20032 "(See C<tgz-out>)."
20033 msgstr ""
20034
20035 #. type: textblock
20036 #: ../fish/guestfish.pod:755
20037 msgid ""
20038 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20039 "effect, due to the way that subprocesses work in Unix."
20040 msgstr ""
20041
20042 #. type: =head2
20043 #: ../fish/guestfish.pod:758
20044 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20045 msgstr ""
20046
20047 #. type: textblock
20048 #: ../fish/guestfish.pod:760
20049 msgid ""
20050 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20051 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20052 "and executed as guestfish commands."
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../fish/guestfish.pod:764
20057 msgid ""
20058 "Thus you can use shell script to construct arbitrary guestfish commands "
20059 "which are then parsed by guestfish."
20060 msgstr ""
20061
20062 #. type: textblock
20063 #: ../fish/guestfish.pod:767
20064 msgid ""
20065 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20066 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20067 "if we use a shell script to create the guestfish commands for us:"
20068 msgstr ""
20069
20070 #. type: verbatim
20071 #: ../fish/guestfish.pod:772
20072 #, no-wrap
20073 msgid ""
20074 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20075 "\n"
20076 msgstr ""
20077
20078 #. type: textblock
20079 #: ../fish/guestfish.pod:774
20080 msgid "or with names like C</foo.001>:"
20081 msgstr ""
20082
20083 #. type: verbatim
20084 #: ../fish/guestfish.pod:776
20085 #, no-wrap
20086 msgid ""
20087 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20088 "\n"
20089 msgstr ""
20090
20091 #. type: textblock
20092 #: ../fish/guestfish.pod:778
20093 msgid ""
20094 "When using guestfish interactively it can be helpful to just run the shell "
20095 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20096 "ordinary I<!> local command), see what guestfish commands it would run, and "
20097 "when you are happy with those prepend the C<E<lt>> character to run the "
20098 "guestfish commands for real."
20099 msgstr ""
20100
20101 #. type: =head1
20102 #: ../fish/guestfish.pod:784
20103 msgid "PIPES"
20104 msgstr ""
20105
20106 #. type: textblock
20107 #: ../fish/guestfish.pod:786
20108 msgid ""
20109 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20110 "command (a guestfish command) to the second command (any host command).  For "
20111 "example:"
20112 msgstr ""
20113
20114 #. type: verbatim
20115 #: ../fish/guestfish.pod:790
20116 #, no-wrap
20117 msgid ""
20118 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20119 "\n"
20120 msgstr ""
20121
20122 #. type: textblock
20123 #: ../fish/guestfish.pod:792
20124 msgid ""
20125 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20126 "program).  The above command would list all accounts in the guest filesystem "
20127 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20128 msgstr ""
20129
20130 #. type: verbatim
20131 #: ../fish/guestfish.pod:797
20132 #, no-wrap
20133 msgid ""
20134 " hexdump /bin/ls | head\n"
20135 " list-devices | tail -1\n"
20136 " tgz-out / - | tar ztf -\n"
20137 "\n"
20138 msgstr ""
20139
20140 #. type: textblock
20141 #: ../fish/guestfish.pod:801
20142 msgid ""
20143 "The space before the pipe symbol is required, any space after the pipe "
20144 "symbol is optional.  Everything after the pipe symbol is just passed "
20145 "straight to the host shell, so it can contain redirections, globs and "
20146 "anything else that makes sense on the host side."
20147 msgstr ""
20148
20149 #. type: textblock
20150 #: ../fish/guestfish.pod:806
20151 msgid ""
20152 "To use a literal argument which begins with a pipe symbol, you have to quote "
20153 "it, eg:"
20154 msgstr ""
20155
20156 #. type: verbatim
20157 #: ../fish/guestfish.pod:809
20158 #, no-wrap
20159 msgid ""
20160 " echo \"|\"\n"
20161 "\n"
20162 msgstr ""
20163
20164 #. type: =head1
20165 #: ../fish/guestfish.pod:811
20166 msgid "HOME DIRECTORIES"
20167 msgstr ""
20168
20169 #. type: textblock
20170 #: ../fish/guestfish.pod:813
20171 msgid ""
20172 "If a parameter starts with the character C<~> then the tilde may be expanded "
20173 "as a home directory path (either C<~> for the current user's home directory, "
20174 "or C<~user> for another user)."
20175 msgstr ""
20176
20177 #. type: textblock
20178 #: ../fish/guestfish.pod:817
20179 msgid ""
20180 "Note that home directory expansion happens for users known I<on the host>, "
20181 "not in the guest filesystem."
20182 msgstr ""
20183
20184 #. type: textblock
20185 #: ../fish/guestfish.pod:820
20186 msgid ""
20187 "To use a literal argument which begins with a tilde, you have to quote it, "
20188 "eg:"
20189 msgstr ""
20190
20191 #. type: verbatim
20192 #: ../fish/guestfish.pod:823
20193 #, no-wrap
20194 msgid ""
20195 " echo \"~\"\n"
20196 "\n"
20197 msgstr ""
20198
20199 #. type: =head2
20200 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20201 msgid "ENCRYPTED DISKS"
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../fish/guestfish.pod:827
20206 msgid ""
20207 "Libguestfs has some support for Linux guests encrypted according to the "
20208 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20209 "disk encryption systems used by modern Linux guests.  Currently only "
20210 "LVM-on-LUKS is supported."
20211 msgstr ""
20212
20213 #. type: textblock
20214 #: ../fish/guestfish.pod:832
20215 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20216 msgstr ""
20217
20218 #. type: verbatim
20219 #: ../fish/guestfish.pod:834
20220 #, no-wrap
20221 msgid ""
20222 " ><fs> vfs-type /dev/sda2\n"
20223 " crypto_LUKS\n"
20224 "\n"
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../fish/guestfish.pod:837
20229 msgid ""
20230 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20231 "device called C</dev/mapper/luksdev>."
20232 msgstr ""
20233
20234 #. type: verbatim
20235 #: ../fish/guestfish.pod:840
20236 #, no-wrap
20237 msgid ""
20238 " ><fs> luks-open /dev/sda2 luksdev\n"
20239 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20240 "\n"
20241 msgstr ""
20242
20243 #. type: textblock
20244 #: ../fish/guestfish.pod:843
20245 msgid ""
20246 "Finally you have to tell LVM to scan for volume groups on the newly created "
20247 "mapper device:"
20248 msgstr ""
20249
20250 #. type: verbatim
20251 #: ../fish/guestfish.pod:846
20252 #, no-wrap
20253 msgid ""
20254 " vgscan\n"
20255 " vg-activate-all true\n"
20256 "\n"
20257 msgstr ""
20258
20259 #. type: textblock
20260 #: ../fish/guestfish.pod:849
20261 msgid "The logical volume(s) can now be mounted in the usual way."
20262 msgstr ""
20263
20264 #. type: textblock
20265 #: ../fish/guestfish.pod:851
20266 msgid ""
20267 "Before closing a LUKS device you must unmount any logical volumes on it and "
20268 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20269 "one.  Then you can close the mapper device:"
20270 msgstr ""
20271
20272 #. type: verbatim
20273 #: ../fish/guestfish.pod:855
20274 #, no-wrap
20275 msgid ""
20276 " vg-activate false /dev/VG\n"
20277 " luks-close /dev/mapper/luksdev\n"
20278 "\n"
20279 msgstr ""
20280
20281 #. type: textblock
20282 #: ../fish/guestfish.pod:860
20283 msgid ""
20284 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20285 "letters and paths (with some limitations).  The following commands are "
20286 "equivalent:"
20287 msgstr ""
20288
20289 #. type: verbatim
20290 #: ../fish/guestfish.pod:864
20291 #, no-wrap
20292 msgid ""
20293 " file /WINDOWS/system32/config/system.LOG\n"
20294 "\n"
20295 msgstr ""
20296
20297 #. type: verbatim
20298 #: ../fish/guestfish.pod:866
20299 #, no-wrap
20300 msgid ""
20301 " file win:\\windows\\system32\\config\\system.log\n"
20302 "\n"
20303 msgstr ""
20304
20305 #. type: verbatim
20306 #: ../fish/guestfish.pod:868
20307 #, no-wrap
20308 msgid ""
20309 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20310 "\n"
20311 msgstr ""
20312
20313 #. type: textblock
20314 #: ../fish/guestfish.pod:870
20315 msgid ""
20316 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20317 "where the drive is mounted, prepending that to the path, changing all "
20318 "backslash characters to forward slash, then resolving the result using "
20319 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20320 "then the parameter might be rewritten like this:"
20321 msgstr ""
20322
20323 #. type: verbatim
20324 #: ../fish/guestfish.pod:876
20325 #, no-wrap
20326 msgid ""
20327 " win:e:\\foo\\bar => /e/FOO/bar\n"
20328 "\n"
20329 msgstr ""
20330
20331 #. type: textblock
20332 #: ../fish/guestfish.pod:878
20333 msgid "This only works in argument positions that expect a path."
20334 msgstr ""
20335
20336 #. type: =head1
20337 #: ../fish/guestfish.pod:880
20338 msgid "UPLOADING AND DOWNLOADING FILES"
20339 msgstr ""
20340
20341 #. type: textblock
20342 #: ../fish/guestfish.pod:882
20343 msgid ""
20344 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20345 "others which upload from or download to a local file, you can use the "
20346 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20347 msgstr ""
20348
20349 #. type: verbatim
20350 #: ../fish/guestfish.pod:886
20351 #, no-wrap
20352 msgid ""
20353 " upload - /foo\n"
20354 "\n"
20355 msgstr ""
20356
20357 #. type: textblock
20358 #: ../fish/guestfish.pod:888
20359 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20360 msgstr ""
20361
20362 #. type: verbatim
20363 #: ../fish/guestfish.pod:891
20364 #, no-wrap
20365 msgid ""
20366 " tar-out /etc - | tar tf -\n"
20367 "\n"
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:893
20372 msgid ""
20373 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20374 "command (see L</PIPES>)."
20375 msgstr ""
20376
20377 #. type: textblock
20378 #: ../fish/guestfish.pod:896
20379 msgid ""
20380 "When using C<-> to read from stdin, the input is read up to the end of "
20381 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20382 "some arbitrary end marker:"
20383 msgstr ""
20384
20385 #. type: verbatim
20386 #: ../fish/guestfish.pod:900
20387 #, no-wrap
20388 msgid ""
20389 " upload -<<END /foo\n"
20390 " input line 1\n"
20391 " input line 2\n"
20392 " input line 3\n"
20393 " END\n"
20394 "\n"
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../fish/guestfish.pod:906
20399 msgid ""
20400 "Any string of characters can be used instead of C<END>.  The end marker must "
20401 "appear on a line of its own, without any preceeding or following characters "
20402 "(not even spaces)."
20403 msgstr ""
20404
20405 #. type: textblock
20406 #: ../fish/guestfish.pod:910
20407 msgid ""
20408 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20409 "upload local files (so-called \"FileIn\" parameters in the generator)."
20410 msgstr ""
20411
20412 #. type: =head1
20413 #: ../fish/guestfish.pod:913
20414 msgid "EXIT ON ERROR BEHAVIOUR"
20415 msgstr ""
20416
20417 #. type: textblock
20418 #: ../fish/guestfish.pod:915
20419 msgid ""
20420 "By default, guestfish will ignore any errors when in interactive mode "
20421 "(ie. taking commands from a human over a tty), and will exit on the first "
20422 "error in non-interactive mode (scripts, commands given on the command line)."
20423 msgstr ""
20424
20425 #. type: textblock
20426 #: ../fish/guestfish.pod:920
20427 msgid ""
20428 "If you prefix a command with a I<-> character, then that command will not "
20429 "cause guestfish to exit, even if that (one) command returns an error."
20430 msgstr ""
20431
20432 #. type: =head1
20433 #: ../fish/guestfish.pod:924
20434 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../fish/guestfish.pod:926
20439 msgid ""
20440 "Guestfish can be remote-controlled over a socket.  This is useful "
20441 "particularly in shell scripts where you want to make several different "
20442 "changes to a filesystem, but you don't want the overhead of starting up a "
20443 "guestfish process each time."
20444 msgstr ""
20445
20446 #. type: textblock
20447 #: ../fish/guestfish.pod:931
20448 msgid "Start a guestfish server process using:"
20449 msgstr ""
20450
20451 #. type: verbatim
20452 #: ../fish/guestfish.pod:933
20453 #, no-wrap
20454 msgid ""
20455 " eval \"`guestfish --listen`\"\n"
20456 "\n"
20457 msgstr ""
20458
20459 #. type: textblock
20460 #: ../fish/guestfish.pod:935
20461 msgid "and then send it commands by doing:"
20462 msgstr ""
20463
20464 #. type: verbatim
20465 #: ../fish/guestfish.pod:937
20466 #, no-wrap
20467 msgid ""
20468 " guestfish --remote cmd [...]\n"
20469 "\n"
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../fish/guestfish.pod:939
20474 msgid "To cause the server to exit, send it the exit command:"
20475 msgstr ""
20476
20477 #. type: textblock
20478 #: ../fish/guestfish.pod:943
20479 msgid ""
20480 "Note that the server will normally exit if there is an error in a command.  "
20481 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20482 "BEHAVIOUR>."
20483 msgstr ""
20484
20485 #. type: =head2
20486 #: ../fish/guestfish.pod:947
20487 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20488 msgstr ""
20489
20490 #. type: textblock
20491 #: ../fish/guestfish.pod:949
20492 msgid ""
20493 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20494 "is how the I<--remote> option knows where to send the commands.  You can "
20495 "have several guestfish listener processes running using:"
20496 msgstr ""
20497
20498 #. type: verbatim
20499 #: ../fish/guestfish.pod:953
20500 #, no-wrap
20501 msgid ""
20502 " eval \"`guestfish --listen`\"\n"
20503 " pid1=$GUESTFISH_PID\n"
20504 " eval \"`guestfish --listen`\"\n"
20505 " pid2=$GUESTFISH_PID\n"
20506 " ...\n"
20507 " guestfish --remote=$pid1 cmd\n"
20508 " guestfish --remote=$pid2 cmd\n"
20509 "\n"
20510 msgstr ""
20511
20512 #. type: =head2
20513 #: ../fish/guestfish.pod:961
20514 msgid "REMOTE CONTROL AND CSH"
20515 msgstr ""
20516
20517 #. type: textblock
20518 #: ../fish/guestfish.pod:963
20519 msgid ""
20520 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20521 "option:"
20522 msgstr ""
20523
20524 #. type: verbatim
20525 #: ../fish/guestfish.pod:966
20526 #, no-wrap
20527 msgid ""
20528 " eval \"`guestfish --listen --csh`\"\n"
20529 "\n"
20530 msgstr ""
20531
20532 #. type: =head2
20533 #: ../fish/guestfish.pod:968
20534 msgid "REMOTE CONTROL DETAILS"
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../fish/guestfish.pod:970
20539 msgid ""
20540 "Remote control happens over a Unix domain socket called "
20541 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20542 "of the process, and C<$PID> is the process ID of the server."
20543 msgstr ""
20544
20545 #. type: textblock
20546 #: ../fish/guestfish.pod:974
20547 msgid "Guestfish client and server versions must match exactly."
20548 msgstr ""
20549
20550 #. type: =head2
20551 #: ../fish/guestfish.pod:976
20552 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20553 msgstr ""
20554
20555 #. type: textblock
20556 #: ../fish/guestfish.pod:978
20557 msgid ""
20558 "From Bash, you can use the following code which creates a guestfish "
20559 "instance, correctly quotes the command line, handles failure to start, and "
20560 "cleans up guestfish when the script exits:"
20561 msgstr ""
20562
20563 #. type: verbatim
20564 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20565 #, no-wrap
20566 msgid ""
20567 " #!/bin/bash -\n"
20568 " \n"
20569 msgstr ""
20570
20571 #. type: verbatim
20572 #: ../fish/guestfish.pod:986
20573 #, no-wrap
20574 msgid ""
20575 " guestfish[0]=\"guestfish\"\n"
20576 " guestfish[1]=\"--listen\"\n"
20577 " guestfish[2]=\"--ro\"\n"
20578 " guestfish[3]=\"-a\"\n"
20579 " guestfish[4]=\"disk.img\"\n"
20580 " \n"
20581 msgstr ""
20582
20583 #. type: verbatim
20584 #: ../fish/guestfish.pod:992
20585 #, no-wrap
20586 msgid ""
20587 " GUESTFISH_PID=\n"
20588 " eval $(\"${guestfish[@]}\")\n"
20589 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20590 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20591 "     exit 1\n"
20592 " fi\n"
20593 " \n"
20594 msgstr ""
20595
20596 #. type: verbatim
20597 #: ../fish/guestfish.pod:999
20598 #, no-wrap
20599 msgid ""
20600 " cleanup_guestfish ()\n"
20601 " {\n"
20602 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20603 " }\n"
20604 " trap cleanup_guestfish EXIT ERR\n"
20605 " \n"
20606 msgstr ""
20607
20608 #. type: verbatim
20609 #: ../fish/guestfish.pod:1005
20610 #, no-wrap
20611 msgid ""
20612 " guestfish --remote -- run\n"
20613 " \n"
20614 msgstr ""
20615
20616 #. type: verbatim
20617 #: ../fish/guestfish.pod:1007
20618 #, no-wrap
20619 msgid ""
20620 " # ...\n"
20621 "\n"
20622 msgstr ""
20623
20624 #. type: =head2
20625 #: ../fish/guestfish.pod:1009
20626 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20627 msgstr ""
20628
20629 #. type: textblock
20630 #: ../fish/guestfish.pod:1011
20631 msgid ""
20632 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20633 "context hangs, ie. don't do (note the backquotes):"
20634 msgstr ""
20635
20636 #. type: verbatim
20637 #: ../fish/guestfish.pod:1014
20638 #, no-wrap
20639 msgid ""
20640 " a=`guestfish --remote run`\n"
20641 "\n"
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../fish/guestfish.pod:1016
20646 msgid ""
20647 "Since the C<run> command produces no output on stdout, this is not useful "
20648 "anyway.  For further information see "
20649 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20650 msgstr ""
20651
20652 #. type: =head1
20653 #: ../fish/guestfish.pod:1020
20654 msgid "PREPARED DISK IMAGES"
20655 msgstr ""
20656
20657 #. type: textblock
20658 #: ../fish/guestfish.pod:1022
20659 msgid ""
20660 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20661 "preformatted disk images that guestfish can make for you to save typing.  "
20662 "This is particularly useful for testing purposes.  This option is used "
20663 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20664 "can be mixed with I<-a>)."
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../fish/guestfish.pod:1028
20669 msgid ""
20670 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20671 "the second and so on.  Existing files in the current directory are "
20672 "I<overwritten>."
20673 msgstr ""
20674
20675 #. type: textblock
20676 #: ../fish/guestfish.pod:1032
20677 msgid ""
20678 "The type briefly describes how the disk should be sized, partitioned, how "
20679 "filesystem(s) should be created, and how content should be added.  "
20680 "Optionally the type can be followed by extra parameters, separated by C<:> "
20681 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20682 "sparsely-allocated disk, containing a single partition, with the partition "
20683 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20684 "on a 1GB disk instead."
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../fish/guestfish.pod:1040
20689 msgid "To list the available types and any extra parameters they take, run:"
20690 msgstr ""
20691
20692 #. type: textblock
20693 #: ../fish/guestfish.pod:1044
20694 msgid ""
20695 "Note that the prepared filesystem is not mounted.  You would usually have to "
20696 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20697 msgstr ""
20698
20699 #. type: textblock
20700 #: ../fish/guestfish.pod:1048
20701 msgid ""
20702 "If any I<-N> or I<--new> options are given, the guest is automatically "
20703 "launched."
20704 msgstr ""
20705
20706 #. type: textblock
20707 #: ../fish/guestfish.pod:1053
20708 msgid "Create a 100MB disk with an ext4-formatted partition:"
20709 msgstr ""
20710
20711 #. type: verbatim
20712 #: ../fish/guestfish.pod:1055
20713 #, no-wrap
20714 msgid ""
20715 " guestfish -N fs:ext4\n"
20716 "\n"
20717 msgstr ""
20718
20719 #. type: textblock
20720 #: ../fish/guestfish.pod:1057
20721 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20722 msgstr ""
20723
20724 #. type: verbatim
20725 #: ../fish/guestfish.pod:1059
20726 #, no-wrap
20727 msgid ""
20728 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20729 "\n"
20730 msgstr ""
20731
20732 #. type: textblock
20733 #: ../fish/guestfish.pod:1061
20734 msgid "Create a blank 200MB disk:"
20735 msgstr ""
20736
20737 #. type: verbatim
20738 #: ../fish/guestfish.pod:1063
20739 #, no-wrap
20740 msgid ""
20741 " guestfish -N disk:200M\n"
20742 "\n"
20743 msgstr ""
20744
20745 #. type: =head1
20746 #: ../fish/guestfish.pod:1065
20747 msgid "PROGRESS BARS"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:1067
20752 msgid ""
20753 "Some (not all) long-running commands send progress notification messages as "
20754 "they are running.  Guestfish turns these messages into progress bars."
20755 msgstr ""
20756
20757 #. type: textblock
20758 #: ../fish/guestfish.pod:1071
20759 msgid ""
20760 "When a command that supports progress bars takes longer than two seconds to "
20761 "run, and if progress bars are enabled, then you will see one appearing below "
20762 "the command:"
20763 msgstr ""
20764
20765 #. type: verbatim
20766 #: ../fish/guestfish.pod:1075
20767 #, no-wrap
20768 msgid ""
20769 " ><fs> copy-size /large-file /another-file 2048M\n"
20770 " / 10% [#####-----------------------------------------] 00:30\n"
20771 "\n"
20772 msgstr ""
20773
20774 #. type: textblock
20775 #: ../fish/guestfish.pod:1078
20776 msgid ""
20777 "The spinner on the left hand side moves round once for every progress "
20778 "notification received from the backend.  This is a (reasonably) golden "
20779 "assurance that the command is \"doing something\" even if the progress bar "
20780 "is not moving, because the command is able to send the progress "
20781 "notifications.  When the bar reaches 100% and the command finishes, the "
20782 "spinner disappears."
20783 msgstr ""
20784
20785 #. type: textblock
20786 #: ../fish/guestfish.pod:1085
20787 msgid ""
20788 "Progress bars are enabled by default when guestfish is used interactively.  "
20789 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20790 "and you can disable them completely using I<--no-progress-bars>."
20791 msgstr ""
20792
20793 #. type: =head1
20794 #: ../fish/guestfish.pod:1090
20795 msgid "GUESTFISH COMMANDS"
20796 msgstr ""
20797
20798 #. type: textblock
20799 #: ../fish/guestfish.pod:1092
20800 msgid ""
20801 "The commands in this section are guestfish convenience commands, in other "
20802 "words, they are not part of the L<guestfs(3)> API."
20803 msgstr ""
20804
20805 #. type: =head2
20806 #: ../fish/guestfish.pod:1095
20807 msgid "help"
20808 msgstr ""
20809
20810 #. type: verbatim
20811 #: ../fish/guestfish.pod:1097
20812 #, no-wrap
20813 msgid ""
20814 " help\n"
20815 " help cmd\n"
20816 "\n"
20817 msgstr ""
20818
20819 #. type: textblock
20820 #: ../fish/guestfish.pod:1100
20821 msgid "Without any parameter, this provides general help."
20822 msgstr ""
20823
20824 #. type: textblock
20825 #: ../fish/guestfish.pod:1102
20826 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20827 msgstr ""
20828
20829 #. type: =head2
20830 #: ../fish/guestfish.pod:1104
20831 msgid "quit | exit"
20832 msgstr ""
20833
20834 #. type: textblock
20835 #: ../fish/guestfish.pod:1106
20836 msgid "This exits guestfish.  You can also use C<^D> key."
20837 msgstr ""
20838
20839 #. type: textblock
20840 #: ../fish/guestfish.pod:1108
20841 msgid "@FISH_COMMANDS@"
20842 msgstr ""
20843
20844 #. type: =head1
20845 #: ../fish/guestfish.pod:1110
20846 msgid "COMMANDS"
20847 msgstr ""
20848
20849 #. type: textblock
20850 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20851 msgid "@ACTIONS@"
20852 msgstr ""
20853
20854 #. type: textblock
20855 #: ../fish/guestfish.pod:1116
20856 msgid ""
20857 "guestfish returns 0 if the commands completed without error, or 1 if there "
20858 "was an error."
20859 msgstr ""
20860
20861 #. type: =item
20862 #: ../fish/guestfish.pod:1123
20863 msgid "EDITOR"
20864 msgstr ""
20865
20866 #. type: textblock
20867 #: ../fish/guestfish.pod:1125
20868 msgid ""
20869 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20870 "C<vi>."
20871 msgstr ""
20872
20873 #. type: =item
20874 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
20875 msgid "FEBOOTSTRAP_KERNEL"
20876 msgstr ""
20877
20878 #. type: =item
20879 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
20880 msgid "FEBOOTSTRAP_MODULES"
20881 msgstr ""
20882
20883 #. type: textblock
20884 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
20885 msgid ""
20886 "These two environment variables allow the kernel that libguestfs uses in the "
20887 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20888 "most recent host kernel is chosen.  For more information about kernel "
20889 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20890 "available in febootstrap E<ge> 3.8."
20891 msgstr ""
20892
20893 #. type: =item
20894 #: ../fish/guestfish.pod:1138
20895 msgid "GUESTFISH_DISPLAY_IMAGE"
20896 msgstr ""
20897
20898 #. type: textblock
20899 #: ../fish/guestfish.pod:1140
20900 msgid ""
20901 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20902 "If not set, it uses L<display(1)>."
20903 msgstr ""
20904
20905 #. type: =item
20906 #: ../fish/guestfish.pod:1143
20907 msgid "GUESTFISH_PID"
20908 msgstr ""
20909
20910 #. type: textblock
20911 #: ../fish/guestfish.pod:1145
20912 msgid ""
20913 "Used with the I<--remote> option to specify the remote guestfish process to "
20914 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20915 msgstr ""
20916
20917 #. type: =item
20918 #: ../fish/guestfish.pod:1149
20919 msgid "HEXEDITOR"
20920 msgstr ""
20921
20922 #. type: textblock
20923 #: ../fish/guestfish.pod:1151
20924 msgid ""
20925 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20926 "not specified, the external L<hexedit(1)> program is used."
20927 msgstr ""
20928
20929 #. type: =item
20930 #: ../fish/guestfish.pod:1155
20931 msgid "HOME"
20932 msgstr ""
20933
20934 #. type: textblock
20935 #: ../fish/guestfish.pod:1157
20936 msgid ""
20937 "If compiled with GNU readline support, various files in the home directory "
20938 "can be used.  See L</FILES>."
20939 msgstr ""
20940
20941 #. type: =item
20942 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
20943 msgid "LIBGUESTFS_APPEND"
20944 msgstr ""
20945
20946 #. type: textblock
20947 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
20948 msgid "Pass additional options to the guest kernel."
20949 msgstr ""
20950
20951 #. type: =item
20952 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
20953 msgid "LIBGUESTFS_DEBUG"
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../fish/guestfish.pod:1166
20958 msgid ""
20959 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20960 "effect as using the B<-v> option."
20961 msgstr ""
20962
20963 #. type: =item
20964 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
20965 msgid "LIBGUESTFS_MEMSIZE"
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
20970 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
20971 msgstr ""
20972
20973 #. type: verbatim
20974 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
20975 #, no-wrap
20976 msgid ""
20977 " LIBGUESTFS_MEMSIZE=700\n"
20978 "\n"
20979 msgstr ""
20980
20981 #. type: =item
20982 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
20983 msgid "LIBGUESTFS_PATH"
20984 msgstr ""
20985
20986 #. type: textblock
20987 #: ../fish/guestfish.pod:1178
20988 msgid ""
20989 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20990 "the discussion of paths in L<guestfs(3)>."
20991 msgstr ""
20992
20993 #. type: =item
20994 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
20995 msgid "LIBGUESTFS_QEMU"
20996 msgstr ""
20997
20998 #. type: textblock
20999 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21000 msgid ""
21001 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21002 "which was found at compile time by the configure script is used."
21003 msgstr ""
21004
21005 #. type: =item
21006 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21007 msgid "LIBGUESTFS_TRACE"
21008 msgstr ""
21009
21010 #. type: textblock
21011 #: ../fish/guestfish.pod:1189
21012 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21013 msgstr ""
21014
21015 #. type: =item
21016 #: ../fish/guestfish.pod:1191
21017 msgid "PAGER"
21018 msgstr ""
21019
21020 #. type: textblock
21021 #: ../fish/guestfish.pod:1193
21022 msgid ""
21023 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21024 "C<more>."
21025 msgstr ""
21026
21027 #. type: =item
21028 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236 ../src/guestfs.pod:3257
21029 msgid "TMPDIR"
21030 msgstr ""
21031
21032 #. type: textblock
21033 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21034 msgid ""
21035 "Location of temporary directory, defaults to C</tmp> except for the cached "
21036 "supermin appliance which defaults to C</var/tmp>."
21037 msgstr ""
21038
21039 #. type: textblock
21040 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21041 msgid ""
21042 "If libguestfs was compiled to use the supermin appliance then the real "
21043 "appliance is cached in this directory, shared between all handles belonging "
21044 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21045 "use in case C</var/tmp> is not large enough."
21046 msgstr ""
21047
21048 #. type: =head1
21049 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:310
21050 msgid "FILES"
21051 msgstr ""
21052
21053 #. type: =item
21054 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:314
21055 msgid "$HOME/.libguestfs-tools.rc"
21056 msgstr ""
21057
21058 #. type: =item
21059 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:316
21060 msgid "/etc/libguestfs-tools.conf"
21061 msgstr ""
21062
21063 #. type: textblock
21064 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:318
21065 msgid ""
21066 "This configuration file controls the default read-only or read-write mode "
21067 "(I<--ro> or I<--rw>)."
21068 msgstr ""
21069
21070 #. type: textblock
21071 #: ../fish/guestfish.pod:1220
21072 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21073 msgstr ""
21074
21075 #. type: =item
21076 #: ../fish/guestfish.pod:1222
21077 msgid "$HOME/.guestfish"
21078 msgstr ""
21079
21080 #. type: textblock
21081 #: ../fish/guestfish.pod:1224
21082 msgid ""
21083 "If compiled with GNU readline support, then the command history is saved in "
21084 "this file."
21085 msgstr ""
21086
21087 #. type: =item
21088 #: ../fish/guestfish.pod:1227
21089 msgid "$HOME/.inputrc"
21090 msgstr ""
21091
21092 #. type: =item
21093 #: ../fish/guestfish.pod:1229
21094 msgid "/etc/inputrc"
21095 msgstr ""
21096
21097 #. type: textblock
21098 #: ../fish/guestfish.pod:1231
21099 msgid ""
21100 "If compiled with GNU readline support, then these files can be used to "
21101 "configure readline.  For further information, please see "
21102 "L<readline(3)/INITIALIZATION FILE>."
21103 msgstr ""
21104
21105 #. type: textblock
21106 #: ../fish/guestfish.pod:1235
21107 msgid "To write rules which only apply to guestfish, use:"
21108 msgstr ""
21109
21110 #. type: verbatim
21111 #: ../fish/guestfish.pod:1237
21112 #, no-wrap
21113 msgid ""
21114 " $if guestfish\n"
21115 " ...\n"
21116 " $endif\n"
21117 "\n"
21118 msgstr ""
21119
21120 #. type: textblock
21121 #: ../fish/guestfish.pod:1241
21122 msgid ""
21123 "Variables that you can set in inputrc that change the behaviour of guestfish "
21124 "in useful ways include:"
21125 msgstr ""
21126
21127 #. type: =item
21128 #: ../fish/guestfish.pod:1246
21129 msgid "completion-ignore-case (default: on)"
21130 msgstr ""
21131
21132 #. type: textblock
21133 #: ../fish/guestfish.pod:1248
21134 msgid ""
21135 "By default, guestfish will ignore case when tab-completing paths on the "
21136 "disk.  Use:"
21137 msgstr ""
21138
21139 #. type: verbatim
21140 #: ../fish/guestfish.pod:1251
21141 #, no-wrap
21142 msgid ""
21143 " set completion-ignore-case off\n"
21144 "\n"
21145 msgstr ""
21146
21147 #. type: textblock
21148 #: ../fish/guestfish.pod:1253
21149 msgid "to make guestfish case sensitive."
21150 msgstr ""
21151
21152 #. type: =item
21153 #: ../fish/guestfish.pod:1257
21154 msgid "test1.img"
21155 msgstr ""
21156
21157 #. type: =item
21158 #: ../fish/guestfish.pod:1259
21159 msgid "test2.img (etc)"
21160 msgstr ""
21161
21162 #. type: textblock
21163 #: ../fish/guestfish.pod:1261
21164 msgid ""
21165 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21166 "will be created in the file C<test1.img> in the current directory.  The "
21167 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21168 "the same name will be overwritten."
21169 msgstr ""
21170
21171 #. type: textblock
21172 #: ../fish/guestfish.pod:1270
21173 msgid ""
21174 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
21175 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
21176 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
21177 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
21178 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
21179 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
21180 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
21181 "L<febootstrap-supermin-helper(8)>."
21182 msgstr ""
21183
21184 #. type: textblock
21185 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3355 ../test-tool/libguestfs-test-tool.pod:112
21186 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../fish/virt-copy-in.pod:5
21191 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
21192 msgstr ""
21193
21194 #. type: verbatim
21195 #: ../fish/virt-copy-in.pod:9
21196 #, no-wrap
21197 msgid ""
21198 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21199 "\n"
21200 msgstr ""
21201
21202 #. type: verbatim
21203 #: ../fish/virt-copy-in.pod:11
21204 #, no-wrap
21205 msgid ""
21206 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21207 "\n"
21208 msgstr ""
21209
21210 #. type: textblock
21211 #: ../fish/virt-copy-in.pod:15
21212 msgid ""
21213 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21214 "causing disk corruption.  The virtual machine must be shut down before you "
21215 "use this command."
21216 msgstr ""
21217
21218 #. type: textblock
21219 #: ../fish/virt-copy-in.pod:21
21220 msgid ""
21221 "C<virt-copy-in> copies files and directories from the local disk into a "
21222 "virtual machine disk image or named libvirt domain."
21223 msgstr ""
21224
21225 #. type: textblock
21226 #: ../fish/virt-copy-in.pod:24
21227 msgid ""
21228 "You can give one of more filenames and directories on the command line.  "
21229 "Directories are copied in recursively.  The final parameter must be the "
21230 "destination directory in the disk image which must be an absolute path "
21231 "starting with a C</> character."
21232 msgstr ""
21233
21234 #. type: verbatim
21235 #: ../fish/virt-copy-in.pod:33
21236 #, no-wrap
21237 msgid ""
21238 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21239 "\n"
21240 msgstr ""
21241
21242 #. type: textblock
21243 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21244 msgid "Upload a home directory to a guest:"
21245 msgstr ""
21246
21247 #. type: verbatim
21248 #: ../fish/virt-copy-in.pod:37
21249 #, no-wrap
21250 msgid ""
21251 " virt-copy-in -d MyGuest skel /home\n"
21252 "\n"
21253 msgstr ""
21254
21255 #. type: =head1
21256 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21257 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21258 msgstr ""
21259
21260 #. type: textblock
21261 #: ../fish/virt-copy-in.pod:41
21262 msgid ""
21263 "This command is just a simple shell script wrapper around the "
21264 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
21265 "trivial copy, you are probably better off using guestfish directly."
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21270 msgid ""
21271 "Since the shell script just passes options straight to guestfish, read "
21272 "L<guestfish(1)> to see the full list of options."
21273 msgstr ""
21274
21275 #. type: textblock
21276 #: ../fish/virt-copy-in.pod:52
21277 msgid ""
21278 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21279 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21284 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21285 msgstr ""
21286
21287 #. type: textblock
21288 #: ../fish/virt-copy-out.pod:5
21289 msgid ""
21290 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21291 "image."
21292 msgstr ""
21293
21294 #. type: verbatim
21295 #: ../fish/virt-copy-out.pod:9
21296 #, no-wrap
21297 msgid ""
21298 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21299 "\n"
21300 msgstr ""
21301
21302 #. type: verbatim
21303 #: ../fish/virt-copy-out.pod:11
21304 #, no-wrap
21305 msgid ""
21306 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21307 "\n"
21308 msgstr ""
21309
21310 #. type: textblock
21311 #: ../fish/virt-copy-out.pod:15
21312 msgid ""
21313 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21314 "image or named libvirt domain."
21315 msgstr ""
21316
21317 #. type: textblock
21318 #: ../fish/virt-copy-out.pod:18
21319 msgid ""
21320 "You can give one of more filenames and directories on the command line.  "
21321 "Directories are copied out recursively."
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../fish/virt-copy-out.pod:23
21326 msgid "Download the home directories from a virtual machine:"
21327 msgstr ""
21328
21329 #. type: verbatim
21330 #: ../fish/virt-copy-out.pod:25
21331 #, no-wrap
21332 msgid ""
21333 " mkdir homes\n"
21334 " virt-copy-out -d MyGuest /home homes\n"
21335 "\n"
21336 msgstr ""
21337
21338 #. type: textblock
21339 #: ../fish/virt-copy-out.pod:30
21340 msgid ""
21341 "This command is just a simple shell script wrapper around the "
21342 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
21343 "trivial copy, you are probably better off using guestfish directly."
21344 msgstr ""
21345
21346 #. type: textblock
21347 #: ../fish/virt-copy-out.pod:41
21348 msgid ""
21349 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
21350 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21351 msgstr ""
21352
21353 #. type: textblock
21354 #: ../fish/virt-tar-in.pod:5
21355 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21356 msgstr ""
21357
21358 #. type: verbatim
21359 #: ../fish/virt-tar-in.pod:9
21360 #, no-wrap
21361 msgid ""
21362 " virt-tar-in -a disk.img data.tar /destination\n"
21363 "\n"
21364 msgstr ""
21365
21366 #. type: verbatim
21367 #: ../fish/virt-tar-in.pod:11
21368 #, no-wrap
21369 msgid ""
21370 " virt-tar-in -d domain data.tar /destination\n"
21371 "\n"
21372 msgstr ""
21373
21374 #. type: verbatim
21375 #: ../fish/virt-tar-in.pod:13
21376 #, no-wrap
21377 msgid ""
21378 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21379 "\n"
21380 msgstr ""
21381
21382 #. type: textblock
21383 #: ../fish/virt-tar-in.pod:17
21384 msgid ""
21385 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21386 "causing disk corruption.  The virtual machine must be shut down before you "
21387 "use this command."
21388 msgstr ""
21389
21390 #. type: textblock
21391 #: ../fish/virt-tar-in.pod:23
21392 msgid ""
21393 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21394 "image or named libvirt domain."
21395 msgstr ""
21396
21397 #. type: textblock
21398 #: ../fish/virt-tar-in.pod:26
21399 msgid ""
21400 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21401 "standard input.  The second parameter is the absolute target directory to "
21402 "unpack into."
21403 msgstr ""
21404
21405 #. type: verbatim
21406 #: ../fish/virt-tar-in.pod:34
21407 #, no-wrap
21408 msgid ""
21409 " virt-tar-in -d MyGuest homes.tar /home\n"
21410 "\n"
21411 msgstr ""
21412
21413 #. type: textblock
21414 #: ../fish/virt-tar-in.pod:38
21415 msgid ""
21416 "This command is just a simple shell script wrapper around the "
21417 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
21418 "copy, you are probably better off using guestfish directly."
21419 msgstr ""
21420
21421 #. type: textblock
21422 #: ../fish/virt-tar-in.pod:49
21423 msgid ""
21424 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21425 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21426 "L<http://libguestfs.org/>."
21427 msgstr ""
21428
21429 #. type: textblock
21430 #: ../fish/virt-tar-out.pod:5
21431 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21432 msgstr ""
21433
21434 #. type: verbatim
21435 #: ../fish/virt-tar-out.pod:9
21436 #, no-wrap
21437 msgid ""
21438 " virt-tar-out -a disk.img /dir files.tar\n"
21439 "\n"
21440 msgstr ""
21441
21442 #. type: verbatim
21443 #: ../fish/virt-tar-out.pod:11
21444 #, no-wrap
21445 msgid ""
21446 " virt-tar-out -d domain /dir files.tar\n"
21447 "\n"
21448 msgstr ""
21449
21450 #. type: verbatim
21451 #: ../fish/virt-tar-out.pod:13
21452 #, no-wrap
21453 msgid ""
21454 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21455 "\n"
21456 msgstr ""
21457
21458 #. type: textblock
21459 #: ../fish/virt-tar-out.pod:17
21460 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21461 msgstr ""
21462
21463 #. type: textblock
21464 #: ../fish/virt-tar-out.pod:20
21465 msgid ""
21466 "The first parameter is the absolute path of the virtual machine directory.  "
21467 "The second parameter is the tar file to write.  Use C<-> to write to "
21468 "standard output."
21469 msgstr ""
21470
21471 #. type: textblock
21472 #: ../fish/virt-tar-out.pod:26
21473 msgid "Download the home directories from a guest:"
21474 msgstr ""
21475
21476 #. type: verbatim
21477 #: ../fish/virt-tar-out.pod:28
21478 #, no-wrap
21479 msgid ""
21480 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21481 "\n"
21482 msgstr ""
21483
21484 #. type: textblock
21485 #: ../fish/virt-tar-out.pod:32
21486 msgid ""
21487 "This command is just a simple shell script wrapper around the "
21488 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
21489 "trivial copy, you are probably better off using guestfish directly."
21490 msgstr ""
21491
21492 #. type: textblock
21493 #: ../fish/virt-tar-out.pod:43
21494 msgid ""
21495 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21496 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21497 msgstr ""
21498
21499 #. type: textblock
21500 #: ../fuse/guestmount.pod:5
21501 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21502 msgstr ""
21503
21504 #. type: verbatim
21505 #: ../fuse/guestmount.pod:9
21506 #, no-wrap
21507 msgid ""
21508 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21509 "\n"
21510 msgstr ""
21511
21512 #. type: verbatim
21513 #: ../fuse/guestmount.pod:11
21514 #, no-wrap
21515 msgid ""
21516 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21517 "\n"
21518 msgstr ""
21519
21520 #. type: verbatim
21521 #: ../fuse/guestmount.pod:13
21522 #, no-wrap
21523 msgid ""
21524 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21525 "\n"
21526 msgstr ""
21527
21528 #. type: textblock
21529 #: ../fuse/guestmount.pod:17
21530 msgid ""
21531 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21532 "machines.  If you do this, you risk disk corruption in the VM."
21533 msgstr ""
21534
21535 #. type: textblock
21536 #: ../fuse/guestmount.pod:22
21537 msgid ""
21538 "The guestmount program can be used to mount virtual machine filesystems and "
21539 "other disk images on the host.  It uses libguestfs for access to the guest "
21540 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21541 "a mountable device."
21542 msgstr ""
21543
21544 #. type: textblock
21545 #: ../fuse/guestmount.pod:27
21546 msgid ""
21547 "Along with other options, you have to give at least one device (I<-a> "
21548 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21549 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21550 "this works is better explained in the L<guestfish(1)> manual page, or by "
21551 "looking at the examples below."
21552 msgstr ""
21553
21554 #. type: textblock
21555 #: ../fuse/guestmount.pod:33
21556 msgid ""
21557 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21558 "by you, and the filesystem will not be visible to any other users unless you "
21559 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21560 "the filesystem, use the C<fusermount -u> command."
21561 msgstr ""
21562
21563 #. type: textblock
21564 #: ../fuse/guestmount.pod:41
21565 msgid ""
21566 "For a typical Windows guest which has its main filesystem on the first "
21567 "partition:"
21568 msgstr ""
21569
21570 #. type: verbatim
21571 #: ../fuse/guestmount.pod:44
21572 #, no-wrap
21573 msgid ""
21574 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21575 "\n"
21576 msgstr ""
21577
21578 #. type: textblock
21579 #: ../fuse/guestmount.pod:46
21580 msgid ""
21581 "For a typical Linux guest which has a /boot filesystem on the first "
21582 "partition, and the root filesystem on a logical volume:"
21583 msgstr ""
21584
21585 #. type: verbatim
21586 #: ../fuse/guestmount.pod:49
21587 #, no-wrap
21588 msgid ""
21589 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21590 "\n"
21591 msgstr ""
21592
21593 #. type: textblock
21594 #: ../fuse/guestmount.pod:51
21595 msgid "To get libguestfs to detect guest mountpoints for you:"
21596 msgstr ""
21597
21598 #. type: verbatim
21599 #: ../fuse/guestmount.pod:53
21600 #, no-wrap
21601 msgid ""
21602 " guestmount -a guest.img -i --ro /mnt\n"
21603 "\n"
21604 msgstr ""
21605
21606 #. type: textblock
21607 #: ../fuse/guestmount.pod:55
21608 msgid "For a libvirt guest called \"Guest\" you could do:"
21609 msgstr ""
21610
21611 #. type: verbatim
21612 #: ../fuse/guestmount.pod:57
21613 #, no-wrap
21614 msgid ""
21615 " guestmount -d Guest -i --ro /mnt\n"
21616 "\n"
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../fuse/guestmount.pod:59
21621 msgid ""
21622 "If you don't know what filesystems are contained in a guest or disk image, "
21623 "use L<virt-filesystems(1)> first:"
21624 msgstr ""
21625
21626 #. type: verbatim
21627 #: ../fuse/guestmount.pod:62
21628 #, no-wrap
21629 msgid ""
21630 " virt-filesystems MyGuest\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../fuse/guestmount.pod:64
21636 msgid ""
21637 "If you want to trace the libguestfs calls but without excessive debugging "
21638 "information, we recommend:"
21639 msgstr ""
21640
21641 #. type: verbatim
21642 #: ../fuse/guestmount.pod:67
21643 #, no-wrap
21644 msgid ""
21645 " guestmount [...] --trace /mnt\n"
21646 "\n"
21647 msgstr ""
21648
21649 #. type: textblock
21650 #: ../fuse/guestmount.pod:69
21651 msgid "If you want to debug the program, we recommend:"
21652 msgstr ""
21653
21654 #. type: verbatim
21655 #: ../fuse/guestmount.pod:71
21656 #, no-wrap
21657 msgid ""
21658 " guestmount [...] --trace --verbose /mnt\n"
21659 "\n"
21660 msgstr ""
21661
21662 #. type: =head1
21663 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96 ../resize/virt-resize.pod:621
21664 msgid "NOTES"
21665 msgstr ""
21666
21667 #. type: =head2
21668 #: ../fuse/guestmount.pod:75
21669 msgid "Other users cannot see the filesystem by default"
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../fuse/guestmount.pod:77
21674 msgid ""
21675 "If you mount a filesystem as one user (eg. root), then other users will not "
21676 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21677 "option when mounting:"
21678 msgstr ""
21679
21680 #. type: verbatim
21681 #: ../fuse/guestmount.pod:81
21682 #, no-wrap
21683 msgid ""
21684 " sudo guestmount [...] -o allow_other /mnt\n"
21685 "\n"
21686 msgstr ""
21687
21688 #. type: =head2
21689 #: ../fuse/guestmount.pod:83
21690 msgid "Enabling FUSE"
21691 msgstr ""
21692
21693 #. type: textblock
21694 #: ../fuse/guestmount.pod:85
21695 msgid ""
21696 "On some distros, you may need to add yourself to a special group "
21697 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21698 "Debian and derivatives."
21699 msgstr ""
21700
21701 #. type: textblock
21702 #: ../fuse/guestmount.pod:89
21703 msgid ""
21704 "On other distros, no special group is required.  It is not necessary on "
21705 "Fedora or Red Hat Enterprise Linux."
21706 msgstr ""
21707
21708 #. type: textblock
21709 #: ../fuse/guestmount.pod:100
21710 msgid "Add a block device or virtual machine image."
21711 msgstr ""
21712
21713 #. type: =item
21714 #: ../fuse/guestmount.pod:123
21715 msgid "B<--dir-cache-timeout N>"
21716 msgstr ""
21717
21718 #. type: textblock
21719 #: ../fuse/guestmount.pod:125
21720 msgid ""
21721 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21722 "seconds.  The readdir cache [actually, there are several semi-independent "
21723 "caches] is populated after a readdir(2) call with the stat and extended "
21724 "attributes of the files in the directory, in anticipation that they will be "
21725 "requested soon after."
21726 msgstr ""
21727
21728 #. type: textblock
21729 #: ../fuse/guestmount.pod:131
21730 msgid ""
21731 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21732 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21733 "requests, only cache existing ones."
21734 msgstr ""
21735
21736 #. type: textblock
21737 #: ../fuse/guestmount.pod:151
21738 msgid ""
21739 "If you have untrusted raw-format guest disk images, you should use this "
21740 "option to specify the disk format.  This avoids a possible security problem "
21741 "with malicious guests (CVE-2010-3851).  See also "
21742 "L<guestfs(3)/guestfs_add_drive_opts>."
21743 msgstr ""
21744
21745 #. type: =item
21746 #: ../fuse/guestmount.pod:156
21747 msgid "B<--fuse-help>"
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../fuse/guestmount.pod:158
21752 msgid "Display help on special FUSE options (see I<-o> below)."
21753 msgstr ""
21754
21755 #. type: textblock
21756 #: ../fuse/guestmount.pod:162
21757 msgid "Display brief help and exit."
21758 msgstr ""
21759
21760 #. type: textblock
21761 #: ../fuse/guestmount.pod:186
21762 msgid ""
21763 "Mount the named partition or logical volume on the given mountpoint B<in the "
21764 "guest> (this has nothing to do with mountpoints in the host)."
21765 msgstr ""
21766
21767 #. type: textblock
21768 #: ../fuse/guestmount.pod:189
21769 msgid ""
21770 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21771 "something on C</>."
21772 msgstr ""
21773
21774 #. type: textblock
21775 #: ../fuse/guestmount.pod:206
21776 msgid ""
21777 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21778 "unmounted.  If you specify this option, then we don't attempt to sync the "
21779 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21780 msgstr ""
21781
21782 #. type: =item
21783 #: ../fuse/guestmount.pod:211
21784 msgid "B<-o option>"
21785 msgstr ""
21786
21787 #. type: =item
21788 #: ../fuse/guestmount.pod:213
21789 msgid "B<--option option>"
21790 msgstr ""
21791
21792 #. type: textblock
21793 #: ../fuse/guestmount.pod:215
21794 msgid "Pass extra options to FUSE."
21795 msgstr ""
21796
21797 #. type: textblock
21798 #: ../fuse/guestmount.pod:217
21799 msgid ""
21800 "To get a list of all the extra options supported by FUSE, use the command "
21801 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21802 "of them are a good idea."
21803 msgstr ""
21804
21805 #. type: verbatim
21806 #: ../fuse/guestmount.pod:221
21807 #, no-wrap
21808 msgid ""
21809 " guestmount --fuse-help\n"
21810 "\n"
21811 msgstr ""
21812
21813 #. type: textblock
21814 #: ../fuse/guestmount.pod:223
21815 msgid "Some potentially useful FUSE options:"
21816 msgstr ""
21817
21818 #. type: =item
21819 #: ../fuse/guestmount.pod:227
21820 msgid "B<-o allow_other>"
21821 msgstr ""
21822
21823 #. type: textblock
21824 #: ../fuse/guestmount.pod:229
21825 msgid "Allow other users to see the filesystem."
21826 msgstr ""
21827
21828 #. type: =item
21829 #: ../fuse/guestmount.pod:231
21830 msgid "B<-o attr_timeout=N>"
21831 msgstr ""
21832
21833 #. type: textblock
21834 #: ../fuse/guestmount.pod:233
21835 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21836 msgstr ""
21837
21838 #. type: =item
21839 #: ../fuse/guestmount.pod:235
21840 msgid "B<-o kernel_cache>"
21841 msgstr ""
21842
21843 #. type: textblock
21844 #: ../fuse/guestmount.pod:237
21845 msgid ""
21846 "Allow the kernel to cache files (reduces the number of reads that have to go "
21847 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21848 "afford the extra memory usage."
21849 msgstr ""
21850
21851 #. type: =item
21852 #: ../fuse/guestmount.pod:241
21853 msgid "B<-o uid=N> B<-o gid=N>"
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../fuse/guestmount.pod:243
21858 msgid ""
21859 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21860 "the chosen values."
21861 msgstr ""
21862
21863 #. type: textblock
21864 #: ../fuse/guestmount.pod:252
21865 msgid ""
21866 "Add devices and mount everything read-only.  Also disallow writes and make "
21867 "the disk appear read-only to FUSE."
21868 msgstr ""
21869
21870 #. type: textblock
21871 #: ../fuse/guestmount.pod:255
21872 msgid ""
21873 "This is highly recommended if you are not going to edit the guest disk.  If "
21874 "the guest is running and this option is I<not> supplied, then there is a "
21875 "strong risk of disk corruption in the guest.  We try to prevent this from "
21876 "happening, but it is not always possible."
21877 msgstr ""
21878
21879 #. type: textblock
21880 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
21881 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21882 msgstr ""
21883
21884 #. type: textblock
21885 #: ../fuse/guestmount.pod:264
21886 msgid "Enable SELinux support for the guest."
21887 msgstr ""
21888
21889 #. type: textblock
21890 #: ../fuse/guestmount.pod:270
21891 msgid "Enable verbose messages from underlying libguestfs."
21892 msgstr ""
21893
21894 #. type: textblock
21895 #: ../fuse/guestmount.pod:276
21896 msgid "Display the program version and exit."
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
21901 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21902 msgstr ""
21903
21904 #. type: =item
21905 #: ../fuse/guestmount.pod:289
21906 msgid "B<--trace>"
21907 msgstr ""
21908
21909 #. type: textblock
21910 #: ../fuse/guestmount.pod:291
21911 msgid "Trace libguestfs calls and entry into each FUSE function."
21912 msgstr ""
21913
21914 #. type: textblock
21915 #: ../fuse/guestmount.pod:293
21916 msgid "This also stops the daemon from forking into the background."
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../fuse/guestmount.pod:319
21921 msgid ""
21922 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21923 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
21924 "L<http://fuse.sf.net/>."
21925 msgstr ""
21926
21927 #. type: textblock
21928 #: ../fuse/guestmount.pod:334
21929 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21930 msgstr ""
21931
21932 #. type: textblock
21933 #: ../inspector/virt-inspector.pod:5
21934 msgid ""
21935 "virt-inspector - Display operating system version and other information "
21936 "about a virtual machine"
21937 msgstr ""
21938
21939 #. type: verbatim
21940 #: ../inspector/virt-inspector.pod:9
21941 #, no-wrap
21942 msgid ""
21943 " virt-inspector [--options] -d domname\n"
21944 "\n"
21945 msgstr ""
21946
21947 #. type: verbatim
21948 #: ../inspector/virt-inspector.pod:11
21949 #, no-wrap
21950 msgid ""
21951 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21952 "\n"
21953 msgstr ""
21954
21955 #. type: verbatim
21956 #: ../inspector/virt-inspector.pod:15
21957 #, no-wrap
21958 msgid ""
21959 " virt-inspector domname\n"
21960 "\n"
21961 msgstr ""
21962
21963 #. type: verbatim
21964 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
21965 #, no-wrap
21966 msgid ""
21967 " virt-inspector disk.img [disk.img ...]\n"
21968 "\n"
21969 msgstr ""
21970
21971 #. type: textblock
21972 #: ../inspector/virt-inspector.pod:21
21973 msgid ""
21974 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21975 "determine the version of the operating system and other information about "
21976 "the virtual machine."
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../inspector/virt-inspector.pod:25
21981 msgid "Virt-inspector produces XML output for feeding into other programs."
21982 msgstr ""
21983
21984 #. type: textblock
21985 #: ../inspector/virt-inspector.pod:27
21986 msgid ""
21987 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21988 "the libvirt domain (see: C<virsh list --all>)."
21989 msgstr ""
21990
21991 #. type: textblock
21992 #: ../inspector/virt-inspector.pod:30
21993 msgid ""
21994 "You can also run virt-inspector directly on disk images from a single "
21995 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21996 "has several block devices, in which case you should list several I<-a> "
21997 "options one after another, with the first corresponding to the guest's "
21998 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
21999 msgstr ""
22000
22001 #. type: textblock
22002 #: ../inspector/virt-inspector.pod:37
22003 msgid ""
22004 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22005 "keys and similar."
22006 msgstr ""
22007
22008 #. type: textblock
22009 #: ../inspector/virt-inspector.pod:40
22010 msgid ""
22011 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22012 "inspect several virtual machines, you have to run virt-inspector several "
22013 "times (for example, from a shell script for-loop)."
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../inspector/virt-inspector.pod:45
22018 msgid ""
22019 "Because virt-inspector needs direct access to guest images, it won't "
22020 "normally work over remote libvirt connections."
22021 msgstr ""
22022
22023 #. type: textblock
22024 #: ../inspector/virt-inspector.pod:48
22025 msgid ""
22026 "All of the information available from virt-inspector is also available "
22027 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22028 "The same information can also be fetched using guestfish or via libguestfs "
22029 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22030 "WITH OTHER PROGRAMMING LANGUAGES>)."
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../inspector/virt-inspector.pod:81
22035 msgid ""
22036 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22037 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22038 "at all."
22039 msgstr ""
22040
22041 #. type: textblock
22042 #: ../inspector/virt-inspector.pod:94
22043 msgid ""
22044 "When prompting for keys and passphrases, virt-inspector normally turns "
22045 "echoing off so you cannot see what you are typing.  If you are not worried "
22046 "about Tempest attacks and there is no one else in the room you can specify "
22047 "this flag to see what you are typing."
22048 msgstr ""
22049
22050 #. type: textblock
22051 #: ../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
22052 msgid ""
22053 "Specify the format of disk images given on the command line.  If this is "
22054 "omitted then the format is autodetected from the content of the disk image."
22055 msgstr ""
22056
22057 #. type: textblock
22058 #: ../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
22059 msgid ""
22060 "If disk images are requested from libvirt, then this program asks libvirt "
22061 "for this information.  In this case, the value of the format parameter is "
22062 "ignored."
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391 ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22067 msgid ""
22068 "If working with untrusted raw-format guest disk images, you should ensure "
22069 "the format is always specified."
22070 msgstr ""
22071
22072 #. type: =item
22073 #: ../inspector/virt-inspector.pod:135
22074 msgid "B<--xpath> query"
22075 msgstr ""
22076
22077 #. type: textblock
22078 #: ../inspector/virt-inspector.pod:137
22079 msgid ""
22080 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22081 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22082 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22083 msgstr ""
22084
22085 #. type: textblock
22086 #: ../inspector/virt-inspector.pod:146
22087 msgid "Previous versions of virt-inspector allowed you to write either:"
22088 msgstr ""
22089
22090 #. type: verbatim
22091 #: ../inspector/virt-inspector.pod:152
22092 #, no-wrap
22093 msgid ""
22094 " virt-inspector guestname\n"
22095 "\n"
22096 msgstr ""
22097
22098 #. type: =head1
22099 #: ../inspector/virt-inspector.pod:160
22100 msgid "XML FORMAT"
22101 msgstr ""
22102
22103 #. type: textblock
22104 #: ../inspector/virt-inspector.pod:162
22105 msgid ""
22106 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22107 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22108 "just an overview."
22109 msgstr ""
22110
22111 #. type: textblock
22112 #: ../inspector/virt-inspector.pod:166
22113 msgid ""
22114 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22115 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22116 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22117 "which is vanishingly rare in real world VMs."
22118 msgstr ""
22119
22120 #. type: =head2
22121 #: ../inspector/virt-inspector.pod:171
22122 msgid "E<lt>operatingsystemE<gt>"
22123 msgstr ""
22124
22125 #. type: textblock
22126 #: ../inspector/virt-inspector.pod:173
22127 msgid ""
22128 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22129 "describe the operating system, its architecture, the descriptive \"product "
22130 "name\" string, the type of OS and so on, as in this example:"
22131 msgstr ""
22132
22133 #. type: verbatim
22134 #: ../inspector/virt-inspector.pod:177
22135 #, no-wrap
22136 msgid ""
22137 " <operatingsystems>\n"
22138 "   <operatingsystem>\n"
22139 "     <root>/dev/sda2</root>\n"
22140 "     <name>windows</name>\n"
22141 "     <arch>i386</arch>\n"
22142 "     <distro>windows</distro>\n"
22143 "     <product_name>Windows 7 Enterprise</product_name>\n"
22144 "     <product_variant>Client</product_variant>\n"
22145 "     <major_version>6</major_version>\n"
22146 "     <minor_version>1</minor_version>\n"
22147 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22148 "     <format>installed</format>\n"
22149 "\n"
22150 msgstr ""
22151
22152 #. type: textblock
22153 #: ../inspector/virt-inspector.pod:190
22154 msgid ""
22155 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22156 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22157 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22158 "architecture.  The other fields are fairly self-explanatory, but because "
22159 "these fields are taken directly from the libguestfs inspection API you can "
22160 "find precise information from L<guestfs(3)/INSPECTION>."
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../inspector/virt-inspector.pod:198
22165 msgid ""
22166 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22167 "of view of libguestfs (block devices may have completely different names "
22168 "inside the VM itself)."
22169 msgstr ""
22170
22171 #. type: =head2
22172 #: ../inspector/virt-inspector.pod:202
22173 msgid "E<lt>mountpointsE<gt>"
22174 msgstr ""
22175
22176 #. type: textblock
22177 #: ../inspector/virt-inspector.pod:204
22178 msgid ""
22179 "Un*x-like guests typically have multiple filesystems which are mounted at "
22180 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22181 "element which looks like this:"
22182 msgstr ""
22183
22184 #. type: verbatim
22185 #: ../inspector/virt-inspector.pod:208
22186 #, no-wrap
22187 msgid ""
22188 " <operatingsystems>\n"
22189 "   <operatingsystem>\n"
22190 "     ...\n"
22191 "     <mountpoints>\n"
22192 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22193 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22194 "     </mountpoints>\n"
22195 "\n"
22196 msgstr ""
22197
22198 #. type: textblock
22199 #: ../inspector/virt-inspector.pod:216
22200 msgid ""
22201 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22202 "and may have completely different names inside the guest.  Only mountable "
22203 "filesystems appear in this list, not things like swap devices."
22204 msgstr ""
22205
22206 #. type: =head2
22207 #: ../inspector/virt-inspector.pod:221
22208 msgid "E<lt>filesystemsE<gt>"
22209 msgstr ""
22210
22211 #. type: textblock
22212 #: ../inspector/virt-inspector.pod:223
22213 msgid ""
22214 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22215 "filesystems belonging to the guest, including swap and empty partitions.  "
22216 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22217 "this OS or shared with this OS and other OSes)."
22218 msgstr ""
22219
22220 #. type: textblock
22221 #: ../inspector/virt-inspector.pod:229
22222 msgid "You might see something like this:"
22223 msgstr ""
22224
22225 #. type: verbatim
22226 #: ../inspector/virt-inspector.pod:231
22227 #, no-wrap
22228 msgid ""
22229 " <operatingsystems>\n"
22230 "   <operatingsystem>\n"
22231 "     ...\n"
22232 "     <filesystems>\n"
22233 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22234 "         <type>ext4</type>\n"
22235 "         <label>Fedora-13-x86_64</label>\n"
22236 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22237 "       </filesystem>\n"
22238 "\n"
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../inspector/virt-inspector.pod:241
22243 msgid ""
22244 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22245 "the label, and the UUID."
22246 msgstr ""
22247
22248 #. type: =head2
22249 #: ../inspector/virt-inspector.pod:244
22250 msgid "E<lt>applicationsE<gt>"
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../inspector/virt-inspector.pod:246
22255 msgid ""
22256 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22257 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22258 "machine."
22259 msgstr ""
22260
22261 #. type: textblock
22262 #: ../inspector/virt-inspector.pod:250
22263 msgid ""
22264 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22265 "Typical values would be C<rpm> and C<deb>."
22266 msgstr ""
22267
22268 #. type: textblock
22269 #: ../inspector/virt-inspector.pod:253
22270 msgid ""
22271 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22272 "Typical values include C<yum>, C<up2date> and C<apt>"
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../inspector/virt-inspector.pod:256
22277 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22278 msgstr ""
22279
22280 #. type: verbatim
22281 #: ../inspector/virt-inspector.pod:259
22282 #, no-wrap
22283 msgid ""
22284 " <operatingsystems>\n"
22285 "   <operatingsystem>\n"
22286 "     ...\n"
22287 "     <applications>\n"
22288 "       <application>\n"
22289 "         <name>coreutils</name>\n"
22290 "         <version>8.5</version>\n"
22291 "         <release>1</release>\n"
22292 "       </application>\n"
22293 "\n"
22294 msgstr ""
22295
22296 #. type: textblock
22297 #: ../inspector/virt-inspector.pod:269
22298 msgid ""
22299 "The version and release fields may not be available for some types guests.  "
22300 "Other fields are possible, see "
22301 "L<guestfs(3)/guestfs_inspect_list_applications>."
22302 msgstr ""
22303
22304 #. type: =head2
22305 #: ../inspector/virt-inspector.pod:273
22306 msgid "E<lt>drive_mappingsE<gt>"
22307 msgstr ""
22308
22309 #. type: textblock
22310 #: ../inspector/virt-inspector.pod:275
22311 msgid ""
22312 "For operating systems like Windows which use drive letters, virt-inspector "
22313 "is able to find out how drive letters map to filesystems."
22314 msgstr ""
22315
22316 #. type: verbatim
22317 #: ../inspector/virt-inspector.pod:279
22318 #, no-wrap
22319 msgid ""
22320 " <operatingsystems>\n"
22321 "   <operatingsystem>\n"
22322 "     ...\n"
22323 "     <drive_mappings>\n"
22324 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22325 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22326 "     </drive_mappings>\n"
22327 "\n"
22328 msgstr ""
22329
22330 #. type: textblock
22331 #: ../inspector/virt-inspector.pod:287
22332 msgid ""
22333 "In the example above, drive C maps to the filesystem on the second partition "
22334 "on the first disk, and drive E maps to the filesystem on the first partition "
22335 "on the second disk."
22336 msgstr ""
22337
22338 #. type: textblock
22339 #: ../inspector/virt-inspector.pod:291
22340 msgid ""
22341 "Note that this only covers permanent local filesystem mappings, not things "
22342 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22343 "here."
22344 msgstr ""
22345
22346 #. type: =head2
22347 #: ../inspector/virt-inspector.pod:295
22348 msgid "E<lt>iconE<gt>"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../inspector/virt-inspector.pod:297
22353 msgid ""
22354 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22355 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22356 "very large and high quality."
22357 msgstr ""
22358
22359 #. type: verbatim
22360 #: ../inspector/virt-inspector.pod:301
22361 #, no-wrap
22362 msgid ""
22363 " <operatingsystems>\n"
22364 "   <operatingsystem>\n"
22365 "     ...\n"
22366 "     <icon>\n"
22367 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22368 "       [... many lines of base64 data ...]\n"
22369 "     </icon>\n"
22370 "\n"
22371 msgstr ""
22372
22373 #. type: textblock
22374 #: ../inspector/virt-inspector.pod:309
22375 msgid ""
22376 "To display the icon, you have to extract it and convert the base64 data back "
22377 "to a binary file.  Use an XPath query or simply an editor to extract the "
22378 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22379 "to a PNG file:"
22380 msgstr ""
22381
22382 #. type: verbatim
22383 #: ../inspector/virt-inspector.pod:314
22384 #, no-wrap
22385 msgid ""
22386 " base64 -i -d < icon.data > icon.png\n"
22387 "\n"
22388 msgstr ""
22389
22390 #. type: =head2
22391 #: ../inspector/virt-inspector.pod:316
22392 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../inspector/virt-inspector.pod:318
22397 msgid ""
22398 "Virt-inspector can detect some operating system installers on install disks, "
22399 "live CDs, bootable USB keys and more."
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../inspector/virt-inspector.pod:321
22404 msgid ""
22405 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22406 "fields may be present to indicate a live CD, network installer, or one part "
22407 "of a multipart CD.  For example:"
22408 msgstr ""
22409
22410 #. type: verbatim
22411 #: ../inspector/virt-inspector.pod:325
22412 #, no-wrap
22413 msgid ""
22414 " <operatingsystems>\n"
22415 "   <operatingsystem>\n"
22416 "     <root>/dev/sda</root>\n"
22417 "     <name>linux</name>\n"
22418 "     <arch>i386</arch>\n"
22419 "     <distro>ubuntu</distro>\n"
22420 "     <product_name>Ubuntu 10.10 &quot;Maverick "
22421 "Meerkat&quot;</product_name>\n"
22422 "     <major_version>10</major_version>\n"
22423 "     <minor_version>10</minor_version>\n"
22424 "     <format>installer</format>\n"
22425 "     <live/>\n"
22426 "\n"
22427 msgstr ""
22428
22429 #. type: =head1
22430 #: ../inspector/virt-inspector.pod:337
22431 msgid "XPATH QUERIES"
22432 msgstr ""
22433
22434 #. type: textblock
22435 #: ../inspector/virt-inspector.pod:339
22436 msgid ""
22437 "Virt-inspector includes built in support for running XPath queries.  The "
22438 "reason for including XPath support directly in virt-inspector is simply that "
22439 "there are no good and widely available command line programs that can do "
22440 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22441 "available on Red Hat Enterprise Linux."
22442 msgstr ""
22443
22444 #. type: textblock
22445 #: ../inspector/virt-inspector.pod:346
22446 msgid ""
22447 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22448 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22449 "result on stdout.  All other inspection features are disabled in this mode."
22450 msgstr ""
22451
22452 #. type: verbatim
22453 #: ../inspector/virt-inspector.pod:353
22454 #, no-wrap
22455 msgid ""
22456 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22457 " <filesystems>\n"
22458 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22459 "        <type>ext4</type>\n"
22460 " [...]\n"
22461 "\n"
22462 msgstr ""
22463
22464 #. type: verbatim
22465 #: ../inspector/virt-inspector.pod:359
22466 #, no-wrap
22467 msgid ""
22468 " $ virt-inspector -d Guest | \\\n"
22469 "     virt-inspector --xpath "
22470 "\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22471 " ext4\n"
22472 "\n"
22473 msgstr ""
22474
22475 #. type: verbatim
22476 #: ../inspector/virt-inspector.pod:363
22477 #, no-wrap
22478 msgid ""
22479 " $ virt-inspector -d Guest | \\\n"
22480 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22481 " [displays the guest icon, if there is one]\n"
22482 "\n"
22483 msgstr ""
22484
22485 #. type: =head1
22486 #: ../inspector/virt-inspector.pod:374
22487 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22488 msgstr ""
22489
22490 #. type: textblock
22491 #: ../inspector/virt-inspector.pod:376
22492 msgid ""
22493 "Early versions of libguestfs shipped with a different virt-inspector program "
22494 "written in Perl (the current version is written in C).  The XML output of "
22495 "the Perl virt-inspector was different and it could also output in other "
22496 "formats like text."
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../inspector/virt-inspector.pod:381
22501 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
22502 msgstr ""
22503
22504 #. type: textblock
22505 #: ../inspector/virt-inspector.pod:384
22506 msgid ""
22507 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22508 "versions of virt-inspector with different names:"
22509 msgstr ""
22510
22511 #. type: verbatim
22512 #: ../inspector/virt-inspector.pod:387
22513 #, no-wrap
22514 msgid ""
22515 " virt-inspector     Old Perl version.\n"
22516 " virt-inspector2    New C version.\n"
22517 "\n"
22518 msgstr ""
22519
22520 #. type: textblock
22521 #: ../inspector/virt-inspector.pod:397
22522 msgid ""
22523 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22524 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22525 msgstr ""
22526
22527 #. type: textblock
22528 #: ../inspector/virt-inspector.pod:414
22529 msgid "Matthew Booth L<mbooth@redhat.com>"
22530 msgstr ""
22531
22532 #. type: textblock
22533 #: ../java/examples/guestfs-java.pod:5
22534 msgid "guestfs-java - How to use libguestfs from Java"
22535 msgstr ""
22536
22537 #. type: verbatim
22538 #: ../java/examples/guestfs-java.pod:9
22539 #, no-wrap
22540 msgid ""
22541 " import com.redhat.et.libguestfs.*;\n"
22542 " \n"
22543 msgstr ""
22544
22545 #. type: verbatim
22546 #: ../java/examples/guestfs-java.pod:11
22547 #, no-wrap
22548 msgid ""
22549 " GuestFS g = new GuestFS ();\n"
22550 " g.add_drive_opts (\"disk.img\", null);\n"
22551 " g.launch ();\n"
22552 "\n"
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../java/examples/guestfs-java.pod:17
22557 msgid ""
22558 "This manual page documents how to call libguestfs from the Java programming "
22559 "language.  This page just documents the differences from the C API and gives "
22560 "some examples.  If you are not familiar with using libguestfs, you also need "
22561 "to read L<guestfs(3)>."
22562 msgstr ""
22563
22564 #. type: =head2
22565 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22566 msgid "CLOSING THE HANDLE"
22567 msgstr ""
22568
22569 #. type: textblock
22570 #: ../java/examples/guestfs-java.pod:24
22571 msgid ""
22572 "The handle is closed when it is reaped by the garbage collector.  Because "
22573 "libguestfs handles include a lot of state, it is also possible to close (and "
22574 "hence free) them explicitly by calling the C<close> method."
22575 msgstr ""
22576
22577 #. type: =head2
22578 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
22579 msgid "EXCEPTIONS"
22580 msgstr ""
22581
22582 #. type: textblock
22583 #: ../java/examples/guestfs-java.pod:31
22584 msgid ""
22585 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22586 "exception.  This has a single parameter which is the error message (a "
22587 "C<String>)."
22588 msgstr ""
22589
22590 #. type: textblock
22591 #: ../java/examples/guestfs-java.pod:35
22592 msgid "Calling any method on a closed handle raises the same exception."
22593 msgstr ""
22594
22595 #. type: textblock
22596 #: ../java/examples/guestfs-java.pod:47
22597 msgid ""
22598 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22599 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22600 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22601 "L<http://caml.inria.fr/>."
22602 msgstr ""
22603
22604 #. type: textblock
22605 #: ../ocaml/examples/guestfs-ocaml.pod:5
22606 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22607 msgstr ""
22608
22609 #. type: textblock
22610 #: ../ocaml/examples/guestfs-ocaml.pod:9
22611 msgid "Module style:"
22612 msgstr ""
22613
22614 #. type: verbatim
22615 #: ../ocaml/examples/guestfs-ocaml.pod:11
22616 #, no-wrap
22617 msgid ""
22618 " let g = Guestfs.create () in\n"
22619 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22620 " Guestfs.launch g;\n"
22621 "\n"
22622 msgstr ""
22623
22624 #. type: textblock
22625 #: ../ocaml/examples/guestfs-ocaml.pod:15
22626 msgid "Object-oriented style:"
22627 msgstr ""
22628
22629 #. type: verbatim
22630 #: ../ocaml/examples/guestfs-ocaml.pod:17
22631 #, no-wrap
22632 msgid ""
22633 " let g = new Guestfs.guestfs () in\n"
22634 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22635 " g#launch ();\n"
22636 "\n"
22637 msgstr ""
22638
22639 #. type: verbatim
22640 #: ../ocaml/examples/guestfs-ocaml.pod:21
22641 #, no-wrap
22642 msgid ""
22643 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22644 "or:\n"
22645 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22646 "\n"
22647 msgstr ""
22648
22649 #. type: textblock
22650 #: ../ocaml/examples/guestfs-ocaml.pod:27
22651 msgid ""
22652 "This manual page documents how to call libguestfs from the OCaml programming "
22653 "language.  This page just documents the differences from the C API and gives "
22654 "some examples.  If you are not familiar with using libguestfs, you also need "
22655 "to read L<guestfs(3)>."
22656 msgstr ""
22657
22658 #. type: =head2
22659 #: ../ocaml/examples/guestfs-ocaml.pod:32
22660 msgid "PROGRAMMING STYLES"
22661 msgstr ""
22662
22663 #. type: textblock
22664 #: ../ocaml/examples/guestfs-ocaml.pod:34
22665 msgid ""
22666 "There are two different programming styles supported by the OCaml bindings.  "
22667 "You can use a module style, with each C function mapped to an OCaml "
22668 "function:"
22669 msgstr ""
22670
22671 #. type: verbatim
22672 #: ../ocaml/examples/guestfs-ocaml.pod:38
22673 #, no-wrap
22674 msgid ""
22675 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22676 "\n"
22677 msgstr ""
22678
22679 #. type: textblock
22680 #: ../ocaml/examples/guestfs-ocaml.pod:40
22681 msgid "becomes:"
22682 msgstr ""
22683
22684 #. type: verbatim
22685 #: ../ocaml/examples/guestfs-ocaml.pod:42
22686 #, no-wrap
22687 msgid ""
22688 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22689 "\n"
22690 msgstr ""
22691
22692 #. type: textblock
22693 #: ../ocaml/examples/guestfs-ocaml.pod:44
22694 msgid ""
22695 "Alternately you can use an object-oriented style, calling methods on the "
22696 "class C<Guestfs.guestfs>:"
22697 msgstr ""
22698
22699 #. type: verbatim
22700 #: ../ocaml/examples/guestfs-ocaml.pod:47
22701 #, no-wrap
22702 msgid ""
22703 " method set_verbose : bool -> unit\n"
22704 "\n"
22705 msgstr ""
22706
22707 #. type: textblock
22708 #: ../ocaml/examples/guestfs-ocaml.pod:49
22709 msgid ""
22710 "The object-oriented style is usually briefer, and the minor performance "
22711 "penalty isn't noticable in the general overhead of performing libguestfs "
22712 "functions."
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../ocaml/examples/guestfs-ocaml.pod:55
22717 msgid ""
22718 "The handle is closed when it is reaped by the garbage collector.  Because "
22719 "libguestfs handles include a lot of state, it is also possible to close (and "
22720 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22721 "method."
22722 msgstr ""
22723
22724 #. type: textblock
22725 #: ../ocaml/examples/guestfs-ocaml.pod:62
22726 msgid ""
22727 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22728 "exception.  This has a single parameter which is the error message (a "
22729 "string)."
22730 msgstr ""
22731
22732 #. type: textblock
22733 #: ../ocaml/examples/guestfs-ocaml.pod:66
22734 msgid ""
22735 "Calling any function/method on a closed handle raises "
22736 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
22737 "that you called."
22738 msgstr ""
22739
22740 #. type: textblock
22741 #: ../ocaml/examples/guestfs-ocaml.pod:80
22742 msgid ""
22743 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22744 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22745 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22746 "L<http://caml.inria.fr/>."
22747 msgstr ""
22748
22749 #. type: textblock
22750 #: ../perl/examples/guestfs-perl.pod:5
22751 msgid "guestfs-perl - How to use libguestfs from Perl"
22752 msgstr ""
22753
22754 #. type: verbatim
22755 #: ../perl/examples/guestfs-perl.pod:9
22756 #, no-wrap
22757 msgid ""
22758 " use Sys::Guestfs;\n"
22759 " \n"
22760 msgstr ""
22761
22762 #. type: verbatim
22763 #: ../perl/examples/guestfs-perl.pod:11
22764 #, no-wrap
22765 msgid ""
22766 " my $h = Sys::Guestfs->new ();\n"
22767 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22768 " $h->launch ();\n"
22769 " $h->mount_options ('', '/dev/sda1', '/');\n"
22770 " $h->touch ('/hello');\n"
22771 " $h->sync ();\n"
22772 "\n"
22773 msgstr ""
22774
22775 #. type: textblock
22776 #: ../perl/examples/guestfs-perl.pod:20
22777 msgid ""
22778 "This manual page documents how to call libguestfs from the Perl programming "
22779 "language.  This page just documents the differences from the C API and gives "
22780 "some examples.  If you are not familiar with using libguestfs, you also need "
22781 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22782 msgstr ""
22783
22784 #. type: =head2
22785 #: ../perl/examples/guestfs-perl.pod:26
22786 msgid "ERRORS"
22787 msgstr ""
22788
22789 #. type: textblock
22790 #: ../perl/examples/guestfs-perl.pod:28
22791 msgid ""
22792 "Errors from libguestfs functions turn into calls to C<croak> (see "
22793 "L<Carp(3)>)."
22794 msgstr ""
22795
22796 #. type: textblock
22797 #: ../perl/examples/guestfs-perl.pod:41
22798 msgid ""
22799 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
22800 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
22801 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
22802 "L<http://libguestfs.org/>."
22803 msgstr ""
22804
22805 #. type: textblock
22806 #: ../python/examples/guestfs-python.pod:5
22807 msgid "guestfs-python - How to use libguestfs from Python"
22808 msgstr ""
22809
22810 #. type: verbatim
22811 #: ../python/examples/guestfs-python.pod:9
22812 #, no-wrap
22813 msgid ""
22814 " import guestfs\n"
22815 " g = guestfs.GuestFS ()\n"
22816 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22817 " g.launch\n"
22818 "\n"
22819 msgstr ""
22820
22821 #. type: textblock
22822 #: ../python/examples/guestfs-python.pod:16
22823 msgid ""
22824 "This manual page documents how to call libguestfs from the Python "
22825 "programming language.  This page just documents the differences from the C "
22826 "API and gives some examples.  If you are not familiar with using libguestfs, "
22827 "you also need to read L<guestfs(3)>."
22828 msgstr ""
22829
22830 #. type: textblock
22831 #: ../python/examples/guestfs-python.pod:23
22832 msgid ""
22833 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22834 "single string argument which is the error message."
22835 msgstr ""
22836
22837 #. type: =head2
22838 #: ../python/examples/guestfs-python.pod:26
22839 msgid "MORE DOCUMENTATION"
22840 msgstr ""
22841
22842 #. type: textblock
22843 #: ../python/examples/guestfs-python.pod:28
22844 msgid "Type:"
22845 msgstr ""
22846
22847 #. type: verbatim
22848 #: ../python/examples/guestfs-python.pod:30
22849 #, no-wrap
22850 msgid ""
22851 " $ python\n"
22852 " >>> import guestfs\n"
22853 " >>> help (guestfs)\n"
22854 "\n"
22855 msgstr ""
22856
22857 #. type: textblock
22858 #: ../python/examples/guestfs-python.pod:44
22859 msgid ""
22860 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22861 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
22862 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22863 msgstr ""
22864
22865 #. type: textblock
22866 #: ../rescue/virt-rescue.pod:5
22867 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22868 msgstr ""
22869
22870 #. type: verbatim
22871 #: ../rescue/virt-rescue.pod:9
22872 #, no-wrap
22873 msgid ""
22874 " virt-rescue [--options] -d domname\n"
22875 "\n"
22876 msgstr ""
22877
22878 #. type: verbatim
22879 #: ../rescue/virt-rescue.pod:11
22880 #, no-wrap
22881 msgid ""
22882 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22883 "\n"
22884 msgstr ""
22885
22886 #. type: verbatim
22887 #: ../rescue/virt-rescue.pod:13
22888 #, no-wrap
22889 msgid ""
22890 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
22891 "\n"
22892 msgstr ""
22893
22894 #. type: verbatim
22895 #: ../rescue/virt-rescue.pod:17
22896 #, no-wrap
22897 msgid ""
22898 " virt-rescue [--options] domname\n"
22899 "\n"
22900 msgstr ""
22901
22902 #. type: verbatim
22903 #: ../rescue/virt-rescue.pod:19
22904 #, no-wrap
22905 msgid ""
22906 " virt-rescue [--options] disk.img [disk.img ...]\n"
22907 "\n"
22908 msgstr ""
22909
22910 #. type: textblock
22911 #: ../rescue/virt-rescue.pod:23
22912 msgid ""
22913 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22914 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22915 "you from doing this, but doesn't catch all cases."
22916 msgstr ""
22917
22918 #. type: textblock
22919 #: ../rescue/virt-rescue.pod:27
22920 msgid ""
22921 "However if you use the I<--ro> (read only) option, then you can attach a "
22922 "shell to a live virtual machine.  The results might be strange or "
22923 "inconsistent at times but you won't get disk corruption."
22924 msgstr ""
22925
22926 #. type: textblock
22927 #: ../rescue/virt-rescue.pod:33
22928 msgid ""
22929 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22930 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22931 "recovery tools which you can use to examine or rescue a virtual machine or "
22932 "disk image."
22933 msgstr ""
22934
22935 #. type: textblock
22936 #: ../rescue/virt-rescue.pod:38
22937 msgid ""
22938 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22939 "on disk image(s):"
22940 msgstr ""
22941
22942 #. type: verbatim
22943 #: ../rescue/virt-rescue.pod:41
22944 #, no-wrap
22945 msgid ""
22946 " virt-rescue -d GuestName\n"
22947 "\n"
22948 msgstr ""
22949
22950 #. type: verbatim
22951 #: ../rescue/virt-rescue.pod:43
22952 #, no-wrap
22953 msgid ""
22954 " virt-rescue --ro -a /path/to/disk.img\n"
22955 "\n"
22956 msgstr ""
22957
22958 #. type: verbatim
22959 #: ../rescue/virt-rescue.pod:45
22960 #, no-wrap
22961 msgid ""
22962 " virt-rescue -a /dev/sdc\n"
22963 "\n"
22964 msgstr ""
22965
22966 #. type: textblock
22967 #: ../rescue/virt-rescue.pod:47
22968 msgid "For live VMs you I<must> use the --ro option."
22969 msgstr ""
22970
22971 #. type: textblock
22972 #: ../rescue/virt-rescue.pod:49
22973 msgid ""
22974 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22975 "in an interactive bash shell where you can use many ordinary Linux "
22976 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22977 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22978 "is an empty directory called C</sysroot> where you can mount filesystems."
22979 msgstr ""
22980
22981 #. type: textblock
22982 #: ../rescue/virt-rescue.pod:56
22983 msgid ""
22984 "You can get virt-rescue to suggest mount commands for you by using the "
22985 "I<--suggest> option (in another terminal):"
22986 msgstr ""
22987
22988 #. type: verbatim
22989 #: ../rescue/virt-rescue.pod:59
22990 #, no-wrap
22991 msgid ""
22992 " $ virt-rescue --suggest -d Fedora15\n"
22993 " Inspecting the virtual machine or disk image ...\n"
22994 " \n"
22995 msgstr ""
22996
22997 #. type: verbatim
22998 #: ../rescue/virt-rescue.pod:62
22999 #, no-wrap
23000 msgid ""
23001 " This disk contains one or more operating systems.  You can use these\n"
23002 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23003 " filesystems.\n"
23004 " \n"
23005 msgstr ""
23006
23007 #. type: verbatim
23008 #: ../rescue/virt-rescue.pod:66
23009 #, no-wrap
23010 msgid ""
23011 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23012 " # type: linux, distro: fedora, version: 15.0\n"
23013 " # Fedora release 15 (Lovelock)\n"
23014 " \n"
23015 msgstr ""
23016
23017 #. type: verbatim
23018 #: ../rescue/virt-rescue.pod:70
23019 #, no-wrap
23020 msgid ""
23021 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23022 " mount /dev/vda1 /sysroot/boot\n"
23023 " mount --bind /dev /sysroot/dev\n"
23024 " mount --bind /dev/pts /sysroot/dev/pts\n"
23025 " mount --bind /proc /sysroot/proc\n"
23026 " mount --bind /sys /sysroot/sys\n"
23027 "\n"
23028 msgstr ""
23029
23030 #. type: textblock
23031 #: ../rescue/virt-rescue.pod:77
23032 msgid ""
23033 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23034 "(with L<parted(8)>) and mount them by hand:"
23035 msgstr ""
23036
23037 #. type: verbatim
23038 #: ../rescue/virt-rescue.pod:80
23039 #, no-wrap
23040 msgid ""
23041 " ><rescue> lvs\n"
23042 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23043 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23044 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23045 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23046 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23047 " ><rescue> ls /sysroot\n"
23048 "\n"
23049 msgstr ""
23050
23051 #. type: textblock
23052 #: ../rescue/virt-rescue.pod:88
23053 msgid "Another command to list available filesystems is L<virt-filesystems(1)>."
23054 msgstr ""
23055
23056 #. type: textblock
23057 #: ../rescue/virt-rescue.pod:91
23058 msgid ""
23059 "To run commands in a Linux guest (for example, grub), you should chroot into "
23060 "the /sysroot directory first:"
23061 msgstr ""
23062
23063 #. type: verbatim
23064 #: ../rescue/virt-rescue.pod:94
23065 #, no-wrap
23066 msgid ""
23067 " ><rescue> chroot /sysroot\n"
23068 "\n"
23069 msgstr ""
23070
23071 #. type: textblock
23072 #: ../rescue/virt-rescue.pod:98
23073 msgid ""
23074 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23075 "virtual machine.  For example you can use it on a blank file if you want to "
23076 "partition that file (although we would recommend using L<guestfish(1)> "
23077 "instead as it is more suitable for this purpose).  You can even use "
23078 "virt-rescue on things like SD cards."
23079 msgstr ""
23080
23081 #. type: textblock
23082 #: ../rescue/virt-rescue.pod:104
23083 msgid ""
23084 "Virt-rescue does not require root.  You only need to run it as root if you "
23085 "need root to open the disk image."
23086 msgstr ""
23087
23088 #. type: textblock
23089 #: ../rescue/virt-rescue.pod:107
23090 msgid ""
23091 "This tool is just designed for quick interactive hacking on a virtual "
23092 "machine.  For more structured access to a virtual machine disk image, you "
23093 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23094 "make scripted changes to guests, use L<guestfish(1)>."
23095 msgstr ""
23096
23097 #. type: =item
23098 #: ../rescue/virt-rescue.pod:131
23099 msgid "B<--append kernelopts>"
23100 msgstr ""
23101
23102 #. type: textblock
23103 #: ../rescue/virt-rescue.pod:133
23104 msgid "Pass additional options to the rescue kernel."
23105 msgstr ""
23106
23107 #. type: verbatim
23108 #: ../rescue/virt-rescue.pod:163
23109 #, no-wrap
23110 msgid ""
23111 " virt-rescue --format=raw -a disk.img\n"
23112 "\n"
23113 msgstr ""
23114
23115 #. type: verbatim
23116 #: ../rescue/virt-rescue.pod:167
23117 #, no-wrap
23118 msgid ""
23119 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23120 "\n"
23121 msgstr ""
23122
23123 #. type: =item
23124 #: ../rescue/virt-rescue.pod:176
23125 msgid "B<-m MB>"
23126 msgstr ""
23127
23128 #. type: =item
23129 #: ../rescue/virt-rescue.pod:178
23130 msgid "B<--memsize MB>"
23131 msgstr ""
23132
23133 #. type: textblock
23134 #: ../rescue/virt-rescue.pod:180
23135 msgid ""
23136 "Change the amount of memory allocated to the rescue system.  The default is "
23137 "set by libguestfs and is small but adequate for running system tools.  The "
23138 "occasional program might need more memory.  The parameter is specified in "
23139 "megabytes."
23140 msgstr ""
23141
23142 #. type: =item
23143 #: ../rescue/virt-rescue.pod:185
23144 msgid "B<--network>"
23145 msgstr ""
23146
23147 #. type: textblock
23148 #: ../rescue/virt-rescue.pod:187
23149 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23150 msgstr ""
23151
23152 #. type: textblock
23153 #: ../rescue/virt-rescue.pod:193
23154 msgid "Open the image read-only."
23155 msgstr ""
23156
23157 #. type: textblock
23158 #: ../rescue/virt-rescue.pod:203
23159 msgid ""
23160 "Enable SELinux in the rescue appliance.  You should read "
23161 "L<guestfs(3)/SELINUX> before using this option."
23162 msgstr ""
23163
23164 #. type: =item
23165 #: ../rescue/virt-rescue.pod:206
23166 msgid "B<--smp> N"
23167 msgstr ""
23168
23169 #. type: textblock
23170 #: ../rescue/virt-rescue.pod:208
23171 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23172 msgstr ""
23173
23174 #. type: =item
23175 #: ../rescue/virt-rescue.pod:210
23176 msgid "B<--suggest>"
23177 msgstr ""
23178
23179 #. type: textblock
23180 #: ../rescue/virt-rescue.pod:212
23181 msgid ""
23182 "Inspect the disk image and suggest what mount commands should be used to "
23183 "mount the disks.  You should use the I<--suggest> option in a second "
23184 "terminal, then paste the commands into another virt-rescue."
23185 msgstr ""
23186
23187 #. type: textblock
23188 #: ../rescue/virt-rescue.pod:216
23189 msgid ""
23190 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23191 "another virt-rescue is running."
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../rescue/virt-rescue.pod:235
23196 msgid ""
23197 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23198 "are done read-write."
23199 msgstr ""
23200
23201 #. type: textblock
23202 #: ../rescue/virt-rescue.pod:248
23203 msgid "Previous versions of virt-rescue allowed you to write either:"
23204 msgstr ""
23205
23206 #. type: verbatim
23207 #: ../rescue/virt-rescue.pod:250
23208 #, no-wrap
23209 msgid ""
23210 " virt-rescue disk.img [disk.img ...]\n"
23211 "\n"
23212 msgstr ""
23213
23214 #. type: verbatim
23215 #: ../rescue/virt-rescue.pod:254
23216 #, no-wrap
23217 msgid ""
23218 " virt-rescue guestname\n"
23219 "\n"
23220 msgstr ""
23221
23222 #. type: =head1
23223 #: ../rescue/virt-rescue.pod:262
23224 msgid "NETWORK"
23225 msgstr ""
23226
23227 #. type: textblock
23228 #: ../rescue/virt-rescue.pod:264
23229 msgid ""
23230 "Adding the I<--network> option enables QEMU user networking in the rescue "
23231 "appliance.  There are some differences between user networking and ordinary "
23232 "networking:"
23233 msgstr ""
23234
23235 #. type: =item
23236 #: ../rescue/virt-rescue.pod:270
23237 msgid "ping does not work"
23238 msgstr ""
23239
23240 #. type: textblock
23241 #: ../rescue/virt-rescue.pod:272
23242 msgid ""
23243 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23244 "send the ping packets, and because virt-rescue must be able to run as "
23245 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
23246 "command.  The ping command will appear to resolve addresses but will not be "
23247 "able to send or receive any packets.  This does not mean that the network is "
23248 "not working."
23249 msgstr ""
23250
23251 #. type: =item
23252 #: ../rescue/virt-rescue.pod:279
23253 msgid "cannot receive connections"
23254 msgstr ""
23255
23256 #. type: textblock
23257 #: ../rescue/virt-rescue.pod:281
23258 msgid "QEMU user networking cannot receive incoming connections."
23259 msgstr ""
23260
23261 #. type: =item
23262 #: ../rescue/virt-rescue.pod:283
23263 msgid "making TCP connections"
23264 msgstr ""
23265
23266 #. type: textblock
23267 #: ../rescue/virt-rescue.pod:285
23268 msgid ""
23269 "The virt-rescue appliance needs to be small and so does not include many "
23270 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23271 "make TCP connections from the shell using the magical "
23272 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23273 msgstr ""
23274
23275 #. type: verbatim
23276 #: ../rescue/virt-rescue.pod:290
23277 #, no-wrap
23278 msgid ""
23279 " exec 3<>/dev/tcp/redhat.com/80\n"
23280 " echo \"GET /\" >&3\n"
23281 " cat <&3\n"
23282 "\n"
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../rescue/virt-rescue.pod:294
23287 msgid "See L<bash(1)> for more details."
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../rescue/virt-rescue.pod:300
23292 msgid ""
23293 "Several environment variables affect virt-rescue.  See "
23294 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
23295 msgstr ""
23296
23297 #. type: textblock
23298 #: ../rescue/virt-rescue.pod:327
23299 msgid ""
23300 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23301 "L<virt-filesystems(1)>, L<http://libguestfs.org/>."
23302 msgstr ""
23303
23304 #. type: textblock
23305 #: ../resize/virt-resize.pod:5
23306 msgid "virt-resize - Resize a virtual machine disk"
23307 msgstr ""
23308
23309 #. type: verbatim
23310 #: ../resize/virt-resize.pod:9
23311 #, no-wrap
23312 msgid ""
23313 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23314 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23315 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23316 "\n"
23317 msgstr ""
23318
23319 #. type: textblock
23320 #: ../resize/virt-resize.pod:15
23321 msgid ""
23322 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23323 "larger or smaller overall, and resizing or deleting any partitions contained "
23324 "within."
23325 msgstr ""
23326
23327 #. type: textblock
23328 #: ../resize/virt-resize.pod:19
23329 msgid ""
23330 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23331 "not> be used on live virtual machines - for consistent results, shut the "
23332 "virtual machine down before resizing it."
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../resize/virt-resize.pod:23
23337 msgid ""
23338 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23339 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23340 msgstr ""
23341
23342 #. type: =item
23343 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597 ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484 ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23344 msgid "1."
23345 msgstr ""
23346
23347 #. type: textblock
23348 #: ../resize/virt-resize.pod:33
23349 msgid ""
23350 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23351 "fill the extra 5GB of space."
23352 msgstr ""
23353
23354 #. type: verbatim
23355 #: ../resize/virt-resize.pod:36
23356 #, no-wrap
23357 msgid ""
23358 " virt-filesystems --long -h --all -a olddisk\n"
23359 " \n"
23360 msgstr ""
23361
23362 #. type: verbatim
23363 #: ../resize/virt-resize.pod:38
23364 #, no-wrap
23365 msgid ""
23366 " truncate -r olddisk newdisk\n"
23367 " truncate -s +5G newdisk\n"
23368 " \n"
23369 msgstr ""
23370
23371 #. type: verbatim
23372 #: ../resize/virt-resize.pod:41
23373 #, no-wrap
23374 msgid ""
23375 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23376 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23377 "\n"
23378 msgstr ""
23379
23380 #. type: =item
23381 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604 ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490 ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23382 msgid "2."
23383 msgstr ""
23384
23385 #. type: textblock
23386 #: ../resize/virt-resize.pod:46
23387 msgid ""
23388 "As above, but make the /boot partition 200MB bigger, while giving the "
23389 "remaining space to /dev/sda2:"
23390 msgstr ""
23391
23392 #. type: verbatim
23393 #: ../resize/virt-resize.pod:49
23394 #, no-wrap
23395 msgid ""
23396 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23397 "   olddisk newdisk\n"
23398 "\n"
23399 msgstr ""
23400
23401 #. type: =item
23402 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
23403 msgid "3."
23404 msgstr ""
23405
23406 #. type: textblock
23407 #: ../resize/virt-resize.pod:54
23408 msgid ""
23409 "As in the first example, but expand a logical volume as the final step.  "
23410 "This is what you would typically use for Linux guests that use LVM:"
23411 msgstr ""
23412
23413 #. type: verbatim
23414 #: ../resize/virt-resize.pod:58
23415 #, no-wrap
23416 msgid ""
23417 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23418 "   olddisk newdisk\n"
23419 "\n"
23420 msgstr ""
23421
23422 #. type: =item
23423 #: ../resize/virt-resize.pod:61
23424 msgid "4."
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../resize/virt-resize.pod:63
23429 msgid ""
23430 "As in the first example, but the output format will be qcow2 instead of a "
23431 "raw disk:"
23432 msgstr ""
23433
23434 #. type: verbatim
23435 #: ../resize/virt-resize.pod:66
23436 #, no-wrap
23437 msgid ""
23438 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23439 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23440 "\n"
23441 msgstr ""
23442
23443 #. type: =head1
23444 #: ../resize/virt-resize.pod:71
23445 msgid "DETAILED USAGE"
23446 msgstr ""
23447
23448 #. type: =head2
23449 #: ../resize/virt-resize.pod:73
23450 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23451 msgstr ""
23452
23453 #. type: =item
23454 #: ../resize/virt-resize.pod:77
23455 msgid "1. Shut down the virtual machine"
23456 msgstr ""
23457
23458 #. type: =item
23459 #: ../resize/virt-resize.pod:79
23460 msgid "2. Locate input disk image"
23461 msgstr ""
23462
23463 #. type: textblock
23464 #: ../resize/virt-resize.pod:81
23465 msgid ""
23466 "Locate the input disk image (ie. the file or device on the host containing "
23467 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23468 "dumpxml> like this to find the disk image name:"
23469 msgstr ""
23470
23471 #. type: verbatim
23472 #: ../resize/virt-resize.pod:85
23473 #, no-wrap
23474 msgid ""
23475 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23476 " Found 1 nodes:\n"
23477 " -- NODE --\n"
23478 " <source dev=\"/dev/vg/lv_guest\" />\n"
23479 "\n"
23480 msgstr ""
23481
23482 #. type: =item
23483 #: ../resize/virt-resize.pod:90
23484 msgid "3. Look at current sizing"
23485 msgstr ""
23486
23487 #. type: textblock
23488 #: ../resize/virt-resize.pod:92
23489 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23490 msgstr ""
23491
23492 #. type: verbatim
23493 #: ../resize/virt-resize.pod:95
23494 #, no-wrap
23495 msgid ""
23496 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23497 " Name       Type       Size  Parent\n"
23498 " /dev/sda1  partition  101M  /dev/sda\n"
23499 " /dev/sda2  partition  7.9G  /dev/sda\n"
23500 " /dev/sda   device     8.0G  -\n"
23501 "\n"
23502 msgstr ""
23503
23504 #. type: textblock
23505 #: ../resize/virt-resize.pod:101
23506 msgid ""
23507 "(This example is a virtual machine with an 8 GB disk which we would like to "
23508 "expand up to 10 GB)."
23509 msgstr ""
23510
23511 #. type: =item
23512 #: ../resize/virt-resize.pod:104
23513 msgid "4. Create output disk"
23514 msgstr ""
23515
23516 #. type: textblock
23517 #: ../resize/virt-resize.pod:106
23518 msgid ""
23519 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23520 "to store the resized output disk."
23521 msgstr ""
23522
23523 #. type: textblock
23524 #: ../resize/virt-resize.pod:109
23525 msgid "To store the resized disk image in a file, create a file of a suitable size:"
23526 msgstr ""
23527
23528 #. type: verbatim
23529 #: ../resize/virt-resize.pod:112
23530 #, no-wrap
23531 msgid ""
23532 " # rm -f outdisk\n"
23533 " # truncate -s 10G outdisk\n"
23534 "\n"
23535 msgstr ""
23536
23537 #. type: textblock
23538 #: ../resize/virt-resize.pod:115
23539 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23540 msgstr ""
23541
23542 #. type: verbatim
23543 #: ../resize/virt-resize.pod:117
23544 #, no-wrap
23545 msgid ""
23546 " # lvcreate -L 10G -n lv_name vg_name\n"
23547 "\n"
23548 msgstr ""
23549
23550 #. type: textblock
23551 #: ../resize/virt-resize.pod:119
23552 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23553 msgstr ""
23554
23555 #. type: verbatim
23556 #: ../resize/virt-resize.pod:121
23557 #, no-wrap
23558 msgid ""
23559 " # virsh pool-list\n"
23560 " # virsh vol-create-as poolname newvol 10G\n"
23561 "\n"
23562 msgstr ""
23563
23564 #. type: =item
23565 #: ../resize/virt-resize.pod:124
23566 msgid "5. Resize"
23567 msgstr ""
23568
23569 #. type: textblock
23570 #: ../resize/virt-resize.pod:126
23571 msgid ""
23572 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23573 "file) and the output disk.  The output disk is the one created in the "
23574 "previous step."
23575 msgstr ""
23576
23577 #. type: verbatim
23578 #: ../resize/virt-resize.pod:130
23579 #, no-wrap
23580 msgid ""
23581 " # virt-resize indisk outdisk\n"
23582 "\n"
23583 msgstr ""
23584
23585 #. type: textblock
23586 #: ../resize/virt-resize.pod:132
23587 msgid ""
23588 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23589 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23590 "larger, then an extra, empty partition is created at the end of the disk "
23591 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23592 "error."
23593 msgstr ""
23594
23595 #. type: textblock
23596 #: ../resize/virt-resize.pod:138
23597 msgid ""
23598 "More realistically you'd want to expand existing partitions in the disk "
23599 "image by passing extra options (for the full list see the L</OPTIONS> "
23600 "section below)."
23601 msgstr ""
23602
23603 #. type: textblock
23604 #: ../resize/virt-resize.pod:142
23605 msgid ""
23606 "L</--expand> is the most useful option.  It expands the named partition "
23607 "within the disk to fill any extra space:"
23608 msgstr ""
23609
23610 #. type: verbatim
23611 #: ../resize/virt-resize.pod:145
23612 #, no-wrap
23613 msgid ""
23614 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23615 "\n"
23616 msgstr ""
23617
23618 #. type: textblock
23619 #: ../resize/virt-resize.pod:147
23620 msgid ""
23621 "(In this case, an extra partition is I<not> created at the end of the disk, "
23622 "because there will be no unused space)."
23623 msgstr ""
23624
23625 #. type: textblock
23626 #: ../resize/virt-resize.pod:150
23627 msgid ""
23628 "L</--resize> is the other commonly used option.  The following would "
23629 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23630 "rest of the available space:"
23631 msgstr ""
23632
23633 #. type: verbatim
23634 #: ../resize/virt-resize.pod:154
23635 #, no-wrap
23636 msgid ""
23637 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23638 "     indisk outdisk\n"
23639 "\n"
23640 msgstr ""
23641
23642 #. type: textblock
23643 #: ../resize/virt-resize.pod:157
23644 msgid ""
23645 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23646 "if virt-resize knows how, it will resize the contents, the equivalent of "
23647 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23648 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23649 "filesystems, so you would have to online resize them after booting the "
23650 "guest."
23651 msgstr ""
23652
23653 #. type: textblock
23654 #: ../resize/virt-resize.pod:164
23655 msgid "Other options are covered below."
23656 msgstr ""
23657
23658 #. type: =item
23659 #: ../resize/virt-resize.pod:166
23660 msgid "6. Test"
23661 msgstr ""
23662
23663 #. type: textblock
23664 #: ../resize/virt-resize.pod:168
23665 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23666 msgstr ""
23667
23668 #. type: textblock
23669 #: ../resize/virt-resize.pod:170
23670 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23671 msgstr ""
23672
23673 #. type: verbatim
23674 #: ../resize/virt-resize.pod:172
23675 #, no-wrap
23676 msgid ""
23677 " # virsh edit guestname\n"
23678 "\n"
23679 msgstr ""
23680
23681 #. type: textblock
23682 #: ../resize/virt-resize.pod:174
23683 msgid ""
23684 "Change E<lt>source ...E<gt>, see "
23685 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23686 msgstr ""
23687
23688 #. type: textblock
23689 #: ../resize/virt-resize.pod:177
23690 msgid "Then start up the domain with the new, resized disk:"
23691 msgstr ""
23692
23693 #. type: verbatim
23694 #: ../resize/virt-resize.pod:179
23695 #, no-wrap
23696 msgid ""
23697 " # virsh start guestname\n"
23698 "\n"
23699 msgstr ""
23700
23701 #. type: textblock
23702 #: ../resize/virt-resize.pod:181
23703 msgid ""
23704 "and check that it still works.  See also the L</NOTES> section below for "
23705 "additional information."
23706 msgstr ""
23707
23708 #. type: =item
23709 #: ../resize/virt-resize.pod:184
23710 msgid "7. Resize LVs etc inside the guest"
23711 msgstr ""
23712
23713 #. type: textblock
23714 #: ../resize/virt-resize.pod:186
23715 msgid "(This can also be done offline using L<guestfish(1)>)"
23716 msgstr ""
23717
23718 #. type: textblock
23719 #: ../resize/virt-resize.pod:188
23720 msgid ""
23721 "Once the guest has booted you should see the new space available, at least "
23722 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23723 "may need to resize LVs inside PVs, and also resize filesystem types that "
23724 "virt-resize does not know how to expand."
23725 msgstr ""
23726
23727 #. type: =head2
23728 #: ../resize/virt-resize.pod:195
23729 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23730 msgstr ""
23731
23732 #. type: textblock
23733 #: ../resize/virt-resize.pod:197
23734 msgid ""
23735 "Shrinking is somewhat more complex than expanding, and only an overview is "
23736 "given here."
23737 msgstr ""
23738
23739 #. type: textblock
23740 #: ../resize/virt-resize.pod:200
23741 msgid ""
23742 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23743 "filesystems).  The user has to shrink content before passing the disk image "
23744 "to virt-resize, and virt-resize will check that the content has been shrunk "
23745 "properly."
23746 msgstr ""
23747
23748 #. type: textblock
23749 #: ../resize/virt-resize.pod:205
23750 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23751 msgstr ""
23752
23753 #. type: textblock
23754 #: ../resize/virt-resize.pod:207
23755 msgid ""
23756 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23757 "steps 3 and 4 above to allocate a new disk image."
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../resize/virt-resize.pod:210
23762 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23763 msgstr ""
23764
23765 #. type: =head2
23766 #: ../resize/virt-resize.pod:213
23767 msgid "IGNORING OR DELETING PARTITIONS"
23768 msgstr ""
23769
23770 #. type: textblock
23771 #: ../resize/virt-resize.pod:215
23772 msgid ""
23773 "virt-resize also gives a convenient way to ignore or delete partitions when "
23774 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23775 "up the copy where you don't care about the existing contents of a "
23776 "partition.  Deleting a partition removes it completely, but note that it "
23777 "also renumbers any partitions after the one which is deleted, which can "
23778 "leave some guests unbootable."
23779 msgstr ""
23780
23781 #. type: =head2
23782 #: ../resize/virt-resize.pod:222
23783 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23784 msgstr ""
23785
23786 #. type: textblock
23787 #: ../resize/virt-resize.pod:224
23788 msgid ""
23789 "If the input disk is in qcow2 format, then you may prefer that the output is "
23790 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23791 "the fly.  The output format is simply determined by the format of the empty "
23792 "output container that you provide.  Thus to create qcow2 output, use:"
23793 msgstr ""
23794
23795 #. type: verbatim
23796 #: ../resize/virt-resize.pod:230
23797 #, no-wrap
23798 msgid ""
23799 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23800 "\n"
23801 msgstr ""
23802
23803 #. type: textblock
23804 #: ../resize/virt-resize.pod:232
23805 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23806 msgstr ""
23807
23808 #. type: textblock
23809 #: ../resize/virt-resize.pod:234
23810 msgid "Similarly, to get non-sparse raw output use:"
23811 msgstr ""
23812
23813 #. type: verbatim
23814 #: ../resize/virt-resize.pod:236
23815 #, no-wrap
23816 msgid ""
23817 " fallocate -l size outdisk\n"
23818 "\n"
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../resize/virt-resize.pod:238
23823 msgid ""
23824 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
23825 "if=/dev/zero of=outdisk bs=1M count=..>)"
23826 msgstr ""
23827
23828 #. type: =head2
23829 #: ../resize/virt-resize.pod:241
23830 msgid "LOGICAL PARTITIONS"
23831 msgstr ""
23832
23833 #. type: textblock
23834 #: ../resize/virt-resize.pod:243
23835 msgid ""
23836 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23837 "tables) cannot be resized."
23838 msgstr ""
23839
23840 #. type: textblock
23841 #: ../resize/virt-resize.pod:246
23842 msgid ""
23843 "To understand what is going on, firstly one of the four partitions "
23844 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
23845 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
23846 "partition type."
23847 msgstr ""
23848
23849 #. type: textblock
23850 #: ../resize/virt-resize.pod:251
23851 msgid "Logical partitions live inside the extended partition."
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../resize/virt-resize.pod:253
23856 msgid ""
23857 "The extended partition can be expanded, but not shrunk (unless you force it, "
23858 "which is not advisable).  When the extended partition is copied across, all "
23859 "the logical partitions contained inside are copied over implicitly.  "
23860 "Virt-resize does not look inside the extended partition, so it copies the "
23861 "logical partitions blindly."
23862 msgstr ""
23863
23864 #. type: textblock
23865 #: ../resize/virt-resize.pod:259
23866 msgid ""
23867 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23868 "line.  Doing so will give an error."
23869 msgstr ""
23870
23871 #. type: textblock
23872 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23873 msgid "Display help."
23874 msgstr ""
23875
23876 #. type: =item
23877 #: ../resize/virt-resize.pod:270
23878 msgid "B<--align-first auto>"
23879 msgstr ""
23880
23881 #. type: =item
23882 #: ../resize/virt-resize.pod:272
23883 msgid "B<--align-first never>"
23884 msgstr ""
23885
23886 #. type: =item
23887 #: ../resize/virt-resize.pod:274
23888 msgid "B<--align-first always>"
23889 msgstr ""
23890
23891 #. type: textblock
23892 #: ../resize/virt-resize.pod:276
23893 msgid ""
23894 "Align the first partition for improved performance (see also the "
23895 "I<--alignment> option)."
23896 msgstr ""
23897
23898 #. type: textblock
23899 #: ../resize/virt-resize.pod:279
23900 msgid ""
23901 "The default is I<--align-first auto> which only aligns the first partition "
23902 "if it is safe to do so.  That is, only when we know how to fix the "
23903 "bootloader automatically, and at the moment that can only be done for "
23904 "Windows guests."
23905 msgstr ""
23906
23907 #. type: textblock
23908 #: ../resize/virt-resize.pod:284
23909 msgid ""
23910 "I<--align-first never> means we never move the first partition.  This is the "
23911 "safest option.  Try this if the guest does not boot after resizing."
23912 msgstr ""
23913
23914 #. type: textblock
23915 #: ../resize/virt-resize.pod:288
23916 msgid ""
23917 "I<--align-first always> means we always align the first partition (if it "
23918 "needs to be aligned).  For some guests this will break the bootloader, "
23919 "making the guest unbootable."
23920 msgstr ""
23921
23922 #. type: =item
23923 #: ../resize/virt-resize.pod:292
23924 msgid "B<--alignment N>"
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../resize/virt-resize.pod:294
23929 msgid ""
23930 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23931 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23932 msgstr ""
23933
23934 #. type: textblock
23935 #: ../resize/virt-resize.pod:298
23936 msgid ""
23937 "Assuming 512 byte sector size inside the guest, here are some suitable "
23938 "values for this:"
23939 msgstr ""
23940
23941 #. type: =item
23942 #: ../resize/virt-resize.pod:303
23943 msgid "I<--alignment 1> (512 bytes)"
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../resize/virt-resize.pod:305
23948 msgid ""
23949 "The partitions would be packed together as closely as possible, but would be "
23950 "completely unaligned.  In some cases this can cause very poor performance.  "
23951 "See L<virt-alignment-scan(1)> for further details."
23952 msgstr ""
23953
23954 #. type: =item
23955 #: ../resize/virt-resize.pod:309
23956 msgid "I<--alignment 8> (4K)"
23957 msgstr ""
23958
23959 #. type: textblock
23960 #: ../resize/virt-resize.pod:311
23961 msgid ""
23962 "This would be the minimum acceptable alignment for reasonable performance on "
23963 "modern hosts."
23964 msgstr ""
23965
23966 #. type: =item
23967 #: ../resize/virt-resize.pod:314
23968 msgid "I<--alignment 128> (64K)"
23969 msgstr ""
23970
23971 #. type: textblock
23972 #: ../resize/virt-resize.pod:316
23973 msgid ""
23974 "This alignment provides good performance when the host is using high end "
23975 "network storage."
23976 msgstr ""
23977
23978 #. type: =item
23979 #: ../resize/virt-resize.pod:319
23980 msgid "I<--alignment 2048> (1M)"
23981 msgstr ""
23982
23983 #. type: textblock
23984 #: ../resize/virt-resize.pod:321
23985 msgid ""
23986 "This is the standard alignment used by all newly installed guests since "
23987 "around 2008."
23988 msgstr ""
23989
23990 #. type: =item
23991 #: ../resize/virt-resize.pod:326
23992 msgid "B<-d>"
23993 msgstr ""
23994
23995 #. type: =item
23996 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
23997 msgid "B<--debug>"
23998 msgstr ""
23999
24000 #. type: textblock
24001 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24002 msgid "Enable debugging messages."
24003 msgstr ""
24004
24005 #. type: =item
24006 #: ../resize/virt-resize.pod:332
24007 msgid "B<--delete part>"
24008 msgstr ""
24009
24010 #. type: textblock
24011 #: ../resize/virt-resize.pod:334
24012 msgid ""
24013 "Delete the named partition.  It would be more accurate to describe this as "
24014 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24015 "the original disk image is left intact."
24016 msgstr ""
24017
24018 #. type: textblock
24019 #: ../resize/virt-resize.pod:338
24020 msgid ""
24021 "Note that when you delete a partition, then anything contained in the "
24022 "partition is also deleted.  Furthermore, this causes any partitions that "
24023 "come after to be I<renumbered>, which can easily make your guest unbootable."
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404 ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24028 msgid "You can give this option multiple times."
24029 msgstr ""
24030
24031 #. type: =item
24032 #: ../resize/virt-resize.pod:345
24033 msgid "B<--expand part>"
24034 msgstr ""
24035
24036 #. type: textblock
24037 #: ../resize/virt-resize.pod:347
24038 msgid ""
24039 "Expand the named partition so it uses up all extra space (space left over "
24040 "after any other resize changes that you request have been done)."
24041 msgstr ""
24042
24043 #. type: textblock
24044 #: ../resize/virt-resize.pod:350
24045 msgid ""
24046 "If virt-resize knows how, it will expand the direct content of the "
24047 "partition.  For example, if the partition is an LVM PV, it will expand the "
24048 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24049 "content it doesn't know about alone."
24050 msgstr ""
24051
24052 #. type: textblock
24053 #: ../resize/virt-resize.pod:355
24054 msgid "Currently virt-resize can resize:"
24055 msgstr ""
24056
24057 #. type: textblock
24058 #: ../resize/virt-resize.pod:361
24059 msgid "ext2, ext3 and ext4 filesystems."
24060 msgstr ""
24061
24062 #. type: textblock
24063 #: ../resize/virt-resize.pod:365
24064 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24065 msgstr ""
24066
24067 #. type: textblock
24068 #: ../resize/virt-resize.pod:367
24069 msgid ""
24070 "The filesystem must have been shut down consistently last time it was used.  "
24071 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24072 "consistency check, so at the first boot after resizing Windows will check "
24073 "the disk."
24074 msgstr ""
24075
24076 #. type: textblock
24077 #: ../resize/virt-resize.pod:374
24078 msgid ""
24079 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24080 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24081 "resize LVs as desired after boot."
24082 msgstr ""
24083
24084 #. type: textblock
24085 #: ../resize/virt-resize.pod:380
24086 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24087 msgstr ""
24088
24089 #. type: textblock
24090 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24091 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24092 msgstr ""
24093
24094 #. type: =item
24095 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24096 msgid "B<--format> raw"
24097 msgstr ""
24098
24099 #. type: textblock
24100 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24101 msgid ""
24102 "Specify the format of the input disk image.  If this flag is not given then "
24103 "it is auto-detected from the image itself."
24104 msgstr ""
24105
24106 #. type: textblock
24107 #: ../resize/virt-resize.pod:394
24108 msgid ""
24109 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24110 "AND NON-SPARSE RAW FORMATS>."
24111 msgstr ""
24112
24113 #. type: =item
24114 #: ../resize/virt-resize.pod:397
24115 msgid "B<--ignore part>"
24116 msgstr ""
24117
24118 #. type: textblock
24119 #: ../resize/virt-resize.pod:399
24120 msgid ""
24121 "Ignore the named partition.  Effectively this means the partition is "
24122 "allocated on the destination disk, but the content is not copied across from "
24123 "the source disk.  The content of the partition will be blank (all zero "
24124 "bytes)."
24125 msgstr ""
24126
24127 #. type: =item
24128 #: ../resize/virt-resize.pod:406
24129 msgid "B<--LV-expand logvol>"
24130 msgstr ""
24131
24132 #. type: textblock
24133 #: ../resize/virt-resize.pod:408
24134 msgid ""
24135 "This takes the logical volume and, as a final step, expands it to fill all "
24136 "the space available in its volume group.  A typical usage, assuming a Linux "
24137 "guest with a single PV C</dev/sda2> and a root device called "
24138 "C</dev/vg_guest/lv_root> would be:"
24139 msgstr ""
24140
24141 #. type: verbatim
24142 #: ../resize/virt-resize.pod:413
24143 #, no-wrap
24144 msgid ""
24145 " virt-resize indisk outdisk \\\n"
24146 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24147 "\n"
24148 msgstr ""
24149
24150 #. type: textblock
24151 #: ../resize/virt-resize.pod:416
24152 msgid ""
24153 "This would first expand the partition (and PV), and then expand the root "
24154 "device to fill the extra space in the PV."
24155 msgstr ""
24156
24157 #. type: textblock
24158 #: ../resize/virt-resize.pod:419
24159 msgid ""
24160 "The contents of the LV are also resized if virt-resize knows how to do "
24161 "that.  You can stop virt-resize from trying to expand the content by using "
24162 "the option I<--no-expand-content>."
24163 msgstr ""
24164
24165 #. type: textblock
24166 #: ../resize/virt-resize.pod:423
24167 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24168 msgstr ""
24169
24170 #. type: textblock
24171 #: ../resize/virt-resize.pod:425
24172 msgid ""
24173 "You can give this option multiple times, I<but> it doesn't make sense to do "
24174 "this unless the logical volumes you specify are all in different volume "
24175 "groups."
24176 msgstr ""
24177
24178 #. type: =item
24179 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24180 msgid "B<--machine-readable>"
24181 msgstr ""
24182
24183 #. type: textblock
24184 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24185 msgid ""
24186 "This option is used to make the output more machine friendly when being "
24187 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24188 msgstr ""
24189
24190 #. type: =item
24191 #: ../resize/virt-resize.pod:437
24192 msgid "B<--dryrun>"
24193 msgstr ""
24194
24195 #. type: textblock
24196 #: ../resize/virt-resize.pod:439
24197 msgid "Print a summary of what would be done, but don't do anything."
24198 msgstr ""
24199
24200 #. type: =item
24201 #: ../resize/virt-resize.pod:441
24202 msgid "B<--no-copy-boot-loader>"
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../resize/virt-resize.pod:443
24207 msgid ""
24208 "By default, virt-resize copies over some sectors at the start of the disk "
24209 "(up to the beginning of the first partition).  Commonly these sectors "
24210 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24211 "in order for the guest to boot correctly."
24212 msgstr ""
24213
24214 #. type: textblock
24215 #: ../resize/virt-resize.pod:448
24216 msgid ""
24217 "If you specify this flag, then this initial copy is not done.  You may need "
24218 "to reinstall the boot loader in this case."
24219 msgstr ""
24220
24221 #. type: =item
24222 #: ../resize/virt-resize.pod:451
24223 msgid "B<--no-extra-partition>"
24224 msgstr ""
24225
24226 #. type: textblock
24227 #: ../resize/virt-resize.pod:453
24228 msgid ""
24229 "By default, virt-resize creates an extra partition if there is any extra, "
24230 "unused space after all resizing has happened.  Use this option to prevent "
24231 "the extra partition from being created.  If you do this then the extra space "
24232 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24233 "tool in the guest."
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../resize/virt-resize.pod:459
24238 msgid ""
24239 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24240 "will be created."
24241 msgstr ""
24242
24243 #. type: =item
24244 #: ../resize/virt-resize.pod:462
24245 msgid "B<--no-expand-content>"
24246 msgstr ""
24247
24248 #. type: textblock
24249 #: ../resize/virt-resize.pod:464
24250 msgid ""
24251 "By default, virt-resize will try to expand the direct contents of "
24252 "partitions, if it knows how (see I<--expand> option above)."
24253 msgstr ""
24254
24255 #. type: textblock
24256 #: ../resize/virt-resize.pod:467
24257 msgid ""
24258 "If you give the I<--no-expand-content> option then virt-resize will not "
24259 "attempt this."
24260 msgstr ""
24261
24262 #. type: =item
24263 #: ../resize/virt-resize.pod:470
24264 msgid "B<--ntfsresize-force>"
24265 msgstr ""
24266
24267 #. type: textblock
24268 #: ../resize/virt-resize.pod:472
24269 msgid ""
24270 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24271 "the NTFS disk is marked as needing a consistency check.  You have to use "
24272 "this option if you want to resize a Windows guest multiple times without "
24273 "booting into Windows between each resize."
24274 msgstr ""
24275
24276 #. type: =item
24277 #: ../resize/virt-resize.pod:478
24278 msgid "B<--output-format> raw"
24279 msgstr ""
24280
24281 #. type: textblock
24282 #: ../resize/virt-resize.pod:480
24283 msgid ""
24284 "Specify the format of the output disk image.  If this flag is not given then "
24285 "it is auto-detected from the image itself."
24286 msgstr ""
24287
24288 #. type: textblock
24289 #: ../resize/virt-resize.pod:486
24290 msgid ""
24291 "Note that this option I<does not create> the output format.  This option "
24292 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24293 "need to create the output disk with the right format.  See L</QCOW2 AND "
24294 "NON-SPARSE RAW FORMATS>."
24295 msgstr ""
24296
24297 #. type: textblock
24298 #: ../resize/virt-resize.pod:495
24299 msgid "Don't print the summary."
24300 msgstr ""
24301
24302 #. type: =item
24303 #: ../resize/virt-resize.pod:497
24304 msgid "B<--resize part=size>"
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../resize/virt-resize.pod:499
24309 msgid ""
24310 "Resize the named partition (expanding or shrinking it) so that it has the "
24311 "given size."
24312 msgstr ""
24313
24314 #. type: textblock
24315 #: ../resize/virt-resize.pod:502
24316 msgid ""
24317 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24318 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24319 "size; or as a relative number or percentage.  For example:"
24320 msgstr ""
24321
24322 #. type: verbatim
24323 #: ../resize/virt-resize.pod:508
24324 #, no-wrap
24325 msgid ""
24326 " --resize /dev/sda2=10G\n"
24327 "\n"
24328 msgstr ""
24329
24330 #. type: verbatim
24331 #: ../resize/virt-resize.pod:510
24332 #, no-wrap
24333 msgid ""
24334 " --resize /dev/sda4=90%\n"
24335 "\n"
24336 msgstr ""
24337
24338 #. type: verbatim
24339 #: ../resize/virt-resize.pod:512
24340 #, no-wrap
24341 msgid ""
24342 " --resize /dev/sda2=+1G\n"
24343 "\n"
24344 msgstr ""
24345
24346 #. type: verbatim
24347 #: ../resize/virt-resize.pod:514
24348 #, no-wrap
24349 msgid ""
24350 " --resize /dev/sda2=-200M\n"
24351 "\n"
24352 msgstr ""
24353
24354 #. type: verbatim
24355 #: ../resize/virt-resize.pod:516
24356 #, no-wrap
24357 msgid ""
24358 " --resize /dev/sda1=+128K\n"
24359 "\n"
24360 msgstr ""
24361
24362 #. type: verbatim
24363 #: ../resize/virt-resize.pod:518
24364 #, no-wrap
24365 msgid ""
24366 " --resize /dev/sda1=+10%\n"
24367 "\n"
24368 msgstr ""
24369
24370 #. type: verbatim
24371 #: ../resize/virt-resize.pod:520
24372 #, no-wrap
24373 msgid ""
24374 " --resize /dev/sda1=-10%\n"
24375 "\n"
24376 msgstr ""
24377
24378 #. type: textblock
24379 #: ../resize/virt-resize.pod:522
24380 msgid ""
24381 "You can increase the size of any partition.  Virt-resize will expand the "
24382 "direct content of the partition if it knows how (see I<--expand> below)."
24383 msgstr ""
24384
24385 #. type: textblock
24386 #: ../resize/virt-resize.pod:526
24387 msgid ""
24388 "You can only I<decrease> the size of partitions that contain filesystems or "
24389 "PVs which have already been shrunk.  Virt-resize will check this has been "
24390 "done before proceeding, or else will print an error (see also "
24391 "I<--resize-force>)."
24392 msgstr ""
24393
24394 #. type: =item
24395 #: ../resize/virt-resize.pod:533
24396 msgid "B<--resize-force part=size>"
24397 msgstr ""
24398
24399 #. type: textblock
24400 #: ../resize/virt-resize.pod:535
24401 msgid ""
24402 "This is the same as I<--resize> except that it will let you decrease the "
24403 "size of any partition.  Generally this means you will lose any data which "
24404 "was at the end of the partition you shrink, but you may not care about that "
24405 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24406 "as a swap partition)."
24407 msgstr ""
24408
24409 #. type: textblock
24410 #: ../resize/virt-resize.pod:541
24411 msgid "See also the I<--ignore> option."
24412 msgstr ""
24413
24414 #. type: =item
24415 #: ../resize/virt-resize.pod:543
24416 msgid "B<--shrink part>"
24417 msgstr ""
24418
24419 #. type: textblock
24420 #: ../resize/virt-resize.pod:545
24421 msgid ""
24422 "Shrink the named partition until the overall disk image fits in the "
24423 "destination.  The named partition B<must> contain a filesystem or PV which "
24424 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24425 "online tools).  Virt-resize will check this and give an error if it has not "
24426 "been done."
24427 msgstr ""
24428
24429 #. type: textblock
24430 #: ../resize/virt-resize.pod:551
24431 msgid ""
24432 "The amount by which the overall disk must be shrunk (after carrying out all "
24433 "other operations requested by the user) is called the \"deficit\".  For "
24434 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24435 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24436 "would give an error unless the user specified a partition to shrink and that "
24437 "partition had more than a gigabyte of free space."
24438 msgstr ""
24439
24440 #. type: =head1
24441 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24442 msgid "MACHINE READABLE OUTPUT"
24443 msgstr ""
24444
24445 #. type: textblock
24446 #: ../resize/virt-resize.pod:571
24447 msgid ""
24448 "The I<--machine-readable> option can be used to make the output more machine "
24449 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24450 "etc."
24451 msgstr ""
24452
24453 #. type: textblock
24454 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24455 msgid "There are two ways to use this option."
24456 msgstr ""
24457
24458 #. type: textblock
24459 #: ../resize/virt-resize.pod:577
24460 msgid ""
24461 "Firstly use the option on its own to query the capabilities of the "
24462 "virt-resize binary.  Typical output looks like this:"
24463 msgstr ""
24464
24465 #. type: verbatim
24466 #: ../resize/virt-resize.pod:580
24467 #, no-wrap
24468 msgid ""
24469 " $ virt-resize --machine-readable\n"
24470 " virt-resize\n"
24471 " ntfsresize-force\n"
24472 " 32bitok\n"
24473 " ntfs\n"
24474 " btrfs\n"
24475 "\n"
24476 msgstr ""
24477
24478 #. type: textblock
24479 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24480 msgid ""
24481 "A list of features is printed, one per line, and the program exits with "
24482 "status 0."
24483 msgstr ""
24484
24485 #. type: textblock
24486 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24487 msgid ""
24488 "Secondly use the option in conjunction with other options to make the "
24489 "regular program output more machine friendly."
24490 msgstr ""
24491
24492 #. type: textblock
24493 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24494 msgid "At the moment this means:"
24495 msgstr ""
24496
24497 #. type: textblock
24498 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24499 msgid ""
24500 "Progress bar messages can be parsed from stdout by looking for this regular "
24501 "expression:"
24502 msgstr ""
24503
24504 #. type: verbatim
24505 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24506 #, no-wrap
24507 msgid ""
24508 " ^[0-9]+/[0-9]+$\n"
24509 "\n"
24510 msgstr ""
24511
24512 #. type: textblock
24513 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24514 msgid ""
24515 "The calling program should treat messages sent to stdout (except for "
24516 "progress bar messages) as status messages.  They can be logged and/or "
24517 "displayed to the user."
24518 msgstr ""
24519
24520 #. type: textblock
24521 #: ../resize/virt-resize.pod:612
24522 msgid ""
24523 "The calling program should treat messages sent to stderr as error messages.  "
24524 "In addition, virt-resize exits with a non-zero status code if there was a "
24525 "fatal error."
24526 msgstr ""
24527
24528 #. type: textblock
24529 #: ../resize/virt-resize.pod:618
24530 msgid ""
24531 "Versions of the program prior to 1.13.9 did not support the "
24532 "I<--machine-readable> option and will return an error."
24533 msgstr ""
24534
24535 #. type: =head2
24536 #: ../resize/virt-resize.pod:623
24537 msgid "\"Partition 1 does not end on cylinder boundary.\""
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../resize/virt-resize.pod:625
24542 msgid ""
24543 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24544 "I<--alignment> parameter).  Usually this means the partitions will not be "
24545 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24546 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24547 "drives.  Alignment of partitions to cylinders is not required by any modern "
24548 "operating system."
24549 msgstr ""
24550
24551 #. type: =head2
24552 #: ../resize/virt-resize.pod:632
24553 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../resize/virt-resize.pod:634
24558 msgid ""
24559 "In Windows Vista and later versions, Microsoft switched to using a separate "
24560 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24561 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24562 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24563 "the second partition (ie. C: drive)  should work."
24564 msgstr ""
24565
24566 #. type: textblock
24567 #: ../resize/virt-resize.pod:641
24568 msgid ""
24569 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24570 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24571 "it find errors) is nothing to worry about."
24572 msgstr ""
24573
24574 #. type: =head2
24575 #: ../resize/virt-resize.pod:645
24576 msgid "GUEST BOOT STUCK AT \"GRUB\""
24577 msgstr ""
24578
24579 #. type: textblock
24580 #: ../resize/virt-resize.pod:647
24581 msgid ""
24582 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24583 "printing C<GRUB> on the console, try reinstalling grub."
24584 msgstr ""
24585
24586 #. type: verbatim
24587 #: ../resize/virt-resize.pod:650
24588 #, no-wrap
24589 msgid ""
24590 " guestfish -i -a newdisk\n"
24591 " ><fs> cat /boot/grub/device.map\n"
24592 " # check the contents of this file are sensible or\n"
24593 " # edit the file if necessary\n"
24594 " ><fs> grub-install / /dev/vda\n"
24595 " ><fs> exit\n"
24596 "\n"
24597 msgstr ""
24598
24599 #. type: textblock
24600 #: ../resize/virt-resize.pod:657
24601 msgid ""
24602 "For more flexible guest reconfiguration, including if you need to specify "
24603 "other parameters to grub-install, use L<virt-rescue(1)>."
24604 msgstr ""
24605
24606 #. type: =head1
24607 #: ../resize/virt-resize.pod:660
24608 msgid "ALTERNATIVE TOOLS"
24609 msgstr ""
24610
24611 #. type: textblock
24612 #: ../resize/virt-resize.pod:662
24613 msgid ""
24614 "There are several proprietary tools for resizing partitions.  We won't "
24615 "mention any here."
24616 msgstr ""
24617
24618 #. type: textblock
24619 #: ../resize/virt-resize.pod:665
24620 msgid ""
24621 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24622 "operations on disk images.  They can resize and move partitions, but I don't "
24623 "think they can do anything with the contents, and they certainly don't "
24624 "understand LVM."
24625 msgstr ""
24626
24627 #. type: textblock
24628 #: ../resize/virt-resize.pod:670
24629 msgid ""
24630 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24631 "but at a much lower level.  You will probably end up hand-calculating sector "
24632 "offsets, which is something that virt-resize was designed to avoid.  If you "
24633 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24634 "I<--debug> flag."
24635 msgstr ""
24636
24637 #. type: textblock
24638 #: ../resize/virt-resize.pod:690
24639 msgid ""
24640 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24641 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24642 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24643 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
24644 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24645 msgstr ""
24646
24647 #. type: textblock
24648 #: ../ruby/examples/guestfs-ruby.pod:5
24649 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24650 msgstr ""
24651
24652 #. type: verbatim
24653 #: ../ruby/examples/guestfs-ruby.pod:9
24654 #, no-wrap
24655 msgid ""
24656 " require 'guestfs'\n"
24657 " g = Guestfs::Guestfs.new()\n"
24658 " g.add_drive_opts(\"disk.img\",\n"
24659 "                  :readonly => 1, :format => \"raw\")\n"
24660 " g.launch()\n"
24661 "\n"
24662 msgstr ""
24663
24664 #. type: textblock
24665 #: ../ruby/examples/guestfs-ruby.pod:17
24666 msgid ""
24667 "This manual page documents how to call libguestfs from the Ruby programming "
24668 "language.  This page just documents the differences from the C API and gives "
24669 "some examples.  If you are not familiar with using libguestfs, you also need "
24670 "to read L<guestfs(3)>."
24671 msgstr ""
24672
24673 #. type: textblock
24674 #: ../ruby/examples/guestfs-ruby.pod:24
24675 msgid ""
24676 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24677 "This has a single parameter which is the error message (a string)."
24678 msgstr ""
24679
24680 #. type: textblock
24681 #: ../ruby/examples/guestfs-ruby.pod:38
24682 msgid ""
24683 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
24684 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
24685 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24686 msgstr ""
24687
24688 #. type: textblock
24689 #: ../sparsify/virt-sparsify.pod:5
24690 msgid "virt-sparsify - Make a virtual machine disk sparse"
24691 msgstr ""
24692
24693 #. type: verbatim
24694 #: ../sparsify/virt-sparsify.pod:9
24695 #, no-wrap
24696 msgid ""
24697 " virt-sparsify [--options] indisk outdisk\n"
24698 "\n"
24699 msgstr ""
24700
24701 #. type: textblock
24702 #: ../sparsify/virt-sparsify.pod:13
24703 msgid ""
24704 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24705 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24706 "the disk image can be converted back to free space on the host."
24707 msgstr ""
24708
24709 #. type: textblock
24710 #: ../sparsify/virt-sparsify.pod:18
24711 msgid ""
24712 "Virt-sparsify can locate and sparsify free space in most filesystems "
24713 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24714 msgstr ""
24715
24716 #. type: textblock
24717 #: ../sparsify/virt-sparsify.pod:21
24718 msgid ""
24719 "Virt-sparsify can also convert between some disk formats, for example "
24720 "converting a raw disk image to a thin-provisioned qcow2 image."
24721 msgstr ""
24722
24723 #. type: textblock
24724 #: ../sparsify/virt-sparsify.pod:24
24725 msgid ""
24726 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24727 "machines.  If a virtual machine has more than one attached disk, you must "
24728 "sparsify each one separately."
24729 msgstr ""
24730
24731 #. type: =head2
24732 #: ../sparsify/virt-sparsify.pod:28
24733 msgid "IMPORTANT LIMITATIONS"
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../sparsify/virt-sparsify.pod:34
24738 msgid ""
24739 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24740 "image to a destination image, leaving the source unchanged.  I<Check that "
24741 "the sparsification was successful before deleting the source image>."
24742 msgstr ""
24743
24744 #. type: textblock
24745 #: ../sparsify/virt-sparsify.pod:41
24746 msgid "The virtual machine I<must be shut down> before using this tool."
24747 msgstr ""
24748
24749 #. type: textblock
24750 #: ../sparsify/virt-sparsify.pod:45
24751 msgid ""
24752 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24753 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24754 "usually much less space is required."
24755 msgstr ""
24756
24757 #. type: textblock
24758 #: ../sparsify/virt-sparsify.pod:51
24759 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24760 msgstr ""
24761
24762 #. type: textblock
24763 #: ../sparsify/virt-sparsify.pod:56
24764 msgid "Virt-sparsify cannot handle encrypted disks."
24765 msgstr ""
24766
24767 #. type: textblock
24768 #: ../sparsify/virt-sparsify.pod:60
24769 msgid ""
24770 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24771 "this space is often used for critical items like bootloaders so it's not "
24772 "really unused."
24773 msgstr ""
24774
24775 #. type: textblock
24776 #: ../sparsify/virt-sparsify.pod:66
24777 msgid ""
24778 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24779 "to do this unless we can be sure there is no hibernation data, so at the "
24780 "moment swap partitions are ignored."
24781 msgstr ""
24782
24783 #. type: textblock
24784 #: ../sparsify/virt-sparsify.pod:72
24785 msgid ""
24786 "You may also want to read the manual pages for the associated tools "
24787 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
24788 msgstr ""
24789
24790 #. type: textblock
24791 #: ../sparsify/virt-sparsify.pod:77
24792 msgid "Typical usage is:"
24793 msgstr ""
24794
24795 #. type: verbatim
24796 #: ../sparsify/virt-sparsify.pod:79
24797 #, no-wrap
24798 msgid ""
24799 " virt-sparsify indisk outdisk\n"
24800 "\n"
24801 msgstr ""
24802
24803 #. type: textblock
24804 #: ../sparsify/virt-sparsify.pod:81
24805 msgid ""
24806 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24807 "is created, or overwritten if it already exists.  The format of the input "
24808 "disk is detected (eg. qcow2) and the same format is used for the output "
24809 "disk."
24810 msgstr ""
24811
24812 #. type: textblock
24813 #: ../sparsify/virt-sparsify.pod:86
24814 msgid "To convert between formats, use the I<--convert> option:"
24815 msgstr ""
24816
24817 #. type: verbatim
24818 #: ../sparsify/virt-sparsify.pod:88
24819 #, no-wrap
24820 msgid ""
24821 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24822 "\n"
24823 msgstr ""
24824
24825 #. type: textblock
24826 #: ../sparsify/virt-sparsify.pod:90
24827 msgid ""
24828 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24829 "can find within the source disk image.  You can get it to ignore (don't zero "
24830 "free space on) certain filesystems by doing:"
24831 msgstr ""
24832
24833 #. type: verbatim
24834 #: ../sparsify/virt-sparsify.pod:94
24835 #, no-wrap
24836 msgid ""
24837 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24838 "\n"
24839 msgstr ""
24840
24841 #. type: textblock
24842 #: ../sparsify/virt-sparsify.pod:96
24843 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24844 msgstr ""
24845
24846 #. type: =item
24847 #: ../sparsify/virt-sparsify.pod:107
24848 msgid "B<--convert> raw"
24849 msgstr ""
24850
24851 #. type: =item
24852 #: ../sparsify/virt-sparsify.pod:109
24853 msgid "B<--convert> qcow2"
24854 msgstr ""
24855
24856 #. type: =item
24857 #: ../sparsify/virt-sparsify.pod:111
24858 msgid "B<--convert> [other formats]"
24859 msgstr ""
24860
24861 #. type: textblock
24862 #: ../sparsify/virt-sparsify.pod:113
24863 msgid ""
24864 "Use C<output-format> as the format for the destination image.  If this is "
24865 "not specified, then the input format is used."
24866 msgstr ""
24867
24868 #. type: textblock
24869 #: ../sparsify/virt-sparsify.pod:116
24870 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24871 msgstr ""
24872
24873 #. type: textblock
24874 #: ../sparsify/virt-sparsify.pod:118
24875 msgid ""
24876 "You can also use any format supported by the L<qemu-img(1)> program, "
24877 "eg. C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24878 msgstr ""
24879
24880 #. type: textblock
24881 #: ../sparsify/virt-sparsify.pod:122
24882 msgid ""
24883 "Specifying the I<--convert> option is usually a good idea, because then "
24884 "virt-sparsify doesn't need to try to guess the input format."
24885 msgstr ""
24886
24887 #. type: =item
24888 #: ../sparsify/virt-sparsify.pod:127
24889 msgid "B<--format> qcow2"
24890 msgstr ""
24891
24892 #. type: =item
24893 #: ../sparsify/virt-sparsify.pod:135
24894 msgid "B<--ignore> filesystem"
24895 msgstr ""
24896
24897 #. type: =item
24898 #: ../sparsify/virt-sparsify.pod:137
24899 msgid "B<--ignore> volgroup"
24900 msgstr ""
24901
24902 #. type: textblock
24903 #: ../sparsify/virt-sparsify.pod:139
24904 msgid ""
24905 "Ignore the named filesystem.  Free space on the filesystem will not be "
24906 "zeroed, but existing blocks of zeroes will still be sparsified."
24907 msgstr ""
24908
24909 #. type: textblock
24910 #: ../sparsify/virt-sparsify.pod:142
24911 msgid ""
24912 "In the second form, this ignores the named volume group.  Use the volume "
24913 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24914 msgstr ""
24915
24916 #. type: textblock
24917 #: ../sparsify/virt-sparsify.pod:157
24918 msgid "This disables progress bars and other unnecessary output."
24919 msgstr ""
24920
24921 #. type: textblock
24922 #: ../sparsify/virt-sparsify.pod:179
24923 msgid ""
24924 "The I<--machine-readable> option can be used to make the output more machine "
24925 "friendly, which is useful when calling virt-sparsify from other programs, "
24926 "GUIs etc."
24927 msgstr ""
24928
24929 #. type: textblock
24930 #: ../sparsify/virt-sparsify.pod:185
24931 msgid ""
24932 "Firstly use the option on its own to query the capabilities of the "
24933 "virt-sparsify binary.  Typical output looks like this:"
24934 msgstr ""
24935
24936 #. type: verbatim
24937 #: ../sparsify/virt-sparsify.pod:188
24938 #, no-wrap
24939 msgid ""
24940 " $ virt-sparsify --machine-readable\n"
24941 " virt-sparsify\n"
24942 " ntfs\n"
24943 " btrfs\n"
24944 "\n"
24945 msgstr ""
24946
24947 #. type: textblock
24948 #: ../sparsify/virt-sparsify.pod:218
24949 msgid ""
24950 "The calling program should treat messages sent to stderr as error messages.  "
24951 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24952 "fatal error."
24953 msgstr ""
24954
24955 #. type: textblock
24956 #: ../sparsify/virt-sparsify.pod:224
24957 msgid ""
24958 "All versions of virt-sparsify have supported the I<--machine-readable> "
24959 "option."
24960 msgstr ""
24961
24962 #. type: textblock
24963 #: ../sparsify/virt-sparsify.pod:238
24964 msgid ""
24965 "Location of the temporary directory used for the potentially large temporary "
24966 "overlay file."
24967 msgstr ""
24968
24969 #. type: textblock
24970 #: ../sparsify/virt-sparsify.pod:241
24971 msgid ""
24972 "You should ensure there is enough free space in the worst case for a full "
24973 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24974 "to another directory that has enough space."
24975 msgstr ""
24976
24977 #. type: textblock
24978 #: ../sparsify/virt-sparsify.pod:245
24979 msgid "This defaults to C</tmp>."
24980 msgstr ""
24981
24982 #. type: textblock
24983 #: ../sparsify/virt-sparsify.pod:249
24984 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24985 msgstr ""
24986
24987 #. type: textblock
24988 #: ../sparsify/virt-sparsify.pod:253
24989 msgid ""
24990 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24991 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
24992 "L<qemu-img(1)>, L<http://libguestfs.org/>."
24993 msgstr ""
24994
24995 #. type: =head2
24996 #: ../src/guestfs-actions.pod:1
24997 msgid "guestfs_add_cdrom"
24998 msgstr ""
24999
25000 #. type: verbatim
25001 #: ../src/guestfs-actions.pod:3
25002 #, no-wrap
25003 msgid ""
25004 " int\n"
25005 " guestfs_add_cdrom (guestfs_h *g,\n"
25006 "                    const char *filename);\n"
25007 "\n"
25008 msgstr ""
25009
25010 #. type: textblock
25011 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
25012 msgid ""
25013 "I<This function is deprecated.> In new code, use the "
25014 "L</guestfs_add_drive_opts> call instead."
25015 msgstr ""
25016
25017 #. type: textblock
25018 #: ../src/guestfs-actions.pod:24
25019 msgid ""
25020 "This call checks for the existence of C<filename>.  This stops you from "
25021 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25022 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25023 "instead."
25024 msgstr ""
25025
25026 #. type: textblock
25027 #: ../src/guestfs-actions.pod:31
25028 msgid ""
25029 "If you just want to add an ISO file (often you use this as an efficient way "
25030 "to transfer large files into the guest), then you should probably use "
25031 "C<guestfs_add_drive_ro> instead."
25032 msgstr ""
25033
25034 #. type: textblock
25035 #: ../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:4328 ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4369 ../src/guestfs-actions.pod:4384 ../src/guestfs-actions.pod:4420 ../src/guestfs-actions.pod:4492 ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4529 ../src/guestfs-actions.pod:4549 ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4677 ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4722 ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4751 ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5047 ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5116 ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5150 ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5178 ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5237 ../src/guestfs-actions.pod:5300 ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5404 ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442 ../src/guestfs-actions.pod:5454 ../src/guestfs-actions.pod:5471 ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5499 ../src/guestfs-actions.pod:5514 ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:5611 ../src/guestfs-actions.pod:5631 ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5711 ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5811 ../src/guestfs-actions.pod:5854 ../src/guestfs-actions.pod:5882 ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6151 ../src/guestfs-actions.pod:6203 ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6299 ../src/guestfs-actions.pod:6313 ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:6640 ../src/guestfs-actions.pod:6654 ../src/guestfs-actions.pod:6666 ../src/guestfs-actions.pod:6680 ../src/guestfs-actions.pod:6692 ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:6740 ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6826 ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6926 ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6962 ../src/guestfs-actions.pod:6990 ../src/guestfs-actions.pod:7014 ../src/guestfs-actions.pod:7033 ../src/guestfs-actions.pod:7049 ../src/guestfs-actions.pod:7073 ../src/guestfs-actions.pod:7092 ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:7170 ../src/guestfs-actions.pod:7197 ../src/guestfs-actions.pod:7227 ../src/guestfs-actions.pod:7339 ../src/guestfs-actions.pod:7460 ../src/guestfs-actions.pod:7472 ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7559 ../src/guestfs-actions.pod:7574 ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7666 ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7699 ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7732 ../src/guestfs-actions.pod:7832 ../src/guestfs-actions.pod:7888 ../src/guestfs-actions.pod:7902 ../src/guestfs-actions.pod:7943 ../src/guestfs-actions.pod:7956 ../src/guestfs-actions.pod:7974 ../src/guestfs-actions.pod:8008 ../src/guestfs-actions.pod:8044 ../src/guestfs-actions.pod:8160 ../src/guestfs-actions.pod:8175 ../src/guestfs-actions.pod:8189 ../src/guestfs-actions.pod:8244 ../src/guestfs-actions.pod:8257 ../src/guestfs-actions.pod:8302 ../src/guestfs-actions.pod:8342 ../src/guestfs-actions.pod:8398 ../src/guestfs-actions.pod:8418 ../src/guestfs-actions.pod:8451 ../src/guestfs-actions.pod:8515 ../src/guestfs-actions.pod:8538 ../src/guestfs-actions.pod:8564
25036 msgid "This function returns 0 on success or -1 on error."
25037 msgstr ""
25038
25039 #. type: textblock
25040 #: ../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:5548 ../src/guestfs-actions.pod:6828 ../src/guestfs-actions.pod:6945 ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7701 ../src/guestfs-actions.pod:8344
25041 msgid "(Added in 0.3)"
25042 msgstr ""
25043
25044 #. type: =head2
25045 #: ../src/guestfs-actions.pod:41
25046 msgid "guestfs_add_domain"
25047 msgstr ""
25048
25049 #. type: verbatim
25050 #: ../src/guestfs-actions.pod:43
25051 #, no-wrap
25052 msgid ""
25053 " int\n"
25054 " guestfs_add_domain (guestfs_h *g,\n"
25055 "                     const char *dom,\n"
25056 "                     ...);\n"
25057 "\n"
25058 msgstr ""
25059
25060 #. type: textblock
25061 #: ../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:4876 ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5558 ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:7743
25062 msgid ""
25063 "You may supply a list of optional arguments to this call.  Use zero or more "
25064 "of the following pairs of parameters, and terminate the list with C<-1> on "
25065 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25066 msgstr ""
25067
25068 #. type: verbatim
25069 #: ../src/guestfs-actions.pod:53
25070 #, no-wrap
25071 msgid ""
25072 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25073 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25074 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25075 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25076 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25077 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25078 "\n"
25079 msgstr ""
25080
25081 #. type: textblock
25082 #: ../src/guestfs-actions.pod:60
25083 msgid ""
25084 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25085 "It works by connecting to libvirt, requesting the domain and domain XML from "
25086 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25087 "one."
25088 msgstr ""
25089
25090 #. type: textblock
25091 #: ../src/guestfs-actions.pod:141
25092 msgid ""
25093 "The other optional parameters are passed directly through to "
25094 "C<guestfs_add_drive_opts>."
25095 msgstr ""
25096
25097 #. type: textblock
25098 #: ../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:5734 ../src/guestfs-actions.pod:5951 ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6383 ../src/guestfs-actions.pod:6409 ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:8355 ../src/guestfs-actions.pod:8368 ../src/guestfs-actions.pod:8381
25099 msgid "On error this function returns -1."
25100 msgstr ""
25101
25102 #. type: textblock
25103 #: ../src/guestfs-actions.pod:146
25104 msgid "(Added in 1.7.4)"
25105 msgstr ""
25106
25107 #. type: =head2
25108 #: ../src/guestfs-actions.pod:148
25109 msgid "guestfs_add_domain_va"
25110 msgstr ""
25111
25112 #. type: verbatim
25113 #: ../src/guestfs-actions.pod:150
25114 #, no-wrap
25115 msgid ""
25116 " int\n"
25117 " guestfs_add_domain_va (guestfs_h *g,\n"
25118 "                        const char *dom,\n"
25119 "                        va_list args);\n"
25120 "\n"
25121 msgstr ""
25122
25123 #. type: textblock
25124 #: ../src/guestfs-actions.pod:155
25125 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25126 msgstr ""
25127
25128 #. type: textblock
25129 #: ../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:4953 ../src/guestfs-actions.pod:4965 ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:5835 ../src/guestfs-actions.pod:7843 ../src/guestfs-actions.pod:7854
25130 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25131 msgstr ""
25132
25133 #. type: =head2
25134 #: ../src/guestfs-actions.pod:159
25135 msgid "guestfs_add_domain_argv"
25136 msgstr ""
25137
25138 #. type: verbatim
25139 #: ../src/guestfs-actions.pod:161
25140 #, no-wrap
25141 msgid ""
25142 " int\n"
25143 " guestfs_add_domain_argv (guestfs_h *g,\n"
25144 "                          const char *dom,\n"
25145 "                          const struct guestfs_add_domain_argv *optargs);\n"
25146 "\n"
25147 msgstr ""
25148
25149 #. type: textblock
25150 #: ../src/guestfs-actions.pod:166
25151 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25152 msgstr ""
25153
25154 #. type: =head2
25155 #: ../src/guestfs-actions.pod:170
25156 msgid "guestfs_add_drive"
25157 msgstr ""
25158
25159 #. type: verbatim
25160 #: ../src/guestfs-actions.pod:172
25161 #, no-wrap
25162 msgid ""
25163 " int\n"
25164 " guestfs_add_drive (guestfs_h *g,\n"
25165 "                    const char *filename);\n"
25166 "\n"
25167 msgstr ""
25168
25169 #. type: textblock
25170 #: ../src/guestfs-actions.pod:176
25171 msgid ""
25172 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25173 "optional parameters, so the disk is added writable, with the format being "
25174 "detected automatically."
25175 msgstr ""
25176
25177 #. type: textblock
25178 #: ../src/guestfs-actions.pod:180
25179 msgid ""
25180 "Automatic detection of the format opens you up to a potential security hole "
25181 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25182 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25183 "you should think about replacing calls to this function with calls to "
25184 "C<guestfs_add_drive_opts>, and specifying the format."
25185 msgstr ""
25186
25187 #. type: =head2
25188 #: ../src/guestfs-actions.pod:191
25189 msgid "guestfs_add_drive_opts"
25190 msgstr ""
25191
25192 #. type: verbatim
25193 #: ../src/guestfs-actions.pod:193
25194 #, no-wrap
25195 msgid ""
25196 " int\n"
25197 " guestfs_add_drive_opts (guestfs_h *g,\n"
25198 "                         const char *filename,\n"
25199 "                         ...);\n"
25200 "\n"
25201 msgstr ""
25202
25203 #. type: verbatim
25204 #: ../src/guestfs-actions.pod:203
25205 #, no-wrap
25206 msgid ""
25207 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25208 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25209 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25210 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25211 "\n"
25212 msgstr ""
25213
25214 #. type: textblock
25215 #: ../src/guestfs-actions.pod:233
25216 msgid ""
25217 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25218 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25219 "Possible formats include C<raw> and C<qcow2>."
25220 msgstr ""
25221
25222 #. type: textblock
25223 #: ../src/guestfs-actions.pod:244
25224 msgid ""
25225 "This rarely-used option lets you emulate the behaviour of the deprecated "
25226 "C<guestfs_add_drive_with_if> call (q.v.)"
25227 msgstr ""
25228
25229 #. type: textblock
25230 #: ../src/guestfs-actions.pod:256
25231 msgid "(Added in 1.5.23)"
25232 msgstr ""
25233
25234 #. type: =head2
25235 #: ../src/guestfs-actions.pod:258
25236 msgid "guestfs_add_drive_opts_va"
25237 msgstr ""
25238
25239 #. type: verbatim
25240 #: ../src/guestfs-actions.pod:260
25241 #, no-wrap
25242 msgid ""
25243 " int\n"
25244 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25245 "                            const char *filename,\n"
25246 "                            va_list args);\n"
25247 "\n"
25248 msgstr ""
25249
25250 #. type: textblock
25251 #: ../src/guestfs-actions.pod:265
25252 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25253 msgstr ""
25254
25255 #. type: =head2
25256 #: ../src/guestfs-actions.pod:269
25257 msgid "guestfs_add_drive_opts_argv"
25258 msgstr ""
25259
25260 #. type: verbatim
25261 #: ../src/guestfs-actions.pod:271
25262 #, no-wrap
25263 msgid ""
25264 " int\n"
25265 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25266 "                              const char *filename,\n"
25267 "                              const struct guestfs_add_drive_opts_argv "
25268 "*optargs);\n"
25269 "\n"
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../src/guestfs-actions.pod:276
25274 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25275 msgstr ""
25276
25277 #. type: =head2
25278 #: ../src/guestfs-actions.pod:280
25279 msgid "guestfs_add_drive_ro"
25280 msgstr ""
25281
25282 #. type: verbatim
25283 #: ../src/guestfs-actions.pod:282
25284 #, no-wrap
25285 msgid ""
25286 " int\n"
25287 " guestfs_add_drive_ro (guestfs_h *g,\n"
25288 "                       const char *filename);\n"
25289 "\n"
25290 msgstr ""
25291
25292 #. type: textblock
25293 #: ../src/guestfs-actions.pod:286
25294 msgid ""
25295 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25296 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25297 "disk is added read-only, with the format being detected automatically."
25298 msgstr ""
25299
25300 #. type: textblock
25301 #: ../src/guestfs-actions.pod:293
25302 msgid "(Added in 1.0.38)"
25303 msgstr ""
25304
25305 #. type: =head2
25306 #: ../src/guestfs-actions.pod:295
25307 msgid "guestfs_add_drive_ro_with_if"
25308 msgstr ""
25309
25310 #. type: verbatim
25311 #: ../src/guestfs-actions.pod:297
25312 #, no-wrap
25313 msgid ""
25314 " int\n"
25315 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25316 "                               const char *filename,\n"
25317 "                               const char *iface);\n"
25318 "\n"
25319 msgstr ""
25320
25321 #. type: textblock
25322 #: ../src/guestfs-actions.pod:309
25323 msgid ""
25324 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25325 "QEMU interface emulation to use at run time."
25326 msgstr ""
25327
25328 #. type: textblock
25329 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2881
25330 msgid "(Added in 1.0.84)"
25331 msgstr ""
25332
25333 #. type: =head2
25334 #: ../src/guestfs-actions.pod:316
25335 msgid "guestfs_add_drive_with_if"
25336 msgstr ""
25337
25338 #. type: verbatim
25339 #: ../src/guestfs-actions.pod:318
25340 #, no-wrap
25341 msgid ""
25342 " int\n"
25343 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25344 "                            const char *filename,\n"
25345 "                            const char *iface);\n"
25346 "\n"
25347 msgstr ""
25348
25349 #. type: textblock
25350 #: ../src/guestfs-actions.pod:330
25351 msgid ""
25352 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25353 "QEMU interface emulation to use at run time."
25354 msgstr ""
25355
25356 #. type: =head2
25357 #: ../src/guestfs-actions.pod:337
25358 msgid "guestfs_aug_clear"
25359 msgstr ""
25360
25361 #. type: verbatim
25362 #: ../src/guestfs-actions.pod:339
25363 #, no-wrap
25364 msgid ""
25365 " int\n"
25366 " guestfs_aug_clear (guestfs_h *g,\n"
25367 "                    const char *augpath);\n"
25368 "\n"
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25373 msgid "(Added in 1.3.4)"
25374 msgstr ""
25375
25376 #. type: =head2
25377 #: ../src/guestfs-actions.pod:350
25378 msgid "guestfs_aug_close"
25379 msgstr ""
25380
25381 #. type: verbatim
25382 #: ../src/guestfs-actions.pod:352
25383 #, no-wrap
25384 msgid ""
25385 " int\n"
25386 " guestfs_aug_close (guestfs_h *g);\n"
25387 "\n"
25388 msgstr ""
25389
25390 #. type: textblock
25391 #: ../src/guestfs-actions.pod:355
25392 msgid ""
25393 "Close the current Augeas handle and free up any resources used by it.  After "
25394 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25395 "any other Augeas functions."
25396 msgstr ""
25397
25398 #. type: textblock
25399 #: ../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:6460
25400 msgid "(Added in 0.7)"
25401 msgstr ""
25402
25403 #. type: =head2
25404 #: ../src/guestfs-actions.pod:364
25405 msgid "guestfs_aug_defnode"
25406 msgstr ""
25407
25408 #. type: verbatim
25409 #: ../src/guestfs-actions.pod:366
25410 #, no-wrap
25411 msgid ""
25412 " struct guestfs_int_bool *\n"
25413 " guestfs_aug_defnode (guestfs_h *g,\n"
25414 "                      const char *name,\n"
25415 "                      const char *expr,\n"
25416 "                      const char *val);\n"
25417 "\n"
25418 msgstr ""
25419
25420 #. type: textblock
25421 #: ../src/guestfs-actions.pod:375
25422 msgid ""
25423 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25424 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25425 "containing that single node."
25426 msgstr ""
25427
25428 #. type: textblock
25429 #: ../src/guestfs-actions.pod:383
25430 msgid ""
25431 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25432 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25433 msgstr ""
25434
25435 #. type: =head2
25436 #: ../src/guestfs-actions.pod:389
25437 msgid "guestfs_aug_defvar"
25438 msgstr ""
25439
25440 #. type: verbatim
25441 #: ../src/guestfs-actions.pod:391
25442 #, no-wrap
25443 msgid ""
25444 " int\n"
25445 " guestfs_aug_defvar (guestfs_h *g,\n"
25446 "                     const char *name,\n"
25447 "                     const char *expr);\n"
25448 "\n"
25449 msgstr ""
25450
25451 #. type: =head2
25452 #: ../src/guestfs-actions.pod:407
25453 msgid "guestfs_aug_get"
25454 msgstr ""
25455
25456 #. type: verbatim
25457 #: ../src/guestfs-actions.pod:409
25458 #, no-wrap
25459 msgid ""
25460 " char *\n"
25461 " guestfs_aug_get (guestfs_h *g,\n"
25462 "                  const char *augpath);\n"
25463 "\n"
25464 msgstr ""
25465
25466 #. type: textblock
25467 #: ../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:4314 ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:5076 ../src/guestfs-actions.pod:5969 ../src/guestfs-actions.pod:6170 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:7245 ../src/guestfs-actions.pod:7261 ../src/guestfs-actions.pod:7285 ../src/guestfs-actions.pod:7309 ../src/guestfs-actions.pod:8103 ../src/guestfs-actions.pod:8122 ../src/guestfs-actions.pod:8140 ../src/guestfs-actions.pod:8314 ../src/guestfs-actions.pod:8628
25468 msgid ""
25469 "This function returns a string, or NULL on error.  I<The caller must free "
25470 "the returned string after use>."
25471 msgstr ""
25472
25473 #. type: =head2
25474 #: ../src/guestfs-actions.pod:421
25475 msgid "guestfs_aug_init"
25476 msgstr ""
25477
25478 #. type: verbatim
25479 #: ../src/guestfs-actions.pod:423
25480 #, no-wrap
25481 msgid ""
25482 " int\n"
25483 " guestfs_aug_init (guestfs_h *g,\n"
25484 "                   const char *root,\n"
25485 "                   int flags);\n"
25486 "\n"
25487 msgstr ""
25488
25489 #. type: textblock
25490 #: ../src/guestfs-actions.pod:432
25491 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25492 msgstr ""
25493
25494 #. type: textblock
25495 #: ../src/guestfs-actions.pod:457
25496 msgid ""
25497 "This option is only useful when debugging Augeas lenses.  Use of this option "
25498 "may require additional memory for the libguestfs appliance.  You may need to "
25499 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25500 "C<guestfs_set_memsize>."
25501 msgstr ""
25502
25503 #. type: textblock
25504 #: ../src/guestfs-actions.pod:472
25505 msgid "Do not load the tree in C<guestfs_aug_init>."
25506 msgstr ""
25507
25508 #. type: textblock
25509 #: ../src/guestfs-actions.pod:476
25510 msgid "To close the handle, you can call C<guestfs_aug_close>."
25511 msgstr ""
25512
25513 #. type: =head2
25514 #: ../src/guestfs-actions.pod:484
25515 msgid "guestfs_aug_insert"
25516 msgstr ""
25517
25518 #. type: verbatim
25519 #: ../src/guestfs-actions.pod:486
25520 #, no-wrap
25521 msgid ""
25522 " int\n"
25523 " guestfs_aug_insert (guestfs_h *g,\n"
25524 "                     const char *augpath,\n"
25525 "                     const char *label,\n"
25526 "                     int before);\n"
25527 "\n"
25528 msgstr ""
25529
25530 #. type: =head2
25531 #: ../src/guestfs-actions.pod:504
25532 msgid "guestfs_aug_load"
25533 msgstr ""
25534
25535 #. type: verbatim
25536 #: ../src/guestfs-actions.pod:506
25537 #, no-wrap
25538 msgid ""
25539 " int\n"
25540 " guestfs_aug_load (guestfs_h *g);\n"
25541 "\n"
25542 msgstr ""
25543
25544 #. type: =head2
25545 #: ../src/guestfs-actions.pod:518
25546 msgid "guestfs_aug_ls"
25547 msgstr ""
25548
25549 #. type: verbatim
25550 #: ../src/guestfs-actions.pod:520
25551 #, no-wrap
25552 msgid ""
25553 " char **\n"
25554 " guestfs_aug_ls (guestfs_h *g,\n"
25555 "                 const char *augpath);\n"
25556 "\n"
25557 msgstr ""
25558
25559 #. type: textblock
25560 #: ../src/guestfs-actions.pod:524
25561 msgid ""
25562 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25563 "sorting the resulting nodes into alphabetical order."
25564 msgstr ""
25565
25566 #. type: textblock
25567 #: ../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:4296 ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4800 ../src/guestfs-actions.pod:5695 ../src/guestfs-actions.pod:6330 ../src/guestfs-actions.pod:6456 ../src/guestfs-actions.pod:6570 ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7386 ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7587 ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:8207 ../src/guestfs-actions.pod:8227 ../src/guestfs-actions.pod:8274 ../src/guestfs-actions.pod:8468 ../src/guestfs-actions.pod:8487 ../src/guestfs-actions.pod:8578 ../src/guestfs-actions.pod:8597 ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
25568 msgid ""
25569 "This function returns a NULL-terminated array of strings (like "
25570 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
25571 "strings and the array after use>."
25572 msgstr ""
25573
25574 #. type: textblock
25575 #: ../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:4644 ../src/guestfs-actions.pod:4691 ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5049 ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5699 ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6668 ../src/guestfs-actions.pod:6682 ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:7172 ../src/guestfs-actions.pod:7945 ../src/guestfs-actions.pod:7958 ../src/guestfs-actions.pod:8191 ../src/guestfs-actions.pod:8456
25576 msgid "(Added in 0.8)"
25577 msgstr ""
25578
25579 #. type: =head2
25580 #: ../src/guestfs-actions.pod:533
25581 msgid "guestfs_aug_match"
25582 msgstr ""
25583
25584 #. type: verbatim
25585 #: ../src/guestfs-actions.pod:535
25586 #, no-wrap
25587 msgid ""
25588 " char **\n"
25589 " guestfs_aug_match (guestfs_h *g,\n"
25590 "                    const char *augpath);\n"
25591 "\n"
25592 msgstr ""
25593
25594 #. type: =head2
25595 #: ../src/guestfs-actions.pod:549
25596 msgid "guestfs_aug_mv"
25597 msgstr ""
25598
25599 #. type: verbatim
25600 #: ../src/guestfs-actions.pod:551
25601 #, no-wrap
25602 msgid ""
25603 " int\n"
25604 " guestfs_aug_mv (guestfs_h *g,\n"
25605 "                 const char *src,\n"
25606 "                 const char *dest);\n"
25607 "\n"
25608 msgstr ""
25609
25610 #. type: =head2
25611 #: ../src/guestfs-actions.pod:563
25612 msgid "guestfs_aug_rm"
25613 msgstr ""
25614
25615 #. type: verbatim
25616 #: ../src/guestfs-actions.pod:565
25617 #, no-wrap
25618 msgid ""
25619 " int\n"
25620 " guestfs_aug_rm (guestfs_h *g,\n"
25621 "                 const char *augpath);\n"
25622 "\n"
25623 msgstr ""
25624
25625 #. type: =head2
25626 #: ../src/guestfs-actions.pod:577
25627 msgid "guestfs_aug_save"
25628 msgstr ""
25629
25630 #. type: verbatim
25631 #: ../src/guestfs-actions.pod:579
25632 #, no-wrap
25633 msgid ""
25634 " int\n"
25635 " guestfs_aug_save (guestfs_h *g);\n"
25636 "\n"
25637 msgstr ""
25638
25639 #. type: textblock
25640 #: ../src/guestfs-actions.pod:584
25641 msgid ""
25642 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25643 "are saved."
25644 msgstr ""
25645
25646 #. type: =head2
25647 #: ../src/guestfs-actions.pod:591
25648 msgid "guestfs_aug_set"
25649 msgstr ""
25650
25651 #. type: verbatim
25652 #: ../src/guestfs-actions.pod:593
25653 #, no-wrap
25654 msgid ""
25655 " int\n"
25656 " guestfs_aug_set (guestfs_h *g,\n"
25657 "                  const char *augpath,\n"
25658 "                  const char *val);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../src/guestfs-actions.pod:600
25664 msgid ""
25665 "In the Augeas API, it is possible to clear a node by setting the value to "
25666 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25667 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25668 msgstr ""
25669
25670 #. type: =head2
25671 #: ../src/guestfs-actions.pod:609
25672 msgid "guestfs_available"
25673 msgstr ""
25674
25675 #. type: verbatim
25676 #: ../src/guestfs-actions.pod:611
25677 #, no-wrap
25678 msgid ""
25679 " int\n"
25680 " guestfs_available (guestfs_h *g,\n"
25681 "                    char *const *groups);\n"
25682 "\n"
25683 msgstr ""
25684
25685 #. type: textblock
25686 #: ../src/guestfs-actions.pod:619
25687 msgid ""
25688 "The libguestfs groups, and the functions that those groups correspond to, "
25689 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25690 "runtime by calling C<guestfs_available_all_groups>."
25691 msgstr ""
25692
25693 #. type: textblock
25694 #: ../src/guestfs-actions.pod:643
25695 msgid "You must call C<guestfs_launch> before calling this function."
25696 msgstr ""
25697
25698 #. type: textblock
25699 #: ../src/guestfs-actions.pod:665
25700 msgid ""
25701 "This call was added in version C<1.0.80>.  In previous versions of "
25702 "libguestfs all you could do would be to speculatively execute a command to "
25703 "find out if the daemon implemented it.  See also C<guestfs_version>."
25704 msgstr ""
25705
25706 #. type: textblock
25707 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25708 msgid "(Added in 1.0.80)"
25709 msgstr ""
25710
25711 #. type: =head2
25712 #: ../src/guestfs-actions.pod:676
25713 msgid "guestfs_available_all_groups"
25714 msgstr ""
25715
25716 #. type: verbatim
25717 #: ../src/guestfs-actions.pod:678
25718 #, no-wrap
25719 msgid ""
25720 " char **\n"
25721 " guestfs_available_all_groups (guestfs_h *g);\n"
25722 "\n"
25723 msgstr ""
25724
25725 #. type: textblock
25726 #: ../src/guestfs-actions.pod:681
25727 msgid ""
25728 "This command returns a list of all optional groups that this daemon knows "
25729 "about.  Note this returns both supported and unsupported groups.  To find "
25730 "out which ones the daemon can actually support you have to call "
25731 "C<guestfs_available> on each member of the returned list."
25732 msgstr ""
25733
25734 #. type: textblock
25735 #: ../src/guestfs-actions.pod:687
25736 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25737 msgstr ""
25738
25739 #. type: textblock
25740 #: ../src/guestfs-actions.pod:693
25741 msgid "(Added in 1.3.15)"
25742 msgstr ""
25743
25744 #. type: =head2
25745 #: ../src/guestfs-actions.pod:695
25746 msgid "guestfs_base64_in"
25747 msgstr ""
25748
25749 #. type: verbatim
25750 #: ../src/guestfs-actions.pod:697
25751 #, no-wrap
25752 msgid ""
25753 " int\n"
25754 " guestfs_base64_in (guestfs_h *g,\n"
25755 "                    const char *base64file,\n"
25756 "                    const char *filename);\n"
25757 "\n"
25758 msgstr ""
25759
25760 #. type: textblock
25761 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25762 msgid "(Added in 1.3.5)"
25763 msgstr ""
25764
25765 #. type: =head2
25766 #: ../src/guestfs-actions.pod:709
25767 msgid "guestfs_base64_out"
25768 msgstr ""
25769
25770 #. type: verbatim
25771 #: ../src/guestfs-actions.pod:711
25772 #, no-wrap
25773 msgid ""
25774 " int\n"
25775 " guestfs_base64_out (guestfs_h *g,\n"
25776 "                     const char *filename,\n"
25777 "                     const char *base64file);\n"
25778 "\n"
25779 msgstr ""
25780
25781 #. type: =head2
25782 #: ../src/guestfs-actions.pod:723
25783 msgid "guestfs_blockdev_flushbufs"
25784 msgstr ""
25785
25786 #. type: verbatim
25787 #: ../src/guestfs-actions.pod:725
25788 #, no-wrap
25789 msgid ""
25790 " int\n"
25791 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25792 "                             const char *device);\n"
25793 "\n"
25794 msgstr ""
25795
25796 #. type: textblock
25797 #: ../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
25798 msgid "(Added in 0.9.3)"
25799 msgstr ""
25800
25801 #. type: =head2
25802 #: ../src/guestfs-actions.pod:738
25803 msgid "guestfs_blockdev_getbsz"
25804 msgstr ""
25805
25806 #. type: verbatim
25807 #: ../src/guestfs-actions.pod:740
25808 #, no-wrap
25809 msgid ""
25810 " int\n"
25811 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25812 "                          const char *device);\n"
25813 "\n"
25814 msgstr ""
25815
25816 #. type: =head2
25817 #: ../src/guestfs-actions.pod:755
25818 msgid "guestfs_blockdev_getro"
25819 msgstr ""
25820
25821 #. type: verbatim
25822 #: ../src/guestfs-actions.pod:757
25823 #, no-wrap
25824 msgid ""
25825 " int\n"
25826 " guestfs_blockdev_getro (guestfs_h *g,\n"
25827 "                         const char *device);\n"
25828 "\n"
25829 msgstr ""
25830
25831 #. type: textblock
25832 #: ../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:5933
25833 msgid "This function returns a C truth value on success or -1 on error."
25834 msgstr ""
25835
25836 #. type: =head2
25837 #: ../src/guestfs-actions.pod:770
25838 msgid "guestfs_blockdev_getsize64"
25839 msgstr ""
25840
25841 #. type: verbatim
25842 #: ../src/guestfs-actions.pod:772
25843 #, no-wrap
25844 msgid ""
25845 " int64_t\n"
25846 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25847 "                             const char *device);\n"
25848 "\n"
25849 msgstr ""
25850
25851 #. type: textblock
25852 #: ../src/guestfs-actions.pod:778
25853 msgid "See also C<guestfs_blockdev_getsz>."
25854 msgstr ""
25855
25856 #. type: =head2
25857 #: ../src/guestfs-actions.pod:786
25858 msgid "guestfs_blockdev_getss"
25859 msgstr ""
25860
25861 #. type: verbatim
25862 #: ../src/guestfs-actions.pod:788
25863 #, no-wrap
25864 msgid ""
25865 " int\n"
25866 " guestfs_blockdev_getss (guestfs_h *g,\n"
25867 "                         const char *device);\n"
25868 "\n"
25869 msgstr ""
25870
25871 #. type: textblock
25872 #: ../src/guestfs-actions.pod:795
25873 msgid ""
25874 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25875 "that)."
25876 msgstr ""
25877
25878 #. type: =head2
25879 #: ../src/guestfs-actions.pod:804
25880 msgid "guestfs_blockdev_getsz"
25881 msgstr ""
25882
25883 #. type: verbatim
25884 #: ../src/guestfs-actions.pod:806
25885 #, no-wrap
25886 msgid ""
25887 " int64_t\n"
25888 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25889 "                         const char *device);\n"
25890 "\n"
25891 msgstr ""
25892
25893 #. type: textblock
25894 #: ../src/guestfs-actions.pod:813
25895 msgid ""
25896 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25897 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25898 msgstr ""
25899
25900 #. type: =head2
25901 #: ../src/guestfs-actions.pod:823
25902 msgid "guestfs_blockdev_rereadpt"
25903 msgstr ""
25904
25905 #. type: verbatim
25906 #: ../src/guestfs-actions.pod:825
25907 #, no-wrap
25908 msgid ""
25909 " int\n"
25910 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25911 "                            const char *device);\n"
25912 "\n"
25913 msgstr ""
25914
25915 #. type: =head2
25916 #: ../src/guestfs-actions.pod:837
25917 msgid "guestfs_blockdev_setbsz"
25918 msgstr ""
25919
25920 #. type: verbatim
25921 #: ../src/guestfs-actions.pod:839
25922 #, no-wrap
25923 msgid ""
25924 " int\n"
25925 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25926 "                          const char *device,\n"
25927 "                          int blocksize);\n"
25928 "\n"
25929 msgstr ""
25930
25931 #. type: =head2
25932 #: ../src/guestfs-actions.pod:855
25933 msgid "guestfs_blockdev_setro"
25934 msgstr ""
25935
25936 #. type: verbatim
25937 #: ../src/guestfs-actions.pod:857
25938 #, no-wrap
25939 msgid ""
25940 " int\n"
25941 " guestfs_blockdev_setro (guestfs_h *g,\n"
25942 "                         const char *device);\n"
25943 "\n"
25944 msgstr ""
25945
25946 #. type: =head2
25947 #: ../src/guestfs-actions.pod:869
25948 msgid "guestfs_blockdev_setrw"
25949 msgstr ""
25950
25951 #. type: verbatim
25952 #: ../src/guestfs-actions.pod:871
25953 #, no-wrap
25954 msgid ""
25955 " int\n"
25956 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25957 "                         const char *device);\n"
25958 "\n"
25959 msgstr ""
25960
25961 #. type: =head2
25962 #: ../src/guestfs-actions.pod:883
25963 msgid "guestfs_btrfs_filesystem_resize"
25964 msgstr ""
25965
25966 #. type: verbatim
25967 #: ../src/guestfs-actions.pod:885
25968 #, no-wrap
25969 msgid ""
25970 " int\n"
25971 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25972 "                                  const char *mountpoint,\n"
25973 "                                  ...);\n"
25974 "\n"
25975 msgstr ""
25976
25977 #. type: verbatim
25978 #: ../src/guestfs-actions.pod:895
25979 #, no-wrap
25980 msgid ""
25981 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25982 "\n"
25983 msgstr ""
25984
25985 #. type: textblock
25986 #: ../src/guestfs-actions.pod:918
25987 msgid "(Added in 1.11.17)"
25988 msgstr ""
25989
25990 #. type: =head2
25991 #: ../src/guestfs-actions.pod:920
25992 msgid "guestfs_btrfs_filesystem_resize_va"
25993 msgstr ""
25994
25995 #. type: verbatim
25996 #: ../src/guestfs-actions.pod:922
25997 #, no-wrap
25998 msgid ""
25999 " int\n"
26000 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26001 "                                     const char *mountpoint,\n"
26002 "                                     va_list args);\n"
26003 "\n"
26004 msgstr ""
26005
26006 #. type: textblock
26007 #: ../src/guestfs-actions.pod:927
26008 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26009 msgstr ""
26010
26011 #. type: =head2
26012 #: ../src/guestfs-actions.pod:931
26013 msgid "guestfs_btrfs_filesystem_resize_argv"
26014 msgstr ""
26015
26016 #. type: verbatim
26017 #: ../src/guestfs-actions.pod:933
26018 #, no-wrap
26019 msgid ""
26020 " int\n"
26021 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26022 "                                       const char *mountpoint,\n"
26023 "                                       const struct "
26024 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../src/guestfs-actions.pod:938
26030 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26031 msgstr ""
26032
26033 #. type: =head2
26034 #: ../src/guestfs-actions.pod:942
26035 msgid "guestfs_case_sensitive_path"
26036 msgstr ""
26037
26038 #. type: verbatim
26039 #: ../src/guestfs-actions.pod:944
26040 #, no-wrap
26041 msgid ""
26042 " char *\n"
26043 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26044 "                              const char *path);\n"
26045 "\n"
26046 msgstr ""
26047
26048 #. type: textblock
26049 #: ../src/guestfs-actions.pod:970
26050 msgid ""
26051 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
26052 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26053 "how the directories were originally created under Windows)."
26054 msgstr ""
26055
26056 #. type: textblock
26057 #: ../src/guestfs-actions.pod:978
26058 msgid "See also C<guestfs_realpath>."
26059 msgstr ""
26060
26061 #. type: textblock
26062 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8125
26063 msgid "(Added in 1.0.75)"
26064 msgstr ""
26065
26066 #. type: =head2
26067 #: ../src/guestfs-actions.pod:985
26068 msgid "guestfs_cat"
26069 msgstr ""
26070
26071 #. type: verbatim
26072 #: ../src/guestfs-actions.pod:987
26073 #, no-wrap
26074 msgid ""
26075 " char *\n"
26076 " guestfs_cat (guestfs_h *g,\n"
26077 "              const char *path);\n"
26078 "\n"
26079 msgstr ""
26080
26081 #. type: textblock
26082 #: ../src/guestfs-actions.pod:993
26083 msgid ""
26084 "Note that this function cannot correctly handle binary files (specifically, "
26085 "files containing C<\\0> character which is treated as end of string).  For "
26086 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26087 "functions which have a more complex interface."
26088 msgstr ""
26089
26090 #. type: textblock
26091 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6348 ../src/guestfs-actions.pod:8278 ../src/guestfs-actions.pod:8292
26092 msgid "(Added in 0.4)"
26093 msgstr ""
26094
26095 #. type: =head2
26096 #: ../src/guestfs-actions.pod:1006
26097 msgid "guestfs_checksum"
26098 msgstr ""
26099
26100 #. type: verbatim
26101 #: ../src/guestfs-actions.pod:1008
26102 #, no-wrap
26103 msgid ""
26104 " char *\n"
26105 " guestfs_checksum (guestfs_h *g,\n"
26106 "                   const char *csumtype,\n"
26107 "                   const char *path);\n"
26108 "\n"
26109 msgstr ""
26110
26111 #. type: textblock
26112 #: ../src/guestfs-actions.pod:1054
26113 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26114 msgstr ""
26115
26116 #. type: textblock
26117 #: ../src/guestfs-actions.pod:1056
26118 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26119 msgstr ""
26120
26121 #. type: textblock
26122 #: ../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:7981
26123 msgid "(Added in 1.0.2)"
26124 msgstr ""
26125
26126 #. type: =head2
26127 #: ../src/guestfs-actions.pod:1063
26128 msgid "guestfs_checksum_device"
26129 msgstr ""
26130
26131 #. type: verbatim
26132 #: ../src/guestfs-actions.pod:1065
26133 #, no-wrap
26134 msgid ""
26135 " char *\n"
26136 " guestfs_checksum_device (guestfs_h *g,\n"
26137 "                          const char *csumtype,\n"
26138 "                          const char *device);\n"
26139 "\n"
26140 msgstr ""
26141
26142 #. type: textblock
26143 #: ../src/guestfs-actions.pod:1070
26144 msgid ""
26145 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26146 "device named C<device>.  For the types of checksums supported see the "
26147 "C<guestfs_checksum> command."
26148 msgstr ""
26149
26150 #. type: textblock
26151 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5935 ../src/guestfs-actions.pod:5953 ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:7890 ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:8304
26152 msgid "(Added in 1.3.2)"
26153 msgstr ""
26154
26155 #. type: =head2
26156 #: ../src/guestfs-actions.pod:1079
26157 msgid "guestfs_checksums_out"
26158 msgstr ""
26159
26160 #. type: verbatim
26161 #: ../src/guestfs-actions.pod:1081
26162 #, no-wrap
26163 msgid ""
26164 " int\n"
26165 " guestfs_checksums_out (guestfs_h *g,\n"
26166 "                        const char *csumtype,\n"
26167 "                        const char *directory,\n"
26168 "                        const char *sumsfile);\n"
26169 "\n"
26170 msgstr ""
26171
26172 #. type: textblock
26173 #: ../src/guestfs-actions.pod:1101
26174 msgid "(Added in 1.3.7)"
26175 msgstr ""
26176
26177 #. type: =head2
26178 #: ../src/guestfs-actions.pod:1103
26179 msgid "guestfs_chmod"
26180 msgstr ""
26181
26182 #. type: verbatim
26183 #: ../src/guestfs-actions.pod:1105
26184 #, no-wrap
26185 msgid ""
26186 " int\n"
26187 " guestfs_chmod (guestfs_h *g,\n"
26188 "                int mode,\n"
26189 "                const char *path);\n"
26190 "\n"
26191 msgstr ""
26192
26193 #. type: =head2
26194 #: ../src/guestfs-actions.pod:1123
26195 msgid "guestfs_chown"
26196 msgstr ""
26197
26198 #. type: verbatim
26199 #: ../src/guestfs-actions.pod:1125
26200 #, no-wrap
26201 msgid ""
26202 " int\n"
26203 " guestfs_chown (guestfs_h *g,\n"
26204 "                int owner,\n"
26205 "                int group,\n"
26206 "                const char *path);\n"
26207 "\n"
26208 msgstr ""
26209
26210 #. type: =head2
26211 #: ../src/guestfs-actions.pod:1141
26212 msgid "guestfs_command"
26213 msgstr ""
26214
26215 #. type: verbatim
26216 #: ../src/guestfs-actions.pod:1143
26217 #, no-wrap
26218 msgid ""
26219 " char *\n"
26220 " guestfs_command (guestfs_h *g,\n"
26221 "                  char *const *arguments);\n"
26222 "\n"
26223 msgstr ""
26224
26225 #. type: textblock
26226 #: ../src/guestfs-actions.pod:1152
26227 msgid ""
26228 "The single parameter is an argv-style list of arguments.  The first element "
26229 "is the name of the program to run.  Subsequent elements are parameters.  The "
26230 "list must be non-empty (ie. must contain a program name).  Note that the "
26231 "command runs directly, and is I<not> invoked via the shell (see "
26232 "C<guestfs_sh>)."
26233 msgstr ""
26234
26235 #. type: textblock
26236 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203 ../src/guestfs-actions.pod:2027
26237 msgid "(Added in 0.9.1)"
26238 msgstr ""
26239
26240 #. type: =head2
26241 #: ../src/guestfs-actions.pod:1185
26242 msgid "guestfs_command_lines"
26243 msgstr ""
26244
26245 #. type: verbatim
26246 #: ../src/guestfs-actions.pod:1187
26247 #, no-wrap
26248 msgid ""
26249 " char **\n"
26250 " guestfs_command_lines (guestfs_h *g,\n"
26251 "                        char *const *arguments);\n"
26252 "\n"
26253 msgstr ""
26254
26255 #. type: textblock
26256 #: ../src/guestfs-actions.pod:1191
26257 msgid ""
26258 "This is the same as C<guestfs_command>, but splits the result into a list of "
26259 "lines."
26260 msgstr ""
26261
26262 #. type: textblock
26263 #: ../src/guestfs-actions.pod:1194
26264 msgid "See also: C<guestfs_sh_lines>"
26265 msgstr ""
26266
26267 #. type: =head2
26268 #: ../src/guestfs-actions.pod:1205
26269 msgid "guestfs_compress_device_out"
26270 msgstr ""
26271
26272 #. type: verbatim
26273 #: ../src/guestfs-actions.pod:1207
26274 #, no-wrap
26275 msgid ""
26276 " int\n"
26277 " guestfs_compress_device_out (guestfs_h *g,\n"
26278 "                              const char *ctype,\n"
26279 "                              const char *device,\n"
26280 "                              const char *zdevice,\n"
26281 "                              ...);\n"
26282 "\n"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../src/guestfs-actions.pod:1219
26287 #, no-wrap
26288 msgid ""
26289 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26290 "\n"
26291 msgstr ""
26292
26293 #. type: textblock
26294 #: ../src/guestfs-actions.pod:1224
26295 msgid ""
26296 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26297 "C<guestfs_compress_out>."
26298 msgstr ""
26299
26300 #. type: textblock
26301 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7051
26302 msgid "(Added in 1.13.15)"
26303 msgstr ""
26304
26305 #. type: =head2
26306 #: ../src/guestfs-actions.pod:1231
26307 msgid "guestfs_compress_device_out_va"
26308 msgstr ""
26309
26310 #. type: verbatim
26311 #: ../src/guestfs-actions.pod:1233
26312 #, no-wrap
26313 msgid ""
26314 " int\n"
26315 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26316 "                                 const char *ctype,\n"
26317 "                                 const char *device,\n"
26318 "                                 const char *zdevice,\n"
26319 "                                 va_list args);\n"
26320 "\n"
26321 msgstr ""
26322
26323 #. type: textblock
26324 #: ../src/guestfs-actions.pod:1240
26325 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26326 msgstr ""
26327
26328 #. type: =head2
26329 #: ../src/guestfs-actions.pod:1244
26330 msgid "guestfs_compress_device_out_argv"
26331 msgstr ""
26332
26333 #. type: verbatim
26334 #: ../src/guestfs-actions.pod:1246
26335 #, no-wrap
26336 msgid ""
26337 " int\n"
26338 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26339 "                                   const char *ctype,\n"
26340 "                                   const char *device,\n"
26341 "                                   const char *zdevice,\n"
26342 "                                   const struct "
26343 "guestfs_compress_device_out_argv *optargs);\n"
26344 "\n"
26345 msgstr ""
26346
26347 #. type: textblock
26348 #: ../src/guestfs-actions.pod:1253
26349 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26350 msgstr ""
26351
26352 #. type: =head2
26353 #: ../src/guestfs-actions.pod:1257
26354 msgid "guestfs_compress_out"
26355 msgstr ""
26356
26357 #. type: verbatim
26358 #: ../src/guestfs-actions.pod:1259
26359 #, no-wrap
26360 msgid ""
26361 " int\n"
26362 " guestfs_compress_out (guestfs_h *g,\n"
26363 "                       const char *ctype,\n"
26364 "                       const char *file,\n"
26365 "                       const char *zfile,\n"
26366 "                       ...);\n"
26367 "\n"
26368 msgstr ""
26369
26370 #. type: verbatim
26371 #: ../src/guestfs-actions.pod:1271
26372 #, no-wrap
26373 msgid ""
26374 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26375 "\n"
26376 msgstr ""
26377
26378 #. type: =head2
26379 #: ../src/guestfs-actions.pod:1290
26380 msgid "guestfs_compress_out_va"
26381 msgstr ""
26382
26383 #. type: verbatim
26384 #: ../src/guestfs-actions.pod:1292
26385 #, no-wrap
26386 msgid ""
26387 " int\n"
26388 " guestfs_compress_out_va (guestfs_h *g,\n"
26389 "                          const char *ctype,\n"
26390 "                          const char *file,\n"
26391 "                          const char *zfile,\n"
26392 "                          va_list args);\n"
26393 "\n"
26394 msgstr ""
26395
26396 #. type: textblock
26397 #: ../src/guestfs-actions.pod:1299
26398 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26399 msgstr ""
26400
26401 #. type: =head2
26402 #: ../src/guestfs-actions.pod:1303
26403 msgid "guestfs_compress_out_argv"
26404 msgstr ""
26405
26406 #. type: verbatim
26407 #: ../src/guestfs-actions.pod:1305
26408 #, no-wrap
26409 msgid ""
26410 " int\n"
26411 " guestfs_compress_out_argv (guestfs_h *g,\n"
26412 "                            const char *ctype,\n"
26413 "                            const char *file,\n"
26414 "                            const char *zfile,\n"
26415 "                            const struct guestfs_compress_out_argv "
26416 "*optargs);\n"
26417 "\n"
26418 msgstr ""
26419
26420 #. type: textblock
26421 #: ../src/guestfs-actions.pod:1312
26422 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26423 msgstr ""
26424
26425 #. type: =head2
26426 #: ../src/guestfs-actions.pod:1316
26427 msgid "guestfs_config"
26428 msgstr ""
26429
26430 #. type: verbatim
26431 #: ../src/guestfs-actions.pod:1318
26432 #, no-wrap
26433 msgid ""
26434 " int\n"
26435 " guestfs_config (guestfs_h *g,\n"
26436 "                 const char *qemuparam,\n"
26437 "                 const char *qemuvalue);\n"
26438 "\n"
26439 msgstr ""
26440
26441 #. type: =head2
26442 #: ../src/guestfs-actions.pod:1336
26443 msgid "guestfs_copy_device_to_device"
26444 msgstr ""
26445
26446 #. type: verbatim
26447 #: ../src/guestfs-actions.pod:1338
26448 #, no-wrap
26449 msgid ""
26450 " int\n"
26451 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26452 "                                const char *src,\n"
26453 "                                const char *dest,\n"
26454 "                                ...);\n"
26455 "\n"
26456 msgstr ""
26457
26458 #. type: verbatim
26459 #: ../src/guestfs-actions.pod:1349
26460 #, no-wrap
26461 msgid ""
26462 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26463 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26464 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26465 "\n"
26466 msgstr ""
26467
26468 #. type: textblock
26469 #: ../src/guestfs-actions.pod:1353
26470 msgid ""
26471 "The four calls C<guestfs_copy_device_to_device>, "
26472 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26473 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26474 "destination (device|file)."
26475 msgstr ""
26476
26477 #. type: textblock
26478 #: ../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:7976 ../src/guestfs-actions.pod:8010 ../src/guestfs-actions.pod:8517 ../src/guestfs-actions.pod:8540
26479 msgid ""
26480 "This long-running command can generate progress notification messages so "
26481 "that the caller can display a progress bar or indicator.  To receive these "
26482 "messages, the caller must register a progress event callback.  See "
26483 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
26484 msgstr ""
26485
26486 #. type: textblock
26487 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543 ../src/guestfs-actions.pod:6191
26488 msgid "(Added in 1.13.25)"
26489 msgstr ""
26490
26491 #. type: =head2
26492 #: ../src/guestfs-actions.pod:1381
26493 msgid "guestfs_copy_device_to_device_va"
26494 msgstr ""
26495
26496 #. type: verbatim
26497 #: ../src/guestfs-actions.pod:1383
26498 #, no-wrap
26499 msgid ""
26500 " int\n"
26501 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26502 "                                   const char *src,\n"
26503 "                                   const char *dest,\n"
26504 "                                   va_list args);\n"
26505 "\n"
26506 msgstr ""
26507
26508 #. type: textblock
26509 #: ../src/guestfs-actions.pod:1389
26510 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26511 msgstr ""
26512
26513 #. type: =head2
26514 #: ../src/guestfs-actions.pod:1393
26515 msgid "guestfs_copy_device_to_device_argv"
26516 msgstr ""
26517
26518 #. type: verbatim
26519 #: ../src/guestfs-actions.pod:1395
26520 #, no-wrap
26521 msgid ""
26522 " int\n"
26523 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26524 "                                     const char *src,\n"
26525 "                                     const char *dest,\n"
26526 "                                     const struct "
26527 "guestfs_copy_device_to_device_argv *optargs);\n"
26528 "\n"
26529 msgstr ""
26530
26531 #. type: textblock
26532 #: ../src/guestfs-actions.pod:1401
26533 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26534 msgstr ""
26535
26536 #. type: =head2
26537 #: ../src/guestfs-actions.pod:1405
26538 msgid "guestfs_copy_device_to_file"
26539 msgstr ""
26540
26541 #. type: verbatim
26542 #: ../src/guestfs-actions.pod:1407
26543 #, no-wrap
26544 msgid ""
26545 " int\n"
26546 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26547 "                              const char *src,\n"
26548 "                              const char *dest,\n"
26549 "                              ...);\n"
26550 "\n"
26551 msgstr ""
26552
26553 #. type: verbatim
26554 #: ../src/guestfs-actions.pod:1418
26555 #, no-wrap
26556 msgid ""
26557 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26558 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26559 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26560 "\n"
26561 msgstr ""
26562
26563 #. type: textblock
26564 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:1528
26565 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
26566 msgstr ""
26567
26568 #. type: =head2
26569 #: ../src/guestfs-actions.pod:1434
26570 msgid "guestfs_copy_device_to_file_va"
26571 msgstr ""
26572
26573 #. type: verbatim
26574 #: ../src/guestfs-actions.pod:1436
26575 #, no-wrap
26576 msgid ""
26577 " int\n"
26578 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26579 "                                 const char *src,\n"
26580 "                                 const char *dest,\n"
26581 "                                 va_list args);\n"
26582 "\n"
26583 msgstr ""
26584
26585 #. type: textblock
26586 #: ../src/guestfs-actions.pod:1442
26587 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26588 msgstr ""
26589
26590 #. type: =head2
26591 #: ../src/guestfs-actions.pod:1446
26592 msgid "guestfs_copy_device_to_file_argv"
26593 msgstr ""
26594
26595 #. type: verbatim
26596 #: ../src/guestfs-actions.pod:1448
26597 #, no-wrap
26598 msgid ""
26599 " int\n"
26600 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26601 "                                   const char *src,\n"
26602 "                                   const char *dest,\n"
26603 "                                   const struct "
26604 "guestfs_copy_device_to_file_argv *optargs);\n"
26605 "\n"
26606 msgstr ""
26607
26608 #. type: textblock
26609 #: ../src/guestfs-actions.pod:1454
26610 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26611 msgstr ""
26612
26613 #. type: =head2
26614 #: ../src/guestfs-actions.pod:1458
26615 msgid "guestfs_copy_file_to_device"
26616 msgstr ""
26617
26618 #. type: verbatim
26619 #: ../src/guestfs-actions.pod:1460
26620 #, no-wrap
26621 msgid ""
26622 " int\n"
26623 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26624 "                              const char *src,\n"
26625 "                              const char *dest,\n"
26626 "                              ...);\n"
26627 "\n"
26628 msgstr ""
26629
26630 #. type: verbatim
26631 #: ../src/guestfs-actions.pod:1471
26632 #, no-wrap
26633 msgid ""
26634 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26635 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26636 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26637 "\n"
26638 msgstr ""
26639
26640 #. type: =head2
26641 #: ../src/guestfs-actions.pod:1487
26642 msgid "guestfs_copy_file_to_device_va"
26643 msgstr ""
26644
26645 #. type: verbatim
26646 #: ../src/guestfs-actions.pod:1489
26647 #, no-wrap
26648 msgid ""
26649 " int\n"
26650 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26651 "                                 const char *src,\n"
26652 "                                 const char *dest,\n"
26653 "                                 va_list args);\n"
26654 "\n"
26655 msgstr ""
26656
26657 #. type: textblock
26658 #: ../src/guestfs-actions.pod:1495
26659 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26660 msgstr ""
26661
26662 #. type: =head2
26663 #: ../src/guestfs-actions.pod:1499
26664 msgid "guestfs_copy_file_to_device_argv"
26665 msgstr ""
26666
26667 #. type: verbatim
26668 #: ../src/guestfs-actions.pod:1501
26669 #, no-wrap
26670 msgid ""
26671 " int\n"
26672 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26673 "                                   const char *src,\n"
26674 "                                   const char *dest,\n"
26675 "                                   const struct "
26676 "guestfs_copy_file_to_device_argv *optargs);\n"
26677 "\n"
26678 msgstr ""
26679
26680 #. type: textblock
26681 #: ../src/guestfs-actions.pod:1507
26682 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26683 msgstr ""
26684
26685 #. type: =head2
26686 #: ../src/guestfs-actions.pod:1511
26687 msgid "guestfs_copy_file_to_file"
26688 msgstr ""
26689
26690 #. type: verbatim
26691 #: ../src/guestfs-actions.pod:1513
26692 #, no-wrap
26693 msgid ""
26694 " int\n"
26695 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26696 "                            const char *src,\n"
26697 "                            const char *dest,\n"
26698 "                            ...);\n"
26699 "\n"
26700 msgstr ""
26701
26702 #. type: verbatim
26703 #: ../src/guestfs-actions.pod:1524
26704 #, no-wrap
26705 msgid ""
26706 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26707 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26708 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26709 "\n"
26710 msgstr ""
26711
26712 #. type: textblock
26713 #: ../src/guestfs-actions.pod:1531
26714 msgid ""
26715 "This is B<not> the function you want for copying files.  This is for copying "
26716 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26717 "C<guestfs_mv> for general file copying and moving functions."
26718 msgstr ""
26719
26720 #. type: =head2
26721 #: ../src/guestfs-actions.pod:1545
26722 msgid "guestfs_copy_file_to_file_va"
26723 msgstr ""
26724
26725 #. type: verbatim
26726 #: ../src/guestfs-actions.pod:1547
26727 #, no-wrap
26728 msgid ""
26729 " int\n"
26730 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26731 "                               const char *src,\n"
26732 "                               const char *dest,\n"
26733 "                               va_list args);\n"
26734 "\n"
26735 msgstr ""
26736
26737 #. type: textblock
26738 #: ../src/guestfs-actions.pod:1553
26739 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26740 msgstr ""
26741
26742 #. type: =head2
26743 #: ../src/guestfs-actions.pod:1557
26744 msgid "guestfs_copy_file_to_file_argv"
26745 msgstr ""
26746
26747 #. type: verbatim
26748 #: ../src/guestfs-actions.pod:1559
26749 #, no-wrap
26750 msgid ""
26751 " int\n"
26752 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26753 "                                 const char *src,\n"
26754 "                                 const char *dest,\n"
26755 "                                 const struct guestfs_copy_file_to_file_argv "
26756 "*optargs);\n"
26757 "\n"
26758 msgstr ""
26759
26760 #. type: textblock
26761 #: ../src/guestfs-actions.pod:1565
26762 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26763 msgstr ""
26764
26765 #. type: =head2
26766 #: ../src/guestfs-actions.pod:1569
26767 msgid "guestfs_copy_size"
26768 msgstr ""
26769
26770 #. type: verbatim
26771 #: ../src/guestfs-actions.pod:1571
26772 #, no-wrap
26773 msgid ""
26774 " int\n"
26775 " guestfs_copy_size (guestfs_h *g,\n"
26776 "                    const char *src,\n"
26777 "                    const char *dest,\n"
26778 "                    int64_t size);\n"
26779 "\n"
26780 msgstr ""
26781
26782 #. type: textblock
26783 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26784 msgid ""
26785 "I<This function is deprecated.> In new code, use the "
26786 "L</guestfs_copy_device_to_device> call instead."
26787 msgstr ""
26788
26789 #. type: textblock
26790 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4831 ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:8211 ../src/guestfs-actions.pod:8231 ../src/guestfs-actions.pod:8317
26791 msgid "(Added in 1.0.87)"
26792 msgstr ""
26793
26794 #. type: =head2
26795 #: ../src/guestfs-actions.pod:1599
26796 msgid "guestfs_cp"
26797 msgstr ""
26798
26799 #. type: verbatim
26800 #: ../src/guestfs-actions.pod:1601
26801 #, no-wrap
26802 msgid ""
26803 " int\n"
26804 " guestfs_cp (guestfs_h *g,\n"
26805 "             const char *src,\n"
26806 "             const char *dest);\n"
26807 "\n"
26808 msgstr ""
26809
26810 #. type: textblock
26811 #: ../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:5713 ../src/guestfs-actions.pod:6205
26812 msgid "(Added in 1.0.18)"
26813 msgstr ""
26814
26815 #. type: =head2
26816 #: ../src/guestfs-actions.pod:1613
26817 msgid "guestfs_cp_a"
26818 msgstr ""
26819
26820 #. type: verbatim
26821 #: ../src/guestfs-actions.pod:1615
26822 #, no-wrap
26823 msgid ""
26824 " int\n"
26825 " guestfs_cp_a (guestfs_h *g,\n"
26826 "               const char *src,\n"
26827 "               const char *dest);\n"
26828 "\n"
26829 msgstr ""
26830
26831 #. type: =head2
26832 #: ../src/guestfs-actions.pod:1627
26833 msgid "guestfs_dd"
26834 msgstr ""
26835
26836 #. type: verbatim
26837 #: ../src/guestfs-actions.pod:1629
26838 #, no-wrap
26839 msgid ""
26840 " int\n"
26841 " guestfs_dd (guestfs_h *g,\n"
26842 "             const char *src,\n"
26843 "             const char *dest);\n"
26844 "\n"
26845 msgstr ""
26846
26847 #. type: textblock
26848 #: ../src/guestfs-actions.pod:1646
26849 msgid ""
26850 "If the destination is a device, it must be as large or larger than the "
26851 "source file or device, otherwise the copy will fail.  This command cannot do "
26852 "partial copies (see C<guestfs_copy_device_to_device>)."
26853 msgstr ""
26854
26855 #. type: =head2
26856 #: ../src/guestfs-actions.pod:1655
26857 msgid "guestfs_df"
26858 msgstr ""
26859
26860 #. type: verbatim
26861 #: ../src/guestfs-actions.pod:1657
26862 #, no-wrap
26863 msgid ""
26864 " char *\n"
26865 " guestfs_df (guestfs_h *g);\n"
26866 "\n"
26867 msgstr ""
26868
26869 #. type: textblock
26870 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
26871 msgid ""
26872 "This command is mostly useful for interactive sessions.  It is I<not> "
26873 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26874 "from programs."
26875 msgstr ""
26876
26877 #. type: textblock
26878 #: ../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:5079 ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7618 ../src/guestfs-actions.pod:8357 ../src/guestfs-actions.pod:8370 ../src/guestfs-actions.pod:8383
26879 msgid "(Added in 1.0.54)"
26880 msgstr ""
26881
26882 #. type: =head2
26883 #: ../src/guestfs-actions.pod:1671
26884 msgid "guestfs_df_h"
26885 msgstr ""
26886
26887 #. type: verbatim
26888 #: ../src/guestfs-actions.pod:1673
26889 #, no-wrap
26890 msgid ""
26891 " char *\n"
26892 " guestfs_df_h (guestfs_h *g);\n"
26893 "\n"
26894 msgstr ""
26895
26896 #. type: =head2
26897 #: ../src/guestfs-actions.pod:1688
26898 msgid "guestfs_dmesg"
26899 msgstr ""
26900
26901 #. type: verbatim
26902 #: ../src/guestfs-actions.pod:1690
26903 #, no-wrap
26904 msgid ""
26905 " char *\n"
26906 " guestfs_dmesg (guestfs_h *g);\n"
26907 "\n"
26908 msgstr ""
26909
26910 #. type: textblock
26911 #: ../src/guestfs-actions.pod:1697
26912 msgid ""
26913 "Another way to get the same information is to enable verbose messages with "
26914 "C<guestfs_set_verbose> or by setting the environment variable "
26915 "C<LIBGUESTFS_DEBUG=1> before running the program."
26916 msgstr ""
26917
26918 #. type: =head2
26919 #: ../src/guestfs-actions.pod:1707
26920 msgid "guestfs_download"
26921 msgstr ""
26922
26923 #. type: verbatim
26924 #: ../src/guestfs-actions.pod:1709
26925 #, no-wrap
26926 msgid ""
26927 " int\n"
26928 " guestfs_download (guestfs_h *g,\n"
26929 "                   const char *remotefilename,\n"
26930 "                   const char *filename);\n"
26931 "\n"
26932 msgstr ""
26933
26934 #. type: textblock
26935 #: ../src/guestfs-actions.pod:1719
26936 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26937 msgstr ""
26938
26939 #. type: =head2
26940 #: ../src/guestfs-actions.pod:1730
26941 msgid "guestfs_download_offset"
26942 msgstr ""
26943
26944 #. type: verbatim
26945 #: ../src/guestfs-actions.pod:1732
26946 #, no-wrap
26947 msgid ""
26948 " int\n"
26949 " guestfs_download_offset (guestfs_h *g,\n"
26950 "                          const char *remotefilename,\n"
26951 "                          const char *filename,\n"
26952 "                          int64_t offset,\n"
26953 "                          int64_t size);\n"
26954 "\n"
26955 msgstr ""
26956
26957 #. type: textblock
26958 #: ../src/guestfs-actions.pod:1745
26959 msgid ""
26960 "Note that there is no limit on the amount of data that can be downloaded "
26961 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26962 "full amount unless an error occurs."
26963 msgstr ""
26964
26965 #. type: textblock
26966 #: ../src/guestfs-actions.pod:1750
26967 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26968 msgstr ""
26969
26970 #. type: textblock
26971 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8015
26972 msgid "(Added in 1.5.17)"
26973 msgstr ""
26974
26975 #. type: =head2
26976 #: ../src/guestfs-actions.pod:1761
26977 msgid "guestfs_drop_caches"
26978 msgstr ""
26979
26980 #. type: verbatim
26981 #: ../src/guestfs-actions.pod:1763
26982 #, no-wrap
26983 msgid ""
26984 " int\n"
26985 " guestfs_drop_caches (guestfs_h *g,\n"
26986 "                      int whattodrop);\n"
26987 "\n"
26988 msgstr ""
26989
26990 #. type: =head2
26991 #: ../src/guestfs-actions.pod:1781
26992 msgid "guestfs_du"
26993 msgstr ""
26994
26995 #. type: verbatim
26996 #: ../src/guestfs-actions.pod:1783
26997 #, no-wrap
26998 msgid ""
26999 " int64_t\n"
27000 " guestfs_du (guestfs_h *g,\n"
27001 "             const char *path);\n"
27002 "\n"
27003 msgstr ""
27004
27005 #. type: =head2
27006 #: ../src/guestfs-actions.pod:1806
27007 msgid "guestfs_e2fsck_f"
27008 msgstr ""
27009
27010 #. type: verbatim
27011 #: ../src/guestfs-actions.pod:1808
27012 #, no-wrap
27013 msgid ""
27014 " int\n"
27015 " guestfs_e2fsck_f (guestfs_h *g,\n"
27016 "                   const char *device);\n"
27017 "\n"
27018 msgstr ""
27019
27020 #. type: textblock
27021 #: ../src/guestfs-actions.pod:1816
27022 msgid ""
27023 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27024 "Normally you should use C<guestfs_fsck>."
27025 msgstr ""
27026
27027 #. type: textblock
27028 #: ../src/guestfs-actions.pod:1821
27029 msgid "(Added in 1.0.29)"
27030 msgstr ""
27031
27032 #. type: =head2
27033 #: ../src/guestfs-actions.pod:1823
27034 msgid "guestfs_echo_daemon"
27035 msgstr ""
27036
27037 #. type: verbatim
27038 #: ../src/guestfs-actions.pod:1825
27039 #, no-wrap
27040 msgid ""
27041 " char *\n"
27042 " guestfs_echo_daemon (guestfs_h *g,\n"
27043 "                      char *const *words);\n"
27044 "\n"
27045 msgstr ""
27046
27047 #. type: textblock
27048 #: ../src/guestfs-actions.pod:1834
27049 msgid "See also C<guestfs_ping_daemon>."
27050 msgstr ""
27051
27052 #. type: textblock
27053 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:7075
27054 msgid "(Added in 1.0.69)"
27055 msgstr ""
27056
27057 #. type: =head2
27058 #: ../src/guestfs-actions.pod:1841
27059 msgid "guestfs_egrep"
27060 msgstr ""
27061
27062 #. type: verbatim
27063 #: ../src/guestfs-actions.pod:1843
27064 #, no-wrap
27065 msgid ""
27066 " char **\n"
27067 " guestfs_egrep (guestfs_h *g,\n"
27068 "                const char *regex,\n"
27069 "                const char *path);\n"
27070 "\n"
27071 msgstr ""
27072
27073 #. type: textblock
27074 #: ../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:4330 ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4357 ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:6539 ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7487 ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7522 ../src/guestfs-actions.pod:7535 ../src/guestfs-actions.pod:7548 ../src/guestfs-actions.pod:7561 ../src/guestfs-actions.pod:8475 ../src/guestfs-actions.pod:8494 ../src/guestfs-actions.pod:8585 ../src/guestfs-actions.pod:8604 ../src/guestfs-actions.pod:8650 ../src/guestfs-actions.pod:8669
27075 msgid "(Added in 1.0.66)"
27076 msgstr ""
27077
27078 #. type: =head2
27079 #: ../src/guestfs-actions.pod:1860
27080 msgid "guestfs_egrepi"
27081 msgstr ""
27082
27083 #. type: verbatim
27084 #: ../src/guestfs-actions.pod:1862
27085 #, no-wrap
27086 msgid ""
27087 " char **\n"
27088 " guestfs_egrepi (guestfs_h *g,\n"
27089 "                 const char *regex,\n"
27090 "                 const char *path);\n"
27091 "\n"
27092 msgstr ""
27093
27094 #. type: =head2
27095 #: ../src/guestfs-actions.pod:1879
27096 msgid "guestfs_equal"
27097 msgstr ""
27098
27099 #. type: verbatim
27100 #: ../src/guestfs-actions.pod:1881
27101 #, no-wrap
27102 msgid ""
27103 " int\n"
27104 " guestfs_equal (guestfs_h *g,\n"
27105 "                const char *file1,\n"
27106 "                const char *file2);\n"
27107 "\n"
27108 msgstr ""
27109
27110 #. type: =head2
27111 #: ../src/guestfs-actions.pod:1895
27112 msgid "guestfs_exists"
27113 msgstr ""
27114
27115 #. type: verbatim
27116 #: ../src/guestfs-actions.pod:1897
27117 #, no-wrap
27118 msgid ""
27119 " int\n"
27120 " guestfs_exists (guestfs_h *g,\n"
27121 "                 const char *path);\n"
27122 "\n"
27123 msgstr ""
27124
27125 #. type: textblock
27126 #: ../src/guestfs-actions.pod:1904
27127 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27128 msgstr ""
27129
27130 #. type: =head2
27131 #: ../src/guestfs-actions.pod:1910
27132 msgid "guestfs_fallocate"
27133 msgstr ""
27134
27135 #. type: verbatim
27136 #: ../src/guestfs-actions.pod:1912
27137 #, no-wrap
27138 msgid ""
27139 " int\n"
27140 " guestfs_fallocate (guestfs_h *g,\n"
27141 "                    const char *path,\n"
27142 "                    int len);\n"
27143 "\n"
27144 msgstr ""
27145
27146 #. type: textblock
27147 #: ../src/guestfs-actions.pod:1917
27148 msgid ""
27149 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27150 "call instead."
27151 msgstr ""
27152
27153 #. type: =head2
27154 #: ../src/guestfs-actions.pod:1936
27155 msgid "guestfs_fallocate64"
27156 msgstr ""
27157
27158 #. type: verbatim
27159 #: ../src/guestfs-actions.pod:1938
27160 #, no-wrap
27161 msgid ""
27162 " int\n"
27163 " guestfs_fallocate64 (guestfs_h *g,\n"
27164 "                      const char *path,\n"
27165 "                      int64_t len);\n"
27166 "\n"
27167 msgstr ""
27168
27169 #. type: textblock
27170 #: ../src/guestfs-actions.pod:1947
27171 msgid ""
27172 "Note that this call allocates disk blocks for the file.  To create a sparse "
27173 "file use C<guestfs_truncate_size> instead."
27174 msgstr ""
27175
27176 #. type: textblock
27177 #: ../src/guestfs-actions.pod:1950
27178 msgid ""
27179 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27180 "oversight it only allowed 30 bit lengths to be specified, effectively "
27181 "limiting the maximum size of files created through that call to 1GB."
27182 msgstr ""
27183
27184 #. type: textblock
27185 #: ../src/guestfs-actions.pod:1961
27186 msgid "(Added in 1.3.17)"
27187 msgstr ""
27188
27189 #. type: =head2
27190 #: ../src/guestfs-actions.pod:1963
27191 msgid "guestfs_fgrep"
27192 msgstr ""
27193
27194 #. type: verbatim
27195 #: ../src/guestfs-actions.pod:1965
27196 #, no-wrap
27197 msgid ""
27198 " char **\n"
27199 " guestfs_fgrep (guestfs_h *g,\n"
27200 "                const char *pattern,\n"
27201 "                const char *path);\n"
27202 "\n"
27203 msgstr ""
27204
27205 #. type: =head2
27206 #: ../src/guestfs-actions.pod:1982
27207 msgid "guestfs_fgrepi"
27208 msgstr ""
27209
27210 #. type: verbatim
27211 #: ../src/guestfs-actions.pod:1984
27212 #, no-wrap
27213 msgid ""
27214 " char **\n"
27215 " guestfs_fgrepi (guestfs_h *g,\n"
27216 "                 const char *pattern,\n"
27217 "                 const char *path);\n"
27218 "\n"
27219 msgstr ""
27220
27221 #. type: =head2
27222 #: ../src/guestfs-actions.pod:2001
27223 msgid "guestfs_file"
27224 msgstr ""
27225
27226 #. type: verbatim
27227 #: ../src/guestfs-actions.pod:2003
27228 #, no-wrap
27229 msgid ""
27230 " char *\n"
27231 " guestfs_file (guestfs_h *g,\n"
27232 "               const char *path);\n"
27233 "\n"
27234 msgstr ""
27235
27236 #. type: textblock
27237 #: ../src/guestfs-actions.pod:2021
27238 msgid ""
27239 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27240 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27241 msgstr ""
27242
27243 #. type: =head2
27244 #: ../src/guestfs-actions.pod:2029
27245 msgid "guestfs_file_architecture"
27246 msgstr ""
27247
27248 #. type: verbatim
27249 #: ../src/guestfs-actions.pod:2031
27250 #, no-wrap
27251 msgid ""
27252 " char *\n"
27253 " guestfs_file_architecture (guestfs_h *g,\n"
27254 "                            const char *filename);\n"
27255 "\n"
27256 msgstr ""
27257
27258 #. type: textblock
27259 #: ../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
27260 msgid "(Added in 1.5.3)"
27261 msgstr ""
27262
27263 #. type: =head2
27264 #: ../src/guestfs-actions.pod:2141
27265 msgid "guestfs_filesize"
27266 msgstr ""
27267
27268 #. type: verbatim
27269 #: ../src/guestfs-actions.pod:2143
27270 #, no-wrap
27271 msgid ""
27272 " int64_t\n"
27273 " guestfs_filesize (guestfs_h *g,\n"
27274 "                   const char *file);\n"
27275 "\n"
27276 msgstr ""
27277
27278 #. type: textblock
27279 #: ../src/guestfs-actions.pod:2149
27280 msgid ""
27281 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27282 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27283 "devices, use C<guestfs_blockdev_getsize64>."
27284 msgstr ""
27285
27286 #. type: textblock
27287 #: ../src/guestfs-actions.pod:2155
27288 msgid "(Added in 1.0.82)"
27289 msgstr ""
27290
27291 #. type: =head2
27292 #: ../src/guestfs-actions.pod:2157
27293 msgid "guestfs_fill"
27294 msgstr ""
27295
27296 #. type: verbatim
27297 #: ../src/guestfs-actions.pod:2159
27298 #, no-wrap
27299 msgid ""
27300 " int\n"
27301 " guestfs_fill (guestfs_h *g,\n"
27302 "               int c,\n"
27303 "               int len,\n"
27304 "               const char *path);\n"
27305 "\n"
27306 msgstr ""
27307
27308 #. type: textblock
27309 #: ../src/guestfs-actions.pod:2169
27310 msgid ""
27311 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27312 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27313 "bytes use C<guestfs_fill_pattern>."
27314 msgstr ""
27315
27316 #. type: textblock
27317 #: ../src/guestfs-actions.pod:2181
27318 msgid "(Added in 1.0.79)"
27319 msgstr ""
27320
27321 #. type: =head2
27322 #: ../src/guestfs-actions.pod:2183
27323 msgid "guestfs_fill_pattern"
27324 msgstr ""
27325
27326 #. type: verbatim
27327 #: ../src/guestfs-actions.pod:2185
27328 #, no-wrap
27329 msgid ""
27330 " int\n"
27331 " guestfs_fill_pattern (guestfs_h *g,\n"
27332 "                       const char *pattern,\n"
27333 "                       int len,\n"
27334 "                       const char *path);\n"
27335 "\n"
27336 msgstr ""
27337
27338 #. type: textblock
27339 #: ../src/guestfs-actions.pod:2191
27340 msgid ""
27341 "This function is like C<guestfs_fill> except that it creates a new file of "
27342 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27343 "pattern is truncated if necessary to ensure the length of the file is "
27344 "exactly C<len> bytes."
27345 msgstr ""
27346
27347 #. type: textblock
27348 #: ../src/guestfs-actions.pod:2203
27349 msgid "(Added in 1.3.12)"
27350 msgstr ""
27351
27352 #. type: =head2
27353 #: ../src/guestfs-actions.pod:2205
27354 msgid "guestfs_find"
27355 msgstr ""
27356
27357 #. type: verbatim
27358 #: ../src/guestfs-actions.pod:2207
27359 #, no-wrap
27360 msgid ""
27361 " char **\n"
27362 " guestfs_find (guestfs_h *g,\n"
27363 "               const char *directory);\n"
27364 "\n"
27365 msgstr ""
27366
27367 #. type: textblock
27368 #: ../src/guestfs-actions.pod:2223
27369 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27370 msgstr ""
27371
27372 #. type: textblock
27373 #: ../src/guestfs-actions.pod:2236
27374 msgid "See also C<guestfs_find0>."
27375 msgstr ""
27376
27377 #. type: textblock
27378 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:6623
27379 msgid "(Added in 1.0.27)"
27380 msgstr ""
27381
27382 #. type: =head2
27383 #: ../src/guestfs-actions.pod:2247
27384 msgid "guestfs_find0"
27385 msgstr ""
27386
27387 #. type: verbatim
27388 #: ../src/guestfs-actions.pod:2249
27389 #, no-wrap
27390 msgid ""
27391 " int\n"
27392 " guestfs_find0 (guestfs_h *g,\n"
27393 "                const char *directory,\n"
27394 "                const char *files);\n"
27395 "\n"
27396 msgstr ""
27397
27398 #. type: textblock
27399 #: ../src/guestfs-actions.pod:2258
27400 msgid ""
27401 "This command works the same way as C<guestfs_find> with the following "
27402 "exceptions:"
27403 msgstr ""
27404
27405 #. type: textblock
27406 #: ../src/guestfs-actions.pod:2285
27407 msgid "(Added in 1.0.74)"
27408 msgstr ""
27409
27410 #. type: =head2
27411 #: ../src/guestfs-actions.pod:2287
27412 msgid "guestfs_findfs_label"
27413 msgstr ""
27414
27415 #. type: verbatim
27416 #: ../src/guestfs-actions.pod:2289
27417 #, no-wrap
27418 msgid ""
27419 " char *\n"
27420 " guestfs_findfs_label (guestfs_h *g,\n"
27421 "                       const char *label);\n"
27422 "\n"
27423 msgstr ""
27424
27425 #. type: textblock
27426 #: ../src/guestfs-actions.pod:2297
27427 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27428 msgstr ""
27429
27430 #. type: =head2
27431 #: ../src/guestfs-actions.pod:2304
27432 msgid "guestfs_findfs_uuid"
27433 msgstr ""
27434
27435 #. type: verbatim
27436 #: ../src/guestfs-actions.pod:2306
27437 #, no-wrap
27438 msgid ""
27439 " char *\n"
27440 " guestfs_findfs_uuid (guestfs_h *g,\n"
27441 "                      const char *uuid);\n"
27442 "\n"
27443 msgstr ""
27444
27445 #. type: textblock
27446 #: ../src/guestfs-actions.pod:2314
27447 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27448 msgstr ""
27449
27450 #. type: =head2
27451 #: ../src/guestfs-actions.pod:2321
27452 msgid "guestfs_fsck"
27453 msgstr ""
27454
27455 #. type: verbatim
27456 #: ../src/guestfs-actions.pod:2323
27457 #, no-wrap
27458 msgid ""
27459 " int\n"
27460 " guestfs_fsck (guestfs_h *g,\n"
27461 "               const char *fstype,\n"
27462 "               const char *device);\n"
27463 "\n"
27464 msgstr ""
27465
27466 #. type: textblock
27467 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8522
27468 msgid "(Added in 1.0.16)"
27469 msgstr ""
27470
27471 #. type: =head2
27472 #: ../src/guestfs-actions.pod:2360
27473 msgid "guestfs_get_append"
27474 msgstr ""
27475
27476 #. type: verbatim
27477 #: ../src/guestfs-actions.pod:2362
27478 #, no-wrap
27479 msgid ""
27480 " const char *\n"
27481 " guestfs_get_append (guestfs_h *g);\n"
27482 "\n"
27483 msgstr ""
27484
27485 #. type: textblock
27486 #: ../src/guestfs-actions.pod:2370
27487 msgid ""
27488 "This function returns a string which may be NULL.  There is no way to return "
27489 "an error from this function.  The string is owned by the guest handle and "
27490 "must I<not> be freed."
27491 msgstr ""
27492
27493 #. type: textblock
27494 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6301 ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:7229 ../src/guestfs-actions.pod:7248 ../src/guestfs-actions.pod:7264 ../src/guestfs-actions.pod:7288 ../src/guestfs-actions.pod:8162 ../src/guestfs-actions.pod:8177 ../src/guestfs-actions.pod:8566
27495 msgid "(Added in 1.0.26)"
27496 msgstr ""
27497
27498 #. type: =head2
27499 #: ../src/guestfs-actions.pod:2376
27500 msgid "guestfs_get_attach_method"
27501 msgstr ""
27502
27503 #. type: verbatim
27504 #: ../src/guestfs-actions.pod:2378
27505 #, no-wrap
27506 msgid ""
27507 " char *\n"
27508 " guestfs_get_attach_method (guestfs_h *g);\n"
27509 "\n"
27510 msgstr ""
27511
27512 #. type: textblock
27513 #: ../src/guestfs-actions.pod:2381
27514 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27515 msgstr ""
27516
27517 #. type: textblock
27518 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6810
27519 msgid "(Added in 1.9.8)"
27520 msgstr ""
27521
27522 #. type: =head2
27523 #: ../src/guestfs-actions.pod:2388
27524 msgid "guestfs_get_autosync"
27525 msgstr ""
27526
27527 #. type: verbatim
27528 #: ../src/guestfs-actions.pod:2390
27529 #, no-wrap
27530 msgid ""
27531 " int\n"
27532 " guestfs_get_autosync (guestfs_h *g);\n"
27533 "\n"
27534 msgstr ""
27535
27536 #. type: =head2
27537 #: ../src/guestfs-actions.pod:2399
27538 msgid "guestfs_get_direct"
27539 msgstr ""
27540
27541 #. type: verbatim
27542 #: ../src/guestfs-actions.pod:2401
27543 #, no-wrap
27544 msgid ""
27545 " int\n"
27546 " guestfs_get_direct (guestfs_h *g);\n"
27547 "\n"
27548 msgstr ""
27549
27550 #. type: textblock
27551 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6851
27552 msgid "(Added in 1.0.72)"
27553 msgstr ""
27554
27555 #. type: =head2
27556 #: ../src/guestfs-actions.pod:2410
27557 msgid "guestfs_get_e2label"
27558 msgstr ""
27559
27560 #. type: verbatim
27561 #: ../src/guestfs-actions.pod:2412
27562 #, no-wrap
27563 msgid ""
27564 " char *\n"
27565 " guestfs_get_e2label (guestfs_h *g,\n"
27566 "                      const char *device);\n"
27567 "\n"
27568 msgstr ""
27569
27570 #. type: textblock
27571 #: ../src/guestfs-actions.pod:2416
27572 msgid ""
27573 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27574 "call instead."
27575 msgstr ""
27576
27577 #. type: textblock
27578 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6888
27579 msgid "(Added in 1.0.15)"
27580 msgstr ""
27581
27582 #. type: =head2
27583 #: ../src/guestfs-actions.pod:2431
27584 msgid "guestfs_get_e2uuid"
27585 msgstr ""
27586
27587 #. type: verbatim
27588 #: ../src/guestfs-actions.pod:2433
27589 #, no-wrap
27590 msgid ""
27591 " char *\n"
27592 " guestfs_get_e2uuid (guestfs_h *g,\n"
27593 "                     const char *device);\n"
27594 "\n"
27595 msgstr ""
27596
27597 #. type: textblock
27598 #: ../src/guestfs-actions.pod:2437
27599 msgid ""
27600 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27601 "call instead."
27602 msgstr ""
27603
27604 #. type: =head2
27605 #: ../src/guestfs-actions.pod:2452
27606 msgid "guestfs_get_memsize"
27607 msgstr ""
27608
27609 #. type: verbatim
27610 #: ../src/guestfs-actions.pod:2454
27611 #, no-wrap
27612 msgid ""
27613 " int\n"
27614 " guestfs_get_memsize (guestfs_h *g);\n"
27615 "\n"
27616 msgstr ""
27617
27618 #. type: textblock
27619 #: ../src/guestfs-actions.pod:2460
27620 msgid ""
27621 "If C<guestfs_set_memsize> was not called on this handle, and if "
27622 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27623 "value for memsize."
27624 msgstr ""
27625
27626 #. type: textblock
27627 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5197 ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5425 ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:5456 ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5486 ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7931
27628 msgid "(Added in 1.0.55)"
27629 msgstr ""
27630
27631 #. type: =head2
27632 #: ../src/guestfs-actions.pod:2471
27633 msgid "guestfs_get_network"
27634 msgstr ""
27635
27636 #. type: verbatim
27637 #: ../src/guestfs-actions.pod:2473
27638 #, no-wrap
27639 msgid ""
27640 " int\n"
27641 " guestfs_get_network (guestfs_h *g);\n"
27642 "\n"
27643 msgstr ""
27644
27645 #. type: textblock
27646 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6928
27647 msgid "(Added in 1.5.4)"
27648 msgstr ""
27649
27650 #. type: =head2
27651 #: ../src/guestfs-actions.pod:2482
27652 msgid "guestfs_get_path"
27653 msgstr ""
27654
27655 #. type: verbatim
27656 #: ../src/guestfs-actions.pod:2484
27657 #, no-wrap
27658 msgid ""
27659 " const char *\n"
27660 " guestfs_get_path (guestfs_h *g);\n"
27661 "\n"
27662 msgstr ""
27663
27664 #. type: textblock
27665 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27666 msgid ""
27667 "This function returns a string, or NULL on error.  The string is owned by "
27668 "the guest handle and must I<not> be freed."
27669 msgstr ""
27670
27671 #. type: =head2
27672 #: ../src/guestfs-actions.pod:2497
27673 msgid "guestfs_get_pgroup"
27674 msgstr ""
27675
27676 #. type: verbatim
27677 #: ../src/guestfs-actions.pod:2499
27678 #, no-wrap
27679 msgid ""
27680 " int\n"
27681 " guestfs_get_pgroup (guestfs_h *g);\n"
27682 "\n"
27683 msgstr ""
27684
27685 #. type: textblock
27686 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:8423
27687 msgid "(Added in 1.11.18)"
27688 msgstr ""
27689
27690 #. type: =head2
27691 #: ../src/guestfs-actions.pod:2508
27692 msgid "guestfs_get_pid"
27693 msgstr ""
27694
27695 #. type: verbatim
27696 #: ../src/guestfs-actions.pod:2510
27697 #, no-wrap
27698 msgid ""
27699 " int\n"
27700 " guestfs_get_pid (guestfs_h *g);\n"
27701 "\n"
27702 msgstr ""
27703
27704 #. type: textblock
27705 #: ../src/guestfs-actions.pod:2520
27706 msgid "(Added in 1.0.56)"
27707 msgstr ""
27708
27709 #. type: =head2
27710 #: ../src/guestfs-actions.pod:2522
27711 msgid "guestfs_get_qemu"
27712 msgstr ""
27713
27714 #. type: verbatim
27715 #: ../src/guestfs-actions.pod:2524
27716 #, no-wrap
27717 msgid ""
27718 " const char *\n"
27719 " guestfs_get_qemu (guestfs_h *g);\n"
27720 "\n"
27721 msgstr ""
27722
27723 #. type: textblock
27724 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6992
27725 msgid "(Added in 1.0.6)"
27726 msgstr ""
27727
27728 #. type: =head2
27729 #: ../src/guestfs-actions.pod:2537
27730 msgid "guestfs_get_recovery_proc"
27731 msgstr ""
27732
27733 #. type: verbatim
27734 #: ../src/guestfs-actions.pod:2539
27735 #, no-wrap
27736 msgid ""
27737 " int\n"
27738 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27739 "\n"
27740 msgstr ""
27741
27742 #. type: textblock
27743 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:6231 ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:7016 ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7734 ../src/guestfs-actions.pod:8046
27744 msgid "(Added in 1.0.77)"
27745 msgstr ""
27746
27747 #. type: =head2
27748 #: ../src/guestfs-actions.pod:2548
27749 msgid "guestfs_get_selinux"
27750 msgstr ""
27751
27752 #. type: verbatim
27753 #: ../src/guestfs-actions.pod:2550
27754 #, no-wrap
27755 msgid ""
27756 " int\n"
27757 " guestfs_get_selinux (guestfs_h *g);\n"
27758 "\n"
27759 msgstr ""
27760
27761 #. type: textblock
27762 #: ../src/guestfs-actions.pod:2553
27763 msgid ""
27764 "This returns the current setting of the selinux flag which is passed to the "
27765 "appliance at boot time.  See C<guestfs_set_selinux>."
27766 msgstr ""
27767
27768 #. type: textblock
27769 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635 ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7109
27770 msgid "(Added in 1.0.67)"
27771 msgstr ""
27772
27773 #. type: =head2
27774 #: ../src/guestfs-actions.pod:2563
27775 msgid "guestfs_get_smp"
27776 msgstr ""
27777
27778 #. type: verbatim
27779 #: ../src/guestfs-actions.pod:2565
27780 #, no-wrap
27781 msgid ""
27782 " int\n"
27783 " guestfs_get_smp (guestfs_h *g);\n"
27784 "\n"
27785 msgstr ""
27786
27787 #. type: =head2
27788 #: ../src/guestfs-actions.pod:2574
27789 msgid "guestfs_get_state"
27790 msgstr ""
27791
27792 #. type: verbatim
27793 #: ../src/guestfs-actions.pod:2576
27794 #, no-wrap
27795 msgid ""
27796 " int\n"
27797 " guestfs_get_state (guestfs_h *g);\n"
27798 "\n"
27799 msgstr ""
27800
27801 #. type: =head2
27802 #: ../src/guestfs-actions.pod:2588
27803 msgid "guestfs_get_trace"
27804 msgstr ""
27805
27806 #. type: verbatim
27807 #: ../src/guestfs-actions.pod:2590
27808 #, no-wrap
27809 msgid ""
27810 " int\n"
27811 " guestfs_get_trace (guestfs_h *g);\n"
27812 "\n"
27813 msgstr ""
27814
27815 #. type: =head2
27816 #: ../src/guestfs-actions.pod:2599
27817 msgid "guestfs_get_umask"
27818 msgstr ""
27819
27820 #. type: verbatim
27821 #: ../src/guestfs-actions.pod:2601
27822 #, no-wrap
27823 msgid ""
27824 " int\n"
27825 " guestfs_get_umask (guestfs_h *g);\n"
27826 "\n"
27827 msgstr ""
27828
27829 #. type: textblock
27830 #: ../src/guestfs-actions.pod:2604
27831 msgid ""
27832 "Return the current umask.  By default the umask is C<022> unless it has been "
27833 "set by calling C<guestfs_umask>."
27834 msgstr ""
27835
27836 #. type: =head2
27837 #: ../src/guestfs-actions.pod:2611
27838 msgid "guestfs_get_verbose"
27839 msgstr ""
27840
27841 #. type: verbatim
27842 #: ../src/guestfs-actions.pod:2613
27843 #, no-wrap
27844 msgid ""
27845 " int\n"
27846 " guestfs_get_verbose (guestfs_h *g);\n"
27847 "\n"
27848 msgstr ""
27849
27850 #. type: =head2
27851 #: ../src/guestfs-actions.pod:2622
27852 msgid "guestfs_getcon"
27853 msgstr ""
27854
27855 #. type: verbatim
27856 #: ../src/guestfs-actions.pod:2624
27857 #, no-wrap
27858 msgid ""
27859 " char *\n"
27860 " guestfs_getcon (guestfs_h *g);\n"
27861 "\n"
27862 msgstr ""
27863
27864 #. type: textblock
27865 #: ../src/guestfs-actions.pod:2629
27866 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27867 msgstr ""
27868
27869 #. type: =head2
27870 #: ../src/guestfs-actions.pod:2637
27871 msgid "guestfs_getxattr"
27872 msgstr ""
27873
27874 #. type: verbatim
27875 #: ../src/guestfs-actions.pod:2639
27876 #, no-wrap
27877 msgid ""
27878 " char *\n"
27879 " guestfs_getxattr (guestfs_h *g,\n"
27880 "                   const char *path,\n"
27881 "                   const char *name,\n"
27882 "                   size_t *size_r);\n"
27883 "\n"
27884 msgstr ""
27885
27886 #. type: textblock
27887 #: ../src/guestfs-actions.pod:2645
27888 msgid ""
27889 "Get a single extended attribute from file C<path> named C<name>.  This call "
27890 "follows symlinks.  If you want to lookup an extended attribute for the "
27891 "symlink itself, use C<guestfs_lgetxattr>."
27892 msgstr ""
27893
27894 #. type: textblock
27895 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
27896 msgid ""
27897 "Normally it is better to get all extended attributes from a file in one go "
27898 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27899 "implementations are buggy and do not provide a way to list out attributes.  "
27900 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27901 "extended attributes you want in advance and call this function."
27902 msgstr ""
27903
27904 #. type: textblock
27905 #: ../src/guestfs-actions.pod:2659
27906 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27907 msgstr ""
27908
27909 #. type: textblock
27910 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6431
27911 msgid ""
27912 "This function returns a buffer, or NULL on error.  The size of the returned "
27913 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27914 "after use>."
27915 msgstr ""
27916
27917 #. type: textblock
27918 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
27919 msgid "(Added in 1.7.24)"
27920 msgstr ""
27921
27922 #. type: =head2
27923 #: ../src/guestfs-actions.pod:2667
27924 msgid "guestfs_getxattrs"
27925 msgstr ""
27926
27927 #. type: verbatim
27928 #: ../src/guestfs-actions.pod:2669
27929 #, no-wrap
27930 msgid ""
27931 " struct guestfs_xattr_list *\n"
27932 " guestfs_getxattrs (guestfs_h *g,\n"
27933 "                    const char *path);\n"
27934 "\n"
27935 msgstr ""
27936
27937 #. type: textblock
27938 #: ../src/guestfs-actions.pod:2679
27939 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27940 msgstr ""
27941
27942 #. type: textblock
27943 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4862
27944 msgid ""
27945 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27946 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27947 msgstr ""
27948
27949 #. type: textblock
27950 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176 ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:8631
27951 msgid "(Added in 1.0.59)"
27952 msgstr ""
27953
27954 #. type: =head2
27955 #: ../src/guestfs-actions.pod:2687
27956 msgid "guestfs_glob_expand"
27957 msgstr ""
27958
27959 #. type: verbatim
27960 #: ../src/guestfs-actions.pod:2689
27961 #, no-wrap
27962 msgid ""
27963 " char **\n"
27964 " guestfs_glob_expand (guestfs_h *g,\n"
27965 "                      const char *pattern);\n"
27966 "\n"
27967 msgstr ""
27968
27969 #. type: textblock
27970 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7312 ../src/guestfs-actions.pod:7329
27971 msgid "(Added in 1.0.50)"
27972 msgstr ""
27973
27974 #. type: =head2
27975 #: ../src/guestfs-actions.pod:2710
27976 msgid "guestfs_grep"
27977 msgstr ""
27978
27979 #. type: verbatim
27980 #: ../src/guestfs-actions.pod:2712
27981 #, no-wrap
27982 msgid ""
27983 " char **\n"
27984 " guestfs_grep (guestfs_h *g,\n"
27985 "               const char *regex,\n"
27986 "               const char *path);\n"
27987 "\n"
27988 msgstr ""
27989
27990 #. type: =head2
27991 #: ../src/guestfs-actions.pod:2729
27992 msgid "guestfs_grepi"
27993 msgstr ""
27994
27995 #. type: verbatim
27996 #: ../src/guestfs-actions.pod:2731
27997 #, no-wrap
27998 msgid ""
27999 " char **\n"
28000 " guestfs_grepi (guestfs_h *g,\n"
28001 "                const char *regex,\n"
28002 "                const char *path);\n"
28003 "\n"
28004 msgstr ""
28005
28006 #. type: =head2
28007 #: ../src/guestfs-actions.pod:2748
28008 msgid "guestfs_grub_install"
28009 msgstr ""
28010
28011 #. type: verbatim
28012 #: ../src/guestfs-actions.pod:2750
28013 #, no-wrap
28014 msgid ""
28015 " int\n"
28016 " guestfs_grub_install (guestfs_h *g,\n"
28017 "                       const char *root,\n"
28018 "                       const char *device);\n"
28019 "\n"
28020 msgstr ""
28021
28022 #. type: textblock
28023 #: ../src/guestfs-actions.pod:2793
28024 msgid "(Added in 1.0.17)"
28025 msgstr ""
28026
28027 #. type: =head2
28028 #: ../src/guestfs-actions.pod:2795
28029 msgid "guestfs_head"
28030 msgstr ""
28031
28032 #. type: verbatim
28033 #: ../src/guestfs-actions.pod:2797
28034 #, no-wrap
28035 msgid ""
28036 " char **\n"
28037 " guestfs_head (guestfs_h *g,\n"
28038 "               const char *path);\n"
28039 "\n"
28040 msgstr ""
28041
28042 #. type: =head2
28043 #: ../src/guestfs-actions.pod:2813
28044 msgid "guestfs_head_n"
28045 msgstr ""
28046
28047 #. type: verbatim
28048 #: ../src/guestfs-actions.pod:2815
28049 #, no-wrap
28050 msgid ""
28051 " char **\n"
28052 " guestfs_head_n (guestfs_h *g,\n"
28053 "                 int nrlines,\n"
28054 "                 const char *path);\n"
28055 "\n"
28056 msgstr ""
28057
28058 #. type: =head2
28059 #: ../src/guestfs-actions.pod:2837
28060 msgid "guestfs_hexdump"
28061 msgstr ""
28062
28063 #. type: verbatim
28064 #: ../src/guestfs-actions.pod:2839
28065 #, no-wrap
28066 msgid ""
28067 " char *\n"
28068 " guestfs_hexdump (guestfs_h *g,\n"
28069 "                  const char *path);\n"
28070 "\n"
28071 msgstr ""
28072
28073 #. type: textblock
28074 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7393 ../src/guestfs-actions.pod:7448
28075 msgid "(Added in 1.0.22)"
28076 msgstr ""
28077
28078 #. type: =head2
28079 #: ../src/guestfs-actions.pod:2854
28080 msgid "guestfs_initrd_cat"
28081 msgstr ""
28082
28083 #. type: verbatim
28084 #: ../src/guestfs-actions.pod:2856
28085 #, no-wrap
28086 msgid ""
28087 " char *\n"
28088 " guestfs_initrd_cat (guestfs_h *g,\n"
28089 "                     const char *initrdpath,\n"
28090 "                     const char *filename,\n"
28091 "                     size_t *size_r);\n"
28092 "\n"
28093 msgstr ""
28094
28095 #. type: textblock
28096 #: ../src/guestfs-actions.pod:2872
28097 msgid "See also C<guestfs_initrd_list>."
28098 msgstr ""
28099
28100 #. type: =head2
28101 #: ../src/guestfs-actions.pod:2883
28102 msgid "guestfs_initrd_list"
28103 msgstr ""
28104
28105 #. type: verbatim
28106 #: ../src/guestfs-actions.pod:2885
28107 #, no-wrap
28108 msgid ""
28109 " char **\n"
28110 " guestfs_initrd_list (guestfs_h *g,\n"
28111 "                      const char *path);\n"
28112 "\n"
28113 msgstr ""
28114
28115 #. type: =head2
28116 #: ../src/guestfs-actions.pod:2905
28117 msgid "guestfs_inotify_add_watch"
28118 msgstr ""
28119
28120 #. type: verbatim
28121 #: ../src/guestfs-actions.pod:2907
28122 #, no-wrap
28123 msgid ""
28124 " int64_t\n"
28125 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28126 "                            const char *path,\n"
28127 "                            int mask);\n"
28128 "\n"
28129 msgstr ""
28130
28131 #. type: =head2
28132 #: ../src/guestfs-actions.pod:2926
28133 msgid "guestfs_inotify_close"
28134 msgstr ""
28135
28136 #. type: verbatim
28137 #: ../src/guestfs-actions.pod:2928
28138 #, no-wrap
28139 msgid ""
28140 " int\n"
28141 " guestfs_inotify_close (guestfs_h *g);\n"
28142 "\n"
28143 msgstr ""
28144
28145 #. type: =head2
28146 #: ../src/guestfs-actions.pod:2939
28147 msgid "guestfs_inotify_files"
28148 msgstr ""
28149
28150 #. type: verbatim
28151 #: ../src/guestfs-actions.pod:2941
28152 #, no-wrap
28153 msgid ""
28154 " char **\n"
28155 " guestfs_inotify_files (guestfs_h *g);\n"
28156 "\n"
28157 msgstr ""
28158
28159 #. type: textblock
28160 #: ../src/guestfs-actions.pod:2944
28161 msgid ""
28162 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28163 "returns a list of pathnames of objects that were touched.  The returned "
28164 "pathnames are sorted and deduplicated."
28165 msgstr ""
28166
28167 #. type: =head2
28168 #: ../src/guestfs-actions.pod:2954
28169 msgid "guestfs_inotify_init"
28170 msgstr ""
28171
28172 #. type: verbatim
28173 #: ../src/guestfs-actions.pod:2956
28174 #, no-wrap
28175 msgid ""
28176 " int\n"
28177 " guestfs_inotify_init (guestfs_h *g,\n"
28178 "                       int maxevents);\n"
28179 "\n"
28180 msgstr ""
28181
28182 #. type: textblock
28183 #: ../src/guestfs-actions.pod:2964
28184 msgid ""
28185 "C<maxevents> is the maximum number of events which will be queued up between "
28186 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28187 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28188 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28189 "throws away events, but records the fact that it threw them away by setting "
28190 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28191 "C<guestfs_inotify_read>)."
28192 msgstr ""
28193
28194 #. type: textblock
28195 #: ../src/guestfs-actions.pod:2974
28196 msgid ""
28197 "Before any events are generated, you have to add some watches to the "
28198 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28199 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28200 msgstr ""
28201
28202 #. type: textblock
28203 #: ../src/guestfs-actions.pod:2980
28204 msgid ""
28205 "Queued up events should be read periodically by calling "
28206 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28207 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28208 "often enough then you risk the internal queue overflowing."
28209 msgstr ""
28210
28211 #. type: textblock
28212 #: ../src/guestfs-actions.pod:2987
28213 msgid ""
28214 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28215 "This also removes any watches automatically."
28216 msgstr ""
28217
28218 #. type: =head2
28219 #: ../src/guestfs-actions.pod:3000
28220 msgid "guestfs_inotify_read"
28221 msgstr ""
28222
28223 #. type: verbatim
28224 #: ../src/guestfs-actions.pod:3002
28225 #, no-wrap
28226 msgid ""
28227 " struct guestfs_inotify_event_list *\n"
28228 " guestfs_inotify_read (guestfs_h *g);\n"
28229 "\n"
28230 msgstr ""
28231
28232 #. type: textblock
28233 #: ../src/guestfs-actions.pod:3016
28234 msgid ""
28235 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28236 "there was an error.  I<The caller must call "
28237 "C<guestfs_free_inotify_event_list> after use>."
28238 msgstr ""
28239
28240 #. type: =head2
28241 #: ../src/guestfs-actions.pod:3022
28242 msgid "guestfs_inotify_rm_watch"
28243 msgstr ""
28244
28245 #. type: verbatim
28246 #: ../src/guestfs-actions.pod:3024
28247 #, no-wrap
28248 msgid ""
28249 " int\n"
28250 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28251 "                           int wd);\n"
28252 "\n"
28253 msgstr ""
28254
28255 #. type: textblock
28256 #: ../src/guestfs-actions.pod:3028
28257 msgid ""
28258 "Remove a previously defined inotify watch.  See "
28259 "C<guestfs_inotify_add_watch>."
28260 msgstr ""
28261
28262 #. type: =head2
28263 #: ../src/guestfs-actions.pod:3035
28264 msgid "guestfs_inspect_get_arch"
28265 msgstr ""
28266
28267 #. type: verbatim
28268 #: ../src/guestfs-actions.pod:3037
28269 #, no-wrap
28270 msgid ""
28271 " char *\n"
28272 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28273 "                           const char *root);\n"
28274 "\n"
28275 msgstr ""
28276
28277 #. type: textblock
28278 #: ../src/guestfs-actions.pod:3041
28279 msgid ""
28280 "This returns the architecture of the inspected operating system.  The "
28281 "possible return values are listed under C<guestfs_file_architecture>."
28282 msgstr ""
28283
28284 #. type: =head2
28285 #: ../src/guestfs-actions.pod:3055
28286 msgid "guestfs_inspect_get_distro"
28287 msgstr ""
28288
28289 #. type: verbatim
28290 #: ../src/guestfs-actions.pod:3057
28291 #, no-wrap
28292 msgid ""
28293 " char *\n"
28294 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28295 "                             const char *root);\n"
28296 "\n"
28297 msgstr ""
28298
28299 #. type: =head2
28300 #: ../src/guestfs-actions.pod:3157
28301 msgid "guestfs_inspect_get_drive_mappings"
28302 msgstr ""
28303
28304 #. type: verbatim
28305 #: ../src/guestfs-actions.pod:3159
28306 #, no-wrap
28307 msgid ""
28308 " char **\n"
28309 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28310 "                                     const char *root);\n"
28311 "\n"
28312 msgstr ""
28313
28314 #. type: textblock
28315 #: ../src/guestfs-actions.pod:3188
28316 msgid ""
28317 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28318 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28319 msgstr ""
28320
28321 #. type: textblock
28322 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5000 ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:7870
28323 msgid ""
28324 "This function returns a NULL-terminated array of strings, or NULL if there "
28325 "was an error.  The array of strings will always have length C<2n+1>, where "
28326 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28327 "caller must free the strings and the array after use>."
28328 msgstr ""
28329
28330 #. type: textblock
28331 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
28332 msgid "(Added in 1.9.17)"
28333 msgstr ""
28334
28335 #. type: =head2
28336 #: ../src/guestfs-actions.pod:3200
28337 msgid "guestfs_inspect_get_filesystems"
28338 msgstr ""
28339
28340 #. type: verbatim
28341 #: ../src/guestfs-actions.pod:3202
28342 #, no-wrap
28343 msgid ""
28344 " char **\n"
28345 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28346 "                                  const char *root);\n"
28347 "\n"
28348 msgstr ""
28349
28350 #. type: textblock
28351 #: ../src/guestfs-actions.pod:3214
28352 msgid ""
28353 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28354 "C<guestfs_inspect_get_mountpoints>."
28355 msgstr ""
28356
28357 #. type: =head2
28358 #: ../src/guestfs-actions.pod:3223
28359 msgid "guestfs_inspect_get_format"
28360 msgstr ""
28361
28362 #. type: verbatim
28363 #: ../src/guestfs-actions.pod:3225
28364 #, no-wrap
28365 msgid ""
28366 " char *\n"
28367 " guestfs_inspect_get_format (guestfs_h *g,\n"
28368 "                             const char *root);\n"
28369 "\n"
28370 msgstr ""
28371
28372 #. type: textblock
28373 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:6642
28374 msgid "(Added in 1.9.4)"
28375 msgstr ""
28376
28377 #. type: =head2
28378 #: ../src/guestfs-actions.pod:3261
28379 msgid "guestfs_inspect_get_hostname"
28380 msgstr ""
28381
28382 #. type: verbatim
28383 #: ../src/guestfs-actions.pod:3263
28384 #, no-wrap
28385 msgid ""
28386 " char *\n"
28387 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28388 "                               const char *root);\n"
28389 "\n"
28390 msgstr ""
28391
28392 #. type: textblock
28393 #: ../src/guestfs-actions.pod:3278
28394 msgid "(Added in 1.7.9)"
28395 msgstr ""
28396
28397 #. type: =head2
28398 #: ../src/guestfs-actions.pod:3280
28399 msgid "guestfs_inspect_get_icon"
28400 msgstr ""
28401
28402 #. type: verbatim
28403 #: ../src/guestfs-actions.pod:3282
28404 #, no-wrap
28405 msgid ""
28406 " char *\n"
28407 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28408 "                           const char *root,\n"
28409 "                           size_t *size_r,\n"
28410 "                           ...);\n"
28411 "\n"
28412 msgstr ""
28413
28414 #. type: verbatim
28415 #: ../src/guestfs-actions.pod:3293
28416 #, no-wrap
28417 msgid ""
28418 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28419 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28420 "\n"
28421 msgstr ""
28422
28423 #. type: textblock
28424 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:5574
28425 msgid "(Added in 1.11.12)"
28426 msgstr ""
28427
28428 #. type: =head2
28429 #: ../src/guestfs-actions.pod:3362
28430 msgid "guestfs_inspect_get_icon_va"
28431 msgstr ""
28432
28433 #. type: verbatim
28434 #: ../src/guestfs-actions.pod:3364
28435 #, no-wrap
28436 msgid ""
28437 " char *\n"
28438 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28439 "                              const char *root,\n"
28440 "                              size_t *size_r,\n"
28441 "                              va_list args);\n"
28442 "\n"
28443 msgstr ""
28444
28445 #. type: textblock
28446 #: ../src/guestfs-actions.pod:3370
28447 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28448 msgstr ""
28449
28450 #. type: =head2
28451 #: ../src/guestfs-actions.pod:3374
28452 msgid "guestfs_inspect_get_icon_argv"
28453 msgstr ""
28454
28455 #. type: verbatim
28456 #: ../src/guestfs-actions.pod:3376
28457 #, no-wrap
28458 msgid ""
28459 " char *\n"
28460 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28461 "                                const char *root,\n"
28462 "                                size_t *size_r,\n"
28463 "                                const struct guestfs_inspect_get_icon_argv "
28464 "*optargs);\n"
28465 "\n"
28466 msgstr ""
28467
28468 #. type: textblock
28469 #: ../src/guestfs-actions.pod:3382
28470 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28471 msgstr ""
28472
28473 #. type: =head2
28474 #: ../src/guestfs-actions.pod:3386
28475 msgid "guestfs_inspect_get_major_version"
28476 msgstr ""
28477
28478 #. type: verbatim
28479 #: ../src/guestfs-actions.pod:3388
28480 #, no-wrap
28481 msgid ""
28482 " int\n"
28483 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28484 "                                    const char *root);\n"
28485 "\n"
28486 msgstr ""
28487
28488 #. type: =head2
28489 #: ../src/guestfs-actions.pod:3410
28490 msgid "guestfs_inspect_get_minor_version"
28491 msgstr ""
28492
28493 #. type: verbatim
28494 #: ../src/guestfs-actions.pod:3412
28495 #, no-wrap
28496 msgid ""
28497 " int\n"
28498 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28499 "                                    const char *root);\n"
28500 "\n"
28501 msgstr ""
28502
28503 #. type: textblock
28504 #: ../src/guestfs-actions.pod:3421
28505 msgid ""
28506 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28507 "C<guestfs_inspect_get_major_version>."
28508 msgstr ""
28509
28510 #. type: =head2
28511 #: ../src/guestfs-actions.pod:3428
28512 msgid "guestfs_inspect_get_mountpoints"
28513 msgstr ""
28514
28515 #. type: verbatim
28516 #: ../src/guestfs-actions.pod:3430
28517 #, no-wrap
28518 msgid ""
28519 " char **\n"
28520 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28521 "                                  const char *root);\n"
28522 "\n"
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../src/guestfs-actions.pod:3451
28527 msgid ""
28528 "For operating systems like Windows which still use drive letters, this call "
28529 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28530 "information about the mapping of drive letters to partitions, see "
28531 "C<guestfs_inspect_get_drive_mappings>."
28532 msgstr ""
28533
28534 #. type: textblock
28535 #: ../src/guestfs-actions.pod:3457
28536 msgid ""
28537 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28538 "C<guestfs_inspect_get_filesystems>."
28539 msgstr ""
28540
28541 #. type: =head2
28542 #: ../src/guestfs-actions.pod:3468
28543 msgid "guestfs_inspect_get_package_format"
28544 msgstr ""
28545
28546 #. type: verbatim
28547 #: ../src/guestfs-actions.pod:3470
28548 #, no-wrap
28549 msgid ""
28550 " char *\n"
28551 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28552 "                                     const char *root);\n"
28553 "\n"
28554 msgstr ""
28555
28556 #. type: textblock
28557 #: ../src/guestfs-actions.pod:3474
28558 msgid ""
28559 "This function and C<guestfs_inspect_get_package_management> return the "
28560 "package format and package management tool used by the inspected operating "
28561 "system.  For example for Fedora these functions would return C<rpm> (package "
28562 "format) and C<yum> (package management)."
28563 msgstr ""
28564
28565 #. type: textblock
28566 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28567 msgid "(Added in 1.7.5)"
28568 msgstr ""
28569
28570 #. type: =head2
28571 #: ../src/guestfs-actions.pod:3495
28572 msgid "guestfs_inspect_get_package_management"
28573 msgstr ""
28574
28575 #. type: verbatim
28576 #: ../src/guestfs-actions.pod:3497
28577 #, no-wrap
28578 msgid ""
28579 " char *\n"
28580 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28581 "                                         const char *root);\n"
28582 "\n"
28583 msgstr ""
28584
28585 #. type: textblock
28586 #: ../src/guestfs-actions.pod:3501
28587 msgid ""
28588 "C<guestfs_inspect_get_package_format> and this function return the package "
28589 "format and package management tool used by the inspected operating system.  "
28590 "For example for Fedora these functions would return C<rpm> (package format) "
28591 "and C<yum> (package management)."
28592 msgstr ""
28593
28594 #. type: =head2
28595 #: ../src/guestfs-actions.pod:3523
28596 msgid "guestfs_inspect_get_product_name"
28597 msgstr ""
28598
28599 #. type: verbatim
28600 #: ../src/guestfs-actions.pod:3525
28601 #, no-wrap
28602 msgid ""
28603 " char *\n"
28604 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28605 "                                   const char *root);\n"
28606 "\n"
28607 msgstr ""
28608
28609 #. type: =head2
28610 #: ../src/guestfs-actions.pod:3544
28611 msgid "guestfs_inspect_get_product_variant"
28612 msgstr ""
28613
28614 #. type: verbatim
28615 #: ../src/guestfs-actions.pod:3546
28616 #, no-wrap
28617 msgid ""
28618 " char *\n"
28619 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28620 "                                      const char *root);\n"
28621 "\n"
28622 msgstr ""
28623
28624 #. type: textblock
28625 #: ../src/guestfs-actions.pod:3569
28626 msgid ""
28627 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28628 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28629 msgstr ""
28630
28631 #. type: textblock
28632 #: ../src/guestfs-actions.pod:3576
28633 msgid "(Added in 1.9.13)"
28634 msgstr ""
28635
28636 #. type: =head2
28637 #: ../src/guestfs-actions.pod:3578
28638 msgid "guestfs_inspect_get_roots"
28639 msgstr ""
28640
28641 #. type: verbatim
28642 #: ../src/guestfs-actions.pod:3580
28643 #, no-wrap
28644 msgid ""
28645 " char **\n"
28646 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28647 "\n"
28648 msgstr ""
28649
28650 #. type: textblock
28651 #: ../src/guestfs-actions.pod:3583
28652 msgid ""
28653 "This function is a convenient way to get the list of root devices, as "
28654 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28655 "the whole inspection process."
28656 msgstr ""
28657
28658 #. type: textblock
28659 #: ../src/guestfs-actions.pod:3587
28660 msgid ""
28661 "This returns an empty list if either no root devices were found or the "
28662 "caller has not called C<guestfs_inspect_os>."
28663 msgstr ""
28664
28665 #. type: textblock
28666 #: ../src/guestfs-actions.pod:3596
28667 msgid "(Added in 1.7.3)"
28668 msgstr ""
28669
28670 #. type: =head2
28671 #: ../src/guestfs-actions.pod:3598
28672 msgid "guestfs_inspect_get_type"
28673 msgstr ""
28674
28675 #. type: verbatim
28676 #: ../src/guestfs-actions.pod:3600
28677 #, no-wrap
28678 msgid ""
28679 " char *\n"
28680 " guestfs_inspect_get_type (guestfs_h *g,\n"
28681 "                           const char *root);\n"
28682 "\n"
28683 msgstr ""
28684
28685 #. type: =head2
28686 #: ../src/guestfs-actions.pod:3641
28687 msgid "guestfs_inspect_get_windows_current_control_set"
28688 msgstr ""
28689
28690 #. type: verbatim
28691 #: ../src/guestfs-actions.pod:3643
28692 #, no-wrap
28693 msgid ""
28694 " char *\n"
28695 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28696 "                                                  const char *root);\n"
28697 "\n"
28698 msgstr ""
28699
28700 #. type: =head2
28701 #: ../src/guestfs-actions.pod:3661
28702 msgid "guestfs_inspect_get_windows_systemroot"
28703 msgstr ""
28704
28705 #. type: verbatim
28706 #: ../src/guestfs-actions.pod:3663
28707 #, no-wrap
28708 msgid ""
28709 " char *\n"
28710 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28711 "                                         const char *root);\n"
28712 "\n"
28713 msgstr ""
28714
28715 #. type: textblock
28716 #: ../src/guestfs-actions.pod:3679
28717 msgid "(Added in 1.5.25)"
28718 msgstr ""
28719
28720 #. type: =head2
28721 #: ../src/guestfs-actions.pod:3681
28722 msgid "guestfs_inspect_is_live"
28723 msgstr ""
28724
28725 #. type: verbatim
28726 #: ../src/guestfs-actions.pod:3683
28727 #, no-wrap
28728 msgid ""
28729 " int\n"
28730 " guestfs_inspect_is_live (guestfs_h *g,\n"
28731 "                          const char *root);\n"
28732 "\n"
28733 msgstr ""
28734
28735 #. type: textblock
28736 #: ../src/guestfs-actions.pod:3687
28737 msgid ""
28738 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28739 "disk), then this returns true if a live image was detected on the disk."
28740 msgstr ""
28741
28742 #. type: =head2
28743 #: ../src/guestfs-actions.pod:3697
28744 msgid "guestfs_inspect_is_multipart"
28745 msgstr ""
28746
28747 #. type: verbatim
28748 #: ../src/guestfs-actions.pod:3699
28749 #, no-wrap
28750 msgid ""
28751 " int\n"
28752 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28753 "                               const char *root);\n"
28754 "\n"
28755 msgstr ""
28756
28757 #. type: textblock
28758 #: ../src/guestfs-actions.pod:3703
28759 msgid ""
28760 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28761 "disk), then this returns true if the disk is part of a set."
28762 msgstr ""
28763
28764 #. type: =head2
28765 #: ../src/guestfs-actions.pod:3713
28766 msgid "guestfs_inspect_is_netinst"
28767 msgstr ""
28768
28769 #. type: verbatim
28770 #: ../src/guestfs-actions.pod:3715
28771 #, no-wrap
28772 msgid ""
28773 " int\n"
28774 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28775 "                             const char *root);\n"
28776 "\n"
28777 msgstr ""
28778
28779 #. type: textblock
28780 #: ../src/guestfs-actions.pod:3719
28781 msgid ""
28782 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28783 "disk), then this returns true if the disk is a network installer, ie. not a "
28784 "self-contained install CD but one which is likely to require network access "
28785 "to complete the install."
28786 msgstr ""
28787
28788 #. type: =head2
28789 #: ../src/guestfs-actions.pod:3731
28790 msgid "guestfs_inspect_list_applications"
28791 msgstr ""
28792
28793 #. type: verbatim
28794 #: ../src/guestfs-actions.pod:3733
28795 #, no-wrap
28796 msgid ""
28797 " struct guestfs_application_list *\n"
28798 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28799 "                                    const char *root);\n"
28800 "\n"
28801 msgstr ""
28802
28803 #. type: textblock
28804 #: ../src/guestfs-actions.pod:3739
28805 msgid ""
28806 "I<Note:> This call works differently from other parts of the inspection "
28807 "API.  You have to call C<guestfs_inspect_os>, then "
28808 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28809 "this.  Listing applications is a significantly more difficult operation "
28810 "which requires access to the full filesystem.  Also note that unlike the "
28811 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28812 "the libguestfs handle, this call actually reads parts of the mounted "
28813 "filesystems during the call."
28814 msgstr ""
28815
28816 #. type: textblock
28817 #: ../src/guestfs-actions.pod:3829
28818 msgid ""
28819 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28820 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28821 "after use>."
28822 msgstr ""
28823
28824 #. type: textblock
28825 #: ../src/guestfs-actions.pod:3833
28826 msgid "(Added in 1.7.8)"
28827 msgstr ""
28828
28829 #. type: =head2
28830 #: ../src/guestfs-actions.pod:3835
28831 msgid "guestfs_inspect_os"
28832 msgstr ""
28833
28834 #. type: verbatim
28835 #: ../src/guestfs-actions.pod:3837
28836 #, no-wrap
28837 msgid ""
28838 " char **\n"
28839 " guestfs_inspect_os (guestfs_h *g);\n"
28840 "\n"
28841 msgstr ""
28842
28843 #. type: textblock
28844 #: ../src/guestfs-actions.pod:3853
28845 msgid ""
28846 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28847 "functions in order to query further information about each operating system, "
28848 "such as the name and version."
28849 msgstr ""
28850
28851 #. type: textblock
28852 #: ../src/guestfs-actions.pod:3858
28853 msgid ""
28854 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28855 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28856 "the contents.  This should be called with no disks currently mounted.  The "
28857 "function may also use Augeas, so any existing Augeas handle will be closed."
28858 msgstr ""
28859
28860 #. type: textblock
28861 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4294
28862 msgid "See also C<guestfs_list_filesystems>."
28863 msgstr ""
28864
28865 #. type: =head2
28866 #: ../src/guestfs-actions.pod:3878
28867 msgid "guestfs_is_blockdev"
28868 msgstr ""
28869
28870 #. type: verbatim
28871 #: ../src/guestfs-actions.pod:3880
28872 #, no-wrap
28873 msgid ""
28874 " int\n"
28875 " guestfs_is_blockdev (guestfs_h *g,\n"
28876 "                      const char *path);\n"
28877 "\n"
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../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
28882 msgid "See also C<guestfs_stat>."
28883 msgstr ""
28884
28885 #. type: textblock
28886 #: ../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
28887 msgid "(Added in 1.5.10)"
28888 msgstr ""
28889
28890 #. type: =head2
28891 #: ../src/guestfs-actions.pod:3893
28892 msgid "guestfs_is_busy"
28893 msgstr ""
28894
28895 #. type: verbatim
28896 #: ../src/guestfs-actions.pod:3895
28897 #, no-wrap
28898 msgid ""
28899 " int\n"
28900 " guestfs_is_busy (guestfs_h *g);\n"
28901 "\n"
28902 msgstr ""
28903
28904 #. type: =head2
28905 #: ../src/guestfs-actions.pod:3907
28906 msgid "guestfs_is_chardev"
28907 msgstr ""
28908
28909 #. type: verbatim
28910 #: ../src/guestfs-actions.pod:3909
28911 #, no-wrap
28912 msgid ""
28913 " int\n"
28914 " guestfs_is_chardev (guestfs_h *g,\n"
28915 "                     const char *path);\n"
28916 "\n"
28917 msgstr ""
28918
28919 #. type: =head2
28920 #: ../src/guestfs-actions.pod:3922
28921 msgid "guestfs_is_config"
28922 msgstr ""
28923
28924 #. type: verbatim
28925 #: ../src/guestfs-actions.pod:3924
28926 #, no-wrap
28927 msgid ""
28928 " int\n"
28929 " guestfs_is_config (guestfs_h *g);\n"
28930 "\n"
28931 msgstr ""
28932
28933 #. type: =head2
28934 #: ../src/guestfs-actions.pod:3936
28935 msgid "guestfs_is_dir"
28936 msgstr ""
28937
28938 #. type: verbatim
28939 #: ../src/guestfs-actions.pod:3938
28940 #, no-wrap
28941 msgid ""
28942 " int\n"
28943 " guestfs_is_dir (guestfs_h *g,\n"
28944 "                 const char *path);\n"
28945 "\n"
28946 msgstr ""
28947
28948 #. type: =head2
28949 #: ../src/guestfs-actions.pod:3952
28950 msgid "guestfs_is_fifo"
28951 msgstr ""
28952
28953 #. type: verbatim
28954 #: ../src/guestfs-actions.pod:3954
28955 #, no-wrap
28956 msgid ""
28957 " int\n"
28958 " guestfs_is_fifo (guestfs_h *g,\n"
28959 "                  const char *path);\n"
28960 "\n"
28961 msgstr ""
28962
28963 #. type: =head2
28964 #: ../src/guestfs-actions.pod:3967
28965 msgid "guestfs_is_file"
28966 msgstr ""
28967
28968 #. type: verbatim
28969 #: ../src/guestfs-actions.pod:3969
28970 #, no-wrap
28971 msgid ""
28972 " int\n"
28973 " guestfs_is_file (guestfs_h *g,\n"
28974 "                  const char *path);\n"
28975 "\n"
28976 msgstr ""
28977
28978 #. type: =head2
28979 #: ../src/guestfs-actions.pod:3983
28980 msgid "guestfs_is_launching"
28981 msgstr ""
28982
28983 #. type: verbatim
28984 #: ../src/guestfs-actions.pod:3985
28985 #, no-wrap
28986 msgid ""
28987 " int\n"
28988 " guestfs_is_launching (guestfs_h *g);\n"
28989 "\n"
28990 msgstr ""
28991
28992 #. type: =head2
28993 #: ../src/guestfs-actions.pod:3997
28994 msgid "guestfs_is_lv"
28995 msgstr ""
28996
28997 #. type: verbatim
28998 #: ../src/guestfs-actions.pod:3999
28999 #, no-wrap
29000 msgid ""
29001 " int\n"
29002 " guestfs_is_lv (guestfs_h *g,\n"
29003 "                const char *device);\n"
29004 "\n"
29005 msgstr ""
29006
29007 #. type: =head2
29008 #: ../src/guestfs-actions.pod:4010
29009 msgid "guestfs_is_ready"
29010 msgstr ""
29011
29012 #. type: verbatim
29013 #: ../src/guestfs-actions.pod:4012
29014 #, no-wrap
29015 msgid ""
29016 " int\n"
29017 " guestfs_is_ready (guestfs_h *g);\n"
29018 "\n"
29019 msgstr ""
29020
29021 #. type: =head2
29022 #: ../src/guestfs-actions.pod:4024
29023 msgid "guestfs_is_socket"
29024 msgstr ""
29025
29026 #. type: verbatim
29027 #: ../src/guestfs-actions.pod:4026
29028 #, no-wrap
29029 msgid ""
29030 " int\n"
29031 " guestfs_is_socket (guestfs_h *g,\n"
29032 "                    const char *path);\n"
29033 "\n"
29034 msgstr ""
29035
29036 #. type: =head2
29037 #: ../src/guestfs-actions.pod:4039
29038 msgid "guestfs_is_symlink"
29039 msgstr ""
29040
29041 #. type: verbatim
29042 #: ../src/guestfs-actions.pod:4041
29043 #, no-wrap
29044 msgid ""
29045 " int\n"
29046 " guestfs_is_symlink (guestfs_h *g,\n"
29047 "                     const char *path);\n"
29048 "\n"
29049 msgstr ""
29050
29051 #. type: =head2
29052 #: ../src/guestfs-actions.pod:4054
29053 msgid "guestfs_is_zero"
29054 msgstr ""
29055
29056 #. type: verbatim
29057 #: ../src/guestfs-actions.pod:4056
29058 #, no-wrap
29059 msgid ""
29060 " int\n"
29061 " guestfs_is_zero (guestfs_h *g,\n"
29062 "                  const char *path);\n"
29063 "\n"
29064 msgstr ""
29065
29066 #. type: textblock
29067 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
29068 msgid "(Added in 1.11.8)"
29069 msgstr ""
29070
29071 #. type: =head2
29072 #: ../src/guestfs-actions.pod:4067
29073 msgid "guestfs_is_zero_device"
29074 msgstr ""
29075
29076 #. type: verbatim
29077 #: ../src/guestfs-actions.pod:4069
29078 #, no-wrap
29079 msgid ""
29080 " int\n"
29081 " guestfs_is_zero_device (guestfs_h *g,\n"
29082 "                         const char *device);\n"
29083 "\n"
29084 msgstr ""
29085
29086 #. type: =head2
29087 #: ../src/guestfs-actions.pod:4081
29088 msgid "guestfs_kill_subprocess"
29089 msgstr ""
29090
29091 #. type: verbatim
29092 #: ../src/guestfs-actions.pod:4083
29093 #, no-wrap
29094 msgid ""
29095 " int\n"
29096 " guestfs_kill_subprocess (guestfs_h *g);\n"
29097 "\n"
29098 msgstr ""
29099
29100 #. type: =head2
29101 #: ../src/guestfs-actions.pod:4092
29102 msgid "guestfs_launch"
29103 msgstr ""
29104
29105 #. type: verbatim
29106 #: ../src/guestfs-actions.pod:4094
29107 #, no-wrap
29108 msgid ""
29109 " int\n"
29110 " guestfs_launch (guestfs_h *g);\n"
29111 "\n"
29112 msgstr ""
29113
29114 #. type: =head2
29115 #: ../src/guestfs-actions.pod:4112
29116 msgid "guestfs_lchown"
29117 msgstr ""
29118
29119 #. type: verbatim
29120 #: ../src/guestfs-actions.pod:4114
29121 #, no-wrap
29122 msgid ""
29123 " int\n"
29124 " guestfs_lchown (guestfs_h *g,\n"
29125 "                 int owner,\n"
29126 "                 int group,\n"
29127 "                 const char *path);\n"
29128 "\n"
29129 msgstr ""
29130
29131 #. type: textblock
29132 #: ../src/guestfs-actions.pod:4120
29133 msgid ""
29134 "Change the file owner to C<owner> and group to C<group>.  This is like "
29135 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29136 "changed, not the target."
29137 msgstr ""
29138
29139 #. type: =head2
29140 #: ../src/guestfs-actions.pod:4132
29141 msgid "guestfs_lgetxattr"
29142 msgstr ""
29143
29144 #. type: verbatim
29145 #: ../src/guestfs-actions.pod:4134
29146 #, no-wrap
29147 msgid ""
29148 " char *\n"
29149 " guestfs_lgetxattr (guestfs_h *g,\n"
29150 "                    const char *path,\n"
29151 "                    const char *name,\n"
29152 "                    size_t *size_r);\n"
29153 "\n"
29154 msgstr ""
29155
29156 #. type: textblock
29157 #: ../src/guestfs-actions.pod:4154
29158 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29159 msgstr ""
29160
29161 #. type: =head2
29162 #: ../src/guestfs-actions.pod:4162
29163 msgid "guestfs_lgetxattrs"
29164 msgstr ""
29165
29166 #. type: verbatim
29167 #: ../src/guestfs-actions.pod:4164
29168 #, no-wrap
29169 msgid ""
29170 " struct guestfs_xattr_list *\n"
29171 " guestfs_lgetxattrs (guestfs_h *g,\n"
29172 "                     const char *path);\n"
29173 "\n"
29174 msgstr ""
29175
29176 #. type: textblock
29177 #: ../src/guestfs-actions.pod:4168
29178 msgid ""
29179 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29180 "then it returns the extended attributes of the link itself."
29181 msgstr ""
29182
29183 #. type: =head2
29184 #: ../src/guestfs-actions.pod:4178
29185 msgid "guestfs_list_9p"
29186 msgstr ""
29187
29188 #. type: verbatim
29189 #: ../src/guestfs-actions.pod:4180
29190 #, no-wrap
29191 msgid ""
29192 " char **\n"
29193 " guestfs_list_9p (guestfs_h *g);\n"
29194 "\n"
29195 msgstr ""
29196
29197 #. type: =head2
29198 #: ../src/guestfs-actions.pod:4192
29199 msgid "guestfs_list_devices"
29200 msgstr ""
29201
29202 #. type: verbatim
29203 #: ../src/guestfs-actions.pod:4194
29204 #, no-wrap
29205 msgid ""
29206 " char **\n"
29207 " guestfs_list_devices (guestfs_h *g);\n"
29208 "\n"
29209 msgstr ""
29210
29211 #. type: =head2
29212 #: ../src/guestfs-actions.pod:4209
29213 msgid "guestfs_list_dm_devices"
29214 msgstr ""
29215
29216 #. type: verbatim
29217 #: ../src/guestfs-actions.pod:4211
29218 #, no-wrap
29219 msgid ""
29220 " char **\n"
29221 " guestfs_list_dm_devices (guestfs_h *g);\n"
29222 "\n"
29223 msgstr ""
29224
29225 #. type: textblock
29226 #: ../src/guestfs-actions.pod:4216
29227 msgid ""
29228 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29229 "previous call to C<guestfs_luks_open>."
29230 msgstr ""
29231
29232 #. type: textblock
29233 #: ../src/guestfs-actions.pod:4219
29234 msgid ""
29235 "Device mapper devices which correspond to logical volumes are I<not> "
29236 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29237 "volumes."
29238 msgstr ""
29239
29240 #. type: textblock
29241 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5813
29242 msgid "(Added in 1.11.15)"
29243 msgstr ""
29244
29245 #. type: =head2
29246 #: ../src/guestfs-actions.pod:4229
29247 msgid "guestfs_list_filesystems"
29248 msgstr ""
29249
29250 #. type: verbatim
29251 #: ../src/guestfs-actions.pod:4231
29252 #, no-wrap
29253 msgid ""
29254 " char **\n"
29255 " guestfs_list_filesystems (guestfs_h *g);\n"
29256 "\n"
29257 msgstr ""
29258
29259 #. type: textblock
29260 #: ../src/guestfs-actions.pod:4251
29261 msgid ""
29262 "This command runs other libguestfs commands, which might include "
29263 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29264 "soon after launch and only when nothing is mounted."
29265 msgstr ""
29266
29267 #. type: textblock
29268 #: ../src/guestfs-actions.pod:4255
29269 msgid ""
29270 "Not all of the filesystems returned will be mountable.  In particular, swap "
29271 "partitions are returned in the list.  Also this command does not check that "
29272 "each filesystem found is valid and mountable, and some filesystems might be "
29273 "mountable but require special options.  Filesystems may not all belong to a "
29274 "single logical operating system (use C<guestfs_inspect_os> to look for "
29275 "OSes)."
29276 msgstr ""
29277
29278 #. type: textblock
29279 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6173
29280 msgid "(Added in 1.5.15)"
29281 msgstr ""
29282
29283 #. type: =head2
29284 #: ../src/guestfs-actions.pod:4271
29285 msgid "guestfs_list_md_devices"
29286 msgstr ""
29287
29288 #. type: verbatim
29289 #: ../src/guestfs-actions.pod:4273
29290 #, no-wrap
29291 msgid ""
29292 " char **\n"
29293 " guestfs_list_md_devices (guestfs_h *g);\n"
29294 "\n"
29295 msgstr ""
29296
29297 #. type: =head2
29298 #: ../src/guestfs-actions.pod:4282
29299 msgid "guestfs_list_partitions"
29300 msgstr ""
29301
29302 #. type: verbatim
29303 #: ../src/guestfs-actions.pod:4284
29304 #, no-wrap
29305 msgid ""
29306 " char **\n"
29307 " guestfs_list_partitions (guestfs_h *g);\n"
29308 "\n"
29309 msgstr ""
29310
29311 #. type: textblock
29312 #: ../src/guestfs-actions.pod:4291
29313 msgid ""
29314 "This does not return logical volumes.  For that you will need to call "
29315 "C<guestfs_lvs>."
29316 msgstr ""
29317
29318 #. type: =head2
29319 #: ../src/guestfs-actions.pod:4302
29320 msgid "guestfs_ll"
29321 msgstr ""
29322
29323 #. type: verbatim
29324 #: ../src/guestfs-actions.pod:4304
29325 #, no-wrap
29326 msgid ""
29327 " char *\n"
29328 " guestfs_ll (guestfs_h *g,\n"
29329 "             const char *directory);\n"
29330 "\n"
29331 msgstr ""
29332
29333 #. type: =head2
29334 #: ../src/guestfs-actions.pod:4319
29335 msgid "guestfs_ln"
29336 msgstr ""
29337
29338 #. type: verbatim
29339 #: ../src/guestfs-actions.pod:4321
29340 #, no-wrap
29341 msgid ""
29342 " int\n"
29343 " guestfs_ln (guestfs_h *g,\n"
29344 "             const char *target,\n"
29345 "             const char *linkname);\n"
29346 "\n"
29347 msgstr ""
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:4332
29351 msgid "guestfs_ln_f"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:4334
29356 #, no-wrap
29357 msgid ""
29358 " int\n"
29359 " guestfs_ln_f (guestfs_h *g,\n"
29360 "               const char *target,\n"
29361 "               const char *linkname);\n"
29362 "\n"
29363 msgstr ""
29364
29365 #. type: =head2
29366 #: ../src/guestfs-actions.pod:4346
29367 msgid "guestfs_ln_s"
29368 msgstr ""
29369
29370 #. type: verbatim
29371 #: ../src/guestfs-actions.pod:4348
29372 #, no-wrap
29373 msgid ""
29374 " int\n"
29375 " guestfs_ln_s (guestfs_h *g,\n"
29376 "               const char *target,\n"
29377 "               const char *linkname);\n"
29378 "\n"
29379 msgstr ""
29380
29381 #. type: =head2
29382 #: ../src/guestfs-actions.pod:4359
29383 msgid "guestfs_ln_sf"
29384 msgstr ""
29385
29386 #. type: verbatim
29387 #: ../src/guestfs-actions.pod:4361
29388 #, no-wrap
29389 msgid ""
29390 " int\n"
29391 " guestfs_ln_sf (guestfs_h *g,\n"
29392 "                const char *target,\n"
29393 "                const char *linkname);\n"
29394 "\n"
29395 msgstr ""
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:4373
29399 msgid "guestfs_lremovexattr"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:4375
29404 #, no-wrap
29405 msgid ""
29406 " int\n"
29407 " guestfs_lremovexattr (guestfs_h *g,\n"
29408 "                       const char *xattr,\n"
29409 "                       const char *path);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../src/guestfs-actions.pod:4380
29415 msgid ""
29416 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29417 "link, then it removes an extended attribute of the link itself."
29418 msgstr ""
29419
29420 #. type: =head2
29421 #: ../src/guestfs-actions.pod:4388
29422 msgid "guestfs_ls"
29423 msgstr ""
29424
29425 #. type: verbatim
29426 #: ../src/guestfs-actions.pod:4390
29427 #, no-wrap
29428 msgid ""
29429 " char **\n"
29430 " guestfs_ls (guestfs_h *g,\n"
29431 "             const char *directory);\n"
29432 "\n"
29433 msgstr ""
29434
29435 #. type: textblock
29436 #: ../src/guestfs-actions.pod:4398
29437 msgid ""
29438 "This command is mostly useful for interactive sessions.  Programs should "
29439 "probably use C<guestfs_readdir> instead."
29440 msgstr ""
29441
29442 #. type: =head2
29443 #: ../src/guestfs-actions.pod:4407
29444 msgid "guestfs_lsetxattr"
29445 msgstr ""
29446
29447 #. type: verbatim
29448 #: ../src/guestfs-actions.pod:4409
29449 #, no-wrap
29450 msgid ""
29451 " int\n"
29452 " guestfs_lsetxattr (guestfs_h *g,\n"
29453 "                    const char *xattr,\n"
29454 "                    const char *val,\n"
29455 "                    int vallen,\n"
29456 "                    const char *path);\n"
29457 "\n"
29458 msgstr ""
29459
29460 #. type: textblock
29461 #: ../src/guestfs-actions.pod:4416
29462 msgid ""
29463 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29464 "then it sets an extended attribute of the link itself."
29465 msgstr ""
29466
29467 #. type: =head2
29468 #: ../src/guestfs-actions.pod:4424
29469 msgid "guestfs_lstat"
29470 msgstr ""
29471
29472 #. type: verbatim
29473 #: ../src/guestfs-actions.pod:4426
29474 #, no-wrap
29475 msgid ""
29476 " struct guestfs_stat *\n"
29477 " guestfs_lstat (guestfs_h *g,\n"
29478 "                const char *path);\n"
29479 "\n"
29480 msgstr ""
29481
29482 #. type: textblock
29483 #: ../src/guestfs-actions.pod:4432
29484 msgid ""
29485 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29486 "link, then the link is stat-ed, not the file it refers to."
29487 msgstr ""
29488
29489 #. type: textblock
29490 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:7353
29491 msgid ""
29492 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29493 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29494 msgstr ""
29495
29496 #. type: textblock
29497 #: ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:7357 ../src/guestfs-actions.pod:7375 ../src/guestfs-actions.pod:7876
29498 msgid "(Added in 0.9.2)"
29499 msgstr ""
29500
29501 #. type: =head2
29502 #: ../src/guestfs-actions.pod:4444
29503 msgid "guestfs_lstatlist"
29504 msgstr ""
29505
29506 #. type: verbatim
29507 #: ../src/guestfs-actions.pod:4446
29508 #, no-wrap
29509 msgid ""
29510 " struct guestfs_stat_list *\n"
29511 " guestfs_lstatlist (guestfs_h *g,\n"
29512 "                    const char *path,\n"
29513 "                    char *const *names);\n"
29514 "\n"
29515 msgstr ""
29516
29517 #. type: textblock
29518 #: ../src/guestfs-actions.pod:4451
29519 msgid ""
29520 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29521 "files, where all files are in the directory C<path>.  C<names> is the list "
29522 "of files from this directory."
29523 msgstr ""
29524
29525 #. type: textblock
29526 #: ../src/guestfs-actions.pod:4460
29527 msgid ""
29528 "This call is intended for programs that want to efficiently list a directory "
29529 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29530 "for a similarly efficient call for getting extended attributes.  Very long "
29531 "directory listings might cause the protocol message size to be exceeded, "
29532 "causing this call to fail.  The caller must split up such requests into "
29533 "smaller groups of names."
29534 msgstr ""
29535
29536 #. type: textblock
29537 #: ../src/guestfs-actions.pod:4468
29538 msgid ""
29539 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29540 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29541 msgstr ""
29542
29543 #. type: =head2
29544 #: ../src/guestfs-actions.pod:4474
29545 msgid "guestfs_luks_add_key"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../src/guestfs-actions.pod:4476
29550 #, no-wrap
29551 msgid ""
29552 " int\n"
29553 " guestfs_luks_add_key (guestfs_h *g,\n"
29554 "                       const char *device,\n"
29555 "                       const char *key,\n"
29556 "                       const char *newkey,\n"
29557 "                       int keyslot);\n"
29558 "\n"
29559 msgstr ""
29560
29561 #. type: textblock
29562 #: ../src/guestfs-actions.pod:4488
29563 msgid ""
29564 "Note that if C<keyslot> already contains a key, then this command will "
29565 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29566 msgstr ""
29567
29568 #. type: textblock
29569 #: ../src/guestfs-actions.pod:4494 ../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
29570 msgid ""
29571 "This function takes a key or passphrase parameter which could contain "
29572 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29573 "information."
29574 msgstr ""
29575
29576 #. type: textblock
29577 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
29578 msgid "(Added in 1.5.2)"
29579 msgstr ""
29580
29581 #. type: =head2
29582 #: ../src/guestfs-actions.pod:4500
29583 msgid "guestfs_luks_close"
29584 msgstr ""
29585
29586 #. type: verbatim
29587 #: ../src/guestfs-actions.pod:4502
29588 #, no-wrap
29589 msgid ""
29590 " int\n"
29591 " guestfs_luks_close (guestfs_h *g,\n"
29592 "                     const char *device);\n"
29593 "\n"
29594 msgstr ""
29595
29596 #. type: textblock
29597 #: ../src/guestfs-actions.pod:4506
29598 msgid ""
29599 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29600 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29601 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29602 "underlying block device."
29603 msgstr ""
29604
29605 #. type: textblock
29606 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4679 ../src/guestfs-actions.pod:4724
29607 msgid "(Added in 1.5.1)"
29608 msgstr ""
29609
29610 #. type: =head2
29611 #: ../src/guestfs-actions.pod:4516
29612 msgid "guestfs_luks_format"
29613 msgstr ""
29614
29615 #. type: verbatim
29616 #: ../src/guestfs-actions.pod:4518
29617 #, no-wrap
29618 msgid ""
29619 " int\n"
29620 " guestfs_luks_format (guestfs_h *g,\n"
29621 "                      const char *device,\n"
29622 "                      const char *key,\n"
29623 "                      int keyslot);\n"
29624 "\n"
29625 msgstr ""
29626
29627 #. type: =head2
29628 #: ../src/guestfs-actions.pod:4537
29629 msgid "guestfs_luks_format_cipher"
29630 msgstr ""
29631
29632 #. type: verbatim
29633 #: ../src/guestfs-actions.pod:4539
29634 #, no-wrap
29635 msgid ""
29636 " int\n"
29637 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29638 "                             const char *device,\n"
29639 "                             const char *key,\n"
29640 "                             int keyslot,\n"
29641 "                             const char *cipher);\n"
29642 "\n"
29643 msgstr ""
29644
29645 #. type: textblock
29646 #: ../src/guestfs-actions.pod:4546
29647 msgid ""
29648 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29649 "set the C<cipher> used."
29650 msgstr ""
29651
29652 #. type: =head2
29653 #: ../src/guestfs-actions.pod:4557
29654 msgid "guestfs_luks_kill_slot"
29655 msgstr ""
29656
29657 #. type: verbatim
29658 #: ../src/guestfs-actions.pod:4559
29659 #, no-wrap
29660 msgid ""
29661 " int\n"
29662 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29663 "                         const char *device,\n"
29664 "                         const char *key,\n"
29665 "                         int keyslot);\n"
29666 "\n"
29667 msgstr ""
29668
29669 #. type: =head2
29670 #: ../src/guestfs-actions.pod:4577
29671 msgid "guestfs_luks_open"
29672 msgstr ""
29673
29674 #. type: verbatim
29675 #: ../src/guestfs-actions.pod:4579
29676 #, no-wrap
29677 msgid ""
29678 " int\n"
29679 " guestfs_luks_open (guestfs_h *g,\n"
29680 "                    const char *device,\n"
29681 "                    const char *key,\n"
29682 "                    const char *mapname);\n"
29683 "\n"
29684 msgstr ""
29685
29686 #. type: textblock
29687 #: ../src/guestfs-actions.pod:4597
29688 msgid ""
29689 "If this block device contains LVM volume groups, then calling "
29690 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29691 "visible."
29692 msgstr ""
29693
29694 #. type: textblock
29695 #: ../src/guestfs-actions.pod:4601
29696 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29697 msgstr ""
29698
29699 #. type: =head2
29700 #: ../src/guestfs-actions.pod:4612
29701 msgid "guestfs_luks_open_ro"
29702 msgstr ""
29703
29704 #. type: verbatim
29705 #: ../src/guestfs-actions.pod:4614
29706 #, no-wrap
29707 msgid ""
29708 " int\n"
29709 " guestfs_luks_open_ro (guestfs_h *g,\n"
29710 "                       const char *device,\n"
29711 "                       const char *key,\n"
29712 "                       const char *mapname);\n"
29713 "\n"
29714 msgstr ""
29715
29716 #. type: textblock
29717 #: ../src/guestfs-actions.pod:4620
29718 msgid ""
29719 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29720 "created."
29721 msgstr ""
29722
29723 #. type: =head2
29724 #: ../src/guestfs-actions.pod:4631
29725 msgid "guestfs_lvcreate"
29726 msgstr ""
29727
29728 #. type: verbatim
29729 #: ../src/guestfs-actions.pod:4633
29730 #, no-wrap
29731 msgid ""
29732 " int\n"
29733 " guestfs_lvcreate (guestfs_h *g,\n"
29734 "                   const char *logvol,\n"
29735 "                   const char *volgroup,\n"
29736 "                   int mbytes);\n"
29737 "\n"
29738 msgstr ""
29739
29740 #. type: =head2
29741 #: ../src/guestfs-actions.pod:4646
29742 msgid "guestfs_lvm_canonical_lv_name"
29743 msgstr ""
29744
29745 #. type: verbatim
29746 #: ../src/guestfs-actions.pod:4648
29747 #, no-wrap
29748 msgid ""
29749 " char *\n"
29750 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29751 "                                const char *lvname);\n"
29752 "\n"
29753 msgstr ""
29754
29755 #. type: textblock
29756 #: ../src/guestfs-actions.pod:4659
29757 msgid "See also C<guestfs_is_lv>."
29758 msgstr ""
29759
29760 #. type: textblock
29761 #: ../src/guestfs-actions.pod:4664
29762 msgid "(Added in 1.5.24)"
29763 msgstr ""
29764
29765 #. type: =head2
29766 #: ../src/guestfs-actions.pod:4666
29767 msgid "guestfs_lvm_clear_filter"
29768 msgstr ""
29769
29770 #. type: verbatim
29771 #: ../src/guestfs-actions.pod:4668
29772 #, no-wrap
29773 msgid ""
29774 " int\n"
29775 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29776 "\n"
29777 msgstr ""
29778
29779 #. type: textblock
29780 #: ../src/guestfs-actions.pod:4671
29781 msgid ""
29782 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29783 "see every block device."
29784 msgstr ""
29785
29786 #. type: =head2
29787 #: ../src/guestfs-actions.pod:4681
29788 msgid "guestfs_lvm_remove_all"
29789 msgstr ""
29790
29791 #. type: verbatim
29792 #: ../src/guestfs-actions.pod:4683
29793 #, no-wrap
29794 msgid ""
29795 " int\n"
29796 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29797 "\n"
29798 msgstr ""
29799
29800 #. type: =head2
29801 #: ../src/guestfs-actions.pod:4693
29802 msgid "guestfs_lvm_set_filter"
29803 msgstr ""
29804
29805 #. type: verbatim
29806 #: ../src/guestfs-actions.pod:4695
29807 #, no-wrap
29808 msgid ""
29809 " int\n"
29810 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29811 "                         char *const *devices);\n"
29812 "\n"
29813 msgstr ""
29814
29815 #. type: =head2
29816 #: ../src/guestfs-actions.pod:4726
29817 msgid "guestfs_lvremove"
29818 msgstr ""
29819
29820 #. type: verbatim
29821 #: ../src/guestfs-actions.pod:4728
29822 #, no-wrap
29823 msgid ""
29824 " int\n"
29825 " guestfs_lvremove (guestfs_h *g,\n"
29826 "                   const char *device);\n"
29827 "\n"
29828 msgstr ""
29829
29830 #. type: textblock
29831 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:8246
29832 msgid "(Added in 1.0.13)"
29833 msgstr ""
29834
29835 #. type: =head2
29836 #: ../src/guestfs-actions.pod:4742
29837 msgid "guestfs_lvrename"
29838 msgstr ""
29839
29840 #. type: verbatim
29841 #: ../src/guestfs-actions.pod:4744
29842 #, no-wrap
29843 msgid ""
29844 " int\n"
29845 " guestfs_lvrename (guestfs_h *g,\n"
29846 "                   const char *logvol,\n"
29847 "                   const char *newlogvol);\n"
29848 "\n"
29849 msgstr ""
29850
29851 #. type: textblock
29852 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:8259
29853 msgid "(Added in 1.0.83)"
29854 msgstr ""
29855
29856 #. type: =head2
29857 #: ../src/guestfs-actions.pod:4755
29858 msgid "guestfs_lvresize"
29859 msgstr ""
29860
29861 #. type: verbatim
29862 #: ../src/guestfs-actions.pod:4757
29863 #, no-wrap
29864 msgid ""
29865 " int\n"
29866 " guestfs_lvresize (guestfs_h *g,\n"
29867 "                   const char *device,\n"
29868 "                   int mbytes);\n"
29869 "\n"
29870 msgstr ""
29871
29872 #. type: =head2
29873 #: ../src/guestfs-actions.pod:4770
29874 msgid "guestfs_lvresize_free"
29875 msgstr ""
29876
29877 #. type: verbatim
29878 #: ../src/guestfs-actions.pod:4772
29879 #, no-wrap
29880 msgid ""
29881 " int\n"
29882 " guestfs_lvresize_free (guestfs_h *g,\n"
29883 "                        const char *lv,\n"
29884 "                        int percent);\n"
29885 "\n"
29886 msgstr ""
29887
29888 #. type: textblock
29889 #: ../src/guestfs-actions.pod:4785
29890 msgid "(Added in 1.3.3)"
29891 msgstr ""
29892
29893 #. type: =head2
29894 #: ../src/guestfs-actions.pod:4787
29895 msgid "guestfs_lvs"
29896 msgstr ""
29897
29898 #. type: verbatim
29899 #: ../src/guestfs-actions.pod:4789
29900 #, no-wrap
29901 msgid ""
29902 " char **\n"
29903 " guestfs_lvs (guestfs_h *g);\n"
29904 "\n"
29905 msgstr ""
29906
29907 #. type: textblock
29908 #: ../src/guestfs-actions.pod:4798
29909 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29910 msgstr ""
29911
29912 #. type: =head2
29913 #: ../src/guestfs-actions.pod:4806
29914 msgid "guestfs_lvs_full"
29915 msgstr ""
29916
29917 #. type: verbatim
29918 #: ../src/guestfs-actions.pod:4808
29919 #, no-wrap
29920 msgid ""
29921 " struct guestfs_lvm_lv_list *\n"
29922 " guestfs_lvs_full (guestfs_h *g);\n"
29923 "\n"
29924 msgstr ""
29925
29926 #. type: textblock
29927 #: ../src/guestfs-actions.pod:4814
29928 msgid ""
29929 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29930 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
29931 "use>."
29932 msgstr ""
29933
29934 #. type: =head2
29935 #: ../src/guestfs-actions.pod:4820
29936 msgid "guestfs_lvuuid"
29937 msgstr ""
29938
29939 #. type: verbatim
29940 #: ../src/guestfs-actions.pod:4822
29941 #, no-wrap
29942 msgid ""
29943 " char *\n"
29944 " guestfs_lvuuid (guestfs_h *g,\n"
29945 "                 const char *device);\n"
29946 "\n"
29947 msgstr ""
29948
29949 #. type: =head2
29950 #: ../src/guestfs-actions.pod:4833
29951 msgid "guestfs_lxattrlist"
29952 msgstr ""
29953
29954 #. type: verbatim
29955 #: ../src/guestfs-actions.pod:4835
29956 #, no-wrap
29957 msgid ""
29958 " struct guestfs_xattr_list *\n"
29959 " guestfs_lxattrlist (guestfs_h *g,\n"
29960 "                     const char *path,\n"
29961 "                     char *const *names);\n"
29962 "\n"
29963 msgstr ""
29964
29965 #. type: textblock
29966 #: ../src/guestfs-actions.pod:4854
29967 msgid ""
29968 "This call is intended for programs that want to efficiently list a directory "
29969 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29970 "a similarly efficient call for getting standard stats.  Very long directory "
29971 "listings might cause the protocol message size to be exceeded, causing this "
29972 "call to fail.  The caller must split up such requests into smaller groups of "
29973 "names."
29974 msgstr ""
29975
29976 #. type: =head2
29977 #: ../src/guestfs-actions.pod:4868
29978 msgid "guestfs_mdadm_create"
29979 msgstr ""
29980
29981 #. type: verbatim
29982 #: ../src/guestfs-actions.pod:4870
29983 #, no-wrap
29984 msgid ""
29985 " int\n"
29986 " guestfs_mdadm_create (guestfs_h *g,\n"
29987 "                       const char *name,\n"
29988 "                       char *const *devices,\n"
29989 "                       ...);\n"
29990 "\n"
29991 msgstr ""
29992
29993 #. type: verbatim
29994 #: ../src/guestfs-actions.pod:4881
29995 #, no-wrap
29996 msgid ""
29997 " GUESTFS_MDADM_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
29998 " GUESTFS_MDADM_CREATE_NRDEVICES, int nrdevices,\n"
29999 " GUESTFS_MDADM_CREATE_SPARE, int spare,\n"
30000 " GUESTFS_MDADM_CREATE_CHUNK, int64_t chunk,\n"
30001 " GUESTFS_MDADM_CREATE_LEVEL, const char *level,\n"
30002 "\n"
30003 msgstr ""
30004
30005 #. type: =head2
30006 #: ../src/guestfs-actions.pod:4943
30007 msgid "guestfs_mdadm_create_va"
30008 msgstr ""
30009
30010 #. type: verbatim
30011 #: ../src/guestfs-actions.pod:4945
30012 #, no-wrap
30013 msgid ""
30014 " int\n"
30015 " guestfs_mdadm_create_va (guestfs_h *g,\n"
30016 "                          const char *name,\n"
30017 "                          char *const *devices,\n"
30018 "                          va_list args);\n"
30019 "\n"
30020 msgstr ""
30021
30022 #. type: textblock
30023 #: ../src/guestfs-actions.pod:4951
30024 msgid "This is the \"va_list variant\" of L</guestfs_mdadm_create>."
30025 msgstr ""
30026
30027 #. type: =head2
30028 #: ../src/guestfs-actions.pod:4955
30029 msgid "guestfs_mdadm_create_argv"
30030 msgstr ""
30031
30032 #. type: verbatim
30033 #: ../src/guestfs-actions.pod:4957
30034 #, no-wrap
30035 msgid ""
30036 " int\n"
30037 " guestfs_mdadm_create_argv (guestfs_h *g,\n"
30038 "                            const char *name,\n"
30039 "                            char *const *devices,\n"
30040 "                            const struct guestfs_mdadm_create_argv "
30041 "*optargs);\n"
30042 "\n"
30043 msgstr ""
30044
30045 #. type: textblock
30046 #: ../src/guestfs-actions.pod:4963
30047 msgid "This is the \"argv variant\" of L</guestfs_mdadm_create>."
30048 msgstr ""
30049
30050 #. type: =head2
30051 #: ../src/guestfs-actions.pod:4967
30052 msgid "guestfs_mdadm_detail"
30053 msgstr ""
30054
30055 #. type: verbatim
30056 #: ../src/guestfs-actions.pod:4969
30057 #, no-wrap
30058 msgid ""
30059 " char **\n"
30060 " guestfs_mdadm_detail (guestfs_h *g,\n"
30061 "                       const char *md);\n"
30062 "\n"
30063 msgstr ""
30064
30065 #. type: =head2
30066 #: ../src/guestfs-actions.pod:5006
30067 msgid "guestfs_mkdir"
30068 msgstr ""
30069
30070 #. type: verbatim
30071 #: ../src/guestfs-actions.pod:5008
30072 #, no-wrap
30073 msgid ""
30074 " int\n"
30075 " guestfs_mkdir (guestfs_h *g,\n"
30076 "                const char *path);\n"
30077 "\n"
30078 msgstr ""
30079
30080 #. type: =head2
30081 #: ../src/guestfs-actions.pod:5018
30082 msgid "guestfs_mkdir_mode"
30083 msgstr ""
30084
30085 #. type: verbatim
30086 #: ../src/guestfs-actions.pod:5020
30087 #, no-wrap
30088 msgid ""
30089 " int\n"
30090 " guestfs_mkdir_mode (guestfs_h *g,\n"
30091 "                     const char *path,\n"
30092 "                     int mode);\n"
30093 "\n"
30094 msgstr ""
30095
30096 #. type: textblock
30097 #: ../src/guestfs-actions.pod:5032
30098 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30099 msgstr ""
30100
30101 #. type: =head2
30102 #: ../src/guestfs-actions.pod:5038
30103 msgid "guestfs_mkdir_p"
30104 msgstr ""
30105
30106 #. type: verbatim
30107 #: ../src/guestfs-actions.pod:5040
30108 #, no-wrap
30109 msgid ""
30110 " int\n"
30111 " guestfs_mkdir_p (guestfs_h *g,\n"
30112 "                  const char *path);\n"
30113 "\n"
30114 msgstr ""
30115
30116 #. type: =head2
30117 #: ../src/guestfs-actions.pod:5051
30118 msgid "guestfs_mkdtemp"
30119 msgstr ""
30120
30121 #. type: verbatim
30122 #: ../src/guestfs-actions.pod:5053
30123 #, no-wrap
30124 msgid ""
30125 " char *\n"
30126 " guestfs_mkdtemp (guestfs_h *g,\n"
30127 "                  const char *template);\n"
30128 "\n"
30129 msgstr ""
30130
30131 #. type: =head2
30132 #: ../src/guestfs-actions.pod:5081
30133 msgid "guestfs_mke2fs_J"
30134 msgstr ""
30135
30136 #. type: verbatim
30137 #: ../src/guestfs-actions.pod:5083
30138 #, no-wrap
30139 msgid ""
30140 " int\n"
30141 " guestfs_mke2fs_J (guestfs_h *g,\n"
30142 "                   const char *fstype,\n"
30143 "                   int blocksize,\n"
30144 "                   const char *device,\n"
30145 "                   const char *journal);\n"
30146 "\n"
30147 msgstr ""
30148
30149 #. type: textblock
30150 #: ../src/guestfs-actions.pod:5096
30151 msgid "See also C<guestfs_mke2journal>."
30152 msgstr ""
30153
30154 #. type: textblock
30155 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5239 ../src/guestfs-actions.pod:5516
30156 msgid "(Added in 1.0.68)"
30157 msgstr ""
30158
30159 #. type: =head2
30160 #: ../src/guestfs-actions.pod:5102
30161 msgid "guestfs_mke2fs_JL"
30162 msgstr ""
30163
30164 #. type: verbatim
30165 #: ../src/guestfs-actions.pod:5104
30166 #, no-wrap
30167 msgid ""
30168 " int\n"
30169 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30170 "                    const char *fstype,\n"
30171 "                    int blocksize,\n"
30172 "                    const char *device,\n"
30173 "                    const char *label);\n"
30174 "\n"
30175 msgstr ""
30176
30177 #. type: textblock
30178 #: ../src/guestfs-actions.pod:5114
30179 msgid "See also C<guestfs_mke2journal_L>."
30180 msgstr ""
30181
30182 #. type: =head2
30183 #: ../src/guestfs-actions.pod:5120
30184 msgid "guestfs_mke2fs_JU"
30185 msgstr ""
30186
30187 #. type: verbatim
30188 #: ../src/guestfs-actions.pod:5122
30189 #, no-wrap
30190 msgid ""
30191 " int\n"
30192 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30193 "                    const char *fstype,\n"
30194 "                    int blocksize,\n"
30195 "                    const char *device,\n"
30196 "                    const char *uuid);\n"
30197 "\n"
30198 msgstr ""
30199
30200 #. type: textblock
30201 #: ../src/guestfs-actions.pod:5132
30202 msgid "See also C<guestfs_mke2journal_U>."
30203 msgstr ""
30204
30205 #. type: =head2
30206 #: ../src/guestfs-actions.pod:5138
30207 msgid "guestfs_mke2journal"
30208 msgstr ""
30209
30210 #. type: verbatim
30211 #: ../src/guestfs-actions.pod:5140
30212 #, no-wrap
30213 msgid ""
30214 " int\n"
30215 " guestfs_mke2journal (guestfs_h *g,\n"
30216 "                      int blocksize,\n"
30217 "                      const char *device);\n"
30218 "\n"
30219 msgstr ""
30220
30221 #. type: =head2
30222 #: ../src/guestfs-actions.pod:5154
30223 msgid "guestfs_mke2journal_L"
30224 msgstr ""
30225
30226 #. type: verbatim
30227 #: ../src/guestfs-actions.pod:5156
30228 #, no-wrap
30229 msgid ""
30230 " int\n"
30231 " guestfs_mke2journal_L (guestfs_h *g,\n"
30232 "                        int blocksize,\n"
30233 "                        const char *label,\n"
30234 "                        const char *device);\n"
30235 "\n"
30236 msgstr ""
30237
30238 #. type: =head2
30239 #: ../src/guestfs-actions.pod:5168
30240 msgid "guestfs_mke2journal_U"
30241 msgstr ""
30242
30243 #. type: verbatim
30244 #: ../src/guestfs-actions.pod:5170
30245 #, no-wrap
30246 msgid ""
30247 " int\n"
30248 " guestfs_mke2journal_U (guestfs_h *g,\n"
30249 "                        int blocksize,\n"
30250 "                        const char *uuid,\n"
30251 "                        const char *device);\n"
30252 "\n"
30253 msgstr ""
30254
30255 #. type: =head2
30256 #: ../src/guestfs-actions.pod:5182
30257 msgid "guestfs_mkfifo"
30258 msgstr ""
30259
30260 #. type: verbatim
30261 #: ../src/guestfs-actions.pod:5184
30262 #, no-wrap
30263 msgid ""
30264 " int\n"
30265 " guestfs_mkfifo (guestfs_h *g,\n"
30266 "                 int mode,\n"
30267 "                 const char *path);\n"
30268 "\n"
30269 msgstr ""
30270
30271 #. type: textblock
30272 #: ../src/guestfs-actions.pod:5189
30273 msgid ""
30274 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30275 "is just a convenient wrapper around C<guestfs_mknod>."
30276 msgstr ""
30277
30278 #. type: =head2
30279 #: ../src/guestfs-actions.pod:5199
30280 msgid "guestfs_mkfs"
30281 msgstr ""
30282
30283 #. type: verbatim
30284 #: ../src/guestfs-actions.pod:5201
30285 #, no-wrap
30286 msgid ""
30287 " int\n"
30288 " guestfs_mkfs (guestfs_h *g,\n"
30289 "               const char *fstype,\n"
30290 "               const char *device);\n"
30291 "\n"
30292 msgstr ""
30293
30294 #. type: =head2
30295 #: ../src/guestfs-actions.pod:5214
30296 msgid "guestfs_mkfs_b"
30297 msgstr ""
30298
30299 #. type: verbatim
30300 #: ../src/guestfs-actions.pod:5216
30301 #, no-wrap
30302 msgid ""
30303 " int\n"
30304 " guestfs_mkfs_b (guestfs_h *g,\n"
30305 "                 const char *fstype,\n"
30306 "                 int blocksize,\n"
30307 "                 const char *device);\n"
30308 "\n"
30309 msgstr ""
30310
30311 #. type: textblock
30312 #: ../src/guestfs-actions.pod:5222
30313 msgid ""
30314 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30315 "call instead."
30316 msgstr ""
30317
30318 #. type: textblock
30319 #: ../src/guestfs-actions.pod:5229
30320 msgid ""
30321 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30322 "block size of the resulting filesystem.  Supported block sizes depend on the "
30323 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30324 msgstr ""
30325
30326 #. type: =head2
30327 #: ../src/guestfs-actions.pod:5241
30328 msgid "guestfs_mkfs_opts"
30329 msgstr ""
30330
30331 #. type: verbatim
30332 #: ../src/guestfs-actions.pod:5243
30333 #, no-wrap
30334 msgid ""
30335 " int\n"
30336 " guestfs_mkfs_opts (guestfs_h *g,\n"
30337 "                    const char *fstype,\n"
30338 "                    const char *device,\n"
30339 "                    ...);\n"
30340 "\n"
30341 msgstr ""
30342
30343 #. type: verbatim
30344 #: ../src/guestfs-actions.pod:5254
30345 #, no-wrap
30346 msgid ""
30347 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30348 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30349 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30350 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30351 "\n"
30352 msgstr ""
30353
30354 #. type: textblock
30355 #: ../src/guestfs-actions.pod:5302
30356 msgid "(Added in 1.7.19)"
30357 msgstr ""
30358
30359 #. type: =head2
30360 #: ../src/guestfs-actions.pod:5304
30361 msgid "guestfs_mkfs_opts_va"
30362 msgstr ""
30363
30364 #. type: verbatim
30365 #: ../src/guestfs-actions.pod:5306
30366 #, no-wrap
30367 msgid ""
30368 " int\n"
30369 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30370 "                       const char *fstype,\n"
30371 "                       const char *device,\n"
30372 "                       va_list args);\n"
30373 "\n"
30374 msgstr ""
30375
30376 #. type: textblock
30377 #: ../src/guestfs-actions.pod:5312
30378 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30379 msgstr ""
30380
30381 #. type: =head2
30382 #: ../src/guestfs-actions.pod:5316
30383 msgid "guestfs_mkfs_opts_argv"
30384 msgstr ""
30385
30386 #. type: verbatim
30387 #: ../src/guestfs-actions.pod:5318
30388 #, no-wrap
30389 msgid ""
30390 " int\n"
30391 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30392 "                         const char *fstype,\n"
30393 "                         const char *device,\n"
30394 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30395 "\n"
30396 msgstr ""
30397
30398 #. type: textblock
30399 #: ../src/guestfs-actions.pod:5324
30400 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30401 msgstr ""
30402
30403 #. type: =head2
30404 #: ../src/guestfs-actions.pod:5328
30405 msgid "guestfs_mkmountpoint"
30406 msgstr ""
30407
30408 #. type: verbatim
30409 #: ../src/guestfs-actions.pod:5330
30410 #, no-wrap
30411 msgid ""
30412 " int\n"
30413 " guestfs_mkmountpoint (guestfs_h *g,\n"
30414 "                       const char *exemptpath);\n"
30415 "\n"
30416 msgstr ""
30417
30418 #. type: textblock
30419 #: ../src/guestfs-actions.pod:5334
30420 msgid ""
30421 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30422 "that can be used to create extra mountpoints before mounting the first "
30423 "filesystem."
30424 msgstr ""
30425
30426 #. type: textblock
30427 #: ../src/guestfs-actions.pod:5358
30428 msgid ""
30429 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30430 "may get unexpected errors if you try to mix these calls.  It is safest to "
30431 "manually unmount filesystems and remove mountpoints after use."
30432 msgstr ""
30433
30434 #. type: textblock
30435 #: ../src/guestfs-actions.pod:5362
30436 msgid ""
30437 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30438 "first, so for this to work for manual mountpoints, you must ensure that the "
30439 "innermost mountpoints have the longest pathnames, as in the example code "
30440 "above."
30441 msgstr ""
30442
30443 #. type: textblock
30444 #: ../src/guestfs-actions.pod:5369
30445 msgid ""
30446 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30447 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30448 "can also trigger these issues."
30449 msgstr ""
30450
30451 #. type: textblock
30452 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5681 ../src/guestfs-actions.pod:6708
30453 msgid "(Added in 1.0.62)"
30454 msgstr ""
30455
30456 #. type: =head2
30457 #: ../src/guestfs-actions.pod:5377
30458 msgid "guestfs_mknod"
30459 msgstr ""
30460
30461 #. type: verbatim
30462 #: ../src/guestfs-actions.pod:5379
30463 #, no-wrap
30464 msgid ""
30465 " int\n"
30466 " guestfs_mknod (guestfs_h *g,\n"
30467 "                int mode,\n"
30468 "                int devmajor,\n"
30469 "                int devminor,\n"
30470 "                const char *path);\n"
30471 "\n"
30472 msgstr ""
30473
30474 #. type: textblock
30475 #: ../src/guestfs-actions.pod:5394
30476 msgid ""
30477 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30478 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30479 "regular file).  These constants are available in the standard Linux header "
30480 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30481 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30482 "the appropriate constant for you."
30483 msgstr ""
30484
30485 #. type: =head2
30486 #: ../src/guestfs-actions.pod:5408
30487 msgid "guestfs_mknod_b"
30488 msgstr ""
30489
30490 #. type: verbatim
30491 #: ../src/guestfs-actions.pod:5410
30492 #, no-wrap
30493 msgid ""
30494 " int\n"
30495 " guestfs_mknod_b (guestfs_h *g,\n"
30496 "                  int mode,\n"
30497 "                  int devmajor,\n"
30498 "                  int devminor,\n"
30499 "                  const char *path);\n"
30500 "\n"
30501 msgstr ""
30502
30503 #. type: textblock
30504 #: ../src/guestfs-actions.pod:5417
30505 msgid ""
30506 "This call creates a block device node called C<path> with mode C<mode> and "
30507 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30508 "wrapper around C<guestfs_mknod>."
30509 msgstr ""
30510
30511 #. type: =head2
30512 #: ../src/guestfs-actions.pod:5427
30513 msgid "guestfs_mknod_c"
30514 msgstr ""
30515
30516 #. type: verbatim
30517 #: ../src/guestfs-actions.pod:5429
30518 #, no-wrap
30519 msgid ""
30520 " int\n"
30521 " guestfs_mknod_c (guestfs_h *g,\n"
30522 "                  int mode,\n"
30523 "                  int devmajor,\n"
30524 "                  int devminor,\n"
30525 "                  const char *path);\n"
30526 "\n"
30527 msgstr ""
30528
30529 #. type: textblock
30530 #: ../src/guestfs-actions.pod:5436
30531 msgid ""
30532 "This call creates a char device node called C<path> with mode C<mode> and "
30533 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30534 "wrapper around C<guestfs_mknod>."
30535 msgstr ""
30536
30537 #. type: =head2
30538 #: ../src/guestfs-actions.pod:5446
30539 msgid "guestfs_mkswap"
30540 msgstr ""
30541
30542 #. type: verbatim
30543 #: ../src/guestfs-actions.pod:5448
30544 #, no-wrap
30545 msgid ""
30546 " int\n"
30547 " guestfs_mkswap (guestfs_h *g,\n"
30548 "                 const char *device);\n"
30549 "\n"
30550 msgstr ""
30551
30552 #. type: =head2
30553 #: ../src/guestfs-actions.pod:5458
30554 msgid "guestfs_mkswap_L"
30555 msgstr ""
30556
30557 #. type: verbatim
30558 #: ../src/guestfs-actions.pod:5460
30559 #, no-wrap
30560 msgid ""
30561 " int\n"
30562 " guestfs_mkswap_L (guestfs_h *g,\n"
30563 "                   const char *label,\n"
30564 "                   const char *device);\n"
30565 "\n"
30566 msgstr ""
30567
30568 #. type: =head2
30569 #: ../src/guestfs-actions.pod:5475
30570 msgid "guestfs_mkswap_U"
30571 msgstr ""
30572
30573 #. type: verbatim
30574 #: ../src/guestfs-actions.pod:5477
30575 #, no-wrap
30576 msgid ""
30577 " int\n"
30578 " guestfs_mkswap_U (guestfs_h *g,\n"
30579 "                   const char *uuid,\n"
30580 "                   const char *device);\n"
30581 "\n"
30582 msgstr ""
30583
30584 #. type: =head2
30585 #: ../src/guestfs-actions.pod:5488
30586 msgid "guestfs_mkswap_file"
30587 msgstr ""
30588
30589 #. type: verbatim
30590 #: ../src/guestfs-actions.pod:5490
30591 #, no-wrap
30592 msgid ""
30593 " int\n"
30594 " guestfs_mkswap_file (guestfs_h *g,\n"
30595 "                      const char *path);\n"
30596 "\n"
30597 msgstr ""
30598
30599 #. type: textblock
30600 #: ../src/guestfs-actions.pod:5496
30601 msgid ""
30602 "This command just writes a swap file signature to an existing file.  To "
30603 "create the file itself, use something like C<guestfs_fallocate>."
30604 msgstr ""
30605
30606 #. type: =head2
30607 #: ../src/guestfs-actions.pod:5503
30608 msgid "guestfs_modprobe"
30609 msgstr ""
30610
30611 #. type: verbatim
30612 #: ../src/guestfs-actions.pod:5505
30613 #, no-wrap
30614 msgid ""
30615 " int\n"
30616 " guestfs_modprobe (guestfs_h *g,\n"
30617 "                   const char *modulename);\n"
30618 "\n"
30619 msgstr ""
30620
30621 #. type: =head2
30622 #: ../src/guestfs-actions.pod:5518
30623 msgid "guestfs_mount"
30624 msgstr ""
30625
30626 #. type: verbatim
30627 #: ../src/guestfs-actions.pod:5520
30628 #, no-wrap
30629 msgid ""
30630 " int\n"
30631 " guestfs_mount (guestfs_h *g,\n"
30632 "                const char *device,\n"
30633 "                const char *mountpoint);\n"
30634 "\n"
30635 msgstr ""
30636
30637 #. type: textblock
30638 #: ../src/guestfs-actions.pod:5539
30639 msgid ""
30640 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30641 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30642 "problems for users.  If your program might need to work with older versions "
30643 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30644 "for the first parameter if you don't want any options)."
30645 msgstr ""
30646
30647 #. type: =head2
30648 #: ../src/guestfs-actions.pod:5550
30649 msgid "guestfs_mount_9p"
30650 msgstr ""
30651
30652 #. type: verbatim
30653 #: ../src/guestfs-actions.pod:5552
30654 #, no-wrap
30655 msgid ""
30656 " int\n"
30657 " guestfs_mount_9p (guestfs_h *g,\n"
30658 "                   const char *mounttag,\n"
30659 "                   const char *mountpoint,\n"
30660 "                   ...);\n"
30661 "\n"
30662 msgstr ""
30663
30664 #. type: verbatim
30665 #: ../src/guestfs-actions.pod:5563
30666 #, no-wrap
30667 msgid ""
30668 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30669 "\n"
30670 msgstr ""
30671
30672 #. type: =head2
30673 #: ../src/guestfs-actions.pod:5576
30674 msgid "guestfs_mount_9p_va"
30675 msgstr ""
30676
30677 #. type: verbatim
30678 #: ../src/guestfs-actions.pod:5578
30679 #, no-wrap
30680 msgid ""
30681 " int\n"
30682 " guestfs_mount_9p_va (guestfs_h *g,\n"
30683 "                      const char *mounttag,\n"
30684 "                      const char *mountpoint,\n"
30685 "                      va_list args);\n"
30686 "\n"
30687 msgstr ""
30688
30689 #. type: textblock
30690 #: ../src/guestfs-actions.pod:5584
30691 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30692 msgstr ""
30693
30694 #. type: =head2
30695 #: ../src/guestfs-actions.pod:5588
30696 msgid "guestfs_mount_9p_argv"
30697 msgstr ""
30698
30699 #. type: verbatim
30700 #: ../src/guestfs-actions.pod:5590
30701 #, no-wrap
30702 msgid ""
30703 " int\n"
30704 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30705 "                        const char *mounttag,\n"
30706 "                        const char *mountpoint,\n"
30707 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30708 "\n"
30709 msgstr ""
30710
30711 #. type: textblock
30712 #: ../src/guestfs-actions.pod:5596
30713 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30714 msgstr ""
30715
30716 #. type: =head2
30717 #: ../src/guestfs-actions.pod:5600
30718 msgid "guestfs_mount_loop"
30719 msgstr ""
30720
30721 #. type: verbatim
30722 #: ../src/guestfs-actions.pod:5602
30723 #, no-wrap
30724 msgid ""
30725 " int\n"
30726 " guestfs_mount_loop (guestfs_h *g,\n"
30727 "                     const char *file,\n"
30728 "                     const char *mountpoint);\n"
30729 "\n"
30730 msgstr ""
30731
30732 #. type: =head2
30733 #: ../src/guestfs-actions.pod:5615
30734 msgid "guestfs_mount_options"
30735 msgstr ""
30736
30737 #. type: verbatim
30738 #: ../src/guestfs-actions.pod:5617
30739 #, no-wrap
30740 msgid ""
30741 " int\n"
30742 " guestfs_mount_options (guestfs_h *g,\n"
30743 "                        const char *options,\n"
30744 "                        const char *device,\n"
30745 "                        const char *mountpoint);\n"
30746 "\n"
30747 msgstr ""
30748
30749 #. type: textblock
30750 #: ../src/guestfs-actions.pod:5623
30751 msgid ""
30752 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30753 "the mount options as for the L<mount(8)> I<-o> flag."
30754 msgstr ""
30755
30756 #. type: textblock
30757 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5664
30758 msgid "(Added in 1.0.10)"
30759 msgstr ""
30760
30761 #. type: =head2
30762 #: ../src/guestfs-actions.pod:5635
30763 msgid "guestfs_mount_ro"
30764 msgstr ""
30765
30766 #. type: verbatim
30767 #: ../src/guestfs-actions.pod:5637
30768 #, no-wrap
30769 msgid ""
30770 " int\n"
30771 " guestfs_mount_ro (guestfs_h *g,\n"
30772 "                   const char *device,\n"
30773 "                   const char *mountpoint);\n"
30774 "\n"
30775 msgstr ""
30776
30777 #. type: textblock
30778 #: ../src/guestfs-actions.pod:5642
30779 msgid ""
30780 "This is the same as the C<guestfs_mount> command, but it mounts the "
30781 "filesystem with the read-only (I<-o ro>) flag."
30782 msgstr ""
30783
30784 #. type: =head2
30785 #: ../src/guestfs-actions.pod:5649
30786 msgid "guestfs_mount_vfs"
30787 msgstr ""
30788
30789 #. type: verbatim
30790 #: ../src/guestfs-actions.pod:5651
30791 #, no-wrap
30792 msgid ""
30793 " int\n"
30794 " guestfs_mount_vfs (guestfs_h *g,\n"
30795 "                    const char *options,\n"
30796 "                    const char *vfstype,\n"
30797 "                    const char *device,\n"
30798 "                    const char *mountpoint);\n"
30799 "\n"
30800 msgstr ""
30801
30802 #. type: textblock
30803 #: ../src/guestfs-actions.pod:5658
30804 msgid ""
30805 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30806 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
30807 "I<-t> flags."
30808 msgstr ""
30809
30810 #. type: =head2
30811 #: ../src/guestfs-actions.pod:5666
30812 msgid "guestfs_mountpoints"
30813 msgstr ""
30814
30815 #. type: verbatim
30816 #: ../src/guestfs-actions.pod:5668
30817 #, no-wrap
30818 msgid ""
30819 " char **\n"
30820 " guestfs_mountpoints (guestfs_h *g);\n"
30821 "\n"
30822 msgstr ""
30823
30824 #. type: textblock
30825 #: ../src/guestfs-actions.pod:5671
30826 msgid ""
30827 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30828 "devices.  This one returns a hash table (map) of device name to directory "
30829 "where the device is mounted."
30830 msgstr ""
30831
30832 #. type: =head2
30833 #: ../src/guestfs-actions.pod:5683
30834 msgid "guestfs_mounts"
30835 msgstr ""
30836
30837 #. type: verbatim
30838 #: ../src/guestfs-actions.pod:5685
30839 #, no-wrap
30840 msgid ""
30841 " char **\n"
30842 " guestfs_mounts (guestfs_h *g);\n"
30843 "\n"
30844 msgstr ""
30845
30846 #. type: textblock
30847 #: ../src/guestfs-actions.pod:5693
30848 msgid "See also: C<guestfs_mountpoints>"
30849 msgstr ""
30850
30851 #. type: =head2
30852 #: ../src/guestfs-actions.pod:5701
30853 msgid "guestfs_mv"
30854 msgstr ""
30855
30856 #. type: verbatim
30857 #: ../src/guestfs-actions.pod:5703
30858 #, no-wrap
30859 msgid ""
30860 " int\n"
30861 " guestfs_mv (guestfs_h *g,\n"
30862 "             const char *src,\n"
30863 "             const char *dest);\n"
30864 "\n"
30865 msgstr ""
30866
30867 #. type: =head2
30868 #: ../src/guestfs-actions.pod:5715
30869 msgid "guestfs_ntfs_3g_probe"
30870 msgstr ""
30871
30872 #. type: verbatim
30873 #: ../src/guestfs-actions.pod:5717
30874 #, no-wrap
30875 msgid ""
30876 " int\n"
30877 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30878 "                        int rw,\n"
30879 "                        const char *device);\n"
30880 "\n"
30881 msgstr ""
30882
30883 #. type: textblock
30884 #: ../src/guestfs-actions.pod:5736
30885 msgid "(Added in 1.0.43)"
30886 msgstr ""
30887
30888 #. type: =head2
30889 #: ../src/guestfs-actions.pod:5738
30890 msgid "guestfs_ntfsresize"
30891 msgstr ""
30892
30893 #. type: verbatim
30894 #: ../src/guestfs-actions.pod:5740
30895 #, no-wrap
30896 msgid ""
30897 " int\n"
30898 " guestfs_ntfsresize (guestfs_h *g,\n"
30899 "                     const char *device);\n"
30900 "\n"
30901 msgstr ""
30902
30903 #. type: textblock
30904 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5844
30905 msgid ""
30906 "I<This function is deprecated.> In new code, use the "
30907 "L</guestfs_ntfsresize_opts> call instead."
30908 msgstr ""
30909
30910 #. type: =head2
30911 #: ../src/guestfs-actions.pod:5768
30912 msgid "guestfs_ntfsresize_opts"
30913 msgstr ""
30914
30915 #. type: verbatim
30916 #: ../src/guestfs-actions.pod:5770
30917 #, no-wrap
30918 msgid ""
30919 " int\n"
30920 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30921 "                          const char *device,\n"
30922 "                          ...);\n"
30923 "\n"
30924 msgstr ""
30925
30926 #. type: verbatim
30927 #: ../src/guestfs-actions.pod:5780
30928 #, no-wrap
30929 msgid ""
30930 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30931 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30932 "\n"
30933 msgstr ""
30934
30935 #. type: textblock
30936 #: ../src/guestfs-actions.pod:5800
30937 msgid ""
30938 "After the resize operation, the filesystem is always marked as requiring a "
30939 "consistency check (for safety).  You have to boot into Windows to perform "
30940 "this check and clear this condition.  If you I<don't> set the C<force> "
30941 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30942 "times on a single filesystem without booting into Windows between each "
30943 "resize."
30944 msgstr ""
30945
30946 #. type: =head2
30947 #: ../src/guestfs-actions.pod:5815
30948 msgid "guestfs_ntfsresize_opts_va"
30949 msgstr ""
30950
30951 #. type: verbatim
30952 #: ../src/guestfs-actions.pod:5817
30953 #, no-wrap
30954 msgid ""
30955 " int\n"
30956 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30957 "                             const char *device,\n"
30958 "                             va_list args);\n"
30959 "\n"
30960 msgstr ""
30961
30962 #. type: textblock
30963 #: ../src/guestfs-actions.pod:5822
30964 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30965 msgstr ""
30966
30967 #. type: =head2
30968 #: ../src/guestfs-actions.pod:5826
30969 msgid "guestfs_ntfsresize_opts_argv"
30970 msgstr ""
30971
30972 #. type: verbatim
30973 #: ../src/guestfs-actions.pod:5828
30974 #, no-wrap
30975 msgid ""
30976 " int\n"
30977 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30978 "                               const char *device,\n"
30979 "                               const struct guestfs_ntfsresize_opts_argv "
30980 "*optargs);\n"
30981 "\n"
30982 msgstr ""
30983
30984 #. type: textblock
30985 #: ../src/guestfs-actions.pod:5833
30986 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30987 msgstr ""
30988
30989 #. type: =head2
30990 #: ../src/guestfs-actions.pod:5837
30991 msgid "guestfs_ntfsresize_size"
30992 msgstr ""
30993
30994 #. type: verbatim
30995 #: ../src/guestfs-actions.pod:5839
30996 #, no-wrap
30997 msgid ""
30998 " int\n"
30999 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31000 "                          const char *device,\n"
31001 "                          int64_t size);\n"
31002 "\n"
31003 msgstr ""
31004
31005 #. type: textblock
31006 #: ../src/guestfs-actions.pod:5851
31007 msgid ""
31008 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31009 "to specify the new size (in bytes) explicitly."
31010 msgstr ""
31011
31012 #. type: textblock
31013 #: ../src/guestfs-actions.pod:5856 ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:6656 ../src/guestfs-actions.pod:8403
31014 msgid "(Added in 1.3.14)"
31015 msgstr ""
31016
31017 #. type: =head2
31018 #: ../src/guestfs-actions.pod:5858
31019 msgid "guestfs_part_add"
31020 msgstr ""
31021
31022 #. type: verbatim
31023 #: ../src/guestfs-actions.pod:5860
31024 #, no-wrap
31025 msgid ""
31026 " int\n"
31027 " guestfs_part_add (guestfs_h *g,\n"
31028 "                   const char *device,\n"
31029 "                   const char *prlogex,\n"
31030 "                   int64_t startsect,\n"
31031 "                   int64_t endsect);\n"
31032 "\n"
31033 msgstr ""
31034
31035 #. type: textblock
31036 #: ../src/guestfs-actions.pod:5867
31037 msgid ""
31038 "This command adds a partition to C<device>.  If there is no partition table "
31039 "on the device, call C<guestfs_part_init> first."
31040 msgstr ""
31041
31042 #. type: textblock
31043 #: ../src/guestfs-actions.pod:5879
31044 msgid ""
31045 "Creating a partition which covers the whole disk is not so easy.  Use "
31046 "C<guestfs_part_disk> to do that."
31047 msgstr ""
31048
31049 #. type: textblock
31050 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:5919 ../src/guestfs-actions.pod:5972 ../src/guestfs-actions.pod:6056 ../src/guestfs-actions.pod:6094 ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6153
31051 msgid "(Added in 1.0.78)"
31052 msgstr ""
31053
31054 #. type: =head2
31055 #: ../src/guestfs-actions.pod:5886
31056 msgid "guestfs_part_del"
31057 msgstr ""
31058
31059 #. type: verbatim
31060 #: ../src/guestfs-actions.pod:5888
31061 #, no-wrap
31062 msgid ""
31063 " int\n"
31064 " guestfs_part_del (guestfs_h *g,\n"
31065 "                   const char *device,\n"
31066 "                   int partnum);\n"
31067 "\n"
31068 msgstr ""
31069
31070 #. type: =head2
31071 #: ../src/guestfs-actions.pod:5903
31072 msgid "guestfs_part_disk"
31073 msgstr ""
31074
31075 #. type: verbatim
31076 #: ../src/guestfs-actions.pod:5905
31077 #, no-wrap
31078 msgid ""
31079 " int\n"
31080 " guestfs_part_disk (guestfs_h *g,\n"
31081 "                    const char *device,\n"
31082 "                    const char *parttype);\n"
31083 "\n"
31084 msgstr ""
31085
31086 #. type: textblock
31087 #: ../src/guestfs-actions.pod:5910
31088 msgid ""
31089 "This command is simply a combination of C<guestfs_part_init> followed by "
31090 "C<guestfs_part_add> to create a single primary partition covering the whole "
31091 "disk."
31092 msgstr ""
31093
31094 #. type: textblock
31095 #: ../src/guestfs-actions.pod:5914
31096 msgid ""
31097 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31098 "possible values are described in C<guestfs_part_init>."
31099 msgstr ""
31100
31101 #. type: =head2
31102 #: ../src/guestfs-actions.pod:5921
31103 msgid "guestfs_part_get_bootable"
31104 msgstr ""
31105
31106 #. type: verbatim
31107 #: ../src/guestfs-actions.pod:5923
31108 #, no-wrap
31109 msgid ""
31110 " int\n"
31111 " guestfs_part_get_bootable (guestfs_h *g,\n"
31112 "                            const char *device,\n"
31113 "                            int partnum);\n"
31114 "\n"
31115 msgstr ""
31116
31117 #. type: textblock
31118 #: ../src/guestfs-actions.pod:5931
31119 msgid "See also C<guestfs_part_set_bootable>."
31120 msgstr ""
31121
31122 #. type: =head2
31123 #: ../src/guestfs-actions.pod:5937
31124 msgid "guestfs_part_get_mbr_id"
31125 msgstr ""
31126
31127 #. type: verbatim
31128 #: ../src/guestfs-actions.pod:5939
31129 #, no-wrap
31130 msgid ""
31131 " int\n"
31132 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31133 "                          const char *device,\n"
31134 "                          int partnum);\n"
31135 "\n"
31136 msgstr ""
31137
31138 #. type: textblock
31139 #: ../src/guestfs-actions.pod:5947 ../src/guestfs-actions.pod:6129
31140 msgid ""
31141 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31142 "undefined results for other partition table types (see "
31143 "C<guestfs_part_get_parttype>)."
31144 msgstr ""
31145
31146 #. type: =head2
31147 #: ../src/guestfs-actions.pod:5955
31148 msgid "guestfs_part_get_parttype"
31149 msgstr ""
31150
31151 #. type: verbatim
31152 #: ../src/guestfs-actions.pod:5957
31153 #, no-wrap
31154 msgid ""
31155 " char *\n"
31156 " guestfs_part_get_parttype (guestfs_h *g,\n"
31157 "                            const char *device);\n"
31158 "\n"
31159 msgstr ""
31160
31161 #. type: textblock
31162 #: ../src/guestfs-actions.pod:5964
31163 msgid ""
31164 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31165 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31166 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31167 msgstr ""
31168
31169 #. type: =head2
31170 #: ../src/guestfs-actions.pod:5974
31171 msgid "guestfs_part_init"
31172 msgstr ""
31173
31174 #. type: verbatim
31175 #: ../src/guestfs-actions.pod:5976
31176 #, no-wrap
31177 msgid ""
31178 " int\n"
31179 " guestfs_part_init (guestfs_h *g,\n"
31180 "                    const char *device,\n"
31181 "                    const char *parttype);\n"
31182 "\n"
31183 msgstr ""
31184
31185 #. type: textblock
31186 #: ../src/guestfs-actions.pod:5985
31187 msgid ""
31188 "Initially there are no partitions.  Following this, you should call "
31189 "C<guestfs_part_add> for each partition required."
31190 msgstr ""
31191
31192 #. type: =head2
31193 #: ../src/guestfs-actions.pod:6058
31194 msgid "guestfs_part_list"
31195 msgstr ""
31196
31197 #. type: verbatim
31198 #: ../src/guestfs-actions.pod:6060
31199 #, no-wrap
31200 msgid ""
31201 " struct guestfs_partition_list *\n"
31202 " guestfs_part_list (guestfs_h *g,\n"
31203 "                    const char *device);\n"
31204 "\n"
31205 msgstr ""
31206
31207 #. type: textblock
31208 #: ../src/guestfs-actions.pod:6077
31209 msgid ""
31210 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31211 "the device's sector size, see C<guestfs_blockdev_getss>."
31212 msgstr ""
31213
31214 #. type: textblock
31215 #: ../src/guestfs-actions.pod:6090
31216 msgid ""
31217 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31218 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31219 "use>."
31220 msgstr ""
31221
31222 #. type: =head2
31223 #: ../src/guestfs-actions.pod:6096
31224 msgid "guestfs_part_set_bootable"
31225 msgstr ""
31226
31227 #. type: verbatim
31228 #: ../src/guestfs-actions.pod:6098
31229 #, no-wrap
31230 msgid ""
31231 " int\n"
31232 " guestfs_part_set_bootable (guestfs_h *g,\n"
31233 "                            const char *device,\n"
31234 "                            int partnum,\n"
31235 "                            int bootable);\n"
31236 "\n"
31237 msgstr ""
31238
31239 #. type: =head2
31240 #: ../src/guestfs-actions.pod:6115
31241 msgid "guestfs_part_set_mbr_id"
31242 msgstr ""
31243
31244 #. type: verbatim
31245 #: ../src/guestfs-actions.pod:6117
31246 #, no-wrap
31247 msgid ""
31248 " int\n"
31249 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31250 "                          const char *device,\n"
31251 "                          int partnum,\n"
31252 "                          int idbyte);\n"
31253 "\n"
31254 msgstr ""
31255
31256 #. type: =head2
31257 #: ../src/guestfs-actions.pod:6137
31258 msgid "guestfs_part_set_name"
31259 msgstr ""
31260
31261 #. type: verbatim
31262 #: ../src/guestfs-actions.pod:6139
31263 #, no-wrap
31264 msgid ""
31265 " int\n"
31266 " guestfs_part_set_name (guestfs_h *g,\n"
31267 "                        const char *device,\n"
31268 "                        int partnum,\n"
31269 "                        const char *name);\n"
31270 "\n"
31271 msgstr ""
31272
31273 #. type: =head2
31274 #: ../src/guestfs-actions.pod:6155
31275 msgid "guestfs_part_to_dev"
31276 msgstr ""
31277
31278 #. type: verbatim
31279 #: ../src/guestfs-actions.pod:6157
31280 #, no-wrap
31281 msgid ""
31282 " char *\n"
31283 " guestfs_part_to_dev (guestfs_h *g,\n"
31284 "                      const char *partition);\n"
31285 "\n"
31286 msgstr ""
31287
31288 #. type: textblock
31289 #: ../src/guestfs-actions.pod:6165 ../src/guestfs-actions.pod:6184
31290 msgid ""
31291 "The named partition must exist, for example as a string returned from "
31292 "C<guestfs_list_partitions>."
31293 msgstr ""
31294
31295 #. type: textblock
31296 #: ../src/guestfs-actions.pod:6168
31297 msgid "See also C<guestfs_part_to_partnum>."
31298 msgstr ""
31299
31300 #. type: =head2
31301 #: ../src/guestfs-actions.pod:6175
31302 msgid "guestfs_part_to_partnum"
31303 msgstr ""
31304
31305 #. type: verbatim
31306 #: ../src/guestfs-actions.pod:6177
31307 #, no-wrap
31308 msgid ""
31309 " int\n"
31310 " guestfs_part_to_partnum (guestfs_h *g,\n"
31311 "                          const char *partition);\n"
31312 "\n"
31313 msgstr ""
31314
31315 #. type: textblock
31316 #: ../src/guestfs-actions.pod:6187
31317 msgid "See also C<guestfs_part_to_dev>."
31318 msgstr ""
31319
31320 #. type: =head2
31321 #: ../src/guestfs-actions.pod:6193
31322 msgid "guestfs_ping_daemon"
31323 msgstr ""
31324
31325 #. type: verbatim
31326 #: ../src/guestfs-actions.pod:6195
31327 #, no-wrap
31328 msgid ""
31329 " int\n"
31330 " guestfs_ping_daemon (guestfs_h *g);\n"
31331 "\n"
31332 msgstr ""
31333
31334 #. type: =head2
31335 #: ../src/guestfs-actions.pod:6207
31336 msgid "guestfs_pread"
31337 msgstr ""
31338
31339 #. type: verbatim
31340 #: ../src/guestfs-actions.pod:6209
31341 #, no-wrap
31342 msgid ""
31343 " char *\n"
31344 " guestfs_pread (guestfs_h *g,\n"
31345 "                const char *path,\n"
31346 "                int count,\n"
31347 "                int64_t offset,\n"
31348 "                size_t *size_r);\n"
31349 "\n"
31350 msgstr ""
31351
31352 #. type: textblock
31353 #: ../src/guestfs-actions.pod:6222
31354 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31355 msgstr ""
31356
31357 #. type: =head2
31358 #: ../src/guestfs-actions.pod:6233
31359 msgid "guestfs_pread_device"
31360 msgstr ""
31361
31362 #. type: verbatim
31363 #: ../src/guestfs-actions.pod:6235
31364 #, no-wrap
31365 msgid ""
31366 " char *\n"
31367 " guestfs_pread_device (guestfs_h *g,\n"
31368 "                       const char *device,\n"
31369 "                       int count,\n"
31370 "                       int64_t offset,\n"
31371 "                       size_t *size_r);\n"
31372 "\n"
31373 msgstr ""
31374
31375 #. type: textblock
31376 #: ../src/guestfs-actions.pod:6248
31377 msgid "See also C<guestfs_pread>."
31378 msgstr ""
31379
31380 #. type: textblock
31381 #: ../src/guestfs-actions.pod:6257
31382 msgid "(Added in 1.5.21)"
31383 msgstr ""
31384
31385 #. type: =head2
31386 #: ../src/guestfs-actions.pod:6259
31387 msgid "guestfs_pvcreate"
31388 msgstr ""
31389
31390 #. type: verbatim
31391 #: ../src/guestfs-actions.pod:6261
31392 #, no-wrap
31393 msgid ""
31394 " int\n"
31395 " guestfs_pvcreate (guestfs_h *g,\n"
31396 "                   const char *device);\n"
31397 "\n"
31398 msgstr ""
31399
31400 #. type: =head2
31401 #: ../src/guestfs-actions.pod:6273
31402 msgid "guestfs_pvremove"
31403 msgstr ""
31404
31405 #. type: verbatim
31406 #: ../src/guestfs-actions.pod:6275
31407 #, no-wrap
31408 msgid ""
31409 " int\n"
31410 " guestfs_pvremove (guestfs_h *g,\n"
31411 "                   const char *device);\n"
31412 "\n"
31413 msgstr ""
31414
31415 #. type: =head2
31416 #: ../src/guestfs-actions.pod:6290
31417 msgid "guestfs_pvresize"
31418 msgstr ""
31419
31420 #. type: verbatim
31421 #: ../src/guestfs-actions.pod:6292
31422 #, no-wrap
31423 msgid ""
31424 " int\n"
31425 " guestfs_pvresize (guestfs_h *g,\n"
31426 "                   const char *device);\n"
31427 "\n"
31428 msgstr ""
31429
31430 #. type: =head2
31431 #: ../src/guestfs-actions.pod:6303
31432 msgid "guestfs_pvresize_size"
31433 msgstr ""
31434
31435 #. type: verbatim
31436 #: ../src/guestfs-actions.pod:6305
31437 #, no-wrap
31438 msgid ""
31439 " int\n"
31440 " guestfs_pvresize_size (guestfs_h *g,\n"
31441 "                        const char *device,\n"
31442 "                        int64_t size);\n"
31443 "\n"
31444 msgstr ""
31445
31446 #. type: textblock
31447 #: ../src/guestfs-actions.pod:6310
31448 msgid ""
31449 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31450 "specify the new size (in bytes) explicitly."
31451 msgstr ""
31452
31453 #. type: =head2
31454 #: ../src/guestfs-actions.pod:6317
31455 msgid "guestfs_pvs"
31456 msgstr ""
31457
31458 #. type: verbatim
31459 #: ../src/guestfs-actions.pod:6319
31460 #, no-wrap
31461 msgid ""
31462 " char **\n"
31463 " guestfs_pvs (guestfs_h *g);\n"
31464 "\n"
31465 msgstr ""
31466
31467 #. type: textblock
31468 #: ../src/guestfs-actions.pod:6328
31469 msgid "See also C<guestfs_pvs_full>."
31470 msgstr ""
31471
31472 #. type: =head2
31473 #: ../src/guestfs-actions.pod:6336
31474 msgid "guestfs_pvs_full"
31475 msgstr ""
31476
31477 #. type: verbatim
31478 #: ../src/guestfs-actions.pod:6338
31479 #, no-wrap
31480 msgid ""
31481 " struct guestfs_lvm_pv_list *\n"
31482 " guestfs_pvs_full (guestfs_h *g);\n"
31483 "\n"
31484 msgstr ""
31485
31486 #. type: textblock
31487 #: ../src/guestfs-actions.pod:6344
31488 msgid ""
31489 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31490 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
31491 "use>."
31492 msgstr ""
31493
31494 #. type: =head2
31495 #: ../src/guestfs-actions.pod:6350
31496 msgid "guestfs_pvuuid"
31497 msgstr ""
31498
31499 #. type: verbatim
31500 #: ../src/guestfs-actions.pod:6352
31501 #, no-wrap
31502 msgid ""
31503 " char *\n"
31504 " guestfs_pvuuid (guestfs_h *g,\n"
31505 "                 const char *device);\n"
31506 "\n"
31507 msgstr ""
31508
31509 #. type: =head2
31510 #: ../src/guestfs-actions.pod:6363
31511 msgid "guestfs_pwrite"
31512 msgstr ""
31513
31514 #. type: verbatim
31515 #: ../src/guestfs-actions.pod:6365
31516 #, no-wrap
31517 msgid ""
31518 " int\n"
31519 " guestfs_pwrite (guestfs_h *g,\n"
31520 "                 const char *path,\n"
31521 "                 const char *content,\n"
31522 "                 size_t content_size,\n"
31523 "                 int64_t offset);\n"
31524 "\n"
31525 msgstr ""
31526
31527 #. type: textblock
31528 #: ../src/guestfs-actions.pod:6381
31529 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31530 msgstr ""
31531
31532 #. type: =head2
31533 #: ../src/guestfs-actions.pod:6390
31534 msgid "guestfs_pwrite_device"
31535 msgstr ""
31536
31537 #. type: verbatim
31538 #: ../src/guestfs-actions.pod:6392
31539 #, no-wrap
31540 msgid ""
31541 " int\n"
31542 " guestfs_pwrite_device (guestfs_h *g,\n"
31543 "                        const char *device,\n"
31544 "                        const char *content,\n"
31545 "                        size_t content_size,\n"
31546 "                        int64_t offset);\n"
31547 "\n"
31548 msgstr ""
31549
31550 #. type: textblock
31551 #: ../src/guestfs-actions.pod:6407
31552 msgid "See also C<guestfs_pwrite>."
31553 msgstr ""
31554
31555 #. type: textblock
31556 #: ../src/guestfs-actions.pod:6414
31557 msgid "(Added in 1.5.20)"
31558 msgstr ""
31559
31560 #. type: =head2
31561 #: ../src/guestfs-actions.pod:6416
31562 msgid "guestfs_read_file"
31563 msgstr ""
31564
31565 #. type: verbatim
31566 #: ../src/guestfs-actions.pod:6418
31567 #, no-wrap
31568 msgid ""
31569 " char *\n"
31570 " guestfs_read_file (guestfs_h *g,\n"
31571 "                    const char *path,\n"
31572 "                    size_t *size_r);\n"
31573 "\n"
31574 msgstr ""
31575
31576 #. type: textblock
31577 #: ../src/guestfs-actions.pod:6426
31578 msgid ""
31579 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31580 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31581 "function is limited in the total size of file that can be handled."
31582 msgstr ""
31583
31584 #. type: textblock
31585 #: ../src/guestfs-actions.pod:6438
31586 msgid "(Added in 1.0.63)"
31587 msgstr ""
31588
31589 #. type: =head2
31590 #: ../src/guestfs-actions.pod:6440
31591 msgid "guestfs_read_lines"
31592 msgstr ""
31593
31594 #. type: verbatim
31595 #: ../src/guestfs-actions.pod:6442
31596 #, no-wrap
31597 msgid ""
31598 " char **\n"
31599 " guestfs_read_lines (guestfs_h *g,\n"
31600 "                     const char *path);\n"
31601 "\n"
31602 msgstr ""
31603
31604 #. type: textblock
31605 #: ../src/guestfs-actions.pod:6451
31606 msgid ""
31607 "Note that this function cannot correctly handle binary files (specifically, "
31608 "files containing C<\\0> character which is treated as end of line).  For "
31609 "those you need to use the C<guestfs_read_file> function which has a more "
31610 "complex interface."
31611 msgstr ""
31612
31613 #. type: =head2
31614 #: ../src/guestfs-actions.pod:6462
31615 msgid "guestfs_readdir"
31616 msgstr ""
31617
31618 #. type: verbatim
31619 #: ../src/guestfs-actions.pod:6464
31620 #, no-wrap
31621 msgid ""
31622 " struct guestfs_dirent_list *\n"
31623 " guestfs_readdir (guestfs_h *g,\n"
31624 "                  const char *dir);\n"
31625 "\n"
31626 msgstr ""
31627
31628 #. type: textblock
31629 #: ../src/guestfs-actions.pod:6518
31630 msgid ""
31631 "This function is primarily intended for use by programs.  To get a simple "
31632 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31633 "consumption, use C<guestfs_ll>."
31634 msgstr ""
31635
31636 #. type: textblock
31637 #: ../src/guestfs-actions.pod:6522
31638 msgid ""
31639 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31640 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
31641 "use>."
31642 msgstr ""
31643
31644 #. type: =head2
31645 #: ../src/guestfs-actions.pod:6528
31646 msgid "guestfs_readlink"
31647 msgstr ""
31648
31649 #. type: verbatim
31650 #: ../src/guestfs-actions.pod:6530
31651 #, no-wrap
31652 msgid ""
31653 " char *\n"
31654 " guestfs_readlink (guestfs_h *g,\n"
31655 "                   const char *path);\n"
31656 "\n"
31657 msgstr ""
31658
31659 #. type: =head2
31660 #: ../src/guestfs-actions.pod:6541
31661 msgid "guestfs_readlinklist"
31662 msgstr ""
31663
31664 #. type: verbatim
31665 #: ../src/guestfs-actions.pod:6543
31666 #, no-wrap
31667 msgid ""
31668 " char **\n"
31669 " guestfs_readlinklist (guestfs_h *g,\n"
31670 "                       const char *path,\n"
31671 "                       char *const *names);\n"
31672 "\n"
31673 msgstr ""
31674
31675 #. type: =head2
31676 #: ../src/guestfs-actions.pod:6576
31677 msgid "guestfs_realpath"
31678 msgstr ""
31679
31680 #. type: verbatim
31681 #: ../src/guestfs-actions.pod:6578
31682 #, no-wrap
31683 msgid ""
31684 " char *\n"
31685 " guestfs_realpath (guestfs_h *g,\n"
31686 "                   const char *path);\n"
31687 "\n"
31688 msgstr ""
31689
31690 #. type: =head2
31691 #: ../src/guestfs-actions.pod:6590
31692 msgid "guestfs_removexattr"
31693 msgstr ""
31694
31695 #. type: verbatim
31696 #: ../src/guestfs-actions.pod:6592
31697 #, no-wrap
31698 msgid ""
31699 " int\n"
31700 " guestfs_removexattr (guestfs_h *g,\n"
31701 "                      const char *xattr,\n"
31702 "                      const char *path);\n"
31703 "\n"
31704 msgstr ""
31705
31706 #. type: textblock
31707 #: ../src/guestfs-actions.pod:6600
31708 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31709 msgstr ""
31710
31711 #. type: =head2
31712 #: ../src/guestfs-actions.pod:6606
31713 msgid "guestfs_resize2fs"
31714 msgstr ""
31715
31716 #. type: verbatim
31717 #: ../src/guestfs-actions.pod:6608
31718 #, no-wrap
31719 msgid ""
31720 " int\n"
31721 " guestfs_resize2fs (guestfs_h *g,\n"
31722 "                    const char *device);\n"
31723 "\n"
31724 msgstr ""
31725
31726 #. type: textblock
31727 #: ../src/guestfs-actions.pod:6615
31728 msgid ""
31729 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31730 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31731 "sometimes gives an error about this and sometimes not.  In any case, it is "
31732 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31733 msgstr ""
31734
31735 #. type: =head2
31736 #: ../src/guestfs-actions.pod:6625
31737 msgid "guestfs_resize2fs_M"
31738 msgstr ""
31739
31740 #. type: verbatim
31741 #: ../src/guestfs-actions.pod:6627
31742 #, no-wrap
31743 msgid ""
31744 " int\n"
31745 " guestfs_resize2fs_M (guestfs_h *g,\n"
31746 "                      const char *device);\n"
31747 "\n"
31748 msgstr ""
31749
31750 #. type: textblock
31751 #: ../src/guestfs-actions.pod:6631
31752 msgid ""
31753 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31754 "resized to its minimum size.  This works like the I<-M> option to the "
31755 "C<resize2fs> command."
31756 msgstr ""
31757
31758 #. type: textblock
31759 #: ../src/guestfs-actions.pod:6635
31760 msgid ""
31761 "To get the resulting size of the filesystem you should call "
31762 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31763 "These two numbers, multiplied together, give the resulting size of the "
31764 "minimal filesystem in bytes."
31765 msgstr ""
31766
31767 #. type: =head2
31768 #: ../src/guestfs-actions.pod:6644
31769 msgid "guestfs_resize2fs_size"
31770 msgstr ""
31771
31772 #. type: verbatim
31773 #: ../src/guestfs-actions.pod:6646
31774 #, no-wrap
31775 msgid ""
31776 " int\n"
31777 " guestfs_resize2fs_size (guestfs_h *g,\n"
31778 "                         const char *device,\n"
31779 "                         int64_t size);\n"
31780 "\n"
31781 msgstr ""
31782
31783 #. type: textblock
31784 #: ../src/guestfs-actions.pod:6651
31785 msgid ""
31786 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31787 "to specify the new size (in bytes) explicitly."
31788 msgstr ""
31789
31790 #. type: =head2
31791 #: ../src/guestfs-actions.pod:6658
31792 msgid "guestfs_rm"
31793 msgstr ""
31794
31795 #. type: verbatim
31796 #: ../src/guestfs-actions.pod:6660
31797 #, no-wrap
31798 msgid ""
31799 " int\n"
31800 " guestfs_rm (guestfs_h *g,\n"
31801 "             const char *path);\n"
31802 "\n"
31803 msgstr ""
31804
31805 #. type: =head2
31806 #: ../src/guestfs-actions.pod:6670
31807 msgid "guestfs_rm_rf"
31808 msgstr ""
31809
31810 #. type: verbatim
31811 #: ../src/guestfs-actions.pod:6672
31812 #, no-wrap
31813 msgid ""
31814 " int\n"
31815 " guestfs_rm_rf (guestfs_h *g,\n"
31816 "                const char *path);\n"
31817 "\n"
31818 msgstr ""
31819
31820 #. type: =head2
31821 #: ../src/guestfs-actions.pod:6684
31822 msgid "guestfs_rmdir"
31823 msgstr ""
31824
31825 #. type: verbatim
31826 #: ../src/guestfs-actions.pod:6686
31827 #, no-wrap
31828 msgid ""
31829 " int\n"
31830 " guestfs_rmdir (guestfs_h *g,\n"
31831 "                const char *path);\n"
31832 "\n"
31833 msgstr ""
31834
31835 #. type: =head2
31836 #: ../src/guestfs-actions.pod:6696
31837 msgid "guestfs_rmmountpoint"
31838 msgstr ""
31839
31840 #. type: verbatim
31841 #: ../src/guestfs-actions.pod:6698
31842 #, no-wrap
31843 msgid ""
31844 " int\n"
31845 " guestfs_rmmountpoint (guestfs_h *g,\n"
31846 "                       const char *exemptpath);\n"
31847 "\n"
31848 msgstr ""
31849
31850 #. type: textblock
31851 #: ../src/guestfs-actions.pod:6702
31852 msgid ""
31853 "This calls removes a mountpoint that was previously created with "
31854 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31855 msgstr ""
31856
31857 #. type: =head2
31858 #: ../src/guestfs-actions.pod:6710
31859 msgid "guestfs_scrub_device"
31860 msgstr ""
31861
31862 #. type: verbatim
31863 #: ../src/guestfs-actions.pod:6712
31864 #, no-wrap
31865 msgid ""
31866 " int\n"
31867 " guestfs_scrub_device (guestfs_h *g,\n"
31868 "                       const char *device);\n"
31869 "\n"
31870 msgstr ""
31871
31872 #. type: textblock
31873 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6761
31874 msgid "(Added in 1.0.52)"
31875 msgstr ""
31876
31877 #. type: =head2
31878 #: ../src/guestfs-actions.pod:6726
31879 msgid "guestfs_scrub_file"
31880 msgstr ""
31881
31882 #. type: verbatim
31883 #: ../src/guestfs-actions.pod:6728
31884 #, no-wrap
31885 msgid ""
31886 " int\n"
31887 " guestfs_scrub_file (guestfs_h *g,\n"
31888 "                     const char *file);\n"
31889 "\n"
31890 msgstr ""
31891
31892 #. type: =head2
31893 #: ../src/guestfs-actions.pod:6744
31894 msgid "guestfs_scrub_freespace"
31895 msgstr ""
31896
31897 #. type: verbatim
31898 #: ../src/guestfs-actions.pod:6746
31899 #, no-wrap
31900 msgid ""
31901 " int\n"
31902 " guestfs_scrub_freespace (guestfs_h *g,\n"
31903 "                          const char *dir);\n"
31904 "\n"
31905 msgstr ""
31906
31907 #. type: textblock
31908 #: ../src/guestfs-actions.pod:6750
31909 msgid ""
31910 "This command creates the directory C<dir> and then fills it with files until "
31911 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31912 "and deletes them.  The intention is to scrub any free space on the partition "
31913 "containing C<dir>."
31914 msgstr ""
31915
31916 #. type: =head2
31917 #: ../src/guestfs-actions.pod:6763
31918 msgid "guestfs_set_append"
31919 msgstr ""
31920
31921 #. type: verbatim
31922 #: ../src/guestfs-actions.pod:6765
31923 #, no-wrap
31924 msgid ""
31925 " int\n"
31926 " guestfs_set_append (guestfs_h *g,\n"
31927 "                     const char *append);\n"
31928 "\n"
31929 msgstr ""
31930
31931 #. type: =head2
31932 #: ../src/guestfs-actions.pod:6782
31933 msgid "guestfs_set_attach_method"
31934 msgstr ""
31935
31936 #. type: verbatim
31937 #: ../src/guestfs-actions.pod:6784
31938 #, no-wrap
31939 msgid ""
31940 " int\n"
31941 " guestfs_set_attach_method (guestfs_h *g,\n"
31942 "                            const char *attachmethod);\n"
31943 "\n"
31944 msgstr ""
31945
31946 #. type: =head2
31947 #: ../src/guestfs-actions.pod:6812
31948 msgid "guestfs_set_autosync"
31949 msgstr ""
31950
31951 #. type: verbatim
31952 #: ../src/guestfs-actions.pod:6814
31953 #, no-wrap
31954 msgid ""
31955 " int\n"
31956 " guestfs_set_autosync (guestfs_h *g,\n"
31957 "                       int autosync);\n"
31958 "\n"
31959 msgstr ""
31960
31961 #. type: =head2
31962 #: ../src/guestfs-actions.pod:6830
31963 msgid "guestfs_set_direct"
31964 msgstr ""
31965
31966 #. type: verbatim
31967 #: ../src/guestfs-actions.pod:6832
31968 #, no-wrap
31969 msgid ""
31970 " int\n"
31971 " guestfs_set_direct (guestfs_h *g,\n"
31972 "                     int direct);\n"
31973 "\n"
31974 msgstr ""
31975
31976 #. type: textblock
31977 #: ../src/guestfs-actions.pod:6840
31978 msgid ""
31979 "One consequence of this is that log messages aren't caught by the library "
31980 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31981 "stdout."
31982 msgstr ""
31983
31984 #. type: =head2
31985 #: ../src/guestfs-actions.pod:6853
31986 msgid "guestfs_set_e2label"
31987 msgstr ""
31988
31989 #. type: verbatim
31990 #: ../src/guestfs-actions.pod:6855
31991 #, no-wrap
31992 msgid ""
31993 " int\n"
31994 " guestfs_set_e2label (guestfs_h *g,\n"
31995 "                      const char *device,\n"
31996 "                      const char *label);\n"
31997 "\n"
31998 msgstr ""
31999
32000 #. type: textblock
32001 #: ../src/guestfs-actions.pod:6864
32002 msgid ""
32003 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32004 "the existing label on a filesystem."
32005 msgstr ""
32006
32007 #. type: =head2
32008 #: ../src/guestfs-actions.pod:6871
32009 msgid "guestfs_set_e2uuid"
32010 msgstr ""
32011
32012 #. type: verbatim
32013 #: ../src/guestfs-actions.pod:6873
32014 #, no-wrap
32015 msgid ""
32016 " int\n"
32017 " guestfs_set_e2uuid (guestfs_h *g,\n"
32018 "                     const char *device,\n"
32019 "                     const char *uuid);\n"
32020 "\n"
32021 msgstr ""
32022
32023 #. type: textblock
32024 #: ../src/guestfs-actions.pod:6883
32025 msgid ""
32026 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32027 "the existing UUID of a filesystem."
32028 msgstr ""
32029
32030 #. type: =head2
32031 #: ../src/guestfs-actions.pod:6890
32032 msgid "guestfs_set_memsize"
32033 msgstr ""
32034
32035 #. type: verbatim
32036 #: ../src/guestfs-actions.pod:6892
32037 #, no-wrap
32038 msgid ""
32039 " int\n"
32040 " guestfs_set_memsize (guestfs_h *g,\n"
32041 "                      int memsize);\n"
32042 "\n"
32043 msgstr ""
32044
32045 #. type: textblock
32046 #: ../src/guestfs-actions.pod:6896
32047 msgid ""
32048 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32049 "This only has any effect if called before C<guestfs_launch>."
32050 msgstr ""
32051
32052 #. type: =head2
32053 #: ../src/guestfs-actions.pod:6911
32054 msgid "guestfs_set_network"
32055 msgstr ""
32056
32057 #. type: verbatim
32058 #: ../src/guestfs-actions.pod:6913
32059 #, no-wrap
32060 msgid ""
32061 " int\n"
32062 " guestfs_set_network (guestfs_h *g,\n"
32063 "                      int network);\n"
32064 "\n"
32065 msgstr ""
32066
32067 #. type: textblock
32068 #: ../src/guestfs-actions.pod:6923
32069 msgid ""
32070 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32071 "effect."
32072 msgstr ""
32073
32074 #. type: =head2
32075 #: ../src/guestfs-actions.pod:6930
32076 msgid "guestfs_set_path"
32077 msgstr ""
32078
32079 #. type: verbatim
32080 #: ../src/guestfs-actions.pod:6932
32081 #, no-wrap
32082 msgid ""
32083 " int\n"
32084 " guestfs_set_path (guestfs_h *g,\n"
32085 "                   const char *searchpath);\n"
32086 "\n"
32087 msgstr ""
32088
32089 #. type: =head2
32090 #: ../src/guestfs-actions.pod:6947
32091 msgid "guestfs_set_pgroup"
32092 msgstr ""
32093
32094 #. type: verbatim
32095 #: ../src/guestfs-actions.pod:6949
32096 #, no-wrap
32097 msgid ""
32098 " int\n"
32099 " guestfs_set_pgroup (guestfs_h *g,\n"
32100 "                     int pgroup);\n"
32101 "\n"
32102 msgstr ""
32103
32104 #. type: =head2
32105 #: ../src/guestfs-actions.pod:6966
32106 msgid "guestfs_set_qemu"
32107 msgstr ""
32108
32109 #. type: verbatim
32110 #: ../src/guestfs-actions.pod:6968
32111 #, no-wrap
32112 msgid ""
32113 " int\n"
32114 " guestfs_set_qemu (guestfs_h *g,\n"
32115 "                   const char *qemu);\n"
32116 "\n"
32117 msgstr ""
32118
32119 #. type: =head2
32120 #: ../src/guestfs-actions.pod:6994
32121 msgid "guestfs_set_recovery_proc"
32122 msgstr ""
32123
32124 #. type: verbatim
32125 #: ../src/guestfs-actions.pod:6996
32126 #, no-wrap
32127 msgid ""
32128 " int\n"
32129 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32130 "                            int recoveryproc);\n"
32131 "\n"
32132 msgstr ""
32133
32134 #. type: textblock
32135 #: ../src/guestfs-actions.pod:7000
32136 msgid ""
32137 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32138 "not create a recovery process.  The purpose of the recovery process is to "
32139 "stop runaway qemu processes in the case where the main program aborts "
32140 "abruptly."
32141 msgstr ""
32142
32143 #. type: textblock
32144 #: ../src/guestfs-actions.pod:7005
32145 msgid ""
32146 "This only has any effect if called before C<guestfs_launch>, and the default "
32147 "is true."
32148 msgstr ""
32149
32150 #. type: =head2
32151 #: ../src/guestfs-actions.pod:7018
32152 msgid "guestfs_set_selinux"
32153 msgstr ""
32154
32155 #. type: verbatim
32156 #: ../src/guestfs-actions.pod:7020
32157 #, no-wrap
32158 msgid ""
32159 " int\n"
32160 " guestfs_set_selinux (guestfs_h *g,\n"
32161 "                      int selinux);\n"
32162 "\n"
32163 msgstr ""
32164
32165 #. type: =head2
32166 #: ../src/guestfs-actions.pod:7037
32167 msgid "guestfs_set_smp"
32168 msgstr ""
32169
32170 #. type: verbatim
32171 #: ../src/guestfs-actions.pod:7039
32172 #, no-wrap
32173 msgid ""
32174 " int\n"
32175 " guestfs_set_smp (guestfs_h *g,\n"
32176 "                  int smp);\n"
32177 "\n"
32178 msgstr ""
32179
32180 #. type: textblock
32181 #: ../src/guestfs-actions.pod:7047
32182 msgid "This function must be called before C<guestfs_launch>."
32183 msgstr ""
32184
32185 #. type: =head2
32186 #: ../src/guestfs-actions.pod:7053
32187 msgid "guestfs_set_trace"
32188 msgstr ""
32189
32190 #. type: verbatim
32191 #: ../src/guestfs-actions.pod:7055
32192 #, no-wrap
32193 msgid ""
32194 " int\n"
32195 " guestfs_set_trace (guestfs_h *g,\n"
32196 "                    int trace);\n"
32197 "\n"
32198 msgstr ""
32199
32200 #. type: textblock
32201 #: ../src/guestfs-actions.pod:7069
32202 msgid ""
32203 "Trace messages are normally sent to C<stderr>, unless you register a "
32204 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32205 msgstr ""
32206
32207 #. type: =head2
32208 #: ../src/guestfs-actions.pod:7077
32209 msgid "guestfs_set_verbose"
32210 msgstr ""
32211
32212 #. type: verbatim
32213 #: ../src/guestfs-actions.pod:7079
32214 #, no-wrap
32215 msgid ""
32216 " int\n"
32217 " guestfs_set_verbose (guestfs_h *g,\n"
32218 "                      int verbose);\n"
32219 "\n"
32220 msgstr ""
32221
32222 #. type: textblock
32223 #: ../src/guestfs-actions.pod:7088
32224 msgid ""
32225 "Verbose messages are normally sent to C<stderr>, unless you register a "
32226 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32227 msgstr ""
32228
32229 #. type: =head2
32230 #: ../src/guestfs-actions.pod:7096
32231 msgid "guestfs_setcon"
32232 msgstr ""
32233
32234 #. type: verbatim
32235 #: ../src/guestfs-actions.pod:7098
32236 #, no-wrap
32237 msgid ""
32238 " int\n"
32239 " guestfs_setcon (guestfs_h *g,\n"
32240 "                 const char *context);\n"
32241 "\n"
32242 msgstr ""
32243
32244 #. type: =head2
32245 #: ../src/guestfs-actions.pod:7111
32246 msgid "guestfs_setxattr"
32247 msgstr ""
32248
32249 #. type: verbatim
32250 #: ../src/guestfs-actions.pod:7113
32251 #, no-wrap
32252 msgid ""
32253 " int\n"
32254 " guestfs_setxattr (guestfs_h *g,\n"
32255 "                   const char *xattr,\n"
32256 "                   const char *val,\n"
32257 "                   int vallen,\n"
32258 "                   const char *path);\n"
32259 "\n"
32260 msgstr ""
32261
32262 #. type: textblock
32263 #: ../src/guestfs-actions.pod:7124
32264 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32265 msgstr ""
32266
32267 #. type: =head2
32268 #: ../src/guestfs-actions.pod:7130
32269 msgid "guestfs_sfdisk"
32270 msgstr ""
32271
32272 #. type: verbatim
32273 #: ../src/guestfs-actions.pod:7132
32274 #, no-wrap
32275 msgid ""
32276 " int\n"
32277 " guestfs_sfdisk (guestfs_h *g,\n"
32278 "                 const char *device,\n"
32279 "                 int cyls,\n"
32280 "                 int heads,\n"
32281 "                 int sectors,\n"
32282 "                 char *const *lines);\n"
32283 "\n"
32284 msgstr ""
32285
32286 #. type: textblock
32287 #: ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7181 ../src/guestfs-actions.pod:7212
32288 msgid ""
32289 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32290 "call instead."
32291 msgstr ""
32292
32293 #. type: textblock
32294 #: ../src/guestfs-actions.pod:7167
32295 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32296 msgstr ""
32297
32298 #. type: =head2
32299 #: ../src/guestfs-actions.pod:7174
32300 msgid "guestfs_sfdiskM"
32301 msgstr ""
32302
32303 #. type: verbatim
32304 #: ../src/guestfs-actions.pod:7176
32305 #, no-wrap
32306 msgid ""
32307 " int\n"
32308 " guestfs_sfdiskM (guestfs_h *g,\n"
32309 "                  const char *device,\n"
32310 "                  char *const *lines);\n"
32311 "\n"
32312 msgstr ""
32313
32314 #. type: textblock
32315 #: ../src/guestfs-actions.pod:7188
32316 msgid ""
32317 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32318 "partition sizes are specified in megabytes only (rounded to the nearest "
32319 "cylinder) and you don't need to specify the cyls, heads and sectors "
32320 "parameters which were rarely if ever used anyway."
32321 msgstr ""
32322
32323 #. type: textblock
32324 #: ../src/guestfs-actions.pod:7194
32325 msgid ""
32326 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32327 "C<guestfs_part_disk>"
32328 msgstr ""
32329
32330 #. type: =head2
32331 #: ../src/guestfs-actions.pod:7201
32332 msgid "guestfs_sfdisk_N"
32333 msgstr ""
32334
32335 #. type: verbatim
32336 #: ../src/guestfs-actions.pod:7203
32337 #, no-wrap
32338 msgid ""
32339 " int\n"
32340 " guestfs_sfdisk_N (guestfs_h *g,\n"
32341 "                   const char *device,\n"
32342 "                   int partnum,\n"
32343 "                   int cyls,\n"
32344 "                   int heads,\n"
32345 "                   int sectors,\n"
32346 "                   const char *line);\n"
32347 "\n"
32348 msgstr ""
32349
32350 #. type: textblock
32351 #: ../src/guestfs-actions.pod:7222
32352 msgid ""
32353 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32354 "for the cyls/heads/sectors parameters."
32355 msgstr ""
32356
32357 #. type: textblock
32358 #: ../src/guestfs-actions.pod:7225
32359 msgid "See also: C<guestfs_part_add>"
32360 msgstr ""
32361
32362 #. type: =head2
32363 #: ../src/guestfs-actions.pod:7231
32364 msgid "guestfs_sfdisk_disk_geometry"
32365 msgstr ""
32366
32367 #. type: verbatim
32368 #: ../src/guestfs-actions.pod:7233
32369 #, no-wrap
32370 msgid ""
32371 " char *\n"
32372 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32373 "                               const char *device);\n"
32374 "\n"
32375 msgstr ""
32376
32377 #. type: textblock
32378 #: ../src/guestfs-actions.pod:7237
32379 msgid ""
32380 "This displays the disk geometry of C<device> read from the partition table.  "
32381 "Especially in the case where the underlying block device has been resized, "
32382 "this can be different from the kernel's idea of the geometry (see "
32383 "C<guestfs_sfdisk_kernel_geometry>)."
32384 msgstr ""
32385
32386 #. type: =head2
32387 #: ../src/guestfs-actions.pod:7250
32388 msgid "guestfs_sfdisk_kernel_geometry"
32389 msgstr ""
32390
32391 #. type: verbatim
32392 #: ../src/guestfs-actions.pod:7252
32393 #, no-wrap
32394 msgid ""
32395 " char *\n"
32396 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32397 "                                 const char *device);\n"
32398 "\n"
32399 msgstr ""
32400
32401 #. type: =head2
32402 #: ../src/guestfs-actions.pod:7266
32403 msgid "guestfs_sfdisk_l"
32404 msgstr ""
32405
32406 #. type: verbatim
32407 #: ../src/guestfs-actions.pod:7268
32408 #, no-wrap
32409 msgid ""
32410 " char *\n"
32411 " guestfs_sfdisk_l (guestfs_h *g,\n"
32412 "                   const char *device);\n"
32413 "\n"
32414 msgstr ""
32415
32416 #. type: textblock
32417 #: ../src/guestfs-actions.pod:7272
32418 msgid ""
32419 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32420 "call instead."
32421 msgstr ""
32422
32423 #. type: textblock
32424 #: ../src/guestfs-actions.pod:7283
32425 msgid "See also: C<guestfs_part_list>"
32426 msgstr ""
32427
32428 #. type: =head2
32429 #: ../src/guestfs-actions.pod:7290
32430 msgid "guestfs_sh"
32431 msgstr ""
32432
32433 #. type: verbatim
32434 #: ../src/guestfs-actions.pod:7292
32435 #, no-wrap
32436 msgid ""
32437 " char *\n"
32438 " guestfs_sh (guestfs_h *g,\n"
32439 "             const char *command);\n"
32440 "\n"
32441 msgstr ""
32442
32443 #. type: textblock
32444 #: ../src/guestfs-actions.pod:7299
32445 msgid "This is like C<guestfs_command>, but passes the command to:"
32446 msgstr ""
32447
32448 #. type: textblock
32449 #: ../src/guestfs-actions.pod:7307
32450 msgid "All the provisos about C<guestfs_command> apply to this call."
32451 msgstr ""
32452
32453 #. type: =head2
32454 #: ../src/guestfs-actions.pod:7314
32455 msgid "guestfs_sh_lines"
32456 msgstr ""
32457
32458 #. type: verbatim
32459 #: ../src/guestfs-actions.pod:7316
32460 #, no-wrap
32461 msgid ""
32462 " char **\n"
32463 " guestfs_sh_lines (guestfs_h *g,\n"
32464 "                   const char *command);\n"
32465 "\n"
32466 msgstr ""
32467
32468 #. type: textblock
32469 #: ../src/guestfs-actions.pod:7320
32470 msgid ""
32471 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32472 "lines."
32473 msgstr ""
32474
32475 #. type: textblock
32476 #: ../src/guestfs-actions.pod:7323
32477 msgid "See also: C<guestfs_command_lines>"
32478 msgstr ""
32479
32480 #. type: =head2
32481 #: ../src/guestfs-actions.pod:7331
32482 msgid "guestfs_sleep"
32483 msgstr ""
32484
32485 #. type: verbatim
32486 #: ../src/guestfs-actions.pod:7333
32487 #, no-wrap
32488 msgid ""
32489 " int\n"
32490 " guestfs_sleep (guestfs_h *g,\n"
32491 "                int secs);\n"
32492 "\n"
32493 msgstr ""
32494
32495 #. type: textblock
32496 #: ../src/guestfs-actions.pod:7341
32497 msgid "(Added in 1.0.41)"
32498 msgstr ""
32499
32500 #. type: =head2
32501 #: ../src/guestfs-actions.pod:7343 ../src/guestfs-structs.pod:109
32502 msgid "guestfs_stat"
32503 msgstr ""
32504
32505 #. type: verbatim
32506 #: ../src/guestfs-actions.pod:7345
32507 #, no-wrap
32508 msgid ""
32509 " struct guestfs_stat *\n"
32510 " guestfs_stat (guestfs_h *g,\n"
32511 "               const char *path);\n"
32512 "\n"
32513 msgstr ""
32514
32515 #. type: =head2
32516 #: ../src/guestfs-actions.pod:7359 ../src/guestfs-structs.pod:135
32517 msgid "guestfs_statvfs"
32518 msgstr ""
32519
32520 #. type: verbatim
32521 #: ../src/guestfs-actions.pod:7361
32522 #, no-wrap
32523 msgid ""
32524 " struct guestfs_statvfs *\n"
32525 " guestfs_statvfs (guestfs_h *g,\n"
32526 "                  const char *path);\n"
32527 "\n"
32528 msgstr ""
32529
32530 #. type: textblock
32531 #: ../src/guestfs-actions.pod:7371
32532 msgid ""
32533 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32534 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32535 msgstr ""
32536
32537 #. type: =head2
32538 #: ../src/guestfs-actions.pod:7377
32539 msgid "guestfs_strings"
32540 msgstr ""
32541
32542 #. type: verbatim
32543 #: ../src/guestfs-actions.pod:7379
32544 #, no-wrap
32545 msgid ""
32546 " char **\n"
32547 " guestfs_strings (guestfs_h *g,\n"
32548 "                  const char *path);\n"
32549 "\n"
32550 msgstr ""
32551
32552 #. type: =head2
32553 #: ../src/guestfs-actions.pod:7395
32554 msgid "guestfs_strings_e"
32555 msgstr ""
32556
32557 #. type: verbatim
32558 #: ../src/guestfs-actions.pod:7397
32559 #, no-wrap
32560 msgid ""
32561 " char **\n"
32562 " guestfs_strings_e (guestfs_h *g,\n"
32563 "                    const char *encoding,\n"
32564 "                    const char *path);\n"
32565 "\n"
32566 msgstr ""
32567
32568 #. type: textblock
32569 #: ../src/guestfs-actions.pod:7402
32570 msgid ""
32571 "This is like the C<guestfs_strings> command, but allows you to specify the "
32572 "encoding of strings that are looked for in the source file C<path>."
32573 msgstr ""
32574
32575 #. type: textblock
32576 #: ../src/guestfs-actions.pod:7412
32577 msgid ""
32578 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32579 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32580 msgstr ""
32581
32582 #. type: =head2
32583 #: ../src/guestfs-actions.pod:7450
32584 msgid "guestfs_swapoff_device"
32585 msgstr ""
32586
32587 #. type: verbatim
32588 #: ../src/guestfs-actions.pod:7452
32589 #, no-wrap
32590 msgid ""
32591 " int\n"
32592 " guestfs_swapoff_device (guestfs_h *g,\n"
32593 "                         const char *device);\n"
32594 "\n"
32595 msgstr ""
32596
32597 #. type: textblock
32598 #: ../src/guestfs-actions.pod:7456
32599 msgid ""
32600 "This command disables the libguestfs appliance swap device or partition "
32601 "named C<device>.  See C<guestfs_swapon_device>."
32602 msgstr ""
32603
32604 #. type: =head2
32605 #: ../src/guestfs-actions.pod:7464
32606 msgid "guestfs_swapoff_file"
32607 msgstr ""
32608
32609 #. type: verbatim
32610 #: ../src/guestfs-actions.pod:7466
32611 #, no-wrap
32612 msgid ""
32613 " int\n"
32614 " guestfs_swapoff_file (guestfs_h *g,\n"
32615 "                       const char *file);\n"
32616 "\n"
32617 msgstr ""
32618
32619 #. type: =head2
32620 #: ../src/guestfs-actions.pod:7476
32621 msgid "guestfs_swapoff_label"
32622 msgstr ""
32623
32624 #. type: verbatim
32625 #: ../src/guestfs-actions.pod:7478
32626 #, no-wrap
32627 msgid ""
32628 " int\n"
32629 " guestfs_swapoff_label (guestfs_h *g,\n"
32630 "                        const char *label);\n"
32631 "\n"
32632 msgstr ""
32633
32634 #. type: =head2
32635 #: ../src/guestfs-actions.pod:7489
32636 msgid "guestfs_swapoff_uuid"
32637 msgstr ""
32638
32639 #. type: verbatim
32640 #: ../src/guestfs-actions.pod:7491
32641 #, no-wrap
32642 msgid ""
32643 " int\n"
32644 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32645 "                       const char *uuid);\n"
32646 "\n"
32647 msgstr ""
32648
32649 #. type: =head2
32650 #: ../src/guestfs-actions.pod:7502
32651 msgid "guestfs_swapon_device"
32652 msgstr ""
32653
32654 #. type: verbatim
32655 #: ../src/guestfs-actions.pod:7504
32656 #, no-wrap
32657 msgid ""
32658 " int\n"
32659 " guestfs_swapon_device (guestfs_h *g,\n"
32660 "                        const char *device);\n"
32661 "\n"
32662 msgstr ""
32663
32664 #. type: textblock
32665 #: ../src/guestfs-actions.pod:7508
32666 msgid ""
32667 "This command enables the libguestfs appliance to use the swap device or "
32668 "partition named C<device>.  The increased memory is made available for all "
32669 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32670 msgstr ""
32671
32672 #. type: =head2
32673 #: ../src/guestfs-actions.pod:7524
32674 msgid "guestfs_swapon_file"
32675 msgstr ""
32676
32677 #. type: verbatim
32678 #: ../src/guestfs-actions.pod:7526
32679 #, no-wrap
32680 msgid ""
32681 " int\n"
32682 " guestfs_swapon_file (guestfs_h *g,\n"
32683 "                      const char *file);\n"
32684 "\n"
32685 msgstr ""
32686
32687 #. type: textblock
32688 #: ../src/guestfs-actions.pod:7530
32689 msgid ""
32690 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32691 "notes."
32692 msgstr ""
32693
32694 #. type: =head2
32695 #: ../src/guestfs-actions.pod:7537
32696 msgid "guestfs_swapon_label"
32697 msgstr ""
32698
32699 #. type: verbatim
32700 #: ../src/guestfs-actions.pod:7539
32701 #, no-wrap
32702 msgid ""
32703 " int\n"
32704 " guestfs_swapon_label (guestfs_h *g,\n"
32705 "                       const char *label);\n"
32706 "\n"
32707 msgstr ""
32708
32709 #. type: textblock
32710 #: ../src/guestfs-actions.pod:7543
32711 msgid ""
32712 "This command enables swap to a labeled swap partition.  See "
32713 "C<guestfs_swapon_device> for other notes."
32714 msgstr ""
32715
32716 #. type: =head2
32717 #: ../src/guestfs-actions.pod:7550
32718 msgid "guestfs_swapon_uuid"
32719 msgstr ""
32720
32721 #. type: verbatim
32722 #: ../src/guestfs-actions.pod:7552
32723 #, no-wrap
32724 msgid ""
32725 " int\n"
32726 " guestfs_swapon_uuid (guestfs_h *g,\n"
32727 "                      const char *uuid);\n"
32728 "\n"
32729 msgstr ""
32730
32731 #. type: textblock
32732 #: ../src/guestfs-actions.pod:7556
32733 msgid ""
32734 "This command enables swap to a swap partition with the given UUID.  See "
32735 "C<guestfs_swapon_device> for other notes."
32736 msgstr ""
32737
32738 #. type: =head2
32739 #: ../src/guestfs-actions.pod:7563
32740 msgid "guestfs_sync"
32741 msgstr ""
32742
32743 #. type: verbatim
32744 #: ../src/guestfs-actions.pod:7565
32745 #, no-wrap
32746 msgid ""
32747 " int\n"
32748 " guestfs_sync (guestfs_h *g);\n"
32749 "\n"
32750 msgstr ""
32751
32752 #. type: =head2
32753 #: ../src/guestfs-actions.pod:7578
32754 msgid "guestfs_tail"
32755 msgstr ""
32756
32757 #. type: verbatim
32758 #: ../src/guestfs-actions.pod:7580
32759 #, no-wrap
32760 msgid ""
32761 " char **\n"
32762 " guestfs_tail (guestfs_h *g,\n"
32763 "               const char *path);\n"
32764 "\n"
32765 msgstr ""
32766
32767 #. type: =head2
32768 #: ../src/guestfs-actions.pod:7596
32769 msgid "guestfs_tail_n"
32770 msgstr ""
32771
32772 #. type: verbatim
32773 #: ../src/guestfs-actions.pod:7598
32774 #, no-wrap
32775 msgid ""
32776 " char **\n"
32777 " guestfs_tail_n (guestfs_h *g,\n"
32778 "                 int nrlines,\n"
32779 "                 const char *path);\n"
32780 "\n"
32781 msgstr ""
32782
32783 #. type: =head2
32784 #: ../src/guestfs-actions.pod:7620
32785 msgid "guestfs_tar_in"
32786 msgstr ""
32787
32788 #. type: verbatim
32789 #: ../src/guestfs-actions.pod:7622
32790 #, no-wrap
32791 msgid ""
32792 " int\n"
32793 " guestfs_tar_in (guestfs_h *g,\n"
32794 "                 const char *tarfile,\n"
32795 "                 const char *directory);\n"
32796 "\n"
32797 msgstr ""
32798
32799 #. type: textblock
32800 #: ../src/guestfs-actions.pod:7630
32801 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7668 ../src/guestfs-actions.pod:7684
32806 msgid "(Added in 1.0.3)"
32807 msgstr ""
32808
32809 #. type: =head2
32810 #: ../src/guestfs-actions.pod:7637
32811 msgid "guestfs_tar_out"
32812 msgstr ""
32813
32814 #. type: verbatim
32815 #: ../src/guestfs-actions.pod:7639
32816 #, no-wrap
32817 msgid ""
32818 " int\n"
32819 " guestfs_tar_out (guestfs_h *g,\n"
32820 "                  const char *directory,\n"
32821 "                  const char *tarfile);\n"
32822 "\n"
32823 msgstr ""
32824
32825 #. type: textblock
32826 #: ../src/guestfs-actions.pod:7647
32827 msgid ""
32828 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32829 "C<guestfs_txz_out>."
32830 msgstr ""
32831
32832 #. type: =head2
32833 #: ../src/guestfs-actions.pod:7654
32834 msgid "guestfs_tgz_in"
32835 msgstr ""
32836
32837 #. type: verbatim
32838 #: ../src/guestfs-actions.pod:7656
32839 #, no-wrap
32840 msgid ""
32841 " int\n"
32842 " guestfs_tgz_in (guestfs_h *g,\n"
32843 "                 const char *tarball,\n"
32844 "                 const char *directory);\n"
32845 "\n"
32846 msgstr ""
32847
32848 #. type: textblock
32849 #: ../src/guestfs-actions.pod:7664
32850 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32851 msgstr ""
32852
32853 #. type: =head2
32854 #: ../src/guestfs-actions.pod:7670
32855 msgid "guestfs_tgz_out"
32856 msgstr ""
32857
32858 #. type: verbatim
32859 #: ../src/guestfs-actions.pod:7672
32860 #, no-wrap
32861 msgid ""
32862 " int\n"
32863 " guestfs_tgz_out (guestfs_h *g,\n"
32864 "                  const char *directory,\n"
32865 "                  const char *tarball);\n"
32866 "\n"
32867 msgstr ""
32868
32869 #. type: textblock
32870 #: ../src/guestfs-actions.pod:7680
32871 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32872 msgstr ""
32873
32874 #. type: =head2
32875 #: ../src/guestfs-actions.pod:7686
32876 msgid "guestfs_touch"
32877 msgstr ""
32878
32879 #. type: verbatim
32880 #: ../src/guestfs-actions.pod:7688
32881 #, no-wrap
32882 msgid ""
32883 " int\n"
32884 " guestfs_touch (guestfs_h *g,\n"
32885 "                const char *path);\n"
32886 "\n"
32887 msgstr ""
32888
32889 #. type: =head2
32890 #: ../src/guestfs-actions.pod:7703
32891 msgid "guestfs_truncate"
32892 msgstr ""
32893
32894 #. type: verbatim
32895 #: ../src/guestfs-actions.pod:7705
32896 #, no-wrap
32897 msgid ""
32898 " int\n"
32899 " guestfs_truncate (guestfs_h *g,\n"
32900 "                   const char *path);\n"
32901 "\n"
32902 msgstr ""
32903
32904 #. type: =head2
32905 #: ../src/guestfs-actions.pod:7716
32906 msgid "guestfs_truncate_size"
32907 msgstr ""
32908
32909 #. type: verbatim
32910 #: ../src/guestfs-actions.pod:7718
32911 #, no-wrap
32912 msgid ""
32913 " int\n"
32914 " guestfs_truncate_size (guestfs_h *g,\n"
32915 "                        const char *path,\n"
32916 "                        int64_t size);\n"
32917 "\n"
32918 msgstr ""
32919
32920 #. type: textblock
32921 #: ../src/guestfs-actions.pod:7726
32922 msgid ""
32923 "If the current file size is less than C<size> then the file is extended to "
32924 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32925 "blocks are not allocated for the file until you write to it).  To create a "
32926 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32927 msgstr ""
32928
32929 #. type: =head2
32930 #: ../src/guestfs-actions.pod:7736
32931 msgid "guestfs_tune2fs"
32932 msgstr ""
32933
32934 #. type: verbatim
32935 #: ../src/guestfs-actions.pod:7738
32936 #, no-wrap
32937 msgid ""
32938 " int\n"
32939 " guestfs_tune2fs (guestfs_h *g,\n"
32940 "                  const char *device,\n"
32941 "                  ...);\n"
32942 "\n"
32943 msgstr ""
32944
32945 #. type: verbatim
32946 #: ../src/guestfs-actions.pod:7748
32947 #, no-wrap
32948 msgid ""
32949 " GUESTFS_TUNE2FS_FORCE, int force,\n"
32950 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
32951 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
32952 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
32953 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
32954 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
32955 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
32956 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
32957 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
32958 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
32959 "\n"
32960 msgstr ""
32961
32962 #. type: textblock
32963 #: ../src/guestfs-actions.pod:7828
32964 msgid ""
32965 "To get the current values of filesystem parameters, see "
32966 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
32967 "L<tune2fs(8)> man page."
32968 msgstr ""
32969
32970 #. type: =head2
32971 #: ../src/guestfs-actions.pod:7834
32972 msgid "guestfs_tune2fs_va"
32973 msgstr ""
32974
32975 #. type: verbatim
32976 #: ../src/guestfs-actions.pod:7836
32977 #, no-wrap
32978 msgid ""
32979 " int\n"
32980 " guestfs_tune2fs_va (guestfs_h *g,\n"
32981 "                     const char *device,\n"
32982 "                     va_list args);\n"
32983 "\n"
32984 msgstr ""
32985
32986 #. type: textblock
32987 #: ../src/guestfs-actions.pod:7841
32988 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
32989 msgstr ""
32990
32991 #. type: =head2
32992 #: ../src/guestfs-actions.pod:7845
32993 msgid "guestfs_tune2fs_argv"
32994 msgstr ""
32995
32996 #. type: verbatim
32997 #: ../src/guestfs-actions.pod:7847
32998 #, no-wrap
32999 msgid ""
33000 " int\n"
33001 " guestfs_tune2fs_argv (guestfs_h *g,\n"
33002 "                       const char *device,\n"
33003 "                       const struct guestfs_tune2fs_argv *optargs);\n"
33004 "\n"
33005 msgstr ""
33006
33007 #. type: textblock
33008 #: ../src/guestfs-actions.pod:7852
33009 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
33010 msgstr ""
33011
33012 #. type: =head2
33013 #: ../src/guestfs-actions.pod:7856
33014 msgid "guestfs_tune2fs_l"
33015 msgstr ""
33016
33017 #. type: verbatim
33018 #: ../src/guestfs-actions.pod:7858
33019 #, no-wrap
33020 msgid ""
33021 " char **\n"
33022 " guestfs_tune2fs_l (guestfs_h *g,\n"
33023 "                    const char *device);\n"
33024 "\n"
33025 msgstr ""
33026
33027 #. type: =head2
33028 #: ../src/guestfs-actions.pod:7878
33029 msgid "guestfs_txz_in"
33030 msgstr ""
33031
33032 #. type: verbatim
33033 #: ../src/guestfs-actions.pod:7880
33034 #, no-wrap
33035 msgid ""
33036 " int\n"
33037 " guestfs_txz_in (guestfs_h *g,\n"
33038 "                 const char *tarball,\n"
33039 "                 const char *directory);\n"
33040 "\n"
33041 msgstr ""
33042
33043 #. type: =head2
33044 #: ../src/guestfs-actions.pod:7892
33045 msgid "guestfs_txz_out"
33046 msgstr ""
33047
33048 #. type: verbatim
33049 #: ../src/guestfs-actions.pod:7894
33050 #, no-wrap
33051 msgid ""
33052 " int\n"
33053 " guestfs_txz_out (guestfs_h *g,\n"
33054 "                  const char *directory,\n"
33055 "                  const char *tarball);\n"
33056 "\n"
33057 msgstr ""
33058
33059 #. type: =head2
33060 #: ../src/guestfs-actions.pod:7906
33061 msgid "guestfs_umask"
33062 msgstr ""
33063
33064 #. type: verbatim
33065 #: ../src/guestfs-actions.pod:7908
33066 #, no-wrap
33067 msgid ""
33068 " int\n"
33069 " guestfs_umask (guestfs_h *g,\n"
33070 "                int mask);\n"
33071 "\n"
33072 msgstr ""
33073
33074 #. type: textblock
33075 #: ../src/guestfs-actions.pod:7924
33076 msgid ""
33077 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33078 "C<guestfs_mkdir>."
33079 msgstr ""
33080
33081 #. type: =head2
33082 #: ../src/guestfs-actions.pod:7933
33083 msgid "guestfs_umount"
33084 msgstr ""
33085
33086 #. type: verbatim
33087 #: ../src/guestfs-actions.pod:7935
33088 #, no-wrap
33089 msgid ""
33090 " int\n"
33091 " guestfs_umount (guestfs_h *g,\n"
33092 "                 const char *pathordevice);\n"
33093 "\n"
33094 msgstr ""
33095
33096 #. type: =head2
33097 #: ../src/guestfs-actions.pod:7947
33098 msgid "guestfs_umount_all"
33099 msgstr ""
33100
33101 #. type: verbatim
33102 #: ../src/guestfs-actions.pod:7949
33103 #, no-wrap
33104 msgid ""
33105 " int\n"
33106 " guestfs_umount_all (guestfs_h *g);\n"
33107 "\n"
33108 msgstr ""
33109
33110 #. type: =head2
33111 #: ../src/guestfs-actions.pod:7960
33112 msgid "guestfs_upload"
33113 msgstr ""
33114
33115 #. type: verbatim
33116 #: ../src/guestfs-actions.pod:7962
33117 #, no-wrap
33118 msgid ""
33119 " int\n"
33120 " guestfs_upload (guestfs_h *g,\n"
33121 "                 const char *filename,\n"
33122 "                 const char *remotefilename);\n"
33123 "\n"
33124 msgstr ""
33125
33126 #. type: textblock
33127 #: ../src/guestfs-actions.pod:7972
33128 msgid "See also C<guestfs_download>."
33129 msgstr ""
33130
33131 #. type: =head2
33132 #: ../src/guestfs-actions.pod:7983
33133 msgid "guestfs_upload_offset"
33134 msgstr ""
33135
33136 #. type: verbatim
33137 #: ../src/guestfs-actions.pod:7985
33138 #, no-wrap
33139 msgid ""
33140 " int\n"
33141 " guestfs_upload_offset (guestfs_h *g,\n"
33142 "                        const char *filename,\n"
33143 "                        const char *remotefilename,\n"
33144 "                        int64_t offset);\n"
33145 "\n"
33146 msgstr ""
33147
33148 #. type: textblock
33149 #: ../src/guestfs-actions.pod:8001
33150 msgid ""
33151 "Note that there is no limit on the amount of data that can be uploaded with "
33152 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33153 "full amount unless an error occurs."
33154 msgstr ""
33155
33156 #. type: textblock
33157 #: ../src/guestfs-actions.pod:8006
33158 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33159 msgstr ""
33160
33161 #. type: =head2
33162 #: ../src/guestfs-actions.pod:8017
33163 msgid "guestfs_utimens"
33164 msgstr ""
33165
33166 #. type: verbatim
33167 #: ../src/guestfs-actions.pod:8019
33168 #, no-wrap
33169 msgid ""
33170 " int\n"
33171 " guestfs_utimens (guestfs_h *g,\n"
33172 "                  const char *path,\n"
33173 "                  int64_t atsecs,\n"
33174 "                  int64_t atnsecs,\n"
33175 "                  int64_t mtsecs,\n"
33176 "                  int64_t mtnsecs);\n"
33177 "\n"
33178 msgstr ""
33179
33180 #. type: =head2
33181 #: ../src/guestfs-actions.pod:8048 ../src/guestfs-structs.pod:175
33182 msgid "guestfs_version"
33183 msgstr ""
33184
33185 #. type: verbatim
33186 #: ../src/guestfs-actions.pod:8050
33187 #, no-wrap
33188 msgid ""
33189 " struct guestfs_version *\n"
33190 " guestfs_version (guestfs_h *g);\n"
33191 "\n"
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs-actions.pod:8078
33196 msgid ""
33197 "I<Note:> Don't use this call to test for availability of features.  In "
33198 "enterprise distributions we backport features from later versions into "
33199 "earlier versions, making this an unreliable way to test for features.  Use "
33200 "C<guestfs_available> instead."
33201 msgstr ""
33202
33203 #. type: textblock
33204 #: ../src/guestfs-actions.pod:8084
33205 msgid ""
33206 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33207 "error.  I<The caller must call C<guestfs_free_version> after use>."
33208 msgstr ""
33209
33210 #. type: textblock
33211 #: ../src/guestfs-actions.pod:8088
33212 msgid "(Added in 1.0.58)"
33213 msgstr ""
33214
33215 #. type: =head2
33216 #: ../src/guestfs-actions.pod:8090
33217 msgid "guestfs_vfs_label"
33218 msgstr ""
33219
33220 #. type: verbatim
33221 #: ../src/guestfs-actions.pod:8092
33222 #, no-wrap
33223 msgid ""
33224 " char *\n"
33225 " guestfs_vfs_label (guestfs_h *g,\n"
33226 "                    const char *device);\n"
33227 "\n"
33228 msgstr ""
33229
33230 #. type: textblock
33231 #: ../src/guestfs-actions.pod:8101
33232 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33233 msgstr ""
33234
33235 #. type: textblock
33236 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-actions.pod:8143
33237 msgid "(Added in 1.3.18)"
33238 msgstr ""
33239
33240 #. type: =head2
33241 #: ../src/guestfs-actions.pod:8108
33242 msgid "guestfs_vfs_type"
33243 msgstr ""
33244
33245 #. type: verbatim
33246 #: ../src/guestfs-actions.pod:8110
33247 #, no-wrap
33248 msgid ""
33249 " char *\n"
33250 " guestfs_vfs_type (guestfs_h *g,\n"
33251 "                   const char *device);\n"
33252 "\n"
33253 msgstr ""
33254
33255 #. type: =head2
33256 #: ../src/guestfs-actions.pod:8127
33257 msgid "guestfs_vfs_uuid"
33258 msgstr ""
33259
33260 #. type: verbatim
33261 #: ../src/guestfs-actions.pod:8129
33262 #, no-wrap
33263 msgid ""
33264 " char *\n"
33265 " guestfs_vfs_uuid (guestfs_h *g,\n"
33266 "                   const char *device);\n"
33267 "\n"
33268 msgstr ""
33269
33270 #. type: textblock
33271 #: ../src/guestfs-actions.pod:8138
33272 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33273 msgstr ""
33274
33275 #. type: =head2
33276 #: ../src/guestfs-actions.pod:8145
33277 msgid "guestfs_vg_activate"
33278 msgstr ""
33279
33280 #. type: verbatim
33281 #: ../src/guestfs-actions.pod:8147
33282 #, no-wrap
33283 msgid ""
33284 " int\n"
33285 " guestfs_vg_activate (guestfs_h *g,\n"
33286 "                      int activate,\n"
33287 "                      char *const *volgroups);\n"
33288 "\n"
33289 msgstr ""
33290
33291 #. type: =head2
33292 #: ../src/guestfs-actions.pod:8164
33293 msgid "guestfs_vg_activate_all"
33294 msgstr ""
33295
33296 #. type: verbatim
33297 #: ../src/guestfs-actions.pod:8166
33298 #, no-wrap
33299 msgid ""
33300 " int\n"
33301 " guestfs_vg_activate_all (guestfs_h *g,\n"
33302 "                          int activate);\n"
33303 "\n"
33304 msgstr ""
33305
33306 #. type: =head2
33307 #: ../src/guestfs-actions.pod:8179
33308 msgid "guestfs_vgcreate"
33309 msgstr ""
33310
33311 #. type: verbatim
33312 #: ../src/guestfs-actions.pod:8181
33313 #, no-wrap
33314 msgid ""
33315 " int\n"
33316 " guestfs_vgcreate (guestfs_h *g,\n"
33317 "                   const char *volgroup,\n"
33318 "                   char *const *physvols);\n"
33319 "\n"
33320 msgstr ""
33321
33322 #. type: =head2
33323 #: ../src/guestfs-actions.pod:8193
33324 msgid "guestfs_vglvuuids"
33325 msgstr ""
33326
33327 #. type: verbatim
33328 #: ../src/guestfs-actions.pod:8195
33329 #, no-wrap
33330 msgid ""
33331 " char **\n"
33332 " guestfs_vglvuuids (guestfs_h *g,\n"
33333 "                    const char *vgname);\n"
33334 "\n"
33335 msgstr ""
33336
33337 #. type: textblock
33338 #: ../src/guestfs-actions.pod:8202
33339 msgid ""
33340 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33341 "associate logical volumes and volume groups."
33342 msgstr ""
33343
33344 #. type: textblock
33345 #: ../src/guestfs-actions.pod:8205
33346 msgid "See also C<guestfs_vgpvuuids>."
33347 msgstr ""
33348
33349 #. type: =head2
33350 #: ../src/guestfs-actions.pod:8213
33351 msgid "guestfs_vgpvuuids"
33352 msgstr ""
33353
33354 #. type: verbatim
33355 #: ../src/guestfs-actions.pod:8215
33356 #, no-wrap
33357 msgid ""
33358 " char **\n"
33359 " guestfs_vgpvuuids (guestfs_h *g,\n"
33360 "                    const char *vgname);\n"
33361 "\n"
33362 msgstr ""
33363
33364 #. type: textblock
33365 #: ../src/guestfs-actions.pod:8222
33366 msgid ""
33367 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33368 "associate physical volumes and volume groups."
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../src/guestfs-actions.pod:8225
33373 msgid "See also C<guestfs_vglvuuids>."
33374 msgstr ""
33375
33376 #. type: =head2
33377 #: ../src/guestfs-actions.pod:8233
33378 msgid "guestfs_vgremove"
33379 msgstr ""
33380
33381 #. type: verbatim
33382 #: ../src/guestfs-actions.pod:8235
33383 #, no-wrap
33384 msgid ""
33385 " int\n"
33386 " guestfs_vgremove (guestfs_h *g,\n"
33387 "                   const char *vgname);\n"
33388 "\n"
33389 msgstr ""
33390
33391 #. type: =head2
33392 #: ../src/guestfs-actions.pod:8248
33393 msgid "guestfs_vgrename"
33394 msgstr ""
33395
33396 #. type: verbatim
33397 #: ../src/guestfs-actions.pod:8250
33398 #, no-wrap
33399 msgid ""
33400 " int\n"
33401 " guestfs_vgrename (guestfs_h *g,\n"
33402 "                   const char *volgroup,\n"
33403 "                   const char *newvolgroup);\n"
33404 "\n"
33405 msgstr ""
33406
33407 #. type: =head2
33408 #: ../src/guestfs-actions.pod:8261
33409 msgid "guestfs_vgs"
33410 msgstr ""
33411
33412 #. type: verbatim
33413 #: ../src/guestfs-actions.pod:8263
33414 #, no-wrap
33415 msgid ""
33416 " char **\n"
33417 " guestfs_vgs (guestfs_h *g);\n"
33418 "\n"
33419 msgstr ""
33420
33421 #. type: textblock
33422 #: ../src/guestfs-actions.pod:8272
33423 msgid "See also C<guestfs_vgs_full>."
33424 msgstr ""
33425
33426 #. type: =head2
33427 #: ../src/guestfs-actions.pod:8280
33428 msgid "guestfs_vgs_full"
33429 msgstr ""
33430
33431 #. type: verbatim
33432 #: ../src/guestfs-actions.pod:8282
33433 #, no-wrap
33434 msgid ""
33435 " struct guestfs_lvm_vg_list *\n"
33436 " guestfs_vgs_full (guestfs_h *g);\n"
33437 "\n"
33438 msgstr ""
33439
33440 #. type: textblock
33441 #: ../src/guestfs-actions.pod:8288
33442 msgid ""
33443 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33444 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
33445 "use>."
33446 msgstr ""
33447
33448 #. type: =head2
33449 #: ../src/guestfs-actions.pod:8294
33450 msgid "guestfs_vgscan"
33451 msgstr ""
33452
33453 #. type: verbatim
33454 #: ../src/guestfs-actions.pod:8296
33455 #, no-wrap
33456 msgid ""
33457 " int\n"
33458 " guestfs_vgscan (guestfs_h *g);\n"
33459 "\n"
33460 msgstr ""
33461
33462 #. type: =head2
33463 #: ../src/guestfs-actions.pod:8306
33464 msgid "guestfs_vguuid"
33465 msgstr ""
33466
33467 #. type: verbatim
33468 #: ../src/guestfs-actions.pod:8308
33469 #, no-wrap
33470 msgid ""
33471 " char *\n"
33472 " guestfs_vguuid (guestfs_h *g,\n"
33473 "                 const char *vgname);\n"
33474 "\n"
33475 msgstr ""
33476
33477 #. type: =head2
33478 #: ../src/guestfs-actions.pod:8319
33479 msgid "guestfs_wait_ready"
33480 msgstr ""
33481
33482 #. type: verbatim
33483 #: ../src/guestfs-actions.pod:8321
33484 #, no-wrap
33485 msgid ""
33486 " int\n"
33487 " guestfs_wait_ready (guestfs_h *g);\n"
33488 "\n"
33489 msgstr ""
33490
33491 #. type: textblock
33492 #: ../src/guestfs-actions.pod:8324
33493 msgid ""
33494 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33495 "instead."
33496 msgstr ""
33497
33498 #. type: textblock
33499 #: ../src/guestfs-actions.pod:8331
33500 msgid "This function is a no op."
33501 msgstr ""
33502
33503 #. type: textblock
33504 #: ../src/guestfs-actions.pod:8333
33505 msgid ""
33506 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33507 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33508 "is no longer necessary because C<guestfs_launch> now does the waiting."
33509 msgstr ""
33510
33511 #. type: textblock
33512 #: ../src/guestfs-actions.pod:8338
33513 msgid ""
33514 "If you see any calls to this function in code then you can just remove them, "
33515 "unless you want to retain compatibility with older versions of the API."
33516 msgstr ""
33517
33518 #. type: =head2
33519 #: ../src/guestfs-actions.pod:8346
33520 msgid "guestfs_wc_c"
33521 msgstr ""
33522
33523 #. type: verbatim
33524 #: ../src/guestfs-actions.pod:8348
33525 #, no-wrap
33526 msgid ""
33527 " int\n"
33528 " guestfs_wc_c (guestfs_h *g,\n"
33529 "               const char *path);\n"
33530 "\n"
33531 msgstr ""
33532
33533 #. type: =head2
33534 #: ../src/guestfs-actions.pod:8359
33535 msgid "guestfs_wc_l"
33536 msgstr ""
33537
33538 #. type: verbatim
33539 #: ../src/guestfs-actions.pod:8361
33540 #, no-wrap
33541 msgid ""
33542 " int\n"
33543 " guestfs_wc_l (guestfs_h *g,\n"
33544 "               const char *path);\n"
33545 "\n"
33546 msgstr ""
33547
33548 #. type: =head2
33549 #: ../src/guestfs-actions.pod:8372
33550 msgid "guestfs_wc_w"
33551 msgstr ""
33552
33553 #. type: verbatim
33554 #: ../src/guestfs-actions.pod:8374
33555 #, no-wrap
33556 msgid ""
33557 " int\n"
33558 " guestfs_wc_w (guestfs_h *g,\n"
33559 "               const char *path);\n"
33560 "\n"
33561 msgstr ""
33562
33563 #. type: =head2
33564 #: ../src/guestfs-actions.pod:8385
33565 msgid "guestfs_write"
33566 msgstr ""
33567
33568 #. type: verbatim
33569 #: ../src/guestfs-actions.pod:8387
33570 #, no-wrap
33571 msgid ""
33572 " int\n"
33573 " guestfs_write (guestfs_h *g,\n"
33574 "                const char *path,\n"
33575 "                const char *content,\n"
33576 "                size_t content_size);\n"
33577 "\n"
33578 msgstr ""
33579
33580 #. type: textblock
33581 #: ../src/guestfs-actions.pod:8396
33582 msgid "See also C<guestfs_write_append>."
33583 msgstr ""
33584
33585 #. type: =head2
33586 #: ../src/guestfs-actions.pod:8405
33587 msgid "guestfs_write_append"
33588 msgstr ""
33589
33590 #. type: verbatim
33591 #: ../src/guestfs-actions.pod:8407
33592 #, no-wrap
33593 msgid ""
33594 " int\n"
33595 " guestfs_write_append (guestfs_h *g,\n"
33596 "                       const char *path,\n"
33597 "                       const char *content,\n"
33598 "                       size_t content_size);\n"
33599 "\n"
33600 msgstr ""
33601
33602 #. type: textblock
33603 #: ../src/guestfs-actions.pod:8416
33604 msgid "See also C<guestfs_write>."
33605 msgstr ""
33606
33607 #. type: =head2
33608 #: ../src/guestfs-actions.pod:8425
33609 msgid "guestfs_write_file"
33610 msgstr ""
33611
33612 #. type: verbatim
33613 #: ../src/guestfs-actions.pod:8427
33614 #, no-wrap
33615 msgid ""
33616 " int\n"
33617 " guestfs_write_file (guestfs_h *g,\n"
33618 "                     const char *path,\n"
33619 "                     const char *content,\n"
33620 "                     int size);\n"
33621 "\n"
33622 msgstr ""
33623
33624 #. type: textblock
33625 #: ../src/guestfs-actions.pod:8433
33626 msgid ""
33627 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33628 "instead."
33629 msgstr ""
33630
33631 #. type: =head2
33632 #: ../src/guestfs-actions.pod:8458
33633 msgid "guestfs_zegrep"
33634 msgstr ""
33635
33636 #. type: verbatim
33637 #: ../src/guestfs-actions.pod:8460
33638 #, no-wrap
33639 msgid ""
33640 " char **\n"
33641 " guestfs_zegrep (guestfs_h *g,\n"
33642 "                 const char *regex,\n"
33643 "                 const char *path);\n"
33644 "\n"
33645 msgstr ""
33646
33647 #. type: =head2
33648 #: ../src/guestfs-actions.pod:8477
33649 msgid "guestfs_zegrepi"
33650 msgstr ""
33651
33652 #. type: verbatim
33653 #: ../src/guestfs-actions.pod:8479
33654 #, no-wrap
33655 msgid ""
33656 " char **\n"
33657 " guestfs_zegrepi (guestfs_h *g,\n"
33658 "                  const char *regex,\n"
33659 "                  const char *path);\n"
33660 "\n"
33661 msgstr ""
33662
33663 #. type: =head2
33664 #: ../src/guestfs-actions.pod:8496
33665 msgid "guestfs_zero"
33666 msgstr ""
33667
33668 #. type: verbatim
33669 #: ../src/guestfs-actions.pod:8498
33670 #, no-wrap
33671 msgid ""
33672 " int\n"
33673 " guestfs_zero (guestfs_h *g,\n"
33674 "               const char *device);\n"
33675 "\n"
33676 msgstr ""
33677
33678 #. type: textblock
33679 #: ../src/guestfs-actions.pod:8512
33680 msgid ""
33681 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33682 "C<guestfs_is_zero_device>"
33683 msgstr ""
33684
33685 #. type: =head2
33686 #: ../src/guestfs-actions.pod:8524
33687 msgid "guestfs_zero_device"
33688 msgstr ""
33689
33690 #. type: verbatim
33691 #: ../src/guestfs-actions.pod:8526
33692 #, no-wrap
33693 msgid ""
33694 " int\n"
33695 " guestfs_zero_device (guestfs_h *g,\n"
33696 "                      const char *device);\n"
33697 "\n"
33698 msgstr ""
33699
33700 #. type: textblock
33701 #: ../src/guestfs-actions.pod:8530
33702 msgid ""
33703 "This command writes zeroes over the entire C<device>.  Compare with "
33704 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33705 msgstr ""
33706
33707 #. type: textblock
33708 #: ../src/guestfs-actions.pod:8545
33709 msgid "(Added in 1.3.1)"
33710 msgstr ""
33711
33712 #. type: =head2
33713 #: ../src/guestfs-actions.pod:8547
33714 msgid "guestfs_zerofree"
33715 msgstr ""
33716
33717 #. type: verbatim
33718 #: ../src/guestfs-actions.pod:8549
33719 #, no-wrap
33720 msgid ""
33721 " int\n"
33722 " guestfs_zerofree (guestfs_h *g,\n"
33723 "                   const char *device);\n"
33724 "\n"
33725 msgstr ""
33726
33727 #. type: =head2
33728 #: ../src/guestfs-actions.pod:8568
33729 msgid "guestfs_zfgrep"
33730 msgstr ""
33731
33732 #. type: verbatim
33733 #: ../src/guestfs-actions.pod:8570
33734 #, no-wrap
33735 msgid ""
33736 " char **\n"
33737 " guestfs_zfgrep (guestfs_h *g,\n"
33738 "                 const char *pattern,\n"
33739 "                 const char *path);\n"
33740 "\n"
33741 msgstr ""
33742
33743 #. type: =head2
33744 #: ../src/guestfs-actions.pod:8587
33745 msgid "guestfs_zfgrepi"
33746 msgstr ""
33747
33748 #. type: verbatim
33749 #: ../src/guestfs-actions.pod:8589
33750 #, no-wrap
33751 msgid ""
33752 " char **\n"
33753 " guestfs_zfgrepi (guestfs_h *g,\n"
33754 "                  const char *pattern,\n"
33755 "                  const char *path);\n"
33756 "\n"
33757 msgstr ""
33758
33759 #. type: =head2
33760 #: ../src/guestfs-actions.pod:8606
33761 msgid "guestfs_zfile"
33762 msgstr ""
33763
33764 #. type: verbatim
33765 #: ../src/guestfs-actions.pod:8608
33766 #, no-wrap
33767 msgid ""
33768 " char *\n"
33769 " guestfs_zfile (guestfs_h *g,\n"
33770 "                const char *meth,\n"
33771 "                const char *path);\n"
33772 "\n"
33773 msgstr ""
33774
33775 #. type: textblock
33776 #: ../src/guestfs-actions.pod:8613
33777 msgid ""
33778 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33779 "instead."
33780 msgstr ""
33781
33782 #. type: textblock
33783 #: ../src/guestfs-actions.pod:8625
33784 msgid ""
33785 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33786 "files."
33787 msgstr ""
33788
33789 #. type: =head2
33790 #: ../src/guestfs-actions.pod:8633
33791 msgid "guestfs_zgrep"
33792 msgstr ""
33793
33794 #. type: verbatim
33795 #: ../src/guestfs-actions.pod:8635
33796 #, no-wrap
33797 msgid ""
33798 " char **\n"
33799 " guestfs_zgrep (guestfs_h *g,\n"
33800 "                const char *regex,\n"
33801 "                const char *path);\n"
33802 "\n"
33803 msgstr ""
33804
33805 #. type: =head2
33806 #: ../src/guestfs-actions.pod:8652
33807 msgid "guestfs_zgrepi"
33808 msgstr ""
33809
33810 #. type: verbatim
33811 #: ../src/guestfs-actions.pod:8654
33812 #, no-wrap
33813 msgid ""
33814 " char **\n"
33815 " guestfs_zgrepi (guestfs_h *g,\n"
33816 "                 const char *regex,\n"
33817 "                 const char *path);\n"
33818 "\n"
33819 msgstr ""
33820
33821 #. type: =item
33822 #: ../src/guestfs-availability.pod:3
33823 msgid "B<augeas>"
33824 msgstr ""
33825
33826 #. type: textblock
33827 #: ../src/guestfs-availability.pod:5
33828 msgid ""
33829 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
33830 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
33831 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
33832 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
33833 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
33834 msgstr ""
33835
33836 #. type: =item
33837 #: ../src/guestfs-availability.pod:21
33838 msgid "B<btrfs>"
33839 msgstr ""
33840
33841 #. type: textblock
33842 #: ../src/guestfs-availability.pod:23
33843 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33844 msgstr ""
33845
33846 #. type: =item
33847 #: ../src/guestfs-availability.pod:26
33848 msgid "B<grub>"
33849 msgstr ""
33850
33851 #. type: textblock
33852 #: ../src/guestfs-availability.pod:28
33853 msgid "The following functions: L</guestfs_grub_install>"
33854 msgstr ""
33855
33856 #. type: =item
33857 #: ../src/guestfs-availability.pod:31
33858 msgid "B<inotify>"
33859 msgstr ""
33860
33861 #. type: textblock
33862 #: ../src/guestfs-availability.pod:33
33863 msgid ""
33864 "The following functions: L</guestfs_inotify_add_watch> "
33865 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
33866 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33867 msgstr ""
33868
33869 #. type: =item
33870 #: ../src/guestfs-availability.pod:41
33871 msgid "B<linuxfsuuid>"
33872 msgstr ""
33873
33874 #. type: textblock
33875 #: ../src/guestfs-availability.pod:43
33876 msgid ""
33877 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
33878 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33879 msgstr ""
33880
33881 #. type: =item
33882 #: ../src/guestfs-availability.pod:50
33883 msgid "B<linuxmodules>"
33884 msgstr ""
33885
33886 #. type: textblock
33887 #: ../src/guestfs-availability.pod:52
33888 msgid "The following functions: L</guestfs_modprobe>"
33889 msgstr ""
33890
33891 #. type: =item
33892 #: ../src/guestfs-availability.pod:55
33893 msgid "B<linuxxattrs>"
33894 msgstr ""
33895
33896 #. type: textblock
33897 #: ../src/guestfs-availability.pod:57
33898 msgid ""
33899 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
33900 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
33901 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
33902 "L</guestfs_setxattr>"
33903 msgstr ""
33904
33905 #. type: =item
33906 #: ../src/guestfs-availability.pod:68
33907 msgid "B<luks>"
33908 msgstr ""
33909
33910 #. type: textblock
33911 #: ../src/guestfs-availability.pod:70
33912 msgid ""
33913 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
33914 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
33915 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33916 msgstr ""
33917
33918 #. type: =item
33919 #: ../src/guestfs-availability.pod:79
33920 msgid "B<lvm2>"
33921 msgstr ""
33922
33923 #. type: textblock
33924 #: ../src/guestfs-availability.pod:81
33925 msgid ""
33926 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
33927 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
33928 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
33929 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
33930 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
33931 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
33932 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
33933 "L</guestfs_vgs_full>"
33934 msgstr ""
33935
33936 #. type: =item
33937 #: ../src/guestfs-availability.pod:104
33938 msgid "B<mdadm>"
33939 msgstr ""
33940
33941 #. type: textblock
33942 #: ../src/guestfs-availability.pod:106
33943 msgid "The following functions: L</guestfs_mdadm_create> L</guestfs_mdadm_detail>"
33944 msgstr ""
33945
33946 #. type: =item
33947 #: ../src/guestfs-availability.pod:110
33948 msgid "B<mknod>"
33949 msgstr ""
33950
33951 #. type: textblock
33952 #: ../src/guestfs-availability.pod:112
33953 msgid ""
33954 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
33955 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
33956 msgstr ""
33957
33958 #. type: =item
33959 #: ../src/guestfs-availability.pod:118
33960 msgid "B<ntfs3g>"
33961 msgstr ""
33962
33963 #. type: textblock
33964 #: ../src/guestfs-availability.pod:120
33965 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33966 msgstr ""
33967
33968 #. type: =item
33969 #: ../src/guestfs-availability.pod:123
33970 msgid "B<ntfsprogs>"
33971 msgstr ""
33972
33973 #. type: textblock
33974 #: ../src/guestfs-availability.pod:125
33975 msgid ""
33976 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33977 "L</guestfs_ntfsresize_size>"
33978 msgstr ""
33979
33980 #. type: =item
33981 #: ../src/guestfs-availability.pod:130
33982 msgid "B<realpath>"
33983 msgstr ""
33984
33985 #. type: textblock
33986 #: ../src/guestfs-availability.pod:132
33987 msgid "The following functions: L</guestfs_realpath>"
33988 msgstr ""
33989
33990 #. type: =item
33991 #: ../src/guestfs-availability.pod:135
33992 msgid "B<scrub>"
33993 msgstr ""
33994
33995 #. type: textblock
33996 #: ../src/guestfs-availability.pod:137
33997 msgid ""
33998 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
33999 "L</guestfs_scrub_freespace>"
34000 msgstr ""
34001
34002 #. type: =item
34003 #: ../src/guestfs-availability.pod:142
34004 msgid "B<selinux>"
34005 msgstr ""
34006
34007 #. type: textblock
34008 #: ../src/guestfs-availability.pod:144
34009 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34010 msgstr ""
34011
34012 #. type: =item
34013 #: ../src/guestfs-availability.pod:148
34014 msgid "B<xz>"
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs-availability.pod:150
34019 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34020 msgstr ""
34021
34022 #. type: =item
34023 #: ../src/guestfs-availability.pod:154
34024 msgid "B<zerofree>"
34025 msgstr ""
34026
34027 #. type: textblock
34028 #: ../src/guestfs-availability.pod:156
34029 msgid "The following functions: L</guestfs_zerofree>"
34030 msgstr ""
34031
34032 #. type: =head2
34033 #: ../src/guestfs-structs.pod:1
34034 msgid "guestfs_int_bool"
34035 msgstr ""
34036
34037 #. type: verbatim
34038 #: ../src/guestfs-structs.pod:3
34039 #, no-wrap
34040 msgid ""
34041 " struct guestfs_int_bool {\n"
34042 "   int32_t i;\n"
34043 "   int32_t b;\n"
34044 " };\n"
34045 " \n"
34046 msgstr ""
34047
34048 #. type: verbatim
34049 #: ../src/guestfs-structs.pod:8
34050 #, no-wrap
34051 msgid ""
34052 " struct guestfs_int_bool_list {\n"
34053 "   uint32_t len; /* Number of elements in list. */\n"
34054 "   struct guestfs_int_bool *val; /* Elements. */\n"
34055 " };\n"
34056 " \n"
34057 msgstr ""
34058
34059 #. type: verbatim
34060 #: ../src/guestfs-structs.pod:13
34061 #, no-wrap
34062 msgid ""
34063 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34064 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34065 "\n"
34066 msgstr ""
34067
34068 #. type: =head2
34069 #: ../src/guestfs-structs.pod:16
34070 msgid "guestfs_lvm_pv"
34071 msgstr ""
34072
34073 #. type: verbatim
34074 #: ../src/guestfs-structs.pod:18
34075 #, no-wrap
34076 msgid ""
34077 " struct guestfs_lvm_pv {\n"
34078 "   char *pv_name;\n"
34079 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34080 "*/\n"
34081 "   char pv_uuid[32];\n"
34082 "   char *pv_fmt;\n"
34083 "   uint64_t pv_size;\n"
34084 "   uint64_t dev_size;\n"
34085 "   uint64_t pv_free;\n"
34086 "   uint64_t pv_used;\n"
34087 "   char *pv_attr;\n"
34088 "   int64_t pv_pe_count;\n"
34089 "   int64_t pv_pe_alloc_count;\n"
34090 "   char *pv_tags;\n"
34091 "   uint64_t pe_start;\n"
34092 "   int64_t pv_mda_count;\n"
34093 "   uint64_t pv_mda_free;\n"
34094 " };\n"
34095 " \n"
34096 msgstr ""
34097
34098 #. type: verbatim
34099 #: ../src/guestfs-structs.pod:36
34100 #, no-wrap
34101 msgid ""
34102 " struct guestfs_lvm_pv_list {\n"
34103 "   uint32_t len; /* Number of elements in list. */\n"
34104 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34105 " };\n"
34106 " \n"
34107 msgstr ""
34108
34109 #. type: verbatim
34110 #: ../src/guestfs-structs.pod:41
34111 #, no-wrap
34112 msgid ""
34113 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34114 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34115 "\n"
34116 msgstr ""
34117
34118 #. type: =head2
34119 #: ../src/guestfs-structs.pod:44
34120 msgid "guestfs_lvm_vg"
34121 msgstr ""
34122
34123 #. type: verbatim
34124 #: ../src/guestfs-structs.pod:46
34125 #, no-wrap
34126 msgid ""
34127 " struct guestfs_lvm_vg {\n"
34128 "   char *vg_name;\n"
34129 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34130 "*/\n"
34131 "   char vg_uuid[32];\n"
34132 "   char *vg_fmt;\n"
34133 "   char *vg_attr;\n"
34134 "   uint64_t vg_size;\n"
34135 "   uint64_t vg_free;\n"
34136 "   char *vg_sysid;\n"
34137 "   uint64_t vg_extent_size;\n"
34138 "   int64_t vg_extent_count;\n"
34139 "   int64_t vg_free_count;\n"
34140 "   int64_t max_lv;\n"
34141 "   int64_t max_pv;\n"
34142 "   int64_t pv_count;\n"
34143 "   int64_t lv_count;\n"
34144 "   int64_t snap_count;\n"
34145 "   int64_t vg_seqno;\n"
34146 "   char *vg_tags;\n"
34147 "   int64_t vg_mda_count;\n"
34148 "   uint64_t vg_mda_free;\n"
34149 " };\n"
34150 " \n"
34151 msgstr ""
34152
34153 #. type: verbatim
34154 #: ../src/guestfs-structs.pod:69
34155 #, no-wrap
34156 msgid ""
34157 " struct guestfs_lvm_vg_list {\n"
34158 "   uint32_t len; /* Number of elements in list. */\n"
34159 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34160 " };\n"
34161 " \n"
34162 msgstr ""
34163
34164 #. type: verbatim
34165 #: ../src/guestfs-structs.pod:74
34166 #, no-wrap
34167 msgid ""
34168 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34169 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34170 "\n"
34171 msgstr ""
34172
34173 #. type: =head2
34174 #: ../src/guestfs-structs.pod:77
34175 msgid "guestfs_lvm_lv"
34176 msgstr ""
34177
34178 #. type: verbatim
34179 #: ../src/guestfs-structs.pod:79
34180 #, no-wrap
34181 msgid ""
34182 " struct guestfs_lvm_lv {\n"
34183 "   char *lv_name;\n"
34184 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34185 "*/\n"
34186 "   char lv_uuid[32];\n"
34187 "   char *lv_attr;\n"
34188 "   int64_t lv_major;\n"
34189 "   int64_t lv_minor;\n"
34190 "   int64_t lv_kernel_major;\n"
34191 "   int64_t lv_kernel_minor;\n"
34192 "   uint64_t lv_size;\n"
34193 "   int64_t seg_count;\n"
34194 "   char *origin;\n"
34195 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34196 "   float snap_percent;\n"
34197 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34198 "   float copy_percent;\n"
34199 "   char *move_pv;\n"
34200 "   char *lv_tags;\n"
34201 "   char *mirror_log;\n"
34202 "   char *modules;\n"
34203 " };\n"
34204 " \n"
34205 msgstr ""
34206
34207 #. type: verbatim
34208 #: ../src/guestfs-structs.pod:101
34209 #, no-wrap
34210 msgid ""
34211 " struct guestfs_lvm_lv_list {\n"
34212 "   uint32_t len; /* Number of elements in list. */\n"
34213 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34214 " };\n"
34215 " \n"
34216 msgstr ""
34217
34218 #. type: verbatim
34219 #: ../src/guestfs-structs.pod:106
34220 #, no-wrap
34221 msgid ""
34222 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34223 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34224 "\n"
34225 msgstr ""
34226
34227 #. type: verbatim
34228 #: ../src/guestfs-structs.pod:111
34229 #, no-wrap
34230 msgid ""
34231 " struct guestfs_stat {\n"
34232 "   int64_t dev;\n"
34233 "   int64_t ino;\n"
34234 "   int64_t mode;\n"
34235 "   int64_t nlink;\n"
34236 "   int64_t uid;\n"
34237 "   int64_t gid;\n"
34238 "   int64_t rdev;\n"
34239 "   int64_t size;\n"
34240 "   int64_t blksize;\n"
34241 "   int64_t blocks;\n"
34242 "   int64_t atime;\n"
34243 "   int64_t mtime;\n"
34244 "   int64_t ctime;\n"
34245 " };\n"
34246 " \n"
34247 msgstr ""
34248
34249 #. type: verbatim
34250 #: ../src/guestfs-structs.pod:127
34251 #, no-wrap
34252 msgid ""
34253 " struct guestfs_stat_list {\n"
34254 "   uint32_t len; /* Number of elements in list. */\n"
34255 "   struct guestfs_stat *val; /* Elements. */\n"
34256 " };\n"
34257 " \n"
34258 msgstr ""
34259
34260 #. type: verbatim
34261 #: ../src/guestfs-structs.pod:132
34262 #, no-wrap
34263 msgid ""
34264 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34265 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34266 "\n"
34267 msgstr ""
34268
34269 #. type: verbatim
34270 #: ../src/guestfs-structs.pod:137
34271 #, no-wrap
34272 msgid ""
34273 " struct guestfs_statvfs {\n"
34274 "   int64_t bsize;\n"
34275 "   int64_t frsize;\n"
34276 "   int64_t blocks;\n"
34277 "   int64_t bfree;\n"
34278 "   int64_t bavail;\n"
34279 "   int64_t files;\n"
34280 "   int64_t ffree;\n"
34281 "   int64_t favail;\n"
34282 "   int64_t fsid;\n"
34283 "   int64_t flag;\n"
34284 "   int64_t namemax;\n"
34285 " };\n"
34286 " \n"
34287 msgstr ""
34288
34289 #. type: verbatim
34290 #: ../src/guestfs-structs.pod:151
34291 #, no-wrap
34292 msgid ""
34293 " struct guestfs_statvfs_list {\n"
34294 "   uint32_t len; /* Number of elements in list. */\n"
34295 "   struct guestfs_statvfs *val; /* Elements. */\n"
34296 " };\n"
34297 " \n"
34298 msgstr ""
34299
34300 #. type: verbatim
34301 #: ../src/guestfs-structs.pod:156
34302 #, no-wrap
34303 msgid ""
34304 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34305 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34306 "\n"
34307 msgstr ""
34308
34309 #. type: =head2
34310 #: ../src/guestfs-structs.pod:159
34311 msgid "guestfs_dirent"
34312 msgstr ""
34313
34314 #. type: verbatim
34315 #: ../src/guestfs-structs.pod:161
34316 #, no-wrap
34317 msgid ""
34318 " struct guestfs_dirent {\n"
34319 "   int64_t ino;\n"
34320 "   char ftyp;\n"
34321 "   char *name;\n"
34322 " };\n"
34323 " \n"
34324 msgstr ""
34325
34326 #. type: verbatim
34327 #: ../src/guestfs-structs.pod:167
34328 #, no-wrap
34329 msgid ""
34330 " struct guestfs_dirent_list {\n"
34331 "   uint32_t len; /* Number of elements in list. */\n"
34332 "   struct guestfs_dirent *val; /* Elements. */\n"
34333 " };\n"
34334 " \n"
34335 msgstr ""
34336
34337 #. type: verbatim
34338 #: ../src/guestfs-structs.pod:172
34339 #, no-wrap
34340 msgid ""
34341 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34342 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34343 "\n"
34344 msgstr ""
34345
34346 #. type: verbatim
34347 #: ../src/guestfs-structs.pod:177
34348 #, no-wrap
34349 msgid ""
34350 " struct guestfs_version {\n"
34351 "   int64_t major;\n"
34352 "   int64_t minor;\n"
34353 "   int64_t release;\n"
34354 "   char *extra;\n"
34355 " };\n"
34356 " \n"
34357 msgstr ""
34358
34359 #. type: verbatim
34360 #: ../src/guestfs-structs.pod:184
34361 #, no-wrap
34362 msgid ""
34363 " struct guestfs_version_list {\n"
34364 "   uint32_t len; /* Number of elements in list. */\n"
34365 "   struct guestfs_version *val; /* Elements. */\n"
34366 " };\n"
34367 " \n"
34368 msgstr ""
34369
34370 #. type: verbatim
34371 #: ../src/guestfs-structs.pod:189
34372 #, no-wrap
34373 msgid ""
34374 " void guestfs_free_version (struct guestfs_free_version *);\n"
34375 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34376 "\n"
34377 msgstr ""
34378
34379 #. type: =head2
34380 #: ../src/guestfs-structs.pod:192
34381 msgid "guestfs_xattr"
34382 msgstr ""
34383
34384 #. type: verbatim
34385 #: ../src/guestfs-structs.pod:194
34386 #, no-wrap
34387 msgid ""
34388 " struct guestfs_xattr {\n"
34389 "   char *attrname;\n"
34390 "   /* The next two fields describe a byte array. */\n"
34391 "   uint32_t attrval_len;\n"
34392 "   char *attrval;\n"
34393 " };\n"
34394 " \n"
34395 msgstr ""
34396
34397 #. type: verbatim
34398 #: ../src/guestfs-structs.pod:201
34399 #, no-wrap
34400 msgid ""
34401 " struct guestfs_xattr_list {\n"
34402 "   uint32_t len; /* Number of elements in list. */\n"
34403 "   struct guestfs_xattr *val; /* Elements. */\n"
34404 " };\n"
34405 " \n"
34406 msgstr ""
34407
34408 #. type: verbatim
34409 #: ../src/guestfs-structs.pod:206
34410 #, no-wrap
34411 msgid ""
34412 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34413 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34414 "\n"
34415 msgstr ""
34416
34417 #. type: =head2
34418 #: ../src/guestfs-structs.pod:209
34419 msgid "guestfs_inotify_event"
34420 msgstr ""
34421
34422 #. type: verbatim
34423 #: ../src/guestfs-structs.pod:211
34424 #, no-wrap
34425 msgid ""
34426 " struct guestfs_inotify_event {\n"
34427 "   int64_t in_wd;\n"
34428 "   uint32_t in_mask;\n"
34429 "   uint32_t in_cookie;\n"
34430 "   char *in_name;\n"
34431 " };\n"
34432 " \n"
34433 msgstr ""
34434
34435 #. type: verbatim
34436 #: ../src/guestfs-structs.pod:218
34437 #, no-wrap
34438 msgid ""
34439 " struct guestfs_inotify_event_list {\n"
34440 "   uint32_t len; /* Number of elements in list. */\n"
34441 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34442 " };\n"
34443 " \n"
34444 msgstr ""
34445
34446 #. type: verbatim
34447 #: ../src/guestfs-structs.pod:223
34448 #, no-wrap
34449 msgid ""
34450 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34451 " void guestfs_free_inotify_event_list (struct "
34452 "guestfs_free_inotify_event_list *);\n"
34453 "\n"
34454 msgstr ""
34455
34456 #. type: =head2
34457 #: ../src/guestfs-structs.pod:226
34458 msgid "guestfs_partition"
34459 msgstr ""
34460
34461 #. type: verbatim
34462 #: ../src/guestfs-structs.pod:228
34463 #, no-wrap
34464 msgid ""
34465 " struct guestfs_partition {\n"
34466 "   int32_t part_num;\n"
34467 "   uint64_t part_start;\n"
34468 "   uint64_t part_end;\n"
34469 "   uint64_t part_size;\n"
34470 " };\n"
34471 " \n"
34472 msgstr ""
34473
34474 #. type: verbatim
34475 #: ../src/guestfs-structs.pod:235
34476 #, no-wrap
34477 msgid ""
34478 " struct guestfs_partition_list {\n"
34479 "   uint32_t len; /* Number of elements in list. */\n"
34480 "   struct guestfs_partition *val; /* Elements. */\n"
34481 " };\n"
34482 " \n"
34483 msgstr ""
34484
34485 #. type: verbatim
34486 #: ../src/guestfs-structs.pod:240
34487 #, no-wrap
34488 msgid ""
34489 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34490 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34491 "\n"
34492 msgstr ""
34493
34494 #. type: =head2
34495 #: ../src/guestfs-structs.pod:243
34496 msgid "guestfs_application"
34497 msgstr ""
34498
34499 #. type: verbatim
34500 #: ../src/guestfs-structs.pod:245
34501 #, no-wrap
34502 msgid ""
34503 " struct guestfs_application {\n"
34504 "   char *app_name;\n"
34505 "   char *app_display_name;\n"
34506 "   int32_t app_epoch;\n"
34507 "   char *app_version;\n"
34508 "   char *app_release;\n"
34509 "   char *app_install_path;\n"
34510 "   char *app_trans_path;\n"
34511 "   char *app_publisher;\n"
34512 "   char *app_url;\n"
34513 "   char *app_source_package;\n"
34514 "   char *app_summary;\n"
34515 "   char *app_description;\n"
34516 " };\n"
34517 " \n"
34518 msgstr ""
34519
34520 #. type: verbatim
34521 #: ../src/guestfs-structs.pod:260
34522 #, no-wrap
34523 msgid ""
34524 " struct guestfs_application_list {\n"
34525 "   uint32_t len; /* Number of elements in list. */\n"
34526 "   struct guestfs_application *val; /* Elements. */\n"
34527 " };\n"
34528 " \n"
34529 msgstr ""
34530
34531 #. type: verbatim
34532 #: ../src/guestfs-structs.pod:265
34533 #, no-wrap
34534 msgid ""
34535 " void guestfs_free_application (struct guestfs_free_application *);\n"
34536 " void guestfs_free_application_list (struct guestfs_free_application_list "
34537 "*);\n"
34538 "\n"
34539 msgstr ""
34540
34541 #. type: textblock
34542 #: ../src/guestfs.pod:5
34543 msgid "guestfs - Library for accessing and modifying virtual machine images"
34544 msgstr ""
34545
34546 #. type: verbatim
34547 #: ../src/guestfs.pod:11
34548 #, no-wrap
34549 msgid ""
34550 " guestfs_h *g = guestfs_create ();\n"
34551 " guestfs_add_drive (g, \"guest.img\");\n"
34552 " guestfs_launch (g);\n"
34553 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34554 " guestfs_touch (g, \"/hello\");\n"
34555 " guestfs_umount (g, \"/\");\n"
34556 " guestfs_close (g);\n"
34557 "\n"
34558 msgstr ""
34559
34560 #. type: textblock
34561 #: ../src/guestfs.pod:25
34562 msgid ""
34563 "Libguestfs is a library for accessing and modifying guest disk images.  "
34564 "Amongst the things this is good for: making batch configuration changes to "
34565 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34566 "between virtualization systems (see also: virt-p2v), performing partial "
34567 "backups, performing partial guest clones, cloning guests and changing "
34568 "registry/UUID/hostname info, and much else besides."
34569 msgstr ""
34570
34571 #. type: textblock
34572 #: ../src/guestfs.pod:33
34573 msgid ""
34574 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34575 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34576 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34577 "qcow2, vmdk."
34578 msgstr ""
34579
34580 #. type: textblock
34581 #: ../src/guestfs.pod:38
34582 msgid ""
34583 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34584 "what filesystem is in each LV, etc.).  It can also run commands in the "
34585 "context of the guest.  Also you can access filesystems over FUSE."
34586 msgstr ""
34587
34588 #. type: textblock
34589 #: ../src/guestfs.pod:43
34590 msgid ""
34591 "Libguestfs is a library that can be linked with C and C++ management "
34592 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34593 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34594 "command line."
34595 msgstr ""
34596
34597 #. type: textblock
34598 #: ../src/guestfs.pod:48
34599 msgid ""
34600 "You don't need to be root to use libguestfs, although obviously you do need "
34601 "enough permissions to access the disk images."
34602 msgstr ""
34603
34604 #. type: textblock
34605 #: ../src/guestfs.pod:51
34606 msgid ""
34607 "Libguestfs is a large API because it can do many things.  For a gentle "
34608 "introduction, please read the L</API OVERVIEW> section next."
34609 msgstr ""
34610
34611 #. type: textblock
34612 #: ../src/guestfs.pod:54
34613 msgid ""
34614 "There are also some example programs in the L<guestfs-examples(3)> manual "
34615 "page."
34616 msgstr ""
34617
34618 #. type: =head1
34619 #: ../src/guestfs.pod:57
34620 msgid "API OVERVIEW"
34621 msgstr ""
34622
34623 #. type: textblock
34624 #: ../src/guestfs.pod:59
34625 msgid ""
34626 "This section provides a gentler overview of the libguestfs API.  We also try "
34627 "to group API calls together, where that may not be obvious from reading "
34628 "about the individual calls in the main section of this manual."
34629 msgstr ""
34630
34631 #. type: =head2
34632 #: ../src/guestfs.pod:64
34633 msgid "HANDLES"
34634 msgstr ""
34635
34636 #. type: textblock
34637 #: ../src/guestfs.pod:66
34638 msgid ""
34639 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34640 "must add at least one disk image to the handle, followed by launching the "
34641 "handle, then performing whatever operations you want, and finally closing "
34642 "the handle.  By convention we use the single letter C<g> for the name of the "
34643 "handle variable, although of course you can use any name you want."
34644 msgstr ""
34645
34646 #. type: textblock
34647 #: ../src/guestfs.pod:73
34648 msgid "The general structure of all libguestfs-using programs looks like this:"
34649 msgstr ""
34650
34651 #. type: verbatim
34652 #: ../src/guestfs.pod:76
34653 #, no-wrap
34654 msgid ""
34655 " guestfs_h *g = guestfs_create ();\n"
34656 " \n"
34657 msgstr ""
34658
34659 #. type: verbatim
34660 #: ../src/guestfs.pod:78
34661 #, no-wrap
34662 msgid ""
34663 " /* Call guestfs_add_drive additional times if there are\n"
34664 "  * multiple disk images.\n"
34665 "  */\n"
34666 " guestfs_add_drive (g, \"guest.img\");\n"
34667 " \n"
34668 msgstr ""
34669
34670 #. type: verbatim
34671 #: ../src/guestfs.pod:83
34672 #, no-wrap
34673 msgid ""
34674 " /* Most manipulation calls won't work until you've launched\n"
34675 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34676 "  * and _before_ other commands.\n"
34677 "  */\n"
34678 " guestfs_launch (g);\n"
34679 " \n"
34680 msgstr ""
34681
34682 #. type: verbatim
34683 #: ../src/guestfs.pod:89
34684 #, no-wrap
34685 msgid ""
34686 " /* Now you can examine what partitions, LVs etc are available.\n"
34687 "  */\n"
34688 " char **partitions = guestfs_list_partitions (g);\n"
34689 " char **logvols = guestfs_lvs (g);\n"
34690 " \n"
34691 msgstr ""
34692
34693 #. type: verbatim
34694 #: ../src/guestfs.pod:94
34695 #, no-wrap
34696 msgid ""
34697 " /* To access a filesystem in the image, you must mount it.\n"
34698 "  */\n"
34699 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34700 " \n"
34701 msgstr ""
34702
34703 #. type: verbatim
34704 #: ../src/guestfs.pod:98
34705 #, no-wrap
34706 msgid ""
34707 " /* Now you can perform filesystem actions on the guest\n"
34708 "  * disk image.\n"
34709 "  */\n"
34710 " guestfs_touch (g, \"/hello\");\n"
34711 " \n"
34712 msgstr ""
34713
34714 #. type: verbatim
34715 #: ../src/guestfs.pod:103
34716 #, no-wrap
34717 msgid ""
34718 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34719 "  * it is done automatically when you close the handle.  See\n"
34720 "  * discussion of autosync in this page.\n"
34721 "  */\n"
34722 " guestfs_sync (g);\n"
34723 " \n"
34724 msgstr ""
34725
34726 #. type: verbatim
34727 #: ../src/guestfs.pod:109
34728 #, no-wrap
34729 msgid ""
34730 " /* Close the handle 'g'. */\n"
34731 " guestfs_close (g);\n"
34732 "\n"
34733 msgstr ""
34734
34735 #. type: textblock
34736 #: ../src/guestfs.pod:112
34737 msgid ""
34738 "The code above doesn't include any error checking.  In real code you should "
34739 "check return values carefully for errors.  In general all functions that "
34740 "return integers return C<-1> on error, and all functions that return "
34741 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34742 "how to handle errors, and consult the documentation for each function call "
34743 "below to see precisely how they return error indications.  See "
34744 "L<guestfs-examples(3)> for fully worked examples."
34745 msgstr ""
34746
34747 #. type: =head2
34748 #: ../src/guestfs.pod:121
34749 msgid "DISK IMAGES"
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs.pod:123
34754 msgid ""
34755 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34756 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34757 "actual block device, or simply an empty file of zeroes that you have created "
34758 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34759 "of these."
34760 msgstr ""
34761
34762 #. type: textblock
34763 #: ../src/guestfs.pod:129
34764 msgid ""
34765 "The call you should use in modern code for adding drives is "
34766 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34767 "specifying that the format is raw, do:"
34768 msgstr ""
34769
34770 #. type: verbatim
34771 #: ../src/guestfs.pod:133
34772 #, no-wrap
34773 msgid ""
34774 " guestfs_add_drive_opts (g, filename,\n"
34775 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34776 "                         -1);\n"
34777 "\n"
34778 msgstr ""
34779
34780 #. type: textblock
34781 #: ../src/guestfs.pod:137
34782 msgid "You can add a disk read-only using:"
34783 msgstr ""
34784
34785 #. type: verbatim
34786 #: ../src/guestfs.pod:139
34787 #, no-wrap
34788 msgid ""
34789 " guestfs_add_drive_opts (g, filename,\n"
34790 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34791 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34792 "                         -1);\n"
34793 "\n"
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs.pod:144
34798 msgid ""
34799 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34800 "libguestfs won't modify the file."
34801 msgstr ""
34802
34803 #. type: textblock
34804 #: ../src/guestfs.pod:147
34805 msgid ""
34806 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34807 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34808 "corruption, but adding it read-only is safe."
34809 msgstr ""
34810
34811 #. type: textblock
34812 #: ../src/guestfs.pod:151
34813 msgid ""
34814 "You must add at least one disk image, and you may add multiple disk images.  "
34815 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34816 "first one you added), C</dev/sdb> (for the second one you added), etc."
34817 msgstr ""
34818
34819 #. type: textblock
34820 #: ../src/guestfs.pod:156
34821 msgid ""
34822 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34823 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34824 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34825 msgstr ""
34826
34827 #. type: =head2
34828 #: ../src/guestfs.pod:161
34829 msgid "MOUNTING"
34830 msgstr ""
34831
34832 #. type: textblock
34833 #: ../src/guestfs.pod:163
34834 msgid ""
34835 "Before you can read or write files, create directories and so on in a disk "
34836 "image that contains filesystems, you have to mount those filesystems using "
34837 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34838 "a disk image contains (for example) one partition with a filesystem on that "
34839 "partition, then you can mount it directly:"
34840 msgstr ""
34841
34842 #. type: verbatim
34843 #: ../src/guestfs.pod:170
34844 #, no-wrap
34845 msgid ""
34846 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34847 "\n"
34848 msgstr ""
34849
34850 #. type: textblock
34851 #: ../src/guestfs.pod:172
34852 msgid ""
34853 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34854 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34855 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34856 "that these are libguestfs virtual devices, and are nothing to do with host "
34857 "devices."
34858 msgstr ""
34859
34860 #. type: textblock
34861 #: ../src/guestfs.pod:178
34862 msgid ""
34863 "If you are given a disk image and you don't know what it contains then you "
34864 "have to find out.  Libguestfs can do that too: use "
34865 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
34866 "and LVs, and either try mounting each to see what is mountable, or else "
34867 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34868 "filesystems, use L</guestfs_list_filesystems>."
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs.pod:186
34873 msgid ""
34874 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34875 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34876 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34877 msgstr ""
34878
34879 #. type: textblock
34880 #: ../src/guestfs.pod:191
34881 msgid ""
34882 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34883 "several other variations of the C<guestfs_mount_*> call."
34884 msgstr ""
34885
34886 #. type: =head2
34887 #: ../src/guestfs.pod:194
34888 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34889 msgstr ""
34890
34891 #. type: textblock
34892 #: ../src/guestfs.pod:196
34893 msgid ""
34894 "The majority of the libguestfs API consists of fairly low-level calls for "
34895 "accessing and modifying the files, directories, symlinks etc on mounted "
34896 "filesystems.  There are over a hundred such calls which you can find listed "
34897 "in detail below in this man page, and we don't even pretend to cover them "
34898 "all in this overview."
34899 msgstr ""
34900
34901 #. type: textblock
34902 #: ../src/guestfs.pod:202
34903 msgid ""
34904 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34905 "mount point."
34906 msgstr ""
34907
34908 #. type: textblock
34909 #: ../src/guestfs.pod:205
34910 msgid ""
34911 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34912 "the file called C<\"etc/passwd\"> then you could do:"
34913 msgstr ""
34914
34915 #. type: verbatim
34916 #: ../src/guestfs.pod:208
34917 #, no-wrap
34918 msgid ""
34919 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34920 "\n"
34921 msgstr ""
34922
34923 #. type: textblock
34924 #: ../src/guestfs.pod:210
34925 msgid ""
34926 "This would return C<data> as a newly allocated buffer containing the full "
34927 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34928 "or C<NULL> if there was an error."
34929 msgstr ""
34930
34931 #. type: textblock
34932 #: ../src/guestfs.pod:214
34933 msgid ""
34934 "As another example, to create a top-level directory on that filesystem "
34935 "called C<\"var\"> you would do:"
34936 msgstr ""
34937
34938 #. type: verbatim
34939 #: ../src/guestfs.pod:217
34940 #, no-wrap
34941 msgid ""
34942 " guestfs_mkdir (g, \"/var\");\n"
34943 "\n"
34944 msgstr ""
34945
34946 #. type: textblock
34947 #: ../src/guestfs.pod:219
34948 msgid "To create a symlink you could do:"
34949 msgstr ""
34950
34951 #. type: verbatim
34952 #: ../src/guestfs.pod:221
34953 #, no-wrap
34954 msgid ""
34955 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34956 "               \"/etc/rc3.d/S30portmap\");\n"
34957 "\n"
34958 msgstr ""
34959
34960 #. type: textblock
34961 #: ../src/guestfs.pod:224
34962 msgid ""
34963 "Libguestfs will reject attempts to use relative paths and there is no "
34964 "concept of a current working directory."
34965 msgstr ""
34966
34967 #. type: textblock
34968 #: ../src/guestfs.pod:227
34969 msgid ""
34970 "Libguestfs can return errors in many situations: for example if the "
34971 "filesystem isn't writable, or if a file or directory that you requested "
34972 "doesn't exist.  If you are using the C API (documented here)  you have to "
34973 "check for those error conditions after each call.  (Other language bindings "
34974 "turn these errors into exceptions)."
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs.pod:233
34979 msgid ""
34980 "File writes are affected by the per-handle umask, set by calling "
34981 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
34982 msgstr ""
34983
34984 #. type: =head2
34985 #: ../src/guestfs.pod:236
34986 msgid "PARTITIONING"
34987 msgstr ""
34988
34989 #. type: textblock
34990 #: ../src/guestfs.pod:238
34991 msgid ""
34992 "Libguestfs contains API calls to read, create and modify partition tables on "
34993 "disk images."
34994 msgstr ""
34995
34996 #. type: textblock
34997 #: ../src/guestfs.pod:241
34998 msgid ""
34999 "In the common case where you want to create a single partition covering the "
35000 "whole disk, you should use the L</guestfs_part_disk> call:"
35001 msgstr ""
35002
35003 #. type: verbatim
35004 #: ../src/guestfs.pod:245
35005 #, no-wrap
35006 msgid ""
35007 " const char *parttype = \"mbr\";\n"
35008 " if (disk_is_larger_than_2TB)\n"
35009 "   parttype = \"gpt\";\n"
35010 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35011 "\n"
35012 msgstr ""
35013
35014 #. type: textblock
35015 #: ../src/guestfs.pod:250
35016 msgid ""
35017 "Obviously this effectively wipes anything that was on that disk image "
35018 "before."
35019 msgstr ""
35020
35021 #. type: =head2
35022 #: ../src/guestfs.pod:253
35023 msgid "LVM2"
35024 msgstr ""
35025
35026 #. type: textblock
35027 #: ../src/guestfs.pod:255
35028 msgid ""
35029 "Libguestfs provides access to a large part of the LVM2 API, such as "
35030 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
35031 "unless you familiarize yourself with the concepts of physical volumes, "
35032 "volume groups and logical volumes."
35033 msgstr ""
35034
35035 #. type: textblock
35036 #: ../src/guestfs.pod:260
35037 msgid ""
35038 "This author strongly recommends reading the LVM HOWTO, online at "
35039 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
35040 msgstr ""
35041
35042 #. type: =head2
35043 #: ../src/guestfs.pod:263
35044 msgid "DOWNLOADING"
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:265
35049 msgid ""
35050 "Use L</guestfs_cat> to download small, text only files.  This call is "
35051 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35052 "NUL (C<\\0>) characters.  However the API is very simple to use."
35053 msgstr ""
35054
35055 #. type: textblock
35056 #: ../src/guestfs.pod:269
35057 msgid ""
35058 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35059 "bit data, since it returns a (pointer, size) pair.  However it is still "
35060 "limited to \"small\" files, less than 2 MB."
35061 msgstr ""
35062
35063 #. type: textblock
35064 #: ../src/guestfs.pod:273
35065 msgid ""
35066 "L</guestfs_download> can be used to download any file, with no limits on "
35067 "content or size (even files larger than 4 GB)."
35068 msgstr ""
35069
35070 #. type: textblock
35071 #: ../src/guestfs.pod:276
35072 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35073 msgstr ""
35074
35075 #. type: =head2
35076 #: ../src/guestfs.pod:279
35077 msgid "UPLOADING"
35078 msgstr ""
35079
35080 #. type: textblock
35081 #: ../src/guestfs.pod:281
35082 msgid ""
35083 "It's often the case that you want to write a file or files to the disk "
35084 "image."
35085 msgstr ""
35086
35087 #. type: textblock
35088 #: ../src/guestfs.pod:284
35089 msgid ""
35090 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35091 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
35092 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
35093 "variety of other functions for creating test files, for example "
35094 "L</guestfs_fill> and L</guestfs_fill_pattern>."
35095 msgstr ""
35096
35097 #. type: textblock
35098 #: ../src/guestfs.pod:290
35099 msgid ""
35100 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35101 "file content or size (even files larger than 4 GB)."
35102 msgstr ""
35103
35104 #. type: textblock
35105 #: ../src/guestfs.pod:293
35106 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35107 msgstr ""
35108
35109 #. type: textblock
35110 #: ../src/guestfs.pod:295
35111 msgid ""
35112 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35113 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
35114 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
35115 "the drive in a predictable way (eg. adding it last after all other drives) "
35116 "then you can get the device name from L</guestfs_list_devices> and mount it "
35117 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
35118 "sometimes non-portable between kernel versions, and they don't support "
35119 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
35120 "using a label or UUID, use an ISO image instead."
35121 msgstr ""
35122
35123 #. type: =head2
35124 #: ../src/guestfs.pod:306
35125 msgid "COPYING"
35126 msgstr ""
35127
35128 #. type: textblock
35129 #: ../src/guestfs.pod:308
35130 msgid ""
35131 "There are various different commands for copying between files and devices "
35132 "and in and out of the guest filesystem.  These are summarised in the table "
35133 "below."
35134 msgstr ""
35135
35136 #. type: =item
35137 #: ../src/guestfs.pod:314
35138 msgid "B<file> to B<file>"
35139 msgstr ""
35140
35141 #. type: textblock
35142 #: ../src/guestfs.pod:316
35143 msgid ""
35144 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35145 "directories recursively."
35146 msgstr ""
35147
35148 #. type: textblock
35149 #: ../src/guestfs.pod:319
35150 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35151 msgstr ""
35152
35153 #. type: =item
35154 #: ../src/guestfs.pod:322
35155 msgid "B<file> to B<device>"
35156 msgstr ""
35157
35158 #. type: =item
35159 #: ../src/guestfs.pod:324
35160 msgid "B<device> to B<file>"
35161 msgstr ""
35162
35163 #. type: =item
35164 #: ../src/guestfs.pod:326
35165 msgid "B<device> to B<device>"
35166 msgstr ""
35167
35168 #. type: textblock
35169 #: ../src/guestfs.pod:328
35170 msgid ""
35171 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
35172 "L</guestfs_copy_device_to_device>."
35173 msgstr ""
35174
35175 #. type: textblock
35176 #: ../src/guestfs.pod:331
35177 msgid "Example: duplicate the contents of an LV:"
35178 msgstr ""
35179
35180 #. type: verbatim
35181 #: ../src/guestfs.pod:333
35182 #, no-wrap
35183 msgid ""
35184 " guestfs_copy_device_to_device (g,\n"
35185 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35186 "         /* -1 marks the end of the list of optional parameters */\n"
35187 "         -1);\n"
35188 "\n"
35189 msgstr ""
35190
35191 #. type: textblock
35192 #: ../src/guestfs.pod:338
35193 msgid ""
35194 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35195 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
35196 "optional C<size> parameter:"
35197 msgstr ""
35198
35199 #. type: verbatim
35200 #: ../src/guestfs.pod:342
35201 #, no-wrap
35202 msgid ""
35203 " guestfs_copy_device_to_device (g,\n"
35204 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35205 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
35206 "         -1);\n"
35207 "\n"
35208 msgstr ""
35209
35210 #. type: =item
35211 #: ../src/guestfs.pod:347
35212 msgid "B<file on the host> to B<file or device>"
35213 msgstr ""
35214
35215 #. type: textblock
35216 #: ../src/guestfs.pod:349
35217 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35218 msgstr ""
35219
35220 #. type: =item
35221 #: ../src/guestfs.pod:351
35222 msgid "B<file or device> to B<file on the host>"
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:353
35227 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35228 msgstr ""
35229
35230 #. type: =head2
35231 #: ../src/guestfs.pod:357
35232 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35233 msgstr ""
35234
35235 #. type: textblock
35236 #: ../src/guestfs.pod:359
35237 msgid ""
35238 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
35239 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35240 "appears you can only upload and download to files.  However many Un*x-like "
35241 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
35242 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
35243 "stderr, and arbitrary file descriptor N."
35244 msgstr ""
35245
35246 #. type: textblock
35247 #: ../src/guestfs.pod:367
35248 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35249 msgstr ""
35250
35251 #. type: verbatim
35252 #: ../src/guestfs.pod:370
35253 #, no-wrap
35254 msgid ""
35255 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35256 "\n"
35257 msgstr ""
35258
35259 #. type: textblock
35260 #: ../src/guestfs.pod:372
35261 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35262 msgstr ""
35263
35264 #. type: verbatim
35265 #: ../src/guestfs.pod:374
35266 #, no-wrap
35267 msgid ""
35268 " char devfd[64];\n"
35269 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35270 " guestfs_tar_out (g, \"/\", devfd);\n"
35271 "\n"
35272 msgstr ""
35273
35274 #. type: =head2
35275 #: ../src/guestfs.pod:378
35276 msgid "LISTING FILES"
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:380
35281 msgid ""
35282 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35283 "L<guestfish(1)>-equivalent command C<ll>)."
35284 msgstr ""
35285
35286 #. type: textblock
35287 #: ../src/guestfs.pod:383
35288 msgid ""
35289 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35290 "programs, as a flat list of strings."
35291 msgstr ""
35292
35293 #. type: textblock
35294 #: ../src/guestfs.pod:386
35295 msgid ""
35296 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35297 "directory, plus additional information about each one.  It is more "
35298 "equivalent to using the L<readdir(3)> call on a local filesystem."
35299 msgstr ""
35300
35301 #. type: textblock
35302 #: ../src/guestfs.pod:390
35303 msgid ""
35304 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
35305 "files."
35306 msgstr ""
35307
35308 #. type: =head2
35309 #: ../src/guestfs.pod:393
35310 msgid "RUNNING COMMANDS"
35311 msgstr ""
35312
35313 #. type: textblock
35314 #: ../src/guestfs.pod:395
35315 msgid ""
35316 "Although libguestfs is primarily an API for manipulating files inside guest "
35317 "images, we also provide some limited facilities for running commands inside "
35318 "guests."
35319 msgstr ""
35320
35321 #. type: textblock
35322 #: ../src/guestfs.pod:399
35323 msgid "There are many limitations to this:"
35324 msgstr ""
35325
35326 #. type: textblock
35327 #: ../src/guestfs.pod:405
35328 msgid ""
35329 "The kernel version that the command runs under will be different from what "
35330 "it expects."
35331 msgstr ""
35332
35333 #. type: textblock
35334 #: ../src/guestfs.pod:410
35335 msgid ""
35336 "If the command needs to communicate with daemons, then most likely they "
35337 "won't be running."
35338 msgstr ""
35339
35340 #. type: textblock
35341 #: ../src/guestfs.pod:415
35342 msgid "The command will be running in limited memory."
35343 msgstr ""
35344
35345 #. type: textblock
35346 #: ../src/guestfs.pod:419
35347 msgid ""
35348 "The network may not be available unless you enable it (see "
35349 "L</guestfs_set_network>)."
35350 msgstr ""
35351
35352 #. type: textblock
35353 #: ../src/guestfs.pod:424
35354 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35355 msgstr ""
35356
35357 #. type: textblock
35358 #: ../src/guestfs.pod:428
35359 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35360 msgstr ""
35361
35362 #. type: textblock
35363 #: ../src/guestfs.pod:433
35364 msgid ""
35365 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35366 "See L</SELINUX> in this manpage."
35367 msgstr ""
35368
35369 #. type: textblock
35370 #: ../src/guestfs.pod:438
35371 msgid ""
35372 "I<Security:> It is not safe to run commands from untrusted, possibly "
35373 "malicious guests.  These commands may attempt to exploit your program by "
35374 "sending unexpected output.  They could also try to exploit the Linux kernel "
35375 "or qemu provided by the libguestfs appliance.  They could use the network "
35376 "provided by the libguestfs appliance to bypass ordinary network partitions "
35377 "and firewalls.  They could use the elevated privileges or different SELinux "
35378 "context of your program to their advantage."
35379 msgstr ""
35380
35381 #. type: textblock
35382 #: ../src/guestfs.pod:447
35383 msgid ""
35384 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35385 "(a script which runs when the guest next boots normally), and to have this "
35386 "script run the commands you want in the normal context of the running guest, "
35387 "network security and so on.  For information about other security issues, "
35388 "see L</SECURITY>."
35389 msgstr ""
35390
35391 #. type: textblock
35392 #: ../src/guestfs.pod:455
35393 msgid ""
35394 "The two main API calls to run commands are L</guestfs_command> and "
35395 "L</guestfs_sh> (there are also variations)."
35396 msgstr ""
35397
35398 #. type: textblock
35399 #: ../src/guestfs.pod:458
35400 msgid ""
35401 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35402 "shell globs, redirections, etc will work."
35403 msgstr ""
35404
35405 #. type: =head2
35406 #: ../src/guestfs.pod:461
35407 msgid "CONFIGURATION FILES"
35408 msgstr ""
35409
35410 #. type: textblock
35411 #: ../src/guestfs.pod:463
35412 msgid ""
35413 "To read and write configuration files in Linux guest filesystems, we "
35414 "strongly recommend using Augeas.  For example, Augeas understands how to "
35415 "read and write, say, a Linux shadow password file or X.org configuration "
35416 "file, and so avoids you having to write that code."
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:468
35421 msgid ""
35422 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35423 "document Augeas itself here because there is excellent documentation on the "
35424 "L<http://augeas.net/> website."
35425 msgstr ""
35426
35427 #. type: textblock
35428 #: ../src/guestfs.pod:472
35429 msgid ""
35430 "If you don't want to use Augeas (you fool!) then try calling "
35431 "L</guestfs_read_lines> to get the file as a list of lines which you can "
35432 "iterate over."
35433 msgstr ""
35434
35435 #. type: =head2
35436 #: ../src/guestfs.pod:476
35437 msgid "SELINUX"
35438 msgstr ""
35439
35440 #. type: textblock
35441 #: ../src/guestfs.pod:478
35442 msgid ""
35443 "We support SELinux guests.  To ensure that labeling happens correctly in "
35444 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35445 msgstr ""
35446
35447 #. type: textblock
35448 #: ../src/guestfs.pod:486
35449 msgid "Before launching, do:"
35450 msgstr ""
35451
35452 #. type: verbatim
35453 #: ../src/guestfs.pod:488
35454 #, no-wrap
35455 msgid ""
35456 " guestfs_set_selinux (g, 1);\n"
35457 "\n"
35458 msgstr ""
35459
35460 #. type: textblock
35461 #: ../src/guestfs.pod:492
35462 msgid ""
35463 "After mounting the guest's filesystem(s), load the policy.  This is best "
35464 "done by running the L<load_policy(8)> command in the guest itself:"
35465 msgstr ""
35466
35467 #. type: verbatim
35468 #: ../src/guestfs.pod:496
35469 #, no-wrap
35470 msgid ""
35471 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35472 "\n"
35473 msgstr ""
35474
35475 #. type: textblock
35476 #: ../src/guestfs.pod:498
35477 msgid ""
35478 "(Older versions of C<load_policy> require you to specify the name of the "
35479 "policy file)."
35480 msgstr ""
35481
35482 #. type: textblock
35483 #: ../src/guestfs.pod:503
35484 msgid ""
35485 "Optionally, set the security context for the API.  The correct security "
35486 "context to use can only be known by inspecting the guest.  As an example:"
35487 msgstr ""
35488
35489 #. type: verbatim
35490 #: ../src/guestfs.pod:507
35491 #, no-wrap
35492 msgid ""
35493 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35494 "\n"
35495 msgstr ""
35496
35497 #. type: textblock
35498 #: ../src/guestfs.pod:511
35499 msgid "This will work for running commands and editing existing files."
35500 msgstr ""
35501
35502 #. type: textblock
35503 #: ../src/guestfs.pod:513
35504 msgid ""
35505 "When new files are created, you may need to label them explicitly, for "
35506 "example by running the external command C<restorecon pathname>."
35507 msgstr ""
35508
35509 #. type: =head2
35510 #: ../src/guestfs.pod:517
35511 msgid "UMASK"
35512 msgstr ""
35513
35514 #. type: textblock
35515 #: ../src/guestfs.pod:519
35516 msgid ""
35517 "Certain calls are affected by the current file mode creation mask (the "
35518 "\"umask\").  In particular ones which create files or directories, such as "
35519 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35520 "either the default mode that the file is created with or modifies the mode "
35521 "that you supply."
35522 msgstr ""
35523
35524 #. type: textblock
35525 #: ../src/guestfs.pod:525
35526 msgid ""
35527 "The default umask is C<022>, so files are created with modes such as C<0644> "
35528 "and directories with C<0755>."
35529 msgstr ""
35530
35531 #. type: textblock
35532 #: ../src/guestfs.pod:528
35533 msgid ""
35534 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35535 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
35536 "L</guestfs_chmod> after creating each file or directory."
35537 msgstr ""
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:532
35541 msgid "For more information about umask, see L<umask(2)>."
35542 msgstr ""
35543
35544 #. type: textblock
35545 #: ../src/guestfs.pod:536
35546 msgid ""
35547 "Libguestfs allows you to access Linux guests which have been encrypted using "
35548 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35549 "standard.  This includes nearly all whole disk encryption systems used by "
35550 "modern Linux guests."
35551 msgstr ""
35552
35553 #. type: textblock
35554 #: ../src/guestfs.pod:542
35555 msgid ""
35556 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35557 "returns the string C<crypto_LUKS>)."
35558 msgstr ""
35559
35560 #. type: textblock
35561 #: ../src/guestfs.pod:545
35562 msgid ""
35563 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35564 "will require the passphrase!"
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:548
35569 msgid ""
35570 "Opening a LUKS device creates a new device mapper device called "
35571 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
35572 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
35573 "decrypted from and encrypted to the underlying block device respectively."
35574 msgstr ""
35575
35576 #. type: textblock
35577 #: ../src/guestfs.pod:554
35578 msgid ""
35579 "LVM volume groups on the device can be made visible by calling "
35580 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
35581 "volume(s) can now be mounted in the usual way."
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:558
35586 msgid ""
35587 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35588 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35589 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
35590 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35591 "underlying encrypted block device)."
35592 msgstr ""
35593
35594 #. type: =head2
35595 #: ../src/guestfs.pod:565
35596 msgid "INSPECTION"
35597 msgstr ""
35598
35599 #. type: textblock
35600 #: ../src/guestfs.pod:567
35601 msgid ""
35602 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35603 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35604 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35605 "version 1.5.3 the most frequently used part of this library has been "
35606 "rewritten in C and moved into the core code)."
35607 msgstr ""
35608
35609 #. type: textblock
35610 #: ../src/guestfs.pod:574
35611 msgid ""
35612 "Add all disks belonging to the unknown virtual machine and call "
35613 "L</guestfs_launch> in the usual way."
35614 msgstr ""
35615
35616 #. type: textblock
35617 #: ../src/guestfs.pod:577
35618 msgid ""
35619 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35620 "and certain heuristics, and returns a list of operating systems that were "
35621 "found.  An empty list means none were found.  A single element is the root "
35622 "filesystem of the operating system.  For dual- or multi-boot guests, "
35623 "multiple roots can be returned, each one corresponding to a separate "
35624 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35625 "world of virtualization, but since this scenario can happen, we have built "
35626 "libguestfs to deal with it.)"
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:586
35631 msgid ""
35632 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35633 "to get additional details about that operating system.  For example, call "
35634 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35635 "Windows and Linux-based operating systems respectively."
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:592
35640 msgid ""
35641 "Un*x-like and Linux-based operating systems usually consist of several "
35642 "filesystems which are mounted at boot time (for example, a separate boot "
35643 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35644 "filesystems correspond to mount points.  Call "
35645 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35646 "hash table like this example:"
35647 msgstr ""
35648
35649 #. type: verbatim
35650 #: ../src/guestfs.pod:599
35651 #, no-wrap
35652 msgid ""
35653 " /boot => /dev/sda1\n"
35654 " /     => /dev/vg_guest/lv_root\n"
35655 " /usr  => /dev/vg_guest/lv_usr\n"
35656 "\n"
35657 msgstr ""
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:603
35661 msgid ""
35662 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35663 "filesystems as suggested."
35664 msgstr ""
35665
35666 #. type: textblock
35667 #: ../src/guestfs.pod:606
35668 msgid ""
35669 "Be careful to mount filesystems in the right order (eg. C</> before "
35670 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
35671 "work."
35672 msgstr ""
35673
35674 #. type: textblock
35675 #: ../src/guestfs.pod:610
35676 msgid ""
35677 "Inspection currently only works for some common operating systems.  "
35678 "Contributors are welcome to send patches for other operating systems that we "
35679 "currently cannot detect."
35680 msgstr ""
35681
35682 #. type: textblock
35683 #: ../src/guestfs.pod:614
35684 msgid ""
35685 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35686 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35687 "encrypted devices."
35688 msgstr ""
35689
35690 #. type: textblock
35691 #: ../src/guestfs.pod:618
35692 msgid ""
35693 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35694 "inspection and caches the results in the guest handle.  Subsequent calls to "
35695 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
35696 "re-read the disks.  If you change the content of the guest disks, you can "
35697 "redo inspection by calling L</guestfs_inspect_os> again.  "
35698 "(L</guestfs_inspect_list_applications> works a little differently from the "
35699 "other calls and does read the disks.  See documentation for that function "
35700 "for details)."
35701 msgstr ""
35702
35703 #. type: =head3
35704 #: ../src/guestfs.pod:627
35705 msgid "INSPECTING INSTALL DISKS"
35706 msgstr ""
35707
35708 #. type: textblock
35709 #: ../src/guestfs.pod:629
35710 msgid ""
35711 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35712 "CDs and more."
35713 msgstr ""
35714
35715 #. type: textblock
35716 #: ../src/guestfs.pod:632
35717 msgid ""
35718 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35719 "system, which currently can be C<installed> (a regular operating system) or "
35720 "C<installer> (some sort of install disk)."
35721 msgstr ""
35722
35723 #. type: textblock
35724 #: ../src/guestfs.pod:636
35725 msgid ""
35726 "Further information is available about the operating system that can be "
35727 "installed using the regular inspection APIs like "
35728 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
35729 "etc."
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:641
35734 msgid ""
35735 "Some additional information specific to installer disks is also available "
35736 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
35737 "L</guestfs_inspect_is_multipart> calls."
35738 msgstr ""
35739
35740 #. type: =head2
35741 #: ../src/guestfs.pod:646
35742 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35743 msgstr ""
35744
35745 #. type: textblock
35746 #: ../src/guestfs.pod:648
35747 msgid ""
35748 "Libguestfs can mount NTFS partitions.  It does this using the "
35749 "L<http://www.ntfs-3g.org/> driver."
35750 msgstr ""
35751
35752 #. type: =head3
35753 #: ../src/guestfs.pod:651
35754 msgid "DRIVE LETTERS AND PATHS"
35755 msgstr ""
35756
35757 #. type: textblock
35758 #: ../src/guestfs.pod:653
35759 msgid ""
35760 "DOS and Windows still use drive letters, and the filesystems are always "
35761 "treated as case insensitive by Windows itself, and therefore you might find "
35762 "a Windows configuration file referring to a path like "
35763 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
35764 "that directory might be referred to as C</WINDOWS/System32>."
35765 msgstr ""
35766
35767 #. type: textblock
35768 #: ../src/guestfs.pod:659
35769 msgid ""
35770 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35771 "L</guestfs_inspect_get_drive_mappings>)"
35772 msgstr ""
35773
35774 #. type: textblock
35775 #: ../src/guestfs.pod:662
35776 msgid ""
35777 "Dealing with separator characters (backslash vs forward slash) is outside "
35778 "the scope of libguestfs, but usually a simple character replacement will "
35779 "work."
35780 msgstr ""
35781
35782 #. type: textblock
35783 #: ../src/guestfs.pod:666
35784 msgid ""
35785 "To resolve the case insensitivity of paths, call "
35786 "L</guestfs_case_sensitive_path>."
35787 msgstr ""
35788
35789 #. type: =head3
35790 #: ../src/guestfs.pod:669
35791 msgid "ACCESSING THE WINDOWS REGISTRY"
35792 msgstr ""
35793
35794 #. type: textblock
35795 #: ../src/guestfs.pod:671
35796 msgid ""
35797 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35798 "files, through the library C<hivex> which is part of the libguestfs project "
35799 "although ships as a separate tarball.  You have to locate and download the "
35800 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35801 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
35802 "L<virt-win-reg(1)> for more help on this issue."
35803 msgstr ""
35804
35805 #. type: =head3
35806 #: ../src/guestfs.pod:679
35807 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35808 msgstr ""
35809
35810 #. type: textblock
35811 #: ../src/guestfs.pod:681
35812 msgid ""
35813 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35814 "provide something which looks like a Linux symlink.  The way it tries to do "
35815 "the rewriting is described here:"
35816 msgstr ""
35817
35818 #. type: textblock
35819 #: ../src/guestfs.pod:685
35820 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
35821 msgstr ""
35822
35823 #. type: textblock
35824 #: ../src/guestfs.pod:687
35825 msgid ""
35826 "The essential problem is that ntfs-3g simply does not have enough "
35827 "information to do a correct job.  NTFS links can contain drive letters and "
35828 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35829 "It is almost certainly the case that libguestfs callers should ignore what "
35830 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35831 msgstr ""
35832
35833 #. type: textblock
35834 #: ../src/guestfs.pod:694
35835 msgid ""
35836 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
35837 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35838 "attribute, and read the raw reparse data from that (you can find the format "
35839 "documented in various places around the web)."
35840 msgstr ""
35841
35842 #. type: =head3
35843 #: ../src/guestfs.pod:699
35844 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35845 msgstr ""
35846
35847 #. type: textblock
35848 #: ../src/guestfs.pod:701
35849 msgid ""
35850 "There are other useful extended attributes that can be read from ntfs-3g "
35851 "filesystems (using L</guestfs_getxattr>).  See:"
35852 msgstr ""
35853
35854 #. type: textblock
35855 #: ../src/guestfs.pod:704
35856 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35857 msgstr ""
35858
35859 #. type: =head2
35860 #: ../src/guestfs.pod:706
35861 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35862 msgstr ""
35863
35864 #. type: textblock
35865 #: ../src/guestfs.pod:708
35866 msgid ""
35867 "Although we don't want to discourage you from using the C API, we will "
35868 "mention here that the same API is also available in other languages."
35869 msgstr ""
35870
35871 #. type: textblock
35872 #: ../src/guestfs.pod:711
35873 msgid ""
35874 "The API is broadly identical in all supported languages.  This means that "
35875 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35876 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35877 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35878 "each language."
35879 msgstr ""
35880
35881 #. type: textblock
35882 #: ../src/guestfs.pod:717
35883 msgid ""
35884 "Error messages are automatically transformed into exceptions if the language "
35885 "supports it."
35886 msgstr ""
35887
35888 #. type: textblock
35889 #: ../src/guestfs.pod:720
35890 msgid ""
35891 "We don't try to \"object orientify\" parts of the API in OO languages, "
35892 "although contributors are welcome to write higher level APIs above what we "
35893 "provide in their favourite languages if they wish."
35894 msgstr ""
35895
35896 #. type: =item
35897 #: ../src/guestfs.pod:726
35898 msgid "B<C++>"
35899 msgstr ""
35900
35901 #. type: textblock
35902 #: ../src/guestfs.pod:728
35903 msgid ""
35904 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35905 "identical to the C API.  C++ classes and exceptions are not used."
35906 msgstr ""
35907
35908 #. type: =item
35909 #: ../src/guestfs.pod:732
35910 msgid "B<C#>"
35911 msgstr ""
35912
35913 #. type: textblock
35914 #: ../src/guestfs.pod:734
35915 msgid ""
35916 "The C# bindings are highly experimental.  Please read the warnings at the "
35917 "top of C<csharp/Libguestfs.cs>."
35918 msgstr ""
35919
35920 #. type: =item
35921 #: ../src/guestfs.pod:737
35922 msgid "B<Erlang>"
35923 msgstr ""
35924
35925 #. type: textblock
35926 #: ../src/guestfs.pod:739
35927 msgid "See L<guestfs-erlang(3)>."
35928 msgstr ""
35929
35930 #. type: =item
35931 #: ../src/guestfs.pod:741
35932 msgid "B<Haskell>"
35933 msgstr ""
35934
35935 #. type: textblock
35936 #: ../src/guestfs.pod:743
35937 msgid ""
35938 "This is the only language binding that is working but incomplete.  Only "
35939 "calls which return simple integers have been bound in Haskell, and we are "
35940 "looking for help to complete this binding."
35941 msgstr ""
35942
35943 #. type: =item
35944 #: ../src/guestfs.pod:747
35945 msgid "B<Java>"
35946 msgstr ""
35947
35948 #. type: textblock
35949 #: ../src/guestfs.pod:749
35950 msgid ""
35951 "Full documentation is contained in the Javadoc which is distributed with "
35952 "libguestfs.  For examples, see L<guestfs-java(3)>."
35953 msgstr ""
35954
35955 #. type: =item
35956 #: ../src/guestfs.pod:752
35957 msgid "B<OCaml>"
35958 msgstr ""
35959
35960 #. type: textblock
35961 #: ../src/guestfs.pod:754
35962 msgid "See L<guestfs-ocaml(3)>."
35963 msgstr ""
35964
35965 #. type: =item
35966 #: ../src/guestfs.pod:756
35967 msgid "B<Perl>"
35968 msgstr ""
35969
35970 #. type: textblock
35971 #: ../src/guestfs.pod:758
35972 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35973 msgstr ""
35974
35975 #. type: =item
35976 #: ../src/guestfs.pod:760
35977 msgid "B<PHP>"
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:762
35982 msgid ""
35983 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35984 "the php-libguestfs package for your distribution."
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:765
35989 msgid "The PHP binding only works correctly on 64 bit machines."
35990 msgstr ""
35991
35992 #. type: =item
35993 #: ../src/guestfs.pod:767
35994 msgid "B<Python>"
35995 msgstr ""
35996
35997 #. type: textblock
35998 #: ../src/guestfs.pod:769
35999 msgid "See L<guestfs-python(3)>."
36000 msgstr ""
36001
36002 #. type: =item
36003 #: ../src/guestfs.pod:771
36004 msgid "B<Ruby>"
36005 msgstr ""
36006
36007 #. type: textblock
36008 #: ../src/guestfs.pod:773
36009 msgid "See L<guestfs-ruby(3)>."
36010 msgstr ""
36011
36012 #. type: =item
36013 #: ../src/guestfs.pod:775
36014 msgid "B<shell scripts>"
36015 msgstr ""
36016
36017 #. type: textblock
36018 #: ../src/guestfs.pod:777
36019 msgid "See L<guestfish(1)>."
36020 msgstr ""
36021
36022 #. type: =head2
36023 #: ../src/guestfs.pod:781
36024 msgid "LIBGUESTFS GOTCHAS"
36025 msgstr ""
36026
36027 #. type: textblock
36028 #: ../src/guestfs.pod:783
36029 msgid ""
36030 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36031 "system [...] that works in the way it is documented but is counterintuitive "
36032 "and almost invites mistakes.\""
36033 msgstr ""
36034
36035 #. type: textblock
36036 #: ../src/guestfs.pod:787
36037 msgid ""
36038 "Since we developed libguestfs and the associated tools, there are several "
36039 "things we would have designed differently, but are now stuck with for "
36040 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36041 "release, you can expect these to change.  Beware of them."
36042 msgstr ""
36043
36044 #. type: =item
36045 #: ../src/guestfs.pod:795
36046 msgid "Autosync / forgetting to sync."
36047 msgstr ""
36048
36049 #. type: textblock
36050 #: ../src/guestfs.pod:797
36051 msgid ""
36052 "I<Update:> Autosync is enabled by default for all API users starting from "
36053 "libguestfs 1.5.24.  This section only applies to older versions."
36054 msgstr ""
36055
36056 #. type: textblock
36057 #: ../src/guestfs.pod:800
36058 msgid ""
36059 "When modifying a filesystem from C or another language, you B<must> unmount "
36060 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36061 "libguestfs handle.  You can also call:"
36062 msgstr ""
36063
36064 #. type: verbatim
36065 #: ../src/guestfs.pod:804
36066 #, no-wrap
36067 msgid ""
36068 " guestfs_set_autosync (g, 1);\n"
36069 "\n"
36070 msgstr ""
36071
36072 #. type: textblock
36073 #: ../src/guestfs.pod:806
36074 msgid ""
36075 "to have the unmount/sync done automatically for you when the handle 'g' is "
36076 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
36077 "q.v.)"
36078 msgstr ""
36079
36080 #. type: textblock
36081 #: ../src/guestfs.pod:810
36082 msgid ""
36083 "If you forget to do this, then it is entirely possible that your changes "
36084 "won't be written out, or will be partially written, or (very rarely) that "
36085 "you'll get disk corruption."
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:814
36090 msgid ""
36091 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36092 "guestfish scripts that forget to sync will work just fine, which can make "
36093 "this very puzzling if you are trying to debug a problem."
36094 msgstr ""
36095
36096 #. type: =item
36097 #: ../src/guestfs.pod:818
36098 msgid "Mount option C<-o sync> should not be the default."
36099 msgstr ""
36100
36101 #. type: textblock
36102 #: ../src/guestfs.pod:820
36103 msgid ""
36104 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36105 "libguestfs 1.13.16.  This section only applies to older versions."
36106 msgstr ""
36107
36108 #. type: textblock
36109 #: ../src/guestfs.pod:823
36110 msgid ""
36111 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36112 "However C<-o sync> does not add any reliability benefit, but does have a "
36113 "very large performance impact."
36114 msgstr ""
36115
36116 #. type: textblock
36117 #: ../src/guestfs.pod:827
36118 msgid ""
36119 "The work around is to use L</guestfs_mount_options> and set the mount "
36120 "options that you actually want to use."
36121 msgstr ""
36122
36123 #. type: =item
36124 #: ../src/guestfs.pod:830
36125 msgid "Read-only should be the default."
36126 msgstr ""
36127
36128 #. type: textblock
36129 #: ../src/guestfs.pod:832
36130 msgid ""
36131 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36132 "specify I<--rw> if you want to make changes to the image."
36133 msgstr ""
36134
36135 #. type: textblock
36136 #: ../src/guestfs.pod:835
36137 msgid "This would reduce the potential to corrupt live VM images."
36138 msgstr ""
36139
36140 #. type: textblock
36141 #: ../src/guestfs.pod:837
36142 msgid ""
36143 "Note that many filesystems change the disk when you just mount and unmount, "
36144 "even if you didn't perform any writes.  You need to use "
36145 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
36146 msgstr ""
36147
36148 #. type: =item
36149 #: ../src/guestfs.pod:841
36150 msgid "guestfish command line is hard to use."
36151 msgstr ""
36152
36153 #. type: textblock
36154 #: ../src/guestfs.pod:843
36155 msgid ""
36156 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36157 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36158 "exist, so it fails.  In earlier versions of guestfish the error message was "
36159 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36160 "we should have used C<guestfish -c command> to run commands."
36161 msgstr ""
36162
36163 #. type: =item
36164 #: ../src/guestfs.pod:850
36165 msgid "guestfish megabyte modifiers don't work right on all commands"
36166 msgstr ""
36167
36168 #. type: textblock
36169 #: ../src/guestfs.pod:852
36170 msgid ""
36171 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36172 "other modifiers).  What guestfish actually does is to multiply the number "
36173 "part by the modifier part and pass the result to the C API.  However this "
36174 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36175 "expecting some other unit (eg. megabytes)."
36176 msgstr ""
36177
36178 #. type: textblock
36179 #: ../src/guestfs.pod:859
36180 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36181 msgstr ""
36182
36183 #. type: verbatim
36184 #: ../src/guestfs.pod:861
36185 #, no-wrap
36186 msgid ""
36187 " lvcreate LV VG 100M\n"
36188 "\n"
36189 msgstr ""
36190
36191 #. type: textblock
36192 #: ../src/guestfs.pod:863
36193 msgid ""
36194 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36195 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36196 "megabytes * megabytes) logical volume.  The error message you get from this "
36197 "is also a little obscure."
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:868
36202 msgid ""
36203 "This could be fixed in the generator by specially marking parameters and "
36204 "return values which take bytes or other units."
36205 msgstr ""
36206
36207 #. type: =item
36208 #: ../src/guestfs.pod:871
36209 msgid "Ambiguity between devices and paths"
36210 msgstr ""
36211
36212 #. type: textblock
36213 #: ../src/guestfs.pod:873
36214 msgid ""
36215 "There is a subtle ambiguity in the API between a device name "
36216 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
36217 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36218 msgstr ""
36219
36220 #. type: textblock
36221 #: ../src/guestfs.pod:878
36222 msgid ""
36223 "In the current API we usually resolve this ambiguity by having two separate "
36224 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36225 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36226 "detecting if the path supplied begins with C</dev/>."
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:884
36231 msgid ""
36232 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36233 "make paths/devices into structured names.  One way to do this would be to "
36234 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36235 "aspect of grub.  Another way would be to use a structured type, equivalent "
36236 "to this OCaml type:"
36237 msgstr ""
36238
36239 #. type: verbatim
36240 #: ../src/guestfs.pod:890
36241 #, no-wrap
36242 msgid ""
36243 " type path = Path of string | Device of int | Partition of int * int\n"
36244 "\n"
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:892
36249 msgid "which would allow you to pass arguments like:"
36250 msgstr ""
36251
36252 #. type: verbatim
36253 #: ../src/guestfs.pod:894
36254 #, no-wrap
36255 msgid ""
36256 " Path \"/foo/bar\"\n"
36257 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36258 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36259 " Path \"/dev/sdb2\"    (* not a device *)\n"
36260 "\n"
36261 msgstr ""
36262
36263 #. type: textblock
36264 #: ../src/guestfs.pod:899
36265 msgid ""
36266 "As you can see there are still problems to resolve even with this "
36267 "representation.  Also consider how it might work in guestfish."
36268 msgstr ""
36269
36270 #. type: =head2
36271 #: ../src/guestfs.pod:904
36272 msgid "KEYS AND PASSPHRASES"
36273 msgstr ""
36274
36275 #. type: textblock
36276 #: ../src/guestfs.pod:906
36277 msgid ""
36278 "Certain libguestfs calls take a parameter that contains sensitive key "
36279 "material, passed in as a C string."
36280 msgstr ""
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:909
36284 msgid ""
36285 "In the future we would hope to change the libguestfs implementation so that "
36286 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36287 "swap.  However this is I<not> done at the moment, because of the complexity "
36288 "of such an implementation."
36289 msgstr ""
36290
36291 #. type: textblock
36292 #: ../src/guestfs.pod:914
36293 msgid ""
36294 "Therefore you should be aware that any key parameter you pass to libguestfs "
36295 "might end up being written out to the swap partition.  If this is a concern, "
36296 "scrub the swap partition or don't use libguestfs on encrypted devices."
36297 msgstr ""
36298
36299 #. type: =head2
36300 #: ../src/guestfs.pod:919
36301 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36302 msgstr ""
36303
36304 #. type: textblock
36305 #: ../src/guestfs.pod:921
36306 msgid ""
36307 "All high-level libguestfs actions are synchronous.  If you want to use "
36308 "libguestfs asynchronously then you must create a thread."
36309 msgstr ""
36310
36311 #. type: textblock
36312 #: ../src/guestfs.pod:924
36313 msgid ""
36314 "Only use the handle from a single thread.  Either use the handle exclusively "
36315 "from one thread, or provide your own mutex so that two threads cannot issue "
36316 "calls on the same handle at the same time."
36317 msgstr ""
36318
36319 #. type: textblock
36320 #: ../src/guestfs.pod:928
36321 msgid ""
36322 "See the graphical program guestfs-browser for one possible architecture for "
36323 "multithreaded programs using libvirt and libguestfs."
36324 msgstr ""
36325
36326 #. type: =head2
36327 #: ../src/guestfs.pod:931
36328 msgid "PATH"
36329 msgstr ""
36330
36331 #. type: textblock
36332 #: ../src/guestfs.pod:933
36333 msgid ""
36334 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36335 "internal path."
36336 msgstr ""
36337
36338 #. type: textblock
36339 #: ../src/guestfs.pod:936
36340 msgid ""
36341 "By default it looks for these in the directory C<$libdir/guestfs> "
36342 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36343 msgstr ""
36344
36345 #. type: textblock
36346 #: ../src/guestfs.pod:939
36347 msgid ""
36348 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36349 "to change the directories that libguestfs will search in.  The value is a "
36350 "colon-separated list of paths.  The current directory is I<not> searched "
36351 "unless the path contains an empty element or C<.>.  For example "
36352 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36353 "then C</usr/lib/guestfs>."
36354 msgstr ""
36355
36356 #. type: =head2
36357 #: ../src/guestfs.pod:946
36358 msgid "QEMU WRAPPERS"
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:948
36363 msgid ""
36364 "If you want to compile your own qemu, run qemu from a non-standard location, "
36365 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36366 "around qemu."
36367 msgstr ""
36368
36369 #. type: textblock
36370 #: ../src/guestfs.pod:952
36371 msgid ""
36372 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36373 "last command in the shell script (so that qemu replaces the shell and "
36374 "becomes the direct child of the libguestfs-using program).  If you don't do "
36375 "this, then the qemu process won't be cleaned up correctly."
36376 msgstr ""
36377
36378 #. type: textblock
36379 #: ../src/guestfs.pod:957
36380 msgid ""
36381 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36382 "source:"
36383 msgstr ""
36384
36385 #. type: verbatim
36386 #: ../src/guestfs.pod:960
36387 #, no-wrap
36388 msgid ""
36389 " #!/bin/sh -\n"
36390 " qemudir=/home/rjones/d/qemu\n"
36391 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
36392 "\"$@\"\n"
36393 "\n"
36394 msgstr ""
36395
36396 #. type: textblock
36397 #: ../src/guestfs.pod:964
36398 msgid ""
36399 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36400 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36401 "example:"
36402 msgstr ""
36403
36404 #. type: verbatim
36405 #: ../src/guestfs.pod:968
36406 #, no-wrap
36407 msgid ""
36408 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36409 "\n"
36410 msgstr ""
36411
36412 #. type: textblock
36413 #: ../src/guestfs.pod:970
36414 msgid ""
36415 "Note that libguestfs also calls qemu with the -help and -version options in "
36416 "order to determine features."
36417 msgstr ""
36418
36419 #. type: textblock
36420 #: ../src/guestfs.pod:973
36421 msgid ""
36422 "Wrappers can also be used to edit the options passed to qemu.  In the "
36423 "following example, the C<-machine ...> option (C<-machine> and the following "
36424 "argument) are removed from the command line and replaced with C<-machine "
36425 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
36426 "right one to remove, putting the remaining options into the C<args> array."
36427 msgstr ""
36428
36429 #. type: verbatim
36430 #: ../src/guestfs.pod:982
36431 #, no-wrap
36432 msgid ""
36433 " i=0\n"
36434 " while [ $# -gt 0 ]; do\n"
36435 "     case \"$1\" in\n"
36436 "     -machine)\n"
36437 "         shift 2;;\n"
36438 "     *)\n"
36439 "         args[i]=\"$1\"\n"
36440 "         (( i++ ))\n"
36441 "         shift ;;\n"
36442 "     esac\n"
36443 " done\n"
36444 " \n"
36445 msgstr ""
36446
36447 #. type: verbatim
36448 #: ../src/guestfs.pod:994
36449 #, no-wrap
36450 msgid ""
36451 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36452 "\n"
36453 msgstr ""
36454
36455 #. type: =head2
36456 #: ../src/guestfs.pod:996
36457 msgid "ATTACHING TO RUNNING DAEMONS"
36458 msgstr ""
36459
36460 #. type: textblock
36461 #: ../src/guestfs.pod:998
36462 msgid ""
36463 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36464 "babies.  Use with caution."
36465 msgstr ""
36466
36467 #. type: textblock
36468 #: ../src/guestfs.pod:1001
36469 msgid ""
36470 "I<Note (2):> This section explains how to attach to a running daemon from a "
36471 "low level perspective.  For most users, simply using virt tools such as "
36472 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36473 msgstr ""
36474
36475 #. type: =head3
36476 #: ../src/guestfs.pod:1005
36477 msgid "Using guestfs_set_attach_method"
36478 msgstr ""
36479
36480 #. type: textblock
36481 #: ../src/guestfs.pod:1007
36482 msgid ""
36483 "By calling L</guestfs_set_attach_method> you can change how the library "
36484 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
36485 "L</ARCHITECTURE> for some background)."
36486 msgstr ""
36487
36488 #. type: textblock
36489 #: ../src/guestfs.pod:1011
36490 msgid ""
36491 "The normal attach method is C<appliance>, where a small appliance is created "
36492 "containing the daemon, and then the library connects to this."
36493 msgstr ""
36494
36495 #. type: textblock
36496 #: ../src/guestfs.pod:1014
36497 msgid ""
36498 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36499 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36500 "daemon over the Unix domain socket."
36501 msgstr ""
36502
36503 #. type: textblock
36504 #: ../src/guestfs.pod:1018
36505 msgid ""
36506 "The normal use for this is to connect to a running virtual machine that "
36507 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36508 "files inside the live virtual machine."
36509 msgstr ""
36510
36511 #. type: =head3
36512 #: ../src/guestfs.pod:1022
36513 msgid "Using guestfs_add_domain with live flag"
36514 msgstr ""
36515
36516 #. type: textblock
36517 #: ../src/guestfs.pod:1024
36518 msgid ""
36519 "L</guestfs_add_domain> provides some help for getting the correct attach "
36520 "method.  If you pass the C<live> option to this function, then (if the "
36521 "virtual machine is running) it will examine the libvirt XML looking for a "
36522 "virtio-serial channel to connect to:"
36523 msgstr ""
36524
36525 #. type: verbatim
36526 #: ../src/guestfs.pod:1030
36527 #, no-wrap
36528 msgid ""
36529 " <domain>\n"
36530 "   ...\n"
36531 "   <devices>\n"
36532 "     ...\n"
36533 "     <channel type='unix'>\n"
36534 "       <source mode='bind' path='/path/to/socket'/>\n"
36535 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36536 "     </channel>\n"
36537 "     ...\n"
36538 "   </devices>\n"
36539 " </domain>\n"
36540 "\n"
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../src/guestfs.pod:1042
36545 msgid ""
36546 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36547 "method to C<unix:/path/to/socket>."
36548 msgstr ""
36549
36550 #. type: textblock
36551 #: ../src/guestfs.pod:1045
36552 msgid ""
36553 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36554 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36555 "to attach to and modify live virtual machines."
36556 msgstr ""
36557
36558 #. type: textblock
36559 #: ../src/guestfs.pod:1049
36560 msgid ""
36561 "The virtual machine needs to have been set up beforehand so that it has the "
36562 "virtio-serial channel and so that guestfsd is running inside it."
36563 msgstr ""
36564
36565 #. type: =head2
36566 #: ../src/guestfs.pod:1053
36567 msgid "ABI GUARANTEE"
36568 msgstr ""
36569
36570 #. type: textblock
36571 #: ../src/guestfs.pod:1055
36572 msgid ""
36573 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36574 "actions as outlined in this section.  Although we will deprecate some "
36575 "actions, for example if they get replaced by newer calls, we will keep the "
36576 "old actions forever.  This allows you the developer to program in confidence "
36577 "against the libguestfs API."
36578 msgstr ""
36579
36580 #. type: =head2
36581 #: ../src/guestfs.pod:1061
36582 msgid "BLOCK DEVICE NAMING"
36583 msgstr ""
36584
36585 #. type: textblock
36586 #: ../src/guestfs.pod:1063
36587 msgid ""
36588 "In the kernel there is now quite a profusion of schemata for naming block "
36589 "devices (in this context, by I<block device> I mean a physical or virtual "
36590 "hard drive).  The original Linux IDE driver used names starting with "
36591 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
36592 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
36593 "replacement for the old IDE driver (particularly for SATA devices) those "
36594 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
36595 "machines with paravirtualized drivers.  This has created several different "
36596 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
36597 "Xen PV disks."
36598 msgstr ""
36599
36600 #. type: textblock
36601 #: ../src/guestfs.pod:1075
36602 msgid ""
36603 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36604 "Linux kernel to access block devices.  We can run a variety of appliances "
36605 "based on a variety of Linux kernels."
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../src/guestfs.pod:1079
36610 msgid ""
36611 "This causes a problem for libguestfs because many API calls use device or "
36612 "partition names.  Working scripts and the recipe (example) scripts that we "
36613 "make available over the internet could fail if the naming scheme changes."
36614 msgstr ""
36615
36616 #. type: textblock
36617 #: ../src/guestfs.pod:1084
36618 msgid ""
36619 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36620 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36621 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36622 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36623 msgstr ""
36624
36625 #. type: textblock
36626 #: ../src/guestfs.pod:1090
36627 msgid ""
36628 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36629 "L</guestfs_list_partitions> and similar calls return the true names of the "
36630 "devices and partitions as known to the appliance."
36631 msgstr ""
36632
36633 #. type: =head3
36634 #: ../src/guestfs.pod:1095
36635 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36636 msgstr ""
36637
36638 #. type: textblock
36639 #: ../src/guestfs.pod:1097
36640 msgid ""
36641 "Usually this translation is transparent.  However in some (very rare)  cases "
36642 "you may need to know the exact algorithm.  Such cases include where you use "
36643 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
36644 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
36645 "devices."
36646 msgstr ""
36647
36648 #. type: textblock
36649 #: ../src/guestfs.pod:1103
36650 msgid ""
36651 "The algorithm is applied only to I<parameters> which are known to be either "
36652 "device or partition names.  Return values from functions such as "
36653 "L</guestfs_list_devices> are never changed."
36654 msgstr ""
36655
36656 #. type: textblock
36657 #: ../src/guestfs.pod:1111
36658 msgid "Is the string a parameter which is a device or partition name?"
36659 msgstr ""
36660
36661 #. type: textblock
36662 #: ../src/guestfs.pod:1115
36663 msgid "Does the string begin with C</dev/sd>?"
36664 msgstr ""
36665
36666 #. type: textblock
36667 #: ../src/guestfs.pod:1119
36668 msgid ""
36669 "Does the named device exist? If so, we use that device.  However if I<not> "
36670 "then we continue with this algorithm."
36671 msgstr ""
36672
36673 #. type: textblock
36674 #: ../src/guestfs.pod:1124
36675 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36676 msgstr ""
36677
36678 #. type: textblock
36679 #: ../src/guestfs.pod:1126
36680 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36681 msgstr ""
36682
36683 #. type: textblock
36684 #: ../src/guestfs.pod:1128
36685 msgid "If that named device exists, use it.  If not, continue."
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:1132
36690 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36691 msgstr ""
36692
36693 #. type: textblock
36694 #: ../src/guestfs.pod:1134
36695 msgid "If that named device exists, use it.  If not, return an error."
36696 msgstr ""
36697
36698 #. type: =head3
36699 #: ../src/guestfs.pod:1138
36700 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36701 msgstr ""
36702
36703 #. type: textblock
36704 #: ../src/guestfs.pod:1140
36705 msgid ""
36706 "Although the standard naming scheme and automatic translation is useful for "
36707 "simple programs and guestfish scripts, for larger programs it is best not to "
36708 "rely on this mechanism."
36709 msgstr ""
36710
36711 #. type: textblock
36712 #: ../src/guestfs.pod:1144
36713 msgid ""
36714 "Where possible for maximum future portability programs using libguestfs "
36715 "should use these future-proof techniques:"
36716 msgstr ""
36717
36718 #. type: textblock
36719 #: ../src/guestfs.pod:1151
36720 msgid ""
36721 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36722 "device names, and then use those names directly."
36723 msgstr ""
36724
36725 #. type: textblock
36726 #: ../src/guestfs.pod:1154
36727 msgid "Since those device names exist by definition, they will never be translated."
36728 msgstr ""
36729
36730 #. type: textblock
36731 #: ../src/guestfs.pod:1159
36732 msgid ""
36733 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36734 "filesystem labels."
36735 msgstr ""
36736
36737 #. type: textblock
36738 #: ../src/guestfs.pod:1166
36739 msgid ""
36740 "This section discusses security implications of using libguestfs, "
36741 "particularly with untrusted or malicious guests or disk images."
36742 msgstr ""
36743
36744 #. type: =head2
36745 #: ../src/guestfs.pod:1169
36746 msgid "GENERAL SECURITY CONSIDERATIONS"
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../src/guestfs.pod:1171
36751 msgid ""
36752 "Be careful with any files or data that you download from a guest (by "
36753 "\"download\" we mean not just the L</guestfs_download> command but any "
36754 "command that reads files, filenames, directories or anything else from a "
36755 "disk image).  An attacker could manipulate the data to fool your program "
36756 "into doing the wrong thing.  Consider cases such as:"
36757 msgstr ""
36758
36759 #. type: textblock
36760 #: ../src/guestfs.pod:1181
36761 msgid "the data (file etc) not being present"
36762 msgstr ""
36763
36764 #. type: textblock
36765 #: ../src/guestfs.pod:1185
36766 msgid "being present but empty"
36767 msgstr ""
36768
36769 #. type: textblock
36770 #: ../src/guestfs.pod:1189
36771 msgid "being much larger than normal"
36772 msgstr ""
36773
36774 #. type: textblock
36775 #: ../src/guestfs.pod:1193
36776 msgid "containing arbitrary 8 bit data"
36777 msgstr ""
36778
36779 #. type: textblock
36780 #: ../src/guestfs.pod:1197
36781 msgid "being in an unexpected character encoding"
36782 msgstr ""
36783
36784 #. type: textblock
36785 #: ../src/guestfs.pod:1201
36786 msgid "containing homoglyphs."
36787 msgstr ""
36788
36789 #. type: =head2
36790 #: ../src/guestfs.pod:1205
36791 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36792 msgstr ""
36793
36794 #. type: textblock
36795 #: ../src/guestfs.pod:1207
36796 msgid ""
36797 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36798 "(VFS) module can sometimes be escalated into exploits by deliberately "
36799 "creating a malicious, malformed filesystem.  These exploits are very severe "
36800 "for two reasons.  Firstly there are very many filesystem drivers in the "
36801 "kernel, and many of them are infrequently used and not much developer "
36802 "attention has been paid to the code.  Linux userspace helps potential "
36803 "crackers by detecting the filesystem type and automatically choosing the "
36804 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36805 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36806 "exploit (worse in some ways), giving immediate and total access to the "
36807 "system right down to the hardware level."
36808 msgstr ""
36809
36810 #. type: textblock
36811 #: ../src/guestfs.pod:1220
36812 msgid ""
36813 "That explains why you should never mount a filesystem from an untrusted "
36814 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36815 "inside a qemu virtual machine, usually running as a non-root user.  The "
36816 "attacker would need to write a filesystem which first exploited the kernel, "
36817 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36818 "the libguestfs protocol, and finally to be as serious as the host kernel "
36819 "exploit it would need to escalate its privileges to root.  This multi-step "
36820 "escalation, performed by a static piece of data, is thought to be extremely "
36821 "hard to do, although we never say 'never' about security issues."
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:1231
36826 msgid ""
36827 "In any case callers can reduce the attack surface by forcing the filesystem "
36828 "type when mounting (use L</guestfs_mount_vfs>)."
36829 msgstr ""
36830
36831 #. type: =head2
36832 #: ../src/guestfs.pod:1234
36833 msgid "PROTOCOL SECURITY"
36834 msgstr ""
36835
36836 #. type: textblock
36837 #: ../src/guestfs.pod:1236
36838 msgid ""
36839 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36840 "defined upper message size.  However a program that uses libguestfs must "
36841 "also take care - for example you can write a program that downloads a binary "
36842 "from a disk image and executes it locally, and no amount of protocol "
36843 "security will save you from the consequences."
36844 msgstr ""
36845
36846 #. type: =head2
36847 #: ../src/guestfs.pod:1242
36848 msgid "INSPECTION SECURITY"
36849 msgstr ""
36850
36851 #. type: textblock
36852 #: ../src/guestfs.pod:1244
36853 msgid ""
36854 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36855 "directly from the guest, and these could contain any 8 bit data.  Callers "
36856 "should be careful to escape these before printing them to a structured file "
36857 "(for example, use HTML escaping if creating a web page)."
36858 msgstr ""
36859
36860 #. type: textblock
36861 #: ../src/guestfs.pod:1250
36862 msgid ""
36863 "Guest configuration may be altered in unusual ways by the administrator of "
36864 "the virtual machine, and may not reflect reality (particularly for untrusted "
36865 "or actively malicious guests).  For example we parse the hostname from "
36866 "configuration files like C</etc/sysconfig/network> that we find in the "
36867 "guest, but the guest administrator can easily manipulate these files to "
36868 "provide the wrong hostname."
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../src/guestfs.pod:1258
36873 msgid ""
36874 "The inspection API parses guest configuration using two external libraries: "
36875 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36876 "designed to be robust in the face of malicious data, although denial of "
36877 "service attacks are still possible, for example with oversized configuration "
36878 "files."
36879 msgstr ""
36880
36881 #. type: =head2
36882 #: ../src/guestfs.pod:1264
36883 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36884 msgstr ""
36885
36886 #. type: textblock
36887 #: ../src/guestfs.pod:1266
36888 msgid ""
36889 "Be very cautious about running commands from the guest.  By running a "
36890 "command in the guest, you are giving CPU time to a binary that you do not "
36891 "control, under the same user account as the library, albeit wrapped in qemu "
36892 "virtualization.  More information and alternatives can be found in the "
36893 "section L</RUNNING COMMANDS>."
36894 msgstr ""
36895
36896 #. type: =head2
36897 #: ../src/guestfs.pod:1272
36898 msgid "CVE-2010-3851"
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../src/guestfs.pod:1274
36903 msgid "https://bugzilla.redhat.com/642934"
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:1276
36908 msgid ""
36909 "This security bug concerns the automatic disk format detection that qemu "
36910 "does on disk images."
36911 msgstr ""
36912
36913 #. type: textblock
36914 #: ../src/guestfs.pod:1279
36915 msgid ""
36916 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36917 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36918 "for one of the known headers, and if none is found then assuming the disk "
36919 "image must be raw."
36920 msgstr ""
36921
36922 #. type: textblock
36923 #: ../src/guestfs.pod:1284
36924 msgid ""
36925 "This allows a guest which has been given a raw disk image to write some "
36926 "other header.  At next boot (or when the disk image is accessed by "
36927 "libguestfs) qemu would do autodetection and think the disk image format was, "
36928 "say, qcow2 based on the header written by the guest."
36929 msgstr ""
36930
36931 #. type: textblock
36932 #: ../src/guestfs.pod:1289
36933 msgid ""
36934 "This in itself would not be a problem, but qcow2 offers many features, one "
36935 "of which is to allow a disk image to refer to another image (called the "
36936 "\"backing disk\").  It does this by placing the path to the backing disk "
36937 "into the qcow2 header.  This path is not validated and could point to any "
36938 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36939 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36940 "control of the attacker."
36941 msgstr ""
36942
36943 #. type: textblock
36944 #: ../src/guestfs.pod:1297
36945 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
36946 msgstr ""
36947
36948 #. type: textblock
36949 #: ../src/guestfs.pod:1304
36950 msgid "You have enabled the network or have opened the disk in write mode."
36951 msgstr ""
36952
36953 #. type: textblock
36954 #: ../src/guestfs.pod:1308
36955 msgid ""
36956 "You are also running untrusted code from the guest (see L</RUNNING "
36957 "COMMANDS>)."
36958 msgstr ""
36959
36960 #. type: textblock
36961 #: ../src/guestfs.pod:1313
36962 msgid ""
36963 "The way to avoid this is to specify the expected disk format when adding "
36964 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36965 "should always do this if the disk is raw format, and it's a good idea for "
36966 "other cases too."
36967 msgstr ""
36968
36969 #. type: textblock
36970 #: ../src/guestfs.pod:1318
36971 msgid ""
36972 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36973 "format is fetched from libvirt and passed through."
36974 msgstr ""
36975
36976 #. type: textblock
36977 #: ../src/guestfs.pod:1321
36978 msgid ""
36979 "For libguestfs tools, use the I<--format> command line parameter as "
36980 "appropriate."
36981 msgstr ""
36982
36983 #. type: =head1
36984 #: ../src/guestfs.pod:1324
36985 msgid "CONNECTION MANAGEMENT"
36986 msgstr ""
36987
36988 #. type: =head2
36989 #: ../src/guestfs.pod:1326
36990 msgid "guestfs_h *"
36991 msgstr ""
36992
36993 #. type: textblock
36994 #: ../src/guestfs.pod:1328
36995 msgid ""
36996 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36997 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36998 "handle and release all resources used."
36999 msgstr ""
37000
37001 #. type: textblock
37002 #: ../src/guestfs.pod:1332
37003 msgid ""
37004 "For information on using multiple handles and threads, see the section "
37005 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37006 msgstr ""
37007
37008 #. type: =head2
37009 #: ../src/guestfs.pod:1335
37010 msgid "guestfs_create"
37011 msgstr ""
37012
37013 #. type: verbatim
37014 #: ../src/guestfs.pod:1337
37015 #, no-wrap
37016 msgid ""
37017 " guestfs_h *guestfs_create (void);\n"
37018 "\n"
37019 msgstr ""
37020
37021 #. type: textblock
37022 #: ../src/guestfs.pod:1339
37023 msgid "Create a connection handle."
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../src/guestfs.pod:1341
37028 msgid ""
37029 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37030 "NULL."
37031 msgstr ""
37032
37033 #. type: textblock
37034 #: ../src/guestfs.pod:1344
37035 msgid ""
37036 "You have to \"configure\" the handle after creating it.  This includes "
37037 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37038 "handle at least once."
37039 msgstr ""
37040
37041 #. type: textblock
37042 #: ../src/guestfs.pod:1348
37043 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37044 msgstr ""
37045
37046 #. type: textblock
37047 #: ../src/guestfs.pod:1350
37048 msgid ""
37049 "You may also want to configure error handling for the handle.  See the "
37050 "L</ERROR HANDLING> section below."
37051 msgstr ""
37052
37053 #. type: =head2
37054 #: ../src/guestfs.pod:1353
37055 msgid "guestfs_close"
37056 msgstr ""
37057
37058 #. type: verbatim
37059 #: ../src/guestfs.pod:1355
37060 #, no-wrap
37061 msgid ""
37062 " void guestfs_close (guestfs_h *g);\n"
37063 "\n"
37064 msgstr ""
37065
37066 #. type: textblock
37067 #: ../src/guestfs.pod:1357
37068 msgid "This closes the connection handle and frees up all resources used."
37069 msgstr ""
37070
37071 #. type: textblock
37072 #: ../src/guestfs.pod:1359
37073 msgid ""
37074 "If autosync was set on the handle and the handle was launched, then this "
37075 "implicitly calls various functions to unmount filesystems and sync the "
37076 "disk.  See L</guestfs_set_autosync> for more details."
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../src/guestfs.pod:1363
37081 msgid "If a close callback was set on the handle, then it is called."
37082 msgstr ""
37083
37084 #. type: =head1
37085 #: ../src/guestfs.pod:1365
37086 msgid "ERROR HANDLING"
37087 msgstr ""
37088
37089 #. type: textblock
37090 #: ../src/guestfs.pod:1367
37091 msgid ""
37092 "API functions can return errors.  For example, almost all functions that "
37093 "return C<int> will return C<-1> to indicate an error."
37094 msgstr ""
37095
37096 #. type: textblock
37097 #: ../src/guestfs.pod:1370
37098 msgid ""
37099 "Additional information is available for errors: an error message string and "
37100 "optionally an error number (errno) if the thing that failed was a system "
37101 "call."
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../src/guestfs.pod:1374
37106 msgid ""
37107 "You can get at the additional information about the last error on the handle "
37108 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37109 "up an error handler with L</guestfs_set_error_handler>."
37110 msgstr ""
37111
37112 #. type: textblock
37113 #: ../src/guestfs.pod:1379
37114 msgid ""
37115 "When the handle is created, a default error handler is installed which "
37116 "prints the error message string to C<stderr>.  For small short-running "
37117 "command line programs it is sufficient to do:"
37118 msgstr ""
37119
37120 #. type: verbatim
37121 #: ../src/guestfs.pod:1383
37122 #, no-wrap
37123 msgid ""
37124 " if (guestfs_launch (g) == -1)\n"
37125 "   exit (EXIT_FAILURE);\n"
37126 "\n"
37127 msgstr ""
37128
37129 #. type: textblock
37130 #: ../src/guestfs.pod:1386
37131 msgid ""
37132 "since the default error handler will ensure that an error message has been "
37133 "printed to C<stderr> before the program exits."
37134 msgstr ""
37135
37136 #. type: textblock
37137 #: ../src/guestfs.pod:1389
37138 msgid ""
37139 "For other programs the caller will almost certainly want to install an "
37140 "alternate error handler or do error handling in-line like this:"
37141 msgstr ""
37142
37143 #. type: verbatim
37144 #: ../src/guestfs.pod:1392
37145 #, no-wrap
37146 msgid ""
37147 " /* This disables the default behaviour of printing errors\n"
37148 "    on stderr. */\n"
37149 " guestfs_set_error_handler (g, NULL, NULL);\n"
37150 " \n"
37151 msgstr ""
37152
37153 #. type: verbatim
37154 #: ../src/guestfs.pod:1396
37155 #, no-wrap
37156 msgid ""
37157 " if (guestfs_launch (g) == -1) {\n"
37158 "   /* Examine the error message and print it etc. */\n"
37159 "   char *msg = guestfs_last_error (g);\n"
37160 "   int errnum = guestfs_last_errno (g);\n"
37161 "   fprintf (stderr, \"%s\", msg);\n"
37162 "   if (errnum != 0)\n"
37163 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37164 "   fprintf (stderr, \"\\n\");\n"
37165 "   /* ... */\n"
37166 " }\n"
37167 "\n"
37168 msgstr ""
37169
37170 #. type: textblock
37171 #: ../src/guestfs.pod:1407
37172 msgid ""
37173 "Out of memory errors are handled differently.  The default action is to call "
37174 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
37175 "L</guestfs_set_out_of_memory_handler>."
37176 msgstr ""
37177
37178 #. type: textblock
37179 #: ../src/guestfs.pod:1411
37180 msgid ""
37181 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37182 "because there is no handle if this happens there is no way to get additional "
37183 "error information.  However L</guestfs_create> is supposed to be a "
37184 "lightweight operation which can only fail because of insufficient memory (it "
37185 "returns NULL in this case)."
37186 msgstr ""
37187
37188 #. type: =head2
37189 #: ../src/guestfs.pod:1417
37190 msgid "guestfs_last_error"
37191 msgstr ""
37192
37193 #. type: verbatim
37194 #: ../src/guestfs.pod:1419
37195 #, no-wrap
37196 msgid ""
37197 " const char *guestfs_last_error (guestfs_h *g);\n"
37198 "\n"
37199 msgstr ""
37200
37201 #. type: textblock
37202 #: ../src/guestfs.pod:1421
37203 msgid ""
37204 "This returns the last error message that happened on C<g>.  If there has not "
37205 "been an error since the handle was created, then this returns C<NULL>."
37206 msgstr ""
37207
37208 #. type: textblock
37209 #: ../src/guestfs.pod:1425
37210 msgid ""
37211 "The lifetime of the returned string is until the next error occurs, or "
37212 "L</guestfs_close> is called."
37213 msgstr ""
37214
37215 #. type: =head2
37216 #: ../src/guestfs.pod:1428
37217 msgid "guestfs_last_errno"
37218 msgstr ""
37219
37220 #. type: verbatim
37221 #: ../src/guestfs.pod:1430
37222 #, no-wrap
37223 msgid ""
37224 " int guestfs_last_errno (guestfs_h *g);\n"
37225 "\n"
37226 msgstr ""
37227
37228 #. type: textblock
37229 #: ../src/guestfs.pod:1432
37230 msgid "This returns the last error number (errno) that happened on C<g>."
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:1434
37235 msgid "If successful, an errno integer not equal to zero is returned."
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:1436
37240 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
37241 msgstr ""
37242
37243 #. type: textblock
37244 #: ../src/guestfs.pod:1443
37245 msgid "There has not been any error on the handle."
37246 msgstr ""
37247
37248 #. type: textblock
37249 #: ../src/guestfs.pod:1447
37250 msgid ""
37251 "There has been an error but the errno was meaningless.  This corresponds to "
37252 "the case where the error did not come from a failed system call, but for "
37253 "some other reason."
37254 msgstr ""
37255
37256 #. type: textblock
37257 #: ../src/guestfs.pod:1453
37258 msgid ""
37259 "There was an error from a failed system call, but for some reason the errno "
37260 "was not captured and returned.  This usually indicates a bug in libguestfs."
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:1459
37265 msgid ""
37266 "Libguestfs tries to convert the errno from inside the applicance into a "
37267 "corresponding errno for the caller (not entirely trivial: the appliance "
37268 "might be running a completely different operating system from the library "
37269 "and error numbers are not standardized across Un*xen).  If this could not be "
37270 "done, then the error is translated to C<EINVAL>.  In practice this should "
37271 "only happen in very rare circumstances."
37272 msgstr ""
37273
37274 #. type: =head2
37275 #: ../src/guestfs.pod:1467
37276 msgid "guestfs_set_error_handler"
37277 msgstr ""
37278
37279 #. type: verbatim
37280 #: ../src/guestfs.pod:1469
37281 #, no-wrap
37282 msgid ""
37283 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37284 "                                           void *opaque,\n"
37285 "                                           const char *msg);\n"
37286 " void guestfs_set_error_handler (guestfs_h *g,\n"
37287 "                                 guestfs_error_handler_cb cb,\n"
37288 "                                 void *opaque);\n"
37289 "\n"
37290 msgstr ""
37291
37292 #. type: textblock
37293 #: ../src/guestfs.pod:1476
37294 msgid ""
37295 "The callback C<cb> will be called if there is an error.  The parameters "
37296 "passed to the callback are an opaque data pointer and the error message "
37297 "string."
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../src/guestfs.pod:1480
37302 msgid ""
37303 "C<errno> is not passed to the callback.  To get that the callback must call "
37304 "L</guestfs_last_errno>."
37305 msgstr ""
37306
37307 #. type: textblock
37308 #: ../src/guestfs.pod:1483
37309 msgid ""
37310 "Note that the message string C<msg> is freed as soon as the callback "
37311 "function returns, so if you want to stash it somewhere you must make your "
37312 "own copy."
37313 msgstr ""
37314
37315 #. type: textblock
37316 #: ../src/guestfs.pod:1487
37317 msgid "The default handler prints messages on C<stderr>."
37318 msgstr ""
37319
37320 #. type: textblock
37321 #: ../src/guestfs.pod:1489
37322 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37323 msgstr ""
37324
37325 #. type: =head2
37326 #: ../src/guestfs.pod:1491
37327 msgid "guestfs_get_error_handler"
37328 msgstr ""
37329
37330 #. type: verbatim
37331 #: ../src/guestfs.pod:1493
37332 #, no-wrap
37333 msgid ""
37334 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37335 "                                                     void **opaque_rtn);\n"
37336 "\n"
37337 msgstr ""
37338
37339 #. type: textblock
37340 #: ../src/guestfs.pod:1496
37341 msgid "Returns the current error handler callback."
37342 msgstr ""
37343
37344 #. type: =head2
37345 #: ../src/guestfs.pod:1498
37346 msgid "guestfs_set_out_of_memory_handler"
37347 msgstr ""
37348
37349 #. type: verbatim
37350 #: ../src/guestfs.pod:1500
37351 #, no-wrap
37352 msgid ""
37353 " typedef void (*guestfs_abort_cb) (void);\n"
37354 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37355 "                                         guestfs_abort_cb);\n"
37356 "\n"
37357 msgstr ""
37358
37359 #. type: textblock
37360 #: ../src/guestfs.pod:1504
37361 msgid ""
37362 "The callback C<cb> will be called if there is an out of memory situation.  "
37363 "I<Note this callback must not return>."
37364 msgstr ""
37365
37366 #. type: textblock
37367 #: ../src/guestfs.pod:1507
37368 msgid "The default is to call L<abort(3)>."
37369 msgstr ""
37370
37371 #. type: textblock
37372 #: ../src/guestfs.pod:1509
37373 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37374 msgstr ""
37375
37376 #. type: =head2
37377 #: ../src/guestfs.pod:1512
37378 msgid "guestfs_get_out_of_memory_handler"
37379 msgstr ""
37380
37381 #. type: verbatim
37382 #: ../src/guestfs.pod:1514
37383 #, no-wrap
37384 msgid ""
37385 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37386 "\n"
37387 msgstr ""
37388
37389 #. type: textblock
37390 #: ../src/guestfs.pod:1516
37391 msgid "This returns the current out of memory handler."
37392 msgstr ""
37393
37394 #. type: =head1
37395 #: ../src/guestfs.pod:1518
37396 msgid "API CALLS"
37397 msgstr ""
37398
37399 #. type: =head1
37400 #: ../src/guestfs.pod:1522
37401 msgid "STRUCTURES"
37402 msgstr ""
37403
37404 #. type: textblock
37405 #: ../src/guestfs.pod:1524
37406 msgid "@STRUCTS@"
37407 msgstr ""
37408
37409 #. type: =head1
37410 #: ../src/guestfs.pod:1526
37411 msgid "AVAILABILITY"
37412 msgstr ""
37413
37414 #. type: =head2
37415 #: ../src/guestfs.pod:1528
37416 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37417 msgstr ""
37418
37419 #. type: textblock
37420 #: ../src/guestfs.pod:1530
37421 msgid ""
37422 "Using L</guestfs_available> you can test availability of the following "
37423 "groups of functions.  This test queries the appliance to see if the "
37424 "appliance you are currently using supports the functionality."
37425 msgstr ""
37426
37427 #. type: textblock
37428 #: ../src/guestfs.pod:1535
37429 msgid "@AVAILABILITY@"
37430 msgstr ""
37431
37432 #. type: =head2
37433 #: ../src/guestfs.pod:1537
37434 msgid "GUESTFISH supported COMMAND"
37435 msgstr ""
37436
37437 #. type: textblock
37438 #: ../src/guestfs.pod:1539
37439 msgid ""
37440 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37441 "prints out the available groups and whether they are supported by this build "
37442 "of libguestfs.  Note however that you have to do C<run> first."
37443 msgstr ""
37444
37445 #. type: =head2
37446 #: ../src/guestfs.pod:1544
37447 msgid "SINGLE CALLS AT COMPILE TIME"
37448 msgstr ""
37449
37450 #. type: textblock
37451 #: ../src/guestfs.pod:1546
37452 msgid ""
37453 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37454 "function, such as:"
37455 msgstr ""
37456
37457 #. type: verbatim
37458 #: ../src/guestfs.pod:1549
37459 #, no-wrap
37460 msgid ""
37461 " #define LIBGUESTFS_HAVE_DD 1\n"
37462 "\n"
37463 msgstr ""
37464
37465 #. type: textblock
37466 #: ../src/guestfs.pod:1551
37467 msgid "if L</guestfs_dd> is available."
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../src/guestfs.pod:1553
37472 msgid ""
37473 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37474 "function is available at compile time, we recommended using build tools such "
37475 "as autoconf or cmake.  For example in autotools you could use:"
37476 msgstr ""
37477
37478 #. type: verbatim
37479 #: ../src/guestfs.pod:1558
37480 #, no-wrap
37481 msgid ""
37482 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37483 " AC_CHECK_FUNCS([guestfs_dd])\n"
37484 "\n"
37485 msgstr ""
37486
37487 #. type: textblock
37488 #: ../src/guestfs.pod:1561
37489 msgid ""
37490 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37491 "in your program."
37492 msgstr ""
37493
37494 #. type: =head2
37495 #: ../src/guestfs.pod:1564
37496 msgid "SINGLE CALLS AT RUN TIME"
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../src/guestfs.pod:1566
37501 msgid ""
37502 "Testing at compile time doesn't guarantee that a function really exists in "
37503 "the library.  The reason is that you might be dynamically linked against a "
37504 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37505 "This situation unfortunately results in a segmentation fault, which is a "
37506 "shortcoming of the C dynamic linking system itself."
37507 msgstr ""
37508
37509 #. type: textblock
37510 #: ../src/guestfs.pod:1573
37511 msgid ""
37512 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37513 "in this example program (note that you still need the compile time check as "
37514 "well):"
37515 msgstr ""
37516
37517 #. type: verbatim
37518 #: ../src/guestfs.pod:1577
37519 #, no-wrap
37520 msgid ""
37521 " #include <stdio.h>\n"
37522 " #include <stdlib.h>\n"
37523 " #include <unistd.h>\n"
37524 " #include <dlfcn.h>\n"
37525 " #include <guestfs.h>\n"
37526 " \n"
37527 msgstr ""
37528
37529 #. type: verbatim
37530 #: ../src/guestfs.pod:1583
37531 #, no-wrap
37532 msgid ""
37533 " main ()\n"
37534 " {\n"
37535 " #ifdef LIBGUESTFS_HAVE_DD\n"
37536 "   void *dl;\n"
37537 "   int has_function;\n"
37538 " \n"
37539 msgstr ""
37540
37541 #. type: verbatim
37542 #: ../src/guestfs.pod:1589
37543 #, no-wrap
37544 msgid ""
37545 "   /* Test if the function guestfs_dd is really available. */\n"
37546 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37547 "   if (!dl) {\n"
37548 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37549 "     exit (EXIT_FAILURE);\n"
37550 "   }\n"
37551 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37552 "   dlclose (dl);\n"
37553 " \n"
37554 msgstr ""
37555
37556 #. type: verbatim
37557 #: ../src/guestfs.pod:1598
37558 #, no-wrap
37559 msgid ""
37560 "   if (!has_function)\n"
37561 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37562 "   else {\n"
37563 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37564 "     /* Now it's safe to call\n"
37565 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37566 "     */\n"
37567 "   }\n"
37568 " #else\n"
37569 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37570 " #endif\n"
37571 "  }\n"
37572 "\n"
37573 msgstr ""
37574
37575 #. type: textblock
37576 #: ../src/guestfs.pod:1611
37577 msgid ""
37578 "You may think the above is an awful lot of hassle, and it is.  There are "
37579 "other ways outside of the C linking system to ensure that this kind of "
37580 "incompatibility never arises, such as using package versioning:"
37581 msgstr ""
37582
37583 #. type: verbatim
37584 #: ../src/guestfs.pod:1616
37585 #, no-wrap
37586 msgid ""
37587 " Requires: libguestfs >= 1.0.80\n"
37588 "\n"
37589 msgstr ""
37590
37591 #. type: =head1
37592 #: ../src/guestfs.pod:1618
37593 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37594 msgstr ""
37595
37596 #. type: textblock
37597 #: ../src/guestfs.pod:1620
37598 msgid ""
37599 "A recent feature of the API is the introduction of calls which take optional "
37600 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37601 "takes variable arguments (ie. C<...>), as in this example:"
37602 msgstr ""
37603
37604 #. type: verbatim
37605 #: ../src/guestfs.pod:1625
37606 #, no-wrap
37607 msgid ""
37608 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37609 "\n"
37610 msgstr ""
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:1627
37614 msgid ""
37615 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37616 "call with no optional arguments specified:"
37617 msgstr ""
37618
37619 #. type: verbatim
37620 #: ../src/guestfs.pod:1630
37621 #, no-wrap
37622 msgid ""
37623 " guestfs_add_drive_opts (g, filename, -1);\n"
37624 "\n"
37625 msgstr ""
37626
37627 #. type: textblock
37628 #: ../src/guestfs.pod:1632
37629 msgid "With a single optional argument:"
37630 msgstr ""
37631
37632 #. type: verbatim
37633 #: ../src/guestfs.pod:1634
37634 #, no-wrap
37635 msgid ""
37636 " guestfs_add_drive_opts (g, filename,\n"
37637 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37638 "                         -1);\n"
37639 "\n"
37640 msgstr ""
37641
37642 #. type: textblock
37643 #: ../src/guestfs.pod:1638
37644 msgid "With two:"
37645 msgstr ""
37646
37647 #. type: verbatim
37648 #: ../src/guestfs.pod:1640
37649 #, no-wrap
37650 msgid ""
37651 " guestfs_add_drive_opts (g, filename,\n"
37652 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37653 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37654 "                         -1);\n"
37655 "\n"
37656 msgstr ""
37657
37658 #. type: textblock
37659 #: ../src/guestfs.pod:1645
37660 msgid ""
37661 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37662 "happen!"
37663 msgstr ""
37664
37665 #. type: =head2
37666 #: ../src/guestfs.pod:1648
37667 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37668 msgstr ""
37669
37670 #. type: textblock
37671 #: ../src/guestfs.pod:1650
37672 msgid ""
37673 "The second variant has the same name with the suffix C<_va>, which works the "
37674 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37675 "example function, this is declared:"
37676 msgstr ""
37677
37678 #. type: verbatim
37679 #: ../src/guestfs.pod:1654
37680 #, no-wrap
37681 msgid ""
37682 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37683 "                                va_list args);\n"
37684 "\n"
37685 msgstr ""
37686
37687 #. type: =head2
37688 #: ../src/guestfs.pod:1657
37689 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37690 msgstr ""
37691
37692 #. type: textblock
37693 #: ../src/guestfs.pod:1659
37694 msgid ""
37695 "The third variant is useful where you need to construct these calls.  You "
37696 "pass in a structure where you fill in the optional fields.  The structure "
37697 "has a bitmask as the first element which you must set to indicate which "
37698 "fields you have filled in.  For our example function the structure and call "
37699 "are declared:"
37700 msgstr ""
37701
37702 #. type: verbatim
37703 #: ../src/guestfs.pod:1665
37704 #, no-wrap
37705 msgid ""
37706 " struct guestfs_add_drive_opts_argv {\n"
37707 "   uint64_t bitmask;\n"
37708 "   int readonly;\n"
37709 "   const char *format;\n"
37710 "   /* ... */\n"
37711 " };\n"
37712 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37713 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37714 "\n"
37715 msgstr ""
37716
37717 #. type: textblock
37718 #: ../src/guestfs.pod:1674
37719 msgid "You could call it like this:"
37720 msgstr ""
37721
37722 #. type: verbatim
37723 #: ../src/guestfs.pod:1676
37724 #, no-wrap
37725 msgid ""
37726 " struct guestfs_add_drive_opts_argv optargs = {\n"
37727 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37728 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37729 "   .readonly = 1,\n"
37730 "   .format = \"qcow2\"\n"
37731 " };\n"
37732 " \n"
37733 msgstr ""
37734
37735 #. type: verbatim
37736 #: ../src/guestfs.pod:1683
37737 #, no-wrap
37738 msgid ""
37739 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37740 "\n"
37741 msgstr ""
37742
37743 #. type: textblock
37744 #: ../src/guestfs.pod:1691
37745 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37746 msgstr ""
37747
37748 #. type: textblock
37749 #: ../src/guestfs.pod:1696
37750 msgid "You do not need to fill in all fields of the structure."
37751 msgstr ""
37752
37753 #. type: textblock
37754 #: ../src/guestfs.pod:1700
37755 msgid ""
37756 "There must be a one-to-one correspondence between fields of the structure "
37757 "that are filled in, and bits set in the bitmask."
37758 msgstr ""
37759
37760 #. type: =head2
37761 #: ../src/guestfs.pod:1705
37762 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37763 msgstr ""
37764
37765 #. type: textblock
37766 #: ../src/guestfs.pod:1707
37767 msgid ""
37768 "In other languages, optional arguments are expressed in the way that is "
37769 "natural for that language.  We refer you to the language-specific "
37770 "documentation for more details on that."
37771 msgstr ""
37772
37773 #. type: textblock
37774 #: ../src/guestfs.pod:1711
37775 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37776 msgstr ""
37777
37778 #. type: =head2
37779 #: ../src/guestfs.pod:1713
37780 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37781 msgstr ""
37782
37783 #. type: textblock
37784 #: ../src/guestfs.pod:1715
37785 msgid ""
37786 "B<Note:> This section documents the generic event mechanism introduced in "
37787 "libguestfs 1.10, which you should use in new code if possible.  The old "
37788 "functions C<guestfs_set_log_message_callback>, "
37789 "C<guestfs_set_subprocess_quit_callback>, "
37790 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37791 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37792 "page.  Because of the ABI guarantee, the old functions continue to work."
37793 msgstr ""
37794
37795 #. type: textblock
37796 #: ../src/guestfs.pod:1724
37797 msgid ""
37798 "Handles generate events when certain things happen, such as log messages "
37799 "being generated, progress messages during long-running operations, or the "
37800 "handle being closed.  The API calls described below let you register a "
37801 "callback to be called when events happen.  You can register multiple "
37802 "callbacks (for the same, different or overlapping sets of events), and "
37803 "individually remove callbacks.  If callbacks are not removed, then they "
37804 "remain in force until the handle is closed."
37805 msgstr ""
37806
37807 #. type: textblock
37808 #: ../src/guestfs.pod:1732
37809 msgid ""
37810 "In the current implementation, events are only generated synchronously: that "
37811 "means that events (and hence callbacks) can only happen while you are in the "
37812 "middle of making another libguestfs call.  The callback is called in the "
37813 "same thread."
37814 msgstr ""
37815
37816 #. type: textblock
37817 #: ../src/guestfs.pod:1737
37818 msgid ""
37819 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37820 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37821 msgstr ""
37822
37823 #. type: =head3
37824 #: ../src/guestfs.pod:1741
37825 msgid "CLASSES OF EVENTS"
37826 msgstr ""
37827
37828 #. type: =item
37829 #: ../src/guestfs.pod:1745
37830 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37831 msgstr ""
37832
37833 #. type: textblock
37834 #: ../src/guestfs.pod:1748
37835 msgid ""
37836 "The callback function will be called while the handle is being closed "
37837 "(synchronously from L</guestfs_close>)."
37838 msgstr ""
37839
37840 #. type: textblock
37841 #: ../src/guestfs.pod:1751
37842 msgid ""
37843 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37844 "handles that are open when the program exits.  This means that this callback "
37845 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37846 "problems in higher-level languages (eg. if your HLL interpreter has already "
37847 "been cleaned up by the time this is called, and if your callback then jumps "
37848 "into some HLL function)."
37849 msgstr ""
37850
37851 #. type: textblock
37852 #: ../src/guestfs.pod:1758
37853 msgid ""
37854 "If no callback is registered: the handle is closed without any callback "
37855 "being invoked."
37856 msgstr ""
37857
37858 #. type: =item
37859 #: ../src/guestfs.pod:1761
37860 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37861 msgstr ""
37862
37863 #. type: textblock
37864 #: ../src/guestfs.pod:1764
37865 msgid ""
37866 "The callback function will be called when the child process quits, either "
37867 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37868 "corresponds to a transition from any state to the CONFIG state)."
37869 msgstr ""
37870
37871 #. type: textblock
37872 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37873 msgid "If no callback is registered: the event is ignored."
37874 msgstr ""
37875
37876 #. type: =item
37877 #: ../src/guestfs.pod:1770
37878 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../src/guestfs.pod:1773
37883 msgid ""
37884 "The callback function will be called when the child process becomes ready "
37885 "first time after it has been launched.  (This corresponds to a transition "
37886 "from LAUNCHING to the READY state)."
37887 msgstr ""
37888
37889 #. type: =item
37890 #: ../src/guestfs.pod:1779
37891 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37892 msgstr ""
37893
37894 #. type: textblock
37895 #: ../src/guestfs.pod:1782
37896 msgid ""
37897 "Some long-running operations can generate progress messages.  If this "
37898 "callback is registered, then it will be called each time a progress message "
37899 "is generated (usually two seconds after the operation started, and three "
37900 "times per second thereafter until it completes, although the frequency may "
37901 "change in future versions)."
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../src/guestfs.pod:1788
37906 msgid ""
37907 "The callback receives in the payload four unsigned 64 bit numbers which are "
37908 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../src/guestfs.pod:1791
37913 msgid ""
37914 "The units of C<total> are not defined, although for some operations C<total> "
37915 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37916 "or megabytes), and C<position> may be the portion which has been "
37917 "transferred."
37918 msgstr ""
37919
37920 #. type: textblock
37921 #: ../src/guestfs.pod:1796
37922 msgid "The only defined and stable parts of the API are:"
37923 msgstr ""
37924
37925 #. type: textblock
37926 #: ../src/guestfs.pod:1802
37927 msgid ""
37928 "The callback can display to the user some type of progress bar or indicator "
37929 "which shows the ratio of C<position>:C<total>."
37930 msgstr ""
37931
37932 #. type: textblock
37933 #: ../src/guestfs.pod:1807
37934 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37935 msgstr ""
37936
37937 #. type: textblock
37938 #: ../src/guestfs.pod:1811
37939 msgid ""
37940 "If any progress notification is sent during a call, then a final progress "
37941 "notification is always sent when C<position> = C<total> (I<unless> the call "
37942 "fails with an error)."
37943 msgstr ""
37944
37945 #. type: textblock
37946 #: ../src/guestfs.pod:1815
37947 msgid ""
37948 "This is to simplify caller code, so callers can easily set the progress "
37949 "indicator to \"100%\" at the end of the operation, without requiring special "
37950 "code to detect this case."
37951 msgstr ""
37952
37953 #. type: textblock
37954 #: ../src/guestfs.pod:1821
37955 msgid ""
37956 "For some calls we are unable to estimate the progress of the call, but we "
37957 "can still generate progress messages to indicate activity.  This is known as "
37958 "\"pulse mode\", and is directly supported by certain progress bar "
37959 "implementations (eg. GtkProgressBar)."
37960 msgstr ""
37961
37962 #. type: textblock
37963 #: ../src/guestfs.pod:1826
37964 msgid ""
37965 "For these calls, zero or more progress messages are generated with "
37966 "C<position = 0> and C<total = 1>, followed by a final message with "
37967 "C<position = total = 1>."
37968 msgstr ""
37969
37970 #. type: textblock
37971 #: ../src/guestfs.pod:1830
37972 msgid ""
37973 "As noted above, if the call fails with an error then the final message may "
37974 "not be generated."
37975 msgstr ""
37976
37977 #. type: textblock
37978 #: ../src/guestfs.pod:1835
37979 msgid ""
37980 "The callback also receives the procedure number (C<proc_nr>) and serial "
37981 "number (C<serial>) of the call.  These are only useful for debugging "
37982 "protocol issues, and the callback can normally ignore them.  The callback "
37983 "may want to print these numbers in error messages or debugging messages."
37984 msgstr ""
37985
37986 #. type: textblock
37987 #: ../src/guestfs.pod:1841
37988 msgid "If no callback is registered: progress messages are discarded."
37989 msgstr ""
37990
37991 #. type: =item
37992 #: ../src/guestfs.pod:1843
37993 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37994 msgstr ""
37995
37996 #. type: textblock
37997 #: ../src/guestfs.pod:1846
37998 msgid ""
37999 "The callback function is called whenever a log message is generated by qemu, "
38000 "the appliance kernel, guestfsd (daemon), or utility programs."
38001 msgstr ""
38002
38003 #. type: textblock
38004 #: ../src/guestfs.pod:1849
38005 msgid ""
38006 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
38007 "(L</guestfs_launch>) then additional debug messages are generated."
38008 msgstr ""
38009
38010 #. type: textblock
38011 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38012 msgid ""
38013 "If no callback is registered: the messages are discarded unless the verbose "
38014 "flag is set in which case they are sent to stderr.  You can override the "
38015 "printing of verbose messages to stderr by setting up a callback."
38016 msgstr ""
38017
38018 #. type: =item
38019 #: ../src/guestfs.pod:1857
38020 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:1860
38025 msgid ""
38026 "The callback function is called whenever a log message is generated by the "
38027 "library part of libguestfs."
38028 msgstr ""
38029
38030 #. type: textblock
38031 #: ../src/guestfs.pod:1863
38032 msgid ""
38033 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38034 "messages are generated."
38035 msgstr ""
38036
38037 #. type: =item
38038 #: ../src/guestfs.pod:1871
38039 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38040 msgstr ""
38041
38042 #. type: textblock
38043 #: ../src/guestfs.pod:1874
38044 msgid ""
38045 "The callback function is called whenever a trace message is generated.  This "
38046 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38047 msgstr ""
38048
38049 #. type: textblock
38050 #: ../src/guestfs.pod:1877
38051 msgid ""
38052 "If no callback is registered: the messages are sent to stderr.  You can "
38053 "override the printing of trace messages to stderr by setting up a callback."
38054 msgstr ""
38055
38056 #. type: =item
38057 #: ../src/guestfs.pod:1881
38058 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38059 msgstr ""
38060
38061 #. type: textblock
38062 #: ../src/guestfs.pod:1884
38063 msgid "The callback function is called whenever a libguestfs function is entered."
38064 msgstr ""
38065
38066 #. type: textblock
38067 #: ../src/guestfs.pod:1887
38068 msgid ""
38069 "The payload is a string which contains the name of the function that we are "
38070 "entering (not including C<guestfs_> prefix)."
38071 msgstr ""
38072
38073 #. type: textblock
38074 #: ../src/guestfs.pod:1890
38075 msgid ""
38076 "Note that libguestfs functions can call themselves, so you may see many "
38077 "events from a single call.  A few libguestfs functions do not generate this "
38078 "event."
38079 msgstr ""
38080
38081 #. type: =head3
38082 #: ../src/guestfs.pod:1898
38083 msgid "guestfs_set_event_callback"
38084 msgstr ""
38085
38086 #. type: verbatim
38087 #: ../src/guestfs.pod:1900
38088 #, no-wrap
38089 msgid ""
38090 " int guestfs_set_event_callback (guestfs_h *g,\n"
38091 "                                 guestfs_event_callback cb,\n"
38092 "                                 uint64_t event_bitmask,\n"
38093 "                                 int flags,\n"
38094 "                                 void *opaque);\n"
38095 "\n"
38096 msgstr ""
38097
38098 #. type: textblock
38099 #: ../src/guestfs.pod:1906
38100 msgid ""
38101 "This function registers a callback (C<cb>) for all event classes in the "
38102 "C<event_bitmask>."
38103 msgstr ""
38104
38105 #. type: textblock
38106 #: ../src/guestfs.pod:1909
38107 msgid ""
38108 "For example, to register for all log message events, you could call this "
38109 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38110 "To register a single callback for all possible classes of events, use "
38111 "C<GUESTFS_EVENT_ALL>."
38112 msgstr ""
38113
38114 #. type: textblock
38115 #: ../src/guestfs.pod:1915
38116 msgid "C<flags> should always be passed as 0."
38117 msgstr ""
38118
38119 #. type: textblock
38120 #: ../src/guestfs.pod:1917
38121 msgid ""
38122 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38123 "it for any purpose."
38124 msgstr ""
38125
38126 #. type: textblock
38127 #: ../src/guestfs.pod:1920
38128 msgid ""
38129 "The return value is the event handle (an integer) which you can use to "
38130 "delete the callback (see below)."
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:1923
38135 msgid ""
38136 "If there is an error, this function returns C<-1>, and sets the error in the "
38137 "handle in the usual way (see L</guestfs_last_error> etc.)"
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:1926
38142 msgid ""
38143 "Callbacks remain in effect until they are deleted, or until the handle is "
38144 "closed."
38145 msgstr ""
38146
38147 #. type: textblock
38148 #: ../src/guestfs.pod:1929
38149 msgid ""
38150 "In the case where multiple callbacks are registered for a particular event "
38151 "class, all of the callbacks are called.  The order in which multiple "
38152 "callbacks are called is not defined."
38153 msgstr ""
38154
38155 #. type: =head3
38156 #: ../src/guestfs.pod:1933
38157 msgid "guestfs_delete_event_callback"
38158 msgstr ""
38159
38160 #. type: verbatim
38161 #: ../src/guestfs.pod:1935
38162 #, no-wrap
38163 msgid ""
38164 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38165 "\n"
38166 msgstr ""
38167
38168 #. type: textblock
38169 #: ../src/guestfs.pod:1937
38170 msgid ""
38171 "Delete a callback that was previously registered.  C<event_handle> should be "
38172 "the integer that was returned by a previous call to "
38173 "C<guestfs_set_event_callback> on the same handle."
38174 msgstr ""
38175
38176 #. type: =head3
38177 #: ../src/guestfs.pod:1941
38178 msgid "guestfs_event_callback"
38179 msgstr ""
38180
38181 #. type: verbatim
38182 #: ../src/guestfs.pod:1943
38183 #, no-wrap
38184 msgid ""
38185 " typedef void (*guestfs_event_callback) (\n"
38186 "                  guestfs_h *g,\n"
38187 "                  void *opaque,\n"
38188 "                  uint64_t event,\n"
38189 "                  int event_handle,\n"
38190 "                  int flags,\n"
38191 "                  const char *buf, size_t buf_len,\n"
38192 "                  const uint64_t *array, size_t array_len);\n"
38193 "\n"
38194 msgstr ""
38195
38196 #. type: textblock
38197 #: ../src/guestfs.pod:1952
38198 msgid "This is the type of the event callback function that you have to provide."
38199 msgstr ""
38200
38201 #. type: textblock
38202 #: ../src/guestfs.pod:1955
38203 msgid ""
38204 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38205 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38206 "handle, and C<flags> which in the current API you should ignore."
38207 msgstr ""
38208
38209 #. type: textblock
38210 #: ../src/guestfs.pod:1959
38211 msgid ""
38212 "The remaining parameters contain the event payload (if any).  Each event may "
38213 "contain a payload, which usually relates to the event class, but for future "
38214 "proofing your code should be written to handle any payload for any event "
38215 "class."
38216 msgstr ""
38217
38218 #. type: textblock
38219 #: ../src/guestfs.pod:1964
38220 msgid ""
38221 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38222 "there is no message buffer).  Note that this message buffer can contain "
38223 "arbitrary 8 bit data, including NUL bytes."
38224 msgstr ""
38225
38226 #. type: textblock
38227 #: ../src/guestfs.pod:1968
38228 msgid ""
38229 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38230 "moment this is only used for progress messages."
38231 msgstr ""
38232
38233 #. type: =head3
38234 #: ../src/guestfs.pod:1971
38235 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38236 msgstr ""
38237
38238 #. type: textblock
38239 #: ../src/guestfs.pod:1973
38240 msgid ""
38241 "One motivation for the generic event API was to allow GUI programs to "
38242 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38243 "unconditionally to C<stderr>."
38244 msgstr ""
38245
38246 #. type: textblock
38247 #: ../src/guestfs.pod:1977
38248 msgid ""
38249 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38250 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38251 "messages are not events; you must capture error messages separately)."
38252 msgstr ""
38253
38254 #. type: textblock
38255 #: ../src/guestfs.pod:1982
38256 msgid ""
38257 "Programs have to set up a callback to capture the classes of events of "
38258 "interest:"
38259 msgstr ""
38260
38261 #. type: verbatim
38262 #: ../src/guestfs.pod:1985
38263 #, no-wrap
38264 msgid ""
38265 " int eh =\n"
38266 "   guestfs_set_event_callback\n"
38267 "     (g, message_callback,\n"
38268 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38269 "      GUESTFS_EVENT_TRACE,\n"
38270 "      0, NULL) == -1)\n"
38271 " if (eh == -1) {\n"
38272 "   // handle error in the usual way\n"
38273 " }\n"
38274 "\n"
38275 msgstr ""
38276
38277 #. type: textblock
38278 #: ../src/guestfs.pod:1995
38279 msgid ""
38280 "The callback can then direct messages to the appropriate place.  In this "
38281 "example, messages are directed to syslog:"
38282 msgstr ""
38283
38284 #. type: verbatim
38285 #: ../src/guestfs.pod:1998
38286 #, no-wrap
38287 msgid ""
38288 " static void\n"
38289 " message_callback (\n"
38290 "         guestfs_h *g,\n"
38291 "         void *opaque,\n"
38292 "         uint64_t event,\n"
38293 "         int event_handle,\n"
38294 "         int flags,\n"
38295 "         const char *buf, size_t buf_len,\n"
38296 "         const uint64_t *array, size_t array_len)\n"
38297 " {\n"
38298 "   const int priority = LOG_USER|LOG_INFO;\n"
38299 "   if (buf_len > 0)\n"
38300 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38301 " }\n"
38302 "\n"
38303 msgstr ""
38304
38305 #. type: =head1
38306 #: ../src/guestfs.pod:2013
38307 msgid "CANCELLING LONG TRANSFERS"
38308 msgstr ""
38309
38310 #. type: textblock
38311 #: ../src/guestfs.pod:2015
38312 msgid ""
38313 "Some operations can be cancelled by the caller while they are in progress.  "
38314 "Currently only operations that involve uploading or downloading data can be "
38315 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38316 "parameters in the generator)."
38317 msgstr ""
38318
38319 #. type: =head2
38320 #: ../src/guestfs.pod:2020
38321 msgid "guestfs_user_cancel"
38322 msgstr ""
38323
38324 #. type: verbatim
38325 #: ../src/guestfs.pod:2022
38326 #, no-wrap
38327 msgid ""
38328 " void guestfs_user_cancel (guestfs_h *g);\n"
38329 "\n"
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../src/guestfs.pod:2024
38334 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:2027
38339 msgid ""
38340 "Unlike most other libguestfs calls, this function is signal safe and thread "
38341 "safe.  You can call it from a signal handler or from another thread, without "
38342 "needing to do any locking."
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../src/guestfs.pod:2031
38347 msgid ""
38348 "The transfer that was in progress (if there is one) will stop shortly "
38349 "afterwards, and will return an error.  The errno (see "
38350 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38351 "out if the operation was cancelled or failed because of another error."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:2037
38356 msgid ""
38357 "No cleanup is performed: for example, if a file was being uploaded then "
38358 "after cancellation there may be a partially uploaded file.  It is the "
38359 "caller's responsibility to clean up if necessary."
38360 msgstr ""
38361
38362 #. type: textblock
38363 #: ../src/guestfs.pod:2041
38364 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38365 msgstr ""
38366
38367 #. type: textblock
38368 #: ../src/guestfs.pod:2043
38369 msgid ""
38370 "In an interactive text-based program, you might call it from a C<SIGINT> "
38371 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38372 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38373 "receive the C<^C> signal)."
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../src/guestfs.pod:2048
38378 msgid ""
38379 "In a graphical program, when the main thread is displaying a progress bar "
38380 "with a cancel button, wire up the cancel button to call this function."
38381 msgstr ""
38382
38383 #. type: =head1
38384 #: ../src/guestfs.pod:2052
38385 msgid "PRIVATE DATA AREA"
38386 msgstr ""
38387
38388 #. type: textblock
38389 #: ../src/guestfs.pod:2054
38390 msgid ""
38391 "You can attach named pieces of private data to the libguestfs handle, fetch "
38392 "them by name, and walk over them, for the lifetime of the handle.  This is "
38393 "called the private data area and is only available from the C API."
38394 msgstr ""
38395
38396 #. type: textblock
38397 #: ../src/guestfs.pod:2059
38398 msgid "To attach a named piece of data, use the following call:"
38399 msgstr ""
38400
38401 #. type: verbatim
38402 #: ../src/guestfs.pod:2061
38403 #, no-wrap
38404 msgid ""
38405 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38406 "\n"
38407 msgstr ""
38408
38409 #. type: textblock
38410 #: ../src/guestfs.pod:2063
38411 msgid ""
38412 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38413 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38414 "overwritten."
38415 msgstr ""
38416
38417 #. type: textblock
38418 #: ../src/guestfs.pod:2067
38419 msgid ""
38420 "You can use any C<key> you want, but your key should I<not> start with an "
38421 "underscore character.  Keys beginning with an underscore character are "
38422 "reserved for internal libguestfs purposes (eg. for implementing language "
38423 "bindings).  It is recommended that you prefix the key with some unique "
38424 "string to avoid collisions with other users."
38425 msgstr ""
38426
38427 #. type: textblock
38428 #: ../src/guestfs.pod:2073
38429 msgid "To retrieve the pointer, use:"
38430 msgstr ""
38431
38432 #. type: verbatim
38433 #: ../src/guestfs.pod:2075
38434 #, no-wrap
38435 msgid ""
38436 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38437 "\n"
38438 msgstr ""
38439
38440 #. type: textblock
38441 #: ../src/guestfs.pod:2077
38442 msgid ""
38443 "This function returns C<NULL> if either no data is found associated with "
38444 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38445 "C<NULL>."
38446 msgstr ""
38447
38448 #. type: textblock
38449 #: ../src/guestfs.pod:2081
38450 msgid ""
38451 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38452 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38453 "all.  In particular, libguestfs does I<not> try to free the data when the "
38454 "handle is closed.  If the data must be freed, then the caller must either "
38455 "free it before calling L</guestfs_close> or must set up a close callback to "
38456 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38457 msgstr ""
38458
38459 #. type: textblock
38460 #: ../src/guestfs.pod:2088
38461 msgid "To walk over all entries, use these two functions:"
38462 msgstr ""
38463
38464 #. type: verbatim
38465 #: ../src/guestfs.pod:2090
38466 #, no-wrap
38467 msgid ""
38468 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38469 "\n"
38470 msgstr ""
38471
38472 #. type: verbatim
38473 #: ../src/guestfs.pod:2092
38474 #, no-wrap
38475 msgid ""
38476 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38477 "\n"
38478 msgstr ""
38479
38480 #. type: textblock
38481 #: ../src/guestfs.pod:2094
38482 msgid ""
38483 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38484 "not have any particular meaning -- keys are not returned in any defined "
38485 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38486 "corresponding data pointer is returned from the function.  C<NULL> is "
38487 "returned if there are no keys stored in the handle."
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../src/guestfs.pod:2100
38492 msgid ""
38493 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38494 "value of this function is also C<NULL> is there are no further entries to "
38495 "return."
38496 msgstr ""
38497
38498 #. type: textblock
38499 #: ../src/guestfs.pod:2104
38500 msgid "Notes about walking over entries:"
38501 msgstr ""
38502
38503 #. type: textblock
38504 #: ../src/guestfs.pod:2110
38505 msgid "You must not call C<guestfs_set_private> while walking over the entries."
38506 msgstr ""
38507
38508 #. type: textblock
38509 #: ../src/guestfs.pod:2115
38510 msgid ""
38511 "The handle maintains an internal iterator which is reset when you call "
38512 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38513 "call C<guestfs_set_private>."
38514 msgstr ""
38515
38516 #. type: textblock
38517 #: ../src/guestfs.pod:2121
38518 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38519 msgstr ""
38520
38521 #. type: verbatim
38522 #: ../src/guestfs.pod:2123
38523 #, no-wrap
38524 msgid ""
38525 " guestfs_set_private (g, key, NULL);\n"
38526 "\n"
38527 msgstr ""
38528
38529 #. type: textblock
38530 #: ../src/guestfs.pod:2125
38531 msgid "then that C<key> is not returned when walking."
38532 msgstr ""
38533
38534 #. type: textblock
38535 #: ../src/guestfs.pod:2129
38536 msgid ""
38537 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38538 "C<guestfs_next_private> or C<guestfs_set_private>."
38539 msgstr ""
38540
38541 #. type: textblock
38542 #: ../src/guestfs.pod:2135
38543 msgid ""
38544 "The following example code shows how to print all keys and data pointers "
38545 "that are associated with the handle C<g>:"
38546 msgstr ""
38547
38548 #. type: verbatim
38549 #: ../src/guestfs.pod:2138
38550 #, no-wrap
38551 msgid ""
38552 " const char *key;\n"
38553 " void *data = guestfs_first_private (g, &key);\n"
38554 " while (data != NULL)\n"
38555 "   {\n"
38556 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38557 "     data = guestfs_next_private (g, &key);\n"
38558 "   }\n"
38559 "\n"
38560 msgstr ""
38561
38562 #. type: textblock
38563 #: ../src/guestfs.pod:2146
38564 msgid ""
38565 "More commonly you are only interested in keys that begin with an "
38566 "application-specific prefix C<foo_>.  Modify the loop like so:"
38567 msgstr ""
38568
38569 #. type: verbatim
38570 #: ../src/guestfs.pod:2149
38571 #, no-wrap
38572 msgid ""
38573 " const char *key;\n"
38574 " void *data = guestfs_first_private (g, &key);\n"
38575 " while (data != NULL)\n"
38576 "   {\n"
38577 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38578 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38579 "     data = guestfs_next_private (g, &key);\n"
38580 "   }\n"
38581 "\n"
38582 msgstr ""
38583
38584 #. type: textblock
38585 #: ../src/guestfs.pod:2158
38586 msgid ""
38587 "If you need to modify keys while walking, then you have to jump back to the "
38588 "beginning of the loop.  For example, to delete all keys prefixed with "
38589 "C<foo_>:"
38590 msgstr ""
38591
38592 #. type: verbatim
38593 #: ../src/guestfs.pod:2162
38594 #, no-wrap
38595 msgid ""
38596 "  const char *key;\n"
38597 "  void *data;\n"
38598 " again:\n"
38599 "  data = guestfs_first_private (g, &key);\n"
38600 "  while (data != NULL)\n"
38601 "    {\n"
38602 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38603 "        {\n"
38604 "          guestfs_set_private (g, key, NULL);\n"
38605 "          /* note that 'key' pointer is now invalid, and so is\n"
38606 "             the internal iterator */\n"
38607 "          goto again;\n"
38608 "        }\n"
38609 "      data = guestfs_next_private (g, &key);\n"
38610 "    }\n"
38611 "\n"
38612 msgstr ""
38613
38614 #. type: textblock
38615 #: ../src/guestfs.pod:2178
38616 msgid ""
38617 "Note that the above loop is guaranteed to terminate because the keys are "
38618 "being deleted, but other manipulations of keys within the loop might not "
38619 "terminate unless you also maintain an indication of which keys have been "
38620 "visited."
38621 msgstr ""
38622
38623 #. type: =head1
38624 #: ../src/guestfs.pod:2183
38625 msgid "SYSTEMTAP"
38626 msgstr ""
38627
38628 #. type: textblock
38629 #: ../src/guestfs.pod:2185
38630 msgid ""
38631 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38632 "true of any library, not just libguestfs.  However libguestfs also contains "
38633 "static markers to help in probing internal operations."
38634 msgstr ""
38635
38636 #. type: textblock
38637 #: ../src/guestfs.pod:2189
38638 msgid "You can list all the static markers by doing:"
38639 msgstr ""
38640
38641 #. type: verbatim
38642 #: ../src/guestfs.pod:2191
38643 #, no-wrap
38644 msgid ""
38645 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38646 "              .provider(\"guestfs\").mark(\"*\")'\n"
38647 "\n"
38648 msgstr ""
38649
38650 #. type: textblock
38651 #: ../src/guestfs.pod:2194
38652 msgid ""
38653 "B<Note:> These static markers are I<not> part of the stable API and may "
38654 "change in future versions."
38655 msgstr ""
38656
38657 #. type: =head2
38658 #: ../src/guestfs.pod:2197
38659 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38660 msgstr ""
38661
38662 #. type: textblock
38663 #: ../src/guestfs.pod:2199
38664 msgid ""
38665 "This script contains examples of displaying both the static markers and some "
38666 "ordinary C entry points:"
38667 msgstr ""
38668
38669 #. type: verbatim
38670 #: ../src/guestfs.pod:2202
38671 #, no-wrap
38672 msgid ""
38673 " global last;\n"
38674 " \n"
38675 msgstr ""
38676
38677 #. type: verbatim
38678 #: ../src/guestfs.pod:2204
38679 #, no-wrap
38680 msgid ""
38681 " function display_time () {\n"
38682 "       now = gettimeofday_us ();\n"
38683 "       delta = 0;\n"
38684 "       if (last > 0)\n"
38685 "             delta = now - last;\n"
38686 "       last = now;\n"
38687 " \n"
38688 msgstr ""
38689
38690 #. type: verbatim
38691 #: ../src/guestfs.pod:2211
38692 #, no-wrap
38693 msgid ""
38694 "       printf (\"%d (+%d):\", now, delta);\n"
38695 " }\n"
38696 " \n"
38697 msgstr ""
38698
38699 #. type: verbatim
38700 #: ../src/guestfs.pod:2214
38701 #, no-wrap
38702 msgid ""
38703 " probe begin {\n"
38704 "       last = 0;\n"
38705 "       printf (\"ready\\n\");\n"
38706 " }\n"
38707 " \n"
38708 msgstr ""
38709
38710 #. type: verbatim
38711 #: ../src/guestfs.pod:2219
38712 #, no-wrap
38713 msgid ""
38714 " /* Display all calls to static markers. */\n"
38715 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38716 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38717 "       display_time();\n"
38718 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38719 " }\n"
38720 " \n"
38721 msgstr ""
38722
38723 #. type: verbatim
38724 #: ../src/guestfs.pod:2226
38725 #, no-wrap
38726 msgid ""
38727 " /* Display all calls to guestfs_mkfs* functions. */\n"
38728 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38729 "           .function(\"guestfs_mkfs*\") ? {\n"
38730 "       display_time();\n"
38731 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38732 " }\n"
38733 "\n"
38734 msgstr ""
38735
38736 #. type: textblock
38737 #: ../src/guestfs.pod:2233
38738 msgid ""
38739 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38740 "program.  Note that you either have to be root, or you have to add yourself "
38741 "to several special stap groups.  Consult the systemtap documentation for "
38742 "more information."
38743 msgstr ""
38744
38745 #. type: verbatim
38746 #: ../src/guestfs.pod:2238
38747 #, no-wrap
38748 msgid ""
38749 " # stap /tmp/test.stap\n"
38750 " ready\n"
38751 "\n"
38752 msgstr ""
38753
38754 #. type: textblock
38755 #: ../src/guestfs.pod:2241
38756 msgid "In another terminal, run a guestfish command such as this:"
38757 msgstr ""
38758
38759 #. type: textblock
38760 #: ../src/guestfs.pod:2245
38761 msgid "In the first terminal, stap trace output similar to this is shown:"
38762 msgstr ""
38763
38764 #. type: verbatim
38765 #: ../src/guestfs.pod:2247
38766 #, no-wrap
38767 msgid ""
38768 " 1318248056692655 (+0):\tlaunch_start\n"
38769 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38770 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38771 " 1318248056838059 (+19774):     launch_run_qemu\n"
38772 " 1318248061071167 (+4233108):   launch_end\n"
38773 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
38774 "device=0x1024e60\n"
38775 "\n"
38776 msgstr ""
38777
38778 #. type: =end
38779 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38780 msgid "html"
38781 msgstr ""
38782
38783 #. type: textblock
38784 #: ../src/guestfs.pod:2256
38785 msgid ""
38786 "<!-- old anchor for the next section --> <a "
38787 "name=\"state_machine_and_low_level_event_api\"/>"
38788 msgstr ""
38789
38790 #. type: =head1
38791 #: ../src/guestfs.pod:2261
38792 msgid "ARCHITECTURE"
38793 msgstr ""
38794
38795 #. type: textblock
38796 #: ../src/guestfs.pod:2263
38797 msgid ""
38798 "Internally, libguestfs is implemented by running an appliance (a special "
38799 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38800 "process of the main program."
38801 msgstr ""
38802
38803 #. type: verbatim
38804 #: ../src/guestfs.pod:2267
38805 #, no-wrap
38806 msgid ""
38807 "  ___________________\n"
38808 " /                   \\\n"
38809 " | main program      |\n"
38810 " |                   |\n"
38811 " |                   |           child process / appliance\n"
38812 " |                   |           __________________________\n"
38813 " |                   |          / qemu                     \\\n"
38814 " +-------------------+   RPC    |      +-----------------+ |\n"
38815 " | libguestfs     <--------------------> guestfsd        | |\n"
38816 " |                   |          |      +-----------------+ |\n"
38817 " \\___________________/          |      | Linux kernel    | |\n"
38818 "                                |      +--^--------------+ |\n"
38819 "                                \\_________|________________/\n"
38820 "                                          |\n"
38821 "                                   _______v______\n"
38822 "                                  /              \\\n"
38823 "                                  | Device or    |\n"
38824 "                                  | disk image   |\n"
38825 "                                  \\______________/\n"
38826 "\n"
38827 msgstr ""
38828
38829 #. type: textblock
38830 #: ../src/guestfs.pod:2287
38831 msgid ""
38832 "The library, linked to the main program, creates the child process and hence "
38833 "the appliance in the L</guestfs_launch> function."
38834 msgstr ""
38835
38836 #. type: textblock
38837 #: ../src/guestfs.pod:2290
38838 msgid ""
38839 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38840 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38841 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38842 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38843 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38844 "attached to the qemu process which translates device access by the "
38845 "appliance's Linux kernel into accesses to the image."
38846 msgstr ""
38847
38848 #. type: textblock
38849 #: ../src/guestfs.pod:2299
38850 msgid ""
38851 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38852 "Although the disk image you are attached to might also be used by some "
38853 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38854 "care if both libguestfs's qemu process and your virtual machine are trying "
38855 "to update the disk image at the same time, since these usually results in "
38856 "massive disk corruption)."
38857 msgstr ""
38858
38859 #. type: =head1
38860 #: ../src/guestfs.pod:2306
38861 msgid "STATE MACHINE"
38862 msgstr ""
38863
38864 #. type: textblock
38865 #: ../src/guestfs.pod:2308
38866 msgid "libguestfs uses a state machine to model the child process:"
38867 msgstr ""
38868
38869 #. type: verbatim
38870 #: ../src/guestfs.pod:2310
38871 #, no-wrap
38872 msgid ""
38873 "                         |\n"
38874 "                    guestfs_create\n"
38875 "                         |\n"
38876 "                         |\n"
38877 "                     ____V_____\n"
38878 "                    /          \\\n"
38879 "                    |  CONFIG  |\n"
38880 "                    \\__________/\n"
38881 "                     ^ ^   ^  \\\n"
38882 "                    /  |    \\  \\ guestfs_launch\n"
38883 "                   /   |    _\\__V______\n"
38884 "                  /    |   /           \\\n"
38885 "                 /     |   | LAUNCHING |\n"
38886 "                /      |   \\___________/\n"
38887 "               /       |       /\n"
38888 "              /        |  guestfs_launch\n"
38889 "             /         |     /\n"
38890 "    ______  /        __|____V\n"
38891 "   /      \\ ------> /        \\\n"
38892 "   | BUSY |         | READY  |\n"
38893 "   \\______/ <------ \\________/\n"
38894 "\n"
38895 msgstr ""
38896
38897 #. type: textblock
38898 #: ../src/guestfs.pod:2332
38899 msgid ""
38900 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38901 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38902 "(3) alternating between READY and BUSY as commands are issued to, and "
38903 "carried out by, the child process."
38904 msgstr ""
38905
38906 #. type: textblock
38907 #: ../src/guestfs.pod:2337
38908 msgid ""
38909 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38910 "asynchronously at any time (eg. due to some internal error), and that causes "
38911 "the state to transition back to CONFIG."
38912 msgstr ""
38913
38914 #. type: textblock
38915 #: ../src/guestfs.pod:2341
38916 msgid ""
38917 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38918 "issued when in the CONFIG state."
38919 msgstr ""
38920
38921 #. type: textblock
38922 #: ../src/guestfs.pod:2344
38923 msgid ""
38924 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38925 "L</guestfs_launch> blocks until the child process is READY to accept "
38926 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38927 "moves the state from CONFIG to LAUNCHING while it is running."
38928 msgstr ""
38929
38930 #. type: textblock
38931 #: ../src/guestfs.pod:2350
38932 msgid ""
38933 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38934 "state.  These API calls block waiting for the command to be carried out "
38935 "(ie. the state to transition to BUSY and then back to READY).  There are no "
38936 "non-blocking versions, and no way to issue more than one command per handle "
38937 "at the same time."
38938 msgstr ""
38939
38940 #. type: textblock
38941 #: ../src/guestfs.pod:2356
38942 msgid ""
38943 "Finally, the child process sends asynchronous messages back to the main "
38944 "program, such as kernel log messages.  You can register a callback to "
38945 "receive these messages."
38946 msgstr ""
38947
38948 #. type: =head1
38949 #: ../src/guestfs.pod:2360
38950 msgid "INTERNALS"
38951 msgstr ""
38952
38953 #. type: =head2
38954 #: ../src/guestfs.pod:2362
38955 msgid "APPLIANCE BOOT PROCESS"
38956 msgstr ""
38957
38958 #. type: textblock
38959 #: ../src/guestfs.pod:2364
38960 msgid ""
38961 "This process has evolved and continues to evolve.  The description here "
38962 "corresponds only to the current version of libguestfs and is provided for "
38963 "information only."
38964 msgstr ""
38965
38966 #. type: textblock
38967 #: ../src/guestfs.pod:2368
38968 msgid ""
38969 "In order to follow the stages involved below, enable libguestfs debugging "
38970 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38971 msgstr ""
38972
38973 #. type: =item
38974 #: ../src/guestfs.pod:2373
38975 msgid "Create the appliance"
38976 msgstr ""
38977
38978 #. type: textblock
38979 #: ../src/guestfs.pod:2375
38980 msgid ""
38981 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38982 "initrd and the appliance."
38983 msgstr ""
38984
38985 #. type: textblock
38986 #: ../src/guestfs.pod:2378
38987 msgid ""
38988 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38989 "directory if C<TMPDIR> is set)."
38990 msgstr ""
38991
38992 #. type: textblock
38993 #: ../src/guestfs.pod:2381
38994 msgid ""
38995 "For a complete description of how the appliance is created and cached, read "
38996 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38997 msgstr ""
38998
38999 #. type: =item
39000 #: ../src/guestfs.pod:2385
39001 msgid "Start qemu and boot the kernel"
39002 msgstr ""
39003
39004 #. type: textblock
39005 #: ../src/guestfs.pod:2387
39006 msgid "qemu is invoked to boot the kernel."
39007 msgstr ""
39008
39009 #. type: =item
39010 #: ../src/guestfs.pod:2389
39011 msgid "Run the initrd"
39012 msgstr ""
39013
39014 #. type: textblock
39015 #: ../src/guestfs.pod:2391
39016 msgid ""
39017 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39018 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39019 "order that the appliance itself can be mounted and started."
39020 msgstr ""
39021
39022 #. type: textblock
39023 #: ../src/guestfs.pod:2395
39024 msgid ""
39025 "The initrd is a cpio archive called "
39026 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
39027 msgstr ""
39028
39029 #. type: textblock
39030 #: ../src/guestfs.pod:2398
39031 msgid ""
39032 "When the initrd has started you will see messages showing that kernel "
39033 "modules are being loaded, similar to this:"
39034 msgstr ""
39035
39036 #. type: verbatim
39037 #: ../src/guestfs.pod:2401
39038 #, no-wrap
39039 msgid ""
39040 " febootstrap: ext2 mini initrd starting up\n"
39041 " febootstrap: mounting /sys\n"
39042 " febootstrap: internal insmod libcrc32c.ko\n"
39043 " febootstrap: internal insmod crc32c-intel.ko\n"
39044 "\n"
39045 msgstr ""
39046
39047 #. type: =item
39048 #: ../src/guestfs.pod:2406
39049 msgid "Find and mount the appliance device"
39050 msgstr ""
39051
39052 #. type: textblock
39053 #: ../src/guestfs.pod:2408
39054 msgid ""
39055 "The appliance is a sparse file containing an ext2 filesystem which contains "
39056 "a familiar (although reduced in size) Linux operating system.  It would "
39057 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39058 msgstr ""
39059
39060 #. type: textblock
39061 #: ../src/guestfs.pod:2412
39062 msgid ""
39063 "The regular disks being inspected by libguestfs are the first devices "
39064 "exposed by qemu (eg. as C</dev/vda>)."
39065 msgstr ""
39066
39067 #. type: textblock
39068 #: ../src/guestfs.pod:2415
39069 msgid ""
39070 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39071 "there was only one regular disk)."
39072 msgstr ""
39073
39074 #. type: textblock
39075 #: ../src/guestfs.pod:2418
39076 msgid ""
39077 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39078 "and switch root into the appliance, and run C</init> from the appliance."
39079 msgstr ""
39080
39081 #. type: textblock
39082 #: ../src/guestfs.pod:2422
39083 msgid "If this works successfully you will see messages such as:"
39084 msgstr ""
39085
39086 #. type: verbatim
39087 #: ../src/guestfs.pod:2424
39088 #, no-wrap
39089 msgid ""
39090 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39091 " febootstrap: creating /dev/root as block special 252:16\n"
39092 " febootstrap: mounting new root on /root\n"
39093 " febootstrap: chroot\n"
39094 " Starting /init script ...\n"
39095 "\n"
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../src/guestfs.pod:2430
39100 msgid ""
39101 "Note that C<Starting /init script ...> indicates that the appliance's init "
39102 "script is now running."
39103 msgstr ""
39104
39105 #. type: =item
39106 #: ../src/guestfs.pod:2433
39107 msgid "Initialize the appliance"
39108 msgstr ""
39109
39110 #. type: textblock
39111 #: ../src/guestfs.pod:2435
39112 msgid ""
39113 "The appliance itself now initializes itself.  This involves starting certain "
39114 "processes like C<udev>, possibly printing some debug information, and "
39115 "finally running the daemon (C<guestfsd>)."
39116 msgstr ""
39117
39118 #. type: =item
39119 #: ../src/guestfs.pod:2439
39120 msgid "The daemon"
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../src/guestfs.pod:2441
39125 msgid ""
39126 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39127 "should see:"
39128 msgstr ""
39129
39130 #. type: verbatim
39131 #: ../src/guestfs.pod:2444
39132 #, no-wrap
39133 msgid ""
39134 " verbose daemon enabled\n"
39135 "\n"
39136 msgstr ""
39137
39138 #. type: textblock
39139 #: ../src/guestfs.pod:2446
39140 msgid ""
39141 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39142 "connected on the other end to the library."
39143 msgstr ""
39144
39145 #. type: textblock
39146 #: ../src/guestfs.pod:2449
39147 msgid ""
39148 "The daemon connects to this port (and hence to the library) and sends a four "
39149 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39150 "protocol (see below)."
39151 msgstr ""
39152
39153 #. type: =head2
39154 #: ../src/guestfs.pod:2455
39155 msgid "COMMUNICATION PROTOCOL"
39156 msgstr ""
39157
39158 #. type: textblock
39159 #: ../src/guestfs.pod:2457
39160 msgid ""
39161 "Don't rely on using this protocol directly.  This section documents how it "
39162 "currently works, but it may change at any time."
39163 msgstr ""
39164
39165 #. type: textblock
39166 #: ../src/guestfs.pod:2460
39167 msgid ""
39168 "The protocol used to talk between the library and the daemon running inside "
39169 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39170 "1014, RFC 1832, RFC 4506)."
39171 msgstr ""
39172
39173 #. type: textblock
39174 #: ../src/guestfs.pod:2464
39175 msgid ""
39176 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39177 "this file is automatically generated)."
39178 msgstr ""
39179
39180 #. type: textblock
39181 #: ../src/guestfs.pod:2467
39182 msgid ""
39183 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39184 "and C<FileOut> parameters, which are handled with very simple request/reply "
39185 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39186 "parameters, which use the same request and reply messages, but they may also "
39187 "be followed by files sent using a chunked encoding."
39188 msgstr ""
39189
39190 #. type: =head3
39191 #: ../src/guestfs.pod:2474
39192 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39193 msgstr ""
39194
39195 #. type: textblock
39196 #: ../src/guestfs.pod:2476
39197 msgid "For ordinary functions, the request message is:"
39198 msgstr ""
39199
39200 #. type: verbatim
39201 #: ../src/guestfs.pod:2478
39202 #, no-wrap
39203 msgid ""
39204 " total length (header + arguments,\n"
39205 "      but not including the length word itself)\n"
39206 " struct guestfs_message_header (encoded as XDR)\n"
39207 " struct guestfs_<foo>_args (encoded as XDR)\n"
39208 "\n"
39209 msgstr ""
39210
39211 #. type: textblock
39212 #: ../src/guestfs.pod:2483
39213 msgid ""
39214 "The total length field allows the daemon to allocate a fixed size buffer "
39215 "into which it slurps the rest of the message.  As a result, the total length "
39216 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39217 "effective size of any request is limited to somewhere under this size."
39218 msgstr ""
39219
39220 #. type: textblock
39221 #: ../src/guestfs.pod:2489
39222 msgid ""
39223 "Note also that many functions don't take any arguments, in which case the "
39224 "C<guestfs_I<foo>_args> is completely omitted."
39225 msgstr ""
39226
39227 #. type: textblock
39228 #: ../src/guestfs.pod:2492
39229 msgid ""
39230 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39231 "receiver knows what type of args structure to expect, or none at all."
39232 msgstr ""
39233
39234 #. type: textblock
39235 #: ../src/guestfs.pod:2496
39236 msgid ""
39237 "For functions that take optional arguments, the optional arguments are "
39238 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39239 "arguments.  A bitmask in the header indicates which optional arguments are "
39240 "meaningful.  The bitmask is also checked to see if it contains bits set "
39241 "which the daemon does not know about (eg. if more optional arguments were "
39242 "added in a later version of the library), and this causes the call to be "
39243 "rejected."
39244 msgstr ""
39245
39246 #. type: textblock
39247 #: ../src/guestfs.pod:2504
39248 msgid "The reply message for ordinary functions is:"
39249 msgstr ""
39250
39251 #. type: verbatim
39252 #: ../src/guestfs.pod:2506
39253 #, no-wrap
39254 msgid ""
39255 " total length (header + ret,\n"
39256 "      but not including the length word itself)\n"
39257 " struct guestfs_message_header (encoded as XDR)\n"
39258 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39259 "\n"
39260 msgstr ""
39261
39262 #. type: textblock
39263 #: ../src/guestfs.pod:2511
39264 msgid ""
39265 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39266 "functions that return no formal return values."
39267 msgstr ""
39268
39269 #. type: textblock
39270 #: ../src/guestfs.pod:2514
39271 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../src/guestfs.pod:2517
39276 msgid ""
39277 "In the case of an error, a flag is set in the header, and the reply message "
39278 "is slightly changed:"
39279 msgstr ""
39280
39281 #. type: verbatim
39282 #: ../src/guestfs.pod:2520
39283 #, no-wrap
39284 msgid ""
39285 " total length (header + error,\n"
39286 "      but not including the length word itself)\n"
39287 " struct guestfs_message_header (encoded as XDR)\n"
39288 " struct guestfs_message_error (encoded as XDR)\n"
39289 "\n"
39290 msgstr ""
39291
39292 #. type: textblock
39293 #: ../src/guestfs.pod:2525
39294 msgid ""
39295 "The C<guestfs_message_error> structure contains the error message as a "
39296 "string."
39297 msgstr ""
39298
39299 #. type: =head3
39300 #: ../src/guestfs.pod:2528
39301 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39302 msgstr ""
39303
39304 #. type: textblock
39305 #: ../src/guestfs.pod:2530
39306 msgid ""
39307 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39308 "The normal request message is sent (see above).  However this is followed by "
39309 "a sequence of file chunks."
39310 msgstr ""
39311
39312 #. type: verbatim
39313 #: ../src/guestfs.pod:2534
39314 #, no-wrap
39315 msgid ""
39316 " total length (header + arguments,\n"
39317 "      but not including the length word itself,\n"
39318 "      and not including the chunks)\n"
39319 " struct guestfs_message_header (encoded as XDR)\n"
39320 " struct guestfs_<foo>_args (encoded as XDR)\n"
39321 " sequence of chunks for FileIn param #0\n"
39322 " sequence of chunks for FileIn param #1 etc.\n"
39323 "\n"
39324 msgstr ""
39325
39326 #. type: textblock
39327 #: ../src/guestfs.pod:2542
39328 msgid "The \"sequence of chunks\" is:"
39329 msgstr ""
39330
39331 #. type: verbatim
39332 #: ../src/guestfs.pod:2544
39333 #, no-wrap
39334 msgid ""
39335 " length of chunk (not including length word itself)\n"
39336 " struct guestfs_chunk (encoded as XDR)\n"
39337 " length of chunk\n"
39338 " struct guestfs_chunk (encoded as XDR)\n"
39339 "   ...\n"
39340 " length of chunk\n"
39341 " struct guestfs_chunk (with data.data_len == 0)\n"
39342 "\n"
39343 msgstr ""
39344
39345 #. type: textblock
39346 #: ../src/guestfs.pod:2552
39347 msgid ""
39348 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39349 "is set in the final chunk to indicate either successful completion or early "
39350 "cancellation."
39351 msgstr ""
39352
39353 #. type: textblock
39354 #: ../src/guestfs.pod:2556
39355 msgid ""
39356 "At time of writing there are no functions that have more than one FileIn "
39357 "parameter.  However this is (theoretically) supported, by sending the "
39358 "sequence of chunks for each FileIn parameter one after another (from left to "
39359 "right)."
39360 msgstr ""
39361
39362 #. type: textblock
39363 #: ../src/guestfs.pod:2561
39364 msgid ""
39365 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39366 "transfer.  The library does this by sending a chunk with a special flag set "
39367 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39368 "RPC, does I<not> send any reply, and goes back to reading the next request."
39369 msgstr ""
39370
39371 #. type: textblock
39372 #: ../src/guestfs.pod:2567
39373 msgid ""
39374 "The daemon may also cancel.  It does this by writing a special word "
39375 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39376 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39377 "cancel chunk).  The special word is chosen so that even if cancellation "
39378 "happens right at the end of the transfer (after the library has finished "
39379 "writing and has started listening for the reply), the \"spurious\" cancel "
39380 "flag will not be confused with the reply message."
39381 msgstr ""
39382
39383 #. type: textblock
39384 #: ../src/guestfs.pod:2576
39385 msgid ""
39386 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39387 "limit), and also files where the size is not known in advance (eg. from "
39388 "pipes or sockets).  However the chunks are rather small "
39389 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39390 "to keep much in memory."
39391 msgstr ""
39392
39393 #. type: =head3
39394 #: ../src/guestfs.pod:2582
39395 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39396 msgstr ""
39397
39398 #. type: textblock
39399 #: ../src/guestfs.pod:2584
39400 msgid ""
39401 "The protocol for FileOut parameters is exactly the same as for FileIn "
39402 "parameters, but with the roles of daemon and library reversed."
39403 msgstr ""
39404
39405 #. type: verbatim
39406 #: ../src/guestfs.pod:2587
39407 #, no-wrap
39408 msgid ""
39409 " total length (header + ret,\n"
39410 "      but not including the length word itself,\n"
39411 "      and not including the chunks)\n"
39412 " struct guestfs_message_header (encoded as XDR)\n"
39413 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39414 " sequence of chunks for FileOut param #0\n"
39415 " sequence of chunks for FileOut param #1 etc.\n"
39416 "\n"
39417 msgstr ""
39418
39419 #. type: =head3
39420 #: ../src/guestfs.pod:2595
39421 msgid "INITIAL MESSAGE"
39422 msgstr ""
39423
39424 #. type: textblock
39425 #: ../src/guestfs.pod:2597
39426 msgid ""
39427 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39428 "which indicates that the guest and daemon is alive.  This is what "
39429 "L</guestfs_launch> waits for."
39430 msgstr ""
39431
39432 #. type: =head3
39433 #: ../src/guestfs.pod:2601
39434 msgid "PROGRESS NOTIFICATION MESSAGES"
39435 msgstr ""
39436
39437 #. type: textblock
39438 #: ../src/guestfs.pod:2603
39439 msgid ""
39440 "The daemon may send progress notification messages at any time.  These are "
39441 "distinguished by the normal length word being replaced by "
39442 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39443 msgstr ""
39444
39445 #. type: textblock
39446 #: ../src/guestfs.pod:2607
39447 msgid ""
39448 "The library turns them into progress callbacks (see "
39449 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
39450 "them if not."
39451 msgstr ""
39452
39453 #. type: textblock
39454 #: ../src/guestfs.pod:2611
39455 msgid ""
39456 "The daemon self-limits the frequency of progress messages it sends (see "
39457 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39458 "messages."
39459 msgstr ""
39460
39461 #. type: =head1
39462 #: ../src/guestfs.pod:2615
39463 msgid "LIBGUESTFS VERSION NUMBERS"
39464 msgstr ""
39465
39466 #. type: textblock
39467 #: ../src/guestfs.pod:2617
39468 msgid ""
39469 "Since April 2010, libguestfs has started to make separate development and "
39470 "stable releases, along with corresponding branches in our git repository.  "
39471 "These separate releases can be identified by version number:"
39472 msgstr ""
39473
39474 #. type: verbatim
39475 #: ../src/guestfs.pod:2622
39476 #, no-wrap
39477 msgid ""
39478 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39479 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39480 "       |\n"
39481 "       v\n"
39482 " 1  .  3  .  5\n"
39483 " ^           ^\n"
39484 " |           |\n"
39485 " |           `-------- sub-version\n"
39486 " |\n"
39487 " `------ always '1' because we don't change the ABI\n"
39488 "\n"
39489 msgstr ""
39490
39491 #. type: textblock
39492 #: ../src/guestfs.pod:2633
39493 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39494 msgstr ""
39495
39496 #. type: textblock
39497 #: ../src/guestfs.pod:2635
39498 msgid ""
39499 "As time passes we cherry pick fixes from the development branch and backport "
39500 "those into the stable branch, the effect being that the stable branch should "
39501 "get more stable and less buggy over time.  So the stable releases are ideal "
39502 "for people who don't need new features but would just like the software to "
39503 "work."
39504 msgstr ""
39505
39506 #. type: textblock
39507 #: ../src/guestfs.pod:2641
39508 msgid "Our criteria for backporting changes are:"
39509 msgstr ""
39510
39511 #. type: textblock
39512 #: ../src/guestfs.pod:2647
39513 msgid ""
39514 "Documentation changes which don't affect any code are backported unless the "
39515 "documentation refers to a future feature which is not in stable."
39516 msgstr ""
39517
39518 #. type: textblock
39519 #: ../src/guestfs.pod:2653
39520 msgid ""
39521 "Bug fixes which are not controversial, fix obvious problems, and have been "
39522 "well tested are backported."
39523 msgstr ""
39524
39525 #. type: textblock
39526 #: ../src/guestfs.pod:2658
39527 msgid ""
39528 "Simple rearrangements of code which shouldn't affect how it works get "
39529 "backported.  This is so that the code in the two branches doesn't get too "
39530 "far out of step, allowing us to backport future fixes more easily."
39531 msgstr ""
39532
39533 #. type: textblock
39534 #: ../src/guestfs.pod:2664
39535 msgid ""
39536 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39537 "exceptional case: the new feature is required in order to implement an "
39538 "important bug fix."
39539 msgstr ""
39540
39541 #. type: textblock
39542 #: ../src/guestfs.pod:2670
39543 msgid ""
39544 "A new stable branch starts when we think the new features in development are "
39545 "substantial and compelling enough over the current stable branch to warrant "
39546 "it.  When that happens we create new stable and development versions 1.N.0 "
39547 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39548 "stable at this point, but by backporting fixes from development, that branch "
39549 "will stabilize over time."
39550 msgstr ""
39551
39552 #. type: =head1
39553 #: ../src/guestfs.pod:2678
39554 msgid "EXTENDING LIBGUESTFS"
39555 msgstr ""
39556
39557 #. type: =head2
39558 #: ../src/guestfs.pod:2680
39559 msgid "ADDING A NEW API ACTION"
39560 msgstr ""
39561
39562 #. type: textblock
39563 #: ../src/guestfs.pod:2682
39564 msgid ""
39565 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39566 "documentation) are generated, and this makes it easy to extend the "
39567 "libguestfs API."
39568 msgstr ""
39569
39570 #. type: textblock
39571 #: ../src/guestfs.pod:2686
39572 msgid "To add a new API action there are two changes:"
39573 msgstr ""
39574
39575 #. type: textblock
39576 #: ../src/guestfs.pod:2692
39577 msgid ""
39578 "You need to add a description of the call (name, parameters, return type, "
39579 "tests, documentation) to C<generator/generator_actions.ml>."
39580 msgstr ""
39581
39582 #. type: textblock
39583 #: ../src/guestfs.pod:2695
39584 msgid ""
39585 "There are two sorts of API action, depending on whether the call goes "
39586 "through to the daemon in the appliance, or is serviced entirely by the "
39587 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39588 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39589 "an example of the latter, since a trace flag is maintained in the handle and "
39590 "all tracing is done on the library side."
39591 msgstr ""
39592
39593 #. type: textblock
39594 #: ../src/guestfs.pod:2703
39595 msgid ""
39596 "Most new actions are of the first type, and get added to the "
39597 "C<daemon_functions> list.  Each function has a unique procedure number used "
39598 "in the RPC protocol which is assigned to that action when we publish "
39599 "libguestfs and cannot be reused.  Take the latest procedure number and "
39600 "increment it."
39601 msgstr ""
39602
39603 #. type: textblock
39604 #: ../src/guestfs.pod:2709
39605 msgid ""
39606 "For library-only actions of the second type, add to the "
39607 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39608 "library and do not travel over the RPC mechanism to the daemon, these "
39609 "functions do not need a procedure number, and so the procedure number is set "
39610 "to C<-1>."
39611 msgstr ""
39612
39613 #. type: textblock
39614 #: ../src/guestfs.pod:2717
39615 msgid "Implement the action (in C):"
39616 msgstr ""
39617
39618 #. type: textblock
39619 #: ../src/guestfs.pod:2719
39620 msgid ""
39621 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39622 "C<daemon/> directory."
39623 msgstr ""
39624
39625 #. type: textblock
39626 #: ../src/guestfs.pod:2722
39627 msgid ""
39628 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39629 "(note: double underscore) in the C<src/> directory."
39630 msgstr ""
39631
39632 #. type: textblock
39633 #: ../src/guestfs.pod:2725
39634 msgid "In either case, use another function as an example of what to do."
39635 msgstr ""
39636
39637 #. type: textblock
39638 #: ../src/guestfs.pod:2729
39639 msgid "After making these changes, use C<make> to compile."
39640 msgstr ""
39641
39642 #. type: textblock
39643 #: ../src/guestfs.pod:2731
39644 msgid ""
39645 "Note that you don't need to implement the RPC, language bindings, manual "
39646 "pages or anything else.  It's all automatically generated from the OCaml "
39647 "description."
39648 msgstr ""
39649
39650 #. type: =head2
39651 #: ../src/guestfs.pod:2735
39652 msgid "ADDING TESTS FOR AN API ACTION"
39653 msgstr ""
39654
39655 #. type: textblock
39656 #: ../src/guestfs.pod:2737
39657 msgid ""
39658 "You can supply zero or as many tests as you want per API call.  The tests "
39659 "can either be added as part of the API description "
39660 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
39661 "drop a script into C<regressions/>.  Note that adding a script to "
39662 "C<regressions/> is slower, so if possible use the first method."
39663 msgstr ""
39664
39665 #. type: textblock
39666 #: ../src/guestfs.pod:2743
39667 msgid ""
39668 "The following describes the test environment used when you add an API test "
39669 "in C<generator_actions.ml>."
39670 msgstr ""
39671
39672 #. type: textblock
39673 #: ../src/guestfs.pod:2746
39674 msgid "The test environment has 4 block devices:"
39675 msgstr ""
39676
39677 #. type: =item
39678 #: ../src/guestfs.pod:2750
39679 msgid "C</dev/sda> 500MB"
39680 msgstr ""
39681
39682 #. type: textblock
39683 #: ../src/guestfs.pod:2752
39684 msgid "General block device for testing."
39685 msgstr ""
39686
39687 #. type: =item
39688 #: ../src/guestfs.pod:2754
39689 msgid "C</dev/sdb> 50MB"
39690 msgstr ""
39691
39692 #. type: textblock
39693 #: ../src/guestfs.pod:2756
39694 msgid ""
39695 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39696 "operations."
39697 msgstr ""
39698
39699 #. type: =item
39700 #: ../src/guestfs.pod:2759
39701 msgid "C</dev/sdc> 10MB"
39702 msgstr ""
39703
39704 #. type: textblock
39705 #: ../src/guestfs.pod:2761
39706 msgid "Used in a few tests where two block devices are needed."
39707 msgstr ""
39708
39709 #. type: =item
39710 #: ../src/guestfs.pod:2763
39711 msgid "C</dev/sdd>"
39712 msgstr ""
39713
39714 #. type: textblock
39715 #: ../src/guestfs.pod:2765
39716 msgid "ISO with fixed content (see C<images/test.iso>)."
39717 msgstr ""
39718
39719 #. type: textblock
39720 #: ../src/guestfs.pod:2769
39721 msgid ""
39722 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39723 "appliance and block devices are reused between tests.  So don't try testing "
39724 "L</guestfs_kill_subprocess> :-x"
39725 msgstr ""
39726
39727 #. type: textblock
39728 #: ../src/guestfs.pod:2773
39729 msgid ""
39730 "Each test starts with an initial scenario, selected using one of the "
39731 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39732 "initialize the disks mentioned above in a particular way as documented in "
39733 "C<generator_types.ml>.  You should not assume anything about the previous "
39734 "contents of other disks that are not initialized."
39735 msgstr ""
39736
39737 #. type: textblock
39738 #: ../src/guestfs.pod:2779
39739 msgid ""
39740 "You can add a prerequisite clause to any individual test.  This is a "
39741 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
39742 "if testing a command which might not work on all variations of libguestfs "
39743 "builds.  A test that has prerequisite of C<Always> means to run "
39744 "unconditionally."
39745 msgstr ""
39746
39747 #. type: textblock
39748 #: ../src/guestfs.pod:2785
39749 msgid ""
39750 "In addition, packagers can skip individual tests by setting environment "
39751 "variables before running C<make check>."
39752 msgstr ""
39753
39754 #. type: verbatim
39755 #: ../src/guestfs.pod:2788
39756 #, no-wrap
39757 msgid ""
39758 " SKIP_TEST_<CMD>_<NUM>=1\n"
39759 "\n"
39760 msgstr ""
39761
39762 #. type: textblock
39763 #: ../src/guestfs.pod:2790
39764 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39765 msgstr ""
39766
39767 #. type: verbatim
39768 #: ../src/guestfs.pod:2794
39769 #, no-wrap
39770 msgid ""
39771 " SKIP_TEST_<CMD>=1\n"
39772 "\n"
39773 msgstr ""
39774
39775 #. type: textblock
39776 #: ../src/guestfs.pod:2796
39777 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39778 msgstr ""
39779
39780 #. type: textblock
39781 #: ../src/guestfs.pod:2798
39782 msgid "Packagers can run only certain tests by setting for example:"
39783 msgstr ""
39784
39785 #. type: verbatim
39786 #: ../src/guestfs.pod:2800
39787 #, no-wrap
39788 msgid ""
39789 " TEST_ONLY=\"vfs_type zerofree\"\n"
39790 "\n"
39791 msgstr ""
39792
39793 #. type: textblock
39794 #: ../src/guestfs.pod:2802
39795 msgid ""
39796 "See C<capitests/tests.c> for more details of how these environment variables "
39797 "work."
39798 msgstr ""
39799
39800 #. type: =head2
39801 #: ../src/guestfs.pod:2805
39802 msgid "DEBUGGING NEW API ACTIONS"
39803 msgstr ""
39804
39805 #. type: textblock
39806 #: ../src/guestfs.pod:2807
39807 msgid "Test new actions work before submitting them."
39808 msgstr ""
39809
39810 #. type: textblock
39811 #: ../src/guestfs.pod:2809
39812 msgid "You can use guestfish to try out new commands."
39813 msgstr ""
39814
39815 #. type: textblock
39816 #: ../src/guestfs.pod:2811
39817 msgid ""
39818 "Debugging the daemon is a problem because it runs inside a minimal "
39819 "environment.  However you can fprintf messages in the daemon to stderr, and "
39820 "they will show up if you use C<guestfish -v>."
39821 msgstr ""
39822
39823 #. type: =head2
39824 #: ../src/guestfs.pod:2815
39825 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39826 msgstr ""
39827
39828 #. type: textblock
39829 #: ../src/guestfs.pod:2817
39830 msgid ""
39831 "Our C source code generally adheres to some basic code-formatting "
39832 "conventions.  The existing code base is not totally consistent on this "
39833 "front, but we do prefer that contributed code be formatted similarly.  In "
39834 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39835 "indentation level, and other than that, follow the K&R style."
39836 msgstr ""
39837
39838 #. type: textblock
39839 #: ../src/guestfs.pod:2823
39840 msgid ""
39841 "If you use Emacs, add the following to one of one of your start-up files "
39842 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
39843 msgstr ""
39844
39845 #. type: verbatim
39846 #: ../src/guestfs.pod:2826
39847 #, no-wrap
39848 msgid ""
39849 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39850 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39851 " (add-hook 'find-file-hook\n"
39852 "     '(lambda () (if (and buffer-file-name\n"
39853 "                          (string-match \"/libguestfs\\\\>\"\n"
39854 "                              (buffer-file-name))\n"
39855 "                          (not (string-equal mode-name \"Change Log\"))\n"
39856 "                          (not (string-equal mode-name \"Makefile\")))\n"
39857 "                     (setq indent-tabs-mode nil))))\n"
39858 " \n"
39859 msgstr ""
39860
39861 #. type: verbatim
39862 #: ../src/guestfs.pod:2836
39863 #, no-wrap
39864 msgid ""
39865 " ;;; When editing C sources in libguestfs, use this style.\n"
39866 " (defun libguestfs-c-mode ()\n"
39867 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39868 "   (interactive)\n"
39869 "   (c-set-style \"K&R\")\n"
39870 "   (setq c-indent-level 2)\n"
39871 "   (setq c-basic-offset 2))\n"
39872 " (add-hook 'c-mode-hook\n"
39873 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39874 "                               (buffer-file-name))\n"
39875 "                           (libguestfs-c-mode))))\n"
39876 "\n"
39877 msgstr ""
39878
39879 #. type: textblock
39880 #: ../src/guestfs.pod:2848
39881 msgid "Enable warnings when compiling (and fix any problems this finds):"
39882 msgstr ""
39883
39884 #. type: verbatim
39885 #: ../src/guestfs.pod:2851
39886 #, no-wrap
39887 msgid ""
39888 " ./configure --enable-gcc-warnings\n"
39889 "\n"
39890 msgstr ""
39891
39892 #. type: textblock
39893 #: ../src/guestfs.pod:2853
39894 msgid "Useful targets are:"
39895 msgstr ""
39896
39897 #. type: verbatim
39898 #: ../src/guestfs.pod:2855
39899 #, no-wrap
39900 msgid ""
39901 " make syntax-check  # checks the syntax of the C code\n"
39902 " make check         # runs the test suite\n"
39903 "\n"
39904 msgstr ""
39905
39906 #. type: =head2
39907 #: ../src/guestfs.pod:2858
39908 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39909 msgstr ""
39910
39911 #. type: textblock
39912 #: ../src/guestfs.pod:2860
39913 msgid ""
39914 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39915 "which are used to do shell quoting."
39916 msgstr ""
39917
39918 #. type: =item
39919 #: ../src/guestfs.pod:2865
39920 msgid "%Q"
39921 msgstr ""
39922
39923 #. type: textblock
39924 #: ../src/guestfs.pod:2867
39925 msgid ""
39926 "Simple shell quoted string.  Any spaces or other shell characters are "
39927 "escaped for you."
39928 msgstr ""
39929
39930 #. type: =item
39931 #: ../src/guestfs.pod:2870
39932 msgid "%R"
39933 msgstr ""
39934
39935 #. type: textblock
39936 #: ../src/guestfs.pod:2872
39937 msgid ""
39938 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39939 "the sysroot."
39940 msgstr ""
39941
39942 #. type: verbatim
39943 #: ../src/guestfs.pod:2879
39944 #, no-wrap
39945 msgid ""
39946 " asprintf (&cmd, \"cat %R\", path);\n"
39947 "\n"
39948 msgstr ""
39949
39950 #. type: textblock
39951 #: ../src/guestfs.pod:2881
39952 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39953 msgstr ""
39954
39955 #. type: textblock
39956 #: ../src/guestfs.pod:2883
39957 msgid ""
39958 "I<Note:> Do I<not> use these when you are passing parameters to the "
39959 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
39960 "because they are not passed via the shell (instead, straight to exec).  You "
39961 "probably want to use the C<sysroot_path()> function however."
39962 msgstr ""
39963
39964 #. type: =head2
39965 #: ../src/guestfs.pod:2889
39966 msgid "SUBMITTING YOUR NEW API ACTIONS"
39967 msgstr ""
39968
39969 #. type: textblock
39970 #: ../src/guestfs.pod:2891
39971 msgid ""
39972 "Submit patches to the mailing list: "
39973 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
39974 "L<rjones@redhat.com>."
39975 msgstr ""
39976
39977 #. type: =head2
39978 #: ../src/guestfs.pod:2895
39979 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39980 msgstr ""
39981
39982 #. type: textblock
39983 #: ../src/guestfs.pod:2897
39984 msgid "We support i18n (gettext anyhow) in the library."
39985 msgstr ""
39986
39987 #. type: textblock
39988 #: ../src/guestfs.pod:2899
39989 msgid ""
39990 "However many messages come from the daemon, and we don't translate those at "
39991 "the moment.  One reason is that the appliance generally has all locale files "
39992 "removed from it, because they take up a lot of space.  So we'd have to readd "
39993 "some of those, as well as copying our PO files into the appliance."
39994 msgstr ""
39995
39996 #. type: textblock
39997 #: ../src/guestfs.pod:2905
39998 msgid ""
39999 "Debugging messages are never translated, since they are intended for the "
40000 "programmers."
40001 msgstr ""
40002
40003 #. type: =head2
40004 #: ../src/guestfs.pod:2908
40005 msgid "SOURCE CODE SUBDIRECTORIES"
40006 msgstr ""
40007
40008 #. type: =item
40009 #: ../src/guestfs.pod:2912
40010 msgid "C<align>"
40011 msgstr ""
40012
40013 #. type: textblock
40014 #: ../src/guestfs.pod:2914
40015 msgid "L<virt-alignment-scan(1)> command and documentation."
40016 msgstr ""
40017
40018 #. type: textblock
40019 #: ../src/guestfs.pod:2918
40020 msgid "The libguestfs appliance, build scripts and so on."
40021 msgstr ""
40022
40023 #. type: =item
40024 #: ../src/guestfs.pod:2920
40025 msgid "C<capitests>"
40026 msgstr ""
40027
40028 #. type: textblock
40029 #: ../src/guestfs.pod:2922
40030 msgid "Automated tests of the C API."
40031 msgstr ""
40032
40033 #. type: =item
40034 #: ../src/guestfs.pod:2924
40035 msgid "C<cat>"
40036 msgstr ""
40037
40038 #. type: textblock
40039 #: ../src/guestfs.pod:2926
40040 msgid ""
40041 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40042 "documentation."
40043 msgstr ""
40044
40045 #. type: =item
40046 #: ../src/guestfs.pod:2929
40047 msgid "C<caution>"
40048 msgstr ""
40049
40050 #. type: textblock
40051 #: ../src/guestfs.pod:2931
40052 msgid ""
40053 "Safety and liveness tests of components that libguestfs depends upon (not of "
40054 "libguestfs itself).  Mainly this is for qemu and the kernel."
40055 msgstr ""
40056
40057 #. type: =item
40058 #: ../src/guestfs.pod:2934
40059 msgid "C<clone>"
40060 msgstr ""
40061
40062 #. type: textblock
40063 #: ../src/guestfs.pod:2936
40064 msgid ""
40065 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40066 "command and documentation."
40067 msgstr ""
40068
40069 #. type: =item
40070 #: ../src/guestfs.pod:2939
40071 msgid "C<contrib>"
40072 msgstr ""
40073
40074 #. type: textblock
40075 #: ../src/guestfs.pod:2941
40076 msgid "Outside contributions, experimental parts."
40077 msgstr ""
40078
40079 #. type: =item
40080 #: ../src/guestfs.pod:2943
40081 msgid "C<daemon>"
40082 msgstr ""
40083
40084 #. type: textblock
40085 #: ../src/guestfs.pod:2945
40086 msgid ""
40087 "The daemon that runs inside the libguestfs appliance and carries out "
40088 "actions."
40089 msgstr ""
40090
40091 #. type: =item
40092 #: ../src/guestfs.pod:2948
40093 msgid "C<df>"
40094 msgstr ""
40095
40096 #. type: textblock
40097 #: ../src/guestfs.pod:2950
40098 msgid "L<virt-df(1)> command and documentation."
40099 msgstr ""
40100
40101 #. type: =item
40102 #: ../src/guestfs.pod:2952
40103 msgid "C<edit>"
40104 msgstr ""
40105
40106 #. type: textblock
40107 #: ../src/guestfs.pod:2954
40108 msgid "L<virt-edit(1)> command and documentation."
40109 msgstr ""
40110
40111 #. type: =item
40112 #: ../src/guestfs.pod:2956
40113 msgid "C<examples>"
40114 msgstr ""
40115
40116 #. type: textblock
40117 #: ../src/guestfs.pod:2958
40118 msgid "C API example code."
40119 msgstr ""
40120
40121 #. type: =item
40122 #: ../src/guestfs.pod:2960
40123 msgid "C<fish>"
40124 msgstr ""
40125
40126 #. type: textblock
40127 #: ../src/guestfs.pod:2962
40128 msgid ""
40129 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40130 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40131 "L<virt-tar-out(1)>."
40132 msgstr ""
40133
40134 #. type: =item
40135 #: ../src/guestfs.pod:2966
40136 msgid "C<fuse>"
40137 msgstr ""
40138
40139 #. type: textblock
40140 #: ../src/guestfs.pod:2968
40141 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40142 msgstr ""
40143
40144 #. type: =item
40145 #: ../src/guestfs.pod:2970
40146 msgid "C<generator>"
40147 msgstr ""
40148
40149 #. type: textblock
40150 #: ../src/guestfs.pod:2972
40151 msgid ""
40152 "The crucially important generator, used to automatically generate large "
40153 "amounts of boilerplate C code for things like RPC and bindings."
40154 msgstr ""
40155
40156 #. type: =item
40157 #: ../src/guestfs.pod:2975
40158 msgid "C<images>"
40159 msgstr ""
40160
40161 #. type: textblock
40162 #: ../src/guestfs.pod:2977
40163 msgid "Files used by the test suite."
40164 msgstr ""
40165
40166 #. type: textblock
40167 #: ../src/guestfs.pod:2979
40168 msgid "Some \"phony\" guest images which we test against."
40169 msgstr ""
40170
40171 #. type: =item
40172 #: ../src/guestfs.pod:2981
40173 msgid "C<inspector>"
40174 msgstr ""
40175
40176 #. type: textblock
40177 #: ../src/guestfs.pod:2983
40178 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40179 msgstr ""
40180
40181 #. type: =item
40182 #: ../src/guestfs.pod:2985
40183 msgid "C<logo>"
40184 msgstr ""
40185
40186 #. type: textblock
40187 #: ../src/guestfs.pod:2987
40188 msgid "Logo used on the website.  The fish is called Arthur by the way."
40189 msgstr ""
40190
40191 #. type: =item
40192 #: ../src/guestfs.pod:2989
40193 msgid "C<m4>"
40194 msgstr ""
40195
40196 #. type: textblock
40197 #: ../src/guestfs.pod:2991
40198 msgid "M4 macros used by autoconf."
40199 msgstr ""
40200
40201 #. type: =item
40202 #: ../src/guestfs.pod:2993
40203 msgid "C<po>"
40204 msgstr ""
40205
40206 #. type: textblock
40207 #: ../src/guestfs.pod:2995
40208 msgid "Translations of simple gettext strings."
40209 msgstr ""
40210
40211 #. type: =item
40212 #: ../src/guestfs.pod:2997
40213 msgid "C<po-docs>"
40214 msgstr ""
40215
40216 #. type: textblock
40217 #: ../src/guestfs.pod:2999
40218 msgid ""
40219 "The build infrastructure and PO files for translations of manpages and POD "
40220 "files.  Eventually this will be combined with the C<po> directory, but that "
40221 "is rather complicated."
40222 msgstr ""
40223
40224 #. type: =item
40225 #: ../src/guestfs.pod:3003
40226 msgid "C<regressions>"
40227 msgstr ""
40228
40229 #. type: textblock
40230 #: ../src/guestfs.pod:3005
40231 msgid "Regression tests."
40232 msgstr ""
40233
40234 #. type: =item
40235 #: ../src/guestfs.pod:3007
40236 msgid "C<rescue>"
40237 msgstr ""
40238
40239 #. type: textblock
40240 #: ../src/guestfs.pod:3009
40241 msgid "L<virt-rescue(1)> command and documentation."
40242 msgstr ""
40243
40244 #. type: =item
40245 #: ../src/guestfs.pod:3011
40246 msgid "C<resize>"
40247 msgstr ""
40248
40249 #. type: textblock
40250 #: ../src/guestfs.pod:3013
40251 msgid "L<virt-resize(1)> command and documentation."
40252 msgstr ""
40253
40254 #. type: =item
40255 #: ../src/guestfs.pod:3015
40256 msgid "C<sparsify>"
40257 msgstr ""
40258
40259 #. type: textblock
40260 #: ../src/guestfs.pod:3017
40261 msgid "L<virt-sparsify(1)> command and documentation."
40262 msgstr ""
40263
40264 #. type: =item
40265 #: ../src/guestfs.pod:3019
40266 msgid "C<src>"
40267 msgstr ""
40268
40269 #. type: textblock
40270 #: ../src/guestfs.pod:3021
40271 msgid "Source code to the C library."
40272 msgstr ""
40273
40274 #. type: =item
40275 #: ../src/guestfs.pod:3023
40276 msgid "C<tools>"
40277 msgstr ""
40278
40279 #. type: textblock
40280 #: ../src/guestfs.pod:3025
40281 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40282 msgstr ""
40283
40284 #. type: =item
40285 #: ../src/guestfs.pod:3027
40286 msgid "C<test-tool>"
40287 msgstr ""
40288
40289 #. type: textblock
40290 #: ../src/guestfs.pod:3029
40291 msgid ""
40292 "Test tool for end users to test if their qemu/kernel combination will work "
40293 "with libguestfs."
40294 msgstr ""
40295
40296 #. type: =item
40297 #: ../src/guestfs.pod:3032
40298 msgid "C<csharp>"
40299 msgstr ""
40300
40301 #. type: =item
40302 #: ../src/guestfs.pod:3034
40303 msgid "C<erlang>"
40304 msgstr ""
40305
40306 #. type: =item
40307 #: ../src/guestfs.pod:3036
40308 msgid "C<haskell>"
40309 msgstr ""
40310
40311 #. type: =item
40312 #: ../src/guestfs.pod:3038
40313 msgid "C<java>"
40314 msgstr ""
40315
40316 #. type: =item
40317 #: ../src/guestfs.pod:3040
40318 msgid "C<ocaml>"
40319 msgstr ""
40320
40321 #. type: =item
40322 #: ../src/guestfs.pod:3042
40323 msgid "C<php>"
40324 msgstr ""
40325
40326 #. type: =item
40327 #: ../src/guestfs.pod:3044
40328 msgid "C<perl>"
40329 msgstr ""
40330
40331 #. type: =item
40332 #: ../src/guestfs.pod:3046
40333 msgid "C<python>"
40334 msgstr ""
40335
40336 #. type: =item
40337 #: ../src/guestfs.pod:3048
40338 msgid "C<ruby>"
40339 msgstr ""
40340
40341 #. type: textblock
40342 #: ../src/guestfs.pod:3050
40343 msgid "Language bindings."
40344 msgstr ""
40345
40346 #. type: =head2
40347 #: ../src/guestfs.pod:3054
40348 msgid "MAKING A STABLE RELEASE"
40349 msgstr ""
40350
40351 #. type: textblock
40352 #: ../src/guestfs.pod:3056
40353 msgid ""
40354 "When we make a stable release, there are several steps documented here.  See "
40355 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40356 "branch policy."
40357 msgstr ""
40358
40359 #. type: textblock
40360 #: ../src/guestfs.pod:3064
40361 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40362 msgstr ""
40363
40364 #. type: textblock
40365 #: ../src/guestfs.pod:3069
40366 msgid "Finalize RELEASE-NOTES."
40367 msgstr ""
40368
40369 #. type: textblock
40370 #: ../src/guestfs.pod:3073
40371 msgid "Update ROADMAP."
40372 msgstr ""
40373
40374 #. type: textblock
40375 #: ../src/guestfs.pod:3077
40376 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40377 msgstr ""
40378
40379 #. type: textblock
40380 #: ../src/guestfs.pod:3081
40381 msgid "Push and pull from Transifex."
40382 msgstr ""
40383
40384 #. type: verbatim
40385 #: ../src/guestfs.pod:3085
40386 #, no-wrap
40387 msgid ""
40388 " tx push -s\n"
40389 "\n"
40390 msgstr ""
40391
40392 #. type: textblock
40393 #: ../src/guestfs.pod:3087
40394 msgid "to push the latest POT files to Transifex.  Then run:"
40395 msgstr ""
40396
40397 #. type: verbatim
40398 #: ../src/guestfs.pod:3089
40399 #, no-wrap
40400 msgid ""
40401 " ./tx-pull.sh\n"
40402 "\n"
40403 msgstr ""
40404
40405 #. type: textblock
40406 #: ../src/guestfs.pod:3091
40407 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40408 msgstr ""
40409
40410 #. type: textblock
40411 #: ../src/guestfs.pod:3095
40412 msgid ""
40413 "Create new stable and development directories under "
40414 "L<http://libguestfs.org/download>."
40415 msgstr ""
40416
40417 #. type: textblock
40418 #: ../src/guestfs.pod:3100
40419 msgid "Create the branch in git:"
40420 msgstr ""
40421
40422 #. type: verbatim
40423 #: ../src/guestfs.pod:3102
40424 #, no-wrap
40425 msgid ""
40426 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40427 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40428 " git branch stable-1.XX\n"
40429 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40430 "\n"
40431 msgstr ""
40432
40433 #. type: =head1
40434 #: ../src/guestfs.pod:3109
40435 msgid "LIMITS"
40436 msgstr ""
40437
40438 #. type: =head2
40439 #: ../src/guestfs.pod:3111
40440 msgid "PROTOCOL LIMITS"
40441 msgstr ""
40442
40443 #. type: textblock
40444 #: ../src/guestfs.pod:3113
40445 msgid ""
40446 "Internally libguestfs uses a message-based protocol to pass API calls and "
40447 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40448 "plenty more detail about this).  The maximum message size used by the "
40449 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40450 "aware of this limit.  The API calls which may be affected are individually "
40451 "documented, with a link back to this section of the documentation."
40452 msgstr ""
40453
40454 #. type: textblock
40455 #: ../src/guestfs.pod:3121
40456 msgid ""
40457 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40458 "a simple string.  Because this string is at some point internally encoded as "
40459 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40460 "the requested file is larger than this then you will get an error."
40461 msgstr ""
40462
40463 #. type: textblock
40464 #: ../src/guestfs.pod:3127
40465 msgid ""
40466 "In order to transfer large files into and out of the guest filesystem, you "
40467 "need to use particular calls that support this.  The sections L</UPLOADING> "
40468 "and L</DOWNLOADING> document how to do this."
40469 msgstr ""
40470
40471 #. type: textblock
40472 #: ../src/guestfs.pod:3131
40473 msgid ""
40474 "You might also consider mounting the disk image using our FUSE filesystem "
40475 "support (L<guestmount(1)>)."
40476 msgstr ""
40477
40478 #. type: =head2
40479 #: ../src/guestfs.pod:3134
40480 msgid "MAXIMUM NUMBER OF DISKS"
40481 msgstr ""
40482
40483 #. type: textblock
40484 #: ../src/guestfs.pod:3136
40485 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40486 msgstr ""
40487
40488 #. type: textblock
40489 #: ../src/guestfs.pod:3139
40490 msgid ""
40491 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40492 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40493 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40494 "purposes."
40495 msgstr ""
40496
40497 #. type: textblock
40498 #: ../src/guestfs.pod:3144
40499 msgid ""
40500 "We are working to substantially raise this limit in future versions but it "
40501 "requires complex changes to qemu."
40502 msgstr ""
40503
40504 #. type: textblock
40505 #: ../src/guestfs.pod:3147
40506 msgid ""
40507 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40508 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40509 "requires changes to qemu."
40510 msgstr ""
40511
40512 #. type: =head2
40513 #: ../src/guestfs.pod:3151
40514 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40515 msgstr ""
40516
40517 #. type: textblock
40518 #: ../src/guestfs.pod:3153
40519 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40520 msgstr ""
40521
40522 #. type: textblock
40523 #: ../src/guestfs.pod:3155
40524 msgid ""
40525 "This is because it reserves 4 bits for the minor device number (thus "
40526 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
40527 msgstr ""
40528
40529 #. type: textblock
40530 #: ../src/guestfs.pod:3158
40531 msgid ""
40532 "If you attach a disk with more than 15 partitions, the extra partitions are "
40533 "ignored by libguestfs."
40534 msgstr ""
40535
40536 #. type: =head2
40537 #: ../src/guestfs.pod:3161
40538 msgid "MAXIMUM SIZE OF A DISK"
40539 msgstr ""
40540
40541 #. type: textblock
40542 #: ../src/guestfs.pod:3163
40543 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40544 msgstr ""
40545
40546 #. type: textblock
40547 #: ../src/guestfs.pod:3165
40548 msgid ""
40549 "We have tested block devices up to 1 exabyte (2**60 or "
40550 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40551 "filesystem."
40552 msgstr ""
40553
40554 #. type: textblock
40555 #: ../src/guestfs.pod:3169
40556 msgid ""
40557 "Although libguestfs probably does not impose any limit, the underlying host "
40558 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40559 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40560 "TB).  If you store disk images as host logical volumes then you are limited "
40561 "by the maximum size of an LV."
40562 msgstr ""
40563
40564 #. type: textblock
40565 #: ../src/guestfs.pod:3175
40566 msgid ""
40567 "For the hugest disk image files, we recommend using XFS on the host for "
40568 "storage."
40569 msgstr ""
40570
40571 #. type: =head2
40572 #: ../src/guestfs.pod:3178
40573 msgid "MAXIMUM SIZE OF A PARTITION"
40574 msgstr ""
40575
40576 #. type: textblock
40577 #: ../src/guestfs.pod:3180
40578 msgid ""
40579 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40580 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40581 "address a partition located beyond 2 TB on the disk."
40582 msgstr ""
40583
40584 #. type: textblock
40585 #: ../src/guestfs.pod:3184
40586 msgid ""
40587 "It is recommended that you use GPT partitions on disks which are larger than "
40588 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40589 "which are theoretically larger than the largest disk we could support."
40590 msgstr ""
40591
40592 #. type: =head2
40593 #: ../src/guestfs.pod:3189
40594 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40595 msgstr ""
40596
40597 #. type: textblock
40598 #: ../src/guestfs.pod:3191
40599 msgid ""
40600 "This depends on the filesystem type.  libguestfs itself does not impose any "
40601 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40602 "what these limits are."
40603 msgstr ""
40604
40605 #. type: =head2
40606 #: ../src/guestfs.pod:3195
40607 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40608 msgstr ""
40609
40610 #. type: textblock
40611 #: ../src/guestfs.pod:3197
40612 msgid ""
40613 "The API functions L</guestfs_upload>, L</guestfs_download>, "
40614 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40615 "uploads and downloads."
40616 msgstr ""
40617
40618 #. type: =head2
40619 #: ../src/guestfs.pod:3201
40620 msgid "INSPECTION LIMITS"
40621 msgstr ""
40622
40623 #. type: textblock
40624 #: ../src/guestfs.pod:3203
40625 msgid ""
40626 "The inspection code has several arbitrary limits on things like the size of "
40627 "Windows Registry hive it will read, and the length of product name.  These "
40628 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40629 "memory and disk space on the host, and should not be reached in practice.  "
40630 "See the source code for more information."
40631 msgstr ""
40632
40633 #. type: textblock
40634 #: ../src/guestfs.pod:3229
40635 msgid ""
40636 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40637 "effect as calling C<guestfs_set_verbose (g, 1)>."
40638 msgstr ""
40639
40640 #. type: textblock
40641 #: ../src/guestfs.pod:3241
40642 msgid ""
40643 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40644 "the discussion of paths in section L</PATH> above."
40645 msgstr ""
40646
40647 #. type: textblock
40648 #: ../src/guestfs.pod:3250
40649 msgid "See also L</QEMU WRAPPERS> above."
40650 msgstr ""
40651
40652 #. type: textblock
40653 #: ../src/guestfs.pod:3254
40654 msgid ""
40655 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40656 "effect as calling C<guestfs_set_trace (g, 1)>."
40657 msgstr ""
40658
40659 #. type: textblock
40660 #: ../src/guestfs.pod:3272
40661 msgid ""
40662 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
40663 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
40664 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
40665 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
40666 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
40667 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40668 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
40669 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
40670 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
40671 "L<virt-win-reg(1)>, L<guestfs-testing(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40672 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
40673 "L<http://libguestfs.org/>."
40674 msgstr ""
40675
40676 #. type: textblock
40677 #: ../src/guestfs.pod:3309
40678 msgid ""
40679 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
40680 "L<lvm(8)>, L<disktype(1)>."
40681 msgstr ""
40682
40683 #. type: =head1
40684 #: ../src/guestfs.pod:3316 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
40685 msgid "BUGS"
40686 msgstr ""
40687
40688 #. type: textblock
40689 #: ../src/guestfs.pod:3318
40690 msgid "To get a list of bugs against libguestfs use this link:"
40691 msgstr ""
40692
40693 #. type: textblock
40694 #: ../src/guestfs.pod:3320
40695 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
40696 msgstr ""
40697
40698 #. type: textblock
40699 #: ../src/guestfs.pod:3322
40700 msgid "To report a new bug against libguestfs use this link:"
40701 msgstr ""
40702
40703 #. type: textblock
40704 #: ../src/guestfs.pod:3324
40705 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
40706 msgstr ""
40707
40708 #. type: textblock
40709 #: ../src/guestfs.pod:3326
40710 msgid "When reporting a bug, please check:"
40711 msgstr ""
40712
40713 #. type: textblock
40714 #: ../src/guestfs.pod:3332
40715 msgid "That the bug hasn't been reported already."
40716 msgstr ""
40717
40718 #. type: textblock
40719 #: ../src/guestfs.pod:3336
40720 msgid "That you are testing a recent version."
40721 msgstr ""
40722
40723 #. type: textblock
40724 #: ../src/guestfs.pod:3340
40725 msgid "Describe the bug accurately, and give a way to reproduce it."
40726 msgstr ""
40727
40728 #. type: textblock
40729 #: ../src/guestfs.pod:3344
40730 msgid ""
40731 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40732 "bug report."
40733 msgstr ""
40734
40735 #. type: textblock
40736 #: ../test-tool/libguestfs-test-tool.pod:5
40737 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40738 msgstr ""
40739
40740 #. type: verbatim
40741 #: ../test-tool/libguestfs-test-tool.pod:9
40742 #, no-wrap
40743 msgid ""
40744 " libguestfs-test-tool [--options]\n"
40745 "\n"
40746 msgstr ""
40747
40748 #. type: textblock
40749 #: ../test-tool/libguestfs-test-tool.pod:13
40750 msgid ""
40751 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40752 "to check basic libguestfs functionality is working.  This is needed because "
40753 "libguestfs occasionally breaks for reasons beyond our control: usually "
40754 "because of changes in the underlying qemu or kernel packages, or the host "
40755 "environment."
40756 msgstr ""
40757
40758 #. type: textblock
40759 #: ../test-tool/libguestfs-test-tool.pod:19
40760 msgid "If you suspect a problem in libguestfs, then just run:"
40761 msgstr ""
40762
40763 #. type: verbatim
40764 #: ../test-tool/libguestfs-test-tool.pod:21
40765 #, no-wrap
40766 msgid ""
40767 " libguestfs-test-tool\n"
40768 "\n"
40769 msgstr ""
40770
40771 #. type: textblock
40772 #: ../test-tool/libguestfs-test-tool.pod:23
40773 msgid "It will print lots of diagnostic messages."
40774 msgstr ""
40775
40776 #. type: textblock
40777 #: ../test-tool/libguestfs-test-tool.pod:25
40778 msgid "If it runs to completion successfully, you will see this near the end:"
40779 msgstr ""
40780
40781 #. type: verbatim
40782 #: ../test-tool/libguestfs-test-tool.pod:27
40783 #, no-wrap
40784 msgid ""
40785 " ===== TEST FINISHED OK =====\n"
40786 "\n"
40787 msgstr ""
40788
40789 #. type: textblock
40790 #: ../test-tool/libguestfs-test-tool.pod:29
40791 msgid "and the test tool will exit with code 0."
40792 msgstr ""
40793
40794 #. type: textblock
40795 #: ../test-tool/libguestfs-test-tool.pod:31
40796 msgid ""
40797 "If it fails (and/or exits with non-zero error code), please paste the "
40798 "I<complete, unedited> output of the test tool into a bug report.  More "
40799 "information about reporting bugs can be found on the "
40800 "L<http://libguestfs.org/> website."
40801 msgstr ""
40802
40803 #. type: textblock
40804 #: ../test-tool/libguestfs-test-tool.pod:42
40805 msgid "Display short usage information and exit."
40806 msgstr ""
40807
40808 #. type: =item
40809 #: ../test-tool/libguestfs-test-tool.pod:44
40810 msgid "B<--qemu qemu_binary>"
40811 msgstr ""
40812
40813 #. type: textblock
40814 #: ../test-tool/libguestfs-test-tool.pod:46
40815 msgid ""
40816 "If you have downloaded another qemu binary, point this option at the full "
40817 "path of the binary to try it."
40818 msgstr ""
40819
40820 #. type: =item
40821 #: ../test-tool/libguestfs-test-tool.pod:49
40822 msgid "B<--qemudir qemu_source_dir>"
40823 msgstr ""
40824
40825 #. type: textblock
40826 #: ../test-tool/libguestfs-test-tool.pod:51
40827 msgid ""
40828 "If you have compiled qemu from source, point this option at the source "
40829 "directory to try it."
40830 msgstr ""
40831
40832 #. type: =item
40833 #: ../test-tool/libguestfs-test-tool.pod:54
40834 msgid "B<-t N>"
40835 msgstr ""
40836
40837 #. type: =item
40838 #: ../test-tool/libguestfs-test-tool.pod:56
40839 msgid "B<--timeout N>"
40840 msgstr ""
40841
40842 #. type: textblock
40843 #: ../test-tool/libguestfs-test-tool.pod:58
40844 msgid ""
40845 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40846 "minutes) which does not usually need to be adjusted."
40847 msgstr ""
40848
40849 #. type: =head1
40850 #: ../test-tool/libguestfs-test-tool.pod:63
40851 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40852 msgstr ""
40853
40854 #. type: textblock
40855 #: ../test-tool/libguestfs-test-tool.pod:65
40856 msgid ""
40857 "If you have compiled another version of qemu from source and would like to "
40858 "try that, then you can use the I<--qemudir> option to point to the qemu "
40859 "source directory."
40860 msgstr ""
40861
40862 #. type: textblock
40863 #: ../test-tool/libguestfs-test-tool.pod:69
40864 msgid ""
40865 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40866 "option to point to the binary."
40867 msgstr ""
40868
40869 #. type: textblock
40870 #: ../test-tool/libguestfs-test-tool.pod:72
40871 msgid ""
40872 "Note when using these options, you can ignore the business of qemu wrapper "
40873 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40874 "wrapper script for you if one is needed."
40875 msgstr ""
40876
40877 #. type: =head1
40878 #: ../test-tool/libguestfs-test-tool.pod:76
40879 msgid "TRYING OUT A DIFFERENT KERNEL"
40880 msgstr ""
40881
40882 #. type: textblock
40883 #: ../test-tool/libguestfs-test-tool.pod:78
40884 msgid ""
40885 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40886 "libguestfs tries.  You do this by setting the environment variables "
40887 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40888 msgstr ""
40889
40890 #. type: textblock
40891 #: ../test-tool/libguestfs-test-tool.pod:82
40892 msgid ""
40893 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40894 "information."
40895 msgstr ""
40896
40897 #. type: =head1
40898 #: ../test-tool/libguestfs-test-tool.pod:85
40899 msgid "SELF-DIAGNOSIS"
40900 msgstr ""
40901
40902 #. type: textblock
40903 #: ../test-tool/libguestfs-test-tool.pod:87
40904 msgid ""
40905 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40906 "produced by libguestfs-test-tool and/or possible errors."
40907 msgstr ""
40908
40909 #. type: textblock
40910 #: ../test-tool/libguestfs-test-tool.pod:92
40911 msgid ""
40912 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40913 "I<1> if there was an error."
40914 msgstr ""
40915
40916 #. type: textblock
40917 #: ../test-tool/libguestfs-test-tool.pod:97
40918 msgid ""
40919 "For the full list of environment variables which may affect libguestfs, "
40920 "please see the L<guestfs(3)> manual page."
40921 msgstr ""
40922
40923 #. type: textblock
40924 #: ../test-tool/libguestfs-test-tool.pod:102
40925 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40926 msgstr ""
40927
40928 #. type: textblock
40929 #: ../tools/virt-list-filesystems.pl:32
40930 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40931 msgstr ""
40932
40933 #. type: verbatim
40934 #: ../tools/virt-list-filesystems.pl:36
40935 #, no-wrap
40936 msgid ""
40937 " virt-list-filesystems [--options] domname\n"
40938 "\n"
40939 msgstr ""
40940
40941 #. type: verbatim
40942 #: ../tools/virt-list-filesystems.pl:38
40943 #, no-wrap
40944 msgid ""
40945 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40946 "\n"
40947 msgstr ""
40948
40949 #. type: textblock
40950 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40951 msgid ""
40952 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40953 "replacement."
40954 msgstr ""
40955
40956 #. type: textblock
40957 #: ../tools/virt-list-filesystems.pl:45
40958 msgid ""
40959 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40960 "are contained in a virtual machine or disk image."
40961 msgstr ""
40962
40963 #. type: textblock
40964 #: ../tools/virt-list-filesystems.pl:49
40965 msgid ""
40966 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40967 "functionality.  For more complex cases you should look at the "
40968 "L<guestfish(1)> tool."
40969 msgstr ""
40970
40971 #. type: textblock
40972 #: ../tools/virt-list-filesystems.pl:112
40973 msgid ""
40974 "With this option, C<virt-list-filesystems> displays the type of each "
40975 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40976 msgstr ""
40977
40978 #. type: =item
40979 #: ../tools/virt-list-filesystems.pl:119
40980 msgid "B<-a>"
40981 msgstr ""
40982
40983 #. type: textblock
40984 #: ../tools/virt-list-filesystems.pl:123
40985 msgid ""
40986 "Normally we only show mountable filesystems.  If this option is given then "
40987 "swap devices are shown too."
40988 msgstr ""
40989
40990 #. type: textblock
40991 #: ../tools/virt-list-filesystems.pl:197
40992 msgid ""
40993 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
40994 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
40995 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40996 msgstr ""
40997
40998 #. type: textblock
40999 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41000 msgid "Copyright (C) 2009 Red Hat Inc."
41001 msgstr ""
41002
41003 #. type: textblock
41004 #: ../tools/virt-list-partitions.pl:32
41005 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
41006 msgstr ""
41007
41008 #. type: verbatim
41009 #: ../tools/virt-list-partitions.pl:36
41010 #, no-wrap
41011 msgid ""
41012 " virt-list-partitions [--options] domname\n"
41013 "\n"
41014 msgstr ""
41015
41016 #. type: verbatim
41017 #: ../tools/virt-list-partitions.pl:38
41018 #, no-wrap
41019 msgid ""
41020 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41021 "\n"
41022 msgstr ""
41023
41024 #. type: textblock
41025 #: ../tools/virt-list-partitions.pl:45
41026 msgid ""
41027 "C<virt-list-partitions> is a command line tool to list the partitions that "
41028 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41029 "first step to using L<virt-resize(1)>."
41030 msgstr ""
41031
41032 #. type: textblock
41033 #: ../tools/virt-list-partitions.pl:50
41034 msgid ""
41035 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41036 "functionality.  For more complex cases you should look at the "
41037 "L<guestfish(1)> tool."
41038 msgstr ""
41039
41040 #. type: textblock
41041 #: ../tools/virt-list-partitions.pl:113
41042 msgid "Show sizes in human-readable form (eg. \"1G\")."
41043 msgstr ""
41044
41045 #. type: textblock
41046 #: ../tools/virt-list-partitions.pl:123
41047 msgid ""
41048 "With this option, C<virt-list-partitions> displays the type and size of each "
41049 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41050 msgstr ""
41051
41052 #. type: =item
41053 #: ../tools/virt-list-partitions.pl:130
41054 msgid "B<-t>"
41055 msgstr ""
41056
41057 #. type: =item
41058 #: ../tools/virt-list-partitions.pl:132
41059 msgid "B<--total>"
41060 msgstr ""
41061
41062 #. type: textblock
41063 #: ../tools/virt-list-partitions.pl:134
41064 msgid "Display the total size of each block device (as a separate row or rows)."
41065 msgstr ""
41066
41067 #. type: textblock
41068 #: ../tools/virt-list-partitions.pl:267
41069 msgid ""
41070 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
41071 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
41072 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41073 msgstr ""
41074
41075 #. type: textblock
41076 #: ../tools/virt-list-partitions.pl:283
41077 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41078 msgstr ""
41079
41080 #. type: textblock
41081 #: ../tools/virt-make-fs.pl:37
41082 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41083 msgstr ""
41084
41085 #. type: verbatim
41086 #: ../tools/virt-make-fs.pl:41
41087 #, no-wrap
41088 msgid ""
41089 " virt-make-fs [--options] input.tar output.img\n"
41090 "\n"
41091 msgstr ""
41092
41093 #. type: verbatim
41094 #: ../tools/virt-make-fs.pl:43
41095 #, no-wrap
41096 msgid ""
41097 " virt-make-fs [--options] input.tar.gz output.img\n"
41098 "\n"
41099 msgstr ""
41100
41101 #. type: verbatim
41102 #: ../tools/virt-make-fs.pl:45
41103 #, no-wrap
41104 msgid ""
41105 " virt-make-fs [--options] directory output.img\n"
41106 "\n"
41107 msgstr ""
41108
41109 #. type: textblock
41110 #: ../tools/virt-make-fs.pl:49
41111 msgid ""
41112 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41113 "archive or some files in a directory.  It is similar to tools like "
41114 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
41115 "it can create common filesystem types like ext2/3 or NTFS, which can be "
41116 "useful if you want to attach these filesystems to existing virtual machines "
41117 "(eg. to import large amounts of read-only data to a VM)."
41118 msgstr ""
41119
41120 #. type: textblock
41121 #: ../tools/virt-make-fs.pl:57
41122 msgid "Basic usage is:"
41123 msgstr ""
41124
41125 #. type: verbatim
41126 #: ../tools/virt-make-fs.pl:59
41127 #, no-wrap
41128 msgid ""
41129 " virt-make-fs input output.img\n"
41130 "\n"
41131 msgstr ""
41132
41133 #. type: textblock
41134 #: ../tools/virt-make-fs.pl:61
41135 msgid ""
41136 "where C<input> is either a directory containing files that you want to add, "
41137 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41138 "C<output.img> is a disk image.  The input type is detected automatically.  "
41139 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41140 "extra flags (see L</OPTIONS> below)."
41141 msgstr ""
41142
41143 #. type: =head2
41144 #: ../tools/virt-make-fs.pl:67
41145 msgid "FILESYSTEM TYPE"
41146 msgstr ""
41147
41148 #. type: textblock
41149 #: ../tools/virt-make-fs.pl:69
41150 msgid ""
41151 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41152 "libguestfs supports can be used (but I<not> read-only formats like "
41153 "ISO9660).  Here are some of the more common choices:"
41154 msgstr ""
41155
41156 #. type: =item
41157 #: ../tools/virt-make-fs.pl:75
41158 msgid "I<ext3>"
41159 msgstr ""
41160
41161 #. type: textblock
41162 #: ../tools/virt-make-fs.pl:77
41163 msgid ""
41164 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41165 "you are not going to use the filesystem in a way that requires the journal, "
41166 "then this is just wasted overhead."
41167 msgstr ""
41168
41169 #. type: =item
41170 #: ../tools/virt-make-fs.pl:81
41171 msgid "I<ntfs> or I<vfat>"
41172 msgstr ""
41173
41174 #. type: textblock
41175 #: ../tools/virt-make-fs.pl:83
41176 msgid "Useful if exporting data to a Windows guest."
41177 msgstr ""
41178
41179 #. type: textblock
41180 #: ../tools/virt-make-fs.pl:85
41181 msgid ""
41182 "I<Note for vfat>: The tar archive or local directory must only contain files "
41183 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41184 "program running within libguestfs is unable to change the ownership of "
41185 "non-root files, since vfat itself does not support this."
41186 msgstr ""
41187
41188 #. type: =item
41189 #: ../tools/virt-make-fs.pl:90
41190 msgid "I<minix>"
41191 msgstr ""
41192
41193 #. type: textblock
41194 #: ../tools/virt-make-fs.pl:92
41195 msgid ""
41196 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41197 "total filesystem size."
41198 msgstr ""
41199
41200 #. type: =head3
41201 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
41202 msgid "EXAMPLE"
41203 msgstr ""
41204
41205 #. type: verbatim
41206 #: ../tools/virt-make-fs.pl:99
41207 #, no-wrap
41208 msgid ""
41209 " virt-make-fs --type=minix input minixfs.img\n"
41210 "\n"
41211 msgstr ""
41212
41213 #. type: =head2
41214 #: ../tools/virt-make-fs.pl:101
41215 msgid "TO PARTITION OR NOT TO PARTITION"
41216 msgstr ""
41217
41218 #. type: textblock
41219 #: ../tools/virt-make-fs.pl:103
41220 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41221 msgstr ""
41222
41223 #. type: textblock
41224 #: ../tools/virt-make-fs.pl:105
41225 msgid ""
41226 "Adding a partition can make the disk image more compatible with certain "
41227 "virtualized operating systems which don't expect to see a filesystem "
41228 "directly located on a block device (Linux doesn't care and will happily "
41229 "handle both types)."
41230 msgstr ""
41231
41232 #. type: textblock
41233 #: ../tools/virt-make-fs.pl:110
41234 msgid ""
41235 "On the other hand, if you have a partition table then the output image is no "
41236 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41237 "directly on a partitioned disk image.  (However libguestfs tools such as "
41238 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41239 msgstr ""
41240
41241 #. type: textblock
41242 #: ../tools/virt-make-fs.pl:118
41243 msgid "Add an MBR partition:"
41244 msgstr ""
41245
41246 #. type: verbatim
41247 #: ../tools/virt-make-fs.pl:120
41248 #, no-wrap
41249 msgid ""
41250 " virt-make-fs --partition -- input disk.img\n"
41251 "\n"
41252 msgstr ""
41253
41254 #. type: textblock
41255 #: ../tools/virt-make-fs.pl:122
41256 msgid ""
41257 "If the output disk image could be terabyte-sized or larger, it's better to "
41258 "use an EFI/GPT-compatible partition table:"
41259 msgstr ""
41260
41261 #. type: verbatim
41262 #: ../tools/virt-make-fs.pl:125
41263 #, no-wrap
41264 msgid ""
41265 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41266 "\n"
41267 msgstr ""
41268
41269 #. type: =head2
41270 #: ../tools/virt-make-fs.pl:127
41271 msgid "EXTRA SPACE"
41272 msgstr ""
41273
41274 #. type: textblock
41275 #: ../tools/virt-make-fs.pl:129
41276 msgid ""
41277 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41278 "the files that it contains, but might have extra space.  Depending on how "
41279 "you are going to use the output, you might think this extra space is wasted "
41280 "and want to minimize it, or you might want to leave space so that more files "
41281 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41282 "but you can use the I<--size> flag to leave space in the filesystem if you "
41283 "want it."
41284 msgstr ""
41285
41286 #. type: textblock
41287 #: ../tools/virt-make-fs.pl:137
41288 msgid ""
41289 "An alternative way to leave extra space but not make the output image any "
41290 "bigger is to use an alternative disk image format (instead of the default "
41291 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41292 "image format (check your hypervisor supports this before using it).  This "
41293 "allows you to choose a large I<--size> but the extra space won't actually be "
41294 "allocated in the image until you try to store something in it."
41295 msgstr ""
41296
41297 #. type: textblock
41298 #: ../tools/virt-make-fs.pl:145
41299 msgid ""
41300 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41301 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41302 "to build another image from scratch."
41303 msgstr ""
41304
41305 #. type: verbatim
41306 #: ../tools/virt-make-fs.pl:151
41307 #, no-wrap
41308 msgid ""
41309 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41310 "\n"
41311 msgstr ""
41312
41313 #. type: textblock
41314 #: ../tools/virt-make-fs.pl:179
41315 msgid "Enable debugging information."
41316 msgstr ""
41317
41318 #. type: =item
41319 #: ../tools/virt-make-fs.pl:185
41320 msgid "B<--size=E<lt>NE<gt>>"
41321 msgstr ""
41322
41323 #. type: =item
41324 #: ../tools/virt-make-fs.pl:187
41325 msgid "B<--size=+E<lt>NE<gt>>"
41326 msgstr ""
41327
41328 #. type: =item
41329 #: ../tools/virt-make-fs.pl:189
41330 msgid "B<-s E<lt>NE<gt>>"
41331 msgstr ""
41332
41333 #. type: =item
41334 #: ../tools/virt-make-fs.pl:191
41335 msgid "B<-s +E<lt>NE<gt>>"
41336 msgstr ""
41337
41338 #. type: textblock
41339 #: ../tools/virt-make-fs.pl:193
41340 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41341 msgstr ""
41342
41343 #. type: textblock
41344 #: ../tools/virt-make-fs.pl:196
41345 msgid ""
41346 "If this option is I<not> given, then the output image will be just large "
41347 "enough to contain all the files, with not much wasted space."
41348 msgstr ""
41349
41350 #. type: textblock
41351 #: ../tools/virt-make-fs.pl:199
41352 msgid ""
41353 "To choose a fixed size output disk, specify an absolute number followed by "
41354 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41355 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41356 "files, else you will get an error."
41357 msgstr ""
41358
41359 #. type: textblock
41360 #: ../tools/virt-make-fs.pl:204
41361 msgid ""
41362 "To leave extra space, specify C<+> (plus sign) and a number followed by "
41363 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41364 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41365 "the input files, and (approximately) an extra 200 MB free space."
41366 msgstr ""
41367
41368 #. type: textblock
41369 #: ../tools/virt-make-fs.pl:210
41370 msgid ""
41371 "Note that virt-make-fs estimates free space, and therefore will not produce "
41372 "filesystems containing precisely the free space requested.  (It is much more "
41373 "expensive and time-consuming to produce a filesystem which has precisely the "
41374 "desired free space)."
41375 msgstr ""
41376
41377 #. type: =item
41378 #: ../tools/virt-make-fs.pl:219
41379 msgid "B<--format=E<lt>fmtE<gt>>"
41380 msgstr ""
41381
41382 #. type: =item
41383 #: ../tools/virt-make-fs.pl:221
41384 msgid "B<-F E<lt>fmtE<gt>>"
41385 msgstr ""
41386
41387 #. type: textblock
41388 #: ../tools/virt-make-fs.pl:223
41389 msgid "Choose the output disk image format."
41390 msgstr ""
41391
41392 #. type: textblock
41393 #: ../tools/virt-make-fs.pl:225
41394 msgid "The default is C<raw> (raw sparse disk image)."
41395 msgstr ""
41396
41397 #. type: textblock
41398 #: ../tools/virt-make-fs.pl:227
41399 msgid ""
41400 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41401 "that would really make sense here is C<qcow2>."
41402 msgstr ""
41403
41404 #. type: =item
41405 #: ../tools/virt-make-fs.pl:234
41406 msgid "B<--type=E<lt>fsE<gt>>"
41407 msgstr ""
41408
41409 #. type: =item
41410 #: ../tools/virt-make-fs.pl:236
41411 msgid "B<-t E<lt>fsE<gt>>"
41412 msgstr ""
41413
41414 #. type: textblock
41415 #: ../tools/virt-make-fs.pl:238
41416 msgid "Choose the output filesystem type."
41417 msgstr ""
41418
41419 #. type: textblock
41420 #: ../tools/virt-make-fs.pl:240
41421 msgid "The default is C<ext2>."
41422 msgstr ""
41423
41424 #. type: textblock
41425 #: ../tools/virt-make-fs.pl:242
41426 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
41427 msgstr ""
41428
41429 #. type: =item
41430 #: ../tools/virt-make-fs.pl:249
41431 msgid "B<--partition>"
41432 msgstr ""
41433
41434 #. type: =item
41435 #: ../tools/virt-make-fs.pl:251
41436 msgid "B<--partition=E<lt>parttypeE<gt>>"
41437 msgstr ""
41438
41439 #. type: textblock
41440 #: ../tools/virt-make-fs.pl:253
41441 msgid ""
41442 "If specified, this flag adds an MBR partition table to the output disk "
41443 "image."
41444 msgstr ""
41445
41446 #. type: textblock
41447 #: ../tools/virt-make-fs.pl:256
41448 msgid ""
41449 "You can change the partition table type, eg. I<--partition=gpt> for large "
41450 "disks."
41451 msgstr ""
41452
41453 #. type: textblock
41454 #: ../tools/virt-make-fs.pl:259
41455 msgid ""
41456 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41457 "might consider the next parameter to be the partition type.  For example:"
41458 msgstr ""
41459
41460 #. type: verbatim
41461 #: ../tools/virt-make-fs.pl:263
41462 #, no-wrap
41463 msgid ""
41464 " virt-make-fs --partition input.tar output.img\n"
41465 "\n"
41466 msgstr ""
41467
41468 #. type: textblock
41469 #: ../tools/virt-make-fs.pl:265
41470 msgid ""
41471 "would cause virt-make-fs to think you wanted to use a partition type of "
41472 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41473 "dash) between options and the input and output arguments:"
41474 msgstr ""
41475
41476 #. type: verbatim
41477 #: ../tools/virt-make-fs.pl:269
41478 #, no-wrap
41479 msgid ""
41480 " virt-make-fs --partition -- input.tar output.img\n"
41481 "\n"
41482 msgstr ""
41483
41484 #. type: textblock
41485 #: ../tools/virt-make-fs.pl:271
41486 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41487 msgstr ""
41488
41489 #. type: textblock
41490 #: ../tools/virt-make-fs.pl:559
41491 msgid ""
41492 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41493 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
41494 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41495 msgstr ""
41496
41497 #. type: textblock
41498 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41499 msgid ""
41500 "When reporting bugs, please enable debugging and capture the I<complete> "
41501 "output:"
41502 msgstr ""
41503
41504 #. type: verbatim
41505 #: ../tools/virt-make-fs.pl:576
41506 #, no-wrap
41507 msgid ""
41508 " export LIBGUESTFS_DEBUG=1\n"
41509 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41510 "\n"
41511 msgstr ""
41512
41513 #. type: textblock
41514 #: ../tools/virt-make-fs.pl:579
41515 msgid ""
41516 "Attach /tmp/virt-make-fs.log to a new bug report at "
41517 "L<https://bugzilla.redhat.com/>"
41518 msgstr ""
41519
41520 #. type: textblock
41521 #: ../tools/virt-tar.pl:33
41522 msgid "virt-tar - Extract or upload files to a virtual machine"
41523 msgstr ""
41524
41525 #. type: verbatim
41526 #: ../tools/virt-tar.pl:37
41527 #, no-wrap
41528 msgid ""
41529 " virt-tar [--options] -x domname directory tarball\n"
41530 "\n"
41531 msgstr ""
41532
41533 #. type: verbatim
41534 #: ../tools/virt-tar.pl:39
41535 #, no-wrap
41536 msgid ""
41537 " virt-tar [--options] -u domname tarball directory\n"
41538 "\n"
41539 msgstr ""
41540
41541 #. type: verbatim
41542 #: ../tools/virt-tar.pl:41
41543 #, no-wrap
41544 msgid ""
41545 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41546 "\n"
41547 msgstr ""
41548
41549 #. type: verbatim
41550 #: ../tools/virt-tar.pl:43
41551 #, no-wrap
41552 msgid ""
41553 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41554 "\n"
41555 msgstr ""
41556
41557 #. type: =head2
41558 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41559 msgid "NOTE"
41560 msgstr ""
41561
41562 #. type: textblock
41563 #: ../tools/virt-tar.pl:47
41564 msgid ""
41565 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
41566 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
41567 msgstr ""
41568
41569 #. type: textblock
41570 #: ../tools/virt-tar.pl:52
41571 msgid "Download C</home> from the VM into a local tarball:"
41572 msgstr ""
41573
41574 #. type: verbatim
41575 #: ../tools/virt-tar.pl:54
41576 #, no-wrap
41577 msgid ""
41578 " virt-tar -x domname /home home.tar\n"
41579 "\n"
41580 msgstr ""
41581
41582 #. type: verbatim
41583 #: ../tools/virt-tar.pl:56
41584 #, no-wrap
41585 msgid ""
41586 " virt-tar -zx domname /home home.tar.gz\n"
41587 "\n"
41588 msgstr ""
41589
41590 #. type: textblock
41591 #: ../tools/virt-tar.pl:58
41592 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41593 msgstr ""
41594
41595 #. type: verbatim
41596 #: ../tools/virt-tar.pl:60
41597 #, no-wrap
41598 msgid ""
41599 " virt-tar -u domname uploadstuff.tar /tmp\n"
41600 "\n"
41601 msgstr ""
41602
41603 #. type: verbatim
41604 #: ../tools/virt-tar.pl:62
41605 #, no-wrap
41606 msgid ""
41607 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41608 "\n"
41609 msgstr ""
41610
41611 #. type: textblock
41612 #: ../tools/virt-tar.pl:66
41613 msgid ""
41614 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41615 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41616 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41617 msgstr ""
41618
41619 #. type: textblock
41620 #: ../tools/virt-tar.pl:71
41621 msgid ""
41622 "You can use I<-x> (extract) on live virtual machines, but you might get "
41623 "inconsistent results or errors if there is filesystem activity inside the "
41624 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41625 "work, but the only way to guarantee consistent results is if the virtual "
41626 "machine is shut down."
41627 msgstr ""
41628
41629 #. type: textblock
41630 #: ../tools/virt-tar.pl:79
41631 msgid ""
41632 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41633 "parts of a guest filesystem.  There are many possibilities: making backups, "
41634 "uploading data files, snooping on guest activity, fixing or customizing "
41635 "guests, etc."
41636 msgstr ""
41637
41638 #. type: textblock
41639 #: ../tools/virt-tar.pl:84
41640 msgid ""
41641 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41642 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41643 "should look at the L<guestfish(1)> tool."
41644 msgstr ""
41645
41646 #. type: textblock
41647 #: ../tools/virt-tar.pl:88
41648 msgid ""
41649 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41650 "its contents (recursively) from the virtual machine into a local tarball.  "
41651 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41652 "virtual machine.  You cannot use these two options together."
41653 msgstr ""
41654
41655 #. type: textblock
41656 #: ../tools/virt-tar.pl:94
41657 msgid ""
41658 "In addition, you may need to use the I<-z> (gZip) option to enable "
41659 "compression.  When uploading, you have to specify I<-z> if the upload file "
41660 "is compressed because virt-tar won't detect this on its own."
41661 msgstr ""
41662
41663 #. type: textblock
41664 #: ../tools/virt-tar.pl:98
41665 msgid ""
41666 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41667 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41668 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41669 "the L<libguestfs(3)> API)."
41670 msgstr ""
41671
41672 #. type: =item
41673 #: ../tools/virt-tar.pl:160
41674 msgid "B<--extract>"
41675 msgstr ""
41676
41677 #. type: =item
41678 #: ../tools/virt-tar.pl:162
41679 msgid "B<--download>"
41680 msgstr ""
41681
41682 #. type: =item
41683 #: ../tools/virt-tar.pl:164
41684 msgid "B<-u>"
41685 msgstr ""
41686
41687 #. type: =item
41688 #: ../tools/virt-tar.pl:166
41689 msgid "B<--upload>"
41690 msgstr ""
41691
41692 #. type: textblock
41693 #: ../tools/virt-tar.pl:168
41694 msgid ""
41695 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41696 "local tarball."
41697 msgstr ""
41698
41699 #. type: textblock
41700 #: ../tools/virt-tar.pl:171
41701 msgid ""
41702 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41703 "Please read the L</WARNING> section above before using this option."
41704 msgstr ""
41705
41706 #. type: textblock
41707 #: ../tools/virt-tar.pl:175
41708 msgid "You must specify exactly one of these options."
41709 msgstr ""
41710
41711 #. type: =item
41712 #: ../tools/virt-tar.pl:181
41713 msgid "B<-z>"
41714 msgstr ""
41715
41716 #. type: =item
41717 #: ../tools/virt-tar.pl:183
41718 msgid "B<--gzip>"
41719 msgstr ""
41720
41721 #. type: textblock
41722 #: ../tools/virt-tar.pl:185
41723 msgid "Specify that the input or output tarball is gzip-compressed."
41724 msgstr ""
41725
41726 #. type: textblock
41727 #: ../tools/virt-tar.pl:298
41728 msgid ""
41729 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
41730 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41731 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
41732 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41733 msgstr ""
41734
41735 #. type: textblock
41736 #: ../tools/virt-win-reg.pl:37
41737 msgid ""
41738 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
41739 "guest"
41740 msgstr ""
41741
41742 #. type: verbatim
41743 #: ../tools/virt-win-reg.pl:41
41744 #, no-wrap
41745 msgid ""
41746 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41747 "\n"
41748 msgstr ""
41749
41750 #. type: verbatim
41751 #: ../tools/virt-win-reg.pl:43
41752 #, no-wrap
41753 msgid ""
41754 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41755 "\n"
41756 msgstr ""
41757
41758 #. type: verbatim
41759 #: ../tools/virt-win-reg.pl:45
41760 #, no-wrap
41761 msgid ""
41762 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41763 "\n"
41764 msgstr ""
41765
41766 #. type: verbatim
41767 #: ../tools/virt-win-reg.pl:47
41768 #, no-wrap
41769 msgid ""
41770 " virt-win-reg --merge domname [input.reg ...]\n"
41771 "\n"
41772 msgstr ""
41773
41774 #. type: verbatim
41775 #: ../tools/virt-win-reg.pl:49
41776 #, no-wrap
41777 msgid ""
41778 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41779 "\n"
41780 msgstr ""
41781
41782 #. type: textblock
41783 #: ../tools/virt-win-reg.pl:53
41784 msgid ""
41785 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41786 "virtual machines.  If you do this, you I<will> get irreversible disk "
41787 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41788 "but doesn't catch all cases."
41789 msgstr ""
41790
41791 #. type: textblock
41792 #: ../tools/virt-win-reg.pl:58
41793 msgid ""
41794 "Modifying the Windows Registry is an inherently risky operation.  The format "
41795 "is deliberately obscure and undocumented, and Registry changes can leave the "
41796 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41797 "you have a reliable backup first."
41798 msgstr ""
41799
41800 #. type: textblock
41801 #: ../tools/virt-win-reg.pl:65
41802 msgid ""
41803 "This program can export and merge Windows Registry entries from a Windows "
41804 "guest."
41805 msgstr ""
41806
41807 #. type: textblock
41808 #: ../tools/virt-win-reg.pl:68
41809 msgid ""
41810 "The first parameter is the libvirt guest name or the raw disk image of a "
41811 "Windows guest."
41812 msgstr ""
41813
41814 #. type: textblock
41815 #: ../tools/virt-win-reg.pl:71
41816 msgid ""
41817 "If I<--merge> is I<not> specified, then the chosen registry key is "
41818 "displayed/exported (recursively).  For example:"
41819 msgstr ""
41820
41821 #. type: verbatim
41822 #: ../tools/virt-win-reg.pl:74
41823 #, no-wrap
41824 msgid ""
41825 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41826 "\n"
41827 msgstr ""
41828
41829 #. type: textblock
41830 #: ../tools/virt-win-reg.pl:76
41831 msgid "You can also display single values from within registry keys, for example:"
41832 msgstr ""
41833
41834 #. type: verbatim
41835 #: ../tools/virt-win-reg.pl:79
41836 #, no-wrap
41837 msgid ""
41838 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41839 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41840 " Windows 7 Enterprise\n"
41841 "\n"
41842 msgstr ""
41843
41844 #. type: textblock
41845 #: ../tools/virt-win-reg.pl:83
41846 msgid ""
41847 "With I<--merge>, you can merge a textual regedit file into the Windows "
41848 "Registry:"
41849 msgstr ""
41850
41851 #. type: verbatim
41852 #: ../tools/virt-win-reg.pl:86
41853 #, no-wrap
41854 msgid ""
41855 " $ virt-win-reg --merge Windows7 changes.reg\n"
41856 "\n"
41857 msgstr ""
41858
41859 #. type: textblock
41860 #: ../tools/virt-win-reg.pl:90
41861 msgid ""
41862 "This program is only meant for simple access to the registry.  If you want "
41863 "to do complicated things with the registry, we suggest you download the "
41864 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41865 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41866 "L<hivexregedit(1)>."
41867 msgstr ""
41868
41869 #. type: =item
41870 #: ../tools/virt-win-reg.pl:159
41871 msgid "B<--merge>"
41872 msgstr ""
41873
41874 #. type: textblock
41875 #: ../tools/virt-win-reg.pl:161
41876 msgid ""
41877 "In merge mode, this merges a textual regedit file into the Windows Registry "
41878 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41879 "displays or exports Registry entries instead."
41880 msgstr ""
41881
41882 #. type: textblock
41883 #: ../tools/virt-win-reg.pl:165
41884 msgid ""
41885 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41886 "result in disk corruption.  However exporting (without this flag)  is always "
41887 "safe."
41888 msgstr ""
41889
41890 #. type: =item
41891 #: ../tools/virt-win-reg.pl:173
41892 msgid "B<--encoding> UTF-16LE|ASCII"
41893 msgstr ""
41894
41895 #. type: textblock
41896 #: ../tools/virt-win-reg.pl:175
41897 msgid ""
41898 "When merging (only), you may need to specify the encoding for strings to be "
41899 "used in the hive file.  This is explained in detail in "
41900 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
41901 msgstr ""
41902
41903 #. type: textblock
41904 #: ../tools/virt-win-reg.pl:179
41905 msgid ""
41906 "The default is to use UTF-16LE, which should work with recent versions of "
41907 "Windows."
41908 msgstr ""
41909
41910 #. type: =item
41911 #: ../tools/virt-win-reg.pl:186
41912 msgid "B<--unsafe-printable-strings>"
41913 msgstr ""
41914
41915 #. type: textblock
41916 #: ../tools/virt-win-reg.pl:188
41917 msgid ""
41918 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41919 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41920 "present."
41921 msgstr ""
41922
41923 #. type: textblock
41924 #: ../tools/virt-win-reg.pl:192
41925 msgid ""
41926 "This is unsafe and does not preserve the fidelity of strings in the original "
41927 "Registry for various reasons:"
41928 msgstr ""
41929
41930 #. type: textblock
41931 #: ../tools/virt-win-reg.pl:199
41932 msgid ""
41933 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41934 "other encodings will be corrupted by this transformation."
41935 msgstr ""
41936
41937 #. type: textblock
41938 #: ../tools/virt-win-reg.pl:204
41939 msgid ""
41940 "Assumes that everything which has type 1 or 2 is really a string and that "
41941 "everything else is not a string, but the type field in real Registries is "
41942 "not reliable."
41943 msgstr ""
41944
41945 #. type: textblock
41946 #: ../tools/virt-win-reg.pl:210
41947 msgid ""
41948 "Loses information about whether a zero codepoint followed the string in the "
41949 "Registry or not."
41950 msgstr ""
41951
41952 #. type: textblock
41953 #: ../tools/virt-win-reg.pl:215
41954 msgid ""
41955 "This all happens because the Registry itself contains no information about "
41956 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41957 msgstr ""
41958
41959 #. type: textblock
41960 #: ../tools/virt-win-reg.pl:219
41961 msgid ""
41962 "You should only use this option for quick hacking and debugging of the "
41963 "Registry contents, and I<never> use it if the output is going to be passed "
41964 "into another program or stored in another Registry."
41965 msgstr ""
41966
41967 #. type: =head1
41968 #: ../tools/virt-win-reg.pl:556
41969 msgid "SUPPORTED SYSTEMS"
41970 msgstr ""
41971
41972 #. type: textblock
41973 #: ../tools/virt-win-reg.pl:558
41974 msgid ""
41975 "The program currently supports Windows NT-derived guests starting with "
41976 "Windows XP through to at least Windows 7."
41977 msgstr ""
41978
41979 #. type: textblock
41980 #: ../tools/virt-win-reg.pl:561
41981 msgid "The following Registry keys are supported:"
41982 msgstr ""
41983
41984 #. type: =item
41985 #: ../tools/virt-win-reg.pl:565
41986 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41987 msgstr ""
41988
41989 #. type: =item
41990 #: ../tools/virt-win-reg.pl:567
41991 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41992 msgstr ""
41993
41994 #. type: =item
41995 #: ../tools/virt-win-reg.pl:569
41996 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41997 msgstr ""
41998
41999 #. type: =item
42000 #: ../tools/virt-win-reg.pl:571
42001 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42002 msgstr ""
42003
42004 #. type: =item
42005 #: ../tools/virt-win-reg.pl:573
42006 msgid "C<HKEY_USERS\\.DEFAULT>"
42007 msgstr ""
42008
42009 #. type: =item
42010 #: ../tools/virt-win-reg.pl:575
42011 msgid "C<HKEY_USERS\\I<SID>>"
42012 msgstr ""
42013
42014 #. type: textblock
42015 #: ../tools/virt-win-reg.pl:577
42016 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42017 msgstr ""
42018
42019 #. type: =item
42020 #: ../tools/virt-win-reg.pl:579
42021 msgid "C<HKEY_USERS\\I<username>>"
42022 msgstr ""
42023
42024 #. type: textblock
42025 #: ../tools/virt-win-reg.pl:581
42026 msgid "where I<username> is a local user name (this is a libguestfs extension)."
42027 msgstr ""
42028
42029 #. type: textblock
42030 #: ../tools/virt-win-reg.pl:585
42031 msgid ""
42032 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42033 "C<HKEY_USERS>."
42034 msgstr ""
42035
42036 #. type: textblock
42037 #: ../tools/virt-win-reg.pl:588
42038 msgid ""
42039 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42040 "supported (there is no \"current user\")."
42041 msgstr ""
42042
42043 #. type: =head1
42044 #: ../tools/virt-win-reg.pl:591
42045 msgid "ENCODING"
42046 msgstr ""
42047
42048 #. type: textblock
42049 #: ../tools/virt-win-reg.pl:593
42050 msgid ""
42051 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42052 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
42053 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
42054 "with Windows-style line endings, you may need to reencode the whole file "
42055 "before or after processing."
42056 msgstr ""
42057
42058 #. type: textblock
42059 #: ../tools/virt-win-reg.pl:599
42060 msgid ""
42061 "To reencode a file from Windows format to Linux (before processing it with "
42062 "the I<--merge> option), you would do something like this:"
42063 msgstr ""
42064
42065 #. type: verbatim
42066 #: ../tools/virt-win-reg.pl:602
42067 #, no-wrap
42068 msgid ""
42069 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42070 "\n"
42071 msgstr ""
42072
42073 #. type: textblock
42074 #: ../tools/virt-win-reg.pl:604
42075 msgid ""
42076 "To go in the opposite direction, after exporting and before sending the file "
42077 "to a Windows user, do something like this:"
42078 msgstr ""
42079
42080 #. type: verbatim
42081 #: ../tools/virt-win-reg.pl:607
42082 #, no-wrap
42083 msgid ""
42084 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42085 "\n"
42086 msgstr ""
42087
42088 #. type: textblock
42089 #: ../tools/virt-win-reg.pl:609
42090 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42091 msgstr ""
42092
42093 #. type: textblock
42094 #: ../tools/virt-win-reg.pl:611
42095 msgid ""
42096 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42097 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
42098 "Windows-style (CRLF) line endings, like this:"
42099 msgstr ""
42100
42101 #. type: verbatim
42102 #: ../tools/virt-win-reg.pl:615
42103 #, no-wrap
42104 msgid ""
42105 " $ file software.reg\n"
42106 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42107 " with CRLF line terminators\n"
42108 "\n"
42109 msgstr ""
42110
42111 #. type: textblock
42112 #: ../tools/virt-win-reg.pl:619
42113 msgid "This file would need conversion before you could I<--merge> it."
42114 msgstr ""
42115
42116 #. type: =head1
42117 #: ../tools/virt-win-reg.pl:621
42118 msgid "CurrentControlSet etc."
42119 msgstr ""
42120
42121 #. type: textblock
42122 #: ../tools/virt-win-reg.pl:623
42123 msgid ""
42124 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42125 "Registry at the level of the hive file, and therefore you cannot modify "
42126 "these."
42127 msgstr ""
42128
42129 #. type: textblock
42130 #: ../tools/virt-win-reg.pl:627
42131 msgid ""
42132 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42133 "circumstances it might refer to another control set.  The way to find out is "
42134 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42135 msgstr ""
42136
42137 #. type: verbatim
42138 #: ../tools/virt-win-reg.pl:631
42139 #, no-wrap
42140 msgid ""
42141 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42142 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42143 " \"Current\"=dword:00000001\n"
42144 " \"Default\"=dword:00000001\n"
42145 " \"Failed\"=dword:00000000\n"
42146 " \"LastKnownGood\"=dword:00000002\n"
42147 "\n"
42148 msgstr ""
42149
42150 #. type: textblock
42151 #: ../tools/virt-win-reg.pl:638
42152 msgid "\"Current\" is the one which Windows will choose when it boots."
42153 msgstr ""
42154
42155 #. type: textblock
42156 #: ../tools/virt-win-reg.pl:640
42157 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
42158 msgstr ""
42159
42160 #. type: =head1
42161 #: ../tools/virt-win-reg.pl:643
42162 msgid "DELETING REGISTRY KEYS AND VALUES"
42163 msgstr ""
42164
42165 #. type: textblock
42166 #: ../tools/virt-win-reg.pl:645
42167 msgid "To delete a whole registry key, use the syntax:"
42168 msgstr ""
42169
42170 #. type: verbatim
42171 #: ../tools/virt-win-reg.pl:647
42172 #, no-wrap
42173 msgid ""
42174 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42175 "\n"
42176 msgstr ""
42177
42178 #. type: textblock
42179 #: ../tools/virt-win-reg.pl:649
42180 msgid "To delete a single value within a key, use the syntax:"
42181 msgstr ""
42182
42183 #. type: verbatim
42184 #: ../tools/virt-win-reg.pl:651
42185 #, no-wrap
42186 msgid ""
42187 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42188 " \"Value\"=-\n"
42189 "\n"
42190 msgstr ""
42191
42192 #. type: =head1
42193 #: ../tools/virt-win-reg.pl:654
42194 msgid "WINDOWS TIPS"
42195 msgstr ""
42196
42197 #. type: textblock
42198 #: ../tools/virt-win-reg.pl:656
42199 msgid ""
42200 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42201 "be shut off, else you will get disk corruption."
42202 msgstr ""
42203
42204 #. type: =head2
42205 #: ../tools/virt-win-reg.pl:659
42206 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42207 msgstr ""
42208
42209 #. type: textblock
42210 #: ../tools/virt-win-reg.pl:661
42211 msgid ""
42212 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42213 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42214 "is uploaded into C<C:\\>:"
42215 msgstr ""
42216
42217 #. type: verbatim
42218 #: ../tools/virt-win-reg.pl:665
42219 #, no-wrap
42220 msgid ""
42221 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42222 "\n"
42223 msgstr ""
42224
42225 #. type: textblock
42226 #: ../tools/virt-win-reg.pl:667
42227 msgid "Prepare a regedit file containing the registry change:"
42228 msgstr ""
42229
42230 #. type: verbatim
42231 #: ../tools/virt-win-reg.pl:669
42232 #, no-wrap
42233 msgid ""
42234 " cat > test.reg <<'EOF'\n"
42235 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42236 " \"Test\"=\"c:\\\\test.bat\"\n"
42237 " EOF\n"
42238 "\n"
42239 msgstr ""
42240
42241 #. type: textblock
42242 #: ../tools/virt-win-reg.pl:674
42243 msgid ""
42244 "In this example we use the key C<RunOnce> which means that the script will "
42245 "run precisely once when the first user logs in.  If you want it to run every "
42246 "time a user logs in, replace C<RunOnce> with C<Run>."
42247 msgstr ""
42248
42249 #. type: textblock
42250 #: ../tools/virt-win-reg.pl:678
42251 msgid "Now update the registry:"
42252 msgstr ""
42253
42254 #. type: verbatim
42255 #: ../tools/virt-win-reg.pl:680
42256 #, no-wrap
42257 msgid ""
42258 " virt-win-reg --merge WindowsGuest test.reg\n"
42259 "\n"
42260 msgstr ""
42261
42262 #. type: =head2
42263 #: ../tools/virt-win-reg.pl:682
42264 msgid "INSTALLING A SERVICE"
42265 msgstr ""
42266
42267 #. type: textblock
42268 #: ../tools/virt-win-reg.pl:684
42269 msgid ""
42270 "This section assumes you are familiar with Windows services, and you either "
42271 "have a program which handles the Windows Service Control Protocol directly "
42272 "or you want to run any program using a service wrapper like SrvAny or the "
42273 "free RHSrvAny."
42274 msgstr ""
42275
42276 #. type: textblock
42277 #: ../tools/virt-win-reg.pl:689
42278 msgid ""
42279 "First upload the program and optionally the service wrapper.  In this case "
42280 "the test program is called C<test.exe> and we are using the RHSrvAny "
42281 "wrapper:"
42282 msgstr ""
42283
42284 #. type: verbatim
42285 #: ../tools/virt-win-reg.pl:693
42286 #, no-wrap
42287 msgid ""
42288 " guestfish -i -d WindowsGuest <<EOF\n"
42289 "   upload rhsrvany.exe /rhsrvany.exe\n"
42290 "   upload test.exe /test.exe\n"
42291 " EOF\n"
42292 "\n"
42293 msgstr ""
42294
42295 #. type: textblock
42296 #: ../tools/virt-win-reg.pl:698
42297 msgid ""
42298 "Prepare a regedit file containing the registry changes.  In this example, "
42299 "the first registry change is needed for the service itself or the service "
42300 "wrapper (if used).  The second registry change is only needed because I am "
42301 "using the RHSrvAny service wrapper."
42302 msgstr ""
42303
42304 #. type: verbatim
42305 #: ../tools/virt-win-reg.pl:703
42306 #, no-wrap
42307 msgid ""
42308 " cat > service.reg <<'EOF'\n"
42309 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42310 " \"Type\"=dword:00000010\n"
42311 " \"Start\"=dword:00000002\n"
42312 " \"ErrorControl\"=dword:00000001\n"
42313 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42314 " \"DisplayName\"=\"RHSrvAny\"\n"
42315 " \"ObjectName\"=\"NetworkService\"\n"
42316 " \n"
42317 msgstr ""
42318
42319 #. type: verbatim
42320 #: ../tools/virt-win-reg.pl:712
42321 #, no-wrap
42322 msgid ""
42323 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42324 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42325 " \"PWD\"=\"c:\\\\Temp\"\n"
42326 " EOF\n"
42327 "\n"
42328 msgstr ""
42329
42330 #. type: textblock
42331 #: ../tools/virt-win-reg.pl:723
42332 msgid ""
42333 "For use of C<ControlSet001> see the section above in this manual page.  You "
42334 "may need to adjust this according to the control set that is in use by the "
42335 "guest."
42336 msgstr ""
42337
42338 #. type: textblock
42339 #: ../tools/virt-win-reg.pl:729
42340 msgid ""
42341 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42342 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42343 "privileged account."
42344 msgstr ""
42345
42346 #. type: textblock
42347 #: ../tools/virt-win-reg.pl:735
42348 msgid ""
42349 "For the meaning of the magic numbers, see this Microsoft KB article: "
42350 "L<http://support.microsoft.com/kb/103000>."
42351 msgstr ""
42352
42353 #. type: textblock
42354 #: ../tools/virt-win-reg.pl:740
42355 msgid "Update the registry:"
42356 msgstr ""
42357
42358 #. type: verbatim
42359 #: ../tools/virt-win-reg.pl:742
42360 #, no-wrap
42361 msgid ""
42362 " virt-win-reg --merge WindowsGuest service.reg\n"
42363 "\n"
42364 msgstr ""
42365
42366 #. type: textblock
42367 #: ../tools/virt-win-reg.pl:746
42368 msgid ""
42369 "Be careful when passing parameters containing C<\\> (backslash) in the "
42370 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42371 "(but not both) to protect them from the shell."
42372 msgstr ""
42373
42374 #. type: textblock
42375 #: ../tools/virt-win-reg.pl:750
42376 msgid "Paths and value names are case-insensitive."
42377 msgstr ""
42378
42379 #. type: textblock
42380 #: ../tools/virt-win-reg.pl:759
42381 msgid ""
42382 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
42383 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
42384 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
42385 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42386 msgstr ""
42387
42388 #. type: verbatim
42389 #: ../tools/virt-win-reg.pl:777
42390 #, no-wrap
42391 msgid ""
42392 " export LIBGUESTFS_DEBUG=1\n"
42393 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42394 "\n"
42395 msgstr ""
42396
42397 #. type: textblock
42398 #: ../tools/virt-win-reg.pl:780
42399 msgid ""
42400 "Attach /tmp/virt-win-reg.log to a new bug report at "
42401 "L<https://bugzilla.redhat.com/>"
42402 msgstr ""