Version 1.15.4.
[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.4\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-17 13:11+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 ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 ../tools/virt-win-reg.pl:35
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../align/virt-alignment-scan.pod:5
27 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
28 msgstr ""
29
30 #. type: =head1
31 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 ../tools/virt-win-reg.pl:39
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../align/virt-alignment-scan.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-alignment-scan [--options] -d domname\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../align/virt-alignment-scan.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: =head1
52 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16 ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod: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:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337 ../src/guestfs.pod:3341 ../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 ../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 ../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:3352 ../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
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
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
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
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
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
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 ../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:3348 ../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 ../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:3350 ../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 ../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 ../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:3357
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 ../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:3362
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 ../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:3367
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
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: =head2
5260 #: ../fish/guestfish-actions.pod:1
5261 msgid "add-cdrom"
5262 msgstr ""
5263
5264 #. type: verbatim
5265 #: ../fish/guestfish-actions.pod:3
5266 #, no-wrap
5267 msgid ""
5268 " add-cdrom filename\n"
5269 "\n"
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5274 msgid "This function adds a virtual CD-ROM disk image to the guest."
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5279 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../fish/guestfish-actions.pod:15
5284 msgid ""
5285 "This call checks for the existence of C<filename>.  This stops you from "
5286 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5287 "and C<http:> URLs.  To specify those, use the general L</config> call "
5288 "instead."
5289 msgstr ""
5290
5291 #. type: textblock
5292 #: ../fish/guestfish-actions.pod:22
5293 msgid ""
5294 "If you just want to add an ISO file (often you use this as an efficient way "
5295 "to transfer large files into the guest), then you should probably use "
5296 "L</add-drive-ro> instead."
5297 msgstr ""
5298
5299 #. type: textblock
5300 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214 ../fish/guestfish-actions.pod:228
5301 msgid ""
5302 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5303 "instead."
5304 msgstr ""
5305
5306 #. type: textblock
5307 #: ../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
5308 msgid ""
5309 "Deprecated functions will not be removed from the API, but the fact that "
5310 "they are deprecated indicates that there are problems with correct use of "
5311 "these functions."
5312 msgstr ""
5313
5314 #. type: =head2
5315 #: ../fish/guestfish-actions.pod:35
5316 msgid "add-domain"
5317 msgstr ""
5318
5319 #. type: =head2
5320 #: ../fish/guestfish-actions.pod:37
5321 msgid "domain"
5322 msgstr ""
5323
5324 #. type: verbatim
5325 #: ../fish/guestfish-actions.pod:39
5326 #, no-wrap
5327 msgid ""
5328 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] "
5329 "[live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
5330 "\n"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../fish/guestfish-actions.pod:41
5335 msgid ""
5336 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5337 "It works by connecting to libvirt, requesting the domain and domain XML from "
5338 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5339 msgstr ""
5340
5341 #. type: textblock
5342 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5343 msgid ""
5344 "The number of disks added is returned.  This operation is atomic: if an "
5345 "error is returned, then no disks are added."
5346 msgstr ""
5347
5348 #. type: textblock
5349 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5350 msgid ""
5351 "This function does some minimal checks to make sure the libvirt domain is "
5352 "not running (unless C<readonly> is true).  In a future version we will try "
5353 "to acquire the libvirt lock on each disk."
5354 msgstr ""
5355
5356 #. type: textblock
5357 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5358 msgid ""
5359 "Disks must be accessible locally.  This often means that adding disks from a "
5360 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5361 "unless those disks are accessible via the same device path locally too."
5362 msgstr ""
5363
5364 #. type: textblock
5365 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5366 msgid ""
5367 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5368 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5369 "default libvirt URI (or one set through an environment variable, see the "
5370 "libvirt documentation for full details)."
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
5375 msgid ""
5376 "The optional C<live> flag controls whether this call will try to connect to "
5377 "a running virtual machine C<guestfsd> process if it sees a suitable "
5378 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5379 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5380 "DAEMONS> for more information."
5381 msgstr ""
5382
5383 #. type: textblock
5384 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
5385 msgid ""
5386 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5387 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5388 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5389 "as usual."
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
5394 msgid ""
5395 "The optional C<readonlydisk> parameter controls what we do for disks which "
5396 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
5397 msgstr ""
5398
5399 #. type: =item
5400 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
5401 msgid "readonlydisk = \"error\""
5402 msgstr ""
5403
5404 #. type: textblock
5405 #: ../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
5406 msgid "If C<readonly> is false:"
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
5411 msgid ""
5412 "The whole call is aborted with an error if any disk with the "
5413 "E<lt>readonly/E<gt> flag is found."
5414 msgstr ""
5415
5416 #. type: textblock
5417 #: ../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
5418 msgid "If C<readonly> is true:"
5419 msgstr ""
5420
5421 #. type: textblock
5422 #: ../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
5423 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
5424 msgstr ""
5425
5426 #. type: =item
5427 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
5428 msgid "readonlydisk = \"read\""
5429 msgstr ""
5430
5431 #. type: textblock
5432 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
5433 msgid ""
5434 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
5435 "are added read/write."
5436 msgstr ""
5437
5438 #. type: =item
5439 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
5440 msgid "readonlydisk = \"write\" (default)"
5441 msgstr ""
5442
5443 #. type: textblock
5444 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
5445 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
5446 msgstr ""
5447
5448 #. type: =item
5449 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
5450 msgid "readonlydisk = \"ignore\""
5451 msgstr ""
5452
5453 #. type: textblock
5454 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
5455 msgid "If C<readonly> is true or false:"
5456 msgstr ""
5457
5458 #. type: textblock
5459 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
5460 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
5461 msgstr ""
5462
5463 #. type: textblock
5464 #: ../fish/guestfish-actions.pod:122
5465 msgid ""
5466 "The other optional parameters are passed directly through to "
5467 "L</add-drive-opts>."
5468 msgstr ""
5469
5470 #. type: textblock
5471 #: ../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
5472 msgid ""
5473 "This command has one or more optional arguments.  See L</OPTIONAL "
5474 "ARGUMENTS>."
5475 msgstr ""
5476
5477 #. type: =head2
5478 #: ../fish/guestfish-actions.pod:127
5479 msgid "add-drive"
5480 msgstr ""
5481
5482 #. type: verbatim
5483 #: ../fish/guestfish-actions.pod:129
5484 #, no-wrap
5485 msgid ""
5486 " add-drive filename\n"
5487 "\n"
5488 msgstr ""
5489
5490 #. type: textblock
5491 #: ../fish/guestfish-actions.pod:131
5492 msgid ""
5493 "This function is the equivalent of calling L</add-drive-opts> with no "
5494 "optional parameters, so the disk is added writable, with the format being "
5495 "detected automatically."
5496 msgstr ""
5497
5498 #. type: textblock
5499 #: ../fish/guestfish-actions.pod:135
5500 msgid ""
5501 "Automatic detection of the format opens you up to a potential security hole "
5502 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5503 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5504 "you should think about replacing calls to this function with calls to "
5505 "L</add-drive-opts>, and specifying the format."
5506 msgstr ""
5507
5508 #. type: =head2
5509 #: ../fish/guestfish-actions.pod:142
5510 msgid "add-drive-opts"
5511 msgstr ""
5512
5513 #. type: =head2
5514 #: ../fish/guestfish-actions.pod:144
5515 msgid "add"
5516 msgstr ""
5517
5518 #. type: verbatim
5519 #: ../fish/guestfish-actions.pod:146
5520 #, no-wrap
5521 msgid ""
5522 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] "
5523 "[name:..]\n"
5524 "\n"
5525 msgstr ""
5526
5527 #. type: textblock
5528 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
5529 msgid ""
5530 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5531 "The first time you call this function, the disk appears as C</dev/sda>, the "
5532 "second time as C</dev/sdb>, and so on."
5533 msgstr ""
5534
5535 #. type: textblock
5536 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
5537 msgid ""
5538 "You don't necessarily need to be root when using libguestfs.  However you "
5539 "obviously do need sufficient permissions to access the filename for whatever "
5540 "operations you want to perform (ie. read access if you just want to read the "
5541 "image or write access if you want to modify the image)."
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
5546 msgid "This call checks that C<filename> exists."
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3392 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5262
5551 msgid "The optional arguments are:"
5552 msgstr ""
5553
5554 #. type: =item
5555 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
5556 msgid "C<readonly>"
5557 msgstr ""
5558
5559 #. type: textblock
5560 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
5561 msgid ""
5562 "If true then the image is treated as read-only.  Writes are still allowed, "
5563 "but they are stored in a temporary snapshot overlay which is discarded at "
5564 "the end.  The disk that you add is not modified."
5565 msgstr ""
5566
5567 #. type: =item
5568 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
5569 msgid "C<format>"
5570 msgstr ""
5571
5572 #. type: textblock
5573 #: ../fish/guestfish-actions.pod:173
5574 msgid ""
5575 "This forces the image format.  If you omit this (or use L</add-drive> or "
5576 "L</add-drive-ro>) then the format is automatically detected.  Possible "
5577 "formats include C<raw> and C<qcow2>."
5578 msgstr ""
5579
5580 #. type: textblock
5581 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
5582 msgid ""
5583 "Automatic detection of the format opens you up to a potential security hole "
5584 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5585 "RHBZ#642934.  Specifying the format closes this security hole."
5586 msgstr ""
5587
5588 #. type: =item
5589 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
5590 msgid "C<iface>"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:184
5595 msgid ""
5596 "This rarely-used option lets you emulate the behaviour of the deprecated "
5597 "L</add-drive-with-if> call (q.v.)"
5598 msgstr ""
5599
5600 #. type: =item
5601 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3242 ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:4994
5602 msgid "C<name>"
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
5607 msgid ""
5608 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
5609 "a hint to the guest inspection process if it is available."
5610 msgstr ""
5611
5612 #. type: =head2
5613 #: ../fish/guestfish-actions.pod:196
5614 msgid "add-drive-ro"
5615 msgstr ""
5616
5617 #. type: =head2
5618 #: ../fish/guestfish-actions.pod:198
5619 msgid "add-ro"
5620 msgstr ""
5621
5622 #. type: verbatim
5623 #: ../fish/guestfish-actions.pod:200
5624 #, no-wrap
5625 msgid ""
5626 " add-drive-ro filename\n"
5627 "\n"
5628 msgstr ""
5629
5630 #. type: textblock
5631 #: ../fish/guestfish-actions.pod:202
5632 msgid ""
5633 "This function is the equivalent of calling L</add-drive-opts> with the "
5634 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5635 "is added read-only, with the format being detected automatically."
5636 msgstr ""
5637
5638 #. type: =head2
5639 #: ../fish/guestfish-actions.pod:207
5640 msgid "add-drive-ro-with-if"
5641 msgstr ""
5642
5643 #. type: verbatim
5644 #: ../fish/guestfish-actions.pod:209
5645 #, no-wrap
5646 msgid ""
5647 " add-drive-ro-with-if filename iface\n"
5648 "\n"
5649 msgstr ""
5650
5651 #. type: textblock
5652 #: ../fish/guestfish-actions.pod:211
5653 msgid ""
5654 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5655 "interface emulation to use at run time."
5656 msgstr ""
5657
5658 #. type: =head2
5659 #: ../fish/guestfish-actions.pod:221
5660 msgid "add-drive-with-if"
5661 msgstr ""
5662
5663 #. type: verbatim
5664 #: ../fish/guestfish-actions.pod:223
5665 #, no-wrap
5666 msgid ""
5667 " add-drive-with-if filename iface\n"
5668 "\n"
5669 msgstr ""
5670
5671 #. type: textblock
5672 #: ../fish/guestfish-actions.pod:225
5673 msgid ""
5674 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5675 "interface emulation to use at run time."
5676 msgstr ""
5677
5678 #. type: =head2
5679 #: ../fish/guestfish-actions.pod:235
5680 msgid "aug-clear"
5681 msgstr ""
5682
5683 #. type: verbatim
5684 #: ../fish/guestfish-actions.pod:237
5685 #, no-wrap
5686 msgid ""
5687 " aug-clear augpath\n"
5688 "\n"
5689 msgstr ""
5690
5691 #. type: textblock
5692 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
5693 msgid ""
5694 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5695 "L<augtool(1)> C<clear> command."
5696 msgstr ""
5697
5698 #. type: =head2
5699 #: ../fish/guestfish-actions.pod:242
5700 msgid "aug-close"
5701 msgstr ""
5702
5703 #. type: verbatim
5704 #: ../fish/guestfish-actions.pod:244
5705 #, no-wrap
5706 msgid ""
5707 " aug-close\n"
5708 "\n"
5709 msgstr ""
5710
5711 #. type: textblock
5712 #: ../fish/guestfish-actions.pod:246
5713 msgid ""
5714 "Close the current Augeas handle and free up any resources used by it.  After "
5715 "calling this, you have to call L</aug-init> again before you can use any "
5716 "other Augeas functions."
5717 msgstr ""
5718
5719 #. type: =head2
5720 #: ../fish/guestfish-actions.pod:251
5721 msgid "aug-defnode"
5722 msgstr ""
5723
5724 #. type: verbatim
5725 #: ../fish/guestfish-actions.pod:253
5726 #, no-wrap
5727 msgid ""
5728 " aug-defnode name expr val\n"
5729 "\n"
5730 msgstr ""
5731
5732 #. type: textblock
5733 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
5734 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../fish/guestfish-actions.pod:258
5739 msgid ""
5740 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5741 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5742 "containing that single node."
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
5747 msgid ""
5748 "On success this returns a pair containing the number of nodes in the "
5749 "nodeset, and a boolean flag if a node was created."
5750 msgstr ""
5751
5752 #. type: =head2
5753 #: ../fish/guestfish-actions.pod:266
5754 msgid "aug-defvar"
5755 msgstr ""
5756
5757 #. type: verbatim
5758 #: ../fish/guestfish-actions.pod:268
5759 #, no-wrap
5760 msgid ""
5761 " aug-defvar name expr\n"
5762 "\n"
5763 msgstr ""
5764
5765 #. type: textblock
5766 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
5767 msgid ""
5768 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5769 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5770 msgstr ""
5771
5772 #. type: textblock
5773 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
5774 msgid ""
5775 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5776 "evaluates to something which is not a nodeset."
5777 msgstr ""
5778
5779 #. type: =head2
5780 #: ../fish/guestfish-actions.pod:277
5781 msgid "aug-get"
5782 msgstr ""
5783
5784 #. type: verbatim
5785 #: ../fish/guestfish-actions.pod:279
5786 #, no-wrap
5787 msgid ""
5788 " aug-get augpath\n"
5789 "\n"
5790 msgstr ""
5791
5792 #. type: textblock
5793 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
5794 msgid ""
5795 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5796 "node, the C<value> is returned."
5797 msgstr ""
5798
5799 #. type: =head2
5800 #: ../fish/guestfish-actions.pod:284
5801 msgid "aug-init"
5802 msgstr ""
5803
5804 #. type: verbatim
5805 #: ../fish/guestfish-actions.pod:286
5806 #, no-wrap
5807 msgid ""
5808 " aug-init root flags\n"
5809 "\n"
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
5814 msgid ""
5815 "Create a new Augeas handle for editing configuration files.  If there was "
5816 "any previous Augeas handle associated with this guestfs session, then it is "
5817 "closed."
5818 msgstr ""
5819
5820 #. type: textblock
5821 #: ../fish/guestfish-actions.pod:292
5822 msgid "You must call this before using any other L</aug-*> commands."
5823 msgstr ""
5824
5825 #. type: textblock
5826 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
5827 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5828 msgstr ""
5829
5830 #. type: textblock
5831 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
5832 msgid ""
5833 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5834 "logical I<or> of the following integers:"
5835 msgstr ""
5836
5837 #. type: =item
5838 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
5839 msgid "C<AUG_SAVE_BACKUP> = 1"
5840 msgstr ""
5841
5842 #. type: textblock
5843 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
5844 msgid "Keep the original file with a C<.augsave> extension."
5845 msgstr ""
5846
5847 #. type: =item
5848 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
5849 msgid "C<AUG_SAVE_NEWFILE> = 2"
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
5854 msgid ""
5855 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5856 "original.  Overrides C<AUG_SAVE_BACKUP>."
5857 msgstr ""
5858
5859 #. type: =item
5860 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
5861 msgid "C<AUG_TYPE_CHECK> = 4"
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
5866 msgid "Typecheck lenses."
5867 msgstr ""
5868
5869 #. type: textblock
5870 #: ../fish/guestfish-actions.pod:317
5871 msgid ""
5872 "This option is only useful when debugging Augeas lenses.  Use of this option "
5873 "may require additional memory for the libguestfs appliance.  You may need to "
5874 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5875 msgstr ""
5876
5877 #. type: =item
5878 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
5879 msgid "C<AUG_NO_STDINC> = 8"
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
5884 msgid "Do not use standard load path for modules."
5885 msgstr ""
5886
5887 #. type: =item
5888 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
5889 msgid "C<AUG_SAVE_NOOP> = 16"
5890 msgstr ""
5891
5892 #. type: textblock
5893 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
5894 msgid "Make save a no-op, just record what would have been changed."
5895 msgstr ""
5896
5897 #. type: =item
5898 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
5899 msgid "C<AUG_NO_LOAD> = 32"
5900 msgstr ""
5901
5902 #. type: textblock
5903 #: ../fish/guestfish-actions.pod:332
5904 msgid "Do not load the tree in L</aug-init>."
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../fish/guestfish-actions.pod:336
5909 msgid "To close the handle, you can call L</aug-close>."
5910 msgstr ""
5911
5912 #. type: textblock
5913 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
5914 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5915 msgstr ""
5916
5917 #. type: =head2
5918 #: ../fish/guestfish-actions.pod:340
5919 msgid "aug-insert"
5920 msgstr ""
5921
5922 #. type: verbatim
5923 #: ../fish/guestfish-actions.pod:342
5924 #, no-wrap
5925 msgid ""
5926 " aug-insert augpath label true|false\n"
5927 "\n"
5928 msgstr ""
5929
5930 #. type: textblock
5931 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
5932 msgid ""
5933 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5934 "or after C<path> (depending on the boolean flag C<before>)."
5935 msgstr ""
5936
5937 #. type: textblock
5938 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
5939 msgid ""
5940 "C<path> must match exactly one existing node in the tree, and C<label> must "
5941 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5942 msgstr ""
5943
5944 #. type: =head2
5945 #: ../fish/guestfish-actions.pod:352
5946 msgid "aug-load"
5947 msgstr ""
5948
5949 #. type: verbatim
5950 #: ../fish/guestfish-actions.pod:354
5951 #, no-wrap
5952 msgid ""
5953 " aug-load\n"
5954 "\n"
5955 msgstr ""
5956
5957 #. type: textblock
5958 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
5959 msgid "Load files into the tree."
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
5964 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5965 msgstr ""
5966
5967 #. type: =head2
5968 #: ../fish/guestfish-actions.pod:361
5969 msgid "aug-ls"
5970 msgstr ""
5971
5972 #. type: verbatim
5973 #: ../fish/guestfish-actions.pod:363
5974 #, no-wrap
5975 msgid ""
5976 " aug-ls augpath\n"
5977 "\n"
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:365
5982 msgid ""
5983 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5984 "resulting nodes into alphabetical order."
5985 msgstr ""
5986
5987 #. type: =head2
5988 #: ../fish/guestfish-actions.pod:368
5989 msgid "aug-match"
5990 msgstr ""
5991
5992 #. type: verbatim
5993 #: ../fish/guestfish-actions.pod:370
5994 #, no-wrap
5995 msgid ""
5996 " aug-match augpath\n"
5997 "\n"
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6002 msgid ""
6003 "Returns a list of paths which match the path expression C<path>.  The "
6004 "returned paths are sufficiently qualified so that they match exactly one "
6005 "node in the current tree."
6006 msgstr ""
6007
6008 #. type: =head2
6009 #: ../fish/guestfish-actions.pod:376
6010 msgid "aug-mv"
6011 msgstr ""
6012
6013 #. type: verbatim
6014 #: ../fish/guestfish-actions.pod:378
6015 #, no-wrap
6016 msgid ""
6017 " aug-mv src dest\n"
6018 "\n"
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6023 msgid ""
6024 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6025 "C<dest> is overwritten if it exists."
6026 msgstr ""
6027
6028 #. type: =head2
6029 #: ../fish/guestfish-actions.pod:383
6030 msgid "aug-rm"
6031 msgstr ""
6032
6033 #. type: verbatim
6034 #: ../fish/guestfish-actions.pod:385
6035 #, no-wrap
6036 msgid ""
6037 " aug-rm augpath\n"
6038 "\n"
6039 msgstr ""
6040
6041 #. type: textblock
6042 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6043 msgid "Remove C<path> and all of its children."
6044 msgstr ""
6045
6046 #. type: textblock
6047 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6048 msgid "On success this returns the number of entries which were removed."
6049 msgstr ""
6050
6051 #. type: =head2
6052 #: ../fish/guestfish-actions.pod:391
6053 msgid "aug-save"
6054 msgstr ""
6055
6056 #. type: verbatim
6057 #: ../fish/guestfish-actions.pod:393
6058 #, no-wrap
6059 msgid ""
6060 " aug-save\n"
6061 "\n"
6062 msgstr ""
6063
6064 #. type: textblock
6065 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6066 msgid "This writes all pending changes to disk."
6067 msgstr ""
6068
6069 #. type: textblock
6070 #: ../fish/guestfish-actions.pod:397
6071 msgid ""
6072 "The flags which were passed to L</aug-init> affect exactly how files are "
6073 "saved."
6074 msgstr ""
6075
6076 #. type: =head2
6077 #: ../fish/guestfish-actions.pod:400
6078 msgid "aug-set"
6079 msgstr ""
6080
6081 #. type: verbatim
6082 #: ../fish/guestfish-actions.pod:402
6083 #, no-wrap
6084 msgid ""
6085 " aug-set augpath val\n"
6086 "\n"
6087 msgstr ""
6088
6089 #. type: textblock
6090 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6091 msgid "Set the value associated with C<path> to C<val>."
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../fish/guestfish-actions.pod:406
6096 msgid ""
6097 "In the Augeas API, it is possible to clear a node by setting the value to "
6098 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6099 "this call.  Instead you must use the L</aug-clear> call."
6100 msgstr ""
6101
6102 #. type: =head2
6103 #: ../fish/guestfish-actions.pod:411
6104 msgid "available"
6105 msgstr ""
6106
6107 #. type: verbatim
6108 #: ../fish/guestfish-actions.pod:413
6109 #, no-wrap
6110 msgid ""
6111 " available 'groups ...'\n"
6112 "\n"
6113 msgstr ""
6114
6115 #. type: textblock
6116 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6117 msgid ""
6118 "This command is used to check the availability of some groups of "
6119 "functionality in the appliance, which not all builds of the libguestfs "
6120 "appliance will be able to provide."
6121 msgstr ""
6122
6123 #. type: textblock
6124 #: ../fish/guestfish-actions.pod:419
6125 msgid ""
6126 "The libguestfs groups, and the functions that those groups correspond to, "
6127 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6128 "runtime by calling L</available-all-groups>."
6129 msgstr ""
6130
6131 #. type: textblock
6132 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6133 msgid ""
6134 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6135 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6136 "and Augeas (configuration file editing) functions."
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6141 msgid "The command returns no error if I<all> requested groups are available."
6142 msgstr ""
6143
6144 #. type: textblock
6145 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6146 msgid ""
6147 "It fails with an error if one or more of the requested groups is unavailable "
6148 "in the appliance."
6149 msgstr ""
6150
6151 #. type: textblock
6152 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6153 msgid ""
6154 "If an unknown group name is included in the list of groups then an error is "
6155 "always returned."
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6160 msgid "I<Notes:>"
6161 msgstr ""
6162
6163 #. type: textblock
6164 #: ../fish/guestfish-actions.pod:443
6165 msgid "You must call L</launch> before calling this function."
6166 msgstr ""
6167
6168 #. type: textblock
6169 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6170 msgid ""
6171 "The reason is because we don't know what groups are supported by the "
6172 "appliance/daemon until it is running and can be queried."
6173 msgstr ""
6174
6175 #. type: textblock
6176 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6177 msgid ""
6178 "If a group of functions is available, this does not necessarily mean that "
6179 "they will work.  You still have to check for errors when calling individual "
6180 "API functions even if they are available."
6181 msgstr ""
6182
6183 #. type: textblock
6184 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6185 msgid ""
6186 "It is usually the job of distro packagers to build complete functionality "
6187 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6188 "with all requirements satisfied, will support everything."
6189 msgstr ""
6190
6191 #. type: textblock
6192 #: ../fish/guestfish-actions.pod:465
6193 msgid ""
6194 "This call was added in version C<1.0.80>.  In previous versions of "
6195 "libguestfs all you could do would be to speculatively execute a command to "
6196 "find out if the daemon implemented it.  See also L</version>."
6197 msgstr ""
6198
6199 #. type: =head2
6200 #: ../fish/guestfish-actions.pod:472
6201 msgid "available-all-groups"
6202 msgstr ""
6203
6204 #. type: verbatim
6205 #: ../fish/guestfish-actions.pod:474
6206 #, no-wrap
6207 msgid ""
6208 " available-all-groups\n"
6209 "\n"
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../fish/guestfish-actions.pod:476
6214 msgid ""
6215 "This command returns a list of all optional groups that this daemon knows "
6216 "about.  Note this returns both supported and unsupported groups.  To find "
6217 "out which ones the daemon can actually support you have to call "
6218 "L</available> on each member of the returned list."
6219 msgstr ""
6220
6221 #. type: textblock
6222 #: ../fish/guestfish-actions.pod:482
6223 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6224 msgstr ""
6225
6226 #. type: =head2
6227 #: ../fish/guestfish-actions.pod:484
6228 msgid "base64-in"
6229 msgstr ""
6230
6231 #. type: verbatim
6232 #: ../fish/guestfish-actions.pod:486
6233 #, no-wrap
6234 msgid ""
6235 " base64-in (base64file|-) filename\n"
6236 "\n"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6241 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6242 msgstr ""
6243
6244 #. type: textblock
6245 #: ../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
6246 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6247 msgstr ""
6248
6249 #. type: =head2
6250 #: ../fish/guestfish-actions.pod:493
6251 msgid "base64-out"
6252 msgstr ""
6253
6254 #. type: verbatim
6255 #: ../fish/guestfish-actions.pod:495
6256 #, no-wrap
6257 msgid ""
6258 " base64-out filename (base64file|-)\n"
6259 "\n"
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6264 msgid ""
6265 "This command downloads the contents of C<filename>, writing it out to local "
6266 "file C<base64file> encoded as base64."
6267 msgstr ""
6268
6269 #. type: =head2
6270 #: ../fish/guestfish-actions.pod:502
6271 msgid "blockdev-flushbufs"
6272 msgstr ""
6273
6274 #. type: verbatim
6275 #: ../fish/guestfish-actions.pod:504
6276 #, no-wrap
6277 msgid ""
6278 " blockdev-flushbufs device\n"
6279 "\n"
6280 msgstr ""
6281
6282 #. type: textblock
6283 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6284 msgid "This tells the kernel to flush internal buffers associated with C<device>."
6285 msgstr ""
6286
6287 #. type: textblock
6288 #: ../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
6289 msgid "This uses the L<blockdev(8)> command."
6290 msgstr ""
6291
6292 #. type: =head2
6293 #: ../fish/guestfish-actions.pod:511
6294 msgid "blockdev-getbsz"
6295 msgstr ""
6296
6297 #. type: verbatim
6298 #: ../fish/guestfish-actions.pod:513
6299 #, no-wrap
6300 msgid ""
6301 " blockdev-getbsz device\n"
6302 "\n"
6303 msgstr ""
6304
6305 #. type: textblock
6306 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6307 msgid "This returns the block size of a device."
6308 msgstr ""
6309
6310 #. type: textblock
6311 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580 ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6312 msgid ""
6313 "(Note this is different from both I<size in blocks> and I<filesystem block "
6314 "size>)."
6315 msgstr ""
6316
6317 #. type: =head2
6318 #: ../fish/guestfish-actions.pod:522
6319 msgid "blockdev-getro"
6320 msgstr ""
6321
6322 #. type: verbatim
6323 #: ../fish/guestfish-actions.pod:524
6324 #, no-wrap
6325 msgid ""
6326 " blockdev-getro device\n"
6327 "\n"
6328 msgstr ""
6329
6330 #. type: textblock
6331 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6332 msgid ""
6333 "Returns a boolean indicating if the block device is read-only (true if "
6334 "read-only, false if not)."
6335 msgstr ""
6336
6337 #. type: =head2
6338 #: ../fish/guestfish-actions.pod:531
6339 msgid "blockdev-getsize64"
6340 msgstr ""
6341
6342 #. type: verbatim
6343 #: ../fish/guestfish-actions.pod:533
6344 #, no-wrap
6345 msgid ""
6346 " blockdev-getsize64 device\n"
6347 "\n"
6348 msgstr ""
6349
6350 #. type: textblock
6351 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
6352 msgid "This returns the size of the device in bytes."
6353 msgstr ""
6354
6355 #. type: textblock
6356 #: ../fish/guestfish-actions.pod:537
6357 msgid "See also L</blockdev-getsz>."
6358 msgstr ""
6359
6360 #. type: =head2
6361 #: ../fish/guestfish-actions.pod:541
6362 msgid "blockdev-getss"
6363 msgstr ""
6364
6365 #. type: verbatim
6366 #: ../fish/guestfish-actions.pod:543
6367 #, no-wrap
6368 msgid ""
6369 " blockdev-getss device\n"
6370 "\n"
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
6375 msgid ""
6376 "This returns the size of sectors on a block device.  Usually 512, but can be "
6377 "larger for modern devices."
6378 msgstr ""
6379
6380 #. type: textblock
6381 #: ../fish/guestfish-actions.pod:548
6382 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6383 msgstr ""
6384
6385 #. type: =head2
6386 #: ../fish/guestfish-actions.pod:553
6387 msgid "blockdev-getsz"
6388 msgstr ""
6389
6390 #. type: verbatim
6391 #: ../fish/guestfish-actions.pod:555
6392 #, no-wrap
6393 msgid ""
6394 " blockdev-getsz device\n"
6395 "\n"
6396 msgstr ""
6397
6398 #. type: textblock
6399 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
6400 msgid ""
6401 "This returns the size of the device in units of 512-byte sectors (even if "
6402 "the sectorsize isn't 512 bytes ... weird)."
6403 msgstr ""
6404
6405 #. type: textblock
6406 #: ../fish/guestfish-actions.pod:560
6407 msgid ""
6408 "See also L</blockdev-getss> for the real sector size of the device, and "
6409 "L</blockdev-getsize64> for the more useful I<size in bytes>."
6410 msgstr ""
6411
6412 #. type: =head2
6413 #: ../fish/guestfish-actions.pod:566
6414 msgid "blockdev-rereadpt"
6415 msgstr ""
6416
6417 #. type: verbatim
6418 #: ../fish/guestfish-actions.pod:568
6419 #, no-wrap
6420 msgid ""
6421 " blockdev-rereadpt device\n"
6422 "\n"
6423 msgstr ""
6424
6425 #. type: textblock
6426 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
6427 msgid "Reread the partition table on C<device>."
6428 msgstr ""
6429
6430 #. type: =head2
6431 #: ../fish/guestfish-actions.pod:574
6432 msgid "blockdev-setbsz"
6433 msgstr ""
6434
6435 #. type: verbatim
6436 #: ../fish/guestfish-actions.pod:576
6437 #, no-wrap
6438 msgid ""
6439 " blockdev-setbsz device blocksize\n"
6440 "\n"
6441 msgstr ""
6442
6443 #. type: textblock
6444 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
6445 msgid "This sets the block size of a device."
6446 msgstr ""
6447
6448 #. type: =head2
6449 #: ../fish/guestfish-actions.pod:585
6450 msgid "blockdev-setro"
6451 msgstr ""
6452
6453 #. type: verbatim
6454 #: ../fish/guestfish-actions.pod:587
6455 #, no-wrap
6456 msgid ""
6457 " blockdev-setro device\n"
6458 "\n"
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
6463 msgid "Sets the block device named C<device> to read-only."
6464 msgstr ""
6465
6466 #. type: =head2
6467 #: ../fish/guestfish-actions.pod:593
6468 msgid "blockdev-setrw"
6469 msgstr ""
6470
6471 #. type: verbatim
6472 #: ../fish/guestfish-actions.pod:595
6473 #, no-wrap
6474 msgid ""
6475 " blockdev-setrw device\n"
6476 "\n"
6477 msgstr ""
6478
6479 #. type: textblock
6480 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
6481 msgid "Sets the block device named C<device> to read-write."
6482 msgstr ""
6483
6484 #. type: =head2
6485 #: ../fish/guestfish-actions.pod:601
6486 msgid "btrfs-filesystem-resize"
6487 msgstr ""
6488
6489 #. type: verbatim
6490 #: ../fish/guestfish-actions.pod:603
6491 #, no-wrap
6492 msgid ""
6493 " btrfs-filesystem-resize mountpoint [size:N]\n"
6494 "\n"
6495 msgstr ""
6496
6497 #. type: textblock
6498 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
6499 msgid "This command resizes a btrfs filesystem."
6500 msgstr ""
6501
6502 #. type: textblock
6503 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
6504 msgid ""
6505 "Note that unlike other resize calls, the filesystem has to be mounted and "
6506 "the parameter is the mountpoint not the device (this is a requirement of "
6507 "btrfs itself)."
6508 msgstr ""
6509
6510 #. type: textblock
6511 #: ../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
6512 msgid "The optional parameters are:"
6513 msgstr ""
6514
6515 #. type: =item
6516 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3707 ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5790
6517 msgid "C<size>"
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
6522 msgid ""
6523 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6524 "resized to the maximum size."
6525 msgstr ""
6526
6527 #. type: textblock
6528 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
6529 msgid "See also L<btrfs(8)>."
6530 msgstr ""
6531
6532 #. type: =head2
6533 #: ../fish/guestfish-actions.pod:626
6534 msgid "case-sensitive-path"
6535 msgstr ""
6536
6537 #. type: verbatim
6538 #: ../fish/guestfish-actions.pod:628
6539 #, no-wrap
6540 msgid ""
6541 " case-sensitive-path path\n"
6542 "\n"
6543 msgstr ""
6544
6545 #. type: textblock
6546 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
6547 msgid ""
6548 "This can be used to resolve case insensitive paths on a filesystem which is "
6549 "case sensitive.  The use case is to resolve paths which you have read from "
6550 "Windows configuration files or the Windows Registry, to the true path."
6551 msgstr ""
6552
6553 #. type: textblock
6554 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
6555 msgid ""
6556 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6557 "(and probably others), which is that although the underlying filesystem is "
6558 "case-insensitive, the driver exports the filesystem to Linux as "
6559 "case-sensitive."
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
6564 msgid ""
6565 "One consequence of this is that special directories such as C<c:\\windows> "
6566 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6567 "precise details of how they were created.  In Windows itself this would not "
6568 "be a problem."
6569 msgstr ""
6570
6571 #. type: textblock
6572 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
6573 msgid ""
6574 "Bug or feature? You decide: "
6575 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
6576 msgstr ""
6577
6578 #. type: textblock
6579 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
6580 msgid ""
6581 "This function resolves the true case of each element in the path and returns "
6582 "the case-sensitive path."
6583 msgstr ""
6584
6585 #. type: textblock
6586 #: ../fish/guestfish-actions.pod:652
6587 msgid ""
6588 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
6589 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
6590 "how the directories were originally created under Windows)."
6591 msgstr ""
6592
6593 #. type: textblock
6594 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
6595 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6596 msgstr ""
6597
6598 #. type: textblock
6599 #: ../fish/guestfish-actions.pod:660
6600 msgid "See also L</realpath>."
6601 msgstr ""
6602
6603 #. type: =head2
6604 #: ../fish/guestfish-actions.pod:662
6605 msgid "cat"
6606 msgstr ""
6607
6608 #. type: verbatim
6609 #: ../fish/guestfish-actions.pod:664
6610 #, no-wrap
6611 msgid ""
6612 " cat path\n"
6613 "\n"
6614 msgstr ""
6615
6616 #. type: textblock
6617 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4134 ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6446
6618 msgid "Return the contents of the file named C<path>."
6619 msgstr ""
6620
6621 #. type: textblock
6622 #: ../fish/guestfish-actions.pod:668
6623 msgid ""
6624 "Note that this function cannot correctly handle binary files (specifically, "
6625 "files containing C<\\0> character which is treated as end of string).  For "
6626 "those you need to use the L</read-file> or L</download> functions which have "
6627 "a more complex interface."
6628 msgstr ""
6629
6630 #. type: textblock
6631 #: ../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
6632 msgid ""
6633 "Because of the message protocol, there is a transfer limit of somewhere "
6634 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6635 msgstr ""
6636
6637 #. type: =head2
6638 #: ../fish/guestfish-actions.pod:676
6639 msgid "checksum"
6640 msgstr ""
6641
6642 #. type: verbatim
6643 #: ../fish/guestfish-actions.pod:678
6644 #, no-wrap
6645 msgid ""
6646 " checksum csumtype path\n"
6647 "\n"
6648 msgstr ""
6649
6650 #. type: textblock
6651 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
6652 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6653 msgstr ""
6654
6655 #. type: textblock
6656 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
6657 msgid ""
6658 "The type of checksum to compute is given by the C<csumtype> parameter which "
6659 "must have one of the following values:"
6660 msgstr ""
6661
6662 #. type: =item
6663 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
6664 msgid "C<crc>"
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
6669 msgid ""
6670 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6671 "C<cksum> command."
6672 msgstr ""
6673
6674 #. type: =item
6675 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
6676 msgid "C<md5>"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
6681 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6682 msgstr ""
6683
6684 #. type: =item
6685 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
6686 msgid "C<sha1>"
6687 msgstr ""
6688
6689 #. type: textblock
6690 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
6691 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6692 msgstr ""
6693
6694 #. type: =item
6695 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
6696 msgid "C<sha224>"
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
6701 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6702 msgstr ""
6703
6704 #. type: =item
6705 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
6706 msgid "C<sha256>"
6707 msgstr ""
6708
6709 #. type: textblock
6710 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
6711 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6712 msgstr ""
6713
6714 #. type: =item
6715 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
6716 msgid "C<sha384>"
6717 msgstr ""
6718
6719 #. type: textblock
6720 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
6721 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6722 msgstr ""
6723
6724 #. type: =item
6725 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
6726 msgid "C<sha512>"
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
6731 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
6736 msgid "The checksum is returned as a printable string."
6737 msgstr ""
6738
6739 #. type: textblock
6740 #: ../fish/guestfish-actions.pod:721
6741 msgid "To get the checksum for a device, use L</checksum-device>."
6742 msgstr ""
6743
6744 #. type: textblock
6745 #: ../fish/guestfish-actions.pod:723
6746 msgid "To get the checksums for many files, use L</checksums-out>."
6747 msgstr ""
6748
6749 #. type: =head2
6750 #: ../fish/guestfish-actions.pod:725
6751 msgid "checksum-device"
6752 msgstr ""
6753
6754 #. type: verbatim
6755 #: ../fish/guestfish-actions.pod:727
6756 #, no-wrap
6757 msgid ""
6758 " checksum-device csumtype device\n"
6759 "\n"
6760 msgstr ""
6761
6762 #. type: textblock
6763 #: ../fish/guestfish-actions.pod:729
6764 msgid ""
6765 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6766 "device named C<device>.  For the types of checksums supported see the "
6767 "L</checksum> command."
6768 msgstr ""
6769
6770 #. type: =head2
6771 #: ../fish/guestfish-actions.pod:733
6772 msgid "checksums-out"
6773 msgstr ""
6774
6775 #. type: verbatim
6776 #: ../fish/guestfish-actions.pod:735
6777 #, no-wrap
6778 msgid ""
6779 " checksums-out csumtype directory (sumsfile|-)\n"
6780 "\n"
6781 msgstr ""
6782
6783 #. type: textblock
6784 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
6785 msgid ""
6786 "This command computes the checksums of all regular files in C<directory> and "
6787 "then emits a list of those checksums to the local output file C<sumsfile>."
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
6792 msgid ""
6793 "This can be used for verifying the integrity of a virtual machine.  However "
6794 "to be properly secure you should pay attention to the output of the checksum "
6795 "command (it uses the ones from GNU coreutils).  In particular when the "
6796 "filename is not printable, coreutils uses a special backslash syntax.  For "
6797 "more information, see the GNU coreutils info file."
6798 msgstr ""
6799
6800 #. type: =head2
6801 #: ../fish/guestfish-actions.pod:751
6802 msgid "chmod"
6803 msgstr ""
6804
6805 #. type: verbatim
6806 #: ../fish/guestfish-actions.pod:753
6807 #, no-wrap
6808 msgid ""
6809 " chmod mode path\n"
6810 "\n"
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
6815 msgid ""
6816 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6817 "supported."
6818 msgstr ""
6819
6820 #. type: textblock
6821 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
6822 msgid ""
6823 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6824 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6825 "C<700>."
6826 msgstr ""
6827
6828 #. type: textblock
6829 #: ../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
6830 msgid "The mode actually set is affected by the umask."
6831 msgstr ""
6832
6833 #. type: =head2
6834 #: ../fish/guestfish-actions.pod:764
6835 msgid "chown"
6836 msgstr ""
6837
6838 #. type: verbatim
6839 #: ../fish/guestfish-actions.pod:766
6840 #, no-wrap
6841 msgid ""
6842 " chown owner group path\n"
6843 "\n"
6844 msgstr ""
6845
6846 #. type: textblock
6847 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
6848 msgid "Change the file owner to C<owner> and group to C<group>."
6849 msgstr ""
6850
6851 #. type: textblock
6852 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
6853 msgid ""
6854 "Only numeric uid and gid are supported.  If you want to use names, you will "
6855 "need to locate and parse the password file yourself (Augeas support makes "
6856 "this relatively easy)."
6857 msgstr ""
6858
6859 #. type: =head2
6860 #: ../fish/guestfish-actions.pod:774
6861 msgid "command"
6862 msgstr ""
6863
6864 #. type: verbatim
6865 #: ../fish/guestfish-actions.pod:776
6866 #, no-wrap
6867 msgid ""
6868 " command 'arguments ...'\n"
6869 "\n"
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
6874 msgid ""
6875 "This call runs a command from the guest filesystem.  The filesystem must be "
6876 "mounted, and must contain a compatible operating system (ie. something "
6877 "Linux, with the same or compatible processor architecture)."
6878 msgstr ""
6879
6880 #. type: textblock
6881 #: ../fish/guestfish-actions.pod:783
6882 msgid ""
6883 "The single parameter is an argv-style list of arguments.  The first element "
6884 "is the name of the program to run.  Subsequent elements are parameters.  The "
6885 "list must be non-empty (ie. must contain a program name).  Note that the "
6886 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6887 msgstr ""
6888
6889 #. type: textblock
6890 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
6891 msgid "The return value is anything printed to I<stdout> by the command."
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
6896 msgid ""
6897 "If the command returns a non-zero exit status, then this function returns an "
6898 "error message.  The error message string is the content of I<stderr> from "
6899 "the command."
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
6904 msgid ""
6905 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
6906 "C</bin>.  If you require a program from another location, you should provide "
6907 "the full path in the first parameter."
6908 msgstr ""
6909
6910 #. type: textblock
6911 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
6912 msgid ""
6913 "Shared libraries and data files required by the program must be available on "
6914 "filesystems which are mounted in the correct places.  It is the caller's "
6915 "responsibility to ensure all filesystems that are needed are mounted at the "
6916 "right locations."
6917 msgstr ""
6918
6919 #. type: =head2
6920 #: ../fish/guestfish-actions.pod:811
6921 msgid "command-lines"
6922 msgstr ""
6923
6924 #. type: verbatim
6925 #: ../fish/guestfish-actions.pod:813
6926 #, no-wrap
6927 msgid ""
6928 " command-lines 'arguments ...'\n"
6929 "\n"
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:815
6934 msgid "This is the same as L</command>, but splits the result into a list of lines."
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:818
6939 msgid "See also: L</sh-lines>"
6940 msgstr ""
6941
6942 #. type: =head2
6943 #: ../fish/guestfish-actions.pod:823
6944 msgid "compress-device-out"
6945 msgstr ""
6946
6947 #. type: verbatim
6948 #: ../fish/guestfish-actions.pod:825
6949 #, no-wrap
6950 msgid ""
6951 " compress-device-out ctype device (zdevice|-) [level:N]\n"
6952 "\n"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
6957 msgid ""
6958 "This command compresses C<device> and writes it out to the local file "
6959 "C<zdevice>."
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:830
6964 msgid ""
6965 "The C<ctype> and optional C<level> parameters have the same meaning as in "
6966 "L</compress-out>."
6967 msgstr ""
6968
6969 #. type: =head2
6970 #: ../fish/guestfish-actions.pod:837
6971 msgid "compress-out"
6972 msgstr ""
6973
6974 #. type: verbatim
6975 #: ../fish/guestfish-actions.pod:839
6976 #, no-wrap
6977 msgid ""
6978 " compress-out ctype file (zfile|-) [level:N]\n"
6979 "\n"
6980 msgstr ""
6981
6982 #. type: textblock
6983 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
6984 msgid ""
6985 "This command compresses C<file> and writes it out to the local file "
6986 "C<zfile>."
6987 msgstr ""
6988
6989 #. type: textblock
6990 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
6991 msgid ""
6992 "The compression program used is controlled by the C<ctype> parameter.  "
6993 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6994 "Some compression types may not be supported by particular builds of "
6995 "libguestfs, in which case you will get an error containing the substring "
6996 "\"not supported\"."
6997 msgstr ""
6998
6999 #. type: textblock
7000 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7001 msgid ""
7002 "The optional C<level> parameter controls compression level.  The meaning and "
7003 "default for this parameter depends on the compression program being used."
7004 msgstr ""
7005
7006 #. type: =head2
7007 #: ../fish/guestfish-actions.pod:858
7008 msgid "config"
7009 msgstr ""
7010
7011 #. type: verbatim
7012 #: ../fish/guestfish-actions.pod:860
7013 #, no-wrap
7014 msgid ""
7015 " config qemuparam qemuvalue\n"
7016 "\n"
7017 msgstr ""
7018
7019 #. type: textblock
7020 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7021 msgid ""
7022 "This can be used to add arbitrary qemu command line parameters of the form "
7023 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7024 "setting some parameters which would interfere with parameters that we use."
7025 msgstr ""
7026
7027 #. type: textblock
7028 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7029 msgid "The first character of C<param> string must be a C<-> (dash)."
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7034 msgid "C<value> can be NULL."
7035 msgstr ""
7036
7037 #. type: =head2
7038 #: ../fish/guestfish-actions.pod:871
7039 msgid "copy-device-to-device"
7040 msgstr ""
7041
7042 #. type: verbatim
7043 #: ../fish/guestfish-actions.pod:873
7044 #, no-wrap
7045 msgid ""
7046 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7047 "\n"
7048 msgstr ""
7049
7050 #. type: textblock
7051 #: ../fish/guestfish-actions.pod:875
7052 msgid ""
7053 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
7054 "L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
7055 "source (device|file) to a destination (device|file)."
7056 msgstr ""
7057
7058 #. type: textblock
7059 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7060 msgid ""
7061 "Partial copies can be made since you can specify optionally the source "
7062 "offset, destination offset and size to copy.  These values are all specified "
7063 "in bytes.  If not given, the offsets both default to zero, and the size "
7064 "defaults to copying as much as possible until we hit the end of the source."
7065 msgstr ""
7066
7067 #. type: textblock
7068 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7069 msgid ""
7070 "The source and destination may be the same object.  However overlapping "
7071 "regions may not be copied correctly."
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7076 msgid ""
7077 "If the destination is a file, it is created if required.  If the destination "
7078 "file is not large enough, it is extended."
7079 msgstr ""
7080
7081 #. type: =head2
7082 #: ../fish/guestfish-actions.pod:896
7083 msgid "copy-device-to-file"
7084 msgstr ""
7085
7086 #. type: verbatim
7087 #: ../fish/guestfish-actions.pod:898
7088 #, no-wrap
7089 msgid ""
7090 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7091 "\n"
7092 msgstr ""
7093
7094 #. type: textblock
7095 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909 ../fish/guestfish-actions.pod:918
7096 msgid "See L</copy-device-to-device> for a general overview of this call."
7097 msgstr ""
7098
7099 #. type: =head2
7100 #: ../fish/guestfish-actions.pod:905
7101 msgid "copy-file-to-device"
7102 msgstr ""
7103
7104 #. type: verbatim
7105 #: ../fish/guestfish-actions.pod:907
7106 #, no-wrap
7107 msgid ""
7108 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7109 "\n"
7110 msgstr ""
7111
7112 #. type: =head2
7113 #: ../fish/guestfish-actions.pod:914
7114 msgid "copy-file-to-file"
7115 msgstr ""
7116
7117 #. type: verbatim
7118 #: ../fish/guestfish-actions.pod:916
7119 #, no-wrap
7120 msgid ""
7121 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7122 "\n"
7123 msgstr ""
7124
7125 #. type: textblock
7126 #: ../fish/guestfish-actions.pod:921
7127 msgid ""
7128 "This is B<not> the function you want for copying files.  This is for copying "
7129 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7130 "file copying and moving functions."
7131 msgstr ""
7132
7133 #. type: =head2
7134 #: ../fish/guestfish-actions.pod:928
7135 msgid "copy-size"
7136 msgstr ""
7137
7138 #. type: verbatim
7139 #: ../fish/guestfish-actions.pod:930
7140 #, no-wrap
7141 msgid ""
7142 " copy-size src dest size\n"
7143 "\n"
7144 msgstr ""
7145
7146 #. type: textblock
7147 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7148 msgid ""
7149 "This command copies exactly C<size> bytes from one source device or file "
7150 "C<src> to another destination device or file C<dest>."
7151 msgstr ""
7152
7153 #. type: textblock
7154 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7155 msgid ""
7156 "Note this will fail if the source is too short or if the destination is not "
7157 "large enough."
7158 msgstr ""
7159
7160 #. type: textblock
7161 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7162 msgid ""
7163 "I<This function is deprecated.> In new code, use the "
7164 "L</copy_device_to_device> call instead."
7165 msgstr ""
7166
7167 #. type: =head2
7168 #: ../fish/guestfish-actions.pod:945
7169 msgid "cp"
7170 msgstr ""
7171
7172 #. type: verbatim
7173 #: ../fish/guestfish-actions.pod:947
7174 #, no-wrap
7175 msgid ""
7176 " cp src dest\n"
7177 "\n"
7178 msgstr ""
7179
7180 #. type: textblock
7181 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7182 msgid ""
7183 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7184 "destination filename or destination directory."
7185 msgstr ""
7186
7187 #. type: =head2
7188 #: ../fish/guestfish-actions.pod:952
7189 msgid "cp-a"
7190 msgstr ""
7191
7192 #. type: verbatim
7193 #: ../fish/guestfish-actions.pod:954
7194 #, no-wrap
7195 msgid ""
7196 " cp-a src dest\n"
7197 "\n"
7198 msgstr ""
7199
7200 #. type: textblock
7201 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7202 msgid ""
7203 "This copies a file or directory from C<src> to C<dest> recursively using the "
7204 "C<cp -a> command."
7205 msgstr ""
7206
7207 #. type: =head2
7208 #: ../fish/guestfish-actions.pod:959
7209 msgid "dd"
7210 msgstr ""
7211
7212 #. type: verbatim
7213 #: ../fish/guestfish-actions.pod:961
7214 #, no-wrap
7215 msgid ""
7216 " dd src dest\n"
7217 "\n"
7218 msgstr ""
7219
7220 #. type: textblock
7221 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7222 msgid ""
7223 "This command copies from one source device or file C<src> to another "
7224 "destination device or file C<dest>.  Normally you would use this to copy to "
7225 "or from a device or partition, for example to duplicate a filesystem."
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:968
7230 msgid ""
7231 "If the destination is a device, it must be as large or larger than the "
7232 "source file or device, otherwise the copy will fail.  This command cannot do "
7233 "partial copies (see L</copy-device-to-device>)."
7234 msgstr ""
7235
7236 #. type: =head2
7237 #: ../fish/guestfish-actions.pod:980
7238 msgid "df"
7239 msgstr ""
7240
7241 #. type: verbatim
7242 #: ../fish/guestfish-actions.pod:982
7243 #, no-wrap
7244 msgid ""
7245 " df\n"
7246 "\n"
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
7251 msgid "This command runs the C<df> command to report disk space used."
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7256 msgid ""
7257 "This command is mostly useful for interactive sessions.  It is I<not> "
7258 "intended that you try to parse the output string.  Use L</statvfs> from "
7259 "programs."
7260 msgstr ""
7261
7262 #. type: =head2
7263 #: ../fish/guestfish-actions.pod:990
7264 msgid "df-h"
7265 msgstr ""
7266
7267 #. type: verbatim
7268 #: ../fish/guestfish-actions.pod:992
7269 #, no-wrap
7270 msgid ""
7271 " df-h\n"
7272 "\n"
7273 msgstr ""
7274
7275 #. type: textblock
7276 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
7277 msgid ""
7278 "This command runs the C<df -h> command to report disk space used in "
7279 "human-readable format."
7280 msgstr ""
7281
7282 #. type: =head2
7283 #: ../fish/guestfish-actions.pod:1001
7284 msgid "dmesg"
7285 msgstr ""
7286
7287 #. type: verbatim
7288 #: ../fish/guestfish-actions.pod:1003
7289 #, no-wrap
7290 msgid ""
7291 " dmesg\n"
7292 "\n"
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
7297 msgid ""
7298 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7299 "This is sometimes useful for extended debugging of problems."
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:1009
7304 msgid ""
7305 "Another way to get the same information is to enable verbose messages with "
7306 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7307 "before running the program."
7308 msgstr ""
7309
7310 #. type: =head2
7311 #: ../fish/guestfish-actions.pod:1014
7312 msgid "download"
7313 msgstr ""
7314
7315 #. type: verbatim
7316 #: ../fish/guestfish-actions.pod:1016
7317 #, no-wrap
7318 msgid ""
7319 " download remotefilename (filename|-)\n"
7320 "\n"
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031 ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
7325 msgid ""
7326 "Download file C<remotefilename> and save it as C<filename> on the local "
7327 "machine."
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7970
7332 msgid "C<filename> can also be a named pipe."
7333 msgstr ""
7334
7335 #. type: textblock
7336 #: ../fish/guestfish-actions.pod:1023
7337 msgid "See also L</upload>, L</cat>."
7338 msgstr ""
7339
7340 #. type: =head2
7341 #: ../fish/guestfish-actions.pod:1027
7342 msgid "download-offset"
7343 msgstr ""
7344
7345 #. type: verbatim
7346 #: ../fish/guestfish-actions.pod:1029
7347 #, no-wrap
7348 msgid ""
7349 " download-offset remotefilename (filename|-) offset size\n"
7350 "\n"
7351 msgstr ""
7352
7353 #. type: textblock
7354 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
7355 msgid ""
7356 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7357 "region must be within the file or device)."
7358 msgstr ""
7359
7360 #. type: textblock
7361 #: ../fish/guestfish-actions.pod:1037
7362 msgid ""
7363 "Note that there is no limit on the amount of data that can be downloaded "
7364 "with this call, unlike with L</pread>, and this call always reads the full "
7365 "amount unless an error occurs."
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:1042
7370 msgid "See also L</download>, L</pread>."
7371 msgstr ""
7372
7373 #. type: =head2
7374 #: ../fish/guestfish-actions.pod:1046
7375 msgid "drop-caches"
7376 msgstr ""
7377
7378 #. type: verbatim
7379 #: ../fish/guestfish-actions.pod:1048
7380 #, no-wrap
7381 msgid ""
7382 " drop-caches whattodrop\n"
7383 "\n"
7384 msgstr ""
7385
7386 #. type: textblock
7387 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
7388 msgid ""
7389 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7390 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7391 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7392 msgstr ""
7393
7394 #. type: textblock
7395 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
7396 msgid "Setting C<whattodrop> to 3 should drop everything."
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
7401 msgid ""
7402 "This automatically calls L<sync(2)> before the operation, so that the "
7403 "maximum guest memory is freed."
7404 msgstr ""
7405
7406 #. type: =head2
7407 #: ../fish/guestfish-actions.pod:1060
7408 msgid "du"
7409 msgstr ""
7410
7411 #. type: verbatim
7412 #: ../fish/guestfish-actions.pod:1062
7413 #, no-wrap
7414 msgid ""
7415 " du path\n"
7416 "\n"
7417 msgstr ""
7418
7419 #. type: textblock
7420 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
7421 msgid ""
7422 "This command runs the C<du -s> command to estimate file space usage for "
7423 "C<path>."
7424 msgstr ""
7425
7426 #. type: textblock
7427 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
7428 msgid ""
7429 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7430 "estimate includes the contents of the directory and all subdirectories "
7431 "(recursively)."
7432 msgstr ""
7433
7434 #. type: textblock
7435 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
7436 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7437 msgstr ""
7438
7439 #. type: =head2
7440 #: ../fish/guestfish-actions.pod:1074
7441 msgid "e2fsck-f"
7442 msgstr ""
7443
7444 #. type: verbatim
7445 #: ../fish/guestfish-actions.pod:1076
7446 #, no-wrap
7447 msgid ""
7448 " e2fsck-f device\n"
7449 "\n"
7450 msgstr ""
7451
7452 #. type: textblock
7453 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
7454 msgid ""
7455 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7456 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7457 "clean (I<-f>)."
7458 msgstr ""
7459
7460 #. type: textblock
7461 #: ../fish/guestfish-actions.pod:1082
7462 msgid ""
7463 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7464 "should use L</fsck>."
7465 msgstr ""
7466
7467 #. type: =head2
7468 #: ../fish/guestfish-actions.pod:1085
7469 msgid "echo-daemon"
7470 msgstr ""
7471
7472 #. type: verbatim
7473 #: ../fish/guestfish-actions.pod:1087
7474 #, no-wrap
7475 msgid ""
7476 " echo-daemon 'words ...'\n"
7477 "\n"
7478 msgstr ""
7479
7480 #. type: textblock
7481 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
7482 msgid ""
7483 "This command concatenates the list of C<words> passed with single spaces "
7484 "between them and returns the resulting string."
7485 msgstr ""
7486
7487 #. type: textblock
7488 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
7489 msgid "You can use this command to test the connection through to the daemon."
7490 msgstr ""
7491
7492 #. type: textblock
7493 #: ../fish/guestfish-actions.pod:1094
7494 msgid "See also L</ping-daemon>."
7495 msgstr ""
7496
7497 #. type: =head2
7498 #: ../fish/guestfish-actions.pod:1096
7499 msgid "egrep"
7500 msgstr ""
7501
7502 #. type: verbatim
7503 #: ../fish/guestfish-actions.pod:1098
7504 #, no-wrap
7505 msgid ""
7506 " egrep regex path\n"
7507 "\n"
7508 msgstr ""
7509
7510 #. type: textblock
7511 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
7512 msgid "This calls the external C<egrep> program and returns the matching lines."
7513 msgstr ""
7514
7515 #. type: =head2
7516 #: ../fish/guestfish-actions.pod:1106
7517 msgid "egrepi"
7518 msgstr ""
7519
7520 #. type: verbatim
7521 #: ../fish/guestfish-actions.pod:1108
7522 #, no-wrap
7523 msgid ""
7524 " egrepi regex path\n"
7525 "\n"
7526 msgstr ""
7527
7528 #. type: textblock
7529 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
7530 msgid "This calls the external C<egrep -i> program and returns the matching lines."
7531 msgstr ""
7532
7533 #. type: =head2
7534 #: ../fish/guestfish-actions.pod:1116
7535 msgid "equal"
7536 msgstr ""
7537
7538 #. type: verbatim
7539 #: ../fish/guestfish-actions.pod:1118
7540 #, no-wrap
7541 msgid ""
7542 " equal file1 file2\n"
7543 "\n"
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
7548 msgid ""
7549 "This compares the two files C<file1> and C<file2> and returns true if their "
7550 "content is exactly equal, or false otherwise."
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
7555 msgid "The external L<cmp(1)> program is used for the comparison."
7556 msgstr ""
7557
7558 #. type: =head2
7559 #: ../fish/guestfish-actions.pod:1125
7560 msgid "exists"
7561 msgstr ""
7562
7563 #. type: verbatim
7564 #: ../fish/guestfish-actions.pod:1127
7565 #, no-wrap
7566 msgid ""
7567 " exists path\n"
7568 "\n"
7569 msgstr ""
7570
7571 #. type: textblock
7572 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
7573 msgid ""
7574 "This returns C<true> if and only if there is a file, directory (or anything) "
7575 "with the given C<path> name."
7576 msgstr ""
7577
7578 #. type: textblock
7579 #: ../fish/guestfish-actions.pod:1132
7580 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7581 msgstr ""
7582
7583 #. type: =head2
7584 #: ../fish/guestfish-actions.pod:1134
7585 msgid "fallocate"
7586 msgstr ""
7587
7588 #. type: verbatim
7589 #: ../fish/guestfish-actions.pod:1136
7590 #, no-wrap
7591 msgid ""
7592 " fallocate path len\n"
7593 "\n"
7594 msgstr ""
7595
7596 #. type: textblock
7597 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
7598 msgid ""
7599 "This command preallocates a file (containing zero bytes) named C<path> of "
7600 "size C<len> bytes.  If the file exists already, it is overwritten."
7601 msgstr ""
7602
7603 #. type: textblock
7604 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
7605 msgid ""
7606 "Do not confuse this with the guestfish-specific C<alloc> command which "
7607 "allocates a file in the host and attaches it as a device."
7608 msgstr ""
7609
7610 #. type: textblock
7611 #: ../fish/guestfish-actions.pod:1146
7612 msgid ""
7613 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7614 "instead."
7615 msgstr ""
7616
7617 #. type: =head2
7618 #: ../fish/guestfish-actions.pod:1153
7619 msgid "fallocate64"
7620 msgstr ""
7621
7622 #. type: verbatim
7623 #: ../fish/guestfish-actions.pod:1155
7624 #, no-wrap
7625 msgid ""
7626 " fallocate64 path len\n"
7627 "\n"
7628 msgstr ""
7629
7630 #. type: textblock
7631 #: ../fish/guestfish-actions.pod:1161
7632 msgid ""
7633 "Note that this call allocates disk blocks for the file.  To create a sparse "
7634 "file use L</truncate-size> instead."
7635 msgstr ""
7636
7637 #. type: textblock
7638 #: ../fish/guestfish-actions.pod:1164
7639 msgid ""
7640 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7641 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7642 "maximum size of files created through that call to 1GB."
7643 msgstr ""
7644
7645 #. type: textblock
7646 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
7647 msgid ""
7648 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7649 "commands which create a file in the host and attach it as a device."
7650 msgstr ""
7651
7652 #. type: =head2
7653 #: ../fish/guestfish-actions.pod:1173
7654 msgid "fgrep"
7655 msgstr ""
7656
7657 #. type: verbatim
7658 #: ../fish/guestfish-actions.pod:1175
7659 #, no-wrap
7660 msgid ""
7661 " fgrep pattern path\n"
7662 "\n"
7663 msgstr ""
7664
7665 #. type: textblock
7666 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
7667 msgid "This calls the external C<fgrep> program and returns the matching lines."
7668 msgstr ""
7669
7670 #. type: =head2
7671 #: ../fish/guestfish-actions.pod:1183
7672 msgid "fgrepi"
7673 msgstr ""
7674
7675 #. type: verbatim
7676 #: ../fish/guestfish-actions.pod:1185
7677 #, no-wrap
7678 msgid ""
7679 " fgrepi pattern path\n"
7680 "\n"
7681 msgstr ""
7682
7683 #. type: textblock
7684 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
7685 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
7686 msgstr ""
7687
7688 #. type: =head2
7689 #: ../fish/guestfish-actions.pod:1193
7690 msgid "file"
7691 msgstr ""
7692
7693 #. type: verbatim
7694 #: ../fish/guestfish-actions.pod:1195
7695 #, no-wrap
7696 msgid ""
7697 " file path\n"
7698 "\n"
7699 msgstr ""
7700
7701 #. type: textblock
7702 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
7703 msgid ""
7704 "This call uses the standard L<file(1)> command to determine the type or "
7705 "contents of the file."
7706 msgstr ""
7707
7708 #. type: textblock
7709 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
7710 msgid ""
7711 "This call will also transparently look inside various types of compressed "
7712 "file."
7713 msgstr ""
7714
7715 #. type: textblock
7716 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
7717 msgid ""
7718 "The exact command which runs is C<file -zb path>.  Note in particular that "
7719 "the filename is not prepended to the output (the I<-b> option)."
7720 msgstr ""
7721
7722 #. type: textblock
7723 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
7724 msgid ""
7725 "The output depends on the output of the underlying L<file(1)> command and it "
7726 "can change in future in ways beyond our control.  In other words, the output "
7727 "is not guaranteed by the ABI."
7728 msgstr ""
7729
7730 #. type: textblock
7731 #: ../fish/guestfish-actions.pod:1211
7732 msgid ""
7733 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7734 "(etc), L</is-zero>."
7735 msgstr ""
7736
7737 #. type: =head2
7738 #: ../fish/guestfish-actions.pod:1214
7739 msgid "file-architecture"
7740 msgstr ""
7741
7742 #. type: verbatim
7743 #: ../fish/guestfish-actions.pod:1216
7744 #, no-wrap
7745 msgid ""
7746 " file-architecture filename\n"
7747 "\n"
7748 msgstr ""
7749
7750 #. type: textblock
7751 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
7752 msgid ""
7753 "This detects the architecture of the binary C<filename>, and returns it if "
7754 "known."
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
7759 msgid "Currently defined architectures are:"
7760 msgstr ""
7761
7762 #. type: =item
7763 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
7764 msgid "\"i386\""
7765 msgstr ""
7766
7767 #. type: textblock
7768 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
7769 msgid ""
7770 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7771 "irrespective of the precise processor requirements of the binary."
7772 msgstr ""
7773
7774 #. type: =item
7775 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
7776 msgid "\"x86_64\""
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
7781 msgid "64 bit x86-64."
7782 msgstr ""
7783
7784 #. type: =item
7785 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
7786 msgid "\"sparc\""
7787 msgstr ""
7788
7789 #. type: textblock
7790 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
7791 msgid "32 bit SPARC."
7792 msgstr ""
7793
7794 #. type: =item
7795 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
7796 msgid "\"sparc64\""
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
7801 msgid "64 bit SPARC V9 and above."
7802 msgstr ""
7803
7804 #. type: =item
7805 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
7806 msgid "\"ia64\""
7807 msgstr ""
7808
7809 #. type: textblock
7810 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
7811 msgid "Intel Itanium."
7812 msgstr ""
7813
7814 #. type: =item
7815 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
7816 msgid "\"ppc\""
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
7821 msgid "32 bit Power PC."
7822 msgstr ""
7823
7824 #. type: =item
7825 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
7826 msgid "\"ppc64\""
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
7831 msgid "64 bit Power PC."
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
7836 msgid "Libguestfs may return other architecture strings in future."
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
7841 msgid "The function works on at least the following types of files:"
7842 msgstr ""
7843
7844 #. type: textblock
7845 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
7846 msgid "many types of Un*x and Linux binary"
7847 msgstr ""
7848
7849 #. type: textblock
7850 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
7851 msgid "many types of Un*x and Linux shared library"
7852 msgstr ""
7853
7854 #. type: textblock
7855 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
7856 msgid "Windows Win32 and Win64 binaries"
7857 msgstr ""
7858
7859 #. type: textblock
7860 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
7861 msgid "Windows Win32 and Win64 DLLs"
7862 msgstr ""
7863
7864 #. type: textblock
7865 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
7866 msgid "Win32 binaries and DLLs return C<i386>."
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
7871 msgid "Win64 binaries and DLLs return C<x86_64>."
7872 msgstr ""
7873
7874 #. type: textblock
7875 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
7876 msgid "Linux kernel modules"
7877 msgstr ""
7878
7879 #. type: textblock
7880 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
7881 msgid "Linux new-style initrd images"
7882 msgstr ""
7883
7884 #. type: textblock
7885 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
7886 msgid "some non-x86 Linux vmlinuz kernels"
7887 msgstr ""
7888
7889 #. type: textblock
7890 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
7891 msgid "What it can't do currently:"
7892 msgstr ""
7893
7894 #. type: textblock
7895 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
7896 msgid "static libraries (libfoo.a)"
7897 msgstr ""
7898
7899 #. type: textblock
7900 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
7901 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7902 msgstr ""
7903
7904 #. type: textblock
7905 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
7906 msgid "x86 Linux vmlinuz kernels"
7907 msgstr ""
7908
7909 #. type: textblock
7910 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
7911 msgid ""
7912 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7913 "compressed code, and are horribly hard to unpack.  If you want to find the "
7914 "architecture of a kernel, use the architecture of the associated initrd or "
7915 "kernel module(s) instead."
7916 msgstr ""
7917
7918 #. type: =head2
7919 #: ../fish/guestfish-actions.pod:1319
7920 msgid "filesize"
7921 msgstr ""
7922
7923 #. type: verbatim
7924 #: ../fish/guestfish-actions.pod:1321
7925 #, no-wrap
7926 msgid ""
7927 " filesize file\n"
7928 "\n"
7929 msgstr ""
7930
7931 #. type: textblock
7932 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
7933 msgid "This command returns the size of C<file> in bytes."
7934 msgstr ""
7935
7936 #. type: textblock
7937 #: ../fish/guestfish-actions.pod:1325
7938 msgid ""
7939 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
7940 "L</is-file> etc.  To get the size of block devices, use "
7941 "L</blockdev-getsize64>."
7942 msgstr ""
7943
7944 #. type: =head2
7945 #: ../fish/guestfish-actions.pod:1329
7946 msgid "fill"
7947 msgstr ""
7948
7949 #. type: verbatim
7950 #: ../fish/guestfish-actions.pod:1331
7951 #, no-wrap
7952 msgid ""
7953 " fill c len path\n"
7954 "\n"
7955 msgstr ""
7956
7957 #. type: textblock
7958 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
7959 msgid ""
7960 "This command creates a new file called C<path>.  The initial content of the "
7961 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
7962 "C<[0..255]>."
7963 msgstr ""
7964
7965 #. type: textblock
7966 #: ../fish/guestfish-actions.pod:1337
7967 msgid ""
7968 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7969 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7970 "L</fill-pattern>."
7971 msgstr ""
7972
7973 #. type: =head2
7974 #: ../fish/guestfish-actions.pod:1342
7975 msgid "fill-pattern"
7976 msgstr ""
7977
7978 #. type: verbatim
7979 #: ../fish/guestfish-actions.pod:1344
7980 #, no-wrap
7981 msgid ""
7982 " fill-pattern pattern len path\n"
7983 "\n"
7984 msgstr ""
7985
7986 #. type: textblock
7987 #: ../fish/guestfish-actions.pod:1346
7988 msgid ""
7989 "This function is like L</fill> except that it creates a new file of length "
7990 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7991 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7992 "bytes."
7993 msgstr ""
7994
7995 #. type: =head2
7996 #: ../fish/guestfish-actions.pod:1351
7997 msgid "find"
7998 msgstr ""
7999
8000 #. type: verbatim
8001 #: ../fish/guestfish-actions.pod:1353
8002 #, no-wrap
8003 msgid ""
8004 " find directory\n"
8005 "\n"
8006 msgstr ""
8007
8008 #. type: textblock
8009 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8010 msgid ""
8011 "This command lists out all files and directories, recursively, starting at "
8012 "C<directory>.  It is essentially equivalent to running the shell command "
8013 "C<find directory -print> but some post-processing happens on the output, "
8014 "described below."
8015 msgstr ""
8016
8017 #. type: textblock
8018 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8019 msgid ""
8020 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8021 "structure was:"
8022 msgstr ""
8023
8024 #. type: verbatim
8025 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8026 #, no-wrap
8027 msgid ""
8028 " /tmp/a\n"
8029 " /tmp/b\n"
8030 " /tmp/c/d\n"
8031 "\n"
8032 msgstr ""
8033
8034 #. type: textblock
8035 #: ../fish/guestfish-actions.pod:1367
8036 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8037 msgstr ""
8038
8039 #. type: verbatim
8040 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8041 #, no-wrap
8042 msgid ""
8043 " a\n"
8044 " b\n"
8045 " c\n"
8046 " c/d\n"
8047 "\n"
8048 msgstr ""
8049
8050 #. type: textblock
8051 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8052 msgid "If C<directory> is not a directory, then this command returns an error."
8053 msgstr ""
8054
8055 #. type: textblock
8056 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8057 msgid "The returned list is sorted."
8058 msgstr ""
8059
8060 #. type: textblock
8061 #: ../fish/guestfish-actions.pod:1380
8062 msgid "See also L</find0>."
8063 msgstr ""
8064
8065 #. type: =head2
8066 #: ../fish/guestfish-actions.pod:1385
8067 msgid "find0"
8068 msgstr ""
8069
8070 #. type: verbatim
8071 #: ../fish/guestfish-actions.pod:1387
8072 #, no-wrap
8073 msgid ""
8074 " find0 directory (files|-)\n"
8075 "\n"
8076 msgstr ""
8077
8078 #. type: textblock
8079 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8080 msgid ""
8081 "This command lists out all files and directories, recursively, starting at "
8082 "C<directory>, placing the resulting list in the external file called "
8083 "C<files>."
8084 msgstr ""
8085
8086 #. type: textblock
8087 #: ../fish/guestfish-actions.pod:1393
8088 msgid "This command works the same way as L</find> with the following exceptions:"
8089 msgstr ""
8090
8091 #. type: textblock
8092 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8093 msgid "The resulting list is written to an external file."
8094 msgstr ""
8095
8096 #. type: textblock
8097 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8098 msgid ""
8099 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8100 "L<find(1)> option I<-print0>."
8101 msgstr ""
8102
8103 #. type: textblock
8104 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8105 msgid "This command is not limited in the number of names that it can return."
8106 msgstr ""
8107
8108 #. type: textblock
8109 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8110 msgid "The result list is not sorted."
8111 msgstr ""
8112
8113 #. type: =head2
8114 #: ../fish/guestfish-actions.pod:1420
8115 msgid "findfs-label"
8116 msgstr ""
8117
8118 #. type: verbatim
8119 #: ../fish/guestfish-actions.pod:1422
8120 #, no-wrap
8121 msgid ""
8122 " findfs-label label\n"
8123 "\n"
8124 msgstr ""
8125
8126 #. type: textblock
8127 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8128 msgid ""
8129 "This command searches the filesystems and returns the one which has the "
8130 "given label.  An error is returned if no such filesystem can be found."
8131 msgstr ""
8132
8133 #. type: textblock
8134 #: ../fish/guestfish-actions.pod:1428
8135 msgid "To find the label of a filesystem, use L</vfs-label>."
8136 msgstr ""
8137
8138 #. type: =head2
8139 #: ../fish/guestfish-actions.pod:1430
8140 msgid "findfs-uuid"
8141 msgstr ""
8142
8143 #. type: verbatim
8144 #: ../fish/guestfish-actions.pod:1432
8145 #, no-wrap
8146 msgid ""
8147 " findfs-uuid uuid\n"
8148 "\n"
8149 msgstr ""
8150
8151 #. type: textblock
8152 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8153 msgid ""
8154 "This command searches the filesystems and returns the one which has the "
8155 "given UUID.  An error is returned if no such filesystem can be found."
8156 msgstr ""
8157
8158 #. type: textblock
8159 #: ../fish/guestfish-actions.pod:1438
8160 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8161 msgstr ""
8162
8163 #. type: =head2
8164 #: ../fish/guestfish-actions.pod:1440
8165 msgid "fsck"
8166 msgstr ""
8167
8168 #. type: verbatim
8169 #: ../fish/guestfish-actions.pod:1442
8170 #, no-wrap
8171 msgid ""
8172 " fsck fstype device\n"
8173 "\n"
8174 msgstr ""
8175
8176 #. type: textblock
8177 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8178 msgid ""
8179 "This runs the filesystem checker (fsck) on C<device> which should have "
8180 "filesystem type C<fstype>."
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8185 msgid ""
8186 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8187 "codes from C<fsck>."
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8192 msgid "Multiple status codes can be summed together."
8193 msgstr ""
8194
8195 #. type: textblock
8196 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8197 msgid ""
8198 "A non-zero return code can mean \"success\", for example if errors have been "
8199 "corrected on the filesystem."
8200 msgstr ""
8201
8202 #. type: textblock
8203 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8204 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8209 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8210 msgstr ""
8211
8212 #. type: =head2
8213 #: ../fish/guestfish-actions.pod:1472
8214 msgid "get-append"
8215 msgstr ""
8216
8217 #. type: verbatim
8218 #: ../fish/guestfish-actions.pod:1474
8219 #, no-wrap
8220 msgid ""
8221 " get-append\n"
8222 "\n"
8223 msgstr ""
8224
8225 #. type: textblock
8226 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8227 msgid ""
8228 "Return the additional kernel options which are added to the guest kernel "
8229 "command line."
8230 msgstr ""
8231
8232 #. type: textblock
8233 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
8234 msgid "If C<NULL> then no options are added."
8235 msgstr ""
8236
8237 #. type: =head2
8238 #: ../fish/guestfish-actions.pod:1481
8239 msgid "get-attach-method"
8240 msgstr ""
8241
8242 #. type: verbatim
8243 #: ../fish/guestfish-actions.pod:1483
8244 #, no-wrap
8245 msgid ""
8246 " get-attach-method\n"
8247 "\n"
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../fish/guestfish-actions.pod:1485
8252 msgid "Return the current attach method.  See L</set-attach-method>."
8253 msgstr ""
8254
8255 #. type: =head2
8256 #: ../fish/guestfish-actions.pod:1487
8257 msgid "get-autosync"
8258 msgstr ""
8259
8260 #. type: verbatim
8261 #: ../fish/guestfish-actions.pod:1489
8262 #, no-wrap
8263 msgid ""
8264 " get-autosync\n"
8265 "\n"
8266 msgstr ""
8267
8268 #. type: textblock
8269 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
8270 msgid "Get the autosync flag."
8271 msgstr ""
8272
8273 #. type: =head2
8274 #: ../fish/guestfish-actions.pod:1493
8275 msgid "get-direct"
8276 msgstr ""
8277
8278 #. type: verbatim
8279 #: ../fish/guestfish-actions.pod:1495
8280 #, no-wrap
8281 msgid ""
8282 " get-direct\n"
8283 "\n"
8284 msgstr ""
8285
8286 #. type: textblock
8287 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
8288 msgid "Return the direct appliance mode flag."
8289 msgstr ""
8290
8291 #. type: =head2
8292 #: ../fish/guestfish-actions.pod:1499
8293 msgid "get-e2label"
8294 msgstr ""
8295
8296 #. type: verbatim
8297 #: ../fish/guestfish-actions.pod:1501
8298 #, no-wrap
8299 msgid ""
8300 " get-e2label device\n"
8301 "\n"
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
8306 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8307 msgstr ""
8308
8309 #. type: textblock
8310 #: ../fish/guestfish-actions.pod:1506
8311 msgid ""
8312 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8313 "instead."
8314 msgstr ""
8315
8316 #. type: =head2
8317 #: ../fish/guestfish-actions.pod:1513
8318 msgid "get-e2uuid"
8319 msgstr ""
8320
8321 #. type: verbatim
8322 #: ../fish/guestfish-actions.pod:1515
8323 #, no-wrap
8324 msgid ""
8325 " get-e2uuid device\n"
8326 "\n"
8327 msgstr ""
8328
8329 #. type: textblock
8330 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
8331 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1520
8336 msgid ""
8337 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8338 "instead."
8339 msgstr ""
8340
8341 #. type: =head2
8342 #: ../fish/guestfish-actions.pod:1527
8343 msgid "get-memsize"
8344 msgstr ""
8345
8346 #. type: verbatim
8347 #: ../fish/guestfish-actions.pod:1529
8348 #, no-wrap
8349 msgid ""
8350 " get-memsize\n"
8351 "\n"
8352 msgstr ""
8353
8354 #. type: textblock
8355 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
8356 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1534
8361 msgid ""
8362 "If L</set-memsize> was not called on this handle, and if "
8363 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8364 "value for memsize."
8365 msgstr ""
8366
8367 #. type: textblock
8368 #: ../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
8369 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8370 msgstr ""
8371
8372 #. type: =head2
8373 #: ../fish/guestfish-actions.pod:1541
8374 msgid "get-network"
8375 msgstr ""
8376
8377 #. type: verbatim
8378 #: ../fish/guestfish-actions.pod:1543
8379 #, no-wrap
8380 msgid ""
8381 " get-network\n"
8382 "\n"
8383 msgstr ""
8384
8385 #. type: textblock
8386 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
8387 msgid "This returns the enable network flag."
8388 msgstr ""
8389
8390 #. type: =head2
8391 #: ../fish/guestfish-actions.pod:1547
8392 msgid "get-path"
8393 msgstr ""
8394
8395 #. type: verbatim
8396 #: ../fish/guestfish-actions.pod:1549
8397 #, no-wrap
8398 msgid ""
8399 " get-path\n"
8400 "\n"
8401 msgstr ""
8402
8403 #. type: textblock
8404 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
8405 msgid "Return the current search path."
8406 msgstr ""
8407
8408 #. type: textblock
8409 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
8410 msgid ""
8411 "This is always non-NULL.  If it wasn't set already, then this will return "
8412 "the default path."
8413 msgstr ""
8414
8415 #. type: =head2
8416 #: ../fish/guestfish-actions.pod:1556
8417 msgid "get-pgroup"
8418 msgstr ""
8419
8420 #. type: verbatim
8421 #: ../fish/guestfish-actions.pod:1558
8422 #, no-wrap
8423 msgid ""
8424 " get-pgroup\n"
8425 "\n"
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
8430 msgid "This returns the process group flag."
8431 msgstr ""
8432
8433 #. type: =head2
8434 #: ../fish/guestfish-actions.pod:1562
8435 msgid "get-pid"
8436 msgstr ""
8437
8438 #. type: =head2
8439 #: ../fish/guestfish-actions.pod:1564
8440 msgid "pid"
8441 msgstr ""
8442
8443 #. type: verbatim
8444 #: ../fish/guestfish-actions.pod:1566
8445 #, no-wrap
8446 msgid ""
8447 " get-pid\n"
8448 "\n"
8449 msgstr ""
8450
8451 #. type: textblock
8452 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
8453 msgid ""
8454 "Return the process ID of the qemu subprocess.  If there is no qemu "
8455 "subprocess, then this will return an error."
8456 msgstr ""
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
8460 msgid "This is an internal call used for debugging and testing."
8461 msgstr ""
8462
8463 #. type: =head2
8464 #: ../fish/guestfish-actions.pod:1573
8465 msgid "get-qemu"
8466 msgstr ""
8467
8468 #. type: verbatim
8469 #: ../fish/guestfish-actions.pod:1575
8470 #, no-wrap
8471 msgid ""
8472 " get-qemu\n"
8473 "\n"
8474 msgstr ""
8475
8476 #. type: textblock
8477 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
8478 msgid "Return the current qemu binary."
8479 msgstr ""
8480
8481 #. type: textblock
8482 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
8483 msgid ""
8484 "This is always non-NULL.  If it wasn't set already, then this will return "
8485 "the default qemu binary name."
8486 msgstr ""
8487
8488 #. type: =head2
8489 #: ../fish/guestfish-actions.pod:1582
8490 msgid "get-recovery-proc"
8491 msgstr ""
8492
8493 #. type: verbatim
8494 #: ../fish/guestfish-actions.pod:1584
8495 #, no-wrap
8496 msgid ""
8497 " get-recovery-proc\n"
8498 "\n"
8499 msgstr ""
8500
8501 #. type: textblock
8502 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
8503 msgid "Return the recovery process enabled flag."
8504 msgstr ""
8505
8506 #. type: =head2
8507 #: ../fish/guestfish-actions.pod:1588
8508 msgid "get-selinux"
8509 msgstr ""
8510
8511 #. type: verbatim
8512 #: ../fish/guestfish-actions.pod:1590
8513 #, no-wrap
8514 msgid ""
8515 " get-selinux\n"
8516 "\n"
8517 msgstr ""
8518
8519 #. type: textblock
8520 #: ../fish/guestfish-actions.pod:1592
8521 msgid ""
8522 "This returns the current setting of the selinux flag which is passed to the "
8523 "appliance at boot time.  See L</set-selinux>."
8524 msgstr ""
8525
8526 #. type: =head2
8527 #: ../fish/guestfish-actions.pod:1598
8528 msgid "get-smp"
8529 msgstr ""
8530
8531 #. type: verbatim
8532 #: ../fish/guestfish-actions.pod:1600
8533 #, no-wrap
8534 msgid ""
8535 " get-smp\n"
8536 "\n"
8537 msgstr ""
8538
8539 #. type: textblock
8540 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
8541 msgid "This returns the number of virtual CPUs assigned to the appliance."
8542 msgstr ""
8543
8544 #. type: =head2
8545 #: ../fish/guestfish-actions.pod:1604
8546 msgid "get-state"
8547 msgstr ""
8548
8549 #. type: verbatim
8550 #: ../fish/guestfish-actions.pod:1606
8551 #, no-wrap
8552 msgid ""
8553 " get-state\n"
8554 "\n"
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
8559 msgid ""
8560 "This returns the current state as an opaque integer.  This is only useful "
8561 "for printing debug and internal error messages."
8562 msgstr ""
8563
8564 #. type: textblock
8565 #: ../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
8566 msgid "For more information on states, see L<guestfs(3)>."
8567 msgstr ""
8568
8569 #. type: =head2
8570 #: ../fish/guestfish-actions.pod:1613
8571 msgid "get-trace"
8572 msgstr ""
8573
8574 #. type: verbatim
8575 #: ../fish/guestfish-actions.pod:1615
8576 #, no-wrap
8577 msgid ""
8578 " get-trace\n"
8579 "\n"
8580 msgstr ""
8581
8582 #. type: textblock
8583 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
8584 msgid "Return the command trace flag."
8585 msgstr ""
8586
8587 #. type: =head2
8588 #: ../fish/guestfish-actions.pod:1619
8589 msgid "get-umask"
8590 msgstr ""
8591
8592 #. type: verbatim
8593 #: ../fish/guestfish-actions.pod:1621
8594 #, no-wrap
8595 msgid ""
8596 " get-umask\n"
8597 "\n"
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:1623
8602 msgid ""
8603 "Return the current umask.  By default the umask is C<022> unless it has been "
8604 "set by calling L</umask>."
8605 msgstr ""
8606
8607 #. type: =head2
8608 #: ../fish/guestfish-actions.pod:1626
8609 msgid "get-verbose"
8610 msgstr ""
8611
8612 #. type: verbatim
8613 #: ../fish/guestfish-actions.pod:1628
8614 #, no-wrap
8615 msgid ""
8616 " get-verbose\n"
8617 "\n"
8618 msgstr ""
8619
8620 #. type: textblock
8621 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
8622 msgid "This returns the verbose messages flag."
8623 msgstr ""
8624
8625 #. type: =head2
8626 #: ../fish/guestfish-actions.pod:1632
8627 msgid "getcon"
8628 msgstr ""
8629
8630 #. type: verbatim
8631 #: ../fish/guestfish-actions.pod:1634
8632 #, no-wrap
8633 msgid ""
8634 " getcon\n"
8635 "\n"
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
8640 msgid "This gets the SELinux security context of the daemon."
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1638
8645 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8646 msgstr ""
8647
8648 #. type: =head2
8649 #: ../fish/guestfish-actions.pod:1641
8650 msgid "getxattr"
8651 msgstr ""
8652
8653 #. type: verbatim
8654 #: ../fish/guestfish-actions.pod:1643
8655 #, no-wrap
8656 msgid ""
8657 " getxattr path name\n"
8658 "\n"
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../fish/guestfish-actions.pod:1645
8663 msgid ""
8664 "Get a single extended attribute from file C<path> named C<name>.  This call "
8665 "follows symlinks.  If you want to lookup an extended attribute for the "
8666 "symlink itself, use L</lgetxattr>."
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
8671 msgid ""
8672 "Normally it is better to get all extended attributes from a file in one go "
8673 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8674 "buggy and do not provide a way to list out attributes.  For these "
8675 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8676 "attributes you want in advance and call this function."
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722 ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
8681 msgid ""
8682 "Extended attribute values are blobs of binary data.  If there is no extended "
8683 "attribute named C<name>, this returns an error."
8684 msgstr ""
8685
8686 #. type: textblock
8687 #: ../fish/guestfish-actions.pod:1659
8688 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8689 msgstr ""
8690
8691 #. type: =head2
8692 #: ../fish/guestfish-actions.pod:1661
8693 msgid "getxattrs"
8694 msgstr ""
8695
8696 #. type: verbatim
8697 #: ../fish/guestfish-actions.pod:1663
8698 #, no-wrap
8699 msgid ""
8700 " getxattrs path\n"
8701 "\n"
8702 msgstr ""
8703
8704 #. type: textblock
8705 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
8706 msgid "This call lists the extended attributes of the file or directory C<path>."
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
8711 msgid ""
8712 "At the system call level, this is a combination of the L<listxattr(2)> and "
8713 "L<getxattr(2)> calls."
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../fish/guestfish-actions.pod:1671
8718 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8719 msgstr ""
8720
8721 #. type: =head2
8722 #: ../fish/guestfish-actions.pod:1673
8723 msgid "glob-expand"
8724 msgstr ""
8725
8726 #. type: verbatim
8727 #: ../fish/guestfish-actions.pod:1675
8728 #, no-wrap
8729 msgid ""
8730 " glob-expand pattern\n"
8731 "\n"
8732 msgstr ""
8733
8734 #. type: textblock
8735 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
8736 msgid ""
8737 "This command searches for all the pathnames matching C<pattern> according to "
8738 "the wildcard expansion rules used by the shell."
8739 msgstr ""
8740
8741 #. type: textblock
8742 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
8743 msgid "If no paths match, then this returns an empty list (note: not an error)."
8744 msgstr ""
8745
8746 #. type: textblock
8747 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
8748 msgid ""
8749 "It is just a wrapper around the C L<glob(3)> function with flags "
8750 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
8751 msgstr ""
8752
8753 #. type: =head2
8754 #: ../fish/guestfish-actions.pod:1688
8755 msgid "grep"
8756 msgstr ""
8757
8758 #. type: verbatim
8759 #: ../fish/guestfish-actions.pod:1690
8760 #, no-wrap
8761 msgid ""
8762 " grep regex path\n"
8763 "\n"
8764 msgstr ""
8765
8766 #. type: textblock
8767 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
8768 msgid "This calls the external C<grep> program and returns the matching lines."
8769 msgstr ""
8770
8771 #. type: =head2
8772 #: ../fish/guestfish-actions.pod:1698
8773 msgid "grepi"
8774 msgstr ""
8775
8776 #. type: verbatim
8777 #: ../fish/guestfish-actions.pod:1700
8778 #, no-wrap
8779 msgid ""
8780 " grepi regex path\n"
8781 "\n"
8782 msgstr ""
8783
8784 #. type: textblock
8785 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
8786 msgid "This calls the external C<grep -i> program and returns the matching lines."
8787 msgstr ""
8788
8789 #. type: =head2
8790 #: ../fish/guestfish-actions.pod:1708
8791 msgid "grub-install"
8792 msgstr ""
8793
8794 #. type: verbatim
8795 #: ../fish/guestfish-actions.pod:1710
8796 #, no-wrap
8797 msgid ""
8798 " grub-install root device\n"
8799 "\n"
8800 msgstr ""
8801
8802 #. type: textblock
8803 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
8804 msgid ""
8805 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8806 "with the root directory being C<root>."
8807 msgstr ""
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
8811 msgid ""
8812 "There is currently no way in the API to install grub2, which is used by most "
8813 "modern Linux guests.  It is possible to run the grub2 command from the "
8814 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8815 msgstr ""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
8819 msgid ""
8820 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8821 "compatible with itself, so this only works in rather narrow circumstances.  "
8822 "Careful testing with each guest version is advisable."
8823 msgstr ""
8824
8825 #. type: textblock
8826 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
8827 msgid ""
8828 "If grub-install reports the error \"No suitable drive was found in the "
8829 "generated device map.\" it may be that you need to create a "
8830 "C</boot/grub/device.map> file first that contains the mapping between grub "
8831 "device names and Linux device names.  It is usually sufficient to create a "
8832 "file containing:"
8833 msgstr ""
8834
8835 #. type: verbatim
8836 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
8837 #, no-wrap
8838 msgid ""
8839 " (hd0) /dev/vda\n"
8840 "\n"
8841 msgstr ""
8842
8843 #. type: textblock
8844 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
8845 msgid "replacing C</dev/vda> with the name of the installation device."
8846 msgstr ""
8847
8848 #. type: =head2
8849 #: ../fish/guestfish-actions.pod:1748
8850 msgid "head"
8851 msgstr ""
8852
8853 #. type: verbatim
8854 #: ../fish/guestfish-actions.pod:1750
8855 #, no-wrap
8856 msgid ""
8857 " head path\n"
8858 "\n"
8859 msgstr ""
8860
8861 #. type: textblock
8862 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
8863 msgid ""
8864 "This command returns up to the first 10 lines of a file as a list of "
8865 "strings."
8866 msgstr ""
8867
8868 #. type: =head2
8869 #: ../fish/guestfish-actions.pod:1758
8870 msgid "head-n"
8871 msgstr ""
8872
8873 #. type: verbatim
8874 #: ../fish/guestfish-actions.pod:1760
8875 #, no-wrap
8876 msgid ""
8877 " head-n nrlines path\n"
8878 "\n"
8879 msgstr ""
8880
8881 #. type: textblock
8882 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
8883 msgid ""
8884 "If the parameter C<nrlines> is a positive number, this returns the first "
8885 "C<nrlines> lines of the file C<path>."
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
8890 msgid ""
8891 "If the parameter C<nrlines> is a negative number, this returns lines from "
8892 "the file C<path>, excluding the last C<nrlines> lines."
8893 msgstr ""
8894
8895 #. type: textblock
8896 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7609
8897 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8898 msgstr ""
8899
8900 #. type: =head2
8901 #: ../fish/guestfish-actions.pod:1773
8902 msgid "hexdump"
8903 msgstr ""
8904
8905 #. type: verbatim
8906 #: ../fish/guestfish-actions.pod:1775
8907 #, no-wrap
8908 msgid ""
8909 " hexdump path\n"
8910 "\n"
8911 msgstr ""
8912
8913 #. type: textblock
8914 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
8915 msgid ""
8916 "This runs C<hexdump -C> on the given C<path>.  The result is the "
8917 "human-readable, canonical hex dump of the file."
8918 msgstr ""
8919
8920 #. type: =head2
8921 #: ../fish/guestfish-actions.pod:1783
8922 msgid "initrd-cat"
8923 msgstr ""
8924
8925 #. type: verbatim
8926 #: ../fish/guestfish-actions.pod:1785
8927 #, no-wrap
8928 msgid ""
8929 " initrd-cat initrdpath filename\n"
8930 "\n"
8931 msgstr ""
8932
8933 #. type: textblock
8934 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
8935 msgid ""
8936 "This command unpacks the file C<filename> from the initrd file called "
8937 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8938 "character."
8939 msgstr ""
8940
8941 #. type: textblock
8942 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
8943 msgid ""
8944 "For example, in guestfish you could use the following command to examine the "
8945 "boot script (usually called C</init>)  contained in a Linux initrd or "
8946 "initramfs image:"
8947 msgstr ""
8948
8949 #. type: verbatim
8950 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
8951 #, no-wrap
8952 msgid ""
8953 " initrd-cat /boot/initrd-<version>.img init\n"
8954 "\n"
8955 msgstr ""
8956
8957 #. type: textblock
8958 #: ../fish/guestfish-actions.pod:1797
8959 msgid "See also L</initrd-list>."
8960 msgstr ""
8961
8962 #. type: =head2
8963 #: ../fish/guestfish-actions.pod:1802
8964 msgid "initrd-list"
8965 msgstr ""
8966
8967 #. type: verbatim
8968 #: ../fish/guestfish-actions.pod:1804
8969 #, no-wrap
8970 msgid ""
8971 " initrd-list path\n"
8972 "\n"
8973 msgstr ""
8974
8975 #. type: textblock
8976 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
8977 msgid "This command lists out files contained in an initrd."
8978 msgstr ""
8979
8980 #. type: textblock
8981 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
8982 msgid ""
8983 "The files are listed without any initial C</> character.  The files are "
8984 "listed in the order they appear (not necessarily alphabetical).  Directory "
8985 "names are listed as separate items."
8986 msgstr ""
8987
8988 #. type: textblock
8989 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
8990 msgid ""
8991 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8992 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8993 "files)."
8994 msgstr ""
8995
8996 #. type: =head2
8997 #: ../fish/guestfish-actions.pod:1816
8998 msgid "inotify-add-watch"
8999 msgstr ""
9000
9001 #. type: verbatim
9002 #: ../fish/guestfish-actions.pod:1818
9003 #, no-wrap
9004 msgid ""
9005 " inotify-add-watch path mask\n"
9006 "\n"
9007 msgstr ""
9008
9009 #. type: textblock
9010 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9011 msgid "Watch C<path> for the events listed in C<mask>."
9012 msgstr ""
9013
9014 #. type: textblock
9015 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9016 msgid ""
9017 "Note that if C<path> is a directory then events within that directory are "
9018 "watched, but this does I<not> happen recursively (in subdirectories)."
9019 msgstr ""
9020
9021 #. type: textblock
9022 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9023 msgid ""
9024 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9025 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9026 msgstr ""
9027
9028 #. type: =head2
9029 #: ../fish/guestfish-actions.pod:1830
9030 msgid "inotify-close"
9031 msgstr ""
9032
9033 #. type: verbatim
9034 #: ../fish/guestfish-actions.pod:1832
9035 #, no-wrap
9036 msgid ""
9037 " inotify-close\n"
9038 "\n"
9039 msgstr ""
9040
9041 #. type: textblock
9042 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9043 msgid ""
9044 "This closes the inotify handle which was previously opened by inotify_init.  "
9045 "It removes all watches, throws away any pending events, and deallocates all "
9046 "resources."
9047 msgstr ""
9048
9049 #. type: =head2
9050 #: ../fish/guestfish-actions.pod:1838
9051 msgid "inotify-files"
9052 msgstr ""
9053
9054 #. type: verbatim
9055 #: ../fish/guestfish-actions.pod:1840
9056 #, no-wrap
9057 msgid ""
9058 " inotify-files\n"
9059 "\n"
9060 msgstr ""
9061
9062 #. type: textblock
9063 #: ../fish/guestfish-actions.pod:1842
9064 msgid ""
9065 "This function is a helpful wrapper around L</inotify-read> which just "
9066 "returns a list of pathnames of objects that were touched.  The returned "
9067 "pathnames are sorted and deduplicated."
9068 msgstr ""
9069
9070 #. type: =head2
9071 #: ../fish/guestfish-actions.pod:1846
9072 msgid "inotify-init"
9073 msgstr ""
9074
9075 #. type: verbatim
9076 #: ../fish/guestfish-actions.pod:1848
9077 #, no-wrap
9078 msgid ""
9079 " inotify-init maxevents\n"
9080 "\n"
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9085 msgid ""
9086 "This command creates a new inotify handle.  The inotify subsystem can be "
9087 "used to notify events which happen to objects in the guest filesystem."
9088 msgstr ""
9089
9090 #. type: textblock
9091 #: ../fish/guestfish-actions.pod:1854
9092 msgid ""
9093 "C<maxevents> is the maximum number of events which will be queued up between "
9094 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9095 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9096 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9097 "but records the fact that it threw them away by setting a flag "
9098 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9099 msgstr ""
9100
9101 #. type: textblock
9102 #: ../fish/guestfish-actions.pod:1864
9103 msgid ""
9104 "Before any events are generated, you have to add some watches to the "
9105 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9106 "L</inotify-watch-all>."
9107 msgstr ""
9108
9109 #. type: textblock
9110 #: ../fish/guestfish-actions.pod:1870
9111 msgid ""
9112 "Queued up events should be read periodically by calling L</inotify-read> (or "
9113 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9114 "If you don't read the events out often enough then you risk the internal "
9115 "queue overflowing."
9116 msgstr ""
9117
9118 #. type: textblock
9119 #: ../fish/guestfish-actions.pod:1877
9120 msgid ""
9121 "The handle should be closed after use by calling L</inotify-close>.  This "
9122 "also removes any watches automatically."
9123 msgstr ""
9124
9125 #. type: textblock
9126 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9127 msgid ""
9128 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9129 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9130 "that there is one global inotify handle per libguestfs instance."
9131 msgstr ""
9132
9133 #. type: =head2
9134 #: ../fish/guestfish-actions.pod:1886
9135 msgid "inotify-read"
9136 msgstr ""
9137
9138 #. type: verbatim
9139 #: ../fish/guestfish-actions.pod:1888
9140 #, no-wrap
9141 msgid ""
9142 " inotify-read\n"
9143 "\n"
9144 msgstr ""
9145
9146 #. type: textblock
9147 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9148 msgid ""
9149 "Return the complete queue of events that have happened since the previous "
9150 "read call."
9151 msgstr ""
9152
9153 #. type: textblock
9154 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
9155 msgid "If no events have happened, this returns an empty list."
9156 msgstr ""
9157
9158 #. type: textblock
9159 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
9160 msgid ""
9161 "I<Note>: In order to make sure that all events have been read, you must call "
9162 "this function repeatedly until it returns an empty list.  The reason is that "
9163 "the call will read events up to the maximum appliance-to-host message size "
9164 "and leave remaining events in the queue."
9165 msgstr ""
9166
9167 #. type: =head2
9168 #: ../fish/guestfish-actions.pod:1901
9169 msgid "inotify-rm-watch"
9170 msgstr ""
9171
9172 #. type: verbatim
9173 #: ../fish/guestfish-actions.pod:1903
9174 #, no-wrap
9175 msgid ""
9176 " inotify-rm-watch wd\n"
9177 "\n"
9178 msgstr ""
9179
9180 #. type: textblock
9181 #: ../fish/guestfish-actions.pod:1905
9182 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9183 msgstr ""
9184
9185 #. type: =head2
9186 #: ../fish/guestfish-actions.pod:1908
9187 msgid "inspect-get-arch"
9188 msgstr ""
9189
9190 #. type: verbatim
9191 #: ../fish/guestfish-actions.pod:1910
9192 #, no-wrap
9193 msgid ""
9194 " inspect-get-arch root\n"
9195 "\n"
9196 msgstr ""
9197
9198 #. type: textblock
9199 #: ../fish/guestfish-actions.pod:1912
9200 msgid ""
9201 "This returns the architecture of the inspected operating system.  The "
9202 "possible return values are listed under L</file-architecture>."
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
9207 msgid ""
9208 "If the architecture could not be determined, then the string C<unknown> is "
9209 "returned."
9210 msgstr ""
9211
9212 #. type: textblock
9213 #: ../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
9214 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9215 msgstr ""
9216
9217 #. type: =head2
9218 #: ../fish/guestfish-actions.pod:1921
9219 msgid "inspect-get-distro"
9220 msgstr ""
9221
9222 #. type: verbatim
9223 #: ../fish/guestfish-actions.pod:1923
9224 #, no-wrap
9225 msgid ""
9226 " inspect-get-distro root\n"
9227 "\n"
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
9232 msgid "This returns the distro (distribution) of the inspected operating system."
9233 msgstr ""
9234
9235 #. type: textblock
9236 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
9237 msgid "Currently defined distros are:"
9238 msgstr ""
9239
9240 #. type: =item
9241 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
9242 msgid "\"archlinux\""
9243 msgstr ""
9244
9245 #. type: textblock
9246 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
9247 msgid "Arch Linux."
9248 msgstr ""
9249
9250 #. type: =item
9251 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
9252 msgid "\"centos\""
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
9257 msgid "CentOS."
9258 msgstr ""
9259
9260 #. type: =item
9261 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
9262 msgid "\"debian\""
9263 msgstr ""
9264
9265 #. type: textblock
9266 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
9267 msgid "Debian."
9268 msgstr ""
9269
9270 #. type: =item
9271 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
9272 msgid "\"fedora\""
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
9277 msgid "Fedora."
9278 msgstr ""
9279
9280 #. type: =item
9281 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
9282 msgid "\"gentoo\""
9283 msgstr ""
9284
9285 #. type: textblock
9286 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
9287 msgid "Gentoo."
9288 msgstr ""
9289
9290 #. type: =item
9291 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
9292 msgid "\"linuxmint\""
9293 msgstr ""
9294
9295 #. type: textblock
9296 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
9297 msgid "Linux Mint."
9298 msgstr ""
9299
9300 #. type: =item
9301 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
9302 msgid "\"mageia\""
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
9307 msgid "Mageia."
9308 msgstr ""
9309
9310 #. type: =item
9311 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
9312 msgid "\"mandriva\""
9313 msgstr ""
9314
9315 #. type: textblock
9316 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
9317 msgid "Mandriva."
9318 msgstr ""
9319
9320 #. type: =item
9321 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
9322 msgid "\"meego\""
9323 msgstr ""
9324
9325 #. type: textblock
9326 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
9327 msgid "MeeGo."
9328 msgstr ""
9329
9330 #. type: =item
9331 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
9332 msgid "\"opensuse\""
9333 msgstr ""
9334
9335 #. type: textblock
9336 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
9337 msgid "OpenSUSE."
9338 msgstr ""
9339
9340 #. type: =item
9341 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
9342 msgid "\"pardus\""
9343 msgstr ""
9344
9345 #. type: textblock
9346 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
9347 msgid "Pardus."
9348 msgstr ""
9349
9350 #. type: =item
9351 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
9352 msgid "\"redhat-based\""
9353 msgstr ""
9354
9355 #. type: textblock
9356 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
9357 msgid "Some Red Hat-derived distro."
9358 msgstr ""
9359
9360 #. type: =item
9361 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
9362 msgid "\"rhel\""
9363 msgstr ""
9364
9365 #. type: textblock
9366 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
9367 msgid "Red Hat Enterprise Linux."
9368 msgstr ""
9369
9370 #. type: =item
9371 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
9372 msgid "\"scientificlinux\""
9373 msgstr ""
9374
9375 #. type: textblock
9376 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
9377 msgid "Scientific Linux."
9378 msgstr ""
9379
9380 #. type: =item
9381 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
9382 msgid "\"slackware\""
9383 msgstr ""
9384
9385 #. type: textblock
9386 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
9387 msgid "Slackware."
9388 msgstr ""
9389
9390 #. type: =item
9391 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
9392 msgid "\"ttylinux\""
9393 msgstr ""
9394
9395 #. type: textblock
9396 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
9397 msgid "ttylinux."
9398 msgstr ""
9399
9400 #. type: =item
9401 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
9402 msgid "\"ubuntu\""
9403 msgstr ""
9404
9405 #. type: textblock
9406 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
9407 msgid "Ubuntu."
9408 msgstr ""
9409
9410 #. type: =item
9411 #: ../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
9412 msgid "\"unknown\""
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
9417 msgid "The distro could not be determined."
9418 msgstr ""
9419
9420 #. type: =item
9421 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
9422 msgid "\"windows\""
9423 msgstr ""
9424
9425 #. type: textblock
9426 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
9427 msgid ""
9428 "Windows does not have distributions.  This string is returned if the OS type "
9429 "is Windows."
9430 msgstr ""
9431
9432 #. type: textblock
9433 #: ../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
9434 msgid ""
9435 "Future versions of libguestfs may return other strings here.  The caller "
9436 "should be prepared to handle any string."
9437 msgstr ""
9438
9439 #. type: =head2
9440 #: ../fish/guestfish-actions.pod:2016
9441 msgid "inspect-get-drive-mappings"
9442 msgstr ""
9443
9444 #. type: verbatim
9445 #: ../fish/guestfish-actions.pod:2018
9446 #, no-wrap
9447 msgid ""
9448 " inspect-get-drive-mappings root\n"
9449 "\n"
9450 msgstr ""
9451
9452 #. type: textblock
9453 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
9454 msgid ""
9455 "This call is useful for Windows which uses a primitive system of assigning "
9456 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9457 "Windows Registry to find out how disks/partitions are mapped to drive "
9458 "letters, and returns a hash table as in the example below:"
9459 msgstr ""
9460
9461 #. type: verbatim
9462 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
9463 #, no-wrap
9464 msgid ""
9465 " C      =>     /dev/vda2\n"
9466 " E      =>     /dev/vdb1\n"
9467 " F      =>     /dev/vdc1\n"
9468 "\n"
9469 msgstr ""
9470
9471 #. type: textblock
9472 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
9473 msgid ""
9474 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9475 "and just contains the drive letter, without the customary colon separator "
9476 "character."
9477 msgstr ""
9478
9479 #. type: textblock
9480 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
9481 msgid ""
9482 "In future we may support other operating systems that also used drive "
9483 "letters, but the keys for those might not be case insensitive and might be "
9484 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9485 "C<h1> etc."
9486 msgstr ""
9487
9488 #. type: textblock
9489 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
9490 msgid ""
9491 "For Windows guests, currently only hard drive mappings are returned.  "
9492 "Removable disks (eg. DVD-ROMs) are ignored."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
9497 msgid ""
9498 "For guests that do not use drive mappings, or if the drive mappings could "
9499 "not be determined, this returns an empty hash table."
9500 msgstr ""
9501
9502 #. type: textblock
9503 #: ../fish/guestfish-actions.pod:2045
9504 msgid ""
9505 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9506 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
9507 msgstr ""
9508
9509 #. type: =head2
9510 #: ../fish/guestfish-actions.pod:2049
9511 msgid "inspect-get-filesystems"
9512 msgstr ""
9513
9514 #. type: verbatim
9515 #: ../fish/guestfish-actions.pod:2051
9516 #, no-wrap
9517 msgid ""
9518 " inspect-get-filesystems root\n"
9519 "\n"
9520 msgstr ""
9521
9522 #. type: textblock
9523 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
9524 msgid ""
9525 "This returns a list of all the filesystems that we think are associated with "
9526 "this operating system.  This includes the root filesystem, other ordinary "
9527 "filesystems, and non-mounted devices like swap partitions."
9528 msgstr ""
9529
9530 #. type: textblock
9531 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
9532 msgid ""
9533 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9534 "to be shared between operating systems."
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:2061
9539 msgid ""
9540 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9541 "L</inspect-get-mountpoints>."
9542 msgstr ""
9543
9544 #. type: =head2
9545 #: ../fish/guestfish-actions.pod:2064
9546 msgid "inspect-get-format"
9547 msgstr ""
9548
9549 #. type: verbatim
9550 #: ../fish/guestfish-actions.pod:2066
9551 #, no-wrap
9552 msgid ""
9553 " inspect-get-format root\n"
9554 "\n"
9555 msgstr ""
9556
9557 #. type: textblock
9558 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
9559 msgid ""
9560 "This returns the format of the inspected operating system.  You can use it "
9561 "to detect install images, live CDs and similar."
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
9566 msgid "Currently defined formats are:"
9567 msgstr ""
9568
9569 #. type: =item
9570 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
9571 msgid "\"installed\""
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
9576 msgid "This is an installed operating system."
9577 msgstr ""
9578
9579 #. type: =item
9580 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
9581 msgid "\"installer\""
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
9586 msgid ""
9587 "The disk image being inspected is not an installed operating system, but a "
9588 "I<bootable> install disk, live CD, or similar."
9589 msgstr ""
9590
9591 #. type: textblock
9592 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
9593 msgid "The format of this disk image is not known."
9594 msgstr ""
9595
9596 #. type: =head2
9597 #: ../fish/guestfish-actions.pod:2095
9598 msgid "inspect-get-hostname"
9599 msgstr ""
9600
9601 #. type: verbatim
9602 #: ../fish/guestfish-actions.pod:2097
9603 #, no-wrap
9604 msgid ""
9605 " inspect-get-hostname root\n"
9606 "\n"
9607 msgstr ""
9608
9609 #. type: textblock
9610 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
9611 msgid ""
9612 "This function returns the hostname of the operating system as found by "
9613 "inspection of the guest's configuration files."
9614 msgstr ""
9615
9616 #. type: textblock
9617 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
9618 msgid ""
9619 "If the hostname could not be determined, then the string C<unknown> is "
9620 "returned."
9621 msgstr ""
9622
9623 #. type: =head2
9624 #: ../fish/guestfish-actions.pod:2107
9625 msgid "inspect-get-icon"
9626 msgstr ""
9627
9628 #. type: verbatim
9629 #: ../fish/guestfish-actions.pod:2109
9630 #, no-wrap
9631 msgid ""
9632 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
9633 "\n"
9634 msgstr ""
9635
9636 #. type: textblock
9637 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
9638 msgid ""
9639 "This function returns an icon corresponding to the inspected operating "
9640 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9641 "to PNG if necessary)."
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
9646 msgid ""
9647 "If it was not possible to get an icon this function returns a zero-length "
9648 "(non-NULL) buffer.  I<Callers must check for this case>."
9649 msgstr ""
9650
9651 #. type: textblock
9652 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
9653 msgid ""
9654 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9655 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9656 "this file will be returned.  You can disable favicons by passing the "
9657 "optional C<favicon> boolean as false (default is true)."
9658 msgstr ""
9659
9660 #. type: textblock
9661 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
9662 msgid ""
9663 "If finding the favicon fails, then we look in other places in the guest for "
9664 "a suitable icon."
9665 msgstr ""
9666
9667 #. type: textblock
9668 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
9669 msgid ""
9670 "If the optional C<highquality> boolean is true then only high quality icons "
9671 "are returned, which means only icons of high resolution with an alpha "
9672 "channel.  The default (false) is to return any icon we can, even if it is of "
9673 "substandard quality."
9674 msgstr ""
9675
9676 #. type: textblock
9677 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
9678 msgid ""
9679 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9680 "before you call this, since it needs to read information from the guest "
9681 "filesystem during the call."
9682 msgstr ""
9683
9684 #. type: textblock
9685 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
9686 msgid ""
9687 "B<Security:> The icon data comes from the untrusted guest, and should be "
9688 "treated with caution.  PNG files have been known to contain exploits.  "
9689 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9690 "trying to process or display the icon."
9691 msgstr ""
9692
9693 #. type: textblock
9694 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
9695 msgid ""
9696 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9697 "tries to return the largest, highest quality icon available.  The "
9698 "application must scale the icon to the required size."
9699 msgstr ""
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
9703 msgid ""
9704 "Extracting icons from Windows guests requires the external C<wrestool> "
9705 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9706 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9707 "installed separately."
9708 msgstr ""
9709
9710 #. type: textblock
9711 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
9712 msgid ""
9713 "Operating system icons are usually trademarks.  Seek legal advice before "
9714 "using trademarks in applications."
9715 msgstr ""
9716
9717 #. type: =head2
9718 #: ../fish/guestfish-actions.pod:2173
9719 msgid "inspect-get-major-version"
9720 msgstr ""
9721
9722 #. type: verbatim
9723 #: ../fish/guestfish-actions.pod:2175
9724 #, no-wrap
9725 msgid ""
9726 " inspect-get-major-version root\n"
9727 "\n"
9728 msgstr ""
9729
9730 #. type: textblock
9731 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
9732 msgid "This returns the major version number of the inspected operating system."
9733 msgstr ""
9734
9735 #. type: textblock
9736 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
9737 msgid ""
9738 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9739 "popular public names used by the operating system.  Notably the operating "
9740 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9741 "1).  You can find out the real versions corresponding to releases of Windows "
9742 "by consulting Wikipedia or MSDN."
9743 msgstr ""
9744
9745 #. type: textblock
9746 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198 ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
9747 msgid "If the version could not be determined, then C<0> is returned."
9748 msgstr ""
9749
9750 #. type: =head2
9751 #: ../fish/guestfish-actions.pod:2191
9752 msgid "inspect-get-minor-version"
9753 msgstr ""
9754
9755 #. type: verbatim
9756 #: ../fish/guestfish-actions.pod:2193
9757 #, no-wrap
9758 msgid ""
9759 " inspect-get-minor-version root\n"
9760 "\n"
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
9765 msgid "This returns the minor version number of the inspected operating system."
9766 msgstr ""
9767
9768 #. type: textblock
9769 #: ../fish/guestfish-actions.pod:2200
9770 msgid ""
9771 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9772 "L</inspect-get-major-version>."
9773 msgstr ""
9774
9775 #. type: =head2
9776 #: ../fish/guestfish-actions.pod:2203
9777 msgid "inspect-get-mountpoints"
9778 msgstr ""
9779
9780 #. type: verbatim
9781 #: ../fish/guestfish-actions.pod:2205
9782 #, no-wrap
9783 msgid ""
9784 " inspect-get-mountpoints root\n"
9785 "\n"
9786 msgstr ""
9787
9788 #. type: textblock
9789 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
9790 msgid ""
9791 "This returns a hash of where we think the filesystems associated with this "
9792 "operating system should be mounted.  Callers should note that this is at "
9793 "best an educated guess made by reading configuration files such as "
9794 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
9795 "are non-existent or not mountable and callers should be prepared to handle "
9796 "or ignore failures if they try to mount them."
9797 msgstr ""
9798
9799 #. type: textblock
9800 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
9801 msgid ""
9802 "Each element in the returned hashtable has a key which is the path of the "
9803 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9804 "mounted there (eg. C</dev/sda1>)."
9805 msgstr ""
9806
9807 #. type: textblock
9808 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
9809 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
9810 msgstr ""
9811
9812 #. type: textblock
9813 #: ../fish/guestfish-actions.pod:2224
9814 msgid ""
9815 "For operating systems like Windows which still use drive letters, this call "
9816 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9817 "information about the mapping of drive letters to partitions, see "
9818 "L</inspect-get-drive-mappings>."
9819 msgstr ""
9820
9821 #. type: textblock
9822 #: ../fish/guestfish-actions.pod:2230
9823 msgid ""
9824 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9825 "L</inspect-get-filesystems>."
9826 msgstr ""
9827
9828 #. type: =head2
9829 #: ../fish/guestfish-actions.pod:2233
9830 msgid "inspect-get-package-format"
9831 msgstr ""
9832
9833 #. type: verbatim
9834 #: ../fish/guestfish-actions.pod:2235
9835 #, no-wrap
9836 msgid ""
9837 " inspect-get-package-format root\n"
9838 "\n"
9839 msgstr ""
9840
9841 #. type: textblock
9842 #: ../fish/guestfish-actions.pod:2237
9843 msgid ""
9844 "This function and L</inspect-get-package-management> return the package "
9845 "format and package management tool used by the inspected operating system.  "
9846 "For example for Fedora these functions would return C<rpm> (package format) "
9847 "and C<yum> (package management)."
9848 msgstr ""
9849
9850 #. type: textblock
9851 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
9852 msgid ""
9853 "This returns the string C<unknown> if we could not determine the package "
9854 "format I<or> if the operating system does not have a real packaging system "
9855 "(eg. Windows)."
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
9860 msgid ""
9861 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
9862 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
9863 msgstr ""
9864
9865 #. type: =head2
9866 #: ../fish/guestfish-actions.pod:2253
9867 msgid "inspect-get-package-management"
9868 msgstr ""
9869
9870 #. type: verbatim
9871 #: ../fish/guestfish-actions.pod:2255
9872 #, no-wrap
9873 msgid ""
9874 " inspect-get-package-management root\n"
9875 "\n"
9876 msgstr ""
9877
9878 #. type: textblock
9879 #: ../fish/guestfish-actions.pod:2257
9880 msgid ""
9881 "L</inspect-get-package-format> and this function return the package format "
9882 "and package management tool used by the inspected operating system.  For "
9883 "example for Fedora these functions would return C<rpm> (package format) and "
9884 "C<yum> (package management)."
9885 msgstr ""
9886
9887 #. type: textblock
9888 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
9889 msgid ""
9890 "This returns the string C<unknown> if we could not determine the package "
9891 "management tool I<or> if the operating system does not have a real packaging "
9892 "system (eg. Windows)."
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
9897 msgid ""
9898 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9899 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
9900 "versions of libguestfs may return other strings."
9901 msgstr ""
9902
9903 #. type: =head2
9904 #: ../fish/guestfish-actions.pod:2274
9905 msgid "inspect-get-product-name"
9906 msgstr ""
9907
9908 #. type: verbatim
9909 #: ../fish/guestfish-actions.pod:2276
9910 #, no-wrap
9911 msgid ""
9912 " inspect-get-product-name root\n"
9913 "\n"
9914 msgstr ""
9915
9916 #. type: textblock
9917 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
9918 msgid ""
9919 "This returns the product name of the inspected operating system.  The "
9920 "product name is generally some freeform string which can be displayed to the "
9921 "user, but should not be parsed by programs."
9922 msgstr ""
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
9926 msgid ""
9927 "If the product name could not be determined, then the string C<unknown> is "
9928 "returned."
9929 msgstr ""
9930
9931 #. type: =head2
9932 #: ../fish/guestfish-actions.pod:2288
9933 msgid "inspect-get-product-variant"
9934 msgstr ""
9935
9936 #. type: verbatim
9937 #: ../fish/guestfish-actions.pod:2290
9938 #, no-wrap
9939 msgid ""
9940 " inspect-get-product-variant root\n"
9941 "\n"
9942 msgstr ""
9943
9944 #. type: textblock
9945 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
9946 msgid "This returns the product variant of the inspected operating system."
9947 msgstr ""
9948
9949 #. type: textblock
9950 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
9951 msgid ""
9952 "For Windows guests, this returns the contents of the Registry key "
9953 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
9954 "which is usually a string such as C<Client> or C<Server> (other values are "
9955 "possible).  This can be used to distinguish consumer and enterprise versions "
9956 "of Windows that have the same version number (for example, Windows 7 and "
9957 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9958 "the latter is C<Server>)."
9959 msgstr ""
9960
9961 #. type: textblock
9962 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
9963 msgid ""
9964 "For enterprise Linux guests, in future we intend this to return the product "
9965 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9966 "implemented at present."
9967 msgstr ""
9968
9969 #. type: textblock
9970 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
9971 msgid ""
9972 "If the product variant could not be determined, then the string C<unknown> "
9973 "is returned."
9974 msgstr ""
9975
9976 #. type: textblock
9977 #: ../fish/guestfish-actions.pod:2311
9978 msgid ""
9979 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9980 "L</inspect-get-product-name>, L</inspect-get-major-version>."
9981 msgstr ""
9982
9983 #. type: =head2
9984 #: ../fish/guestfish-actions.pod:2315
9985 msgid "inspect-get-roots"
9986 msgstr ""
9987
9988 #. type: verbatim
9989 #: ../fish/guestfish-actions.pod:2317
9990 #, no-wrap
9991 msgid ""
9992 " inspect-get-roots\n"
9993 "\n"
9994 msgstr ""
9995
9996 #. type: textblock
9997 #: ../fish/guestfish-actions.pod:2319
9998 msgid ""
9999 "This function is a convenient way to get the list of root devices, as "
10000 "returned from a previous call to L</inspect-os>, but without redoing the "
10001 "whole inspection process."
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:2323
10006 msgid ""
10007 "This returns an empty list if either no root devices were found or the "
10008 "caller has not called L</inspect-os>."
10009 msgstr ""
10010
10011 #. type: =head2
10012 #: ../fish/guestfish-actions.pod:2328
10013 msgid "inspect-get-type"
10014 msgstr ""
10015
10016 #. type: verbatim
10017 #: ../fish/guestfish-actions.pod:2330
10018 #, no-wrap
10019 msgid ""
10020 " inspect-get-type root\n"
10021 "\n"
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10026 msgid ""
10027 "This returns the type of the inspected operating system.  Currently defined "
10028 "types are:"
10029 msgstr ""
10030
10031 #. type: =item
10032 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10033 msgid "\"linux\""
10034 msgstr ""
10035
10036 #. type: textblock
10037 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10038 msgid "Any Linux-based operating system."
10039 msgstr ""
10040
10041 #. type: textblock
10042 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10043 msgid "Any Microsoft Windows operating system."
10044 msgstr ""
10045
10046 #. type: =item
10047 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10048 msgid "\"freebsd\""
10049 msgstr ""
10050
10051 #. type: textblock
10052 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10053 msgid "FreeBSD."
10054 msgstr ""
10055
10056 #. type: =item
10057 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10058 msgid "\"netbsd\""
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10063 msgid "NetBSD."
10064 msgstr ""
10065
10066 #. type: textblock
10067 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10068 msgid "The operating system type could not be determined."
10069 msgstr ""
10070
10071 #. type: =head2
10072 #: ../fish/guestfish-actions.pod:2364
10073 msgid "inspect-get-windows-current-control-set"
10074 msgstr ""
10075
10076 #. type: verbatim
10077 #: ../fish/guestfish-actions.pod:2366
10078 #, no-wrap
10079 msgid ""
10080 " inspect-get-windows-current-control-set root\n"
10081 "\n"
10082 msgstr ""
10083
10084 #. type: textblock
10085 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10086 msgid ""
10087 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10088 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10089 msgstr ""
10090
10091 #. type: textblock
10092 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10093 msgid ""
10094 "This call assumes that the guest is Windows and that the Registry could be "
10095 "examined by inspection.  If this is not the case then an error is returned."
10096 msgstr ""
10097
10098 #. type: =head2
10099 #: ../fish/guestfish-actions.pod:2377
10100 msgid "inspect-get-windows-systemroot"
10101 msgstr ""
10102
10103 #. type: verbatim
10104 #: ../fish/guestfish-actions.pod:2379
10105 #, no-wrap
10106 msgid ""
10107 " inspect-get-windows-systemroot root\n"
10108 "\n"
10109 msgstr ""
10110
10111 #. type: textblock
10112 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
10113 msgid ""
10114 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10115 "is a directory path such as C</WINDOWS>."
10116 msgstr ""
10117
10118 #. type: textblock
10119 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
10120 msgid ""
10121 "This call assumes that the guest is Windows and that the systemroot could be "
10122 "determined by inspection.  If this is not the case then an error is "
10123 "returned."
10124 msgstr ""
10125
10126 #. type: =head2
10127 #: ../fish/guestfish-actions.pod:2390
10128 msgid "inspect-is-live"
10129 msgstr ""
10130
10131 #. type: verbatim
10132 #: ../fish/guestfish-actions.pod:2392
10133 #, no-wrap
10134 msgid ""
10135 " inspect-is-live root\n"
10136 "\n"
10137 msgstr ""
10138
10139 #. type: textblock
10140 #: ../fish/guestfish-actions.pod:2394
10141 msgid ""
10142 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10143 "then this returns true if a live image was detected on the disk."
10144 msgstr ""
10145
10146 #. type: =head2
10147 #: ../fish/guestfish-actions.pod:2400
10148 msgid "inspect-is-multipart"
10149 msgstr ""
10150
10151 #. type: verbatim
10152 #: ../fish/guestfish-actions.pod:2402
10153 #, no-wrap
10154 msgid ""
10155 " inspect-is-multipart root\n"
10156 "\n"
10157 msgstr ""
10158
10159 #. type: textblock
10160 #: ../fish/guestfish-actions.pod:2404
10161 msgid ""
10162 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10163 "then this returns true if the disk is part of a set."
10164 msgstr ""
10165
10166 #. type: =head2
10167 #: ../fish/guestfish-actions.pod:2410
10168 msgid "inspect-is-netinst"
10169 msgstr ""
10170
10171 #. type: verbatim
10172 #: ../fish/guestfish-actions.pod:2412
10173 #, no-wrap
10174 msgid ""
10175 " inspect-is-netinst root\n"
10176 "\n"
10177 msgstr ""
10178
10179 #. type: textblock
10180 #: ../fish/guestfish-actions.pod:2414
10181 msgid ""
10182 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10183 "then this returns true if the disk is a network installer, ie. not a "
10184 "self-contained install CD but one which is likely to require network access "
10185 "to complete the install."
10186 msgstr ""
10187
10188 #. type: =head2
10189 #: ../fish/guestfish-actions.pod:2422
10190 msgid "inspect-list-applications"
10191 msgstr ""
10192
10193 #. type: verbatim
10194 #: ../fish/guestfish-actions.pod:2424
10195 #, no-wrap
10196 msgid ""
10197 " inspect-list-applications root\n"
10198 "\n"
10199 msgstr ""
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
10203 msgid "Return the list of applications installed in the operating system."
10204 msgstr ""
10205
10206 #. type: textblock
10207 #: ../fish/guestfish-actions.pod:2428
10208 msgid ""
10209 "I<Note:> This call works differently from other parts of the inspection "
10210 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10211 "then mount up the disks, before calling this.  Listing applications is a "
10212 "significantly more difficult operation which requires access to the full "
10213 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10214 "are just returning data cached in the libguestfs handle, this call actually "
10215 "reads parts of the mounted filesystems during the call."
10216 msgstr ""
10217
10218 #. type: textblock
10219 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
10220 msgid ""
10221 "This returns an empty list if the inspection code was not able to determine "
10222 "the list of applications."
10223 msgstr ""
10224
10225 #. type: textblock
10226 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
10227 msgid "The application structure contains the following fields:"
10228 msgstr ""
10229
10230 #. type: =item
10231 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10232 msgid "C<app_name>"
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
10237 msgid ""
10238 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10239 "guests, this is the package name."
10240 msgstr ""
10241
10242 #. type: =item
10243 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
10244 msgid "C<app_display_name>"
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
10249 msgid ""
10250 "The display name of the application, sometimes localized to the install "
10251 "language of the guest operating system."
10252 msgstr ""
10253
10254 #. type: textblock
10255 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
10256 msgid ""
10257 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10258 "to display something can use C<app_name> instead."
10259 msgstr ""
10260
10261 #. type: =item
10262 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
10263 msgid "C<app_epoch>"
10264 msgstr ""
10265
10266 #. type: textblock
10267 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
10268 msgid ""
10269 "For package managers which use epochs, this contains the epoch of the "
10270 "package (an integer).  If unavailable, this is returned as C<0>."
10271 msgstr ""
10272
10273 #. type: =item
10274 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
10275 msgid "C<app_version>"
10276 msgstr ""
10277
10278 #. type: textblock
10279 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
10280 msgid ""
10281 "The version string of the application or package.  If unavailable this is "
10282 "returned as an empty string C<\"\">."
10283 msgstr ""
10284
10285 #. type: =item
10286 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
10287 msgid "C<app_release>"
10288 msgstr ""
10289
10290 #. type: textblock
10291 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
10292 msgid ""
10293 "The release string of the application or package, for package managers that "
10294 "use this.  If unavailable this is returned as an empty string C<\"\">."
10295 msgstr ""
10296
10297 #. type: =item
10298 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
10299 msgid "C<app_install_path>"
10300 msgstr ""
10301
10302 #. type: textblock
10303 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
10304 msgid ""
10305 "The installation path of the application (on operating systems such as "
10306 "Windows which use installation paths).  This path is in the format used by "
10307 "the guest operating system, it is not a libguestfs path."
10308 msgstr ""
10309
10310 #. type: textblock
10311 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
10312 msgid "If unavailable this is returned as an empty string C<\"\">."
10313 msgstr ""
10314
10315 #. type: =item
10316 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
10317 msgid "C<app_trans_path>"
10318 msgstr ""
10319
10320 #. type: textblock
10321 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
10322 msgid ""
10323 "The install path translated into a libguestfs path.  If unavailable this is "
10324 "returned as an empty string C<\"\">."
10325 msgstr ""
10326
10327 #. type: =item
10328 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
10329 msgid "C<app_publisher>"
10330 msgstr ""
10331
10332 #. type: textblock
10333 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
10334 msgid ""
10335 "The name of the publisher of the application, for package managers that use "
10336 "this.  If unavailable this is returned as an empty string C<\"\">."
10337 msgstr ""
10338
10339 #. type: =item
10340 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
10341 msgid "C<app_url>"
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
10346 msgid ""
10347 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10348 "returned as an empty string C<\"\">."
10349 msgstr ""
10350
10351 #. type: =item
10352 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
10353 msgid "C<app_source_package>"
10354 msgstr ""
10355
10356 #. type: textblock
10357 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
10358 msgid ""
10359 "For packaging systems which support this, the name of the source package.  "
10360 "If unavailable this is returned as an empty string C<\"\">."
10361 msgstr ""
10362
10363 #. type: =item
10364 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
10365 msgid "C<app_summary>"
10366 msgstr ""
10367
10368 #. type: textblock
10369 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
10370 msgid ""
10371 "A short (usually one line) description of the application or package.  If "
10372 "unavailable this is returned as an empty string C<\"\">."
10373 msgstr ""
10374
10375 #. type: =item
10376 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
10377 msgid "C<app_description>"
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
10382 msgid ""
10383 "A longer description of the application or package.  If unavailable this is "
10384 "returned as an empty string C<\"\">."
10385 msgstr ""
10386
10387 #. type: =head2
10388 #: ../fish/guestfish-actions.pod:2518
10389 msgid "inspect-os"
10390 msgstr ""
10391
10392 #. type: verbatim
10393 #: ../fish/guestfish-actions.pod:2520
10394 #, no-wrap
10395 msgid ""
10396 " inspect-os\n"
10397 "\n"
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
10402 msgid ""
10403 "This function uses other libguestfs functions and certain heuristics to "
10404 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10405 "for operating systems."
10406 msgstr ""
10407
10408 #. type: textblock
10409 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
10410 msgid "The list returned is empty if no operating systems were found."
10411 msgstr ""
10412
10413 #. type: textblock
10414 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
10415 msgid ""
10416 "If one operating system was found, then this returns a list with a single "
10417 "element, which is the name of the root filesystem of this operating system.  "
10418 "It is also possible for this function to return a list containing more than "
10419 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10420 "element being the root filesystem of one of the operating systems."
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../fish/guestfish-actions.pod:2535
10425 msgid ""
10426 "You can pass the root string(s) returned to other L</inspect-get-*> "
10427 "functions in order to query further information about each operating system, "
10428 "such as the name and version."
10429 msgstr ""
10430
10431 #. type: textblock
10432 #: ../fish/guestfish-actions.pod:2540
10433 msgid ""
10434 "This function uses other libguestfs features such as L</mount-ro> and "
10435 "L</umount-all> in order to mount and unmount filesystems and look at the "
10436 "contents.  This should be called with no disks currently mounted.  The "
10437 "function may also use Augeas, so any existing Augeas handle will be closed."
10438 msgstr ""
10439
10440 #. type: textblock
10441 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
10442 msgid ""
10443 "This function cannot decrypt encrypted disks.  The caller must do that first "
10444 "(supplying the necessary keys) if the disk is encrypted."
10445 msgstr ""
10446
10447 #. type: textblock
10448 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2815
10449 msgid "See also L</list-filesystems>."
10450 msgstr ""
10451
10452 #. type: =head2
10453 #: ../fish/guestfish-actions.pod:2554
10454 msgid "is-blockdev"
10455 msgstr ""
10456
10457 #. type: verbatim
10458 #: ../fish/guestfish-actions.pod:2556
10459 #, no-wrap
10460 msgid ""
10461 " is-blockdev path\n"
10462 "\n"
10463 msgstr ""
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
10467 msgid ""
10468 "This returns C<true> if and only if there is a block device with the given "
10469 "C<path> name."
10470 msgstr ""
10471
10472 #. type: textblock
10473 #: ../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
10474 msgid "See also L</stat>."
10475 msgstr ""
10476
10477 #. type: =head2
10478 #: ../fish/guestfish-actions.pod:2563
10479 msgid "is-busy"
10480 msgstr ""
10481
10482 #. type: verbatim
10483 #: ../fish/guestfish-actions.pod:2565
10484 #, no-wrap
10485 msgid ""
10486 " is-busy\n"
10487 "\n"
10488 msgstr ""
10489
10490 #. type: textblock
10491 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
10492 msgid ""
10493 "This returns true iff this handle is busy processing a command (in the "
10494 "C<BUSY> state)."
10495 msgstr ""
10496
10497 #. type: =head2
10498 #: ../fish/guestfish-actions.pod:2572
10499 msgid "is-chardev"
10500 msgstr ""
10501
10502 #. type: verbatim
10503 #: ../fish/guestfish-actions.pod:2574
10504 #, no-wrap
10505 msgid ""
10506 " is-chardev path\n"
10507 "\n"
10508 msgstr ""
10509
10510 #. type: textblock
10511 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
10512 msgid ""
10513 "This returns C<true> if and only if there is a character device with the "
10514 "given C<path> name."
10515 msgstr ""
10516
10517 #. type: =head2
10518 #: ../fish/guestfish-actions.pod:2581
10519 msgid "is-config"
10520 msgstr ""
10521
10522 #. type: verbatim
10523 #: ../fish/guestfish-actions.pod:2583
10524 #, no-wrap
10525 msgid ""
10526 " is-config\n"
10527 "\n"
10528 msgstr ""
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
10532 msgid ""
10533 "This returns true iff this handle is being configured (in the C<CONFIG> "
10534 "state)."
10535 msgstr ""
10536
10537 #. type: =head2
10538 #: ../fish/guestfish-actions.pod:2590
10539 msgid "is-dir"
10540 msgstr ""
10541
10542 #. type: verbatim
10543 #: ../fish/guestfish-actions.pod:2592
10544 #, no-wrap
10545 msgid ""
10546 " is-dir path\n"
10547 "\n"
10548 msgstr ""
10549
10550 #. type: textblock
10551 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
10552 msgid ""
10553 "This returns C<true> if and only if there is a directory with the given "
10554 "C<path> name.  Note that it returns false for other objects like files."
10555 msgstr ""
10556
10557 #. type: =head2
10558 #: ../fish/guestfish-actions.pod:2600
10559 msgid "is-fifo"
10560 msgstr ""
10561
10562 #. type: verbatim
10563 #: ../fish/guestfish-actions.pod:2602
10564 #, no-wrap
10565 msgid ""
10566 " is-fifo path\n"
10567 "\n"
10568 msgstr ""
10569
10570 #. type: textblock
10571 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
10572 msgid ""
10573 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10574 "given C<path> name."
10575 msgstr ""
10576
10577 #. type: =head2
10578 #: ../fish/guestfish-actions.pod:2609
10579 msgid "is-file"
10580 msgstr ""
10581
10582 #. type: verbatim
10583 #: ../fish/guestfish-actions.pod:2611
10584 #, no-wrap
10585 msgid ""
10586 " is-file path\n"
10587 "\n"
10588 msgstr ""
10589
10590 #. type: textblock
10591 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
10592 msgid ""
10593 "This returns C<true> if and only if there is a regular file with the given "
10594 "C<path> name.  Note that it returns false for other objects like "
10595 "directories."
10596 msgstr ""
10597
10598 #. type: =head2
10599 #: ../fish/guestfish-actions.pod:2619
10600 msgid "is-launching"
10601 msgstr ""
10602
10603 #. type: verbatim
10604 #: ../fish/guestfish-actions.pod:2621
10605 #, no-wrap
10606 msgid ""
10607 " is-launching\n"
10608 "\n"
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
10613 msgid ""
10614 "This returns true iff this handle is launching the subprocess (in the "
10615 "C<LAUNCHING> state)."
10616 msgstr ""
10617
10618 #. type: =head2
10619 #: ../fish/guestfish-actions.pod:2628
10620 msgid "is-lv"
10621 msgstr ""
10622
10623 #. type: verbatim
10624 #: ../fish/guestfish-actions.pod:2630
10625 #, no-wrap
10626 msgid ""
10627 " is-lv device\n"
10628 "\n"
10629 msgstr ""
10630
10631 #. type: textblock
10632 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
10633 msgid ""
10634 "This command tests whether C<device> is a logical volume, and returns true "
10635 "iff this is the case."
10636 msgstr ""
10637
10638 #. type: =head2
10639 #: ../fish/guestfish-actions.pod:2635
10640 msgid "is-ready"
10641 msgstr ""
10642
10643 #. type: verbatim
10644 #: ../fish/guestfish-actions.pod:2637
10645 #, no-wrap
10646 msgid ""
10647 " is-ready\n"
10648 "\n"
10649 msgstr ""
10650
10651 #. type: textblock
10652 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
10653 msgid ""
10654 "This returns true iff this handle is ready to accept commands (in the "
10655 "C<READY> state)."
10656 msgstr ""
10657
10658 #. type: =head2
10659 #: ../fish/guestfish-actions.pod:2644
10660 msgid "is-socket"
10661 msgstr ""
10662
10663 #. type: verbatim
10664 #: ../fish/guestfish-actions.pod:2646
10665 #, no-wrap
10666 msgid ""
10667 " is-socket path\n"
10668 "\n"
10669 msgstr ""
10670
10671 #. type: textblock
10672 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
10673 msgid ""
10674 "This returns C<true> if and only if there is a Unix domain socket with the "
10675 "given C<path> name."
10676 msgstr ""
10677
10678 #. type: =head2
10679 #: ../fish/guestfish-actions.pod:2653
10680 msgid "is-symlink"
10681 msgstr ""
10682
10683 #. type: verbatim
10684 #: ../fish/guestfish-actions.pod:2655
10685 #, no-wrap
10686 msgid ""
10687 " is-symlink path\n"
10688 "\n"
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
10693 msgid ""
10694 "This returns C<true> if and only if there is a symbolic link with the given "
10695 "C<path> name."
10696 msgstr ""
10697
10698 #. type: =head2
10699 #: ../fish/guestfish-actions.pod:2662
10700 msgid "is-zero"
10701 msgstr ""
10702
10703 #. type: verbatim
10704 #: ../fish/guestfish-actions.pod:2664
10705 #, no-wrap
10706 msgid ""
10707 " is-zero path\n"
10708 "\n"
10709 msgstr ""
10710
10711 #. type: textblock
10712 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
10713 msgid ""
10714 "This returns true iff the file exists and the file is empty or it contains "
10715 "all zero bytes."
10716 msgstr ""
10717
10718 #. type: =head2
10719 #: ../fish/guestfish-actions.pod:2669
10720 msgid "is-zero-device"
10721 msgstr ""
10722
10723 #. type: verbatim
10724 #: ../fish/guestfish-actions.pod:2671
10725 #, no-wrap
10726 msgid ""
10727 " is-zero-device device\n"
10728 "\n"
10729 msgstr ""
10730
10731 #. type: textblock
10732 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
10733 msgid "This returns true iff the device exists and contains all zero bytes."
10734 msgstr ""
10735
10736 #. type: textblock
10737 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
10738 msgid "Note that for large devices this can take a long time to run."
10739 msgstr ""
10740
10741 #. type: =head2
10742 #: ../fish/guestfish-actions.pod:2677
10743 msgid "kill-subprocess"
10744 msgstr ""
10745
10746 #. type: verbatim
10747 #: ../fish/guestfish-actions.pod:2679
10748 #, no-wrap
10749 msgid ""
10750 " kill-subprocess\n"
10751 "\n"
10752 msgstr ""
10753
10754 #. type: textblock
10755 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
10756 msgid "This kills the qemu subprocess.  You should never need to call this."
10757 msgstr ""
10758
10759 #. type: =head2
10760 #: ../fish/guestfish-actions.pod:2683
10761 msgid "launch"
10762 msgstr ""
10763
10764 #. type: =head2
10765 #: ../fish/guestfish-actions.pod:2685
10766 msgid "run"
10767 msgstr ""
10768
10769 #. type: verbatim
10770 #: ../fish/guestfish-actions.pod:2687
10771 #, no-wrap
10772 msgid ""
10773 " launch\n"
10774 "\n"
10775 msgstr ""
10776
10777 #. type: textblock
10778 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
10779 msgid ""
10780 "Internally libguestfs is implemented by running a virtual machine using "
10781 "L<qemu(1)>."
10782 msgstr ""
10783
10784 #. type: textblock
10785 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
10786 msgid ""
10787 "You should call this after configuring the handle (eg. adding drives) but "
10788 "before performing any actions."
10789 msgstr ""
10790
10791 #. type: =head2
10792 #: ../fish/guestfish-actions.pod:2695
10793 msgid "lchown"
10794 msgstr ""
10795
10796 #. type: verbatim
10797 #: ../fish/guestfish-actions.pod:2697
10798 #, no-wrap
10799 msgid ""
10800 " lchown owner group path\n"
10801 "\n"
10802 msgstr ""
10803
10804 #. type: textblock
10805 #: ../fish/guestfish-actions.pod:2699
10806 msgid ""
10807 "Change the file owner to C<owner> and group to C<group>.  This is like "
10808 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
10809 "the target."
10810 msgstr ""
10811
10812 #. type: =head2
10813 #: ../fish/guestfish-actions.pod:2707
10814 msgid "lgetxattr"
10815 msgstr ""
10816
10817 #. type: verbatim
10818 #: ../fish/guestfish-actions.pod:2709
10819 #, no-wrap
10820 msgid ""
10821 " lgetxattr path name\n"
10822 "\n"
10823 msgstr ""
10824
10825 #. type: textblock
10826 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
10827 msgid ""
10828 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10829 "is a symlink, then this call returns an extended attribute from the symlink."
10830 msgstr ""
10831
10832 #. type: textblock
10833 #: ../fish/guestfish-actions.pod:2725
10834 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10835 msgstr ""
10836
10837 #. type: =head2
10838 #: ../fish/guestfish-actions.pod:2727
10839 msgid "lgetxattrs"
10840 msgstr ""
10841
10842 #. type: verbatim
10843 #: ../fish/guestfish-actions.pod:2729
10844 #, no-wrap
10845 msgid ""
10846 " lgetxattrs path\n"
10847 "\n"
10848 msgstr ""
10849
10850 #. type: textblock
10851 #: ../fish/guestfish-actions.pod:2731
10852 msgid ""
10853 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10854 "it returns the extended attributes of the link itself."
10855 msgstr ""
10856
10857 #. type: =head2
10858 #: ../fish/guestfish-actions.pod:2735
10859 msgid "list-9p"
10860 msgstr ""
10861
10862 #. type: verbatim
10863 #: ../fish/guestfish-actions.pod:2737
10864 #, no-wrap
10865 msgid ""
10866 " list-9p\n"
10867 "\n"
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
10872 msgid ""
10873 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10874 "returned."
10875 msgstr ""
10876
10877 #. type: =head2
10878 #: ../fish/guestfish-actions.pod:2742
10879 msgid "list-devices"
10880 msgstr ""
10881
10882 #. type: verbatim
10883 #: ../fish/guestfish-actions.pod:2744
10884 #, no-wrap
10885 msgid ""
10886 " list-devices\n"
10887 "\n"
10888 msgstr ""
10889
10890 #. type: textblock
10891 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
10892 msgid "List all the block devices."
10893 msgstr ""
10894
10895 #. type: textblock
10896 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
10897 msgid "The full block device names are returned, eg. C</dev/sda>."
10898 msgstr ""
10899
10900 #. type: =head2
10901 #: ../fish/guestfish-actions.pod:2752
10902 msgid "list-dm-devices"
10903 msgstr ""
10904
10905 #. type: verbatim
10906 #: ../fish/guestfish-actions.pod:2754
10907 #, no-wrap
10908 msgid ""
10909 " list-dm-devices\n"
10910 "\n"
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
10915 msgid "List all device mapper devices."
10916 msgstr ""
10917
10918 #. type: textblock
10919 #: ../fish/guestfish-actions.pod:2758
10920 msgid ""
10921 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10922 "previous call to L</luks-open>."
10923 msgstr ""
10924
10925 #. type: textblock
10926 #: ../fish/guestfish-actions.pod:2761
10927 msgid ""
10928 "Device mapper devices which correspond to logical volumes are I<not> "
10929 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10930 msgstr ""
10931
10932 #. type: =head2
10933 #: ../fish/guestfish-actions.pod:2765
10934 msgid "list-filesystems"
10935 msgstr ""
10936
10937 #. type: verbatim
10938 #: ../fish/guestfish-actions.pod:2767
10939 #, no-wrap
10940 msgid ""
10941 " list-filesystems\n"
10942 "\n"
10943 msgstr ""
10944
10945 #. type: textblock
10946 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
10947 msgid ""
10948 "This inspection command looks for filesystems on partitions, block devices "
10949 "and logical volumes, returning a list of devices containing filesystems and "
10950 "their type."
10951 msgstr ""
10952
10953 #. type: textblock
10954 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
10955 msgid ""
10956 "The return value is a hash, where the keys are the devices containing "
10957 "filesystems, and the values are the filesystem types.  For example:"
10958 msgstr ""
10959
10960 #. type: verbatim
10961 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
10962 #, no-wrap
10963 msgid ""
10964 " \"/dev/sda1\" => \"ntfs\"\n"
10965 " \"/dev/sda2\" => \"ext2\"\n"
10966 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10967 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10968 "\n"
10969 msgstr ""
10970
10971 #. type: textblock
10972 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
10973 msgid ""
10974 "The value can have the special value \"unknown\", meaning the content of the "
10975 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10976 msgstr ""
10977
10978 #. type: textblock
10979 #: ../fish/guestfish-actions.pod:2786
10980 msgid ""
10981 "This command runs other libguestfs commands, which might include L</mount> "
10982 "and L</umount>, and therefore you should use this soon after launch and only "
10983 "when nothing is mounted."
10984 msgstr ""
10985
10986 #. type: textblock
10987 #: ../fish/guestfish-actions.pod:2790
10988 msgid ""
10989 "Not all of the filesystems returned will be mountable.  In particular, swap "
10990 "partitions are returned in the list.  Also this command does not check that "
10991 "each filesystem found is valid and mountable, and some filesystems might be "
10992 "mountable but require special options.  Filesystems may not all belong to a "
10993 "single logical operating system (use L</inspect-os> to look for OSes)."
10994 msgstr ""
10995
10996 #. type: =head2
10997 #: ../fish/guestfish-actions.pod:2798
10998 msgid "list-md-devices"
10999 msgstr ""
11000
11001 #. type: verbatim
11002 #: ../fish/guestfish-actions.pod:2800
11003 #, no-wrap
11004 msgid ""
11005 " list-md-devices\n"
11006 "\n"
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11011 msgid "List all Linux md devices."
11012 msgstr ""
11013
11014 #. type: =head2
11015 #: ../fish/guestfish-actions.pod:2804
11016 msgid "list-partitions"
11017 msgstr ""
11018
11019 #. type: verbatim
11020 #: ../fish/guestfish-actions.pod:2806
11021 #, no-wrap
11022 msgid ""
11023 " list-partitions\n"
11024 "\n"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4287
11029 msgid "List all the partitions detected on all block devices."
11030 msgstr ""
11031
11032 #. type: textblock
11033 #: ../fish/guestfish-actions.pod:2810 ../src/guestfs-actions.pod:4289
11034 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:2812
11039 msgid ""
11040 "This does not return logical volumes.  For that you will need to call "
11041 "L</lvs>."
11042 msgstr ""
11043
11044 #. type: =head2
11045 #: ../fish/guestfish-actions.pod:2817
11046 msgid "ll"
11047 msgstr ""
11048
11049 #. type: verbatim
11050 #: ../fish/guestfish-actions.pod:2819
11051 #, no-wrap
11052 msgid ""
11053 " ll directory\n"
11054 "\n"
11055 msgstr ""
11056
11057 #. type: textblock
11058 #: ../fish/guestfish-actions.pod:2821 ../src/guestfs-actions.pod:4308
11059 msgid ""
11060 "List the files in C<directory> (relative to the root directory, there is no "
11061 "cwd) in the format of 'ls -la'."
11062 msgstr ""
11063
11064 #. type: textblock
11065 #: ../fish/guestfish-actions.pod:2824 ../src/guestfs-actions.pod:4311
11066 msgid ""
11067 "This command is mostly useful for interactive sessions.  It is I<not> "
11068 "intended that you try to parse the output string."
11069 msgstr ""
11070
11071 #. type: =head2
11072 #: ../fish/guestfish-actions.pod:2827
11073 msgid "ln"
11074 msgstr ""
11075
11076 #. type: verbatim
11077 #: ../fish/guestfish-actions.pod:2829
11078 #, no-wrap
11079 msgid ""
11080 " ln target linkname\n"
11081 "\n"
11082 msgstr ""
11083
11084 #. type: textblock
11085 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4326
11086 msgid "This command creates a hard link using the C<ln> command."
11087 msgstr ""
11088
11089 #. type: =head2
11090 #: ../fish/guestfish-actions.pod:2833
11091 msgid "ln-f"
11092 msgstr ""
11093
11094 #. type: verbatim
11095 #: ../fish/guestfish-actions.pod:2835
11096 #, no-wrap
11097 msgid ""
11098 " ln-f target linkname\n"
11099 "\n"
11100 msgstr ""
11101
11102 #. type: textblock
11103 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4339
11104 msgid ""
11105 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11106 "option removes the link (C<linkname>) if it exists already."
11107 msgstr ""
11108
11109 #. type: =head2
11110 #: ../fish/guestfish-actions.pod:2840
11111 msgid "ln-s"
11112 msgstr ""
11113
11114 #. type: verbatim
11115 #: ../fish/guestfish-actions.pod:2842
11116 #, no-wrap
11117 msgid ""
11118 " ln-s target linkname\n"
11119 "\n"
11120 msgstr ""
11121
11122 #. type: textblock
11123 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4353
11124 msgid "This command creates a symbolic link using the C<ln -s> command."
11125 msgstr ""
11126
11127 #. type: =head2
11128 #: ../fish/guestfish-actions.pod:2846
11129 msgid "ln-sf"
11130 msgstr ""
11131
11132 #. type: verbatim
11133 #: ../fish/guestfish-actions.pod:2848
11134 #, no-wrap
11135 msgid ""
11136 " ln-sf target linkname\n"
11137 "\n"
11138 msgstr ""
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:2850 ../src/guestfs-actions.pod:4366
11142 msgid ""
11143 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11144 "option removes the link (C<linkname>) if it exists already."
11145 msgstr ""
11146
11147 #. type: =head2
11148 #: ../fish/guestfish-actions.pod:2853
11149 msgid "lremovexattr"
11150 msgstr ""
11151
11152 #. type: verbatim
11153 #: ../fish/guestfish-actions.pod:2855
11154 #, no-wrap
11155 msgid ""
11156 " lremovexattr xattr path\n"
11157 "\n"
11158 msgstr ""
11159
11160 #. type: textblock
11161 #: ../fish/guestfish-actions.pod:2857
11162 msgid ""
11163 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11164 "it removes an extended attribute of the link itself."
11165 msgstr ""
11166
11167 #. type: =head2
11168 #: ../fish/guestfish-actions.pod:2861
11169 msgid "ls"
11170 msgstr ""
11171
11172 #. type: verbatim
11173 #: ../fish/guestfish-actions.pod:2863
11174 #, no-wrap
11175 msgid ""
11176 " ls directory\n"
11177 "\n"
11178 msgstr ""
11179
11180 #. type: textblock
11181 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4394
11182 msgid ""
11183 "List the files in C<directory> (relative to the root directory, there is no "
11184 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11185 "shown."
11186 msgstr ""
11187
11188 #. type: textblock
11189 #: ../fish/guestfish-actions.pod:2869
11190 msgid ""
11191 "This command is mostly useful for interactive sessions.  Programs should "
11192 "probably use L</readdir> instead."
11193 msgstr ""
11194
11195 #. type: =head2
11196 #: ../fish/guestfish-actions.pod:2872
11197 msgid "lsetxattr"
11198 msgstr ""
11199
11200 #. type: verbatim
11201 #: ../fish/guestfish-actions.pod:2874
11202 #, no-wrap
11203 msgid ""
11204 " lsetxattr xattr val vallen path\n"
11205 "\n"
11206 msgstr ""
11207
11208 #. type: textblock
11209 #: ../fish/guestfish-actions.pod:2876
11210 msgid ""
11211 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11212 "sets an extended attribute of the link itself."
11213 msgstr ""
11214
11215 #. type: =head2
11216 #: ../fish/guestfish-actions.pod:2880
11217 msgid "lstat"
11218 msgstr ""
11219
11220 #. type: verbatim
11221 #: ../fish/guestfish-actions.pod:2882
11222 #, no-wrap
11223 msgid ""
11224 " lstat path\n"
11225 "\n"
11226 msgstr ""
11227
11228 #. type: textblock
11229 #: ../fish/guestfish-actions.pod:2884 ../fish/guestfish-actions.pod:4775 ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:7349
11230 msgid "Returns file information for the given C<path>."
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:2886
11235 msgid ""
11236 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11237 "the link is stat-ed, not the file it refers to."
11238 msgstr ""
11239
11240 #. type: textblock
11241 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4436
11242 msgid "This is the same as the C<lstat(2)> system call."
11243 msgstr ""
11244
11245 #. type: =head2
11246 #: ../fish/guestfish-actions.pod:2892
11247 msgid "lstatlist"
11248 msgstr ""
11249
11250 #. type: verbatim
11251 #: ../fish/guestfish-actions.pod:2894
11252 #, no-wrap
11253 msgid ""
11254 " lstatlist path 'names ...'\n"
11255 "\n"
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../fish/guestfish-actions.pod:2896
11260 msgid ""
11261 "This call allows you to perform the L</lstat> operation on multiple files, "
11262 "where all files are in the directory C<path>.  C<names> is the list of files "
11263 "from this directory."
11264 msgstr ""
11265
11266 #. type: textblock
11267 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4455
11268 msgid ""
11269 "On return you get a list of stat structs, with a one-to-one correspondence "
11270 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11271 "then the C<ino> field of that structure is set to C<-1>."
11272 msgstr ""
11273
11274 #. type: textblock
11275 #: ../fish/guestfish-actions.pod:2905
11276 msgid ""
11277 "This call is intended for programs that want to efficiently list a directory "
11278 "contents without making many round-trips.  See also L</lxattrlist> for a "
11279 "similarly efficient call for getting extended attributes.  Very long "
11280 "directory listings might cause the protocol message size to be exceeded, "
11281 "causing this call to fail.  The caller must split up such requests into "
11282 "smaller groups of names."
11283 msgstr ""
11284
11285 #. type: =head2
11286 #: ../fish/guestfish-actions.pod:2913
11287 msgid "luks-add-key"
11288 msgstr ""
11289
11290 #. type: verbatim
11291 #: ../fish/guestfish-actions.pod:2915
11292 #, no-wrap
11293 msgid ""
11294 " luks-add-key device keyslot\n"
11295 "\n"
11296 msgstr ""
11297
11298 #. type: textblock
11299 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4483
11300 msgid ""
11301 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11302 "existing key, and is used to access the device.  C<newkey> is the new key to "
11303 "add.  C<keyslot> is the key slot that will be replaced."
11304 msgstr ""
11305
11306 #. type: textblock
11307 #: ../fish/guestfish-actions.pod:2922
11308 msgid ""
11309 "Note that if C<keyslot> already contains a key, then this command will "
11310 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../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
11315 msgid ""
11316 "This command has one or more key or passphrase parameters.  Guestfish will "
11317 "prompt for these separately."
11318 msgstr ""
11319
11320 #. type: =head2
11321 #: ../fish/guestfish-actions.pod:2929
11322 msgid "luks-close"
11323 msgstr ""
11324
11325 #. type: verbatim
11326 #: ../fish/guestfish-actions.pod:2931
11327 #, no-wrap
11328 msgid ""
11329 " luks-close device\n"
11330 "\n"
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:2933
11335 msgid ""
11336 "This closes a LUKS device that was created earlier by L</luks-open> or "
11337 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
11338 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
11339 "underlying block device."
11340 msgstr ""
11341
11342 #. type: =head2
11343 #: ../fish/guestfish-actions.pod:2939
11344 msgid "luks-format"
11345 msgstr ""
11346
11347 #. type: verbatim
11348 #: ../fish/guestfish-actions.pod:2941
11349 #, no-wrap
11350 msgid ""
11351 " luks-format device keyslot\n"
11352 "\n"
11353 msgstr ""
11354
11355 #. type: textblock
11356 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4524
11357 msgid ""
11358 "This command erases existing data on C<device> and formats the device as a "
11359 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11360 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11361 msgstr ""
11362
11363 #. type: =head2
11364 #: ../fish/guestfish-actions.pod:2951
11365 msgid "luks-format-cipher"
11366 msgstr ""
11367
11368 #. type: verbatim
11369 #: ../fish/guestfish-actions.pod:2953
11370 #, no-wrap
11371 msgid ""
11372 " luks-format-cipher device keyslot cipher\n"
11373 "\n"
11374 msgstr ""
11375
11376 #. type: textblock
11377 #: ../fish/guestfish-actions.pod:2955
11378 msgid ""
11379 "This command is the same as L</luks-format> but it also allows you to set "
11380 "the C<cipher> used."
11381 msgstr ""
11382
11383 #. type: =head2
11384 #: ../fish/guestfish-actions.pod:2961
11385 msgid "luks-kill-slot"
11386 msgstr ""
11387
11388 #. type: verbatim
11389 #: ../fish/guestfish-actions.pod:2963
11390 #, no-wrap
11391 msgid ""
11392 " luks-kill-slot device keyslot\n"
11393 "\n"
11394 msgstr ""
11395
11396 #. type: textblock
11397 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4565
11398 msgid ""
11399 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11400 "device C<device>.  C<key> must be one of the I<other> keys."
11401 msgstr ""
11402
11403 #. type: =head2
11404 #: ../fish/guestfish-actions.pod:2972
11405 msgid "luks-open"
11406 msgstr ""
11407
11408 #. type: verbatim
11409 #: ../fish/guestfish-actions.pod:2974
11410 #, no-wrap
11411 msgid ""
11412 " luks-open device mapname\n"
11413 "\n"
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4585
11418 msgid ""
11419 "This command opens a block device which has been encrypted according to the "
11420 "Linux Unified Key Setup (LUKS) standard."
11421 msgstr ""
11422
11423 #. type: textblock
11424 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4588
11425 msgid "C<device> is the encrypted block device or partition."
11426 msgstr ""
11427
11428 #. type: textblock
11429 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4590
11430 msgid ""
11431 "The caller must supply one of the keys associated with the LUKS block "
11432 "device, in the C<key> parameter."
11433 msgstr ""
11434
11435 #. type: textblock
11436 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4593
11437 msgid ""
11438 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11439 "writes to this block device are decrypted from and encrypted to the "
11440 "underlying C<device> respectively."
11441 msgstr ""
11442
11443 #. type: textblock
11444 #: ../fish/guestfish-actions.pod:2988
11445 msgid ""
11446 "If this block device contains LVM volume groups, then calling L</vgscan> "
11447 "followed by L</vg-activate-all> will make them visible."
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:2992
11452 msgid "Use L</list-dm-devices> to list all device mapper devices."
11453 msgstr ""
11454
11455 #. type: =head2
11456 #: ../fish/guestfish-actions.pod:2998
11457 msgid "luks-open-ro"
11458 msgstr ""
11459
11460 #. type: verbatim
11461 #: ../fish/guestfish-actions.pod:3000
11462 #, no-wrap
11463 msgid ""
11464 " luks-open-ro device mapname\n"
11465 "\n"
11466 msgstr ""
11467
11468 #. type: textblock
11469 #: ../fish/guestfish-actions.pod:3002
11470 msgid ""
11471 "This is the same as L</luks-open> except that a read-only mapping is "
11472 "created."
11473 msgstr ""
11474
11475 #. type: =head2
11476 #: ../fish/guestfish-actions.pod:3008
11477 msgid "lvcreate"
11478 msgstr ""
11479
11480 #. type: verbatim
11481 #: ../fish/guestfish-actions.pod:3010
11482 #, no-wrap
11483 msgid ""
11484 " lvcreate logvol volgroup mbytes\n"
11485 "\n"
11486 msgstr ""
11487
11488 #. type: textblock
11489 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4639
11490 msgid ""
11491 "This creates an LVM logical volume called C<logvol> on the volume group "
11492 "C<volgroup>, with C<size> megabytes."
11493 msgstr ""
11494
11495 #. type: =head2
11496 #: ../fish/guestfish-actions.pod:3015
11497 msgid "lvm-canonical-lv-name"
11498 msgstr ""
11499
11500 #. type: verbatim
11501 #: ../fish/guestfish-actions.pod:3017
11502 #, no-wrap
11503 msgid ""
11504 " lvm-canonical-lv-name lvname\n"
11505 "\n"
11506 msgstr ""
11507
11508 #. type: textblock
11509 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4652
11510 msgid ""
11511 "This converts alternative naming schemes for LVs that you might find to the "
11512 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
11513 "C</dev/VG/LV>."
11514 msgstr ""
11515
11516 #. type: textblock
11517 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4656
11518 msgid ""
11519 "This command returns an error if the C<lvname> parameter does not refer to a "
11520 "logical volume."
11521 msgstr ""
11522
11523 #. type: textblock
11524 #: ../fish/guestfish-actions.pod:3026
11525 msgid "See also L</is-lv>."
11526 msgstr ""
11527
11528 #. type: =head2
11529 #: ../fish/guestfish-actions.pod:3028
11530 msgid "lvm-clear-filter"
11531 msgstr ""
11532
11533 #. type: verbatim
11534 #: ../fish/guestfish-actions.pod:3030
11535 #, no-wrap
11536 msgid ""
11537 " lvm-clear-filter\n"
11538 "\n"
11539 msgstr ""
11540
11541 #. type: textblock
11542 #: ../fish/guestfish-actions.pod:3032
11543 msgid ""
11544 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11545 "block device."
11546 msgstr ""
11547
11548 #. type: textblock
11549 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3063 ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4713
11550 msgid "This command also clears the LVM cache and performs a volume group scan."
11551 msgstr ""
11552
11553 #. type: =head2
11554 #: ../fish/guestfish-actions.pod:3038
11555 msgid "lvm-remove-all"
11556 msgstr ""
11557
11558 #. type: verbatim
11559 #: ../fish/guestfish-actions.pod:3040
11560 #, no-wrap
11561 msgid ""
11562 " lvm-remove-all\n"
11563 "\n"
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4686
11568 msgid ""
11569 "This command removes all LVM logical volumes, volume groups and physical "
11570 "volumes."
11571 msgstr ""
11572
11573 #. type: =head2
11574 #: ../fish/guestfish-actions.pod:3045
11575 msgid "lvm-set-filter"
11576 msgstr ""
11577
11578 #. type: verbatim
11579 #: ../fish/guestfish-actions.pod:3047
11580 #, no-wrap
11581 msgid ""
11582 " lvm-set-filter 'devices ...'\n"
11583 "\n"
11584 msgstr ""
11585
11586 #. type: textblock
11587 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4699
11588 msgid ""
11589 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11590 "block devices in the list C<devices>, and will ignore all other attached "
11591 "block devices."
11592 msgstr ""
11593
11594 #. type: textblock
11595 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4703
11596 msgid ""
11597 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11598 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11599 "there are two types of duplication possible: either cloned PVs/VGs which "
11600 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11601 "same name.  In normal operation you cannot create this situation, but you "
11602 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11603 "inside the LVM metadata."
11604 msgstr ""
11605
11606 #. type: textblock
11607 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4716
11608 msgid "You can filter whole block devices or individual partitions."
11609 msgstr ""
11610
11611 #. type: textblock
11612 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4718
11613 msgid ""
11614 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11615 "filesystem), even if you are not filtering out that VG."
11616 msgstr ""
11617
11618 #. type: =head2
11619 #: ../fish/guestfish-actions.pod:3072
11620 msgid "lvremove"
11621 msgstr ""
11622
11623 #. type: verbatim
11624 #: ../fish/guestfish-actions.pod:3074
11625 #, no-wrap
11626 msgid ""
11627 " lvremove device\n"
11628 "\n"
11629 msgstr ""
11630
11631 #. type: textblock
11632 #: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4732
11633 msgid ""
11634 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11635 "LV, such as C</dev/VG/LV>."
11636 msgstr ""
11637
11638 #. type: textblock
11639 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4735
11640 msgid ""
11641 "You can also remove all LVs in a volume group by specifying the VG name, "
11642 "C</dev/VG>."
11643 msgstr ""
11644
11645 #. type: =head2
11646 #: ../fish/guestfish-actions.pod:3082
11647 msgid "lvrename"
11648 msgstr ""
11649
11650 #. type: verbatim
11651 #: ../fish/guestfish-actions.pod:3084
11652 #, no-wrap
11653 msgid ""
11654 " lvrename logvol newlogvol\n"
11655 "\n"
11656 msgstr ""
11657
11658 #. type: textblock
11659 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4749
11660 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11661 msgstr ""
11662
11663 #. type: =head2
11664 #: ../fish/guestfish-actions.pod:3088
11665 msgid "lvresize"
11666 msgstr ""
11667
11668 #. type: verbatim
11669 #: ../fish/guestfish-actions.pod:3090
11670 #, no-wrap
11671 msgid ""
11672 " lvresize device mbytes\n"
11673 "\n"
11674 msgstr ""
11675
11676 #. type: textblock
11677 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4762
11678 msgid ""
11679 "This resizes (expands or shrinks) an existing LVM logical volume to "
11680 "C<mbytes>.  When reducing, data in the reduced part is lost."
11681 msgstr ""
11682
11683 #. type: =head2
11684 #: ../fish/guestfish-actions.pod:3096
11685 msgid "lvresize-free"
11686 msgstr ""
11687
11688 #. type: verbatim
11689 #: ../fish/guestfish-actions.pod:3098
11690 #, no-wrap
11691 msgid ""
11692 " lvresize-free lv percent\n"
11693 "\n"
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4777
11698 msgid ""
11699 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11700 "remaining free space in the volume group.  Commonly you would call this with "
11701 "pc = 100 which expands the logical volume as much as possible, using all "
11702 "remaining free space in the volume group."
11703 msgstr ""
11704
11705 #. type: =head2
11706 #: ../fish/guestfish-actions.pod:3106
11707 msgid "lvs"
11708 msgstr ""
11709
11710 #. type: verbatim
11711 #: ../fish/guestfish-actions.pod:3108
11712 #, no-wrap
11713 msgid ""
11714 " lvs\n"
11715 "\n"
11716 msgstr ""
11717
11718 #. type: textblock
11719 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4792
11720 msgid ""
11721 "List all the logical volumes detected.  This is the equivalent of the "
11722 "L<lvs(8)> command."
11723 msgstr ""
11724
11725 #. type: textblock
11726 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4795
11727 msgid ""
11728 "This returns a list of the logical volume device names "
11729 "(eg. C</dev/VolGroup00/LogVol00>)."
11730 msgstr ""
11731
11732 #. type: textblock
11733 #: ../fish/guestfish-actions.pod:3116
11734 msgid "See also L</lvs-full>, L</list-filesystems>."
11735 msgstr ""
11736
11737 #. type: =head2
11738 #: ../fish/guestfish-actions.pod:3118
11739 msgid "lvs-full"
11740 msgstr ""
11741
11742 #. type: verbatim
11743 #: ../fish/guestfish-actions.pod:3120
11744 #, no-wrap
11745 msgid ""
11746 " lvs-full\n"
11747 "\n"
11748 msgstr ""
11749
11750 #. type: textblock
11751 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4811
11752 msgid ""
11753 "List all the logical volumes detected.  This is the equivalent of the "
11754 "L<lvs(8)> command.  The \"full\" version includes all fields."
11755 msgstr ""
11756
11757 #. type: =head2
11758 #: ../fish/guestfish-actions.pod:3125
11759 msgid "lvuuid"
11760 msgstr ""
11761
11762 #. type: verbatim
11763 #: ../fish/guestfish-actions.pod:3127
11764 #, no-wrap
11765 msgid ""
11766 " lvuuid device\n"
11767 "\n"
11768 msgstr ""
11769
11770 #. type: textblock
11771 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4826
11772 msgid "This command returns the UUID of the LVM LV C<device>."
11773 msgstr ""
11774
11775 #. type: =head2
11776 #: ../fish/guestfish-actions.pod:3131
11777 msgid "lxattrlist"
11778 msgstr ""
11779
11780 #. type: verbatim
11781 #: ../fish/guestfish-actions.pod:3133
11782 #, no-wrap
11783 msgid ""
11784 " lxattrlist path 'names ...'\n"
11785 "\n"
11786 msgstr ""
11787
11788 #. type: textblock
11789 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4840
11790 msgid ""
11791 "This call allows you to get the extended attributes of multiple files, where "
11792 "all files are in the directory C<path>.  C<names> is the list of files from "
11793 "this directory."
11794 msgstr ""
11795
11796 #. type: textblock
11797 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4844
11798 msgid ""
11799 "On return you get a flat list of xattr structs which must be interpreted "
11800 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11801 "C<attrval> in this struct is zero-length to indicate there was an error "
11802 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11803 "number (the number of following attributes for this file, which could be "
11804 "C<\"0\">).  Then after the first xattr struct are the zero or more "
11805 "attributes for the first named file.  This repeats for the second and "
11806 "subsequent files."
11807 msgstr ""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:3149
11811 msgid ""
11812 "This call is intended for programs that want to efficiently list a directory "
11813 "contents without making many round-trips.  See also L</lstatlist> for a "
11814 "similarly efficient call for getting standard stats.  Very long directory "
11815 "listings might cause the protocol message size to be exceeded, causing this "
11816 "call to fail.  The caller must split up such requests into smaller groups of "
11817 "names."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:3157
11822 msgid "mdadm-create"
11823 msgstr ""
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:3159
11827 #, no-wrap
11828 msgid ""
11829 " mdadm-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] "
11830 "[chunk:N] [level:..]\n"
11831 "\n"
11832 msgstr ""
11833
11834 #. type: textblock
11835 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4887
11836 msgid ""
11837 "Create a Linux md (RAID) device named C<name> on the devices in the list "
11838 "C<devices>."
11839 msgstr ""
11840
11841 #. type: =item
11842 #: ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:4894
11843 msgid "C<missingbitmap>"
11844 msgstr ""
11845
11846 #. type: textblock
11847 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4896
11848 msgid ""
11849 "A bitmap of missing devices.  If a bit is set it means that a missing device "
11850 "is added to the array.  The least significant bit corresponds to the first "
11851 "device in the array."
11852 msgstr ""
11853
11854 #. type: textblock
11855 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4900
11856 msgid "As examples:"
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:3176 ../src/guestfs-actions.pod:4902
11861 msgid ""
11862 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
11863 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4905
11868 msgid ""
11869 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
11870 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
11871 msgstr ""
11872
11873 #. type: textblock
11874 #: ../fish/guestfish-actions.pod:3182 ../src/guestfs-actions.pod:4908
11875 msgid "This defaults to C<0> (no missing devices)."
11876 msgstr ""
11877
11878 #. type: textblock
11879 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4910
11880 msgid ""
11881 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
11882 "equal C<nrdevices> + C<spare>."
11883 msgstr ""
11884
11885 #. type: =item
11886 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4913
11887 msgid "C<nrdevices>"
11888 msgstr ""
11889
11890 #. type: textblock
11891 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4915
11892 msgid "The number of active RAID devices."
11893 msgstr ""
11894
11895 #. type: textblock
11896 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4917
11897 msgid ""
11898 "If not set, this defaults to the length of C<devices> plus the number of "
11899 "bits set in C<missingbitmap>."
11900 msgstr ""
11901
11902 #. type: =item
11903 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4920
11904 msgid "C<spare>"
11905 msgstr ""
11906
11907 #. type: textblock
11908 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4922
11909 msgid "The number of spare devices."
11910 msgstr ""
11911
11912 #. type: textblock
11913 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4924
11914 msgid "If not set, this defaults to C<0>."
11915 msgstr ""
11916
11917 #. type: =item
11918 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4926
11919 msgid "C<chunk>"
11920 msgstr ""
11921
11922 #. type: textblock
11923 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4928
11924 msgid "The chunk size in bytes."
11925 msgstr ""
11926
11927 #. type: =item
11928 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:4978
11929 msgid "C<level>"
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4932
11934 msgid ""
11935 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
11936 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
11937 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
11938 "added in future."
11939 msgstr ""
11940
11941 #. type: textblock
11942 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4937
11943 msgid "If not set, this defaults to C<raid1>."
11944 msgstr ""
11945
11946 #. type: =head2
11947 #: ../fish/guestfish-actions.pod:3217
11948 msgid "mdadm-detail"
11949 msgstr ""
11950
11951 #. type: verbatim
11952 #: ../fish/guestfish-actions.pod:3219
11953 #, no-wrap
11954 msgid ""
11955 " mdadm-detail md\n"
11956 "\n"
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:3221 ../src/guestfs-actions.pod:4973
11961 msgid ""
11962 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
11963 "are usually present in the returned hash. Other fields may also be present."
11964 msgstr ""
11965
11966 #. type: textblock
11967 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:4980
11968 msgid "The raid level of the MD device."
11969 msgstr ""
11970
11971 #. type: =item
11972 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4982
11973 msgid "C<devices>"
11974 msgstr ""
11975
11976 #. type: textblock
11977 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4984
11978 msgid "The number of underlying devices in the MD device."
11979 msgstr ""
11980
11981 #. type: =item
11982 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4986
11983 msgid "C<metadata>"
11984 msgstr ""
11985
11986 #. type: textblock
11987 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4988
11988 msgid "The metadata version used."
11989 msgstr ""
11990
11991 #. type: =item
11992 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4990
11993 msgid "C<uuid>"
11994 msgstr ""
11995
11996 #. type: textblock
11997 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4992
11998 msgid "The UUID of the MD device."
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4996
12003 msgid "The name of the MD device."
12004 msgstr ""
12005
12006 #. type: =head2
12007 #: ../fish/guestfish-actions.pod:3248
12008 msgid "mkdir"
12009 msgstr ""
12010
12011 #. type: verbatim
12012 #: ../fish/guestfish-actions.pod:3250
12013 #, no-wrap
12014 msgid ""
12015 " mkdir path\n"
12016 "\n"
12017 msgstr ""
12018
12019 #. type: textblock
12020 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5012
12021 msgid "Create a directory named C<path>."
12022 msgstr ""
12023
12024 #. type: =head2
12025 #: ../fish/guestfish-actions.pod:3254
12026 msgid "mkdir-mode"
12027 msgstr ""
12028
12029 #. type: verbatim
12030 #: ../fish/guestfish-actions.pod:3256
12031 #, no-wrap
12032 msgid ""
12033 " mkdir-mode path mode\n"
12034 "\n"
12035 msgstr ""
12036
12037 #. type: textblock
12038 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5025
12039 msgid ""
12040 "This command creates a directory, setting the initial permissions of the "
12041 "directory to C<mode>."
12042 msgstr ""
12043
12044 #. type: textblock
12045 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:5028
12046 msgid ""
12047 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12048 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12049 "other ways."
12050 msgstr ""
12051
12052 #. type: textblock
12053 #: ../fish/guestfish-actions.pod:3265
12054 msgid "See also L</mkdir>, L</umask>"
12055 msgstr ""
12056
12057 #. type: =head2
12058 #: ../fish/guestfish-actions.pod:3267
12059 msgid "mkdir-p"
12060 msgstr ""
12061
12062 #. type: verbatim
12063 #: ../fish/guestfish-actions.pod:3269
12064 #, no-wrap
12065 msgid ""
12066 " mkdir-p path\n"
12067 "\n"
12068 msgstr ""
12069
12070 #. type: textblock
12071 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5044
12072 msgid ""
12073 "Create a directory named C<path>, creating any parent directories as "
12074 "necessary.  This is like the C<mkdir -p> shell command."
12075 msgstr ""
12076
12077 #. type: =head2
12078 #: ../fish/guestfish-actions.pod:3274
12079 msgid "mkdtemp"
12080 msgstr ""
12081
12082 #. type: verbatim
12083 #: ../fish/guestfish-actions.pod:3276
12084 #, no-wrap
12085 msgid ""
12086 " mkdtemp template\n"
12087 "\n"
12088 msgstr ""
12089
12090 #. type: textblock
12091 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:5057
12092 msgid ""
12093 "This command creates a temporary directory.  The C<template> parameter "
12094 "should be a full pathname for the temporary directory name with the final "
12095 "six characters being \"XXXXXX\"."
12096 msgstr ""
12097
12098 #. type: textblock
12099 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:5062
12100 msgid ""
12101 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12102 "being suitable for Windows filesystems."
12103 msgstr ""
12104
12105 #. type: textblock
12106 #: ../fish/guestfish-actions.pod:3286 ../src/guestfs-actions.pod:5065
12107 msgid "The name of the temporary directory that was created is returned."
12108 msgstr ""
12109
12110 #. type: textblock
12111 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5068
12112 msgid "The temporary directory is created with mode 0700 and is owned by root."
12113 msgstr ""
12114
12115 #. type: textblock
12116 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5071
12117 msgid ""
12118 "The caller is responsible for deleting the temporary directory and its "
12119 "contents after use."
12120 msgstr ""
12121
12122 #. type: textblock
12123 #: ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:5074
12124 msgid "See also: L<mkdtemp(3)>"
12125 msgstr ""
12126
12127 #. type: =head2
12128 #: ../fish/guestfish-actions.pod:3297
12129 msgid "mke2fs-J"
12130 msgstr ""
12131
12132 #. type: verbatim
12133 #: ../fish/guestfish-actions.pod:3299
12134 #, no-wrap
12135 msgid ""
12136 " mke2fs-J fstype blocksize device journal\n"
12137 "\n"
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5090
12142 msgid ""
12143 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12144 "C<journal>.  It is equivalent to the command:"
12145 msgstr ""
12146
12147 #. type: verbatim
12148 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5094
12149 #, no-wrap
12150 msgid ""
12151 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12152 "\n"
12153 msgstr ""
12154
12155 #. type: textblock
12156 #: ../fish/guestfish-actions.pod:3307
12157 msgid "See also L</mke2journal>."
12158 msgstr ""
12159
12160 #. type: =head2
12161 #: ../fish/guestfish-actions.pod:3309
12162 msgid "mke2fs-JL"
12163 msgstr ""
12164
12165 #. type: verbatim
12166 #: ../fish/guestfish-actions.pod:3311
12167 #, no-wrap
12168 msgid ""
12169 " mke2fs-JL fstype blocksize device label\n"
12170 "\n"
12171 msgstr ""
12172
12173 #. type: textblock
12174 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5111
12175 msgid ""
12176 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12177 "the journal labeled C<label>."
12178 msgstr ""
12179
12180 #. type: textblock
12181 #: ../fish/guestfish-actions.pod:3316
12182 msgid "See also L</mke2journal-L>."
12183 msgstr ""
12184
12185 #. type: =head2
12186 #: ../fish/guestfish-actions.pod:3318
12187 msgid "mke2fs-JU"
12188 msgstr ""
12189
12190 #. type: verbatim
12191 #: ../fish/guestfish-actions.pod:3320
12192 #, no-wrap
12193 msgid ""
12194 " mke2fs-JU fstype blocksize device uuid\n"
12195 "\n"
12196 msgstr ""
12197
12198 #. type: textblock
12199 #: ../fish/guestfish-actions.pod:3322 ../src/guestfs-actions.pod:5129
12200 msgid ""
12201 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12202 "the journal with UUID C<uuid>."
12203 msgstr ""
12204
12205 #. type: textblock
12206 #: ../fish/guestfish-actions.pod:3325
12207 msgid "See also L</mke2journal-U>."
12208 msgstr ""
12209
12210 #. type: =head2
12211 #: ../fish/guestfish-actions.pod:3327
12212 msgid "mke2journal"
12213 msgstr ""
12214
12215 #. type: verbatim
12216 #: ../fish/guestfish-actions.pod:3329
12217 #, no-wrap
12218 msgid ""
12219 " mke2journal blocksize device\n"
12220 "\n"
12221 msgstr ""
12222
12223 #. type: textblock
12224 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5145
12225 msgid ""
12226 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12227 "command:"
12228 msgstr ""
12229
12230 #. type: verbatim
12231 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5148
12232 #, no-wrap
12233 msgid ""
12234 " mke2fs -O journal_dev -b blocksize device\n"
12235 "\n"
12236 msgstr ""
12237
12238 #. type: =head2
12239 #: ../fish/guestfish-actions.pod:3336
12240 msgid "mke2journal-L"
12241 msgstr ""
12242
12243 #. type: verbatim
12244 #: ../fish/guestfish-actions.pod:3338
12245 #, no-wrap
12246 msgid ""
12247 " mke2journal-L blocksize label device\n"
12248 "\n"
12249 msgstr ""
12250
12251 #. type: textblock
12252 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5162
12253 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12254 msgstr ""
12255
12256 #. type: =head2
12257 #: ../fish/guestfish-actions.pod:3342
12258 msgid "mke2journal-U"
12259 msgstr ""
12260
12261 #. type: verbatim
12262 #: ../fish/guestfish-actions.pod:3344
12263 #, no-wrap
12264 msgid ""
12265 " mke2journal-U blocksize uuid device\n"
12266 "\n"
12267 msgstr ""
12268
12269 #. type: textblock
12270 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5176
12271 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12272 msgstr ""
12273
12274 #. type: =head2
12275 #: ../fish/guestfish-actions.pod:3348
12276 msgid "mkfifo"
12277 msgstr ""
12278
12279 #. type: verbatim
12280 #: ../fish/guestfish-actions.pod:3350
12281 #, no-wrap
12282 msgid ""
12283 " mkfifo mode path\n"
12284 "\n"
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../fish/guestfish-actions.pod:3352
12289 msgid ""
12290 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12291 "is just a convenient wrapper around L</mknod>."
12292 msgstr ""
12293
12294 #. type: =head2
12295 #: ../fish/guestfish-actions.pod:3358
12296 msgid "mkfs"
12297 msgstr ""
12298
12299 #. type: verbatim
12300 #: ../fish/guestfish-actions.pod:3360
12301 #, no-wrap
12302 msgid ""
12303 " mkfs fstype device\n"
12304 "\n"
12305 msgstr ""
12306
12307 #. type: textblock
12308 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5206
12309 msgid ""
12310 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12311 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12312 msgstr ""
12313
12314 #. type: =head2
12315 #: ../fish/guestfish-actions.pod:3366
12316 msgid "mkfs-b"
12317 msgstr ""
12318
12319 #. type: verbatim
12320 #: ../fish/guestfish-actions.pod:3368
12321 #, no-wrap
12322 msgid ""
12323 " mkfs-b fstype blocksize device\n"
12324 "\n"
12325 msgstr ""
12326
12327 #. type: textblock
12328 #: ../fish/guestfish-actions.pod:3370
12329 msgid ""
12330 "This call is similar to L</mkfs>, but it allows you to control the block "
12331 "size of the resulting filesystem.  Supported block sizes depend on the "
12332 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12333 msgstr ""
12334
12335 #. type: textblock
12336 #: ../fish/guestfish-actions.pod:3375 ../fish/guestfish-actions.pod:3402 ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5272
12337 msgid ""
12338 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12339 "cluster size."
12340 msgstr ""
12341
12342 #. type: textblock
12343 #: ../fish/guestfish-actions.pod:3378
12344 msgid ""
12345 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12346 "instead."
12347 msgstr ""
12348
12349 #. type: =head2
12350 #: ../fish/guestfish-actions.pod:3385
12351 msgid "mkfs-opts"
12352 msgstr ""
12353
12354 #. type: verbatim
12355 #: ../fish/guestfish-actions.pod:3387
12356 #, no-wrap
12357 msgid ""
12358 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] "
12359 "[sectorsize:N]\n"
12360 "\n"
12361 msgstr ""
12362
12363 #. type: textblock
12364 #: ../fish/guestfish-actions.pod:3389 ../src/guestfs-actions.pod:5259
12365 msgid ""
12366 "This function creates a filesystem on C<device>.  The filesystem type is "
12367 "C<fstype>, for example C<ext3>."
12368 msgstr ""
12369
12370 #. type: =item
12371 #: ../fish/guestfish-actions.pod:3396 ../src/guestfs-actions.pod:5266
12372 msgid "C<blocksize>"
12373 msgstr ""
12374
12375 #. type: textblock
12376 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5268
12377 msgid ""
12378 "The filesystem block size.  Supported block sizes depend on the filesystem "
12379 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12380 "filesystems."
12381 msgstr ""
12382
12383 #. type: textblock
12384 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5275
12385 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12386 msgstr ""
12387
12388 #. type: =item
12389 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5277
12390 msgid "C<features>"
12391 msgstr ""
12392
12393 #. type: textblock
12394 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5279
12395 msgid "This passes the I<-O> parameter to the external mkfs program."
12396 msgstr ""
12397
12398 #. type: textblock
12399 #: ../fish/guestfish-actions.pod:3411 ../src/guestfs-actions.pod:5281
12400 msgid ""
12401 "For certain filesystem types, this allows extra filesystem features to be "
12402 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:3415 ../src/guestfs-actions.pod:5285
12407 msgid ""
12408 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12409 "type."
12410 msgstr ""
12411
12412 #. type: =item
12413 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5288
12414 msgid "C<inode>"
12415 msgstr ""
12416
12417 #. type: textblock
12418 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5290
12419 msgid ""
12420 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12421 "sets the inode size (only for ext2/3/4 filesystems at present)."
12422 msgstr ""
12423
12424 #. type: =item
12425 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5293
12426 msgid "C<sectorsize>"
12427 msgstr ""
12428
12429 #. type: textblock
12430 #: ../fish/guestfish-actions.pod:3425 ../src/guestfs-actions.pod:5295
12431 msgid ""
12432 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12433 "sets sector size for ufs filesystem."
12434 msgstr ""
12435
12436 #. type: =head2
12437 #: ../fish/guestfish-actions.pod:3432
12438 msgid "mkmountpoint"
12439 msgstr ""
12440
12441 #. type: verbatim
12442 #: ../fish/guestfish-actions.pod:3434
12443 #, no-wrap
12444 msgid ""
12445 " mkmountpoint exemptpath\n"
12446 "\n"
12447 msgstr ""
12448
12449 #. type: textblock
12450 #: ../fish/guestfish-actions.pod:3436
12451 msgid ""
12452 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12453 "to create extra mountpoints before mounting the first filesystem."
12454 msgstr ""
12455
12456 #. type: textblock
12457 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5338
12458 msgid ""
12459 "These calls are I<only> necessary in some very limited circumstances, mainly "
12460 "the case where you want to mount a mix of unrelated and/or read-only "
12461 "filesystems together."
12462 msgstr ""
12463
12464 #. type: textblock
12465 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5342
12466 msgid ""
12467 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12468 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12469 "inside that.  You can unpack this as follows in guestfish:"
12470 msgstr ""
12471
12472 #. type: verbatim
12473 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5347
12474 #, no-wrap
12475 msgid ""
12476 " add-ro Fedora-11-i686-Live.iso\n"
12477 " run\n"
12478 " mkmountpoint /cd\n"
12479 " mkmountpoint /sqsh\n"
12480 " mkmountpoint /ext3fs\n"
12481 " mount /dev/sda /cd\n"
12482 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12483 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12484 "\n"
12485 msgstr ""
12486
12487 #. type: textblock
12488 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5356
12489 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12490 msgstr ""
12491
12492 #. type: textblock
12493 #: ../fish/guestfish-actions.pod:3460
12494 msgid ""
12495 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12496 "unexpected errors if you try to mix these calls.  It is safest to manually "
12497 "unmount filesystems and remove mountpoints after use."
12498 msgstr ""
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3464
12502 msgid ""
12503 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12504 "for this to work for manual mountpoints, you must ensure that the innermost "
12505 "mountpoints have the longest pathnames, as in the example code above."
12506 msgstr ""
12507
12508 #. type: textblock
12509 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5367
12510 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12511 msgstr ""
12512
12513 #. type: textblock
12514 #: ../fish/guestfish-actions.pod:3471
12515 msgid ""
12516 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12517 "L</umount-all> to be called when the handle is closed which can also trigger "
12518 "these issues."
12519 msgstr ""
12520
12521 #. type: =head2
12522 #: ../fish/guestfish-actions.pod:3475
12523 msgid "mknod"
12524 msgstr ""
12525
12526 #. type: verbatim
12527 #: ../fish/guestfish-actions.pod:3477
12528 #, no-wrap
12529 msgid ""
12530 " mknod mode devmajor devminor path\n"
12531 "\n"
12532 msgstr ""
12533
12534 #. type: textblock
12535 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5386
12536 msgid ""
12537 "This call creates block or character special devices, or named pipes "
12538 "(FIFOs)."
12539 msgstr ""
12540
12541 #. type: textblock
12542 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5389
12543 msgid ""
12544 "The C<mode> parameter should be the mode, using the standard constants.  "
12545 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12546 "used when creating block and character special devices."
12547 msgstr ""
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3487
12551 msgid ""
12552 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12553 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12554 "regular file).  These constants are available in the standard Linux header "
12555 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12556 "wrappers around this command which bitwise OR in the appropriate constant "
12557 "for you."
12558 msgstr ""
12559
12560 #. type: =head2
12561 #: ../fish/guestfish-actions.pod:3497
12562 msgid "mknod-b"
12563 msgstr ""
12564
12565 #. type: verbatim
12566 #: ../fish/guestfish-actions.pod:3499
12567 #, no-wrap
12568 msgid ""
12569 " mknod-b mode devmajor devminor path\n"
12570 "\n"
12571 msgstr ""
12572
12573 #. type: textblock
12574 #: ../fish/guestfish-actions.pod:3501
12575 msgid ""
12576 "This call creates a block device node called C<path> with mode C<mode> and "
12577 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12578 "wrapper around L</mknod>."
12579 msgstr ""
12580
12581 #. type: =head2
12582 #: ../fish/guestfish-actions.pod:3507
12583 msgid "mknod-c"
12584 msgstr ""
12585
12586 #. type: verbatim
12587 #: ../fish/guestfish-actions.pod:3509
12588 #, no-wrap
12589 msgid ""
12590 " mknod-c mode devmajor devminor path\n"
12591 "\n"
12592 msgstr ""
12593
12594 #. type: textblock
12595 #: ../fish/guestfish-actions.pod:3511
12596 msgid ""
12597 "This call creates a char device node called C<path> with mode C<mode> and "
12598 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12599 "wrapper around L</mknod>."
12600 msgstr ""
12601
12602 #. type: =head2
12603 #: ../fish/guestfish-actions.pod:3517
12604 msgid "mkswap"
12605 msgstr ""
12606
12607 #. type: verbatim
12608 #: ../fish/guestfish-actions.pod:3519
12609 #, no-wrap
12610 msgid ""
12611 " mkswap device\n"
12612 "\n"
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5452
12617 msgid "Create a swap partition on C<device>."
12618 msgstr ""
12619
12620 #. type: =head2
12621 #: ../fish/guestfish-actions.pod:3523
12622 msgid "mkswap-L"
12623 msgstr ""
12624
12625 #. type: verbatim
12626 #: ../fish/guestfish-actions.pod:3525
12627 #, no-wrap
12628 msgid ""
12629 " mkswap-L label device\n"
12630 "\n"
12631 msgstr ""
12632
12633 #. type: textblock
12634 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5465
12635 msgid "Create a swap partition on C<device> with label C<label>."
12636 msgstr ""
12637
12638 #. type: textblock
12639 #: ../fish/guestfish-actions.pod:3529 ../src/guestfs-actions.pod:5467
12640 msgid ""
12641 "Note that you cannot attach a swap label to a block device "
12642 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
12643 "the kernel or swap tools."
12644 msgstr ""
12645
12646 #. type: =head2
12647 #: ../fish/guestfish-actions.pod:3533
12648 msgid "mkswap-U"
12649 msgstr ""
12650
12651 #. type: verbatim
12652 #: ../fish/guestfish-actions.pod:3535
12653 #, no-wrap
12654 msgid ""
12655 " mkswap-U uuid device\n"
12656 "\n"
12657 msgstr ""
12658
12659 #. type: textblock
12660 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5482
12661 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12662 msgstr ""
12663
12664 #. type: =head2
12665 #: ../fish/guestfish-actions.pod:3539
12666 msgid "mkswap-file"
12667 msgstr ""
12668
12669 #. type: verbatim
12670 #: ../fish/guestfish-actions.pod:3541
12671 #, no-wrap
12672 msgid ""
12673 " mkswap-file path\n"
12674 "\n"
12675 msgstr ""
12676
12677 #. type: textblock
12678 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5494
12679 msgid "Create a swap file."
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:3545
12684 msgid ""
12685 "This command just writes a swap file signature to an existing file.  To "
12686 "create the file itself, use something like L</fallocate>."
12687 msgstr ""
12688
12689 #. type: =head2
12690 #: ../fish/guestfish-actions.pod:3548
12691 msgid "modprobe"
12692 msgstr ""
12693
12694 #. type: verbatim
12695 #: ../fish/guestfish-actions.pod:3550
12696 #, no-wrap
12697 msgid ""
12698 " modprobe modulename\n"
12699 "\n"
12700 msgstr ""
12701
12702 #. type: textblock
12703 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5509
12704 msgid "This loads a kernel module in the appliance."
12705 msgstr ""
12706
12707 #. type: textblock
12708 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
12709 msgid ""
12710 "The kernel module must have been whitelisted when libguestfs was built (see "
12711 "C<appliance/kmod.whitelist.in> in the source)."
12712 msgstr ""
12713
12714 #. type: =head2
12715 #: ../fish/guestfish-actions.pod:3557
12716 msgid "mount"
12717 msgstr ""
12718
12719 #. type: verbatim
12720 #: ../fish/guestfish-actions.pod:3559
12721 #, no-wrap
12722 msgid ""
12723 " mount device mountpoint\n"
12724 "\n"
12725 msgstr ""
12726
12727 #. type: textblock
12728 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5525
12729 msgid ""
12730 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12731 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12732 "those block devices contain partitions, they will have the usual names "
12733 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12734 msgstr ""
12735
12736 #. type: textblock
12737 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5531
12738 msgid ""
12739 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12740 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12741 "mounted on directories which already exist."
12742 msgstr ""
12743
12744 #. type: textblock
12745 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5536
12746 msgid ""
12747 "The mounted filesystem is writable, if we have sufficient permissions on the "
12748 "underlying device."
12749 msgstr ""
12750
12751 #. type: textblock
12752 #: ../fish/guestfish-actions.pod:3575
12753 msgid ""
12754 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12755 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12756 "problems for users.  If your program might need to work with older versions "
12757 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12758 "first parameter if you don't want any options)."
12759 msgstr ""
12760
12761 #. type: =head2
12762 #: ../fish/guestfish-actions.pod:3582
12763 msgid "mount-9p"
12764 msgstr ""
12765
12766 #. type: verbatim
12767 #: ../fish/guestfish-actions.pod:3584
12768 #, no-wrap
12769 msgid ""
12770 " mount-9p mounttag mountpoint [options:..]\n"
12771 "\n"
12772 msgstr ""
12773
12774 #. type: textblock
12775 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5565
12776 msgid ""
12777 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12778 "C<mountpoint>."
12779 msgstr ""
12780
12781 #. type: textblock
12782 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5568
12783 msgid ""
12784 "If required, C<trans=virtio> will be automatically added to the options.  "
12785 "Any other options required can be passed in the optional C<options> "
12786 "parameter."
12787 msgstr ""
12788
12789 #. type: =head2
12790 #: ../fish/guestfish-actions.pod:3595
12791 msgid "mount-loop"
12792 msgstr ""
12793
12794 #. type: verbatim
12795 #: ../fish/guestfish-actions.pod:3597
12796 #, no-wrap
12797 msgid ""
12798 " mount-loop file mountpoint\n"
12799 "\n"
12800 msgstr ""
12801
12802 #. type: textblock
12803 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5607
12804 msgid ""
12805 "This command lets you mount C<file> (a filesystem image in a file) on a "
12806 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12807 "mountpoint>."
12808 msgstr ""
12809
12810 #. type: =head2
12811 #: ../fish/guestfish-actions.pod:3603
12812 msgid "mount-options"
12813 msgstr ""
12814
12815 #. type: verbatim
12816 #: ../fish/guestfish-actions.pod:3605
12817 #, no-wrap
12818 msgid ""
12819 " mount-options options device mountpoint\n"
12820 "\n"
12821 msgstr ""
12822
12823 #. type: textblock
12824 #: ../fish/guestfish-actions.pod:3607
12825 msgid ""
12826 "This is the same as the L</mount> command, but it allows you to set the "
12827 "mount options as for the L<mount(8)> I<-o> flag."
12828 msgstr ""
12829
12830 #. type: textblock
12831 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5627
12832 msgid ""
12833 "If the C<options> parameter is an empty string, then no options are passed "
12834 "(all options default to whatever the filesystem uses)."
12835 msgstr ""
12836
12837 #. type: =head2
12838 #: ../fish/guestfish-actions.pod:3615
12839 msgid "mount-ro"
12840 msgstr ""
12841
12842 #. type: verbatim
12843 #: ../fish/guestfish-actions.pod:3617
12844 #, no-wrap
12845 msgid ""
12846 " mount-ro device mountpoint\n"
12847 "\n"
12848 msgstr ""
12849
12850 #. type: textblock
12851 #: ../fish/guestfish-actions.pod:3619
12852 msgid ""
12853 "This is the same as the L</mount> command, but it mounts the filesystem with "
12854 "the read-only (I<-o ro>) flag."
12855 msgstr ""
12856
12857 #. type: =head2
12858 #: ../fish/guestfish-actions.pod:3622
12859 msgid "mount-vfs"
12860 msgstr ""
12861
12862 #. type: verbatim
12863 #: ../fish/guestfish-actions.pod:3624
12864 #, no-wrap
12865 msgid ""
12866 " mount-vfs options vfstype device mountpoint\n"
12867 "\n"
12868 msgstr ""
12869
12870 #. type: textblock
12871 #: ../fish/guestfish-actions.pod:3626
12872 msgid ""
12873 "This is the same as the L</mount> command, but it allows you to set both the "
12874 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12875 msgstr ""
12876
12877 #. type: =head2
12878 #: ../fish/guestfish-actions.pod:3630
12879 msgid "mountpoints"
12880 msgstr ""
12881
12882 #. type: verbatim
12883 #: ../fish/guestfish-actions.pod:3632
12884 #, no-wrap
12885 msgid ""
12886 " mountpoints\n"
12887 "\n"
12888 msgstr ""
12889
12890 #. type: textblock
12891 #: ../fish/guestfish-actions.pod:3634
12892 msgid ""
12893 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12894 "This one returns a hash table (map) of device name to directory where the "
12895 "device is mounted."
12896 msgstr ""
12897
12898 #. type: =head2
12899 #: ../fish/guestfish-actions.pod:3638
12900 msgid "mounts"
12901 msgstr ""
12902
12903 #. type: verbatim
12904 #: ../fish/guestfish-actions.pod:3640
12905 #, no-wrap
12906 msgid ""
12907 " mounts\n"
12908 "\n"
12909 msgstr ""
12910
12911 #. type: textblock
12912 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5688
12913 msgid ""
12914 "This returns the list of currently mounted filesystems.  It returns the list "
12915 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12916 msgstr ""
12917
12918 #. type: textblock
12919 #: ../fish/guestfish-actions.pod:3645 ../src/guestfs-actions.pod:5691
12920 msgid "Some internal mounts are not shown."
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:3647
12925 msgid "See also: L</mountpoints>"
12926 msgstr ""
12927
12928 #. type: =head2
12929 #: ../fish/guestfish-actions.pod:3649
12930 msgid "mv"
12931 msgstr ""
12932
12933 #. type: verbatim
12934 #: ../fish/guestfish-actions.pod:3651
12935 #, no-wrap
12936 msgid ""
12937 " mv src dest\n"
12938 "\n"
12939 msgstr ""
12940
12941 #. type: textblock
12942 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5708
12943 msgid ""
12944 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12945 "destination filename or destination directory."
12946 msgstr ""
12947
12948 #. type: =head2
12949 #: ../fish/guestfish-actions.pod:3656
12950 msgid "ntfs-3g-probe"
12951 msgstr ""
12952
12953 #. type: verbatim
12954 #: ../fish/guestfish-actions.pod:3658
12955 #, no-wrap
12956 msgid ""
12957 " ntfs-3g-probe true|false device\n"
12958 "\n"
12959 msgstr ""
12960
12961 #. type: textblock
12962 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5722
12963 msgid ""
12964 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12965 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
12966 "read-write, and some cannot be mounted at all)."
12967 msgstr ""
12968
12969 #. type: textblock
12970 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5726
12971 msgid ""
12972 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12973 "can be mounted read-write.  Set it to false if you want to test if the "
12974 "volume can be mounted read-only."
12975 msgstr ""
12976
12977 #. type: textblock
12978 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5730
12979 msgid ""
12980 "The return value is an integer which C<0> if the operation would succeed, or "
12981 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12982 msgstr ""
12983
12984 #. type: =head2
12985 #: ../fish/guestfish-actions.pod:3672
12986 msgid "ntfsresize"
12987 msgstr ""
12988
12989 #. type: verbatim
12990 #: ../fish/guestfish-actions.pod:3674
12991 #, no-wrap
12992 msgid ""
12993 " ntfsresize device\n"
12994 "\n"
12995 msgstr ""
12996
12997 #. type: textblock
12998 #: ../fish/guestfish-actions.pod:3676 ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5783
12999 msgid ""
13000 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13001 "size of the underlying device."
13002 msgstr ""
13003
13004 #. type: textblock
13005 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5754
13006 msgid ""
13007 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13008 "consistency check (for safety).  You have to boot into Windows to perform "
13009 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13010 "resize filesystems which have been marked in this way.  So in effect it is "
13011 "not possible to call ntfsresize multiple times on a single filesystem "
13012 "without booting into Windows between each resize."
13013 msgstr ""
13014
13015 #. type: textblock
13016 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5762 ../src/guestfs-actions.pod:5809
13017 msgid "See also L<ntfsresize(8)>."
13018 msgstr ""
13019
13020 #. type: textblock
13021 #: ../fish/guestfish-actions.pod:3689 ../fish/guestfish-actions.pod:3737
13022 msgid ""
13023 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13024 "call instead."
13025 msgstr ""
13026
13027 #. type: =head2
13028 #: ../fish/guestfish-actions.pod:3696
13029 msgid "ntfsresize-opts"
13030 msgstr ""
13031
13032 #. type: verbatim
13033 #: ../fish/guestfish-actions.pod:3698
13034 #, no-wrap
13035 msgid ""
13036 " ntfsresize-opts device [size:N] [force:true|false]\n"
13037 "\n"
13038 msgstr ""
13039
13040 #. type: textblock
13041 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5792
13042 msgid ""
13043 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13044 "resized to fit the container (eg. partition)."
13045 msgstr ""
13046
13047 #. type: =item
13048 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7766
13049 msgid "C<force>"
13050 msgstr ""
13051
13052 #. type: textblock
13053 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5797
13054 msgid ""
13055 "If this option is true, then force the resize of the filesystem even if the "
13056 "filesystem is marked as requiring a consistency check."
13057 msgstr ""
13058
13059 #. type: textblock
13060 #: ../fish/guestfish-actions.pod:3717
13061 msgid ""
13062 "After the resize operation, the filesystem is always marked as requiring a "
13063 "consistency check (for safety).  You have to boot into Windows to perform "
13064 "this check and clear this condition.  If you I<don't> set the C<force> "
13065 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13066 "a single filesystem without booting into Windows between each resize."
13067 msgstr ""
13068
13069 #. type: =head2
13070 #: ../fish/guestfish-actions.pod:3730
13071 msgid "ntfsresize-size"
13072 msgstr ""
13073
13074 #. type: verbatim
13075 #: ../fish/guestfish-actions.pod:3732
13076 #, no-wrap
13077 msgid ""
13078 " ntfsresize-size device size\n"
13079 "\n"
13080 msgstr ""
13081
13082 #. type: textblock
13083 #: ../fish/guestfish-actions.pod:3734
13084 msgid ""
13085 "This command is the same as L</ntfsresize> except that it allows you to "
13086 "specify the new size (in bytes) explicitly."
13087 msgstr ""
13088
13089 #. type: =head2
13090 #: ../fish/guestfish-actions.pod:3744
13091 msgid "part-add"
13092 msgstr ""
13093
13094 #. type: verbatim
13095 #: ../fish/guestfish-actions.pod:3746
13096 #, no-wrap
13097 msgid ""
13098 " part-add device prlogex startsect endsect\n"
13099 "\n"
13100 msgstr ""
13101
13102 #. type: textblock
13103 #: ../fish/guestfish-actions.pod:3748
13104 msgid ""
13105 "This command adds a partition to C<device>.  If there is no partition table "
13106 "on the device, call L</part-init> first."
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5870
13111 msgid ""
13112 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13113 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13114 "C<logical>) and C<e> (or C<extended>) partition types."
13115 msgstr ""
13116
13117 #. type: textblock
13118 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5875
13119 msgid ""
13120 "C<startsect> and C<endsect> are the start and end of the partition in "
13121 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13122 "from the end of the disk (C<-1> is the last sector)."
13123 msgstr ""
13124
13125 #. type: textblock
13126 #: ../fish/guestfish-actions.pod:3760
13127 msgid ""
13128 "Creating a partition which covers the whole disk is not so easy.  Use "
13129 "L</part-disk> to do that."
13130 msgstr ""
13131
13132 #. type: =head2
13133 #: ../fish/guestfish-actions.pod:3763
13134 msgid "part-del"
13135 msgstr ""
13136
13137 #. type: verbatim
13138 #: ../fish/guestfish-actions.pod:3765
13139 #, no-wrap
13140 msgid ""
13141 " part-del device partnum\n"
13142 "\n"
13143 msgstr ""
13144
13145 #. type: textblock
13146 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5893
13147 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13148 msgstr ""
13149
13150 #. type: textblock
13151 #: ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5895
13152 msgid ""
13153 "Note that in the case of MBR partitioning, deleting an extended partition "
13154 "also deletes any logical partitions it contains."
13155 msgstr ""
13156
13157 #. type: =head2
13158 #: ../fish/guestfish-actions.pod:3773
13159 msgid "part-disk"
13160 msgstr ""
13161
13162 #. type: verbatim
13163 #: ../fish/guestfish-actions.pod:3775
13164 #, no-wrap
13165 msgid ""
13166 " part-disk device parttype\n"
13167 "\n"
13168 msgstr ""
13169
13170 #. type: textblock
13171 #: ../fish/guestfish-actions.pod:3777
13172 msgid ""
13173 "This command is simply a combination of L</part-init> followed by "
13174 "L</part-add> to create a single primary partition covering the whole disk."
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3781
13179 msgid ""
13180 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13181 "possible values are described in L</part-init>."
13182 msgstr ""
13183
13184 #. type: =head2
13185 #: ../fish/guestfish-actions.pod:3784
13186 msgid "part-get-bootable"
13187 msgstr ""
13188
13189 #. type: verbatim
13190 #: ../fish/guestfish-actions.pod:3786
13191 #, no-wrap
13192 msgid ""
13193 " part-get-bootable device partnum\n"
13194 "\n"
13195 msgstr ""
13196
13197 #. type: textblock
13198 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5928
13199 msgid ""
13200 "This command returns true if the partition C<partnum> on C<device> has the "
13201 "bootable flag set."
13202 msgstr ""
13203
13204 #. type: textblock
13205 #: ../fish/guestfish-actions.pod:3791
13206 msgid "See also L</part-set-bootable>."
13207 msgstr ""
13208
13209 #. type: =head2
13210 #: ../fish/guestfish-actions.pod:3793
13211 msgid "part-get-mbr-id"
13212 msgstr ""
13213
13214 #. type: verbatim
13215 #: ../fish/guestfish-actions.pod:3795
13216 #, no-wrap
13217 msgid ""
13218 " part-get-mbr-id device partnum\n"
13219 "\n"
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../fish/guestfish-actions.pod:3797 ../src/guestfs-actions.pod:5944
13224 msgid ""
13225 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13226 "partition C<partnum>."
13227 msgstr ""
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:3800 ../fish/guestfish-actions.pod:3944
13231 msgid ""
13232 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13233 "undefined results for other partition table types (see "
13234 "L</part-get-parttype>)."
13235 msgstr ""
13236
13237 #. type: =head2
13238 #: ../fish/guestfish-actions.pod:3804
13239 msgid "part-get-parttype"
13240 msgstr ""
13241
13242 #. type: verbatim
13243 #: ../fish/guestfish-actions.pod:3806
13244 #, no-wrap
13245 msgid ""
13246 " part-get-parttype device\n"
13247 "\n"
13248 msgstr ""
13249
13250 #. type: textblock
13251 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
13252 msgid ""
13253 "This command examines the partition table on C<device> and returns the "
13254 "partition table type (format) being used."
13255 msgstr ""
13256
13257 #. type: textblock
13258 #: ../fish/guestfish-actions.pod:3811
13259 msgid ""
13260 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13261 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13262 "possible, although unusual.  See L</part-init> for a full list."
13263 msgstr ""
13264
13265 #. type: =head2
13266 #: ../fish/guestfish-actions.pod:3816
13267 msgid "part-init"
13268 msgstr ""
13269
13270 #. type: verbatim
13271 #: ../fish/guestfish-actions.pod:3818
13272 #, no-wrap
13273 msgid ""
13274 " part-init device parttype\n"
13275 "\n"
13276 msgstr ""
13277
13278 #. type: textblock
13279 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5981
13280 msgid ""
13281 "This creates an empty partition table on C<device> of one of the partition "
13282 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13283 "(for large disks)."
13284 msgstr ""
13285
13286 #. type: textblock
13287 #: ../fish/guestfish-actions.pod:3824
13288 msgid ""
13289 "Initially there are no partitions.  Following this, you should call "
13290 "L</part-add> for each partition required."
13291 msgstr ""
13292
13293 #. type: textblock
13294 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5988
13295 msgid "Possible values for C<parttype> are:"
13296 msgstr ""
13297
13298 #. type: =item
13299 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5992
13300 msgid "B<efi>"
13301 msgstr ""
13302
13303 #. type: =item
13304 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5994
13305 msgid "B<gpt>"
13306 msgstr ""
13307
13308 #. type: textblock
13309 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5996
13310 msgid "Intel EFI / GPT partition table."
13311 msgstr ""
13312
13313 #. type: textblock
13314 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5998
13315 msgid ""
13316 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13317 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13318 "the C<mbr> format."
13319 msgstr ""
13320
13321 #. type: =item
13322 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:6002
13323 msgid "B<mbr>"
13324 msgstr ""
13325
13326 #. type: =item
13327 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:6004
13328 msgid "B<msdos>"
13329 msgstr ""
13330
13331 #. type: textblock
13332 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:6006
13333 msgid ""
13334 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13335 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13336 "TB.  For large disks we recommend using C<gpt>."
13337 msgstr ""
13338
13339 #. type: textblock
13340 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6013
13341 msgid "Other partition table types that may work but are not supported include:"
13342 msgstr ""
13343
13344 #. type: =item
13345 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:6018
13346 msgid "B<aix>"
13347 msgstr ""
13348
13349 #. type: textblock
13350 #: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:6020
13351 msgid "AIX disk labels."
13352 msgstr ""
13353
13354 #. type: =item
13355 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:6022
13356 msgid "B<amiga>"
13357 msgstr ""
13358
13359 #. type: =item
13360 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6024
13361 msgid "B<rdb>"
13362 msgstr ""
13363
13364 #. type: textblock
13365 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6026
13366 msgid "Amiga \"Rigid Disk Block\" format."
13367 msgstr ""
13368
13369 #. type: =item
13370 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6028
13371 msgid "B<bsd>"
13372 msgstr ""
13373
13374 #. type: textblock
13375 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6030
13376 msgid "BSD disk labels."
13377 msgstr ""
13378
13379 #. type: =item
13380 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:6032
13381 msgid "B<dasd>"
13382 msgstr ""
13383
13384 #. type: textblock
13385 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6034
13386 msgid "DASD, used on IBM mainframes."
13387 msgstr ""
13388
13389 #. type: =item
13390 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6036
13391 msgid "B<dvh>"
13392 msgstr ""
13393
13394 #. type: textblock
13395 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6038
13396 msgid "MIPS/SGI volumes."
13397 msgstr ""
13398
13399 #. type: =item
13400 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6040
13401 msgid "B<mac>"
13402 msgstr ""
13403
13404 #. type: textblock
13405 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:6042
13406 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13407 msgstr ""
13408
13409 #. type: =item
13410 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6044
13411 msgid "B<pc98>"
13412 msgstr ""
13413
13414 #. type: textblock
13415 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6046
13416 msgid "NEC PC-98 format, common in Japan apparently."
13417 msgstr ""
13418
13419 #. type: =item
13420 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6048
13421 msgid "B<sun>"
13422 msgstr ""
13423
13424 #. type: textblock
13425 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:6050
13426 msgid "Sun disk labels."
13427 msgstr ""
13428
13429 #. type: =head2
13430 #: ../fish/guestfish-actions.pod:3893
13431 msgid "part-list"
13432 msgstr ""
13433
13434 #. type: verbatim
13435 #: ../fish/guestfish-actions.pod:3895
13436 #, no-wrap
13437 msgid ""
13438 " part-list device\n"
13439 "\n"
13440 msgstr ""
13441
13442 #. type: textblock
13443 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:6064
13444 msgid ""
13445 "This command parses the partition table on C<device> and returns the list of "
13446 "partitions found."
13447 msgstr ""
13448
13449 #. type: textblock
13450 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
13451 msgid "The fields in the returned structure are:"
13452 msgstr ""
13453
13454 #. type: =item
13455 #: ../fish/guestfish-actions.pod:3904 ../src/guestfs-actions.pod:6071
13456 msgid "B<part_num>"
13457 msgstr ""
13458
13459 #. type: textblock
13460 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6073
13461 msgid "Partition number, counting from 1."
13462 msgstr ""
13463
13464 #. type: =item
13465 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6075
13466 msgid "B<part_start>"
13467 msgstr ""
13468
13469 #. type: textblock
13470 #: ../fish/guestfish-actions.pod:3910
13471 msgid ""
13472 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13473 "the device's sector size, see L</blockdev-getss>."
13474 msgstr ""
13475
13476 #. type: =item
13477 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6080
13478 msgid "B<part_end>"
13479 msgstr ""
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6082
13483 msgid "End of the partition in bytes."
13484 msgstr ""
13485
13486 #. type: =item
13487 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6084
13488 msgid "B<part_size>"
13489 msgstr ""
13490
13491 #. type: textblock
13492 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6086
13493 msgid "Size of the partition in bytes."
13494 msgstr ""
13495
13496 #. type: =head2
13497 #: ../fish/guestfish-actions.pod:3923
13498 msgid "part-set-bootable"
13499 msgstr ""
13500
13501 #. type: verbatim
13502 #: ../fish/guestfish-actions.pod:3925
13503 #, no-wrap
13504 msgid ""
13505 " part-set-bootable device partnum true|false\n"
13506 "\n"
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6104
13511 msgid ""
13512 "This sets the bootable flag on partition numbered C<partnum> on device "
13513 "C<device>.  Note that partitions are numbered from 1."
13514 msgstr ""
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6107
13518 msgid ""
13519 "The bootable flag is used by some operating systems (notably Windows) to "
13520 "determine which partition to boot from.  It is by no means universally "
13521 "recognized."
13522 msgstr ""
13523
13524 #. type: =head2
13525 #: ../fish/guestfish-actions.pod:3934
13526 msgid "part-set-mbr-id"
13527 msgstr ""
13528
13529 #. type: verbatim
13530 #: ../fish/guestfish-actions.pod:3936
13531 #, no-wrap
13532 msgid ""
13533 " part-set-mbr-id device partnum idbyte\n"
13534 "\n"
13535 msgstr ""
13536
13537 #. type: textblock
13538 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6123
13539 msgid ""
13540 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13541 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13542 "documentation are in fact hexadecimal numbers, but usually documented "
13543 "without any leading \"0x\" which might be confusing."
13544 msgstr ""
13545
13546 #. type: =head2
13547 #: ../fish/guestfish-actions.pod:3948
13548 msgid "part-set-name"
13549 msgstr ""
13550
13551 #. type: verbatim
13552 #: ../fish/guestfish-actions.pod:3950
13553 #, no-wrap
13554 msgid ""
13555 " part-set-name device partnum name\n"
13556 "\n"
13557 msgstr ""
13558
13559 #. type: textblock
13560 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6145
13561 msgid ""
13562 "This sets the partition name on partition numbered C<partnum> on device "
13563 "C<device>.  Note that partitions are numbered from 1."
13564 msgstr ""
13565
13566 #. type: textblock
13567 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6148
13568 msgid ""
13569 "The partition name can only be set on certain types of partition table.  "
13570 "This works on C<gpt> but not on C<mbr> partitions."
13571 msgstr ""
13572
13573 #. type: =head2
13574 #: ../fish/guestfish-actions.pod:3958
13575 msgid "part-to-dev"
13576 msgstr ""
13577
13578 #. type: verbatim
13579 #: ../fish/guestfish-actions.pod:3960
13580 #, no-wrap
13581 msgid ""
13582 " part-to-dev partition\n"
13583 "\n"
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6161
13588 msgid ""
13589 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13590 "partition number, returning the device name (eg. \"/dev/sdb\")."
13591 msgstr ""
13592
13593 #. type: textblock
13594 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:3978
13595 msgid ""
13596 "The named partition must exist, for example as a string returned from "
13597 "L</list-partitions>."
13598 msgstr ""
13599
13600 #. type: textblock
13601 #: ../fish/guestfish-actions.pod:3969
13602 msgid "See also L</part-to-partnum>."
13603 msgstr ""
13604
13605 #. type: =head2
13606 #: ../fish/guestfish-actions.pod:3971
13607 msgid "part-to-partnum"
13608 msgstr ""
13609
13610 #. type: verbatim
13611 #: ../fish/guestfish-actions.pod:3973
13612 #, no-wrap
13613 msgid ""
13614 " part-to-partnum partition\n"
13615 "\n"
13616 msgstr ""
13617
13618 #. type: textblock
13619 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6181
13620 msgid ""
13621 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
13622 "partition number (eg. C<1>)."
13623 msgstr ""
13624
13625 #. type: textblock
13626 #: ../fish/guestfish-actions.pod:3981
13627 msgid "See also L</part-to-dev>."
13628 msgstr ""
13629
13630 #. type: =head2
13631 #: ../fish/guestfish-actions.pod:3983
13632 msgid "ping-daemon"
13633 msgstr ""
13634
13635 #. type: verbatim
13636 #: ../fish/guestfish-actions.pod:3985
13637 #, no-wrap
13638 msgid ""
13639 " ping-daemon\n"
13640 "\n"
13641 msgstr ""
13642
13643 #. type: textblock
13644 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6198
13645 msgid ""
13646 "This is a test probe into the guestfs daemon running inside the qemu "
13647 "subprocess.  Calling this function checks that the daemon responds to the "
13648 "ping message, without affecting the daemon or attached block device(s) in "
13649 "any other way."
13650 msgstr ""
13651
13652 #. type: =head2
13653 #: ../fish/guestfish-actions.pod:3992
13654 msgid "pread"
13655 msgstr ""
13656
13657 #. type: verbatim
13658 #: ../fish/guestfish-actions.pod:3994
13659 #, no-wrap
13660 msgid ""
13661 " pread path count offset\n"
13662 "\n"
13663 msgstr ""
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6216
13667 msgid ""
13668 "This command lets you read part of a file.  It reads C<count> bytes of the "
13669 "file, starting at C<offset>, from file C<path>."
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3999 ../fish/guestfish-actions.pod:4014 ../src/guestfs-actions.pod:6219 ../src/guestfs-actions.pod:6245
13674 msgid ""
13675 "This may read fewer bytes than requested.  For further details see the "
13676 "L<pread(2)> system call."
13677 msgstr ""
13678
13679 #. type: textblock
13680 #: ../fish/guestfish-actions.pod:4002
13681 msgid "See also L</pwrite>, L</pread-device>."
13682 msgstr ""
13683
13684 #. type: =head2
13685 #: ../fish/guestfish-actions.pod:4007
13686 msgid "pread-device"
13687 msgstr ""
13688
13689 #. type: verbatim
13690 #: ../fish/guestfish-actions.pod:4009
13691 #, no-wrap
13692 msgid ""
13693 " pread-device device count offset\n"
13694 "\n"
13695 msgstr ""
13696
13697 #. type: textblock
13698 #: ../fish/guestfish-actions.pod:4011 ../src/guestfs-actions.pod:6242
13699 msgid ""
13700 "This command lets you read part of a file.  It reads C<count> bytes of "
13701 "C<device>, starting at C<offset>."
13702 msgstr ""
13703
13704 #. type: textblock
13705 #: ../fish/guestfish-actions.pod:4017
13706 msgid "See also L</pread>."
13707 msgstr ""
13708
13709 #. type: =head2
13710 #: ../fish/guestfish-actions.pod:4022
13711 msgid "pvcreate"
13712 msgstr ""
13713
13714 #. type: verbatim
13715 #: ../fish/guestfish-actions.pod:4024
13716 #, no-wrap
13717 msgid ""
13718 " pvcreate device\n"
13719 "\n"
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:4026 ../src/guestfs-actions.pod:6265
13724 msgid ""
13725 "This creates an LVM physical volume on the named C<device>, where C<device> "
13726 "should usually be a partition name such as C</dev/sda1>."
13727 msgstr ""
13728
13729 #. type: =head2
13730 #: ../fish/guestfish-actions.pod:4030
13731 msgid "pvremove"
13732 msgstr ""
13733
13734 #. type: verbatim
13735 #: ../fish/guestfish-actions.pod:4032
13736 #, no-wrap
13737 msgid ""
13738 " pvremove device\n"
13739 "\n"
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6279
13744 msgid ""
13745 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13746 "it."
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
13751 msgid ""
13752 "The implementation uses the C<pvremove> command which refuses to wipe "
13753 "physical volumes that contain any volume groups, so you have to remove those "
13754 "first."
13755 msgstr ""
13756
13757 #. type: =head2
13758 #: ../fish/guestfish-actions.pod:4041
13759 msgid "pvresize"
13760 msgstr ""
13761
13762 #. type: verbatim
13763 #: ../fish/guestfish-actions.pod:4043
13764 #, no-wrap
13765 msgid ""
13766 " pvresize device\n"
13767 "\n"
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
13772 msgid ""
13773 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13774 "the new size of the underlying device."
13775 msgstr ""
13776
13777 #. type: =head2
13778 #: ../fish/guestfish-actions.pod:4048
13779 msgid "pvresize-size"
13780 msgstr ""
13781
13782 #. type: verbatim
13783 #: ../fish/guestfish-actions.pod:4050
13784 #, no-wrap
13785 msgid ""
13786 " pvresize-size device size\n"
13787 "\n"
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../fish/guestfish-actions.pod:4052
13792 msgid ""
13793 "This command is the same as L</pvresize> except that it allows you to "
13794 "specify the new size (in bytes) explicitly."
13795 msgstr ""
13796
13797 #. type: =head2
13798 #: ../fish/guestfish-actions.pod:4055
13799 msgid "pvs"
13800 msgstr ""
13801
13802 #. type: verbatim
13803 #: ../fish/guestfish-actions.pod:4057
13804 #, no-wrap
13805 msgid ""
13806 " pvs\n"
13807 "\n"
13808 msgstr ""
13809
13810 #. type: textblock
13811 #: ../fish/guestfish-actions.pod:4059 ../src/guestfs-actions.pod:6322
13812 msgid ""
13813 "List all the physical volumes detected.  This is the equivalent of the "
13814 "L<pvs(8)> command."
13815 msgstr ""
13816
13817 #. type: textblock
13818 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6325
13819 msgid ""
13820 "This returns a list of just the device names that contain PVs "
13821 "(eg. C</dev/sda2>)."
13822 msgstr ""
13823
13824 #. type: textblock
13825 #: ../fish/guestfish-actions.pod:4065
13826 msgid "See also L</pvs-full>."
13827 msgstr ""
13828
13829 #. type: =head2
13830 #: ../fish/guestfish-actions.pod:4067
13831 msgid "pvs-full"
13832 msgstr ""
13833
13834 #. type: verbatim
13835 #: ../fish/guestfish-actions.pod:4069
13836 #, no-wrap
13837 msgid ""
13838 " pvs-full\n"
13839 "\n"
13840 msgstr ""
13841
13842 #. type: textblock
13843 #: ../fish/guestfish-actions.pod:4071 ../src/guestfs-actions.pod:6341
13844 msgid ""
13845 "List all the physical volumes detected.  This is the equivalent of the "
13846 "L<pvs(8)> command.  The \"full\" version includes all fields."
13847 msgstr ""
13848
13849 #. type: =head2
13850 #: ../fish/guestfish-actions.pod:4074
13851 msgid "pvuuid"
13852 msgstr ""
13853
13854 #. type: verbatim
13855 #: ../fish/guestfish-actions.pod:4076
13856 #, no-wrap
13857 msgid ""
13858 " pvuuid device\n"
13859 "\n"
13860 msgstr ""
13861
13862 #. type: textblock
13863 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6356
13864 msgid "This command returns the UUID of the LVM PV C<device>."
13865 msgstr ""
13866
13867 #. type: =head2
13868 #: ../fish/guestfish-actions.pod:4080
13869 msgid "pwrite"
13870 msgstr ""
13871
13872 #. type: verbatim
13873 #: ../fish/guestfish-actions.pod:4082
13874 #, no-wrap
13875 msgid ""
13876 " pwrite path content offset\n"
13877 "\n"
13878 msgstr ""
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6372
13882 msgid ""
13883 "This command writes to part of a file.  It writes the data buffer C<content> "
13884 "to the file C<path> starting at offset C<offset>."
13885 msgstr ""
13886
13887 #. type: textblock
13888 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6375
13889 msgid ""
13890 "This command implements the L<pwrite(2)> system call, and like that system "
13891 "call it may not write the full data requested.  The return value is the "
13892 "number of bytes that were actually written to the file.  This could even be "
13893 "0, although short writes are unlikely for regular files in ordinary "
13894 "circumstances."
13895 msgstr ""
13896
13897 #. type: textblock
13898 #: ../fish/guestfish-actions.pod:4093
13899 msgid "See also L</pread>, L</pwrite-device>."
13900 msgstr ""
13901
13902 #. type: =head2
13903 #: ../fish/guestfish-actions.pod:4098
13904 msgid "pwrite-device"
13905 msgstr ""
13906
13907 #. type: verbatim
13908 #: ../fish/guestfish-actions.pod:4100
13909 #, no-wrap
13910 msgid ""
13911 " pwrite-device device content offset\n"
13912 "\n"
13913 msgstr ""
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6399
13917 msgid ""
13918 "This command writes to part of a device.  It writes the data buffer "
13919 "C<content> to C<device> starting at offset C<offset>."
13920 msgstr ""
13921
13922 #. type: textblock
13923 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6402
13924 msgid ""
13925 "This command implements the L<pwrite(2)> system call, and like that system "
13926 "call it may not write the full data requested (although short writes to disk "
13927 "devices and partitions are probably impossible with standard Linux kernels)."
13928 msgstr ""
13929
13930 #. type: textblock
13931 #: ../fish/guestfish-actions.pod:4110
13932 msgid "See also L</pwrite>."
13933 msgstr ""
13934
13935 #. type: =head2
13936 #: ../fish/guestfish-actions.pod:4115
13937 msgid "read-file"
13938 msgstr ""
13939
13940 #. type: verbatim
13941 #: ../fish/guestfish-actions.pod:4117
13942 #, no-wrap
13943 msgid ""
13944 " read-file path\n"
13945 "\n"
13946 msgstr ""
13947
13948 #. type: textblock
13949 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6423
13950 msgid "This calls returns the contents of the file C<path> as a buffer."
13951 msgstr ""
13952
13953 #. type: textblock
13954 #: ../fish/guestfish-actions.pod:4122
13955 msgid ""
13956 "Unlike L</cat>, this function can correctly handle files that contain "
13957 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13958 "is limited in the total size of file that can be handled."
13959 msgstr ""
13960
13961 #. type: =head2
13962 #: ../fish/guestfish-actions.pod:4130
13963 msgid "read-lines"
13964 msgstr ""
13965
13966 #. type: verbatim
13967 #: ../fish/guestfish-actions.pod:4132
13968 #, no-wrap
13969 msgid ""
13970 " read-lines path\n"
13971 "\n"
13972 msgstr ""
13973
13974 #. type: textblock
13975 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6448
13976 msgid ""
13977 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13978 "C<CRLF> character sequences are I<not> returned."
13979 msgstr ""
13980
13981 #. type: textblock
13982 #: ../fish/guestfish-actions.pod:4139
13983 msgid ""
13984 "Note that this function cannot correctly handle binary files (specifically, "
13985 "files containing C<\\0> character which is treated as end of line).  For "
13986 "those you need to use the L</read-file> function which has a more complex "
13987 "interface."
13988 msgstr ""
13989
13990 #. type: =head2
13991 #: ../fish/guestfish-actions.pod:4144
13992 msgid "readdir"
13993 msgstr ""
13994
13995 #. type: verbatim
13996 #: ../fish/guestfish-actions.pod:4146
13997 #, no-wrap
13998 msgid ""
13999 " readdir dir\n"
14000 "\n"
14001 msgstr ""
14002
14003 #. type: textblock
14004 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6468
14005 msgid "This returns the list of directory entries in directory C<dir>."
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../fish/guestfish-actions.pod:4150 ../src/guestfs-actions.pod:6470
14010 msgid ""
14011 "All entries in the directory are returned, including C<.> and C<..>.  The "
14012 "entries are I<not> sorted, but returned in the same order as the underlying "
14013 "filesystem."
14014 msgstr ""
14015
14016 #. type: textblock
14017 #: ../fish/guestfish-actions.pod:4154 ../src/guestfs-actions.pod:6474
14018 msgid ""
14019 "Also this call returns basic file type information about each file.  The "
14020 "C<ftyp> field will contain one of the following characters:"
14021 msgstr ""
14022
14023 #. type: =item
14024 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6479
14025 msgid "'b'"
14026 msgstr ""
14027
14028 #. type: textblock
14029 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6481
14030 msgid "Block special"
14031 msgstr ""
14032
14033 #. type: =item
14034 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6483
14035 msgid "'c'"
14036 msgstr ""
14037
14038 #. type: textblock
14039 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6485
14040 msgid "Char special"
14041 msgstr ""
14042
14043 #. type: =item
14044 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6487
14045 msgid "'d'"
14046 msgstr ""
14047
14048 #. type: textblock
14049 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6489
14050 msgid "Directory"
14051 msgstr ""
14052
14053 #. type: =item
14054 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6491
14055 msgid "'f'"
14056 msgstr ""
14057
14058 #. type: textblock
14059 #: ../fish/guestfish-actions.pod:4173 ../src/guestfs-actions.pod:6493
14060 msgid "FIFO (named pipe)"
14061 msgstr ""
14062
14063 #. type: =item
14064 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6495
14065 msgid "'l'"
14066 msgstr ""
14067
14068 #. type: textblock
14069 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6497
14070 msgid "Symbolic link"
14071 msgstr ""
14072
14073 #. type: =item
14074 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6499
14075 msgid "'r'"
14076 msgstr ""
14077
14078 #. type: textblock
14079 #: ../fish/guestfish-actions.pod:4181 ../src/guestfs-actions.pod:6501
14080 msgid "Regular file"
14081 msgstr ""
14082
14083 #. type: =item
14084 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6503
14085 msgid "'s'"
14086 msgstr ""
14087
14088 #. type: textblock
14089 #: ../fish/guestfish-actions.pod:4185 ../src/guestfs-actions.pod:6505
14090 msgid "Socket"
14091 msgstr ""
14092
14093 #. type: =item
14094 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6507
14095 msgid "'u'"
14096 msgstr ""
14097
14098 #. type: textblock
14099 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6509
14100 msgid "Unknown file type"
14101 msgstr ""
14102
14103 #. type: =item
14104 #: ../fish/guestfish-actions.pod:4191 ../src/guestfs-actions.pod:6511
14105 msgid "'?'"
14106 msgstr ""
14107
14108 #. type: textblock
14109 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6513
14110 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14111 msgstr ""
14112
14113 #. type: textblock
14114 #: ../fish/guestfish-actions.pod:4198
14115 msgid ""
14116 "This function is primarily intended for use by programs.  To get a simple "
14117 "list of names, use L</ls>.  To get a printable directory for human "
14118 "consumption, use L</ll>."
14119 msgstr ""
14120
14121 #. type: =head2
14122 #: ../fish/guestfish-actions.pod:4202
14123 msgid "readlink"
14124 msgstr ""
14125
14126 #. type: verbatim
14127 #: ../fish/guestfish-actions.pod:4204
14128 #, no-wrap
14129 msgid ""
14130 " readlink path\n"
14131 "\n"
14132 msgstr ""
14133
14134 #. type: textblock
14135 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6534
14136 msgid "This command reads the target of a symbolic link."
14137 msgstr ""
14138
14139 #. type: =head2
14140 #: ../fish/guestfish-actions.pod:4208
14141 msgid "readlinklist"
14142 msgstr ""
14143
14144 #. type: verbatim
14145 #: ../fish/guestfish-actions.pod:4210
14146 #, no-wrap
14147 msgid ""
14148 " readlinklist path 'names ...'\n"
14149 "\n"
14150 msgstr ""
14151
14152 #. type: textblock
14153 #: ../fish/guestfish-actions.pod:4212 ../src/guestfs-actions.pod:6548
14154 msgid ""
14155 "This call allows you to do a C<readlink> operation on multiple files, where "
14156 "all files are in the directory C<path>.  C<names> is the list of files from "
14157 "this directory."
14158 msgstr ""
14159
14160 #. type: textblock
14161 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6552
14162 msgid ""
14163 "On return you get a list of strings, with a one-to-one correspondence to the "
14164 "C<names> list.  Each string is the value of the symbolic link."
14165 msgstr ""
14166
14167 #. type: textblock
14168 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6556
14169 msgid ""
14170 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14171 "result string is the empty string C<\"\">.  However the whole operation is "
14172 "completed even if there were C<readlink(2)> errors, and so you can call this "
14173 "function with names where you don't know if they are symbolic links already "
14174 "(albeit slightly less efficient)."
14175 msgstr ""
14176
14177 #. type: textblock
14178 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6563
14179 msgid ""
14180 "This call is intended for programs that want to efficiently list a directory "
14181 "contents without making many round-trips.  Very long directory listings "
14182 "might cause the protocol message size to be exceeded, causing this call to "
14183 "fail.  The caller must split up such requests into smaller groups of names."
14184 msgstr ""
14185
14186 #. type: =head2
14187 #: ../fish/guestfish-actions.pod:4234
14188 msgid "realpath"
14189 msgstr ""
14190
14191 #. type: verbatim
14192 #: ../fish/guestfish-actions.pod:4236
14193 #, no-wrap
14194 msgid ""
14195 " realpath path\n"
14196 "\n"
14197 msgstr ""
14198
14199 #. type: textblock
14200 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6582
14201 msgid ""
14202 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14203 "has no C<.>, C<..> or symbolic link path elements."
14204 msgstr ""
14205
14206 #. type: =head2
14207 #: ../fish/guestfish-actions.pod:4241
14208 msgid "removexattr"
14209 msgstr ""
14210
14211 #. type: verbatim
14212 #: ../fish/guestfish-actions.pod:4243
14213 #, no-wrap
14214 msgid ""
14215 " removexattr xattr path\n"
14216 "\n"
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:4245 ../src/guestfs-actions.pod:6597
14221 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:4248
14226 msgid "See also: L</lremovexattr>, L<attr(5)>."
14227 msgstr ""
14228
14229 #. type: =head2
14230 #: ../fish/guestfish-actions.pod:4250
14231 msgid "resize2fs"
14232 msgstr ""
14233
14234 #. type: verbatim
14235 #: ../fish/guestfish-actions.pod:4252
14236 #, no-wrap
14237 msgid ""
14238 " resize2fs device\n"
14239 "\n"
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6612
14244 msgid ""
14245 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14246 "underlying device."
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../fish/guestfish-actions.pod:4257
14251 msgid ""
14252 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14253 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14254 "gives an error about this and sometimes not.  In any case, it is always safe "
14255 "to call L</e2fsck-f> before calling this function."
14256 msgstr ""
14257
14258 #. type: =head2
14259 #: ../fish/guestfish-actions.pod:4263
14260 msgid "resize2fs-M"
14261 msgstr ""
14262
14263 #. type: verbatim
14264 #: ../fish/guestfish-actions.pod:4265
14265 #, no-wrap
14266 msgid ""
14267 " resize2fs-M device\n"
14268 "\n"
14269 msgstr ""
14270
14271 #. type: textblock
14272 #: ../fish/guestfish-actions.pod:4267
14273 msgid ""
14274 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14275 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14276 "command."
14277 msgstr ""
14278
14279 #. type: textblock
14280 #: ../fish/guestfish-actions.pod:4271
14281 msgid ""
14282 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14283 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14284 "multiplied together, give the resulting size of the minimal filesystem in "
14285 "bytes."
14286 msgstr ""
14287
14288 #. type: =head2
14289 #: ../fish/guestfish-actions.pod:4276
14290 msgid "resize2fs-size"
14291 msgstr ""
14292
14293 #. type: verbatim
14294 #: ../fish/guestfish-actions.pod:4278
14295 #, no-wrap
14296 msgid ""
14297 " resize2fs-size device size\n"
14298 "\n"
14299 msgstr ""
14300
14301 #. type: textblock
14302 #: ../fish/guestfish-actions.pod:4280
14303 msgid ""
14304 "This command is the same as L</resize2fs> except that it allows you to "
14305 "specify the new size (in bytes) explicitly."
14306 msgstr ""
14307
14308 #. type: =head2
14309 #: ../fish/guestfish-actions.pod:4283
14310 msgid "rm"
14311 msgstr ""
14312
14313 #. type: verbatim
14314 #: ../fish/guestfish-actions.pod:4285
14315 #, no-wrap
14316 msgid ""
14317 " rm path\n"
14318 "\n"
14319 msgstr ""
14320
14321 #. type: textblock
14322 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6664
14323 msgid "Remove the single file C<path>."
14324 msgstr ""
14325
14326 #. type: =head2
14327 #: ../fish/guestfish-actions.pod:4289
14328 msgid "rm-rf"
14329 msgstr ""
14330
14331 #. type: verbatim
14332 #: ../fish/guestfish-actions.pod:4291
14333 #, no-wrap
14334 msgid ""
14335 " rm-rf path\n"
14336 "\n"
14337 msgstr ""
14338
14339 #. type: textblock
14340 #: ../fish/guestfish-actions.pod:4293 ../src/guestfs-actions.pod:6676
14341 msgid ""
14342 "Remove the file or directory C<path>, recursively removing the contents if "
14343 "its a directory.  This is like the C<rm -rf> shell command."
14344 msgstr ""
14345
14346 #. type: =head2
14347 #: ../fish/guestfish-actions.pod:4297
14348 msgid "rmdir"
14349 msgstr ""
14350
14351 #. type: verbatim
14352 #: ../fish/guestfish-actions.pod:4299
14353 #, no-wrap
14354 msgid ""
14355 " rmdir path\n"
14356 "\n"
14357 msgstr ""
14358
14359 #. type: textblock
14360 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6690
14361 msgid "Remove the single directory C<path>."
14362 msgstr ""
14363
14364 #. type: =head2
14365 #: ../fish/guestfish-actions.pod:4303
14366 msgid "rmmountpoint"
14367 msgstr ""
14368
14369 #. type: verbatim
14370 #: ../fish/guestfish-actions.pod:4305
14371 #, no-wrap
14372 msgid ""
14373 " rmmountpoint exemptpath\n"
14374 "\n"
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../fish/guestfish-actions.pod:4307
14379 msgid ""
14380 "This calls removes a mountpoint that was previously created with "
14381 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
14382 msgstr ""
14383
14384 #. type: =head2
14385 #: ../fish/guestfish-actions.pod:4311
14386 msgid "scrub-device"
14387 msgstr ""
14388
14389 #. type: verbatim
14390 #: ../fish/guestfish-actions.pod:4313
14391 #, no-wrap
14392 msgid ""
14393 " scrub-device device\n"
14394 "\n"
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6716
14399 msgid ""
14400 "This command writes patterns over C<device> to make data retrieval more "
14401 "difficult."
14402 msgstr ""
14403
14404 #. type: textblock
14405 #: ../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
14406 msgid ""
14407 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14408 "more details."
14409 msgstr ""
14410
14411 #. type: =head2
14412 #: ../fish/guestfish-actions.pod:4321
14413 msgid "scrub-file"
14414 msgstr ""
14415
14416 #. type: verbatim
14417 #: ../fish/guestfish-actions.pod:4323
14418 #, no-wrap
14419 msgid ""
14420 " scrub-file file\n"
14421 "\n"
14422 msgstr ""
14423
14424 #. type: textblock
14425 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6732
14426 msgid ""
14427 "This command writes patterns over a file to make data retrieval more "
14428 "difficult."
14429 msgstr ""
14430
14431 #. type: textblock
14432 #: ../fish/guestfish-actions.pod:4328 ../src/guestfs-actions.pod:6735
14433 msgid "The file is I<removed> after scrubbing."
14434 msgstr ""
14435
14436 #. type: =head2
14437 #: ../fish/guestfish-actions.pod:4333
14438 msgid "scrub-freespace"
14439 msgstr ""
14440
14441 #. type: verbatim
14442 #: ../fish/guestfish-actions.pod:4335
14443 #, no-wrap
14444 msgid ""
14445 " scrub-freespace dir\n"
14446 "\n"
14447 msgstr ""
14448
14449 #. type: textblock
14450 #: ../fish/guestfish-actions.pod:4337
14451 msgid ""
14452 "This command creates the directory C<dir> and then fills it with files until "
14453 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14454 "deletes them.  The intention is to scrub any free space on the partition "
14455 "containing C<dir>."
14456 msgstr ""
14457
14458 #. type: =head2
14459 #: ../fish/guestfish-actions.pod:4346
14460 msgid "set-append"
14461 msgstr ""
14462
14463 #. type: =head2
14464 #: ../fish/guestfish-actions.pod:4348
14465 msgid "append"
14466 msgstr ""
14467
14468 #. type: verbatim
14469 #: ../fish/guestfish-actions.pod:4350
14470 #, no-wrap
14471 msgid ""
14472 " set-append append\n"
14473 "\n"
14474 msgstr ""
14475
14476 #. type: textblock
14477 #: ../fish/guestfish-actions.pod:4352 ../src/guestfs-actions.pod:6769
14478 msgid ""
14479 "This function is used to add additional options to the guest kernel command "
14480 "line."
14481 msgstr ""
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6772
14485 msgid ""
14486 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14487 "environment variable."
14488 msgstr ""
14489
14490 #. type: textblock
14491 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6775
14492 msgid ""
14493 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14494 "(libguestfs always adds a few of its own)."
14495 msgstr ""
14496
14497 #. type: =head2
14498 #: ../fish/guestfish-actions.pod:4361
14499 msgid "set-attach-method"
14500 msgstr ""
14501
14502 #. type: =head2
14503 #: ../fish/guestfish-actions.pod:4363
14504 msgid "attach-method"
14505 msgstr ""
14506
14507 #. type: verbatim
14508 #: ../fish/guestfish-actions.pod:4365
14509 #, no-wrap
14510 msgid ""
14511 " set-attach-method attachmethod\n"
14512 "\n"
14513 msgstr ""
14514
14515 #. type: textblock
14516 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
14517 msgid ""
14518 "Set the method that libguestfs uses to connect to the back end guestfsd "
14519 "daemon.  Possible methods are:"
14520 msgstr ""
14521
14522 #. type: =item
14523 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6793 ../src/guestfs.pod:2916
14524 msgid "C<appliance>"
14525 msgstr ""
14526
14527 #. type: textblock
14528 #: ../fish/guestfish-actions.pod:4374 ../src/guestfs-actions.pod:6795
14529 msgid ""
14530 "Launch an appliance and connect to it.  This is the ordinary method and the "
14531 "default."
14532 msgstr ""
14533
14534 #. type: =item
14535 #: ../fish/guestfish-actions.pod:4377 ../src/guestfs-actions.pod:6798
14536 msgid "C<unix:I<path>>"
14537 msgstr ""
14538
14539 #. type: textblock
14540 #: ../fish/guestfish-actions.pod:4379 ../src/guestfs-actions.pod:6800
14541 msgid "Connect to the Unix domain socket I<path>."
14542 msgstr ""
14543
14544 #. type: textblock
14545 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6802
14546 msgid ""
14547 "This method lets you connect to an existing daemon or (using virtio-serial) "
14548 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14549 "RUNNING DAEMONS>."
14550 msgstr ""
14551
14552 #. type: =head2
14553 #: ../fish/guestfish-actions.pod:4387
14554 msgid "set-autosync"
14555 msgstr ""
14556
14557 #. type: =head2
14558 #: ../fish/guestfish-actions.pod:4389
14559 msgid "autosync"
14560 msgstr ""
14561
14562 #. type: verbatim
14563 #: ../fish/guestfish-actions.pod:4391
14564 #, no-wrap
14565 msgid ""
14566 " set-autosync true|false\n"
14567 "\n"
14568 msgstr ""
14569
14570 #. type: textblock
14571 #: ../fish/guestfish-actions.pod:4393 ../src/guestfs-actions.pod:6818
14572 msgid ""
14573 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14574 "effort attempt to make filesystems consistent and synchronized when the "
14575 "handle is closed (also if the program exits without closing handles)."
14576 msgstr ""
14577
14578 #. type: textblock
14579 #: ../fish/guestfish-actions.pod:4398 ../src/guestfs-actions.pod:6823
14580 msgid ""
14581 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14582 "disabled by default)."
14583 msgstr ""
14584
14585 #. type: =head2
14586 #: ../fish/guestfish-actions.pod:4401
14587 msgid "set-direct"
14588 msgstr ""
14589
14590 #. type: =head2
14591 #: ../fish/guestfish-actions.pod:4403
14592 msgid "direct"
14593 msgstr ""
14594
14595 #. type: verbatim
14596 #: ../fish/guestfish-actions.pod:4405
14597 #, no-wrap
14598 msgid ""
14599 " set-direct true|false\n"
14600 "\n"
14601 msgstr ""
14602
14603 #. type: textblock
14604 #: ../fish/guestfish-actions.pod:4407 ../src/guestfs-actions.pod:6836
14605 msgid ""
14606 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14607 "passed directly through to the appliance once it is launched."
14608 msgstr ""
14609
14610 #. type: textblock
14611 #: ../fish/guestfish-actions.pod:4411
14612 msgid ""
14613 "One consequence of this is that log messages aren't caught by the library "
14614 "and handled by L</set-log-message-callback>, but go straight to stdout."
14615 msgstr ""
14616
14617 #. type: textblock
14618 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6844
14619 msgid "You probably don't want to use this unless you know what you are doing."
14620 msgstr ""
14621
14622 #. type: textblock
14623 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6847
14624 msgid "The default is disabled."
14625 msgstr ""
14626
14627 #. type: =head2
14628 #: ../fish/guestfish-actions.pod:4420
14629 msgid "set-e2label"
14630 msgstr ""
14631
14632 #. type: verbatim
14633 #: ../fish/guestfish-actions.pod:4422
14634 #, no-wrap
14635 msgid ""
14636 " set-e2label device label\n"
14637 "\n"
14638 msgstr ""
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:4424 ../src/guestfs-actions.pod:6860
14642 msgid ""
14643 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14644 "C<label>.  Filesystem labels are limited to 16 characters."
14645 msgstr ""
14646
14647 #. type: textblock
14648 #: ../fish/guestfish-actions.pod:4428
14649 msgid ""
14650 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14651 "label on a filesystem."
14652 msgstr ""
14653
14654 #. type: =head2
14655 #: ../fish/guestfish-actions.pod:4431
14656 msgid "set-e2uuid"
14657 msgstr ""
14658
14659 #. type: verbatim
14660 #: ../fish/guestfish-actions.pod:4433
14661 #, no-wrap
14662 msgid ""
14663 " set-e2uuid device uuid\n"
14664 "\n"
14665 msgstr ""
14666
14667 #. type: textblock
14668 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6878
14669 msgid ""
14670 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14671 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14672 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14673 msgstr ""
14674
14675 #. type: textblock
14676 #: ../fish/guestfish-actions.pod:4440
14677 msgid ""
14678 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14679 "UUID of a filesystem."
14680 msgstr ""
14681
14682 #. type: =head2
14683 #: ../fish/guestfish-actions.pod:4443
14684 msgid "set-memsize"
14685 msgstr ""
14686
14687 #. type: =head2
14688 #: ../fish/guestfish-actions.pod:4445
14689 msgid "memsize"
14690 msgstr ""
14691
14692 #. type: verbatim
14693 #: ../fish/guestfish-actions.pod:4447
14694 #, no-wrap
14695 msgid ""
14696 " set-memsize memsize\n"
14697 "\n"
14698 msgstr ""
14699
14700 #. type: textblock
14701 #: ../fish/guestfish-actions.pod:4449
14702 msgid ""
14703 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14704 "This only has any effect if called before L</launch>."
14705 msgstr ""
14706
14707 #. type: textblock
14708 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6900
14709 msgid ""
14710 "You can also change this by setting the environment variable "
14711 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14712 msgstr ""
14713
14714 #. type: =head2
14715 #: ../fish/guestfish-actions.pod:4460
14716 msgid "set-network"
14717 msgstr ""
14718
14719 #. type: =head2
14720 #: ../fish/guestfish-actions.pod:4462
14721 msgid "network"
14722 msgstr ""
14723
14724 #. type: verbatim
14725 #: ../fish/guestfish-actions.pod:4464
14726 #, no-wrap
14727 msgid ""
14728 " set-network true|false\n"
14729 "\n"
14730 msgstr ""
14731
14732 #. type: textblock
14733 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6917
14734 msgid ""
14735 "If C<network> is true, then the network is enabled in the libguestfs "
14736 "appliance.  The default is false."
14737 msgstr ""
14738
14739 #. type: textblock
14740 #: ../fish/guestfish-actions.pod:4469 ../src/guestfs-actions.pod:6920
14741 msgid ""
14742 "This affects whether commands are able to access the network (see "
14743 "L<guestfs(3)/RUNNING COMMANDS>)."
14744 msgstr ""
14745
14746 #. type: textblock
14747 #: ../fish/guestfish-actions.pod:4472
14748 msgid "You must call this before calling L</launch>, otherwise it has no effect."
14749 msgstr ""
14750
14751 #. type: =head2
14752 #: ../fish/guestfish-actions.pod:4475
14753 msgid "set-path"
14754 msgstr ""
14755
14756 #. type: verbatim
14757 #: ../fish/guestfish-actions.pod:4479
14758 #, no-wrap
14759 msgid ""
14760 " set-path searchpath\n"
14761 "\n"
14762 msgstr ""
14763
14764 #. type: textblock
14765 #: ../fish/guestfish-actions.pod:4481 ../src/guestfs-actions.pod:6936
14766 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6938
14771 msgid ""
14772 "The default is C<$libdir/guestfs> unless overridden by setting "
14773 "C<LIBGUESTFS_PATH> environment variable."
14774 msgstr ""
14775
14776 #. type: textblock
14777 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6941
14778 msgid "Setting C<path> to C<NULL> restores the default path."
14779 msgstr ""
14780
14781 #. type: =head2
14782 #: ../fish/guestfish-actions.pod:4488
14783 msgid "set-pgroup"
14784 msgstr ""
14785
14786 #. type: =head2
14787 #: ../fish/guestfish-actions.pod:4490
14788 msgid "pgroup"
14789 msgstr ""
14790
14791 #. type: verbatim
14792 #: ../fish/guestfish-actions.pod:4492
14793 #, no-wrap
14794 msgid ""
14795 " set-pgroup true|false\n"
14796 "\n"
14797 msgstr ""
14798
14799 #. type: textblock
14800 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6953
14801 msgid ""
14802 "If C<pgroup> is true, child processes are placed into their own process "
14803 "group."
14804 msgstr ""
14805
14806 #. type: textblock
14807 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6956
14808 msgid ""
14809 "The practical upshot of this is that signals like C<SIGINT> (from users "
14810 "pressing C<^C>) won't be received by the child process."
14811 msgstr ""
14812
14813 #. type: textblock
14814 #: ../fish/guestfish-actions.pod:4500 ../src/guestfs-actions.pod:6959
14815 msgid ""
14816 "The default for this flag is false, because usually you want C<^C> to kill "
14817 "the subprocess."
14818 msgstr ""
14819
14820 #. type: =head2
14821 #: ../fish/guestfish-actions.pod:4503
14822 msgid "set-qemu"
14823 msgstr ""
14824
14825 #. type: =head2
14826 #: ../fish/guestfish-actions.pod:4505
14827 msgid "qemu"
14828 msgstr ""
14829
14830 #. type: verbatim
14831 #: ../fish/guestfish-actions.pod:4507
14832 #, no-wrap
14833 msgid ""
14834 " set-qemu qemu\n"
14835 "\n"
14836 msgstr ""
14837
14838 #. type: textblock
14839 #: ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6972
14840 msgid "Set the qemu binary that we will use."
14841 msgstr ""
14842
14843 #. type: textblock
14844 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6974
14845 msgid "The default is chosen when the library was compiled by the configure script."
14846 msgstr ""
14847
14848 #. type: textblock
14849 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6977
14850 msgid ""
14851 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14852 "variable."
14853 msgstr ""
14854
14855 #. type: textblock
14856 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6980
14857 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14858 msgstr ""
14859
14860 #. type: textblock
14861 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6982
14862 msgid ""
14863 "Note that you should call this function as early as possible after creating "
14864 "the handle.  This is because some pre-launch operations depend on testing "
14865 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14866 "don't retest features, and so you might see inconsistent results.  Using the "
14867 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14868 "the qemu binary at the same time as the handle is created."
14869 msgstr ""
14870
14871 #. type: =head2
14872 #: ../fish/guestfish-actions.pod:4527
14873 msgid "set-recovery-proc"
14874 msgstr ""
14875
14876 #. type: =head2
14877 #: ../fish/guestfish-actions.pod:4529
14878 msgid "recovery-proc"
14879 msgstr ""
14880
14881 #. type: verbatim
14882 #: ../fish/guestfish-actions.pod:4531
14883 #, no-wrap
14884 msgid ""
14885 " set-recovery-proc true|false\n"
14886 "\n"
14887 msgstr ""
14888
14889 #. type: textblock
14890 #: ../fish/guestfish-actions.pod:4533
14891 msgid ""
14892 "If this is called with the parameter C<false> then L</launch> does not "
14893 "create a recovery process.  The purpose of the recovery process is to stop "
14894 "runaway qemu processes in the case where the main program aborts abruptly."
14895 msgstr ""
14896
14897 #. type: textblock
14898 #: ../fish/guestfish-actions.pod:4538
14899 msgid ""
14900 "This only has any effect if called before L</launch>, and the default is "
14901 "true."
14902 msgstr ""
14903
14904 #. type: textblock
14905 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:7008
14906 msgid ""
14907 "About the only time when you would want to disable this is if the main "
14908 "process will fork itself into the background (\"daemonize\" itself).  In "
14909 "this case the recovery process thinks that the main program has disappeared "
14910 "and so kills qemu, which is not very helpful."
14911 msgstr ""
14912
14913 #. type: =head2
14914 #: ../fish/guestfish-actions.pod:4547
14915 msgid "set-selinux"
14916 msgstr ""
14917
14918 #. type: =head2
14919 #: ../fish/guestfish-actions.pod:4549
14920 msgid "selinux"
14921 msgstr ""
14922
14923 #. type: verbatim
14924 #: ../fish/guestfish-actions.pod:4551
14925 #, no-wrap
14926 msgid ""
14927 " set-selinux true|false\n"
14928 "\n"
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7024
14933 msgid ""
14934 "This sets the selinux flag that is passed to the appliance at boot time.  "
14935 "The default is C<selinux=0> (disabled)."
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7027
14940 msgid ""
14941 "Note that if SELinux is enabled, it is always in Permissive mode "
14942 "(C<enforcing=0>)."
14943 msgstr ""
14944
14945 #. type: =head2
14946 #: ../fish/guestfish-actions.pod:4562
14947 msgid "set-smp"
14948 msgstr ""
14949
14950 #. type: =head2
14951 #: ../fish/guestfish-actions.pod:4564
14952 msgid "smp"
14953 msgstr ""
14954
14955 #. type: verbatim
14956 #: ../fish/guestfish-actions.pod:4566
14957 #, no-wrap
14958 msgid ""
14959 " set-smp smp\n"
14960 "\n"
14961 msgstr ""
14962
14963 #. type: textblock
14964 #: ../fish/guestfish-actions.pod:4568 ../src/guestfs-actions.pod:7043
14965 msgid ""
14966 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14967 "C<1>.  Increasing this may improve performance, though often it has no "
14968 "effect."
14969 msgstr ""
14970
14971 #. type: textblock
14972 #: ../fish/guestfish-actions.pod:4572
14973 msgid "This function must be called before L</launch>."
14974 msgstr ""
14975
14976 #. type: =head2
14977 #: ../fish/guestfish-actions.pod:4574
14978 msgid "set-trace"
14979 msgstr ""
14980
14981 #. type: =head2
14982 #: ../fish/guestfish-actions.pod:4576
14983 msgid "trace"
14984 msgstr ""
14985
14986 #. type: verbatim
14987 #: ../fish/guestfish-actions.pod:4578
14988 #, no-wrap
14989 msgid ""
14990 " set-trace true|false\n"
14991 "\n"
14992 msgstr ""
14993
14994 #. type: textblock
14995 #: ../fish/guestfish-actions.pod:4580 ../src/guestfs-actions.pod:7059
14996 msgid ""
14997 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14998 "return values are traced."
14999 msgstr ""
15000
15001 #. type: textblock
15002 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7062
15003 msgid ""
15004 "If you want to trace C API calls into libguestfs (and other libraries) then "
15005 "possibly a better way is to use the external ltrace(1) command."
15006 msgstr ""
15007
15008 #. type: textblock
15009 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:7066
15010 msgid ""
15011 "Command traces are disabled unless the environment variable "
15012 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15013 msgstr ""
15014
15015 #. type: textblock
15016 #: ../fish/guestfish-actions.pod:4590
15017 msgid ""
15018 "Trace messages are normally sent to C<stderr>, unless you register a "
15019 "callback to send them somewhere else (see L</set-event-callback>)."
15020 msgstr ""
15021
15022 #. type: =head2
15023 #: ../fish/guestfish-actions.pod:4594
15024 msgid "set-verbose"
15025 msgstr ""
15026
15027 #. type: =head2
15028 #: ../fish/guestfish-actions.pod:4596
15029 msgid "verbose"
15030 msgstr ""
15031
15032 #. type: verbatim
15033 #: ../fish/guestfish-actions.pod:4598
15034 #, no-wrap
15035 msgid ""
15036 " set-verbose true|false\n"
15037 "\n"
15038 msgstr ""
15039
15040 #. type: textblock
15041 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:7083
15042 msgid "If C<verbose> is true, this turns on verbose messages."
15043 msgstr ""
15044
15045 #. type: textblock
15046 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:7085
15047 msgid ""
15048 "Verbose messages are disabled unless the environment variable "
15049 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15050 msgstr ""
15051
15052 #. type: textblock
15053 #: ../fish/guestfish-actions.pod:4605
15054 msgid ""
15055 "Verbose messages are normally sent to C<stderr>, unless you register a "
15056 "callback to send them somewhere else (see L</set-event-callback>)."
15057 msgstr ""
15058
15059 #. type: =head2
15060 #: ../fish/guestfish-actions.pod:4609
15061 msgid "setcon"
15062 msgstr ""
15063
15064 #. type: verbatim
15065 #: ../fish/guestfish-actions.pod:4611
15066 #, no-wrap
15067 msgid ""
15068 " setcon context\n"
15069 "\n"
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
15074 msgid ""
15075 "This sets the SELinux security context of the daemon to the string "
15076 "C<context>."
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-actions.pod:4616 ../src/guestfs-actions.pod:7105
15081 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15082 msgstr ""
15083
15084 #. type: =head2
15085 #: ../fish/guestfish-actions.pod:4618
15086 msgid "setxattr"
15087 msgstr ""
15088
15089 #. type: verbatim
15090 #: ../fish/guestfish-actions.pod:4620
15091 #, no-wrap
15092 msgid ""
15093 " setxattr xattr val vallen path\n"
15094 "\n"
15095 msgstr ""
15096
15097 #. type: textblock
15098 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7120
15099 msgid ""
15100 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15101 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15102 msgstr ""
15103
15104 #. type: textblock
15105 #: ../fish/guestfish-actions.pod:4626
15106 msgid "See also: L</lsetxattr>, L<attr(5)>."
15107 msgstr ""
15108
15109 #. type: =head2
15110 #: ../fish/guestfish-actions.pod:4628
15111 msgid "sfdisk"
15112 msgstr ""
15113
15114 #. type: verbatim
15115 #: ../fish/guestfish-actions.pod:4630
15116 #, no-wrap
15117 msgid ""
15118 " sfdisk device cyls heads sectors 'lines ...'\n"
15119 "\n"
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:7147
15124 msgid ""
15125 "This is a direct interface to the L<sfdisk(8)> program for creating "
15126 "partitions on block devices."
15127 msgstr ""
15128
15129 #. type: textblock
15130 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:7150
15131 msgid "C<device> should be a block device, for example C</dev/sda>."
15132 msgstr ""
15133
15134 #. type: textblock
15135 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:7152
15136 msgid ""
15137 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15138 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15139 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15140 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15141 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15142 "the kernel) cannot work out the right geometry and you will need to tell it."
15143 msgstr ""
15144
15145 #. type: textblock
15146 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:7160
15147 msgid ""
15148 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15149 "refer to the L<sfdisk(8)> manpage."
15150 msgstr ""
15151
15152 #. type: textblock
15153 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7163
15154 msgid ""
15155 "To create a single partition occupying the whole disk, you would pass "
15156 "C<lines> as a single element list, when the single element being the string "
15157 "C<,> (comma)."
15158 msgstr ""
15159
15160 #. type: textblock
15161 #: ../fish/guestfish-actions.pod:4652
15162 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15163 msgstr ""
15164
15165 #. type: textblock
15166 #: ../fish/guestfish-actions.pod:4655 ../fish/guestfish-actions.pod:4675 ../fish/guestfish-actions.pod:4694
15167 msgid ""
15168 "I<This function is deprecated.> In new code, use the L</part_add> call "
15169 "instead."
15170 msgstr ""
15171
15172 #. type: =head2
15173 #: ../fish/guestfish-actions.pod:4662
15174 msgid "sfdiskM"
15175 msgstr ""
15176
15177 #. type: verbatim
15178 #: ../fish/guestfish-actions.pod:4664
15179 #, no-wrap
15180 msgid ""
15181 " sfdiskM device 'lines ...'\n"
15182 "\n"
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:4666
15187 msgid ""
15188 "This is a simplified interface to the L</sfdisk> command, where partition "
15189 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15190 "you don't need to specify the cyls, heads and sectors parameters which were "
15191 "rarely if ever used anyway."
15192 msgstr ""
15193
15194 #. type: textblock
15195 #: ../fish/guestfish-actions.pod:4672
15196 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15197 msgstr ""
15198
15199 #. type: =head2
15200 #: ../fish/guestfish-actions.pod:4682
15201 msgid "sfdisk-N"
15202 msgstr ""
15203
15204 #. type: verbatim
15205 #: ../fish/guestfish-actions.pod:4684
15206 #, no-wrap
15207 msgid ""
15208 " sfdisk-N device partnum cyls heads sectors line\n"
15209 "\n"
15210 msgstr ""
15211
15212 #. type: textblock
15213 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7219
15214 msgid ""
15215 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15216 "(note: C<n> counts from 1)."
15217 msgstr ""
15218
15219 #. type: textblock
15220 #: ../fish/guestfish-actions.pod:4689
15221 msgid ""
15222 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15223 "cyls/heads/sectors parameters."
15224 msgstr ""
15225
15226 #. type: textblock
15227 #: ../fish/guestfish-actions.pod:4692
15228 msgid "See also: L</part-add>"
15229 msgstr ""
15230
15231 #. type: =head2
15232 #: ../fish/guestfish-actions.pod:4701
15233 msgid "sfdisk-disk-geometry"
15234 msgstr ""
15235
15236 #. type: verbatim
15237 #: ../fish/guestfish-actions.pod:4703
15238 #, no-wrap
15239 msgid ""
15240 " sfdisk-disk-geometry device\n"
15241 "\n"
15242 msgstr ""
15243
15244 #. type: textblock
15245 #: ../fish/guestfish-actions.pod:4705
15246 msgid ""
15247 "This displays the disk geometry of C<device> read from the partition table.  "
15248 "Especially in the case where the underlying block device has been resized, "
15249 "this can be different from the kernel's idea of the geometry (see "
15250 "L</sfdisk-kernel-geometry>)."
15251 msgstr ""
15252
15253 #. type: textblock
15254 #: ../fish/guestfish-actions.pod:4710 ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7258
15255 msgid "The result is in human-readable format, and not designed to be parsed."
15256 msgstr ""
15257
15258 #. type: =head2
15259 #: ../fish/guestfish-actions.pod:4713
15260 msgid "sfdisk-kernel-geometry"
15261 msgstr ""
15262
15263 #. type: verbatim
15264 #: ../fish/guestfish-actions.pod:4715
15265 #, no-wrap
15266 msgid ""
15267 " sfdisk-kernel-geometry device\n"
15268 "\n"
15269 msgstr ""
15270
15271 #. type: textblock
15272 #: ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:7256
15273 msgid "This displays the kernel's idea of the geometry of C<device>."
15274 msgstr ""
15275
15276 #. type: =head2
15277 #: ../fish/guestfish-actions.pod:4722
15278 msgid "sfdisk-l"
15279 msgstr ""
15280
15281 #. type: verbatim
15282 #: ../fish/guestfish-actions.pod:4724
15283 #, no-wrap
15284 msgid ""
15285 " sfdisk-l device\n"
15286 "\n"
15287 msgstr ""
15288
15289 #. type: textblock
15290 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7279
15291 msgid ""
15292 "This displays the partition table on C<device>, in the human-readable output "
15293 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15294 msgstr ""
15295
15296 #. type: textblock
15297 #: ../fish/guestfish-actions.pod:4730
15298 msgid "See also: L</part-list>"
15299 msgstr ""
15300
15301 #. type: textblock
15302 #: ../fish/guestfish-actions.pod:4732
15303 msgid ""
15304 "I<This function is deprecated.> In new code, use the L</part_list> call "
15305 "instead."
15306 msgstr ""
15307
15308 #. type: =head2
15309 #: ../fish/guestfish-actions.pod:4739
15310 msgid "sh"
15311 msgstr ""
15312
15313 #. type: verbatim
15314 #: ../fish/guestfish-actions.pod:4741
15315 #, no-wrap
15316 msgid ""
15317 " sh command\n"
15318 "\n"
15319 msgstr ""
15320
15321 #. type: textblock
15322 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7296
15323 msgid ""
15324 "This call runs a command from the guest filesystem via the guest's "
15325 "C</bin/sh>."
15326 msgstr ""
15327
15328 #. type: textblock
15329 #: ../fish/guestfish-actions.pod:4746
15330 msgid "This is like L</command>, but passes the command to:"
15331 msgstr ""
15332
15333 #. type: verbatim
15334 #: ../fish/guestfish-actions.pod:4748 ../src/guestfs-actions.pod:7301
15335 #, no-wrap
15336 msgid ""
15337 " /bin/sh -c \"command\"\n"
15338 "\n"
15339 msgstr ""
15340
15341 #. type: textblock
15342 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7303
15343 msgid ""
15344 "Depending on the guest's shell, this usually results in wildcards being "
15345 "expanded, shell expressions being interpolated and so on."
15346 msgstr ""
15347
15348 #. type: textblock
15349 #: ../fish/guestfish-actions.pod:4754
15350 msgid "All the provisos about L</command> apply to this call."
15351 msgstr ""
15352
15353 #. type: =head2
15354 #: ../fish/guestfish-actions.pod:4756
15355 msgid "sh-lines"
15356 msgstr ""
15357
15358 #. type: verbatim
15359 #: ../fish/guestfish-actions.pod:4758
15360 #, no-wrap
15361 msgid ""
15362 " sh-lines command\n"
15363 "\n"
15364 msgstr ""
15365
15366 #. type: textblock
15367 #: ../fish/guestfish-actions.pod:4760
15368 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15369 msgstr ""
15370
15371 #. type: textblock
15372 #: ../fish/guestfish-actions.pod:4763
15373 msgid "See also: L</command-lines>"
15374 msgstr ""
15375
15376 #. type: =head2
15377 #: ../fish/guestfish-actions.pod:4765
15378 msgid "sleep"
15379 msgstr ""
15380
15381 #. type: verbatim
15382 #: ../fish/guestfish-actions.pod:4767
15383 #, no-wrap
15384 msgid ""
15385 " sleep secs\n"
15386 "\n"
15387 msgstr ""
15388
15389 #. type: textblock
15390 #: ../fish/guestfish-actions.pod:4769 ../src/guestfs-actions.pod:7337
15391 msgid "Sleep for C<secs> seconds."
15392 msgstr ""
15393
15394 #. type: =head2
15395 #: ../fish/guestfish-actions.pod:4771
15396 msgid "stat"
15397 msgstr ""
15398
15399 #. type: verbatim
15400 #: ../fish/guestfish-actions.pod:4773
15401 #, no-wrap
15402 msgid ""
15403 " stat path\n"
15404 "\n"
15405 msgstr ""
15406
15407 #. type: textblock
15408 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7351
15409 msgid "This is the same as the C<stat(2)> system call."
15410 msgstr ""
15411
15412 #. type: =head2
15413 #: ../fish/guestfish-actions.pod:4779
15414 msgid "statvfs"
15415 msgstr ""
15416
15417 #. type: verbatim
15418 #: ../fish/guestfish-actions.pod:4781
15419 #, no-wrap
15420 msgid ""
15421 " statvfs path\n"
15422 "\n"
15423 msgstr ""
15424
15425 #. type: textblock
15426 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7365
15427 msgid ""
15428 "Returns file system statistics for any mounted file system.  C<path> should "
15429 "be a file or directory in the mounted file system (typically it is the mount "
15430 "point itself, but it doesn't need to be)."
15431 msgstr ""
15432
15433 #. type: textblock
15434 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7369
15435 msgid "This is the same as the C<statvfs(2)> system call."
15436 msgstr ""
15437
15438 #. type: =head2
15439 #: ../fish/guestfish-actions.pod:4789
15440 msgid "strings"
15441 msgstr ""
15442
15443 #. type: verbatim
15444 #: ../fish/guestfish-actions.pod:4791
15445 #, no-wrap
15446 msgid ""
15447 " strings path\n"
15448 "\n"
15449 msgstr ""
15450
15451 #. type: textblock
15452 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7383
15453 msgid ""
15454 "This runs the L<strings(1)> command on a file and returns the list of "
15455 "printable strings found."
15456 msgstr ""
15457
15458 #. type: =head2
15459 #: ../fish/guestfish-actions.pod:4799
15460 msgid "strings-e"
15461 msgstr ""
15462
15463 #. type: verbatim
15464 #: ../fish/guestfish-actions.pod:4801
15465 #, no-wrap
15466 msgid ""
15467 " strings-e encoding path\n"
15468 "\n"
15469 msgstr ""
15470
15471 #. type: textblock
15472 #: ../fish/guestfish-actions.pod:4803
15473 msgid ""
15474 "This is like the L</strings> command, but allows you to specify the encoding "
15475 "of strings that are looked for in the source file C<path>."
15476 msgstr ""
15477
15478 #. type: textblock
15479 #: ../fish/guestfish-actions.pod:4807 ../src/guestfs-actions.pod:7406
15480 msgid "Allowed encodings are:"
15481 msgstr ""
15482
15483 #. type: =item
15484 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7410
15485 msgid "s"
15486 msgstr ""
15487
15488 #. type: textblock
15489 #: ../fish/guestfish-actions.pod:4813
15490 msgid ""
15491 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15492 "ISO-8859-X (this is what L</strings> uses)."
15493 msgstr ""
15494
15495 #. type: =item
15496 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7415
15497 msgid "S"
15498 msgstr ""
15499
15500 #. type: textblock
15501 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7417
15502 msgid "Single 8-bit-byte characters."
15503 msgstr ""
15504
15505 #. type: =item
15506 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7419
15507 msgid "b"
15508 msgstr ""
15509
15510 #. type: textblock
15511 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7421
15512 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15513 msgstr ""
15514
15515 #. type: =item
15516 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7424
15517 msgid "l (lower case letter L)"
15518 msgstr ""
15519
15520 #. type: textblock
15521 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7426
15522 msgid ""
15523 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15524 "examining binaries in Windows guests."
15525 msgstr ""
15526
15527 #. type: =item
15528 #: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7429
15529 msgid "B"
15530 msgstr ""
15531
15532 #. type: textblock
15533 #: ../fish/guestfish-actions.pod:4832 ../src/guestfs-actions.pod:7431
15534 msgid "32-bit big endian such as UCS-4BE."
15535 msgstr ""
15536
15537 #. type: =item
15538 #: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7433
15539 msgid "L"
15540 msgstr ""
15541
15542 #. type: textblock
15543 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7435
15544 msgid "32-bit little endian such as UCS-4LE."
15545 msgstr ""
15546
15547 #. type: textblock
15548 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7439
15549 msgid "The returned strings are transcoded to UTF-8."
15550 msgstr ""
15551
15552 #. type: =head2
15553 #: ../fish/guestfish-actions.pod:4845
15554 msgid "swapoff-device"
15555 msgstr ""
15556
15557 #. type: verbatim
15558 #: ../fish/guestfish-actions.pod:4847
15559 #, no-wrap
15560 msgid ""
15561 " swapoff-device device\n"
15562 "\n"
15563 msgstr ""
15564
15565 #. type: textblock
15566 #: ../fish/guestfish-actions.pod:4849
15567 msgid ""
15568 "This command disables the libguestfs appliance swap device or partition "
15569 "named C<device>.  See L</swapon-device>."
15570 msgstr ""
15571
15572 #. type: =head2
15573 #: ../fish/guestfish-actions.pod:4853
15574 msgid "swapoff-file"
15575 msgstr ""
15576
15577 #. type: verbatim
15578 #: ../fish/guestfish-actions.pod:4855
15579 #, no-wrap
15580 msgid ""
15581 " swapoff-file file\n"
15582 "\n"
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7470
15587 msgid "This command disables the libguestfs appliance swap on file."
15588 msgstr ""
15589
15590 #. type: =head2
15591 #: ../fish/guestfish-actions.pod:4859
15592 msgid "swapoff-label"
15593 msgstr ""
15594
15595 #. type: verbatim
15596 #: ../fish/guestfish-actions.pod:4861
15597 #, no-wrap
15598 msgid ""
15599 " swapoff-label label\n"
15600 "\n"
15601 msgstr ""
15602
15603 #. type: textblock
15604 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7482
15605 msgid ""
15606 "This command disables the libguestfs appliance swap on labeled swap "
15607 "partition."
15608 msgstr ""
15609
15610 #. type: =head2
15611 #: ../fish/guestfish-actions.pod:4866
15612 msgid "swapoff-uuid"
15613 msgstr ""
15614
15615 #. type: verbatim
15616 #: ../fish/guestfish-actions.pod:4868
15617 #, no-wrap
15618 msgid ""
15619 " swapoff-uuid uuid\n"
15620 "\n"
15621 msgstr ""
15622
15623 #. type: textblock
15624 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7495
15625 msgid ""
15626 "This command disables the libguestfs appliance swap partition with the given "
15627 "UUID."
15628 msgstr ""
15629
15630 #. type: =head2
15631 #: ../fish/guestfish-actions.pod:4873
15632 msgid "swapon-device"
15633 msgstr ""
15634
15635 #. type: verbatim
15636 #: ../fish/guestfish-actions.pod:4875
15637 #, no-wrap
15638 msgid ""
15639 " swapon-device device\n"
15640 "\n"
15641 msgstr ""
15642
15643 #. type: textblock
15644 #: ../fish/guestfish-actions.pod:4877
15645 msgid ""
15646 "This command enables the libguestfs appliance to use the swap device or "
15647 "partition named C<device>.  The increased memory is made available for all "
15648 "commands, for example those run using L</command> or L</sh>."
15649 msgstr ""
15650
15651 #. type: textblock
15652 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7513
15653 msgid ""
15654 "Note that you should not swap to existing guest swap partitions unless you "
15655 "know what you are doing.  They may contain hibernation information, or other "
15656 "information that the guest doesn't want you to trash.  You also risk leaking "
15657 "information about the host to the guest this way.  Instead, attach a new "
15658 "host device to the guest and swap on that."
15659 msgstr ""
15660
15661 #. type: =head2
15662 #: ../fish/guestfish-actions.pod:4889
15663 msgid "swapon-file"
15664 msgstr ""
15665
15666 #. type: verbatim
15667 #: ../fish/guestfish-actions.pod:4891
15668 #, no-wrap
15669 msgid ""
15670 " swapon-file file\n"
15671 "\n"
15672 msgstr ""
15673
15674 #. type: textblock
15675 #: ../fish/guestfish-actions.pod:4893
15676 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
15677 msgstr ""
15678
15679 #. type: =head2
15680 #: ../fish/guestfish-actions.pod:4896
15681 msgid "swapon-label"
15682 msgstr ""
15683
15684 #. type: verbatim
15685 #: ../fish/guestfish-actions.pod:4898
15686 #, no-wrap
15687 msgid ""
15688 " swapon-label label\n"
15689 "\n"
15690 msgstr ""
15691
15692 #. type: textblock
15693 #: ../fish/guestfish-actions.pod:4900
15694 msgid ""
15695 "This command enables swap to a labeled swap partition.  See "
15696 "L</swapon-device> for other notes."
15697 msgstr ""
15698
15699 #. type: =head2
15700 #: ../fish/guestfish-actions.pod:4903
15701 msgid "swapon-uuid"
15702 msgstr ""
15703
15704 #. type: verbatim
15705 #: ../fish/guestfish-actions.pod:4905
15706 #, no-wrap
15707 msgid ""
15708 " swapon-uuid uuid\n"
15709 "\n"
15710 msgstr ""
15711
15712 #. type: textblock
15713 #: ../fish/guestfish-actions.pod:4907
15714 msgid ""
15715 "This command enables swap to a swap partition with the given UUID.  See "
15716 "L</swapon-device> for other notes."
15717 msgstr ""
15718
15719 #. type: =head2
15720 #: ../fish/guestfish-actions.pod:4910
15721 msgid "sync"
15722 msgstr ""
15723
15724 #. type: verbatim
15725 #: ../fish/guestfish-actions.pod:4912
15726 #, no-wrap
15727 msgid ""
15728 " sync\n"
15729 "\n"
15730 msgstr ""
15731
15732 #. type: textblock
15733 #: ../fish/guestfish-actions.pod:4914 ../src/guestfs-actions.pod:7568
15734 msgid ""
15735 "This syncs the disk, so that any writes are flushed through to the "
15736 "underlying disk image."
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../fish/guestfish-actions.pod:4917 ../src/guestfs-actions.pod:7571
15741 msgid ""
15742 "You should always call this if you have modified a disk image, before "
15743 "closing the handle."
15744 msgstr ""
15745
15746 #. type: =head2
15747 #: ../fish/guestfish-actions.pod:4920
15748 msgid "tail"
15749 msgstr ""
15750
15751 #. type: verbatim
15752 #: ../fish/guestfish-actions.pod:4922
15753 #, no-wrap
15754 msgid ""
15755 " tail path\n"
15756 "\n"
15757 msgstr ""
15758
15759 #. type: textblock
15760 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7584
15761 msgid "This command returns up to the last 10 lines of a file as a list of strings."
15762 msgstr ""
15763
15764 #. type: =head2
15765 #: ../fish/guestfish-actions.pod:4930
15766 msgid "tail-n"
15767 msgstr ""
15768
15769 #. type: verbatim
15770 #: ../fish/guestfish-actions.pod:4932
15771 #, no-wrap
15772 msgid ""
15773 " tail-n nrlines path\n"
15774 "\n"
15775 msgstr ""
15776
15777 #. type: textblock
15778 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7603
15779 msgid ""
15780 "If the parameter C<nrlines> is a positive number, this returns the last "
15781 "C<nrlines> lines of the file C<path>."
15782 msgstr ""
15783
15784 #. type: textblock
15785 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7606
15786 msgid ""
15787 "If the parameter C<nrlines> is a negative number, this returns lines from "
15788 "the file C<path>, starting with the C<-nrlines>th line."
15789 msgstr ""
15790
15791 #. type: =head2
15792 #: ../fish/guestfish-actions.pod:4945
15793 msgid "tar-in"
15794 msgstr ""
15795
15796 #. type: verbatim
15797 #: ../fish/guestfish-actions.pod:4947
15798 #, no-wrap
15799 msgid ""
15800 " tar-in (tarfile|-) directory\n"
15801 "\n"
15802 msgstr ""
15803
15804 #. type: textblock
15805 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7627
15806 msgid ""
15807 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15808 "tar file) into C<directory>."
15809 msgstr ""
15810
15811 #. type: textblock
15812 #: ../fish/guestfish-actions.pod:4952
15813 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15814 msgstr ""
15815
15816 #. type: =head2
15817 #: ../fish/guestfish-actions.pod:4957
15818 msgid "tar-out"
15819 msgstr ""
15820
15821 #. type: verbatim
15822 #: ../fish/guestfish-actions.pod:4959
15823 #, no-wrap
15824 msgid ""
15825 " tar-out directory (tarfile|-)\n"
15826 "\n"
15827 msgstr ""
15828
15829 #. type: textblock
15830 #: ../fish/guestfish-actions.pod:4961 ../src/guestfs-actions.pod:7644
15831 msgid ""
15832 "This command packs the contents of C<directory> and downloads it to local "
15833 "file C<tarfile>."
15834 msgstr ""
15835
15836 #. type: textblock
15837 #: ../fish/guestfish-actions.pod:4964
15838 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15839 msgstr ""
15840
15841 #. type: =head2
15842 #: ../fish/guestfish-actions.pod:4969
15843 msgid "tgz-in"
15844 msgstr ""
15845
15846 #. type: verbatim
15847 #: ../fish/guestfish-actions.pod:4971
15848 #, no-wrap
15849 msgid ""
15850 " tgz-in (tarball|-) directory\n"
15851 "\n"
15852 msgstr ""
15853
15854 #. type: textblock
15855 #: ../fish/guestfish-actions.pod:4973 ../src/guestfs-actions.pod:7661
15856 msgid ""
15857 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15858 "tar file) into C<directory>."
15859 msgstr ""
15860
15861 #. type: textblock
15862 #: ../fish/guestfish-actions.pod:4976
15863 msgid "To upload an uncompressed tarball, use L</tar-in>."
15864 msgstr ""
15865
15866 #. type: =head2
15867 #: ../fish/guestfish-actions.pod:4980
15868 msgid "tgz-out"
15869 msgstr ""
15870
15871 #. type: verbatim
15872 #: ../fish/guestfish-actions.pod:4982
15873 #, no-wrap
15874 msgid ""
15875 " tgz-out directory (tarball|-)\n"
15876 "\n"
15877 msgstr ""
15878
15879 #. type: textblock
15880 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7677
15881 msgid ""
15882 "This command packs the contents of C<directory> and downloads it to local "
15883 "file C<tarball>."
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4987
15888 msgid "To download an uncompressed tarball, use L</tar-out>."
15889 msgstr ""
15890
15891 #. type: =head2
15892 #: ../fish/guestfish-actions.pod:4991
15893 msgid "touch"
15894 msgstr ""
15895
15896 #. type: verbatim
15897 #: ../fish/guestfish-actions.pod:4993
15898 #, no-wrap
15899 msgid ""
15900 " touch path\n"
15901 "\n"
15902 msgstr ""
15903
15904 #. type: textblock
15905 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7692
15906 msgid ""
15907 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15908 "timestamps on a file, or, if the file does not exist, to create a new "
15909 "zero-length file."
15910 msgstr ""
15911
15912 #. type: textblock
15913 #: ../fish/guestfish-actions.pod:4999 ../src/guestfs-actions.pod:7696
15914 msgid ""
15915 "This command only works on regular files, and will fail on other file types "
15916 "such as directories, symbolic links, block special etc."
15917 msgstr ""
15918
15919 #. type: =head2
15920 #: ../fish/guestfish-actions.pod:5002
15921 msgid "truncate"
15922 msgstr ""
15923
15924 #. type: verbatim
15925 #: ../fish/guestfish-actions.pod:5004
15926 #, no-wrap
15927 msgid ""
15928 " truncate path\n"
15929 "\n"
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
15934 msgid ""
15935 "This command truncates C<path> to a zero-length file.  The file must exist "
15936 "already."
15937 msgstr ""
15938
15939 #. type: =head2
15940 #: ../fish/guestfish-actions.pod:5009
15941 msgid "truncate-size"
15942 msgstr ""
15943
15944 #. type: verbatim
15945 #: ../fish/guestfish-actions.pod:5011
15946 #, no-wrap
15947 msgid ""
15948 " truncate-size path size\n"
15949 "\n"
15950 msgstr ""
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7723
15954 msgid ""
15955 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15956 "already."
15957 msgstr ""
15958
15959 #. type: textblock
15960 #: ../fish/guestfish-actions.pod:5016
15961 msgid ""
15962 "If the current file size is less than C<size> then the file is extended to "
15963 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15964 "blocks are not allocated for the file until you write to it).  To create a "
15965 "non-sparse file of zeroes, use L</fallocate64> instead."
15966 msgstr ""
15967
15968 #. type: =head2
15969 #: ../fish/guestfish-actions.pod:5022
15970 msgid "tune2fs"
15971 msgstr ""
15972
15973 #. type: verbatim
15974 #: ../fish/guestfish-actions.pod:5024
15975 #, no-wrap
15976 msgid ""
15977 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] "
15978 "[errorbehavior:..] [group:N] [intervalbetweenchecks:N] "
15979 "[reservedblockspercentage:N] [lastmounteddirectory:..] "
15980 "[reservedblockscount:N] [user:N]\n"
15981 "\n"
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7759
15986 msgid ""
15987 "This call allows you to adjust various filesystem parameters of an "
15988 "ext2/ext3/ext4 filesystem called C<device>."
15989 msgstr ""
15990
15991 #. type: textblock
15992 #: ../fish/guestfish-actions.pod:5035 ../src/guestfs-actions.pod:7768
15993 msgid ""
15994 "Force tune2fs to complete the operation even in the face of errors.  This is "
15995 "the same as the tune2fs C<-f> option."
15996 msgstr ""
15997
15998 #. type: =item
15999 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7771
16000 msgid "C<maxmountcount>"
16001 msgstr ""
16002
16003 #. type: textblock
16004 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7773
16005 msgid ""
16006 "Set the number of mounts after which the filesystem is checked by "
16007 "L<e2fsck(8)>.  If this is C<0> then the number of mounts is disregarded.  "
16008 "This is the same as the tune2fs C<-c> option."
16009 msgstr ""
16010
16011 #. type: =item
16012 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7777
16013 msgid "C<mountcount>"
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7779
16018 msgid ""
16019 "Set the number of times the filesystem has been mounted.  This is the same "
16020 "as the tune2fs C<-C> option."
16021 msgstr ""
16022
16023 #. type: =item
16024 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7782
16025 msgid "C<errorbehavior>"
16026 msgstr ""
16027
16028 #. type: textblock
16029 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7784
16030 msgid ""
16031 "Change the behavior of the kernel code when errors are detected.  Possible "
16032 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
16033 "these options don't really make any difference, particularly for write "
16034 "errors."
16035 msgstr ""
16036
16037 #. type: textblock
16038 #: ../fish/guestfish-actions.pod:5056 ../src/guestfs-actions.pod:7789
16039 msgid "This is the same as the tune2fs C<-e> option."
16040 msgstr ""
16041
16042 #. type: =item
16043 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7791
16044 msgid "C<group>"
16045 msgstr ""
16046
16047 #. type: textblock
16048 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7793
16049 msgid ""
16050 "Set the group which can use reserved filesystem blocks.  This is the same as "
16051 "the tune2fs C<-g> option except that it can only be specified as a number."
16052 msgstr ""
16053
16054 #. type: =item
16055 #: ../fish/guestfish-actions.pod:5064 ../src/guestfs-actions.pod:7797
16056 msgid "C<intervalbetweenchecks>"
16057 msgstr ""
16058
16059 #. type: textblock
16060 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7799
16061 msgid ""
16062 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
16063 "option is passed as C<0> then time-dependent checking is disabled."
16064 msgstr ""
16065
16066 #. type: textblock
16067 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7803
16068 msgid "This is the same as the tune2fs C<-i> option."
16069 msgstr ""
16070
16071 #. type: =item
16072 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7805
16073 msgid "C<reservedblockspercentage>"
16074 msgstr ""
16075
16076 #. type: textblock
16077 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7807
16078 msgid ""
16079 "Set the percentage of the filesystem which may only be allocated by "
16080 "privileged processes.  This is the same as the tune2fs C<-m> option."
16081 msgstr ""
16082
16083 #. type: =item
16084 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7811
16085 msgid "C<lastmounteddirectory>"
16086 msgstr ""
16087
16088 #. type: textblock
16089 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7813
16090 msgid ""
16091 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
16092 "option."
16093 msgstr ""
16094
16095 #. type: =item
16096 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7816
16097 msgid ""
16098 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
16099 "is the same as the tune2fs C<-r> option."
16100 msgstr ""
16101
16102 #. type: =item
16103 #: ../fish/guestfish-actions.pod:5087 ../src/guestfs-actions.pod:7820
16104 msgid "C<user>"
16105 msgstr ""
16106
16107 #. type: textblock
16108 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7822
16109 msgid ""
16110 "Set the user who can use the reserved filesystem blocks.  This is the same "
16111 "as the tune2fs C<-u> option except that it can only be specified as a "
16112 "number."
16113 msgstr ""
16114
16115 #. type: textblock
16116 #: ../fish/guestfish-actions.pod:5095
16117 msgid ""
16118 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
16119 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
16120 msgstr ""
16121
16122 #. type: =head2
16123 #: ../fish/guestfish-actions.pod:5101
16124 msgid "tune2fs-l"
16125 msgstr ""
16126
16127 #. type: verbatim
16128 #: ../fish/guestfish-actions.pod:5103
16129 #, no-wrap
16130 msgid ""
16131 " tune2fs-l device\n"
16132 "\n"
16133 msgstr ""
16134
16135 #. type: textblock
16136 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7862
16137 msgid ""
16138 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16139 "C<device>."
16140 msgstr ""
16141
16142 #. type: textblock
16143 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7865
16144 msgid ""
16145 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16146 "for more details.  The list of fields returned isn't clearly defined, and "
16147 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16148 "and the filesystem itself."
16149 msgstr ""
16150
16151 #. type: =head2
16152 #: ../fish/guestfish-actions.pod:5113
16153 msgid "txz-in"
16154 msgstr ""
16155
16156 #. type: verbatim
16157 #: ../fish/guestfish-actions.pod:5115
16158 #, no-wrap
16159 msgid ""
16160 " txz-in (tarball|-) directory\n"
16161 "\n"
16162 msgstr ""
16163
16164 #. type: textblock
16165 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7885
16166 msgid ""
16167 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16168 "tar file) into C<directory>."
16169 msgstr ""
16170
16171 #. type: =head2
16172 #: ../fish/guestfish-actions.pod:5122
16173 msgid "txz-out"
16174 msgstr ""
16175
16176 #. type: verbatim
16177 #: ../fish/guestfish-actions.pod:5124
16178 #, no-wrap
16179 msgid ""
16180 " txz-out directory (tarball|-)\n"
16181 "\n"
16182 msgstr ""
16183
16184 #. type: textblock
16185 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7899
16186 msgid ""
16187 "This command packs the contents of C<directory> and downloads it to local "
16188 "file C<tarball> (as an xz compressed tar archive)."
16189 msgstr ""
16190
16191 #. type: =head2
16192 #: ../fish/guestfish-actions.pod:5131
16193 msgid "umask"
16194 msgstr ""
16195
16196 #. type: verbatim
16197 #: ../fish/guestfish-actions.pod:5133
16198 #, no-wrap
16199 msgid ""
16200 " umask mask\n"
16201 "\n"
16202 msgstr ""
16203
16204 #. type: textblock
16205 #: ../fish/guestfish-actions.pod:5135 ../src/guestfs-actions.pod:7912
16206 msgid ""
16207 "This function sets the mask used for creating new files and device nodes to "
16208 "C<mask & 0777>."
16209 msgstr ""
16210
16211 #. type: textblock
16212 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7915
16213 msgid ""
16214 "Typical umask values would be C<022> which creates new files with "
16215 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16216 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16217 msgstr ""
16218
16219 #. type: textblock
16220 #: ../fish/guestfish-actions.pod:5143 ../src/guestfs-actions.pod:7920
16221 msgid ""
16222 "The default umask is C<022>.  This is important because it means that "
16223 "directories and device nodes will be created with C<0644> or C<0755> mode "
16224 "even if you specify C<0777>."
16225 msgstr ""
16226
16227 #. type: textblock
16228 #: ../fish/guestfish-actions.pod:5147
16229 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16230 msgstr ""
16231
16232 #. type: textblock
16233 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7927
16234 msgid "This call returns the previous umask."
16235 msgstr ""
16236
16237 #. type: =head2
16238 #: ../fish/guestfish-actions.pod:5152
16239 msgid "umount"
16240 msgstr ""
16241
16242 #. type: =head2
16243 #: ../fish/guestfish-actions.pod:5154
16244 msgid "unmount"
16245 msgstr ""
16246
16247 #. type: verbatim
16248 #: ../fish/guestfish-actions.pod:5156
16249 #, no-wrap
16250 msgid ""
16251 " umount pathordevice\n"
16252 "\n"
16253 msgstr ""
16254
16255 #. type: textblock
16256 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7939
16257 msgid ""
16258 "This unmounts the given filesystem.  The filesystem may be specified either "
16259 "by its mountpoint (path) or the device which contains the filesystem."
16260 msgstr ""
16261
16262 #. type: =head2
16263 #: ../fish/guestfish-actions.pod:5162
16264 msgid "umount-all"
16265 msgstr ""
16266
16267 #. type: =head2
16268 #: ../fish/guestfish-actions.pod:5164
16269 msgid "unmount-all"
16270 msgstr ""
16271
16272 #. type: verbatim
16273 #: ../fish/guestfish-actions.pod:5166
16274 #, no-wrap
16275 msgid ""
16276 " umount-all\n"
16277 "\n"
16278 msgstr ""
16279
16280 #. type: textblock
16281 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7952
16282 msgid "This unmounts all mounted filesystems."
16283 msgstr ""
16284
16285 #. type: textblock
16286 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7954
16287 msgid "Some internal mounts are not unmounted by this call."
16288 msgstr ""
16289
16290 #. type: =head2
16291 #: ../fish/guestfish-actions.pod:5172
16292 msgid "upload"
16293 msgstr ""
16294
16295 #. type: verbatim
16296 #: ../fish/guestfish-actions.pod:5174
16297 #, no-wrap
16298 msgid ""
16299 " upload (filename|-) remotefilename\n"
16300 "\n"
16301 msgstr ""
16302
16303 #. type: textblock
16304 #: ../fish/guestfish-actions.pod:5176 ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7967 ../src/guestfs-actions.pod:7991
16305 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16306 msgstr ""
16307
16308 #. type: textblock
16309 #: ../fish/guestfish-actions.pod:5181
16310 msgid "See also L</download>."
16311 msgstr ""
16312
16313 #. type: =head2
16314 #: ../fish/guestfish-actions.pod:5185
16315 msgid "upload-offset"
16316 msgstr ""
16317
16318 #. type: verbatim
16319 #: ../fish/guestfish-actions.pod:5187
16320 #, no-wrap
16321 msgid ""
16322 " upload-offset (filename|-) remotefilename offset\n"
16323 "\n"
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7994
16328 msgid ""
16329 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16330 "The intention is to overwrite parts of existing files or devices, although "
16331 "if a non-existant file is specified then it is created with a \"hole\" "
16332 "before C<offset>.  The size of the data written is implicit in the size of "
16333 "the source C<filename>."
16334 msgstr ""
16335
16336 #. type: textblock
16337 #: ../fish/guestfish-actions.pod:5199
16338 msgid ""
16339 "Note that there is no limit on the amount of data that can be uploaded with "
16340 "this call, unlike with L</pwrite>, and this call always writes the full "
16341 "amount unless an error occurs."
16342 msgstr ""
16343
16344 #. type: textblock
16345 #: ../fish/guestfish-actions.pod:5204
16346 msgid "See also L</upload>, L</pwrite>."
16347 msgstr ""
16348
16349 #. type: =head2
16350 #: ../fish/guestfish-actions.pod:5208
16351 msgid "utimens"
16352 msgstr ""
16353
16354 #. type: verbatim
16355 #: ../fish/guestfish-actions.pod:5210
16356 #, no-wrap
16357 msgid ""
16358 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16359 "\n"
16360 msgstr ""
16361
16362 #. type: textblock
16363 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8027
16364 msgid "This command sets the timestamps of a file with nanosecond precision."
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish-actions.pod:5215 ../src/guestfs-actions.pod:8030
16369 msgid ""
16370 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16371 "from the epoch."
16372 msgstr ""
16373
16374 #. type: textblock
16375 #: ../fish/guestfish-actions.pod:5218 ../src/guestfs-actions.pod:8033
16376 msgid ""
16377 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16378 "nanoseconds from the epoch."
16379 msgstr ""
16380
16381 #. type: textblock
16382 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:8036
16383 msgid ""
16384 "If the C<*nsecs> field contains the special value C<-1> then the "
16385 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16386 "ignored in this case)."
16387 msgstr ""
16388
16389 #. type: textblock
16390 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8040
16391 msgid ""
16392 "If the C<*nsecs> field contains the special value C<-2> then the "
16393 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16394 "in this case)."
16395 msgstr ""
16396
16397 #. type: =head2
16398 #: ../fish/guestfish-actions.pod:5229
16399 msgid "version"
16400 msgstr ""
16401
16402 #. type: verbatim
16403 #: ../fish/guestfish-actions.pod:5231
16404 #, no-wrap
16405 msgid ""
16406 " version\n"
16407 "\n"
16408 msgstr ""
16409
16410 #. type: textblock
16411 #: ../fish/guestfish-actions.pod:5233 ../src/guestfs-actions.pod:8053
16412 msgid "Return the libguestfs version number that the program is linked against."
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8056
16417 msgid ""
16418 "Note that because of dynamic linking this is not necessarily the version of "
16419 "libguestfs that you compiled against.  You can compile the program, and then "
16420 "at runtime dynamically link against a completely different C<libguestfs.so> "
16421 "library."
16422 msgstr ""
16423
16424 #. type: textblock
16425 #: ../fish/guestfish-actions.pod:5241 ../src/guestfs-actions.pod:8061
16426 msgid ""
16427 "This call was added in version C<1.0.58>.  In previous versions of "
16428 "libguestfs there was no way to get the version number.  From C code you can "
16429 "use dynamic linker functions to find out if this symbol exists (if it "
16430 "doesn't, then it's an earlier version)."
16431 msgstr ""
16432
16433 #. type: textblock
16434 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8067
16435 msgid ""
16436 "The call returns a structure with four elements.  The first three (C<major>, "
16437 "C<minor> and C<release>) are numbers and correspond to the usual version "
16438 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16439 "but may be used for distro-specific information."
16440 msgstr ""
16441
16442 #. type: textblock
16443 #: ../fish/guestfish-actions.pod:5253 ../src/guestfs-actions.pod:8073
16444 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
16445 msgstr ""
16446
16447 #. type: textblock
16448 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8076
16449 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16450 msgstr ""
16451
16452 #. type: textblock
16453 #: ../fish/guestfish-actions.pod:5258
16454 msgid ""
16455 "I<Note:> Don't use this call to test for availability of features.  In "
16456 "enterprise distributions we backport features from later versions into "
16457 "earlier versions, making this an unreliable way to test for features.  Use "
16458 "L</available> instead."
16459 msgstr ""
16460
16461 #. type: =head2
16462 #: ../fish/guestfish-actions.pod:5264
16463 msgid "vfs-label"
16464 msgstr ""
16465
16466 #. type: verbatim
16467 #: ../fish/guestfish-actions.pod:5266
16468 #, no-wrap
16469 msgid ""
16470 " vfs-label device\n"
16471 "\n"
16472 msgstr ""
16473
16474 #. type: textblock
16475 #: ../fish/guestfish-actions.pod:5268 ../src/guestfs-actions.pod:8096
16476 msgid "This returns the filesystem label of the filesystem on C<device>."
16477 msgstr ""
16478
16479 #. type: textblock
16480 #: ../fish/guestfish-actions.pod:5271 ../src/guestfs-actions.pod:8099
16481 msgid "If the filesystem is unlabeled, this returns the empty string."
16482 msgstr ""
16483
16484 #. type: textblock
16485 #: ../fish/guestfish-actions.pod:5273
16486 msgid "To find a filesystem from the label, use L</findfs-label>."
16487 msgstr ""
16488
16489 #. type: =head2
16490 #: ../fish/guestfish-actions.pod:5275
16491 msgid "vfs-type"
16492 msgstr ""
16493
16494 #. type: verbatim
16495 #: ../fish/guestfish-actions.pod:5277
16496 #, no-wrap
16497 msgid ""
16498 " vfs-type device\n"
16499 "\n"
16500 msgstr ""
16501
16502 #. type: textblock
16503 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8114
16504 msgid ""
16505 "This command gets the filesystem type corresponding to the filesystem on "
16506 "C<device>."
16507 msgstr ""
16508
16509 #. type: textblock
16510 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8117
16511 msgid ""
16512 "For most filesystems, the result is the name of the Linux VFS module which "
16513 "would be used to mount this filesystem if you mounted it without specifying "
16514 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16515 msgstr ""
16516
16517 #. type: =head2
16518 #: ../fish/guestfish-actions.pod:5287
16519 msgid "vfs-uuid"
16520 msgstr ""
16521
16522 #. type: verbatim
16523 #: ../fish/guestfish-actions.pod:5289
16524 #, no-wrap
16525 msgid ""
16526 " vfs-uuid device\n"
16527 "\n"
16528 msgstr ""
16529
16530 #. type: textblock
16531 #: ../fish/guestfish-actions.pod:5291 ../src/guestfs-actions.pod:8133
16532 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16533 msgstr ""
16534
16535 #. type: textblock
16536 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8136
16537 msgid "If the filesystem does not have a UUID, this returns the empty string."
16538 msgstr ""
16539
16540 #. type: textblock
16541 #: ../fish/guestfish-actions.pod:5296
16542 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16543 msgstr ""
16544
16545 #. type: =head2
16546 #: ../fish/guestfish-actions.pod:5298
16547 msgid "vg-activate"
16548 msgstr ""
16549
16550 #. type: verbatim
16551 #: ../fish/guestfish-actions.pod:5300
16552 #, no-wrap
16553 msgid ""
16554 " vg-activate true|false 'volgroups ...'\n"
16555 "\n"
16556 msgstr ""
16557
16558 #. type: textblock
16559 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
16560 msgid ""
16561 "This command activates or (if C<activate> is false) deactivates all logical "
16562 "volumes in the listed volume groups C<volgroups>."
16563 msgstr ""
16564
16565 #. type: textblock
16566 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
16567 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16568 msgstr ""
16569
16570 #. type: textblock
16571 #: ../fish/guestfish-actions.pod:5307 ../src/guestfs-actions.pod:8157
16572 msgid ""
16573 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16574 "activated or deactivated."
16575 msgstr ""
16576
16577 #. type: =head2
16578 #: ../fish/guestfish-actions.pod:5310
16579 msgid "vg-activate-all"
16580 msgstr ""
16581
16582 #. type: verbatim
16583 #: ../fish/guestfish-actions.pod:5312
16584 #, no-wrap
16585 msgid ""
16586 " vg-activate-all true|false\n"
16587 "\n"
16588 msgstr ""
16589
16590 #. type: textblock
16591 #: ../fish/guestfish-actions.pod:5314 ../src/guestfs-actions.pod:8170
16592 msgid ""
16593 "This command activates or (if C<activate> is false) deactivates all logical "
16594 "volumes in all volume groups."
16595 msgstr ""
16596
16597 #. type: textblock
16598 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8173
16599 msgid "This command is the same as running C<vgchange -a y|n>"
16600 msgstr ""
16601
16602 #. type: =head2
16603 #: ../fish/guestfish-actions.pod:5319
16604 msgid "vgcreate"
16605 msgstr ""
16606
16607 #. type: verbatim
16608 #: ../fish/guestfish-actions.pod:5321
16609 #, no-wrap
16610 msgid ""
16611 " vgcreate volgroup 'physvols ...'\n"
16612 "\n"
16613 msgstr ""
16614
16615 #. type: textblock
16616 #: ../fish/guestfish-actions.pod:5323 ../src/guestfs-actions.pod:8186
16617 msgid ""
16618 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16619 "of physical volumes C<physvols>."
16620 msgstr ""
16621
16622 #. type: =head2
16623 #: ../fish/guestfish-actions.pod:5326
16624 msgid "vglvuuids"
16625 msgstr ""
16626
16627 #. type: verbatim
16628 #: ../fish/guestfish-actions.pod:5328
16629 #, no-wrap
16630 msgid ""
16631 " vglvuuids vgname\n"
16632 "\n"
16633 msgstr ""
16634
16635 #. type: textblock
16636 #: ../fish/guestfish-actions.pod:5330 ../src/guestfs-actions.pod:8199
16637 msgid ""
16638 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16639 "volumes created in this volume group."
16640 msgstr ""
16641
16642 #. type: textblock
16643 #: ../fish/guestfish-actions.pod:5333
16644 msgid ""
16645 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16646 "logical volumes and volume groups."
16647 msgstr ""
16648
16649 #. type: textblock
16650 #: ../fish/guestfish-actions.pod:5336
16651 msgid "See also L</vgpvuuids>."
16652 msgstr ""
16653
16654 #. type: =head2
16655 #: ../fish/guestfish-actions.pod:5338
16656 msgid "vgpvuuids"
16657 msgstr ""
16658
16659 #. type: verbatim
16660 #: ../fish/guestfish-actions.pod:5340
16661 #, no-wrap
16662 msgid ""
16663 " vgpvuuids vgname\n"
16664 "\n"
16665 msgstr ""
16666
16667 #. type: textblock
16668 #: ../fish/guestfish-actions.pod:5342 ../src/guestfs-actions.pod:8219
16669 msgid ""
16670 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16671 "volumes that this volume group resides on."
16672 msgstr ""
16673
16674 #. type: textblock
16675 #: ../fish/guestfish-actions.pod:5345
16676 msgid ""
16677 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16678 "physical volumes and volume groups."
16679 msgstr ""
16680
16681 #. type: textblock
16682 #: ../fish/guestfish-actions.pod:5348
16683 msgid "See also L</vglvuuids>."
16684 msgstr ""
16685
16686 #. type: =head2
16687 #: ../fish/guestfish-actions.pod:5350
16688 msgid "vgremove"
16689 msgstr ""
16690
16691 #. type: verbatim
16692 #: ../fish/guestfish-actions.pod:5352
16693 #, no-wrap
16694 msgid ""
16695 " vgremove vgname\n"
16696 "\n"
16697 msgstr ""
16698
16699 #. type: textblock
16700 #: ../fish/guestfish-actions.pod:5354 ../src/guestfs-actions.pod:8239
16701 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8241
16706 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
16707 msgstr ""
16708
16709 #. type: =head2
16710 #: ../fish/guestfish-actions.pod:5359
16711 msgid "vgrename"
16712 msgstr ""
16713
16714 #. type: verbatim
16715 #: ../fish/guestfish-actions.pod:5361
16716 #, no-wrap
16717 msgid ""
16718 " vgrename volgroup newvolgroup\n"
16719 "\n"
16720 msgstr ""
16721
16722 #. type: textblock
16723 #: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8255
16724 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16725 msgstr ""
16726
16727 #. type: =head2
16728 #: ../fish/guestfish-actions.pod:5365
16729 msgid "vgs"
16730 msgstr ""
16731
16732 #. type: verbatim
16733 #: ../fish/guestfish-actions.pod:5367
16734 #, no-wrap
16735 msgid ""
16736 " vgs\n"
16737 "\n"
16738 msgstr ""
16739
16740 #. type: textblock
16741 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8266
16742 msgid ""
16743 "List all the volumes groups detected.  This is the equivalent of the "
16744 "L<vgs(8)> command."
16745 msgstr ""
16746
16747 #. type: textblock
16748 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8269
16749 msgid ""
16750 "This returns a list of just the volume group names that were detected "
16751 "(eg. C<VolGroup00>)."
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish-actions.pod:5375
16756 msgid "See also L</vgs-full>."
16757 msgstr ""
16758
16759 #. type: =head2
16760 #: ../fish/guestfish-actions.pod:5377
16761 msgid "vgs-full"
16762 msgstr ""
16763
16764 #. type: verbatim
16765 #: ../fish/guestfish-actions.pod:5379
16766 #, no-wrap
16767 msgid ""
16768 " vgs-full\n"
16769 "\n"
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-actions.pod:5381 ../src/guestfs-actions.pod:8285
16774 msgid ""
16775 "List all the volumes groups detected.  This is the equivalent of the "
16776 "L<vgs(8)> command.  The \"full\" version includes all fields."
16777 msgstr ""
16778
16779 #. type: =head2
16780 #: ../fish/guestfish-actions.pod:5384
16781 msgid "vgscan"
16782 msgstr ""
16783
16784 #. type: verbatim
16785 #: ../fish/guestfish-actions.pod:5386
16786 #, no-wrap
16787 msgid ""
16788 " vgscan\n"
16789 "\n"
16790 msgstr ""
16791
16792 #. type: textblock
16793 #: ../fish/guestfish-actions.pod:5388 ../src/guestfs-actions.pod:8299
16794 msgid ""
16795 "This rescans all block devices and rebuilds the list of LVM physical "
16796 "volumes, volume groups and logical volumes."
16797 msgstr ""
16798
16799 #. type: =head2
16800 #: ../fish/guestfish-actions.pod:5391
16801 msgid "vguuid"
16802 msgstr ""
16803
16804 #. type: verbatim
16805 #: ../fish/guestfish-actions.pod:5393
16806 #, no-wrap
16807 msgid ""
16808 " vguuid vgname\n"
16809 "\n"
16810 msgstr ""
16811
16812 #. type: textblock
16813 #: ../fish/guestfish-actions.pod:5395 ../src/guestfs-actions.pod:8312
16814 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16815 msgstr ""
16816
16817 #. type: =head2
16818 #: ../fish/guestfish-actions.pod:5397
16819 msgid "wc-c"
16820 msgstr ""
16821
16822 #. type: verbatim
16823 #: ../fish/guestfish-actions.pod:5399
16824 #, no-wrap
16825 msgid ""
16826 " wc-c path\n"
16827 "\n"
16828 msgstr ""
16829
16830 #. type: textblock
16831 #: ../fish/guestfish-actions.pod:5401 ../src/guestfs-actions.pod:8352
16832 msgid ""
16833 "This command counts the characters in a file, using the C<wc -c> external "
16834 "command."
16835 msgstr ""
16836
16837 #. type: =head2
16838 #: ../fish/guestfish-actions.pod:5404
16839 msgid "wc-l"
16840 msgstr ""
16841
16842 #. type: verbatim
16843 #: ../fish/guestfish-actions.pod:5406
16844 #, no-wrap
16845 msgid ""
16846 " wc-l path\n"
16847 "\n"
16848 msgstr ""
16849
16850 #. type: textblock
16851 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8365
16852 msgid ""
16853 "This command counts the lines in a file, using the C<wc -l> external "
16854 "command."
16855 msgstr ""
16856
16857 #. type: =head2
16858 #: ../fish/guestfish-actions.pod:5411
16859 msgid "wc-w"
16860 msgstr ""
16861
16862 #. type: verbatim
16863 #: ../fish/guestfish-actions.pod:5413
16864 #, no-wrap
16865 msgid ""
16866 " wc-w path\n"
16867 "\n"
16868 msgstr ""
16869
16870 #. type: textblock
16871 #: ../fish/guestfish-actions.pod:5415 ../src/guestfs-actions.pod:8378
16872 msgid ""
16873 "This command counts the words in a file, using the C<wc -w> external "
16874 "command."
16875 msgstr ""
16876
16877 #. type: =head2
16878 #: ../fish/guestfish-actions.pod:5418
16879 msgid "write"
16880 msgstr ""
16881
16882 #. type: verbatim
16883 #: ../fish/guestfish-actions.pod:5420
16884 #, no-wrap
16885 msgid ""
16886 " write path content\n"
16887 "\n"
16888 msgstr ""
16889
16890 #. type: textblock
16891 #: ../fish/guestfish-actions.pod:5422 ../src/guestfs-actions.pod:8393
16892 msgid ""
16893 "This call creates a file called C<path>.  The content of the file is the "
16894 "string C<content> (which can contain any 8 bit data)."
16895 msgstr ""
16896
16897 #. type: textblock
16898 #: ../fish/guestfish-actions.pod:5425
16899 msgid "See also L</write-append>."
16900 msgstr ""
16901
16902 #. type: =head2
16903 #: ../fish/guestfish-actions.pod:5430
16904 msgid "write-append"
16905 msgstr ""
16906
16907 #. type: verbatim
16908 #: ../fish/guestfish-actions.pod:5432
16909 #, no-wrap
16910 msgid ""
16911 " write-append path content\n"
16912 "\n"
16913 msgstr ""
16914
16915 #. type: textblock
16916 #: ../fish/guestfish-actions.pod:5434 ../src/guestfs-actions.pod:8413
16917 msgid ""
16918 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16919 "not exist, then a new file is created."
16920 msgstr ""
16921
16922 #. type: textblock
16923 #: ../fish/guestfish-actions.pod:5437
16924 msgid "See also L</write>."
16925 msgstr ""
16926
16927 #. type: =head2
16928 #: ../fish/guestfish-actions.pod:5442
16929 msgid "write-file"
16930 msgstr ""
16931
16932 #. type: verbatim
16933 #: ../fish/guestfish-actions.pod:5444
16934 #, no-wrap
16935 msgid ""
16936 " write-file path content size\n"
16937 "\n"
16938 msgstr ""
16939
16940 #. type: textblock
16941 #: ../fish/guestfish-actions.pod:5446 ../src/guestfs-actions.pod:8440
16942 msgid ""
16943 "This call creates a file called C<path>.  The contents of the file is the "
16944 "string C<content> (which can contain any 8 bit data), with length C<size>."
16945 msgstr ""
16946
16947 #. type: textblock
16948 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8444
16949 msgid ""
16950 "As a special case, if C<size> is C<0> then the length is calculated using "
16951 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish-actions.pod:5454 ../src/guestfs-actions.pod:8448
16956 msgid ""
16957 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16958 "I<not> work, even if the length is specified."
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:5460
16963 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
16964 msgstr ""
16965
16966 #. type: =head2
16967 #: ../fish/guestfish-actions.pod:5467
16968 msgid "zegrep"
16969 msgstr ""
16970
16971 #. type: verbatim
16972 #: ../fish/guestfish-actions.pod:5469
16973 #, no-wrap
16974 msgid ""
16975 " zegrep regex path\n"
16976 "\n"
16977 msgstr ""
16978
16979 #. type: textblock
16980 #: ../fish/guestfish-actions.pod:5471 ../src/guestfs-actions.pod:8465
16981 msgid "This calls the external C<zegrep> program and returns the matching lines."
16982 msgstr ""
16983
16984 #. type: =head2
16985 #: ../fish/guestfish-actions.pod:5477
16986 msgid "zegrepi"
16987 msgstr ""
16988
16989 #. type: verbatim
16990 #: ../fish/guestfish-actions.pod:5479
16991 #, no-wrap
16992 msgid ""
16993 " zegrepi regex path\n"
16994 "\n"
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../fish/guestfish-actions.pod:5481 ../src/guestfs-actions.pod:8484
16999 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17000 msgstr ""
17001
17002 #. type: =head2
17003 #: ../fish/guestfish-actions.pod:5487
17004 msgid "zero"
17005 msgstr ""
17006
17007 #. type: verbatim
17008 #: ../fish/guestfish-actions.pod:5489
17009 #, no-wrap
17010 msgid ""
17011 " zero device\n"
17012 "\n"
17013 msgstr ""
17014
17015 #. type: textblock
17016 #: ../fish/guestfish-actions.pod:5491 ../src/guestfs-actions.pod:8502
17017 msgid "This command writes zeroes over the first few blocks of C<device>."
17018 msgstr ""
17019
17020 #. type: textblock
17021 #: ../fish/guestfish-actions.pod:5493 ../src/guestfs-actions.pod:8504
17022 msgid ""
17023 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17024 "securely wipe the device).  It should be sufficient to remove any partition "
17025 "tables, filesystem superblocks and so on."
17026 msgstr ""
17027
17028 #. type: textblock
17029 #: ../fish/guestfish-actions.pod:5497 ../fish/guestfish-actions.pod:5512 ../src/guestfs-actions.pod:8508 ../src/guestfs-actions.pod:8534
17030 msgid ""
17031 "If blocks are already zero, then this command avoids writing zeroes.  This "
17032 "prevents the underlying device from becoming non-sparse or growing "
17033 "unnecessarily."
17034 msgstr ""
17035
17036 #. type: textblock
17037 #: ../fish/guestfish-actions.pod:5501
17038 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17039 msgstr ""
17040
17041 #. type: =head2
17042 #: ../fish/guestfish-actions.pod:5504
17043 msgid "zero-device"
17044 msgstr ""
17045
17046 #. type: verbatim
17047 #: ../fish/guestfish-actions.pod:5506
17048 #, no-wrap
17049 msgid ""
17050 " zero-device device\n"
17051 "\n"
17052 msgstr ""
17053
17054 #. type: textblock
17055 #: ../fish/guestfish-actions.pod:5508
17056 msgid ""
17057 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17058 "which just zeroes the first few blocks of a device."
17059 msgstr ""
17060
17061 #. type: =head2
17062 #: ../fish/guestfish-actions.pod:5516
17063 msgid "zerofree"
17064 msgstr ""
17065
17066 #. type: verbatim
17067 #: ../fish/guestfish-actions.pod:5518
17068 #, no-wrap
17069 msgid ""
17070 " zerofree device\n"
17071 "\n"
17072 msgstr ""
17073
17074 #. type: textblock
17075 #: ../fish/guestfish-actions.pod:5520 ../src/guestfs-actions.pod:8553
17076 msgid ""
17077 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17078 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17079 "possible to compress the filesystem more effectively."
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish-actions.pod:5525 ../src/guestfs-actions.pod:8558
17084 msgid "You should B<not> run this program if the filesystem is mounted."
17085 msgstr ""
17086
17087 #. type: textblock
17088 #: ../fish/guestfish-actions.pod:5528 ../src/guestfs-actions.pod:8561
17089 msgid ""
17090 "It is possible that using this program can damage the filesystem or data on "
17091 "the filesystem."
17092 msgstr ""
17093
17094 #. type: =head2
17095 #: ../fish/guestfish-actions.pod:5531
17096 msgid "zfgrep"
17097 msgstr ""
17098
17099 #. type: verbatim
17100 #: ../fish/guestfish-actions.pod:5533
17101 #, no-wrap
17102 msgid ""
17103 " zfgrep pattern path\n"
17104 "\n"
17105 msgstr ""
17106
17107 #. type: textblock
17108 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8575
17109 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17110 msgstr ""
17111
17112 #. type: =head2
17113 #: ../fish/guestfish-actions.pod:5541
17114 msgid "zfgrepi"
17115 msgstr ""
17116
17117 #. type: verbatim
17118 #: ../fish/guestfish-actions.pod:5543
17119 #, no-wrap
17120 msgid ""
17121 " zfgrepi pattern path\n"
17122 "\n"
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish-actions.pod:5545 ../src/guestfs-actions.pod:8594
17127 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17128 msgstr ""
17129
17130 #. type: =head2
17131 #: ../fish/guestfish-actions.pod:5551
17132 msgid "zfile"
17133 msgstr ""
17134
17135 #. type: verbatim
17136 #: ../fish/guestfish-actions.pod:5553
17137 #, no-wrap
17138 msgid ""
17139 " zfile meth path\n"
17140 "\n"
17141 msgstr ""
17142
17143 #. type: textblock
17144 #: ../fish/guestfish-actions.pod:5555 ../src/guestfs-actions.pod:8620
17145 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17146 msgstr ""
17147
17148 #. type: textblock
17149 #: ../fish/guestfish-actions.pod:5558 ../src/guestfs-actions.pod:8623
17150 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17151 msgstr ""
17152
17153 #. type: textblock
17154 #: ../fish/guestfish-actions.pod:5560
17155 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
17156 msgstr ""
17157
17158 #. type: textblock
17159 #: ../fish/guestfish-actions.pod:5563
17160 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
17161 msgstr ""
17162
17163 #. type: =head2
17164 #: ../fish/guestfish-actions.pod:5570
17165 msgid "zgrep"
17166 msgstr ""
17167
17168 #. type: verbatim
17169 #: ../fish/guestfish-actions.pod:5572
17170 #, no-wrap
17171 msgid ""
17172 " zgrep regex path\n"
17173 "\n"
17174 msgstr ""
17175
17176 #. type: textblock
17177 #: ../fish/guestfish-actions.pod:5574 ../src/guestfs-actions.pod:8640
17178 msgid "This calls the external C<zgrep> program and returns the matching lines."
17179 msgstr ""
17180
17181 #. type: =head2
17182 #: ../fish/guestfish-actions.pod:5580
17183 msgid "zgrepi"
17184 msgstr ""
17185
17186 #. type: verbatim
17187 #: ../fish/guestfish-actions.pod:5582
17188 #, no-wrap
17189 msgid ""
17190 " zgrepi regex path\n"
17191 "\n"
17192 msgstr ""
17193
17194 #. type: textblock
17195 #: ../fish/guestfish-actions.pod:5584 ../src/guestfs-actions.pod:8659
17196 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
17197 msgstr ""
17198
17199 #. type: =head2
17200 #: ../fish/guestfish-commands.pod:1
17201 msgid "alloc"
17202 msgstr ""
17203
17204 #. type: =head2
17205 #: ../fish/guestfish-commands.pod:3
17206 msgid "allocate"
17207 msgstr ""
17208
17209 #. type: verbatim
17210 #: ../fish/guestfish-commands.pod:5
17211 #, no-wrap
17212 msgid ""
17213 " alloc filename size\n"
17214 "\n"
17215 msgstr ""
17216
17217 #. type: textblock
17218 #: ../fish/guestfish-commands.pod:7
17219 msgid ""
17220 "This creates an empty (zeroed) file of the given size, and then adds so it "
17221 "can be further examined."
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17226 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17227 msgstr ""
17228
17229 #. type: textblock
17230 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17231 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17232 msgstr ""
17233
17234 #. type: textblock
17235 #: ../fish/guestfish-commands.pod:14
17236 msgid ""
17237 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17238 "image, see L</PREPARED DISK IMAGES>."
17239 msgstr ""
17240
17241 #. type: =head2
17242 #: ../fish/guestfish-commands.pod:17
17243 msgid "copy-in"
17244 msgstr ""
17245
17246 #. type: verbatim
17247 #: ../fish/guestfish-commands.pod:19
17248 #, no-wrap
17249 msgid ""
17250 " copy-in local [local ...] /remotedir\n"
17251 "\n"
17252 msgstr ""
17253
17254 #. type: textblock
17255 #: ../fish/guestfish-commands.pod:21
17256 msgid ""
17257 "C<copy-in> copies local files or directories recursively into the disk "
17258 "image, placing them in the directory called C</remotedir> (which must "
17259 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17260 "other commands as necessary."
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish-commands.pod:26
17265 msgid ""
17266 "Multiple local files and directories can be specified, but the last "
17267 "parameter must always be a remote directory.  Wildcards cannot be used."
17268 msgstr ""
17269
17270 #. type: =head2
17271 #: ../fish/guestfish-commands.pod:30
17272 msgid "copy-out"
17273 msgstr ""
17274
17275 #. type: verbatim
17276 #: ../fish/guestfish-commands.pod:32
17277 #, no-wrap
17278 msgid ""
17279 " copy-out remote [remote ...] localdir\n"
17280 "\n"
17281 msgstr ""
17282
17283 #. type: textblock
17284 #: ../fish/guestfish-commands.pod:34
17285 msgid ""
17286 "C<copy-out> copies remote files or directories recursively out of the disk "
17287 "image, placing them on the host disk in a local directory called C<localdir> "
17288 "(which must exist).  This guestfish meta-command turns into a sequence of "
17289 "L</download>, L</tar-out> and other commands as necessary."
17290 msgstr ""
17291
17292 #. type: textblock
17293 #: ../fish/guestfish-commands.pod:40
17294 msgid ""
17295 "Multiple remote files and directories can be specified, but the last "
17296 "parameter must always be a local directory.  To download to the current "
17297 "directory, use C<.> as in:"
17298 msgstr ""
17299
17300 #. type: verbatim
17301 #: ../fish/guestfish-commands.pod:44
17302 #, no-wrap
17303 msgid ""
17304 " copy-out /home .\n"
17305 "\n"
17306 msgstr ""
17307
17308 #. type: textblock
17309 #: ../fish/guestfish-commands.pod:46
17310 msgid ""
17311 "Wildcards cannot be used in the ordinary command, but you can use them with "
17312 "the help of L</glob> like this:"
17313 msgstr ""
17314
17315 #. type: verbatim
17316 #: ../fish/guestfish-commands.pod:49
17317 #, no-wrap
17318 msgid ""
17319 " glob copy-out /home/* .\n"
17320 "\n"
17321 msgstr ""
17322
17323 #. type: =head2
17324 #: ../fish/guestfish-commands.pod:51
17325 msgid "display"
17326 msgstr ""
17327
17328 #. type: verbatim
17329 #: ../fish/guestfish-commands.pod:53
17330 #, no-wrap
17331 msgid ""
17332 " display filename\n"
17333 "\n"
17334 msgstr ""
17335
17336 #. type: textblock
17337 #: ../fish/guestfish-commands.pod:55
17338 msgid ""
17339 "Use C<display> (a graphical display program) to display an image file.  It "
17340 "downloads the file, and runs C<display> on it."
17341 msgstr ""
17342
17343 #. type: textblock
17344 #: ../fish/guestfish-commands.pod:58
17345 msgid ""
17346 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17347 "environment variable.  For example to use the GNOME display program:"
17348 msgstr ""
17349
17350 #. type: verbatim
17351 #: ../fish/guestfish-commands.pod:61
17352 #, no-wrap
17353 msgid ""
17354 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17355 "\n"
17356 msgstr ""
17357
17358 #. type: textblock
17359 #: ../fish/guestfish-commands.pod:63
17360 msgid "See also L<display(1)>."
17361 msgstr ""
17362
17363 #. type: =head2
17364 #: ../fish/guestfish-commands.pod:65
17365 msgid "echo"
17366 msgstr ""
17367
17368 #. type: verbatim
17369 #: ../fish/guestfish-commands.pod:67
17370 #, no-wrap
17371 msgid ""
17372 " echo [params ...]\n"
17373 "\n"
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../fish/guestfish-commands.pod:69
17378 msgid "This echos the parameters to the terminal."
17379 msgstr ""
17380
17381 #. type: =head2
17382 #: ../fish/guestfish-commands.pod:71
17383 msgid "edit"
17384 msgstr ""
17385
17386 #. type: =head2
17387 #: ../fish/guestfish-commands.pod:73
17388 msgid "vi"
17389 msgstr ""
17390
17391 #. type: =head2
17392 #: ../fish/guestfish-commands.pod:75
17393 msgid "emacs"
17394 msgstr ""
17395
17396 #. type: verbatim
17397 #: ../fish/guestfish-commands.pod:77
17398 #, no-wrap
17399 msgid ""
17400 " edit filename\n"
17401 "\n"
17402 msgstr ""
17403
17404 #. type: textblock
17405 #: ../fish/guestfish-commands.pod:79
17406 msgid ""
17407 "This is used to edit a file.  It downloads the file, edits it locally using "
17408 "your editor, then uploads the result."
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish-commands.pod:82
17413 msgid ""
17414 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17415 "or C<emacs> you will get those corresponding editors."
17416 msgstr ""
17417
17418 #. type: =head2
17419 #: ../fish/guestfish-commands.pod:86
17420 msgid "glob"
17421 msgstr ""
17422
17423 #. type: verbatim
17424 #: ../fish/guestfish-commands.pod:88
17425 #, no-wrap
17426 msgid ""
17427 " glob command args...\n"
17428 "\n"
17429 msgstr ""
17430
17431 #. type: textblock
17432 #: ../fish/guestfish-commands.pod:90
17433 msgid ""
17434 "Expand wildcards in any paths in the args list, and run C<command> "
17435 "repeatedly on each matching path."
17436 msgstr ""
17437
17438 #. type: textblock
17439 #: ../fish/guestfish-commands.pod:93
17440 msgid "See L</WILDCARDS AND GLOBBING>."
17441 msgstr ""
17442
17443 #. type: =head2
17444 #: ../fish/guestfish-commands.pod:95
17445 msgid "hexedit"
17446 msgstr ""
17447
17448 #. type: verbatim
17449 #: ../fish/guestfish-commands.pod:97
17450 #, no-wrap
17451 msgid ""
17452 " hexedit <filename|device>\n"
17453 " hexedit <filename|device> <max>\n"
17454 " hexedit <filename|device> <start> <max>\n"
17455 "\n"
17456 msgstr ""
17457
17458 #. type: textblock
17459 #: ../fish/guestfish-commands.pod:101
17460 msgid ""
17461 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17462 "device."
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish-commands.pod:104
17467 msgid ""
17468 "This command works by downloading potentially the whole file or device, "
17469 "editing it locally, then uploading it.  If the file or device is large, you "
17470 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17471 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17472 "usual modifiers allowed such as C<1M> (1 megabyte)."
17473 msgstr ""
17474
17475 #. type: textblock
17476 #: ../fish/guestfish-commands.pod:111
17477 msgid "For example to edit the first few sectors of a disk you might do:"
17478 msgstr ""
17479
17480 #. type: verbatim
17481 #: ../fish/guestfish-commands.pod:114
17482 #, no-wrap
17483 msgid ""
17484 " hexedit /dev/sda 1M\n"
17485 "\n"
17486 msgstr ""
17487
17488 #. type: textblock
17489 #: ../fish/guestfish-commands.pod:116
17490 msgid ""
17491 "which would allow you to edit anywhere within the first megabyte of the "
17492 "disk."
17493 msgstr ""
17494
17495 #. type: textblock
17496 #: ../fish/guestfish-commands.pod:119
17497 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17498 msgstr ""
17499
17500 #. type: verbatim
17501 #: ../fish/guestfish-commands.pod:121
17502 #, no-wrap
17503 msgid ""
17504 " hexedit /dev/sda1 0x400 0x400\n"
17505 "\n"
17506 msgstr ""
17507
17508 #. type: textblock
17509 #: ../fish/guestfish-commands.pod:123
17510 msgid "(assuming the superblock is in the standard location)."
17511 msgstr ""
17512
17513 #. type: textblock
17514 #: ../fish/guestfish-commands.pod:125
17515 msgid ""
17516 "This command requires the external L<hexedit(1)> program.  You can specify "
17517 "another program to use by setting the C<HEXEDITOR> environment variable."
17518 msgstr ""
17519
17520 #. type: textblock
17521 #: ../fish/guestfish-commands.pod:129
17522 msgid "See also L</hexdump>."
17523 msgstr ""
17524
17525 #. type: =head2
17526 #: ../fish/guestfish-commands.pod:131
17527 msgid "lcd"
17528 msgstr ""
17529
17530 #. type: verbatim
17531 #: ../fish/guestfish-commands.pod:133
17532 #, no-wrap
17533 msgid ""
17534 " lcd directory\n"
17535 "\n"
17536 msgstr ""
17537
17538 #. type: textblock
17539 #: ../fish/guestfish-commands.pod:135
17540 msgid "Change the local directory, ie. the current directory of guestfish itself."
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish-commands.pod:138
17545 msgid "Note that C<!cd> won't do what you might expect."
17546 msgstr ""
17547
17548 #. type: =head2
17549 #: ../fish/guestfish-commands.pod:140
17550 msgid "man"
17551 msgstr ""
17552
17553 #. type: =head2
17554 #: ../fish/guestfish-commands.pod:142
17555 msgid "manual"
17556 msgstr ""
17557
17558 #. type: verbatim
17559 #: ../fish/guestfish-commands.pod:144
17560 #, no-wrap
17561 msgid ""
17562 "  man\n"
17563 "\n"
17564 msgstr ""
17565
17566 #. type: textblock
17567 #: ../fish/guestfish-commands.pod:146
17568 msgid "Opens the manual page for guestfish."
17569 msgstr ""
17570
17571 #. type: =head2
17572 #: ../fish/guestfish-commands.pod:148
17573 msgid "more"
17574 msgstr ""
17575
17576 #. type: =head2
17577 #: ../fish/guestfish-commands.pod:150
17578 msgid "less"
17579 msgstr ""
17580
17581 #. type: verbatim
17582 #: ../fish/guestfish-commands.pod:152
17583 #, no-wrap
17584 msgid ""
17585 " more filename\n"
17586 "\n"
17587 msgstr ""
17588
17589 #. type: verbatim
17590 #: ../fish/guestfish-commands.pod:154
17591 #, no-wrap
17592 msgid ""
17593 " less filename\n"
17594 "\n"
17595 msgstr ""
17596
17597 #. type: textblock
17598 #: ../fish/guestfish-commands.pod:156
17599 msgid "This is used to view a file."
17600 msgstr ""
17601
17602 #. type: textblock
17603 #: ../fish/guestfish-commands.pod:158
17604 msgid ""
17605 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17606 "C<less> you will get the C<less> command specifically."
17607 msgstr ""
17608
17609 #. type: =head2
17610 #: ../fish/guestfish-commands.pod:161
17611 msgid "reopen"
17612 msgstr ""
17613
17614 #. type: verbatim
17615 #: ../fish/guestfish-commands.pod:163
17616 #, no-wrap
17617 msgid ""
17618 "  reopen\n"
17619 "\n"
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../fish/guestfish-commands.pod:165
17624 msgid ""
17625 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17626 "normally, because the handle is closed properly when guestfish exits.  "
17627 "However this is occasionally useful for testing."
17628 msgstr ""
17629
17630 #. type: =head2
17631 #: ../fish/guestfish-commands.pod:169
17632 msgid "setenv"
17633 msgstr ""
17634
17635 #. type: verbatim
17636 #: ../fish/guestfish-commands.pod:171
17637 #, no-wrap
17638 msgid ""
17639 "  setenv VAR value\n"
17640 "\n"
17641 msgstr ""
17642
17643 #. type: textblock
17644 #: ../fish/guestfish-commands.pod:173
17645 msgid "Set the environment variable C<VAR> to the string C<value>."
17646 msgstr ""
17647
17648 #. type: textblock
17649 #: ../fish/guestfish-commands.pod:175
17650 msgid "To print the value of an environment variable use a shell command such as:"
17651 msgstr ""
17652
17653 #. type: verbatim
17654 #: ../fish/guestfish-commands.pod:178
17655 #, no-wrap
17656 msgid ""
17657 " !echo $VAR\n"
17658 "\n"
17659 msgstr ""
17660
17661 #. type: =head2
17662 #: ../fish/guestfish-commands.pod:180
17663 msgid "sparse"
17664 msgstr ""
17665
17666 #. type: verbatim
17667 #: ../fish/guestfish-commands.pod:182
17668 #, no-wrap
17669 msgid ""
17670 " sparse filename size\n"
17671 "\n"
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../fish/guestfish-commands.pod:184
17676 msgid ""
17677 "This creates an empty sparse file of the given size, and then adds so it can "
17678 "be further examined."
17679 msgstr ""
17680
17681 #. type: textblock
17682 #: ../fish/guestfish-commands.pod:187
17683 msgid ""
17684 "In all respects it works the same as the L</alloc> command, except that the "
17685 "image file is allocated sparsely, which means that disk blocks are not "
17686 "assigned to the file until they are needed.  Sparse disk files only use "
17687 "space when written to, but they are slower and there is a danger you could "
17688 "run out of real disk space during a write operation."
17689 msgstr ""
17690
17691 #. type: =head2
17692 #: ../fish/guestfish-commands.pod:197
17693 msgid "supported"
17694 msgstr ""
17695
17696 #. type: verbatim
17697 #: ../fish/guestfish-commands.pod:199
17698 #, no-wrap
17699 msgid ""
17700 " supported\n"
17701 "\n"
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../fish/guestfish-commands.pod:201
17706 msgid ""
17707 "This command returns a list of the optional groups known to the daemon, and "
17708 "indicates which ones are supported by this build of the libguestfs "
17709 "appliance."
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../fish/guestfish-commands.pod:205
17714 msgid "See also L<guestfs(3)/AVAILABILITY>."
17715 msgstr ""
17716
17717 #. type: =head2
17718 #: ../fish/guestfish-commands.pod:207
17719 msgid "time"
17720 msgstr ""
17721
17722 #. type: verbatim
17723 #: ../fish/guestfish-commands.pod:209
17724 #, no-wrap
17725 msgid ""
17726 " time command args...\n"
17727 "\n"
17728 msgstr ""
17729
17730 #. type: textblock
17731 #: ../fish/guestfish-commands.pod:211
17732 msgid ""
17733 "Run the command as usual, but print the elapsed time afterwards.  This can "
17734 "be useful for benchmarking operations."
17735 msgstr ""
17736
17737 #. type: =head2
17738 #: ../fish/guestfish-commands.pod:214
17739 msgid "unsetenv"
17740 msgstr ""
17741
17742 #. type: verbatim
17743 #: ../fish/guestfish-commands.pod:216
17744 #, no-wrap
17745 msgid ""
17746 "  unsetenv VAR\n"
17747 "\n"
17748 msgstr ""
17749
17750 #. type: textblock
17751 #: ../fish/guestfish-commands.pod:218
17752 msgid "Remove C<VAR> from the environment."
17753 msgstr ""
17754
17755 #. type: textblock
17756 #: ../fish/guestfish.pod:5
17757 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17758 msgstr ""
17759
17760 #. type: verbatim
17761 #: ../fish/guestfish.pod:9
17762 #, no-wrap
17763 msgid ""
17764 " guestfish [--options] [commands]\n"
17765 "\n"
17766 msgstr ""
17767
17768 #. type: verbatim
17769 #: ../fish/guestfish.pod:11
17770 #, no-wrap
17771 msgid ""
17772 " guestfish\n"
17773 "\n"
17774 msgstr ""
17775
17776 #. type: verbatim
17777 #: ../fish/guestfish.pod:13
17778 #, no-wrap
17779 msgid ""
17780 " guestfish [--ro|--rw] -a disk.img\n"
17781 "\n"
17782 msgstr ""
17783
17784 #. type: verbatim
17785 #: ../fish/guestfish.pod:15
17786 #, no-wrap
17787 msgid ""
17788 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17789 "\n"
17790 msgstr ""
17791
17792 #. type: verbatim
17793 #: ../fish/guestfish.pod:17
17794 #, no-wrap
17795 msgid ""
17796 " guestfish -d libvirt-domain\n"
17797 "\n"
17798 msgstr ""
17799
17800 #. type: verbatim
17801 #: ../fish/guestfish.pod:19
17802 #, no-wrap
17803 msgid ""
17804 " guestfish [--ro|--rw] -a disk.img -i\n"
17805 "\n"
17806 msgstr ""
17807
17808 #. type: verbatim
17809 #: ../fish/guestfish.pod:21
17810 #, no-wrap
17811 msgid ""
17812 " guestfish -d libvirt-domain -i\n"
17813 "\n"
17814 msgstr ""
17815
17816 #. type: textblock
17817 #: ../fish/guestfish.pod:25
17818 msgid ""
17819 "Using guestfish in read/write mode on live virtual machines can be "
17820 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17821 "option to use guestfish safely if the disk image or virtual machine might be "
17822 "live."
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../fish/guestfish.pod:32
17827 msgid ""
17828 "Guestfish is a shell and command-line tool for examining and modifying "
17829 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17830 "functionality of the guestfs API, see L<guestfs(3)>."
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../fish/guestfish.pod:36
17835 msgid ""
17836 "Guestfish gives you structured access to the libguestfs API, from shell "
17837 "scripts or the command line or interactively.  If you want to rescue a "
17838 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17839 "command."
17840 msgstr ""
17841
17842 #. type: =head2
17843 #: ../fish/guestfish.pod:43
17844 msgid "As an interactive shell"
17845 msgstr ""
17846
17847 #. type: verbatim
17848 #: ../fish/guestfish.pod:45
17849 #, no-wrap
17850 msgid ""
17851 " $ guestfish\n"
17852 " \n"
17853 msgstr ""
17854
17855 #. type: verbatim
17856 #: ../fish/guestfish.pod:47
17857 #, no-wrap
17858 msgid ""
17859 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17860 " editing virtual machine filesystems.\n"
17861 " \n"
17862 msgstr ""
17863
17864 #. type: verbatim
17865 #: ../fish/guestfish.pod:50
17866 #, no-wrap
17867 msgid ""
17868 " Type: 'help' for a list of commands\n"
17869 "       'man' to read the manual\n"
17870 "       'quit' to quit the shell\n"
17871 " \n"
17872 msgstr ""
17873
17874 #. type: verbatim
17875 #: ../fish/guestfish.pod:54
17876 #, no-wrap
17877 msgid ""
17878 " ><fs> add-ro disk.img\n"
17879 " ><fs> run\n"
17880 " ><fs> list-filesystems\n"
17881 " /dev/sda1: ext4\n"
17882 " /dev/vg_guest/lv_root: ext4\n"
17883 " /dev/vg_guest/lv_swap: swap\n"
17884 " ><fs> mount /dev/vg_guest/lv_root /\n"
17885 " ><fs> cat /etc/fstab\n"
17886 " # /etc/fstab\n"
17887 " # Created by anaconda\n"
17888 " [...]\n"
17889 " ><fs> exit\n"
17890 "\n"
17891 msgstr ""
17892
17893 #. type: =head2
17894 #: ../fish/guestfish.pod:67
17895 msgid "From shell scripts"
17896 msgstr ""
17897
17898 #. type: textblock
17899 #: ../fish/guestfish.pod:69
17900 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17901 msgstr ""
17902
17903 #. type: verbatim
17904 #: ../fish/guestfish.pod:71
17905 #, no-wrap
17906 msgid ""
17907 " guestfish <<_EOF_\n"
17908 " add disk.img\n"
17909 " run\n"
17910 " mount /dev/vg_guest/lv_root /\n"
17911 " write /etc/motd \"Welcome, new users\"\n"
17912 " _EOF_\n"
17913 "\n"
17914 msgstr ""
17915
17916 #. type: textblock
17917 #: ../fish/guestfish.pod:78
17918 msgid "List the LVM logical volumes in a disk image:"
17919 msgstr ""
17920
17921 #. type: verbatim
17922 #: ../fish/guestfish.pod:80
17923 #, no-wrap
17924 msgid ""
17925 " guestfish -a disk.img --ro <<_EOF_\n"
17926 " run\n"
17927 " lvs\n"
17928 " _EOF_\n"
17929 "\n"
17930 msgstr ""
17931
17932 #. type: textblock
17933 #: ../fish/guestfish.pod:85
17934 msgid "List all the filesystems in a disk image:"
17935 msgstr ""
17936
17937 #. type: verbatim
17938 #: ../fish/guestfish.pod:87
17939 #, no-wrap
17940 msgid ""
17941 " guestfish -a disk.img --ro <<_EOF_\n"
17942 " run\n"
17943 " list-filesystems\n"
17944 " _EOF_\n"
17945 "\n"
17946 msgstr ""
17947
17948 #. type: =head2
17949 #: ../fish/guestfish.pod:92
17950 msgid "On one command line"
17951 msgstr ""
17952
17953 #. type: textblock
17954 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17955 msgid "Update C</etc/resolv.conf> in a guest:"
17956 msgstr ""
17957
17958 #. type: verbatim
17959 #: ../fish/guestfish.pod:96
17960 #, no-wrap
17961 msgid ""
17962 " guestfish \\\n"
17963 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17964 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17965 "\n"
17966 msgstr ""
17967
17968 #. type: textblock
17969 #: ../fish/guestfish.pod:100
17970 msgid "Edit C</boot/grub/grub.conf> interactively:"
17971 msgstr ""
17972
17973 #. type: verbatim
17974 #: ../fish/guestfish.pod:102
17975 #, no-wrap
17976 msgid ""
17977 " guestfish --rw --add disk.img \\\n"
17978 "   --mount /dev/vg_guest/lv_root \\\n"
17979 "   --mount /dev/sda1:/boot \\\n"
17980 "   edit /boot/grub/grub.conf\n"
17981 "\n"
17982 msgstr ""
17983
17984 #. type: =head2
17985 #: ../fish/guestfish.pod:107
17986 msgid "Mount disks automatically"
17987 msgstr ""
17988
17989 #. type: textblock
17990 #: ../fish/guestfish.pod:109
17991 msgid ""
17992 "Use the I<-i> option to automatically mount the disks from a virtual "
17993 "machine:"
17994 msgstr ""
17995
17996 #. type: verbatim
17997 #: ../fish/guestfish.pod:112
17998 #, no-wrap
17999 msgid ""
18000 " guestfish --ro -a disk.img -i cat /etc/group\n"
18001 "\n"
18002 msgstr ""
18003
18004 #. type: verbatim
18005 #: ../fish/guestfish.pod:114
18006 #, no-wrap
18007 msgid ""
18008 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18009 "\n"
18010 msgstr ""
18011
18012 #. type: textblock
18013 #: ../fish/guestfish.pod:116
18014 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18015 msgstr ""
18016
18017 #. type: verbatim
18018 #: ../fish/guestfish.pod:118
18019 #, no-wrap
18020 msgid ""
18021 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18022 "\n"
18023 msgstr ""
18024
18025 #. type: =head2
18026 #: ../fish/guestfish.pod:120
18027 msgid "As a script interpreter"
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../fish/guestfish.pod:122
18032 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18033 msgstr ""
18034
18035 #. type: verbatim
18036 #: ../fish/guestfish.pod:124
18037 #, no-wrap
18038 msgid ""
18039 " #!/usr/bin/guestfish -f\n"
18040 " sparse test1.img 100M\n"
18041 " run\n"
18042 " part-disk /dev/sda mbr\n"
18043 " mkfs ext2 /dev/sda1\n"
18044 "\n"
18045 msgstr ""
18046
18047 #. type: =head2
18048 #: ../fish/guestfish.pod:130
18049 msgid "Start with a prepared disk"
18050 msgstr ""
18051
18052 #. type: textblock
18053 #: ../fish/guestfish.pod:132
18054 msgid ""
18055 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18056 "single ext2-formatted partition:"
18057 msgstr ""
18058
18059 #. type: verbatim
18060 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18061 #, no-wrap
18062 msgid ""
18063 " guestfish -N fs\n"
18064 "\n"
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../fish/guestfish.pod:137
18069 msgid "To list what is available do:"
18070 msgstr ""
18071
18072 #. type: verbatim
18073 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18074 #, no-wrap
18075 msgid ""
18076 " guestfish -N help | less\n"
18077 "\n"
18078 msgstr ""
18079
18080 #. type: =head2
18081 #: ../fish/guestfish.pod:141
18082 msgid "Remote control"
18083 msgstr ""
18084
18085 #. type: verbatim
18086 #: ../fish/guestfish.pod:143
18087 #, no-wrap
18088 msgid ""
18089 " eval \"`guestfish --listen`\"\n"
18090 " guestfish --remote add-ro disk.img\n"
18091 " guestfish --remote run\n"
18092 " guestfish --remote lvs\n"
18093 "\n"
18094 msgstr ""
18095
18096 #. type: textblock
18097 #: ../fish/guestfish.pod:154
18098 msgid "Displays general help on options."
18099 msgstr ""
18100
18101 #. type: =item
18102 #: ../fish/guestfish.pod:158
18103 msgid "B<--cmd-help>"
18104 msgstr ""
18105
18106 #. type: textblock
18107 #: ../fish/guestfish.pod:160
18108 msgid "Lists all available guestfish commands."
18109 msgstr ""
18110
18111 #. type: =item
18112 #: ../fish/guestfish.pod:162
18113 msgid "B<-h cmd>"
18114 msgstr ""
18115
18116 #. type: =item
18117 #: ../fish/guestfish.pod:164
18118 msgid "B<--cmd-help cmd>"
18119 msgstr ""
18120
18121 #. type: textblock
18122 #: ../fish/guestfish.pod:166
18123 msgid "Displays detailed help on a single command C<cmd>."
18124 msgstr ""
18125
18126 #. type: =item
18127 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18128 msgid "B<-a image>"
18129 msgstr ""
18130
18131 #. type: =item
18132 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18133 msgid "B<--add image>"
18134 msgstr ""
18135
18136 #. type: textblock
18137 #: ../fish/guestfish.pod:172
18138 msgid "Add a block device or virtual machine image to the shell."
18139 msgstr ""
18140
18141 #. type: textblock
18142 #: ../fish/guestfish.pod:177
18143 msgid ""
18144 "Using this flag is mostly equivalent to using the C<add> command, with "
18145 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18146 "the I<--format=...> flag was given."
18147 msgstr ""
18148
18149 #. type: textblock
18150 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18151 msgid ""
18152 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18153 "URI to use.  The default is to use the default libvirt connection."
18154 msgstr ""
18155
18156 #. type: =item
18157 #: ../fish/guestfish.pod:189
18158 msgid "B<--csh>"
18159 msgstr ""
18160
18161 #. type: textblock
18162 #: ../fish/guestfish.pod:191
18163 msgid ""
18164 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18165 "section L</REMOTE CONTROL AND CSH> below."
18166 msgstr ""
18167
18168 #. type: =item
18169 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18170 msgid "B<-d libvirt-domain>"
18171 msgstr ""
18172
18173 #. type: =item
18174 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18175 msgid "B<--domain libvirt-domain>"
18176 msgstr ""
18177
18178 #. type: textblock
18179 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18180 msgid ""
18181 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18182 "used, then any libvirt domain can be used.  However in write mode, only "
18183 "libvirt domains which are shut down can be named here."
18184 msgstr ""
18185
18186 #. type: textblock
18187 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18188 msgid "Domain UUIDs can be used instead of names."
18189 msgstr ""
18190
18191 #. type: textblock
18192 #: ../fish/guestfish.pod:204
18193 msgid ""
18194 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18195 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18196 "if the I<--format:...> flag was given."
18197 msgstr ""
18198
18199 #. type: =item
18200 #: ../fish/guestfish.pod:208
18201 msgid "B<-D>"
18202 msgstr ""
18203
18204 #. type: =item
18205 #: ../fish/guestfish.pod:210
18206 msgid "B<--no-dest-paths>"
18207 msgstr ""
18208
18209 #. type: textblock
18210 #: ../fish/guestfish.pod:212
18211 msgid ""
18212 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18213 "to hit the tab key to complete paths on the guest filesystem, but this "
18214 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18215 "allow this feature to be disabled."
18216 msgstr ""
18217
18218 #. type: textblock
18219 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18220 msgid ""
18221 "When prompting for keys and passphrases, guestfish normally turns echoing "
18222 "off so you cannot see what you are typing.  If you are not worried about "
18223 "Tempest attacks and there is no one else in the room you can specify this "
18224 "flag to see what you are typing."
18225 msgstr ""
18226
18227 #. type: =item
18228 #: ../fish/guestfish.pod:224
18229 msgid "B<-f file>"
18230 msgstr ""
18231
18232 #. type: =item
18233 #: ../fish/guestfish.pod:226
18234 msgid "B<--file file>"
18235 msgstr ""
18236
18237 #. type: textblock
18238 #: ../fish/guestfish.pod:228
18239 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18240 msgstr ""
18241
18242 #. type: verbatim
18243 #: ../fish/guestfish.pod:231
18244 #, no-wrap
18245 msgid ""
18246 " #!/usr/bin/guestfish -f\n"
18247 "\n"
18248 msgstr ""
18249
18250 #. type: verbatim
18251 #: ../fish/guestfish.pod:244
18252 #, no-wrap
18253 msgid ""
18254 " guestfish --format=raw -a disk.img\n"
18255 "\n"
18256 msgstr ""
18257
18258 #. type: verbatim
18259 #: ../fish/guestfish.pod:248
18260 #, no-wrap
18261 msgid ""
18262 " guestfish --format=raw -a disk.img --format -a another.img\n"
18263 "\n"
18264 msgstr ""
18265
18266 #. type: textblock
18267 #: ../fish/guestfish.pod:253
18268 msgid ""
18269 "If you have untrusted raw-format guest disk images, you should use this "
18270 "option to specify the disk format.  This avoids a possible security problem "
18271 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18272 msgstr ""
18273
18274 #. type: =item
18275 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18276 msgid "B<--inspector>"
18277 msgstr ""
18278
18279 #. type: textblock
18280 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18281 msgid ""
18282 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18283 "system and mount filesystems as they would be mounted on the real virtual "
18284 "machine."
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/guestfish.pod:266
18289 msgid "Typical usage is either:"
18290 msgstr ""
18291
18292 #. type: verbatim
18293 #: ../fish/guestfish.pod:268
18294 #, no-wrap
18295 msgid ""
18296 " guestfish -d myguest -i\n"
18297 "\n"
18298 msgstr ""
18299
18300 #. type: textblock
18301 #: ../fish/guestfish.pod:270
18302 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18303 msgstr ""
18304
18305 #. type: verbatim
18306 #: ../fish/guestfish.pod:272
18307 #, no-wrap
18308 msgid ""
18309 " guestfish --ro -d myguest -i\n"
18310 "\n"
18311 msgstr ""
18312
18313 #. type: textblock
18314 #: ../fish/guestfish.pod:274
18315 msgid "(for active domains, readonly), or specify the block device directly:"
18316 msgstr ""
18317
18318 #. type: verbatim
18319 #: ../fish/guestfish.pod:276
18320 #, no-wrap
18321 msgid ""
18322 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18323 "\n"
18324 msgstr ""
18325
18326 #. type: textblock
18327 #: ../fish/guestfish.pod:278
18328 msgid ""
18329 "Note that the command line syntax changed slightly over older versions of "
18330 "guestfish.  You can still use the old syntax:"
18331 msgstr ""
18332
18333 #. type: verbatim
18334 #: ../fish/guestfish.pod:281
18335 #, no-wrap
18336 msgid ""
18337 " guestfish [--ro] -i disk.img\n"
18338 "\n"
18339 msgstr ""
18340
18341 #. type: verbatim
18342 #: ../fish/guestfish.pod:283
18343 #, no-wrap
18344 msgid ""
18345 " guestfish [--ro] -i libvirt-domain\n"
18346 "\n"
18347 msgstr ""
18348
18349 #. type: textblock
18350 #: ../fish/guestfish.pod:285
18351 msgid ""
18352 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18353 "then using other commands to mount the filesystems that were found."
18354 msgstr ""
18355
18356 #. type: =item
18357 #: ../fish/guestfish.pod:294
18358 msgid "B<--listen>"
18359 msgstr ""
18360
18361 #. type: textblock
18362 #: ../fish/guestfish.pod:296
18363 msgid ""
18364 "Fork into the background and listen for remote commands.  See section "
18365 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18366 msgstr ""
18367
18368 #. type: =item
18369 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18370 msgid "B<--live>"
18371 msgstr ""
18372
18373 #. type: textblock
18374 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18375 msgid ""
18376 "Connect to a live virtual machine.  (Experimental, see "
18377 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
18378 msgstr ""
18379
18380 #. type: =item
18381 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18382 msgid "B<-m dev[:mountpoint[:options]]>"
18383 msgstr ""
18384
18385 #. type: =item
18386 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18387 msgid "B<--mount dev[:mountpoint[:options]]>"
18388 msgstr ""
18389
18390 #. type: textblock
18391 #: ../fish/guestfish.pod:308
18392 msgid "Mount the named partition or logical volume on the given mountpoint."
18393 msgstr ""
18394
18395 #. type: textblock
18396 #: ../fish/guestfish.pod:310
18397 msgid "If the mountpoint is omitted, it defaults to C</>."
18398 msgstr ""
18399
18400 #. type: textblock
18401 #: ../fish/guestfish.pod:312
18402 msgid "You have to mount something on C</> before most commands will work."
18403 msgstr ""
18404
18405 #. type: textblock
18406 #: ../fish/guestfish.pod:314
18407 msgid ""
18408 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18409 "launched."
18410 msgstr ""
18411
18412 #. type: textblock
18413 #: ../fish/guestfish.pod:317
18414 msgid ""
18415 "If you don't know what filesystems a disk image contains, you can either run "
18416 "guestfish without this option, then list the partitions, filesystems and LVs "
18417 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18418 "commands), or you can use the L<virt-filesystems(1)> program."
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18423 msgid ""
18424 "The third (and rarely used) part of the mount parameter is the list of mount "
18425 "options used to mount the underlying filesystem.  If this is not given, then "
18426 "the mount options are either the empty string or C<ro> (the latter if the "
18427 "I<--ro> flag is used).  By specifying the mount options, you override this "
18428 "default choice.  Probably the only time you would use this is to enable ACLs "
18429 "and/or extended attributes if the filesystem can support them:"
18430 msgstr ""
18431
18432 #. type: verbatim
18433 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18434 #, no-wrap
18435 msgid ""
18436 " -m /dev/sda1:/:acl,user_xattr\n"
18437 "\n"
18438 msgstr ""
18439
18440 #. type: textblock
18441 #: ../fish/guestfish.pod:333
18442 msgid "Using this flag is equivalent to using the C<mount-options> command."
18443 msgstr ""
18444
18445 #. type: =item
18446 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:435
18447 msgid "B<-n>"
18448 msgstr ""
18449
18450 #. type: =item
18451 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18452 msgid "B<--no-sync>"
18453 msgstr ""
18454
18455 #. type: textblock
18456 #: ../fish/guestfish.pod:339
18457 msgid ""
18458 "Disable autosync.  This is enabled by default.  See the discussion of "
18459 "autosync in the L<guestfs(3)> manpage."
18460 msgstr ""
18461
18462 #. type: =item
18463 #: ../fish/guestfish.pod:342
18464 msgid "B<-N type>"
18465 msgstr ""
18466
18467 #. type: =item
18468 #: ../fish/guestfish.pod:344
18469 msgid "B<--new type>"
18470 msgstr ""
18471
18472 #. type: =item
18473 #: ../fish/guestfish.pod:346
18474 msgid "B<-N help>"
18475 msgstr ""
18476
18477 #. type: textblock
18478 #: ../fish/guestfish.pod:348
18479 msgid ""
18480 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18481 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18482 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18483 "IMAGES> below."
18484 msgstr ""
18485
18486 #. type: =item
18487 #: ../fish/guestfish.pod:353
18488 msgid "B<--progress-bars>"
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish.pod:355
18493 msgid "Enable progress bars, even when guestfish is used non-interactively."
18494 msgstr ""
18495
18496 #. type: textblock
18497 #: ../fish/guestfish.pod:357
18498 msgid ""
18499 "Progress bars are enabled by default when guestfish is used as an "
18500 "interactive shell."
18501 msgstr ""
18502
18503 #. type: =item
18504 #: ../fish/guestfish.pod:360
18505 msgid "B<--no-progress-bars>"
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../fish/guestfish.pod:362
18510 msgid "Disable progress bars."
18511 msgstr ""
18512
18513 #. type: =item
18514 #: ../fish/guestfish.pod:364
18515 msgid "B<--remote[=pid]>"
18516 msgstr ""
18517
18518 #. type: textblock
18519 #: ../fish/guestfish.pod:366
18520 msgid ""
18521 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18522 "CONTROL GUESTFISH OVER A SOCKET> below."
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:189
18527 msgid "B<-r>"
18528 msgstr ""
18529
18530 #. type: =item
18531 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:191
18532 msgid "B<--ro>"
18533 msgstr ""
18534
18535 #. type: textblock
18536 #: ../fish/guestfish.pod:373
18537 msgid ""
18538 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18539 "mounts are done read-only."
18540 msgstr ""
18541
18542 #. type: textblock
18543 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
18544 msgid ""
18545 "The option must always be used if the disk image or virtual machine might be "
18546 "running, and is generally recommended in cases where you don't need write "
18547 "access to the disk."
18548 msgstr ""
18549
18550 #. type: textblock
18551 #: ../fish/guestfish.pod:380
18552 msgid ""
18553 "Note that prepared disk images created with I<-N> are not affected by this "
18554 "option.  Also commands like C<add> are not affected - you have to specify "
18555 "the C<readonly:true> option explicitly if you need it."
18556 msgstr ""
18557
18558 #. type: textblock
18559 #: ../fish/guestfish.pod:384
18560 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18561 msgstr ""
18562
18563 #. type: =item
18564 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:201
18565 msgid "B<--selinux>"
18566 msgstr ""
18567
18568 #. type: textblock
18569 #: ../fish/guestfish.pod:388
18570 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18571 msgstr ""
18572
18573 #. type: textblock
18574 #: ../fish/guestfish.pod:394
18575 msgid ""
18576 "Enable very verbose messages.  This is particularly useful if you find a "
18577 "bug."
18578 msgstr ""
18579
18580 #. type: textblock
18581 #: ../fish/guestfish.pod:401
18582 msgid "Display the guestfish / libguestfs version number and exit."
18583 msgstr ""
18584
18585 #. type: =item
18586 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:231
18587 msgid "B<-w>"
18588 msgstr ""
18589
18590 #. type: =item
18591 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:233
18592 msgid "B<--rw>"
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18597 msgid ""
18598 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18599 "mounts are done read-write."
18600 msgstr ""
18601
18602 #. type: textblock
18603 #: ../fish/guestfish.pod:410
18604 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18605 msgstr ""
18606
18607 #. type: textblock
18608 #: ../fish/guestfish.pod:414
18609 msgid "Echo each command before executing it."
18610 msgstr ""
18611
18612 #. type: =head1
18613 #: ../fish/guestfish.pod:418
18614 msgid "COMMANDS ON COMMAND LINE"
18615 msgstr ""
18616
18617 #. type: textblock
18618 #: ../fish/guestfish.pod:420
18619 msgid "Any additional (non-option) arguments are treated as commands to execute."
18620 msgstr ""
18621
18622 #. type: textblock
18623 #: ../fish/guestfish.pod:423
18624 msgid ""
18625 "Commands to execute should be separated by a colon (C<:>), where the colon "
18626 "is a separate parameter.  Thus:"
18627 msgstr ""
18628
18629 #. type: verbatim
18630 #: ../fish/guestfish.pod:426
18631 #, no-wrap
18632 msgid ""
18633 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18634 "\n"
18635 msgstr ""
18636
18637 #. type: textblock
18638 #: ../fish/guestfish.pod:428
18639 msgid ""
18640 "If there are no additional arguments, then we enter a shell, either an "
18641 "interactive shell with a prompt (if the input is a terminal) or a "
18642 "non-interactive shell."
18643 msgstr ""
18644
18645 #. type: textblock
18646 #: ../fish/guestfish.pod:432
18647 msgid ""
18648 "In either command line mode or non-interactive shell, the first command that "
18649 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18650 "prompt) if a command fails, you can continue to enter commands."
18651 msgstr ""
18652
18653 #. type: =head1
18654 #: ../fish/guestfish.pod:437
18655 msgid "USING launch (OR run)"
18656 msgstr ""
18657
18658 #. type: textblock
18659 #: ../fish/guestfish.pod:439
18660 msgid ""
18661 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18662 "then launch it, then mount any disks you need, and finally issue "
18663 "actions/commands.  So the general order of the day is:"
18664 msgstr ""
18665
18666 #. type: textblock
18667 #: ../fish/guestfish.pod:447
18668 msgid "add or -a/--add"
18669 msgstr ""
18670
18671 #. type: textblock
18672 #: ../fish/guestfish.pod:451
18673 msgid "launch (aka run)"
18674 msgstr ""
18675
18676 #. type: textblock
18677 #: ../fish/guestfish.pod:455
18678 msgid "mount or -m/--mount"
18679 msgstr ""
18680
18681 #. type: textblock
18682 #: ../fish/guestfish.pod:459
18683 msgid "any other commands"
18684 msgstr ""
18685
18686 #. type: textblock
18687 #: ../fish/guestfish.pod:463
18688 msgid ""
18689 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18690 "guest before mounting or performing any other commands."
18691 msgstr ""
18692
18693 #. type: textblock
18694 #: ../fish/guestfish.pod:466
18695 msgid ""
18696 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18697 "I<--new> options were given then C<run> is done automatically, simply "
18698 "because guestfish can't perform the action you asked for without doing this."
18699 msgstr ""
18700
18701 #. type: =head1
18702 #: ../fish/guestfish.pod:471
18703 msgid "OPENING DISKS FOR READ AND WRITE"
18704 msgstr ""
18705
18706 #. type: textblock
18707 #: ../fish/guestfish.pod:473
18708 msgid ""
18709 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18710 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18711 "I<-i> and I<-m> open disk images read-only or for writing."
18712 msgstr ""
18713
18714 #. type: textblock
18715 #: ../fish/guestfish.pod:478
18716 msgid ""
18717 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18718 "opening disk images supplied on the command line for write.  To open a disk "
18719 "image read-only you have to do I<-a image --ro>."
18720 msgstr ""
18721
18722 #. type: textblock
18723 #: ../fish/guestfish.pod:482
18724 msgid ""
18725 "This matters: If you accidentally open a live VM disk image writable then "
18726 "you will cause irreversible disk corruption."
18727 msgstr ""
18728
18729 #. type: textblock
18730 #: ../fish/guestfish.pod:485
18731 msgid ""
18732 "In a future libguestfs we intend to change the default the other way.  Disk "
18733 "images will be opened read-only.  You will have to either specify "
18734 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18735 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18736 "access for disk images specified by those other command line options."
18737 msgstr ""
18738
18739 #. type: textblock
18740 #: ../fish/guestfish.pod:492
18741 msgid ""
18742 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18743 "which does nothing (it is already the default).  However it is highly "
18744 "recommended that you use this option to indicate that you need write access, "
18745 "and prepare your scripts for the day when this option will be required for "
18746 "write access."
18747 msgstr ""
18748
18749 #. type: textblock
18750 #: ../fish/guestfish.pod:498
18751 msgid ""
18752 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18753 "other libguestfs program apart from guestfish and guestmount."
18754 msgstr ""
18755
18756 #. type: =head1
18757 #: ../fish/guestfish.pod:501
18758 msgid "QUOTING"
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fish/guestfish.pod:503
18763 msgid ""
18764 "You can quote ordinary parameters using either single or double quotes.  For "
18765 "example:"
18766 msgstr ""
18767
18768 #. type: verbatim
18769 #: ../fish/guestfish.pod:506
18770 #, no-wrap
18771 msgid ""
18772 " add \"file with a space.img\"\n"
18773 "\n"
18774 msgstr ""
18775
18776 #. type: verbatim
18777 #: ../fish/guestfish.pod:508
18778 #, no-wrap
18779 msgid ""
18780 " rm '/file name'\n"
18781 "\n"
18782 msgstr ""
18783
18784 #. type: verbatim
18785 #: ../fish/guestfish.pod:510
18786 #, no-wrap
18787 msgid ""
18788 " rm '/\"'\n"
18789 "\n"
18790 msgstr ""
18791
18792 #. type: textblock
18793 #: ../fish/guestfish.pod:512
18794 msgid ""
18795 "A few commands require a list of strings to be passed.  For these, use a "
18796 "whitespace-separated list, enclosed in quotes.  Strings containing "
18797 "whitespace to be passed through must be enclosed in single quotes.  A "
18798 "literal single quote must be escaped with a backslash."
18799 msgstr ""
18800
18801 #. type: verbatim
18802 #: ../fish/guestfish.pod:517
18803 #, no-wrap
18804 msgid ""
18805 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18806 " command \"/bin/echo 'foo      bar'\"\n"
18807 " command \"/bin/echo \\'foo\\'\"\n"
18808 "\n"
18809 msgstr ""
18810
18811 #. type: =head2
18812 #: ../fish/guestfish.pod:521
18813 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18814 msgstr ""
18815
18816 #. type: textblock
18817 #: ../fish/guestfish.pod:523
18818 msgid ""
18819 "In double-quoted arguments (only) use backslash to insert special "
18820 "characters:"
18821 msgstr ""
18822
18823 #. type: =item
18824 #: ../fish/guestfish.pod:528
18825 msgid "C<\\a>"
18826 msgstr ""
18827
18828 #. type: textblock
18829 #: ../fish/guestfish.pod:530
18830 msgid "Alert (bell) character."
18831 msgstr ""
18832
18833 #. type: =item
18834 #: ../fish/guestfish.pod:532
18835 msgid "C<\\b>"
18836 msgstr ""
18837
18838 #. type: textblock
18839 #: ../fish/guestfish.pod:534
18840 msgid "Backspace character."
18841 msgstr ""
18842
18843 #. type: =item
18844 #: ../fish/guestfish.pod:536
18845 msgid "C<\\f>"
18846 msgstr ""
18847
18848 #. type: textblock
18849 #: ../fish/guestfish.pod:538
18850 msgid "Form feed character."
18851 msgstr ""
18852
18853 #. type: =item
18854 #: ../fish/guestfish.pod:540
18855 msgid "C<\\n>"
18856 msgstr ""
18857
18858 #. type: textblock
18859 #: ../fish/guestfish.pod:542
18860 msgid "Newline character."
18861 msgstr ""
18862
18863 #. type: =item
18864 #: ../fish/guestfish.pod:544
18865 msgid "C<\\r>"
18866 msgstr ""
18867
18868 #. type: textblock
18869 #: ../fish/guestfish.pod:546
18870 msgid "Carriage return character."
18871 msgstr ""
18872
18873 #. type: =item
18874 #: ../fish/guestfish.pod:548
18875 msgid "C<\\t>"
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../fish/guestfish.pod:550
18880 msgid "Horizontal tab character."
18881 msgstr ""
18882
18883 #. type: =item
18884 #: ../fish/guestfish.pod:552
18885 msgid "C<\\v>"
18886 msgstr ""
18887
18888 #. type: textblock
18889 #: ../fish/guestfish.pod:554
18890 msgid "Vertical tab character."
18891 msgstr ""
18892
18893 #. type: =item
18894 #: ../fish/guestfish.pod:556
18895 msgid "C<\\\">"
18896 msgstr ""
18897
18898 #. type: textblock
18899 #: ../fish/guestfish.pod:558
18900 msgid "A literal double quote character."
18901 msgstr ""
18902
18903 #. type: =item
18904 #: ../fish/guestfish.pod:560
18905 msgid "C<\\ooo>"
18906 msgstr ""
18907
18908 #. type: textblock
18909 #: ../fish/guestfish.pod:562
18910 msgid ""
18911 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18912 "(unlike C)."
18913 msgstr ""
18914
18915 #. type: =item
18916 #: ../fish/guestfish.pod:565
18917 msgid "C<\\xhh>"
18918 msgstr ""
18919
18920 #. type: textblock
18921 #: ../fish/guestfish.pod:567
18922 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18923 msgstr ""
18924
18925 #. type: textblock
18926 #: ../fish/guestfish.pod:570
18927 msgid ""
18928 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18929 "strings."
18930 msgstr ""
18931
18932 #. type: =item
18933 #: ../fish/guestfish.pod:573
18934 msgid "C<\\\\>"
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/guestfish.pod:575
18939 msgid "A literal backslash character."
18940 msgstr ""
18941
18942 #. type: =head1
18943 #: ../fish/guestfish.pod:579
18944 msgid "OPTIONAL ARGUMENTS"
18945 msgstr ""
18946
18947 #. type: textblock
18948 #: ../fish/guestfish.pod:581
18949 msgid ""
18950 "Some commands take optional arguments.  These arguments appear in this "
18951 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18952 msgstr ""
18953
18954 #. type: verbatim
18955 #: ../fish/guestfish.pod:585
18956 #, no-wrap
18957 msgid ""
18958 " add-drive-opts filename\n"
18959 "\n"
18960 msgstr ""
18961
18962 #. type: verbatim
18963 #: ../fish/guestfish.pod:587
18964 #, no-wrap
18965 msgid ""
18966 " add-drive-opts filename readonly:true\n"
18967 "\n"
18968 msgstr ""
18969
18970 #. type: verbatim
18971 #: ../fish/guestfish.pod:589
18972 #, no-wrap
18973 msgid ""
18974 " add-drive-opts filename format:qcow2 readonly:false\n"
18975 "\n"
18976 msgstr ""
18977
18978 #. type: textblock
18979 #: ../fish/guestfish.pod:591
18980 msgid ""
18981 "Each optional argument can appear at most once.  All optional arguments must "
18982 "appear after the required ones."
18983 msgstr ""
18984
18985 #. type: =head1
18986 #: ../fish/guestfish.pod:594
18987 msgid "NUMBERS"
18988 msgstr ""
18989
18990 #. type: textblock
18991 #: ../fish/guestfish.pod:596
18992 msgid "This section applies to all commands which can take integers as parameters."
18993 msgstr ""
18994
18995 #. type: =head2
18996 #: ../fish/guestfish.pod:599
18997 msgid "SIZE SUFFIX"
18998 msgstr ""
18999
19000 #. type: textblock
19001 #: ../fish/guestfish.pod:601
19002 msgid ""
19003 "When the command takes a parameter measured in bytes, you can use one of the "
19004 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19005 msgstr ""
19006
19007 #. type: =item
19008 #: ../fish/guestfish.pod:607
19009 msgid "B<k> or B<K> or B<KiB>"
19010 msgstr ""
19011
19012 #. type: textblock
19013 #: ../fish/guestfish.pod:609
19014 msgid "The size in kilobytes (multiplied by 1024)."
19015 msgstr ""
19016
19017 #. type: =item
19018 #: ../fish/guestfish.pod:611
19019 msgid "B<KB>"
19020 msgstr ""
19021
19022 #. type: textblock
19023 #: ../fish/guestfish.pod:613
19024 msgid "The size in SI 1000 byte units."
19025 msgstr ""
19026
19027 #. type: =item
19028 #: ../fish/guestfish.pod:615
19029 msgid "B<M> or B<MiB>"
19030 msgstr ""
19031
19032 #. type: textblock
19033 #: ../fish/guestfish.pod:617
19034 msgid "The size in megabytes (multiplied by 1048576)."
19035 msgstr ""
19036
19037 #. type: =item
19038 #: ../fish/guestfish.pod:619
19039 msgid "B<MB>"
19040 msgstr ""
19041
19042 #. type: textblock
19043 #: ../fish/guestfish.pod:621
19044 msgid "The size in SI 1000000 byte units."
19045 msgstr ""
19046
19047 #. type: =item
19048 #: ../fish/guestfish.pod:623
19049 msgid "B<G> or B<GiB>"
19050 msgstr ""
19051
19052 #. type: textblock
19053 #: ../fish/guestfish.pod:625
19054 msgid "The size in gigabytes (multiplied by 2**30)."
19055 msgstr ""
19056
19057 #. type: =item
19058 #: ../fish/guestfish.pod:627
19059 msgid "B<GB>"
19060 msgstr ""
19061
19062 #. type: textblock
19063 #: ../fish/guestfish.pod:629
19064 msgid "The size in SI 10**9 byte units."
19065 msgstr ""
19066
19067 #. type: =item
19068 #: ../fish/guestfish.pod:631
19069 msgid "B<T> or B<TiB>"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/guestfish.pod:633
19074 msgid "The size in terabytes (multiplied by 2**40)."
19075 msgstr ""
19076
19077 #. type: =item
19078 #: ../fish/guestfish.pod:635
19079 msgid "B<TB>"
19080 msgstr ""
19081
19082 #. type: textblock
19083 #: ../fish/guestfish.pod:637
19084 msgid "The size in SI 10**12 byte units."
19085 msgstr ""
19086
19087 #. type: =item
19088 #: ../fish/guestfish.pod:639
19089 msgid "B<P> or B<PiB>"
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/guestfish.pod:641
19094 msgid "The size in petabytes (multiplied by 2**50)."
19095 msgstr ""
19096
19097 #. type: =item
19098 #: ../fish/guestfish.pod:643
19099 msgid "B<PB>"
19100 msgstr ""
19101
19102 #. type: textblock
19103 #: ../fish/guestfish.pod:645
19104 msgid "The size in SI 10**15 byte units."
19105 msgstr ""
19106
19107 #. type: =item
19108 #: ../fish/guestfish.pod:647
19109 msgid "B<E> or B<EiB>"
19110 msgstr ""
19111
19112 #. type: textblock
19113 #: ../fish/guestfish.pod:649
19114 msgid "The size in exabytes (multiplied by 2**60)."
19115 msgstr ""
19116
19117 #. type: =item
19118 #: ../fish/guestfish.pod:651
19119 msgid "B<EB>"
19120 msgstr ""
19121
19122 #. type: textblock
19123 #: ../fish/guestfish.pod:653
19124 msgid "The size in SI 10**18 byte units."
19125 msgstr ""
19126
19127 #. type: =item
19128 #: ../fish/guestfish.pod:655
19129 msgid "B<Z> or B<ZiB>"
19130 msgstr ""
19131
19132 #. type: textblock
19133 #: ../fish/guestfish.pod:657
19134 msgid "The size in zettabytes (multiplied by 2**70)."
19135 msgstr ""
19136
19137 #. type: =item
19138 #: ../fish/guestfish.pod:659
19139 msgid "B<ZB>"
19140 msgstr ""
19141
19142 #. type: textblock
19143 #: ../fish/guestfish.pod:661
19144 msgid "The size in SI 10**21 byte units."
19145 msgstr ""
19146
19147 #. type: =item
19148 #: ../fish/guestfish.pod:663
19149 msgid "B<Y> or B<YiB>"
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../fish/guestfish.pod:665
19154 msgid "The size in yottabytes (multiplied by 2**80)."
19155 msgstr ""
19156
19157 #. type: =item
19158 #: ../fish/guestfish.pod:667
19159 msgid "B<YB>"
19160 msgstr ""
19161
19162 #. type: textblock
19163 #: ../fish/guestfish.pod:669
19164 msgid "The size in SI 10**24 byte units."
19165 msgstr ""
19166
19167 #. type: verbatim
19168 #: ../fish/guestfish.pod:675
19169 #, no-wrap
19170 msgid ""
19171 " truncate-size /file 1G\n"
19172 "\n"
19173 msgstr ""
19174
19175 #. type: textblock
19176 #: ../fish/guestfish.pod:677
19177 msgid "would truncate the file to 1 gigabyte."
19178 msgstr ""
19179
19180 #. type: textblock
19181 #: ../fish/guestfish.pod:679
19182 msgid ""
19183 "Be careful because a few commands take sizes in kilobytes or megabytes "
19184 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
19185 "Adding a suffix will probably not do what you expect."
19186 msgstr ""
19187
19188 #. type: =head2
19189 #: ../fish/guestfish.pod:683
19190 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19191 msgstr ""
19192
19193 #. type: textblock
19194 #: ../fish/guestfish.pod:685
19195 msgid ""
19196 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19197 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19198 msgstr ""
19199
19200 #. type: verbatim
19201 #: ../fish/guestfish.pod:688
19202 #, no-wrap
19203 msgid ""
19204 " 1234      decimal number 1234\n"
19205 " 02322     octal number, equivalent to decimal 1234\n"
19206 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19207 "\n"
19208 msgstr ""
19209
19210 #. type: textblock
19211 #: ../fish/guestfish.pod:692
19212 msgid ""
19213 "When using the C<chmod> command, you almost always want to specify an octal "
19214 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19215 "L<chmod(1)> program):"
19216 msgstr ""
19217
19218 #. type: verbatim
19219 #: ../fish/guestfish.pod:696
19220 #, no-wrap
19221 msgid ""
19222 " chmod 0777 /public  # OK\n"
19223 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19224 "\n"
19225 msgstr ""
19226
19227 #. type: textblock
19228 #: ../fish/guestfish.pod:699
19229 msgid ""
19230 "Commands that return numbers usually print them in decimal, but some "
19231 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19232 "octal, preceeded by C<0>)."
19233 msgstr ""
19234
19235 #. type: =head1
19236 #: ../fish/guestfish.pod:703
19237 msgid "WILDCARDS AND GLOBBING"
19238 msgstr ""
19239
19240 #. type: textblock
19241 #: ../fish/guestfish.pod:705
19242 msgid ""
19243 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19244 "(globbing) by default.  So for example the following will not do what you "
19245 "expect:"
19246 msgstr ""
19247
19248 #. type: verbatim
19249 #: ../fish/guestfish.pod:709
19250 #, no-wrap
19251 msgid ""
19252 " rm-rf /home/*\n"
19253 "\n"
19254 msgstr ""
19255
19256 #. type: textblock
19257 #: ../fish/guestfish.pod:711
19258 msgid ""
19259 "Assuming you don't have a directory called literally C</home/*> then the "
19260 "above command will return an error."
19261 msgstr ""
19262
19263 #. type: textblock
19264 #: ../fish/guestfish.pod:714
19265 msgid "To perform wildcard expansion, use the C<glob> command."
19266 msgstr ""
19267
19268 #. type: verbatim
19269 #: ../fish/guestfish.pod:716
19270 #, no-wrap
19271 msgid ""
19272 " glob rm-rf /home/*\n"
19273 "\n"
19274 msgstr ""
19275
19276 #. type: textblock
19277 #: ../fish/guestfish.pod:718
19278 msgid ""
19279 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19280 "many times), equivalent to:"
19281 msgstr ""
19282
19283 #. type: verbatim
19284 #: ../fish/guestfish.pod:721
19285 #, no-wrap
19286 msgid ""
19287 " rm-rf /home/jim\n"
19288 " rm-rf /home/joe\n"
19289 " rm-rf /home/mary\n"
19290 "\n"
19291 msgstr ""
19292
19293 #. type: textblock
19294 #: ../fish/guestfish.pod:725
19295 msgid "C<glob> only works on simple guest paths and not on device names."
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fish/guestfish.pod:727
19300 msgid ""
19301 "If you have several parameters, each containing a wildcard, then glob will "
19302 "perform a Cartesian product."
19303 msgstr ""
19304
19305 #. type: =head1
19306 #: ../fish/guestfish.pod:730
19307 msgid "COMMENTS"
19308 msgstr ""
19309
19310 #. type: textblock
19311 #: ../fish/guestfish.pod:732
19312 msgid ""
19313 "Any line which starts with a I<#> character is treated as a comment and "
19314 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19315 "a command.  For example:"
19316 msgstr ""
19317
19318 #. type: verbatim
19319 #: ../fish/guestfish.pod:736
19320 #, no-wrap
19321 msgid ""
19322 " # this is a comment\n"
19323 "         # this is a comment\n"
19324 " foo # NOT a comment\n"
19325 "\n"
19326 msgstr ""
19327
19328 #. type: textblock
19329 #: ../fish/guestfish.pod:740
19330 msgid "Blank lines are also ignored."
19331 msgstr ""
19332
19333 #. type: =head1
19334 #: ../fish/guestfish.pod:742
19335 msgid "RUNNING COMMANDS LOCALLY"
19336 msgstr ""
19337
19338 #. type: textblock
19339 #: ../fish/guestfish.pod:744
19340 msgid ""
19341 "Any line which starts with a I<!> character is treated as a command sent to "
19342 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19343 msgstr ""
19344
19345 #. type: verbatim
19346 #: ../fish/guestfish.pod:748
19347 #, no-wrap
19348 msgid ""
19349 " !mkdir local\n"
19350 " tgz-out /remote local/remote-data.tar.gz\n"
19351 "\n"
19352 msgstr ""
19353
19354 #. type: textblock
19355 #: ../fish/guestfish.pod:751
19356 msgid ""
19357 "will create a directory C<local> on the host, and then export the contents "
19358 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19359 "(See C<tgz-out>)."
19360 msgstr ""
19361
19362 #. type: textblock
19363 #: ../fish/guestfish.pod:755
19364 msgid ""
19365 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19366 "effect, due to the way that subprocesses work in Unix."
19367 msgstr ""
19368
19369 #. type: =head2
19370 #: ../fish/guestfish.pod:758
19371 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19372 msgstr ""
19373
19374 #. type: textblock
19375 #: ../fish/guestfish.pod:760
19376 msgid ""
19377 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19378 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19379 "and executed as guestfish commands."
19380 msgstr ""
19381
19382 #. type: textblock
19383 #: ../fish/guestfish.pod:764
19384 msgid ""
19385 "Thus you can use shell script to construct arbitrary guestfish commands "
19386 "which are then parsed by guestfish."
19387 msgstr ""
19388
19389 #. type: textblock
19390 #: ../fish/guestfish.pod:767
19391 msgid ""
19392 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19393 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19394 "if we use a shell script to create the guestfish commands for us:"
19395 msgstr ""
19396
19397 #. type: verbatim
19398 #: ../fish/guestfish.pod:772
19399 #, no-wrap
19400 msgid ""
19401 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19402 "\n"
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../fish/guestfish.pod:774
19407 msgid "or with names like C</foo.001>:"
19408 msgstr ""
19409
19410 #. type: verbatim
19411 #: ../fish/guestfish.pod:776
19412 #, no-wrap
19413 msgid ""
19414 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19415 "\n"
19416 msgstr ""
19417
19418 #. type: textblock
19419 #: ../fish/guestfish.pod:778
19420 msgid ""
19421 "When using guestfish interactively it can be helpful to just run the shell "
19422 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19423 "ordinary I<!> local command), see what guestfish commands it would run, and "
19424 "when you are happy with those prepend the C<E<lt>> character to run the "
19425 "guestfish commands for real."
19426 msgstr ""
19427
19428 #. type: =head1
19429 #: ../fish/guestfish.pod:784
19430 msgid "PIPES"
19431 msgstr ""
19432
19433 #. type: textblock
19434 #: ../fish/guestfish.pod:786
19435 msgid ""
19436 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19437 "command (a guestfish command) to the second command (any host command).  For "
19438 "example:"
19439 msgstr ""
19440
19441 #. type: verbatim
19442 #: ../fish/guestfish.pod:790
19443 #, no-wrap
19444 msgid ""
19445 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19446 "\n"
19447 msgstr ""
19448
19449 #. type: textblock
19450 #: ../fish/guestfish.pod:792
19451 msgid ""
19452 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19453 "program).  The above command would list all accounts in the guest filesystem "
19454 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19455 msgstr ""
19456
19457 #. type: verbatim
19458 #: ../fish/guestfish.pod:797
19459 #, no-wrap
19460 msgid ""
19461 " hexdump /bin/ls | head\n"
19462 " list-devices | tail -1\n"
19463 " tgz-out / - | tar ztf -\n"
19464 "\n"
19465 msgstr ""
19466
19467 #. type: textblock
19468 #: ../fish/guestfish.pod:801
19469 msgid ""
19470 "The space before the pipe symbol is required, any space after the pipe "
19471 "symbol is optional.  Everything after the pipe symbol is just passed "
19472 "straight to the host shell, so it can contain redirections, globs and "
19473 "anything else that makes sense on the host side."
19474 msgstr ""
19475
19476 #. type: textblock
19477 #: ../fish/guestfish.pod:806
19478 msgid ""
19479 "To use a literal argument which begins with a pipe symbol, you have to quote "
19480 "it, eg:"
19481 msgstr ""
19482
19483 #. type: verbatim
19484 #: ../fish/guestfish.pod:809
19485 #, no-wrap
19486 msgid ""
19487 " echo \"|\"\n"
19488 "\n"
19489 msgstr ""
19490
19491 #. type: =head1
19492 #: ../fish/guestfish.pod:811
19493 msgid "HOME DIRECTORIES"
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../fish/guestfish.pod:813
19498 msgid ""
19499 "If a parameter starts with the character C<~> then the tilde may be expanded "
19500 "as a home directory path (either C<~> for the current user's home directory, "
19501 "or C<~user> for another user)."
19502 msgstr ""
19503
19504 #. type: textblock
19505 #: ../fish/guestfish.pod:817
19506 msgid ""
19507 "Note that home directory expansion happens for users known I<on the host>, "
19508 "not in the guest filesystem."
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../fish/guestfish.pod:820
19513 msgid ""
19514 "To use a literal argument which begins with a tilde, you have to quote it, "
19515 "eg:"
19516 msgstr ""
19517
19518 #. type: verbatim
19519 #: ../fish/guestfish.pod:823
19520 #, no-wrap
19521 msgid ""
19522 " echo \"~\"\n"
19523 "\n"
19524 msgstr ""
19525
19526 #. type: =head2
19527 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
19528 msgid "ENCRYPTED DISKS"
19529 msgstr ""
19530
19531 #. type: textblock
19532 #: ../fish/guestfish.pod:827
19533 msgid ""
19534 "Libguestfs has some support for Linux guests encrypted according to the "
19535 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19536 "disk encryption systems used by modern Linux guests.  Currently only "
19537 "LVM-on-LUKS is supported."
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/guestfish.pod:832
19542 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19543 msgstr ""
19544
19545 #. type: verbatim
19546 #: ../fish/guestfish.pod:834
19547 #, no-wrap
19548 msgid ""
19549 " ><fs> vfs-type /dev/sda2\n"
19550 " crypto_LUKS\n"
19551 "\n"
19552 msgstr ""
19553
19554 #. type: textblock
19555 #: ../fish/guestfish.pod:837
19556 msgid ""
19557 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19558 "device called C</dev/mapper/luksdev>."
19559 msgstr ""
19560
19561 #. type: verbatim
19562 #: ../fish/guestfish.pod:840
19563 #, no-wrap
19564 msgid ""
19565 " ><fs> luks-open /dev/sda2 luksdev\n"
19566 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19567 "\n"
19568 msgstr ""
19569
19570 #. type: textblock
19571 #: ../fish/guestfish.pod:843
19572 msgid ""
19573 "Finally you have to tell LVM to scan for volume groups on the newly created "
19574 "mapper device:"
19575 msgstr ""
19576
19577 #. type: verbatim
19578 #: ../fish/guestfish.pod:846
19579 #, no-wrap
19580 msgid ""
19581 " vgscan\n"
19582 " vg-activate-all true\n"
19583 "\n"
19584 msgstr ""
19585
19586 #. type: textblock
19587 #: ../fish/guestfish.pod:849
19588 msgid "The logical volume(s) can now be mounted in the usual way."
19589 msgstr ""
19590
19591 #. type: textblock
19592 #: ../fish/guestfish.pod:851
19593 msgid ""
19594 "Before closing a LUKS device you must unmount any logical volumes on it and "
19595 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19596 "one.  Then you can close the mapper device:"
19597 msgstr ""
19598
19599 #. type: verbatim
19600 #: ../fish/guestfish.pod:855
19601 #, no-wrap
19602 msgid ""
19603 " vg-activate false /dev/VG\n"
19604 " luks-close /dev/mapper/luksdev\n"
19605 "\n"
19606 msgstr ""
19607
19608 #. type: textblock
19609 #: ../fish/guestfish.pod:860
19610 msgid ""
19611 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19612 "letters and paths (with some limitations).  The following commands are "
19613 "equivalent:"
19614 msgstr ""
19615
19616 #. type: verbatim
19617 #: ../fish/guestfish.pod:864
19618 #, no-wrap
19619 msgid ""
19620 " file /WINDOWS/system32/config/system.LOG\n"
19621 "\n"
19622 msgstr ""
19623
19624 #. type: verbatim
19625 #: ../fish/guestfish.pod:866
19626 #, no-wrap
19627 msgid ""
19628 " file win:\\windows\\system32\\config\\system.log\n"
19629 "\n"
19630 msgstr ""
19631
19632 #. type: verbatim
19633 #: ../fish/guestfish.pod:868
19634 #, no-wrap
19635 msgid ""
19636 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19637 "\n"
19638 msgstr ""
19639
19640 #. type: textblock
19641 #: ../fish/guestfish.pod:870
19642 msgid ""
19643 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19644 "where the drive is mounted, prepending that to the path, changing all "
19645 "backslash characters to forward slash, then resolving the result using "
19646 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
19647 "then the parameter might be rewritten like this:"
19648 msgstr ""
19649
19650 #. type: verbatim
19651 #: ../fish/guestfish.pod:876
19652 #, no-wrap
19653 msgid ""
19654 " win:e:\\foo\\bar => /e/FOO/bar\n"
19655 "\n"
19656 msgstr ""
19657
19658 #. type: textblock
19659 #: ../fish/guestfish.pod:878
19660 msgid "This only works in argument positions that expect a path."
19661 msgstr ""
19662
19663 #. type: =head1
19664 #: ../fish/guestfish.pod:880
19665 msgid "UPLOADING AND DOWNLOADING FILES"
19666 msgstr ""
19667
19668 #. type: textblock
19669 #: ../fish/guestfish.pod:882
19670 msgid ""
19671 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19672 "others which upload from or download to a local file, you can use the "
19673 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19674 msgstr ""
19675
19676 #. type: verbatim
19677 #: ../fish/guestfish.pod:886
19678 #, no-wrap
19679 msgid ""
19680 " upload - /foo\n"
19681 "\n"
19682 msgstr ""
19683
19684 #. type: textblock
19685 #: ../fish/guestfish.pod:888
19686 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
19687 msgstr ""
19688
19689 #. type: verbatim
19690 #: ../fish/guestfish.pod:891
19691 #, no-wrap
19692 msgid ""
19693 " tar-out /etc - | tar tf -\n"
19694 "\n"
19695 msgstr ""
19696
19697 #. type: textblock
19698 #: ../fish/guestfish.pod:893
19699 msgid ""
19700 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19701 "command (see L</PIPES>)."
19702 msgstr ""
19703
19704 #. type: textblock
19705 #: ../fish/guestfish.pod:896
19706 msgid ""
19707 "When using C<-> to read from stdin, the input is read up to the end of "
19708 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19709 "some arbitrary end marker:"
19710 msgstr ""
19711
19712 #. type: verbatim
19713 #: ../fish/guestfish.pod:900
19714 #, no-wrap
19715 msgid ""
19716 " upload -<<END /foo\n"
19717 " input line 1\n"
19718 " input line 2\n"
19719 " input line 3\n"
19720 " END\n"
19721 "\n"
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../fish/guestfish.pod:906
19726 msgid ""
19727 "Any string of characters can be used instead of C<END>.  The end marker must "
19728 "appear on a line of its own, without any preceeding or following characters "
19729 "(not even spaces)."
19730 msgstr ""
19731
19732 #. type: textblock
19733 #: ../fish/guestfish.pod:910
19734 msgid ""
19735 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19736 "upload local files (so-called \"FileIn\" parameters in the generator)."
19737 msgstr ""
19738
19739 #. type: =head1
19740 #: ../fish/guestfish.pod:913
19741 msgid "EXIT ON ERROR BEHAVIOUR"
19742 msgstr ""
19743
19744 #. type: textblock
19745 #: ../fish/guestfish.pod:915
19746 msgid ""
19747 "By default, guestfish will ignore any errors when in interactive mode "
19748 "(ie. taking commands from a human over a tty), and will exit on the first "
19749 "error in non-interactive mode (scripts, commands given on the command line)."
19750 msgstr ""
19751
19752 #. type: textblock
19753 #: ../fish/guestfish.pod:920
19754 msgid ""
19755 "If you prefix a command with a I<-> character, then that command will not "
19756 "cause guestfish to exit, even if that (one) command returns an error."
19757 msgstr ""
19758
19759 #. type: =head1
19760 #: ../fish/guestfish.pod:924
19761 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19762 msgstr ""
19763
19764 #. type: textblock
19765 #: ../fish/guestfish.pod:926
19766 msgid ""
19767 "Guestfish can be remote-controlled over a socket.  This is useful "
19768 "particularly in shell scripts where you want to make several different "
19769 "changes to a filesystem, but you don't want the overhead of starting up a "
19770 "guestfish process each time."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fish/guestfish.pod:931
19775 msgid "Start a guestfish server process using:"
19776 msgstr ""
19777
19778 #. type: verbatim
19779 #: ../fish/guestfish.pod:933
19780 #, no-wrap
19781 msgid ""
19782 " eval \"`guestfish --listen`\"\n"
19783 "\n"
19784 msgstr ""
19785
19786 #. type: textblock
19787 #: ../fish/guestfish.pod:935
19788 msgid "and then send it commands by doing:"
19789 msgstr ""
19790
19791 #. type: verbatim
19792 #: ../fish/guestfish.pod:937
19793 #, no-wrap
19794 msgid ""
19795 " guestfish --remote cmd [...]\n"
19796 "\n"
19797 msgstr ""
19798
19799 #. type: textblock
19800 #: ../fish/guestfish.pod:939
19801 msgid "To cause the server to exit, send it the exit command:"
19802 msgstr ""
19803
19804 #. type: textblock
19805 #: ../fish/guestfish.pod:943
19806 msgid ""
19807 "Note that the server will normally exit if there is an error in a command.  "
19808 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19809 "BEHAVIOUR>."
19810 msgstr ""
19811
19812 #. type: =head2
19813 #: ../fish/guestfish.pod:947
19814 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19815 msgstr ""
19816
19817 #. type: textblock
19818 #: ../fish/guestfish.pod:949
19819 msgid ""
19820 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19821 "is how the I<--remote> option knows where to send the commands.  You can "
19822 "have several guestfish listener processes running using:"
19823 msgstr ""
19824
19825 #. type: verbatim
19826 #: ../fish/guestfish.pod:953
19827 #, no-wrap
19828 msgid ""
19829 " eval \"`guestfish --listen`\"\n"
19830 " pid1=$GUESTFISH_PID\n"
19831 " eval \"`guestfish --listen`\"\n"
19832 " pid2=$GUESTFISH_PID\n"
19833 " ...\n"
19834 " guestfish --remote=$pid1 cmd\n"
19835 " guestfish --remote=$pid2 cmd\n"
19836 "\n"
19837 msgstr ""
19838
19839 #. type: =head2
19840 #: ../fish/guestfish.pod:961
19841 msgid "REMOTE CONTROL AND CSH"
19842 msgstr ""
19843
19844 #. type: textblock
19845 #: ../fish/guestfish.pod:963
19846 msgid ""
19847 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19848 "option:"
19849 msgstr ""
19850
19851 #. type: verbatim
19852 #: ../fish/guestfish.pod:966
19853 #, no-wrap
19854 msgid ""
19855 " eval \"`guestfish --listen --csh`\"\n"
19856 "\n"
19857 msgstr ""
19858
19859 #. type: =head2
19860 #: ../fish/guestfish.pod:968
19861 msgid "REMOTE CONTROL DETAILS"
19862 msgstr ""
19863
19864 #. type: textblock
19865 #: ../fish/guestfish.pod:970
19866 msgid ""
19867 "Remote control happens over a Unix domain socket called "
19868 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
19869 "of the process, and C<$PID> is the process ID of the server."
19870 msgstr ""
19871
19872 #. type: textblock
19873 #: ../fish/guestfish.pod:974
19874 msgid "Guestfish client and server versions must match exactly."
19875 msgstr ""
19876
19877 #. type: =head2
19878 #: ../fish/guestfish.pod:976
19879 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../fish/guestfish.pod:978
19884 msgid ""
19885 "From Bash, you can use the following code which creates a guestfish "
19886 "instance, correctly quotes the command line, handles failure to start, and "
19887 "cleans up guestfish when the script exits:"
19888 msgstr ""
19889
19890 #. type: verbatim
19891 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
19892 #, no-wrap
19893 msgid ""
19894 " #!/bin/bash -\n"
19895 " \n"
19896 msgstr ""
19897
19898 #. type: verbatim
19899 #: ../fish/guestfish.pod:986
19900 #, no-wrap
19901 msgid ""
19902 " guestfish[0]=\"guestfish\"\n"
19903 " guestfish[1]=\"--listen\"\n"
19904 " guestfish[2]=\"--ro\"\n"
19905 " guestfish[3]=\"-a\"\n"
19906 " guestfish[4]=\"disk.img\"\n"
19907 " \n"
19908 msgstr ""
19909
19910 #. type: verbatim
19911 #: ../fish/guestfish.pod:992
19912 #, no-wrap
19913 msgid ""
19914 " GUESTFISH_PID=\n"
19915 " eval $(\"${guestfish[@]}\")\n"
19916 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19917 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19918 "     exit 1\n"
19919 " fi\n"
19920 " \n"
19921 msgstr ""
19922
19923 #. type: verbatim
19924 #: ../fish/guestfish.pod:999
19925 #, no-wrap
19926 msgid ""
19927 " cleanup_guestfish ()\n"
19928 " {\n"
19929 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
19930 " }\n"
19931 " trap cleanup_guestfish EXIT ERR\n"
19932 " \n"
19933 msgstr ""
19934
19935 #. type: verbatim
19936 #: ../fish/guestfish.pod:1005
19937 #, no-wrap
19938 msgid ""
19939 " guestfish --remote -- run\n"
19940 " \n"
19941 msgstr ""
19942
19943 #. type: verbatim
19944 #: ../fish/guestfish.pod:1007
19945 #, no-wrap
19946 msgid ""
19947 " # ...\n"
19948 "\n"
19949 msgstr ""
19950
19951 #. type: =head2
19952 #: ../fish/guestfish.pod:1009
19953 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19954 msgstr ""
19955
19956 #. type: textblock
19957 #: ../fish/guestfish.pod:1011
19958 msgid ""
19959 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19960 "context hangs, ie. don't do (note the backquotes):"
19961 msgstr ""
19962
19963 #. type: verbatim
19964 #: ../fish/guestfish.pod:1014
19965 #, no-wrap
19966 msgid ""
19967 " a=`guestfish --remote run`\n"
19968 "\n"
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../fish/guestfish.pod:1016
19973 msgid ""
19974 "Since the C<run> command produces no output on stdout, this is not useful "
19975 "anyway.  For further information see "
19976 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
19977 msgstr ""
19978
19979 #. type: =head1
19980 #: ../fish/guestfish.pod:1020
19981 msgid "PREPARED DISK IMAGES"
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../fish/guestfish.pod:1022
19986 msgid ""
19987 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19988 "preformatted disk images that guestfish can make for you to save typing.  "
19989 "This is particularly useful for testing purposes.  This option is used "
19990 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19991 "can be mixed with I<-a>)."
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../fish/guestfish.pod:1028
19996 msgid ""
19997 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19998 "the second and so on.  Existing files in the current directory are "
19999 "I<overwritten>."
20000 msgstr ""
20001
20002 #. type: textblock
20003 #: ../fish/guestfish.pod:1032
20004 msgid ""
20005 "The type briefly describes how the disk should be sized, partitioned, how "
20006 "filesystem(s) should be created, and how content should be added.  "
20007 "Optionally the type can be followed by extra parameters, separated by C<:> "
20008 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20009 "sparsely-allocated disk, containing a single partition, with the partition "
20010 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20011 "on a 1GB disk instead."
20012 msgstr ""
20013
20014 #. type: textblock
20015 #: ../fish/guestfish.pod:1040
20016 msgid "To list the available types and any extra parameters they take, run:"
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../fish/guestfish.pod:1044
20021 msgid ""
20022 "Note that the prepared filesystem is not mounted.  You would usually have to "
20023 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20024 msgstr ""
20025
20026 #. type: textblock
20027 #: ../fish/guestfish.pod:1048
20028 msgid ""
20029 "If any I<-N> or I<--new> options are given, the guest is automatically "
20030 "launched."
20031 msgstr ""
20032
20033 #. type: textblock
20034 #: ../fish/guestfish.pod:1053
20035 msgid "Create a 100MB disk with an ext4-formatted partition:"
20036 msgstr ""
20037
20038 #. type: verbatim
20039 #: ../fish/guestfish.pod:1055
20040 #, no-wrap
20041 msgid ""
20042 " guestfish -N fs:ext4\n"
20043 "\n"
20044 msgstr ""
20045
20046 #. type: textblock
20047 #: ../fish/guestfish.pod:1057
20048 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20049 msgstr ""
20050
20051 #. type: verbatim
20052 #: ../fish/guestfish.pod:1059
20053 #, no-wrap
20054 msgid ""
20055 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20056 "\n"
20057 msgstr ""
20058
20059 #. type: textblock
20060 #: ../fish/guestfish.pod:1061
20061 msgid "Create a blank 200MB disk:"
20062 msgstr ""
20063
20064 #. type: verbatim
20065 #: ../fish/guestfish.pod:1063
20066 #, no-wrap
20067 msgid ""
20068 " guestfish -N disk:200M\n"
20069 "\n"
20070 msgstr ""
20071
20072 #. type: =head1
20073 #: ../fish/guestfish.pod:1065
20074 msgid "PROGRESS BARS"
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../fish/guestfish.pod:1067
20079 msgid ""
20080 "Some (not all) long-running commands send progress notification messages as "
20081 "they are running.  Guestfish turns these messages into progress bars."
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../fish/guestfish.pod:1071
20086 msgid ""
20087 "When a command that supports progress bars takes longer than two seconds to "
20088 "run, and if progress bars are enabled, then you will see one appearing below "
20089 "the command:"
20090 msgstr ""
20091
20092 #. type: verbatim
20093 #: ../fish/guestfish.pod:1075
20094 #, no-wrap
20095 msgid ""
20096 " ><fs> copy-size /large-file /another-file 2048M\n"
20097 " / 10% [#####-----------------------------------------] 00:30\n"
20098 "\n"
20099 msgstr ""
20100
20101 #. type: textblock
20102 #: ../fish/guestfish.pod:1078
20103 msgid ""
20104 "The spinner on the left hand side moves round once for every progress "
20105 "notification received from the backend.  This is a (reasonably) golden "
20106 "assurance that the command is \"doing something\" even if the progress bar "
20107 "is not moving, because the command is able to send the progress "
20108 "notifications.  When the bar reaches 100% and the command finishes, the "
20109 "spinner disappears."
20110 msgstr ""
20111
20112 #. type: textblock
20113 #: ../fish/guestfish.pod:1085
20114 msgid ""
20115 "Progress bars are enabled by default when guestfish is used interactively.  "
20116 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20117 "and you can disable them completely using I<--no-progress-bars>."
20118 msgstr ""
20119
20120 #. type: =head1
20121 #: ../fish/guestfish.pod:1090
20122 msgid "GUESTFISH COMMANDS"
20123 msgstr ""
20124
20125 #. type: textblock
20126 #: ../fish/guestfish.pod:1092
20127 msgid ""
20128 "The commands in this section are guestfish convenience commands, in other "
20129 "words, they are not part of the L<guestfs(3)> API."
20130 msgstr ""
20131
20132 #. type: =head2
20133 #: ../fish/guestfish.pod:1095
20134 msgid "help"
20135 msgstr ""
20136
20137 #. type: verbatim
20138 #: ../fish/guestfish.pod:1097
20139 #, no-wrap
20140 msgid ""
20141 " help\n"
20142 " help cmd\n"
20143 "\n"
20144 msgstr ""
20145
20146 #. type: textblock
20147 #: ../fish/guestfish.pod:1100
20148 msgid "Without any parameter, this provides general help."
20149 msgstr ""
20150
20151 #. type: textblock
20152 #: ../fish/guestfish.pod:1102
20153 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20154 msgstr ""
20155
20156 #. type: =head2
20157 #: ../fish/guestfish.pod:1104
20158 msgid "quit | exit"
20159 msgstr ""
20160
20161 #. type: textblock
20162 #: ../fish/guestfish.pod:1106
20163 msgid "This exits guestfish.  You can also use C<^D> key."
20164 msgstr ""
20165
20166 #. type: textblock
20167 #: ../fish/guestfish.pod:1108
20168 msgid "@FISH_COMMANDS@"
20169 msgstr ""
20170
20171 #. type: =head1
20172 #: ../fish/guestfish.pod:1110
20173 msgid "COMMANDS"
20174 msgstr ""
20175
20176 #. type: textblock
20177 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20178 msgid "@ACTIONS@"
20179 msgstr ""
20180
20181 #. type: textblock
20182 #: ../fish/guestfish.pod:1116
20183 msgid ""
20184 "guestfish returns 0 if the commands completed without error, or 1 if there "
20185 "was an error."
20186 msgstr ""
20187
20188 #. type: =item
20189 #: ../fish/guestfish.pod:1123
20190 msgid "EDITOR"
20191 msgstr ""
20192
20193 #. type: textblock
20194 #: ../fish/guestfish.pod:1125
20195 msgid ""
20196 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20197 "C<vi>."
20198 msgstr ""
20199
20200 #. type: =item
20201 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
20202 msgid "FEBOOTSTRAP_KERNEL"
20203 msgstr ""
20204
20205 #. type: =item
20206 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
20207 msgid "FEBOOTSTRAP_MODULES"
20208 msgstr ""
20209
20210 #. type: textblock
20211 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
20212 msgid ""
20213 "These two environment variables allow the kernel that libguestfs uses in the "
20214 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20215 "most recent host kernel is chosen.  For more information about kernel "
20216 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20217 "available in febootstrap E<ge> 3.8."
20218 msgstr ""
20219
20220 #. type: =item
20221 #: ../fish/guestfish.pod:1138
20222 msgid "GUESTFISH_DISPLAY_IMAGE"
20223 msgstr ""
20224
20225 #. type: textblock
20226 #: ../fish/guestfish.pod:1140
20227 msgid ""
20228 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20229 "If not set, it uses L<display(1)>."
20230 msgstr ""
20231
20232 #. type: =item
20233 #: ../fish/guestfish.pod:1143
20234 msgid "GUESTFISH_PID"
20235 msgstr ""
20236
20237 #. type: textblock
20238 #: ../fish/guestfish.pod:1145
20239 msgid ""
20240 "Used with the I<--remote> option to specify the remote guestfish process to "
20241 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20242 msgstr ""
20243
20244 #. type: =item
20245 #: ../fish/guestfish.pod:1149
20246 msgid "HEXEDITOR"
20247 msgstr ""
20248
20249 #. type: textblock
20250 #: ../fish/guestfish.pod:1151
20251 msgid ""
20252 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20253 "not specified, the external L<hexedit(1)> program is used."
20254 msgstr ""
20255
20256 #. type: =item
20257 #: ../fish/guestfish.pod:1155
20258 msgid "HOME"
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../fish/guestfish.pod:1157
20263 msgid ""
20264 "If compiled with GNU readline support, various files in the home directory "
20265 "can be used.  See L</FILES>."
20266 msgstr ""
20267
20268 #. type: =item
20269 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
20270 msgid "LIBGUESTFS_APPEND"
20271 msgstr ""
20272
20273 #. type: textblock
20274 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
20275 msgid "Pass additional options to the guest kernel."
20276 msgstr ""
20277
20278 #. type: =item
20279 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
20280 msgid "LIBGUESTFS_DEBUG"
20281 msgstr ""
20282
20283 #. type: textblock
20284 #: ../fish/guestfish.pod:1166
20285 msgid ""
20286 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20287 "effect as using the B<-v> option."
20288 msgstr ""
20289
20290 #. type: =item
20291 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
20292 msgid "LIBGUESTFS_MEMSIZE"
20293 msgstr ""
20294
20295 #. type: textblock
20296 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
20297 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
20298 msgstr ""
20299
20300 #. type: verbatim
20301 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
20302 #, no-wrap
20303 msgid ""
20304 " LIBGUESTFS_MEMSIZE=700\n"
20305 "\n"
20306 msgstr ""
20307
20308 #. type: =item
20309 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
20310 msgid "LIBGUESTFS_PATH"
20311 msgstr ""
20312
20313 #. type: textblock
20314 #: ../fish/guestfish.pod:1178
20315 msgid ""
20316 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20317 "the discussion of paths in L<guestfs(3)>."
20318 msgstr ""
20319
20320 #. type: =item
20321 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
20322 msgid "LIBGUESTFS_QEMU"
20323 msgstr ""
20324
20325 #. type: textblock
20326 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
20327 msgid ""
20328 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20329 "which was found at compile time by the configure script is used."
20330 msgstr ""
20331
20332 #. type: =item
20333 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
20334 msgid "LIBGUESTFS_TRACE"
20335 msgstr ""
20336
20337 #. type: textblock
20338 #: ../fish/guestfish.pod:1189
20339 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20340 msgstr ""
20341
20342 #. type: =item
20343 #: ../fish/guestfish.pod:1191
20344 msgid "PAGER"
20345 msgstr ""
20346
20347 #. type: textblock
20348 #: ../fish/guestfish.pod:1193
20349 msgid ""
20350 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20351 "C<more>."
20352 msgstr ""
20353
20354 #. type: =item
20355 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236 ../src/guestfs.pod:3257
20356 msgid "TMPDIR"
20357 msgstr ""
20358
20359 #. type: textblock
20360 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
20361 msgid ""
20362 "Location of temporary directory, defaults to C</tmp> except for the cached "
20363 "supermin appliance which defaults to C</var/tmp>."
20364 msgstr ""
20365
20366 #. type: textblock
20367 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
20368 msgid ""
20369 "If libguestfs was compiled to use the supermin appliance then the real "
20370 "appliance is cached in this directory, shared between all handles belonging "
20371 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20372 "use in case C</var/tmp> is not large enough."
20373 msgstr ""
20374
20375 #. type: =head1
20376 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:310
20377 msgid "FILES"
20378 msgstr ""
20379
20380 #. type: =item
20381 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:314
20382 msgid "$HOME/.libguestfs-tools.rc"
20383 msgstr ""
20384
20385 #. type: =item
20386 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:316
20387 msgid "/etc/libguestfs-tools.conf"
20388 msgstr ""
20389
20390 #. type: textblock
20391 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:318
20392 msgid ""
20393 "This configuration file controls the default read-only or read-write mode "
20394 "(I<--ro> or I<--rw>)."
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../fish/guestfish.pod:1220
20399 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20400 msgstr ""
20401
20402 #. type: =item
20403 #: ../fish/guestfish.pod:1222
20404 msgid "$HOME/.guestfish"
20405 msgstr ""
20406
20407 #. type: textblock
20408 #: ../fish/guestfish.pod:1224
20409 msgid ""
20410 "If compiled with GNU readline support, then the command history is saved in "
20411 "this file."
20412 msgstr ""
20413
20414 #. type: =item
20415 #: ../fish/guestfish.pod:1227
20416 msgid "$HOME/.inputrc"
20417 msgstr ""
20418
20419 #. type: =item
20420 #: ../fish/guestfish.pod:1229
20421 msgid "/etc/inputrc"
20422 msgstr ""
20423
20424 #. type: textblock
20425 #: ../fish/guestfish.pod:1231
20426 msgid ""
20427 "If compiled with GNU readline support, then these files can be used to "
20428 "configure readline.  For further information, please see "
20429 "L<readline(3)/INITIALIZATION FILE>."
20430 msgstr ""
20431
20432 #. type: textblock
20433 #: ../fish/guestfish.pod:1235
20434 msgid "To write rules which only apply to guestfish, use:"
20435 msgstr ""
20436
20437 #. type: verbatim
20438 #: ../fish/guestfish.pod:1237
20439 #, no-wrap
20440 msgid ""
20441 " $if guestfish\n"
20442 " ...\n"
20443 " $endif\n"
20444 "\n"
20445 msgstr ""
20446
20447 #. type: textblock
20448 #: ../fish/guestfish.pod:1241
20449 msgid ""
20450 "Variables that you can set in inputrc that change the behaviour of guestfish "
20451 "in useful ways include:"
20452 msgstr ""
20453
20454 #. type: =item
20455 #: ../fish/guestfish.pod:1246
20456 msgid "completion-ignore-case (default: on)"
20457 msgstr ""
20458
20459 #. type: textblock
20460 #: ../fish/guestfish.pod:1248
20461 msgid ""
20462 "By default, guestfish will ignore case when tab-completing paths on the "
20463 "disk.  Use:"
20464 msgstr ""
20465
20466 #. type: verbatim
20467 #: ../fish/guestfish.pod:1251
20468 #, no-wrap
20469 msgid ""
20470 " set completion-ignore-case off\n"
20471 "\n"
20472 msgstr ""
20473
20474 #. type: textblock
20475 #: ../fish/guestfish.pod:1253
20476 msgid "to make guestfish case sensitive."
20477 msgstr ""
20478
20479 #. type: =item
20480 #: ../fish/guestfish.pod:1257
20481 msgid "test1.img"
20482 msgstr ""
20483
20484 #. type: =item
20485 #: ../fish/guestfish.pod:1259
20486 msgid "test2.img (etc)"
20487 msgstr ""
20488
20489 #. type: textblock
20490 #: ../fish/guestfish.pod:1261
20491 msgid ""
20492 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20493 "will be created in the file C<test1.img> in the current directory.  The "
20494 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20495 "the same name will be overwritten."
20496 msgstr ""
20497
20498 #. type: textblock
20499 #: ../fish/guestfish.pod:1270
20500 msgid ""
20501 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
20502 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
20503 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
20504 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
20505 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
20506 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
20507 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
20508 "L<febootstrap-supermin-helper(8)>."
20509 msgstr ""
20510
20511 #. type: textblock
20512 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354 ../test-tool/libguestfs-test-tool.pod:112
20513 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20514 msgstr ""
20515
20516 #. type: textblock
20517 #: ../fish/virt-copy-in.pod:5
20518 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
20519 msgstr ""
20520
20521 #. type: verbatim
20522 #: ../fish/virt-copy-in.pod:9
20523 #, no-wrap
20524 msgid ""
20525 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20526 "\n"
20527 msgstr ""
20528
20529 #. type: verbatim
20530 #: ../fish/virt-copy-in.pod:11
20531 #, no-wrap
20532 msgid ""
20533 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20534 "\n"
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../fish/virt-copy-in.pod:15
20539 msgid ""
20540 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20541 "causing disk corruption.  The virtual machine must be shut down before you "
20542 "use this command."
20543 msgstr ""
20544
20545 #. type: textblock
20546 #: ../fish/virt-copy-in.pod:21
20547 msgid ""
20548 "C<virt-copy-in> copies files and directories from the local disk into a "
20549 "virtual machine disk image or named libvirt domain."
20550 msgstr ""
20551
20552 #. type: textblock
20553 #: ../fish/virt-copy-in.pod:24
20554 msgid ""
20555 "You can give one of more filenames and directories on the command line.  "
20556 "Directories are copied in recursively.  The final parameter must be the "
20557 "destination directory in the disk image which must be an absolute path "
20558 "starting with a C</> character."
20559 msgstr ""
20560
20561 #. type: verbatim
20562 #: ../fish/virt-copy-in.pod:33
20563 #, no-wrap
20564 msgid ""
20565 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20566 "\n"
20567 msgstr ""
20568
20569 #. type: textblock
20570 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20571 msgid "Upload a home directory to a guest:"
20572 msgstr ""
20573
20574 #. type: verbatim
20575 #: ../fish/virt-copy-in.pod:37
20576 #, no-wrap
20577 msgid ""
20578 " virt-copy-in -d MyGuest skel /home\n"
20579 "\n"
20580 msgstr ""
20581
20582 #. type: =head1
20583 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20584 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20585 msgstr ""
20586
20587 #. type: textblock
20588 #: ../fish/virt-copy-in.pod:41
20589 msgid ""
20590 "This command is just a simple shell script wrapper around the "
20591 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
20592 "trivial copy, you are probably better off using guestfish directly."
20593 msgstr ""
20594
20595 #. type: textblock
20596 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20597 msgid ""
20598 "Since the shell script just passes options straight to guestfish, read "
20599 "L<guestfish(1)> to see the full list of options."
20600 msgstr ""
20601
20602 #. type: textblock
20603 #: ../fish/virt-copy-in.pod:52
20604 msgid ""
20605 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20606 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20607 msgstr ""
20608
20609 #. type: textblock
20610 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20611 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../fish/virt-copy-out.pod:5
20616 msgid ""
20617 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20618 "image."
20619 msgstr ""
20620
20621 #. type: verbatim
20622 #: ../fish/virt-copy-out.pod:9
20623 #, no-wrap
20624 msgid ""
20625 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20626 "\n"
20627 msgstr ""
20628
20629 #. type: verbatim
20630 #: ../fish/virt-copy-out.pod:11
20631 #, no-wrap
20632 msgid ""
20633 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20634 "\n"
20635 msgstr ""
20636
20637 #. type: textblock
20638 #: ../fish/virt-copy-out.pod:15
20639 msgid ""
20640 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20641 "image or named libvirt domain."
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../fish/virt-copy-out.pod:18
20646 msgid ""
20647 "You can give one of more filenames and directories on the command line.  "
20648 "Directories are copied out recursively."
20649 msgstr ""
20650
20651 #. type: textblock
20652 #: ../fish/virt-copy-out.pod:23
20653 msgid "Download the home directories from a virtual machine:"
20654 msgstr ""
20655
20656 #. type: verbatim
20657 #: ../fish/virt-copy-out.pod:25
20658 #, no-wrap
20659 msgid ""
20660 " mkdir homes\n"
20661 " virt-copy-out -d MyGuest /home homes\n"
20662 "\n"
20663 msgstr ""
20664
20665 #. type: textblock
20666 #: ../fish/virt-copy-out.pod:30
20667 msgid ""
20668 "This command is just a simple shell script wrapper around the "
20669 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
20670 "trivial copy, you are probably better off using guestfish directly."
20671 msgstr ""
20672
20673 #. type: textblock
20674 #: ../fish/virt-copy-out.pod:41
20675 msgid ""
20676 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
20677 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20678 msgstr ""
20679
20680 #. type: textblock
20681 #: ../fish/virt-tar-in.pod:5
20682 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20683 msgstr ""
20684
20685 #. type: verbatim
20686 #: ../fish/virt-tar-in.pod:9
20687 #, no-wrap
20688 msgid ""
20689 " virt-tar-in -a disk.img data.tar /destination\n"
20690 "\n"
20691 msgstr ""
20692
20693 #. type: verbatim
20694 #: ../fish/virt-tar-in.pod:11
20695 #, no-wrap
20696 msgid ""
20697 " virt-tar-in -d domain data.tar /destination\n"
20698 "\n"
20699 msgstr ""
20700
20701 #. type: verbatim
20702 #: ../fish/virt-tar-in.pod:13
20703 #, no-wrap
20704 msgid ""
20705 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20706 "\n"
20707 msgstr ""
20708
20709 #. type: textblock
20710 #: ../fish/virt-tar-in.pod:17
20711 msgid ""
20712 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20713 "causing disk corruption.  The virtual machine must be shut down before you "
20714 "use this command."
20715 msgstr ""
20716
20717 #. type: textblock
20718 #: ../fish/virt-tar-in.pod:23
20719 msgid ""
20720 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20721 "image or named libvirt domain."
20722 msgstr ""
20723
20724 #. type: textblock
20725 #: ../fish/virt-tar-in.pod:26
20726 msgid ""
20727 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20728 "standard input.  The second parameter is the absolute target directory to "
20729 "unpack into."
20730 msgstr ""
20731
20732 #. type: verbatim
20733 #: ../fish/virt-tar-in.pod:34
20734 #, no-wrap
20735 msgid ""
20736 " virt-tar-in -d MyGuest homes.tar /home\n"
20737 "\n"
20738 msgstr ""
20739
20740 #. type: textblock
20741 #: ../fish/virt-tar-in.pod:38
20742 msgid ""
20743 "This command is just a simple shell script wrapper around the "
20744 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
20745 "copy, you are probably better off using guestfish directly."
20746 msgstr ""
20747
20748 #. type: textblock
20749 #: ../fish/virt-tar-in.pod:49
20750 msgid ""
20751 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20752 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
20753 "L<http://libguestfs.org/>."
20754 msgstr ""
20755
20756 #. type: textblock
20757 #: ../fish/virt-tar-out.pod:5
20758 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20759 msgstr ""
20760
20761 #. type: verbatim
20762 #: ../fish/virt-tar-out.pod:9
20763 #, no-wrap
20764 msgid ""
20765 " virt-tar-out -a disk.img /dir files.tar\n"
20766 "\n"
20767 msgstr ""
20768
20769 #. type: verbatim
20770 #: ../fish/virt-tar-out.pod:11
20771 #, no-wrap
20772 msgid ""
20773 " virt-tar-out -d domain /dir files.tar\n"
20774 "\n"
20775 msgstr ""
20776
20777 #. type: verbatim
20778 #: ../fish/virt-tar-out.pod:13
20779 #, no-wrap
20780 msgid ""
20781 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20782 "\n"
20783 msgstr ""
20784
20785 #. type: textblock
20786 #: ../fish/virt-tar-out.pod:17
20787 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20788 msgstr ""
20789
20790 #. type: textblock
20791 #: ../fish/virt-tar-out.pod:20
20792 msgid ""
20793 "The first parameter is the absolute path of the virtual machine directory.  "
20794 "The second parameter is the tar file to write.  Use C<-> to write to "
20795 "standard output."
20796 msgstr ""
20797
20798 #. type: textblock
20799 #: ../fish/virt-tar-out.pod:26
20800 msgid "Download the home directories from a guest:"
20801 msgstr ""
20802
20803 #. type: verbatim
20804 #: ../fish/virt-tar-out.pod:28
20805 #, no-wrap
20806 msgid ""
20807 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20808 "\n"
20809 msgstr ""
20810
20811 #. type: textblock
20812 #: ../fish/virt-tar-out.pod:32
20813 msgid ""
20814 "This command is just a simple shell script wrapper around the "
20815 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
20816 "trivial copy, you are probably better off using guestfish directly."
20817 msgstr ""
20818
20819 #. type: textblock
20820 #: ../fish/virt-tar-out.pod:43
20821 msgid ""
20822 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20823 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20824 msgstr ""
20825
20826 #. type: textblock
20827 #: ../fuse/guestmount.pod:5
20828 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20829 msgstr ""
20830
20831 #. type: verbatim
20832 #: ../fuse/guestmount.pod:9
20833 #, no-wrap
20834 msgid ""
20835 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20836 "\n"
20837 msgstr ""
20838
20839 #. type: verbatim
20840 #: ../fuse/guestmount.pod:11
20841 #, no-wrap
20842 msgid ""
20843 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20844 "\n"
20845 msgstr ""
20846
20847 #. type: verbatim
20848 #: ../fuse/guestmount.pod:13
20849 #, no-wrap
20850 msgid ""
20851 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20852 "\n"
20853 msgstr ""
20854
20855 #. type: textblock
20856 #: ../fuse/guestmount.pod:17
20857 msgid ""
20858 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20859 "machines.  If you do this, you risk disk corruption in the VM."
20860 msgstr ""
20861
20862 #. type: textblock
20863 #: ../fuse/guestmount.pod:22
20864 msgid ""
20865 "The guestmount program can be used to mount virtual machine filesystems and "
20866 "other disk images on the host.  It uses libguestfs for access to the guest "
20867 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20868 "a mountable device."
20869 msgstr ""
20870
20871 #. type: textblock
20872 #: ../fuse/guestmount.pod:27
20873 msgid ""
20874 "Along with other options, you have to give at least one device (I<-a> "
20875 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20876 "option) or use the I<-i> inspection option or the I<--live> option.  How "
20877 "this works is better explained in the L<guestfish(1)> manual page, or by "
20878 "looking at the examples below."
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../fuse/guestmount.pod:33
20883 msgid ""
20884 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20885 "by you, and the filesystem will not be visible to any other users unless you "
20886 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20887 "the filesystem, use the C<fusermount -u> command."
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../fuse/guestmount.pod:41
20892 msgid ""
20893 "For a typical Windows guest which has its main filesystem on the first "
20894 "partition:"
20895 msgstr ""
20896
20897 #. type: verbatim
20898 #: ../fuse/guestmount.pod:44
20899 #, no-wrap
20900 msgid ""
20901 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20902 "\n"
20903 msgstr ""
20904
20905 #. type: textblock
20906 #: ../fuse/guestmount.pod:46
20907 msgid ""
20908 "For a typical Linux guest which has a /boot filesystem on the first "
20909 "partition, and the root filesystem on a logical volume:"
20910 msgstr ""
20911
20912 #. type: verbatim
20913 #: ../fuse/guestmount.pod:49
20914 #, no-wrap
20915 msgid ""
20916 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20917 "\n"
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../fuse/guestmount.pod:51
20922 msgid "To get libguestfs to detect guest mountpoints for you:"
20923 msgstr ""
20924
20925 #. type: verbatim
20926 #: ../fuse/guestmount.pod:53
20927 #, no-wrap
20928 msgid ""
20929 " guestmount -a guest.img -i --ro /mnt\n"
20930 "\n"
20931 msgstr ""
20932
20933 #. type: textblock
20934 #: ../fuse/guestmount.pod:55
20935 msgid "For a libvirt guest called \"Guest\" you could do:"
20936 msgstr ""
20937
20938 #. type: verbatim
20939 #: ../fuse/guestmount.pod:57
20940 #, no-wrap
20941 msgid ""
20942 " guestmount -d Guest -i --ro /mnt\n"
20943 "\n"
20944 msgstr ""
20945
20946 #. type: textblock
20947 #: ../fuse/guestmount.pod:59
20948 msgid ""
20949 "If you don't know what filesystems are contained in a guest or disk image, "
20950 "use L<virt-filesystems(1)> first:"
20951 msgstr ""
20952
20953 #. type: verbatim
20954 #: ../fuse/guestmount.pod:62
20955 #, no-wrap
20956 msgid ""
20957 " virt-filesystems MyGuest\n"
20958 "\n"
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../fuse/guestmount.pod:64
20963 msgid ""
20964 "If you want to trace the libguestfs calls but without excessive debugging "
20965 "information, we recommend:"
20966 msgstr ""
20967
20968 #. type: verbatim
20969 #: ../fuse/guestmount.pod:67
20970 #, no-wrap
20971 msgid ""
20972 " guestmount [...] --trace /mnt\n"
20973 "\n"
20974 msgstr ""
20975
20976 #. type: textblock
20977 #: ../fuse/guestmount.pod:69
20978 msgid "If you want to debug the program, we recommend:"
20979 msgstr ""
20980
20981 #. type: verbatim
20982 #: ../fuse/guestmount.pod:71
20983 #, no-wrap
20984 msgid ""
20985 " guestmount [...] --trace --verbose /mnt\n"
20986 "\n"
20987 msgstr ""
20988
20989 #. type: =head1
20990 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96 ../resize/virt-resize.pod:621
20991 msgid "NOTES"
20992 msgstr ""
20993
20994 #. type: =head2
20995 #: ../fuse/guestmount.pod:75
20996 msgid "Other users cannot see the filesystem by default"
20997 msgstr ""
20998
20999 #. type: textblock
21000 #: ../fuse/guestmount.pod:77
21001 msgid ""
21002 "If you mount a filesystem as one user (eg. root), then other users will not "
21003 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21004 "option when mounting:"
21005 msgstr ""
21006
21007 #. type: verbatim
21008 #: ../fuse/guestmount.pod:81
21009 #, no-wrap
21010 msgid ""
21011 " sudo guestmount [...] -o allow_other /mnt\n"
21012 "\n"
21013 msgstr ""
21014
21015 #. type: =head2
21016 #: ../fuse/guestmount.pod:83
21017 msgid "Enabling FUSE"
21018 msgstr ""
21019
21020 #. type: textblock
21021 #: ../fuse/guestmount.pod:85
21022 msgid ""
21023 "On some distros, you may need to add yourself to a special group "
21024 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21025 "Debian and derivatives."
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../fuse/guestmount.pod:89
21030 msgid ""
21031 "On other distros, no special group is required.  It is not necessary on "
21032 "Fedora or Red Hat Enterprise Linux."
21033 msgstr ""
21034
21035 #. type: textblock
21036 #: ../fuse/guestmount.pod:100
21037 msgid "Add a block device or virtual machine image."
21038 msgstr ""
21039
21040 #. type: =item
21041 #: ../fuse/guestmount.pod:123
21042 msgid "B<--dir-cache-timeout N>"
21043 msgstr ""
21044
21045 #. type: textblock
21046 #: ../fuse/guestmount.pod:125
21047 msgid ""
21048 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21049 "seconds.  The readdir cache [actually, there are several semi-independent "
21050 "caches] is populated after a readdir(2) call with the stat and extended "
21051 "attributes of the files in the directory, in anticipation that they will be "
21052 "requested soon after."
21053 msgstr ""
21054
21055 #. type: textblock
21056 #: ../fuse/guestmount.pod:131
21057 msgid ""
21058 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21059 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21060 "requests, only cache existing ones."
21061 msgstr ""
21062
21063 #. type: textblock
21064 #: ../fuse/guestmount.pod:151
21065 msgid ""
21066 "If you have untrusted raw-format guest disk images, you should use this "
21067 "option to specify the disk format.  This avoids a possible security problem "
21068 "with malicious guests (CVE-2010-3851).  See also "
21069 "L<guestfs(3)/guestfs_add_drive_opts>."
21070 msgstr ""
21071
21072 #. type: =item
21073 #: ../fuse/guestmount.pod:156
21074 msgid "B<--fuse-help>"
21075 msgstr ""
21076
21077 #. type: textblock
21078 #: ../fuse/guestmount.pod:158
21079 msgid "Display help on special FUSE options (see I<-o> below)."
21080 msgstr ""
21081
21082 #. type: textblock
21083 #: ../fuse/guestmount.pod:162
21084 msgid "Display brief help and exit."
21085 msgstr ""
21086
21087 #. type: textblock
21088 #: ../fuse/guestmount.pod:186
21089 msgid ""
21090 "Mount the named partition or logical volume on the given mountpoint B<in the "
21091 "guest> (this has nothing to do with mountpoints in the host)."
21092 msgstr ""
21093
21094 #. type: textblock
21095 #: ../fuse/guestmount.pod:189
21096 msgid ""
21097 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21098 "something on C</>."
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../fuse/guestmount.pod:206
21103 msgid ""
21104 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21105 "unmounted.  If you specify this option, then we don't attempt to sync the "
21106 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21107 msgstr ""
21108
21109 #. type: =item
21110 #: ../fuse/guestmount.pod:211
21111 msgid "B<-o option>"
21112 msgstr ""
21113
21114 #. type: =item
21115 #: ../fuse/guestmount.pod:213
21116 msgid "B<--option option>"
21117 msgstr ""
21118
21119 #. type: textblock
21120 #: ../fuse/guestmount.pod:215
21121 msgid "Pass extra options to FUSE."
21122 msgstr ""
21123
21124 #. type: textblock
21125 #: ../fuse/guestmount.pod:217
21126 msgid ""
21127 "To get a list of all the extra options supported by FUSE, use the command "
21128 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21129 "of them are a good idea."
21130 msgstr ""
21131
21132 #. type: verbatim
21133 #: ../fuse/guestmount.pod:221
21134 #, no-wrap
21135 msgid ""
21136 " guestmount --fuse-help\n"
21137 "\n"
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../fuse/guestmount.pod:223
21142 msgid "Some potentially useful FUSE options:"
21143 msgstr ""
21144
21145 #. type: =item
21146 #: ../fuse/guestmount.pod:227
21147 msgid "B<-o allow_other>"
21148 msgstr ""
21149
21150 #. type: textblock
21151 #: ../fuse/guestmount.pod:229
21152 msgid "Allow other users to see the filesystem."
21153 msgstr ""
21154
21155 #. type: =item
21156 #: ../fuse/guestmount.pod:231
21157 msgid "B<-o attr_timeout=N>"
21158 msgstr ""
21159
21160 #. type: textblock
21161 #: ../fuse/guestmount.pod:233
21162 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21163 msgstr ""
21164
21165 #. type: =item
21166 #: ../fuse/guestmount.pod:235
21167 msgid "B<-o kernel_cache>"
21168 msgstr ""
21169
21170 #. type: textblock
21171 #: ../fuse/guestmount.pod:237
21172 msgid ""
21173 "Allow the kernel to cache files (reduces the number of reads that have to go "
21174 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21175 "afford the extra memory usage."
21176 msgstr ""
21177
21178 #. type: =item
21179 #: ../fuse/guestmount.pod:241
21180 msgid "B<-o uid=N> B<-o gid=N>"
21181 msgstr ""
21182
21183 #. type: textblock
21184 #: ../fuse/guestmount.pod:243
21185 msgid ""
21186 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21187 "the chosen values."
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../fuse/guestmount.pod:252
21192 msgid ""
21193 "Add devices and mount everything read-only.  Also disallow writes and make "
21194 "the disk appear read-only to FUSE."
21195 msgstr ""
21196
21197 #. type: textblock
21198 #: ../fuse/guestmount.pod:255
21199 msgid ""
21200 "This is highly recommended if you are not going to edit the guest disk.  If "
21201 "the guest is running and this option is I<not> supplied, then there is a "
21202 "strong risk of disk corruption in the guest.  We try to prevent this from "
21203 "happening, but it is not always possible."
21204 msgstr ""
21205
21206 #. type: textblock
21207 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
21208 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21209 msgstr ""
21210
21211 #. type: textblock
21212 #: ../fuse/guestmount.pod:264
21213 msgid "Enable SELinux support for the guest."
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../fuse/guestmount.pod:270
21218 msgid "Enable verbose messages from underlying libguestfs."
21219 msgstr ""
21220
21221 #. type: textblock
21222 #: ../fuse/guestmount.pod:276
21223 msgid "Display the program version and exit."
21224 msgstr ""
21225
21226 #. type: textblock
21227 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
21228 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21229 msgstr ""
21230
21231 #. type: =item
21232 #: ../fuse/guestmount.pod:289
21233 msgid "B<--trace>"
21234 msgstr ""
21235
21236 #. type: textblock
21237 #: ../fuse/guestmount.pod:291
21238 msgid "Trace libguestfs calls and entry into each FUSE function."
21239 msgstr ""
21240
21241 #. type: textblock
21242 #: ../fuse/guestmount.pod:293
21243 msgid "This also stops the daemon from forking into the background."
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../fuse/guestmount.pod:319
21248 msgid ""
21249 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21250 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
21251 "L<http://fuse.sf.net/>."
21252 msgstr ""
21253
21254 #. type: textblock
21255 #: ../fuse/guestmount.pod:334
21256 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21257 msgstr ""
21258
21259 #. type: textblock
21260 #: ../inspector/virt-inspector.pod:5
21261 msgid ""
21262 "virt-inspector - Display operating system version and other information "
21263 "about a virtual machine"
21264 msgstr ""
21265
21266 #. type: verbatim
21267 #: ../inspector/virt-inspector.pod:9
21268 #, no-wrap
21269 msgid ""
21270 " virt-inspector [--options] -d domname\n"
21271 "\n"
21272 msgstr ""
21273
21274 #. type: verbatim
21275 #: ../inspector/virt-inspector.pod:11
21276 #, no-wrap
21277 msgid ""
21278 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21279 "\n"
21280 msgstr ""
21281
21282 #. type: verbatim
21283 #: ../inspector/virt-inspector.pod:15
21284 #, no-wrap
21285 msgid ""
21286 " virt-inspector domname\n"
21287 "\n"
21288 msgstr ""
21289
21290 #. type: verbatim
21291 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
21292 #, no-wrap
21293 msgid ""
21294 " virt-inspector disk.img [disk.img ...]\n"
21295 "\n"
21296 msgstr ""
21297
21298 #. type: textblock
21299 #: ../inspector/virt-inspector.pod:21
21300 msgid ""
21301 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21302 "determine the version of the operating system and other information about "
21303 "the virtual machine."
21304 msgstr ""
21305
21306 #. type: textblock
21307 #: ../inspector/virt-inspector.pod:25
21308 msgid "Virt-inspector produces XML output for feeding into other programs."
21309 msgstr ""
21310
21311 #. type: textblock
21312 #: ../inspector/virt-inspector.pod:27
21313 msgid ""
21314 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21315 "the libvirt domain (see: C<virsh list --all>)."
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../inspector/virt-inspector.pod:30
21320 msgid ""
21321 "You can also run virt-inspector directly on disk images from a single "
21322 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21323 "has several block devices, in which case you should list several I<-a> "
21324 "options one after another, with the first corresponding to the guest's "
21325 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
21326 msgstr ""
21327
21328 #. type: textblock
21329 #: ../inspector/virt-inspector.pod:37
21330 msgid ""
21331 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21332 "keys and similar."
21333 msgstr ""
21334
21335 #. type: textblock
21336 #: ../inspector/virt-inspector.pod:40
21337 msgid ""
21338 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21339 "inspect several virtual machines, you have to run virt-inspector several "
21340 "times (for example, from a shell script for-loop)."
21341 msgstr ""
21342
21343 #. type: textblock
21344 #: ../inspector/virt-inspector.pod:45
21345 msgid ""
21346 "Because virt-inspector needs direct access to guest images, it won't "
21347 "normally work over remote libvirt connections."
21348 msgstr ""
21349
21350 #. type: textblock
21351 #: ../inspector/virt-inspector.pod:48
21352 msgid ""
21353 "All of the information available from virt-inspector is also available "
21354 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21355 "The same information can also be fetched using guestfish or via libguestfs "
21356 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21357 "WITH OTHER PROGRAMMING LANGUAGES>)."
21358 msgstr ""
21359
21360 #. type: textblock
21361 #: ../inspector/virt-inspector.pod:81
21362 msgid ""
21363 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21364 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21365 "at all."
21366 msgstr ""
21367
21368 #. type: textblock
21369 #: ../inspector/virt-inspector.pod:94
21370 msgid ""
21371 "When prompting for keys and passphrases, virt-inspector normally turns "
21372 "echoing off so you cannot see what you are typing.  If you are not worried "
21373 "about Tempest attacks and there is no one else in the room you can specify "
21374 "this flag to see what you are typing."
21375 msgstr ""
21376
21377 #. type: textblock
21378 #: ../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
21379 msgid ""
21380 "Specify the format of disk images given on the command line.  If this is "
21381 "omitted then the format is autodetected from the content of the disk image."
21382 msgstr ""
21383
21384 #. type: textblock
21385 #: ../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
21386 msgid ""
21387 "If disk images are requested from libvirt, then this program asks libvirt "
21388 "for this information.  In this case, the value of the format parameter is "
21389 "ignored."
21390 msgstr ""
21391
21392 #. type: textblock
21393 #: ../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
21394 msgid ""
21395 "If working with untrusted raw-format guest disk images, you should ensure "
21396 "the format is always specified."
21397 msgstr ""
21398
21399 #. type: =item
21400 #: ../inspector/virt-inspector.pod:135
21401 msgid "B<--xpath> query"
21402 msgstr ""
21403
21404 #. type: textblock
21405 #: ../inspector/virt-inspector.pod:137
21406 msgid ""
21407 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
21408 "In this mode virt-inspector simply runs an XPath query; all other inspection "
21409 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
21410 msgstr ""
21411
21412 #. type: textblock
21413 #: ../inspector/virt-inspector.pod:146
21414 msgid "Previous versions of virt-inspector allowed you to write either:"
21415 msgstr ""
21416
21417 #. type: verbatim
21418 #: ../inspector/virt-inspector.pod:152
21419 #, no-wrap
21420 msgid ""
21421 " virt-inspector guestname\n"
21422 "\n"
21423 msgstr ""
21424
21425 #. type: =head1
21426 #: ../inspector/virt-inspector.pod:160
21427 msgid "XML FORMAT"
21428 msgstr ""
21429
21430 #. type: textblock
21431 #: ../inspector/virt-inspector.pod:162
21432 msgid ""
21433 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21434 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21435 "just an overview."
21436 msgstr ""
21437
21438 #. type: textblock
21439 #: ../inspector/virt-inspector.pod:166
21440 msgid ""
21441 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21442 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21443 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21444 "which is vanishingly rare in real world VMs."
21445 msgstr ""
21446
21447 #. type: =head2
21448 #: ../inspector/virt-inspector.pod:171
21449 msgid "E<lt>operatingsystemE<gt>"
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../inspector/virt-inspector.pod:173
21454 msgid ""
21455 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21456 "describe the operating system, its architecture, the descriptive \"product "
21457 "name\" string, the type of OS and so on, as in this example:"
21458 msgstr ""
21459
21460 #. type: verbatim
21461 #: ../inspector/virt-inspector.pod:177
21462 #, no-wrap
21463 msgid ""
21464 " <operatingsystems>\n"
21465 "   <operatingsystem>\n"
21466 "     <root>/dev/sda2</root>\n"
21467 "     <name>windows</name>\n"
21468 "     <arch>i386</arch>\n"
21469 "     <distro>windows</distro>\n"
21470 "     <product_name>Windows 7 Enterprise</product_name>\n"
21471 "     <product_variant>Client</product_variant>\n"
21472 "     <major_version>6</major_version>\n"
21473 "     <minor_version>1</minor_version>\n"
21474 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21475 "     <format>installed</format>\n"
21476 "\n"
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../inspector/virt-inspector.pod:190
21481 msgid ""
21482 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21483 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21484 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21485 "architecture.  The other fields are fairly self-explanatory, but because "
21486 "these fields are taken directly from the libguestfs inspection API you can "
21487 "find precise information from L<guestfs(3)/INSPECTION>."
21488 msgstr ""
21489
21490 #. type: textblock
21491 #: ../inspector/virt-inspector.pod:198
21492 msgid ""
21493 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21494 "of view of libguestfs (block devices may have completely different names "
21495 "inside the VM itself)."
21496 msgstr ""
21497
21498 #. type: =head2
21499 #: ../inspector/virt-inspector.pod:202
21500 msgid "E<lt>mountpointsE<gt>"
21501 msgstr ""
21502
21503 #. type: textblock
21504 #: ../inspector/virt-inspector.pod:204
21505 msgid ""
21506 "Un*x-like guests typically have multiple filesystems which are mounted at "
21507 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21508 "element which looks like this:"
21509 msgstr ""
21510
21511 #. type: verbatim
21512 #: ../inspector/virt-inspector.pod:208
21513 #, no-wrap
21514 msgid ""
21515 " <operatingsystems>\n"
21516 "   <operatingsystem>\n"
21517 "     ...\n"
21518 "     <mountpoints>\n"
21519 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21520 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21521 "     </mountpoints>\n"
21522 "\n"
21523 msgstr ""
21524
21525 #. type: textblock
21526 #: ../inspector/virt-inspector.pod:216
21527 msgid ""
21528 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21529 "and may have completely different names inside the guest.  Only mountable "
21530 "filesystems appear in this list, not things like swap devices."
21531 msgstr ""
21532
21533 #. type: =head2
21534 #: ../inspector/virt-inspector.pod:221
21535 msgid "E<lt>filesystemsE<gt>"
21536 msgstr ""
21537
21538 #. type: textblock
21539 #: ../inspector/virt-inspector.pod:223
21540 msgid ""
21541 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21542 "filesystems belonging to the guest, including swap and empty partitions.  "
21543 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21544 "this OS or shared with this OS and other OSes)."
21545 msgstr ""
21546
21547 #. type: textblock
21548 #: ../inspector/virt-inspector.pod:229
21549 msgid "You might see something like this:"
21550 msgstr ""
21551
21552 #. type: verbatim
21553 #: ../inspector/virt-inspector.pod:231
21554 #, no-wrap
21555 msgid ""
21556 " <operatingsystems>\n"
21557 "   <operatingsystem>\n"
21558 "     ...\n"
21559 "     <filesystems>\n"
21560 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21561 "         <type>ext4</type>\n"
21562 "         <label>Fedora-13-x86_64</label>\n"
21563 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21564 "       </filesystem>\n"
21565 "\n"
21566 msgstr ""
21567
21568 #. type: textblock
21569 #: ../inspector/virt-inspector.pod:241
21570 msgid ""
21571 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21572 "the label, and the UUID."
21573 msgstr ""
21574
21575 #. type: =head2
21576 #: ../inspector/virt-inspector.pod:244
21577 msgid "E<lt>applicationsE<gt>"
21578 msgstr ""
21579
21580 #. type: textblock
21581 #: ../inspector/virt-inspector.pod:246
21582 msgid ""
21583 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21584 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21585 "machine."
21586 msgstr ""
21587
21588 #. type: textblock
21589 #: ../inspector/virt-inspector.pod:250
21590 msgid ""
21591 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21592 "Typical values would be C<rpm> and C<deb>."
21593 msgstr ""
21594
21595 #. type: textblock
21596 #: ../inspector/virt-inspector.pod:253
21597 msgid ""
21598 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21599 "Typical values include C<yum>, C<up2date> and C<apt>"
21600 msgstr ""
21601
21602 #. type: textblock
21603 #: ../inspector/virt-inspector.pod:256
21604 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21605 msgstr ""
21606
21607 #. type: verbatim
21608 #: ../inspector/virt-inspector.pod:259
21609 #, no-wrap
21610 msgid ""
21611 " <operatingsystems>\n"
21612 "   <operatingsystem>\n"
21613 "     ...\n"
21614 "     <applications>\n"
21615 "       <application>\n"
21616 "         <name>coreutils</name>\n"
21617 "         <version>8.5</version>\n"
21618 "         <release>1</release>\n"
21619 "       </application>\n"
21620 "\n"
21621 msgstr ""
21622
21623 #. type: textblock
21624 #: ../inspector/virt-inspector.pod:269
21625 msgid ""
21626 "The version and release fields may not be available for some types guests.  "
21627 "Other fields are possible, see "
21628 "L<guestfs(3)/guestfs_inspect_list_applications>."
21629 msgstr ""
21630
21631 #. type: =head2
21632 #: ../inspector/virt-inspector.pod:273
21633 msgid "E<lt>drive_mappingsE<gt>"
21634 msgstr ""
21635
21636 #. type: textblock
21637 #: ../inspector/virt-inspector.pod:275
21638 msgid ""
21639 "For operating systems like Windows which use drive letters, virt-inspector "
21640 "is able to find out how drive letters map to filesystems."
21641 msgstr ""
21642
21643 #. type: verbatim
21644 #: ../inspector/virt-inspector.pod:279
21645 #, no-wrap
21646 msgid ""
21647 " <operatingsystems>\n"
21648 "   <operatingsystem>\n"
21649 "     ...\n"
21650 "     <drive_mappings>\n"
21651 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21652 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21653 "     </drive_mappings>\n"
21654 "\n"
21655 msgstr ""
21656
21657 #. type: textblock
21658 #: ../inspector/virt-inspector.pod:287
21659 msgid ""
21660 "In the example above, drive C maps to the filesystem on the second partition "
21661 "on the first disk, and drive E maps to the filesystem on the first partition "
21662 "on the second disk."
21663 msgstr ""
21664
21665 #. type: textblock
21666 #: ../inspector/virt-inspector.pod:291
21667 msgid ""
21668 "Note that this only covers permanent local filesystem mappings, not things "
21669 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21670 "here."
21671 msgstr ""
21672
21673 #. type: =head2
21674 #: ../inspector/virt-inspector.pod:295
21675 msgid "E<lt>iconE<gt>"
21676 msgstr ""
21677
21678 #. type: textblock
21679 #: ../inspector/virt-inspector.pod:297
21680 msgid ""
21681 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21682 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21683 "very large and high quality."
21684 msgstr ""
21685
21686 #. type: verbatim
21687 #: ../inspector/virt-inspector.pod:301
21688 #, no-wrap
21689 msgid ""
21690 " <operatingsystems>\n"
21691 "   <operatingsystem>\n"
21692 "     ...\n"
21693 "     <icon>\n"
21694 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21695 "       [... many lines of base64 data ...]\n"
21696 "     </icon>\n"
21697 "\n"
21698 msgstr ""
21699
21700 #. type: textblock
21701 #: ../inspector/virt-inspector.pod:309
21702 msgid ""
21703 "To display the icon, you have to extract it and convert the base64 data back "
21704 "to a binary file.  Use an XPath query or simply an editor to extract the "
21705 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21706 "to a PNG file:"
21707 msgstr ""
21708
21709 #. type: verbatim
21710 #: ../inspector/virt-inspector.pod:314
21711 #, no-wrap
21712 msgid ""
21713 " base64 -i -d < icon.data > icon.png\n"
21714 "\n"
21715 msgstr ""
21716
21717 #. type: =head2
21718 #: ../inspector/virt-inspector.pod:316
21719 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../inspector/virt-inspector.pod:318
21724 msgid ""
21725 "Virt-inspector can detect some operating system installers on install disks, "
21726 "live CDs, bootable USB keys and more."
21727 msgstr ""
21728
21729 #. type: textblock
21730 #: ../inspector/virt-inspector.pod:321
21731 msgid ""
21732 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21733 "fields may be present to indicate a live CD, network installer, or one part "
21734 "of a multipart CD.  For example:"
21735 msgstr ""
21736
21737 #. type: verbatim
21738 #: ../inspector/virt-inspector.pod:325
21739 #, no-wrap
21740 msgid ""
21741 " <operatingsystems>\n"
21742 "   <operatingsystem>\n"
21743 "     <root>/dev/sda</root>\n"
21744 "     <name>linux</name>\n"
21745 "     <arch>i386</arch>\n"
21746 "     <distro>ubuntu</distro>\n"
21747 "     <product_name>Ubuntu 10.10 &quot;Maverick "
21748 "Meerkat&quot;</product_name>\n"
21749 "     <major_version>10</major_version>\n"
21750 "     <minor_version>10</minor_version>\n"
21751 "     <format>installer</format>\n"
21752 "     <live/>\n"
21753 "\n"
21754 msgstr ""
21755
21756 #. type: =head1
21757 #: ../inspector/virt-inspector.pod:337
21758 msgid "XPATH QUERIES"
21759 msgstr ""
21760
21761 #. type: textblock
21762 #: ../inspector/virt-inspector.pod:339
21763 msgid ""
21764 "Virt-inspector includes built in support for running XPath queries.  The "
21765 "reason for including XPath support directly in virt-inspector is simply that "
21766 "there are no good and widely available command line programs that can do "
21767 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
21768 "available on Red Hat Enterprise Linux."
21769 msgstr ""
21770
21771 #. type: textblock
21772 #: ../inspector/virt-inspector.pod:346
21773 msgid ""
21774 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
21775 "mode, virt-inspector simply reads XML from stdin and outputs the query "
21776 "result on stdout.  All other inspection features are disabled in this mode."
21777 msgstr ""
21778
21779 #. type: verbatim
21780 #: ../inspector/virt-inspector.pod:353
21781 #, no-wrap
21782 msgid ""
21783 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
21784 " <filesystems>\n"
21785 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21786 "        <type>ext4</type>\n"
21787 " [...]\n"
21788 "\n"
21789 msgstr ""
21790
21791 #. type: verbatim
21792 #: ../inspector/virt-inspector.pod:359
21793 #, no-wrap
21794 msgid ""
21795 " $ virt-inspector -d Guest | \\\n"
21796 "     virt-inspector --xpath "
21797 "\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21798 " ext4\n"
21799 "\n"
21800 msgstr ""
21801
21802 #. type: verbatim
21803 #: ../inspector/virt-inspector.pod:363
21804 #, no-wrap
21805 msgid ""
21806 " $ virt-inspector -d Guest | \\\n"
21807 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
21808 " [displays the guest icon, if there is one]\n"
21809 "\n"
21810 msgstr ""
21811
21812 #. type: =head1
21813 #: ../inspector/virt-inspector.pod:374
21814 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21815 msgstr ""
21816
21817 #. type: textblock
21818 #: ../inspector/virt-inspector.pod:376
21819 msgid ""
21820 "Early versions of libguestfs shipped with a different virt-inspector program "
21821 "written in Perl (the current version is written in C).  The XML output of "
21822 "the Perl virt-inspector was different and it could also output in other "
21823 "formats like text."
21824 msgstr ""
21825
21826 #. type: textblock
21827 #: ../inspector/virt-inspector.pod:381
21828 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
21829 msgstr ""
21830
21831 #. type: textblock
21832 #: ../inspector/virt-inspector.pod:384
21833 msgid ""
21834 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21835 "versions of virt-inspector with different names:"
21836 msgstr ""
21837
21838 #. type: verbatim
21839 #: ../inspector/virt-inspector.pod:387
21840 #, no-wrap
21841 msgid ""
21842 " virt-inspector     Old Perl version.\n"
21843 " virt-inspector2    New C version.\n"
21844 "\n"
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../inspector/virt-inspector.pod:397
21849 msgid ""
21850 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
21851 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../inspector/virt-inspector.pod:414
21856 msgid "Matthew Booth L<mbooth@redhat.com>"
21857 msgstr ""
21858
21859 #. type: textblock
21860 #: ../java/examples/guestfs-java.pod:5
21861 msgid "guestfs-java - How to use libguestfs from Java"
21862 msgstr ""
21863
21864 #. type: verbatim
21865 #: ../java/examples/guestfs-java.pod:9
21866 #, no-wrap
21867 msgid ""
21868 " import com.redhat.et.libguestfs.*;\n"
21869 " \n"
21870 msgstr ""
21871
21872 #. type: verbatim
21873 #: ../java/examples/guestfs-java.pod:11
21874 #, no-wrap
21875 msgid ""
21876 " GuestFS g = new GuestFS ();\n"
21877 " g.add_drive_opts (\"disk.img\", null);\n"
21878 " g.launch ();\n"
21879 "\n"
21880 msgstr ""
21881
21882 #. type: textblock
21883 #: ../java/examples/guestfs-java.pod:17
21884 msgid ""
21885 "This manual page documents how to call libguestfs from the Java programming "
21886 "language.  This page just documents the differences from the C API and gives "
21887 "some examples.  If you are not familiar with using libguestfs, you also need "
21888 "to read L<guestfs(3)>."
21889 msgstr ""
21890
21891 #. type: =head2
21892 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21893 msgid "CLOSING THE HANDLE"
21894 msgstr ""
21895
21896 #. type: textblock
21897 #: ../java/examples/guestfs-java.pod:24
21898 msgid ""
21899 "The handle is closed when it is reaped by the garbage collector.  Because "
21900 "libguestfs handles include a lot of state, it is also possible to close (and "
21901 "hence free) them explicitly by calling the C<close> method."
21902 msgstr ""
21903
21904 #. type: =head2
21905 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
21906 msgid "EXCEPTIONS"
21907 msgstr ""
21908
21909 #. type: textblock
21910 #: ../java/examples/guestfs-java.pod:31
21911 msgid ""
21912 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21913 "exception.  This has a single parameter which is the error message (a "
21914 "C<String>)."
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../java/examples/guestfs-java.pod:35
21919 msgid "Calling any method on a closed handle raises the same exception."
21920 msgstr ""
21921
21922 #. type: textblock
21923 #: ../java/examples/guestfs-java.pod:47
21924 msgid ""
21925 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21926 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21927 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21928 "L<http://caml.inria.fr/>."
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../ocaml/examples/guestfs-ocaml.pod:5
21933 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21934 msgstr ""
21935
21936 #. type: textblock
21937 #: ../ocaml/examples/guestfs-ocaml.pod:9
21938 msgid "Module style:"
21939 msgstr ""
21940
21941 #. type: verbatim
21942 #: ../ocaml/examples/guestfs-ocaml.pod:11
21943 #, no-wrap
21944 msgid ""
21945 " let g = Guestfs.create () in\n"
21946 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21947 " Guestfs.launch g;\n"
21948 "\n"
21949 msgstr ""
21950
21951 #. type: textblock
21952 #: ../ocaml/examples/guestfs-ocaml.pod:15
21953 msgid "Object-oriented style:"
21954 msgstr ""
21955
21956 #. type: verbatim
21957 #: ../ocaml/examples/guestfs-ocaml.pod:17
21958 #, no-wrap
21959 msgid ""
21960 " let g = new Guestfs.guestfs () in\n"
21961 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21962 " g#launch ();\n"
21963 "\n"
21964 msgstr ""
21965
21966 #. type: verbatim
21967 #: ../ocaml/examples/guestfs-ocaml.pod:21
21968 #, no-wrap
21969 msgid ""
21970 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21971 "or:\n"
21972 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21973 "\n"
21974 msgstr ""
21975
21976 #. type: textblock
21977 #: ../ocaml/examples/guestfs-ocaml.pod:27
21978 msgid ""
21979 "This manual page documents how to call libguestfs from the OCaml programming "
21980 "language.  This page just documents the differences from the C API and gives "
21981 "some examples.  If you are not familiar with using libguestfs, you also need "
21982 "to read L<guestfs(3)>."
21983 msgstr ""
21984
21985 #. type: =head2
21986 #: ../ocaml/examples/guestfs-ocaml.pod:32
21987 msgid "PROGRAMMING STYLES"
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../ocaml/examples/guestfs-ocaml.pod:34
21992 msgid ""
21993 "There are two different programming styles supported by the OCaml bindings.  "
21994 "You can use a module style, with each C function mapped to an OCaml "
21995 "function:"
21996 msgstr ""
21997
21998 #. type: verbatim
21999 #: ../ocaml/examples/guestfs-ocaml.pod:38
22000 #, no-wrap
22001 msgid ""
22002 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22003 "\n"
22004 msgstr ""
22005
22006 #. type: textblock
22007 #: ../ocaml/examples/guestfs-ocaml.pod:40
22008 msgid "becomes:"
22009 msgstr ""
22010
22011 #. type: verbatim
22012 #: ../ocaml/examples/guestfs-ocaml.pod:42
22013 #, no-wrap
22014 msgid ""
22015 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22016 "\n"
22017 msgstr ""
22018
22019 #. type: textblock
22020 #: ../ocaml/examples/guestfs-ocaml.pod:44
22021 msgid ""
22022 "Alternately you can use an object-oriented style, calling methods on the "
22023 "class C<Guestfs.guestfs>:"
22024 msgstr ""
22025
22026 #. type: verbatim
22027 #: ../ocaml/examples/guestfs-ocaml.pod:47
22028 #, no-wrap
22029 msgid ""
22030 " method set_verbose : bool -> unit\n"
22031 "\n"
22032 msgstr ""
22033
22034 #. type: textblock
22035 #: ../ocaml/examples/guestfs-ocaml.pod:49
22036 msgid ""
22037 "The object-oriented style is usually briefer, and the minor performance "
22038 "penalty isn't noticable in the general overhead of performing libguestfs "
22039 "functions."
22040 msgstr ""
22041
22042 #. type: textblock
22043 #: ../ocaml/examples/guestfs-ocaml.pod:55
22044 msgid ""
22045 "The handle is closed when it is reaped by the garbage collector.  Because "
22046 "libguestfs handles include a lot of state, it is also possible to close (and "
22047 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22048 "method."
22049 msgstr ""
22050
22051 #. type: textblock
22052 #: ../ocaml/examples/guestfs-ocaml.pod:62
22053 msgid ""
22054 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22055 "exception.  This has a single parameter which is the error message (a "
22056 "string)."
22057 msgstr ""
22058
22059 #. type: textblock
22060 #: ../ocaml/examples/guestfs-ocaml.pod:66
22061 msgid ""
22062 "Calling any function/method on a closed handle raises "
22063 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
22064 "that you called."
22065 msgstr ""
22066
22067 #. type: textblock
22068 #: ../ocaml/examples/guestfs-ocaml.pod:80
22069 msgid ""
22070 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22071 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22072 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22073 "L<http://caml.inria.fr/>."
22074 msgstr ""
22075
22076 #. type: textblock
22077 #: ../perl/examples/guestfs-perl.pod:5
22078 msgid "guestfs-perl - How to use libguestfs from Perl"
22079 msgstr ""
22080
22081 #. type: verbatim
22082 #: ../perl/examples/guestfs-perl.pod:9
22083 #, no-wrap
22084 msgid ""
22085 " use Sys::Guestfs;\n"
22086 " \n"
22087 msgstr ""
22088
22089 #. type: verbatim
22090 #: ../perl/examples/guestfs-perl.pod:11
22091 #, no-wrap
22092 msgid ""
22093 " my $h = Sys::Guestfs->new ();\n"
22094 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22095 " $h->launch ();\n"
22096 " $h->mount_options ('', '/dev/sda1', '/');\n"
22097 " $h->touch ('/hello');\n"
22098 " $h->sync ();\n"
22099 "\n"
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../perl/examples/guestfs-perl.pod:20
22104 msgid ""
22105 "This manual page documents how to call libguestfs from the Perl programming "
22106 "language.  This page just documents the differences from the C API and gives "
22107 "some examples.  If you are not familiar with using libguestfs, you also need "
22108 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22109 msgstr ""
22110
22111 #. type: =head2
22112 #: ../perl/examples/guestfs-perl.pod:26
22113 msgid "ERRORS"
22114 msgstr ""
22115
22116 #. type: textblock
22117 #: ../perl/examples/guestfs-perl.pod:28
22118 msgid ""
22119 "Errors from libguestfs functions turn into calls to C<croak> (see "
22120 "L<Carp(3)>)."
22121 msgstr ""
22122
22123 #. type: textblock
22124 #: ../perl/examples/guestfs-perl.pod:41
22125 msgid ""
22126 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
22127 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
22128 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
22129 "L<http://libguestfs.org/>."
22130 msgstr ""
22131
22132 #. type: textblock
22133 #: ../python/examples/guestfs-python.pod:5
22134 msgid "guestfs-python - How to use libguestfs from Python"
22135 msgstr ""
22136
22137 #. type: verbatim
22138 #: ../python/examples/guestfs-python.pod:9
22139 #, no-wrap
22140 msgid ""
22141 " import guestfs\n"
22142 " g = guestfs.GuestFS ()\n"
22143 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22144 " g.launch\n"
22145 "\n"
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../python/examples/guestfs-python.pod:16
22150 msgid ""
22151 "This manual page documents how to call libguestfs from the Python "
22152 "programming language.  This page just documents the differences from the C "
22153 "API and gives some examples.  If you are not familiar with using libguestfs, "
22154 "you also need to read L<guestfs(3)>."
22155 msgstr ""
22156
22157 #. type: textblock
22158 #: ../python/examples/guestfs-python.pod:23
22159 msgid ""
22160 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22161 "single string argument which is the error message."
22162 msgstr ""
22163
22164 #. type: =head2
22165 #: ../python/examples/guestfs-python.pod:26
22166 msgid "MORE DOCUMENTATION"
22167 msgstr ""
22168
22169 #. type: textblock
22170 #: ../python/examples/guestfs-python.pod:28
22171 msgid "Type:"
22172 msgstr ""
22173
22174 #. type: verbatim
22175 #: ../python/examples/guestfs-python.pod:30
22176 #, no-wrap
22177 msgid ""
22178 " $ python\n"
22179 " >>> import guestfs\n"
22180 " >>> help (guestfs)\n"
22181 "\n"
22182 msgstr ""
22183
22184 #. type: textblock
22185 #: ../python/examples/guestfs-python.pod:44
22186 msgid ""
22187 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22188 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
22189 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22190 msgstr ""
22191
22192 #. type: textblock
22193 #: ../rescue/virt-rescue.pod:5
22194 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22195 msgstr ""
22196
22197 #. type: verbatim
22198 #: ../rescue/virt-rescue.pod:9
22199 #, no-wrap
22200 msgid ""
22201 " virt-rescue [--options] -d domname\n"
22202 "\n"
22203 msgstr ""
22204
22205 #. type: verbatim
22206 #: ../rescue/virt-rescue.pod:11
22207 #, no-wrap
22208 msgid ""
22209 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22210 "\n"
22211 msgstr ""
22212
22213 #. type: verbatim
22214 #: ../rescue/virt-rescue.pod:13
22215 #, no-wrap
22216 msgid ""
22217 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
22218 "\n"
22219 msgstr ""
22220
22221 #. type: verbatim
22222 #: ../rescue/virt-rescue.pod:17
22223 #, no-wrap
22224 msgid ""
22225 " virt-rescue [--options] domname\n"
22226 "\n"
22227 msgstr ""
22228
22229 #. type: verbatim
22230 #: ../rescue/virt-rescue.pod:19
22231 #, no-wrap
22232 msgid ""
22233 " virt-rescue [--options] disk.img [disk.img ...]\n"
22234 "\n"
22235 msgstr ""
22236
22237 #. type: textblock
22238 #: ../rescue/virt-rescue.pod:23
22239 msgid ""
22240 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22241 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22242 "you from doing this, but doesn't catch all cases."
22243 msgstr ""
22244
22245 #. type: textblock
22246 #: ../rescue/virt-rescue.pod:27
22247 msgid ""
22248 "However if you use the I<--ro> (read only) option, then you can attach a "
22249 "shell to a live virtual machine.  The results might be strange or "
22250 "inconsistent at times but you won't get disk corruption."
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../rescue/virt-rescue.pod:33
22255 msgid ""
22256 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22257 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22258 "recovery tools which you can use to examine or rescue a virtual machine or "
22259 "disk image."
22260 msgstr ""
22261
22262 #. type: textblock
22263 #: ../rescue/virt-rescue.pod:38
22264 msgid ""
22265 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22266 "on disk image(s):"
22267 msgstr ""
22268
22269 #. type: verbatim
22270 #: ../rescue/virt-rescue.pod:41
22271 #, no-wrap
22272 msgid ""
22273 " virt-rescue -d GuestName\n"
22274 "\n"
22275 msgstr ""
22276
22277 #. type: verbatim
22278 #: ../rescue/virt-rescue.pod:43
22279 #, no-wrap
22280 msgid ""
22281 " virt-rescue --ro -a /path/to/disk.img\n"
22282 "\n"
22283 msgstr ""
22284
22285 #. type: verbatim
22286 #: ../rescue/virt-rescue.pod:45
22287 #, no-wrap
22288 msgid ""
22289 " virt-rescue -a /dev/sdc\n"
22290 "\n"
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../rescue/virt-rescue.pod:47
22295 msgid "For live VMs you I<must> use the --ro option."
22296 msgstr ""
22297
22298 #. type: textblock
22299 #: ../rescue/virt-rescue.pod:49
22300 msgid ""
22301 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22302 "in an interactive bash shell where you can use many ordinary Linux "
22303 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22304 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22305 "is an empty directory called C</sysroot> where you can mount filesystems."
22306 msgstr ""
22307
22308 #. type: textblock
22309 #: ../rescue/virt-rescue.pod:56
22310 msgid ""
22311 "You can get virt-rescue to suggest mount commands for you by using the "
22312 "I<--suggest> option (in another terminal):"
22313 msgstr ""
22314
22315 #. type: verbatim
22316 #: ../rescue/virt-rescue.pod:59
22317 #, no-wrap
22318 msgid ""
22319 " $ virt-rescue --suggest -d Fedora15\n"
22320 " Inspecting the virtual machine or disk image ...\n"
22321 " \n"
22322 msgstr ""
22323
22324 #. type: verbatim
22325 #: ../rescue/virt-rescue.pod:62
22326 #, no-wrap
22327 msgid ""
22328 " This disk contains one or more operating systems.  You can use these\n"
22329 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
22330 " filesystems.\n"
22331 " \n"
22332 msgstr ""
22333
22334 #. type: verbatim
22335 #: ../rescue/virt-rescue.pod:66
22336 #, no-wrap
22337 msgid ""
22338 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
22339 " # type: linux, distro: fedora, version: 15.0\n"
22340 " # Fedora release 15 (Lovelock)\n"
22341 " \n"
22342 msgstr ""
22343
22344 #. type: verbatim
22345 #: ../rescue/virt-rescue.pod:70
22346 #, no-wrap
22347 msgid ""
22348 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
22349 " mount /dev/vda1 /sysroot/boot\n"
22350 " mount --bind /dev /sysroot/dev\n"
22351 " mount --bind /dev/pts /sysroot/dev/pts\n"
22352 " mount --bind /proc /sysroot/proc\n"
22353 " mount --bind /sys /sysroot/sys\n"
22354 "\n"
22355 msgstr ""
22356
22357 #. type: textblock
22358 #: ../rescue/virt-rescue.pod:77
22359 msgid ""
22360 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
22361 "(with L<parted(8)>) and mount them by hand:"
22362 msgstr ""
22363
22364 #. type: verbatim
22365 #: ../rescue/virt-rescue.pod:80
22366 #, no-wrap
22367 msgid ""
22368 " ><rescue> lvs\n"
22369 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22370 " lv_root vg_f15x32 -wi-a-   8.83G\n"
22371 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
22372 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
22373 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
22374 " ><rescue> ls /sysroot\n"
22375 "\n"
22376 msgstr ""
22377
22378 #. type: textblock
22379 #: ../rescue/virt-rescue.pod:88
22380 msgid "Another command to list available filesystems is L<virt-filesystems(1)>."
22381 msgstr ""
22382
22383 #. type: textblock
22384 #: ../rescue/virt-rescue.pod:91
22385 msgid ""
22386 "To run commands in a Linux guest (for example, grub), you should chroot into "
22387 "the /sysroot directory first:"
22388 msgstr ""
22389
22390 #. type: verbatim
22391 #: ../rescue/virt-rescue.pod:94
22392 #, no-wrap
22393 msgid ""
22394 " ><rescue> chroot /sysroot\n"
22395 "\n"
22396 msgstr ""
22397
22398 #. type: textblock
22399 #: ../rescue/virt-rescue.pod:98
22400 msgid ""
22401 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22402 "virtual machine.  For example you can use it on a blank file if you want to "
22403 "partition that file (although we would recommend using L<guestfish(1)> "
22404 "instead as it is more suitable for this purpose).  You can even use "
22405 "virt-rescue on things like SD cards."
22406 msgstr ""
22407
22408 #. type: textblock
22409 #: ../rescue/virt-rescue.pod:104
22410 msgid ""
22411 "Virt-rescue does not require root.  You only need to run it as root if you "
22412 "need root to open the disk image."
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../rescue/virt-rescue.pod:107
22417 msgid ""
22418 "This tool is just designed for quick interactive hacking on a virtual "
22419 "machine.  For more structured access to a virtual machine disk image, you "
22420 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22421 "make scripted changes to guests, use L<guestfish(1)>."
22422 msgstr ""
22423
22424 #. type: =item
22425 #: ../rescue/virt-rescue.pod:131
22426 msgid "B<--append kernelopts>"
22427 msgstr ""
22428
22429 #. type: textblock
22430 #: ../rescue/virt-rescue.pod:133
22431 msgid "Pass additional options to the rescue kernel."
22432 msgstr ""
22433
22434 #. type: verbatim
22435 #: ../rescue/virt-rescue.pod:163
22436 #, no-wrap
22437 msgid ""
22438 " virt-rescue --format=raw -a disk.img\n"
22439 "\n"
22440 msgstr ""
22441
22442 #. type: verbatim
22443 #: ../rescue/virt-rescue.pod:167
22444 #, no-wrap
22445 msgid ""
22446 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22447 "\n"
22448 msgstr ""
22449
22450 #. type: =item
22451 #: ../rescue/virt-rescue.pod:176
22452 msgid "B<-m MB>"
22453 msgstr ""
22454
22455 #. type: =item
22456 #: ../rescue/virt-rescue.pod:178
22457 msgid "B<--memsize MB>"
22458 msgstr ""
22459
22460 #. type: textblock
22461 #: ../rescue/virt-rescue.pod:180
22462 msgid ""
22463 "Change the amount of memory allocated to the rescue system.  The default is "
22464 "set by libguestfs and is small but adequate for running system tools.  The "
22465 "occasional program might need more memory.  The parameter is specified in "
22466 "megabytes."
22467 msgstr ""
22468
22469 #. type: =item
22470 #: ../rescue/virt-rescue.pod:185
22471 msgid "B<--network>"
22472 msgstr ""
22473
22474 #. type: textblock
22475 #: ../rescue/virt-rescue.pod:187
22476 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../rescue/virt-rescue.pod:193
22481 msgid "Open the image read-only."
22482 msgstr ""
22483
22484 #. type: textblock
22485 #: ../rescue/virt-rescue.pod:203
22486 msgid ""
22487 "Enable SELinux in the rescue appliance.  You should read "
22488 "L<guestfs(3)/SELINUX> before using this option."
22489 msgstr ""
22490
22491 #. type: =item
22492 #: ../rescue/virt-rescue.pod:206
22493 msgid "B<--smp> N"
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../rescue/virt-rescue.pod:208
22498 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22499 msgstr ""
22500
22501 #. type: =item
22502 #: ../rescue/virt-rescue.pod:210
22503 msgid "B<--suggest>"
22504 msgstr ""
22505
22506 #. type: textblock
22507 #: ../rescue/virt-rescue.pod:212
22508 msgid ""
22509 "Inspect the disk image and suggest what mount commands should be used to "
22510 "mount the disks.  You should use the I<--suggest> option in a second "
22511 "terminal, then paste the commands into another virt-rescue."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../rescue/virt-rescue.pod:216
22516 msgid ""
22517 "This option implies I<--ro> and is safe to use even if the guest is up or if "
22518 "another virt-rescue is running."
22519 msgstr ""
22520
22521 #. type: textblock
22522 #: ../rescue/virt-rescue.pod:235
22523 msgid ""
22524 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22525 "are done read-write."
22526 msgstr ""
22527
22528 #. type: textblock
22529 #: ../rescue/virt-rescue.pod:248
22530 msgid "Previous versions of virt-rescue allowed you to write either:"
22531 msgstr ""
22532
22533 #. type: verbatim
22534 #: ../rescue/virt-rescue.pod:250
22535 #, no-wrap
22536 msgid ""
22537 " virt-rescue disk.img [disk.img ...]\n"
22538 "\n"
22539 msgstr ""
22540
22541 #. type: verbatim
22542 #: ../rescue/virt-rescue.pod:254
22543 #, no-wrap
22544 msgid ""
22545 " virt-rescue guestname\n"
22546 "\n"
22547 msgstr ""
22548
22549 #. type: =head1
22550 #: ../rescue/virt-rescue.pod:262
22551 msgid "NETWORK"
22552 msgstr ""
22553
22554 #. type: textblock
22555 #: ../rescue/virt-rescue.pod:264
22556 msgid ""
22557 "Adding the I<--network> option enables QEMU user networking in the rescue "
22558 "appliance.  There are some differences between user networking and ordinary "
22559 "networking:"
22560 msgstr ""
22561
22562 #. type: =item
22563 #: ../rescue/virt-rescue.pod:270
22564 msgid "ping does not work"
22565 msgstr ""
22566
22567 #. type: textblock
22568 #: ../rescue/virt-rescue.pod:272
22569 msgid ""
22570 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22571 "send the ping packets, and because virt-rescue must be able to run as "
22572 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
22573 "command.  The ping command will appear to resolve addresses but will not be "
22574 "able to send or receive any packets.  This does not mean that the network is "
22575 "not working."
22576 msgstr ""
22577
22578 #. type: =item
22579 #: ../rescue/virt-rescue.pod:279
22580 msgid "cannot receive connections"
22581 msgstr ""
22582
22583 #. type: textblock
22584 #: ../rescue/virt-rescue.pod:281
22585 msgid "QEMU user networking cannot receive incoming connections."
22586 msgstr ""
22587
22588 #. type: =item
22589 #: ../rescue/virt-rescue.pod:283
22590 msgid "making TCP connections"
22591 msgstr ""
22592
22593 #. type: textblock
22594 #: ../rescue/virt-rescue.pod:285
22595 msgid ""
22596 "The virt-rescue appliance needs to be small and so does not include many "
22597 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22598 "make TCP connections from the shell using the magical "
22599 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22600 msgstr ""
22601
22602 #. type: verbatim
22603 #: ../rescue/virt-rescue.pod:290
22604 #, no-wrap
22605 msgid ""
22606 " exec 3<>/dev/tcp/redhat.com/80\n"
22607 " echo \"GET /\" >&3\n"
22608 " cat <&3\n"
22609 "\n"
22610 msgstr ""
22611
22612 #. type: textblock
22613 #: ../rescue/virt-rescue.pod:294
22614 msgid "See L<bash(1)> for more details."
22615 msgstr ""
22616
22617 #. type: textblock
22618 #: ../rescue/virt-rescue.pod:300
22619 msgid ""
22620 "Several environment variables affect virt-rescue.  See "
22621 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
22622 msgstr ""
22623
22624 #. type: textblock
22625 #: ../rescue/virt-rescue.pod:327
22626 msgid ""
22627 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22628 "L<virt-filesystems(1)>, L<http://libguestfs.org/>."
22629 msgstr ""
22630
22631 #. type: textblock
22632 #: ../resize/virt-resize.pod:5
22633 msgid "virt-resize - Resize a virtual machine disk"
22634 msgstr ""
22635
22636 #. type: verbatim
22637 #: ../resize/virt-resize.pod:9
22638 #, no-wrap
22639 msgid ""
22640 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22641 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22642 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22643 "\n"
22644 msgstr ""
22645
22646 #. type: textblock
22647 #: ../resize/virt-resize.pod:15
22648 msgid ""
22649 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22650 "larger or smaller overall, and resizing or deleting any partitions contained "
22651 "within."
22652 msgstr ""
22653
22654 #. type: textblock
22655 #: ../resize/virt-resize.pod:19
22656 msgid ""
22657 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22658 "not> be used on live virtual machines - for consistent results, shut the "
22659 "virtual machine down before resizing it."
22660 msgstr ""
22661
22662 #. type: textblock
22663 #: ../resize/virt-resize.pod:23
22664 msgid ""
22665 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22666 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22667 msgstr ""
22668
22669 #. type: =item
22670 #: ../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
22671 msgid "1."
22672 msgstr ""
22673
22674 #. type: textblock
22675 #: ../resize/virt-resize.pod:33
22676 msgid ""
22677 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22678 "fill the extra 5GB of space."
22679 msgstr ""
22680
22681 #. type: verbatim
22682 #: ../resize/virt-resize.pod:36
22683 #, no-wrap
22684 msgid ""
22685 " virt-filesystems --long -h --all -a olddisk\n"
22686 " \n"
22687 msgstr ""
22688
22689 #. type: verbatim
22690 #: ../resize/virt-resize.pod:38
22691 #, no-wrap
22692 msgid ""
22693 " truncate -r olddisk newdisk\n"
22694 " truncate -s +5G newdisk\n"
22695 " \n"
22696 msgstr ""
22697
22698 #. type: verbatim
22699 #: ../resize/virt-resize.pod:41
22700 #, no-wrap
22701 msgid ""
22702 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22703 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22704 "\n"
22705 msgstr ""
22706
22707 #. type: =item
22708 #: ../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
22709 msgid "2."
22710 msgstr ""
22711
22712 #. type: textblock
22713 #: ../resize/virt-resize.pod:46
22714 msgid ""
22715 "As above, but make the /boot partition 200MB bigger, while giving the "
22716 "remaining space to /dev/sda2:"
22717 msgstr ""
22718
22719 #. type: verbatim
22720 #: ../resize/virt-resize.pod:49
22721 #, no-wrap
22722 msgid ""
22723 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22724 "   olddisk newdisk\n"
22725 "\n"
22726 msgstr ""
22727
22728 #. type: =item
22729 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
22730 msgid "3."
22731 msgstr ""
22732
22733 #. type: textblock
22734 #: ../resize/virt-resize.pod:54
22735 msgid ""
22736 "As in the first example, but expand a logical volume as the final step.  "
22737 "This is what you would typically use for Linux guests that use LVM:"
22738 msgstr ""
22739
22740 #. type: verbatim
22741 #: ../resize/virt-resize.pod:58
22742 #, no-wrap
22743 msgid ""
22744 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22745 "   olddisk newdisk\n"
22746 "\n"
22747 msgstr ""
22748
22749 #. type: =item
22750 #: ../resize/virt-resize.pod:61
22751 msgid "4."
22752 msgstr ""
22753
22754 #. type: textblock
22755 #: ../resize/virt-resize.pod:63
22756 msgid ""
22757 "As in the first example, but the output format will be qcow2 instead of a "
22758 "raw disk:"
22759 msgstr ""
22760
22761 #. type: verbatim
22762 #: ../resize/virt-resize.pod:66
22763 #, no-wrap
22764 msgid ""
22765 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22766 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22767 "\n"
22768 msgstr ""
22769
22770 #. type: =head1
22771 #: ../resize/virt-resize.pod:71
22772 msgid "DETAILED USAGE"
22773 msgstr ""
22774
22775 #. type: =head2
22776 #: ../resize/virt-resize.pod:73
22777 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22778 msgstr ""
22779
22780 #. type: =item
22781 #: ../resize/virt-resize.pod:77
22782 msgid "1. Shut down the virtual machine"
22783 msgstr ""
22784
22785 #. type: =item
22786 #: ../resize/virt-resize.pod:79
22787 msgid "2. Locate input disk image"
22788 msgstr ""
22789
22790 #. type: textblock
22791 #: ../resize/virt-resize.pod:81
22792 msgid ""
22793 "Locate the input disk image (ie. the file or device on the host containing "
22794 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22795 "dumpxml> like this to find the disk image name:"
22796 msgstr ""
22797
22798 #. type: verbatim
22799 #: ../resize/virt-resize.pod:85
22800 #, no-wrap
22801 msgid ""
22802 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22803 " Found 1 nodes:\n"
22804 " -- NODE --\n"
22805 " <source dev=\"/dev/vg/lv_guest\" />\n"
22806 "\n"
22807 msgstr ""
22808
22809 #. type: =item
22810 #: ../resize/virt-resize.pod:90
22811 msgid "3. Look at current sizing"
22812 msgstr ""
22813
22814 #. type: textblock
22815 #: ../resize/virt-resize.pod:92
22816 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22817 msgstr ""
22818
22819 #. type: verbatim
22820 #: ../resize/virt-resize.pod:95
22821 #, no-wrap
22822 msgid ""
22823 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22824 " Name       Type       Size  Parent\n"
22825 " /dev/sda1  partition  101M  /dev/sda\n"
22826 " /dev/sda2  partition  7.9G  /dev/sda\n"
22827 " /dev/sda   device     8.0G  -\n"
22828 "\n"
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../resize/virt-resize.pod:101
22833 msgid ""
22834 "(This example is a virtual machine with an 8 GB disk which we would like to "
22835 "expand up to 10 GB)."
22836 msgstr ""
22837
22838 #. type: =item
22839 #: ../resize/virt-resize.pod:104
22840 msgid "4. Create output disk"
22841 msgstr ""
22842
22843 #. type: textblock
22844 #: ../resize/virt-resize.pod:106
22845 msgid ""
22846 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22847 "to store the resized output disk."
22848 msgstr ""
22849
22850 #. type: textblock
22851 #: ../resize/virt-resize.pod:109
22852 msgid "To store the resized disk image in a file, create a file of a suitable size:"
22853 msgstr ""
22854
22855 #. type: verbatim
22856 #: ../resize/virt-resize.pod:112
22857 #, no-wrap
22858 msgid ""
22859 " # rm -f outdisk\n"
22860 " # truncate -s 10G outdisk\n"
22861 "\n"
22862 msgstr ""
22863
22864 #. type: textblock
22865 #: ../resize/virt-resize.pod:115
22866 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22867 msgstr ""
22868
22869 #. type: verbatim
22870 #: ../resize/virt-resize.pod:117
22871 #, no-wrap
22872 msgid ""
22873 " # lvcreate -L 10G -n lv_name vg_name\n"
22874 "\n"
22875 msgstr ""
22876
22877 #. type: textblock
22878 #: ../resize/virt-resize.pod:119
22879 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22880 msgstr ""
22881
22882 #. type: verbatim
22883 #: ../resize/virt-resize.pod:121
22884 #, no-wrap
22885 msgid ""
22886 " # virsh pool-list\n"
22887 " # virsh vol-create-as poolname newvol 10G\n"
22888 "\n"
22889 msgstr ""
22890
22891 #. type: =item
22892 #: ../resize/virt-resize.pod:124
22893 msgid "5. Resize"
22894 msgstr ""
22895
22896 #. type: textblock
22897 #: ../resize/virt-resize.pod:126
22898 msgid ""
22899 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22900 "file) and the output disk.  The output disk is the one created in the "
22901 "previous step."
22902 msgstr ""
22903
22904 #. type: verbatim
22905 #: ../resize/virt-resize.pod:130
22906 #, no-wrap
22907 msgid ""
22908 " # virt-resize indisk outdisk\n"
22909 "\n"
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../resize/virt-resize.pod:132
22914 msgid ""
22915 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22916 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22917 "larger, then an extra, empty partition is created at the end of the disk "
22918 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22919 "error."
22920 msgstr ""
22921
22922 #. type: textblock
22923 #: ../resize/virt-resize.pod:138
22924 msgid ""
22925 "More realistically you'd want to expand existing partitions in the disk "
22926 "image by passing extra options (for the full list see the L</OPTIONS> "
22927 "section below)."
22928 msgstr ""
22929
22930 #. type: textblock
22931 #: ../resize/virt-resize.pod:142
22932 msgid ""
22933 "L</--expand> is the most useful option.  It expands the named partition "
22934 "within the disk to fill any extra space:"
22935 msgstr ""
22936
22937 #. type: verbatim
22938 #: ../resize/virt-resize.pod:145
22939 #, no-wrap
22940 msgid ""
22941 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22942 "\n"
22943 msgstr ""
22944
22945 #. type: textblock
22946 #: ../resize/virt-resize.pod:147
22947 msgid ""
22948 "(In this case, an extra partition is I<not> created at the end of the disk, "
22949 "because there will be no unused space)."
22950 msgstr ""
22951
22952 #. type: textblock
22953 #: ../resize/virt-resize.pod:150
22954 msgid ""
22955 "L</--resize> is the other commonly used option.  The following would "
22956 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22957 "rest of the available space:"
22958 msgstr ""
22959
22960 #. type: verbatim
22961 #: ../resize/virt-resize.pod:154
22962 #, no-wrap
22963 msgid ""
22964 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22965 "     indisk outdisk\n"
22966 "\n"
22967 msgstr ""
22968
22969 #. type: textblock
22970 #: ../resize/virt-resize.pod:157
22971 msgid ""
22972 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22973 "if virt-resize knows how, it will resize the contents, the equivalent of "
22974 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22975 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22976 "filesystems, so you would have to online resize them after booting the "
22977 "guest."
22978 msgstr ""
22979
22980 #. type: textblock
22981 #: ../resize/virt-resize.pod:164
22982 msgid "Other options are covered below."
22983 msgstr ""
22984
22985 #. type: =item
22986 #: ../resize/virt-resize.pod:166
22987 msgid "6. Test"
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../resize/virt-resize.pod:168
22992 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22993 msgstr ""
22994
22995 #. type: textblock
22996 #: ../resize/virt-resize.pod:170
22997 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22998 msgstr ""
22999
23000 #. type: verbatim
23001 #: ../resize/virt-resize.pod:172
23002 #, no-wrap
23003 msgid ""
23004 " # virsh edit guestname\n"
23005 "\n"
23006 msgstr ""
23007
23008 #. type: textblock
23009 #: ../resize/virt-resize.pod:174
23010 msgid ""
23011 "Change E<lt>source ...E<gt>, see "
23012 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23013 msgstr ""
23014
23015 #. type: textblock
23016 #: ../resize/virt-resize.pod:177
23017 msgid "Then start up the domain with the new, resized disk:"
23018 msgstr ""
23019
23020 #. type: verbatim
23021 #: ../resize/virt-resize.pod:179
23022 #, no-wrap
23023 msgid ""
23024 " # virsh start guestname\n"
23025 "\n"
23026 msgstr ""
23027
23028 #. type: textblock
23029 #: ../resize/virt-resize.pod:181
23030 msgid ""
23031 "and check that it still works.  See also the L</NOTES> section below for "
23032 "additional information."
23033 msgstr ""
23034
23035 #. type: =item
23036 #: ../resize/virt-resize.pod:184
23037 msgid "7. Resize LVs etc inside the guest"
23038 msgstr ""
23039
23040 #. type: textblock
23041 #: ../resize/virt-resize.pod:186
23042 msgid "(This can also be done offline using L<guestfish(1)>)"
23043 msgstr ""
23044
23045 #. type: textblock
23046 #: ../resize/virt-resize.pod:188
23047 msgid ""
23048 "Once the guest has booted you should see the new space available, at least "
23049 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23050 "may need to resize LVs inside PVs, and also resize filesystem types that "
23051 "virt-resize does not know how to expand."
23052 msgstr ""
23053
23054 #. type: =head2
23055 #: ../resize/virt-resize.pod:195
23056 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23057 msgstr ""
23058
23059 #. type: textblock
23060 #: ../resize/virt-resize.pod:197
23061 msgid ""
23062 "Shrinking is somewhat more complex than expanding, and only an overview is "
23063 "given here."
23064 msgstr ""
23065
23066 #. type: textblock
23067 #: ../resize/virt-resize.pod:200
23068 msgid ""
23069 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23070 "filesystems).  The user has to shrink content before passing the disk image "
23071 "to virt-resize, and virt-resize will check that the content has been shrunk "
23072 "properly."
23073 msgstr ""
23074
23075 #. type: textblock
23076 #: ../resize/virt-resize.pod:205
23077 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23078 msgstr ""
23079
23080 #. type: textblock
23081 #: ../resize/virt-resize.pod:207
23082 msgid ""
23083 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23084 "steps 3 and 4 above to allocate a new disk image."
23085 msgstr ""
23086
23087 #. type: textblock
23088 #: ../resize/virt-resize.pod:210
23089 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23090 msgstr ""
23091
23092 #. type: =head2
23093 #: ../resize/virt-resize.pod:213
23094 msgid "IGNORING OR DELETING PARTITIONS"
23095 msgstr ""
23096
23097 #. type: textblock
23098 #: ../resize/virt-resize.pod:215
23099 msgid ""
23100 "virt-resize also gives a convenient way to ignore or delete partitions when "
23101 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23102 "up the copy where you don't care about the existing contents of a "
23103 "partition.  Deleting a partition removes it completely, but note that it "
23104 "also renumbers any partitions after the one which is deleted, which can "
23105 "leave some guests unbootable."
23106 msgstr ""
23107
23108 #. type: =head2
23109 #: ../resize/virt-resize.pod:222
23110 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../resize/virt-resize.pod:224
23115 msgid ""
23116 "If the input disk is in qcow2 format, then you may prefer that the output is "
23117 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23118 "the fly.  The output format is simply determined by the format of the empty "
23119 "output container that you provide.  Thus to create qcow2 output, use:"
23120 msgstr ""
23121
23122 #. type: verbatim
23123 #: ../resize/virt-resize.pod:230
23124 #, no-wrap
23125 msgid ""
23126 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23127 "\n"
23128 msgstr ""
23129
23130 #. type: textblock
23131 #: ../resize/virt-resize.pod:232
23132 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23133 msgstr ""
23134
23135 #. type: textblock
23136 #: ../resize/virt-resize.pod:234
23137 msgid "Similarly, to get non-sparse raw output use:"
23138 msgstr ""
23139
23140 #. type: verbatim
23141 #: ../resize/virt-resize.pod:236
23142 #, no-wrap
23143 msgid ""
23144 " fallocate -l size outdisk\n"
23145 "\n"
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../resize/virt-resize.pod:238
23150 msgid ""
23151 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
23152 "if=/dev/zero of=outdisk bs=1M count=..>)"
23153 msgstr ""
23154
23155 #. type: =head2
23156 #: ../resize/virt-resize.pod:241
23157 msgid "LOGICAL PARTITIONS"
23158 msgstr ""
23159
23160 #. type: textblock
23161 #: ../resize/virt-resize.pod:243
23162 msgid ""
23163 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23164 "tables) cannot be resized."
23165 msgstr ""
23166
23167 #. type: textblock
23168 #: ../resize/virt-resize.pod:246
23169 msgid ""
23170 "To understand what is going on, firstly one of the four partitions "
23171 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
23172 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
23173 "partition type."
23174 msgstr ""
23175
23176 #. type: textblock
23177 #: ../resize/virt-resize.pod:251
23178 msgid "Logical partitions live inside the extended partition."
23179 msgstr ""
23180
23181 #. type: textblock
23182 #: ../resize/virt-resize.pod:253
23183 msgid ""
23184 "The extended partition can be expanded, but not shrunk (unless you force it, "
23185 "which is not advisable).  When the extended partition is copied across, all "
23186 "the logical partitions contained inside are copied over implicitly.  "
23187 "Virt-resize does not look inside the extended partition, so it copies the "
23188 "logical partitions blindly."
23189 msgstr ""
23190
23191 #. type: textblock
23192 #: ../resize/virt-resize.pod:259
23193 msgid ""
23194 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23195 "line.  Doing so will give an error."
23196 msgstr ""
23197
23198 #. type: textblock
23199 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23200 msgid "Display help."
23201 msgstr ""
23202
23203 #. type: =item
23204 #: ../resize/virt-resize.pod:270
23205 msgid "B<--align-first auto>"
23206 msgstr ""
23207
23208 #. type: =item
23209 #: ../resize/virt-resize.pod:272
23210 msgid "B<--align-first never>"
23211 msgstr ""
23212
23213 #. type: =item
23214 #: ../resize/virt-resize.pod:274
23215 msgid "B<--align-first always>"
23216 msgstr ""
23217
23218 #. type: textblock
23219 #: ../resize/virt-resize.pod:276
23220 msgid ""
23221 "Align the first partition for improved performance (see also the "
23222 "I<--alignment> option)."
23223 msgstr ""
23224
23225 #. type: textblock
23226 #: ../resize/virt-resize.pod:279
23227 msgid ""
23228 "The default is I<--align-first auto> which only aligns the first partition "
23229 "if it is safe to do so.  That is, only when we know how to fix the "
23230 "bootloader automatically, and at the moment that can only be done for "
23231 "Windows guests."
23232 msgstr ""
23233
23234 #. type: textblock
23235 #: ../resize/virt-resize.pod:284
23236 msgid ""
23237 "I<--align-first never> means we never move the first partition.  This is the "
23238 "safest option.  Try this if the guest does not boot after resizing."
23239 msgstr ""
23240
23241 #. type: textblock
23242 #: ../resize/virt-resize.pod:288
23243 msgid ""
23244 "I<--align-first always> means we always align the first partition (if it "
23245 "needs to be aligned).  For some guests this will break the bootloader, "
23246 "making the guest unbootable."
23247 msgstr ""
23248
23249 #. type: =item
23250 #: ../resize/virt-resize.pod:292
23251 msgid "B<--alignment N>"
23252 msgstr ""
23253
23254 #. type: textblock
23255 #: ../resize/virt-resize.pod:294
23256 msgid ""
23257 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23258 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23259 msgstr ""
23260
23261 #. type: textblock
23262 #: ../resize/virt-resize.pod:298
23263 msgid ""
23264 "Assuming 512 byte sector size inside the guest, here are some suitable "
23265 "values for this:"
23266 msgstr ""
23267
23268 #. type: =item
23269 #: ../resize/virt-resize.pod:303
23270 msgid "I<--alignment 1> (512 bytes)"
23271 msgstr ""
23272
23273 #. type: textblock
23274 #: ../resize/virt-resize.pod:305
23275 msgid ""
23276 "The partitions would be packed together as closely as possible, but would be "
23277 "completely unaligned.  In some cases this can cause very poor performance.  "
23278 "See L<virt-alignment-scan(1)> for further details."
23279 msgstr ""
23280
23281 #. type: =item
23282 #: ../resize/virt-resize.pod:309
23283 msgid "I<--alignment 8> (4K)"
23284 msgstr ""
23285
23286 #. type: textblock
23287 #: ../resize/virt-resize.pod:311
23288 msgid ""
23289 "This would be the minimum acceptable alignment for reasonable performance on "
23290 "modern hosts."
23291 msgstr ""
23292
23293 #. type: =item
23294 #: ../resize/virt-resize.pod:314
23295 msgid "I<--alignment 128> (64K)"
23296 msgstr ""
23297
23298 #. type: textblock
23299 #: ../resize/virt-resize.pod:316
23300 msgid ""
23301 "This alignment provides good performance when the host is using high end "
23302 "network storage."
23303 msgstr ""
23304
23305 #. type: =item
23306 #: ../resize/virt-resize.pod:319
23307 msgid "I<--alignment 2048> (1M)"
23308 msgstr ""
23309
23310 #. type: textblock
23311 #: ../resize/virt-resize.pod:321
23312 msgid ""
23313 "This is the standard alignment used by all newly installed guests since "
23314 "around 2008."
23315 msgstr ""
23316
23317 #. type: =item
23318 #: ../resize/virt-resize.pod:326
23319 msgid "B<-d>"
23320 msgstr ""
23321
23322 #. type: =item
23323 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
23324 msgid "B<--debug>"
23325 msgstr ""
23326
23327 #. type: textblock
23328 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
23329 msgid "Enable debugging messages."
23330 msgstr ""
23331
23332 #. type: =item
23333 #: ../resize/virt-resize.pod:332
23334 msgid "B<--delete part>"
23335 msgstr ""
23336
23337 #. type: textblock
23338 #: ../resize/virt-resize.pod:334
23339 msgid ""
23340 "Delete the named partition.  It would be more accurate to describe this as "
23341 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23342 "the original disk image is left intact."
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../resize/virt-resize.pod:338
23347 msgid ""
23348 "Note that when you delete a partition, then anything contained in the "
23349 "partition is also deleted.  Furthermore, this causes any partitions that "
23350 "come after to be I<renumbered>, which can easily make your guest unbootable."
23351 msgstr ""
23352
23353 #. type: textblock
23354 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404 ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
23355 msgid "You can give this option multiple times."
23356 msgstr ""
23357
23358 #. type: =item
23359 #: ../resize/virt-resize.pod:345
23360 msgid "B<--expand part>"
23361 msgstr ""
23362
23363 #. type: textblock
23364 #: ../resize/virt-resize.pod:347
23365 msgid ""
23366 "Expand the named partition so it uses up all extra space (space left over "
23367 "after any other resize changes that you request have been done)."
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../resize/virt-resize.pod:350
23372 msgid ""
23373 "If virt-resize knows how, it will expand the direct content of the "
23374 "partition.  For example, if the partition is an LVM PV, it will expand the "
23375 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23376 "content it doesn't know about alone."
23377 msgstr ""
23378
23379 #. type: textblock
23380 #: ../resize/virt-resize.pod:355
23381 msgid "Currently virt-resize can resize:"
23382 msgstr ""
23383
23384 #. type: textblock
23385 #: ../resize/virt-resize.pod:361
23386 msgid "ext2, ext3 and ext4 filesystems."
23387 msgstr ""
23388
23389 #. type: textblock
23390 #: ../resize/virt-resize.pod:365
23391 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23392 msgstr ""
23393
23394 #. type: textblock
23395 #: ../resize/virt-resize.pod:367
23396 msgid ""
23397 "The filesystem must have been shut down consistently last time it was used.  "
23398 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23399 "consistency check, so at the first boot after resizing Windows will check "
23400 "the disk."
23401 msgstr ""
23402
23403 #. type: textblock
23404 #: ../resize/virt-resize.pod:374
23405 msgid ""
23406 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23407 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23408 "resize LVs as desired after boot."
23409 msgstr ""
23410
23411 #. type: textblock
23412 #: ../resize/virt-resize.pod:380
23413 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23414 msgstr ""
23415
23416 #. type: textblock
23417 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
23418 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23419 msgstr ""
23420
23421 #. type: =item
23422 #: ../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
23423 msgid "B<--format> raw"
23424 msgstr ""
23425
23426 #. type: textblock
23427 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
23428 msgid ""
23429 "Specify the format of the input disk image.  If this flag is not given then "
23430 "it is auto-detected from the image itself."
23431 msgstr ""
23432
23433 #. type: textblock
23434 #: ../resize/virt-resize.pod:394
23435 msgid ""
23436 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23437 "AND NON-SPARSE RAW FORMATS>."
23438 msgstr ""
23439
23440 #. type: =item
23441 #: ../resize/virt-resize.pod:397
23442 msgid "B<--ignore part>"
23443 msgstr ""
23444
23445 #. type: textblock
23446 #: ../resize/virt-resize.pod:399
23447 msgid ""
23448 "Ignore the named partition.  Effectively this means the partition is "
23449 "allocated on the destination disk, but the content is not copied across from "
23450 "the source disk.  The content of the partition will be blank (all zero "
23451 "bytes)."
23452 msgstr ""
23453
23454 #. type: =item
23455 #: ../resize/virt-resize.pod:406
23456 msgid "B<--LV-expand logvol>"
23457 msgstr ""
23458
23459 #. type: textblock
23460 #: ../resize/virt-resize.pod:408
23461 msgid ""
23462 "This takes the logical volume and, as a final step, expands it to fill all "
23463 "the space available in its volume group.  A typical usage, assuming a Linux "
23464 "guest with a single PV C</dev/sda2> and a root device called "
23465 "C</dev/vg_guest/lv_root> would be:"
23466 msgstr ""
23467
23468 #. type: verbatim
23469 #: ../resize/virt-resize.pod:413
23470 #, no-wrap
23471 msgid ""
23472 " virt-resize indisk outdisk \\\n"
23473 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23474 "\n"
23475 msgstr ""
23476
23477 #. type: textblock
23478 #: ../resize/virt-resize.pod:416
23479 msgid ""
23480 "This would first expand the partition (and PV), and then expand the root "
23481 "device to fill the extra space in the PV."
23482 msgstr ""
23483
23484 #. type: textblock
23485 #: ../resize/virt-resize.pod:419
23486 msgid ""
23487 "The contents of the LV are also resized if virt-resize knows how to do "
23488 "that.  You can stop virt-resize from trying to expand the content by using "
23489 "the option I<--no-expand-content>."
23490 msgstr ""
23491
23492 #. type: textblock
23493 #: ../resize/virt-resize.pod:423
23494 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23495 msgstr ""
23496
23497 #. type: textblock
23498 #: ../resize/virt-resize.pod:425
23499 msgid ""
23500 "You can give this option multiple times, I<but> it doesn't make sense to do "
23501 "this unless the logical volumes you specify are all in different volume "
23502 "groups."
23503 msgstr ""
23504
23505 #. type: =item
23506 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
23507 msgid "B<--machine-readable>"
23508 msgstr ""
23509
23510 #. type: textblock
23511 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
23512 msgid ""
23513 "This option is used to make the output more machine friendly when being "
23514 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23515 msgstr ""
23516
23517 #. type: =item
23518 #: ../resize/virt-resize.pod:437
23519 msgid "B<--dryrun>"
23520 msgstr ""
23521
23522 #. type: textblock
23523 #: ../resize/virt-resize.pod:439
23524 msgid "Print a summary of what would be done, but don't do anything."
23525 msgstr ""
23526
23527 #. type: =item
23528 #: ../resize/virt-resize.pod:441
23529 msgid "B<--no-copy-boot-loader>"
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../resize/virt-resize.pod:443
23534 msgid ""
23535 "By default, virt-resize copies over some sectors at the start of the disk "
23536 "(up to the beginning of the first partition).  Commonly these sectors "
23537 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23538 "in order for the guest to boot correctly."
23539 msgstr ""
23540
23541 #. type: textblock
23542 #: ../resize/virt-resize.pod:448
23543 msgid ""
23544 "If you specify this flag, then this initial copy is not done.  You may need "
23545 "to reinstall the boot loader in this case."
23546 msgstr ""
23547
23548 #. type: =item
23549 #: ../resize/virt-resize.pod:451
23550 msgid "B<--no-extra-partition>"
23551 msgstr ""
23552
23553 #. type: textblock
23554 #: ../resize/virt-resize.pod:453
23555 msgid ""
23556 "By default, virt-resize creates an extra partition if there is any extra, "
23557 "unused space after all resizing has happened.  Use this option to prevent "
23558 "the extra partition from being created.  If you do this then the extra space "
23559 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23560 "tool in the guest."
23561 msgstr ""
23562
23563 #. type: textblock
23564 #: ../resize/virt-resize.pod:459
23565 msgid ""
23566 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23567 "will be created."
23568 msgstr ""
23569
23570 #. type: =item
23571 #: ../resize/virt-resize.pod:462
23572 msgid "B<--no-expand-content>"
23573 msgstr ""
23574
23575 #. type: textblock
23576 #: ../resize/virt-resize.pod:464
23577 msgid ""
23578 "By default, virt-resize will try to expand the direct contents of "
23579 "partitions, if it knows how (see I<--expand> option above)."
23580 msgstr ""
23581
23582 #. type: textblock
23583 #: ../resize/virt-resize.pod:467
23584 msgid ""
23585 "If you give the I<--no-expand-content> option then virt-resize will not "
23586 "attempt this."
23587 msgstr ""
23588
23589 #. type: =item
23590 #: ../resize/virt-resize.pod:470
23591 msgid "B<--ntfsresize-force>"
23592 msgstr ""
23593
23594 #. type: textblock
23595 #: ../resize/virt-resize.pod:472
23596 msgid ""
23597 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23598 "the NTFS disk is marked as needing a consistency check.  You have to use "
23599 "this option if you want to resize a Windows guest multiple times without "
23600 "booting into Windows between each resize."
23601 msgstr ""
23602
23603 #. type: =item
23604 #: ../resize/virt-resize.pod:478
23605 msgid "B<--output-format> raw"
23606 msgstr ""
23607
23608 #. type: textblock
23609 #: ../resize/virt-resize.pod:480
23610 msgid ""
23611 "Specify the format of the output disk image.  If this flag is not given then "
23612 "it is auto-detected from the image itself."
23613 msgstr ""
23614
23615 #. type: textblock
23616 #: ../resize/virt-resize.pod:486
23617 msgid ""
23618 "Note that this option I<does not create> the output format.  This option "
23619 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23620 "need to create the output disk with the right format.  See L</QCOW2 AND "
23621 "NON-SPARSE RAW FORMATS>."
23622 msgstr ""
23623
23624 #. type: textblock
23625 #: ../resize/virt-resize.pod:495
23626 msgid "Don't print the summary."
23627 msgstr ""
23628
23629 #. type: =item
23630 #: ../resize/virt-resize.pod:497
23631 msgid "B<--resize part=size>"
23632 msgstr ""
23633
23634 #. type: textblock
23635 #: ../resize/virt-resize.pod:499
23636 msgid ""
23637 "Resize the named partition (expanding or shrinking it) so that it has the "
23638 "given size."
23639 msgstr ""
23640
23641 #. type: textblock
23642 #: ../resize/virt-resize.pod:502
23643 msgid ""
23644 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23645 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23646 "size; or as a relative number or percentage.  For example:"
23647 msgstr ""
23648
23649 #. type: verbatim
23650 #: ../resize/virt-resize.pod:508
23651 #, no-wrap
23652 msgid ""
23653 " --resize /dev/sda2=10G\n"
23654 "\n"
23655 msgstr ""
23656
23657 #. type: verbatim
23658 #: ../resize/virt-resize.pod:510
23659 #, no-wrap
23660 msgid ""
23661 " --resize /dev/sda4=90%\n"
23662 "\n"
23663 msgstr ""
23664
23665 #. type: verbatim
23666 #: ../resize/virt-resize.pod:512
23667 #, no-wrap
23668 msgid ""
23669 " --resize /dev/sda2=+1G\n"
23670 "\n"
23671 msgstr ""
23672
23673 #. type: verbatim
23674 #: ../resize/virt-resize.pod:514
23675 #, no-wrap
23676 msgid ""
23677 " --resize /dev/sda2=-200M\n"
23678 "\n"
23679 msgstr ""
23680
23681 #. type: verbatim
23682 #: ../resize/virt-resize.pod:516
23683 #, no-wrap
23684 msgid ""
23685 " --resize /dev/sda1=+128K\n"
23686 "\n"
23687 msgstr ""
23688
23689 #. type: verbatim
23690 #: ../resize/virt-resize.pod:518
23691 #, no-wrap
23692 msgid ""
23693 " --resize /dev/sda1=+10%\n"
23694 "\n"
23695 msgstr ""
23696
23697 #. type: verbatim
23698 #: ../resize/virt-resize.pod:520
23699 #, no-wrap
23700 msgid ""
23701 " --resize /dev/sda1=-10%\n"
23702 "\n"
23703 msgstr ""
23704
23705 #. type: textblock
23706 #: ../resize/virt-resize.pod:522
23707 msgid ""
23708 "You can increase the size of any partition.  Virt-resize will expand the "
23709 "direct content of the partition if it knows how (see I<--expand> below)."
23710 msgstr ""
23711
23712 #. type: textblock
23713 #: ../resize/virt-resize.pod:526
23714 msgid ""
23715 "You can only I<decrease> the size of partitions that contain filesystems or "
23716 "PVs which have already been shrunk.  Virt-resize will check this has been "
23717 "done before proceeding, or else will print an error (see also "
23718 "I<--resize-force>)."
23719 msgstr ""
23720
23721 #. type: =item
23722 #: ../resize/virt-resize.pod:533
23723 msgid "B<--resize-force part=size>"
23724 msgstr ""
23725
23726 #. type: textblock
23727 #: ../resize/virt-resize.pod:535
23728 msgid ""
23729 "This is the same as I<--resize> except that it will let you decrease the "
23730 "size of any partition.  Generally this means you will lose any data which "
23731 "was at the end of the partition you shrink, but you may not care about that "
23732 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23733 "as a swap partition)."
23734 msgstr ""
23735
23736 #. type: textblock
23737 #: ../resize/virt-resize.pod:541
23738 msgid "See also the I<--ignore> option."
23739 msgstr ""
23740
23741 #. type: =item
23742 #: ../resize/virt-resize.pod:543
23743 msgid "B<--shrink part>"
23744 msgstr ""
23745
23746 #. type: textblock
23747 #: ../resize/virt-resize.pod:545
23748 msgid ""
23749 "Shrink the named partition until the overall disk image fits in the "
23750 "destination.  The named partition B<must> contain a filesystem or PV which "
23751 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23752 "online tools).  Virt-resize will check this and give an error if it has not "
23753 "been done."
23754 msgstr ""
23755
23756 #. type: textblock
23757 #: ../resize/virt-resize.pod:551
23758 msgid ""
23759 "The amount by which the overall disk must be shrunk (after carrying out all "
23760 "other operations requested by the user) is called the \"deficit\".  For "
23761 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23762 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23763 "would give an error unless the user specified a partition to shrink and that "
23764 "partition had more than a gigabyte of free space."
23765 msgstr ""
23766
23767 #. type: =head1
23768 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
23769 msgid "MACHINE READABLE OUTPUT"
23770 msgstr ""
23771
23772 #. type: textblock
23773 #: ../resize/virt-resize.pod:571
23774 msgid ""
23775 "The I<--machine-readable> option can be used to make the output more machine "
23776 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23777 "etc."
23778 msgstr ""
23779
23780 #. type: textblock
23781 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
23782 msgid "There are two ways to use this option."
23783 msgstr ""
23784
23785 #. type: textblock
23786 #: ../resize/virt-resize.pod:577
23787 msgid ""
23788 "Firstly use the option on its own to query the capabilities of the "
23789 "virt-resize binary.  Typical output looks like this:"
23790 msgstr ""
23791
23792 #. type: verbatim
23793 #: ../resize/virt-resize.pod:580
23794 #, no-wrap
23795 msgid ""
23796 " $ virt-resize --machine-readable\n"
23797 " virt-resize\n"
23798 " ntfsresize-force\n"
23799 " 32bitok\n"
23800 " ntfs\n"
23801 " btrfs\n"
23802 "\n"
23803 msgstr ""
23804
23805 #. type: textblock
23806 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
23807 msgid ""
23808 "A list of features is printed, one per line, and the program exits with "
23809 "status 0."
23810 msgstr ""
23811
23812 #. type: textblock
23813 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
23814 msgid ""
23815 "Secondly use the option in conjunction with other options to make the "
23816 "regular program output more machine friendly."
23817 msgstr ""
23818
23819 #. type: textblock
23820 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
23821 msgid "At the moment this means:"
23822 msgstr ""
23823
23824 #. type: textblock
23825 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
23826 msgid ""
23827 "Progress bar messages can be parsed from stdout by looking for this regular "
23828 "expression:"
23829 msgstr ""
23830
23831 #. type: verbatim
23832 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
23833 #, no-wrap
23834 msgid ""
23835 " ^[0-9]+/[0-9]+$\n"
23836 "\n"
23837 msgstr ""
23838
23839 #. type: textblock
23840 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
23841 msgid ""
23842 "The calling program should treat messages sent to stdout (except for "
23843 "progress bar messages) as status messages.  They can be logged and/or "
23844 "displayed to the user."
23845 msgstr ""
23846
23847 #. type: textblock
23848 #: ../resize/virt-resize.pod:612
23849 msgid ""
23850 "The calling program should treat messages sent to stderr as error messages.  "
23851 "In addition, virt-resize exits with a non-zero status code if there was a "
23852 "fatal error."
23853 msgstr ""
23854
23855 #. type: textblock
23856 #: ../resize/virt-resize.pod:618
23857 msgid ""
23858 "Versions of the program prior to 1.13.9 did not support the "
23859 "I<--machine-readable> option and will return an error."
23860 msgstr ""
23861
23862 #. type: =head2
23863 #: ../resize/virt-resize.pod:623
23864 msgid "\"Partition 1 does not end on cylinder boundary.\""
23865 msgstr ""
23866
23867 #. type: textblock
23868 #: ../resize/virt-resize.pod:625
23869 msgid ""
23870 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
23871 "I<--alignment> parameter).  Usually this means the partitions will not be "
23872 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
23873 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
23874 "drives.  Alignment of partitions to cylinders is not required by any modern "
23875 "operating system."
23876 msgstr ""
23877
23878 #. type: =head2
23879 #: ../resize/virt-resize.pod:632
23880 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23881 msgstr ""
23882
23883 #. type: textblock
23884 #: ../resize/virt-resize.pod:634
23885 msgid ""
23886 "In Windows Vista and later versions, Microsoft switched to using a separate "
23887 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23888 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
23889 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
23890 "the second partition (ie. C: drive)  should work."
23891 msgstr ""
23892
23893 #. type: textblock
23894 #: ../resize/virt-resize.pod:641
23895 msgid ""
23896 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23897 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23898 "it find errors) is nothing to worry about."
23899 msgstr ""
23900
23901 #. type: =head2
23902 #: ../resize/virt-resize.pod:645
23903 msgid "GUEST BOOT STUCK AT \"GRUB\""
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../resize/virt-resize.pod:647
23908 msgid ""
23909 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23910 "printing C<GRUB> on the console, try reinstalling grub."
23911 msgstr ""
23912
23913 #. type: verbatim
23914 #: ../resize/virt-resize.pod:650
23915 #, no-wrap
23916 msgid ""
23917 " guestfish -i -a newdisk\n"
23918 " ><fs> cat /boot/grub/device.map\n"
23919 " # check the contents of this file are sensible or\n"
23920 " # edit the file if necessary\n"
23921 " ><fs> grub-install / /dev/vda\n"
23922 " ><fs> exit\n"
23923 "\n"
23924 msgstr ""
23925
23926 #. type: textblock
23927 #: ../resize/virt-resize.pod:657
23928 msgid ""
23929 "For more flexible guest reconfiguration, including if you need to specify "
23930 "other parameters to grub-install, use L<virt-rescue(1)>."
23931 msgstr ""
23932
23933 #. type: =head1
23934 #: ../resize/virt-resize.pod:660
23935 msgid "ALTERNATIVE TOOLS"
23936 msgstr ""
23937
23938 #. type: textblock
23939 #: ../resize/virt-resize.pod:662
23940 msgid ""
23941 "There are several proprietary tools for resizing partitions.  We won't "
23942 "mention any here."
23943 msgstr ""
23944
23945 #. type: textblock
23946 #: ../resize/virt-resize.pod:665
23947 msgid ""
23948 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23949 "operations on disk images.  They can resize and move partitions, but I don't "
23950 "think they can do anything with the contents, and they certainly don't "
23951 "understand LVM."
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../resize/virt-resize.pod:670
23956 msgid ""
23957 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23958 "but at a much lower level.  You will probably end up hand-calculating sector "
23959 "offsets, which is something that virt-resize was designed to avoid.  If you "
23960 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23961 "I<--debug> flag."
23962 msgstr ""
23963
23964 #. type: textblock
23965 #: ../resize/virt-resize.pod:690
23966 msgid ""
23967 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
23968 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
23969 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
23970 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
23971 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
23972 msgstr ""
23973
23974 #. type: textblock
23975 #: ../ruby/examples/guestfs-ruby.pod:5
23976 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23977 msgstr ""
23978
23979 #. type: verbatim
23980 #: ../ruby/examples/guestfs-ruby.pod:9
23981 #, no-wrap
23982 msgid ""
23983 " require 'guestfs'\n"
23984 " g = Guestfs::Guestfs.new()\n"
23985 " g.add_drive_opts(\"disk.img\",\n"
23986 "                  :readonly => 1, :format => \"raw\")\n"
23987 " g.launch()\n"
23988 "\n"
23989 msgstr ""
23990
23991 #. type: textblock
23992 #: ../ruby/examples/guestfs-ruby.pod:17
23993 msgid ""
23994 "This manual page documents how to call libguestfs from the Ruby programming "
23995 "language.  This page just documents the differences from the C API and gives "
23996 "some examples.  If you are not familiar with using libguestfs, you also need "
23997 "to read L<guestfs(3)>."
23998 msgstr ""
23999
24000 #. type: textblock
24001 #: ../ruby/examples/guestfs-ruby.pod:24
24002 msgid ""
24003 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24004 "This has a single parameter which is the error message (a string)."
24005 msgstr ""
24006
24007 #. type: textblock
24008 #: ../ruby/examples/guestfs-ruby.pod:38
24009 msgid ""
24010 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
24011 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
24012 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24013 msgstr ""
24014
24015 #. type: textblock
24016 #: ../sparsify/virt-sparsify.pod:5
24017 msgid "virt-sparsify - Make a virtual machine disk sparse"
24018 msgstr ""
24019
24020 #. type: verbatim
24021 #: ../sparsify/virt-sparsify.pod:9
24022 #, no-wrap
24023 msgid ""
24024 " virt-sparsify [--options] indisk outdisk\n"
24025 "\n"
24026 msgstr ""
24027
24028 #. type: textblock
24029 #: ../sparsify/virt-sparsify.pod:13
24030 msgid ""
24031 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24032 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24033 "the disk image can be converted back to free space on the host."
24034 msgstr ""
24035
24036 #. type: textblock
24037 #: ../sparsify/virt-sparsify.pod:18
24038 msgid ""
24039 "Virt-sparsify can locate and sparsify free space in most filesystems "
24040 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24041 msgstr ""
24042
24043 #. type: textblock
24044 #: ../sparsify/virt-sparsify.pod:21
24045 msgid ""
24046 "Virt-sparsify can also convert between some disk formats, for example "
24047 "converting a raw disk image to a thin-provisioned qcow2 image."
24048 msgstr ""
24049
24050 #. type: textblock
24051 #: ../sparsify/virt-sparsify.pod:24
24052 msgid ""
24053 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24054 "machines.  If a virtual machine has more than one attached disk, you must "
24055 "sparsify each one separately."
24056 msgstr ""
24057
24058 #. type: =head2
24059 #: ../sparsify/virt-sparsify.pod:28
24060 msgid "IMPORTANT LIMITATIONS"
24061 msgstr ""
24062
24063 #. type: textblock
24064 #: ../sparsify/virt-sparsify.pod:34
24065 msgid ""
24066 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24067 "image to a destination image, leaving the source unchanged.  I<Check that "
24068 "the sparsification was successful before deleting the source image>."
24069 msgstr ""
24070
24071 #. type: textblock
24072 #: ../sparsify/virt-sparsify.pod:41
24073 msgid "The virtual machine I<must be shut down> before using this tool."
24074 msgstr ""
24075
24076 #. type: textblock
24077 #: ../sparsify/virt-sparsify.pod:45
24078 msgid ""
24079 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24080 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24081 "usually much less space is required."
24082 msgstr ""
24083
24084 #. type: textblock
24085 #: ../sparsify/virt-sparsify.pod:51
24086 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24087 msgstr ""
24088
24089 #. type: textblock
24090 #: ../sparsify/virt-sparsify.pod:56
24091 msgid "Virt-sparsify cannot handle encrypted disks."
24092 msgstr ""
24093
24094 #. type: textblock
24095 #: ../sparsify/virt-sparsify.pod:60
24096 msgid ""
24097 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24098 "this space is often used for critical items like bootloaders so it's not "
24099 "really unused."
24100 msgstr ""
24101
24102 #. type: textblock
24103 #: ../sparsify/virt-sparsify.pod:66
24104 msgid ""
24105 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24106 "to do this unless we can be sure there is no hibernation data, so at the "
24107 "moment swap partitions are ignored."
24108 msgstr ""
24109
24110 #. type: textblock
24111 #: ../sparsify/virt-sparsify.pod:72
24112 msgid ""
24113 "You may also want to read the manual pages for the associated tools "
24114 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
24115 msgstr ""
24116
24117 #. type: textblock
24118 #: ../sparsify/virt-sparsify.pod:77
24119 msgid "Typical usage is:"
24120 msgstr ""
24121
24122 #. type: verbatim
24123 #: ../sparsify/virt-sparsify.pod:79
24124 #, no-wrap
24125 msgid ""
24126 " virt-sparsify indisk outdisk\n"
24127 "\n"
24128 msgstr ""
24129
24130 #. type: textblock
24131 #: ../sparsify/virt-sparsify.pod:81
24132 msgid ""
24133 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24134 "is created, or overwritten if it already exists.  The format of the input "
24135 "disk is detected (eg. qcow2) and the same format is used for the output "
24136 "disk."
24137 msgstr ""
24138
24139 #. type: textblock
24140 #: ../sparsify/virt-sparsify.pod:86
24141 msgid "To convert between formats, use the I<--convert> option:"
24142 msgstr ""
24143
24144 #. type: verbatim
24145 #: ../sparsify/virt-sparsify.pod:88
24146 #, no-wrap
24147 msgid ""
24148 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24149 "\n"
24150 msgstr ""
24151
24152 #. type: textblock
24153 #: ../sparsify/virt-sparsify.pod:90
24154 msgid ""
24155 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24156 "can find within the source disk image.  You can get it to ignore (don't zero "
24157 "free space on) certain filesystems by doing:"
24158 msgstr ""
24159
24160 #. type: verbatim
24161 #: ../sparsify/virt-sparsify.pod:94
24162 #, no-wrap
24163 msgid ""
24164 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24165 "\n"
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../sparsify/virt-sparsify.pod:96
24170 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24171 msgstr ""
24172
24173 #. type: =item
24174 #: ../sparsify/virt-sparsify.pod:107
24175 msgid "B<--convert> raw"
24176 msgstr ""
24177
24178 #. type: =item
24179 #: ../sparsify/virt-sparsify.pod:109
24180 msgid "B<--convert> qcow2"
24181 msgstr ""
24182
24183 #. type: =item
24184 #: ../sparsify/virt-sparsify.pod:111
24185 msgid "B<--convert> [other formats]"
24186 msgstr ""
24187
24188 #. type: textblock
24189 #: ../sparsify/virt-sparsify.pod:113
24190 msgid ""
24191 "Use C<output-format> as the format for the destination image.  If this is "
24192 "not specified, then the input format is used."
24193 msgstr ""
24194
24195 #. type: textblock
24196 #: ../sparsify/virt-sparsify.pod:116
24197 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../sparsify/virt-sparsify.pod:118
24202 msgid ""
24203 "You can also use any format supported by the L<qemu-img(1)> program, "
24204 "eg. C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24205 msgstr ""
24206
24207 #. type: textblock
24208 #: ../sparsify/virt-sparsify.pod:122
24209 msgid ""
24210 "Specifying the I<--convert> option is usually a good idea, because then "
24211 "virt-sparsify doesn't need to try to guess the input format."
24212 msgstr ""
24213
24214 #. type: =item
24215 #: ../sparsify/virt-sparsify.pod:127
24216 msgid "B<--format> qcow2"
24217 msgstr ""
24218
24219 #. type: =item
24220 #: ../sparsify/virt-sparsify.pod:135
24221 msgid "B<--ignore> filesystem"
24222 msgstr ""
24223
24224 #. type: =item
24225 #: ../sparsify/virt-sparsify.pod:137
24226 msgid "B<--ignore> volgroup"
24227 msgstr ""
24228
24229 #. type: textblock
24230 #: ../sparsify/virt-sparsify.pod:139
24231 msgid ""
24232 "Ignore the named filesystem.  Free space on the filesystem will not be "
24233 "zeroed, but existing blocks of zeroes will still be sparsified."
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../sparsify/virt-sparsify.pod:142
24238 msgid ""
24239 "In the second form, this ignores the named volume group.  Use the volume "
24240 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24241 msgstr ""
24242
24243 #. type: textblock
24244 #: ../sparsify/virt-sparsify.pod:157
24245 msgid "This disables progress bars and other unnecessary output."
24246 msgstr ""
24247
24248 #. type: textblock
24249 #: ../sparsify/virt-sparsify.pod:179
24250 msgid ""
24251 "The I<--machine-readable> option can be used to make the output more machine "
24252 "friendly, which is useful when calling virt-sparsify from other programs, "
24253 "GUIs etc."
24254 msgstr ""
24255
24256 #. type: textblock
24257 #: ../sparsify/virt-sparsify.pod:185
24258 msgid ""
24259 "Firstly use the option on its own to query the capabilities of the "
24260 "virt-sparsify binary.  Typical output looks like this:"
24261 msgstr ""
24262
24263 #. type: verbatim
24264 #: ../sparsify/virt-sparsify.pod:188
24265 #, no-wrap
24266 msgid ""
24267 " $ virt-sparsify --machine-readable\n"
24268 " virt-sparsify\n"
24269 " ntfs\n"
24270 " btrfs\n"
24271 "\n"
24272 msgstr ""
24273
24274 #. type: textblock
24275 #: ../sparsify/virt-sparsify.pod:218
24276 msgid ""
24277 "The calling program should treat messages sent to stderr as error messages.  "
24278 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24279 "fatal error."
24280 msgstr ""
24281
24282 #. type: textblock
24283 #: ../sparsify/virt-sparsify.pod:224
24284 msgid ""
24285 "All versions of virt-sparsify have supported the I<--machine-readable> "
24286 "option."
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../sparsify/virt-sparsify.pod:238
24291 msgid ""
24292 "Location of the temporary directory used for the potentially large temporary "
24293 "overlay file."
24294 msgstr ""
24295
24296 #. type: textblock
24297 #: ../sparsify/virt-sparsify.pod:241
24298 msgid ""
24299 "You should ensure there is enough free space in the worst case for a full "
24300 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24301 "to another directory that has enough space."
24302 msgstr ""
24303
24304 #. type: textblock
24305 #: ../sparsify/virt-sparsify.pod:245
24306 msgid "This defaults to C</tmp>."
24307 msgstr ""
24308
24309 #. type: textblock
24310 #: ../sparsify/virt-sparsify.pod:249
24311 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24312 msgstr ""
24313
24314 #. type: textblock
24315 #: ../sparsify/virt-sparsify.pod:253
24316 msgid ""
24317 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24318 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
24319 "L<qemu-img(1)>, L<http://libguestfs.org/>."
24320 msgstr ""
24321
24322 #. type: =head2
24323 #: ../src/guestfs-actions.pod:1
24324 msgid "guestfs_add_cdrom"
24325 msgstr ""
24326
24327 #. type: verbatim
24328 #: ../src/guestfs-actions.pod:3
24329 #, no-wrap
24330 msgid ""
24331 " int\n"
24332 " guestfs_add_cdrom (guestfs_h *g,\n"
24333 "                    const char *filename);\n"
24334 "\n"
24335 msgstr ""
24336
24337 #. type: textblock
24338 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
24339 msgid ""
24340 "I<This function is deprecated.> In new code, use the "
24341 "L</guestfs_add_drive_opts> call instead."
24342 msgstr ""
24343
24344 #. type: textblock
24345 #: ../src/guestfs-actions.pod:24
24346 msgid ""
24347 "This call checks for the existence of C<filename>.  This stops you from "
24348 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24349 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24350 "instead."
24351 msgstr ""
24352
24353 #. type: textblock
24354 #: ../src/guestfs-actions.pod:31
24355 msgid ""
24356 "If you just want to add an ISO file (often you use this as an efficient way "
24357 "to transfer large files into the guest), then you should probably use "
24358 "C<guestfs_add_drive_ro> instead."
24359 msgstr ""
24360
24361 #. type: textblock
24362 #: ../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
24363 msgid "This function returns 0 on success or -1 on error."
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../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
24368 msgid "(Added in 0.3)"
24369 msgstr ""
24370
24371 #. type: =head2
24372 #: ../src/guestfs-actions.pod:41
24373 msgid "guestfs_add_domain"
24374 msgstr ""
24375
24376 #. type: verbatim
24377 #: ../src/guestfs-actions.pod:43
24378 #, no-wrap
24379 msgid ""
24380 " int\n"
24381 " guestfs_add_domain (guestfs_h *g,\n"
24382 "                     const char *dom,\n"
24383 "                     ...);\n"
24384 "\n"
24385 msgstr ""
24386
24387 #. type: textblock
24388 #: ../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
24389 msgid ""
24390 "You may supply a list of optional arguments to this call.  Use zero or more "
24391 "of the following pairs of parameters, and terminate the list with C<-1> on "
24392 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24393 msgstr ""
24394
24395 #. type: verbatim
24396 #: ../src/guestfs-actions.pod:53
24397 #, no-wrap
24398 msgid ""
24399 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24400 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24401 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24402 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24403 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24404 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
24405 "\n"
24406 msgstr ""
24407
24408 #. type: textblock
24409 #: ../src/guestfs-actions.pod:60
24410 msgid ""
24411 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24412 "It works by connecting to libvirt, requesting the domain and domain XML from "
24413 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24414 "one."
24415 msgstr ""
24416
24417 #. type: textblock
24418 #: ../src/guestfs-actions.pod:141
24419 msgid ""
24420 "The other optional parameters are passed directly through to "
24421 "C<guestfs_add_drive_opts>."
24422 msgstr ""
24423
24424 #. type: textblock
24425 #: ../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
24426 msgid "On error this function returns -1."
24427 msgstr ""
24428
24429 #. type: textblock
24430 #: ../src/guestfs-actions.pod:146
24431 msgid "(Added in 1.7.4)"
24432 msgstr ""
24433
24434 #. type: =head2
24435 #: ../src/guestfs-actions.pod:148
24436 msgid "guestfs_add_domain_va"
24437 msgstr ""
24438
24439 #. type: verbatim
24440 #: ../src/guestfs-actions.pod:150
24441 #, no-wrap
24442 msgid ""
24443 " int\n"
24444 " guestfs_add_domain_va (guestfs_h *g,\n"
24445 "                        const char *dom,\n"
24446 "                        va_list args);\n"
24447 "\n"
24448 msgstr ""
24449
24450 #. type: textblock
24451 #: ../src/guestfs-actions.pod:155
24452 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24453 msgstr ""
24454
24455 #. type: textblock
24456 #: ../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
24457 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24458 msgstr ""
24459
24460 #. type: =head2
24461 #: ../src/guestfs-actions.pod:159
24462 msgid "guestfs_add_domain_argv"
24463 msgstr ""
24464
24465 #. type: verbatim
24466 #: ../src/guestfs-actions.pod:161
24467 #, no-wrap
24468 msgid ""
24469 " int\n"
24470 " guestfs_add_domain_argv (guestfs_h *g,\n"
24471 "                          const char *dom,\n"
24472 "                          const struct guestfs_add_domain_argv *optargs);\n"
24473 "\n"
24474 msgstr ""
24475
24476 #. type: textblock
24477 #: ../src/guestfs-actions.pod:166
24478 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24479 msgstr ""
24480
24481 #. type: =head2
24482 #: ../src/guestfs-actions.pod:170
24483 msgid "guestfs_add_drive"
24484 msgstr ""
24485
24486 #. type: verbatim
24487 #: ../src/guestfs-actions.pod:172
24488 #, no-wrap
24489 msgid ""
24490 " int\n"
24491 " guestfs_add_drive (guestfs_h *g,\n"
24492 "                    const char *filename);\n"
24493 "\n"
24494 msgstr ""
24495
24496 #. type: textblock
24497 #: ../src/guestfs-actions.pod:176
24498 msgid ""
24499 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24500 "optional parameters, so the disk is added writable, with the format being "
24501 "detected automatically."
24502 msgstr ""
24503
24504 #. type: textblock
24505 #: ../src/guestfs-actions.pod:180
24506 msgid ""
24507 "Automatic detection of the format opens you up to a potential security hole "
24508 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24509 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24510 "you should think about replacing calls to this function with calls to "
24511 "C<guestfs_add_drive_opts>, and specifying the format."
24512 msgstr ""
24513
24514 #. type: =head2
24515 #: ../src/guestfs-actions.pod:191
24516 msgid "guestfs_add_drive_opts"
24517 msgstr ""
24518
24519 #. type: verbatim
24520 #: ../src/guestfs-actions.pod:193
24521 #, no-wrap
24522 msgid ""
24523 " int\n"
24524 " guestfs_add_drive_opts (guestfs_h *g,\n"
24525 "                         const char *filename,\n"
24526 "                         ...);\n"
24527 "\n"
24528 msgstr ""
24529
24530 #. type: verbatim
24531 #: ../src/guestfs-actions.pod:203
24532 #, no-wrap
24533 msgid ""
24534 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24535 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24536 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24537 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24538 "\n"
24539 msgstr ""
24540
24541 #. type: textblock
24542 #: ../src/guestfs-actions.pod:233
24543 msgid ""
24544 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24545 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24546 "Possible formats include C<raw> and C<qcow2>."
24547 msgstr ""
24548
24549 #. type: textblock
24550 #: ../src/guestfs-actions.pod:244
24551 msgid ""
24552 "This rarely-used option lets you emulate the behaviour of the deprecated "
24553 "C<guestfs_add_drive_with_if> call (q.v.)"
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../src/guestfs-actions.pod:256
24558 msgid "(Added in 1.5.23)"
24559 msgstr ""
24560
24561 #. type: =head2
24562 #: ../src/guestfs-actions.pod:258
24563 msgid "guestfs_add_drive_opts_va"
24564 msgstr ""
24565
24566 #. type: verbatim
24567 #: ../src/guestfs-actions.pod:260
24568 #, no-wrap
24569 msgid ""
24570 " int\n"
24571 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24572 "                            const char *filename,\n"
24573 "                            va_list args);\n"
24574 "\n"
24575 msgstr ""
24576
24577 #. type: textblock
24578 #: ../src/guestfs-actions.pod:265
24579 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24580 msgstr ""
24581
24582 #. type: =head2
24583 #: ../src/guestfs-actions.pod:269
24584 msgid "guestfs_add_drive_opts_argv"
24585 msgstr ""
24586
24587 #. type: verbatim
24588 #: ../src/guestfs-actions.pod:271
24589 #, no-wrap
24590 msgid ""
24591 " int\n"
24592 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24593 "                              const char *filename,\n"
24594 "                              const struct guestfs_add_drive_opts_argv "
24595 "*optargs);\n"
24596 "\n"
24597 msgstr ""
24598
24599 #. type: textblock
24600 #: ../src/guestfs-actions.pod:276
24601 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24602 msgstr ""
24603
24604 #. type: =head2
24605 #: ../src/guestfs-actions.pod:280
24606 msgid "guestfs_add_drive_ro"
24607 msgstr ""
24608
24609 #. type: verbatim
24610 #: ../src/guestfs-actions.pod:282
24611 #, no-wrap
24612 msgid ""
24613 " int\n"
24614 " guestfs_add_drive_ro (guestfs_h *g,\n"
24615 "                       const char *filename);\n"
24616 "\n"
24617 msgstr ""
24618
24619 #. type: textblock
24620 #: ../src/guestfs-actions.pod:286
24621 msgid ""
24622 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24623 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24624 "disk is added read-only, with the format being detected automatically."
24625 msgstr ""
24626
24627 #. type: textblock
24628 #: ../src/guestfs-actions.pod:293
24629 msgid "(Added in 1.0.38)"
24630 msgstr ""
24631
24632 #. type: =head2
24633 #: ../src/guestfs-actions.pod:295
24634 msgid "guestfs_add_drive_ro_with_if"
24635 msgstr ""
24636
24637 #. type: verbatim
24638 #: ../src/guestfs-actions.pod:297
24639 #, no-wrap
24640 msgid ""
24641 " int\n"
24642 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24643 "                               const char *filename,\n"
24644 "                               const char *iface);\n"
24645 "\n"
24646 msgstr ""
24647
24648 #. type: textblock
24649 #: ../src/guestfs-actions.pod:309
24650 msgid ""
24651 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24652 "QEMU interface emulation to use at run time."
24653 msgstr ""
24654
24655 #. type: textblock
24656 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2881
24657 msgid "(Added in 1.0.84)"
24658 msgstr ""
24659
24660 #. type: =head2
24661 #: ../src/guestfs-actions.pod:316
24662 msgid "guestfs_add_drive_with_if"
24663 msgstr ""
24664
24665 #. type: verbatim
24666 #: ../src/guestfs-actions.pod:318
24667 #, no-wrap
24668 msgid ""
24669 " int\n"
24670 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24671 "                            const char *filename,\n"
24672 "                            const char *iface);\n"
24673 "\n"
24674 msgstr ""
24675
24676 #. type: textblock
24677 #: ../src/guestfs-actions.pod:330
24678 msgid ""
24679 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24680 "QEMU interface emulation to use at run time."
24681 msgstr ""
24682
24683 #. type: =head2
24684 #: ../src/guestfs-actions.pod:337
24685 msgid "guestfs_aug_clear"
24686 msgstr ""
24687
24688 #. type: verbatim
24689 #: ../src/guestfs-actions.pod:339
24690 #, no-wrap
24691 msgid ""
24692 " int\n"
24693 " guestfs_aug_clear (guestfs_h *g,\n"
24694 "                    const char *augpath);\n"
24695 "\n"
24696 msgstr ""
24697
24698 #. type: textblock
24699 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
24700 msgid "(Added in 1.3.4)"
24701 msgstr ""
24702
24703 #. type: =head2
24704 #: ../src/guestfs-actions.pod:350
24705 msgid "guestfs_aug_close"
24706 msgstr ""
24707
24708 #. type: verbatim
24709 #: ../src/guestfs-actions.pod:352
24710 #, no-wrap
24711 msgid ""
24712 " int\n"
24713 " guestfs_aug_close (guestfs_h *g);\n"
24714 "\n"
24715 msgstr ""
24716
24717 #. type: textblock
24718 #: ../src/guestfs-actions.pod:355
24719 msgid ""
24720 "Close the current Augeas handle and free up any resources used by it.  After "
24721 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24722 "any other Augeas functions."
24723 msgstr ""
24724
24725 #. type: textblock
24726 #: ../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
24727 msgid "(Added in 0.7)"
24728 msgstr ""
24729
24730 #. type: =head2
24731 #: ../src/guestfs-actions.pod:364
24732 msgid "guestfs_aug_defnode"
24733 msgstr ""
24734
24735 #. type: verbatim
24736 #: ../src/guestfs-actions.pod:366
24737 #, no-wrap
24738 msgid ""
24739 " struct guestfs_int_bool *\n"
24740 " guestfs_aug_defnode (guestfs_h *g,\n"
24741 "                      const char *name,\n"
24742 "                      const char *expr,\n"
24743 "                      const char *val);\n"
24744 "\n"
24745 msgstr ""
24746
24747 #. type: textblock
24748 #: ../src/guestfs-actions.pod:375
24749 msgid ""
24750 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24751 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24752 "containing that single node."
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../src/guestfs-actions.pod:383
24757 msgid ""
24758 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24759 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24760 msgstr ""
24761
24762 #. type: =head2
24763 #: ../src/guestfs-actions.pod:389
24764 msgid "guestfs_aug_defvar"
24765 msgstr ""
24766
24767 #. type: verbatim
24768 #: ../src/guestfs-actions.pod:391
24769 #, no-wrap
24770 msgid ""
24771 " int\n"
24772 " guestfs_aug_defvar (guestfs_h *g,\n"
24773 "                     const char *name,\n"
24774 "                     const char *expr);\n"
24775 "\n"
24776 msgstr ""
24777
24778 #. type: =head2
24779 #: ../src/guestfs-actions.pod:407
24780 msgid "guestfs_aug_get"
24781 msgstr ""
24782
24783 #. type: verbatim
24784 #: ../src/guestfs-actions.pod:409
24785 #, no-wrap
24786 msgid ""
24787 " char *\n"
24788 " guestfs_aug_get (guestfs_h *g,\n"
24789 "                  const char *augpath);\n"
24790 "\n"
24791 msgstr ""
24792
24793 #. type: textblock
24794 #: ../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
24795 msgid ""
24796 "This function returns a string, or NULL on error.  I<The caller must free "
24797 "the returned string after use>."
24798 msgstr ""
24799
24800 #. type: =head2
24801 #: ../src/guestfs-actions.pod:421
24802 msgid "guestfs_aug_init"
24803 msgstr ""
24804
24805 #. type: verbatim
24806 #: ../src/guestfs-actions.pod:423
24807 #, no-wrap
24808 msgid ""
24809 " int\n"
24810 " guestfs_aug_init (guestfs_h *g,\n"
24811 "                   const char *root,\n"
24812 "                   int flags);\n"
24813 "\n"
24814 msgstr ""
24815
24816 #. type: textblock
24817 #: ../src/guestfs-actions.pod:432
24818 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24819 msgstr ""
24820
24821 #. type: textblock
24822 #: ../src/guestfs-actions.pod:457
24823 msgid ""
24824 "This option is only useful when debugging Augeas lenses.  Use of this option "
24825 "may require additional memory for the libguestfs appliance.  You may need to "
24826 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24827 "C<guestfs_set_memsize>."
24828 msgstr ""
24829
24830 #. type: textblock
24831 #: ../src/guestfs-actions.pod:472
24832 msgid "Do not load the tree in C<guestfs_aug_init>."
24833 msgstr ""
24834
24835 #. type: textblock
24836 #: ../src/guestfs-actions.pod:476
24837 msgid "To close the handle, you can call C<guestfs_aug_close>."
24838 msgstr ""
24839
24840 #. type: =head2
24841 #: ../src/guestfs-actions.pod:484
24842 msgid "guestfs_aug_insert"
24843 msgstr ""
24844
24845 #. type: verbatim
24846 #: ../src/guestfs-actions.pod:486
24847 #, no-wrap
24848 msgid ""
24849 " int\n"
24850 " guestfs_aug_insert (guestfs_h *g,\n"
24851 "                     const char *augpath,\n"
24852 "                     const char *label,\n"
24853 "                     int before);\n"
24854 "\n"
24855 msgstr ""
24856
24857 #. type: =head2
24858 #: ../src/guestfs-actions.pod:504
24859 msgid "guestfs_aug_load"
24860 msgstr ""
24861
24862 #. type: verbatim
24863 #: ../src/guestfs-actions.pod:506
24864 #, no-wrap
24865 msgid ""
24866 " int\n"
24867 " guestfs_aug_load (guestfs_h *g);\n"
24868 "\n"
24869 msgstr ""
24870
24871 #. type: =head2
24872 #: ../src/guestfs-actions.pod:518
24873 msgid "guestfs_aug_ls"
24874 msgstr ""
24875
24876 #. type: verbatim
24877 #: ../src/guestfs-actions.pod:520
24878 #, no-wrap
24879 msgid ""
24880 " char **\n"
24881 " guestfs_aug_ls (guestfs_h *g,\n"
24882 "                 const char *augpath);\n"
24883 "\n"
24884 msgstr ""
24885
24886 #. type: textblock
24887 #: ../src/guestfs-actions.pod:524
24888 msgid ""
24889 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24890 "sorting the resulting nodes into alphabetical order."
24891 msgstr ""
24892
24893 #. type: textblock
24894 #: ../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
24895 msgid ""
24896 "This function returns a NULL-terminated array of strings (like "
24897 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
24898 "strings and the array after use>."
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../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
24903 msgid "(Added in 0.8)"
24904 msgstr ""
24905
24906 #. type: =head2
24907 #: ../src/guestfs-actions.pod:533
24908 msgid "guestfs_aug_match"
24909 msgstr ""
24910
24911 #. type: verbatim
24912 #: ../src/guestfs-actions.pod:535
24913 #, no-wrap
24914 msgid ""
24915 " char **\n"
24916 " guestfs_aug_match (guestfs_h *g,\n"
24917 "                    const char *augpath);\n"
24918 "\n"
24919 msgstr ""
24920
24921 #. type: =head2
24922 #: ../src/guestfs-actions.pod:549
24923 msgid "guestfs_aug_mv"
24924 msgstr ""
24925
24926 #. type: verbatim
24927 #: ../src/guestfs-actions.pod:551
24928 #, no-wrap
24929 msgid ""
24930 " int\n"
24931 " guestfs_aug_mv (guestfs_h *g,\n"
24932 "                 const char *src,\n"
24933 "                 const char *dest);\n"
24934 "\n"
24935 msgstr ""
24936
24937 #. type: =head2
24938 #: ../src/guestfs-actions.pod:563
24939 msgid "guestfs_aug_rm"
24940 msgstr ""
24941
24942 #. type: verbatim
24943 #: ../src/guestfs-actions.pod:565
24944 #, no-wrap
24945 msgid ""
24946 " int\n"
24947 " guestfs_aug_rm (guestfs_h *g,\n"
24948 "                 const char *augpath);\n"
24949 "\n"
24950 msgstr ""
24951
24952 #. type: =head2
24953 #: ../src/guestfs-actions.pod:577
24954 msgid "guestfs_aug_save"
24955 msgstr ""
24956
24957 #. type: verbatim
24958 #: ../src/guestfs-actions.pod:579
24959 #, no-wrap
24960 msgid ""
24961 " int\n"
24962 " guestfs_aug_save (guestfs_h *g);\n"
24963 "\n"
24964 msgstr ""
24965
24966 #. type: textblock
24967 #: ../src/guestfs-actions.pod:584
24968 msgid ""
24969 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24970 "are saved."
24971 msgstr ""
24972
24973 #. type: =head2
24974 #: ../src/guestfs-actions.pod:591
24975 msgid "guestfs_aug_set"
24976 msgstr ""
24977
24978 #. type: verbatim
24979 #: ../src/guestfs-actions.pod:593
24980 #, no-wrap
24981 msgid ""
24982 " int\n"
24983 " guestfs_aug_set (guestfs_h *g,\n"
24984 "                  const char *augpath,\n"
24985 "                  const char *val);\n"
24986 "\n"
24987 msgstr ""
24988
24989 #. type: textblock
24990 #: ../src/guestfs-actions.pod:600
24991 msgid ""
24992 "In the Augeas API, it is possible to clear a node by setting the value to "
24993 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24994 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24995 msgstr ""
24996
24997 #. type: =head2
24998 #: ../src/guestfs-actions.pod:609
24999 msgid "guestfs_available"
25000 msgstr ""
25001
25002 #. type: verbatim
25003 #: ../src/guestfs-actions.pod:611
25004 #, no-wrap
25005 msgid ""
25006 " int\n"
25007 " guestfs_available (guestfs_h *g,\n"
25008 "                    char *const *groups);\n"
25009 "\n"
25010 msgstr ""
25011
25012 #. type: textblock
25013 #: ../src/guestfs-actions.pod:619
25014 msgid ""
25015 "The libguestfs groups, and the functions that those groups correspond to, "
25016 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25017 "runtime by calling C<guestfs_available_all_groups>."
25018 msgstr ""
25019
25020 #. type: textblock
25021 #: ../src/guestfs-actions.pod:643
25022 msgid "You must call C<guestfs_launch> before calling this function."
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../src/guestfs-actions.pod:665
25027 msgid ""
25028 "This call was added in version C<1.0.80>.  In previous versions of "
25029 "libguestfs all you could do would be to speculatively execute a command to "
25030 "find out if the daemon implemented it.  See also C<guestfs_version>."
25031 msgstr ""
25032
25033 #. type: textblock
25034 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25035 msgid "(Added in 1.0.80)"
25036 msgstr ""
25037
25038 #. type: =head2
25039 #: ../src/guestfs-actions.pod:676
25040 msgid "guestfs_available_all_groups"
25041 msgstr ""
25042
25043 #. type: verbatim
25044 #: ../src/guestfs-actions.pod:678
25045 #, no-wrap
25046 msgid ""
25047 " char **\n"
25048 " guestfs_available_all_groups (guestfs_h *g);\n"
25049 "\n"
25050 msgstr ""
25051
25052 #. type: textblock
25053 #: ../src/guestfs-actions.pod:681
25054 msgid ""
25055 "This command returns a list of all optional groups that this daemon knows "
25056 "about.  Note this returns both supported and unsupported groups.  To find "
25057 "out which ones the daemon can actually support you have to call "
25058 "C<guestfs_available> on each member of the returned list."
25059 msgstr ""
25060
25061 #. type: textblock
25062 #: ../src/guestfs-actions.pod:687
25063 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25064 msgstr ""
25065
25066 #. type: textblock
25067 #: ../src/guestfs-actions.pod:693
25068 msgid "(Added in 1.3.15)"
25069 msgstr ""
25070
25071 #. type: =head2
25072 #: ../src/guestfs-actions.pod:695
25073 msgid "guestfs_base64_in"
25074 msgstr ""
25075
25076 #. type: verbatim
25077 #: ../src/guestfs-actions.pod:697
25078 #, no-wrap
25079 msgid ""
25080 " int\n"
25081 " guestfs_base64_in (guestfs_h *g,\n"
25082 "                    const char *base64file,\n"
25083 "                    const char *filename);\n"
25084 "\n"
25085 msgstr ""
25086
25087 #. type: textblock
25088 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25089 msgid "(Added in 1.3.5)"
25090 msgstr ""
25091
25092 #. type: =head2
25093 #: ../src/guestfs-actions.pod:709
25094 msgid "guestfs_base64_out"
25095 msgstr ""
25096
25097 #. type: verbatim
25098 #: ../src/guestfs-actions.pod:711
25099 #, no-wrap
25100 msgid ""
25101 " int\n"
25102 " guestfs_base64_out (guestfs_h *g,\n"
25103 "                     const char *filename,\n"
25104 "                     const char *base64file);\n"
25105 "\n"
25106 msgstr ""
25107
25108 #. type: =head2
25109 #: ../src/guestfs-actions.pod:723
25110 msgid "guestfs_blockdev_flushbufs"
25111 msgstr ""
25112
25113 #. type: verbatim
25114 #: ../src/guestfs-actions.pod:725
25115 #, no-wrap
25116 msgid ""
25117 " int\n"
25118 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25119 "                             const char *device);\n"
25120 "\n"
25121 msgstr ""
25122
25123 #. type: textblock
25124 #: ../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
25125 msgid "(Added in 0.9.3)"
25126 msgstr ""
25127
25128 #. type: =head2
25129 #: ../src/guestfs-actions.pod:738
25130 msgid "guestfs_blockdev_getbsz"
25131 msgstr ""
25132
25133 #. type: verbatim
25134 #: ../src/guestfs-actions.pod:740
25135 #, no-wrap
25136 msgid ""
25137 " int\n"
25138 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25139 "                          const char *device);\n"
25140 "\n"
25141 msgstr ""
25142
25143 #. type: =head2
25144 #: ../src/guestfs-actions.pod:755
25145 msgid "guestfs_blockdev_getro"
25146 msgstr ""
25147
25148 #. type: verbatim
25149 #: ../src/guestfs-actions.pod:757
25150 #, no-wrap
25151 msgid ""
25152 " int\n"
25153 " guestfs_blockdev_getro (guestfs_h *g,\n"
25154 "                         const char *device);\n"
25155 "\n"
25156 msgstr ""
25157
25158 #. type: textblock
25159 #: ../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
25160 msgid "This function returns a C truth value on success or -1 on error."
25161 msgstr ""
25162
25163 #. type: =head2
25164 #: ../src/guestfs-actions.pod:770
25165 msgid "guestfs_blockdev_getsize64"
25166 msgstr ""
25167
25168 #. type: verbatim
25169 #: ../src/guestfs-actions.pod:772
25170 #, no-wrap
25171 msgid ""
25172 " int64_t\n"
25173 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25174 "                             const char *device);\n"
25175 "\n"
25176 msgstr ""
25177
25178 #. type: textblock
25179 #: ../src/guestfs-actions.pod:778
25180 msgid "See also C<guestfs_blockdev_getsz>."
25181 msgstr ""
25182
25183 #. type: =head2
25184 #: ../src/guestfs-actions.pod:786
25185 msgid "guestfs_blockdev_getss"
25186 msgstr ""
25187
25188 #. type: verbatim
25189 #: ../src/guestfs-actions.pod:788
25190 #, no-wrap
25191 msgid ""
25192 " int\n"
25193 " guestfs_blockdev_getss (guestfs_h *g,\n"
25194 "                         const char *device);\n"
25195 "\n"
25196 msgstr ""
25197
25198 #. type: textblock
25199 #: ../src/guestfs-actions.pod:795
25200 msgid ""
25201 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25202 "that)."
25203 msgstr ""
25204
25205 #. type: =head2
25206 #: ../src/guestfs-actions.pod:804
25207 msgid "guestfs_blockdev_getsz"
25208 msgstr ""
25209
25210 #. type: verbatim
25211 #: ../src/guestfs-actions.pod:806
25212 #, no-wrap
25213 msgid ""
25214 " int64_t\n"
25215 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25216 "                         const char *device);\n"
25217 "\n"
25218 msgstr ""
25219
25220 #. type: textblock
25221 #: ../src/guestfs-actions.pod:813
25222 msgid ""
25223 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25224 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25225 msgstr ""
25226
25227 #. type: =head2
25228 #: ../src/guestfs-actions.pod:823
25229 msgid "guestfs_blockdev_rereadpt"
25230 msgstr ""
25231
25232 #. type: verbatim
25233 #: ../src/guestfs-actions.pod:825
25234 #, no-wrap
25235 msgid ""
25236 " int\n"
25237 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25238 "                            const char *device);\n"
25239 "\n"
25240 msgstr ""
25241
25242 #. type: =head2
25243 #: ../src/guestfs-actions.pod:837
25244 msgid "guestfs_blockdev_setbsz"
25245 msgstr ""
25246
25247 #. type: verbatim
25248 #: ../src/guestfs-actions.pod:839
25249 #, no-wrap
25250 msgid ""
25251 " int\n"
25252 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25253 "                          const char *device,\n"
25254 "                          int blocksize);\n"
25255 "\n"
25256 msgstr ""
25257
25258 #. type: =head2
25259 #: ../src/guestfs-actions.pod:855
25260 msgid "guestfs_blockdev_setro"
25261 msgstr ""
25262
25263 #. type: verbatim
25264 #: ../src/guestfs-actions.pod:857
25265 #, no-wrap
25266 msgid ""
25267 " int\n"
25268 " guestfs_blockdev_setro (guestfs_h *g,\n"
25269 "                         const char *device);\n"
25270 "\n"
25271 msgstr ""
25272
25273 #. type: =head2
25274 #: ../src/guestfs-actions.pod:869
25275 msgid "guestfs_blockdev_setrw"
25276 msgstr ""
25277
25278 #. type: verbatim
25279 #: ../src/guestfs-actions.pod:871
25280 #, no-wrap
25281 msgid ""
25282 " int\n"
25283 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25284 "                         const char *device);\n"
25285 "\n"
25286 msgstr ""
25287
25288 #. type: =head2
25289 #: ../src/guestfs-actions.pod:883
25290 msgid "guestfs_btrfs_filesystem_resize"
25291 msgstr ""
25292
25293 #. type: verbatim
25294 #: ../src/guestfs-actions.pod:885
25295 #, no-wrap
25296 msgid ""
25297 " int\n"
25298 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25299 "                                  const char *mountpoint,\n"
25300 "                                  ...);\n"
25301 "\n"
25302 msgstr ""
25303
25304 #. type: verbatim
25305 #: ../src/guestfs-actions.pod:895
25306 #, no-wrap
25307 msgid ""
25308 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25309 "\n"
25310 msgstr ""
25311
25312 #. type: textblock
25313 #: ../src/guestfs-actions.pod:918
25314 msgid "(Added in 1.11.17)"
25315 msgstr ""
25316
25317 #. type: =head2
25318 #: ../src/guestfs-actions.pod:920
25319 msgid "guestfs_btrfs_filesystem_resize_va"
25320 msgstr ""
25321
25322 #. type: verbatim
25323 #: ../src/guestfs-actions.pod:922
25324 #, no-wrap
25325 msgid ""
25326 " int\n"
25327 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25328 "                                     const char *mountpoint,\n"
25329 "                                     va_list args);\n"
25330 "\n"
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../src/guestfs-actions.pod:927
25335 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25336 msgstr ""
25337
25338 #. type: =head2
25339 #: ../src/guestfs-actions.pod:931
25340 msgid "guestfs_btrfs_filesystem_resize_argv"
25341 msgstr ""
25342
25343 #. type: verbatim
25344 #: ../src/guestfs-actions.pod:933
25345 #, no-wrap
25346 msgid ""
25347 " int\n"
25348 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25349 "                                       const char *mountpoint,\n"
25350 "                                       const struct "
25351 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25352 "\n"
25353 msgstr ""
25354
25355 #. type: textblock
25356 #: ../src/guestfs-actions.pod:938
25357 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25358 msgstr ""
25359
25360 #. type: =head2
25361 #: ../src/guestfs-actions.pod:942
25362 msgid "guestfs_case_sensitive_path"
25363 msgstr ""
25364
25365 #. type: verbatim
25366 #: ../src/guestfs-actions.pod:944
25367 #, no-wrap
25368 msgid ""
25369 " char *\n"
25370 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25371 "                              const char *path);\n"
25372 "\n"
25373 msgstr ""
25374
25375 #. type: textblock
25376 #: ../src/guestfs-actions.pod:970
25377 msgid ""
25378 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
25379 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25380 "how the directories were originally created under Windows)."
25381 msgstr ""
25382
25383 #. type: textblock
25384 #: ../src/guestfs-actions.pod:978
25385 msgid "See also C<guestfs_realpath>."
25386 msgstr ""
25387
25388 #. type: textblock
25389 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8125
25390 msgid "(Added in 1.0.75)"
25391 msgstr ""
25392
25393 #. type: =head2
25394 #: ../src/guestfs-actions.pod:985
25395 msgid "guestfs_cat"
25396 msgstr ""
25397
25398 #. type: verbatim
25399 #: ../src/guestfs-actions.pod:987
25400 #, no-wrap
25401 msgid ""
25402 " char *\n"
25403 " guestfs_cat (guestfs_h *g,\n"
25404 "              const char *path);\n"
25405 "\n"
25406 msgstr ""
25407
25408 #. type: textblock
25409 #: ../src/guestfs-actions.pod:993
25410 msgid ""
25411 "Note that this function cannot correctly handle binary files (specifically, "
25412 "files containing C<\\0> character which is treated as end of string).  For "
25413 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25414 "functions which have a more complex interface."
25415 msgstr ""
25416
25417 #. type: textblock
25418 #: ../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
25419 msgid "(Added in 0.4)"
25420 msgstr ""
25421
25422 #. type: =head2
25423 #: ../src/guestfs-actions.pod:1006
25424 msgid "guestfs_checksum"
25425 msgstr ""
25426
25427 #. type: verbatim
25428 #: ../src/guestfs-actions.pod:1008
25429 #, no-wrap
25430 msgid ""
25431 " char *\n"
25432 " guestfs_checksum (guestfs_h *g,\n"
25433 "                   const char *csumtype,\n"
25434 "                   const char *path);\n"
25435 "\n"
25436 msgstr ""
25437
25438 #. type: textblock
25439 #: ../src/guestfs-actions.pod:1054
25440 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25441 msgstr ""
25442
25443 #. type: textblock
25444 #: ../src/guestfs-actions.pod:1056
25445 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25446 msgstr ""
25447
25448 #. type: textblock
25449 #: ../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
25450 msgid "(Added in 1.0.2)"
25451 msgstr ""
25452
25453 #. type: =head2
25454 #: ../src/guestfs-actions.pod:1063
25455 msgid "guestfs_checksum_device"
25456 msgstr ""
25457
25458 #. type: verbatim
25459 #: ../src/guestfs-actions.pod:1065
25460 #, no-wrap
25461 msgid ""
25462 " char *\n"
25463 " guestfs_checksum_device (guestfs_h *g,\n"
25464 "                          const char *csumtype,\n"
25465 "                          const char *device);\n"
25466 "\n"
25467 msgstr ""
25468
25469 #. type: textblock
25470 #: ../src/guestfs-actions.pod:1070
25471 msgid ""
25472 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25473 "device named C<device>.  For the types of checksums supported see the "
25474 "C<guestfs_checksum> command."
25475 msgstr ""
25476
25477 #. type: textblock
25478 #: ../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
25479 msgid "(Added in 1.3.2)"
25480 msgstr ""
25481
25482 #. type: =head2
25483 #: ../src/guestfs-actions.pod:1079
25484 msgid "guestfs_checksums_out"
25485 msgstr ""
25486
25487 #. type: verbatim
25488 #: ../src/guestfs-actions.pod:1081
25489 #, no-wrap
25490 msgid ""
25491 " int\n"
25492 " guestfs_checksums_out (guestfs_h *g,\n"
25493 "                        const char *csumtype,\n"
25494 "                        const char *directory,\n"
25495 "                        const char *sumsfile);\n"
25496 "\n"
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../src/guestfs-actions.pod:1101
25501 msgid "(Added in 1.3.7)"
25502 msgstr ""
25503
25504 #. type: =head2
25505 #: ../src/guestfs-actions.pod:1103
25506 msgid "guestfs_chmod"
25507 msgstr ""
25508
25509 #. type: verbatim
25510 #: ../src/guestfs-actions.pod:1105
25511 #, no-wrap
25512 msgid ""
25513 " int\n"
25514 " guestfs_chmod (guestfs_h *g,\n"
25515 "                int mode,\n"
25516 "                const char *path);\n"
25517 "\n"
25518 msgstr ""
25519
25520 #. type: =head2
25521 #: ../src/guestfs-actions.pod:1123
25522 msgid "guestfs_chown"
25523 msgstr ""
25524
25525 #. type: verbatim
25526 #: ../src/guestfs-actions.pod:1125
25527 #, no-wrap
25528 msgid ""
25529 " int\n"
25530 " guestfs_chown (guestfs_h *g,\n"
25531 "                int owner,\n"
25532 "                int group,\n"
25533 "                const char *path);\n"
25534 "\n"
25535 msgstr ""
25536
25537 #. type: =head2
25538 #: ../src/guestfs-actions.pod:1141
25539 msgid "guestfs_command"
25540 msgstr ""
25541
25542 #. type: verbatim
25543 #: ../src/guestfs-actions.pod:1143
25544 #, no-wrap
25545 msgid ""
25546 " char *\n"
25547 " guestfs_command (guestfs_h *g,\n"
25548 "                  char *const *arguments);\n"
25549 "\n"
25550 msgstr ""
25551
25552 #. type: textblock
25553 #: ../src/guestfs-actions.pod:1152
25554 msgid ""
25555 "The single parameter is an argv-style list of arguments.  The first element "
25556 "is the name of the program to run.  Subsequent elements are parameters.  The "
25557 "list must be non-empty (ie. must contain a program name).  Note that the "
25558 "command runs directly, and is I<not> invoked via the shell (see "
25559 "C<guestfs_sh>)."
25560 msgstr ""
25561
25562 #. type: textblock
25563 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203 ../src/guestfs-actions.pod:2027
25564 msgid "(Added in 0.9.1)"
25565 msgstr ""
25566
25567 #. type: =head2
25568 #: ../src/guestfs-actions.pod:1185
25569 msgid "guestfs_command_lines"
25570 msgstr ""
25571
25572 #. type: verbatim
25573 #: ../src/guestfs-actions.pod:1187
25574 #, no-wrap
25575 msgid ""
25576 " char **\n"
25577 " guestfs_command_lines (guestfs_h *g,\n"
25578 "                        char *const *arguments);\n"
25579 "\n"
25580 msgstr ""
25581
25582 #. type: textblock
25583 #: ../src/guestfs-actions.pod:1191
25584 msgid ""
25585 "This is the same as C<guestfs_command>, but splits the result into a list of "
25586 "lines."
25587 msgstr ""
25588
25589 #. type: textblock
25590 #: ../src/guestfs-actions.pod:1194
25591 msgid "See also: C<guestfs_sh_lines>"
25592 msgstr ""
25593
25594 #. type: =head2
25595 #: ../src/guestfs-actions.pod:1205
25596 msgid "guestfs_compress_device_out"
25597 msgstr ""
25598
25599 #. type: verbatim
25600 #: ../src/guestfs-actions.pod:1207
25601 #, no-wrap
25602 msgid ""
25603 " int\n"
25604 " guestfs_compress_device_out (guestfs_h *g,\n"
25605 "                              const char *ctype,\n"
25606 "                              const char *device,\n"
25607 "                              const char *zdevice,\n"
25608 "                              ...);\n"
25609 "\n"
25610 msgstr ""
25611
25612 #. type: verbatim
25613 #: ../src/guestfs-actions.pod:1219
25614 #, no-wrap
25615 msgid ""
25616 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25617 "\n"
25618 msgstr ""
25619
25620 #. type: textblock
25621 #: ../src/guestfs-actions.pod:1224
25622 msgid ""
25623 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25624 "C<guestfs_compress_out>."
25625 msgstr ""
25626
25627 #. type: textblock
25628 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7051
25629 msgid "(Added in 1.13.15)"
25630 msgstr ""
25631
25632 #. type: =head2
25633 #: ../src/guestfs-actions.pod:1231
25634 msgid "guestfs_compress_device_out_va"
25635 msgstr ""
25636
25637 #. type: verbatim
25638 #: ../src/guestfs-actions.pod:1233
25639 #, no-wrap
25640 msgid ""
25641 " int\n"
25642 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25643 "                                 const char *ctype,\n"
25644 "                                 const char *device,\n"
25645 "                                 const char *zdevice,\n"
25646 "                                 va_list args);\n"
25647 "\n"
25648 msgstr ""
25649
25650 #. type: textblock
25651 #: ../src/guestfs-actions.pod:1240
25652 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25653 msgstr ""
25654
25655 #. type: =head2
25656 #: ../src/guestfs-actions.pod:1244
25657 msgid "guestfs_compress_device_out_argv"
25658 msgstr ""
25659
25660 #. type: verbatim
25661 #: ../src/guestfs-actions.pod:1246
25662 #, no-wrap
25663 msgid ""
25664 " int\n"
25665 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25666 "                                   const char *ctype,\n"
25667 "                                   const char *device,\n"
25668 "                                   const char *zdevice,\n"
25669 "                                   const struct "
25670 "guestfs_compress_device_out_argv *optargs);\n"
25671 "\n"
25672 msgstr ""
25673
25674 #. type: textblock
25675 #: ../src/guestfs-actions.pod:1253
25676 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25677 msgstr ""
25678
25679 #. type: =head2
25680 #: ../src/guestfs-actions.pod:1257
25681 msgid "guestfs_compress_out"
25682 msgstr ""
25683
25684 #. type: verbatim
25685 #: ../src/guestfs-actions.pod:1259
25686 #, no-wrap
25687 msgid ""
25688 " int\n"
25689 " guestfs_compress_out (guestfs_h *g,\n"
25690 "                       const char *ctype,\n"
25691 "                       const char *file,\n"
25692 "                       const char *zfile,\n"
25693 "                       ...);\n"
25694 "\n"
25695 msgstr ""
25696
25697 #. type: verbatim
25698 #: ../src/guestfs-actions.pod:1271
25699 #, no-wrap
25700 msgid ""
25701 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25702 "\n"
25703 msgstr ""
25704
25705 #. type: =head2
25706 #: ../src/guestfs-actions.pod:1290
25707 msgid "guestfs_compress_out_va"
25708 msgstr ""
25709
25710 #. type: verbatim
25711 #: ../src/guestfs-actions.pod:1292
25712 #, no-wrap
25713 msgid ""
25714 " int\n"
25715 " guestfs_compress_out_va (guestfs_h *g,\n"
25716 "                          const char *ctype,\n"
25717 "                          const char *file,\n"
25718 "                          const char *zfile,\n"
25719 "                          va_list args);\n"
25720 "\n"
25721 msgstr ""
25722
25723 #. type: textblock
25724 #: ../src/guestfs-actions.pod:1299
25725 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25726 msgstr ""
25727
25728 #. type: =head2
25729 #: ../src/guestfs-actions.pod:1303
25730 msgid "guestfs_compress_out_argv"
25731 msgstr ""
25732
25733 #. type: verbatim
25734 #: ../src/guestfs-actions.pod:1305
25735 #, no-wrap
25736 msgid ""
25737 " int\n"
25738 " guestfs_compress_out_argv (guestfs_h *g,\n"
25739 "                            const char *ctype,\n"
25740 "                            const char *file,\n"
25741 "                            const char *zfile,\n"
25742 "                            const struct guestfs_compress_out_argv "
25743 "*optargs);\n"
25744 "\n"
25745 msgstr ""
25746
25747 #. type: textblock
25748 #: ../src/guestfs-actions.pod:1312
25749 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25750 msgstr ""
25751
25752 #. type: =head2
25753 #: ../src/guestfs-actions.pod:1316
25754 msgid "guestfs_config"
25755 msgstr ""
25756
25757 #. type: verbatim
25758 #: ../src/guestfs-actions.pod:1318
25759 #, no-wrap
25760 msgid ""
25761 " int\n"
25762 " guestfs_config (guestfs_h *g,\n"
25763 "                 const char *qemuparam,\n"
25764 "                 const char *qemuvalue);\n"
25765 "\n"
25766 msgstr ""
25767
25768 #. type: =head2
25769 #: ../src/guestfs-actions.pod:1336
25770 msgid "guestfs_copy_device_to_device"
25771 msgstr ""
25772
25773 #. type: verbatim
25774 #: ../src/guestfs-actions.pod:1338
25775 #, no-wrap
25776 msgid ""
25777 " int\n"
25778 " guestfs_copy_device_to_device (guestfs_h *g,\n"
25779 "                                const char *src,\n"
25780 "                                const char *dest,\n"
25781 "                                ...);\n"
25782 "\n"
25783 msgstr ""
25784
25785 #. type: verbatim
25786 #: ../src/guestfs-actions.pod:1349
25787 #, no-wrap
25788 msgid ""
25789 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
25790 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
25791 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
25792 "\n"
25793 msgstr ""
25794
25795 #. type: textblock
25796 #: ../src/guestfs-actions.pod:1353
25797 msgid ""
25798 "The four calls C<guestfs_copy_device_to_device>, "
25799 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
25800 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
25801 "destination (device|file)."
25802 msgstr ""
25803
25804 #. type: textblock
25805 #: ../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
25806 msgid ""
25807 "This long-running command can generate progress notification messages so "
25808 "that the caller can display a progress bar or indicator.  To receive these "
25809 "messages, the caller must register a progress event callback.  See "
25810 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
25811 msgstr ""
25812
25813 #. type: textblock
25814 #: ../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
25815 msgid "(Added in 1.13.25)"
25816 msgstr ""
25817
25818 #. type: =head2
25819 #: ../src/guestfs-actions.pod:1381
25820 msgid "guestfs_copy_device_to_device_va"
25821 msgstr ""
25822
25823 #. type: verbatim
25824 #: ../src/guestfs-actions.pod:1383
25825 #, no-wrap
25826 msgid ""
25827 " int\n"
25828 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
25829 "                                   const char *src,\n"
25830 "                                   const char *dest,\n"
25831 "                                   va_list args);\n"
25832 "\n"
25833 msgstr ""
25834
25835 #. type: textblock
25836 #: ../src/guestfs-actions.pod:1389
25837 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
25838 msgstr ""
25839
25840 #. type: =head2
25841 #: ../src/guestfs-actions.pod:1393
25842 msgid "guestfs_copy_device_to_device_argv"
25843 msgstr ""
25844
25845 #. type: verbatim
25846 #: ../src/guestfs-actions.pod:1395
25847 #, no-wrap
25848 msgid ""
25849 " int\n"
25850 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
25851 "                                     const char *src,\n"
25852 "                                     const char *dest,\n"
25853 "                                     const struct "
25854 "guestfs_copy_device_to_device_argv *optargs);\n"
25855 "\n"
25856 msgstr ""
25857
25858 #. type: textblock
25859 #: ../src/guestfs-actions.pod:1401
25860 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
25861 msgstr ""
25862
25863 #. type: =head2
25864 #: ../src/guestfs-actions.pod:1405
25865 msgid "guestfs_copy_device_to_file"
25866 msgstr ""
25867
25868 #. type: verbatim
25869 #: ../src/guestfs-actions.pod:1407
25870 #, no-wrap
25871 msgid ""
25872 " int\n"
25873 " guestfs_copy_device_to_file (guestfs_h *g,\n"
25874 "                              const char *src,\n"
25875 "                              const char *dest,\n"
25876 "                              ...);\n"
25877 "\n"
25878 msgstr ""
25879
25880 #. type: verbatim
25881 #: ../src/guestfs-actions.pod:1418
25882 #, no-wrap
25883 msgid ""
25884 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
25885 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
25886 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
25887 "\n"
25888 msgstr ""
25889
25890 #. type: textblock
25891 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:1528
25892 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
25893 msgstr ""
25894
25895 #. type: =head2
25896 #: ../src/guestfs-actions.pod:1434
25897 msgid "guestfs_copy_device_to_file_va"
25898 msgstr ""
25899
25900 #. type: verbatim
25901 #: ../src/guestfs-actions.pod:1436
25902 #, no-wrap
25903 msgid ""
25904 " int\n"
25905 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
25906 "                                 const char *src,\n"
25907 "                                 const char *dest,\n"
25908 "                                 va_list args);\n"
25909 "\n"
25910 msgstr ""
25911
25912 #. type: textblock
25913 #: ../src/guestfs-actions.pod:1442
25914 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
25915 msgstr ""
25916
25917 #. type: =head2
25918 #: ../src/guestfs-actions.pod:1446
25919 msgid "guestfs_copy_device_to_file_argv"
25920 msgstr ""
25921
25922 #. type: verbatim
25923 #: ../src/guestfs-actions.pod:1448
25924 #, no-wrap
25925 msgid ""
25926 " int\n"
25927 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
25928 "                                   const char *src,\n"
25929 "                                   const char *dest,\n"
25930 "                                   const struct "
25931 "guestfs_copy_device_to_file_argv *optargs);\n"
25932 "\n"
25933 msgstr ""
25934
25935 #. type: textblock
25936 #: ../src/guestfs-actions.pod:1454
25937 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
25938 msgstr ""
25939
25940 #. type: =head2
25941 #: ../src/guestfs-actions.pod:1458
25942 msgid "guestfs_copy_file_to_device"
25943 msgstr ""
25944
25945 #. type: verbatim
25946 #: ../src/guestfs-actions.pod:1460
25947 #, no-wrap
25948 msgid ""
25949 " int\n"
25950 " guestfs_copy_file_to_device (guestfs_h *g,\n"
25951 "                              const char *src,\n"
25952 "                              const char *dest,\n"
25953 "                              ...);\n"
25954 "\n"
25955 msgstr ""
25956
25957 #. type: verbatim
25958 #: ../src/guestfs-actions.pod:1471
25959 #, no-wrap
25960 msgid ""
25961 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
25962 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
25963 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
25964 "\n"
25965 msgstr ""
25966
25967 #. type: =head2
25968 #: ../src/guestfs-actions.pod:1487
25969 msgid "guestfs_copy_file_to_device_va"
25970 msgstr ""
25971
25972 #. type: verbatim
25973 #: ../src/guestfs-actions.pod:1489
25974 #, no-wrap
25975 msgid ""
25976 " int\n"
25977 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
25978 "                                 const char *src,\n"
25979 "                                 const char *dest,\n"
25980 "                                 va_list args);\n"
25981 "\n"
25982 msgstr ""
25983
25984 #. type: textblock
25985 #: ../src/guestfs-actions.pod:1495
25986 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
25987 msgstr ""
25988
25989 #. type: =head2
25990 #: ../src/guestfs-actions.pod:1499
25991 msgid "guestfs_copy_file_to_device_argv"
25992 msgstr ""
25993
25994 #. type: verbatim
25995 #: ../src/guestfs-actions.pod:1501
25996 #, no-wrap
25997 msgid ""
25998 " int\n"
25999 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26000 "                                   const char *src,\n"
26001 "                                   const char *dest,\n"
26002 "                                   const struct "
26003 "guestfs_copy_file_to_device_argv *optargs);\n"
26004 "\n"
26005 msgstr ""
26006
26007 #. type: textblock
26008 #: ../src/guestfs-actions.pod:1507
26009 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26010 msgstr ""
26011
26012 #. type: =head2
26013 #: ../src/guestfs-actions.pod:1511
26014 msgid "guestfs_copy_file_to_file"
26015 msgstr ""
26016
26017 #. type: verbatim
26018 #: ../src/guestfs-actions.pod:1513
26019 #, no-wrap
26020 msgid ""
26021 " int\n"
26022 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26023 "                            const char *src,\n"
26024 "                            const char *dest,\n"
26025 "                            ...);\n"
26026 "\n"
26027 msgstr ""
26028
26029 #. type: verbatim
26030 #: ../src/guestfs-actions.pod:1524
26031 #, no-wrap
26032 msgid ""
26033 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26034 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26035 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26036 "\n"
26037 msgstr ""
26038
26039 #. type: textblock
26040 #: ../src/guestfs-actions.pod:1531
26041 msgid ""
26042 "This is B<not> the function you want for copying files.  This is for copying "
26043 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26044 "C<guestfs_mv> for general file copying and moving functions."
26045 msgstr ""
26046
26047 #. type: =head2
26048 #: ../src/guestfs-actions.pod:1545
26049 msgid "guestfs_copy_file_to_file_va"
26050 msgstr ""
26051
26052 #. type: verbatim
26053 #: ../src/guestfs-actions.pod:1547
26054 #, no-wrap
26055 msgid ""
26056 " int\n"
26057 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26058 "                               const char *src,\n"
26059 "                               const char *dest,\n"
26060 "                               va_list args);\n"
26061 "\n"
26062 msgstr ""
26063
26064 #. type: textblock
26065 #: ../src/guestfs-actions.pod:1553
26066 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26067 msgstr ""
26068
26069 #. type: =head2
26070 #: ../src/guestfs-actions.pod:1557
26071 msgid "guestfs_copy_file_to_file_argv"
26072 msgstr ""
26073
26074 #. type: verbatim
26075 #: ../src/guestfs-actions.pod:1559
26076 #, no-wrap
26077 msgid ""
26078 " int\n"
26079 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26080 "                                 const char *src,\n"
26081 "                                 const char *dest,\n"
26082 "                                 const struct guestfs_copy_file_to_file_argv "
26083 "*optargs);\n"
26084 "\n"
26085 msgstr ""
26086
26087 #. type: textblock
26088 #: ../src/guestfs-actions.pod:1565
26089 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26090 msgstr ""
26091
26092 #. type: =head2
26093 #: ../src/guestfs-actions.pod:1569
26094 msgid "guestfs_copy_size"
26095 msgstr ""
26096
26097 #. type: verbatim
26098 #: ../src/guestfs-actions.pod:1571
26099 #, no-wrap
26100 msgid ""
26101 " int\n"
26102 " guestfs_copy_size (guestfs_h *g,\n"
26103 "                    const char *src,\n"
26104 "                    const char *dest,\n"
26105 "                    int64_t size);\n"
26106 "\n"
26107 msgstr ""
26108
26109 #. type: textblock
26110 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26111 msgid ""
26112 "I<This function is deprecated.> In new code, use the "
26113 "L</guestfs_copy_device_to_device> call instead."
26114 msgstr ""
26115
26116 #. type: textblock
26117 #: ../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
26118 msgid "(Added in 1.0.87)"
26119 msgstr ""
26120
26121 #. type: =head2
26122 #: ../src/guestfs-actions.pod:1599
26123 msgid "guestfs_cp"
26124 msgstr ""
26125
26126 #. type: verbatim
26127 #: ../src/guestfs-actions.pod:1601
26128 #, no-wrap
26129 msgid ""
26130 " int\n"
26131 " guestfs_cp (guestfs_h *g,\n"
26132 "             const char *src,\n"
26133 "             const char *dest);\n"
26134 "\n"
26135 msgstr ""
26136
26137 #. type: textblock
26138 #: ../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
26139 msgid "(Added in 1.0.18)"
26140 msgstr ""
26141
26142 #. type: =head2
26143 #: ../src/guestfs-actions.pod:1613
26144 msgid "guestfs_cp_a"
26145 msgstr ""
26146
26147 #. type: verbatim
26148 #: ../src/guestfs-actions.pod:1615
26149 #, no-wrap
26150 msgid ""
26151 " int\n"
26152 " guestfs_cp_a (guestfs_h *g,\n"
26153 "               const char *src,\n"
26154 "               const char *dest);\n"
26155 "\n"
26156 msgstr ""
26157
26158 #. type: =head2
26159 #: ../src/guestfs-actions.pod:1627
26160 msgid "guestfs_dd"
26161 msgstr ""
26162
26163 #. type: verbatim
26164 #: ../src/guestfs-actions.pod:1629
26165 #, no-wrap
26166 msgid ""
26167 " int\n"
26168 " guestfs_dd (guestfs_h *g,\n"
26169 "             const char *src,\n"
26170 "             const char *dest);\n"
26171 "\n"
26172 msgstr ""
26173
26174 #. type: textblock
26175 #: ../src/guestfs-actions.pod:1646
26176 msgid ""
26177 "If the destination is a device, it must be as large or larger than the "
26178 "source file or device, otherwise the copy will fail.  This command cannot do "
26179 "partial copies (see C<guestfs_copy_device_to_device>)."
26180 msgstr ""
26181
26182 #. type: =head2
26183 #: ../src/guestfs-actions.pod:1655
26184 msgid "guestfs_df"
26185 msgstr ""
26186
26187 #. type: verbatim
26188 #: ../src/guestfs-actions.pod:1657
26189 #, no-wrap
26190 msgid ""
26191 " char *\n"
26192 " guestfs_df (guestfs_h *g);\n"
26193 "\n"
26194 msgstr ""
26195
26196 #. type: textblock
26197 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
26198 msgid ""
26199 "This command is mostly useful for interactive sessions.  It is I<not> "
26200 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26201 "from programs."
26202 msgstr ""
26203
26204 #. type: textblock
26205 #: ../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
26206 msgid "(Added in 1.0.54)"
26207 msgstr ""
26208
26209 #. type: =head2
26210 #: ../src/guestfs-actions.pod:1671
26211 msgid "guestfs_df_h"
26212 msgstr ""
26213
26214 #. type: verbatim
26215 #: ../src/guestfs-actions.pod:1673
26216 #, no-wrap
26217 msgid ""
26218 " char *\n"
26219 " guestfs_df_h (guestfs_h *g);\n"
26220 "\n"
26221 msgstr ""
26222
26223 #. type: =head2
26224 #: ../src/guestfs-actions.pod:1688
26225 msgid "guestfs_dmesg"
26226 msgstr ""
26227
26228 #. type: verbatim
26229 #: ../src/guestfs-actions.pod:1690
26230 #, no-wrap
26231 msgid ""
26232 " char *\n"
26233 " guestfs_dmesg (guestfs_h *g);\n"
26234 "\n"
26235 msgstr ""
26236
26237 #. type: textblock
26238 #: ../src/guestfs-actions.pod:1697
26239 msgid ""
26240 "Another way to get the same information is to enable verbose messages with "
26241 "C<guestfs_set_verbose> or by setting the environment variable "
26242 "C<LIBGUESTFS_DEBUG=1> before running the program."
26243 msgstr ""
26244
26245 #. type: =head2
26246 #: ../src/guestfs-actions.pod:1707
26247 msgid "guestfs_download"
26248 msgstr ""
26249
26250 #. type: verbatim
26251 #: ../src/guestfs-actions.pod:1709
26252 #, no-wrap
26253 msgid ""
26254 " int\n"
26255 " guestfs_download (guestfs_h *g,\n"
26256 "                   const char *remotefilename,\n"
26257 "                   const char *filename);\n"
26258 "\n"
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../src/guestfs-actions.pod:1719
26263 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26264 msgstr ""
26265
26266 #. type: =head2
26267 #: ../src/guestfs-actions.pod:1730
26268 msgid "guestfs_download_offset"
26269 msgstr ""
26270
26271 #. type: verbatim
26272 #: ../src/guestfs-actions.pod:1732
26273 #, no-wrap
26274 msgid ""
26275 " int\n"
26276 " guestfs_download_offset (guestfs_h *g,\n"
26277 "                          const char *remotefilename,\n"
26278 "                          const char *filename,\n"
26279 "                          int64_t offset,\n"
26280 "                          int64_t size);\n"
26281 "\n"
26282 msgstr ""
26283
26284 #. type: textblock
26285 #: ../src/guestfs-actions.pod:1745
26286 msgid ""
26287 "Note that there is no limit on the amount of data that can be downloaded "
26288 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26289 "full amount unless an error occurs."
26290 msgstr ""
26291
26292 #. type: textblock
26293 #: ../src/guestfs-actions.pod:1750
26294 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26295 msgstr ""
26296
26297 #. type: textblock
26298 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8015
26299 msgid "(Added in 1.5.17)"
26300 msgstr ""
26301
26302 #. type: =head2
26303 #: ../src/guestfs-actions.pod:1761
26304 msgid "guestfs_drop_caches"
26305 msgstr ""
26306
26307 #. type: verbatim
26308 #: ../src/guestfs-actions.pod:1763
26309 #, no-wrap
26310 msgid ""
26311 " int\n"
26312 " guestfs_drop_caches (guestfs_h *g,\n"
26313 "                      int whattodrop);\n"
26314 "\n"
26315 msgstr ""
26316
26317 #. type: =head2
26318 #: ../src/guestfs-actions.pod:1781
26319 msgid "guestfs_du"
26320 msgstr ""
26321
26322 #. type: verbatim
26323 #: ../src/guestfs-actions.pod:1783
26324 #, no-wrap
26325 msgid ""
26326 " int64_t\n"
26327 " guestfs_du (guestfs_h *g,\n"
26328 "             const char *path);\n"
26329 "\n"
26330 msgstr ""
26331
26332 #. type: =head2
26333 #: ../src/guestfs-actions.pod:1806
26334 msgid "guestfs_e2fsck_f"
26335 msgstr ""
26336
26337 #. type: verbatim
26338 #: ../src/guestfs-actions.pod:1808
26339 #, no-wrap
26340 msgid ""
26341 " int\n"
26342 " guestfs_e2fsck_f (guestfs_h *g,\n"
26343 "                   const char *device);\n"
26344 "\n"
26345 msgstr ""
26346
26347 #. type: textblock
26348 #: ../src/guestfs-actions.pod:1816
26349 msgid ""
26350 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26351 "Normally you should use C<guestfs_fsck>."
26352 msgstr ""
26353
26354 #. type: textblock
26355 #: ../src/guestfs-actions.pod:1821
26356 msgid "(Added in 1.0.29)"
26357 msgstr ""
26358
26359 #. type: =head2
26360 #: ../src/guestfs-actions.pod:1823
26361 msgid "guestfs_echo_daemon"
26362 msgstr ""
26363
26364 #. type: verbatim
26365 #: ../src/guestfs-actions.pod:1825
26366 #, no-wrap
26367 msgid ""
26368 " char *\n"
26369 " guestfs_echo_daemon (guestfs_h *g,\n"
26370 "                      char *const *words);\n"
26371 "\n"
26372 msgstr ""
26373
26374 #. type: textblock
26375 #: ../src/guestfs-actions.pod:1834
26376 msgid "See also C<guestfs_ping_daemon>."
26377 msgstr ""
26378
26379 #. type: textblock
26380 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:7075
26381 msgid "(Added in 1.0.69)"
26382 msgstr ""
26383
26384 #. type: =head2
26385 #: ../src/guestfs-actions.pod:1841
26386 msgid "guestfs_egrep"
26387 msgstr ""
26388
26389 #. type: verbatim
26390 #: ../src/guestfs-actions.pod:1843
26391 #, no-wrap
26392 msgid ""
26393 " char **\n"
26394 " guestfs_egrep (guestfs_h *g,\n"
26395 "                const char *regex,\n"
26396 "                const char *path);\n"
26397 "\n"
26398 msgstr ""
26399
26400 #. type: textblock
26401 #: ../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
26402 msgid "(Added in 1.0.66)"
26403 msgstr ""
26404
26405 #. type: =head2
26406 #: ../src/guestfs-actions.pod:1860
26407 msgid "guestfs_egrepi"
26408 msgstr ""
26409
26410 #. type: verbatim
26411 #: ../src/guestfs-actions.pod:1862
26412 #, no-wrap
26413 msgid ""
26414 " char **\n"
26415 " guestfs_egrepi (guestfs_h *g,\n"
26416 "                 const char *regex,\n"
26417 "                 const char *path);\n"
26418 "\n"
26419 msgstr ""
26420
26421 #. type: =head2
26422 #: ../src/guestfs-actions.pod:1879
26423 msgid "guestfs_equal"
26424 msgstr ""
26425
26426 #. type: verbatim
26427 #: ../src/guestfs-actions.pod:1881
26428 #, no-wrap
26429 msgid ""
26430 " int\n"
26431 " guestfs_equal (guestfs_h *g,\n"
26432 "                const char *file1,\n"
26433 "                const char *file2);\n"
26434 "\n"
26435 msgstr ""
26436
26437 #. type: =head2
26438 #: ../src/guestfs-actions.pod:1895
26439 msgid "guestfs_exists"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:1897
26444 #, no-wrap
26445 msgid ""
26446 " int\n"
26447 " guestfs_exists (guestfs_h *g,\n"
26448 "                 const char *path);\n"
26449 "\n"
26450 msgstr ""
26451
26452 #. type: textblock
26453 #: ../src/guestfs-actions.pod:1904
26454 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26455 msgstr ""
26456
26457 #. type: =head2
26458 #: ../src/guestfs-actions.pod:1910
26459 msgid "guestfs_fallocate"
26460 msgstr ""
26461
26462 #. type: verbatim
26463 #: ../src/guestfs-actions.pod:1912
26464 #, no-wrap
26465 msgid ""
26466 " int\n"
26467 " guestfs_fallocate (guestfs_h *g,\n"
26468 "                    const char *path,\n"
26469 "                    int len);\n"
26470 "\n"
26471 msgstr ""
26472
26473 #. type: textblock
26474 #: ../src/guestfs-actions.pod:1917
26475 msgid ""
26476 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26477 "call instead."
26478 msgstr ""
26479
26480 #. type: =head2
26481 #: ../src/guestfs-actions.pod:1936
26482 msgid "guestfs_fallocate64"
26483 msgstr ""
26484
26485 #. type: verbatim
26486 #: ../src/guestfs-actions.pod:1938
26487 #, no-wrap
26488 msgid ""
26489 " int\n"
26490 " guestfs_fallocate64 (guestfs_h *g,\n"
26491 "                      const char *path,\n"
26492 "                      int64_t len);\n"
26493 "\n"
26494 msgstr ""
26495
26496 #. type: textblock
26497 #: ../src/guestfs-actions.pod:1947
26498 msgid ""
26499 "Note that this call allocates disk blocks for the file.  To create a sparse "
26500 "file use C<guestfs_truncate_size> instead."
26501 msgstr ""
26502
26503 #. type: textblock
26504 #: ../src/guestfs-actions.pod:1950
26505 msgid ""
26506 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26507 "oversight it only allowed 30 bit lengths to be specified, effectively "
26508 "limiting the maximum size of files created through that call to 1GB."
26509 msgstr ""
26510
26511 #. type: textblock
26512 #: ../src/guestfs-actions.pod:1961
26513 msgid "(Added in 1.3.17)"
26514 msgstr ""
26515
26516 #. type: =head2
26517 #: ../src/guestfs-actions.pod:1963
26518 msgid "guestfs_fgrep"
26519 msgstr ""
26520
26521 #. type: verbatim
26522 #: ../src/guestfs-actions.pod:1965
26523 #, no-wrap
26524 msgid ""
26525 " char **\n"
26526 " guestfs_fgrep (guestfs_h *g,\n"
26527 "                const char *pattern,\n"
26528 "                const char *path);\n"
26529 "\n"
26530 msgstr ""
26531
26532 #. type: =head2
26533 #: ../src/guestfs-actions.pod:1982
26534 msgid "guestfs_fgrepi"
26535 msgstr ""
26536
26537 #. type: verbatim
26538 #: ../src/guestfs-actions.pod:1984
26539 #, no-wrap
26540 msgid ""
26541 " char **\n"
26542 " guestfs_fgrepi (guestfs_h *g,\n"
26543 "                 const char *pattern,\n"
26544 "                 const char *path);\n"
26545 "\n"
26546 msgstr ""
26547
26548 #. type: =head2
26549 #: ../src/guestfs-actions.pod:2001
26550 msgid "guestfs_file"
26551 msgstr ""
26552
26553 #. type: verbatim
26554 #: ../src/guestfs-actions.pod:2003
26555 #, no-wrap
26556 msgid ""
26557 " char *\n"
26558 " guestfs_file (guestfs_h *g,\n"
26559 "               const char *path);\n"
26560 "\n"
26561 msgstr ""
26562
26563 #. type: textblock
26564 #: ../src/guestfs-actions.pod:2021
26565 msgid ""
26566 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26567 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26568 msgstr ""
26569
26570 #. type: =head2
26571 #: ../src/guestfs-actions.pod:2029
26572 msgid "guestfs_file_architecture"
26573 msgstr ""
26574
26575 #. type: verbatim
26576 #: ../src/guestfs-actions.pod:2031
26577 #, no-wrap
26578 msgid ""
26579 " char *\n"
26580 " guestfs_file_architecture (guestfs_h *g,\n"
26581 "                            const char *filename);\n"
26582 "\n"
26583 msgstr ""
26584
26585 #. type: textblock
26586 #: ../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
26587 msgid "(Added in 1.5.3)"
26588 msgstr ""
26589
26590 #. type: =head2
26591 #: ../src/guestfs-actions.pod:2141
26592 msgid "guestfs_filesize"
26593 msgstr ""
26594
26595 #. type: verbatim
26596 #: ../src/guestfs-actions.pod:2143
26597 #, no-wrap
26598 msgid ""
26599 " int64_t\n"
26600 " guestfs_filesize (guestfs_h *g,\n"
26601 "                   const char *file);\n"
26602 "\n"
26603 msgstr ""
26604
26605 #. type: textblock
26606 #: ../src/guestfs-actions.pod:2149
26607 msgid ""
26608 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26609 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26610 "devices, use C<guestfs_blockdev_getsize64>."
26611 msgstr ""
26612
26613 #. type: textblock
26614 #: ../src/guestfs-actions.pod:2155
26615 msgid "(Added in 1.0.82)"
26616 msgstr ""
26617
26618 #. type: =head2
26619 #: ../src/guestfs-actions.pod:2157
26620 msgid "guestfs_fill"
26621 msgstr ""
26622
26623 #. type: verbatim
26624 #: ../src/guestfs-actions.pod:2159
26625 #, no-wrap
26626 msgid ""
26627 " int\n"
26628 " guestfs_fill (guestfs_h *g,\n"
26629 "               int c,\n"
26630 "               int len,\n"
26631 "               const char *path);\n"
26632 "\n"
26633 msgstr ""
26634
26635 #. type: textblock
26636 #: ../src/guestfs-actions.pod:2169
26637 msgid ""
26638 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26639 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26640 "bytes use C<guestfs_fill_pattern>."
26641 msgstr ""
26642
26643 #. type: textblock
26644 #: ../src/guestfs-actions.pod:2181
26645 msgid "(Added in 1.0.79)"
26646 msgstr ""
26647
26648 #. type: =head2
26649 #: ../src/guestfs-actions.pod:2183
26650 msgid "guestfs_fill_pattern"
26651 msgstr ""
26652
26653 #. type: verbatim
26654 #: ../src/guestfs-actions.pod:2185
26655 #, no-wrap
26656 msgid ""
26657 " int\n"
26658 " guestfs_fill_pattern (guestfs_h *g,\n"
26659 "                       const char *pattern,\n"
26660 "                       int len,\n"
26661 "                       const char *path);\n"
26662 "\n"
26663 msgstr ""
26664
26665 #. type: textblock
26666 #: ../src/guestfs-actions.pod:2191
26667 msgid ""
26668 "This function is like C<guestfs_fill> except that it creates a new file of "
26669 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26670 "pattern is truncated if necessary to ensure the length of the file is "
26671 "exactly C<len> bytes."
26672 msgstr ""
26673
26674 #. type: textblock
26675 #: ../src/guestfs-actions.pod:2203
26676 msgid "(Added in 1.3.12)"
26677 msgstr ""
26678
26679 #. type: =head2
26680 #: ../src/guestfs-actions.pod:2205
26681 msgid "guestfs_find"
26682 msgstr ""
26683
26684 #. type: verbatim
26685 #: ../src/guestfs-actions.pod:2207
26686 #, no-wrap
26687 msgid ""
26688 " char **\n"
26689 " guestfs_find (guestfs_h *g,\n"
26690 "               const char *directory);\n"
26691 "\n"
26692 msgstr ""
26693
26694 #. type: textblock
26695 #: ../src/guestfs-actions.pod:2223
26696 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26697 msgstr ""
26698
26699 #. type: textblock
26700 #: ../src/guestfs-actions.pod:2236
26701 msgid "See also C<guestfs_find0>."
26702 msgstr ""
26703
26704 #. type: textblock
26705 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:6623
26706 msgid "(Added in 1.0.27)"
26707 msgstr ""
26708
26709 #. type: =head2
26710 #: ../src/guestfs-actions.pod:2247
26711 msgid "guestfs_find0"
26712 msgstr ""
26713
26714 #. type: verbatim
26715 #: ../src/guestfs-actions.pod:2249
26716 #, no-wrap
26717 msgid ""
26718 " int\n"
26719 " guestfs_find0 (guestfs_h *g,\n"
26720 "                const char *directory,\n"
26721 "                const char *files);\n"
26722 "\n"
26723 msgstr ""
26724
26725 #. type: textblock
26726 #: ../src/guestfs-actions.pod:2258
26727 msgid ""
26728 "This command works the same way as C<guestfs_find> with the following "
26729 "exceptions:"
26730 msgstr ""
26731
26732 #. type: textblock
26733 #: ../src/guestfs-actions.pod:2285
26734 msgid "(Added in 1.0.74)"
26735 msgstr ""
26736
26737 #. type: =head2
26738 #: ../src/guestfs-actions.pod:2287
26739 msgid "guestfs_findfs_label"
26740 msgstr ""
26741
26742 #. type: verbatim
26743 #: ../src/guestfs-actions.pod:2289
26744 #, no-wrap
26745 msgid ""
26746 " char *\n"
26747 " guestfs_findfs_label (guestfs_h *g,\n"
26748 "                       const char *label);\n"
26749 "\n"
26750 msgstr ""
26751
26752 #. type: textblock
26753 #: ../src/guestfs-actions.pod:2297
26754 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26755 msgstr ""
26756
26757 #. type: =head2
26758 #: ../src/guestfs-actions.pod:2304
26759 msgid "guestfs_findfs_uuid"
26760 msgstr ""
26761
26762 #. type: verbatim
26763 #: ../src/guestfs-actions.pod:2306
26764 #, no-wrap
26765 msgid ""
26766 " char *\n"
26767 " guestfs_findfs_uuid (guestfs_h *g,\n"
26768 "                      const char *uuid);\n"
26769 "\n"
26770 msgstr ""
26771
26772 #. type: textblock
26773 #: ../src/guestfs-actions.pod:2314
26774 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26775 msgstr ""
26776
26777 #. type: =head2
26778 #: ../src/guestfs-actions.pod:2321
26779 msgid "guestfs_fsck"
26780 msgstr ""
26781
26782 #. type: verbatim
26783 #: ../src/guestfs-actions.pod:2323
26784 #, no-wrap
26785 msgid ""
26786 " int\n"
26787 " guestfs_fsck (guestfs_h *g,\n"
26788 "               const char *fstype,\n"
26789 "               const char *device);\n"
26790 "\n"
26791 msgstr ""
26792
26793 #. type: textblock
26794 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8522
26795 msgid "(Added in 1.0.16)"
26796 msgstr ""
26797
26798 #. type: =head2
26799 #: ../src/guestfs-actions.pod:2360
26800 msgid "guestfs_get_append"
26801 msgstr ""
26802
26803 #. type: verbatim
26804 #: ../src/guestfs-actions.pod:2362
26805 #, no-wrap
26806 msgid ""
26807 " const char *\n"
26808 " guestfs_get_append (guestfs_h *g);\n"
26809 "\n"
26810 msgstr ""
26811
26812 #. type: textblock
26813 #: ../src/guestfs-actions.pod:2370
26814 msgid ""
26815 "This function returns a string which may be NULL.  There is no way to return "
26816 "an error from this function.  The string is owned by the guest handle and "
26817 "must I<not> be freed."
26818 msgstr ""
26819
26820 #. type: textblock
26821 #: ../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
26822 msgid "(Added in 1.0.26)"
26823 msgstr ""
26824
26825 #. type: =head2
26826 #: ../src/guestfs-actions.pod:2376
26827 msgid "guestfs_get_attach_method"
26828 msgstr ""
26829
26830 #. type: verbatim
26831 #: ../src/guestfs-actions.pod:2378
26832 #, no-wrap
26833 msgid ""
26834 " char *\n"
26835 " guestfs_get_attach_method (guestfs_h *g);\n"
26836 "\n"
26837 msgstr ""
26838
26839 #. type: textblock
26840 #: ../src/guestfs-actions.pod:2381
26841 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26842 msgstr ""
26843
26844 #. type: textblock
26845 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6810
26846 msgid "(Added in 1.9.8)"
26847 msgstr ""
26848
26849 #. type: =head2
26850 #: ../src/guestfs-actions.pod:2388
26851 msgid "guestfs_get_autosync"
26852 msgstr ""
26853
26854 #. type: verbatim
26855 #: ../src/guestfs-actions.pod:2390
26856 #, no-wrap
26857 msgid ""
26858 " int\n"
26859 " guestfs_get_autosync (guestfs_h *g);\n"
26860 "\n"
26861 msgstr ""
26862
26863 #. type: =head2
26864 #: ../src/guestfs-actions.pod:2399
26865 msgid "guestfs_get_direct"
26866 msgstr ""
26867
26868 #. type: verbatim
26869 #: ../src/guestfs-actions.pod:2401
26870 #, no-wrap
26871 msgid ""
26872 " int\n"
26873 " guestfs_get_direct (guestfs_h *g);\n"
26874 "\n"
26875 msgstr ""
26876
26877 #. type: textblock
26878 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6851
26879 msgid "(Added in 1.0.72)"
26880 msgstr ""
26881
26882 #. type: =head2
26883 #: ../src/guestfs-actions.pod:2410
26884 msgid "guestfs_get_e2label"
26885 msgstr ""
26886
26887 #. type: verbatim
26888 #: ../src/guestfs-actions.pod:2412
26889 #, no-wrap
26890 msgid ""
26891 " char *\n"
26892 " guestfs_get_e2label (guestfs_h *g,\n"
26893 "                      const char *device);\n"
26894 "\n"
26895 msgstr ""
26896
26897 #. type: textblock
26898 #: ../src/guestfs-actions.pod:2416
26899 msgid ""
26900 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26901 "call instead."
26902 msgstr ""
26903
26904 #. type: textblock
26905 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6888
26906 msgid "(Added in 1.0.15)"
26907 msgstr ""
26908
26909 #. type: =head2
26910 #: ../src/guestfs-actions.pod:2431
26911 msgid "guestfs_get_e2uuid"
26912 msgstr ""
26913
26914 #. type: verbatim
26915 #: ../src/guestfs-actions.pod:2433
26916 #, no-wrap
26917 msgid ""
26918 " char *\n"
26919 " guestfs_get_e2uuid (guestfs_h *g,\n"
26920 "                     const char *device);\n"
26921 "\n"
26922 msgstr ""
26923
26924 #. type: textblock
26925 #: ../src/guestfs-actions.pod:2437
26926 msgid ""
26927 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26928 "call instead."
26929 msgstr ""
26930
26931 #. type: =head2
26932 #: ../src/guestfs-actions.pod:2452
26933 msgid "guestfs_get_memsize"
26934 msgstr ""
26935
26936 #. type: verbatim
26937 #: ../src/guestfs-actions.pod:2454
26938 #, no-wrap
26939 msgid ""
26940 " int\n"
26941 " guestfs_get_memsize (guestfs_h *g);\n"
26942 "\n"
26943 msgstr ""
26944
26945 #. type: textblock
26946 #: ../src/guestfs-actions.pod:2460
26947 msgid ""
26948 "If C<guestfs_set_memsize> was not called on this handle, and if "
26949 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26950 "value for memsize."
26951 msgstr ""
26952
26953 #. type: textblock
26954 #: ../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
26955 msgid "(Added in 1.0.55)"
26956 msgstr ""
26957
26958 #. type: =head2
26959 #: ../src/guestfs-actions.pod:2471
26960 msgid "guestfs_get_network"
26961 msgstr ""
26962
26963 #. type: verbatim
26964 #: ../src/guestfs-actions.pod:2473
26965 #, no-wrap
26966 msgid ""
26967 " int\n"
26968 " guestfs_get_network (guestfs_h *g);\n"
26969 "\n"
26970 msgstr ""
26971
26972 #. type: textblock
26973 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6928
26974 msgid "(Added in 1.5.4)"
26975 msgstr ""
26976
26977 #. type: =head2
26978 #: ../src/guestfs-actions.pod:2482
26979 msgid "guestfs_get_path"
26980 msgstr ""
26981
26982 #. type: verbatim
26983 #: ../src/guestfs-actions.pod:2484
26984 #, no-wrap
26985 msgid ""
26986 " const char *\n"
26987 " guestfs_get_path (guestfs_h *g);\n"
26988 "\n"
26989 msgstr ""
26990
26991 #. type: textblock
26992 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
26993 msgid ""
26994 "This function returns a string, or NULL on error.  The string is owned by "
26995 "the guest handle and must I<not> be freed."
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../src/guestfs-actions.pod:2497
27000 msgid "guestfs_get_pgroup"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../src/guestfs-actions.pod:2499
27005 #, no-wrap
27006 msgid ""
27007 " int\n"
27008 " guestfs_get_pgroup (guestfs_h *g);\n"
27009 "\n"
27010 msgstr ""
27011
27012 #. type: textblock
27013 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:8423
27014 msgid "(Added in 1.11.18)"
27015 msgstr ""
27016
27017 #. type: =head2
27018 #: ../src/guestfs-actions.pod:2508
27019 msgid "guestfs_get_pid"
27020 msgstr ""
27021
27022 #. type: verbatim
27023 #: ../src/guestfs-actions.pod:2510
27024 #, no-wrap
27025 msgid ""
27026 " int\n"
27027 " guestfs_get_pid (guestfs_h *g);\n"
27028 "\n"
27029 msgstr ""
27030
27031 #. type: textblock
27032 #: ../src/guestfs-actions.pod:2520
27033 msgid "(Added in 1.0.56)"
27034 msgstr ""
27035
27036 #. type: =head2
27037 #: ../src/guestfs-actions.pod:2522
27038 msgid "guestfs_get_qemu"
27039 msgstr ""
27040
27041 #. type: verbatim
27042 #: ../src/guestfs-actions.pod:2524
27043 #, no-wrap
27044 msgid ""
27045 " const char *\n"
27046 " guestfs_get_qemu (guestfs_h *g);\n"
27047 "\n"
27048 msgstr ""
27049
27050 #. type: textblock
27051 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6992
27052 msgid "(Added in 1.0.6)"
27053 msgstr ""
27054
27055 #. type: =head2
27056 #: ../src/guestfs-actions.pod:2537
27057 msgid "guestfs_get_recovery_proc"
27058 msgstr ""
27059
27060 #. type: verbatim
27061 #: ../src/guestfs-actions.pod:2539
27062 #, no-wrap
27063 msgid ""
27064 " int\n"
27065 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27066 "\n"
27067 msgstr ""
27068
27069 #. type: textblock
27070 #: ../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
27071 msgid "(Added in 1.0.77)"
27072 msgstr ""
27073
27074 #. type: =head2
27075 #: ../src/guestfs-actions.pod:2548
27076 msgid "guestfs_get_selinux"
27077 msgstr ""
27078
27079 #. type: verbatim
27080 #: ../src/guestfs-actions.pod:2550
27081 #, no-wrap
27082 msgid ""
27083 " int\n"
27084 " guestfs_get_selinux (guestfs_h *g);\n"
27085 "\n"
27086 msgstr ""
27087
27088 #. type: textblock
27089 #: ../src/guestfs-actions.pod:2553
27090 msgid ""
27091 "This returns the current setting of the selinux flag which is passed to the "
27092 "appliance at boot time.  See C<guestfs_set_selinux>."
27093 msgstr ""
27094
27095 #. type: textblock
27096 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635 ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7109
27097 msgid "(Added in 1.0.67)"
27098 msgstr ""
27099
27100 #. type: =head2
27101 #: ../src/guestfs-actions.pod:2563
27102 msgid "guestfs_get_smp"
27103 msgstr ""
27104
27105 #. type: verbatim
27106 #: ../src/guestfs-actions.pod:2565
27107 #, no-wrap
27108 msgid ""
27109 " int\n"
27110 " guestfs_get_smp (guestfs_h *g);\n"
27111 "\n"
27112 msgstr ""
27113
27114 #. type: =head2
27115 #: ../src/guestfs-actions.pod:2574
27116 msgid "guestfs_get_state"
27117 msgstr ""
27118
27119 #. type: verbatim
27120 #: ../src/guestfs-actions.pod:2576
27121 #, no-wrap
27122 msgid ""
27123 " int\n"
27124 " guestfs_get_state (guestfs_h *g);\n"
27125 "\n"
27126 msgstr ""
27127
27128 #. type: =head2
27129 #: ../src/guestfs-actions.pod:2588
27130 msgid "guestfs_get_trace"
27131 msgstr ""
27132
27133 #. type: verbatim
27134 #: ../src/guestfs-actions.pod:2590
27135 #, no-wrap
27136 msgid ""
27137 " int\n"
27138 " guestfs_get_trace (guestfs_h *g);\n"
27139 "\n"
27140 msgstr ""
27141
27142 #. type: =head2
27143 #: ../src/guestfs-actions.pod:2599
27144 msgid "guestfs_get_umask"
27145 msgstr ""
27146
27147 #. type: verbatim
27148 #: ../src/guestfs-actions.pod:2601
27149 #, no-wrap
27150 msgid ""
27151 " int\n"
27152 " guestfs_get_umask (guestfs_h *g);\n"
27153 "\n"
27154 msgstr ""
27155
27156 #. type: textblock
27157 #: ../src/guestfs-actions.pod:2604
27158 msgid ""
27159 "Return the current umask.  By default the umask is C<022> unless it has been "
27160 "set by calling C<guestfs_umask>."
27161 msgstr ""
27162
27163 #. type: =head2
27164 #: ../src/guestfs-actions.pod:2611
27165 msgid "guestfs_get_verbose"
27166 msgstr ""
27167
27168 #. type: verbatim
27169 #: ../src/guestfs-actions.pod:2613
27170 #, no-wrap
27171 msgid ""
27172 " int\n"
27173 " guestfs_get_verbose (guestfs_h *g);\n"
27174 "\n"
27175 msgstr ""
27176
27177 #. type: =head2
27178 #: ../src/guestfs-actions.pod:2622
27179 msgid "guestfs_getcon"
27180 msgstr ""
27181
27182 #. type: verbatim
27183 #: ../src/guestfs-actions.pod:2624
27184 #, no-wrap
27185 msgid ""
27186 " char *\n"
27187 " guestfs_getcon (guestfs_h *g);\n"
27188 "\n"
27189 msgstr ""
27190
27191 #. type: textblock
27192 #: ../src/guestfs-actions.pod:2629
27193 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27194 msgstr ""
27195
27196 #. type: =head2
27197 #: ../src/guestfs-actions.pod:2637
27198 msgid "guestfs_getxattr"
27199 msgstr ""
27200
27201 #. type: verbatim
27202 #: ../src/guestfs-actions.pod:2639
27203 #, no-wrap
27204 msgid ""
27205 " char *\n"
27206 " guestfs_getxattr (guestfs_h *g,\n"
27207 "                   const char *path,\n"
27208 "                   const char *name,\n"
27209 "                   size_t *size_r);\n"
27210 "\n"
27211 msgstr ""
27212
27213 #. type: textblock
27214 #: ../src/guestfs-actions.pod:2645
27215 msgid ""
27216 "Get a single extended attribute from file C<path> named C<name>.  This call "
27217 "follows symlinks.  If you want to lookup an extended attribute for the "
27218 "symlink itself, use C<guestfs_lgetxattr>."
27219 msgstr ""
27220
27221 #. type: textblock
27222 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
27223 msgid ""
27224 "Normally it is better to get all extended attributes from a file in one go "
27225 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27226 "implementations are buggy and do not provide a way to list out attributes.  "
27227 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27228 "extended attributes you want in advance and call this function."
27229 msgstr ""
27230
27231 #. type: textblock
27232 #: ../src/guestfs-actions.pod:2659
27233 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27234 msgstr ""
27235
27236 #. type: textblock
27237 #: ../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
27238 msgid ""
27239 "This function returns a buffer, or NULL on error.  The size of the returned "
27240 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27241 "after use>."
27242 msgstr ""
27243
27244 #. type: textblock
27245 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
27246 msgid "(Added in 1.7.24)"
27247 msgstr ""
27248
27249 #. type: =head2
27250 #: ../src/guestfs-actions.pod:2667
27251 msgid "guestfs_getxattrs"
27252 msgstr ""
27253
27254 #. type: verbatim
27255 #: ../src/guestfs-actions.pod:2669
27256 #, no-wrap
27257 msgid ""
27258 " struct guestfs_xattr_list *\n"
27259 " guestfs_getxattrs (guestfs_h *g,\n"
27260 "                    const char *path);\n"
27261 "\n"
27262 msgstr ""
27263
27264 #. type: textblock
27265 #: ../src/guestfs-actions.pod:2679
27266 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27267 msgstr ""
27268
27269 #. type: textblock
27270 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4862
27271 msgid ""
27272 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27273 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27274 msgstr ""
27275
27276 #. type: textblock
27277 #: ../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
27278 msgid "(Added in 1.0.59)"
27279 msgstr ""
27280
27281 #. type: =head2
27282 #: ../src/guestfs-actions.pod:2687
27283 msgid "guestfs_glob_expand"
27284 msgstr ""
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:2689
27288 #, no-wrap
27289 msgid ""
27290 " char **\n"
27291 " guestfs_glob_expand (guestfs_h *g,\n"
27292 "                      const char *pattern);\n"
27293 "\n"
27294 msgstr ""
27295
27296 #. type: textblock
27297 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7312 ../src/guestfs-actions.pod:7329
27298 msgid "(Added in 1.0.50)"
27299 msgstr ""
27300
27301 #. type: =head2
27302 #: ../src/guestfs-actions.pod:2710
27303 msgid "guestfs_grep"
27304 msgstr ""
27305
27306 #. type: verbatim
27307 #: ../src/guestfs-actions.pod:2712
27308 #, no-wrap
27309 msgid ""
27310 " char **\n"
27311 " guestfs_grep (guestfs_h *g,\n"
27312 "               const char *regex,\n"
27313 "               const char *path);\n"
27314 "\n"
27315 msgstr ""
27316
27317 #. type: =head2
27318 #: ../src/guestfs-actions.pod:2729
27319 msgid "guestfs_grepi"
27320 msgstr ""
27321
27322 #. type: verbatim
27323 #: ../src/guestfs-actions.pod:2731
27324 #, no-wrap
27325 msgid ""
27326 " char **\n"
27327 " guestfs_grepi (guestfs_h *g,\n"
27328 "                const char *regex,\n"
27329 "                const char *path);\n"
27330 "\n"
27331 msgstr ""
27332
27333 #. type: =head2
27334 #: ../src/guestfs-actions.pod:2748
27335 msgid "guestfs_grub_install"
27336 msgstr ""
27337
27338 #. type: verbatim
27339 #: ../src/guestfs-actions.pod:2750
27340 #, no-wrap
27341 msgid ""
27342 " int\n"
27343 " guestfs_grub_install (guestfs_h *g,\n"
27344 "                       const char *root,\n"
27345 "                       const char *device);\n"
27346 "\n"
27347 msgstr ""
27348
27349 #. type: textblock
27350 #: ../src/guestfs-actions.pod:2793
27351 msgid "(Added in 1.0.17)"
27352 msgstr ""
27353
27354 #. type: =head2
27355 #: ../src/guestfs-actions.pod:2795
27356 msgid "guestfs_head"
27357 msgstr ""
27358
27359 #. type: verbatim
27360 #: ../src/guestfs-actions.pod:2797
27361 #, no-wrap
27362 msgid ""
27363 " char **\n"
27364 " guestfs_head (guestfs_h *g,\n"
27365 "               const char *path);\n"
27366 "\n"
27367 msgstr ""
27368
27369 #. type: =head2
27370 #: ../src/guestfs-actions.pod:2813
27371 msgid "guestfs_head_n"
27372 msgstr ""
27373
27374 #. type: verbatim
27375 #: ../src/guestfs-actions.pod:2815
27376 #, no-wrap
27377 msgid ""
27378 " char **\n"
27379 " guestfs_head_n (guestfs_h *g,\n"
27380 "                 int nrlines,\n"
27381 "                 const char *path);\n"
27382 "\n"
27383 msgstr ""
27384
27385 #. type: =head2
27386 #: ../src/guestfs-actions.pod:2837
27387 msgid "guestfs_hexdump"
27388 msgstr ""
27389
27390 #. type: verbatim
27391 #: ../src/guestfs-actions.pod:2839
27392 #, no-wrap
27393 msgid ""
27394 " char *\n"
27395 " guestfs_hexdump (guestfs_h *g,\n"
27396 "                  const char *path);\n"
27397 "\n"
27398 msgstr ""
27399
27400 #. type: textblock
27401 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7393 ../src/guestfs-actions.pod:7448
27402 msgid "(Added in 1.0.22)"
27403 msgstr ""
27404
27405 #. type: =head2
27406 #: ../src/guestfs-actions.pod:2854
27407 msgid "guestfs_initrd_cat"
27408 msgstr ""
27409
27410 #. type: verbatim
27411 #: ../src/guestfs-actions.pod:2856
27412 #, no-wrap
27413 msgid ""
27414 " char *\n"
27415 " guestfs_initrd_cat (guestfs_h *g,\n"
27416 "                     const char *initrdpath,\n"
27417 "                     const char *filename,\n"
27418 "                     size_t *size_r);\n"
27419 "\n"
27420 msgstr ""
27421
27422 #. type: textblock
27423 #: ../src/guestfs-actions.pod:2872
27424 msgid "See also C<guestfs_initrd_list>."
27425 msgstr ""
27426
27427 #. type: =head2
27428 #: ../src/guestfs-actions.pod:2883
27429 msgid "guestfs_initrd_list"
27430 msgstr ""
27431
27432 #. type: verbatim
27433 #: ../src/guestfs-actions.pod:2885
27434 #, no-wrap
27435 msgid ""
27436 " char **\n"
27437 " guestfs_initrd_list (guestfs_h *g,\n"
27438 "                      const char *path);\n"
27439 "\n"
27440 msgstr ""
27441
27442 #. type: =head2
27443 #: ../src/guestfs-actions.pod:2905
27444 msgid "guestfs_inotify_add_watch"
27445 msgstr ""
27446
27447 #. type: verbatim
27448 #: ../src/guestfs-actions.pod:2907
27449 #, no-wrap
27450 msgid ""
27451 " int64_t\n"
27452 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27453 "                            const char *path,\n"
27454 "                            int mask);\n"
27455 "\n"
27456 msgstr ""
27457
27458 #. type: =head2
27459 #: ../src/guestfs-actions.pod:2926
27460 msgid "guestfs_inotify_close"
27461 msgstr ""
27462
27463 #. type: verbatim
27464 #: ../src/guestfs-actions.pod:2928
27465 #, no-wrap
27466 msgid ""
27467 " int\n"
27468 " guestfs_inotify_close (guestfs_h *g);\n"
27469 "\n"
27470 msgstr ""
27471
27472 #. type: =head2
27473 #: ../src/guestfs-actions.pod:2939
27474 msgid "guestfs_inotify_files"
27475 msgstr ""
27476
27477 #. type: verbatim
27478 #: ../src/guestfs-actions.pod:2941
27479 #, no-wrap
27480 msgid ""
27481 " char **\n"
27482 " guestfs_inotify_files (guestfs_h *g);\n"
27483 "\n"
27484 msgstr ""
27485
27486 #. type: textblock
27487 #: ../src/guestfs-actions.pod:2944
27488 msgid ""
27489 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27490 "returns a list of pathnames of objects that were touched.  The returned "
27491 "pathnames are sorted and deduplicated."
27492 msgstr ""
27493
27494 #. type: =head2
27495 #: ../src/guestfs-actions.pod:2954
27496 msgid "guestfs_inotify_init"
27497 msgstr ""
27498
27499 #. type: verbatim
27500 #: ../src/guestfs-actions.pod:2956
27501 #, no-wrap
27502 msgid ""
27503 " int\n"
27504 " guestfs_inotify_init (guestfs_h *g,\n"
27505 "                       int maxevents);\n"
27506 "\n"
27507 msgstr ""
27508
27509 #. type: textblock
27510 #: ../src/guestfs-actions.pod:2964
27511 msgid ""
27512 "C<maxevents> is the maximum number of events which will be queued up between "
27513 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27514 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27515 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27516 "throws away events, but records the fact that it threw them away by setting "
27517 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27518 "C<guestfs_inotify_read>)."
27519 msgstr ""
27520
27521 #. type: textblock
27522 #: ../src/guestfs-actions.pod:2974
27523 msgid ""
27524 "Before any events are generated, you have to add some watches to the "
27525 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27526 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27527 msgstr ""
27528
27529 #. type: textblock
27530 #: ../src/guestfs-actions.pod:2980
27531 msgid ""
27532 "Queued up events should be read periodically by calling "
27533 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27534 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27535 "often enough then you risk the internal queue overflowing."
27536 msgstr ""
27537
27538 #. type: textblock
27539 #: ../src/guestfs-actions.pod:2987
27540 msgid ""
27541 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27542 "This also removes any watches automatically."
27543 msgstr ""
27544
27545 #. type: =head2
27546 #: ../src/guestfs-actions.pod:3000
27547 msgid "guestfs_inotify_read"
27548 msgstr ""
27549
27550 #. type: verbatim
27551 #: ../src/guestfs-actions.pod:3002
27552 #, no-wrap
27553 msgid ""
27554 " struct guestfs_inotify_event_list *\n"
27555 " guestfs_inotify_read (guestfs_h *g);\n"
27556 "\n"
27557 msgstr ""
27558
27559 #. type: textblock
27560 #: ../src/guestfs-actions.pod:3016
27561 msgid ""
27562 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27563 "there was an error.  I<The caller must call "
27564 "C<guestfs_free_inotify_event_list> after use>."
27565 msgstr ""
27566
27567 #. type: =head2
27568 #: ../src/guestfs-actions.pod:3022
27569 msgid "guestfs_inotify_rm_watch"
27570 msgstr ""
27571
27572 #. type: verbatim
27573 #: ../src/guestfs-actions.pod:3024
27574 #, no-wrap
27575 msgid ""
27576 " int\n"
27577 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27578 "                           int wd);\n"
27579 "\n"
27580 msgstr ""
27581
27582 #. type: textblock
27583 #: ../src/guestfs-actions.pod:3028
27584 msgid ""
27585 "Remove a previously defined inotify watch.  See "
27586 "C<guestfs_inotify_add_watch>."
27587 msgstr ""
27588
27589 #. type: =head2
27590 #: ../src/guestfs-actions.pod:3035
27591 msgid "guestfs_inspect_get_arch"
27592 msgstr ""
27593
27594 #. type: verbatim
27595 #: ../src/guestfs-actions.pod:3037
27596 #, no-wrap
27597 msgid ""
27598 " char *\n"
27599 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27600 "                           const char *root);\n"
27601 "\n"
27602 msgstr ""
27603
27604 #. type: textblock
27605 #: ../src/guestfs-actions.pod:3041
27606 msgid ""
27607 "This returns the architecture of the inspected operating system.  The "
27608 "possible return values are listed under C<guestfs_file_architecture>."
27609 msgstr ""
27610
27611 #. type: =head2
27612 #: ../src/guestfs-actions.pod:3055
27613 msgid "guestfs_inspect_get_distro"
27614 msgstr ""
27615
27616 #. type: verbatim
27617 #: ../src/guestfs-actions.pod:3057
27618 #, no-wrap
27619 msgid ""
27620 " char *\n"
27621 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27622 "                             const char *root);\n"
27623 "\n"
27624 msgstr ""
27625
27626 #. type: =head2
27627 #: ../src/guestfs-actions.pod:3157
27628 msgid "guestfs_inspect_get_drive_mappings"
27629 msgstr ""
27630
27631 #. type: verbatim
27632 #: ../src/guestfs-actions.pod:3159
27633 #, no-wrap
27634 msgid ""
27635 " char **\n"
27636 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27637 "                                     const char *root);\n"
27638 "\n"
27639 msgstr ""
27640
27641 #. type: textblock
27642 #: ../src/guestfs-actions.pod:3188
27643 msgid ""
27644 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27645 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27646 msgstr ""
27647
27648 #. type: textblock
27649 #: ../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
27650 msgid ""
27651 "This function returns a NULL-terminated array of strings, or NULL if there "
27652 "was an error.  The array of strings will always have length C<2n+1>, where "
27653 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27654 "caller must free the strings and the array after use>."
27655 msgstr ""
27656
27657 #. type: textblock
27658 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
27659 msgid "(Added in 1.9.17)"
27660 msgstr ""
27661
27662 #. type: =head2
27663 #: ../src/guestfs-actions.pod:3200
27664 msgid "guestfs_inspect_get_filesystems"
27665 msgstr ""
27666
27667 #. type: verbatim
27668 #: ../src/guestfs-actions.pod:3202
27669 #, no-wrap
27670 msgid ""
27671 " char **\n"
27672 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27673 "                                  const char *root);\n"
27674 "\n"
27675 msgstr ""
27676
27677 #. type: textblock
27678 #: ../src/guestfs-actions.pod:3214
27679 msgid ""
27680 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27681 "C<guestfs_inspect_get_mountpoints>."
27682 msgstr ""
27683
27684 #. type: =head2
27685 #: ../src/guestfs-actions.pod:3223
27686 msgid "guestfs_inspect_get_format"
27687 msgstr ""
27688
27689 #. type: verbatim
27690 #: ../src/guestfs-actions.pod:3225
27691 #, no-wrap
27692 msgid ""
27693 " char *\n"
27694 " guestfs_inspect_get_format (guestfs_h *g,\n"
27695 "                             const char *root);\n"
27696 "\n"
27697 msgstr ""
27698
27699 #. type: textblock
27700 #: ../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
27701 msgid "(Added in 1.9.4)"
27702 msgstr ""
27703
27704 #. type: =head2
27705 #: ../src/guestfs-actions.pod:3261
27706 msgid "guestfs_inspect_get_hostname"
27707 msgstr ""
27708
27709 #. type: verbatim
27710 #: ../src/guestfs-actions.pod:3263
27711 #, no-wrap
27712 msgid ""
27713 " char *\n"
27714 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27715 "                               const char *root);\n"
27716 "\n"
27717 msgstr ""
27718
27719 #. type: textblock
27720 #: ../src/guestfs-actions.pod:3278
27721 msgid "(Added in 1.7.9)"
27722 msgstr ""
27723
27724 #. type: =head2
27725 #: ../src/guestfs-actions.pod:3280
27726 msgid "guestfs_inspect_get_icon"
27727 msgstr ""
27728
27729 #. type: verbatim
27730 #: ../src/guestfs-actions.pod:3282
27731 #, no-wrap
27732 msgid ""
27733 " char *\n"
27734 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27735 "                           const char *root,\n"
27736 "                           size_t *size_r,\n"
27737 "                           ...);\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: verbatim
27742 #: ../src/guestfs-actions.pod:3293
27743 #, no-wrap
27744 msgid ""
27745 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27746 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27747 "\n"
27748 msgstr ""
27749
27750 #. type: textblock
27751 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:5574
27752 msgid "(Added in 1.11.12)"
27753 msgstr ""
27754
27755 #. type: =head2
27756 #: ../src/guestfs-actions.pod:3362
27757 msgid "guestfs_inspect_get_icon_va"
27758 msgstr ""
27759
27760 #. type: verbatim
27761 #: ../src/guestfs-actions.pod:3364
27762 #, no-wrap
27763 msgid ""
27764 " char *\n"
27765 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27766 "                              const char *root,\n"
27767 "                              size_t *size_r,\n"
27768 "                              va_list args);\n"
27769 "\n"
27770 msgstr ""
27771
27772 #. type: textblock
27773 #: ../src/guestfs-actions.pod:3370
27774 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27775 msgstr ""
27776
27777 #. type: =head2
27778 #: ../src/guestfs-actions.pod:3374
27779 msgid "guestfs_inspect_get_icon_argv"
27780 msgstr ""
27781
27782 #. type: verbatim
27783 #: ../src/guestfs-actions.pod:3376
27784 #, no-wrap
27785 msgid ""
27786 " char *\n"
27787 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27788 "                                const char *root,\n"
27789 "                                size_t *size_r,\n"
27790 "                                const struct guestfs_inspect_get_icon_argv "
27791 "*optargs);\n"
27792 "\n"
27793 msgstr ""
27794
27795 #. type: textblock
27796 #: ../src/guestfs-actions.pod:3382
27797 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27798 msgstr ""
27799
27800 #. type: =head2
27801 #: ../src/guestfs-actions.pod:3386
27802 msgid "guestfs_inspect_get_major_version"
27803 msgstr ""
27804
27805 #. type: verbatim
27806 #: ../src/guestfs-actions.pod:3388
27807 #, no-wrap
27808 msgid ""
27809 " int\n"
27810 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27811 "                                    const char *root);\n"
27812 "\n"
27813 msgstr ""
27814
27815 #. type: =head2
27816 #: ../src/guestfs-actions.pod:3410
27817 msgid "guestfs_inspect_get_minor_version"
27818 msgstr ""
27819
27820 #. type: verbatim
27821 #: ../src/guestfs-actions.pod:3412
27822 #, no-wrap
27823 msgid ""
27824 " int\n"
27825 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27826 "                                    const char *root);\n"
27827 "\n"
27828 msgstr ""
27829
27830 #. type: textblock
27831 #: ../src/guestfs-actions.pod:3421
27832 msgid ""
27833 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27834 "C<guestfs_inspect_get_major_version>."
27835 msgstr ""
27836
27837 #. type: =head2
27838 #: ../src/guestfs-actions.pod:3428
27839 msgid "guestfs_inspect_get_mountpoints"
27840 msgstr ""
27841
27842 #. type: verbatim
27843 #: ../src/guestfs-actions.pod:3430
27844 #, no-wrap
27845 msgid ""
27846 " char **\n"
27847 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27848 "                                  const char *root);\n"
27849 "\n"
27850 msgstr ""
27851
27852 #. type: textblock
27853 #: ../src/guestfs-actions.pod:3451
27854 msgid ""
27855 "For operating systems like Windows which still use drive letters, this call "
27856 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27857 "information about the mapping of drive letters to partitions, see "
27858 "C<guestfs_inspect_get_drive_mappings>."
27859 msgstr ""
27860
27861 #. type: textblock
27862 #: ../src/guestfs-actions.pod:3457
27863 msgid ""
27864 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27865 "C<guestfs_inspect_get_filesystems>."
27866 msgstr ""
27867
27868 #. type: =head2
27869 #: ../src/guestfs-actions.pod:3468
27870 msgid "guestfs_inspect_get_package_format"
27871 msgstr ""
27872
27873 #. type: verbatim
27874 #: ../src/guestfs-actions.pod:3470
27875 #, no-wrap
27876 msgid ""
27877 " char *\n"
27878 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27879 "                                     const char *root);\n"
27880 "\n"
27881 msgstr ""
27882
27883 #. type: textblock
27884 #: ../src/guestfs-actions.pod:3474
27885 msgid ""
27886 "This function and C<guestfs_inspect_get_package_management> return the "
27887 "package format and package management tool used by the inspected operating "
27888 "system.  For example for Fedora these functions would return C<rpm> (package "
27889 "format) and C<yum> (package management)."
27890 msgstr ""
27891
27892 #. type: textblock
27893 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
27894 msgid "(Added in 1.7.5)"
27895 msgstr ""
27896
27897 #. type: =head2
27898 #: ../src/guestfs-actions.pod:3495
27899 msgid "guestfs_inspect_get_package_management"
27900 msgstr ""
27901
27902 #. type: verbatim
27903 #: ../src/guestfs-actions.pod:3497
27904 #, no-wrap
27905 msgid ""
27906 " char *\n"
27907 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27908 "                                         const char *root);\n"
27909 "\n"
27910 msgstr ""
27911
27912 #. type: textblock
27913 #: ../src/guestfs-actions.pod:3501
27914 msgid ""
27915 "C<guestfs_inspect_get_package_format> and this function return the package "
27916 "format and package management tool used by the inspected operating system.  "
27917 "For example for Fedora these functions would return C<rpm> (package format) "
27918 "and C<yum> (package management)."
27919 msgstr ""
27920
27921 #. type: =head2
27922 #: ../src/guestfs-actions.pod:3523
27923 msgid "guestfs_inspect_get_product_name"
27924 msgstr ""
27925
27926 #. type: verbatim
27927 #: ../src/guestfs-actions.pod:3525
27928 #, no-wrap
27929 msgid ""
27930 " char *\n"
27931 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27932 "                                   const char *root);\n"
27933 "\n"
27934 msgstr ""
27935
27936 #. type: =head2
27937 #: ../src/guestfs-actions.pod:3544
27938 msgid "guestfs_inspect_get_product_variant"
27939 msgstr ""
27940
27941 #. type: verbatim
27942 #: ../src/guestfs-actions.pod:3546
27943 #, no-wrap
27944 msgid ""
27945 " char *\n"
27946 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27947 "                                      const char *root);\n"
27948 "\n"
27949 msgstr ""
27950
27951 #. type: textblock
27952 #: ../src/guestfs-actions.pod:3569
27953 msgid ""
27954 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27955 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27956 msgstr ""
27957
27958 #. type: textblock
27959 #: ../src/guestfs-actions.pod:3576
27960 msgid "(Added in 1.9.13)"
27961 msgstr ""
27962
27963 #. type: =head2
27964 #: ../src/guestfs-actions.pod:3578
27965 msgid "guestfs_inspect_get_roots"
27966 msgstr ""
27967
27968 #. type: verbatim
27969 #: ../src/guestfs-actions.pod:3580
27970 #, no-wrap
27971 msgid ""
27972 " char **\n"
27973 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27974 "\n"
27975 msgstr ""
27976
27977 #. type: textblock
27978 #: ../src/guestfs-actions.pod:3583
27979 msgid ""
27980 "This function is a convenient way to get the list of root devices, as "
27981 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27982 "the whole inspection process."
27983 msgstr ""
27984
27985 #. type: textblock
27986 #: ../src/guestfs-actions.pod:3587
27987 msgid ""
27988 "This returns an empty list if either no root devices were found or the "
27989 "caller has not called C<guestfs_inspect_os>."
27990 msgstr ""
27991
27992 #. type: textblock
27993 #: ../src/guestfs-actions.pod:3596
27994 msgid "(Added in 1.7.3)"
27995 msgstr ""
27996
27997 #. type: =head2
27998 #: ../src/guestfs-actions.pod:3598
27999 msgid "guestfs_inspect_get_type"
28000 msgstr ""
28001
28002 #. type: verbatim
28003 #: ../src/guestfs-actions.pod:3600
28004 #, no-wrap
28005 msgid ""
28006 " char *\n"
28007 " guestfs_inspect_get_type (guestfs_h *g,\n"
28008 "                           const char *root);\n"
28009 "\n"
28010 msgstr ""
28011
28012 #. type: =head2
28013 #: ../src/guestfs-actions.pod:3641
28014 msgid "guestfs_inspect_get_windows_current_control_set"
28015 msgstr ""
28016
28017 #. type: verbatim
28018 #: ../src/guestfs-actions.pod:3643
28019 #, no-wrap
28020 msgid ""
28021 " char *\n"
28022 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28023 "                                                  const char *root);\n"
28024 "\n"
28025 msgstr ""
28026
28027 #. type: =head2
28028 #: ../src/guestfs-actions.pod:3661
28029 msgid "guestfs_inspect_get_windows_systemroot"
28030 msgstr ""
28031
28032 #. type: verbatim
28033 #: ../src/guestfs-actions.pod:3663
28034 #, no-wrap
28035 msgid ""
28036 " char *\n"
28037 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28038 "                                         const char *root);\n"
28039 "\n"
28040 msgstr ""
28041
28042 #. type: textblock
28043 #: ../src/guestfs-actions.pod:3679
28044 msgid "(Added in 1.5.25)"
28045 msgstr ""
28046
28047 #. type: =head2
28048 #: ../src/guestfs-actions.pod:3681
28049 msgid "guestfs_inspect_is_live"
28050 msgstr ""
28051
28052 #. type: verbatim
28053 #: ../src/guestfs-actions.pod:3683
28054 #, no-wrap
28055 msgid ""
28056 " int\n"
28057 " guestfs_inspect_is_live (guestfs_h *g,\n"
28058 "                          const char *root);\n"
28059 "\n"
28060 msgstr ""
28061
28062 #. type: textblock
28063 #: ../src/guestfs-actions.pod:3687
28064 msgid ""
28065 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28066 "disk), then this returns true if a live image was detected on the disk."
28067 msgstr ""
28068
28069 #. type: =head2
28070 #: ../src/guestfs-actions.pod:3697
28071 msgid "guestfs_inspect_is_multipart"
28072 msgstr ""
28073
28074 #. type: verbatim
28075 #: ../src/guestfs-actions.pod:3699
28076 #, no-wrap
28077 msgid ""
28078 " int\n"
28079 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28080 "                               const char *root);\n"
28081 "\n"
28082 msgstr ""
28083
28084 #. type: textblock
28085 #: ../src/guestfs-actions.pod:3703
28086 msgid ""
28087 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28088 "disk), then this returns true if the disk is part of a set."
28089 msgstr ""
28090
28091 #. type: =head2
28092 #: ../src/guestfs-actions.pod:3713
28093 msgid "guestfs_inspect_is_netinst"
28094 msgstr ""
28095
28096 #. type: verbatim
28097 #: ../src/guestfs-actions.pod:3715
28098 #, no-wrap
28099 msgid ""
28100 " int\n"
28101 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28102 "                             const char *root);\n"
28103 "\n"
28104 msgstr ""
28105
28106 #. type: textblock
28107 #: ../src/guestfs-actions.pod:3719
28108 msgid ""
28109 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28110 "disk), then this returns true if the disk is a network installer, ie. not a "
28111 "self-contained install CD but one which is likely to require network access "
28112 "to complete the install."
28113 msgstr ""
28114
28115 #. type: =head2
28116 #: ../src/guestfs-actions.pod:3731
28117 msgid "guestfs_inspect_list_applications"
28118 msgstr ""
28119
28120 #. type: verbatim
28121 #: ../src/guestfs-actions.pod:3733
28122 #, no-wrap
28123 msgid ""
28124 " struct guestfs_application_list *\n"
28125 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28126 "                                    const char *root);\n"
28127 "\n"
28128 msgstr ""
28129
28130 #. type: textblock
28131 #: ../src/guestfs-actions.pod:3739
28132 msgid ""
28133 "I<Note:> This call works differently from other parts of the inspection "
28134 "API.  You have to call C<guestfs_inspect_os>, then "
28135 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28136 "this.  Listing applications is a significantly more difficult operation "
28137 "which requires access to the full filesystem.  Also note that unlike the "
28138 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28139 "the libguestfs handle, this call actually reads parts of the mounted "
28140 "filesystems during the call."
28141 msgstr ""
28142
28143 #. type: textblock
28144 #: ../src/guestfs-actions.pod:3829
28145 msgid ""
28146 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28147 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28148 "after use>."
28149 msgstr ""
28150
28151 #. type: textblock
28152 #: ../src/guestfs-actions.pod:3833
28153 msgid "(Added in 1.7.8)"
28154 msgstr ""
28155
28156 #. type: =head2
28157 #: ../src/guestfs-actions.pod:3835
28158 msgid "guestfs_inspect_os"
28159 msgstr ""
28160
28161 #. type: verbatim
28162 #: ../src/guestfs-actions.pod:3837
28163 #, no-wrap
28164 msgid ""
28165 " char **\n"
28166 " guestfs_inspect_os (guestfs_h *g);\n"
28167 "\n"
28168 msgstr ""
28169
28170 #. type: textblock
28171 #: ../src/guestfs-actions.pod:3853
28172 msgid ""
28173 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28174 "functions in order to query further information about each operating system, "
28175 "such as the name and version."
28176 msgstr ""
28177
28178 #. type: textblock
28179 #: ../src/guestfs-actions.pod:3858
28180 msgid ""
28181 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28182 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28183 "the contents.  This should be called with no disks currently mounted.  The "
28184 "function may also use Augeas, so any existing Augeas handle will be closed."
28185 msgstr ""
28186
28187 #. type: textblock
28188 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4294
28189 msgid "See also C<guestfs_list_filesystems>."
28190 msgstr ""
28191
28192 #. type: =head2
28193 #: ../src/guestfs-actions.pod:3878
28194 msgid "guestfs_is_blockdev"
28195 msgstr ""
28196
28197 #. type: verbatim
28198 #: ../src/guestfs-actions.pod:3880
28199 #, no-wrap
28200 msgid ""
28201 " int\n"
28202 " guestfs_is_blockdev (guestfs_h *g,\n"
28203 "                      const char *path);\n"
28204 "\n"
28205 msgstr ""
28206
28207 #. type: textblock
28208 #: ../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
28209 msgid "See also C<guestfs_stat>."
28210 msgstr ""
28211
28212 #. type: textblock
28213 #: ../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
28214 msgid "(Added in 1.5.10)"
28215 msgstr ""
28216
28217 #. type: =head2
28218 #: ../src/guestfs-actions.pod:3893
28219 msgid "guestfs_is_busy"
28220 msgstr ""
28221
28222 #. type: verbatim
28223 #: ../src/guestfs-actions.pod:3895
28224 #, no-wrap
28225 msgid ""
28226 " int\n"
28227 " guestfs_is_busy (guestfs_h *g);\n"
28228 "\n"
28229 msgstr ""
28230
28231 #. type: =head2
28232 #: ../src/guestfs-actions.pod:3907
28233 msgid "guestfs_is_chardev"
28234 msgstr ""
28235
28236 #. type: verbatim
28237 #: ../src/guestfs-actions.pod:3909
28238 #, no-wrap
28239 msgid ""
28240 " int\n"
28241 " guestfs_is_chardev (guestfs_h *g,\n"
28242 "                     const char *path);\n"
28243 "\n"
28244 msgstr ""
28245
28246 #. type: =head2
28247 #: ../src/guestfs-actions.pod:3922
28248 msgid "guestfs_is_config"
28249 msgstr ""
28250
28251 #. type: verbatim
28252 #: ../src/guestfs-actions.pod:3924
28253 #, no-wrap
28254 msgid ""
28255 " int\n"
28256 " guestfs_is_config (guestfs_h *g);\n"
28257 "\n"
28258 msgstr ""
28259
28260 #. type: =head2
28261 #: ../src/guestfs-actions.pod:3936
28262 msgid "guestfs_is_dir"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:3938
28267 #, no-wrap
28268 msgid ""
28269 " int\n"
28270 " guestfs_is_dir (guestfs_h *g,\n"
28271 "                 const char *path);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: =head2
28276 #: ../src/guestfs-actions.pod:3952
28277 msgid "guestfs_is_fifo"
28278 msgstr ""
28279
28280 #. type: verbatim
28281 #: ../src/guestfs-actions.pod:3954
28282 #, no-wrap
28283 msgid ""
28284 " int\n"
28285 " guestfs_is_fifo (guestfs_h *g,\n"
28286 "                  const char *path);\n"
28287 "\n"
28288 msgstr ""
28289
28290 #. type: =head2
28291 #: ../src/guestfs-actions.pod:3967
28292 msgid "guestfs_is_file"
28293 msgstr ""
28294
28295 #. type: verbatim
28296 #: ../src/guestfs-actions.pod:3969
28297 #, no-wrap
28298 msgid ""
28299 " int\n"
28300 " guestfs_is_file (guestfs_h *g,\n"
28301 "                  const char *path);\n"
28302 "\n"
28303 msgstr ""
28304
28305 #. type: =head2
28306 #: ../src/guestfs-actions.pod:3983
28307 msgid "guestfs_is_launching"
28308 msgstr ""
28309
28310 #. type: verbatim
28311 #: ../src/guestfs-actions.pod:3985
28312 #, no-wrap
28313 msgid ""
28314 " int\n"
28315 " guestfs_is_launching (guestfs_h *g);\n"
28316 "\n"
28317 msgstr ""
28318
28319 #. type: =head2
28320 #: ../src/guestfs-actions.pod:3997
28321 msgid "guestfs_is_lv"
28322 msgstr ""
28323
28324 #. type: verbatim
28325 #: ../src/guestfs-actions.pod:3999
28326 #, no-wrap
28327 msgid ""
28328 " int\n"
28329 " guestfs_is_lv (guestfs_h *g,\n"
28330 "                const char *device);\n"
28331 "\n"
28332 msgstr ""
28333
28334 #. type: =head2
28335 #: ../src/guestfs-actions.pod:4010
28336 msgid "guestfs_is_ready"
28337 msgstr ""
28338
28339 #. type: verbatim
28340 #: ../src/guestfs-actions.pod:4012
28341 #, no-wrap
28342 msgid ""
28343 " int\n"
28344 " guestfs_is_ready (guestfs_h *g);\n"
28345 "\n"
28346 msgstr ""
28347
28348 #. type: =head2
28349 #: ../src/guestfs-actions.pod:4024
28350 msgid "guestfs_is_socket"
28351 msgstr ""
28352
28353 #. type: verbatim
28354 #: ../src/guestfs-actions.pod:4026
28355 #, no-wrap
28356 msgid ""
28357 " int\n"
28358 " guestfs_is_socket (guestfs_h *g,\n"
28359 "                    const char *path);\n"
28360 "\n"
28361 msgstr ""
28362
28363 #. type: =head2
28364 #: ../src/guestfs-actions.pod:4039
28365 msgid "guestfs_is_symlink"
28366 msgstr ""
28367
28368 #. type: verbatim
28369 #: ../src/guestfs-actions.pod:4041
28370 #, no-wrap
28371 msgid ""
28372 " int\n"
28373 " guestfs_is_symlink (guestfs_h *g,\n"
28374 "                     const char *path);\n"
28375 "\n"
28376 msgstr ""
28377
28378 #. type: =head2
28379 #: ../src/guestfs-actions.pod:4054
28380 msgid "guestfs_is_zero"
28381 msgstr ""
28382
28383 #. type: verbatim
28384 #: ../src/guestfs-actions.pod:4056
28385 #, no-wrap
28386 msgid ""
28387 " int\n"
28388 " guestfs_is_zero (guestfs_h *g,\n"
28389 "                  const char *path);\n"
28390 "\n"
28391 msgstr ""
28392
28393 #. type: textblock
28394 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
28395 msgid "(Added in 1.11.8)"
28396 msgstr ""
28397
28398 #. type: =head2
28399 #: ../src/guestfs-actions.pod:4067
28400 msgid "guestfs_is_zero_device"
28401 msgstr ""
28402
28403 #. type: verbatim
28404 #: ../src/guestfs-actions.pod:4069
28405 #, no-wrap
28406 msgid ""
28407 " int\n"
28408 " guestfs_is_zero_device (guestfs_h *g,\n"
28409 "                         const char *device);\n"
28410 "\n"
28411 msgstr ""
28412
28413 #. type: =head2
28414 #: ../src/guestfs-actions.pod:4081
28415 msgid "guestfs_kill_subprocess"
28416 msgstr ""
28417
28418 #. type: verbatim
28419 #: ../src/guestfs-actions.pod:4083
28420 #, no-wrap
28421 msgid ""
28422 " int\n"
28423 " guestfs_kill_subprocess (guestfs_h *g);\n"
28424 "\n"
28425 msgstr ""
28426
28427 #. type: =head2
28428 #: ../src/guestfs-actions.pod:4092
28429 msgid "guestfs_launch"
28430 msgstr ""
28431
28432 #. type: verbatim
28433 #: ../src/guestfs-actions.pod:4094
28434 #, no-wrap
28435 msgid ""
28436 " int\n"
28437 " guestfs_launch (guestfs_h *g);\n"
28438 "\n"
28439 msgstr ""
28440
28441 #. type: =head2
28442 #: ../src/guestfs-actions.pod:4112
28443 msgid "guestfs_lchown"
28444 msgstr ""
28445
28446 #. type: verbatim
28447 #: ../src/guestfs-actions.pod:4114
28448 #, no-wrap
28449 msgid ""
28450 " int\n"
28451 " guestfs_lchown (guestfs_h *g,\n"
28452 "                 int owner,\n"
28453 "                 int group,\n"
28454 "                 const char *path);\n"
28455 "\n"
28456 msgstr ""
28457
28458 #. type: textblock
28459 #: ../src/guestfs-actions.pod:4120
28460 msgid ""
28461 "Change the file owner to C<owner> and group to C<group>.  This is like "
28462 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28463 "changed, not the target."
28464 msgstr ""
28465
28466 #. type: =head2
28467 #: ../src/guestfs-actions.pod:4132
28468 msgid "guestfs_lgetxattr"
28469 msgstr ""
28470
28471 #. type: verbatim
28472 #: ../src/guestfs-actions.pod:4134
28473 #, no-wrap
28474 msgid ""
28475 " char *\n"
28476 " guestfs_lgetxattr (guestfs_h *g,\n"
28477 "                    const char *path,\n"
28478 "                    const char *name,\n"
28479 "                    size_t *size_r);\n"
28480 "\n"
28481 msgstr ""
28482
28483 #. type: textblock
28484 #: ../src/guestfs-actions.pod:4154
28485 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28486 msgstr ""
28487
28488 #. type: =head2
28489 #: ../src/guestfs-actions.pod:4162
28490 msgid "guestfs_lgetxattrs"
28491 msgstr ""
28492
28493 #. type: verbatim
28494 #: ../src/guestfs-actions.pod:4164
28495 #, no-wrap
28496 msgid ""
28497 " struct guestfs_xattr_list *\n"
28498 " guestfs_lgetxattrs (guestfs_h *g,\n"
28499 "                     const char *path);\n"
28500 "\n"
28501 msgstr ""
28502
28503 #. type: textblock
28504 #: ../src/guestfs-actions.pod:4168
28505 msgid ""
28506 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28507 "then it returns the extended attributes of the link itself."
28508 msgstr ""
28509
28510 #. type: =head2
28511 #: ../src/guestfs-actions.pod:4178
28512 msgid "guestfs_list_9p"
28513 msgstr ""
28514
28515 #. type: verbatim
28516 #: ../src/guestfs-actions.pod:4180
28517 #, no-wrap
28518 msgid ""
28519 " char **\n"
28520 " guestfs_list_9p (guestfs_h *g);\n"
28521 "\n"
28522 msgstr ""
28523
28524 #. type: =head2
28525 #: ../src/guestfs-actions.pod:4192
28526 msgid "guestfs_list_devices"
28527 msgstr ""
28528
28529 #. type: verbatim
28530 #: ../src/guestfs-actions.pod:4194
28531 #, no-wrap
28532 msgid ""
28533 " char **\n"
28534 " guestfs_list_devices (guestfs_h *g);\n"
28535 "\n"
28536 msgstr ""
28537
28538 #. type: =head2
28539 #: ../src/guestfs-actions.pod:4209
28540 msgid "guestfs_list_dm_devices"
28541 msgstr ""
28542
28543 #. type: verbatim
28544 #: ../src/guestfs-actions.pod:4211
28545 #, no-wrap
28546 msgid ""
28547 " char **\n"
28548 " guestfs_list_dm_devices (guestfs_h *g);\n"
28549 "\n"
28550 msgstr ""
28551
28552 #. type: textblock
28553 #: ../src/guestfs-actions.pod:4216
28554 msgid ""
28555 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28556 "previous call to C<guestfs_luks_open>."
28557 msgstr ""
28558
28559 #. type: textblock
28560 #: ../src/guestfs-actions.pod:4219
28561 msgid ""
28562 "Device mapper devices which correspond to logical volumes are I<not> "
28563 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28564 "volumes."
28565 msgstr ""
28566
28567 #. type: textblock
28568 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5813
28569 msgid "(Added in 1.11.15)"
28570 msgstr ""
28571
28572 #. type: =head2
28573 #: ../src/guestfs-actions.pod:4229
28574 msgid "guestfs_list_filesystems"
28575 msgstr ""
28576
28577 #. type: verbatim
28578 #: ../src/guestfs-actions.pod:4231
28579 #, no-wrap
28580 msgid ""
28581 " char **\n"
28582 " guestfs_list_filesystems (guestfs_h *g);\n"
28583 "\n"
28584 msgstr ""
28585
28586 #. type: textblock
28587 #: ../src/guestfs-actions.pod:4251
28588 msgid ""
28589 "This command runs other libguestfs commands, which might include "
28590 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28591 "soon after launch and only when nothing is mounted."
28592 msgstr ""
28593
28594 #. type: textblock
28595 #: ../src/guestfs-actions.pod:4255
28596 msgid ""
28597 "Not all of the filesystems returned will be mountable.  In particular, swap "
28598 "partitions are returned in the list.  Also this command does not check that "
28599 "each filesystem found is valid and mountable, and some filesystems might be "
28600 "mountable but require special options.  Filesystems may not all belong to a "
28601 "single logical operating system (use C<guestfs_inspect_os> to look for "
28602 "OSes)."
28603 msgstr ""
28604
28605 #. type: textblock
28606 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6173
28607 msgid "(Added in 1.5.15)"
28608 msgstr ""
28609
28610 #. type: =head2
28611 #: ../src/guestfs-actions.pod:4271
28612 msgid "guestfs_list_md_devices"
28613 msgstr ""
28614
28615 #. type: verbatim
28616 #: ../src/guestfs-actions.pod:4273
28617 #, no-wrap
28618 msgid ""
28619 " char **\n"
28620 " guestfs_list_md_devices (guestfs_h *g);\n"
28621 "\n"
28622 msgstr ""
28623
28624 #. type: =head2
28625 #: ../src/guestfs-actions.pod:4282
28626 msgid "guestfs_list_partitions"
28627 msgstr ""
28628
28629 #. type: verbatim
28630 #: ../src/guestfs-actions.pod:4284
28631 #, no-wrap
28632 msgid ""
28633 " char **\n"
28634 " guestfs_list_partitions (guestfs_h *g);\n"
28635 "\n"
28636 msgstr ""
28637
28638 #. type: textblock
28639 #: ../src/guestfs-actions.pod:4291
28640 msgid ""
28641 "This does not return logical volumes.  For that you will need to call "
28642 "C<guestfs_lvs>."
28643 msgstr ""
28644
28645 #. type: =head2
28646 #: ../src/guestfs-actions.pod:4302
28647 msgid "guestfs_ll"
28648 msgstr ""
28649
28650 #. type: verbatim
28651 #: ../src/guestfs-actions.pod:4304
28652 #, no-wrap
28653 msgid ""
28654 " char *\n"
28655 " guestfs_ll (guestfs_h *g,\n"
28656 "             const char *directory);\n"
28657 "\n"
28658 msgstr ""
28659
28660 #. type: =head2
28661 #: ../src/guestfs-actions.pod:4319
28662 msgid "guestfs_ln"
28663 msgstr ""
28664
28665 #. type: verbatim
28666 #: ../src/guestfs-actions.pod:4321
28667 #, no-wrap
28668 msgid ""
28669 " int\n"
28670 " guestfs_ln (guestfs_h *g,\n"
28671 "             const char *target,\n"
28672 "             const char *linkname);\n"
28673 "\n"
28674 msgstr ""
28675
28676 #. type: =head2
28677 #: ../src/guestfs-actions.pod:4332
28678 msgid "guestfs_ln_f"
28679 msgstr ""
28680
28681 #. type: verbatim
28682 #: ../src/guestfs-actions.pod:4334
28683 #, no-wrap
28684 msgid ""
28685 " int\n"
28686 " guestfs_ln_f (guestfs_h *g,\n"
28687 "               const char *target,\n"
28688 "               const char *linkname);\n"
28689 "\n"
28690 msgstr ""
28691
28692 #. type: =head2
28693 #: ../src/guestfs-actions.pod:4346
28694 msgid "guestfs_ln_s"
28695 msgstr ""
28696
28697 #. type: verbatim
28698 #: ../src/guestfs-actions.pod:4348
28699 #, no-wrap
28700 msgid ""
28701 " int\n"
28702 " guestfs_ln_s (guestfs_h *g,\n"
28703 "               const char *target,\n"
28704 "               const char *linkname);\n"
28705 "\n"
28706 msgstr ""
28707
28708 #. type: =head2
28709 #: ../src/guestfs-actions.pod:4359
28710 msgid "guestfs_ln_sf"
28711 msgstr ""
28712
28713 #. type: verbatim
28714 #: ../src/guestfs-actions.pod:4361
28715 #, no-wrap
28716 msgid ""
28717 " int\n"
28718 " guestfs_ln_sf (guestfs_h *g,\n"
28719 "                const char *target,\n"
28720 "                const char *linkname);\n"
28721 "\n"
28722 msgstr ""
28723
28724 #. type: =head2
28725 #: ../src/guestfs-actions.pod:4373
28726 msgid "guestfs_lremovexattr"
28727 msgstr ""
28728
28729 #. type: verbatim
28730 #: ../src/guestfs-actions.pod:4375
28731 #, no-wrap
28732 msgid ""
28733 " int\n"
28734 " guestfs_lremovexattr (guestfs_h *g,\n"
28735 "                       const char *xattr,\n"
28736 "                       const char *path);\n"
28737 "\n"
28738 msgstr ""
28739
28740 #. type: textblock
28741 #: ../src/guestfs-actions.pod:4380
28742 msgid ""
28743 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28744 "link, then it removes an extended attribute of the link itself."
28745 msgstr ""
28746
28747 #. type: =head2
28748 #: ../src/guestfs-actions.pod:4388
28749 msgid "guestfs_ls"
28750 msgstr ""
28751
28752 #. type: verbatim
28753 #: ../src/guestfs-actions.pod:4390
28754 #, no-wrap
28755 msgid ""
28756 " char **\n"
28757 " guestfs_ls (guestfs_h *g,\n"
28758 "             const char *directory);\n"
28759 "\n"
28760 msgstr ""
28761
28762 #. type: textblock
28763 #: ../src/guestfs-actions.pod:4398
28764 msgid ""
28765 "This command is mostly useful for interactive sessions.  Programs should "
28766 "probably use C<guestfs_readdir> instead."
28767 msgstr ""
28768
28769 #. type: =head2
28770 #: ../src/guestfs-actions.pod:4407
28771 msgid "guestfs_lsetxattr"
28772 msgstr ""
28773
28774 #. type: verbatim
28775 #: ../src/guestfs-actions.pod:4409
28776 #, no-wrap
28777 msgid ""
28778 " int\n"
28779 " guestfs_lsetxattr (guestfs_h *g,\n"
28780 "                    const char *xattr,\n"
28781 "                    const char *val,\n"
28782 "                    int vallen,\n"
28783 "                    const char *path);\n"
28784 "\n"
28785 msgstr ""
28786
28787 #. type: textblock
28788 #: ../src/guestfs-actions.pod:4416
28789 msgid ""
28790 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28791 "then it sets an extended attribute of the link itself."
28792 msgstr ""
28793
28794 #. type: =head2
28795 #: ../src/guestfs-actions.pod:4424
28796 msgid "guestfs_lstat"
28797 msgstr ""
28798
28799 #. type: verbatim
28800 #: ../src/guestfs-actions.pod:4426
28801 #, no-wrap
28802 msgid ""
28803 " struct guestfs_stat *\n"
28804 " guestfs_lstat (guestfs_h *g,\n"
28805 "                const char *path);\n"
28806 "\n"
28807 msgstr ""
28808
28809 #. type: textblock
28810 #: ../src/guestfs-actions.pod:4432
28811 msgid ""
28812 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28813 "link, then the link is stat-ed, not the file it refers to."
28814 msgstr ""
28815
28816 #. type: textblock
28817 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:7353
28818 msgid ""
28819 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28820 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28821 msgstr ""
28822
28823 #. type: textblock
28824 #: ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:7357 ../src/guestfs-actions.pod:7375 ../src/guestfs-actions.pod:7876
28825 msgid "(Added in 0.9.2)"
28826 msgstr ""
28827
28828 #. type: =head2
28829 #: ../src/guestfs-actions.pod:4444
28830 msgid "guestfs_lstatlist"
28831 msgstr ""
28832
28833 #. type: verbatim
28834 #: ../src/guestfs-actions.pod:4446
28835 #, no-wrap
28836 msgid ""
28837 " struct guestfs_stat_list *\n"
28838 " guestfs_lstatlist (guestfs_h *g,\n"
28839 "                    const char *path,\n"
28840 "                    char *const *names);\n"
28841 "\n"
28842 msgstr ""
28843
28844 #. type: textblock
28845 #: ../src/guestfs-actions.pod:4451
28846 msgid ""
28847 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28848 "files, where all files are in the directory C<path>.  C<names> is the list "
28849 "of files from this directory."
28850 msgstr ""
28851
28852 #. type: textblock
28853 #: ../src/guestfs-actions.pod:4460
28854 msgid ""
28855 "This call is intended for programs that want to efficiently list a directory "
28856 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28857 "for a similarly efficient call for getting extended attributes.  Very long "
28858 "directory listings might cause the protocol message size to be exceeded, "
28859 "causing this call to fail.  The caller must split up such requests into "
28860 "smaller groups of names."
28861 msgstr ""
28862
28863 #. type: textblock
28864 #: ../src/guestfs-actions.pod:4468
28865 msgid ""
28866 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28867 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28868 msgstr ""
28869
28870 #. type: =head2
28871 #: ../src/guestfs-actions.pod:4474
28872 msgid "guestfs_luks_add_key"
28873 msgstr ""
28874
28875 #. type: verbatim
28876 #: ../src/guestfs-actions.pod:4476
28877 #, no-wrap
28878 msgid ""
28879 " int\n"
28880 " guestfs_luks_add_key (guestfs_h *g,\n"
28881 "                       const char *device,\n"
28882 "                       const char *key,\n"
28883 "                       const char *newkey,\n"
28884 "                       int keyslot);\n"
28885 "\n"
28886 msgstr ""
28887
28888 #. type: textblock
28889 #: ../src/guestfs-actions.pod:4488
28890 msgid ""
28891 "Note that if C<keyslot> already contains a key, then this command will "
28892 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28893 msgstr ""
28894
28895 #. type: textblock
28896 #: ../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
28897 msgid ""
28898 "This function takes a key or passphrase parameter which could contain "
28899 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28900 "information."
28901 msgstr ""
28902
28903 #. type: textblock
28904 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
28905 msgid "(Added in 1.5.2)"
28906 msgstr ""
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:4500
28910 msgid "guestfs_luks_close"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:4502
28915 #, no-wrap
28916 msgid ""
28917 " int\n"
28918 " guestfs_luks_close (guestfs_h *g,\n"
28919 "                     const char *device);\n"
28920 "\n"
28921 msgstr ""
28922
28923 #. type: textblock
28924 #: ../src/guestfs-actions.pod:4506
28925 msgid ""
28926 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28927 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28928 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28929 "underlying block device."
28930 msgstr ""
28931
28932 #. type: textblock
28933 #: ../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
28934 msgid "(Added in 1.5.1)"
28935 msgstr ""
28936
28937 #. type: =head2
28938 #: ../src/guestfs-actions.pod:4516
28939 msgid "guestfs_luks_format"
28940 msgstr ""
28941
28942 #. type: verbatim
28943 #: ../src/guestfs-actions.pod:4518
28944 #, no-wrap
28945 msgid ""
28946 " int\n"
28947 " guestfs_luks_format (guestfs_h *g,\n"
28948 "                      const char *device,\n"
28949 "                      const char *key,\n"
28950 "                      int keyslot);\n"
28951 "\n"
28952 msgstr ""
28953
28954 #. type: =head2
28955 #: ../src/guestfs-actions.pod:4537
28956 msgid "guestfs_luks_format_cipher"
28957 msgstr ""
28958
28959 #. type: verbatim
28960 #: ../src/guestfs-actions.pod:4539
28961 #, no-wrap
28962 msgid ""
28963 " int\n"
28964 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28965 "                             const char *device,\n"
28966 "                             const char *key,\n"
28967 "                             int keyslot,\n"
28968 "                             const char *cipher);\n"
28969 "\n"
28970 msgstr ""
28971
28972 #. type: textblock
28973 #: ../src/guestfs-actions.pod:4546
28974 msgid ""
28975 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28976 "set the C<cipher> used."
28977 msgstr ""
28978
28979 #. type: =head2
28980 #: ../src/guestfs-actions.pod:4557
28981 msgid "guestfs_luks_kill_slot"
28982 msgstr ""
28983
28984 #. type: verbatim
28985 #: ../src/guestfs-actions.pod:4559
28986 #, no-wrap
28987 msgid ""
28988 " int\n"
28989 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28990 "                         const char *device,\n"
28991 "                         const char *key,\n"
28992 "                         int keyslot);\n"
28993 "\n"
28994 msgstr ""
28995
28996 #. type: =head2
28997 #: ../src/guestfs-actions.pod:4577
28998 msgid "guestfs_luks_open"
28999 msgstr ""
29000
29001 #. type: verbatim
29002 #: ../src/guestfs-actions.pod:4579
29003 #, no-wrap
29004 msgid ""
29005 " int\n"
29006 " guestfs_luks_open (guestfs_h *g,\n"
29007 "                    const char *device,\n"
29008 "                    const char *key,\n"
29009 "                    const char *mapname);\n"
29010 "\n"
29011 msgstr ""
29012
29013 #. type: textblock
29014 #: ../src/guestfs-actions.pod:4597
29015 msgid ""
29016 "If this block device contains LVM volume groups, then calling "
29017 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29018 "visible."
29019 msgstr ""
29020
29021 #. type: textblock
29022 #: ../src/guestfs-actions.pod:4601
29023 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29024 msgstr ""
29025
29026 #. type: =head2
29027 #: ../src/guestfs-actions.pod:4612
29028 msgid "guestfs_luks_open_ro"
29029 msgstr ""
29030
29031 #. type: verbatim
29032 #: ../src/guestfs-actions.pod:4614
29033 #, no-wrap
29034 msgid ""
29035 " int\n"
29036 " guestfs_luks_open_ro (guestfs_h *g,\n"
29037 "                       const char *device,\n"
29038 "                       const char *key,\n"
29039 "                       const char *mapname);\n"
29040 "\n"
29041 msgstr ""
29042
29043 #. type: textblock
29044 #: ../src/guestfs-actions.pod:4620
29045 msgid ""
29046 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29047 "created."
29048 msgstr ""
29049
29050 #. type: =head2
29051 #: ../src/guestfs-actions.pod:4631
29052 msgid "guestfs_lvcreate"
29053 msgstr ""
29054
29055 #. type: verbatim
29056 #: ../src/guestfs-actions.pod:4633
29057 #, no-wrap
29058 msgid ""
29059 " int\n"
29060 " guestfs_lvcreate (guestfs_h *g,\n"
29061 "                   const char *logvol,\n"
29062 "                   const char *volgroup,\n"
29063 "                   int mbytes);\n"
29064 "\n"
29065 msgstr ""
29066
29067 #. type: =head2
29068 #: ../src/guestfs-actions.pod:4646
29069 msgid "guestfs_lvm_canonical_lv_name"
29070 msgstr ""
29071
29072 #. type: verbatim
29073 #: ../src/guestfs-actions.pod:4648
29074 #, no-wrap
29075 msgid ""
29076 " char *\n"
29077 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29078 "                                const char *lvname);\n"
29079 "\n"
29080 msgstr ""
29081
29082 #. type: textblock
29083 #: ../src/guestfs-actions.pod:4659
29084 msgid "See also C<guestfs_is_lv>."
29085 msgstr ""
29086
29087 #. type: textblock
29088 #: ../src/guestfs-actions.pod:4664
29089 msgid "(Added in 1.5.24)"
29090 msgstr ""
29091
29092 #. type: =head2
29093 #: ../src/guestfs-actions.pod:4666
29094 msgid "guestfs_lvm_clear_filter"
29095 msgstr ""
29096
29097 #. type: verbatim
29098 #: ../src/guestfs-actions.pod:4668
29099 #, no-wrap
29100 msgid ""
29101 " int\n"
29102 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29103 "\n"
29104 msgstr ""
29105
29106 #. type: textblock
29107 #: ../src/guestfs-actions.pod:4671
29108 msgid ""
29109 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29110 "see every block device."
29111 msgstr ""
29112
29113 #. type: =head2
29114 #: ../src/guestfs-actions.pod:4681
29115 msgid "guestfs_lvm_remove_all"
29116 msgstr ""
29117
29118 #. type: verbatim
29119 #: ../src/guestfs-actions.pod:4683
29120 #, no-wrap
29121 msgid ""
29122 " int\n"
29123 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29124 "\n"
29125 msgstr ""
29126
29127 #. type: =head2
29128 #: ../src/guestfs-actions.pod:4693
29129 msgid "guestfs_lvm_set_filter"
29130 msgstr ""
29131
29132 #. type: verbatim
29133 #: ../src/guestfs-actions.pod:4695
29134 #, no-wrap
29135 msgid ""
29136 " int\n"
29137 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29138 "                         char *const *devices);\n"
29139 "\n"
29140 msgstr ""
29141
29142 #. type: =head2
29143 #: ../src/guestfs-actions.pod:4726
29144 msgid "guestfs_lvremove"
29145 msgstr ""
29146
29147 #. type: verbatim
29148 #: ../src/guestfs-actions.pod:4728
29149 #, no-wrap
29150 msgid ""
29151 " int\n"
29152 " guestfs_lvremove (guestfs_h *g,\n"
29153 "                   const char *device);\n"
29154 "\n"
29155 msgstr ""
29156
29157 #. type: textblock
29158 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:8246
29159 msgid "(Added in 1.0.13)"
29160 msgstr ""
29161
29162 #. type: =head2
29163 #: ../src/guestfs-actions.pod:4742
29164 msgid "guestfs_lvrename"
29165 msgstr ""
29166
29167 #. type: verbatim
29168 #: ../src/guestfs-actions.pod:4744
29169 #, no-wrap
29170 msgid ""
29171 " int\n"
29172 " guestfs_lvrename (guestfs_h *g,\n"
29173 "                   const char *logvol,\n"
29174 "                   const char *newlogvol);\n"
29175 "\n"
29176 msgstr ""
29177
29178 #. type: textblock
29179 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:8259
29180 msgid "(Added in 1.0.83)"
29181 msgstr ""
29182
29183 #. type: =head2
29184 #: ../src/guestfs-actions.pod:4755
29185 msgid "guestfs_lvresize"
29186 msgstr ""
29187
29188 #. type: verbatim
29189 #: ../src/guestfs-actions.pod:4757
29190 #, no-wrap
29191 msgid ""
29192 " int\n"
29193 " guestfs_lvresize (guestfs_h *g,\n"
29194 "                   const char *device,\n"
29195 "                   int mbytes);\n"
29196 "\n"
29197 msgstr ""
29198
29199 #. type: =head2
29200 #: ../src/guestfs-actions.pod:4770
29201 msgid "guestfs_lvresize_free"
29202 msgstr ""
29203
29204 #. type: verbatim
29205 #: ../src/guestfs-actions.pod:4772
29206 #, no-wrap
29207 msgid ""
29208 " int\n"
29209 " guestfs_lvresize_free (guestfs_h *g,\n"
29210 "                        const char *lv,\n"
29211 "                        int percent);\n"
29212 "\n"
29213 msgstr ""
29214
29215 #. type: textblock
29216 #: ../src/guestfs-actions.pod:4785
29217 msgid "(Added in 1.3.3)"
29218 msgstr ""
29219
29220 #. type: =head2
29221 #: ../src/guestfs-actions.pod:4787
29222 msgid "guestfs_lvs"
29223 msgstr ""
29224
29225 #. type: verbatim
29226 #: ../src/guestfs-actions.pod:4789
29227 #, no-wrap
29228 msgid ""
29229 " char **\n"
29230 " guestfs_lvs (guestfs_h *g);\n"
29231 "\n"
29232 msgstr ""
29233
29234 #. type: textblock
29235 #: ../src/guestfs-actions.pod:4798
29236 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29237 msgstr ""
29238
29239 #. type: =head2
29240 #: ../src/guestfs-actions.pod:4806
29241 msgid "guestfs_lvs_full"
29242 msgstr ""
29243
29244 #. type: verbatim
29245 #: ../src/guestfs-actions.pod:4808
29246 #, no-wrap
29247 msgid ""
29248 " struct guestfs_lvm_lv_list *\n"
29249 " guestfs_lvs_full (guestfs_h *g);\n"
29250 "\n"
29251 msgstr ""
29252
29253 #. type: textblock
29254 #: ../src/guestfs-actions.pod:4814
29255 msgid ""
29256 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29257 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
29258 "use>."
29259 msgstr ""
29260
29261 #. type: =head2
29262 #: ../src/guestfs-actions.pod:4820
29263 msgid "guestfs_lvuuid"
29264 msgstr ""
29265
29266 #. type: verbatim
29267 #: ../src/guestfs-actions.pod:4822
29268 #, no-wrap
29269 msgid ""
29270 " char *\n"
29271 " guestfs_lvuuid (guestfs_h *g,\n"
29272 "                 const char *device);\n"
29273 "\n"
29274 msgstr ""
29275
29276 #. type: =head2
29277 #: ../src/guestfs-actions.pod:4833
29278 msgid "guestfs_lxattrlist"
29279 msgstr ""
29280
29281 #. type: verbatim
29282 #: ../src/guestfs-actions.pod:4835
29283 #, no-wrap
29284 msgid ""
29285 " struct guestfs_xattr_list *\n"
29286 " guestfs_lxattrlist (guestfs_h *g,\n"
29287 "                     const char *path,\n"
29288 "                     char *const *names);\n"
29289 "\n"
29290 msgstr ""
29291
29292 #. type: textblock
29293 #: ../src/guestfs-actions.pod:4854
29294 msgid ""
29295 "This call is intended for programs that want to efficiently list a directory "
29296 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29297 "a similarly efficient call for getting standard stats.  Very long directory "
29298 "listings might cause the protocol message size to be exceeded, causing this "
29299 "call to fail.  The caller must split up such requests into smaller groups of "
29300 "names."
29301 msgstr ""
29302
29303 #. type: =head2
29304 #: ../src/guestfs-actions.pod:4868
29305 msgid "guestfs_mdadm_create"
29306 msgstr ""
29307
29308 #. type: verbatim
29309 #: ../src/guestfs-actions.pod:4870
29310 #, no-wrap
29311 msgid ""
29312 " int\n"
29313 " guestfs_mdadm_create (guestfs_h *g,\n"
29314 "                       const char *name,\n"
29315 "                       char *const *devices,\n"
29316 "                       ...);\n"
29317 "\n"
29318 msgstr ""
29319
29320 #. type: verbatim
29321 #: ../src/guestfs-actions.pod:4881
29322 #, no-wrap
29323 msgid ""
29324 " GUESTFS_MDADM_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
29325 " GUESTFS_MDADM_CREATE_NRDEVICES, int nrdevices,\n"
29326 " GUESTFS_MDADM_CREATE_SPARE, int spare,\n"
29327 " GUESTFS_MDADM_CREATE_CHUNK, int64_t chunk,\n"
29328 " GUESTFS_MDADM_CREATE_LEVEL, const char *level,\n"
29329 "\n"
29330 msgstr ""
29331
29332 #. type: =head2
29333 #: ../src/guestfs-actions.pod:4943
29334 msgid "guestfs_mdadm_create_va"
29335 msgstr ""
29336
29337 #. type: verbatim
29338 #: ../src/guestfs-actions.pod:4945
29339 #, no-wrap
29340 msgid ""
29341 " int\n"
29342 " guestfs_mdadm_create_va (guestfs_h *g,\n"
29343 "                          const char *name,\n"
29344 "                          char *const *devices,\n"
29345 "                          va_list args);\n"
29346 "\n"
29347 msgstr ""
29348
29349 #. type: textblock
29350 #: ../src/guestfs-actions.pod:4951
29351 msgid "This is the \"va_list variant\" of L</guestfs_mdadm_create>."
29352 msgstr ""
29353
29354 #. type: =head2
29355 #: ../src/guestfs-actions.pod:4955
29356 msgid "guestfs_mdadm_create_argv"
29357 msgstr ""
29358
29359 #. type: verbatim
29360 #: ../src/guestfs-actions.pod:4957
29361 #, no-wrap
29362 msgid ""
29363 " int\n"
29364 " guestfs_mdadm_create_argv (guestfs_h *g,\n"
29365 "                            const char *name,\n"
29366 "                            char *const *devices,\n"
29367 "                            const struct guestfs_mdadm_create_argv "
29368 "*optargs);\n"
29369 "\n"
29370 msgstr ""
29371
29372 #. type: textblock
29373 #: ../src/guestfs-actions.pod:4963
29374 msgid "This is the \"argv variant\" of L</guestfs_mdadm_create>."
29375 msgstr ""
29376
29377 #. type: =head2
29378 #: ../src/guestfs-actions.pod:4967
29379 msgid "guestfs_mdadm_detail"
29380 msgstr ""
29381
29382 #. type: verbatim
29383 #: ../src/guestfs-actions.pod:4969
29384 #, no-wrap
29385 msgid ""
29386 " char **\n"
29387 " guestfs_mdadm_detail (guestfs_h *g,\n"
29388 "                       const char *md);\n"
29389 "\n"
29390 msgstr ""
29391
29392 #. type: =head2
29393 #: ../src/guestfs-actions.pod:5006
29394 msgid "guestfs_mkdir"
29395 msgstr ""
29396
29397 #. type: verbatim
29398 #: ../src/guestfs-actions.pod:5008
29399 #, no-wrap
29400 msgid ""
29401 " int\n"
29402 " guestfs_mkdir (guestfs_h *g,\n"
29403 "                const char *path);\n"
29404 "\n"
29405 msgstr ""
29406
29407 #. type: =head2
29408 #: ../src/guestfs-actions.pod:5018
29409 msgid "guestfs_mkdir_mode"
29410 msgstr ""
29411
29412 #. type: verbatim
29413 #: ../src/guestfs-actions.pod:5020
29414 #, no-wrap
29415 msgid ""
29416 " int\n"
29417 " guestfs_mkdir_mode (guestfs_h *g,\n"
29418 "                     const char *path,\n"
29419 "                     int mode);\n"
29420 "\n"
29421 msgstr ""
29422
29423 #. type: textblock
29424 #: ../src/guestfs-actions.pod:5032
29425 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29426 msgstr ""
29427
29428 #. type: =head2
29429 #: ../src/guestfs-actions.pod:5038
29430 msgid "guestfs_mkdir_p"
29431 msgstr ""
29432
29433 #. type: verbatim
29434 #: ../src/guestfs-actions.pod:5040
29435 #, no-wrap
29436 msgid ""
29437 " int\n"
29438 " guestfs_mkdir_p (guestfs_h *g,\n"
29439 "                  const char *path);\n"
29440 "\n"
29441 msgstr ""
29442
29443 #. type: =head2
29444 #: ../src/guestfs-actions.pod:5051
29445 msgid "guestfs_mkdtemp"
29446 msgstr ""
29447
29448 #. type: verbatim
29449 #: ../src/guestfs-actions.pod:5053
29450 #, no-wrap
29451 msgid ""
29452 " char *\n"
29453 " guestfs_mkdtemp (guestfs_h *g,\n"
29454 "                  const char *template);\n"
29455 "\n"
29456 msgstr ""
29457
29458 #. type: =head2
29459 #: ../src/guestfs-actions.pod:5081
29460 msgid "guestfs_mke2fs_J"
29461 msgstr ""
29462
29463 #. type: verbatim
29464 #: ../src/guestfs-actions.pod:5083
29465 #, no-wrap
29466 msgid ""
29467 " int\n"
29468 " guestfs_mke2fs_J (guestfs_h *g,\n"
29469 "                   const char *fstype,\n"
29470 "                   int blocksize,\n"
29471 "                   const char *device,\n"
29472 "                   const char *journal);\n"
29473 "\n"
29474 msgstr ""
29475
29476 #. type: textblock
29477 #: ../src/guestfs-actions.pod:5096
29478 msgid "See also C<guestfs_mke2journal>."
29479 msgstr ""
29480
29481 #. type: textblock
29482 #: ../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
29483 msgid "(Added in 1.0.68)"
29484 msgstr ""
29485
29486 #. type: =head2
29487 #: ../src/guestfs-actions.pod:5102
29488 msgid "guestfs_mke2fs_JL"
29489 msgstr ""
29490
29491 #. type: verbatim
29492 #: ../src/guestfs-actions.pod:5104
29493 #, no-wrap
29494 msgid ""
29495 " int\n"
29496 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29497 "                    const char *fstype,\n"
29498 "                    int blocksize,\n"
29499 "                    const char *device,\n"
29500 "                    const char *label);\n"
29501 "\n"
29502 msgstr ""
29503
29504 #. type: textblock
29505 #: ../src/guestfs-actions.pod:5114
29506 msgid "See also C<guestfs_mke2journal_L>."
29507 msgstr ""
29508
29509 #. type: =head2
29510 #: ../src/guestfs-actions.pod:5120
29511 msgid "guestfs_mke2fs_JU"
29512 msgstr ""
29513
29514 #. type: verbatim
29515 #: ../src/guestfs-actions.pod:5122
29516 #, no-wrap
29517 msgid ""
29518 " int\n"
29519 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29520 "                    const char *fstype,\n"
29521 "                    int blocksize,\n"
29522 "                    const char *device,\n"
29523 "                    const char *uuid);\n"
29524 "\n"
29525 msgstr ""
29526
29527 #. type: textblock
29528 #: ../src/guestfs-actions.pod:5132
29529 msgid "See also C<guestfs_mke2journal_U>."
29530 msgstr ""
29531
29532 #. type: =head2
29533 #: ../src/guestfs-actions.pod:5138
29534 msgid "guestfs_mke2journal"
29535 msgstr ""
29536
29537 #. type: verbatim
29538 #: ../src/guestfs-actions.pod:5140
29539 #, no-wrap
29540 msgid ""
29541 " int\n"
29542 " guestfs_mke2journal (guestfs_h *g,\n"
29543 "                      int blocksize,\n"
29544 "                      const char *device);\n"
29545 "\n"
29546 msgstr ""
29547
29548 #. type: =head2
29549 #: ../src/guestfs-actions.pod:5154
29550 msgid "guestfs_mke2journal_L"
29551 msgstr ""
29552
29553 #. type: verbatim
29554 #: ../src/guestfs-actions.pod:5156
29555 #, no-wrap
29556 msgid ""
29557 " int\n"
29558 " guestfs_mke2journal_L (guestfs_h *g,\n"
29559 "                        int blocksize,\n"
29560 "                        const char *label,\n"
29561 "                        const char *device);\n"
29562 "\n"
29563 msgstr ""
29564
29565 #. type: =head2
29566 #: ../src/guestfs-actions.pod:5168
29567 msgid "guestfs_mke2journal_U"
29568 msgstr ""
29569
29570 #. type: verbatim
29571 #: ../src/guestfs-actions.pod:5170
29572 #, no-wrap
29573 msgid ""
29574 " int\n"
29575 " guestfs_mke2journal_U (guestfs_h *g,\n"
29576 "                        int blocksize,\n"
29577 "                        const char *uuid,\n"
29578 "                        const char *device);\n"
29579 "\n"
29580 msgstr ""
29581
29582 #. type: =head2
29583 #: ../src/guestfs-actions.pod:5182
29584 msgid "guestfs_mkfifo"
29585 msgstr ""
29586
29587 #. type: verbatim
29588 #: ../src/guestfs-actions.pod:5184
29589 #, no-wrap
29590 msgid ""
29591 " int\n"
29592 " guestfs_mkfifo (guestfs_h *g,\n"
29593 "                 int mode,\n"
29594 "                 const char *path);\n"
29595 "\n"
29596 msgstr ""
29597
29598 #. type: textblock
29599 #: ../src/guestfs-actions.pod:5189
29600 msgid ""
29601 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29602 "is just a convenient wrapper around C<guestfs_mknod>."
29603 msgstr ""
29604
29605 #. type: =head2
29606 #: ../src/guestfs-actions.pod:5199
29607 msgid "guestfs_mkfs"
29608 msgstr ""
29609
29610 #. type: verbatim
29611 #: ../src/guestfs-actions.pod:5201
29612 #, no-wrap
29613 msgid ""
29614 " int\n"
29615 " guestfs_mkfs (guestfs_h *g,\n"
29616 "               const char *fstype,\n"
29617 "               const char *device);\n"
29618 "\n"
29619 msgstr ""
29620
29621 #. type: =head2
29622 #: ../src/guestfs-actions.pod:5214
29623 msgid "guestfs_mkfs_b"
29624 msgstr ""
29625
29626 #. type: verbatim
29627 #: ../src/guestfs-actions.pod:5216
29628 #, no-wrap
29629 msgid ""
29630 " int\n"
29631 " guestfs_mkfs_b (guestfs_h *g,\n"
29632 "                 const char *fstype,\n"
29633 "                 int blocksize,\n"
29634 "                 const char *device);\n"
29635 "\n"
29636 msgstr ""
29637
29638 #. type: textblock
29639 #: ../src/guestfs-actions.pod:5222
29640 msgid ""
29641 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29642 "call instead."
29643 msgstr ""
29644
29645 #. type: textblock
29646 #: ../src/guestfs-actions.pod:5229
29647 msgid ""
29648 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29649 "block size of the resulting filesystem.  Supported block sizes depend on the "
29650 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29651 msgstr ""
29652
29653 #. type: =head2
29654 #: ../src/guestfs-actions.pod:5241
29655 msgid "guestfs_mkfs_opts"
29656 msgstr ""
29657
29658 #. type: verbatim
29659 #: ../src/guestfs-actions.pod:5243
29660 #, no-wrap
29661 msgid ""
29662 " int\n"
29663 " guestfs_mkfs_opts (guestfs_h *g,\n"
29664 "                    const char *fstype,\n"
29665 "                    const char *device,\n"
29666 "                    ...);\n"
29667 "\n"
29668 msgstr ""
29669
29670 #. type: verbatim
29671 #: ../src/guestfs-actions.pod:5254
29672 #, no-wrap
29673 msgid ""
29674 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29675 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29676 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29677 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29678 "\n"
29679 msgstr ""
29680
29681 #. type: textblock
29682 #: ../src/guestfs-actions.pod:5302
29683 msgid "(Added in 1.7.19)"
29684 msgstr ""
29685
29686 #. type: =head2
29687 #: ../src/guestfs-actions.pod:5304
29688 msgid "guestfs_mkfs_opts_va"
29689 msgstr ""
29690
29691 #. type: verbatim
29692 #: ../src/guestfs-actions.pod:5306
29693 #, no-wrap
29694 msgid ""
29695 " int\n"
29696 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29697 "                       const char *fstype,\n"
29698 "                       const char *device,\n"
29699 "                       va_list args);\n"
29700 "\n"
29701 msgstr ""
29702
29703 #. type: textblock
29704 #: ../src/guestfs-actions.pod:5312
29705 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29706 msgstr ""
29707
29708 #. type: =head2
29709 #: ../src/guestfs-actions.pod:5316
29710 msgid "guestfs_mkfs_opts_argv"
29711 msgstr ""
29712
29713 #. type: verbatim
29714 #: ../src/guestfs-actions.pod:5318
29715 #, no-wrap
29716 msgid ""
29717 " int\n"
29718 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29719 "                         const char *fstype,\n"
29720 "                         const char *device,\n"
29721 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29722 "\n"
29723 msgstr ""
29724
29725 #. type: textblock
29726 #: ../src/guestfs-actions.pod:5324
29727 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29728 msgstr ""
29729
29730 #. type: =head2
29731 #: ../src/guestfs-actions.pod:5328
29732 msgid "guestfs_mkmountpoint"
29733 msgstr ""
29734
29735 #. type: verbatim
29736 #: ../src/guestfs-actions.pod:5330
29737 #, no-wrap
29738 msgid ""
29739 " int\n"
29740 " guestfs_mkmountpoint (guestfs_h *g,\n"
29741 "                       const char *exemptpath);\n"
29742 "\n"
29743 msgstr ""
29744
29745 #. type: textblock
29746 #: ../src/guestfs-actions.pod:5334
29747 msgid ""
29748 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29749 "that can be used to create extra mountpoints before mounting the first "
29750 "filesystem."
29751 msgstr ""
29752
29753 #. type: textblock
29754 #: ../src/guestfs-actions.pod:5358
29755 msgid ""
29756 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29757 "may get unexpected errors if you try to mix these calls.  It is safest to "
29758 "manually unmount filesystems and remove mountpoints after use."
29759 msgstr ""
29760
29761 #. type: textblock
29762 #: ../src/guestfs-actions.pod:5362
29763 msgid ""
29764 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29765 "first, so for this to work for manual mountpoints, you must ensure that the "
29766 "innermost mountpoints have the longest pathnames, as in the example code "
29767 "above."
29768 msgstr ""
29769
29770 #. type: textblock
29771 #: ../src/guestfs-actions.pod:5369
29772 msgid ""
29773 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29774 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29775 "can also trigger these issues."
29776 msgstr ""
29777
29778 #. type: textblock
29779 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5681 ../src/guestfs-actions.pod:6708
29780 msgid "(Added in 1.0.62)"
29781 msgstr ""
29782
29783 #. type: =head2
29784 #: ../src/guestfs-actions.pod:5377
29785 msgid "guestfs_mknod"
29786 msgstr ""
29787
29788 #. type: verbatim
29789 #: ../src/guestfs-actions.pod:5379
29790 #, no-wrap
29791 msgid ""
29792 " int\n"
29793 " guestfs_mknod (guestfs_h *g,\n"
29794 "                int mode,\n"
29795 "                int devmajor,\n"
29796 "                int devminor,\n"
29797 "                const char *path);\n"
29798 "\n"
29799 msgstr ""
29800
29801 #. type: textblock
29802 #: ../src/guestfs-actions.pod:5394
29803 msgid ""
29804 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29805 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29806 "regular file).  These constants are available in the standard Linux header "
29807 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29808 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29809 "the appropriate constant for you."
29810 msgstr ""
29811
29812 #. type: =head2
29813 #: ../src/guestfs-actions.pod:5408
29814 msgid "guestfs_mknod_b"
29815 msgstr ""
29816
29817 #. type: verbatim
29818 #: ../src/guestfs-actions.pod:5410
29819 #, no-wrap
29820 msgid ""
29821 " int\n"
29822 " guestfs_mknod_b (guestfs_h *g,\n"
29823 "                  int mode,\n"
29824 "                  int devmajor,\n"
29825 "                  int devminor,\n"
29826 "                  const char *path);\n"
29827 "\n"
29828 msgstr ""
29829
29830 #. type: textblock
29831 #: ../src/guestfs-actions.pod:5417
29832 msgid ""
29833 "This call creates a block device node called C<path> with mode C<mode> and "
29834 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29835 "wrapper around C<guestfs_mknod>."
29836 msgstr ""
29837
29838 #. type: =head2
29839 #: ../src/guestfs-actions.pod:5427
29840 msgid "guestfs_mknod_c"
29841 msgstr ""
29842
29843 #. type: verbatim
29844 #: ../src/guestfs-actions.pod:5429
29845 #, no-wrap
29846 msgid ""
29847 " int\n"
29848 " guestfs_mknod_c (guestfs_h *g,\n"
29849 "                  int mode,\n"
29850 "                  int devmajor,\n"
29851 "                  int devminor,\n"
29852 "                  const char *path);\n"
29853 "\n"
29854 msgstr ""
29855
29856 #. type: textblock
29857 #: ../src/guestfs-actions.pod:5436
29858 msgid ""
29859 "This call creates a char device node called C<path> with mode C<mode> and "
29860 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29861 "wrapper around C<guestfs_mknod>."
29862 msgstr ""
29863
29864 #. type: =head2
29865 #: ../src/guestfs-actions.pod:5446
29866 msgid "guestfs_mkswap"
29867 msgstr ""
29868
29869 #. type: verbatim
29870 #: ../src/guestfs-actions.pod:5448
29871 #, no-wrap
29872 msgid ""
29873 " int\n"
29874 " guestfs_mkswap (guestfs_h *g,\n"
29875 "                 const char *device);\n"
29876 "\n"
29877 msgstr ""
29878
29879 #. type: =head2
29880 #: ../src/guestfs-actions.pod:5458
29881 msgid "guestfs_mkswap_L"
29882 msgstr ""
29883
29884 #. type: verbatim
29885 #: ../src/guestfs-actions.pod:5460
29886 #, no-wrap
29887 msgid ""
29888 " int\n"
29889 " guestfs_mkswap_L (guestfs_h *g,\n"
29890 "                   const char *label,\n"
29891 "                   const char *device);\n"
29892 "\n"
29893 msgstr ""
29894
29895 #. type: =head2
29896 #: ../src/guestfs-actions.pod:5475
29897 msgid "guestfs_mkswap_U"
29898 msgstr ""
29899
29900 #. type: verbatim
29901 #: ../src/guestfs-actions.pod:5477
29902 #, no-wrap
29903 msgid ""
29904 " int\n"
29905 " guestfs_mkswap_U (guestfs_h *g,\n"
29906 "                   const char *uuid,\n"
29907 "                   const char *device);\n"
29908 "\n"
29909 msgstr ""
29910
29911 #. type: =head2
29912 #: ../src/guestfs-actions.pod:5488
29913 msgid "guestfs_mkswap_file"
29914 msgstr ""
29915
29916 #. type: verbatim
29917 #: ../src/guestfs-actions.pod:5490
29918 #, no-wrap
29919 msgid ""
29920 " int\n"
29921 " guestfs_mkswap_file (guestfs_h *g,\n"
29922 "                      const char *path);\n"
29923 "\n"
29924 msgstr ""
29925
29926 #. type: textblock
29927 #: ../src/guestfs-actions.pod:5496
29928 msgid ""
29929 "This command just writes a swap file signature to an existing file.  To "
29930 "create the file itself, use something like C<guestfs_fallocate>."
29931 msgstr ""
29932
29933 #. type: =head2
29934 #: ../src/guestfs-actions.pod:5503
29935 msgid "guestfs_modprobe"
29936 msgstr ""
29937
29938 #. type: verbatim
29939 #: ../src/guestfs-actions.pod:5505
29940 #, no-wrap
29941 msgid ""
29942 " int\n"
29943 " guestfs_modprobe (guestfs_h *g,\n"
29944 "                   const char *modulename);\n"
29945 "\n"
29946 msgstr ""
29947
29948 #. type: =head2
29949 #: ../src/guestfs-actions.pod:5518
29950 msgid "guestfs_mount"
29951 msgstr ""
29952
29953 #. type: verbatim
29954 #: ../src/guestfs-actions.pod:5520
29955 #, no-wrap
29956 msgid ""
29957 " int\n"
29958 " guestfs_mount (guestfs_h *g,\n"
29959 "                const char *device,\n"
29960 "                const char *mountpoint);\n"
29961 "\n"
29962 msgstr ""
29963
29964 #. type: textblock
29965 #: ../src/guestfs-actions.pod:5539
29966 msgid ""
29967 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29968 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
29969 "problems for users.  If your program might need to work with older versions "
29970 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29971 "for the first parameter if you don't want any options)."
29972 msgstr ""
29973
29974 #. type: =head2
29975 #: ../src/guestfs-actions.pod:5550
29976 msgid "guestfs_mount_9p"
29977 msgstr ""
29978
29979 #. type: verbatim
29980 #: ../src/guestfs-actions.pod:5552
29981 #, no-wrap
29982 msgid ""
29983 " int\n"
29984 " guestfs_mount_9p (guestfs_h *g,\n"
29985 "                   const char *mounttag,\n"
29986 "                   const char *mountpoint,\n"
29987 "                   ...);\n"
29988 "\n"
29989 msgstr ""
29990
29991 #. type: verbatim
29992 #: ../src/guestfs-actions.pod:5563
29993 #, no-wrap
29994 msgid ""
29995 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29996 "\n"
29997 msgstr ""
29998
29999 #. type: =head2
30000 #: ../src/guestfs-actions.pod:5576
30001 msgid "guestfs_mount_9p_va"
30002 msgstr ""
30003
30004 #. type: verbatim
30005 #: ../src/guestfs-actions.pod:5578
30006 #, no-wrap
30007 msgid ""
30008 " int\n"
30009 " guestfs_mount_9p_va (guestfs_h *g,\n"
30010 "                      const char *mounttag,\n"
30011 "                      const char *mountpoint,\n"
30012 "                      va_list args);\n"
30013 "\n"
30014 msgstr ""
30015
30016 #. type: textblock
30017 #: ../src/guestfs-actions.pod:5584
30018 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30019 msgstr ""
30020
30021 #. type: =head2
30022 #: ../src/guestfs-actions.pod:5588
30023 msgid "guestfs_mount_9p_argv"
30024 msgstr ""
30025
30026 #. type: verbatim
30027 #: ../src/guestfs-actions.pod:5590
30028 #, no-wrap
30029 msgid ""
30030 " int\n"
30031 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30032 "                        const char *mounttag,\n"
30033 "                        const char *mountpoint,\n"
30034 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30035 "\n"
30036 msgstr ""
30037
30038 #. type: textblock
30039 #: ../src/guestfs-actions.pod:5596
30040 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30041 msgstr ""
30042
30043 #. type: =head2
30044 #: ../src/guestfs-actions.pod:5600
30045 msgid "guestfs_mount_loop"
30046 msgstr ""
30047
30048 #. type: verbatim
30049 #: ../src/guestfs-actions.pod:5602
30050 #, no-wrap
30051 msgid ""
30052 " int\n"
30053 " guestfs_mount_loop (guestfs_h *g,\n"
30054 "                     const char *file,\n"
30055 "                     const char *mountpoint);\n"
30056 "\n"
30057 msgstr ""
30058
30059 #. type: =head2
30060 #: ../src/guestfs-actions.pod:5615
30061 msgid "guestfs_mount_options"
30062 msgstr ""
30063
30064 #. type: verbatim
30065 #: ../src/guestfs-actions.pod:5617
30066 #, no-wrap
30067 msgid ""
30068 " int\n"
30069 " guestfs_mount_options (guestfs_h *g,\n"
30070 "                        const char *options,\n"
30071 "                        const char *device,\n"
30072 "                        const char *mountpoint);\n"
30073 "\n"
30074 msgstr ""
30075
30076 #. type: textblock
30077 #: ../src/guestfs-actions.pod:5623
30078 msgid ""
30079 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30080 "the mount options as for the L<mount(8)> I<-o> flag."
30081 msgstr ""
30082
30083 #. type: textblock
30084 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5664
30085 msgid "(Added in 1.0.10)"
30086 msgstr ""
30087
30088 #. type: =head2
30089 #: ../src/guestfs-actions.pod:5635
30090 msgid "guestfs_mount_ro"
30091 msgstr ""
30092
30093 #. type: verbatim
30094 #: ../src/guestfs-actions.pod:5637
30095 #, no-wrap
30096 msgid ""
30097 " int\n"
30098 " guestfs_mount_ro (guestfs_h *g,\n"
30099 "                   const char *device,\n"
30100 "                   const char *mountpoint);\n"
30101 "\n"
30102 msgstr ""
30103
30104 #. type: textblock
30105 #: ../src/guestfs-actions.pod:5642
30106 msgid ""
30107 "This is the same as the C<guestfs_mount> command, but it mounts the "
30108 "filesystem with the read-only (I<-o ro>) flag."
30109 msgstr ""
30110
30111 #. type: =head2
30112 #: ../src/guestfs-actions.pod:5649
30113 msgid "guestfs_mount_vfs"
30114 msgstr ""
30115
30116 #. type: verbatim
30117 #: ../src/guestfs-actions.pod:5651
30118 #, no-wrap
30119 msgid ""
30120 " int\n"
30121 " guestfs_mount_vfs (guestfs_h *g,\n"
30122 "                    const char *options,\n"
30123 "                    const char *vfstype,\n"
30124 "                    const char *device,\n"
30125 "                    const char *mountpoint);\n"
30126 "\n"
30127 msgstr ""
30128
30129 #. type: textblock
30130 #: ../src/guestfs-actions.pod:5658
30131 msgid ""
30132 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30133 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
30134 "I<-t> flags."
30135 msgstr ""
30136
30137 #. type: =head2
30138 #: ../src/guestfs-actions.pod:5666
30139 msgid "guestfs_mountpoints"
30140 msgstr ""
30141
30142 #. type: verbatim
30143 #: ../src/guestfs-actions.pod:5668
30144 #, no-wrap
30145 msgid ""
30146 " char **\n"
30147 " guestfs_mountpoints (guestfs_h *g);\n"
30148 "\n"
30149 msgstr ""
30150
30151 #. type: textblock
30152 #: ../src/guestfs-actions.pod:5671
30153 msgid ""
30154 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30155 "devices.  This one returns a hash table (map) of device name to directory "
30156 "where the device is mounted."
30157 msgstr ""
30158
30159 #. type: =head2
30160 #: ../src/guestfs-actions.pod:5683
30161 msgid "guestfs_mounts"
30162 msgstr ""
30163
30164 #. type: verbatim
30165 #: ../src/guestfs-actions.pod:5685
30166 #, no-wrap
30167 msgid ""
30168 " char **\n"
30169 " guestfs_mounts (guestfs_h *g);\n"
30170 "\n"
30171 msgstr ""
30172
30173 #. type: textblock
30174 #: ../src/guestfs-actions.pod:5693
30175 msgid "See also: C<guestfs_mountpoints>"
30176 msgstr ""
30177
30178 #. type: =head2
30179 #: ../src/guestfs-actions.pod:5701
30180 msgid "guestfs_mv"
30181 msgstr ""
30182
30183 #. type: verbatim
30184 #: ../src/guestfs-actions.pod:5703
30185 #, no-wrap
30186 msgid ""
30187 " int\n"
30188 " guestfs_mv (guestfs_h *g,\n"
30189 "             const char *src,\n"
30190 "             const char *dest);\n"
30191 "\n"
30192 msgstr ""
30193
30194 #. type: =head2
30195 #: ../src/guestfs-actions.pod:5715
30196 msgid "guestfs_ntfs_3g_probe"
30197 msgstr ""
30198
30199 #. type: verbatim
30200 #: ../src/guestfs-actions.pod:5717
30201 #, no-wrap
30202 msgid ""
30203 " int\n"
30204 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30205 "                        int rw,\n"
30206 "                        const char *device);\n"
30207 "\n"
30208 msgstr ""
30209
30210 #. type: textblock
30211 #: ../src/guestfs-actions.pod:5736
30212 msgid "(Added in 1.0.43)"
30213 msgstr ""
30214
30215 #. type: =head2
30216 #: ../src/guestfs-actions.pod:5738
30217 msgid "guestfs_ntfsresize"
30218 msgstr ""
30219
30220 #. type: verbatim
30221 #: ../src/guestfs-actions.pod:5740
30222 #, no-wrap
30223 msgid ""
30224 " int\n"
30225 " guestfs_ntfsresize (guestfs_h *g,\n"
30226 "                     const char *device);\n"
30227 "\n"
30228 msgstr ""
30229
30230 #. type: textblock
30231 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5844
30232 msgid ""
30233 "I<This function is deprecated.> In new code, use the "
30234 "L</guestfs_ntfsresize_opts> call instead."
30235 msgstr ""
30236
30237 #. type: =head2
30238 #: ../src/guestfs-actions.pod:5768
30239 msgid "guestfs_ntfsresize_opts"
30240 msgstr ""
30241
30242 #. type: verbatim
30243 #: ../src/guestfs-actions.pod:5770
30244 #, no-wrap
30245 msgid ""
30246 " int\n"
30247 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30248 "                          const char *device,\n"
30249 "                          ...);\n"
30250 "\n"
30251 msgstr ""
30252
30253 #. type: verbatim
30254 #: ../src/guestfs-actions.pod:5780
30255 #, no-wrap
30256 msgid ""
30257 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30258 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30259 "\n"
30260 msgstr ""
30261
30262 #. type: textblock
30263 #: ../src/guestfs-actions.pod:5800
30264 msgid ""
30265 "After the resize operation, the filesystem is always marked as requiring a "
30266 "consistency check (for safety).  You have to boot into Windows to perform "
30267 "this check and clear this condition.  If you I<don't> set the C<force> "
30268 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30269 "times on a single filesystem without booting into Windows between each "
30270 "resize."
30271 msgstr ""
30272
30273 #. type: =head2
30274 #: ../src/guestfs-actions.pod:5815
30275 msgid "guestfs_ntfsresize_opts_va"
30276 msgstr ""
30277
30278 #. type: verbatim
30279 #: ../src/guestfs-actions.pod:5817
30280 #, no-wrap
30281 msgid ""
30282 " int\n"
30283 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30284 "                             const char *device,\n"
30285 "                             va_list args);\n"
30286 "\n"
30287 msgstr ""
30288
30289 #. type: textblock
30290 #: ../src/guestfs-actions.pod:5822
30291 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30292 msgstr ""
30293
30294 #. type: =head2
30295 #: ../src/guestfs-actions.pod:5826
30296 msgid "guestfs_ntfsresize_opts_argv"
30297 msgstr ""
30298
30299 #. type: verbatim
30300 #: ../src/guestfs-actions.pod:5828
30301 #, no-wrap
30302 msgid ""
30303 " int\n"
30304 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30305 "                               const char *device,\n"
30306 "                               const struct guestfs_ntfsresize_opts_argv "
30307 "*optargs);\n"
30308 "\n"
30309 msgstr ""
30310
30311 #. type: textblock
30312 #: ../src/guestfs-actions.pod:5833
30313 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30314 msgstr ""
30315
30316 #. type: =head2
30317 #: ../src/guestfs-actions.pod:5837
30318 msgid "guestfs_ntfsresize_size"
30319 msgstr ""
30320
30321 #. type: verbatim
30322 #: ../src/guestfs-actions.pod:5839
30323 #, no-wrap
30324 msgid ""
30325 " int\n"
30326 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30327 "                          const char *device,\n"
30328 "                          int64_t size);\n"
30329 "\n"
30330 msgstr ""
30331
30332 #. type: textblock
30333 #: ../src/guestfs-actions.pod:5851
30334 msgid ""
30335 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30336 "to specify the new size (in bytes) explicitly."
30337 msgstr ""
30338
30339 #. type: textblock
30340 #: ../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
30341 msgid "(Added in 1.3.14)"
30342 msgstr ""
30343
30344 #. type: =head2
30345 #: ../src/guestfs-actions.pod:5858
30346 msgid "guestfs_part_add"
30347 msgstr ""
30348
30349 #. type: verbatim
30350 #: ../src/guestfs-actions.pod:5860
30351 #, no-wrap
30352 msgid ""
30353 " int\n"
30354 " guestfs_part_add (guestfs_h *g,\n"
30355 "                   const char *device,\n"
30356 "                   const char *prlogex,\n"
30357 "                   int64_t startsect,\n"
30358 "                   int64_t endsect);\n"
30359 "\n"
30360 msgstr ""
30361
30362 #. type: textblock
30363 #: ../src/guestfs-actions.pod:5867
30364 msgid ""
30365 "This command adds a partition to C<device>.  If there is no partition table "
30366 "on the device, call C<guestfs_part_init> first."
30367 msgstr ""
30368
30369 #. type: textblock
30370 #: ../src/guestfs-actions.pod:5879
30371 msgid ""
30372 "Creating a partition which covers the whole disk is not so easy.  Use "
30373 "C<guestfs_part_disk> to do that."
30374 msgstr ""
30375
30376 #. type: textblock
30377 #: ../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
30378 msgid "(Added in 1.0.78)"
30379 msgstr ""
30380
30381 #. type: =head2
30382 #: ../src/guestfs-actions.pod:5886
30383 msgid "guestfs_part_del"
30384 msgstr ""
30385
30386 #. type: verbatim
30387 #: ../src/guestfs-actions.pod:5888
30388 #, no-wrap
30389 msgid ""
30390 " int\n"
30391 " guestfs_part_del (guestfs_h *g,\n"
30392 "                   const char *device,\n"
30393 "                   int partnum);\n"
30394 "\n"
30395 msgstr ""
30396
30397 #. type: =head2
30398 #: ../src/guestfs-actions.pod:5903
30399 msgid "guestfs_part_disk"
30400 msgstr ""
30401
30402 #. type: verbatim
30403 #: ../src/guestfs-actions.pod:5905
30404 #, no-wrap
30405 msgid ""
30406 " int\n"
30407 " guestfs_part_disk (guestfs_h *g,\n"
30408 "                    const char *device,\n"
30409 "                    const char *parttype);\n"
30410 "\n"
30411 msgstr ""
30412
30413 #. type: textblock
30414 #: ../src/guestfs-actions.pod:5910
30415 msgid ""
30416 "This command is simply a combination of C<guestfs_part_init> followed by "
30417 "C<guestfs_part_add> to create a single primary partition covering the whole "
30418 "disk."
30419 msgstr ""
30420
30421 #. type: textblock
30422 #: ../src/guestfs-actions.pod:5914
30423 msgid ""
30424 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30425 "possible values are described in C<guestfs_part_init>."
30426 msgstr ""
30427
30428 #. type: =head2
30429 #: ../src/guestfs-actions.pod:5921
30430 msgid "guestfs_part_get_bootable"
30431 msgstr ""
30432
30433 #. type: verbatim
30434 #: ../src/guestfs-actions.pod:5923
30435 #, no-wrap
30436 msgid ""
30437 " int\n"
30438 " guestfs_part_get_bootable (guestfs_h *g,\n"
30439 "                            const char *device,\n"
30440 "                            int partnum);\n"
30441 "\n"
30442 msgstr ""
30443
30444 #. type: textblock
30445 #: ../src/guestfs-actions.pod:5931
30446 msgid "See also C<guestfs_part_set_bootable>."
30447 msgstr ""
30448
30449 #. type: =head2
30450 #: ../src/guestfs-actions.pod:5937
30451 msgid "guestfs_part_get_mbr_id"
30452 msgstr ""
30453
30454 #. type: verbatim
30455 #: ../src/guestfs-actions.pod:5939
30456 #, no-wrap
30457 msgid ""
30458 " int\n"
30459 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30460 "                          const char *device,\n"
30461 "                          int partnum);\n"
30462 "\n"
30463 msgstr ""
30464
30465 #. type: textblock
30466 #: ../src/guestfs-actions.pod:5947 ../src/guestfs-actions.pod:6129
30467 msgid ""
30468 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30469 "undefined results for other partition table types (see "
30470 "C<guestfs_part_get_parttype>)."
30471 msgstr ""
30472
30473 #. type: =head2
30474 #: ../src/guestfs-actions.pod:5955
30475 msgid "guestfs_part_get_parttype"
30476 msgstr ""
30477
30478 #. type: verbatim
30479 #: ../src/guestfs-actions.pod:5957
30480 #, no-wrap
30481 msgid ""
30482 " char *\n"
30483 " guestfs_part_get_parttype (guestfs_h *g,\n"
30484 "                            const char *device);\n"
30485 "\n"
30486 msgstr ""
30487
30488 #. type: textblock
30489 #: ../src/guestfs-actions.pod:5964
30490 msgid ""
30491 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30492 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30493 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30494 msgstr ""
30495
30496 #. type: =head2
30497 #: ../src/guestfs-actions.pod:5974
30498 msgid "guestfs_part_init"
30499 msgstr ""
30500
30501 #. type: verbatim
30502 #: ../src/guestfs-actions.pod:5976
30503 #, no-wrap
30504 msgid ""
30505 " int\n"
30506 " guestfs_part_init (guestfs_h *g,\n"
30507 "                    const char *device,\n"
30508 "                    const char *parttype);\n"
30509 "\n"
30510 msgstr ""
30511
30512 #. type: textblock
30513 #: ../src/guestfs-actions.pod:5985
30514 msgid ""
30515 "Initially there are no partitions.  Following this, you should call "
30516 "C<guestfs_part_add> for each partition required."
30517 msgstr ""
30518
30519 #. type: =head2
30520 #: ../src/guestfs-actions.pod:6058
30521 msgid "guestfs_part_list"
30522 msgstr ""
30523
30524 #. type: verbatim
30525 #: ../src/guestfs-actions.pod:6060
30526 #, no-wrap
30527 msgid ""
30528 " struct guestfs_partition_list *\n"
30529 " guestfs_part_list (guestfs_h *g,\n"
30530 "                    const char *device);\n"
30531 "\n"
30532 msgstr ""
30533
30534 #. type: textblock
30535 #: ../src/guestfs-actions.pod:6077
30536 msgid ""
30537 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30538 "the device's sector size, see C<guestfs_blockdev_getss>."
30539 msgstr ""
30540
30541 #. type: textblock
30542 #: ../src/guestfs-actions.pod:6090
30543 msgid ""
30544 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30545 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30546 "use>."
30547 msgstr ""
30548
30549 #. type: =head2
30550 #: ../src/guestfs-actions.pod:6096
30551 msgid "guestfs_part_set_bootable"
30552 msgstr ""
30553
30554 #. type: verbatim
30555 #: ../src/guestfs-actions.pod:6098
30556 #, no-wrap
30557 msgid ""
30558 " int\n"
30559 " guestfs_part_set_bootable (guestfs_h *g,\n"
30560 "                            const char *device,\n"
30561 "                            int partnum,\n"
30562 "                            int bootable);\n"
30563 "\n"
30564 msgstr ""
30565
30566 #. type: =head2
30567 #: ../src/guestfs-actions.pod:6115
30568 msgid "guestfs_part_set_mbr_id"
30569 msgstr ""
30570
30571 #. type: verbatim
30572 #: ../src/guestfs-actions.pod:6117
30573 #, no-wrap
30574 msgid ""
30575 " int\n"
30576 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30577 "                          const char *device,\n"
30578 "                          int partnum,\n"
30579 "                          int idbyte);\n"
30580 "\n"
30581 msgstr ""
30582
30583 #. type: =head2
30584 #: ../src/guestfs-actions.pod:6137
30585 msgid "guestfs_part_set_name"
30586 msgstr ""
30587
30588 #. type: verbatim
30589 #: ../src/guestfs-actions.pod:6139
30590 #, no-wrap
30591 msgid ""
30592 " int\n"
30593 " guestfs_part_set_name (guestfs_h *g,\n"
30594 "                        const char *device,\n"
30595 "                        int partnum,\n"
30596 "                        const char *name);\n"
30597 "\n"
30598 msgstr ""
30599
30600 #. type: =head2
30601 #: ../src/guestfs-actions.pod:6155
30602 msgid "guestfs_part_to_dev"
30603 msgstr ""
30604
30605 #. type: verbatim
30606 #: ../src/guestfs-actions.pod:6157
30607 #, no-wrap
30608 msgid ""
30609 " char *\n"
30610 " guestfs_part_to_dev (guestfs_h *g,\n"
30611 "                      const char *partition);\n"
30612 "\n"
30613 msgstr ""
30614
30615 #. type: textblock
30616 #: ../src/guestfs-actions.pod:6165 ../src/guestfs-actions.pod:6184
30617 msgid ""
30618 "The named partition must exist, for example as a string returned from "
30619 "C<guestfs_list_partitions>."
30620 msgstr ""
30621
30622 #. type: textblock
30623 #: ../src/guestfs-actions.pod:6168
30624 msgid "See also C<guestfs_part_to_partnum>."
30625 msgstr ""
30626
30627 #. type: =head2
30628 #: ../src/guestfs-actions.pod:6175
30629 msgid "guestfs_part_to_partnum"
30630 msgstr ""
30631
30632 #. type: verbatim
30633 #: ../src/guestfs-actions.pod:6177
30634 #, no-wrap
30635 msgid ""
30636 " int\n"
30637 " guestfs_part_to_partnum (guestfs_h *g,\n"
30638 "                          const char *partition);\n"
30639 "\n"
30640 msgstr ""
30641
30642 #. type: textblock
30643 #: ../src/guestfs-actions.pod:6187
30644 msgid "See also C<guestfs_part_to_dev>."
30645 msgstr ""
30646
30647 #. type: =head2
30648 #: ../src/guestfs-actions.pod:6193
30649 msgid "guestfs_ping_daemon"
30650 msgstr ""
30651
30652 #. type: verbatim
30653 #: ../src/guestfs-actions.pod:6195
30654 #, no-wrap
30655 msgid ""
30656 " int\n"
30657 " guestfs_ping_daemon (guestfs_h *g);\n"
30658 "\n"
30659 msgstr ""
30660
30661 #. type: =head2
30662 #: ../src/guestfs-actions.pod:6207
30663 msgid "guestfs_pread"
30664 msgstr ""
30665
30666 #. type: verbatim
30667 #: ../src/guestfs-actions.pod:6209
30668 #, no-wrap
30669 msgid ""
30670 " char *\n"
30671 " guestfs_pread (guestfs_h *g,\n"
30672 "                const char *path,\n"
30673 "                int count,\n"
30674 "                int64_t offset,\n"
30675 "                size_t *size_r);\n"
30676 "\n"
30677 msgstr ""
30678
30679 #. type: textblock
30680 #: ../src/guestfs-actions.pod:6222
30681 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30682 msgstr ""
30683
30684 #. type: =head2
30685 #: ../src/guestfs-actions.pod:6233
30686 msgid "guestfs_pread_device"
30687 msgstr ""
30688
30689 #. type: verbatim
30690 #: ../src/guestfs-actions.pod:6235
30691 #, no-wrap
30692 msgid ""
30693 " char *\n"
30694 " guestfs_pread_device (guestfs_h *g,\n"
30695 "                       const char *device,\n"
30696 "                       int count,\n"
30697 "                       int64_t offset,\n"
30698 "                       size_t *size_r);\n"
30699 "\n"
30700 msgstr ""
30701
30702 #. type: textblock
30703 #: ../src/guestfs-actions.pod:6248
30704 msgid "See also C<guestfs_pread>."
30705 msgstr ""
30706
30707 #. type: textblock
30708 #: ../src/guestfs-actions.pod:6257
30709 msgid "(Added in 1.5.21)"
30710 msgstr ""
30711
30712 #. type: =head2
30713 #: ../src/guestfs-actions.pod:6259
30714 msgid "guestfs_pvcreate"
30715 msgstr ""
30716
30717 #. type: verbatim
30718 #: ../src/guestfs-actions.pod:6261
30719 #, no-wrap
30720 msgid ""
30721 " int\n"
30722 " guestfs_pvcreate (guestfs_h *g,\n"
30723 "                   const char *device);\n"
30724 "\n"
30725 msgstr ""
30726
30727 #. type: =head2
30728 #: ../src/guestfs-actions.pod:6273
30729 msgid "guestfs_pvremove"
30730 msgstr ""
30731
30732 #. type: verbatim
30733 #: ../src/guestfs-actions.pod:6275
30734 #, no-wrap
30735 msgid ""
30736 " int\n"
30737 " guestfs_pvremove (guestfs_h *g,\n"
30738 "                   const char *device);\n"
30739 "\n"
30740 msgstr ""
30741
30742 #. type: =head2
30743 #: ../src/guestfs-actions.pod:6290
30744 msgid "guestfs_pvresize"
30745 msgstr ""
30746
30747 #. type: verbatim
30748 #: ../src/guestfs-actions.pod:6292
30749 #, no-wrap
30750 msgid ""
30751 " int\n"
30752 " guestfs_pvresize (guestfs_h *g,\n"
30753 "                   const char *device);\n"
30754 "\n"
30755 msgstr ""
30756
30757 #. type: =head2
30758 #: ../src/guestfs-actions.pod:6303
30759 msgid "guestfs_pvresize_size"
30760 msgstr ""
30761
30762 #. type: verbatim
30763 #: ../src/guestfs-actions.pod:6305
30764 #, no-wrap
30765 msgid ""
30766 " int\n"
30767 " guestfs_pvresize_size (guestfs_h *g,\n"
30768 "                        const char *device,\n"
30769 "                        int64_t size);\n"
30770 "\n"
30771 msgstr ""
30772
30773 #. type: textblock
30774 #: ../src/guestfs-actions.pod:6310
30775 msgid ""
30776 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30777 "specify the new size (in bytes) explicitly."
30778 msgstr ""
30779
30780 #. type: =head2
30781 #: ../src/guestfs-actions.pod:6317
30782 msgid "guestfs_pvs"
30783 msgstr ""
30784
30785 #. type: verbatim
30786 #: ../src/guestfs-actions.pod:6319
30787 #, no-wrap
30788 msgid ""
30789 " char **\n"
30790 " guestfs_pvs (guestfs_h *g);\n"
30791 "\n"
30792 msgstr ""
30793
30794 #. type: textblock
30795 #: ../src/guestfs-actions.pod:6328
30796 msgid "See also C<guestfs_pvs_full>."
30797 msgstr ""
30798
30799 #. type: =head2
30800 #: ../src/guestfs-actions.pod:6336
30801 msgid "guestfs_pvs_full"
30802 msgstr ""
30803
30804 #. type: verbatim
30805 #: ../src/guestfs-actions.pod:6338
30806 #, no-wrap
30807 msgid ""
30808 " struct guestfs_lvm_pv_list *\n"
30809 " guestfs_pvs_full (guestfs_h *g);\n"
30810 "\n"
30811 msgstr ""
30812
30813 #. type: textblock
30814 #: ../src/guestfs-actions.pod:6344
30815 msgid ""
30816 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30817 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
30818 "use>."
30819 msgstr ""
30820
30821 #. type: =head2
30822 #: ../src/guestfs-actions.pod:6350
30823 msgid "guestfs_pvuuid"
30824 msgstr ""
30825
30826 #. type: verbatim
30827 #: ../src/guestfs-actions.pod:6352
30828 #, no-wrap
30829 msgid ""
30830 " char *\n"
30831 " guestfs_pvuuid (guestfs_h *g,\n"
30832 "                 const char *device);\n"
30833 "\n"
30834 msgstr ""
30835
30836 #. type: =head2
30837 #: ../src/guestfs-actions.pod:6363
30838 msgid "guestfs_pwrite"
30839 msgstr ""
30840
30841 #. type: verbatim
30842 #: ../src/guestfs-actions.pod:6365
30843 #, no-wrap
30844 msgid ""
30845 " int\n"
30846 " guestfs_pwrite (guestfs_h *g,\n"
30847 "                 const char *path,\n"
30848 "                 const char *content,\n"
30849 "                 size_t content_size,\n"
30850 "                 int64_t offset);\n"
30851 "\n"
30852 msgstr ""
30853
30854 #. type: textblock
30855 #: ../src/guestfs-actions.pod:6381
30856 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30857 msgstr ""
30858
30859 #. type: =head2
30860 #: ../src/guestfs-actions.pod:6390
30861 msgid "guestfs_pwrite_device"
30862 msgstr ""
30863
30864 #. type: verbatim
30865 #: ../src/guestfs-actions.pod:6392
30866 #, no-wrap
30867 msgid ""
30868 " int\n"
30869 " guestfs_pwrite_device (guestfs_h *g,\n"
30870 "                        const char *device,\n"
30871 "                        const char *content,\n"
30872 "                        size_t content_size,\n"
30873 "                        int64_t offset);\n"
30874 "\n"
30875 msgstr ""
30876
30877 #. type: textblock
30878 #: ../src/guestfs-actions.pod:6407
30879 msgid "See also C<guestfs_pwrite>."
30880 msgstr ""
30881
30882 #. type: textblock
30883 #: ../src/guestfs-actions.pod:6414
30884 msgid "(Added in 1.5.20)"
30885 msgstr ""
30886
30887 #. type: =head2
30888 #: ../src/guestfs-actions.pod:6416
30889 msgid "guestfs_read_file"
30890 msgstr ""
30891
30892 #. type: verbatim
30893 #: ../src/guestfs-actions.pod:6418
30894 #, no-wrap
30895 msgid ""
30896 " char *\n"
30897 " guestfs_read_file (guestfs_h *g,\n"
30898 "                    const char *path,\n"
30899 "                    size_t *size_r);\n"
30900 "\n"
30901 msgstr ""
30902
30903 #. type: textblock
30904 #: ../src/guestfs-actions.pod:6426
30905 msgid ""
30906 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30907 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
30908 "function is limited in the total size of file that can be handled."
30909 msgstr ""
30910
30911 #. type: textblock
30912 #: ../src/guestfs-actions.pod:6438
30913 msgid "(Added in 1.0.63)"
30914 msgstr ""
30915
30916 #. type: =head2
30917 #: ../src/guestfs-actions.pod:6440
30918 msgid "guestfs_read_lines"
30919 msgstr ""
30920
30921 #. type: verbatim
30922 #: ../src/guestfs-actions.pod:6442
30923 #, no-wrap
30924 msgid ""
30925 " char **\n"
30926 " guestfs_read_lines (guestfs_h *g,\n"
30927 "                     const char *path);\n"
30928 "\n"
30929 msgstr ""
30930
30931 #. type: textblock
30932 #: ../src/guestfs-actions.pod:6451
30933 msgid ""
30934 "Note that this function cannot correctly handle binary files (specifically, "
30935 "files containing C<\\0> character which is treated as end of line).  For "
30936 "those you need to use the C<guestfs_read_file> function which has a more "
30937 "complex interface."
30938 msgstr ""
30939
30940 #. type: =head2
30941 #: ../src/guestfs-actions.pod:6462
30942 msgid "guestfs_readdir"
30943 msgstr ""
30944
30945 #. type: verbatim
30946 #: ../src/guestfs-actions.pod:6464
30947 #, no-wrap
30948 msgid ""
30949 " struct guestfs_dirent_list *\n"
30950 " guestfs_readdir (guestfs_h *g,\n"
30951 "                  const char *dir);\n"
30952 "\n"
30953 msgstr ""
30954
30955 #. type: textblock
30956 #: ../src/guestfs-actions.pod:6518
30957 msgid ""
30958 "This function is primarily intended for use by programs.  To get a simple "
30959 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
30960 "consumption, use C<guestfs_ll>."
30961 msgstr ""
30962
30963 #. type: textblock
30964 #: ../src/guestfs-actions.pod:6522
30965 msgid ""
30966 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30967 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
30968 "use>."
30969 msgstr ""
30970
30971 #. type: =head2
30972 #: ../src/guestfs-actions.pod:6528
30973 msgid "guestfs_readlink"
30974 msgstr ""
30975
30976 #. type: verbatim
30977 #: ../src/guestfs-actions.pod:6530
30978 #, no-wrap
30979 msgid ""
30980 " char *\n"
30981 " guestfs_readlink (guestfs_h *g,\n"
30982 "                   const char *path);\n"
30983 "\n"
30984 msgstr ""
30985
30986 #. type: =head2
30987 #: ../src/guestfs-actions.pod:6541
30988 msgid "guestfs_readlinklist"
30989 msgstr ""
30990
30991 #. type: verbatim
30992 #: ../src/guestfs-actions.pod:6543
30993 #, no-wrap
30994 msgid ""
30995 " char **\n"
30996 " guestfs_readlinklist (guestfs_h *g,\n"
30997 "                       const char *path,\n"
30998 "                       char *const *names);\n"
30999 "\n"
31000 msgstr ""
31001
31002 #. type: =head2
31003 #: ../src/guestfs-actions.pod:6576
31004 msgid "guestfs_realpath"
31005 msgstr ""
31006
31007 #. type: verbatim
31008 #: ../src/guestfs-actions.pod:6578
31009 #, no-wrap
31010 msgid ""
31011 " char *\n"
31012 " guestfs_realpath (guestfs_h *g,\n"
31013 "                   const char *path);\n"
31014 "\n"
31015 msgstr ""
31016
31017 #. type: =head2
31018 #: ../src/guestfs-actions.pod:6590
31019 msgid "guestfs_removexattr"
31020 msgstr ""
31021
31022 #. type: verbatim
31023 #: ../src/guestfs-actions.pod:6592
31024 #, no-wrap
31025 msgid ""
31026 " int\n"
31027 " guestfs_removexattr (guestfs_h *g,\n"
31028 "                      const char *xattr,\n"
31029 "                      const char *path);\n"
31030 "\n"
31031 msgstr ""
31032
31033 #. type: textblock
31034 #: ../src/guestfs-actions.pod:6600
31035 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31036 msgstr ""
31037
31038 #. type: =head2
31039 #: ../src/guestfs-actions.pod:6606
31040 msgid "guestfs_resize2fs"
31041 msgstr ""
31042
31043 #. type: verbatim
31044 #: ../src/guestfs-actions.pod:6608
31045 #, no-wrap
31046 msgid ""
31047 " int\n"
31048 " guestfs_resize2fs (guestfs_h *g,\n"
31049 "                    const char *device);\n"
31050 "\n"
31051 msgstr ""
31052
31053 #. type: textblock
31054 #: ../src/guestfs-actions.pod:6615
31055 msgid ""
31056 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31057 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31058 "sometimes gives an error about this and sometimes not.  In any case, it is "
31059 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31060 msgstr ""
31061
31062 #. type: =head2
31063 #: ../src/guestfs-actions.pod:6625
31064 msgid "guestfs_resize2fs_M"
31065 msgstr ""
31066
31067 #. type: verbatim
31068 #: ../src/guestfs-actions.pod:6627
31069 #, no-wrap
31070 msgid ""
31071 " int\n"
31072 " guestfs_resize2fs_M (guestfs_h *g,\n"
31073 "                      const char *device);\n"
31074 "\n"
31075 msgstr ""
31076
31077 #. type: textblock
31078 #: ../src/guestfs-actions.pod:6631
31079 msgid ""
31080 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31081 "resized to its minimum size.  This works like the I<-M> option to the "
31082 "C<resize2fs> command."
31083 msgstr ""
31084
31085 #. type: textblock
31086 #: ../src/guestfs-actions.pod:6635
31087 msgid ""
31088 "To get the resulting size of the filesystem you should call "
31089 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31090 "These two numbers, multiplied together, give the resulting size of the "
31091 "minimal filesystem in bytes."
31092 msgstr ""
31093
31094 #. type: =head2
31095 #: ../src/guestfs-actions.pod:6644
31096 msgid "guestfs_resize2fs_size"
31097 msgstr ""
31098
31099 #. type: verbatim
31100 #: ../src/guestfs-actions.pod:6646
31101 #, no-wrap
31102 msgid ""
31103 " int\n"
31104 " guestfs_resize2fs_size (guestfs_h *g,\n"
31105 "                         const char *device,\n"
31106 "                         int64_t size);\n"
31107 "\n"
31108 msgstr ""
31109
31110 #. type: textblock
31111 #: ../src/guestfs-actions.pod:6651
31112 msgid ""
31113 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31114 "to specify the new size (in bytes) explicitly."
31115 msgstr ""
31116
31117 #. type: =head2
31118 #: ../src/guestfs-actions.pod:6658
31119 msgid "guestfs_rm"
31120 msgstr ""
31121
31122 #. type: verbatim
31123 #: ../src/guestfs-actions.pod:6660
31124 #, no-wrap
31125 msgid ""
31126 " int\n"
31127 " guestfs_rm (guestfs_h *g,\n"
31128 "             const char *path);\n"
31129 "\n"
31130 msgstr ""
31131
31132 #. type: =head2
31133 #: ../src/guestfs-actions.pod:6670
31134 msgid "guestfs_rm_rf"
31135 msgstr ""
31136
31137 #. type: verbatim
31138 #: ../src/guestfs-actions.pod:6672
31139 #, no-wrap
31140 msgid ""
31141 " int\n"
31142 " guestfs_rm_rf (guestfs_h *g,\n"
31143 "                const char *path);\n"
31144 "\n"
31145 msgstr ""
31146
31147 #. type: =head2
31148 #: ../src/guestfs-actions.pod:6684
31149 msgid "guestfs_rmdir"
31150 msgstr ""
31151
31152 #. type: verbatim
31153 #: ../src/guestfs-actions.pod:6686
31154 #, no-wrap
31155 msgid ""
31156 " int\n"
31157 " guestfs_rmdir (guestfs_h *g,\n"
31158 "                const char *path);\n"
31159 "\n"
31160 msgstr ""
31161
31162 #. type: =head2
31163 #: ../src/guestfs-actions.pod:6696
31164 msgid "guestfs_rmmountpoint"
31165 msgstr ""
31166
31167 #. type: verbatim
31168 #: ../src/guestfs-actions.pod:6698
31169 #, no-wrap
31170 msgid ""
31171 " int\n"
31172 " guestfs_rmmountpoint (guestfs_h *g,\n"
31173 "                       const char *exemptpath);\n"
31174 "\n"
31175 msgstr ""
31176
31177 #. type: textblock
31178 #: ../src/guestfs-actions.pod:6702
31179 msgid ""
31180 "This calls removes a mountpoint that was previously created with "
31181 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31182 msgstr ""
31183
31184 #. type: =head2
31185 #: ../src/guestfs-actions.pod:6710
31186 msgid "guestfs_scrub_device"
31187 msgstr ""
31188
31189 #. type: verbatim
31190 #: ../src/guestfs-actions.pod:6712
31191 #, no-wrap
31192 msgid ""
31193 " int\n"
31194 " guestfs_scrub_device (guestfs_h *g,\n"
31195 "                       const char *device);\n"
31196 "\n"
31197 msgstr ""
31198
31199 #. type: textblock
31200 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6761
31201 msgid "(Added in 1.0.52)"
31202 msgstr ""
31203
31204 #. type: =head2
31205 #: ../src/guestfs-actions.pod:6726
31206 msgid "guestfs_scrub_file"
31207 msgstr ""
31208
31209 #. type: verbatim
31210 #: ../src/guestfs-actions.pod:6728
31211 #, no-wrap
31212 msgid ""
31213 " int\n"
31214 " guestfs_scrub_file (guestfs_h *g,\n"
31215 "                     const char *file);\n"
31216 "\n"
31217 msgstr ""
31218
31219 #. type: =head2
31220 #: ../src/guestfs-actions.pod:6744
31221 msgid "guestfs_scrub_freespace"
31222 msgstr ""
31223
31224 #. type: verbatim
31225 #: ../src/guestfs-actions.pod:6746
31226 #, no-wrap
31227 msgid ""
31228 " int\n"
31229 " guestfs_scrub_freespace (guestfs_h *g,\n"
31230 "                          const char *dir);\n"
31231 "\n"
31232 msgstr ""
31233
31234 #. type: textblock
31235 #: ../src/guestfs-actions.pod:6750
31236 msgid ""
31237 "This command creates the directory C<dir> and then fills it with files until "
31238 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31239 "and deletes them.  The intention is to scrub any free space on the partition "
31240 "containing C<dir>."
31241 msgstr ""
31242
31243 #. type: =head2
31244 #: ../src/guestfs-actions.pod:6763
31245 msgid "guestfs_set_append"
31246 msgstr ""
31247
31248 #. type: verbatim
31249 #: ../src/guestfs-actions.pod:6765
31250 #, no-wrap
31251 msgid ""
31252 " int\n"
31253 " guestfs_set_append (guestfs_h *g,\n"
31254 "                     const char *append);\n"
31255 "\n"
31256 msgstr ""
31257
31258 #. type: =head2
31259 #: ../src/guestfs-actions.pod:6782
31260 msgid "guestfs_set_attach_method"
31261 msgstr ""
31262
31263 #. type: verbatim
31264 #: ../src/guestfs-actions.pod:6784
31265 #, no-wrap
31266 msgid ""
31267 " int\n"
31268 " guestfs_set_attach_method (guestfs_h *g,\n"
31269 "                            const char *attachmethod);\n"
31270 "\n"
31271 msgstr ""
31272
31273 #. type: =head2
31274 #: ../src/guestfs-actions.pod:6812
31275 msgid "guestfs_set_autosync"
31276 msgstr ""
31277
31278 #. type: verbatim
31279 #: ../src/guestfs-actions.pod:6814
31280 #, no-wrap
31281 msgid ""
31282 " int\n"
31283 " guestfs_set_autosync (guestfs_h *g,\n"
31284 "                       int autosync);\n"
31285 "\n"
31286 msgstr ""
31287
31288 #. type: =head2
31289 #: ../src/guestfs-actions.pod:6830
31290 msgid "guestfs_set_direct"
31291 msgstr ""
31292
31293 #. type: verbatim
31294 #: ../src/guestfs-actions.pod:6832
31295 #, no-wrap
31296 msgid ""
31297 " int\n"
31298 " guestfs_set_direct (guestfs_h *g,\n"
31299 "                     int direct);\n"
31300 "\n"
31301 msgstr ""
31302
31303 #. type: textblock
31304 #: ../src/guestfs-actions.pod:6840
31305 msgid ""
31306 "One consequence of this is that log messages aren't caught by the library "
31307 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31308 "stdout."
31309 msgstr ""
31310
31311 #. type: =head2
31312 #: ../src/guestfs-actions.pod:6853
31313 msgid "guestfs_set_e2label"
31314 msgstr ""
31315
31316 #. type: verbatim
31317 #: ../src/guestfs-actions.pod:6855
31318 #, no-wrap
31319 msgid ""
31320 " int\n"
31321 " guestfs_set_e2label (guestfs_h *g,\n"
31322 "                      const char *device,\n"
31323 "                      const char *label);\n"
31324 "\n"
31325 msgstr ""
31326
31327 #. type: textblock
31328 #: ../src/guestfs-actions.pod:6864
31329 msgid ""
31330 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31331 "the existing label on a filesystem."
31332 msgstr ""
31333
31334 #. type: =head2
31335 #: ../src/guestfs-actions.pod:6871
31336 msgid "guestfs_set_e2uuid"
31337 msgstr ""
31338
31339 #. type: verbatim
31340 #: ../src/guestfs-actions.pod:6873
31341 #, no-wrap
31342 msgid ""
31343 " int\n"
31344 " guestfs_set_e2uuid (guestfs_h *g,\n"
31345 "                     const char *device,\n"
31346 "                     const char *uuid);\n"
31347 "\n"
31348 msgstr ""
31349
31350 #. type: textblock
31351 #: ../src/guestfs-actions.pod:6883
31352 msgid ""
31353 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31354 "the existing UUID of a filesystem."
31355 msgstr ""
31356
31357 #. type: =head2
31358 #: ../src/guestfs-actions.pod:6890
31359 msgid "guestfs_set_memsize"
31360 msgstr ""
31361
31362 #. type: verbatim
31363 #: ../src/guestfs-actions.pod:6892
31364 #, no-wrap
31365 msgid ""
31366 " int\n"
31367 " guestfs_set_memsize (guestfs_h *g,\n"
31368 "                      int memsize);\n"
31369 "\n"
31370 msgstr ""
31371
31372 #. type: textblock
31373 #: ../src/guestfs-actions.pod:6896
31374 msgid ""
31375 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31376 "This only has any effect if called before C<guestfs_launch>."
31377 msgstr ""
31378
31379 #. type: =head2
31380 #: ../src/guestfs-actions.pod:6911
31381 msgid "guestfs_set_network"
31382 msgstr ""
31383
31384 #. type: verbatim
31385 #: ../src/guestfs-actions.pod:6913
31386 #, no-wrap
31387 msgid ""
31388 " int\n"
31389 " guestfs_set_network (guestfs_h *g,\n"
31390 "                      int network);\n"
31391 "\n"
31392 msgstr ""
31393
31394 #. type: textblock
31395 #: ../src/guestfs-actions.pod:6923
31396 msgid ""
31397 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31398 "effect."
31399 msgstr ""
31400
31401 #. type: =head2
31402 #: ../src/guestfs-actions.pod:6930
31403 msgid "guestfs_set_path"
31404 msgstr ""
31405
31406 #. type: verbatim
31407 #: ../src/guestfs-actions.pod:6932
31408 #, no-wrap
31409 msgid ""
31410 " int\n"
31411 " guestfs_set_path (guestfs_h *g,\n"
31412 "                   const char *searchpath);\n"
31413 "\n"
31414 msgstr ""
31415
31416 #. type: =head2
31417 #: ../src/guestfs-actions.pod:6947
31418 msgid "guestfs_set_pgroup"
31419 msgstr ""
31420
31421 #. type: verbatim
31422 #: ../src/guestfs-actions.pod:6949
31423 #, no-wrap
31424 msgid ""
31425 " int\n"
31426 " guestfs_set_pgroup (guestfs_h *g,\n"
31427 "                     int pgroup);\n"
31428 "\n"
31429 msgstr ""
31430
31431 #. type: =head2
31432 #: ../src/guestfs-actions.pod:6966
31433 msgid "guestfs_set_qemu"
31434 msgstr ""
31435
31436 #. type: verbatim
31437 #: ../src/guestfs-actions.pod:6968
31438 #, no-wrap
31439 msgid ""
31440 " int\n"
31441 " guestfs_set_qemu (guestfs_h *g,\n"
31442 "                   const char *qemu);\n"
31443 "\n"
31444 msgstr ""
31445
31446 #. type: =head2
31447 #: ../src/guestfs-actions.pod:6994
31448 msgid "guestfs_set_recovery_proc"
31449 msgstr ""
31450
31451 #. type: verbatim
31452 #: ../src/guestfs-actions.pod:6996
31453 #, no-wrap
31454 msgid ""
31455 " int\n"
31456 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31457 "                            int recoveryproc);\n"
31458 "\n"
31459 msgstr ""
31460
31461 #. type: textblock
31462 #: ../src/guestfs-actions.pod:7000
31463 msgid ""
31464 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31465 "not create a recovery process.  The purpose of the recovery process is to "
31466 "stop runaway qemu processes in the case where the main program aborts "
31467 "abruptly."
31468 msgstr ""
31469
31470 #. type: textblock
31471 #: ../src/guestfs-actions.pod:7005
31472 msgid ""
31473 "This only has any effect if called before C<guestfs_launch>, and the default "
31474 "is true."
31475 msgstr ""
31476
31477 #. type: =head2
31478 #: ../src/guestfs-actions.pod:7018
31479 msgid "guestfs_set_selinux"
31480 msgstr ""
31481
31482 #. type: verbatim
31483 #: ../src/guestfs-actions.pod:7020
31484 #, no-wrap
31485 msgid ""
31486 " int\n"
31487 " guestfs_set_selinux (guestfs_h *g,\n"
31488 "                      int selinux);\n"
31489 "\n"
31490 msgstr ""
31491
31492 #. type: =head2
31493 #: ../src/guestfs-actions.pod:7037
31494 msgid "guestfs_set_smp"
31495 msgstr ""
31496
31497 #. type: verbatim
31498 #: ../src/guestfs-actions.pod:7039
31499 #, no-wrap
31500 msgid ""
31501 " int\n"
31502 " guestfs_set_smp (guestfs_h *g,\n"
31503 "                  int smp);\n"
31504 "\n"
31505 msgstr ""
31506
31507 #. type: textblock
31508 #: ../src/guestfs-actions.pod:7047
31509 msgid "This function must be called before C<guestfs_launch>."
31510 msgstr ""
31511
31512 #. type: =head2
31513 #: ../src/guestfs-actions.pod:7053
31514 msgid "guestfs_set_trace"
31515 msgstr ""
31516
31517 #. type: verbatim
31518 #: ../src/guestfs-actions.pod:7055
31519 #, no-wrap
31520 msgid ""
31521 " int\n"
31522 " guestfs_set_trace (guestfs_h *g,\n"
31523 "                    int trace);\n"
31524 "\n"
31525 msgstr ""
31526
31527 #. type: textblock
31528 #: ../src/guestfs-actions.pod:7069
31529 msgid ""
31530 "Trace messages are normally sent to C<stderr>, unless you register a "
31531 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31532 msgstr ""
31533
31534 #. type: =head2
31535 #: ../src/guestfs-actions.pod:7077
31536 msgid "guestfs_set_verbose"
31537 msgstr ""
31538
31539 #. type: verbatim
31540 #: ../src/guestfs-actions.pod:7079
31541 #, no-wrap
31542 msgid ""
31543 " int\n"
31544 " guestfs_set_verbose (guestfs_h *g,\n"
31545 "                      int verbose);\n"
31546 "\n"
31547 msgstr ""
31548
31549 #. type: textblock
31550 #: ../src/guestfs-actions.pod:7088
31551 msgid ""
31552 "Verbose messages are normally sent to C<stderr>, unless you register a "
31553 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31554 msgstr ""
31555
31556 #. type: =head2
31557 #: ../src/guestfs-actions.pod:7096
31558 msgid "guestfs_setcon"
31559 msgstr ""
31560
31561 #. type: verbatim
31562 #: ../src/guestfs-actions.pod:7098
31563 #, no-wrap
31564 msgid ""
31565 " int\n"
31566 " guestfs_setcon (guestfs_h *g,\n"
31567 "                 const char *context);\n"
31568 "\n"
31569 msgstr ""
31570
31571 #. type: =head2
31572 #: ../src/guestfs-actions.pod:7111
31573 msgid "guestfs_setxattr"
31574 msgstr ""
31575
31576 #. type: verbatim
31577 #: ../src/guestfs-actions.pod:7113
31578 #, no-wrap
31579 msgid ""
31580 " int\n"
31581 " guestfs_setxattr (guestfs_h *g,\n"
31582 "                   const char *xattr,\n"
31583 "                   const char *val,\n"
31584 "                   int vallen,\n"
31585 "                   const char *path);\n"
31586 "\n"
31587 msgstr ""
31588
31589 #. type: textblock
31590 #: ../src/guestfs-actions.pod:7124
31591 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31592 msgstr ""
31593
31594 #. type: =head2
31595 #: ../src/guestfs-actions.pod:7130
31596 msgid "guestfs_sfdisk"
31597 msgstr ""
31598
31599 #. type: verbatim
31600 #: ../src/guestfs-actions.pod:7132
31601 #, no-wrap
31602 msgid ""
31603 " int\n"
31604 " guestfs_sfdisk (guestfs_h *g,\n"
31605 "                 const char *device,\n"
31606 "                 int cyls,\n"
31607 "                 int heads,\n"
31608 "                 int sectors,\n"
31609 "                 char *const *lines);\n"
31610 "\n"
31611 msgstr ""
31612
31613 #. type: textblock
31614 #: ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7181 ../src/guestfs-actions.pod:7212
31615 msgid ""
31616 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31617 "call instead."
31618 msgstr ""
31619
31620 #. type: textblock
31621 #: ../src/guestfs-actions.pod:7167
31622 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31623 msgstr ""
31624
31625 #. type: =head2
31626 #: ../src/guestfs-actions.pod:7174
31627 msgid "guestfs_sfdiskM"
31628 msgstr ""
31629
31630 #. type: verbatim
31631 #: ../src/guestfs-actions.pod:7176
31632 #, no-wrap
31633 msgid ""
31634 " int\n"
31635 " guestfs_sfdiskM (guestfs_h *g,\n"
31636 "                  const char *device,\n"
31637 "                  char *const *lines);\n"
31638 "\n"
31639 msgstr ""
31640
31641 #. type: textblock
31642 #: ../src/guestfs-actions.pod:7188
31643 msgid ""
31644 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31645 "partition sizes are specified in megabytes only (rounded to the nearest "
31646 "cylinder) and you don't need to specify the cyls, heads and sectors "
31647 "parameters which were rarely if ever used anyway."
31648 msgstr ""
31649
31650 #. type: textblock
31651 #: ../src/guestfs-actions.pod:7194
31652 msgid ""
31653 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31654 "C<guestfs_part_disk>"
31655 msgstr ""
31656
31657 #. type: =head2
31658 #: ../src/guestfs-actions.pod:7201
31659 msgid "guestfs_sfdisk_N"
31660 msgstr ""
31661
31662 #. type: verbatim
31663 #: ../src/guestfs-actions.pod:7203
31664 #, no-wrap
31665 msgid ""
31666 " int\n"
31667 " guestfs_sfdisk_N (guestfs_h *g,\n"
31668 "                   const char *device,\n"
31669 "                   int partnum,\n"
31670 "                   int cyls,\n"
31671 "                   int heads,\n"
31672 "                   int sectors,\n"
31673 "                   const char *line);\n"
31674 "\n"
31675 msgstr ""
31676
31677 #. type: textblock
31678 #: ../src/guestfs-actions.pod:7222
31679 msgid ""
31680 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31681 "for the cyls/heads/sectors parameters."
31682 msgstr ""
31683
31684 #. type: textblock
31685 #: ../src/guestfs-actions.pod:7225
31686 msgid "See also: C<guestfs_part_add>"
31687 msgstr ""
31688
31689 #. type: =head2
31690 #: ../src/guestfs-actions.pod:7231
31691 msgid "guestfs_sfdisk_disk_geometry"
31692 msgstr ""
31693
31694 #. type: verbatim
31695 #: ../src/guestfs-actions.pod:7233
31696 #, no-wrap
31697 msgid ""
31698 " char *\n"
31699 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31700 "                               const char *device);\n"
31701 "\n"
31702 msgstr ""
31703
31704 #. type: textblock
31705 #: ../src/guestfs-actions.pod:7237
31706 msgid ""
31707 "This displays the disk geometry of C<device> read from the partition table.  "
31708 "Especially in the case where the underlying block device has been resized, "
31709 "this can be different from the kernel's idea of the geometry (see "
31710 "C<guestfs_sfdisk_kernel_geometry>)."
31711 msgstr ""
31712
31713 #. type: =head2
31714 #: ../src/guestfs-actions.pod:7250
31715 msgid "guestfs_sfdisk_kernel_geometry"
31716 msgstr ""
31717
31718 #. type: verbatim
31719 #: ../src/guestfs-actions.pod:7252
31720 #, no-wrap
31721 msgid ""
31722 " char *\n"
31723 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31724 "                                 const char *device);\n"
31725 "\n"
31726 msgstr ""
31727
31728 #. type: =head2
31729 #: ../src/guestfs-actions.pod:7266
31730 msgid "guestfs_sfdisk_l"
31731 msgstr ""
31732
31733 #. type: verbatim
31734 #: ../src/guestfs-actions.pod:7268
31735 #, no-wrap
31736 msgid ""
31737 " char *\n"
31738 " guestfs_sfdisk_l (guestfs_h *g,\n"
31739 "                   const char *device);\n"
31740 "\n"
31741 msgstr ""
31742
31743 #. type: textblock
31744 #: ../src/guestfs-actions.pod:7272
31745 msgid ""
31746 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31747 "call instead."
31748 msgstr ""
31749
31750 #. type: textblock
31751 #: ../src/guestfs-actions.pod:7283
31752 msgid "See also: C<guestfs_part_list>"
31753 msgstr ""
31754
31755 #. type: =head2
31756 #: ../src/guestfs-actions.pod:7290
31757 msgid "guestfs_sh"
31758 msgstr ""
31759
31760 #. type: verbatim
31761 #: ../src/guestfs-actions.pod:7292
31762 #, no-wrap
31763 msgid ""
31764 " char *\n"
31765 " guestfs_sh (guestfs_h *g,\n"
31766 "             const char *command);\n"
31767 "\n"
31768 msgstr ""
31769
31770 #. type: textblock
31771 #: ../src/guestfs-actions.pod:7299
31772 msgid "This is like C<guestfs_command>, but passes the command to:"
31773 msgstr ""
31774
31775 #. type: textblock
31776 #: ../src/guestfs-actions.pod:7307
31777 msgid "All the provisos about C<guestfs_command> apply to this call."
31778 msgstr ""
31779
31780 #. type: =head2
31781 #: ../src/guestfs-actions.pod:7314
31782 msgid "guestfs_sh_lines"
31783 msgstr ""
31784
31785 #. type: verbatim
31786 #: ../src/guestfs-actions.pod:7316
31787 #, no-wrap
31788 msgid ""
31789 " char **\n"
31790 " guestfs_sh_lines (guestfs_h *g,\n"
31791 "                   const char *command);\n"
31792 "\n"
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs-actions.pod:7320
31797 msgid ""
31798 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31799 "lines."
31800 msgstr ""
31801
31802 #. type: textblock
31803 #: ../src/guestfs-actions.pod:7323
31804 msgid "See also: C<guestfs_command_lines>"
31805 msgstr ""
31806
31807 #. type: =head2
31808 #: ../src/guestfs-actions.pod:7331
31809 msgid "guestfs_sleep"
31810 msgstr ""
31811
31812 #. type: verbatim
31813 #: ../src/guestfs-actions.pod:7333
31814 #, no-wrap
31815 msgid ""
31816 " int\n"
31817 " guestfs_sleep (guestfs_h *g,\n"
31818 "                int secs);\n"
31819 "\n"
31820 msgstr ""
31821
31822 #. type: textblock
31823 #: ../src/guestfs-actions.pod:7341
31824 msgid "(Added in 1.0.41)"
31825 msgstr ""
31826
31827 #. type: =head2
31828 #: ../src/guestfs-actions.pod:7343 ../src/guestfs-structs.pod:109
31829 msgid "guestfs_stat"
31830 msgstr ""
31831
31832 #. type: verbatim
31833 #: ../src/guestfs-actions.pod:7345
31834 #, no-wrap
31835 msgid ""
31836 " struct guestfs_stat *\n"
31837 " guestfs_stat (guestfs_h *g,\n"
31838 "               const char *path);\n"
31839 "\n"
31840 msgstr ""
31841
31842 #. type: =head2
31843 #: ../src/guestfs-actions.pod:7359 ../src/guestfs-structs.pod:135
31844 msgid "guestfs_statvfs"
31845 msgstr ""
31846
31847 #. type: verbatim
31848 #: ../src/guestfs-actions.pod:7361
31849 #, no-wrap
31850 msgid ""
31851 " struct guestfs_statvfs *\n"
31852 " guestfs_statvfs (guestfs_h *g,\n"
31853 "                  const char *path);\n"
31854 "\n"
31855 msgstr ""
31856
31857 #. type: textblock
31858 #: ../src/guestfs-actions.pod:7371
31859 msgid ""
31860 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31861 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31862 msgstr ""
31863
31864 #. type: =head2
31865 #: ../src/guestfs-actions.pod:7377
31866 msgid "guestfs_strings"
31867 msgstr ""
31868
31869 #. type: verbatim
31870 #: ../src/guestfs-actions.pod:7379
31871 #, no-wrap
31872 msgid ""
31873 " char **\n"
31874 " guestfs_strings (guestfs_h *g,\n"
31875 "                  const char *path);\n"
31876 "\n"
31877 msgstr ""
31878
31879 #. type: =head2
31880 #: ../src/guestfs-actions.pod:7395
31881 msgid "guestfs_strings_e"
31882 msgstr ""
31883
31884 #. type: verbatim
31885 #: ../src/guestfs-actions.pod:7397
31886 #, no-wrap
31887 msgid ""
31888 " char **\n"
31889 " guestfs_strings_e (guestfs_h *g,\n"
31890 "                    const char *encoding,\n"
31891 "                    const char *path);\n"
31892 "\n"
31893 msgstr ""
31894
31895 #. type: textblock
31896 #: ../src/guestfs-actions.pod:7402
31897 msgid ""
31898 "This is like the C<guestfs_strings> command, but allows you to specify the "
31899 "encoding of strings that are looked for in the source file C<path>."
31900 msgstr ""
31901
31902 #. type: textblock
31903 #: ../src/guestfs-actions.pod:7412
31904 msgid ""
31905 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31906 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31907 msgstr ""
31908
31909 #. type: =head2
31910 #: ../src/guestfs-actions.pod:7450
31911 msgid "guestfs_swapoff_device"
31912 msgstr ""
31913
31914 #. type: verbatim
31915 #: ../src/guestfs-actions.pod:7452
31916 #, no-wrap
31917 msgid ""
31918 " int\n"
31919 " guestfs_swapoff_device (guestfs_h *g,\n"
31920 "                         const char *device);\n"
31921 "\n"
31922 msgstr ""
31923
31924 #. type: textblock
31925 #: ../src/guestfs-actions.pod:7456
31926 msgid ""
31927 "This command disables the libguestfs appliance swap device or partition "
31928 "named C<device>.  See C<guestfs_swapon_device>."
31929 msgstr ""
31930
31931 #. type: =head2
31932 #: ../src/guestfs-actions.pod:7464
31933 msgid "guestfs_swapoff_file"
31934 msgstr ""
31935
31936 #. type: verbatim
31937 #: ../src/guestfs-actions.pod:7466
31938 #, no-wrap
31939 msgid ""
31940 " int\n"
31941 " guestfs_swapoff_file (guestfs_h *g,\n"
31942 "                       const char *file);\n"
31943 "\n"
31944 msgstr ""
31945
31946 #. type: =head2
31947 #: ../src/guestfs-actions.pod:7476
31948 msgid "guestfs_swapoff_label"
31949 msgstr ""
31950
31951 #. type: verbatim
31952 #: ../src/guestfs-actions.pod:7478
31953 #, no-wrap
31954 msgid ""
31955 " int\n"
31956 " guestfs_swapoff_label (guestfs_h *g,\n"
31957 "                        const char *label);\n"
31958 "\n"
31959 msgstr ""
31960
31961 #. type: =head2
31962 #: ../src/guestfs-actions.pod:7489
31963 msgid "guestfs_swapoff_uuid"
31964 msgstr ""
31965
31966 #. type: verbatim
31967 #: ../src/guestfs-actions.pod:7491
31968 #, no-wrap
31969 msgid ""
31970 " int\n"
31971 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31972 "                       const char *uuid);\n"
31973 "\n"
31974 msgstr ""
31975
31976 #. type: =head2
31977 #: ../src/guestfs-actions.pod:7502
31978 msgid "guestfs_swapon_device"
31979 msgstr ""
31980
31981 #. type: verbatim
31982 #: ../src/guestfs-actions.pod:7504
31983 #, no-wrap
31984 msgid ""
31985 " int\n"
31986 " guestfs_swapon_device (guestfs_h *g,\n"
31987 "                        const char *device);\n"
31988 "\n"
31989 msgstr ""
31990
31991 #. type: textblock
31992 #: ../src/guestfs-actions.pod:7508
31993 msgid ""
31994 "This command enables the libguestfs appliance to use the swap device or "
31995 "partition named C<device>.  The increased memory is made available for all "
31996 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31997 msgstr ""
31998
31999 #. type: =head2
32000 #: ../src/guestfs-actions.pod:7524
32001 msgid "guestfs_swapon_file"
32002 msgstr ""
32003
32004 #. type: verbatim
32005 #: ../src/guestfs-actions.pod:7526
32006 #, no-wrap
32007 msgid ""
32008 " int\n"
32009 " guestfs_swapon_file (guestfs_h *g,\n"
32010 "                      const char *file);\n"
32011 "\n"
32012 msgstr ""
32013
32014 #. type: textblock
32015 #: ../src/guestfs-actions.pod:7530
32016 msgid ""
32017 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32018 "notes."
32019 msgstr ""
32020
32021 #. type: =head2
32022 #: ../src/guestfs-actions.pod:7537
32023 msgid "guestfs_swapon_label"
32024 msgstr ""
32025
32026 #. type: verbatim
32027 #: ../src/guestfs-actions.pod:7539
32028 #, no-wrap
32029 msgid ""
32030 " int\n"
32031 " guestfs_swapon_label (guestfs_h *g,\n"
32032 "                       const char *label);\n"
32033 "\n"
32034 msgstr ""
32035
32036 #. type: textblock
32037 #: ../src/guestfs-actions.pod:7543
32038 msgid ""
32039 "This command enables swap to a labeled swap partition.  See "
32040 "C<guestfs_swapon_device> for other notes."
32041 msgstr ""
32042
32043 #. type: =head2
32044 #: ../src/guestfs-actions.pod:7550
32045 msgid "guestfs_swapon_uuid"
32046 msgstr ""
32047
32048 #. type: verbatim
32049 #: ../src/guestfs-actions.pod:7552
32050 #, no-wrap
32051 msgid ""
32052 " int\n"
32053 " guestfs_swapon_uuid (guestfs_h *g,\n"
32054 "                      const char *uuid);\n"
32055 "\n"
32056 msgstr ""
32057
32058 #. type: textblock
32059 #: ../src/guestfs-actions.pod:7556
32060 msgid ""
32061 "This command enables swap to a swap partition with the given UUID.  See "
32062 "C<guestfs_swapon_device> for other notes."
32063 msgstr ""
32064
32065 #. type: =head2
32066 #: ../src/guestfs-actions.pod:7563
32067 msgid "guestfs_sync"
32068 msgstr ""
32069
32070 #. type: verbatim
32071 #: ../src/guestfs-actions.pod:7565
32072 #, no-wrap
32073 msgid ""
32074 " int\n"
32075 " guestfs_sync (guestfs_h *g);\n"
32076 "\n"
32077 msgstr ""
32078
32079 #. type: =head2
32080 #: ../src/guestfs-actions.pod:7578
32081 msgid "guestfs_tail"
32082 msgstr ""
32083
32084 #. type: verbatim
32085 #: ../src/guestfs-actions.pod:7580
32086 #, no-wrap
32087 msgid ""
32088 " char **\n"
32089 " guestfs_tail (guestfs_h *g,\n"
32090 "               const char *path);\n"
32091 "\n"
32092 msgstr ""
32093
32094 #. type: =head2
32095 #: ../src/guestfs-actions.pod:7596
32096 msgid "guestfs_tail_n"
32097 msgstr ""
32098
32099 #. type: verbatim
32100 #: ../src/guestfs-actions.pod:7598
32101 #, no-wrap
32102 msgid ""
32103 " char **\n"
32104 " guestfs_tail_n (guestfs_h *g,\n"
32105 "                 int nrlines,\n"
32106 "                 const char *path);\n"
32107 "\n"
32108 msgstr ""
32109
32110 #. type: =head2
32111 #: ../src/guestfs-actions.pod:7620
32112 msgid "guestfs_tar_in"
32113 msgstr ""
32114
32115 #. type: verbatim
32116 #: ../src/guestfs-actions.pod:7622
32117 #, no-wrap
32118 msgid ""
32119 " int\n"
32120 " guestfs_tar_in (guestfs_h *g,\n"
32121 "                 const char *tarfile,\n"
32122 "                 const char *directory);\n"
32123 "\n"
32124 msgstr ""
32125
32126 #. type: textblock
32127 #: ../src/guestfs-actions.pod:7630
32128 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32129 msgstr ""
32130
32131 #. type: textblock
32132 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7668 ../src/guestfs-actions.pod:7684
32133 msgid "(Added in 1.0.3)"
32134 msgstr ""
32135
32136 #. type: =head2
32137 #: ../src/guestfs-actions.pod:7637
32138 msgid "guestfs_tar_out"
32139 msgstr ""
32140
32141 #. type: verbatim
32142 #: ../src/guestfs-actions.pod:7639
32143 #, no-wrap
32144 msgid ""
32145 " int\n"
32146 " guestfs_tar_out (guestfs_h *g,\n"
32147 "                  const char *directory,\n"
32148 "                  const char *tarfile);\n"
32149 "\n"
32150 msgstr ""
32151
32152 #. type: textblock
32153 #: ../src/guestfs-actions.pod:7647
32154 msgid ""
32155 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32156 "C<guestfs_txz_out>."
32157 msgstr ""
32158
32159 #. type: =head2
32160 #: ../src/guestfs-actions.pod:7654
32161 msgid "guestfs_tgz_in"
32162 msgstr ""
32163
32164 #. type: verbatim
32165 #: ../src/guestfs-actions.pod:7656
32166 #, no-wrap
32167 msgid ""
32168 " int\n"
32169 " guestfs_tgz_in (guestfs_h *g,\n"
32170 "                 const char *tarball,\n"
32171 "                 const char *directory);\n"
32172 "\n"
32173 msgstr ""
32174
32175 #. type: textblock
32176 #: ../src/guestfs-actions.pod:7664
32177 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32178 msgstr ""
32179
32180 #. type: =head2
32181 #: ../src/guestfs-actions.pod:7670
32182 msgid "guestfs_tgz_out"
32183 msgstr ""
32184
32185 #. type: verbatim
32186 #: ../src/guestfs-actions.pod:7672
32187 #, no-wrap
32188 msgid ""
32189 " int\n"
32190 " guestfs_tgz_out (guestfs_h *g,\n"
32191 "                  const char *directory,\n"
32192 "                  const char *tarball);\n"
32193 "\n"
32194 msgstr ""
32195
32196 #. type: textblock
32197 #: ../src/guestfs-actions.pod:7680
32198 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32199 msgstr ""
32200
32201 #. type: =head2
32202 #: ../src/guestfs-actions.pod:7686
32203 msgid "guestfs_touch"
32204 msgstr ""
32205
32206 #. type: verbatim
32207 #: ../src/guestfs-actions.pod:7688
32208 #, no-wrap
32209 msgid ""
32210 " int\n"
32211 " guestfs_touch (guestfs_h *g,\n"
32212 "                const char *path);\n"
32213 "\n"
32214 msgstr ""
32215
32216 #. type: =head2
32217 #: ../src/guestfs-actions.pod:7703
32218 msgid "guestfs_truncate"
32219 msgstr ""
32220
32221 #. type: verbatim
32222 #: ../src/guestfs-actions.pod:7705
32223 #, no-wrap
32224 msgid ""
32225 " int\n"
32226 " guestfs_truncate (guestfs_h *g,\n"
32227 "                   const char *path);\n"
32228 "\n"
32229 msgstr ""
32230
32231 #. type: =head2
32232 #: ../src/guestfs-actions.pod:7716
32233 msgid "guestfs_truncate_size"
32234 msgstr ""
32235
32236 #. type: verbatim
32237 #: ../src/guestfs-actions.pod:7718
32238 #, no-wrap
32239 msgid ""
32240 " int\n"
32241 " guestfs_truncate_size (guestfs_h *g,\n"
32242 "                        const char *path,\n"
32243 "                        int64_t size);\n"
32244 "\n"
32245 msgstr ""
32246
32247 #. type: textblock
32248 #: ../src/guestfs-actions.pod:7726
32249 msgid ""
32250 "If the current file size is less than C<size> then the file is extended to "
32251 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32252 "blocks are not allocated for the file until you write to it).  To create a "
32253 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32254 msgstr ""
32255
32256 #. type: =head2
32257 #: ../src/guestfs-actions.pod:7736
32258 msgid "guestfs_tune2fs"
32259 msgstr ""
32260
32261 #. type: verbatim
32262 #: ../src/guestfs-actions.pod:7738
32263 #, no-wrap
32264 msgid ""
32265 " int\n"
32266 " guestfs_tune2fs (guestfs_h *g,\n"
32267 "                  const char *device,\n"
32268 "                  ...);\n"
32269 "\n"
32270 msgstr ""
32271
32272 #. type: verbatim
32273 #: ../src/guestfs-actions.pod:7748
32274 #, no-wrap
32275 msgid ""
32276 " GUESTFS_TUNE2FS_FORCE, int force,\n"
32277 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
32278 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
32279 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
32280 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
32281 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
32282 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
32283 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
32284 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
32285 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
32286 "\n"
32287 msgstr ""
32288
32289 #. type: textblock
32290 #: ../src/guestfs-actions.pod:7828
32291 msgid ""
32292 "To get the current values of filesystem parameters, see "
32293 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
32294 "L<tune2fs(8)> man page."
32295 msgstr ""
32296
32297 #. type: =head2
32298 #: ../src/guestfs-actions.pod:7834
32299 msgid "guestfs_tune2fs_va"
32300 msgstr ""
32301
32302 #. type: verbatim
32303 #: ../src/guestfs-actions.pod:7836
32304 #, no-wrap
32305 msgid ""
32306 " int\n"
32307 " guestfs_tune2fs_va (guestfs_h *g,\n"
32308 "                     const char *device,\n"
32309 "                     va_list args);\n"
32310 "\n"
32311 msgstr ""
32312
32313 #. type: textblock
32314 #: ../src/guestfs-actions.pod:7841
32315 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
32316 msgstr ""
32317
32318 #. type: =head2
32319 #: ../src/guestfs-actions.pod:7845
32320 msgid "guestfs_tune2fs_argv"
32321 msgstr ""
32322
32323 #. type: verbatim
32324 #: ../src/guestfs-actions.pod:7847
32325 #, no-wrap
32326 msgid ""
32327 " int\n"
32328 " guestfs_tune2fs_argv (guestfs_h *g,\n"
32329 "                       const char *device,\n"
32330 "                       const struct guestfs_tune2fs_argv *optargs);\n"
32331 "\n"
32332 msgstr ""
32333
32334 #. type: textblock
32335 #: ../src/guestfs-actions.pod:7852
32336 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
32337 msgstr ""
32338
32339 #. type: =head2
32340 #: ../src/guestfs-actions.pod:7856
32341 msgid "guestfs_tune2fs_l"
32342 msgstr ""
32343
32344 #. type: verbatim
32345 #: ../src/guestfs-actions.pod:7858
32346 #, no-wrap
32347 msgid ""
32348 " char **\n"
32349 " guestfs_tune2fs_l (guestfs_h *g,\n"
32350 "                    const char *device);\n"
32351 "\n"
32352 msgstr ""
32353
32354 #. type: =head2
32355 #: ../src/guestfs-actions.pod:7878
32356 msgid "guestfs_txz_in"
32357 msgstr ""
32358
32359 #. type: verbatim
32360 #: ../src/guestfs-actions.pod:7880
32361 #, no-wrap
32362 msgid ""
32363 " int\n"
32364 " guestfs_txz_in (guestfs_h *g,\n"
32365 "                 const char *tarball,\n"
32366 "                 const char *directory);\n"
32367 "\n"
32368 msgstr ""
32369
32370 #. type: =head2
32371 #: ../src/guestfs-actions.pod:7892
32372 msgid "guestfs_txz_out"
32373 msgstr ""
32374
32375 #. type: verbatim
32376 #: ../src/guestfs-actions.pod:7894
32377 #, no-wrap
32378 msgid ""
32379 " int\n"
32380 " guestfs_txz_out (guestfs_h *g,\n"
32381 "                  const char *directory,\n"
32382 "                  const char *tarball);\n"
32383 "\n"
32384 msgstr ""
32385
32386 #. type: =head2
32387 #: ../src/guestfs-actions.pod:7906
32388 msgid "guestfs_umask"
32389 msgstr ""
32390
32391 #. type: verbatim
32392 #: ../src/guestfs-actions.pod:7908
32393 #, no-wrap
32394 msgid ""
32395 " int\n"
32396 " guestfs_umask (guestfs_h *g,\n"
32397 "                int mask);\n"
32398 "\n"
32399 msgstr ""
32400
32401 #. type: textblock
32402 #: ../src/guestfs-actions.pod:7924
32403 msgid ""
32404 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32405 "C<guestfs_mkdir>."
32406 msgstr ""
32407
32408 #. type: =head2
32409 #: ../src/guestfs-actions.pod:7933
32410 msgid "guestfs_umount"
32411 msgstr ""
32412
32413 #. type: verbatim
32414 #: ../src/guestfs-actions.pod:7935
32415 #, no-wrap
32416 msgid ""
32417 " int\n"
32418 " guestfs_umount (guestfs_h *g,\n"
32419 "                 const char *pathordevice);\n"
32420 "\n"
32421 msgstr ""
32422
32423 #. type: =head2
32424 #: ../src/guestfs-actions.pod:7947
32425 msgid "guestfs_umount_all"
32426 msgstr ""
32427
32428 #. type: verbatim
32429 #: ../src/guestfs-actions.pod:7949
32430 #, no-wrap
32431 msgid ""
32432 " int\n"
32433 " guestfs_umount_all (guestfs_h *g);\n"
32434 "\n"
32435 msgstr ""
32436
32437 #. type: =head2
32438 #: ../src/guestfs-actions.pod:7960
32439 msgid "guestfs_upload"
32440 msgstr ""
32441
32442 #. type: verbatim
32443 #: ../src/guestfs-actions.pod:7962
32444 #, no-wrap
32445 msgid ""
32446 " int\n"
32447 " guestfs_upload (guestfs_h *g,\n"
32448 "                 const char *filename,\n"
32449 "                 const char *remotefilename);\n"
32450 "\n"
32451 msgstr ""
32452
32453 #. type: textblock
32454 #: ../src/guestfs-actions.pod:7972
32455 msgid "See also C<guestfs_download>."
32456 msgstr ""
32457
32458 #. type: =head2
32459 #: ../src/guestfs-actions.pod:7983
32460 msgid "guestfs_upload_offset"
32461 msgstr ""
32462
32463 #. type: verbatim
32464 #: ../src/guestfs-actions.pod:7985
32465 #, no-wrap
32466 msgid ""
32467 " int\n"
32468 " guestfs_upload_offset (guestfs_h *g,\n"
32469 "                        const char *filename,\n"
32470 "                        const char *remotefilename,\n"
32471 "                        int64_t offset);\n"
32472 "\n"
32473 msgstr ""
32474
32475 #. type: textblock
32476 #: ../src/guestfs-actions.pod:8001
32477 msgid ""
32478 "Note that there is no limit on the amount of data that can be uploaded with "
32479 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32480 "full amount unless an error occurs."
32481 msgstr ""
32482
32483 #. type: textblock
32484 #: ../src/guestfs-actions.pod:8006
32485 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32486 msgstr ""
32487
32488 #. type: =head2
32489 #: ../src/guestfs-actions.pod:8017
32490 msgid "guestfs_utimens"
32491 msgstr ""
32492
32493 #. type: verbatim
32494 #: ../src/guestfs-actions.pod:8019
32495 #, no-wrap
32496 msgid ""
32497 " int\n"
32498 " guestfs_utimens (guestfs_h *g,\n"
32499 "                  const char *path,\n"
32500 "                  int64_t atsecs,\n"
32501 "                  int64_t atnsecs,\n"
32502 "                  int64_t mtsecs,\n"
32503 "                  int64_t mtnsecs);\n"
32504 "\n"
32505 msgstr ""
32506
32507 #. type: =head2
32508 #: ../src/guestfs-actions.pod:8048 ../src/guestfs-structs.pod:175
32509 msgid "guestfs_version"
32510 msgstr ""
32511
32512 #. type: verbatim
32513 #: ../src/guestfs-actions.pod:8050
32514 #, no-wrap
32515 msgid ""
32516 " struct guestfs_version *\n"
32517 " guestfs_version (guestfs_h *g);\n"
32518 "\n"
32519 msgstr ""
32520
32521 #. type: textblock
32522 #: ../src/guestfs-actions.pod:8078
32523 msgid ""
32524 "I<Note:> Don't use this call to test for availability of features.  In "
32525 "enterprise distributions we backport features from later versions into "
32526 "earlier versions, making this an unreliable way to test for features.  Use "
32527 "C<guestfs_available> instead."
32528 msgstr ""
32529
32530 #. type: textblock
32531 #: ../src/guestfs-actions.pod:8084
32532 msgid ""
32533 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32534 "error.  I<The caller must call C<guestfs_free_version> after use>."
32535 msgstr ""
32536
32537 #. type: textblock
32538 #: ../src/guestfs-actions.pod:8088
32539 msgid "(Added in 1.0.58)"
32540 msgstr ""
32541
32542 #. type: =head2
32543 #: ../src/guestfs-actions.pod:8090
32544 msgid "guestfs_vfs_label"
32545 msgstr ""
32546
32547 #. type: verbatim
32548 #: ../src/guestfs-actions.pod:8092
32549 #, no-wrap
32550 msgid ""
32551 " char *\n"
32552 " guestfs_vfs_label (guestfs_h *g,\n"
32553 "                    const char *device);\n"
32554 "\n"
32555 msgstr ""
32556
32557 #. type: textblock
32558 #: ../src/guestfs-actions.pod:8101
32559 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32560 msgstr ""
32561
32562 #. type: textblock
32563 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-actions.pod:8143
32564 msgid "(Added in 1.3.18)"
32565 msgstr ""
32566
32567 #. type: =head2
32568 #: ../src/guestfs-actions.pod:8108
32569 msgid "guestfs_vfs_type"
32570 msgstr ""
32571
32572 #. type: verbatim
32573 #: ../src/guestfs-actions.pod:8110
32574 #, no-wrap
32575 msgid ""
32576 " char *\n"
32577 " guestfs_vfs_type (guestfs_h *g,\n"
32578 "                   const char *device);\n"
32579 "\n"
32580 msgstr ""
32581
32582 #. type: =head2
32583 #: ../src/guestfs-actions.pod:8127
32584 msgid "guestfs_vfs_uuid"
32585 msgstr ""
32586
32587 #. type: verbatim
32588 #: ../src/guestfs-actions.pod:8129
32589 #, no-wrap
32590 msgid ""
32591 " char *\n"
32592 " guestfs_vfs_uuid (guestfs_h *g,\n"
32593 "                   const char *device);\n"
32594 "\n"
32595 msgstr ""
32596
32597 #. type: textblock
32598 #: ../src/guestfs-actions.pod:8138
32599 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32600 msgstr ""
32601
32602 #. type: =head2
32603 #: ../src/guestfs-actions.pod:8145
32604 msgid "guestfs_vg_activate"
32605 msgstr ""
32606
32607 #. type: verbatim
32608 #: ../src/guestfs-actions.pod:8147
32609 #, no-wrap
32610 msgid ""
32611 " int\n"
32612 " guestfs_vg_activate (guestfs_h *g,\n"
32613 "                      int activate,\n"
32614 "                      char *const *volgroups);\n"
32615 "\n"
32616 msgstr ""
32617
32618 #. type: =head2
32619 #: ../src/guestfs-actions.pod:8164
32620 msgid "guestfs_vg_activate_all"
32621 msgstr ""
32622
32623 #. type: verbatim
32624 #: ../src/guestfs-actions.pod:8166
32625 #, no-wrap
32626 msgid ""
32627 " int\n"
32628 " guestfs_vg_activate_all (guestfs_h *g,\n"
32629 "                          int activate);\n"
32630 "\n"
32631 msgstr ""
32632
32633 #. type: =head2
32634 #: ../src/guestfs-actions.pod:8179
32635 msgid "guestfs_vgcreate"
32636 msgstr ""
32637
32638 #. type: verbatim
32639 #: ../src/guestfs-actions.pod:8181
32640 #, no-wrap
32641 msgid ""
32642 " int\n"
32643 " guestfs_vgcreate (guestfs_h *g,\n"
32644 "                   const char *volgroup,\n"
32645 "                   char *const *physvols);\n"
32646 "\n"
32647 msgstr ""
32648
32649 #. type: =head2
32650 #: ../src/guestfs-actions.pod:8193
32651 msgid "guestfs_vglvuuids"
32652 msgstr ""
32653
32654 #. type: verbatim
32655 #: ../src/guestfs-actions.pod:8195
32656 #, no-wrap
32657 msgid ""
32658 " char **\n"
32659 " guestfs_vglvuuids (guestfs_h *g,\n"
32660 "                    const char *vgname);\n"
32661 "\n"
32662 msgstr ""
32663
32664 #. type: textblock
32665 #: ../src/guestfs-actions.pod:8202
32666 msgid ""
32667 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32668 "associate logical volumes and volume groups."
32669 msgstr ""
32670
32671 #. type: textblock
32672 #: ../src/guestfs-actions.pod:8205
32673 msgid "See also C<guestfs_vgpvuuids>."
32674 msgstr ""
32675
32676 #. type: =head2
32677 #: ../src/guestfs-actions.pod:8213
32678 msgid "guestfs_vgpvuuids"
32679 msgstr ""
32680
32681 #. type: verbatim
32682 #: ../src/guestfs-actions.pod:8215
32683 #, no-wrap
32684 msgid ""
32685 " char **\n"
32686 " guestfs_vgpvuuids (guestfs_h *g,\n"
32687 "                    const char *vgname);\n"
32688 "\n"
32689 msgstr ""
32690
32691 #. type: textblock
32692 #: ../src/guestfs-actions.pod:8222
32693 msgid ""
32694 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32695 "associate physical volumes and volume groups."
32696 msgstr ""
32697
32698 #. type: textblock
32699 #: ../src/guestfs-actions.pod:8225
32700 msgid "See also C<guestfs_vglvuuids>."
32701 msgstr ""
32702
32703 #. type: =head2
32704 #: ../src/guestfs-actions.pod:8233
32705 msgid "guestfs_vgremove"
32706 msgstr ""
32707
32708 #. type: verbatim
32709 #: ../src/guestfs-actions.pod:8235
32710 #, no-wrap
32711 msgid ""
32712 " int\n"
32713 " guestfs_vgremove (guestfs_h *g,\n"
32714 "                   const char *vgname);\n"
32715 "\n"
32716 msgstr ""
32717
32718 #. type: =head2
32719 #: ../src/guestfs-actions.pod:8248
32720 msgid "guestfs_vgrename"
32721 msgstr ""
32722
32723 #. type: verbatim
32724 #: ../src/guestfs-actions.pod:8250
32725 #, no-wrap
32726 msgid ""
32727 " int\n"
32728 " guestfs_vgrename (guestfs_h *g,\n"
32729 "                   const char *volgroup,\n"
32730 "                   const char *newvolgroup);\n"
32731 "\n"
32732 msgstr ""
32733
32734 #. type: =head2
32735 #: ../src/guestfs-actions.pod:8261
32736 msgid "guestfs_vgs"
32737 msgstr ""
32738
32739 #. type: verbatim
32740 #: ../src/guestfs-actions.pod:8263
32741 #, no-wrap
32742 msgid ""
32743 " char **\n"
32744 " guestfs_vgs (guestfs_h *g);\n"
32745 "\n"
32746 msgstr ""
32747
32748 #. type: textblock
32749 #: ../src/guestfs-actions.pod:8272
32750 msgid "See also C<guestfs_vgs_full>."
32751 msgstr ""
32752
32753 #. type: =head2
32754 #: ../src/guestfs-actions.pod:8280
32755 msgid "guestfs_vgs_full"
32756 msgstr ""
32757
32758 #. type: verbatim
32759 #: ../src/guestfs-actions.pod:8282
32760 #, no-wrap
32761 msgid ""
32762 " struct guestfs_lvm_vg_list *\n"
32763 " guestfs_vgs_full (guestfs_h *g);\n"
32764 "\n"
32765 msgstr ""
32766
32767 #. type: textblock
32768 #: ../src/guestfs-actions.pod:8288
32769 msgid ""
32770 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32771 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
32772 "use>."
32773 msgstr ""
32774
32775 #. type: =head2
32776 #: ../src/guestfs-actions.pod:8294
32777 msgid "guestfs_vgscan"
32778 msgstr ""
32779
32780 #. type: verbatim
32781 #: ../src/guestfs-actions.pod:8296
32782 #, no-wrap
32783 msgid ""
32784 " int\n"
32785 " guestfs_vgscan (guestfs_h *g);\n"
32786 "\n"
32787 msgstr ""
32788
32789 #. type: =head2
32790 #: ../src/guestfs-actions.pod:8306
32791 msgid "guestfs_vguuid"
32792 msgstr ""
32793
32794 #. type: verbatim
32795 #: ../src/guestfs-actions.pod:8308
32796 #, no-wrap
32797 msgid ""
32798 " char *\n"
32799 " guestfs_vguuid (guestfs_h *g,\n"
32800 "                 const char *vgname);\n"
32801 "\n"
32802 msgstr ""
32803
32804 #. type: =head2
32805 #: ../src/guestfs-actions.pod:8319
32806 msgid "guestfs_wait_ready"
32807 msgstr ""
32808
32809 #. type: verbatim
32810 #: ../src/guestfs-actions.pod:8321
32811 #, no-wrap
32812 msgid ""
32813 " int\n"
32814 " guestfs_wait_ready (guestfs_h *g);\n"
32815 "\n"
32816 msgstr ""
32817
32818 #. type: textblock
32819 #: ../src/guestfs-actions.pod:8324
32820 msgid ""
32821 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32822 "instead."
32823 msgstr ""
32824
32825 #. type: textblock
32826 #: ../src/guestfs-actions.pod:8331
32827 msgid "This function is a no op."
32828 msgstr ""
32829
32830 #. type: textblock
32831 #: ../src/guestfs-actions.pod:8333
32832 msgid ""
32833 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32834 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32835 "is no longer necessary because C<guestfs_launch> now does the waiting."
32836 msgstr ""
32837
32838 #. type: textblock
32839 #: ../src/guestfs-actions.pod:8338
32840 msgid ""
32841 "If you see any calls to this function in code then you can just remove them, "
32842 "unless you want to retain compatibility with older versions of the API."
32843 msgstr ""
32844
32845 #. type: =head2
32846 #: ../src/guestfs-actions.pod:8346
32847 msgid "guestfs_wc_c"
32848 msgstr ""
32849
32850 #. type: verbatim
32851 #: ../src/guestfs-actions.pod:8348
32852 #, no-wrap
32853 msgid ""
32854 " int\n"
32855 " guestfs_wc_c (guestfs_h *g,\n"
32856 "               const char *path);\n"
32857 "\n"
32858 msgstr ""
32859
32860 #. type: =head2
32861 #: ../src/guestfs-actions.pod:8359
32862 msgid "guestfs_wc_l"
32863 msgstr ""
32864
32865 #. type: verbatim
32866 #: ../src/guestfs-actions.pod:8361
32867 #, no-wrap
32868 msgid ""
32869 " int\n"
32870 " guestfs_wc_l (guestfs_h *g,\n"
32871 "               const char *path);\n"
32872 "\n"
32873 msgstr ""
32874
32875 #. type: =head2
32876 #: ../src/guestfs-actions.pod:8372
32877 msgid "guestfs_wc_w"
32878 msgstr ""
32879
32880 #. type: verbatim
32881 #: ../src/guestfs-actions.pod:8374
32882 #, no-wrap
32883 msgid ""
32884 " int\n"
32885 " guestfs_wc_w (guestfs_h *g,\n"
32886 "               const char *path);\n"
32887 "\n"
32888 msgstr ""
32889
32890 #. type: =head2
32891 #: ../src/guestfs-actions.pod:8385
32892 msgid "guestfs_write"
32893 msgstr ""
32894
32895 #. type: verbatim
32896 #: ../src/guestfs-actions.pod:8387
32897 #, no-wrap
32898 msgid ""
32899 " int\n"
32900 " guestfs_write (guestfs_h *g,\n"
32901 "                const char *path,\n"
32902 "                const char *content,\n"
32903 "                size_t content_size);\n"
32904 "\n"
32905 msgstr ""
32906
32907 #. type: textblock
32908 #: ../src/guestfs-actions.pod:8396
32909 msgid "See also C<guestfs_write_append>."
32910 msgstr ""
32911
32912 #. type: =head2
32913 #: ../src/guestfs-actions.pod:8405
32914 msgid "guestfs_write_append"
32915 msgstr ""
32916
32917 #. type: verbatim
32918 #: ../src/guestfs-actions.pod:8407
32919 #, no-wrap
32920 msgid ""
32921 " int\n"
32922 " guestfs_write_append (guestfs_h *g,\n"
32923 "                       const char *path,\n"
32924 "                       const char *content,\n"
32925 "                       size_t content_size);\n"
32926 "\n"
32927 msgstr ""
32928
32929 #. type: textblock
32930 #: ../src/guestfs-actions.pod:8416
32931 msgid "See also C<guestfs_write>."
32932 msgstr ""
32933
32934 #. type: =head2
32935 #: ../src/guestfs-actions.pod:8425
32936 msgid "guestfs_write_file"
32937 msgstr ""
32938
32939 #. type: verbatim
32940 #: ../src/guestfs-actions.pod:8427
32941 #, no-wrap
32942 msgid ""
32943 " int\n"
32944 " guestfs_write_file (guestfs_h *g,\n"
32945 "                     const char *path,\n"
32946 "                     const char *content,\n"
32947 "                     int size);\n"
32948 "\n"
32949 msgstr ""
32950
32951 #. type: textblock
32952 #: ../src/guestfs-actions.pod:8433
32953 msgid ""
32954 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32955 "instead."
32956 msgstr ""
32957
32958 #. type: =head2
32959 #: ../src/guestfs-actions.pod:8458
32960 msgid "guestfs_zegrep"
32961 msgstr ""
32962
32963 #. type: verbatim
32964 #: ../src/guestfs-actions.pod:8460
32965 #, no-wrap
32966 msgid ""
32967 " char **\n"
32968 " guestfs_zegrep (guestfs_h *g,\n"
32969 "                 const char *regex,\n"
32970 "                 const char *path);\n"
32971 "\n"
32972 msgstr ""
32973
32974 #. type: =head2
32975 #: ../src/guestfs-actions.pod:8477
32976 msgid "guestfs_zegrepi"
32977 msgstr ""
32978
32979 #. type: verbatim
32980 #: ../src/guestfs-actions.pod:8479
32981 #, no-wrap
32982 msgid ""
32983 " char **\n"
32984 " guestfs_zegrepi (guestfs_h *g,\n"
32985 "                  const char *regex,\n"
32986 "                  const char *path);\n"
32987 "\n"
32988 msgstr ""
32989
32990 #. type: =head2
32991 #: ../src/guestfs-actions.pod:8496
32992 msgid "guestfs_zero"
32993 msgstr ""
32994
32995 #. type: verbatim
32996 #: ../src/guestfs-actions.pod:8498
32997 #, no-wrap
32998 msgid ""
32999 " int\n"
33000 " guestfs_zero (guestfs_h *g,\n"
33001 "               const char *device);\n"
33002 "\n"
33003 msgstr ""
33004
33005 #. type: textblock
33006 #: ../src/guestfs-actions.pod:8512
33007 msgid ""
33008 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33009 "C<guestfs_is_zero_device>"
33010 msgstr ""
33011
33012 #. type: =head2
33013 #: ../src/guestfs-actions.pod:8524
33014 msgid "guestfs_zero_device"
33015 msgstr ""
33016
33017 #. type: verbatim
33018 #: ../src/guestfs-actions.pod:8526
33019 #, no-wrap
33020 msgid ""
33021 " int\n"
33022 " guestfs_zero_device (guestfs_h *g,\n"
33023 "                      const char *device);\n"
33024 "\n"
33025 msgstr ""
33026
33027 #. type: textblock
33028 #: ../src/guestfs-actions.pod:8530
33029 msgid ""
33030 "This command writes zeroes over the entire C<device>.  Compare with "
33031 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33032 msgstr ""
33033
33034 #. type: textblock
33035 #: ../src/guestfs-actions.pod:8545
33036 msgid "(Added in 1.3.1)"
33037 msgstr ""
33038
33039 #. type: =head2
33040 #: ../src/guestfs-actions.pod:8547
33041 msgid "guestfs_zerofree"
33042 msgstr ""
33043
33044 #. type: verbatim
33045 #: ../src/guestfs-actions.pod:8549
33046 #, no-wrap
33047 msgid ""
33048 " int\n"
33049 " guestfs_zerofree (guestfs_h *g,\n"
33050 "                   const char *device);\n"
33051 "\n"
33052 msgstr ""
33053
33054 #. type: =head2
33055 #: ../src/guestfs-actions.pod:8568
33056 msgid "guestfs_zfgrep"
33057 msgstr ""
33058
33059 #. type: verbatim
33060 #: ../src/guestfs-actions.pod:8570
33061 #, no-wrap
33062 msgid ""
33063 " char **\n"
33064 " guestfs_zfgrep (guestfs_h *g,\n"
33065 "                 const char *pattern,\n"
33066 "                 const char *path);\n"
33067 "\n"
33068 msgstr ""
33069
33070 #. type: =head2
33071 #: ../src/guestfs-actions.pod:8587
33072 msgid "guestfs_zfgrepi"
33073 msgstr ""
33074
33075 #. type: verbatim
33076 #: ../src/guestfs-actions.pod:8589
33077 #, no-wrap
33078 msgid ""
33079 " char **\n"
33080 " guestfs_zfgrepi (guestfs_h *g,\n"
33081 "                  const char *pattern,\n"
33082 "                  const char *path);\n"
33083 "\n"
33084 msgstr ""
33085
33086 #. type: =head2
33087 #: ../src/guestfs-actions.pod:8606
33088 msgid "guestfs_zfile"
33089 msgstr ""
33090
33091 #. type: verbatim
33092 #: ../src/guestfs-actions.pod:8608
33093 #, no-wrap
33094 msgid ""
33095 " char *\n"
33096 " guestfs_zfile (guestfs_h *g,\n"
33097 "                const char *meth,\n"
33098 "                const char *path);\n"
33099 "\n"
33100 msgstr ""
33101
33102 #. type: textblock
33103 #: ../src/guestfs-actions.pod:8613
33104 msgid ""
33105 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33106 "instead."
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs-actions.pod:8625
33111 msgid ""
33112 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33113 "files."
33114 msgstr ""
33115
33116 #. type: =head2
33117 #: ../src/guestfs-actions.pod:8633
33118 msgid "guestfs_zgrep"
33119 msgstr ""
33120
33121 #. type: verbatim
33122 #: ../src/guestfs-actions.pod:8635
33123 #, no-wrap
33124 msgid ""
33125 " char **\n"
33126 " guestfs_zgrep (guestfs_h *g,\n"
33127 "                const char *regex,\n"
33128 "                const char *path);\n"
33129 "\n"
33130 msgstr ""
33131
33132 #. type: =head2
33133 #: ../src/guestfs-actions.pod:8652
33134 msgid "guestfs_zgrepi"
33135 msgstr ""
33136
33137 #. type: verbatim
33138 #: ../src/guestfs-actions.pod:8654
33139 #, no-wrap
33140 msgid ""
33141 " char **\n"
33142 " guestfs_zgrepi (guestfs_h *g,\n"
33143 "                 const char *regex,\n"
33144 "                 const char *path);\n"
33145 "\n"
33146 msgstr ""
33147
33148 #. type: =item
33149 #: ../src/guestfs-availability.pod:3
33150 msgid "B<augeas>"
33151 msgstr ""
33152
33153 #. type: textblock
33154 #: ../src/guestfs-availability.pod:5
33155 msgid ""
33156 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
33157 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
33158 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
33159 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
33160 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
33161 msgstr ""
33162
33163 #. type: =item
33164 #: ../src/guestfs-availability.pod:21
33165 msgid "B<btrfs>"
33166 msgstr ""
33167
33168 #. type: textblock
33169 #: ../src/guestfs-availability.pod:23
33170 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33171 msgstr ""
33172
33173 #. type: =item
33174 #: ../src/guestfs-availability.pod:26
33175 msgid "B<grub>"
33176 msgstr ""
33177
33178 #. type: textblock
33179 #: ../src/guestfs-availability.pod:28
33180 msgid "The following functions: L</guestfs_grub_install>"
33181 msgstr ""
33182
33183 #. type: =item
33184 #: ../src/guestfs-availability.pod:31
33185 msgid "B<inotify>"
33186 msgstr ""
33187
33188 #. type: textblock
33189 #: ../src/guestfs-availability.pod:33
33190 msgid ""
33191 "The following functions: L</guestfs_inotify_add_watch> "
33192 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
33193 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33194 msgstr ""
33195
33196 #. type: =item
33197 #: ../src/guestfs-availability.pod:41
33198 msgid "B<linuxfsuuid>"
33199 msgstr ""
33200
33201 #. type: textblock
33202 #: ../src/guestfs-availability.pod:43
33203 msgid ""
33204 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
33205 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33206 msgstr ""
33207
33208 #. type: =item
33209 #: ../src/guestfs-availability.pod:50
33210 msgid "B<linuxmodules>"
33211 msgstr ""
33212
33213 #. type: textblock
33214 #: ../src/guestfs-availability.pod:52
33215 msgid "The following functions: L</guestfs_modprobe>"
33216 msgstr ""
33217
33218 #. type: =item
33219 #: ../src/guestfs-availability.pod:55
33220 msgid "B<linuxxattrs>"
33221 msgstr ""
33222
33223 #. type: textblock
33224 #: ../src/guestfs-availability.pod:57
33225 msgid ""
33226 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
33227 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
33228 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
33229 "L</guestfs_setxattr>"
33230 msgstr ""
33231
33232 #. type: =item
33233 #: ../src/guestfs-availability.pod:68
33234 msgid "B<luks>"
33235 msgstr ""
33236
33237 #. type: textblock
33238 #: ../src/guestfs-availability.pod:70
33239 msgid ""
33240 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
33241 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
33242 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33243 msgstr ""
33244
33245 #. type: =item
33246 #: ../src/guestfs-availability.pod:79
33247 msgid "B<lvm2>"
33248 msgstr ""
33249
33250 #. type: textblock
33251 #: ../src/guestfs-availability.pod:81
33252 msgid ""
33253 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
33254 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
33255 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
33256 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
33257 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
33258 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
33259 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
33260 "L</guestfs_vgs_full>"
33261 msgstr ""
33262
33263 #. type: =item
33264 #: ../src/guestfs-availability.pod:104
33265 msgid "B<mdadm>"
33266 msgstr ""
33267
33268 #. type: textblock
33269 #: ../src/guestfs-availability.pod:106
33270 msgid "The following functions: L</guestfs_mdadm_create> L</guestfs_mdadm_detail>"
33271 msgstr ""
33272
33273 #. type: =item
33274 #: ../src/guestfs-availability.pod:110
33275 msgid "B<mknod>"
33276 msgstr ""
33277
33278 #. type: textblock
33279 #: ../src/guestfs-availability.pod:112
33280 msgid ""
33281 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
33282 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
33283 msgstr ""
33284
33285 #. type: =item
33286 #: ../src/guestfs-availability.pod:118
33287 msgid "B<ntfs3g>"
33288 msgstr ""
33289
33290 #. type: textblock
33291 #: ../src/guestfs-availability.pod:120
33292 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33293 msgstr ""
33294
33295 #. type: =item
33296 #: ../src/guestfs-availability.pod:123
33297 msgid "B<ntfsprogs>"
33298 msgstr ""
33299
33300 #. type: textblock
33301 #: ../src/guestfs-availability.pod:125
33302 msgid ""
33303 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33304 "L</guestfs_ntfsresize_size>"
33305 msgstr ""
33306
33307 #. type: =item
33308 #: ../src/guestfs-availability.pod:130
33309 msgid "B<realpath>"
33310 msgstr ""
33311
33312 #. type: textblock
33313 #: ../src/guestfs-availability.pod:132
33314 msgid "The following functions: L</guestfs_realpath>"
33315 msgstr ""
33316
33317 #. type: =item
33318 #: ../src/guestfs-availability.pod:135
33319 msgid "B<scrub>"
33320 msgstr ""
33321
33322 #. type: textblock
33323 #: ../src/guestfs-availability.pod:137
33324 msgid ""
33325 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
33326 "L</guestfs_scrub_freespace>"
33327 msgstr ""
33328
33329 #. type: =item
33330 #: ../src/guestfs-availability.pod:142
33331 msgid "B<selinux>"
33332 msgstr ""
33333
33334 #. type: textblock
33335 #: ../src/guestfs-availability.pod:144
33336 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33337 msgstr ""
33338
33339 #. type: =item
33340 #: ../src/guestfs-availability.pod:148
33341 msgid "B<xz>"
33342 msgstr ""
33343
33344 #. type: textblock
33345 #: ../src/guestfs-availability.pod:150
33346 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33347 msgstr ""
33348
33349 #. type: =item
33350 #: ../src/guestfs-availability.pod:154
33351 msgid "B<zerofree>"
33352 msgstr ""
33353
33354 #. type: textblock
33355 #: ../src/guestfs-availability.pod:156
33356 msgid "The following functions: L</guestfs_zerofree>"
33357 msgstr ""
33358
33359 #. type: =head2
33360 #: ../src/guestfs-structs.pod:1
33361 msgid "guestfs_int_bool"
33362 msgstr ""
33363
33364 #. type: verbatim
33365 #: ../src/guestfs-structs.pod:3
33366 #, no-wrap
33367 msgid ""
33368 " struct guestfs_int_bool {\n"
33369 "   int32_t i;\n"
33370 "   int32_t b;\n"
33371 " };\n"
33372 " \n"
33373 msgstr ""
33374
33375 #. type: verbatim
33376 #: ../src/guestfs-structs.pod:8
33377 #, no-wrap
33378 msgid ""
33379 " struct guestfs_int_bool_list {\n"
33380 "   uint32_t len; /* Number of elements in list. */\n"
33381 "   struct guestfs_int_bool *val; /* Elements. */\n"
33382 " };\n"
33383 " \n"
33384 msgstr ""
33385
33386 #. type: verbatim
33387 #: ../src/guestfs-structs.pod:13
33388 #, no-wrap
33389 msgid ""
33390 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33391 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33392 "\n"
33393 msgstr ""
33394
33395 #. type: =head2
33396 #: ../src/guestfs-structs.pod:16
33397 msgid "guestfs_lvm_pv"
33398 msgstr ""
33399
33400 #. type: verbatim
33401 #: ../src/guestfs-structs.pod:18
33402 #, no-wrap
33403 msgid ""
33404 " struct guestfs_lvm_pv {\n"
33405 "   char *pv_name;\n"
33406 "   /* The next field is NOT nul-terminated, be careful when printing it: "
33407 "*/\n"
33408 "   char pv_uuid[32];\n"
33409 "   char *pv_fmt;\n"
33410 "   uint64_t pv_size;\n"
33411 "   uint64_t dev_size;\n"
33412 "   uint64_t pv_free;\n"
33413 "   uint64_t pv_used;\n"
33414 "   char *pv_attr;\n"
33415 "   int64_t pv_pe_count;\n"
33416 "   int64_t pv_pe_alloc_count;\n"
33417 "   char *pv_tags;\n"
33418 "   uint64_t pe_start;\n"
33419 "   int64_t pv_mda_count;\n"
33420 "   uint64_t pv_mda_free;\n"
33421 " };\n"
33422 " \n"
33423 msgstr ""
33424
33425 #. type: verbatim
33426 #: ../src/guestfs-structs.pod:36
33427 #, no-wrap
33428 msgid ""
33429 " struct guestfs_lvm_pv_list {\n"
33430 "   uint32_t len; /* Number of elements in list. */\n"
33431 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33432 " };\n"
33433 " \n"
33434 msgstr ""
33435
33436 #. type: verbatim
33437 #: ../src/guestfs-structs.pod:41
33438 #, no-wrap
33439 msgid ""
33440 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33441 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33442 "\n"
33443 msgstr ""
33444
33445 #. type: =head2
33446 #: ../src/guestfs-structs.pod:44
33447 msgid "guestfs_lvm_vg"
33448 msgstr ""
33449
33450 #. type: verbatim
33451 #: ../src/guestfs-structs.pod:46
33452 #, no-wrap
33453 msgid ""
33454 " struct guestfs_lvm_vg {\n"
33455 "   char *vg_name;\n"
33456 "   /* The next field is NOT nul-terminated, be careful when printing it: "
33457 "*/\n"
33458 "   char vg_uuid[32];\n"
33459 "   char *vg_fmt;\n"
33460 "   char *vg_attr;\n"
33461 "   uint64_t vg_size;\n"
33462 "   uint64_t vg_free;\n"
33463 "   char *vg_sysid;\n"
33464 "   uint64_t vg_extent_size;\n"
33465 "   int64_t vg_extent_count;\n"
33466 "   int64_t vg_free_count;\n"
33467 "   int64_t max_lv;\n"
33468 "   int64_t max_pv;\n"
33469 "   int64_t pv_count;\n"
33470 "   int64_t lv_count;\n"
33471 "   int64_t snap_count;\n"
33472 "   int64_t vg_seqno;\n"
33473 "   char *vg_tags;\n"
33474 "   int64_t vg_mda_count;\n"
33475 "   uint64_t vg_mda_free;\n"
33476 " };\n"
33477 " \n"
33478 msgstr ""
33479
33480 #. type: verbatim
33481 #: ../src/guestfs-structs.pod:69
33482 #, no-wrap
33483 msgid ""
33484 " struct guestfs_lvm_vg_list {\n"
33485 "   uint32_t len; /* Number of elements in list. */\n"
33486 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33487 " };\n"
33488 " \n"
33489 msgstr ""
33490
33491 #. type: verbatim
33492 #: ../src/guestfs-structs.pod:74
33493 #, no-wrap
33494 msgid ""
33495 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33496 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33497 "\n"
33498 msgstr ""
33499
33500 #. type: =head2
33501 #: ../src/guestfs-structs.pod:77
33502 msgid "guestfs_lvm_lv"
33503 msgstr ""
33504
33505 #. type: verbatim
33506 #: ../src/guestfs-structs.pod:79
33507 #, no-wrap
33508 msgid ""
33509 " struct guestfs_lvm_lv {\n"
33510 "   char *lv_name;\n"
33511 "   /* The next field is NOT nul-terminated, be careful when printing it: "
33512 "*/\n"
33513 "   char lv_uuid[32];\n"
33514 "   char *lv_attr;\n"
33515 "   int64_t lv_major;\n"
33516 "   int64_t lv_minor;\n"
33517 "   int64_t lv_kernel_major;\n"
33518 "   int64_t lv_kernel_minor;\n"
33519 "   uint64_t lv_size;\n"
33520 "   int64_t seg_count;\n"
33521 "   char *origin;\n"
33522 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33523 "   float snap_percent;\n"
33524 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33525 "   float copy_percent;\n"
33526 "   char *move_pv;\n"
33527 "   char *lv_tags;\n"
33528 "   char *mirror_log;\n"
33529 "   char *modules;\n"
33530 " };\n"
33531 " \n"
33532 msgstr ""
33533
33534 #. type: verbatim
33535 #: ../src/guestfs-structs.pod:101
33536 #, no-wrap
33537 msgid ""
33538 " struct guestfs_lvm_lv_list {\n"
33539 "   uint32_t len; /* Number of elements in list. */\n"
33540 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33541 " };\n"
33542 " \n"
33543 msgstr ""
33544
33545 #. type: verbatim
33546 #: ../src/guestfs-structs.pod:106
33547 #, no-wrap
33548 msgid ""
33549 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33550 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33551 "\n"
33552 msgstr ""
33553
33554 #. type: verbatim
33555 #: ../src/guestfs-structs.pod:111
33556 #, no-wrap
33557 msgid ""
33558 " struct guestfs_stat {\n"
33559 "   int64_t dev;\n"
33560 "   int64_t ino;\n"
33561 "   int64_t mode;\n"
33562 "   int64_t nlink;\n"
33563 "   int64_t uid;\n"
33564 "   int64_t gid;\n"
33565 "   int64_t rdev;\n"
33566 "   int64_t size;\n"
33567 "   int64_t blksize;\n"
33568 "   int64_t blocks;\n"
33569 "   int64_t atime;\n"
33570 "   int64_t mtime;\n"
33571 "   int64_t ctime;\n"
33572 " };\n"
33573 " \n"
33574 msgstr ""
33575
33576 #. type: verbatim
33577 #: ../src/guestfs-structs.pod:127
33578 #, no-wrap
33579 msgid ""
33580 " struct guestfs_stat_list {\n"
33581 "   uint32_t len; /* Number of elements in list. */\n"
33582 "   struct guestfs_stat *val; /* Elements. */\n"
33583 " };\n"
33584 " \n"
33585 msgstr ""
33586
33587 #. type: verbatim
33588 #: ../src/guestfs-structs.pod:132
33589 #, no-wrap
33590 msgid ""
33591 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33592 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33593 "\n"
33594 msgstr ""
33595
33596 #. type: verbatim
33597 #: ../src/guestfs-structs.pod:137
33598 #, no-wrap
33599 msgid ""
33600 " struct guestfs_statvfs {\n"
33601 "   int64_t bsize;\n"
33602 "   int64_t frsize;\n"
33603 "   int64_t blocks;\n"
33604 "   int64_t bfree;\n"
33605 "   int64_t bavail;\n"
33606 "   int64_t files;\n"
33607 "   int64_t ffree;\n"
33608 "   int64_t favail;\n"
33609 "   int64_t fsid;\n"
33610 "   int64_t flag;\n"
33611 "   int64_t namemax;\n"
33612 " };\n"
33613 " \n"
33614 msgstr ""
33615
33616 #. type: verbatim
33617 #: ../src/guestfs-structs.pod:151
33618 #, no-wrap
33619 msgid ""
33620 " struct guestfs_statvfs_list {\n"
33621 "   uint32_t len; /* Number of elements in list. */\n"
33622 "   struct guestfs_statvfs *val; /* Elements. */\n"
33623 " };\n"
33624 " \n"
33625 msgstr ""
33626
33627 #. type: verbatim
33628 #: ../src/guestfs-structs.pod:156
33629 #, no-wrap
33630 msgid ""
33631 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33632 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33633 "\n"
33634 msgstr ""
33635
33636 #. type: =head2
33637 #: ../src/guestfs-structs.pod:159
33638 msgid "guestfs_dirent"
33639 msgstr ""
33640
33641 #. type: verbatim
33642 #: ../src/guestfs-structs.pod:161
33643 #, no-wrap
33644 msgid ""
33645 " struct guestfs_dirent {\n"
33646 "   int64_t ino;\n"
33647 "   char ftyp;\n"
33648 "   char *name;\n"
33649 " };\n"
33650 " \n"
33651 msgstr ""
33652
33653 #. type: verbatim
33654 #: ../src/guestfs-structs.pod:167
33655 #, no-wrap
33656 msgid ""
33657 " struct guestfs_dirent_list {\n"
33658 "   uint32_t len; /* Number of elements in list. */\n"
33659 "   struct guestfs_dirent *val; /* Elements. */\n"
33660 " };\n"
33661 " \n"
33662 msgstr ""
33663
33664 #. type: verbatim
33665 #: ../src/guestfs-structs.pod:172
33666 #, no-wrap
33667 msgid ""
33668 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33669 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33670 "\n"
33671 msgstr ""
33672
33673 #. type: verbatim
33674 #: ../src/guestfs-structs.pod:177
33675 #, no-wrap
33676 msgid ""
33677 " struct guestfs_version {\n"
33678 "   int64_t major;\n"
33679 "   int64_t minor;\n"
33680 "   int64_t release;\n"
33681 "   char *extra;\n"
33682 " };\n"
33683 " \n"
33684 msgstr ""
33685
33686 #. type: verbatim
33687 #: ../src/guestfs-structs.pod:184
33688 #, no-wrap
33689 msgid ""
33690 " struct guestfs_version_list {\n"
33691 "   uint32_t len; /* Number of elements in list. */\n"
33692 "   struct guestfs_version *val; /* Elements. */\n"
33693 " };\n"
33694 " \n"
33695 msgstr ""
33696
33697 #. type: verbatim
33698 #: ../src/guestfs-structs.pod:189
33699 #, no-wrap
33700 msgid ""
33701 " void guestfs_free_version (struct guestfs_free_version *);\n"
33702 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33703 "\n"
33704 msgstr ""
33705
33706 #. type: =head2
33707 #: ../src/guestfs-structs.pod:192
33708 msgid "guestfs_xattr"
33709 msgstr ""
33710
33711 #. type: verbatim
33712 #: ../src/guestfs-structs.pod:194
33713 #, no-wrap
33714 msgid ""
33715 " struct guestfs_xattr {\n"
33716 "   char *attrname;\n"
33717 "   /* The next two fields describe a byte array. */\n"
33718 "   uint32_t attrval_len;\n"
33719 "   char *attrval;\n"
33720 " };\n"
33721 " \n"
33722 msgstr ""
33723
33724 #. type: verbatim
33725 #: ../src/guestfs-structs.pod:201
33726 #, no-wrap
33727 msgid ""
33728 " struct guestfs_xattr_list {\n"
33729 "   uint32_t len; /* Number of elements in list. */\n"
33730 "   struct guestfs_xattr *val; /* Elements. */\n"
33731 " };\n"
33732 " \n"
33733 msgstr ""
33734
33735 #. type: verbatim
33736 #: ../src/guestfs-structs.pod:206
33737 #, no-wrap
33738 msgid ""
33739 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33740 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33741 "\n"
33742 msgstr ""
33743
33744 #. type: =head2
33745 #: ../src/guestfs-structs.pod:209
33746 msgid "guestfs_inotify_event"
33747 msgstr ""
33748
33749 #. type: verbatim
33750 #: ../src/guestfs-structs.pod:211
33751 #, no-wrap
33752 msgid ""
33753 " struct guestfs_inotify_event {\n"
33754 "   int64_t in_wd;\n"
33755 "   uint32_t in_mask;\n"
33756 "   uint32_t in_cookie;\n"
33757 "   char *in_name;\n"
33758 " };\n"
33759 " \n"
33760 msgstr ""
33761
33762 #. type: verbatim
33763 #: ../src/guestfs-structs.pod:218
33764 #, no-wrap
33765 msgid ""
33766 " struct guestfs_inotify_event_list {\n"
33767 "   uint32_t len; /* Number of elements in list. */\n"
33768 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33769 " };\n"
33770 " \n"
33771 msgstr ""
33772
33773 #. type: verbatim
33774 #: ../src/guestfs-structs.pod:223
33775 #, no-wrap
33776 msgid ""
33777 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33778 " void guestfs_free_inotify_event_list (struct "
33779 "guestfs_free_inotify_event_list *);\n"
33780 "\n"
33781 msgstr ""
33782
33783 #. type: =head2
33784 #: ../src/guestfs-structs.pod:226
33785 msgid "guestfs_partition"
33786 msgstr ""
33787
33788 #. type: verbatim
33789 #: ../src/guestfs-structs.pod:228
33790 #, no-wrap
33791 msgid ""
33792 " struct guestfs_partition {\n"
33793 "   int32_t part_num;\n"
33794 "   uint64_t part_start;\n"
33795 "   uint64_t part_end;\n"
33796 "   uint64_t part_size;\n"
33797 " };\n"
33798 " \n"
33799 msgstr ""
33800
33801 #. type: verbatim
33802 #: ../src/guestfs-structs.pod:235
33803 #, no-wrap
33804 msgid ""
33805 " struct guestfs_partition_list {\n"
33806 "   uint32_t len; /* Number of elements in list. */\n"
33807 "   struct guestfs_partition *val; /* Elements. */\n"
33808 " };\n"
33809 " \n"
33810 msgstr ""
33811
33812 #. type: verbatim
33813 #: ../src/guestfs-structs.pod:240
33814 #, no-wrap
33815 msgid ""
33816 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33817 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33818 "\n"
33819 msgstr ""
33820
33821 #. type: =head2
33822 #: ../src/guestfs-structs.pod:243
33823 msgid "guestfs_application"
33824 msgstr ""
33825
33826 #. type: verbatim
33827 #: ../src/guestfs-structs.pod:245
33828 #, no-wrap
33829 msgid ""
33830 " struct guestfs_application {\n"
33831 "   char *app_name;\n"
33832 "   char *app_display_name;\n"
33833 "   int32_t app_epoch;\n"
33834 "   char *app_version;\n"
33835 "   char *app_release;\n"
33836 "   char *app_install_path;\n"
33837 "   char *app_trans_path;\n"
33838 "   char *app_publisher;\n"
33839 "   char *app_url;\n"
33840 "   char *app_source_package;\n"
33841 "   char *app_summary;\n"
33842 "   char *app_description;\n"
33843 " };\n"
33844 " \n"
33845 msgstr ""
33846
33847 #. type: verbatim
33848 #: ../src/guestfs-structs.pod:260
33849 #, no-wrap
33850 msgid ""
33851 " struct guestfs_application_list {\n"
33852 "   uint32_t len; /* Number of elements in list. */\n"
33853 "   struct guestfs_application *val; /* Elements. */\n"
33854 " };\n"
33855 " \n"
33856 msgstr ""
33857
33858 #. type: verbatim
33859 #: ../src/guestfs-structs.pod:265
33860 #, no-wrap
33861 msgid ""
33862 " void guestfs_free_application (struct guestfs_free_application *);\n"
33863 " void guestfs_free_application_list (struct guestfs_free_application_list "
33864 "*);\n"
33865 "\n"
33866 msgstr ""
33867
33868 #. type: textblock
33869 #: ../src/guestfs.pod:5
33870 msgid "guestfs - Library for accessing and modifying virtual machine images"
33871 msgstr ""
33872
33873 #. type: verbatim
33874 #: ../src/guestfs.pod:11
33875 #, no-wrap
33876 msgid ""
33877 " guestfs_h *g = guestfs_create ();\n"
33878 " guestfs_add_drive (g, \"guest.img\");\n"
33879 " guestfs_launch (g);\n"
33880 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33881 " guestfs_touch (g, \"/hello\");\n"
33882 " guestfs_umount (g, \"/\");\n"
33883 " guestfs_close (g);\n"
33884 "\n"
33885 msgstr ""
33886
33887 #. type: textblock
33888 #: ../src/guestfs.pod:25
33889 msgid ""
33890 "Libguestfs is a library for accessing and modifying guest disk images.  "
33891 "Amongst the things this is good for: making batch configuration changes to "
33892 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33893 "between virtualization systems (see also: virt-p2v), performing partial "
33894 "backups, performing partial guest clones, cloning guests and changing "
33895 "registry/UUID/hostname info, and much else besides."
33896 msgstr ""
33897
33898 #. type: textblock
33899 #: ../src/guestfs.pod:33
33900 msgid ""
33901 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33902 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33903 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33904 "qcow2, vmdk."
33905 msgstr ""
33906
33907 #. type: textblock
33908 #: ../src/guestfs.pod:38
33909 msgid ""
33910 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33911 "what filesystem is in each LV, etc.).  It can also run commands in the "
33912 "context of the guest.  Also you can access filesystems over FUSE."
33913 msgstr ""
33914
33915 #. type: textblock
33916 #: ../src/guestfs.pod:43
33917 msgid ""
33918 "Libguestfs is a library that can be linked with C and C++ management "
33919 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33920 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33921 "command line."
33922 msgstr ""
33923
33924 #. type: textblock
33925 #: ../src/guestfs.pod:48
33926 msgid ""
33927 "You don't need to be root to use libguestfs, although obviously you do need "
33928 "enough permissions to access the disk images."
33929 msgstr ""
33930
33931 #. type: textblock
33932 #: ../src/guestfs.pod:51
33933 msgid ""
33934 "Libguestfs is a large API because it can do many things.  For a gentle "
33935 "introduction, please read the L</API OVERVIEW> section next."
33936 msgstr ""
33937
33938 #. type: textblock
33939 #: ../src/guestfs.pod:54
33940 msgid ""
33941 "There are also some example programs in the L<guestfs-examples(3)> manual "
33942 "page."
33943 msgstr ""
33944
33945 #. type: =head1
33946 #: ../src/guestfs.pod:57
33947 msgid "API OVERVIEW"
33948 msgstr ""
33949
33950 #. type: textblock
33951 #: ../src/guestfs.pod:59
33952 msgid ""
33953 "This section provides a gentler overview of the libguestfs API.  We also try "
33954 "to group API calls together, where that may not be obvious from reading "
33955 "about the individual calls in the main section of this manual."
33956 msgstr ""
33957
33958 #. type: =head2
33959 #: ../src/guestfs.pod:64
33960 msgid "HANDLES"
33961 msgstr ""
33962
33963 #. type: textblock
33964 #: ../src/guestfs.pod:66
33965 msgid ""
33966 "Before you can use libguestfs calls, you have to create a handle.  Then you "
33967 "must add at least one disk image to the handle, followed by launching the "
33968 "handle, then performing whatever operations you want, and finally closing "
33969 "the handle.  By convention we use the single letter C<g> for the name of the "
33970 "handle variable, although of course you can use any name you want."
33971 msgstr ""
33972
33973 #. type: textblock
33974 #: ../src/guestfs.pod:73
33975 msgid "The general structure of all libguestfs-using programs looks like this:"
33976 msgstr ""
33977
33978 #. type: verbatim
33979 #: ../src/guestfs.pod:76
33980 #, no-wrap
33981 msgid ""
33982 " guestfs_h *g = guestfs_create ();\n"
33983 " \n"
33984 msgstr ""
33985
33986 #. type: verbatim
33987 #: ../src/guestfs.pod:78
33988 #, no-wrap
33989 msgid ""
33990 " /* Call guestfs_add_drive additional times if there are\n"
33991 "  * multiple disk images.\n"
33992 "  */\n"
33993 " guestfs_add_drive (g, \"guest.img\");\n"
33994 " \n"
33995 msgstr ""
33996
33997 #. type: verbatim
33998 #: ../src/guestfs.pod:83
33999 #, no-wrap
34000 msgid ""
34001 " /* Most manipulation calls won't work until you've launched\n"
34002 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34003 "  * and _before_ other commands.\n"
34004 "  */\n"
34005 " guestfs_launch (g);\n"
34006 " \n"
34007 msgstr ""
34008
34009 #. type: verbatim
34010 #: ../src/guestfs.pod:89
34011 #, no-wrap
34012 msgid ""
34013 " /* Now you can examine what partitions, LVs etc are available.\n"
34014 "  */\n"
34015 " char **partitions = guestfs_list_partitions (g);\n"
34016 " char **logvols = guestfs_lvs (g);\n"
34017 " \n"
34018 msgstr ""
34019
34020 #. type: verbatim
34021 #: ../src/guestfs.pod:94
34022 #, no-wrap
34023 msgid ""
34024 " /* To access a filesystem in the image, you must mount it.\n"
34025 "  */\n"
34026 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34027 " \n"
34028 msgstr ""
34029
34030 #. type: verbatim
34031 #: ../src/guestfs.pod:98
34032 #, no-wrap
34033 msgid ""
34034 " /* Now you can perform filesystem actions on the guest\n"
34035 "  * disk image.\n"
34036 "  */\n"
34037 " guestfs_touch (g, \"/hello\");\n"
34038 " \n"
34039 msgstr ""
34040
34041 #. type: verbatim
34042 #: ../src/guestfs.pod:103
34043 #, no-wrap
34044 msgid ""
34045 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34046 "  * it is done automatically when you close the handle.  See\n"
34047 "  * discussion of autosync in this page.\n"
34048 "  */\n"
34049 " guestfs_sync (g);\n"
34050 " \n"
34051 msgstr ""
34052
34053 #. type: verbatim
34054 #: ../src/guestfs.pod:109
34055 #, no-wrap
34056 msgid ""
34057 " /* Close the handle 'g'. */\n"
34058 " guestfs_close (g);\n"
34059 "\n"
34060 msgstr ""
34061
34062 #. type: textblock
34063 #: ../src/guestfs.pod:112
34064 msgid ""
34065 "The code above doesn't include any error checking.  In real code you should "
34066 "check return values carefully for errors.  In general all functions that "
34067 "return integers return C<-1> on error, and all functions that return "
34068 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34069 "how to handle errors, and consult the documentation for each function call "
34070 "below to see precisely how they return error indications.  See "
34071 "L<guestfs-examples(3)> for fully worked examples."
34072 msgstr ""
34073
34074 #. type: =head2
34075 #: ../src/guestfs.pod:121
34076 msgid "DISK IMAGES"
34077 msgstr ""
34078
34079 #. type: textblock
34080 #: ../src/guestfs.pod:123
34081 msgid ""
34082 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34083 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34084 "actual block device, or simply an empty file of zeroes that you have created "
34085 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34086 "of these."
34087 msgstr ""
34088
34089 #. type: textblock
34090 #: ../src/guestfs.pod:129
34091 msgid ""
34092 "The call you should use in modern code for adding drives is "
34093 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34094 "specifying that the format is raw, do:"
34095 msgstr ""
34096
34097 #. type: verbatim
34098 #: ../src/guestfs.pod:133
34099 #, no-wrap
34100 msgid ""
34101 " guestfs_add_drive_opts (g, filename,\n"
34102 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34103 "                         -1);\n"
34104 "\n"
34105 msgstr ""
34106
34107 #. type: textblock
34108 #: ../src/guestfs.pod:137
34109 msgid "You can add a disk read-only using:"
34110 msgstr ""
34111
34112 #. type: verbatim
34113 #: ../src/guestfs.pod:139
34114 #, no-wrap
34115 msgid ""
34116 " guestfs_add_drive_opts (g, filename,\n"
34117 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34118 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34119 "                         -1);\n"
34120 "\n"
34121 msgstr ""
34122
34123 #. type: textblock
34124 #: ../src/guestfs.pod:144
34125 msgid ""
34126 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34127 "libguestfs won't modify the file."
34128 msgstr ""
34129
34130 #. type: textblock
34131 #: ../src/guestfs.pod:147
34132 msgid ""
34133 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34134 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34135 "corruption, but adding it read-only is safe."
34136 msgstr ""
34137
34138 #. type: textblock
34139 #: ../src/guestfs.pod:151
34140 msgid ""
34141 "You must add at least one disk image, and you may add multiple disk images.  "
34142 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34143 "first one you added), C</dev/sdb> (for the second one you added), etc."
34144 msgstr ""
34145
34146 #. type: textblock
34147 #: ../src/guestfs.pod:156
34148 msgid ""
34149 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34150 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34151 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34152 msgstr ""
34153
34154 #. type: =head2
34155 #: ../src/guestfs.pod:161
34156 msgid "MOUNTING"
34157 msgstr ""
34158
34159 #. type: textblock
34160 #: ../src/guestfs.pod:163
34161 msgid ""
34162 "Before you can read or write files, create directories and so on in a disk "
34163 "image that contains filesystems, you have to mount those filesystems using "
34164 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34165 "a disk image contains (for example) one partition with a filesystem on that "
34166 "partition, then you can mount it directly:"
34167 msgstr ""
34168
34169 #. type: verbatim
34170 #: ../src/guestfs.pod:170
34171 #, no-wrap
34172 msgid ""
34173 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34174 "\n"
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs.pod:172
34179 msgid ""
34180 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34181 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34182 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34183 "that these are libguestfs virtual devices, and are nothing to do with host "
34184 "devices."
34185 msgstr ""
34186
34187 #. type: textblock
34188 #: ../src/guestfs.pod:178
34189 msgid ""
34190 "If you are given a disk image and you don't know what it contains then you "
34191 "have to find out.  Libguestfs can do that too: use "
34192 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
34193 "and LVs, and either try mounting each to see what is mountable, or else "
34194 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34195 "filesystems, use L</guestfs_list_filesystems>."
34196 msgstr ""
34197
34198 #. type: textblock
34199 #: ../src/guestfs.pod:186
34200 msgid ""
34201 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34202 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34203 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34204 msgstr ""
34205
34206 #. type: textblock
34207 #: ../src/guestfs.pod:191
34208 msgid ""
34209 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34210 "several other variations of the C<guestfs_mount_*> call."
34211 msgstr ""
34212
34213 #. type: =head2
34214 #: ../src/guestfs.pod:194
34215 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34216 msgstr ""
34217
34218 #. type: textblock
34219 #: ../src/guestfs.pod:196
34220 msgid ""
34221 "The majority of the libguestfs API consists of fairly low-level calls for "
34222 "accessing and modifying the files, directories, symlinks etc on mounted "
34223 "filesystems.  There are over a hundred such calls which you can find listed "
34224 "in detail below in this man page, and we don't even pretend to cover them "
34225 "all in this overview."
34226 msgstr ""
34227
34228 #. type: textblock
34229 #: ../src/guestfs.pod:202
34230 msgid ""
34231 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34232 "mount point."
34233 msgstr ""
34234
34235 #. type: textblock
34236 #: ../src/guestfs.pod:205
34237 msgid ""
34238 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34239 "the file called C<\"etc/passwd\"> then you could do:"
34240 msgstr ""
34241
34242 #. type: verbatim
34243 #: ../src/guestfs.pod:208
34244 #, no-wrap
34245 msgid ""
34246 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34247 "\n"
34248 msgstr ""
34249
34250 #. type: textblock
34251 #: ../src/guestfs.pod:210
34252 msgid ""
34253 "This would return C<data> as a newly allocated buffer containing the full "
34254 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34255 "or C<NULL> if there was an error."
34256 msgstr ""
34257
34258 #. type: textblock
34259 #: ../src/guestfs.pod:214
34260 msgid ""
34261 "As another example, to create a top-level directory on that filesystem "
34262 "called C<\"var\"> you would do:"
34263 msgstr ""
34264
34265 #. type: verbatim
34266 #: ../src/guestfs.pod:217
34267 #, no-wrap
34268 msgid ""
34269 " guestfs_mkdir (g, \"/var\");\n"
34270 "\n"
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs.pod:219
34275 msgid "To create a symlink you could do:"
34276 msgstr ""
34277
34278 #. type: verbatim
34279 #: ../src/guestfs.pod:221
34280 #, no-wrap
34281 msgid ""
34282 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34283 "               \"/etc/rc3.d/S30portmap\");\n"
34284 "\n"
34285 msgstr ""
34286
34287 #. type: textblock
34288 #: ../src/guestfs.pod:224
34289 msgid ""
34290 "Libguestfs will reject attempts to use relative paths and there is no "
34291 "concept of a current working directory."
34292 msgstr ""
34293
34294 #. type: textblock
34295 #: ../src/guestfs.pod:227
34296 msgid ""
34297 "Libguestfs can return errors in many situations: for example if the "
34298 "filesystem isn't writable, or if a file or directory that you requested "
34299 "doesn't exist.  If you are using the C API (documented here)  you have to "
34300 "check for those error conditions after each call.  (Other language bindings "
34301 "turn these errors into exceptions)."
34302 msgstr ""
34303
34304 #. type: textblock
34305 #: ../src/guestfs.pod:233
34306 msgid ""
34307 "File writes are affected by the per-handle umask, set by calling "
34308 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
34309 msgstr ""
34310
34311 #. type: =head2
34312 #: ../src/guestfs.pod:236
34313 msgid "PARTITIONING"
34314 msgstr ""
34315
34316 #. type: textblock
34317 #: ../src/guestfs.pod:238
34318 msgid ""
34319 "Libguestfs contains API calls to read, create and modify partition tables on "
34320 "disk images."
34321 msgstr ""
34322
34323 #. type: textblock
34324 #: ../src/guestfs.pod:241
34325 msgid ""
34326 "In the common case where you want to create a single partition covering the "
34327 "whole disk, you should use the L</guestfs_part_disk> call:"
34328 msgstr ""
34329
34330 #. type: verbatim
34331 #: ../src/guestfs.pod:245
34332 #, no-wrap
34333 msgid ""
34334 " const char *parttype = \"mbr\";\n"
34335 " if (disk_is_larger_than_2TB)\n"
34336 "   parttype = \"gpt\";\n"
34337 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34338 "\n"
34339 msgstr ""
34340
34341 #. type: textblock
34342 #: ../src/guestfs.pod:250
34343 msgid ""
34344 "Obviously this effectively wipes anything that was on that disk image "
34345 "before."
34346 msgstr ""
34347
34348 #. type: =head2
34349 #: ../src/guestfs.pod:253
34350 msgid "LVM2"
34351 msgstr ""
34352
34353 #. type: textblock
34354 #: ../src/guestfs.pod:255
34355 msgid ""
34356 "Libguestfs provides access to a large part of the LVM2 API, such as "
34357 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
34358 "unless you familiarize yourself with the concepts of physical volumes, "
34359 "volume groups and logical volumes."
34360 msgstr ""
34361
34362 #. type: textblock
34363 #: ../src/guestfs.pod:260
34364 msgid ""
34365 "This author strongly recommends reading the LVM HOWTO, online at "
34366 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
34367 msgstr ""
34368
34369 #. type: =head2
34370 #: ../src/guestfs.pod:263
34371 msgid "DOWNLOADING"
34372 msgstr ""
34373
34374 #. type: textblock
34375 #: ../src/guestfs.pod:265
34376 msgid ""
34377 "Use L</guestfs_cat> to download small, text only files.  This call is "
34378 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34379 "NUL (C<\\0>) characters.  However the API is very simple to use."
34380 msgstr ""
34381
34382 #. type: textblock
34383 #: ../src/guestfs.pod:269
34384 msgid ""
34385 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34386 "bit data, since it returns a (pointer, size) pair.  However it is still "
34387 "limited to \"small\" files, less than 2 MB."
34388 msgstr ""
34389
34390 #. type: textblock
34391 #: ../src/guestfs.pod:273
34392 msgid ""
34393 "L</guestfs_download> can be used to download any file, with no limits on "
34394 "content or size (even files larger than 4 GB)."
34395 msgstr ""
34396
34397 #. type: textblock
34398 #: ../src/guestfs.pod:276
34399 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34400 msgstr ""
34401
34402 #. type: =head2
34403 #: ../src/guestfs.pod:279
34404 msgid "UPLOADING"
34405 msgstr ""
34406
34407 #. type: textblock
34408 #: ../src/guestfs.pod:281
34409 msgid ""
34410 "It's often the case that you want to write a file or files to the disk "
34411 "image."
34412 msgstr ""
34413
34414 #. type: textblock
34415 #: ../src/guestfs.pod:284
34416 msgid ""
34417 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34418 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
34419 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
34420 "variety of other functions for creating test files, for example "
34421 "L</guestfs_fill> and L</guestfs_fill_pattern>."
34422 msgstr ""
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:290
34426 msgid ""
34427 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34428 "file content or size (even files larger than 4 GB)."
34429 msgstr ""
34430
34431 #. type: textblock
34432 #: ../src/guestfs.pod:293
34433 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34434 msgstr ""
34435
34436 #. type: textblock
34437 #: ../src/guestfs.pod:295
34438 msgid ""
34439 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34440 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
34441 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
34442 "the drive in a predictable way (eg. adding it last after all other drives) "
34443 "then you can get the device name from L</guestfs_list_devices> and mount it "
34444 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
34445 "sometimes non-portable between kernel versions, and they don't support "
34446 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
34447 "using a label or UUID, use an ISO image instead."
34448 msgstr ""
34449
34450 #. type: =head2
34451 #: ../src/guestfs.pod:306
34452 msgid "COPYING"
34453 msgstr ""
34454
34455 #. type: textblock
34456 #: ../src/guestfs.pod:308
34457 msgid ""
34458 "There are various different commands for copying between files and devices "
34459 "and in and out of the guest filesystem.  These are summarised in the table "
34460 "below."
34461 msgstr ""
34462
34463 #. type: =item
34464 #: ../src/guestfs.pod:314
34465 msgid "B<file> to B<file>"
34466 msgstr ""
34467
34468 #. type: textblock
34469 #: ../src/guestfs.pod:316
34470 msgid ""
34471 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34472 "directories recursively."
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../src/guestfs.pod:319
34477 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
34478 msgstr ""
34479
34480 #. type: =item
34481 #: ../src/guestfs.pod:322
34482 msgid "B<file> to B<device>"
34483 msgstr ""
34484
34485 #. type: =item
34486 #: ../src/guestfs.pod:324
34487 msgid "B<device> to B<file>"
34488 msgstr ""
34489
34490 #. type: =item
34491 #: ../src/guestfs.pod:326
34492 msgid "B<device> to B<device>"
34493 msgstr ""
34494
34495 #. type: textblock
34496 #: ../src/guestfs.pod:328
34497 msgid ""
34498 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
34499 "L</guestfs_copy_device_to_device>."
34500 msgstr ""
34501
34502 #. type: textblock
34503 #: ../src/guestfs.pod:331
34504 msgid "Example: duplicate the contents of an LV:"
34505 msgstr ""
34506
34507 #. type: verbatim
34508 #: ../src/guestfs.pod:333
34509 #, no-wrap
34510 msgid ""
34511 " guestfs_copy_device_to_device (g,\n"
34512 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34513 "         /* -1 marks the end of the list of optional parameters */\n"
34514 "         -1);\n"
34515 "\n"
34516 msgstr ""
34517
34518 #. type: textblock
34519 #: ../src/guestfs.pod:338
34520 msgid ""
34521 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34522 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
34523 "optional C<size> parameter:"
34524 msgstr ""
34525
34526 #. type: verbatim
34527 #: ../src/guestfs.pod:342
34528 #, no-wrap
34529 msgid ""
34530 " guestfs_copy_device_to_device (g,\n"
34531 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34532 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
34533 "         -1);\n"
34534 "\n"
34535 msgstr ""
34536
34537 #. type: =item
34538 #: ../src/guestfs.pod:347
34539 msgid "B<file on the host> to B<file or device>"
34540 msgstr ""
34541
34542 #. type: textblock
34543 #: ../src/guestfs.pod:349
34544 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34545 msgstr ""
34546
34547 #. type: =item
34548 #: ../src/guestfs.pod:351
34549 msgid "B<file or device> to B<file on the host>"
34550 msgstr ""
34551
34552 #. type: textblock
34553 #: ../src/guestfs.pod:353
34554 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34555 msgstr ""
34556
34557 #. type: =head2
34558 #: ../src/guestfs.pod:357
34559 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34560 msgstr ""
34561
34562 #. type: textblock
34563 #: ../src/guestfs.pod:359
34564 msgid ""
34565 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
34566 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34567 "appears you can only upload and download to files.  However many Un*x-like "
34568 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
34569 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
34570 "stderr, and arbitrary file descriptor N."
34571 msgstr ""
34572
34573 #. type: textblock
34574 #: ../src/guestfs.pod:367
34575 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34576 msgstr ""
34577
34578 #. type: verbatim
34579 #: ../src/guestfs.pod:370
34580 #, no-wrap
34581 msgid ""
34582 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34583 "\n"
34584 msgstr ""
34585
34586 #. type: textblock
34587 #: ../src/guestfs.pod:372
34588 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34589 msgstr ""
34590
34591 #. type: verbatim
34592 #: ../src/guestfs.pod:374
34593 #, no-wrap
34594 msgid ""
34595 " char devfd[64];\n"
34596 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34597 " guestfs_tar_out (g, \"/\", devfd);\n"
34598 "\n"
34599 msgstr ""
34600
34601 #. type: =head2
34602 #: ../src/guestfs.pod:378
34603 msgid "LISTING FILES"
34604 msgstr ""
34605
34606 #. type: textblock
34607 #: ../src/guestfs.pod:380
34608 msgid ""
34609 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34610 "L<guestfish(1)>-equivalent command C<ll>)."
34611 msgstr ""
34612
34613 #. type: textblock
34614 #: ../src/guestfs.pod:383
34615 msgid ""
34616 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34617 "programs, as a flat list of strings."
34618 msgstr ""
34619
34620 #. type: textblock
34621 #: ../src/guestfs.pod:386
34622 msgid ""
34623 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34624 "directory, plus additional information about each one.  It is more "
34625 "equivalent to using the L<readdir(3)> call on a local filesystem."
34626 msgstr ""
34627
34628 #. type: textblock
34629 #: ../src/guestfs.pod:390
34630 msgid ""
34631 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
34632 "files."
34633 msgstr ""
34634
34635 #. type: =head2
34636 #: ../src/guestfs.pod:393
34637 msgid "RUNNING COMMANDS"
34638 msgstr ""
34639
34640 #. type: textblock
34641 #: ../src/guestfs.pod:395
34642 msgid ""
34643 "Although libguestfs is primarily an API for manipulating files inside guest "
34644 "images, we also provide some limited facilities for running commands inside "
34645 "guests."
34646 msgstr ""
34647
34648 #. type: textblock
34649 #: ../src/guestfs.pod:399
34650 msgid "There are many limitations to this:"
34651 msgstr ""
34652
34653 #. type: textblock
34654 #: ../src/guestfs.pod:405
34655 msgid ""
34656 "The kernel version that the command runs under will be different from what "
34657 "it expects."
34658 msgstr ""
34659
34660 #. type: textblock
34661 #: ../src/guestfs.pod:410
34662 msgid ""
34663 "If the command needs to communicate with daemons, then most likely they "
34664 "won't be running."
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../src/guestfs.pod:415
34669 msgid "The command will be running in limited memory."
34670 msgstr ""
34671
34672 #. type: textblock
34673 #: ../src/guestfs.pod:419
34674 msgid ""
34675 "The network may not be available unless you enable it (see "
34676 "L</guestfs_set_network>)."
34677 msgstr ""
34678
34679 #. type: textblock
34680 #: ../src/guestfs.pod:424
34681 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs.pod:428
34686 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34687 msgstr ""
34688
34689 #. type: textblock
34690 #: ../src/guestfs.pod:433
34691 msgid ""
34692 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34693 "See L</SELINUX> in this manpage."
34694 msgstr ""
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:438
34698 msgid ""
34699 "I<Security:> It is not safe to run commands from untrusted, possibly "
34700 "malicious guests.  These commands may attempt to exploit your program by "
34701 "sending unexpected output.  They could also try to exploit the Linux kernel "
34702 "or qemu provided by the libguestfs appliance.  They could use the network "
34703 "provided by the libguestfs appliance to bypass ordinary network partitions "
34704 "and firewalls.  They could use the elevated privileges or different SELinux "
34705 "context of your program to their advantage."
34706 msgstr ""
34707
34708 #. type: textblock
34709 #: ../src/guestfs.pod:447
34710 msgid ""
34711 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34712 "(a script which runs when the guest next boots normally), and to have this "
34713 "script run the commands you want in the normal context of the running guest, "
34714 "network security and so on.  For information about other security issues, "
34715 "see L</SECURITY>."
34716 msgstr ""
34717
34718 #. type: textblock
34719 #: ../src/guestfs.pod:455
34720 msgid ""
34721 "The two main API calls to run commands are L</guestfs_command> and "
34722 "L</guestfs_sh> (there are also variations)."
34723 msgstr ""
34724
34725 #. type: textblock
34726 #: ../src/guestfs.pod:458
34727 msgid ""
34728 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34729 "shell globs, redirections, etc will work."
34730 msgstr ""
34731
34732 #. type: =head2
34733 #: ../src/guestfs.pod:461
34734 msgid "CONFIGURATION FILES"
34735 msgstr ""
34736
34737 #. type: textblock
34738 #: ../src/guestfs.pod:463
34739 msgid ""
34740 "To read and write configuration files in Linux guest filesystems, we "
34741 "strongly recommend using Augeas.  For example, Augeas understands how to "
34742 "read and write, say, a Linux shadow password file or X.org configuration "
34743 "file, and so avoids you having to write that code."
34744 msgstr ""
34745
34746 #. type: textblock
34747 #: ../src/guestfs.pod:468
34748 msgid ""
34749 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34750 "document Augeas itself here because there is excellent documentation on the "
34751 "L<http://augeas.net/> website."
34752 msgstr ""
34753
34754 #. type: textblock
34755 #: ../src/guestfs.pod:472
34756 msgid ""
34757 "If you don't want to use Augeas (you fool!) then try calling "
34758 "L</guestfs_read_lines> to get the file as a list of lines which you can "
34759 "iterate over."
34760 msgstr ""
34761
34762 #. type: =head2
34763 #: ../src/guestfs.pod:476
34764 msgid "SELINUX"
34765 msgstr ""
34766
34767 #. type: textblock
34768 #: ../src/guestfs.pod:478
34769 msgid ""
34770 "We support SELinux guests.  To ensure that labeling happens correctly in "
34771 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34772 msgstr ""
34773
34774 #. type: textblock
34775 #: ../src/guestfs.pod:486
34776 msgid "Before launching, do:"
34777 msgstr ""
34778
34779 #. type: verbatim
34780 #: ../src/guestfs.pod:488
34781 #, no-wrap
34782 msgid ""
34783 " guestfs_set_selinux (g, 1);\n"
34784 "\n"
34785 msgstr ""
34786
34787 #. type: textblock
34788 #: ../src/guestfs.pod:492
34789 msgid ""
34790 "After mounting the guest's filesystem(s), load the policy.  This is best "
34791 "done by running the L<load_policy(8)> command in the guest itself:"
34792 msgstr ""
34793
34794 #. type: verbatim
34795 #: ../src/guestfs.pod:496
34796 #, no-wrap
34797 msgid ""
34798 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34799 "\n"
34800 msgstr ""
34801
34802 #. type: textblock
34803 #: ../src/guestfs.pod:498
34804 msgid ""
34805 "(Older versions of C<load_policy> require you to specify the name of the "
34806 "policy file)."
34807 msgstr ""
34808
34809 #. type: textblock
34810 #: ../src/guestfs.pod:503
34811 msgid ""
34812 "Optionally, set the security context for the API.  The correct security "
34813 "context to use can only be known by inspecting the guest.  As an example:"
34814 msgstr ""
34815
34816 #. type: verbatim
34817 #: ../src/guestfs.pod:507
34818 #, no-wrap
34819 msgid ""
34820 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34821 "\n"
34822 msgstr ""
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:511
34826 msgid "This will work for running commands and editing existing files."
34827 msgstr ""
34828
34829 #. type: textblock
34830 #: ../src/guestfs.pod:513
34831 msgid ""
34832 "When new files are created, you may need to label them explicitly, for "
34833 "example by running the external command C<restorecon pathname>."
34834 msgstr ""
34835
34836 #. type: =head2
34837 #: ../src/guestfs.pod:517
34838 msgid "UMASK"
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:519
34843 msgid ""
34844 "Certain calls are affected by the current file mode creation mask (the "
34845 "\"umask\").  In particular ones which create files or directories, such as "
34846 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34847 "either the default mode that the file is created with or modifies the mode "
34848 "that you supply."
34849 msgstr ""
34850
34851 #. type: textblock
34852 #: ../src/guestfs.pod:525
34853 msgid ""
34854 "The default umask is C<022>, so files are created with modes such as C<0644> "
34855 "and directories with C<0755>."
34856 msgstr ""
34857
34858 #. type: textblock
34859 #: ../src/guestfs.pod:528
34860 msgid ""
34861 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34862 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
34863 "L</guestfs_chmod> after creating each file or directory."
34864 msgstr ""
34865
34866 #. type: textblock
34867 #: ../src/guestfs.pod:532
34868 msgid "For more information about umask, see L<umask(2)>."
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs.pod:536
34873 msgid ""
34874 "Libguestfs allows you to access Linux guests which have been encrypted using "
34875 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34876 "standard.  This includes nearly all whole disk encryption systems used by "
34877 "modern Linux guests."
34878 msgstr ""
34879
34880 #. type: textblock
34881 #: ../src/guestfs.pod:542
34882 msgid ""
34883 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34884 "returns the string C<crypto_LUKS>)."
34885 msgstr ""
34886
34887 #. type: textblock
34888 #: ../src/guestfs.pod:545
34889 msgid ""
34890 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34891 "will require the passphrase!"
34892 msgstr ""
34893
34894 #. type: textblock
34895 #: ../src/guestfs.pod:548
34896 msgid ""
34897 "Opening a LUKS device creates a new device mapper device called "
34898 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
34899 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
34900 "decrypted from and encrypted to the underlying block device respectively."
34901 msgstr ""
34902
34903 #. type: textblock
34904 #: ../src/guestfs.pod:554
34905 msgid ""
34906 "LVM volume groups on the device can be made visible by calling "
34907 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
34908 "volume(s) can now be mounted in the usual way."
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs.pod:558
34913 msgid ""
34914 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
34915 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34916 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
34917 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34918 "underlying encrypted block device)."
34919 msgstr ""
34920
34921 #. type: =head2
34922 #: ../src/guestfs.pod:565
34923 msgid "INSPECTION"
34924 msgstr ""
34925
34926 #. type: textblock
34927 #: ../src/guestfs.pod:567
34928 msgid ""
34929 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34930 "contains operating systems, an install CD or a live CD.  (These APIs used to "
34931 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34932 "version 1.5.3 the most frequently used part of this library has been "
34933 "rewritten in C and moved into the core code)."
34934 msgstr ""
34935
34936 #. type: textblock
34937 #: ../src/guestfs.pod:574
34938 msgid ""
34939 "Add all disks belonging to the unknown virtual machine and call "
34940 "L</guestfs_launch> in the usual way."
34941 msgstr ""
34942
34943 #. type: textblock
34944 #: ../src/guestfs.pod:577
34945 msgid ""
34946 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
34947 "and certain heuristics, and returns a list of operating systems that were "
34948 "found.  An empty list means none were found.  A single element is the root "
34949 "filesystem of the operating system.  For dual- or multi-boot guests, "
34950 "multiple roots can be returned, each one corresponding to a separate "
34951 "operating system.  (Multi-boot virtual machines are extremely rare in the "
34952 "world of virtualization, but since this scenario can happen, we have built "
34953 "libguestfs to deal with it.)"
34954 msgstr ""
34955
34956 #. type: textblock
34957 #: ../src/guestfs.pod:586
34958 msgid ""
34959 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34960 "to get additional details about that operating system.  For example, call "
34961 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34962 "Windows and Linux-based operating systems respectively."
34963 msgstr ""
34964
34965 #. type: textblock
34966 #: ../src/guestfs.pod:592
34967 msgid ""
34968 "Un*x-like and Linux-based operating systems usually consist of several "
34969 "filesystems which are mounted at boot time (for example, a separate boot "
34970 "partition mounted on C</boot>).  The inspection rules are able to detect how "
34971 "filesystems correspond to mount points.  Call "
34972 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
34973 "hash table like this example:"
34974 msgstr ""
34975
34976 #. type: verbatim
34977 #: ../src/guestfs.pod:599
34978 #, no-wrap
34979 msgid ""
34980 " /boot => /dev/sda1\n"
34981 " /     => /dev/vg_guest/lv_root\n"
34982 " /usr  => /dev/vg_guest/lv_usr\n"
34983 "\n"
34984 msgstr ""
34985
34986 #. type: textblock
34987 #: ../src/guestfs.pod:603
34988 msgid ""
34989 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34990 "filesystems as suggested."
34991 msgstr ""
34992
34993 #. type: textblock
34994 #: ../src/guestfs.pod:606
34995 msgid ""
34996 "Be careful to mount filesystems in the right order (eg. C</> before "
34997 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
34998 "work."
34999 msgstr ""
35000
35001 #. type: textblock
35002 #: ../src/guestfs.pod:610
35003 msgid ""
35004 "Inspection currently only works for some common operating systems.  "
35005 "Contributors are welcome to send patches for other operating systems that we "
35006 "currently cannot detect."
35007 msgstr ""
35008
35009 #. type: textblock
35010 #: ../src/guestfs.pod:614
35011 msgid ""
35012 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35013 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35014 "encrypted devices."
35015 msgstr ""
35016
35017 #. type: textblock
35018 #: ../src/guestfs.pod:618
35019 msgid ""
35020 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35021 "inspection and caches the results in the guest handle.  Subsequent calls to "
35022 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
35023 "re-read the disks.  If you change the content of the guest disks, you can "
35024 "redo inspection by calling L</guestfs_inspect_os> again.  "
35025 "(L</guestfs_inspect_list_applications> works a little differently from the "
35026 "other calls and does read the disks.  See documentation for that function "
35027 "for details)."
35028 msgstr ""
35029
35030 #. type: =head3
35031 #: ../src/guestfs.pod:627
35032 msgid "INSPECTING INSTALL DISKS"
35033 msgstr ""
35034
35035 #. type: textblock
35036 #: ../src/guestfs.pod:629
35037 msgid ""
35038 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35039 "CDs and more."
35040 msgstr ""
35041
35042 #. type: textblock
35043 #: ../src/guestfs.pod:632
35044 msgid ""
35045 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35046 "system, which currently can be C<installed> (a regular operating system) or "
35047 "C<installer> (some sort of install disk)."
35048 msgstr ""
35049
35050 #. type: textblock
35051 #: ../src/guestfs.pod:636
35052 msgid ""
35053 "Further information is available about the operating system that can be "
35054 "installed using the regular inspection APIs like "
35055 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
35056 "etc."
35057 msgstr ""
35058
35059 #. type: textblock
35060 #: ../src/guestfs.pod:641
35061 msgid ""
35062 "Some additional information specific to installer disks is also available "
35063 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
35064 "L</guestfs_inspect_is_multipart> calls."
35065 msgstr ""
35066
35067 #. type: =head2
35068 #: ../src/guestfs.pod:646
35069 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35070 msgstr ""
35071
35072 #. type: textblock
35073 #: ../src/guestfs.pod:648
35074 msgid ""
35075 "Libguestfs can mount NTFS partitions.  It does this using the "
35076 "L<http://www.ntfs-3g.org/> driver."
35077 msgstr ""
35078
35079 #. type: =head3
35080 #: ../src/guestfs.pod:651
35081 msgid "DRIVE LETTERS AND PATHS"
35082 msgstr ""
35083
35084 #. type: textblock
35085 #: ../src/guestfs.pod:653
35086 msgid ""
35087 "DOS and Windows still use drive letters, and the filesystems are always "
35088 "treated as case insensitive by Windows itself, and therefore you might find "
35089 "a Windows configuration file referring to a path like "
35090 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
35091 "that directory might be referred to as C</WINDOWS/System32>."
35092 msgstr ""
35093
35094 #. type: textblock
35095 #: ../src/guestfs.pod:659
35096 msgid ""
35097 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35098 "L</guestfs_inspect_get_drive_mappings>)"
35099 msgstr ""
35100
35101 #. type: textblock
35102 #: ../src/guestfs.pod:662
35103 msgid ""
35104 "Dealing with separator characters (backslash vs forward slash) is outside "
35105 "the scope of libguestfs, but usually a simple character replacement will "
35106 "work."
35107 msgstr ""
35108
35109 #. type: textblock
35110 #: ../src/guestfs.pod:666
35111 msgid ""
35112 "To resolve the case insensitivity of paths, call "
35113 "L</guestfs_case_sensitive_path>."
35114 msgstr ""
35115
35116 #. type: =head3
35117 #: ../src/guestfs.pod:669
35118 msgid "ACCESSING THE WINDOWS REGISTRY"
35119 msgstr ""
35120
35121 #. type: textblock
35122 #: ../src/guestfs.pod:671
35123 msgid ""
35124 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35125 "files, through the library C<hivex> which is part of the libguestfs project "
35126 "although ships as a separate tarball.  You have to locate and download the "
35127 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35128 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
35129 "L<virt-win-reg(1)> for more help on this issue."
35130 msgstr ""
35131
35132 #. type: =head3
35133 #: ../src/guestfs.pod:679
35134 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35135 msgstr ""
35136
35137 #. type: textblock
35138 #: ../src/guestfs.pod:681
35139 msgid ""
35140 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35141 "provide something which looks like a Linux symlink.  The way it tries to do "
35142 "the rewriting is described here:"
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs.pod:685
35147 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:687
35152 msgid ""
35153 "The essential problem is that ntfs-3g simply does not have enough "
35154 "information to do a correct job.  NTFS links can contain drive letters and "
35155 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35156 "It is almost certainly the case that libguestfs callers should ignore what "
35157 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35158 msgstr ""
35159
35160 #. type: textblock
35161 #: ../src/guestfs.pod:694
35162 msgid ""
35163 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
35164 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35165 "attribute, and read the raw reparse data from that (you can find the format "
35166 "documented in various places around the web)."
35167 msgstr ""
35168
35169 #. type: =head3
35170 #: ../src/guestfs.pod:699
35171 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35172 msgstr ""
35173
35174 #. type: textblock
35175 #: ../src/guestfs.pod:701
35176 msgid ""
35177 "There are other useful extended attributes that can be read from ntfs-3g "
35178 "filesystems (using L</guestfs_getxattr>).  See:"
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs.pod:704
35183 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35184 msgstr ""
35185
35186 #. type: =head2
35187 #: ../src/guestfs.pod:706
35188 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35189 msgstr ""
35190
35191 #. type: textblock
35192 #: ../src/guestfs.pod:708
35193 msgid ""
35194 "Although we don't want to discourage you from using the C API, we will "
35195 "mention here that the same API is also available in other languages."
35196 msgstr ""
35197
35198 #. type: textblock
35199 #: ../src/guestfs.pod:711
35200 msgid ""
35201 "The API is broadly identical in all supported languages.  This means that "
35202 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35203 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35204 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35205 "each language."
35206 msgstr ""
35207
35208 #. type: textblock
35209 #: ../src/guestfs.pod:717
35210 msgid ""
35211 "Error messages are automatically transformed into exceptions if the language "
35212 "supports it."
35213 msgstr ""
35214
35215 #. type: textblock
35216 #: ../src/guestfs.pod:720
35217 msgid ""
35218 "We don't try to \"object orientify\" parts of the API in OO languages, "
35219 "although contributors are welcome to write higher level APIs above what we "
35220 "provide in their favourite languages if they wish."
35221 msgstr ""
35222
35223 #. type: =item
35224 #: ../src/guestfs.pod:726
35225 msgid "B<C++>"
35226 msgstr ""
35227
35228 #. type: textblock
35229 #: ../src/guestfs.pod:728
35230 msgid ""
35231 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35232 "identical to the C API.  C++ classes and exceptions are not used."
35233 msgstr ""
35234
35235 #. type: =item
35236 #: ../src/guestfs.pod:732
35237 msgid "B<C#>"
35238 msgstr ""
35239
35240 #. type: textblock
35241 #: ../src/guestfs.pod:734
35242 msgid ""
35243 "The C# bindings are highly experimental.  Please read the warnings at the "
35244 "top of C<csharp/Libguestfs.cs>."
35245 msgstr ""
35246
35247 #. type: =item
35248 #: ../src/guestfs.pod:737
35249 msgid "B<Erlang>"
35250 msgstr ""
35251
35252 #. type: textblock
35253 #: ../src/guestfs.pod:739
35254 msgid "See L<guestfs-erlang(3)>."
35255 msgstr ""
35256
35257 #. type: =item
35258 #: ../src/guestfs.pod:741
35259 msgid "B<Haskell>"
35260 msgstr ""
35261
35262 #. type: textblock
35263 #: ../src/guestfs.pod:743
35264 msgid ""
35265 "This is the only language binding that is working but incomplete.  Only "
35266 "calls which return simple integers have been bound in Haskell, and we are "
35267 "looking for help to complete this binding."
35268 msgstr ""
35269
35270 #. type: =item
35271 #: ../src/guestfs.pod:747
35272 msgid "B<Java>"
35273 msgstr ""
35274
35275 #. type: textblock
35276 #: ../src/guestfs.pod:749
35277 msgid ""
35278 "Full documentation is contained in the Javadoc which is distributed with "
35279 "libguestfs.  For examples, see L<guestfs-java(3)>."
35280 msgstr ""
35281
35282 #. type: =item
35283 #: ../src/guestfs.pod:752
35284 msgid "B<OCaml>"
35285 msgstr ""
35286
35287 #. type: textblock
35288 #: ../src/guestfs.pod:754
35289 msgid "See L<guestfs-ocaml(3)>."
35290 msgstr ""
35291
35292 #. type: =item
35293 #: ../src/guestfs.pod:756
35294 msgid "B<Perl>"
35295 msgstr ""
35296
35297 #. type: textblock
35298 #: ../src/guestfs.pod:758
35299 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35300 msgstr ""
35301
35302 #. type: =item
35303 #: ../src/guestfs.pod:760
35304 msgid "B<PHP>"
35305 msgstr ""
35306
35307 #. type: textblock
35308 #: ../src/guestfs.pod:762
35309 msgid ""
35310 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35311 "the php-libguestfs package for your distribution."
35312 msgstr ""
35313
35314 #. type: textblock
35315 #: ../src/guestfs.pod:765
35316 msgid "The PHP binding only works correctly on 64 bit machines."
35317 msgstr ""
35318
35319 #. type: =item
35320 #: ../src/guestfs.pod:767
35321 msgid "B<Python>"
35322 msgstr ""
35323
35324 #. type: textblock
35325 #: ../src/guestfs.pod:769
35326 msgid "See L<guestfs-python(3)>."
35327 msgstr ""
35328
35329 #. type: =item
35330 #: ../src/guestfs.pod:771
35331 msgid "B<Ruby>"
35332 msgstr ""
35333
35334 #. type: textblock
35335 #: ../src/guestfs.pod:773
35336 msgid "See L<guestfs-ruby(3)>."
35337 msgstr ""
35338
35339 #. type: =item
35340 #: ../src/guestfs.pod:775
35341 msgid "B<shell scripts>"
35342 msgstr ""
35343
35344 #. type: textblock
35345 #: ../src/guestfs.pod:777
35346 msgid "See L<guestfish(1)>."
35347 msgstr ""
35348
35349 #. type: =head2
35350 #: ../src/guestfs.pod:781
35351 msgid "LIBGUESTFS GOTCHAS"
35352 msgstr ""
35353
35354 #. type: textblock
35355 #: ../src/guestfs.pod:783
35356 msgid ""
35357 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35358 "system [...] that works in the way it is documented but is counterintuitive "
35359 "and almost invites mistakes.\""
35360 msgstr ""
35361
35362 #. type: textblock
35363 #: ../src/guestfs.pod:787
35364 msgid ""
35365 "Since we developed libguestfs and the associated tools, there are several "
35366 "things we would have designed differently, but are now stuck with for "
35367 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35368 "release, you can expect these to change.  Beware of them."
35369 msgstr ""
35370
35371 #. type: =item
35372 #: ../src/guestfs.pod:795
35373 msgid "Autosync / forgetting to sync."
35374 msgstr ""
35375
35376 #. type: textblock
35377 #: ../src/guestfs.pod:797
35378 msgid ""
35379 "I<Update:> Autosync is enabled by default for all API users starting from "
35380 "libguestfs 1.5.24.  This section only applies to older versions."
35381 msgstr ""
35382
35383 #. type: textblock
35384 #: ../src/guestfs.pod:800
35385 msgid ""
35386 "When modifying a filesystem from C or another language, you B<must> unmount "
35387 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35388 "libguestfs handle.  You can also call:"
35389 msgstr ""
35390
35391 #. type: verbatim
35392 #: ../src/guestfs.pod:804
35393 #, no-wrap
35394 msgid ""
35395 " guestfs_set_autosync (g, 1);\n"
35396 "\n"
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:806
35401 msgid ""
35402 "to have the unmount/sync done automatically for you when the handle 'g' is "
35403 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
35404 "q.v.)"
35405 msgstr ""
35406
35407 #. type: textblock
35408 #: ../src/guestfs.pod:810
35409 msgid ""
35410 "If you forget to do this, then it is entirely possible that your changes "
35411 "won't be written out, or will be partially written, or (very rarely) that "
35412 "you'll get disk corruption."
35413 msgstr ""
35414
35415 #. type: textblock
35416 #: ../src/guestfs.pod:814
35417 msgid ""
35418 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35419 "guestfish scripts that forget to sync will work just fine, which can make "
35420 "this very puzzling if you are trying to debug a problem."
35421 msgstr ""
35422
35423 #. type: =item
35424 #: ../src/guestfs.pod:818
35425 msgid "Mount option C<-o sync> should not be the default."
35426 msgstr ""
35427
35428 #. type: textblock
35429 #: ../src/guestfs.pod:820
35430 msgid ""
35431 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35432 "libguestfs 1.13.16.  This section only applies to older versions."
35433 msgstr ""
35434
35435 #. type: textblock
35436 #: ../src/guestfs.pod:823
35437 msgid ""
35438 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35439 "However C<-o sync> does not add any reliability benefit, but does have a "
35440 "very large performance impact."
35441 msgstr ""
35442
35443 #. type: textblock
35444 #: ../src/guestfs.pod:827
35445 msgid ""
35446 "The work around is to use L</guestfs_mount_options> and set the mount "
35447 "options that you actually want to use."
35448 msgstr ""
35449
35450 #. type: =item
35451 #: ../src/guestfs.pod:830
35452 msgid "Read-only should be the default."
35453 msgstr ""
35454
35455 #. type: textblock
35456 #: ../src/guestfs.pod:832
35457 msgid ""
35458 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35459 "specify I<--rw> if you want to make changes to the image."
35460 msgstr ""
35461
35462 #. type: textblock
35463 #: ../src/guestfs.pod:835
35464 msgid "This would reduce the potential to corrupt live VM images."
35465 msgstr ""
35466
35467 #. type: textblock
35468 #: ../src/guestfs.pod:837
35469 msgid ""
35470 "Note that many filesystems change the disk when you just mount and unmount, "
35471 "even if you didn't perform any writes.  You need to use "
35472 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
35473 msgstr ""
35474
35475 #. type: =item
35476 #: ../src/guestfs.pod:841
35477 msgid "guestfish command line is hard to use."
35478 msgstr ""
35479
35480 #. type: textblock
35481 #: ../src/guestfs.pod:843
35482 msgid ""
35483 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35484 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35485 "exist, so it fails.  In earlier versions of guestfish the error message was "
35486 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35487 "we should have used C<guestfish -c command> to run commands."
35488 msgstr ""
35489
35490 #. type: =item
35491 #: ../src/guestfs.pod:850
35492 msgid "guestfish megabyte modifiers don't work right on all commands"
35493 msgstr ""
35494
35495 #. type: textblock
35496 #: ../src/guestfs.pod:852
35497 msgid ""
35498 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35499 "other modifiers).  What guestfish actually does is to multiply the number "
35500 "part by the modifier part and pass the result to the C API.  However this "
35501 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35502 "expecting some other unit (eg. megabytes)."
35503 msgstr ""
35504
35505 #. type: textblock
35506 #: ../src/guestfs.pod:859
35507 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35508 msgstr ""
35509
35510 #. type: verbatim
35511 #: ../src/guestfs.pod:861
35512 #, no-wrap
35513 msgid ""
35514 " lvcreate LV VG 100M\n"
35515 "\n"
35516 msgstr ""
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:863
35520 msgid ""
35521 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35522 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35523 "megabytes * megabytes) logical volume.  The error message you get from this "
35524 "is also a little obscure."
35525 msgstr ""
35526
35527 #. type: textblock
35528 #: ../src/guestfs.pod:868
35529 msgid ""
35530 "This could be fixed in the generator by specially marking parameters and "
35531 "return values which take bytes or other units."
35532 msgstr ""
35533
35534 #. type: =item
35535 #: ../src/guestfs.pod:871
35536 msgid "Ambiguity between devices and paths"
35537 msgstr ""
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:873
35541 msgid ""
35542 "There is a subtle ambiguity in the API between a device name "
35543 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
35544 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:878
35549 msgid ""
35550 "In the current API we usually resolve this ambiguity by having two separate "
35551 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35552 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35553 "detecting if the path supplied begins with C</dev/>."
35554 msgstr ""
35555
35556 #. type: textblock
35557 #: ../src/guestfs.pod:884
35558 msgid ""
35559 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35560 "make paths/devices into structured names.  One way to do this would be to "
35561 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35562 "aspect of grub.  Another way would be to use a structured type, equivalent "
35563 "to this OCaml type:"
35564 msgstr ""
35565
35566 #. type: verbatim
35567 #: ../src/guestfs.pod:890
35568 #, no-wrap
35569 msgid ""
35570 " type path = Path of string | Device of int | Partition of int * int\n"
35571 "\n"
35572 msgstr ""
35573
35574 #. type: textblock
35575 #: ../src/guestfs.pod:892
35576 msgid "which would allow you to pass arguments like:"
35577 msgstr ""
35578
35579 #. type: verbatim
35580 #: ../src/guestfs.pod:894
35581 #, no-wrap
35582 msgid ""
35583 " Path \"/foo/bar\"\n"
35584 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35585 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35586 " Path \"/dev/sdb2\"    (* not a device *)\n"
35587 "\n"
35588 msgstr ""
35589
35590 #. type: textblock
35591 #: ../src/guestfs.pod:899
35592 msgid ""
35593 "As you can see there are still problems to resolve even with this "
35594 "representation.  Also consider how it might work in guestfish."
35595 msgstr ""
35596
35597 #. type: =head2
35598 #: ../src/guestfs.pod:904
35599 msgid "KEYS AND PASSPHRASES"
35600 msgstr ""
35601
35602 #. type: textblock
35603 #: ../src/guestfs.pod:906
35604 msgid ""
35605 "Certain libguestfs calls take a parameter that contains sensitive key "
35606 "material, passed in as a C string."
35607 msgstr ""
35608
35609 #. type: textblock
35610 #: ../src/guestfs.pod:909
35611 msgid ""
35612 "In the future we would hope to change the libguestfs implementation so that "
35613 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35614 "swap.  However this is I<not> done at the moment, because of the complexity "
35615 "of such an implementation."
35616 msgstr ""
35617
35618 #. type: textblock
35619 #: ../src/guestfs.pod:914
35620 msgid ""
35621 "Therefore you should be aware that any key parameter you pass to libguestfs "
35622 "might end up being written out to the swap partition.  If this is a concern, "
35623 "scrub the swap partition or don't use libguestfs on encrypted devices."
35624 msgstr ""
35625
35626 #. type: =head2
35627 #: ../src/guestfs.pod:919
35628 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35629 msgstr ""
35630
35631 #. type: textblock
35632 #: ../src/guestfs.pod:921
35633 msgid ""
35634 "All high-level libguestfs actions are synchronous.  If you want to use "
35635 "libguestfs asynchronously then you must create a thread."
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:924
35640 msgid ""
35641 "Only use the handle from a single thread.  Either use the handle exclusively "
35642 "from one thread, or provide your own mutex so that two threads cannot issue "
35643 "calls on the same handle at the same time."
35644 msgstr ""
35645
35646 #. type: textblock
35647 #: ../src/guestfs.pod:928
35648 msgid ""
35649 "See the graphical program guestfs-browser for one possible architecture for "
35650 "multithreaded programs using libvirt and libguestfs."
35651 msgstr ""
35652
35653 #. type: =head2
35654 #: ../src/guestfs.pod:931
35655 msgid "PATH"
35656 msgstr ""
35657
35658 #. type: textblock
35659 #: ../src/guestfs.pod:933
35660 msgid ""
35661 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35662 "internal path."
35663 msgstr ""
35664
35665 #. type: textblock
35666 #: ../src/guestfs.pod:936
35667 msgid ""
35668 "By default it looks for these in the directory C<$libdir/guestfs> "
35669 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35670 msgstr ""
35671
35672 #. type: textblock
35673 #: ../src/guestfs.pod:939
35674 msgid ""
35675 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35676 "to change the directories that libguestfs will search in.  The value is a "
35677 "colon-separated list of paths.  The current directory is I<not> searched "
35678 "unless the path contains an empty element or C<.>.  For example "
35679 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35680 "then C</usr/lib/guestfs>."
35681 msgstr ""
35682
35683 #. type: =head2
35684 #: ../src/guestfs.pod:946
35685 msgid "QEMU WRAPPERS"
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:948
35690 msgid ""
35691 "If you want to compile your own qemu, run qemu from a non-standard location, "
35692 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35693 "around qemu."
35694 msgstr ""
35695
35696 #. type: textblock
35697 #: ../src/guestfs.pod:952
35698 msgid ""
35699 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35700 "last command in the shell script (so that qemu replaces the shell and "
35701 "becomes the direct child of the libguestfs-using program).  If you don't do "
35702 "this, then the qemu process won't be cleaned up correctly."
35703 msgstr ""
35704
35705 #. type: textblock
35706 #: ../src/guestfs.pod:957
35707 msgid ""
35708 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35709 "source:"
35710 msgstr ""
35711
35712 #. type: verbatim
35713 #: ../src/guestfs.pod:960
35714 #, no-wrap
35715 msgid ""
35716 " #!/bin/sh -\n"
35717 " qemudir=/home/rjones/d/qemu\n"
35718 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
35719 "\"$@\"\n"
35720 "\n"
35721 msgstr ""
35722
35723 #. type: textblock
35724 #: ../src/guestfs.pod:964
35725 msgid ""
35726 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35727 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35728 "example:"
35729 msgstr ""
35730
35731 #. type: verbatim
35732 #: ../src/guestfs.pod:968
35733 #, no-wrap
35734 msgid ""
35735 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35736 "\n"
35737 msgstr ""
35738
35739 #. type: textblock
35740 #: ../src/guestfs.pod:970
35741 msgid ""
35742 "Note that libguestfs also calls qemu with the -help and -version options in "
35743 "order to determine features."
35744 msgstr ""
35745
35746 #. type: textblock
35747 #: ../src/guestfs.pod:973
35748 msgid ""
35749 "Wrappers can also be used to edit the options passed to qemu.  In the "
35750 "following example, the C<-machine ...> option (C<-machine> and the following "
35751 "argument) are removed from the command line and replaced with C<-machine "
35752 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
35753 "right one to remove, putting the remaining options into the C<args> array."
35754 msgstr ""
35755
35756 #. type: verbatim
35757 #: ../src/guestfs.pod:982
35758 #, no-wrap
35759 msgid ""
35760 " i=0\n"
35761 " while [ $# -gt 0 ]; do\n"
35762 "     case \"$1\" in\n"
35763 "     -machine)\n"
35764 "         shift 2;;\n"
35765 "     *)\n"
35766 "         args[i]=\"$1\"\n"
35767 "         (( i++ ))\n"
35768 "         shift ;;\n"
35769 "     esac\n"
35770 " done\n"
35771 " \n"
35772 msgstr ""
35773
35774 #. type: verbatim
35775 #: ../src/guestfs.pod:994
35776 #, no-wrap
35777 msgid ""
35778 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35779 "\n"
35780 msgstr ""
35781
35782 #. type: =head2
35783 #: ../src/guestfs.pod:996
35784 msgid "ATTACHING TO RUNNING DAEMONS"
35785 msgstr ""
35786
35787 #. type: textblock
35788 #: ../src/guestfs.pod:998
35789 msgid ""
35790 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35791 "babies.  Use with caution."
35792 msgstr ""
35793
35794 #. type: textblock
35795 #: ../src/guestfs.pod:1001
35796 msgid ""
35797 "I<Note (2):> This section explains how to attach to a running daemon from a "
35798 "low level perspective.  For most users, simply using virt tools such as "
35799 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35800 msgstr ""
35801
35802 #. type: =head3
35803 #: ../src/guestfs.pod:1005
35804 msgid "Using guestfs_set_attach_method"
35805 msgstr ""
35806
35807 #. type: textblock
35808 #: ../src/guestfs.pod:1007
35809 msgid ""
35810 "By calling L</guestfs_set_attach_method> you can change how the library "
35811 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
35812 "L</ARCHITECTURE> for some background)."
35813 msgstr ""
35814
35815 #. type: textblock
35816 #: ../src/guestfs.pod:1011
35817 msgid ""
35818 "The normal attach method is C<appliance>, where a small appliance is created "
35819 "containing the daemon, and then the library connects to this."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:1014
35824 msgid ""
35825 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35826 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35827 "daemon over the Unix domain socket."
35828 msgstr ""
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:1018
35832 msgid ""
35833 "The normal use for this is to connect to a running virtual machine that "
35834 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35835 "files inside the live virtual machine."
35836 msgstr ""
35837
35838 #. type: =head3
35839 #: ../src/guestfs.pod:1022
35840 msgid "Using guestfs_add_domain with live flag"
35841 msgstr ""
35842
35843 #. type: textblock
35844 #: ../src/guestfs.pod:1024
35845 msgid ""
35846 "L</guestfs_add_domain> provides some help for getting the correct attach "
35847 "method.  If you pass the C<live> option to this function, then (if the "
35848 "virtual machine is running) it will examine the libvirt XML looking for a "
35849 "virtio-serial channel to connect to:"
35850 msgstr ""
35851
35852 #. type: verbatim
35853 #: ../src/guestfs.pod:1030
35854 #, no-wrap
35855 msgid ""
35856 " <domain>\n"
35857 "   ...\n"
35858 "   <devices>\n"
35859 "     ...\n"
35860 "     <channel type='unix'>\n"
35861 "       <source mode='bind' path='/path/to/socket'/>\n"
35862 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35863 "     </channel>\n"
35864 "     ...\n"
35865 "   </devices>\n"
35866 " </domain>\n"
35867 "\n"
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../src/guestfs.pod:1042
35872 msgid ""
35873 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35874 "method to C<unix:/path/to/socket>."
35875 msgstr ""
35876
35877 #. type: textblock
35878 #: ../src/guestfs.pod:1045
35879 msgid ""
35880 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35881 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35882 "to attach to and modify live virtual machines."
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:1049
35887 msgid ""
35888 "The virtual machine needs to have been set up beforehand so that it has the "
35889 "virtio-serial channel and so that guestfsd is running inside it."
35890 msgstr ""
35891
35892 #. type: =head2
35893 #: ../src/guestfs.pod:1053
35894 msgid "ABI GUARANTEE"
35895 msgstr ""
35896
35897 #. type: textblock
35898 #: ../src/guestfs.pod:1055
35899 msgid ""
35900 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35901 "actions as outlined in this section.  Although we will deprecate some "
35902 "actions, for example if they get replaced by newer calls, we will keep the "
35903 "old actions forever.  This allows you the developer to program in confidence "
35904 "against the libguestfs API."
35905 msgstr ""
35906
35907 #. type: =head2
35908 #: ../src/guestfs.pod:1061
35909 msgid "BLOCK DEVICE NAMING"
35910 msgstr ""
35911
35912 #. type: textblock
35913 #: ../src/guestfs.pod:1063
35914 msgid ""
35915 "In the kernel there is now quite a profusion of schemata for naming block "
35916 "devices (in this context, by I<block device> I mean a physical or virtual "
35917 "hard drive).  The original Linux IDE driver used names starting with "
35918 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
35919 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
35920 "replacement for the old IDE driver (particularly for SATA devices) those "
35921 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
35922 "machines with paravirtualized drivers.  This has created several different "
35923 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
35924 "Xen PV disks."
35925 msgstr ""
35926
35927 #. type: textblock
35928 #: ../src/guestfs.pod:1075
35929 msgid ""
35930 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35931 "Linux kernel to access block devices.  We can run a variety of appliances "
35932 "based on a variety of Linux kernels."
35933 msgstr ""
35934
35935 #. type: textblock
35936 #: ../src/guestfs.pod:1079
35937 msgid ""
35938 "This causes a problem for libguestfs because many API calls use device or "
35939 "partition names.  Working scripts and the recipe (example) scripts that we "
35940 "make available over the internet could fail if the naming scheme changes."
35941 msgstr ""
35942
35943 #. type: textblock
35944 #: ../src/guestfs.pod:1084
35945 msgid ""
35946 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
35947 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35948 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35949 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35950 msgstr ""
35951
35952 #. type: textblock
35953 #: ../src/guestfs.pod:1090
35954 msgid ""
35955 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
35956 "L</guestfs_list_partitions> and similar calls return the true names of the "
35957 "devices and partitions as known to the appliance."
35958 msgstr ""
35959
35960 #. type: =head3
35961 #: ../src/guestfs.pod:1095
35962 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35963 msgstr ""
35964
35965 #. type: textblock
35966 #: ../src/guestfs.pod:1097
35967 msgid ""
35968 "Usually this translation is transparent.  However in some (very rare)  cases "
35969 "you may need to know the exact algorithm.  Such cases include where you use "
35970 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
35971 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
35972 "devices."
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../src/guestfs.pod:1103
35977 msgid ""
35978 "The algorithm is applied only to I<parameters> which are known to be either "
35979 "device or partition names.  Return values from functions such as "
35980 "L</guestfs_list_devices> are never changed."
35981 msgstr ""
35982
35983 #. type: textblock
35984 #: ../src/guestfs.pod:1111
35985 msgid "Is the string a parameter which is a device or partition name?"
35986 msgstr ""
35987
35988 #. type: textblock
35989 #: ../src/guestfs.pod:1115
35990 msgid "Does the string begin with C</dev/sd>?"
35991 msgstr ""
35992
35993 #. type: textblock
35994 #: ../src/guestfs.pod:1119
35995 msgid ""
35996 "Does the named device exist? If so, we use that device.  However if I<not> "
35997 "then we continue with this algorithm."
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:1124
36002 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36003 msgstr ""
36004
36005 #. type: textblock
36006 #: ../src/guestfs.pod:1126
36007 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36008 msgstr ""
36009
36010 #. type: textblock
36011 #: ../src/guestfs.pod:1128
36012 msgid "If that named device exists, use it.  If not, continue."
36013 msgstr ""
36014
36015 #. type: textblock
36016 #: ../src/guestfs.pod:1132
36017 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36018 msgstr ""
36019
36020 #. type: textblock
36021 #: ../src/guestfs.pod:1134
36022 msgid "If that named device exists, use it.  If not, return an error."
36023 msgstr ""
36024
36025 #. type: =head3
36026 #: ../src/guestfs.pod:1138
36027 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36028 msgstr ""
36029
36030 #. type: textblock
36031 #: ../src/guestfs.pod:1140
36032 msgid ""
36033 "Although the standard naming scheme and automatic translation is useful for "
36034 "simple programs and guestfish scripts, for larger programs it is best not to "
36035 "rely on this mechanism."
36036 msgstr ""
36037
36038 #. type: textblock
36039 #: ../src/guestfs.pod:1144
36040 msgid ""
36041 "Where possible for maximum future portability programs using libguestfs "
36042 "should use these future-proof techniques:"
36043 msgstr ""
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:1151
36047 msgid ""
36048 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36049 "device names, and then use those names directly."
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../src/guestfs.pod:1154
36054 msgid "Since those device names exist by definition, they will never be translated."
36055 msgstr ""
36056
36057 #. type: textblock
36058 #: ../src/guestfs.pod:1159
36059 msgid ""
36060 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36061 "filesystem labels."
36062 msgstr ""
36063
36064 #. type: textblock
36065 #: ../src/guestfs.pod:1166
36066 msgid ""
36067 "This section discusses security implications of using libguestfs, "
36068 "particularly with untrusted or malicious guests or disk images."
36069 msgstr ""
36070
36071 #. type: =head2
36072 #: ../src/guestfs.pod:1169
36073 msgid "GENERAL SECURITY CONSIDERATIONS"
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:1171
36078 msgid ""
36079 "Be careful with any files or data that you download from a guest (by "
36080 "\"download\" we mean not just the L</guestfs_download> command but any "
36081 "command that reads files, filenames, directories or anything else from a "
36082 "disk image).  An attacker could manipulate the data to fool your program "
36083 "into doing the wrong thing.  Consider cases such as:"
36084 msgstr ""
36085
36086 #. type: textblock
36087 #: ../src/guestfs.pod:1181
36088 msgid "the data (file etc) not being present"
36089 msgstr ""
36090
36091 #. type: textblock
36092 #: ../src/guestfs.pod:1185
36093 msgid "being present but empty"
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:1189
36098 msgid "being much larger than normal"
36099 msgstr ""
36100
36101 #. type: textblock
36102 #: ../src/guestfs.pod:1193
36103 msgid "containing arbitrary 8 bit data"
36104 msgstr ""
36105
36106 #. type: textblock
36107 #: ../src/guestfs.pod:1197
36108 msgid "being in an unexpected character encoding"
36109 msgstr ""
36110
36111 #. type: textblock
36112 #: ../src/guestfs.pod:1201
36113 msgid "containing homoglyphs."
36114 msgstr ""
36115
36116 #. type: =head2
36117 #: ../src/guestfs.pod:1205
36118 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36119 msgstr ""
36120
36121 #. type: textblock
36122 #: ../src/guestfs.pod:1207
36123 msgid ""
36124 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36125 "(VFS) module can sometimes be escalated into exploits by deliberately "
36126 "creating a malicious, malformed filesystem.  These exploits are very severe "
36127 "for two reasons.  Firstly there are very many filesystem drivers in the "
36128 "kernel, and many of them are infrequently used and not much developer "
36129 "attention has been paid to the code.  Linux userspace helps potential "
36130 "crackers by detecting the filesystem type and automatically choosing the "
36131 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36132 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36133 "exploit (worse in some ways), giving immediate and total access to the "
36134 "system right down to the hardware level."
36135 msgstr ""
36136
36137 #. type: textblock
36138 #: ../src/guestfs.pod:1220
36139 msgid ""
36140 "That explains why you should never mount a filesystem from an untrusted "
36141 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36142 "inside a qemu virtual machine, usually running as a non-root user.  The "
36143 "attacker would need to write a filesystem which first exploited the kernel, "
36144 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36145 "the libguestfs protocol, and finally to be as serious as the host kernel "
36146 "exploit it would need to escalate its privileges to root.  This multi-step "
36147 "escalation, performed by a static piece of data, is thought to be extremely "
36148 "hard to do, although we never say 'never' about security issues."
36149 msgstr ""
36150
36151 #. type: textblock
36152 #: ../src/guestfs.pod:1231
36153 msgid ""
36154 "In any case callers can reduce the attack surface by forcing the filesystem "
36155 "type when mounting (use L</guestfs_mount_vfs>)."
36156 msgstr ""
36157
36158 #. type: =head2
36159 #: ../src/guestfs.pod:1234
36160 msgid "PROTOCOL SECURITY"
36161 msgstr ""
36162
36163 #. type: textblock
36164 #: ../src/guestfs.pod:1236
36165 msgid ""
36166 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36167 "defined upper message size.  However a program that uses libguestfs must "
36168 "also take care - for example you can write a program that downloads a binary "
36169 "from a disk image and executes it locally, and no amount of protocol "
36170 "security will save you from the consequences."
36171 msgstr ""
36172
36173 #. type: =head2
36174 #: ../src/guestfs.pod:1242
36175 msgid "INSPECTION SECURITY"
36176 msgstr ""
36177
36178 #. type: textblock
36179 #: ../src/guestfs.pod:1244
36180 msgid ""
36181 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36182 "directly from the guest, and these could contain any 8 bit data.  Callers "
36183 "should be careful to escape these before printing them to a structured file "
36184 "(for example, use HTML escaping if creating a web page)."
36185 msgstr ""
36186
36187 #. type: textblock
36188 #: ../src/guestfs.pod:1250
36189 msgid ""
36190 "Guest configuration may be altered in unusual ways by the administrator of "
36191 "the virtual machine, and may not reflect reality (particularly for untrusted "
36192 "or actively malicious guests).  For example we parse the hostname from "
36193 "configuration files like C</etc/sysconfig/network> that we find in the "
36194 "guest, but the guest administrator can easily manipulate these files to "
36195 "provide the wrong hostname."
36196 msgstr ""
36197
36198 #. type: textblock
36199 #: ../src/guestfs.pod:1258
36200 msgid ""
36201 "The inspection API parses guest configuration using two external libraries: "
36202 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36203 "designed to be robust in the face of malicious data, although denial of "
36204 "service attacks are still possible, for example with oversized configuration "
36205 "files."
36206 msgstr ""
36207
36208 #. type: =head2
36209 #: ../src/guestfs.pod:1264
36210 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:1266
36215 msgid ""
36216 "Be very cautious about running commands from the guest.  By running a "
36217 "command in the guest, you are giving CPU time to a binary that you do not "
36218 "control, under the same user account as the library, albeit wrapped in qemu "
36219 "virtualization.  More information and alternatives can be found in the "
36220 "section L</RUNNING COMMANDS>."
36221 msgstr ""
36222
36223 #. type: =head2
36224 #: ../src/guestfs.pod:1272
36225 msgid "CVE-2010-3851"
36226 msgstr ""
36227
36228 #. type: textblock
36229 #: ../src/guestfs.pod:1274
36230 msgid "https://bugzilla.redhat.com/642934"
36231 msgstr ""
36232
36233 #. type: textblock
36234 #: ../src/guestfs.pod:1276
36235 msgid ""
36236 "This security bug concerns the automatic disk format detection that qemu "
36237 "does on disk images."
36238 msgstr ""
36239
36240 #. type: textblock
36241 #: ../src/guestfs.pod:1279
36242 msgid ""
36243 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36244 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36245 "for one of the known headers, and if none is found then assuming the disk "
36246 "image must be raw."
36247 msgstr ""
36248
36249 #. type: textblock
36250 #: ../src/guestfs.pod:1284
36251 msgid ""
36252 "This allows a guest which has been given a raw disk image to write some "
36253 "other header.  At next boot (or when the disk image is accessed by "
36254 "libguestfs) qemu would do autodetection and think the disk image format was, "
36255 "say, qcow2 based on the header written by the guest."
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../src/guestfs.pod:1289
36260 msgid ""
36261 "This in itself would not be a problem, but qcow2 offers many features, one "
36262 "of which is to allow a disk image to refer to another image (called the "
36263 "\"backing disk\").  It does this by placing the path to the backing disk "
36264 "into the qcow2 header.  This path is not validated and could point to any "
36265 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36266 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36267 "control of the attacker."
36268 msgstr ""
36269
36270 #. type: textblock
36271 #: ../src/guestfs.pod:1297
36272 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
36273 msgstr ""
36274
36275 #. type: textblock
36276 #: ../src/guestfs.pod:1304
36277 msgid "You have enabled the network or have opened the disk in write mode."
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../src/guestfs.pod:1308
36282 msgid ""
36283 "You are also running untrusted code from the guest (see L</RUNNING "
36284 "COMMANDS>)."
36285 msgstr ""
36286
36287 #. type: textblock
36288 #: ../src/guestfs.pod:1313
36289 msgid ""
36290 "The way to avoid this is to specify the expected disk format when adding "
36291 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36292 "should always do this if the disk is raw format, and it's a good idea for "
36293 "other cases too."
36294 msgstr ""
36295
36296 #. type: textblock
36297 #: ../src/guestfs.pod:1318
36298 msgid ""
36299 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36300 "format is fetched from libvirt and passed through."
36301 msgstr ""
36302
36303 #. type: textblock
36304 #: ../src/guestfs.pod:1321
36305 msgid ""
36306 "For libguestfs tools, use the I<--format> command line parameter as "
36307 "appropriate."
36308 msgstr ""
36309
36310 #. type: =head1
36311 #: ../src/guestfs.pod:1324
36312 msgid "CONNECTION MANAGEMENT"
36313 msgstr ""
36314
36315 #. type: =head2
36316 #: ../src/guestfs.pod:1326
36317 msgid "guestfs_h *"
36318 msgstr ""
36319
36320 #. type: textblock
36321 #: ../src/guestfs.pod:1328
36322 msgid ""
36323 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36324 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36325 "handle and release all resources used."
36326 msgstr ""
36327
36328 #. type: textblock
36329 #: ../src/guestfs.pod:1332
36330 msgid ""
36331 "For information on using multiple handles and threads, see the section "
36332 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36333 msgstr ""
36334
36335 #. type: =head2
36336 #: ../src/guestfs.pod:1335
36337 msgid "guestfs_create"
36338 msgstr ""
36339
36340 #. type: verbatim
36341 #: ../src/guestfs.pod:1337
36342 #, no-wrap
36343 msgid ""
36344 " guestfs_h *guestfs_create (void);\n"
36345 "\n"
36346 msgstr ""
36347
36348 #. type: textblock
36349 #: ../src/guestfs.pod:1339
36350 msgid "Create a connection handle."
36351 msgstr ""
36352
36353 #. type: textblock
36354 #: ../src/guestfs.pod:1341
36355 msgid ""
36356 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36357 "NULL."
36358 msgstr ""
36359
36360 #. type: textblock
36361 #: ../src/guestfs.pod:1344
36362 msgid ""
36363 "You have to \"configure\" the handle after creating it.  This includes "
36364 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36365 "handle at least once."
36366 msgstr ""
36367
36368 #. type: textblock
36369 #: ../src/guestfs.pod:1348
36370 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36371 msgstr ""
36372
36373 #. type: textblock
36374 #: ../src/guestfs.pod:1350
36375 msgid ""
36376 "You may also want to configure error handling for the handle.  See the "
36377 "L</ERROR HANDLING> section below."
36378 msgstr ""
36379
36380 #. type: =head2
36381 #: ../src/guestfs.pod:1353
36382 msgid "guestfs_close"
36383 msgstr ""
36384
36385 #. type: verbatim
36386 #: ../src/guestfs.pod:1355
36387 #, no-wrap
36388 msgid ""
36389 " void guestfs_close (guestfs_h *g);\n"
36390 "\n"
36391 msgstr ""
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:1357
36395 msgid "This closes the connection handle and frees up all resources used."
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:1359
36400 msgid ""
36401 "If autosync was set on the handle and the handle was launched, then this "
36402 "implicitly calls various functions to unmount filesystems and sync the "
36403 "disk.  See L</guestfs_set_autosync> for more details."
36404 msgstr ""
36405
36406 #. type: textblock
36407 #: ../src/guestfs.pod:1363
36408 msgid "If a close callback was set on the handle, then it is called."
36409 msgstr ""
36410
36411 #. type: =head1
36412 #: ../src/guestfs.pod:1365
36413 msgid "ERROR HANDLING"
36414 msgstr ""
36415
36416 #. type: textblock
36417 #: ../src/guestfs.pod:1367
36418 msgid ""
36419 "API functions can return errors.  For example, almost all functions that "
36420 "return C<int> will return C<-1> to indicate an error."
36421 msgstr ""
36422
36423 #. type: textblock
36424 #: ../src/guestfs.pod:1370
36425 msgid ""
36426 "Additional information is available for errors: an error message string and "
36427 "optionally an error number (errno) if the thing that failed was a system "
36428 "call."
36429 msgstr ""
36430
36431 #. type: textblock
36432 #: ../src/guestfs.pod:1374
36433 msgid ""
36434 "You can get at the additional information about the last error on the handle "
36435 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36436 "up an error handler with L</guestfs_set_error_handler>."
36437 msgstr ""
36438
36439 #. type: textblock
36440 #: ../src/guestfs.pod:1379
36441 msgid ""
36442 "When the handle is created, a default error handler is installed which "
36443 "prints the error message string to C<stderr>.  For small short-running "
36444 "command line programs it is sufficient to do:"
36445 msgstr ""
36446
36447 #. type: verbatim
36448 #: ../src/guestfs.pod:1383
36449 #, no-wrap
36450 msgid ""
36451 " if (guestfs_launch (g) == -1)\n"
36452 "   exit (EXIT_FAILURE);\n"
36453 "\n"
36454 msgstr ""
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:1386
36458 msgid ""
36459 "since the default error handler will ensure that an error message has been "
36460 "printed to C<stderr> before the program exits."
36461 msgstr ""
36462
36463 #. type: textblock
36464 #: ../src/guestfs.pod:1389
36465 msgid ""
36466 "For other programs the caller will almost certainly want to install an "
36467 "alternate error handler or do error handling in-line like this:"
36468 msgstr ""
36469
36470 #. type: verbatim
36471 #: ../src/guestfs.pod:1392
36472 #, no-wrap
36473 msgid ""
36474 " /* This disables the default behaviour of printing errors\n"
36475 "    on stderr. */\n"
36476 " guestfs_set_error_handler (g, NULL, NULL);\n"
36477 " \n"
36478 msgstr ""
36479
36480 #. type: verbatim
36481 #: ../src/guestfs.pod:1396
36482 #, no-wrap
36483 msgid ""
36484 " if (guestfs_launch (g) == -1) {\n"
36485 "   /* Examine the error message and print it etc. */\n"
36486 "   char *msg = guestfs_last_error (g);\n"
36487 "   int errnum = guestfs_last_errno (g);\n"
36488 "   fprintf (stderr, \"%s\", msg);\n"
36489 "   if (errnum != 0)\n"
36490 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36491 "   fprintf (stderr, \"\\n\");\n"
36492 "   /* ... */\n"
36493 " }\n"
36494 "\n"
36495 msgstr ""
36496
36497 #. type: textblock
36498 #: ../src/guestfs.pod:1407
36499 msgid ""
36500 "Out of memory errors are handled differently.  The default action is to call "
36501 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
36502 "L</guestfs_set_out_of_memory_handler>."
36503 msgstr ""
36504
36505 #. type: textblock
36506 #: ../src/guestfs.pod:1411
36507 msgid ""
36508 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36509 "because there is no handle if this happens there is no way to get additional "
36510 "error information.  However L</guestfs_create> is supposed to be a "
36511 "lightweight operation which can only fail because of insufficient memory (it "
36512 "returns NULL in this case)."
36513 msgstr ""
36514
36515 #. type: =head2
36516 #: ../src/guestfs.pod:1417
36517 msgid "guestfs_last_error"
36518 msgstr ""
36519
36520 #. type: verbatim
36521 #: ../src/guestfs.pod:1419
36522 #, no-wrap
36523 msgid ""
36524 " const char *guestfs_last_error (guestfs_h *g);\n"
36525 "\n"
36526 msgstr ""
36527
36528 #. type: textblock
36529 #: ../src/guestfs.pod:1421
36530 msgid ""
36531 "This returns the last error message that happened on C<g>.  If there has not "
36532 "been an error since the handle was created, then this returns C<NULL>."
36533 msgstr ""
36534
36535 #. type: textblock
36536 #: ../src/guestfs.pod:1425
36537 msgid ""
36538 "The lifetime of the returned string is until the next error occurs, or "
36539 "L</guestfs_close> is called."
36540 msgstr ""
36541
36542 #. type: =head2
36543 #: ../src/guestfs.pod:1428
36544 msgid "guestfs_last_errno"
36545 msgstr ""
36546
36547 #. type: verbatim
36548 #: ../src/guestfs.pod:1430
36549 #, no-wrap
36550 msgid ""
36551 " int guestfs_last_errno (guestfs_h *g);\n"
36552 "\n"
36553 msgstr ""
36554
36555 #. type: textblock
36556 #: ../src/guestfs.pod:1432
36557 msgid "This returns the last error number (errno) that happened on C<g>."
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:1434
36562 msgid "If successful, an errno integer not equal to zero is returned."
36563 msgstr ""
36564
36565 #. type: textblock
36566 #: ../src/guestfs.pod:1436
36567 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
36568 msgstr ""
36569
36570 #. type: textblock
36571 #: ../src/guestfs.pod:1443
36572 msgid "There has not been any error on the handle."
36573 msgstr ""
36574
36575 #. type: textblock
36576 #: ../src/guestfs.pod:1447
36577 msgid ""
36578 "There has been an error but the errno was meaningless.  This corresponds to "
36579 "the case where the error did not come from a failed system call, but for "
36580 "some other reason."
36581 msgstr ""
36582
36583 #. type: textblock
36584 #: ../src/guestfs.pod:1453
36585 msgid ""
36586 "There was an error from a failed system call, but for some reason the errno "
36587 "was not captured and returned.  This usually indicates a bug in libguestfs."
36588 msgstr ""
36589
36590 #. type: textblock
36591 #: ../src/guestfs.pod:1459
36592 msgid ""
36593 "Libguestfs tries to convert the errno from inside the applicance into a "
36594 "corresponding errno for the caller (not entirely trivial: the appliance "
36595 "might be running a completely different operating system from the library "
36596 "and error numbers are not standardized across Un*xen).  If this could not be "
36597 "done, then the error is translated to C<EINVAL>.  In practice this should "
36598 "only happen in very rare circumstances."
36599 msgstr ""
36600
36601 #. type: =head2
36602 #: ../src/guestfs.pod:1467
36603 msgid "guestfs_set_error_handler"
36604 msgstr ""
36605
36606 #. type: verbatim
36607 #: ../src/guestfs.pod:1469
36608 #, no-wrap
36609 msgid ""
36610 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36611 "                                           void *opaque,\n"
36612 "                                           const char *msg);\n"
36613 " void guestfs_set_error_handler (guestfs_h *g,\n"
36614 "                                 guestfs_error_handler_cb cb,\n"
36615 "                                 void *opaque);\n"
36616 "\n"
36617 msgstr ""
36618
36619 #. type: textblock
36620 #: ../src/guestfs.pod:1476
36621 msgid ""
36622 "The callback C<cb> will be called if there is an error.  The parameters "
36623 "passed to the callback are an opaque data pointer and the error message "
36624 "string."
36625 msgstr ""
36626
36627 #. type: textblock
36628 #: ../src/guestfs.pod:1480
36629 msgid ""
36630 "C<errno> is not passed to the callback.  To get that the callback must call "
36631 "L</guestfs_last_errno>."
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:1483
36636 msgid ""
36637 "Note that the message string C<msg> is freed as soon as the callback "
36638 "function returns, so if you want to stash it somewhere you must make your "
36639 "own copy."
36640 msgstr ""
36641
36642 #. type: textblock
36643 #: ../src/guestfs.pod:1487
36644 msgid "The default handler prints messages on C<stderr>."
36645 msgstr ""
36646
36647 #. type: textblock
36648 #: ../src/guestfs.pod:1489
36649 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36650 msgstr ""
36651
36652 #. type: =head2
36653 #: ../src/guestfs.pod:1491
36654 msgid "guestfs_get_error_handler"
36655 msgstr ""
36656
36657 #. type: verbatim
36658 #: ../src/guestfs.pod:1493
36659 #, no-wrap
36660 msgid ""
36661 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36662 "                                                     void **opaque_rtn);\n"
36663 "\n"
36664 msgstr ""
36665
36666 #. type: textblock
36667 #: ../src/guestfs.pod:1496
36668 msgid "Returns the current error handler callback."
36669 msgstr ""
36670
36671 #. type: =head2
36672 #: ../src/guestfs.pod:1498
36673 msgid "guestfs_set_out_of_memory_handler"
36674 msgstr ""
36675
36676 #. type: verbatim
36677 #: ../src/guestfs.pod:1500
36678 #, no-wrap
36679 msgid ""
36680 " typedef void (*guestfs_abort_cb) (void);\n"
36681 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36682 "                                         guestfs_abort_cb);\n"
36683 "\n"
36684 msgstr ""
36685
36686 #. type: textblock
36687 #: ../src/guestfs.pod:1504
36688 msgid ""
36689 "The callback C<cb> will be called if there is an out of memory situation.  "
36690 "I<Note this callback must not return>."
36691 msgstr ""
36692
36693 #. type: textblock
36694 #: ../src/guestfs.pod:1507
36695 msgid "The default is to call L<abort(3)>."
36696 msgstr ""
36697
36698 #. type: textblock
36699 #: ../src/guestfs.pod:1509
36700 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36701 msgstr ""
36702
36703 #. type: =head2
36704 #: ../src/guestfs.pod:1512
36705 msgid "guestfs_get_out_of_memory_handler"
36706 msgstr ""
36707
36708 #. type: verbatim
36709 #: ../src/guestfs.pod:1514
36710 #, no-wrap
36711 msgid ""
36712 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36713 "\n"
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:1516
36718 msgid "This returns the current out of memory handler."
36719 msgstr ""
36720
36721 #. type: =head1
36722 #: ../src/guestfs.pod:1518
36723 msgid "API CALLS"
36724 msgstr ""
36725
36726 #. type: =head1
36727 #: ../src/guestfs.pod:1522
36728 msgid "STRUCTURES"
36729 msgstr ""
36730
36731 #. type: textblock
36732 #: ../src/guestfs.pod:1524
36733 msgid "@STRUCTS@"
36734 msgstr ""
36735
36736 #. type: =head1
36737 #: ../src/guestfs.pod:1526
36738 msgid "AVAILABILITY"
36739 msgstr ""
36740
36741 #. type: =head2
36742 #: ../src/guestfs.pod:1528
36743 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36744 msgstr ""
36745
36746 #. type: textblock
36747 #: ../src/guestfs.pod:1530
36748 msgid ""
36749 "Using L</guestfs_available> you can test availability of the following "
36750 "groups of functions.  This test queries the appliance to see if the "
36751 "appliance you are currently using supports the functionality."
36752 msgstr ""
36753
36754 #. type: textblock
36755 #: ../src/guestfs.pod:1535
36756 msgid "@AVAILABILITY@"
36757 msgstr ""
36758
36759 #. type: =head2
36760 #: ../src/guestfs.pod:1537
36761 msgid "GUESTFISH supported COMMAND"
36762 msgstr ""
36763
36764 #. type: textblock
36765 #: ../src/guestfs.pod:1539
36766 msgid ""
36767 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36768 "prints out the available groups and whether they are supported by this build "
36769 "of libguestfs.  Note however that you have to do C<run> first."
36770 msgstr ""
36771
36772 #. type: =head2
36773 #: ../src/guestfs.pod:1544
36774 msgid "SINGLE CALLS AT COMPILE TIME"
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../src/guestfs.pod:1546
36779 msgid ""
36780 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36781 "function, such as:"
36782 msgstr ""
36783
36784 #. type: verbatim
36785 #: ../src/guestfs.pod:1549
36786 #, no-wrap
36787 msgid ""
36788 " #define LIBGUESTFS_HAVE_DD 1\n"
36789 "\n"
36790 msgstr ""
36791
36792 #. type: textblock
36793 #: ../src/guestfs.pod:1551
36794 msgid "if L</guestfs_dd> is available."
36795 msgstr ""
36796
36797 #. type: textblock
36798 #: ../src/guestfs.pod:1553
36799 msgid ""
36800 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36801 "function is available at compile time, we recommended using build tools such "
36802 "as autoconf or cmake.  For example in autotools you could use:"
36803 msgstr ""
36804
36805 #. type: verbatim
36806 #: ../src/guestfs.pod:1558
36807 #, no-wrap
36808 msgid ""
36809 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36810 " AC_CHECK_FUNCS([guestfs_dd])\n"
36811 "\n"
36812 msgstr ""
36813
36814 #. type: textblock
36815 #: ../src/guestfs.pod:1561
36816 msgid ""
36817 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36818 "in your program."
36819 msgstr ""
36820
36821 #. type: =head2
36822 #: ../src/guestfs.pod:1564
36823 msgid "SINGLE CALLS AT RUN TIME"
36824 msgstr ""
36825
36826 #. type: textblock
36827 #: ../src/guestfs.pod:1566
36828 msgid ""
36829 "Testing at compile time doesn't guarantee that a function really exists in "
36830 "the library.  The reason is that you might be dynamically linked against a "
36831 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36832 "This situation unfortunately results in a segmentation fault, which is a "
36833 "shortcoming of the C dynamic linking system itself."
36834 msgstr ""
36835
36836 #. type: textblock
36837 #: ../src/guestfs.pod:1573
36838 msgid ""
36839 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36840 "in this example program (note that you still need the compile time check as "
36841 "well):"
36842 msgstr ""
36843
36844 #. type: verbatim
36845 #: ../src/guestfs.pod:1577
36846 #, no-wrap
36847 msgid ""
36848 " #include <stdio.h>\n"
36849 " #include <stdlib.h>\n"
36850 " #include <unistd.h>\n"
36851 " #include <dlfcn.h>\n"
36852 " #include <guestfs.h>\n"
36853 " \n"
36854 msgstr ""
36855
36856 #. type: verbatim
36857 #: ../src/guestfs.pod:1583
36858 #, no-wrap
36859 msgid ""
36860 " main ()\n"
36861 " {\n"
36862 " #ifdef LIBGUESTFS_HAVE_DD\n"
36863 "   void *dl;\n"
36864 "   int has_function;\n"
36865 " \n"
36866 msgstr ""
36867
36868 #. type: verbatim
36869 #: ../src/guestfs.pod:1589
36870 #, no-wrap
36871 msgid ""
36872 "   /* Test if the function guestfs_dd is really available. */\n"
36873 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36874 "   if (!dl) {\n"
36875 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36876 "     exit (EXIT_FAILURE);\n"
36877 "   }\n"
36878 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36879 "   dlclose (dl);\n"
36880 " \n"
36881 msgstr ""
36882
36883 #. type: verbatim
36884 #: ../src/guestfs.pod:1598
36885 #, no-wrap
36886 msgid ""
36887 "   if (!has_function)\n"
36888 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36889 "   else {\n"
36890 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36891 "     /* Now it's safe to call\n"
36892 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36893 "     */\n"
36894 "   }\n"
36895 " #else\n"
36896 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36897 " #endif\n"
36898 "  }\n"
36899 "\n"
36900 msgstr ""
36901
36902 #. type: textblock
36903 #: ../src/guestfs.pod:1611
36904 msgid ""
36905 "You may think the above is an awful lot of hassle, and it is.  There are "
36906 "other ways outside of the C linking system to ensure that this kind of "
36907 "incompatibility never arises, such as using package versioning:"
36908 msgstr ""
36909
36910 #. type: verbatim
36911 #: ../src/guestfs.pod:1616
36912 #, no-wrap
36913 msgid ""
36914 " Requires: libguestfs >= 1.0.80\n"
36915 "\n"
36916 msgstr ""
36917
36918 #. type: =head1
36919 #: ../src/guestfs.pod:1618
36920 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36921 msgstr ""
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:1620
36925 msgid ""
36926 "A recent feature of the API is the introduction of calls which take optional "
36927 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
36928 "takes variable arguments (ie. C<...>), as in this example:"
36929 msgstr ""
36930
36931 #. type: verbatim
36932 #: ../src/guestfs.pod:1625
36933 #, no-wrap
36934 msgid ""
36935 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36936 "\n"
36937 msgstr ""
36938
36939 #. type: textblock
36940 #: ../src/guestfs.pod:1627
36941 msgid ""
36942 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
36943 "call with no optional arguments specified:"
36944 msgstr ""
36945
36946 #. type: verbatim
36947 #: ../src/guestfs.pod:1630
36948 #, no-wrap
36949 msgid ""
36950 " guestfs_add_drive_opts (g, filename, -1);\n"
36951 "\n"
36952 msgstr ""
36953
36954 #. type: textblock
36955 #: ../src/guestfs.pod:1632
36956 msgid "With a single optional argument:"
36957 msgstr ""
36958
36959 #. type: verbatim
36960 #: ../src/guestfs.pod:1634
36961 #, no-wrap
36962 msgid ""
36963 " guestfs_add_drive_opts (g, filename,\n"
36964 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36965 "                         -1);\n"
36966 "\n"
36967 msgstr ""
36968
36969 #. type: textblock
36970 #: ../src/guestfs.pod:1638
36971 msgid "With two:"
36972 msgstr ""
36973
36974 #. type: verbatim
36975 #: ../src/guestfs.pod:1640
36976 #, no-wrap
36977 msgid ""
36978 " guestfs_add_drive_opts (g, filename,\n"
36979 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36980 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36981 "                         -1);\n"
36982 "\n"
36983 msgstr ""
36984
36985 #. type: textblock
36986 #: ../src/guestfs.pod:1645
36987 msgid ""
36988 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36989 "happen!"
36990 msgstr ""
36991
36992 #. type: =head2
36993 #: ../src/guestfs.pod:1648
36994 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36995 msgstr ""
36996
36997 #. type: textblock
36998 #: ../src/guestfs.pod:1650
36999 msgid ""
37000 "The second variant has the same name with the suffix C<_va>, which works the "
37001 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37002 "example function, this is declared:"
37003 msgstr ""
37004
37005 #. type: verbatim
37006 #: ../src/guestfs.pod:1654
37007 #, no-wrap
37008 msgid ""
37009 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37010 "                                va_list args);\n"
37011 "\n"
37012 msgstr ""
37013
37014 #. type: =head2
37015 #: ../src/guestfs.pod:1657
37016 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:1659
37021 msgid ""
37022 "The third variant is useful where you need to construct these calls.  You "
37023 "pass in a structure where you fill in the optional fields.  The structure "
37024 "has a bitmask as the first element which you must set to indicate which "
37025 "fields you have filled in.  For our example function the structure and call "
37026 "are declared:"
37027 msgstr ""
37028
37029 #. type: verbatim
37030 #: ../src/guestfs.pod:1665
37031 #, no-wrap
37032 msgid ""
37033 " struct guestfs_add_drive_opts_argv {\n"
37034 "   uint64_t bitmask;\n"
37035 "   int readonly;\n"
37036 "   const char *format;\n"
37037 "   /* ... */\n"
37038 " };\n"
37039 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37040 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37041 "\n"
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:1674
37046 msgid "You could call it like this:"
37047 msgstr ""
37048
37049 #. type: verbatim
37050 #: ../src/guestfs.pod:1676
37051 #, no-wrap
37052 msgid ""
37053 " struct guestfs_add_drive_opts_argv optargs = {\n"
37054 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37055 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37056 "   .readonly = 1,\n"
37057 "   .format = \"qcow2\"\n"
37058 " };\n"
37059 " \n"
37060 msgstr ""
37061
37062 #. type: verbatim
37063 #: ../src/guestfs.pod:1683
37064 #, no-wrap
37065 msgid ""
37066 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37067 "\n"
37068 msgstr ""
37069
37070 #. type: textblock
37071 #: ../src/guestfs.pod:1691
37072 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:1696
37077 msgid "You do not need to fill in all fields of the structure."
37078 msgstr ""
37079
37080 #. type: textblock
37081 #: ../src/guestfs.pod:1700
37082 msgid ""
37083 "There must be a one-to-one correspondence between fields of the structure "
37084 "that are filled in, and bits set in the bitmask."
37085 msgstr ""
37086
37087 #. type: =head2
37088 #: ../src/guestfs.pod:1705
37089 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37090 msgstr ""
37091
37092 #. type: textblock
37093 #: ../src/guestfs.pod:1707
37094 msgid ""
37095 "In other languages, optional arguments are expressed in the way that is "
37096 "natural for that language.  We refer you to the language-specific "
37097 "documentation for more details on that."
37098 msgstr ""
37099
37100 #. type: textblock
37101 #: ../src/guestfs.pod:1711
37102 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37103 msgstr ""
37104
37105 #. type: =head2
37106 #: ../src/guestfs.pod:1713
37107 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37108 msgstr ""
37109
37110 #. type: textblock
37111 #: ../src/guestfs.pod:1715
37112 msgid ""
37113 "B<Note:> This section documents the generic event mechanism introduced in "
37114 "libguestfs 1.10, which you should use in new code if possible.  The old "
37115 "functions C<guestfs_set_log_message_callback>, "
37116 "C<guestfs_set_subprocess_quit_callback>, "
37117 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37118 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37119 "page.  Because of the ABI guarantee, the old functions continue to work."
37120 msgstr ""
37121
37122 #. type: textblock
37123 #: ../src/guestfs.pod:1724
37124 msgid ""
37125 "Handles generate events when certain things happen, such as log messages "
37126 "being generated, progress messages during long-running operations, or the "
37127 "handle being closed.  The API calls described below let you register a "
37128 "callback to be called when events happen.  You can register multiple "
37129 "callbacks (for the same, different or overlapping sets of events), and "
37130 "individually remove callbacks.  If callbacks are not removed, then they "
37131 "remain in force until the handle is closed."
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:1732
37136 msgid ""
37137 "In the current implementation, events are only generated synchronously: that "
37138 "means that events (and hence callbacks) can only happen while you are in the "
37139 "middle of making another libguestfs call.  The callback is called in the "
37140 "same thread."
37141 msgstr ""
37142
37143 #. type: textblock
37144 #: ../src/guestfs.pod:1737
37145 msgid ""
37146 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37147 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37148 msgstr ""
37149
37150 #. type: =head3
37151 #: ../src/guestfs.pod:1741
37152 msgid "CLASSES OF EVENTS"
37153 msgstr ""
37154
37155 #. type: =item
37156 #: ../src/guestfs.pod:1745
37157 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37158 msgstr ""
37159
37160 #. type: textblock
37161 #: ../src/guestfs.pod:1748
37162 msgid ""
37163 "The callback function will be called while the handle is being closed "
37164 "(synchronously from L</guestfs_close>)."
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../src/guestfs.pod:1751
37169 msgid ""
37170 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37171 "handles that are open when the program exits.  This means that this callback "
37172 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37173 "problems in higher-level languages (eg. if your HLL interpreter has already "
37174 "been cleaned up by the time this is called, and if your callback then jumps "
37175 "into some HLL function)."
37176 msgstr ""
37177
37178 #. type: textblock
37179 #: ../src/guestfs.pod:1758
37180 msgid ""
37181 "If no callback is registered: the handle is closed without any callback "
37182 "being invoked."
37183 msgstr ""
37184
37185 #. type: =item
37186 #: ../src/guestfs.pod:1761
37187 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37188 msgstr ""
37189
37190 #. type: textblock
37191 #: ../src/guestfs.pod:1764
37192 msgid ""
37193 "The callback function will be called when the child process quits, either "
37194 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37195 "corresponds to a transition from any state to the CONFIG state)."
37196 msgstr ""
37197
37198 #. type: textblock
37199 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37200 msgid "If no callback is registered: the event is ignored."
37201 msgstr ""
37202
37203 #. type: =item
37204 #: ../src/guestfs.pod:1770
37205 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37206 msgstr ""
37207
37208 #. type: textblock
37209 #: ../src/guestfs.pod:1773
37210 msgid ""
37211 "The callback function will be called when the child process becomes ready "
37212 "first time after it has been launched.  (This corresponds to a transition "
37213 "from LAUNCHING to the READY state)."
37214 msgstr ""
37215
37216 #. type: =item
37217 #: ../src/guestfs.pod:1779
37218 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37219 msgstr ""
37220
37221 #. type: textblock
37222 #: ../src/guestfs.pod:1782
37223 msgid ""
37224 "Some long-running operations can generate progress messages.  If this "
37225 "callback is registered, then it will be called each time a progress message "
37226 "is generated (usually two seconds after the operation started, and three "
37227 "times per second thereafter until it completes, although the frequency may "
37228 "change in future versions)."
37229 msgstr ""
37230
37231 #. type: textblock
37232 #: ../src/guestfs.pod:1788
37233 msgid ""
37234 "The callback receives in the payload four unsigned 64 bit numbers which are "
37235 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:1791
37240 msgid ""
37241 "The units of C<total> are not defined, although for some operations C<total> "
37242 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37243 "or megabytes), and C<position> may be the portion which has been "
37244 "transferred."
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:1796
37249 msgid "The only defined and stable parts of the API are:"
37250 msgstr ""
37251
37252 #. type: textblock
37253 #: ../src/guestfs.pod:1802
37254 msgid ""
37255 "The callback can display to the user some type of progress bar or indicator "
37256 "which shows the ratio of C<position>:C<total>."
37257 msgstr ""
37258
37259 #. type: textblock
37260 #: ../src/guestfs.pod:1807
37261 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37262 msgstr ""
37263
37264 #. type: textblock
37265 #: ../src/guestfs.pod:1811
37266 msgid ""
37267 "If any progress notification is sent during a call, then a final progress "
37268 "notification is always sent when C<position> = C<total> (I<unless> the call "
37269 "fails with an error)."
37270 msgstr ""
37271
37272 #. type: textblock
37273 #: ../src/guestfs.pod:1815
37274 msgid ""
37275 "This is to simplify caller code, so callers can easily set the progress "
37276 "indicator to \"100%\" at the end of the operation, without requiring special "
37277 "code to detect this case."
37278 msgstr ""
37279
37280 #. type: textblock
37281 #: ../src/guestfs.pod:1821
37282 msgid ""
37283 "For some calls we are unable to estimate the progress of the call, but we "
37284 "can still generate progress messages to indicate activity.  This is known as "
37285 "\"pulse mode\", and is directly supported by certain progress bar "
37286 "implementations (eg. GtkProgressBar)."
37287 msgstr ""
37288
37289 #. type: textblock
37290 #: ../src/guestfs.pod:1826
37291 msgid ""
37292 "For these calls, zero or more progress messages are generated with "
37293 "C<position = 0> and C<total = 1>, followed by a final message with "
37294 "C<position = total = 1>."
37295 msgstr ""
37296
37297 #. type: textblock
37298 #: ../src/guestfs.pod:1830
37299 msgid ""
37300 "As noted above, if the call fails with an error then the final message may "
37301 "not be generated."
37302 msgstr ""
37303
37304 #. type: textblock
37305 #: ../src/guestfs.pod:1835
37306 msgid ""
37307 "The callback also receives the procedure number (C<proc_nr>) and serial "
37308 "number (C<serial>) of the call.  These are only useful for debugging "
37309 "protocol issues, and the callback can normally ignore them.  The callback "
37310 "may want to print these numbers in error messages or debugging messages."
37311 msgstr ""
37312
37313 #. type: textblock
37314 #: ../src/guestfs.pod:1841
37315 msgid "If no callback is registered: progress messages are discarded."
37316 msgstr ""
37317
37318 #. type: =item
37319 #: ../src/guestfs.pod:1843
37320 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../src/guestfs.pod:1846
37325 msgid ""
37326 "The callback function is called whenever a log message is generated by qemu, "
37327 "the appliance kernel, guestfsd (daemon), or utility programs."
37328 msgstr ""
37329
37330 #. type: textblock
37331 #: ../src/guestfs.pod:1849
37332 msgid ""
37333 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
37334 "(L</guestfs_launch>) then additional debug messages are generated."
37335 msgstr ""
37336
37337 #. type: textblock
37338 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
37339 msgid ""
37340 "If no callback is registered: the messages are discarded unless the verbose "
37341 "flag is set in which case they are sent to stderr.  You can override the "
37342 "printing of verbose messages to stderr by setting up a callback."
37343 msgstr ""
37344
37345 #. type: =item
37346 #: ../src/guestfs.pod:1857
37347 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37348 msgstr ""
37349
37350 #. type: textblock
37351 #: ../src/guestfs.pod:1860
37352 msgid ""
37353 "The callback function is called whenever a log message is generated by the "
37354 "library part of libguestfs."
37355 msgstr ""
37356
37357 #. type: textblock
37358 #: ../src/guestfs.pod:1863
37359 msgid ""
37360 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37361 "messages are generated."
37362 msgstr ""
37363
37364 #. type: =item
37365 #: ../src/guestfs.pod:1871
37366 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37367 msgstr ""
37368
37369 #. type: textblock
37370 #: ../src/guestfs.pod:1874
37371 msgid ""
37372 "The callback function is called whenever a trace message is generated.  This "
37373 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../src/guestfs.pod:1877
37378 msgid ""
37379 "If no callback is registered: the messages are sent to stderr.  You can "
37380 "override the printing of trace messages to stderr by setting up a callback."
37381 msgstr ""
37382
37383 #. type: =item
37384 #: ../src/guestfs.pod:1881
37385 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37386 msgstr ""
37387
37388 #. type: textblock
37389 #: ../src/guestfs.pod:1884
37390 msgid "The callback function is called whenever a libguestfs function is entered."
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:1887
37395 msgid ""
37396 "The payload is a string which contains the name of the function that we are "
37397 "entering (not including C<guestfs_> prefix)."
37398 msgstr ""
37399
37400 #. type: textblock
37401 #: ../src/guestfs.pod:1890
37402 msgid ""
37403 "Note that libguestfs functions can call themselves, so you may see many "
37404 "events from a single call.  A few libguestfs functions do not generate this "
37405 "event."
37406 msgstr ""
37407
37408 #. type: =head3
37409 #: ../src/guestfs.pod:1898
37410 msgid "guestfs_set_event_callback"
37411 msgstr ""
37412
37413 #. type: verbatim
37414 #: ../src/guestfs.pod:1900
37415 #, no-wrap
37416 msgid ""
37417 " int guestfs_set_event_callback (guestfs_h *g,\n"
37418 "                                 guestfs_event_callback cb,\n"
37419 "                                 uint64_t event_bitmask,\n"
37420 "                                 int flags,\n"
37421 "                                 void *opaque);\n"
37422 "\n"
37423 msgstr ""
37424
37425 #. type: textblock
37426 #: ../src/guestfs.pod:1906
37427 msgid ""
37428 "This function registers a callback (C<cb>) for all event classes in the "
37429 "C<event_bitmask>."
37430 msgstr ""
37431
37432 #. type: textblock
37433 #: ../src/guestfs.pod:1909
37434 msgid ""
37435 "For example, to register for all log message events, you could call this "
37436 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37437 "To register a single callback for all possible classes of events, use "
37438 "C<GUESTFS_EVENT_ALL>."
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:1915
37443 msgid "C<flags> should always be passed as 0."
37444 msgstr ""
37445
37446 #. type: textblock
37447 #: ../src/guestfs.pod:1917
37448 msgid ""
37449 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37450 "it for any purpose."
37451 msgstr ""
37452
37453 #. type: textblock
37454 #: ../src/guestfs.pod:1920
37455 msgid ""
37456 "The return value is the event handle (an integer) which you can use to "
37457 "delete the callback (see below)."
37458 msgstr ""
37459
37460 #. type: textblock
37461 #: ../src/guestfs.pod:1923
37462 msgid ""
37463 "If there is an error, this function returns C<-1>, and sets the error in the "
37464 "handle in the usual way (see L</guestfs_last_error> etc.)"
37465 msgstr ""
37466
37467 #. type: textblock
37468 #: ../src/guestfs.pod:1926
37469 msgid ""
37470 "Callbacks remain in effect until they are deleted, or until the handle is "
37471 "closed."
37472 msgstr ""
37473
37474 #. type: textblock
37475 #: ../src/guestfs.pod:1929
37476 msgid ""
37477 "In the case where multiple callbacks are registered for a particular event "
37478 "class, all of the callbacks are called.  The order in which multiple "
37479 "callbacks are called is not defined."
37480 msgstr ""
37481
37482 #. type: =head3
37483 #: ../src/guestfs.pod:1933
37484 msgid "guestfs_delete_event_callback"
37485 msgstr ""
37486
37487 #. type: verbatim
37488 #: ../src/guestfs.pod:1935
37489 #, no-wrap
37490 msgid ""
37491 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37492 "\n"
37493 msgstr ""
37494
37495 #. type: textblock
37496 #: ../src/guestfs.pod:1937
37497 msgid ""
37498 "Delete a callback that was previously registered.  C<event_handle> should be "
37499 "the integer that was returned by a previous call to "
37500 "C<guestfs_set_event_callback> on the same handle."
37501 msgstr ""
37502
37503 #. type: =head3
37504 #: ../src/guestfs.pod:1941
37505 msgid "guestfs_event_callback"
37506 msgstr ""
37507
37508 #. type: verbatim
37509 #: ../src/guestfs.pod:1943
37510 #, no-wrap
37511 msgid ""
37512 " typedef void (*guestfs_event_callback) (\n"
37513 "                  guestfs_h *g,\n"
37514 "                  void *opaque,\n"
37515 "                  uint64_t event,\n"
37516 "                  int event_handle,\n"
37517 "                  int flags,\n"
37518 "                  const char *buf, size_t buf_len,\n"
37519 "                  const uint64_t *array, size_t array_len);\n"
37520 "\n"
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../src/guestfs.pod:1952
37525 msgid "This is the type of the event callback function that you have to provide."
37526 msgstr ""
37527
37528 #. type: textblock
37529 #: ../src/guestfs.pod:1955
37530 msgid ""
37531 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37532 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37533 "handle, and C<flags> which in the current API you should ignore."
37534 msgstr ""
37535
37536 #. type: textblock
37537 #: ../src/guestfs.pod:1959
37538 msgid ""
37539 "The remaining parameters contain the event payload (if any).  Each event may "
37540 "contain a payload, which usually relates to the event class, but for future "
37541 "proofing your code should be written to handle any payload for any event "
37542 "class."
37543 msgstr ""
37544
37545 #. type: textblock
37546 #: ../src/guestfs.pod:1964
37547 msgid ""
37548 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37549 "there is no message buffer).  Note that this message buffer can contain "
37550 "arbitrary 8 bit data, including NUL bytes."
37551 msgstr ""
37552
37553 #. type: textblock
37554 #: ../src/guestfs.pod:1968
37555 msgid ""
37556 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37557 "moment this is only used for progress messages."
37558 msgstr ""
37559
37560 #. type: =head3
37561 #: ../src/guestfs.pod:1971
37562 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37563 msgstr ""
37564
37565 #. type: textblock
37566 #: ../src/guestfs.pod:1973
37567 msgid ""
37568 "One motivation for the generic event API was to allow GUI programs to "
37569 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37570 "unconditionally to C<stderr>."
37571 msgstr ""
37572
37573 #. type: textblock
37574 #: ../src/guestfs.pod:1977
37575 msgid ""
37576 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37577 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37578 "messages are not events; you must capture error messages separately)."
37579 msgstr ""
37580
37581 #. type: textblock
37582 #: ../src/guestfs.pod:1982
37583 msgid ""
37584 "Programs have to set up a callback to capture the classes of events of "
37585 "interest:"
37586 msgstr ""
37587
37588 #. type: verbatim
37589 #: ../src/guestfs.pod:1985
37590 #, no-wrap
37591 msgid ""
37592 " int eh =\n"
37593 "   guestfs_set_event_callback\n"
37594 "     (g, message_callback,\n"
37595 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37596 "      GUESTFS_EVENT_TRACE,\n"
37597 "      0, NULL) == -1)\n"
37598 " if (eh == -1) {\n"
37599 "   // handle error in the usual way\n"
37600 " }\n"
37601 "\n"
37602 msgstr ""
37603
37604 #. type: textblock
37605 #: ../src/guestfs.pod:1995
37606 msgid ""
37607 "The callback can then direct messages to the appropriate place.  In this "
37608 "example, messages are directed to syslog:"
37609 msgstr ""
37610
37611 #. type: verbatim
37612 #: ../src/guestfs.pod:1998
37613 #, no-wrap
37614 msgid ""
37615 " static void\n"
37616 " message_callback (\n"
37617 "         guestfs_h *g,\n"
37618 "         void *opaque,\n"
37619 "         uint64_t event,\n"
37620 "         int event_handle,\n"
37621 "         int flags,\n"
37622 "         const char *buf, size_t buf_len,\n"
37623 "         const uint64_t *array, size_t array_len)\n"
37624 " {\n"
37625 "   const int priority = LOG_USER|LOG_INFO;\n"
37626 "   if (buf_len > 0)\n"
37627 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37628 " }\n"
37629 "\n"
37630 msgstr ""
37631
37632 #. type: =head1
37633 #: ../src/guestfs.pod:2013
37634 msgid "CANCELLING LONG TRANSFERS"
37635 msgstr ""
37636
37637 #. type: textblock
37638 #: ../src/guestfs.pod:2015
37639 msgid ""
37640 "Some operations can be cancelled by the caller while they are in progress.  "
37641 "Currently only operations that involve uploading or downloading data can be "
37642 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37643 "parameters in the generator)."
37644 msgstr ""
37645
37646 #. type: =head2
37647 #: ../src/guestfs.pod:2020
37648 msgid "guestfs_user_cancel"
37649 msgstr ""
37650
37651 #. type: verbatim
37652 #: ../src/guestfs.pod:2022
37653 #, no-wrap
37654 msgid ""
37655 " void guestfs_user_cancel (guestfs_h *g);\n"
37656 "\n"
37657 msgstr ""
37658
37659 #. type: textblock
37660 #: ../src/guestfs.pod:2024
37661 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
37662 msgstr ""
37663
37664 #. type: textblock
37665 #: ../src/guestfs.pod:2027
37666 msgid ""
37667 "Unlike most other libguestfs calls, this function is signal safe and thread "
37668 "safe.  You can call it from a signal handler or from another thread, without "
37669 "needing to do any locking."
37670 msgstr ""
37671
37672 #. type: textblock
37673 #: ../src/guestfs.pod:2031
37674 msgid ""
37675 "The transfer that was in progress (if there is one) will stop shortly "
37676 "afterwards, and will return an error.  The errno (see "
37677 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37678 "out if the operation was cancelled or failed because of another error."
37679 msgstr ""
37680
37681 #. type: textblock
37682 #: ../src/guestfs.pod:2037
37683 msgid ""
37684 "No cleanup is performed: for example, if a file was being uploaded then "
37685 "after cancellation there may be a partially uploaded file.  It is the "
37686 "caller's responsibility to clean up if necessary."
37687 msgstr ""
37688
37689 #. type: textblock
37690 #: ../src/guestfs.pod:2041
37691 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37692 msgstr ""
37693
37694 #. type: textblock
37695 #: ../src/guestfs.pod:2043
37696 msgid ""
37697 "In an interactive text-based program, you might call it from a C<SIGINT> "
37698 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37699 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37700 "receive the C<^C> signal)."
37701 msgstr ""
37702
37703 #. type: textblock
37704 #: ../src/guestfs.pod:2048
37705 msgid ""
37706 "In a graphical program, when the main thread is displaying a progress bar "
37707 "with a cancel button, wire up the cancel button to call this function."
37708 msgstr ""
37709
37710 #. type: =head1
37711 #: ../src/guestfs.pod:2052
37712 msgid "PRIVATE DATA AREA"
37713 msgstr ""
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:2054
37717 msgid ""
37718 "You can attach named pieces of private data to the libguestfs handle, fetch "
37719 "them by name, and walk over them, for the lifetime of the handle.  This is "
37720 "called the private data area and is only available from the C API."
37721 msgstr ""
37722
37723 #. type: textblock
37724 #: ../src/guestfs.pod:2059
37725 msgid "To attach a named piece of data, use the following call:"
37726 msgstr ""
37727
37728 #. type: verbatim
37729 #: ../src/guestfs.pod:2061
37730 #, no-wrap
37731 msgid ""
37732 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37733 "\n"
37734 msgstr ""
37735
37736 #. type: textblock
37737 #: ../src/guestfs.pod:2063
37738 msgid ""
37739 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37740 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37741 "overwritten."
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../src/guestfs.pod:2067
37746 msgid ""
37747 "You can use any C<key> you want, but your key should I<not> start with an "
37748 "underscore character.  Keys beginning with an underscore character are "
37749 "reserved for internal libguestfs purposes (eg. for implementing language "
37750 "bindings).  It is recommended that you prefix the key with some unique "
37751 "string to avoid collisions with other users."
37752 msgstr ""
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:2073
37756 msgid "To retrieve the pointer, use:"
37757 msgstr ""
37758
37759 #. type: verbatim
37760 #: ../src/guestfs.pod:2075
37761 #, no-wrap
37762 msgid ""
37763 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37764 "\n"
37765 msgstr ""
37766
37767 #. type: textblock
37768 #: ../src/guestfs.pod:2077
37769 msgid ""
37770 "This function returns C<NULL> if either no data is found associated with "
37771 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37772 "C<NULL>."
37773 msgstr ""
37774
37775 #. type: textblock
37776 #: ../src/guestfs.pod:2081
37777 msgid ""
37778 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37779 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37780 "all.  In particular, libguestfs does I<not> try to free the data when the "
37781 "handle is closed.  If the data must be freed, then the caller must either "
37782 "free it before calling L</guestfs_close> or must set up a close callback to "
37783 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37784 msgstr ""
37785
37786 #. type: textblock
37787 #: ../src/guestfs.pod:2088
37788 msgid "To walk over all entries, use these two functions:"
37789 msgstr ""
37790
37791 #. type: verbatim
37792 #: ../src/guestfs.pod:2090
37793 #, no-wrap
37794 msgid ""
37795 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37796 "\n"
37797 msgstr ""
37798
37799 #. type: verbatim
37800 #: ../src/guestfs.pod:2092
37801 #, no-wrap
37802 msgid ""
37803 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37804 "\n"
37805 msgstr ""
37806
37807 #. type: textblock
37808 #: ../src/guestfs.pod:2094
37809 msgid ""
37810 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37811 "not have any particular meaning -- keys are not returned in any defined "
37812 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37813 "corresponding data pointer is returned from the function.  C<NULL> is "
37814 "returned if there are no keys stored in the handle."
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../src/guestfs.pod:2100
37819 msgid ""
37820 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37821 "value of this function is also C<NULL> is there are no further entries to "
37822 "return."
37823 msgstr ""
37824
37825 #. type: textblock
37826 #: ../src/guestfs.pod:2104
37827 msgid "Notes about walking over entries:"
37828 msgstr ""
37829
37830 #. type: textblock
37831 #: ../src/guestfs.pod:2110
37832 msgid "You must not call C<guestfs_set_private> while walking over the entries."
37833 msgstr ""
37834
37835 #. type: textblock
37836 #: ../src/guestfs.pod:2115
37837 msgid ""
37838 "The handle maintains an internal iterator which is reset when you call "
37839 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37840 "call C<guestfs_set_private>."
37841 msgstr ""
37842
37843 #. type: textblock
37844 #: ../src/guestfs.pod:2121
37845 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37846 msgstr ""
37847
37848 #. type: verbatim
37849 #: ../src/guestfs.pod:2123
37850 #, no-wrap
37851 msgid ""
37852 " guestfs_set_private (g, key, NULL);\n"
37853 "\n"
37854 msgstr ""
37855
37856 #. type: textblock
37857 #: ../src/guestfs.pod:2125
37858 msgid "then that C<key> is not returned when walking."
37859 msgstr ""
37860
37861 #. type: textblock
37862 #: ../src/guestfs.pod:2129
37863 msgid ""
37864 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37865 "C<guestfs_next_private> or C<guestfs_set_private>."
37866 msgstr ""
37867
37868 #. type: textblock
37869 #: ../src/guestfs.pod:2135
37870 msgid ""
37871 "The following example code shows how to print all keys and data pointers "
37872 "that are associated with the handle C<g>:"
37873 msgstr ""
37874
37875 #. type: verbatim
37876 #: ../src/guestfs.pod:2138
37877 #, no-wrap
37878 msgid ""
37879 " const char *key;\n"
37880 " void *data = guestfs_first_private (g, &key);\n"
37881 " while (data != NULL)\n"
37882 "   {\n"
37883 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37884 "     data = guestfs_next_private (g, &key);\n"
37885 "   }\n"
37886 "\n"
37887 msgstr ""
37888
37889 #. type: textblock
37890 #: ../src/guestfs.pod:2146
37891 msgid ""
37892 "More commonly you are only interested in keys that begin with an "
37893 "application-specific prefix C<foo_>.  Modify the loop like so:"
37894 msgstr ""
37895
37896 #. type: verbatim
37897 #: ../src/guestfs.pod:2149
37898 #, no-wrap
37899 msgid ""
37900 " const char *key;\n"
37901 " void *data = guestfs_first_private (g, &key);\n"
37902 " while (data != NULL)\n"
37903 "   {\n"
37904 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37905 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
37906 "     data = guestfs_next_private (g, &key);\n"
37907 "   }\n"
37908 "\n"
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../src/guestfs.pod:2158
37913 msgid ""
37914 "If you need to modify keys while walking, then you have to jump back to the "
37915 "beginning of the loop.  For example, to delete all keys prefixed with "
37916 "C<foo_>:"
37917 msgstr ""
37918
37919 #. type: verbatim
37920 #: ../src/guestfs.pod:2162
37921 #, no-wrap
37922 msgid ""
37923 "  const char *key;\n"
37924 "  void *data;\n"
37925 " again:\n"
37926 "  data = guestfs_first_private (g, &key);\n"
37927 "  while (data != NULL)\n"
37928 "    {\n"
37929 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37930 "        {\n"
37931 "          guestfs_set_private (g, key, NULL);\n"
37932 "          /* note that 'key' pointer is now invalid, and so is\n"
37933 "             the internal iterator */\n"
37934 "          goto again;\n"
37935 "        }\n"
37936 "      data = guestfs_next_private (g, &key);\n"
37937 "    }\n"
37938 "\n"
37939 msgstr ""
37940
37941 #. type: textblock
37942 #: ../src/guestfs.pod:2178
37943 msgid ""
37944 "Note that the above loop is guaranteed to terminate because the keys are "
37945 "being deleted, but other manipulations of keys within the loop might not "
37946 "terminate unless you also maintain an indication of which keys have been "
37947 "visited."
37948 msgstr ""
37949
37950 #. type: =head1
37951 #: ../src/guestfs.pod:2183
37952 msgid "SYSTEMTAP"
37953 msgstr ""
37954
37955 #. type: textblock
37956 #: ../src/guestfs.pod:2185
37957 msgid ""
37958 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
37959 "true of any library, not just libguestfs.  However libguestfs also contains "
37960 "static markers to help in probing internal operations."
37961 msgstr ""
37962
37963 #. type: textblock
37964 #: ../src/guestfs.pod:2189
37965 msgid "You can list all the static markers by doing:"
37966 msgstr ""
37967
37968 #. type: verbatim
37969 #: ../src/guestfs.pod:2191
37970 #, no-wrap
37971 msgid ""
37972 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
37973 "              .provider(\"guestfs\").mark(\"*\")'\n"
37974 "\n"
37975 msgstr ""
37976
37977 #. type: textblock
37978 #: ../src/guestfs.pod:2194
37979 msgid ""
37980 "B<Note:> These static markers are I<not> part of the stable API and may "
37981 "change in future versions."
37982 msgstr ""
37983
37984 #. type: =head2
37985 #: ../src/guestfs.pod:2197
37986 msgid "SYSTEMTAP SCRIPT EXAMPLE"
37987 msgstr ""
37988
37989 #. type: textblock
37990 #: ../src/guestfs.pod:2199
37991 msgid ""
37992 "This script contains examples of displaying both the static markers and some "
37993 "ordinary C entry points:"
37994 msgstr ""
37995
37996 #. type: verbatim
37997 #: ../src/guestfs.pod:2202
37998 #, no-wrap
37999 msgid ""
38000 " global last;\n"
38001 " \n"
38002 msgstr ""
38003
38004 #. type: verbatim
38005 #: ../src/guestfs.pod:2204
38006 #, no-wrap
38007 msgid ""
38008 " function display_time () {\n"
38009 "       now = gettimeofday_us ();\n"
38010 "       delta = 0;\n"
38011 "       if (last > 0)\n"
38012 "             delta = now - last;\n"
38013 "       last = now;\n"
38014 " \n"
38015 msgstr ""
38016
38017 #. type: verbatim
38018 #: ../src/guestfs.pod:2211
38019 #, no-wrap
38020 msgid ""
38021 "       printf (\"%d (+%d):\", now, delta);\n"
38022 " }\n"
38023 " \n"
38024 msgstr ""
38025
38026 #. type: verbatim
38027 #: ../src/guestfs.pod:2214
38028 #, no-wrap
38029 msgid ""
38030 " probe begin {\n"
38031 "       last = 0;\n"
38032 "       printf (\"ready\\n\");\n"
38033 " }\n"
38034 " \n"
38035 msgstr ""
38036
38037 #. type: verbatim
38038 #: ../src/guestfs.pod:2219
38039 #, no-wrap
38040 msgid ""
38041 " /* Display all calls to static markers. */\n"
38042 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38043 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38044 "       display_time();\n"
38045 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38046 " }\n"
38047 " \n"
38048 msgstr ""
38049
38050 #. type: verbatim
38051 #: ../src/guestfs.pod:2226
38052 #, no-wrap
38053 msgid ""
38054 " /* Display all calls to guestfs_mkfs* functions. */\n"
38055 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38056 "           .function(\"guestfs_mkfs*\") ? {\n"
38057 "       display_time();\n"
38058 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38059 " }\n"
38060 "\n"
38061 msgstr ""
38062
38063 #. type: textblock
38064 #: ../src/guestfs.pod:2233
38065 msgid ""
38066 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38067 "program.  Note that you either have to be root, or you have to add yourself "
38068 "to several special stap groups.  Consult the systemtap documentation for "
38069 "more information."
38070 msgstr ""
38071
38072 #. type: verbatim
38073 #: ../src/guestfs.pod:2238
38074 #, no-wrap
38075 msgid ""
38076 " # stap /tmp/test.stap\n"
38077 " ready\n"
38078 "\n"
38079 msgstr ""
38080
38081 #. type: textblock
38082 #: ../src/guestfs.pod:2241
38083 msgid "In another terminal, run a guestfish command such as this:"
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../src/guestfs.pod:2245
38088 msgid "In the first terminal, stap trace output similar to this is shown:"
38089 msgstr ""
38090
38091 #. type: verbatim
38092 #: ../src/guestfs.pod:2247
38093 #, no-wrap
38094 msgid ""
38095 " 1318248056692655 (+0):\tlaunch_start\n"
38096 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38097 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38098 " 1318248056838059 (+19774):     launch_run_qemu\n"
38099 " 1318248061071167 (+4233108):   launch_end\n"
38100 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
38101 "device=0x1024e60\n"
38102 "\n"
38103 msgstr ""
38104
38105 #. type: =end
38106 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38107 msgid "html"
38108 msgstr ""
38109
38110 #. type: textblock
38111 #: ../src/guestfs.pod:2256
38112 msgid ""
38113 "<!-- old anchor for the next section --> <a "
38114 "name=\"state_machine_and_low_level_event_api\"/>"
38115 msgstr ""
38116
38117 #. type: =head1
38118 #: ../src/guestfs.pod:2261
38119 msgid "ARCHITECTURE"
38120 msgstr ""
38121
38122 #. type: textblock
38123 #: ../src/guestfs.pod:2263
38124 msgid ""
38125 "Internally, libguestfs is implemented by running an appliance (a special "
38126 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38127 "process of the main program."
38128 msgstr ""
38129
38130 #. type: verbatim
38131 #: ../src/guestfs.pod:2267
38132 #, no-wrap
38133 msgid ""
38134 "  ___________________\n"
38135 " /                   \\\n"
38136 " | main program      |\n"
38137 " |                   |\n"
38138 " |                   |           child process / appliance\n"
38139 " |                   |           __________________________\n"
38140 " |                   |          / qemu                     \\\n"
38141 " +-------------------+   RPC    |      +-----------------+ |\n"
38142 " | libguestfs     <--------------------> guestfsd        | |\n"
38143 " |                   |          |      +-----------------+ |\n"
38144 " \\___________________/          |      | Linux kernel    | |\n"
38145 "                                |      +--^--------------+ |\n"
38146 "                                \\_________|________________/\n"
38147 "                                          |\n"
38148 "                                   _______v______\n"
38149 "                                  /              \\\n"
38150 "                                  | Device or    |\n"
38151 "                                  | disk image   |\n"
38152 "                                  \\______________/\n"
38153 "\n"
38154 msgstr ""
38155
38156 #. type: textblock
38157 #: ../src/guestfs.pod:2287
38158 msgid ""
38159 "The library, linked to the main program, creates the child process and hence "
38160 "the appliance in the L</guestfs_launch> function."
38161 msgstr ""
38162
38163 #. type: textblock
38164 #: ../src/guestfs.pod:2290
38165 msgid ""
38166 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38167 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38168 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38169 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38170 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38171 "attached to the qemu process which translates device access by the "
38172 "appliance's Linux kernel into accesses to the image."
38173 msgstr ""
38174
38175 #. type: textblock
38176 #: ../src/guestfs.pod:2299
38177 msgid ""
38178 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38179 "Although the disk image you are attached to might also be used by some "
38180 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38181 "care if both libguestfs's qemu process and your virtual machine are trying "
38182 "to update the disk image at the same time, since these usually results in "
38183 "massive disk corruption)."
38184 msgstr ""
38185
38186 #. type: =head1
38187 #: ../src/guestfs.pod:2306
38188 msgid "STATE MACHINE"
38189 msgstr ""
38190
38191 #. type: textblock
38192 #: ../src/guestfs.pod:2308
38193 msgid "libguestfs uses a state machine to model the child process:"
38194 msgstr ""
38195
38196 #. type: verbatim
38197 #: ../src/guestfs.pod:2310
38198 #, no-wrap
38199 msgid ""
38200 "                         |\n"
38201 "                    guestfs_create\n"
38202 "                         |\n"
38203 "                         |\n"
38204 "                     ____V_____\n"
38205 "                    /          \\\n"
38206 "                    |  CONFIG  |\n"
38207 "                    \\__________/\n"
38208 "                     ^ ^   ^  \\\n"
38209 "                    /  |    \\  \\ guestfs_launch\n"
38210 "                   /   |    _\\__V______\n"
38211 "                  /    |   /           \\\n"
38212 "                 /     |   | LAUNCHING |\n"
38213 "                /      |   \\___________/\n"
38214 "               /       |       /\n"
38215 "              /        |  guestfs_launch\n"
38216 "             /         |     /\n"
38217 "    ______  /        __|____V\n"
38218 "   /      \\ ------> /        \\\n"
38219 "   | BUSY |         | READY  |\n"
38220 "   \\______/ <------ \\________/\n"
38221 "\n"
38222 msgstr ""
38223
38224 #. type: textblock
38225 #: ../src/guestfs.pod:2332
38226 msgid ""
38227 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38228 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38229 "(3) alternating between READY and BUSY as commands are issued to, and "
38230 "carried out by, the child process."
38231 msgstr ""
38232
38233 #. type: textblock
38234 #: ../src/guestfs.pod:2337
38235 msgid ""
38236 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38237 "asynchronously at any time (eg. due to some internal error), and that causes "
38238 "the state to transition back to CONFIG."
38239 msgstr ""
38240
38241 #. type: textblock
38242 #: ../src/guestfs.pod:2341
38243 msgid ""
38244 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38245 "issued when in the CONFIG state."
38246 msgstr ""
38247
38248 #. type: textblock
38249 #: ../src/guestfs.pod:2344
38250 msgid ""
38251 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38252 "L</guestfs_launch> blocks until the child process is READY to accept "
38253 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38254 "moves the state from CONFIG to LAUNCHING while it is running."
38255 msgstr ""
38256
38257 #. type: textblock
38258 #: ../src/guestfs.pod:2350
38259 msgid ""
38260 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38261 "state.  These API calls block waiting for the command to be carried out "
38262 "(ie. the state to transition to BUSY and then back to READY).  There are no "
38263 "non-blocking versions, and no way to issue more than one command per handle "
38264 "at the same time."
38265 msgstr ""
38266
38267 #. type: textblock
38268 #: ../src/guestfs.pod:2356
38269 msgid ""
38270 "Finally, the child process sends asynchronous messages back to the main "
38271 "program, such as kernel log messages.  You can register a callback to "
38272 "receive these messages."
38273 msgstr ""
38274
38275 #. type: =head1
38276 #: ../src/guestfs.pod:2360
38277 msgid "INTERNALS"
38278 msgstr ""
38279
38280 #. type: =head2
38281 #: ../src/guestfs.pod:2362
38282 msgid "APPLIANCE BOOT PROCESS"
38283 msgstr ""
38284
38285 #. type: textblock
38286 #: ../src/guestfs.pod:2364
38287 msgid ""
38288 "This process has evolved and continues to evolve.  The description here "
38289 "corresponds only to the current version of libguestfs and is provided for "
38290 "information only."
38291 msgstr ""
38292
38293 #. type: textblock
38294 #: ../src/guestfs.pod:2368
38295 msgid ""
38296 "In order to follow the stages involved below, enable libguestfs debugging "
38297 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38298 msgstr ""
38299
38300 #. type: =item
38301 #: ../src/guestfs.pod:2373
38302 msgid "Create the appliance"
38303 msgstr ""
38304
38305 #. type: textblock
38306 #: ../src/guestfs.pod:2375
38307 msgid ""
38308 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38309 "initrd and the appliance."
38310 msgstr ""
38311
38312 #. type: textblock
38313 #: ../src/guestfs.pod:2378
38314 msgid ""
38315 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38316 "directory if C<TMPDIR> is set)."
38317 msgstr ""
38318
38319 #. type: textblock
38320 #: ../src/guestfs.pod:2381
38321 msgid ""
38322 "For a complete description of how the appliance is created and cached, read "
38323 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38324 msgstr ""
38325
38326 #. type: =item
38327 #: ../src/guestfs.pod:2385
38328 msgid "Start qemu and boot the kernel"
38329 msgstr ""
38330
38331 #. type: textblock
38332 #: ../src/guestfs.pod:2387
38333 msgid "qemu is invoked to boot the kernel."
38334 msgstr ""
38335
38336 #. type: =item
38337 #: ../src/guestfs.pod:2389
38338 msgid "Run the initrd"
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../src/guestfs.pod:2391
38343 msgid ""
38344 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38345 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38346 "order that the appliance itself can be mounted and started."
38347 msgstr ""
38348
38349 #. type: textblock
38350 #: ../src/guestfs.pod:2395
38351 msgid ""
38352 "The initrd is a cpio archive called "
38353 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
38354 msgstr ""
38355
38356 #. type: textblock
38357 #: ../src/guestfs.pod:2398
38358 msgid ""
38359 "When the initrd has started you will see messages showing that kernel "
38360 "modules are being loaded, similar to this:"
38361 msgstr ""
38362
38363 #. type: verbatim
38364 #: ../src/guestfs.pod:2401
38365 #, no-wrap
38366 msgid ""
38367 " febootstrap: ext2 mini initrd starting up\n"
38368 " febootstrap: mounting /sys\n"
38369 " febootstrap: internal insmod libcrc32c.ko\n"
38370 " febootstrap: internal insmod crc32c-intel.ko\n"
38371 "\n"
38372 msgstr ""
38373
38374 #. type: =item
38375 #: ../src/guestfs.pod:2406
38376 msgid "Find and mount the appliance device"
38377 msgstr ""
38378
38379 #. type: textblock
38380 #: ../src/guestfs.pod:2408
38381 msgid ""
38382 "The appliance is a sparse file containing an ext2 filesystem which contains "
38383 "a familiar (although reduced in size) Linux operating system.  It would "
38384 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38385 msgstr ""
38386
38387 #. type: textblock
38388 #: ../src/guestfs.pod:2412
38389 msgid ""
38390 "The regular disks being inspected by libguestfs are the first devices "
38391 "exposed by qemu (eg. as C</dev/vda>)."
38392 msgstr ""
38393
38394 #. type: textblock
38395 #: ../src/guestfs.pod:2415
38396 msgid ""
38397 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38398 "there was only one regular disk)."
38399 msgstr ""
38400
38401 #. type: textblock
38402 #: ../src/guestfs.pod:2418
38403 msgid ""
38404 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38405 "and switch root into the appliance, and run C</init> from the appliance."
38406 msgstr ""
38407
38408 #. type: textblock
38409 #: ../src/guestfs.pod:2422
38410 msgid "If this works successfully you will see messages such as:"
38411 msgstr ""
38412
38413 #. type: verbatim
38414 #: ../src/guestfs.pod:2424
38415 #, no-wrap
38416 msgid ""
38417 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38418 " febootstrap: creating /dev/root as block special 252:16\n"
38419 " febootstrap: mounting new root on /root\n"
38420 " febootstrap: chroot\n"
38421 " Starting /init script ...\n"
38422 "\n"
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../src/guestfs.pod:2430
38427 msgid ""
38428 "Note that C<Starting /init script ...> indicates that the appliance's init "
38429 "script is now running."
38430 msgstr ""
38431
38432 #. type: =item
38433 #: ../src/guestfs.pod:2433
38434 msgid "Initialize the appliance"
38435 msgstr ""
38436
38437 #. type: textblock
38438 #: ../src/guestfs.pod:2435
38439 msgid ""
38440 "The appliance itself now initializes itself.  This involves starting certain "
38441 "processes like C<udev>, possibly printing some debug information, and "
38442 "finally running the daemon (C<guestfsd>)."
38443 msgstr ""
38444
38445 #. type: =item
38446 #: ../src/guestfs.pod:2439
38447 msgid "The daemon"
38448 msgstr ""
38449
38450 #. type: textblock
38451 #: ../src/guestfs.pod:2441
38452 msgid ""
38453 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38454 "should see:"
38455 msgstr ""
38456
38457 #. type: verbatim
38458 #: ../src/guestfs.pod:2444
38459 #, no-wrap
38460 msgid ""
38461 " verbose daemon enabled\n"
38462 "\n"
38463 msgstr ""
38464
38465 #. type: textblock
38466 #: ../src/guestfs.pod:2446
38467 msgid ""
38468 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38469 "connected on the other end to the library."
38470 msgstr ""
38471
38472 #. type: textblock
38473 #: ../src/guestfs.pod:2449
38474 msgid ""
38475 "The daemon connects to this port (and hence to the library) and sends a four "
38476 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38477 "protocol (see below)."
38478 msgstr ""
38479
38480 #. type: =head2
38481 #: ../src/guestfs.pod:2455
38482 msgid "COMMUNICATION PROTOCOL"
38483 msgstr ""
38484
38485 #. type: textblock
38486 #: ../src/guestfs.pod:2457
38487 msgid ""
38488 "Don't rely on using this protocol directly.  This section documents how it "
38489 "currently works, but it may change at any time."
38490 msgstr ""
38491
38492 #. type: textblock
38493 #: ../src/guestfs.pod:2460
38494 msgid ""
38495 "The protocol used to talk between the library and the daemon running inside "
38496 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38497 "1014, RFC 1832, RFC 4506)."
38498 msgstr ""
38499
38500 #. type: textblock
38501 #: ../src/guestfs.pod:2464
38502 msgid ""
38503 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38504 "this file is automatically generated)."
38505 msgstr ""
38506
38507 #. type: textblock
38508 #: ../src/guestfs.pod:2467
38509 msgid ""
38510 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38511 "and C<FileOut> parameters, which are handled with very simple request/reply "
38512 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38513 "parameters, which use the same request and reply messages, but they may also "
38514 "be followed by files sent using a chunked encoding."
38515 msgstr ""
38516
38517 #. type: =head3
38518 #: ../src/guestfs.pod:2474
38519 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38520 msgstr ""
38521
38522 #. type: textblock
38523 #: ../src/guestfs.pod:2476
38524 msgid "For ordinary functions, the request message is:"
38525 msgstr ""
38526
38527 #. type: verbatim
38528 #: ../src/guestfs.pod:2478
38529 #, no-wrap
38530 msgid ""
38531 " total length (header + arguments,\n"
38532 "      but not including the length word itself)\n"
38533 " struct guestfs_message_header (encoded as XDR)\n"
38534 " struct guestfs_<foo>_args (encoded as XDR)\n"
38535 "\n"
38536 msgstr ""
38537
38538 #. type: textblock
38539 #: ../src/guestfs.pod:2483
38540 msgid ""
38541 "The total length field allows the daemon to allocate a fixed size buffer "
38542 "into which it slurps the rest of the message.  As a result, the total length "
38543 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38544 "effective size of any request is limited to somewhere under this size."
38545 msgstr ""
38546
38547 #. type: textblock
38548 #: ../src/guestfs.pod:2489
38549 msgid ""
38550 "Note also that many functions don't take any arguments, in which case the "
38551 "C<guestfs_I<foo>_args> is completely omitted."
38552 msgstr ""
38553
38554 #. type: textblock
38555 #: ../src/guestfs.pod:2492
38556 msgid ""
38557 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38558 "receiver knows what type of args structure to expect, or none at all."
38559 msgstr ""
38560
38561 #. type: textblock
38562 #: ../src/guestfs.pod:2496
38563 msgid ""
38564 "For functions that take optional arguments, the optional arguments are "
38565 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38566 "arguments.  A bitmask in the header indicates which optional arguments are "
38567 "meaningful.  The bitmask is also checked to see if it contains bits set "
38568 "which the daemon does not know about (eg. if more optional arguments were "
38569 "added in a later version of the library), and this causes the call to be "
38570 "rejected."
38571 msgstr ""
38572
38573 #. type: textblock
38574 #: ../src/guestfs.pod:2504
38575 msgid "The reply message for ordinary functions is:"
38576 msgstr ""
38577
38578 #. type: verbatim
38579 #: ../src/guestfs.pod:2506
38580 #, no-wrap
38581 msgid ""
38582 " total length (header + ret,\n"
38583 "      but not including the length word itself)\n"
38584 " struct guestfs_message_header (encoded as XDR)\n"
38585 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38586 "\n"
38587 msgstr ""
38588
38589 #. type: textblock
38590 #: ../src/guestfs.pod:2511
38591 msgid ""
38592 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38593 "functions that return no formal return values."
38594 msgstr ""
38595
38596 #. type: textblock
38597 #: ../src/guestfs.pod:2514
38598 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38599 msgstr ""
38600
38601 #. type: textblock
38602 #: ../src/guestfs.pod:2517
38603 msgid ""
38604 "In the case of an error, a flag is set in the header, and the reply message "
38605 "is slightly changed:"
38606 msgstr ""
38607
38608 #. type: verbatim
38609 #: ../src/guestfs.pod:2520
38610 #, no-wrap
38611 msgid ""
38612 " total length (header + error,\n"
38613 "      but not including the length word itself)\n"
38614 " struct guestfs_message_header (encoded as XDR)\n"
38615 " struct guestfs_message_error (encoded as XDR)\n"
38616 "\n"
38617 msgstr ""
38618
38619 #. type: textblock
38620 #: ../src/guestfs.pod:2525
38621 msgid ""
38622 "The C<guestfs_message_error> structure contains the error message as a "
38623 "string."
38624 msgstr ""
38625
38626 #. type: =head3
38627 #: ../src/guestfs.pod:2528
38628 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38629 msgstr ""
38630
38631 #. type: textblock
38632 #: ../src/guestfs.pod:2530
38633 msgid ""
38634 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38635 "The normal request message is sent (see above).  However this is followed by "
38636 "a sequence of file chunks."
38637 msgstr ""
38638
38639 #. type: verbatim
38640 #: ../src/guestfs.pod:2534
38641 #, no-wrap
38642 msgid ""
38643 " total length (header + arguments,\n"
38644 "      but not including the length word itself,\n"
38645 "      and not including the chunks)\n"
38646 " struct guestfs_message_header (encoded as XDR)\n"
38647 " struct guestfs_<foo>_args (encoded as XDR)\n"
38648 " sequence of chunks for FileIn param #0\n"
38649 " sequence of chunks for FileIn param #1 etc.\n"
38650 "\n"
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../src/guestfs.pod:2542
38655 msgid "The \"sequence of chunks\" is:"
38656 msgstr ""
38657
38658 #. type: verbatim
38659 #: ../src/guestfs.pod:2544
38660 #, no-wrap
38661 msgid ""
38662 " length of chunk (not including length word itself)\n"
38663 " struct guestfs_chunk (encoded as XDR)\n"
38664 " length of chunk\n"
38665 " struct guestfs_chunk (encoded as XDR)\n"
38666 "   ...\n"
38667 " length of chunk\n"
38668 " struct guestfs_chunk (with data.data_len == 0)\n"
38669 "\n"
38670 msgstr ""
38671
38672 #. type: textblock
38673 #: ../src/guestfs.pod:2552
38674 msgid ""
38675 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38676 "is set in the final chunk to indicate either successful completion or early "
38677 "cancellation."
38678 msgstr ""
38679
38680 #. type: textblock
38681 #: ../src/guestfs.pod:2556
38682 msgid ""
38683 "At time of writing there are no functions that have more than one FileIn "
38684 "parameter.  However this is (theoretically) supported, by sending the "
38685 "sequence of chunks for each FileIn parameter one after another (from left to "
38686 "right)."
38687 msgstr ""
38688
38689 #. type: textblock
38690 #: ../src/guestfs.pod:2561
38691 msgid ""
38692 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38693 "transfer.  The library does this by sending a chunk with a special flag set "
38694 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38695 "RPC, does I<not> send any reply, and goes back to reading the next request."
38696 msgstr ""
38697
38698 #. type: textblock
38699 #: ../src/guestfs.pod:2567
38700 msgid ""
38701 "The daemon may also cancel.  It does this by writing a special word "
38702 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38703 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38704 "cancel chunk).  The special word is chosen so that even if cancellation "
38705 "happens right at the end of the transfer (after the library has finished "
38706 "writing and has started listening for the reply), the \"spurious\" cancel "
38707 "flag will not be confused with the reply message."
38708 msgstr ""
38709
38710 #. type: textblock
38711 #: ../src/guestfs.pod:2576
38712 msgid ""
38713 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38714 "limit), and also files where the size is not known in advance (eg. from "
38715 "pipes or sockets).  However the chunks are rather small "
38716 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38717 "to keep much in memory."
38718 msgstr ""
38719
38720 #. type: =head3
38721 #: ../src/guestfs.pod:2582
38722 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38723 msgstr ""
38724
38725 #. type: textblock
38726 #: ../src/guestfs.pod:2584
38727 msgid ""
38728 "The protocol for FileOut parameters is exactly the same as for FileIn "
38729 "parameters, but with the roles of daemon and library reversed."
38730 msgstr ""
38731
38732 #. type: verbatim
38733 #: ../src/guestfs.pod:2587
38734 #, no-wrap
38735 msgid ""
38736 " total length (header + ret,\n"
38737 "      but not including the length word itself,\n"
38738 "      and not including the chunks)\n"
38739 " struct guestfs_message_header (encoded as XDR)\n"
38740 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38741 " sequence of chunks for FileOut param #0\n"
38742 " sequence of chunks for FileOut param #1 etc.\n"
38743 "\n"
38744 msgstr ""
38745
38746 #. type: =head3
38747 #: ../src/guestfs.pod:2595
38748 msgid "INITIAL MESSAGE"
38749 msgstr ""
38750
38751 #. type: textblock
38752 #: ../src/guestfs.pod:2597
38753 msgid ""
38754 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38755 "which indicates that the guest and daemon is alive.  This is what "
38756 "L</guestfs_launch> waits for."
38757 msgstr ""
38758
38759 #. type: =head3
38760 #: ../src/guestfs.pod:2601
38761 msgid "PROGRESS NOTIFICATION MESSAGES"
38762 msgstr ""
38763
38764 #. type: textblock
38765 #: ../src/guestfs.pod:2603
38766 msgid ""
38767 "The daemon may send progress notification messages at any time.  These are "
38768 "distinguished by the normal length word being replaced by "
38769 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38770 msgstr ""
38771
38772 #. type: textblock
38773 #: ../src/guestfs.pod:2607
38774 msgid ""
38775 "The library turns them into progress callbacks (see "
38776 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
38777 "them if not."
38778 msgstr ""
38779
38780 #. type: textblock
38781 #: ../src/guestfs.pod:2611
38782 msgid ""
38783 "The daemon self-limits the frequency of progress messages it sends (see "
38784 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38785 "messages."
38786 msgstr ""
38787
38788 #. type: =head1
38789 #: ../src/guestfs.pod:2615
38790 msgid "LIBGUESTFS VERSION NUMBERS"
38791 msgstr ""
38792
38793 #. type: textblock
38794 #: ../src/guestfs.pod:2617
38795 msgid ""
38796 "Since April 2010, libguestfs has started to make separate development and "
38797 "stable releases, along with corresponding branches in our git repository.  "
38798 "These separate releases can be identified by version number:"
38799 msgstr ""
38800
38801 #. type: verbatim
38802 #: ../src/guestfs.pod:2622
38803 #, no-wrap
38804 msgid ""
38805 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38806 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38807 "       |\n"
38808 "       v\n"
38809 " 1  .  3  .  5\n"
38810 " ^           ^\n"
38811 " |           |\n"
38812 " |           `-------- sub-version\n"
38813 " |\n"
38814 " `------ always '1' because we don't change the ABI\n"
38815 "\n"
38816 msgstr ""
38817
38818 #. type: textblock
38819 #: ../src/guestfs.pod:2633
38820 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38821 msgstr ""
38822
38823 #. type: textblock
38824 #: ../src/guestfs.pod:2635
38825 msgid ""
38826 "As time passes we cherry pick fixes from the development branch and backport "
38827 "those into the stable branch, the effect being that the stable branch should "
38828 "get more stable and less buggy over time.  So the stable releases are ideal "
38829 "for people who don't need new features but would just like the software to "
38830 "work."
38831 msgstr ""
38832
38833 #. type: textblock
38834 #: ../src/guestfs.pod:2641
38835 msgid "Our criteria for backporting changes are:"
38836 msgstr ""
38837
38838 #. type: textblock
38839 #: ../src/guestfs.pod:2647
38840 msgid ""
38841 "Documentation changes which don't affect any code are backported unless the "
38842 "documentation refers to a future feature which is not in stable."
38843 msgstr ""
38844
38845 #. type: textblock
38846 #: ../src/guestfs.pod:2653
38847 msgid ""
38848 "Bug fixes which are not controversial, fix obvious problems, and have been "
38849 "well tested are backported."
38850 msgstr ""
38851
38852 #. type: textblock
38853 #: ../src/guestfs.pod:2658
38854 msgid ""
38855 "Simple rearrangements of code which shouldn't affect how it works get "
38856 "backported.  This is so that the code in the two branches doesn't get too "
38857 "far out of step, allowing us to backport future fixes more easily."
38858 msgstr ""
38859
38860 #. type: textblock
38861 #: ../src/guestfs.pod:2664
38862 msgid ""
38863 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38864 "exceptional case: the new feature is required in order to implement an "
38865 "important bug fix."
38866 msgstr ""
38867
38868 #. type: textblock
38869 #: ../src/guestfs.pod:2670
38870 msgid ""
38871 "A new stable branch starts when we think the new features in development are "
38872 "substantial and compelling enough over the current stable branch to warrant "
38873 "it.  When that happens we create new stable and development versions 1.N.0 "
38874 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38875 "stable at this point, but by backporting fixes from development, that branch "
38876 "will stabilize over time."
38877 msgstr ""
38878
38879 #. type: =head1
38880 #: ../src/guestfs.pod:2678
38881 msgid "EXTENDING LIBGUESTFS"
38882 msgstr ""
38883
38884 #. type: =head2
38885 #: ../src/guestfs.pod:2680
38886 msgid "ADDING A NEW API ACTION"
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:2682
38891 msgid ""
38892 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38893 "documentation) are generated, and this makes it easy to extend the "
38894 "libguestfs API."
38895 msgstr ""
38896
38897 #. type: textblock
38898 #: ../src/guestfs.pod:2686
38899 msgid "To add a new API action there are two changes:"
38900 msgstr ""
38901
38902 #. type: textblock
38903 #: ../src/guestfs.pod:2692
38904 msgid ""
38905 "You need to add a description of the call (name, parameters, return type, "
38906 "tests, documentation) to C<generator/generator_actions.ml>."
38907 msgstr ""
38908
38909 #. type: textblock
38910 #: ../src/guestfs.pod:2695
38911 msgid ""
38912 "There are two sorts of API action, depending on whether the call goes "
38913 "through to the daemon in the appliance, or is serviced entirely by the "
38914 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
38915 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
38916 "an example of the latter, since a trace flag is maintained in the handle and "
38917 "all tracing is done on the library side."
38918 msgstr ""
38919
38920 #. type: textblock
38921 #: ../src/guestfs.pod:2703
38922 msgid ""
38923 "Most new actions are of the first type, and get added to the "
38924 "C<daemon_functions> list.  Each function has a unique procedure number used "
38925 "in the RPC protocol which is assigned to that action when we publish "
38926 "libguestfs and cannot be reused.  Take the latest procedure number and "
38927 "increment it."
38928 msgstr ""
38929
38930 #. type: textblock
38931 #: ../src/guestfs.pod:2709
38932 msgid ""
38933 "For library-only actions of the second type, add to the "
38934 "C<non_daemon_functions> list.  Since these functions are serviced by the "
38935 "library and do not travel over the RPC mechanism to the daemon, these "
38936 "functions do not need a procedure number, and so the procedure number is set "
38937 "to C<-1>."
38938 msgstr ""
38939
38940 #. type: textblock
38941 #: ../src/guestfs.pod:2717
38942 msgid "Implement the action (in C):"
38943 msgstr ""
38944
38945 #. type: textblock
38946 #: ../src/guestfs.pod:2719
38947 msgid ""
38948 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38949 "C<daemon/> directory."
38950 msgstr ""
38951
38952 #. type: textblock
38953 #: ../src/guestfs.pod:2722
38954 msgid ""
38955 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38956 "(note: double underscore) in the C<src/> directory."
38957 msgstr ""
38958
38959 #. type: textblock
38960 #: ../src/guestfs.pod:2725
38961 msgid "In either case, use another function as an example of what to do."
38962 msgstr ""
38963
38964 #. type: textblock
38965 #: ../src/guestfs.pod:2729
38966 msgid "After making these changes, use C<make> to compile."
38967 msgstr ""
38968
38969 #. type: textblock
38970 #: ../src/guestfs.pod:2731
38971 msgid ""
38972 "Note that you don't need to implement the RPC, language bindings, manual "
38973 "pages or anything else.  It's all automatically generated from the OCaml "
38974 "description."
38975 msgstr ""
38976
38977 #. type: =head2
38978 #: ../src/guestfs.pod:2735
38979 msgid "ADDING TESTS FOR AN API ACTION"
38980 msgstr ""
38981
38982 #. type: textblock
38983 #: ../src/guestfs.pod:2737
38984 msgid ""
38985 "You can supply zero or as many tests as you want per API call.  The tests "
38986 "can either be added as part of the API description "
38987 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
38988 "drop a script into C<regressions/>.  Note that adding a script to "
38989 "C<regressions/> is slower, so if possible use the first method."
38990 msgstr ""
38991
38992 #. type: textblock
38993 #: ../src/guestfs.pod:2743
38994 msgid ""
38995 "The following describes the test environment used when you add an API test "
38996 "in C<generator_actions.ml>."
38997 msgstr ""
38998
38999 #. type: textblock
39000 #: ../src/guestfs.pod:2746
39001 msgid "The test environment has 4 block devices:"
39002 msgstr ""
39003
39004 #. type: =item
39005 #: ../src/guestfs.pod:2750
39006 msgid "C</dev/sda> 500MB"
39007 msgstr ""
39008
39009 #. type: textblock
39010 #: ../src/guestfs.pod:2752
39011 msgid "General block device for testing."
39012 msgstr ""
39013
39014 #. type: =item
39015 #: ../src/guestfs.pod:2754
39016 msgid "C</dev/sdb> 50MB"
39017 msgstr ""
39018
39019 #. type: textblock
39020 #: ../src/guestfs.pod:2756
39021 msgid ""
39022 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39023 "operations."
39024 msgstr ""
39025
39026 #. type: =item
39027 #: ../src/guestfs.pod:2759
39028 msgid "C</dev/sdc> 10MB"
39029 msgstr ""
39030
39031 #. type: textblock
39032 #: ../src/guestfs.pod:2761
39033 msgid "Used in a few tests where two block devices are needed."
39034 msgstr ""
39035
39036 #. type: =item
39037 #: ../src/guestfs.pod:2763
39038 msgid "C</dev/sdd>"
39039 msgstr ""
39040
39041 #. type: textblock
39042 #: ../src/guestfs.pod:2765
39043 msgid "ISO with fixed content (see C<images/test.iso>)."
39044 msgstr ""
39045
39046 #. type: textblock
39047 #: ../src/guestfs.pod:2769
39048 msgid ""
39049 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39050 "appliance and block devices are reused between tests.  So don't try testing "
39051 "L</guestfs_kill_subprocess> :-x"
39052 msgstr ""
39053
39054 #. type: textblock
39055 #: ../src/guestfs.pod:2773
39056 msgid ""
39057 "Each test starts with an initial scenario, selected using one of the "
39058 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39059 "initialize the disks mentioned above in a particular way as documented in "
39060 "C<generator_types.ml>.  You should not assume anything about the previous "
39061 "contents of other disks that are not initialized."
39062 msgstr ""
39063
39064 #. type: textblock
39065 #: ../src/guestfs.pod:2779
39066 msgid ""
39067 "You can add a prerequisite clause to any individual test.  This is a "
39068 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
39069 "if testing a command which might not work on all variations of libguestfs "
39070 "builds.  A test that has prerequisite of C<Always> means to run "
39071 "unconditionally."
39072 msgstr ""
39073
39074 #. type: textblock
39075 #: ../src/guestfs.pod:2785
39076 msgid ""
39077 "In addition, packagers can skip individual tests by setting environment "
39078 "variables before running C<make check>."
39079 msgstr ""
39080
39081 #. type: verbatim
39082 #: ../src/guestfs.pod:2788
39083 #, no-wrap
39084 msgid ""
39085 " SKIP_TEST_<CMD>_<NUM>=1\n"
39086 "\n"
39087 msgstr ""
39088
39089 #. type: textblock
39090 #: ../src/guestfs.pod:2790
39091 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39092 msgstr ""
39093
39094 #. type: textblock
39095 #: ../src/guestfs.pod:2792
39096 msgid "or:"
39097 msgstr ""
39098
39099 #. type: verbatim
39100 #: ../src/guestfs.pod:2794
39101 #, no-wrap
39102 msgid ""
39103 " SKIP_TEST_<CMD>=1\n"
39104 "\n"
39105 msgstr ""
39106
39107 #. type: textblock
39108 #: ../src/guestfs.pod:2796
39109 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39110 msgstr ""
39111
39112 #. type: textblock
39113 #: ../src/guestfs.pod:2798
39114 msgid "Packagers can run only certain tests by setting for example:"
39115 msgstr ""
39116
39117 #. type: verbatim
39118 #: ../src/guestfs.pod:2800
39119 #, no-wrap
39120 msgid ""
39121 " TEST_ONLY=\"vfs_type zerofree\"\n"
39122 "\n"
39123 msgstr ""
39124
39125 #. type: textblock
39126 #: ../src/guestfs.pod:2802
39127 msgid ""
39128 "See C<capitests/tests.c> for more details of how these environment variables "
39129 "work."
39130 msgstr ""
39131
39132 #. type: =head2
39133 #: ../src/guestfs.pod:2805
39134 msgid "DEBUGGING NEW API ACTIONS"
39135 msgstr ""
39136
39137 #. type: textblock
39138 #: ../src/guestfs.pod:2807
39139 msgid "Test new actions work before submitting them."
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../src/guestfs.pod:2809
39144 msgid "You can use guestfish to try out new commands."
39145 msgstr ""
39146
39147 #. type: textblock
39148 #: ../src/guestfs.pod:2811
39149 msgid ""
39150 "Debugging the daemon is a problem because it runs inside a minimal "
39151 "environment.  However you can fprintf messages in the daemon to stderr, and "
39152 "they will show up if you use C<guestfish -v>."
39153 msgstr ""
39154
39155 #. type: =head2
39156 #: ../src/guestfs.pod:2815
39157 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39158 msgstr ""
39159
39160 #. type: textblock
39161 #: ../src/guestfs.pod:2817
39162 msgid ""
39163 "Our C source code generally adheres to some basic code-formatting "
39164 "conventions.  The existing code base is not totally consistent on this "
39165 "front, but we do prefer that contributed code be formatted similarly.  In "
39166 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39167 "indentation level, and other than that, follow the K&R style."
39168 msgstr ""
39169
39170 #. type: textblock
39171 #: ../src/guestfs.pod:2823
39172 msgid ""
39173 "If you use Emacs, add the following to one of one of your start-up files "
39174 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
39175 msgstr ""
39176
39177 #. type: verbatim
39178 #: ../src/guestfs.pod:2826
39179 #, no-wrap
39180 msgid ""
39181 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39182 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39183 " (add-hook 'find-file-hook\n"
39184 "     '(lambda () (if (and buffer-file-name\n"
39185 "                          (string-match \"/libguestfs\\\\>\"\n"
39186 "                              (buffer-file-name))\n"
39187 "                          (not (string-equal mode-name \"Change Log\"))\n"
39188 "                          (not (string-equal mode-name \"Makefile\")))\n"
39189 "                     (setq indent-tabs-mode nil))))\n"
39190 " \n"
39191 msgstr ""
39192
39193 #. type: verbatim
39194 #: ../src/guestfs.pod:2836
39195 #, no-wrap
39196 msgid ""
39197 " ;;; When editing C sources in libguestfs, use this style.\n"
39198 " (defun libguestfs-c-mode ()\n"
39199 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39200 "   (interactive)\n"
39201 "   (c-set-style \"K&R\")\n"
39202 "   (setq c-indent-level 2)\n"
39203 "   (setq c-basic-offset 2))\n"
39204 " (add-hook 'c-mode-hook\n"
39205 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39206 "                               (buffer-file-name))\n"
39207 "                           (libguestfs-c-mode))))\n"
39208 "\n"
39209 msgstr ""
39210
39211 #. type: textblock
39212 #: ../src/guestfs.pod:2848
39213 msgid "Enable warnings when compiling (and fix any problems this finds):"
39214 msgstr ""
39215
39216 #. type: verbatim
39217 #: ../src/guestfs.pod:2851
39218 #, no-wrap
39219 msgid ""
39220 " ./configure --enable-gcc-warnings\n"
39221 "\n"
39222 msgstr ""
39223
39224 #. type: textblock
39225 #: ../src/guestfs.pod:2853
39226 msgid "Useful targets are:"
39227 msgstr ""
39228
39229 #. type: verbatim
39230 #: ../src/guestfs.pod:2855
39231 #, no-wrap
39232 msgid ""
39233 " make syntax-check  # checks the syntax of the C code\n"
39234 " make check         # runs the test suite\n"
39235 "\n"
39236 msgstr ""
39237
39238 #. type: =head2
39239 #: ../src/guestfs.pod:2858
39240 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39241 msgstr ""
39242
39243 #. type: textblock
39244 #: ../src/guestfs.pod:2860
39245 msgid ""
39246 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39247 "which are used to do shell quoting."
39248 msgstr ""
39249
39250 #. type: =item
39251 #: ../src/guestfs.pod:2865
39252 msgid "%Q"
39253 msgstr ""
39254
39255 #. type: textblock
39256 #: ../src/guestfs.pod:2867
39257 msgid ""
39258 "Simple shell quoted string.  Any spaces or other shell characters are "
39259 "escaped for you."
39260 msgstr ""
39261
39262 #. type: =item
39263 #: ../src/guestfs.pod:2870
39264 msgid "%R"
39265 msgstr ""
39266
39267 #. type: textblock
39268 #: ../src/guestfs.pod:2872
39269 msgid ""
39270 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39271 "the sysroot."
39272 msgstr ""
39273
39274 #. type: verbatim
39275 #: ../src/guestfs.pod:2879
39276 #, no-wrap
39277 msgid ""
39278 " asprintf (&cmd, \"cat %R\", path);\n"
39279 "\n"
39280 msgstr ""
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:2881
39284 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39285 msgstr ""
39286
39287 #. type: textblock
39288 #: ../src/guestfs.pod:2883
39289 msgid ""
39290 "I<Note:> Do I<not> use these when you are passing parameters to the "
39291 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
39292 "because they are not passed via the shell (instead, straight to exec).  You "
39293 "probably want to use the C<sysroot_path()> function however."
39294 msgstr ""
39295
39296 #. type: =head2
39297 #: ../src/guestfs.pod:2889
39298 msgid "SUBMITTING YOUR NEW API ACTIONS"
39299 msgstr ""
39300
39301 #. type: textblock
39302 #: ../src/guestfs.pod:2891
39303 msgid ""
39304 "Submit patches to the mailing list: "
39305 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
39306 "L<rjones@redhat.com>."
39307 msgstr ""
39308
39309 #. type: =head2
39310 #: ../src/guestfs.pod:2895
39311 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39312 msgstr ""
39313
39314 #. type: textblock
39315 #: ../src/guestfs.pod:2897
39316 msgid "We support i18n (gettext anyhow) in the library."
39317 msgstr ""
39318
39319 #. type: textblock
39320 #: ../src/guestfs.pod:2899
39321 msgid ""
39322 "However many messages come from the daemon, and we don't translate those at "
39323 "the moment.  One reason is that the appliance generally has all locale files "
39324 "removed from it, because they take up a lot of space.  So we'd have to readd "
39325 "some of those, as well as copying our PO files into the appliance."
39326 msgstr ""
39327
39328 #. type: textblock
39329 #: ../src/guestfs.pod:2905
39330 msgid ""
39331 "Debugging messages are never translated, since they are intended for the "
39332 "programmers."
39333 msgstr ""
39334
39335 #. type: =head2
39336 #: ../src/guestfs.pod:2908
39337 msgid "SOURCE CODE SUBDIRECTORIES"
39338 msgstr ""
39339
39340 #. type: =item
39341 #: ../src/guestfs.pod:2912
39342 msgid "C<align>"
39343 msgstr ""
39344
39345 #. type: textblock
39346 #: ../src/guestfs.pod:2914
39347 msgid "L<virt-alignment-scan(1)> command and documentation."
39348 msgstr ""
39349
39350 #. type: textblock
39351 #: ../src/guestfs.pod:2918
39352 msgid "The libguestfs appliance, build scripts and so on."
39353 msgstr ""
39354
39355 #. type: =item
39356 #: ../src/guestfs.pod:2920
39357 msgid "C<capitests>"
39358 msgstr ""
39359
39360 #. type: textblock
39361 #: ../src/guestfs.pod:2922
39362 msgid "Automated tests of the C API."
39363 msgstr ""
39364
39365 #. type: =item
39366 #: ../src/guestfs.pod:2924
39367 msgid "C<cat>"
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../src/guestfs.pod:2926
39372 msgid ""
39373 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39374 "documentation."
39375 msgstr ""
39376
39377 #. type: =item
39378 #: ../src/guestfs.pod:2929
39379 msgid "C<caution>"
39380 msgstr ""
39381
39382 #. type: textblock
39383 #: ../src/guestfs.pod:2931
39384 msgid ""
39385 "Safety and liveness tests of components that libguestfs depends upon (not of "
39386 "libguestfs itself).  Mainly this is for qemu and the kernel."
39387 msgstr ""
39388
39389 #. type: =item
39390 #: ../src/guestfs.pod:2934
39391 msgid "C<clone>"
39392 msgstr ""
39393
39394 #. type: textblock
39395 #: ../src/guestfs.pod:2936
39396 msgid ""
39397 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39398 "command and documentation."
39399 msgstr ""
39400
39401 #. type: =item
39402 #: ../src/guestfs.pod:2939
39403 msgid "C<contrib>"
39404 msgstr ""
39405
39406 #. type: textblock
39407 #: ../src/guestfs.pod:2941
39408 msgid "Outside contributions, experimental parts."
39409 msgstr ""
39410
39411 #. type: =item
39412 #: ../src/guestfs.pod:2943
39413 msgid "C<daemon>"
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../src/guestfs.pod:2945
39418 msgid ""
39419 "The daemon that runs inside the libguestfs appliance and carries out "
39420 "actions."
39421 msgstr ""
39422
39423 #. type: =item
39424 #: ../src/guestfs.pod:2948
39425 msgid "C<df>"
39426 msgstr ""
39427
39428 #. type: textblock
39429 #: ../src/guestfs.pod:2950
39430 msgid "L<virt-df(1)> command and documentation."
39431 msgstr ""
39432
39433 #. type: =item
39434 #: ../src/guestfs.pod:2952
39435 msgid "C<edit>"
39436 msgstr ""
39437
39438 #. type: textblock
39439 #: ../src/guestfs.pod:2954
39440 msgid "L<virt-edit(1)> command and documentation."
39441 msgstr ""
39442
39443 #. type: =item
39444 #: ../src/guestfs.pod:2956
39445 msgid "C<examples>"
39446 msgstr ""
39447
39448 #. type: textblock
39449 #: ../src/guestfs.pod:2958
39450 msgid "C API example code."
39451 msgstr ""
39452
39453 #. type: =item
39454 #: ../src/guestfs.pod:2960
39455 msgid "C<fish>"
39456 msgstr ""
39457
39458 #. type: textblock
39459 #: ../src/guestfs.pod:2962
39460 msgid ""
39461 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39462 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39463 "L<virt-tar-out(1)>."
39464 msgstr ""
39465
39466 #. type: =item
39467 #: ../src/guestfs.pod:2966
39468 msgid "C<fuse>"
39469 msgstr ""
39470
39471 #. type: textblock
39472 #: ../src/guestfs.pod:2968
39473 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39474 msgstr ""
39475
39476 #. type: =item
39477 #: ../src/guestfs.pod:2970
39478 msgid "C<generator>"
39479 msgstr ""
39480
39481 #. type: textblock
39482 #: ../src/guestfs.pod:2972
39483 msgid ""
39484 "The crucially important generator, used to automatically generate large "
39485 "amounts of boilerplate C code for things like RPC and bindings."
39486 msgstr ""
39487
39488 #. type: =item
39489 #: ../src/guestfs.pod:2975
39490 msgid "C<images>"
39491 msgstr ""
39492
39493 #. type: textblock
39494 #: ../src/guestfs.pod:2977
39495 msgid "Files used by the test suite."
39496 msgstr ""
39497
39498 #. type: textblock
39499 #: ../src/guestfs.pod:2979
39500 msgid "Some \"phony\" guest images which we test against."
39501 msgstr ""
39502
39503 #. type: =item
39504 #: ../src/guestfs.pod:2981
39505 msgid "C<inspector>"
39506 msgstr ""
39507
39508 #. type: textblock
39509 #: ../src/guestfs.pod:2983
39510 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39511 msgstr ""
39512
39513 #. type: =item
39514 #: ../src/guestfs.pod:2985
39515 msgid "C<logo>"
39516 msgstr ""
39517
39518 #. type: textblock
39519 #: ../src/guestfs.pod:2987
39520 msgid "Logo used on the website.  The fish is called Arthur by the way."
39521 msgstr ""
39522
39523 #. type: =item
39524 #: ../src/guestfs.pod:2989
39525 msgid "C<m4>"
39526 msgstr ""
39527
39528 #. type: textblock
39529 #: ../src/guestfs.pod:2991
39530 msgid "M4 macros used by autoconf."
39531 msgstr ""
39532
39533 #. type: =item
39534 #: ../src/guestfs.pod:2993
39535 msgid "C<po>"
39536 msgstr ""
39537
39538 #. type: textblock
39539 #: ../src/guestfs.pod:2995
39540 msgid "Translations of simple gettext strings."
39541 msgstr ""
39542
39543 #. type: =item
39544 #: ../src/guestfs.pod:2997
39545 msgid "C<po-docs>"
39546 msgstr ""
39547
39548 #. type: textblock
39549 #: ../src/guestfs.pod:2999
39550 msgid ""
39551 "The build infrastructure and PO files for translations of manpages and POD "
39552 "files.  Eventually this will be combined with the C<po> directory, but that "
39553 "is rather complicated."
39554 msgstr ""
39555
39556 #. type: =item
39557 #: ../src/guestfs.pod:3003
39558 msgid "C<regressions>"
39559 msgstr ""
39560
39561 #. type: textblock
39562 #: ../src/guestfs.pod:3005
39563 msgid "Regression tests."
39564 msgstr ""
39565
39566 #. type: =item
39567 #: ../src/guestfs.pod:3007
39568 msgid "C<rescue>"
39569 msgstr ""
39570
39571 #. type: textblock
39572 #: ../src/guestfs.pod:3009
39573 msgid "L<virt-rescue(1)> command and documentation."
39574 msgstr ""
39575
39576 #. type: =item
39577 #: ../src/guestfs.pod:3011
39578 msgid "C<resize>"
39579 msgstr ""
39580
39581 #. type: textblock
39582 #: ../src/guestfs.pod:3013
39583 msgid "L<virt-resize(1)> command and documentation."
39584 msgstr ""
39585
39586 #. type: =item
39587 #: ../src/guestfs.pod:3015
39588 msgid "C<sparsify>"
39589 msgstr ""
39590
39591 #. type: textblock
39592 #: ../src/guestfs.pod:3017
39593 msgid "L<virt-sparsify(1)> command and documentation."
39594 msgstr ""
39595
39596 #. type: =item
39597 #: ../src/guestfs.pod:3019
39598 msgid "C<src>"
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../src/guestfs.pod:3021
39603 msgid "Source code to the C library."
39604 msgstr ""
39605
39606 #. type: =item
39607 #: ../src/guestfs.pod:3023
39608 msgid "C<tools>"
39609 msgstr ""
39610
39611 #. type: textblock
39612 #: ../src/guestfs.pod:3025
39613 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39614 msgstr ""
39615
39616 #. type: =item
39617 #: ../src/guestfs.pod:3027
39618 msgid "C<test-tool>"
39619 msgstr ""
39620
39621 #. type: textblock
39622 #: ../src/guestfs.pod:3029
39623 msgid ""
39624 "Test tool for end users to test if their qemu/kernel combination will work "
39625 "with libguestfs."
39626 msgstr ""
39627
39628 #. type: =item
39629 #: ../src/guestfs.pod:3032
39630 msgid "C<csharp>"
39631 msgstr ""
39632
39633 #. type: =item
39634 #: ../src/guestfs.pod:3034
39635 msgid "C<erlang>"
39636 msgstr ""
39637
39638 #. type: =item
39639 #: ../src/guestfs.pod:3036
39640 msgid "C<haskell>"
39641 msgstr ""
39642
39643 #. type: =item
39644 #: ../src/guestfs.pod:3038
39645 msgid "C<java>"
39646 msgstr ""
39647
39648 #. type: =item
39649 #: ../src/guestfs.pod:3040
39650 msgid "C<ocaml>"
39651 msgstr ""
39652
39653 #. type: =item
39654 #: ../src/guestfs.pod:3042
39655 msgid "C<php>"
39656 msgstr ""
39657
39658 #. type: =item
39659 #: ../src/guestfs.pod:3044
39660 msgid "C<perl>"
39661 msgstr ""
39662
39663 #. type: =item
39664 #: ../src/guestfs.pod:3046
39665 msgid "C<python>"
39666 msgstr ""
39667
39668 #. type: =item
39669 #: ../src/guestfs.pod:3048
39670 msgid "C<ruby>"
39671 msgstr ""
39672
39673 #. type: textblock
39674 #: ../src/guestfs.pod:3050
39675 msgid "Language bindings."
39676 msgstr ""
39677
39678 #. type: =head2
39679 #: ../src/guestfs.pod:3054
39680 msgid "MAKING A STABLE RELEASE"
39681 msgstr ""
39682
39683 #. type: textblock
39684 #: ../src/guestfs.pod:3056
39685 msgid ""
39686 "When we make a stable release, there are several steps documented here.  See "
39687 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39688 "branch policy."
39689 msgstr ""
39690
39691 #. type: textblock
39692 #: ../src/guestfs.pod:3064
39693 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39694 msgstr ""
39695
39696 #. type: textblock
39697 #: ../src/guestfs.pod:3069
39698 msgid "Finalize RELEASE-NOTES."
39699 msgstr ""
39700
39701 #. type: textblock
39702 #: ../src/guestfs.pod:3073
39703 msgid "Update ROADMAP."
39704 msgstr ""
39705
39706 #. type: textblock
39707 #: ../src/guestfs.pod:3077
39708 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39709 msgstr ""
39710
39711 #. type: textblock
39712 #: ../src/guestfs.pod:3081
39713 msgid "Push and pull from Transifex."
39714 msgstr ""
39715
39716 #. type: textblock
39717 #: ../src/guestfs.pod:3083
39718 msgid "Run:"
39719 msgstr ""
39720
39721 #. type: verbatim
39722 #: ../src/guestfs.pod:3085
39723 #, no-wrap
39724 msgid ""
39725 " tx push -s\n"
39726 "\n"
39727 msgstr ""
39728
39729 #. type: textblock
39730 #: ../src/guestfs.pod:3087
39731 msgid "to push the latest POT files to Transifex.  Then run:"
39732 msgstr ""
39733
39734 #. type: verbatim
39735 #: ../src/guestfs.pod:3089
39736 #, no-wrap
39737 msgid ""
39738 " ./tx-pull.sh\n"
39739 "\n"
39740 msgstr ""
39741
39742 #. type: textblock
39743 #: ../src/guestfs.pod:3091
39744 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39745 msgstr ""
39746
39747 #. type: textblock
39748 #: ../src/guestfs.pod:3095
39749 msgid ""
39750 "Create new stable and development directories under "
39751 "L<http://libguestfs.org/download>."
39752 msgstr ""
39753
39754 #. type: textblock
39755 #: ../src/guestfs.pod:3100
39756 msgid "Create the branch in git:"
39757 msgstr ""
39758
39759 #. type: verbatim
39760 #: ../src/guestfs.pod:3102
39761 #, no-wrap
39762 msgid ""
39763 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39764 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39765 " git branch stable-1.XX\n"
39766 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39767 "\n"
39768 msgstr ""
39769
39770 #. type: =head1
39771 #: ../src/guestfs.pod:3109
39772 msgid "LIMITS"
39773 msgstr ""
39774
39775 #. type: =head2
39776 #: ../src/guestfs.pod:3111
39777 msgid "PROTOCOL LIMITS"
39778 msgstr ""
39779
39780 #. type: textblock
39781 #: ../src/guestfs.pod:3113
39782 msgid ""
39783 "Internally libguestfs uses a message-based protocol to pass API calls and "
39784 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39785 "plenty more detail about this).  The maximum message size used by the "
39786 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39787 "aware of this limit.  The API calls which may be affected are individually "
39788 "documented, with a link back to this section of the documentation."
39789 msgstr ""
39790
39791 #. type: textblock
39792 #: ../src/guestfs.pod:3121
39793 msgid ""
39794 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39795 "a simple string.  Because this string is at some point internally encoded as "
39796 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39797 "the requested file is larger than this then you will get an error."
39798 msgstr ""
39799
39800 #. type: textblock
39801 #: ../src/guestfs.pod:3127
39802 msgid ""
39803 "In order to transfer large files into and out of the guest filesystem, you "
39804 "need to use particular calls that support this.  The sections L</UPLOADING> "
39805 "and L</DOWNLOADING> document how to do this."
39806 msgstr ""
39807
39808 #. type: textblock
39809 #: ../src/guestfs.pod:3131
39810 msgid ""
39811 "You might also consider mounting the disk image using our FUSE filesystem "
39812 "support (L<guestmount(1)>)."
39813 msgstr ""
39814
39815 #. type: =head2
39816 #: ../src/guestfs.pod:3134
39817 msgid "MAXIMUM NUMBER OF DISKS"
39818 msgstr ""
39819
39820 #. type: textblock
39821 #: ../src/guestfs.pod:3136
39822 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39823 msgstr ""
39824
39825 #. type: textblock
39826 #: ../src/guestfs.pod:3139
39827 msgid ""
39828 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39829 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39830 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39831 "purposes."
39832 msgstr ""
39833
39834 #. type: textblock
39835 #: ../src/guestfs.pod:3144
39836 msgid ""
39837 "We are working to substantially raise this limit in future versions but it "
39838 "requires complex changes to qemu."
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../src/guestfs.pod:3147
39843 msgid ""
39844 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39845 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39846 "requires changes to qemu."
39847 msgstr ""
39848
39849 #. type: =head2
39850 #: ../src/guestfs.pod:3151
39851 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39852 msgstr ""
39853
39854 #. type: textblock
39855 #: ../src/guestfs.pod:3153
39856 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39857 msgstr ""
39858
39859 #. type: textblock
39860 #: ../src/guestfs.pod:3155
39861 msgid ""
39862 "This is because it reserves 4 bits for the minor device number (thus "
39863 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
39864 msgstr ""
39865
39866 #. type: textblock
39867 #: ../src/guestfs.pod:3158
39868 msgid ""
39869 "If you attach a disk with more than 15 partitions, the extra partitions are "
39870 "ignored by libguestfs."
39871 msgstr ""
39872
39873 #. type: =head2
39874 #: ../src/guestfs.pod:3161
39875 msgid "MAXIMUM SIZE OF A DISK"
39876 msgstr ""
39877
39878 #. type: textblock
39879 #: ../src/guestfs.pod:3163
39880 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39881 msgstr ""
39882
39883 #. type: textblock
39884 #: ../src/guestfs.pod:3165
39885 msgid ""
39886 "We have tested block devices up to 1 exabyte (2**60 or "
39887 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39888 "filesystem."
39889 msgstr ""
39890
39891 #. type: textblock
39892 #: ../src/guestfs.pod:3169
39893 msgid ""
39894 "Although libguestfs probably does not impose any limit, the underlying host "
39895 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39896 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39897 "TB).  If you store disk images as host logical volumes then you are limited "
39898 "by the maximum size of an LV."
39899 msgstr ""
39900
39901 #. type: textblock
39902 #: ../src/guestfs.pod:3175
39903 msgid ""
39904 "For the hugest disk image files, we recommend using XFS on the host for "
39905 "storage."
39906 msgstr ""
39907
39908 #. type: =head2
39909 #: ../src/guestfs.pod:3178
39910 msgid "MAXIMUM SIZE OF A PARTITION"
39911 msgstr ""
39912
39913 #. type: textblock
39914 #: ../src/guestfs.pod:3180
39915 msgid ""
39916 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39917 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
39918 "address a partition located beyond 2 TB on the disk."
39919 msgstr ""
39920
39921 #. type: textblock
39922 #: ../src/guestfs.pod:3184
39923 msgid ""
39924 "It is recommended that you use GPT partitions on disks which are larger than "
39925 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
39926 "which are theoretically larger than the largest disk we could support."
39927 msgstr ""
39928
39929 #. type: =head2
39930 #: ../src/guestfs.pod:3189
39931 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39932 msgstr ""
39933
39934 #. type: textblock
39935 #: ../src/guestfs.pod:3191
39936 msgid ""
39937 "This depends on the filesystem type.  libguestfs itself does not impose any "
39938 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
39939 "what these limits are."
39940 msgstr ""
39941
39942 #. type: =head2
39943 #: ../src/guestfs.pod:3195
39944 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39945 msgstr ""
39946
39947 #. type: textblock
39948 #: ../src/guestfs.pod:3197
39949 msgid ""
39950 "The API functions L</guestfs_upload>, L</guestfs_download>, "
39951 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39952 "uploads and downloads."
39953 msgstr ""
39954
39955 #. type: =head2
39956 #: ../src/guestfs.pod:3201
39957 msgid "INSPECTION LIMITS"
39958 msgstr ""
39959
39960 #. type: textblock
39961 #: ../src/guestfs.pod:3203
39962 msgid ""
39963 "The inspection code has several arbitrary limits on things like the size of "
39964 "Windows Registry hive it will read, and the length of product name.  These "
39965 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39966 "memory and disk space on the host, and should not be reached in practice.  "
39967 "See the source code for more information."
39968 msgstr ""
39969
39970 #. type: textblock
39971 #: ../src/guestfs.pod:3229
39972 msgid ""
39973 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
39974 "effect as calling C<guestfs_set_verbose (g, 1)>."
39975 msgstr ""
39976
39977 #. type: textblock
39978 #: ../src/guestfs.pod:3241
39979 msgid ""
39980 "Set the path that libguestfs uses to search for a supermin appliance.  See "
39981 "the discussion of paths in section L</PATH> above."
39982 msgstr ""
39983
39984 #. type: textblock
39985 #: ../src/guestfs.pod:3250
39986 msgid "See also L</QEMU WRAPPERS> above."
39987 msgstr ""
39988
39989 #. type: textblock
39990 #: ../src/guestfs.pod:3254
39991 msgid ""
39992 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
39993 "effect as calling C<guestfs_set_trace (g, 1)>."
39994 msgstr ""
39995
39996 #. type: textblock
39997 #: ../src/guestfs.pod:3272
39998 msgid ""
39999 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
40000 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
40001 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
40002 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
40003 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
40004 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40005 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
40006 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
40007 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
40008 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40009 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
40010 "L<http://libguestfs.org/>."
40011 msgstr ""
40012
40013 #. type: textblock
40014 #: ../src/guestfs.pod:3308
40015 msgid ""
40016 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
40017 "L<lvm(8)>, L<disktype(1)>."
40018 msgstr ""
40019
40020 #. type: =head1
40021 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
40022 msgid "BUGS"
40023 msgstr ""
40024
40025 #. type: textblock
40026 #: ../src/guestfs.pod:3317
40027 msgid "To get a list of bugs against libguestfs use this link:"
40028 msgstr ""
40029
40030 #. type: textblock
40031 #: ../src/guestfs.pod:3319
40032 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
40033 msgstr ""
40034
40035 #. type: textblock
40036 #: ../src/guestfs.pod:3321
40037 msgid "To report a new bug against libguestfs use this link:"
40038 msgstr ""
40039
40040 #. type: textblock
40041 #: ../src/guestfs.pod:3323
40042 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
40043 msgstr ""
40044
40045 #. type: textblock
40046 #: ../src/guestfs.pod:3325
40047 msgid "When reporting a bug, please check:"
40048 msgstr ""
40049
40050 #. type: textblock
40051 #: ../src/guestfs.pod:3331
40052 msgid "That the bug hasn't been reported already."
40053 msgstr ""
40054
40055 #. type: textblock
40056 #: ../src/guestfs.pod:3335
40057 msgid "That you are testing a recent version."
40058 msgstr ""
40059
40060 #. type: textblock
40061 #: ../src/guestfs.pod:3339
40062 msgid "Describe the bug accurately, and give a way to reproduce it."
40063 msgstr ""
40064
40065 #. type: textblock
40066 #: ../src/guestfs.pod:3343
40067 msgid ""
40068 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40069 "bug report."
40070 msgstr ""
40071
40072 #. type: textblock
40073 #: ../test-tool/libguestfs-test-tool.pod:5
40074 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40075 msgstr ""
40076
40077 #. type: verbatim
40078 #: ../test-tool/libguestfs-test-tool.pod:9
40079 #, no-wrap
40080 msgid ""
40081 " libguestfs-test-tool [--options]\n"
40082 "\n"
40083 msgstr ""
40084
40085 #. type: textblock
40086 #: ../test-tool/libguestfs-test-tool.pod:13
40087 msgid ""
40088 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40089 "to check basic libguestfs functionality is working.  This is needed because "
40090 "libguestfs occasionally breaks for reasons beyond our control: usually "
40091 "because of changes in the underlying qemu or kernel packages, or the host "
40092 "environment."
40093 msgstr ""
40094
40095 #. type: textblock
40096 #: ../test-tool/libguestfs-test-tool.pod:19
40097 msgid "If you suspect a problem in libguestfs, then just run:"
40098 msgstr ""
40099
40100 #. type: verbatim
40101 #: ../test-tool/libguestfs-test-tool.pod:21
40102 #, no-wrap
40103 msgid ""
40104 " libguestfs-test-tool\n"
40105 "\n"
40106 msgstr ""
40107
40108 #. type: textblock
40109 #: ../test-tool/libguestfs-test-tool.pod:23
40110 msgid "It will print lots of diagnostic messages."
40111 msgstr ""
40112
40113 #. type: textblock
40114 #: ../test-tool/libguestfs-test-tool.pod:25
40115 msgid "If it runs to completion successfully, you will see this near the end:"
40116 msgstr ""
40117
40118 #. type: verbatim
40119 #: ../test-tool/libguestfs-test-tool.pod:27
40120 #, no-wrap
40121 msgid ""
40122 " ===== TEST FINISHED OK =====\n"
40123 "\n"
40124 msgstr ""
40125
40126 #. type: textblock
40127 #: ../test-tool/libguestfs-test-tool.pod:29
40128 msgid "and the test tool will exit with code 0."
40129 msgstr ""
40130
40131 #. type: textblock
40132 #: ../test-tool/libguestfs-test-tool.pod:31
40133 msgid ""
40134 "If it fails (and/or exits with non-zero error code), please paste the "
40135 "I<complete, unedited> output of the test tool into a bug report.  More "
40136 "information about reporting bugs can be found on the "
40137 "L<http://libguestfs.org/> website."
40138 msgstr ""
40139
40140 #. type: textblock
40141 #: ../test-tool/libguestfs-test-tool.pod:42
40142 msgid "Display short usage information and exit."
40143 msgstr ""
40144
40145 #. type: =item
40146 #: ../test-tool/libguestfs-test-tool.pod:44
40147 msgid "B<--qemu qemu_binary>"
40148 msgstr ""
40149
40150 #. type: textblock
40151 #: ../test-tool/libguestfs-test-tool.pod:46
40152 msgid ""
40153 "If you have downloaded another qemu binary, point this option at the full "
40154 "path of the binary to try it."
40155 msgstr ""
40156
40157 #. type: =item
40158 #: ../test-tool/libguestfs-test-tool.pod:49
40159 msgid "B<--qemudir qemu_source_dir>"
40160 msgstr ""
40161
40162 #. type: textblock
40163 #: ../test-tool/libguestfs-test-tool.pod:51
40164 msgid ""
40165 "If you have compiled qemu from source, point this option at the source "
40166 "directory to try it."
40167 msgstr ""
40168
40169 #. type: =item
40170 #: ../test-tool/libguestfs-test-tool.pod:54
40171 msgid "B<-t N>"
40172 msgstr ""
40173
40174 #. type: =item
40175 #: ../test-tool/libguestfs-test-tool.pod:56
40176 msgid "B<--timeout N>"
40177 msgstr ""
40178
40179 #. type: textblock
40180 #: ../test-tool/libguestfs-test-tool.pod:58
40181 msgid ""
40182 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40183 "minutes) which does not usually need to be adjusted."
40184 msgstr ""
40185
40186 #. type: =head1
40187 #: ../test-tool/libguestfs-test-tool.pod:63
40188 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40189 msgstr ""
40190
40191 #. type: textblock
40192 #: ../test-tool/libguestfs-test-tool.pod:65
40193 msgid ""
40194 "If you have compiled another version of qemu from source and would like to "
40195 "try that, then you can use the I<--qemudir> option to point to the qemu "
40196 "source directory."
40197 msgstr ""
40198
40199 #. type: textblock
40200 #: ../test-tool/libguestfs-test-tool.pod:69
40201 msgid ""
40202 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40203 "option to point to the binary."
40204 msgstr ""
40205
40206 #. type: textblock
40207 #: ../test-tool/libguestfs-test-tool.pod:72
40208 msgid ""
40209 "Note when using these options, you can ignore the business of qemu wrapper "
40210 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40211 "wrapper script for you if one is needed."
40212 msgstr ""
40213
40214 #. type: =head1
40215 #: ../test-tool/libguestfs-test-tool.pod:76
40216 msgid "TRYING OUT A DIFFERENT KERNEL"
40217 msgstr ""
40218
40219 #. type: textblock
40220 #: ../test-tool/libguestfs-test-tool.pod:78
40221 msgid ""
40222 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40223 "libguestfs tries.  You do this by setting the environment variables "
40224 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40225 msgstr ""
40226
40227 #. type: textblock
40228 #: ../test-tool/libguestfs-test-tool.pod:82
40229 msgid ""
40230 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40231 "information."
40232 msgstr ""
40233
40234 #. type: =head1
40235 #: ../test-tool/libguestfs-test-tool.pod:85
40236 msgid "SELF-DIAGNOSIS"
40237 msgstr ""
40238
40239 #. type: textblock
40240 #: ../test-tool/libguestfs-test-tool.pod:87
40241 msgid ""
40242 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40243 "produced by libguestfs-test-tool and/or possible errors."
40244 msgstr ""
40245
40246 #. type: textblock
40247 #: ../test-tool/libguestfs-test-tool.pod:92
40248 msgid ""
40249 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40250 "I<1> if there was an error."
40251 msgstr ""
40252
40253 #. type: textblock
40254 #: ../test-tool/libguestfs-test-tool.pod:97
40255 msgid ""
40256 "For the full list of environment variables which may affect libguestfs, "
40257 "please see the L<guestfs(3)> manual page."
40258 msgstr ""
40259
40260 #. type: textblock
40261 #: ../test-tool/libguestfs-test-tool.pod:102
40262 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40263 msgstr ""
40264
40265 #. type: textblock
40266 #: ../tools/virt-list-filesystems.pl:32
40267 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40268 msgstr ""
40269
40270 #. type: verbatim
40271 #: ../tools/virt-list-filesystems.pl:36
40272 #, no-wrap
40273 msgid ""
40274 " virt-list-filesystems [--options] domname\n"
40275 "\n"
40276 msgstr ""
40277
40278 #. type: verbatim
40279 #: ../tools/virt-list-filesystems.pl:38
40280 #, no-wrap
40281 msgid ""
40282 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40283 "\n"
40284 msgstr ""
40285
40286 #. type: textblock
40287 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40288 msgid ""
40289 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40290 "replacement."
40291 msgstr ""
40292
40293 #. type: textblock
40294 #: ../tools/virt-list-filesystems.pl:45
40295 msgid ""
40296 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40297 "are contained in a virtual machine or disk image."
40298 msgstr ""
40299
40300 #. type: textblock
40301 #: ../tools/virt-list-filesystems.pl:49
40302 msgid ""
40303 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40304 "functionality.  For more complex cases you should look at the "
40305 "L<guestfish(1)> tool."
40306 msgstr ""
40307
40308 #. type: textblock
40309 #: ../tools/virt-list-filesystems.pl:112
40310 msgid ""
40311 "With this option, C<virt-list-filesystems> displays the type of each "
40312 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40313 msgstr ""
40314
40315 #. type: =item
40316 #: ../tools/virt-list-filesystems.pl:119
40317 msgid "B<-a>"
40318 msgstr ""
40319
40320 #. type: textblock
40321 #: ../tools/virt-list-filesystems.pl:123
40322 msgid ""
40323 "Normally we only show mountable filesystems.  If this option is given then "
40324 "swap devices are shown too."
40325 msgstr ""
40326
40327 #. type: textblock
40328 #: ../tools/virt-list-filesystems.pl:197
40329 msgid ""
40330 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
40331 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
40332 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40333 msgstr ""
40334
40335 #. type: textblock
40336 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40337 msgid "Copyright (C) 2009 Red Hat Inc."
40338 msgstr ""
40339
40340 #. type: textblock
40341 #: ../tools/virt-list-partitions.pl:32
40342 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
40343 msgstr ""
40344
40345 #. type: verbatim
40346 #: ../tools/virt-list-partitions.pl:36
40347 #, no-wrap
40348 msgid ""
40349 " virt-list-partitions [--options] domname\n"
40350 "\n"
40351 msgstr ""
40352
40353 #. type: verbatim
40354 #: ../tools/virt-list-partitions.pl:38
40355 #, no-wrap
40356 msgid ""
40357 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40358 "\n"
40359 msgstr ""
40360
40361 #. type: textblock
40362 #: ../tools/virt-list-partitions.pl:45
40363 msgid ""
40364 "C<virt-list-partitions> is a command line tool to list the partitions that "
40365 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40366 "first step to using L<virt-resize(1)>."
40367 msgstr ""
40368
40369 #. type: textblock
40370 #: ../tools/virt-list-partitions.pl:50
40371 msgid ""
40372 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40373 "functionality.  For more complex cases you should look at the "
40374 "L<guestfish(1)> tool."
40375 msgstr ""
40376
40377 #. type: textblock
40378 #: ../tools/virt-list-partitions.pl:113
40379 msgid "Show sizes in human-readable form (eg. \"1G\")."
40380 msgstr ""
40381
40382 #. type: textblock
40383 #: ../tools/virt-list-partitions.pl:123
40384 msgid ""
40385 "With this option, C<virt-list-partitions> displays the type and size of each "
40386 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40387 msgstr ""
40388
40389 #. type: =item
40390 #: ../tools/virt-list-partitions.pl:130
40391 msgid "B<-t>"
40392 msgstr ""
40393
40394 #. type: =item
40395 #: ../tools/virt-list-partitions.pl:132
40396 msgid "B<--total>"
40397 msgstr ""
40398
40399 #. type: textblock
40400 #: ../tools/virt-list-partitions.pl:134
40401 msgid "Display the total size of each block device (as a separate row or rows)."
40402 msgstr ""
40403
40404 #. type: textblock
40405 #: ../tools/virt-list-partitions.pl:267
40406 msgid ""
40407 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
40408 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
40409 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40410 msgstr ""
40411
40412 #. type: textblock
40413 #: ../tools/virt-list-partitions.pl:283
40414 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40415 msgstr ""
40416
40417 #. type: textblock
40418 #: ../tools/virt-make-fs.pl:37
40419 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40420 msgstr ""
40421
40422 #. type: verbatim
40423 #: ../tools/virt-make-fs.pl:41
40424 #, no-wrap
40425 msgid ""
40426 " virt-make-fs [--options] input.tar output.img\n"
40427 "\n"
40428 msgstr ""
40429
40430 #. type: verbatim
40431 #: ../tools/virt-make-fs.pl:43
40432 #, no-wrap
40433 msgid ""
40434 " virt-make-fs [--options] input.tar.gz output.img\n"
40435 "\n"
40436 msgstr ""
40437
40438 #. type: verbatim
40439 #: ../tools/virt-make-fs.pl:45
40440 #, no-wrap
40441 msgid ""
40442 " virt-make-fs [--options] directory output.img\n"
40443 "\n"
40444 msgstr ""
40445
40446 #. type: textblock
40447 #: ../tools/virt-make-fs.pl:49
40448 msgid ""
40449 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40450 "archive or some files in a directory.  It is similar to tools like "
40451 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
40452 "it can create common filesystem types like ext2/3 or NTFS, which can be "
40453 "useful if you want to attach these filesystems to existing virtual machines "
40454 "(eg. to import large amounts of read-only data to a VM)."
40455 msgstr ""
40456
40457 #. type: textblock
40458 #: ../tools/virt-make-fs.pl:57
40459 msgid "Basic usage is:"
40460 msgstr ""
40461
40462 #. type: verbatim
40463 #: ../tools/virt-make-fs.pl:59
40464 #, no-wrap
40465 msgid ""
40466 " virt-make-fs input output.img\n"
40467 "\n"
40468 msgstr ""
40469
40470 #. type: textblock
40471 #: ../tools/virt-make-fs.pl:61
40472 msgid ""
40473 "where C<input> is either a directory containing files that you want to add, "
40474 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40475 "C<output.img> is a disk image.  The input type is detected automatically.  "
40476 "The output disk image defaults to a raw ext2 sparse image unless you specify "
40477 "extra flags (see L</OPTIONS> below)."
40478 msgstr ""
40479
40480 #. type: =head2
40481 #: ../tools/virt-make-fs.pl:67
40482 msgid "FILESYSTEM TYPE"
40483 msgstr ""
40484
40485 #. type: textblock
40486 #: ../tools/virt-make-fs.pl:69
40487 msgid ""
40488 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40489 "libguestfs supports can be used (but I<not> read-only formats like "
40490 "ISO9660).  Here are some of the more common choices:"
40491 msgstr ""
40492
40493 #. type: =item
40494 #: ../tools/virt-make-fs.pl:75
40495 msgid "I<ext3>"
40496 msgstr ""
40497
40498 #. type: textblock
40499 #: ../tools/virt-make-fs.pl:77
40500 msgid ""
40501 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40502 "you are not going to use the filesystem in a way that requires the journal, "
40503 "then this is just wasted overhead."
40504 msgstr ""
40505
40506 #. type: =item
40507 #: ../tools/virt-make-fs.pl:81
40508 msgid "I<ntfs> or I<vfat>"
40509 msgstr ""
40510
40511 #. type: textblock
40512 #: ../tools/virt-make-fs.pl:83
40513 msgid "Useful if exporting data to a Windows guest."
40514 msgstr ""
40515
40516 #. type: textblock
40517 #: ../tools/virt-make-fs.pl:85
40518 msgid ""
40519 "I<Note for vfat>: The tar archive or local directory must only contain files "
40520 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40521 "program running within libguestfs is unable to change the ownership of "
40522 "non-root files, since vfat itself does not support this."
40523 msgstr ""
40524
40525 #. type: =item
40526 #: ../tools/virt-make-fs.pl:90
40527 msgid "I<minix>"
40528 msgstr ""
40529
40530 #. type: textblock
40531 #: ../tools/virt-make-fs.pl:92
40532 msgid ""
40533 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40534 "total filesystem size."
40535 msgstr ""
40536
40537 #. type: =head3
40538 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
40539 msgid "EXAMPLE"
40540 msgstr ""
40541
40542 #. type: verbatim
40543 #: ../tools/virt-make-fs.pl:99
40544 #, no-wrap
40545 msgid ""
40546 " virt-make-fs --type=minix input minixfs.img\n"
40547 "\n"
40548 msgstr ""
40549
40550 #. type: =head2
40551 #: ../tools/virt-make-fs.pl:101
40552 msgid "TO PARTITION OR NOT TO PARTITION"
40553 msgstr ""
40554
40555 #. type: textblock
40556 #: ../tools/virt-make-fs.pl:103
40557 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40558 msgstr ""
40559
40560 #. type: textblock
40561 #: ../tools/virt-make-fs.pl:105
40562 msgid ""
40563 "Adding a partition can make the disk image more compatible with certain "
40564 "virtualized operating systems which don't expect to see a filesystem "
40565 "directly located on a block device (Linux doesn't care and will happily "
40566 "handle both types)."
40567 msgstr ""
40568
40569 #. type: textblock
40570 #: ../tools/virt-make-fs.pl:110
40571 msgid ""
40572 "On the other hand, if you have a partition table then the output image is no "
40573 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40574 "directly on a partitioned disk image.  (However libguestfs tools such as "
40575 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40576 msgstr ""
40577
40578 #. type: textblock
40579 #: ../tools/virt-make-fs.pl:118
40580 msgid "Add an MBR partition:"
40581 msgstr ""
40582
40583 #. type: verbatim
40584 #: ../tools/virt-make-fs.pl:120
40585 #, no-wrap
40586 msgid ""
40587 " virt-make-fs --partition -- input disk.img\n"
40588 "\n"
40589 msgstr ""
40590
40591 #. type: textblock
40592 #: ../tools/virt-make-fs.pl:122
40593 msgid ""
40594 "If the output disk image could be terabyte-sized or larger, it's better to "
40595 "use an EFI/GPT-compatible partition table:"
40596 msgstr ""
40597
40598 #. type: verbatim
40599 #: ../tools/virt-make-fs.pl:125
40600 #, no-wrap
40601 msgid ""
40602 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40603 "\n"
40604 msgstr ""
40605
40606 #. type: =head2
40607 #: ../tools/virt-make-fs.pl:127
40608 msgid "EXTRA SPACE"
40609 msgstr ""
40610
40611 #. type: textblock
40612 #: ../tools/virt-make-fs.pl:129
40613 msgid ""
40614 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40615 "the files that it contains, but might have extra space.  Depending on how "
40616 "you are going to use the output, you might think this extra space is wasted "
40617 "and want to minimize it, or you might want to leave space so that more files "
40618 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40619 "but you can use the I<--size> flag to leave space in the filesystem if you "
40620 "want it."
40621 msgstr ""
40622
40623 #. type: textblock
40624 #: ../tools/virt-make-fs.pl:137
40625 msgid ""
40626 "An alternative way to leave extra space but not make the output image any "
40627 "bigger is to use an alternative disk image format (instead of the default "
40628 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40629 "image format (check your hypervisor supports this before using it).  This "
40630 "allows you to choose a large I<--size> but the extra space won't actually be "
40631 "allocated in the image until you try to store something in it."
40632 msgstr ""
40633
40634 #. type: textblock
40635 #: ../tools/virt-make-fs.pl:145
40636 msgid ""
40637 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40638 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40639 "to build another image from scratch."
40640 msgstr ""
40641
40642 #. type: verbatim
40643 #: ../tools/virt-make-fs.pl:151
40644 #, no-wrap
40645 msgid ""
40646 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40647 "\n"
40648 msgstr ""
40649
40650 #. type: textblock
40651 #: ../tools/virt-make-fs.pl:179
40652 msgid "Enable debugging information."
40653 msgstr ""
40654
40655 #. type: =item
40656 #: ../tools/virt-make-fs.pl:185
40657 msgid "B<--size=E<lt>NE<gt>>"
40658 msgstr ""
40659
40660 #. type: =item
40661 #: ../tools/virt-make-fs.pl:187
40662 msgid "B<--size=+E<lt>NE<gt>>"
40663 msgstr ""
40664
40665 #. type: =item
40666 #: ../tools/virt-make-fs.pl:189
40667 msgid "B<-s E<lt>NE<gt>>"
40668 msgstr ""
40669
40670 #. type: =item
40671 #: ../tools/virt-make-fs.pl:191
40672 msgid "B<-s +E<lt>NE<gt>>"
40673 msgstr ""
40674
40675 #. type: textblock
40676 #: ../tools/virt-make-fs.pl:193
40677 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40678 msgstr ""
40679
40680 #. type: textblock
40681 #: ../tools/virt-make-fs.pl:196
40682 msgid ""
40683 "If this option is I<not> given, then the output image will be just large "
40684 "enough to contain all the files, with not much wasted space."
40685 msgstr ""
40686
40687 #. type: textblock
40688 #: ../tools/virt-make-fs.pl:199
40689 msgid ""
40690 "To choose a fixed size output disk, specify an absolute number followed by "
40691 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40692 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40693 "files, else you will get an error."
40694 msgstr ""
40695
40696 #. type: textblock
40697 #: ../tools/virt-make-fs.pl:204
40698 msgid ""
40699 "To leave extra space, specify C<+> (plus sign) and a number followed by "
40700 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40701 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40702 "the input files, and (approximately) an extra 200 MB free space."
40703 msgstr ""
40704
40705 #. type: textblock
40706 #: ../tools/virt-make-fs.pl:210
40707 msgid ""
40708 "Note that virt-make-fs estimates free space, and therefore will not produce "
40709 "filesystems containing precisely the free space requested.  (It is much more "
40710 "expensive and time-consuming to produce a filesystem which has precisely the "
40711 "desired free space)."
40712 msgstr ""
40713
40714 #. type: =item
40715 #: ../tools/virt-make-fs.pl:219
40716 msgid "B<--format=E<lt>fmtE<gt>>"
40717 msgstr ""
40718
40719 #. type: =item
40720 #: ../tools/virt-make-fs.pl:221
40721 msgid "B<-F E<lt>fmtE<gt>>"
40722 msgstr ""
40723
40724 #. type: textblock
40725 #: ../tools/virt-make-fs.pl:223
40726 msgid "Choose the output disk image format."
40727 msgstr ""
40728
40729 #. type: textblock
40730 #: ../tools/virt-make-fs.pl:225
40731 msgid "The default is C<raw> (raw sparse disk image)."
40732 msgstr ""
40733
40734 #. type: textblock
40735 #: ../tools/virt-make-fs.pl:227
40736 msgid ""
40737 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40738 "that would really make sense here is C<qcow2>."
40739 msgstr ""
40740
40741 #. type: =item
40742 #: ../tools/virt-make-fs.pl:234
40743 msgid "B<--type=E<lt>fsE<gt>>"
40744 msgstr ""
40745
40746 #. type: =item
40747 #: ../tools/virt-make-fs.pl:236
40748 msgid "B<-t E<lt>fsE<gt>>"
40749 msgstr ""
40750
40751 #. type: textblock
40752 #: ../tools/virt-make-fs.pl:238
40753 msgid "Choose the output filesystem type."
40754 msgstr ""
40755
40756 #. type: textblock
40757 #: ../tools/virt-make-fs.pl:240
40758 msgid "The default is C<ext2>."
40759 msgstr ""
40760
40761 #. type: textblock
40762 #: ../tools/virt-make-fs.pl:242
40763 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
40764 msgstr ""
40765
40766 #. type: =item
40767 #: ../tools/virt-make-fs.pl:249
40768 msgid "B<--partition>"
40769 msgstr ""
40770
40771 #. type: =item
40772 #: ../tools/virt-make-fs.pl:251
40773 msgid "B<--partition=E<lt>parttypeE<gt>>"
40774 msgstr ""
40775
40776 #. type: textblock
40777 #: ../tools/virt-make-fs.pl:253
40778 msgid ""
40779 "If specified, this flag adds an MBR partition table to the output disk "
40780 "image."
40781 msgstr ""
40782
40783 #. type: textblock
40784 #: ../tools/virt-make-fs.pl:256
40785 msgid ""
40786 "You can change the partition table type, eg. I<--partition=gpt> for large "
40787 "disks."
40788 msgstr ""
40789
40790 #. type: textblock
40791 #: ../tools/virt-make-fs.pl:259
40792 msgid ""
40793 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40794 "might consider the next parameter to be the partition type.  For example:"
40795 msgstr ""
40796
40797 #. type: verbatim
40798 #: ../tools/virt-make-fs.pl:263
40799 #, no-wrap
40800 msgid ""
40801 " virt-make-fs --partition input.tar output.img\n"
40802 "\n"
40803 msgstr ""
40804
40805 #. type: textblock
40806 #: ../tools/virt-make-fs.pl:265
40807 msgid ""
40808 "would cause virt-make-fs to think you wanted to use a partition type of "
40809 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40810 "dash) between options and the input and output arguments:"
40811 msgstr ""
40812
40813 #. type: verbatim
40814 #: ../tools/virt-make-fs.pl:269
40815 #, no-wrap
40816 msgid ""
40817 " virt-make-fs --partition -- input.tar output.img\n"
40818 "\n"
40819 msgstr ""
40820
40821 #. type: textblock
40822 #: ../tools/virt-make-fs.pl:271
40823 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
40824 msgstr ""
40825
40826 #. type: textblock
40827 #: ../tools/virt-make-fs.pl:559
40828 msgid ""
40829 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40830 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
40831 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40832 msgstr ""
40833
40834 #. type: textblock
40835 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
40836 msgid ""
40837 "When reporting bugs, please enable debugging and capture the I<complete> "
40838 "output:"
40839 msgstr ""
40840
40841 #. type: verbatim
40842 #: ../tools/virt-make-fs.pl:576
40843 #, no-wrap
40844 msgid ""
40845 " export LIBGUESTFS_DEBUG=1\n"
40846 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40847 "\n"
40848 msgstr ""
40849
40850 #. type: textblock
40851 #: ../tools/virt-make-fs.pl:579
40852 msgid ""
40853 "Attach /tmp/virt-make-fs.log to a new bug report at "
40854 "L<https://bugzilla.redhat.com/>"
40855 msgstr ""
40856
40857 #. type: textblock
40858 #: ../tools/virt-tar.pl:33
40859 msgid "virt-tar - Extract or upload files to a virtual machine"
40860 msgstr ""
40861
40862 #. type: verbatim
40863 #: ../tools/virt-tar.pl:37
40864 #, no-wrap
40865 msgid ""
40866 " virt-tar [--options] -x domname directory tarball\n"
40867 "\n"
40868 msgstr ""
40869
40870 #. type: verbatim
40871 #: ../tools/virt-tar.pl:39
40872 #, no-wrap
40873 msgid ""
40874 " virt-tar [--options] -u domname tarball directory\n"
40875 "\n"
40876 msgstr ""
40877
40878 #. type: verbatim
40879 #: ../tools/virt-tar.pl:41
40880 #, no-wrap
40881 msgid ""
40882 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40883 "\n"
40884 msgstr ""
40885
40886 #. type: verbatim
40887 #: ../tools/virt-tar.pl:43
40888 #, no-wrap
40889 msgid ""
40890 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40891 "\n"
40892 msgstr ""
40893
40894 #. type: =head2
40895 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40896 msgid "NOTE"
40897 msgstr ""
40898
40899 #. type: textblock
40900 #: ../tools/virt-tar.pl:47
40901 msgid ""
40902 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
40903 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
40904 msgstr ""
40905
40906 #. type: textblock
40907 #: ../tools/virt-tar.pl:52
40908 msgid "Download C</home> from the VM into a local tarball:"
40909 msgstr ""
40910
40911 #. type: verbatim
40912 #: ../tools/virt-tar.pl:54
40913 #, no-wrap
40914 msgid ""
40915 " virt-tar -x domname /home home.tar\n"
40916 "\n"
40917 msgstr ""
40918
40919 #. type: verbatim
40920 #: ../tools/virt-tar.pl:56
40921 #, no-wrap
40922 msgid ""
40923 " virt-tar -zx domname /home home.tar.gz\n"
40924 "\n"
40925 msgstr ""
40926
40927 #. type: textblock
40928 #: ../tools/virt-tar.pl:58
40929 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40930 msgstr ""
40931
40932 #. type: verbatim
40933 #: ../tools/virt-tar.pl:60
40934 #, no-wrap
40935 msgid ""
40936 " virt-tar -u domname uploadstuff.tar /tmp\n"
40937 "\n"
40938 msgstr ""
40939
40940 #. type: verbatim
40941 #: ../tools/virt-tar.pl:62
40942 #, no-wrap
40943 msgid ""
40944 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40945 "\n"
40946 msgstr ""
40947
40948 #. type: textblock
40949 #: ../tools/virt-tar.pl:66
40950 msgid ""
40951 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40952 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
40953 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40954 msgstr ""
40955
40956 #. type: textblock
40957 #: ../tools/virt-tar.pl:71
40958 msgid ""
40959 "You can use I<-x> (extract) on live virtual machines, but you might get "
40960 "inconsistent results or errors if there is filesystem activity inside the "
40961 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
40962 "work, but the only way to guarantee consistent results is if the virtual "
40963 "machine is shut down."
40964 msgstr ""
40965
40966 #. type: textblock
40967 #: ../tools/virt-tar.pl:79
40968 msgid ""
40969 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40970 "parts of a guest filesystem.  There are many possibilities: making backups, "
40971 "uploading data files, snooping on guest activity, fixing or customizing "
40972 "guests, etc."
40973 msgstr ""
40974
40975 #. type: textblock
40976 #: ../tools/virt-tar.pl:84
40977 msgid ""
40978 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
40979 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
40980 "should look at the L<guestfish(1)> tool."
40981 msgstr ""
40982
40983 #. type: textblock
40984 #: ../tools/virt-tar.pl:88
40985 msgid ""
40986 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40987 "its contents (recursively) from the virtual machine into a local tarball.  "
40988 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40989 "virtual machine.  You cannot use these two options together."
40990 msgstr ""
40991
40992 #. type: textblock
40993 #: ../tools/virt-tar.pl:94
40994 msgid ""
40995 "In addition, you may need to use the I<-z> (gZip) option to enable "
40996 "compression.  When uploading, you have to specify I<-z> if the upload file "
40997 "is compressed because virt-tar won't detect this on its own."
40998 msgstr ""
40999
41000 #. type: textblock
41001 #: ../tools/virt-tar.pl:98
41002 msgid ""
41003 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41004 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41005 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41006 "the L<libguestfs(3)> API)."
41007 msgstr ""
41008
41009 #. type: =item
41010 #: ../tools/virt-tar.pl:160
41011 msgid "B<--extract>"
41012 msgstr ""
41013
41014 #. type: =item
41015 #: ../tools/virt-tar.pl:162
41016 msgid "B<--download>"
41017 msgstr ""
41018
41019 #. type: =item
41020 #: ../tools/virt-tar.pl:164
41021 msgid "B<-u>"
41022 msgstr ""
41023
41024 #. type: =item
41025 #: ../tools/virt-tar.pl:166
41026 msgid "B<--upload>"
41027 msgstr ""
41028
41029 #. type: textblock
41030 #: ../tools/virt-tar.pl:168
41031 msgid ""
41032 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41033 "local tarball."
41034 msgstr ""
41035
41036 #. type: textblock
41037 #: ../tools/virt-tar.pl:171
41038 msgid ""
41039 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41040 "Please read the L</WARNING> section above before using this option."
41041 msgstr ""
41042
41043 #. type: textblock
41044 #: ../tools/virt-tar.pl:175
41045 msgid "You must specify exactly one of these options."
41046 msgstr ""
41047
41048 #. type: =item
41049 #: ../tools/virt-tar.pl:181
41050 msgid "B<-z>"
41051 msgstr ""
41052
41053 #. type: =item
41054 #: ../tools/virt-tar.pl:183
41055 msgid "B<--gzip>"
41056 msgstr ""
41057
41058 #. type: textblock
41059 #: ../tools/virt-tar.pl:185
41060 msgid "Specify that the input or output tarball is gzip-compressed."
41061 msgstr ""
41062
41063 #. type: textblock
41064 #: ../tools/virt-tar.pl:298
41065 msgid ""
41066 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
41067 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41068 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
41069 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41070 msgstr ""
41071
41072 #. type: textblock
41073 #: ../tools/virt-win-reg.pl:37
41074 msgid ""
41075 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
41076 "guest"
41077 msgstr ""
41078
41079 #. type: verbatim
41080 #: ../tools/virt-win-reg.pl:41
41081 #, no-wrap
41082 msgid ""
41083 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41084 "\n"
41085 msgstr ""
41086
41087 #. type: verbatim
41088 #: ../tools/virt-win-reg.pl:43
41089 #, no-wrap
41090 msgid ""
41091 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41092 "\n"
41093 msgstr ""
41094
41095 #. type: verbatim
41096 #: ../tools/virt-win-reg.pl:45
41097 #, no-wrap
41098 msgid ""
41099 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41100 "\n"
41101 msgstr ""
41102
41103 #. type: verbatim
41104 #: ../tools/virt-win-reg.pl:47
41105 #, no-wrap
41106 msgid ""
41107 " virt-win-reg --merge domname [input.reg ...]\n"
41108 "\n"
41109 msgstr ""
41110
41111 #. type: verbatim
41112 #: ../tools/virt-win-reg.pl:49
41113 #, no-wrap
41114 msgid ""
41115 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41116 "\n"
41117 msgstr ""
41118
41119 #. type: textblock
41120 #: ../tools/virt-win-reg.pl:53
41121 msgid ""
41122 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41123 "virtual machines.  If you do this, you I<will> get irreversible disk "
41124 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41125 "but doesn't catch all cases."
41126 msgstr ""
41127
41128 #. type: textblock
41129 #: ../tools/virt-win-reg.pl:58
41130 msgid ""
41131 "Modifying the Windows Registry is an inherently risky operation.  The format "
41132 "is deliberately obscure and undocumented, and Registry changes can leave the "
41133 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41134 "you have a reliable backup first."
41135 msgstr ""
41136
41137 #. type: textblock
41138 #: ../tools/virt-win-reg.pl:65
41139 msgid ""
41140 "This program can export and merge Windows Registry entries from a Windows "
41141 "guest."
41142 msgstr ""
41143
41144 #. type: textblock
41145 #: ../tools/virt-win-reg.pl:68
41146 msgid ""
41147 "The first parameter is the libvirt guest name or the raw disk image of a "
41148 "Windows guest."
41149 msgstr ""
41150
41151 #. type: textblock
41152 #: ../tools/virt-win-reg.pl:71
41153 msgid ""
41154 "If I<--merge> is I<not> specified, then the chosen registry key is "
41155 "displayed/exported (recursively).  For example:"
41156 msgstr ""
41157
41158 #. type: verbatim
41159 #: ../tools/virt-win-reg.pl:74
41160 #, no-wrap
41161 msgid ""
41162 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41163 "\n"
41164 msgstr ""
41165
41166 #. type: textblock
41167 #: ../tools/virt-win-reg.pl:76
41168 msgid "You can also display single values from within registry keys, for example:"
41169 msgstr ""
41170
41171 #. type: verbatim
41172 #: ../tools/virt-win-reg.pl:79
41173 #, no-wrap
41174 msgid ""
41175 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41176 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41177 " Windows 7 Enterprise\n"
41178 "\n"
41179 msgstr ""
41180
41181 #. type: textblock
41182 #: ../tools/virt-win-reg.pl:83
41183 msgid ""
41184 "With I<--merge>, you can merge a textual regedit file into the Windows "
41185 "Registry:"
41186 msgstr ""
41187
41188 #. type: verbatim
41189 #: ../tools/virt-win-reg.pl:86
41190 #, no-wrap
41191 msgid ""
41192 " $ virt-win-reg --merge Windows7 changes.reg\n"
41193 "\n"
41194 msgstr ""
41195
41196 #. type: textblock
41197 #: ../tools/virt-win-reg.pl:90
41198 msgid ""
41199 "This program is only meant for simple access to the registry.  If you want "
41200 "to do complicated things with the registry, we suggest you download the "
41201 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41202 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41203 "L<hivexregedit(1)>."
41204 msgstr ""
41205
41206 #. type: =item
41207 #: ../tools/virt-win-reg.pl:159
41208 msgid "B<--merge>"
41209 msgstr ""
41210
41211 #. type: textblock
41212 #: ../tools/virt-win-reg.pl:161
41213 msgid ""
41214 "In merge mode, this merges a textual regedit file into the Windows Registry "
41215 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41216 "displays or exports Registry entries instead."
41217 msgstr ""
41218
41219 #. type: textblock
41220 #: ../tools/virt-win-reg.pl:165
41221 msgid ""
41222 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41223 "result in disk corruption.  However exporting (without this flag)  is always "
41224 "safe."
41225 msgstr ""
41226
41227 #. type: =item
41228 #: ../tools/virt-win-reg.pl:173
41229 msgid "B<--encoding> UTF-16LE|ASCII"
41230 msgstr ""
41231
41232 #. type: textblock
41233 #: ../tools/virt-win-reg.pl:175
41234 msgid ""
41235 "When merging (only), you may need to specify the encoding for strings to be "
41236 "used in the hive file.  This is explained in detail in "
41237 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
41238 msgstr ""
41239
41240 #. type: textblock
41241 #: ../tools/virt-win-reg.pl:179
41242 msgid ""
41243 "The default is to use UTF-16LE, which should work with recent versions of "
41244 "Windows."
41245 msgstr ""
41246
41247 #. type: =item
41248 #: ../tools/virt-win-reg.pl:186
41249 msgid "B<--unsafe-printable-strings>"
41250 msgstr ""
41251
41252 #. type: textblock
41253 #: ../tools/virt-win-reg.pl:188
41254 msgid ""
41255 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41256 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41257 "present."
41258 msgstr ""
41259
41260 #. type: textblock
41261 #: ../tools/virt-win-reg.pl:192
41262 msgid ""
41263 "This is unsafe and does not preserve the fidelity of strings in the original "
41264 "Registry for various reasons:"
41265 msgstr ""
41266
41267 #. type: textblock
41268 #: ../tools/virt-win-reg.pl:199
41269 msgid ""
41270 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41271 "other encodings will be corrupted by this transformation."
41272 msgstr ""
41273
41274 #. type: textblock
41275 #: ../tools/virt-win-reg.pl:204
41276 msgid ""
41277 "Assumes that everything which has type 1 or 2 is really a string and that "
41278 "everything else is not a string, but the type field in real Registries is "
41279 "not reliable."
41280 msgstr ""
41281
41282 #. type: textblock
41283 #: ../tools/virt-win-reg.pl:210
41284 msgid ""
41285 "Loses information about whether a zero codepoint followed the string in the "
41286 "Registry or not."
41287 msgstr ""
41288
41289 #. type: textblock
41290 #: ../tools/virt-win-reg.pl:215
41291 msgid ""
41292 "This all happens because the Registry itself contains no information about "
41293 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41294 msgstr ""
41295
41296 #. type: textblock
41297 #: ../tools/virt-win-reg.pl:219
41298 msgid ""
41299 "You should only use this option for quick hacking and debugging of the "
41300 "Registry contents, and I<never> use it if the output is going to be passed "
41301 "into another program or stored in another Registry."
41302 msgstr ""
41303
41304 #. type: =head1
41305 #: ../tools/virt-win-reg.pl:556
41306 msgid "SUPPORTED SYSTEMS"
41307 msgstr ""
41308
41309 #. type: textblock
41310 #: ../tools/virt-win-reg.pl:558
41311 msgid ""
41312 "The program currently supports Windows NT-derived guests starting with "
41313 "Windows XP through to at least Windows 7."
41314 msgstr ""
41315
41316 #. type: textblock
41317 #: ../tools/virt-win-reg.pl:561
41318 msgid "The following Registry keys are supported:"
41319 msgstr ""
41320
41321 #. type: =item
41322 #: ../tools/virt-win-reg.pl:565
41323 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41324 msgstr ""
41325
41326 #. type: =item
41327 #: ../tools/virt-win-reg.pl:567
41328 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41329 msgstr ""
41330
41331 #. type: =item
41332 #: ../tools/virt-win-reg.pl:569
41333 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41334 msgstr ""
41335
41336 #. type: =item
41337 #: ../tools/virt-win-reg.pl:571
41338 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41339 msgstr ""
41340
41341 #. type: =item
41342 #: ../tools/virt-win-reg.pl:573
41343 msgid "C<HKEY_USERS\\.DEFAULT>"
41344 msgstr ""
41345
41346 #. type: =item
41347 #: ../tools/virt-win-reg.pl:575
41348 msgid "C<HKEY_USERS\\I<SID>>"
41349 msgstr ""
41350
41351 #. type: textblock
41352 #: ../tools/virt-win-reg.pl:577
41353 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41354 msgstr ""
41355
41356 #. type: =item
41357 #: ../tools/virt-win-reg.pl:579
41358 msgid "C<HKEY_USERS\\I<username>>"
41359 msgstr ""
41360
41361 #. type: textblock
41362 #: ../tools/virt-win-reg.pl:581
41363 msgid "where I<username> is a local user name (this is a libguestfs extension)."
41364 msgstr ""
41365
41366 #. type: textblock
41367 #: ../tools/virt-win-reg.pl:585
41368 msgid ""
41369 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41370 "C<HKEY_USERS>."
41371 msgstr ""
41372
41373 #. type: textblock
41374 #: ../tools/virt-win-reg.pl:588
41375 msgid ""
41376 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41377 "supported (there is no \"current user\")."
41378 msgstr ""
41379
41380 #. type: =head1
41381 #: ../tools/virt-win-reg.pl:591
41382 msgid "ENCODING"
41383 msgstr ""
41384
41385 #. type: textblock
41386 #: ../tools/virt-win-reg.pl:593
41387 msgid ""
41388 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41389 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
41390 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
41391 "with Windows-style line endings, you may need to reencode the whole file "
41392 "before or after processing."
41393 msgstr ""
41394
41395 #. type: textblock
41396 #: ../tools/virt-win-reg.pl:599
41397 msgid ""
41398 "To reencode a file from Windows format to Linux (before processing it with "
41399 "the I<--merge> option), you would do something like this:"
41400 msgstr ""
41401
41402 #. type: verbatim
41403 #: ../tools/virt-win-reg.pl:602
41404 #, no-wrap
41405 msgid ""
41406 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41407 "\n"
41408 msgstr ""
41409
41410 #. type: textblock
41411 #: ../tools/virt-win-reg.pl:604
41412 msgid ""
41413 "To go in the opposite direction, after exporting and before sending the file "
41414 "to a Windows user, do something like this:"
41415 msgstr ""
41416
41417 #. type: verbatim
41418 #: ../tools/virt-win-reg.pl:607
41419 #, no-wrap
41420 msgid ""
41421 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41422 "\n"
41423 msgstr ""
41424
41425 #. type: textblock
41426 #: ../tools/virt-win-reg.pl:609
41427 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41428 msgstr ""
41429
41430 #. type: textblock
41431 #: ../tools/virt-win-reg.pl:611
41432 msgid ""
41433 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41434 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
41435 "Windows-style (CRLF) line endings, like this:"
41436 msgstr ""
41437
41438 #. type: verbatim
41439 #: ../tools/virt-win-reg.pl:615
41440 #, no-wrap
41441 msgid ""
41442 " $ file software.reg\n"
41443 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41444 " with CRLF line terminators\n"
41445 "\n"
41446 msgstr ""
41447
41448 #. type: textblock
41449 #: ../tools/virt-win-reg.pl:619
41450 msgid "This file would need conversion before you could I<--merge> it."
41451 msgstr ""
41452
41453 #. type: =head1
41454 #: ../tools/virt-win-reg.pl:621
41455 msgid "CurrentControlSet etc."
41456 msgstr ""
41457
41458 #. type: textblock
41459 #: ../tools/virt-win-reg.pl:623
41460 msgid ""
41461 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41462 "Registry at the level of the hive file, and therefore you cannot modify "
41463 "these."
41464 msgstr ""
41465
41466 #. type: textblock
41467 #: ../tools/virt-win-reg.pl:627
41468 msgid ""
41469 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41470 "circumstances it might refer to another control set.  The way to find out is "
41471 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41472 msgstr ""
41473
41474 #. type: verbatim
41475 #: ../tools/virt-win-reg.pl:631
41476 #, no-wrap
41477 msgid ""
41478 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41479 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41480 " \"Current\"=dword:00000001\n"
41481 " \"Default\"=dword:00000001\n"
41482 " \"Failed\"=dword:00000000\n"
41483 " \"LastKnownGood\"=dword:00000002\n"
41484 "\n"
41485 msgstr ""
41486
41487 #. type: textblock
41488 #: ../tools/virt-win-reg.pl:638
41489 msgid "\"Current\" is the one which Windows will choose when it boots."
41490 msgstr ""
41491
41492 #. type: textblock
41493 #: ../tools/virt-win-reg.pl:640
41494 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
41495 msgstr ""
41496
41497 #. type: =head1
41498 #: ../tools/virt-win-reg.pl:643
41499 msgid "DELETING REGISTRY KEYS AND VALUES"
41500 msgstr ""
41501
41502 #. type: textblock
41503 #: ../tools/virt-win-reg.pl:645
41504 msgid "To delete a whole registry key, use the syntax:"
41505 msgstr ""
41506
41507 #. type: verbatim
41508 #: ../tools/virt-win-reg.pl:647
41509 #, no-wrap
41510 msgid ""
41511 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
41512 "\n"
41513 msgstr ""
41514
41515 #. type: textblock
41516 #: ../tools/virt-win-reg.pl:649
41517 msgid "To delete a single value within a key, use the syntax:"
41518 msgstr ""
41519
41520 #. type: verbatim
41521 #: ../tools/virt-win-reg.pl:651
41522 #, no-wrap
41523 msgid ""
41524 " [HKEY_LOCAL_MACHINE\\Foo]\n"
41525 " \"Value\"=-\n"
41526 "\n"
41527 msgstr ""
41528
41529 #. type: =head1
41530 #: ../tools/virt-win-reg.pl:654
41531 msgid "WINDOWS TIPS"
41532 msgstr ""
41533
41534 #. type: textblock
41535 #: ../tools/virt-win-reg.pl:656
41536 msgid ""
41537 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41538 "be shut off, else you will get disk corruption."
41539 msgstr ""
41540
41541 #. type: =head2
41542 #: ../tools/virt-win-reg.pl:659
41543 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41544 msgstr ""
41545
41546 #. type: textblock
41547 #: ../tools/virt-win-reg.pl:661
41548 msgid ""
41549 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41550 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41551 "is uploaded into C<C:\\>:"
41552 msgstr ""
41553
41554 #. type: verbatim
41555 #: ../tools/virt-win-reg.pl:665
41556 #, no-wrap
41557 msgid ""
41558 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41559 "\n"
41560 msgstr ""
41561
41562 #. type: textblock
41563 #: ../tools/virt-win-reg.pl:667
41564 msgid "Prepare a regedit file containing the registry change:"
41565 msgstr ""
41566
41567 #. type: verbatim
41568 #: ../tools/virt-win-reg.pl:669
41569 #, no-wrap
41570 msgid ""
41571 " cat > test.reg <<'EOF'\n"
41572 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41573 " \"Test\"=\"c:\\\\test.bat\"\n"
41574 " EOF\n"
41575 "\n"
41576 msgstr ""
41577
41578 #. type: textblock
41579 #: ../tools/virt-win-reg.pl:674
41580 msgid ""
41581 "In this example we use the key C<RunOnce> which means that the script will "
41582 "run precisely once when the first user logs in.  If you want it to run every "
41583 "time a user logs in, replace C<RunOnce> with C<Run>."
41584 msgstr ""
41585
41586 #. type: textblock
41587 #: ../tools/virt-win-reg.pl:678
41588 msgid "Now update the registry:"
41589 msgstr ""
41590
41591 #. type: verbatim
41592 #: ../tools/virt-win-reg.pl:680
41593 #, no-wrap
41594 msgid ""
41595 " virt-win-reg --merge WindowsGuest test.reg\n"
41596 "\n"
41597 msgstr ""
41598
41599 #. type: =head2
41600 #: ../tools/virt-win-reg.pl:682
41601 msgid "INSTALLING A SERVICE"
41602 msgstr ""
41603
41604 #. type: textblock
41605 #: ../tools/virt-win-reg.pl:684
41606 msgid ""
41607 "This section assumes you are familiar with Windows services, and you either "
41608 "have a program which handles the Windows Service Control Protocol directly "
41609 "or you want to run any program using a service wrapper like SrvAny or the "
41610 "free RHSrvAny."
41611 msgstr ""
41612
41613 #. type: textblock
41614 #: ../tools/virt-win-reg.pl:689
41615 msgid ""
41616 "First upload the program and optionally the service wrapper.  In this case "
41617 "the test program is called C<test.exe> and we are using the RHSrvAny "
41618 "wrapper:"
41619 msgstr ""
41620
41621 #. type: verbatim
41622 #: ../tools/virt-win-reg.pl:693
41623 #, no-wrap
41624 msgid ""
41625 " guestfish -i -d WindowsGuest <<EOF\n"
41626 "   upload rhsrvany.exe /rhsrvany.exe\n"
41627 "   upload test.exe /test.exe\n"
41628 " EOF\n"
41629 "\n"
41630 msgstr ""
41631
41632 #. type: textblock
41633 #: ../tools/virt-win-reg.pl:698
41634 msgid ""
41635 "Prepare a regedit file containing the registry changes.  In this example, "
41636 "the first registry change is needed for the service itself or the service "
41637 "wrapper (if used).  The second registry change is only needed because I am "
41638 "using the RHSrvAny service wrapper."
41639 msgstr ""
41640
41641 #. type: verbatim
41642 #: ../tools/virt-win-reg.pl:703
41643 #, no-wrap
41644 msgid ""
41645 " cat > service.reg <<'EOF'\n"
41646 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41647 " \"Type\"=dword:00000010\n"
41648 " \"Start\"=dword:00000002\n"
41649 " \"ErrorControl\"=dword:00000001\n"
41650 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41651 " \"DisplayName\"=\"RHSrvAny\"\n"
41652 " \"ObjectName\"=\"NetworkService\"\n"
41653 " \n"
41654 msgstr ""
41655
41656 #. type: verbatim
41657 #: ../tools/virt-win-reg.pl:712
41658 #, no-wrap
41659 msgid ""
41660 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41661 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41662 " \"PWD\"=\"c:\\\\Temp\"\n"
41663 " EOF\n"
41664 "\n"
41665 msgstr ""
41666
41667 #. type: textblock
41668 #: ../tools/virt-win-reg.pl:723
41669 msgid ""
41670 "For use of C<ControlSet001> see the section above in this manual page.  You "
41671 "may need to adjust this according to the control set that is in use by the "
41672 "guest."
41673 msgstr ""
41674
41675 #. type: textblock
41676 #: ../tools/virt-win-reg.pl:729
41677 msgid ""
41678 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41679 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41680 "privileged account."
41681 msgstr ""
41682
41683 #. type: textblock
41684 #: ../tools/virt-win-reg.pl:735
41685 msgid ""
41686 "For the meaning of the magic numbers, see this Microsoft KB article: "
41687 "L<http://support.microsoft.com/kb/103000>."
41688 msgstr ""
41689
41690 #. type: textblock
41691 #: ../tools/virt-win-reg.pl:740
41692 msgid "Update the registry:"
41693 msgstr ""
41694
41695 #. type: verbatim
41696 #: ../tools/virt-win-reg.pl:742
41697 #, no-wrap
41698 msgid ""
41699 " virt-win-reg --merge WindowsGuest service.reg\n"
41700 "\n"
41701 msgstr ""
41702
41703 #. type: textblock
41704 #: ../tools/virt-win-reg.pl:746
41705 msgid ""
41706 "Be careful when passing parameters containing C<\\> (backslash) in the "
41707 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41708 "(but not both) to protect them from the shell."
41709 msgstr ""
41710
41711 #. type: textblock
41712 #: ../tools/virt-win-reg.pl:750
41713 msgid "Paths and value names are case-insensitive."
41714 msgstr ""
41715
41716 #. type: textblock
41717 #: ../tools/virt-win-reg.pl:759
41718 msgid ""
41719 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
41720 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
41721 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
41722 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41723 msgstr ""
41724
41725 #. type: verbatim
41726 #: ../tools/virt-win-reg.pl:777
41727 #, no-wrap
41728 msgid ""
41729 " export LIBGUESTFS_DEBUG=1\n"
41730 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41731 "\n"
41732 msgstr ""
41733
41734 #. type: textblock
41735 #: ../tools/virt-win-reg.pl:780
41736 msgid ""
41737 "Attach /tmp/virt-win-reg.log to a new bug report at "
41738 "L<https://bugzilla.redhat.com/>"
41739 msgstr ""